@pie-players/pie-section-player 0.3.72 → 0.3.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +198 -37
  2. package/dist/browser/assets/evaluation-worker-DkU_wGh3.js +155241 -0
  3. package/dist/browser/chunks/ItemToolBar-wr2myaah-2ce4b643.js +1 -0
  4. package/dist/browser/chunks/PUA-tLuTiQ7--f2b27953.js +1 -0
  5. package/dist/browser/chunks/ToolCoordinator-cc2dc319.js +1 -0
  6. package/dist/browser/chunks/accents-BTUYmhn9-cafeb96e.js +1 -0
  7. package/dist/browser/chunks/accents-b-i-CngHZsLL-e0eb98fd.js +1 -0
  8. package/dist/browser/chunks/arabic-BzEHMVZD-30ac1ade.js +1 -0
  9. package/dist/browser/chunks/arrows-VjxlU-jv-2e17c192.js +1 -0
  10. package/dist/browser/chunks/base-dfd67c41.js +1 -0
  11. package/dist/browser/chunks/braille-BeWC_Ruq-a3bb8ef9.js +1 -0
  12. package/dist/browser/chunks/braille-d-Dk6J96GO-d832bfbf.js +1 -0
  13. package/dist/browser/chunks/browser-a3c32178.js +36 -0
  14. package/dist/browser/chunks/calculator-element-271c142f.js +9 -0
  15. package/dist/browser/chunks/calligraphic-Cew9cU3x-04cf0735.js +1 -0
  16. package/dist/browser/chunks/cherokee-Cny3FYho-4da7d2f3.js +1 -0
  17. package/dist/browser/chunks/classPrivateFieldGet2-338e0179.js +1 -0
  18. package/dist/browser/chunks/custom-element-define-2a92deb0.js +1 -0
  19. package/dist/browser/chunks/cyrillic-CfCDulXU-5550df0b.js +1 -0
  20. package/dist/browser/chunks/cyrillic-ss-lU7bNGG9-12eb0188.js +1 -0
  21. package/dist/browser/chunks/defineProperty-a20a667d.js +1 -0
  22. package/dist/browser/chunks/devanagari-CDIz2h-r-18c38725.js +1 -0
  23. package/dist/browser/chunks/dist-41b39e7f.js +1 -0
  24. package/dist/browser/chunks/dist-59132a53.js +1 -0
  25. package/dist/browser/chunks/dist-60d7afef.js +1 -0
  26. package/dist/browser/chunks/dist-ca9b9622.js +1 -0
  27. package/dist/browser/chunks/double-struck-BpJEQk8y-500ce8dd.js +1 -0
  28. package/dist/browser/chunks/en-5ff22e17.js +1 -0
  29. package/dist/browser/chunks/es-a0ba6cb6.js +1 -0
  30. package/dist/browser/chunks/focus-trap-44913bf3.js +1 -0
  31. package/dist/browser/chunks/fraktur-rLEq9DEH-44cc14d8.js +1 -0
  32. package/dist/browser/chunks/greek-BlraJTyL-90ce8924.js +1 -0
  33. package/dist/browser/chunks/greek-ss-D-EN2PK0-91610739.js +1 -0
  34. package/dist/browser/chunks/hebrew-GiQZeybp-b583f555.js +1 -0
  35. package/dist/browser/chunks/latin-b-BhEnC7R2-d13e06ff.js +1 -0
  36. package/dist/browser/chunks/latin-bi-DqiIKv3U-1dec8705.js +1 -0
  37. package/dist/browser/chunks/latin-i-B1xtwaE1-21637466.js +1 -0
  38. package/dist/browser/chunks/latin-xfWFlLkD-5bcea5cf.js +1 -0
  39. package/dist/browser/chunks/logger-8b07fb72.js +1 -0
  40. package/dist/browser/chunks/marrows-DD1NgMQi-15b63755.js +1 -0
  41. package/dist/browser/chunks/math-DpWn1mbG-38eeb914.js +1 -0
  42. package/dist/browser/chunks/math-rendering-ready-9a0fd90a.js +1 -0
  43. package/dist/browser/chunks/mathjax-D2JHb_R_-64780dc5.js +232 -0
  44. package/dist/browser/chunks/module-0191e321.js +74 -0
  45. package/dist/browser/chunks/module-shim-58659a86.js +0 -0
  46. package/dist/browser/chunks/module-shim-b4470740.js +12 -0
  47. package/dist/browser/chunks/monospace-D116QD2a-98d484fd.js +1 -0
  48. package/dist/browser/chunks/monospace-ex-DcXpouKS-456b403c.js +1 -0
  49. package/dist/browser/chunks/monospace-l-Ct5wkMDs-f34a4a9e.js +1 -0
  50. package/dist/browser/chunks/mshapes-DCp86WSX-c0055952.js +1 -0
  51. package/dist/browser/chunks/nds-icon-button-d602f784.js +194 -0
  52. package/dist/browser/chunks/nl-NL-364d61b9.js +1 -0
  53. package/dist/browser/chunks/nl-NL-8b7e6d4b.js +1 -0
  54. package/dist/browser/chunks/overlay-containment-edaaff13.js +1 -0
  55. package/dist/browser/chunks/overlay-placement-e8058232.js +1 -0
  56. package/dist/browser/chunks/phonetics-BwOCw2Y9-d2e3af59.js +1 -0
  57. package/dist/browser/chunks/phonetics-ss-CRtMn02f-579b6135.js +1 -0
  58. package/dist/browser/chunks/pie-api-client-687c319a.js +1 -0
  59. package/dist/browser/chunks/pie-tool-calculator-cortex-0626bc24.js +9 -0
  60. package/dist/browser/chunks/pie-tool-calculator-geogebra-561236cb.js +9 -0
  61. package/dist/browser/chunks/pointer-gesture-ce75f0a7.js +1 -0
  62. package/dist/browser/chunks/preload-helper-6ad28da3.js +1 -0
  63. package/dist/browser/chunks/provider-4c704118.js +1 -0
  64. package/dist/browser/chunks/rolldown-runtime-1287ba31.js +1 -0
  65. package/dist/browser/chunks/runtime-C7H1jS4E-64772f5e.js +8413 -0
  66. package/dist/browser/chunks/sanitize-svg-icon-b9082bba.js +3 -0
  67. package/dist/browser/chunks/sans-serif-BYPZKlE9-2efdbcd9.js +1 -0
  68. package/dist/browser/chunks/sans-serif-b-B0kRKiC--b5530dce.js +1 -0
  69. package/dist/browser/chunks/sans-serif-bi-DXWul6mu-5370dba4.js +1 -0
  70. package/dist/browser/chunks/sans-serif-ex-Boux1kMP-aa178f31.js +1 -0
  71. package/dist/browser/chunks/sans-serif-i-676RFaSO-2db54474.js +1 -0
  72. package/dist/browser/chunks/sans-serif-r-DrN9xdZt-0fc72eea.js +1 -0
  73. package/dist/browser/chunks/script-0ohehnXc-526904f4.js +1 -0
  74. package/dist/browser/chunks/shapes-BG47NodJ-d59b0eca.js +1 -0
  75. package/dist/browser/chunks/src-BcptuNS5-ed25d7fd.js +191 -0
  76. package/dist/browser/chunks/sre-engine-wf9s43gg-f09289c5.js +53 -0
  77. package/dist/browser/chunks/symbols-BqnUxf_t-83087e87.js +1 -0
  78. package/dist/browser/chunks/symbols-b-i-eg9k5hmF-9c461ac2.js +1 -0
  79. package/dist/browser/chunks/tool-annotation-toolbar-997438b4.js +248 -0
  80. package/dist/browser/chunks/tool-answer-eliminator-35483abd.js +13 -0
  81. package/dist/browser/chunks/tool-color-scheme-b7de5cdf.js +26 -0
  82. package/dist/browser/chunks/tool-dictionary-cecff3b4.js +7 -0
  83. package/dist/browser/chunks/tool-graph-cb0338e8.js +11 -0
  84. package/dist/browser/chunks/tool-host-contract-b93b482c.js +1 -0
  85. package/dist/browser/chunks/tool-line-reader-f8ef3c6a.js +62 -0
  86. package/dist/browser/chunks/tool-periodic-table-43b133b8.js +153 -0
  87. package/dist/browser/chunks/tool-picture-dictionary-33721e91.js +4 -0
  88. package/dist/browser/chunks/tool-protractor-23f77028.js +17 -0
  89. package/dist/browser/chunks/tool-ruler-1d9a03a6.js +15 -0
  90. package/dist/browser/chunks/tool-tts-inline-98c2ce7a.js +179 -0
  91. package/dist/browser/chunks/variants-2LRNhOUP-966fc49d.js +1 -0
  92. package/dist/browser/chunks/versioned-tag-54a76be9.js +1 -0
  93. package/dist/browser/pie-section-player.js +1613 -0
  94. package/dist/browser.d.ts +10 -0
  95. package/dist/chunks/ItemToolBar-wr2myaah-1287ba31.js +28 -0
  96. package/dist/chunks/module-shim-58659a86.js +2129 -0
  97. package/dist/chunks/{nl-NL-9312c316.js → nl-NL-364d61b9.js} +8 -2
  98. package/dist/chunks/sre-engine-wf9s43gg-f09289c5.js +8 -0
  99. package/dist/components/shared/composition.d.ts +0 -1
  100. package/dist/components/shared/layout-host-methods.d.ts +400 -0
  101. package/dist/components/shared/missing-tool-providers.d.ts +16 -0
  102. package/dist/components/shared/player-preload.d.ts +14 -10
  103. package/dist/contracts/host-hooks.d.ts +4 -5
  104. package/dist/contracts/host-hooks.js +0 -0
  105. package/dist/contracts/layout-contract.js +0 -0
  106. package/dist/contracts/layout-parity-metadata.js +87 -0
  107. package/dist/contracts/public-events.d.ts +14 -15
  108. package/dist/contracts/public-events.js +12 -0
  109. package/dist/contracts/runtime-host-contract.js +0 -0
  110. package/dist/controllers/SectionController.d.ts +21 -0
  111. package/dist/controllers/toolkit-section-contracts.d.ts +1 -17
  112. package/dist/controllers/types.d.ts +17 -10
  113. package/dist/pie-section-player.js +19353 -37273
  114. package/dist/policies/index.d.ts +9 -2
  115. package/dist/policies/index.js +25 -0
  116. package/package.json +34 -29
  117. package/dist/chunks/module-a516757f.js +0 -73997
  118. package/dist/chunks/nl-NL-ef6dd604.js +0 -505
  119. package/dist/chunks/pie-api-client-22de9d9c.js +0 -161
  120. package/dist/chunks/rolldown-runtime-1287ba31.js +0 -20
  121. package/dist/chunks/sre-0162a7a9.js +0 -17637
  122. package/dist/contracts/stages.d.ts +0 -10
  123. package/dist/utils/z-index.d.ts +0 -5
@@ -0,0 +1 @@
1
+ var e={common:{close:"Sluiten",cancel:"Annuleren",save:"Opslaan",reset:"Herstellen",retry:"Opnieuw proberen",back:"Terug",next:"Volgende",previous:"Vorige",submit:"Inleveren",continue:"Doorgaan",finish:"Afronden",yes:"Ja",no:"Nee",ok:"OK",any:"Alle",off:"Uit",auto:"Automatisch",all:"Alle",none:"Geen",loading:"Laden…",error:"Fout",settings:"Instellingen",language:"Taal",theme:"Thema",preview:"Voorbeeld",author:"Bewerken",unknown:"Onbekend",untitled:"Zonder titel",apply:"Toepassen",enabled:"Aan",disabled:"Uit",closeA11y:"Sluiten",settingsA11y:"Instellingenmenu openen"},player:{passage:"Tekst",passages:"Teksten",question:"Vraag",questionNumbered:"Vraag {position}",questions:"Vragen",items:"Vragen",section:"Onderdeel",loadingSection:"Onderdeel wordt geladen…",sectionLoadError:"Het onderdeel kon niet worden geladen.",loadingPassage:"Tekst wordt geladen…",configurationError:"Configuratiefout",playerError:"Fout in de speler",authoringBackendError:"Configuratiefout in de bewerkomgeving",itemLoadError:"De vraag kon niet worden geladen.",sectionTabsA11y:"Tabbladen van dit onderdeel",passagesRegionA11y:"Teksten",itemsRegionA11y:"Vragen",sectionToolsA11y:"Hulpmiddelen voor dit onderdeel",scrollDownA11y:"Omlaag scrollen",resizePanels:"Panelen verkleinen of vergroten",resizePassagesAndItemsA11y:"Panelen met teksten en vragen verkleinen of vergroten",resizeMediaRegion:"Mediagebied verkleinen of vergroten",resizeQuestionAndMediaA11y:"Panelen met vraag en media verkleinen of vergroten",resizePassageAndMediaA11y:"Panelen met tekst en media verkleinen of vergroten",assessment:{sectionPosition:"Onderdeel {position} van {total}",noSections:"Geen onderdelen",loadFailed:"De toets kon niet worden geladen. Probeer het opnieuw.",restoreFailed:"Je opgeslagen antwoorden voor dit onderdeel konden niet worden hersteld. Probeer het opnieuw."},formative:{checkAnswer:"Antwoord controleren",tryAgain:"Opnieuw proberen",answerRecorded:"Antwoord opgeslagen.",correct:"Goed.",partlyCorrect:"Gedeeltelijk goed.",notCorrect:"Niet goed.",notAutoScored:"Antwoord opgeslagen. Deze vraag wordt niet automatisch nagekeken.",checkFailed:"Deze vraag kon niet worden nagekeken. Probeer het opnieuw.",triesLeft:{one:"Nog {count} poging over.",other:"Nog {count} pogingen over."}},timedMedia:{waitingForMedia:"Vragen verschijnen terwijl de media speelt.",questionAvailable:"Vraag {position} is nu beschikbaar.",playbackPaused:"Weergave gepauzeerd. Beantwoord vraag {position} om verder te gaan.",playbackAdvisory:"Beantwoord vraag {position} voordat je verder gaat met de media.",playbackReleased:"Antwoord geaccepteerd. Speel de media verder."}},toolkit:{toolsA11y:"Hulpmiddelen",toolbarInitError:"De hulpmiddelen konden niet worden gestart.",settingsTitle:"Instellingen",closeSettingsA11y:"Instellingen sluiten",dragPanelA11y:"Paneel verplaatsen",closePanelA11y:"Paneel sluiten",resizeWindow:"Venster verkleinen of vergroten",minimize:"Minimaliseren",maximize:"Maximaliseren",minimizePanelA11y:"Paneel minimaliseren",maximizePanelA11y:"Paneel maximaliseren",window:{moveLeftA11y:"Hulpmiddel naar links verplaatsen",moveRightA11y:"Hulpmiddel naar rechts verplaatsen",moveUpA11y:"Hulpmiddel omhoog verplaatsen",moveDownA11y:"Hulpmiddel omlaag verplaatsen",shrinkA11y:"Venster verkleinen",growA11y:"Venster vergroten",centerA11y:"Venster centreren",closeA11y:"Hulpmiddel sluiten"},placement:{controlsA11y:"Verplaatsen en draaien",rotateClockwiseA11y:"{degrees}° rechtsom draaien",rotateCounterclockwiseA11y:"{degrees}° linksom draaien"},announce:{movedUp:"Omhoog verplaatst naar {position}",movedDown:"Omlaag verplaatst naar {position}",movedLeft:"Naar links verplaatst naar {position}",movedRight:"Naar rechts verplaatst naar {position}",rotatedTo:"Gedraaid naar {degrees} graden"}},tools:{calculator:{name:"Rekenmachine",nameBasic:"Eenvoudige rekenmachine",nameScientific:"Wetenschappelijke rekenmachine",nameGraphing:"Grafische rekenmachine",description:"Rekenmachine (basis, wetenschappelijk, grafisch)",openedBasic:"Eenvoudige rekenmachine geopend",openedScientific:"Wetenschappelijke rekenmachine geopend",openedGraphing:"Grafische rekenmachine geopend",closedBasic:"Eenvoudige rekenmachine gesloten",closedScientific:"Wetenschappelijke rekenmachine gesloten",closedGraphing:"Grafische rekenmachine gesloten",toolA11y:"Rekenmachine",loading:"Rekenmachine wordt geladen…",providerUnavailable:"De rekenmachine is niet beschikbaar."},graph:{name:"Grafiek",description:"Assenstelsel",buttonA11y:"Grafiek, assenstelsel",tooltip:"Grafiek",toolA11y:"Grafiekhulpmiddel — punten en lijnen tekenen in een assenstelsel",canvasA11y:"Tekenvlak — gebruik de hulpmiddelen om punten toe te voegen en lijnen te tekenen",grid:"Raster:",gridOpacityA11y:"Zichtbaarheid van het raster",pointA11y:"Punt {id}",modeSelector:"Selecteren",modeSelectorHint:"Selecteren: sleep punten om ze of de bijbehorende lijnen te verplaatsen.",modePoint:"Punt",modePointHint:"Punt: klik in het raster om punten toe te voegen.",modeLine:"Lijn",modeLineHint:"Lijn: klik eerst op een beginpunt en daarna op een eindpunt om een lijn te tekenen.",modeDelete:"Verwijderen",modeDeleteHint:"Verwijderen: klik op een punt om het te verwijderen, samen met de lijnen die eraan vastzitten."},periodicTable:{name:"Periodiek systeem",description:"Naslagwerk: het periodiek systeem der elementen",buttonA11y:"Periodiek systeem, naslagwerk chemie",tooltip:"Periodiek systeem",toolA11y:"Periodiek systeem — selecteer een element voor meer gegevens",elementsA11y:"Elementen in het periodiek systeem",showAllA11y:"Alle elementen weergeven",allElements:"Alle elementen",atomicMass:"Atoommassa",atomicNumber:"Atoomnummer",electronConfig:"Elektronenconfiguratie",phase:"Fase",filterByA11y:"Filteren op {category}",elementA11y:"{name}, symbool: {symbol}, atoomnummer: {number}, atoommassa: {mass}, categorie: {category}",outsideFilterA11y:", buiten het huidige filter",category:{unknown:"Onbekend",alkaliMetal:"Alkalimetaal",alkalineEarthMetal:"Aardalkalimetaal",transitionMetal:"Overgangsmetaal",postTransitionMetal:"Post-overgangsmetaal",metalloid:"Metalloïde",diatomicNonmetal:"Tweeatomig niet-metaal",polyatomicNonmetal:"Meeratomig niet-metaal",nobleGas:"Edelgas",lanthanide:"Lanthanide",actinide:"Actinide"}},ruler:{name:"Lineaal",description:"Lineaal op het scherm om te meten",buttonA11y:"Lineaal",tooltip:"Lineaal",toolA11y:"Verplaatsbare en draaibare lineaal",unitSelectionA11y:"Maateenheid van de lineaal",inches:"Inches",centimeters:"Centimeters",inchesInSentence:"inches",centimetersInSentence:"centimeters",switchToInchesA11y:"Overschakelen naar inches",switchToCentimetersA11y:"Overschakelen naar centimeters",switchedTo:"Overgeschakeld naar {unit}",applicationA11y:"Lineaal. Verplaats met de pijltoetsen, draai met Shift+pijltoetsen, draai nauwkeurig met PageUp of PageDown, en wissel met U van eenheid. Huidige eenheid: {unit}",imageAlt:"Lineaal met {unit}"},protractor:{name:"Geodriehoek",description:"Geodriehoek op het scherm om hoeken te meten",buttonA11y:"Geodriehoek",tooltip:"Geodriehoek",toolA11y:"Geodriehoek. Verplaats met de pijltoetsen, draai met Shift+pijltoetsen, en draai nauwkeurig met PageUp of PageDown.",roleA11y:"Verplaatsbare en draaibare geodriehoek",imageAlt:"Geodriehoek met een halfronde schaal van 0 tot 180 graden in beide richtingen, met streepjes elke 10 graden"},dictionary:{name:"Woordenboek",description:"Betekenis van woorden opzoeken",buttonA11y:"Woordenboek, betekenis van woorden opzoeken",tooltip:"Woordenboek",toolA11y:"Woordenboek"},pictureDictionary:{name:"Beeldwoordenboek",description:"Afbeeldingen bij woorden opzoeken",buttonA11y:"Beeldwoordenboek, afbeeldingen bij woorden opzoeken",tooltip:"Beeldwoordenboek",toolA11y:"Beeldwoordenboek"},dictionarySpanish:{name:"Spaans woordenboek",description:"Betekenis van woorden in het Spaans opzoeken",buttonA11y:"Spaans woordenboek, betekenis van woorden in het Spaans opzoeken",tooltip:"Spaans woordenboek",toolA11y:"Spaans woordenboek"},pictureDictionarySpanish:{name:"Spaans beeldwoordenboek",description:"Afbeeldingen bij woorden in het Spaans opzoeken",buttonA11y:"Spaans beeldwoordenboek, afbeeldingen bij woorden in het Spaans opzoeken",tooltip:"Spaans beeldwoordenboek",toolA11y:"Spaans beeldwoordenboek"},lineReader:{name:"Leeshulp",description:"Leesvenster over de tekst",buttonA11y:"Leeshulp, leesvenster",tooltip:"Leeshulp",roleA11y:"Verplaatsbaar en verstelbaar leesvenster",close:"Leeshulp sluiten",resizeWindowA11y:"Sleep om het leesvenster te verstellen",resizeFrameA11y:"Sleep om de breedte van het kader en het venster te verstellen",windowHeightAnnounce:"Hoogte leesvenster {pixels} pixels",frameHeightAnnounce:"Hoogte kader {pixels} pixels",widthAnnounce:"Breedte {pixels} pixels",applicationA11y:"Leeshulp. Een doorzichtig leesvenster binnen een verduisterend kader. Verplaats met de pijltoetsen, verstel het leesvenster met + en -, en sluit met Escape. Hoogte leesvenster: {paneHeight} pixels, hoogte kader: {frameHeight} pixels",resizeWindowFullA11y:"Verstel het leesvenster. Sleep, of verander de hoogte met de pijltoetsen omhoog en omlaag. Huidige hoogte {paneHeight} pixels",resizeFrameFullA11y:"Verstel het kader. Sleep, verander de hoogte van het kader met de pijltoetsen omhoog en omlaag, en de breedte met de pijltoetsen links en rechts. Huidige hoogte kader {frameHeight} pixels, breedte {width} pixels"},answerEliminator:{name:"Antwoorden wegstrepen",description:"Antwoordopties doorstrepen",buttonA11y:"Doorstrepen, antwoordopties wegstrepen",tooltip:"Doorstrepen"},highlighter:{name:"Markeerstift",description:"Tekst markeren en van aantekeningen voorzien",buttonA11y:"Tekst markeren",tooltip:"Markeren"},annotationToolbar:{name:"Aantekeningen",description:"Tekst markeren en van aantekeningen voorzien",buttonA11y:"Aantekenen, tekst markeren en bewerken",tooltip:"Aantekenen",toolbarA11y:"Werkbalk voor aantekeningen",underline:"Onderstrepen",underlineA11y:"Geselecteerde tekst onderstrepen",readAloud:"Voorlezen",readAloudA11y:"Geselecteerde tekst voorlezen",remove:"Verwijderen",removeA11y:"Deze aantekening verwijderen",clearAll:"Alles wissen",clearAllA11y:"Alle aantekeningen in het document wissen",highlightYellowA11y:"Geel markeren",highlightPinkA11y:"Roze markeren",highlightBlueA11y:"Blauw markeren",highlightGreenA11y:"Groen markeren"},theme:{name:"Thema",description:"Toegankelijke thema's en contrast",buttonA11y:"Thema, kleuren en contrast aanpassen",tooltip:"Thema",selectorA11y:"Themakiezer",hint:"Kies een thema dat prettiger leest en de ogen minder belast.",selectA11y:"Thema kiezen",selectCurrentA11y:"Thema kiezen. Huidig thema: {name}",optionUnavailableA11y:"{name}, niet beschikbaar",unavailableName:"Niet-beschikbaar thema: {id}",unavailableDescription:"Het door PIE beheerde basisthema blijft actief totdat dit thema weer beschikbaar is.",unavailableStatus:"Het gekozen thema is niet beschikbaar. Het door PIE beheerde basisthema is actief totdat het weer beschikbaar is."},textToSpeech:{name:"Voorlezen",description:"Inhoud laten voorlezen",toolA11y:"Voorleeshulp",title:"Voorlezen",initializing:"Wordt gestart…",initFailed:"Voorlezen kon niet worden gestart.",selectText:"Selecteer tekst op de pagina om die te laten voorlezen.",speed:"Snelheid:",play:"Voorlezen",pause:"Pauzeren",resume:"Hervatten",stop:"Stoppen",speaking:"Aan het voorlezen…",paused:"Gepauzeerd",charactersSelected:{one:"{count} teken geselecteerd",other:"{count} tekens geselecteerd"},rate:{slow:"Langzaam",slower:"Langzamer",normal:"Normaal",faster:"Sneller",fast:"Snel",veryFast:"Zeer snel"},inline:{controlsA11y:"Voorleesknoppen",playbackSpeedA11y:"Voorleessnelheid",rewindA11y:"Terugspoelen",fastForwardA11y:"Vooruitspoelen",stopA11y:"Voorlezen stoppen",initializing:"Voorlezen wordt gestart",initFailed:"Voorlezen kon niet worden gestart. Probeer het opnieuw.",starting:"Voorlezen wordt gestart",started:"Voorlezen gestart",resumed:"Voorlezen hervat",pausedAnnouncement:"Voorlezen gepauzeerd",stopped:"Voorlezen gestopt",switchedSection:"Het voorlezen is naar een ander onderdeel gegaan",startFailed:"Voorlezen kon niet worden gestart",skippedForward:"Vooruitgespoeld",skipForwardFailed:"Vooruitspoelen is niet gelukt",skippedBackward:"Teruggespoeld",skipBackwardFailed:"Terugspoelen is niet gelukt",speedChangeFailed:"De voorleessnelheid kon niet worden gewijzigd",speedAnnounce:"Voorleessnelheid {label}",playA11y:"Voorlezen starten",pauseA11y:"Voorlezen pauzeren",resumeA11y:"Voorlezen hervatten"}},signLanguage:{name:"Gebarentaal",description:"Gebarentaalversie van de inhoud",generic:"Gebarentaal",unknown:"Gebarentaal ({code})",ase:"Amerikaanse gebarentaal",bfi:"Britse gebarentaal",fsl:"Franse gebarentaal",gss:"Griekse gebarentaal",mfs:"Mexicaanse gebarentaal",signedEnglish:"Engels met gebaren",regionA11y:"Vertaling in {language}"},audioTranscript:{name:"Audiotranscript",description:"Tekstversie van de audio",regionA11y:"Transcript"}},debug:{session:"Sessie",sessionData:"Sessiegegevens",sessionDataPersistent:"PIE-sessiegegevens (opgeslagen)",noItemSessionYet:"Nog geen sessiegegevens. Werk aan de vraag om hier updates te zien.",itemSessionsSnapshot:"Momentopname van de vraagsessies",sectionControllerUnavailable:"De controller voor dit onderdeel is nog niet beschikbaar.",filteredModel:"Gefilterd model",environment:"Omgeving",events:"Gebeurtenissen",controllerEvents:"Controllergebeurtenissen",instrumentation:"Instrumentatie",databaseState:"Databasestatus",sessionDb:"Sessiedatabase (server)",noRows:"Geen rijen",noRecords:"Nog geen instrumentatiegegevens.",selectRecord:"Selecteer een record om de details te bekijken.",selectEvent:"Selecteer een gebeurtenis om de payload te bekijken.",showRawTables:"Ruwe tabellen weergeven",showReconstructedSnapshots:"Gereconstrueerde momentopnamen weergeven",showSectionRequest:"Aanvraag voor onderdeel weergeven",showAssessmentRequest:"Aanvraag voor toets weergeven",liveUpdatesUnsupported:"Live bijwerken wordt niet ondersteund in deze browser",liveUpdatesDisconnected:"Live bijwerken onderbroken; nieuwe poging…",fieldType:"Type:",fieldTarget:"Doel:",fieldItem:"Vraag:",fieldCanonical:"Canoniek:",fieldIntent:"Intentie:",fieldDuplicates:"Duplicaten:",fieldSemanticRepeats:"Semantische herhalingen:",dragItemSessionPanelA11y:"Paneel met vraagsessie verplaatsen",debuggerTabsA11y:"Tabbladen van de debugger",sessionDataJsonA11y:"Sessiegegevens als JSON",environmentJsonA11y:"Omgeving als JSON",filteredModelJsonA11y:"Gefilterd model als JSON",sectionSessionJsonA11y:"Momentopname van de onderdeelsessie als JSON",eventLevelFilterA11y:"Filter op gebeurtenisniveau",controllerEventDetailsA11y:"Details van controllergebeurtenis",instrumentationFilterA11y:"Filteren op type instrumentatiegegeven",instrumentationDetailsA11y:"Details van instrumentatiegegeven",toggleSessionPanelA11y:"Sessiepaneel in- of uitschakelen",toggleEventPanelA11y:"Gebeurtenissenpaneel in- of uitschakelen",toggleDatabasePanelA11y:"Databasepaneel in- of uitschakelen",toggleInstrumentationPanelA11y:"Instrumentatiepaneel in- of uitschakelen",pnp:{title:"PNP-profiel",noAssessmentBound:"Geen toets gekoppeld",determinationReadOnly:"Vaststelling (alleen lezen)",toolsEditor:"Hulpmiddelen bewerken",enforcement:"PNP-handhaving",allAvailableTools:"Alle beschikbare hulpmiddelen",clearPlacement:"Plaatsing wissen",tool:"Hulpmiddel",placement:"Plaatsing",provider:"Aanbieder",simulation:"PNP-simulatie",resolvedTools:"Toegekende hulpmiddelen (toolkit)",provenanceSummary:"Overzicht van herkomst van het hulpmiddelenbeleid",perToolDecisions:"Beslissingen per hulpmiddel",profileReadOnly:"PNP-profiel (alleen lezen)"},tts:{title:"Voorleesinstellingen",closeA11y:"Voorleesinstellingen sluiten",toolbarLayoutMode:"Indeling van de werkbalk",reservedRow:"Vaste rij",expandingRow:"Uitklappende rij",floatingOverlay:"Zwevend venster",leftAlignedControls:"Knoppen links uitlijnen",inlineSpeedButtons:"Snelheidsknoppen in de balk",resetToDefaults:"Standaardwaarden herstellen",mathHighlighting:"Formules markeren",checkingAvailability:"Beschikbaarheid controleren…",recheck:"Opnieuw controleren",voice:"Stem",bestAvailableVoice:"Best beschikbare stem (automatisch)",unnamedVoice:"Stem zonder naam",apiEndpoint:"API-eindpunt",gender:"Geslacht",any:"Alle",male:"Man",female:"Vrouw",neutral:"Neutraal",engine:"Engine",neural:"Neuraal",standard:"Standaard",providerDefault:"Standaard van de aanbieder",format:"Formaat",sampleRate:"Samplefrequentie",speechMarks:"Spraakmarkeringen",word:"Woord",wordAndSentence:"Woord + zin",voiceType:"Type stem",wavenetVoiceType:"WaveNet",studioVoiceType:"Studio",plainText:"Platte tekst",sampleText:"Voorbeeldtekst",resetSample:"Voorbeeldtekst herstellen",providerAvailable:"Aanbieder beschikbaar.",providerUnavailable:"Aanbieder niet beschikbaar.",providerCheckFailed:"De beschikbaarheidscontrole is mislukt.",providerNotChecked:"De beschikbaarheid is nog niet gecontroleerd.",webSpeechUnavailable:"De Web Speech API is niet beschikbaar in deze browser.",browserNoVoices:"Voorlezen door de browser is beschikbaar, maar er zijn nog geen stemmen doorgegeven.",browserUnavailable:"Voorlezen door de browser is niet beschikbaar.",googleUnavailable:"Google Cloud TTS is niet beschikbaar via de ingestelde API.",pollyUnavailable:"AWS Polly is niet beschikbaar via de ingestelde API.",recommendedVoices:"Aanbevolen stemmen",allVoices:"Alle beschikbare stemmen",previewVoice:"Stem beluisteren",stopPreview:"Beluisteren stoppen",applying:"Toepassen...",ssmlPreviewUnsupported:"SSML-voorbeeld wordt niet ondersteund door de browser-backend.",pollySsmlHint:"Sommige neurale Polly-stemmen weigeren bepaalde SSML-tags (bijvoorbeeld emphasis). Gebruik eenvoudige SSML-tags als het voorbeeld mislukt.",mathHighlightParts:"Elk onderdeel van een formule wordt gemarkeerd terwijl het wordt voorgelezen; bij onzekere uitlijning wordt de hele formule gemarkeerd.",mathHighlightBlock:"Elke formule wordt als één geheel gemarkeerd in plaats van in onderdelen opgesplitst.",previewFailed:"Het voorbeeldfragment kon niet worden afgespeeld.",previewNoAudio:"Het antwoord bevatte geen audio.",previewEnterText:"Voer eerst voorbeeldtekst in.",previewUnavailable:"Een voorbeeld is niet mogelijk zolang deze dienst niet beschikbaar is.",browserSynthesisUnavailable:"Spraaksynthese van de browser is niet beschikbaar.",browserSynthesisEndedEarly:"De spraaksynthese van de browser stopte voordat de audio begon. Start de browser opnieuw en probeer het nog eens.",browserSynthesisQueueFailed:"De spraaksynthese van de browser kon het voorbeeldfragment niet in de wachtrij zetten.",browserPreviewFailed:"Het voorbeeld van de browserstem kon niet worden afgespeeld.",ssmlWordTrackingDisabled:"Bij een Google SSML-voorbeeld blijft de SSML uit de bron intact, waardoor woordmarkering is uitgeschakeld.",applyUnavailable:"Instellingen toepassen is niet mogelijk zolang deze dienst niet beschikbaar is.",coordinatorUnavailable:"De toolkitcoördinator is niet beschikbaar voor voorleesinstellingen."}}};export{e as default};
@@ -0,0 +1 @@
1
+ function g(t){let i=!1,n={x:0,y:0};return{isDragging:()=>i,startDragging(a,e){e.setPointerCapture(a.pointerId),i=!0;const r=t.getPosition();n={x:a.clientX-r.x,y:a.clientY-r.y},t.onDragStart?.(e)},handlePointerMove(a){i&&t.setPosition({x:a.clientX-n.x,y:a.clientY-n.y})},endDragging(){i=!1}}}function u(t){if(typeof window>"u"||!t)return;const i=t.offsetParent;if(i instanceof HTMLElement){const n=i.getBoundingClientRect();if(n.width>0&&n.height>0)return n}return new DOMRect(0,0,window.innerWidth,window.innerHeight)}function d(t,i,n,a=4){const e=(r,h,o)=>{const s=o/2-h/2-a;return s<=0?0:Math.max(-s,Math.min(s,r))};return{x:e(t.x,i.width,n.width),y:e(t.y,i.height,n.height)}}function f(t,i,n,a){const e=(r,h,o)=>{const s=Math.min(a,h,o),c=o/2+h/2-s;return Math.max(-c,Math.min(c,r))};return{x:e(t.x,i.width,n.width),y:e(t.y,i.height,n.height)}}function M(t,i){const n=i*Math.PI/180,a=Math.abs(Math.cos(n)),e=Math.abs(Math.sin(n));return{width:t.width*a+t.height*e,height:t.width*e+t.height*a}}function y(t,i,n){const a=n*Math.PI/180,e=Math.cos(a),r=Math.sin(a),h=t.width/2-i.x,o=t.height/2-i.y;return{x:h*e-o*r-h,y:h*r+o*e-o}}function l(t,i,n,a){const e=n*Math.PI/180,r=i.width*Math.abs(Math.sin(e))+i.height*Math.abs(Math.cos(e));return{x:t.width/2,y:t.height+a+r/2}}function x(t,i,n,a=4){const e={x:n.width/2,y:n.height/2},r=d({x:t.x-e.x,y:t.y-e.y},i,n,a);return{x:e.x+r.x,y:e.y+r.y}}export{y as a,M as i,x as n,l as o,u as r,g as s,f as t};
@@ -0,0 +1 @@
1
+ import{a as x,i as P,o as A,r as v,s as T,t as k}from"./overlay-containment-edaaff13.js";import{t as C}from"./pointer-gesture-ce75f0a7.js";function L(o){const e=o%360;return e<0?e+360:e}function w(o,e,i){return Math.atan2(i-o.y,e-o.x)*180/Math.PI}function O(o){let e=!1,i={x:0,y:0},g=0,l=0;return{isRotating:()=>e,startRotating(a,c,u){c.setPointerCapture(a.pointerId),e=!0,i=u,g=w(i,a.clientX,a.clientY),l=o.getRotation()},handlePointerMove(a){if(!e)return;const c=w(i,a.clientX,a.clientY)-g;o.setRotation(L(l+c))},endRotating(){e=!1}}}var _={left:{dx:-1,dy:0,glyph:"←",labelKey:"toolkit.window.moveLeftA11y",announceKey:"toolkit.announce.movedLeft"},up:{dx:0,dy:-1,glyph:"↑",labelKey:"toolkit.window.moveUpA11y",announceKey:"toolkit.announce.movedUp"},down:{dx:0,dy:1,glyph:"↓",labelKey:"toolkit.window.moveDownA11y",announceKey:"toolkit.announce.movedDown"},right:{dx:1,dy:0,glyph:"→",labelKey:"toolkit.window.moveRightA11y",announceKey:"toolkit.announce.movedRight"}},N=[-5,-1,1,5],M={ArrowLeft:"left",ArrowUp:"up",ArrowDown:"down",ArrowRight:"right"},D=100,K=8;function Y(o){let e={x:0,y:0,rotation:0};const i=t=>({width:t.offsetWidth,height:t.offsetHeight});function g(t){const n=o.getControls();if(!n)return;const r=A(i(t),i(n),e.rotation,K);n.style.transform=`translate(${r.x}px, ${r.y}px) translate(-50%, -50%) rotate(${-e.rotation}deg)`}function l(t){const n=o.getElement();if(!n)return;const r=v(n),s=i(n),d=o.pivot?x(s,o.pivot(s),t.rotation):{x:0,y:0},m={x:t.x+d.x,y:t.y+d.y},R=r?k(m,P(s,t.rotation),r,D):m;e={x:R.x-d.x,y:R.y-d.y,rotation:t.rotation},n.style.transform=`translate(-50%, -50%) translate(${e.x}px, ${e.y}px) rotate(${e.rotation}deg)`,g(n)}const a=T({getPosition:()=>({x:e.x,y:e.y}),setPosition:t=>l({...e,...t})}),c=O({getRotation:()=>e.rotation,setRotation:t=>l({...e,rotation:t})}),u=C({onMove:t=>{a.handlePointerMove(t),c.handlePointerMove(t)},onEnd:()=>{a.endDragging(),c.endRotating()}});function E(t,n,r){return u.begin(t,r)?(n.focus({preventScroll:!0}),!0):!1}const p=()=>{if(o.getScreenPivot)return o.getScreenPivot();const t=o.getElement()?.getBoundingClientRect();return t&&{x:t.left+t.width/2,y:t.top+t.height/2}};function h(t){const{dx:n,dy:r,announceKey:s}=_[t];l({x:e.x+n*10,y:e.y+r*10,rotation:e.rotation}),o.announce(s,{position:Math.round(n?e.x:e.y)})}function y(t){const n=((Math.round(e.rotation)+t)%360+360)%360;l({...e,rotation:n}),o.announce("toolkit.announce.rotatedTo",{degrees:n})}const f=()=>l(e);return{get placement(){return e},apply:l,show(){const t=o.getElement();t&&(o.bringToFront?.(t),f())},reset(){u.release(),e={x:0,y:0,rotation:0}},startDrag(t){const n=o.getElement();n&&(o.bringToFront?.(n),E(t,n,n)&&a.startDragging(t,n))},startRotate(t,n){t.stopPropagation();const r=o.getElement(),s=p();!r||!s||(o.bringToFront?.(r),E(t,r,n)&&c.startRotating(t,n,s))},nudge:h,rotateBy:y,handleKeyDown(t){const n=M[t.key];if(n&&t.shiftKey)y(n==="up"||n==="left"?-5:5);else if(n)h(n);else if(t.key==="PageUp")y(-1);else if(t.key==="PageDown")y(1);else return!1;return t.preventDefault(),!0},connect(){return window.addEventListener("resize",f),()=>{u.release(),window.removeEventListener("resize",f)}}}}export{N as n,Y as r,_ as t};
@@ -0,0 +1 @@
1
+ import{i,n as c}from"./mathjax-D2JHb_R_-64780dc5.js";c.dynamicSetup("","phonetics",i({PH:{normal:{592:[.441,.016,.5],593:[.441,.011,.556],594:[.441,.011,.556],595:[.705,.011,.528],596:[.441,.016,.444],597:[.447,.144,.444],598:[.695,.205,.556,{ic:.054}],599:[.705,.011,.556,{ic:.082}],600:[.448,.011,.444],601:[.448,.011,.444],602:[.441,.016,.639],603:[.447,.011,.444],604:[.453,.022,.472],605:[.453,.022,.639,{ic:.011}],606:[.453,.022,.5],607:[.43,.205,.306],608:[.636,.217,.556,{ic:.082}],609:[.441,.217,.528],610:[.445,.015,.565],611:[.43,.217,.528],612:[.454,.022,.528],613:[.43,.205,.556],614:[.705,0,.556],615:[.705,.205,.528],616:[.668,0,.311],617:[.441,.013,.25],618:[.43,0,.274],619:[.695,0,.422],620:[.695,0,.389],621:[.695,.205,.278,{ic:.059}],622:[.695,.205,.561],623:[.43,.011,.833],624:[.43,.205,.833],625:[.441,.205,.806],626:[.441,.205,.556],627:[.441,.205,.556,{ic:.059}],628:[.43,0,.547],629:[.447,.011,.5],630:[.445,.015,.727],631:[.451,.011,.611],632:[.695,.193,.61],633:[.43,.011,.392],634:[.625,.011,.392],635:[.43,.205,.392,{ic:.054}],636:[.441,.195,.392],637:[.441,.205,.392],638:[.441,0,.392],639:[.441,0,.333],640:[.431,.015,.536],641:[.445,0,.536],642:[.447,.205,.394],643:[.705,.205,.333,{ic:.028}],644:[.636,.205,.333,{ic:.042}],645:[.441,.205,.367],646:[.705,.226,.333,{ic:.027}],647:[.441,.185,.389],648:[.615,.205,.361],649:[.441,.011,.556],650:[.431,.022,.556],651:[.441,.011,.511],652:[.44,0,.528],653:[.44,0,.722],654:[.636,0,.528],655:[.43,0,.547],656:[.43,.205,.444,{ic:.11}],657:[.43,.146,.5],658:[.43,.205,.444],659:[.43,.226,.444],660:[.705,0,.5],661:[.705,-.001,.5],662:[.695,.011,.5],663:[.711,.206,.5],664:[.705,.022,.777],665:[.43,0,.513],666:[.453,.022,.5],667:[.643,.015,.584,{ic:.063}],668:[.43,0,.547],669:[.668,.205,.35],670:[.431,.205,.528],671:[.43,0,.455],672:[.636,.195,.556,{ic:.082}],673:[.705,0,.5],674:[.705,-.001,.5],675:[.694,.011,.824],676:[.695,.205,.722],677:[.694,.146,.881],678:[.615,.011,.667],679:[.705,.205,.556],680:[.615,.144,.704],681:[.705,.205,.759],682:[.694,0,.555],683:[.694,0,.553],684:[.484,.006,.361],685:[.379,0,.5],686:[.441,.195,.556],687:[.441,.205,.556,{ic:.015}],7424:[.45,0,.547],7431:[.43,0,.494],7434:[.43,.015,.377],7435:[.43,0,.566],7437:[.43,0,.663],7448:[.43,0,.494],7449:[.431,.015,.536],7452:[.43,.015,.547],7491:[.555,-.279,.3],7492:[.553,-.278,.3],7493:[.552,-.28,.333],7494:[.555,-.28,.433],7495:[.703,-.28,.333],7496:[.703,-.28,.333],7497:[.555,-.281,.266],7498:[.552,-.277,.266],7499:[.555,-.281,.266],7501:[.558,-.163,.3],7503:[.703,-.287,.316],7504:[.553,-.287,.499],7505:[.552,-.163,.333],7506:[.555,-.281,.3],7507:[.552,-.277,.266],7510:[.552,-.17,.333],7511:[.656,-.281,.233],7512:[.552,-.28,.333],7514:[.545,-.279,.499],7515:[.545,-.281,.316],7517:[.709,-.121,.3],7518:[.552,-.167,.333],7520:[.558,-.121,.349],7521:[.552,-.13,.333],7544:[.545,-.287,.333],7568:[.447,.205,.556,{ic:.105}],7569:[.705,.205,.653],7570:[.447,.205,.5,{ic:.083}],7571:[.453,.205,.528,{ic:.074}],7575:[.441,.205,.444]}},PHB:{bold:{592:[.45,.008,.559],593:[.45,.005,.639],594:[.45,.005,.639],595:[.7,.005,.637],596:[.45,.008,.511],597:[.453,.145,.511],598:[.695,.2,.639,{ic:.063}],599:[.7,.005,.639,{ic:.095}],600:[.453,.006,.527],601:[.453,.006,.527],602:[.45,.008,.735],603:[.453,.006,.511],604:[.455,.011,.543],605:[.455,.011,.735,{ic:.021}],606:[.456,.011,.575],607:[.445,.2,.351,{ic:.013}],608:[.63,.206,.639,{ic:.095}],609:[.45,.206,.607],610:[.452,.008,.723],611:[.445,.205,.607],612:[.456,.011,.607],613:[.445,.2,.639],614:[.7,0,.639],615:[.7,.2,.607],616:[.695,0,.358],617:[.45,.005,.383],618:[.445,0,.366],619:[.695,0,.486],620:[.695,0,.447],621:[.695,.2,.319,{ic:.074}],622:[.695,.2,.65],623:[.445,.006,.958],624:[.445,.2,.958],625:[.45,.2,.926],626:[.45,.2,.639],627:[.45,.2,.639,{ic:.073}],628:[.445,0,.733],629:[.453,.005,.575],630:[.452,.008,.933],631:[.464,.005,.703],632:[.695,.195,.703],633:[.445,.005,.474],634:[.639,.005,.474],635:[.445,.2,.474,{ic:.062}],636:[.45,.195,.474],637:[.45,.2,.474],638:[.45,0,.474],639:[.45,0,.383],640:[.445,.008,.697],641:[.452,0,.697],642:[.453,.2,.454],643:[.7,.2,.383,{ic:.032}],644:[.63,.2,.383,{ic:.048}],645:[.45,.2,.422,{ic:.007}],646:[.7,.221,.383,{ic:.032}],647:[.45,.19,.447],648:[.635,.2,.415],649:[.45,.005,.639],650:[.445,.011,.639],651:[.45,.005,.597],652:[.449,0,.607],653:[.449,0,.831],654:[.644,0,.607],655:[.445,0,.702],656:[.445,.2,.511,{ic:.126}],657:[.445,.146,.575],658:[.445,.2,.511],659:[.445,.221,.511],660:[.7,0,.575],661:[.7,-.001,.575],662:[.695,.005,.575],663:[.703,.2,.575],664:[.697,.011,.864],665:[.445,0,.658],666:[.456,.011,.575],667:[.647,.008,.778,{ic:.053}],668:[.445,0,.733],669:[.695,.2,.402],670:[.445,.2,.607],671:[.445,0,.552],672:[.63,.195,.639,{ic:.095}],673:[.7,0,.575],674:[.7,-.001,.575],675:[.694,.006,.947],676:[.695,.2,.831],677:[.694,.146,1.011],678:[.635,.006,.767],679:[.7,.2,.639,{ic:.035}],680:[.635,.145,.81],681:[.7,.2,.874],682:[.694,0,.639],683:[.694,0,.639],684:[.499,.002,.415],685:[.396,0,.575],686:[.656,.195,.639],687:[.655,.2,.639,{ic:.025}],7424:[.453,0,.702],7431:[.445,0,.602],7434:[.445,.008,.483],7435:[.445,0,.727],7437:[.445,0,.883],7448:[.445,0,.633],7449:[.445,.008,.697],7452:[.445,.008,.718],7491:[.569,-.294,.335],7492:[.568,-.292,.335],7493:[.567,-.294,.383],7494:[.57,-.293,.498],7495:[.713,-.294,.383],7496:[.713,-.293,.383],7497:[.569,-.294,.316],7498:[.567,-.292,.316],7499:[.569,-.293,.306],7501:[.57,-.177,.345],7503:[.713,-.297,.364],7504:[.567,-.297,.574],7505:[.568,-.177,.383],7506:[.57,-.294,.345],7507:[.568,-.291,.306],7510:[.568,-.18,.383],7511:[.678,-.294,.268],7512:[.567,-.294,.383],7514:[.564,-.293,.574],7515:[.564,-.295,.364],7517:[.717,-.135,.376],7518:[.567,-.177,.433],7520:[.573,-.135,.436],7521:[.568,-.143,.416],7544:[.564,-.297,.383],7568:[.453,.2,.623,{ic:.116}],7569:[.7,.2,.751],7570:[.453,.2,.591,{ic:.086}],7571:[.455,.2,.607,{ic:.084}],7575:[.45,.2,.511]}},PHI:{italic:{592:[.445,.046,.5,{ic:.03}],593:[.445,.019,.5],594:[.449,.015,.5],595:[.706,.011,.46,{ic:.059}],596:[.441,.012,.46],597:[.442,.15,.46,{ic:.01}],598:[.694,.204,.511,{ic:.049}],599:[.706,.011,.511,{ic:.205}],600:[.442,.011,.46,{ic:.05}],601:[.442,.011,.46,{ic:.039}],602:[.442,.011,.59,{ic:.023}],603:[.442,.011,.46,{ic:.047}],604:[.441,.011,.46,{ic:.004}],605:[.443,.011,.669,{ic:.019}],606:[.441,.011,.46,{ic:.004}],607:[.442,.205,.307,{ic:.077}],608:[.637,.205,.67,{ic:.047}],609:[.442,.205,.46,{ic:.027}],610:[.45,.014,.565],611:[.432,.215,.528,{ic:.052}],612:[.456,.021,.528,{ic:.041}],613:[.441,.264,.511,{ic:.032}],614:[.706,.011,.51,{ic:.075}],615:[.706,.204,.51,{ic:.075}],616:[.654,.011,.307,{ic:.055}],617:[.441,.011,.25,{ic:.014}],618:[.432,-.001,.274,{ic:.041}],619:[.694,.011,.256,{ic:.089}],620:[.694,.011,.256,{ic:.093}],621:[.694,.204,.256,{ic:.05}],622:[.694,.205,.558,{ic:.059}],623:[.442,.011,.818,{ic:.023}],624:[.442,.201,.818],625:[.442,.205,.805],626:[.442,.205,.562,{ic:.024}],627:[.442,.204,.562],628:[.432,0,.547,{ic:.037}],629:[.442,.011,.511],630:[.449,.017,.727,{ic:.007}],631:[.453,.012,.667,{ic:.007}],632:[.695,.193,.611],633:[.441,.012,.422,{ic:.024}],634:[.623,.012,.422,{ic:.027}],635:[.441,.204,.422,{ic:.01}],636:[.443,.192,.422,{ic:.025}],637:[.443,.204,.422,{ic:.025}],638:[.443,-.001,.392,{ic:.032}],639:[.443,-.001,.392],640:[.432,.014,.536,{ic:.008}],641:[.447,-.001,.536,{ic:.054}],642:[.442,.205,.409,{ic:.01}],643:[.705,.205,.333,{ic:.184}],644:[.636,.205,.333,{ic:.187}],645:[.443,.205,.333],646:[.705,.233,.333,{ic:.184}],647:[.441,.195,.332,{ic:.016}],648:[.626,.203,.332,{ic:.041}],649:[.442,.011,.537,{ic:.043}],650:[.432,.021,.556,{ic:.017}],651:[.443,.009,.511,{ic:.006}],652:[.442,.011,.46,{ic:.004}],653:[.442,.011,.664],654:[.636,.011,.486,{ic:.03}],655:[.432,-.001,.547,{ic:.054}],656:[.442,.204,.409,{ic:.115}],657:[.442,.144,.409,{ic:.055}],658:[.431,.205,.46,{ic:.037}],659:[.431,.226,.46,{ic:.037}],660:[.706,-.001,.5,{ic:.034}],661:[.706,-.002,.5,{ic:.041}],662:[.695,.011,.5],663:[.711,.204,.5,{ic:.029}],664:[.705,.022,.767,{ic:.021}],665:[.432,-.001,.513],666:[.441,.011,.46,{ic:.037}],667:[.644,.014,.584,{ic:.158}],668:[.432,-.001,.547,{ic:.037}],669:[.654,.201,.307,{ic:.051}],670:[.442,.263,.46,{ic:.042}],671:[.432,-.001,.455],672:[.637,.194,.627,{ic:.092}],673:[.706,-.001,.5,{ic:.034}],674:[.706,-.002,.5,{ic:.041}],675:[.694,.011,.729,{ic:.055}],676:[.694,.205,.75,{ic:.037}],677:[.694,.144,.729,{ic:.055}],678:[.626,.011,.657,{ic:.01}],679:[.705,.205,.52,{ic:.184}],680:[.626,.15,.67,{ic:.01}],681:[.705,.216,.724,{ic:.02}],682:[.694,.011,.631,{ic:.01}],683:[.694,.011,.537,{ic:.055}],684:[.484,.005,.361,{ic:.043}],685:[.379,0,.5],687:[.58,.204,.511,{ic:.042}]}},PHBI:{"bold-italic":{592:[.452,.008,.591,{ic:.024}],593:[.45,.006,.655],594:[.45,.006,.655],595:[.647,.007,.532,{ic:.031}],596:[.455,.012,.532,{ic:.006}],597:[.452,.154,.532],598:[.695,.21,.591,{ic:.075}],599:[.693,.008,.591,{ic:.214}],600:[.452,.008,.532,{ic:.092}],601:[.452,.008,.532,{ic:.043}],602:[.452,.008,.784,{ic:.015}],603:[.456,.011,.532,{ic:.041}],604:[.455,.012,.532,{ic:.006}],605:[.479,.012,.778],606:[.475,.011,.556,{ic:.013}],607:[.452,.202,.356,{ic:.045}],608:[.62,.202,.532,{ic:.258}],609:[.452,.202,.532,{ic:.031}],610:[.452,.008,.723],611:[.462,.215,.556,{ic:.053}],612:[.462,.01,.556,{ic:.045}],613:[.456,.25,.591,{ic:.036}],614:[.701,.199,.591,{ic:.056}],615:[.702,.199,.591,{ic:.056}],616:[.674,.008,.356,{ic:.048}],617:[.46,.008,.355,{ic:.011}],618:[.461,0,.472,{ic:.057}],619:[.695,.008,.297,{ic:.108}],620:[.695,.008,.342,{ic:.039}],621:[.693,.209,.297,{ic:.044}],622:[.693,.206,.659],623:[.456,.011,.944,{ic:.032}],624:[.456,.209,.944],625:[.452,.209,.944],626:[.452,.209,.65,{ic:.034}],627:[.452,.23,.65,{ic:.048}],628:[.445,0,.733,{ic:.002}],629:[.456,.011,.591,{ic:.004}],630:[.452,.008,.933],631:[.464,.005,.703],632:[.695,.195,.703],633:[.455,.012,.502,{ic:.034}],634:[.637,.012,.502,{ic:.034}],635:[.455,.21,.502],636:[.452,.195,.502,{ic:.06}],637:[.452,.209,.502,{ic:.06}],638:[.45,0,.474,{ic:.006}],639:[.45,0,.383],640:[.445,.008,.697],641:[.452,0,.697,{ic:.033}],642:[.452,.209,.487],643:[.7,.2,.383,{ic:.12}],644:[.701,.008,.683,{ic:.044}],645:[.45,.2,.422],646:[.698,.231,.364,{ic:.133}],647:[.455,.202,.385,{ic:.02}],648:[.643,.209,.385,{ic:.031}],649:[.452,.008,.621,{ic:.05}],650:[.445,.011,.639],651:[.453,.008,.532,{ic:.023}],652:[.449,0,.607],653:[.449,0,.831],654:[.655,-.001,.562,{ic:.033}],655:[.445,0,.702,{ic:.023}],656:[.452,.209,.575,{ic:.068}],657:[.452,.153,.491,{ic:.049}],658:[.444,.206,.532,{ic:.028}],659:[.444,.226,.532,{ic:.028}],660:[.7,0,.575],661:[.7,-.001,.575],662:[.695,.005,.575],663:[.693,.209,.556,{ic:.026}],664:[.703,.017,.855,{ic:.01}],665:[.445,0,.658],666:[.474,.012,.556,{ic:.031}],667:[.647,.008,.778,{ic:.116}],668:[.445,0,.733,{ic:.002}],669:[.674,.209,.356,{ic:.048}],670:[.462,.241,.532],671:[.445,0,.552],672:[.693,.21,.591,{ic:.214}],673:[.7,0,.575],674:[.7,-.001,.575,{ic:.001}],675:[.695,.008,.895,{ic:.049}],676:[.695,.206,.876,{ic:.046}],677:[.695,.153,.895,{ic:.049}],678:[.643,.008,.727],679:[.7,.2,.653,{ic:.12}],680:[.643,.154,.802],681:[.702,.207,.905],682:[.695,.008,.695],683:[.695,.009,.605,{ic:.049}],684:[.499,.002,.415,{ic:.049}],685:[.396,0,.575],686:[.678,.25,.591,{ic:.036}],687:[.678,.199,.591,{ic:.054}]}}},"NCM"),{},["MJX-NCM-PH","MJX-NCM-PHB","MJX-NCM-PHI","MJX-NCM-PHBI"]);
@@ -0,0 +1 @@
1
+ import{i,n as c}from"./mathjax-D2JHb_R_-64780dc5.js";c.dynamicSetup("","phonetics-ss",i({PHSS:{"sans-serif":{592:[.456,.016,.481],593:[.455,.011,.517],594:[.455,.011,.517],595:[.717,.011,.556],596:[.456,.017,.444],597:[.461,.146,.444],598:[.695,.217,.536,{ic:.074}],599:[.717,.011,.517,{ic:.099}],600:[.461,.011,.444],601:[.461,.011,.444],602:[.455,.016,.639],603:[.461,.011,.417],604:[.467,.022,.472],605:[.467,.022,.639,{ic:.022}],606:[.467,.022,.5],607:[.445,.205,.306],608:[.647,.218,.536,{ic:.082}],609:[.455,.217,.517],610:[.459,.015,.48],611:[.445,.217,.461],612:[.467,.022,.528],613:[.445,.2,.517],614:[.717,0,.517],615:[.717,.217,.508],616:[.68,0,.328],617:[.445,.011,.333,{ic:.002}],618:[.445,0,.191],619:[.695,0,.383],620:[.695,0,.35],621:[.695,.217,.258,{ic:.055}],622:[.695,.205,.526],623:[.445,.011,.794],624:[.445,.2,.794],625:[.455,.217,.814],626:[.455,.217,.517],627:[.455,.217,.536,{ic:.055}],628:[.445,0,.505],629:[.461,.011,.5],630:[.46,.015,.686],631:[.456,.011,.611],632:[.695,.195,.611],633:[.445,.011,.342],634:[.639,.011,.342],635:[.445,.217,.342,{ic:.074}],636:[.455,.195,.342],637:[.455,.217,.342],638:[.455,0,.342],639:[.455,0,.314],640:[.445,0,.451],641:[.445,0,.451],642:[.461,.217,.383],643:[.717,.217,.333,{ic:.029}],644:[.647,.217,.333,{ic:.043}],645:[.455,.205,.367,{ic:.024}],646:[.717,.217,.333,{ic:.029}],647:[.455,.127,.361],648:[.571,.217,.361],649:[.445,.011,.572],650:[.445,.022,.556],651:[.456,.011,.481],652:[.445,0,.461],653:[.445,0,.683],654:[.65,0,.461],655:[.445,0,.463],656:[.445,.217,.435,{ic:.089}],657:[.445,.146,.49],658:[.445,.205,.435],659:[.445,.205,.435,{ic:.01}],660:[.705,0,.5],661:[.705,0,.5],662:[.695,.011,.5],663:[.711,.205,.5],664:[.717,.022,.736],665:[.445,0,.472],666:[.467,.022,.5],667:[.671,.015,.499,{ic:.072}],668:[.445,0,.505],669:[.68,.205,.331],670:[.445,.2,.489],671:[.445,0,.372],672:[.647,.195,.536,{ic:.082}],673:[.705,0,.5],674:[.705,0,.5],675:[.722,.011,.827],676:[.695,.205,.713],677:[.722,.146,.882],678:[.635,.011,.639],679:[.717,.217,.528,{ic:.036}],680:[.571,.146,.685],681:[.733,.205,.721],682:[.722,.011,.521],683:[.722,0,.558],684:[.499,0,.341],685:[.428,0,.5],686:[.455,.195,.556],687:[.455,.205,.556,{ic:.052}],7424:[.445,0,.463],7431:[.445,0,.411],7434:[.445,.015,.336],7435:[.445,0,.483],7437:[.445,0,.622],7448:[.445,0,.452],7449:[.445,0,.451],7452:[.445,.015,.484],7491:[.574,-.291,.288],7492:[.57,-.286,.288],7493:[.57,-.29,.31],7494:[.574,-.29,.433],7495:[.73,-.29,.31],7496:[.73,-.29,.31],7497:[.573,-.29,.266],7498:[.57,-.287,.266],7499:[.573,-.29,.25],7501:[.57,-.174,.3],7503:[.73,-.297,.293],7504:[.571,-.297,.476],7505:[.571,-.174,.31],7506:[.574,-.291,.3],7507:[.571,-.287,.266],7510:[.571,-.18,.31],7511:[.64,-.291,.216],7512:[.564,-.291,.31],7514:[.564,-.29,.476],7515:[.564,-.297,.276],7517:[.737,-.214,.3],7518:[.57,-.194,.333],7520:[.57,-.18,.349],7521:[.571,-.173,.333],7544:[.564,-.297,.31],7568:[.461,.217,.536],7569:[.717,.217,.614,{ic:.002}],7570:[.461,.217,.5,{ic:.06}],7571:[.467,.217,.528,{ic:.051}],7575:[.455,.217,.444]}},PHSSB:{"bold-sans-serif":{592:[.46,.01,.493],593:[.456,.011,.539],594:[.456,.011,.539],595:[.717,.01,.527],596:[.46,.01,.459],597:[.475,.146,.489],598:[.653,.207,.527,{ic:.154}],599:[.717,.01,.527,{ic:.156}],600:[.46,.01,.48],601:[.46,.01,.48],602:[.441,.016,.703],603:[.475,.011,.458],604:[.475,.011,.458],605:[.475,.011,.655,{ic:.048}],606:[.481,.022,.55],607:[.444,.167,.336],608:[.662,.18,.527,{ic:.156}],609:[.455,.18,.527],610:[.436,.014,.547],611:[.458,.217,.5],612:[.481,.022,.581,{ic:.003}],613:[.443,.21,.527],614:[.717,0,.527],615:[.717,.207,.527],616:[.653,0,.417],617:[.445,.011,.278],618:[.444,0,.274],619:[.693,0,.414],620:[.693,0,.378],621:[.695,.217,.281,{ic:.065}],622:[.653,.205,.611],623:[.455,0,.815],624:[.455,.195,.815],625:[.455,.207,.815],626:[.455,.207,.527],627:[.455,.217,.527,{ic:.094}],628:[.444,0,.588],629:[.474,.019,.475],630:[.474,.019,.696],631:[.482,.011,.672],632:[.695,.195,.672],633:[.442,.012,.349],634:[.653,.012,.349],635:[.442,.207,.349,{ic:.113}],636:[.469,.196,.349],637:[.469,.217,.349,{ic:.001}],638:[.468,0,.371],639:[.468,0,.371],640:[.458,0,.55],641:[.458,0,.55],642:[.46,.217,.396],643:[.717,.217,.367,{ic:.029}],644:[.644,.217,.367,{ic:.029}],645:[.467,.217,.497],646:[.717,.217,.367,{ic:.029}],647:[.468,.113,.38],648:[.571,.217,.38],649:[.444,.01,.634],650:[.444,.024,.555],651:[.444,.011,.525],652:[.444,0,.5],653:[.444,0,.744],654:[.611,0,.47],655:[.445,0,.623],656:[.444,.207,.447,{ic:.137}],657:[.444,.14,.585],658:[.458,.205,.476],659:[.458,.232,.476,{ic:.009}],660:[.706,-.001,.519],661:[.706,-.001,.519],662:[.696,.009,.519],663:[.711,.206,.55],664:[.717,.022,.794],665:[.458,0,.547],666:[.481,.022,.55],667:[.677,.014,.547,{ic:.153}],668:[.458,0,.588],669:[.653,.206,.269,{ic:.042}],670:[.444,.209,.499],671:[.458,0,.48],672:[.647,.157,.527,{ic:.156}],673:[.706,0,.519],674:[.706,0,.519],675:[.653,.01,.883],676:[.653,.205,.931],677:[.653,.14,1.025],678:[.571,.01,.718],679:[.717,.217,.639],680:[.571,.146,.757],681:[.733,.206,.786],682:[.653,.016,.581],683:[.653,0,.601],684:[.508,0,.371],685:[.44,0,.55],686:[.469,.21,.677],687:[.469,.207,.863],7424:[.459,0,.564],7431:[.458,0,.495],7434:[.459,.015,.413],7435:[.458,0,.598],7437:[.458,0,.778],7448:[.458,0,.556],7449:[.458,0,.55],7452:[.458,.015,.604],7491:[.591,-.292,.364],7492:[.591,-.292,.364],7493:[.586,-.298,.336],7494:[.591,-.292,.529],7495:[.738,-.298,.336],7496:[.738,-.298,.336],7497:[.59,-.298,.306],7498:[.59,-.298,.306],7499:[.59,-.299,.274],7501:[.587,-.181,.33],7503:[.738,-.305,.318],7504:[.588,-.304,.519],7505:[.587,-.182,.336],7506:[.591,-.299,.33],7507:[.586,-.295,.293],7510:[.587,-.188,.336],7511:[.659,-.297,.242],7512:[.58,-.298,.336],7514:[.582,-.298,.519],7515:[.58,-.305,.3],7517:[.745,-.249,.33],7518:[.586,-.185,.366],7520:[.586,-.188,.385],7521:[.59,-.18,.366],7544:[.58,-.305,.336],7568:[.46,.217,.493,{ic:.081}],7569:[.717,.207,.527,{ic:.156}],7570:[.46,.221,.48,{ic:.139}],7571:[.475,.221,.48,{ic:.139}],7575:[.46,.223,.48]}},PHSSI:{"sans-serif-italic":{592:[.455,.016,.481,{ic:.028}],593:[.455,.011,.517,{ic:.015}],594:[.455,.011,.517,{ic:.018}],595:[.717,.011,.556,{ic:.082}],596:[.456,.016,.444,{ic:.017}],597:[.461,.146,.444,{ic:.057}],598:[.695,.217,.536,{ic:.066}],599:[.717,.011,.517,{ic:.241}],600:[.461,.011,.444,{ic:.024}],601:[.461,.011,.444,{ic:.024}],602:[.455,.016,.639,{ic:.066}],603:[.461,.011,.417,{ic:.055}],604:[.467,.022,.472,{ic:.018}],605:[.467,.022,.639,{ic:.09}],606:[.467,.022,.5,{ic:.018}],607:[.445,.205,.306,{ic:.037}],608:[.647,.217,.536,{ic:.21}],609:[.455,.217,.517,{ic:.016}],610:[.459,.015,.48,{ic:.032}],611:[.445,.217,.461,{ic:.083}],612:[.467,.022,.528,{ic:.071}],613:[.445,.2,.517,{ic:.015}],614:[.717,0,.517,{ic:.075}],615:[.717,.217,.508,{ic:.067}],616:[.68,0,.328,{ic:.029}],617:[.445,.011,.333,{ic:.035}],618:[.445,0,.191,{ic:.049}],619:[.695,0,.383,{ic:.047}],620:[.695,0,.35,{ic:.051}],621:[.695,.217,.258,{ic:.047}],622:[.695,.205,.526,{ic:.06}],623:[.445,.011,.794,{ic:.015}],624:[.445,.2,.794,{ic:.015}],625:[.455,.217,.814],626:[.455,.217,.517],627:[.455,.217,.536,{ic:.019}],628:[.445,0,.505,{ic:.037}],629:[.461,.011,.5,{ic:.021}],630:[.46,.015,.686,{ic:.049}],631:[.456,.011,.611,{ic:.019}],632:[.695,.195,.611,{ic:.008}],633:[.445,.011,.342,{ic:.013}],634:[.639,.011,.342,{ic:.054}],635:[.445,.217,.342,{ic:.038}],636:[.455,.195,.342,{ic:.083}],637:[.455,.217,.342,{ic:.083}],638:[.455,0,.342,{ic:.083}],639:[.455,0,.314],640:[.445,0,.451,{ic:.024}],641:[.445,0,.451,{ic:.071}],642:[.461,.217,.383,{ic:.053}],643:[.717,.217,.333,{ic:.172}],644:[.647,.217,.333,{ic:.17}],645:[.455,.205,.367,{ic:.014}],646:[.717,.217,.333,{ic:.173}],647:[.455,.127,.361],648:[.571,.217,.361,{ic:.023}],649:[.445,.011,.572,{ic:.03}],650:[.445,.022,.556,{ic:.038}],651:[.456,.011,.481,{ic:.024}],652:[.445,0,.461],653:[.445,0,.683],654:[.65,0,.461,{ic:.094}],655:[.445,0,.463,{ic:.09}],656:[.445,.217,.435,{ic:.059}],657:[.445,.146,.49,{ic:.017}],658:[.445,.205,.435,{ic:.059}],659:[.445,.205,.435,{ic:.06}],660:[.705,0,.5,{ic:.06}],661:[.705,0,.5,{ic:.082}],662:[.695,.011,.5],663:[.711,.205,.5,{ic:.055}],664:[.717,.022,.736,{ic:.027}],665:[.445,0,.472,{ic:.006}],666:[.467,.022,.5,{ic:.025}],667:[.671,.015,.499,{ic:.205}],668:[.445,0,.505,{ic:.038}],669:[.679,.205,.331,{ic:.026}],670:[.445,.2,.489],671:[.445,0,.372],672:[.647,.195,.536,{ic:.206}],673:[.705,0,.5,{ic:.06}],674:[.705,0,.5,{ic:.081}],675:[.722,.011,.828,{ic:.059}],676:[.695,.205,.713,{ic:.059}],677:[.722,.146,.883,{ic:.017}],678:[.635,.011,.639,{ic:.07}],679:[.717,.217,.528,{ic:.18}],680:[.571,.146,.686,{ic:.057}],681:[.733,.205,.721],682:[.722,.011,.522,{ic:.053}],683:[.722,0,.574,{ic:.059}],684:[.499,0,.341,{ic:.102}],685:[.428,0,.5],686:[.455,.195,.556],687:[.455,.205,.556,{ic:.042}],7424:[.445,0,.463],7431:[.445,0,.411,{ic:.049}],7434:[.445,.015,.336,{ic:.038}],7435:[.445,0,.483,{ic:.055}],7437:[.445,0,.622,{ic:.038}],7448:[.445,0,.452,{ic:.022}],7449:[.445,0,.451,{ic:.037}],7452:[.445,.015,.484,{ic:.039}],7491:[.573,-.291,.351],7492:[.57,-.287,.351,{ic:.018}],7493:[.571,-.29,.373,{ic:.01}],7494:[.574,-.291,.496,{ic:.018}],7495:[.73,-.291,.373,{ic:.011}],7496:[.73,-.29,.373,{ic:.043}],7497:[.574,-.29,.329,{ic:.017}],7498:[.57,-.287,.329,{ic:.015}],7499:[.573,-.29,.313,{ic:.034}],7501:[.57,-.173,.363,{ic:.043}],7503:[.73,-.297,.356,{ic:.04}],7504:[.57,-.297,.539],7505:[.571,-.174,.373],7506:[.573,-.291,.363,{ic:.013}],7507:[.57,-.287,.329,{ic:.011}],7510:[.571,-.18,.373,{ic:.012}],7511:[.64,-.29,.279,{ic:.031}],7512:[.564,-.29,.373,{ic:.009}],7514:[.564,-.29,.539,{ic:.01}],7515:[.564,-.297,.339,{ic:.052}],7517:[.737,-.214,.363,{ic:.019}],7518:[.57,-.194,.396,{ic:.034}],7520:[.571,-.18,.412,{ic:.01}],7521:[.571,-.173,.396,{ic:.038}],7544:[.564,-.297,.373,{ic:.008}],7568:[.461,.217,.536],7569:[.717,.217,.614,{ic:.144}],7570:[.461,.217,.5,{ic:.025}],7571:[.467,.217,.528,{ic:.016}],7575:[.455,.217,.444,{ic:.017}]}},PHSSBI:{"sans-serif-bold-italic":{592:[.46,.01,.493,{ic:.058}],593:[.456,.011,.539,{ic:.043}],594:[.456,.011,.539,{ic:.031}],595:[.717,.01,.527,{ic:.056}],596:[.46,.01,.459,{ic:.049}],597:[.475,.146,.489,{ic:.052}],598:[.653,.207,.527,{ic:.122}],599:[.717,.01,.527,{ic:.297}],600:[.46,.01,.48,{ic:.056}],601:[.46,.01,.48,{ic:.059}],602:[.441,.016,.703,{ic:.023}],603:[.475,.011,.458,{ic:.056}],604:[.475,.011,.458,{ic:.059}],605:[.475,.011,.655,{ic:.119}],606:[.481,.022,.55,{ic:.022}],607:[.444,.167,.336,{ic:.04}],608:[.662,.18,.527,{ic:.285}],609:[.455,.18,.527,{ic:.04}],610:[.436,.014,.547,{ic:.028}],611:[.458,.217,.5,{ic:.081}],612:[.481,.022,.581,{ic:.091}],613:[.443,.21,.527,{ic:.037}],614:[.717,0,.527,{ic:.13}],615:[.717,.207,.527,{ic:.13}],616:[.653,0,.417,{ic:.025}],617:[.445,.011,.278],618:[.444,0,.274,{ic:.006}],619:[.693,0,.414,{ic:.049}],620:[.693,0,.378,{ic:.062}],621:[.695,.217,.281,{ic:.061}],622:[.653,.205,.611,{ic:.06}],623:[.455,0,.815,{ic:.039}],624:[.455,.195,.815,{ic:.039}],625:[.455,.207,.815,{ic:.03}],626:[.455,.207,.527,{ic:.031}],627:[.455,.217,.527,{ic:.06}],628:[.444,0,.588,{ic:.011}],629:[.474,.019,.475,{ic:.054}],630:[.474,.019,.696,{ic:.064}],631:[.482,.011,.672,{ic:.045}],632:[.695,.195,.672,{ic:.057}],633:[.442,.012,.349,{ic:.038}],634:[.653,.012,.349,{ic:.083}],635:[.442,.207,.349,{ic:.081}],636:[.469,.196,.349,{ic:.089}],637:[.469,.217,.349,{ic:.089}],638:[.468,0,.371,{ic:.083}],639:[.468,0,.371,{ic:.022}],640:[.458,0,.55,{ic:.025}],641:[.458,0,.55,{ic:.042}],642:[.46,.217,.396,{ic:.052}],643:[.717,.217,.367,{ic:.172}],644:[.644,.217,.367,{ic:.157}],645:[.467,.217,.497],646:[.717,.217,.367,{ic:.172}],647:[.468,.113,.38,{ic:.013}],648:[.571,.217,.38,{ic:.047}],649:[.444,.01,.634,{ic:.019}],650:[.444,.024,.555,{ic:.063}],651:[.444,.011,.525,{ic:.017}],652:[.444,0,.5],653:[.444,0,.744],654:[.611,0,.47,{ic:.09}],655:[.445,0,.623,{ic:.029}],656:[.444,.207,.447,{ic:.105}],657:[.444,.14,.585,{ic:.009}],658:[.458,.205,.476,{ic:.06}],659:[.458,.232,.476,{ic:.06}],660:[.706,-.001,.519,{ic:.08}],661:[.706,-.001,.519,{ic:.071}],662:[.696,.009,.519],663:[.711,.206,.55,{ic:.059}],664:[.717,.022,.794,{ic:.077}],665:[.458,0,.547,{ic:.013}],666:[.481,.022,.55,{ic:.044}],667:[.677,.014,.547,{ic:.288}],668:[.458,0,.588,{ic:.015}],669:[.653,.206,.269,{ic:.081}],670:[.444,.209,.499,{ic:.029}],671:[.458,0,.48],672:[.647,.157,.527,{ic:.282}],673:[.706,0,.519,{ic:.08}],674:[.706,0,.519,{ic:.069}],675:[.653,.01,.883,{ic:.049}],676:[.653,.205,.931,{ic:.029}],677:[.653,.14,1.025],678:[.571,.01,.718,{ic:.051}],679:[.717,.217,.639,{ic:.113}],680:[.571,.146,.757,{ic:.044}],681:[.733,.206,.786,{ic:.03}],682:[.653,.016,.581,{ic:.038}],683:[.653,0,.601,{ic:.043}],684:[.508,0,.371,{ic:.085}],685:[.44,0,.55,{ic:.007}],686:[.469,.21,.677,{ic:.047}],687:[.469,.207,.863],7424:[.459,0,.564],7431:[.458,0,.495,{ic:.042}],7434:[.459,.015,.413,{ic:.026}],7435:[.458,0,.598,{ic:.075}],7437:[.458,0,.778,{ic:.025}],7448:[.458,0,.556,{ic:.037}],7449:[.458,0,.55,{ic:.025}],7452:[.458,.015,.604,{ic:.024}],7491:[.591,-.292,.364,{ic:.092}],7492:[.591,-.292,.364,{ic:.09}],7493:[.586,-.298,.336,{ic:.088}],7494:[.591,-.292,.529,{ic:.089}],7495:[.738,-.298,.336,{ic:.084}],7496:[.738,-.298,.336,{ic:.12}],7497:[.59,-.298,.306,{ic:.092}],7498:[.59,-.298,.306,{ic:.101}],7499:[.59,-.299,.274,{ic:.101}],7501:[.587,-.181,.33,{ic:.113}],7503:[.738,-.305,.318,{ic:.112}],7504:[.588,-.304,.519,{ic:.09}],7505:[.587,-.182,.336,{ic:.089}],7506:[.591,-.299,.33,{ic:.095}],7507:[.586,-.295,.293,{ic:.09}],7510:[.587,-.188,.336,{ic:.085}],7511:[.659,-.297,.242,{ic:.093}],7512:[.58,-.298,.336,{ic:.087}],7514:[.582,-.298,.519,{ic:.088}],7515:[.58,-.305,.3,{ic:.113}],7517:[.745,-.249,.33,{ic:.092}],7518:[.586,-.185,.366,{ic:.103}],7520:[.586,-.188,.385,{ic:.082}],7521:[.59,-.18,.366,{ic:.096}],7544:[.58,-.305,.336,{ic:.082}],7568:[.46,.217,.493,{ic:.043}],7569:[.717,.207,.527,{ic:.297}],7570:[.46,.221,.48,{ic:.102}],7571:[.475,.221,.48,{ic:.102}],7575:[.46,.223,.48,{ic:.028}]}}},"NCM"),{},["MJX-NCM-PHSS","MJX-NCM-PHSSB","MJX-NCM-PHSSI","MJX-NCM-PHSSBI"]);
@@ -0,0 +1 @@
1
+ var i={load:{method:"POST",path:"/api/player/load"},saveSession:{method:"POST",path:"/api/player/save"},model:{method:"POST",path:"/api/player/model"},score:{method:"POST",path:"/api/player/score"},authoringLoad:{method:"POST",path:"/api/authoring/load"},authoringSaveContent:{method:"POST",path:"/api/authoring/save"},authoringReleaseContent:{method:"POST",path:"/api/authoring/release"}};function S(n){return n?n.endsWith("/")?n.slice(0,-1):n:""}function r(n,o){return n?typeof n=="string"?{method:o.method,path:n}:{method:n.method??o.method,path:n.path}:o}function d(n,o){if(/^https?:\/\//i.test(o))return o;const e=S(n),t=o.startsWith("/")?o:`/${o}`;return e.endsWith("/api")&&t.startsWith("/api/")?`${e}${t.slice(4)}`:`${e}${t}`}async function l(n,o){const e=n??o;if(!e)return null;if(typeof e.getToken=="function"){const t=await e.getToken();return t?String(t):null}return e.token?String(e.token):null}var w=65536;function P(n){return(typeof TextEncoder<"u"?new TextEncoder().encode(n).length:n.length)>w}async function c(n,o,e,t,s,a){const p=JSON.stringify(e??{}),g=a?.keepalive===!0&&!P(p),h=typeof AbortController<"u"?new AbortController:null,I=!g&&typeof t?.timeoutMs=="number"&&t.timeoutMs>0?t.timeoutMs:0,m=h&&I>0?setTimeout(()=>h.abort(),I):null;try{const f={"content-type":"application/json",...t?.headers||{}};s&&(f.authorization=`Bearer ${s}`);const v=await fetch(n,{method:o,headers:f,body:p,signal:m?h?.signal:void 0,keepalive:g}),u=await v.json().catch(()=>null);if(!v.ok){const y=(u&&typeof u=="object"&&"error"in u?String(u.error):"")||`Backend request failed with status ${v.status}`;throw new Error(y)}return u}finally{m&&clearTimeout(m)}}async function b(n,o,e){const t=r(n.endpoints?.load,i.load),s=await l(n.auth,o);return c(d(n.baseUrl,t.path),t.method,{itemId:e.itemId,sessionId:e.sessionId,assignmentId:e.assignmentId,env:e.env,overrides:e.requestOptions?.overrides},n.request,s)}async function T(n,o,e,t){const s=r(n.endpoints?.saveSession,i.saveSession),a=await l(n.auth,o),p=e.session.id||e.sessionId;return c(d(n.baseUrl,s.path),s.method,{sessionId:p,data:e.session.data,env:e.env,itemId:e.itemId,assignmentId:e.assignmentId,models:e.models,passageModels:e.passageModels,overrides:e.requestOptions?.overrides},n.request,a,{keepalive:t?.keepalive===!0})}async function A(n,o,e){const t=r(n.endpoints?.model,i.model),s=await l(n.auth,o),a=e.session.id||e.sessionId;return c(d(n.baseUrl,t.path),t.method,{sessionId:a,data:e.session.data,env:e.env,itemId:e.itemId,assignmentId:e.assignmentId,models:e.models,passageModels:e.passageModels,overrides:e.requestOptions?.overrides},n.request,s)}async function O(n,o,e){const t=r(n.endpoints?.score,i.score),s=await l(n.auth,o),a=e.session.id||e.sessionId;return c(d(n.baseUrl,t.path),t.method,{...e.options,sessionId:a,data:e.session.data,env:e.env,itemId:e.itemId,assignmentId:e.assignmentId,overrides:e.requestOptions?.overrides},n.request,s)}async function q(n,o,e){const t=r(n.endpoints?.load,i.authoringLoad),s=await l(n.auth,o);return c(d(n.baseUrl,t.path),t.method,{contentId:e.contentId,collectionId:e.collectionId,env:e.env},n.request,s)}async function k(n,o,e){const t=r(n.endpoints?.saveContent,i.authoringSaveContent),s=await l(n.auth,o);return c(d(n.baseUrl,t.path),t.method,{contentId:e.contentId,collectionId:e.collectionId,config:e.config,env:e.env,options:e.options},n.request,s)}async function C(n,o,e){const t=r(n.endpoints?.releaseContent,i.authoringReleaseContent),s=await l(n.auth,o);return c(d(n.baseUrl,t.path),t.method,{contentId:e.contentId,collectionId:e.collectionId,env:e.env,options:e.options},n.request,s)}export{q as callPieApiAuthoringLoad,C as callPieApiAuthoringReleaseContent,k as callPieApiAuthoringSaveContent,b as callPieApiDeliveryLoad,A as callPieApiDeliveryModel,T as callPieApiDeliverySave,O as callPieApiDeliveryScore};
@@ -0,0 +1,9 @@
1
+ import{t as S}from"./defineProperty-a20a667d.js";import{a as hn,i as m,n as w,r as b,t as l}from"./classPrivateFieldGet2-338e0179.js";import{g as pi,n as gi}from"./tool-host-contract-b93b482c.js";import{i as wi}from"./provider-4c704118.js";var Jr,Kr,Le,Et,Nt,ve,oe,At,Wt,Xt,ot,cr,zt,dt,$t,Ee,ae,E,yr,tt,Re,at,Qt,J,et,U,rt,bt,It,Pt,ue,qe,ze,Ct,fr,P,ht,yt,G,Kt,Pe,Oe,hr,Tt,lt;typeof window<"u"&&((Jr=(Kr=window).__svelte??(Kr.__svelte={})).v??(Jr.v=new Set)).add("5");var te={},I=Symbol("uninitialized"),_i="http://www.w3.org/1999/xhtml",mi=Array.isArray,yi=Array.prototype.indexOf,$r=Array.prototype.includes,$i=Array.from,Ke=Object.keys,we=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,bi=Object.getOwnPropertyDescriptors,ki=Object.prototype,Mi=Array.prototype,vn=Object.getPrototypeOf,Ur=Object.isExtensible,xi=()=>{};function Si(t){for(var e=0;e<t.length;e++)t[e]()}function dn(){var t,e;return{promise:new Promise((r,n)=>{t=r,e=n}),resolve:t,reject:e}}var nt=1024,ft=2048,Vt=4096,Er=8192,Ci=16384,Pr=32768,Xr=1<<25,Or=65536,ie=1<<19,Ti=1<<20,Yr=1<<21,Wi=1<<22,Ue=1<<23,de=Symbol("$state"),pn=Symbol("component"),gn=Symbol("legacy props"),Ei=Symbol(""),br=Symbol("attributes"),Pi=Symbol("class"),Oi=Symbol("style"),Fe=Symbol("text"),$e=new class extends Error{constructor(...t){super(...t),S(this,"name","StaleReactionError"),S(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},ji=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Ai(){console.warn("https://svelte.dev/e/derived_inert")}function rr(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ii(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var O=!1;function Zt(t){O=t}var T;function wt(t){if(t===null)throw rr(),te;return T=t}function jr(){return wt(Ot(T))}function De(t){if(O){if(Ot(T)!==null)throw rr(),te;T=t}}function Ni(t=1){if(O){for(var e=t,r=T;e--;)r=Ot(r);T=r}}function wn(t=!0){for(var e=0,r=T;;){if(r.nodeType===8){var n=r.data;if(n==="]"){if(e===0)return r;e-=1}else(n==="["||n==="[!"||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(e+=1)}var i=Ot(r);t&&r.remove(),r=i}}function Li(t){if(!t||t.nodeType!==8)throw rr(),te;return t.data}function _n(t){return t===this.v}function Ri(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function mn(t){return!Ri(t,this.v)}function qi(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function zi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Fi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Di(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Bi(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Hi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vi(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ji(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ki(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ui(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var nr=!1,ir=!1,j=null;function ee(t){j=t}function Ar(t,e=!1,r){j={p:j,i:!1,c:null,e:null,s:t,x:null,r:y,l:ir&&!e?{s:null,u:null,$:[]}:null}}function Ir(t){var e=j,r=e.e;if(r!==null){e.e=null;for(var n of r)Ln(n)}return t!==void 0&&(e.x=t),e.i=!0,j=e.p,Nr(t)}function Nr(t={}){return we(t,pn,{value:!0}),t}function be(){return!ir||j!==null&&j.l===null}var Rt=[];function yn(){var t=Rt;Rt=[],Si(t)}function Bt(t){if(Rt.length===0&&!pe){var e=Rt;queueMicrotask(()=>{e===Rt&&yn()})}Rt.push(t)}function Zi(){for(;Rt.length>0;)yn()}var Gi=~(ft|Vt|nt);function A(t,e){t.f=t.f&Gi|e}function Lr(t){(t.f&512)!==0||t.deps===null?A(t,nt):A(t,Vt)}function $n(t,e,r){(t.f&2048)!==0?e.add(t):t.f&4096&&r.add(t),A(t,nt)}function sr(t){var e=k,r=y;it(null),_t(null);try{return t()}finally{it(e),_t(r)}}function Qi(t,e,r,n){const i=be()?_e:kn;var s=t.filter(h=>!h.settled),o=e.map(i);if(r.length===0&&s.length===0){n(o);return}var a=y,c=ts(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function f(h){if((a.f&16384)===0){c();try{n([...o,...h])}catch(_){gt(_,a)}Xe()}}var v=bn();if(r.length===0){u.then(()=>f([])).finally(v);return}function p(){Promise.all(r.map(h=>es(h))).then(f).catch(h=>gt(h,a)).finally(v)}u?u.then(()=>{c(),p(),Xe()}):p()}function ts(){var t=y,e=k,r=j,n=$;return function(i=!0){_t(t),it(e),ee(r),i&&!(t.f&16384)&&(n?.activate(),n?.apply())}}function Xe(t=!0){_t(null),it(null),ee(null),t&&$?.deactivate()}function bn(){var t=y,e=t.b,r=$,n=!!e?.is_rendered();return e?.update_pending_count(1,r),r.increment(n,t),()=>{e?.update_pending_count(-1,r),r.decrement(n,t)}}function _e(t){var e=2|ft;return y!==null&&(y.f|=ie),{ctx:j,deps:null,effects:null,equals:_n,f:e,fn:t,reactions:null,rv:0,v:I,wv:0,parent:y,ac:null}}var fe=Symbol("obsolete");function es(t,e,r){let n=y;n===null&&zi();var i=void 0,s=ke(I),o=!k,a=new Set;return ys(()=>{var c=y,u=dn();i=u.promise;try{Promise.resolve(t()).then(u.resolve,h=>{h!==$e&&u.reject(h)}).finally(Xe)}catch(h){u.reject(h),Xe()}var f=$;if(o){if((c.f&32768)!==0)var v=bn();if(n.b?.is_rendered())f.async_deriveds.get(c)?.reject(fe);else for(const h of a.values())h.reject(fe);a.add(u),f.async_deriveds.set(c,u)}const p=(h,_=void 0)=>{v?.(),a.delete(u),_!==fe&&(f.activate(),_?(s.f|=Ue,tr(s,_)):(s.f&8388608&&(s.f^=Ue),tr(s,h)),f.deactivate())};u.promise.then(p,h=>p(null,h||"unknown"))}),ws(()=>{for(const c of a)c.reject(fe)}),new Promise(c=>{function u(f){function v(){f===i?c(s):u(i)}f.then(v,v)}u(i)})}function ce(t){const e=_e(t);return Vn(e),e}function kn(t){const e=_e(t);return e.equals=mn,e}function rs(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)X(e[r])}}function Rr(t){var e,r=y,n=t.parent;if(!Mt&&n!==null&&t.v!==I&&(n.f&24576)!==0)return Ai(),t.v;_t(n);try{rs(t),e=Xn(t)}finally{_t(r)}return e}function Mn(t){var e=Rr(t);if(!t.equals(e)&&(t.wv=Kn(),(!$?.is_fork||t.deps===null)&&($!==null?($.capture(t,e,!0),Mr?.capture(t,e,!0)):t.v=e,t.deps===null))){A(t,nt);return}Mt||(q!==null?(zr()||$?.is_fork)&&q.set(t,e):Lr(t))}function ns(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&sr(()=>{e.ac.abort($e),e.ac=null}),e.fn!==null&&(e.teardown=xi),ye(e,0),Dr(e))}function xn(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&ne(e)}var kr=null,Yt=null,$=null,Mr=null,q=null,xr=null,pe=!1,vr=!1,me=null,Ye=null,Sn=0,is=1,se=(Le=new WeakMap,Et=new WeakMap,Nt=new WeakMap,ve=new WeakMap,oe=new WeakMap,At=new WeakMap,Wt=new WeakMap,Xt=new WeakMap,ot=new WeakMap,cr=new WeakMap,zt=new WeakMap,dt=new WeakMap,$t=new WeakMap,Ee=new WeakMap,ae=new WeakMap,E=new WeakSet,yr=class Cn{constructor(){hn(this,E),S(this,"id",is++),m(this,Le,!1),S(this,"linked",!0),m(this,Et,null),m(this,Nt,null),S(this,"async_deriveds",new Map),S(this,"current",new Map),S(this,"previous",new Map),m(this,ve,new Set),m(this,oe,new Set),m(this,At,0),m(this,Wt,new Map),m(this,Xt,null),m(this,ot,[]),m(this,cr,[]),m(this,zt,new Set),m(this,dt,new Set),m(this,$t,new Map),m(this,Ee,new Set),S(this,"is_fork",!1),m(this,ae,!1),Yt===null?kr=Yt=this:(w(Nt,Yt,this),w(Et,this,Yt)),Yt=this}skip_effect(e){l($t,this).has(e)||l($t,this).set(e,{d:[],m:[]}),l(Ee,this).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=l($t,this).get(e);if(n){l($t,this).delete(e);for(var i of n.d)A(i,ft),r(i);for(i of n.m)A(i,Vt),r(i)}l(Ee,this).add(e)}capture(e,r,n=!1){e.v!==I&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[r,n]),q?.set(e,r)),this.is_fork||(e.v=r)}activate(){$=this}deactivate(){$=null,q=null}flush(){try{vr=!0,$=this,b(E,this,Ze).call(this)}finally{Sn=0,xr=null,me=null,Ye=null,vr=!1,$=null,q=null,pt.clear()}}discard(){for(const e of l(oe,this))e(this);l(oe,this).clear();for(const e of this.async_deriveds.values())e.reject(fe);b(E,this,Ge).call(this),l(Xt,this)?.resolve()}register_created_effect(e){l(cr,this).push(e)}increment(e,r){if(w(At,this,l(At,this)+1),e){let n=l(Wt,this).get(r)??0;l(Wt,this).set(r,n+1)}}decrement(e,r){if(w(At,this,l(At,this)-1),e){let n=l(Wt,this).get(r)??0;n===1?l(Wt,this).delete(r):l(Wt,this).set(r,n-1)}l(ae,this)||(w(ae,this,!0),Bt(()=>{w(ae,this,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)l(zt,this).add(n);for(const n of r)l(dt,this).add(n);e.clear(),r.clear()}oncommit(e){l(ve,this).add(e)}ondiscard(e){l(oe,this).add(e)}settled(){return(l(Xt,this)??w(Xt,this,dn())).promise}static ensure(){if($===null){const e=$=new Cn;!vr&&!pe&&Bt(()=>{l(Le,e)||e.flush()})}return $}apply(){if(!nr||!this.is_fork&&l(Et,this)===null&&l(Nt,this)===null){q=null;return}q=new Map;for(const[r,[n]]of this.current)q.set(r,n);for(let r=kr;r!==null;r=l(Nt,r))if(!(r===this||r.is_fork)){var e=!1;if(r.id<this.id){for(const[n,[,i]]of r.current)if(!i&&this.current.has(n)){e=!0;break}}if(!e)for(const[n,i]of r.previous)q.has(n)||q.set(n,i)}}schedule(e){if(xr=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}l(ot,this).push(e)}},yr);function Zr(){if(this.is_fork)return!0;for(const r of l(Wt,this).keys()){for(var t=r,e=!1;t.parent!==null;){if(l($t,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function ss(){var t=[];for(const i of l(ot,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,r=!1;e.parent!==null;){e=e.parent;var n=e.f;if((n&96)!==0){if((n&1024)===0){r=!0;break}e.f^=nt}}r||t.push(e)}return w(ot,this,[]),t}function Ze(){w(Le,this,!0);for(const o of l(zt,this))l(dt,this).delete(o),A(o,ft),this.schedule(o);for(const o of l(dt,this))A(o,Vt),this.schedule(o);this.apply();for(var t=me=[],e=[],r=Ye=[];l(ot,this).length>0;){Sn++>1e3&&(b(E,this,Ge).call(this),us());for(const o of b(E,this,ss).call(this))try{b(E,this,ls).call(this,o,t,e)}catch(a){throw En(o),b(E,this,Zr).call(this)||this.discard(),a}}if($=null,r.length>0){var n=yr.ensure();for(const o of r)n.schedule(o)}if(me=null,Ye=null,b(E,this,Zr).call(this)){b(E,this,je).call(this,e),b(E,this,je).call(this,t);for(const[o,a]of l($t,this))Wn(o,a);r.length>0&&b(E,$,Ze).call($);return}const i=b(E,this,os).call(this);if(i){b(E,this,je).call(this,e),b(E,this,je).call(this,t),b(E,i,as).call(i,this);return}l(zt,this).clear(),l(dt,this).clear();for(const o of l(ve,this))o(this);l(ve,this).clear(),Mr=this,Gr(e),Gr(t),Mr=null,l(Xt,this)?.resolve();var s=$;if(l(At,this)===0&&(l(ot,this).length===0||s!==null)&&b(E,this,Ge).call(this),l(ot,this).length>0)if(s!==null){for(const o of l(ot,this))l(ot,s).push(o);w(ot,this,[])}else s=this;s!==null&&(pt.clear(),b(E,s,Ze).call(s))}function ls(t,e,r){t.f^=nt;for(var n=t.first;n!==null;){var i=n.f,s=(i&96)!==0;if(!(s&&(i&1024)!==0||(i&8192)!==0||l($t,this).has(n))&&n.fn!==null){s?n.f^=nt:(i&4)!==0?e.push(n):nr&&(i&16777224)!==0?r.push(n):xe(n)&&(i&16&&l(dt,this).add(n),ne(n));var o=n.first;if(o!==null){n=o;continue}}for(;n!==null;){var a=n.next;if(a!==null){n=a;break}n=n.parent}}}function os(){for(var t=l(Et,this);t!==null;){if(!t.is_fork){for(const[e,[,r]]of this.current)if(t.current.has(e)&&!r)return t}t=l(Et,t)}return null}function as(t){for(const[r,n]of t.current)!this.previous.has(r)&&t.previous.has(r)&&this.previous.set(r,t.previous.get(r)),this.current.set(r,n);for(const[r,n]of t.async_deriveds){const i=this.async_deriveds.get(r);i&&n.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(l(zt,t),l(dt,t));const e=r=>{var n=r.reactions;if(n!==null&&!((r.f&2)!==0&&(r.f&6144)===0))for(const o of n){var i=o.f;if((i&2)!==0)e(o);else{var s=o;i&4194320&&!this.async_deriveds.has(s)&&(l(dt,this).delete(s),A(s,ft),this.schedule(s))}}};for(const r of this.current.keys())e(r);this.oncommit(()=>t.discard()),b(E,t,Ge).call(t),$=this,b(E,this,Ze).call(this)}function je(t){for(var e=0;e<t.length;e+=1)$n(t[e],l(zt,this),l(dt,this))}function Ge(){if(this.linked){var t=l(Et,this),e=l(Nt,this);t===null?kr=e:w(Nt,t,e),e===null?Yt=t:w(Et,e,t),this.linked=!1}}function F(t){var e=pe;pe=!0;try{var r;for(t&&($!==null&&!$.is_fork&&$.flush(),r=t());;){if(Zi(),$===null)return r;$.flush()}}finally{pe=e}}function us(){try{Hi()}catch(t){gt(t,xr)}}var vt=null;function Gr(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&24576)===0&&xe(n)&&(vt=new Set,ne(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Fn(n),vt?.size>0)){pt.clear();for(const i of vt){if((i.f&24576)!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)vt.has(o)&&(vt.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const c=s[a];!(c.f&24576)&&ne(c)}}vt.clear()}}vt=null}}function Tn(t){$.schedule(t)}function Wn(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),A(t,nt);for(var r=t.first;r!==null;)Wn(r,e),r=r.next}}function En(t){A(t,nt);for(var e=t.first;e!==null;)En(e),e=e.next}var Qe=new Set,pt=new Map,Pn=!1;function ke(t,e){return{f:0,v:t,reactions:null,equals:_n,rv:0,wv:0}}function z(t,e){const r=ke(t,e);return Vn(r),r}function cs(t,e=!1,r=!0){const n=ke(t);return e||(n.equals=mn),n}function x(t,e,r=!1){return k!==null&&(!ut||k.f&131072)&&be()&&k.f&4325394&&(ct===null||!ct.has(t))&&Xi(),tr(t,r?Gt(e):e,Ye)}var Lt=null,Sr=0;function tr(t,e,r=null){if(!t.equals(e)){Mt?pt.set(t,e):pt.has(t)||pt.set(t,t.v);var n=se.ensure();if(n.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Rr(i),q===null&&Lr(i)}t.wv=Kn(),Lt=null,Sr=0,On(t,ft,r),Lt=null,be()&&y!==null&&y.f&1024&&!(y.f&96)&&(Q===null?Ms([t]):Q.push(t)),!n.is_fork&&Qe.size>0&&!Pn&&fs()}return e}function fs(){Pn=!1;for(const t of Qe){t.f&1024&&A(t,Vt);let e;try{e=xe(t)}catch{e=!0}e&&ne(t)}Qe.clear()}function ge(t){x(t,t.v+1)}function On(t,e,r){var n=t.reactions;if(n!==null){var i=be(),s=n.length;if(Sr+=s,Sr>1e5&&Lt===null&&(Lt=new Set),Lt!==null){if(Lt.has(t))return;Lt.add(t)}for(var o=0;o<s;o++){var a=n[o],c=a.f;if(!(!i&&a===y)){var u=(c&ft)===0;if(u&&A(a,e),(c&131072)!==0)Qe.add(a);else if((c&2)!==0){var f=a;q?.delete(f),On(f,Vt,r)}else if(u){var v=a;c&16&&vt!==null&&vt.add(v),r!==null?r.push(v):Tn(v)}}}}}function Gt(t){if(typeof t!="object"||t===null||de in t||pn in t)return t;const e=vn(t);if(e!==ki&&e!==Mi)return t;var r=new Map,n=mi(t),i=z(0),s=null,o=Dt,a=c=>{if(Dt===o)return c();var u=k,f=Dt;it(null),nn(o);var v=c();return it(u),nn(f),v};return n&&r.set("length",z(t.length,s)),new Proxy(t,{defineProperty(c,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ki();var v=r.get(u);return v===void 0?a(()=>{var p=z(f.value,s);return r.set(u,p),p}):x(v,f.value,!0),!0},deleteProperty(c,u){var f=r.get(u);if(f===void 0){if(u in c){const v=a(()=>z(I,s));r.set(u,v),ge(i)}}else x(f,I),ge(i);return!0},get(c,u,f){if(u===de)return t;var v=r.get(u),p=u in c;if(v===void 0&&(!p||Ft(c,u)?.writable)&&(v=a(()=>z(Gt(p?c[u]:I),s)),r.set(u,v)),v!==void 0){var h=d(v);return h===I?void 0:h}return Reflect.get(c,u,f)},getOwnPropertyDescriptor(c,u){this.has?.(c,u);var f=Reflect.getOwnPropertyDescriptor(c,u),v=r.get(u);if(v!==void 0){var p=d(v);if(p===I)return;if(f&&"value"in f)f.value=p;else return{enumerable:!0,configurable:!0,value:p,writable:!0}}return f},has(c,u){if(u===de)return!0;var f=r.get(u),v=f!==void 0&&f.v!==I||Reflect.has(c,u);return(f!==void 0||y!==null&&(!v||Ft(c,u)?.writable))&&(f===void 0&&(f=a(()=>z(v?Gt(c[u]):I,s)),r.set(u,f)),d(f)===I)?!1:v},set(c,u,f,v){var p=r.get(u),h=u in c;if(n&&u==="length")for(var _=f;_<p.v;_+=1){var M=r.get(_+"");M!==void 0?x(M,I):_ in c&&(M=a(()=>z(I,s)),r.set(_+"",M))}if(p===void 0)(!h||Ft(c,u)?.writable)&&(p=a(()=>z(void 0,s)),x(p,Gt(f)),r.set(u,p));else{h=p.v!==I;var D=a(()=>Gt(f));x(p,D)}var L=Reflect.getOwnPropertyDescriptor(c,u);if(L?.set&&L.set.call(v,f),!h){if(n&&typeof u=="string"){var B=r.get("length"),H=Number(u);Number.isInteger(H)&&H>=B.v&&x(B,H+1)}ge(i)}return!0},ownKeys(c){d(i);var u=Reflect.ownKeys(c).filter(p=>{var h=r.get(p);return h===void 0||h.v!==I});for(var[f,v]of r)v.v!==I&&!(f in c)&&u.push(f);return u},setPrototypeOf(){Ui()}})}var Qr,jn,An,In;function Cr(){if(Qr===void 0){Qr=window,jn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;An=Ft(e,"firstChild").get,In=Ft(e,"nextSibling").get,Ur(t)&&(t[Pi]=void 0,t[br]=null,t[Oi]=void 0,t.__e=void 0),Ur(r)&&(r[Fe]=void 0)}}function Ht(t=""){return document.createTextNode(t)}function re(t){return An.call(t)}function Ot(t){return In.call(t)}function Be(t,e){if(!O)return re(t);var r=re(T);if(r===null)r=T.appendChild(Ht());else if(e&&r.nodeType!==3){var n=Ht();return r?.before(n),wt(n),n}return e&&Nn(r),wt(r),r}function tn(t,e=!1){if(!O)return re(t);var r=Be(t,e);return De(t),r}function dr(t,e=1,r=!1){let n=O?T:t;for(var i;e--;)i=n,n=Ot(n);if(!O)return n;if(r){if(n?.nodeType!==3){var s=Ht();return n===null?i?.after(s):n.before(s),wt(s),s}Nn(n)}return wt(n),n}function hs(t){t.textContent=""}function vs(){return!nr||vt!==null?!1:(y.f&Pr)!==0}function qr(t,e,r){return e==null||e==="http://www.w3.org/1999/xhtml"?r?document.createElement(t,{is:r}):document.createElement(t):r?document.createElementNS(e,t,{is:r}):document.createElementNS(e,t)}function Nn(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function ds(t){var e=y;if(e===null)return k.f|=Ue,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;gt(t,e)}function gt(t,e){if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}}function ps(t){y===null&&(k===null&&Bi(t),Di()),Mt&&Fi(t)}function gs(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function mt(t,e){var r=y;r!==null&&r.f&8192&&(t|=Er);var n={ctx:j,deps:null,nodes:null,f:t|ft|512,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};$?.register_created_effect(n);var i=n;if((t&4)!==0)me!==null?me.push(n):se.ensure().schedule(n);else if(e!==null){try{ne(n)}catch(o){throw X(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=Or))}if(i!==null&&(i.parent=r,r!==null&&gs(i,r),k!==null&&(k.f&2)!==0&&(t&64)===0)){var s=k;(s.effects??(s.effects=[])).push(i)}return n}function zr(){return k!==null&&!ut}function ws(t){const e=mt(8,null);return A(e,nt),e.teardown=t,e}function Tr(t){ps("$effect");var e=y.f;if(!k&&(e&32)!==0&&j!==null&&!j.i){var r=j;(r.e??(r.e=[])).push(t)}else return Ln(t)}function Ln(t){return mt(4|Ti,t)}function _s(t){se.ensure();const e=mt(64|ie,t);return()=>{X(e)}}function ms(t){se.ensure();const e=mt(64|ie,t);return(r={})=>new Promise(n=>{r.outro?Me(e,()=>{X(e),n(void 0)}):(X(e),n(void 0))})}function Rn(t){return mt(4,t)}function ys(t){return mt(Wi|ie,t)}function Fr(t,e=0){return mt(8|e,t)}function pr(t,e=[],r=[],n=[]){Qi(n,e,r,i=>{mt(8,()=>{t(...i.map(d))})})}function qn(t,e=0){return mt(16|e,t)}function kt(t){return mt(32|ie,t)}function zn(t){var e=t.teardown;if(e!==null){const r=Mt,n=k;rn(!0),it(null);try{e.call(null)}catch(i){gt(i,t.parent)}finally{rn(r),it(n)}}}function Dr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&sr(()=>{i.abort($e)});var n=r.next;(r.f&64)!==0?r.parent=null:X(r,e),r=n}}function $s(t){for(var e=t.first;e!==null;){var r=e.next;!(e.f&32)&&X(e),e=r}}function X(t,e=!0){var r=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(bs(t.nodes.start,t.nodes.end),r=!0),t.f|=Xr,Dr(t,e&&!r),ye(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)s.stop();zn(t),t.f^=Xr,t.f|=Ci;var i=t.parent;i!==null&&i.first!==null&&Fn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function bs(t,e){for(;t!==null;){var r=t===e?null:Ot(t);t.remove(),t=r}}function Fn(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Me(t,e,r=!0){var n=[];t.f|=256,Dn(t,n,!0);var i=()=>{r&&X(t),e&&e()},s=n.length;if(s>0){var o=()=>--s||i();for(var a of n)a.out(o)}else i()}function Dn(t,e,r){if((t.f&8192)===0){t.f^=Er;var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&e.push(a);for(var i=t.first;i!==null;){var s=i.next;if((i.f&64)===0){var o=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;Dn(i,e,o?r:!1)}i=s}}}function en(t){t.f&=-257,Bn(t,!0)}function Bn(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=Er,!(t.f&1024)&&(A(t,ft),se.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;Bn(r,i?e:!1),r=n}var s=t.nodes&&t.nodes.t;if(s!==null)for(const o of s)(o.is_global||e)&&o.in()}}function Hn(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:Ot(r);e.append(r),r=i}}var ks=null,He=!1,Mt=!1;function rn(t){Mt=t}var k=null,ut=!1;function it(t){k=t}var y=null;function _t(t){y=t}var ct=null;function Vn(t){k!==null&&(k.f&2097152||k.f&2)&&(ct??(ct=new Set)).add(t)}var K=null,Y=0,Q=null;function Ms(t){Q=t}var Jn=1,qt=0,Dt=qt;function nn(t){Dt=t}function Kn(){return++Jn}function xe(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var r=t.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(xe(s)&&Mn(s),s.wv>t.wv)return!0}e&512&&q===null&&A(t,nt)}return!1}function Un(t,e,r=!0){var n=t.reactions;if(n!==null&&!(!nr&&ct!==null&&ct.has(t)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&2)!==0?Un(s,e,!1):e===s&&(r?A(s,ft):s.f&1024&&A(s,Vt),Tn(s))}}function Xn(t){var e=K,r=Y,n=Q,i=k,s=ct,o=j,a=ut,c=Dt,u=t.f;K=null,Y=0,Q=null,k=(u&96)===0?t:null,ct=null,ee(t.ctx),ut=!1,Dt=++qt,t.ac!==null&&(sr(()=>{t.ac.abort($e)}),t.ac=null);try{t.f|=Yr;var f=t.fn,v=f();t.f|=Pr;var p=sn(t);if(be()&&Q!==null&&!ut&&p!==null&&(t.f&6146)===0)for(var h=0;h<Q.length;h++)Un(Q[h],t);if(i!==null&&i!==t){if(qt++,i.deps!==null)for(let _=0;_<r;_+=1)i.deps[_].rv=qt;if(e!==null)for(const _ of e)_.rv=qt;Q!==null&&(n===null?n=Q:n.push(...Q))}return t.f&8388608&&(t.f^=Ue),v}catch(_){return sn(t),ds(_)}finally{t.f^=Yr,K=e,Y=r,Q=n,k=i,ct=s,ee(o),ut=a,Dt=c}}function sn(t){var e=t.deps,r=$?.is_fork;if(K!==null){var n,i;if(r||ye(t,Y),e!==null&&Y>0)for(e.length=Y+K.length,i=0;i<K.length;i++)e[Y+i]=K[i];else t.deps=e=K;if(zr()&&(t.f&512)!==0)for(i=Y;i<e.length;i++)((n=e[i]).reactions??(n.reactions=[])).push(t)}else!r&&e!==null&&Y<e.length&&(ye(t,Y),e.length=Y);return e}function xs(t,e){let r=e.reactions;if(r!==null){var n=yi.call(r,t);if(n!==-1){var i=r.length-1;i===0?r=e.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(e.f&2)!==0&&(K===null||!$r.call(K,e))){var s=e;s.f&512&&(s.f^=512),s.v!==I&&Lr(s),s.ac!==null&&sr(()=>{s.ac.abort($e),s.ac=null,A(s,ft)}),ns(s),ye(s,0)}}function ye(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)xs(t,r[n])}function ne(t){var e=t.f;if((e&16384)===0){A(t,nt);var r=y,n=He;y=t,He=(e&96)===0;try{(e&16777232)!==0?$s(t):Dr(t),zn(t);var i=Xn(t);t.teardown=typeof i=="function"?i:null,t.wv=Jn}finally{He=n,y=r}}}function d(t){var e=(t.f&2)!==0;if(ks?.add(t),k!==null&&!ut&&!(y!==null&&(y.f&16384)!==0)&&(ct===null||!ct.has(t))){var r=k.deps;if((k.f&2097152)!==0)t.rv<qt&&(t.rv=qt,K===null&&r!==null&&r[Y]===t?Y++:K===null?K=[t]:K.push(t));else{var n;(n=k).deps??(n.deps=[]),$r.call(k.deps,t)||k.deps.push(t);var i=t.reactions;i===null?t.reactions=[k]:$r.call(i,k)||i.push(k)}}if(Mt&&pt.has(t))return pt.get(t);if(e){var s=t;if(Mt){var o=s.v;return(!(s.f&1024)&&s.reactions!==null||Zn(s))&&(o=Rr(s)),pt.set(s,o),o}var a=(s.f&512)===0&&!ut&&k!==null&&(He||(k.f&512)!==0),c=(s.f&Pr)===0;xe(s)&&(a&&(s.f|=512),Mn(s)),a&&!c&&(xn(s),Yn(s))}if(q?.has(t))return q.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function Yn(t){if(t.f|=512,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&2&&!(e.f&512)&&(xn(e),Yn(e))}function Zn(t){if(t.v===I)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(pt.has(e)||(e.f&2)!==0&&Zn(e))return!0;return!1}function Se(t){var e=ut;try{return ut=!0,t()}finally{ut=e}}var Ae=Symbol("events"),Ss=new Set,ln=new Set,gr=null,wr=!1;function on(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;gr=t,wr||(wr=!0,setTimeout(()=>{wr=!1,gr=null}));var o=0,a=gr===t&&t[Ae];if(a){var c=i.indexOf(a);if(c!==-1&&(e===document||e===window)){t[Ae]=e;return}var u=i.indexOf(e);if(u===-1)return;c<=u&&(o=c)}if(s=i[o]||t.target,s!==e){we(t,"currentTarget",{configurable:!0,get(){return s||r}});var f=k,v=y;it(null),_t(null);try{for(var p,h=[];s!==null&&s!==e;){try{var _=s[Ae]?.[n];_!=null&&(!s.disabled||t.target===s)&&_.call(s,t)}catch(M){p?h.push(M):p=M}if(t.cancelBubble)break;o++,s=o<i.length?i[o]:null}if(p){for(let M of h)queueMicrotask(()=>{throw M});throw p}}finally{t[Ae]=e,delete t.currentTarget,it(f),_t(v)}}}var Cs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Ts(t){return Cs?.createHTML(t)??t}function Ws(t){var e=qr("template");return e.innerHTML=Ts(t.replaceAll("<!>","<!---->")),e.content}function Ve(t,e){var r=y;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function lr(t,e){var r=(e&1)!==0,n=(e&2)!==0,i,s=!t.startsWith("<!>");return()=>{if(O)return Ve(T,null),T;i===void 0&&(i=Ws(s?t:"<!>"+t),r||(i=re(i)));var o=n||jn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=re(o),c=o.lastChild;Ve(a,c)}else Ve(o,o);return o}}function he(t,e){if(O){var r=y;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=T),jr();return}t!==null&&t.before(e)}var Es=["touchstart","touchmove"];function Ps(t){return Es.includes(t)}function Os(t){let e=0,r=ke(0),n;return()=>{zr()&&(d(r),Fr(()=>(e===0&&(n=Se(()=>t(()=>ge(r)))),e+=1,()=>{Bt(()=>{e-=1,e===0&&(n?.(),n=void 0,ge(r))})})))}}var js=Or|ie;function As(t,e,r,n){new Is(t,e,r,n)}var Is=(tt=new WeakMap,Re=new WeakMap,at=new WeakMap,Qt=new WeakMap,J=new WeakMap,et=new WeakMap,U=new WeakMap,rt=new WeakMap,bt=new WeakMap,It=new WeakMap,Pt=new WeakMap,ue=new WeakMap,qe=new WeakMap,ze=new WeakMap,Ct=new WeakMap,fr=new WeakMap,P=new WeakSet,class{constructor(t,e,r,n){hn(this,P),S(this,"parent",void 0),S(this,"is_pending",!1),S(this,"transform_error",void 0),m(this,tt,void 0),m(this,Re,O?T:null),m(this,at,void 0),m(this,Qt,void 0),m(this,J,void 0),m(this,et,null),m(this,U,null),m(this,rt,null),m(this,bt,null),m(this,It,0),m(this,Pt,0),m(this,ue,!1),m(this,qe,new Set),m(this,ze,new Set),m(this,Ct,null),m(this,fr,Os(()=>(w(Ct,this,ke(l(It,this))),()=>{w(Ct,this,null)}))),w(tt,this,t),w(at,this,e),w(Qt,this,i=>{var s=y;s.b=this,s.f|=128,r(i)}),this.parent=y.b,this.transform_error=n??this.parent?.transform_error??(i=>i),w(J,this,qn(()=>{if(O){const i=l(Re,this);jr();const s=i.data==="[!";if(i.data.startsWith("[?")){const o=JSON.parse(i.data.slice(2));b(P,this,Ls).call(this,o)}else s?b(P,this,Rs).call(this):b(P,this,Ns).call(this)}else b(P,this,Qn).call(this)},js)),O&&w(tt,this,T)}defer_effect(t){$n(t,l(qe,this),l(ze,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!l(at,this).pending}update_pending_count(t,e){b(P,this,ti).call(this,t,e),w(It,this,l(It,this)+t),l(Ct,this)&&!l(ue,this)&&(w(ue,this,!0),Bt(()=>{w(ue,this,!1),l(Ct,this)&&tr(l(Ct,this),l(It,this))}))}get_effect_pending(){return l(fr,this).call(this),d(l(Ct,this))}error(t){if(!l(at,this).onerror&&!l(at,this).failed)throw t;$?.is_fork?(l(et,this)&&$.skip_effect(l(et,this)),l(U,this)&&$.skip_effect(l(U,this)),l(rt,this)&&$.skip_effect(l(rt,this)),$.oncommit(()=>{b(P,this,an).call(this,t)})):b(P,this,an).call(this,t)}});function Ns(){try{w(et,this,kt(()=>l(Qt,this).call(this,l(tt,this))))}catch(t){this.error(t)}}function Ls(t){const e=l(at,this).failed,{reset:r,invoke_onerror:n}=b(P,this,Gn).call(this,t);Bt(n),e&&w(rt,this,kt(()=>{e(l(tt,this),()=>t,()=>r)}))}function Gn(t){var e=!1,r=!1;const n=()=>{if(e){Ii();return}e=!0,r&&Yi(),l(rt,this)!==null&&Me(l(rt,this),()=>{w(rt,this,null)}),b(P,this,Br).call(this,()=>{b(P,this,Qn).call(this)})};return{reset:n,invoke_onerror:()=>{try{r=!0,l(at,this).onerror?.(t,n),r=!1}catch(i){gt(i,l(J,this)&&l(J,this).parent)}}}}function Rs(){const t=l(at,this).pending;t&&(this.is_pending=!0,w(U,this,kt(()=>t(l(tt,this)))),Bt(()=>{var e=w(bt,this,document.createDocumentFragment()),r=Ht(),n=!1;if(e.append(r),w(et,this,b(P,this,Br).call(this,()=>{try{return kt(()=>l(Qt,this).call(this,r))}catch(i){try{this.error(i),n=!0}catch(s){gt(s,l(J,this).parent)}return null}})),l(et,this)===null){w(bt,this,null),n&&b(P,this,er).call(this,$);return}l(Pt,this)===0&&(l(tt,this).before(e),w(bt,this,null),Me(l(U,this),()=>{w(U,this,null)}),b(P,this,er).call(this,$))}))}function Qn(){try{if(this.is_pending=this.has_pending_snippet(),w(Pt,this,0),w(It,this,0),w(et,this,kt(()=>{l(Qt,this).call(this,l(tt,this))})),l(Pt,this)>0){var t=w(bt,this,document.createDocumentFragment());Hn(l(et,this),t);const e=l(at,this).pending;w(U,this,kt(()=>e(l(tt,this))))}else b(P,this,er).call(this,$)}catch(e){this.error(e)}}function er(t){this.is_pending=!1,t.transfer_effects(l(qe,this),l(ze,this))}function Br(t){var e=y,r=k,n=j;_t(l(J,this)),it(l(J,this)),ee(l(J,this).ctx);try{return se.ensure(),t()}finally{_t(e),it(r),ee(n)}}function ti(t,e){if(!this.has_pending_snippet()){var r;this.parent&&b(P,r=this.parent,ti).call(r,t,e);return}w(Pt,this,l(Pt,this)+t),l(Pt,this)===0&&(b(P,this,er).call(this,e),l(U,this)&&Me(l(U,this),()=>{w(U,this,null)}),l(bt,this)&&(l(tt,this).before(l(bt,this)),w(bt,this,null)))}function an(t){l(et,this)&&(X(l(et,this)),w(et,this,null)),l(U,this)&&(X(l(U,this)),w(U,this,null)),l(rt,this)&&(X(l(rt,this)),w(rt,this,null)),O&&(wt(l(Re,this)),Ni(),wt(wn()));let e=l(at,this).failed;const r=n=>{const{reset:i,invoke_onerror:s}=b(P,this,Gn).call(this,n);s(),e&&w(rt,this,b(P,this,Br).call(this,()=>{try{return kt(()=>{var o=y;o.b=this,o.f|=128,e(l(tt,this),()=>n,()=>i)})}catch(o){return gt(o,l(J,this).parent),null}}))};Bt(()=>{var n;try{n=this.transform_error(t)}catch(i){gt(i,l(J,this)&&l(J,this).parent);return}n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(r,i=>gt(i,l(J,this)&&l(J,this).parent)):r(n)})}function un(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Fe]??(t[Fe]=t.nodeValue))&&(t[Fe]=r,t.nodeValue=`${r}`)}function ei(t,e){return ri(t,e)}function qs(t,e){Cr(),e.intro=e.intro??!1;const r=e.target,n=O,i=T;try{for(var s=re(r);s&&(s.nodeType!==8||s.data!=="[");)s=Ot(s);if(!s)throw te;Zt(!0),wt(s);const o=ri(t,{...e,anchor:s});return Zt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==te&&console.warn("Failed to hydrate: ",o),e.recover===!1&&Vi(),Cr(),hs(r),Zt(!1),ei(t,e)}finally{Zt(n),wt(i)}}var Ie=new Map;function ri(t,{target:e,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:a}){Cr();var c=void 0,u=ms(()=>{var f=r??e.appendChild(Ht());As(f,{pending:()=>{}},h=>{Ar({});var _=j;if(s&&(_.c=s),i&&(n.$$events=i),O&&Ve(h,null),c=t(h,n)||Nr(),O&&(y.nodes.end=T,T===null||T.nodeType!==8||T.data!=="]"))throw rr(),te;Ir()},a);var v=new Set,p=h=>{for(var _=0;_<h.length;_++){var M=h[_];if(!v.has(M)){v.add(M);var D=Ps(M);for(const H of[e,document]){var L=Ie.get(H);L===void 0&&(L=new Map,Ie.set(H,L));var B=L.get(M);B===void 0?(H.addEventListener(M,on,{passive:D}),L.set(M,1)):L.set(M,B+1)}}}};return p($i(Ss)),ln.add(p),()=>{for(var h of v)for(const D of[e,document]){var _=Ie.get(D),M=_.get(h);--M==0?(D.removeEventListener(h,on),_.delete(h),_.size===0&&Ie.delete(D)):_.set(h,M)}ln.delete(p),f!==r&&f.parentNode?.removeChild(f)}});return Wr.set(c,u),c}var Wr=new WeakMap;function zs(t,e){const r=Wr.get(t);return r?(Wr.delete(t),r(e)):Promise.resolve()}var Fs=(ht=new WeakMap,yt=new WeakMap,G=new WeakMap,Kt=new WeakMap,Pe=new WeakMap,Oe=new WeakMap,hr=new WeakMap,class{constructor(t,e=!0){S(this,"anchor",void 0),m(this,ht,new Map),m(this,yt,new Map),m(this,G,new Map),m(this,Kt,new Set),m(this,Pe,!0),m(this,Oe,r=>{if(l(ht,this).has(r)){var n=l(ht,this).get(r),i=l(yt,this).get(n);if(i)en(i),l(Kt,this).delete(n);else{var s=l(G,this).get(n);s&&(en(s.effect),l(yt,this).set(n,s.effect),l(G,this).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,a]of l(ht,this)){if(l(ht,this).delete(o),o===r)break;const c=l(G,this).get(a);c&&(X(c.effect),l(G,this).delete(a))}for(const[o,a]of l(yt,this)){if(o===n||l(Kt,this).has(o))continue;const c=()=>{if(Array.from(l(ht,this).values()).includes(o)){var u=document.createDocumentFragment();Hn(a,u),u.append(Ht()),l(G,this).set(o,{effect:a,fragment:u})}else X(a);l(Kt,this).delete(o),l(yt,this).delete(o)};l(Pe,this)||!i?(l(Kt,this).add(o),Me(a,c,!1)):c()}}}),m(this,hr,r=>{l(ht,this).delete(r);const n=Array.from(l(ht,this).values());for(const[i,s]of l(G,this))n.includes(i)||(X(s.effect),l(G,this).delete(i))}),this.anchor=t,w(Pe,this,e)}ensure(t,e){var r=$,n=vs();if(e&&!l(yt,this).has(t)&&!l(G,this).has(t))if(n){var i=document.createDocumentFragment(),s=Ht();i.append(s),l(G,this).set(t,{effect:kt(()=>e(s)),fragment:i})}else l(yt,this).set(t,kt(()=>e(this.anchor)));if(l(ht,this).set(r,t),n){for(const[o,a]of l(yt,this))o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of l(G,this))o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(l(Oe,this)),r.ondiscard(l(hr,this))}else O&&(this.anchor=T),l(Oe,this).call(this,r)}});function Ds(t){j===null&&qi("onMount"),ir&&j.l!==null?Bs(j).m.push(t):Tr(()=>{const e=Se(t);if(typeof e=="function")return e})}function Bs(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}function _r(t,e,r=!1){var n;O&&(n=T,jr());var i=new Fs(t),s=r?Or:0;function o(a,c){if(O){var u=Li(n);if(a!==parseInt(u.substring(1))){var f=wn();wt(f),i.anchor=f,Zt(!1),i.ensure(a,c),Zt(!0);return}}i.ensure(a,c)}qn(()=>{var a=!1;e((c,u=0)=>{a=!0,o(u,c)}),a||o(-1,null)},s)}function Hs(t,e){Rn(()=>{t=y?.parent?.nodes?.start??t;var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const i=qr("style");i.id=e.hash,i.textContent=e.code,n.appendChild(i)}})}var Vs=Symbol("is custom element"),Js=Symbol("is html"),Ks=ji?"link":"LINK";function Ut(t,e,r,n){var i=Us(t);O&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Ks)||i[e]!==(i[e]=r)&&(e==="loading"&&(t[Ei]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Xs(t).has(e)?t[e]=r:t.setAttribute(e,r))}function Us(t){return t[br]??(t[br]={[Vs]:t.nodeName.includes("-"),[Js]:t.namespaceURI===_i})}var cn=new Map;function Xs(t){var e=t.getAttribute("is")||t.nodeName,r=cn.get(e);if(r)return r;cn.set(e,r=new Set);for(var n,i=t,s=Element.prototype;s!==i;){n=bi(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.add(o);i=vn(i)}return r}function mr(t,e){return t===e||t?.[de]===e}function fn(t=Nr(),e,r,n){var i=j.r,s=y;return Rn(()=>{var o,a;return Fr(()=>{o=a,a=n?.()||[],Se(()=>{mr(r(...a),t)||(e(t,...a),o&&mr(r(...o),t)&&e(null,...o))})}),()=>{let c=s;for(;c!==i&&c.parent!==null&&c.parent.f&33554432;)c=c.parent;const u=()=>{a&&mr(r(...a),t)&&e(null,...a)},f=c.teardown;c.teardown=()=>{u(),f?.()}}}),t}var Ne=!1;function Ys(t){var e=Ne;try{return Ne=!1,[t(),Ne]}finally{Ne=e}}function V(t,e,r,n){var i=!ir||(r&2)!==0,s=(r&8)!==0,o=(r&16)!==0,a=n,c=!0,u=void 0,f=()=>o&&i?(u??(u=_e(n)),d(u)):(c&&(c=!1,a=o?Se(n):n),a);let v;if(s){var p=de in t||gn in t;v=Ft(t,e)?.set??(p&&e in t?N=>t[e]=N:void 0)}var h,_=!1;s?[h,_]=Ys(()=>t[e]):h=t[e],h===void 0&&n!==void 0&&(h=f(),v&&(i&&Ji(e),v(h)));var M;if(i?M=()=>{var N=t[e];return N===void 0?f():(c=!0,N)}:M=()=>{var N=t[e];return N!==void 0&&(a=void 0),N===void 0?a:N},i&&(r&4)===0)return M;if(v){var D=t.$$legacy;return(function(N,xt){return arguments.length>0?((!i||!xt||D||_)&&v(xt?M():N),N):M()})}var L=!1,B=((r&1)!==0?_e:kn)(()=>(L=!1,M()));s&&d(B);var H=y;return(function(N,xt){if(arguments.length>0){const Z=xt?d(B):i&&s?Gt(N):N;return x(B,Z),L=!0,a!==void 0&&(a=Z),N}return Mt&&L||(H.f&16384)!==0?B.v:d(B)})}function Zs(t){return new Gs(t)}var Gs=(Tt=new WeakMap,lt=new WeakMap,class{constructor(t){m(this,Tt,void 0),m(this,lt,void 0);var e=new Map,r=(i,s)=>{var o=cs(s,!1,!1);return e.set(i,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(i,s){return d(e.get(s)??r(s,Reflect.get(i,s)))},has(i,s){return s===gn?!0:(d(e.get(s)??r(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,o){return x(e.get(s)??r(s,o),o),Reflect.set(i,s,o)}});w(lt,this,(t.hydrate?qs:ei)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&F(),w(Tt,this,n.$$events);for(const i of Object.keys(l(lt,this)))i==="$set"||i==="$destroy"||i==="$on"||we(this,i,{get(){return l(lt,this)[i]},set(s){l(lt,this)[i]=s},enumerable:!0});l(lt,this).$set=i=>{Object.assign(n,i)},l(lt,this).$destroy=()=>{zs(l(lt,this))}}$set(t){l(lt,this).$set(t)}$on(t,e){l(Tt,this)[t]=l(Tt,this)[t]||[];const r=(...n)=>e.call(this,...n);return l(Tt,this)[t].push(r),()=>{l(Tt,this)[t]=l(Tt,this)[t].filter(n=>n!==r)}}$destroy(){l(lt,this).$destroy()}}),ni;typeof HTMLElement=="function"&&(ni=class extends HTMLElement{constructor(t,e,r){var n=(...i)=>(super(...i),S(this,"$$ctor",void 0),S(this,"$$s",void 0),S(this,"$$c",void 0),S(this,"$$cn",!1),S(this,"$$d",{}),S(this,"$$r",!1),S(this,"$$p_d",{}),S(this,"$$l",{}),S(this,"$$l_u",new Map),S(this,"$$me",void 0),S(this,"$$shadowRoot",null),this);n(),this.$$ctor=t,this.$$s=e,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return i=>{const s=qr("slot");n!=="default"&&(s.name=n),he(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Qs(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Je(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Zs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=_s(()=>{Fr(()=>{this.$$r=!0;for(const n of Ke(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Je(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Je(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ke(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Je(t,e,r,n){const i=r[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Qs(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ii(t,e,r,n,i,s){let o=class extends ni{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Ke(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Ke(e).forEach(a=>{we(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(c){c=Je(a,c,e),this.$$d[a]=c;var u=this.$$c;u&&(Ft(u,a)?.get?u[a]=c:u.$set({[a]:c}))}})}),n.forEach(a=>{we(o.prototype,a,{get(){return this.$$c?.[a]}})}),s&&(o=s(o)),t.element=o,o}function tl(t){const e=new Set,r=n=>{if(n===void 0)return{$type:"undefined"};if(typeof n=="bigint")return{$type:"bigint",value:n.toString()};if(typeof n=="function")return{$type:"function",value:n.toString()};if(typeof n=="symbol")return{$type:"symbol",value:n.description??""};if(n===null||typeof n!="object")return n;if(e.has(n))return{$type:"circular-reference"};e.add(n);const i=Array.isArray(n)?n.map(r):Object.fromEntries(Object.entries(n).sort(([s],[o])=>s.localeCompare(o)).map(([s,o])=>[s,r(o)]));return e.delete(n),i};return JSON.stringify(r(t))}var el=lr('<div class="pie-tool-calculator__loading svelte-16ps7c2"> </div>'),rl=lr('<div class="pie-tool-calculator__loading pie-tool-calculator__loading--error svelte-16ps7c2">Calculator failed to initialize. <div class="pie-tool-calculator__error-details svelte-16ps7c2"> </div></div>'),nl=lr('<div class="pie-tool-calculator notranslate svelte-16ps7c2" role="region" tabindex="-1" translate="no"><div class="pie-tool-calculator__container svelte-16ps7c2"></div> <!> <!></div>'),il=lr('<div class="pie-tool-calculator__context-host svelte-16ps7c2"><!></div>'),sl={hash:"svelte-16ps7c2",code:`.pie-tool-calculator__context-host.svelte-16ps7c2 {display:flex;width:100%;height:100%;min-height:0;}.pie-tool-calculator.svelte-16ps7c2 {position:relative;display:flex;flex:1 1 auto;min-width:100%;min-height:0;background:var(--pie-white, white);overflow:hidden;}.pie-tool-calculator__container.svelte-16ps7c2 {position:relative;width:100%;height:100%;min-width:100%;min-height:100%;
3
+ /*
4
+ * \`--pie-white\`, not the literal. The token inverts by design (#ffffff light,
5
+ * #000000 dark, redefined per colour scheme), so a hardcoded white showed
6
+ * through as a white plate behind a dark calculator the moment a provider's own
7
+ * surface stopped being opaque — and under a PNP colour scheme it was simply
8
+ * the wrong colour.
9
+ */background:var(--pie-white, white);overflow:hidden;}.pie-tool-calculator__mount {width:100%;height:100%;min-width:100%;min-height:100%;}.pie-tool-calculator__loading.svelte-16ps7c2 {position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb, var(--pie-white, #fff) 90%, transparent);color:var(--pie-text, #334155);font-size:0.9rem;}.pie-tool-calculator__loading--error.svelte-16ps7c2 {flex-direction:column;gap:0.5rem;padding:0.75rem;color:var(--pie-incorrect, #b91c1c);text-align:center;}.pie-tool-calculator__error-details.svelte-16ps7c2 {max-width:95%;color:var(--pie-incorrect, #7f1d1d);font-size:0.8rem;line-height:1.2;word-break:break-word;}.pie-tool-calculator__mount > * {width:100% !important;height:100% !important;}`};function si(t,e){Ar(e,!0),Hs(t,sl);let r=V(e,"visible",7,!1),n=V(e,"toolId",7,"calculator"),i=V(e,"providerId",7,""),s=V(e,"calculatorType",7,"basic"),o=V(e,"availableTypes",23,()=>["basic","scientific","graphing"]),a=V(e,"calculatorConfig",23,()=>({})),c=V(e,"toolkitCoordinator",7,null),u=z(null),f=z(null),v=z(null),p=z(null),h=z(!1),_=z(null),M=z(!1);const D=ce(()=>wi(d(v))),L=ce(()=>c()??d(v)?.toolkitCoordinator),B=ce(()=>(typeof o()=="string"?o().split(",").map(g=>g.trim()):o()).filter(g=>g==="basic"||g==="scientific"||g==="graphing")),H=ce(()=>d(B).includes(s())?s():d(B)[0]??"basic"),N=ce(()=>tl(a()));let xt=null,Z=null,jt=0,or=!1,Ce=null;const Te=new Set;Tr(()=>{if(d(u))return gi(d(u),g=>{x(v,g,!0)})});function Hr(){Ce?.disconnect(),Ce=null;for(const g of Te)clearTimeout(g);Te.clear()}function ar(){jt+=1,Hr();const g=d(p),W=Z;x(p,null),Z=null;try{g?.destroy()}catch(C){console.warn("[CalculatorTool] calculator cleanup failed:",C)}W?.remove(),xt=null,x(h,!1),x(M,!1)}function Vr(){requestAnimationFrame(()=>{if(!r()||!d(p)||!Z?.isConnected)return;const g=document.activeElement;g instanceof Node&&Z.contains(g)||d(p).focus?.()})}function li(g,W){Hr(),typeof ResizeObserver<"u"&&(Ce=new ResizeObserver(()=>{r()&&W.isConnected&&g.resize?.()}),Ce.observe(W));for(const C of[60,250,1e3]){const R=setTimeout(()=>{Te.delete(R),r()&&W.isConnected&&g.resize?.()},C);Te.add(R)}}async function oi(g,W,C){x(h,!0),x(_,null);try{if(!i())throw new Error("Calculator provider id is required");const R=d(L)?.toolProviderRegistry;if(!R)throw new Error("Calculator provider registry is unavailable");const ur=await(await R.getProvider(i())).createInstance();if(g!==jt||!r()||!C.isConnected){C.remove();return}const Jt=await ur.createCalculator(d(H),C,a());if(g!==jt||!r()||!C.isConnected){Jt.destroy(),C.remove();return}x(p,Jt,!0),xt=W,x(M,C.childElementCount>0),li(Jt,C),requestAnimationFrame(()=>{g===jt&&(Jt.resize?.(),x(M,C.childElementCount>0),Vr())})}catch(R){if(g!==jt){C.remove();return}x(_,R instanceof Error?R.message:String(R),!0),x(p,null),Z===C&&(Z=null),C.remove(),x(M,!1)}finally{g===jt&&x(h,!1)}}function ai(){or=!1;const g=d(f),W=d(L);if(!r()||!g||!g.isConnected||!W){(d(p)||d(h)||Z)&&ar(),x(_,null);return}const C=`${i()}:${d(H)}:${d(N)}`;if(d(p)&&xt===C){Vr();return}(d(p)||d(h)||Z)&&ar();const R=document.createElement("div");R.className="pie-tool-calculator__mount",g.replaceChildren(R),Z=R,oi(++jt,C,R)}function ui(){or||(or=!0,queueMicrotask(ai))}Tr(()=>{r(),i(),d(H),a(),d(N),d(f),d(L),Se(ui)}),Ds(()=>()=>ar());var ci={get visible(){return r()},set visible(g=!1){r(g),F()},get toolId(){return n()},set toolId(g="calculator"){n(g),F()},get providerId(){return i()},set providerId(g=""){i(g),F()},get calculatorType(){return s()},set calculatorType(g="basic"){s(g),F()},get availableTypes(){return o()},set availableTypes(g=["basic","scientific","graphing"]){o(g),F()},get calculatorConfig(){return a()},set calculatorConfig(g={}){a(g),F()},get toolkitCoordinator(){return c()},set toolkitCoordinator(g=null){c(g),F()}},We=il(),fi=Be(We),hi=g=>{var W=nl(),C=Be(W);fn(C,st=>x(f,st),()=>d(f));var R=dr(C,2),ur=st=>{var St=el(),le=tn(St,!0);pr(di=>un(le,di),[()=>d(D).t("tools.calculator.loading")]),he(st,St)};_r(R,st=>{(d(h)||!d(_)&&!d(M))&&st(ur)});var Jt=dr(R,2),vi=st=>{var St=rl(),le=tn(dr(Be(St)),!0);De(St),pr(()=>un(le,d(_))),he(st,St)};_r(Jt,st=>{d(_)&&st(vi)}),De(W),pr((st,St,le)=>{Ut(W,"data-tool-id",n()),Ut(W,"data-provider-id",i()),Ut(W,"lang",st),Ut(W,"dir",St),Ut(W,"aria-label",le),Ut(C,"data-calculator-type",d(H)),W.dir=W.dir},[()=>d(D).getLocale(),()=>d(D).getDirection?.()??"ltr",()=>d(D).t("tools.calculator.toolA11y")]),he(g,W)};return _r(fi,g=>{r()&&g(hi)}),De(We),fn(We,g=>x(u,g),()=>d(u)),he(t,We),Ir(ci)}ii(si,{visible:{},toolId:{},providerId:{},calculatorType:{},availableTypes:{},calculatorConfig:{},toolkitCoordinator:{}},[],[],{mode:"open"});function ll(t,e){Ar(e,!0);let r=V(e,"visible",7,!1),n=V(e,"toolId",7,"calculator"),i=V(e,"providerId",7,"calculator-cortex"),s=V(e,"calculatorType",7,"basic"),o=V(e,"availableTypes",23,()=>["basic","scientific","graphing"]),a=V(e,"calculatorConfig",23,()=>({})),c=V(e,"toolkitCoordinator",7,null);return si(t,{get visible(){return r()},get toolId(){return n()},get providerId(){return i()},get calculatorType(){return s()},get availableTypes(){return o()},get calculatorConfig(){return a()},get toolkitCoordinator(){return c()}}),Ir({get visible(){return r()},set visible(u=!1){r(u),F()},get toolId(){return n()},set toolId(u="calculator"){n(u),F()},get providerId(){return i()},set providerId(u="calculator-cortex"){i(u),F()},get calculatorType(){return s()},set calculatorType(u="basic"){s(u),F()},get availableTypes(){return o()},set availableTypes(u=["basic","scientific","graphing"]){o(u),F()},get calculatorConfig(){return a()},set calculatorConfig(u={}){a(u),F()},get toolkitCoordinator(){return c()},set toolkitCoordinator(u=null){c(u),F()}})}ol("pie-tool-calculator-cortex",ii(ll,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"},providerId:{attribute:"provider-id",type:"String"},calculatorType:{attribute:"calculator-type",type:"String"},availableTypes:{attribute:"available-types",type:"Array"},calculatorConfig:{type:"Object"},toolkitCoordinator:{type:"Object"}},[],[],void 0,pi));function ol(t,e){customElements.get(t)||customElements.define(t,e)}export{ll as default};
@@ -0,0 +1,9 @@
1
+ import{t as S}from"./defineProperty-a20a667d.js";import{a as hn,i as y,n as _,r as $,t as s}from"./classPrivateFieldGet2-338e0179.js";import{g as gi,n as wi}from"./tool-host-contract-b93b482c.js";import{i as _i}from"./provider-4c704118.js";var Gr,Jr,qe,Et,Nt,ge,fe,At,Wt,Xt,ot,hr,Ft,dt,bt,je,he,E,mr,tt,Fe,at,te,G,et,K,rt,$t,It,Pt,ve,De,Be,Ct,vr,P,ht,mt,Z,Kt,Ae,Ie,dr,Tt,st;typeof window<"u"&&((Gr=(Jr=window).__svelte??(Jr.__svelte={})).v??(Gr.v=new Set)).add("5");var ne={},I=Symbol("uninitialized"),yi="http://www.w3.org/1999/xhtml",mi=Array.isArray,bi=Array.prototype.indexOf,br=Array.prototype.includes,$i=Array.from,Xe=Object.keys,me=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,ki=Object.getOwnPropertyDescriptors,Mi=Object.prototype,xi=Array.prototype,vn=Object.getPrototypeOf,Kr=Object.isExtensible,Si=()=>{};function Ci(t){for(var e=0;e<t.length;e++)t[e]()}function dn(){var t,e;return{promise:new Promise((r,n)=>{t=r,e=n}),resolve:t,reject:e}}var nt=1024,ft=2048,Gt=4096,Er=8192,Ti=16384,Pr=32768,Ur=1<<25,Or=65536,oe=1<<19,Wi=1<<20,Xr=1<<21,Ei=1<<22,Ye=1<<23,we=Symbol("$state"),pn=Symbol("component"),gn=Symbol("legacy props"),Pi=Symbol(""),$r=Symbol("attributes"),Oi=Symbol("class"),ji=Symbol("style"),He=Symbol("text"),Me=new class extends Error{constructor(...t){super(...t),S(this,"name","StaleReactionError"),S(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Ai=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Ii(){console.warn("https://svelte.dev/e/derived_inert")}function lr(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ni(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var O=!1;function Zt(t){O=t}var T;function wt(t){if(t===null)throw lr(),ne;return T=t}function jr(){return wt(Ot(T))}function ee(t){if(O){if(Ot(T)!==null)throw lr(),ne;T=t}}function zi(t=1){if(O){for(var e=t,r=T;e--;)r=Ot(r);T=r}}function wn(t=!0){for(var e=0,r=T;;){if(r.nodeType===8){var n=r.data;if(n==="]"){if(e===0)return r;e-=1}else(n==="["||n==="[!"||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(e+=1)}var i=Ot(r);t&&r.remove(),r=i}}function Li(t){if(!t||t.nodeType!==8)throw lr(),ne;return t.data}function _n(t){return t===this.v}function Ri(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function yn(t){return!Ri(t,this.v)}function qi(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Fi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Di(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Bi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hi(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Vi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Gi(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ji(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ki(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ui(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Yi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var sr=!1,or=!1,j=null;function ie(t){j=t}function Ar(t,e=!1,r){j={p:j,i:!1,c:null,e:null,s:t,x:null,r:m,l:or&&!e?{s:null,u:null,$:[]}:null}}function Ir(t){var e=j,r=e.e;if(r!==null){e.e=null;for(var n of r)zn(n)}return t!==void 0&&(e.x=t),e.i=!0,j=e.p,Nr(t)}function Nr(t={}){return me(t,pn,{value:!0}),t}function xe(){return!or||j!==null&&j.l===null}var Lt=[];function mn(){var t=Lt;Lt=[],Ci(t)}function Ht(t){if(Lt.length===0&&!_e){var e=Lt;queueMicrotask(()=>{e===Lt&&mn()})}Lt.push(t)}function Zi(){for(;Lt.length>0;)mn()}var Qi=~(ft|Gt|nt);function A(t,e){t.f=t.f&Qi|e}function zr(t){(t.f&512)!==0||t.deps===null?A(t,nt):A(t,Gt)}function bn(t,e,r){(t.f&2048)!==0?e.add(t):t.f&4096&&r.add(t),A(t,nt)}function ar(t){var e=k,r=m;it(null),_t(null);try{return t()}finally{it(e),_t(r)}}function tl(t,e,r,n){const i=xe()?be:kn;var l=t.filter(h=>!h.settled),o=e.map(i);if(r.length===0&&l.length===0){n(o);return}var a=m,u=el(),c=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(h=>h.promise)):null;function f(h){if((a.f&16384)===0){u();try{n([...o,...h])}catch(v){gt(v,a)}Ze()}}var d=$n();if(r.length===0){c.then(()=>f([])).finally(d);return}function p(){Promise.all(r.map(h=>rl(h))).then(f).catch(h=>gt(h,a)).finally(d)}c?c.then(()=>{u(),p(),Ze()}):p()}function el(){var t=m,e=k,r=j,n=b;return function(i=!0){_t(t),it(e),ie(r),i&&!(t.f&16384)&&(n?.activate(),n?.apply())}}function Ze(t=!0){_t(null),it(null),ie(null),t&&b?.deactivate()}function $n(){var t=m,e=t.b,r=b,n=!!e?.is_rendered();return e?.update_pending_count(1,r),r.increment(n,t),()=>{e?.update_pending_count(-1,r),r.decrement(n,t)}}function be(t){var e=2|ft;return m!==null&&(m.f|=oe),{ctx:j,deps:null,effects:null,equals:_n,f:e,fn:t,reactions:null,rv:0,v:I,wv:0,parent:m,ac:null}}var pe=Symbol("obsolete");function rl(t,e,r){let n=m;n===null&&Fi();var i=void 0,l=Se(I),o=!k,a=new Set;return bl(()=>{var u=m,c=dn();i=c.promise;try{Promise.resolve(t()).then(c.resolve,h=>{h!==Me&&c.reject(h)}).finally(Ze)}catch(h){c.reject(h),Ze()}var f=b;if(o){if((u.f&32768)!==0)var d=$n();if(n.b?.is_rendered())f.async_deriveds.get(u)?.reject(pe);else for(const h of a.values())h.reject(pe);a.add(c),f.async_deriveds.set(u,c)}const p=(h,v=void 0)=>{d?.(),a.delete(c),v!==pe&&(f.activate(),v?(l.f|=Ye,nr(l,v)):(l.f&8388608&&(l.f^=Ye),nr(l,h)),f.deactivate())};c.promise.then(p,h=>p(null,h||"unknown"))}),_l(()=>{for(const u of a)u.reject(pe)}),new Promise(u=>{function c(f){function d(){f===i?u(l):c(i)}f.then(d,d)}c(i)})}function de(t){const e=be(t);return Vn(e),e}function kn(t){const e=be(t);return e.equals=yn,e}function nl(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)U(e[r])}}function Lr(t){var e,r=m,n=t.parent;if(!Mt&&n!==null&&t.v!==I&&(n.f&24576)!==0)return Ii(),t.v;_t(n);try{nl(t),e=Un(t)}finally{_t(r)}return e}function Mn(t){var e=Lr(t);if(!t.equals(e)&&(t.wv=Jn(),(!b?.is_fork||t.deps===null)&&(b!==null?(b.capture(t,e,!0),Mr?.capture(t,e,!0)):t.v=e,t.deps===null))){A(t,nt);return}Mt||(R!==null?(qr()||b?.is_fork)&&R.set(t,e):zr(t))}function il(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac!==null&&ar(()=>{e.ac.abort(Me),e.ac=null}),e.fn!==null&&(e.teardown=Si),ke(e,0),Dr(e))}function xn(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&se(e)}var kr=null,Yt=null,b=null,Mr=null,R=null,xr=null,_e=!1,pr=!1,$e=null,Qe=null,Sn=0,ll=1,ae=(qe=new WeakMap,Et=new WeakMap,Nt=new WeakMap,ge=new WeakMap,fe=new WeakMap,At=new WeakMap,Wt=new WeakMap,Xt=new WeakMap,ot=new WeakMap,hr=new WeakMap,Ft=new WeakMap,dt=new WeakMap,bt=new WeakMap,je=new WeakMap,he=new WeakMap,E=new WeakSet,mr=class Cn{constructor(){hn(this,E),S(this,"id",ll++),y(this,qe,!1),S(this,"linked",!0),y(this,Et,null),y(this,Nt,null),S(this,"async_deriveds",new Map),S(this,"current",new Map),S(this,"previous",new Map),y(this,ge,new Set),y(this,fe,new Set),y(this,At,0),y(this,Wt,new Map),y(this,Xt,null),y(this,ot,[]),y(this,hr,[]),y(this,Ft,new Set),y(this,dt,new Set),y(this,bt,new Map),y(this,je,new Set),S(this,"is_fork",!1),y(this,he,!1),Yt===null?kr=Yt=this:(_(Nt,Yt,this),_(Et,this,Yt)),Yt=this}skip_effect(e){s(bt,this).has(e)||s(bt,this).set(e,{d:[],m:[]}),s(je,this).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=s(bt,this).get(e);if(n){s(bt,this).delete(e);for(var i of n.d)A(i,ft),r(i);for(i of n.m)A(i,Gt),r(i)}s(je,this).add(e)}capture(e,r,n=!1){e.v!==I&&!this.previous.has(e)&&this.previous.set(e,e.v),!(e.f&8388608)&&(this.current.set(e,[r,n]),R?.set(e,r)),this.is_fork||(e.v=r)}activate(){b=this}deactivate(){b=null,R=null}flush(){try{pr=!0,b=this,$(E,this,tr).call(this)}finally{Sn=0,xr=null,$e=null,Qe=null,pr=!1,b=null,R=null,pt.clear()}}discard(){for(const e of s(fe,this))e(this);s(fe,this).clear();for(const e of this.async_deriveds.values())e.reject(pe);$(E,this,er).call(this),s(Xt,this)?.resolve()}register_created_effect(e){s(hr,this).push(e)}increment(e,r){if(_(At,this,s(At,this)+1),e){let n=s(Wt,this).get(r)??0;s(Wt,this).set(r,n+1)}}decrement(e,r){if(_(At,this,s(At,this)-1),e){let n=s(Wt,this).get(r)??0;n===1?s(Wt,this).delete(r):s(Wt,this).set(r,n-1)}s(he,this)||(_(he,this,!0),Ht(()=>{_(he,this,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)s(Ft,this).add(n);for(const n of r)s(dt,this).add(n);e.clear(),r.clear()}oncommit(e){s(ge,this).add(e)}ondiscard(e){s(fe,this).add(e)}settled(){return(s(Xt,this)??_(Xt,this,dn())).promise}static ensure(){if(b===null){const e=b=new Cn;!pr&&!_e&&Ht(()=>{s(qe,e)||e.flush()})}return b}apply(){if(!sr||!this.is_fork&&s(Et,this)===null&&s(Nt,this)===null){R=null;return}R=new Map;for(const[r,[n]]of this.current)R.set(r,n);for(let r=kr;r!==null;r=s(Nt,r))if(!(r===this||r.is_fork)){var e=!1;if(r.id<this.id){for(const[n,[,i]]of r.current)if(!i&&this.current.has(n)){e=!0;break}}if(!e)for(const[n,i]of r.previous)R.has(n)||R.set(n,i)}}schedule(e){if(xr=e,e.b?.is_pending&&(e.f&16777228)!==0&&(e.f&32768)===0){e.b.defer_effect(e);return}s(ot,this).push(e)}},mr);function Yr(){if(this.is_fork)return!0;for(const r of s(Wt,this).keys()){for(var t=r,e=!1;t.parent!==null;){if(s(bt,this).has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}function sl(){var t=[];for(const i of s(ot,this))if(!((i.f&16384)!==0||(i.f&6144)===0)){for(var e=i,r=!1;e.parent!==null;){e=e.parent;var n=e.f;if((n&96)!==0){if((n&1024)===0){r=!0;break}e.f^=nt}}r||t.push(e)}return _(ot,this,[]),t}function tr(){_(qe,this,!0);for(const o of s(Ft,this))s(dt,this).delete(o),A(o,ft),this.schedule(o);for(const o of s(dt,this))A(o,Gt),this.schedule(o);this.apply();for(var t=$e=[],e=[],r=Qe=[];s(ot,this).length>0;){Sn++>1e3&&($(E,this,er).call(this),cl());for(const o of $(E,this,sl).call(this))try{$(E,this,ol).call(this,o,t,e)}catch(a){throw En(o),$(E,this,Yr).call(this)||this.discard(),a}}if(b=null,r.length>0){var n=mr.ensure();for(const o of r)n.schedule(o)}if($e=null,Qe=null,$(E,this,Yr).call(this)){$(E,this,Ne).call(this,e),$(E,this,Ne).call(this,t);for(const[o,a]of s(bt,this))Wn(o,a);r.length>0&&$(E,b,tr).call(b);return}const i=$(E,this,al).call(this);if(i){$(E,this,Ne).call(this,e),$(E,this,Ne).call(this,t),$(E,i,ul).call(i,this);return}s(Ft,this).clear(),s(dt,this).clear();for(const o of s(ge,this))o(this);s(ge,this).clear(),Mr=this,Zr(e),Zr(t),Mr=null,s(Xt,this)?.resolve();var l=b;if(s(At,this)===0&&(s(ot,this).length===0||l!==null)&&$(E,this,er).call(this),s(ot,this).length>0)if(l!==null){for(const o of s(ot,this))s(ot,l).push(o);_(ot,this,[])}else l=this;l!==null&&(pt.clear(),$(E,l,tr).call(l))}function ol(t,e,r){t.f^=nt;for(var n=t.first;n!==null;){var i=n.f,l=(i&96)!==0;if(!(l&&(i&1024)!==0||(i&8192)!==0||s(bt,this).has(n))&&n.fn!==null){l?n.f^=nt:(i&4)!==0?e.push(n):sr&&(i&16777224)!==0?r.push(n):Te(n)&&(i&16&&s(dt,this).add(n),se(n));var o=n.first;if(o!==null){n=o;continue}}for(;n!==null;){var a=n.next;if(a!==null){n=a;break}n=n.parent}}}function al(){for(var t=s(Et,this);t!==null;){if(!t.is_fork){for(const[e,[,r]]of this.current)if(t.current.has(e)&&!r)return t}t=s(Et,t)}return null}function ul(t){for(const[r,n]of t.current)!this.previous.has(r)&&t.previous.has(r)&&this.previous.set(r,t.previous.get(r)),this.current.set(r,n);for(const[r,n]of t.async_deriveds){const i=this.async_deriveds.get(r);i&&n.promise.then(i.resolve).catch(i.reject)}t.async_deriveds.clear(),this.transfer_effects(s(Ft,t),s(dt,t));const e=r=>{var n=r.reactions;if(n!==null&&!((r.f&2)!==0&&(r.f&6144)===0))for(const o of n){var i=o.f;if((i&2)!==0)e(o);else{var l=o;i&4194320&&!this.async_deriveds.has(l)&&(s(dt,this).delete(l),A(l,ft),this.schedule(l))}}};for(const r of this.current.keys())e(r);this.oncommit(()=>t.discard()),$(E,t,er).call(t),b=this,$(E,this,tr).call(this)}function Ne(t){for(var e=0;e<t.length;e+=1)bn(t[e],s(Ft,this),s(dt,this))}function er(){if(this.linked){var t=s(Et,this),e=s(Nt,this);t===null?kr=e:_(Nt,t,e),e===null?Yt=t:_(Et,e,t),this.linked=!1}}function F(t){var e=_e;_e=!0;try{var r;for(t&&(b!==null&&!b.is_fork&&b.flush(),r=t());;){if(Zi(),b===null)return r;b.flush()}}finally{_e=e}}function cl(){try{Vi()}catch(t){gt(t,xr)}}var vt=null;function Zr(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&24576)===0&&Te(n)&&(vt=new Set,se(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Fn(n),vt?.size>0)){pt.clear();for(const i of vt){if((i.f&24576)!==0)continue;const l=[i];let o=i.parent;for(;o!==null;)vt.has(o)&&(vt.delete(o),l.push(o)),o=o.parent;for(let a=l.length-1;a>=0;a--){const u=l[a];!(u.f&24576)&&se(u)}}vt.clear()}}vt=null}}function Tn(t){b.schedule(t)}function Wn(t,e){if(!((t.f&32)!==0&&(t.f&1024)!==0)){(t.f&2048)!==0?e.d.push(t):t.f&4096&&e.m.push(t),A(t,nt);for(var r=t.first;r!==null;)Wn(r,e),r=r.next}}function En(t){A(t,nt);for(var e=t.first;e!==null;)En(e),e=e.next}var rr=new Set,pt=new Map,Pn=!1;function Se(t,e){return{f:0,v:t,reactions:null,equals:_n,rv:0,wv:0}}function q(t,e){const r=Se(t,e);return Vn(r),r}function fl(t,e=!1,r=!0){const n=Se(t);return e||(n.equals=yn),n}function x(t,e,r=!1){return k!==null&&(!ut||k.f&131072)&&xe()&&k.f&4325394&&(ct===null||!ct.has(t))&&Xi(),nr(t,r?Qt(e):e,Qe)}var zt=null,Sr=0;function nr(t,e,r=null){if(!t.equals(e)){Mt?pt.set(t,e):pt.has(t)||pt.set(t,t.v);var n=ae.ensure();if(n.capture(t,e),(t.f&2)!==0){const i=t;t.f&2048&&Lr(i),R===null&&zr(i)}t.wv=Jn(),zt=null,Sr=0,On(t,ft,r),zt=null,xe()&&m!==null&&m.f&1024&&!(m.f&96)&&(Q===null?xl([t]):Q.push(t)),!n.is_fork&&rr.size>0&&!Pn&&hl()}return e}function hl(){Pn=!1;for(const t of rr){t.f&1024&&A(t,Gt);let e;try{e=Te(t)}catch{e=!0}e&&se(t)}rr.clear()}function ye(t){x(t,t.v+1)}function On(t,e,r){var n=t.reactions;if(n!==null){var i=xe(),l=n.length;if(Sr+=l,Sr>1e5&&zt===null&&(zt=new Set),zt!==null){if(zt.has(t))return;zt.add(t)}for(var o=0;o<l;o++){var a=n[o],u=a.f;if(!(!i&&a===m)){var c=(u&ft)===0;if(c&&A(a,e),(u&131072)!==0)rr.add(a);else if((u&2)!==0){var f=a;R?.delete(f),On(f,Gt,r)}else if(c){var d=a;u&16&&vt!==null&&vt.add(d),r!==null?r.push(d):Tn(d)}}}}}function Qt(t){if(typeof t!="object"||t===null||we in t||pn in t)return t;const e=vn(t);if(e!==Mi&&e!==xi)return t;var r=new Map,n=mi(t),i=q(0),l=null,o=Bt,a=u=>{if(Bt===o)return u();var c=k,f=Bt;it(null),nn(o);var d=u();return it(c),nn(f),d};return n&&r.set("length",q(t.length,l)),new Proxy(t,{defineProperty(u,c,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Ki();var d=r.get(c);return d===void 0?a(()=>{var p=q(f.value,l);return r.set(c,p),p}):x(d,f.value,!0),!0},deleteProperty(u,c){var f=r.get(c);if(f===void 0){if(c in u){const d=a(()=>q(I,l));r.set(c,d),ye(i)}}else x(f,I),ye(i);return!0},get(u,c,f){if(c===we)return t;var d=r.get(c),p=c in u;if(d===void 0&&(!p||Dt(u,c)?.writable)&&(d=a(()=>q(Qt(p?u[c]:I),l)),r.set(c,d)),d!==void 0){var h=g(d);return h===I?void 0:h}return Reflect.get(u,c,f)},getOwnPropertyDescriptor(u,c){this.has?.(u,c);var f=Reflect.getOwnPropertyDescriptor(u,c),d=r.get(c);if(d!==void 0){var p=g(d);if(p===I)return;if(f&&"value"in f)f.value=p;else return{enumerable:!0,configurable:!0,value:p,writable:!0}}return f},has(u,c){if(c===we)return!0;var f=r.get(c),d=f!==void 0&&f.v!==I||Reflect.has(u,c);return(f!==void 0||m!==null&&(!d||Dt(u,c)?.writable))&&(f===void 0&&(f=a(()=>q(d?Qt(u[c]):I,l)),r.set(c,f)),g(f)===I)?!1:d},set(u,c,f,d){var p=r.get(c),h=c in u;if(n&&c==="length")for(var v=f;v<p.v;v+=1){var M=r.get(v+"");M!==void 0?x(M,I):v in u&&(M=a(()=>q(I,l)),r.set(v+"",M))}if(p===void 0)(!h||Dt(u,c)?.writable)&&(p=a(()=>q(void 0,l)),x(p,Qt(f)),r.set(c,p));else{h=p.v!==I;var D=a(()=>Qt(f));x(p,D)}var z=Reflect.getOwnPropertyDescriptor(u,c);if(z?.set&&z.set.call(d,f),!h){if(n&&typeof c=="string"){var B=r.get("length"),H=Number(c);Number.isInteger(H)&&H>=B.v&&x(B,H+1)}ye(i)}return!0},ownKeys(u){g(i);var c=Reflect.ownKeys(u).filter(p=>{var h=r.get(p);return h===void 0||h.v!==I});for(var[f,d]of r)d.v!==I&&!(f in u)&&c.push(f);return c},setPrototypeOf(){Ui()}})}var Qr,jn,An,In;function Cr(){if(Qr===void 0){Qr=window,jn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;An=Dt(e,"firstChild").get,In=Dt(e,"nextSibling").get,Kr(t)&&(t[Oi]=void 0,t[$r]=null,t[ji]=void 0,t.__e=void 0),Kr(r)&&(r[He]=void 0)}}function Vt(t=""){return document.createTextNode(t)}function le(t){return An.call(t)}function Ot(t){return In.call(t)}function re(t,e){if(!O)return le(t);var r=le(T);if(r===null)r=T.appendChild(Vt());else if(e&&r.nodeType!==3){var n=Vt();return r?.before(n),wt(n),n}return e&&Nn(r),wt(r),r}function tn(t,e=!1){if(!O)return le(t);var r=re(t,e);return ee(t),r}function Ve(t,e=1,r=!1){let n=O?T:t;for(var i;e--;)i=n,n=Ot(n);if(!O)return n;if(r){if(n?.nodeType!==3){var l=Vt();return n===null?i?.after(l):n.before(l),wt(l),l}Nn(n)}return wt(n),n}function vl(t){t.textContent=""}function dl(){return!sr||vt!==null?!1:(m.f&Pr)!==0}function Rr(t,e,r){return e==null||e==="http://www.w3.org/1999/xhtml"?r?document.createElement(t,{is:r}):document.createElement(t):r?document.createElementNS(e,t,{is:r}):document.createElementNS(e,t)}function Nn(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function pl(t){var e=m;if(e===null)return k.f|=Ye,t;if((e.f&32768)===0&&(e.f&4)===0)throw t;gt(t,e)}function gt(t,e){if(!(e!==null&&(e.f&16384)!==0)){for(;e!==null;){if((e.f&128)!==0&&(e.f&33570816)===0){if((e.f&32768)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}}function gl(t){m===null&&(k===null&&Hi(t),Bi()),Mt&&Di(t)}function wl(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function yt(t,e){var r=m;r!==null&&r.f&8192&&(t|=Er);var n={ctx:j,deps:null,nodes:null,f:t|ft|512,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};b?.register_created_effect(n);var i=n;if((t&4)!==0)$e!==null?$e.push(n):ae.ensure().schedule(n);else if(e!==null){try{se(n)}catch(o){throw U(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,t&16&&t&65536&&i!==null&&(i.f|=Or))}if(i!==null&&(i.parent=r,r!==null&&wl(i,r),k!==null&&(k.f&2)!==0&&(t&64)===0)){var l=k;(l.effects??(l.effects=[])).push(i)}return n}function qr(){return k!==null&&!ut}function _l(t){const e=yt(8,null);return A(e,nt),e.teardown=t,e}function Tr(t){gl("$effect");var e=m.f;if(!k&&(e&32)!==0&&j!==null&&!j.i){var r=j;(r.e??(r.e=[])).push(t)}else return zn(t)}function zn(t){return yt(4|Wi,t)}function yl(t){ae.ensure();const e=yt(64|oe,t);return()=>{U(e)}}function ml(t){ae.ensure();const e=yt(64|oe,t);return(r={})=>new Promise(n=>{r.outro?Ce(e,()=>{U(e),n(void 0)}):(U(e),n(void 0))})}function Ln(t){return yt(4,t)}function bl(t){return yt(Ei|oe,t)}function Fr(t,e=0){return yt(8|e,t)}function gr(t,e=[],r=[],n=[]){tl(n,e,r,i=>{yt(8,()=>{t(...i.map(g))})})}function Rn(t,e=0){return yt(16|e,t)}function kt(t){return yt(32|oe,t)}function qn(t){var e=t.teardown;if(e!==null){const r=Mt,n=k;rn(!0),it(null);try{e.call(null)}catch(i){gt(i,t.parent)}finally{rn(r),it(n)}}}function Dr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&ar(()=>{i.abort(Me)});var n=r.next;(r.f&64)!==0?r.parent=null:U(r,e),r=n}}function $l(t){for(var e=t.first;e!==null;){var r=e.next;!(e.f&32)&&U(e),e=r}}function U(t,e=!0){var r=!1;(e||t.f&262144)&&t.nodes!==null&&t.nodes.end!==null&&(kl(t.nodes.start,t.nodes.end),r=!0),t.f|=Ur,Dr(t,e&&!r),ke(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const l of n)l.stop();qn(t),t.f^=Ur,t.f|=Ti;var i=t.parent;i!==null&&i.first!==null&&Fn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function kl(t,e){for(;t!==null;){var r=t===e?null:Ot(t);t.remove(),t=r}}function Fn(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Ce(t,e,r=!0){var n=[];t.f|=256,Dn(t,n,!0);var i=()=>{r&&U(t),e&&e()},l=n.length;if(l>0){var o=()=>--l||i();for(var a of n)a.out(o)}else i()}function Dn(t,e,r){if((t.f&8192)===0){t.f^=Er;var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&e.push(a);for(var i=t.first;i!==null;){var l=i.next;if((i.f&64)===0){var o=(i.f&65536)!==0||(i.f&32)!==0&&(t.f&16)!==0;Dn(i,e,o?r:!1)}i=l}}}function en(t){t.f&=-257,Bn(t,!0)}function Bn(t,e){if((t.f&256)===0&&(t.f&8192)!==0){t.f^=Er,!(t.f&1024)&&(A(t,ft),ae.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&65536)!==0||(r.f&32)!==0;Bn(r,i?e:!1),r=n}var l=t.nodes&&t.nodes.t;if(l!==null)for(const o of l)(o.is_global||e)&&o.in()}}function Hn(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:Ot(r);e.append(r),r=i}}var Ml=null,Ge=!1,Mt=!1;function rn(t){Mt=t}var k=null,ut=!1;function it(t){k=t}var m=null;function _t(t){m=t}var ct=null;function Vn(t){k!==null&&(k.f&2097152||k.f&2)&&(ct??(ct=new Set)).add(t)}var J=null,X=0,Q=null;function xl(t){Q=t}var Gn=1,Rt=0,Bt=Rt;function nn(t){Bt=t}function Jn(){return++Gn}function Te(t){var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){for(var r=t.deps,n=r.length,i=0;i<n;i++){var l=r[i];if(Te(l)&&Mn(l),l.wv>t.wv)return!0}e&512&&R===null&&A(t,nt)}return!1}function Kn(t,e,r=!0){var n=t.reactions;if(n!==null&&!(!sr&&ct!==null&&ct.has(t)))for(var i=0;i<n.length;i++){var l=n[i];(l.f&2)!==0?Kn(l,e,!1):e===l&&(r?A(l,ft):l.f&1024&&A(l,Gt),Tn(l))}}function Un(t){var e=J,r=X,n=Q,i=k,l=ct,o=j,a=ut,u=Bt,c=t.f;J=null,X=0,Q=null,k=(c&96)===0?t:null,ct=null,ie(t.ctx),ut=!1,Bt=++Rt,t.ac!==null&&(ar(()=>{t.ac.abort(Me)}),t.ac=null);try{t.f|=Xr;var f=t.fn,d=f();t.f|=Pr;var p=ln(t);if(xe()&&Q!==null&&!ut&&p!==null&&(t.f&6146)===0)for(var h=0;h<Q.length;h++)Kn(Q[h],t);if(i!==null&&i!==t){if(Rt++,i.deps!==null)for(let v=0;v<r;v+=1)i.deps[v].rv=Rt;if(e!==null)for(const v of e)v.rv=Rt;Q!==null&&(n===null?n=Q:n.push(...Q))}return t.f&8388608&&(t.f^=Ye),d}catch(v){return ln(t),pl(v)}finally{t.f^=Xr,J=e,X=r,Q=n,k=i,ct=l,ie(o),ut=a,Bt=u}}function ln(t){var e=t.deps,r=b?.is_fork;if(J!==null){var n,i;if(r||ke(t,X),e!==null&&X>0)for(e.length=X+J.length,i=0;i<J.length;i++)e[X+i]=J[i];else t.deps=e=J;if(qr()&&(t.f&512)!==0)for(i=X;i<e.length;i++)((n=e[i]).reactions??(n.reactions=[])).push(t)}else!r&&e!==null&&X<e.length&&(ke(t,X),e.length=X);return e}function Sl(t,e){let r=e.reactions;if(r!==null){var n=bi.call(r,t);if(n!==-1){var i=r.length-1;i===0?r=e.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(e.f&2)!==0&&(J===null||!br.call(J,e))){var l=e;l.f&512&&(l.f^=512),l.v!==I&&zr(l),l.ac!==null&&ar(()=>{l.ac.abort(Me),l.ac=null,A(l,ft)}),il(l),ke(l,0)}}function ke(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Sl(t,r[n])}function se(t){var e=t.f;if((e&16384)===0){A(t,nt);var r=m,n=Ge;m=t,Ge=(e&96)===0;try{(e&16777232)!==0?$l(t):Dr(t),qn(t);var i=Un(t);t.teardown=typeof i=="function"?i:null,t.wv=Gn}finally{Ge=n,m=r}}}function g(t){var e=(t.f&2)!==0;if(Ml?.add(t),k!==null&&!ut&&!(m!==null&&(m.f&16384)!==0)&&(ct===null||!ct.has(t))){var r=k.deps;if((k.f&2097152)!==0)t.rv<Rt&&(t.rv=Rt,J===null&&r!==null&&r[X]===t?X++:J===null?J=[t]:J.push(t));else{var n;(n=k).deps??(n.deps=[]),br.call(k.deps,t)||k.deps.push(t);var i=t.reactions;i===null?t.reactions=[k]:br.call(i,k)||i.push(k)}}if(Mt&&pt.has(t))return pt.get(t);if(e){var l=t;if(Mt){var o=l.v;return(!(l.f&1024)&&l.reactions!==null||Yn(l))&&(o=Lr(l)),pt.set(l,o),o}var a=(l.f&512)===0&&!ut&&k!==null&&(Ge||(k.f&512)!==0),u=(l.f&Pr)===0;Te(l)&&(a&&(l.f|=512),Mn(l)),a&&!u&&(xn(l),Xn(l))}if(R?.has(t))return R.get(t);if((t.f&8388608)!==0)throw t.v;return t.v}function Xn(t){if(t.f|=512,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&2&&!(e.f&512)&&(xn(e),Xn(e))}function Yn(t){if(t.v===I)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(pt.has(e)||(e.f&2)!==0&&Yn(e))return!0;return!1}function We(t){var e=ut;try{return ut=!0,t()}finally{ut=e}}var ze=Symbol("events"),Cl=new Set,sn=new Set,wr=null,_r=!1;function on(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],l=i[0]||t.target;wr=t,_r||(_r=!0,setTimeout(()=>{_r=!1,wr=null}));var o=0,a=wr===t&&t[ze];if(a){var u=i.indexOf(a);if(u!==-1&&(e===document||e===window)){t[ze]=e;return}var c=i.indexOf(e);if(c===-1)return;u<=c&&(o=u)}if(l=i[o]||t.target,l!==e){me(t,"currentTarget",{configurable:!0,get(){return l||r}});var f=k,d=m;it(null),_t(null);try{for(var p,h=[];l!==null&&l!==e;){try{var v=l[ze]?.[n];v!=null&&(!l.disabled||t.target===l)&&v.call(l,t)}catch(M){p?h.push(M):p=M}if(t.cancelBubble)break;o++,l=o<i.length?i[o]:null}if(p){for(let M of h)queueMicrotask(()=>{throw M});throw p}}finally{t[ze]=e,delete t.currentTarget,it(f),_t(d)}}}var Tl=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Wl(t){return Tl?.createHTML(t)??t}function El(t){var e=Rr("template");return e.innerHTML=Wl(t.replaceAll("<!>","<!---->")),e.content}function Je(t,e){var r=m;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function ue(t,e){var r=(e&1)!==0,n=(e&2)!==0,i,l=!t.startsWith("<!>");return()=>{if(O)return Je(T,null),T;i===void 0&&(i=El(l?t:"<!>"+t),r||(i=le(i)));var o=n||jn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=le(o),u=o.lastChild;Je(a,u)}else Je(o,o);return o}}function qt(t,e){if(O){var r=m;(!(r.f&32768)||r.nodes.end===null)&&(r.nodes.end=T),jr();return}t!==null&&t.before(e)}var Pl=["touchstart","touchmove"];function Ol(t){return Pl.includes(t)}function jl(t){let e=0,r=Se(0),n;return()=>{qr()&&(g(r),Fr(()=>(e===0&&(n=We(()=>t(()=>ye(r)))),e+=1,()=>{Ht(()=>{e-=1,e===0&&(n?.(),n=void 0,ye(r))})})))}}var Al=Or|oe;function Il(t,e,r,n){new Nl(t,e,r,n)}var Nl=(tt=new WeakMap,Fe=new WeakMap,at=new WeakMap,te=new WeakMap,G=new WeakMap,et=new WeakMap,K=new WeakMap,rt=new WeakMap,$t=new WeakMap,It=new WeakMap,Pt=new WeakMap,ve=new WeakMap,De=new WeakMap,Be=new WeakMap,Ct=new WeakMap,vr=new WeakMap,P=new WeakSet,class{constructor(t,e,r,n){hn(this,P),S(this,"parent",void 0),S(this,"is_pending",!1),S(this,"transform_error",void 0),y(this,tt,void 0),y(this,Fe,O?T:null),y(this,at,void 0),y(this,te,void 0),y(this,G,void 0),y(this,et,null),y(this,K,null),y(this,rt,null),y(this,$t,null),y(this,It,0),y(this,Pt,0),y(this,ve,!1),y(this,De,new Set),y(this,Be,new Set),y(this,Ct,null),y(this,vr,jl(()=>(_(Ct,this,Se(s(It,this))),()=>{_(Ct,this,null)}))),_(tt,this,t),_(at,this,e),_(te,this,i=>{var l=m;l.b=this,l.f|=128,r(i)}),this.parent=m.b,this.transform_error=n??this.parent?.transform_error??(i=>i),_(G,this,Rn(()=>{if(O){const i=s(Fe,this);jr();const l=i.data==="[!";if(i.data.startsWith("[?")){const o=JSON.parse(i.data.slice(2));$(P,this,Ll).call(this,o)}else l?$(P,this,Rl).call(this):$(P,this,zl).call(this)}else $(P,this,Qn).call(this)},Al)),O&&_(tt,this,T)}defer_effect(t){bn(t,s(De,this),s(Be,this))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!s(at,this).pending}update_pending_count(t,e){$(P,this,ti).call(this,t,e),_(It,this,s(It,this)+t),s(Ct,this)&&!s(ve,this)&&(_(ve,this,!0),Ht(()=>{_(ve,this,!1),s(Ct,this)&&nr(s(Ct,this),s(It,this))}))}get_effect_pending(){return s(vr,this).call(this),g(s(Ct,this))}error(t){if(!s(at,this).onerror&&!s(at,this).failed)throw t;b?.is_fork?(s(et,this)&&b.skip_effect(s(et,this)),s(K,this)&&b.skip_effect(s(K,this)),s(rt,this)&&b.skip_effect(s(rt,this)),b.oncommit(()=>{$(P,this,an).call(this,t)})):$(P,this,an).call(this,t)}});function zl(){try{_(et,this,kt(()=>s(te,this).call(this,s(tt,this))))}catch(t){this.error(t)}}function Ll(t){const e=s(at,this).failed,{reset:r,invoke_onerror:n}=$(P,this,Zn).call(this,t);Ht(n),e&&_(rt,this,kt(()=>{e(s(tt,this),()=>t,()=>r)}))}function Zn(t){var e=!1,r=!1;const n=()=>{if(e){Ni();return}e=!0,r&&Yi(),s(rt,this)!==null&&Ce(s(rt,this),()=>{_(rt,this,null)}),$(P,this,Br).call(this,()=>{$(P,this,Qn).call(this)})};return{reset:n,invoke_onerror:()=>{try{r=!0,s(at,this).onerror?.(t,n),r=!1}catch(i){gt(i,s(G,this)&&s(G,this).parent)}}}}function Rl(){const t=s(at,this).pending;t&&(this.is_pending=!0,_(K,this,kt(()=>t(s(tt,this)))),Ht(()=>{var e=_($t,this,document.createDocumentFragment()),r=Vt(),n=!1;if(e.append(r),_(et,this,$(P,this,Br).call(this,()=>{try{return kt(()=>s(te,this).call(this,r))}catch(i){try{this.error(i),n=!0}catch(l){gt(l,s(G,this).parent)}return null}})),s(et,this)===null){_($t,this,null),n&&$(P,this,ir).call(this,b);return}s(Pt,this)===0&&(s(tt,this).before(e),_($t,this,null),Ce(s(K,this),()=>{_(K,this,null)}),$(P,this,ir).call(this,b))}))}function Qn(){try{if(this.is_pending=this.has_pending_snippet(),_(Pt,this,0),_(It,this,0),_(et,this,kt(()=>{s(te,this).call(this,s(tt,this))})),s(Pt,this)>0){var t=_($t,this,document.createDocumentFragment());Hn(s(et,this),t);const e=s(at,this).pending;_(K,this,kt(()=>e(s(tt,this))))}else $(P,this,ir).call(this,b)}catch(e){this.error(e)}}function ir(t){this.is_pending=!1,t.transfer_effects(s(De,this),s(Be,this))}function Br(t){var e=m,r=k,n=j;_t(s(G,this)),it(s(G,this)),ie(s(G,this).ctx);try{return ae.ensure(),t()}finally{_t(e),it(r),ie(n)}}function ti(t,e){if(!this.has_pending_snippet()){var r;this.parent&&$(P,r=this.parent,ti).call(r,t,e);return}_(Pt,this,s(Pt,this)+t),s(Pt,this)===0&&($(P,this,ir).call(this,e),s(K,this)&&Ce(s(K,this),()=>{_(K,this,null)}),s($t,this)&&(s(tt,this).before(s($t,this)),_($t,this,null)))}function an(t){s(et,this)&&(U(s(et,this)),_(et,this,null)),s(K,this)&&(U(s(K,this)),_(K,this,null)),s(rt,this)&&(U(s(rt,this)),_(rt,this,null)),O&&(wt(s(Fe,this)),zi(),wt(wn()));let e=s(at,this).failed;const r=n=>{const{reset:i,invoke_onerror:l}=$(P,this,Zn).call(this,n);l(),e&&_(rt,this,$(P,this,Br).call(this,()=>{try{return kt(()=>{var o=m;o.b=this,o.f|=128,e(s(tt,this),()=>n,()=>i)})}catch(o){return gt(o,s(G,this).parent),null}}))};Ht(()=>{var n;try{n=this.transform_error(t)}catch(i){gt(i,s(G,this)&&s(G,this).parent);return}n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(r,i=>gt(i,s(G,this)&&s(G,this).parent)):r(n)})}function un(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[He]??(t[He]=t.nodeValue))&&(t[He]=r,t.nodeValue=`${r}`)}function ei(t,e){return ri(t,e)}function ql(t,e){Cr(),e.intro=e.intro??!1;const r=e.target,n=O,i=T;try{for(var l=le(r);l&&(l.nodeType!==8||l.data!=="[");)l=Ot(l);if(!l)throw ne;Zt(!0),wt(l);const o=ri(t,{...e,anchor:l});return Zt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==ne&&console.warn("Failed to hydrate: ",o),e.recover===!1&&Gi(),Cr(),vl(r),Zt(!1),ei(t,e)}finally{Zt(n),wt(i)}}var Le=new Map;function ri(t,{target:e,anchor:r,props:n={},events:i,context:l,intro:o=!0,transformError:a}){Cr();var u=void 0,c=ml(()=>{var f=r??e.appendChild(Vt());Il(f,{pending:()=>{}},h=>{Ar({});var v=j;if(l&&(v.c=l),i&&(n.$$events=i),O&&Je(h,null),u=t(h,n)||Nr(),O&&(m.nodes.end=T,T===null||T.nodeType!==8||T.data!=="]"))throw lr(),ne;Ir()},a);var d=new Set,p=h=>{for(var v=0;v<h.length;v++){var M=h[v];if(!d.has(M)){d.add(M);var D=Ol(M);for(const H of[e,document]){var z=Le.get(H);z===void 0&&(z=new Map,Le.set(H,z));var B=z.get(M);B===void 0?(H.addEventListener(M,on,{passive:D}),z.set(M,1)):z.set(M,B+1)}}}};return p($i(Cl)),sn.add(p),()=>{for(var h of d)for(const D of[e,document]){var v=Le.get(D),M=v.get(h);--M==0?(D.removeEventListener(h,on),v.delete(h),v.size===0&&Le.delete(D)):v.set(h,M)}sn.delete(p),f!==r&&f.parentNode?.removeChild(f)}});return Wr.set(u,c),u}var Wr=new WeakMap;function Fl(t,e){const r=Wr.get(t);return r?(Wr.delete(t),r(e)):Promise.resolve()}var Dl=(ht=new WeakMap,mt=new WeakMap,Z=new WeakMap,Kt=new WeakMap,Ae=new WeakMap,Ie=new WeakMap,dr=new WeakMap,class{constructor(t,e=!0){S(this,"anchor",void 0),y(this,ht,new Map),y(this,mt,new Map),y(this,Z,new Map),y(this,Kt,new Set),y(this,Ae,!0),y(this,Ie,r=>{if(s(ht,this).has(r)){var n=s(ht,this).get(r),i=s(mt,this).get(n);if(i)en(i),s(Kt,this).delete(n);else{var l=s(Z,this).get(n);l&&(en(l.effect),s(mt,this).set(n,l.effect),s(Z,this).delete(n),l.fragment.lastChild.remove(),this.anchor.before(l.fragment),i=l.effect)}for(const[o,a]of s(ht,this)){if(s(ht,this).delete(o),o===r)break;const u=s(Z,this).get(a);u&&(U(u.effect),s(Z,this).delete(a))}for(const[o,a]of s(mt,this)){if(o===n||s(Kt,this).has(o))continue;const u=()=>{if(Array.from(s(ht,this).values()).includes(o)){var c=document.createDocumentFragment();Hn(a,c),c.append(Vt()),s(Z,this).set(o,{effect:a,fragment:c})}else U(a);s(Kt,this).delete(o),s(mt,this).delete(o)};s(Ae,this)||!i?(s(Kt,this).add(o),Ce(a,u,!1)):u()}}}),y(this,dr,r=>{s(ht,this).delete(r);const n=Array.from(s(ht,this).values());for(const[i,l]of s(Z,this))n.includes(i)||(U(l.effect),s(Z,this).delete(i))}),this.anchor=t,_(Ae,this,e)}ensure(t,e){var r=b,n=dl();if(e&&!s(mt,this).has(t)&&!s(Z,this).has(t))if(n){var i=document.createDocumentFragment(),l=Vt();i.append(l),s(Z,this).set(t,{effect:kt(()=>e(l)),fragment:i})}else s(mt,this).set(t,kt(()=>e(this.anchor)));if(s(ht,this).set(r,t),n){for(const[o,a]of s(mt,this))o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of s(Z,this))o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(s(Ie,this)),r.ondiscard(s(dr,this))}else O&&(this.anchor=T),s(Ie,this).call(this,r)}});function Bl(t){j===null&&qi("onMount"),or&&j.l!==null?Hl(j).m.push(t):Tr(()=>{const e=We(t);if(typeof e=="function")return e})}function Hl(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}function Ke(t,e,r=!1){var n;O&&(n=T,jr());var i=new Dl(t),l=r?Or:0;function o(a,u){if(O){var c=Li(n);if(a!==parseInt(c.substring(1))){var f=wn();wt(f),i.anchor=f,Zt(!1),i.ensure(a,u),Zt(!0);return}}i.ensure(a,u)}Rn(()=>{var a=!1;e((u,c=0)=>{a=!0,o(c,u)}),a||o(-1,null)},l)}function ni(t,e){Ln(()=>{t=m?.parent?.nodes?.start??t;var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const i=Rr("style");i.id=e.hash,i.textContent=e.code,n.appendChild(i)}})}var Vl=Symbol("is custom element"),Gl=Symbol("is html"),Jl=Ai?"link":"LINK";function Ut(t,e,r,n){var i=Kl(t);O&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Jl)||i[e]!==(i[e]=r)&&(e==="loading"&&(t[Pi]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Ul(t).has(e)?t[e]=r:t.setAttribute(e,r))}function Kl(t){return t[$r]??(t[$r]={[Vl]:t.nodeName.includes("-"),[Gl]:t.namespaceURI===yi})}var cn=new Map;function Ul(t){var e=t.getAttribute("is")||t.nodeName,r=cn.get(e);if(r)return r;cn.set(e,r=new Set);for(var n,i=t,l=Element.prototype;l!==i;){n=ki(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.add(o);i=vn(i)}return r}function yr(t,e){return t===e||t?.[we]===e}function fn(t=Nr(),e,r,n){var i=j.r,l=m;return Ln(()=>{var o,a;return Fr(()=>{o=a,a=n?.()||[],We(()=>{yr(r(...a),t)||(e(t,...a),o&&yr(r(...o),t)&&e(null,...o))})}),()=>{let u=l;for(;u!==i&&u.parent!==null&&u.parent.f&33554432;)u=u.parent;const c=()=>{a&&yr(r(...a),t)&&e(null,...a)},f=u.teardown;u.teardown=()=>{c(),f?.()}}}),t}var Re=!1;function Xl(t){var e=Re;try{return Re=!1,[t(),Re]}finally{Re=e}}function V(t,e,r,n){var i=!or||(r&2)!==0,l=(r&8)!==0,o=(r&16)!==0,a=n,u=!0,c=void 0,f=()=>o&&i?(c??(c=be(n)),g(c)):(u&&(u=!1,a=o?We(n):n),a);let d;if(l){var p=we in t||gn in t;d=Dt(t,e)?.set??(p&&e in t?N=>t[e]=N:void 0)}var h,v=!1;l?[h,v]=Xl(()=>t[e]):h=t[e],h===void 0&&n!==void 0&&(h=f(),d&&(i&&Ji(e),d(h)));var M;if(i?M=()=>{var N=t[e];return N===void 0?f():(u=!0,N)}:M=()=>{var N=t[e];return N!==void 0&&(a=void 0),N===void 0?a:N},i&&(r&4)===0)return M;if(d){var D=t.$$legacy;return(function(N,xt){return arguments.length>0?((!i||!xt||D||v)&&d(xt?M():N),N):M()})}var z=!1,B=((r&1)!==0?be:kn)(()=>(z=!1,M()));l&&g(B);var H=m;return(function(N,xt){if(arguments.length>0){const Y=xt?g(B):i&&l?Qt(N):N;return x(B,Y),z=!0,a!==void 0&&(a=Y),N}return Mt&&z||(H.f&16384)!==0?B.v:g(B)})}function Yl(t){return new Zl(t)}var Zl=(Tt=new WeakMap,st=new WeakMap,class{constructor(t){y(this,Tt,void 0),y(this,st,void 0);var e=new Map,r=(i,l)=>{var o=fl(l,!1,!1);return e.set(i,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(i,l){return g(e.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===gn?!0:(g(e.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return x(e.get(l)??r(l,o),o),Reflect.set(i,l,o)}});_(st,this,(t.hydrate?ql:ei)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&F(),_(Tt,this,n.$$events);for(const i of Object.keys(s(st,this)))i==="$set"||i==="$destroy"||i==="$on"||me(this,i,{get(){return s(st,this)[i]},set(l){s(st,this)[i]=l},enumerable:!0});s(st,this).$set=i=>{Object.assign(n,i)},s(st,this).$destroy=()=>{Fl(s(st,this))}}$set(t){s(st,this).$set(t)}$on(t,e){s(Tt,this)[t]=s(Tt,this)[t]||[];const r=(...n)=>e.call(this,...n);return s(Tt,this)[t].push(r),()=>{s(Tt,this)[t]=s(Tt,this)[t].filter(n=>n!==r)}}$destroy(){s(st,this).$destroy()}}),ii;typeof HTMLElement=="function"&&(ii=class extends HTMLElement{constructor(t,e,r){var n=(...i)=>(super(...i),S(this,"$$ctor",void 0),S(this,"$$s",void 0),S(this,"$$c",void 0),S(this,"$$cn",!1),S(this,"$$d",{}),S(this,"$$r",!1),S(this,"$$p_d",{}),S(this,"$$l",{}),S(this,"$$l_u",new Map),S(this,"$$me",void 0),S(this,"$$shadowRoot",null),this);n(),this.$$ctor=t,this.$$s=e,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return i=>{const l=Rr("slot");n!=="default"&&(l.name=n),qt(i,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Ql(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ue(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Yl({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=yl(()=>{Fr(()=>{this.$$r=!0;for(const n of Xe(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ue(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const l=this.$$c.$on(n,i);this.$$l_u.set(i,l)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ue(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Xe(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Ue(t,e,r,n){const i=r[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ql(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function li(t,e,r,n,i,l){let o=class extends ii{constructor(){super(t,r,i),this.$$p_d=e}static get observedAttributes(){return Xe(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Xe(e).forEach(a=>{me(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(u){u=Ue(a,u,e),this.$$d[a]=u;var c=this.$$c;c&&(Dt(c,a)?.get?c[a]=u:c.$set({[a]:u}))}})}),n.forEach(a=>{me(o.prototype,a,{get(){return this.$$c?.[a]}})}),l&&(o=l(o)),t.element=o,o}function ts(t){const e=new Set,r=n=>{if(n===void 0)return{$type:"undefined"};if(typeof n=="bigint")return{$type:"bigint",value:n.toString()};if(typeof n=="function")return{$type:"function",value:n.toString()};if(typeof n=="symbol")return{$type:"symbol",value:n.description??""};if(n===null||typeof n!="object")return n;if(e.has(n))return{$type:"circular-reference"};e.add(n);const i=Array.isArray(n)?n.map(r):Object.fromEntries(Object.entries(n).sort(([l],[o])=>l.localeCompare(o)).map(([l,o])=>[l,r(o)]));return e.delete(n),i};return JSON.stringify(r(t))}var es=ue('<div class="pie-tool-calculator__loading svelte-16ps7c2"> </div>'),rs=ue('<div class="pie-tool-calculator__loading pie-tool-calculator__loading--error svelte-16ps7c2">Calculator failed to initialize. <div class="pie-tool-calculator__error-details svelte-16ps7c2"> </div></div>'),ns=ue('<div class="pie-tool-calculator notranslate svelte-16ps7c2" role="region" tabindex="-1" translate="no"><div class="pie-tool-calculator__container svelte-16ps7c2"></div> <!> <!></div>'),is=ue('<div class="pie-tool-calculator__context-host svelte-16ps7c2"><!></div>'),ls={hash:"svelte-16ps7c2",code:`.pie-tool-calculator__context-host.svelte-16ps7c2 {display:flex;width:100%;height:100%;min-height:0;}.pie-tool-calculator.svelte-16ps7c2 {position:relative;display:flex;flex:1 1 auto;min-width:100%;min-height:0;background:var(--pie-white, white);overflow:hidden;}.pie-tool-calculator__container.svelte-16ps7c2 {position:relative;width:100%;height:100%;min-width:100%;min-height:100%;
3
+ /*
4
+ * \`--pie-white\`, not the literal. The token inverts by design (#ffffff light,
5
+ * #000000 dark, redefined per colour scheme), so a hardcoded white showed
6
+ * through as a white plate behind a dark calculator the moment a provider's own
7
+ * surface stopped being opaque — and under a PNP colour scheme it was simply
8
+ * the wrong colour.
9
+ */background:var(--pie-white, white);overflow:hidden;}.pie-tool-calculator__mount {width:100%;height:100%;min-width:100%;min-height:100%;}.pie-tool-calculator__loading.svelte-16ps7c2 {position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb, var(--pie-white, #fff) 90%, transparent);color:var(--pie-text, #334155);font-size:0.9rem;}.pie-tool-calculator__loading--error.svelte-16ps7c2 {flex-direction:column;gap:0.5rem;padding:0.75rem;color:var(--pie-incorrect, #b91c1c);text-align:center;}.pie-tool-calculator__error-details.svelte-16ps7c2 {max-width:95%;color:var(--pie-incorrect, #7f1d1d);font-size:0.8rem;line-height:1.2;word-break:break-word;}.pie-tool-calculator__mount > * {width:100% !important;height:100% !important;}`};function si(t,e){Ar(e,!0),ni(t,ls);let r=V(e,"visible",7,!1),n=V(e,"toolId",7,"calculator"),i=V(e,"providerId",7,""),l=V(e,"calculatorType",7,"basic"),o=V(e,"availableTypes",23,()=>["basic","scientific","graphing"]),a=V(e,"calculatorConfig",23,()=>({})),u=V(e,"toolkitCoordinator",7,null),c=q(null),f=q(null),d=q(null),p=q(null),h=q(!1),v=q(null),M=q(!1);const D=de(()=>_i(g(d))),z=de(()=>u()??g(d)?.toolkitCoordinator),B=de(()=>(typeof o()=="string"?o().split(",").map(w=>w.trim()):o()).filter(w=>w==="basic"||w==="scientific"||w==="graphing")),H=de(()=>g(B).includes(l())?l():g(B)[0]??"basic"),N=de(()=>ts(a()));let xt=null,Y=null,jt=0,ur=!1,Ee=null;const Pe=new Set;Tr(()=>{if(g(c))return wi(g(c),w=>{x(d,w,!0)})});function Hr(){Ee?.disconnect(),Ee=null;for(const w of Pe)clearTimeout(w);Pe.clear()}function cr(){jt+=1,Hr();const w=g(p),W=Y;x(p,null),Y=null;try{w?.destroy()}catch(C){console.warn("[CalculatorTool] calculator cleanup failed:",C)}W?.remove(),xt=null,x(h,!1),x(M,!1)}function Vr(){requestAnimationFrame(()=>{if(!r()||!g(p)||!Y?.isConnected)return;const w=document.activeElement;w instanceof Node&&Y.contains(w)||g(p).focus?.()})}function oi(w,W){Hr(),typeof ResizeObserver<"u"&&(Ee=new ResizeObserver(()=>{r()&&W.isConnected&&w.resize?.()}),Ee.observe(W));for(const C of[60,250,1e3]){const L=setTimeout(()=>{Pe.delete(L),r()&&W.isConnected&&w.resize?.()},C);Pe.add(L)}}async function ai(w,W,C){x(h,!0),x(v,null);try{if(!i())throw new Error("Calculator provider id is required");const L=g(z)?.toolProviderRegistry;if(!L)throw new Error("Calculator provider registry is unavailable");const fr=await(await L.getProvider(i())).createInstance();if(w!==jt||!r()||!C.isConnected){C.remove();return}const Jt=await fr.createCalculator(g(H),C,a());if(w!==jt||!r()||!C.isConnected){Jt.destroy(),C.remove();return}x(p,Jt,!0),xt=W,x(M,C.childElementCount>0),oi(Jt,C),requestAnimationFrame(()=>{w===jt&&(Jt.resize?.(),x(M,C.childElementCount>0),Vr())})}catch(L){if(w!==jt){C.remove();return}x(v,L instanceof Error?L.message:String(L),!0),x(p,null),Y===C&&(Y=null),C.remove(),x(M,!1)}finally{w===jt&&x(h,!1)}}function ui(){ur=!1;const w=g(f),W=g(z);if(!r()||!w||!w.isConnected||!W){(g(p)||g(h)||Y)&&cr(),x(v,null);return}const C=`${i()}:${g(H)}:${g(N)}`;if(g(p)&&xt===C){Vr();return}(g(p)||g(h)||Y)&&cr();const L=document.createElement("div");L.className="pie-tool-calculator__mount",w.replaceChildren(L),Y=L,ai(++jt,C,L)}function ci(){ur||(ur=!0,queueMicrotask(ui))}Tr(()=>{r(),i(),g(H),a(),g(N),g(f),g(z),We(ci)}),Bl(()=>()=>cr());var fi={get visible(){return r()},set visible(w=!1){r(w),F()},get toolId(){return n()},set toolId(w="calculator"){n(w),F()},get providerId(){return i()},set providerId(w=""){i(w),F()},get calculatorType(){return l()},set calculatorType(w="basic"){l(w),F()},get availableTypes(){return o()},set availableTypes(w=["basic","scientific","graphing"]){o(w),F()},get calculatorConfig(){return a()},set calculatorConfig(w={}){a(w),F()},get toolkitCoordinator(){return u()},set toolkitCoordinator(w=null){u(w),F()}},Oe=is(),hi=re(Oe),vi=w=>{var W=ns(),C=re(W);fn(C,lt=>x(f,lt),()=>g(f));var L=Ve(C,2),fr=lt=>{var St=es(),ce=tn(St,!0);gr(pi=>un(ce,pi),[()=>g(D).t("tools.calculator.loading")]),qt(lt,St)};Ke(L,lt=>{(g(h)||!g(v)&&!g(M))&&lt(fr)});var Jt=Ve(L,2),di=lt=>{var St=rs(),ce=tn(Ve(re(St)),!0);ee(St),gr(()=>un(ce,g(v))),qt(lt,St)};Ke(Jt,lt=>{g(v)&&lt(di)}),ee(W),gr((lt,St,ce)=>{Ut(W,"data-tool-id",n()),Ut(W,"data-provider-id",i()),Ut(W,"lang",lt),Ut(W,"dir",St),Ut(W,"aria-label",ce),Ut(C,"data-calculator-type",g(H)),W.dir=W.dir},[()=>g(D).getLocale(),()=>g(D).getDirection?.()??"ltr",()=>g(D).t("tools.calculator.toolA11y")]),qt(w,W)};return Ke(hi,w=>{r()&&w(vi)}),ee(Oe),fn(Oe,w=>x(c,w),()=>g(c)),qt(t,Oe),Ir(fi)}li(si,{visible:{},toolId:{},providerId:{},calculatorType:{},availableTypes:{},calculatorConfig:{},toolkitCoordinator:{}},[],[],{mode:"open"});var ss=ue('<a class="pie-tool-calculator-geogebra__attribution svelte-1y3d5zb" href="https://www.geogebra.org/" target="_blank" rel="noreferrer" aria-label="Made with GeoGebra® (opens in a new tab)">Made with GeoGebra®</a>'),os=ue('<div class="pie-tool-calculator-geogebra__surface svelte-1y3d5zb"><div class="pie-tool-calculator-geogebra__calculator svelte-1y3d5zb"><!></div> <!></div>'),as={hash:"svelte-1y3d5zb",code:".pie-tool-calculator-geogebra__surface.svelte-1y3d5zb {display:flex;flex-direction:column;width:100%;height:100%;min-height:0;}.pie-tool-calculator-geogebra__calculator.svelte-1y3d5zb {display:flex;flex:1 1 auto;min-height:0;}.pie-tool-calculator-geogebra__attribution.svelte-1y3d5zb {align-self:flex-end;flex:0 0 auto;padding:0.1rem 0.25rem;border-radius:0.2rem;background:rgb(255 255 255 / 88%);color:#334155;font-size:0.65rem;}"};function us(t,e){Ar(e,!0),ni(t,as);let r=V(e,"visible",7,!1),n=V(e,"toolId",7,"calculator"),i=V(e,"providerId",7,"calculator-geogebra"),l=V(e,"calculatorType",7,"basic"),o=V(e,"availableTypes",23,()=>["basic","scientific","graphing"]),a=V(e,"calculatorConfig",23,()=>({})),u=V(e,"toolkitCoordinator",7,null);var c={get visible(){return r()},set visible(v=!1){r(v),F()},get toolId(){return n()},set toolId(v="calculator"){n(v),F()},get providerId(){return i()},set providerId(v="calculator-geogebra"){i(v),F()},get calculatorType(){return l()},set calculatorType(v="basic"){l(v),F()},get availableTypes(){return o()},set availableTypes(v=["basic","scientific","graphing"]){o(v),F()},get calculatorConfig(){return a()},set calculatorConfig(v={}){a(v),F()},get toolkitCoordinator(){return u()},set toolkitCoordinator(v=null){u(v),F()}},f=os(),d=re(f);si(re(d),{get visible(){return r()},get toolId(){return n()},get providerId(){return i()},get calculatorType(){return l()},get availableTypes(){return o()},get calculatorConfig(){return a()},get toolkitCoordinator(){return u()}}),ee(d);var p=Ve(d,2),h=v=>{qt(v,ss())};return Ke(p,v=>{r()&&v(h)}),ee(f),qt(t,f),Ir(c)}cs("pie-tool-calculator-geogebra",li(us,{visible:{attribute:"visible",type:"Boolean"},toolId:{attribute:"tool-id",type:"String"},providerId:{attribute:"provider-id",type:"String"},calculatorType:{attribute:"calculator-type",type:"String"},availableTypes:{attribute:"available-types",type:"Array"},calculatorConfig:{type:"Object"},toolkitCoordinator:{type:"Object"}},[],[],void 0,gi));function cs(t,e){customElements.get(t)||customElements.define(t,e)}export{us as default};
@@ -0,0 +1 @@
1
+ function s(i){let t=null,o=null;const l=e=>{e.pointerId===t&&i.onMove(e)},r=e=>{e.pointerId===t&&u()};function u(){const e=o,n=t;t=null,o=null,!(!e||n===null)&&(e.removeEventListener("pointermove",l),e.removeEventListener("pointerup",r),e.removeEventListener("pointercancel",r),e.removeEventListener("lostpointercapture",r),e.hasPointerCapture(n)&&e.releasePointerCapture(n),i.onEnd())}return{isActive:()=>t!==null,begin(e,n){return e.button!==0||t!==null?!1:(t=e.pointerId,o=n,n.addEventListener("pointermove",l),n.addEventListener("pointerup",r),n.addEventListener("pointercancel",r),n.addEventListener("lostpointercapture",r),e.preventDefault(),!0)},release:u}}export{s as t};
@@ -0,0 +1 @@
1
+ var E=(function(){const r=typeof document<"u"&&document.createElement("link").relList;return r&&r.supports&&r.supports("modulepreload")?"modulepreload":"preload"})(),P=function(i,r){return new URL(i,r).href},h={},L=function(r){return r.pathname.endsWith(".css")},R=function(r,d,v){let f=Promise.resolve();if(d&&d.length>0){let w=function(t){return Promise.all(t.map(o=>Promise.resolve(o).then(s=>({status:"fulfilled",value:s}),s=>({status:"rejected",reason:s}))))},y=function(t){return import.meta.resolve?new URL(import.meta.resolve(t)):new URL(t,import.meta.url)},e;const n=document.querySelector("meta[property=csp-nonce]"),p=n?.nonce||n?.getAttribute("nonce");f=w(d.map(t=>{t=P(t,v);const o=y(t);if(o.href in h)return;h[o.href]=!0;const s=L(o);if(e===void 0){e={all:new Set,styles:new Set};const c=document.getElementsByTagName("link");for(let a=c.length-1;a>=0;a--){const u=c[a];e.all.add(u.href),u.rel==="stylesheet"&&e.styles.add(u.href)}}if((s?e.styles:e.all).has(o.href))return;const l=document.createElement("link");if(l.rel=s?"stylesheet":E,s||(l.as="script"),l.crossOrigin="",l.href=o.href,p&&l.setAttribute("nonce",p),document.head.appendChild(l),s)return new Promise((c,a)=>{l.addEventListener("load",c),l.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${o}`)))})}).filter(t=>t!==void 0))}function m(e){const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=e,window.dispatchEvent(n),!n.defaultPrevented)throw e}return f.then(e=>{for(const n of e||[])n.status==="rejected"&&m(n.reason);return r().catch(m)})};export{R as t};
@@ -0,0 +1 @@
1
+ import{t as s}from"./defineProperty-a20a667d.js";function r(o){return o?o.trim().replace(/_/g,"-").split(/[.@]/)[0].toLowerCase():""}function w(o){const t=r(o);if(!t)return[];const e=t.split("-"),i=[];for(let a=e.length;a>0;a--){const n=e.slice(0,a);n.length>1&&n[n.length-1].length===1||i.push(n.join("-"))}return i}function v(o,t){for(const e of w(o)){const i=t.find(a=>r(a)===e);if(i!=null)return i}}var f={common:{close:"Close",cancel:"Cancel",save:"Save",reset:"Reset",retry:"Retry",back:"Back",next:"Next",previous:"Previous",submit:"Submit",continue:"Continue",finish:"Finish",yes:"Yes",no:"No",ok:"OK",any:"Any",off:"Off",auto:"Auto",all:"All",none:"None",loading:"Loading…",error:"Error",settings:"Settings",language:"Language",theme:"Theme",preview:"Preview",author:"Author",unknown:"Unknown",untitled:"Untitled",apply:"Apply",enabled:"Enabled",disabled:"Disabled",closeA11y:"Close",settingsA11y:"Open settings menu"},player:{passage:"Passage",passages:"Passages",question:"Question",questionNumbered:"Question {position}",questions:"Questions",items:"Items",section:"Section",loadingSection:"Loading section content…",sectionLoadError:"Section content could not be loaded.",loadingPassage:"Loading passage content…",configurationError:"Configuration Error",playerError:"Player Error",authoringBackendError:"Authoring Backend Configuration Error",itemLoadError:"Question could not be loaded.",sectionTabsA11y:"Section content tabs",passagesRegionA11y:"Passages",itemsRegionA11y:"Items",sectionToolsA11y:"Section tools",scrollDownA11y:"Scroll down",resizePanels:"Resize panels",resizePassagesAndItemsA11y:"Resize passages and items panels",resizeMediaRegion:"Resize media region",resizeQuestionAndMediaA11y:"Resize question and media panels",resizePassageAndMediaA11y:"Resize passage and media panels",assessment:{sectionPosition:"Section {position} of {total}",noSections:"No sections",loadFailed:"The assessment could not be loaded. Try again.",restoreFailed:"Your saved answers for this section could not be restored. Try again."},formative:{checkAnswer:"Check answer",tryAgain:"Try again",answerRecorded:"Answer recorded.",correct:"Correct.",partlyCorrect:"Partly correct.",notCorrect:"Not correct.",notAutoScored:"Answer recorded. This question is not scored automatically.",checkFailed:"This question could not be checked. Try again.",triesLeft:{one:"{count} try left.",other:"{count} tries left."}},timedMedia:{waitingForMedia:"Questions will appear as the media plays.",questionAvailable:"Question {position} is now available.",playbackPaused:"Playback paused. Answer question {position} to continue.",playbackAdvisory:"Answer question {position} before continuing with the media.",playbackReleased:"Answer accepted. Continue playing the media."}},toolkit:{toolsA11y:"Assessment tools",toolbarInitError:"Unable to initialize assessment toolkit.",settingsTitle:"Settings",closeSettingsA11y:"Close settings",dragPanelA11y:"Drag panel",closePanelA11y:"Close panel",resizeWindow:"Resize window",minimize:"Minimize",maximize:"Maximize",minimizePanelA11y:"Minimize panel",maximizePanelA11y:"Maximize panel",window:{moveLeftA11y:"Move tool left",moveRightA11y:"Move tool right",moveUpA11y:"Move tool up",moveDownA11y:"Move tool down",shrinkA11y:"Shrink tool window",growA11y:"Grow tool window",centerA11y:"Center tool window",closeA11y:"Close tool"},placement:{controlsA11y:"Move and rotate",rotateClockwiseA11y:"Rotate {degrees}° clockwise",rotateCounterclockwiseA11y:"Rotate {degrees}° counterclockwise"},announce:{movedUp:"Moved up to {position}",movedDown:"Moved down to {position}",movedLeft:"Moved left to {position}",movedRight:"Moved right to {position}",rotatedTo:"Rotated to {degrees} degrees"}},tools:{calculator:{name:"Calculator",nameBasic:"Basic Calculator",nameScientific:"Scientific Calculator",nameGraphing:"Graphing Calculator",description:"Multi-type calculator (basic, scientific, graphing)",openedBasic:"Basic calculator opened",openedScientific:"Scientific calculator opened",openedGraphing:"Graphing calculator opened",closedBasic:"Basic calculator closed",closedScientific:"Scientific calculator closed",closedGraphing:"Graphing calculator closed",toolA11y:"Calculator tool",loading:"Loading calculator…",providerUnavailable:"The calculator is unavailable."},graph:{name:"Graph",description:"Coordinate plane",buttonA11y:"Graph, coordinate plane",tooltip:"Graph",toolA11y:"Graph tool — draw points and lines on a coordinate grid",canvasA11y:"Graph canvas — use tools to add points and draw lines",grid:"Grid:",gridOpacityA11y:"Grid opacity",pointA11y:"Graph point {id}",modeSelector:"Selector",modeSelectorHint:"Selector: click and drag points to move them or associated lines.",modePoint:"Point",modePointHint:"Point: click on the grid to add points.",modeLine:"Line",modeLineHint:"Line: click a starting point, then an ending point to draw a line.",modeDelete:"Delete",modeDeleteHint:"Delete: click on a point to delete it and any connected lines."},periodicTable:{name:"Periodic Table",description:"Chemistry periodic table reference",buttonA11y:"Periodic Table, chemistry reference",tooltip:"Periodic Table",toolA11y:"Periodic table — select an element to view its details",elementsA11y:"Periodic table elements",showAllA11y:"Show all elements",allElements:"All Elements",atomicMass:"Atomic Mass",atomicNumber:"Atomic No",electronConfig:"Electron Config",phase:"Phase",filterByA11y:"Filter by {category}",elementA11y:"{name}, Symbol: {symbol}, Atomic number: {number}, Atomic mass: {mass}, Category: {category}",outsideFilterA11y:", outside the current filter",category:{unknown:"Unknown",alkaliMetal:"Alkali Metal",alkalineEarthMetal:"Alkaline Earth Metal",transitionMetal:"Transition Metal",postTransitionMetal:"Post-transition Metal",metalloid:"Metalloid",diatomicNonmetal:"Diatomic Nonmetal",polyatomicNonmetal:"Polyatomic Nonmetal",nobleGas:"Noble Gas",lanthanide:"Lanthanide",actinide:"Actinide"}},ruler:{name:"Ruler",description:"On-screen ruler for measurements",buttonA11y:"Ruler",tooltip:"Ruler",toolA11y:"Draggable and rotatable ruler measurement tool",unitSelectionA11y:"Ruler unit selection",inches:"Inches",centimeters:"Centimeters",inchesInSentence:"inches",centimetersInSentence:"centimeters",switchToInchesA11y:"Switch to inches",switchToCentimetersA11y:"Switch to centimeters",switchedTo:"Switched to {unit}",applicationA11y:"Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp or PageDown for fine rotation, U to toggle units. Current unit: {unit}",imageAlt:"Ruler showing {unit}"},protractor:{name:"Protractor",description:"On-screen protractor for angle measurements",buttonA11y:"Protractor",tooltip:"Protractor",toolA11y:"Protractor tool. Use arrow keys to move, Shift+arrows to rotate, and PageUp or PageDown for fine rotation.",roleA11y:"Draggable and rotatable protractor measurement tool",imageAlt:"Protractor with 180-degree semicircular scale marked from 0 to 180 degrees in both directions, with degree markings every 10 degrees"},dictionary:{name:"Dictionary",description:"Look up word definitions",buttonA11y:"Dictionary, look up word definitions",tooltip:"Dictionary",toolA11y:"Dictionary"},pictureDictionary:{name:"Picture Dictionary",description:"Look up pictures for words",buttonA11y:"Picture Dictionary, look up pictures for words",tooltip:"Picture Dictionary",toolA11y:"Picture Dictionary"},dictionarySpanish:{name:"Spanish Dictionary",description:"Look up word definitions in Spanish",buttonA11y:"Spanish Dictionary, look up word definitions in Spanish",tooltip:"Spanish Dictionary",toolA11y:"Spanish Dictionary"},pictureDictionarySpanish:{name:"Spanish Picture Dictionary",description:"Look up pictures for words in Spanish",buttonA11y:"Spanish Picture Dictionary, look up pictures for words in Spanish",tooltip:"Spanish Picture Dictionary",toolA11y:"Spanish Picture Dictionary"},lineReader:{name:"Line Reader",description:"Reading guide overlay",buttonA11y:"Line Reader, reading guide",tooltip:"Line Reader",roleA11y:"Draggable and resizable reading guide overlay",close:"Close line reader",resizeWindowA11y:"Drag to resize the reading window",resizeFrameA11y:"Drag to resize the frame and window width",windowHeightAnnounce:"Reading window height {pixels} pixels",frameHeightAnnounce:"Frame height {pixels} pixels",widthAnnounce:"Width {pixels} pixels",applicationA11y:"Line Reader tool. A clear reading window inside an obscuring frame. Use arrow keys to move, +/- to resize the reading window, Escape to close. Reading window height: {paneHeight} pixels, Frame height: {frameHeight} pixels",resizeWindowFullA11y:"Resize the reading window. Drag, or use the up and down arrow keys to change its height. Current height {paneHeight} pixels",resizeFrameFullA11y:"Resize the frame. Drag, or use the up and down arrow keys to change the frame height and the left and right arrow keys to change the width. Current frame height {frameHeight} pixels, width {width} pixels"},answerEliminator:{name:"Answer Eliminator",description:"Strike through answer choices",buttonA11y:"Strike Through, eliminate answer choices",tooltip:"Strike Through"},highlighter:{name:"Highlighter",description:"Highlight and annotate text",buttonA11y:"Highlight text",tooltip:"Highlight"},annotationToolbar:{name:"Annotation",description:"Highlight and annotate text",buttonA11y:"Annotate, highlight and mark up text",tooltip:"Annotate",toolbarA11y:"Text annotation toolbar",underline:"Underline",underlineA11y:"Underline selected text",readAloud:"Read Aloud",readAloudA11y:"Read selected text aloud",remove:"Remove",removeA11y:"Remove this annotation",clearAll:"Clear All",clearAllA11y:"Clear all annotations from document",highlightYellowA11y:"Yellow highlight",highlightPinkA11y:"Pink highlight",highlightBlueA11y:"Blue highlight",highlightGreenA11y:"Green highlight"},theme:{name:"Theme",description:"Accessible themes and contrast",buttonA11y:"Theme, change colors and contrast",tooltip:"Theme",selectorA11y:"Theme selector",hint:"Select a theme to improve readability and reduce eye strain.",selectA11y:"Select theme",selectCurrentA11y:"Select theme. Current theme: {name}",optionUnavailableA11y:"{name}, unavailable",unavailableName:"Unavailable theme: {id}",unavailableDescription:"PIE's managed base theme remains active until this theme becomes available again.",unavailableStatus:"The selected theme is unavailable. PIE's managed base theme is active until it becomes available again."},textToSpeech:{name:"Text to Speech",description:"Read content aloud",toolA11y:"Text-to-speech tool",title:"Text-to-Speech",initializing:"Initializing…",initFailed:"Failed to initialize text-to-speech.",selectText:"Select text on the page to read it aloud.",speed:"Speed:",play:"Play",pause:"Pause",resume:"Resume",stop:"Stop",speaking:"Speaking…",paused:"Paused",charactersSelected:{one:"{count} character selected",other:"{count} characters selected"},rate:{slow:"Slow",slower:"Slower",normal:"Normal",faster:"Faster",fast:"Fast",veryFast:"Very Fast"},inline:{controlsA11y:"Reading controls",playbackSpeedA11y:"Playback speed",rewindA11y:"Rewind",fastForwardA11y:"Fast-forward",stopA11y:"Stop reading",initializing:"Initializing text-to-speech",initFailed:"Unable to initialize text-to-speech. Try again.",starting:"Starting reading",started:"Reading started",resumed:"Reading resumed",pausedAnnouncement:"Reading paused",stopped:"Reading stopped",switchedSection:"Reading switched to another section",startFailed:"Unable to start reading",skippedForward:"Skipped forward",skipForwardFailed:"Unable to skip forward",skippedBackward:"Skipped backward",skipBackwardFailed:"Unable to skip backward",speedChangeFailed:"Unable to change playback speed",speedAnnounce:"Playback speed {label}",playA11y:"Play reading",pauseA11y:"Pause reading",resumeA11y:"Resume reading"}},signLanguage:{name:"Sign Language",description:"Signed alternate for authored content",generic:"Sign language",unknown:"Sign language ({code})",ase:"American Sign Language",bfi:"British Sign Language",fsl:"French Sign Language",gss:"Greek Sign Language",mfs:"Mexican Sign Language",signedEnglish:"Signed English",regionA11y:"{language} translation"},audioTranscript:{name:"Audio Transcript",description:"Text transcript of audio content",regionA11y:"Transcript"}},debug:{session:"Session",sessionData:"Session Data",sessionDataPersistent:"PIE Session Data (Persistent)",noItemSessionYet:"No item session data yet. Interact with the item to see updates here.",itemSessionsSnapshot:"Item Sessions Snapshot",sectionControllerUnavailable:"Section controller not available for this section yet.",filteredModel:"Filtered Model",environment:"Environment",events:"Events",controllerEvents:"Controller Events",instrumentation:"Instrumentation",databaseState:"Database state",sessionDb:"Session DB (Server)",noRows:"No rows",noRecords:"No instrumentation records yet.",selectRecord:"Select a record to inspect details.",selectEvent:"Select an event to inspect payload details.",showRawTables:"Show raw tables",showReconstructedSnapshots:"Show reconstructed snapshots",showSectionRequest:"Show section request",showAssessmentRequest:"Show assessment request",liveUpdatesUnsupported:"Live updates are not supported in this browser",liveUpdatesDisconnected:"Live updates disconnected; retrying…",fieldType:"Type:",fieldTarget:"Target:",fieldItem:"Item:",fieldCanonical:"Canonical:",fieldIntent:"Intent:",fieldDuplicates:"Duplicates:",fieldSemanticRepeats:"Semantic Repeats:",dragItemSessionPanelA11y:"Drag item session panel",debuggerTabsA11y:"Debugger tabs",sessionDataJsonA11y:"Session data JSON",environmentJsonA11y:"Environment JSON",filteredModelJsonA11y:"Filtered model JSON",sectionSessionJsonA11y:"Section session snapshot JSON",eventLevelFilterA11y:"Event level filter",controllerEventDetailsA11y:"Controller event details",instrumentationFilterA11y:"Filter instrumentation record type",instrumentationDetailsA11y:"Instrumentation record details",toggleSessionPanelA11y:"Toggle session panel",toggleEventPanelA11y:"Toggle event broadcast panel",toggleDatabasePanelA11y:"Toggle database state panel",toggleInstrumentationPanelA11y:"Toggle instrumentation panel",pnp:{title:"PNP Profile",noAssessmentBound:"No assessment bound",determinationReadOnly:"Determination (read-only)",toolsEditor:"Tools Editor",enforcement:"PNP enforcement",allAvailableTools:"All available tools",clearPlacement:"Clear placement",tool:"Tool",placement:"Placement",provider:"Provider",simulation:"PNP simulation",resolvedTools:"Resolved Tools (toolkit)",provenanceSummary:"Tool Policy Provenance Summary",perToolDecisions:"Per-Tool Decisions",profileReadOnly:"PNP Profile (read-only)"},tts:{title:"TTS settings",closeA11y:"Close TTS settings",toolbarLayoutMode:"Toolbar layout mode",reservedRow:"Reserved row",expandingRow:"Expanding row",floatingOverlay:"Floating overlay",leftAlignedControls:"Left-aligned controls",inlineSpeedButtons:"Inline speed buttons",resetToDefaults:"Reset to defaults",mathHighlighting:"Math highlighting",checkingAvailability:"Checking availability…",recheck:"Recheck",voice:"Voice",bestAvailableVoice:"Best available voice (auto)",unnamedVoice:"Unnamed voice",apiEndpoint:"API endpoint",gender:"Gender",any:"Any",male:"Male",female:"Female",neutral:"Neutral",engine:"Engine",neural:"Neural",standard:"Standard",providerDefault:"Provider default",format:"Format",sampleRate:"Sample rate",speechMarks:"Speech marks",word:"Word",wordAndSentence:"Word + sentence",voiceType:"Voice type",wavenetVoiceType:"WaveNet",studioVoiceType:"Studio",plainText:"Plain text",sampleText:"Sample text",resetSample:"Reset sample",providerAvailable:"Provider available.",providerUnavailable:"Provider unavailable.",providerCheckFailed:"Provider availability check failed.",providerNotChecked:"Provider availability has not been checked yet.",webSpeechUnavailable:"Web Speech API is not available in this browser.",browserNoVoices:"Browser text-to-speech is available, but no voices were returned yet.",browserUnavailable:"Browser text-to-speech is not available.",googleUnavailable:"Google Cloud TTS is not available from the configured API.",pollyUnavailable:"AWS Polly is not available from the configured API.",recommendedVoices:"Recommended voices",allVoices:"All available voices",previewVoice:"Preview voice",stopPreview:"Stop preview",applying:"Applying…",ssmlPreviewUnsupported:"SSML preview is not supported in the Browser backend.",pollySsmlHint:"Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails.",mathHighlightParts:"Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain.",mathHighlightBlock:"Highlighting each formula as a single block instead of breaking it into parts.",previewFailed:"Failed to play preview audio.",previewNoAudio:"Preview response did not include audio content.",previewEnterText:"Enter preview text before starting playback.",previewUnavailable:"Cannot preview while this service is unavailable.",browserSynthesisUnavailable:"Browser speech synthesis is unavailable.",browserSynthesisEndedEarly:"Browser speech synthesis ended before audio started. Restart the browser and try again.",browserSynthesisQueueFailed:"Browser speech synthesis failed to queue preview audio.",browserPreviewFailed:"Failed to play browser voice preview.",ssmlWordTrackingDisabled:"Google SSML preview preserves authored SSML, so word tracking is disabled.",applyUnavailable:"Cannot apply settings while this service is unavailable.",coordinatorUnavailable:"Toolkit coordinator is not available for text-to-speech updates."}}},d="en-US";function T(o){return o}var b=new Set(["ar","ckb","dv","fa","he","iw","ks","ku","nqo","ps","sd","syr","ug","ur","yi"]),A=new Set(["zero","one","two","few","many","other"]);function g(o){if(typeof o!="object"||o===null)return!1;const t=Object.keys(o);return t.length>0&&t.every(e=>A.has(e))}function h(o){try{const e=new Intl.Locale(o).textInfo;if(e?.direction==="rtl"||e?.direction==="ltr")return e.direction}catch{}const t=r(o).split("-")[0]??"";return b.has(t)?"rtl":"ltr"}var m=class c{constructor(t={}){s(this,"locale",void 0),s(this,"fallbackLocale",void 0),s(this,"catalogs",void 0),s(this,"customMessages",void 0),s(this,"loading",void 0),s(this,"listeners",new Set),s(this,"config",void 0),this.config={...t},this.fallbackLocale=l(t.fallbackLocale)||"en-US",this.catalogs=new Map([[d,f]]),this.customMessages={...t.customMessages??{}},this.loading=new Map,this.locale=this.resolveLocaleTag(t.locale)??"en-US"}async initialize(t){if(this.config={...this.config,...t},t.customMessages)for(const[e,i]of Object.entries(t.customMessages))this.addCustomMessages(e,i);await this.setLocale(t.locale??this.locale)}getLocale(){return this.locale}async setLocale(t){const e=this.resolveLocaleTag(t);if(!e){this.locale=l(t)||"en-US",this.notify();return}if(!this.catalogs.has(e)){const i=this.loading.get(e);if(i)await i;else{const a=this.loadCatalog(e);this.loading.set(e,a);try{await a}finally{this.loading.delete(e)}}}this.locale=e,this.notify()}t(t,e){const i=this.lookup(t);return i===void 0?(this.config.onMissingKey?.(t,this.locale),t):p(i,e)}plural(t,e){const i=this.lookupNode(t);return i===void 0||!g(i)?this.t(t,e):p(i[this.selectPluralCategory(e.count)]??i.other,e)}getDirection(){return h(this.locale)}getAvailableLocales(){return[...new Set([...this.catalogs.keys(),...this.config.availableLocales??[],...Object.keys(this.customMessages)])]}isLocaleLoaded(t){const e=this.resolveLocaleTag(t);return e!==void 0&&this.catalogs.has(e)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}hasKey(t){return this.lookup(t)!==void 0}addCustomMessages(t,e){const i=l(t);this.customMessages[i]=y(this.customMessages[i]??{},e),this.notify()}withLocale(t){const e=this.resolveLocaleTag(t)??l(t);if(e===this.locale)return this;const i=new c({...this.config,locale:e});return i.locale=e||"en-US",i.catalogs=this.catalogs,i.customMessages=this.customMessages,i.loading=this.loading,i}formatNumber(t,e){try{return new Intl.NumberFormat(this.locale,e).format(t)}catch{return new Intl.NumberFormat(d,e).format(t)}}formatDate(t,e){try{return new Intl.DateTimeFormat(this.locale,e).format(t)}catch{return new Intl.DateTimeFormat(d,e).format(t)}}getBundle(t=this.locale){const e=this.resolveLocaleTag(t);if(!e)return;const i=this.catalogs.get(e);if(i)return{locale:e,translations:i,direction:h(e)}}resolveLocaleTag(t){if(!t)return;const e=this.getAvailableLocales(),i=v(t,e);if(i)return i;const a=r(t).split("-")[0];if(a)return e.find(n=>r(n).split("-")[0]===a)}async loadCatalog(t){const e=this.config.loadCatalog;if(e)try{this.catalogs.set(t,await e(t))}catch(i){throw new Error(`Failed to load i18n catalog for locale: ${t}`,{cause:i})}}lookupNode(t){const e=[this.customMessages[this.locale],this.catalogs.get(this.locale),this.customMessages[this.fallbackLocale],this.catalogs.get(this.fallbackLocale)];for(const i of e){const a=S(i,t);if(a!==void 0)return a}}lookup(t){const e=this.lookupNode(t);if(typeof e=="string")return e;if(e!==void 0&&g(e))return e.other}selectPluralCategory(t){let e=c.pluralRules.get(this.locale);if(!e){try{e=new Intl.PluralRules(this.locale)}catch{return t===1?"one":"other"}c.pluralRules.set(this.locale,e)}return e.select(t)}notify(){for(const t of this.listeners)t()}};s(m,"pluralRules",new Map);function l(o){return o?o.trim().replace(/_/g,"-"):""}function S(o,t){if(!o)return;let e=o;for(const i of t.split("."))if(typeof e!="object"||e===null||(e=e[i],e===void 0))return;return e}function p(o,t){return t?o.replace(/\{(\w+)\}/g,(e,i)=>{const a=t[i];return a==null?e:String(a)}):o}function y(o,t){const e={...o};for(const[i,a]of Object.entries(t)){const n=e[i];a&&typeof a=="object"&&n&&typeof n=="object"?e[i]=y(n,a):e[i]=a}return e}var u;function k(){return u||(u=new m),u}function L(o){const t=o?.i18n??k();return{getLocale:()=>t.getLocale(),setLocale:e=>t.setLocale(e),t:(e,i)=>t.t(e,i),plural:(e,i)=>t.plural?.(e,i)??t.t(e,i),getDirection:()=>t.getDirection?.()??"ltr",hasKey:e=>t.hasKey?.(e)??!1,subscribe:e=>t.subscribe?.(e)??(()=>{})}}export{w as a,L as i,m as n,r as o,T as r,d as t};
@@ -0,0 +1 @@
1
+ var f=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,v=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,O=(e,r)=>()=>(r||(e((r={exports:{}}).exports,r),e=null),r.exports),b=(e,r)=>{let t={};for(var a in e)o(t,a,{get:e[a],enumerable:!0});return r||o(t,Symbol.toStringTag,{value:"Module"}),t},g=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(var i=c(r),u=0,p=i.length,n;u<p;u++)n=i[u],!l.call(e,n)&&n!==t&&o(e,n,{get:(_=>r[_]).bind(null,n),enumerable:!(a=s(r,n))||a.enumerable});return e},P=(e,r,t)=>(t=e!=null?f(v(e)):{},g(r||!e||!e.__esModule||!l.call(e,"default")?o(t,"default",{value:e,enumerable:!0}):t,e)),d=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});export{P as i,b as n,d as r,O as t};