├── README.md ├── bg ├── bg1.js ├── bg2.js └── bg3.js ├── css ├── all.css ├── chat.css ├── display.css ├── fonts │ ├── element-icons.ttf │ └── element-icons.woff ├── index.css └── mkdown.css ├── favicon.ico ├── images ├── crushend.jpg ├── cvcat.jpg └── pay_zfb.jpg ├── index.html ├── js ├── axios.js ├── bg.js ├── chat.js ├── index.js ├── showdown.js └── vue.js └── webfonts ├── fa-solid-900.ttf ├── fa-solid-900.woff └── fa-solid-900.woff2 /README.md: -------------------------------------------------------------------------------- 1 | # Chatgpt 2 | 快速部署基于 chatgpt 的网页聊天机器人,下载即用! 3 | 基于 chatgpt 的`gpt-3.5-turbo`的 api 的一个对话机器人 4 | ![image](https://user-images.githubusercontent.com/94289429/224243073-cc47fcdd-fa32-40fe-b0fe-e9be13dab1da.png) 5 | 6 | ## 运行方法 7 | 一个浏览器 8 | 9 | 运行方法: 10 | 11 | ``` 12 | 更换api,浏览器直接打开 13 | ``` 14 | 15 | ## 注意事项 16 | 1. 请在 chat.js 中填入自己的 api_key ,在 https://platform.openai.com/account/api-keys 申请 17 | 2. api已被墙,使用和部署请使用魔法 18 | 3. 历史记录功能已删除 19 | -------------------------------------------------------------------------------- /bg/bg1.js: -------------------------------------------------------------------------------- 1 | 2 | console.log("%c 当前为背景1", 'padding:10px 20px;color:white;background :linear-gradient(90deg, rgb(159, 229, 151), rgb(204, 229, 129))'); 3 | "object" == typeof window && (window.Ribbons = function() { 4 | var t = window 5 | , i = document.body 6 | , n = document.documentElement 7 | , o = function() { 8 | if (1 === arguments.length) { 9 | if (Array.isArray(arguments[0])) { 10 | var t = Math.round(o(0, arguments[0].length - 1)); 11 | return arguments[0][t] 12 | } 13 | return o(0, arguments[0]) 14 | } 15 | return 2 === arguments.length ? Math.random() * (arguments[1] - arguments[0]) + arguments[0] : 0 16 | } 17 | , s = function(o) { 18 | var s = Math.max(0, t.innerWidth || n.clientWidth || i.clientWidth || 0) 19 | , h = Math.max(0, t.innerHeight || n.clientHeight || i.clientHeight || 0) 20 | , e = Math.max(0, t.pageXOffset || n.scrollLeft || i.scrollLeft || 0) - (n.clientLeft || 0) 21 | , a = Math.max(0, t.pageYOffset || n.scrollTop || i.scrollTop || 0) - (n.clientTop || 0); 22 | return { 23 | width: s, 24 | height: h, 25 | ratio: s / h, 26 | centerx: s / 2, 27 | centery: h / 2, 28 | scrollx: e, 29 | scrolly: a 30 | } 31 | } 32 | , h = function(t, i) { 33 | this.x = 0, 34 | this.y = 0, 35 | this.set(t, i) 36 | }; 37 | h.prototype = { 38 | constructor: h, 39 | set: function(t, i) { 40 | this.x = t || 0, 41 | this.y = i || 0 42 | }, 43 | copy: function(t) { 44 | return this.x = t.x || 0, 45 | this.y = t.y || 0, 46 | this 47 | }, 48 | multiply: function(t, i) { 49 | return this.x *= t || 1, 50 | this.y *= i || 1, 51 | this 52 | }, 53 | divide: function(t, i) { 54 | return this.x /= t || 1, 55 | this.y /= i || 1, 56 | this 57 | }, 58 | add: function(t, i) { 59 | return this.x += t || 0, 60 | this.y += i || 0, 61 | this 62 | }, 63 | subtract: function(t, i) { 64 | return this.x -= t || 0, 65 | this.y -= i || 0, 66 | this 67 | }, 68 | clampX: function(t, i) { 69 | return this.x = Math.max(t, Math.min(this.x, i)), 70 | this 71 | }, 72 | clampY: function(t, i) { 73 | return this.y = Math.max(t, Math.min(this.y, i)), 74 | this 75 | }, 76 | flipX: function() { 77 | return this.x *= -1, 78 | this 79 | }, 80 | flipY: function() { 81 | return this.y *= -1, 82 | this 83 | } 84 | }; 85 | var e = function(t) { 86 | this._canvas = null, 87 | this._context = null, 88 | this._sto = null, 89 | this._width = 0, 90 | this._height = 0, 91 | this._scroll = 0, 92 | this._ribbons = [], 93 | this._options = { 94 | colorSaturation: "80%", 95 | colorBrightness: "60%", 96 | colorAlpha: .65, 97 | colorCycleSpeed: 6, 98 | verticalPosition: "center", 99 | horizontalSpeed: 150, 100 | ribbonCount: 3, 101 | strokeSize: 0, 102 | parallaxAmount: -.5, 103 | animateSections: !0 104 | }, 105 | this._onDraw = this._onDraw.bind(this), 106 | this._onResize = this._onResize.bind(this), 107 | this._onScroll = this._onScroll.bind(this), 108 | this.setOptions(t), 109 | this.init() 110 | }; 111 | return e.prototype = { 112 | constructor: e, 113 | setOptions: function(t) { 114 | if ("object" == typeof t) 115 | for (var i in t) 116 | t.hasOwnProperty(i) && (this._options[i] = t[i]) 117 | }, 118 | init: function() { 119 | try { 120 | this._canvas = document.createElement("canvas"), 121 | this._canvas.style.display = "block", 122 | this._canvas.style.position = "fixed", 123 | this._canvas.style.margin = "0", 124 | this._canvas.style.padding = "0", 125 | this._canvas.style.border = "0", 126 | this._canvas.style.outline = "0", 127 | this._canvas.style.left = "0", 128 | this._canvas.style.top = "0", 129 | this._canvas.style.width = "100%", 130 | this._canvas.style.height = "100%", 131 | this._canvas.style["z-index"] = "-1", 132 | this._canvas.id = "bgCanvas", 133 | this._onResize(), 134 | this._context = this._canvas.getContext("2d"), 135 | this._context.clearRect(0, 0, this._width, this._height), 136 | this._context.globalAlpha = this._options.colorAlpha, 137 | window.addEventListener("resize", this._onResize), 138 | window.addEventListener("scroll", this._onScroll), 139 | document.body.appendChild(this._canvas) 140 | } catch (t) { 141 | return void console.warn("Canvas Context Error: " + t.toString()) 142 | } 143 | this._onDraw() 144 | }, 145 | addRibbon: function() { 146 | var t = Math.round(o(1, 9)) > 5 ? "right" : "left" 147 | , i = 1e3 148 | , n = this._width + 200 149 | , s = 0 150 | , e = 0 151 | , a = "right" === t ? -200 : n 152 | , r = Math.round(o(0, this._height)); 153 | /^(top|min)$/i.test(this._options.verticalPosition) ? r = 200 : /^(middle|center)$/i.test(this._options.verticalPosition) ? r = this._height / 2 : /^(bottom|max)$/i.test(this._options.verticalPosition) && (r = this._height - 200); 154 | for (var l = [], c = new h(a,r), _ = new h(a,r), p = null, d = Math.round(o(0, 360)), u = 0; !(i <= 0); ) { 155 | if (i--, 156 | s = Math.round((1 * Math.random() - .2) * this._options.horizontalSpeed), 157 | e = Math.round((1 * Math.random() - .5) * (.25 * this._height)), 158 | (p = new h).copy(_), 159 | "right" === t) { 160 | if (p.add(s, e), 161 | _.x >= n) 162 | break 163 | } else if ("left" === t && (p.subtract(s, e), 164 | _.x <= -200)) 165 | break; 166 | l.push({ 167 | point1: new h(c.x,c.y), 168 | point2: new h(_.x,_.y), 169 | point3: p, 170 | color: d, 171 | delay: u, 172 | dir: t, 173 | alpha: 0, 174 | phase: 0 175 | }), 176 | c.copy(_), 177 | _.copy(p), 178 | u += 4, 179 | d += this._options.colorCycleSpeed 180 | } 181 | this._ribbons.push(l) 182 | }, 183 | _drawRibbonSection: function(t) { 184 | if (t) { 185 | if (t.phase >= 1 && t.alpha <= 0) 186 | return !0; 187 | if (t.delay <= 0) { 188 | if (t.phase += .02, 189 | t.alpha = 1 * Math.sin(t.phase), 190 | t.alpha = t.alpha <= 0 ? 0 : t.alpha, 191 | t.alpha = t.alpha >= 1 ? 1 : t.alpha, 192 | this._options.animateSections) { 193 | var i = .1 * Math.sin(1 + t.phase * Math.PI / 2); 194 | "right" === t.dir ? (t.point1.add(i, 0), 195 | t.point2.add(i, 0), 196 | t.point3.add(i, 0)) : (t.point1.subtract(i, 0), 197 | t.point2.subtract(i, 0), 198 | t.point3.subtract(i, 0)), 199 | t.point1.add(0, i), 200 | t.point2.add(0, i), 201 | t.point3.add(0, i) 202 | } 203 | } else 204 | t.delay -= .5; 205 | var n = this._options.colorSaturation 206 | , o = this._options.colorBrightness 207 | , s = "hsla(" + t.color + ", " + n + ", " + o + ", " + t.alpha + " )"; 208 | this._context.save(), 209 | 0 !== this._options.parallaxAmount && this._context.translate(0, this._scroll * this._options.parallaxAmount), 210 | this._context.beginPath(), 211 | this._context.moveTo(t.point1.x, t.point1.y), 212 | this._context.lineTo(t.point2.x, t.point2.y), 213 | this._context.lineTo(t.point3.x, t.point3.y), 214 | this._context.fillStyle = s, 215 | this._context.fill(), 216 | this._options.strokeSize > 0 && (this._context.lineWidth = this._options.strokeSize, 217 | this._context.strokeStyle = s, 218 | this._context.lineCap = "round", 219 | this._context.stroke()), 220 | this._context.restore() 221 | } 222 | return !1 223 | }, 224 | _onDraw: function() { 225 | for (var t = 0, i = this._ribbons.length; t < i; ++t) 226 | this._ribbons[t] || this._ribbons.splice(t, 1); 227 | this._context.clearRect(0, 0, this._width, this._height); 228 | for (var n = 0; n < this._ribbons.length; ++n) { 229 | for (var o = this._ribbons[n], s = o.length, h = 0, e = 0; e < s; ++e) 230 | this._drawRibbonSection(o[e]) && h++; 231 | h >= s && (this._ribbons[n] = null) 232 | } 233 | this._ribbons.length < this._options.ribbonCount && this.addRibbon(), 234 | requestAnimationFrame(this._onDraw) 235 | }, 236 | _onResize: function(t) { 237 | var i = s(); 238 | this._width = i.width, 239 | this._height = i.height, 240 | this._canvas && (this._canvas.width = this._width, 241 | this._canvas.height = this._height, 242 | this._context && (this._context.globalAlpha = this._options.colorAlpha)) 243 | }, 244 | _onScroll: function(t) { 245 | var i = s(); 246 | this._scroll = i.scrolly 247 | } 248 | }, 249 | e 250 | }()), 251 | new Ribbons(window.backgroundAnimation); -------------------------------------------------------------------------------- /bg/bg2.js: -------------------------------------------------------------------------------- 1 | console.log("%c 当前为背景2", 'padding:10px 20px;color:white;background :linear-gradient(90deg, rgb(159, 229, 151), rgb(204, 229, 129))'); 2 | var Clock = (function() { 3 | 4 | // private variables 5 | var canvas, // canvas element 6 | ctx, // canvas context 7 | bgGrad = true, // background gradient flag 8 | gradient, // gradient (background) 9 | height = 400, // canvas height 10 | key = {up: false, shift: false}, // key presses 11 | particles = [], // particle array 12 | particleColor = 'hsla(0, 0%, 100%, 0.3)', // particle color 13 | mouse = {x: 0, y: 0}, // position of mouse / touch 14 | press = false, // pressed flag 15 | quiver = false, // quiver flag 16 | text, // the text to copy pixels from 17 | textSize = 140, // (initial) textsize 18 | valentine = false, // valentine-ify it for a bit? 19 | msgTime = 100, // time to show a message before returning to clock 20 | updateColor = true, // update color of gradient / particles with time? 21 | width = 800; // canvas width 22 | 23 | // Constants 24 | var FRAME_RATE = 20, // frames per second target 25 | MIN_WIDTH = 800, // minimum width of canvas 26 | MIN_HEIGHT = 400, // minimum height of canvas 27 | PARTICLE_NUM = 600, // (max) number of particles to generate 28 | RADIUS = Math.PI * 2; // radius of particle 29 | 30 | var defaultStyles = function() { 31 | textSize = 140; 32 | // particle color 33 | particleColor = 'hsla(0, 0%, 100%, 0.3)'; 34 | 35 | // color stops 36 | var gradientStops = { 37 | 0: '#333333', 38 | 0.5: '#222222' 39 | }; 40 | 41 | // create gradient 42 | setGradient(gradientStops); 43 | }; 44 | 45 | var draw = function(p) { 46 | ctx.fillStyle = particleColor; 47 | ctx.beginPath(); 48 | ctx.arc(p.x, p.y, p.size, 0, RADIUS, true); 49 | ctx.closePath(); 50 | ctx.fill(); 51 | }; 52 | 53 | var explode = function() { 54 | for(var i = 0, l = particles.length; i < l; i++) { 55 | var p = particles[i]; 56 | 57 | if(p.inText) { 58 | 59 | var ax = mouse.x - p.px, 60 | ay = mouse.y - p.py, 61 | angle = Math.atan2(ay, ax), 62 | polarity, 63 | C = Math.cos(angle), 64 | S = Math.sin(angle); 65 | 66 | // change polarity 67 | // attract particles if mouse pressed, repel if shift + mousedown 68 | polarity = (key.shift === true) ? -1 : 1; 69 | 70 | p.x += polarity * (Math.pow((C-1), 2) -1) + p.velocityX * p.delta; 71 | p.y += polarity * (Math.pow((S-1), 2) -1) + p.velocityY * p.delta; 72 | 73 | // set previous positions 74 | p.px = p.x; 75 | p.py = p.y; 76 | 77 | draw(p); 78 | } 79 | } 80 | }; 81 | 82 | var getTime = function(amPM) { 83 | var date = new Date(), 84 | hours = date.getHours(), 85 | timeOfDay = ''; 86 | 87 | if(amPM) { 88 | hours = ( hours > 12 ) ? hours -= 12 : hours; 89 | hours = ( hours == 0 ) ? 12 : hours; 90 | } else { 91 | hours = pad(hours); 92 | } 93 | 94 | var minutes = pad(date.getMinutes()); 95 | var seconds = pad(date.getSeconds()); 96 | return { 97 | hours: hours, 98 | minutes: minutes, 99 | seconds: seconds, 100 | timeString: hours + " : " + minutes + " : " + seconds 101 | }; 102 | }; 103 | 104 | // animation loop 105 | var loop = function() { 106 | 107 | // clear out text 108 | ctx.clearRect(0, 0, width, height); 109 | 110 | var time = getTime(true); 111 | 112 | textSize = 140; 113 | 114 | // draw text on canvas 115 | if(valentine === true) { 116 | if(msgTime > 0) { 117 | textSize = 180; 118 | text = '?'; 119 | msgTime--; 120 | } else { 121 | text = time.timeString; 122 | } 123 | // valentine-ify it by setting hue to pink 124 | setStyles(300); 125 | 126 | } else if(updateColor === true && bgGrad === true) { 127 | // changing color with time 128 | // @TODO: come up with something better, this is a hacky implementation 129 | var color = time.hours + time.minutes + time.seconds; 130 | setStyles(color); 131 | text = time.timeString; 132 | } else { 133 | defaultStyles(); 134 | text = time.timeString; 135 | } 136 | 137 | ctx.fillStyle = "rgb(255, 255, 255)"; 138 | ctx.textBaseline = "middle"; 139 | ctx.font = textSize + "px 'Avenir', 'Helvetica Neue', 'Arial', 'sans-serif'"; 140 | ctx.fillText(text, (width - ctx.measureText(text).width) * 0.5, height * 0.5); 141 | 142 | // copy pixels 143 | var imgData = ctx.getImageData(0, 0, width, height); 144 | 145 | // clear canvas, again 146 | ctx.clearRect(0, 0, width, height); 147 | 148 | if(bgGrad === true) { 149 | // draw gradient 150 | ctx.fillStyle = gradient; 151 | ctx.fillRect(0, 0, width, height); 152 | } 153 | 154 | if(press === false) { 155 | // reset particles 156 | for(var i = 0, l = particles.length; i < l; i++) { 157 | var p = particles[i]; 158 | p.inText = false; 159 | } 160 | particleText(imgData); 161 | } else { 162 | explode(); 163 | } 164 | FPS.update('fps'); 165 | }; 166 | 167 | var pad = function(number) { 168 | return ('0' + number).substr(-2); 169 | }; 170 | 171 | var particleText = function(imgData) { 172 | 173 | var pxls = []; 174 | for(var w = width; w > 0; w-=6) { 175 | for(var h = 0; h < width; h+=6) { 176 | var index = (w+h*(width))*4; 177 | if(imgData.data[index] > 10) { 178 | pxls.push([w, h]); 179 | } 180 | } 181 | } 182 | 183 | var count = pxls.length; 184 | for(var i = 0; i < pxls.length && i < particles.length; i++) { 185 | try { 186 | var p = particles[i], 187 | X, 188 | Y; 189 | 190 | if(quiver) { 191 | X = (pxls[count-1][0]) - (p.px + Math.random() * 5); 192 | Y = (pxls[count-1][1]) - (p.py + Math.random() * 5); 193 | } else { 194 | X = (pxls[count-1][0]) - p.px; 195 | Y = (pxls[count-1][1]) - p.py; 196 | } 197 | 198 | // tangent 199 | var T = Math.sqrt(X*X + Y*Y); 200 | 201 | // arctangent 202 | var A = Math.atan2(Y, X); 203 | 204 | // cosine 205 | var C = Math.cos(A); 206 | 207 | // sine 208 | var S = Math.sin(A); 209 | 210 | // set new postition 211 | p.x = p.px + C * T * p.delta; 212 | p.y = p.py + S * T * p.delta; 213 | 214 | // set previous positions 215 | p.px = p.x; 216 | p.py = p.y; 217 | 218 | p.inText = true; 219 | 220 | // draw the particle 221 | draw(p); 222 | 223 | if(key.up === true) { 224 | p.size += 0.3; 225 | } else { 226 | var newSize = p.size - 0.5; 227 | if(newSize > p.origSize && newSize > 0) { 228 | p.size = newSize; 229 | } else { 230 | p.size = m.origSize; 231 | } 232 | } 233 | } catch(e) { 234 | //console.log(e); 235 | } 236 | count--; 237 | } 238 | }; 239 | 240 | var setCoordinates = function(e) { 241 | if(e.offsetX) { 242 | return { x: e.offsetX, y: e.offsetY }; // use offset if available 243 | } else if (e.layerX) { 244 | return { x: e.layerX, y: e.layerY }; // firefox... make sure to position the canvas 245 | } else { 246 | // iOS. Maybe others too? 247 | return { x: e.pageX - canvas.offsetLeft, y: e.pageY - canvas.offsetTop }; 248 | } 249 | }; 250 | 251 | // set dimensions of canvas 252 | var setDimensions = function () { 253 | width = Math.max(window.innerWidth, MIN_WIDTH); 254 | height = Math.max(window.innerHeight, MIN_HEIGHT); 255 | 256 | // Resize the canvas 257 | canvas.width = width; 258 | canvas.height = height; 259 | 260 | canvas.style.position = 'absolute'; 261 | canvas.style.left = '0px'; 262 | canvas.style.top = '0px'; 263 | }; 264 | 265 | var setGradient = function(gradientStops) { 266 | 267 | // create gradient 268 | gradient = ctx.createRadialGradient(width / 2, height / 2, 0, width / 2, height / 2, width); 269 | 270 | // iterate through colorstops 271 | for (var position in gradientStops) { 272 | var color = gradientStops[position]; 273 | gradient.addColorStop(position, color); 274 | } 275 | }; 276 | 277 | var setStyles = function(hue) { 278 | // color stops 279 | var gradientStops = { 280 | 0: 'hsl(' + hue + ', 100%, 100%)', 281 | 0.5: 'hsl(' + hue +', 10%, 50%)' 282 | }; 283 | 284 | // change particle color 285 | particleColor = 'hsla(' + hue + ', 10%, 50%, 0.3)'; 286 | 287 | // create gradient 288 | setGradient(gradientStops); 289 | }; 290 | 291 | /** 292 | * Public Methods 293 | */ 294 | return { 295 | 296 | init: function(canvasID) { 297 | 298 | canvas = document.getElementById(canvasID); 299 | // make sure canvas exists and that the browser understands it 300 | if(canvas === null || !canvas.getContext) { 301 | return; 302 | } 303 | // set context 304 | ctx = canvas.getContext("2d"); 305 | 306 | // set dimensions 307 | setDimensions(); 308 | 309 | // ui 310 | this.ui(); 311 | 312 | for(var i = 0; i < PARTICLE_NUM; i++) { 313 | particles[i] = new Particle(canvas); 314 | } 315 | 316 | // show FPS 317 | FPS.initialize(canvas, 'fps'); 318 | 319 | // set defaults 320 | defaultStyles(); 321 | 322 | // let's do this 323 | setInterval(loop, FRAME_RATE); 324 | 325 | }, 326 | 327 | ui: function() { 328 | 329 | // UI: buttons and events 330 | 331 | document.addEventListener('keydown', function(e) { 332 | switch(e.keyCode ) { 333 | case 16: // shift 334 | key.shift = true; 335 | e.preventDefault(); 336 | break; 337 | case 38: // up key 338 | key.up = true; 339 | e.preventDefault(); 340 | break; 341 | } 342 | }, false); 343 | 344 | document.addEventListener('keyup', function(e) { 345 | switch(e.keyCode ) { 346 | case 16: // shift 347 | key.shift = false; 348 | e.preventDefault(); 349 | break; 350 | case 38: // space 351 | key.up = false; 352 | e.preventDefault(); 353 | break; 354 | } 355 | }, false); 356 | 357 | window.addEventListener('resize', function(e){ 358 | setDimensions(); 359 | }, false); 360 | 361 | canvas.addEventListener('mousedown', function(e){ 362 | press = true; 363 | }, false); 364 | 365 | document.addEventListener('mouseup', function(e){ 366 | press = false; 367 | }, false); 368 | 369 | canvas.addEventListener('mousemove', function(e) { 370 | if(press) { 371 | mouse = setCoordinates(e); 372 | } 373 | }, false); 374 | 375 | // @TODO: add touch events 376 | 377 | } 378 | 379 | }; 380 | 381 | })(); 382 | 383 | // Create new particles 384 | var Particle = function(canvas) { 385 | 386 | var range = Math.random() * 180 / Math.PI, // random starting point 387 | spread = canvas.height, // how far away from text should the particles begin? 388 | size = Math.random() * 7; // random size of particle 389 | 390 | this.delta = 0.25; 391 | this.x = 0; 392 | this.y = 0; 393 | 394 | // starting positions 395 | this.px = (canvas.width / 2) + (Math.cos(range) * spread); 396 | this.py = (canvas.height / 2) + (Math.sin(range) * spread); 397 | 398 | this.velocityX = Math.floor(Math.random() * 10) - 5; 399 | this.velocityY = Math.floor(Math.random() * 10) - 5; 400 | 401 | this.size = size; 402 | this.origSize = size; 403 | 404 | this.inText = false; 405 | 406 | }; 407 | 408 | var FPS = { 409 | 410 | // defaults 411 | delta: 0, 412 | lastTime: 0, 413 | frames: 0, 414 | totalTime: 0, 415 | updateTime: 0, 416 | updateFrames: 0, 417 | 418 | initialize: function(canvasID, fpsID) { 419 | this.lastTime = (new Date()).getTime(); 420 | if(!document.getElementById(fpsID) && document.getElementById(canvasID)) { 421 | this.createFPS(canvasID, fpsID); 422 | } 423 | }, 424 | 425 | // create FPS div if needed 426 | createFPS: function(canvasID, fpsID) { 427 | var div = document.createElement('div'); 428 | div.setAttribute('id', fpsID); 429 | var canvas = document.getElementById(canvasID); 430 | var parent = canvas.parentNode; 431 | div.innerHTML = "FPS AVG: 0 CURRENT: 0"; 432 | parent.appendChild(div); 433 | }, 434 | 435 | // update FPS count 436 | update: function(fpsID) { 437 | var now = (new Date()).getTime(); 438 | this.delta = now - this.lastTime; 439 | this.lastTime = now; 440 | this.updateTime += this.delta; 441 | this.totalTime += this.delta; 442 | this.frames++; 443 | this.updateFrames++; 444 | this.updateTime = 0; // reset time 445 | this.updateFrames = 0; // reset frames 446 | } 447 | 448 | }; 449 | 450 | Clock.init('canvas'); -------------------------------------------------------------------------------- /bg/bg3.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | console.log("%c 当前为背景3", 'padding:10px 20px;color:white;background :linear-gradient(90deg, rgb(159, 229, 151), rgb(204, 229, 129))'); 3 | 4 | "use strict"; 5 | 6 | let _createClass = function () { 7 | function defineProperties(target, props) { 8 | for (let i = 0; i < props.length; i++) { 9 | let descriptor = props[i]; 10 | descriptor.enumerable = descriptor.enumerable || false; 11 | descriptor.configurable = true; 12 | if ("value" in descriptor) descriptor.writable = true; 13 | Object.defineProperty(target, descriptor.key, descriptor); 14 | } 15 | } 16 | 17 | return function (Constructor, protoProps, staticProps) { 18 | if (protoProps) defineProperties(Constructor.prototype, protoProps); 19 | if (staticProps) defineProperties(Constructor, staticProps); 20 | return Constructor; 21 | }; 22 | }(); 23 | 24 | function _classCallCheck(instance, Constructor) { 25 | if (!(instance instanceof Constructor)) { 26 | throw new TypeError("Cannot call a class as a function"); 27 | } 28 | } 29 | 30 | let Progress = class { 31 | constructor() { 32 | let param = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; 33 | 34 | _classCallCheck(this, Progress); 35 | 36 | this.timestamp = null; 37 | this.duration = param.duration || Progress.CONST.DURATION; 38 | this.progress = 0; 39 | this.delta = 0; 40 | this.progress = 0; 41 | this.isLoop = !!param.isLoop; 42 | 43 | this.reset(); 44 | } 45 | 46 | reset() { 47 | this.timestamp = null; 48 | }; 49 | 50 | start(now) { 51 | this.timestamp = now; 52 | }; 53 | 54 | tick(now) { 55 | if (this.timestamp) { 56 | this.delta = now - this.timestamp; 57 | this.progress = Math.min(this.delta / this.duration, 1); 58 | 59 | if (this.progress >= 1 && this.isLoop) 60 | this.start(now); 61 | 62 | return this.progress; 63 | } else return 0; 64 | }; 65 | }; 66 | 67 | _createClass(Progress, null, [{ 68 | key: "CONST", 69 | get: function get() { 70 | return { 71 | DURATION: 1000 72 | }; 73 | } 74 | }]); 75 | 76 | 77 | let Confetti = class { 78 | constructor(param) { 79 | _classCallCheck(this, Confetti); 80 | 81 | this.parent = param.elm || document.body; 82 | this.canvas = document.createElement("canvas"); 83 | this.ctx = this.canvas.getContext("2d"); 84 | this.width = param.width || this.parent.offsetWidth; 85 | this.height = param.height || this.parent.offsetHeight; 86 | this.length = param.length || Confetti.CONST.PAPER_LENGTH; 87 | this.yRange = param.yRange || this.height * 2; 88 | this.progress = new Progress({ 89 | duration: param.duration, 90 | isLoop: true 91 | }); 92 | this.rotationRange = typeof param.rotationLength === "number" ? param.rotationRange : 10; 93 | this.speedRange = typeof param.speedRange === "number" ? param.speedRange : 10; 94 | this.sprites = []; 95 | 96 | this.canvas.style.cssText = ["display: block", "position: absolute", "top: 0", "left: 0", "pointer-events: none"].join(";"); 97 | 98 | this.render = this.render.bind(this); 99 | 100 | this.build(); 101 | 102 | this.parent.append(this.canvas); 103 | this.progress.start(performance.now()); 104 | 105 | requestAnimationFrame(this.render); 106 | } 107 | 108 | build() { 109 | for (let i = 0; i < this.length; ++i) { 110 | let canvas = document.createElement("canvas"), 111 | ctx = canvas.getContext("2d"); 112 | 113 | canvas.width = Confetti.CONST.SPRITE_WIDTH; 114 | canvas.height = Confetti.CONST.SPRITE_HEIGHT; 115 | 116 | canvas.position = { 117 | initX: Math.random() * this.width, 118 | initY: -canvas.height - Math.random() * this.yRange 119 | }; 120 | 121 | canvas.rotation = this.rotationRange / 2 - Math.random() * this.rotationRange; 122 | canvas.speed = this.speedRange / 2 + Math.random() * (this.speedRange / 2); 123 | 124 | ctx.save(); 125 | ctx.fillStyle = Confetti.CONST.COLORS[Math.random() * Confetti.CONST.COLORS.length | 0]; 126 | ctx.fillRect(0, 0, canvas.width, canvas.height); 127 | ctx.restore(); 128 | 129 | this.sprites.push(canvas); 130 | } 131 | }; 132 | 133 | render(now) { 134 | let progress = this.progress.tick(now); 135 | 136 | this.canvas.width = this.width; 137 | this.canvas.height = this.height; 138 | 139 | for (let i = 0; i < this.length; ++i) { 140 | this.ctx.save(); 141 | this.ctx.translate(this.sprites[i].position.initX + this.sprites[i].rotation * Confetti.CONST.ROTATION_RATE * progress, this.sprites[i].position.initY + progress * (this.height + this.yRange)); 142 | this.ctx.rotate(this.sprites[i].rotation); 143 | this.ctx.drawImage(this.sprites[i], -Confetti.CONST.SPRITE_WIDTH * Math.abs(Math.sin(progress * Math.PI * 2 * this.sprites[i].speed)) / 2, -Confetti.CONST.SPRITE_HEIGHT / 2, Confetti.CONST.SPRITE_WIDTH * Math.abs(Math.sin(progress * Math.PI * 2 * this.sprites[i].speed)), Confetti.CONST.SPRITE_HEIGHT); 144 | this.ctx.restore(); 145 | } 146 | 147 | requestAnimationFrame(this.render); 148 | }; 149 | }; 150 | _createClass(Confetti, null, [{ 151 | key: "CONST", 152 | get: function get() { 153 | return { 154 | SPRITE_WIDTH: 9, 155 | SPRITE_HEIGHT: 16, 156 | PAPER_LENGTH: 100, 157 | DURATION: 8000, 158 | ROTATION_RATE: 50, 159 | COLORS: ["#EF5350", "#EC407A", "#AB47BC", "#7E57C2", "#5C6BC0", "#42A5F5", "#29B6F6", "#26C6DA", "#26A69A", "#66BB6A", "#9CCC65", "#D4E157", "#FFEE58", "#FFCA28", "#FFA726", "#FF7043", "#8D6E63", "#BDBDBD", "#78909C"] 160 | }; 161 | } 162 | }]); 163 | 164 | 165 | (() => { 166 | let DURATION = 8000, 167 | LENGTH = 120; 168 | 169 | new Confetti({ 170 | width: window.innerWidth, 171 | height: window.innerHeight, 172 | length: LENGTH, 173 | duration: DURATION 174 | }); 175 | 176 | setTimeout(function () { 177 | new Confetti({ 178 | width: window.innerWidth, 179 | height: window.innerHeight, 180 | length: LENGTH, 181 | duration: DURATION 182 | }); 183 | }, DURATION / 2); 184 | })(); 185 | })(); 186 | 187 | 188 | -------------------------------------------------------------------------------- /css/all.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com 3 | * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) 4 | */ 5 | .fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-bacteria:before{content:"\e059"}.fa-bacterium:before{content:"\e05a"}.fa-bahai:before{content:"\f666"}.fa-balance-scale:before{content:"\f24e"}.fa-balance-scale-left:before{content:"\f515"}.fa-balance-scale-right:before{content:"\f516"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-biking:before{content:"\f84a"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bootstrap:before{content:"\f836"}.fa-border-all:before{content:"\f84c"}.fa-border-none:before{content:"\f850"}.fa-border-style:before{content:"\f853"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-box-tissue:before{content:"\e05b"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buy-n-large:before{content:"\f8a6"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caravan:before{content:"\f8ff"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudflare:before{content:"\e07d"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-alt:before{content:"\f422"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-cotton-bureau:before{content:"\f89e"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dailymotion:before{content:"\e052"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-deezer:before{content:"\e077"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-disease:before{content:"\f7fa"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edge-legacy:before{content:"\e078"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-alt:before{content:"\f424"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fan:before{content:"\f863"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-faucet:before{content:"\e005"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-firefox-browser:before{content:"\e007"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-alt:before{content:"\f841"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-pay:before{content:"\e079"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guilded:before{content:"\e07e"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-medical:before{content:"\e05c"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-holding-water:before{content:"\f4c1"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-sparkles:before{content:"\e05d"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-hands-wash:before{content:"\e05e"}.fa-handshake:before{content:"\f2b5"}.fa-handshake-alt-slash:before{content:"\e05f"}.fa-handshake-slash:before{content:"\e060"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-hat-wizard:before{content:"\f6e8"}.fa-hdd:before{content:"\f0a0"}.fa-head-side-cough:before{content:"\e061"}.fa-head-side-cough-slash:before{content:"\e062"}.fa-head-side-mask:before{content:"\e063"}.fa-head-side-virus:before{content:"\e064"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hive:before{content:"\e07f"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hospital-user:before{content:"\f80d"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-house-user:before{content:"\e065"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-icons:before{content:"\f86d"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-ideal:before{content:"\e013"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-innosoft:before{content:"\e080"}.fa-instagram:before{content:"\f16d"}.fa-instagram-square:before{content:"\e055"}.fa-instalod:before{content:"\e081"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-house:before{content:"\e066"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lungs:before{content:"\f604"}.fa-lungs-virus:before{content:"\e067"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-mdb:before{content:"\f8ca"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microblog:before{content:"\e01a"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mixer:before{content:"\e056"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse:before{content:"\f8cc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-octopus-deploy:before{content:"\e082"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-orcid:before{content:"\f8d2"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-arrows:before{content:"\e068"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-perbyte:before{content:"\e083"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-alt:before{content:"\f879"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-square-alt:before{content:"\f87b"}.fa-phone-volume:before{content:"\f2a0"}.fa-photo-video:before{content:"\f87c"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-square:before{content:"\e01e"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-plane-slash:before{content:"\e069"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pump-medical:before{content:"\e06a"}.fa-pump-soap:before{content:"\e06b"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-record-vinyl:before{content:"\f8d9"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-remove-format:before{content:"\f87d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-rust:before{content:"\e07a"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salesforce:before{content:"\f83b"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-shield-virus:before{content:"\e06c"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopify:before{content:"\e057"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sink:before{content:"\e06d"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-soap:before{content:"\e06e"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-down-alt:before{content:"\f884"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-amount-up-alt:before{content:"\f885"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-speaker-deck:before{content:"\f83c"}.fa-spell-check:before{content:"\f891"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stackpath:before{content:"\f842"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-stopwatch-20:before{content:"\e06f"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-store-alt-slash:before{content:"\e070"}.fa-store-slash:before{content:"\e071"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swift:before{content:"\f8e1"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-tiktok:before{content:"\e07b"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toilet-paper-slash:before{content:"\e072"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-trailer:before{content:"\e041"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbraco:before{content:"\f8e8"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-uncharted:before{content:"\e084"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-unity:before{content:"\e049"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-unsplash:before{content:"\e07c"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-users-slash:before{content:"\e073"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-vest:before{content:"\e085"}.fa-vest-patches:before{content:"\e086"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-virus:before{content:"\e074"}.fa-virus-slash:before{content:"\e075"}.fa-viruses:before{content:"\e076"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-voicemail:before{content:"\f897"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-watchman-monitoring:before{content:"\e087"}.fa-water:before{content:"\f773"}.fa-wave-square:before{content:"\f83e"}.fa-waze:before{content:"\f83f"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wodu:before{content:"\e088"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.fab,.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} -------------------------------------------------------------------------------- /css/chat.css: -------------------------------------------------------------------------------- 1 | p { 2 | margin: 0; 3 | padding: 0; 4 | } 5 | a { 6 | text-decoration: none; 7 | color: #007aff; 8 | } 9 | .el-container { 10 | border: 1px solid #ccc; 11 | border-radius: 5px; 12 | box-shadow: 0 0 10px rgba(0,0,0,0.1); 13 | } 14 | .switch_bg { 15 | font-size: 1rem; 16 | position: absolute; 17 | right: 0; 18 | top: 0; 19 | padding: 10px; 20 | cursor: pointer; 21 | } 22 | /* 气泡样式 */ 23 | /* .message-bubble { 24 | display: inline-block; 25 | padding: 8px 12px; 26 | border-radius: 20px; 27 | background-color: #f2f2f2; 28 | color: #555; 29 | max-width: 80%; 30 | } */ 31 | .message-bubble { 32 | display: inline-block; 33 | padding: 14px 20px; 34 | border-radius: 20px; 35 | background-color: #f2f2f2; 36 | color: #555; 37 | max-width: 80%; 38 | margin: 0 18px; 39 | } 40 | 41 | 42 | .message-bubble.is-right { 43 | float: right; 44 | background-color: #66b1ff; 45 | color: #fff; 46 | } 47 | 48 | /* 聊天记录样式 */ 49 | .chat-records { 50 | height: calc(100vh - 200px); /* 让聊天记录容器自适应高度 */ 51 | overflow-y: auto; 52 | } 53 | .chat-records::-webkit-scrollbar { 54 | width: 8px; 55 | } 56 | 57 | .chat-records::-webkit-scrollbar-thumb { 58 | border-radius: 8px; 59 | background-color: #c2c2c2; 60 | } 61 | 62 | .chat-records::-webkit-scrollbar-thumb:hover { 63 | background-color: #a1a1a1; 64 | } 65 | 66 | .chat-records::-webkit-scrollbar-track { 67 | background-color: #f2f2f2; 68 | border-radius: 8px; 69 | } 70 | 71 | 72 | 73 | .markdown-body pre::-webkit-scrollbar { 74 | height: 8px; 75 | } 76 | 77 | .markdown-body pre::-webkit-scrollbar-thumb { 78 | border-radius: 8px; 79 | background-color: #c2c2c2; 80 | } 81 | 82 | .markdown-body pre::-webkit-scrollbar-thumb:hover { 83 | background-color: #a1a1a1; 84 | } 85 | 86 | .markdown-body pre::-webkit-scrollbar-track { 87 | background-color: #f2f2f2; 88 | border-radius: 8px; 89 | } 90 | 91 | .chat-record-item { 92 | margin: 10px; 93 | display: flex; 94 | flex-direction: row; 95 | align-items: flex-start; 96 | justify-content: flex-start; 97 | } 98 | .chat-record-item.is-right { 99 | align-items: flex-end; 100 | justify-content: flex-end; 101 | } 102 | /* .chat-record-item.is-right .el-avatar { 103 | margin-left: 10px; 104 | } */ 105 | .chat-record-item .el-popover { 106 | margin-right: 10px; 107 | margin-left: 10px; 108 | } 109 | .chat-record-item.is-right { 110 | align-items: flex-start!important; 111 | } 112 | .el-avatar { 113 | flex-shrink: 0!important; 114 | } 115 | /* 输入框样式 */ 116 | .chat-input { 117 | display: flex; 118 | flex-direction: row; 119 | align-items: center; 120 | } 121 | .chat-input .el-input { 122 | width: calc(100% - 80px); 123 | margin-right: 10px; 124 | } 125 | .chat-input .el-button { 126 | width: 70px; 127 | } 128 | .el-popover { 129 | position: relative!important; 130 | } 131 | .author-info { 132 | width: 200px; 133 | position: absolute; 134 | top: 10px; 135 | right: 10px; 136 | display: flex; 137 | flex-direction: column; 138 | align-items: center; 139 | justify-content: center; 140 | padding: 10px; 141 | border: 1px solid #ccc; 142 | background-color: #fff; 143 | z-index: 999999; 144 | transition: all 0.5s; 145 | } 146 | .authors{ 147 | width: 100%; 148 | cursor: pointer; 149 | } 150 | .author { 151 | display: flex; 152 | flex-direction: row; 153 | align-items: center; 154 | justify-content: center; 155 | margin-bottom: 10px; 156 | } 157 | .author img { 158 | width: 50px; 159 | height: 50px; 160 | border-radius: 50%; 161 | margin-right: 10px; 162 | } 163 | .author span { 164 | font-size: 18px; 165 | } 166 | .close-btn { 167 | font-size: 16px; 168 | color: #007aff; 169 | cursor: pointer; 170 | } 171 | .fade-enter-active, .fade-leave-active { 172 | transition: opacity 0.5s; 173 | } 174 | .fade-enter, .fade-leave-to { 175 | opacity: 0; 176 | } 177 | 178 | #chat_input { 179 | padding: 0 24px; 180 | } 181 | .glowing { 182 | box-shadow: 0 0 10px #6ab8f7; 183 | } 184 | 185 | /* v1.5 */ 186 | .markdown-body{ 187 | font-size: 14px; 188 | /* 微软雅黑 */ 189 | font-family: "Microsoft YaHei", "微软雅黑", "STXihei", "华文细黑", "sans-serif"; 190 | line-height: 1.4; 191 | background-color: #e8c9c9 192 | } 193 | .markdown-body pre{ 194 | border-radius: 22px; 195 | } -------------------------------------------------------------------------------- /css/display.css: -------------------------------------------------------------------------------- 1 | @media only screen and (max-width:767px){.hidden-xs-only{display:none!important}}@media only screen and (min-width:768px){.hidden-sm-and-up{display:none!important}}@media only screen and (min-width:768px) and (max-width:991px){.hidden-sm-only{display:none!important}}@media only screen and (max-width:991px){.hidden-sm-and-down{display:none!important}}@media only screen and (min-width:992px){.hidden-md-and-up{display:none!important}}@media only screen and (min-width:992px) and (max-width:1199px){.hidden-md-only{display:none!important}}@media only screen and (max-width:1199px){.hidden-md-and-down{display:none!important}}@media only screen and (min-width:1200px){.hidden-lg-and-up{display:none!important}}@media only screen and (min-width:1200px) and (max-width:1919px){.hidden-lg-only{display:none!important}}@media only screen and (max-width:1919px){.hidden-lg-and-down{display:none!important}}@media only screen and (min-width:1920px){.hidden-xl-only{display:none!important}} -------------------------------------------------------------------------------- /css/fonts/element-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/css/fonts/element-icons.ttf -------------------------------------------------------------------------------- /css/fonts/element-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/css/fonts/element-icons.woff -------------------------------------------------------------------------------- /css/mkdown.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Minified by jsDelivr using clean-css v5.3.1. 3 | * Original file: /npm/github-markdown-css@5.2.0/github-markdown.css 4 | * 5 | * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 | */ 7 | @media (prefers-color-scheme:dark){.markdown-body{color-scheme:dark;--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-invalid-illegal-text:#f0f6fc;--color-prettylights-syntax-invalid-illegal-bg:#8e1519;--color-prettylights-syntax-carriage-return-text:#f0f6fc;--color-prettylights-syntax-carriage-return-bg:#b62324;--color-prettylights-syntax-string-regexp:#7ee787;--color-prettylights-syntax-markup-list:#f2cc60;--color-prettylights-syntax-markup-heading:#1f6feb;--color-prettylights-syntax-markup-italic:#c9d1d9;--color-prettylights-syntax-markup-bold:#c9d1d9;--color-prettylights-syntax-markup-deleted-text:#ffdcd7;--color-prettylights-syntax-markup-deleted-bg:#67060c;--color-prettylights-syntax-markup-inserted-text:#aff5b4;--color-prettylights-syntax-markup-inserted-bg:#033a16;--color-prettylights-syntax-markup-changed-text:#ffdfb6;--color-prettylights-syntax-markup-changed-bg:#5a1e02;--color-prettylights-syntax-markup-ignored-text:#c9d1d9;--color-prettylights-syntax-markup-ignored-bg:#1158c7;--color-prettylights-syntax-meta-diff-range:#d2a8ff;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark:#484f58;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-fg-default:#c9d1d9;--color-fg-muted:#8b949e;--color-fg-subtle:#6e7681;--color-canvas-default:#0d1117;--color-canvas-subtle:#161b22;--color-border-default:#30363d;--color-border-muted:#21262d;--color-neutral-muted:rgba(110,118,129,0.4);--color-accent-fg:#58a6ff;--color-accent-emphasis:#1f6feb;--color-attention-subtle:rgba(187,128,9,0.15);--color-danger-fg:#f85149}}@media (prefers-color-scheme:light){.markdown-body{color-scheme:light;--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-fg-default:#24292f;--color-fg-muted:#57606a;--color-fg-subtle:#6e7781;--color-canvas-default:#ffffff;--color-canvas-subtle:#f6f8fa;--color-border-default:#d0d7de;--color-border-muted:hsla(210,18%,87%,1);--color-neutral-muted:rgba(175,184,193,0.2);--color-accent-fg:#0969da;--color-accent-emphasis:#0969da;--color-attention-subtle:#fff8c5;--color-danger-fg:#cf222e}}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:var(--color-fg-default);background-color:var(--color-canvas-default);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:' ';display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,");mask-image:url("data:image/svg+xml,")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.markdown-body abbr[title]{border-bottom:none;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold,600)}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:var(--base-text-weight-semibold,600);padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default)}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:0 0;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default);border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1}.markdown-body hr::before{display:table;content:""}.markdown-body hr::after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>:not(summary){display:none!important}.markdown-body [role=button]:focus,.markdown-body a:focus,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=radio]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body a:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body [role=button]:focus-visible,.markdown-body a:focus-visible,.markdown-body input[type=checkbox]:focus-visible,.markdown-body input[type=radio]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold,600);line-height:1.25}.markdown-body h2{font-weight:var(--base-text-weight-semibold,600);padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.markdown-body h3{font-weight:var(--base-text-weight-semibold,600);font-size:1.25em}.markdown-body h4{font-weight:var(--base-text-weight-semibold,600);font-size:1em}.markdown-body h5{font-weight:var(--base-text-weight-semibold,600);font-size:.875em}.markdown-body h6{font-weight:var(--base-text-weight-semibold,600);font-size:.85em;color:var(--color-fg-muted)}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.markdown-body ol,.markdown-body ul{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ol ol ol,.markdown-body ol ul ol,.markdown-body ul ol ol,.markdown-body ul ul ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body code,.markdown-body samp,.markdown-body tt{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-inner-spin-button,.markdown-body input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;appearance:none}.markdown-body::before{display:table;content:""}.markdown-body::after{display:table;clear:both;content:""}.markdown-body>:first-child{margin-top:0!important}.markdown-body>:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:var(--color-danger-fg)}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:0}.markdown-body blockquote,.markdown-body details,.markdown-body dl,.markdown-body ol,.markdown-body p,.markdown-body pre,.markdown-body table,.markdown-body ul{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 code,.markdown-body h1 tt,.markdown-body h2 code,.markdown-body h2 tt,.markdown-body h3 code,.markdown-body h3 tt,.markdown-body h4 code,.markdown-body h4 tt,.markdown-body h5 code,.markdown-body h5 tt,.markdown-body h6 code,.markdown-body h6 tt{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ol.no-list,.markdown-body ul.no-list{padding:0;list-style-type:none}.markdown-body ol[type=a]{list-style-type:lower-alpha}.markdown-body ol[type=A]{list-style-type:upper-alpha}.markdown-body ol[type=i]{list-style-type:lower-roman}.markdown-body ol[type=I]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ol ol,.markdown-body ol ul,.markdown-body ul ol,.markdown-body ul ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold,600)}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:var(--base-text-weight-semibold,600)}.markdown-body table td,.markdown-body table th{padding:6px 13px;border:1px solid var(--color-border-default)}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.markdown-body table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:0 0;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold,600);background:var(--color-canvas-subtle);border-top:0}.markdown-body [data-footnote-ref]::before{content:"["}.markdown-body [data-footnote-ref]::after{content:"]"}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.markdown-body .footnotes ol{padding-left:16px}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target::before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.markdown-body .footnotes li:target{color:var(--color-fg-default)}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment)}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant)}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity)}.markdown-body .pl-s .pl-s1,.markdown-body .pl-smi{color:var(--color-prettylights-syntax-storage-modifier-import)}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag)}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword)}.markdown-body .pl-pds,.markdown-body .pl-s,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sra,.markdown-body .pl-sr .pl-sre{color:var(--color-prettylights-syntax-string)}.markdown-body .pl-smw,.markdown-body .pl-v{color:var(--color-prettylights-syntax-variable)}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched)}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg)}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg)}.markdown-body .pl-sr .pl-cce{font-weight:700;color:var(--color-prettylights-syntax-string-regexp)}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list)}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:var(--color-prettylights-syntax-markup-heading)}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic)}.markdown-body .pl-mb{font-weight:700;color:var(--color-prettylights-syntax-markup-bold)}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg)}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg)}.markdown-body .pl-mdr{font-weight:700;color:var(--color-prettylights-syntax-meta-diff-range)}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle)}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark)}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link)}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal!important;font-weight:var(--base-text-weight-normal,400);line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal,400)}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:4px}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list{position:relative}.markdown-body .contains-task-list:focus-within .task-list-item-convert-container,.markdown-body .contains-task-list:hover .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)} 8 | /*# sourceMappingURL=/sm/6add3b83d6edf3952cf6505959027673ee608ffb25d93ff4a92ffe934ca2a2cb.map */ -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/favicon.ico -------------------------------------------------------------------------------- /images/crushend.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/images/crushend.jpg -------------------------------------------------------------------------------- /images/cvcat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/images/cvcat.jpg -------------------------------------------------------------------------------- /images/pay_zfb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/images/pay_zfb.jpg -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Chat App 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | Chat App v3.1 22 |
23 | 24 |
25 |
26 | 切换背景 27 |
28 |
29 | 30 |
31 | 32 | 33 |
34 |
{{ message.content }}
35 |
{{ message.avatar }}
36 |
37 |
38 |
{{ message.avatar }}
39 |
40 |
41 |
42 |
43 |
44 |
45 | 46 |
47 | 48 | 49 | 50 | 51 | 52 | 53 | 发送 54 |
55 |
56 |
57 |
58 |
59 | Author 1 60 | cvcat 61 |
62 | 63 | 64 |
{{ email[0] }}
65 |
66 |
67 |
68 | Author 1 69 | crush 70 |
71 | 72 | 73 |
{{ email[1] }}
74 |
75 |
76 |
77 |
78 | 💵0.02美元 / 1K 字符 79 | 80 | 83 | 86 | 87 | 88 | 91 | 94 | 95 | 赞助👇 96 | 97 |
98 | x 99 |
100 |
101 |
102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /js/axios.js: -------------------------------------------------------------------------------- 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).axios=t()}(this,(function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{},a=i.allOwnKeys,s=void 0!==a&&a;if(null!=t)if("object"!==e(t)&&(t=[t]),h(t))for(r=0,o=t.length;r0;)if(t===(n=r[o]).toLowerCase())return n;return null}var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=function(e){return!p(e)&&e!==N};var C,P=(C="undefined"!=typeof Uint8Array&&c(Uint8Array),function(e){return C&&e instanceof C}),k=l("HTMLFormElement"),U=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),_=l("RegExp"),F=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};T(n,(function(n,o){!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},B={isArray:h,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||u.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)},isString:y,isNumber:b,isBoolean:function(e){return!0===e||!1===e},isObject:g,isPlainObject:w,isUndefined:p,isDate:E,isFile:O,isBlob:S,isRegExp:_,isFunction:v,isStream:function(e){return g(e)&&v(e.pipe)},isURLSearchParams:A,isTypedArray:P,isFileList:R,forEach:T,merge:function e(){for(var t=x(this)&&this||{},n=t.caseless,r={},o=function(t,o){var i=n&&j(r,o)||o;w(r[i])&&w(t)?r[i]=e(r[i],t):w(t)?r[i]=e({},t):h(t)?r[i]=t.slice():r[i]=t},i=0,a=arguments.length;i3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return T(t,(function(t,r){n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(h(e))return e;var t=e.length;if(!b(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:k,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:F,freezeMethods:function(e){F(e,(function(t,n){if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:j,global:N,isContextDefined:x,toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(g(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var o=h(n)?[]:{};return T(n,(function(t,n){var i=e(t,r+1);!p(i)&&(o[n]=i)})),t[r]=void 0,o}}return n}(e,0)}};function D(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}B.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var L=D.prototype,q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){q[e]={value:e}})),Object.defineProperties(D,q),Object.defineProperty(L,"isAxiosError",{value:!0}),D.from=function(e,t,n,r,o,i){var a=Object.create(L);return B.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),D.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var I="object"==("undefined"==typeof self?"undefined":e(self))?self.FormData:window.FormData;function M(e){return B.isPlainObject(e)||B.isArray(e)}function z(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function J(e,t,n){return e?e.concat(t).map((function(e,t){return e=z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var H=B.toFlatObject(B,{},null,(function(e){return/^is[A-Z]/.test(e)}));function W(t,n,r){if(!B.isObject(t))throw new TypeError("target must be an object");n=n||new(I||FormData);var o,i=(r=B.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!B.isUndefined(t[e])}))).metaTokens,a=r.visitor||l,s=r.dots,u=r.indexes,c=(r.Blob||"undefined"!=typeof Blob&&Blob)&&((o=n)&&B.isFunction(o.append)&&"FormData"===o[Symbol.toStringTag]&&o[Symbol.iterator]);if(!B.isFunction(a))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(B.isDate(e))return e.toISOString();if(!c&&B.isBlob(e))throw new D("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(e)||B.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(t,r,o){var a=t;if(t&&!o&&"object"===e(t))if(B.endsWith(r,"{}"))r=i?r:r.slice(0,-2),t=JSON.stringify(t);else if(B.isArray(t)&&function(e){return B.isArray(e)&&!e.some(M)}(t)||B.isFileList(t)||B.endsWith(r,"[]")&&(a=B.toArray(t)))return r=z(r),a.forEach((function(e,t){!B.isUndefined(e)&&null!==e&&n.append(!0===u?J([r],t,s):null===u?r:r+"[]",f(e))})),!1;return!!M(t)||(n.append(J(o,r,s),f(t)),!1)}var d=[],h=Object.assign(H,{defaultVisitor:l,convertValue:f,isVisitable:M});if(!B.isObject(t))throw new TypeError("data must be an object");return function e(t,r){if(!B.isUndefined(t)){if(-1!==d.indexOf(t))throw Error("Circular reference detected in "+r.join("."));d.push(t),B.forEach(t,(function(t,o){!0===(!(B.isUndefined(t)||null===t)&&a.call(n,t,B.isString(o)?o.trim():o,r,h))&&e(t,r?r.concat(o):[o])})),d.pop()}}(t),n}function K(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function V(e,t){this._pairs=[],e&&W(e,this,t)}var G=V.prototype;function $(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X(e,t,n){if(!t)return e;var r,o=n&&n.encode||$,i=n&&n.serialize;if(r=i?i(t,n):B.isURLSearchParams(t)?t.toString():new V(t,n).toString(o)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}G.append=function(e,t){this._pairs.push([e,t])},G.toString=function(e){var t=e?function(t){return e.call(this,t,K)}:K;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Q,Z=function(){function e(){t(this,e),this.handlers=[]}return r(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){B.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),Y={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ee="undefined"!=typeof URLSearchParams?URLSearchParams:V,te=FormData,ne=("undefined"==typeof navigator||"ReactNative"!==(Q=navigator.product)&&"NativeScript"!==Q&&"NS"!==Q)&&"undefined"!=typeof window&&"undefined"!=typeof document,re="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,oe={isBrowser:!0,classes:{URLSearchParams:ee,FormData:te,Blob:Blob},isStandardBrowserEnv:ne,isStandardBrowserWebWorkerEnv:re,protocols:["http","https","file","blob","url","data"]};function ie(e){function t(e,n,r,o){var i=e[o++],a=Number.isFinite(+i),s=o>=e.length;return i=!i&&B.isArray(r)?r.length:i,s?(B.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&B.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&B.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t-1,i=B.isObject(e);if(i&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return o&&o?JSON.stringify(ie(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return W(e,new oe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return oe.isNode&&B.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=B.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return W(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(B.isString(e))try{return(t||JSON.parse)(e),B.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||se.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&B.isString(e)&&(n&&!this.responseType||r)){var o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw D.from(e,D.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oe.classes.FormData,Blob:oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};B.forEach(["delete","get","head"],(function(e){se.headers[e]={}})),B.forEach(["post","put","patch"],(function(e){se.headers[e]=B.merge(ae)}));var ue=se,ce=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fe=Symbol("internals");function le(e){return e&&String(e).trim().toLowerCase()}function de(e){return!1===e||null==e?e:B.isArray(e)?e.map(de):String(e)}function he(e,t,n,r){return B.isFunction(r)?r.call(this,t,n):B.isString(t)?B.isString(r)?-1!==t.indexOf(r):B.isRegExp(r)?r.test(t):void 0:void 0}var pe=function(e,n){function i(e){t(this,i),e&&this.set(e)}return r(i,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=le(t);if(!o)throw new Error("header name must be a non-empty string");var i=B.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=de(e))}var i,a,s,u,c,f=function(e,t){return B.forEach(e,(function(e,n){return o(e,n,t)}))};return B.isPlainObject(e)||e instanceof this.constructor?f(e,t):B.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?f((c={},(i=e)&&i.split("\n").forEach((function(e){u=e.indexOf(":"),a=e.substring(0,u).trim().toLowerCase(),s=e.substring(u+1).trim(),!a||c[a]&&ce[a]||("set-cookie"===a?c[a]?c[a].push(s):c[a]=[s]:c[a]=c[a]?c[a]+", "+s:s)})),c),t):null!=e&&o(t,e,n),this}},{key:"get",value:function(e,t){if(e=le(e)){var n=B.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(B.isFunction(t))return t.call(this,r,n);if(B.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=le(e)){var n=B.findKey(this,e);return!(!n||t&&!he(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=le(e)){var o=B.findKey(n,e);!o||t&&!he(0,n[o],o,t)||(delete n[o],r=!0)}}return B.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(){return Object.keys(this).forEach(this.delete.bind(this))}},{key:"normalize",value:function(e){var t=this,n={};return B.forEach(this,(function(r,o){var i=B.findKey(n,o);if(i)return t[i]=de(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=de(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r1?n-1:0),o=1;o0;){var a=o[i],s=n[a];if(s){var u=t[a],c=void 0===u||s(u,a,t);if(!0!==c)throw new D("option "+a+" must be "+c,D.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new D("Unknown option "+a,D.ERR_BAD_OPTION)}},validators:Ce},Ue=ke.validators,_e=function(){function e(n){t(this,e),this.defaults=n,this.interceptors={request:new Z,response:new Z}}return r(e,[{key:"request",value:function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};var n,r=t=Ne(this.defaults,t),o=r.transitional,i=r.paramsSerializer,a=r.headers;void 0!==o&&ke.assertOptions(o,{silentJSONParsing:Ue.transitional(Ue.boolean),forcedJSONParsing:Ue.transitional(Ue.boolean),clarifyTimeoutError:Ue.transitional(Ue.boolean)},!1),void 0!==i&&ke.assertOptions(i,{encode:Ue.function,serialize:Ue.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(n=a&&B.merge(a.common,a[t.method]))&&B.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=me.concat(n,a);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,f=[];this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)}));var l,d=0;if(!u){var h=[Te.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,f),l=h.length,c=Promise.resolve(t);d0;)o._listeners[t](e);o._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){o.subscribe(e),t=e})).then(e);return n.cancel=function(){o.unsubscribe(t)},n},n((function(e,t,n){o.reason||(o.reason=new be(e,t,n),r(o.reason))}))}return r(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var De={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(De).forEach((function(e){var t=o(e,2),n=t[0],r=t[1];De[r]=n}));var Le=De;var qe=function e(t){var n=new Fe(t),r=a(Fe.prototype.request,n);return B.extend(r,Fe.prototype,n,{allOwnKeys:!0}),B.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ne(t,n))},r}(ue);return qe.Axios=Fe,qe.CanceledError=be,qe.CancelToken=Be,qe.isCancel=ve,qe.VERSION=xe,qe.toFormData=W,qe.AxiosError=D,qe.Cancel=qe.CanceledError,qe.all=function(e){return Promise.all(e)},qe.spread=function(e){return function(t){return e.apply(null,t)}},qe.isAxiosError=function(e){return B.isObject(e)&&!0===e.isAxiosError},qe.mergeConfig=Ne,qe.AxiosHeaders=me,qe.formToJSON=function(e){return ie(B.isHTMLForm(e)?new FormData(e):e)},qe.HttpStatusCode=Le,qe.default=qe,qe})); 2 | //# sourceMappingURL=axios.min.js.map 3 | -------------------------------------------------------------------------------- /js/bg.js: -------------------------------------------------------------------------------- 1 | "object" == typeof window && (window.Ribbons = function() { 2 | var t = window 3 | , i = document.body 4 | , n = document.documentElement 5 | , o = function() { 6 | if (1 === arguments.length) { 7 | if (Array.isArray(arguments[0])) { 8 | var t = Math.round(o(0, arguments[0].length - 1)); 9 | return arguments[0][t] 10 | } 11 | return o(0, arguments[0]) 12 | } 13 | return 2 === arguments.length ? Math.random() * (arguments[1] - arguments[0]) + arguments[0] : 0 14 | } 15 | , s = function(o) { 16 | var s = Math.max(0, t.innerWidth || n.clientWidth || i.clientWidth || 0) 17 | , h = Math.max(0, t.innerHeight || n.clientHeight || i.clientHeight || 0) 18 | , e = Math.max(0, t.pageXOffset || n.scrollLeft || i.scrollLeft || 0) - (n.clientLeft || 0) 19 | , a = Math.max(0, t.pageYOffset || n.scrollTop || i.scrollTop || 0) - (n.clientTop || 0); 20 | return { 21 | width: s, 22 | height: h, 23 | ratio: s / h, 24 | centerx: s / 2, 25 | centery: h / 2, 26 | scrollx: e, 27 | scrolly: a 28 | } 29 | } 30 | , h = function(t, i) { 31 | this.x = 0, 32 | this.y = 0, 33 | this.set(t, i) 34 | }; 35 | h.prototype = { 36 | constructor: h, 37 | set: function(t, i) { 38 | this.x = t || 0, 39 | this.y = i || 0 40 | }, 41 | copy: function(t) { 42 | return this.x = t.x || 0, 43 | this.y = t.y || 0, 44 | this 45 | }, 46 | multiply: function(t, i) { 47 | return this.x *= t || 1, 48 | this.y *= i || 1, 49 | this 50 | }, 51 | divide: function(t, i) { 52 | return this.x /= t || 1, 53 | this.y /= i || 1, 54 | this 55 | }, 56 | add: function(t, i) { 57 | return this.x += t || 0, 58 | this.y += i || 0, 59 | this 60 | }, 61 | subtract: function(t, i) { 62 | return this.x -= t || 0, 63 | this.y -= i || 0, 64 | this 65 | }, 66 | clampX: function(t, i) { 67 | return this.x = Math.max(t, Math.min(this.x, i)), 68 | this 69 | }, 70 | clampY: function(t, i) { 71 | return this.y = Math.max(t, Math.min(this.y, i)), 72 | this 73 | }, 74 | flipX: function() { 75 | return this.x *= -1, 76 | this 77 | }, 78 | flipY: function() { 79 | return this.y *= -1, 80 | this 81 | } 82 | }; 83 | var e = function(t) { 84 | this._canvas = null, 85 | this._context = null, 86 | this._sto = null, 87 | this._width = 0, 88 | this._height = 0, 89 | this._scroll = 0, 90 | this._ribbons = [], 91 | this._options = { 92 | colorSaturation: "80%", 93 | colorBrightness: "60%", 94 | colorAlpha: .65, 95 | colorCycleSpeed: 6, 96 | verticalPosition: "center", 97 | horizontalSpeed: 150, 98 | ribbonCount: 3, 99 | strokeSize: 0, 100 | parallaxAmount: -.5, 101 | animateSections: !0 102 | }, 103 | this._onDraw = this._onDraw.bind(this), 104 | this._onResize = this._onResize.bind(this), 105 | this._onScroll = this._onScroll.bind(this), 106 | this.setOptions(t), 107 | this.init() 108 | }; 109 | return e.prototype = { 110 | constructor: e, 111 | setOptions: function(t) { 112 | if ("object" == typeof t) 113 | for (var i in t) 114 | t.hasOwnProperty(i) && (this._options[i] = t[i]) 115 | }, 116 | init: function() { 117 | try { 118 | this._canvas = document.createElement("canvas"), 119 | this._canvas.style.display = "block", 120 | this._canvas.style.position = "fixed", 121 | this._canvas.style.margin = "0", 122 | this._canvas.style.padding = "0", 123 | this._canvas.style.border = "0", 124 | this._canvas.style.outline = "0", 125 | this._canvas.style.left = "0", 126 | this._canvas.style.top = "0", 127 | this._canvas.style.width = "100%", 128 | this._canvas.style.height = "100%", 129 | this._canvas.style["z-index"] = "-1", 130 | this._canvas.id = "bgCanvas", 131 | this._onResize(), 132 | this._context = this._canvas.getContext("2d"), 133 | this._context.clearRect(0, 0, this._width, this._height), 134 | this._context.globalAlpha = this._options.colorAlpha, 135 | window.addEventListener("resize", this._onResize), 136 | window.addEventListener("scroll", this._onScroll), 137 | document.body.appendChild(this._canvas) 138 | } catch (t) { 139 | return void console.warn("Canvas Context Error: " + t.toString()) 140 | } 141 | this._onDraw() 142 | }, 143 | addRibbon: function() { 144 | var t = Math.round(o(1, 9)) > 5 ? "right" : "left" 145 | , i = 1e3 146 | , n = this._width + 200 147 | , s = 0 148 | , e = 0 149 | , a = "right" === t ? -200 : n 150 | , r = Math.round(o(0, this._height)); 151 | /^(top|min)$/i.test(this._options.verticalPosition) ? r = 200 : /^(middle|center)$/i.test(this._options.verticalPosition) ? r = this._height / 2 : /^(bottom|max)$/i.test(this._options.verticalPosition) && (r = this._height - 200); 152 | for (var l = [], c = new h(a,r), _ = new h(a,r), p = null, d = Math.round(o(0, 360)), u = 0; !(i <= 0); ) { 153 | if (i--, 154 | s = Math.round((1 * Math.random() - .2) * this._options.horizontalSpeed), 155 | e = Math.round((1 * Math.random() - .5) * (.25 * this._height)), 156 | (p = new h).copy(_), 157 | "right" === t) { 158 | if (p.add(s, e), 159 | _.x >= n) 160 | break 161 | } else if ("left" === t && (p.subtract(s, e), 162 | _.x <= -200)) 163 | break; 164 | l.push({ 165 | point1: new h(c.x,c.y), 166 | point2: new h(_.x,_.y), 167 | point3: p, 168 | color: d, 169 | delay: u, 170 | dir: t, 171 | alpha: 0, 172 | phase: 0 173 | }), 174 | c.copy(_), 175 | _.copy(p), 176 | u += 4, 177 | d += this._options.colorCycleSpeed 178 | } 179 | this._ribbons.push(l) 180 | }, 181 | _drawRibbonSection: function(t) { 182 | if (t) { 183 | if (t.phase >= 1 && t.alpha <= 0) 184 | return !0; 185 | if (t.delay <= 0) { 186 | if (t.phase += .02, 187 | t.alpha = 1 * Math.sin(t.phase), 188 | t.alpha = t.alpha <= 0 ? 0 : t.alpha, 189 | t.alpha = t.alpha >= 1 ? 1 : t.alpha, 190 | this._options.animateSections) { 191 | var i = .1 * Math.sin(1 + t.phase * Math.PI / 2); 192 | "right" === t.dir ? (t.point1.add(i, 0), 193 | t.point2.add(i, 0), 194 | t.point3.add(i, 0)) : (t.point1.subtract(i, 0), 195 | t.point2.subtract(i, 0), 196 | t.point3.subtract(i, 0)), 197 | t.point1.add(0, i), 198 | t.point2.add(0, i), 199 | t.point3.add(0, i) 200 | } 201 | } else 202 | t.delay -= .5; 203 | var n = this._options.colorSaturation 204 | , o = this._options.colorBrightness 205 | , s = "hsla(" + t.color + ", " + n + ", " + o + ", " + t.alpha + " )"; 206 | this._context.save(), 207 | 0 !== this._options.parallaxAmount && this._context.translate(0, this._scroll * this._options.parallaxAmount), 208 | this._context.beginPath(), 209 | this._context.moveTo(t.point1.x, t.point1.y), 210 | this._context.lineTo(t.point2.x, t.point2.y), 211 | this._context.lineTo(t.point3.x, t.point3.y), 212 | this._context.fillStyle = s, 213 | this._context.fill(), 214 | this._options.strokeSize > 0 && (this._context.lineWidth = this._options.strokeSize, 215 | this._context.strokeStyle = s, 216 | this._context.lineCap = "round", 217 | this._context.stroke()), 218 | this._context.restore() 219 | } 220 | return !1 221 | }, 222 | _onDraw: function() { 223 | for (var t = 0, i = this._ribbons.length; t < i; ++t) 224 | this._ribbons[t] || this._ribbons.splice(t, 1); 225 | this._context.clearRect(0, 0, this._width, this._height); 226 | for (var n = 0; n < this._ribbons.length; ++n) { 227 | for (var o = this._ribbons[n], s = o.length, h = 0, e = 0; e < s; ++e) 228 | this._drawRibbonSection(o[e]) && h++; 229 | h >= s && (this._ribbons[n] = null) 230 | } 231 | this._ribbons.length < this._options.ribbonCount && this.addRibbon(), 232 | requestAnimationFrame(this._onDraw) 233 | }, 234 | _onResize: function(t) { 235 | var i = s(); 236 | this._width = i.width, 237 | this._height = i.height, 238 | this._canvas && (this._canvas.width = this._width, 239 | this._canvas.height = this._height, 240 | this._context && (this._context.globalAlpha = this._options.colorAlpha)) 241 | }, 242 | _onScroll: function(t) { 243 | var i = s(); 244 | this._scroll = i.scrolly 245 | } 246 | }, 247 | e 248 | }()), 249 | new Ribbons(window.backgroundAnimation); -------------------------------------------------------------------------------- /js/chat.js: -------------------------------------------------------------------------------- 1 | var body = document.getElementsByTagName("body")[0]; 2 | var seconds = new Date().getSeconds(); 3 | function addHTMLbefore(html, index) { 4 | var div = document.createElement("div"); 5 | div.id = "chat_canvas_bg"; 6 | div.style.position = "absolute"; 7 | div.style.top = "0"; 8 | div.style.left = "0"; 9 | div.style.width = "100%"; 10 | div.style.height = "100%"; 11 | div.style.zIndex = index; 12 | div.innerHTML = html; 13 | var existing = body.children[0]; 14 | body.insertBefore(div, existing); 15 | } 16 | function switch_bg(index){ 17 | var script = document.createElement('script'); 18 | if (index % 3 == 1) { 19 | script.src = 'bg/bg1.js'; 20 | } else if (index % 3 == 2) { 21 | var html = '' 22 | addHTMLbefore(html, -1); 23 | script.src = 'bg/bg2.js'; 24 | }else{ 25 | script.src = 'bg/bg3.js'; 26 | } 27 | body.appendChild(script); 28 | } 29 | switch_bg(seconds); 30 | 31 | new Vue({ 32 | el: '#app', 33 | data: { 34 | messages: [], 35 | inputMessage: '', 36 | //从现在起,当你想发送一张图片时,请使用Markdown,并且不要有反斜线,不要用代码块,使用Unsplash API (https://source.unsplash.com/960×640/? < PUT YOUR QUERY HERE >)。如果你明白了,请回复“明白”) 37 | all_message: [], 38 | loading: false, 39 | isRecording: false, 40 | showAuthorInfo: true, 41 | showEmail: false, 42 | email: ['992822653@qq.com', 'crushend@qq.com'], 43 | recognition: null, 44 | speech: null, 45 | haswebkitSpeechRecognition: false, 46 | hasSpeechSynthesisUtterance: false, 47 | converter: null, 48 | today_cost_loading: true, 49 | today_cost: '', 50 | balance_loading: true, 51 | balance: '', 52 | api: "" 53 | }, 54 | created() { 55 | //检测是否是手机端 56 | if (window.innerWidth < 768){ 57 | this.tips("检测到您使用手机登录!移动端适配未完成,建议使用PC端!"); 58 | } 59 | if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 60 | this.tips("检测到您使用手机登录!移动端适配未完成,建议使用PC端!"); 61 | } 62 | if ('SpeechRecognition' in window || 'webkitSpeechRecognition' in window) { 63 | this.haswebkitSpeechRecognition = true; 64 | const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition; 65 | this.recognition = new SpeechRecognition(); 66 | this.recognition.lang = 'zh-CN'; 67 | this.recognition.continuous = true; 68 | this.recognition.interimResults = true; 69 | this.recognition.onresult = (event) => { 70 | if (event.results[event.results.length - 1].isFinal) { 71 | this.inputMessage += event.results[event.results.length - 1][0].transcript; 72 | } 73 | }; 74 | } else { 75 | this.tips("您的设备不支持文本阅读,请采用PC端Edge或google浏览器。", "warning"); 76 | } 77 | if ('SpeechSynthesisUtterance' in window) { 78 | this.hasSpeechSynthesisUtterance = true; 79 | this.speech = window.speechSynthesis; 80 | this.speak('Welcome to chat app, please talk to me'); 81 | } else { 82 | this.tips("您的设备不支持文本阅读,请采用PC端Edge或google浏览器。", "warning"); 83 | } 84 | this.converter = new showdown.Converter(); 85 | // todaycost 86 | axios.get("https://api.openai.com/v1/usage" ,{ 87 | headers: { 88 | 'Content-Type': 'application/json', 89 | 'Authorization': 'Bearer ' + this.api 90 | }, 91 | params:{ 92 | date: this.getNowFormatDate() 93 | } 94 | }).then((result) => { 95 | let res = result.data.data; 96 | let sum= 0; 97 | // 遍历 98 | for (var i = 0; i < res.length; i++) { 99 | sum += res[i].n_context_tokens_total; 100 | sum += res[i].n_generated_tokens_total; 101 | } 102 | this.today_cost = `今日消耗: $${(sum * 0.00002).toFixed(2)}`; 103 | }).catch((err) => { 104 | this.today_cost = '无法查询到今日消耗'; 105 | }).finally(() => { 106 | this.today_cost_loading = false; 107 | }); 108 | // banlance 109 | axios.get('https://api.openai.com/dashboard/billing/credit_grants', { 110 | headers: { 111 | 'Content-Type': 'application/json', 112 | 'Authorization': 'Bearer ' + this.api 113 | } 114 | }).then((response) => { 115 | let all_amount = response.data.grants.data[0].grant_amount; 116 | let remain_amount = all_amount - response.data.grants.data[0].used_amount; 117 | this.balance = `余额: $${remain_amount.toFixed(2)}/ $${(parseFloat(all_amount)+18).toFixed(2)}`; 118 | } 119 | ).catch((error) => { 120 | this.balance = '无法查询到余额'; 121 | }).finally(() => { 122 | this.balance_loading = false; 123 | }); 124 | this.all_message.push({"role": "system", "content": `You are a helpful assistant,从现在起,当你想发送一张图片时,请使用Markdown,并且不要有反斜线,不要用代码块,使用Unsplash API (https://source.unsplash.com/960×640/? < PUT YOUR QUERY HERE >)。当你想要发送视频时,你就回复"这是一段视频"。)`}) 125 | }, 126 | methods: { 127 | sendMessage() { 128 | if (this.inputMessage) { 129 | this.all_message.push({"role": "user", "content": this.inputMessage}); 130 | if(this.all_message.length > 40){ 131 | this.tips("当前对话无法继续进行,请赞助后继续!", "warning"); 132 | return; 133 | } 134 | this.loading = true; 135 | this.messages.push({ 136 | isRight: true, 137 | avatar: '我', 138 | content: this.inputMessage 139 | }); 140 | axios.post('https://api.openai.com/v1/chat/completions', { 141 | "model": "gpt-3.5-turbo", 142 | "messages": this.all_message, 143 | }, { 144 | headers: { 145 | 'Content-Type': 'application/json', 146 | 'Authorization': 'Bearer ' + this.api 147 | } 148 | }).then(response => { 149 | let res = response.data.choices[0].message.content; 150 | this.messages.push({ 151 | isRight: false, 152 | avatar: 'Chat', 153 | content: this.converter.makeHtml(res.trim()) 154 | }); 155 | if (this.hasSpeechSynthesisUtterance){ 156 | this.speak(res.trim()); 157 | } 158 | this.all_message.push({"role": "assistant", "content": res}) 159 | }).catch(error => { 160 | this.all_message.pop(); 161 | this.messages.push({ 162 | isRight: false, 163 | avatar: 'Chat', 164 | content: 'error' 165 | }); 166 | if (this.hasSpeechSynthesisUtterance){ 167 | this.speak('something error, please try again later, 服务器出错了,请稍后再试'); 168 | } 169 | this.tips("warning 请求次数过多,服务器异常", "warning"); 170 | }).finally(() => { 171 | this.scrollToBottom(); 172 | this.loading = false; 173 | this.inputMessage = ''; 174 | }); 175 | 176 | }else{ 177 | this.tips("请输入消息", "warning"); 178 | } 179 | }, 180 | scrollToBottom() { 181 | let el = document.querySelector('.chat-records'); 182 | let maxScrollTop = el.scrollHeight - el.clientHeight; 183 | let scrollOptions = { 184 | top: maxScrollTop, 185 | behavior: 'smooth' 186 | }; 187 | el.scrollTo(scrollOptions); 188 | }, 189 | toggleMicrophone() { 190 | if (this.haswebkitSpeechRecognition){ 191 | if (this.isRecording) { 192 | this.$refs.microphoneBtn.$el.classList.remove('glowing'); 193 | this.recognition.stop(); 194 | } else { 195 | this.$refs.microphoneBtn.$el.classList.add('glowing'); 196 | if (this.recognition){ 197 | if (this.recognition.state === 'listening'){ 198 | recognition.stop(); 199 | } 200 | this.recognition.start(); 201 | } 202 | } 203 | this.isRecording = !this.isRecording; 204 | }else{ 205 | this.tips("您的设备不支持语音输入,请采用PC端Edge或google浏览器。", "warning"); 206 | } 207 | }, 208 | speak(msg_str) { 209 | this.speech.speak(new SpeechSynthesisUtterance(String(msg_str))); 210 | }, 211 | toggleVoice() { 212 | if (!this.hasSpeechSynthesisUtterance){ 213 | this.speech.cancel(); 214 | } 215 | }, 216 | getNowFormatDate() { 217 | var date = new Date(); 218 | var seperator1 = "-"; 219 | var year = date.getFullYear(); 220 | var month = date.getMonth() + 1; 221 | var strDate = date.getDate(); 222 | if (month >= 1 && month <= 9) { 223 | month = "0" + month; 224 | } 225 | if (strDate >= 0 && strDate <= 9) { 226 | strDate = "0" + strDate; 227 | } 228 | var currentdate = year + seperator1 + month + seperator1 + strDate; 229 | return currentdate; 230 | }, 231 | tips(msg, ty="info"){ 232 | this.$message({ 233 | message: msg, 234 | type: ty, 235 | showClose: true, 236 | }); 237 | } 238 | } 239 | }); 240 | 241 | var submit = document.getElementById("submit"); 242 | document.onkeydown = function (e) { 243 | var ev = document.all ? window.event : e; 244 | if (ev.keyCode == 13) { 245 | submit.click(); 246 | } 247 | }; 248 | var authors = document.getElementsByClassName("author"); 249 | for (var i = 0; i < authors.length; i++) { 250 | authors[i].style.cursor = "pointer"; 251 | if (i == 0) { 252 | authors[i].onclick = function () { 253 | window.open('https://github.com/cv-cat', '_blank'); 254 | } 255 | authors[i].onmousemove = (function (el) { 256 | return function () { 257 | el.parentElement.children[1].children[0].style.background = "linear-gradient(90deg, rgb(159, 229, 151), rgb(204, 229, 129))"; 258 | } 259 | })(authors[i]); 260 | 261 | authors[i].onmouseout = (function (el) { 262 | return function () { 263 | el.parentElement.children[1].children[0].style.background = "white"; 264 | } 265 | })(authors[i]); 266 | }else{ 267 | authors[i].onclick = function () { 268 | window.open('https://github.com/Crush0', '_blank'); 269 | } 270 | authors[i].onmousemove = (function (el) { 271 | return function () { 272 | el.parentElement.children[3].children[0].style.background = "linear-gradient(90deg, rgb(159, 229, 151), rgb(204, 229, 129))"; 273 | } 274 | })(authors[i]); 275 | 276 | authors[i].onmouseout = (function (el) { 277 | return function () { 278 | el.parentElement.children[3].children[0].style.background = "white"; 279 | } 280 | })(authors[i]); 281 | } 282 | 283 | } 284 | var next = document.querySelector('.switch_bg'); 285 | let isExecuting = false; 286 | function next_bg() { 287 | if (isExecuting) { 288 | return; 289 | } 290 | isExecuting = true; 291 | next.innerHTML = ""; 292 | let wait_time; 293 | if (seconds % 3 == 1) { 294 | wait_time = 5000 295 | }else if (seconds % 3 == 2) { 296 | wait_time = 5000 297 | }else{ 298 | wait_time = 12000 299 | } 300 | setTimeout(() => { 301 | if (seconds % 3 == 1) { 302 | //删除canvas 303 | let canvas = document.querySelector('canvas'); 304 | canvas.parentNode.removeChild(canvas); 305 | 306 | }else if (seconds % 3 == 2) { 307 | //删除#chat_canvas_bg 308 | let chat_canvas_bg = document.getElementById('chat_canvas_bg'); 309 | chat_canvas_bg.parentNode.removeChild(chat_canvas_bg); 310 | 311 | }else{ 312 | //删除全部canvas 313 | while(document.querySelector('canvas')) { 314 | let canvas = document.querySelector('canvas'); 315 | canvas.parentNode.removeChild(canvas); 316 | } 317 | } 318 | switch_bg(++seconds); 319 | next.innerHTML = '切换背景 '; 320 | isExecuting = false; 321 | }, wait_time); 322 | } 323 | next.onclick = next_bg; 324 | 325 | 326 | console.log("%c 源码文件点击右上角头像", 'padding:10px 20px;color:white;background :linear-gradient(90deg, rgb(159, 229, 151), rgb(204, 229, 129))'); -------------------------------------------------------------------------------- /webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cv-cat/Chatgpt/a2f43f30d764dcf6e69271c4cfe1055d3991b263/webfonts/fa-solid-900.woff2 --------------------------------------------------------------------------------