├── .npmignore ├── docs ├── assets │ ├── css │ │ ├── cursorLib.scss │ │ ├── font.css │ │ ├── font.scss │ │ ├── main.css │ │ └── main.scss │ ├── .DS_Store │ └── img │ │ ├── .DS_Store │ │ ├── ras │ │ ├── 3d.png │ │ ├── aero.png │ │ ├── cat.png │ │ ├── df.png │ │ ├── lo.png │ │ ├── .DS_Store │ │ ├── banner.png │ │ ├── gitlab.png │ │ ├── firebase.png │ │ └── stringcat.png │ │ └── vec │ │ ├── lightmode-btn.svg │ │ ├── menu-btn.svg │ │ └── banner.svg ├── .DS_Store ├── index.html └── bund │ ├── app.bundle.js │ └── app.bundle.js.map ├── .gitignore ├── .DS_Store ├── webpack.prod.js ├── webpack.dev.js ├── webpack.common.js ├── tsconfig.json ├── package.json ├── src ├── app.ts └── betterCursor.ts ├── assets └── css │ └── main.css ├── readme.md └── LICENSE /.npmignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/assets/css/cursorLib.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | dist/* -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/.DS_Store -------------------------------------------------------------------------------- /docs/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/.DS_Store -------------------------------------------------------------------------------- /docs/assets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/.DS_Store -------------------------------------------------------------------------------- /docs/assets/img/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/.DS_Store -------------------------------------------------------------------------------- /docs/assets/img/ras/3d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/3d.png -------------------------------------------------------------------------------- /docs/assets/img/ras/aero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/aero.png -------------------------------------------------------------------------------- /docs/assets/img/ras/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/cat.png -------------------------------------------------------------------------------- /docs/assets/img/ras/df.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/df.png -------------------------------------------------------------------------------- /docs/assets/img/ras/lo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/lo.png -------------------------------------------------------------------------------- /docs/assets/img/ras/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/.DS_Store -------------------------------------------------------------------------------- /docs/assets/img/ras/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/banner.png -------------------------------------------------------------------------------- /docs/assets/img/ras/gitlab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/gitlab.png -------------------------------------------------------------------------------- /docs/assets/img/ras/firebase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/firebase.png -------------------------------------------------------------------------------- /docs/assets/img/ras/stringcat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LemonFoxmere/BetterPointer/HEAD/docs/assets/img/ras/stringcat.png -------------------------------------------------------------------------------- /webpack.prod.js: -------------------------------------------------------------------------------- 1 | const { merge } = require('webpack-merge'); 2 | const common = require('./webpack.common.js'); 3 | 4 | module.exports = merge(common, { 5 | mode: 'production', 6 | devtool: 'source-map', 7 | }); -------------------------------------------------------------------------------- /webpack.dev.js: -------------------------------------------------------------------------------- 1 | const { merge } = require('webpack-merge'); 2 | const common = require('./webpack.common.js'); 3 | 4 | module.exports = merge(common, { 5 | mode: 'development', 6 | devtool: 'inline-source-map', 7 | }); -------------------------------------------------------------------------------- /docs/assets/css/font.css: -------------------------------------------------------------------------------- 1 | h1,h2,h3,h4,h5,h6,p{--font-offset: 0.25rem}h1,h2,h3,h4,h5,h6{transition:color 300ms;font-family:"Montserrat","Plus Jakarta Sans",Verdana,Geneva,Tahoma,sans-serif;line-height:110%;color:#202020;margin:0}h1{font-size:calc(3.25rem + var(--font-offset))}h2{font-size:calc(2.5rem + var(--font-offset))}h3{font-size:calc(2rem + var(--font-offset))}h4{font-size:calc(1.6rem + var(--font-offset))}h5{font-size:calc(1.3rem + var(--font-offset))}h6{font-size:calc(1rem + var(--font-offset))}p{transition:color 300ms;font-family:"Sora","Segoe UI",Tahoma,Geneva,Verdana,sans-serif;font-size:calc(1rem + var(--font-offset));line-height:140%;color:#848484;margin:.4rem 0 .4rem 0;font-variation-settings:"wght" 250}.monospaced{font-family:"Fira Code",monospace}.dark-mode h1,.dark-mode h2,.dark-mode h3,.dark-mode h4,.dark-mode h5,.dark-mode h6{color:#f7f7f7}.dark-mode p{color:#b3b3b3} -------------------------------------------------------------------------------- /webpack.common.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const SpeedMeasurePlugin = require("speed-measure-webpack-plugin"); 3 | const smp = new SpeedMeasurePlugin(); 4 | 5 | module.exports = smp.wrap({ 6 | entry: { 7 | app: './src/app.ts', 8 | }, 9 | module: { 10 | rules: [ 11 | { 12 | test: /\.tsx?$/, 13 | use: [{ 14 | loader: 'ts-loader', 15 | options: { 16 | transpileOnly: true, 17 | experimentalWatchApi: true 18 | } 19 | }], 20 | exclude: /node_modules/, 21 | }, 22 | ], 23 | }, 24 | resolve: { 25 | extensions: [ '.tsx', '.ts', '.js' ], 26 | }, 27 | output: { 28 | filename: '[name].bundle.js', 29 | path: path.resolve(__dirname, 'docs/bund'), 30 | clean: true, 31 | }, 32 | }); -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ 4 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ 5 | "lib": [ 6 | "es2020", 7 | "dom" 8 | ], 9 | "module": "commonjs", /* Specify what module code is generated. */ 10 | "rootDir": "src", /* Specify the root folder within your source files. */ 11 | "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ 12 | "noEmitOnError": false, 13 | "declaration": true, 14 | "outDir": "dist/", /* Specify an output folder for all emitted files. */ 15 | "removeComments": true, /* Disable emitting comments. */ 16 | "strict": true, /* Enable all strict type-checking options. */ 17 | },"include": [ 18 | "./src/**/*" 19 | ], "exclude": [ 20 | "node_modules", 21 | "dist", 22 | "src/app.ts" 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "betterpointer", 3 | "version": "1.0.2", 4 | "description": "TS & JS Library for adaptive precision cursor in your project.", 5 | "files": [ 6 | "dist" 7 | ], 8 | "main": "dist/betterCursor.js", 9 | "types": "dist/betterCursor.d.ts", 10 | "directories": { 11 | "doc": "docs" 12 | }, 13 | "scripts": { 14 | "build": "webpack --config webpack.prod.js", 15 | "compile": "webpack --config webpack.dev.js" 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "git+https://github.com/LemonOrangeWasTaken/BetterPointer.git" 20 | }, 21 | "keywords": [], 22 | "author": "lemonorangewastaken", 23 | "license": "GPL-3.0", 24 | "bugs": { 25 | "url": "https://github.com/LemonOrangeWasTaken/BetterPointer/issues" 26 | }, 27 | "homepage": "https://github.com/LemonOrangeWasTaken/BetterPointer#readme", 28 | "dependencies": { 29 | "typescript": "^4.6.4", 30 | "animejs": "^3.2.1" 31 | }, 32 | "devDependencies": { 33 | "@types/animejs": "^3.1.4", 34 | "animejs": "^3.2.1", 35 | "path": "^0.12.7", 36 | "speed-measure-webpack-plugin": "^1.5.0", 37 | "ts-loader": "^9.3.0", 38 | "typescript": "^4.6.4", 39 | "webpack": "^5.72.0", 40 | "webpack-cli": "^4.9.2", 41 | "webpack-merge": "^5.8.0" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /docs/assets/css/font.scss: -------------------------------------------------------------------------------- 1 | h1,h2,h3,h4,h5,h6,p{ /* all text */ 2 | --font-offset: 0.25rem; 3 | } 4 | 5 | h1,h2,h3,h4,h5,h6{ /* for all titles */ 6 | transition: color 300ms; 7 | font-family: "Montserrat", "Plus Jakarta Sans", Verdana, Geneva, Tahoma, sans-serif; 8 | line-height: 110%; 9 | color: #202020; 10 | margin:0; 11 | } 12 | 13 | h1{ 14 | font-size: calc(3.25rem + var(--font-offset)); 15 | } 16 | h2{ 17 | font-size: calc(2.5rem + var(--font-offset)); 18 | } 19 | h3{ 20 | font-size: calc(2rem + var(--font-offset)); 21 | } 22 | h4{ 23 | font-size: calc(1.6rem + var(--font-offset)); 24 | } 25 | h5{ 26 | font-size: calc(1.3rem + var(--font-offset)); 27 | } 28 | h6{ 29 | font-size: calc(1rem + var(--font-offset)); 30 | } 31 | 32 | p{ 33 | transition: color 300ms; 34 | font-family: "Sora", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 35 | font-size: calc(1rem + var(--font-offset)); 36 | line-height: 140%; 37 | color: #848484; 38 | margin: 0.4rem 0 0.4rem 0; 39 | font-variation-settings: 'wght' 250; 40 | } .monospaced{ 41 | font-family: "Fira Code", monospace; 42 | } 43 | 44 | // dark mode 45 | .dark-mode{ 46 | h1,h2,h3,h4,h5,h6{ /* dark mode titles */ 47 | color: hsl(0, 0%, 97%); 48 | } 49 | p{ 50 | color: hsl(0, 0%, 70%); 51 | } 52 | } -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- 1 | import anime from "animejs"; 2 | import cursor from "./betterCursor"; 3 | 4 | export let menu_opened:boolean = false; 5 | export let is_dark_mode:boolean = false; 6 | 7 | const init_UI = (cur?:cursor):void => { 8 | // init side bar 9 | document.getElementById("side-menu-btn")!.addEventListener("click", (e:MouseEvent):void => { 10 | menu_opened = !menu_opened; 11 | anime({ 12 | targets:"#side-menu", 13 | translateX: `${menu_opened ? 0 : -240}pt`, 14 | easing: "easeOutQuart", 15 | duration: 500 16 | }); 17 | anime({ 18 | targets:"#side-menu-control-container", 19 | translateX: `${menu_opened ? 175 : 0}pt`, 20 | easing: "easeOutQuart", 21 | duration: 450, 22 | delay: menu_opened ? 40 : 0 23 | }); 24 | if(menu_opened){ 25 | document.querySelector("body")!.classList.add("side-opened"); 26 | } else { 27 | document.querySelector("body")!.classList.remove("side-opened"); 28 | } 29 | }); 30 | 31 | // init dark mode btn 32 | document.getElementById("dark-mode-btn")!.addEventListener("click", (e:MouseEvent):void => { 33 | is_dark_mode = !is_dark_mode; 34 | if(is_dark_mode){ 35 | document.querySelector("body")!.classList.add("dark-mode"); 36 | cur!.setDark(); 37 | } else{ 38 | document.querySelector("body")!.classList.remove("dark-mode"); 39 | cur!.setLight(); 40 | } 41 | }); 42 | } 43 | 44 | window.onload = () => { 45 | init_UI(new cursor("custom-cursor")); 46 | } -------------------------------------------------------------------------------- /assets/css/main.css: -------------------------------------------------------------------------------- 1 | /* This is just for page & generic styling */ 2 | body{ 3 | background-color: #fafafa; 4 | padding:0; margin:0; 5 | } 6 | 7 | hr{ 8 | margin: 1.5rem 0 1.5rem 0; 9 | height: 2px; 10 | background-color: #d2d2d2; 11 | border:none; 12 | } 13 | 14 | .notransition { 15 | -webkit-transition: none !important; 16 | -moz-transition: none !important; 17 | -o-transition: none !important; 18 | transition: none !important; 19 | } 20 | 21 | .unselectable { 22 | -webkit-touch-callout: none; 23 | -webkit-user-select: none; 24 | -khtml-user-select: none; 25 | -moz-user-select: none; 26 | -ms-user-select: none; 27 | user-select: none; 28 | } 29 | 30 | .app-icon{ 31 | width: 5rem; height:5rem; 32 | border-radius: 1.3rem; 33 | border:none; 34 | 35 | margin: 0 0 1rem 0; 36 | box-shadow: 0 0 2rem #0000001f; 37 | background-color: #fcfcfc; 38 | 39 | background-position: center; 40 | background-repeat: no-repeat; 41 | } 42 | 43 | input{ 44 | box-shadow: 0 0 2rem #00000009; 45 | height:1.75rem; width:100%; 46 | padding: 0; 47 | overflow: visible; 48 | border-radius: 0.5rem; 49 | border: 1px solid #d0d0d0; 50 | background-color: #00000008; 51 | outline:none; 52 | } 53 | 54 | .input-box{ 55 | position: relative; 56 | display: flex; 57 | justify-content: center; 58 | align-items: center; 59 | } 60 | .input-box p{ 61 | opacity: 0.5; 62 | font-size: 1rem; 63 | position: absolute; 64 | z-index: 2; 65 | pointer-events: none; 66 | left:50%; 67 | transform: translateX(-50%); 68 | 69 | transition: all 400ms cubic-bezier(0.295, 0.015, 0.040, 1.000), 70 | opacity 200ms cubic-bezier(0.295, 0.015, 0.040, 1.000); 71 | 72 | } 73 | .input-ele{ 74 | padding: 0 0 0 0.5rem; 75 | font-family: "Plus Jakarta Sans"; 76 | } 77 | .input-ele:focus ~ p{ 78 | transform: translateX(0); 79 | left:0.75rem 80 | } 81 | .input-ele:not(:placeholder-shown) ~ p{ 82 | opacity: 0; 83 | } 84 | 85 | #side-menu-btn{ 86 | filter: brightness(0.4); 87 | } 88 | -------------------------------------------------------------------------------- /docs/assets/img/vec/lightmode-btn.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 53 | 55 | 60 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /docs/assets/css/main.css: -------------------------------------------------------------------------------- 1 | *{cursor:none !important}body{background-color:#fafafa;padding:0;margin:0;transition:all 450ms cubic-bezier(0.165, 0.84, 0.44, 1);width:100vw;height:100vh;min-width:600pt;overflow:hidden}.side-opened{margin-left:240pt;width:calc(100vw - 240pt)}#side-menu{background-color:#f5f5f5;border-right:1px solid #bfbfbf;display:flex;flex-direction:column;align-items:center;transition:background-color 500ms cubic-bezier(0.165, 0.84, 0.44, 1),border-color 500ms cubic-bezier(0.165, 0.84, 0.44, 1)}#side-menu #title{width:100%;height:55pt;min-height:55pt}#side-menu .subtitle{width:80%;padding:3pt 10pt 3pt 10pt;margin:10pt 0 10pt 0;text-align:left}#side-menu .items{width:90%;margin:0 0 0 1%;padding:0 0 0 1.5%;border-radius:6pt;text-align:left;font-size:1.1rem;height:30pt;color:#666;transform-origin:left;display:flex;align-items:center}#side-menu-btn:active,#dark-mode-btn:active{filter:brightness(0.75)}#side-menu-label{color:#a6a6a6;opacity:1}hr{margin:1.5rem 0 1.5rem 0;height:2px;background-color:#d2d2d2;border:none;transition:background-color 300ms}.notransition{transition:none !important}.unselectable{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-icon{width:5rem;height:5rem;border-radius:1.3rem;border:none;margin:0 0 1rem 0;box-shadow:0 0 2rem rgba(0,0,0,.122);background-color:#fcfcfc;background-position:center;background-repeat:no-repeat;transition:background-color 500ms cubic-bezier(0.165, 0.84, 0.44, 1)}input{box-shadow:0 0 2rem #00000009;height:1.75rem;width:100%;padding:0;overflow:visible;border-radius:.5rem;border:1px solid #d1d1d1;background-color:rgba(0,0,0,.031);font-size:1rem;transition-property:outline-offset,outline,background-color;transition:250ms cubic-bezier(0.165, 0.84, 0.44, 1);outline-offset:50pt}input:focus{outline:2pt solid #ff8000;outline-offset:2pt}.input-box{position:relative;display:flex;justify-content:center;align-items:center}.input-box p{opacity:.5;font-size:1rem;position:absolute;z-index:2;pointer-events:none;left:50%;transform:translateX(-50%);pointer-events:none;font-variation-settings:"wght" 300;transition:all 400ms cubic-bezier(0.295, 0.015, 0.04, 1),opacity 200ms cubic-bezier(0.295, 0.015, 0.04, 1)}.input-ele{padding:0 0 0 .5rem;font-family:"Plus Jakarta Sans";font-weight:600}.input-ele:focus~p{transform:translateX(0);left:.75rem}.input-ele:not(:-moz-placeholder-shown)~p{opacity:0}.input-ele:not(:-ms-input-placeholder)~p{opacity:0}.input-ele:not(:placeholder-shown)~p{opacity:0}.dark-mode{background-color:#18181b}.dark-mode #side-menu{background-color:#141417;border-right:1px solid #303036}.dark-mode #side-menu .items{color:#b3b3b3}.dark-mode #dark-mode-btn{filter:contrast(1) brightness(1)}.dark-mode hr{background-color:rgba(255,255,255,.15)}.dark-mode .app-icon{border:none;box-shadow:none;background-color:#29292e}.dark-mode input{box-shadow:none;border:1px solid #484851;background-color:#242429;color:#f1f1f3}.dark-mode input:focus{outline:2pt solid rgba(255,128,0,.5);outline-offset:2pt}.dark-mode .input-box p{opacity:1;color:rgba(255,255,255,.4)}.dark-mode .input-ele{padding:0 0 0 .5rem;font-family:"Plus Jakarta Sans";font-weight:600}.dark-mode .input-ele:focus~p{transform:translateX(0);left:.75rem}.dark-mode .input-ele:not(:-moz-placeholder-shown)~p{opacity:0}.dark-mode .input-ele:not(:-ms-input-placeholder)~p{opacity:0}.dark-mode .input-ele:not(:placeholder-shown)~p{opacity:0}.dark-mode #side-menu-label{color:#ccc} -------------------------------------------------------------------------------- /docs/assets/img/vec/menu-btn.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 53 | 55 | 60 | 68 | 72 | 77 | 82 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /docs/assets/css/main.scss: -------------------------------------------------------------------------------- 1 | /* This is just for page & generic styling */ 2 | * { 3 | /* hide cursor */ 4 | cursor: none !important; 5 | } 6 | 7 | body{ 8 | background-color: hsl(0, 0%, 98%); 9 | padding:0; margin:0; 10 | 11 | transition: all 450ms cubic-bezier(0.165, 0.840, 0.440, 1.000); /* easeOutQuart */ 12 | width:100vw; height:100vh; 13 | min-width: 600pt; 14 | 15 | overflow: hidden; 16 | } .side-opened{ 17 | margin-left: 240pt; 18 | width:calc(100vw - 240pt); 19 | } 20 | 21 | #side-menu{ 22 | background-color: hsl(0, 0%, 96%); 23 | $border-col: hsl(0,0%,75%); 24 | border-right: 1px solid $border-col; 25 | display: flex; flex-direction: column; align-items: center; 26 | transition: background-color 500ms cubic-bezier(0.165, 0.840, 0.440, 1.000), 27 | border-color 500ms cubic-bezier(0.165, 0.840, 0.440, 1.000); /* easeOutQuart */ 28 | 29 | #title{ 30 | width: 100%; 31 | height: 55pt; min-height:55pt; 32 | } 33 | .subtitle{ 34 | width: 80%; 35 | padding: 3pt 10pt 3pt 10pt; 36 | margin: 10pt 0 10pt 0; 37 | text-align: left; 38 | } 39 | 40 | .items{ 41 | width: 90%; 42 | margin: 0 0 0 1%; 43 | padding: 0 0 0 1.5%; 44 | border-radius: 6pt; 45 | text-align: left; 46 | font-size: 1.1rem; 47 | height:30pt; 48 | color:hsl(0,0,40%); 49 | transform-origin: left; 50 | display: flex; align-items: center; 51 | } 52 | } 53 | #side-menu-btn, #dark-mode-btn{ 54 | &:active{ 55 | filter: brightness(0.75); 56 | } 57 | } 58 | #side-menu-label{ 59 | color:hsl(0, 0, 65%); 60 | opacity: 1; 61 | } 62 | 63 | hr{ 64 | margin: 1.5rem 0 1.5rem 0; 65 | height: 2px; 66 | background-color: #d2d2d2; 67 | border:none; 68 | 69 | transition: background-color 300ms; 70 | } 71 | 72 | .notransition { 73 | -webkit-transition: none !important; 74 | -moz-transition: none !important; 75 | -o-transition: none !important; 76 | transition: none !important; 77 | } 78 | 79 | .unselectable { 80 | -webkit-touch-callout: none; 81 | -webkit-user-select: none; 82 | -khtml-user-select: none; 83 | -moz-user-select: none; 84 | -ms-user-select: none; 85 | user-select: none; 86 | } 87 | 88 | .app-icon{ 89 | width: 5rem; height:5rem; 90 | border-radius: 1.3rem; 91 | border:none; 92 | 93 | margin: 0 0 1rem 0; 94 | box-shadow: 0 0 2rem hsla(0, 0%, 0%, 0.122); 95 | background-color: hsl(0, 0%, 99%); 96 | 97 | background-position: center; 98 | background-repeat: no-repeat; 99 | 100 | transition: background-color 500ms cubic-bezier(0.165, 0.840, 0.440, 1.000); /* easeOutQuart */ 101 | } 102 | 103 | input{ 104 | box-shadow: 0 0 2rem #00000009; 105 | height:1.75rem; width:100%; 106 | padding: 0; 107 | overflow: visible; 108 | border-radius: 0.5rem; 109 | border: 1px solid hsl(0, 0%, 82%); 110 | background-color: hsla(0, 0%, 0%, 0.031); 111 | font-size: 1rem; 112 | 113 | transition-property: outline-offset, outline, background-color; 114 | transition: 250ms cubic-bezier(0.165, 0.840, 0.440, 1.000); 115 | outline-offset: 50pt; 116 | } input:focus{ 117 | outline:2pt solid hsl(30, 100%, 50%); 118 | outline-offset: 2pt; 119 | } 120 | 121 | .input-box{ 122 | position: relative; 123 | display: flex; 124 | justify-content: center; 125 | align-items: center; 126 | } 127 | .input-box p{ 128 | opacity: 0.5; 129 | font-size: 1rem; 130 | position: absolute; 131 | z-index: 2; 132 | pointer-events: none; 133 | left:50%; 134 | transform: translateX(-50%); 135 | pointer-events: none; 136 | 137 | font-variation-settings: 'wght' 300; 138 | 139 | transition: all 400ms cubic-bezier(0.295, 0.015, 0.040, 1.000), 140 | opacity 200ms cubic-bezier(0.295, 0.015, 0.040, 1.000); 141 | 142 | } 143 | .input-ele{ 144 | padding: 0 0 0 0.5rem; 145 | font-family: "Plus Jakarta Sans"; 146 | font-weight: 600; 147 | } 148 | .input-ele:focus ~ p{ 149 | transform: translateX(0); 150 | left:0.75rem 151 | } 152 | .input-ele:not(:placeholder-shown) ~ p{ 153 | opacity: 0; 154 | } 155 | 156 | // DARK MODE 157 | .dark-mode{ 158 | background-color: hsl(240, 6%, 10%); 159 | 160 | #side-menu{ 161 | background-color: hsl(240, 6%, 8.5%); 162 | $border-col: hsl(240, 6%, 20%); 163 | border-right: 1px solid $border-col; 164 | 165 | .items{ 166 | color:hsl(0,0,70%) 167 | } 168 | } 169 | #dark-mode-btn{ 170 | filter: contrast(1) brightness(1); 171 | } 172 | 173 | hr{ 174 | background-color: hsl(0, 0%, 100%, 15%); 175 | } 176 | 177 | .app-icon{ 178 | border:none; 179 | box-shadow: none; 180 | background-color: hsl(240, 6%, 17%); 181 | } 182 | 183 | 184 | input{ 185 | box-shadow: none; 186 | border: 1px solid hsl(240, 6%, 30%); 187 | background-color: hsl(240, 6%, 15%); 188 | color:hsl(240,6%,95%) 189 | } input:focus{ 190 | outline:2pt solid hsla(30, 100%, 50%, 50%); 191 | outline-offset: 2pt; 192 | } 193 | 194 | .input-box p{ 195 | opacity:1; 196 | color:hsl(240, 6%, 100%, 40%); 197 | } 198 | .input-ele{ 199 | padding: 0 0 0 0.5rem; 200 | font-family: "Plus Jakarta Sans"; 201 | font-weight: 600; 202 | } 203 | .input-ele:focus ~ p{ 204 | transform: translateX(0); 205 | left:0.75rem 206 | } 207 | .input-ele:not(:placeholder-shown) ~ p{ 208 | opacity: 0; 209 | } 210 | 211 | #side-menu-label{ 212 | color:hsl(0,0,80%); 213 | } 214 | } -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Pointer Demo 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 |
27 | 28 |
29 |
31 |
32 | 33 |
35 |
37 |
39 |
40 | 41 | 42 |
43 |

What is this?

44 | 45 |
46 | 47 |

48 | This is a custom pointer that can adapt and snap to different elements, making controlling and interacting with them feel more natural. 49 |

50 |

51 | Almost everything you see on this page can be clicked on, but some won't do anything. To learn how to use this in your own project, visit the GitHub. 52 |

53 | 54 | 55 |
56 | 57 |

★ A Snappy Input Box

58 |
59 |
60 |
61 | 62 | 63 |
64 | 65 |
66 | 67 |
68 | 69 | Open side menu 70 | 71 |
72 | Toggle light mode 73 |
Better Cursor demo
74 |
75 | 76 |
77 | 78 |
79 |
80 |
81 |
Category #1
82 |

Try hovering over

83 |

these buttons!

84 |

Doesn't it feel

85 |

pretty cool?

86 | 87 |
Category #2
88 |

Your cursor can

89 |

now snap to stuff.

90 | 91 |
Category #3
92 |

Unfortunately,

93 |

these buttons

94 |

π don't do anything.

95 |
96 | 97 |
98 | 99 | 100 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 |
2 | 3 | 4 | 5 |

Haha, cool cursor go brrrr...

6 | 7 | 8 | [![NPM Version](https://img.shields.io/npm/v/betterpointer.svg?style=for-the-badge&color=red)]() 9 | [![License: GPL-3.0](https://img.shields.io/github/license/LemonOrangeWasTaken/betterpointer?color=orange&style=for-the-badge)](https://github.com/LemonOrangeWasTaken/BetterPointer/blob/master/LICENSE) 10 | [![Website shields.io](https://img.shields.io/github/stars/LemonOrangeWasTaken/betterpointer?color=gold&style=for-the-badge)](https://github.com/LemonOrangeWasTaken/BetterPointer/stargazers) 11 |
12 | 13 |
14 | Table of Content 15 |
    16 |
  1. 17 | What is this? 18 |
  2. 19 |
  3. Installation & Setup
  4. 20 | 24 |
  5. Usage
  6. 25 | 29 |
  7. Known issues
  8. 30 |
  9. Troubleshooting
  10. 31 |
  11. Contributing
  12. 32 |
  13. License
  14. 33 |
34 | 35 |
36 | 37 |
38 | 39 |

What is this?

40 | 41 | BetterPointer is a JS/TS package that simulates adaptive precision on a webpage with the intention of making buttons and other elements on a website/webapp easier to interact with. 42 | 43 | It was largely inspired by the ipadOS cursor, but is implemented in such a way that allows for greater visual and behavioral customization. 44 | 45 | You can try the pointer out at: https://lemonorangewastaken.github.io/BetterPointer/ 46 | 47 |
48 | 49 |

Getting Started

50 | 51 | This section will cover what you need to setup and start using your cursor. 52 | 53 |

Installation

54 | 55 | > ***Note**: if you are using JS without NPM, a cdn accessible `min.js` file is not yet avaiable, but should hopefully be soon.* 56 | 57 | This package is available on NPM, and currently supports TS and JS. To install, setup an npm project by running: 58 | ```bash 59 | npm init -y 60 | ``` 61 | Then, install the package by running 62 | ```bash 63 | npm i betterpointer 64 | ``` 65 | **Please note**: this package only works with frontend JS/TS, and will not work on NodeJS/TS. If you need instructions on how to setup npm libraries for frontend JS, please read [this article](https://fredriccliver.medium.com/how-can-i-use-an-npm-module-in-front-end-javascript-63d54d53c005). 66 | 67 |

Setup

68 | To setup the cursor in your project, create an empty div under the body tag of your HTML file, and give it a unique id. Ex: 69 | 70 | ```html 71 | 72 |
73 | 74 | 75 | ``` 76 | 77 | Make sure that there are no styles applied to this div, either in the inline HTML or in a linked CSS sheet. 78 | 79 | In your JS/TS file, import the package: 80 | 81 | ```ts 82 | import cursor from "betterCursor"; 83 | ``` 84 | 85 | Then, create an instance of the cursor. This is what will be used to control your cursor, such as toggling light and dark mode. 86 | 87 | ```ts 88 | const myCursor = new cursor("some-unique-id"); 89 | ``` 90 | 91 | You may also pass in a configuration object, like so: 92 | 93 | ```ts 94 | const config = { 95 | size : "50px", 96 | mass : 125 97 | }; 98 | 99 | const myCursor = new cursor("some-unique-id", config); 100 | ``` 101 | 102 | #### Configurable parameters: 103 | | Key | Default | Units | Descritpion | 104 | | :---: | :---: | :---: | :--- | 105 | | size | "24px" | - | The default size of the cursor. | 106 | | mass | 75 | - | How "heavy" the cursor feels. | 107 | | trackingPeriod | 50 | ms | The period in which the cursor will check for elements to snap on to. | 108 | 109 |

Usage

110 | 111 | This section will cover how to utilize your cursor to its full potential. 112 | 113 |

Cursor controls

114 | 115 | These are functions that you can use to control the cursor's appearance and behavior. 116 | 117 |
118 | 119 | #### Setting the cursor's dark/light appearance 120 | 121 | If your site contains a toggleable dark theme or you need to forcibly change the light/dark appearance of your cursor, you may use these two functions to do so: 122 | 123 | ```ts 124 | myCursor.setDark(); // make the cursor visible in dark theme 125 | myCursor.setLight(); // make the cursor visible in light theme 126 | ``` 127 | 128 | **Note**: `setDark()` will set the cursor to a translucent white color and is meant to be used in a dark themed environment. It does **not** make the cursor itself dark! The same logic applied to `setLight()` as well. 129 | 130 | --- 131 | 132 | #### Forcibly morphing/snapping the cursor 133 | 134 | *Doing this is not reccomended*, as it is still in development and can act buggy. But if, for whatever reason, you need to morph/snap the cursor to an element, you may use this command to do so: 135 | ```ts 136 | // morph the cursor into text mode, 137 | // and apply this effect in reference of myElmnt 138 | setShape("text", myElmnt, false, 15); 139 | ``` 140 | Here's what each of the parameter means (in order): 141 | | Name | Type | Optional | Default | Descritpion | 142 | | :---: | :---: | :---: | :---: | :--- | 143 | | shape | String | ❌ | - | Shape that the cursor should morph to | 144 | | elmnt | HTMLElement | ✅ | currentHoveringElmnt | The reference element (to get parameters such as size and line height from) | 145 | | hideCursor | Boolean | ✅ | false | Whether or not to hide the cursor | 146 | | snapCoef | Number | ✅ | 10 | The larger the number is, the more the element will stick to the cursor.| 147 | 148 | All the shapes that are available (if the shape doesn't match any in this table, the cursor will just return to normal): 149 | 150 | | Shape | Description | 151 | | :---: | :--- | 152 | | Text | Morph your cursor into a text selection shape, with height matching the line height | 153 | | input | Similar to the text selection, except there will be a bit of Y snapping in the text input box | 154 | | button | Complete snap onto an element in the X and Y direction | 155 | 156 |

Element Settings

157 | 158 | Your cursor will only morph/snap onto elements you specified. So if you have a button but didn't specify for the cursor to snap onto it, it will be ignored as a normal element. 159 | 160 | BetterPointer uses custom HTML attributes to identify target elements. Some examples are provided below: 161 | ```html 162 | 163 |

Lorem ipsum dolor sit amet...

164 | 165 | 166 | 167 | ``` 168 | 169 | Some of attributes available to configure cursor snap target: 170 | | Attributes | Snap To Elmnt | Description | 171 | | :---: | :---: |:--- | 172 | | snaptext | ❌ | morphs the cursor into the text's shape. | 173 | | snapinput | ✅ | snaps the cursor into the input box. | 174 | | snapbutton | ✅ | snaps the cursor to the shape of the button (works on different elements too). | 175 | | bigsnapbutton | ✅ | Same as `snapbutton`, but hides the cursor and is more sticky. | 176 | 177 | Some of the attributes available to configure cursor behavior: 178 | | Attributes | Example | Description | 179 | | :---: | :---: |:--- | 180 | | growth | "10px" | Enlarges the cursor by specified amount (Ex: 10px). | 181 | 182 | 183 | **Note**: in `snapbutton` and `bigsnapbutton` mode, the cursor will morph to the element's bounding box width, height, and corner radius. It is advised to add some padding and corner radius to your elements for an optimal snapping effect. 184 | 185 |

Known issues

186 | 187 | Here are some known issues about the library so far: 188 | 189 | 1. Safari absolutely refuses to work with the web (as well as Internet Explorer). 190 | 2. Does not work well with transitioning elements 191 | 3. Random errors in the console sometimes 192 | 4. Immense lag on opening up dev tools 193 | 5. Poor behavior with mouse on demo page 194 | 195 |

Troubleshooting

196 | 197 | If your cursor does not show up, please check if there is any elements overlaid on top of it that has a z-index over 999999. If there is some other errors, please file an issue report [here](https://github.com/LemonOrangeWasTaken/BetterPointer/issues), or make a [pull request](https://github.com/LemonOrangeWasTaken/BetterPointer/pulls). 198 | 199 |

Contributing

200 | 201 | You can't yet, but if you would like to work on it for some reason, please contact me at lemon@thelemonorange.com 202 | 203 |

License

204 | 205 | BetterPointer is licensed under the GPL-3.0 license, please respect it. -------------------------------------------------------------------------------- /docs/assets/img/vec/banner.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 19 | 45 | 47 | 52 | 55 | 59 | 63 | 67 | 71 | 75 | 79 | 83 | 84 | 87 | 91 | 95 | 99 | 103 | 107 | 111 | 115 | 116 | 117 | 118 | 119 | -------------------------------------------------------------------------------- /src/betterCursor.ts: -------------------------------------------------------------------------------- 1 | import anime from "animejs"; 2 | 3 | interface configFormat{ 4 | size?:string, 5 | mass?:number, 6 | trackingPeriod?:number 7 | } 8 | 9 | interface transProp{ 10 | property:string[], 11 | duration:number 12 | } 13 | 14 | interface cursorLocation{ 15 | x:number, 16 | y:number, 17 | ox:number, 18 | oy:number 19 | } 20 | 21 | export default class cursor{ 22 | 23 | readonly cursorWidth:string | undefined; 24 | readonly cursorHeight:string | undefined; 25 | readonly cursorMass:number | undefined; 26 | readonly cursorElement:HTMLElement | undefined; 27 | readonly trkPer:number | undefined; 28 | 29 | currentCursorWidth:string | undefined; 30 | currentCursorHeight:string | undefined; 31 | currentCursorRadius:string | undefined; 32 | currentCursorGrowth:string | undefined; 33 | 34 | private _lastSnapElmnt:HTMLElement | undefined; 35 | private _currentSnapElmnt:HTMLElement | undefined; 36 | private _currentSnapBbox:any | undefined; 37 | 38 | private _lastHoverElmnt:HTMLElement | undefined; 39 | private _currentHoverElmnt:HTMLElement | undefined; 40 | private _transitionProperties:transProp[] | undefined; 41 | private _transitionSuppression:Set | undefined; 42 | 43 | private _elementTransitionDelay:any | undefined; 44 | 45 | snappedX:boolean = false; 46 | snappedY:boolean = false; 47 | moveElmnt:boolean = true; 48 | hidden:boolean = false; 49 | 50 | dark:boolean = false; 51 | currentCursorLoc:cursorLocation = { 52 | x:0, 53 | y:0, 54 | ox:0, 55 | oy:0 56 | } 57 | snapCoef:number = 1; 58 | 59 | constructor(id:string, config:configFormat={}){ 60 | this.cursorElement = document.getElementById(id)!; 61 | if(!this.cursorElement){ 62 | console.error(`Cursor with id:${id} does not exist.`); 63 | return; 64 | } 65 | // set corresponding attributes 66 | this.currentCursorWidth = this.cursorWidth = config.size || "24px"; // default values 67 | this.currentCursorHeight = this.cursorHeight = config.size || "24px"; 68 | this.currentCursorRadius = "1000rem"; 69 | // this.cursorMass = config.mass || 75; 70 | this.cursorMass = config.mass || 0; 71 | this.trkPer = config.trackingPeriod || 50; 72 | 73 | // set up cursor with style 74 | { 75 | // position and behavior 76 | this.cursorElement.style.pointerEvents = "none"; // make the cursor uninteractable 77 | this.cursorElement.style.position = "fixed"; // make the cursor fixed on the screen 78 | this.cursorElement.style.zIndex = "999999"; // set z index to be on the top 79 | this.cursorElement.style.left = "0"; // fix the cursor to the top left of the screen 80 | this.cursorElement.style.top = "0"; 81 | 82 | // set transitions 83 | this._transitionProperties = [ 84 | { 85 | property: ["width", "height", "borderRadius", "opacity"], 86 | duration: 100, 87 | } 88 | ]; 89 | this._transitionSuppression = new Set(); 90 | this._updateCursorTransition(); // update the transition properties 91 | 92 | // size and shape 93 | this.cursorElement.style.width = this.currentCursorWidth; // set width 94 | this.cursorElement.style.height = this.currentCursorHeight; // set height 95 | this.cursorElement.style.borderRadius = this.currentCursorRadius; // set cursor radius 96 | this.cursorElement.style.opacity = "0"; // set cursor radius 97 | 98 | // initial coloring 99 | this.cursorElement.style.backgroundColor = "hsla(0, 0%, 0%, 0.4)"; // background color 100 | } 101 | 102 | // make it so that the cursor hides when the real cursor leaves 103 | document.documentElement.addEventListener('mouseleave', () => this.cursorElement!.style.opacity = "0"); 104 | document.documentElement.addEventListener('keydown', () => this.cursorElement!.style.opacity = "0"); 105 | document.documentElement.addEventListener('mouseenter', () => this.cursorElement!.style.opacity = "1"); 106 | 107 | // start updating positioning of the cursor 108 | requestAnimationFrame(this._updatePositioncycle); 109 | 110 | // start tracking the real cursor 111 | document.onmousemove = (e:MouseEvent):void => { 112 | if(!this.hidden) this.cursorElement!.style.opacity = "1"; 113 | 114 | this.currentCursorLoc.x=e.x; this.currentCursorLoc.y=e.y; 115 | }; 116 | 117 | // track colors 118 | setInterval(():void => { 119 | // track colors (contrasting elements) 120 | this._currentHoverElmnt = document.elementFromPoint(this.currentCursorLoc.x, this.currentCursorLoc.y) 121 | if(this._currentHoverElmnt != this._lastHoverElmnt){ 122 | // check for contrast 123 | if(this._currentHoverElmnt!.hasAttribute("contrast")) this.dark ? this.setLight(false) : this.setDark(false); 124 | else this.dark ? this.setDark(false) : this.setLight(false); 125 | 126 | this._updateCursorState(); 127 | } 128 | this._lastHoverElmnt = this._currentHoverElmnt 129 | 130 | this._updateCursorTransition(); // update the transition properties 131 | }, this.trkPer) 132 | } 133 | 134 | private _updateCursorTransition = ():void => { 135 | let transitionStr:string = ""; 136 | for(let i:number = 0; i < this._transitionProperties!.length; i++){ 137 | let propDur:number = this._transitionProperties![i].duration; 138 | this._transitionProperties![i].property.forEach((prop:string):void => { 139 | if(!this._transitionSuppression!.has(prop)){ // make sure that this transition property isn't supressed 140 | transitionStr += `${prop} ${propDur}ms ease, ` 141 | } 142 | }) 143 | } 144 | this.cursorElement!.style.transition = transitionStr.substring(0,transitionStr.length-2); 145 | } 146 | 147 | private _updateCursorState = ():void => { 148 | 149 | if(this._currentHoverElmnt!.hasAttribute("snaptext")){ this.setShape("text"); this._offsetTransitioned = false; } 150 | else if (this._currentHoverElmnt!.hasAttribute("snapinput")){ this.setShape("input", this._currentHoverElmnt); this._offsetTransitioned = false; } 151 | else if (this._currentHoverElmnt!.hasAttribute("snapbutton")){ this.setShape("button"); this._offsetTransitioned = false; } 152 | else if (this._currentHoverElmnt!.hasAttribute("bigsnapbutton")){ this.setShape("button", this._currentHoverElmnt, true, 20); this._offsetTransitioned = false; } 153 | else this.setShape(""); 154 | } 155 | 156 | private _offsetTransitioned:boolean = false; 157 | private _updatePositioncycle = ():void => { 158 | const cbbox = this.cursorElement!.getBoundingClientRect(); 159 | if(!(this.snappedX || this.snappedY)){ // if there is no snappable element, track the cursor as usual 160 | this.currentCursorLoc.ox = cbbox.width / -2; 161 | this.currentCursorLoc.oy = cbbox.height / -2; 162 | } else { 163 | // calculate the offset distance from cursor to the element's center 164 | const offsetX = this.currentCursorLoc.x - this._currentSnapBbox.x - this._currentSnapBbox.width/2; 165 | const offsetY = this.currentCursorLoc.y - this._currentSnapBbox.y - this._currentSnapBbox.height/2; 166 | const newox = (this.snappedX ? -offsetX/(1.5 * (-0.6667*Math.tanh(this._currentSnapBbox.width/200)+1.3333)) : 0) + cbbox.width / -2 167 | const newoy = (this.snappedY ? -offsetY/(1.5 * (-0.6667*Math.tanh(this._currentSnapBbox.height/200)+1.3333)) : 0) + cbbox.height / -2 168 | 169 | if(!this._offsetTransitioned){ 170 | anime({ 171 | targets:this.currentCursorLoc, 172 | ox: newox, 173 | oy: newoy, 174 | easing: "easeOutCubic", 175 | duration:33, 176 | update: () => { 177 | this.cursorElement!.style.transform = `translate3d(${this.currentCursorLoc.x + this.currentCursorLoc.ox }px, ${this.currentCursorLoc.y + this.currentCursorLoc.oy}px,0)`; // move the cursor accordingly 178 | }, 179 | loop:3, 180 | complete: () => { 181 | this._offsetTransitioned = true; 182 | } 183 | }); 184 | } else{ 185 | anime.set(this.currentCursorLoc, { 186 | ox: newox, 187 | oy: newoy, 188 | }); 189 | } 190 | 191 | this._elementTransitionDelay = setTimeout(() => { 192 | if(!!this._currentSnapElmnt) this._currentSnapElmnt.style.transition = "0ms ease"; 193 | }, 100); 194 | 195 | if(this.moveElmnt) this._currentSnapElmnt!.style.transform = `translate3d(${ this.snappedX ? offsetX/(this._currentSnapBbox.width/this.snapCoef) : 0 }px, ${ this.snappedY ? offsetY/(this._currentSnapBbox.height/this.snapCoef) : 0}px, 0)`; // border size 196 | } 197 | 198 | this.cursorElement!.style.transform = `translate3d(${this.currentCursorLoc.x + this.currentCursorLoc.ox }px, ${this.currentCursorLoc.y + this.currentCursorLoc.oy}px,0)`; // move the cursor accordingly 199 | 200 | // update frame 201 | requestAnimationFrame(this._updatePositioncycle); 202 | } 203 | 204 | setDark = (set:boolean = true):void => { 205 | if(set) this.dark = true; 206 | // if the cursor isn't snapped (aka normal state), change background color according to that 207 | this.cursorElement!.style.backgroundColor = (this.snappedX || this.snappedY) ? "hsla(0, 0%, 100%, 0.1)" : "hsla(0, 0%, 100%, 0.4)"; 208 | 209 | } 210 | setLight = (set:boolean = true):void => { 211 | if(set) this.dark = false; 212 | // if the cursor isn't snapped (aka normal state), change background color according to that 213 | this.cursorElement!.style.backgroundColor = (this.snappedX || this.snappedY) ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 0%, 0.4)"; 214 | } 215 | 216 | setShape = (shape:string, elmnt:HTMLElement=this._currentHoverElmnt!, hideCursor:boolean=false, snapCoef=10) => { 217 | const reset_last_snap_pos = ():void => { 218 | if(!!this._lastSnapElmnt){ 219 | this._lastSnapElmnt!.style.transition = "200ms ease"; 220 | this._lastSnapElmnt!.style.transform = "translate3d(0,0,0)"; // reset element scale 221 | this._lastSnapElmnt!.style.scale = "1"; 222 | } 223 | } 224 | const set_snap = ():void => { // call this function whenever an element that is snappable is hovered over on 225 | this._currentSnapElmnt = elmnt; // set the snapping element to the correct element 226 | this._currentSnapBbox = elmnt.getBoundingClientRect(); // set the bounding box so it doesnt change 227 | 228 | // reset last snapped element offset and scale (if it exists) 229 | if(this._currentSnapElmnt != this._lastSnapElmnt){ 230 | reset_last_snap_pos(); 231 | } 232 | 233 | this._lastSnapElmnt = this._currentSnapElmnt; // set the last snapping element to the current element 234 | } 235 | 236 | this.hidden = hideCursor; 237 | this.snapCoef = snapCoef; 238 | this.currentCursorGrowth = elmnt.getAttribute("growth") || "0px"; 239 | 240 | switch(shape){ 241 | case "text": 242 | // set snapped state to true 243 | this.snappedX = this.snappedY = false; 244 | this.moveElmnt = true; 245 | 246 | this.currentCursorWidth = `max(3px, calc(${window.getComputedStyle(elmnt).lineHeight} / 12))`; // set width 247 | this.currentCursorHeight = window.getComputedStyle(elmnt).lineHeight; // set width 248 | 249 | reset_last_snap_pos(); 250 | 251 | if(hideCursor) this.cursorElement!.style.opacity = "0"; // hide cursor all together 252 | if(this.dark) this.cursorElement!.style.backgroundColor = "hsla(0, 0%, 100%, 0.7)"; // background color 253 | else this.cursorElement!.style.backgroundColor = "hsla(0, 0%, 0%, 0.7)"; // background color 254 | break; 255 | case "input": 256 | // set snapped state to true 257 | this.snappedX = this.moveElmnt = false; 258 | this.snappedY = true; 259 | 260 | 261 | this.currentCursorWidth = `3px`; // set width 262 | this.currentCursorHeight = `calc(${window.getComputedStyle(elmnt).height} - 2px)`; // set width 263 | 264 | set_snap(); 265 | 266 | if(hideCursor) this.cursorElement!.style.opacity = "0"; // hide cursor all together 267 | if(this.dark) this.cursorElement!.style.backgroundColor = "hsla(0, 0%, 100%, 0.4)"; // background color 268 | else this.cursorElement!.style.backgroundColor = "hsla(0, 0%, 0%, 0.4)"; // background color 269 | 270 | break; 271 | case "button": 272 | // set snapped state to true 273 | this.snappedX = this.snappedY = true; 274 | this.moveElmnt = true; 275 | 276 | this.currentCursorWidth = `calc(${elmnt?.getBoundingClientRect().width}px + ${this.currentCursorGrowth})`; // set width 277 | this.currentCursorHeight = `calc(${elmnt?.getBoundingClientRect().height}px + ${this.currentCursorGrowth})`; // set width 278 | this.currentCursorRadius = window.getComputedStyle(elmnt).borderRadius; // set radius 279 | 280 | this.cursorElement!.style.zIndex = "0"; // set z-index to the bottom (for highlighting) 281 | 282 | set_snap(); 283 | 284 | // set transition properties for easing 285 | this._currentSnapElmnt!.style.transitionProperty = "scale, transform, opacity"; 286 | this._currentSnapElmnt!.style.transition = `200ms ease`; 287 | 288 | // if the client request to hide the cursor, hide it all togehter 289 | if(hideCursor){ 290 | this.cursorElement!.style.opacity = "0"; 291 | break; 292 | } 293 | // hide the border and background color 294 | if(this.dark) this.cursorElement!.style.backgroundColor = "hsla(0, 0%, 100%, 0.1)"; // dark mode bgc 295 | else this.cursorElement!.style.backgroundColor = "hsla(0, 0%, 0%, 0.1)"; // light mode bgc 296 | break; 297 | default: 298 | this.snappedX = this.snappedY = false; 299 | this.moveElmnt = true; 300 | 301 | this.currentCursorRadius = this.cursorWidth; // reset border radius 302 | this.currentCursorWidth = this.cursorWidth; // set width 303 | this.currentCursorHeight = this.cursorHeight; // set height 304 | this.currentCursorLoc.ox = this.currentCursorLoc.oy = 0; // reset cursor offsets 305 | 306 | this.cursorElement!.style.zIndex = "999999"; // reset z-index 307 | 308 | // remove timeout for snap delay removal 309 | if(!!this._elementTransitionDelay){ 310 | clearTimeout(this._elementTransitionDelay); 311 | } 312 | 313 | if(!!this._currentSnapElmnt){ 314 | reset_last_snap_pos(); 315 | } 316 | this._currentSnapElmnt = undefined; // reset snapping elements 317 | 318 | this.cursorElement!.style.opacity = "1"; // background color 319 | if(this.dark) this.setDark(); 320 | else this.setLight(); 321 | } 322 | 323 | // update the shape 324 | this.cursorElement!.style.width = this.currentCursorWidth!; 325 | this.cursorElement!.style.height = this.currentCursorHeight!; 326 | this.cursorElement!.style.borderRadius = this.currentCursorRadius!; 327 | } 328 | } -------------------------------------------------------------------------------- /docs/bund/app.bundle.js: -------------------------------------------------------------------------------- 1 | (()=>{"use strict";var t={30:(t,e,r)=>{r.r(e),r.d(e,{default:()=>nt});var n={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},i={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},s=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],o={CSS:{},springs:{}};function a(t,e,r){return Math.min(Math.max(t,e),r)}function u(t,e){return t.indexOf(e)>-1}function c(t,e){return t.apply(null,e)}var l={arr:function(t){return Array.isArray(t)},obj:function(t){return u(Object.prototype.toString.call(t),"Object")},pth:function(t){return l.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||l.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return l.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return l.hex(t)||l.rgb(t)||l.hsl(t)},key:function(t){return!n.hasOwnProperty(t)&&!i.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function h(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function d(t,e){var r=h(t),n=a(l.und(r[0])?1:r[0],.1,100),i=a(l.und(r[1])?100:r[1],.1,100),s=a(l.und(r[2])?10:r[2],.1,100),u=a(l.und(r[3])?0:r[3],.1,100),c=Math.sqrt(i/n),d=s/(2*Math.sqrt(i*n)),f=d<1?c*Math.sqrt(1-d*d):0,p=d<1?(d*c-u)/f:-u+c;function m(t){var r=e?e*t/1e3:t;return r=d<1?Math.exp(-r*d*c)*(1*Math.cos(f*r)+p*Math.sin(f*r)):(1+p*r)*Math.exp(-r*c),0===t||1===t?t:1-r}return e?m:function(){var e=o.springs[t];if(e)return e;for(var r=1/6,n=0,i=0;;)if(1===m(n+=r)){if(++i>=16)break}else i=0;var s=n*r*1e3;return o.springs[t]=s,s}}function f(t){return void 0===t&&(t=10),function(e){return Math.ceil(a(e,1e-6,1)*t)*(1/t)}}var p,m,g=function(){var t=.1;function e(t,e){return 1-3*e+3*t}function r(t,e){return 3*e-6*t}function n(t){return 3*t}function i(t,i,s){return((e(i,s)*t+r(i,s))*t+n(i))*t}function s(t,i,s){return 3*e(i,s)*t*t+2*r(i,s)*t+n(i)}return function(e,r,n,o){if(0<=e&&e<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(e!==r||n!==o)for(var u=0;u<11;++u)a[u]=i(u*t,e,n);return function(u){return e===r&&n===o||0===u||1===u?u:i(function(r){for(var o=0,u=1;10!==u&&a[u]<=r;++u)o+=t;--u;var c=o+(r-a[u])/(a[u+1]-a[u])*t,l=s(c,e,n);return l>=.001?function(t,e,r,n){for(var o=0;o<4;++o){var a=s(e,r,n);if(0===a)return e;e-=(i(e,r,n)-t)/a}return e}(r,c,e,n):0===l?c:function(t,e,r,n,s){var o,a,u=0;do{(o=i(a=e+(r-e)/2,n,s)-t)>0?r=a:e=a}while(Math.abs(o)>1e-7&&++u<10);return a}(r,o,o+t,e,n)}(u),r,o)}}}}(),v=(p={linear:function(){return function(t){return t}}},m={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,r=4;t<((e=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var r=a(t,1,10),n=a(e,.1,2);return function(t){return 0===t||1===t?t:-r*Math.pow(2,10*(t-1))*Math.sin((t-1-n/(2*Math.PI)*Math.asin(1/r))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(t,e){m[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(m).forEach((function(t){var e=m[t];p["easeIn"+t]=e,p["easeOut"+t]=function(t,r){return function(n){return 1-e(t,r)(1-n)}},p["easeInOut"+t]=function(t,r){return function(n){return n<.5?e(t,r)(2*n)/2:1-e(t,r)(-2*n+2)/2}},p["easeOutIn"+t]=function(t,r){return function(n){return n<.5?(1-e(t,r)(1-2*n))/2:(e(t,r)(2*n-1)+1)/2}}})),p);function y(t,e){if(l.fnc(t))return t;var r=t.split("(")[0],n=v[r],i=h(t);switch(r){case"spring":return d(t,e);case"cubicBezier":return c(g,i);case"steps":return c(f,i);default:return c(n,i)}}function b(t){try{return document.querySelectorAll(t)}catch(t){return}}function E(t,e){for(var r=t.length,n=arguments.length>=2?arguments[1]:void 0,i=[],s=0;s1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(0==o)e=r=n=a;else{var l=a<.5?a*(1+o):a+o-a*o,h=2*a-l;e=c(h,l,s+1/3),r=c(h,l,s),n=c(h,l,s-1/3)}return"rgba("+255*e+","+255*r+","+255*n+","+u+")"}(t):void 0;var e,r}(t);if(/\s/g.test(t))return t;var r=M(t),n=r?t.substr(0,t.length-r.length):t;return e?n+e:n}function $(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function F(t){for(var e,r=t.points,n=0,i=0;i0&&(n+=$(e,s)),e=s}return n}function j(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*P(t,"r")}(t);case"rect":return function(t){return 2*P(t,"width")+2*P(t,"height")}(t);case"line":return function(t){return $({x:P(t,"x1"),y:P(t,"y1")},{x:P(t,"x2"),y:P(t,"y2")})}(t);case"polyline":return F(t);case"polygon":return function(t){var e=t.points;return F(t)+$(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function W(t,e){var r=e||{},n=r.el||function(t){for(var e=t.parentNode;l.svg(e)&&l.svg(e.parentNode);)e=e.parentNode;return e}(t),i=n.getBoundingClientRect(),s=P(n,"viewBox"),o=i.width,a=i.height,u=r.viewBox||(s?s.split(" "):[0,0,o,a]);return{el:n,viewBox:u,x:u[0]/1,y:u[1]/1,w:o,h:a,vW:u[2],vH:u[3]}}function X(t,e,r){function n(r){void 0===r&&(r=0);var n=e+r>=1?e+r:0;return t.el.getPointAtLength(n)}var i=W(t.el,t.svg),s=n(),o=n(-1),a=n(1),u=r?1:i.w/i.vW,c=r?1:i.h/i.vH;switch(t.property){case"x":return(s.x-i.x)*u;case"y":return(s.y-i.y)*c;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function q(t,e){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=A(l.pth(t)?t.totalLength:t,e)+"";return{original:n,numbers:n.match(r)?n.match(r).map(Number):[0],strings:l.str(t)||e?n.split(r):[]}}function N(t){return E(t?x(l.arr(t)?t.map(_):_(t)):[],(function(t,e,r){return r.indexOf(t)===e}))}function R(t){var e=N(t);return e.map((function(t,r){return{target:t,id:r,total:e.length,transforms:{list:D(t)}}}))}function Y(t,e){var r=w(e);if(/^spring/.test(r.easing)&&(r.duration=d(r.easing)),l.arr(t)){var n=t.length;2!==n||l.obj(t[0])?l.fnc(e.duration)||(r.duration=e.duration/n):t={value:t}}var i=l.arr(t)?t:[t];return i.map((function(t,r){var n=l.obj(t)&&!l.pth(t)?t:{value:t};return l.und(n.delay)&&(n.delay=r?0:e.delay),l.und(n.endDelay)&&(n.endDelay=r===i.length-1?e.endDelay:0),n})).map((function(t){return S(t,r)}))}var z={css:function(t,e,r){return t.style[e]=r},attribute:function(t,e,r){return t.setAttribute(e,r)},object:function(t,e,r){return t[e]=r},transform:function(t,e,r,n,i){if(n.list.set(e,r),e===n.last||i){var s="";n.list.forEach((function(t,e){s+=e+"("+t+") "})),t.style.transform=s}}};function V(t,e){R(t).forEach((function(t){for(var r in e){var n=L(e[r],t),i=t.target,s=M(n),o=H(i,r,s,t),a=I(A(n,s||M(o)),o),u=O(i,r);z[u](i,r,a,t.transforms,!0)}}))}function G(t,e){return E(x(t.map((function(t){return e.map((function(e){return function(t,e){var r=O(t.target,e.name);if(r){var n=function(t,e){var r;return t.tweens.map((function(n){var i=function(t,e){var r={};for(var n in t){var i=L(t[n],e);l.arr(i)&&1===(i=i.map((function(t){return L(t,e)}))).length&&(i=i[0]),r[n]=i}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}(n,e),s=i.value,o=l.arr(s)?s[1]:s,a=M(o),u=H(e.target,t.name,a,e),c=r?r.to.original:u,h=l.arr(s)?s[0]:c,d=M(h)||M(u),f=a||d;return l.und(o)&&(o=c),i.from=q(h,f),i.to=q(I(o,h),f),i.start=r?r.end:0,i.end=i.start+i.delay+i.duration+i.endDelay,i.easing=y(i.easing,i.duration),i.isPath=l.pth(s),i.isPathTargetInsideSVG=i.isPath&&l.svg(e.target),i.isColor=l.col(i.from.original),i.isColor&&(i.round=1),r=i,i}))}(e,t),i=n[n.length-1];return{type:r,property:e.name,animatable:t,tweens:n,duration:i.end,delay:n[0].delay,endDelay:i.endDelay}}}(t,e)}))}))),(function(t){return!l.und(t)}))}function Q(t,e){var r=t.length,n=function(t){return t.timelineOffset?t.timelineOffset:0},i={};return i.duration=r?Math.max.apply(Math,t.map((function(t){return n(t)+t.duration}))):e.duration,i.delay=r?Math.min.apply(Math,t.map((function(t){return n(t)+t.delay}))):e.delay,i.endDelay=r?i.duration-Math.max.apply(Math,t.map((function(t){return n(t)+t.duration-t.endDelay}))):e.endDelay,i}var Z=0,J=[],K=function(){var t;function e(r){for(var n=J.length,i=0;i0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){tt.suspendWhenDocumentHidden&&(U()?t=cancelAnimationFrame(t):(J.forEach((function(t){return t._onDocumentVisibility()})),K()))})),function(){t||U()&&tt.suspendWhenDocumentHidden||!(J.length>0)||(t=requestAnimationFrame(e))}}();function U(){return!!document&&document.hidden}function tt(t){void 0===t&&(t={});var e,r=0,s=0,o=0,u=0,c=null;function h(t){var e=window.Promise&&new Promise((function(t){return c=t}));return t.finished=e,e}var d=function(t){var e=k(n,t),r=k(i,t),s=function(t,e){var r=[],n=e.keyframes;for(var i in n&&(e=S(function(t){for(var e=E(x(t.map((function(t){return Object.keys(t)}))),(function(t){return l.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),r={},n=function(n){var i=e[n];r[i]=t.map((function(t){var e={};for(var r in t)l.key(r)?r==i&&(e.value=t[r]):e[r]=t[r];return e}))},i=0;i2||(b=Math.round(b*p)/p)),m.push(b)}var C=f.length;if(C){v=f[0];for(var w=0;w0&&(d.began=!0,y("begin")),!d.loopBegan&&d.currentTime>0&&(d.loopBegan=!0,y("loopBegin")),m<=i&&0!==d.currentTime&&v(0),(m>=l&&d.currentTime!==n||!n)&&v(n),m>i&&m=n&&(s=0,d.remaining&&!0!==d.remaining&&d.remaining--,d.remaining?(r=o,y("loopComplete"),d.loopBegan=!1,"alternate"===d.direction&&f()):(d.paused=!0,d.completed||(d.completed=!0,y("loopComplete"),y("complete"),!d.passThrough&&"Promise"in window&&(c(),h(d)))))}return h(d),d.reset=function(){var t=d.direction;d.passThrough=!1,d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.loopBegan=!1,d.changeBegan=!1,d.completed=!1,d.changeCompleted=!1,d.reversePlayback=!1,d.reversed="reverse"===t,d.remaining=d.loop,e=d.children;for(var r=u=e.length;r--;)d.children[r].reset();(d.reversed&&!0!==d.loop||"alternate"===t&&1===d.loop)&&d.remaining++,v(d.reversed?d.duration:0)},d._onDocumentVisibility=m,d.set=function(t,e){return V(t,e),d},d.tick=function(t){o=t,r||(r=o),b((o+(s-r))*tt.speed)},d.seek=function(t){b(p(t))},d.pause=function(){d.paused=!0,m()},d.play=function(){d.paused&&(d.completed&&d.reset(),d.paused=!1,J.push(d),m(),K())},d.reverse=function(){f(),d.completed=!d.reversed,m()},d.restart=function(){d.reset(),d.play()},d.remove=function(t){rt(N(t),d)},d.reset(),d.autoplay&&d.play(),d}function et(t,e){for(var r=e.length;r--;)C(t,e[r].animatable.target)&&e.splice(r,1)}function rt(t,e){var r=e.animations,n=e.children;et(t,r);for(var i=n.length;i--;){var s=n[i],o=s.animations;et(t,o),o.length||s.children.length||n.splice(i,1)}r.length||n.length||e.pause()}tt.version="3.2.1",tt.speed=1,tt.suspendWhenDocumentHidden=!0,tt.running=J,tt.remove=function(t){for(var e=N(t),r=J.length;r--;)rt(e,J[r])},tt.get=H,tt.set=V,tt.convertPx=B,tt.path=function(t,e){var r=l.str(t)?b(t)[0]:t,n=e||100;return function(t){return{property:t,el:r,svg:W(r),totalLength:j(r)*(n/100)}}},tt.setDashoffset=function(t){var e=j(t);return t.setAttribute("stroke-dasharray",e),e},tt.stagger=function(t,e){void 0===e&&(e={});var r=e.direction||"normal",n=e.easing?y(e.easing):null,i=e.grid,s=e.axis,o=e.from||0,a="first"===o,u="center"===o,c="last"===o,h=l.arr(t),d=h?parseFloat(t[0]):parseFloat(t),f=h?parseFloat(t[1]):0,p=M(h?t[1]:t)||0,m=e.start||0+(h?d:0),g=[],v=0;return function(t,e,l){if(a&&(o=0),u&&(o=(l-1)/2),c&&(o=l-1),!g.length){for(var y=0;y-1&&J.splice(s,1);for(var u=0;u{var t;t=new s.default("custom-cursor"),document.getElementById("side-menu-btn").addEventListener("click",(t=>{e.menu_opened=!e.menu_opened,(0,i.default)({targets:"#side-menu",translateX:(e.menu_opened?0:-240)+"pt",easing:"easeOutQuart",duration:500}),(0,i.default)({targets:"#side-menu-control-container",translateX:(e.menu_opened?175:0)+"pt",easing:"easeOutQuart",duration:450,delay:e.menu_opened?40:0}),e.menu_opened?document.querySelector("body").classList.add("side-opened"):document.querySelector("body").classList.remove("side-opened")})),document.getElementById("dark-mode-btn").addEventListener("click",(r=>{e.is_dark_mode=!e.is_dark_mode,e.is_dark_mode?(document.querySelector("body").classList.add("dark-mode"),t.setDark()):(document.querySelector("body").classList.remove("dark-mode"),t.setLight())}))}},916:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(r(30));e.default=class{constructor(t,e={}){this.snappedX=!1,this.snappedY=!1,this.moveElmnt=!0,this.hidden=!1,this.dark=!1,this.currentCursorLoc={x:0,y:0,ox:0,oy:0},this.snapCoef=1,this._updateCursorTransition=()=>{let t="";for(let e=0;e{this._transitionSuppression.has(e)||(t+=`${e} ${r}ms ease, `)}))}this.cursorElement.style.transition=t.substring(0,t.length-2)},this._updateCursorState=()=>{this._currentHoverElmnt.hasAttribute("snaptext")?(this.setShape("text"),this._offsetTransitioned=!1):this._currentHoverElmnt.hasAttribute("snapinput")?(this.setShape("input",this._currentHoverElmnt),this._offsetTransitioned=!1):this._currentHoverElmnt.hasAttribute("snapbutton")?(this.setShape("button"),this._offsetTransitioned=!1):this._currentHoverElmnt.hasAttribute("bigsnapbutton")?(this.setShape("button",this._currentHoverElmnt,!0,20),this._offsetTransitioned=!1):this.setShape("")},this._offsetTransitioned=!1,this._updatePositioncycle=()=>{const t=this.cursorElement.getBoundingClientRect();if(this.snappedX||this.snappedY){const e=this.currentCursorLoc.x-this._currentSnapBbox.x-this._currentSnapBbox.width/2,r=this.currentCursorLoc.y-this._currentSnapBbox.y-this._currentSnapBbox.height/2,n=(this.snappedX?-e/(1.5*(-.6667*Math.tanh(this._currentSnapBbox.width/200)+1.3333)):0)+t.width/-2,s=(this.snappedY?-r/(1.5*(-.6667*Math.tanh(this._currentSnapBbox.height/200)+1.3333)):0)+t.height/-2;this._offsetTransitioned?i.default.set(this.currentCursorLoc,{ox:n,oy:s}):(0,i.default)({targets:this.currentCursorLoc,ox:n,oy:s,easing:"easeOutCubic",duration:33,update:()=>{this.cursorElement.style.transform=`translate3d(${this.currentCursorLoc.x+this.currentCursorLoc.ox}px, ${this.currentCursorLoc.y+this.currentCursorLoc.oy}px,0)`},loop:3,complete:()=>{this._offsetTransitioned=!0}}),this._elementTransitionDelay=setTimeout((()=>{this._currentSnapElmnt&&(this._currentSnapElmnt.style.transition="0ms ease")}),100),this.moveElmnt&&(this._currentSnapElmnt.style.transform=`translate3d(${this.snappedX?e/(this._currentSnapBbox.width/this.snapCoef):0}px, ${this.snappedY?r/(this._currentSnapBbox.height/this.snapCoef):0}px, 0)`)}else this.currentCursorLoc.ox=t.width/-2,this.currentCursorLoc.oy=t.height/-2;this.cursorElement.style.transform=`translate3d(${this.currentCursorLoc.x+this.currentCursorLoc.ox}px, ${this.currentCursorLoc.y+this.currentCursorLoc.oy}px,0)`,requestAnimationFrame(this._updatePositioncycle)},this.setDark=(t=!0)=>{t&&(this.dark=!0),this.cursorElement.style.backgroundColor=this.snappedX||this.snappedY?"hsla(0, 0%, 100%, 0.1)":"hsla(0, 0%, 100%, 0.4)"},this.setLight=(t=!0)=>{t&&(this.dark=!1),this.cursorElement.style.backgroundColor=this.snappedX||this.snappedY?"hsla(0, 0%, 0%, 0.1)":"hsla(0, 0%, 0%, 0.4)"},this.setShape=(t,e=this._currentHoverElmnt,r=!1,n=10)=>{const i=()=>{this._lastSnapElmnt&&(this._lastSnapElmnt.style.transition="200ms ease",this._lastSnapElmnt.style.transform="translate3d(0,0,0)",this._lastSnapElmnt.style.scale="1")},s=()=>{this._currentSnapElmnt=e,this._currentSnapBbox=e.getBoundingClientRect(),this._currentSnapElmnt!=this._lastSnapElmnt&&i(),this._lastSnapElmnt=this._currentSnapElmnt};switch(this.hidden=r,this.snapCoef=n,this.currentCursorGrowth=e.getAttribute("growth")||"0px",t){case"text":this.snappedX=this.snappedY=!1,this.moveElmnt=!0,this.currentCursorWidth=`max(3px, calc(${window.getComputedStyle(e).lineHeight} / 12))`,this.currentCursorHeight=window.getComputedStyle(e).lineHeight,i(),r&&(this.cursorElement.style.opacity="0"),this.dark?this.cursorElement.style.backgroundColor="hsla(0, 0%, 100%, 0.7)":this.cursorElement.style.backgroundColor="hsla(0, 0%, 0%, 0.7)";break;case"input":this.snappedX=this.moveElmnt=!1,this.snappedY=!0,this.currentCursorWidth="3px",this.currentCursorHeight=`calc(${window.getComputedStyle(e).height} - 2px)`,s(),r&&(this.cursorElement.style.opacity="0"),this.dark?this.cursorElement.style.backgroundColor="hsla(0, 0%, 100%, 0.4)":this.cursorElement.style.backgroundColor="hsla(0, 0%, 0%, 0.4)";break;case"button":if(this.snappedX=this.snappedY=!0,this.moveElmnt=!0,this.currentCursorWidth=`calc(${e?.getBoundingClientRect().width}px + ${this.currentCursorGrowth})`,this.currentCursorHeight=`calc(${e?.getBoundingClientRect().height}px + ${this.currentCursorGrowth})`,this.currentCursorRadius=window.getComputedStyle(e).borderRadius,this.cursorElement.style.zIndex="0",s(),this._currentSnapElmnt.style.transitionProperty="scale, transform, opacity",this._currentSnapElmnt.style.transition="200ms ease",r){this.cursorElement.style.opacity="0";break}this.dark?this.cursorElement.style.backgroundColor="hsla(0, 0%, 100%, 0.1)":this.cursorElement.style.backgroundColor="hsla(0, 0%, 0%, 0.1)";break;default:this.snappedX=this.snappedY=!1,this.moveElmnt=!0,this.currentCursorRadius=this.cursorWidth,this.currentCursorWidth=this.cursorWidth,this.currentCursorHeight=this.cursorHeight,this.currentCursorLoc.ox=this.currentCursorLoc.oy=0,this.cursorElement.style.zIndex="999999",this._elementTransitionDelay&&clearTimeout(this._elementTransitionDelay),this._currentSnapElmnt&&i(),this._currentSnapElmnt=void 0,this.cursorElement.style.opacity="1",this.dark?this.setDark():this.setLight()}this.cursorElement.style.width=this.currentCursorWidth,this.cursorElement.style.height=this.currentCursorHeight,this.cursorElement.style.borderRadius=this.currentCursorRadius},this.cursorElement=document.getElementById(t),this.cursorElement?(this.currentCursorWidth=this.cursorWidth=e.size||"24px",this.currentCursorHeight=this.cursorHeight=e.size||"24px",this.currentCursorRadius="1000rem",this.cursorMass=e.mass||0,this.trkPer=e.trackingPeriod||50,this.cursorElement.style.pointerEvents="none",this.cursorElement.style.position="fixed",this.cursorElement.style.zIndex="999999",this.cursorElement.style.left="0",this.cursorElement.style.top="0",this._transitionProperties=[{property:["width","height","borderRadius","opacity"],duration:100}],this._transitionSuppression=new Set,this._updateCursorTransition(),this.cursorElement.style.width=this.currentCursorWidth,this.cursorElement.style.height=this.currentCursorHeight,this.cursorElement.style.borderRadius=this.currentCursorRadius,this.cursorElement.style.opacity="0",this.cursorElement.style.backgroundColor="hsla(0, 0%, 0%, 0.4)",document.documentElement.addEventListener("mouseleave",(()=>this.cursorElement.style.opacity="0")),document.documentElement.addEventListener("keydown",(()=>this.cursorElement.style.opacity="0")),document.documentElement.addEventListener("mouseenter",(()=>this.cursorElement.style.opacity="1")),requestAnimationFrame(this._updatePositioncycle),document.onmousemove=t=>{this.hidden||(this.cursorElement.style.opacity="1"),this.currentCursorLoc.x=t.x,this.currentCursorLoc.y=t.y},setInterval((()=>{this._currentHoverElmnt=document.elementFromPoint(this.currentCursorLoc.x,this.currentCursorLoc.y),this._currentHoverElmnt!=this._lastHoverElmnt&&(this._currentHoverElmnt.hasAttribute("contrast")?this.dark?this.setLight(!1):this.setDark(!1):this.dark?this.setDark(!1):this.setLight(!1),this._updateCursorState()),this._lastHoverElmnt=this._currentHoverElmnt,this._updateCursorTransition()}),this.trkPer)):console.error(`Cursor with id:${t} does not exist.`)}}}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={exports:{}};return t[n].call(s.exports,s,s.exports,r),s.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(903)})(); 2 | //# sourceMappingURL=app.bundle.js.map -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /docs/bund/app.bundle.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"app.bundle.js","mappings":"sEASA,IAAIA,EAA0B,CAC5BC,OAAQ,KACRC,MAAO,KACPC,UAAW,KACXC,YAAa,KACbC,OAAQ,KACRC,eAAgB,KAChBC,aAAc,KACdC,SAAU,KACVC,KAAM,EACNC,UAAW,SACXC,UAAU,EACVC,eAAgB,GAGdC,EAAuB,CACzBC,SAAU,IACVC,MAAO,EACPC,SAAU,EACVC,OAAQ,wBACRC,MAAO,GAGLC,EAAkB,CAAC,aAAc,aAAc,aAAc,SAAU,UAAW,UAAW,UAAW,QAAS,SAAU,SAAU,SAAU,OAAQ,QAAS,QAAS,cAAe,SAAU,YAIlMC,EAAQ,CACVC,IAAK,GACLC,QAAS,IAKX,SAASC,EAAOC,EAAKC,EAAKC,GACxB,OAAOC,KAAKF,IAAIE,KAAKD,IAAIF,EAAKC,GAAMC,GAGtC,SAASE,EAAeC,EAAKC,GAC3B,OAAOD,EAAIE,QAAQD,IAAS,EAG9B,SAASE,EAAeC,EAAMC,GAC5B,OAAOD,EAAKE,MAAM,KAAMD,GAG1B,IAAIE,EAAK,CACPC,IAAK,SAAUC,GAAK,OAAOC,MAAMC,QAAQF,IACzCG,IAAK,SAAUH,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ointer/./src/app.ts","webpack://betterpointer/./src/betterCursor.ts","webpack://betterpointer/webpack/bootstrap","webpack://betterpointer/webpack/runtime/define property getters","webpack://betterpointer/webpack/runtime/hasOwnProperty shorthand","webpack://betterpointer/webpack/runtime/make namespace object","webpack://betterpointer/webpack/startup"],"sourcesContent":["/*\n * anime.js v3.2.1\n * (c) 2020 Julian Garnier\n * Released under the MIT license\n * animejs.com\n */\n\n// Defaults\n\nvar defaultInstanceSettings = {\n update: null,\n begin: null,\n loopBegin: null,\n changeBegin: null,\n change: null,\n changeComplete: null,\n loopComplete: null,\n complete: null,\n loop: 1,\n direction: 'normal',\n autoplay: true,\n timelineOffset: 0\n};\n\nvar defaultTweenSettings = {\n duration: 1000,\n delay: 0,\n endDelay: 0,\n easing: 'easeOutElastic(1, .5)',\n round: 0\n};\n\nvar validTransforms = ['translateX', 'translateY', 'translateZ', 'rotate', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'perspective', 'matrix', 'matrix3d'];\n\n// Caching\n\nvar cache = {\n CSS: {},\n springs: {}\n};\n\n// Utils\n\nfunction minMax(val, min, max) {\n return Math.min(Math.max(val, min), max);\n}\n\nfunction stringContains(str, text) {\n return str.indexOf(text) > -1;\n}\n\nfunction applyArguments(func, args) {\n return func.apply(null, args);\n}\n\nvar is = {\n arr: function (a) { return Array.isArray(a); },\n obj: function (a) { return stringContains(Object.prototype.toString.call(a), 'Object'); },\n pth: function (a) { return is.obj(a) && a.hasOwnProperty('totalLength'); },\n svg: function (a) { return a instanceof SVGElement; },\n inp: function (a) { return a instanceof HTMLInputElement; },\n dom: function (a) { return a.nodeType || is.svg(a); },\n str: function (a) { return typeof a === 'string'; },\n fnc: function (a) { return typeof a === 'function'; },\n und: function (a) { return typeof a === 'undefined'; },\n nil: function (a) { return is.und(a) || a === null; },\n hex: function (a) { return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a); },\n rgb: function (a) { return /^rgb/.test(a); },\n hsl: function (a) { return /^hsl/.test(a); },\n col: function (a) { return (is.hex(a) || is.rgb(a) || is.hsl(a)); },\n key: function (a) { return !defaultInstanceSettings.hasOwnProperty(a) && !defaultTweenSettings.hasOwnProperty(a) && a !== 'targets' && a !== 'keyframes'; },\n};\n\n// Easings\n\nfunction parseEasingParameters(string) {\n var match = /\\(([^)]+)\\)/.exec(string);\n return match ? match[1].split(',').map(function (p) { return parseFloat(p); }) : [];\n}\n\n// Spring solver inspired by Webkit Copyright © 2016 Apple Inc. All rights reserved. https://webkit.org/demos/spring/spring.js\n\nfunction spring(string, duration) {\n\n var params = parseEasingParameters(string);\n var mass = minMax(is.und(params[0]) ? 1 : params[0], .1, 100);\n var stiffness = minMax(is.und(params[1]) ? 100 : params[1], .1, 100);\n var damping = minMax(is.und(params[2]) ? 10 : params[2], .1, 100);\n var velocity = minMax(is.und(params[3]) ? 0 : params[3], .1, 100);\n var w0 = Math.sqrt(stiffness / mass);\n var zeta = damping / (2 * Math.sqrt(stiffness * mass));\n var wd = zeta < 1 ? w0 * Math.sqrt(1 - zeta * zeta) : 0;\n var a = 1;\n var b = zeta < 1 ? (zeta * w0 + -velocity) / wd : -velocity + w0;\n\n function solver(t) {\n var progress = duration ? (duration * t) / 1000 : t;\n if (zeta < 1) {\n progress = Math.exp(-progress * zeta * w0) * (a * Math.cos(wd * progress) + b * Math.sin(wd * progress));\n } else {\n progress = (a + b * progress) * Math.exp(-progress * w0);\n }\n if (t === 0 || t === 1) { return t; }\n return 1 - progress;\n }\n\n function getDuration() {\n var cached = cache.springs[string];\n if (cached) { return cached; }\n var frame = 1/6;\n var elapsed = 0;\n var rest = 0;\n while(true) {\n elapsed += frame;\n if (solver(elapsed) === 1) {\n rest++;\n if (rest >= 16) { break; }\n } else {\n rest = 0;\n }\n }\n var duration = elapsed * frame * 1000;\n cache.springs[string] = duration;\n return duration;\n }\n\n return duration ? solver : getDuration;\n\n}\n\n// Basic steps easing implementation https://developer.mozilla.org/fr/docs/Web/CSS/transition-timing-function\n\nfunction steps(steps) {\n if ( steps === void 0 ) steps = 10;\n\n return function (t) { return Math.ceil((minMax(t, 0.000001, 1)) * steps) * (1 / steps); };\n}\n\n// BezierEasing https://github.com/gre/bezier-easing\n\nvar bezier = (function () {\n\n var kSplineTableSize = 11;\n var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\n function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1 }\n function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1 }\n function C(aA1) { return 3.0 * aA1 }\n\n function calcBezier(aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT }\n function getSlope(aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1) }\n\n function binarySubdivide(aX, aA, aB, mX1, mX2) {\n var currentX, currentT, i = 0;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) { aB = currentT; } else { aA = currentT; }\n } while (Math.abs(currentX) > 0.0000001 && ++i < 10);\n return currentT;\n }\n\n function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {\n for (var i = 0; i < 4; ++i) {\n var currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) { return aGuessT; }\n var currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n }\n\n function bezier(mX1, mY1, mX2, mY2) {\n\n if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) { return; }\n var sampleValues = new Float32Array(kSplineTableSize);\n\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (var i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX) {\n\n var intervalStart = 0;\n var currentSample = 1;\n var lastSample = kSplineTableSize - 1;\n\n for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) {\n intervalStart += kSampleStepSize;\n }\n\n --currentSample;\n\n var dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n var guessForT = intervalStart + dist * kSampleStepSize;\n var initialSlope = getSlope(guessForT, mX1, mX2);\n\n if (initialSlope >= 0.001) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2);\n }\n\n }\n\n return function (x) {\n if (mX1 === mY1 && mX2 === mY2) { return x; }\n if (x === 0 || x === 1) { return x; }\n return calcBezier(getTForX(x), mY1, mY2);\n }\n\n }\n\n return bezier;\n\n})();\n\nvar penner = (function () {\n\n // Based on jQuery UI's implemenation of easing equations from Robert Penner (http://www.robertpenner.com/easing)\n\n var eases = { linear: function () { return function (t) { return t; }; } };\n\n var functionEasings = {\n Sine: function () { return function (t) { return 1 - Math.cos(t * Math.PI / 2); }; },\n Circ: function () { return function (t) { return 1 - Math.sqrt(1 - t * t); }; },\n Back: function () { return function (t) { return t * t * (3 * t - 2); }; },\n Bounce: function () { return function (t) {\n var pow2, b = 4;\n while (t < (( pow2 = Math.pow(2, --b)) - 1) / 11) {}\n return 1 / Math.pow(4, 3 - b) - 7.5625 * Math.pow(( pow2 * 3 - 2 ) / 22 - t, 2)\n }; },\n Elastic: function (amplitude, period) {\n if ( amplitude === void 0 ) amplitude = 1;\n if ( period === void 0 ) period = .5;\n\n var a = minMax(amplitude, 1, 10);\n var p = minMax(period, .1, 2);\n return function (t) {\n return (t === 0 || t === 1) ? t : \n -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);\n }\n }\n };\n\n var baseEasings = ['Quad', 'Cubic', 'Quart', 'Quint', 'Expo'];\n\n baseEasings.forEach(function (name, i) {\n functionEasings[name] = function () { return function (t) { return Math.pow(t, i + 2); }; };\n });\n\n Object.keys(functionEasings).forEach(function (name) {\n var easeIn = functionEasings[name];\n eases['easeIn' + name] = easeIn;\n eases['easeOut' + name] = function (a, b) { return function (t) { return 1 - easeIn(a, b)(1 - t); }; };\n eases['easeInOut' + name] = function (a, b) { return function (t) { return t < 0.5 ? easeIn(a, b)(t * 2) / 2 : \n 1 - easeIn(a, b)(t * -2 + 2) / 2; }; };\n eases['easeOutIn' + name] = function (a, b) { return function (t) { return t < 0.5 ? (1 - easeIn(a, b)(1 - t * 2)) / 2 : \n (easeIn(a, b)(t * 2 - 1) + 1) / 2; }; };\n });\n\n return eases;\n\n})();\n\nfunction parseEasings(easing, duration) {\n if (is.fnc(easing)) { return easing; }\n var name = easing.split('(')[0];\n var ease = penner[name];\n var args = parseEasingParameters(easing);\n switch (name) {\n case 'spring' : return spring(easing, duration);\n case 'cubicBezier' : return applyArguments(bezier, args);\n case 'steps' : return applyArguments(steps, args);\n default : return applyArguments(ease, args);\n }\n}\n\n// Strings\n\nfunction selectString(str) {\n try {\n var nodes = document.querySelectorAll(str);\n return nodes;\n } catch(e) {\n return;\n }\n}\n\n// Arrays\n\nfunction filterArray(arr, callback) {\n var len = arr.length;\n var thisArg = arguments.length >= 2 ? arguments[1] : void 0;\n var result = [];\n for (var i = 0; i < len; i++) {\n if (i in arr) {\n var val = arr[i];\n if (callback.call(thisArg, val, i, arr)) {\n result.push(val);\n }\n }\n }\n return result;\n}\n\nfunction flattenArray(arr) {\n return arr.reduce(function (a, b) { return a.concat(is.arr(b) ? flattenArray(b) : b); }, []);\n}\n\nfunction toArray(o) {\n if (is.arr(o)) { return o; }\n if (is.str(o)) { o = selectString(o) || o; }\n if (o instanceof NodeList || o instanceof HTMLCollection) { return [].slice.call(o); }\n return [o];\n}\n\nfunction arrayContains(arr, val) {\n return arr.some(function (a) { return a === val; });\n}\n\n// Objects\n\nfunction cloneObject(o) {\n var clone = {};\n for (var p in o) { clone[p] = o[p]; }\n return clone;\n}\n\nfunction replaceObjectProps(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o1) { o[p] = o2.hasOwnProperty(p) ? o2[p] : o1[p]; }\n return o;\n}\n\nfunction mergeObjects(o1, o2) {\n var o = cloneObject(o1);\n for (var p in o2) { o[p] = is.und(o1[p]) ? o2[p] : o1[p]; }\n return o;\n}\n\n// Colors\n\nfunction rgbToRgba(rgbValue) {\n var rgb = /rgb\\((\\d+,\\s*[\\d]+,\\s*[\\d]+)\\)/g.exec(rgbValue);\n return rgb ? (\"rgba(\" + (rgb[1]) + \",1)\") : rgbValue;\n}\n\nfunction hexToRgba(hexValue) {\n var rgx = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n var hex = hexValue.replace(rgx, function (m, r, g, b) { return r + r + g + g + b + b; } );\n var rgb = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n var r = parseInt(rgb[1], 16);\n var g = parseInt(rgb[2], 16);\n var b = parseInt(rgb[3], 16);\n return (\"rgba(\" + r + \",\" + g + \",\" + b + \",1)\");\n}\n\nfunction hslToRgba(hslValue) {\n var hsl = /hsl\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%\\)/g.exec(hslValue) || /hsla\\((\\d+),\\s*([\\d.]+)%,\\s*([\\d.]+)%,\\s*([\\d.]+)\\)/g.exec(hslValue);\n var h = parseInt(hsl[1], 10) / 360;\n var s = parseInt(hsl[2], 10) / 100;\n var l = parseInt(hsl[3], 10) / 100;\n var a = hsl[4] || 1;\n function hue2rgb(p, q, t) {\n if (t < 0) { t += 1; }\n if (t > 1) { t -= 1; }\n if (t < 1/6) { return p + (q - p) * 6 * t; }\n if (t < 1/2) { return q; }\n if (t < 2/3) { return p + (q - p) * (2/3 - t) * 6; }\n return p;\n }\n var r, g, b;\n if (s == 0) {\n r = g = b = l;\n } else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1/3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1/3);\n }\n return (\"rgba(\" + (r * 255) + \",\" + (g * 255) + \",\" + (b * 255) + \",\" + a + \")\");\n}\n\nfunction colorToRgb(val) {\n if (is.rgb(val)) { return rgbToRgba(val); }\n if (is.hex(val)) { return hexToRgba(val); }\n if (is.hsl(val)) { return hslToRgba(val); }\n}\n\n// Units\n\nfunction getUnit(val) {\n var split = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(val);\n if (split) { return split[1]; }\n}\n\nfunction getTransformUnit(propName) {\n if (stringContains(propName, 'translate') || propName === 'perspective') { return 'px'; }\n if (stringContains(propName, 'rotate') || stringContains(propName, 'skew')) { return 'deg'; }\n}\n\n// Values\n\nfunction getFunctionValue(val, animatable) {\n if (!is.fnc(val)) { return val; }\n return val(animatable.target, animatable.id, animatable.total);\n}\n\nfunction getAttribute(el, prop) {\n return el.getAttribute(prop);\n}\n\nfunction convertPxToUnit(el, value, unit) {\n var valueUnit = getUnit(value);\n if (arrayContains([unit, 'deg', 'rad', 'turn'], valueUnit)) { return value; }\n var cached = cache.CSS[value + unit];\n if (!is.und(cached)) { return cached; }\n var baseline = 100;\n var tempEl = document.createElement(el.tagName);\n var parentEl = (el.parentNode && (el.parentNode !== document)) ? el.parentNode : document.body;\n parentEl.appendChild(tempEl);\n tempEl.style.position = 'absolute';\n tempEl.style.width = baseline + unit;\n var factor = baseline / tempEl.offsetWidth;\n parentEl.removeChild(tempEl);\n var convertedUnit = factor * parseFloat(value);\n cache.CSS[value + unit] = convertedUnit;\n return convertedUnit;\n}\n\nfunction getCSSValue(el, prop, unit) {\n if (prop in el.style) {\n var uppercasePropName = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n var value = el.style[prop] || getComputedStyle(el).getPropertyValue(uppercasePropName) || '0';\n return unit ? convertPxToUnit(el, value, unit) : value;\n }\n}\n\nfunction getAnimationType(el, prop) {\n if (is.dom(el) && !is.inp(el) && (!is.nil(getAttribute(el, prop)) || (is.svg(el) && el[prop]))) { return 'attribute'; }\n if (is.dom(el) && arrayContains(validTransforms, prop)) { return 'transform'; }\n if (is.dom(el) && (prop !== 'transform' && getCSSValue(el, prop))) { return 'css'; }\n if (el[prop] != null) { return 'object'; }\n}\n\nfunction getElementTransforms(el) {\n if (!is.dom(el)) { return; }\n var str = el.style.transform || '';\n var reg = /(\\w+)\\(([^)]*)\\)/g;\n var transforms = new Map();\n var m; while (m = reg.exec(str)) { transforms.set(m[1], m[2]); }\n return transforms;\n}\n\nfunction getTransformValue(el, propName, animatable, unit) {\n var defaultVal = stringContains(propName, 'scale') ? 1 : 0 + getTransformUnit(propName);\n var value = getElementTransforms(el).get(propName) || defaultVal;\n if (animatable) {\n animatable.transforms.list.set(propName, value);\n animatable.transforms['last'] = propName;\n }\n return unit ? convertPxToUnit(el, value, unit) : value;\n}\n\nfunction getOriginalTargetValue(target, propName, unit, animatable) {\n switch (getAnimationType(target, propName)) {\n case 'transform': return getTransformValue(target, propName, animatable, unit);\n case 'css': return getCSSValue(target, propName, unit);\n case 'attribute': return getAttribute(target, propName);\n default: return target[propName] || 0;\n }\n}\n\nfunction getRelativeValue(to, from) {\n var operator = /^(\\*=|\\+=|-=)/.exec(to);\n if (!operator) { return to; }\n var u = getUnit(to) || 0;\n var x = parseFloat(from);\n var y = parseFloat(to.replace(operator[0], ''));\n switch (operator[0][0]) {\n case '+': return x + y + u;\n case '-': return x - y + u;\n case '*': return x * y + u;\n }\n}\n\nfunction validateValue(val, unit) {\n if (is.col(val)) { return colorToRgb(val); }\n if (/\\s/g.test(val)) { return val; }\n var originalUnit = getUnit(val);\n var unitLess = originalUnit ? val.substr(0, val.length - originalUnit.length) : val;\n if (unit) { return unitLess + unit; }\n return unitLess;\n}\n\n// getTotalLength() equivalent for circle, rect, polyline, polygon and line shapes\n// adapted from https://gist.github.com/SebLambla/3e0550c496c236709744\n\nfunction getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}\n\nfunction getCircleLength(el) {\n return Math.PI * 2 * getAttribute(el, 'r');\n}\n\nfunction getRectLength(el) {\n return (getAttribute(el, 'width') * 2) + (getAttribute(el, 'height') * 2);\n}\n\nfunction getLineLength(el) {\n return getDistance(\n {x: getAttribute(el, 'x1'), y: getAttribute(el, 'y1')}, \n {x: getAttribute(el, 'x2'), y: getAttribute(el, 'y2')}\n );\n}\n\nfunction getPolylineLength(el) {\n var points = el.points;\n var totalLength = 0;\n var previousPos;\n for (var i = 0 ; i < points.numberOfItems; i++) {\n var currentPos = points.getItem(i);\n if (i > 0) { totalLength += getDistance(previousPos, currentPos); }\n previousPos = currentPos;\n }\n return totalLength;\n}\n\nfunction getPolygonLength(el) {\n var points = el.points;\n return getPolylineLength(el) + getDistance(points.getItem(points.numberOfItems - 1), points.getItem(0));\n}\n\n// Path animation\n\nfunction getTotalLength(el) {\n if (el.getTotalLength) { return el.getTotalLength(); }\n switch(el.tagName.toLowerCase()) {\n case 'circle': return getCircleLength(el);\n case 'rect': return getRectLength(el);\n case 'line': return getLineLength(el);\n case 'polyline': return getPolylineLength(el);\n case 'polygon': return getPolygonLength(el);\n }\n}\n\nfunction setDashoffset(el) {\n var pathLength = getTotalLength(el);\n el.setAttribute('stroke-dasharray', pathLength);\n return pathLength;\n}\n\n// Motion path\n\nfunction getParentSvgEl(el) {\n var parentEl = el.parentNode;\n while (is.svg(parentEl)) {\n if (!is.svg(parentEl.parentNode)) { break; }\n parentEl = parentEl.parentNode;\n }\n return parentEl;\n}\n\nfunction getParentSvg(pathEl, svgData) {\n var svg = svgData || {};\n var parentSvgEl = svg.el || getParentSvgEl(pathEl);\n var rect = parentSvgEl.getBoundingClientRect();\n var viewBoxAttr = getAttribute(parentSvgEl, 'viewBox');\n var width = rect.width;\n var height = rect.height;\n var viewBox = svg.viewBox || (viewBoxAttr ? viewBoxAttr.split(' ') : [0, 0, width, height]);\n return {\n el: parentSvgEl,\n viewBox: viewBox,\n x: viewBox[0] / 1,\n y: viewBox[1] / 1,\n w: width,\n h: height,\n vW: viewBox[2],\n vH: viewBox[3]\n }\n}\n\nfunction getPath(path, percent) {\n var pathEl = is.str(path) ? selectString(path)[0] : path;\n var p = percent || 100;\n return function(property) {\n return {\n property: property,\n el: pathEl,\n svg: getParentSvg(pathEl),\n totalLength: getTotalLength(pathEl) * (p / 100)\n }\n }\n}\n\nfunction getPathProgress(path, progress, isPathTargetInsideSVG) {\n function point(offset) {\n if ( offset === void 0 ) offset = 0;\n\n var l = progress + offset >= 1 ? progress + offset : 0;\n return path.el.getPointAtLength(l);\n }\n var svg = getParentSvg(path.el, path.svg);\n var p = point();\n var p0 = point(-1);\n var p1 = point(+1);\n var scaleX = isPathTargetInsideSVG ? 1 : svg.w / svg.vW;\n var scaleY = isPathTargetInsideSVG ? 1 : svg.h / svg.vH;\n switch (path.property) {\n case 'x': return (p.x - svg.x) * scaleX;\n case 'y': return (p.y - svg.y) * scaleY;\n case 'angle': return Math.atan2(p1.y - p0.y, p1.x - p0.x) * 180 / Math.PI;\n }\n}\n\n// Decompose value\n\nfunction decomposeValue(val, unit) {\n // const rgx = /-?\\d*\\.?\\d+/g; // handles basic numbers\n // const rgx = /[+-]?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var rgx = /[+-]?\\d*\\.?\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?/g; // handles exponents notation\n var value = validateValue((is.pth(val) ? val.totalLength : val), unit) + '';\n return {\n original: value,\n numbers: value.match(rgx) ? value.match(rgx).map(Number) : [0],\n strings: (is.str(val) || unit) ? value.split(rgx) : []\n }\n}\n\n// Animatables\n\nfunction parseTargets(targets) {\n var targetsArray = targets ? (flattenArray(is.arr(targets) ? targets.map(toArray) : toArray(targets))) : [];\n return filterArray(targetsArray, function (item, pos, self) { return self.indexOf(item) === pos; });\n}\n\nfunction getAnimatables(targets) {\n var parsed = parseTargets(targets);\n return parsed.map(function (t, i) {\n return {target: t, id: i, total: parsed.length, transforms: { list: getElementTransforms(t) } };\n });\n}\n\n// Properties\n\nfunction normalizePropertyTweens(prop, tweenSettings) {\n var settings = cloneObject(tweenSettings);\n // Override duration if easing is a spring\n if (/^spring/.test(settings.easing)) { settings.duration = spring(settings.easing); }\n if (is.arr(prop)) {\n var l = prop.length;\n var isFromTo = (l === 2 && !is.obj(prop[0]));\n if (!isFromTo) {\n // Duration divided by the number of tweens\n if (!is.fnc(tweenSettings.duration)) { settings.duration = tweenSettings.duration / l; }\n } else {\n // Transform [from, to] values shorthand to a valid tween value\n prop = {value: prop};\n }\n }\n var propArray = is.arr(prop) ? prop : [prop];\n return propArray.map(function (v, i) {\n var obj = (is.obj(v) && !is.pth(v)) ? v : {value: v};\n // Default delay value should only be applied to the first tween\n if (is.und(obj.delay)) { obj.delay = !i ? tweenSettings.delay : 0; }\n // Default endDelay value should only be applied to the last tween\n if (is.und(obj.endDelay)) { obj.endDelay = i === propArray.length - 1 ? tweenSettings.endDelay : 0; }\n return obj;\n }).map(function (k) { return mergeObjects(k, settings); });\n}\n\n\nfunction flattenKeyframes(keyframes) {\n var propertyNames = filterArray(flattenArray(keyframes.map(function (key) { return Object.keys(key); })), function (p) { return is.key(p); })\n .reduce(function (a,b) { if (a.indexOf(b) < 0) { a.push(b); } return a; }, []);\n var properties = {};\n var loop = function ( i ) {\n var propName = propertyNames[i];\n properties[propName] = keyframes.map(function (key) {\n var newKey = {};\n for (var p in key) {\n if (is.key(p)) {\n if (p == propName) { newKey.value = key[p]; }\n } else {\n newKey[p] = key[p];\n }\n }\n return newKey;\n });\n };\n\n for (var i = 0; i < propertyNames.length; i++) loop( i );\n return properties;\n}\n\nfunction getProperties(tweenSettings, params) {\n var properties = [];\n var keyframes = params.keyframes;\n if (keyframes) { params = mergeObjects(flattenKeyframes(keyframes), params); }\n for (var p in params) {\n if (is.key(p)) {\n properties.push({\n name: p,\n tweens: normalizePropertyTweens(params[p], tweenSettings)\n });\n }\n }\n return properties;\n}\n\n// Tweens\n\nfunction normalizeTweenValues(tween, animatable) {\n var t = {};\n for (var p in tween) {\n var value = getFunctionValue(tween[p], animatable);\n if (is.arr(value)) {\n value = value.map(function (v) { return getFunctionValue(v, animatable); });\n if (value.length === 1) { value = value[0]; }\n }\n t[p] = value;\n }\n t.duration = parseFloat(t.duration);\n t.delay = parseFloat(t.delay);\n return t;\n}\n\nfunction normalizeTweens(prop, animatable) {\n var previousTween;\n return prop.tweens.map(function (t) {\n var tween = normalizeTweenValues(t, animatable);\n var tweenValue = tween.value;\n var to = is.arr(tweenValue) ? tweenValue[1] : tweenValue;\n var toUnit = getUnit(to);\n var originalValue = getOriginalTargetValue(animatable.target, prop.name, toUnit, animatable);\n var previousValue = previousTween ? previousTween.to.original : originalValue;\n var from = is.arr(tweenValue) ? tweenValue[0] : previousValue;\n var fromUnit = getUnit(from) || getUnit(originalValue);\n var unit = toUnit || fromUnit;\n if (is.und(to)) { to = previousValue; }\n tween.from = decomposeValue(from, unit);\n tween.to = decomposeValue(getRelativeValue(to, from), unit);\n tween.start = previousTween ? previousTween.end : 0;\n tween.end = tween.start + tween.delay + tween.duration + tween.endDelay;\n tween.easing = parseEasings(tween.easing, tween.duration);\n tween.isPath = is.pth(tweenValue);\n tween.isPathTargetInsideSVG = tween.isPath && is.svg(animatable.target);\n tween.isColor = is.col(tween.from.original);\n if (tween.isColor) { tween.round = 1; }\n previousTween = tween;\n return tween;\n });\n}\n\n// Tween progress\n\nvar setProgressValue = {\n css: function (t, p, v) { return t.style[p] = v; },\n attribute: function (t, p, v) { return t.setAttribute(p, v); },\n object: function (t, p, v) { return t[p] = v; },\n transform: function (t, p, v, transforms, manual) {\n transforms.list.set(p, v);\n if (p === transforms.last || manual) {\n var str = '';\n transforms.list.forEach(function (value, prop) { str += prop + \"(\" + value + \") \"; });\n t.style.transform = str;\n }\n }\n};\n\n// Set Value helper\n\nfunction setTargetsValue(targets, properties) {\n var animatables = getAnimatables(targets);\n animatables.forEach(function (animatable) {\n for (var property in properties) {\n var value = getFunctionValue(properties[property], animatable);\n var target = animatable.target;\n var valueUnit = getUnit(value);\n var originalValue = getOriginalTargetValue(target, property, valueUnit, animatable);\n var unit = valueUnit || getUnit(originalValue);\n var to = getRelativeValue(validateValue(value, unit), originalValue);\n var animType = getAnimationType(target, property);\n setProgressValue[animType](target, property, to, animatable.transforms, true);\n }\n });\n}\n\n// Animations\n\nfunction createAnimation(animatable, prop) {\n var animType = getAnimationType(animatable.target, prop.name);\n if (animType) {\n var tweens = normalizeTweens(prop, animatable);\n var lastTween = tweens[tweens.length - 1];\n return {\n type: animType,\n property: prop.name,\n animatable: animatable,\n tweens: tweens,\n duration: lastTween.end,\n delay: tweens[0].delay,\n endDelay: lastTween.endDelay\n }\n }\n}\n\nfunction getAnimations(animatables, properties) {\n return filterArray(flattenArray(animatables.map(function (animatable) {\n return properties.map(function (prop) {\n return createAnimation(animatable, prop);\n });\n })), function (a) { return !is.und(a); });\n}\n\n// Create Instance\n\nfunction getInstanceTimings(animations, tweenSettings) {\n var animLength = animations.length;\n var getTlOffset = function (anim) { return anim.timelineOffset ? anim.timelineOffset : 0; };\n var timings = {};\n timings.duration = animLength ? Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration; })) : tweenSettings.duration;\n timings.delay = animLength ? Math.min.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.delay; })) : tweenSettings.delay;\n timings.endDelay = animLength ? timings.duration - Math.max.apply(Math, animations.map(function (anim) { return getTlOffset(anim) + anim.duration - anim.endDelay; })) : tweenSettings.endDelay;\n return timings;\n}\n\nvar instanceID = 0;\n\nfunction createNewInstance(params) {\n var instanceSettings = replaceObjectProps(defaultInstanceSettings, params);\n var tweenSettings = replaceObjectProps(defaultTweenSettings, params);\n var properties = getProperties(tweenSettings, params);\n var animatables = getAnimatables(params.targets);\n var animations = getAnimations(animatables, properties);\n var timings = getInstanceTimings(animations, tweenSettings);\n var id = instanceID;\n instanceID++;\n return mergeObjects(instanceSettings, {\n id: id,\n children: [],\n animatables: animatables,\n animations: animations,\n duration: timings.duration,\n delay: timings.delay,\n endDelay: timings.endDelay\n });\n}\n\n// Core\n\nvar activeInstances = [];\n\nvar engine = (function () {\n var raf;\n\n function play() {\n if (!raf && (!isDocumentHidden() || !anime.suspendWhenDocumentHidden) && activeInstances.length > 0) {\n raf = requestAnimationFrame(step);\n }\n }\n function step(t) {\n // memo on algorithm issue:\n // dangerous iteration over mutable `activeInstances`\n // (that collection may be updated from within callbacks of `tick`-ed animation instances)\n var activeInstancesLength = activeInstances.length;\n var i = 0;\n while (i < activeInstancesLength) {\n var activeInstance = activeInstances[i];\n if (!activeInstance.paused) {\n activeInstance.tick(t);\n i++;\n } else {\n activeInstances.splice(i, 1);\n activeInstancesLength--;\n }\n }\n raf = i > 0 ? requestAnimationFrame(step) : undefined;\n }\n\n function handleVisibilityChange() {\n if (!anime.suspendWhenDocumentHidden) { return; }\n\n if (isDocumentHidden()) {\n // suspend ticks\n raf = cancelAnimationFrame(raf);\n } else { // is back to active tab\n // first adjust animations to consider the time that ticks were suspended\n activeInstances.forEach(\n function (instance) { return instance ._onDocumentVisibility(); }\n );\n engine();\n }\n }\n if (typeof document !== 'undefined') {\n document.addEventListener('visibilitychange', handleVisibilityChange);\n }\n\n return play;\n})();\n\nfunction isDocumentHidden() {\n return !!document && document.hidden;\n}\n\n// Public Instance\n\nfunction anime(params) {\n if ( params === void 0 ) params = {};\n\n\n var startTime = 0, lastTime = 0, now = 0;\n var children, childrenLength = 0;\n var resolve = null;\n\n function makePromise(instance) {\n var promise = window.Promise && new Promise(function (_resolve) { return resolve = _resolve; });\n instance.finished = promise;\n return promise;\n }\n\n var instance = createNewInstance(params);\n var promise = makePromise(instance);\n\n function toggleInstanceDirection() {\n var direction = instance.direction;\n if (direction !== 'alternate') {\n instance.direction = direction !== 'normal' ? 'normal' : 'reverse';\n }\n instance.reversed = !instance.reversed;\n children.forEach(function (child) { return child.reversed = instance.reversed; });\n }\n\n function adjustTime(time) {\n return instance.reversed ? instance.duration - time : time;\n }\n\n function resetTime() {\n startTime = 0;\n lastTime = adjustTime(instance.currentTime) * (1 / anime.speed);\n }\n\n function seekChild(time, child) {\n if (child) { child.seek(time - child.timelineOffset); }\n }\n\n function syncInstanceChildren(time) {\n if (!instance.reversePlayback) {\n for (var i = 0; i < childrenLength; i++) { seekChild(time, children[i]); }\n } else {\n for (var i$1 = childrenLength; i$1--;) { seekChild(time, children[i$1]); }\n }\n }\n\n function setAnimationsProgress(insTime) {\n var i = 0;\n var animations = instance.animations;\n var animationsLength = animations.length;\n while (i < animationsLength) {\n var anim = animations[i];\n var animatable = anim.animatable;\n var tweens = anim.tweens;\n var tweenLength = tweens.length - 1;\n var tween = tweens[tweenLength];\n // Only check for keyframes if there is more than one tween\n if (tweenLength) { tween = filterArray(tweens, function (t) { return (insTime < t.end); })[0] || tween; }\n var elapsed = minMax(insTime - tween.start - tween.delay, 0, tween.duration) / tween.duration;\n var eased = isNaN(elapsed) ? 1 : tween.easing(elapsed);\n var strings = tween.to.strings;\n var round = tween.round;\n var numbers = [];\n var toNumbersLength = tween.to.numbers.length;\n var progress = (void 0);\n for (var n = 0; n < toNumbersLength; n++) {\n var value = (void 0);\n var toNumber = tween.to.numbers[n];\n var fromNumber = tween.from.numbers[n] || 0;\n if (!tween.isPath) {\n value = fromNumber + (eased * (toNumber - fromNumber));\n } else {\n value = getPathProgress(tween.value, eased * toNumber, tween.isPathTargetInsideSVG);\n }\n if (round) {\n if (!(tween.isColor && n > 2)) {\n value = Math.round(value * round) / round;\n }\n }\n numbers.push(value);\n }\n // Manual Array.reduce for better performances\n var stringsLength = strings.length;\n if (!stringsLength) {\n progress = numbers[0];\n } else {\n progress = strings[0];\n for (var s = 0; s < stringsLength; s++) {\n var a = strings[s];\n var b = strings[s + 1];\n var n$1 = numbers[s];\n if (!isNaN(n$1)) {\n if (!b) {\n progress += n$1 + ' ';\n } else {\n progress += n$1 + b;\n }\n }\n }\n }\n setProgressValue[anim.type](animatable.target, anim.property, progress, animatable.transforms);\n anim.currentValue = progress;\n i++;\n }\n }\n\n function setCallback(cb) {\n if (instance[cb] && !instance.passThrough) { instance[cb](instance); }\n }\n\n function countIteration() {\n if (instance.remaining && instance.remaining !== true) {\n instance.remaining--;\n }\n }\n\n function setInstanceProgress(engineTime) {\n var insDuration = instance.duration;\n var insDelay = instance.delay;\n var insEndDelay = insDuration - instance.endDelay;\n var insTime = adjustTime(engineTime);\n instance.progress = minMax((insTime / insDuration) * 100, 0, 100);\n instance.reversePlayback = insTime < instance.currentTime;\n if (children) { syncInstanceChildren(insTime); }\n if (!instance.began && instance.currentTime > 0) {\n instance.began = true;\n setCallback('begin');\n }\n if (!instance.loopBegan && instance.currentTime > 0) {\n instance.loopBegan = true;\n setCallback('loopBegin');\n }\n if (insTime <= insDelay && instance.currentTime !== 0) {\n setAnimationsProgress(0);\n }\n if ((insTime >= insEndDelay && instance.currentTime !== insDuration) || !insDuration) {\n setAnimationsProgress(insDuration);\n }\n if (insTime > insDelay && insTime < insEndDelay) {\n if (!instance.changeBegan) {\n instance.changeBegan = true;\n instance.changeCompleted = false;\n setCallback('changeBegin');\n }\n setCallback('change');\n setAnimationsProgress(insTime);\n } else {\n if (instance.changeBegan) {\n instance.changeCompleted = true;\n instance.changeBegan = false;\n setCallback('changeComplete');\n }\n }\n instance.currentTime = minMax(insTime, 0, insDuration);\n if (instance.began) { setCallback('update'); }\n if (engineTime >= insDuration) {\n lastTime = 0;\n countIteration();\n if (!instance.remaining) {\n instance.paused = true;\n if (!instance.completed) {\n instance.completed = true;\n setCallback('loopComplete');\n setCallback('complete');\n if (!instance.passThrough && 'Promise' in window) {\n resolve();\n promise = makePromise(instance);\n }\n }\n } else {\n startTime = now;\n setCallback('loopComplete');\n instance.loopBegan = false;\n if (instance.direction === 'alternate') {\n toggleInstanceDirection();\n }\n }\n }\n }\n\n instance.reset = function() {\n var direction = instance.direction;\n instance.passThrough = false;\n instance.currentTime = 0;\n instance.progress = 0;\n instance.paused = true;\n instance.began = false;\n instance.loopBegan = false;\n instance.changeBegan = false;\n instance.completed = false;\n instance.changeCompleted = false;\n instance.reversePlayback = false;\n instance.reversed = direction === 'reverse';\n instance.remaining = instance.loop;\n children = instance.children;\n childrenLength = children.length;\n for (var i = childrenLength; i--;) { instance.children[i].reset(); }\n if (instance.reversed && instance.loop !== true || (direction === 'alternate' && instance.loop === 1)) { instance.remaining++; }\n setAnimationsProgress(instance.reversed ? instance.duration : 0);\n };\n\n // internal method (for engine) to adjust animation timings before restoring engine ticks (rAF)\n instance._onDocumentVisibility = resetTime;\n\n // Set Value helper\n\n instance.set = function(targets, properties) {\n setTargetsValue(targets, properties);\n return instance;\n };\n\n instance.tick = function(t) {\n now = t;\n if (!startTime) { startTime = now; }\n setInstanceProgress((now + (lastTime - startTime)) * anime.speed);\n };\n\n instance.seek = function(time) {\n setInstanceProgress(adjustTime(time));\n };\n\n instance.pause = function() {\n instance.paused = true;\n resetTime();\n };\n\n instance.play = function() {\n if (!instance.paused) { return; }\n if (instance.completed) { instance.reset(); }\n instance.paused = false;\n activeInstances.push(instance);\n resetTime();\n engine();\n };\n\n instance.reverse = function() {\n toggleInstanceDirection();\n instance.completed = instance.reversed ? false : true;\n resetTime();\n };\n\n instance.restart = function() {\n instance.reset();\n instance.play();\n };\n\n instance.remove = function(targets) {\n var targetsArray = parseTargets(targets);\n removeTargetsFromInstance(targetsArray, instance);\n };\n\n instance.reset();\n\n if (instance.autoplay) { instance.play(); }\n\n return instance;\n\n}\n\n// Remove targets from animation\n\nfunction removeTargetsFromAnimations(targetsArray, animations) {\n for (var a = animations.length; a--;) {\n if (arrayContains(targetsArray, animations[a].animatable.target)) {\n animations.splice(a, 1);\n }\n }\n}\n\nfunction removeTargetsFromInstance(targetsArray, instance) {\n var animations = instance.animations;\n var children = instance.children;\n removeTargetsFromAnimations(targetsArray, animations);\n for (var c = children.length; c--;) {\n var child = children[c];\n var childAnimations = child.animations;\n removeTargetsFromAnimations(targetsArray, childAnimations);\n if (!childAnimations.length && !child.children.length) { children.splice(c, 1); }\n }\n if (!animations.length && !children.length) { instance.pause(); }\n}\n\nfunction removeTargetsFromActiveInstances(targets) {\n var targetsArray = parseTargets(targets);\n for (var i = activeInstances.length; i--;) {\n var instance = activeInstances[i];\n removeTargetsFromInstance(targetsArray, instance);\n }\n}\n\n// Stagger helpers\n\nfunction stagger(val, params) {\n if ( params === void 0 ) params = {};\n\n var direction = params.direction || 'normal';\n var easing = params.easing ? parseEasings(params.easing) : null;\n var grid = params.grid;\n var axis = params.axis;\n var fromIndex = params.from || 0;\n var fromFirst = fromIndex === 'first';\n var fromCenter = fromIndex === 'center';\n var fromLast = fromIndex === 'last';\n var isRange = is.arr(val);\n var val1 = isRange ? parseFloat(val[0]) : parseFloat(val);\n var val2 = isRange ? parseFloat(val[1]) : 0;\n var unit = getUnit(isRange ? val[1] : val) || 0;\n var start = params.start || 0 + (isRange ? val1 : 0);\n var values = [];\n var maxValue = 0;\n return function (el, i, t) {\n if (fromFirst) { fromIndex = 0; }\n if (fromCenter) { fromIndex = (t - 1) / 2; }\n if (fromLast) { fromIndex = t - 1; }\n if (!values.length) {\n for (var index = 0; index < t; index++) {\n if (!grid) {\n values.push(Math.abs(fromIndex - index));\n } else {\n var fromX = !fromCenter ? fromIndex%grid[0] : (grid[0]-1)/2;\n var fromY = !fromCenter ? Math.floor(fromIndex/grid[0]) : (grid[1]-1)/2;\n var toX = index%grid[0];\n var toY = Math.floor(index/grid[0]);\n var distanceX = fromX - toX;\n var distanceY = fromY - toY;\n var value = Math.sqrt(distanceX * distanceX + distanceY * distanceY);\n if (axis === 'x') { value = -distanceX; }\n if (axis === 'y') { value = -distanceY; }\n values.push(value);\n }\n maxValue = Math.max.apply(Math, values);\n }\n if (easing) { values = values.map(function (val) { return easing(val / maxValue) * maxValue; }); }\n if (direction === 'reverse') { values = values.map(function (val) { return axis ? (val < 0) ? val * -1 : -val : Math.abs(maxValue - val); }); }\n }\n var spacing = isRange ? (val2 - val1) / maxValue : val1;\n return start + (spacing * (Math.round(values[i] * 100) / 100)) + unit;\n }\n}\n\n// Timeline\n\nfunction timeline(params) {\n if ( params === void 0 ) params = {};\n\n var tl = anime(params);\n tl.duration = 0;\n tl.add = function(instanceParams, timelineOffset) {\n var tlIndex = activeInstances.indexOf(tl);\n var children = tl.children;\n if (tlIndex > -1) { activeInstances.splice(tlIndex, 1); }\n function passThrough(ins) { ins.passThrough = true; }\n for (var i = 0; i < children.length; i++) { passThrough(children[i]); }\n var insParams = mergeObjects(instanceParams, replaceObjectProps(defaultTweenSettings, params));\n insParams.targets = insParams.targets || params.targets;\n var tlDuration = tl.duration;\n insParams.autoplay = false;\n insParams.direction = tl.direction;\n insParams.timelineOffset = is.und(timelineOffset) ? tlDuration : getRelativeValue(timelineOffset, tlDuration);\n passThrough(tl);\n tl.seek(insParams.timelineOffset);\n var ins = anime(insParams);\n passThrough(ins);\n children.push(ins);\n var timings = getInstanceTimings(children, params);\n tl.delay = timings.delay;\n tl.endDelay = timings.endDelay;\n tl.duration = timings.duration;\n tl.seek(0);\n tl.reset();\n if (tl.autoplay) { tl.play(); }\n return tl;\n };\n return tl;\n}\n\nanime.version = '3.2.1';\nanime.speed = 1;\n// TODO:#review: naming, documentation\nanime.suspendWhenDocumentHidden = true;\nanime.running = activeInstances;\nanime.remove = removeTargetsFromActiveInstances;\nanime.get = getOriginalTargetValue;\nanime.set = setTargetsValue;\nanime.convertPx = convertPxToUnit;\nanime.path = getPath;\nanime.setDashoffset = setDashoffset;\nanime.stagger = stagger;\nanime.timeline = timeline;\nanime.easing = parseEasings;\nanime.penner = penner;\nanime.random = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; };\n\nexport default anime;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.is_dark_mode = exports.menu_opened = void 0;\nconst animejs_1 = __importDefault(require(\"animejs\"));\nconst betterCursor_1 = __importDefault(require(\"./betterCursor\"));\nexports.menu_opened = false;\nexports.is_dark_mode = false;\nconst init_UI = (cur) => {\n document.getElementById(\"side-menu-btn\").addEventListener(\"click\", (e) => {\n exports.menu_opened = !exports.menu_opened;\n (0, animejs_1.default)({\n targets: \"#side-menu\",\n translateX: `${exports.menu_opened ? 0 : -240}pt`,\n easing: \"easeOutQuart\",\n duration: 500\n });\n (0, animejs_1.default)({\n targets: \"#side-menu-control-container\",\n translateX: `${exports.menu_opened ? 175 : 0}pt`,\n easing: \"easeOutQuart\",\n duration: 450,\n delay: exports.menu_opened ? 40 : 0\n });\n if (exports.menu_opened) {\n document.querySelector(\"body\").classList.add(\"side-opened\");\n }\n else {\n document.querySelector(\"body\").classList.remove(\"side-opened\");\n }\n });\n document.getElementById(\"dark-mode-btn\").addEventListener(\"click\", (e) => {\n exports.is_dark_mode = !exports.is_dark_mode;\n if (exports.is_dark_mode) {\n document.querySelector(\"body\").classList.add(\"dark-mode\");\n cur.setDark();\n }\n else {\n document.querySelector(\"body\").classList.remove(\"dark-mode\");\n cur.setLight();\n }\n });\n};\nwindow.onload = () => {\n init_UI(new betterCursor_1.default(\"custom-cursor\"));\n};\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst animejs_1 = __importDefault(require(\"animejs\"));\nclass cursor {\n constructor(id, config = {}) {\n this.snappedX = false;\n this.snappedY = false;\n this.moveElmnt = true;\n this.hidden = false;\n this.dark = false;\n this.currentCursorLoc = {\n x: 0,\n y: 0,\n ox: 0,\n oy: 0\n };\n this.snapCoef = 1;\n this._updateCursorTransition = () => {\n let transitionStr = \"\";\n for (let i = 0; i < this._transitionProperties.length; i++) {\n let propDur = this._transitionProperties[i].duration;\n this._transitionProperties[i].property.forEach((prop) => {\n if (!this._transitionSuppression.has(prop)) {\n transitionStr += `${prop} ${propDur}ms ease, `;\n }\n });\n }\n this.cursorElement.style.transition = transitionStr.substring(0, transitionStr.length - 2);\n };\n this._updateCursorState = () => {\n if (this._currentHoverElmnt.hasAttribute(\"snaptext\")) {\n this.setShape(\"text\");\n this._offsetTransitioned = false;\n }\n else if (this._currentHoverElmnt.hasAttribute(\"snapinput\")) {\n this.setShape(\"input\", this._currentHoverElmnt);\n this._offsetTransitioned = false;\n }\n else if (this._currentHoverElmnt.hasAttribute(\"snapbutton\")) {\n this.setShape(\"button\");\n this._offsetTransitioned = false;\n }\n else if (this._currentHoverElmnt.hasAttribute(\"bigsnapbutton\")) {\n this.setShape(\"button\", this._currentHoverElmnt, true, 20);\n this._offsetTransitioned = false;\n }\n else\n this.setShape(\"\");\n };\n this._offsetTransitioned = false;\n this._updatePositioncycle = () => {\n const cbbox = this.cursorElement.getBoundingClientRect();\n if (!(this.snappedX || this.snappedY)) {\n this.currentCursorLoc.ox = cbbox.width / -2;\n this.currentCursorLoc.oy = cbbox.height / -2;\n }\n else {\n const offsetX = this.currentCursorLoc.x - this._currentSnapBbox.x - this._currentSnapBbox.width / 2;\n const offsetY = this.currentCursorLoc.y - this._currentSnapBbox.y - this._currentSnapBbox.height / 2;\n const newox = (this.snappedX ? -offsetX / (1.5 * (-0.6667 * Math.tanh(this._currentSnapBbox.width / 200) + 1.3333)) : 0) + cbbox.width / -2;\n const newoy = (this.snappedY ? -offsetY / (1.5 * (-0.6667 * Math.tanh(this._currentSnapBbox.height / 200) + 1.3333)) : 0) + cbbox.height / -2;\n if (!this._offsetTransitioned) {\n (0, animejs_1.default)({\n targets: this.currentCursorLoc,\n ox: newox,\n oy: newoy,\n easing: \"easeOutCubic\",\n duration: 33,\n update: () => {\n this.cursorElement.style.transform = `translate3d(${this.currentCursorLoc.x + this.currentCursorLoc.ox}px, ${this.currentCursorLoc.y + this.currentCursorLoc.oy}px,0)`;\n },\n loop: 3,\n complete: () => {\n this._offsetTransitioned = true;\n }\n });\n }\n else {\n animejs_1.default.set(this.currentCursorLoc, {\n ox: newox,\n oy: newoy,\n });\n }\n this._elementTransitionDelay = setTimeout(() => {\n if (!!this._currentSnapElmnt)\n this._currentSnapElmnt.style.transition = \"0ms ease\";\n }, 100);\n if (this.moveElmnt)\n this._currentSnapElmnt.style.transform = `translate3d(${this.snappedX ? offsetX / (this._currentSnapBbox.width / this.snapCoef) : 0}px, ${this.snappedY ? offsetY / (this._currentSnapBbox.height / this.snapCoef) : 0}px, 0)`;\n }\n this.cursorElement.style.transform = `translate3d(${this.currentCursorLoc.x + this.currentCursorLoc.ox}px, ${this.currentCursorLoc.y + this.currentCursorLoc.oy}px,0)`;\n requestAnimationFrame(this._updatePositioncycle);\n };\n this.setDark = (set = true) => {\n if (set)\n this.dark = true;\n this.cursorElement.style.backgroundColor = (this.snappedX || this.snappedY) ? \"hsla(0, 0%, 100%, 0.1)\" : \"hsla(0, 0%, 100%, 0.4)\";\n };\n this.setLight = (set = true) => {\n if (set)\n this.dark = false;\n this.cursorElement.style.backgroundColor = (this.snappedX || this.snappedY) ? \"hsla(0, 0%, 0%, 0.1)\" : \"hsla(0, 0%, 0%, 0.4)\";\n };\n this.setShape = (shape, elmnt = this._currentHoverElmnt, hideCursor = false, snapCoef = 10) => {\n const reset_last_snap_pos = () => {\n if (!!this._lastSnapElmnt) {\n this._lastSnapElmnt.style.transition = \"200ms ease\";\n this._lastSnapElmnt.style.transform = \"translate3d(0,0,0)\";\n this._lastSnapElmnt.style.scale = \"1\";\n }\n };\n const set_snap = () => {\n this._currentSnapElmnt = elmnt;\n this._currentSnapBbox = elmnt.getBoundingClientRect();\n if (this._currentSnapElmnt != this._lastSnapElmnt) {\n reset_last_snap_pos();\n }\n this._lastSnapElmnt = this._currentSnapElmnt;\n };\n this.hidden = hideCursor;\n this.snapCoef = snapCoef;\n this.currentCursorGrowth = elmnt.getAttribute(\"growth\") || \"0px\";\n switch (shape) {\n case \"text\":\n this.snappedX = this.snappedY = false;\n this.moveElmnt = true;\n this.currentCursorWidth = `max(3px, calc(${window.getComputedStyle(elmnt).lineHeight} / 12))`;\n this.currentCursorHeight = window.getComputedStyle(elmnt).lineHeight;\n reset_last_snap_pos();\n if (hideCursor)\n this.cursorElement.style.opacity = \"0\";\n if (this.dark)\n this.cursorElement.style.backgroundColor = \"hsla(0, 0%, 100%, 0.7)\";\n else\n this.cursorElement.style.backgroundColor = \"hsla(0, 0%, 0%, 0.7)\";\n break;\n case \"input\":\n this.snappedX = this.moveElmnt = false;\n this.snappedY = true;\n this.currentCursorWidth = `3px`;\n this.currentCursorHeight = `calc(${window.getComputedStyle(elmnt).height} - 2px)`;\n set_snap();\n if (hideCursor)\n this.cursorElement.style.opacity = \"0\";\n if (this.dark)\n this.cursorElement.style.backgroundColor = \"hsla(0, 0%, 100%, 0.4)\";\n else\n this.cursorElement.style.backgroundColor = \"hsla(0, 0%, 0%, 0.4)\";\n break;\n case \"button\":\n this.snappedX = this.snappedY = true;\n this.moveElmnt = true;\n this.currentCursorWidth = `calc(${elmnt?.getBoundingClientRect().width}px + ${this.currentCursorGrowth})`;\n this.currentCursorHeight = `calc(${elmnt?.getBoundingClientRect().height}px + ${this.currentCursorGrowth})`;\n this.currentCursorRadius = window.getComputedStyle(elmnt).borderRadius;\n this.cursorElement.style.zIndex = \"0\";\n set_snap();\n this._currentSnapElmnt.style.transitionProperty = \"scale, transform, opacity\";\n this._currentSnapElmnt.style.transition = `200ms ease`;\n if (hideCursor) {\n this.cursorElement.style.opacity = \"0\";\n break;\n }\n if (this.dark)\n this.cursorElement.style.backgroundColor = \"hsla(0, 0%, 100%, 0.1)\";\n else\n this.cursorElement.style.backgroundColor = \"hsla(0, 0%, 0%, 0.1)\";\n break;\n default:\n this.snappedX = this.snappedY = false;\n this.moveElmnt = true;\n this.currentCursorRadius = this.cursorWidth;\n this.currentCursorWidth = this.cursorWidth;\n this.currentCursorHeight = this.cursorHeight;\n this.currentCursorLoc.ox = this.currentCursorLoc.oy = 0;\n this.cursorElement.style.zIndex = \"999999\";\n if (!!this._elementTransitionDelay) {\n clearTimeout(this._elementTransitionDelay);\n }\n if (!!this._currentSnapElmnt) {\n reset_last_snap_pos();\n }\n this._currentSnapElmnt = undefined;\n this.cursorElement.style.opacity = \"1\";\n if (this.dark)\n this.setDark();\n else\n this.setLight();\n }\n this.cursorElement.style.width = this.currentCursorWidth;\n this.cursorElement.style.height = this.currentCursorHeight;\n this.cursorElement.style.borderRadius = this.currentCursorRadius;\n };\n this.cursorElement = document.getElementById(id);\n if (!this.cursorElement) {\n console.error(`Cursor with id:${id} does not exist.`);\n return;\n }\n this.currentCursorWidth = this.cursorWidth = config.size || \"24px\";\n this.currentCursorHeight = this.cursorHeight = config.size || \"24px\";\n this.currentCursorRadius = \"1000rem\";\n this.cursorMass = config.mass || 0;\n this.trkPer = config.trackingPeriod || 50;\n {\n this.cursorElement.style.pointerEvents = \"none\";\n this.cursorElement.style.position = \"fixed\";\n this.cursorElement.style.zIndex = \"999999\";\n this.cursorElement.style.left = \"0\";\n this.cursorElement.style.top = \"0\";\n this._transitionProperties = [\n {\n property: [\"width\", \"height\", \"borderRadius\", \"opacity\"],\n duration: 100,\n }\n ];\n this._transitionSuppression = new Set();\n this._updateCursorTransition();\n this.cursorElement.style.width = this.currentCursorWidth;\n this.cursorElement.style.height = this.currentCursorHeight;\n this.cursorElement.style.borderRadius = this.currentCursorRadius;\n this.cursorElement.style.opacity = \"0\";\n this.cursorElement.style.backgroundColor = \"hsla(0, 0%, 0%, 0.4)\";\n }\n document.documentElement.addEventListener('mouseleave', () => this.cursorElement.style.opacity = \"0\");\n document.documentElement.addEventListener('keydown', () => this.cursorElement.style.opacity = \"0\");\n document.documentElement.addEventListener('mouseenter', () => this.cursorElement.style.opacity = \"1\");\n requestAnimationFrame(this._updatePositioncycle);\n document.onmousemove = (e) => {\n if (!this.hidden)\n this.cursorElement.style.opacity = \"1\";\n this.currentCursorLoc.x = e.x;\n this.currentCursorLoc.y = e.y;\n };\n setInterval(() => {\n this._currentHoverElmnt = document.elementFromPoint(this.currentCursorLoc.x, this.currentCursorLoc.y);\n if (this._currentHoverElmnt != this._lastHoverElmnt) {\n if (this._currentHoverElmnt.hasAttribute(\"contrast\"))\n this.dark ? this.setLight(false) : this.setDark(false);\n else\n this.dark ? this.setDark(false) : this.setLight(false);\n this._updateCursorState();\n }\n this._lastHoverElmnt = this._currentHoverElmnt;\n this._updateCursorTransition();\n }, this.trkPer);\n }\n}\nexports.default = cursor;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(903);\n"],"names":["defaultInstanceSettings","update","begin","loopBegin","changeBegin","change","changeComplete","loopComplete","complete","loop","direction","autoplay","timelineOffset","defaultTweenSettings","duration","delay","endDelay","easing","round","validTransforms","cache","CSS","springs","minMax","val","min","max","Math","stringContains","str","text","indexOf","applyArguments","func","args","apply","is","arr","a","Array","isArray","obj","Object","prototype","toString","call","pth","hasOwnProperty","svg","SVGElement","inp","HTMLInputElement","dom","nodeType","fnc","und","nil","hex","test","rgb","hsl","col","key","parseEasingParameters","string","match","exec","split","map","p","parseFloat","spring","params","mass","stiffness","damping","velocity","w0","sqrt","zeta","wd","b","solver","t","progress","exp","cos","sin","cached","frame","elapsed","rest","steps","ceil","eases","functionEasings","bezier","kSampleStepSize","A","aA1","aA2","B","C","calcBezier","aT","getSlope","mX1","mY1","mX2","mY2","sampleValues","Float32Array","i","x","aX","intervalStart","currentSample","kSplineTableSize","guessForT","initialSlope","aGuessT","currentSlope","newtonRaphsonIterate","aA","aB","currentX","currentT","abs","binarySubdivide","getTForX","penner","linear","Sine","PI","Circ","Back","Bounce","pow2","pow","Elastic","amplitude","period","asin","forEach","name","keys","easeIn","parseEasings","ease","selectString","document","querySelectorAll","e","filterArray","callback","len","length","thisArg","arguments","result","push","flattenArray","reduce","concat","toArray","o","NodeList","HTMLCollection","slice","arrayContains","some","cloneObject","clone","replaceObjectProps","o1","o2","mergeObjects","getUnit","getFunctionValue","animatable","target","id","total","getAttribute","el","prop","convertPxToUnit","value","unit","tempEl","createElement","tagName","parentEl","parentNode","body","appendChild","style","position","width","factor","offsetWidth","removeChild","convertedUnit","getCSSValue","uppercasePropName","replace","toLowerCase","getComputedStyle","getPropertyValue","getAnimationType","getElementTransforms","m","transform","reg","transforms","Map","set","getOriginalTargetValue","propName","defaultVal","getTransformUnit","get","list","getTransformValue","getRelativeValue","to","from","operator","u","y","validateValue","rgbValue","hexValue","r","g","parseInt","hexToRgba","hslValue","h","s","l","hue2rgb","q","hslToRgba","colorToRgb","originalUnit","unitLess","substr","getDistance","p1","p2","getPolylineLength","previousPos","points","totalLength","numberOfItems","currentPos","getItem","getTotalLength","getCircleLength","getRectLength","getLineLength","getPolygonLength","getParentSvg","pathEl","svgData","parentSvgEl","getParentSvgEl","rect","getBoundingClientRect","viewBoxAttr","height","viewBox","w","vW","vH","getPathProgress","path","isPathTargetInsideSVG","point","offset","getPointAtLength","p0","scaleX","scaleY","property","atan2","decomposeValue","rgx","original","numbers","Number","strings","parseTargets","targets","item","pos","self","getAnimatables","parsed","normalizePropertyTweens","tweenSettings","settings","propArray","v","k","setProgressValue","css","attribute","setAttribute","object","manual","last","setTargetsValue","properties","valueUnit","originalValue","animType","getAnimations","animatables","tweens","previousTween","tween","normalizeTweenValues","tweenValue","toUnit","previousValue","fromUnit","start","end","isPath","isColor","normalizeTweens","lastTween","type","createAnimation","getInstanceTimings","animations","animLength","getTlOffset","anim","timings","instanceID","activeInstances","engine","raf","step","activeInstancesLength","activeInstance","paused","splice","tick","requestAnimationFrame","undefined","addEventListener","anime","suspendWhenDocumentHidden","isDocumentHidden","cancelAnimationFrame","instance","_onDocumentVisibility","hidden","children","startTime","lastTime","now","childrenLength","resolve","makePromise","promise","window","Promise","_resolve","finished","instanceSettings","keyframes","propertyNames","newKey","flattenKeyframes","getProperties","createNewInstance","toggleInstanceDirection","reversed","child","adjustTime","time","resetTime","currentTime","speed","seekChild","seek","setAnimationsProgress","insTime","animationsLength","tweenLength","eased","isNaN","toNumbersLength","n","toNumber","fromNumber","stringsLength","n$1","currentValue","setCallback","cb","passThrough","setInstanceProgress","engineTime","insDuration","insDelay","insEndDelay","reversePlayback","i$1","syncInstanceChildren","began","loopBegan","changeBegan","changeCompleted","remaining","completed","reset","pause","play","reverse","restart","remove","removeTargetsFromInstance","removeTargetsFromAnimations","targetsArray","c","childAnimations","version","running","convertPx","percent","setDashoffset","pathLength","stagger","grid","axis","fromIndex","fromFirst","fromCenter","fromLast","isRange","val1","val2","values","maxValue","index","fromX","fromY","floor","distanceX","distanceY","timeline","tl","add","instanceParams","tlIndex","ins","insParams","tlDuration","random","__importDefault","this","mod","__esModule","defineProperty","exports","is_dark_mode","menu_opened","animejs_1","betterCursor_1","onload","cur","default","getElementById","translateX","querySelector","classList","setDark","setLight","constructor","config","snappedX","snappedY","moveElmnt","dark","currentCursorLoc","ox","oy","snapCoef","_updateCursorTransition","transitionStr","_transitionProperties","propDur","_transitionSuppression","has","cursorElement","transition","substring","_updateCursorState","_currentHoverElmnt","hasAttribute","setShape","_offsetTransitioned","_updatePositioncycle","cbbox","offsetX","_currentSnapBbox","offsetY","newox","tanh","newoy","_elementTransitionDelay","setTimeout","_currentSnapElmnt","backgroundColor","shape","elmnt","hideCursor","reset_last_snap_pos","_lastSnapElmnt","scale","set_snap","currentCursorGrowth","currentCursorWidth","lineHeight","currentCursorHeight","opacity","currentCursorRadius","borderRadius","zIndex","transitionProperty","cursorWidth","cursorHeight","clearTimeout","size","cursorMass","trkPer","trackingPeriod","pointerEvents","left","top","Set","documentElement","onmousemove","setInterval","elementFromPoint","_lastHoverElmnt","console","error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","module","__webpack_modules__","d","definition","enumerable","Symbol","toStringTag"],"sourceRoot":""} --------------------------------------------------------------------------------