From 5450214823d41ab21db93ab34f9e8f2186fab5fa Mon Sep 17 00:00:00 2001 From: Zulko Date: Thu, 25 Jul 2024 04:45:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh=5Fpages=20from=20@=20Zulko/?= =?UTF-8?q?composer-timelines@6fd373700e6ed36681bb4fbda48450f4036c82ca=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/bundle.css | 9 + build/bundle.js | 2 + build/bundle.js.map | 1 + data/composer_data/Aaron Copland.json | 326 + data/composer_data/Alban Berg.json | 224 + data/composer_data/Alberto Ginastera.json | 74 + data/composer_data/Alexander Borodin.json | 209 + data/composer_data/Alexander Scriabin.json | 642 + data/composer_data/Alfred Schnittke.json | 130 + data/composer_data/Amy Beach.json | 745 + data/composer_data/Anton Webern.json | 682 + data/composer_data/Antonio Vivaldi.json | 518 + .../Anton\303\255n Dvo\305\231\303\241k.json" | 1007 + data/composer_data/Aram Khachaturian.json | 235 + data/composer_data/Arnold Schoenberg.json | 613 + data/composer_data/Arthur Sullivan.json | 861 + data/composer_data/Astor Piazzolla.json | 277 + .../Bed\305\231ich Smetana.json" | 615 + data/composer_data/Benjamin Britten.json | 438 + .../B\303\251la Bart\303\263k.json" | 607 + .../Camille Saint-Sa\303\253ns.json" | 1256 + data/composer_data/Carl Czerny.json | 760 + data/composer_data/Carl Maria von Weber.json | 558 + data/composer_data/Carl Orff.json | 312 + data/composer_data/Charles Gounod.json | 1310 + .../composer_data/Charles-Valentin Alkan.json | 678 + .../Christoph Willibald Gluck.json | 298 + data/composer_data/Claude Debussy.json | 851 + "data/composer_data/C\303\251sar Franck.json" | 598 + data/composer_data/Darius Milhaud.json | 440 + data/composer_data/Dmitri Shostakovich.json | 364 + data/composer_data/Dmitry Kabalevsky.json | 151 + "data/composer_data/Edgar Var\303\250se.json" | 186 + data/composer_data/Edvard Grieg.json | 586 + data/composer_data/Edward Elgar.json | 1335 + data/composer_data/Enrique Granados.json | 172 + data/composer_data/Erik Satie.json | 568 + data/composer_data/Felix Mendelssohn.json | 1229 + data/composer_data/Ferruccio Busoni.json | 696 + data/composer_data/Francis Poulenc.json | 1011 + .../Francisco T\303\241rrega.json" | 215 + data/composer_data/Frank Martin.json | 53 + data/composer_data/Franz Lehar.json | 227 + data/composer_data/Franz Liszt.json | 1338 + data/composer_data/Franz Schubert.json | 1227 + .../Fr\303\251d\303\251ric Chopin.json" | 961 + .../composer_data/Gabriel Faur\303\251.json" | 908 + data/composer_data/Gaetano Donizetti.json | 820 + data/composer_data/George Gershwin.json | 320 + data/composer_data/Georges Bizet.json | 496 + data/composer_data/Gioachino Rossini.json | 644 + data/composer_data/Giuseppe Verdi.json | 510 + data/composer_data/Gustav Holst.json | 610 + data/composer_data/Gustav Mahler.json | 453 + .../composer_data/Gy\303\266rgy Ligeti.json" | 221 + data/composer_data/Hans Werner Henze.json | 151 + data/composer_data/Hector Berlioz.json | 646 + data/composer_data/Heitor Villa-Lobos.json | 828 + data/composer_data/Henry Cowell.json | 605 + data/composer_data/Iannis Xenakis.json | 95 + data/composer_data/Igor Stravinsky.json | 881 + .../composer_data/Isaac Alb\303\251niz.json" | 313 + data/composer_data/Jacques Offenbach.json | 955 + data/composer_data/Jean Sibelius.json | 1029 + data/composer_data/Jean-Philippe Rameau.json | 518 + data/composer_data/Johann Sebastian Bach.json | 2251 + data/composer_data/Johannes Brahms.json | 1039 + data/composer_data/John Field.json | 10 + data/composer_data/Josef Haydn.json | 1761 + data/composer_data/Josef Suk.json | 67 + data/composer_data/Jules Massenet.json | 1226 + .../Kaikhosru Shapurji Sorabji.json | 362 + data/composer_data/Karlheinz Stockhausen.json | 480 + data/composer_data/Krzysztof Penderecki.json | 137 + data/composer_data/Leonard Bernstein.json | 529 + .../Leo\305\241 Jan\303\241\304\215ek.json" | 436 + data/composer_data/Lili Boulanger.json | 216 + data/composer_data/Louise Farrenc.json | 167 + data/composer_data/Luciano Berio.json | 137 + data/composer_data/Ludwig Spohr.json | 903 + data/composer_data/Ludwig van Beethoven.json | 1367 + data/composer_data/Luigi Boccherini.json | 74 + data/composer_data/Manuel de Falla.json | 123 + data/composer_data/Maurice Ravel.json | 669 + data/composer_data/Mikhail Glinka.json | 123 + data/composer_data/Modest Mussorgsky.json | 144 + data/composer_data/Muzio Clementi.json | 376 + data/composer_data/Nadia Boulanger.json | 256 + data/composer_data/Nikolai Medtner.json | 467 + .../Nikolai Rimsky-Korsakov.json | 720 + data/composer_data/Olivier Messiaen.json | 200 + data/composer_data/Ottorino Respighi.json | 545 + data/composer_data/Paul Dukas.json | 185 + data/composer_data/Pierre Boulez.json | 354 + .../Pyotr Ilyich Tchaikovsky.json | 1050 + .../composer_data/Ralph Vaughan Williams.json | 872 + data/composer_data/Richard Wagner.json | 548 + data/composer_data/Robert Schumann.json | 997 + data/composer_data/Ruth Crawford Seeger.json | 160 + data/composer_data/Samuel Barber.json | 305 + .../Samuel Coleridge-Taylor.json | 585 + data/composer_data/Scott Joplin.json | 488 + data/composer_data/Sergei Prokofiev.json | 263 + data/composer_data/Sergei Rachmaninoff.json | 786 + data/composer_data/Vincenzo Bellini.json | 453 + ...04\233zslava Kapr\303\241lov\303\241.json" | 89 + .../Wolfgang Amadeus Mozart.json | 1215 + .../Zolt\303\241n Kod\303\241ly.json" | 109 + data/composer_list_with_metadata.json | 737 + data/year_world_events.json | 36002 ++++++++++++++++ favicon.png | Bin 0 -> 3127 bytes global.css | 63 + index.html | 21 + 113 files changed, 96665 insertions(+) create mode 100644 build/bundle.css create mode 100644 build/bundle.js create mode 100644 build/bundle.js.map create mode 100644 data/composer_data/Aaron Copland.json create mode 100644 data/composer_data/Alban Berg.json create mode 100644 data/composer_data/Alberto Ginastera.json create mode 100644 data/composer_data/Alexander Borodin.json create mode 100644 data/composer_data/Alexander Scriabin.json create mode 100644 data/composer_data/Alfred Schnittke.json create mode 100644 data/composer_data/Amy Beach.json create mode 100644 data/composer_data/Anton Webern.json create mode 100644 data/composer_data/Antonio Vivaldi.json create mode 100644 "data/composer_data/Anton\303\255n Dvo\305\231\303\241k.json" create mode 100644 data/composer_data/Aram Khachaturian.json create mode 100644 data/composer_data/Arnold Schoenberg.json create mode 100644 data/composer_data/Arthur Sullivan.json create mode 100644 data/composer_data/Astor Piazzolla.json create mode 100644 "data/composer_data/Bed\305\231ich Smetana.json" create mode 100644 data/composer_data/Benjamin Britten.json create mode 100644 "data/composer_data/B\303\251la Bart\303\263k.json" create mode 100644 "data/composer_data/Camille Saint-Sa\303\253ns.json" create mode 100644 data/composer_data/Carl Czerny.json create mode 100644 data/composer_data/Carl Maria von Weber.json create mode 100644 data/composer_data/Carl Orff.json create mode 100644 data/composer_data/Charles Gounod.json create mode 100644 data/composer_data/Charles-Valentin Alkan.json create mode 100644 data/composer_data/Christoph Willibald Gluck.json create mode 100644 data/composer_data/Claude Debussy.json create mode 100644 "data/composer_data/C\303\251sar Franck.json" create mode 100644 data/composer_data/Darius Milhaud.json create mode 100644 data/composer_data/Dmitri Shostakovich.json create mode 100644 data/composer_data/Dmitry Kabalevsky.json create mode 100644 "data/composer_data/Edgar Var\303\250se.json" create mode 100644 data/composer_data/Edvard Grieg.json create mode 100644 data/composer_data/Edward Elgar.json create mode 100644 data/composer_data/Enrique Granados.json create mode 100644 data/composer_data/Erik Satie.json create mode 100644 data/composer_data/Felix Mendelssohn.json create mode 100644 data/composer_data/Ferruccio Busoni.json create mode 100644 data/composer_data/Francis Poulenc.json create mode 100644 "data/composer_data/Francisco T\303\241rrega.json" create mode 100644 data/composer_data/Frank Martin.json create mode 100644 data/composer_data/Franz Lehar.json create mode 100644 data/composer_data/Franz Liszt.json create mode 100644 data/composer_data/Franz Schubert.json create mode 100644 "data/composer_data/Fr\303\251d\303\251ric Chopin.json" create mode 100644 "data/composer_data/Gabriel Faur\303\251.json" create mode 100644 data/composer_data/Gaetano Donizetti.json create mode 100644 data/composer_data/George Gershwin.json create mode 100644 data/composer_data/Georges Bizet.json create mode 100644 data/composer_data/Gioachino Rossini.json create mode 100644 data/composer_data/Giuseppe Verdi.json create mode 100644 data/composer_data/Gustav Holst.json create mode 100644 data/composer_data/Gustav Mahler.json create mode 100644 "data/composer_data/Gy\303\266rgy Ligeti.json" create mode 100644 data/composer_data/Hans Werner Henze.json create mode 100644 data/composer_data/Hector Berlioz.json create mode 100644 data/composer_data/Heitor Villa-Lobos.json create mode 100644 data/composer_data/Henry Cowell.json create mode 100644 data/composer_data/Iannis Xenakis.json create mode 100644 data/composer_data/Igor Stravinsky.json create mode 100644 "data/composer_data/Isaac Alb\303\251niz.json" create mode 100644 data/composer_data/Jacques Offenbach.json create mode 100644 data/composer_data/Jean Sibelius.json create mode 100644 data/composer_data/Jean-Philippe Rameau.json create mode 100644 data/composer_data/Johann Sebastian Bach.json create mode 100644 data/composer_data/Johannes Brahms.json create mode 100644 data/composer_data/John Field.json create mode 100644 data/composer_data/Josef Haydn.json create mode 100644 data/composer_data/Josef Suk.json create mode 100644 data/composer_data/Jules Massenet.json create mode 100644 data/composer_data/Kaikhosru Shapurji Sorabji.json create mode 100644 data/composer_data/Karlheinz Stockhausen.json create mode 100644 data/composer_data/Krzysztof Penderecki.json create mode 100644 data/composer_data/Leonard Bernstein.json create mode 100644 "data/composer_data/Leo\305\241 Jan\303\241\304\215ek.json" create mode 100644 data/composer_data/Lili Boulanger.json create mode 100644 data/composer_data/Louise Farrenc.json create mode 100644 data/composer_data/Luciano Berio.json create mode 100644 data/composer_data/Ludwig Spohr.json create mode 100644 data/composer_data/Ludwig van Beethoven.json create mode 100644 data/composer_data/Luigi Boccherini.json create mode 100644 data/composer_data/Manuel de Falla.json create mode 100644 data/composer_data/Maurice Ravel.json create mode 100644 data/composer_data/Mikhail Glinka.json create mode 100644 data/composer_data/Modest Mussorgsky.json create mode 100644 data/composer_data/Muzio Clementi.json create mode 100644 data/composer_data/Nadia Boulanger.json create mode 100644 data/composer_data/Nikolai Medtner.json create mode 100644 data/composer_data/Nikolai Rimsky-Korsakov.json create mode 100644 data/composer_data/Olivier Messiaen.json create mode 100644 data/composer_data/Ottorino Respighi.json create mode 100644 data/composer_data/Paul Dukas.json create mode 100644 data/composer_data/Pierre Boulez.json create mode 100644 data/composer_data/Pyotr Ilyich Tchaikovsky.json create mode 100644 data/composer_data/Ralph Vaughan Williams.json create mode 100644 data/composer_data/Richard Wagner.json create mode 100644 data/composer_data/Robert Schumann.json create mode 100644 data/composer_data/Ruth Crawford Seeger.json create mode 100644 data/composer_data/Samuel Barber.json create mode 100644 data/composer_data/Samuel Coleridge-Taylor.json create mode 100644 data/composer_data/Scott Joplin.json create mode 100644 data/composer_data/Sergei Prokofiev.json create mode 100644 data/composer_data/Sergei Rachmaninoff.json create mode 100644 data/composer_data/Vincenzo Bellini.json create mode 100644 "data/composer_data/V\303\255t\304\233zslava Kapr\303\241lov\303\241.json" create mode 100644 data/composer_data/Wolfgang Amadeus Mozart.json create mode 100644 "data/composer_data/Zolt\303\241n Kod\303\241ly.json" create mode 100644 data/composer_list_with_metadata.json create mode 100644 data/year_world_events.json create mode 100644 favicon.png create mode 100644 global.css create mode 100644 index.html diff --git a/build/bundle.css b/build/bundle.css new file mode 100644 index 0000000..80d2e42 --- /dev/null +++ b/build/bundle.css @@ -0,0 +1,9 @@ +svg.svelte-qbd276{width:var(--chevron-icon-width, 20px);height:var(--chevron-icon-width, 20px);color:var(--chevron-icon-colour, currentColor)} +svg.svelte-whdbu1{width:var(--clear-icon-width, 20px);height:var(--clear-icon-width, 20px);color:var(--clear-icon-color, currentColor)} +.loading.svelte-1p3nqvd{width:var(--spinner-width, 20px);height:var(--spinner-height, 20px);color:var(--spinner-color, var(--icons-color));animation:svelte-1p3nqvd-rotate 0.75s linear infinite;transform-origin:center center;transform:none}.circle_path.svelte-1p3nqvd{stroke-dasharray:90;stroke-linecap:round}@keyframes svelte-1p3nqvd-rotate{100%{transform:rotate(360deg)}} +.svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{--borderRadius:var(--border-radius);--clearSelectColor:var(--clear-select-color);--clearSelectWidth:var(--clear-select-width);--disabledBackground:var(--disabled-background);--disabledBorderColor:var(--disabled-border-color);--disabledColor:var(--disabled-color);--disabledPlaceholderColor:var(--disabled-placeholder-color);--disabledPlaceholderOpacity:var(--disabled-placeholder-opacity);--errorBackground:var(--error-background);--errorBorder:var(--error-border);--groupItemPaddingLeft:var(--group-item-padding-left);--groupTitleColor:var(--group-title-color);--groupTitleFontSize:var(--group-title-font-size);--groupTitleFontWeight:var(--group-title-font-weight);--groupTitlePadding:var(--group-title-padding);--groupTitleTextTransform:var(--group-title-text-transform);--groupTitleBorderColor:var(--group-title-border-color);--groupTitleBorderWidth:var(--group-title-border-width);--groupTitleBorderStyle:var(--group-title-border-style);--indicatorColor:var(--chevron-color);--indicatorHeight:var(--chevron-height);--indicatorWidth:var(--chevron-width);--inputColor:var(--input-color);--inputLeft:var(--input-left);--inputLetterSpacing:var(--input-letter-spacing);--inputMargin:var(--input-margin);--inputPadding:var(--input-padding);--itemActiveBackground:var(--item-active-background);--itemColor:var(--item-color);--itemFirstBorderRadius:var(--item-first-border-radius);--itemHoverBG:var(--item-hover-bg);--itemHoverColor:var(--item-hover-color);--itemIsActiveBG:var(--item-is-active-bg);--itemIsActiveColor:var(--item-is-active-color);--itemIsNotSelectableColor:var(--item-is-not-selectable-color);--itemPadding:var(--item-padding);--listBackground:var(--list-background);--listBorder:var(--list-border);--listBorderRadius:var(--list-border-radius);--listEmptyColor:var(--list-empty-color);--listEmptyPadding:var(--list-empty-padding);--listEmptyTextAlign:var(--list-empty-text-align);--listMaxHeight:var(--list-max-height);--listPosition:var(--list-position);--listShadow:var(--list-shadow);--listZIndex:var(--list-z-index);--multiItemBG:var(--multi-item-bg);--multiItemBorderRadius:var(--multi-item-border-radius);--multiItemDisabledHoverBg:var(--multi-item-disabled-hover-bg);--multiItemDisabledHoverColor:var(--multi-item-disabled-hover-color);--multiItemHeight:var(--multi-item-height);--multiItemMargin:var(--multi-item-margin);--multiItemPadding:var(--multi-item-padding);--multiSelectInputMargin:var(--multi-select-input-margin);--multiSelectInputPadding:var(--multi-select-input-padding);--multiSelectPadding:var(--multi-select-padding);--placeholderColor:var(--placeholder-color);--placeholderOpacity:var(--placeholder-opacity);--selectedItemPadding:var(--selected-item-padding);--spinnerColor:var(--spinner-color);--spinnerHeight:var(--spinner-height);--spinnerWidth:var(--spinner-width);--internal-padding:0 0 0 16px;border:var(--border, 1px solid #d8dbdf);border-radius:var(--border-radius, 6px);min-height:var(--height, 42px);position:relative;display:flex;align-items:stretch;padding:var(--padding, var(--internal-padding));background:var(--background, #fff);margin:var(--margin, 0);width:var(--width, 100%);font-size:var(--font-size, 16px);max-height:var(--max-height)}.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-sizing:var(--box-sizing, border-box)}.svelte-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{border:var(--border-hover, 1px solid #b2b8bf)}.value-container.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex:1 1 0%;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:var(--value-container-padding, 5px 0);position:relative;overflow:var(--value-container-overflow, hidden);align-self:stretch}.prepend.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;flex-shrink:0;align-items:center}.indicators.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:var(--indicators-position);top:var(--indicators-top);right:var(--indicators-right);bottom:var(--indicators-bottom)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:absolute;cursor:default;border:none;color:var(--input-color, var(--item-color));padding:var(--input-padding, 0);letter-spacing:var(--input-letter-spacing, inherit);margin:var(--input-margin, 0);min-width:10px;top:0;right:0;bottom:0;left:0;background:transparent;font-size:var(--font-size, 16px)}.svelte-82qwg8:not(.multi)>.value-container.svelte-82qwg8>input.svelte-82qwg8{width:100%;height:100%}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--placeholder-color, #78848f);opacity:var(--placeholder-opacity, 1)}input.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.svelte-select.focused.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--border-focused, 1px solid #006fe8);border-radius:var(--border-radius-focused, var(--border-radius, 6px))}.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--disabled-background, #ebedef);border-color:var(--disabled-border-color, #ebedef);color:var(--disabled-color, #c1c6cc)}.disabled.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8::placeholder{color:var(--disabled-placeholder-color, #c1c6cc);opacity:var(--disabled-placeholder-opacity, 1)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{position:relative;overflow:var(--selected-item-overflow, hidden);padding:var(--selected-item-padding, 0 20px 0 0);text-overflow:ellipsis;white-space:nowrap;color:var(--selected-item-color, inherit);font-size:var(--font-size, 16px)}.multi.svelte-82qwg8 .selected-item.svelte-82qwg8.svelte-82qwg8{position:absolute;line-height:var(--height, 42px);height:var(--height, 42px)}.selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:none}.hide-selected-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0}.icon.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{all:unset;display:flex;align-items:center;justify-content:center;width:var(--clear-select-width, 40px);height:var(--clear-select-height, 100%);color:var(--clear-select-color, var(--icons-color));margin:var(--clear-select-margin, 0);pointer-events:all;flex-shrink:0}.clear-select.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:focus{outline:var(--clear-select-focus-outline, 1px solid #006fe8)}.loading.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--loading-width, 40px);height:var(--loading-height);color:var(--loading-color, var(--icons-color));margin:var(--loading--margin, 0);flex-shrink:0}.chevron.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{width:var(--chevron-width, 40px);height:var(--chevron-height, 40px);background:var(--chevron-background, transparent);pointer-events:var(--chevron-pointer-events, none);color:var(--chevron-color, var(--icons-color));border:var(--chevron-border, 0 0 0 1px solid #d8dbdf);flex-shrink:0}.multi.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-padding, var(--internal-padding))}.multi.svelte-82qwg8 input.svelte-82qwg8.svelte-82qwg8{padding:var(--multi-select-input-padding, 0);position:relative;margin:var(--multi-select-input-margin, 5px 0);flex:1 1 40px}.svelte-select.error.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border:var(--error-border, 1px solid #ff2d55);background:var(--error-background, #fff)}.a11y-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{z-index:9999;border:0px;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0px;white-space:nowrap}.multi-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--multi-item-bg, #ebedef);margin:var(--multi-item-margin, 0);outline:var(--multi-item-outline, 1px solid #ddd);border-radius:var(--multi-item-border-radius, 4px);height:var(--multi-item-height, 25px);line-height:var(--multi-item-height, 25px);display:flex;cursor:default;padding:var(--multi-item-padding, 0 5px);overflow:hidden;gap:var(--multi-item-gap, 4px);outline-offset:-1px;max-width:var(--multi-max-width, none);color:var(--multi-item-color, var(--item-color))}.multi-item.disabled.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:hover{background:var(--multi-item-disabled-hover-bg, #ebedef);color:var(--multi-item-disabled-hover-color, #c1c6cc)}.multi-item-text.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-item-clear.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{display:flex;align-items:center;justify-content:center;--clear-icon-color:var(--multi-item-clear-icon-color, #000)}.multi-item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{outline:var(--multi-item-active-outline, 1px solid #006fe8)}.svelte-select-list.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{box-shadow:var(--list-shadow, 0 2px 3px 0 rgba(44, 62, 80, 0.24));border-radius:var(--list-border-radius, 4px);max-height:var(--list-max-height, 252px);overflow-y:auto;background:var(--list-background, #fff);position:var(--list-position, absolute);z-index:var(--list-z-index, 2);border:var(--list-border)}.prefloat.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;pointer-events:none}.list-group-title.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{color:var(--group-title-color, #8f8f8f);cursor:default;font-size:var(--group-title-font-size, 16px);font-weight:var(--group-title-font-weight, 600);height:var(--height, 42px);line-height:var(--height, 42px);padding:var(--group-title-padding, 0 20px);text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap;text-transform:var(--group-title-text-transform, uppercase);border-width:var(--group-title-border-width, medium);border-style:var(--group-title-border-style, none);border-color:var(--group-title-border-color, color)}.empty.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{text-align:var(--list-empty-text-align, center);padding:var(--list-empty-padding, 20px 0);color:var(--list-empty-color, #78848f)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{cursor:default;height:var(--item-height, var(--height, 42px));line-height:var(--item-line-height, var(--height, 42px));padding:var(--item-padding, 0 20px);color:var(--item-color, inherit);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:var(--item-transition, all 0.2s);align-items:center;width:100%}.item.group-item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{padding-left:var(--group-item-padding-left, 40px)}.item.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{background:var(--item-active-background, #b9daff)}.item.active.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{background:var(--item-is-active-bg, #007aff);color:var(--item-is-active-color, #fff)}.item.first.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{border-radius:var(--item-first-border-radius, 4px 4px 0 0)}.item.hover.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:not(.active){background:var(--item-hover-bg, #e7f2ff);color:var(--item-hover-color, inherit)}.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.hover.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.active.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8,.item.not-selectable.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8:active{color:var(--item-is-not-selectable-color, #999);background:transparent}.required.svelte-82qwg8.svelte-82qwg8.svelte-82qwg8{opacity:0;z-index:-1;position:absolute;top:0;left:0;bottom:0;right:0} +.composer-events.svelte-9nu9w1 ul.svelte-9nu9w1{list-style-type:none;padding:0}.composer-events.svelte-9nu9w1 li.svelte-9nu9w1{margin-bottom:10px;padding-left:25px;position:relative}.composer-events.svelte-9nu9w1 .event-icon.svelte-9nu9w1::before{content:"\f1ea";font-family:"Font Awesome 5 Free";font-weight:900;position:absolute;left:0;top:0;font-size:1rem;color:#555} +.world-events.svelte-1li10px{color:gray} +input.svelte-1lay3a0{margin-left:1em;background-color:var(--bg);border:1px solid grey}.checkbox-container.svelte-1lay3a0{margin-top:1em} +.About.svelte-1okaa8{margin-top:3em} +h1.svelte-1nn1qc0{text-align:center;margin-bottom:1em}main.svelte-1nn1qc0{font-family:"Lato", sans-serif !important;margin:0;padding:0}:root,.svelte-1nn1qc0::backdrop{--border:initial !important} diff --git a/build/bundle.js b/build/bundle.js new file mode 100644 index 0000000..30ce4ad --- /dev/null +++ b/build/bundle.js @@ -0,0 +1,2 @@ +var app=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function o(){return Object.create(null)}function i(t){t.forEach(n)}function l(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e,n,o){if(t){const i=c(t,e,n,o);return t[0](i)}}function c(t,n,o,i){return t[1]&&i?e(o.ctx.slice(),t[1](i(n))):o.ctx}function a(t,e,n,o){if(t[2]&&o){const i=t[2](o(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let o=0;o32){const e=[],n=t.ctx.length/32;for(let t=0;tt.removeEventListener(e,n,o)}function k(t){return function(e){return e.preventDefault(),t.call(this,e)}}function O(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function E(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const T=["width","height"];function L(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in e)null==e[o]?t.removeAttribute(o):"style"===o?t.style.cssText=e[o]:"__value"===o?t.value=t[o]=e[o]:n[o]&&n[o].set&&-1===T.indexOf(o)?t[o]=e[o]:E(t,o,e[o])}function S(t,e){e=""+e,t.data!==e&&(t.data=e)}function _(t,e){t.value=null==e?"":e}function C(t,e,n){t.classList[n?"add":"remove"](e)}let I;function A(t){I=t}function D(){if(!I)throw new Error("Function called outside component initialization");return I}function q(t){D().$$.on_mount.push(t)}function F(t){D().$$.on_destroy.push(t)}function R(){const t=D();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const l=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,o,e),i}(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,l)})),!l.defaultPrevented}return!0}}function B(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const j=[],W=[];let H=[];const P=[],N=Promise.resolve();let M=!1;function V(){M||(M=!0,N.then(U))}function z(t){H.push(t)}const G=new Set;let Y=0;function U(){if(0!==Y)return;const t=I;do{try{for(;Y{X.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function nt(t){t&&t.c()}function ot(t,e,o,r){const{fragment:s,after_update:c}=t.$$;s&&s.m(e,o),r||z((()=>{const e=t.$$.on_mount.map(n).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...e):i(e),t.$$.on_mount=[]})),c.forEach(z)}function it(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];H.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),H=e}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function lt(e,n,l,r,s,c,a,u=[-1]){const f=I;A(e);const d=e.$$={fragment:null,ctx:[],props:c,update:t,not_equal:s,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:o(),dirty:u,skip_bound:!1,root:n.target||f.$$.root};a&&a(d.root);let p=!1;if(d.ctx=l?l(e,n.props||{},((t,n,...o)=>{const i=o.length?o[0]:n;return d.ctx&&s(d.ctx[t],d.ctx[t]=i)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](i),p&&function(t,e){-1===t.$$.dirty[0]&&(j.push(t),V(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const st=Math.min,ct=Math.max,at=Math.round,ut=Math.floor,ft=t=>({x:t,y:t}),dt={left:"right",right:"left",bottom:"top",top:"bottom"},pt={start:"end",end:"start"};function mt(t,e,n){return ct(t,st(e,n))}function ht(t,e){return"function"==typeof t?t(e):t}function gt(t){return t.split("-")[0]}function yt(t){return t.split("-")[1]}function vt(t){return"x"===t?"y":"x"}function wt(t){return"y"===t?"height":"width"}function $t(t){return["top","bottom"].includes(gt(t))?"y":"x"}function bt(t){return vt($t(t))}function xt(t){return t.replace(/start|end/g,(t=>pt[t]))}function kt(t){return t.replace(/left|right|bottom|top/g,(t=>dt[t]))}function Ot(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Et(t,e,n){let{reference:o,floating:i}=t;const l=$t(e),r=bt(e),s=wt(r),c=gt(e),a="y"===l,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[s]/2-i[s]/2;let p;switch(c){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-i.width,y:f};break;default:p={x:o.x,y:o.y}}switch(yt(e)){case"start":p[r]-=d*(n&&a?-1:1);break;case"end":p[r]+=d*(n&&a?-1:1)}return p}async function Tt(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:l,rects:r,elements:s,strategy:c}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ht(e,t),m=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),h=s[d?"floating"===f?"reference":"floating":f],g=Ot(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(h)))||n?h:h.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:a,rootBoundary:u,strategy:c})),y="floating"===f?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,v=await(null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),w=await(null==l.isElement?void 0:l.isElement(v))&&await(null==l.getScale?void 0:l.getScale(v))||{x:1,y:1},$=Ot(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-$.top+m.top)/w.y,bottom:($.bottom-g.bottom+m.bottom)/w.y,left:(g.left-$.left+m.left)/w.x,right:($.right-g.right+m.right)/w.x}}function Lt(t){return Ct(t)?(t.nodeName||"").toLowerCase():"#document"}function St(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function _t(t){var e;return null==(e=(Ct(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ct(t){return t instanceof Node||t instanceof St(t).Node}function It(t){return t instanceof Element||t instanceof St(t).Element}function At(t){return t instanceof HTMLElement||t instanceof St(t).HTMLElement}function Dt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof St(t).ShadowRoot)}function qt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=Ht(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ft(t){return["table","td","th"].includes(Lt(t))}function Rt(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function Bt(t){const e=jt(),n=Ht(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function jt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Wt(t){return["html","body","#document"].includes(Lt(t))}function Ht(t){return St(t).getComputedStyle(t)}function Pt(t){return It(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nt(t){if("html"===Lt(t))return t;const e=t.assignedSlot||t.parentNode||Dt(t)&&t.host||_t(t);return Dt(e)?e.host:e}function Mt(t){const e=Nt(t);return Wt(e)?t.ownerDocument?t.ownerDocument.body:t.body:At(e)&&qt(e)?e:Mt(e)}function Vt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Mt(t),l=i===(null==(o=t.ownerDocument)?void 0:o.body),r=St(i);return l?e.concat(r,r.visualViewport||[],qt(i)?i:[],r.frameElement&&n?Vt(r.frameElement):[]):e.concat(i,Vt(i,[],n))}function zt(t){const e=Ht(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=At(t),l=i?t.offsetWidth:n,r=i?t.offsetHeight:o,s=at(n)!==l||at(o)!==r;return s&&(n=l,o=r),{width:n,height:o,$:s}}function Gt(t){return It(t)?t:t.contextElement}function Yt(t){const e=Gt(t);if(!At(e))return ft(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:l}=zt(e);let r=(l?at(n.width):n.width)/o,s=(l?at(n.height):n.height)/i;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}const Ut=ft(0);function Jt(t){const e=St(t);return jt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ut}function Xt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),l=Gt(t);let r=ft(1);e&&(o?It(o)&&(r=Yt(o)):r=Yt(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==St(t))&&e}(l,n,o)?Jt(l):ft(0);let c=(i.left+s.x)/r.x,a=(i.top+s.y)/r.y,u=i.width/r.x,f=i.height/r.y;if(l){const t=St(l),e=o&&It(o)?St(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=Yt(i),e=i.getBoundingClientRect(),o=Ht(i),l=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,r=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,a*=t.y,u*=t.x,f*=t.y,c+=l,a+=r,n=St(i),i=n.frameElement}}return Ot({width:u,height:f,x:c,y:a})}function Kt(t){return Xt(_t(t)).left+Pt(t).scrollLeft}function Qt(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=St(t),o=_t(t),i=n.visualViewport;let l=o.clientWidth,r=o.clientHeight,s=0,c=0;if(i){l=i.width,r=i.height;const t=jt();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:l,height:r,x:s,y:c}}(t,n);else if("document"===e)o=function(t){const e=_t(t),n=Pt(t),o=t.ownerDocument.body,i=ct(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=ct(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+Kt(t);const s=-n.scrollTop;return"rtl"===Ht(o).direction&&(r+=ct(e.clientWidth,o.clientWidth)-i),{width:i,height:l,x:r,y:s}}(_t(t));else if(It(e))o=function(t,e){const n=Xt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,l=At(t)?Yt(t):ft(1);return{width:t.clientWidth*l.x,height:t.clientHeight*l.y,x:i*l.x,y:o*l.y}}(e,n);else{const n=Jt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return Ot(o)}function Zt(t,e){const n=Nt(t);return!(n===e||!It(n)||Wt(n))&&("fixed"===Ht(n).position||Zt(n,e))}function te(t,e,n){const o=At(e),i=_t(e),l="fixed"===n,r=Xt(t,!0,l,e);let s={scrollLeft:0,scrollTop:0};const c=ft(0);if(o||!o&&!l)if(("body"!==Lt(e)||qt(i))&&(s=Pt(e)),o){const t=Xt(e,!0,l,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=Kt(i));return{x:r.left+s.scrollLeft-c.x,y:r.top+s.scrollTop-c.y,width:r.width,height:r.height}}function ee(t){return"static"===Ht(t).position}function ne(t,e){return At(t)&&"fixed"!==Ht(t).position?e?e(t):t.offsetParent:null}function oe(t,e){const n=St(t);if(Rt(t))return n;if(!At(t)){let e=Nt(t);for(;e&&!Wt(e);){if(It(e)&&!ee(e))return e;e=Nt(e)}return n}let o=ne(t,e);for(;o&&Ft(o)&&ee(o);)o=ne(o,e);return o&&Wt(o)&&ee(o)&&!Bt(o)?n:o||function(t){let e=Nt(t);for(;At(e)&&!Wt(e);){if(Rt(e))return null;if(Bt(e))return e;e=Nt(e)}return null}(t)||n}const ie={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const l="fixed"===i,r=_t(o),s=!!e&&Rt(e.floating);if(o===r||s&&l)return n;let c={scrollLeft:0,scrollTop:0},a=ft(1);const u=ft(0),f=At(o);if((f||!f&&!l)&&(("body"!==Lt(o)||qt(r))&&(c=Pt(o)),At(o))){const t=Xt(o);a=Yt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-c.scrollLeft*a.x+u.x,y:n.y*a.y-c.scrollTop*a.y+u.y}},getDocumentElement:_t,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const l="clippingAncestors"===n?Rt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=Vt(t,[],!1).filter((t=>It(t)&&"body"!==Lt(t))),i=null;const l="fixed"===Ht(t).position;let r=l?Nt(t):t;for(;It(r)&&!Wt(r);){const e=Ht(r),n=Bt(r);n||"fixed"!==e.position||(i=null),(l?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||qt(r)&&!n&&Zt(t,r))?o=o.filter((t=>t!==r)):i=e,r=Nt(r)}return e.set(t,o),o}(e,this._c):[].concat(n),r=[...l,o],s=r[0],c=r.reduce(((t,n)=>{const o=Qt(e,n,i);return t.top=ct(o.top,t.top),t.right=st(o.right,t.right),t.bottom=st(o.bottom,t.bottom),t.left=ct(o.left,t.left),t}),Qt(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:oe,getElementRects:async function(t){const e=this.getOffsetParent||oe,n=this.getDimensions,o=await n(t.floating);return{reference:te(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=zt(t);return{width:e,height:n}},getScale:Yt,isElement:It,isRTL:function(t){return"rtl"===Ht(t).direction}};function le(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,a=Gt(t),u=i||l?[...a?Vt(a):[],...Vt(e)]:[];u.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),l&&t.addEventListener("resize",n)}));const f=a&&s?function(t,e){let n,o=null;const i=_t(t);function l(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function r(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),l();const{left:a,top:u,width:f,height:d}=t.getBoundingClientRect();if(s||e(),!f||!d)return;const p={rootMargin:-ut(u)+"px "+-ut(i.clientWidth-(a+f))+"px "+-ut(i.clientHeight-(u+d))+"px "+-ut(a)+"px",threshold:ct(0,st(1,c))||1};let m=!0;function h(t){const e=t[0].intersectionRatio;if(e!==c){if(!m)return r();e?r(!1,e):n=setTimeout((()=>{r(!1,1e-7)}),1e3)}m=!1}try{o=new IntersectionObserver(h,{...p,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(h,p)}o.observe(t)}(!0),l}(a,n):null;let d,p=-1,m=null;r&&(m=new ResizeObserver((t=>{let[o]=t;o&&o.target===a&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=m)||t.observe(e)}))),n()})),a&&!c&&m.observe(a),m.observe(e));let h=c?Xt(t):null;return c&&function e(){const o=Xt(t);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n();h=o,d=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{i&&t.removeEventListener("scroll",n),l&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=m)||t.disconnect(),m=null,c&&cancelAnimationFrame(d)}}const re=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:l,placement:r,middlewareData:s}=e,c=await async function(t,e){const{placement:n,platform:o,elements:i}=t,l=await(null==o.isRTL?void 0:o.isRTL(i.floating)),r=gt(n),s=yt(n),c="y"===$t(n),a=["left","top"].includes(r)?-1:1,u=l&&c?-1:1,f=ht(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:d*a}:{x:d*a,y:p*u}}(e,t);return r===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:l+c.y,data:{...c,placement:r}}}}},se=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:l=!0,crossAxis:r=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=ht(t,e),a={x:n,y:o},u=await Tt(e,c),f=$t(gt(i)),d=vt(f);let p=a[d],m=a[f];if(l){const t="y"===d?"bottom":"right";p=mt(p+u["y"===d?"top":"left"],p,p-u[t])}if(r){const t="y"===f?"bottom":"right";m=mt(m+u["y"===f?"top":"left"],m,m-u[t])}const h=s.fn({...e,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-o}}}}},ce=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:l,rects:r,initialPlacement:s,platform:c,elements:a}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=ht(t,e);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const y=gt(i),v=$t(s),w=gt(s)===s,$=await(null==c.isRTL?void 0:c.isRTL(a.floating)),b=d||(w||!h?[kt(s)]:function(t){const e=kt(t);return[xt(t),e,xt(e)]}(s)),x="none"!==m;!d&&x&&b.push(...function(t,e,n,o){const i=yt(t);let l=function(t,e,n){const o=["left","right"],i=["right","left"],l=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?l:r;default:return[]}}(gt(t),"start"===n,o);return i&&(l=l.map((t=>t+"-"+i)),e&&(l=l.concat(l.map(xt)))),l}(s,h,m,$));const k=[s,...b],O=await Tt(e,g),E=[];let T=(null==(o=l.flip)?void 0:o.overflows)||[];if(u&&E.push(O[y]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=yt(t),i=bt(t),l=wt(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[l]>e.floating[l]&&(r=kt(r)),[r,kt(r)]}(i,r,$);E.push(O[t[0]],O[t[1]])}if(T=[...T,{placement:i,overflows:E}],!E.every((t=>t<=0))){var L,S;const t=((null==(L=l.flip)?void 0:L.index)||0)+1,e=k[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n=null==(S=T.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var _;const t=null==(_=T.filter((t=>{if(x){const e=$t(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:_[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},ae=(t,e,n)=>{const o=new Map,i={platform:ie,...n},l={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:l=[],platform:r}=n,s=l.filter(Boolean),c=await(null==r.isRTL?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=Et(a,o,c),d=o,p={},m=0;for(let n=0;n({...o,...t||{},...e||{}}),r=t=>{e&&n&&(i=l(t),ae(e,n,i).then((t=>{Object.assign(n.style,{position:t.strategy,left:`${t.x}px`,top:`${t.y}px`}),i?.onComputed&&i.onComputed(t)})))},s=t=>{F(t.subscribe((t=>{void 0===e?(e=t,r()):(Object.assign(e,t),r())})))};return[t=>{if("subscribe"in t)return s(t),{};e=t,r()},(t,o)=>{let s;n=t,i=l(o),setTimeout((()=>r(o)),0),r(o);const c=()=>{s&&(s(),s=void 0)},a=({autoUpdate:t}=i||{})=>{c(),!1!==t&&(V(),N).then((()=>le(e,n,(()=>r(i)),!0===t?{}:t)))};return s=a(),{update(t){r(t),s=a(t)},destroy(){c()}}},r]}function fe({loadOptions:t,filterText:e,items:n,multiple:o,value:i,itemId:l,groupBy:r,filterSelectedItems:s,itemFilter:c,convertStringItemsToObjects:a,filterGroupedItems:u,label:f}){if(n&&t)return n;if(!n)return[];n&&n.length>0&&"object"!=typeof n[0]&&(n=a(n));let d=n.filter((t=>{let n=c(t[f],e,t);return n&&o&&i?.length&&(n=!i.some((e=>!!s&&e[l]===t[l]))),n}));return r&&(d=u(d)),d}async function de({dispatch:t,loadOptions:e,convertStringItemsToObjects:n,filterText:o}){let i=await e(o).catch((e=>{console.warn("svelte-select loadOptions error :>> ",e),t("error",{type:"loadOptions",details:e})}));if(i&&!i.cancelled)return i?(i&&i.length>0&&"object"!=typeof i[0]&&(i=n(i)),t("loaded",{items:i})):i=[],{filteredItems:i,loading:!1,focused:!0,listOpen:!0}}function pe(e){let n,o;return{c(){n=v("svg"),o=v("path"),E(o,"fill","currentColor"),E(o,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),E(n,"width","100%"),E(n,"height","100%"),E(n,"viewBox","0 0 20 20"),E(n,"focusable","false"),E(n,"aria-hidden","true"),E(n,"class","svelte-qbd276")},m(t,e){m(t,n,e),p(n,o)},p:t,i:t,o:t,d(t){t&&h(n)}}}class me extends rt{constructor(t){super(),lt(this,t,null,pe,r,{})}}function he(e){let n,o;return{c(){n=v("svg"),o=v("path"),E(o,"fill","currentColor"),E(o,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),E(n,"width","100%"),E(n,"height","100%"),E(n,"viewBox","-2 -2 50 50"),E(n,"focusable","false"),E(n,"aria-hidden","true"),E(n,"role","presentation"),E(n,"class","svelte-whdbu1")},m(t,e){m(t,n,e),p(n,o)},p:t,i:t,o:t,d(t){t&&h(n)}}}class ge extends rt{constructor(t){super(),lt(this,t,null,he,r,{})}}function ye(e){let n,o;return{c(){n=v("svg"),o=v("circle"),E(o,"class","circle_path svelte-1p3nqvd"),E(o,"cx","50"),E(o,"cy","50"),E(o,"r","20"),E(o,"fill","none"),E(o,"stroke","currentColor"),E(o,"stroke-width","5"),E(o,"stroke-miterlimit","10"),E(n,"class","loading svelte-1p3nqvd"),E(n,"viewBox","25 25 50 50")},m(t,e){m(t,n,e),p(n,o)},p:t,i:t,o:t,d(t){t&&h(n)}}}class ve extends rt{constructor(t){super(),lt(this,t,null,ye,r,{})}}const we=t=>({value:8&t[0]}),$e=t=>({value:t[3]}),be=t=>({value:8&t[0]}),xe=t=>({value:t[3]}),ke=t=>({listOpen:64&t[0]}),Oe=t=>({listOpen:t[6]}),Ee=t=>({}),Te=t=>({}),Le=t=>({}),Se=t=>({}),_e=t=>({selection:8&t[0]}),Ce=t=>({selection:t[3]});function Ie(t,e,n){const o=t.slice();return o[126]=e[n],o[128]=n,o}const Ae=t=>({}),De=t=>({}),qe=t=>({selection:8&t[0]}),Fe=t=>({selection:t[126],index:t[128]}),Re=t=>({}),Be=t=>({}),je=t=>({}),We=t=>({}),He=t=>({}),Pe=t=>({});function Ne(t,e,n){const o=t.slice();return o[126]=e[n],o[128]=n,o}const Me=t=>({item:16777216&t[0]}),Ve=t=>({item:t[126],index:t[128]}),ze=t=>({filteredItems:16777216&t[0]}),Ge=t=>({filteredItems:t[24]}),Ye=t=>({}),Ue=t=>({});function Je(t){let e,n,o,l,r,s,c,a,u=t[50]["list-prepend"]&&Xe(t);const f=[Ze,Qe,Ke],g=[];function v(t,e){return t[50].list?0:t[24].length>0?1:t[19]?-1:2}~(o=v(t))&&(l=g[o]=f[o](t));let w=t[50]["list-append"]&&en(t);return{c(){e=y("div"),u&&u.c(),n=$(),l&&l.c(),r=$(),w&&w.c(),E(e,"class","svelte-select-list svelte-82qwg8"),E(e,"role","none"),C(e,"prefloat",t[28])},m(i,l){m(i,e,l),u&&u.m(e,null),p(e,n),~o&&g[o].m(e,null),p(e,r),w&&w.m(e,null),t[91](e),s=!0,c||(a=[d(t[49].call(null,e)),x(e,"scroll",t[41]),x(e,"pointerup",O(k(t[85]))),x(e,"mousedown",O(k(t[86])))],c=!0)},p(t,i){t[50]["list-prepend"]?u?(u.p(t,i),524288&i[1]&&tt(u,1)):(u=Xe(t),u.c(),tt(u,1),u.m(e,n)):u&&(Q(),et(u,1,1,(()=>{u=null})),Z());let c=o;o=v(t),o===c?~o&&g[o].p(t,i):(l&&(Q(),et(g[c],1,1,(()=>{g[c]=null})),Z()),~o?(l=g[o],l?l.p(t,i):(l=g[o]=f[o](t),l.c()),tt(l,1),l.m(e,r)):l=null),t[50]["list-append"]?w?(w.p(t,i),524288&i[1]&&tt(w,1)):(w=en(t),w.c(),tt(w,1),w.m(e,null)):w&&(Q(),et(w,1,1,(()=>{w=null})),Z()),(!s||268435456&i[0])&&C(e,"prefloat",t[28])},i(t){s||(tt(u),tt(l),tt(w),s=!0)},o(t){et(u),et(l),et(w),s=!1},d(n){n&&h(e),u&&u.d(),~o&&g[o].d(),w&&w.d(),t[91](null),c=!1,i(a)}}}function Xe(t){let e;const n=t[83]["list-prepend"],o=s(n,t,t[82],Ue);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,i){o&&o.p&&(!e||1048576&i[2])&&u(o,n,t,t[82],e?a(n,t[82],i,Ye):f(t[82]),Ue)},i(t){e||(tt(o,t),e=!0)},o(t){et(o,t),e=!1},d(t){o&&o.d(t)}}}function Ke(e){let n;const o=e[83].empty,i=s(o,e,e[82],Pe),l=i||function(){let e;return{c(){e=y("div"),e.textContent="No options",E(e,"class","empty svelte-82qwg8")},m(t,n){m(t,e,n)},p:t,d(t){t&&h(e)}}}();return{c(){l&&l.c()},m(t,e){l&&l.m(t,e),n=!0},p(t,e){i&&i.p&&(!n||1048576&e[2])&&u(i,o,t,t[82],n?a(o,t[82],e,He):f(t[82]),Pe)},i(t){n||(tt(l,t),n=!0)},o(t){et(l,t),n=!1},d(t){l&&l.d(t)}}}function Qe(t){let e,n,o=t[24],i=[];for(let e=0;eet(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t{r[c]=null})),Z(),n=r[e],n?n.p(t,i):(n=r[e]=l[e](t),n.c()),tt(n,1),n.m(o.parentNode,o))},i(t){i||(tt(n),i=!0)},o(t){et(n),i=!1},d(t){r[e].d(t),t&&h(o)}}}function ln(t){let e,n;const o=t[83].selection,i=s(o,t,t[82],Ce),l=i||function(t){let e,n=t[3][t[12]]+"";return{c(){e=w(n)},m(t,n){m(t,e,n)},p(t,o){4104&o[0]&&n!==(n=t[3][t[12]]+"")&&S(e,n)},d(t){t&&h(e)}}}(t);return{c(){e=y("div"),l&&l.c(),E(e,"class","selected-item svelte-82qwg8"),C(e,"hide-selected-item",t[35])},m(t,o){m(t,e,o),l&&l.m(e,null),n=!0},p(t,r){i?i.p&&(!n||8&r[0]|1048576&r[2])&&u(i,o,t,t[82],n?a(o,t[82],r,_e):f(t[82]),Ce):l&&l.p&&(!n||4104&r[0])&&l.p(t,n?r:[-1,-1,-1,-1,-1]),(!n||16&r[1])&&C(e,"hide-selected-item",t[35])},i(t){n||(tt(l,t),n=!0)},o(t){et(l,t),n=!1},d(t){t&&h(e),l&&l.d(t)}}}function rn(t){let e,n,o=t[3],i=[];for(let e=0;eet(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t{T=null})),Z()):T?(T.p(t,o),3072&o[0]&&tt(T,1)):(T=sn(t),T.c(),tt(T,1),T.m(e,l)),(!r||67108864&o[0])&&C(e,"active",t[26]===t[128]),(!r||2048&o[0])&&C(e,"disabled",t[11])},i(t){r||(tt(b,t),tt(T),r=!0)},o(t){et(b,t),et(T),r=!1},d(t){t&&h(e),b&&b.d(t),T&&T.d(),c=!1,i(d)}}}function an(t){let e,n;const o=t[83]["loading-icon"],i=s(o,t,t[82],Se),l=i||function(){let t,e;return t=new ve({}),{c(){nt(t.$$.fragment)},m(n,o){ot(t,n,o),e=!0},i(n){e||(tt(t.$$.fragment,n),e=!0)},o(n){et(t.$$.fragment,n),e=!1},d(e){it(t,e)}}}();return{c(){e=y("div"),l&&l.c(),E(e,"class","icon loading svelte-82qwg8"),E(e,"aria-hidden","true")},m(t,o){m(t,e,o),l&&l.m(e,null),n=!0},p(t,e){i&&i.p&&(!n||1048576&e[2])&&u(i,o,t,t[82],n?a(o,t[82],e,Le):f(t[82]),Se)},i(t){n||(tt(l,t),n=!0)},o(t){et(l,t),n=!1},d(t){t&&h(e),l&&l.d(t)}}}function un(t){let e,n,o,i;const l=t[83]["clear-icon"],r=s(l,t,t[82],Te),c=r||function(){let t,e;return t=new ge({}),{c(){nt(t.$$.fragment)},m(n,o){ot(t,n,o),e=!0},i(n){e||(tt(t.$$.fragment,n),e=!0)},o(n){et(t.$$.fragment,n),e=!1},d(e){it(t,e)}}}();return{c(){e=y("button"),c&&c.c(),E(e,"type","button"),E(e,"class","icon clear-select svelte-82qwg8")},m(l,r){m(l,e,r),c&&c.m(e,null),n=!0,o||(i=x(e,"click",t[22]),o=!0)},p(t,e){r&&r.p&&(!n||1048576&e[2])&&u(r,l,t,t[82],n?a(l,t[82],e,Ee):f(t[82]),Te)},i(t){n||(tt(c,t),n=!0)},o(t){et(c,t),n=!1},d(t){t&&h(e),c&&c.d(t),o=!1,i()}}}function fn(t){let e,n;const o=t[83]["chevron-icon"],i=s(o,t,t[82],Oe),l=i||function(){let t,e;return t=new me({}),{c(){nt(t.$$.fragment)},m(n,o){ot(t,n,o),e=!0},i(n){e||(tt(t.$$.fragment,n),e=!0)},o(n){et(t.$$.fragment,n),e=!1},d(e){it(t,e)}}}();return{c(){e=y("div"),l&&l.c(),E(e,"class","icon chevron svelte-82qwg8"),E(e,"aria-hidden","true")},m(t,o){m(t,e,o),l&&l.m(e,null),n=!0},p(t,e){i&&i.p&&(!n||64&e[0]|1048576&e[2])&&u(i,o,t,t[82],n?a(o,t[82],e,ke):f(t[82]),Oe)},i(t){n||(tt(l,t),n=!0)},o(t){et(l,t),n=!1},d(t){t&&h(e),l&&l.d(t)}}}function dn(e){let n;const o=e[83].required,i=s(o,e,e[82],$e),l=i||function(){let e;return{c(){e=y("select"),E(e,"class","required svelte-82qwg8"),e.required=!0,E(e,"tabindex","-1"),E(e,"aria-hidden","true")},m(t,n){m(t,e,n)},p:t,d(t){t&&h(e)}}}();return{c(){l&&l.c()},m(t,e){l&&l.m(t,e),n=!0},p(t,e){i&&i.p&&(!n||8&e[0]|1048576&e[2])&&u(i,o,t,t[82],n?a(o,t[82],e,we):f(t[82]),$e)},i(t){n||(tt(l,t),n=!0)},o(t){et(l,t),n=!1},d(t){l&&l.d(t)}}}function pn(t){let n,o,l,r,c,g,v,w,b,O,T,S,I,A,D,q,F,R,B,j,W=t[6]&&Je(t),H=t[2]&&nn(t);const P=t[83].prepend,N=s(P,t,t[82],Be);let M=t[25]&&on(t),V=[{readOnly:O=!t[17]},t[27],{placeholder:t[33]},{style:t[18]},{disabled:t[11]}],z={};for(let t=0;t{W=null})),Z()),t[2]?H?H.p(t,e):(H=nn(t),H.c(),H.m(l,null)):H&&(H.d(1),H=null),N&&N.p&&(!R||1048576&e[2])&&u(N,P,t,t[82],R?a(P,t[82],e,Re):f(t[82]),Be),t[25]?M?(M.p(t,e),33554432&e[0]&&tt(M,1)):(M=on(t),M.c(),tt(M,1),M.m(v,w)):M&&(Q(),et(M,1,1,(()=>{M=null})),Z()),L(b,z=function(t,e){const n={},o={},i={$$scope:1};let l=t.length;for(;l--;){const r=t[l],s=e[l];if(s){for(const t in r)t in s||(o[t]=1);for(const t in s)i[t]||(n[t]=s[t],i[t]=1);t[l]=s}else for(const t in r)i[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}(V,[(!R||131072&e[0]&&O!==(O=!t[17]))&&{readOnly:O},134217728&e[0]&&t[27],(!R||4&e[1])&&{placeholder:t[33]},(!R||262144&e[0])&&{style:t[18]},(!R||2048&e[0])&&{disabled:t[11]}])),16&e[0]&&b.value!==t[4]&&_(b,t[4]),C(b,"svelte-82qwg8",!0),t[5]?G?(G.p(t,e),32&e[0]&&tt(G,1)):(G=an(t),G.c(),tt(G,1),G.m(S,I)):G&&(Q(),et(G,1,1,(()=>{G=null})),Z()),t[34]?Y?(Y.p(t,e),8&e[1]&&tt(Y,1)):(Y=un(t),Y.c(),tt(Y,1),Y.m(S,A)):Y&&(Q(),et(Y,1,1,(()=>{Y=null})),Z()),t[20]?U?(U.p(t,e),1048576&e[0]&&tt(U,1)):(U=fn(t),U.c(),tt(U,1),U.m(S,null)):U&&(Q(),et(U,1,1,(()=>{U=null})),Z()),X?X.p&&(!R||8&e[0]|1048576&e[2])&&u(X,J,t,t[82],R?a(J,t[82],e,be):f(t[82]),xe):K&&K.p&&(!R||264&e[0])&&K.p(t,R?e:[-1,-1,-1,-1,-1]),!t[16]||t[3]&&0!==t[3].length?nt&&(Q(),et(nt,1,1,(()=>{nt=null})),Z()):nt?(nt.p(t,e),65544&e[0]&&tt(nt,1)):(nt=dn(t),nt.c(),tt(nt,1),nt.m(n,null)),(!R||2097152&e[0]&&F!==(F="svelte-select "+t[21]+" svelte-82qwg8"))&&E(n,"class",F),(!R||16384&e[0])&&E(n,"style",t[14]),(!R||2097664&e[0])&&C(n,"multi",t[9]),(!R||2099200&e[0])&&C(n,"disabled",t[11]),(!R||2097156&e[0])&&C(n,"focused",t[2]),(!R||2097216&e[0])&&C(n,"list-open",t[6]),(!R||3145728&e[0])&&C(n,"show-chevron",t[20]),(!R||2129920&e[0])&&C(n,"error",t[15])},i(t){R||(tt(W),tt(N,t),tt(M),tt(G),tt(Y),tt(U),tt(K,t),tt(nt),R=!0)},o(t){et(W),et(N,t),et(M),et(G),et(Y),et(U),et(K,t),et(nt),R=!1},d(e){e&&h(n),W&&W.d(),H&&H.d(),N&&N.d(e),M&&M.d(),t[94](null),G&&G.d(),Y&&Y.d(),U&&U.d(),K&&K.d(e),nt&&nt.d(),t[96](null),B=!1,i(j)}}}function mn(t){return t.map(((t,e)=>({index:e,value:t,label:`${t}`})))}function hn(t,e,n){let o,i,l,r,s,c,a,u,f,{$$slots:d={},$$scope:p}=e;const m=function(t){const e={};for(const n in t)e[n]=!0;return e}(d),h=R();let{justValue:g=null}=e,{filter:y=fe}=e,{getItems:v=de}=e,{id:w=null}=e,{name:$=null}=e,{container:b}=e,{input:x}=e,{multiple:k=!1}=e,{multiFullItemClearable:O=!1}=e,{disabled:E=!1}=e,{focused:T=!1}=e,{value:L=null}=e,{filterText:S=""}=e,{placeholder:_="Please select"}=e,{placeholderAlwaysShow:C=!1}=e,{items:I=null}=e,{label:A="label"}=e,{itemFilter:j=(t,e,n)=>`${t}`.toLowerCase().includes(e.toLowerCase())}=e,{groupBy:H}=e,{groupFilter:P=t=>t}=e,{groupHeaderSelectable:N=!1}=e,{itemId:M="value"}=e,{loadOptions:V}=e,{containerStyles:z=""}=e,{hasError:G=!1}=e,{filterSelectedItems:Y=!0}=e,{required:U=!1}=e,{closeListOnChange:J=!0}=e,{clearFilterTextOnBlur:X=!0}=e,{createGroupHeaderItem:K=(t,e)=>({value:t,[A]:t})}=e;let Q,Z,tt,et,nt,ot,{searchable:it=!0}=e,{inputStyles:lt=""}=e,{clearable:rt=!0}=e,{loading:st=!1}=e,{listOpen:ct=!1}=e,{debounce:at=(t,e=1)=>{clearTimeout(Q),Q=setTimeout(t,e)}}=e,{debounceWait:ut=300}=e,{hideEmptyState:ft=!1}=e,{inputAttributes:dt={}}=e,{listAutoWidth:pt=!0}=e,{showChevron:mt=!1}=e,{listOffset:ht=5}=e,{hoverItemIndex:gt=0}=e,{floatingConfig:yt={}}=e,{class:vt=""}=e;function wt(t){const e=[],n={};t.forEach((t=>{const o=H(t);e.includes(o)||(e.push(o),n[o]=[],o&&n[o].push(Object.assign(K(o,t),{id:o,groupHeader:!0,selectable:N}))),n[o].push(Object.assign({groupItem:!!o},t))}));const o=[];return P(e).forEach((t=>{n[t]&&o.push(...n[t])})),o}function $t(t=0,e){n(7,gt=t<0?0:t),!e&&H&&a[gt]&&!a[gt].selectable&&jt(1)}var bt;function xt(){let t=!0;if(L){const e=[],o=[];L.forEach((n=>{e.includes(n[M])?t=!1:(e.push(n[M]),o.push(n))})),t||n(3,L=o)}return t}function kt(t){let e=t?t[M]:L[M];return I.find((t=>t[M]===e))}async function Ot(t){const e=L[t];1===L.length?n(3,L=void 0):n(3,L=L.filter((t=>t!==e))),h("clear",e)}function Et(t){T&&x===document?.activeElement||(t&&h("focus",t),x?.focus(),n(2,T=!0))}async function Tt(t){qt||(ct||T)&&(h("blur",t),Lt(),n(2,T=!1),n(26,Z=void 0),x?.blur())}function Lt(){X&&n(4,S=""),n(6,ct=!1)}bt=async()=>{n(78,tt=L),n(79,et=S),n(80,nt=k)},D().$$.before_update.push(bt),q((()=>{ct&&n(2,T=!0),T&&x&&x.focus()}));let{ariaValues:St=t=>`Option ${t}, selected.`}=e,{ariaListOpen:_t=(t,e)=>`You are currently focused on option ${t}. There are ${e} results available.`}=e,{ariaFocused:Ct=()=>"Select is focused, type to refine list, press down to open the menu."}=e;let It,At=null;function Dt(){clearTimeout(It),It=setTimeout((()=>{qt=!1}),100)}F((()=>{At?.remove()}));let qt=!1;function Ft(t){t&&!1!==t.selectable&&function(t){if(t){n(4,S="");const e=Object.assign({},t);if(e.groupHeader&&!e.selectable)return;n(3,L=k?L?L.concat([e]):[e]:n(3,L=e)),setTimeout((()=>{J&&Lt(),n(26,Z=void 0),h("change",L),h("select",t)}))}}(t)}function Rt(t){qt||n(7,gt=t)}function Bt(t){const{item:e,i:o}=t;if(!1!==e?.selectable)return L&&!k&&L[M]===e[M]?Lt():void(function(t){return t.groupHeader&&t.selectable||t.selectable||!t.hasOwnProperty("selectable")}(e)&&(n(7,gt=o),Ft(e)))}function jt(t){if(0===a.filter((t=>!Object.hasOwn(t,"selectable")||!0===t.selectable)).length)return n(7,gt=0);t>0&>===a.length-1?n(7,gt=0):n(7,t<0&&0===gt?gt=a.length-1:gt+=t);const e=a[gt];e&&!1===e.selectable&&(1!==t&&-1!==t||jt(t))}const Wt=Pt,Ht=Pt;function Pt(t){return{update(e){e.scroll&&(Dt(),t.scrollIntoView({behavior:"auto",block:"nearest"}))}}}let Nt={strategy:"absolute",placement:"bottom-start",middleware:[re(ht),ce(),se()],autoUpdate:!1};const[Mt,Vt,zt]=ue(Nt);let Gt=!0;return t.$$set=t=>{"justValue"in t&&n(52,g=t.justValue),"filter"in t&&n(53,y=t.filter),"getItems"in t&&n(54,v=t.getItems),"id"in t&&n(55,w=t.id),"name"in t&&n(8,$=t.name),"container"in t&&n(0,b=t.container),"input"in t&&n(1,x=t.input),"multiple"in t&&n(9,k=t.multiple),"multiFullItemClearable"in t&&n(10,O=t.multiFullItemClearable),"disabled"in t&&n(11,E=t.disabled),"focused"in t&&n(2,T=t.focused),"value"in t&&n(3,L=t.value),"filterText"in t&&n(4,S=t.filterText),"placeholder"in t&&n(56,_=t.placeholder),"placeholderAlwaysShow"in t&&n(57,C=t.placeholderAlwaysShow),"items"in t&&n(51,I=t.items),"label"in t&&n(12,A=t.label),"itemFilter"in t&&n(58,j=t.itemFilter),"groupBy"in t&&n(59,H=t.groupBy),"groupFilter"in t&&n(60,P=t.groupFilter),"groupHeaderSelectable"in t&&n(61,N=t.groupHeaderSelectable),"itemId"in t&&n(13,M=t.itemId),"loadOptions"in t&&n(62,V=t.loadOptions),"containerStyles"in t&&n(14,z=t.containerStyles),"hasError"in t&&n(15,G=t.hasError),"filterSelectedItems"in t&&n(63,Y=t.filterSelectedItems),"required"in t&&n(16,U=t.required),"closeListOnChange"in t&&n(64,J=t.closeListOnChange),"clearFilterTextOnBlur"in t&&n(65,X=t.clearFilterTextOnBlur),"createGroupHeaderItem"in t&&n(66,K=t.createGroupHeaderItem),"searchable"in t&&n(17,it=t.searchable),"inputStyles"in t&&n(18,lt=t.inputStyles),"clearable"in t&&n(68,rt=t.clearable),"loading"in t&&n(5,st=t.loading),"listOpen"in t&&n(6,ct=t.listOpen),"debounce"in t&&n(69,at=t.debounce),"debounceWait"in t&&n(70,ut=t.debounceWait),"hideEmptyState"in t&&n(19,ft=t.hideEmptyState),"inputAttributes"in t&&n(71,dt=t.inputAttributes),"listAutoWidth"in t&&n(72,pt=t.listAutoWidth),"showChevron"in t&&n(20,mt=t.showChevron),"listOffset"in t&&n(73,ht=t.listOffset),"hoverItemIndex"in t&&n(7,gt=t.hoverItemIndex),"floatingConfig"in t&&n(74,yt=t.floatingConfig),"class"in t&&n(21,vt=t.class),"ariaValues"in t&&n(75,St=t.ariaValues),"ariaListOpen"in t&&n(76,_t=t.ariaListOpen),"ariaFocused"in t&&n(77,Ct=t.ariaFocused),"$$scope"in t&&n(82,p=t.$$scope)},t.$$.update=()=>{8&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&L&&function(){if("string"==typeof L){let t=(I||[]).find((t=>t[M]===L));n(3,L=t||{[M]:L,label:L})}else k&&Array.isArray(L)&&L.length>0&&n(3,L=L.map((t=>"string"==typeof t?{value:t,label:t}:t)))}(),131072&t.$$.dirty[0]|512&t.$$.dirty[2]&&(!dt&&it||(n(27,ot=Object.assign({autocapitalize:"none",autocomplete:"off",autocorrect:"off",spellcheck:!1,tabindex:0,type:"text","aria-autocomplete":"list"},dt)),w&&n(27,ot.id=w,ot),it||n(27,ot.readonly=!0,ot))),512&t.$$.dirty[0]&&k&&L&&(Array.isArray(L)?n(3,L=[...L]):n(3,L=[L])),512&t.$$.dirty[0]|262144&t.$$.dirty[2]&&nt&&!k&&L&&n(3,L=null),520&t.$$.dirty[0]&&k&&L&&L.length>1&&xt(),8&t.$$.dirty[0]&&L&&(k?JSON.stringify(L)!==JSON.stringify(tt)&&xt()&&h("input",L):tt&&JSON.stringify(L[M])===JSON.stringify(tt[M])||h("input",L)),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&!L&&k&&tt&&h("input",L),6&t.$$.dirty[0]&&!T&&x&&Lt(),16&t.$$.dirty[0]|131072&t.$$.dirty[2]&&S!==et&&(V||0!==S.length)&&(V?at((async function(){n(5,st=!0);let t=await v({dispatch:h,loadOptions:V,convertStringItemsToObjects:mn,filterText:S});t?(n(5,st=t.loading),n(6,ct=ct?t.listOpen:S.length>0),n(2,T=ct&&t.focused),n(51,I=H?wt(t.filteredItems):t.filteredItems)):(n(5,st=!1),n(2,T=!0),n(6,ct=!0))}),ut):(n(6,ct=!0),k&&n(26,Z=void 0))),12824&t.$$.dirty[0]|407896064&t.$$.dirty[1]|3&t.$$.dirty[2]&&n(24,a=y({loadOptions:V,filterText:S,items:I,multiple:k,value:L,itemId:M,groupBy:H,label:A,filterSelectedItems:Y,itemFilter:j,convertStringItemsToObjects:mn,filterGroupedItems:wt})),16777800&t.$$.dirty[0]&&!k&&ct&&L&&a&&$t(a.findIndex((t=>t[M]===L[M])),!0),576&t.$$.dirty[0]&&ct&&k&&n(7,gt=0),16&t.$$.dirty[0]&&S&&n(7,gt=0),128&t.$$.dirty[0]&&h("hoverItem",gt),520&t.$$.dirty[0]&&n(25,o=k?L&&L.length>0:L),33554448&t.$$.dirty[0]&&n(35,i=o&&S.length>0),33556512&t.$$.dirty[0]|64&t.$$.dirty[2]&&n(34,l=o&&rt&&!E&&!st),520&t.$$.dirty[0]|100663296&t.$$.dirty[1]&&n(33,r=C&&k||k&&0===L?.length?_:L?"":_),520&t.$$.dirty[0]&&n(32,s=L?function(t){let e;return e=t&&L.length>0?L.map((t=>t[A])).join(", "):L[A],St(e)}(k):""),16777412&t.$$.dirty[0]&&n(31,c=function(){if(!a||0===a.length)return"";let t=a[gt];if(ct&&t){let e=a?a.length:0;return _t(t[A],e)}return Ct()}()),1048576&t.$$.dirty[1]&&function(t){t&&0!==t.length&&!t.some((t=>"object"!=typeof t))&&L&&(k?!L.some((t=>!t||!t[M])):L[M])&&(Array.isArray(L)?n(3,L=L.map((t=>kt(t)||t))):n(3,L=kt()||L))}(I),8712&t.$$.dirty[0]&&n(52,g=k?L?L.map((t=>t[M])):null:L?L[M]:L),520&t.$$.dirty[0]|65536&t.$$.dirty[2]&&(k||!tt||L||h("input",L)),16777800&t.$$.dirty[0]&&ct&&a&&!k&&!L&&$t(),16777216&t.$$.dirty[0]&&function(t){ct&&h("filter",t)}(a),1&t.$$.dirty[0]|4096&t.$$.dirty[2]&&b&&void 0===yt?.autoUpdate&&n(81,Nt.autoUpdate=!0,Nt),1&t.$$.dirty[0]|528384&t.$$.dirty[2]&&b&&yt&&zt(Object.assign(Nt,yt)),8388608&t.$$.dirty[0]&&n(30,u=!!At),8388672&t.$$.dirty[0]&&function(t,e){if(!t||!e)return n(28,Gt=!0);setTimeout((()=>{n(28,Gt=!1)}),0)}(At,ct),8388673&t.$$.dirty[0]&&ct&&b&&At&&function(){const{width:t}=b.getBoundingClientRect();n(23,At.style.width=pt?t+"px":"auto",At)}(),128&t.$$.dirty[0]&&n(29,f=gt),70&t.$$.dirty[0]&&x&&ct&&!T&&Et()},[b,x,T,L,S,st,ct,gt,$,k,O,E,A,M,z,G,U,it,lt,ft,mt,vt,function(){h("clear",L),n(3,L=void 0),Lt(),Et()},At,a,o,Z,ot,Gt,f,u,c,s,r,l,i,Ot,function(t){if(T)switch(t.stopPropagation(),t.key){case"Escape":t.preventDefault(),Lt();break;case"Enter":if(t.preventDefault(),ct){if(0===a.length)break;const t=a[gt];if(L&&!k&&L[M]===t[M]){Lt();break}Ft(a[gt])}break;case"ArrowDown":t.preventDefault(),ct?jt(1):(n(6,ct=!0),n(26,Z=void 0));break;case"ArrowUp":t.preventDefault(),ct?jt(-1):(n(6,ct=!0),n(26,Z=void 0));break;case"Tab":if(ct&&T){if(0===a.length||L&&L[M]===a[gt][M])return Lt();t.preventDefault(),Ft(a[gt]),Lt()}break;case"Backspace":if(!k||S.length>0)return;if(k&&L&&L.length>0){if(Ot(void 0!==Z?Z:L.length-1),0===Z||void 0===Z)break;n(26,Z=L.length>Z?Z-1:void 0)}break;case"ArrowLeft":if(!L||!k||S.length>0)return;void 0===Z?n(26,Z=L.length-1):L.length>Z&&0!==Z&&n(26,Z-=1);break;case"ArrowRight":if(!L||!k||S.length>0||void 0===Z)return;Z===L.length-1?n(26,Z=void 0):Z0?n(6,ct=!0):void n(6,ct=!ct)},Dt,function(t){ct||T||!b||b.contains(t.target)||At?.contains(t.target)||Tt()},Rt,Bt,function(t,e,n){if(!k)return e&&e[n]===t[n]},Wt,Ht,Mt,Vt,m,I,g,y,v,w,_,C,j,H,P,N,V,Y,J,X,K,()=>a,rt,at,ut,dt,pt,ht,yt,St,_t,Ct,tt,et,nt,Nt,p,d,function(e){B.call(this,t,e)},function(e){B.call(this,t,e)},function(e){B.call(this,t,e)},function(e){B.call(this,t,e)},t=>Rt(t),t=>Rt(t),(t,e)=>Bt({item:t,i:e}),function(t){W[t?"unshift":"push"]((()=>{At=t,n(23,At)}))},t=>Ot(t),t=>O?Ot(t):{},function(t){W[t?"unshift":"push"]((()=>{x=t,n(1,x)}))},function(){S=this.value,n(4,S)},function(t){W[t?"unshift":"push"]((()=>{b=t,n(0,b)}))}]}class gn extends rt{constructor(t){super(),lt(this,t,hn,pn,r,{justValue:52,filter:53,getItems:54,id:55,name:8,container:0,input:1,multiple:9,multiFullItemClearable:10,disabled:11,focused:2,value:3,filterText:4,placeholder:56,placeholderAlwaysShow:57,items:51,label:12,itemFilter:58,groupBy:59,groupFilter:60,groupHeaderSelectable:61,itemId:13,loadOptions:62,containerStyles:14,hasError:15,filterSelectedItems:63,required:16,closeListOnChange:64,clearFilterTextOnBlur:65,createGroupHeaderItem:66,getFilteredItems:67,searchable:17,inputStyles:18,clearable:68,loading:5,listOpen:6,debounce:69,debounceWait:70,hideEmptyState:19,inputAttributes:71,listAutoWidth:72,showChevron:20,listOffset:73,hoverItemIndex:7,floatingConfig:74,class:21,handleClear:22,ariaValues:75,ariaListOpen:76,ariaFocused:77},null,[-1,-1,-1,-1,-1])}get getFilteredItems(){return this.$$.ctx[67]}get handleClear(){return this.$$.ctx[22]}}function yn(t){let e,n;return e=new gn({props:{items:t[0].sort(vn).map(wn),multiple:!0,placeholder:"Select composers"}}),e.$on("change",t[3]),e.$on("clear",t[4]),{c(){nt(e.$$.fragment)},m(t,o){ot(e,t,o),n=!0},p(t,[n]){const o={};1&n&&(o.items=t[0].sort(vn).map(wn)),e.$set(o)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){it(e,t)}}}const vn=t=>t.last_name,wn=t=>({label:`${t.last_name}, ${t.first_names}`,value:t.full_name});function $n(t,e,n){let{composerListWithMetadata:o=[]}=e;const i=R();function l(t){const e=t.map((t=>t.value));i("selectionChange",e)}function r(t){i("unselected",t.value)}return t.$$set=t=>{"composerListWithMetadata"in t&&n(0,o=t.composerListWithMetadata)},[o,l,r,t=>l(t.detail),t=>r(t.detail)]}class bn extends rt{constructor(t){super(),lt(this,t,$n,yn,r,{composerListWithMetadata:0})}}function xn(t,e,n){const o=t.slice();return o[4]=e[n],o}function kn(t,e,n){const o=t.slice();return o[7]=e[n],o}function On(t){let e,n,o,i,l,r,s=t[0].full_name+"";return{c(){e=y("h3"),n=y("a"),o=y("i"),l=$(),r=w(s),E(o,"class","fab fa-wikipedia-w"),E(n,"href",i=t[0].wikipedia_url),E(n,"class","icon"),E(n,"target","_blank"),E(n,"title","Go to Wikipedia")},m(t,i){m(t,e,i),p(e,n),p(n,o),p(e,l),p(e,r)},p(t,e){1&e&&i!==(i=t[0].wikipedia_url)&&E(n,"href",i),1&e&&s!==(s=t[0].full_name+"")&&S(r,s)},d(t){t&&h(e)}}}function En(t){let e,n=t[0].events,o=[];for(let e=0;e0||e[0].compositions.length>0)&&On(e),r=e[2]&&En(e),s=e[1]&&Ln(e);return{c(){n=y("div"),l&&l.c(),o=$(),r&&r.c(),i=$(),s&&s.c(),E(n,"class","composer-events svelte-9nu9w1")},m(t,e){m(t,n,e),l&&l.m(n,null),p(n,o),r&&r.m(n,null),p(n,i),s&&s.m(n,null)},p(t,[e]){t[0].events.length>0||t[0].compositions.length>0?l?l.p(t,e):(l=On(t),l.c(),l.m(n,o)):l&&(l.d(1),l=null),t[2]?r?r.p(t,e):(r=En(t),r.c(),r.m(n,i)):r&&(r.d(1),r=null),t[1]?s?s.p(t,e):(s=Ln(t),s.c(),s.m(n,null)):s&&(s.d(1),s=null)},i:t,o:t,d(t){t&&h(n),l&&l.d(),r&&r.d(),s&&s.d()}}}function Cn(t,e,n){let{composerData:o}=e,{showWorks:i=!0}=e,{showLifeEvents:l=!0}=e;return t.$$set=t=>{"composerData"in t&&n(0,o=t.composerData),"showWorks"in t&&n(1,i=t.showWorks),"showLifeEvents"in t&&n(2,l=t.showLifeEvents)},[o,i,l,function(t){return encodeURIComponent(o.last_name+" "+t.title)}]}class In extends rt{constructor(t){super(),lt(this,t,Cn,_n,r,{composerData:0,showWorks:1,showLifeEvents:2})}}function An(t,e,n){const o=t.slice();return o[1]=e[n],o}function Dn(t){let e,n,o,i,l;return{c(){e=y("h3"),n=y("a"),o=y("i"),l=w("\n In the world..."),E(o,"class","fab fa-wikipedia-w"),E(n,"href",i="https://en.wikipedia.org/wiki/"+t[0][0].year),E(n,"class","icon"),E(n,"target","_blank"),E(n,"title","Go to Wikipedia")},m(t,i){m(t,e,i),p(e,n),p(n,o),p(e,l)},p(t,e){1&e&&i!==(i="https://en.wikipedia.org/wiki/"+t[0][0].year)&&E(n,"href",i)},d(t){t&&h(e)}}}function qn(t){let e,n,o,i,l,r,s,c,a,u,f,d=t[1].event+"",g=t[1].city+"",v=t[1].country+"",b=t[1].summary+"";return{c(){e=y("li"),n=y("b"),o=w(d),i=w(" ("),l=w(g),r=w(", "),s=w(v),c=w(")"),a=$(),u=w(b),f=$(),E(e,"class","event-icon")},m(t,d){m(t,e,d),p(e,n),p(n,o),p(n,i),p(n,l),p(n,r),p(n,s),p(n,c),p(e,a),p(e,u),p(e,f)},p(t,e){1&e&&d!==(d=t[1].event+"")&&S(o,d),1&e&&g!==(g=t[1].city+"")&&S(l,g),1&e&&v!==(v=t[1].country+"")&&S(s,v),1&e&&b!==(b=t[1].summary+"")&&S(u,b)},d(t){t&&h(e)}}}function Fn(e){let n,o,i,l=e[0].length>0&&Dn(e),r=e[0],s=[];for(let t=0;t0?l?l.p(t,e):(l=Dn(t),l.c(),l.m(n,o)):l&&(l.d(1),l=null),1&e){let n;for(r=t[0],n=0;n{"events"in t&&n(0,o=t.events)},[o]}class Bn extends rt{constructor(t){super(),lt(this,t,Rn,Fn,r,{events:0})}}function jn(t,e,n){const o=t.slice();return o[7]=e[n],o}function Wn(t,e,n){const o=t.slice();return o[10]=e[n],o}function Hn(t){let e,n;return e=new In({props:{composerData:t[10],showWorks:t[2],showLifeEvents:t[1]}}),{c(){nt(e.$$.fragment)},m(t,o){ot(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.composerData=t[10]),4&n&&(o.showWorks=t[2]),2&n&&(o.showLifeEvents=t[1]),e.$set(o)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){it(e,t)}}}function Pn(t){let e,n;return e=new Bn({props:{events:t[7].worldEvents}}),{c(){nt(e.$$.fragment)},m(t,o){ot(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.events=t[7].worldEvents),e.$set(o)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){it(e,t)}}}function Nn(t){let e,n,o,i,l,r,s=t[7].year+"",c=t[7].selectedComposers,a=[];for(let e=0;eet(a[t],1,1,(()=>{a[t]=null}));let f=t[3]&&Pn(t);return{c(){e=y("h2"),n=w(s),o=$();for(let t=0;t{f=null})),Z())},i(t){if(!r){for(let t=0;tet(S[t],1,1,(()=>{S[t]=null}));return{c(){e=y("div"),n=y("div"),o=y("input"),l=$(),r=y("label"),r.textContent="Life events",s=$(),c=y("input"),a=$(),u=y("label"),u.textContent="Works",f=$(),d=y("input"),v=$(),w=y("label"),w.textContent="World events",b=$();for(let t=0;t{"dataByYearToDisplay"in t&&n(0,o=t.dataByYearToDisplay)},[o,i,l,r,function(){i=this.checked,n(1,i)},function(){l=this.checked,n(2,l)},function(){r=this.checked,n(3,r)}]}class zn extends rt{constructor(t){super(),lt(this,t,Vn,Mn,r,{dataByYearToDisplay:0})}}function Gn(e){let n;return{c(){n=y("div"),n.innerHTML="

This web app displays timelines of events and works for selected composers.\n Ever wondered what Haydn was about when Mozart composed his first symphony,\n what Wagner was brewing when Bizet released Carmen, or what was happening in\n the world the year Chopin released his Etudes? This app is for you!

\n

The events were collected and summarized by ChatGPT (read more here!)\n and yes, they can be janky at times, but overall I found them pretty useful.\n The compositions (and links to PDFs) are scraped from IMSLP, so only works\n in the public domain are referenced. >.

\n

Go to the project's Github page to learn more about the project and how\n to add/request other composers.

",E(n,"class","About svelte-1okaa8")},m(t,e){m(t,n,e)},p:t,i:t,o:t,d(t){t&&h(n)}}}class Yn extends rt{constructor(t){super(),lt(this,t,null,Gn,r,{})}}function Un(t){let e,n,o,i,l,r,s,c,a;return i=new bn({props:{composerListWithMetadata:t[0]}}),i.$on("selectionChange",t[2]),i.$on("unselected",t[3]),r=new zn({props:{dataByYearToDisplay:t[1]}}),c=new Yn({}),{c(){e=y("main"),n=y("h1"),n.textContent="Composer Timelines",o=$(),nt(i.$$.fragment),l=$(),nt(r.$$.fragment),s=$(),nt(c.$$.fragment),E(n,"class","svelte-1nn1qc0"),E(e,"class","svelte-1nn1qc0")},m(t,u){m(t,e,u),p(e,n),p(e,o),ot(i,e,null),p(e,l),ot(r,e,null),p(e,s),ot(c,e,null),a=!0},p(t,[e]){const n={};1&e&&(n.composerListWithMetadata=t[0]),i.$set(n);const o={};2&e&&(o.dataByYearToDisplay=t[1]),r.$set(o)},i(t){a||(tt(i.$$.fragment,t),tt(r.$$.fragment,t),tt(c.$$.fragment,t),a=!0)},o(t){et(i.$$.fragment,t),et(r.$$.fragment,t),et(c.$$.fragment,t),a=!1},d(t){t&&h(e),it(i),it(r),it(c)}}}function Jn(t,e,n){let o=[],i=[],l={},r={},s=[];return q((async()=>{const t=await fetch("/data/composer_list_with_metadata.json");n(0,o=await t.json());const e=await fetch("/data/year_world_events.json");n(6,r=await e.json())})),t.$$.update=()=>{if(112&t.$$.dirty){let t=new Set;i.filter((t=>l[t])).forEach((e=>{l[e].events.forEach((e=>t.add(e.year))),l[e].compositions.forEach((e=>t.add(e.year)))}));let e=Array.from(t).filter((t=>t)).sort(((t,e)=>t-e));n(1,s=e.map((t=>({year:t,worldEvents:r[t],selectedComposers:i.filter((t=>l[t])).map((e=>({full_name:e,last_name:l[e].last_name,wikipedia_url:l[e].wikipedia_url,events:l[e].events.filter((e=>e.year===t)),compositions:l[e].compositions.filter((e=>e.year===t))})))}))))}},[o,s,async function(t){n(4,i=t.detail);for(const t of i)if(!l[t]){const e=await fetch(`/data/composer_data/${t}.json`),o=await e.json();n(5,l={...l,[t]:o})}},function(t){n(4,i=i.filter((e=>e!=t.detail)))},i,l,r]}return new class extends rt{constructor(t){super(),lt(this,t,Jn,Un,r,{})}}({target:document.body,props:{name:"world"}})}(); +//# sourceMappingURL=bundle.js.map diff --git a/build/bundle.js.map b/build/bundle.js.map new file mode 100644 index 0000000..47dad01 --- /dev/null +++ b/build/bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../node_modules/svelte-floating-ui/index.js","../../node_modules/svelte-select/filter.js","../../node_modules/svelte-select/get-items.js","../../node_modules/svelte-select/ChevronIcon.svelte","../../node_modules/svelte-select/ClearIcon.svelte","../../node_modules/svelte-select/LoadingIcon.svelte","../../node_modules/svelte-select/Select.svelte","../../src/components/ComposerSelector.svelte","../../src/components/ComposerEvents.svelte","../../src/components/YearWorldEvents.svelte","../../src/components/YearByYearDisplay.svelte","../../src/components/About.svelte","../../src/App.svelte","../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\n// Adapted from https://github.com/then/is-promise/blob/master/index.js\n// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE\nfunction is_promise(value) {\n return !!value && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nlet src_url_equal_anchor;\nfunction src_url_equal(element_src, url) {\n if (!src_url_equal_anchor) {\n src_url_equal_anchor = document.createElement('a');\n }\n src_url_equal_anchor.href = url;\n return element_src === src_url_equal_anchor.href;\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn);\n}\nfunction get_all_dirty_from_scope($$scope) {\n if ($$scope.ctx.length > 32) {\n const dirty = [];\n const length = $$scope.ctx.length / 32;\n for (let i = 0; i < length; i++) {\n dirty[i] = -1;\n }\n return dirty;\n }\n return -1;\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\nfunction split_css_unit(value) {\n const split = typeof value === 'string' && value.match(/^\\s*(-?[\\d.]+)([^\\s]*)\\s*$/);\n return split ? [parseFloat(split[1]), split[2] || 'px'] : [value, 'px'];\n}\nconst contenteditable_truthy_values = ['', true, 1, 'true', 'contenteditable'];\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\n/**\n * Resize observer singleton.\n * One listener per element only!\n * https://groups.google.com/a/chromium.org/g/blink-dev/c/z6ienONUb5A/m/F5-VcUZtBAAJ\n */\nclass ResizeObserverSingleton {\n constructor(options) {\n this.options = options;\n this._listeners = 'WeakMap' in globals ? new WeakMap() : undefined;\n }\n observe(element, listener) {\n this._listeners.set(element, listener);\n this._getObserver().observe(element, this.options);\n return () => {\n this._listeners.delete(element);\n this._observer.unobserve(element); // this line can probably be removed\n };\n }\n _getObserver() {\n var _a;\n return (_a = this._observer) !== null && _a !== void 0 ? _a : (this._observer = new ResizeObserver((entries) => {\n var _a;\n for (const entry of entries) {\n ResizeObserverSingleton.entries.set(entry.target, entry);\n (_a = this._listeners.get(entry.target)) === null || _a === void 0 ? void 0 : _a(entry);\n }\n }));\n }\n}\n// Needs to be written like this to pass the tree-shake-test\nResizeObserverSingleton.entries = 'WeakMap' in globals ? new WeakMap() : undefined;\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached if target is not \n let children = target.childNodes;\n // If target is , there may be children without claim_order\n if (target.nodeName === 'HEAD') {\n const myChildren = [];\n for (let i = 0; i < children.length; i++) {\n const node = children[i];\n if (node.claim_order !== undefined) {\n myChildren.push(node);\n }\n }\n children = myChildren;\n }\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n // with fast path for when we are on the current longest subsequence\n const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction append_styles(target, style_sheet_id, styles) {\n const append_styles_to = get_root_for_style(target);\n if (!append_styles_to.getElementById(style_sheet_id)) {\n const style = element('style');\n style.id = style_sheet_id;\n style.textContent = styles;\n append_stylesheet(append_styles_to, style);\n }\n}\nfunction get_root_for_style(node) {\n if (!node)\n return document;\n const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n if (root && root.host) {\n return root;\n }\n return node.ownerDocument;\n}\nfunction append_empty_stylesheet(node) {\n const style_element = element('style');\n append_stylesheet(get_root_for_style(node), style_element);\n return style_element.sheet;\n}\nfunction append_stylesheet(node, style) {\n append(node.head || node, style);\n return style.sheet;\n}\nfunction append_hydration(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {\n target.actual_end_child = target.firstChild;\n }\n // Skip nodes of undefined ordering\n while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {\n target.actual_end_child = target.actual_end_child.nextSibling;\n }\n if (node !== target.actual_end_child) {\n // We only insert if the ordering of this node should be modified or the parent node is not target\n if (node.claim_order !== undefined || node.parentNode !== target) {\n target.insertBefore(node, target.actual_end_child);\n }\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target || node.nextSibling !== null) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction insert_hydration(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append_hydration(target, node);\n }\n else if (node.parentNode !== target || node.nextSibling != anchor) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction comment(content) {\n return document.createComment(content);\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_immediate_propagation(fn) {\n return function (event) {\n event.stopImmediatePropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction trusted(fn) {\n return function (event) {\n // @ts-ignore\n if (event.isTrusted)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\n/**\n * List of attributes that should always be set through the attr method,\n * because updating them through the property setter doesn't work reliably.\n * In the example of `width`/`height`, the problem is that the setter only\n * accepts numeric values, but the attribute can also be set to a string like `50%`.\n * If this list becomes too big, rethink this approach.\n */\nconst always_set_through_set_attribute = ['width', 'height'];\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set && always_set_through_set_attribute.indexOf(key) === -1) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data_map(node, data_map) {\n Object.keys(data_map).forEach((key) => {\n set_custom_element_data(node, key, data_map[key]);\n });\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction set_dynamic_element_data(tag) {\n return (/-/.test(tag)) ? set_custom_element_data_map : set_attributes;\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction init_binding_group(group) {\n let _inputs;\n return {\n /* push */ p(...inputs) {\n _inputs = inputs;\n _inputs.forEach(input => group.push(input));\n },\n /* remove */ r() {\n _inputs.forEach(input => group.splice(group.indexOf(input), 1));\n }\n };\n}\nfunction init_binding_group_dynamic(group, indexes) {\n let _group = get_binding_group(group);\n let _inputs;\n function get_binding_group(group) {\n for (let i = 0; i < indexes.length; i++) {\n group = group[indexes[i]] = group[indexes[i]] || [];\n }\n return group;\n }\n function push() {\n _inputs.forEach(input => _group.push(input));\n }\n function remove() {\n _inputs.forEach(input => _group.splice(_group.indexOf(input), 1));\n }\n return {\n /* update */ u(new_indexes) {\n indexes = new_indexes;\n const new_group = get_binding_group(group);\n if (new_group !== _group) {\n remove();\n _group = new_group;\n push();\n }\n },\n /* push */ p(...inputs) {\n _inputs = inputs;\n push();\n },\n /* remove */ r: remove\n };\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction init_claim_info(nodes) {\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n init_claim_info(nodes);\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else if (replacement === undefined) {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element_base(nodes, name, attributes, create_element) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n return undefined;\n }, () => create_element(name));\n}\nfunction claim_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, element);\n}\nfunction claim_svg_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, svg_element);\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n const dataStr = '' + data;\n if (node.data.startsWith(dataStr)) {\n if (node.data.length !== dataStr.length) {\n return node.splitText(dataStr.length);\n }\n }\n else {\n node.data = dataStr;\n }\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction claim_comment(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 8, (node) => {\n node.data = '' + data;\n return undefined;\n }, () => comment(data), true);\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes, is_svg) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTagHydration(undefined, is_svg);\n }\n init_claim_info(nodes);\n const html_tag_nodes = nodes.splice(start_index, end_index - start_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n const claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);\n for (const n of claimed_nodes) {\n n.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n }\n return new HtmlTagHydration(claimed_nodes, is_svg);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data === data)\n return;\n text.data = data;\n}\nfunction set_data_contenteditable(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n text.data = data;\n}\nfunction set_data_maybe_contenteditable(text, data, attr_value) {\n if (~contenteditable_truthy_values.indexOf(attr_value)) {\n set_data_contenteditable(text, data);\n }\n else {\n set_data(text, data);\n }\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n if (value == null) {\n node.style.removeProperty(key);\n }\n else {\n node.style.setProperty(key, value, important ? 'important' : '');\n }\n}\nfunction select_option(select, value, mounting) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n if (!mounting || value !== undefined) {\n select.selectedIndex = -1; // no option should be selected\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked');\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_iframe_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n // make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)\n // see https://github.com/sveltejs/svelte/issues/4233\n fn();\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nconst resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'content-box' });\nconst resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'border-box' });\nconst resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'device-pixel-content-box' });\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, bubbles, cancelable, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nfunction head_selector(nodeId, head) {\n const result = [];\n let started = 0;\n for (const node of head.childNodes) {\n if (node.nodeType === 8 /* comment node */) {\n const comment = node.textContent.trim();\n if (comment === `HEAD_${nodeId}_END`) {\n started -= 1;\n result.push(node);\n }\n else if (comment === `HEAD_${nodeId}_START`) {\n started += 1;\n result.push(node);\n }\n }\n else if (started > 0) {\n result.push(node);\n }\n }\n return result;\n}\nclass HtmlTag {\n constructor(is_svg = false) {\n this.is_svg = false;\n this.is_svg = is_svg;\n this.e = this.n = null;\n }\n c(html) {\n this.h(html);\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n if (this.is_svg)\n this.e = svg_element(target.nodeName);\n /** #7364 target for