From 7b0b3d043bc7e482a9420a1f4162c8a02dfc48c1 Mon Sep 17 00:00:00 2001 From: ci-doc-deploy-bot Date: Mon, 22 Jan 2024 20:01:23 +0000 Subject: [PATCH] [skip ci] docs build of fd73d140430c07e49b99a34ae1355bda419b7f0e --- _sources/content/mooreslaw-tutorial.ipynb | 90 +++++----- _sources/content/pairing.ipynb | 6 +- _sources/content/save-load-arrays.ipynb | 50 +++--- .../tutorial-air-quality-analysis.ipynb | 78 ++++---- .../tutorial-deep-learning-on-mnist.ipynb | 127 +++++-------- ...ement-learning-with-pong-from-pixels.ipynb | 2 +- _sources/content/tutorial-ma.ipynb | 98 +++++----- .../content/tutorial-plotting-fractals.ipynb | 156 ++++++++-------- .../content/tutorial-static_equilibrium.ipynb | 62 +++---- _sources/content/tutorial-style-guide.ipynb | 10 +- _sources/content/tutorial-svd.ipynb | 168 +++++++++--------- .../tutorial-x-ray-image-processing.ipynb | 122 ++++++------- _static/scripts/bootstrap.js | 2 +- _static/scripts/bootstrap.js.map | 2 +- _static/scripts/pydata-sphinx-theme.js | 2 +- _static/scripts/pydata-sphinx-theme.js.map | 2 +- _static/styles/pydata-sphinx-theme.css | 2 +- _static/styles/pydata-sphinx-theme.css.map | 2 +- _static/webpack-macros.html | 18 +- applications.html | 26 ++- articles.html | 26 ++- content/mooreslaw-tutorial.html | 28 ++- content/pairing.html | 26 ++- content/save-load-arrays.html | 26 ++- content/tutorial-air-quality-analysis.html | 28 ++- content/tutorial-deep-learning-on-mnist.html | 40 ++--- ...cement-learning-with-pong-from-pixels.html | 26 ++- content/tutorial-ma.html | 28 ++- content/tutorial-nlp-from-scratch.html | 26 ++- content/tutorial-plotting-fractals.html | 26 ++- content/tutorial-static_equilibrium.html | 26 ++- content/tutorial-style-guide.html | 26 ++- content/tutorial-svd.html | 28 ++- content/tutorial-x-ray-image-processing.html | 26 ++- contributing.html | 26 ++- features.html | 26 ++- genindex.html | 26 ++- index.html | 26 ++- search.html | 26 ++- searchindex.js | 2 +- 40 files changed, 710 insertions(+), 833 deletions(-) diff --git a/_sources/content/mooreslaw-tutorial.ipynb b/_sources/content/mooreslaw-tutorial.ipynb index ce026a43..cec13cf2 100644 --- a/_sources/content/mooreslaw-tutorial.ipynb +++ b/_sources/content/mooreslaw-tutorial.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "c712ce2a", + "id": "3e73cdb9", "metadata": {}, "source": [ "# Determining Moore's Law with real data in NumPy\n", @@ -45,7 +45,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "61a07442", + "id": "5685196f", "metadata": {}, "outputs": [], "source": [ @@ -55,7 +55,7 @@ }, { "cell_type": "markdown", - "id": "bd2487f1", + "id": "a8f2f71e", "metadata": {}, "source": [ "**2.** Since this is an exponential growth law you need a little background in doing math with [natural logs](https://en.wikipedia.org/wiki/Natural_logarithm) and [exponentials](https://en.wikipedia.org/wiki/Exponential_function).\n", @@ -77,7 +77,7 @@ }, { "cell_type": "markdown", - "id": "c64eab2a", + "id": "8e71ceea", "metadata": {}, "source": [ "---\n", @@ -123,7 +123,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "9191e287", + "id": "ac6cfad0", "metadata": {}, "outputs": [], "source": [ @@ -134,7 +134,7 @@ }, { "cell_type": "markdown", - "id": "3c3c0b9b", + "id": "3a107b2f", "metadata": {}, "source": [ "In 1971, there were 2250 transistors on the Intel 4004 chip. Use\n", @@ -145,7 +145,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "88e30d45", + "id": "b279f219", "metadata": {}, "outputs": [ { @@ -166,7 +166,7 @@ }, { "cell_type": "markdown", - "id": "4021c3d1", + "id": "04cf1b38", "metadata": {}, "source": [ "## Loading historical manufacturing data to your workspace\n", @@ -190,7 +190,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "f450e300", + "id": "82aa0a65", "metadata": {}, "outputs": [ { @@ -216,7 +216,7 @@ }, { "cell_type": "markdown", - "id": "0e795c3e", + "id": "6e248e73", "metadata": {}, "source": [ "You don't need the columns that specify __Processor__, __Designer__,\n", @@ -235,7 +235,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "a1913179", + "id": "4b8cd672", "metadata": {}, "outputs": [], "source": [ @@ -244,7 +244,7 @@ }, { "cell_type": "markdown", - "id": "1d726951", + "id": "1d80a7ab", "metadata": {}, "source": [ "You loaded the entire history of semiconducting into a NumPy array named\n", @@ -261,7 +261,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "e7bbf1a9", + "id": "af4e3726", "metadata": {}, "outputs": [ { @@ -283,7 +283,7 @@ }, { "cell_type": "markdown", - "id": "c534d1ad", + "id": "510f6a83", "metadata": {}, "source": [ "You are creating a function that predicts the transistor count given a\n", @@ -301,7 +301,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "b7b5cd52", + "id": "8cb733b5", "metadata": {}, "outputs": [], "source": [ @@ -310,7 +310,7 @@ }, { "cell_type": "markdown", - "id": "e66961b9", + "id": "1284b83d", "metadata": {}, "source": [ "## Calculating the historical growth curve for transistors\n", @@ -339,7 +339,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "29712231", + "id": "d2f334ca", "metadata": {}, "outputs": [], "source": [ @@ -348,7 +348,7 @@ }, { "cell_type": "markdown", - "id": "e836c64d", + "id": "cdf0a91c", "metadata": {}, "source": [ "By default, `Polynomial.fit` performs the fit in the domain determined by the\n", @@ -360,7 +360,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "c442f4b5", + "id": "a6322a5c", "metadata": {}, "outputs": [ { @@ -384,7 +384,7 @@ }, { "cell_type": "markdown", - "id": "df2686cb", + "id": "05eb5d4a", "metadata": {}, "source": [ "The individual parameters $A$ and $B$ are the coefficients of our linear model:" @@ -393,7 +393,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "124af113", + "id": "bdaef6f4", "metadata": {}, "outputs": [], "source": [ @@ -402,7 +402,7 @@ }, { "cell_type": "markdown", - "id": "87d9f449", + "id": "337be84e", "metadata": {}, "source": [ "Did manufacturers double the transistor count every two years? You have\n", @@ -418,7 +418,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "da908aa0", + "id": "108b5033", "metadata": {}, "outputs": [ { @@ -435,7 +435,7 @@ }, { "cell_type": "markdown", - "id": "cac1adbd", + "id": "f6d9175e", "metadata": {}, "source": [ "Based upon your least-squares regression model, the number of\n", @@ -466,7 +466,7 @@ }, { "cell_type": "markdown", - "id": "1fdd5951", + "id": "973c1361", "metadata": {}, "source": [ "In the next plot, use the\n", @@ -480,7 +480,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "add34d85", + "id": "a819e7b8", "metadata": {}, "outputs": [ { @@ -525,7 +525,7 @@ }, { "cell_type": "markdown", - "id": "dbfcf70c", + "id": "82ff0db4", "metadata": {}, "source": [ "_A scatter plot of MOS transistor count per microprocessor every two years with a red line for the ordinary least squares prediction and an orange line for Moore's law._\n", @@ -564,7 +564,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "c927ab4d", + "id": "deea333e", "metadata": {}, "outputs": [ { @@ -577,7 +577,7 @@ { "data": { "text/plain": [ - "" + "" ] }, "execution_count": 13, @@ -621,7 +621,7 @@ }, { "cell_type": "markdown", - "id": "ddd92a1b", + "id": "ddbe30ef", "metadata": {}, "source": [ "The result is that your model is close to the mean, but Gordon\n", @@ -638,7 +638,7 @@ }, { "cell_type": "markdown", - "id": "6d436498", + "id": "59b1d208", "metadata": {}, "source": [ "## Sharing your results as zipped arrays and a csv\n", @@ -663,7 +663,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "e1444bb5", + "id": "d68484fe", "metadata": {}, "outputs": [ { @@ -697,7 +697,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "01880075", + "id": "b36cdb55", "metadata": {}, "outputs": [], "source": [ @@ -715,7 +715,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "f25ae8ae", + "id": "a7d0bd3b", "metadata": {}, "outputs": [], "source": [ @@ -725,7 +725,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "35027e62", + "id": "9057baa4", "metadata": {}, "outputs": [ { @@ -743,7 +743,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "b2438031", + "id": "fcc028d4", "metadata": {}, "outputs": [ { @@ -783,7 +783,7 @@ }, { "cell_type": "markdown", - "id": "07dd40ff", + "id": "d5b6537c", "metadata": {}, "source": [ "The benefit of `np.savez` is you can save hundreds of arrays with\n", @@ -811,7 +811,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "f06e3b1d", + "id": "333aa14d", "metadata": {}, "outputs": [ { @@ -844,7 +844,7 @@ }, { "cell_type": "markdown", - "id": "a2825c8e", + "id": "525170b2", "metadata": {}, "source": [ "Build a single 2D array to export to csv. Tabular data is inherently two\n", @@ -870,7 +870,7 @@ { "cell_type": "code", "execution_count": 20, - "id": "bfb69635", + "id": "e75086ce", "metadata": {}, "outputs": [], "source": [ @@ -886,7 +886,7 @@ }, { "cell_type": "markdown", - "id": "cedd668f", + "id": "c76f1228", "metadata": {}, "source": [ "Creating the `mooreslaw_regression.csv` with `np.savetxt`, use three\n", @@ -900,7 +900,7 @@ { "cell_type": "code", "execution_count": 21, - "id": "2daffa4f", + "id": "ec598f31", "metadata": {}, "outputs": [], "source": [ @@ -910,7 +910,7 @@ { "cell_type": "code", "execution_count": 22, - "id": "75c89f30", + "id": "75fb37b1", "metadata": {}, "outputs": [ { @@ -936,7 +936,7 @@ }, { "cell_type": "markdown", - "id": "7d46a515", + "id": "5be5bc9a", "metadata": {}, "source": [ "## Wrapping up\n", @@ -960,7 +960,7 @@ }, { "cell_type": "markdown", - "id": "53d1db49", + "id": "27107e3d", "metadata": {}, "source": [ "## References\n", diff --git a/_sources/content/pairing.ipynb b/_sources/content/pairing.ipynb index 9024f05c..da9d7c89 100644 --- a/_sources/content/pairing.ipynb +++ b/_sources/content/pairing.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "e693fad3", + "id": "0b3dee16", "metadata": {}, "source": [ "# Pairing Jupyter notebooks and MyST-NB\n", @@ -76,7 +76,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "60564c23", + "id": "4add3eed", "metadata": {}, "outputs": [ { @@ -94,7 +94,7 @@ }, { "cell_type": "markdown", - "id": "e3f6a8e3", + "id": "b0ef941e", "metadata": {}, "source": [ "---\n", diff --git a/_sources/content/save-load-arrays.ipynb b/_sources/content/save-load-arrays.ipynb index 9cd6635a..8bd471e5 100644 --- a/_sources/content/save-load-arrays.ipynb +++ b/_sources/content/save-load-arrays.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "616d4bd0", + "id": "896aa5da", "metadata": {}, "source": [ "# Saving and sharing your NumPy arrays\n", @@ -37,7 +37,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "61fb39cb", + "id": "19e14d66", "metadata": {}, "outputs": [], "source": [ @@ -46,7 +46,7 @@ }, { "cell_type": "markdown", - "id": "bcbfa167", + "id": "27fdb3b6", "metadata": {}, "source": [ "In this tutorial, you will use the following Python, IPython magic, and NumPy functions:\n", @@ -64,7 +64,7 @@ }, { "cell_type": "markdown", - "id": "9eba48f0", + "id": "3549bf9e", "metadata": {}, "source": [ "---\n", @@ -81,7 +81,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "6f48f1fe", + "id": "e7637a07", "metadata": {}, "outputs": [ { @@ -102,7 +102,7 @@ }, { "cell_type": "markdown", - "id": "2272a0e1", + "id": "757ff679", "metadata": {}, "source": [ "## Save your arrays with NumPy's [`savez`](https://numpy.org/doc/stable/reference/generated/numpy.savez.html?highlight=savez#numpy.savez)\n", @@ -125,7 +125,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "55460ba6", + "id": "c7e877ff", "metadata": {}, "outputs": [], "source": [ @@ -134,7 +134,7 @@ }, { "cell_type": "markdown", - "id": "75d8daf5", + "id": "b635f3c5", "metadata": {}, "source": [ "## Remove the saved arrays and load them back with NumPy's [`load`](https://numpy.org/doc/stable/reference/generated/numpy.load.html#numpy.load)\n", @@ -159,7 +159,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "d66163d1", + "id": "2730d1a9", "metadata": {}, "outputs": [], "source": [ @@ -169,7 +169,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "2f43881d", + "id": "d14838f5", "metadata": {}, "outputs": [ { @@ -189,7 +189,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "43e7704c", + "id": "9b87644b", "metadata": {}, "outputs": [ { @@ -209,7 +209,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "a027acf0", + "id": "8c6f2560", "metadata": {}, "outputs": [ { @@ -229,7 +229,7 @@ }, { "cell_type": "markdown", - "id": "5fae6bcd", + "id": "555b10eb", "metadata": {}, "source": [ "## Reassign the NpzFile arrays to `x` and `y`\n", @@ -242,7 +242,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "f293acac", + "id": "f31df649", "metadata": {}, "outputs": [ { @@ -263,7 +263,7 @@ }, { "cell_type": "markdown", - "id": "b93efba4", + "id": "f7549957", "metadata": {}, "source": [ "## Success\n", @@ -294,7 +294,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "51b98888", + "id": "69cb2a08", "metadata": {}, "outputs": [ { @@ -323,7 +323,7 @@ }, { "cell_type": "markdown", - "id": "6ef33614", + "id": "e264d250", "metadata": {}, "source": [ "## Save the data to csv file using [`savetxt`](https://numpy.org/doc/stable/reference/generated/numpy.savetxt.html#numpy.savetxt)\n", @@ -338,7 +338,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "c0a12200", + "id": "e8da8648", "metadata": {}, "outputs": [], "source": [ @@ -347,7 +347,7 @@ }, { "cell_type": "markdown", - "id": "d884106b", + "id": "9d53ede6", "metadata": {}, "source": [ "Open the file, `x_y-squared.csv`, and you'll see the following:\n", @@ -387,7 +387,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "d1366d41", + "id": "3a8878c2", "metadata": {}, "outputs": [], "source": [ @@ -397,7 +397,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "a4e6abe8", + "id": "b4b71d87", "metadata": {}, "outputs": [], "source": [ @@ -407,7 +407,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "6874dea2", + "id": "8cb66d94", "metadata": {}, "outputs": [ { @@ -428,7 +428,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "9b3f1512", + "id": "12171f4d", "metadata": {}, "outputs": [ { @@ -449,7 +449,7 @@ }, { "cell_type": "markdown", - "id": "cf05c65f", + "id": "c364bceb", "metadata": {}, "source": [ "## Success, but remember your types\n", @@ -460,7 +460,7 @@ }, { "cell_type": "markdown", - "id": "761ea7f3", + "id": "ba80dfca", "metadata": {}, "source": [ "## Wrapping up\n", diff --git a/_sources/content/tutorial-air-quality-analysis.ipynb b/_sources/content/tutorial-air-quality-analysis.ipynb index d804d888..5e4ab37a 100644 --- a/_sources/content/tutorial-air-quality-analysis.ipynb +++ b/_sources/content/tutorial-air-quality-analysis.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "d8d1fd00", + "id": "89ec63b5", "metadata": {}, "source": [ "# Analyzing the impact of the lockdown on air quality in Delhi, India\n", @@ -36,7 +36,7 @@ }, { "cell_type": "markdown", - "id": "e62b2004", + "id": "4f257b98", "metadata": {}, "source": [ "## The problem of air pollution\n", @@ -54,7 +54,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "02697868", + "id": "cb9af9e3", "metadata": {}, "outputs": [], "source": [ @@ -65,7 +65,7 @@ }, { "cell_type": "markdown", - "id": "b1764662", + "id": "c8f15ec7", "metadata": {}, "source": [ "## Building the dataset\n", @@ -80,7 +80,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "fa2ccd80", + "id": "d05b4203", "metadata": {}, "outputs": [ { @@ -106,7 +106,7 @@ }, { "cell_type": "markdown", - "id": "dd84f65c", + "id": "d5e79677", "metadata": {}, "source": [ "For the purpose of this tutorial, we are only concerned with standard pollutants required for calculating the AQI, viz., PM 2.5, PM 10, NO2, NH3, SO2, CO, and O3. So, we will only import these particular columns with [np.loadtxt](https://numpy.org/devdocs/reference/generated/numpy.loadtxt.html). We'll then [slice](https://numpy.org/devdocs/glossary.html#term-0) and create two sets: `pollutants_A` with PM 2.5, PM 10, NO2, NH3, and SO2, and `pollutants_B` with CO and O3. The\n", @@ -116,7 +116,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "7ed88343", + "id": "4526da5d", "metadata": {}, "outputs": [ { @@ -140,7 +140,7 @@ }, { "cell_type": "markdown", - "id": "a5304885", + "id": "847645f6", "metadata": {}, "source": [ "Our dataset might contain missing values, denoted by `NaN`, so let's do a quick check with [np.isfinite](https://numpy.org/devdocs/reference/generated/numpy.isfinite.html)." @@ -149,7 +149,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "01077bbc", + "id": "1416ca66", "metadata": {}, "outputs": [ { @@ -169,7 +169,7 @@ }, { "cell_type": "markdown", - "id": "aa842f26", + "id": "d7e392e7", "metadata": {}, "source": [ "With this, we have successfully imported the data and checked that it is complete. Let's move on to the AQI calculations!" @@ -177,7 +177,7 @@ }, { "cell_type": "markdown", - "id": "75ab0950", + "id": "a977df7a", "metadata": {}, "source": [ "## Calculating the Air Quality Index\n", @@ -219,7 +219,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "ddb0483b", + "id": "b8534ce4", "metadata": {}, "outputs": [], "source": [ @@ -238,7 +238,7 @@ }, { "cell_type": "markdown", - "id": "8d948fae", + "id": "eeb309eb", "metadata": {}, "source": [ "### Moving averages\n", @@ -253,7 +253,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "1de6871e", + "id": "9d149f59", "metadata": {}, "outputs": [], "source": [ @@ -268,7 +268,7 @@ }, { "cell_type": "markdown", - "id": "7b6c3087", + "id": "774f78c0", "metadata": {}, "source": [ "Now, we can join both sets with [np.concatenate](https://numpy.org/devdocs/reference/generated/numpy.concatenate.html) to form a single data set of all the averaged concentrations. Note that we have to join our arrays column-wise so we pass the\n", @@ -278,7 +278,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "8aa483fd", + "id": "c6db6dd1", "metadata": {}, "outputs": [], "source": [ @@ -287,7 +287,7 @@ }, { "cell_type": "markdown", - "id": "a91f8897", + "id": "ac54be33", "metadata": {}, "source": [ "### Sub-indices\n", @@ -304,7 +304,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "7889eb17", + "id": "ae328d49", "metadata": {}, "outputs": [], "source": [ @@ -360,7 +360,7 @@ }, { "cell_type": "markdown", - "id": "0cf07ec4", + "id": "25ccb2ba", "metadata": {}, "source": [ "We will use [np.vectorize](https://numpy.org/devdocs/reference/generated/numpy.vectorize.html) to utilize the concept of vectorization. This simply means we don't have loop over each element of the pollutant array ourselves. [Vectorization](https://numpy.org/devdocs/user/whatisnumpy.html#why-is-numpy-fast) is one of the key advantages of NumPy." @@ -369,7 +369,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "c2a3fa86", + "id": "654af56d", "metadata": {}, "outputs": [], "source": [ @@ -378,7 +378,7 @@ }, { "cell_type": "markdown", - "id": "70bc4379", + "id": "7c722562", "metadata": {}, "source": [ "By calling our vectorized function `vcompute_indices` for each pollutant, we get the sub-indices. To get back an array with the original shape, we use [np.stack](https://numpy.org/devdocs/reference/generated/numpy.stack.html)." @@ -387,7 +387,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "7599e078", + "id": "61b8f203", "metadata": {}, "outputs": [], "source": [ @@ -402,7 +402,7 @@ }, { "cell_type": "markdown", - "id": "fbfc9681", + "id": "03ed866c", "metadata": {}, "source": [ "### Air quality indices\n", @@ -413,7 +413,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "d03354bb", + "id": "d29d9a10", "metadata": {}, "outputs": [], "source": [ @@ -422,7 +422,7 @@ }, { "cell_type": "markdown", - "id": "6fd74279", + "id": "d96c9f95", "metadata": {}, "source": [ "With this, we have the AQI for every hour from June 1, 2019 to June 30, 2020. Note that even though we started out with\n", @@ -431,7 +431,7 @@ }, { "cell_type": "markdown", - "id": "c9486a3a", + "id": "49c55d6b", "metadata": {}, "source": [ "## Paired Student's t-test on the AQIs\n", @@ -448,7 +448,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "0dcb31b2", + "id": "9b00aad8", "metadata": {}, "outputs": [], "source": [ @@ -458,7 +458,7 @@ }, { "cell_type": "markdown", - "id": "b1db690f", + "id": "664e4a07", "metadata": {}, "source": [ "Since total lockdown commenced in Delhi from March 24, 2020, the after-lockdown subset is of the period March 24, 2020 to June 30, 2020. The before-lockdown subset is for the same length of time before 24th March." @@ -467,7 +467,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "740c3e0b", + "id": "8af4dd31", "metadata": {}, "outputs": [ { @@ -490,7 +490,7 @@ }, { "cell_type": "markdown", - "id": "204ea335", + "id": "4f595988", "metadata": {}, "source": [ "To make sure our samples are *approximately* normally distributed, we take samples of size `n = 30`. `before_sample` and `after_sample` are the set of random observations drawn before and after the total lockdown. We use [random.Generator.choice](https://numpy.org/devdocs/reference/random/generated/numpy.random.Generator.choice.html) to generate the samples." @@ -499,7 +499,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "2b07cf40", + "id": "2c3c108b", "metadata": {}, "outputs": [], "source": [ @@ -511,7 +511,7 @@ }, { "cell_type": "markdown", - "id": "7722e3f2", + "id": "2291cf7b", "metadata": {}, "source": [ "### Defining the hypothesis\n", @@ -524,7 +524,7 @@ }, { "cell_type": "markdown", - "id": "675ff0cf", + "id": "b5549bcb", "metadata": {}, "source": [ "### Calculating the test statistics\n", @@ -545,7 +545,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "28703caa", + "id": "1e73ae8d", "metadata": {}, "outputs": [], "source": [ @@ -561,7 +561,7 @@ }, { "cell_type": "markdown", - "id": "f79dd023", + "id": "821f975e", "metadata": {}, "source": [ "For the `p` value, we will use SciPy's `stats.distributions.t.cdf()` function. It takes two arguments- the `t statistic` and the degrees of freedom (`dof`). The formula for `dof` is `n - 1`." @@ -570,14 +570,14 @@ { "cell_type": "code", "execution_count": 16, - "id": "ab39a449", + "id": "970c520f", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "The t value is -6.276258786852856 and the p value is 3.7429825381133657e-07.\n" + "The t value is -5.84285569186369 and the p value is 1.2266697972219608e-06.\n" ] } ], @@ -591,7 +591,7 @@ }, { "cell_type": "markdown", - "id": "c82daa2f", + "id": "19a7ee87", "metadata": {}, "source": [ "## What do the `t` and `p` values mean?\n", @@ -609,7 +609,7 @@ }, { "cell_type": "markdown", - "id": "fd0110e5", + "id": "be201240", "metadata": {}, "source": [ "***\n", diff --git a/_sources/content/tutorial-deep-learning-on-mnist.ipynb b/_sources/content/tutorial-deep-learning-on-mnist.ipynb index 3e697a93..e40fbc4d 100644 --- a/_sources/content/tutorial-deep-learning-on-mnist.ipynb +++ b/_sources/content/tutorial-deep-learning-on-mnist.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "136c8218", + "id": "6f873eab", "metadata": {}, "source": [ "# Deep learning on MNIST\n", @@ -64,7 +64,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "ed68efbc", + "id": "13bf1695", "metadata": {}, "outputs": [], "source": [ @@ -78,7 +78,7 @@ }, { "cell_type": "markdown", - "id": "4afdc993", + "id": "6da3f310", "metadata": {}, "source": [ "**2.** Load the data. First check if the data is stored locally; if not, then\n", @@ -88,7 +88,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "0020e120", + "id": "d30709e0", "metadata": { "tags": [ "remove-cell" @@ -110,38 +110,9 @@ { "cell_type": "code", "execution_count": 3, - "id": "47efeef8", + "id": "2cc87bf6", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Downloading file: train-images-idx3-ubyte.gz\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Downloading file: t10k-images-idx3-ubyte.gz\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Downloading file: train-labels-idx1-ubyte.gz\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Downloading file: t10k-labels-idx1-ubyte.gz\n" - ] - } - ], + "outputs": [], "source": [ "import requests\n", "import os\n", @@ -164,7 +135,7 @@ }, { "cell_type": "markdown", - "id": "5e1476c1", + "id": "13d0c605", "metadata": {}, "source": [ "**3.** Decompress the 4 files and create 4 [`ndarrays`](https://numpy.org/doc/stable/reference/arrays.ndarray.html), saving them into a dictionary. Each original image is of size 28x28 and neural networks normally expect a 1D vector input; therefore, you also need to reshape the images by multiplying 28 by 28 (784)." @@ -173,7 +144,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "848d6e2c", + "id": "9f0079ce", "metadata": {}, "outputs": [], "source": [ @@ -196,7 +167,7 @@ }, { "cell_type": "markdown", - "id": "ec03289e", + "id": "35e2c5fb", "metadata": {}, "source": [ "**4.** Split the data into training and test sets using the standard notation of `x` for data and `y` for labels, calling the training and test set images `x_train` and `x_test`, and the labels `y_train` and `y_test`:" @@ -205,7 +176,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "4fe7faae", + "id": "9f3d3282", "metadata": {}, "outputs": [], "source": [ @@ -219,7 +190,7 @@ }, { "cell_type": "markdown", - "id": "37919806", + "id": "1d0b498d", "metadata": {}, "source": [ "**5.** You can confirm that the shape of the image arrays is `(60000, 784)` and `(10000, 784)` for training and test sets, respectively, and the labels — `(60000,)` and `(10000,)`:" @@ -228,7 +199,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "f884ab92", + "id": "604bbd6c", "metadata": {}, "outputs": [ { @@ -255,7 +226,7 @@ }, { "cell_type": "markdown", - "id": "bd209a21", + "id": "625b412f", "metadata": {}, "source": [ "**6.** And you can inspect some images using Matplotlib:" @@ -264,7 +235,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "2326f9b3", + "id": "cf6612fa", "metadata": {}, "outputs": [ { @@ -293,7 +264,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "0955a8f1", + "id": "8fbe137e", "metadata": {}, "outputs": [ { @@ -320,7 +291,7 @@ }, { "cell_type": "markdown", - "id": "4bbd59e1", + "id": "e933f2ba", "metadata": {}, "source": [ "_Above are five images taken from the MNIST training set. Various hand-drawn\n", @@ -341,7 +312,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "39abf095", + "id": "2cc15c7c", "metadata": {}, "outputs": [ { @@ -362,7 +333,7 @@ }, { "cell_type": "markdown", - "id": "f78c89e7", + "id": "47bc60cf", "metadata": {}, "source": [ "## 2. Preprocess the data\n", @@ -388,7 +359,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "452c58e1", + "id": "5664f70a", "metadata": {}, "outputs": [ { @@ -407,7 +378,7 @@ }, { "cell_type": "markdown", - "id": "01a96e39", + "id": "91518c96", "metadata": {}, "source": [ "**2.** Normalize the arrays by dividing them by 255 (and thus promoting the data type from `uint8` to `float64`) and then assign the train and test image data variables — `x_train` and `x_test` — to `training_images` and `train_labels`, respectively.\n", @@ -422,7 +393,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "7477bfd7", + "id": "1b7aa385", "metadata": {}, "outputs": [], "source": [ @@ -433,7 +404,7 @@ }, { "cell_type": "markdown", - "id": "9516e186", + "id": "6ad3dcda", "metadata": {}, "source": [ "**3.** Confirm that the image data has changed to the floating-point format:" @@ -442,7 +413,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "6c6df63d", + "id": "4707efd0", "metadata": {}, "outputs": [ { @@ -461,7 +432,7 @@ }, { "cell_type": "markdown", - "id": "2b478431", + "id": "1f3d5b47", "metadata": {}, "source": [ "> **Note:** You can also check that normalization was successful by printing `training_images[0]` in a notebook cell. Your long output should contain an array of floating-point numbers:\n", @@ -490,7 +461,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "11c2eee8", + "id": "bf8ae9dc", "metadata": {}, "outputs": [ { @@ -509,7 +480,7 @@ }, { "cell_type": "markdown", - "id": "8c4bab7b", + "id": "439432dc", "metadata": {}, "source": [ "**2.** Define a function that performs one-hot encoding on arrays:" @@ -518,7 +489,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "e67b8004", + "id": "b960cdd6", "metadata": {}, "outputs": [], "source": [ @@ -532,7 +503,7 @@ }, { "cell_type": "markdown", - "id": "5a1a7d73", + "id": "dcd5c35f", "metadata": {}, "source": [ "**3.** Encode the labels and assign the values to new variables:" @@ -541,7 +512,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "ce6524eb", + "id": "b54cb919", "metadata": {}, "outputs": [], "source": [ @@ -551,7 +522,7 @@ }, { "cell_type": "markdown", - "id": "1fe1f461", + "id": "65552293", "metadata": {}, "source": [ "**4.** Check that the data type has changed to floating point:" @@ -560,7 +531,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "e1821464", + "id": "093eafe8", "metadata": {}, "outputs": [ { @@ -579,7 +550,7 @@ }, { "cell_type": "markdown", - "id": "617a3229", + "id": "b24e345c", "metadata": {}, "source": [ "**5.** Examine a few encoded labels:" @@ -588,7 +559,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "8bb55230", + "id": "6b6b0351", "metadata": {}, "outputs": [ { @@ -609,7 +580,7 @@ }, { "cell_type": "markdown", - "id": "2c4ed76d", + "id": "0ce1a89a", "metadata": {}, "source": [ "...and compare to the originals:" @@ -618,7 +589,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "01da24a7", + "id": "ce0e7a8d", "metadata": {}, "outputs": [ { @@ -639,7 +610,7 @@ }, { "cell_type": "markdown", - "id": "bbf751f8", + "id": "bea9e930", "metadata": {}, "source": [ "You have finished preparing the dataset.\n", @@ -734,7 +705,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "0e43e060", + "id": "d0f28d20", "metadata": {}, "outputs": [], "source": [ @@ -744,7 +715,7 @@ }, { "cell_type": "markdown", - "id": "416a879a", + "id": "1ada42ec", "metadata": {}, "source": [ "**2.** For the hidden layer, define the ReLU activation function for forward propagation and ReLU's derivative that will be used during backpropagation:" @@ -753,7 +724,7 @@ { "cell_type": "code", "execution_count": 20, - "id": "d522ae4c", + "id": "1698fc61", "metadata": {}, "outputs": [], "source": [ @@ -770,7 +741,7 @@ }, { "cell_type": "markdown", - "id": "c87465e2", + "id": "b0a086ae", "metadata": {}, "source": [ "**3.** Set certain default values of [hyperparameters](https://en.wikipedia.org/wiki/Hyperparameter_(machine_learning)), such as:\n", @@ -785,7 +756,7 @@ { "cell_type": "code", "execution_count": 21, - "id": "43ea7016", + "id": "c575fc98", "metadata": {}, "outputs": [], "source": [ @@ -798,7 +769,7 @@ }, { "cell_type": "markdown", - "id": "1e2b2d7e", + "id": "cb10a276", "metadata": {}, "source": [ "**4.** Initialize the weight vectors that will be used in the hidden and output layers with random values:" @@ -807,7 +778,7 @@ { "cell_type": "code", "execution_count": 22, - "id": "69d014b8", + "id": "1c9acfe1", "metadata": {}, "outputs": [], "source": [ @@ -817,7 +788,7 @@ }, { "cell_type": "markdown", - "id": "364b8d15", + "id": "904f7aa5", "metadata": {}, "source": [ "**5.** Set up the neural network's learning experiment with a training loop and start the training process.\n", @@ -830,7 +801,7 @@ { "cell_type": "code", "execution_count": 23, - "id": "c323eefb", + "id": "367ecff9", "metadata": {}, "outputs": [ { @@ -1159,7 +1130,7 @@ }, { "cell_type": "markdown", - "id": "6d030829", + "id": "b234a23e", "metadata": {}, "source": [ "The training process may take many minutes, depending on a number of factors, such as the processing power of the machine you are running the experiment on and the number of epochs. To reduce the waiting time, you can change the epoch (iteration) variable from 100 to a lower number, reset the runtime (which will reset the weights), and run the notebook cells again." @@ -1167,7 +1138,7 @@ }, { "cell_type": "markdown", - "id": "db36a429", + "id": "2c4fcacd", "metadata": {}, "source": [ "After executing the cell above, you can visualize the training and test set errors and accuracy for an instance of this training process." @@ -1176,7 +1147,7 @@ { "cell_type": "code", "execution_count": 24, - "id": "82d3859c", + "id": "da7d01b4", "metadata": {}, "outputs": [ { @@ -1221,7 +1192,7 @@ }, { "cell_type": "markdown", - "id": "3978a91a", + "id": "61fc33df", "metadata": {}, "source": [ "_The training and testing error is shown above in the left and right\n", diff --git a/_sources/content/tutorial-deep-reinforcement-learning-with-pong-from-pixels.ipynb b/_sources/content/tutorial-deep-reinforcement-learning-with-pong-from-pixels.ipynb index cdd60fec..864a752d 100644 --- a/_sources/content/tutorial-deep-reinforcement-learning-with-pong-from-pixels.ipynb +++ b/_sources/content/tutorial-deep-reinforcement-learning-with-pong-from-pixels.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "b264e12f", + "id": "266d88d1", "metadata": {}, "source": [ "# Deep reinforcement learning with Pong from pixels\n", diff --git a/_sources/content/tutorial-ma.ipynb b/_sources/content/tutorial-ma.ipynb index a9db87f3..ea260013 100644 --- a/_sources/content/tutorial-ma.ipynb +++ b/_sources/content/tutorial-ma.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "22f55a3a", + "id": "ce416acd", "metadata": {}, "source": [ "# Masked Arrays\n", @@ -26,7 +26,7 @@ }, { "cell_type": "markdown", - "id": "e523b2cb", + "id": "7307b1ec", "metadata": {}, "source": [ "***" @@ -34,7 +34,7 @@ }, { "cell_type": "markdown", - "id": "09e72221", + "id": "2bd24fd0", "metadata": {}, "source": [ "## What are masked arrays?\n", @@ -65,7 +65,7 @@ }, { "cell_type": "markdown", - "id": "b7dbaf70", + "id": "78a188bb", "metadata": {}, "source": [ "## Using masked arrays to see COVID-19 data\n", @@ -76,7 +76,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "15fc3e30", + "id": "cc0fe22b", "metadata": {}, "outputs": [], "source": [ @@ -91,7 +91,7 @@ }, { "cell_type": "markdown", - "id": "6cc4444e", + "id": "3ada46ce", "metadata": {}, "source": [ "The data file contains data of different types and is organized as follows:\n", @@ -107,7 +107,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "ec6233c2", + "id": "f122cadf", "metadata": {}, "outputs": [], "source": [ @@ -145,7 +145,7 @@ }, { "cell_type": "markdown", - "id": "4998b12c", + "id": "267a2180", "metadata": {}, "source": [ "Included in the `numpy.genfromtxt` function call, we have selected the [numpy.dtype](https://numpy.org/devdocs/reference/generated/numpy.dtype.html#numpy.dtype) for each subset of the data (either an integer - `numpy.int_` - or a string of characters - `numpy.str_`). We have also used the `encoding` argument to select `utf-8-sig` as the encoding for the file (read more about encoding in the [official Python documentation](https://docs.python.org/3/library/codecs.html#encodings-and-unicode). You can read more about the `numpy.genfromtxt` function from the [Reference Documentation](https://numpy.org/devdocs/reference/generated/numpy.genfromtxt.html#numpy.genfromtxt) or from the [Basic IO tutorial](https://numpy.org/devdocs/user/basics.io.genfromtxt.html)." @@ -153,7 +153,7 @@ }, { "cell_type": "markdown", - "id": "123254ca", + "id": "bb679f07", "metadata": {}, "source": [ "## Exploring the data\n", @@ -164,7 +164,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "25bfc368", + "id": "835072d9", "metadata": {}, "outputs": [ { @@ -199,7 +199,7 @@ }, { "cell_type": "markdown", - "id": "81ff5789", + "id": "07184822", "metadata": {}, "source": [ "The graph has a strange shape from January 24th to February 1st. It would be interesting to know where this data comes from. If we look at the `locations` array we extracted from the `.csv` file, we can see that we have two columns, where the first would contain regions and the second would contain the name of the country. However, only the first few rows contain data for the the first column (province names in China). Following that, we only have country names. So it would make sense to group all the data from China into a single row. For this, we'll select from the `nbcases` array only the rows for which the second entry of the `locations` array corresponds to China. Next, we'll use the [numpy.sum](https://numpy.org/devdocs/reference/generated/numpy.sum.html#numpy.sum) function to sum all the selected rows (`axis=0`). Note also that row 35 corresponds to the total counts for the whole country for each date. Since we want to calculate the sum ourselves from the provinces data, we have to remove that row first from both `locations` and `nbcases`:" @@ -208,7 +208,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "b78b43c2", + "id": "4d89e32c", "metadata": {}, "outputs": [ { @@ -234,7 +234,7 @@ }, { "cell_type": "markdown", - "id": "94837b4e", + "id": "99097167", "metadata": {}, "source": [ "Something's wrong with this data - we are not supposed to have negative values in a cumulative data set. What's going on?" @@ -242,7 +242,7 @@ }, { "cell_type": "markdown", - "id": "de0421e2", + "id": "24847252", "metadata": {}, "source": [ "## Missing data\n", @@ -253,7 +253,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "663a154b", + "id": "caf6db50", "metadata": {}, "outputs": [ { @@ -279,7 +279,7 @@ }, { "cell_type": "markdown", - "id": "e4cdcd17", + "id": "364fec97", "metadata": {}, "source": [ "All the `-1` values we are seeing come from `numpy.genfromtxt` attempting to read missing data from the original `.csv` file. Obviously, we\n", @@ -289,7 +289,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "6732e091", + "id": "97a793ad", "metadata": {}, "outputs": [], "source": [ @@ -300,7 +300,7 @@ }, { "cell_type": "markdown", - "id": "328618cb", + "id": "db411008", "metadata": {}, "source": [ "If we look at the `nbcases_ma` masked array, this is what we have:" @@ -309,7 +309,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "ce78d2bb", + "id": "5fb740ff", "metadata": {}, "outputs": [ { @@ -344,7 +344,7 @@ }, { "cell_type": "markdown", - "id": "9b9066bc", + "id": "68df6b61", "metadata": {}, "source": [ "We can see that this is a different kind of array. As mentioned in the introduction, it has three attributes (`data`, `mask` and `fill_value`).\n", @@ -353,7 +353,7 @@ }, { "cell_type": "markdown", - "id": "1f8a956d", + "id": "4dab3f86", "metadata": {}, "source": [ "Let's try and see what the data looks like excluding the first row (data from the Hubei province in China) so we can look at the missing data more\n", @@ -363,7 +363,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "fbad434b", + "id": "32cc3159", "metadata": {}, "outputs": [ { @@ -395,7 +395,7 @@ }, { "cell_type": "markdown", - "id": "787e7b9b", + "id": "f9f2f90d", "metadata": {}, "source": [ "Now that our data has been masked, let's try summing up all the cases in China:" @@ -404,7 +404,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "52821ea2", + "id": "d0c5c136", "metadata": {}, "outputs": [ { @@ -429,7 +429,7 @@ }, { "cell_type": "markdown", - "id": "f6f5fdc4", + "id": "65f63049", "metadata": {}, "source": [ "Note that `china_masked` is a masked array, so it has a different data structure than a regular NumPy array. Now, we can access its data directly by using the `.data` attribute:" @@ -438,7 +438,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "a08e737f", + "id": "cfe36952", "metadata": {}, "outputs": [ { @@ -460,7 +460,7 @@ }, { "cell_type": "markdown", - "id": "e8031936", + "id": "16297d5a", "metadata": {}, "source": [ "That is better: no more negative values. However, we can still see that for some days, the cumulative number of cases seems to go down (from 835 to 10, for example), which does not agree with the definition of \"cumulative data\". If we look more closely at the data, we can see that in the period where there was missing data in mainland China, there was valid data for Hong Kong, Taiwan, Macau and \"Unspecified\" regions of China. Maybe we can remove those from the total sum of cases in China, to get a better understanding of the data.\n", @@ -471,7 +471,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "ca66b850", + "id": "65ae64ea", "metadata": {}, "outputs": [], "source": [ @@ -486,7 +486,7 @@ }, { "cell_type": "markdown", - "id": "7384236a", + "id": "0c8db746", "metadata": {}, "source": [ "Now, `china_mask` is an array of boolean values (`True` or `False`); we can check that the indices are what we wanted with the [ma.nonzero](https://numpy.org/devdocs/reference/generated/numpy.ma.nonzero.html#numpy.ma.nonzero) method for masked arrays:" @@ -495,7 +495,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "f6394e82", + "id": "a4b687e5", "metadata": {}, "outputs": [ { @@ -516,7 +516,7 @@ }, { "cell_type": "markdown", - "id": "6481e69c", + "id": "8f855090", "metadata": {}, "source": [ "Now we can correctly sum entries for mainland China:" @@ -525,7 +525,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "63e47ae3", + "id": "8cf4ae10", "metadata": {}, "outputs": [ { @@ -550,7 +550,7 @@ }, { "cell_type": "markdown", - "id": "ae27d0db", + "id": "627c82cb", "metadata": {}, "source": [ "We can replace the data with this information and plot a new graph, focusing on Mainland China:" @@ -559,7 +559,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "573a5e60", + "id": "18346bdf", "metadata": {}, "outputs": [ { @@ -591,7 +591,7 @@ }, { "cell_type": "markdown", - "id": "c93ba8e2", + "id": "8c7549c7", "metadata": {}, "source": [ "It's clear that masked arrays are the right solution here. We cannot represent the missing data without mischaracterizing the evolution of the curve." @@ -599,7 +599,7 @@ }, { "cell_type": "markdown", - "id": "59777c18", + "id": "1c4e300f", "metadata": {}, "source": [ "## Fitting Data\n", @@ -610,7 +610,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "75a911ab", + "id": "baf3426b", "metadata": {}, "outputs": [ { @@ -635,7 +635,7 @@ }, { "cell_type": "markdown", - "id": "2045e12c", + "id": "d3df3c41", "metadata": {}, "source": [ "We can also access the valid entries by using the logical negation for this mask:" @@ -644,7 +644,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "c8202576", + "id": "d064add3", "metadata": {}, "outputs": [ { @@ -667,7 +667,7 @@ }, { "cell_type": "markdown", - "id": "3b14f059", + "id": "c4b99a5e", "metadata": {}, "source": [ "Now, if we want to create a very simple approximation for this data, we should take into account the valid entries around the invalid ones. So first let's select the dates for which the data is valid. Note that we can use the mask from the `china_total` masked array to index the dates array:" @@ -676,7 +676,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "a1c05fb5", + "id": "0061003d", "metadata": {}, "outputs": [ { @@ -697,7 +697,7 @@ }, { "cell_type": "markdown", - "id": "ed277b86", + "id": "243fcc8e", "metadata": {}, "source": [ "Finally, we can use the\n", @@ -708,13 +708,13 @@ { "cell_type": "code", "execution_count": 18, - "id": "71a3f38c", + "id": "3d507ddf", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[]" + "[]" ] }, "execution_count": 18, @@ -741,7 +741,7 @@ }, { "cell_type": "markdown", - "id": "ea33d97c", + "id": "46e73965", "metadata": {}, "source": [ "This plot is not so readable since the lines seem to be over each other, so let's summarize in a more elaborate plot. We'll plot the real data when\n", @@ -751,7 +751,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "152faea6", + "id": "49c7261a", "metadata": {}, "outputs": [ { @@ -790,7 +790,7 @@ }, { "cell_type": "markdown", - "id": "3f44f7bc", + "id": "5e530dd4", "metadata": {}, "source": [ "## In practice" @@ -798,7 +798,7 @@ }, { "cell_type": "markdown", - "id": "c0764b6d", + "id": "41ff239c", "metadata": {}, "source": [ "- Adding `-1` to missing data is not a problem with `numpy.genfromtxt`; in this particular case, substituting the missing value with `0` might have been fine, but we'll see later that this is far from a general solution. Also, it is possible to call the `numpy.genfromtxt` function using the `usemask` parameter. If `usemask=True`, `numpy.genfromtxt` automatically returns a masked array." @@ -806,7 +806,7 @@ }, { "cell_type": "markdown", - "id": "67089513", + "id": "bd0cee8b", "metadata": {}, "source": [ "## Further reading\n", diff --git a/_sources/content/tutorial-plotting-fractals.ipynb b/_sources/content/tutorial-plotting-fractals.ipynb index 4b0dd668..aa29d87c 100644 --- a/_sources/content/tutorial-plotting-fractals.ipynb +++ b/_sources/content/tutorial-plotting-fractals.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "1d4f4cf5", + "id": "58a512fe", "metadata": {}, "source": [ "# Plotting Fractals" @@ -10,7 +10,7 @@ }, { "cell_type": "markdown", - "id": "0550f50a", + "id": "ab1c8e80", "metadata": {}, "source": [ "![Fractal picture](tutorial-plotting-fractals/fractal.png)" @@ -18,7 +18,7 @@ }, { "cell_type": "markdown", - "id": "d5ae3de4", + "id": "3adb6db4", "metadata": {}, "source": [ "Fractals are beautiful, compelling mathematical forms that can be oftentimes created from a relatively simple set of instructions. In nature they can be found in various places, such as coastlines, seashells, and ferns, and even were used in creating certain types of antennas. The mathematical idea of fractals was known for quite some time, but they really began to be truly appreciated in the 1970's as advancements in computer graphics and some accidental discoveries lead researchers like [Benoît Mandelbrot](https://en.wikipedia.org/wiki/Benoit_Mandelbrot) to stumble upon the truly mystifying visualizations that fractals possess.\n", @@ -28,7 +28,7 @@ }, { "cell_type": "markdown", - "id": "54af3525", + "id": "07561bf9", "metadata": {}, "source": [ "## What you'll do\n", @@ -41,7 +41,7 @@ }, { "cell_type": "markdown", - "id": "f37832ad", + "id": "3dcea84b", "metadata": {}, "source": [ "## What you'll learn\n", @@ -54,7 +54,7 @@ }, { "cell_type": "markdown", - "id": "9d6a3869", + "id": "7bd6aa06", "metadata": {}, "source": [ "## What you'll need\n", @@ -68,7 +68,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "6b8f7cf0", + "id": "4ae2341a", "metadata": {}, "outputs": [], "source": [ @@ -79,7 +79,7 @@ }, { "cell_type": "markdown", - "id": "057524fd", + "id": "24f08c4e", "metadata": {}, "source": [ "- Some familiarity with Python, NumPy and matplotlib\n", @@ -90,7 +90,7 @@ }, { "cell_type": "markdown", - "id": "5d6b6652", + "id": "a2da45b1", "metadata": {}, "source": [ "## Warmup\n", @@ -109,7 +109,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "d82f306a", + "id": "2673530f", "metadata": {}, "outputs": [], "source": [ @@ -119,7 +119,7 @@ }, { "cell_type": "markdown", - "id": "0b390486", + "id": "4c40f12c", "metadata": {}, "source": [ "Note that the square function we used is an example of a **[NumPy universal function](https://numpy.org/doc/stable/reference/ufuncs.html)**; we will come back to the significance of this decision shortly.\n", @@ -132,7 +132,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "a84eadba", + "id": "aadba111", "metadata": {}, "outputs": [ { @@ -152,7 +152,7 @@ }, { "cell_type": "markdown", - "id": "df2309e6", + "id": "c042a873", "metadata": {}, "source": [ "Since we used a universal function in our design, we can compute multiple inputs at the same time:" @@ -161,7 +161,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "a3957feb", + "id": "65677895", "metadata": {}, "outputs": [ { @@ -182,7 +182,7 @@ }, { "cell_type": "markdown", - "id": "428f09a6", + "id": "35a75ea4", "metadata": {}, "source": [ "Some values grow, some values shrink, some don't experience much change.\n", @@ -193,7 +193,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "17c7da98", + "id": "96565fb6", "metadata": {}, "outputs": [], "source": [ @@ -203,7 +203,7 @@ }, { "cell_type": "markdown", - "id": "27039424", + "id": "ed337a21", "metadata": {}, "source": [ "Now we will apply our function to each value contained in the mesh. Since we used a universal function in our design, this means that we can pass in the entire mesh all at once. This is extremely convenient for two reasons: It reduces the amount of code needed to be written and greatly increases the efficiency (as universal functions make use of system level C programming in their computations).\n", @@ -215,7 +215,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "a8f92ee9", + "id": "b16ea604", "metadata": {}, "outputs": [ { @@ -245,7 +245,7 @@ }, { "cell_type": "markdown", - "id": "dbc07751", + "id": "c1691de5", "metadata": {}, "source": [ "This gives us a rough idea of what one iteration of the function does. Certain areas (notably in the areas closest to $(0,0i)$) remain rather small while other areas grow quite considerably. Note that we lose information about the output by taking the absolute value, but it is the only way for us to be able to make a plot.\n", @@ -256,7 +256,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "71f1e2e1", + "id": "f2895bdc", "metadata": {}, "outputs": [ { @@ -285,7 +285,7 @@ }, { "cell_type": "markdown", - "id": "3b1aad7c", + "id": "b9955891", "metadata": {}, "source": [ "Once again, we see that values around the origin remain small, and values with a larger absolute value (or modulus) “explode”.\n", @@ -295,7 +295,7 @@ }, { "cell_type": "markdown", - "id": "27e840ee", + "id": "22a8e8c7", "metadata": {}, "source": [ "Consider three complex numbers:\n", @@ -312,7 +312,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "cb84d9ab", + "id": "bdf3e634", "metadata": {}, "outputs": [ { @@ -349,7 +349,7 @@ }, { "cell_type": "markdown", - "id": "d3d8c862", + "id": "f4f1cf8b", "metadata": {}, "source": [ "To our surprise, the behaviour of the function did not come close to matching our hypothesis. This is a prime example of the chaotic behaviour fractals possess. In the first two plots, the value \"exploded\" on the last iteration, jumping way beyond the region that it was contained in previously. The third plot on the other hand remained bounded to a small region close to the origin, yielding completely different behaviour despite the tiny change in value.\n", @@ -366,7 +366,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "e0a6bb59", + "id": "f5836721", "metadata": {}, "outputs": [], "source": [ @@ -386,7 +386,7 @@ }, { "cell_type": "markdown", - "id": "1fc4087a", + "id": "46d531a3", "metadata": {}, "source": [ "The behaviour of this function may look confusing at first glance, so it will help to explain some of the notation.\n", @@ -401,7 +401,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "cfdaf571", + "id": "277cf7b8", "metadata": {}, "outputs": [ { @@ -436,7 +436,7 @@ }, { "cell_type": "markdown", - "id": "23da59d1", + "id": "888a87ee", "metadata": {}, "source": [ "What this stunning visual conveys is the complexity of the function’s behaviour. The yellow region represents values that remain small, while the purple region represents the divergent values. The beautiful pattern that arises on the border of the converging and diverging values is even more fascinating when you realize that it is created from such a simple function." @@ -444,7 +444,7 @@ }, { "cell_type": "markdown", - "id": "f9a194c2", + "id": "9ddd954d", "metadata": {}, "source": [ "## Julia set\n", @@ -459,7 +459,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "f4ddd1fc", + "id": "cf808a93", "metadata": {}, "outputs": [], "source": [ @@ -478,7 +478,7 @@ }, { "cell_type": "markdown", - "id": "dfb11ae0", + "id": "82a2edf2", "metadata": {}, "source": [ "To make our lives easier, we will create a couple meshes that we will reuse throughout the rest of the examples:" @@ -487,7 +487,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "ade52f74", + "id": "47cc2c19", "metadata": {}, "outputs": [], "source": [ @@ -500,7 +500,7 @@ }, { "cell_type": "markdown", - "id": "1d4641b5", + "id": "660263db", "metadata": {}, "source": [ "We will also write a function that we will use to create our fractal plots:" @@ -509,7 +509,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "84ee48ab", + "id": "7ba3ac4c", "metadata": {}, "outputs": [], "source": [ @@ -530,7 +530,7 @@ }, { "cell_type": "markdown", - "id": "e2565a4f", + "id": "573fef7c", "metadata": {}, "source": [ "Using our newly defined functions, we can make a quick plot of the first fractal again:" @@ -539,7 +539,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "d508eab5", + "id": "cd526fde", "metadata": {}, "outputs": [ { @@ -562,7 +562,7 @@ }, { "cell_type": "markdown", - "id": "a52d5254", + "id": "151e96b5", "metadata": {}, "source": [ "We also can explore some different Julia sets by experimenting with different values of $c$. It can be surprising how much influence it has on the shape of the fractal.\n", @@ -573,7 +573,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "b569e1df", + "id": "320a702c", "metadata": {}, "outputs": [ { @@ -597,7 +597,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "64005201", + "id": "710758c3", "metadata": {}, "outputs": [ { @@ -620,7 +620,7 @@ }, { "cell_type": "markdown", - "id": "5a613985", + "id": "efaad168", "metadata": {}, "source": [ "## Mandelbrot set\n", @@ -631,7 +631,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "8cd4b0e2", + "id": "f074d742", "metadata": {}, "outputs": [], "source": [ @@ -652,7 +652,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "aa9d5ac2", + "id": "79cb74d5", "metadata": {}, "outputs": [ { @@ -675,7 +675,7 @@ }, { "cell_type": "markdown", - "id": "2d3b14d4", + "id": "f1b3f9ff", "metadata": {}, "source": [ "## Generalizing the Julia set\n", @@ -686,7 +686,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "f66ac748", + "id": "19167255", "metadata": {}, "outputs": [], "source": [ @@ -705,7 +705,7 @@ }, { "cell_type": "markdown", - "id": "55563bb3", + "id": "55a62889", "metadata": {}, "source": [ "One cool set of fractals that can be plotted using our general Julia function are ones of the form $f(z) = z^n + c$ for some positive integer $n$. A very cool pattern which emerges is that the number of regions that 'stick out' matches the degree in which we raise the function to while iterating over it." @@ -714,7 +714,7 @@ { "cell_type": "code", "execution_count": 20, - "id": "23721df2", + "id": "76f593c2", "metadata": {}, "outputs": [ { @@ -745,7 +745,7 @@ }, { "cell_type": "markdown", - "id": "d1869001", + "id": "4db0802b", "metadata": {}, "source": [ "Needless to say, there is a large amount of exploring that can be done by fiddling with the inputted function, value of $c$, number of iterations, radius and even the density of the mesh and choice of colours." @@ -753,7 +753,7 @@ }, { "cell_type": "markdown", - "id": "519ce2a8", + "id": "4ac42c2c", "metadata": {}, "source": [ "### Newton Fractals\n", @@ -768,7 +768,7 @@ { "cell_type": "code", "execution_count": 21, - "id": "aab9819d", + "id": "08c80a23", "metadata": {}, "outputs": [], "source": [ @@ -789,7 +789,7 @@ }, { "cell_type": "markdown", - "id": "525fe956", + "id": "27bfea88", "metadata": {}, "source": [ "Now we can experiment with some different functions. For polynomials, we can create our plots quite effortlessly using the [NumPy Polynomial class](https://numpy.org/doc/stable/reference/generated/numpy.polynomial.polynomial.Polynomial.html), which has built in functionality for computing derivatives.\n", @@ -800,7 +800,7 @@ { "cell_type": "code", "execution_count": 22, - "id": "e5f062b6", + "id": "a22c5d5e", "metadata": {}, "outputs": [ { @@ -824,7 +824,7 @@ }, { "cell_type": "markdown", - "id": "98e30907", + "id": "4676449e", "metadata": {}, "source": [ "which has the derivative:" @@ -833,7 +833,7 @@ { "cell_type": "code", "execution_count": 23, - "id": "aea9aa7a", + "id": "262b3244", "metadata": {}, "outputs": [ { @@ -857,7 +857,7 @@ { "cell_type": "code", "execution_count": 24, - "id": "b9800354", + "id": "60ac4854", "metadata": {}, "outputs": [ { @@ -880,7 +880,7 @@ }, { "cell_type": "markdown", - "id": "68ad17dc", + "id": "1f743d0d", "metadata": {}, "source": [ "Beautiful! Let's try another one:\n", @@ -895,7 +895,7 @@ { "cell_type": "code", "execution_count": 25, - "id": "21fe4eff", + "id": "dedcdcbf", "metadata": {}, "outputs": [], "source": [ @@ -910,7 +910,7 @@ { "cell_type": "code", "execution_count": 26, - "id": "5ce7112b", + "id": "7b76333b", "metadata": {}, "outputs": [ { @@ -933,7 +933,7 @@ }, { "cell_type": "markdown", - "id": "7eefaccc", + "id": "e2641873", "metadata": {}, "source": [ "Note that you sometimes have to play with the radius in order to get a neat looking fractal.\n", @@ -948,7 +948,7 @@ { "cell_type": "code", "execution_count": 27, - "id": "c3fbdf83", + "id": "3e0357a9", "metadata": {}, "outputs": [], "source": [ @@ -968,7 +968,7 @@ }, { "cell_type": "markdown", - "id": "c0090b91", + "id": "2e929914", "metadata": {}, "source": [ "We will denote this one 'Wacky fractal', as its equation would not be fun to try and put in the title." @@ -977,7 +977,7 @@ { "cell_type": "code", "execution_count": 28, - "id": "23a23f78", + "id": "03bcbe02", "metadata": {}, "outputs": [ { @@ -1000,7 +1000,7 @@ }, { "cell_type": "markdown", - "id": "b57a39a2", + "id": "10f76c3d", "metadata": {}, "source": [ "It is truly fascinating how distinct yet similar these fractals are with each other. This leads us to the final section." @@ -1008,7 +1008,7 @@ }, { "cell_type": "markdown", - "id": "faa37358", + "id": "093cc4ae", "metadata": {}, "source": [ "## Creating your own fractals\n", @@ -1026,7 +1026,7 @@ { "cell_type": "code", "execution_count": 29, - "id": "8f1fa665", + "id": "bfc47181", "metadata": {}, "outputs": [], "source": [ @@ -1037,7 +1037,7 @@ { "cell_type": "code", "execution_count": 30, - "id": "c3afefc9", + "id": "60b842c7", "metadata": {}, "outputs": [ { @@ -1060,7 +1060,7 @@ }, { "cell_type": "markdown", - "id": "9ccebeee", + "id": "1b0e2f16", "metadata": {}, "source": [ "What happens if we compose our defined function inside of a sine function?\n", @@ -1073,7 +1073,7 @@ { "cell_type": "code", "execution_count": 31, - "id": "a93b5ad4", + "id": "c6c21896", "metadata": {}, "outputs": [], "source": [ @@ -1084,7 +1084,7 @@ { "cell_type": "code", "execution_count": 32, - "id": "83a3f863", + "id": "4ae88d59", "metadata": {}, "outputs": [ { @@ -1107,7 +1107,7 @@ }, { "cell_type": "markdown", - "id": "e2508bbe", + "id": "c2c8cfd8", "metadata": {}, "source": [ "Next, let's create a function that applies both f and g to the inputs each iteration and adds the result together:\n", @@ -1118,7 +1118,7 @@ { "cell_type": "code", "execution_count": 33, - "id": "eacf2401", + "id": "9fb08a69", "metadata": {}, "outputs": [], "source": [ @@ -1129,7 +1129,7 @@ { "cell_type": "code", "execution_count": 34, - "id": "d264cf6b", + "id": "4bdebdef", "metadata": {}, "outputs": [ { @@ -1152,7 +1152,7 @@ }, { "cell_type": "markdown", - "id": "d447f336", + "id": "e5898a19", "metadata": {}, "source": [ "You can even create beautiful fractals through your own errors. Here is one that got created accidently by making a mistake in computing the derivative of a Newton fractal:" @@ -1161,7 +1161,7 @@ { "cell_type": "code", "execution_count": 35, - "id": "b4d1e12f", + "id": "94f71913", "metadata": {}, "outputs": [], "source": [ @@ -1172,7 +1172,7 @@ { "cell_type": "code", "execution_count": 36, - "id": "091e64a4", + "id": "b3c811ab", "metadata": {}, "outputs": [ { @@ -1195,7 +1195,7 @@ }, { "cell_type": "markdown", - "id": "75029b58", + "id": "5938ef4d", "metadata": {}, "source": [ "Needless to say, there are a nearly endless supply of interesting fractal creations that can be made just by playing around with various combinations of NumPy universal functions and by tinkering with the parameters." @@ -1203,7 +1203,7 @@ }, { "cell_type": "markdown", - "id": "2ba246a1", + "id": "c03c3655", "metadata": {}, "source": [ "## In conclusion\n", @@ -1221,7 +1221,7 @@ }, { "cell_type": "markdown", - "id": "1e1f26ff", + "id": "38087b0a", "metadata": {}, "source": [ "## On your own\n", @@ -1233,7 +1233,7 @@ }, { "cell_type": "markdown", - "id": "84549c48", + "id": "bc504f0a", "metadata": {}, "source": [ "## Further reading\n", diff --git a/_sources/content/tutorial-static_equilibrium.ipynb b/_sources/content/tutorial-static_equilibrium.ipynb index a38fe960..60c29979 100644 --- a/_sources/content/tutorial-static_equilibrium.ipynb +++ b/_sources/content/tutorial-static_equilibrium.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "251f699d", + "id": "c3284a95", "metadata": {}, "source": [ "# Determining Static Equilibrium in NumPy\n", @@ -30,7 +30,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "6c22fdd1", + "id": "aa8ecc3d", "metadata": {}, "outputs": [], "source": [ @@ -40,7 +40,7 @@ }, { "cell_type": "markdown", - "id": "0bd03d8c", + "id": "4f6c7d41", "metadata": {}, "source": [ "In this tutorial you will use the following NumPy tools:\n", @@ -51,7 +51,7 @@ }, { "cell_type": "markdown", - "id": "d6eb47d8", + "id": "9890e591", "metadata": {}, "source": [ "## Solving equilibrium with Newton's second law\n", @@ -80,7 +80,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "82d9c715", + "id": "3d7087ca", "metadata": {}, "outputs": [ { @@ -101,7 +101,7 @@ }, { "cell_type": "markdown", - "id": "46bb0c75", + "id": "00d33a44", "metadata": {}, "source": [ "This defines `forceA` as being a vector with magnitude of 1 in the $x$ direction and `forceB` as magnitude 1 in the $y$ direction.\n", @@ -114,7 +114,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "99b8c47c", + "id": "de5bcb84", "metadata": {}, "outputs": [ { @@ -151,7 +151,7 @@ }, { "cell_type": "markdown", - "id": "79a2a695", + "id": "4e64a33b", "metadata": {}, "source": [ "There are two forces emanating from a single point. In order to simplify this problem, you can add them together to find the sum of forces. Note that both `forceA` and `forceB` are three-dimensional vectors, represented by NumPy as arrays with three components. Because NumPy is meant to simplify and optimize operations between vectors, you can easily compute the sum of these two vectors as follows:" @@ -160,7 +160,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "1a94d8bb", + "id": "2228075e", "metadata": {}, "outputs": [ { @@ -178,7 +178,7 @@ }, { "cell_type": "markdown", - "id": "2a4df73b", + "id": "feb18e80", "metadata": {}, "source": [ "Force C now acts as a single force that represents both A and B.\n", @@ -188,7 +188,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "a4d8b078", + "id": "75b9bcd2", "metadata": {}, "outputs": [ { @@ -226,7 +226,7 @@ }, { "cell_type": "markdown", - "id": "8b827562", + "id": "fa514989", "metadata": {}, "source": [ "However, the goal is equilibrium.\n", @@ -257,7 +257,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "2fde7013", + "id": "caab81a2", "metadata": {}, "outputs": [ { @@ -292,7 +292,7 @@ }, { "cell_type": "markdown", - "id": "7ef24d73", + "id": "bd381ca3", "metadata": {}, "source": [ "The empty graph signifies that there are no outlying forces. This denotes a system in equilibrium.\n", @@ -316,7 +316,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "18858986", + "id": "fa6888de", "metadata": {}, "outputs": [ { @@ -340,7 +340,7 @@ }, { "cell_type": "markdown", - "id": "1a7a82fe", + "id": "b9a1b679", "metadata": {}, "source": [ "## Finding values with physical properties\n", @@ -361,7 +361,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "57d66b35", + "id": "755cdd60", "metadata": {}, "outputs": [ { @@ -386,7 +386,7 @@ }, { "cell_type": "markdown", - "id": "0cd2f5a5", + "id": "db760dc8", "metadata": {}, "source": [ "In order to use these vectors in relation to forces you need to convert them into unit vectors.\n", @@ -396,7 +396,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "8279f971", + "id": "90808875", "metadata": {}, "outputs": [ { @@ -414,7 +414,7 @@ }, { "cell_type": "markdown", - "id": "724d5ecd", + "id": "055e34ab", "metadata": {}, "source": [ "You can then multiply this direction with the magnitude of the force in order to find the force vector.\n", @@ -425,7 +425,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "5f8db7f8", + "id": "ad220ecb", "metadata": {}, "outputs": [ { @@ -444,7 +444,7 @@ }, { "cell_type": "markdown", - "id": "413ddcb2", + "id": "e8b8d7ab", "metadata": {}, "source": [ "In order to find the moment you need the cross product of the force vector and the radius." @@ -453,7 +453,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "b2177c0b", + "id": "064128f7", "metadata": {}, "outputs": [ { @@ -471,7 +471,7 @@ }, { "cell_type": "markdown", - "id": "89f19a91", + "id": "3484eeca", "metadata": {}, "source": [ "Now all you need to do is find the reaction force and moment." @@ -480,7 +480,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "704de70b", + "id": "05026e87", "metadata": {}, "outputs": [ { @@ -502,7 +502,7 @@ }, { "cell_type": "markdown", - "id": "85f72b2f", + "id": "bbe3bba2", "metadata": {}, "source": [ "### Another Example\n", @@ -520,7 +520,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "0b95eaf9", + "id": "93d38a95", "metadata": {}, "outputs": [], "source": [ @@ -534,7 +534,7 @@ }, { "cell_type": "markdown", - "id": "2002f799", + "id": "fa79d886", "metadata": {}, "source": [ "From these equations, you start by determining vector directions with unit vectors." @@ -543,7 +543,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "8aa3d56e", + "id": "35538974", "metadata": {}, "outputs": [], "source": [ @@ -564,7 +564,7 @@ }, { "cell_type": "markdown", - "id": "675dc4a0", + "id": "65701755", "metadata": {}, "source": [ "This lets you represent the tension (T) and reaction (R) forces acting on the system as\n", @@ -645,7 +645,7 @@ }, { "cell_type": "markdown", - "id": "43396da6", + "id": "b1ea7088", "metadata": {}, "source": [ "## Wrapping up\n", diff --git a/_sources/content/tutorial-style-guide.ipynb b/_sources/content/tutorial-style-guide.ipynb index 470d9912..0e767e0a 100644 --- a/_sources/content/tutorial-style-guide.ipynb +++ b/_sources/content/tutorial-style-guide.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "50842c1d", + "id": "f50d44f5", "metadata": {}, "source": [ "# Learn to write a NumPy tutorial\n", @@ -13,7 +13,7 @@ }, { "cell_type": "markdown", - "id": "59a88caf", + "id": "371a8a5c", "metadata": {}, "source": [ "## What you'll do\n", @@ -125,7 +125,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "2a19f862", + "id": "bd3aecf8", "metadata": {}, "outputs": [], "source": [ @@ -134,7 +134,7 @@ }, { "cell_type": "markdown", - "id": "591cd588", + "id": "6835641a", "metadata": {}, "source": [ "
\n", @@ -151,7 +151,7 @@ }, { "cell_type": "markdown", - "id": "506e21d6", + "id": "daeb422f", "metadata": {}, "source": [ "***\n", diff --git a/_sources/content/tutorial-svd.ipynb b/_sources/content/tutorial-svd.ipynb index 10ffc6e6..2c476950 100644 --- a/_sources/content/tutorial-svd.ipynb +++ b/_sources/content/tutorial-svd.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "082a8eb2", + "id": "35d390f0", "metadata": {}, "source": [ "# Linear algebra on n-dimensional arrays" @@ -10,7 +10,7 @@ }, { "cell_type": "markdown", - "id": "9ace959d", + "id": "06696caa", "metadata": {}, "source": [ "## Prerequisites\n", @@ -39,14 +39,14 @@ { "cell_type": "code", "execution_count": 1, - "id": "51f779e5", + "id": "f8fd3c35", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "/tmp/ipykernel_426/2202046956.py:3: DeprecationWarning: scipy.misc.face has been deprecated in SciPy v1.10.0; and will be completely removed in SciPy v1.12.0. Dataset methods have moved into the scipy.datasets module. Use scipy.datasets.face instead.\n", + "/tmp/ipykernel_432/2202046956.py:3: DeprecationWarning: scipy.misc.face has been deprecated in SciPy v1.10.0; and will be completely removed in SciPy v1.12.0. Dataset methods have moved into the scipy.datasets module. Use scipy.datasets.face instead.\n", " img = misc.face()\n" ] } @@ -59,7 +59,7 @@ }, { "cell_type": "markdown", - "id": "6dd0f5ac", + "id": "1a2f2204", "metadata": {}, "source": [ "**Note**: If you prefer, you can use your own image as you work through this tutorial. In order to transform your image into a NumPy array that can be manipulated, you can use the `imread` function from the [matplotlib.pyplot](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.html#module-matplotlib.pyplot) submodule. Alternatively, you can use the [imageio.imread](https://imageio.readthedocs.io/en/stable/userapi.html#imageio.imread) function from the `imageio` library. Be aware that if you use your own image, you'll likely need to adapt the steps below. For more information on how images are treated when converted to NumPy arrays, see [A crash course on NumPy for images](https://scikit-image.org/docs/stable/user_guide/numpy_images.html) from the `scikit-image` documentation." @@ -67,7 +67,7 @@ }, { "cell_type": "markdown", - "id": "1758b404", + "id": "fb20ca80", "metadata": {}, "source": [ "Now, `img` is a NumPy array, as we can see when using the `type` function:" @@ -76,7 +76,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "0b44bccf", + "id": "4375c87a", "metadata": {}, "outputs": [ { @@ -96,7 +96,7 @@ }, { "cell_type": "markdown", - "id": "a2dbbbb9", + "id": "bf6e29a4", "metadata": {}, "source": [ "We can see the image using the [matplotlib.pyplot.imshow](https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imshow.html#matplotlib.pyplot.imshow) function & the special iPython command, `%matplotlib inline` to display plots inline:" @@ -105,7 +105,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "0e12790a", + "id": "6fb28abd", "metadata": {}, "outputs": [], "source": [ @@ -117,7 +117,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "7d854c54", + "id": "5a84491d", "metadata": {}, "outputs": [ { @@ -138,7 +138,7 @@ }, { "cell_type": "markdown", - "id": "86816ce9", + "id": "69f48069", "metadata": {}, "source": [ "### Shape, axis and array properties\n", @@ -151,7 +151,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "62e34e1a", + "id": "97d849f5", "metadata": {}, "outputs": [ { @@ -171,7 +171,7 @@ }, { "cell_type": "markdown", - "id": "5d57ebce", + "id": "93734557", "metadata": {}, "source": [ "The output is a [tuple](https://docs.python.org/dev/tutorial/datastructures.html#tut-tuples) with three elements, which means that this is a three-dimensional array. In fact, since this is a color image, and we have used the `imread` function to read it, the data is organized in three 2D arrays, representing color channels (in this case, red, green and blue - RGB). You can see this by looking at the shape above: it indicates that we have an array of 3 matrices, each having shape 768x1024.\n", @@ -182,7 +182,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "5f6bb561", + "id": "e78095ad", "metadata": {}, "outputs": [ { @@ -202,7 +202,7 @@ }, { "cell_type": "markdown", - "id": "68e694d1", + "id": "099af5c0", "metadata": {}, "source": [ "NumPy refers to each dimension as an *axis*. Because of how `imread` works, the *first index in the 3rd axis* is the red pixel data for our image. We can access this by using the syntax" @@ -211,7 +211,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "dcceaea9", + "id": "b72a420e", "metadata": {}, "outputs": [ { @@ -237,7 +237,7 @@ }, { "cell_type": "markdown", - "id": "fa2e54fe", + "id": "7c0a868b", "metadata": {}, "source": [ "From the output above, we can see that every value in `img[:, :, 0]` is an integer value between 0 and 255, representing the level of red in each corresponding image pixel (keep in mind that this might be different if you\n", @@ -249,7 +249,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "3cfbc769", + "id": "e649b174", "metadata": {}, "outputs": [ { @@ -269,7 +269,7 @@ }, { "cell_type": "markdown", - "id": "7edebec5", + "id": "dd6f3c13", "metadata": {}, "source": [ "Since we are going to perform linear algebra operations on this data, it might be more interesting to have real numbers between 0 and 1 in each entry of the matrices to represent the RGB values. We can do that by setting" @@ -278,7 +278,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "eb9d0f37", + "id": "7f1bad5b", "metadata": {}, "outputs": [], "source": [ @@ -287,7 +287,7 @@ }, { "cell_type": "markdown", - "id": "fe3bb926", + "id": "de7b4371", "metadata": {}, "source": [ "This operation, dividing an array by a scalar, works because of NumPy's [broadcasting rules](https://numpy.org/devdocs/user/theory.broadcasting.html#array-broadcasting-in-numpy). (Note that in real-world applications, it would be better to use, for example, the [img_as_float](https://scikit-image.org/docs/stable/api/skimage.html#skimage.img_as_float) utility function from `scikit-image`).\n", @@ -299,7 +299,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "11ad9712", + "id": "476e2330", "metadata": {}, "outputs": [ { @@ -319,7 +319,7 @@ }, { "cell_type": "markdown", - "id": "b5bb68a4", + "id": "6d0d9436", "metadata": {}, "source": [ "or checking the type of data in the array:" @@ -328,7 +328,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "c52a098f", + "id": "1f3a8163", "metadata": {}, "outputs": [ { @@ -348,7 +348,7 @@ }, { "cell_type": "markdown", - "id": "89bd2c17", + "id": "287e7710", "metadata": {}, "source": [ "Note that we can assign each color channel to a separate matrix using the slice syntax:" @@ -357,7 +357,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "eca693f4", + "id": "0e69fe01", "metadata": {}, "outputs": [], "source": [ @@ -368,7 +368,7 @@ }, { "cell_type": "markdown", - "id": "306575e3", + "id": "b7e054f9", "metadata": {}, "source": [ "### Operations on an axis\n", @@ -378,7 +378,7 @@ }, { "cell_type": "markdown", - "id": "2e723004", + "id": "f70a1cd0", "metadata": {}, "source": [ "**Note**: We will use NumPy's linear algebra module, [numpy.linalg](https://numpy.org/devdocs/reference/routines.linalg.html#module-numpy.linalg), to perform the operations in this tutorial. Most of the linear algebra functions in this module can also be found in [scipy.linalg](https://docs.scipy.org/doc/scipy/reference/linalg.html#module-scipy.linalg), and users are encouraged to use the [scipy](https://docs.scipy.org/doc/scipy/reference/index.html#module-scipy) module for real-world applications. However, some functions in the [scipy.linalg](https://docs.scipy.org/doc/scipy/reference/linalg.html#module-scipy.linalg) module, such as the SVD function, only support 2D arrays. For more information on this, check the [scipy.linalg page](https://docs.scipy.org/doc/scipy/tutorial/linalg.html)." @@ -386,7 +386,7 @@ }, { "cell_type": "markdown", - "id": "bc54924b", + "id": "144512a9", "metadata": {}, "source": [ "To proceed, import the linear algebra submodule from NumPy:" @@ -395,7 +395,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "498531b7", + "id": "74cd9997", "metadata": {}, "outputs": [], "source": [ @@ -404,7 +404,7 @@ }, { "cell_type": "markdown", - "id": "92399783", + "id": "3950439f", "metadata": {}, "source": [ "In order to extract information from a given matrix, we can use the SVD to obtain 3 arrays which can be multiplied to obtain the original matrix. From the theory of linear algebra, given a matrix $A$, the following product can be computed:\n", @@ -424,7 +424,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "64f4d689", + "id": "7223a10b", "metadata": {}, "outputs": [], "source": [ @@ -433,7 +433,7 @@ }, { "cell_type": "markdown", - "id": "89b492f0", + "id": "a12d4756", "metadata": {}, "source": [ "Now, `img_gray` has shape" @@ -442,7 +442,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "143d489c", + "id": "e58c11ab", "metadata": {}, "outputs": [ { @@ -462,7 +462,7 @@ }, { "cell_type": "markdown", - "id": "42ecbf2e", + "id": "0716b3ee", "metadata": {}, "source": [ "To see if this makes sense in our image, we should use a colormap from `matplotlib` corresponding to the color we wish to see in out image (otherwise, `matplotlib` will default to a colormap that does not correspond to the real data).\n", @@ -473,7 +473,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "e24f9e11", + "id": "108412a3", "metadata": {}, "outputs": [ { @@ -494,7 +494,7 @@ }, { "cell_type": "markdown", - "id": "16f0d582", + "id": "ec688e39", "metadata": {}, "source": [ "Now, applying the [linalg.svd](https://numpy.org/devdocs/reference/generated/numpy.linalg.svd.html#numpy.linalg.svd) function to this matrix, we obtain the following decomposition:" @@ -503,7 +503,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "d75f3826", + "id": "1ea89d14", "metadata": {}, "outputs": [], "source": [ @@ -512,7 +512,7 @@ }, { "cell_type": "markdown", - "id": "b39ba8b7", + "id": "27f2ecb8", "metadata": {}, "source": [ "**Note** If you are using your own image, this command might take a while to run, depending on the size of your image and your hardware. Don't worry, this is normal! The SVD can be a pretty intensive computation." @@ -520,7 +520,7 @@ }, { "cell_type": "markdown", - "id": "e882ef40", + "id": "b865a04d", "metadata": {}, "source": [ "Let's check that this is what we expected:" @@ -529,7 +529,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "7234b41f", + "id": "bf4393c3", "metadata": {}, "outputs": [ { @@ -549,7 +549,7 @@ }, { "cell_type": "markdown", - "id": "1ab4d65a", + "id": "a80c3a75", "metadata": {}, "source": [ "Note that `s` has a particular shape: it has only one dimension. This means that some linear algebra functions that expect 2d arrays might not work. For example, from the theory, one might expect `s` and `Vt` to be\n", @@ -565,7 +565,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "6cf11637", + "id": "a7541fa0", "metadata": {}, "outputs": [], "source": [ @@ -577,7 +577,7 @@ }, { "cell_type": "markdown", - "id": "648de420", + "id": "1a4b7d22", "metadata": {}, "source": [ "Now, we want to check if the reconstructed `U @ Sigma @ Vt` is close to the original `img_gray` matrix." @@ -585,7 +585,7 @@ }, { "cell_type": "markdown", - "id": "30ac08cf", + "id": "117cb10b", "metadata": {}, "source": [ "## Approximation\n", @@ -596,7 +596,7 @@ { "cell_type": "code", "execution_count": 20, - "id": "bde7668e", + "id": "ce6bec4e", "metadata": {}, "outputs": [ { @@ -616,7 +616,7 @@ }, { "cell_type": "markdown", - "id": "a6441408", + "id": "67b18335", "metadata": {}, "source": [ "(The actual result of this operation might be different depending on your architecture and linear algebra setup. Regardless, you should see a small number.)\n", @@ -627,7 +627,7 @@ { "cell_type": "code", "execution_count": 21, - "id": "d3c7e9d7", + "id": "fcfab9e4", "metadata": {}, "outputs": [ { @@ -647,7 +647,7 @@ }, { "cell_type": "markdown", - "id": "6bfb9676", + "id": "f5c1c587", "metadata": {}, "source": [ "To see if an approximation is reasonable, we can check the values in `s`:" @@ -656,7 +656,7 @@ { "cell_type": "code", "execution_count": 22, - "id": "330852af", + "id": "450cbc0f", "metadata": {}, "outputs": [ { @@ -677,7 +677,7 @@ }, { "cell_type": "markdown", - "id": "cfa56153", + "id": "f10ef8f5", "metadata": {}, "source": [ "In the graph, we can see that although we have 768 singular values in `s`, most of those (after the 150th entry or so) are pretty small. So it might make sense to use only the information related to the first (say, 50) *singular values* to build a more economical approximation to our image.\n", @@ -690,7 +690,7 @@ { "cell_type": "code", "execution_count": 23, - "id": "14cb182b", + "id": "dee35b20", "metadata": {}, "outputs": [], "source": [ @@ -699,7 +699,7 @@ }, { "cell_type": "markdown", - "id": "23f21e11", + "id": "4807b672", "metadata": {}, "source": [ "we can build the approximation by doing" @@ -708,7 +708,7 @@ { "cell_type": "code", "execution_count": 24, - "id": "d8c3e355", + "id": "3b2cce28", "metadata": {}, "outputs": [], "source": [ @@ -717,7 +717,7 @@ }, { "cell_type": "markdown", - "id": "e284dfc7", + "id": "4476cf61", "metadata": {}, "source": [ "Note that we had to use only the first `k` rows of `Vt`, since all other rows would be multiplied by the zeros corresponding to the singular values we eliminated from this approximation." @@ -726,7 +726,7 @@ { "cell_type": "code", "execution_count": 25, - "id": "e7b2447d", + "id": "7b937fe3", "metadata": {}, "outputs": [ { @@ -747,7 +747,7 @@ }, { "cell_type": "markdown", - "id": "ac525857", + "id": "c3314308", "metadata": {}, "source": [ "Now, you can go ahead and repeat this experiment with other values of `k`, and each of your experiments should give you a slightly better (or worse) image depending on the value you choose." @@ -755,7 +755,7 @@ }, { "cell_type": "markdown", - "id": "1aad0434", + "id": "7bbee310", "metadata": {}, "source": [ "### Applying to all colors\n", @@ -771,7 +771,7 @@ { "cell_type": "code", "execution_count": 26, - "id": "fbc069e7", + "id": "ee285b4d", "metadata": {}, "outputs": [ { @@ -791,7 +791,7 @@ }, { "cell_type": "markdown", - "id": "8a75cee5", + "id": "f8debec8", "metadata": {}, "source": [ "so we need to permutate the axis on this array to get a shape like `(3, 768, 1024)`. Fortunately, the [numpy.transpose](https://numpy.org/devdocs/reference/generated/numpy.transpose.html#numpy.transpose) function can do that for us:\n", @@ -806,7 +806,7 @@ { "cell_type": "code", "execution_count": 27, - "id": "6bb37a57", + "id": "97def504", "metadata": {}, "outputs": [ { @@ -827,7 +827,7 @@ }, { "cell_type": "markdown", - "id": "af75ab7a", + "id": "6bd180de", "metadata": {}, "source": [ "Now we are ready to apply the SVD:" @@ -836,7 +836,7 @@ { "cell_type": "code", "execution_count": 28, - "id": "5f594f40", + "id": "06b31b0d", "metadata": {}, "outputs": [], "source": [ @@ -845,7 +845,7 @@ }, { "cell_type": "markdown", - "id": "1f778322", + "id": "e13471cf", "metadata": {}, "source": [ "Finally, to obtain the full approximated image, we need to reassemble these matrices into the approximation. Now, note that" @@ -854,7 +854,7 @@ { "cell_type": "code", "execution_count": 29, - "id": "765634f2", + "id": "5c3ffb10", "metadata": {}, "outputs": [ { @@ -874,7 +874,7 @@ }, { "cell_type": "markdown", - "id": "497cafb8", + "id": "3f67afef", "metadata": {}, "source": [ "To build the final approximation matrix, we must understand how multiplication across different axes works." @@ -882,7 +882,7 @@ }, { "cell_type": "markdown", - "id": "5cc9e120", + "id": "ad43b9e3", "metadata": {}, "source": [ "### Products with n-dimensional arrays\n", @@ -895,7 +895,7 @@ { "cell_type": "code", "execution_count": 30, - "id": "8225d1fe", + "id": "49d4d4ed", "metadata": {}, "outputs": [], "source": [ @@ -906,7 +906,7 @@ }, { "cell_type": "markdown", - "id": "a5cc58de", + "id": "86124ae2", "metadata": {}, "source": [ "Now, if we wish to rebuild the full SVD (with no approximation), we can do" @@ -915,7 +915,7 @@ { "cell_type": "code", "execution_count": 31, - "id": "af0ddad2", + "id": "af0a9a26", "metadata": {}, "outputs": [], "source": [ @@ -924,7 +924,7 @@ }, { "cell_type": "markdown", - "id": "0420f3b0", + "id": "32bf9f61", "metadata": {}, "source": [ "Note that" @@ -933,7 +933,7 @@ { "cell_type": "code", "execution_count": 32, - "id": "24f3d777", + "id": "c568e252", "metadata": {}, "outputs": [ { @@ -953,7 +953,7 @@ }, { "cell_type": "markdown", - "id": "5d5dfa5b", + "id": "36735e18", "metadata": {}, "source": [ "The reconstructed image should be indistinguishable from the original one, except for differences due to floating point errors from the reconstruction. Recall that our original image consisted of floating point values in the range `[0., 1.]`. The accumulation of floating point error from the reconstruction can result in values slightly outside this original range:" @@ -962,7 +962,7 @@ { "cell_type": "code", "execution_count": 33, - "id": "b7db44f9", + "id": "6bc72a89", "metadata": {}, "outputs": [ { @@ -982,7 +982,7 @@ }, { "cell_type": "markdown", - "id": "fa08317e", + "id": "24bdbd0d", "metadata": {}, "source": [ "Since `imshow` expects values in the range, we can use `clip` to excise the floating point error:" @@ -991,7 +991,7 @@ { "cell_type": "code", "execution_count": 34, - "id": "87c669d2", + "id": "ce689748", "metadata": {}, "outputs": [ { @@ -1013,7 +1013,7 @@ }, { "cell_type": "markdown", - "id": "695da8f3", + "id": "71db0b6b", "metadata": {}, "source": [ "In fact, `imshow` peforms this clipping under-the-hood, so if you skip the first line in the previous code cell, you might see a warning message saying `\"Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).\"`\n", @@ -1024,7 +1024,7 @@ { "cell_type": "code", "execution_count": 35, - "id": "ef10cc22", + "id": "5997dd7d", "metadata": {}, "outputs": [], "source": [ @@ -1033,7 +1033,7 @@ }, { "cell_type": "markdown", - "id": "d2548436", + "id": "efd49900", "metadata": {}, "source": [ "You can see that we have selected only the first `k` components of the last axis for `Sigma` (this means that we have used only the first `k` columns of each of the three matrices in the stack), and that we have selected only the first `k` components in the second-to-last axis of `Vt` (this means we have selected only the first `k` rows from every matrix in the stack `Vt` and all columns). If you are unfamiliar with the ellipsis syntax, it is a\n", @@ -1045,7 +1045,7 @@ { "cell_type": "code", "execution_count": 36, - "id": "13d7e9af", + "id": "ca13ecaf", "metadata": {}, "outputs": [ { @@ -1065,7 +1065,7 @@ }, { "cell_type": "markdown", - "id": "0327322b", + "id": "82e1e51b", "metadata": {}, "source": [ "which is not the right shape for showing the image. Finally, reordering the axes back to our original shape of `(768, 1024, 3)`, we can see our approximation:" @@ -1074,7 +1074,7 @@ { "cell_type": "code", "execution_count": 37, - "id": "32f2f327", + "id": "a7a2aa72", "metadata": {}, "outputs": [ { @@ -1102,7 +1102,7 @@ }, { "cell_type": "markdown", - "id": "21fb57d9", + "id": "002b7a1b", "metadata": {}, "source": [ "Even though the image is not as sharp, using a small number of `k` singular values (compared to the original set of 768 values), we can recover many of the distinguishing features from this image." @@ -1110,7 +1110,7 @@ }, { "cell_type": "markdown", - "id": "819f7d02", + "id": "8f963c89", "metadata": {}, "source": [ "### Final words\n", diff --git a/_sources/content/tutorial-x-ray-image-processing.ipynb b/_sources/content/tutorial-x-ray-image-processing.ipynb index 1de35d9b..344c33cf 100644 --- a/_sources/content/tutorial-x-ray-image-processing.ipynb +++ b/_sources/content/tutorial-x-ray-image-processing.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "a961bbef", + "id": "2d990475", "metadata": {}, "source": [ "# X-ray image processing" @@ -10,7 +10,7 @@ }, { "cell_type": "markdown", - "id": "ceccb485", + "id": "a308e93b", "metadata": {}, "source": [ "This tutorial demonstrates how to read and process X-ray images with NumPy,\n", @@ -53,7 +53,7 @@ }, { "cell_type": "markdown", - "id": "7c554693", + "id": "aeb97e4f", "metadata": {}, "source": [ "## Prerequisites" @@ -61,7 +61,7 @@ }, { "cell_type": "markdown", - "id": "bdea5b6d", + "id": "adb42afa", "metadata": {}, "source": [ "The reader should have some knowledge of Python, NumPy arrays, and Matplotlib.\n", @@ -91,7 +91,7 @@ }, { "cell_type": "markdown", - "id": "6550831e", + "id": "4d27778d", "metadata": {}, "source": [ "## Table of contents" @@ -99,7 +99,7 @@ }, { "cell_type": "markdown", - "id": "f1fbbc63", + "id": "d0a6e16d", "metadata": {}, "source": [ "1. Examine an X-ray with `imageio`\n", @@ -114,7 +114,7 @@ }, { "cell_type": "markdown", - "id": "7c82369d", + "id": "84301bd4", "metadata": {}, "source": [ "## Examine an X-ray with `imageio`" @@ -122,7 +122,7 @@ }, { "cell_type": "markdown", - "id": "f8e9e763", + "id": "b44209de", "metadata": {}, "source": [ "Let's begin with a simple example using just one X-ray image from the\n", @@ -134,7 +134,7 @@ }, { "cell_type": "markdown", - "id": "67e99999", + "id": "a73ecc0c", "metadata": {}, "source": [ "**1.** Load the image with `imageio`:" @@ -143,7 +143,7 @@ { "cell_type": "code", "execution_count": 1, - "id": "bf83b18f", + "id": "191687c3", "metadata": {}, "outputs": [], "source": [ @@ -157,7 +157,7 @@ }, { "cell_type": "markdown", - "id": "ea4aca61", + "id": "f960cd49", "metadata": {}, "source": [ "**2.** Check that its shape is 1024x1024 pixels and that the array is made up of\n", @@ -167,7 +167,7 @@ { "cell_type": "code", "execution_count": 2, - "id": "9de2094a", + "id": "6bf78212", "metadata": {}, "outputs": [ { @@ -186,7 +186,7 @@ }, { "cell_type": "markdown", - "id": "40f5be08", + "id": "740e307d", "metadata": {}, "source": [ "**3.** Import `matplotlib` and display the image in a grayscale colormap:" @@ -195,7 +195,7 @@ { "cell_type": "code", "execution_count": 3, - "id": "1c9cfb1b", + "id": "fff0c750", "metadata": {}, "outputs": [ { @@ -219,7 +219,7 @@ }, { "cell_type": "markdown", - "id": "f2095585", + "id": "e1b1e20c", "metadata": {}, "source": [ "## Combine images into a multidimensional array to demonstrate progression" @@ -227,7 +227,7 @@ }, { "cell_type": "markdown", - "id": "d7d05eb7", + "id": "e44b2d3d", "metadata": {}, "source": [ "In the next example, instead of 1 image you'll use 9 X-ray 1024x1024-pixel\n", @@ -242,7 +242,7 @@ { "cell_type": "code", "execution_count": 4, - "id": "748bd383", + "id": "00ee8449", "metadata": {}, "outputs": [], "source": [ @@ -256,7 +256,7 @@ }, { "cell_type": "markdown", - "id": "e4daa9a6", + "id": "24d8e8c5", "metadata": {}, "source": [ "**2.** Check the shape of the new X-ray image array containing 9 stacked images:" @@ -265,7 +265,7 @@ { "cell_type": "code", "execution_count": 5, - "id": "8ecfcf55", + "id": "6aa1477a", "metadata": {}, "outputs": [ { @@ -285,7 +285,7 @@ }, { "cell_type": "markdown", - "id": "2dff8b13", + "id": "95d05626", "metadata": {}, "source": [ "Note that the shape in the first dimension matches `num_imgs`, so the\n", @@ -298,7 +298,7 @@ { "cell_type": "code", "execution_count": 6, - "id": "9f77546a", + "id": "3b058f92", "metadata": {}, "outputs": [ { @@ -322,7 +322,7 @@ }, { "cell_type": "markdown", - "id": "72d09b0c", + "id": "ef160541", "metadata": {}, "source": [ "**4.** In addition, it can be helpful to show the progress as an animation.\n", @@ -333,7 +333,7 @@ { "cell_type": "code", "execution_count": 7, - "id": "8ab46f2f", + "id": "bda73cc6", "metadata": {}, "outputs": [], "source": [ @@ -343,7 +343,7 @@ }, { "cell_type": "markdown", - "id": "f00dc573", + "id": "7414fdda", "metadata": {}, "source": [ "Which gives us:\n", @@ -353,7 +353,7 @@ }, { "cell_type": "markdown", - "id": "1315d9f4", + "id": "de0f0ac3", "metadata": {}, "source": [ "When processing biomedical data, it can be useful to emphasize the 2D\n", @@ -365,7 +365,7 @@ }, { "cell_type": "markdown", - "id": "46397f3e", + "id": "a872af06", "metadata": {}, "source": [ "### The Laplace filter with Gaussian second derivatives\n", @@ -382,7 +382,7 @@ }, { "cell_type": "markdown", - "id": "d7b8abd7", + "id": "6ab17ab4", "metadata": {}, "source": [ "- The implementation of the Laplacian-Gaussian filter is relatively\n", @@ -395,7 +395,7 @@ { "cell_type": "code", "execution_count": 8, - "id": "dc0a8d8e", + "id": "ac0f9818", "metadata": {}, "outputs": [], "source": [ @@ -406,7 +406,7 @@ }, { "cell_type": "markdown", - "id": "8daba129", + "id": "7db065be", "metadata": {}, "source": [ "Display the original X-ray and the one with the Laplacian-Gaussian filter:" @@ -415,7 +415,7 @@ { "cell_type": "code", "execution_count": 9, - "id": "c8b4f804", + "id": "a031c671", "metadata": {}, "outputs": [ { @@ -443,7 +443,7 @@ }, { "cell_type": "markdown", - "id": "0f4cc863", + "id": "03c49dc5", "metadata": {}, "source": [ "### The Gaussian gradient magnitude method\n", @@ -458,7 +458,7 @@ }, { "cell_type": "markdown", - "id": "01ea7d30", + "id": "f25debce", "metadata": {}, "source": [ "**1.** Call [`scipy.ndimage.gaussian_gradient_magnitude()`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.gaussian_gradient_magnitude.html)\n", @@ -469,7 +469,7 @@ { "cell_type": "code", "execution_count": 10, - "id": "66c46cac", + "id": "467df366", "metadata": {}, "outputs": [], "source": [ @@ -478,7 +478,7 @@ }, { "cell_type": "markdown", - "id": "2733685e", + "id": "a7f3a78a", "metadata": {}, "source": [ "**2.** Display the original X-ray and the one with the Gaussian gradient filter:" @@ -487,7 +487,7 @@ { "cell_type": "code", "execution_count": 11, - "id": "c07c7b97", + "id": "6c30afd8", "metadata": {}, "outputs": [ { @@ -515,7 +515,7 @@ }, { "cell_type": "markdown", - "id": "9d8dde22", + "id": "e7dadbf9", "metadata": {}, "source": [ "### The Sobel-Feldman operator (the Sobel filter)\n", @@ -532,7 +532,7 @@ }, { "cell_type": "markdown", - "id": "6e36ed89", + "id": "e2fce240", "metadata": {}, "source": [ "**1.** Use the Sobel filters — ([`scipy.ndimage.sobel()`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.sobel.html))\n", @@ -552,7 +552,7 @@ { "cell_type": "code", "execution_count": 12, - "id": "61d9b2c8", + "id": "34b6b590", "metadata": {}, "outputs": [], "source": [ @@ -566,7 +566,7 @@ }, { "cell_type": "markdown", - "id": "281d47a0", + "id": "8ced8465", "metadata": {}, "source": [ "**2.** Change the new image array data type to the 32-bit floating-point format\n", @@ -577,7 +577,7 @@ { "cell_type": "code", "execution_count": 13, - "id": "ce3c345a", + "id": "1ba68a1e", "metadata": {}, "outputs": [ { @@ -599,7 +599,7 @@ }, { "cell_type": "markdown", - "id": "38a4cf6e", + "id": "24bef455", "metadata": {}, "source": [ "**3.** Display the original X-ray and the one with the Sobel \"edge\" filter\n", @@ -610,7 +610,7 @@ { "cell_type": "code", "execution_count": 14, - "id": "9dcaf8cc", + "id": "6c7fe72a", "metadata": {}, "outputs": [ { @@ -640,7 +640,7 @@ }, { "cell_type": "markdown", - "id": "f544821c", + "id": "1419db43", "metadata": {}, "source": [ "### The Canny filter\n", @@ -665,7 +665,7 @@ }, { "cell_type": "markdown", - "id": "c2634192", + "id": "5b214e0a", "metadata": {}, "source": [ "**1.** Use SciPy's Fourier filters — [`scipy.ndimage.fourier_gaussian()`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.ndimage.fourier_gaussian.html)\n", @@ -679,7 +679,7 @@ { "cell_type": "code", "execution_count": 15, - "id": "e1e8161a", + "id": "1471490b", "metadata": {}, "outputs": [ { @@ -705,7 +705,7 @@ }, { "cell_type": "markdown", - "id": "da151ebe", + "id": "3c58f073", "metadata": {}, "source": [ "**2.** Plot the original X-ray image and the ones with the edges detected with\n", @@ -716,7 +716,7 @@ { "cell_type": "code", "execution_count": 16, - "id": "c42addd6", + "id": "cf20de27", "metadata": {}, "outputs": [ { @@ -748,7 +748,7 @@ }, { "cell_type": "markdown", - "id": "6f9e6582", + "id": "b53dd9a1", "metadata": {}, "source": [ "## Apply masks to X-rays with `np.where()`" @@ -756,7 +756,7 @@ }, { "cell_type": "markdown", - "id": "7d76076f", + "id": "e063b74c", "metadata": {}, "source": [ "To screen out only certain pixels in X-ray images to help detect particular\n", @@ -771,7 +771,7 @@ }, { "cell_type": "markdown", - "id": "8a2b44ba", + "id": "d9e35c30", "metadata": {}, "source": [ "**1.** Retrieve some basics statistics about the pixel values in the original\n", @@ -781,7 +781,7 @@ { "cell_type": "code", "execution_count": 17, - "id": "0d5bc241", + "id": "536a143b", "metadata": {}, "outputs": [ { @@ -806,7 +806,7 @@ }, { "cell_type": "markdown", - "id": "4578b558", + "id": "3499a323", "metadata": {}, "source": [ "**2.** The array data type is `uint8` and the minimum/maximum value results\n", @@ -818,7 +818,7 @@ { "cell_type": "code", "execution_count": 18, - "id": "b4e22c6b", + "id": "c54b3369", "metadata": {}, "outputs": [ { @@ -844,7 +844,7 @@ }, { "cell_type": "markdown", - "id": "875fc0c8", + "id": "61c100a8", "metadata": {}, "source": [ "As the pixel intensity distribution suggests, there are many low (between around\n", @@ -858,7 +858,7 @@ { "cell_type": "code", "execution_count": 19, - "id": "c2e73a05", + "id": "cbb61e74", "metadata": {}, "outputs": [ { @@ -885,7 +885,7 @@ { "cell_type": "code", "execution_count": 20, - "id": "c6de49a6", + "id": "ecb70de9", "metadata": {}, "outputs": [ { @@ -911,7 +911,7 @@ }, { "cell_type": "markdown", - "id": "732593dd", + "id": "aa53e045", "metadata": {}, "source": [ "## Compare the results" @@ -919,7 +919,7 @@ }, { "cell_type": "markdown", - "id": "467d4d5c", + "id": "78a7c753", "metadata": {}, "source": [ "Let's display some of the results of processed X-ray images you've worked with\n", @@ -929,7 +929,7 @@ { "cell_type": "code", "execution_count": 21, - "id": "e8fb873b", + "id": "5f62b6ab", "metadata": {}, "outputs": [ { @@ -971,7 +971,7 @@ }, { "cell_type": "markdown", - "id": "54f0b80f", + "id": "d2233818", "metadata": {}, "source": [ "## Next steps" @@ -979,7 +979,7 @@ }, { "cell_type": "markdown", - "id": "7f4a3f70", + "id": "3cb0d032", "metadata": {}, "source": [ "If you want to use your own samples, you can use\n", diff --git a/_static/scripts/bootstrap.js b/_static/scripts/bootstrap.js index bda8a602..4e209b0e 100644 --- a/_static/scripts/bootstrap.js +++ b/_static/scripts/bootstrap.js @@ -1,3 +1,3 @@ /*! For license information please see bootstrap.js.LICENSE.txt */ -(()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{afterMain:()=>w,afterRead:()=>b,afterWrite:()=>T,applyStyles:()=>D,arrow:()=>G,auto:()=>r,basePlacements:()=>a,beforeMain:()=>v,beforeRead:()=>g,beforeWrite:()=>E,bottom:()=>n,clippingParents:()=>h,computeStyles:()=>et,createPopper:()=>St,createPopperBase:()=>Lt,createPopperLite:()=>Dt,detectOverflow:()=>gt,end:()=>c,eventListeners:()=>nt,flip:()=>_t,hide:()=>yt,left:()=>o,main:()=>y,modifierPhases:()=>C,offset:()=>wt,placements:()=>m,popper:()=>u,popperGenerator:()=>kt,popperOffsets:()=>Et,preventOverflow:()=>At,read:()=>_,reference:()=>f,right:()=>s,start:()=>l,top:()=>i,variationPlacements:()=>p,viewport:()=>d,write:()=>A});var i="top",n="bottom",s="right",o="left",r="auto",a=[i,n,s,o],l="start",c="end",h="clippingParents",d="viewport",u="popper",f="reference",p=a.reduce((function(t,e){return t.concat([e+"-"+l,e+"-"+c])}),[]),m=[].concat(a,[r]).reduce((function(t,e){return t.concat([e,e+"-"+l,e+"-"+c])}),[]),g="beforeRead",_="read",b="afterRead",v="beforeMain",y="main",w="afterMain",E="beforeWrite",A="write",T="afterWrite",C=[g,_,b,v,y,w,E,A,T];function O(t){return t?(t.nodeName||"").toLowerCase():null}function x(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function k(t){return t instanceof x(t).Element||t instanceof Element}function L(t){return t instanceof x(t).HTMLElement||t instanceof HTMLElement}function S(t){return"undefined"!=typeof ShadowRoot&&(t instanceof x(t).ShadowRoot||t instanceof ShadowRoot)}const D={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];L(s)&&O(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});L(n)&&O(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function $(t){return t.split("-")[0]}var I=Math.max,N=Math.min,P=Math.round;function M(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function j(){return!/^((?!chrome|android).)*safari/i.test(M())}function F(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&L(t)&&(s=t.offsetWidth>0&&P(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&P(n.height)/t.offsetHeight||1);var r=(k(t)?x(t):window).visualViewport,a=!j()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function H(t){var e=F(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function B(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&S(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function W(t){return x(t).getComputedStyle(t)}function z(t){return["table","td","th"].indexOf(O(t))>=0}function R(t){return((k(t)?t.ownerDocument:t.document)||window.document).documentElement}function q(t){return"html"===O(t)?t:t.assignedSlot||t.parentNode||(S(t)?t.host:null)||R(t)}function V(t){return L(t)&&"fixed"!==W(t).position?t.offsetParent:null}function Y(t){for(var e=x(t),i=V(t);i&&z(i)&&"static"===W(i).position;)i=V(i);return i&&("html"===O(i)||"body"===O(i)&&"static"===W(i).position)?e:i||function(t){var e=/firefox/i.test(M());if(/Trident/i.test(M())&&L(t)&&"fixed"===W(t).position)return null;var i=q(t);for(S(i)&&(i=i.host);L(i)&&["html","body"].indexOf(O(i))<0;){var n=W(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function K(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Q(t,e,i){return I(t,N(e,i))}function X(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function U(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const G={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r=t.state,l=t.name,c=t.options,h=r.elements.arrow,d=r.modifiersData.popperOffsets,u=$(r.placement),f=K(u),p=[o,s].indexOf(u)>=0?"height":"width";if(h&&d){var m=function(t,e){return X("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:U(t,a))}(c.padding,r),g=H(h),_="y"===f?i:o,b="y"===f?n:s,v=r.rects.reference[p]+r.rects.reference[f]-d[f]-r.rects.popper[p],y=d[f]-r.rects.reference[f],w=Y(h),E=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,A=v/2-y/2,T=m[_],C=E-g[p]-m[b],O=E/2-g[p]/2+A,x=Q(T,O,C),k=f;r.modifiersData[l]=((e={})[k]=x,e.centerOffset=x-O,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&B(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function J(t){return t.split("-")[1]}var Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tt(t){var e,r=t.popper,a=t.popperRect,l=t.placement,h=t.variation,d=t.offsets,u=t.position,f=t.gpuAcceleration,p=t.adaptive,m=t.roundOffsets,g=t.isFixed,_=d.x,b=void 0===_?0:_,v=d.y,y=void 0===v?0:v,w="function"==typeof m?m({x:b,y}):{x:b,y};b=w.x,y=w.y;var E=d.hasOwnProperty("x"),A=d.hasOwnProperty("y"),T=o,C=i,O=window;if(p){var k=Y(r),L="clientHeight",S="clientWidth";k===x(r)&&"static"!==W(k=R(r)).position&&"absolute"===u&&(L="scrollHeight",S="scrollWidth"),(l===i||(l===o||l===s)&&h===c)&&(C=n,y-=(g&&k===O&&O.visualViewport?O.visualViewport.height:k[L])-a.height,y*=f?1:-1),l!==o&&(l!==i&&l!==n||h!==c)||(T=s,b-=(g&&k===O&&O.visualViewport?O.visualViewport.width:k[S])-a.width,b*=f?1:-1)}var D,$=Object.assign({position:u},p&&Z),I=!0===m?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:P(i*s)/s||0,y:P(n*s)/s||0}}({x:b,y},x(r)):{x:b,y};return b=I.x,y=I.y,f?Object.assign({},$,((D={})[C]=A?"0":"",D[T]=E?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",D)):Object.assign({},$,((e={})[C]=A?y+"px":"",e[T]=E?b+"px":"",e.transform="",e))}const et={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:$(e.placement),variation:J(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,tt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,tt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var it={passive:!0};const nt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=x(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,it)})),a&&l.addEventListener("resize",i.update,it),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,it)})),a&&l.removeEventListener("resize",i.update,it)}},data:{}};var st={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(t){return t.replace(/left|right|bottom|top/g,(function(t){return st[t]}))}var rt={start:"end",end:"start"};function at(t){return t.replace(/start|end/g,(function(t){return rt[t]}))}function lt(t){var e=x(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ct(t){return F(R(t)).left+lt(t).scrollLeft}function ht(t){var e=W(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function dt(t){return["html","body","#document"].indexOf(O(t))>=0?t.ownerDocument.body:L(t)&&ht(t)?t:dt(q(t))}function ut(t,e){var i;void 0===e&&(e=[]);var n=dt(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=x(n),r=s?[o].concat(o.visualViewport||[],ht(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(ut(q(r)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function pt(t,e,i){return e===d?ft(function(t,e){var i=x(t),n=R(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=j();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+ct(t),y:l}}(t,i)):k(e)?function(t,e){var i=F(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ft(function(t){var e,i=R(t),n=lt(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=I(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=I(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+ct(t),l=-n.scrollTop;return"rtl"===W(s||i).direction&&(a+=I(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(R(t)))}function mt(t){var e,r=t.reference,a=t.element,h=t.placement,d=h?$(h):null,u=h?J(h):null,f=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2;switch(d){case i:e={x:f,y:r.y-a.height};break;case n:e={x:f,y:r.y+r.height};break;case s:e={x:r.x+r.width,y:p};break;case o:e={x:r.x-a.width,y:p};break;default:e={x:r.x,y:r.y}}var m=d?K(d):null;if(null!=m){var g="y"===m?"height":"width";switch(u){case l:e[m]=e[m]-(r[g]/2-a[g]/2);break;case c:e[m]=e[m]+(r[g]/2-a[g]/2)}}return e}function gt(t,e){void 0===e&&(e={});var o=e,r=o.placement,l=void 0===r?t.placement:r,c=o.strategy,p=void 0===c?t.strategy:c,m=o.boundary,g=void 0===m?h:m,_=o.rootBoundary,b=void 0===_?d:_,v=o.elementContext,y=void 0===v?u:v,w=o.altBoundary,E=void 0!==w&&w,A=o.padding,T=void 0===A?0:A,C=X("number"!=typeof T?T:U(T,a)),x=y===u?f:u,S=t.rects.popper,D=t.elements[E?x:y],$=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=ut(q(t)),i=["absolute","fixed"].indexOf(W(t).position)>=0&&L(t)?Y(t):t;return k(i)?e.filter((function(t){return k(t)&&B(t,i)&&"body"!==O(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=pt(t,i,n);return e.top=I(s.top,e.top),e.right=N(s.right,e.right),e.bottom=N(s.bottom,e.bottom),e.left=I(s.left,e.left),e}),pt(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(k(D)?D:D.contextElement||R(t.elements.popper),g,b,p),P=F(t.elements.reference),M=mt({reference:P,element:S,strategy:"absolute",placement:l}),j=ft(Object.assign({},S,M)),H=y===u?j:P,z={top:$.top-H.top+C.top,bottom:H.bottom-$.bottom+C.bottom,left:$.left-H.left+C.left,right:H.right-$.right+C.right},V=t.modifiersData.offset;if(y===u&&V){var K=V[l];Object.keys(z).forEach((function(t){var e=[s,n].indexOf(t)>=0?1:-1,o=[i,n].indexOf(t)>=0?"y":"x";z[t]+=K[o]*e}))}return z}const _t={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,c=t.options,h=t.name;if(!e.modifiersData[h]._skip){for(var d=c.mainAxis,u=void 0===d||d,f=c.altAxis,g=void 0===f||f,_=c.fallbackPlacements,b=c.padding,v=c.boundary,y=c.rootBoundary,w=c.altBoundary,E=c.flipVariations,A=void 0===E||E,T=c.allowedAutoPlacements,C=e.options.placement,O=$(C),x=_||(O!==C&&A?function(t){if($(t)===r)return[];var e=ot(t);return[at(t),e,at(e)]}(C):[ot(C)]),k=[C].concat(x).reduce((function(t,i){return t.concat($(i)===r?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,l=i.flipVariations,c=i.allowedAutoPlacements,h=void 0===c?m:c,d=J(n),u=d?l?p:p.filter((function(t){return J(t)===d})):a,f=u.filter((function(t){return h.indexOf(t)>=0}));0===f.length&&(f=u);var g=f.reduce((function(e,i){return e[i]=gt(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[$(i)],e}),{});return Object.keys(g).sort((function(t,e){return g[t]-g[e]}))}(e,{placement:i,boundary:v,rootBoundary:y,padding:b,flipVariations:A,allowedAutoPlacements:T}):i)}),[]),L=e.rects.reference,S=e.rects.popper,D=new Map,I=!0,N=k[0],P=0;P=0,B=H?"width":"height",W=gt(e,{placement:M,boundary:v,rootBoundary:y,altBoundary:w,padding:b}),z=H?F?s:o:F?n:i;L[B]>S[B]&&(z=ot(z));var R=ot(z),q=[];if(u&&q.push(W[j]<=0),g&&q.push(W[z]<=0,W[R]<=0),q.every((function(t){return t}))){N=M,I=!1;break}D.set(M,q)}if(I)for(var V=function(t){var e=k.find((function(e){var i=D.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return N=e,"break"},Y=A?3:1;Y>0&&"break"!==V(Y);Y--);e.placement!==N&&(e.modifiersData[h]._skip=!0,e.placement=N,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function vt(t){return[i,s,n,o].some((function(e){return t[e]>=0}))}const yt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=gt(e,{elementContext:"reference"}),a=gt(e,{altBoundary:!0}),l=bt(r,n),c=bt(a,s,o),h=vt(l),d=vt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,a=n.offset,l=void 0===a?[0,0]:a,c=m.reduce((function(t,n){return t[n]=function(t,e,n){var r=$(t),a=[o,i].indexOf(r)>=0?-1:1,l="function"==typeof n?n(Object.assign({},e,{placement:t})):n,c=l[0],h=l[1];return c=c||0,h=(h||0)*a,[o,s].indexOf(r)>=0?{x:h,y:c}:{x:c,y:h}}(n,e.rects,l),t}),{}),h=c[e.placement],d=h.x,u=h.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=c}},Et={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=mt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},At={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,a=t.name,c=r.mainAxis,h=void 0===c||c,d=r.altAxis,u=void 0!==d&&d,f=r.boundary,p=r.rootBoundary,m=r.altBoundary,g=r.padding,_=r.tether,b=void 0===_||_,v=r.tetherOffset,y=void 0===v?0:v,w=gt(e,{boundary:f,rootBoundary:p,padding:g,altBoundary:m}),E=$(e.placement),A=J(e.placement),T=!A,C=K(E),O="x"===C?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,L=e.rects.popper,S="function"==typeof y?y(Object.assign({},e.rects,{placement:e.placement})):y,D="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(x){if(h){var j,F="y"===C?i:o,B="y"===C?n:s,W="y"===C?"height":"width",z=x[C],R=z+w[F],q=z-w[B],V=b?-L[W]/2:0,X=A===l?k[W]:L[W],U=A===l?-L[W]:-k[W],G=e.elements.arrow,Z=b&&G?H(G):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[F],it=tt[B],nt=Q(0,k[W],Z[W]),st=T?k[W]/2-V-nt-et-D.mainAxis:X-nt-et-D.mainAxis,ot=T?-k[W]/2+V+nt+it+D.mainAxis:U+nt+it+D.mainAxis,rt=e.elements.arrow&&Y(e.elements.arrow),at=rt?"y"===C?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(j=null==P?void 0:P[C])?j:0,ct=z+ot-lt,ht=Q(b?N(R,z+st-lt-at):R,z,b?I(q,ct):q);x[C]=ht,M[C]=ht-z}if(u){var dt,ut="x"===C?i:o,ft="x"===C?n:s,pt=x[O],mt="y"===O?"height":"width",_t=pt+w[ut],bt=pt-w[ft],vt=-1!==[i,o].indexOf(E),yt=null!=(dt=null==P?void 0:P[O])?dt:0,wt=vt?_t:pt-k[mt]-L[mt]-yt+D.altAxis,Et=vt?pt+k[mt]+L[mt]-yt-D.altAxis:bt,At=b&&vt?function(t,e,i){var n=Q(t,e,i);return n>i?i:n}(wt,pt,Et):Q(b?wt:_t,pt,b?Et:bt);x[O]=At,M[O]=At-pt}e.modifiersData[a]=M}},requiresIfExists:["offset"]};function Tt(t,e,i){void 0===i&&(i=!1);var n,s,o=L(e),r=L(e)&&function(t){var e=t.getBoundingClientRect(),i=P(e.width)/t.offsetWidth||1,n=P(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=R(e),l=F(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==O(e)||ht(a))&&(c=(n=e)!==x(n)&&L(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:lt(n)),L(e)?((h=F(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=ct(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Ct(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function xt(){for(var t=arguments.length,e=new Array(t),i=0;i$t.has(t)&&$t.get(t).get(e)||null,remove(t,e){if(!$t.has(t))return;const i=$t.get(t);i.delete(e),0===i.size&&$t.delete(t)}},Nt="transitionend",Pt=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Mt=t=>{t.dispatchEvent(new Event(Nt))},jt=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Ft=t=>jt(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Pt(t)):null,Ht=t=>{if(!jt(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},Bt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Wt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Wt(t.parentNode):null},zt=()=>{},Rt=t=>{t.offsetHeight},qt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Vt=[],Yt=()=>"rtl"===document.documentElement.dir,Kt=t=>{var e;e=()=>{const e=qt();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(Vt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Vt)t()})),Vt.push(e)):e()},Qt=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,Xt=(t,e,i=!0)=>{if(!i)return void Qt(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const o=({target:i})=>{i===e&&(s=!0,e.removeEventListener(Nt,o),Qt(t))};e.addEventListener(Nt,o),setTimeout((()=>{s||Mt(e)}),n)},Ut=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},Gt=/[^.]*(?=\..*)\.|.*/,Jt=/\..*/,Zt=/::\d+$/,te={};let ee=1;const ie={mouseenter:"mouseover",mouseleave:"mouseout"},ne=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function se(t,e){return e&&`${e}::${ee++}`||t.uidEvent||ee++}function oe(t){const e=se(t);return t.uidEvent=e,te[e]=te[e]||{},te[e]}function re(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function ae(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=de(t);return ne.has(o)||(o=t),[n,s,o]}function le(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=ae(e,i,n);if(e in ie){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=oe(t),c=l[a]||(l[a]={}),h=re(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=se(r,e.replace(Gt,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return fe(s,{delegateTarget:r}),n.oneOff&&ue.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return fe(n,{delegateTarget:t}),i.oneOff&&ue.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function ce(t,e,i,n,s){const o=re(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function he(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&ce(t,e,i,r.callable,r.delegationSelector)}function de(t){return t=t.replace(Jt,""),ie[t]||t}const ue={on(t,e,i,n){le(t,e,i,n,!1)},one(t,e,i,n){le(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=ae(e,i,n),a=r!==e,l=oe(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))he(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(Zt,"");a&&!e.includes(s)||ce(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;ce(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=qt();let s=null,o=!0,r=!0,a=!1;e!==de(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=fe(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function fe(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function pe(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function me(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const ge={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${me(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${me(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=pe(t.dataset[n])}return e},getDataAttribute:(t,e)=>pe(t.getAttribute(`data-bs-${me(e)}`))};class _e{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=jt(e)?ge.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...jt(e)?ge.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,s]of Object.entries(e)){const e=t[n],o=jt(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}}class be extends _e{constructor(t,e){super(),(t=Ft(t))&&(this._element=t,this._config=this._getConfig(e),It.set(this._element,this.constructor.DATA_KEY,this))}dispose(){It.remove(this._element,this.constructor.DATA_KEY),ue.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Xt(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return It.get(Ft(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const ve=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?Pt(i.trim()):null}return e},ye={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!Bt(t)&&Ht(t)))},getSelectorFromElement(t){const e=ve(t);return e&&ye.findOne(e)?e:null},getElementFromSelector(t){const e=ve(t);return e?ye.findOne(e):null},getMultipleElementsFromSelector(t){const e=ve(t);return e?ye.find(e):[]}},we=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;ue.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Bt(this))return;const s=ye.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))},Ee=".bs.alert",Ae=`close${Ee}`,Te=`closed${Ee}`;class Ce extends be{static get NAME(){return"alert"}close(){if(ue.trigger(this._element,Ae).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),ue.trigger(this._element,Te),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Ce.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}we(Ce,"close"),Kt(Ce);const Oe='[data-bs-toggle="button"]';class xe extends be{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=xe.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}ue.on(document,"click.bs.button.data-api",Oe,(t=>{t.preventDefault();const e=t.target.closest(Oe);xe.getOrCreateInstance(e).toggle()})),Kt(xe);const ke=".bs.swipe",Le=`touchstart${ke}`,Se=`touchmove${ke}`,De=`touchend${ke}`,$e=`pointerdown${ke}`,Ie=`pointerup${ke}`,Ne={endCallback:null,leftCallback:null,rightCallback:null},Pe={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Me extends _e{constructor(t,e){super(),this._element=t,t&&Me.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Ne}static get DefaultType(){return Pe}static get NAME(){return"swipe"}dispose(){ue.off(this._element,ke)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Qt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Qt(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ue.on(this._element,$e,(t=>this._start(t))),ue.on(this._element,Ie,(t=>this._end(t))),this._element.classList.add("pointer-event")):(ue.on(this._element,Le,(t=>this._start(t))),ue.on(this._element,Se,(t=>this._move(t))),ue.on(this._element,De,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const je=".bs.carousel",Fe=".data-api",He="next",Be="prev",We="left",ze="right",Re=`slide${je}`,qe=`slid${je}`,Ve=`keydown${je}`,Ye=`mouseenter${je}`,Ke=`mouseleave${je}`,Qe=`dragstart${je}`,Xe=`load${je}${Fe}`,Ue=`click${je}${Fe}`,Ge="carousel",Je="active",Ze=".active",ti=".carousel-item",ei=Ze+ti,ii={ArrowLeft:ze,ArrowRight:We},ni={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},si={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class oi extends be{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ye.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Ge&&this.cycle()}static get Default(){return ni}static get DefaultType(){return si}static get NAME(){return"carousel"}next(){this._slide(He)}nextWhenVisible(){!document.hidden&&Ht(this._element)&&this.next()}prev(){this._slide(Be)}pause(){this._isSliding&&Mt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?ue.one(this._element,qe,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void ue.one(this._element,qe,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?He:Be;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&ue.on(this._element,Ve,(t=>this._keydown(t))),"hover"===this._config.pause&&(ue.on(this._element,Ye,(()=>this.pause())),ue.on(this._element,Ke,(()=>this._maybeEnableCycle()))),this._config.touch&&Me.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of ye.find(".carousel-item img",this._element))ue.on(t,Qe,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(We)),rightCallback:()=>this._slide(this._directionToOrder(ze)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Me(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ii[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=ye.findOne(Ze,this._indicatorsElement);e.classList.remove(Je),e.removeAttribute("aria-current");const i=ye.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(Je),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===He,s=e||Ut(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>ue.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(Re).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),Rt(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(Je),i.classList.remove(Je,c,l),this._isSliding=!1,r(qe)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return ye.findOne(ei,this._element)}_getItems(){return ye.find(ti,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Yt()?t===We?Be:He:t===We?He:Be}_orderToDirection(t){return Yt()?t===Be?We:ze:t===Be?ze:We}static jQueryInterface(t){return this.each((function(){const e=oi.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}ue.on(document,Ue,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=ye.getElementFromSelector(this);if(!e||!e.classList.contains(Ge))return;t.preventDefault();const i=oi.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===ge.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),ue.on(window,Xe,(()=>{const t=ye.find('[data-bs-ride="carousel"]');for(const e of t)oi.getOrCreateInstance(e)})),Kt(oi);const ri=".bs.collapse",ai=`show${ri}`,li=`shown${ri}`,ci=`hide${ri}`,hi=`hidden${ri}`,di=`click${ri}.data-api`,ui="show",fi="collapse",pi="collapsing",mi=`:scope .${fi} .${fi}`,gi='[data-bs-toggle="collapse"]',_i={parent:null,toggle:!0},bi={parent:"(null|element)",toggle:"boolean"};class vi extends be{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=ye.find(gi);for(const t of i){const e=ye.getSelectorFromElement(t),i=ye.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _i}static get DefaultType(){return bi}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>vi.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(ue.trigger(this._element,ai).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(fi),this._element.classList.add(pi),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(pi),this._element.classList.add(fi,ui),this._element.style[e]="",ue.trigger(this._element,li)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(ue.trigger(this._element,ci).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Rt(this._element),this._element.classList.add(pi),this._element.classList.remove(fi,ui);for(const t of this._triggerArray){const e=ye.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(pi),this._element.classList.add(fi),ue.trigger(this._element,hi)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(ui)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Ft(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(gi);for(const e of t){const t=ye.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=ye.find(mi,this._config.parent);return ye.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=vi.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}ue.on(document,di,gi,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of ye.getMultipleElementsFromSelector(this))vi.getOrCreateInstance(t,{toggle:!1}).toggle()})),Kt(vi);const yi="dropdown",wi=".bs.dropdown",Ei=".data-api",Ai="ArrowUp",Ti="ArrowDown",Ci=`hide${wi}`,Oi=`hidden${wi}`,xi=`show${wi}`,ki=`shown${wi}`,Li=`click${wi}${Ei}`,Si=`keydown${wi}${Ei}`,Di=`keyup${wi}${Ei}`,$i="show",Ii='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ni=`${Ii}.${$i}`,Pi=".dropdown-menu",Mi=Yt()?"top-end":"top-start",ji=Yt()?"top-start":"top-end",Fi=Yt()?"bottom-end":"bottom-start",Hi=Yt()?"bottom-start":"bottom-end",Bi=Yt()?"left-start":"right-start",Wi=Yt()?"right-start":"left-start",zi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ri={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class qi extends be{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=ye.next(this._element,Pi)[0]||ye.prev(this._element,Pi)[0]||ye.findOne(Pi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return zi}static get DefaultType(){return Ri}static get NAME(){return yi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Bt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!ue.trigger(this._element,xi,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))ue.on(t,"mouseover",zt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($i),this._element.classList.add($i),ue.trigger(this._element,ki,t)}}hide(){if(Bt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!ue.trigger(this._element,Ci,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))ue.off(t,"mouseover",zt);this._popper&&this._popper.destroy(),this._menu.classList.remove($i),this._element.classList.remove($i),this._element.setAttribute("aria-expanded","false"),ge.removeDataAttribute(this._menu,"popper"),ue.trigger(this._element,Oi,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!jt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${yi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:jt(this._config.reference)?t=Ft(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=St(t,this._menu,i)}_isShown(){return this._menu.classList.contains($i)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Bi;if(t.classList.contains("dropstart"))return Wi;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ji:Mi:e?Hi:Fi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(ge.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Qt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=ye.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Ht(t)));i.length&&Ut(i,e,t===Ti,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=qi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=ye.find(Ni);for(const i of e){const e=qi.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Ai,Ti].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Ii)?this:ye.prev(this,Ii)[0]||ye.next(this,Ii)[0]||ye.findOne(Ii,t.delegateTarget.parentNode),o=qi.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}ue.on(document,Si,Ii,qi.dataApiKeydownHandler),ue.on(document,Si,Pi,qi.dataApiKeydownHandler),ue.on(document,Li,qi.clearMenus),ue.on(document,Di,qi.clearMenus),ue.on(document,Li,Ii,(function(t){t.preventDefault(),qi.getOrCreateInstance(this).toggle()})),Kt(qi);const Vi="backdrop",Yi="show",Ki=`mousedown.bs.${Vi}`,Qi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Xi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ui extends _e{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Qi}static get DefaultType(){return Xi}static get NAME(){return Vi}show(t){if(!this._config.isVisible)return void Qt(t);this._append();const e=this._getElement();this._config.isAnimated&&Rt(e),e.classList.add(Yi),this._emulateAnimation((()=>{Qt(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Yi),this._emulateAnimation((()=>{this.dispose(),Qt(t)}))):Qt(t)}dispose(){this._isAppended&&(ue.off(this._element,Ki),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ft(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),ue.on(t,Ki,(()=>{Qt(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Xt(t,this._getElement(),this._config.isAnimated)}}const Gi=".bs.focustrap",Ji=`focusin${Gi}`,Zi=`keydown.tab${Gi}`,tn="backward",en={autofocus:!0,trapElement:null},nn={autofocus:"boolean",trapElement:"element"};class sn extends _e{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return en}static get DefaultType(){return nn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ue.off(document,Gi),ue.on(document,Ji,(t=>this._handleFocusin(t))),ue.on(document,Zi,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ue.off(document,Gi))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=ye.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===tn?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?tn:"forward")}}const on=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",rn=".sticky-top",an="padding-right",ln="margin-right";class cn{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,an,(e=>e+t)),this._setElementAttributes(on,an,(e=>e+t)),this._setElementAttributes(rn,ln,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,an),this._resetElementAttributes(on,an),this._resetElementAttributes(rn,ln)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&ge.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=ge.getDataAttribute(t,e);null!==i?(ge.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(jt(t))e(t);else for(const i of ye.find(t,this._element))e(i)}}const hn=".bs.modal",dn=`hide${hn}`,un=`hidePrevented${hn}`,fn=`hidden${hn}`,pn=`show${hn}`,mn=`shown${hn}`,gn=`resize${hn}`,_n=`click.dismiss${hn}`,bn=`mousedown.dismiss${hn}`,vn=`keydown.dismiss${hn}`,yn=`click${hn}.data-api`,wn="modal-open",En="show",An="modal-static",Tn={backdrop:!0,focus:!0,keyboard:!0},Cn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class On extends be{constructor(t,e){super(t,e),this._dialog=ye.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new cn,this._addEventListeners()}static get Default(){return Tn}static get DefaultType(){return Cn}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||ue.trigger(this._element,pn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(wn),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(ue.trigger(this._element,dn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(En),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){ue.off(window,hn),ue.off(this._dialog,hn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ui({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new sn({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=ye.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Rt(this._element),this._element.classList.add(En),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ue.trigger(this._element,mn,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){ue.on(this._element,vn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),ue.on(window,gn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),ue.on(this._element,bn,(t=>{ue.one(this._element,_n,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(wn),this._resetAdjustments(),this._scrollBar.reset(),ue.trigger(this._element,fn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(ue.trigger(this._element,un).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(An)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(An),this._queueCallback((()=>{this._element.classList.remove(An),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=Yt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=Yt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=On.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}ue.on(document,yn,'[data-bs-toggle="modal"]',(function(t){const e=ye.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),ue.one(e,pn,(t=>{t.defaultPrevented||ue.one(e,fn,(()=>{Ht(this)&&this.focus()}))}));const i=ye.findOne(".modal.show");i&&On.getInstance(i).hide(),On.getOrCreateInstance(e).toggle(this)})),we(On),Kt(On);const xn=".bs.offcanvas",kn=".data-api",Ln=`load${xn}${kn}`,Sn="show",Dn="showing",$n="hiding",In=".offcanvas.show",Nn=`show${xn}`,Pn=`shown${xn}`,Mn=`hide${xn}`,jn=`hidePrevented${xn}`,Fn=`hidden${xn}`,Hn=`resize${xn}`,Bn=`click${xn}${kn}`,Wn=`keydown.dismiss${xn}`,zn={backdrop:!0,keyboard:!0,scroll:!1},Rn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class qn extends be{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return zn}static get DefaultType(){return Rn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||ue.trigger(this._element,Nn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new cn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Dn),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Sn),this._element.classList.remove(Dn),ue.trigger(this._element,Pn,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(ue.trigger(this._element,Mn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($n),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Sn,$n),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new cn).reset(),ue.trigger(this._element,Fn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Ui({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():ue.trigger(this._element,jn)}:null})}_initializeFocusTrap(){return new sn({trapElement:this._element})}_addEventListeners(){ue.on(this._element,Wn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():ue.trigger(this._element,jn))}))}static jQueryInterface(t){return this.each((function(){const e=qn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}ue.on(document,Bn,'[data-bs-toggle="offcanvas"]',(function(t){const e=ye.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Bt(this))return;ue.one(e,Fn,(()=>{Ht(this)&&this.focus()}));const i=ye.findOne(In);i&&i!==e&&qn.getInstance(i).hide(),qn.getOrCreateInstance(e).toggle(this)})),ue.on(window,Ln,(()=>{for(const t of ye.find(In))qn.getOrCreateInstance(t).show()})),ue.on(window,Hn,(()=>{for(const t of ye.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&qn.getOrCreateInstance(t).hide()})),we(qn),Kt(qn);const Vn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Yn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Kn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Qn=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Yn.has(i)||Boolean(Kn.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Xn={allowList:Vn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Un={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Gn={entry:"(string|element|function|null)",selector:"(string|element)"};class Jn extends _e{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Xn}static get DefaultType(){return Un}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Gn)}_setContent(t,e,i){const n=ye.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?jt(e)?this._putElementInTemplate(Ft(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Qn(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Qt(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Zn=new Set(["sanitize","allowList","sanitizeFn"]),ts="fade",es="show",is=".modal",ns="hide.bs.modal",ss="hover",os="focus",rs={AUTO:"auto",TOP:"top",RIGHT:Yt()?"left":"right",BOTTOM:"bottom",LEFT:Yt()?"right":"left"},as={allowList:Vn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},ls={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class cs extends be{constructor(t,i){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,i),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return as}static get DefaultType(){return ls}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),ue.off(this._element.closest(is),ns,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=ue.trigger(this._element,this.constructor.eventName("show")),e=(Wt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),ue.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(es),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))ue.on(t,"mouseover",zt);this._queueCallback((()=>{ue.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!ue.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(es),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))ue.off(t,"mouseover",zt);this._activeTrigger.click=!1,this._activeTrigger[os]=!1,this._activeTrigger[ss]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ue.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ts,es),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(ts),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Jn({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ts)}_isShown(){return this.tip&&this.tip.classList.contains(es)}_createPopper(t){const e=Qt(this._config.placement,[this,t,this._element]),i=rs[e.toUpperCase()];return St(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Qt(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Qt(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)ue.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===ss?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===ss?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");ue.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?os:ss]=!0,e._enter()})),ue.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?os:ss]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},ue.on(this._element.closest(is),ns,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=ge.getDataAttributes(this._element);for(const t of Object.keys(e))Zn.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Ft(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=cs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Kt(cs);const hs={...cs.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},ds={...cs.DefaultType,content:"(null|string|element|function)"};class us extends cs{static get Default(){return hs}static get DefaultType(){return ds}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=us.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Kt(us);const fs=".bs.scrollspy",ps=`activate${fs}`,ms=`click${fs}`,gs=`load${fs}.data-api`,_s="active",bs="[href]",vs=".nav-link",ys=`${vs}, .nav-item > ${vs}, .list-group-item`,ws={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Es={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class As extends be{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ws}static get DefaultType(){return Es}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ft(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ue.off(this._config.target,ms),ue.on(this._config.target,ms,bs,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=ye.find(bs,this._config.target);for(const e of t){if(!e.hash||Bt(e))continue;const t=ye.findOne(decodeURI(e.hash),this._element);Ht(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(_s),this._activateParents(t),ue.trigger(this._element,ps,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))ye.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(_s);else for(const e of ye.parents(t,".nav, .list-group"))for(const t of ye.prev(e,ys))t.classList.add(_s)}_clearActiveClass(t){t.classList.remove(_s);const e=ye.find(`${bs}.${_s}`,t);for(const t of e)t.classList.remove(_s)}static jQueryInterface(t){return this.each((function(){const e=As.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}ue.on(window,gs,(()=>{for(const t of ye.find('[data-bs-spy="scroll"]'))As.getOrCreateInstance(t)})),Kt(As);const Ts=".bs.tab",Cs=`hide${Ts}`,Os=`hidden${Ts}`,xs=`show${Ts}`,ks=`shown${Ts}`,Ls=`click${Ts}`,Ss=`keydown${Ts}`,Ds=`load${Ts}`,$s="ArrowLeft",Is="ArrowRight",Ns="ArrowUp",Ps="ArrowDown",Ms="Home",js="End",Fs="active",Hs="fade",Bs="show",Ws=".dropdown-toggle",zs=`:not(${Ws})`,Rs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qs=`.nav-link${zs}, .list-group-item${zs}, [role="tab"]${zs}, ${Rs}`,Vs=`.${Fs}[data-bs-toggle="tab"], .${Fs}[data-bs-toggle="pill"], .${Fs}[data-bs-toggle="list"]`;class Ys extends be{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ue.on(this._element,Ss,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?ue.trigger(e,Cs,{relatedTarget:t}):null;ue.trigger(t,xs,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Fs),this._activate(ye.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),ue.trigger(t,ks,{relatedTarget:e})):t.classList.add(Bs)}),t,t.classList.contains(Hs)))}_deactivate(t,e){t&&(t.classList.remove(Fs),t.blur(),this._deactivate(ye.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),ue.trigger(t,Os,{relatedTarget:e})):t.classList.remove(Bs)}),t,t.classList.contains(Hs)))}_keydown(t){if(![$s,Is,Ns,Ps,Ms,js].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Bt(t)));let i;if([Ms,js].includes(t.key))i=e[t.key===Ms?0:e.length-1];else{const n=[Is,Ps].includes(t.key);i=Ut(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),Ys.getOrCreateInstance(i).show())}_getChildren(){return ye.find(qs,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=ye.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=ye.findOne(t,i);s&&s.classList.toggle(n,e)};n(Ws,Fs),n(".dropdown-menu",Bs),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Fs)}_getInnerElement(t){return t.matches(qs)?t:ye.findOne(qs,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Ys.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}ue.on(document,Ls,Rs,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Bt(this)||Ys.getOrCreateInstance(this).show()})),ue.on(window,Ds,(()=>{for(const t of ye.find(Vs))Ys.getOrCreateInstance(t)})),Kt(Ys);const Ks=".bs.toast",Qs=`mouseover${Ks}`,Xs=`mouseout${Ks}`,Us=`focusin${Ks}`,Gs=`focusout${Ks}`,Js=`hide${Ks}`,Zs=`hidden${Ks}`,to=`show${Ks}`,eo=`shown${Ks}`,io="hide",no="show",so="showing",oo={animation:"boolean",autohide:"boolean",delay:"number"},ro={animation:!0,autohide:!0,delay:5e3};class ao extends be{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ro}static get DefaultType(){return oo}static get NAME(){return"toast"}show(){ue.trigger(this._element,to).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(io),Rt(this._element),this._element.classList.add(no,so),this._queueCallback((()=>{this._element.classList.remove(so),ue.trigger(this._element,eo),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(ue.trigger(this._element,Js).defaultPrevented||(this._element.classList.add(so),this._queueCallback((()=>{this._element.classList.add(io),this._element.classList.remove(so,no),ue.trigger(this._element,Zs)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(no),super.dispose()}isShown(){return this._element.classList.contains(no)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){ue.on(this._element,Qs,(t=>this._onInteraction(t,!0))),ue.on(this._element,Xs,(t=>this._onInteraction(t,!1))),ue.on(this._element,Us,(t=>this._onInteraction(t,!0))),ue.on(this._element,Gs,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=ao.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}function lo(t){"loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t)}we(ao),Kt(ao),lo((function(){[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new cs(t,{delay:{show:500,hide:100}})}))})),lo((function(){document.getElementById("pst-back-to-top").addEventListener("click",(function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}))})),lo((function(){var t=document.getElementById("pst-back-to-top"),e=document.getElementsByClassName("bd-header")[0].getBoundingClientRect();window.addEventListener("scroll",(function(){this.oldScroll>this.scrollY&&this.scrollY>e.bottom?t.style.display="block":t.style.display="none",this.oldScroll=this.scrollY}))}))})(); +(()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{afterMain:()=>E,afterRead:()=>v,afterWrite:()=>C,applyStyles:()=>$,arrow:()=>J,auto:()=>a,basePlacements:()=>l,beforeMain:()=>y,beforeRead:()=>_,beforeWrite:()=>A,bottom:()=>s,clippingParents:()=>d,computeStyles:()=>it,createPopper:()=>Dt,createPopperBase:()=>St,createPopperLite:()=>$t,detectOverflow:()=>_t,end:()=>h,eventListeners:()=>st,flip:()=>bt,hide:()=>wt,left:()=>r,main:()=>w,modifierPhases:()=>O,offset:()=>Et,placements:()=>g,popper:()=>f,popperGenerator:()=>Lt,popperOffsets:()=>At,preventOverflow:()=>Tt,read:()=>b,reference:()=>p,right:()=>o,start:()=>c,top:()=>n,variationPlacements:()=>m,viewport:()=>u,write:()=>T});var i={};t.r(i),t.d(i,{Alert:()=>Oe,Button:()=>ke,Carousel:()=>ri,Collapse:()=>yi,Dropdown:()=>Vi,Modal:()=>xn,Offcanvas:()=>Vn,Popover:()=>fs,ScrollSpy:()=>Ts,Tab:()=>Ks,Toast:()=>lo,Tooltip:()=>hs});var n="top",s="bottom",o="right",r="left",a="auto",l=[n,s,o,r],c="start",h="end",d="clippingParents",u="viewport",f="popper",p="reference",m=l.reduce((function(t,e){return t.concat([e+"-"+c,e+"-"+h])}),[]),g=[].concat(l,[a]).reduce((function(t,e){return t.concat([e,e+"-"+c,e+"-"+h])}),[]),_="beforeRead",b="read",v="afterRead",y="beforeMain",w="main",E="afterMain",A="beforeWrite",T="write",C="afterWrite",O=[_,b,v,y,w,E,A,T,C];function x(t){return t?(t.nodeName||"").toLowerCase():null}function k(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function L(t){return t instanceof k(t).Element||t instanceof Element}function S(t){return t instanceof k(t).HTMLElement||t instanceof HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof k(t).ShadowRoot||t instanceof ShadowRoot)}const $={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];S(s)&&x(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});S(n)&&x(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function I(t){return t.split("-")[0]}var N=Math.max,P=Math.min,M=Math.round;function j(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function F(){return!/^((?!chrome|android).)*safari/i.test(j())}function H(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&S(t)&&(s=t.offsetWidth>0&&M(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&M(n.height)/t.offsetHeight||1);var r=(L(t)?k(t):window).visualViewport,a=!F()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function B(t){var e=H(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function W(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&D(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z(t){return k(t).getComputedStyle(t)}function R(t){return["table","td","th"].indexOf(x(t))>=0}function q(t){return((L(t)?t.ownerDocument:t.document)||window.document).documentElement}function V(t){return"html"===x(t)?t:t.assignedSlot||t.parentNode||(D(t)?t.host:null)||q(t)}function Y(t){return S(t)&&"fixed"!==z(t).position?t.offsetParent:null}function K(t){for(var e=k(t),i=Y(t);i&&R(i)&&"static"===z(i).position;)i=Y(i);return i&&("html"===x(i)||"body"===x(i)&&"static"===z(i).position)?e:i||function(t){var e=/firefox/i.test(j());if(/Trident/i.test(j())&&S(t)&&"fixed"===z(t).position)return null;var i=V(t);for(D(i)&&(i=i.host);S(i)&&["html","body"].indexOf(x(i))<0;){var n=z(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Q(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function X(t,e,i){return N(t,P(e,i))}function U(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function G(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const J={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,a=t.name,c=t.options,h=i.elements.arrow,d=i.modifiersData.popperOffsets,u=I(i.placement),f=Q(u),p=[r,o].indexOf(u)>=0?"height":"width";if(h&&d){var m=function(t,e){return U("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:G(t,l))}(c.padding,i),g=B(h),_="y"===f?n:r,b="y"===f?s:o,v=i.rects.reference[p]+i.rects.reference[f]-d[f]-i.rects.popper[p],y=d[f]-i.rects.reference[f],w=K(h),E=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,A=v/2-y/2,T=m[_],C=E-g[p]-m[b],O=E/2-g[p]/2+A,x=X(T,O,C),k=f;i.modifiersData[a]=((e={})[k]=x,e.centerOffset=x-O,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&W(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var e,i=t.popper,a=t.popperRect,l=t.placement,c=t.variation,d=t.offsets,u=t.position,f=t.gpuAcceleration,p=t.adaptive,m=t.roundOffsets,g=t.isFixed,_=d.x,b=void 0===_?0:_,v=d.y,y=void 0===v?0:v,w="function"==typeof m?m({x:b,y}):{x:b,y};b=w.x,y=w.y;var E=d.hasOwnProperty("x"),A=d.hasOwnProperty("y"),T=r,C=n,O=window;if(p){var x=K(i),L="clientHeight",S="clientWidth";x===k(i)&&"static"!==z(x=q(i)).position&&"absolute"===u&&(L="scrollHeight",S="scrollWidth"),(l===n||(l===r||l===o)&&c===h)&&(C=s,y-=(g&&x===O&&O.visualViewport?O.visualViewport.height:x[L])-a.height,y*=f?1:-1),l!==r&&(l!==n&&l!==s||c!==h)||(T=o,b-=(g&&x===O&&O.visualViewport?O.visualViewport.width:x[S])-a.width,b*=f?1:-1)}var D,$=Object.assign({position:u},p&&tt),I=!0===m?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:M(i*s)/s||0,y:M(n*s)/s||0}}({x:b,y},k(i)):{x:b,y};return b=I.x,y=I.y,f?Object.assign({},$,((D={})[C]=A?"0":"",D[T]=E?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",D)):Object.assign({},$,((e={})[C]=A?y+"px":"",e[T]=E?b+"px":"",e.transform="",e))}const it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:I(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var nt={passive:!0};const st={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=k(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,nt)})),a&&l.addEventListener("resize",i.update,nt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,nt)})),a&&l.removeEventListener("resize",i.update,nt)}},data:{}};var ot={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ot[t]}))}var at={start:"end",end:"start"};function lt(t){return t.replace(/start|end/g,(function(t){return at[t]}))}function ct(t){var e=k(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ht(t){return H(q(t)).left+ct(t).scrollLeft}function dt(t){var e=z(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ut(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:S(t)&&dt(t)?t:ut(V(t))}function ft(t,e){var i;void 0===e&&(e=[]);var n=ut(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=k(n),r=s?[o].concat(o.visualViewport||[],dt(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(ft(V(r)))}function pt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mt(t,e,i){return e===u?pt(function(t,e){var i=k(t),n=q(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=F();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+ht(t),y:l}}(t,i)):L(e)?function(t,e){var i=H(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):pt(function(t){var e,i=q(t),n=ct(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=N(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=N(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+ht(t),l=-n.scrollTop;return"rtl"===z(s||i).direction&&(a+=N(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(q(t)))}function gt(t){var e,i=t.reference,a=t.element,l=t.placement,d=l?I(l):null,u=l?Z(l):null,f=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2;switch(d){case n:e={x:f,y:i.y-a.height};break;case s:e={x:f,y:i.y+i.height};break;case o:e={x:i.x+i.width,y:p};break;case r:e={x:i.x-a.width,y:p};break;default:e={x:i.x,y:i.y}}var m=d?Q(d):null;if(null!=m){var g="y"===m?"height":"width";switch(u){case c:e[m]=e[m]-(i[g]/2-a[g]/2);break;case h:e[m]=e[m]+(i[g]/2-a[g]/2)}}return e}function _t(t,e){void 0===e&&(e={});var i=e,r=i.placement,a=void 0===r?t.placement:r,c=i.strategy,h=void 0===c?t.strategy:c,m=i.boundary,g=void 0===m?d:m,_=i.rootBoundary,b=void 0===_?u:_,v=i.elementContext,y=void 0===v?f:v,w=i.altBoundary,E=void 0!==w&&w,A=i.padding,T=void 0===A?0:A,C=U("number"!=typeof T?T:G(T,l)),O=y===f?p:f,k=t.rects.popper,D=t.elements[E?O:y],$=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=ft(V(t)),i=["absolute","fixed"].indexOf(z(t).position)>=0&&S(t)?K(t):t;return L(i)?e.filter((function(t){return L(t)&&W(t,i)&&"body"!==x(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=mt(t,i,n);return e.top=N(s.top,e.top),e.right=P(s.right,e.right),e.bottom=P(s.bottom,e.bottom),e.left=N(s.left,e.left),e}),mt(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(L(D)?D:D.contextElement||q(t.elements.popper),g,b,h),I=H(t.elements.reference),M=gt({reference:I,element:k,strategy:"absolute",placement:a}),j=pt(Object.assign({},k,M)),F=y===f?j:I,B={top:$.top-F.top+C.top,bottom:F.bottom-$.bottom+C.bottom,left:$.left-F.left+C.left,right:F.right-$.right+C.right},R=t.modifiersData.offset;if(y===f&&R){var Y=R[a];Object.keys(B).forEach((function(t){var e=[o,s].indexOf(t)>=0?1:-1,i=[n,s].indexOf(t)>=0?"y":"x";B[t]+=Y[i]*e}))}return B}const bt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,h=t.name;if(!e.modifiersData[h]._skip){for(var d=i.mainAxis,u=void 0===d||d,f=i.altAxis,p=void 0===f||f,_=i.fallbackPlacements,b=i.padding,v=i.boundary,y=i.rootBoundary,w=i.altBoundary,E=i.flipVariations,A=void 0===E||E,T=i.allowedAutoPlacements,C=e.options.placement,O=I(C),x=_||(O!==C&&A?function(t){if(I(t)===a)return[];var e=rt(t);return[lt(t),e,lt(e)]}(C):[rt(C)]),k=[C].concat(x).reduce((function(t,i){return t.concat(I(i)===a?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,h=void 0===c?g:c,d=Z(n),u=d?a?m:m.filter((function(t){return Z(t)===d})):l,f=u.filter((function(t){return h.indexOf(t)>=0}));0===f.length&&(f=u);var p=f.reduce((function(e,i){return e[i]=_t(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[I(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:v,rootBoundary:y,padding:b,flipVariations:A,allowedAutoPlacements:T}):i)}),[]),L=e.rects.reference,S=e.rects.popper,D=new Map,$=!0,N=k[0],P=0;P=0,B=H?"width":"height",W=_t(e,{placement:M,boundary:v,rootBoundary:y,altBoundary:w,padding:b}),z=H?F?o:r:F?s:n;L[B]>S[B]&&(z=rt(z));var R=rt(z),q=[];if(u&&q.push(W[j]<=0),p&&q.push(W[z]<=0,W[R]<=0),q.every((function(t){return t}))){N=M,$=!1;break}D.set(M,q)}if($)for(var V=function(t){var e=k.find((function(e){var i=D.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return N=e,"break"},Y=A?3:1;Y>0&&"break"!==V(Y);Y--);e.placement!==N&&(e.modifiersData[h]._skip=!0,e.placement=N,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function vt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function yt(t){return[n,o,s,r].some((function(e){return t[e]>=0}))}const wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=_t(e,{elementContext:"reference"}),a=_t(e,{altBoundary:!0}),l=vt(r,n),c=vt(a,s,o),h=yt(l),d=yt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,s=t.name,a=i.offset,l=void 0===a?[0,0]:a,c=g.reduce((function(t,i){return t[i]=function(t,e,i){var s=I(t),a=[r,n].indexOf(s)>=0?-1:1,l="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=l[0],h=l[1];return c=c||0,h=(h||0)*a,[r,o].indexOf(s)>=0?{x:h,y:c}:{x:c,y:h}}(i,e.rects,l),t}),{}),h=c[e.placement],d=h.x,u=h.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[s]=c}},At={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=gt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Tt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,a=t.name,l=i.mainAxis,h=void 0===l||l,d=i.altAxis,u=void 0!==d&&d,f=i.boundary,p=i.rootBoundary,m=i.altBoundary,g=i.padding,_=i.tether,b=void 0===_||_,v=i.tetherOffset,y=void 0===v?0:v,w=_t(e,{boundary:f,rootBoundary:p,padding:g,altBoundary:m}),E=I(e.placement),A=Z(e.placement),T=!A,C=Q(E),O="x"===C?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,L=e.rects.popper,S="function"==typeof y?y(Object.assign({},e.rects,{placement:e.placement})):y,D="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(x){if(h){var j,F="y"===C?n:r,H="y"===C?s:o,W="y"===C?"height":"width",z=x[C],R=z+w[F],q=z-w[H],V=b?-L[W]/2:0,Y=A===c?k[W]:L[W],U=A===c?-L[W]:-k[W],G=e.elements.arrow,J=b&&G?B(G):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[F],it=tt[H],nt=X(0,k[W],J[W]),st=T?k[W]/2-V-nt-et-D.mainAxis:Y-nt-et-D.mainAxis,ot=T?-k[W]/2+V+nt+it+D.mainAxis:U+nt+it+D.mainAxis,rt=e.elements.arrow&&K(e.elements.arrow),at=rt?"y"===C?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(j=null==$?void 0:$[C])?j:0,ct=z+ot-lt,ht=X(b?P(R,z+st-lt-at):R,z,b?N(q,ct):q);x[C]=ht,M[C]=ht-z}if(u){var dt,ut="x"===C?n:r,ft="x"===C?s:o,pt=x[O],mt="y"===O?"height":"width",gt=pt+w[ut],bt=pt-w[ft],vt=-1!==[n,r].indexOf(E),yt=null!=(dt=null==$?void 0:$[O])?dt:0,wt=vt?gt:pt-k[mt]-L[mt]-yt+D.altAxis,Et=vt?pt+k[mt]+L[mt]-yt-D.altAxis:bt,At=b&&vt?function(t,e,i){var n=X(t,e,i);return n>i?i:n}(wt,pt,Et):X(b?wt:gt,pt,b?Et:bt);x[O]=At,M[O]=At-pt}e.modifiersData[a]=M}},requiresIfExists:["offset"]};function Ct(t,e,i){void 0===i&&(i=!1);var n,s,o=S(e),r=S(e)&&function(t){var e=t.getBoundingClientRect(),i=M(e.width)/t.offsetWidth||1,n=M(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=q(e),l=H(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==x(e)||dt(a))&&(c=(n=e)!==k(n)&&S(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ct(n)),S(e)?((h=H(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=ht(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function Ot(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var xt={placement:"bottom",modifiers:[],strategy:"absolute"};function kt(){for(var t=arguments.length,e=new Array(t),i=0;iIt.has(t)&&It.get(t).get(e)||null,remove(t,e){if(!It.has(t))return;const i=It.get(t);i.delete(e),0===i.size&&It.delete(t)}},Pt="transitionend",Mt=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),jt=t=>{t.dispatchEvent(new Event(Pt))},Ft=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Ht=t=>Ft(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Mt(t)):null,Bt=t=>{if(!Ft(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},Wt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),zt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?zt(t.parentNode):null},Rt=()=>{},qt=t=>{t.offsetHeight},Vt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Yt=[],Kt=()=>"rtl"===document.documentElement.dir,Qt=t=>{var e;e=()=>{const e=Vt();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(Yt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Yt)t()})),Yt.push(e)):e()},Xt=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,Ut=(t,e,i=!0)=>{if(!i)return void Xt(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const o=({target:i})=>{i===e&&(s=!0,e.removeEventListener(Pt,o),Xt(t))};e.addEventListener(Pt,o),setTimeout((()=>{s||jt(e)}),n)},Gt=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},Jt=/[^.]*(?=\..*)\.|.*/,Zt=/\..*/,te=/::\d+$/,ee={};let ie=1;const ne={mouseenter:"mouseover",mouseleave:"mouseout"},se=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function oe(t,e){return e&&`${e}::${ie++}`||t.uidEvent||ie++}function re(t){const e=oe(t);return t.uidEvent=e,ee[e]=ee[e]||{},ee[e]}function ae(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function le(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=ue(t);return se.has(o)||(o=t),[n,s,o]}function ce(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=le(e,i,n);if(e in ne){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=re(t),c=l[a]||(l[a]={}),h=ae(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=oe(r,e.replace(Jt,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return pe(s,{delegateTarget:r}),n.oneOff&&fe.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return pe(n,{delegateTarget:t}),i.oneOff&&fe.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function he(t,e,i,n,s){const o=ae(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function de(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&he(t,e,i,r.callable,r.delegationSelector)}function ue(t){return t=t.replace(Zt,""),ne[t]||t}const fe={on(t,e,i,n){ce(t,e,i,n,!1)},one(t,e,i,n){ce(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=le(e,i,n),a=r!==e,l=re(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))de(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(te,"");a&&!e.includes(s)||he(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;he(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=Vt();let s=null,o=!0,r=!0,a=!1;e!==ue(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=pe(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function pe(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function me(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ge(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const _e={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${ge(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ge(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=me(t.dataset[n])}return e},getDataAttribute:(t,e)=>me(t.getAttribute(`data-bs-${ge(e)}`))};class be{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Ft(e)?_e.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ft(e)?_e.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,s]of Object.entries(e)){const e=t[n],o=Ft(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}}class ve extends be{constructor(t,e){super(),(t=Ht(t))&&(this._element=t,this._config=this._getConfig(e),Nt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Nt.remove(this._element,this.constructor.DATA_KEY),fe.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Ut(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Nt.get(Ht(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const ye=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?Mt(i.trim()):null}return e},we={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!Wt(t)&&Bt(t)))},getSelectorFromElement(t){const e=ye(t);return e&&we.findOne(e)?e:null},getElementFromSelector(t){const e=ye(t);return e?we.findOne(e):null},getMultipleElementsFromSelector(t){const e=ye(t);return e?we.find(e):[]}},Ee=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;fe.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Wt(this))return;const s=we.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))},Ae=".bs.alert",Te=`close${Ae}`,Ce=`closed${Ae}`;class Oe extends ve{static get NAME(){return"alert"}close(){if(fe.trigger(this._element,Te).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),fe.trigger(this._element,Ce),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=Oe.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Ee(Oe,"close"),Qt(Oe);const xe='[data-bs-toggle="button"]';class ke extends ve{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=ke.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}fe.on(document,"click.bs.button.data-api",xe,(t=>{t.preventDefault();const e=t.target.closest(xe);ke.getOrCreateInstance(e).toggle()})),Qt(ke);const Le=".bs.swipe",Se=`touchstart${Le}`,De=`touchmove${Le}`,$e=`touchend${Le}`,Ie=`pointerdown${Le}`,Ne=`pointerup${Le}`,Pe={endCallback:null,leftCallback:null,rightCallback:null},Me={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class je extends be{constructor(t,e){super(),this._element=t,t&&je.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Pe}static get DefaultType(){return Me}static get NAME(){return"swipe"}dispose(){fe.off(this._element,Le)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Xt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Xt(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(fe.on(this._element,Ie,(t=>this._start(t))),fe.on(this._element,Ne,(t=>this._end(t))),this._element.classList.add("pointer-event")):(fe.on(this._element,Se,(t=>this._start(t))),fe.on(this._element,De,(t=>this._move(t))),fe.on(this._element,$e,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Fe=".bs.carousel",He=".data-api",Be="next",We="prev",ze="left",Re="right",qe=`slide${Fe}`,Ve=`slid${Fe}`,Ye=`keydown${Fe}`,Ke=`mouseenter${Fe}`,Qe=`mouseleave${Fe}`,Xe=`dragstart${Fe}`,Ue=`load${Fe}${He}`,Ge=`click${Fe}${He}`,Je="carousel",Ze="active",ti=".active",ei=".carousel-item",ii=ti+ei,ni={ArrowLeft:Re,ArrowRight:ze},si={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oi={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ri extends ve{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=we.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Je&&this.cycle()}static get Default(){return si}static get DefaultType(){return oi}static get NAME(){return"carousel"}next(){this._slide(Be)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(We)}pause(){this._isSliding&&jt(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?fe.one(this._element,Ve,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void fe.one(this._element,Ve,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?Be:We;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&fe.on(this._element,Ye,(t=>this._keydown(t))),"hover"===this._config.pause&&(fe.on(this._element,Ke,(()=>this.pause())),fe.on(this._element,Qe,(()=>this._maybeEnableCycle()))),this._config.touch&&je.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of we.find(".carousel-item img",this._element))fe.on(t,Xe,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(ze)),rightCallback:()=>this._slide(this._directionToOrder(Re)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new je(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ni[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=we.findOne(ti,this._indicatorsElement);e.classList.remove(Ze),e.removeAttribute("aria-current");const i=we.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(Ze),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===Be,s=e||Gt(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>fe.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(qe).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),qt(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(Ze),i.classList.remove(Ze,c,l),this._isSliding=!1,r(Ve)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return we.findOne(ii,this._element)}_getItems(){return we.find(ei,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Kt()?t===ze?We:Be:t===ze?Be:We}_orderToDirection(t){return Kt()?t===We?ze:Re:t===We?Re:ze}static jQueryInterface(t){return this.each((function(){const e=ri.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}fe.on(document,Ge,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=we.getElementFromSelector(this);if(!e||!e.classList.contains(Je))return;t.preventDefault();const i=ri.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===_e.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),fe.on(window,Ue,(()=>{const t=we.find('[data-bs-ride="carousel"]');for(const e of t)ri.getOrCreateInstance(e)})),Qt(ri);const ai=".bs.collapse",li=`show${ai}`,ci=`shown${ai}`,hi=`hide${ai}`,di=`hidden${ai}`,ui=`click${ai}.data-api`,fi="show",pi="collapse",mi="collapsing",gi=`:scope .${pi} .${pi}`,_i='[data-bs-toggle="collapse"]',bi={parent:null,toggle:!0},vi={parent:"(null|element)",toggle:"boolean"};class yi extends ve{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=we.find(_i);for(const t of i){const e=we.getSelectorFromElement(t),i=we.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return bi}static get DefaultType(){return vi}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>yi.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(fe.trigger(this._element,li).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(pi),this._element.classList.add(mi),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(mi),this._element.classList.add(pi,fi),this._element.style[e]="",fe.trigger(this._element,ci)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(fe.trigger(this._element,hi).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,qt(this._element),this._element.classList.add(mi),this._element.classList.remove(pi,fi);for(const t of this._triggerArray){const e=we.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(mi),this._element.classList.add(pi),fe.trigger(this._element,di)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(fi)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Ht(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(_i);for(const e of t){const t=we.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=we.find(gi,this._config.parent);return we.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=yi.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}fe.on(document,ui,_i,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of we.getMultipleElementsFromSelector(this))yi.getOrCreateInstance(t,{toggle:!1}).toggle()})),Qt(yi);const wi="dropdown",Ei=".bs.dropdown",Ai=".data-api",Ti="ArrowUp",Ci="ArrowDown",Oi=`hide${Ei}`,xi=`hidden${Ei}`,ki=`show${Ei}`,Li=`shown${Ei}`,Si=`click${Ei}${Ai}`,Di=`keydown${Ei}${Ai}`,$i=`keyup${Ei}${Ai}`,Ii="show",Ni='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Pi=`${Ni}.${Ii}`,Mi=".dropdown-menu",ji=Kt()?"top-end":"top-start",Fi=Kt()?"top-start":"top-end",Hi=Kt()?"bottom-end":"bottom-start",Bi=Kt()?"bottom-start":"bottom-end",Wi=Kt()?"left-start":"right-start",zi=Kt()?"right-start":"left-start",Ri={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},qi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Vi extends ve{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=we.next(this._element,Mi)[0]||we.prev(this._element,Mi)[0]||we.findOne(Mi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ri}static get DefaultType(){return qi}static get NAME(){return wi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Wt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!fe.trigger(this._element,ki,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))fe.on(t,"mouseover",Rt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ii),this._element.classList.add(Ii),fe.trigger(this._element,Li,t)}}hide(){if(Wt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!fe.trigger(this._element,Oi,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",Rt);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ii),this._element.classList.remove(Ii),this._element.setAttribute("aria-expanded","false"),_e.removeDataAttribute(this._menu,"popper"),fe.trigger(this._element,xi,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ft(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${wi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Ft(this._config.reference)?t=Ht(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=Dt(t,this._menu,i)}_isShown(){return this._menu.classList.contains(Ii)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Wi;if(t.classList.contains("dropstart"))return zi;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Fi:ji:e?Bi:Hi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(_e.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Xt(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=we.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Bt(t)));i.length&&Gt(i,e,t===Ci,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Vi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=we.find(Pi);for(const i of e){const e=Vi.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Ti,Ci].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Ni)?this:we.prev(this,Ni)[0]||we.next(this,Ni)[0]||we.findOne(Ni,t.delegateTarget.parentNode),o=Vi.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}fe.on(document,Di,Ni,Vi.dataApiKeydownHandler),fe.on(document,Di,Mi,Vi.dataApiKeydownHandler),fe.on(document,Si,Vi.clearMenus),fe.on(document,$i,Vi.clearMenus),fe.on(document,Si,Ni,(function(t){t.preventDefault(),Vi.getOrCreateInstance(this).toggle()})),Qt(Vi);const Yi="backdrop",Ki="show",Qi=`mousedown.bs.${Yi}`,Xi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ui={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Gi extends be{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xi}static get DefaultType(){return Ui}static get NAME(){return Yi}show(t){if(!this._config.isVisible)return void Xt(t);this._append();const e=this._getElement();this._config.isAnimated&&qt(e),e.classList.add(Ki),this._emulateAnimation((()=>{Xt(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Ki),this._emulateAnimation((()=>{this.dispose(),Xt(t)}))):Xt(t)}dispose(){this._isAppended&&(fe.off(this._element,Qi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ht(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),fe.on(t,Qi,(()=>{Xt(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Ut(t,this._getElement(),this._config.isAnimated)}}const Ji=".bs.focustrap",Zi=`focusin${Ji}`,tn=`keydown.tab${Ji}`,en="backward",nn={autofocus:!0,trapElement:null},sn={autofocus:"boolean",trapElement:"element"};class on extends be{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return nn}static get DefaultType(){return sn}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),fe.off(document,Ji),fe.on(document,Zi,(t=>this._handleFocusin(t))),fe.on(document,tn,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,fe.off(document,Ji))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=we.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===en?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?en:"forward")}}const rn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",an=".sticky-top",ln="padding-right",cn="margin-right";class hn{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ln,(e=>e+t)),this._setElementAttributes(rn,ln,(e=>e+t)),this._setElementAttributes(an,cn,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ln),this._resetElementAttributes(rn,ln),this._resetElementAttributes(an,cn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&_e.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=_e.getDataAttribute(t,e);null!==i?(_e.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Ft(t))e(t);else for(const i of we.find(t,this._element))e(i)}}const dn=".bs.modal",un=`hide${dn}`,fn=`hidePrevented${dn}`,pn=`hidden${dn}`,mn=`show${dn}`,gn=`shown${dn}`,_n=`resize${dn}`,bn=`click.dismiss${dn}`,vn=`mousedown.dismiss${dn}`,yn=`keydown.dismiss${dn}`,wn=`click${dn}.data-api`,En="modal-open",An="show",Tn="modal-static",Cn={backdrop:!0,focus:!0,keyboard:!0},On={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class xn extends ve{constructor(t,e){super(t,e),this._dialog=we.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hn,this._addEventListeners()}static get Default(){return Cn}static get DefaultType(){return On}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||fe.trigger(this._element,mn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(En),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(fe.trigger(this._element,un).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(An),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){fe.off(window,dn),fe.off(this._dialog,dn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Gi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new on({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=we.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),qt(this._element),this._element.classList.add(An),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,fe.trigger(this._element,gn,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){fe.on(this._element,yn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),fe.on(window,_n,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),fe.on(this._element,vn,(t=>{fe.one(this._element,bn,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(En),this._resetAdjustments(),this._scrollBar.reset(),fe.trigger(this._element,pn)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(fe.trigger(this._element,fn).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Tn)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Tn),this._queueCallback((()=>{this._element.classList.remove(Tn),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=Kt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=Kt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=xn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}fe.on(document,wn,'[data-bs-toggle="modal"]',(function(t){const e=we.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),fe.one(e,mn,(t=>{t.defaultPrevented||fe.one(e,pn,(()=>{Bt(this)&&this.focus()}))}));const i=we.findOne(".modal.show");i&&xn.getInstance(i).hide(),xn.getOrCreateInstance(e).toggle(this)})),Ee(xn),Qt(xn);const kn=".bs.offcanvas",Ln=".data-api",Sn=`load${kn}${Ln}`,Dn="show",$n="showing",In="hiding",Nn=".offcanvas.show",Pn=`show${kn}`,Mn=`shown${kn}`,jn=`hide${kn}`,Fn=`hidePrevented${kn}`,Hn=`hidden${kn}`,Bn=`resize${kn}`,Wn=`click${kn}${Ln}`,zn=`keydown.dismiss${kn}`,Rn={backdrop:!0,keyboard:!0,scroll:!1},qn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Vn extends ve{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Rn}static get DefaultType(){return qn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||fe.trigger(this._element,Pn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new hn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($n),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Dn),this._element.classList.remove($n),fe.trigger(this._element,Mn,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(fe.trigger(this._element,jn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(In),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Dn,In),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new hn).reset(),fe.trigger(this._element,Hn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Gi({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():fe.trigger(this._element,Fn)}:null})}_initializeFocusTrap(){return new on({trapElement:this._element})}_addEventListeners(){fe.on(this._element,zn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():fe.trigger(this._element,Fn))}))}static jQueryInterface(t){return this.each((function(){const e=Vn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}fe.on(document,Wn,'[data-bs-toggle="offcanvas"]',(function(t){const e=we.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this))return;fe.one(e,Hn,(()=>{Bt(this)&&this.focus()}));const i=we.findOne(Nn);i&&i!==e&&Vn.getInstance(i).hide(),Vn.getOrCreateInstance(e).toggle(this)})),fe.on(window,Sn,(()=>{for(const t of we.find(Nn))Vn.getOrCreateInstance(t).show()})),fe.on(window,Bn,(()=>{for(const t of we.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Vn.getOrCreateInstance(t).hide()})),Ee(Vn),Qt(Vn);const Yn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Kn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Xn=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Kn.has(i)||Boolean(Qn.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Un={allowList:Yn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Gn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Jn={entry:"(string|element|function|null)",selector:"(string|element)"};class Zn extends be{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Un}static get DefaultType(){return Gn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Jn)}_setContent(t,e,i){const n=we.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?Ft(e)?this._putElementInTemplate(Ht(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Xn(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Xt(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const ts=new Set(["sanitize","allowList","sanitizeFn"]),es="fade",is="show",ns=".modal",ss="hide.bs.modal",os="hover",rs="focus",as={AUTO:"auto",TOP:"top",RIGHT:Kt()?"left":"right",BOTTOM:"bottom",LEFT:Kt()?"right":"left"},ls={allowList:Yn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},cs={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class hs extends ve{constructor(t,i){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,i),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ls}static get DefaultType(){return cs}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),fe.off(this._element.closest(ns),ss,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=fe.trigger(this._element,this.constructor.eventName("show")),e=(zt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),fe.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(is),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.on(t,"mouseover",Rt);this._queueCallback((()=>{fe.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!fe.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(is),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",Rt);this._activeTrigger.click=!1,this._activeTrigger[rs]=!1,this._activeTrigger[os]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),fe.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(es,is),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(es),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Zn({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(es)}_isShown(){return this.tip&&this.tip.classList.contains(is)}_createPopper(t){const e=Xt(this._config.placement,[this,t,this._element]),i=as[e.toUpperCase()];return Dt(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Xt(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Xt(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)fe.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===os?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===os?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");fe.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?rs:os]=!0,e._enter()})),fe.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?rs:os]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},fe.on(this._element.closest(ns),ss,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=_e.getDataAttributes(this._element);for(const t of Object.keys(e))ts.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Ht(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=hs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt(hs);const ds={...hs.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},us={...hs.DefaultType,content:"(null|string|element|function)"};class fs extends hs{static get Default(){return ds}static get DefaultType(){return us}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=fs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Qt(fs);const ps=".bs.scrollspy",ms=`activate${ps}`,gs=`click${ps}`,_s=`load${ps}.data-api`,bs="active",vs="[href]",ys=".nav-link",ws=`${ys}, .nav-item > ${ys}, .list-group-item`,Es={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},As={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ts extends ve{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Es}static get DefaultType(){return As}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ht(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(fe.off(this._config.target,gs),fe.on(this._config.target,gs,vs,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=we.find(vs,this._config.target);for(const e of t){if(!e.hash||Wt(e))continue;const t=we.findOne(decodeURI(e.hash),this._element);Bt(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(bs),this._activateParents(t),fe.trigger(this._element,ms,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))we.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(bs);else for(const e of we.parents(t,".nav, .list-group"))for(const t of we.prev(e,ws))t.classList.add(bs)}_clearActiveClass(t){t.classList.remove(bs);const e=we.find(`${vs}.${bs}`,t);for(const t of e)t.classList.remove(bs)}static jQueryInterface(t){return this.each((function(){const e=Ts.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}fe.on(window,_s,(()=>{for(const t of we.find('[data-bs-spy="scroll"]'))Ts.getOrCreateInstance(t)})),Qt(Ts);const Cs=".bs.tab",Os=`hide${Cs}`,xs=`hidden${Cs}`,ks=`show${Cs}`,Ls=`shown${Cs}`,Ss=`click${Cs}`,Ds=`keydown${Cs}`,$s=`load${Cs}`,Is="ArrowLeft",Ns="ArrowRight",Ps="ArrowUp",Ms="ArrowDown",js="Home",Fs="End",Hs="active",Bs="fade",Ws="show",zs=".dropdown-toggle",Rs=`:not(${zs})`,qs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Vs=`.nav-link${Rs}, .list-group-item${Rs}, [role="tab"]${Rs}, ${qs}`,Ys=`.${Hs}[data-bs-toggle="tab"], .${Hs}[data-bs-toggle="pill"], .${Hs}[data-bs-toggle="list"]`;class Ks extends ve{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),fe.on(this._element,Ds,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?fe.trigger(e,Os,{relatedTarget:t}):null;fe.trigger(t,ks,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Hs),this._activate(we.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),fe.trigger(t,Ls,{relatedTarget:e})):t.classList.add(Ws)}),t,t.classList.contains(Bs)))}_deactivate(t,e){t&&(t.classList.remove(Hs),t.blur(),this._deactivate(we.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),fe.trigger(t,xs,{relatedTarget:e})):t.classList.remove(Ws)}),t,t.classList.contains(Bs)))}_keydown(t){if(![Is,Ns,Ps,Ms,js,Fs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!Wt(t)));let i;if([js,Fs].includes(t.key))i=e[t.key===js?0:e.length-1];else{const n=[Ns,Ms].includes(t.key);i=Gt(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),Ks.getOrCreateInstance(i).show())}_getChildren(){return we.find(Vs,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=we.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=we.findOne(t,i);s&&s.classList.toggle(n,e)};n(zs,Hs),n(".dropdown-menu",Ws),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Hs)}_getInnerElement(t){return t.matches(Vs)?t:we.findOne(Vs,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Ks.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}fe.on(document,Ss,qs,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Wt(this)||Ks.getOrCreateInstance(this).show()})),fe.on(window,$s,(()=>{for(const t of we.find(Ys))Ks.getOrCreateInstance(t)})),Qt(Ks);const Qs=".bs.toast",Xs=`mouseover${Qs}`,Us=`mouseout${Qs}`,Gs=`focusin${Qs}`,Js=`focusout${Qs}`,Zs=`hide${Qs}`,to=`hidden${Qs}`,eo=`show${Qs}`,io=`shown${Qs}`,no="hide",so="show",oo="showing",ro={animation:"boolean",autohide:"boolean",delay:"number"},ao={animation:!0,autohide:!0,delay:5e3};class lo extends ve{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ao}static get DefaultType(){return ro}static get NAME(){return"toast"}show(){fe.trigger(this._element,eo).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(no),qt(this._element),this._element.classList.add(so,oo),this._queueCallback((()=>{this._element.classList.remove(oo),fe.trigger(this._element,io),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(fe.trigger(this._element,Zs).defaultPrevented||(this._element.classList.add(oo),this._queueCallback((()=>{this._element.classList.add(no),this._element.classList.remove(oo,so),fe.trigger(this._element,to)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(so),super.dispose()}isShown(){return this._element.classList.contains(so)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){fe.on(this._element,Xs,(t=>this._onInteraction(t,!0))),fe.on(this._element,Us,(t=>this._onInteraction(t,!1))),fe.on(this._element,Gs,(t=>this._onInteraction(t,!0))),fe.on(this._element,Js,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=lo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}function co(t){"loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t)}Ee(lo),Qt(lo),co((function(){[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new hs(t,{delay:{show:500,hide:100}})}))})),co((function(){document.getElementById("pst-back-to-top").addEventListener("click",(function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}))})),co((function(){var t=document.getElementById("pst-back-to-top"),e=document.getElementsByClassName("bd-header")[0].getBoundingClientRect();window.addEventListener("scroll",(function(){this.oldScroll>this.scrollY&&this.scrollY>e.bottom?t.style.display="block":t.style.display="none",this.oldScroll=this.scrollY}))})),window.bootstrap=i})(); //# sourceMappingURL=bootstrap.js.map \ No newline at end of file diff --git a/_static/scripts/bootstrap.js.map b/_static/scripts/bootstrap.js.map index e5bc1575..64e212b1 100644 --- a/_static/scripts/bootstrap.js.map +++ b/_static/scripts/bootstrap.js.map @@ -1 +1 @@ -{"version":3,"file":"scripts/bootstrap.js","mappings":";mBACA,IAAIA,EAAsB,CCA1BA,EAAwB,CAACC,EAASC,KACjC,IAAI,IAAIC,KAAOD,EACXF,EAAoBI,EAAEF,EAAYC,KAASH,EAAoBI,EAAEH,EAASE,IAC5EE,OAAOC,eAAeL,EAASE,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDH,EAAwB,CAACS,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFV,EAAyBC,IACH,oBAAXa,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeL,EAASa,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeL,EAAS,aAAc,CAAEe,OAAO,GAAO,ipBCLvD,IAAI,EAAM,MACNC,EAAS,SACTC,EAAQ,QACRC,EAAO,OACPC,EAAO,OACPC,EAAiB,CAAC,EAAKJ,EAAQC,EAAOC,GACtCG,EAAQ,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Y,EAC1BpG,SAASC,gBAAgBmG,UAAY,CACvC,GACF,IAuBAy+B,IArBA,WACE,IAAIE,EAAM/kC,SAAS68B,eAAe,mBAC9BmI,EAAShlC,SACVilC,uBAAuB,aAAa,GACpChnC,wBACH1D,OAAOkL,iBAAiB,UAAU,WAC5BkV,KAAKuqB,UAAYvqB,KAAKwqB,SAAWxqB,KAAKwqB,QAAUH,EAAOzsC,OACzDwsC,EAAIrpC,MAAM6wB,QAAU,QAEpBwY,EAAIrpC,MAAM6wB,QAAU,OAEtB5R,KAAKuqB,UAAYvqB,KAAKwqB,OACxB,GACF","sources":["webpack://pydata_sphinx_theme/webpack/bootstrap","webpack://pydata_sphinx_theme/webpack/runtime/define property getters","webpack://pydata_sphinx_theme/webpack/runtime/hasOwnProperty shorthand","webpack://pydata_sphinx_theme/webpack/runtime/make namespace object","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/enums.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getWindow.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/applyStyles.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getBasePlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/math.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/userAgent.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/contains.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/within.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/expandToHashMap.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/arrow.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getVariation.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/computeStyles.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/eventListeners.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/rectToClientRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/computeOffsets.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/detectOverflow.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/flip.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/hide.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/offset.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/getAltAxis.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/orderModifiers.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/createPopper.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/debounce.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/utils/mergeByName.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/popper.js","webpack://pydata_sphinx_theme/./node_modules/@popperjs/core/lib/popper-lite.js","webpack://pydata_sphinx_theme/./node_modules/bootstrap/dist/js/bootstrap.esm.js","webpack://pydata_sphinx_theme/./src/pydata_sphinx_theme/assets/scripts/mixin.js","webpack://pydata_sphinx_theme/./src/pydata_sphinx_theme/assets/scripts/bootstrap.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow };","/*!\n * Bootstrap v5.3.2 (https://getbootstrap.com/)\n * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\nimport * as Popper from '@popperjs/core';\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * Constants\n */\n\nconst elementMap = new Map();\nconst Data = {\n set(element, key, instance) {\n if (!elementMap.has(element)) {\n elementMap.set(element, new Map());\n }\n const instanceMap = elementMap.get(element);\n\n // make it clear we only want one instance per element\n // can be removed later when multiple key/instances are fine to be used\n if (!instanceMap.has(key) && instanceMap.size !== 0) {\n // eslint-disable-next-line no-console\n console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);\n return;\n }\n instanceMap.set(key, instance);\n },\n get(element, key) {\n if (elementMap.has(element)) {\n return elementMap.get(element).get(key) || null;\n }\n return null;\n },\n remove(element, key) {\n if (!elementMap.has(element)) {\n return;\n }\n const instanceMap = elementMap.get(element);\n instanceMap.delete(key);\n\n // free up element references if there are no instances left for an element\n if (instanceMap.size === 0) {\n elementMap.delete(element);\n }\n }\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1000000;\nconst MILLISECONDS_MULTIPLIER = 1000;\nconst TRANSITION_END = 'transitionend';\n\n/**\n * Properly escape IDs selectors to handle weird IDs\n * @param {string} selector\n * @returns {string}\n */\nconst parseSelector = selector => {\n if (selector && window.CSS && window.CSS.escape) {\n // document.querySelector needs escaping to handle IDs (html5+) containing for instance /\n selector = selector.replace(/#([^\\s\"#']+)/g, (match, id) => `#${CSS.escape(id)}`);\n }\n return selector;\n};\n\n// Shout-out Angus Croll (https://goo.gl/pxwQGp)\nconst toType = object => {\n if (object === null || object === undefined) {\n return `${object}`;\n }\n return Object.prototype.toString.call(object).match(/\\s([a-z]+)/i)[1].toLowerCase();\n};\n\n/**\n * Public Util API\n */\n\nconst getUID = prefix => {\n do {\n prefix += Math.floor(Math.random() * MAX_UID);\n } while (document.getElementById(prefix));\n return prefix;\n};\nconst getTransitionDurationFromElement = element => {\n if (!element) {\n return 0;\n }\n\n // Get transition-duration of the element\n let {\n transitionDuration,\n transitionDelay\n } = window.getComputedStyle(element);\n const floatTransitionDuration = Number.parseFloat(transitionDuration);\n const floatTransitionDelay = Number.parseFloat(transitionDelay);\n\n // Return 0 if element or transition duration is not found\n if (!floatTransitionDuration && !floatTransitionDelay) {\n return 0;\n }\n\n // If multiple durations are defined, take the first\n transitionDuration = transitionDuration.split(',')[0];\n transitionDelay = transitionDelay.split(',')[0];\n return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;\n};\nconst triggerTransitionEnd = element => {\n element.dispatchEvent(new Event(TRANSITION_END));\n};\nconst isElement = object => {\n if (!object || typeof object !== 'object') {\n return false;\n }\n if (typeof object.jquery !== 'undefined') {\n object = object[0];\n }\n return typeof object.nodeType !== 'undefined';\n};\nconst getElement = object => {\n // it's a jQuery object or a node element\n if (isElement(object)) {\n return object.jquery ? object[0] : object;\n }\n if (typeof object === 'string' && object.length > 0) {\n return document.querySelector(parseSelector(object));\n }\n return null;\n};\nconst isVisible = element => {\n if (!isElement(element) || element.getClientRects().length === 0) {\n return false;\n }\n const elementIsVisible = getComputedStyle(element).getPropertyValue('visibility') === 'visible';\n // Handle `details` element as its content may falsie appear visible when it is closed\n const closedDetails = element.closest('details:not([open])');\n if (!closedDetails) {\n return elementIsVisible;\n }\n if (closedDetails !== element) {\n const summary = element.closest('summary');\n if (summary && summary.parentNode !== closedDetails) {\n return false;\n }\n if (summary === null) {\n return false;\n }\n }\n return elementIsVisible;\n};\nconst isDisabled = element => {\n if (!element || element.nodeType !== Node.ELEMENT_NODE) {\n return true;\n }\n if (element.classList.contains('disabled')) {\n return true;\n }\n if (typeof element.disabled !== 'undefined') {\n return element.disabled;\n }\n return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false';\n};\nconst findShadowRoot = element => {\n if (!document.documentElement.attachShadow) {\n return null;\n }\n\n // Can find the shadow root otherwise it'll return the document\n if (typeof element.getRootNode === 'function') {\n const root = element.getRootNode();\n return root instanceof ShadowRoot ? root : null;\n }\n if (element instanceof ShadowRoot) {\n return element;\n }\n\n // when we don't find a shadow root\n if (!element.parentNode) {\n return null;\n }\n return findShadowRoot(element.parentNode);\n};\nconst noop = () => {};\n\n/**\n * Trick to restart an element's animation\n *\n * @param {HTMLElement} element\n * @return void\n *\n * @see https://www.charistheo.io/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation\n */\nconst reflow = element => {\n element.offsetHeight; // eslint-disable-line no-unused-expressions\n};\n\nconst getjQuery = () => {\n if (window.jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {\n return window.jQuery;\n }\n return null;\n};\nconst DOMContentLoadedCallbacks = [];\nconst onDOMContentLoaded = callback => {\n if (document.readyState === 'loading') {\n // add listener on the first call when the document is in loading state\n if (!DOMContentLoadedCallbacks.length) {\n document.addEventListener('DOMContentLoaded', () => {\n for (const callback of DOMContentLoadedCallbacks) {\n callback();\n }\n });\n }\n DOMContentLoadedCallbacks.push(callback);\n } else {\n callback();\n }\n};\nconst isRTL = () => document.documentElement.dir === 'rtl';\nconst defineJQueryPlugin = plugin => {\n onDOMContentLoaded(() => {\n const $ = getjQuery();\n /* istanbul ignore if */\n if ($) {\n const name = plugin.NAME;\n const JQUERY_NO_CONFLICT = $.fn[name];\n $.fn[name] = plugin.jQueryInterface;\n $.fn[name].Constructor = plugin;\n $.fn[name].noConflict = () => {\n $.fn[name] = JQUERY_NO_CONFLICT;\n return plugin.jQueryInterface;\n };\n }\n });\n};\nconst execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {\n return typeof possibleCallback === 'function' ? possibleCallback(...args) : defaultValue;\n};\nconst executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {\n if (!waitForTransition) {\n execute(callback);\n return;\n }\n const durationPadding = 5;\n const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding;\n let called = false;\n const handler = ({\n target\n }) => {\n if (target !== transitionElement) {\n return;\n }\n called = true;\n transitionElement.removeEventListener(TRANSITION_END, handler);\n execute(callback);\n };\n transitionElement.addEventListener(TRANSITION_END, handler);\n setTimeout(() => {\n if (!called) {\n triggerTransitionEnd(transitionElement);\n }\n }, emulatedDuration);\n};\n\n/**\n * Return the previous/next element of a list.\n *\n * @param {array} list The list of elements\n * @param activeElement The active element\n * @param shouldGetNext Choose to get next or previous element\n * @param isCycleAllowed\n * @return {Element|elem} The proper element\n */\nconst getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed) => {\n const listLength = list.length;\n let index = list.indexOf(activeElement);\n\n // if the element does not exist in the list return an element\n // depending on the direction and if cycle is allowed\n if (index === -1) {\n return !shouldGetNext && isCycleAllowed ? list[listLength - 1] : list[0];\n }\n index += shouldGetNext ? 1 : -1;\n if (isCycleAllowed) {\n index = (index + listLength) % listLength;\n }\n return list[Math.max(0, Math.min(index, listLength - 1))];\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/event-handler.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst namespaceRegex = /[^.]*(?=\\..*)\\.|.*/;\nconst stripNameRegex = /\\..*/;\nconst stripUidRegex = /::\\d+$/;\nconst eventRegistry = {}; // Events storage\nlet uidEvent = 1;\nconst customEvents = {\n mouseenter: 'mouseover',\n mouseleave: 'mouseout'\n};\nconst nativeEvents = new Set(['click', 'dblclick', 'mouseup', 'mousedown', 'contextmenu', 'mousewheel', 'DOMMouseScroll', 'mouseover', 'mouseout', 'mousemove', 'selectstart', 'selectend', 'keydown', 'keypress', 'keyup', 'orientationchange', 'touchstart', 'touchmove', 'touchend', 'touchcancel', 'pointerdown', 'pointermove', 'pointerup', 'pointerleave', 'pointercancel', 'gesturestart', 'gesturechange', 'gestureend', 'focus', 'blur', 'change', 'reset', 'select', 'submit', 'focusin', 'focusout', 'load', 'unload', 'beforeunload', 'resize', 'move', 'DOMContentLoaded', 'readystatechange', 'error', 'abort', 'scroll']);\n\n/**\n * Private methods\n */\n\nfunction makeEventUid(element, uid) {\n return uid && `${uid}::${uidEvent++}` || element.uidEvent || uidEvent++;\n}\nfunction getElementEvents(element) {\n const uid = makeEventUid(element);\n element.uidEvent = uid;\n eventRegistry[uid] = eventRegistry[uid] || {};\n return eventRegistry[uid];\n}\nfunction bootstrapHandler(element, fn) {\n return function handler(event) {\n hydrateObj(event, {\n delegateTarget: element\n });\n if (handler.oneOff) {\n EventHandler.off(element, event.type, fn);\n }\n return fn.apply(element, [event]);\n };\n}\nfunction bootstrapDelegationHandler(element, selector, fn) {\n return function handler(event) {\n const domElements = element.querySelectorAll(selector);\n for (let {\n target\n } = event; target && target !== this; target = target.parentNode) {\n for (const domElement of domElements) {\n if (domElement !== target) {\n continue;\n }\n hydrateObj(event, {\n delegateTarget: target\n });\n if (handler.oneOff) {\n EventHandler.off(element, event.type, selector, fn);\n }\n return fn.apply(target, [event]);\n }\n }\n };\n}\nfunction findHandler(events, callable, delegationSelector = null) {\n return Object.values(events).find(event => event.callable === callable && event.delegationSelector === delegationSelector);\n}\nfunction normalizeParameters(originalTypeEvent, handler, delegationFunction) {\n const isDelegated = typeof handler === 'string';\n // TODO: tooltip passes `false` instead of selector, so we need to check\n const callable = isDelegated ? delegationFunction : handler || delegationFunction;\n let typeEvent = getTypeEvent(originalTypeEvent);\n if (!nativeEvents.has(typeEvent)) {\n typeEvent = originalTypeEvent;\n }\n return [isDelegated, callable, typeEvent];\n}\nfunction addHandler(element, originalTypeEvent, handler, delegationFunction, oneOff) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n let [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction);\n\n // in case of mouseenter or mouseleave wrap the handler within a function that checks for its DOM position\n // this prevents the handler from being dispatched the same way as mouseover or mouseout does\n if (originalTypeEvent in customEvents) {\n const wrapFunction = fn => {\n return function (event) {\n if (!event.relatedTarget || event.relatedTarget !== event.delegateTarget && !event.delegateTarget.contains(event.relatedTarget)) {\n return fn.call(this, event);\n }\n };\n };\n callable = wrapFunction(callable);\n }\n const events = getElementEvents(element);\n const handlers = events[typeEvent] || (events[typeEvent] = {});\n const previousFunction = findHandler(handlers, callable, isDelegated ? handler : null);\n if (previousFunction) {\n previousFunction.oneOff = previousFunction.oneOff && oneOff;\n return;\n }\n const uid = makeEventUid(callable, originalTypeEvent.replace(namespaceRegex, ''));\n const fn = isDelegated ? bootstrapDelegationHandler(element, handler, callable) : bootstrapHandler(element, callable);\n fn.delegationSelector = isDelegated ? handler : null;\n fn.callable = callable;\n fn.oneOff = oneOff;\n fn.uidEvent = uid;\n handlers[uid] = fn;\n element.addEventListener(typeEvent, fn, isDelegated);\n}\nfunction removeHandler(element, events, typeEvent, handler, delegationSelector) {\n const fn = findHandler(events[typeEvent], handler, delegationSelector);\n if (!fn) {\n return;\n }\n element.removeEventListener(typeEvent, fn, Boolean(delegationSelector));\n delete events[typeEvent][fn.uidEvent];\n}\nfunction removeNamespacedHandlers(element, events, typeEvent, namespace) {\n const storeElementEvent = events[typeEvent] || {};\n for (const [handlerKey, event] of Object.entries(storeElementEvent)) {\n if (handlerKey.includes(namespace)) {\n removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);\n }\n }\n}\nfunction getTypeEvent(event) {\n // allow to get the native events from namespaced events ('click.bs.button' --> 'click')\n event = event.replace(stripNameRegex, '');\n return customEvents[event] || event;\n}\nconst EventHandler = {\n on(element, event, handler, delegationFunction) {\n addHandler(element, event, handler, delegationFunction, false);\n },\n one(element, event, handler, delegationFunction) {\n addHandler(element, event, handler, delegationFunction, true);\n },\n off(element, originalTypeEvent, handler, delegationFunction) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return;\n }\n const [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction);\n const inNamespace = typeEvent !== originalTypeEvent;\n const events = getElementEvents(element);\n const storeElementEvent = events[typeEvent] || {};\n const isNamespace = originalTypeEvent.startsWith('.');\n if (typeof callable !== 'undefined') {\n // Simplest case: handler is passed, remove that listener ONLY.\n if (!Object.keys(storeElementEvent).length) {\n return;\n }\n removeHandler(element, events, typeEvent, callable, isDelegated ? handler : null);\n return;\n }\n if (isNamespace) {\n for (const elementEvent of Object.keys(events)) {\n removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1));\n }\n }\n for (const [keyHandlers, event] of Object.entries(storeElementEvent)) {\n const handlerKey = keyHandlers.replace(stripUidRegex, '');\n if (!inNamespace || originalTypeEvent.includes(handlerKey)) {\n removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);\n }\n }\n },\n trigger(element, event, args) {\n if (typeof event !== 'string' || !element) {\n return null;\n }\n const $ = getjQuery();\n const typeEvent = getTypeEvent(event);\n const inNamespace = event !== typeEvent;\n let jQueryEvent = null;\n let bubbles = true;\n let nativeDispatch = true;\n let defaultPrevented = false;\n if (inNamespace && $) {\n jQueryEvent = $.Event(event, args);\n $(element).trigger(jQueryEvent);\n bubbles = !jQueryEvent.isPropagationStopped();\n nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();\n defaultPrevented = jQueryEvent.isDefaultPrevented();\n }\n const evt = hydrateObj(new Event(event, {\n bubbles,\n cancelable: true\n }), args);\n if (defaultPrevented) {\n evt.preventDefault();\n }\n if (nativeDispatch) {\n element.dispatchEvent(evt);\n }\n if (evt.defaultPrevented && jQueryEvent) {\n jQueryEvent.preventDefault();\n }\n return evt;\n }\n};\nfunction hydrateObj(obj, meta = {}) {\n for (const [key, value] of Object.entries(meta)) {\n try {\n obj[key] = value;\n } catch (_unused) {\n Object.defineProperty(obj, key, {\n configurable: true,\n get() {\n return value;\n }\n });\n }\n }\n return obj;\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(value) {\n if (value === 'true') {\n return true;\n }\n if (value === 'false') {\n return false;\n }\n if (value === Number(value).toString()) {\n return Number(value);\n }\n if (value === '' || value === 'null') {\n return null;\n }\n if (typeof value !== 'string') {\n return value;\n }\n try {\n return JSON.parse(decodeURIComponent(value));\n } catch (_unused) {\n return value;\n }\n}\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`);\n}\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value);\n },\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-bs-${normalizeDataKey(key)}`);\n },\n getDataAttributes(element) {\n if (!element) {\n return {};\n }\n const attributes = {};\n const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'));\n for (const key of bsKeys) {\n let pureKey = key.replace(/^bs/, '');\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);\n attributes[pureKey] = normalizeData(element.dataset[key]);\n }\n return attributes;\n },\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`));\n }\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/config.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Class definition\n */\n\nclass Config {\n // Getters\n static get Default() {\n return {};\n }\n static get DefaultType() {\n return {};\n }\n static get NAME() {\n throw new Error('You have to implement the static method \"NAME\", for each component!');\n }\n _getConfig(config) {\n config = this._mergeConfigObj(config);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n _configAfterMerge(config) {\n return config;\n }\n _mergeConfigObj(config, element) {\n const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {}; // try to parse\n\n return {\n ...this.constructor.Default,\n ...(typeof jsonConfig === 'object' ? jsonConfig : {}),\n ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),\n ...(typeof config === 'object' ? config : {})\n };\n }\n _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {\n for (const [property, expectedTypes] of Object.entries(configTypes)) {\n const value = config[property];\n const valueType = isElement(value) ? 'element' : toType(value);\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option \"${property}\" provided type \"${valueType}\" but expected type \"${expectedTypes}\".`);\n }\n }\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst VERSION = '5.3.2';\n\n/**\n * Class definition\n */\n\nclass BaseComponent extends Config {\n constructor(element, config) {\n super();\n element = getElement(element);\n if (!element) {\n return;\n }\n this._element = element;\n this._config = this._getConfig(config);\n Data.set(this._element, this.constructor.DATA_KEY, this);\n }\n\n // Public\n dispose() {\n Data.remove(this._element, this.constructor.DATA_KEY);\n EventHandler.off(this._element, this.constructor.EVENT_KEY);\n for (const propertyName of Object.getOwnPropertyNames(this)) {\n this[propertyName] = null;\n }\n }\n _queueCallback(callback, element, isAnimated = true) {\n executeAfterTransition(callback, element, isAnimated);\n }\n _getConfig(config) {\n config = this._mergeConfigObj(config, this._element);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n\n // Static\n static getInstance(element) {\n return Data.get(getElement(element), this.DATA_KEY);\n }\n static getOrCreateInstance(element, config = {}) {\n return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null);\n }\n static get VERSION() {\n return VERSION;\n }\n static get DATA_KEY() {\n return `bs.${this.NAME}`;\n }\n static get EVENT_KEY() {\n return `.${this.DATA_KEY}`;\n }\n static eventName(name) {\n return `${name}${this.EVENT_KEY}`;\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst getSelector = element => {\n let selector = element.getAttribute('data-bs-target');\n if (!selector || selector === '#') {\n let hrefAttribute = element.getAttribute('href');\n\n // The only valid content that could double as a selector are IDs or classes,\n // so everything starting with `#` or `.`. If a \"real\" URL is used as the selector,\n // `document.querySelector` will rightfully complain it is invalid.\n // See https://github.com/twbs/bootstrap/issues/32273\n if (!hrefAttribute || !hrefAttribute.includes('#') && !hrefAttribute.startsWith('.')) {\n return null;\n }\n\n // Just in case some CMS puts out a full URL with the anchor appended\n if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) {\n hrefAttribute = `#${hrefAttribute.split('#')[1]}`;\n }\n selector = hrefAttribute && hrefAttribute !== '#' ? parseSelector(hrefAttribute.trim()) : null;\n }\n return selector;\n};\nconst SelectorEngine = {\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector));\n },\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector);\n },\n children(element, selector) {\n return [].concat(...element.children).filter(child => child.matches(selector));\n },\n parents(element, selector) {\n const parents = [];\n let ancestor = element.parentNode.closest(selector);\n while (ancestor) {\n parents.push(ancestor);\n ancestor = ancestor.parentNode.closest(selector);\n }\n return parents;\n },\n prev(element, selector) {\n let previous = element.previousElementSibling;\n while (previous) {\n if (previous.matches(selector)) {\n return [previous];\n }\n previous = previous.previousElementSibling;\n }\n return [];\n },\n // TODO: this is now unused; remove later along with prev()\n next(element, selector) {\n let next = element.nextElementSibling;\n while (next) {\n if (next.matches(selector)) {\n return [next];\n }\n next = next.nextElementSibling;\n }\n return [];\n },\n focusableChildren(element) {\n const focusables = ['a', 'button', 'input', 'textarea', 'select', 'details', '[tabindex]', '[contenteditable=\"true\"]'].map(selector => `${selector}:not([tabindex^=\"-\"])`).join(',');\n return this.find(focusables, element).filter(el => !isDisabled(el) && isVisible(el));\n },\n getSelectorFromElement(element) {\n const selector = getSelector(element);\n if (selector) {\n return SelectorEngine.findOne(selector) ? selector : null;\n }\n return null;\n },\n getElementFromSelector(element) {\n const selector = getSelector(element);\n return selector ? SelectorEngine.findOne(selector) : null;\n },\n getMultipleElementsFromSelector(element) {\n const selector = getSelector(element);\n return selector ? SelectorEngine.find(selector) : [];\n }\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/component-functions.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst enableDismissTrigger = (component, method = 'hide') => {\n const clickEvent = `click.dismiss${component.EVENT_KEY}`;\n const name = component.NAME;\n EventHandler.on(document, clickEvent, `[data-bs-dismiss=\"${name}\"]`, function (event) {\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n if (isDisabled(this)) {\n return;\n }\n const target = SelectorEngine.getElementFromSelector(this) || this.closest(`.${name}`);\n const instance = component.getOrCreateInstance(target);\n\n // Method argument is left, for Alert and only, as it doesn't implement the 'hide' method\n instance[method]();\n });\n};\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap alert.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$f = 'alert';\nconst DATA_KEY$a = 'bs.alert';\nconst EVENT_KEY$b = `.${DATA_KEY$a}`;\nconst EVENT_CLOSE = `close${EVENT_KEY$b}`;\nconst EVENT_CLOSED = `closed${EVENT_KEY$b}`;\nconst CLASS_NAME_FADE$5 = 'fade';\nconst CLASS_NAME_SHOW$8 = 'show';\n\n/**\n * Class definition\n */\n\nclass Alert extends BaseComponent {\n // Getters\n static get NAME() {\n return NAME$f;\n }\n\n // Public\n close() {\n const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE);\n if (closeEvent.defaultPrevented) {\n return;\n }\n this._element.classList.remove(CLASS_NAME_SHOW$8);\n const isAnimated = this._element.classList.contains(CLASS_NAME_FADE$5);\n this._queueCallback(() => this._destroyElement(), this._element, isAnimated);\n }\n\n // Private\n _destroyElement() {\n this._element.remove();\n EventHandler.trigger(this._element, EVENT_CLOSED);\n this.dispose();\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Alert.getOrCreateInstance(this);\n if (typeof config !== 'string') {\n return;\n }\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](this);\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nenableDismissTrigger(Alert, 'close');\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Alert);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap button.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$e = 'button';\nconst DATA_KEY$9 = 'bs.button';\nconst EVENT_KEY$a = `.${DATA_KEY$9}`;\nconst DATA_API_KEY$6 = '.data-api';\nconst CLASS_NAME_ACTIVE$3 = 'active';\nconst SELECTOR_DATA_TOGGLE$5 = '[data-bs-toggle=\"button\"]';\nconst EVENT_CLICK_DATA_API$6 = `click${EVENT_KEY$a}${DATA_API_KEY$6}`;\n\n/**\n * Class definition\n */\n\nclass Button extends BaseComponent {\n // Getters\n static get NAME() {\n return NAME$e;\n }\n\n // Public\n toggle() {\n // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method\n this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE$3));\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Button.getOrCreateInstance(this);\n if (config === 'toggle') {\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$5, event => {\n event.preventDefault();\n const button = event.target.closest(SELECTOR_DATA_TOGGLE$5);\n const data = Button.getOrCreateInstance(button);\n data.toggle();\n});\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Button);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/swipe.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$d = 'swipe';\nconst EVENT_KEY$9 = '.bs.swipe';\nconst EVENT_TOUCHSTART = `touchstart${EVENT_KEY$9}`;\nconst EVENT_TOUCHMOVE = `touchmove${EVENT_KEY$9}`;\nconst EVENT_TOUCHEND = `touchend${EVENT_KEY$9}`;\nconst EVENT_POINTERDOWN = `pointerdown${EVENT_KEY$9}`;\nconst EVENT_POINTERUP = `pointerup${EVENT_KEY$9}`;\nconst POINTER_TYPE_TOUCH = 'touch';\nconst POINTER_TYPE_PEN = 'pen';\nconst CLASS_NAME_POINTER_EVENT = 'pointer-event';\nconst SWIPE_THRESHOLD = 40;\nconst Default$c = {\n endCallback: null,\n leftCallback: null,\n rightCallback: null\n};\nconst DefaultType$c = {\n endCallback: '(function|null)',\n leftCallback: '(function|null)',\n rightCallback: '(function|null)'\n};\n\n/**\n * Class definition\n */\n\nclass Swipe extends Config {\n constructor(element, config) {\n super();\n this._element = element;\n if (!element || !Swipe.isSupported()) {\n return;\n }\n this._config = this._getConfig(config);\n this._deltaX = 0;\n this._supportPointerEvents = Boolean(window.PointerEvent);\n this._initEvents();\n }\n\n // Getters\n static get Default() {\n return Default$c;\n }\n static get DefaultType() {\n return DefaultType$c;\n }\n static get NAME() {\n return NAME$d;\n }\n\n // Public\n dispose() {\n EventHandler.off(this._element, EVENT_KEY$9);\n }\n\n // Private\n _start(event) {\n if (!this._supportPointerEvents) {\n this._deltaX = event.touches[0].clientX;\n return;\n }\n if (this._eventIsPointerPenTouch(event)) {\n this._deltaX = event.clientX;\n }\n }\n _end(event) {\n if (this._eventIsPointerPenTouch(event)) {\n this._deltaX = event.clientX - this._deltaX;\n }\n this._handleSwipe();\n execute(this._config.endCallback);\n }\n _move(event) {\n this._deltaX = event.touches && event.touches.length > 1 ? 0 : event.touches[0].clientX - this._deltaX;\n }\n _handleSwipe() {\n const absDeltaX = Math.abs(this._deltaX);\n if (absDeltaX <= SWIPE_THRESHOLD) {\n return;\n }\n const direction = absDeltaX / this._deltaX;\n this._deltaX = 0;\n if (!direction) {\n return;\n }\n execute(direction > 0 ? this._config.rightCallback : this._config.leftCallback);\n }\n _initEvents() {\n if (this._supportPointerEvents) {\n EventHandler.on(this._element, EVENT_POINTERDOWN, event => this._start(event));\n EventHandler.on(this._element, EVENT_POINTERUP, event => this._end(event));\n this._element.classList.add(CLASS_NAME_POINTER_EVENT);\n } else {\n EventHandler.on(this._element, EVENT_TOUCHSTART, event => this._start(event));\n EventHandler.on(this._element, EVENT_TOUCHMOVE, event => this._move(event));\n EventHandler.on(this._element, EVENT_TOUCHEND, event => this._end(event));\n }\n }\n _eventIsPointerPenTouch(event) {\n return this._supportPointerEvents && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH);\n }\n\n // Static\n static isSupported() {\n return 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap carousel.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$c = 'carousel';\nconst DATA_KEY$8 = 'bs.carousel';\nconst EVENT_KEY$8 = `.${DATA_KEY$8}`;\nconst DATA_API_KEY$5 = '.data-api';\nconst ARROW_LEFT_KEY$1 = 'ArrowLeft';\nconst ARROW_RIGHT_KEY$1 = 'ArrowRight';\nconst TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch\n\nconst ORDER_NEXT = 'next';\nconst ORDER_PREV = 'prev';\nconst DIRECTION_LEFT = 'left';\nconst DIRECTION_RIGHT = 'right';\nconst EVENT_SLIDE = `slide${EVENT_KEY$8}`;\nconst EVENT_SLID = `slid${EVENT_KEY$8}`;\nconst EVENT_KEYDOWN$1 = `keydown${EVENT_KEY$8}`;\nconst EVENT_MOUSEENTER$1 = `mouseenter${EVENT_KEY$8}`;\nconst EVENT_MOUSELEAVE$1 = `mouseleave${EVENT_KEY$8}`;\nconst EVENT_DRAG_START = `dragstart${EVENT_KEY$8}`;\nconst EVENT_LOAD_DATA_API$3 = `load${EVENT_KEY$8}${DATA_API_KEY$5}`;\nconst EVENT_CLICK_DATA_API$5 = `click${EVENT_KEY$8}${DATA_API_KEY$5}`;\nconst CLASS_NAME_CAROUSEL = 'carousel';\nconst CLASS_NAME_ACTIVE$2 = 'active';\nconst CLASS_NAME_SLIDE = 'slide';\nconst CLASS_NAME_END = 'carousel-item-end';\nconst CLASS_NAME_START = 'carousel-item-start';\nconst CLASS_NAME_NEXT = 'carousel-item-next';\nconst CLASS_NAME_PREV = 'carousel-item-prev';\nconst SELECTOR_ACTIVE = '.active';\nconst SELECTOR_ITEM = '.carousel-item';\nconst SELECTOR_ACTIVE_ITEM = SELECTOR_ACTIVE + SELECTOR_ITEM;\nconst SELECTOR_ITEM_IMG = '.carousel-item img';\nconst SELECTOR_INDICATORS = '.carousel-indicators';\nconst SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';\nconst SELECTOR_DATA_RIDE = '[data-bs-ride=\"carousel\"]';\nconst KEY_TO_DIRECTION = {\n [ARROW_LEFT_KEY$1]: DIRECTION_RIGHT,\n [ARROW_RIGHT_KEY$1]: DIRECTION_LEFT\n};\nconst Default$b = {\n interval: 5000,\n keyboard: true,\n pause: 'hover',\n ride: false,\n touch: true,\n wrap: true\n};\nconst DefaultType$b = {\n interval: '(number|boolean)',\n // TODO:v6 remove boolean support\n keyboard: 'boolean',\n pause: '(string|boolean)',\n ride: '(boolean|string)',\n touch: 'boolean',\n wrap: 'boolean'\n};\n\n/**\n * Class definition\n */\n\nclass Carousel extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._interval = null;\n this._activeElement = null;\n this._isSliding = false;\n this.touchTimeout = null;\n this._swipeHelper = null;\n this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element);\n this._addEventListeners();\n if (this._config.ride === CLASS_NAME_CAROUSEL) {\n this.cycle();\n }\n }\n\n // Getters\n static get Default() {\n return Default$b;\n }\n static get DefaultType() {\n return DefaultType$b;\n }\n static get NAME() {\n return NAME$c;\n }\n\n // Public\n next() {\n this._slide(ORDER_NEXT);\n }\n nextWhenVisible() {\n // FIXME TODO use `document.visibilityState`\n // Don't call next when the page isn't visible\n // or the carousel or its parent isn't visible\n if (!document.hidden && isVisible(this._element)) {\n this.next();\n }\n }\n prev() {\n this._slide(ORDER_PREV);\n }\n pause() {\n if (this._isSliding) {\n triggerTransitionEnd(this._element);\n }\n this._clearInterval();\n }\n cycle() {\n this._clearInterval();\n this._updateInterval();\n this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval);\n }\n _maybeEnableCycle() {\n if (!this._config.ride) {\n return;\n }\n if (this._isSliding) {\n EventHandler.one(this._element, EVENT_SLID, () => this.cycle());\n return;\n }\n this.cycle();\n }\n to(index) {\n const items = this._getItems();\n if (index > items.length - 1 || index < 0) {\n return;\n }\n if (this._isSliding) {\n EventHandler.one(this._element, EVENT_SLID, () => this.to(index));\n return;\n }\n const activeIndex = this._getItemIndex(this._getActive());\n if (activeIndex === index) {\n return;\n }\n const order = index > activeIndex ? ORDER_NEXT : ORDER_PREV;\n this._slide(order, items[index]);\n }\n dispose() {\n if (this._swipeHelper) {\n this._swipeHelper.dispose();\n }\n super.dispose();\n }\n\n // Private\n _configAfterMerge(config) {\n config.defaultInterval = config.interval;\n return config;\n }\n _addEventListeners() {\n if (this._config.keyboard) {\n EventHandler.on(this._element, EVENT_KEYDOWN$1, event => this._keydown(event));\n }\n if (this._config.pause === 'hover') {\n EventHandler.on(this._element, EVENT_MOUSEENTER$1, () => this.pause());\n EventHandler.on(this._element, EVENT_MOUSELEAVE$1, () => this._maybeEnableCycle());\n }\n if (this._config.touch && Swipe.isSupported()) {\n this._addTouchEventListeners();\n }\n }\n _addTouchEventListeners() {\n for (const img of SelectorEngine.find(SELECTOR_ITEM_IMG, this._element)) {\n EventHandler.on(img, EVENT_DRAG_START, event => event.preventDefault());\n }\n const endCallBack = () => {\n if (this._config.pause !== 'hover') {\n return;\n }\n\n // If it's a touch-enabled device, mouseenter/leave are fired as\n // part of the mouse compatibility events on first tap - the carousel\n // would stop cycling until user tapped out of it;\n // here, we listen for touchend, explicitly pause the carousel\n // (as if it's the second time we tap on it, mouseenter compat event\n // is NOT fired) and after a timeout (to allow for mouse compatibility\n // events to fire) we explicitly restart cycling\n\n this.pause();\n if (this.touchTimeout) {\n clearTimeout(this.touchTimeout);\n }\n this.touchTimeout = setTimeout(() => this._maybeEnableCycle(), TOUCHEVENT_COMPAT_WAIT + this._config.interval);\n };\n const swipeConfig = {\n leftCallback: () => this._slide(this._directionToOrder(DIRECTION_LEFT)),\n rightCallback: () => this._slide(this._directionToOrder(DIRECTION_RIGHT)),\n endCallback: endCallBack\n };\n this._swipeHelper = new Swipe(this._element, swipeConfig);\n }\n _keydown(event) {\n if (/input|textarea/i.test(event.target.tagName)) {\n return;\n }\n const direction = KEY_TO_DIRECTION[event.key];\n if (direction) {\n event.preventDefault();\n this._slide(this._directionToOrder(direction));\n }\n }\n _getItemIndex(element) {\n return this._getItems().indexOf(element);\n }\n _setActiveIndicatorElement(index) {\n if (!this._indicatorsElement) {\n return;\n }\n const activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement);\n activeIndicator.classList.remove(CLASS_NAME_ACTIVE$2);\n activeIndicator.removeAttribute('aria-current');\n const newActiveIndicator = SelectorEngine.findOne(`[data-bs-slide-to=\"${index}\"]`, this._indicatorsElement);\n if (newActiveIndicator) {\n newActiveIndicator.classList.add(CLASS_NAME_ACTIVE$2);\n newActiveIndicator.setAttribute('aria-current', 'true');\n }\n }\n _updateInterval() {\n const element = this._activeElement || this._getActive();\n if (!element) {\n return;\n }\n const elementInterval = Number.parseInt(element.getAttribute('data-bs-interval'), 10);\n this._config.interval = elementInterval || this._config.defaultInterval;\n }\n _slide(order, element = null) {\n if (this._isSliding) {\n return;\n }\n const activeElement = this._getActive();\n const isNext = order === ORDER_NEXT;\n const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap);\n if (nextElement === activeElement) {\n return;\n }\n const nextElementIndex = this._getItemIndex(nextElement);\n const triggerEvent = eventName => {\n return EventHandler.trigger(this._element, eventName, {\n relatedTarget: nextElement,\n direction: this._orderToDirection(order),\n from: this._getItemIndex(activeElement),\n to: nextElementIndex\n });\n };\n const slideEvent = triggerEvent(EVENT_SLIDE);\n if (slideEvent.defaultPrevented) {\n return;\n }\n if (!activeElement || !nextElement) {\n // Some weirdness is happening, so we bail\n // TODO: change tests that use empty divs to avoid this check\n return;\n }\n const isCycling = Boolean(this._interval);\n this.pause();\n this._isSliding = true;\n this._setActiveIndicatorElement(nextElementIndex);\n this._activeElement = nextElement;\n const directionalClassName = isNext ? CLASS_NAME_START : CLASS_NAME_END;\n const orderClassName = isNext ? CLASS_NAME_NEXT : CLASS_NAME_PREV;\n nextElement.classList.add(orderClassName);\n reflow(nextElement);\n activeElement.classList.add(directionalClassName);\n nextElement.classList.add(directionalClassName);\n const completeCallBack = () => {\n nextElement.classList.remove(directionalClassName, orderClassName);\n nextElement.classList.add(CLASS_NAME_ACTIVE$2);\n activeElement.classList.remove(CLASS_NAME_ACTIVE$2, orderClassName, directionalClassName);\n this._isSliding = false;\n triggerEvent(EVENT_SLID);\n };\n this._queueCallback(completeCallBack, activeElement, this._isAnimated());\n if (isCycling) {\n this.cycle();\n }\n }\n _isAnimated() {\n return this._element.classList.contains(CLASS_NAME_SLIDE);\n }\n _getActive() {\n return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);\n }\n _getItems() {\n return SelectorEngine.find(SELECTOR_ITEM, this._element);\n }\n _clearInterval() {\n if (this._interval) {\n clearInterval(this._interval);\n this._interval = null;\n }\n }\n _directionToOrder(direction) {\n if (isRTL()) {\n return direction === DIRECTION_LEFT ? ORDER_PREV : ORDER_NEXT;\n }\n return direction === DIRECTION_LEFT ? ORDER_NEXT : ORDER_PREV;\n }\n _orderToDirection(order) {\n if (isRTL()) {\n return order === ORDER_PREV ? DIRECTION_LEFT : DIRECTION_RIGHT;\n }\n return order === ORDER_PREV ? DIRECTION_RIGHT : DIRECTION_LEFT;\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Carousel.getOrCreateInstance(this, config);\n if (typeof config === 'number') {\n data.to(config);\n return;\n }\n if (typeof config === 'string') {\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$5, SELECTOR_DATA_SLIDE, function (event) {\n const target = SelectorEngine.getElementFromSelector(this);\n if (!target || !target.classList.contains(CLASS_NAME_CAROUSEL)) {\n return;\n }\n event.preventDefault();\n const carousel = Carousel.getOrCreateInstance(target);\n const slideIndex = this.getAttribute('data-bs-slide-to');\n if (slideIndex) {\n carousel.to(slideIndex);\n carousel._maybeEnableCycle();\n return;\n }\n if (Manipulator.getDataAttribute(this, 'slide') === 'next') {\n carousel.next();\n carousel._maybeEnableCycle();\n return;\n }\n carousel.prev();\n carousel._maybeEnableCycle();\n});\nEventHandler.on(window, EVENT_LOAD_DATA_API$3, () => {\n const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE);\n for (const carousel of carousels) {\n Carousel.getOrCreateInstance(carousel);\n }\n});\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Carousel);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap collapse.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$b = 'collapse';\nconst DATA_KEY$7 = 'bs.collapse';\nconst EVENT_KEY$7 = `.${DATA_KEY$7}`;\nconst DATA_API_KEY$4 = '.data-api';\nconst EVENT_SHOW$6 = `show${EVENT_KEY$7}`;\nconst EVENT_SHOWN$6 = `shown${EVENT_KEY$7}`;\nconst EVENT_HIDE$6 = `hide${EVENT_KEY$7}`;\nconst EVENT_HIDDEN$6 = `hidden${EVENT_KEY$7}`;\nconst EVENT_CLICK_DATA_API$4 = `click${EVENT_KEY$7}${DATA_API_KEY$4}`;\nconst CLASS_NAME_SHOW$7 = 'show';\nconst CLASS_NAME_COLLAPSE = 'collapse';\nconst CLASS_NAME_COLLAPSING = 'collapsing';\nconst CLASS_NAME_COLLAPSED = 'collapsed';\nconst CLASS_NAME_DEEPER_CHILDREN = `:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`;\nconst CLASS_NAME_HORIZONTAL = 'collapse-horizontal';\nconst WIDTH = 'width';\nconst HEIGHT = 'height';\nconst SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing';\nconst SELECTOR_DATA_TOGGLE$4 = '[data-bs-toggle=\"collapse\"]';\nconst Default$a = {\n parent: null,\n toggle: true\n};\nconst DefaultType$a = {\n parent: '(null|element)',\n toggle: 'boolean'\n};\n\n/**\n * Class definition\n */\n\nclass Collapse extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._isTransitioning = false;\n this._triggerArray = [];\n const toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);\n for (const elem of toggleList) {\n const selector = SelectorEngine.getSelectorFromElement(elem);\n const filterElement = SelectorEngine.find(selector).filter(foundElement => foundElement === this._element);\n if (selector !== null && filterElement.length) {\n this._triggerArray.push(elem);\n }\n }\n this._initializeChildren();\n if (!this._config.parent) {\n this._addAriaAndCollapsedClass(this._triggerArray, this._isShown());\n }\n if (this._config.toggle) {\n this.toggle();\n }\n }\n\n // Getters\n static get Default() {\n return Default$a;\n }\n static get DefaultType() {\n return DefaultType$a;\n }\n static get NAME() {\n return NAME$b;\n }\n\n // Public\n toggle() {\n if (this._isShown()) {\n this.hide();\n } else {\n this.show();\n }\n }\n show() {\n if (this._isTransitioning || this._isShown()) {\n return;\n }\n let activeChildren = [];\n\n // find active children\n if (this._config.parent) {\n activeChildren = this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(element => element !== this._element).map(element => Collapse.getOrCreateInstance(element, {\n toggle: false\n }));\n }\n if (activeChildren.length && activeChildren[0]._isTransitioning) {\n return;\n }\n const startEvent = EventHandler.trigger(this._element, EVENT_SHOW$6);\n if (startEvent.defaultPrevented) {\n return;\n }\n for (const activeInstance of activeChildren) {\n activeInstance.hide();\n }\n const dimension = this._getDimension();\n this._element.classList.remove(CLASS_NAME_COLLAPSE);\n this._element.classList.add(CLASS_NAME_COLLAPSING);\n this._element.style[dimension] = 0;\n this._addAriaAndCollapsedClass(this._triggerArray, true);\n this._isTransitioning = true;\n const complete = () => {\n this._isTransitioning = false;\n this._element.classList.remove(CLASS_NAME_COLLAPSING);\n this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$7);\n this._element.style[dimension] = '';\n EventHandler.trigger(this._element, EVENT_SHOWN$6);\n };\n const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);\n const scrollSize = `scroll${capitalizedDimension}`;\n this._queueCallback(complete, this._element, true);\n this._element.style[dimension] = `${this._element[scrollSize]}px`;\n }\n hide() {\n if (this._isTransitioning || !this._isShown()) {\n return;\n }\n const startEvent = EventHandler.trigger(this._element, EVENT_HIDE$6);\n if (startEvent.defaultPrevented) {\n return;\n }\n const dimension = this._getDimension();\n this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`;\n reflow(this._element);\n this._element.classList.add(CLASS_NAME_COLLAPSING);\n this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$7);\n for (const trigger of this._triggerArray) {\n const element = SelectorEngine.getElementFromSelector(trigger);\n if (element && !this._isShown(element)) {\n this._addAriaAndCollapsedClass([trigger], false);\n }\n }\n this._isTransitioning = true;\n const complete = () => {\n this._isTransitioning = false;\n this._element.classList.remove(CLASS_NAME_COLLAPSING);\n this._element.classList.add(CLASS_NAME_COLLAPSE);\n EventHandler.trigger(this._element, EVENT_HIDDEN$6);\n };\n this._element.style[dimension] = '';\n this._queueCallback(complete, this._element, true);\n }\n _isShown(element = this._element) {\n return element.classList.contains(CLASS_NAME_SHOW$7);\n }\n\n // Private\n _configAfterMerge(config) {\n config.toggle = Boolean(config.toggle); // Coerce string values\n config.parent = getElement(config.parent);\n return config;\n }\n _getDimension() {\n return this._element.classList.contains(CLASS_NAME_HORIZONTAL) ? WIDTH : HEIGHT;\n }\n _initializeChildren() {\n if (!this._config.parent) {\n return;\n }\n const children = this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);\n for (const element of children) {\n const selected = SelectorEngine.getElementFromSelector(element);\n if (selected) {\n this._addAriaAndCollapsedClass([element], this._isShown(selected));\n }\n }\n }\n _getFirstLevelChildren(selector) {\n const children = SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN, this._config.parent);\n // remove children if greater depth\n return SelectorEngine.find(selector, this._config.parent).filter(element => !children.includes(element));\n }\n _addAriaAndCollapsedClass(triggerArray, isOpen) {\n if (!triggerArray.length) {\n return;\n }\n for (const element of triggerArray) {\n element.classList.toggle(CLASS_NAME_COLLAPSED, !isOpen);\n element.setAttribute('aria-expanded', isOpen);\n }\n }\n\n // Static\n static jQueryInterface(config) {\n const _config = {};\n if (typeof config === 'string' && /show|hide/.test(config)) {\n _config.toggle = false;\n }\n return this.each(function () {\n const data = Collapse.getOrCreateInstance(this, _config);\n if (typeof config === 'string') {\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n }\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$4, function (event) {\n // preventDefault only for elements (which change the URL) not inside the collapsible element\n if (event.target.tagName === 'A' || event.delegateTarget && event.delegateTarget.tagName === 'A') {\n event.preventDefault();\n }\n for (const element of SelectorEngine.getMultipleElementsFromSelector(this)) {\n Collapse.getOrCreateInstance(element, {\n toggle: false\n }).toggle();\n }\n});\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Collapse);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap dropdown.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$a = 'dropdown';\nconst DATA_KEY$6 = 'bs.dropdown';\nconst EVENT_KEY$6 = `.${DATA_KEY$6}`;\nconst DATA_API_KEY$3 = '.data-api';\nconst ESCAPE_KEY$2 = 'Escape';\nconst TAB_KEY$1 = 'Tab';\nconst ARROW_UP_KEY$1 = 'ArrowUp';\nconst ARROW_DOWN_KEY$1 = 'ArrowDown';\nconst RIGHT_MOUSE_BUTTON = 2; // MouseEvent.button value for the secondary button, usually the right button\n\nconst EVENT_HIDE$5 = `hide${EVENT_KEY$6}`;\nconst EVENT_HIDDEN$5 = `hidden${EVENT_KEY$6}`;\nconst EVENT_SHOW$5 = `show${EVENT_KEY$6}`;\nconst EVENT_SHOWN$5 = `shown${EVENT_KEY$6}`;\nconst EVENT_CLICK_DATA_API$3 = `click${EVENT_KEY$6}${DATA_API_KEY$3}`;\nconst EVENT_KEYDOWN_DATA_API = `keydown${EVENT_KEY$6}${DATA_API_KEY$3}`;\nconst EVENT_KEYUP_DATA_API = `keyup${EVENT_KEY$6}${DATA_API_KEY$3}`;\nconst CLASS_NAME_SHOW$6 = 'show';\nconst CLASS_NAME_DROPUP = 'dropup';\nconst CLASS_NAME_DROPEND = 'dropend';\nconst CLASS_NAME_DROPSTART = 'dropstart';\nconst CLASS_NAME_DROPUP_CENTER = 'dropup-center';\nconst CLASS_NAME_DROPDOWN_CENTER = 'dropdown-center';\nconst SELECTOR_DATA_TOGGLE$3 = '[data-bs-toggle=\"dropdown\"]:not(.disabled):not(:disabled)';\nconst SELECTOR_DATA_TOGGLE_SHOWN = `${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`;\nconst SELECTOR_MENU = '.dropdown-menu';\nconst SELECTOR_NAVBAR = '.navbar';\nconst SELECTOR_NAVBAR_NAV = '.navbar-nav';\nconst SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';\nconst PLACEMENT_TOP = isRTL() ? 'top-end' : 'top-start';\nconst PLACEMENT_TOPEND = isRTL() ? 'top-start' : 'top-end';\nconst PLACEMENT_BOTTOM = isRTL() ? 'bottom-end' : 'bottom-start';\nconst PLACEMENT_BOTTOMEND = isRTL() ? 'bottom-start' : 'bottom-end';\nconst PLACEMENT_RIGHT = isRTL() ? 'left-start' : 'right-start';\nconst PLACEMENT_LEFT = isRTL() ? 'right-start' : 'left-start';\nconst PLACEMENT_TOPCENTER = 'top';\nconst PLACEMENT_BOTTOMCENTER = 'bottom';\nconst Default$9 = {\n autoClose: true,\n boundary: 'clippingParents',\n display: 'dynamic',\n offset: [0, 2],\n popperConfig: null,\n reference: 'toggle'\n};\nconst DefaultType$9 = {\n autoClose: '(boolean|string)',\n boundary: '(string|element)',\n display: 'string',\n offset: '(array|string|function)',\n popperConfig: '(null|object|function)',\n reference: '(string|element|object)'\n};\n\n/**\n * Class definition\n */\n\nclass Dropdown extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._popper = null;\n this._parent = this._element.parentNode; // dropdown wrapper\n // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/\n this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);\n this._inNavbar = this._detectNavbar();\n }\n\n // Getters\n static get Default() {\n return Default$9;\n }\n static get DefaultType() {\n return DefaultType$9;\n }\n static get NAME() {\n return NAME$a;\n }\n\n // Public\n toggle() {\n return this._isShown() ? this.hide() : this.show();\n }\n show() {\n if (isDisabled(this._element) || this._isShown()) {\n return;\n }\n const relatedTarget = {\n relatedTarget: this._element\n };\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$5, relatedTarget);\n if (showEvent.defaultPrevented) {\n return;\n }\n this._createPopper();\n\n // If this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement && !this._parent.closest(SELECTOR_NAVBAR_NAV)) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.on(element, 'mouseover', noop);\n }\n }\n this._element.focus();\n this._element.setAttribute('aria-expanded', true);\n this._menu.classList.add(CLASS_NAME_SHOW$6);\n this._element.classList.add(CLASS_NAME_SHOW$6);\n EventHandler.trigger(this._element, EVENT_SHOWN$5, relatedTarget);\n }\n hide() {\n if (isDisabled(this._element) || !this._isShown()) {\n return;\n }\n const relatedTarget = {\n relatedTarget: this._element\n };\n this._completeHide(relatedTarget);\n }\n dispose() {\n if (this._popper) {\n this._popper.destroy();\n }\n super.dispose();\n }\n update() {\n this._inNavbar = this._detectNavbar();\n if (this._popper) {\n this._popper.update();\n }\n }\n\n // Private\n _completeHide(relatedTarget) {\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$5, relatedTarget);\n if (hideEvent.defaultPrevented) {\n return;\n }\n\n // If this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.off(element, 'mouseover', noop);\n }\n }\n if (this._popper) {\n this._popper.destroy();\n }\n this._menu.classList.remove(CLASS_NAME_SHOW$6);\n this._element.classList.remove(CLASS_NAME_SHOW$6);\n this._element.setAttribute('aria-expanded', 'false');\n Manipulator.removeDataAttribute(this._menu, 'popper');\n EventHandler.trigger(this._element, EVENT_HIDDEN$5, relatedTarget);\n }\n _getConfig(config) {\n config = super._getConfig(config);\n if (typeof config.reference === 'object' && !isElement(config.reference) && typeof config.reference.getBoundingClientRect !== 'function') {\n // Popper virtual elements require a getBoundingClientRect method\n throw new TypeError(`${NAME$a.toUpperCase()}: Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method.`);\n }\n return config;\n }\n _createPopper() {\n if (typeof Popper === 'undefined') {\n throw new TypeError('Bootstrap\\'s dropdowns require Popper (https://popper.js.org)');\n }\n let referenceElement = this._element;\n if (this._config.reference === 'parent') {\n referenceElement = this._parent;\n } else if (isElement(this._config.reference)) {\n referenceElement = getElement(this._config.reference);\n } else if (typeof this._config.reference === 'object') {\n referenceElement = this._config.reference;\n }\n const popperConfig = this._getPopperConfig();\n this._popper = Popper.createPopper(referenceElement, this._menu, popperConfig);\n }\n _isShown() {\n return this._menu.classList.contains(CLASS_NAME_SHOW$6);\n }\n _getPlacement() {\n const parentDropdown = this._parent;\n if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {\n return PLACEMENT_RIGHT;\n }\n if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {\n return PLACEMENT_LEFT;\n }\n if (parentDropdown.classList.contains(CLASS_NAME_DROPUP_CENTER)) {\n return PLACEMENT_TOPCENTER;\n }\n if (parentDropdown.classList.contains(CLASS_NAME_DROPDOWN_CENTER)) {\n return PLACEMENT_BOTTOMCENTER;\n }\n\n // We need to trim the value because custom properties can also include spaces\n const isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';\n if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {\n return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;\n }\n return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;\n }\n _detectNavbar() {\n return this._element.closest(SELECTOR_NAVBAR) !== null;\n }\n _getOffset() {\n const {\n offset\n } = this._config;\n if (typeof offset === 'string') {\n return offset.split(',').map(value => Number.parseInt(value, 10));\n }\n if (typeof offset === 'function') {\n return popperData => offset(popperData, this._element);\n }\n return offset;\n }\n _getPopperConfig() {\n const defaultBsPopperConfig = {\n placement: this._getPlacement(),\n modifiers: [{\n name: 'preventOverflow',\n options: {\n boundary: this._config.boundary\n }\n }, {\n name: 'offset',\n options: {\n offset: this._getOffset()\n }\n }]\n };\n\n // Disable Popper if we have a static display or Dropdown is in Navbar\n if (this._inNavbar || this._config.display === 'static') {\n Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // TODO: v6 remove\n defaultBsPopperConfig.modifiers = [{\n name: 'applyStyles',\n enabled: false\n }];\n }\n return {\n ...defaultBsPopperConfig,\n ...execute(this._config.popperConfig, [defaultBsPopperConfig])\n };\n }\n _selectMenuItem({\n key,\n target\n }) {\n const items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, this._menu).filter(element => isVisible(element));\n if (!items.length) {\n return;\n }\n\n // if target isn't included in items (e.g. when expanding the dropdown)\n // allow cycling to get the last item in case key equals ARROW_UP_KEY\n getNextActiveElement(items, target, key === ARROW_DOWN_KEY$1, !items.includes(target)).focus();\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Dropdown.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n });\n }\n static clearMenus(event) {\n if (event.button === RIGHT_MOUSE_BUTTON || event.type === 'keyup' && event.key !== TAB_KEY$1) {\n return;\n }\n const openToggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);\n for (const toggle of openToggles) {\n const context = Dropdown.getInstance(toggle);\n if (!context || context._config.autoClose === false) {\n continue;\n }\n const composedPath = event.composedPath();\n const isMenuTarget = composedPath.includes(context._menu);\n if (composedPath.includes(context._element) || context._config.autoClose === 'inside' && !isMenuTarget || context._config.autoClose === 'outside' && isMenuTarget) {\n continue;\n }\n\n // Tab navigation through the dropdown menu or events from contained inputs shouldn't close the menu\n if (context._menu.contains(event.target) && (event.type === 'keyup' && event.key === TAB_KEY$1 || /input|select|option|textarea|form/i.test(event.target.tagName))) {\n continue;\n }\n const relatedTarget = {\n relatedTarget: context._element\n };\n if (event.type === 'click') {\n relatedTarget.clickEvent = event;\n }\n context._completeHide(relatedTarget);\n }\n }\n static dataApiKeydownHandler(event) {\n // If not an UP | DOWN | ESCAPE key => not a dropdown command\n // If input/textarea && if key is other than ESCAPE => not a dropdown command\n\n const isInput = /input|textarea/i.test(event.target.tagName);\n const isEscapeEvent = event.key === ESCAPE_KEY$2;\n const isUpOrDownEvent = [ARROW_UP_KEY$1, ARROW_DOWN_KEY$1].includes(event.key);\n if (!isUpOrDownEvent && !isEscapeEvent) {\n return;\n }\n if (isInput && !isEscapeEvent) {\n return;\n }\n event.preventDefault();\n\n // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/\n const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE$3) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.next(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3, event.delegateTarget.parentNode);\n const instance = Dropdown.getOrCreateInstance(getToggleButton);\n if (isUpOrDownEvent) {\n event.stopPropagation();\n instance.show();\n instance._selectMenuItem(event);\n return;\n }\n if (instance._isShown()) {\n // else is escape and we check if it is shown\n event.stopPropagation();\n instance.hide();\n getToggleButton.focus();\n }\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$3, Dropdown.dataApiKeydownHandler);\nEventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown.dataApiKeydownHandler);\nEventHandler.on(document, EVENT_CLICK_DATA_API$3, Dropdown.clearMenus);\nEventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus);\nEventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$3, function (event) {\n event.preventDefault();\n Dropdown.getOrCreateInstance(this).toggle();\n});\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Dropdown);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/backdrop.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$9 = 'backdrop';\nconst CLASS_NAME_FADE$4 = 'fade';\nconst CLASS_NAME_SHOW$5 = 'show';\nconst EVENT_MOUSEDOWN = `mousedown.bs.${NAME$9}`;\nconst Default$8 = {\n className: 'modal-backdrop',\n clickCallback: null,\n isAnimated: false,\n isVisible: true,\n // if false, we use the backdrop helper without adding any element to the dom\n rootElement: 'body' // give the choice to place backdrop under different elements\n};\n\nconst DefaultType$8 = {\n className: 'string',\n clickCallback: '(function|null)',\n isAnimated: 'boolean',\n isVisible: 'boolean',\n rootElement: '(element|string)'\n};\n\n/**\n * Class definition\n */\n\nclass Backdrop extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n this._isAppended = false;\n this._element = null;\n }\n\n // Getters\n static get Default() {\n return Default$8;\n }\n static get DefaultType() {\n return DefaultType$8;\n }\n static get NAME() {\n return NAME$9;\n }\n\n // Public\n show(callback) {\n if (!this._config.isVisible) {\n execute(callback);\n return;\n }\n this._append();\n const element = this._getElement();\n if (this._config.isAnimated) {\n reflow(element);\n }\n element.classList.add(CLASS_NAME_SHOW$5);\n this._emulateAnimation(() => {\n execute(callback);\n });\n }\n hide(callback) {\n if (!this._config.isVisible) {\n execute(callback);\n return;\n }\n this._getElement().classList.remove(CLASS_NAME_SHOW$5);\n this._emulateAnimation(() => {\n this.dispose();\n execute(callback);\n });\n }\n dispose() {\n if (!this._isAppended) {\n return;\n }\n EventHandler.off(this._element, EVENT_MOUSEDOWN);\n this._element.remove();\n this._isAppended = false;\n }\n\n // Private\n _getElement() {\n if (!this._element) {\n const backdrop = document.createElement('div');\n backdrop.className = this._config.className;\n if (this._config.isAnimated) {\n backdrop.classList.add(CLASS_NAME_FADE$4);\n }\n this._element = backdrop;\n }\n return this._element;\n }\n _configAfterMerge(config) {\n // use getElement() with the default \"body\" to get a fresh Element on each instantiation\n config.rootElement = getElement(config.rootElement);\n return config;\n }\n _append() {\n if (this._isAppended) {\n return;\n }\n const element = this._getElement();\n this._config.rootElement.append(element);\n EventHandler.on(element, EVENT_MOUSEDOWN, () => {\n execute(this._config.clickCallback);\n });\n this._isAppended = true;\n }\n _emulateAnimation(callback) {\n executeAfterTransition(callback, this._getElement(), this._config.isAnimated);\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/focustrap.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$8 = 'focustrap';\nconst DATA_KEY$5 = 'bs.focustrap';\nconst EVENT_KEY$5 = `.${DATA_KEY$5}`;\nconst EVENT_FOCUSIN$2 = `focusin${EVENT_KEY$5}`;\nconst EVENT_KEYDOWN_TAB = `keydown.tab${EVENT_KEY$5}`;\nconst TAB_KEY = 'Tab';\nconst TAB_NAV_FORWARD = 'forward';\nconst TAB_NAV_BACKWARD = 'backward';\nconst Default$7 = {\n autofocus: true,\n trapElement: null // The element to trap focus inside of\n};\n\nconst DefaultType$7 = {\n autofocus: 'boolean',\n trapElement: 'element'\n};\n\n/**\n * Class definition\n */\n\nclass FocusTrap extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n this._isActive = false;\n this._lastTabNavDirection = null;\n }\n\n // Getters\n static get Default() {\n return Default$7;\n }\n static get DefaultType() {\n return DefaultType$7;\n }\n static get NAME() {\n return NAME$8;\n }\n\n // Public\n activate() {\n if (this._isActive) {\n return;\n }\n if (this._config.autofocus) {\n this._config.trapElement.focus();\n }\n EventHandler.off(document, EVENT_KEY$5); // guard against infinite focus loop\n EventHandler.on(document, EVENT_FOCUSIN$2, event => this._handleFocusin(event));\n EventHandler.on(document, EVENT_KEYDOWN_TAB, event => this._handleKeydown(event));\n this._isActive = true;\n }\n deactivate() {\n if (!this._isActive) {\n return;\n }\n this._isActive = false;\n EventHandler.off(document, EVENT_KEY$5);\n }\n\n // Private\n _handleFocusin(event) {\n const {\n trapElement\n } = this._config;\n if (event.target === document || event.target === trapElement || trapElement.contains(event.target)) {\n return;\n }\n const elements = SelectorEngine.focusableChildren(trapElement);\n if (elements.length === 0) {\n trapElement.focus();\n } else if (this._lastTabNavDirection === TAB_NAV_BACKWARD) {\n elements[elements.length - 1].focus();\n } else {\n elements[0].focus();\n }\n }\n _handleKeydown(event) {\n if (event.key !== TAB_KEY) {\n return;\n }\n this._lastTabNavDirection = event.shiftKey ? TAB_NAV_BACKWARD : TAB_NAV_FORWARD;\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/scrollBar.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';\nconst SELECTOR_STICKY_CONTENT = '.sticky-top';\nconst PROPERTY_PADDING = 'padding-right';\nconst PROPERTY_MARGIN = 'margin-right';\n\n/**\n * Class definition\n */\n\nclass ScrollBarHelper {\n constructor() {\n this._element = document.body;\n }\n\n // Public\n getWidth() {\n // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n const documentWidth = document.documentElement.clientWidth;\n return Math.abs(window.innerWidth - documentWidth);\n }\n hide() {\n const width = this.getWidth();\n this._disableOverFlow();\n // give padding to element to balance the hidden scrollbar width\n this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);\n // trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth\n this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);\n this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);\n }\n reset() {\n this._resetElementAttributes(this._element, 'overflow');\n this._resetElementAttributes(this._element, PROPERTY_PADDING);\n this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);\n this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);\n }\n isOverflowing() {\n return this.getWidth() > 0;\n }\n\n // Private\n _disableOverFlow() {\n this._saveInitialAttribute(this._element, 'overflow');\n this._element.style.overflow = 'hidden';\n }\n _setElementAttributes(selector, styleProperty, callback) {\n const scrollbarWidth = this.getWidth();\n const manipulationCallBack = element => {\n if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {\n return;\n }\n this._saveInitialAttribute(element, styleProperty);\n const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);\n element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);\n };\n this._applyManipulationCallback(selector, manipulationCallBack);\n }\n _saveInitialAttribute(element, styleProperty) {\n const actualValue = element.style.getPropertyValue(styleProperty);\n if (actualValue) {\n Manipulator.setDataAttribute(element, styleProperty, actualValue);\n }\n }\n _resetElementAttributes(selector, styleProperty) {\n const manipulationCallBack = element => {\n const value = Manipulator.getDataAttribute(element, styleProperty);\n // We only want to remove the property if the value is `null`; the value can also be zero\n if (value === null) {\n element.style.removeProperty(styleProperty);\n return;\n }\n Manipulator.removeDataAttribute(element, styleProperty);\n element.style.setProperty(styleProperty, value);\n };\n this._applyManipulationCallback(selector, manipulationCallBack);\n }\n _applyManipulationCallback(selector, callBack) {\n if (isElement(selector)) {\n callBack(selector);\n return;\n }\n for (const sel of SelectorEngine.find(selector, this._element)) {\n callBack(sel);\n }\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap modal.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$7 = 'modal';\nconst DATA_KEY$4 = 'bs.modal';\nconst EVENT_KEY$4 = `.${DATA_KEY$4}`;\nconst DATA_API_KEY$2 = '.data-api';\nconst ESCAPE_KEY$1 = 'Escape';\nconst EVENT_HIDE$4 = `hide${EVENT_KEY$4}`;\nconst EVENT_HIDE_PREVENTED$1 = `hidePrevented${EVENT_KEY$4}`;\nconst EVENT_HIDDEN$4 = `hidden${EVENT_KEY$4}`;\nconst EVENT_SHOW$4 = `show${EVENT_KEY$4}`;\nconst EVENT_SHOWN$4 = `shown${EVENT_KEY$4}`;\nconst EVENT_RESIZE$1 = `resize${EVENT_KEY$4}`;\nconst EVENT_CLICK_DISMISS = `click.dismiss${EVENT_KEY$4}`;\nconst EVENT_MOUSEDOWN_DISMISS = `mousedown.dismiss${EVENT_KEY$4}`;\nconst EVENT_KEYDOWN_DISMISS$1 = `keydown.dismiss${EVENT_KEY$4}`;\nconst EVENT_CLICK_DATA_API$2 = `click${EVENT_KEY$4}${DATA_API_KEY$2}`;\nconst CLASS_NAME_OPEN = 'modal-open';\nconst CLASS_NAME_FADE$3 = 'fade';\nconst CLASS_NAME_SHOW$4 = 'show';\nconst CLASS_NAME_STATIC = 'modal-static';\nconst OPEN_SELECTOR$1 = '.modal.show';\nconst SELECTOR_DIALOG = '.modal-dialog';\nconst SELECTOR_MODAL_BODY = '.modal-body';\nconst SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle=\"modal\"]';\nconst Default$6 = {\n backdrop: true,\n focus: true,\n keyboard: true\n};\nconst DefaultType$6 = {\n backdrop: '(boolean|string)',\n focus: 'boolean',\n keyboard: 'boolean'\n};\n\n/**\n * Class definition\n */\n\nclass Modal extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, this._element);\n this._backdrop = this._initializeBackDrop();\n this._focustrap = this._initializeFocusTrap();\n this._isShown = false;\n this._isTransitioning = false;\n this._scrollBar = new ScrollBarHelper();\n this._addEventListeners();\n }\n\n // Getters\n static get Default() {\n return Default$6;\n }\n static get DefaultType() {\n return DefaultType$6;\n }\n static get NAME() {\n return NAME$7;\n }\n\n // Public\n toggle(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget);\n }\n show(relatedTarget) {\n if (this._isShown || this._isTransitioning) {\n return;\n }\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$4, {\n relatedTarget\n });\n if (showEvent.defaultPrevented) {\n return;\n }\n this._isShown = true;\n this._isTransitioning = true;\n this._scrollBar.hide();\n document.body.classList.add(CLASS_NAME_OPEN);\n this._adjustDialog();\n this._backdrop.show(() => this._showElement(relatedTarget));\n }\n hide() {\n if (!this._isShown || this._isTransitioning) {\n return;\n }\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$4);\n if (hideEvent.defaultPrevented) {\n return;\n }\n this._isShown = false;\n this._isTransitioning = true;\n this._focustrap.deactivate();\n this._element.classList.remove(CLASS_NAME_SHOW$4);\n this._queueCallback(() => this._hideModal(), this._element, this._isAnimated());\n }\n dispose() {\n EventHandler.off(window, EVENT_KEY$4);\n EventHandler.off(this._dialog, EVENT_KEY$4);\n this._backdrop.dispose();\n this._focustrap.deactivate();\n super.dispose();\n }\n handleUpdate() {\n this._adjustDialog();\n }\n\n // Private\n _initializeBackDrop() {\n return new Backdrop({\n isVisible: Boolean(this._config.backdrop),\n // 'static' option will be translated to true, and booleans will keep their value,\n isAnimated: this._isAnimated()\n });\n }\n _initializeFocusTrap() {\n return new FocusTrap({\n trapElement: this._element\n });\n }\n _showElement(relatedTarget) {\n // try to append dynamic modal\n if (!document.body.contains(this._element)) {\n document.body.append(this._element);\n }\n this._element.style.display = 'block';\n this._element.removeAttribute('aria-hidden');\n this._element.setAttribute('aria-modal', true);\n this._element.setAttribute('role', 'dialog');\n this._element.scrollTop = 0;\n const modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);\n if (modalBody) {\n modalBody.scrollTop = 0;\n }\n reflow(this._element);\n this._element.classList.add(CLASS_NAME_SHOW$4);\n const transitionComplete = () => {\n if (this._config.focus) {\n this._focustrap.activate();\n }\n this._isTransitioning = false;\n EventHandler.trigger(this._element, EVENT_SHOWN$4, {\n relatedTarget\n });\n };\n this._queueCallback(transitionComplete, this._dialog, this._isAnimated());\n }\n _addEventListeners() {\n EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS$1, event => {\n if (event.key !== ESCAPE_KEY$1) {\n return;\n }\n if (this._config.keyboard) {\n this.hide();\n return;\n }\n this._triggerBackdropTransition();\n });\n EventHandler.on(window, EVENT_RESIZE$1, () => {\n if (this._isShown && !this._isTransitioning) {\n this._adjustDialog();\n }\n });\n EventHandler.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {\n // a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks\n EventHandler.one(this._element, EVENT_CLICK_DISMISS, event2 => {\n if (this._element !== event.target || this._element !== event2.target) {\n return;\n }\n if (this._config.backdrop === 'static') {\n this._triggerBackdropTransition();\n return;\n }\n if (this._config.backdrop) {\n this.hide();\n }\n });\n });\n }\n _hideModal() {\n this._element.style.display = 'none';\n this._element.setAttribute('aria-hidden', true);\n this._element.removeAttribute('aria-modal');\n this._element.removeAttribute('role');\n this._isTransitioning = false;\n this._backdrop.hide(() => {\n document.body.classList.remove(CLASS_NAME_OPEN);\n this._resetAdjustments();\n this._scrollBar.reset();\n EventHandler.trigger(this._element, EVENT_HIDDEN$4);\n });\n }\n _isAnimated() {\n return this._element.classList.contains(CLASS_NAME_FADE$3);\n }\n _triggerBackdropTransition() {\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED$1);\n if (hideEvent.defaultPrevented) {\n return;\n }\n const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;\n const initialOverflowY = this._element.style.overflowY;\n // return if the following background transition hasn't yet completed\n if (initialOverflowY === 'hidden' || this._element.classList.contains(CLASS_NAME_STATIC)) {\n return;\n }\n if (!isModalOverflowing) {\n this._element.style.overflowY = 'hidden';\n }\n this._element.classList.add(CLASS_NAME_STATIC);\n this._queueCallback(() => {\n this._element.classList.remove(CLASS_NAME_STATIC);\n this._queueCallback(() => {\n this._element.style.overflowY = initialOverflowY;\n }, this._dialog);\n }, this._dialog);\n this._element.focus();\n }\n\n /**\n * The following methods are used to handle overflowing modals\n */\n\n _adjustDialog() {\n const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;\n const scrollbarWidth = this._scrollBar.getWidth();\n const isBodyOverflowing = scrollbarWidth > 0;\n if (isBodyOverflowing && !isModalOverflowing) {\n const property = isRTL() ? 'paddingLeft' : 'paddingRight';\n this._element.style[property] = `${scrollbarWidth}px`;\n }\n if (!isBodyOverflowing && isModalOverflowing) {\n const property = isRTL() ? 'paddingRight' : 'paddingLeft';\n this._element.style[property] = `${scrollbarWidth}px`;\n }\n }\n _resetAdjustments() {\n this._element.style.paddingLeft = '';\n this._element.style.paddingRight = '';\n }\n\n // Static\n static jQueryInterface(config, relatedTarget) {\n return this.each(function () {\n const data = Modal.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](relatedTarget);\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$2, SELECTOR_DATA_TOGGLE$2, function (event) {\n const target = SelectorEngine.getElementFromSelector(this);\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n EventHandler.one(target, EVENT_SHOW$4, showEvent => {\n if (showEvent.defaultPrevented) {\n // only register focus restorer if modal will actually get shown\n return;\n }\n EventHandler.one(target, EVENT_HIDDEN$4, () => {\n if (isVisible(this)) {\n this.focus();\n }\n });\n });\n\n // avoid conflict when clicking modal toggler while another one is open\n const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR$1);\n if (alreadyOpen) {\n Modal.getInstance(alreadyOpen).hide();\n }\n const data = Modal.getOrCreateInstance(target);\n data.toggle(this);\n});\nenableDismissTrigger(Modal);\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Modal);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap offcanvas.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$6 = 'offcanvas';\nconst DATA_KEY$3 = 'bs.offcanvas';\nconst EVENT_KEY$3 = `.${DATA_KEY$3}`;\nconst DATA_API_KEY$1 = '.data-api';\nconst EVENT_LOAD_DATA_API$2 = `load${EVENT_KEY$3}${DATA_API_KEY$1}`;\nconst ESCAPE_KEY = 'Escape';\nconst CLASS_NAME_SHOW$3 = 'show';\nconst CLASS_NAME_SHOWING$1 = 'showing';\nconst CLASS_NAME_HIDING = 'hiding';\nconst CLASS_NAME_BACKDROP = 'offcanvas-backdrop';\nconst OPEN_SELECTOR = '.offcanvas.show';\nconst EVENT_SHOW$3 = `show${EVENT_KEY$3}`;\nconst EVENT_SHOWN$3 = `shown${EVENT_KEY$3}`;\nconst EVENT_HIDE$3 = `hide${EVENT_KEY$3}`;\nconst EVENT_HIDE_PREVENTED = `hidePrevented${EVENT_KEY$3}`;\nconst EVENT_HIDDEN$3 = `hidden${EVENT_KEY$3}`;\nconst EVENT_RESIZE = `resize${EVENT_KEY$3}`;\nconst EVENT_CLICK_DATA_API$1 = `click${EVENT_KEY$3}${DATA_API_KEY$1}`;\nconst EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY$3}`;\nconst SELECTOR_DATA_TOGGLE$1 = '[data-bs-toggle=\"offcanvas\"]';\nconst Default$5 = {\n backdrop: true,\n keyboard: true,\n scroll: false\n};\nconst DefaultType$5 = {\n backdrop: '(boolean|string)',\n keyboard: 'boolean',\n scroll: 'boolean'\n};\n\n/**\n * Class definition\n */\n\nclass Offcanvas extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n this._isShown = false;\n this._backdrop = this._initializeBackDrop();\n this._focustrap = this._initializeFocusTrap();\n this._addEventListeners();\n }\n\n // Getters\n static get Default() {\n return Default$5;\n }\n static get DefaultType() {\n return DefaultType$5;\n }\n static get NAME() {\n return NAME$6;\n }\n\n // Public\n toggle(relatedTarget) {\n return this._isShown ? this.hide() : this.show(relatedTarget);\n }\n show(relatedTarget) {\n if (this._isShown) {\n return;\n }\n const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {\n relatedTarget\n });\n if (showEvent.defaultPrevented) {\n return;\n }\n this._isShown = true;\n this._backdrop.show();\n if (!this._config.scroll) {\n new ScrollBarHelper().hide();\n }\n this._element.setAttribute('aria-modal', true);\n this._element.setAttribute('role', 'dialog');\n this._element.classList.add(CLASS_NAME_SHOWING$1);\n const completeCallBack = () => {\n if (!this._config.scroll || this._config.backdrop) {\n this._focustrap.activate();\n }\n this._element.classList.add(CLASS_NAME_SHOW$3);\n this._element.classList.remove(CLASS_NAME_SHOWING$1);\n EventHandler.trigger(this._element, EVENT_SHOWN$3, {\n relatedTarget\n });\n };\n this._queueCallback(completeCallBack, this._element, true);\n }\n hide() {\n if (!this._isShown) {\n return;\n }\n const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$3);\n if (hideEvent.defaultPrevented) {\n return;\n }\n this._focustrap.deactivate();\n this._element.blur();\n this._isShown = false;\n this._element.classList.add(CLASS_NAME_HIDING);\n this._backdrop.hide();\n const completeCallback = () => {\n this._element.classList.remove(CLASS_NAME_SHOW$3, CLASS_NAME_HIDING);\n this._element.removeAttribute('aria-modal');\n this._element.removeAttribute('role');\n if (!this._config.scroll) {\n new ScrollBarHelper().reset();\n }\n EventHandler.trigger(this._element, EVENT_HIDDEN$3);\n };\n this._queueCallback(completeCallback, this._element, true);\n }\n dispose() {\n this._backdrop.dispose();\n this._focustrap.deactivate();\n super.dispose();\n }\n\n // Private\n _initializeBackDrop() {\n const clickCallback = () => {\n if (this._config.backdrop === 'static') {\n EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);\n return;\n }\n this.hide();\n };\n\n // 'static' option will be translated to true, and booleans will keep their value\n const isVisible = Boolean(this._config.backdrop);\n return new Backdrop({\n className: CLASS_NAME_BACKDROP,\n isVisible,\n isAnimated: true,\n rootElement: this._element.parentNode,\n clickCallback: isVisible ? clickCallback : null\n });\n }\n _initializeFocusTrap() {\n return new FocusTrap({\n trapElement: this._element\n });\n }\n _addEventListeners() {\n EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, event => {\n if (event.key !== ESCAPE_KEY) {\n return;\n }\n if (this._config.keyboard) {\n this.hide();\n return;\n }\n EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);\n });\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Offcanvas.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config](this);\n });\n }\n}\n\n/**\n * Data API implementation\n */\n\nEventHandler.on(document, EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE$1, function (event) {\n const target = SelectorEngine.getElementFromSelector(this);\n if (['A', 'AREA'].includes(this.tagName)) {\n event.preventDefault();\n }\n if (isDisabled(this)) {\n return;\n }\n EventHandler.one(target, EVENT_HIDDEN$3, () => {\n // focus on trigger when it is closed\n if (isVisible(this)) {\n this.focus();\n }\n });\n\n // avoid conflict when clicking a toggler of an offcanvas, while another is open\n const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR);\n if (alreadyOpen && alreadyOpen !== target) {\n Offcanvas.getInstance(alreadyOpen).hide();\n }\n const data = Offcanvas.getOrCreateInstance(target);\n data.toggle(this);\n});\nEventHandler.on(window, EVENT_LOAD_DATA_API$2, () => {\n for (const selector of SelectorEngine.find(OPEN_SELECTOR)) {\n Offcanvas.getOrCreateInstance(selector).show();\n }\n});\nEventHandler.on(window, EVENT_RESIZE, () => {\n for (const element of SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]')) {\n if (getComputedStyle(element).position !== 'fixed') {\n Offcanvas.getOrCreateInstance(element).hide();\n }\n }\n});\nenableDismissTrigger(Offcanvas);\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Offcanvas);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/sanitizer.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n// js-docs-start allow-list\nconst ARIA_ATTRIBUTE_PATTERN = /^aria-[\\w-]*$/i;\nconst DefaultAllowlist = {\n // Global attributes allowed on any supplied element below.\n '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],\n a: ['target', 'href', 'title', 'rel'],\n area: [],\n b: [],\n br: [],\n col: [],\n code: [],\n div: [],\n em: [],\n hr: [],\n h1: [],\n h2: [],\n h3: [],\n h4: [],\n h5: [],\n h6: [],\n i: [],\n img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],\n li: [],\n ol: [],\n p: [],\n pre: [],\n s: [],\n small: [],\n span: [],\n sub: [],\n sup: [],\n strong: [],\n u: [],\n ul: []\n};\n// js-docs-end allow-list\n\nconst uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);\n\n/**\n * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation\n * contexts.\n *\n * Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38\n */\n// eslint-disable-next-line unicorn/better-regex\nconst SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;\nconst allowedAttribute = (attribute, allowedAttributeList) => {\n const attributeName = attribute.nodeName.toLowerCase();\n if (allowedAttributeList.includes(attributeName)) {\n if (uriAttributes.has(attributeName)) {\n return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue));\n }\n return true;\n }\n\n // Check if a regular expression validates the attribute.\n return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));\n};\nfunction sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {\n if (!unsafeHtml.length) {\n return unsafeHtml;\n }\n if (sanitizeFunction && typeof sanitizeFunction === 'function') {\n return sanitizeFunction(unsafeHtml);\n }\n const domParser = new window.DOMParser();\n const createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');\n const elements = [].concat(...createdDocument.body.querySelectorAll('*'));\n for (const element of elements) {\n const elementName = element.nodeName.toLowerCase();\n if (!Object.keys(allowList).includes(elementName)) {\n element.remove();\n continue;\n }\n const attributeList = [].concat(...element.attributes);\n const allowedAttributes = [].concat(allowList['*'] || [], allowList[elementName] || []);\n for (const attribute of attributeList) {\n if (!allowedAttribute(attribute, allowedAttributes)) {\n element.removeAttribute(attribute.nodeName);\n }\n }\n }\n return createdDocument.body.innerHTML;\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap util/template-factory.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$5 = 'TemplateFactory';\nconst Default$4 = {\n allowList: DefaultAllowlist,\n content: {},\n // { selector : text , selector2 : text2 , }\n extraClass: '',\n html: false,\n sanitize: true,\n sanitizeFn: null,\n template: '
'\n};\nconst DefaultType$4 = {\n allowList: 'object',\n content: 'object',\n extraClass: '(string|function)',\n html: 'boolean',\n sanitize: 'boolean',\n sanitizeFn: '(null|function)',\n template: 'string'\n};\nconst DefaultContentType = {\n entry: '(string|element|function|null)',\n selector: '(string|element)'\n};\n\n/**\n * Class definition\n */\n\nclass TemplateFactory extends Config {\n constructor(config) {\n super();\n this._config = this._getConfig(config);\n }\n\n // Getters\n static get Default() {\n return Default$4;\n }\n static get DefaultType() {\n return DefaultType$4;\n }\n static get NAME() {\n return NAME$5;\n }\n\n // Public\n getContent() {\n return Object.values(this._config.content).map(config => this._resolvePossibleFunction(config)).filter(Boolean);\n }\n hasContent() {\n return this.getContent().length > 0;\n }\n changeContent(content) {\n this._checkContent(content);\n this._config.content = {\n ...this._config.content,\n ...content\n };\n return this;\n }\n toHtml() {\n const templateWrapper = document.createElement('div');\n templateWrapper.innerHTML = this._maybeSanitize(this._config.template);\n for (const [selector, text] of Object.entries(this._config.content)) {\n this._setContent(templateWrapper, text, selector);\n }\n const template = templateWrapper.children[0];\n const extraClass = this._resolvePossibleFunction(this._config.extraClass);\n if (extraClass) {\n template.classList.add(...extraClass.split(' '));\n }\n return template;\n }\n\n // Private\n _typeCheckConfig(config) {\n super._typeCheckConfig(config);\n this._checkContent(config.content);\n }\n _checkContent(arg) {\n for (const [selector, content] of Object.entries(arg)) {\n super._typeCheckConfig({\n selector,\n entry: content\n }, DefaultContentType);\n }\n }\n _setContent(template, content, selector) {\n const templateElement = SelectorEngine.findOne(selector, template);\n if (!templateElement) {\n return;\n }\n content = this._resolvePossibleFunction(content);\n if (!content) {\n templateElement.remove();\n return;\n }\n if (isElement(content)) {\n this._putElementInTemplate(getElement(content), templateElement);\n return;\n }\n if (this._config.html) {\n templateElement.innerHTML = this._maybeSanitize(content);\n return;\n }\n templateElement.textContent = content;\n }\n _maybeSanitize(arg) {\n return this._config.sanitize ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg;\n }\n _resolvePossibleFunction(arg) {\n return execute(arg, [this]);\n }\n _putElementInTemplate(element, templateElement) {\n if (this._config.html) {\n templateElement.innerHTML = '';\n templateElement.append(element);\n return;\n }\n templateElement.textContent = element.textContent;\n }\n}\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap tooltip.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$4 = 'tooltip';\nconst DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn']);\nconst CLASS_NAME_FADE$2 = 'fade';\nconst CLASS_NAME_MODAL = 'modal';\nconst CLASS_NAME_SHOW$2 = 'show';\nconst SELECTOR_TOOLTIP_INNER = '.tooltip-inner';\nconst SELECTOR_MODAL = `.${CLASS_NAME_MODAL}`;\nconst EVENT_MODAL_HIDE = 'hide.bs.modal';\nconst TRIGGER_HOVER = 'hover';\nconst TRIGGER_FOCUS = 'focus';\nconst TRIGGER_CLICK = 'click';\nconst TRIGGER_MANUAL = 'manual';\nconst EVENT_HIDE$2 = 'hide';\nconst EVENT_HIDDEN$2 = 'hidden';\nconst EVENT_SHOW$2 = 'show';\nconst EVENT_SHOWN$2 = 'shown';\nconst EVENT_INSERTED = 'inserted';\nconst EVENT_CLICK$1 = 'click';\nconst EVENT_FOCUSIN$1 = 'focusin';\nconst EVENT_FOCUSOUT$1 = 'focusout';\nconst EVENT_MOUSEENTER = 'mouseenter';\nconst EVENT_MOUSELEAVE = 'mouseleave';\nconst AttachmentMap = {\n AUTO: 'auto',\n TOP: 'top',\n RIGHT: isRTL() ? 'left' : 'right',\n BOTTOM: 'bottom',\n LEFT: isRTL() ? 'right' : 'left'\n};\nconst Default$3 = {\n allowList: DefaultAllowlist,\n animation: true,\n boundary: 'clippingParents',\n container: false,\n customClass: '',\n delay: 0,\n fallbackPlacements: ['top', 'right', 'bottom', 'left'],\n html: false,\n offset: [0, 6],\n placement: 'top',\n popperConfig: null,\n sanitize: true,\n sanitizeFn: null,\n selector: false,\n template: '
' + '
' + '
' + '
',\n title: '',\n trigger: 'hover focus'\n};\nconst DefaultType$3 = {\n allowList: 'object',\n animation: 'boolean',\n boundary: '(string|element)',\n container: '(string|element|boolean)',\n customClass: '(string|function)',\n delay: '(number|object)',\n fallbackPlacements: 'array',\n html: 'boolean',\n offset: '(array|string|function)',\n placement: '(string|function)',\n popperConfig: '(null|object|function)',\n sanitize: 'boolean',\n sanitizeFn: '(null|function)',\n selector: '(string|boolean)',\n template: 'string',\n title: '(string|element|function)',\n trigger: 'string'\n};\n\n/**\n * Class definition\n */\n\nclass Tooltip extends BaseComponent {\n constructor(element, config) {\n if (typeof Popper === 'undefined') {\n throw new TypeError('Bootstrap\\'s tooltips require Popper (https://popper.js.org)');\n }\n super(element, config);\n\n // Private\n this._isEnabled = true;\n this._timeout = 0;\n this._isHovered = null;\n this._activeTrigger = {};\n this._popper = null;\n this._templateFactory = null;\n this._newContent = null;\n\n // Protected\n this.tip = null;\n this._setListeners();\n if (!this._config.selector) {\n this._fixTitle();\n }\n }\n\n // Getters\n static get Default() {\n return Default$3;\n }\n static get DefaultType() {\n return DefaultType$3;\n }\n static get NAME() {\n return NAME$4;\n }\n\n // Public\n enable() {\n this._isEnabled = true;\n }\n disable() {\n this._isEnabled = false;\n }\n toggleEnabled() {\n this._isEnabled = !this._isEnabled;\n }\n toggle() {\n if (!this._isEnabled) {\n return;\n }\n this._activeTrigger.click = !this._activeTrigger.click;\n if (this._isShown()) {\n this._leave();\n return;\n }\n this._enter();\n }\n dispose() {\n clearTimeout(this._timeout);\n EventHandler.off(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);\n if (this._element.getAttribute('data-bs-original-title')) {\n this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'));\n }\n this._disposePopper();\n super.dispose();\n }\n show() {\n if (this._element.style.display === 'none') {\n throw new Error('Please use show on visible elements');\n }\n if (!(this._isWithContent() && this._isEnabled)) {\n return;\n }\n const showEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOW$2));\n const shadowRoot = findShadowRoot(this._element);\n const isInTheDom = (shadowRoot || this._element.ownerDocument.documentElement).contains(this._element);\n if (showEvent.defaultPrevented || !isInTheDom) {\n return;\n }\n\n // TODO: v6 remove this or make it optional\n this._disposePopper();\n const tip = this._getTipElement();\n this._element.setAttribute('aria-describedby', tip.getAttribute('id'));\n const {\n container\n } = this._config;\n if (!this._element.ownerDocument.documentElement.contains(this.tip)) {\n container.append(tip);\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_INSERTED));\n }\n this._popper = this._createPopper(tip);\n tip.classList.add(CLASS_NAME_SHOW$2);\n\n // If this is a touch-enabled device we add extra\n // empty mouseover listeners to the body's immediate children;\n // only needed because of broken event delegation on iOS\n // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.on(element, 'mouseover', noop);\n }\n }\n const complete = () => {\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN$2));\n if (this._isHovered === false) {\n this._leave();\n }\n this._isHovered = false;\n };\n this._queueCallback(complete, this.tip, this._isAnimated());\n }\n hide() {\n if (!this._isShown()) {\n return;\n }\n const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE$2));\n if (hideEvent.defaultPrevented) {\n return;\n }\n const tip = this._getTipElement();\n tip.classList.remove(CLASS_NAME_SHOW$2);\n\n // If this is a touch-enabled device we remove the extra\n // empty mouseover listeners we added for iOS support\n if ('ontouchstart' in document.documentElement) {\n for (const element of [].concat(...document.body.children)) {\n EventHandler.off(element, 'mouseover', noop);\n }\n }\n this._activeTrigger[TRIGGER_CLICK] = false;\n this._activeTrigger[TRIGGER_FOCUS] = false;\n this._activeTrigger[TRIGGER_HOVER] = false;\n this._isHovered = null; // it is a trick to support manual triggering\n\n const complete = () => {\n if (this._isWithActiveTrigger()) {\n return;\n }\n if (!this._isHovered) {\n this._disposePopper();\n }\n this._element.removeAttribute('aria-describedby');\n EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN$2));\n };\n this._queueCallback(complete, this.tip, this._isAnimated());\n }\n update() {\n if (this._popper) {\n this._popper.update();\n }\n }\n\n // Protected\n _isWithContent() {\n return Boolean(this._getTitle());\n }\n _getTipElement() {\n if (!this.tip) {\n this.tip = this._createTipElement(this._newContent || this._getContentForTemplate());\n }\n return this.tip;\n }\n _createTipElement(content) {\n const tip = this._getTemplateFactory(content).toHtml();\n\n // TODO: remove this check in v6\n if (!tip) {\n return null;\n }\n tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$2);\n // TODO: v6 the following can be achieved with CSS only\n tip.classList.add(`bs-${this.constructor.NAME}-auto`);\n const tipId = getUID(this.constructor.NAME).toString();\n tip.setAttribute('id', tipId);\n if (this._isAnimated()) {\n tip.classList.add(CLASS_NAME_FADE$2);\n }\n return tip;\n }\n setContent(content) {\n this._newContent = content;\n if (this._isShown()) {\n this._disposePopper();\n this.show();\n }\n }\n _getTemplateFactory(content) {\n if (this._templateFactory) {\n this._templateFactory.changeContent(content);\n } else {\n this._templateFactory = new TemplateFactory({\n ...this._config,\n // the `content` var has to be after `this._config`\n // to override config.content in case of popover\n content,\n extraClass: this._resolvePossibleFunction(this._config.customClass)\n });\n }\n return this._templateFactory;\n }\n _getContentForTemplate() {\n return {\n [SELECTOR_TOOLTIP_INNER]: this._getTitle()\n };\n }\n _getTitle() {\n return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title');\n }\n\n // Private\n _initializeOnDelegatedTarget(event) {\n return this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig());\n }\n _isAnimated() {\n return this._config.animation || this.tip && this.tip.classList.contains(CLASS_NAME_FADE$2);\n }\n _isShown() {\n return this.tip && this.tip.classList.contains(CLASS_NAME_SHOW$2);\n }\n _createPopper(tip) {\n const placement = execute(this._config.placement, [this, tip, this._element]);\n const attachment = AttachmentMap[placement.toUpperCase()];\n return Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));\n }\n _getOffset() {\n const {\n offset\n } = this._config;\n if (typeof offset === 'string') {\n return offset.split(',').map(value => Number.parseInt(value, 10));\n }\n if (typeof offset === 'function') {\n return popperData => offset(popperData, this._element);\n }\n return offset;\n }\n _resolvePossibleFunction(arg) {\n return execute(arg, [this._element]);\n }\n _getPopperConfig(attachment) {\n const defaultBsPopperConfig = {\n placement: attachment,\n modifiers: [{\n name: 'flip',\n options: {\n fallbackPlacements: this._config.fallbackPlacements\n }\n }, {\n name: 'offset',\n options: {\n offset: this._getOffset()\n }\n }, {\n name: 'preventOverflow',\n options: {\n boundary: this._config.boundary\n }\n }, {\n name: 'arrow',\n options: {\n element: `.${this.constructor.NAME}-arrow`\n }\n }, {\n name: 'preSetPlacement',\n enabled: true,\n phase: 'beforeMain',\n fn: data => {\n // Pre-set Popper's placement attribute in order to read the arrow sizes properly.\n // Otherwise, Popper mixes up the width and height dimensions since the initial arrow style is for top placement\n this._getTipElement().setAttribute('data-popper-placement', data.state.placement);\n }\n }]\n };\n return {\n ...defaultBsPopperConfig,\n ...execute(this._config.popperConfig, [defaultBsPopperConfig])\n };\n }\n _setListeners() {\n const triggers = this._config.trigger.split(' ');\n for (const trigger of triggers) {\n if (trigger === 'click') {\n EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, event => {\n const context = this._initializeOnDelegatedTarget(event);\n context.toggle();\n });\n } else if (trigger !== TRIGGER_MANUAL) {\n const eventIn = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSEENTER) : this.constructor.eventName(EVENT_FOCUSIN$1);\n const eventOut = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSELEAVE) : this.constructor.eventName(EVENT_FOCUSOUT$1);\n EventHandler.on(this._element, eventIn, this._config.selector, event => {\n const context = this._initializeOnDelegatedTarget(event);\n context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;\n context._enter();\n });\n EventHandler.on(this._element, eventOut, this._config.selector, event => {\n const context = this._initializeOnDelegatedTarget(event);\n context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = context._element.contains(event.relatedTarget);\n context._leave();\n });\n }\n }\n this._hideModalHandler = () => {\n if (this._element) {\n this.hide();\n }\n };\n EventHandler.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);\n }\n _fixTitle() {\n const title = this._element.getAttribute('title');\n if (!title) {\n return;\n }\n if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {\n this._element.setAttribute('aria-label', title);\n }\n this._element.setAttribute('data-bs-original-title', title); // DO NOT USE IT. Is only for backwards compatibility\n this._element.removeAttribute('title');\n }\n _enter() {\n if (this._isShown() || this._isHovered) {\n this._isHovered = true;\n return;\n }\n this._isHovered = true;\n this._setTimeout(() => {\n if (this._isHovered) {\n this.show();\n }\n }, this._config.delay.show);\n }\n _leave() {\n if (this._isWithActiveTrigger()) {\n return;\n }\n this._isHovered = false;\n this._setTimeout(() => {\n if (!this._isHovered) {\n this.hide();\n }\n }, this._config.delay.hide);\n }\n _setTimeout(handler, timeout) {\n clearTimeout(this._timeout);\n this._timeout = setTimeout(handler, timeout);\n }\n _isWithActiveTrigger() {\n return Object.values(this._activeTrigger).includes(true);\n }\n _getConfig(config) {\n const dataAttributes = Manipulator.getDataAttributes(this._element);\n for (const dataAttribute of Object.keys(dataAttributes)) {\n if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {\n delete dataAttributes[dataAttribute];\n }\n }\n config = {\n ...dataAttributes,\n ...(typeof config === 'object' && config ? config : {})\n };\n config = this._mergeConfigObj(config);\n config = this._configAfterMerge(config);\n this._typeCheckConfig(config);\n return config;\n }\n _configAfterMerge(config) {\n config.container = config.container === false ? document.body : getElement(config.container);\n if (typeof config.delay === 'number') {\n config.delay = {\n show: config.delay,\n hide: config.delay\n };\n }\n if (typeof config.title === 'number') {\n config.title = config.title.toString();\n }\n if (typeof config.content === 'number') {\n config.content = config.content.toString();\n }\n return config;\n }\n _getDelegateConfig() {\n const config = {};\n for (const [key, value] of Object.entries(this._config)) {\n if (this.constructor.Default[key] !== value) {\n config[key] = value;\n }\n }\n config.selector = false;\n config.trigger = 'manual';\n\n // In the future can be replaced with:\n // const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])\n // `Object.fromEntries(keysWithDifferentValues)`\n return config;\n }\n _disposePopper() {\n if (this._popper) {\n this._popper.destroy();\n this._popper = null;\n }\n if (this.tip) {\n this.tip.remove();\n this.tip = null;\n }\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Tooltip.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n });\n }\n}\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Tooltip);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap popover.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$3 = 'popover';\nconst SELECTOR_TITLE = '.popover-header';\nconst SELECTOR_CONTENT = '.popover-body';\nconst Default$2 = {\n ...Tooltip.Default,\n content: '',\n offset: [0, 8],\n placement: 'right',\n template: '
' + '
' + '

' + '
' + '
',\n trigger: 'click'\n};\nconst DefaultType$2 = {\n ...Tooltip.DefaultType,\n content: '(null|string|element|function)'\n};\n\n/**\n * Class definition\n */\n\nclass Popover extends Tooltip {\n // Getters\n static get Default() {\n return Default$2;\n }\n static get DefaultType() {\n return DefaultType$2;\n }\n static get NAME() {\n return NAME$3;\n }\n\n // Overrides\n _isWithContent() {\n return this._getTitle() || this._getContent();\n }\n\n // Private\n _getContentForTemplate() {\n return {\n [SELECTOR_TITLE]: this._getTitle(),\n [SELECTOR_CONTENT]: this._getContent()\n };\n }\n _getContent() {\n return this._resolvePossibleFunction(this._config.content);\n }\n\n // Static\n static jQueryInterface(config) {\n return this.each(function () {\n const data = Popover.getOrCreateInstance(this, config);\n if (typeof config !== 'string') {\n return;\n }\n if (typeof data[config] === 'undefined') {\n throw new TypeError(`No method named \"${config}\"`);\n }\n data[config]();\n });\n }\n}\n\n/**\n * jQuery\n */\n\ndefineJQueryPlugin(Popover);\n\n/**\n * --------------------------------------------------------------------------\n * Bootstrap scrollspy.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n\n/**\n * Constants\n */\n\nconst NAME$2 = 'scrollspy';\nconst DATA_KEY$2 = 'bs.scrollspy';\nconst EVENT_KEY$2 = `.${DATA_KEY$2}`;\nconst DATA_API_KEY = '.data-api';\nconst EVENT_ACTIVATE = `activate${EVENT_KEY$2}`;\nconst EVENT_CLICK = `click${EVENT_KEY$2}`;\nconst EVENT_LOAD_DATA_API$1 = `load${EVENT_KEY$2}${DATA_API_KEY}`;\nconst CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';\nconst CLASS_NAME_ACTIVE$1 = 'active';\nconst SELECTOR_DATA_SPY = '[data-bs-spy=\"scroll\"]';\nconst SELECTOR_TARGET_LINKS = '[href]';\nconst SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';\nconst SELECTOR_NAV_LINKS = '.nav-link';\nconst SELECTOR_NAV_ITEMS = '.nav-item';\nconst SELECTOR_LIST_ITEMS = '.list-group-item';\nconst SELECTOR_LINK_ITEMS = `${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`;\nconst SELECTOR_DROPDOWN = '.dropdown';\nconst SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';\nconst Default$1 = {\n offset: null,\n // TODO: v6 @deprecated, keep it for backwards compatibility reasons\n rootMargin: '0px 0px -25%',\n smoothScroll: false,\n target: null,\n threshold: [0.1, 0.5, 1]\n};\nconst DefaultType$1 = {\n offset: '(number|null)',\n // TODO v6 @deprecated, keep it for backwards compatibility reasons\n rootMargin: 'string',\n smoothScroll: 'boolean',\n target: 'element',\n threshold: 'array'\n};\n\n/**\n * Class definition\n */\n\nclass ScrollSpy extends BaseComponent {\n constructor(element, config) {\n super(element, config);\n\n // this._element is the observablesContainer and config.target the menu links wrapper\n this._targetLinks = new Map();\n this._observableSections = new Map();\n this._rootElement = getComputedStyle(this._element).overflowY === 'visible' ? null : this._element;\n this._activeTarget = null;\n this._observer = null;\n this._previousScrollData = {\n visibleEntryTop: 0,\n parentScrollTop: 0\n };\n this.refresh(); // initialize\n }\n\n // Getters\n static get Default() {\n return Default$1;\n }\n static get DefaultType() {\n return DefaultType$1;\n }\n static get NAME() {\n return NAME$2;\n }\n\n // Public\n refresh() {\n this._initializeTargetsAndObservables();\n this._maybeEnableSmoothScroll();\n if (this._observer) {\n this._observer.disconnect();\n } else {\n this._observer = this._getNewObserver();\n }\n for (const section of this._observableSections.values()) {\n this._observer.observe(section);\n }\n }\n dispose() {\n this._observer.disconnect();\n super.dispose();\n }\n\n // Private\n _configAfterMerge(config) {\n // TODO: on v6 target should be given explicitly & remove the {target: 'ss-target'} case\n config.target = getElement(config.target) || document.body;\n\n // TODO: v6 Only for backwards compatibility reasons. Use rootMargin only\n config.rootMargin = config.offset ? `${config.offset}px 0px -30%` : config.rootMargin;\n if (typeof config.threshold === 'string') {\n config.threshold = config.threshold.split(',').map(value => Number.parseFloat(value));\n }\n return config;\n }\n _maybeEnableSmoothScroll() {\n if (!this._config.smoothScroll) {\n return;\n }\n\n // unregister any previous listeners\n EventHandler.off(this._config.target, EVENT_CLICK);\n EventHandler.on(this._config.target, EVENT_CLICK, SELECTOR_TARGET_LINKS, event => {\n const observableSection = this._observableSections.get(event.target.hash);\n if (observableSection) {\n event.preventDefault();\n const root = this._rootElement || window;\n const height = observableSection.offsetTop - this._element.offsetTop;\n if (root.scrollTo) {\n root.scrollTo({\n top: height,\n behavior: 'smooth'\n });\n return;\n }\n\n // Chrome 60 doesn't support `scrollTo`\n root.scrollTop = height;\n }\n });\n }\n _getNewObserver() {\n const options = {\n root: this._rootElement,\n threshold: this._config.threshold,\n rootMargin: this._config.rootMargin\n };\n return new IntersectionObserver(entries => this._observerCallback(entries), options);\n }\n\n // The logic of selection\n _observerCallback(entries) {\n const targetElement = entry => this._targetLinks.get(`#${entry.target.id}`);\n const activate = entry => {\n this._previousScrollData.visibleEntryTop = entry.target.offsetTop;\n this._process(targetElement(entry));\n };\n const parentScrollTop = (this._rootElement || document.documentElement).scrollTop;\n const userScrollsDown = parentScrollTop >= this._previousScrollData.parentScrollTop;\n this._previousScrollData.parentScrollTop = parentScrollTop;\n for (const entry of entries) {\n if (!entry.isIntersecting) {\n this._activeTarget = null;\n this._clearActiveClass(targetElement(entry));\n continue;\n }\n const entryIsLowerThanPrevious = entry.target.offsetTop >= this._previousScrollData.visibleEntryTop;\n // if we are scrolling down, pick the bigger offsetTop\n if (userScrollsDown && entryIsLowerThanPrevious) {\n activate(entry);\n // if parent isn't scrolled, let's keep the first visible item, breaking the iteration\n if (!parentScrollTop) {\n return;\n }\n continue;\n }\n\n // if we are scrolling up, pick the smallest offsetTop\n if (!userScrollsDown && !entryIsLowerThanPrevious) {\n activate(entry);\n }\n }\n }\n _initializeTargetsAndObservables() {\n this._targetLinks = new Map();\n this._observableSections = new Map();\n const targetLinks = SelectorEngine.find(SELECTOR_TARGET_LINKS, this._config.target);\n for (const anchor of targetLinks) {\n // ensure that the anchor has an id and is not disabled\n if (!anchor.hash || isDisabled(anchor)) {\n continue;\n }\n const observableSection = SelectorEngine.findOne(decodeURI(anchor.hash), this._element);\n\n // ensure that the observableSection exists & is visible\n if (isVisible(observableSection)) {\n this._targetLinks.set(decodeURI(anchor.hash), anchor);\n this._observableSections.set(anchor.hash, observableSection);\n }\n }\n }\n _process(target) {\n if (this._activeTarget === target) {\n return;\n }\n this._clearActiveClass(this._config.target);\n this._activeTarget = target;\n target.classList.add(CLASS_NAME_ACTIVE$1);\n this._activateParents(target);\n EventHandler.trigger(this._element, EVENT_ACTIVATE, {\n relatedTarget: target\n });\n }\n _activateParents(target) {\n // Activate dropdown parents\n if (target.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {\n SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1, target.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);\n return;\n }\n for (const listGroup of SelectorEngine.parents(target, SELECTOR_NAV_LIST_GROUP)) {\n // Set triggered links parents as active\n // With both
- -
- + -
- -
- + -
- -
- + -
@@ -894,7 +890,7 @@

Calculating the historical growth curve for transistors
19200000000.0 250000000.0 7050000000.0
 

- - -
- + -
- -
- + -
- -
- + -
- -
- + -

3. Decompress the 4 files and create 4 ndarrays, saving them into a dictionary. Each original image is of size 28x28 and neural networks normally expect a 1D vector input; therefore, you also need to reshape the images by multiplying 28 by 28 (784).

- -
- + -
- -
- + -
@@ -883,7 +879,7 @@

Fitting Data - - -
- + -
- -
- + -
- -
- + -
- -
- + -
- -
- + -
@@ -526,7 +522,7 @@

Content#<

- - -
- + -
- -
- + -
- -
- + -
- -
- + -
@@ -424,8 +420,8 @@

Index

- - + +
diff --git a/index.html b/index.html index 9a0364d6..a58fef77 100644 --- a/index.html +++ b/index.html @@ -18,12 +18,12 @@ - - - + + + - + @@ -34,9 +34,9 @@ - - - + + + @@ -64,7 +64,6 @@
-
- -
- + -
- -
- + -
@@ -436,8 +432,8 @@

Search

- - + + diff --git a/searchindex.js b/searchindex.js index 98163108..523b88f8 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["applications", "articles", "content/mooreslaw-tutorial", "content/pairing", "content/save-load-arrays", "content/tutorial-air-quality-analysis", "content/tutorial-deep-learning-on-mnist", "content/tutorial-deep-reinforcement-learning-with-pong-from-pixels", "content/tutorial-ma", "content/tutorial-nlp-from-scratch", "content/tutorial-plotting-fractals", "content/tutorial-static_equilibrium", "content/tutorial-style-guide", "content/tutorial-svd", "content/tutorial-x-ray-image-processing", "contributing", "features", "index"], "filenames": ["applications.md", "articles.md", "content/mooreslaw-tutorial.md", "content/pairing.md", "content/save-load-arrays.md", "content/tutorial-air-quality-analysis.md", "content/tutorial-deep-learning-on-mnist.md", "content/tutorial-deep-reinforcement-learning-with-pong-from-pixels.md", "content/tutorial-ma.md", "content/tutorial-nlp-from-scratch.md", "content/tutorial-plotting-fractals.md", "content/tutorial-static_equilibrium.md", "content/tutorial-style-guide.md", "content/tutorial-svd.md", "content/tutorial-x-ray-image-processing.md", "contributing.md", "features.md", "index.md"], "titles": ["NumPy Applications", "Articles", "Determining Moore\u2019s Law with real data in NumPy", "Pairing Jupyter notebooks and MyST-NB", "Saving and sharing your NumPy arrays", "Analyzing the impact of the lockdown on air quality in Delhi, India", "Deep learning on MNIST", "Deep reinforcement learning with Pong from pixels", "Masked Arrays", "Sentiment Analysis on notable speeches of the last decade", "Plotting Fractals", "Determining Static Equilibrium in NumPy", "Learn to write a NumPy tutorial", "Linear algebra on n-dimensional arrays", "X-ray image processing", "Contributing", "NumPy Features", "NumPy tutorials"], "terms": {"A": [0, 1, 2, 3, 5, 8, 9, 10, 11, 12, 13, 16], "collect": [0, 1, 5, 7, 15, 16], "highlight": 0, "us": [0, 2, 3, 5, 6, 7, 9, 10, 11, 13, 15], "scienc": [0, 14], "engin": [0, 2, 7, 11], "data": [0, 1, 5, 7, 10, 12, 13, 14, 15, 17], "analysi": [0, 1, 2, 5, 8, 14, 17], "determin": [0, 6, 7, 8, 9, 17], "moor": [0, 17], "": [0, 1, 3, 6, 7, 8, 10, 13, 14, 17], "law": [0, 17], "real": [0, 5, 6, 7, 8, 9, 10, 13, 15, 17], "deep": [0, 1, 2, 14, 17], "learn": [0, 1, 14, 15, 17], "mnist": [0, 2, 9, 17], "x": [0, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 17], "rai": [0, 2, 17], "imag": [0, 2, 7, 9, 10, 12, 13, 15, 17], "process": [0, 2, 4, 5, 6, 7, 8, 9, 11, 17], "static": [0, 3, 15, 17], "equilibrium": [0, 17], "plot": [0, 2, 6, 7, 8, 9, 11, 13, 14, 17], "fractal": [0, 2, 17], "analyz": [0, 8, 11, 14, 17], "impact": [0, 6, 17], "lockdown": [0, 17], "air": [0, 2, 17], "qualiti": [0, 2, 6, 7, 17], "delhi": [0, 17], "india": [0, 17], "want": [1, 2, 4, 5, 7, 8, 10, 11, 12, 13, 14, 15, 17], "make": [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 17], "valuabl": [1, 17], "contribut": [1, 17], "consid": [1, 2, 3, 4, 6, 8, 9, 10, 11, 12, 13, 14, 17], "work": [1, 3, 4, 6, 7, 8, 9, 10, 13, 14], "so": [1, 2, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15], "thei": [1, 2, 3, 6, 7, 9, 10, 11, 12, 13, 14], "becom": [1, 10], "fulli": [1, 9, 17], "execut": [1, 3, 6, 9, 13], "reproduc": [1, 6, 7, 9, 17], "reinforc": [1, 2, 9, 17], "pong": [1, 2, 17], "from": [1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 17], "pixel": [1, 2, 6, 13, 14, 17], "prerequisit": [1, 12], "tabl": [1, 2, 5], "content": [1, 3], "note": [1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 14, 17], "rl": 1, "glossari": 1, "set": [1, 2, 3, 5, 6, 8, 9, 13, 14, 17], "up": [1, 5, 6, 8, 9, 10, 14, 15], "preprocess": 1, "frame": [1, 14], "observ": [1, 2, 5, 8, 9, 11], "creat": [1, 3, 5, 6, 8, 9, 11, 14], "polici": [1, 9], "neural": 1, "network": 1, "forward": [1, 6], "pass": [1, 5, 6, 9, 10], "updat": [1, 3, 6, 15], "step": [1, 2, 4, 5, 12, 13, 15], "backpropag": [1, 6], "defin": [1, 2, 4, 6, 9, 10, 11, 13], "discount": 1, "reward": 1, "expect": [1, 2, 6, 9, 10, 13], "return": [1, 5, 6, 8, 9, 10, 12, 14], "function": [1, 4, 5, 6, 8, 9, 10, 11, 13, 16], "train": 1, "agent": 1, "number": [1, 2, 4, 6, 8, 9, 10, 11, 13, 14], "episod": [1, 9], "next": [1, 2, 4, 5, 8, 10, 11, 12], "appendix": 1, "how": [1, 2, 3, 5, 6, 8, 10, 11, 13, 14, 15], "video": 1, "playback": 1, "your": [1, 5, 6, 8, 9, 11, 13, 14, 16, 17], "jupyt": [1, 4, 6, 9, 14, 17], "notebook": [1, 6, 9, 14, 16, 17], "sentiment": [1, 17], "notabl": [1, 7, 10, 17], "speech": [1, 17], "last": [1, 2, 6, 7, 10, 12, 13, 17], "decad": [1, 2, 17], "1": [1, 2, 4, 5, 7, 8, 10, 11, 12, 13, 14], "imdb": 1, "review": [1, 3, 7, 15], "dataset": [1, 4, 8, 13, 14], "load": [1, 14], "transcript": 1, "2": [1, 2, 4, 5, 7, 8, 10, 11, 13, 14], "3": [1, 2, 4, 5, 7, 8, 10, 11, 13, 14], "build": [1, 3, 7, 13, 14, 17], "model": [1, 2, 7, 8, 11], "introduct": [1, 2, 5, 8], "long": [1, 6, 7, 10, 12], "short": [1, 12], "term": [1, 2, 5, 6, 7, 13], "memori": [1, 6, 7, 8, 13, 14], "overview": 1, "architectur": [1, 13], "propag": [1, 6, 7], "But": [1, 12], "do": [1, 7, 13, 14, 15], "you": [1, 6, 7, 13, 14, 15, 17], "obtain": [1, 5, 7, 13, 14], "lstm": 1, "output": [1, 2, 3, 4, 6, 7, 8, 10, 13, 15], "paramet": [1, 2, 5, 6, 7, 8, 10, 14], "look": [1, 2, 3, 5, 6, 8, 10, 11, 13], "our": [1, 2, 5, 8, 10, 11, 13], "an": [1, 4, 5, 6, 7, 8, 10, 11, 12], "ethic": [1, 6], "perspect": 1, "The": [2, 3, 4, 6, 7, 8, 9, 10, 11, 13, 15, 17], "report": [2, 6, 9], "per": 2, "given": [2, 5, 7, 9, 10, 11, 13], "chip": 2, "log": [2, 7, 9], "scale": [2, 6, 10], "y": [2, 5, 6, 7, 9, 10, 11, 13, 14], "axi": [2, 5, 6, 8, 9, 10, 14], "date": [2, 8], "linear": [2, 5, 6, 7, 9, 11, 16, 17], "blue": [2, 7, 10, 13], "point": [2, 4, 7, 8, 9, 11, 12, 13, 14], "ar": [2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 15], "count": [2, 6, 7, 8, 10], "red": [2, 7, 13], "line": [2, 4, 7, 8, 9, 13], "i": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17], "ordinari": 2, "least": [2, 9, 14], "squar": [2, 4, 6, 9, 10, 13], "predict": [2, 6, 9], "orang": [2, 8], "In": [2, 3, 4, 6, 7, 9, 11, 13, 14, 15], "1965": 2, "gordon": 2, "would": [2, 5, 6, 8, 9, 10, 11, 12, 13, 15], "doubl": [2, 6, 12], "everi": [2, 5, 7, 9, 13], "two": [2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15], "year": [2, 7], "come": [2, 7, 8, 9, 10, 11, 12, 15], "compar": [2, 3, 4, 5, 6, 13], "against": [2, 6, 7, 9], "actual": [2, 6, 7, 8, 9, 13], "53": [2, 5], "follow": [2, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17], "hi": [2, 7, 9], "best": [2, 7, 8, 9, 13, 15], "fit": [2, 6, 9], "constant": [2, 10], "describ": [2, 7, 8, 12], "semiconductor": 2, "perform": [2, 5, 6, 7, 9, 10, 11, 13], "regress": 2, "between": [2, 3, 4, 5, 6, 7, 9, 11, 13, 14], "npz": [2, 4], "assess": 2, "amaz": 2, "progress": 2, "have": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15], "made": [2, 3, 9, 10, 14], "five": [2, 6, 7, 11], "These": [2, 3, 6, 7, 9, 11, 13, 15], "packag": [2, 7, 8, 9, 12, 14], "matplotlib": [2, 6, 7, 8, 9, 10, 11, 13, 14], "import": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14], "command": [2, 4, 7, 8, 13], "pyplot": [2, 6, 7, 8, 9, 10, 11, 13, 14], "plt": [2, 6, 7, 8, 9, 10, 11, 13, 14], "np": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13], "sinc": [2, 5, 6, 7, 8, 9, 10, 13, 14], "thi": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17], "littl": [2, 10], "background": [2, 6, 7], "math": [2, 7, 9], "natur": [2, 9, 10], "loadtxt": [2, 4, 5], "text": [2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 15], "take": [2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "all": [2, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15], "element": [2, 5, 8, 10, 13], "exp": [2, 7, 9], "lambda": [2, 9, 10], "minim": [2, 6, 7], "definit": [2, 8, 10], "semilogi": 2, "onto": [2, 14], "figur": [2, 9, 10, 11, 12], "log_": 2, "10": [2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "ax": [2, 6, 9, 10, 13, 14], "slice": [2, 5, 13], "view": [2, 7, 9], "part": [2, 5, 7, 8, 9, 14, 17], "e": [2, 4, 5, 10, 11], "g": [2, 4, 7, 10, 11, 13], "first": [2, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15], "boolean": [2, 8, 10, 14], "index": [2, 6, 7, 8, 9, 10, 13], "match": [2, 10, 14], "condit": [2, 7, 8, 14], "oper": [2, 6, 8, 9, 10, 11], "block": [2, 4, 9], "combin": [2, 6, 7, 8, 10], "2d": [2, 7, 13, 14], "newaxi": [2, 4], "chang": [2, 3, 6, 8, 9, 10, 14], "1d": [2, 4, 6, 7, 13], "vector": [2, 4, 5, 6, 7, 8, 9, 11, 13], "row": [2, 4, 5, 8, 13], "column": [2, 4, 5, 8, 9, 13], "savez": 2, "savetxt": 2, "save": [2, 3, 6, 7, 8, 9, 10, 14, 16, 17], "format": [2, 3, 4, 5, 7, 9, 12, 14, 15], "respect": [2, 4, 6, 7, 9, 11], "empir": 2, "assum": [2, 5, 10, 11, 12, 14], "transistor_count": 2, "f": [2, 6, 9, 10, 11, 13, 14], "cdot": [2, 5, 10], "b": [2, 7, 9, 11, 13], "where": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13], "find": [2, 5, 6, 7, 8, 14], "specifi": [2, 4, 9], "rate": [2, 6, 7, 9], "ad": [2, 7, 8, 10, 17], "give": [2, 7, 10, 11, 12, 13, 14, 15], "initi": [2, 6, 7, 8, 9], "state": [2, 7, 9, 11], "form": [2, 5, 6, 7, 9, 10, 13, 15], "a_m": 2, "b_m": 2, "start": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14], "2250": 2, "1971": 2, "dfrac": [2, 5, 10], "2a_m": 2, "rightarrow": 2, "frac": [2, 5, 9, 10, 11], "0": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "3466": 2, "675": 2, "4": [2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14], "repres": [2, 8, 9, 10, 11, 13], "python": [2, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14], "moores_law": 2, "were": [2, 4, 7, 9, 10], "intel": 2, "4004": 2, "check": [2, 5, 6, 7, 8, 10, 13, 14, 17], "1973": 2, "ml_1971": 2, "ml_1973": 2, "print": [2, 3, 4, 5, 6, 7, 9, 11, 12, 14], "0f": 2, "2f": 2, "more": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15], "than": [2, 5, 7, 8, 9, 10, 12, 13, 14], "4500": 2, "x2": 2, "00": [2, 4, 5], "now": [2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14], "base": [2, 6, 7, 8, 9, 11], "upon": [2, 9, 10, 11], "each": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 17], "transistor_data": 2, "befor": [2, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15], "its": [2, 6, 7, 8, 9, 10, 13, 14, 15], "good": [2, 6, 8, 9, 12], "idea": [2, 8, 10, 13, 15], "inspect": [2, 6], "structur": [2, 8, 9, 11], "Then": [2, 3, 5, 6, 7, 9, 11, 14], "locat": [2, 8, 9, 10, 11], "interest": [2, 7, 8, 10, 13, 14, 15, 17], "them": [2, 5, 6, 7, 8, 9, 10, 11, 14, 17], "variabl": [2, 4, 6, 7, 8, 9], "here": [2, 3, 4, 6, 8, 9, 10, 12, 13, 15], "out": [2, 5, 6, 7, 9, 10, 12, 13, 14], "processor": 2, "mo": 2, "design": [2, 3, 6, 7, 9, 10], "mosprocess": 2, "area": [2, 10], "bit": [2, 6, 7, 9, 10, 13, 14], "16": [2, 4, 5, 6, 7, 8, 10, 14], "pin": 2, "000": [2, 6, 7, 9, 14], "nm": 2, "12": [2, 3, 5, 6, 7, 8, 13], "mm\u00b2": 2, "head": [2, 4, 5], "8008": 2, "8": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14], "18": [2, 5, 6, 7, 8], "3500": 2, "1972": [2, 7], "14": [2, 5, 6, 7, 8], "nec": 2, "\u03bccom": 2, "42": [2, 5, 7], "2500": 2, "7": [2, 4, 6, 7, 8, 10, 14], "500": [2, 6, 7], "4040": 2, "3000": 2, "1974": 2, "motorola": 2, "6800": 2, "40": 2, "4100": 2, "6": [2, 3, 4, 5, 6, 7, 8, 10, 11, 14], "8080": 2, "6000": 2, "20": [2, 5, 6, 7, 8, 10, 14], "tm": 2, "1000": [2, 6, 9, 14], "28": [2, 5, 6, 8], "8000": 2, "texa": 2, "instrument": 2, "11": [2, 5, 6, 7, 8], "technologi": 2, "6502": 2, "4528": 2, "1975": 2, "21": [2, 5, 7, 8], "intersil": 2, "im6100": 2, "clone": [2, 17], "pdp": 2, "4000": 2, "don": [2, 5, 6, 7, 8, 9, 10, 12, 13, 15], "t": [2, 6, 7, 8, 9, 10, 11, 12, 13, 15], "That": [2, 8], "leav": 2, "second": [2, 7, 8, 13], "third": [2, 10], "extra": [2, 9], "option": [2, 7, 9, 12, 15], "below": [2, 5, 6, 7, 8, 9, 12, 13, 14, 15], "put": [2, 9, 10, 12], "desir": 2, "delimit": [2, 4, 5, 8, 12], "delimet": 2, "default": [2, 4, 6, 7, 9, 13], "behavior": [2, 9, 10], "usecol": [2, 5, 8], "skiprow": [2, 4, 5], "becaus": [2, 3, 6, 7, 9, 11, 12, 13, 14], "header": [2, 4, 8], "entir": [2, 10], "histori": 2, "semiconduct": 2, "name": [2, 3, 4, 6, 8, 9], "four": [2, 8, 9], "digit": [2, 6], "easier": [2, 3, 4, 10], "read": [2, 4, 6, 7, 9, 14], "manag": [2, 9], "assign": [2, 4, 6, 7, 12, 13], "correct": [2, 5, 7, 9], "grab": 2, "tran": 2, "cnt": 2, "5000": 2, "independ": 2, "depend": [2, 6, 7, 9, 13, 15], "transform": [2, 6, 9, 13], "y_i": 2, "equat": [2, 10, 11], "yi": 2, "differ": [2, 3, 5, 6, 7, 8, 9, 10, 13, 14], "min": [2, 9, 13, 14], "sum": [2, 6, 7, 8, 9], "_i": 2, "error": [2, 6, 7, 9, 10, 13], "can": [2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17], "succinctli": 2, "mathbf": 2, "z": [2, 9, 10, 11], "polynomi": [2, 8, 10], "By": [2, 5], "regressor": 2, "matrix": [2, 6, 7, 9, 11, 13], "statist": [2, 7, 14], "degre": [2, 5, 10], "therefor": [2, 6, 7, 9, 11], "we": [2, 3, 5, 6, 8, 9, 10, 13, 15], "deg": [2, 8, 10], "domain": 2, "case": [2, 5, 8, 9, 10, 11, 12, 13], "coeffici": 2, "unscal": 2, "unshift": 2, "recov": [2, 13], "convert": [2, 3, 7, 9, 11, 13], "method": [2, 5, 6, 7, 8, 9, 11, 13], "mapsto": [2, 10], "666": 2, "32640635": 2, "34163208": 2, "individu": [2, 6, 9, 10, 11, 13, 17], "did": [2, 4, 9, 10, 13], "final": [2, 6, 7, 8, 9, 10, 14], "formula": [2, 5, 9, 13, 14], "xfactor": 2, "2a": 2, "increas": [2, 6, 7, 9, 10], "slope": 2, "semilog": 2, "98": [2, 5], "factor": [2, 6, 7, 9], "three": [2, 3, 4, 8, 10, 11, 12, 13, 14], "get": [2, 5, 6, 7, 8, 9, 10, 12, 13], "same": [2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14], "dimens": [2, 6, 7, 9, 10, 11, 13, 14], "179": 2, "_": 2, "Be": [2, 12, 13], "fivethirtyeight": 2, "style": [2, 4, 7, 8], "sheet": 2, "replic": 2, "http": [2, 6, 7, 8, 9], "com": [2, 6, 9], "transistor_count_predict": 2, "transistor_moores_law": 2, "label": [2, 4, 7, 9, 10, 11, 17], "titl": [2, 6, 8, 9, 10, 14], "microprocessor": 2, "n": [2, 3, 5, 6, 7, 8, 9, 10, 14, 16, 17], "wa": [2, 5, 6, 7, 8, 9, 10, 11], "higher": [2, 4, 6, 7, 9, 10, 12], "xlabel": 2, "introduc": [2, 6, 7, 9], "legend": [2, 6, 8, 9, 11], "loc": [2, 9], "center": [2, 11], "left": [2, 5, 6, 7, 9, 11], "bbox_to_anchor": [2, 9], "5": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14], "ylabel": 2, "nper": 2, "scatter": [2, 10], "captur": 2, "2015": [2, 6, 7], "claim": 2, "could": [2, 7, 9, 10, 13], "keep": [2, 3, 8, 9, 10, 11, 12, 13], "anymor": 2, "show": [2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "averag": [2, 9, 14], "x1": 2, "2017": [2, 7, 14], "abov": [2, 5, 6, 7, 9, 10, 11, 12, 13, 17], "plug": [2, 10], "great": [2, 6, 7, 9], "wai": [2, 4, 6, 7, 9, 10, 12, 13, 17], "measur": [2, 5, 6, 7, 9, 11, 12, 14], "rang": [2, 5, 6, 7, 8, 9, 10, 13, 14], "alpha": [2, 5, 10], "transpar": [2, 9], "opaqu": 2, "appear": [2, 7, 10, 12, 17], "lie": 2, "green": [2, 7, 13], "pm": [2, 5], "transistor_count2017": 2, "max": [2, 5, 13, 14], "mean": [2, 3, 7, 8, 9, 10, 11, 13, 14], "linspac": [2, 10], "2016": [2, 7], "your_model2017": 2, "moore_model2017": 2, "ones": [2, 5, 7, 8, 9, 10, 11, 14], "ro": 2, "markers": 2, "mew": 2, "19200000000": 2, "250000000": 2, "7050000000": 2, "0x7f2709318a60": 2, "close": [2, 7, 8, 9, 10, 12, 13], "closer": 2, "maximum": [2, 5, 6, 7, 13, 14], "produc": [2, 6, 11, 14, 15], "even": [2, 5, 7, 9, 10, 12, 13, 15], "though": [2, 5, 13], "thought": [2, 9], "slow": [2, 7], "onc": [2, 3, 9, 10, 13], "again": [2, 4, 6, 7, 9, 10, 13, 15], "approach": [2, 7, 9], "2025": 2, "still": [2, 4, 7, 8, 13], "nearli": [2, 10], "much": [2, 3, 4, 5, 6, 7, 9, 10, 13, 15], "better": [2, 4, 6, 8, 9, 10, 11, 13], "extrem": [2, 9, 10], "satisfi": 2, "new": [2, 4, 6, 7, 8, 9, 12, 14, 15], "other": [2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "session": [2, 3], "origin": [2, 5, 6, 7, 8, 9, 10, 11, 13, 14], "thousand": 2, "back": [2, 5, 6, 7, 9, 10, 13], "dictionari": [2, 4, 6, 7, 9, 13], "user": [2, 9, 12, 13, 15], "add": [2, 6, 7, 9, 10, 11, 13, 15], "one": [2, 4, 5, 7, 9, 10, 11, 12, 13, 14], "understand": [2, 5, 8, 9, 10, 11, 13], "includ": [2, 3, 4, 7, 8, 9, 12, 13, 15], "nyear": 2, "regression_cst": 2, "33": [2, 5, 8], "34": [2, 5], "38": [2, 6], "35": [2, 5, 7, 8], "mooreslaw_regress": 2, "3264063536233": 2, "l": [2, 9, 11], "mooreslaw": 2, "tutori": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14], "md": [2, 13, 15, 17], "pair": [2, 10, 15], "_static": 2, "text_preprocess": 2, "py": [2, 3, 4, 7, 13], "ma": [2, 8], "nlp": [2, 9], "scratch": [2, 7, 9], "static_equilibrium": 2, "guid": [2, 3, 7, 8], "svd": [2, 13], "who_covid_19_sit_rep_time_seri": [2, 8], "x_y": [2, 4], "benefit": [2, 3, 6], "hundr": [2, 7], "shape": [2, 4, 5, 6, 7, 8, 9, 10, 14], "type": [2, 5, 6, 7, 8, 10, 13, 14], "precis": [2, 6], "float": [2, 4, 5, 7, 9, 13, 14], "prefer": [2, 5, 7, 13], "anoth": [2, 7, 10, 12, 14], "If": [2, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17], "limit": [2, 6, 7, 9], "like": [2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 15], "prepar": [2, 6, 9, 14], "export": 2, "whose": [2, 9], "contain": [2, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14], "inform": [2, 6, 7, 8, 9, 10, 12, 13, 15], "singl": [2, 5, 7, 8, 11, 12], "tabular": 2, "inher": [2, 9], "dimension": [2, 4, 6, 7, 9, 11, 14, 16, 17], "organ": [2, 8, 13], "through": [2, 7, 8, 9, 10, 11, 13, 14], "fourth": [2, 8], "append": [2, 4, 6, 7, 9], "togeth": [2, 4, 9, 10, 11], "larger": [2, 6, 10, 11], "arrang": [2, 4], "write": [2, 4, 5, 6, 9, 10, 11, 14, 15], "971000000000000000e": 2, "03": [2, 5], "250000000000000000e": 2, "130514785642591278e": 2, "249999999999916326e": 2, "972000000000000000e": 2, "500000000000000000e": [2, 4], "590908400344571419e": 2, "181980515339620069e": 2, "973000000000000000e": 2, "238793840142739100e": 2, "500000000000097316e": 2, "conclus": [2, 4, 9, 11], "ha": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15], "maintain": [2, 15], "consist": [2, 10, 11, 13, 15], "time": [2, 3, 5, 6, 7, 8, 9, 10, 11], "01": [2, 4, 5, 7, 9], "2019": [2, 5, 7], "revis": 2, "sai": [2, 10, 11, 13], "should": [2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 15], "hold": [2, 11], "until": [2, 7, 9], "enabl": [2, 7], "industri": [2, 14], "comput": [2, 5, 6, 7, 8, 9, 10, 11, 13, 14], "power": [2, 3, 6, 7, 9, 10, 15], "small": [2, 8, 9, 10, 13, 14], "insight": [2, 10], "incred": 2, "been": [2, 7, 8, 9, 13, 14], "over": [2, 5, 6, 7, 8, 9, 10, 14], "half": 2, "centuri": 2, "wikipedia": [2, 10], "articl": [2, 6, 7, 9], "access": [2, 4, 8, 10, 13, 15], "oct": 2, "2020": [2, 5, 7, 8], "04": [2, 5, 10], "19": [2, 5, 6, 7], "cram": 2, "compon": [2, 9, 11, 13, 14], "integr": 2, "circuit": 2, "electron": [2, 7], "magazin": 2, "retriev": [2, 9, 14], "april": 2, "courtland": 2, "rachel": [2, 6, 9], "man": 2, "ieee": 2, "spectrum": 2, "30": [2, 5, 14], "mar": 2, "sync": [3, 15], "json": 3, "markdown": [3, 12, 15], "drawback": 3, "numpi": [3, 5, 7, 8, 9, 10, 13, 14, 15], "store": [3, 5, 6, 7, 9], "disk": [3, 7], "veri": [3, 6, 7, 8, 9, 10, 13, 14, 15], "allow": [3, 9, 10, 15], "almost": 3, "ani": [3, 4, 5, 7, 8, 9, 11, 12], "input": [3, 5, 6, 7, 9, 10, 12, 13], "librari": [3, 4, 5, 6, 7, 11, 13], "hard": [3, 10], "see": [3, 4, 5, 6, 9, 10, 11, 13, 15, 17], "when": [3, 4, 6, 7, 9, 10, 11, 13, 14], "pull": [3, 15], "request": [3, 6, 15], "onli": [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "raw": [3, 14], "lightweight": 3, "markup": 3, "languag": [3, 7, 9, 15], "Its": 3, "kei": [3, 4, 5, 6, 9], "goal": [3, 6, 7, 10, 11, 17], "readabl": [3, 8], "code": [3, 6, 7, 8, 9, 10, 13, 17], "open": [3, 4, 6, 7, 9, 12, 15, 17], "must": [3, 11, 13], "common": [3, 7, 9, 13, 15], "mark": [3, 9], "cell": [3, 6, 7, 9, 12, 13, 14, 15], "render": [3, 7, 15], "support": [3, 5, 6, 7, 9, 13], "varieti": 3, "restructur": [3, 17], "direct": [3, 7, 9, 11, 12], "sphinx": 3, "built": [3, 6, 7, 9, 10, 13, 16], "websit": [3, 6, 9, 12, 15], "local": [3, 6, 7, 9, 14, 17], "binder": [3, 7, 15, 17], "version": [3, 5, 8, 10, 13, 17], "simpl": [3, 5, 6, 7, 8, 9, 10, 11, 14], "exampl": [3, 6, 7, 8, 9, 10, 13, 14], "thing": [3, 4, 9, 10, 12], "explain": [3, 7, 10, 12], "calcul": [3, 7, 8, 9, 10, 11, 14], "side": 3, "cell_typ": 3, "metadata": 3, "sourc": [3, 7, 9, 11, 15, 17], "execution_count": 3, "stdout": 3, "output_typ": 3, "stream": [3, 6], "kernelspec": 3, "display_nam": 3, "python3": 3, "language_info": 3, "codemirror_mod": 3, "ipython": [3, 4, 7, 12, 13], "file_extens": 3, "mimetyp": 3, "nbconvert_export": 3, "pygments_lex": 3, "ipython3": 3, "nbformat": 3, "nbformat_minor": 3, "text_represent": 3, "extens": [3, 9], "format_nam": 3, "format_vers": 3, "jupytext_vers": 3, "shorter": [3, 7], "doe": [3, 5, 6, 8, 9, 10, 11, 13], "submit": 3, "also": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17], "To": [3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 17], "instal": [3, 5, 7, 13], "pip": [3, 7], "conda": [3, 6, 7, 9, 14], "c": [3, 9, 10, 11, 13], "forg": 3, "lab": 3, "browser": 3, "launch": [3, 15, 17], "ask": [3, 9], "rebuild": [3, 13], "either": [3, 8, 9, 17], "With": [3, 5, 6, 7, 10], "interfac": [3, 7], "automat": [3, 6, 7, 8, 9], "right": [3, 6, 7, 8, 9, 10, 11, 12, 13, 17], "click": [3, 17], "choos": [3, 5, 6, 7, 8, 9, 10, 13], "saw": [3, 10], "both": [3, 4, 5, 6, 8, 9, 10, 11, 14, 15, 17], "editor": [3, 4], "vim": 3, "emac": 3, "continu": 3, "handl": [3, 6, 8, 9], "zip": [4, 6, 9, 10, 14], "comma": [4, 12], "workspac": 4, "compress": [4, 13], "serv": [4, 14], "most": [4, 5, 6, 7, 8, 9, 12, 13], "storag": 4, "binari": [4, 9, 10], "finish": [4, 6, 7, 9], "skill": [4, 12], "directori": [4, 7, 9, 15], "necessari": [4, 5, 7, 9, 10], "magic": 4, "arang": [4, 6, 8], "del": 4, "who": [4, 6, 7, 9, 12, 13, 15], "coupl": [4, 10], "let": [4, 5, 6, 7, 8, 9, 10, 11, 13, 14], "integ": [4, 6, 7, 8, 10, 13, 14], "9": [4, 5, 6, 7, 8, 9, 10, 14], "25": [4, 5, 8, 9], "36": 4, "49": [4, 5], "64": [4, 5, 9], "81": [4, 5], "x_axi": [4, 9], "y_axi": 4, "current": [4, 7, 8, 9, 10], "clear": [4, 8, 12, 15], "valu": [4, 6, 7, 8, 9, 10, 13, 14], "npy": [4, 9], "nativ": [4, 12], "cannot": [4, 8, 9], "standard": [4, 5, 6, 7, 8, 9, 12, 14], "spreadsheet": 4, "workspaec": 4, "info": [4, 7, 8], "modul": [4, 5, 6, 7, 8, 9, 12, 13, 14], "ho": 4, "kage": 4, "__init__": 4, "load_xi": 4, "ve": [4, 9, 14], "delet": [4, 8], "nice": 4, "scenario": [4, 9], "peopl": [4, 9, 13, 15], "program": [4, 9, 10], "mai": [4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 17], "separ": [4, 7, 8, 13], "result": [4, 5, 6, 9, 10, 11, 13], "compos": [4, 10], "ascii": [4, 7], "charact": [4, 8, 9], "filetyp": 4, "complex": [4, 7, 9, 10], "multipl": [4, 5, 6, 7, 9, 10, 13], "forc": [4, 7, 9, 11], "array_out": 4, "tell": [4, 5, 7, 12], "place": [4, 6, 9, 10, 12], "000000000000000000e": 4, "600000000000000000e": 4, "900000000000000000e": 4, "400000000000000000e": 4, "100000000000000000e": 4, "There": [4, 5, 7, 8, 9, 11], "featur": [4, 6, 9, 10, 13, 14, 17], "shoud": 4, "notic": [4, 7, 13, 15], "ignor": [4, 9], "re": [4, 7, 8, 9, 12, 14, 17], "skip": [4, 8, 9, 13], "number_of_header_lin": 4, "written": [4, 7, 10], "scientif": [4, 15], "notat": [4, 6, 10], "fmt": 4, "gener": [4, 5, 6, 7, 8, 9, 11, 12, 13], "preserv": [4, 8, 9], "int": [4, 6, 9], "y_squar": 4, "dtype": [4, 5, 6, 8, 10, 13, 14], "float64": [4, 6, 13, 14], "collabor": 4, "pickl": [4, 6], "futur": 4, "miss": [4, 5, 7], "genfromtext": 4, "about": [4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15], "io": [4, 7, 8, 9], "concept": [5, 6, 7, 9, 11], "interpret": [5, 14], "scipi": [5, 13, 14], "environ": [5, 6, 7, 9, 14, 15], "basic": [5, 6, 8, 9, 10, 13, 14], "popul": [5, 9], "deviat": [5, 7, 14], "etc": [5, 10], "promin": 5, "face": [5, 13], "immedi": 5, "effect": 5, "daili": [5, 9], "live": [5, 9, 10, 17], "covid": 5, "pandem": 5, "world": [5, 6, 7, 9, 13], "offer": [5, 7, 12], "rare": 5, "opportun": 5, "studi": 5, "human": [5, 7, 9], "activ": [5, 6, 7, 9], "lack": [5, 9], "thereof": 5, "worst": 5, "affect": [5, 6, 9, 14], "citi": 5, "dure": [5, 6, 7, 9, 12], "march": 5, "june": 5, "For": [5, 6, 7, 8, 9, 10, 13, 14, 15], "hour": [5, 7], "It": [5, 6, 7, 8, 9, 10, 11, 13, 14], "u": [5, 10, 11, 13, 14], "improv": [5, 7, 9], "due": [5, 7, 9, 11, 13], "intuit": [5, 10], "random": [5, 6, 7, 9], "default_rng": [5, 6, 7, 9], "stat": 5, "condens": 5, "hourli": 5, "level": [5, 6, 7, 9, 10, 12, 13], "variou": [5, 6, 7, 9, 10, 14], "station": 5, "across": [5, 9, 13], "avail": [5, 7, 8, 15], "31": [5, 8], "requir": [5, 7, 10, 11, 12], "few": [5, 6, 7, 8, 9], "particul": 5, "matter": 5, "nitrogen": 5, "dioxid": 5, "no2": 5, "ammonia": 5, "nh3": 5, "sulfur": 5, "so2": 5, "carbon": 5, "monoxid": 5, "co": [5, 9, 10], "ozon": 5, "o3": 5, "oxid": 5, "nox": 5, "nitric": 5, "NO": 5, "benzen": 5, "toluen": 5, "xylen": 5, "glimps": 5, "csv": [5, 8, 9], "datetim": 5, "pm2": 5, "pm10": 5, "05": [5, 14], "103": 5, "26": [5, 8], "305": 5, "46": 5, "94": [5, 13], "71": 5, "43": 5, "06": 5, "178": 5, "152": 5, "73": [5, 13], "13": [5, 6, 7, 8], "65": 5, "83": 5, "47": 5, "54": 5, "104": 5, "309": [5, 8], "74": 5, "66": 5, "08": 5, "27": [5, 6, 8], "02": 5, "69": 5, "106": [5, 11], "79": 5, "76": 5, "91": 5, "90": [5, 14], "314": 5, "48": [5, 6], "32": [5, 14], "45": 5, "59": [5, 6], "78": 5, "356": 5, "44": [5, 17], "22": [5, 6, 8], "41": [5, 10], "80": [5, 7], "372": 5, "23": [5, 8], "68": [5, 6], "92": 5, "15": [5, 6, 7, 8, 10, 13, 14], "39": 5, "62": [5, 6], "389": 5, "97": [5, 6, 13], "17": [5, 6, 7, 8], "56": [5, 10], "371": 5, "61": 5, "87": [5, 13], "84": 5, "29": [5, 8], "24": [5, 8], "37": 5, "07": 5, "77": 5, "361": 5, "88": 5, "63": 5, "86": 5, "96": 5, "377": 5, "purpos": [5, 6, 7, 11], "concern": [5, 9], "viz": 5, "particular": [5, 8, 9, 10, 13, 14], "pollutants_a": 5, "pollutants_b": 5, "slightli": [5, 10, 11, 13], "later": [5, 6, 8, 9], "pollutant_data": 5, "9528": 5, "might": [5, 8, 13, 15], "denot": [5, 10, 11], "nan": [5, 8], "quick": [5, 7, 10], "isfinit": 5, "true": [5, 6, 7, 8, 9, 13, 14], "successfulli": 5, "complet": [5, 6, 7, 10, 12, 13], "adopt": [5, 9], "central": 5, "control": [5, 6, 7, 9], "board": 5, "summar": [5, 6, 8, 9], "concentr": 5, "ip": 5, "ihi": 5, "ilo": 5, "bphi": 5, "bplo": 5, "cp": 5, "breakpoint": 5, "greater": [5, 9, 14], "equal": 5, "less": [5, 10, 11, 13, 14], "correspond": [5, 6, 8, 9, 10, 11, 13, 14], "help": [5, 6, 7, 9, 10, 11, 12, 13, 14, 15], "shown": [5, 6, 9, 12], "chart": 5, "arrai": [5, 6, 7, 9, 10, 11, 12, 16, 17], "51": 5, "101": 5, "201": 5, "301": 5, "401": 5, "501": 5, "121": [5, 13], "251": 5, "351": 5, "431": 5, "181": 5, "281": 5, "801": [5, 6], "1201": 5, "1801": 5, "381": 5, "1601": 5, "169": 5, "209": 5, "749": 5, "window": 5, "moving_mean": 5, "cumsum": 5, "achiev": 5, "sure": [5, 7, 8, 9, 12, 13, 15], "length": [5, 9, 11], "truncat": 5, "pollutants_b_8hr_avg": 5, "accord": [5, 7, 13], "pollutants_a_24hr_avg": 5, "ensur": [5, 6, 8, 9], "period": [5, 8], "def": [5, 6, 7, 9, 10], "ret": 5, "join": [5, 6, 8, 9, 14], "concaten": [5, 9], "wise": [5, 9], "subindic": 5, "relationship": [5, 6, 7], "compute_indic": 5, "fetch": [5, 9], "upper": [5, 9, 17], "lower": [5, 6, 9], "bound": [5, 10], "categori": [5, 9], "feed": [5, 6, 7], "pol": 5, "con": 5, "bp": 5, "inc": 5, "els": [5, 7, 11], "bl": 5, "bh": 5, "ih": 5, "il": 5, "elif": 5, "util": [5, 6, 7, 9, 11, 13], "simpli": [5, 14], "loop": [5, 6, 7, 9, 10, 13], "ourselv": [5, 8, 9, 10], "advantag": [5, 7, 10], "vcompute_indic": 5, "call": [5, 6, 7, 8, 9, 10, 12, 14], "stack": [5, 9, 13, 14], "sub_indic": 5, "which": [5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "aqi_arrai": 5, "31st": 5, "descript": 5, "decis": [5, 9, 10], "signific": [5, 7, 10], "after": [5, 6, 7, 8, 9, 10, 13, 14], "impos": 5, "tail": 5, "critic": [5, 7, 9], "datetime64": 5, "subset": [5, 6, 8, 10], "m8": 5, "h": [5, 7, 10, 13], "total": [5, 6, 7, 8, 9, 10], "commenc": [5, 9], "24th": [5, 8], "after_lock": 5, "24t00": 5, "before_lock": 5, "21t00": 5, "2376": 5, "approxim": [5, 7, 8, 10], "normal": [5, 6, 7, 9, 10, 11, 13, 14], "distribut": [5, 6, 7, 14], "size": [5, 6, 7, 9, 10, 13], "before_sampl": 5, "after_sampl": 5, "drawn": [5, 6, 9], "choic": [5, 6, 7, 9, 10, 12, 15], "rng": [5, 6, 7, 9], "replac": [5, 6, 8, 9, 12], "fals": [5, 6, 7, 8, 9, 14], "null": [5, 7], "altern": [5, 12, 13], "mathemat": [5, 9, 10], "h_": [5, 9], "mu_": 5, "evalu": [5, 6, 9], "sqrt": [5, 7, 9], "sigma": [5, 13, 14], "varianc": [5, 7], "t_test": 5, "diff": 5, "var": 5, "ddof": 5, "num": 5, "denom": 5, "len": [5, 6, 7, 8, 9], "divid": [5, 6, 10, 13], "t_valu": 5, "cdf": 5, "argument": [5, 8], "freedom": 5, "dof": 5, "p_valu": 5, "276258786852856": 5, "7429825381133657e": 5, "699": 5, "confid": 5, "95": [5, 13], "clearli": 5, "safe": 5, "reject": 5, "usual": [5, 6, 7, 12, 14, 15], "chosen": [5, 6, 9, 12], "accept": [5, 9, 15], "enough": [5, 10, 12], "evid": 5, "word": [5, 7, 9, 12], "fail": 5, "panda": [5, 9], "seri": 5, "provid": [5, 6, 7, 8, 9, 12, 14, 17], "ttest_rel": 5, "life": [5, 9, 15], "non": [5, 6, 7, 9, 13], "wilcoxon": 5, "host": [5, 14, 15], "characterist": [5, 9], "gentl": 5, "demonstr": [6, 7, 9, 11, 12], "feedforward": [6, 7], "hidden": [6, 7, 9], "layer": [6, 7, 9], "recogn": 6, "handwritten": 6, "artifici": [6, 7, 9], "resembl": 6, "multi": [6, 9, 14], "perceptron": [6, 9], "classifi": [6, 9], "60": [6, 10], "784": 6, "28x28": 6, "supervis": [6, 7, 9], "revers": [6, 7, 9], "mode": [6, 7], "differenti": [6, 7, 9], "score": 6, "adapt": [6, 7, 13], "andrew": [6, 7, 9], "trask": 6, "author": [6, 9], "permiss": 6, "reader": [6, 7, 9, 12, 14], "some": [6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "knowledg": [6, 7, 10, 14], "manipul": [6, 7, 9, 11, 13, 14], "algebra": [6, 7, 9, 11, 16, 17], "addit": [6, 7, 9, 12, 14], "familiar": [6, 7, 8, 9, 10, 12], "main": [6, 7, 12, 15, 17], "refresh": [6, 8, 9, 13, 14], "advis": 6, "paper": [6, 7, 14], "publish": [6, 7, 14], "yann": [6, 7], "lecun": [6, 7], "yoshua": [6, 7], "bengio": [6, 7], "geoffrei": [6, 7], "hinton": [6, 7], "regard": [6, 7], "pioneer": [6, 7], "field": [6, 7], "grokk": 6, "teach": [6, 12, 17], "urllib": 6, "url": [6, 9], "gzip": 6, "file": [6, 7, 8, 9, 12, 14, 15, 17], "decompress": 6, "well": [6, 7, 9, 11, 12, 14], "visual": [6, 7, 9, 10, 11, 14], "run": [6, 7, 8, 9, 12, 13, 14], "isol": [6, 7, 9, 11, 14], "virtualenv": [6, 7, 9, 14], "jupyterlab": [6, 7, 9, 14], "forget": [6, 9], "section": [6, 7, 9, 10, 12, 17], "download": [6, 8, 9, 14, 17], "split": [6, 9], "list": [6, 7, 9, 10, 12], "data_sourc": 6, "training_imag": 6, "idx3": 6, "ubyt": 6, "gz": 6, "test_imag": 6, "t10k": 6, "training_label": 6, "idx1": 6, "test_label": 6, "o": [6, 8, 9, 12, 14], "data_dir": 6, "_data": 6, "makedir": 6, "exist_ok": 6, "base_url": [6, 9], "github": [6, 7, 9, 15], "rossbar": 6, "mirror": 6, "blob": 6, "fname": 6, "fpath": 6, "path": [6, 8, 9, 14], "exist": [6, 11, 13, 15, 17], "resp": 6, "request_opt": 6, "raise_for_statu": 6, "succes": 6, "wb": 6, "fh": [6, 9], "chunk": 6, "iter_cont": 6, "chunk_siz": 6, "128": 6, "ndarrai": [6, 8, 13, 14], "need": [6, 7, 9, 13, 14], "reshap": [6, 7, 9], "multipli": [6, 7, 11, 13], "mnist_dataset": 6, "rb": [6, 9], "mnist_fil": 6, "frombuff": 6, "uint8": [6, 7, 13, 14], "offset": 6, "x_train": [6, 9], "x_test": [6, 9], "y_train": [6, 9], "y_test": [6, 9], "confirm": 6, "60000": 6, "10000": [6, 8], "And": [6, 7], "000th": 6, "999": [6, 9], "valid": [6, 8, 9, 13], "displai": [6, 7, 13, 14], "mnist_imag": 6, "59999": 6, "color": [6, 7, 8, 10, 11, 14], "map": [6, 7, 9, 10, 14], "grayscal": [6, 7, 13, 14], "black": 6, "imshow": [6, 7, 10, 13, 14], "cmap": [6, 7, 10, 13, 14], "grai": [6, 7, 13, 14], "num_exampl": 6, "seed": [6, 7], "147197952744": 6, "fig": [6, 9, 10, 11, 14], "subplot": [6, 10, 14], "sampl": [6, 7, 9, 14], "taken": [6, 9], "hand": [6, 10, 12], "arab": 6, "numer": [6, 7, 8, 9], "exact": 6, "randomli": [6, 7, 9], "quit": [6, 7, 10], "198": 6, "243": 6, "254": 6, "212": 6, "tensor": [6, 7], "multidimension": [6, 7], "convers": 6, "alreadi": [6, 9, 10], "challeng": [6, 7, 14], "procedur": [6, 10], "speed": [6, 7], "One": [6, 7, 8, 10], "practic": [6, 7, 9, 13], "nvidia": 6, "googl": [6, 7], "cloud": [6, 7, 10], "blog": [6, 7, 9, 17], "post": [6, 7, 9, 17], "255": [6, 13, 14], "interv": 6, "thu": [6, 12], "promot": 6, "train_label": 6, "reduc": [6, 7, 10], "training_sampl": 6, "test_sampl": 6, "success": [6, 7, 9], "01176471": 6, "07058824": 6, "49411765": 6, "53333333": 6, "68627451": 6, "10196078": 6, "65098039": 6, "96862745": 6, "49803922": 6, "emb": 6, "zero": [6, 7, 9, 10, 11, 12, 13], "As": [6, 8, 10, 11, 12, 13, 14], "posit": [6, 7, 9, 10], "similar": [6, 7, 9, 10, 11, 14], "one_hot_encod": 6, "one_hot_label": 6, "none": [6, 7, 9], "astyp": [6, 7, 14], "examin": [6, 8], "yourself": [6, 9, 12], "high": [6, 7, 9, 14, 17], "refer": [6, 7, 9, 12, 13, 14], "research": [6, 7, 9, 10, 14], "public": [6, 9, 14], "afterward": [6, 9], "construct": [6, 9], "identifi": [6, 8, 9, 14], "certain": [6, 7, 9, 10, 11, 14], "accuraci": [6, 9], "filter": [6, 8], "represent": [6, 9], "target": [6, 9], "gradient": [6, 7, 9], "deriv": [6, 9, 10], "loss": [6, 7, 9], "backward": [6, 7, 9], "middl": 6, "weight": [6, 7, 9], "dot": [6, 7, 9, 13], "simplic": [6, 7, 9, 14], "bia": [6, 9], "omit": 6, "adjust": [6, 7, 10], "fine": [6, 7, 8, 9, 12], "tune": [6, 7, 9], "optim": [6, 7, 9, 11], "descent": [6, 7, 9], "highest": 6, "lowest": 6, "capabl": [6, 9], "appli": [6, 7, 8, 9, 10, 11], "rectifi": [6, 7], "unit": [6, 7, 9, 11], "relu": [6, 7], "regular": [6, 8, 9, 17], "techniqu": [6, 7, 9, 14], "prevent": [6, 7, 9], "overfit": [6, 9], "dropout": 6, "dilut": 6, "truth": [6, 9], "final_layer_output": 6, "image_label": 6, "metric": 6, "abil": [6, 9], "hasn": 6, "seen": [6, 9, 11], "previous": [6, 7, 10], "layer_0": 6, "layer_1": 6, "previou": [6, 7, 9, 13], "weights_1": 6, "layer_2": 6, "ingest": 6, "repeat": [6, 7, 13], "weights_2": 6, "end": [6, 7, 9, 11, 12, 14], "signal": [6, 7], "technic": 6, "matric": [6, 11, 13, 14], "chain": [6, 9], "rule": [6, 7, 9, 13], "iter": [6, 9, 10, 12], "epoch": [6, 9], "cycl": [6, 9, 10], "reflect": [6, 9, 12], "maxim": [6, 7], "cover": [6, 7, 8, 15], "ll": [6, 7, 9, 13, 14, 15], "884736743": 6, "otherwis": [6, 7, 10, 11, 13, 14, 15], "relu2deriv": 6, "hyperparamet": [6, 9], "learning_r": [6, 7, 9], "magnitud": [6, 7, 11], "overcorrect": [6, 7], "neg": [6, 7, 8, 9, 13], "longer": [6, 7, 9], "computation": 6, "intens": [6, 13, 14], "task": [6, 7], "low": [6, 14], "meaning": 6, "hidden_s": 6, "pixels_per_imag": 6, "establish": [6, 9], "num_label": 6, "indic": [6, 7, 8, 9, 13], "occur": [6, 9], "005": 6, "100": [6, 7, 9, 10, 12, 14], "experi": [6, 7, 9, 10, 11, 13], "track": [6, 8, 10], "accur": [6, 9], "store_training_loss": 6, "store_training_accurate_pr": 6, "store_test_loss": 6, "store_test_accurate_pr": 6, "j": [6, 10, 13], "training_loss": [6, 9], "training_accurate_predict": 6, "accordingli": 6, "dropout_mask": 6, "increment": 6, "argmax": 6, "layer_2_delta": 6, "layer_1_delta": 6, "outer": [6, 7], "unlik": [6, 7, 9, 12], "modifi": [6, 8, 9], "batch": [6, 7, 9, 14], "manner": 6, "elimin": [6, 8, 13], "test_loss": 6, "test_accurate_predict": 6, "3f": 6, "898": 6, "397": 6, "680": 6, "582": 6, "656": 6, "633": 6, "607": 6, "641": 6, "592": 6, "569": 6, "679": 6, "556": [6, 8], "541": 6, "708": 6, "534": [6, 8], "732": 6, "526": 6, "729": 6, "515": 6, "715": 6, "739": 6, "495": 6, "748": 6, "487": 6, "753": 6, "483": 6, "769": 6, "486": 6, "747": 6, "473": 6, "776": 6, "752": 6, "460": 6, "788": 6, "462": 6, "762": 6, "465": 6, "767": 6, "443": 6, "456": 6, "775": 6, "448": 6, "795": 6, "455": 6, "772": 6, "438": 6, "787": 6, "453": 6, "778": 6, "446": [6, 8], "791": 6, "450": 6, "779": 6, "441": 6, "452": 6, "437": 6, "786": 6, "436": 6, "794": 6, "449": 6, "433": 6, "774": 6, "429": 6, "785": 6, "mani": [6, 7, 8, 9, 10, 12, 13, 14], "minut": [6, 9], "machin": [6, 7, 9, 12, 14], "wait": [6, 15], "reset": [6, 7], "runtim": 6, "instanc": [6, 7, 9], "epoch_rang": 6, "training_metr": 6, "asarrai": 6, "test_metr": 6, "nrow": [6, 14], "ncol": [6, 14], "figsiz": [6, 10, 14], "item": [6, 7, 9], "capit": [6, 12], "set_titl": [6, 10, 14], "set_xlabel": [6, 9, 10], "decreas": 6, "reach": [6, 7], "somewhat": 6, "plausibl": 6, "cross": [6, 7, 11, 12], "entropi": [6, 7], "possibl": [6, 7, 8, 13, 15], "solut": [6, 7, 8, 9], "discuss": [6, 7, 9], "just": [6, 8, 9, 10, 11, 12, 13, 14], "further": [6, 7, 9], "enhanc": [6, 7, 9], "mixtur": [6, 9], "mini": 6, "alter": [6, 9], "deeper": [6, 9], "softmax": [6, 7], "convolut": [6, 7, 14], "earli": [6, 9], "stop": [6, 7, 9, 10], "unbias": [6, 9], "valuat": 6, "faster": [6, 9, 10], "stabl": [6, 9, 11], "howev": [6, 7, 8, 9, 11, 13], "applic": [6, 7, 8, 9, 13, 15, 17], "special": [6, 7, 9, 13], "framework": [6, 7, 9, 12], "pytorch": [6, 7, 9], "jax": [6, 7, 9], "tensorflow": [6, 7, 9], "mxnet": [6, 7, 9], "api": [6, 7, 9, 10], "gpu": [6, 7, 9], "develop": [6, 7, 9, 12, 17], "think": [6, 8], "potenti": 6, "issu": [6, 7, 8, 9, 17], "avoid": [6, 8], "mitig": [6, 9], "those": [6, 8, 9, 11, 13, 14], "document": [6, 7, 8, 12, 13, 15, 17], "card": 6, "margaret": 6, "mitchel": 6, "et": [6, 7], "al": [6, 7], "datasheet": 6, "timnit": 6, "gebru": 6, "talk": [6, 9], "pratyusha": [6, 9], "kalluri": [6, 9], "resourc": [6, 9], "thoma": [6, 9], "radic": [6, 9], "ai": [6, 7, 9], "podcast": [6, 9], "credit": [6, 12], "hsjeong5": 6, "without": [6, 8, 9, 10, 11, 13], "extern": 6, "test": [7, 9, 13], "licens": [7, 12, 15], "underli": [7, 9], "gym": 7, "atari": 7, "footprint": 7, "implement": [7, 8, 9, 14], "plai": [7, 9, 10], "game": 7, "screen": [7, 14], "go": [7, 8, 9, 10, 12, 13, 15], "player": 7, "racket": 7, "tenni": 7, "move": [7, 9, 11, 13], "down": [7, 8, 9, 12], "tri": 7, "hit": 7, "ball": 7, "oppon": 7, "touch": 7, "goe": [7, 13], "past": [7, 9], "shot": 7, "win": [7, 12], "andrej": 7, "karpathi": 7, "bootcamp": 7, "uc": 7, "berkelei": 7, "mechan": [7, 9, 11], "theori": [7, 10, 13], "openai": 7, "while": [7, 9, 10, 12, 13], "simul": 7, "try": [7, 8, 9, 10, 13, 15], "literatur": 7, "link": [7, 10, 12], "conveni": [7, 9, 10, 14], "free": [7, 12], "colaboratori": 7, "tpu": 7, "acceler": [7, 11], "trial": 7, "interact": [7, 8, 9, 11, 15], "gain": [7, 10], "action": 7, "receiv": 7, "proce": [7, 13], "happen": [7, 9, 10, 13], "deem": 7, "present": [7, 9, 12, 14, 15], "what": [7, 9, 13, 15], "overal": 7, "detail": [7, 9, 10, 12, 13, 14, 15], "introductori": 7, "book": [7, 9], "richard": 7, "sutton": 7, "barton": 7, "concis": 7, "remain": [7, 10, 11], "finit": 7, "horizon": 7, "explor": [7, 10], "exploit": 7, "feedback": 7, "partial": 7, "instead": [7, 8, 9, 11, 13, 14, 15], "cumul": [7, 8], "known": [7, 10, 14], "estim": [7, 8, 14], "visit": [7, 9, 10], "probabl": [7, 9], "versu": 7, "often": [7, 9, 10], "99": 7, "sequenc": [7, 9], "sometim": [7, 8, 10], "trajectori": 7, "yield": [7, 10], "algorithm": [7, 9, 14], "belong": [7, 9, 14], "famili": [7, 9], "typic": [7, 12], "wide": 7, "ascent": 7, "object": [7, 11, 14], "monitor": 7, "wrapper": 7, "instanti": [7, 9], "env": 7, "v0": 7, "action_spac": 7, "get_action_mean": 7, "leftfir": 7, "rightfir": 7, "noop": 7, "fire": 7, "mp4": 7, "wrap": [7, 10], "around": [7, 8, 9, 10, 14], "kind": [7, 8, 9, 12, 13, 15], "rather": [7, 10, 12], "digest": 7, "fed": 7, "deepmind": 7, "dqn": 7, "210x160": 7, "encod": [7, 8], "box": [7, 14], "observation_spac": 7, "discret": 7, "fix": [7, 15], "class": [7, 9, 10, 17], "ed": 7, "core": 7, "random_fram": 7, "rgb_arrai": 7, "400": [7, 10], "80x80x1": 7, "ravel": [7, 10], "flatten": 7, "helper": [7, 9], "frame_preprocess": 7, "observation_fram": 7, "crop": 7, "195": [7, 11, 14], "downsampl": 7, "remov": [7, 8, 9, 13, 14], "144": [7, 13], "eras": 7, "109": 7, "earlier": [7, 9], "80x80": 7, "preprocessed_random_fram": 7, "product": [7, 11, 12], "send": 7, "12288743": 7, "d": [7, 9, 11, 15], "neuron": 7, "200": [7, 14], "empti": [7, 11], "xavier": [7, 9], "standard_norm": [7, 9], "w1": 7, "w2": [7, 9], "outlin": [7, 15], "policy_forward": 7, "sigmoid": [7, 9], "logit": 7, "p": [7, 10], "exponenti": [7, 9], "policy_backward": 7, "eph": 7, "epdlogp": 7, "dw2": [7, 9], "dh": 7, "dw1": 7, "epx": 7, "intermedi": [7, 9], "sever": [7, 9], "dlogp": 7, "dr": 7, "manual": 7, "full": [7, 13], "vstack": [7, 9], "stage": [7, 9], "toward": [7, 9, 14], "rmsprop": 7, "decai": [7, 9], "decay_r": 7, "zeros_lik": 7, "buffer": 7, "grad_buff": 7, "k": [7, 9, 13], "v": [7, 8, 9, 11, 13], "rmsprop_cach": 7, "discount_reward": 7, "gamma": 7, "r": [7, 8, 9, 10, 11, 13], "discounted_r": 7, "running_add": 7, "pseudocod": 7, "predefin": [7, 9], "sign": 7, "lead": [7, 10], "appropri": [7, 8, 10, 13, 15], "setup": [7, 13], "demo": 7, "hardwar": [7, 13], "cpu": 7, "beyond": [7, 10], "comparison": 7, "took": [7, 9, 10], "max_episod": 7, "dictat": 7, "At": [7, 12], "batch_siz": 7, "1e": [7, 9], "debug": 7, "prev_x": 7, "running_reward": 7, "reward_sum": 7, "episode_numb": 7, "motion": 7, "update_input": 7, "cur_x": 7, "tag": [7, 9], "output_scrol": 7, "cours": [7, 10, 12, 13], "aprob": 7, "uniform": [7, 9], "cach": [7, 9], "recal": [7, 13], "done": [7, 9, 10, 11, 12, 13], "epr": 7, "discounted_epr": 7, "std": 7, "grad": [7, 9], "henc": [7, 9], "throw": 7, "traini": 7, "shut": 7, "uncom": 7, "doesn": [7, 8, 9, 12], "span": 7, "reason": [7, 10, 13, 15], "simplifi": [7, 11], "everyth": 7, "autodiff": 7, "autograd": 7, "lot": [7, 10], "problem": [7, 8, 9, 11], "ineffici": 7, "account": [7, 8, 9, 14], "larg": [7, 9, 10], "amount": [7, 10, 14], "million": 7, "node": [7, 9], "being": [7, 9, 11, 12, 17], "assist": 7, "alwai": [7, 9, 13], "advanc": [7, 10], "sensit": [7, 9], "resolv": 7, "self": [7, 9, 17], "proxim": 7, "ppo": 7, "john": [7, 13], "schulman": 7, "month": 7, "dota": 7, "competit": [7, 14], "Of": [7, 10, 13], "smaller": [7, 10, 11], "fast": [7, 8], "matthew": 7, "botvinick": 7, "sam": 7, "ritter": 7, "jane": 7, "wang": 7, "zeb": 7, "kurth": 7, "nelson": 7, "charl": 7, "blundel": 7, "demi": 7, "hassabi": 7, "educ": [7, 9, 17], "materi": [7, 14, 15, 17], "spin": 7, "lectur": [7, 13, 14], "taught": 7, "practition": 7, "david": 7, "silver": 7, "ucl": 7, "recognit": 7, "translat": 7, "classif": [7, 9], "explicit": 7, "wrong": [7, 8], "reli": 7, "had": [7, 9, 13], "major": 7, "2013": 7, "alexnet": 7, "breakthrough": 7, "vision": [7, 9, 14], "volodymyr": 7, "mnih": 7, "colleagu": 7, "abl": [7, 8, 10, 12, 13], "classic": 7, "arcad": 7, "Their": 7, "q": 7, "replai": 7, "off": [7, 14], "alphago": 7, "mont": 7, "carlo": 7, "tree": [7, 17], "search": [7, 14], "2000": [7, 9], "influenc": [7, 9, 10], "ronald": 7, "william": 7, "1992": 7, "1986": 7, "1990": 7, "gerald": 7, "tesauro": 7, "tempor": 7, "td": 7, "gammon": 7, "1995": 7, "ibm": 7, "backgammon": 7, "ji": 7, "lin": 7, "robot": 7, "1993": 7, "solv": 7, "alphazero": 7, "master": 7, "chess": 7, "shogi": 7, "2018": 7, "alphastar": 7, "starcraft": 7, "actor": 7, "imit": 7, "distil": 7, "oriol": 7, "vinyal": 7, "battlefield": 7, "art": [7, 9], "dice": 7, "why": [7, 9, 17], "popular": [7, 9], "remot": [7, 9], "helicopt": 7, "pieter": 7, "abbeel": 7, "2006": 7, "virtual": 7, "safer": 7, "implic": 7, "neurosci": 7, "tool": [7, 11], "docker": 7, "freeglut3": 7, "dev": 7, "xvfb": 7, "x11": 7, "apt": 7, "txt": [7, 9], "configur": 7, "yml": [7, 15], "under": [7, 9, 11, 12, 13, 14], "channel": [7, 13, 14], "pyvirtualdisplai": 7, "anyth": [7, 12], "ffmpeg": 7, "pyopengl": 7, "ipythondisplai": 7, "html": [7, 9], "400x300": 7, "visibl": 7, "300": 7, "echo": 7, "star": 7, "sy": 7, "glob": 7, "base64": 7, "show_any_video": 7, "mp4video": 7, "mp4list": 7, "b64encod": 7, "alt": 7, "autoplai": 7, "height": 7, "400px": 7, "src": 7, "decod": 7, "gameplai": 7, "insid": [7, 8, 9, 10, 12], "instruct": [7, 10], "linux": 7, "maco": 7, "termin": 7, "offici": [7, 8, 9], "deal": [8, 9], "decid": [8, 9], "invalid": 8, "entri": [8, 11, 13, 15], "flag": 8, "unwant": 8, "somehow": 8, "nomask": 8, "associ": 8, "whether": [8, 9], "said": 8, "unmask": 8, "maskedarrai": 8, "datatyp": 8, "fill_valu": 8, "order": [8, 10, 11, 12, 13], "situat": 8, "copi": [8, 10, 17], "own": [8, 9, 13, 14, 17], "bug": 8, "possibli": 8, "compact": 8, "wish": [8, 9, 13], "exclud": 8, "Not": [8, 12], "specif": [8, 9, 10], "univers": [8, 9, 10, 13, 14], "ufunc": 8, "kaggl": [8, 14], "outbreak": 8, "begin": [8, 9, 10, 11, 12, 14], "late": 8, "getcwd": 8, "folder": [8, 9, 14], "filepath": 8, "filenam": 8, "mostli": 8, "seventh": 8, "summari": [8, 12], "extend": 8, "rightmost": 8, "lowermost": 8, "dai": 8, "record": [8, 9], "gather": 8, "genfromtxt": 8, "select": [8, 10, 13, 15, 17], "extract": [8, 9, 13, 14], "skip_head": 8, "portion": [8, 13], "str_": 8, "max_row": 8, "utf": 8, "sig": 8, "geograph": 8, "six": [8, 11], "nbcase": 8, "int_": 8, "string": [8, 9], "whole": [8, 9], "tick": 8, "transpos": [8, 13], "dash": 8, "selected_d": 8, "xtick": 8, "jan": 8, "feb": 8, "graph": [8, 11, 13], "strang": 8, "januari": 8, "februari": 8, "1st": 8, "know": [8, 9, 12, 13], "region": [8, 10, 14], "countri": [8, 9], "provinc": 8, "china": 8, "sens": [8, 13], "group": [8, 9], "totals_row": 8, "china_tot": 8, "247": 8, "288": 8, "817": 8, "11820": 8, "14410": 8, "17237": 8, "someth": [8, 13], "suppos": 8, "258": 8, "270": 8, "375": 8, "7153": 8, "9074": 8, "11177": 8, "520": 8, "604": 8, "683": 8, "422": 8, "493": 8, "566": 8, "attempt": [8, 9], "obvious": 8, "interfer": 8, "nbcases_ma": 8, "masked_valu": 8, "masked_arrai": 8, "mention": [8, 10], "attribut": 8, "mind": [8, 9, 13], "hubei": 8, "china_mask": 8, "278": 8, "574": 8, "835": 8, "11821": 8, "14411": 8, "17238": 8, "999999": 8, "directli": 8, "seem": [8, 9, 10], "agre": 8, "mainland": 8, "hong": 8, "kong": 8, "taiwan": 8, "macau": 8, "unspecifi": 8, "mayb": 8, "nonzero": 8, "correctli": 8, "308": 8, "440": 8, "11791": 8, "14380": 8, "17205": 8, "focus": [8, 9, 14], "mischaracter": 8, "evolut": 8, "curv": [8, 9], "interpol": 8, "int64": 8, "logic": 8, "negat": 8, "u7": 8, "cubic": 8, "line2d": 8, "0x7fd12dcdb610": 8, "elabor": 8, "unavail": 8, "28th": 8, "ytick": 8, "17500": 8, "ncubic": 8, "substitut": 8, "far": [8, 14], "usemask": 8, "topic": [8, 9], "found": [8, 10, 13, 17], "hardmask": 8, "softmask": 8, "ensheng": 8, "dong": 8, "hongru": 8, "du": 8, "lauren": 8, "gardner": 8, "web": [8, 9], "dashboard": 8, "lancet": 8, "infecti": 8, "diseas": 8, "volum": 8, "page": [8, 9, 10, 12, 13], "533": 8, "issn": 8, "1473": 8, "3099": 8, "doi": [8, 9], "org": 8, "1016": 8, "s1473": 8, "30120": 8, "social": 9, "relev": [9, 11], "acquir": 9, "recurr": 9, "piec": 9, "50": [9, 10, 13], "movi": 9, "sequenti": 9, "todai": [9, 10], "everydai": 9, "discriminatori": 9, "fair": 9, "consider": [9, 10], "consum": 9, "throughout": [9, 10], "question": [9, 10, 12], "pipelin": 9, "calculu": 9, "recommend": 9, "d2l": 9, "datafram": 9, "pooch": 9, "pointer": 9, "tend": [9, 10], "histor": 9, "skew": 9, "imbalanc": 9, "protect": 9, "bias": 9, "outcom": 9, "absenc": 9, "anonym": 9, "trevisan": 9, "reilli": 9, "care": [9, 13], "along": [9, 12, 14], "person": 9, "routin": 9, "impair": 9, "medic": [9, 14], "emot": 9, "pain": 9, "chronic": 9, "ill": 9, "financi": 9, "incom": 9, "welfar": 9, "payment": 9, "discrimin": 9, "abus": 9, "prais": 9, "healthcar": [9, 14], "servic": 9, "suicid": 9, "especi": [9, 14], "compromis": 9, "safeti": 9, "fingerprint": 9, "voic": 9, "difficult": 9, "consent": 9, "platform": 9, "necess": 9, "pseudonym": 9, "curat": [9, 15], "activist": 9, "former": 9, "latter": 9, "maa": 9, "eas": 9, "zenodo": 9, "usag": 9, "commerci": 9, "aforement": 9, "pertain": [9, 16], "globe": 9, "climat": 9, "femin": 9, "lgbtqa": 9, "racism": 9, "newspap": 9, "nation": [9, 14], "archiv": 9, "cite": 9, "transcrib": 9, "speaker": 9, "demograph": 9, "focu": [9, 10, 14], "barnard": 9, "colleg": 9, "leymah": 9, "gbowe": 9, "un": 9, "youth": 9, "malala": 9, "yousafzai": 9, "guardian": 9, "remark": 9, "unga": 9, "racial": 9, "linda": 9, "greenfield": 9, "mission": 9, "dare": 9, "greta": 9, "thunberg": 9, "nbc": 9, "silenc": 9, "severn": 9, "suzuki": 9, "earth": 9, "charter": 9, "hope": 9, "harvei": 9, "milk": 9, "museum": 9, "boston": 9, "thrive": 9, "confer": [9, 14], "ellen": 9, "huffpost": 9, "dream": 9, "martin": 9, "luther": 9, "king": 9, "marshal": 9, "crucial": [9, 11], "dive": 9, "brief": 9, "undertak": 9, "clean": 9, "denois": 9, "unhelp": 9, "nois": [9, 14], "lowercas": 9, "bracket": [9, 12], "sentenc": [9, 12], "cluster": 9, "embed": 9, "space": [9, 11], "glove": 9, "unsupervis": 9, "stanford": 9, "global": 9, "corpu": 9, "edu": 9, "project": [9, 10, 11, 17], "billion": 9, "token": 9, "840": 9, "exhibit": 9, "stereotyp": 9, "gender": 9, "trace": 9, "occup": 9, "problemat": 9, "nearest": 9, "de": [9, 14], "cs224n": 9, "1184": 9, "6835575": 9, "pdf": 9, "pd": 9, "zipfil": 9, "textpreprocess": 9, "txt_to_df": 9, "str": 9, "imdb_train": 9, "in_fil": 9, "strip": 9, "df": [9, 10], "reset_index": 9, "drop": 9, "unzipp": 9, "to_extract": 9, "outdir": 9, "output_fil": 9, "cleantext": 9, "text_column": 9, "remove_stopword": 9, "remove_punc": 9, "hous": 9, "bool": [9, 14], "stopword": 9, "punctuat": 9, "symbol": 9, "gist": 9, "sebleier": 9, "554280": 9, "am": 9, "he": 9, "her": 9, "herself": 9, "him": 9, "himself": 9, "m": [9, 11, 13], "itself": [9, 10], "me": 9, "my": 9, "myself": 9, "nor": 9, "ought": 9, "she": 9, "theirs": 9, "themselv": [9, 10], "too": 9, "whom": 9, "yourselv": 9, "remove_tag": 9, "sub": 9, "data_without_stopword": 9, "clean_": 9, "cw": 9, "regex": 9, "to_numpi": 9, "sent_tokenis": 9, "w": [9, 11], "pop": 9, "sentences_clean": 9, "word_tokenis": 9, "loadglovemodel": 9, "emb_path": 9, "dict": 9, "glovemodel": 9, "splitlin": 9, "wordembed": 9, "text_to_para": 9, "para_len": 9, "paragraph": 9, "no_para": 9, "ceil": 9, "aggreg": 9, "divmod": 9, "agg_sent": 9, "para": 9, "sent": 9, "scientist": 9, "registri": 9, "system": [9, 10, 11, 12], "os_cach": 9, "hash": 9, "uncorrupt": 9, "6a38ea6ab5e1902cc03f6b9294ceea5e8ab985af991f35bcabd301a08ea5b3f0": 9, "imdb_test": 9, "7363ef08ad996bf4233b115008d6d7f9814b7cc0f4d13ab570b938701eadefeb": 9, "6b": 9, "50d": 9, "617afb2fe6cbd085c235baf7a465b96f4112bd7f7ccb2b2cbd649fed9cbcf2fb": 9, "custom": 9, "5281": 9, "4117827": 9, "textproc": 9, "train_df": 9, "test_df": 9, "occurr": 9, "ahead": [9, 13], "refrain": 9, "speech_data_path": 9, "speech_df": 9, "read_csv": 9, "x_pred": 9, "unzip": 9, "act": [9, 11], "300d": 9, "emb_matrix": 9, "plain": 9, "suitabl": 9, "multilay": 9, "mlp": 9, "straight": 9, "never": [9, 12], "share": [9, 12, 16, 17], "moreov": 9, "vari": [9, 10, 11], "rnn": 9, "regardless": [9, 13], "retain": [9, 13], "blow": 9, "connect": 9, "shortcom": 9, "vanish": 9, "address": 9, "gif": [9, 14], "rectangl": [9, 13], "respons": [9, 11], "rememb": [9, 15], "via": [9, 14], "c_": 9, "dedic": 9, "gate": 9, "initialise_param": 9, "hidden_dim": 9, "input_dim": 9, "wf": 9, "bf": 9, "wi": 9, "bi": [9, 10], "candid": 9, "wcm": 9, "bcm": 9, "wo": 9, "bo": 9, "b2": 9, "forgotten": 9, "similarli": [9, 11, 13], "stai": 9, "fmin": 9, "ab": [9, 10, 11], "old": 9, "attent": 9, "fp_forget_g": 9, "concat": 9, "ft": 9, "govern": 9, "tanh": 9, "regul": 9, "flow": 9, "fp_input_g": 9, "cmt": 9, "fp_output_g": 9, "next_c": 9, "ot": 9, "next_h": 9, "firstli": 9, "fp_fc_layer": 9, "last_h": 9, "z2": 9, "a2": 9, "forward_prop": 9, "x_vec": 9, "time_step": 9, "initialis": 9, "prev_h": 9, "prev_c": 9, "lstm_valu": 9, "fc_valu": 9, "happi": 9, "xt": 9, "lstm_cach": 9, "fc_cach": 9, "accumul": [9, 13], "straightforward": [9, 12, 14], "nonetheless": 9, "initialize_grad": 9, "param": 9, "behind": [9, 10], "suggest": [9, 12, 14], "christina": 9, "kouridi": 9, "bp_forget_g": 9, "dh_prev": 9, "dc_prev": 9, "dft": 9, "dl": 9, "da2": 9, "dz2": 9, "dwf": 9, "dbf": 9, "keepdim": 9, "dh_f": 9, "bp_input_g": 9, "dit": 9, "dcmt": 9, "dwi": 9, "dwcm": 9, "dbi": 9, "dbcm": 9, "dhi": 9, "dh_i": 9, "dhcm": 9, "dh_cm": 9, "bp_output_g": 9, "dwo": 9, "dbo": 9, "dho": 9, "dh_o": 9, "bp_fc_layer": 9, "db2": 9, "dh_last": 9, "backprop": 9, "relat": [9, 10, 11, 13], "prev": 9, "adam": 9, "stochast": 9, "recent": [9, 12], "broader": 9, "beta1": 9, "beta2": 9, "converg": [9, 10], "robust": 9, "initialise_mav": 9, "update_paramet": 9, "001": 9, "impli": 9, "poorli": 9, "behav": 9, "likelihood": 9, "loss_f": 9, "epsilon": 9, "divis": [9, 12], "squeez": 9, "testing_loss": 9, "train_j": 9, "y_pred": 9, "test_j": 9, "mean_train_cost": 9, "mean_test_cost": 9, "diagnos": 9, "add_subplot": [9, 11], "111": [9, 13], "set_ylabel": [9, 10], "break": [9, 11], "isfil": 9, "allow_pickl": 9, "enumer": [9, 10], "pred": 9, "para_token": 9, "sent_prob": 9, "threshold": [9, 10, 14], "pos_indic": 9, "neg_indic": 9, "pos_para": 9, "neg_para": 9, "no_pos_para": 9, "no_neg_para": 9, "percentag": 9, "pos_perc": 9, "bar": 9, "carri": 9, "priorit": 9, "clariti": 9, "neighbor": 9, "context": [9, 14], "led": 9, "encourag": [9, 10, 13], "tweak": [9, 10], "easi": [9, 12], "primarili": 9, "express": [9, 10, 12], "ironi": 9, "sarcasm": 9, "humor": 9, "media": 9, "abbrevi": 9, "neatli": 9, "convei": [9, 10, 11], "ag": 9, "grow": [9, 10], "induct": 9, "essenti": 9, "contextu": 9, "aris": [9, 10], "societ": 9, "creep": 9, "amplifi": [9, 12], "femal": 9, "male": 9, "awar": [9, 13], "demand": 9, "drill": 9, "ethnic": 9, "hopefulli": 9, "explod": [9, 10], "bidirect": 9, "nowadai": 9, "tackl": 9, "plagu": 9, "transfer": 9, "parallel": 9, "lengthi": 9, "ture": 9, "institut": [9, 14], "www": 9, "ac": [9, 11], "uk": 9, "intellig": 9, "shift": 9, "beauti": 10, "compel": 10, "oftentim": 10, "rel": [10, 14], "coastlin": 10, "seashel": 10, "fern": 10, "antenna": 10, "realli": 10, "began": 10, "truli": 10, "appreci": 10, "1970": 10, "graphic": [10, 12], "accident": 10, "discoveri": 10, "beno\u00eet": 10, "stumbl": 10, "mystifi": 10, "possess": 10, "ever": 10, "effici": 10, "variat": 10, "uniqu": 10, "make_axis_locat": 10, "mpl_toolkit": 10, "axes_grid1": 10, "make_axes_locat": 10, "elementari": 10, "expon": 10, "sin": 10, "shortli": 10, "behaviour": 10, "2j": 10, "4j": 10, "shrink": 10, "plane": 10, "mesh": 10, "meshgrid": 10, "1j": 10, "greatli": 10, "absolut": 10, "modulu": 10, "3d": [10, 11], "scatterplot": 10, "imaginari": 10, "set_zlabel": 10, "rough": [10, 15], "closest": 10, "0i": 10, "lose": 10, "impress": 10, "mundan": 10, "meet": [10, 17], "ey": 10, "exot": 10, "z_1": 10, "4i": 10, "z_2": 10, "z_3": 10, "1i": 10, "selected_valu": 10, "41j": 10, "num_it": 10, "colorbar": 10, "bottom": [10, 12], "surpris": 10, "hypothesi": 10, "prime": 10, "chaotic": 10, "jump": 10, "despit": [10, 11], "tini": 10, "diverg": 10, "although": [10, 13], "uncertain": 10, "surpass": 10, "distanc": [10, 11, 14], "doom": 10, "radiu": [10, 11], "quantifi": 10, "answer": [10, 12], "pose": 10, "talli": 10, "divergence_r": 10, "diverge_len": 10, "conv_mask": 10, "confus": 10, "glanc": 10, "quicker": 10, "suffici": 10, "unbeat": 10, "condition": 10, "resort": 10, "colour": 10, "im": 10, "extent": 10, "cax": 10, "append_ax": 10, "pad": 10, "stun": 10, "yellow": 10, "purpl": 10, "pattern": 10, "border": 10, "fascin": 10, "realiz": 10, "fill": [10, 12], "likewis": 10, "boundari": 10, "greenish": 10, "wider": 10, "reus": 10, "rest": 10, "small_mesh": 10, "plot_fract": 10, "rainbow": 10, "newli": 10, "kwarg": 10, "pi": [10, 14], "eleg": 10, "plasma": 10, "75": 10, "greens_r": 10, "famou": 10, "equival": 10, "infinit": 10, "renam": 10, "complex128": 10, "hot": [10, 14], "general_julia": 10, "cool": 10, "emerg": 10, "stick": 10, "rais": 10, "base_degre": 10, "tight_layout": 10, "needless": 10, "fiddl": 10, "densiti": 10, "involv": [10, 11], "subtract": 10, "ratio": 10, "newton_fract": 10, "pz": 10, "dp": 10, "effortlessli": 10, "lightgrai": 10, "15z": 10, "8z": 10, "60z": 10, "copper": 10, "tan": 10, "dz": 10, "sec": 10, "f_tan": 10, "d_tan": 10, "neat": 10, "wild": 10, "sum_": 10, "sin_sum": 10, "d_sin_sum": 10, "wacki": 10, "fun": 10, "terrain": [10, 14], "distinct": [10, 12], "yet": 10, "excit": 10, "gist_stern": 10, "sine": 10, "plasma_r": 10, "jet": 10, "got": 10, "accid": 10, "mistak": 10, "endless": 10, "suppli": 10, "creation": 10, "tinker": 10, "complic": [10, 11], "verifi": 10, "recap": 10, "hausdorff": 10, "treatment": 10, "floor": 11, "beam": 11, "reaction": 11, "resist": 11, "movement": 11, "cabl": 11, "unkown": 11, "comand": 11, "linalg": [11, 13], "norm": [11, 13], "mass": 11, "awai": 11, "f_x": 11, "f_y": 11, "f_z": 11, "r_x": 11, "r_y": 11, "r_z": 11, "centroid": 11, "forcea": 11, "forceb": 11, "quiver": 11, "d3": 11, "set_xlim": 11, "set_ylim": 11, "set_zlim": 11, "eman": 11, "meant": 11, "easili": 11, "forcec": 11, "counteract": 11, "prior": 11, "broken": 11, "nullifi": 11, "signifi": 11, "outli": 11, "rotat": 11, "experienc": 11, "coordin": 11, "stationari": 11, "pole": 11, "secur": 11, "ground": 11, "5n": 11, "perpendicularli": 11, "2m": 11, "wire": 11, "attach": 11, "tension": 11, "cord": 11, "3m": 11, "polebas": 11, "cordbas": 11, "cordconnect": 11, "poledirect": 11, "corddirect": 11, "cordunit": 11, "83205029": 11, "5547002": 11, "cordtens": 11, "forcecord": 11, "16025147": 11, "77350098": 11, "momentcord": 11, "32050294": 11, "meter": 11, "bd": 11, "BE": 11, "cf": 11, "unitbd": 11, "unitb": 11, "unitcf": 11, "radbd": 11, "radb": 11, "radcf": 11, "t_": 11, "r_": 11, "390": 11, "130": [11, 13], "780": 11, "1170": 11, "f_": 11, "m_": 11, "2t_": 11, "unknown": 11, "780n": 11, "390n": 11, "195n": 11, "1170n": 11, "130n": 11, "kinet": 11, "veloc": 11, "beer": 11, "johnston": 11, "mazurek": 11, "daniel": 12, "procida": 12, "di\u00e1taxi": 12, "cc": 12, "BY": 12, "sa": 12, "templat": 12, "craft": 12, "distinguish": [12, 13], "portrait": 12, "intend": 12, "school": 12, "bullet": 12, "overexplain": 12, "bog": 12, "obscur": 12, "knew": 12, "enthusiasm": 12, "imagin": 12, "audienc": 12, "willing": 12, "incomplet": 12, "english": [12, 15], "ordinarili": 12, "abstract": 12, "tipoff": 12, "bake": 12, "cake": 12, "endpoint": 12, "payoff": 12, "recip": 12, "ingredi": 12, "readi": [12, 13], "oven": 12, "expert": 12, "writer": 12, "learner": 12, "fall": 12, "grade": 12, "ye": 12, "assur": 12, "except": [12, 13], "invit": 12, "artist": 12, "toolset": 12, "aren": 12, "scan": 12, "somebodi": 12, "polish": [12, 15], "decor": 12, "likeli": 12, "engag": [12, 15], "towner": 12, "feel": 12, "pick": 12, "destin": 12, "sight": 12, "recur": 12, "crossrefer": 12, "strengthen": 12, "bad": 12, "traceback": 12, "comment": [12, 15], "tripl": 12, "backquot": 12, "won": 12, "angl": 12, "lt": 12, "gt": 12, "zerodivisionerror": 12, "bbe761e74a70": 12, "exercis": 12, "perhap": 12, "footnot": 12, "spoiler": 12, "ideal": 12, "bare": 12, "inspir": 12, "decomposit": 13, "singular": 13, "misc": 13, "img": [13, 14], "tmp": 13, "ipykernel_426": 13, "2202046956": 13, "deprecationwarn": 13, "deprec": 13, "v1": 13, "imread": [13, 14], "submodul": 13, "imageio": 13, "treat": 13, "crash": 13, "scikit": [13, 14], "inlin": 13, "forth": 13, "768": 13, "1024": [13, 14], "tupl": 13, "fact": 13, "rgb": 13, "768x1024": 13, "furthermor": 13, "ndim": 13, "3rd": 13, "syntax": 13, "138": 13, "153": 13, "119": 13, "131": 13, "139": 13, "89": 13, "110": 13, "118": 13, "134": 13, "146": 13, "115": 13, "117": 13, "133": 13, "107": 13, "120": 13, "85": 13, "112": 13, "img_arrai": 13, "scalar": [13, 14], "broadcast": 13, "img_as_float": 13, "inquir": 13, "minimum": [13, 14], "red_arrai": 13, "green_arrai": 13, "blue_arrai": 13, "diagon": 13, "largest": 13, "smallest": 13, "colorimetri": 13, "fairli": 13, "2126": 13, "7152": 13, "0722": 13, "matmul": 13, "img_grai": 13, "colormap": [13, 14], "vt": 13, "worri": [13, 15], "pretti": 13, "compat": [13, 14], "valueerror": 13, "econom": 13, "reconstruct": 13, "768x768": 13, "1024x1024": [13, 14], "fill_diagon": 13, "explan": 13, "43712046073728e": 13, "allclos": 13, "150th": 13, "intact": 13, "approx": 13, "wors": 13, "instinct": 13, "mxn": 13, "permut": 13, "fortun": 13, "reorder": 13, "img_array_transpos": 13, "reassembl": 13, "interchang": 13, "indistinguish": 13, "outsid": 13, "558487697898684e": 13, "0000000000000053": 13, "clip": 13, "excis": 13, "peform": 13, "hood": 13, "warn": 13, "messag": 13, "approx_img": 13, "unfamiliar": 13, "ellipsi": 13, "placehold": 13, "sharp": 13, "golub": 13, "van": 13, "loan": 13, "baltimor": 13, "hopkin": 13, "press": 13, "1985": 13, "matlab": 13, "idl": 13, "workflow": [14, 15], "pneumonia": 14, "particularli": 14, "radiologi": 14, "chestx": 14, "ray8": 14, "health": 14, "nih": 14, "png": 14, "patient": 14, "repositori": [14, 15, 17], "cvpr": 14, "gigabyt": 14, "quickstart": 14, "dicom": 14, "suit": 14, "ndimag": 14, "00000011_001": 14, "dir": 14, "xray_imag": 14, "v3": 14, "008": 14, "num_img": 14, "combined_xray_images_1": 14, "00000011_00": 14, "anim": 14, "mimwrit": 14, "gif_path": 14, "durat": 14, "biomed": 14, "emphas": 14, "rapid": 14, "smooth": 14, "gaussian_laplac": 14, "xray_image_laplace_gaussian": 14, "frequenc": 14, "gaussian_gradient_magnitud": 14, "x_ray_image_gaussian_gradi": 14, "spatial": 14, "horizont": 14, "vertic": 14, "3x3": 14, "kernel": 14, "pythagorean": 14, "theorem": 14, "hypot": 14, "rescal": 14, "output_channel": 14, "input_channel": 14, "min_valu": 14, "max_valu": 14, "x_sobel": 14, "y_sobel": 14, "xray_image_sobel": 14, "float16": 14, "float32": 14, "cmrmap": 14, "fourier": 14, "smoothen": 14, "prewitt": 14, "fourier_gaussian": 14, "x_prewitt": 14, "y_prewitt": 14, "xray_image_canni": 14, "prism": 14, "nipy_spectr": 14, "array_lik": 14, "median": 14, "172": 14, "52233219146729": 14, "256": 14, "histogram": 14, "pixel_intensity_distribut": 14, "bin": 14, "240": 14, "exceed": 14, "150": 14, "xray_image_mask_noisi": 14, "xray_image_mask_less_noisi": 14, "noisi": 14, "openi": 14, "databas": 14, "bandwidth": 14, "restrict": 14, "segment": 14, "pydicom": 14, "quest": 14, "datacamp": 14, "raspberri": 14, "maker": 14, "portal": 14, "slide": 14, "cs6670": 14, "cornel": 14, "carpentri": 14, "385": 14, "carnegi": 14, "mellon": 14, "welcom": 15, "propos": 15, "pleas": 15, "draft": 15, "commun": [15, 17], "effort": 15, "artwork": 15, "myst": 15, "nb": 15, "jupytext": 15, "commonmark": 15, "repo": 15, "restructuredtext": 15, "rst": 15, "barrier": 15, "ipynb": [15, 17], "plan": 15, "respond": 15, "quickli": 15, "fork": 15, "haven": 15, "branch": 15, "readm": 15, "edit": 15, "secret": 15, "properli": 15, "submiss": 15, "mask": [16, 17], "button": 17, "rocket": 17, "icon": 17, "corner": 17, "conduct": 17, "team": 17, "nep": 17}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"numpi": [0, 2, 4, 6, 11, 12, 16, 17], "applic": [0, 11], "articl": [1, 17], "help": [1, 17], "improv": [1, 17], "tutori": [1, 12, 15, 17], "determin": [2, 11], "moor": 2, "": [2, 4, 5, 9, 11, 12], "law": [2, 11], "real": [2, 12], "data": [2, 4, 6, 8, 9], "what": [2, 3, 4, 5, 8, 10, 11, 12], "you": [2, 3, 4, 5, 8, 9, 10, 11, 12], "ll": [2, 3, 4, 5, 8, 10, 11, 12], "do": [2, 3, 4, 5, 8, 9, 10, 11, 12], "skill": 2, "learn": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "need": [2, 3, 4, 5, 8, 10, 11, 12], "build": [2, 5, 6, 9], "an": [2, 9, 13, 14, 15], "exponenti": 2, "function": [2, 7], "load": [2, 4, 6, 9], "histor": 2, "manufactur": 2, "your": [2, 3, 4, 7, 10, 12, 15], "workspac": 2, "calcul": [2, 5], "growth": 2, "curv": 2, "transistor": 2, "share": [2, 4], "result": [2, 14], "zip": 2, "arrai": [2, 4, 8, 13, 14], "csv": [2, 4], "file": [2, 3, 4], "creat": [2, 4, 7, 10, 15], "own": [2, 10, 12, 15], "comma": 2, "separ": 2, "valu": [2, 5, 11], "wrap": [2, 3, 4, 11], "up": [2, 3, 4, 7, 11], "refer": [2, 8, 11], "pair": [3, 5], "jupyt": [3, 7, 15], "notebook": [3, 7, 12, 15], "myst": 3, "nb": 3, "background": 3, "ipynb": 3, "md": 3, "1": [3, 6, 9], "classic": 3, "jupytext": 3, "2": [3, 6, 9], "jupyterlab": 3, "3": [3, 6, 9], "command": 3, "line": 3, "save": 4, "savez": 4, "remov": 4, "them": 4, "back": 4, "reassign": 4, "npzfile": 4, "x": [4, 14], "y": 4, "success": 4, "anoth": [4, 11], "option": 4, "human": 4, "readabl": 4, "rearrang": 4, "singl": 4, "2d": 4, "us": [4, 8, 12, 14, 17], "savetxt": 4, "our": [4, 9, 15], "rememb": 4, "type": 4, "analyz": 5, "impact": 5, "lockdown": 5, "air": 5, "qualiti": 5, "delhi": 5, "india": 5, "The": [5, 12, 14], "problem": 5, "pollut": 5, "dataset": [5, 6, 9, 12], "index": 5, "move": 5, "averag": 5, "sub": 5, "indic": 5, "student": 5, "t": 5, "test": [5, 6], "aqi": 5, "sampl": 5, "defin": [5, 7], "hypothesi": 5, "statist": 5, "p": 5, "mean": 5, "In": [5, 8, 10, 12], "practic": [5, 8, 12], "further": [5, 8, 10, 12, 13], "read": [5, 8, 10, 12, 13], "deep": [6, 7, 9], "mnist": 6, "prerequisit": [6, 7, 9, 13, 14], "tabl": [6, 7, 9, 14], "content": [6, 7, 9, 13, 14, 15, 17], "preprocess": [6, 7, 9], "convert": 6, "imag": [6, 14], "float": 6, "point": 6, "format": 6, "label": 6, "through": 6, "categor": 6, "one": 6, "hot": 6, "encod": 6, "train": [6, 7, 9], "small": 6, "neural": [6, 7, 9], "network": [6, 7, 9], "from": [6, 7, 9], "scratch": 6, "block": 6, "model": [6, 9], "architectur": [6, 9], "summari": 6, "compos": 6, "begin": 6, "next": [6, 7, 9, 14], "step": [6, 7, 9, 14], "reinforc": 7, "pong": 7, "pixel": 7, "A": 7, "note": [7, 15], "rl": 7, "glossari": 7, "set": [7, 10], "frame": 7, "observ": 7, "polici": 7, "forward": [7, 9], "pass": 7, "updat": [7, 9], "backpropag": [7, 9], "discount": 7, "reward": 7, "expect": 7, "return": 7, "agent": 7, "number": 7, "episod": 7, "appendix": 7, "how": [7, 9, 12], "video": 7, "playback": 7, "mask": [8, 14], "ar": [8, 12], "when": [8, 12], "can": 8, "thei": 8, "see": 8, "covid": 8, "19": 8, "explor": 8, "miss": 8, "fit": 8, "sentiment": 9, "analysi": 9, "notabl": 9, "speech": 9, "last": 9, "decad": 9, "collect": 9, "imdb": 9, "review": 9, "transcript": 9, "introduct": 9, "long": 9, "short": 9, "term": 9, "memori": 9, "overview": 9, "propag": 9, "But": 9, "obtain": 9, "lstm": 9, "output": 9, "paramet": 9, "look": 9, "ethic": 9, "perspect": 9, "plot": [10, 12], "fractal": 10, "warmup": 10, "julia": 10, "mandelbrot": 10, "gener": 10, "newton": [10, 11], "conclus": 10, "On": [10, 12], "static": 11, "equilibrium": 11, "solv": 11, "second": [11, 14], "sum": 11, "moment": 11, "find": 11, "physic": 11, "properti": [11, 13], "exampl": 11, "addit": 11, "write": 12, "after": 12, "horizont": 12, "rule": 12, "start": 12, "head": 12, "titl": 12, "have": 12, "verb": 12, "lowercas": 12, "sai": 12, "why": [12, 15], "differ": 12, "avoid": 12, "asid": 12, "illustr": 12, "possibl": 12, "similar": 12, "make": 12, "googl": 12, "doc": 12, "style": 12, "guid": 12, "must": 12, "fulli": 12, "execut": [12, 17], "linear": 13, "algebra": 13, "n": 13, "dimension": 13, "learner": 13, "profil": 13, "object": 13, "shape": 13, "axi": 13, "oper": [13, 14], "approxim": 13, "appli": [13, 14], "all": 13, "color": 13, "product": 13, "final": 13, "word": 13, "rai": 14, "process": 14, "examin": 14, "imageio": 14, "combin": 14, "multidimension": 14, "demonstr": 14, "progress": 14, "edg": 14, "detect": 14, "laplacian": 14, "gaussian": 14, "gradient": 14, "sobel": 14, "canni": 14, "filter": 14, "laplac": 14, "deriv": 14, "magnitud": 14, "method": 14, "feldman": 14, "np": 14, "where": 14, "compar": 14, "contribut": 15, "ad": 15, "issu": 15, "check": 15, "out": 15, "suggest": 15, "templat": 15, "upload": 15, "featur": 16, "non": 17, "link": 17, "resourc": 17}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"NumPy Applications": [[0, "numpy-applications"]], "Articles": [[1, "articles"]], "Help improve the tutorials!": [[1, null], [17, null]], "Determining Moore\u2019s Law with real data in NumPy": [[2, "determining-moore-s-law-with-real-data-in-numpy"]], "What you\u2019ll do": [[2, "what-you-ll-do"], [3, "what-you-ll-do"], [4, "what-you-ll-do"], [5, "what-you-ll-do"], [8, "what-you-ll-do"], [10, "what-you-ll-do"], [12, "what-you-ll-do"]], "Skills you\u2019ll learn": [[2, "skills-you-ll-learn"]], "What you\u2019ll need": [[2, "what-you-ll-need"], [3, "what-you-ll-need"], [4, "what-you-ll-need"], [5, "what-you-ll-need"], [8, "what-you-ll-need"], [10, "what-you-ll-need"], [12, "what-you-ll-need"]], "Building Moore\u2019s law as an exponential function": [[2, "building-moore-s-law-as-an-exponential-function"]], "Loading historical manufacturing data to your workspace": [[2, "loading-historical-manufacturing-data-to-your-workspace"]], "Calculating the historical growth curve for transistors": [[2, "calculating-the-historical-growth-curve-for-transistors"]], "Sharing your results as zipped arrays and a csv": [[2, "sharing-your-results-as-zipped-arrays-and-a-csv"]], "Zipping the arrays into a file": [[2, "zipping-the-arrays-into-a-file"]], "Creating your own comma separated value file": [[2, "creating-your-own-comma-separated-value-file"]], "Wrapping up": [[2, "wrapping-up"], [3, "wrapping-up"], [4, "wrapping-up"], [11, "wrapping-up"]], "References": [[2, "references"], [11, "references"]], "Pairing Jupyter notebooks and MyST-NB": [[3, "pairing-jupyter-notebooks-and-myst-nb"]], "What you\u2019ll learn": [[3, "what-you-ll-learn"], [4, "what-you-ll-learn"], [5, "what-you-ll-learn"], [8, "what-you-ll-learn"], [10, "what-you-ll-learn"], [12, "what-you-ll-learn"]], "Background": [[3, "background"]], "Pair your notebook files .ipynb and .md": [[3, "pair-your-notebook-files-ipynb-and-md"]], "1. Classic Jupyter Jupytext pairing": [[3, null]], "2. JupyterLab Jupytext pairing": [[3, null]], "3. Command line Jupytext pairing": [[3, null]], "Saving and sharing your NumPy arrays": [[4, "saving-and-sharing-your-numpy-arrays"]], "Create your arrays": [[4, "create-your-arrays"]], "Save your arrays with NumPy\u2019s savez": [[4, "save-your-arrays-with-numpy-s-savez"]], "Remove the saved arrays and load them back with NumPy\u2019s load": [[4, "remove-the-saved-arrays-and-load-them-back-with-numpy-s-load"]], "Reassign the NpzFile arrays to x and y": [[4, "reassign-the-npzfile-arrays-to-x-and-y"]], "Success": [[4, "success"]], "Another option: saving to human-readable csv": [[4, "another-option-saving-to-human-readable-csv"]], "Rearrange the data into a single 2D array": [[4, "rearrange-the-data-into-a-single-2d-array"]], "Save the data to csv file using savetxt": [[4, "save-the-data-to-csv-file-using-savetxt"]], "Our arrays as a csv file": [[4, "our-arrays-as-a-csv-file"]], "Success, but remember your types": [[4, "success-but-remember-your-types"]], "Analyzing the impact of the lockdown on air quality in Delhi, India": [[5, "analyzing-the-impact-of-the-lockdown-on-air-quality-in-delhi-india"]], "The problem of air pollution": [[5, "the-problem-of-air-pollution"]], "Building the dataset": [[5, "building-the-dataset"]], "Calculating the Air Quality Index": [[5, "calculating-the-air-quality-index"]], "Moving averages": [[5, "moving-averages"]], "Sub-indices": [[5, "sub-indices"]], "Air quality indices": [[5, "air-quality-indices"]], "Paired Student\u2019s t-test on the AQIs": [[5, "paired-student-s-t-test-on-the-aqis"]], "Sampling": [[5, "sampling"]], "Defining the hypothesis": [[5, "defining-the-hypothesis"]], "Calculating the test statistics": [[5, "calculating-the-test-statistics"]], "What do the t and p values mean?": [[5, "what-do-the-t-and-p-values-mean"]], "In practice\u2026": [[5, "in-practice"], [12, "in-practice"]], "Further reading": [[5, "further-reading"], [8, "further-reading"], [10, "further-reading"], [12, "further-reading"], [13, "further-reading"]], "Deep learning on MNIST": [[6, "deep-learning-on-mnist"]], "Prerequisites": [[6, "prerequisites"], [7, "prerequisites"], [9, "prerequisites"], [13, "prerequisites"], [14, "prerequisites"]], "Table of contents": [[6, "table-of-contents"], [7, "table-of-contents"], [9, "table-of-contents"], [14, "table-of-contents"]], "1. Load the MNIST dataset": [[6, "load-the-mnist-dataset"]], "2. Preprocess the data": [[6, "preprocess-the-data"]], "Convert the image data to the floating-point format": [[6, "convert-the-image-data-to-the-floating-point-format"]], "Convert the labels to floating point through categorical/one-hot encoding": [[6, "convert-the-labels-to-floating-point-through-categorical-one-hot-encoding"]], "3. Build and train a small neural network from scratch": [[6, "build-and-train-a-small-neural-network-from-scratch"]], "Neural network building blocks with NumPy": [[6, "neural-network-building-blocks-with-numpy"]], "Model architecture and training summary": [[6, "model-architecture-and-training-summary"]], "Compose the model and begin training and testing it": [[6, "compose-the-model-and-begin-training-and-testing-it"]], "Next steps": [[6, "next-steps"], [7, "next-steps"], [14, "next-steps"]], "Deep reinforcement learning with Pong from pixels": [[7, "deep-reinforcement-learning-with-pong-from-pixels"]], "A note on RL and deep RL": [[7, "a-note-on-rl-and-deep-rl"]], "Deep RL glossary": [[7, "deep-rl-glossary"]], "Set up Pong": [[7, "set-up-pong"]], "Preprocess frames (the observation)": [[7, "preprocess-frames-the-observation"]], "Create the policy (the neural network) and the forward pass": [[7, "create-the-policy-the-neural-network-and-the-forward-pass"]], "Set up the update step (backpropagation)": [[7, "set-up-the-update-step-backpropagation"]], "Define the discounted rewards (expected return) function": [[7, "define-the-discounted-rewards-expected-return-function"]], "Train the agent for a number of episodes": [[7, "train-the-agent-for-a-number-of-episodes"]], "Appendix": [[7, "appendix"]], "Notes on RL and deep RL": [[7, "notes-on-rl-and-deep-rl"]], "How to set up video playback in your Jupyter notebook": [[7, "how-to-set-up-video-playback-in-your-jupyter-notebook"]], "Masked Arrays": [[8, "masked-arrays"]], "What are masked arrays?": [[8, "what-are-masked-arrays"]], "When can they be useful?": [[8, "when-can-they-be-useful"]], "Using masked arrays to see COVID-19 data": [[8, "using-masked-arrays-to-see-covid-19-data"]], "Exploring the data": [[8, "exploring-the-data"]], "Missing data": [[8, "missing-data"]], "Fitting Data": [[8, "fitting-data"]], "In practice": [[8, "in-practice"]], "Reference": [[8, "reference"]], "Sentiment Analysis on notable speeches of the last decade": [[9, "sentiment-analysis-on-notable-speeches-of-the-last-decade"]], "1. Data Collection": [[9, "data-collection"]], "Collecting the IMDb reviews dataset": [[9, "collecting-the-imdb-reviews-dataset"]], "Collecting and loading the speech transcripts": [[9, "collecting-and-loading-the-speech-transcripts"]], "2. Preprocess the datasets": [[9, "preprocess-the-datasets"]], "3. Build the Deep Learning Model\u00b6": [[9, "build-the-deep-learning-model"]], "Introduction to a Long Short Term Memory Network": [[9, "introduction-to-a-long-short-term-memory-network"]], "Overview of the Model Architecture": [[9, "overview-of-the-model-architecture"]], "Forward Propagation": [[9, "forward-propagation"]], "But how do you obtain sentiment from the LSTM\u2019s output?": [[9, "but-how-do-you-obtain-sentiment-from-the-lstm-s-output"]], "Backpropagation": [[9, "backpropagation"]], "Updating the Parameters": [[9, "updating-the-parameters"]], "Training the Network": [[9, "training-the-network"]], "Sentiment Analysis on the Speech Data": [[9, "sentiment-analysis-on-the-speech-data"]], "Looking at our Neural Network from an ethical perspective": [[9, "looking-at-our-neural-network-from-an-ethical-perspective"]], "Next Steps": [[9, "next-steps"]], "Plotting Fractals": [[10, "plotting-fractals"]], "Warmup": [[10, "warmup"]], "Julia set": [[10, "julia-set"]], "Mandelbrot set": [[10, "mandelbrot-set"]], "Generalizing the Julia set": [[10, "generalizing-the-julia-set"]], "Newton Fractals": [[10, "newton-fractals"]], "Creating your own fractals": [[10, "creating-your-own-fractals"]], "In conclusion": [[10, "in-conclusion"]], "On your own": [[10, "on-your-own"], [12, "on-your-own"]], "Determining Static Equilibrium in NumPy": [[11, "determining-static-equilibrium-in-numpy"]], "What you\u2019ll do:": [[11, "what-you-ll-do"]], "What you\u2019ll learn:": [[11, "what-you-ll-learn"]], "What you\u2019ll need:": [[11, "what-you-ll-need"]], "Solving equilibrium with Newton\u2019s second law": [[11, "solving-equilibrium-with-newton-s-second-law"]], "Solving Equilibrium as a sum of moments": [[11, "solving-equilibrium-as-a-sum-of-moments"]], "Finding values with physical properties": [[11, "finding-values-with-physical-properties"]], "Another Example": [[11, "another-example"]], "Additional Applications": [[11, "additional-applications"]], "Learn to write a NumPy tutorial": [[12, "learn-to-write-a-numpy-tutorial"]], "After a horizontal rule, start your own headings": [[12, "after-a-horizontal-rule-start-your-own-headings"]], "Titles have verbs": [[12, "titles-have-verbs"]], "Titles are lowercase": [[12, "titles-are-lowercase"]], "What to say in \u201cWhat you\u2019ll learn\u201d": [[12, "what-to-say-in-what-you-ll-learn"]], "Why are \u201cWhat you\u2019ll do\u201d and \u201cWhat you\u2019ll learn\u201d different?": [[12, "why-are-what-you-ll-do-and-what-you-ll-learn-different"]], "Avoid asides": [[12, "avoid-asides"]], "Use plots and illustrations": [[12, "use-plots-and-illustrations"]], "Use real datasets when possible": [[12, "use-real-datasets-when-possible"]], "Tutorials and how-to\u2019s \u2013 similar but different": [[12, "tutorials-and-how-to-s-similar-but-different"]], "Make use of the Google doc style guide": [[12, "make-use-of-the-google-doc-style-guide"]], "The notebook must be fully executable": [[12, "the-notebook-must-be-fully-executable"]], "Linear algebra on n-dimensional arrays": [[13, "linear-algebra-on-n-dimensional-arrays"]], "Learner profile": [[13, "learner-profile"]], "Learning Objectives": [[13, "learning-objectives"]], "Content": [[13, "content"], [17, "content"]], "Shape, axis and array properties": [[13, "shape-axis-and-array-properties"]], "Operations on an axis": [[13, "operations-on-an-axis"]], "Approximation": [[13, "approximation"]], "Applying to all colors": [[13, "applying-to-all-colors"]], "Products with n-dimensional arrays": [[13, "products-with-n-dimensional-arrays"]], "Final words": [[13, "final-words"]], "X-ray image processing": [[14, "x-ray-image-processing"]], "Examine an X-ray with imageio": [[14, "examine-an-x-ray-with-imageio"]], "Combine images into a multidimensional array to demonstrate progression": [[14, "combine-images-into-a-multidimensional-array-to-demonstrate-progression"]], "Edge detection using the Laplacian-Gaussian, Gaussian gradient, Sobel, and Canny filters": [[14, "edge-detection-using-the-laplacian-gaussian-gaussian-gradient-sobel-and-canny-filters"]], "The Laplace filter with Gaussian second derivatives": [[14, "the-laplace-filter-with-gaussian-second-derivatives"]], "The Gaussian gradient magnitude method": [[14, "the-gaussian-gradient-magnitude-method"]], "The Sobel-Feldman operator (the Sobel filter)": [[14, "the-sobel-feldman-operator-the-sobel-filter"]], "The Canny filter": [[14, "the-canny-filter"]], "Apply masks to X-rays with np.where()": [[14, "apply-masks-to-x-rays-with-np-where"]], "Compare the results": [[14, "compare-the-results"]], "Contributing": [[15, "contributing"]], "Why Jupyter Notebooks?": [[15, "why-jupyter-notebooks"]], "Note": [[15, "note"]], "Adding your own tutorials": [[15, "adding-your-own-tutorials"]], "Create an issue": [[15, "create-an-issue"]], "Check out our suggested template": [[15, "check-out-our-suggested-template"]], "Upload your content": [[15, "upload-your-content"]], "NumPy Features": [[16, "numpy-features"]], "NumPy tutorials": [[17, "numpy-tutorials"]], "Non-executable articles": [[17, "non-executable-articles"]], "Useful links and resources": [[17, "useful-links-and-resources"]]}, "indexentries": {}}) \ No newline at end of file +Search.setIndex({"docnames": ["applications", "articles", "content/mooreslaw-tutorial", "content/pairing", "content/save-load-arrays", "content/tutorial-air-quality-analysis", "content/tutorial-deep-learning-on-mnist", "content/tutorial-deep-reinforcement-learning-with-pong-from-pixels", "content/tutorial-ma", "content/tutorial-nlp-from-scratch", "content/tutorial-plotting-fractals", "content/tutorial-static_equilibrium", "content/tutorial-style-guide", "content/tutorial-svd", "content/tutorial-x-ray-image-processing", "contributing", "features", "index"], "filenames": ["applications.md", "articles.md", "content/mooreslaw-tutorial.md", "content/pairing.md", "content/save-load-arrays.md", "content/tutorial-air-quality-analysis.md", "content/tutorial-deep-learning-on-mnist.md", "content/tutorial-deep-reinforcement-learning-with-pong-from-pixels.md", "content/tutorial-ma.md", "content/tutorial-nlp-from-scratch.md", "content/tutorial-plotting-fractals.md", "content/tutorial-static_equilibrium.md", "content/tutorial-style-guide.md", "content/tutorial-svd.md", "content/tutorial-x-ray-image-processing.md", "contributing.md", "features.md", "index.md"], "titles": ["NumPy Applications", "Articles", "Determining Moore\u2019s Law with real data in NumPy", "Pairing Jupyter notebooks and MyST-NB", "Saving and sharing your NumPy arrays", "Analyzing the impact of the lockdown on air quality in Delhi, India", "Deep learning on MNIST", "Deep reinforcement learning with Pong from pixels", "Masked Arrays", "Sentiment Analysis on notable speeches of the last decade", "Plotting Fractals", "Determining Static Equilibrium in NumPy", "Learn to write a NumPy tutorial", "Linear algebra on n-dimensional arrays", "X-ray image processing", "Contributing", "NumPy Features", "NumPy tutorials"], "terms": {"A": [0, 1, 2, 3, 5, 8, 9, 10, 11, 12, 13, 16], "collect": [0, 1, 5, 7, 15, 16], "highlight": 0, "us": [0, 2, 3, 5, 6, 7, 9, 10, 11, 13, 15], "scienc": [0, 14], "engin": [0, 2, 7, 11], "data": [0, 1, 5, 7, 10, 12, 13, 14, 15, 17], "analysi": [0, 1, 2, 5, 8, 14, 17], "determin": [0, 6, 7, 8, 9, 17], "moor": [0, 17], "": [0, 1, 3, 6, 7, 8, 10, 13, 14, 17], "law": [0, 17], "real": [0, 5, 6, 7, 8, 9, 10, 13, 15, 17], "deep": [0, 1, 2, 14, 17], "learn": [0, 1, 14, 15, 17], "mnist": [0, 2, 9, 17], "x": [0, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 17], "rai": [0, 2, 17], "imag": [0, 2, 7, 9, 10, 12, 13, 15, 17], "process": [0, 2, 4, 5, 6, 7, 8, 9, 11, 17], "static": [0, 3, 15, 17], "equilibrium": [0, 17], "plot": [0, 2, 6, 7, 8, 9, 11, 13, 14, 17], "fractal": [0, 2, 17], "analyz": [0, 8, 11, 14, 17], "impact": [0, 6, 17], "lockdown": [0, 17], "air": [0, 2, 17], "qualiti": [0, 2, 6, 7, 17], "delhi": [0, 17], "india": [0, 17], "want": [1, 2, 4, 5, 7, 8, 10, 11, 12, 13, 14, 15, 17], "make": [1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 17], "valuabl": [1, 17], "contribut": [1, 17], "consid": [1, 2, 3, 4, 6, 8, 9, 10, 11, 12, 13, 14, 17], "work": [1, 3, 4, 6, 7, 8, 9, 10, 13, 14], "so": [1, 2, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15], "thei": [1, 2, 3, 6, 7, 9, 10, 11, 12, 13, 14], "becom": [1, 10], "fulli": [1, 9, 17], "execut": [1, 3, 6, 9, 13], "reproduc": [1, 6, 7, 9, 17], "reinforc": [1, 2, 9, 17], "pong": [1, 2, 17], "from": [1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 17], "pixel": [1, 2, 6, 13, 14, 17], "prerequisit": [1, 12], "tabl": [1, 2, 5], "content": [1, 3], "note": [1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 14, 17], "rl": 1, "glossari": 1, "set": [1, 2, 3, 5, 6, 8, 9, 13, 14, 17], "up": [1, 5, 6, 8, 9, 10, 14, 15], "preprocess": 1, "frame": [1, 14], "observ": [1, 2, 5, 8, 9, 11], "creat": [1, 3, 5, 6, 8, 9, 11, 14], "polici": [1, 9], "neural": 1, "network": 1, "forward": [1, 6], "pass": [1, 5, 6, 9, 10], "updat": [1, 3, 6, 15], "step": [1, 2, 4, 5, 12, 13, 15], "backpropag": [1, 6], "defin": [1, 2, 4, 6, 9, 10, 11, 13], "discount": 1, "reward": 1, "expect": [1, 2, 6, 9, 10, 13], "return": [1, 5, 6, 8, 9, 10, 12, 14], "function": [1, 4, 5, 6, 8, 9, 10, 11, 13, 16], "train": 1, "agent": 1, "number": [1, 2, 4, 6, 8, 9, 10, 11, 13, 14], "episod": [1, 9], "next": [1, 2, 4, 5, 8, 10, 11, 12], "appendix": 1, "how": [1, 2, 3, 5, 6, 8, 10, 11, 13, 14, 15], "video": 1, "playback": 1, "your": [1, 5, 6, 8, 9, 11, 13, 14, 16, 17], "jupyt": [1, 4, 6, 9, 14, 17], "notebook": [1, 6, 9, 14, 16, 17], "sentiment": [1, 17], "notabl": [1, 7, 10, 17], "speech": [1, 17], "last": [1, 2, 6, 7, 10, 12, 13, 17], "decad": [1, 2, 17], "1": [1, 2, 4, 5, 7, 8, 10, 11, 12, 13, 14], "imdb": 1, "review": [1, 3, 7, 15], "dataset": [1, 4, 8, 13, 14], "load": [1, 14], "transcript": 1, "2": [1, 2, 4, 5, 7, 8, 10, 11, 13, 14], "3": [1, 2, 4, 5, 7, 8, 10, 11, 13, 14], "build": [1, 3, 7, 13, 14, 17], "model": [1, 2, 7, 8, 11], "introduct": [1, 2, 5, 8], "long": [1, 6, 7, 10, 12], "short": [1, 12], "term": [1, 2, 5, 6, 7, 13], "memori": [1, 6, 7, 8, 13, 14], "overview": 1, "architectur": [1, 13], "propag": [1, 6, 7], "But": [1, 12], "do": [1, 7, 13, 14, 15], "you": [1, 6, 7, 13, 14, 15, 17], "obtain": [1, 5, 7, 13, 14], "lstm": 1, "output": [1, 2, 3, 4, 6, 7, 8, 10, 13, 15], "paramet": [1, 2, 5, 6, 7, 8, 10, 14], "look": [1, 2, 3, 5, 6, 8, 10, 11, 13], "our": [1, 2, 5, 8, 10, 11, 13], "an": [1, 4, 5, 6, 7, 8, 10, 11, 12], "ethic": [1, 6], "perspect": 1, "The": [2, 3, 4, 6, 7, 8, 9, 10, 11, 13, 15, 17], "report": [2, 6, 9], "per": 2, "given": [2, 5, 7, 9, 10, 11, 13], "chip": 2, "log": [2, 7, 9], "scale": [2, 6, 10], "y": [2, 5, 6, 7, 9, 10, 11, 13, 14], "axi": [2, 5, 6, 8, 9, 10, 14], "date": [2, 8], "linear": [2, 5, 6, 7, 9, 11, 16, 17], "blue": [2, 7, 10, 13], "point": [2, 4, 7, 8, 9, 11, 12, 13, 14], "ar": [2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 15], "count": [2, 6, 7, 8, 10], "red": [2, 7, 13], "line": [2, 4, 7, 8, 9, 13], "i": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17], "ordinari": 2, "least": [2, 9, 14], "squar": [2, 4, 6, 9, 10, 13], "predict": [2, 6, 9], "orang": [2, 8], "In": [2, 3, 4, 6, 7, 9, 11, 13, 14, 15], "1965": 2, "gordon": 2, "would": [2, 5, 6, 8, 9, 10, 11, 12, 13, 15], "doubl": [2, 6, 12], "everi": [2, 5, 7, 9, 13], "two": [2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15], "year": [2, 7], "come": [2, 7, 8, 9, 10, 11, 12, 15], "compar": [2, 3, 4, 5, 6, 13], "against": [2, 6, 7, 9], "actual": [2, 6, 7, 8, 9, 13], "53": [2, 5], "follow": [2, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17], "hi": [2, 7, 9], "best": [2, 7, 8, 9, 13, 15], "fit": [2, 6, 9], "constant": [2, 10], "describ": [2, 7, 8, 12], "semiconductor": 2, "perform": [2, 5, 6, 7, 9, 10, 11, 13], "regress": 2, "between": [2, 3, 4, 5, 6, 7, 9, 11, 13, 14], "npz": [2, 4], "assess": 2, "amaz": 2, "progress": 2, "have": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15], "made": [2, 3, 9, 10, 14], "five": [2, 6, 7, 11], "These": [2, 3, 6, 7, 9, 11, 13, 15], "packag": [2, 7, 8, 9, 12, 14], "matplotlib": [2, 6, 7, 8, 9, 10, 11, 13, 14], "import": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14], "command": [2, 4, 7, 8, 13], "pyplot": [2, 6, 7, 8, 9, 10, 11, 13, 14], "plt": [2, 6, 7, 8, 9, 10, 11, 13, 14], "np": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13], "sinc": [2, 5, 6, 7, 8, 9, 10, 13, 14], "thi": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17], "littl": [2, 10], "background": [2, 6, 7], "math": [2, 7, 9], "natur": [2, 9, 10], "loadtxt": [2, 4, 5], "text": [2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 15], "take": [2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "all": [2, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15], "element": [2, 5, 8, 10, 13], "exp": [2, 7, 9], "lambda": [2, 9, 10], "minim": [2, 6, 7], "definit": [2, 8, 10], "semilogi": 2, "onto": [2, 14], "figur": [2, 9, 10, 11, 12], "log_": 2, "10": [2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "ax": [2, 6, 9, 10, 13, 14], "slice": [2, 5, 13], "view": [2, 7, 9], "part": [2, 5, 7, 8, 9, 14, 17], "e": [2, 4, 5, 10, 11], "g": [2, 4, 7, 10, 11, 13], "first": [2, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15], "boolean": [2, 8, 10, 14], "index": [2, 6, 7, 8, 9, 10, 13], "match": [2, 10, 14], "condit": [2, 7, 8, 14], "oper": [2, 6, 8, 9, 10, 11], "block": [2, 4, 9], "combin": [2, 6, 7, 8, 10], "2d": [2, 7, 13, 14], "newaxi": [2, 4], "chang": [2, 3, 6, 8, 9, 10, 14], "1d": [2, 4, 6, 7, 13], "vector": [2, 4, 5, 6, 7, 8, 9, 11, 13], "row": [2, 4, 5, 8, 13], "column": [2, 4, 5, 8, 9, 13], "savez": 2, "savetxt": 2, "save": [2, 3, 6, 7, 8, 9, 10, 14, 16, 17], "format": [2, 3, 4, 5, 7, 9, 12, 14, 15], "respect": [2, 4, 6, 7, 9, 11], "empir": 2, "assum": [2, 5, 10, 11, 12, 14], "transistor_count": 2, "f": [2, 6, 9, 10, 11, 13, 14], "cdot": [2, 5, 10], "b": [2, 7, 9, 11, 13], "where": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13], "find": [2, 5, 6, 7, 8, 14], "specifi": [2, 4, 9], "rate": [2, 6, 7, 9], "ad": [2, 7, 8, 10, 17], "give": [2, 7, 10, 11, 12, 13, 14, 15], "initi": [2, 6, 7, 8, 9], "state": [2, 7, 9, 11], "form": [2, 5, 6, 7, 9, 10, 13, 15], "a_m": 2, "b_m": 2, "start": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14], "2250": 2, "1971": 2, "dfrac": [2, 5, 10], "2a_m": 2, "rightarrow": 2, "frac": [2, 5, 9, 10, 11], "0": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "3466": 2, "675": 2, "4": [2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14], "repres": [2, 8, 9, 10, 11, 13], "python": [2, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14], "moores_law": 2, "were": [2, 4, 7, 9, 10], "intel": 2, "4004": 2, "check": [2, 5, 6, 7, 8, 10, 13, 14, 17], "1973": 2, "ml_1971": 2, "ml_1973": 2, "print": [2, 3, 4, 5, 6, 7, 9, 11, 12, 14], "0f": 2, "2f": 2, "more": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15], "than": [2, 5, 7, 8, 9, 10, 12, 13, 14], "4500": 2, "x2": 2, "00": [2, 4, 5], "now": [2, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14], "base": [2, 6, 7, 8, 9, 11], "upon": [2, 9, 10, 11], "each": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 17], "transistor_data": 2, "befor": [2, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15], "its": [2, 6, 7, 8, 9, 10, 13, 14, 15], "good": [2, 6, 8, 9, 12], "idea": [2, 8, 10, 13, 15], "inspect": [2, 6], "structur": [2, 8, 9, 11], "Then": [2, 3, 5, 6, 7, 9, 11, 14], "locat": [2, 8, 9, 10, 11], "interest": [2, 7, 8, 10, 13, 14, 15, 17], "them": [2, 5, 6, 7, 8, 9, 10, 11, 14, 17], "variabl": [2, 4, 6, 7, 8, 9], "here": [2, 3, 4, 6, 8, 9, 10, 12, 13, 15], "out": [2, 5, 6, 7, 9, 10, 12, 13, 14], "processor": 2, "mo": 2, "design": [2, 3, 6, 7, 9, 10], "mosprocess": 2, "area": [2, 10], "bit": [2, 6, 7, 9, 10, 13, 14], "16": [2, 4, 5, 6, 7, 8, 10, 14], "pin": 2, "000": [2, 6, 7, 9, 14], "nm": 2, "12": [2, 3, 5, 6, 7, 8, 13], "mm\u00b2": 2, "head": [2, 4, 5], "8008": 2, "8": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14], "18": [2, 5, 6, 7, 8], "3500": 2, "1972": [2, 7], "14": [2, 5, 6, 7, 8], "nec": 2, "\u03bccom": 2, "42": [2, 5, 7], "2500": 2, "7": [2, 4, 6, 7, 8, 10, 14], "500": [2, 6, 7], "4040": 2, "3000": 2, "1974": 2, "motorola": 2, "6800": 2, "40": 2, "4100": 2, "6": [2, 3, 4, 5, 6, 7, 8, 10, 11, 14], "8080": 2, "6000": 2, "20": [2, 5, 6, 7, 8, 10, 14], "tm": 2, "1000": [2, 6, 9, 14], "28": [2, 5, 6, 8], "8000": 2, "texa": 2, "instrument": 2, "11": [2, 5, 6, 7, 8], "technologi": 2, "6502": 2, "4528": 2, "1975": 2, "21": [2, 5, 7, 8], "intersil": 2, "im6100": 2, "clone": [2, 17], "pdp": 2, "4000": 2, "don": [2, 5, 6, 7, 8, 9, 10, 12, 13, 15], "t": [2, 6, 7, 8, 9, 10, 11, 12, 13, 15], "That": [2, 8], "leav": 2, "second": [2, 7, 8, 13], "third": [2, 10], "extra": [2, 9], "option": [2, 7, 9, 12, 15], "below": [2, 5, 6, 7, 8, 9, 12, 13, 14, 15], "put": [2, 9, 10, 12], "desir": 2, "delimit": [2, 4, 5, 8, 12], "delimet": 2, "default": [2, 4, 6, 7, 9, 13], "behavior": [2, 9, 10], "usecol": [2, 5, 8], "skiprow": [2, 4, 5], "becaus": [2, 3, 6, 7, 9, 11, 12, 13, 14], "header": [2, 4, 8], "entir": [2, 10], "histori": 2, "semiconduct": 2, "name": [2, 3, 4, 6, 8, 9], "four": [2, 8, 9], "digit": [2, 6], "easier": [2, 3, 4, 10], "read": [2, 4, 6, 7, 9, 14], "manag": [2, 9], "assign": [2, 4, 6, 7, 12, 13], "correct": [2, 5, 7, 9], "grab": 2, "tran": 2, "cnt": 2, "5000": 2, "independ": 2, "depend": [2, 6, 7, 9, 13, 15], "transform": [2, 6, 9, 13], "y_i": 2, "equat": [2, 10, 11], "yi": 2, "differ": [2, 3, 5, 6, 7, 8, 9, 10, 13, 14], "min": [2, 9, 13, 14], "sum": [2, 6, 7, 8, 9], "_i": 2, "error": [2, 6, 7, 9, 10, 13], "can": [2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17], "succinctli": 2, "mathbf": 2, "z": [2, 9, 10, 11], "polynomi": [2, 8, 10], "By": [2, 5], "regressor": 2, "matrix": [2, 6, 7, 9, 11, 13], "statist": [2, 7, 14], "degre": [2, 5, 10], "therefor": [2, 6, 7, 9, 11], "we": [2, 3, 5, 6, 8, 9, 10, 13, 15], "deg": [2, 8, 10], "domain": 2, "case": [2, 5, 8, 9, 10, 11, 12, 13], "coeffici": 2, "unscal": 2, "unshift": 2, "recov": [2, 13], "convert": [2, 3, 7, 9, 11, 13], "method": [2, 5, 6, 7, 8, 9, 11, 13], "mapsto": [2, 10], "666": 2, "32640635": 2, "34163208": 2, "individu": [2, 6, 9, 10, 11, 13, 17], "did": [2, 4, 9, 10, 13], "final": [2, 6, 7, 8, 9, 10, 14], "formula": [2, 5, 9, 13, 14], "xfactor": 2, "2a": 2, "increas": [2, 6, 7, 9, 10], "slope": 2, "semilog": 2, "98": [2, 5], "factor": [2, 6, 7, 9], "three": [2, 3, 4, 8, 10, 11, 12, 13, 14], "get": [2, 5, 6, 7, 8, 9, 10, 12, 13], "same": [2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14], "dimens": [2, 6, 7, 9, 10, 11, 13, 14], "179": 2, "_": 2, "Be": [2, 12, 13], "fivethirtyeight": 2, "style": [2, 4, 7, 8], "sheet": 2, "replic": 2, "http": [2, 6, 7, 8, 9], "com": [2, 6, 9], "transistor_count_predict": 2, "transistor_moores_law": 2, "label": [2, 4, 7, 9, 10, 11, 17], "titl": [2, 6, 8, 9, 10, 14], "microprocessor": 2, "n": [2, 3, 5, 6, 7, 8, 9, 10, 14, 16, 17], "wa": [2, 5, 6, 7, 8, 9, 10, 11], "higher": [2, 4, 6, 7, 9, 10, 12], "xlabel": 2, "introduc": [2, 6, 7, 9], "legend": [2, 6, 8, 9, 11], "loc": [2, 9], "center": [2, 11], "left": [2, 5, 6, 7, 9, 11], "bbox_to_anchor": [2, 9], "5": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14], "ylabel": 2, "nper": 2, "scatter": [2, 10], "captur": 2, "2015": [2, 6, 7], "claim": 2, "could": [2, 7, 9, 10, 13], "keep": [2, 3, 8, 9, 10, 11, 12, 13], "anymor": 2, "show": [2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "averag": [2, 9, 14], "x1": 2, "2017": [2, 7, 14], "abov": [2, 5, 6, 7, 9, 10, 11, 12, 13, 17], "plug": [2, 10], "great": [2, 6, 7, 9], "wai": [2, 4, 6, 7, 9, 10, 12, 13, 17], "measur": [2, 5, 6, 7, 9, 11, 12, 14], "rang": [2, 5, 6, 7, 8, 9, 10, 13, 14], "alpha": [2, 5, 10], "transpar": [2, 9], "opaqu": 2, "appear": [2, 7, 10, 12, 17], "lie": 2, "green": [2, 7, 13], "pm": [2, 5], "transistor_count2017": 2, "max": [2, 5, 13, 14], "mean": [2, 3, 7, 8, 9, 10, 11, 13, 14], "linspac": [2, 10], "2016": [2, 7], "your_model2017": 2, "moore_model2017": 2, "ones": [2, 5, 7, 8, 9, 10, 11, 14], "ro": 2, "markers": 2, "mew": 2, "19200000000": 2, "250000000": 2, "7050000000": 2, "0x7f0b617c1c90": 2, "close": [2, 7, 8, 9, 10, 12, 13], "closer": 2, "maximum": [2, 5, 6, 7, 13, 14], "produc": [2, 6, 11, 14, 15], "even": [2, 5, 7, 9, 10, 12, 13, 15], "though": [2, 5, 13], "thought": [2, 9], "slow": [2, 7], "onc": [2, 3, 9, 10, 13], "again": [2, 4, 6, 7, 9, 10, 13, 15], "approach": [2, 7, 9], "2025": 2, "still": [2, 4, 7, 8, 13], "nearli": [2, 10], "much": [2, 3, 4, 5, 6, 7, 9, 10, 13, 15], "better": [2, 4, 6, 8, 9, 10, 11, 13], "extrem": [2, 9, 10], "satisfi": 2, "new": [2, 4, 6, 7, 8, 9, 12, 14, 15], "other": [2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "session": [2, 3], "origin": [2, 5, 6, 7, 8, 9, 10, 11, 13, 14], "thousand": 2, "back": [2, 5, 6, 7, 9, 10, 13], "dictionari": [2, 4, 6, 7, 9, 13], "user": [2, 9, 12, 13, 15], "add": [2, 6, 7, 9, 10, 11, 13, 15], "one": [2, 4, 5, 7, 9, 10, 11, 12, 13, 14], "understand": [2, 5, 8, 9, 10, 11, 13], "includ": [2, 3, 4, 7, 8, 9, 12, 13, 15], "nyear": 2, "regression_cst": 2, "33": [2, 5, 8], "34": [2, 5], "38": [2, 6], "35": [2, 5, 7, 8], "mooreslaw_regress": 2, "3264063536233": 2, "l": [2, 9, 11], "mooreslaw": 2, "tutori": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14], "md": [2, 13, 15, 17], "pair": [2, 10, 15], "_static": 2, "text_preprocess": 2, "py": [2, 3, 4, 7, 13], "ma": [2, 8], "nlp": [2, 9], "scratch": [2, 7, 9], "static_equilibrium": 2, "guid": [2, 3, 7, 8], "svd": [2, 13], "who_covid_19_sit_rep_time_seri": [2, 8], "x_y": [2, 4], "benefit": [2, 3, 6], "hundr": [2, 7], "shape": [2, 4, 5, 6, 7, 8, 9, 10, 14], "type": [2, 5, 6, 7, 8, 10, 13, 14], "precis": [2, 6], "float": [2, 4, 5, 7, 9, 13, 14], "prefer": [2, 5, 7, 13], "anoth": [2, 7, 10, 12, 14], "If": [2, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17], "limit": [2, 6, 7, 9], "like": [2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 15], "prepar": [2, 6, 9, 14], "export": 2, "whose": [2, 9], "contain": [2, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14], "inform": [2, 6, 7, 8, 9, 10, 12, 13, 15], "singl": [2, 5, 7, 8, 11, 12], "tabular": 2, "inher": [2, 9], "dimension": [2, 4, 6, 7, 9, 11, 14, 16, 17], "organ": [2, 8, 13], "through": [2, 7, 8, 9, 10, 11, 13, 14], "fourth": [2, 8], "append": [2, 4, 6, 7, 9], "togeth": [2, 4, 9, 10, 11], "larger": [2, 6, 10, 11], "arrang": [2, 4], "write": [2, 4, 5, 6, 9, 10, 11, 14, 15], "971000000000000000e": 2, "03": [2, 5], "250000000000000000e": 2, "130514785642591278e": 2, "249999999999916326e": 2, "972000000000000000e": 2, "500000000000000000e": [2, 4], "590908400344571419e": 2, "181980515339620069e": 2, "973000000000000000e": 2, "238793840142739100e": 2, "500000000000097316e": 2, "conclus": [2, 4, 9, 11], "ha": [2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15], "maintain": [2, 15], "consist": [2, 10, 11, 13, 15], "time": [2, 3, 5, 6, 7, 8, 9, 10, 11], "01": [2, 4, 5, 7, 9], "2019": [2, 5, 7], "revis": 2, "sai": [2, 10, 11, 13], "should": [2, 3, 4, 6, 7, 8, 9, 11, 12, 13, 14, 15], "hold": [2, 11], "until": [2, 7, 9], "enabl": [2, 7], "industri": [2, 14], "comput": [2, 5, 6, 7, 8, 9, 10, 11, 13, 14], "power": [2, 3, 6, 7, 9, 10, 15], "small": [2, 8, 9, 10, 13, 14], "insight": [2, 10], "incred": 2, "been": [2, 7, 8, 9, 13, 14], "over": [2, 5, 6, 7, 8, 9, 10, 14], "half": 2, "centuri": 2, "wikipedia": [2, 10], "articl": [2, 6, 7, 9], "access": [2, 4, 8, 10, 13, 15], "oct": 2, "2020": [2, 5, 7, 8], "04": [2, 5, 10], "19": [2, 5, 6, 7], "cram": 2, "compon": [2, 9, 11, 13, 14], "integr": 2, "circuit": 2, "electron": [2, 7], "magazin": 2, "retriev": [2, 9, 14], "april": 2, "courtland": 2, "rachel": [2, 6, 9], "man": 2, "ieee": 2, "spectrum": 2, "30": [2, 5, 14], "mar": 2, "sync": [3, 15], "json": 3, "markdown": [3, 12, 15], "drawback": 3, "numpi": [3, 5, 7, 8, 9, 10, 13, 14, 15], "store": [3, 5, 6, 7, 9], "disk": [3, 7], "veri": [3, 6, 7, 8, 9, 10, 13, 14, 15], "allow": [3, 9, 10, 15], "almost": 3, "ani": [3, 4, 5, 7, 8, 9, 11, 12], "input": [3, 5, 6, 7, 9, 10, 12, 13], "librari": [3, 4, 5, 6, 7, 11, 13], "hard": [3, 10], "see": [3, 4, 5, 6, 9, 10, 11, 13, 15, 17], "when": [3, 4, 6, 7, 9, 10, 11, 13, 14], "pull": [3, 15], "request": [3, 6, 15], "onli": [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "raw": [3, 14], "lightweight": 3, "markup": 3, "languag": [3, 7, 9, 15], "Its": 3, "kei": [3, 4, 5, 6, 9], "goal": [3, 6, 7, 10, 11, 17], "readabl": [3, 8], "code": [3, 6, 7, 8, 9, 10, 13, 17], "open": [3, 4, 6, 7, 9, 12, 15, 17], "must": [3, 11, 13], "common": [3, 7, 9, 13, 15], "mark": [3, 9], "cell": [3, 6, 7, 9, 12, 13, 14, 15], "render": [3, 7, 15], "support": [3, 5, 6, 7, 9, 13], "varieti": 3, "restructur": [3, 17], "direct": [3, 7, 9, 11, 12], "sphinx": 3, "built": [3, 6, 7, 9, 10, 13, 16], "websit": [3, 6, 9, 12, 15], "local": [3, 6, 7, 9, 14, 17], "binder": [3, 7, 15, 17], "version": [3, 5, 8, 10, 13, 17], "simpl": [3, 5, 6, 7, 8, 9, 10, 11, 14], "exampl": [3, 6, 7, 8, 9, 10, 13, 14], "thing": [3, 4, 9, 10, 12], "explain": [3, 7, 10, 12], "calcul": [3, 7, 8, 9, 10, 11, 14], "side": 3, "cell_typ": 3, "metadata": 3, "sourc": [3, 7, 9, 11, 15, 17], "execution_count": 3, "stdout": 3, "output_typ": 3, "stream": [3, 6], "kernelspec": 3, "display_nam": 3, "python3": 3, "language_info": 3, "codemirror_mod": 3, "ipython": [3, 4, 7, 12, 13], "file_extens": 3, "mimetyp": 3, "nbconvert_export": 3, "pygments_lex": 3, "ipython3": 3, "nbformat": 3, "nbformat_minor": 3, "text_represent": 3, "extens": [3, 9], "format_nam": 3, "format_vers": 3, "jupytext_vers": 3, "shorter": [3, 7], "doe": [3, 5, 6, 8, 9, 10, 11, 13], "submit": 3, "also": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17], "To": [3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 17], "instal": [3, 5, 7, 13], "pip": [3, 7], "conda": [3, 6, 7, 9, 14], "c": [3, 9, 10, 11, 13], "forg": 3, "lab": 3, "browser": 3, "launch": [3, 15, 17], "ask": [3, 9], "rebuild": [3, 13], "either": [3, 8, 9, 17], "With": [3, 5, 6, 7, 10], "interfac": [3, 7], "automat": [3, 6, 7, 8, 9], "right": [3, 6, 7, 8, 9, 10, 11, 12, 13, 17], "click": [3, 17], "choos": [3, 5, 6, 7, 8, 9, 10, 13], "saw": [3, 10], "both": [3, 4, 5, 6, 8, 9, 10, 11, 14, 15, 17], "editor": [3, 4], "vim": 3, "emac": 3, "continu": 3, "handl": [3, 6, 8, 9], "zip": [4, 6, 9, 10, 14], "comma": [4, 12], "workspac": 4, "compress": [4, 13], "serv": [4, 14], "most": [4, 5, 6, 7, 8, 9, 12, 13], "storag": 4, "binari": [4, 9, 10], "finish": [4, 6, 7, 9], "skill": [4, 12], "directori": [4, 7, 9, 15], "necessari": [4, 5, 7, 9, 10], "magic": 4, "arang": [4, 6, 8], "del": 4, "who": [4, 6, 7, 9, 12, 13, 15], "coupl": [4, 10], "let": [4, 5, 6, 7, 8, 9, 10, 11, 13, 14], "integ": [4, 6, 7, 8, 10, 13, 14], "9": [4, 5, 6, 7, 8, 9, 10, 14], "25": [4, 5, 8, 9], "36": 4, "49": [4, 5], "64": [4, 5, 9], "81": [4, 5], "x_axi": [4, 9], "y_axi": 4, "current": [4, 7, 8, 9, 10], "clear": [4, 8, 12, 15], "valu": [4, 6, 7, 8, 9, 10, 13, 14], "npy": [4, 9], "nativ": [4, 12], "cannot": [4, 8, 9], "standard": [4, 5, 6, 7, 8, 9, 12, 14], "spreadsheet": 4, "workspaec": 4, "info": [4, 7, 8], "modul": [4, 5, 6, 7, 8, 9, 12, 13, 14], "ho": 4, "kage": 4, "__init__": 4, "load_xi": 4, "ve": [4, 9, 14], "delet": [4, 8], "nice": 4, "scenario": [4, 9], "peopl": [4, 9, 13, 15], "program": [4, 9, 10], "mai": [4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 17], "separ": [4, 7, 8, 13], "result": [4, 5, 6, 9, 10, 11, 13], "compos": [4, 10], "ascii": [4, 7], "charact": [4, 8, 9], "filetyp": 4, "complex": [4, 7, 9, 10], "multipl": [4, 5, 6, 7, 9, 10, 13], "forc": [4, 7, 9, 11], "array_out": 4, "tell": [4, 5, 7, 12], "place": [4, 6, 9, 10, 12], "000000000000000000e": 4, "600000000000000000e": 4, "900000000000000000e": 4, "400000000000000000e": 4, "100000000000000000e": 4, "There": [4, 5, 7, 8, 9, 11], "featur": [4, 6, 9, 10, 13, 14, 17], "shoud": 4, "notic": [4, 7, 13, 15], "ignor": [4, 9], "re": [4, 7, 8, 9, 12, 14, 17], "skip": [4, 8, 9, 13], "number_of_header_lin": 4, "written": [4, 7, 10], "scientif": [4, 15], "notat": [4, 6, 10], "fmt": 4, "gener": [4, 5, 6, 7, 8, 9, 11, 12, 13], "preserv": [4, 8, 9], "int": [4, 6, 9], "y_squar": 4, "dtype": [4, 5, 6, 8, 10, 13, 14], "float64": [4, 6, 13, 14], "collabor": 4, "pickl": [4, 6], "futur": 4, "miss": [4, 5, 7], "genfromtext": 4, "about": [4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15], "io": [4, 7, 8, 9], "concept": [5, 6, 7, 9, 11], "interpret": [5, 14], "scipi": [5, 13, 14], "environ": [5, 6, 7, 9, 14, 15], "basic": [5, 6, 8, 9, 10, 13, 14], "popul": [5, 9], "deviat": [5, 7, 14], "etc": [5, 10], "promin": 5, "face": [5, 13], "immedi": 5, "effect": 5, "daili": [5, 9], "live": [5, 9, 10, 17], "covid": 5, "pandem": 5, "world": [5, 6, 7, 9, 13], "offer": [5, 7, 12], "rare": 5, "opportun": 5, "studi": 5, "human": [5, 7, 9], "activ": [5, 6, 7, 9], "lack": [5, 9], "thereof": 5, "worst": 5, "affect": [5, 6, 9, 14], "citi": 5, "dure": [5, 6, 7, 9, 12], "march": 5, "june": 5, "For": [5, 6, 7, 8, 9, 10, 13, 14, 15], "hour": [5, 7], "It": [5, 6, 7, 8, 9, 10, 11, 13, 14], "u": [5, 10, 11, 13, 14], "improv": [5, 7, 9], "due": [5, 7, 9, 11, 13], "intuit": [5, 10], "random": [5, 6, 7, 9], "default_rng": [5, 6, 7, 9], "stat": 5, "condens": 5, "hourli": 5, "level": [5, 6, 7, 9, 10, 12, 13], "variou": [5, 6, 7, 9, 10, 14], "station": 5, "across": [5, 9, 13], "avail": [5, 7, 8, 15], "31": [5, 8], "requir": [5, 7, 10, 11, 12], "few": [5, 6, 7, 8, 9], "particul": 5, "matter": 5, "nitrogen": 5, "dioxid": 5, "no2": 5, "ammonia": 5, "nh3": 5, "sulfur": 5, "so2": 5, "carbon": 5, "monoxid": 5, "co": [5, 9, 10], "ozon": 5, "o3": 5, "oxid": 5, "nox": 5, "nitric": 5, "NO": 5, "benzen": 5, "toluen": 5, "xylen": 5, "glimps": 5, "csv": [5, 8, 9], "datetim": 5, "pm2": 5, "pm10": 5, "05": [5, 14], "103": 5, "26": [5, 8], "305": 5, "46": 5, "94": [5, 13], "71": 5, "43": 5, "06": 5, "178": 5, "152": 5, "73": [5, 13], "13": [5, 6, 7, 8], "65": 5, "83": 5, "47": 5, "54": 5, "104": 5, "309": [5, 8], "74": 5, "66": 5, "08": 5, "27": [5, 6, 8], "02": 5, "69": 5, "106": [5, 11], "79": 5, "76": 5, "91": 5, "90": [5, 14], "314": 5, "48": [5, 6], "32": [5, 14], "45": 5, "59": [5, 6], "78": 5, "356": 5, "44": [5, 17], "22": [5, 6, 8], "41": [5, 10], "80": [5, 7], "372": 5, "23": [5, 8], "68": [5, 6], "92": 5, "15": [5, 6, 7, 8, 10, 13, 14], "39": 5, "62": [5, 6], "389": 5, "97": [5, 6, 13], "17": [5, 6, 7, 8], "56": [5, 10], "371": 5, "61": 5, "87": [5, 13], "84": 5, "29": [5, 8], "24": [5, 8], "37": 5, "07": 5, "77": 5, "361": 5, "88": 5, "63": 5, "86": 5, "96": 5, "377": 5, "purpos": [5, 6, 7, 11], "concern": [5, 9], "viz": 5, "particular": [5, 8, 9, 10, 13, 14], "pollutants_a": 5, "pollutants_b": 5, "slightli": [5, 10, 11, 13], "later": [5, 6, 8, 9], "pollutant_data": 5, "9528": 5, "might": [5, 8, 13, 15], "denot": [5, 10, 11], "nan": [5, 8], "quick": [5, 7, 10], "isfinit": 5, "true": [5, 6, 7, 8, 9, 13, 14], "successfulli": 5, "complet": [5, 6, 7, 10, 12, 13], "adopt": [5, 9], "central": 5, "control": [5, 6, 7, 9], "board": 5, "summar": [5, 6, 8, 9], "concentr": 5, "ip": 5, "ihi": 5, "ilo": 5, "bphi": 5, "bplo": 5, "cp": 5, "breakpoint": 5, "greater": [5, 9, 14], "equal": 5, "less": [5, 10, 11, 13, 14], "correspond": [5, 6, 8, 9, 10, 11, 13, 14], "help": [5, 6, 7, 9, 10, 11, 12, 13, 14, 15], "shown": [5, 6, 9, 12], "chart": 5, "arrai": [5, 6, 7, 9, 10, 11, 12, 16, 17], "51": 5, "101": 5, "201": 5, "301": 5, "401": 5, "501": 5, "121": [5, 13], "251": 5, "351": 5, "431": 5, "181": 5, "281": 5, "801": [5, 6], "1201": 5, "1801": 5, "381": 5, "1601": 5, "169": 5, "209": 5, "749": 5, "window": 5, "moving_mean": 5, "cumsum": 5, "achiev": 5, "sure": [5, 7, 8, 9, 12, 13, 15], "length": [5, 9, 11], "truncat": 5, "pollutants_b_8hr_avg": 5, "accord": [5, 7, 13], "pollutants_a_24hr_avg": 5, "ensur": [5, 6, 8, 9], "period": [5, 8], "def": [5, 6, 7, 9, 10], "ret": 5, "join": [5, 6, 8, 9, 14], "concaten": [5, 9], "wise": [5, 9], "subindic": 5, "relationship": [5, 6, 7], "compute_indic": 5, "fetch": [5, 9], "upper": [5, 9, 17], "lower": [5, 6, 9], "bound": [5, 10], "categori": [5, 9], "feed": [5, 6, 7], "pol": 5, "con": 5, "bp": 5, "inc": 5, "els": [5, 7, 11], "bl": 5, "bh": 5, "ih": 5, "il": 5, "elif": 5, "util": [5, 6, 7, 9, 11, 13], "simpli": [5, 14], "loop": [5, 6, 7, 9, 10, 13], "ourselv": [5, 8, 9, 10], "advantag": [5, 7, 10], "vcompute_indic": 5, "call": [5, 6, 7, 8, 9, 10, 12, 14], "stack": [5, 9, 13, 14], "sub_indic": 5, "which": [5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "aqi_arrai": 5, "31st": 5, "descript": 5, "decis": [5, 9, 10], "signific": [5, 7, 10], "after": [5, 6, 7, 8, 9, 10, 13, 14], "impos": 5, "tail": 5, "critic": [5, 7, 9], "datetime64": 5, "subset": [5, 6, 8, 10], "m8": 5, "h": [5, 7, 10, 13], "total": [5, 6, 7, 8, 9, 10], "commenc": [5, 9], "24th": [5, 8], "after_lock": 5, "24t00": 5, "before_lock": 5, "21t00": 5, "2376": 5, "approxim": [5, 7, 8, 10], "normal": [5, 6, 7, 9, 10, 11, 13, 14], "distribut": [5, 6, 7, 14], "size": [5, 6, 7, 9, 10, 13], "before_sampl": 5, "after_sampl": 5, "drawn": [5, 6, 9], "choic": [5, 6, 7, 9, 10, 12, 15], "rng": [5, 6, 7, 9], "replac": [5, 6, 8, 9, 12], "fals": [5, 6, 7, 8, 9, 14], "null": [5, 7], "altern": [5, 12, 13], "mathemat": [5, 9, 10], "h_": [5, 9], "mu_": 5, "evalu": [5, 6, 9], "sqrt": [5, 7, 9], "sigma": [5, 13, 14], "varianc": [5, 7], "t_test": 5, "diff": 5, "var": 5, "ddof": 5, "num": 5, "denom": 5, "len": [5, 6, 7, 8, 9], "divid": [5, 6, 10, 13], "t_valu": 5, "cdf": 5, "argument": [5, 8], "freedom": 5, "dof": 5, "p_valu": 5, "84285569186369": 5, "2266697972219608e": 5, "699": 5, "confid": 5, "95": [5, 13], "clearli": 5, "safe": 5, "reject": 5, "usual": [5, 6, 7, 12, 14, 15], "chosen": [5, 6, 9, 12], "accept": [5, 9, 15], "enough": [5, 10, 12], "evid": 5, "word": [5, 7, 9, 12], "fail": 5, "panda": [5, 9], "seri": 5, "provid": [5, 6, 7, 8, 9, 12, 14, 17], "ttest_rel": 5, "life": [5, 9, 15], "non": [5, 6, 7, 9, 13], "wilcoxon": 5, "host": [5, 14, 15], "characterist": [5, 9], "gentl": 5, "demonstr": [6, 7, 9, 11, 12], "feedforward": [6, 7], "hidden": [6, 7, 9], "layer": [6, 7, 9], "recogn": 6, "handwritten": 6, "artifici": [6, 7, 9], "resembl": 6, "multi": [6, 9, 14], "perceptron": [6, 9], "classifi": [6, 9], "60": [6, 10], "784": 6, "28x28": 6, "supervis": [6, 7, 9], "revers": [6, 7, 9], "mode": [6, 7], "differenti": [6, 7, 9], "score": 6, "adapt": [6, 7, 13], "andrew": [6, 7, 9], "trask": 6, "author": [6, 9], "permiss": 6, "reader": [6, 7, 9, 12, 14], "some": [6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "knowledg": [6, 7, 10, 14], "manipul": [6, 7, 9, 11, 13, 14], "algebra": [6, 7, 9, 11, 16, 17], "addit": [6, 7, 9, 12, 14], "familiar": [6, 7, 8, 9, 10, 12], "main": [6, 7, 12, 15, 17], "refresh": [6, 8, 9, 13, 14], "advis": 6, "paper": [6, 7, 14], "publish": [6, 7, 14], "yann": [6, 7], "lecun": [6, 7], "yoshua": [6, 7], "bengio": [6, 7], "geoffrei": [6, 7], "hinton": [6, 7], "regard": [6, 7], "pioneer": [6, 7], "field": [6, 7], "grokk": 6, "teach": [6, 12, 17], "urllib": 6, "url": [6, 9], "gzip": 6, "file": [6, 7, 8, 9, 12, 14, 15, 17], "decompress": 6, "well": [6, 7, 9, 11, 12, 14], "visual": [6, 7, 9, 10, 11, 14], "run": [6, 7, 8, 9, 12, 13, 14], "isol": [6, 7, 9, 11, 14], "virtualenv": [6, 7, 9, 14], "jupyterlab": [6, 7, 9, 14], "forget": [6, 9], "section": [6, 7, 9, 10, 12, 17], "download": [6, 8, 9, 14, 17], "split": [6, 9], "list": [6, 7, 9, 10, 12], "data_sourc": 6, "training_imag": 6, "idx3": 6, "ubyt": 6, "gz": 6, "test_imag": 6, "t10k": 6, "training_label": 6, "idx1": 6, "test_label": 6, "o": [6, 8, 9, 12, 14], "data_dir": 6, "_data": 6, "makedir": 6, "exist_ok": 6, "base_url": [6, 9], "github": [6, 7, 9, 15], "rossbar": 6, "mirror": 6, "blob": 6, "fname": 6, "fpath": 6, "path": [6, 8, 9, 14], "exist": [6, 11, 13, 15, 17], "resp": 6, "request_opt": 6, "raise_for_statu": 6, "succes": 6, "wb": 6, "fh": [6, 9], "chunk": 6, "iter_cont": 6, "chunk_siz": 6, "128": 6, "ndarrai": [6, 8, 13, 14], "need": [6, 7, 9, 13, 14], "reshap": [6, 7, 9], "multipli": [6, 7, 11, 13], "mnist_dataset": 6, "rb": [6, 9], "mnist_fil": 6, "frombuff": 6, "uint8": [6, 7, 13, 14], "offset": 6, "x_train": [6, 9], "x_test": [6, 9], "y_train": [6, 9], "y_test": [6, 9], "confirm": 6, "60000": 6, "10000": [6, 8], "And": [6, 7], "000th": 6, "999": [6, 9], "valid": [6, 8, 9, 13], "displai": [6, 7, 13, 14], "mnist_imag": 6, "59999": 6, "color": [6, 7, 8, 10, 11, 14], "map": [6, 7, 9, 10, 14], "grayscal": [6, 7, 13, 14], "black": 6, "imshow": [6, 7, 10, 13, 14], "cmap": [6, 7, 10, 13, 14], "grai": [6, 7, 13, 14], "num_exampl": 6, "seed": [6, 7], "147197952744": 6, "fig": [6, 9, 10, 11, 14], "subplot": [6, 10, 14], "sampl": [6, 7, 9, 14], "taken": [6, 9], "hand": [6, 10, 12], "arab": 6, "numer": [6, 7, 8, 9], "exact": 6, "randomli": [6, 7, 9], "quit": [6, 7, 10], "198": 6, "243": 6, "254": 6, "212": 6, "tensor": [6, 7], "multidimension": [6, 7], "convers": 6, "alreadi": [6, 9, 10], "challeng": [6, 7, 14], "procedur": [6, 10], "speed": [6, 7], "One": [6, 7, 8, 10], "practic": [6, 7, 9, 13], "nvidia": 6, "googl": [6, 7], "cloud": [6, 7, 10], "blog": [6, 7, 9, 17], "post": [6, 7, 9, 17], "255": [6, 13, 14], "interv": 6, "thu": [6, 12], "promot": 6, "train_label": 6, "reduc": [6, 7, 10], "training_sampl": 6, "test_sampl": 6, "success": [6, 7, 9], "01176471": 6, "07058824": 6, "49411765": 6, "53333333": 6, "68627451": 6, "10196078": 6, "65098039": 6, "96862745": 6, "49803922": 6, "emb": 6, "zero": [6, 7, 9, 10, 11, 12, 13], "As": [6, 8, 10, 11, 12, 13, 14], "posit": [6, 7, 9, 10], "similar": [6, 7, 9, 10, 11, 14], "one_hot_encod": 6, "one_hot_label": 6, "none": [6, 7, 9], "astyp": [6, 7, 14], "examin": [6, 8], "yourself": [6, 9, 12], "high": [6, 7, 9, 14, 17], "refer": [6, 7, 9, 12, 13, 14], "research": [6, 7, 9, 10, 14], "public": [6, 9, 14], "afterward": [6, 9], "construct": [6, 9], "identifi": [6, 8, 9, 14], "certain": [6, 7, 9, 10, 11, 14], "accuraci": [6, 9], "filter": [6, 8], "represent": [6, 9], "target": [6, 9], "gradient": [6, 7, 9], "deriv": [6, 9, 10], "loss": [6, 7, 9], "backward": [6, 7, 9], "middl": 6, "weight": [6, 7, 9], "dot": [6, 7, 9, 13], "simplic": [6, 7, 9, 14], "bia": [6, 9], "omit": 6, "adjust": [6, 7, 10], "fine": [6, 7, 8, 9, 12], "tune": [6, 7, 9], "optim": [6, 7, 9, 11], "descent": [6, 7, 9], "highest": 6, "lowest": 6, "capabl": [6, 9], "appli": [6, 7, 8, 9, 10, 11], "rectifi": [6, 7], "unit": [6, 7, 9, 11], "relu": [6, 7], "regular": [6, 8, 9, 17], "techniqu": [6, 7, 9, 14], "prevent": [6, 7, 9], "overfit": [6, 9], "dropout": 6, "dilut": 6, "truth": [6, 9], "final_layer_output": 6, "image_label": 6, "metric": 6, "abil": [6, 9], "hasn": 6, "seen": [6, 9, 11], "previous": [6, 7, 10], "layer_0": 6, "layer_1": 6, "previou": [6, 7, 9, 13], "weights_1": 6, "layer_2": 6, "ingest": 6, "repeat": [6, 7, 13], "weights_2": 6, "end": [6, 7, 9, 11, 12, 14], "signal": [6, 7], "technic": 6, "matric": [6, 11, 13, 14], "chain": [6, 9], "rule": [6, 7, 9, 13], "iter": [6, 9, 10, 12], "epoch": [6, 9], "cycl": [6, 9, 10], "reflect": [6, 9, 12], "maxim": [6, 7], "cover": [6, 7, 8, 15], "ll": [6, 7, 9, 13, 14, 15], "884736743": 6, "otherwis": [6, 7, 10, 11, 13, 14, 15], "relu2deriv": 6, "hyperparamet": [6, 9], "learning_r": [6, 7, 9], "magnitud": [6, 7, 11], "overcorrect": [6, 7], "neg": [6, 7, 8, 9, 13], "longer": [6, 7, 9], "computation": 6, "intens": [6, 13, 14], "task": [6, 7], "low": [6, 14], "meaning": 6, "hidden_s": 6, "pixels_per_imag": 6, "establish": [6, 9], "num_label": 6, "indic": [6, 7, 8, 9, 13], "occur": [6, 9], "005": 6, "100": [6, 7, 9, 10, 12, 14], "experi": [6, 7, 9, 10, 11, 13], "track": [6, 8, 10], "accur": [6, 9], "store_training_loss": 6, "store_training_accurate_pr": 6, "store_test_loss": 6, "store_test_accurate_pr": 6, "j": [6, 10, 13], "training_loss": [6, 9], "training_accurate_predict": 6, "accordingli": 6, "dropout_mask": 6, "increment": 6, "argmax": 6, "layer_2_delta": 6, "layer_1_delta": 6, "outer": [6, 7], "unlik": [6, 7, 9, 12], "modifi": [6, 8, 9], "batch": [6, 7, 9, 14], "manner": 6, "elimin": [6, 8, 13], "test_loss": 6, "test_accurate_predict": 6, "3f": 6, "898": 6, "397": 6, "680": 6, "582": 6, "656": 6, "633": 6, "607": 6, "641": 6, "592": 6, "569": 6, "679": 6, "556": [6, 8], "541": 6, "708": 6, "534": [6, 8], "732": 6, "526": 6, "729": 6, "515": 6, "715": 6, "739": 6, "495": 6, "748": 6, "487": 6, "753": 6, "483": 6, "769": 6, "486": 6, "747": 6, "473": 6, "776": 6, "752": 6, "460": 6, "788": 6, "462": 6, "762": 6, "465": 6, "767": 6, "443": 6, "456": 6, "775": 6, "448": 6, "795": 6, "455": 6, "772": 6, "438": 6, "787": 6, "453": 6, "778": 6, "446": [6, 8], "791": 6, "450": 6, "779": 6, "441": 6, "452": 6, "437": 6, "786": 6, "436": 6, "794": 6, "449": 6, "433": 6, "774": 6, "429": 6, "785": 6, "mani": [6, 7, 8, 9, 10, 12, 13, 14], "minut": [6, 9], "machin": [6, 7, 9, 12, 14], "wait": [6, 15], "reset": [6, 7], "runtim": 6, "instanc": [6, 7, 9], "epoch_rang": 6, "training_metr": 6, "asarrai": 6, "test_metr": 6, "nrow": [6, 14], "ncol": [6, 14], "figsiz": [6, 10, 14], "item": [6, 7, 9], "capit": [6, 12], "set_titl": [6, 10, 14], "set_xlabel": [6, 9, 10], "decreas": 6, "reach": [6, 7], "somewhat": 6, "plausibl": 6, "cross": [6, 7, 11, 12], "entropi": [6, 7], "possibl": [6, 7, 8, 13, 15], "solut": [6, 7, 8, 9], "discuss": [6, 7, 9], "just": [6, 8, 9, 10, 11, 12, 13, 14], "further": [6, 7, 9], "enhanc": [6, 7, 9], "mixtur": [6, 9], "mini": 6, "alter": [6, 9], "deeper": [6, 9], "softmax": [6, 7], "convolut": [6, 7, 14], "earli": [6, 9], "stop": [6, 7, 9, 10], "unbias": [6, 9], "valuat": 6, "faster": [6, 9, 10], "stabl": [6, 9, 11], "howev": [6, 7, 8, 9, 11, 13], "applic": [6, 7, 8, 9, 13, 15, 17], "special": [6, 7, 9, 13], "framework": [6, 7, 9, 12], "pytorch": [6, 7, 9], "jax": [6, 7, 9], "tensorflow": [6, 7, 9], "mxnet": [6, 7, 9], "api": [6, 7, 9, 10], "gpu": [6, 7, 9], "develop": [6, 7, 9, 12, 17], "think": [6, 8], "potenti": 6, "issu": [6, 7, 8, 9, 17], "avoid": [6, 8], "mitig": [6, 9], "those": [6, 8, 9, 11, 13, 14], "document": [6, 7, 8, 12, 13, 15, 17], "card": 6, "margaret": 6, "mitchel": 6, "et": [6, 7], "al": [6, 7], "datasheet": 6, "timnit": 6, "gebru": 6, "talk": [6, 9], "pratyusha": [6, 9], "kalluri": [6, 9], "resourc": [6, 9], "thoma": [6, 9], "radic": [6, 9], "ai": [6, 7, 9], "podcast": [6, 9], "credit": [6, 12], "hsjeong5": 6, "without": [6, 8, 9, 10, 11, 13], "extern": 6, "test": [7, 9, 13], "licens": [7, 12, 15], "underli": [7, 9], "gym": 7, "atari": 7, "footprint": 7, "implement": [7, 8, 9, 14], "plai": [7, 9, 10], "game": 7, "screen": [7, 14], "go": [7, 8, 9, 10, 12, 13, 15], "player": 7, "racket": 7, "tenni": 7, "move": [7, 9, 11, 13], "down": [7, 8, 9, 12], "tri": 7, "hit": 7, "ball": 7, "oppon": 7, "touch": 7, "goe": [7, 13], "past": [7, 9], "shot": 7, "win": [7, 12], "andrej": 7, "karpathi": 7, "bootcamp": 7, "uc": 7, "berkelei": 7, "mechan": [7, 9, 11], "theori": [7, 10, 13], "openai": 7, "while": [7, 9, 10, 12, 13], "simul": 7, "try": [7, 8, 9, 10, 13, 15], "literatur": 7, "link": [7, 10, 12], "conveni": [7, 9, 10, 14], "free": [7, 12], "colaboratori": 7, "tpu": 7, "acceler": [7, 11], "trial": 7, "interact": [7, 8, 9, 11, 15], "gain": [7, 10], "action": 7, "receiv": 7, "proce": [7, 13], "happen": [7, 9, 10, 13], "deem": 7, "present": [7, 9, 12, 14, 15], "what": [7, 9, 13, 15], "overal": 7, "detail": [7, 9, 10, 12, 13, 14, 15], "introductori": 7, "book": [7, 9], "richard": 7, "sutton": 7, "barton": 7, "concis": 7, "remain": [7, 10, 11], "finit": 7, "horizon": 7, "explor": [7, 10], "exploit": 7, "feedback": 7, "partial": 7, "instead": [7, 8, 9, 11, 13, 14, 15], "cumul": [7, 8], "known": [7, 10, 14], "estim": [7, 8, 14], "visit": [7, 9, 10], "probabl": [7, 9], "versu": 7, "often": [7, 9, 10], "99": 7, "sequenc": [7, 9], "sometim": [7, 8, 10], "trajectori": 7, "yield": [7, 10], "algorithm": [7, 9, 14], "belong": [7, 9, 14], "famili": [7, 9], "typic": [7, 12], "wide": 7, "ascent": 7, "object": [7, 11, 14], "monitor": 7, "wrapper": 7, "instanti": [7, 9], "env": 7, "v0": 7, "action_spac": 7, "get_action_mean": 7, "leftfir": 7, "rightfir": 7, "noop": 7, "fire": 7, "mp4": 7, "wrap": [7, 10], "around": [7, 8, 9, 10, 14], "kind": [7, 8, 9, 12, 13, 15], "rather": [7, 10, 12], "digest": 7, "fed": 7, "deepmind": 7, "dqn": 7, "210x160": 7, "encod": [7, 8], "box": [7, 14], "observation_spac": 7, "discret": 7, "fix": [7, 15], "class": [7, 9, 10, 17], "ed": 7, "core": 7, "random_fram": 7, "rgb_arrai": 7, "400": [7, 10], "80x80x1": 7, "ravel": [7, 10], "flatten": 7, "helper": [7, 9], "frame_preprocess": 7, "observation_fram": 7, "crop": 7, "195": [7, 11, 14], "downsampl": 7, "remov": [7, 8, 9, 13, 14], "144": [7, 13], "eras": 7, "109": 7, "earlier": [7, 9], "80x80": 7, "preprocessed_random_fram": 7, "product": [7, 11, 12], "send": 7, "12288743": 7, "d": [7, 9, 11, 15], "neuron": 7, "200": [7, 14], "empti": [7, 11], "xavier": [7, 9], "standard_norm": [7, 9], "w1": 7, "w2": [7, 9], "outlin": [7, 15], "policy_forward": 7, "sigmoid": [7, 9], "logit": 7, "p": [7, 10], "exponenti": [7, 9], "policy_backward": 7, "eph": 7, "epdlogp": 7, "dw2": [7, 9], "dh": 7, "dw1": 7, "epx": 7, "intermedi": [7, 9], "sever": [7, 9], "dlogp": 7, "dr": 7, "manual": 7, "full": [7, 13], "vstack": [7, 9], "stage": [7, 9], "toward": [7, 9, 14], "rmsprop": 7, "decai": [7, 9], "decay_r": 7, "zeros_lik": 7, "buffer": 7, "grad_buff": 7, "k": [7, 9, 13], "v": [7, 8, 9, 11, 13], "rmsprop_cach": 7, "discount_reward": 7, "gamma": 7, "r": [7, 8, 9, 10, 11, 13], "discounted_r": 7, "running_add": 7, "pseudocod": 7, "predefin": [7, 9], "sign": 7, "lead": [7, 10], "appropri": [7, 8, 10, 13, 15], "setup": [7, 13], "demo": 7, "hardwar": [7, 13], "cpu": 7, "beyond": [7, 10], "comparison": 7, "took": [7, 9, 10], "max_episod": 7, "dictat": 7, "At": [7, 12], "batch_siz": 7, "1e": [7, 9], "debug": 7, "prev_x": 7, "running_reward": 7, "reward_sum": 7, "episode_numb": 7, "motion": 7, "update_input": 7, "cur_x": 7, "tag": [7, 9], "output_scrol": 7, "cours": [7, 10, 12, 13], "aprob": 7, "uniform": [7, 9], "cach": [7, 9], "recal": [7, 13], "done": [7, 9, 10, 11, 12, 13], "epr": 7, "discounted_epr": 7, "std": 7, "grad": [7, 9], "henc": [7, 9], "throw": 7, "traini": 7, "shut": 7, "uncom": 7, "doesn": [7, 8, 9, 12], "span": 7, "reason": [7, 10, 13, 15], "simplifi": [7, 11], "everyth": 7, "autodiff": 7, "autograd": 7, "lot": [7, 10], "problem": [7, 8, 9, 11], "ineffici": 7, "account": [7, 8, 9, 14], "larg": [7, 9, 10], "amount": [7, 10, 14], "million": 7, "node": [7, 9], "being": [7, 9, 11, 12, 17], "assist": 7, "alwai": [7, 9, 13], "advanc": [7, 10], "sensit": [7, 9], "resolv": 7, "self": [7, 9, 17], "proxim": 7, "ppo": 7, "john": [7, 13], "schulman": 7, "month": 7, "dota": 7, "competit": [7, 14], "Of": [7, 10, 13], "smaller": [7, 10, 11], "fast": [7, 8], "matthew": 7, "botvinick": 7, "sam": 7, "ritter": 7, "jane": 7, "wang": 7, "zeb": 7, "kurth": 7, "nelson": 7, "charl": 7, "blundel": 7, "demi": 7, "hassabi": 7, "educ": [7, 9, 17], "materi": [7, 14, 15, 17], "spin": 7, "lectur": [7, 13, 14], "taught": 7, "practition": 7, "david": 7, "silver": 7, "ucl": 7, "recognit": 7, "translat": 7, "classif": [7, 9], "explicit": 7, "wrong": [7, 8], "reli": 7, "had": [7, 9, 13], "major": 7, "2013": 7, "alexnet": 7, "breakthrough": 7, "vision": [7, 9, 14], "volodymyr": 7, "mnih": 7, "colleagu": 7, "abl": [7, 8, 10, 12, 13], "classic": 7, "arcad": 7, "Their": 7, "q": 7, "replai": 7, "off": [7, 14], "alphago": 7, "mont": 7, "carlo": 7, "tree": [7, 17], "search": [7, 14], "2000": [7, 9], "influenc": [7, 9, 10], "ronald": 7, "william": 7, "1992": 7, "1986": 7, "1990": 7, "gerald": 7, "tesauro": 7, "tempor": 7, "td": 7, "gammon": 7, "1995": 7, "ibm": 7, "backgammon": 7, "ji": 7, "lin": 7, "robot": 7, "1993": 7, "solv": 7, "alphazero": 7, "master": 7, "chess": 7, "shogi": 7, "2018": 7, "alphastar": 7, "starcraft": 7, "actor": 7, "imit": 7, "distil": 7, "oriol": 7, "vinyal": 7, "battlefield": 7, "art": [7, 9], "dice": 7, "why": [7, 9, 17], "popular": [7, 9], "remot": [7, 9], "helicopt": 7, "pieter": 7, "abbeel": 7, "2006": 7, "virtual": 7, "safer": 7, "implic": 7, "neurosci": 7, "tool": [7, 11], "docker": 7, "freeglut3": 7, "dev": 7, "xvfb": 7, "x11": 7, "apt": 7, "txt": [7, 9], "configur": 7, "yml": [7, 15], "under": [7, 9, 11, 12, 13, 14], "channel": [7, 13, 14], "pyvirtualdisplai": 7, "anyth": [7, 12], "ffmpeg": 7, "pyopengl": 7, "ipythondisplai": 7, "html": [7, 9], "400x300": 7, "visibl": 7, "300": 7, "echo": 7, "star": 7, "sy": 7, "glob": 7, "base64": 7, "show_any_video": 7, "mp4video": 7, "mp4list": 7, "b64encod": 7, "alt": 7, "autoplai": 7, "height": 7, "400px": 7, "src": 7, "decod": 7, "gameplai": 7, "insid": [7, 8, 9, 10, 12], "instruct": [7, 10], "linux": 7, "maco": 7, "termin": 7, "offici": [7, 8, 9], "deal": [8, 9], "decid": [8, 9], "invalid": 8, "entri": [8, 11, 13, 15], "flag": 8, "unwant": 8, "somehow": 8, "nomask": 8, "associ": 8, "whether": [8, 9], "said": 8, "unmask": 8, "maskedarrai": 8, "datatyp": 8, "fill_valu": 8, "order": [8, 10, 11, 12, 13], "situat": 8, "copi": [8, 10, 17], "own": [8, 9, 13, 14, 17], "bug": 8, "possibli": 8, "compact": 8, "wish": [8, 9, 13], "exclud": 8, "Not": [8, 12], "specif": [8, 9, 10], "univers": [8, 9, 10, 13, 14], "ufunc": 8, "kaggl": [8, 14], "outbreak": 8, "begin": [8, 9, 10, 11, 12, 14], "late": 8, "getcwd": 8, "folder": [8, 9, 14], "filepath": 8, "filenam": 8, "mostli": 8, "seventh": 8, "summari": [8, 12], "extend": 8, "rightmost": 8, "lowermost": 8, "dai": 8, "record": [8, 9], "gather": 8, "genfromtxt": 8, "select": [8, 10, 13, 15, 17], "extract": [8, 9, 13, 14], "skip_head": 8, "portion": [8, 13], "str_": 8, "max_row": 8, "utf": 8, "sig": 8, "geograph": 8, "six": [8, 11], "nbcase": 8, "int_": 8, "string": [8, 9], "whole": [8, 9], "tick": 8, "transpos": [8, 13], "dash": 8, "selected_d": 8, "xtick": 8, "jan": 8, "feb": 8, "graph": [8, 11, 13], "strang": 8, "januari": 8, "februari": 8, "1st": 8, "know": [8, 9, 12, 13], "region": [8, 10, 14], "countri": [8, 9], "provinc": 8, "china": 8, "sens": [8, 13], "group": [8, 9], "totals_row": 8, "china_tot": 8, "247": 8, "288": 8, "817": 8, "11820": 8, "14410": 8, "17237": 8, "someth": [8, 13], "suppos": 8, "258": 8, "270": 8, "375": 8, "7153": 8, "9074": 8, "11177": 8, "520": 8, "604": 8, "683": 8, "422": 8, "493": 8, "566": 8, "attempt": [8, 9], "obvious": 8, "interfer": 8, "nbcases_ma": 8, "masked_valu": 8, "masked_arrai": 8, "mention": [8, 10], "attribut": 8, "mind": [8, 9, 13], "hubei": 8, "china_mask": 8, "278": 8, "574": 8, "835": 8, "11821": 8, "14411": 8, "17238": 8, "999999": 8, "directli": 8, "seem": [8, 9, 10], "agre": 8, "mainland": 8, "hong": 8, "kong": 8, "taiwan": 8, "macau": 8, "unspecifi": 8, "mayb": 8, "nonzero": 8, "correctli": 8, "308": 8, "440": 8, "11791": 8, "14380": 8, "17205": 8, "focus": [8, 9, 14], "mischaracter": 8, "evolut": 8, "curv": [8, 9], "interpol": 8, "int64": 8, "logic": 8, "negat": 8, "u7": 8, "cubic": 8, "line2d": 8, "0x7f1b1c4e7970": 8, "elabor": 8, "unavail": 8, "28th": 8, "ytick": 8, "17500": 8, "ncubic": 8, "substitut": 8, "far": [8, 14], "usemask": 8, "topic": [8, 9], "found": [8, 10, 13, 17], "hardmask": 8, "softmask": 8, "ensheng": 8, "dong": 8, "hongru": 8, "du": 8, "lauren": 8, "gardner": 8, "web": [8, 9], "dashboard": 8, "lancet": 8, "infecti": 8, "diseas": 8, "volum": 8, "page": [8, 9, 10, 12, 13], "533": 8, "issn": 8, "1473": 8, "3099": 8, "doi": [8, 9], "org": 8, "1016": 8, "s1473": 8, "30120": 8, "social": 9, "relev": [9, 11], "acquir": 9, "recurr": 9, "piec": 9, "50": [9, 10, 13], "movi": 9, "sequenti": 9, "todai": [9, 10], "everydai": 9, "discriminatori": 9, "fair": 9, "consider": [9, 10], "consum": 9, "throughout": [9, 10], "question": [9, 10, 12], "pipelin": 9, "calculu": 9, "recommend": 9, "d2l": 9, "datafram": 9, "pooch": 9, "pointer": 9, "tend": [9, 10], "histor": 9, "skew": 9, "imbalanc": 9, "protect": 9, "bias": 9, "outcom": 9, "absenc": 9, "anonym": 9, "trevisan": 9, "reilli": 9, "care": [9, 13], "along": [9, 12, 14], "person": 9, "routin": 9, "impair": 9, "medic": [9, 14], "emot": 9, "pain": 9, "chronic": 9, "ill": 9, "financi": 9, "incom": 9, "welfar": 9, "payment": 9, "discrimin": 9, "abus": 9, "prais": 9, "healthcar": [9, 14], "servic": 9, "suicid": 9, "especi": [9, 14], "compromis": 9, "safeti": 9, "fingerprint": 9, "voic": 9, "difficult": 9, "consent": 9, "platform": 9, "necess": 9, "pseudonym": 9, "curat": [9, 15], "activist": 9, "former": 9, "latter": 9, "maa": 9, "eas": 9, "zenodo": 9, "usag": 9, "commerci": 9, "aforement": 9, "pertain": [9, 16], "globe": 9, "climat": 9, "femin": 9, "lgbtqa": 9, "racism": 9, "newspap": 9, "nation": [9, 14], "archiv": 9, "cite": 9, "transcrib": 9, "speaker": 9, "demograph": 9, "focu": [9, 10, 14], "barnard": 9, "colleg": 9, "leymah": 9, "gbowe": 9, "un": 9, "youth": 9, "malala": 9, "yousafzai": 9, "guardian": 9, "remark": 9, "unga": 9, "racial": 9, "linda": 9, "greenfield": 9, "mission": 9, "dare": 9, "greta": 9, "thunberg": 9, "nbc": 9, "silenc": 9, "severn": 9, "suzuki": 9, "earth": 9, "charter": 9, "hope": 9, "harvei": 9, "milk": 9, "museum": 9, "boston": 9, "thrive": 9, "confer": [9, 14], "ellen": 9, "huffpost": 9, "dream": 9, "martin": 9, "luther": 9, "king": 9, "marshal": 9, "crucial": [9, 11], "dive": 9, "brief": 9, "undertak": 9, "clean": 9, "denois": 9, "unhelp": 9, "nois": [9, 14], "lowercas": 9, "bracket": [9, 12], "sentenc": [9, 12], "cluster": 9, "embed": 9, "space": [9, 11], "glove": 9, "unsupervis": 9, "stanford": 9, "global": 9, "corpu": 9, "edu": 9, "project": [9, 10, 11, 17], "billion": 9, "token": 9, "840": 9, "exhibit": 9, "stereotyp": 9, "gender": 9, "trace": 9, "occup": 9, "problemat": 9, "nearest": 9, "de": [9, 14], "cs224n": 9, "1184": 9, "6835575": 9, "pdf": 9, "pd": 9, "zipfil": 9, "textpreprocess": 9, "txt_to_df": 9, "str": 9, "imdb_train": 9, "in_fil": 9, "strip": 9, "df": [9, 10], "reset_index": 9, "drop": 9, "unzipp": 9, "to_extract": 9, "outdir": 9, "output_fil": 9, "cleantext": 9, "text_column": 9, "remove_stopword": 9, "remove_punc": 9, "hous": 9, "bool": [9, 14], "stopword": 9, "punctuat": 9, "symbol": 9, "gist": 9, "sebleier": 9, "554280": 9, "am": 9, "he": 9, "her": 9, "herself": 9, "him": 9, "himself": 9, "m": [9, 11, 13], "itself": [9, 10], "me": 9, "my": 9, "myself": 9, "nor": 9, "ought": 9, "she": 9, "theirs": 9, "themselv": [9, 10], "too": 9, "whom": 9, "yourselv": 9, "remove_tag": 9, "sub": 9, "data_without_stopword": 9, "clean_": 9, "cw": 9, "regex": 9, "to_numpi": 9, "sent_tokenis": 9, "w": [9, 11], "pop": 9, "sentences_clean": 9, "word_tokenis": 9, "loadglovemodel": 9, "emb_path": 9, "dict": 9, "glovemodel": 9, "splitlin": 9, "wordembed": 9, "text_to_para": 9, "para_len": 9, "paragraph": 9, "no_para": 9, "ceil": 9, "aggreg": 9, "divmod": 9, "agg_sent": 9, "para": 9, "sent": 9, "scientist": 9, "registri": 9, "system": [9, 10, 11, 12], "os_cach": 9, "hash": 9, "uncorrupt": 9, "6a38ea6ab5e1902cc03f6b9294ceea5e8ab985af991f35bcabd301a08ea5b3f0": 9, "imdb_test": 9, "7363ef08ad996bf4233b115008d6d7f9814b7cc0f4d13ab570b938701eadefeb": 9, "6b": 9, "50d": 9, "617afb2fe6cbd085c235baf7a465b96f4112bd7f7ccb2b2cbd649fed9cbcf2fb": 9, "custom": 9, "5281": 9, "4117827": 9, "textproc": 9, "train_df": 9, "test_df": 9, "occurr": 9, "ahead": [9, 13], "refrain": 9, "speech_data_path": 9, "speech_df": 9, "read_csv": 9, "x_pred": 9, "unzip": 9, "act": [9, 11], "300d": 9, "emb_matrix": 9, "plain": 9, "suitabl": 9, "multilay": 9, "mlp": 9, "straight": 9, "never": [9, 12], "share": [9, 12, 16, 17], "moreov": 9, "vari": [9, 10, 11], "rnn": 9, "regardless": [9, 13], "retain": [9, 13], "blow": 9, "connect": 9, "shortcom": 9, "vanish": 9, "address": 9, "gif": [9, 14], "rectangl": [9, 13], "respons": [9, 11], "rememb": [9, 15], "via": [9, 14], "c_": 9, "dedic": 9, "gate": 9, "initialise_param": 9, "hidden_dim": 9, "input_dim": 9, "wf": 9, "bf": 9, "wi": 9, "bi": [9, 10], "candid": 9, "wcm": 9, "bcm": 9, "wo": 9, "bo": 9, "b2": 9, "forgotten": 9, "similarli": [9, 11, 13], "stai": 9, "fmin": 9, "ab": [9, 10, 11], "old": 9, "attent": 9, "fp_forget_g": 9, "concat": 9, "ft": 9, "govern": 9, "tanh": 9, "regul": 9, "flow": 9, "fp_input_g": 9, "cmt": 9, "fp_output_g": 9, "next_c": 9, "ot": 9, "next_h": 9, "firstli": 9, "fp_fc_layer": 9, "last_h": 9, "z2": 9, "a2": 9, "forward_prop": 9, "x_vec": 9, "time_step": 9, "initialis": 9, "prev_h": 9, "prev_c": 9, "lstm_valu": 9, "fc_valu": 9, "happi": 9, "xt": 9, "lstm_cach": 9, "fc_cach": 9, "accumul": [9, 13], "straightforward": [9, 12, 14], "nonetheless": 9, "initialize_grad": 9, "param": 9, "behind": [9, 10], "suggest": [9, 12, 14], "christina": 9, "kouridi": 9, "bp_forget_g": 9, "dh_prev": 9, "dc_prev": 9, "dft": 9, "dl": 9, "da2": 9, "dz2": 9, "dwf": 9, "dbf": 9, "keepdim": 9, "dh_f": 9, "bp_input_g": 9, "dit": 9, "dcmt": 9, "dwi": 9, "dwcm": 9, "dbi": 9, "dbcm": 9, "dhi": 9, "dh_i": 9, "dhcm": 9, "dh_cm": 9, "bp_output_g": 9, "dwo": 9, "dbo": 9, "dho": 9, "dh_o": 9, "bp_fc_layer": 9, "db2": 9, "dh_last": 9, "backprop": 9, "relat": [9, 10, 11, 13], "prev": 9, "adam": 9, "stochast": 9, "recent": [9, 12], "broader": 9, "beta1": 9, "beta2": 9, "converg": [9, 10], "robust": 9, "initialise_mav": 9, "update_paramet": 9, "001": 9, "impli": 9, "poorli": 9, "behav": 9, "likelihood": 9, "loss_f": 9, "epsilon": 9, "divis": [9, 12], "squeez": 9, "testing_loss": 9, "train_j": 9, "y_pred": 9, "test_j": 9, "mean_train_cost": 9, "mean_test_cost": 9, "diagnos": 9, "add_subplot": [9, 11], "111": [9, 13], "set_ylabel": [9, 10], "break": [9, 11], "isfil": 9, "allow_pickl": 9, "enumer": [9, 10], "pred": 9, "para_token": 9, "sent_prob": 9, "threshold": [9, 10, 14], "pos_indic": 9, "neg_indic": 9, "pos_para": 9, "neg_para": 9, "no_pos_para": 9, "no_neg_para": 9, "percentag": 9, "pos_perc": 9, "bar": 9, "carri": 9, "priorit": 9, "clariti": 9, "neighbor": 9, "context": [9, 14], "led": 9, "encourag": [9, 10, 13], "tweak": [9, 10], "easi": [9, 12], "primarili": 9, "express": [9, 10, 12], "ironi": 9, "sarcasm": 9, "humor": 9, "media": 9, "abbrevi": 9, "neatli": 9, "convei": [9, 10, 11], "ag": 9, "grow": [9, 10], "induct": 9, "essenti": 9, "contextu": 9, "aris": [9, 10], "societ": 9, "creep": 9, "amplifi": [9, 12], "femal": 9, "male": 9, "awar": [9, 13], "demand": 9, "drill": 9, "ethnic": 9, "hopefulli": 9, "explod": [9, 10], "bidirect": 9, "nowadai": 9, "tackl": 9, "plagu": 9, "transfer": 9, "parallel": 9, "lengthi": 9, "ture": 9, "institut": [9, 14], "www": 9, "ac": [9, 11], "uk": 9, "intellig": 9, "shift": 9, "beauti": 10, "compel": 10, "oftentim": 10, "rel": [10, 14], "coastlin": 10, "seashel": 10, "fern": 10, "antenna": 10, "realli": 10, "began": 10, "truli": 10, "appreci": 10, "1970": 10, "graphic": [10, 12], "accident": 10, "discoveri": 10, "beno\u00eet": 10, "stumbl": 10, "mystifi": 10, "possess": 10, "ever": 10, "effici": 10, "variat": 10, "uniqu": 10, "make_axis_locat": 10, "mpl_toolkit": 10, "axes_grid1": 10, "make_axes_locat": 10, "elementari": 10, "expon": 10, "sin": 10, "shortli": 10, "behaviour": 10, "2j": 10, "4j": 10, "shrink": 10, "plane": 10, "mesh": 10, "meshgrid": 10, "1j": 10, "greatli": 10, "absolut": 10, "modulu": 10, "3d": [10, 11], "scatterplot": 10, "imaginari": 10, "set_zlabel": 10, "rough": [10, 15], "closest": 10, "0i": 10, "lose": 10, "impress": 10, "mundan": 10, "meet": [10, 17], "ey": 10, "exot": 10, "z_1": 10, "4i": 10, "z_2": 10, "z_3": 10, "1i": 10, "selected_valu": 10, "41j": 10, "num_it": 10, "colorbar": 10, "bottom": [10, 12], "surpris": 10, "hypothesi": 10, "prime": 10, "chaotic": 10, "jump": 10, "despit": [10, 11], "tini": 10, "diverg": 10, "although": [10, 13], "uncertain": 10, "surpass": 10, "distanc": [10, 11, 14], "doom": 10, "radiu": [10, 11], "quantifi": 10, "answer": [10, 12], "pose": 10, "talli": 10, "divergence_r": 10, "diverge_len": 10, "conv_mask": 10, "confus": 10, "glanc": 10, "quicker": 10, "suffici": 10, "unbeat": 10, "condition": 10, "resort": 10, "colour": 10, "im": 10, "extent": 10, "cax": 10, "append_ax": 10, "pad": 10, "stun": 10, "yellow": 10, "purpl": 10, "pattern": 10, "border": 10, "fascin": 10, "realiz": 10, "fill": [10, 12], "likewis": 10, "boundari": 10, "greenish": 10, "wider": 10, "reus": 10, "rest": 10, "small_mesh": 10, "plot_fract": 10, "rainbow": 10, "newli": 10, "kwarg": 10, "pi": [10, 14], "eleg": 10, "plasma": 10, "75": 10, "greens_r": 10, "famou": 10, "equival": 10, "infinit": 10, "renam": 10, "complex128": 10, "hot": [10, 14], "general_julia": 10, "cool": 10, "emerg": 10, "stick": 10, "rais": 10, "base_degre": 10, "tight_layout": 10, "needless": 10, "fiddl": 10, "densiti": 10, "involv": [10, 11], "subtract": 10, "ratio": 10, "newton_fract": 10, "pz": 10, "dp": 10, "effortlessli": 10, "lightgrai": 10, "15z": 10, "8z": 10, "60z": 10, "copper": 10, "tan": 10, "dz": 10, "sec": 10, "f_tan": 10, "d_tan": 10, "neat": 10, "wild": 10, "sum_": 10, "sin_sum": 10, "d_sin_sum": 10, "wacki": 10, "fun": 10, "terrain": [10, 14], "distinct": [10, 12], "yet": 10, "excit": 10, "gist_stern": 10, "sine": 10, "plasma_r": 10, "jet": 10, "got": 10, "accid": 10, "mistak": 10, "endless": 10, "suppli": 10, "creation": 10, "tinker": 10, "complic": [10, 11], "verifi": 10, "recap": 10, "hausdorff": 10, "treatment": 10, "floor": 11, "beam": 11, "reaction": 11, "resist": 11, "movement": 11, "cabl": 11, "unkown": 11, "comand": 11, "linalg": [11, 13], "norm": [11, 13], "mass": 11, "awai": 11, "f_x": 11, "f_y": 11, "f_z": 11, "r_x": 11, "r_y": 11, "r_z": 11, "centroid": 11, "forcea": 11, "forceb": 11, "quiver": 11, "d3": 11, "set_xlim": 11, "set_ylim": 11, "set_zlim": 11, "eman": 11, "meant": 11, "easili": 11, "forcec": 11, "counteract": 11, "prior": 11, "broken": 11, "nullifi": 11, "signifi": 11, "outli": 11, "rotat": 11, "experienc": 11, "coordin": 11, "stationari": 11, "pole": 11, "secur": 11, "ground": 11, "5n": 11, "perpendicularli": 11, "2m": 11, "wire": 11, "attach": 11, "tension": 11, "cord": 11, "3m": 11, "polebas": 11, "cordbas": 11, "cordconnect": 11, "poledirect": 11, "corddirect": 11, "cordunit": 11, "83205029": 11, "5547002": 11, "cordtens": 11, "forcecord": 11, "16025147": 11, "77350098": 11, "momentcord": 11, "32050294": 11, "meter": 11, "bd": 11, "BE": 11, "cf": 11, "unitbd": 11, "unitb": 11, "unitcf": 11, "radbd": 11, "radb": 11, "radcf": 11, "t_": 11, "r_": 11, "390": 11, "130": [11, 13], "780": 11, "1170": 11, "f_": 11, "m_": 11, "2t_": 11, "unknown": 11, "780n": 11, "390n": 11, "195n": 11, "1170n": 11, "130n": 11, "kinet": 11, "veloc": 11, "beer": 11, "johnston": 11, "mazurek": 11, "daniel": 12, "procida": 12, "di\u00e1taxi": 12, "cc": 12, "BY": 12, "sa": 12, "templat": 12, "craft": 12, "distinguish": [12, 13], "portrait": 12, "intend": 12, "school": 12, "bullet": 12, "overexplain": 12, "bog": 12, "obscur": 12, "knew": 12, "enthusiasm": 12, "imagin": 12, "audienc": 12, "willing": 12, "incomplet": 12, "english": [12, 15], "ordinarili": 12, "abstract": 12, "tipoff": 12, "bake": 12, "cake": 12, "endpoint": 12, "payoff": 12, "recip": 12, "ingredi": 12, "readi": [12, 13], "oven": 12, "expert": 12, "writer": 12, "learner": 12, "fall": 12, "grade": 12, "ye": 12, "assur": 12, "except": [12, 13], "invit": 12, "artist": 12, "toolset": 12, "aren": 12, "scan": 12, "somebodi": 12, "polish": [12, 15], "decor": 12, "likeli": 12, "engag": [12, 15], "towner": 12, "feel": 12, "pick": 12, "destin": 12, "sight": 12, "recur": 12, "crossrefer": 12, "strengthen": 12, "bad": 12, "traceback": 12, "comment": [12, 15], "tripl": 12, "backquot": 12, "won": 12, "angl": 12, "lt": 12, "gt": 12, "zerodivisionerror": 12, "bbe761e74a70": 12, "exercis": 12, "perhap": 12, "footnot": 12, "spoiler": 12, "ideal": 12, "bare": 12, "inspir": 12, "decomposit": 13, "singular": 13, "misc": 13, "img": [13, 14], "tmp": 13, "ipykernel_432": 13, "2202046956": 13, "deprecationwarn": 13, "deprec": 13, "v1": 13, "imread": [13, 14], "submodul": 13, "imageio": 13, "treat": 13, "crash": 13, "scikit": [13, 14], "inlin": 13, "forth": 13, "768": 13, "1024": [13, 14], "tupl": 13, "fact": 13, "rgb": 13, "768x1024": 13, "furthermor": 13, "ndim": 13, "3rd": 13, "syntax": 13, "138": 13, "153": 13, "119": 13, "131": 13, "139": 13, "89": 13, "110": 13, "118": 13, "134": 13, "146": 13, "115": 13, "117": 13, "133": 13, "107": 13, "120": 13, "85": 13, "112": 13, "img_arrai": 13, "scalar": [13, 14], "broadcast": 13, "img_as_float": 13, "inquir": 13, "minimum": [13, 14], "red_arrai": 13, "green_arrai": 13, "blue_arrai": 13, "diagon": 13, "largest": 13, "smallest": 13, "colorimetri": 13, "fairli": 13, "2126": 13, "7152": 13, "0722": 13, "matmul": 13, "img_grai": 13, "colormap": [13, 14], "vt": 13, "worri": [13, 15], "pretti": 13, "compat": [13, 14], "valueerror": 13, "econom": 13, "reconstruct": 13, "768x768": 13, "1024x1024": [13, 14], "fill_diagon": 13, "explan": 13, "43712046073728e": 13, "allclos": 13, "150th": 13, "intact": 13, "approx": 13, "wors": 13, "instinct": 13, "mxn": 13, "permut": 13, "fortun": 13, "reorder": 13, "img_array_transpos": 13, "reassembl": 13, "interchang": 13, "indistinguish": 13, "outsid": 13, "558487697898684e": 13, "0000000000000053": 13, "clip": 13, "excis": 13, "peform": 13, "hood": 13, "warn": 13, "messag": 13, "approx_img": 13, "unfamiliar": 13, "ellipsi": 13, "placehold": 13, "sharp": 13, "golub": 13, "van": 13, "loan": 13, "baltimor": 13, "hopkin": 13, "press": 13, "1985": 13, "matlab": 13, "idl": 13, "workflow": [14, 15], "pneumonia": 14, "particularli": 14, "radiologi": 14, "chestx": 14, "ray8": 14, "health": 14, "nih": 14, "png": 14, "patient": 14, "repositori": [14, 15, 17], "cvpr": 14, "gigabyt": 14, "quickstart": 14, "dicom": 14, "suit": 14, "ndimag": 14, "00000011_001": 14, "dir": 14, "xray_imag": 14, "v3": 14, "008": 14, "num_img": 14, "combined_xray_images_1": 14, "00000011_00": 14, "anim": 14, "mimwrit": 14, "gif_path": 14, "durat": 14, "biomed": 14, "emphas": 14, "rapid": 14, "smooth": 14, "gaussian_laplac": 14, "xray_image_laplace_gaussian": 14, "frequenc": 14, "gaussian_gradient_magnitud": 14, "x_ray_image_gaussian_gradi": 14, "spatial": 14, "horizont": 14, "vertic": 14, "3x3": 14, "kernel": 14, "pythagorean": 14, "theorem": 14, "hypot": 14, "rescal": 14, "output_channel": 14, "input_channel": 14, "min_valu": 14, "max_valu": 14, "x_sobel": 14, "y_sobel": 14, "xray_image_sobel": 14, "float16": 14, "float32": 14, "cmrmap": 14, "fourier": 14, "smoothen": 14, "prewitt": 14, "fourier_gaussian": 14, "x_prewitt": 14, "y_prewitt": 14, "xray_image_canni": 14, "prism": 14, "nipy_spectr": 14, "array_lik": 14, "median": 14, "172": 14, "52233219146729": 14, "256": 14, "histogram": 14, "pixel_intensity_distribut": 14, "bin": 14, "240": 14, "exceed": 14, "150": 14, "xray_image_mask_noisi": 14, "xray_image_mask_less_noisi": 14, "noisi": 14, "openi": 14, "databas": 14, "bandwidth": 14, "restrict": 14, "segment": 14, "pydicom": 14, "quest": 14, "datacamp": 14, "raspberri": 14, "maker": 14, "portal": 14, "slide": 14, "cs6670": 14, "cornel": 14, "carpentri": 14, "385": 14, "carnegi": 14, "mellon": 14, "welcom": 15, "propos": 15, "pleas": 15, "draft": 15, "commun": [15, 17], "effort": 15, "artwork": 15, "myst": 15, "nb": 15, "jupytext": 15, "commonmark": 15, "repo": 15, "restructuredtext": 15, "rst": 15, "barrier": 15, "ipynb": [15, 17], "plan": 15, "respond": 15, "quickli": 15, "fork": 15, "haven": 15, "branch": 15, "readm": 15, "edit": 15, "secret": 15, "properli": 15, "submiss": 15, "mask": [16, 17], "button": 17, "rocket": 17, "icon": 17, "corner": 17, "conduct": 17, "team": 17, "nep": 17}, "objects": {}, "objtypes": {}, "objnames": {}, "titleterms": {"numpi": [0, 2, 4, 6, 11, 12, 16, 17], "applic": [0, 11], "articl": [1, 17], "help": [1, 17], "improv": [1, 17], "tutori": [1, 12, 15, 17], "determin": [2, 11], "moor": 2, "": [2, 4, 5, 9, 11, 12], "law": [2, 11], "real": [2, 12], "data": [2, 4, 6, 8, 9], "what": [2, 3, 4, 5, 8, 10, 11, 12], "you": [2, 3, 4, 5, 8, 9, 10, 11, 12], "ll": [2, 3, 4, 5, 8, 10, 11, 12], "do": [2, 3, 4, 5, 8, 9, 10, 11, 12], "skill": 2, "learn": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "need": [2, 3, 4, 5, 8, 10, 11, 12], "build": [2, 5, 6, 9], "an": [2, 9, 13, 14, 15], "exponenti": 2, "function": [2, 7], "load": [2, 4, 6, 9], "histor": 2, "manufactur": 2, "your": [2, 3, 4, 7, 10, 12, 15], "workspac": 2, "calcul": [2, 5], "growth": 2, "curv": 2, "transistor": 2, "share": [2, 4], "result": [2, 14], "zip": 2, "arrai": [2, 4, 8, 13, 14], "csv": [2, 4], "file": [2, 3, 4], "creat": [2, 4, 7, 10, 15], "own": [2, 10, 12, 15], "comma": 2, "separ": 2, "valu": [2, 5, 11], "wrap": [2, 3, 4, 11], "up": [2, 3, 4, 7, 11], "refer": [2, 8, 11], "pair": [3, 5], "jupyt": [3, 7, 15], "notebook": [3, 7, 12, 15], "myst": 3, "nb": 3, "background": 3, "ipynb": 3, "md": 3, "1": [3, 6, 9], "classic": 3, "jupytext": 3, "2": [3, 6, 9], "jupyterlab": 3, "3": [3, 6, 9], "command": 3, "line": 3, "save": 4, "savez": 4, "remov": 4, "them": 4, "back": 4, "reassign": 4, "npzfile": 4, "x": [4, 14], "y": 4, "success": 4, "anoth": [4, 11], "option": 4, "human": 4, "readabl": 4, "rearrang": 4, "singl": 4, "2d": 4, "us": [4, 8, 12, 14, 17], "savetxt": 4, "our": [4, 9, 15], "rememb": 4, "type": 4, "analyz": 5, "impact": 5, "lockdown": 5, "air": 5, "qualiti": 5, "delhi": 5, "india": 5, "The": [5, 12, 14], "problem": 5, "pollut": 5, "dataset": [5, 6, 9, 12], "index": 5, "move": 5, "averag": 5, "sub": 5, "indic": 5, "student": 5, "t": 5, "test": [5, 6], "aqi": 5, "sampl": 5, "defin": [5, 7], "hypothesi": 5, "statist": 5, "p": 5, "mean": 5, "In": [5, 8, 10, 12], "practic": [5, 8, 12], "further": [5, 8, 10, 12, 13], "read": [5, 8, 10, 12, 13], "deep": [6, 7, 9], "mnist": 6, "prerequisit": [6, 7, 9, 13, 14], "tabl": [6, 7, 9, 14], "content": [6, 7, 9, 13, 14, 15, 17], "preprocess": [6, 7, 9], "convert": 6, "imag": [6, 14], "float": 6, "point": 6, "format": 6, "label": 6, "through": 6, "categor": 6, "one": 6, "hot": 6, "encod": 6, "train": [6, 7, 9], "small": 6, "neural": [6, 7, 9], "network": [6, 7, 9], "from": [6, 7, 9], "scratch": 6, "block": 6, "model": [6, 9], "architectur": [6, 9], "summari": 6, "compos": 6, "begin": 6, "next": [6, 7, 9, 14], "step": [6, 7, 9, 14], "reinforc": 7, "pong": 7, "pixel": 7, "A": 7, "note": [7, 15], "rl": 7, "glossari": 7, "set": [7, 10], "frame": 7, "observ": 7, "polici": 7, "forward": [7, 9], "pass": 7, "updat": [7, 9], "backpropag": [7, 9], "discount": 7, "reward": 7, "expect": 7, "return": 7, "agent": 7, "number": 7, "episod": 7, "appendix": 7, "how": [7, 9, 12], "video": 7, "playback": 7, "mask": [8, 14], "ar": [8, 12], "when": [8, 12], "can": 8, "thei": 8, "see": 8, "covid": 8, "19": 8, "explor": 8, "miss": 8, "fit": 8, "sentiment": 9, "analysi": 9, "notabl": 9, "speech": 9, "last": 9, "decad": 9, "collect": 9, "imdb": 9, "review": 9, "transcript": 9, "introduct": 9, "long": 9, "short": 9, "term": 9, "memori": 9, "overview": 9, "propag": 9, "But": 9, "obtain": 9, "lstm": 9, "output": 9, "paramet": 9, "look": 9, "ethic": 9, "perspect": 9, "plot": [10, 12], "fractal": 10, "warmup": 10, "julia": 10, "mandelbrot": 10, "gener": 10, "newton": [10, 11], "conclus": 10, "On": [10, 12], "static": 11, "equilibrium": 11, "solv": 11, "second": [11, 14], "sum": 11, "moment": 11, "find": 11, "physic": 11, "properti": [11, 13], "exampl": 11, "addit": 11, "write": 12, "after": 12, "horizont": 12, "rule": 12, "start": 12, "head": 12, "titl": 12, "have": 12, "verb": 12, "lowercas": 12, "sai": 12, "why": [12, 15], "differ": 12, "avoid": 12, "asid": 12, "illustr": 12, "possibl": 12, "similar": 12, "make": 12, "googl": 12, "doc": 12, "style": 12, "guid": 12, "must": 12, "fulli": 12, "execut": [12, 17], "linear": 13, "algebra": 13, "n": 13, "dimension": 13, "learner": 13, "profil": 13, "object": 13, "shape": 13, "axi": 13, "oper": [13, 14], "approxim": 13, "appli": [13, 14], "all": 13, "color": 13, "product": 13, "final": 13, "word": 13, "rai": 14, "process": 14, "examin": 14, "imageio": 14, "combin": 14, "multidimension": 14, "demonstr": 14, "progress": 14, "edg": 14, "detect": 14, "laplacian": 14, "gaussian": 14, "gradient": 14, "sobel": 14, "canni": 14, "filter": 14, "laplac": 14, "deriv": 14, "magnitud": 14, "method": 14, "feldman": 14, "np": 14, "where": 14, "compar": 14, "contribut": 15, "ad": 15, "issu": 15, "check": 15, "out": 15, "suggest": 15, "templat": 15, "upload": 15, "featur": 16, "non": 17, "link": 17, "resourc": 17}, "envversion": {"sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx": 60}, "alltitles": {"NumPy Applications": [[0, "numpy-applications"]], "Articles": [[1, "articles"]], "Help improve the tutorials!": [[1, null], [17, null]], "Determining Moore\u2019s Law with real data in NumPy": [[2, "determining-moore-s-law-with-real-data-in-numpy"]], "What you\u2019ll do": [[2, "what-you-ll-do"], [3, "what-you-ll-do"], [4, "what-you-ll-do"], [5, "what-you-ll-do"], [8, "what-you-ll-do"], [10, "what-you-ll-do"], [12, "what-you-ll-do"]], "Skills you\u2019ll learn": [[2, "skills-you-ll-learn"]], "What you\u2019ll need": [[2, "what-you-ll-need"], [3, "what-you-ll-need"], [4, "what-you-ll-need"], [5, "what-you-ll-need"], [8, "what-you-ll-need"], [10, "what-you-ll-need"], [12, "what-you-ll-need"]], "Building Moore\u2019s law as an exponential function": [[2, "building-moore-s-law-as-an-exponential-function"]], "Loading historical manufacturing data to your workspace": [[2, "loading-historical-manufacturing-data-to-your-workspace"]], "Calculating the historical growth curve for transistors": [[2, "calculating-the-historical-growth-curve-for-transistors"]], "Sharing your results as zipped arrays and a csv": [[2, "sharing-your-results-as-zipped-arrays-and-a-csv"]], "Zipping the arrays into a file": [[2, "zipping-the-arrays-into-a-file"]], "Creating your own comma separated value file": [[2, "creating-your-own-comma-separated-value-file"]], "Wrapping up": [[2, "wrapping-up"], [3, "wrapping-up"], [4, "wrapping-up"], [11, "wrapping-up"]], "References": [[2, "references"], [11, "references"]], "Pairing Jupyter notebooks and MyST-NB": [[3, "pairing-jupyter-notebooks-and-myst-nb"]], "What you\u2019ll learn": [[3, "what-you-ll-learn"], [4, "what-you-ll-learn"], [5, "what-you-ll-learn"], [8, "what-you-ll-learn"], [10, "what-you-ll-learn"], [12, "what-you-ll-learn"]], "Background": [[3, "background"]], "Pair your notebook files .ipynb and .md": [[3, "pair-your-notebook-files-ipynb-and-md"]], "1. Classic Jupyter Jupytext pairing": [[3, null]], "2. JupyterLab Jupytext pairing": [[3, null]], "3. Command line Jupytext pairing": [[3, null]], "Saving and sharing your NumPy arrays": [[4, "saving-and-sharing-your-numpy-arrays"]], "Create your arrays": [[4, "create-your-arrays"]], "Save your arrays with NumPy\u2019s savez": [[4, "save-your-arrays-with-numpy-s-savez"]], "Remove the saved arrays and load them back with NumPy\u2019s load": [[4, "remove-the-saved-arrays-and-load-them-back-with-numpy-s-load"]], "Reassign the NpzFile arrays to x and y": [[4, "reassign-the-npzfile-arrays-to-x-and-y"]], "Success": [[4, "success"]], "Another option: saving to human-readable csv": [[4, "another-option-saving-to-human-readable-csv"]], "Rearrange the data into a single 2D array": [[4, "rearrange-the-data-into-a-single-2d-array"]], "Save the data to csv file using savetxt": [[4, "save-the-data-to-csv-file-using-savetxt"]], "Our arrays as a csv file": [[4, "our-arrays-as-a-csv-file"]], "Success, but remember your types": [[4, "success-but-remember-your-types"]], "Analyzing the impact of the lockdown on air quality in Delhi, India": [[5, "analyzing-the-impact-of-the-lockdown-on-air-quality-in-delhi-india"]], "The problem of air pollution": [[5, "the-problem-of-air-pollution"]], "Building the dataset": [[5, "building-the-dataset"]], "Calculating the Air Quality Index": [[5, "calculating-the-air-quality-index"]], "Moving averages": [[5, "moving-averages"]], "Sub-indices": [[5, "sub-indices"]], "Air quality indices": [[5, "air-quality-indices"]], "Paired Student\u2019s t-test on the AQIs": [[5, "paired-student-s-t-test-on-the-aqis"]], "Sampling": [[5, "sampling"]], "Defining the hypothesis": [[5, "defining-the-hypothesis"]], "Calculating the test statistics": [[5, "calculating-the-test-statistics"]], "What do the t and p values mean?": [[5, "what-do-the-t-and-p-values-mean"]], "In practice\u2026": [[5, "in-practice"], [12, "in-practice"]], "Further reading": [[5, "further-reading"], [8, "further-reading"], [10, "further-reading"], [12, "further-reading"], [13, "further-reading"]], "Deep learning on MNIST": [[6, "deep-learning-on-mnist"]], "Prerequisites": [[6, "prerequisites"], [7, "prerequisites"], [9, "prerequisites"], [13, "prerequisites"], [14, "prerequisites"]], "Table of contents": [[6, "table-of-contents"], [7, "table-of-contents"], [9, "table-of-contents"], [14, "table-of-contents"]], "1. Load the MNIST dataset": [[6, "load-the-mnist-dataset"]], "2. Preprocess the data": [[6, "preprocess-the-data"]], "Convert the image data to the floating-point format": [[6, "convert-the-image-data-to-the-floating-point-format"]], "Convert the labels to floating point through categorical/one-hot encoding": [[6, "convert-the-labels-to-floating-point-through-categorical-one-hot-encoding"]], "3. Build and train a small neural network from scratch": [[6, "build-and-train-a-small-neural-network-from-scratch"]], "Neural network building blocks with NumPy": [[6, "neural-network-building-blocks-with-numpy"]], "Model architecture and training summary": [[6, "model-architecture-and-training-summary"]], "Compose the model and begin training and testing it": [[6, "compose-the-model-and-begin-training-and-testing-it"]], "Next steps": [[6, "next-steps"], [7, "next-steps"], [14, "next-steps"]], "Deep reinforcement learning with Pong from pixels": [[7, "deep-reinforcement-learning-with-pong-from-pixels"]], "A note on RL and deep RL": [[7, "a-note-on-rl-and-deep-rl"]], "Deep RL glossary": [[7, "deep-rl-glossary"]], "Set up Pong": [[7, "set-up-pong"]], "Preprocess frames (the observation)": [[7, "preprocess-frames-the-observation"]], "Create the policy (the neural network) and the forward pass": [[7, "create-the-policy-the-neural-network-and-the-forward-pass"]], "Set up the update step (backpropagation)": [[7, "set-up-the-update-step-backpropagation"]], "Define the discounted rewards (expected return) function": [[7, "define-the-discounted-rewards-expected-return-function"]], "Train the agent for a number of episodes": [[7, "train-the-agent-for-a-number-of-episodes"]], "Appendix": [[7, "appendix"]], "Notes on RL and deep RL": [[7, "notes-on-rl-and-deep-rl"]], "How to set up video playback in your Jupyter notebook": [[7, "how-to-set-up-video-playback-in-your-jupyter-notebook"]], "Masked Arrays": [[8, "masked-arrays"]], "What are masked arrays?": [[8, "what-are-masked-arrays"]], "When can they be useful?": [[8, "when-can-they-be-useful"]], "Using masked arrays to see COVID-19 data": [[8, "using-masked-arrays-to-see-covid-19-data"]], "Exploring the data": [[8, "exploring-the-data"]], "Missing data": [[8, "missing-data"]], "Fitting Data": [[8, "fitting-data"]], "In practice": [[8, "in-practice"]], "Reference": [[8, "reference"]], "Sentiment Analysis on notable speeches of the last decade": [[9, "sentiment-analysis-on-notable-speeches-of-the-last-decade"]], "1. Data Collection": [[9, "data-collection"]], "Collecting the IMDb reviews dataset": [[9, "collecting-the-imdb-reviews-dataset"]], "Collecting and loading the speech transcripts": [[9, "collecting-and-loading-the-speech-transcripts"]], "2. Preprocess the datasets": [[9, "preprocess-the-datasets"]], "3. Build the Deep Learning Model\u00b6": [[9, "build-the-deep-learning-model"]], "Introduction to a Long Short Term Memory Network": [[9, "introduction-to-a-long-short-term-memory-network"]], "Overview of the Model Architecture": [[9, "overview-of-the-model-architecture"]], "Forward Propagation": [[9, "forward-propagation"]], "But how do you obtain sentiment from the LSTM\u2019s output?": [[9, "but-how-do-you-obtain-sentiment-from-the-lstm-s-output"]], "Backpropagation": [[9, "backpropagation"]], "Updating the Parameters": [[9, "updating-the-parameters"]], "Training the Network": [[9, "training-the-network"]], "Sentiment Analysis on the Speech Data": [[9, "sentiment-analysis-on-the-speech-data"]], "Looking at our Neural Network from an ethical perspective": [[9, "looking-at-our-neural-network-from-an-ethical-perspective"]], "Next Steps": [[9, "next-steps"]], "Plotting Fractals": [[10, "plotting-fractals"]], "Warmup": [[10, "warmup"]], "Julia set": [[10, "julia-set"]], "Mandelbrot set": [[10, "mandelbrot-set"]], "Generalizing the Julia set": [[10, "generalizing-the-julia-set"]], "Newton Fractals": [[10, "newton-fractals"]], "Creating your own fractals": [[10, "creating-your-own-fractals"]], "In conclusion": [[10, "in-conclusion"]], "On your own": [[10, "on-your-own"], [12, "on-your-own"]], "Determining Static Equilibrium in NumPy": [[11, "determining-static-equilibrium-in-numpy"]], "What you\u2019ll do:": [[11, "what-you-ll-do"]], "What you\u2019ll learn:": [[11, "what-you-ll-learn"]], "What you\u2019ll need:": [[11, "what-you-ll-need"]], "Solving equilibrium with Newton\u2019s second law": [[11, "solving-equilibrium-with-newton-s-second-law"]], "Solving Equilibrium as a sum of moments": [[11, "solving-equilibrium-as-a-sum-of-moments"]], "Finding values with physical properties": [[11, "finding-values-with-physical-properties"]], "Another Example": [[11, "another-example"]], "Additional Applications": [[11, "additional-applications"]], "Learn to write a NumPy tutorial": [[12, "learn-to-write-a-numpy-tutorial"]], "After a horizontal rule, start your own headings": [[12, "after-a-horizontal-rule-start-your-own-headings"]], "Titles have verbs": [[12, "titles-have-verbs"]], "Titles are lowercase": [[12, "titles-are-lowercase"]], "What to say in \u201cWhat you\u2019ll learn\u201d": [[12, "what-to-say-in-what-you-ll-learn"]], "Why are \u201cWhat you\u2019ll do\u201d and \u201cWhat you\u2019ll learn\u201d different?": [[12, "why-are-what-you-ll-do-and-what-you-ll-learn-different"]], "Avoid asides": [[12, "avoid-asides"]], "Use plots and illustrations": [[12, "use-plots-and-illustrations"]], "Use real datasets when possible": [[12, "use-real-datasets-when-possible"]], "Tutorials and how-to\u2019s \u2013 similar but different": [[12, "tutorials-and-how-to-s-similar-but-different"]], "Make use of the Google doc style guide": [[12, "make-use-of-the-google-doc-style-guide"]], "The notebook must be fully executable": [[12, "the-notebook-must-be-fully-executable"]], "Linear algebra on n-dimensional arrays": [[13, "linear-algebra-on-n-dimensional-arrays"]], "Learner profile": [[13, "learner-profile"]], "Learning Objectives": [[13, "learning-objectives"]], "Content": [[13, "content"], [17, "content"]], "Shape, axis and array properties": [[13, "shape-axis-and-array-properties"]], "Operations on an axis": [[13, "operations-on-an-axis"]], "Approximation": [[13, "approximation"]], "Applying to all colors": [[13, "applying-to-all-colors"]], "Products with n-dimensional arrays": [[13, "products-with-n-dimensional-arrays"]], "Final words": [[13, "final-words"]], "X-ray image processing": [[14, "x-ray-image-processing"]], "Examine an X-ray with imageio": [[14, "examine-an-x-ray-with-imageio"]], "Combine images into a multidimensional array to demonstrate progression": [[14, "combine-images-into-a-multidimensional-array-to-demonstrate-progression"]], "Edge detection using the Laplacian-Gaussian, Gaussian gradient, Sobel, and Canny filters": [[14, "edge-detection-using-the-laplacian-gaussian-gaussian-gradient-sobel-and-canny-filters"]], "The Laplace filter with Gaussian second derivatives": [[14, "the-laplace-filter-with-gaussian-second-derivatives"]], "The Gaussian gradient magnitude method": [[14, "the-gaussian-gradient-magnitude-method"]], "The Sobel-Feldman operator (the Sobel filter)": [[14, "the-sobel-feldman-operator-the-sobel-filter"]], "The Canny filter": [[14, "the-canny-filter"]], "Apply masks to X-rays with np.where()": [[14, "apply-masks-to-x-rays-with-np-where"]], "Compare the results": [[14, "compare-the-results"]], "Contributing": [[15, "contributing"]], "Why Jupyter Notebooks?": [[15, "why-jupyter-notebooks"]], "Note": [[15, "note"]], "Adding your own tutorials": [[15, "adding-your-own-tutorials"]], "Create an issue": [[15, "create-an-issue"]], "Check out our suggested template": [[15, "check-out-our-suggested-template"]], "Upload your content": [[15, "upload-your-content"]], "NumPy Features": [[16, "numpy-features"]], "NumPy tutorials": [[17, "numpy-tutorials"]], "Non-executable articles": [[17, "non-executable-articles"]], "Useful links and resources": [[17, "useful-links-and-resources"]]}, "indexentries": {}}) \ No newline at end of file