├── packages ├── svelte-figur │ ├── README.md │ ├── .npmrc │ ├── src │ │ ├── lib │ │ │ ├── index.ts │ │ │ ├── figures.ts │ │ │ ├── Figur.svelte │ │ │ └── makeFigur.ts │ │ ├── app.d.ts │ │ ├── app.html │ │ └── routes │ │ │ └── +page.svelte │ ├── static │ │ └── favicon.png │ ├── vite.config.ts │ ├── .gitignore │ ├── tsconfig.json │ ├── svelte.config.js │ ├── CHANGELOG.md │ └── package.json ├── react-figur │ ├── src │ │ ├── react-figur │ │ │ ├── index.tsx │ │ │ └── Figur.tsx │ │ ├── react-app-env.d.ts │ │ ├── setupTests.ts │ │ ├── App.test.tsx │ │ ├── App.css │ │ ├── index.css │ │ ├── reportWebVitals.ts │ │ ├── index.tsx │ │ ├── App.tsx │ │ └── logo.svg │ ├── public │ │ ├── robots.txt │ │ ├── favicon.ico │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── index.html │ ├── tsconfig.build.json │ ├── .gitignore │ ├── tsconfig.declaration.json │ ├── rollup.config.js │ ├── tsconfig.json │ ├── CHANGELOG.md │ ├── README.md │ └── package.json └── figur │ ├── polygon.png │ ├── src │ ├── index.umd.ts │ ├── consts.ts │ ├── VirtualDOM.ts │ └── index.ts │ ├── .gitignore │ ├── tsconfig.declaration.json │ ├── config │ ├── banner.js │ └── merge.js │ ├── .npmignore │ ├── .editorconfig │ ├── tsconfig.json │ ├── tslint.json │ ├── rollup.config.js │ ├── examples │ ├── poly.html │ └── index.html │ ├── package.json │ ├── CHANGELOG.md │ ├── rollup.config.dev.js │ ├── README.md │ └── yarn.lock ├── demo └── logo.png ├── .editorconfig ├── .gitignore ├── static └── scripts │ └── custom.js ├── lerna.json ├── package.json ├── jsdoc.json ├── README.md └── CHANGELOG.md /packages/svelte-figur/README.md: -------------------------------------------------------------------------------- 1 | ## svelte-figur -------------------------------------------------------------------------------- /packages/react-figur/src/react-figur/index.tsx: -------------------------------------------------------------------------------- 1 | export * from "./Figur"; -------------------------------------------------------------------------------- /demo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daybrush/figur/HEAD/demo/logo.png -------------------------------------------------------------------------------- /packages/svelte-figur/.npmrc: -------------------------------------------------------------------------------- 1 | engine-strict=true 2 | resolution-mode=highest 3 | -------------------------------------------------------------------------------- /packages/react-figur/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /packages/figur/polygon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daybrush/figur/HEAD/packages/figur/polygon.png -------------------------------------------------------------------------------- /packages/figur/src/index.umd.ts: -------------------------------------------------------------------------------- 1 | import * as Figur from "./index"; 2 | 3 | export default Figur; 4 | -------------------------------------------------------------------------------- /packages/svelte-figur/src/lib/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./figures.js"; 2 | export * from "figur"; 3 | -------------------------------------------------------------------------------- /packages/react-figur/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /packages/react-figur/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daybrush/figur/HEAD/packages/react-figur/public/favicon.ico -------------------------------------------------------------------------------- /packages/react-figur/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daybrush/figur/HEAD/packages/react-figur/public/logo192.png -------------------------------------------------------------------------------- /packages/react-figur/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daybrush/figur/HEAD/packages/react-figur/public/logo512.png -------------------------------------------------------------------------------- /packages/svelte-figur/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/daybrush/figur/HEAD/packages/svelte-figur/static/favicon.png -------------------------------------------------------------------------------- /packages/react-figur/tsconfig.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "jsx": "react" 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /packages/svelte-figur/vite.config.ts: -------------------------------------------------------------------------------- 1 | import { sveltekit } from '@sveltejs/kit/vite'; 2 | import { defineConfig } from 'vite'; 3 | 4 | export default defineConfig({ 5 | plugins: [sveltekit()] 6 | }); 7 | -------------------------------------------------------------------------------- /packages/svelte-figur/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /build 4 | /dist 5 | /.svelte-kit 6 | /package 7 | .env 8 | .env.* 9 | !.env.example 10 | vite.config.js.timestamp-* 11 | vite.config.ts.timestamp-* 12 | -------------------------------------------------------------------------------- /packages/figur/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | *.DS_Store 3 | .DS_Store 4 | doc/ 5 | dist/ 6 | release/ 7 | npm-debug.log* 8 | coverage/ 9 | jsdoc/ 10 | doc/ 11 | outjs/ 12 | declaration/ 13 | build/ 14 | .vscode/ 15 | rollup-plugin-visualizer/ -------------------------------------------------------------------------------- /packages/figur/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "removeComments": false, 5 | "declaration": true, 6 | "emitDeclarationOnly": true, 7 | "declarationDir": "declaration" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/figur/config/banner.js: -------------------------------------------------------------------------------- 1 | const pkg = require("../package.json"); 2 | module.exports = `/* 3 | Copyright (c) 2018 ${pkg.author} 4 | name: ${pkg.name} 5 | license: ${pkg.license} 6 | author: ${pkg.author} 7 | repository: ${pkg.repository.url} 8 | @version ${pkg.version} 9 | */`; -------------------------------------------------------------------------------- /packages/react-figur/src/setupTests.ts: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /packages/svelte-figur/src/lib/figures.ts: -------------------------------------------------------------------------------- 1 | import { oval, poly, rect, star } from "figur"; 2 | import { makeFigur } from "./makeFigur.js"; 3 | 4 | export const Star = makeFigur(star); 5 | export const Oval = makeFigur(oval); 6 | export const Poly = makeFigur(poly); 7 | export const Rect = makeFigur(rect); 8 | -------------------------------------------------------------------------------- /packages/figur/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | *.DS_Store 3 | .DS_Store 4 | doc/ 5 | template/ 6 | example/ 7 | karma.conf.js 8 | test/ 9 | mocha.opts 10 | Gruntfile.js 11 | webpack.*.js 12 | .travis.yml 13 | packages 14 | release/ 15 | demo/ 16 | coverage/ 17 | dist/report.html 18 | rollup-plugin-visualizer/ 19 | outjs/ -------------------------------------------------------------------------------- /packages/svelte-figur/src/app.d.ts: -------------------------------------------------------------------------------- 1 | // See https://kit.svelte.dev/docs/types#app 2 | // for information about these interfaces 3 | declare global { 4 | namespace App { 5 | // interface Error {} 6 | // interface Locals {} 7 | // interface PageData {} 8 | // interface Platform {} 9 | } 10 | } 11 | 12 | export {}; 13 | -------------------------------------------------------------------------------- /packages/figur/src/consts.ts: -------------------------------------------------------------------------------- 1 | export const TOP = "top"; 2 | export const BOTTOM = "bottom"; 3 | export const LEFT = "left"; 4 | export const RIGHT = "right"; 5 | export type DIRECTION = "top" | "bottom" | "left" | "right"; 6 | export type STROKE_LINEJOIN = "bevel" | "round" | "miter" | "miter-clip" | "arcs"; 7 | export const CLASS_NAME = "__figur"; 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [{*.js,*.ts}] 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_style = space 8 | indent_size = 4 9 | insert_final_newline = true 10 | max_line_length = 80 11 | trim_trailing_whitespace = true 12 | 13 | [{package.json,.travis.yml}] 14 | indent_style = space 15 | indent_size = 4 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | *.DS_Store 3 | .DS_Store 4 | doc/ 5 | dist/ 6 | packages/*/dist 7 | demo/dist/ 8 | release/ 9 | npm-debug.log* 10 | coverage/ 11 | jsdoc/ 12 | doc/ 13 | outjs/ 14 | declaration/ 15 | build/ 16 | .vscode/ 17 | rollup-plugin-visualizer/ 18 | statistics/ 19 | .scene_cache 20 | .scene_ch 21 | *.mp4 22 | *.webm 23 | ffmpeg -------------------------------------------------------------------------------- /packages/react-figur/src/App.test.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render, screen } from '@testing-library/react'; 3 | import App from './App'; 4 | 5 | test('renders learn react link', () => { 6 | render(); 7 | const linkElement = screen.getByText(/learn react/i); 8 | expect(linkElement).toBeInTheDocument(); 9 | }); 10 | -------------------------------------------------------------------------------- /packages/figur/.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [{*.js,*.ts}] 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_style = space 8 | indent_size = 4 9 | insert_final_newline = true 10 | max_line_length = 80 11 | trim_trailing_whitespace = true 12 | 13 | [{package.json,.travis.yml}] 14 | indent_style = space 15 | indent_size = 4 -------------------------------------------------------------------------------- /packages/svelte-figur/src/app.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | %sveltekit.head% 8 | 9 | 10 |
%sveltekit.body%
11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/react-figur/src/App.css: -------------------------------------------------------------------------------- 1 | html, 2 | body, 3 | .App { 4 | position: relative; 5 | height: 100%; 6 | } 7 | 8 | body { 9 | text-align: center; 10 | } 11 | 12 | div { 13 | text-align: center; 14 | padding: 5px; 15 | } 16 | 17 | svg { 18 | width: 100px; 19 | margin: 5px 2px; 20 | border: 1px solid #ccc; 21 | vertical-align: bottom; 22 | } 23 | 24 | svg path { 25 | transition: all ease 0.5s; 26 | } -------------------------------------------------------------------------------- /static/scripts/custom.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | window.dataLayer = window.dataLayer || []; 3 | function gtag() { dataLayer.push(arguments); } 4 | gtag('js', new Date()); 5 | 6 | gtag('config', 'G-TRBNXHQ0ZF'); 7 | var script = document.createElement("script"); 8 | 9 | script.src = "https://www.googletagmanager.com/gtag/js?id=G-TRBNXHQ0ZF"; 10 | 11 | document.body.appendChild(script); 12 | })(); 13 | -------------------------------------------------------------------------------- /packages/svelte-figur/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./.svelte-kit/tsconfig.json", 3 | "compilerOptions": { 4 | "allowJs": true, 5 | "checkJs": true, 6 | "esModuleInterop": true, 7 | "forceConsistentCasingInFileNames": true, 8 | "resolveJsonModule": true, 9 | "skipLibCheck": true, 10 | "sourceMap": true, 11 | "strict": true, 12 | "target": "ESNext", 13 | "moduleResolution": "NodeNext" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/react-figur/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /packages/react-figur/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /packages/react-figur/tsconfig.declaration.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig", 3 | "compilerOptions": { 4 | "allowJs": false, 5 | "noEmit": false, 6 | "isolatedModules": false, 7 | "removeComments": false, 8 | "declaration": true, 9 | "emitDeclarationOnly": true, 10 | "declarationDir": "declaration" 11 | }, 12 | "include": [ 13 | "./src/react-figur/*" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /packages/react-figur/src/reportWebVitals.ts: -------------------------------------------------------------------------------- 1 | import { ReportHandler } from 'web-vitals'; 2 | 3 | const reportWebVitals = (onPerfEntry?: ReportHandler) => { 4 | if (onPerfEntry && onPerfEntry instanceof Function) { 5 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 6 | getCLS(onPerfEntry); 7 | getFID(onPerfEntry); 8 | getFCP(onPerfEntry); 9 | getLCP(onPerfEntry); 10 | getTTFB(onPerfEntry); 11 | }); 12 | } 13 | }; 14 | 15 | export default reportWebVitals; 16 | -------------------------------------------------------------------------------- /packages/figur/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "./dist/", 4 | "esModuleInterop": false, 5 | "sourceMap": true, 6 | "noImplicitAny": true, 7 | "module": "es2015", 8 | "target": "es5", 9 | "declaration": false, 10 | "experimentalDecorators": true, 11 | "noUnusedLocals": true, 12 | "skipLibCheck": true, 13 | "moduleResolution": "node", 14 | "lib": [ 15 | "es2015", 16 | "dom" 17 | ], 18 | }, 19 | "include": [ 20 | "./src/**/*.ts" 21 | ], 22 | "exclude": [ 23 | "node_modules" 24 | ] 25 | } -------------------------------------------------------------------------------- /packages/react-figur/rollup.config.js: -------------------------------------------------------------------------------- 1 | const builder = require("@daybrush/builder"); 2 | 3 | const defaultOptions = { 4 | tsconfig: "tsconfig.build.json", 5 | }; 6 | 7 | module.exports = builder([{ 8 | ...defaultOptions, 9 | input: "src/react-figur/index.tsx", 10 | output: "./dist/figur.esm.js", 11 | format: "es", 12 | exports: "named", 13 | }, 14 | { 15 | ...defaultOptions, 16 | input: "src/react-figur/index.tsx", 17 | output: "./dist/figur.cjs.js", 18 | format: "cjs", 19 | exports: "named", 20 | }, 21 | ]); 22 | -------------------------------------------------------------------------------- /packages/svelte-figur/src/routes/+page.svelte: -------------------------------------------------------------------------------- 1 | 13 | 14 |
15 | 23 |
24 | -------------------------------------------------------------------------------- /packages/react-figur/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /packages/react-figur/src/index.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 4 | import App from './App'; 5 | import reportWebVitals from './reportWebVitals'; 6 | 7 | const root = ReactDOM.createRoot( 8 | document.getElementById('root') as HTMLElement 9 | ); 10 | root.render( 11 | 12 | 13 | 14 | ); 15 | 16 | // If you want to start measuring performance in your app, pass a function 17 | // to log results (for example: reportWebVitals(console.log)) 18 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 19 | reportWebVitals(); 20 | -------------------------------------------------------------------------------- /packages/react-figur/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": [ 5 | "dom", 6 | "dom.iterable", 7 | "esnext" 8 | ], 9 | "allowJs": true, 10 | "skipLibCheck": true, 11 | "esModuleInterop": true, 12 | "allowSyntheticDefaultImports": true, 13 | "strict": true, 14 | "forceConsistentCasingInFileNames": true, 15 | "noFallthroughCasesInSwitch": true, 16 | "module": "esnext", 17 | "moduleResolution": "node", 18 | "resolveJsonModule": true, 19 | "isolatedModules": true, 20 | "noEmit": true, 21 | "jsx": "react-jsx" 22 | }, 23 | "include": [ 24 | "src" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /packages/figur/config/merge.js: -------------------------------------------------------------------------------- 1 | module.exports = function merge(config1, config2, options = {}) { 2 | var config = Object.assign({}, config1); 3 | 4 | for (var key in config2) { 5 | var type = options[key]; 6 | 7 | if (type === "append") { 8 | var value1 = config1[key]; 9 | var value2 = config2[key]; 10 | 11 | if (!value1 || typeof value2 !== "object") { 12 | config[key] = config2[key]; 13 | } else if (Array.isArray(value2)) { 14 | config[key] = [].concat(value1, value2); 15 | } else { 16 | config[key] = Object.assign({}, value1, value2); 17 | } 18 | } else { 19 | config[key] = config2[key]; 20 | } 21 | } 22 | return config; 23 | } -------------------------------------------------------------------------------- /packages/svelte-figur/svelte.config.js: -------------------------------------------------------------------------------- 1 | import adapter from '@sveltejs/adapter-auto'; 2 | import { vitePreprocess } from '@sveltejs/kit/vite'; 3 | 4 | /** @type {import('@sveltejs/kit').Config} */ 5 | const config = { 6 | // Consult https://kit.svelte.dev/docs/integrations#preprocessors 7 | // for more information about preprocessors 8 | preprocess: vitePreprocess(), 9 | 10 | kit: { 11 | // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. 12 | // If your environment is not supported or you settled on a specific environment, switch out the adapter. 13 | // See https://kit.svelte.dev/docs/adapters for more information about adapters. 14 | adapter: adapter() 15 | } 16 | }; 17 | 18 | export default config; 19 | -------------------------------------------------------------------------------- /packages/figur/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "defaultSeverity": "error", 3 | "extends": ["tslint:recommended"], 4 | "rules": { 5 | "jsdoc-format": false, 6 | "forin": false, 7 | "no-console": false, 8 | "no-any": false, 9 | "indent": [true, "spaces", 2], 10 | "interface-name": false, 11 | "ordered-imports": false, 12 | "object-literal-sort-keys": false, 13 | "no-unused-expression": false, 14 | "arrow-parens": [true, "ban-single-arg-parens"], 15 | "max-line-length": [true, {"limit": 120, "ignore-pattern": "(\\* @)|//"}], 16 | "trailing-comma": [ 17 | true, 18 | { 19 | "multiline": { 20 | "objects": "always", 21 | "arrays": "always", 22 | "functions": "always", 23 | "typeLiterals": "ignore" 24 | }, 25 | "esSpecCompliant": true 26 | } 27 | ] 28 | } 29 | } -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "npmClient": "yarn", 3 | "useWorkspaces": true, 4 | "packages": [ 5 | "packages/*" 6 | ], 7 | "version": "independent", 8 | "lernaHelperOptions": { 9 | "deployFileMap": [ 10 | { 11 | "basePath": "packages/figur/dist", 12 | "dists": [ 13 | "demo/release/{{version}}/dist", 14 | "demo/release/latest/dist" 15 | ] 16 | }, 17 | { 18 | "basePath": "doc", 19 | "dists": [ 20 | "demo/release/{{version}}/doc", 21 | "demo/release/latest/doc" 22 | ] 23 | } 24 | ], 25 | "beforeReleaseScripts": [ 26 | "npm run packages:build", 27 | "npm run doc", 28 | "npm run deploy" 29 | ] 30 | } 31 | } -------------------------------------------------------------------------------- /packages/figur/rollup.config.js: -------------------------------------------------------------------------------- 1 | const builder = require("@daybrush/builder"); 2 | 3 | const external = { 4 | "@daybrush/utils": "utils", 5 | } 6 | module.exports = builder([ 7 | { 8 | input: 'src/index.ts', 9 | output: "./dist/figur.esm.js", 10 | format: "es", 11 | exports: "named", 12 | external, 13 | }, 14 | { 15 | input: 'src/index.ts', 16 | output: "./dist/figur.cjs.js", 17 | format: "cjs", 18 | exports: "named", 19 | external, 20 | }, 21 | { 22 | name: "Figur", 23 | input: "src/index.umd.ts", 24 | output: "./dist/figur.js", 25 | resolve: true, 26 | }, 27 | { 28 | name: "Figur", 29 | input: "src/index.umd.ts", 30 | output: "./dist/figur.min.js", 31 | resolve: true, 32 | uglify: true, 33 | visualizer: {}, 34 | } 35 | ]); 36 | -------------------------------------------------------------------------------- /packages/svelte-figur/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to this project will be documented in this file. 4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 5 | 6 | ## [0.0.4](https://github.com/daybrush/figur/compare/svelte-figur@0.0.2...svelte-figur@0.0.4) (2023-05-23) 7 | 8 | 9 | ### :bug: Bug Fix 10 | 11 | * fix svelte field ([e446db5](https://github.com/daybrush/figur/commit/e446db58a52cea5d5e2a7531d1ab49c3451be4da)) 12 | 13 | 14 | ### :mega: Other 15 | 16 | * publish packages ([81ebc3c](https://github.com/daybrush/figur/commit/81ebc3c3e01e85ff22fed0c5d0aaf2d1812df8f4)) 17 | 18 | 19 | 20 | ## 0.0.2 (2023-05-22) 21 | 22 | 23 | ### :rocket: New Features 24 | 25 | * add svelte-figur ([cfe201a](https://github.com/daybrush/figur/commit/cfe201a392d5839a046b54ab4589c8bf7d1706fc)) 26 | 27 | 28 | ### :mega: Other 29 | 30 | * publish packages ([248880d](https://github.com/daybrush/figur/commit/248880d0897f079a60161054e74741394e8521d9)) 31 | -------------------------------------------------------------------------------- /packages/figur/examples/poly.html: -------------------------------------------------------------------------------- 1 | 2 | 23 |
24 | 25 | 37 | -------------------------------------------------------------------------------- /packages/svelte-figur/src/lib/Figur.svelte: -------------------------------------------------------------------------------- 1 | 33 | {@html html} 34 | -------------------------------------------------------------------------------- /packages/react-figur/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to this project will be documented in this file. 4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 5 | 6 | ## [0.0.3](https://github.com/daybrush/figur/compare/react-figur@0.0.2...react-figur@0.0.3) (2023-05-23) 7 | 8 | 9 | ### :mega: Other 10 | 11 | * publish packages ([81ebc3c](https://github.com/daybrush/figur/commit/81ebc3c3e01e85ff22fed0c5d0aaf2d1812df8f4)) 12 | 13 | 14 | 15 | ## 0.0.2 (2023-05-22) 16 | 17 | 18 | ### :bug: Bug Fix 19 | 20 | * fix figur path ([17429bb](https://github.com/daybrush/figur/commit/17429bb045550f7e1e45a9ad97f3cbab8df7dc49)) 21 | 22 | 23 | ### :mega: Other 24 | 25 | * change module name ([21684fd](https://github.com/daybrush/figur/commit/21684fda75fcce455d39b4d76c9aa21575fa9cdc)) 26 | * fix figur module name ([05f415a](https://github.com/daybrush/figur/commit/05f415a6fe34ba69e3613da6bcefc47f27eef471)) 27 | * publish packages ([248880d](https://github.com/daybrush/figur/commit/248880d0897f079a60161054e74741394e8521d9)) 28 | * publish packages ([257bba3](https://github.com/daybrush/figur/commit/257bba35def6efdea1052c53c3ab4e2a2a0a2703)) 29 | -------------------------------------------------------------------------------- /packages/svelte-figur/src/lib/makeFigur.ts: -------------------------------------------------------------------------------- 1 | import type { Figur } from "figur"; 2 | import SvelteFigur from "./Figur.svelte"; 3 | import type { SvelteComponentTyped } from "svelte/internal"; 4 | import type { SVGAttributes } from "svelte/elements"; 5 | 6 | export function makeFigur(figurFunc: (figur: T) => SVGElement) { 7 | let svelteFigur: typeof SvelteComponentTyped, keyof T>>>; 8 | if (typeof SvelteFigur === "object") { 9 | svelteFigur = { 10 | ...SvelteFigur, 11 | render: (...attrs: any[]) => { 12 | return SvelteFigur.render(...attrs); 13 | }, 14 | $$render: (...attrs: any[]) => { 15 | attrs[1] = { 16 | ...attrs[1], 17 | figurFunc, 18 | }; 19 | return SvelteFigur.$$render(...attrs); 20 | }, 21 | }; 22 | } else { 23 | svelteFigur = class SvelteStar extends SvelteFigur { 24 | constructor(options: any) { 25 | options.props.figurFunc = figurFunc; 26 | super(options); 27 | } 28 | } as any; 29 | } 30 | 31 | return svelteFigur; 32 | } 33 | -------------------------------------------------------------------------------- /packages/figur/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "figur", 3 | "version": "0.0.3", 4 | "description": "Make svg polygon & star shape", 5 | "main": "dist/figur.cjs.js", 6 | "module": "dist/figur.esm.js", 7 | "sideEffects": false, 8 | "types": "declaration/index.d.ts", 9 | "keywords": [ 10 | "shape", 11 | "figure", 12 | "figur", 13 | "svg", 14 | "triangle", 15 | "js", 16 | "tri", 17 | "poly", 18 | "polygon", 19 | "star" 20 | ], 21 | "files": [ 22 | "./*", 23 | "dist/*", 24 | "declaration/*" 25 | ], 26 | "scripts": { 27 | "test": "echo \"Error: no test specified\" && exit 1", 28 | "dev": "rollup -c rollup.config.dev.js -w", 29 | "build": "npm run build:rollup && npm run declaration", 30 | "declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json", 31 | "build:rollup": "rollup -c" 32 | }, 33 | "repository": { 34 | "type": "git", 35 | "url": "https://github.com/daybrush/figur" 36 | }, 37 | "author": "Daybrush", 38 | "license": "MIT", 39 | "bugs": { 40 | "url": "https://github.com/daybrush/figur/issues" 41 | }, 42 | "homepage": "https://github.com/daybrush/figur#readme", 43 | "devDependencies": { 44 | "@daybrush/builder": "^0.2.0", 45 | "string-replace": "^0.2.0", 46 | "tslint": "^5.11.0", 47 | "typescript": "^4.5.0 <4.6.0", 48 | "tslib": "^2.4.1" 49 | }, 50 | "dependencies": { 51 | "@daybrush/utils": "^1.10.2" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /packages/figur/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to this project will be documented in this file. 4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 5 | 6 | ## [0.0.3](https://github.com/daybrush/figur/compare/figur@0.0.2...figur@0.0.3) (2023-05-23) 7 | 8 | 9 | ### :bug: Bug Fix 10 | 11 | * fix className ([18ce717](https://github.com/daybrush/figur/commit/18ce717c9785f80a6f012af2a4b7c9403a243372)) 12 | 13 | 14 | ### :mega: Other 15 | 16 | * publish packages ([81ebc3c](https://github.com/daybrush/figur/commit/81ebc3c3e01e85ff22fed0c5d0aaf2d1812df8f4)) 17 | 18 | 19 | 20 | ## 0.0.2 (2023-05-22) 21 | 22 | 23 | ### :rocket: New Features 24 | 25 | * add innerHTML, outerHTML polyfill ([116b328](https://github.com/daybrush/figur/commit/116b328d20b3ec0d8e74f1e2858a133af7dc4cc3)) 26 | 27 | 28 | ### :bug: Bug Fix 29 | 30 | * fix figur path ([17429bb](https://github.com/daybrush/figur/commit/17429bb045550f7e1e45a9ad97f3cbab8df7dc49)) 31 | 32 | 33 | ### :mega: Other 34 | 35 | * change module name ([21684fd](https://github.com/daybrush/figur/commit/21684fda75fcce455d39b4d76c9aa21575fa9cdc)) 36 | * fix figur module name ([05f415a](https://github.com/daybrush/figur/commit/05f415a6fe34ba69e3613da6bcefc47f27eef471)) 37 | * publish packages ([248880d](https://github.com/daybrush/figur/commit/248880d0897f079a60161054e74741394e8521d9)) 38 | * publish packages ([257bba3](https://github.com/daybrush/figur/commit/257bba35def6efdea1052c53c3ab4e2a2a0a2703)) 39 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "figur-root", 3 | "version": "0.0.0", 4 | "description": "Make svg polygon & star shape", 5 | "sideEffects": false, 6 | "private": true, 7 | "repository": { 8 | "type": "git", 9 | "url": "https://github.com/daybrush/figur.git" 10 | }, 11 | "keywords": [ 12 | "shape", 13 | "svg", 14 | "triangle", 15 | "js", 16 | "tri", 17 | "poly", 18 | "polygon", 19 | "star" 20 | ], 21 | "author": "Daybrush", 22 | "license": "MIT", 23 | "bugs": { 24 | "url": "https://github.com/daybrush/figur/issues" 25 | }, 26 | "homepage": "https://daybrush.com/figur", 27 | "scripts": { 28 | "packages:update": "lerna-helper version", 29 | "packages:build": "lerna run build", 30 | "packages:publish": "lerna-helper publish --commit 'chore: publish packages'", 31 | "changelog": "lerna-helper changelog --type all --base figur", 32 | "doc": "rm -rf ./doc && jsdoc -c jsdoc.json", 33 | "deploy": "lerna-helper deploy --base figur", 34 | "release": "lerna-helper release --base figur" 35 | }, 36 | "devDependencies": { 37 | "@daybrush/jsdoc": "^0.4.4", 38 | "@daybrush/release": "^0.7.1", 39 | "daybrush-jsdoc-template": "^1.8.0", 40 | "lerna": "^4.0.0", 41 | "typescript": "^4.5.0 <4.6.0" 42 | }, 43 | "workspaces": { 44 | "packages": [ 45 | "packages/*" 46 | ] 47 | } 48 | } -------------------------------------------------------------------------------- /packages/figur/examples/index.html: -------------------------------------------------------------------------------- 1 | 2 | 21 | https://github.com/daybrush/figur 22 |
23 |
24 |
25 |
26 | 43 | -------------------------------------------------------------------------------- /packages/svelte-figur/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "svelte-figur", 3 | "version": "0.0.4", 4 | "description": "Make svg polygon & star shape for React", 5 | "type": "module", 6 | "svelte": "dist/index.js", 7 | "sideEffects": false, 8 | "types": "dist/index.d.ts", 9 | "keywords": [ 10 | "shape", 11 | "svg", 12 | "triangle", 13 | "js", 14 | "tri", 15 | "poly", 16 | "polygon", 17 | "star" 18 | ], 19 | "files": [ 20 | "./*", 21 | "dist/*", 22 | "declaration/*" 23 | ], 24 | "repository": { 25 | "type": "git", 26 | "url": "https://github.com/daybrush/figur" 27 | }, 28 | "author": "Daybrush", 29 | "license": "MIT", 30 | "bugs": { 31 | "url": "https://github.com/daybrush/figur/issues" 32 | }, 33 | "homepage": "https://github.com/daybrush/figur#readme", 34 | "dependencies": { 35 | "@daybrush/utils": "^1.10.2", 36 | "figur": "~0.0.3" 37 | }, 38 | "scripts": { 39 | "dev": "vite dev", 40 | "build": "vite build && npm run package", 41 | "preview": "vite preview", 42 | "package": "svelte-kit sync && svelte-package && publint", 43 | "prepublishOnly": "npm run package", 44 | "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", 45 | "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" 46 | }, 47 | "exports": { 48 | ".": { 49 | "types": "./dist/index.d.ts", 50 | "svelte": "./dist/index.js" 51 | } 52 | }, 53 | "peerDependencies": { 54 | "svelte": "^3.54.0" 55 | }, 56 | "devDependencies": { 57 | "@sveltejs/adapter-auto": "^2.0.0", 58 | "@sveltejs/kit": "^1.5.0", 59 | "@sveltejs/package": "^2.0.0", 60 | "publint": "^0.1.9", 61 | "svelte": "^3.54.0", 62 | "svelte-check": "^3.0.1", 63 | "tslib": "^2.4.1", 64 | "typescript": "^5.0.0", 65 | "vite": "^4.3.0" 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /jsdoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [], 3 | "recurseDepth": 10, 4 | "opts": { 5 | "template": "./node_modules/daybrush-jsdoc-template", 6 | "destination": "./doc/" 7 | }, 8 | "source": { 9 | "include": [ 10 | "./packages/figur/src/", 11 | "./README.md" 12 | ], 13 | "includePattern": "(.+\\.js(doc|x)?|.+\\.ts(doc|x)?)$", 14 | "excludePattern": "(^|\\/|\\\\)_" 15 | }, 16 | "sourceType": "module", 17 | "tags": { 18 | "allowUnknownTags": true, 19 | "dictionaries": [ 20 | "jsdoc", 21 | "closure" 22 | ] 23 | }, 24 | "templates": { 25 | "cleverLinks": false, 26 | "monospaceLinks": false, 27 | "default": { 28 | "staticFiles": { 29 | "include": [ 30 | "./static" 31 | ] 32 | } 33 | } 34 | }, 35 | "linkMap": { 36 | "Animator": "https://daybrush.com/scenejs/release/latest/doc/Animator.html", 37 | "AnimatorOptions": "https://daybrush.com/scenejs/release/latest/doc/global.html#AnimatorOptions", 38 | "IObject": "http://daybrush.com/utils/release/latest/doc/global.html#ObjectInterface" 39 | }, 40 | "docdash": { 41 | "menu": { 42 | "Github repo": { 43 | "href": "https://github.com/daybrush/scenejs-render", 44 | "target": "_blank", 45 | "class": "menu-item", 46 | "id": "repository" 47 | }, 48 | "Features": { 49 | "href": "https://daybrush.com/scenejs/features.html", 50 | "target": "_blank", 51 | "class": "menu-item", 52 | "id": "features" 53 | } 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /packages/react-figur/src/App.tsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect } from 'react'; 2 | import { be } from 'figur'; 3 | import './App.css'; 4 | import { Poly, Star } from './react-figur/Figur'; 5 | 6 | function App() { 7 | var colors = ["#f55", "#277EC9", "#80449D", "#D6631C", "#B8EDA0", "#B7EFF1", "#333"]; 8 | var linejoins = ["bevel", "arcs", "round", "miter", "miter-clip"] as const; 9 | const polies: JSX.Element[] = []; 10 | const stars: JSX.Element[] = []; 11 | const polies2: JSX.Element[] = []; 12 | 13 | for (var side = 3; side <= 10; ++side) { 14 | polies.push(); 15 | stars.push(); 16 | polies2.push(); 26 | } 27 | useEffect(() => { 28 | setTimeout(function () { 29 | var polygons = document.querySelectorAll("#poly2 path"); 30 | for (var side = 3; side <= 10; ++side) { 31 | be(polygons[side - 3], { 32 | side: side, css: true, split: side % 2 ? 1 : 2, 33 | innerRadius: side % 2 ? 30 : 100, strokeWidth: 5, 34 | stroke: colors[(side + 1) % 7], height: 100, 35 | }) 36 | } 37 | }, 1000); 38 | }, []) 39 | return ( 40 |
41 |
42 | {polies} 43 |
44 |
45 | {stars} 46 |
47 |
48 | {polies2} 49 |
50 |
51 | ); 52 | } 53 | 54 | export default App; 55 | -------------------------------------------------------------------------------- /packages/react-figur/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /packages/figur/rollup.config.dev.js: -------------------------------------------------------------------------------- 1 | import typescript from 'rollup-plugin-typescript'; 2 | import PrototypeMinify from "rollup-plugin-prototype-minify"; 3 | import replace from "rollup-plugin-replace"; 4 | import resolve from "rollup-plugin-node-resolve"; 5 | import { uglify } from "rollup-plugin-uglify"; 6 | 7 | const pkg = require("./package.json"); 8 | const banner = require("./config/banner"); 9 | const merge = require("./config/merge"); 10 | const plugin = typescript({ 11 | "module": "es2015", 12 | "target": "es3", 13 | "lib": ["es2015", "dom"], 14 | "exclude": "node_modules/**", 15 | "sourceMap": true, 16 | }); 17 | const uglifyCode = uglify({ 18 | sourcemap: true, 19 | output: { 20 | comments: function (node, comment) { 21 | var text = comment.value; 22 | var type = comment.type; 23 | if (type === "comment2") { 24 | // multiline comment 25 | return /name:\sfigur/.test(text); 26 | } 27 | }, 28 | }, 29 | }); 30 | const defaultConfig = { 31 | plugins: [ 32 | plugin, 33 | replace({ 34 | "#__VERSION__#": pkg.version, 35 | "/** @class */": "/*#__PURE__*/", 36 | delimiters: ["", ""], 37 | }), 38 | PrototypeMinify({ sourcemap: true }) 39 | ], 40 | output: { 41 | banner, 42 | format: "es", 43 | freeze: false, 44 | exports: "named", 45 | interop: false, 46 | sourcemap: true, 47 | }, 48 | }; 49 | 50 | export default [ 51 | { 52 | input: 'src/index.umd.ts', 53 | plugins: [resolve()], 54 | output: { 55 | format: "umd", 56 | name: "Shape", 57 | exports: "default", 58 | file: `./dist/shape.js`, 59 | }, 60 | }, { 61 | input: 'src/index.umd.ts', 62 | plugins: [resolve(), uglifyCode], 63 | output: { 64 | format: "umd", 65 | name: "Shape", 66 | exports: "default", 67 | file: `./dist/shape.min.js`, 68 | }, 69 | } 70 | ].map(entry => merge(defaultConfig, entry, { 71 | plugins: "append", 72 | output: "append", 73 | })); 74 | -------------------------------------------------------------------------------- /packages/react-figur/README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 13 | 14 | The page will reload if you make edits.\ 15 | You will also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 35 | 36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 39 | 40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | -------------------------------------------------------------------------------- /packages/react-figur/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-figur", 3 | "version": "0.0.3", 4 | "description": "Make svg polygon & star shape for React", 5 | "main": "dist/figur.cjs.js", 6 | "module": "dist/figur.esm.js", 7 | "sideEffects": false, 8 | "types": "declaration/index.d.ts", 9 | "keywords": [ 10 | "shape", 11 | "svg", 12 | "triangle", 13 | "js", 14 | "tri", 15 | "poly", 16 | "polygon", 17 | "star" 18 | ], 19 | "files": [ 20 | "./*", 21 | "dist/*", 22 | "declaration/*" 23 | ], 24 | "repository": { 25 | "type": "git", 26 | "url": "https://github.com/daybrush/figur" 27 | }, 28 | "author": "Daybrush", 29 | "license": "MIT", 30 | "bugs": { 31 | "url": "https://github.com/daybrush/figur/issues" 32 | }, 33 | "homepage": "https://github.com/daybrush/figur#readme", 34 | "dependencies": { 35 | "@daybrush/utils": "^1.10.2", 36 | "figur": "~0.0.3" 37 | }, 38 | "devDependencies": { 39 | "@daybrush/builder": "^0.2.0", 40 | "@testing-library/jest-dom": "^5.16.5", 41 | "@testing-library/react": "^13.4.0", 42 | "@testing-library/user-event": "^13.5.0", 43 | "@types/jest": "^27.5.2", 44 | "@types/node": "^16.18.11", 45 | "@types/react": "^18.0.26", 46 | "@types/react-dom": "^18.0.10", 47 | "react": "^18.2.0", 48 | "react-dom": "^18.2.0", 49 | "react-scripts": "5.0.1", 50 | "typescript": "^4.5.0 <4.6.0", 51 | "web-vitals": "^2.1.4" 52 | }, 53 | "scripts": { 54 | "start": "react-scripts start", 55 | "build": "rollup -c && npm run declaration", 56 | "declaration": "rm -rf declaration && tsc -p tsconfig.declaration.json", 57 | "test": "react-scripts test", 58 | "eject": "react-scripts eject" 59 | }, 60 | "eslintConfig": { 61 | "extends": [ 62 | "react-app", 63 | "react-app/jest" 64 | ] 65 | }, 66 | "browserslist": { 67 | "production": [ 68 | ">0.2%", 69 | "not dead", 70 | "not op_mini all" 71 | ], 72 | "development": [ 73 | "last 1 chrome version", 74 | "last 1 firefox version", 75 | "last 1 safari version" 76 | ] 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /packages/react-figur/src/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # figur [![npm version](https://badge.fury.io/js/shape.svg)](https://badge.fury.io/js/figur) 2 | 3 | ![](./polygon.png) 4 | 5 | Make CSS Polygon Shape 6 | 7 | * [Polygons & Stars Demo](https://codepen.io/daybrush/pen/ReYxLy) 8 | 9 | ```sh 10 | $ npm install figur 11 | ``` 12 | 13 | ## Options 14 | ```ts 15 | import {poly, star} from "figur"; 16 | 17 | import { CLASS_NAME, STROKE_LINEJOIN } from "./consts"; 18 | 19 | export interface Shape { 20 | left?: number; 21 | top?: number; 22 | right?: number; 23 | bottom?: number; 24 | width?: number; 25 | heigh?t: number; 26 | fill?: string; 27 | strokeLinejoin?: STROKE_LINEJOIN; 28 | strokeWidth?: number; 29 | className?: string; 30 | origin?: string | number; 31 | [key: string]: any; 32 | } 33 | export interface RoundRectShape extends Shape { 34 | round?: number; 35 | css?: boolean; 36 | } 37 | export interface PolyShape extends Shape { 38 | side?: number; 39 | split?: number; 40 | css?: boolean; 41 | innerRadius?: number; 42 | } 43 | export interface OvalShape extends Shape { 44 | r?: number; 45 | rx?: number; 46 | ry?: number; 47 | } 48 | 49 | export function getPath(points: number[][]): string; // path('M 0 0 L 0 0 Z'); 50 | export function be(path: SVGPathElement, options: PolyShape, container?: SVGElement): void; 51 | export function star(options: PolyShape, container?: SVGElement): SVGElement; 52 | export function poly(options: PolyShape, container?: SVGElement): SVGElement; 53 | export function oval(options: OvalShape, container?: SVGElement): SVGElement; 54 | export function rect(options: RoundRectShape, container?: SVGElement): SVGElement; 55 | ``` 56 | 57 | 58 | ## How to Use 59 | ```html 60 | 61 | 62 | ``` 63 | ```js 64 | import {poly, star, be} from "figur"; 65 | 66 | // 10 star 67 | // Shape.poly 68 | const el = poly({width: 100, side: 10, strokeWidth: 5, fill: "transparent", strokeLinejoin: "round"}); 69 | // Shape.star 70 | const el = star({width: 100, css: true, side: 10, innerRadius: 30, strokeWidth: 5, strokeLinejoin: "bavel"}); 71 | 72 | document.body.appendChild(el); 73 | 74 | // Shape.be 75 | // 10 star => 5 polygon (split 4) 76 | be(el, {width: 100, side: 5, css: true, split: 4, innerRadius: 30, strokeWidth: 5, strokeLinejoin: "bavel"}); 77 | 78 | ``` 79 | 80 | ## Animation(Transition) 81 | use ```be``` function with ```{css: true}``` or change `d path` syle. 82 | 83 | but ```side``` X ```split``` must be the same to be animated. (```star```(inner-radius) is ```split``` twice) 84 | 85 | * ex) poly side: 6 86 | * star side: 3 87 | * poly side: 3, split: 2 88 | * ex) poly side: 12, split: 2 89 | * star side: 4, split: 3 90 | * star side: 3, split: 4 91 | * poly side: 6, split: 4 92 | * poly side: 24, split: 1 -------------------------------------------------------------------------------- /packages/figur/README.md: -------------------------------------------------------------------------------- 1 | # figur [![npm version](https://badge.fury.io/js/shape.svg)](https://badge.fury.io/js/figur) 2 | 3 | ![](./polygon.png) 4 | 5 | Make CSS Polygon Shape 6 | 7 | * [Polygons & Stars Demo](https://codepen.io/daybrush/pen/ReYxLy) 8 | 9 | ```sh 10 | $ npm install figur 11 | # or 12 | $ yarn add figur 13 | ``` 14 | 15 | ## Options 16 | ```ts 17 | import {poly, star} from "figur"; 18 | 19 | import { CLASS_NAME, STROKE_LINEJOIN } from "./consts"; 20 | 21 | export interface Shape { 22 | left?: number; 23 | top?: number; 24 | right?: number; 25 | bottom?: number; 26 | width?: number; 27 | heigh?t: number; 28 | fill?: string; 29 | strokeLinejoin?: STROKE_LINEJOIN; 30 | strokeWidth?: number; 31 | className?: string; 32 | origin?: string | number; 33 | [key: string]: any; 34 | } 35 | export interface RoundRectShape extends Shape { 36 | round?: number; 37 | css?: boolean; 38 | } 39 | export interface PolyShape extends Shape { 40 | side?: number; 41 | split?: number; 42 | css?: boolean; 43 | innerRadius?: number; 44 | } 45 | export interface OvalShape extends Shape { 46 | r?: number; 47 | rx?: number; 48 | ry?: number; 49 | } 50 | 51 | export function getPath(points: number[][]): string; // path('M 0 0 L 0 0 Z'); 52 | export function be(path: SVGPathElement, options: PolyShape, container?: SVGElement): void; 53 | export function star(options: PolyShape, container?: SVGElement): SVGElement; 54 | export function poly(options: PolyShape, container?: SVGElement): SVGElement; 55 | export function oval(options: OvalShape, container?: SVGElement): SVGElement; 56 | export function rect(options: RoundRectShape, container?: SVGElement): SVGElement; 57 | ``` 58 | 59 | 60 | ## How to Use 61 | ```html 62 | 63 | 64 | ``` 65 | ```js 66 | import {poly, star, be} from "figur"; 67 | 68 | // 10 star 69 | // Shape.poly 70 | const el = poly({width: 100, side: 10, strokeWidth: 5, fill: "transparent", strokeLinejoin: "round"}); 71 | // Shape.star 72 | const el = star({width: 100, css: true, side: 10, innerRadius: 30, strokeWidth: 5, strokeLinejoin: "bavel"}); 73 | 74 | document.body.appendChild(el); 75 | 76 | // Shape.be 77 | // 10 star => 5 polygon (split 4) 78 | be(el, {width: 100, side: 5, css: true, split: 4, innerRadius: 30, strokeWidth: 5, strokeLinejoin: "bavel"}); 79 | 80 | ``` 81 | 82 | ## Animation(Transition) 83 | use ```be``` function with ```{css: true}``` or change `d path` syle. 84 | 85 | but ```side``` X ```split``` must be the same to be animated. (```star```(inner-radius) is ```split``` twice) 86 | 87 | * ex) poly side: 6 88 | * star side: 3 89 | * poly side: 3, split: 2 90 | * ex) poly side: 12, split: 2 91 | * star side: 4, split: 3 92 | * star side: 3, split: 4 93 | * poly side: 6, split: 4 94 | * poly side: 24, split: 1 -------------------------------------------------------------------------------- /packages/react-figur/src/react-figur/Figur.tsx: -------------------------------------------------------------------------------- 1 | /* eslint-disable react-hooks/exhaustive-deps */ 2 | 3 | import { camelize } from "@daybrush/utils"; 4 | import * as React from "react"; 5 | import { oval, OvalFigur, poly, PolyFigur, rect, RoundRectFigur, FigurDOM, star } from "figur"; 6 | 7 | function elementToJsx( 8 | element: FigurDOM, 9 | key: string | number | null = null, 10 | reactStyle: React.CSSProperties = {}, 11 | ref: React.ForwardedRef | null = null, 12 | ): JSX.Element { 13 | const TagName = element.tagName.toLowerCase() as any; 14 | const attributes = element.attributes; 15 | const attributesLength = attributes.length; 16 | const attributesProps: Record = {}; 17 | const children = element.children; 18 | const childrenLength = children.length; 19 | let className: any = element.className; 20 | const elementStyle = element.style!; 21 | const style: React.CSSProperties = { 22 | ...reactStyle, 23 | }; 24 | const jsxChildren: JSX.Element[] = []; 25 | const styleLength = elementStyle!.length; 26 | 27 | for (let i = 0; i < styleLength; ++i) { 28 | const name = elementStyle.item(i); 29 | 30 | (style as any)[camelize(name)] = elementStyle.getPropertyValue(name); 31 | } 32 | for (let i = 0; i < attributesLength; ++i) { 33 | const name = camelize(attributes.item(i)!.name); 34 | 35 | if (name === "class") { 36 | continue; 37 | } 38 | attributesProps[camelize(attributes.item(i)!.name)] = attributes.item(i)!.value; 39 | } 40 | 41 | 42 | for (let i = 0; i < childrenLength; ++i) { 43 | jsxChildren.push(elementToJsx(children[i], i)); 44 | } 45 | 46 | 47 | if (className && "baseVal" in className) { 48 | className = className.baseVal; 49 | } 50 | return 51 | {jsxChildren} 52 | ; 53 | } 54 | 55 | export interface OvalProps extends OvalFigur { 56 | style?: React.CSSProperties; 57 | } 58 | 59 | export const Oval = React.forwardRef((props, ref) => { 60 | const { style, ...shape } = props; 61 | const ovalShape = React.useMemo(() => oval(shape) as FigurDOM, []); 62 | 63 | return elementToJsx(ovalShape, null, style, ref); 64 | }); 65 | Oval.displayName = "Oval"; 66 | 67 | export interface PolyProps extends PolyFigur { 68 | style?: React.CSSProperties; 69 | } 70 | 71 | export const Poly = React.forwardRef((props, ref) => { 72 | const { style, ...shape } = props; 73 | const polyShape = React.useMemo(() => poly(shape) as FigurDOM, []); 74 | 75 | return elementToJsx(polyShape, null, style, ref); 76 | }); 77 | 78 | Poly.displayName = "Poly"; 79 | 80 | export interface StarProps extends PolyFigur { 81 | style?: React.CSSProperties; 82 | } 83 | export const Star = React.forwardRef((props, ref) => { 84 | const { style, ...shape } = props; 85 | const starShape = React.useMemo(() => star(shape) as FigurDOM, []); 86 | 87 | return elementToJsx(starShape, null, style, ref); 88 | }); 89 | 90 | Star.displayName = "Star"; 91 | 92 | 93 | export interface RectProps extends RoundRectFigur { 94 | style?: React.CSSProperties; 95 | } 96 | export const Rect = React.forwardRef((props, ref) => { 97 | const { style, ...shape } = props; 98 | const rectShape = React.useMemo(() => rect(shape) as FigurDOM, []); 99 | 100 | return elementToJsx(rectShape, null, style, ref); 101 | }); 102 | 103 | Rect.displayName = "Rect"; 104 | 105 | export interface RawProps { 106 | FigurDOM: FigurDOM; 107 | style?: React.CSSProperties; 108 | } 109 | 110 | export const Raw = React.forwardRef((props, ref) => { 111 | const rectShape = React.useMemo(() => props.FigurDOM, []); 112 | 113 | return elementToJsx(rectShape, null, props.style, ref); 114 | }); 115 | 116 | Raw.displayName = "Raw"; 117 | -------------------------------------------------------------------------------- /packages/figur/src/VirtualDOM.ts: -------------------------------------------------------------------------------- 1 | import { camelize, getKeys, splitText } from "@daybrush/utils"; 2 | 3 | export interface FigurDOM { 4 | tagName: string; 5 | setAttribute(name: string, value: string): void; 6 | getAttribute(name: string): string | null; 7 | appendChild(node: T): T; 8 | appendChild(node: T): T; 9 | children: { 10 | [index: number]: FigurDOM; 11 | length: number; 12 | }; 13 | className: string; 14 | attributes: FigurAttributes; 15 | innerHTML: string; 16 | outerHTML: string; 17 | style?: { 18 | cssText: string; 19 | item(index: number): string; 20 | getPropertyValue(name: string): string; 21 | [index: number]: string; 22 | readonly length: number; 23 | }; 24 | } 25 | 26 | export interface FigurAttr { 27 | name: string; 28 | value: string; 29 | } 30 | 31 | export interface FigurAttributes { 32 | item(number: number): FigurAttr | null; 33 | length: number; 34 | [index: number]: FigurAttr; 35 | } 36 | 37 | 38 | function splitStyle(str: string) { 39 | const properties = splitText(str, ";"); 40 | const obj: Record = {}; 41 | const totalLength = properties.length; 42 | let length = totalLength; 43 | 44 | for (let i = 0; i < totalLength; ++i) { 45 | const matches = splitText(properties[i], ":"); 46 | 47 | if (matches.length < 2 || !matches[1]) { 48 | --length; 49 | continue; 50 | } 51 | obj[camelize(matches[0].trim())] = matches[1].trim(); 52 | } 53 | return { 54 | styles: obj, 55 | length 56 | }; 57 | } 58 | 59 | 60 | export function createVirtualDOM(tagName: string): FigurDOM { 61 | const attrs: FigurAttr[] = []; 62 | const attributeMap: Record = {}; 63 | const attributes: FigurAttributes = { 64 | item(index: number): FigurAttr | null { 65 | return attrs[index] || null; 66 | }, 67 | get length() { 68 | return attrs.length; 69 | }, 70 | }; 71 | 72 | let styles: Record = {}; 73 | let keys: string[] = []; 74 | 75 | const style: FigurDOM["style"] = { 76 | get length() { 77 | return keys.length; 78 | }, 79 | getPropertyValue(name: string) { 80 | return styles[name]; 81 | }, 82 | item(index: number) { 83 | return styles[keys[index]]; 84 | }, 85 | get cssText() { 86 | return keys.map(key => `${key}: ${styles[key]};`).join(""); 87 | }, 88 | set cssText(text: string) { 89 | const { styles: nextStyles } = splitStyle(text); 90 | 91 | styles = nextStyles; 92 | keys = getKeys(styles); 93 | }, 94 | }; 95 | const children: FigurDOM[] = []; 96 | 97 | function innerHTML() { 98 | return children.map(child => child.outerHTML).join(""); 99 | } 100 | function getAttribute(name: string) { 101 | return attributeMap[name]?.value ?? null; 102 | } 103 | function setAttribute(name: string, value: string) { 104 | if (!attributeMap[name]) { 105 | const attr = { 106 | name, 107 | value, 108 | }; 109 | attrs.push(attr); 110 | attributeMap[name] = attr; 111 | } 112 | attributeMap[name].value = value; 113 | } 114 | return { 115 | tagName, 116 | attributes, 117 | children, 118 | get className() { 119 | return getAttribute("class") || ""; 120 | }, 121 | set className(nextClassName: string) { 122 | setAttribute("class", nextClassName); 123 | }, 124 | get innerHTML() { 125 | return innerHTML(); 126 | }, 127 | get outerHTML() { 128 | const html = innerHTML(); 129 | const length = attributes.length; 130 | const attrTexts: string[] = []; 131 | 132 | for (let i = 0; i < length; ++i) { 133 | const attr = attributes.item(i); 134 | 135 | attrTexts.push(` ${attr.name}="${attr.value}"`); 136 | } 137 | return `<${tagName}${attrTexts.join("")}>${html}`; 138 | }, 139 | appendChild(child: FigurDOM) { 140 | children.push(child); 141 | }, 142 | getAttribute, 143 | setAttribute, 144 | style, 145 | }; 146 | } 147 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to this project will be documented in this file. 4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 5 | 6 | ## [0.0.3](https://github.com/daybrush/figur/compare/0.0.2...0.0.3) (2023-05-23) 7 | ### :sparkles: Packages 8 | * `figur` 0.0.3 9 | * `react-figur` 0.0.3 10 | * `svelte-figur` 0.0.4 11 | 12 | 13 | ### :bug: Bug Fix 14 | 15 | * `figur` 16 | * fix className ([18ce717](https://github.com/daybrush/figur/commit/18ce717c9785f80a6f012af2a4b7c9403a243372)) 17 | * `svelte-figur` 18 | * fix svelte field ([e446db5](https://github.com/daybrush/figur/commit/e446db58a52cea5d5e2a7531d1ab49c3451be4da)) 19 | 20 | 21 | ### :mega: Other 22 | 23 | * All 24 | * publish packages ([81ebc3c](https://github.com/daybrush/figur/commit/81ebc3c3e01e85ff22fed0c5d0aaf2d1812df8f4)) 25 | 26 | 27 | 28 | ## 0.0.2 (2023-05-22) 29 | ### :sparkles: Packages 30 | * `figur` 0.0.2 31 | * `react-figur` 0.0.2 32 | * `svelte-figur` 0.0.2 33 | 34 | 35 | ### :rocket: New Features 36 | 37 | * `figur` 38 | * add innerHTML, outerHTML polyfill ([116b328](https://github.com/daybrush/figur/commit/116b328d20b3ec0d8e74f1e2858a133af7dc4cc3)) 39 | * `svelte-figur` 40 | * add svelte-figur ([cfe201a](https://github.com/daybrush/figur/commit/cfe201a392d5839a046b54ab4589c8bf7d1706fc)) 41 | * Other 42 | * add className option ([eb65765](https://github.com/daybrush/figur/commit/eb65765c11c5acefff7719dff06fd5ec8530e489)) 43 | * add oval, rect shape ([3d674e4](https://github.com/daybrush/figur/commit/3d674e41a11b3fe184b0f35d9f32c39b2c028623)) 44 | * add react-shape-svg ([b23e87f](https://github.com/daybrush/figur/commit/b23e87ff4a0b3d6e0a7cf58677449cdfbb201326)) 45 | * add style ([9e187a4](https://github.com/daybrush/figur/commit/9e187a40c4f269247212f6bd614c660a33c73e21)) 46 | * **shape-svg:** add be function ([93dd59d](https://github.com/daybrush/figur/commit/93dd59dc4387da226b0e38faf11eab970ad6f0e3)) 47 | * **shape-svg:** add shape-svg ([6f7c48c](https://github.com/daybrush/figur/commit/6f7c48cf98756a8c9281e85831dd2dab0648ac14)) 48 | 49 | 50 | ### :bug: Bug Fix 51 | 52 | * `react-figur`, `figur` 53 | * fix figur path ([17429bb](https://github.com/daybrush/figur/commit/17429bb045550f7e1e45a9ad97f3cbab8df7dc49)) 54 | * Other 55 | * fix boxWidth, boxHeight ([4a1be8c](https://github.com/daybrush/figur/commit/4a1be8cafcfd6ec052e470b66a68c82c14bddaed)) 56 | * fix className ([f19c267](https://github.com/daybrush/figur/commit/f19c267eb9884657d25fd01e5978a619527c4270)) 57 | * fix filename ([d0c423a](https://github.com/daybrush/figur/commit/d0c423afe80fd5a37f137a5731673c6ce25c7df2)) 58 | * fix filename ([54fc289](https://github.com/daybrush/figur/commit/54fc2893e86d2d33a846e1f5c7a64f443c58d3d6)) 59 | * fix interface width height optional ([b1a7400](https://github.com/daybrush/figur/commit/b1a74009a2185abe327785ca10bb4b01a1463ad3)) 60 | * fix oval for wrong rx, ry ([f7230a5](https://github.com/daybrush/figur/commit/f7230a5afd1852f8b035ffd47f56731bdc491132)) 61 | * fix release script ([ea45b32](https://github.com/daybrush/figur/commit/ea45b324e5d0c210152daa094142d85c079d95c3)) 62 | * fix release scripts ([e01a08f](https://github.com/daybrush/figur/commit/e01a08fd2145e69332d9034804e3211b41f45e65)) 63 | * fix shape ([6f0e6fb](https://github.com/daybrush/figur/commit/6f0e6fb3353f44666be2fea005a0832d8e31be6f)) 64 | * **shape-svg:** fix README ([5990737](https://github.com/daybrush/figur/commit/5990737e6e79eea3dcb40b8b0456a7b8863fb25e)) 65 | * **shape-svg:** fix set css ([972c9cb](https://github.com/daybrush/figur/commit/972c9cbcecc1b737ee1576ed5dd18572388745ac)) 66 | * **shape-svg:** fix width default value ([adfff8c](https://github.com/daybrush/figur/commit/adfff8c723a0ca6fad03042b27fc8fdc7b413b04)) 67 | * update ([7ae060b](https://github.com/daybrush/figur/commit/7ae060baecdca5ae752ba14e8b4c58e49a64e39a)) 68 | 69 | 70 | ### :memo: Documentation 71 | 72 | * fix README ([1237fde](https://github.com/daybrush/figur/commit/1237fde164dc65360c241be65c35eb971a43e104)) 73 | 74 | 75 | ### :mega: Other 76 | 77 | * All 78 | * publish packages ([248880d](https://github.com/daybrush/figur/commit/248880d0897f079a60161054e74741394e8521d9)) 79 | * `react-figur`, `figur` 80 | * change module name ([21684fd](https://github.com/daybrush/figur/commit/21684fda75fcce455d39b4d76c9aa21575fa9cdc)) 81 | * fix figur module name ([05f415a](https://github.com/daybrush/figur/commit/05f415a6fe34ba69e3613da6bcefc47f27eef471)) 82 | * publish packages ([257bba3](https://github.com/daybrush/figur/commit/257bba35def6efdea1052c53c3ab4e2a2a0a2703)) 83 | * Other 84 | * apply lerna ([bb3e374](https://github.com/daybrush/figur/commit/bb3e374d1ed69de3ea3ad6e5fa2a7f95ed38b479)) 85 | * fix build config ([bb29aef](https://github.com/daybrush/figur/commit/bb29aef2321fed1f37588c0177c17dca767d7a95)) 86 | -------------------------------------------------------------------------------- /packages/figur/src/index.ts: -------------------------------------------------------------------------------- 1 | import { CLASS_NAME, STROKE_LINEJOIN } from "./consts"; 2 | import { hasClass, addClass, splitUnit } from "@daybrush/utils"; 3 | import { createVirtualDOM, FigurDOM } from "./VirtualDOM"; 4 | 5 | /** 6 | * @typedef 7 | */ 8 | export interface Figur { 9 | left?: number; 10 | top?: number; 11 | right?: number; 12 | bottom?: number; 13 | width?: number; 14 | height?: number; 15 | fill?: string; 16 | strokeLinejoin?: STROKE_LINEJOIN; 17 | strokeWidth?: number; 18 | className?: string; 19 | origin?: string | number; 20 | [key: string]: any; 21 | } 22 | 23 | export interface FigureInfo { 24 | width: number; 25 | height: number; 26 | points: number[][]; 27 | } 28 | /** 29 | * @typedef 30 | */ 31 | export interface RoundRectFigur extends Figur { 32 | round?: number; 33 | css?: boolean; 34 | } 35 | 36 | /** 37 | * @typedef 38 | */ 39 | export interface PolyFigur extends Figur { 40 | side?: number; 41 | split?: number; 42 | css?: boolean; 43 | innerRadius?: number; 44 | } 45 | 46 | /** 47 | * @typedef 48 | */ 49 | export interface OvalFigur extends Figur { 50 | r?: number; 51 | rx?: number; 52 | ry?: number; 53 | } 54 | 55 | function makeDOM(tag: string): FigurDOM { 56 | if (typeof document === "undefined") { 57 | return createVirtualDOM(tag); 58 | } else { 59 | return document.createElementNS("http://www.w3.org/2000/svg", tag); 60 | } 61 | } 62 | 63 | function makeSVGDOM(): FigurDOM { 64 | const el = makeDOM("svg"); 65 | 66 | addClass(el as Element, CLASS_NAME); 67 | 68 | return el; 69 | } 70 | function setAttributes(element: FigurDOM, attributes: { [key: string]: any }) { 71 | for (const name in attributes) { 72 | element.setAttribute(name, attributes[name]); 73 | } 74 | } 75 | function setStyles(element: FigurDOM, styles: { [key: string]: any }) { 76 | const cssText = []; 77 | 78 | for (const name in styles) { 79 | cssText.push(`${name}:${styles[name]};`); 80 | } 81 | element.style.cssText += cssText.join(""); 82 | } 83 | function getAbsoluteValue(value: string, pos: number, size: number) { 84 | const info = splitUnit(value); 85 | 86 | if (info.unit === "%") { 87 | return (pos + size * info.value / 100) + "px"; 88 | } else if (info.unit === "px") { 89 | return (pos + info.value) + "px"; 90 | } else { 91 | return `calc(${pos}px + ${value})`; 92 | } 93 | } 94 | function setOrigin(container: FigurDOM, { 95 | width, 96 | height, 97 | left, 98 | top, 99 | origin, 100 | }: { 101 | width: number, 102 | height: number, 103 | left: number, 104 | top: number, 105 | origin: string | number, 106 | }) { 107 | if (!origin) { 108 | return; 109 | } 110 | let [ox, oy = ox]: string[] = `${origin}`.split(" "); 111 | 112 | ox = getAbsoluteValue(ox, left, width); 113 | oy = getAbsoluteValue(oy, top, height); 114 | 115 | container.style.cssText += `transform-origin: ${ox} ${oy};`; 116 | } 117 | 118 | function setViewBox(container: FigurDOM, { 119 | width, 120 | height, 121 | left, 122 | right, 123 | bottom, 124 | top, 125 | strokeWidth, 126 | className, 127 | }: { 128 | width: number, 129 | height: number, 130 | left: number, 131 | right: number, 132 | bottom: number, 133 | top: number, 134 | strokeWidth: number, 135 | className?: string, 136 | }) { 137 | if (container && hasClass(container as Element, CLASS_NAME)) { 138 | className && className.split(" ").forEach(name => { 139 | addClass(container as Element, name); 140 | }); 141 | const [, , boxWidth = 0, boxHeight = 0] = (container.getAttribute("viewBox") || "").split(" ") 142 | .map(pos => parseFloat(pos || "0")); 143 | 144 | container.setAttribute("viewBox", "0 0 " + 145 | // tslint:disable-next-line:max-line-length 146 | `${Math.max(left + width + right + strokeWidth, boxWidth)} ${Math.max(top + height + bottom + strokeWidth, boxHeight)}`); 147 | } 148 | } 149 | 150 | /** 151 | * Returns point, width, and height for figur information. 152 | */ 153 | export function getRect(figur: PolyFigur): FigureInfo { 154 | const { 155 | left = 0, 156 | top = 0, 157 | side = 3, 158 | rotate = 0, 159 | innerRadius = 100, 160 | height = 0, 161 | split = 1, 162 | width = height ? 0 : 100, 163 | strokeLinejoin = "round", 164 | strokeWidth = 0, 165 | } = figur; 166 | let xPoints: number[] = []; 167 | let yPoints: number[] = []; 168 | const sideCos = Math.cos(Math.PI / side); 169 | const startRad = Math.PI / 180 * rotate + Math.PI * ((side % 2 ? 0 : 1 / side) - 1 / 2); 170 | 171 | for (let i = 0; i < side; ++i) { 172 | const rad = Math.PI * (1 / side * 2 * i) + startRad; 173 | const cos = Math.cos(rad); 174 | const sin = Math.sin(rad); 175 | 176 | xPoints.push(cos); 177 | yPoints.push(sin); 178 | if (innerRadius !== 100) { 179 | if (sideCos <= innerRadius / 100) { 180 | continue; 181 | } else { 182 | xPoints.push(innerRadius / 100 * Math.cos(rad + Math.PI / side)); 183 | yPoints.push(innerRadius / 100 * Math.sin(rad + Math.PI / side)); 184 | } 185 | } 186 | } 187 | const minX = Math.min(...xPoints); 188 | const minY = Math.min(...yPoints); 189 | const maxX = Math.max(...xPoints); 190 | const maxY = Math.max(...yPoints); 191 | const isWidth = !!width; 192 | const scale = isWidth ? width / (maxX - minX) : height / (maxY - minY); 193 | const isOuter = strokeLinejoin === "miter" || strokeLinejoin === "arcs" || strokeLinejoin === "miter-clip"; 194 | 195 | const sideSin = Math.sin(Math.PI / side); 196 | const innerCos = Math.min(sideCos, innerRadius / 100); 197 | const innerScale = scale * innerCos; 198 | const diagonal = strokeWidth / 2 / (sideCos === innerCos ? 1 : Math.sin(Math.atan(sideSin / (sideCos - innerCos)))); 199 | const outerScale = isOuter ? (innerScale + diagonal) / innerScale : 1; 200 | const pos = isOuter ? 0 : strokeWidth / 2; 201 | 202 | xPoints = xPoints.map(xp => (xp - minX * outerScale) * scale + pos); 203 | yPoints = yPoints.map(yp => (yp - minY * outerScale) * scale + pos); 204 | 205 | const pathWidth = (maxX - minX) * outerScale * scale + pos * 2; 206 | const pathHeight = (maxY - minY) * outerScale * scale + pos * 2; 207 | const length = xPoints.length; 208 | const points = []; 209 | 210 | points.push([left + xPoints[0], top + yPoints[0]]); 211 | for (let i = 1; i <= length; ++i) { 212 | const x1 = xPoints[i - 1]; 213 | const y1 = yPoints[i - 1]; 214 | const x2 = xPoints[i === length ? 0 : i]; 215 | const y2 = yPoints[i === length ? 0 : i]; 216 | 217 | for (let j = 1; j <= split; ++j) { 218 | const x = (x1 * (split - j) + x2 * j) / split; 219 | const y = (y1 * (split - j) + y2 * j) / split; 220 | 221 | points.push([left + x, top + y]); 222 | } 223 | } 224 | 225 | return { points, width: pathWidth, height: pathHeight }; 226 | } 227 | 228 | export function getPath(points: number[][]) { 229 | return points.map((point, i) => { 230 | return `${i === 0 ? "M" : "L"} ${point.join(" ")}`; 231 | }).join(" ") + " Z"; 232 | } 233 | 234 | /** 235 | * Transform the shape of a polygon type. 236 | */ 237 | export function be(path: SVGPathElement, figur: PolyFigur, container?: FigurDOM) { 238 | const { 239 | left = 0, 240 | top = 0, 241 | right = 0, 242 | bottom = 0, 243 | side, 244 | split, 245 | rotate, 246 | innerRadius, 247 | height, 248 | width, 249 | fill = "transparent", 250 | strokeLinejoin = "round", 251 | strokeWidth = 0, 252 | css = false, 253 | className, 254 | ...attributes 255 | } = figur 256 | const { 257 | points, 258 | width: pathWidth, 259 | height: pathHeight 260 | } = getRect({ 261 | left, top, split, side, rotate, width, 262 | height, innerRadius, strokeLinejoin, strokeWidth, 263 | }); 264 | 265 | setViewBox(container, { 266 | left, 267 | top, 268 | bottom, 269 | right, 270 | className, 271 | strokeWidth: 0, 272 | width: pathWidth, 273 | height: pathHeight, 274 | }); 275 | const d = getPath(points); 276 | 277 | css ? setStyles(path, { d: `path('${d}')` }) : setAttributes(path, { d }); 278 | 279 | setAttributes(path, { 280 | fill, 281 | "stroke-linejoin": strokeLinejoin, 282 | "stroke-width": `${strokeWidth}`, 283 | ...attributes, 284 | }); 285 | } 286 | 287 | /** 288 | * Create a star-shaped svg element. 289 | * If the container exists, it is inserted into the container. 290 | */ 291 | export function star(figur: PolyFigur, container?: FigurDOM) { 292 | const { 293 | side = 3, 294 | innerRadius = 60 * Math.cos(Math.PI / side), 295 | } = figur; 296 | return poly({ ...arguments[0], innerRadius }, container); 297 | } 298 | 299 | /** 300 | * Create a polygon-shaped svg element. 301 | * If the container exists, it is inserted into the container. 302 | */ 303 | export function poly(figur: PolyFigur, container: FigurDOM = makeSVGDOM()) { 304 | const path: SVGPathElement = makeDOM("path") as SVGPathElement; 305 | 306 | be(path, figur, container); 307 | container.appendChild(path); 308 | 309 | return container as SVGElement; 310 | } 311 | 312 | /** 313 | * Create a oval-shaped svg element. 314 | * If the container exists, it is inserted into the container. 315 | */ 316 | export function oval(figur: OvalFigur, container: FigurDOM = makeSVGDOM()) { 317 | const { 318 | left = 0, 319 | top = 0, 320 | right = 0, 321 | bottom = 0, 322 | fill = "transparent", 323 | strokeLinejoin = "round", 324 | strokeWidth = 0, 325 | className, 326 | r = 0, 327 | rx = r, 328 | ry = r, 329 | width = rx * 2, 330 | height = ry * 2, 331 | origin, 332 | ...attributes 333 | } = figur; 334 | const ellipse: SVGEllipseElement = makeDOM("ellipse") as SVGEllipseElement; 335 | const halfStroke = strokeWidth / 2; 336 | 337 | setViewBox(container, { 338 | strokeWidth, 339 | left, 340 | top, 341 | bottom, 342 | right, 343 | className, 344 | width, 345 | height, 346 | }); 347 | setOrigin(ellipse, { 348 | left: left + halfStroke, 349 | top: top + halfStroke, 350 | width, 351 | height, 352 | origin, 353 | }); 354 | 355 | setAttributes(ellipse, { 356 | fill, 357 | "cx": left + halfStroke + width / 2, 358 | "cy": top + halfStroke + height / 2, 359 | "rx": width / 2, 360 | "ry": height / 2, 361 | "stroke-linejoin": strokeLinejoin, 362 | "stroke-width": `${strokeWidth}`, 363 | ...attributes, 364 | }); 365 | container.appendChild(ellipse); 366 | 367 | return container as SVGElement; 368 | } 369 | 370 | /** 371 | * Create a rect-shaped svg element. 372 | * If the container exists, it is inserted into the container. 373 | */ 374 | export function rect( 375 | figur: RoundRectFigur, 376 | container: FigurDOM = makeSVGDOM(), 377 | ) { 378 | const { 379 | left = 0, 380 | top = 0, 381 | right = 0, 382 | bottom = 0, 383 | round = 0, 384 | width, 385 | height, 386 | fill = "transparent", 387 | strokeLinejoin = "round", 388 | strokeWidth = 0, 389 | css = false, 390 | className, 391 | ...attributes 392 | } = figur; 393 | const path: SVGPathElement = makeDOM("path") as SVGPathElement; 394 | setViewBox(container, { 395 | left, 396 | top, 397 | bottom, 398 | right, 399 | className, 400 | width, 401 | height, 402 | strokeWidth, 403 | }); 404 | setOrigin(path, { 405 | left, 406 | top, 407 | width, 408 | height, 409 | origin, 410 | }); 411 | const halfStroke = strokeWidth / 2; 412 | const pathWidth = width - round * 2; 413 | const pathHeight = height - round * 2; 414 | // tslint:disable-next-line:max-line-length 415 | const d = `M${left + round + halfStroke},${top + halfStroke} h${pathWidth} a${round},${round} 0 0 1 ${round},${round} v${pathHeight} a${round},${round} 0 0 1 -${round},${round} h-${pathWidth} a${round},${round} 0 0 1 -${round},-${round} v-${pathHeight} a${round},${round} 0 0 1 ${round},-${round} z`; 416 | 417 | css ? setStyles(path, { d: `path('${d}')` }) : setAttributes(path, { d }); 418 | 419 | setAttributes(path, { 420 | fill, 421 | "stroke-linejoin": strokeLinejoin, 422 | "stroke-width": `${strokeWidth}`, 423 | ...attributes, 424 | }); 425 | container.appendChild(path); 426 | 427 | return container as SVGElement; 428 | } 429 | 430 | export * from "./VirtualDOM"; 431 | -------------------------------------------------------------------------------- /packages/figur/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.18.6": 6 | version "7.18.6" 7 | resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" 8 | integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== 9 | dependencies: 10 | "@babel/highlight" "^7.18.6" 11 | 12 | "@babel/generator@^7.20.7": 13 | version "7.20.7" 14 | resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.20.7.tgz#f8ef57c8242665c5929fe2e8d82ba75460187b4a" 15 | integrity sha512-7wqMOJq8doJMZmP4ApXTzLxSr7+oO2jroJURrVEp6XShrQUObV8Tq/D0NCcoYg2uHqUrjzO0zwBjoYzelxK+sw== 16 | dependencies: 17 | "@babel/types" "^7.20.7" 18 | "@jridgewell/gen-mapping" "^0.3.2" 19 | jsesc "^2.5.1" 20 | 21 | "@babel/helper-environment-visitor@^7.18.9": 22 | version "7.18.9" 23 | resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" 24 | integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== 25 | 26 | "@babel/helper-function-name@^7.19.0": 27 | version "7.19.0" 28 | resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" 29 | integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== 30 | dependencies: 31 | "@babel/template" "^7.18.10" 32 | "@babel/types" "^7.19.0" 33 | 34 | "@babel/helper-hoist-variables@^7.18.6": 35 | version "7.18.6" 36 | resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" 37 | integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== 38 | dependencies: 39 | "@babel/types" "^7.18.6" 40 | 41 | "@babel/helper-split-export-declaration@^7.18.6": 42 | version "7.18.6" 43 | resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" 44 | integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== 45 | dependencies: 46 | "@babel/types" "^7.18.6" 47 | 48 | "@babel/helper-string-parser@^7.19.4": 49 | version "7.19.4" 50 | resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz#38d3acb654b4701a9b77fb0615a96f775c3a9e63" 51 | integrity sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw== 52 | 53 | "@babel/helper-validator-identifier@^7.18.6", "@babel/helper-validator-identifier@^7.19.1": 54 | version "7.19.1" 55 | resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz#7eea834cf32901ffdc1a7ee555e2f9c27e249ca2" 56 | integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== 57 | 58 | "@babel/highlight@^7.18.6": 59 | version "7.18.6" 60 | resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" 61 | integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== 62 | dependencies: 63 | "@babel/helper-validator-identifier" "^7.18.6" 64 | chalk "^2.0.0" 65 | js-tokens "^4.0.0" 66 | 67 | "@babel/parser@^7.2.3", "@babel/parser@^7.20.7": 68 | version "7.20.7" 69 | resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.20.7.tgz#66fe23b3c8569220817d5feb8b9dcdc95bb4f71b" 70 | integrity sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg== 71 | 72 | "@babel/template@^7.18.10": 73 | version "7.20.7" 74 | resolved "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz#a15090c2839a83b02aa996c0b4994005841fd5a8" 75 | integrity sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw== 76 | dependencies: 77 | "@babel/code-frame" "^7.18.6" 78 | "@babel/parser" "^7.20.7" 79 | "@babel/types" "^7.20.7" 80 | 81 | "@babel/traverse@^7.2.3": 82 | version "7.20.10" 83 | resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.10.tgz#2bf98239597fcec12f842756f186a9dde6d09230" 84 | integrity sha512-oSf1juCgymrSez8NI4A2sr4+uB/mFd9MXplYGPEBnfAuWmmyeVcHa6xLPiaRBcXkcb/28bgxmQLTVwFKE1yfsg== 85 | dependencies: 86 | "@babel/code-frame" "^7.18.6" 87 | "@babel/generator" "^7.20.7" 88 | "@babel/helper-environment-visitor" "^7.18.9" 89 | "@babel/helper-function-name" "^7.19.0" 90 | "@babel/helper-hoist-variables" "^7.18.6" 91 | "@babel/helper-split-export-declaration" "^7.18.6" 92 | "@babel/parser" "^7.20.7" 93 | "@babel/types" "^7.20.7" 94 | debug "^4.1.0" 95 | globals "^11.1.0" 96 | 97 | "@babel/types@^7.18.6", "@babel/types@^7.19.0", "@babel/types@^7.2.2", "@babel/types@^7.20.7", "@babel/types@^7.3.0": 98 | version "7.20.7" 99 | resolved "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz#54ec75e252318423fc07fb644dc6a58a64c09b7f" 100 | integrity sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg== 101 | dependencies: 102 | "@babel/helper-string-parser" "^7.19.4" 103 | "@babel/helper-validator-identifier" "^7.19.1" 104 | to-fast-properties "^2.0.0" 105 | 106 | "@daybrush/builder@^0.2.0": 107 | version "0.2.0" 108 | resolved "https://registry.npmjs.org/@daybrush/builder/-/builder-0.2.0.tgz#19a798ea4bbd575d2cea013c39468b615ca2145f" 109 | integrity sha512-bkZll7zoYM+u9N6upPe9nmSfRJnlwNuO1MubSIYx4MBlMwpY/y+HmQ9RiXWH7MoI/g0iM51rwSWDvNCMdlZk3g== 110 | dependencies: 111 | "@rollup/plugin-commonjs" "^23.0.4" 112 | "@rollup/plugin-node-resolve" "^15.0.1" 113 | "@rollup/plugin-replace" "^5.0.1" 114 | "@rollup/plugin-terser" "^0.2.0" 115 | "@rollup/plugin-typescript" "^10.0.1" 116 | rollup "^3.7.1" 117 | rollup-plugin-visualizer "^5.8.3" 118 | 119 | "@daybrush/jsdoc@^0.3.3": 120 | version "0.3.12" 121 | resolved "https://registry.npmjs.org/@daybrush/jsdoc/-/jsdoc-0.3.12.tgz#22fc3a008eb52a01eae728d8b75fe7661cc71d48" 122 | integrity sha512-aejzziZRBQH7pQXyt9DBeJt80Z2prmkFPFSCXspvN0XWTBeDkonZst5Ku3IzB4CXhd17fGa6hAhX4l/e3x20Bg== 123 | dependencies: 124 | "@babel/parser" "^7.2.3" 125 | "@babel/types" "^7.2.2" 126 | "@daybrush/utils" "^1.0.0" 127 | ast-parser "^0.1.1" 128 | bluebird "~3.5.0" 129 | catharsis "~0.8.9" 130 | escape-string-regexp "~1.0.5" 131 | js2xmlparser "~3.0.0" 132 | klaw "~2.0.0" 133 | markdown-it "~8.3.1" 134 | markdown-it-named-headers "~0.0.4" 135 | marked "~0.3.6" 136 | mkdirp "~0.5.1" 137 | requizzle "~0.2.1" 138 | strip-json-comments "~2.0.1" 139 | taffydb "2.6.2" 140 | underscore "~1.8.3" 141 | 142 | "@daybrush/release@0.0.6": 143 | version "0.0.6" 144 | resolved "https://registry.npmjs.org/@daybrush/release/-/release-0.0.6.tgz#e4f34e1dad936933a11ffac4eba043d6c2e3f439" 145 | integrity sha512-MpT+JK1z1sRr7cXCm6GT3NBvajg3MBkiCJ19tU3n2NbXvwlNFq7VkDEYhAGuYZR0/MlsTPLwMOUOl4l4rObI5g== 146 | dependencies: 147 | args "^5.0.1" 148 | gh-pages "^2.0.1" 149 | sync-exec "^0.6.2" 150 | 151 | "@daybrush/utils@^0.11.0": 152 | version "0.11.0" 153 | resolved "https://registry.npmjs.org/@daybrush/utils/-/utils-0.11.0.tgz#3fd113fcedaab29d8c80773ca5f4d32551bdc9d8" 154 | integrity sha512-PnrY1NDjXqXKASoREcjHokQt0WWHiUBClMJ0l9APx42QkeOCQ5nXB7k4VdmkaU23BndeSmNNYJDNL6eEsRitaA== 155 | 156 | "@daybrush/utils@^1.0.0", "@daybrush/utils@^1.10.2": 157 | version "1.10.2" 158 | resolved "https://registry.npmjs.org/@daybrush/utils/-/utils-1.10.2.tgz#fb10bab437d1bb3d052fa49ca01f23c86a2ad1f1" 159 | integrity sha512-fNMWeGUDokdIpebU8oIBUXkyGYITCwwodBfgx277p8d+kvI+k9wdFtKtdY4mvbWxhbAwuWprtVDq8My3KQ24Dg== 160 | 161 | "@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": 162 | version "0.3.2" 163 | resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" 164 | integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== 165 | dependencies: 166 | "@jridgewell/set-array" "^1.0.1" 167 | "@jridgewell/sourcemap-codec" "^1.4.10" 168 | "@jridgewell/trace-mapping" "^0.3.9" 169 | 170 | "@jridgewell/resolve-uri@3.1.0": 171 | version "3.1.0" 172 | resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" 173 | integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== 174 | 175 | "@jridgewell/set-array@^1.0.1": 176 | version "1.1.2" 177 | resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" 178 | integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== 179 | 180 | "@jridgewell/source-map@^0.3.2": 181 | version "0.3.2" 182 | resolved "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.2.tgz#f45351aaed4527a298512ec72f81040c998580fb" 183 | integrity sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw== 184 | dependencies: 185 | "@jridgewell/gen-mapping" "^0.3.0" 186 | "@jridgewell/trace-mapping" "^0.3.9" 187 | 188 | "@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.13": 189 | version "1.4.14" 190 | resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" 191 | integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== 192 | 193 | "@jridgewell/trace-mapping@^0.3.9": 194 | version "0.3.17" 195 | resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" 196 | integrity sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g== 197 | dependencies: 198 | "@jridgewell/resolve-uri" "3.1.0" 199 | "@jridgewell/sourcemap-codec" "1.4.14" 200 | 201 | "@rollup/plugin-commonjs@^23.0.4": 202 | version "23.0.7" 203 | resolved "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-23.0.7.tgz#7d26d879caa54283086de1974b66f512ef60abdc" 204 | integrity sha512-hsSD5Qzyuat/swzrExGG5l7EuIlPhwTsT7KwKbSCQzIcJWjRxiimi/0tyMYY2bByitNb3i1p+6JWEDGa0NvT0Q== 205 | dependencies: 206 | "@rollup/pluginutils" "^5.0.1" 207 | commondir "^1.0.1" 208 | estree-walker "^2.0.2" 209 | glob "^8.0.3" 210 | is-reference "1.2.1" 211 | magic-string "^0.27.0" 212 | 213 | "@rollup/plugin-node-resolve@^15.0.1": 214 | version "15.0.1" 215 | resolved "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.0.1.tgz#72be449b8e06f6367168d5b3cd5e2802e0248971" 216 | integrity sha512-ReY88T7JhJjeRVbfCyNj+NXAG3IIsVMsX9b5/9jC98dRP8/yxlZdz7mHZbHk5zHr24wZZICS5AcXsFZAXYUQEg== 217 | dependencies: 218 | "@rollup/pluginutils" "^5.0.1" 219 | "@types/resolve" "1.20.2" 220 | deepmerge "^4.2.2" 221 | is-builtin-module "^3.2.0" 222 | is-module "^1.0.0" 223 | resolve "^1.22.1" 224 | 225 | "@rollup/plugin-replace@^5.0.1": 226 | version "5.0.2" 227 | resolved "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-5.0.2.tgz#45f53501b16311feded2485e98419acb8448c61d" 228 | integrity sha512-M9YXNekv/C/iHHK+cvORzfRYfPbq0RDD8r0G+bMiTXjNGKulPnCT9O3Ss46WfhI6ZOCgApOP7xAdmCQJ+U2LAA== 229 | dependencies: 230 | "@rollup/pluginutils" "^5.0.1" 231 | magic-string "^0.27.0" 232 | 233 | "@rollup/plugin-terser@^0.2.0": 234 | version "0.2.1" 235 | resolved "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.2.1.tgz#dcf0b163216dafb64611b170a7667e76a7f03d2b" 236 | integrity sha512-hV52c8Oo6/cXZZxVVoRNBb4zh+EKSHS4I1sedWV5pf0O+hTLSkrf6w86/V0AZutYtwBguB6HLKwz89WDBfwGOA== 237 | dependencies: 238 | serialize-javascript "^6.0.0" 239 | smob "^0.0.6" 240 | terser "^5.15.1" 241 | 242 | "@rollup/plugin-typescript@^10.0.1": 243 | version "10.0.1" 244 | resolved "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-10.0.1.tgz#270b515b116ea28320e6bb62451c4767d49072d6" 245 | integrity sha512-wBykxRLlX7EzL8BmUqMqk5zpx2onnmRMSw/l9M1sVfkJvdwfxogZQVNUM9gVMJbjRLDR5H6U0OMOrlDGmIV45A== 246 | dependencies: 247 | "@rollup/pluginutils" "^5.0.1" 248 | resolve "^1.22.1" 249 | 250 | "@rollup/pluginutils@^5.0.1": 251 | version "5.0.2" 252 | resolved "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.2.tgz#012b8f53c71e4f6f9cb317e311df1404f56e7a33" 253 | integrity sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA== 254 | dependencies: 255 | "@types/estree" "^1.0.0" 256 | estree-walker "^2.0.2" 257 | picomatch "^2.3.1" 258 | 259 | "@types/estree@*", "@types/estree@^1.0.0": 260 | version "1.0.0" 261 | resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.0.tgz#5fb2e536c1ae9bf35366eed879e827fa59ca41c2" 262 | integrity sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ== 263 | 264 | "@types/resolve@1.20.2": 265 | version "1.20.2" 266 | resolved "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975" 267 | integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q== 268 | 269 | acorn@^8.5.0: 270 | version "8.8.1" 271 | resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" 272 | integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== 273 | 274 | after-all@^2.0.2: 275 | version "2.0.2" 276 | resolved "https://registry.npmjs.org/after-all/-/after-all-2.0.2.tgz#20300298ed6094b4c85c98e7c8ad4dca628f9f73" 277 | integrity sha512-hLX6aRs9sGcjre3C+QOqA2cgBUnXzph+yza6QPPc2zAo3akaAzqQwO7TmM95ZYdx4pRap2Q+hjneZm7XNg6NIw== 278 | dependencies: 279 | once "^1.3.0" 280 | 281 | ansi-regex@^5.0.1: 282 | version "5.0.1" 283 | resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" 284 | integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== 285 | 286 | ansi-styles@^3.2.1: 287 | version "3.2.1" 288 | resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 289 | integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== 290 | dependencies: 291 | color-convert "^1.9.0" 292 | 293 | ansi-styles@^4.0.0: 294 | version "4.3.0" 295 | resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" 296 | integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== 297 | dependencies: 298 | color-convert "^2.0.1" 299 | 300 | argparse@^1.0.7: 301 | version "1.0.10" 302 | resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 303 | integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== 304 | dependencies: 305 | sprintf-js "~1.0.2" 306 | 307 | args@^5.0.1: 308 | version "5.0.3" 309 | resolved "https://registry.npmjs.org/args/-/args-5.0.3.tgz#943256db85021a85684be2f0882f25d796278702" 310 | integrity sha512-h6k/zfFgusnv3i5TU08KQkVKuCPBtL/PWQbWkHUxvJrZ2nAyeaUupneemcrgn1xmqxPQsPIzwkUhOpoqPDRZuA== 311 | dependencies: 312 | camelcase "5.0.0" 313 | chalk "2.4.2" 314 | leven "2.1.0" 315 | mri "1.1.4" 316 | 317 | array-union@^1.0.1: 318 | version "1.0.2" 319 | resolved "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" 320 | integrity sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng== 321 | dependencies: 322 | array-uniq "^1.0.1" 323 | 324 | array-uniq@^1.0.1: 325 | version "1.0.3" 326 | resolved "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" 327 | integrity sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q== 328 | 329 | ast-parser@^0.1.1: 330 | version "0.1.1" 331 | resolved "https://registry.npmjs.org/ast-parser/-/ast-parser-0.1.1.tgz#cbf41f23cc39bd656c1f8e58e1ae8591ad98afc1" 332 | integrity sha512-IFkSxogYovWJivO7cnjaCQatLRPV7i3tzCbGFi9QGHczxJzkxKFuJYdwBGdRLg0f1nAqaHS2k9k1GO0INZ+gKQ== 333 | dependencies: 334 | "@babel/traverse" "^7.2.3" 335 | "@babel/types" "^7.3.0" 336 | "@daybrush/utils" "^0.11.0" 337 | 338 | async@^2.6.1: 339 | version "2.6.4" 340 | resolved "https://registry.npmjs.org/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" 341 | integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== 342 | dependencies: 343 | lodash "^4.17.14" 344 | 345 | balanced-match@^1.0.0: 346 | version "1.0.2" 347 | resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" 348 | integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== 349 | 350 | bluebird@~3.5.0: 351 | version "3.5.5" 352 | resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz#a8d0afd73251effbbd5fe384a77d73003c17a71f" 353 | integrity sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w== 354 | 355 | brace-expansion@^1.1.7: 356 | version "1.1.11" 357 | resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 358 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== 359 | dependencies: 360 | balanced-match "^1.0.0" 361 | concat-map "0.0.1" 362 | 363 | brace-expansion@^2.0.1: 364 | version "2.0.1" 365 | resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" 366 | integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== 367 | dependencies: 368 | balanced-match "^1.0.0" 369 | 370 | buffer-from@^1.0.0: 371 | version "1.1.2" 372 | resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" 373 | integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== 374 | 375 | builtin-modules@^1.1.1: 376 | version "1.1.1" 377 | resolved "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 378 | integrity sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ== 379 | 380 | builtin-modules@^3.3.0: 381 | version "3.3.0" 382 | resolved "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" 383 | integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== 384 | 385 | camelcase@5.0.0: 386 | version "5.0.0" 387 | resolved "https://registry.npmjs.org/camelcase/-/camelcase-5.0.0.tgz#03295527d58bd3cd4aa75363f35b2e8d97be2f42" 388 | integrity sha512-faqwZqnWxbxn+F1d399ygeamQNy3lPp/H9H6rNrqYh4FSVCtcY+3cub1MxA8o9mDd55mM8Aghuu/kuyYA6VTsA== 389 | 390 | catharsis@~0.8.9: 391 | version "0.8.11" 392 | resolved "https://registry.npmjs.org/catharsis/-/catharsis-0.8.11.tgz#d0eb3d2b82b7da7a3ce2efb1a7b00becc6643468" 393 | integrity sha512-a+xUyMV7hD1BrDQA/3iPV7oc+6W26BgVJO05PGEoatMyIuPScQKsde6i3YorWX1qs+AZjnJ18NqdKoCtKiNh1g== 394 | dependencies: 395 | lodash "^4.17.14" 396 | 397 | chalk@2.4.2, chalk@^2.0.0, chalk@^2.3.0: 398 | version "2.4.2" 399 | resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" 400 | integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== 401 | dependencies: 402 | ansi-styles "^3.2.1" 403 | escape-string-regexp "^1.0.5" 404 | supports-color "^5.3.0" 405 | 406 | cliui@^8.0.1: 407 | version "8.0.1" 408 | resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" 409 | integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== 410 | dependencies: 411 | string-width "^4.2.0" 412 | strip-ansi "^6.0.1" 413 | wrap-ansi "^7.0.0" 414 | 415 | color-convert@^1.9.0: 416 | version "1.9.3" 417 | resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 418 | integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== 419 | dependencies: 420 | color-name "1.1.3" 421 | 422 | color-convert@^2.0.1: 423 | version "2.0.1" 424 | resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" 425 | integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== 426 | dependencies: 427 | color-name "~1.1.4" 428 | 429 | color-name@1.1.3: 430 | version "1.1.3" 431 | resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 432 | integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== 433 | 434 | color-name@~1.1.4: 435 | version "1.1.4" 436 | resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" 437 | integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== 438 | 439 | commander@^2.12.1, commander@^2.18.0, commander@^2.20.0: 440 | version "2.20.3" 441 | resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" 442 | integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== 443 | 444 | commondir@^1.0.1: 445 | version "1.0.1" 446 | resolved "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" 447 | integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== 448 | 449 | concat-map@0.0.1: 450 | version "0.0.1" 451 | resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 452 | integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== 453 | 454 | debug@^4.1.0: 455 | version "4.3.4" 456 | resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" 457 | integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== 458 | dependencies: 459 | ms "2.1.2" 460 | 461 | deepmerge@^4.2.2: 462 | version "4.2.2" 463 | resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" 464 | integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== 465 | 466 | define-lazy-prop@^2.0.0: 467 | version "2.0.0" 468 | resolved "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" 469 | integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== 470 | 471 | diff@^4.0.1: 472 | version "4.0.2" 473 | resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" 474 | integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== 475 | 476 | email-addresses@^3.0.1: 477 | version "3.1.0" 478 | resolved "https://registry.npmjs.org/email-addresses/-/email-addresses-3.1.0.tgz#cabf7e085cbdb63008a70319a74e6136188812fb" 479 | integrity sha512-k0/r7GrWVL32kZlGwfPNgB2Y/mMXVTq/decgLczm/j34whdaspNrZO8CnXPf1laaHxI6ptUlsnAxN+UAPw+fzg== 480 | 481 | emoji-regex@^8.0.0: 482 | version "8.0.0" 483 | resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" 484 | integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== 485 | 486 | entities@~1.1.1: 487 | version "1.1.2" 488 | resolved "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" 489 | integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== 490 | 491 | escalade@^3.1.1: 492 | version "3.1.1" 493 | resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" 494 | integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== 495 | 496 | escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5, escape-string-regexp@~1.0.5: 497 | version "1.0.5" 498 | resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 499 | integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== 500 | 501 | esprima@^4.0.0: 502 | version "4.0.1" 503 | resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" 504 | integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== 505 | 506 | estree-walker@^2.0.2: 507 | version "2.0.2" 508 | resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac" 509 | integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== 510 | 511 | filename-reserved-regex@^1.0.0: 512 | version "1.0.0" 513 | resolved "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-1.0.0.tgz#e61cf805f0de1c984567d0386dc5df50ee5af7e4" 514 | integrity sha512-UZArj7+U+2reBBVCvVmRlyq9D7EYQdUtuNN+1iz7pF1jGcJ2L0TjiRCxsTZfj2xFbM4c25uGCUDpKTHA7L2TKg== 515 | 516 | filenamify-url@^1.0.0: 517 | version "1.0.0" 518 | resolved "https://registry.npmjs.org/filenamify-url/-/filenamify-url-1.0.0.tgz#b32bd81319ef5863b73078bed50f46a4f7975f50" 519 | integrity sha512-O9K9JcZeF5VdZWM1qR92NSv1WY2EofwudQayPx5dbnnFl9k0IcZha4eV/FGkjnBK+1irOQInij0yiooCHu/0Fg== 520 | dependencies: 521 | filenamify "^1.0.0" 522 | humanize-url "^1.0.0" 523 | 524 | filenamify@^1.0.0: 525 | version "1.2.1" 526 | resolved "https://registry.npmjs.org/filenamify/-/filenamify-1.2.1.tgz#a9f2ffd11c503bed300015029272378f1f1365a5" 527 | integrity sha512-DKVP0WQcB7WaIMSwDETqImRej2fepPqvXQjaVib7LRZn9Rxn5UbvK2tYTqGf1A1DkIprQQkG4XSQXSOZp7Q3GQ== 528 | dependencies: 529 | filename-reserved-regex "^1.0.0" 530 | strip-outer "^1.0.0" 531 | trim-repeated "^1.0.0" 532 | 533 | fs-extra@^8.1.0: 534 | version "8.1.0" 535 | resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" 536 | integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== 537 | dependencies: 538 | graceful-fs "^4.2.0" 539 | jsonfile "^4.0.0" 540 | universalify "^0.1.0" 541 | 542 | fs.realpath@^1.0.0: 543 | version "1.0.0" 544 | resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 545 | integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== 546 | 547 | fsevents@~2.3.2: 548 | version "2.3.2" 549 | resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" 550 | integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== 551 | 552 | function-bind@^1.1.1: 553 | version "1.1.1" 554 | resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" 555 | integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== 556 | 557 | get-caller-file@^2.0.5: 558 | version "2.0.5" 559 | resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" 560 | integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== 561 | 562 | gh-pages@^2.0.1: 563 | version "2.2.0" 564 | resolved "https://registry.npmjs.org/gh-pages/-/gh-pages-2.2.0.tgz#74ebeaca8d2b9a11279dcbd4a39ddfff3e6caa24" 565 | integrity sha512-c+yPkNOPMFGNisYg9r4qvsMIjVYikJv7ImFOhPIVPt0+AcRUamZ7zkGRLHz7FKB0xrlZ+ddSOJsZv9XAFVXLmA== 566 | dependencies: 567 | async "^2.6.1" 568 | commander "^2.18.0" 569 | email-addresses "^3.0.1" 570 | filenamify-url "^1.0.0" 571 | fs-extra "^8.1.0" 572 | globby "^6.1.0" 573 | 574 | glob@^7.0.3, glob@^7.1.1: 575 | version "7.2.3" 576 | resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" 577 | integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== 578 | dependencies: 579 | fs.realpath "^1.0.0" 580 | inflight "^1.0.4" 581 | inherits "2" 582 | minimatch "^3.1.1" 583 | once "^1.3.0" 584 | path-is-absolute "^1.0.0" 585 | 586 | glob@^8.0.3: 587 | version "8.0.3" 588 | resolved "https://registry.npmjs.org/glob/-/glob-8.0.3.tgz#415c6eb2deed9e502c68fa44a272e6da6eeca42e" 589 | integrity sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ== 590 | dependencies: 591 | fs.realpath "^1.0.0" 592 | inflight "^1.0.4" 593 | inherits "2" 594 | minimatch "^5.0.1" 595 | once "^1.3.0" 596 | 597 | globals@^11.1.0: 598 | version "11.12.0" 599 | resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" 600 | integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== 601 | 602 | globby@^6.1.0: 603 | version "6.1.0" 604 | resolved "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" 605 | integrity sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw== 606 | dependencies: 607 | array-union "^1.0.1" 608 | glob "^7.0.3" 609 | object-assign "^4.0.1" 610 | pify "^2.0.0" 611 | pinkie-promise "^2.0.0" 612 | 613 | graceful-fs@^4.1.6, graceful-fs@^4.1.9, graceful-fs@^4.2.0: 614 | version "4.2.10" 615 | resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" 616 | integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== 617 | 618 | has-flag@^3.0.0: 619 | version "3.0.0" 620 | resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 621 | integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== 622 | 623 | has@^1.0.3: 624 | version "1.0.3" 625 | resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" 626 | integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== 627 | dependencies: 628 | function-bind "^1.1.1" 629 | 630 | humanize-url@^1.0.0: 631 | version "1.0.1" 632 | resolved "https://registry.npmjs.org/humanize-url/-/humanize-url-1.0.1.tgz#f4ab99e0d288174ca4e1e50407c55fbae464efff" 633 | integrity sha512-RtgTzXCPVb/te+e82NDhAc5paj+DuKSratIGAr+v+HZK24eAQ8LMoBGYoL7N/O+9iEc33AKHg45dOMKw3DNldQ== 634 | dependencies: 635 | normalize-url "^1.0.0" 636 | strip-url-auth "^1.0.0" 637 | 638 | inflight@^1.0.4: 639 | version "1.0.6" 640 | resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 641 | integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== 642 | dependencies: 643 | once "^1.3.0" 644 | wrappy "1" 645 | 646 | inherits@2: 647 | version "2.0.4" 648 | resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" 649 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== 650 | 651 | is-builtin-module@^3.2.0: 652 | version "3.2.0" 653 | resolved "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.2.0.tgz#bb0310dfe881f144ca83f30100ceb10cf58835e0" 654 | integrity sha512-phDA4oSGt7vl1n5tJvTWooWWAsXLY+2xCnxNqvKhGEzujg+A43wPlPOyDg3C8XQHN+6k/JTQWJ/j0dQh/qr+Hw== 655 | dependencies: 656 | builtin-modules "^3.3.0" 657 | 658 | is-core-module@^2.9.0: 659 | version "2.11.0" 660 | resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz#ad4cb3e3863e814523c96f3f58d26cc570ff0144" 661 | integrity sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw== 662 | dependencies: 663 | has "^1.0.3" 664 | 665 | is-docker@^2.0.0, is-docker@^2.1.1: 666 | version "2.2.1" 667 | resolved "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" 668 | integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== 669 | 670 | is-fullwidth-code-point@^3.0.0: 671 | version "3.0.0" 672 | resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" 673 | integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== 674 | 675 | is-module@^1.0.0: 676 | version "1.0.0" 677 | resolved "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591" 678 | integrity sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g== 679 | 680 | is-plain-obj@^1.0.0: 681 | version "1.1.0" 682 | resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" 683 | integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== 684 | 685 | is-reference@1.2.1: 686 | version "1.2.1" 687 | resolved "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz#8b2dac0b371f4bc994fdeaba9eb542d03002d0b7" 688 | integrity sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ== 689 | dependencies: 690 | "@types/estree" "*" 691 | 692 | is-wsl@^2.2.0: 693 | version "2.2.0" 694 | resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" 695 | integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== 696 | dependencies: 697 | is-docker "^2.0.0" 698 | 699 | js-tokens@^4.0.0: 700 | version "4.0.0" 701 | resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" 702 | integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== 703 | 704 | js-yaml@^3.13.1: 705 | version "3.14.1" 706 | resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" 707 | integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== 708 | dependencies: 709 | argparse "^1.0.7" 710 | esprima "^4.0.0" 711 | 712 | js2xmlparser@~3.0.0: 713 | version "3.0.0" 714 | resolved "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-3.0.0.tgz#3fb60eaa089c5440f9319f51760ccd07e2499733" 715 | integrity sha512-CSOkdn0/GhRFwxnipmhXfqJ+FG6+wkWBi46kKSsPx6+j65176ZiQcrCYpg6K8x3iLbO4k3zScBnZ7I/L80dAtw== 716 | dependencies: 717 | xmlcreate "^1.0.1" 718 | 719 | jsesc@^2.5.1: 720 | version "2.5.2" 721 | resolved "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" 722 | integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== 723 | 724 | jsonfile@^4.0.0: 725 | version "4.0.0" 726 | resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" 727 | integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== 728 | optionalDependencies: 729 | graceful-fs "^4.1.6" 730 | 731 | klaw@~2.0.0: 732 | version "2.0.0" 733 | resolved "https://registry.npmjs.org/klaw/-/klaw-2.0.0.tgz#59c128e0dc5ce410201151194eeb9cbf858650f6" 734 | integrity sha512-Hx5PvgJKTWpMkNJCYrBUNBLlxYIkxN4FVU/BnZP4CFh5BpiHOgujAPx7iFVz/phD0bP8rsqD48gtqcvNlUt0lQ== 735 | dependencies: 736 | graceful-fs "^4.1.9" 737 | 738 | leven@2.1.0: 739 | version "2.1.0" 740 | resolved "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" 741 | integrity sha512-nvVPLpIHUxCUoRLrFqTgSxXJ614d8AgQoWl7zPe/2VadE8+1dpU3LBhowRuBAcuwruWtOdD8oYC9jDNJjXDPyA== 742 | 743 | linkify-it@^2.0.0: 744 | version "2.2.0" 745 | resolved "https://registry.npmjs.org/linkify-it/-/linkify-it-2.2.0.tgz#e3b54697e78bf915c70a38acd78fd09e0058b1cf" 746 | integrity sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw== 747 | dependencies: 748 | uc.micro "^1.0.1" 749 | 750 | lodash@^4.17.14, lodash@^4.17.21: 751 | version "4.17.21" 752 | resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" 753 | integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== 754 | 755 | magic-string@^0.27.0: 756 | version "0.27.0" 757 | resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz#e4a3413b4bab6d98d2becffd48b4a257effdbbf3" 758 | integrity sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA== 759 | dependencies: 760 | "@jridgewell/sourcemap-codec" "^1.4.13" 761 | 762 | markdown-it-named-headers@~0.0.4: 763 | version "0.0.4" 764 | resolved "https://registry.npmjs.org/markdown-it-named-headers/-/markdown-it-named-headers-0.0.4.tgz#82efc28324240a6b1e77b9aae501771d5f351c1f" 765 | integrity sha512-2uuJ9urchbulz9F7q6VVQmeGxSXjxFeeGcb4ebKiz3+nuKOho1rLw8866a6zs1EeAe9xdSOKEpqeF5Dv22ZDxw== 766 | dependencies: 767 | string "^3.0.1" 768 | 769 | markdown-it@~8.3.1: 770 | version "8.3.2" 771 | resolved "https://registry.npmjs.org/markdown-it/-/markdown-it-8.3.2.tgz#df4b86530d17c3bc9beec3b68d770b92ea17ae96" 772 | integrity sha512-4J92IhJq1kGoyXddwzzfjr9cEKGexBfFsZooKYMhMLLlWa4+dlSPDUUP7y+xQOCebIj61aLmKlowg//YcdPP1w== 773 | dependencies: 774 | argparse "^1.0.7" 775 | entities "~1.1.1" 776 | linkify-it "^2.0.0" 777 | mdurl "^1.0.1" 778 | uc.micro "^1.0.3" 779 | 780 | marked@~0.3.6: 781 | version "0.3.19" 782 | resolved "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790" 783 | integrity sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg== 784 | 785 | mdurl@^1.0.1: 786 | version "1.0.1" 787 | resolved "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e" 788 | integrity sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g== 789 | 790 | minimatch@^3.0.4, minimatch@^3.1.1: 791 | version "3.1.2" 792 | resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" 793 | integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== 794 | dependencies: 795 | brace-expansion "^1.1.7" 796 | 797 | minimatch@^5.0.1: 798 | version "5.1.2" 799 | resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.1.2.tgz#0939d7d6f0898acbd1508abe534d1929368a8fff" 800 | integrity sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg== 801 | dependencies: 802 | brace-expansion "^2.0.1" 803 | 804 | minimist@^1.2.6: 805 | version "1.2.7" 806 | resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" 807 | integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== 808 | 809 | mkdirp@^0.5.1, mkdirp@~0.5.1: 810 | version "0.5.6" 811 | resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" 812 | integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== 813 | dependencies: 814 | minimist "^1.2.6" 815 | 816 | mri@1.1.4: 817 | version "1.1.4" 818 | resolved "https://registry.npmjs.org/mri/-/mri-1.1.4.tgz#7cb1dd1b9b40905f1fac053abe25b6720f44744a" 819 | integrity sha512-6y7IjGPm8AzlvoUrwAaw1tLnUBudaS3752vcd8JtrpGGQn+rXIe63LFVHm/YMwtqAuh+LJPCFdlLYPWM1nYn6w== 820 | 821 | ms@2.1.2: 822 | version "2.1.2" 823 | resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" 824 | integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== 825 | 826 | normalize-url@^1.0.0: 827 | version "1.9.1" 828 | resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-1.9.1.tgz#2cc0d66b31ea23036458436e3620d85954c66c3c" 829 | integrity sha512-A48My/mtCklowHBlI8Fq2jFWK4tX4lJ5E6ytFsSOq1fzpvT0SQSgKhSg7lN5c2uYFOrUAOQp6zhhJnpp1eMloQ== 830 | dependencies: 831 | object-assign "^4.0.1" 832 | prepend-http "^1.0.0" 833 | query-string "^4.1.0" 834 | sort-keys "^1.0.0" 835 | 836 | object-assign@^4.0.1, object-assign@^4.1.0: 837 | version "4.1.1" 838 | resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" 839 | integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== 840 | 841 | once@^1.3.0: 842 | version "1.4.0" 843 | resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 844 | integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== 845 | dependencies: 846 | wrappy "1" 847 | 848 | open@^8.4.0: 849 | version "8.4.0" 850 | resolved "https://registry.npmjs.org/open/-/open-8.4.0.tgz#345321ae18f8138f82565a910fdc6b39e8c244f8" 851 | integrity sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q== 852 | dependencies: 853 | define-lazy-prop "^2.0.0" 854 | is-docker "^2.1.1" 855 | is-wsl "^2.2.0" 856 | 857 | path-is-absolute@^1.0.0: 858 | version "1.0.1" 859 | resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 860 | integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== 861 | 862 | path-parse@^1.0.7: 863 | version "1.0.7" 864 | resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" 865 | integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== 866 | 867 | picomatch@^2.3.1: 868 | version "2.3.1" 869 | resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" 870 | integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== 871 | 872 | pify@^2.0.0: 873 | version "2.3.0" 874 | resolved "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 875 | integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== 876 | 877 | pinkie-promise@^2.0.0: 878 | version "2.0.1" 879 | resolved "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" 880 | integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw== 881 | dependencies: 882 | pinkie "^2.0.0" 883 | 884 | pinkie@^2.0.0: 885 | version "2.0.4" 886 | resolved "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" 887 | integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== 888 | 889 | prepend-http@^1.0.0: 890 | version "1.0.4" 891 | resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" 892 | integrity sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg== 893 | 894 | query-string@^4.1.0: 895 | version "4.3.4" 896 | resolved "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" 897 | integrity sha512-O2XLNDBIg1DnTOa+2XrIwSiXEV8h2KImXUnjhhn2+UsvZ+Es2uyd5CCRTNQlDGbzUQOW3aYCBx9rVA6dzsiY7Q== 898 | dependencies: 899 | object-assign "^4.1.0" 900 | strict-uri-encode "^1.0.0" 901 | 902 | randombytes@^2.1.0: 903 | version "2.1.0" 904 | resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" 905 | integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== 906 | dependencies: 907 | safe-buffer "^5.1.0" 908 | 909 | require-directory@^2.1.1: 910 | version "2.1.1" 911 | resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 912 | integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== 913 | 914 | requizzle@~0.2.1: 915 | version "0.2.4" 916 | resolved "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz#319eb658b28c370f0c20f968fa8ceab98c13d27c" 917 | integrity sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw== 918 | dependencies: 919 | lodash "^4.17.21" 920 | 921 | resolve@^1.22.1, resolve@^1.3.2: 922 | version "1.22.1" 923 | resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" 924 | integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== 925 | dependencies: 926 | is-core-module "^2.9.0" 927 | path-parse "^1.0.7" 928 | supports-preserve-symlinks-flag "^1.0.0" 929 | 930 | rollup-plugin-visualizer@^5.8.3: 931 | version "5.9.0" 932 | resolved "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.9.0.tgz#013ac54fb6a9d7c9019e7eb77eced673399e5a0b" 933 | integrity sha512-bbDOv47+Bw4C/cgs0czZqfm8L82xOZssk4ayZjG40y9zbXclNk7YikrZTDao6p7+HDiGxrN0b65SgZiVm9k1Cg== 934 | dependencies: 935 | open "^8.4.0" 936 | picomatch "^2.3.1" 937 | source-map "^0.7.4" 938 | yargs "^17.5.1" 939 | 940 | rollup@^3.7.1: 941 | version "3.9.0" 942 | resolved "https://registry.npmjs.org/rollup/-/rollup-3.9.0.tgz#0ff7ab7cd71ce3a6ab140c5cf661f2b35eb6aab8" 943 | integrity sha512-nGGylpmblyjTpF4lEUPgmOw6OVxRvnI6Iuuh6Lz4O/X66cVOX1XJSsqP1YamxQ+mPuFE7qJxLFDSCk8rNv5dDw== 944 | optionalDependencies: 945 | fsevents "~2.3.2" 946 | 947 | safe-buffer@^5.1.0: 948 | version "5.2.1" 949 | resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" 950 | integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== 951 | 952 | semver@^5.3.0: 953 | version "5.7.1" 954 | resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" 955 | integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== 956 | 957 | serialize-javascript@^6.0.0: 958 | version "6.0.0" 959 | resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" 960 | integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== 961 | dependencies: 962 | randombytes "^2.1.0" 963 | 964 | smob@^0.0.6: 965 | version "0.0.6" 966 | resolved "https://registry.npmjs.org/smob/-/smob-0.0.6.tgz#09b268fea916158a2781c152044c6155adbb8aa1" 967 | integrity sha512-V21+XeNni+tTyiST1MHsa84AQhT1aFZipzPpOFAVB8DkHzwJyjjAmt9bgwnuZiZWnIbMo2duE29wybxv/7HWUw== 968 | 969 | sort-keys@^1.0.0: 970 | version "1.1.2" 971 | resolved "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" 972 | integrity sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg== 973 | dependencies: 974 | is-plain-obj "^1.0.0" 975 | 976 | source-map-support@~0.5.20: 977 | version "0.5.21" 978 | resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" 979 | integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== 980 | dependencies: 981 | buffer-from "^1.0.0" 982 | source-map "^0.6.0" 983 | 984 | source-map@^0.6.0: 985 | version "0.6.1" 986 | resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 987 | integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== 988 | 989 | source-map@^0.7.4: 990 | version "0.7.4" 991 | resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" 992 | integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== 993 | 994 | sprintf-js@~1.0.2: 995 | version "1.0.3" 996 | resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 997 | integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== 998 | 999 | strict-uri-encode@^1.0.0: 1000 | version "1.1.0" 1001 | resolved "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" 1002 | integrity sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ== 1003 | 1004 | string-replace@^0.2.0: 1005 | version "0.2.0" 1006 | resolved "https://registry.npmjs.org/string-replace/-/string-replace-0.2.0.tgz#fff4fbda9e3dc593cecaa990f3e4f30917f2d259" 1007 | integrity sha512-SoP2pAqNUYveGunEX75/5tfPH3c48QXJ2Ykruuh+f0uHW0THoCfp6jldKDLv/V6XPub1KHa/2j8evQMZ/pX28A== 1008 | dependencies: 1009 | after-all "^2.0.2" 1010 | 1011 | string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: 1012 | version "4.2.3" 1013 | resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" 1014 | integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== 1015 | dependencies: 1016 | emoji-regex "^8.0.0" 1017 | is-fullwidth-code-point "^3.0.0" 1018 | strip-ansi "^6.0.1" 1019 | 1020 | string@^3.0.1: 1021 | version "3.3.3" 1022 | resolved "https://registry.npmjs.org/string/-/string-3.3.3.tgz#5ea211cd92d228e184294990a6cc97b366a77cb0" 1023 | integrity sha512-LbvprpPZT/39QKfNrlPX9vXtS7If80vqbPQ7clnHQb5oVOM5hz/cs3iQCCZjvQDwsAWl+HpLQX3gRgN6IC8t3g== 1024 | 1025 | strip-ansi@^6.0.0, strip-ansi@^6.0.1: 1026 | version "6.0.1" 1027 | resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" 1028 | integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== 1029 | dependencies: 1030 | ansi-regex "^5.0.1" 1031 | 1032 | strip-json-comments@~2.0.1: 1033 | version "2.0.1" 1034 | resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 1035 | integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== 1036 | 1037 | strip-outer@^1.0.0: 1038 | version "1.0.1" 1039 | resolved "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631" 1040 | integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg== 1041 | dependencies: 1042 | escape-string-regexp "^1.0.2" 1043 | 1044 | strip-url-auth@^1.0.0: 1045 | version "1.0.1" 1046 | resolved "https://registry.npmjs.org/strip-url-auth/-/strip-url-auth-1.0.1.tgz#22b0fa3a41385b33be3f331551bbb837fa0cd7ae" 1047 | integrity sha512-++41PnXftlL3pvI6lpvhSEO+89g1kIJC4MYB5E6yH+WHa5InIqz51yGd1YOGd7VNSNdoEOfzTMqbAM/2PbgaHQ== 1048 | 1049 | supports-color@^5.3.0: 1050 | version "5.5.0" 1051 | resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 1052 | integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== 1053 | dependencies: 1054 | has-flag "^3.0.0" 1055 | 1056 | supports-preserve-symlinks-flag@^1.0.0: 1057 | version "1.0.0" 1058 | resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" 1059 | integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== 1060 | 1061 | sync-exec@^0.6.2: 1062 | version "0.6.2" 1063 | resolved "https://registry.npmjs.org/sync-exec/-/sync-exec-0.6.2.tgz#717d22cc53f0ce1def5594362f3a89a2ebb91105" 1064 | integrity sha512-FHup6L3hMWn+2asiIC/7kj/3CaMM8aAAKPx62DRk42hQkz4H2yBADR0OnnY8Eh5Bxrzb371aPUfnW4WzAUYItQ== 1065 | 1066 | taffydb@2.6.2: 1067 | version "2.6.2" 1068 | resolved "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz#7cbcb64b5a141b6a2efc2c5d2c67b4e150b2a268" 1069 | integrity sha512-y3JaeRSplks6NYQuCOj3ZFMO3j60rTwbuKCvZxsAraGYH2epusatvZ0baZYA01WsGqJBq/Dl6vOrMUJqyMj8kA== 1070 | 1071 | terser@^5.15.1: 1072 | version "5.16.1" 1073 | resolved "https://registry.npmjs.org/terser/-/terser-5.16.1.tgz#5af3bc3d0f24241c7fb2024199d5c461a1075880" 1074 | integrity sha512-xvQfyfA1ayT0qdK47zskQgRZeWLoOQ8JQ6mIgRGVNwZKdQMU+5FkCBjmv4QjcrTzyZquRw2FVtlJSRUmMKQslw== 1075 | dependencies: 1076 | "@jridgewell/source-map" "^0.3.2" 1077 | acorn "^8.5.0" 1078 | commander "^2.20.0" 1079 | source-map-support "~0.5.20" 1080 | 1081 | to-fast-properties@^2.0.0: 1082 | version "2.0.0" 1083 | resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" 1084 | integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== 1085 | 1086 | trim-repeated@^1.0.0: 1087 | version "1.0.0" 1088 | resolved "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21" 1089 | integrity sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg== 1090 | dependencies: 1091 | escape-string-regexp "^1.0.2" 1092 | 1093 | tslib@^1.8.0, tslib@^1.8.1: 1094 | version "1.14.1" 1095 | resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" 1096 | integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== 1097 | 1098 | tslib@^2.4.1: 1099 | version "2.4.1" 1100 | resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" 1101 | integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA== 1102 | 1103 | tslint@^5.11.0: 1104 | version "5.20.1" 1105 | resolved "https://registry.npmjs.org/tslint/-/tslint-5.20.1.tgz#e401e8aeda0152bc44dd07e614034f3f80c67b7d" 1106 | integrity sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg== 1107 | dependencies: 1108 | "@babel/code-frame" "^7.0.0" 1109 | builtin-modules "^1.1.1" 1110 | chalk "^2.3.0" 1111 | commander "^2.12.1" 1112 | diff "^4.0.1" 1113 | glob "^7.1.1" 1114 | js-yaml "^3.13.1" 1115 | minimatch "^3.0.4" 1116 | mkdirp "^0.5.1" 1117 | resolve "^1.3.2" 1118 | semver "^5.3.0" 1119 | tslib "^1.8.0" 1120 | tsutils "^2.29.0" 1121 | 1122 | tsutils@^2.29.0: 1123 | version "2.29.0" 1124 | resolved "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" 1125 | integrity sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA== 1126 | dependencies: 1127 | tslib "^1.8.1" 1128 | 1129 | typescript@^4.6: 1130 | version "4.9.4" 1131 | resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" 1132 | integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== 1133 | 1134 | uc.micro@^1.0.1, uc.micro@^1.0.3: 1135 | version "1.0.6" 1136 | resolved "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac" 1137 | integrity sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA== 1138 | 1139 | underscore@~1.8.3: 1140 | version "1.8.3" 1141 | resolved "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022" 1142 | integrity sha512-5WsVTFcH1ut/kkhAaHf4PVgI8c7++GiVcpCGxPouI6ZVjsqPnSDf8h/8HtVqc0t4fzRXwnMK70EcZeAs3PIddg== 1143 | 1144 | universalify@^0.1.0: 1145 | version "0.1.2" 1146 | resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" 1147 | integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== 1148 | 1149 | wrap-ansi@^7.0.0: 1150 | version "7.0.0" 1151 | resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" 1152 | integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== 1153 | dependencies: 1154 | ansi-styles "^4.0.0" 1155 | string-width "^4.1.0" 1156 | strip-ansi "^6.0.0" 1157 | 1158 | wrappy@1: 1159 | version "1.0.2" 1160 | resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1161 | integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== 1162 | 1163 | xmlcreate@^1.0.1: 1164 | version "1.0.2" 1165 | resolved "https://registry.npmjs.org/xmlcreate/-/xmlcreate-1.0.2.tgz#fa6bf762a60a413fb3dd8f4b03c5b269238d308f" 1166 | integrity sha512-Mbe56Dvj00onbnSo9J0qj/XlY5bfN9KidsOnpd5tRCsR3ekB3hyyNU9fGrTdqNT5ZNvv4BsA2TcQlignsZyVcw== 1167 | 1168 | y18n@^5.0.5: 1169 | version "5.0.8" 1170 | resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" 1171 | integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== 1172 | 1173 | yargs-parser@^21.1.1: 1174 | version "21.1.1" 1175 | resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" 1176 | integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== 1177 | 1178 | yargs@^17.5.1: 1179 | version "17.6.2" 1180 | resolved "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz#2e23f2944e976339a1ee00f18c77fedee8332541" 1181 | integrity sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw== 1182 | dependencies: 1183 | cliui "^8.0.1" 1184 | escalade "^3.1.1" 1185 | get-caller-file "^2.0.5" 1186 | require-directory "^2.1.1" 1187 | string-width "^4.2.3" 1188 | y18n "^5.0.5" 1189 | yargs-parser "^21.1.1" 1190 | --------------------------------------------------------------------------------