├── .gitignore ├── .vscode └── settings.json ├── src ├── modules │ ├── status.js │ └── utils.js ├── index.html ├── style.css └── index.js ├── dist ├── main.js.LICENSE.txt ├── index.html ├── runtime.bundle.js ├── index.bundle.js └── main.js ├── .hintrc ├── .eslintrc.json ├── .stylelintrc.json ├── webpack.config.js ├── package.json ├── LICENSE ├── .github └── workflows │ └── linters.yml └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5501 3 | } -------------------------------------------------------------------------------- /src/modules/status.js: -------------------------------------------------------------------------------- 1 | function completed(task) { 2 | task.completed = true; 3 | const test = task.completed; 4 | return test; 5 | } 6 | 7 | function unCompleted(task) { 8 | task.completed = false; 9 | const test = task.completed; 10 | return test; 11 | } 12 | 13 | export { completed, unCompleted }; -------------------------------------------------------------------------------- /dist/main.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Lodash 4 | * Copyright OpenJS Foundation and other contributors 5 | * Released under MIT license 6 | * Based on Underscore.js 1.8.3 7 | * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 8 | */ 9 | -------------------------------------------------------------------------------- /.hintrc: -------------------------------------------------------------------------------- 1 | { 2 | "connector": { 3 | "name": "local", 4 | "options": { 5 | "pattern": ["**", "!.git/**", "!node_modules/**"] 6 | } 7 | }, 8 | "extends": ["development"], 9 | "formatters": ["stylish"], 10 | "hints": [ 11 | "button-type", 12 | "disown-opener", 13 | "html-checker", 14 | "meta-charset-utf-8", 15 | "meta-viewport", 16 | "no-inline-styles:error" 17 | ] 18 | } -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "es6": true, 5 | "jest": true 6 | }, 7 | "parser": "babel-eslint", 8 | "parserOptions": { 9 | "ecmaVersion": 2018, 10 | "sourceType": "module" 11 | }, 12 | "extends": ["airbnb-base"], 13 | "rules": { 14 | "no-shadow": "off", 15 | "no-param-reassign": "off", 16 | "eol-last": "off", 17 | "import/extensions": [ 1, { 18 | "js": "always", "json": "always" 19 | }] 20 | }, 21 | "ignorePatterns": [ 22 | "dist/", 23 | "build/" 24 | ] 25 | } -------------------------------------------------------------------------------- /.stylelintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["stylelint-config-standard"], 3 | "plugins": ["stylelint-scss", "stylelint-csstree-validator"], 4 | "rules": { 5 | "at-rule-no-unknown": [ 6 | true, 7 | { 8 | "ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"] 9 | } 10 | ], 11 | "scss/at-rule-no-unknown": [ 12 | true, 13 | { 14 | "ignoreAtRules": ["tailwind", "apply", "variants", "responsive", "screen"] 15 | } 16 | ], 17 | "csstree/validator": true 18 | }, 19 | "ignoreFiles": ["build/**", "dist/**", "**/reset*.css", "**/bootstrap*.css", "**/*.js", "**/*.jsx"] 20 | } -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const HtmlWebpackPlugin = require('html-webpack-plugin'); 3 | 4 | module.exports = { 5 | entry: { 6 | index: './src/index.js', 7 | }, 8 | mode: 'development', 9 | devServer: { 10 | static: './dist', 11 | }, 12 | plugins: [ 13 | new HtmlWebpackPlugin({ 14 | template: './src/index.html', 15 | }), 16 | ], 17 | output: { 18 | filename: '[name].bundle.js', 19 | path: path.resolve(__dirname, 'dist'), 20 | }, 21 | module: { 22 | rules: [ 23 | { 24 | test: /\.css$/i, 25 | use: ['style-loader', 'css-loader'], 26 | }, 27 | ], 28 | }, 29 | optimization: { 30 | runtimeChunk: 'single', 31 | }, 32 | }; -------------------------------------------------------------------------------- /src/modules/utils.js: -------------------------------------------------------------------------------- 1 | const save = (data) => { 2 | localStorage.setItem('todo', JSON.stringify(data)); 3 | }; 4 | 5 | const retrieve = () => JSON.parse(localStorage.getItem('todo')); 6 | // Adding specific task 7 | function updateList(todos) { 8 | return todos.map((value, index) => { 9 | value.id = index; 10 | return value; 11 | }); 12 | } 13 | // Adding the todos 14 | function add(description, completed, id) { 15 | const storeData = retrieve(); 16 | storeData.push({ description, completed, id }); 17 | const sortedData = updateList(storeData); 18 | save(sortedData); 19 | } 20 | 21 | // Removing Items from the Array 22 | function remove(id) { 23 | const storeData = retrieve(); 24 | const remaining = storeData.filter((todo) => todo.id !== id); 25 | const sortedData = updateList(remaining); 26 | save(sortedData); 27 | } 28 | 29 | export default { 30 | add, 31 | remove, 32 | save, 33 | retrieve, 34 | updateList, 35 | }; 36 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "to-do-lists", 3 | "version": "1.0.0", 4 | "description": "", 5 | "private": "true", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "start": "webpack serve --open", 9 | "build": "webpack" 10 | }, 11 | "keywords": [], 12 | "author": "", 13 | "license": "ISC", 14 | "devDependencies": { 15 | "babel-eslint": "^10.1.0", 16 | "css-loader": "^6.7.3", 17 | "eslint": "^7.32.0", 18 | "eslint-config-airbnb-base": "^14.2.1", 19 | "eslint-plugin-import": "^2.27.5", 20 | "hint": "^7.1.8", 21 | "html-webpack-plugin": "^5.5.1", 22 | "style-loader": "^3.3.2", 23 | "stylelint": "^13.13.1", 24 | "stylelint-config-standard": "^21.0.0", 25 | "stylelint-csstree-validator": "^1.9.0", 26 | "stylelint-scss": "^3.21.0", 27 | "webpack": "^5.81.0", 28 | "webpack-cli": "^5.0.2", 29 | "webpack-dev-server": "^4.13.3" 30 | }, 31 | "dependencies": { 32 | "lodash": "^4.17.21" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | Document 12 | 13 | 14 |
15 |
16 |

Today's to do

17 | 18 |
19 |
20 |
21 | 28 |
29 | 30 |
31 |
    32 | Clear all completed 33 |
    34 | 35 | 36 | -------------------------------------------------------------------------------- /src/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | } 4 | 5 | h1 { 6 | margin: 0; 7 | padding: 0; 8 | } 9 | 10 | .heading { 11 | display: flex; 12 | justify-content: space-between; 13 | } 14 | 15 | .container { 16 | padding: 20px; 17 | background-color: white; 18 | border: 2px solid gray; 19 | margin: 20px; 20 | } 21 | 22 | ul { 23 | margin: 0; 24 | padding: 0; 25 | } 26 | 27 | ul li { 28 | padding: 10px; 29 | border: 1px solid #f7f7f7; 30 | list-style-type: none; 31 | display: flex; 32 | justify-content: space-between; 33 | } 34 | 35 | a { 36 | text-decoration: none; 37 | text-align: center; 38 | display: block; 39 | color: gray; 40 | background-color: #f6f6f6; 41 | padding: 10px; 42 | } 43 | 44 | .fa-solid { 45 | color: #e5e9f0; 46 | } 47 | 48 | form input { 49 | width: 100%; 50 | border: none; 51 | font-size: 20px; 52 | } 53 | 54 | .text { 55 | border: none; 56 | width: 80%; 57 | } 58 | 59 | input:focus { 60 | outline: none; 61 | } 62 | 63 | .container div:nth-child(2) { 64 | padding: 15px; 65 | } 66 | -------------------------------------------------------------------------------- /dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | Document 12 | 13 | 14 |
    15 |
    16 |

    Today's to do

    17 | 18 |
    19 |
    20 |
    21 | 28 |
    29 | 30 |
    31 |
      32 | Clear all completed 33 |
      34 | 35 | 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Tumaini Maganiko 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.github/workflows/linters.yml: -------------------------------------------------------------------------------- 1 | name: Linters 2 | 3 | on: pull_request 4 | 5 | env: 6 | FORCE_COLOR: 1 7 | 8 | jobs: 9 | lighthouse: 10 | name: Lighthouse 11 | runs-on: ubuntu-22.04 12 | steps: 13 | - uses: actions/checkout@v3 14 | - uses: actions/setup-node@v3 15 | with: 16 | node-version: "18.x" 17 | - name: Setup Lighthouse 18 | run: npm install -g @lhci/cli@0.11.x 19 | - name: Lighthouse Report 20 | run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=. 21 | webhint: 22 | name: Webhint 23 | runs-on: ubuntu-22.04 24 | steps: 25 | - uses: actions/checkout@v3 26 | - uses: actions/setup-node@v3 27 | with: 28 | node-version: "18.x" 29 | - name: Setup Webhint 30 | run: | 31 | npm install --save-dev hint@7.x 32 | [ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc 33 | - name: Webhint Report 34 | run: npx hint . 35 | stylelint: 36 | name: Stylelint 37 | runs-on: ubuntu-22.04 38 | steps: 39 | - uses: actions/checkout@v3 40 | - uses: actions/setup-node@v3 41 | with: 42 | node-version: "18.x" 43 | - name: Setup Stylelint 44 | run: | 45 | npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x 46 | [ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.stylelintrc.json 47 | - name: Stylelint Report 48 | run: npx stylelint "**/*.{css,scss}" 49 | eslint: 50 | name: ESLint 51 | runs-on: ubuntu-22.04 52 | steps: 53 | - uses: actions/checkout@v3 54 | - uses: actions/setup-node@v3 55 | with: 56 | node-version: "18.x" 57 | - name: Setup ESLint 58 | run: | 59 | npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x 60 | [ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json 61 | - name: ESLint Report 62 | run: npx eslint . 63 | nodechecker: 64 | name: node_modules checker 65 | runs-on: ubuntu-22.04 66 | steps: 67 | - uses: actions/checkout@v3 68 | - name: Check node_modules existence 69 | run: | 70 | if [ -d "node_modules/" ]; then echo -e "\e[1;31mThe node_modules/ folder was pushed to the repo. Please remove it from the GitHub repository and try again."; echo -e "\e[1;32mYou can set up a .gitignore file with this folder included on it to prevent this from happening in the future." && exit 1; fi -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import './style.css'; 2 | import utils from './modules/utils.js'; 3 | import { completed, unCompleted } from './modules/status.js'; 4 | 5 | const localData = utils.retrieve(); 6 | if (!localData) localStorage.setItem('todo', '[]'); 7 | 8 | // Function to Display items 9 | const display = () => { 10 | const storeData = utils.retrieve(); 11 | const list = document.getElementById('list'); 12 | list.innerHTML = ''; 13 | storeData.forEach((value) => { 14 | const li = document.createElement('li'); 15 | li.innerHTML = ` 16 | 17 | 18 | 19 | `; 20 | const removeButton = document.createElement('div'); 21 | removeButton.innerHTML = ''; 22 | removeButton.addEventListener('click', () => { 23 | utils.remove(value.id); 24 | display(); 25 | }); 26 | li.appendChild(removeButton); 27 | list.appendChild(li); 28 | }); 29 | 30 | // Function for Editing Todo tasks 31 | const span = document.querySelectorAll('.text'); 32 | span.forEach((btn, index) => { 33 | btn.addEventListener('keyup', () => { 34 | const test = utils.retrieve(); 35 | test[index].description = btn.value; 36 | utils.save(test); 37 | }); 38 | }); 39 | 40 | // Making Checkbox to control completed status of tasks 41 | const checkbox = document.querySelectorAll('.checkbox'); 42 | checkbox.forEach((btn, index) => { 43 | btn.addEventListener('change', () => { 44 | const test = utils.retrieve(); 45 | if (btn.checked === true) { 46 | test[index].completed = completed(test); 47 | } else { 48 | test[index].completed = unCompleted(test); 49 | } 50 | utils.save(test); 51 | }); 52 | }); 53 | }; 54 | 55 | // Capturing form input and sending it to local storage on form submission 56 | const renderList = () => { 57 | const form = document.getElementById('form'); 58 | form.addEventListener('submit', (e) => { 59 | e.preventDefault(); 60 | const storeData = utils.retrieve(); 61 | const input = form.text.value; 62 | const completed = false; 63 | const id = storeData.length; 64 | utils.add(input, completed, id); 65 | display(); 66 | form.text.value = ''; 67 | }); 68 | }; 69 | 70 | renderList(); 71 | display(); 72 | 73 | // Clearing completed tasks 74 | const clear = () => { 75 | let store = utils.retrieve(); 76 | store = store.filter((todo) => !todo.completed); 77 | const remains = utils.updateList(store); 78 | utils.save(remains); 79 | }; 80 | 81 | const link = document.querySelector('a'); 82 | link.addEventListener('click', (e) => { 83 | e.preventDefault(); 84 | clear(); 85 | display(); 86 | }); 87 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
      5 | 6 |
      7 | 8 |

      Tumaini Maganiko

      9 | 10 |
      11 | 12 | 13 | 14 | # 📗 Table of Contents 15 | 16 | - [📗 Table of Contents](#-table-of-contents) 17 | - [📖 To Do List PROJECT ](#--to-do-list-project-) 18 | - [🛠 Built With ](#-built-with-) 19 | - [Tech Stack ](#tech-stack-) 20 | - [Key Features ](#key-features-) 21 | - [🚀 Live Demo ](#-live-demo-) 22 | - [💻 Getting Started ](#-getting-started-) 23 | - [Prerequisites](#prerequisites) 24 | - [Setup](#setup) 25 | - [Usage](#usage) 26 | - [`npm start`](#npm-start) 27 | - [Run tests](#run-tests) 28 | - [Deployment](#deployment) 29 | - [`npm run build`](#npm-run-build) 30 | - [👥 Author ](#-author-) 31 | - [🔭 Future Features ](#-future-features-) 32 | - [🤝 Contributing ](#-contributing-) 33 | - [⭐️ Show your support ](#️-show-your-support-) 34 | - [🙏 Acknowledgments ](#-acknowledgments-) 35 | - [📝 License ](#-license-) 36 | 37 | 38 | 39 | # 📖 To Do List PROJECT 40 | 41 | 42 | 43 | ## 🛠 Built With 44 | 1. HTML 45 | 2. CSS 46 | 3. JAVASCRIPT 47 | 4. Modules 48 | 5. Webpack 49 | 50 | ### Tech Stack 51 | 52 |
      53 | Client 54 | 59 |
      60 | 61 | 62 | 63 | 64 | 65 | ### Key Features 66 | 67 | 68 | - User can add a task to the todo. 69 | - User can edit saved tasks. 70 | - User can delete a task. 71 | - User can mark a task as completed. 72 | - User can clear all completed tasks. 73 | 74 | 75 | 76 |

      (back to top)

      77 | 78 | 79 | 80 | ## 🚀 Live Demo 81 | 82 | - [Live Demo Link](https://tumainimaganiko.github.io/To-Do-Lists/dist/) 83 | 84 |

      (back to top)

      85 | 86 | 87 | ## 💻 Getting Started 88 | 89 | 90 | To get a local copy up and running, follow these steps. 91 | 92 | ### Prerequisites 93 | 94 | 1. Web browser 95 | 2. Code editor 96 | 3. Git-smc 97 | 98 | ### Setup 99 | 100 | To get a local copy up and running follow these simple example steps. 101 | 102 | 103 | - git clone https://github.com/tumainimaganiko/To-Do-Lists 104 | - cd To-Do-Lists 105 | - npm install 106 | 107 | ### Usage 108 | 109 | To run the project, execute the following command: 110 | 111 | ### `npm start` 112 | Open [http://localhost:8080](http://localhost:8080) to view it in your browser. 113 | 114 | ### Run tests 115 | 116 | Coming soon 117 | 118 | ### Deployment 119 | 120 | ### `npm run build` 121 | 122 | ``` 123 | Builds the app for production to the build folder. 124 | 125 | It correctly bundles the project in production mode and optimizes the build for the best performance. 126 | 127 | The build is minified and the filenames include the hashes. 128 | Your app is ready to be deployed! 129 | ``` 130 | 131 |

      (back to top)

      132 | 133 | 134 | 135 | ## 👥 Author 136 | 137 | 138 | 👤 Tumaini Maganiko 139 | 140 | - GitHub: [@tumainimaganiko](https://github.com/tumainimaganiko) 141 | - Twitter: [@Chief2maini](https://twitter.com/Chief2maini) 142 | - LinkedIn: [LinkedIn](https://www.linkedin.com/in/tumaini-maganiko-991b30262/) 143 | 144 | 145 |

      (back to top)

      146 | 147 | 148 | 149 | ## 🔭 Future Features 150 | - Enabling user set a reminder for a certain tasks 151 | 152 | 153 |

      (back to top)

      154 | 155 | 156 | 157 | ## 🤝 Contributing 158 | 159 | Contributions, issues, and feature requests are welcome! 160 | 1. Fork the Project 161 | 2. Create your Feature Branch (`git checkout -b 'branchname'`) 162 | 3. Commit your Changes (`git commit -m 'Add some branchname'`) 163 | 4. Push to the Branch (`git push origin branchname`) 164 | 5. Open a Pull Request 165 | 166 | Feel free to check the [issues page](../../issues/). 167 | 168 |

      (back to top)

      169 | 170 | 171 | 172 | ## ⭐️ Show your support 173 | 174 | 175 | If you like this project rate me star 176 | 177 |

      (back to top)

      178 | 179 | 180 | 181 | ## 🙏 Acknowledgments 182 | 183 | 184 | I would like to thank Microverse 185 | 186 |

      (back to top)

      187 | 188 | 189 | 190 | ## 📝 License 191 | 192 | This project is [MIT](./LICENSE) licensed. 193 | 194 |

      (back to top)

      -------------------------------------------------------------------------------- /dist/runtime.bundle.js: -------------------------------------------------------------------------------- 1 | /* 2 | * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). 3 | * This devtool is neither made for production nor for readable output files. 4 | * It uses "eval()" calls to create a separate source file in the browser devtools. 5 | * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) 6 | * or disable the default devtool with "devtool: false". 7 | * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). 8 | */ 9 | /******/ (() => { // webpackBootstrap 10 | /******/ "use strict"; 11 | /******/ var __webpack_modules__ = ({}); 12 | /************************************************************************/ 13 | /******/ // The module cache 14 | /******/ var __webpack_module_cache__ = {}; 15 | /******/ 16 | /******/ // The require function 17 | /******/ function __webpack_require__(moduleId) { 18 | /******/ // Check if module is in cache 19 | /******/ var cachedModule = __webpack_module_cache__[moduleId]; 20 | /******/ if (cachedModule !== undefined) { 21 | /******/ return cachedModule.exports; 22 | /******/ } 23 | /******/ // Create a new module (and put it into the cache) 24 | /******/ var module = __webpack_module_cache__[moduleId] = { 25 | /******/ id: moduleId, 26 | /******/ // no module.loaded needed 27 | /******/ exports: {} 28 | /******/ }; 29 | /******/ 30 | /******/ // Execute the module function 31 | /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); 32 | /******/ 33 | /******/ // Return the exports of the module 34 | /******/ return module.exports; 35 | /******/ } 36 | /******/ 37 | /******/ // expose the modules object (__webpack_modules__) 38 | /******/ __webpack_require__.m = __webpack_modules__; 39 | /******/ 40 | /************************************************************************/ 41 | /******/ /* webpack/runtime/chunk loaded */ 42 | /******/ (() => { 43 | /******/ var deferred = []; 44 | /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { 45 | /******/ if(chunkIds) { 46 | /******/ priority = priority || 0; 47 | /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; 48 | /******/ deferred[i] = [chunkIds, fn, priority]; 49 | /******/ return; 50 | /******/ } 51 | /******/ var notFulfilled = Infinity; 52 | /******/ for (var i = 0; i < deferred.length; i++) { 53 | /******/ var [chunkIds, fn, priority] = deferred[i]; 54 | /******/ var fulfilled = true; 55 | /******/ for (var j = 0; j < chunkIds.length; j++) { 56 | /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { 57 | /******/ chunkIds.splice(j--, 1); 58 | /******/ } else { 59 | /******/ fulfilled = false; 60 | /******/ if(priority < notFulfilled) notFulfilled = priority; 61 | /******/ } 62 | /******/ } 63 | /******/ if(fulfilled) { 64 | /******/ deferred.splice(i--, 1) 65 | /******/ var r = fn(); 66 | /******/ if (r !== undefined) result = r; 67 | /******/ } 68 | /******/ } 69 | /******/ return result; 70 | /******/ }; 71 | /******/ })(); 72 | /******/ 73 | /******/ /* webpack/runtime/compat get default export */ 74 | /******/ (() => { 75 | /******/ // getDefaultExport function for compatibility with non-harmony modules 76 | /******/ __webpack_require__.n = (module) => { 77 | /******/ var getter = module && module.__esModule ? 78 | /******/ () => (module['default']) : 79 | /******/ () => (module); 80 | /******/ __webpack_require__.d(getter, { a: getter }); 81 | /******/ return getter; 82 | /******/ }; 83 | /******/ })(); 84 | /******/ 85 | /******/ /* webpack/runtime/define property getters */ 86 | /******/ (() => { 87 | /******/ // define getter functions for harmony exports 88 | /******/ __webpack_require__.d = (exports, definition) => { 89 | /******/ for(var key in definition) { 90 | /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 91 | /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 92 | /******/ } 93 | /******/ } 94 | /******/ }; 95 | /******/ })(); 96 | /******/ 97 | /******/ /* webpack/runtime/hasOwnProperty shorthand */ 98 | /******/ (() => { 99 | /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) 100 | /******/ })(); 101 | /******/ 102 | /******/ /* webpack/runtime/make namespace object */ 103 | /******/ (() => { 104 | /******/ // define __esModule on exports 105 | /******/ __webpack_require__.r = (exports) => { 106 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 107 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 108 | /******/ } 109 | /******/ Object.defineProperty(exports, '__esModule', { value: true }); 110 | /******/ }; 111 | /******/ })(); 112 | /******/ 113 | /******/ /* webpack/runtime/jsonp chunk loading */ 114 | /******/ (() => { 115 | /******/ // no baseURI 116 | /******/ 117 | /******/ // object to store loaded and loading chunks 118 | /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched 119 | /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded 120 | /******/ var installedChunks = { 121 | /******/ "runtime": 0 122 | /******/ }; 123 | /******/ 124 | /******/ // no chunk on demand loading 125 | /******/ 126 | /******/ // no prefetching 127 | /******/ 128 | /******/ // no preloaded 129 | /******/ 130 | /******/ // no HMR 131 | /******/ 132 | /******/ // no HMR manifest 133 | /******/ 134 | /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); 135 | /******/ 136 | /******/ // install a JSONP callback for chunk loading 137 | /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { 138 | /******/ var [chunkIds, moreModules, runtime] = data; 139 | /******/ // add "moreModules" to the modules object, 140 | /******/ // then flag all "chunkIds" as loaded and fire callback 141 | /******/ var moduleId, chunkId, i = 0; 142 | /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { 143 | /******/ for(moduleId in moreModules) { 144 | /******/ if(__webpack_require__.o(moreModules, moduleId)) { 145 | /******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; 146 | /******/ } 147 | /******/ } 148 | /******/ if(runtime) var result = runtime(__webpack_require__); 149 | /******/ } 150 | /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); 151 | /******/ for(;i < chunkIds.length; i++) { 152 | /******/ chunkId = chunkIds[i]; 153 | /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { 154 | /******/ installedChunks[chunkId][0](); 155 | /******/ } 156 | /******/ installedChunks[chunkId] = 0; 157 | /******/ } 158 | /******/ return __webpack_require__.O(result); 159 | /******/ } 160 | /******/ 161 | /******/ var chunkLoadingGlobal = self["webpackChunkto_do_lists"] = self["webpackChunkto_do_lists"] || []; 162 | /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); 163 | /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); 164 | /******/ })(); 165 | /******/ 166 | /******/ /* webpack/runtime/nonce */ 167 | /******/ (() => { 168 | /******/ __webpack_require__.nc = undefined; 169 | /******/ })(); 170 | /******/ 171 | /************************************************************************/ 172 | /******/ 173 | /******/ 174 | /******/ })() 175 | ; -------------------------------------------------------------------------------- /dist/index.bundle.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /* 3 | * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). 4 | * This devtool is neither made for production nor for readable output files. 5 | * It uses "eval()" calls to create a separate source file in the browser devtools. 6 | * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) 7 | * or disable the default devtool with "devtool: false". 8 | * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). 9 | */ 10 | (self["webpackChunkto_do_lists"] = self["webpackChunkto_do_lists"] || []).push([["index"],{ 11 | 12 | /***/ "./node_modules/css-loader/dist/cjs.js!./src/style.css": 13 | /*!*************************************************************!*\ 14 | !*** ./node_modules/css-loader/dist/cjs.js!./src/style.css ***! 15 | \*************************************************************/ 16 | /***/ ((module, __webpack_exports__, __webpack_require__) => { 17 | 18 | eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/noSourceMaps.js */ \"./node_modules/css-loader/dist/runtime/noSourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"body {\\n margin: 0;\\n}\\n\\nh1 {\\n margin: 0;\\n padding: 0;\\n}\\n\\n.heading {\\n display: flex;\\n justify-content: space-between;\\n}\\n\\n.container {\\n padding: 20px;\\n background-color: white;\\n border: 2px solid gray;\\n margin: 20px;\\n}\\n\\nul {\\n margin: 0;\\n padding: 0;\\n}\\n\\nul li {\\n padding: 10px;\\n border: 1px solid #f7f7f7;\\n list-style-type: none;\\n display: flex;\\n justify-content: space-between;\\n}\\n\\na {\\n text-decoration: none;\\n text-align: center;\\n display: block;\\n color: gray;\\n background-color: #f6f6f6;\\n padding: 10px;\\n}\\n\\n.fa-solid {\\n color: #e5e9f0;\\n}\\n\\nform input {\\n width: 100%;\\n border: none;\\n font-size: 20px;\\n}\\n\\n.text {\\n border: none;\\n width: 80%;\\n}\\n\\ninput:focus {\\n outline: none;\\n}\\n\\n.container div:nth-child(2) {\\n padding: 15px;\\n}\\n\", \"\"]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n\n\n//# sourceURL=webpack://to-do-lists/./src/style.css?./node_modules/css-loader/dist/cjs.js"); 19 | 20 | /***/ }), 21 | 22 | /***/ "./node_modules/css-loader/dist/runtime/api.js": 23 | /*!*****************************************************!*\ 24 | !*** ./node_modules/css-loader/dist/runtime/api.js ***! 25 | \*****************************************************/ 26 | /***/ ((module) => { 27 | 28 | eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};\n\n//# sourceURL=webpack://to-do-lists/./node_modules/css-loader/dist/runtime/api.js?"); 29 | 30 | /***/ }), 31 | 32 | /***/ "./node_modules/css-loader/dist/runtime/noSourceMaps.js": 33 | /*!**************************************************************!*\ 34 | !*** ./node_modules/css-loader/dist/runtime/noSourceMaps.js ***! 35 | \**************************************************************/ 36 | /***/ ((module) => { 37 | 38 | eval("\n\nmodule.exports = function (i) {\n return i[1];\n};\n\n//# sourceURL=webpack://to-do-lists/./node_modules/css-loader/dist/runtime/noSourceMaps.js?"); 39 | 40 | /***/ }), 41 | 42 | /***/ "./src/style.css": 43 | /*!***********************!*\ 44 | !*** ./src/style.css ***! 45 | \***********************/ 46 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 47 | 48 | eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_style_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../node_modules/css-loader/dist/cjs.js!./style.css */ \"./node_modules/css-loader/dist/cjs.js!./src/style.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_style_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_style_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_style_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_style_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n\n\n//# sourceURL=webpack://to-do-lists/./src/style.css?"); 49 | 50 | /***/ }), 51 | 52 | /***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": 53 | /*!****************************************************************************!*\ 54 | !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! 55 | \****************************************************************************/ 56 | /***/ ((module) => { 57 | 58 | eval("\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};\n\n//# sourceURL=webpack://to-do-lists/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js?"); 59 | 60 | /***/ }), 61 | 62 | /***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js": 63 | /*!********************************************************************!*\ 64 | !*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***! 65 | \********************************************************************/ 66 | /***/ ((module) => { 67 | 68 | eval("\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;\n\n//# sourceURL=webpack://to-do-lists/./node_modules/style-loader/dist/runtime/insertBySelector.js?"); 69 | 70 | /***/ }), 71 | 72 | /***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js": 73 | /*!**********************************************************************!*\ 74 | !*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***! 75 | \**********************************************************************/ 76 | /***/ ((module) => { 77 | 78 | eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;\n\n//# sourceURL=webpack://to-do-lists/./node_modules/style-loader/dist/runtime/insertStyleElement.js?"); 79 | 80 | /***/ }), 81 | 82 | /***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js": 83 | /*!**********************************************************************************!*\ 84 | !*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***! 85 | \**********************************************************************************/ 86 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { 87 | 88 | eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;\n\n//# sourceURL=webpack://to-do-lists/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js?"); 89 | 90 | /***/ }), 91 | 92 | /***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js": 93 | /*!***************************************************************!*\ 94 | !*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***! 95 | \***************************************************************/ 96 | /***/ ((module) => { 97 | 98 | eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;\n\n//# sourceURL=webpack://to-do-lists/./node_modules/style-loader/dist/runtime/styleDomAPI.js?"); 99 | 100 | /***/ }), 101 | 102 | /***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js": 103 | /*!*********************************************************************!*\ 104 | !*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***! 105 | \*********************************************************************/ 106 | /***/ ((module) => { 107 | 108 | eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;\n\n//# sourceURL=webpack://to-do-lists/./node_modules/style-loader/dist/runtime/styleTagTransform.js?"); 109 | 110 | /***/ }), 111 | 112 | /***/ "./src/index.js": 113 | /*!**********************!*\ 114 | !*** ./src/index.js ***! 115 | \**********************/ 116 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 117 | 118 | eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _style_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./style.css */ \"./src/style.css\");\n/* harmony import */ var _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules/utils.js */ \"./src/modules/utils.js\");\n/* harmony import */ var _modules_status_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modules/status.js */ \"./src/modules/status.js\");\n\n\n\n\nconst localData = _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].retrieve();\nif (!localData) localStorage.setItem('todo', '[]');\n\n// Function to Display items\nconst display = () => {\n const storeData = _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].retrieve();\n const list = document.getElementById('list');\n list.innerHTML = '';\n storeData.forEach((value) => {\n const li = document.createElement('li');\n li.innerHTML = `\n \n \n \n `;\n const removeButton = document.createElement('div');\n removeButton.innerHTML = '';\n removeButton.addEventListener('click', () => {\n _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].remove(value.id);\n display();\n });\n li.appendChild(removeButton);\n list.appendChild(li);\n });\n\n // Function for Editing Todo tasks\n const span = document.querySelectorAll('.text');\n span.forEach((btn, index) => {\n btn.addEventListener('keyup', () => {\n const test = _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].retrieve();\n test[index].description = btn.value;\n _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].save(test);\n });\n });\n\n // Making Checkbox to control completed status of tasks\n const checkbox = document.querySelectorAll('.checkbox');\n checkbox.forEach((btn, index) => {\n btn.addEventListener('change', () => {\n const test = _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].retrieve();\n if (btn.checked === true) {\n test[index].completed = (0,_modules_status_js__WEBPACK_IMPORTED_MODULE_2__.completed)(test);\n } else {\n test[index].completed = (0,_modules_status_js__WEBPACK_IMPORTED_MODULE_2__.unCompleted)(test);\n }\n _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].save(test);\n });\n });\n};\n\n// Capturing form input and sending it to local storage on form submission\nconst renderList = () => {\n const form = document.getElementById('form');\n form.addEventListener('submit', (e) => {\n e.preventDefault();\n const storeData = _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].retrieve();\n const input = form.text.value;\n const completed = false;\n const id = storeData.length;\n _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].add(input, completed, id);\n display();\n form.text.value = '';\n });\n};\n\nrenderList();\ndisplay();\n\n// Clearing completed tasks\nconst clear = () => {\n let store = _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].retrieve();\n store = store.filter((todo) => !todo.completed);\n const remains = _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].updateList(store);\n _modules_utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].save(remains);\n};\n\nconst link = document.querySelector('a');\nlink.addEventListener('click', (e) => {\n e.preventDefault();\n clear();\n display();\n});\n\n\n//# sourceURL=webpack://to-do-lists/./src/index.js?"); 119 | 120 | /***/ }), 121 | 122 | /***/ "./src/modules/status.js": 123 | /*!*******************************!*\ 124 | !*** ./src/modules/status.js ***! 125 | \*******************************/ 126 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 127 | 128 | eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"completed\": () => (/* binding */ completed),\n/* harmony export */ \"unCompleted\": () => (/* binding */ unCompleted)\n/* harmony export */ });\nfunction completed(task) {\n task.completed = true;\n const test = task.completed;\n return test;\n}\n\nfunction unCompleted(task) {\n task.completed = false;\n const test = task.completed;\n return test;\n}\n\n\n\n//# sourceURL=webpack://to-do-lists/./src/modules/status.js?"); 129 | 130 | /***/ }), 131 | 132 | /***/ "./src/modules/utils.js": 133 | /*!******************************!*\ 134 | !*** ./src/modules/utils.js ***! 135 | \******************************/ 136 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 137 | 138 | eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nconst save = (data) => {\n localStorage.setItem('todo', JSON.stringify(data));\n};\n\nconst retrieve = () => JSON.parse(localStorage.getItem('todo'));\n// Adding specific task\nfunction updateList(todos) {\n return todos.map((value, index) => {\n value.id = index;\n return value;\n });\n}\n// Adding the todos\nfunction add(description, completed, id) {\n const storeData = retrieve();\n storeData.push({ description, completed, id });\n const sortedData = updateList(storeData);\n save(sortedData);\n}\n\n// Removing Items from the Array\nfunction remove(id) {\n const storeData = retrieve();\n const remaining = storeData.filter((todo) => todo.id !== id);\n const sortedData = updateList(remaining);\n save(sortedData);\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n add,\n remove,\n save,\n retrieve,\n updateList,\n});\n\n\n//# sourceURL=webpack://to-do-lists/./src/modules/utils.js?"); 139 | 140 | /***/ }) 141 | 142 | }, 143 | /******/ __webpack_require__ => { // webpackRuntimeModules 144 | /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) 145 | /******/ var __webpack_exports__ = (__webpack_exec__("./src/index.js")); 146 | /******/ } 147 | ]); -------------------------------------------------------------------------------- /dist/main.js: -------------------------------------------------------------------------------- 1 | /*! For license information please see main.js.LICENSE.txt */ 2 | (()=>{var n={426:(n,t,r)=>{"use strict";r.d(t,{Z:()=>f});var e=r(81),u=r.n(e),i=r(645),o=r.n(i)()(u());o.push([n.id,"body {\n background-color: bisque;\n}",""]);const f=o},645:n=>{"use strict";n.exports=function(n){var t=[];return t.toString=function(){return this.map((function(t){var r="",e=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),e&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=n(t),e&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(n,r,e,u,i){"string"==typeof n&&(n=[[null,n,void 0]]);var o={};if(e)for(var f=0;f0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),u&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=u):l[4]="".concat(u)),t.push(l))}},t}},81:n=>{"use strict";n.exports=function(n){return n[1]}},486:function(n,t,r){var e;n=r.nmd(n),function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=32,c=128,l=1/0,s=9007199254740991,h=NaN,p=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",256]],_="[object Arguments]",g="[object Array]",y="[object Boolean]",d="[object Date]",b="[object Error]",w="[object Function]",m="[object GeneratorFunction]",x="[object Map]",j="[object Number]",A="[object Object]",I="[object Promise]",k="[object RegExp]",O="[object Set]",E="[object String]",R="[object Symbol]",S="[object WeakMap]",z="[object ArrayBuffer]",C="[object DataView]",T="[object Float32Array]",L="[object Float64Array]",W="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",$="[object Uint16Array]",N="[object Uint32Array]",F=/\b__p \+= '';/g,P=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,V=RegExp(Z.source),G=RegExp(K.source),H=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tn=/[\\^$.*+?()[\]{}|]/g,rn=RegExp(tn.source),en=/^\s+/,un=/\s/,on=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fn=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ln=/[()=,{}\[\]\/\s]/,sn=/\\(\\)?/g,hn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pn=/\w*$/,vn=/^[-+]0x[0-9a-f]+$/i,_n=/^0b[01]+$/i,gn=/^\[object .+?Constructor\]$/,yn=/^0o[0-7]+$/i,dn=/^(?:0|[1-9]\d*)$/,bn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wn=/($^)/,mn=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",jn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",An="\\u2700-\\u27bf",In="a-z\\xdf-\\xf6\\xf8-\\xff",kn="A-Z\\xc0-\\xd6\\xd8-\\xde",On="\\ufe0e\\ufe0f",En="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rn="["+xn+"]",Sn="["+En+"]",zn="["+jn+"]",Cn="\\d+",Tn="["+An+"]",Ln="["+In+"]",Wn="[^"+xn+En+Cn+An+In+kn+"]",Un="\\ud83c[\\udffb-\\udfff]",Bn="[^"+xn+"]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Dn="[\\ud800-\\udbff][\\udc00-\\udfff]",$n="["+kn+"]",Nn="\\u200d",Fn="(?:"+Ln+"|"+Wn+")",Pn="(?:"+$n+"|"+Wn+")",qn="(?:['’](?:d|ll|m|re|s|t|ve))?",Zn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Kn="(?:"+zn+"|"+Un+")?",Vn="["+On+"]?",Gn=Vn+Kn+"(?:"+Nn+"(?:"+[Bn,Mn,Dn].join("|")+")"+Vn+Kn+")*",Hn="(?:"+[Tn,Mn,Dn].join("|")+")"+Gn,Jn="(?:"+[Bn+zn+"?",zn,Mn,Dn,Rn].join("|")+")",Yn=RegExp("['’]","g"),Qn=RegExp(zn,"g"),Xn=RegExp(Un+"(?="+Un+")|"+Jn+Gn,"g"),nt=RegExp([$n+"?"+Ln+"+"+qn+"(?="+[Sn,$n,"$"].join("|")+")",Pn+"+"+Zn+"(?="+[Sn,$n+Fn,"$"].join("|")+")",$n+"?"+Fn+"+"+qn,$n+"+"+Zn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cn,Hn].join("|"),"g"),tt=RegExp("["+Nn+xn+jn+On+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,it={};it[T]=it[L]=it[W]=it[U]=it[B]=it[M]=it[D]=it[$]=it[N]=!0,it[_]=it[g]=it[z]=it[y]=it[C]=it[d]=it[b]=it[w]=it[x]=it[j]=it[A]=it[k]=it[O]=it[E]=it[S]=!1;var ot={};ot[_]=ot[g]=ot[z]=ot[C]=ot[y]=ot[d]=ot[T]=ot[L]=ot[W]=ot[U]=ot[B]=ot[x]=ot[j]=ot[A]=ot[k]=ot[O]=ot[E]=ot[R]=ot[M]=ot[D]=ot[$]=ot[N]=!0,ot[b]=ot[w]=ot[S]=!1;var ft={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ct=parseInt,lt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,st="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||st||Function("return this")(),pt=t&&!t.nodeType&&t,vt=pt&&n&&!n.nodeType&&n,_t=vt&&vt.exports===pt,gt=_t&<.process,yt=function(){try{return vt&&vt.require&&vt.require("util").types||gt&>.binding&>.binding("util")}catch(n){}}(),dt=yt&&yt.isArrayBuffer,bt=yt&&yt.isDate,wt=yt&&yt.isMap,mt=yt&&yt.isRegExp,xt=yt&&yt.isSet,jt=yt&&yt.isTypedArray;function At(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function zt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function nr(n,t){for(var r=n.length;r--&&$t(t,n[r],0)>-1;);return r}var tr=Zt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),rr=Zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function er(n){return"\\"+ft[n]}function ur(n){return tt.test(n)}function ir(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function or(n,t){return function(r){return n(t(r))}}function fr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"}),vr=function n(t){var r,e=(t=null==t?ht:vr.defaults(ht.Object(),t,vr.pick(ht,et))).Array,un=t.Date,xn=t.Error,jn=t.Function,An=t.Math,In=t.Object,kn=t.RegExp,On=t.String,En=t.TypeError,Rn=e.prototype,Sn=jn.prototype,zn=In.prototype,Cn=t["__core-js_shared__"],Tn=Sn.toString,Ln=zn.hasOwnProperty,Wn=0,Un=(r=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Bn=zn.toString,Mn=Tn.call(In),Dn=ht._,$n=kn("^"+Tn.call(Ln).replace(tn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nn=_t?t.Buffer:u,Fn=t.Symbol,Pn=t.Uint8Array,qn=Nn?Nn.allocUnsafe:u,Zn=or(In.getPrototypeOf,In),Kn=In.create,Vn=zn.propertyIsEnumerable,Gn=Rn.splice,Hn=Fn?Fn.isConcatSpreadable:u,Jn=Fn?Fn.iterator:u,Xn=Fn?Fn.toStringTag:u,tt=function(){try{var n=ai(In,"defineProperty");return n({},"",{}),n}catch(n){}}(),ft=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=un&&un.now!==ht.Date.now&&un.now,st=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=An.ceil,vt=An.floor,gt=In.getOwnPropertySymbols,yt=Nn?Nn.isBuffer:u,Bt=t.isFinite,Zt=Rn.join,_r=or(In.keys,In),gr=An.max,yr=An.min,dr=un.now,br=t.parseInt,wr=An.random,mr=Rn.reverse,xr=ai(t,"DataView"),jr=ai(t,"Map"),Ar=ai(t,"Promise"),Ir=ai(t,"Set"),kr=ai(t,"WeakMap"),Or=ai(In,"create"),Er=kr&&new kr,Rr={},Sr=Ui(xr),zr=Ui(jr),Cr=Ui(Ar),Tr=Ui(Ir),Lr=Ui(kr),Wr=Fn?Fn.prototype:u,Ur=Wr?Wr.valueOf:u,Br=Wr?Wr.toString:u;function Mr(n){if(nf(n)&&!Po(n)&&!(n instanceof Fr)){if(n instanceof Nr)return n;if(Ln.call(n,"__wrapped__"))return Bi(n)}return new Nr(n)}var Dr=function(){function n(){}return function(t){if(!Xo(t))return{};if(Kn)return Kn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function $r(){}function Nr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Fr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Pr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function oe(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!Xo(n))return n;var s=Po(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&Ln.call(n,"index")&&(r.index=n.index,r.input=n.input),r}(n),!a)return ku(n,f)}else{var h=si(n),p=h==w||h==m;if(Vo(n))return wu(n,a);if(h==A||h==_||p&&!i){if(f=c||p?{}:pi(n),!a)return c?function(n,t){return Ou(n,li(n),t)}(n,function(n,t){return n&&Ou(t,Cf(t),n)}(f,n)):function(n,t){return Ou(n,ci(n),t)}(n,re(f,n))}else{if(!ot[h])return i?n:{};f=function(n,t,r){var e,u=n.constructor;switch(t){case z:return mu(n);case y:case d:return new u(+n);case C:return function(n,t){var r=t?mu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case T:case L:case W:case U:case B:case M:case D:case $:case N:return xu(n,r);case x:return new u;case j:case E:return new u(n);case k:return function(n){var t=new n.constructor(n.source,pn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case O:return new u;case R:return e=n,Ur?In(Ur.call(e)):{}}}(n,h,a)}}o||(o=new Vr);var v=o.get(n);if(v)return v;o.set(n,f),of(n)?n.forEach((function(e){f.add(oe(e,t,r,e,n,o))})):tf(n)&&n.forEach((function(e,u){f.set(u,oe(e,t,r,u,n,o))}));var g=s?u:(l?c?ti:ni:c?Cf:zf)(n);return kt(g||n,(function(e,u){g&&(e=n[u=e]),Xr(f,u,oe(e,t,r,u,n,o))})),f}function fe(n,t,r){var e=r.length;if(null==n)return!e;for(n=In(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function ae(n,t,r){if("function"!=typeof n)throw new En(i);return Oi((function(){n.apply(u,r)}),t)}function ce(n,t,r,e){var u=-1,i=St,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Ct(t,Jt(r))),e?(i=zt,o=!1):t.length>=200&&(i=Qt,o=!1,t=new Kr(t));n:for(;++u-1},qr.prototype.set=function(n,t){var r=this.__data__,e=ne(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Zr.prototype.clear=function(){this.size=0,this.__data__={hash:new Pr,map:new(jr||qr),string:new Pr}},Zr.prototype.delete=function(n){var t=oi(this,n).delete(n);return this.size-=t?1:0,t},Zr.prototype.get=function(n){return oi(this,n).get(n)},Zr.prototype.has=function(n){return oi(this,n).has(n)},Zr.prototype.set=function(n,t){var r=oi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Kr.prototype.add=Kr.prototype.push=function(n){return this.__data__.set(n,o),this},Kr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.clear=function(){this.__data__=new qr,this.size=0},Vr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Vr.prototype.get=function(n){return this.__data__.get(n)},Vr.prototype.has=function(n){return this.__data__.has(n)},Vr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof qr){var e=r.__data__;if(!jr||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Zr(e)}return r.set(n,t),this.size=r.size,this};var le=Su(de),se=Su(be,!0);function he(n,t){var r=!0;return le(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function pe(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?_e(f,t-1,r,e,u):Tt(u,f):e||(u[u.length]=f)}return u}var ge=zu(),ye=zu(!0);function de(n,t){return n&&ge(n,t,zf)}function be(n,t){return n&&ye(n,t,zf)}function we(n,t){return Rt(t,(function(t){return Jo(n[t])}))}function me(n,t){for(var r=0,e=(t=gu(t,n)).length;null!=n&&rt}function Ie(n,t){return null!=n&&Ln.call(n,t)}function ke(n,t){return null!=n&&t in In(n)}function Oe(n,t,r){for(var i=r?zt:St,o=n[0].length,f=n.length,a=f,c=e(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Ct(h,Jt(t))),l=yr(h.length,l),c[a]=!r&&(t||o>=120&&h.length>=120)?new Kr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}));e--;)n[e]=n[e].value;return n}(u)}function Fe(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Gn.call(f,a,1),Gn.call(n,a,1);return n}function qe(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;_i(u)?Gn.call(n,u,1):au(n,u)}}return n}function Ze(n,t){return n+vt(wr()*(t-n+1))}function Ke(n,t){var r="";if(!n||t<1||t>s)return r;do{t%2&&(r+=n),(t=vt(t/2))&&(n+=n)}while(t);return r}function Ve(n,t){return Ei(ji(n,t,ea),n+"")}function Ge(n){return Hr($f(n))}function He(n,t){var r=$f(n);return zi(r,ie(t,0,r.length))}function Je(n,t,r,e){if(!Xo(n))return n;for(var i=-1,o=(t=gu(t,n)).length,f=o-1,a=n;null!=a&&++ii?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=e(i);++u>>1,o=n[i];null!==o&&!af(o)&&(r?o<=t:o=200){var c=t?null:Ku(n);if(c)return ar(c);o=!1,u=Qt,a=new Kr}else a=t?[]:f;n:for(;++e=e?n:nu(n,t,r)}var bu=ft||function(n){return ht.clearTimeout(n)};function wu(n,t){if(t)return n.slice();var r=n.length,e=qn?qn(r):new n.constructor(r);return n.copy(e),e}function mu(n){var t=new n.constructor(n.byteLength);return new Pn(t).set(new Pn(n)),t}function xu(n,t){var r=t?mu(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function ju(n,t){if(n!==t){var r=n!==u,e=null===n,i=n==n,o=af(n),f=t!==u,a=null===t,c=t==t,l=af(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&gi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=In(t);++e-1?i[o?t[f]:f]:u}}function Uu(n){return Xu((function(t){var r=t.length,e=r,o=Nr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new En(i);if(o&&!a&&"wrapper"==ei(f))var a=new Nr([],!0)}for(e=a?e:r;++e1&&w.reverse(),p&&sa))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Kr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(on,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return kt(v,(function(r){var e="_."+r[0];t&r[1]&&!St(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(fn);return t?t[1].split(an):[]}(e),r)))}function Si(n){var t=0,r=0;return function(){var e=dr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function zi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,eo(n,r)}));function lo(n){var t=Mr(n);return t.__chain__=!0,t}function so(n,t){return t(n)}var ho=Xu((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return ue(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Fr&&_i(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:so,args:[i],thisArg:u}),new Nr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)})),po=Eu((function(n,t,r){Ln.call(n,r)?++n[r]:ee(n,r,1)})),vo=Wu(Ni),_o=Wu(Fi);function go(n,t){return(Po(n)?kt:le)(n,ii(t,3))}function yo(n,t){return(Po(n)?Ot:se)(n,ii(t,3))}var bo=Eu((function(n,t,r){Ln.call(n,r)?n[r].push(t):ee(n,r,[t])})),wo=Ve((function(n,t,r){var u=-1,i="function"==typeof t,o=Zo(n)?e(n.length):[];return le(n,(function(n){o[++u]=i?At(t,n,r):Ee(n,t,r)})),o})),mo=Eu((function(n,t,r){ee(n,r,t)}));function xo(n,t){return(Po(n)?Ct:Ue)(n,ii(t,3))}var jo=Eu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]})),Ao=Ve((function(n,t){if(null==n)return[];var r=t.length;return r>1&&gi(n,t[0],t[1])?t=[]:r>2&&gi(t[0],t[1],t[2])&&(t=[t[0]]),Ne(n,_e(t,1),[])})),Io=lt||function(){return ht.Date.now()};function ko(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Gu(n,c,u,u,u,u,t)}function Oo(n,t){var r;if("function"!=typeof t)throw new En(i);return n=vf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var Eo=Ve((function(n,t,r){var e=1;if(r.length){var u=fr(r,ui(Eo));e|=a}return Gu(n,e,t,r,u)})),Ro=Ve((function(n,t,r){var e=3;if(r.length){var u=fr(r,ui(Ro));e|=a}return Gu(t,e,n,r,u)}));function So(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new En(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function y(){var n=Io();if(g(n))return d(n);c=Oi(y,function(n){var r=t-(n-l);return p?yr(r,f-(n-s)):r}(n))}function d(n){return c=u,v&&e?_(n):(e=o=u,a)}function b(){var n=Io(),r=g(n);if(e=arguments,o=this,l=n,r){if(c===u)return function(n){return s=n,c=Oi(y,t),h?_(n):a}(l);if(p)return bu(c),c=Oi(y,t),_(l)}return c===u&&(c=Oi(y,t)),a}return t=gf(t)||0,Xo(r)&&(h=!!r.leading,f=(p="maxWait"in r)?gr(gf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){c!==u&&bu(c),s=0,e=l=o=c=u},b.flush=function(){return c===u?a:d(Io())},b}var zo=Ve((function(n,t){return ae(n,1,t)})),Co=Ve((function(n,t,r){return ae(n,gf(t)||0,r)}));function To(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new En(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(To.Cache||Zr),r}function Lo(n){if("function"!=typeof n)throw new En(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}To.Cache=Zr;var Wo=yu((function(n,t){var r=(t=1==t.length&&Po(t[0])?Ct(t[0],Jt(ii())):Ct(_e(t,1),Jt(ii()))).length;return Ve((function(e){for(var u=-1,i=yr(e.length,r);++u=t})),Fo=Re(function(){return arguments}())?Re:function(n){return nf(n)&&Ln.call(n,"callee")&&!Vn.call(n,"callee")},Po=e.isArray,qo=dt?Jt(dt):function(n){return nf(n)&&je(n)==z};function Zo(n){return null!=n&&Qo(n.length)&&!Jo(n)}function Ko(n){return nf(n)&&Zo(n)}var Vo=yt||ga,Go=bt?Jt(bt):function(n){return nf(n)&&je(n)==d};function Ho(n){if(!nf(n))return!1;var t=je(n);return t==b||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ef(n)}function Jo(n){if(!Xo(n))return!1;var t=je(n);return t==w||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Yo(n){return"number"==typeof n&&n==vf(n)}function Qo(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=s}function Xo(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function nf(n){return null!=n&&"object"==typeof n}var tf=wt?Jt(wt):function(n){return nf(n)&&si(n)==x};function rf(n){return"number"==typeof n||nf(n)&&je(n)==j}function ef(n){if(!nf(n)||je(n)!=A)return!1;var t=Zn(n);if(null===t)return!0;var r=Ln.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Tn.call(r)==Mn}var uf=mt?Jt(mt):function(n){return nf(n)&&je(n)==k},of=xt?Jt(xt):function(n){return nf(n)&&si(n)==O};function ff(n){return"string"==typeof n||!Po(n)&&nf(n)&&je(n)==E}function af(n){return"symbol"==typeof n||nf(n)&&je(n)==R}var cf=jt?Jt(jt):function(n){return nf(n)&&Qo(n.length)&&!!it[je(n)]},lf=Pu(We),sf=Pu((function(n,t){return n<=t}));function hf(n){if(!n)return[];if(Zo(n))return ff(n)?sr(n):ku(n);if(Jn&&n[Jn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Jn]());var t=si(n);return(t==x?ir:t==O?ar:$f)(n)}function pf(n){return n?(n=gf(n))===l||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function vf(n){var t=pf(n),r=t%1;return t==t?r?t-r:t:0}function _f(n){return n?ie(vf(n),0,p):0}function gf(n){if("number"==typeof n)return n;if(af(n))return h;if(Xo(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=Xo(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Ht(n);var r=_n.test(n);return r||yn.test(n)?ct(n.slice(2),r?2:8):vn.test(n)?h:+n}function yf(n){return Ou(n,Cf(n))}function df(n){return null==n?"":ou(n)}var bf=Ru((function(n,t){if(wi(t)||Zo(t))Ou(t,zf(t),n);else for(var r in t)Ln.call(t,r)&&Xr(n,r,t[r])})),wf=Ru((function(n,t){Ou(t,Cf(t),n)})),mf=Ru((function(n,t,r,e){Ou(t,Cf(t),n,e)})),xf=Ru((function(n,t,r,e){Ou(t,zf(t),n,e)})),jf=Xu(ue),Af=Ve((function(n,t){n=In(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&gi(t[0],t[1],i)&&(e=1);++r1),t})),Ou(n,ti(n),r),e&&(r=oe(r,7,Yu));for(var u=t.length;u--;)au(r,t[u]);return r})),Uf=Xu((function(n,t){return null==n?{}:function(n,t){return Fe(n,t,(function(t,r){return Of(n,r)}))}(n,t)}));function Bf(n,t){if(null==n)return{};var r=Ct(ti(n),(function(n){return[n]}));return t=ii(t),Fe(n,r,(function(n,r){return t(n,r[0])}))}var Mf=Vu(zf),Df=Vu(Cf);function $f(n){return null==n?[]:Yt(n,zf(n))}var Nf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?Ff(t):t)}));function Ff(n){return Jf(df(n).toLowerCase())}function Pf(n){return(n=df(n))&&n.replace(bn,tr).replace(Qn,"")}var qf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Zf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Kf=Cu("toLowerCase"),Vf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()})),Gf=Tu((function(n,t,r){return n+(r?" ":"")+Jf(t)})),Hf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Jf=Cu("toUpperCase");function Yf(n,t,r){return n=df(n),(t=r?u:t)===u?function(n){return rt.test(n)}(n)?function(n){return n.match(nt)||[]}(n):function(n){return n.match(cn)||[]}(n):n.match(t)||[]}var Qf=Ve((function(n,t){try{return At(n,u,t)}catch(n){return Ho(n)?n:new xn(n)}})),Xf=Xu((function(n,t){return kt(t,(function(t){t=Wi(t),ee(n,t,Eo(n[t],n))})),n}));function na(n){return function(){return n}}var ta=Uu(),ra=Uu(!0);function ea(n){return n}function ua(n){return Te("function"==typeof n?n:oe(n,1))}var ia=Ve((function(n,t){return function(r){return Ee(r,n,t)}})),oa=Ve((function(n,t){return function(r){return Ee(n,r,t)}}));function fa(n,t,r){var e=zf(t),u=we(t,e);null!=r||Xo(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=we(t,zf(t)));var i=!(Xo(r)&&"chain"in r&&!r.chain),o=Jo(n);return kt(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=ku(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Tt([this.value()],arguments))})})),n}function aa(){}var ca=$u(Ct),la=$u(Et),sa=$u(Ut);function ha(n){return yi(n)?qt(Wi(n)):function(n){return function(t){return me(t,n)}}(n)}var pa=Fu(),va=Fu(!0);function _a(){return[]}function ga(){return!1}var ya,da=Du((function(n,t){return n+t}),0),ba=Zu("ceil"),wa=Du((function(n,t){return n/t}),1),ma=Zu("floor"),xa=Du((function(n,t){return n*t}),1),ja=Zu("round"),Aa=Du((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new En(i);return n=vf(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=ko,Mr.assign=bf,Mr.assignIn=wf,Mr.assignInWith=mf,Mr.assignWith=xf,Mr.at=jf,Mr.before=Oo,Mr.bind=Eo,Mr.bindAll=Xf,Mr.bindKey=Ro,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Po(n)?n:[n]},Mr.chain=lo,Mr.chunk=function(n,t,r){t=(r?gi(n,t,r):t===u)?1:gr(vf(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=e(pt(i/t));oi?0:i+r),(e=e===u||e>i?i:vf(e))<0&&(e+=i),e=r>e?0:_f(e);r>>0)?(n=df(n))&&("string"==typeof t||null!=t&&!uf(t))&&!(t=ou(t))&&ur(n)?du(sr(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new En(i);return t=null==t?0:gr(vf(t),0),Ve((function(r){var e=r[t],u=du(r,0,t);return e&&Tt(u,e),At(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?nu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?nu(n,0,(t=r||t===u?1:vf(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?nu(n,(t=e-(t=r||t===u?1:vf(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?lu(n,ii(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?lu(n,ii(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new En(i);return Xo(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),So(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=so,Mr.toArray=hf,Mr.toPairs=Mf,Mr.toPairsIn=Df,Mr.toPath=function(n){return Po(n)?Ct(n,Wi):af(n)?[n]:ku(Li(df(n)))},Mr.toPlainObject=yf,Mr.transform=function(n,t,r){var e=Po(n),u=e||Vo(n)||cf(n);if(t=ii(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:Xo(n)&&Jo(i)?Dr(Zn(n)):{}}return(u?kt:de)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return ko(n,1)},Mr.union=Xi,Mr.unionBy=no,Mr.unionWith=to,Mr.uniq=function(n){return n&&n.length?fu(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?fu(n,ii(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?fu(n,u,t):[]},Mr.unset=function(n,t){return null==n||au(n,t)},Mr.unzip=ro,Mr.unzipWith=eo,Mr.update=function(n,t,r){return null==n?n:cu(n,t,_u(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:cu(n,t,_u(r),e)},Mr.values=$f,Mr.valuesIn=function(n){return null==n?[]:Yt(n,Cf(n))},Mr.without=uo,Mr.words=Yf,Mr.wrap=function(n,t){return Uo(_u(t),n)},Mr.xor=io,Mr.xorBy=oo,Mr.xorWith=fo,Mr.zip=ao,Mr.zipObject=function(n,t){return pu(n||[],t||[],Xr)},Mr.zipObjectDeep=function(n,t){return pu(n||[],t||[],Je)},Mr.zipWith=co,Mr.entries=Mf,Mr.entriesIn=Df,Mr.extend=wf,Mr.extendWith=mf,fa(Mr,Mr),Mr.add=da,Mr.attempt=Qf,Mr.camelCase=Nf,Mr.capitalize=Ff,Mr.ceil=ba,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=gf(r))==r?r:0),t!==u&&(t=(t=gf(t))==t?t:0),ie(gf(n),t,r)},Mr.clone=function(n){return oe(n,4)},Mr.cloneDeep=function(n){return oe(n,5)},Mr.cloneDeepWith=function(n,t){return oe(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return oe(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||fe(n,t,zf(t))},Mr.deburr=Pf,Mr.defaultTo=function(n,t){return null==n||n!=n?t:n},Mr.divide=wa,Mr.endsWith=function(n,t,r){n=df(n),t=ou(t);var e=n.length,i=r=r===u?e:ie(vf(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Do,Mr.escape=function(n){return(n=df(n))&&G.test(n)?n.replace(K,rr):n},Mr.escapeRegExp=function(n){return(n=df(n))&&rn.test(n)?n.replace(tn,"\\$&"):n},Mr.every=function(n,t,r){var e=Po(n)?Et:he;return r&&gi(n,t,r)&&(t=u),e(n,ii(t,3))},Mr.find=vo,Mr.findIndex=Ni,Mr.findKey=function(n,t){return Mt(n,ii(t,3),de)},Mr.findLast=_o,Mr.findLastIndex=Fi,Mr.findLastKey=function(n,t){return Mt(n,ii(t,3),be)},Mr.floor=ma,Mr.forEach=go,Mr.forEachRight=yo,Mr.forIn=function(n,t){return null==n?n:ge(n,ii(t,3),Cf)},Mr.forInRight=function(n,t){return null==n?n:ye(n,ii(t,3),Cf)},Mr.forOwn=function(n,t){return n&&de(n,ii(t,3))},Mr.forOwnRight=function(n,t){return n&&be(n,ii(t,3))},Mr.get=kf,Mr.gt=$o,Mr.gte=No,Mr.has=function(n,t){return null!=n&&hi(n,t,Ie)},Mr.hasIn=Of,Mr.head=qi,Mr.identity=ea,Mr.includes=function(n,t,r,e){n=Zo(n)?n:$f(n),r=r&&!e?vf(r):0;var u=n.length;return r<0&&(r=gr(u+r,0)),ff(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&$t(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:vf(r);return u<0&&(u=gr(e+u,0)),$t(n,t,u)},Mr.inRange=function(n,t,r){return t=pf(t),r===u?(r=t,t=0):r=pf(r),function(n,t,r){return n>=yr(t,r)&&n=-9007199254740991&&n<=s},Mr.isSet=of,Mr.isString=ff,Mr.isSymbol=af,Mr.isTypedArray=cf,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return nf(n)&&si(n)==S},Mr.isWeakSet=function(n){return nf(n)&&"[object WeakSet]"==je(n)},Mr.join=function(n,t){return null==n?"":Zt.call(n,t)},Mr.kebabCase=qf,Mr.last=Gi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=vf(r))<0?gr(e+i,0):yr(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Dt(n,Ft,i,!0)},Mr.lowerCase=Zf,Mr.lowerFirst=Kf,Mr.lt=lf,Mr.lte=sf,Mr.max=function(n){return n&&n.length?pe(n,ea,Ae):u},Mr.maxBy=function(n,t){return n&&n.length?pe(n,ii(t,2),Ae):u},Mr.mean=function(n){return Pt(n,ea)},Mr.meanBy=function(n,t){return Pt(n,ii(t,2))},Mr.min=function(n){return n&&n.length?pe(n,ea,We):u},Mr.minBy=function(n,t){return n&&n.length?pe(n,ii(t,2),We):u},Mr.stubArray=_a,Mr.stubFalse=ga,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=xa,Mr.nth=function(n,t){return n&&n.length?$e(n,vf(t)):u},Mr.noConflict=function(){return ht._===this&&(ht._=Dn),this},Mr.noop=aa,Mr.now=Io,Mr.pad=function(n,t,r){n=df(n);var e=(t=vf(t))?lr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Nu(vt(u),r)+n+Nu(pt(u),r)},Mr.padEnd=function(n,t,r){n=df(n);var e=(t=vf(t))?lr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=wr();return yr(n+i*(t-n+at("1e-"+((i+"").length-1))),t)}return Ze(n,t)},Mr.reduce=function(n,t,r){var e=Po(n)?Lt:Kt,u=arguments.length<3;return e(n,ii(t,4),r,u,le)},Mr.reduceRight=function(n,t,r){var e=Po(n)?Wt:Kt,u=arguments.length<3;return e(n,ii(t,4),r,u,se)},Mr.repeat=function(n,t,r){return t=(r?gi(n,t,r):t===u)?1:vf(t),Ke(df(n),t)},Mr.replace=function(){var n=arguments,t=df(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=gu(t,n)).length;for(i||(i=1,n=u);++es)return[];var r=p,e=yr(n,p);t=ii(t),n-=p;for(var u=Gt(e,t);++r=o)return n;var a=r-lr(e);if(a<1)return e;var c=f?du(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),uf(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=kn(i.source,df(pn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(ou(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=df(n))&&V.test(n)?n.replace(Z,pr):n},Mr.uniqueId=function(n){var t=++Wn;return df(n)+t},Mr.upperCase=Hf,Mr.upperFirst=Jf,Mr.each=go,Mr.eachRight=yo,Mr.first=qi,fa(Mr,(ya={},de(Mr,(function(n,t){Ln.call(Mr.prototype,t)||(ya[t]=n)})),ya),{chain:!1}),Mr.VERSION="4.17.21",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),kt(["drop","take"],(function(n,t){Fr.prototype[n]=function(r){r=r===u?1:gr(vf(r),0);var e=this.__filtered__&&!t?new Fr(this):this.clone();return e.__filtered__?e.__takeCount__=yr(r,e.__takeCount__):e.__views__.push({size:yr(r,p),type:n+(e.__dir__<0?"Right":"")}),e},Fr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),kt(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Fr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ii(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),kt(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Fr.prototype[n]=function(){return this[r](1).value()[0]}})),kt(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Fr.prototype[n]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(ea)},Fr.prototype.find=function(n){return this.filter(n).head()},Fr.prototype.findLast=function(n){return this.reverse().find(n)},Fr.prototype.invokeMap=Ve((function(n,t){return"function"==typeof n?new Fr(this):this.map((function(r){return Ee(r,n,t)}))})),Fr.prototype.reject=function(n){return this.filter(Lo(ii(n)))},Fr.prototype.slice=function(n,t){n=vf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Fr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=vf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Fr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Fr.prototype.toArray=function(){return this.take(p)},de(Fr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Fr,c=f[0],l=a||Po(t),s=function(n){var t=i.apply(Mr,Tt([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Fr(this);var g=n.apply(t,f);return g.__actions__.push({func:so,args:[s],thisArg:u}),new Nr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),kt(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Rn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Po(u)?u:[],n)}return this[r]((function(r){return t.apply(Po(r)?r:[],n)}))}})),de(Fr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Ln.call(Rr,e)||(Rr[e]=[]),Rr[e].push({name:t,func:r})}})),Rr[Bu(u,2).name]=[{name:"wrapper",func:u}],Fr.prototype.clone=function(){var n=new Fr(this.__wrapped__);return n.__actions__=ku(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=ku(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=ku(this.__views__),n},Fr.prototype.reverse=function(){if(this.__filtered__){var n=new Fr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Fr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Po(n),e=t<0,u=r?n.length:0,i=function(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof $r;){var e=Bi(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Fr){var t=n;return this.__actions__.length&&(t=new Fr(this)),(t=t.reverse()).__actions__.push({func:so,args:[Qi],thisArg:u}),new Nr(t,this.__chain__)}return this.thru(Qi)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return su(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Jn&&(Mr.prototype[Jn]=function(){return this}),Mr}();ht._=vr,(e=function(){return vr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)},379:n=>{"use strict";var t=[];function r(n){for(var r=-1,e=0;e{"use strict";var t={};n.exports=function(n,r){var e=function(n){if(void 0===t[n]){var r=document.querySelector(n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}t[n]=r}return t[n]}(n);if(!e)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(r)}},216:n=>{"use strict";n.exports=function(n){var t=document.createElement("style");return n.setAttributes(t,n.attributes),n.insert(t,n.options),t}},565:(n,t,r)=>{"use strict";n.exports=function(n){var t=r.nc;t&&n.setAttribute("nonce",t)}},795:n=>{"use strict";n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=n.insertStyleElement(n);return{update:function(r){!function(n,t,r){var e="";r.supports&&(e+="@supports (".concat(r.supports,") {")),r.media&&(e+="@media ".concat(r.media," {"));var u=void 0!==r.layer;u&&(e+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),e+=r.css,u&&(e+="}"),r.media&&(e+="}"),r.supports&&(e+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(e+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(e,n,t.options)}(t,n,r)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(t)}}}},589:n=>{"use strict";n.exports=function(n,t){if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}}},t={};function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return r.d(t,{a:t}),t},r.d=(n,t)=>{for(var e in t)r.o(t,e)&&!r.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),r.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n),r.nc=void 0,(()=>{"use strict";r(486);var n=r(379),t=r.n(n),e=r(795),u=r.n(e),i=r(569),o=r.n(i),f=r(565),a=r.n(f),c=r(216),l=r.n(c),s=r(589),h=r.n(s),p=r(426),v={};v.styleTagTransform=h(),v.setAttributes=a(),v.insert=o().bind(null,"head"),v.domAPI=u(),v.insertStyleElement=l(),t()(p.Z,v),p.Z&&p.Z.locals&&p.Z.locals})()})(); --------------------------------------------------------------------------------