text
stringlengths
2
1.05M
// get all workout data from back-end fetch("/api/workouts/range") .then(response => { return response.json(); }) .then(data => { populateChart(data); }); API.getWorkoutsInRange() function generatePalette() { const arr = [ "#003f5c", "#2f4b7c", "#665191", "#a05195", "#d45087", "#f95d6a", "#ff7c43", "ffa600", "#003f5c", "#2f4b7c", "#665191", "#a05195", "#d45087", "#f95d6a", "#ff7c43", "ffa600" ]; return arr; } function populateChart(data) { let durations = duration(data); let totalDurations = totalDuration(data); let pounds = calculateWeight(data); let totalPounds = calculateTotalWeight(data); let workouts = workoutNames(data); let days = workoutDays(data); const colors = generatePalette(); document.querySelector("h2").textContent = `(${days.all[0]} to ${days.all[days.all.length - 1]})`; let line = document.querySelector("#canvas").getContext("2d"); let bar = document.querySelector("#canvas2").getContext("2d"); let pie = document.querySelector("#canvas3").getContext("2d"); let pie2 = document.querySelector("#canvas4").getContext("2d"); let lineChart = new Chart(line, { type: "line", data: { labels: days.all, datasets: [ { label: "Workout Duration In Minutes", backgroundColor: "red", borderColor: "red", data: totalDurations, fill: false } ] }, options: { responsive: true, title: { display: true, text: "Workout Durations" }, scales: { xAxes: [ { display: true, scaleLabel: { display: true } } ], yAxes: [ { display: true, scaleLabel: { display: true } } ] } } }); let barChart = new Chart(bar, { type: "bar", data: { labels: days.resistance, datasets: [ { label: "Pounds", data: totalPounds, backgroundColor: [ "rgba(255, 99, 132, 0.2)", "rgba(54, 162, 235, 0.2)", "rgba(255, 206, 86, 0.2)", "rgba(75, 192, 192, 0.2)", "rgba(153, 102, 255, 0.2)", "rgba(255, 159, 64, 0.2)", "rgba(255, 99, 132, 0.2)", "rgba(54, 162, 235, 0.2)", "rgba(255, 206, 86, 0.2)", "rgba(75, 192, 192, 0.2)" ], borderColor: [ "rgba(255, 99, 132, 1)", "rgba(54, 162, 235, 1)", "rgba(255, 206, 86, 1)", "rgba(75, 192, 192, 1)", "rgba(153, 102, 255, 1)", "rgba(255, 159, 64, 1)", "rgba(255, 99, 132, 1)", "rgba(54, 162, 235, 1)", "rgba(255, 206, 86, 1)", "rgba(75, 192, 192, 1)" ], borderWidth: 1 } ] }, options: { title: { display: true, text: "Resistance Workout Weight Lifted" }, scales: { yAxes: [ { ticks: { beginAtZero: true } } ] } } }); let pieChart = new Chart(pie, { type: "pie", data: { labels: workouts.all, datasets: [ { label: "Exercises Performed", backgroundColor: colors, data: durations } ] }, options: { title: { display: true, text: "Duration in Minutes of Each Exercise Relative to Total Workout Time" } } }); let donutChart = new Chart(pie2, { type: "doughnut", data: { labels: workouts.resistance, datasets: [ { label: "Exercises Performed", backgroundColor: colors, data: pounds } ] }, options: { title: { display: true, text: "Weight in Pounds of Each Resistance Exercise Relative to Total Weight Lifted" } } }); } function duration(data) { let durations = []; data.forEach(workout => { workout.exercises.forEach(exercise => { durations.push(exercise.duration); }); }); return durations; } function totalDuration(data) { let totalDurations = []; data.forEach(workout => { totalDurations.push(workout.totalDuration); }); return totalDurations; } function calculateWeight(data) { let pounds = []; data.forEach(workout => { workout.exercises.forEach(exercise => { if (exercise.type === "resistance") { pounds.push(exercise.weight); } }); }); return pounds; } function calculateTotalWeight(data) { let totalPounds = []; data.forEach(workout => { let workoutPounds = 0; workout.exercises.forEach(exercise => { if (exercise.type === "resistance") { workoutPounds += exercise.weight; } }); if (workoutPounds !== 0) { totalPounds.push(workoutPounds); } }); return totalPounds; } function workoutNames(data) { let workouts = { all: [], resistance: [] }; data.forEach(workout => { workout.exercises.forEach(exercise => { workouts.all.push(exercise.name); if (exercise.type === "resistance") { workouts.resistance.push(exercise.name); } }); }); return workouts; } function workoutDays(data) { let days = { all: [], resistance: [] }; data.forEach(workout => { days.all.push(moment(workout.day).format("ddd M/D, h:mm A")); let exercises = workout.exercises; for (let i = 0; i < exercises.length; i++) { if (exercises[i].type === "resistance") { days.resistance.push(moment(workout.day).format("ddd M/D, h:mm A")); break; } } }); return days; }
import React from 'react'; import styles from './Button.module.css'; const Button = (props) => ( <button className={[styles.Button, styles[props.btnType]].join(' ')} onClick={props.clicked} > {props.children} </button> ); export default Button;
Bridge.assembly("TestProject", function ($asm, globals) { "use strict"; var $m = Bridge.setMetadata, $n = [System,Test.BridgeIssues.N1092,Test.BridgeIssues.N772,TestProject2,TestProject1]; $m($n[1].App, function () { return {"att":1048577,"a":2,"m":[{"a":2,"isSynthetic":true,"n":".ctor","t":1,"sn":"ctor"},{"a":2,"n":"Main1","is":true,"t":8,"sn":"Main1","rt":$n[0].Void}]}; }); $m($n[2].App, function () { return {"att":1048577,"a":2,"m":[{"a":2,"isSynthetic":true,"n":".ctor","t":1,"sn":"ctor"},{"a":2,"n":"Main1","is":true,"t":8,"sn":"Main1","rt":$n[0].Void}]}; }); $m($n[3].TestClassB, function () { return {"att":1048576,"a":4,"m":[{"a":2,"isSynthetic":true,"n":".ctor","t":1,"sn":"ctor"},{"a":2,"n":"Value1","t":16,"rt":$n[0].Int32,"g":{"a":2,"n":"get_Value1","t":8,"rt":$n[0].Int32,"fg":"Value1"},"s":{"a":2,"n":"set_Value1","t":8,"p":[$n[0].Int32],"rt":$n[0].Void,"fs":"Value1"},"fn":"Value1"}]}; }); $m($n[4].TestClassA, function () { return {"att":1048576,"a":4,"m":[{"a":2,"isSynthetic":true,"n":".ctor","t":1,"sn":"ctor"},{"a":2,"n":"Value1","t":16,"rt":$n[0].Int32,"g":{"a":2,"n":"get_Value1","t":8,"rt":$n[0].Int32,"fg":"Value1"},"s":{"a":2,"n":"set_Value1","t":8,"p":[$n[0].Int32],"rt":$n[0].Void,"fs":"Value1"},"fn":"Value1"}]}; }); });
// import SimpleInput from "./components/SimpleInput"; import BasicForm from "./components/BasicForm"; function App() { return ( <div className="app"> <BasicForm /> </div> ); } export default App;
var defaultFileStore = require('./default'); var StoreLocal = function (options) { this.cwd = options.cwd || process.cwd(); }; StoreLocal.prototype = defaultFileStore.create(); module.exports = StoreLocal;
import styled from 'styled-components'; const Page = styled.main` max-width: ${(props) => props.theme.maxWidth}; margin: 0 auto; `; export default Page;
import { v4 as uuidv4 } from "uuid" export const data = { people: [ { id: uuidv4(), name: "Aman Khan", img: "https://avatars2.githubusercontent.com/u/60522829", links: { website: "https://www.reverbnation.com/amankhan7", linkedin: "https://www.linkedin.com/in/amkhan25/", github: "https://github.com/amankhan25", }, jobTitle: "Software Engineer, Web Developer", location: { city: "Jaipur", state: "Rajasthan", country: "India", }, }, { id: uuidv4(), name: "Adi Gutner", img: "https://avatars1.githubusercontent.com/u/42630221", links: { website: "https://www.gooties.com", linkedin: "https://www.linkedin.com/in/adi-gutner/", github: "https://github.com/AdiGutner", }, jobTitle: "Software Engineer", location: { city: "New York", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Ehsan Zand", img: "https://avatars0.githubusercontent.com/u/22591967?s=460&u=af9d96af6ce95b499e3bc976fd6bbe24e134133d&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/ehsan-zand/", github: "https://github.com/Ehsan-Zand", }, jobTitle: "Full Stack Developer | Web Developer", location: { city: "Tehran", state: "Tehran Province", country: "Iran", }, }, { id: uuidv4(), name: "Madufor Chiemeka", img: "https://avatars2.githubusercontent.com/u/61386343?s=460&u=0d4dfd26031d0c85094386273287462de57e956d&v=4", links: { website: "https://elcozy.github.io/", linkedin: "https://www.linkedin.com/in/chiemekam/", github: "https://github.com/elcozy", }, jobTitle: "Front-end Web Developer", location: { city: "Debrecen", state: "", country: "Hungary", }, }, { id: uuidv4(), name: "Pedro Calvo Herranz", img: "https://avatars1.githubusercontent.com/u/60217106?s=400&u=2eed60aadca5f6ae796764fbe2f07b4c7d73cc73&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/pedro-calvo-herranz-56561315a/", github: "https://github.com/pdr-clv", }, jobTitle: "FrontEnd React Developer", location: { city: "Moscow", state: "", country: "Russia", }, }, { id: uuidv4(), name: "Andrej Zadnik", img: "", links: { website: "http://www.hipervision.eu", linkedin: "https://www.linkedin.com/in/andrej-zadnik-3929233a", github: "https://github.com/andrejza", }, jobTitle: "Full-Stack Dev, C++", location: { city: "Stuttgart", state: "", country: "Germany", }, }, { id: uuidv4(), name: "Mitch Hankins", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/IronCoderXYZ", github: "https://github.com/IronCoderXYZ", }, jobTitle: "Full-Stack JavaScript Dev", location: { city: "Denver", state: "CO", country: "USA", }, }, { id: uuidv4(), name: "Piyush Gupta", img: "", links: { website: "http://pdshah.com", linkedin: "https://www.linkedin.com/in/piyush-gupta-3a268826", github: "", }, jobTitle: "Full-Stack Developer", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Gary Hicks", img: "", links: { website: "https://www.traceofwind.com", linkedin: "https://www.linkedin.com/in/traceofwind", github: "", }, jobTitle: "Full-Stack Designer", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Dylan Thorwaldson", img: "https://avatars2.githubusercontent.com/u/22373538?s=460&v=4", links: { website: "http://www.dylanthorwaldson.com", linkedin: "https://linkedin.com/in/dtthor", github: "https://www.github.com/dtthor", }, jobTitle: "Fullstack Web Developer", location: { city: "Austin", state: "TX", country: "USA", }, }, { id: uuidv4(), name: "James Granfield", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/xiujia-guo-88697181", github: "https://github.com/googlr", }, jobTitle: "Software Engineer/ Developer", location: { city: "New York City", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Khoi Tran", img: "https://ktran031.github.io/kt_portfolio/images/khoi.jpg", links: { website: "https://ktran031.github.io/kt_portfolio", linkedin: "https://www.linkedin.com/in/khoi-tran-35564991", github: "", }, jobTitle: "Front End Developer", location: { city: "Orange County", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Pak Chu", img: "https://media.licdn.com/dms/image/C5603AQHrnJjaX7E8Sw/profile-displayphoto-shrink_800_800/0?e=1528254000&v=beta&t=PWYVA_XZigZXr4rtNkcdRZiqFyv2IVmoRov0GSepi3A", links: { website: "", linkedin: "https://www.linkedin.com/in/pakchu", github: "https://github.com/spaceforestchu", }, jobTitle: "Fullstack (Javascript Developer)", location: { city: "New York City", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Swapnil Gaikwad", img: "http://www.swapnilgaikwad.tech/assets/images/profile_pic1.jpg", links: { website: "http://www.swapnilgaikwad.tech", linkedin: "https://www.linkedin.com/in/swapnil-gaikwad-2095", github: "https://github.com/Swapnil2095", }, jobTitle: "Fullstack Developer, Data Scientist (BigData, ML, NLP)", location: { city: "Pune", state: "", country: "India", }, }, { id: uuidv4(), name: "Nabeel Siddiqui", img: "https://avatars1.githubusercontent.com/u/32341221?s=460&v=4", links: { website: "https://nsiddiqui25.github.io", linkedin: "https://www.linkedin.com/in/nsdiqui25", github: "https://github.com/nsiddiqui25", }, jobTitle: "Full-Stack JavaScript Developer", location: { city: "Chicago", state: "IL", country: "USA", }, }, { id: uuidv4(), name: "Martín Comito", img: "https://avatars2.githubusercontent.com/u/32417757?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/mart%C3%ADn-comito-627a32153", github: "https://github.com/martincomito", }, jobTitle: "Front-End Developer", location: { city: "Buenos Aires", state: "", country: "Argentina", }, }, { id: uuidv4(), name: "Krishnanath Maly", img: "https://avatars2.githubusercontent.com/u/17670025?s=460&v=4", links: { website: "http://www.crzna.com", linkedin: "https://www.linkedin.com/in/krishnanath", github: "https://github.com/krishnanath", }, jobTitle: "Full Stack Developer", location: { city: "Malayattoor", state: "KL", country: "India", }, }, { id: uuidv4(), name: "Oumar Diarra", img: "https://oudia15.github.io/Images/me_linkedin.jpg", links: { website: "https://oudia15.github.io", linkedin: "https://www.linkedin.com/in/diarraoumar", github: "https://github.com/oudia15", }, jobTitle: "Full stack Developer", location: { city: "Louisiana", state: "", country: "USA (Willing to relocate!)", }, }, { id: uuidv4(), name: "James Chhun", img: "", links: { website: "https://wingchhun.github.io/portfolio.github.io", linkedin: "https://www.linkedin.com/in/james-chhun-16b1b5120", github: "https://github.com/wingchhun", }, jobTitle: "Front-End Developer", location: { city: "San Diego", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Ismael Vazquez", img: "https://media.licdn.com/dms/image/C5603AQFJuMW6DO74xw/profile-displayphoto-shrink_800_800/0?e=1528477200&v=beta&t=O952AL-tutZW3Z0aAaGIjS7jxLDFST_5Lzodga0_uj0", links: { website: "https://iamismael.com", linkedin: "https://www.linkedin.com/in/ismael-vazquez-jr-0415a1104", github: "https://github.com/IsmaelVazquez", }, jobTitle: "Full-stack Javascript Developer", location: { city: "Los Angeles", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Adrian Wagener", img: "https://media.licdn.com/dms/image/C4D03AQEdhmhOXXRi7g/profile-displayphoto-shrink_800_800/0?e=1528477200&v=beta&t=Ibu6t9ZiYsqch12H9_wwvvx4bT8vU95QPAq1Mubl0Dc", links: { website: "https://wagad22.github.io", linkedin: "https://www.linkedin.com/in/adrian-wagener-45b741134", github: "https://github.com/wagad22", }, jobTitle: "Fullstack Webdeveloper", location: { city: "Frankfurt", state: "", country: "Germany", }, }, { id: uuidv4(), name: "Nadezhda Falaleeva", img: "https://nadyafa.com/pics/nadezhdafalaleeva.jpg", links: { website: "https://nadyafa.com", linkedin: "", github: "https://github.com/hopes91", }, jobTitle: "Front-End Developer", location: { city: "Kirov", state: "", country: "Russia", }, }, { id: uuidv4(), name: "Chirag Chopra", img: "", links: { website: "", linkedin: "", github: "https://github.com/chiggy1997", }, jobTitle: "Full Stack Web Developer", location: { city: "Mumbai", state: "", country: "India", }, }, { id: uuidv4(), name: "Murilo Miranda Nüßlein", img: "https://murilomiranda.github.io/img/my_picture.jpg", links: { website: "https://murilomiranda.github.io", linkedin: "https://www.linkedin.com/in/murilo-miranda-nuesslein", github: "https://github.com/murilomiranda", }, jobTitle: "Front-end Web Development", location: { city: "Berlin", state: "", country: "Germany", }, }, { id: uuidv4(), name: "Christine Aqui", img: "https://avatars1.githubusercontent.com/u/2739361?s=460&v=4", links: { website: "https://rocketgirl.herokuapp.com", linkedin: "https://ca.linkedin.com/in/christineaqui", github: "https://github.com/christine-aqui", }, jobTitle: "Full-Stack Javascript Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Sheel Parekh", img: "https://avatars3.githubusercontent.com/u/8761960?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/sheelparekh", github: "https://github.com/RizaneEves", }, jobTitle: "Full Stack Developer", location: { city: "Champaign", state: "IL", country: "USA (Willing to relocate!)", }, }, { id: uuidv4(), name: "Rabin Rai", img: "http://rabinrai.com/wp-content/uploads/2017/11/rbn_img-300x225.jpg", links: { website: "http://rabinrai.com", linkedin: "https://www.linkedin.com/in/rabin-rai-58a43913a", github: "https://github.com/rabinrai44", }, jobTitle: "Front-End Web Developer", location: { city: "Grand Raps", state: "MI", country: "USA (Remote or Onsite)", }, }, { id: uuidv4(), name: "Oladele Olorunsola", img: "", links: { website: "https://github.com/deluxscript", linkedin: "https://www.linkedin.com/in/oladele-olorunsola-707a2175", github: "", }, jobTitle: "Full Stack Developer", location: { city: "Lagos", state: "", country: "Nigeria", }, }, { id: uuidv4(), name: "Danny Ferguson", img: "", links: { website: "https://dandzn.com", linkedin: "https://www.linkedin.com/in/adannyferguson", github: "https://github.com/danbzns", }, jobTitle: "Front-End Developer", location: { city: "Gaspésie", state: "Quebec", country: "Canada", }, }, { id: uuidv4(), name: "Kirtiben Parekh", img: "https://avatars0.githubusercontent.com/u/35478461?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/kirti010", github: "https://github.com/kirti010", }, jobTitle: "Front-End Developer", location: { city: "San Jose", state: "CA", country: "USA (Willing to relocate!)", }, }, { id: uuidv4(), name: "Piotr Kowalski", img: "https://media.licdn.com/dms/image/C4D03AQGcf89ACxun0Q/profile-displayphoto-shrink_800_800/0?e=1528549200&v=beta&t=4-3H7jB8ADFrpOZDrDr9T4ZJhTFl88OVq034R3j4svU", links: { website: "", linkedin: "https://www.linkedin.com/in/piotr-kowalski-57379a120", github: "https://github.com/piotrke", }, jobTitle: "Full-Stack .NET Developer", location: { city: "", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Kgothatso Desmond", img: "https://avatars2.githubusercontent.com/u/25475754?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/kgothatso-desmond-45b380b2", github: "https://github.com/DesmondThema", }, jobTitle: "Web Developer (NodeJs, PHP and Magento)", location: { city: "Cape Town", state: "", country: "South Africa", }, }, { id: uuidv4(), name: "Isaac Zhou", img: "https://avatars3.githubusercontent.com/u/26254354?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/isaaczhou", github: "https://github.com/isaaczhou", }, jobTitle: "Chief Data Scientist", location: { city: "New York City", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Abdus Samad", img: "https://abdusdev.me/assets/img/profile.jpg", links: { website: "https://abdusdev.me", linkedin: "https://www.linkedin.com/in/thisisabdus", github: "https://github.com/thisisabdus", }, jobTitle: "Web Developer", location: { city: "Assam", state: "", country: "India", }, }, { id: uuidv4(), name: "Mohammed Mulazada", img: "https://mohammedmulazada.nl/img/moniac/cutout2.svg", links: { website: "https://mohammedmulazada.nl", linkedin: "https://www.linkedin.com/in/mohammed-mulazada-81096b5b", github: "https://github.com/moniac", }, jobTitle: "Front-End Developer", location: { city: "Amsterdam", state: "", country: "Netherlands", }, }, { id: uuidv4(), name: "Yuan Li", img: "", links: { website: "https://tinauwtron.github.io", linkedin: "", github: "https://github.com/tinauwtron", }, jobTitle: "Front End Web Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Joe Horn", img: "https://avatars0.githubusercontent.com/u/8077875?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/joe-horn-3b306b1", github: "https://github.com/joejhorn", }, jobTitle: "Front-End Developer", location: { city: "Reno", state: "Nevada", country: "USA", }, }, { id: uuidv4(), name: "Michael Robards", img: "https://mikerodev.com/assets/images/HeadshotFeb18.jpg", links: { website: "https://mikerodev.com", linkedin: "https://www.linkedin.com/in/michael-j-robards-630526138", github: "https://github.com/mikerobards", }, jobTitle: "Software Engineer", location: { city: "Atlanta", state: "GA", country: "USA", }, }, { id: uuidv4(), name: "Waqar Goraya", img: "https://avatars2.githubusercontent.com/u/740101?s=460&v=4", links: { website: "", linkedin: "", github: "https://github.com/waqar3", }, jobTitle: "Web Developer", location: { city: "Portsmouth", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Vishal Malik", img: "http://malikvishal.me/assets/images/vishal.jpg", links: { website: "http://malikvishal.me", linkedin: "https://www.linkedin.com/in/vishal0027", github: "https://github.com/vishal0027", }, jobTitle: "Web Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Yifang Di", img: "", links: { website: "https://yifangdi.blogspot.com", linkedin: "", github: "https://github.com/YvonneD", }, jobTitle: "Front-end Web Developer", location: { city: "Flint", state: "MI", country: "USA", }, }, { id: uuidv4(), name: "Zans Litinskis", img: "https://avatars0.githubusercontent.com/u/23562296?s=460&v=4", links: { website: "https://magvin.github.io", linkedin: "https://www.linkedin.com/in/jeanlitinskis", github: "https://github.com/Magvin", }, jobTitle: "Freelance Front-end Web Developer", location: { city: "Eastbourne", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Miha Kloar", img: "https://scontent.flju1-1.fna.fbcdn.net/v/t1.0-9/12994372_985634201485849_1777253085278718502_n.jpg?_nc_cat=0&oh=8dae54f01a3d44f5ce4f20189f6f5352&oe=5B964B88", links: { website: "https://mkloar.github.io", linkedin: "https://www.linkedin.com/in/mkloar", github: "https://github.com/mkloar", }, jobTitle: "Front-end Web Developer", location: { city: "Celje", state: "", country: "Slovenia", }, }, { id: uuidv4(), name: "Els", img: "https://media.licdn.com/dms/image/C4D03AQE-1w0mjbpHeA/profile-displayphoto-shrink_800_800/0?e=1528552800&v=beta&t=AQa2nhly_-ikre7ozynBY2YxWEIvo55T1a2Lj2aWB8g", links: { website: "http://www.bloobloons.com", linkedin: "https://www.linkedin.com/in/bloobloons", github: "", }, jobTitle: "Full Stack Developer", location: { city: "Portsmouth", state: "", country: "UK", }, }, { id: uuidv4(), name: "Aminul Islam", img: "", links: { website: "", linkedin: "", github: "https://github.com/amin135", }, jobTitle: "Full Stack Web Developer", location: { city: "Totowa", state: "NJ", country: "USA", }, }, { id: uuidv4(), name: "Priyanshu Tyagi", img: "https://media.licdn.com/dms/image/C5103AQEnRmgvAyGi8g/profile-displayphoto-shrink_800_800/0?e=1528552800&v=beta&t=OfUQbBBxFjOcvpZYflHT4LS5eBi3ImU1WKJZVG7zRug", links: { website: "", linkedin: "https://www.linkedin.com/in/priyanshutyagi1996", github: "https://github.com/priyanshugithub", }, jobTitle: "Full-Stack JavaScript Developer", location: { city: "New Delhi", state: "", country: "India (Willing to Relocate!)", }, }, { id: uuidv4(), name: "Amadi Lucky", img: "https://avatars3.githubusercontent.com/u/33874571?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/lucky-amadi-40408b41", github: "https://github.com/w3bh4ck", }, jobTitle: "Full-Stack Developer", location: { city: "", state: "", country: "Nigeria (Willing to Relocate & Remote)", }, }, { id: uuidv4(), name: "Jim Carroll", img: "https://pulamusic.github.io/images/JimHeadshot.jpg", links: { website: "https://pulamusic.github.io", linkedin: "https://www.linkedin.com/in/james-carroll-36001511a", github: "https://github.com/pulamusic", }, jobTitle: "Academic & Front-End Developer", location: { city: "Springfield", state: "MA", country: "USA", }, }, { id: uuidv4(), name: "Klaidas Vysniauskas", img: "", links: { website: "", linkedin: "", github: "https://github.com/KlaidasVysniauskas", }, jobTitle: "Full-Stack Developer", location: { city: "Preston", state: "", country: "UK", }, }, { id: uuidv4(), name: "Louise van den Berg", img: "", links: { website: "https://louisevdb.herokuapp.com", linkedin: "https://www.linkedin.com/in/louise-van-den-berg-016179114", github: "", }, jobTitle: "Fullstack Web Developer", location: { city: "Johannesburg", state: "", country: "South Africa", }, }, { id: uuidv4(), name: "Matthew Collier", img: "https://media.licdn.com/dms/image/C4D03AQE5FEvf75CqNA/profile-displayphoto-shrink_800_800/0?e=1528552800&v=beta&t=4bxzIqg5f8nRtPzfMlWg_YvxJFqC93lg6EeMRGZHt-0", links: { website: "http://matthewcollier.ca", linkedin: "https://www.linkedin.com/in/matthewjcollier", github: "https://github.com/matthewcollier1", }, jobTitle: "Front-end Web Developer", location: { city: "Toronto", state: "", country: "Canada", }, }, { id: uuidv4(), name: "Sri Harsha", img: "https://media.licdn.com/dms/image/C5103AQF1djmtZya33g/profile-displayphoto-shrink_800_800/0?e=1528552800&v=beta&t=9--dS-8c87a4kSgCkKV6hEf3Q9eTSPJIlHc2sQrwsUM", links: { website: "http://sriharsha.ml", linkedin: "https://www.linkedin.com/in/harsha444", github: "", }, jobTitle: "Full Stack Developer", location: { city: "Durgapur", state: "", country: "India", }, }, { id: uuidv4(), name: "Yuankan Fang", img: "https://media.licdn.com/dms/image/C4D03AQEpXEA2S8bKjg/profile-displayphoto-shrink_800_800/0?e=1528552800&v=beta&t=-eWTij44N-3VxkLASMQPuJQaD7-udPu-vZ94zHmcldU", links: { website: "https://kyleyk.github.io", linkedin: "https://www.linkedin.com/in/yuankanf", github: "https://github.com/kyleyk", }, jobTitle: "Web Developer/Software Engineer", location: { city: "San Diego", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Jonathan Itzen", img: "http://jonathanitzen.com/wp-content/themes/jonathanportfolio/imgs/profile.jpg", links: { website: "http://jonathanitzen.com", linkedin: "https://www.linkedin.com/in/jonathan-itzen", github: "", }, jobTitle: "WordPress Developer", location: { city: "Fort Dodge", state: "Iowa", country: "USA", }, }, { id: uuidv4(), name: "Ryan Walker", img: "https://media.licdn.com/dms/image/C4E03AQFG-tPI_99VdQ/profile-displayphoto-shrink_800_800/0?e=1528552800&v=beta&t=Pwh88C9Q1ZyLh-kTyVtsUSD48WM22TnxWyLu4ALDg0I", links: { website: "http://ryanwalkerdevelopment.com", linkedin: "https://www.linkedin.com/in/ryan-walker-41082b47", github: "", }, jobTitle: "Front-end Developer", location: { city: "Youngstown", state: "OH", country: "USA", }, }, { id: uuidv4(), name: "Daniel Alviso", img: "https://avatars0.githubusercontent.com/u/25121780?s=460&v=4", links: { website: "https://dan-alviso.com", linkedin: "https://www.linkedin.com/in/dan-alviso", github: "https://github.com/dan-alviso", }, jobTitle: "Software Developer", location: { city: "San Francisco Bay Area", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Osei Kofi Nimoh", img: "https://media.licdn.com/dms/image/C4E03AQFJo9NvT8gtAg/profile-displayphoto-shrink_800_800/0?e=1528549200&v=beta&t=DRZ5Q1-o5SWRSH3j-W8dHwfM6UlWCr813IsLSGuAVaQ", links: { website: "", linkedin: "https://www.linkedin.com/in/kofi-osei-nimoh-15148a73", github: "", }, jobTitle: "Web Developer", location: { city: "Accra", state: "", country: "Ghana", }, }, { id: uuidv4(), name: "Petar Dyakov", img: "", links: { website: "https://dyakov.cc", linkedin: "https://www.linkedin.com/in/petar-dyakov", github: "https://github.com/PepoDyakov", }, jobTitle: "Web Developer", location: { city: "Sofia", state: "", country: "Bulgaria", }, }, { id: uuidv4(), name: "Wolfgang Kreminger", img: "https://avatars2.githubusercontent.com/u/29685827?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/wolfgang-kreminger-43386b151", github: "https://github.com/r4pt0s", }, jobTitle: "Full Stack Developer", location: { city: "Burgenland", state: "", country: "Austria", }, }, { id: uuidv4(), name: "Darryl Steve Ferdinands", img: "", links: { website: "https://darrylferdinands.wixsite.com/education", linkedin: "https://www.linkedin.com/in/darryl-ferdinands-43b89671", github: "https://github.com/darrylferdinands", }, jobTitle: "Full Stack Developer", location: { city: "New Delhi", state: "", country: "India", }, }, { id: uuidv4(), name: "Amaechi Chuks", img: "", links: { website: "https://amaechi-chuks.github.io/part", linkedin: "", github: "https://github.com/amaechi-chuks", }, jobTitle: "Full Stack Developer", location: { city: "Lagos", state: "", country: "Nigeria", }, }, { id: uuidv4(), name: "Jacinto Wong", img: "https://avatars3.githubusercontent.com/u/37252418?v=4", links: { website: "https://jacinto.design", linkedin: "https://www.linkedin.com/in/jacintowong", github: "https://github.com/JacintoDesign", }, jobTitle: "Full-Stack Developer", location: { city: "Toronto", state: "", country: "Canada", }, }, { id: uuidv4(), name: "Thomas Dreyer", img: "https://www.fsdev.ml/myself.jpg", links: { website: "https://www.fsdev.ml", linkedin: "https://www.linkedin.com/in/thomas-dreyer", github: "https://github.com/thomasdreyer", }, jobTitle: "Full Stack Developer", location: { city: "Johannesburg", state: "", country: "South Africa", }, }, { id: uuidv4(), name: "Thimothé Lamoureux", img: "", links: { website: "https://wcubemedia.com", linkedin: "https://www.linkedin.com/in/thimothe-lamoureux", github: "https://github.com/aparadox", }, jobTitle: "Web Developer", location: { city: "Whitehorse", state: "Yukon", country: "Canada", }, }, { id: uuidv4(), name: "Ivan Soto", img: "https://avatars1.githubusercontent.com/u/16747938?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/ivan-soto-851297127", github: "https://github.com/Panconpeenga", }, jobTitle: "Full-Stack Webdeveloper", location: { city: "Miami", state: "FL", country: "USA", }, }, { id: uuidv4(), name: "Enea Xharja", img: "https://avatars1.githubusercontent.com/u/19818937?s=460&v=4", links: { website: "http://eneaxharja.com", linkedin: "https://www.linkedin.com/in/eneax", github: "https://github.com/eneax", }, jobTitle: "Web Developer", location: { city: "Chiusi", state: "Tuscany", country: "Italy", }, }, { id: uuidv4(), name: "Tatyana Kasyanenko", img: "http://www.web-max-design.com/wp-content/uploads/2018/01/photographier-1.jpg", links: { website: "http://www.web-max-design.com", linkedin: "https://www.linkedin.com/in/tatyana-kasyanenko-a0056a52", github: "https://github.com/TatyanaKasyanenko", }, jobTitle: "Web Developer", location: { city: "Haifa", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Justin Grabenbauer", img: "https://avatars3.githubusercontent.com/u/24844219?s=400&u=bf1b5689c649c8009afabdb0915998b0c4cfedd0&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/justingrabenbauer", github: "https://github.com/Jgrabenbauer", }, jobTitle: "Full-Stack Developer", location: { city: "Quito", state: "", country: "Ecuador", }, }, { id: uuidv4(), name: "James Nutter", img: "", links: { website: "https://codepen.io/chaznut", linkedin: "", github: "https://github.com/chaznut", }, jobTitle: "Full-Stack Developer", location: { city: "Washington DC", state: "Baltimore", country: "USA", }, }, { id: uuidv4(), name: "Mauricio Spesot", img: "https://k62.kn3.net/A/7/D/A/0/7/39C.jpg", links: { website: "https://codepen.io/mauriciospesot", linkedin: "https://www.linkedin.com/in/mauriciospesot", github: "https://github.com/mauriciospesot", }, jobTitle: "Web Developer, C++ Developer, Computer Engineering student", location: { city: "Santa Fe", state: "", country: "Argentina", }, }, { id: uuidv4(), name: "Felix Markman", img: "https://media.licdn.com/dms/image/C4D03AQFxk-MEoG4yHw/profile-displayphoto-shrink_200_200/0?e=1531353600&v=beta&t=7wmGTVn4ugv8QSqf7FbXE8iTcNM_A8wBaZuhsuUDYPE", links: { website: "", linkedin: "https://www.linkedin.com/in/felixmarkman", github: "https://github.com/COBETCKNN17", }, jobTitle: "CPQ Professional", location: { city: "Evanston", state: "IL", country: "USA", }, }, { id: uuidv4(), name: "Filipe Falcão", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/filipe-falcão-607924b0", github: "https://github.com/filipe-falcao", }, jobTitle: "Front-End Developer", location: { city: "Braga", state: "", country: "Portugal", }, }, { id: uuidv4(), name: "Puja Gaharwar", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/puja-gaharwar-1635711a", github: "https://github.com/pgakk", }, jobTitle: "Web Developer, Front-End Developer", location: { city: "Atlanta", state: "GA", country: "USA", }, }, { id: uuidv4(), name: "Zachary Fons", img: "https://i.imgur.com/a0tBLzl.jpg", links: { website: "http://zacharyfons.me", linkedin: "https://www.linkedin.com/in/zacharyfons", github: "https://www.github.com/nofcaz", }, jobTitle: "Front-End Web Developer/Software Engineer/UI Developer", location: { city: "Simsbury", state: "Connecticut", country: "USA", }, }, { id: uuidv4(), name: "Oliver De La Via", img: "https://i.imgur.com/B6GNZjt.jpg", links: { website: "https://www.oliverdelaviadev.com", linkedin: "https://www.linkedin.com/in/oliver-de-la-via-9bb2b39a", github: "https://www.github.com/odelavia", }, jobTitle: "Front-End Developer/Software Engineer/UI Developer", location: { city: "Arlington (DC Area)", state: "Virginia", country: "USA", }, }, { id: uuidv4(), name: "Alex Nielsen", img: "http://alexnielsen.com/wp-content/uploads/2018/02/me-bw-cropped-200x200.jpg", links: { website: "http://alexnielsen.com", linkedin: "https://www.linkedin.com/in/alex-nielsen-9a93b113", github: "https://github.com/bushbass", }, jobTitle: "Full Stack JavaScript", location: { city: "Sparta (New York City area)", state: "New Jersey", country: "USA", }, }, { id: uuidv4(), name: "Saifeddin Matoui", img: "https://k62.kn3.net/E/9/6/5/B/0/2D9.png", links: { website: "https://saifeddin1.github.io", linkedin: "https://www.linkedin.com/in/saifeddin-matoui-b34a58148", github: "https://github.com/saifeddin1", }, jobTitle: "Full stack web developer", location: { city: "Zraoua Nouvelle", state: "Gabès", country: "Tunisia", }, }, { id: uuidv4(), name: "Denise Recofka", img: "https://media.licdn.com/dms/image/C5103AQGK2vR45hNmRg/profile-displayphoto-shrink_200_200/0?e=1531958400&v=beta&t=TA6FXa3SVFcbhjcrJ47zwUiDIT6RlQYdO7w8Kuj7V2I", links: { website: "https://recofka.github.io", linkedin: "https://www.linkedin.com/in/deniserecofka", github: "https://github.com/recofka", }, jobTitle: "Front-end Developer", location: { city: "Amsterdam", state: "", country: "Netherlands", }, }, { id: uuidv4(), name: "Ik Egharevba", img: "", links: { website: "https://ik2478.github.io/myportfolio", linkedin: "https://www.linkedin.com/in/ik-egharevba", github: "https://github.com/ik2478", }, jobTitle: "Fullstack Developer", location: { city: "Chicago", state: "", country: "USA", }, }, { id: uuidv4(), name: "Slavo Popovic", img: "", links: { website: "http://www.slavo7.com", linkedin: "https://www.linkedin.com/in/slavoljub-popovic-b38404102", github: "https://github.com/slavo7", }, jobTitle: "Software Developer", location: { city: "Miami", state: "FL", country: "United States", }, }, { id: uuidv4(), name: "Krunal Bhadresha", img: "https://lh3.googleusercontent.com/CWv7hU4YNNaisjnxjQV5-Ts06QBPwelEFhVkttCCEPZcq1GjBjNyhfcYaom6lUgNtOX49izrgRB0YA=w1170-h1175-rw-no", links: { website: "", linkedin: "https://www.linkedin.com/in/krunal-bhadresha-7701a892", github: "https://github.com/krunalbhadresa", }, jobTitle: "Web Developer/Software Developer", location: { city: "Kitchener", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Ronald Fortmann", img: "https://avatars0.githubusercontent.com/u/24876060?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/ronaldfortmann", github: "https://github.com/A-Sm1th", }, jobTitle: "Web Analyst/Full Stack Dev 'Student'", location: { city: "Bielefeld", state: "Nord-Rhine Westfalen", country: "Germany", }, }, { id: uuidv4(), name: "Michal Lewoc", img: "https://raw.githubusercontent.com/JavaMajk/portfolio-site/master/img/my-photo.png", links: { website: "https://javamajk.github.io/portfolio-site", linkedin: "https://www.linkedin.com/in/michal-lewoc-074615114", github: "https://github.com/JavaMajk", }, jobTitle: "Web Developer & IT Specialist", location: { city: "Bialystok, Poland", state: "New York", country: "Poland <-> USA", }, }, { id: uuidv4(), name: "Marcin Pikul", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/marcin-pikul-2a86ba120", github: "https://github.com/Pajkul", }, jobTitle: "Freelancer", location: { city: "Kraków", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Diego Salas", img: "https://scontent.flim9-1.fna.fbcdn.net/v/t1.0-9/17155983_10211022884500815_795863402198977247_n.jpg?_nc_cat=0&oh=54644d4d9cd9b4f7240834c995f1c4ce&oe=5BC44182", links: { website: "", linkedin: "https://www.linkedin.com/in/diego-salas-noain-b11837146", github: "https://github.com/DiegoSalas27", }, jobTitle: "Web developer", location: { city: "Lima", state: "Lima", country: "Perú", }, }, { id: uuidv4(), name: "Diane Leigh", img: "https://media.licdn.com/dms/image/C4E03AQFgUvSby_1jbg/profile-displayphoto-shrink_100_100/0?e=1532563200&v=beta&t=Y3Ktzlje0h70haWz50AXEeVnb1kwIiXUcFAfBdSFTx4", links: { website: "https://leighd2008.github.io/My_Profile", linkedin: "https://www.linkedin.com/in/diane-leigh-5251a275", github: "https://github.com/leighd2008", }, jobTitle: "Full Stack Developer", location: { city: "Leavittsburg", state: "Ohio", country: "USA", }, }, { id: uuidv4(), name: "Andy Lin", img: "https://www.ahsuan.com/img/profile2.jpeg", links: { website: "https://www.ahsuan.com/", linkedin: "https://www.linkedin.com/in/andy-lin-28731413b/", github: "https://github.com/TzuHsuan", }, jobTitle: "Full Stack Developer", location: { city: "Sydney", state: "NSW", country: "Australia", }, }, { id: uuidv4(), name: "Vito Mendoza", img: "https://image.ibb.co/iapLko/DSC_0019ps1.png", links: { website: "http://www.vito-mendoza.com/", linkedin: "https://www.linkedin.com/in/vitomendoza/", github: "https://github.com/VitoMendoza", }, jobTitle: "Web Developer & QA Engineer", location: { city: "Santa Cruz", state: "", country: "Bolivia", }, }, { id: uuidv4(), name: "Vijay Chacko", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/vijaychacko", github: "https://github.com/vijaychacko56", }, jobTitle: "Software Developer", location: { city: "San Francisco", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Angela Mizero", img: "https://github.com/AngieHM/AngieHM.github.io/blob/master/profile.png", links: { website: "https://angiehm.github.io", linkedin: "www.linkedin.com/in/angela-mizero", github: "https://github.com/AngieHM/", }, jobTitle: "Full stack Developer", location: { city: "Antwerp", state: "Antwerp", country: "Belgium", }, }, { id: uuidv4(), name: "Dirk Jansen van Rensburg", img: "https://dirk005.github.io/resume/images/profile.png", links: { website: "https://codepen.io/dirk005/full/QrgMJB/", linkedin: "https://www.linkedin.com/in/dirk-jansen-van-rensburg-597547120", github: "https://github.com/dirk005", }, jobTitle: "Web Developer", location: { city: "Johannesburg", state: "", country: "South Africa", }, }, { id: uuidv4(), name: "Harry Gillen", img: "https://avatars1.githubusercontent.com/u/34924822?s=460&v=4", links: { website: "http://www.harrygillen.com", linkedin: "https://www.linkedin.com/in/harrygillen", github: "https://github.com/gillenha", }, jobTitle: "Web Developer", location: { city: "Traverse City", state: "Michigan", country: "United States", }, }, { id: uuidv4(), name: "Stephen St.Pierre", img: "https://avatars1.githubusercontent.com/u/19779234?s=460&v=4", links: { website: "https://sstpierre2.github.io/", linkedin: "https://www.linkedin.com/in/stevecstpierre", github: "https://github.com/SSTPIERRE2", }, jobTitle: "Programmer Analyst", location: { city: "Boston", state: "Massachusetts", country: "United States", }, }, { id: uuidv4(), name: "Sam Alsmadi", img: "https://avatars0.githubusercontent.com/u/26729976?s=460&v=4", links: { website: "https://lntellimed.github.io/", linkedin: "https://www.linkedin.com/in/samalsmadi", github: "https://github.com/lntelliMed", }, jobTitle: "Fullstack Software Engineer", location: { city: "New York City", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Ankur Anant", img: "", links: { website: "", linkedin: "", github: "https://github.com/anantankur", }, jobTitle: "Front-End Web Developer, Android Developer", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Alex Gioffre'", img: "https://avatars0.githubusercontent.com/u/27789925?s=460&v=4", links: { website: "https://nameless-inlet-32424.herokuapp.com/", linkedin: "https://www.linkedin.com/in/alex-gioffre-776105164/", github: "https://github.com/Razeft91", }, jobTitle: "Junior Web Developer", location: { city: "", state: "", country: "Italy", }, }, { id: uuidv4(), name: "Daniel Puiatti", img: "https://avatars1.githubusercontent.com/u/6855638?s=460&v=4", links: { website: "http://danskii.com", linkedin: "https://www.linkedin.com/in/daniel-puiatti-15688312/", github: "https://github.com/Danskii", }, jobTitle: "Digital Media Specialist", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Josh Broomfield", img: "https://avatars2.githubusercontent.com/u/38929259", links: { website: "", linkedin: "https://www.linkedin.com/in/josh-broomfield-62387690/", github: "https://github.com/Josh-Broomfield/", }, jobTitle: "Software Developer", location: { city: "Paris", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Daniil Osmolovskiy", img: "https://avatars0.githubusercontent.com/u/26023430?s=400&u=34d870283d7fbecf55dd737fd139d138700354cd&v=4", links: { website: "https://www.facebook.com/daniel.osmolovskiy", linkedin: "", github: "https://github.com/daniilosmolovskiy", }, jobTitle: "Web Developer", location: { city: "Kyiv", state: "", country: "Ukraine", }, }, { id: uuidv4(), name: "Gabriel Zuñiga", img: "https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/33788878_1608592929190092_5238537732229169152_o.jpg?_nc_cat=0&oh=fc1ab69b5c5e365bcd6136d0b61b5081&oe=5BB80DFB", links: { website: "https://www.facebook.com/gabrielzunigavasquez", linkedin: "https://www.linkedin.com/in/gabriel-zuniga-944a86116/", github: "https://github.com/gabriel585zv", }, jobTitle: "Full Stack Web Developer", location: { city: "Heredia", state: "", country: "Costa Rica", }, }, { id: uuidv4(), name: "Shane Granger", img: "https://avatars3.githubusercontent.com/u/39177669?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/shane-granger-8334b6136/", github: "https://github.com/HelmsDeap", }, jobTitle: "Full Stack Web Developer", location: { city: "Beaumont", state: "TX", country: "USA (willing to relocate!)", }, }, { id: uuidv4(), name: "YiFang Lo", img: "https://bellalo12.github.io/portfolio/static/media/bella.35be8e14.png", links: { website: "https://bellalo12.github.io/portfolio/", linkedin: "https://www.linkedin.com/in/yifang-lo-a0a183158/", github: "https://github.com/bellalo12", }, jobTitle: "Web Developer", location: { city: "", state: "", country: "Taiwan (Willing to relocate!)", }, }, { id: uuidv4(), name: "Jobe Thomas", img: "", links: { website: "http://www.jobethomas.com", linkedin: "https://www.linkedin.com/in/jobethomas/", github: "https://github.com/DeveloperJobe", }, jobTitle: "(Full Stack/Game) Developer", location: { city: "Silver Spring", state: "MD", country: "USA (Willing to relocate!)", }, }, { id: uuidv4(), name: "Wilfred Morgan", img: "https://wilfredmorgan.com/images/wmeheadshot.jpg", links: { website: "https://wilfredmorgan.com", linkedin: "https://www.linkedin.com/in/wilfredmorgan", github: "https://github.com/wmemorgan", }, jobTitle: "Software & Data Engineer", location: { city: "Orlando", state: "FL", country: "USA", }, }, { id: uuidv4(), name: "Andre Boothe", img: "https://avatars0.githubusercontent.com/u/9014508?s=400&u=e12cfe727881743885c1ce40e595afc4e6069177&v=4", links: { website: "https://andreboothe-portfolio.herokuapp.com/", linkedin: "https://www.linkedin.com/in/andre-boothe-552b6549/", github: "https://github.com/andreboothe", }, jobTitle: "Front End React Developer", location: { city: "Kingston", state: "", country: "Jamaica (Willing to relocate!)", }, }, { id: uuidv4(), name: "Djordje Bukvic", img: "https://avatars1.githubusercontent.com/u/31882265?s=40&u=0669030af633ca5112a4ca40c0aba08a019ede4c&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/djordje-bukvic-5a0814164/", github: "https://github.com/madcoyot", }, jobTitle: "Front End Developer, React.js", location: { city: "Banja Luka", state: "", country: "Bosnia and Herzegovina (Willing to relocate!)", }, }, { id: uuidv4(), name: "Zach Sotak", img: "https://avatars0.githubusercontent.com/u/26771962?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/zachariah-sotak/", github: "https://github.com/zs1046", }, jobTitle: "Full Stack Web Developer", location: { city: "Austin", state: "Texas", country: "USA", }, }, { id: uuidv4(), name: "Ritesh Deshmukh", img: "https://avatars2.githubusercontent.com/u/22695463?s=460&v=4", links: { website: "http://riteshd.com/", linkedin: "https://www.linkedin.com/in/ritesh-deshmukh/", github: "https://github.com/ritesh-deshmukh", }, jobTitle: "Front-End Developer", location: { city: "Arlington", state: "Texas", country: "USA (Willing to relocate)", }, }, { id: uuidv4(), name: "David Ogbeide", img: "https://avatars1.githubusercontent.com/u/13965870", links: { website: "https://dogbeide.github.io", linkedin: "https://www.linkedin.com/in/david-ogbeide-037528a5/", github: "https://dogbeide.github.com", }, jobTitle: "Full Stack Developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Abhinand", img: "http://findabhinand.com/images/profile-pic.jpg", links: { website: "http://www.findabhinand.com", linkedin: "https://www.linkedin.com/in/abhinand-05/", github: "https://github.com/abhinand5", }, jobTitle: "Full Stack Web Developer", location: { city: "Coimbatore", state: "Tamilnadu", country: "India", }, }, { id: uuidv4(), name: "Flavia Nunes", img: "https://scontent.fplu14-1.fna.fbcdn.net/v/t1.0-9/20664000_1985232535055509_7622612280580069264_n.jpg?_nc_cat=0&oh=e604935b16d251c7ec60c12383ebddd2&oe=5BB11B9B", links: { website: "flavianunes.github.io", linkedin: "https://www.linkedin.com/in/flanunes/", github: "https://github.com/flavianunes", }, jobTitle: "Computer sciene student, freelancer developer", location: { city: "", state: "", country: "Brazil", }, }, { id: uuidv4(), name: "Don Macarthur", img: "https://en.gravatar.com/userimage/114762270/d89de0ecb7c354950b4191d024469db3.jpeg", links: { website: "https://donatron.github.io/portfolio", linkedin: "https://www.linkedin.com/in/don-macarthur-652045a9/", github: "https://github.com/Donatron", }, jobTitle: "Web Developer", location: { city: "Gold Coast", state: "Queensland", country: "Australia", }, }, { id: uuidv4(), name: "Rahul Kumar", img: "https://media.licdn.com/dms/image/C5103AQENiohRy39XzQ/profile-displayphoto-shrink_200_200/0?e=1539820800&v=beta&t=FCh-bKc-Ag-fZqh2v-Xk_Tyfigg_zQpTBoV282tbQc0", links: { website: "https://kumarrahul123.herokuapp.com/", linkedin: "https://www.linkedin.com/in/rahul-kumar943/", github: "https://github.com/rahuls321", }, jobTitle: "Web Developer ", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Marlon Ercillo", img: "https://media.licdn.com/dms/image/C4E03AQGxX4p5AqIyNg/profile-displayphoto-shrink_100_100/0?e=1534982400&v=beta&t=oUxM2RdpAf59F1vrRnA7j7YWGJwdeVkO7dPGxl8o6yE", links: { website: "www.mercillo.com", linkedin: "https://www.linkedin.com/in/marlon-ercillo-58057596/", github: "https://github.com/mercillo", }, jobTitle: "Front End Developer", location: { city: "San Diego", state: "CA", country: "United States", }, }, { id: uuidv4(), name: "Kumar Anurag", img: "https://avatars0.githubusercontent.com/u/31153544?s=400&v=4", links: { website: "https://kmranrg.github.io/MyBlog/", linkedin: "https://www.linkedin.com/in/kmranrg", github: "https://github.com/kmranrg", }, jobTitle: "Full-Stack Web Developer", location: { city: "Delhi", state: "New Delhi", country: "India", }, }, { id: uuidv4(), name: "Gabriel Lomba Aguiar Costa", img: "https://media.licdn.com/dms/image/C5103AQEvo6KOpjKDPw/profile-displayphoto-shrink_200_200/0?e=1534982400&v=beta&t=LFwHESjCRP7p7JXDGU-3sYO_pZ0YQfhWu7lk8G8ZBRI", links: { website: "", linkedin: "https://www.linkedin.com/in/gabriel-lomba-aguiar-costa", github: "https://github.com/GabrielLomba", }, jobTitle: "Full Stack Developer", location: { city: "Juiz de Fora", state: "Minas Gerais", country: "Brazil", }, }, { id: uuidv4(), name: "Scott Whitney", img: "https://avatars0.githubusercontent.com/u/28842432?s=460&v=4", links: { website: "http://www.aslexpress.net/quizDev/", linkedin: "www.linkedin.com/in/scott-whitney", github: "https://github.com/whitneyscott", }, jobTitle: "Full-Stack Web Developer", location: { city: "Nacogdoches", state: "TX", country: "USA", }, }, { id: uuidv4(), name: "Sanidhya Samadhiya", img: "https://scontent.fbho1-1.fna.fbcdn.net/v/t1.0-0/p206x206/28167086_2018682501737168_5897662160270067359_n.jpg?_nc_cat=0&oh=7c5850e643d5f1b6b2bc335e2f682f2a&oe=5BB9B5AD", links: { website: "", linkedin: "", github: "https://github.com/sanidhya2000", }, jobTitle: "Full-Stack Web Developer", location: { city: "Guna", state: "Madhya Pradesh", country: "India", }, }, { id: uuidv4(), name: "BalalonKs", img: "", links: { website: "", linkedin: "", github: "https://github.com/BalalonKs", }, jobTitle: "Full-Stack Web Developer", location: { city: "Bangkok", state: "", country: "Thailand", }, }, { id: uuidv4(), name: "Reiz Ariva-Hale", img: "https://res.cloudinary.com/r31z/image/upload/v1459058107/1_ghor9t.jpg", links: { website: "https://frontendreiz.com/", linkedin: "https://www.linkedin.com/in/rariva-hale/", github: "https://github.com/reizariva-hale", }, jobTitle: "Front End Developer", location: { city: "Sydney", state: "NSW", country: "Australia", }, }, { id: uuidv4(), name: "James Saligbon", img: "https://avatars1.githubusercontent.com/u/40145293?s=400&u=b772b12e1b18e4ca477b7f35a3bc29b0364996dd&v=4", links: { website: "", linkedin: "", github: "https://github.com/jsaligbon", }, jobTitle: "Software Test Engineer, Web Developer, Python Developer", location: { city: "Manila", state: "", country: "Philippines", }, }, { id: uuidv4(), name: "Randy Harkediansa", img: "https://avatars3.githubusercontent.com/u/5647602?s=460&v=4", links: { website: "http://harked.name", linkedin: "https://www.linkedin.com/in/harkediansa/", github: "https://github.com/harked", }, jobTitle: "Full stack web(Javascript) developer", location: { city: "Batam", state: "Riau Islands", country: "Indonesia", }, }, { id: uuidv4(), name: "M S Srinivas", img: "https://avatars2.githubusercontent.com/u/12976376?s=400&u=813cf8efbecc9962515b6303f57796011698c176&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/mssrinivasbhargav/", github: "https://github.com/mssrinivas", }, jobTitle: "Cloud Application Engineer", location: { city: "Hyderbad", state: "", country: "India", }, }, { id: uuidv4(), name: "Beverly Atijera", img: "https://avatars0.githubusercontent.com/u/35483525?s=460&v=4", links: { website: "beverlyatijera.com", linkedin: "https://linkedin.com/in/beverly-atijera/", github: "https://github.com/bevssss", }, jobTitle: "Web Developer|Wordpress Developer|Electronics Engineer", location: { city: "", state: "", country: "Philippines", }, }, { id: uuidv4(), name: "Brittani Gongre", img: "", links: { website: "https://brittanigongre.com", linkedin: "https://www.linkedin.com/in/brittani-gongre-2b82b982/", github: "https://github.com/bgongre", }, jobTitle: "Front End Developer|Software Developer", location: { city: "Atlanta", state: "Georgia", country: "United States of America", }, }, { id: uuidv4(), name: "Lang Gao", img: "", links: { website: "http://langgao.org", linkedin: "https://www.linkedin.com/in/lang-gao-294b1087/", github: "https://github.com/ambitiousbird", }, jobTitle: "Full Stack Web Developer|Software Engineer", location: { city: "Philadelphia", state: "Pennnsylvania", country: "United States of America", }, }, { id: uuidv4(), name: "Aviwe Ngqukumba", img: "YOUR_IMG_URL", links: { website: "https://aviwembekeni.github.io/", linkedin: "https://www.linkedin.com/in/aviwe-ngqukumba-519369150", github: "https://github.com/aviwembekeni", }, jobTitle: "Full Stack Web Developer", location: { city: "Cape Town", state: "Western Cape", country: "South Africa", }, }, { id: uuidv4(), name: "Gadfrey Balacy", img: "https://avatars3.githubusercontent.com/u/18605878?s=400&u=43ce2aa03beb74884ac1270974cd019823abcfc5&v=4", links: { website: "https://gadfrey13.github.io/portfolio/", linkedin: "www.linkedin.com/in/gadfreybalacy", github: "https://github.com/gadfrey13", }, jobTitle: "Java Developer Web Developer", location: { city: "Sacramento", state: "California", contry: "United States", }, }, { id: uuidv4(), name: "Nathan Freney", img: "https://media.licdn.com/dms/image/C5603AQFZZ5eUxdAe5A/profile-displayphoto-shrink_100_100/0?e=1536192000&v=beta&t=YoOErrwwFmwD8ZrQYhH0mIxAbxl7LQlthvV6mJ3u1gc", links: { linkedin: "https://www.linkedin.com/in/nfreney/", github: "https://github.com/nathanfr", }, jobTitle: "Data Scientist", location: { city: "Seattle", state: "Washington", country: "United States", }, }, { id: uuidv4(), name: "Pablo Weisbek", img: "https://avatars3.githubusercontent.com/u/36734796?s=400&u=4bb889fdafe7a1ba83c03dd6642db9de06f09c7b&v=4", links: { website: "https://pablowbk.github.io", linkedin: "", github: "https://github.com/pablowbk", }, jobTitle: "Front End Developer | Photographer", location: { city: "Santa Clara del Mar", state: "Buenos Aires", country: "Argentina", }, }, { id: uuidv4(), name: "Rocío Sirvent", img: "https://photos.app.goo.gl/E5f9qz5YCRWkdmQa8", links: { website: "", linkedin: "https://www.linkedin.com/in/miperfilenlinkedin/?locale=en_US", github: "https://github.com/Ro008", }, jobTitle: "Full stack web developer", location: { city: "Luxembourg", state: "", country: "Luxembourg", }, }, { id: uuidv4(), name: "Ihar Mashniakou", img: "https://avatars3.githubusercontent.com/u/39849452?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/%D0%B8%D0%B3%D0%BE%D1%80%D1%8C-%D0%BC%D0%BE%D1%88%D0%BD%D1%8F%D0%BA%D0%BE%D0%B2-5b0574b1/", github: "https://github.com/Iharson", }, jobTitle: "Front End Developer", location: { city: "Minsk", state: "", country: "Belarus", }, }, { id: uuidv4(), name: "Christian Marca", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/christian-marca-663605167/", github: "https://github.com/ChristianMarca", }, jobTitle: "Electronic Engineer in Telecommunications | WEB Developer", location: { city: "Cuenca", state: "", country: "Ecuador", }, }, { id: uuidv4(), name: "Sivaram Pandariganthan", img: "", links: { website: "https://sivarampg.github.io", linkedin: "https://www.linkedin.com/in/sivaram-pandariganthan-b753a2145/", github: "https://github.com/SivaramPg", }, jobTitle: "Full Stack Web Developer", location: { city: "Panvel", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Radhika Maheshwari", img: "", links: { website: "https://Radhika8818.github.io", linkedin: "https://www.linkedin.com/in/radhika-maheshwari-601a0515a/", github: "https://github.com/Radhika8818", }, jobTitle: "Full Stack Web Developer", location: { city: "Sydney", state: "New South Wales", country: "Australia", }, }, { id: uuidv4(), name: "Taiwei Ko", img: "https://3gengagement.com/wp-content/uploads/2017/10/staff-780x500-taiwei_ko.png", links: { website: "http://taiweiko.com/", linkedin: "https://www.linkedin.com/in/taiweiko/", github: "https://github.com/macgeek30", }, jobTitle: "Full Stack UI/UX Developer | Full Stack Web Developer", location: { city: "Colorado Springs", state: "Colorado", country: "USA", }, }, { id: uuidv4(), name: "Jorge Goris", img: "https://avatars3.githubusercontent.com/u/25212548?s=460&v=4", links: { website: "http://jorgegoris.com/", linkedin: "https://www.linkedin.com/in/jorge-goris/", github: "https://github.com/JorgeG1105", }, jobTitle: "Full-Stack Developer", location: { city: "Bronx", state: "NY", country: "United States", }, }, { id: uuidv4(), name: "Kaemon Lovendahl", img: "https://kaemonisland.github.io/home/resources/images/Profileglasses.jpeg", links: { website: "https://kaemonisland.github.io/home/", linkedin: "https://www.linkedin.com/in/kaemon-lovendahl-08150564/", github: "https://github.com/KaemonIsland", }, jobTitle: "Web Developer", location: { city: "Salt Lake City", state: "UT", country: "USA", }, }, { id: uuidv4(), name: "Nhan Pham", img: "#", links: { website: "#", linkedin: "https://www.linkedin.com/in/nhan-pham-7315a8148/", github: "https://github.com/vinpearland", }, jobTitle: "Front-End Developer", location: { city: "Kansas City", state: "MO", country: "USA", }, }, { id: uuidv4(), name: "Ayush Gupta", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/agpt8", github: "https://github.com/agpt8", }, jobTitle: "Full Stack Developer", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Justin Lin", img: "https://photos.google.com/search/prom/photo/AF1QipPfkjqn0y2L8zWuqeqmZ2MBZmY5bGzav2FZ9rFE", links: { website: "", linkedin: "https://www.linkedin.com/in/justinlinw/", github: "github.com/justinwlin", }, jobTitle: "FullStack Developer | Software Engineer | Student", location: { city: "Irvine | NYC", state: "CA | NY", country: "USA", }, }, { id: uuidv4(), name: "Viaceslav Vasiljev", img: "https://www.theacshop.com/vvasiljevAvatar.jpg", links: { website: "", linkedin: "www.linkedin.com/in/vjvasiljev", github: "https://github.com/vjvasiljev", }, jobTitle: "Front End Developer", location: { city: "Klaipeda", state: "", country: "Lithuania", }, }, { id: uuidv4(), name: "Matt Gaddes", img: "", links: { website: "www.mattgaddes.com", linkedin: "https://www.linkedin.com/in/matthew-gaddes-30ba65b4/", github: "https://github.com/gaddes", }, jobTitle: "Front-end Web Developer", location: { city: "Newcastle", state: "Tyne and Wear", country: "UK", }, }, { id: uuidv4(), name: "Anish Ojha", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/anish-ojha-281a1a100", github: "https://www.github.com/Anishgoofle", }, jobTitle: "Software-Developer", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Jacobo Martinez", img: "https://raw.githubusercontent.com/cobimr/cobimr.github.io/master/assets/images/profile.jpg", links: { website: "https://cobimr.github.io/", linkedin: "https://linkedin.com/in/cobimr", github: "https://github.com/cobimr", }, jobTitle: "Front-End Developer", location: { city: "Caracas", state: "", country: "Venezuela", }, }, { id: uuidv4(), name: "Brittany French", img: "https://media.licdn.com/dms/image/C5603AQGZf9jlQAIqWw/profile-displayphoto-shrink_200_200/0?e=1537401600&v=beta&t=UpkDFyEub9vZ1i8cGBbJVh5X1omTitszSRYGig6w8n8", links: { website: "", linkedin: "https://www.linkedin.com/in/brittanyfrench/", github: "https://github.com/frenchie048", }, jobTitle: "Web Developer", location: { city: "Scottsdale", state: "AZ", country: "USA", }, }, { id: uuidv4(), name: "Meet Patel", img: "https://avatars0.githubusercontent.com/u/35022070?s=400&u=b76dfbc5a10ab985fde4671a2dd55236c01a3c2d&v=4", links: { website: "https://mdpatel7.github.io", linkedin: "https://www.linkedin.com/in/mdpatel7", github: "https://github.com/mdpatel7", }, jobTitle: "Full Stack Web Developer", location: { city: "Phoenix", state: "AZ", country: "USA", }, }, { id: uuidv4(), name: "Maitreyi Thakkar", img: " ", links: { website: "https://maitreyithakkar.000webhostapp.com/", linkedin: "https://www.linkedin.com/in/maitreyithakkar/", github: "https://github.com/mthakka2", }, jobTitle: "Full Stack Developer", location: { city: "Tempe", state: "Arizona", country: "United States of America", }, }, { id: uuidv4(), name: "Efraim A. Lorenzana", img: "https://drive.google.com/open?id=1AwOIao9RBBIdhC7FRK0ZIkwOyB6OB6uZ", links: { website: "https://efraimlorenzana.github.io/portfolio/", linkedin: "https://www.linkedin.com/in/efraim-lorenzana-4bbb2575/", github: "https://github.com/efraimlorenzana", }, jobTitle: "Full Stack Web Developer", location: { city: "Taytay", state: "Rizal", country: "Philippines", }, }, { id: uuidv4(), name: "Luca Castelnuovo", img: "https://avatars1.githubusercontent.com/u/26206253?s=400&u=acf60656ff9f2d7b8cba01001fa8e2e7ff2a03b5&v=4", links: { website: "https://lucacastelnuovo.nl", linkedin: "https://www.linkedin.com/in/ltcastelnuovo", github: "https://github.com/Luca-Castelnuovo", }, jobTitle: "Full-Stack dev in training", location: { city: "Amsterdam", state: "", country: "Netherlands", }, }, { id: uuidv4(), name: "Mark Anthony Saromines", img: "https://avatars1.githubusercontent.com/u/40188798?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/tonysaromines", github: "https://github.com/tonvlad88", }, jobTitle: "PHP Developer, Delphi Developer, Full-Stack Developer in training", location: { city: "Cebu", state: "", country: "Philippines", }, }, { id: uuidv4(), name: "Miguel Ben", img: "https://scontent-iad3-1.xx.fbcdn.net/v/t1.0-9/17796423_10154826007246077_8781580105085699644_n.jpg?_nc_cat=0&oh=3024a1cf3b3be9b901d6131011905bfc&oe=5BDF60BA", links: { website: "https://migben.github.io", linkedin: "https://www.linkedin.com/in/miguelben", github: "https://www.github.com/migben", }, jobTitle: "Front-End Dev", location: { city: "Manhattan", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "Ignacio Rodrigues", img: "https://avatars2.githubusercontent.com/u/22848246?s=460&v=4", links: { website: "http://www.ignaciorodrigues.com/", linkedin: "https://www.linkedin.com/in/ignaciorodriguesoficial/", github: "https://www.github.com/IgnacioRodrigues", }, jobTitle: "UX Full Stack Developer", location: { city: "Mar del Plata", state: "Buenos Aires", country: "Argentina", }, }, { id: uuidv4(), name: "Weiqiang Wang", img: "https://avatars1.githubusercontent.com/u/40891002?s=400&u=ffa50586a621bc5fa14ac1fab485129031ec3129&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/为强-王-92155a166/", github: "https://github.com/Toro2018", }, jobTitle: "Javascript Engineer", location: { city: "Hangzhou", state: "Zhejiang", country: "China", }, }, { id: uuidv4(), name: "Jonathan Sou", img: "http://i64.tinypic.com/34pmlpv.jpg", links: { website: "http://www.jonathansou.com", linkedin: "https://www.linkedin.com/in/jonathan-sou-ab7738132/", github: "https://github.com/Jonaphant", }, jobTitle: "Front End Developer", location: { city: "Sacramento", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Luca Lo Forte", img: "https://avatars3.githubusercontent.com/u/26909188?s=400&u=ea2607b5e760996b7bc8cb3009baafb2f30a8732&v=4", links: { website: "https://loforteluca.github.io/", linkedin: "https://www.linkedin.com/in/luca-lo-forte-172462127/", github: "https://github.com/Pizzu", }, jobTitle: "Full Stack Web Developer & iOS Dev", location: { city: "Milan", state: "", country: "Italy", }, }, { id: uuidv4(), name: "Yelena Guliyeva", img: "https://media.licdn.com/dms/image/C5603AQEBPck0FtS4XQ/profile-displayphoto-shrink_200_200/0?e=1538006400&v=beta&t=Yx2L5tmzvvmQ9D9L_NxrfMtHzzT2NPgVasLrgnOEINg", links: { website: "https://gulbadam.github.io/Portfolio/", linkedin: "https://www.linkedin.com/in/yelena-guliyeva/", github: "https://github.com/gulbadam", }, jobTitle: "Full Stack Web Developer", location: { city: "Rocklin", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Carl-johan Landin", img: "https://scontent-arn2-1.xx.fbcdn.net/v/t1.0-9/13466497_10154160626281145_6570608543054940946_n.jpg?_nc_cat=0&oh=3e33b159e007be5b9ade772d2b393640&oe=5BD90A04", links: { website: "", linkedin: "", github: "https://github.com/carljohanlandin/ZtM-Job-Board", }, jobTitle: "Electrical engineer, Full stack web developer", location: { city: "Gothenburg", state: "", country: "Sweden", }, }, { id: uuidv4(), name: "Grigore Oleinicov", img: "http://ogrigore.com/assets/images/cm1.jpg", links: { website: "http://ogrigore.com/", linkedin: "https://www.linkedin.com/in/grigoreoleinicov/", github: "", }, jobTitle: "Front End Developer", location: { city: "Chisinau", state: "", country: "Moldova", }, }, { id: uuidv4(), name: "Hagay Hazan", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/hagayhazan/", github: "", }, jobTitle: "Software Development Engineer in Test Manager", location: { city: "Los Angeles", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "William Chance Peragine", img: "https://avatars3.githubusercontent.com/u/38982502?s=400&u=34ebd1402c29b1222e203539eb830f7ffdd97229&v=4", links: { website: "", linkedin: "", github: "https://github.com/WCPeragine", }, jobTitle: "Full Stack Developer", location: { city: "Oxford", state: "PA", country: "USA", }, }, { id: uuidv4(), name: "Satyam Dhawam", img: "", links: { website: "", linkedin: "", github: "https://github.com/satyamdhawan", }, jobTitle: "Full Stack Developer", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Raymond Lim", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/raymonddev0/", github: "https://github.com/raymonddev0", }, jobTitle: "Full Stack Developer", location: { city: "", state: "", country: "Singapore", }, }, { id: uuidv4(), name: "Donald Haguma", img: "", links: { website: "https://www.hagthedon.com", linkedin: "https://www.linkedin.com/in/hagthedon/", github: "https://github.com/HagTheDon", }, jobTitle: "Full Stack Developer", location: { city: "Gangnam", state: "Seoul", country: "Korea (Republic of)", }, }, { id: uuidv4(), name: "David Michael Hanover", img: "https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/39689_424147188258_3544124_n.jpg?_nc_cat=0&oh=fe7455a0655c38d17e9e01fa4886c9b4&oe=5BDB4C47", links: { website: "http://DavidHanover89.com", linkedin: "https://linkedin.com/in/DavidHanover", github: "https://github.com/DavidHanover", }, jobTitle: "Web-Developer (Intern)", location: { city: "San Francisco", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Jayagovind.E", img: "", links: { website: "", linkedin: "www.linkedin.com/in/jayzonline", github: "https://github.com/jayagovinde", }, jobTitle: "Web-Developer", location: { city: "Kochi", state: "Kerala", country: "India", }, }, { id: uuidv4(), name: "Cedric Liu", img: "https://avatars3.githubusercontent.com/u/19866555?s=400&u=0e0ab9c654f1477d94464207bcd5dfedb7a4c3ab&v=4", links: { website: "http://cedricliu.github.io/", linkedin: "www.linkedin.com/in/cedricliu0019", github: "https://github.com/cedricliu", }, jobTitle: "Web Design/ Developer", location: { city: "Los Angeles", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Ehtisham Shahid Abbasi", img: "https://avatars0.githubusercontent.com/u/41646180?s=460&v=4", links: { website: "http://www.competeagainstme.com/", linkedin: "https://www.linkedin.com/in/ehtsham333/", github: "https://github.com/ehtsham333", }, jobTitle: "Full Stack Developer", location: { city: "Islamabad", state: "", country: "Pakistan", }, }, { id: uuidv4(), name: "Muhammed Tijani", img: "https://avatars0.githubusercontent.com/u/28782324?s=400&u=25bc95f019256adaed99f0cee69dcc8d26a4b6d8&v=4", links: { website: "http://coolzyte.com/", linkedin: "https://www.linkedin.com/in/coolzyte/", github: "https://github.com/coolzyte", }, jobTitle: "Full Stack Developer", location: { city: "", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Luberenga John", img: "https://avatars0.githubusercontent.com/u/41646180?s=460&v=4", links: { website: " ", linkedin: "https://www.linkedin.com/in/luberenga/", github: "https://github.com/john-luberenga/", }, jobTitle: "Full Stack Developer", location: { city: "Kampala", state: "", country: "Uganda", }, }, { id: uuidv4(), name: "Sean Dees", img: "https://pbs.twimg.com/profile_images/815688059211677696/nTFVI3is_400x400.jpg", links: { website: "https://seandees.tech/", linkedin: "https://ca.linkedin.com/in/sean-dees-666475105", github: "https://github.com/sdees82", }, jobTitle: "Full Stack Developer", location: { city: "Detroit", state: "Michigan", country: "United States", }, }, { id: uuidv4(), name: "Firat Tale", img: "https://media.licdn.com/dms/image/C4D03AQG4ep1f6b2KuA/profile-displayphoto-shrink_200_200/0?e=1539216000&v=beta&t=u-4n8_CP3k15CVvkSCKufdC3vYdIx_q2L5f7O3wgt5w", links: { linkedin: "https://www.linkedin.com/in/f%C4%B1rat-tale-85328013a/", github: "https://github.com/firattale", }, jobTitle: "Full Stack Web Developer", location: { city: "Istanbul", state: "", country: "Turkey", }, }, { id: uuidv4(), name: "Andrius Mankauskas", img: "https://andriusm.com/p_images/ztm_jb.JPG", links: { website: "https://andriusm.com/", linkedin: "https://www.linkedin.com/in/andrius-mankauskas-06b684163/", github: "https://github.com/Gandrius", }, jobTitle: "Web Developer", location: { city: "Vilnius", state: "", country: "Lithuania", }, }, { id: uuidv4(), name: "Andra Strachinaru", img: "", links: { website: "https://andrapetronela.github.io/andraS.github.io/", linkedin: "https://www.linkedin.com/in/andra-strachinaru/", github: "https://github.com/andrapetronela", }, jobTitle: "Web Developer", location: { city: "Luton", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Julian Rios", img: "https://avatars1.githubusercontent.com/u/10436307?s=400&u=79c7deee6fa75261de40d3ab85af9684becb2808&v=4", links: { website: "https://eastcoastninja.github.io/", linkedin: "https://www.linkedin.com/in/riosjulian/", github: "https://github.com/eastcoastninja", }, jobTitle: "Full Stack Developer", location: { city: "Philadelphia", state: "PA", country: "USA", }, }, { id: uuidv4(), name: "Asam Shan", img: "https://image.ibb.co/faPFi9/profile.png", links: { website: "https://shan5742.github.io/", linkedin: "https://www.linkedin.com/in/asamshan/", github: "https://github.com/shan5742", }, jobTitle: "Front End Developer", location: { city: "Middlesbrough", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "John Fichera", img: "https://avatars3.githubusercontent.com/u/24895699?s=460&v=4", links: { website: "", linkedin: "www.linkedin.com/in/johnpaulfichera", github: "https://github.com/JohnPaulFich", }, jobTitle: "Web Content Specialist & Marketing Coordinator", location: { city: "St. Johnsbury", state: "VT", country: "United States", }, }, { id: uuidv4(), name: "Richard Meadows", img: "https://avatars0.githubusercontent.com/u/679034?v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/richardmeadows/", github: "https://github.com/rjmead23", }, jobTitle: "Scrum Master and Web Developer", location: { city: "Portland", state: "Oregon", country: "United States", }, }, { id: uuidv4(), name: "Lawrence Fidelino", img: "https://avatars2.githubusercontent.com/u/42109686?s=400&u=94c83124dd077b0b6a09c226f2e87377afa9f619&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/lawrence-fidelino-383727153/", github: "https://github.com/lfidelino", }, jobTitle: "Full Stack Web Developer", location: { city: "Davao", state: "", country: "Philippines", }, }, { id: uuidv4(), name: "Winter Meng", img: "https://pixabay.com/p-1246611/?no_redirect", links: { website: "", linkedin: "https://www.linkedin.com/in/winter-meng-347797121/", github: "https://github.com/qm3", }, jobTitle: "Full Stack Web Developer and Software Engineer", location: { city: "Seattle", state: "Washington", country: "United States of America", }, }, { id: uuidv4(), name: "Paul Okonko", img: "https://paulokonko.com/images/contact-img.jpg", links: { website: "", linkedin: "https://www.paulokonko.com", github: "https://github.com/emppas", }, jobTitle: "Full Stack Web Developer", location: { city: "Port Harcourt", state: "Rivers", country: "Nigeria", }, }, { id: uuidv4(), name: "Stephen Lonergan", img: "https://photos.app.goo.gl/CkBYENtw5qDW7dC27", links: { website: "", linkedin: "https://www.linkedin.com/in/stephen-lonergan-8401b95a/", github: "https://github.com/lonergans", }, jobTitle: "Senior SharePoint/Full Stack Developer", location: { city: "Dublin", state: "", country: "Ireland", }, }, { id: uuidv4(), name: "Nathan Brown", img: "https://avatars1.githubusercontent.com/u/34713147?s=460&v=4", links: { website: "https://www.nathanabrown.com", linkedin: "https://www.linkedin.com/in/nathan-a-brown", github: "https://n8brown1.github.io/", }, jobTitle: "Web Developer", location: { city: "Wells", state: "Maine", country: "United States", }, }, { id: uuidv4(), name: "Cristian Iosif", img: "https://avatars1.githubusercontent.com/u/7920412?s=400&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/ciosif", github: "https://github.com/cristake", }, jobTitle: "Web Developer", location: { city: "Bucharest", state: "Bucharest", country: "Romania", }, }, { id: uuidv4(), name: "Martin Fassi", img: "https://photos.app.goo.gl/eKFPLsqu2P4cJtJDA", links: { website: "", linkedin: "https://www.linkedin.com/in/martinfassi/", github: "https://github.com/mfassi", }, jobTitle: "Web Developer/Help Desk Technician", location: { city: "Catania", state: "Catania", country: "Italy", }, }, { id: uuidv4(), name: "Bucataru Eduard", img: "https://avatars3.githubusercontent.com/u/41817383?s=400&u=c228945a296d278d62c95d688c81b0c158c29a41&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/eduard-bucataru-8400ab16b/", github: "https://github.com/edybn22", }, jobTitle: "Full Full-stack developer", location: { city: "Bucharest", state: "Bucharest", country: "Romania", }, }, { id: uuidv4(), name: "Ivan Taghavi Espinosa", img: "https://avatars3.githubusercontent.com/u/28016157?s=400&v=4", links: { website: "", linkedin: "www.linkedin.com/in/ivan-taghavi-espinosa", github: "https://github.com/skatersezo", }, jobTitle: "Full-Stack Developer", location: { city: "Salzburg", state: "Salzburg", country: "Austria", }, }, { id: uuidv4(), name: "Keaton McCune", img: "https://avatars2.githubusercontent.com/u/42250790?s=400&u=5ff48ddb3fbe7a50e247958687ffc6c9b3640771&v=4", links: { website: "https://mccunex.github.io/", linkedin: "linkedin.com/in/keaton-mccune-15010616b", github: "https://github.com/mccunex", }, jobTitle: "FREELANCE FULL STACK WEB DEVELOPER", location: { city: "Salt Lake City", state: "UT", country: "United States", }, }, { id: uuidv4(), name: "Lauren Mayers", img: "https://avatars3.githubusercontent.com/u/35752699?s=460&v=4", links: { website: "https://laurenmayers.github.io/", linkedin: "https://www.linkedin.com/in/laurenmayers/", github: "https://github.com/laurenmayers", }, jobTitle: "Front-End Developer", location: { city: "Ottawa", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Pankaj Jaiswal", img: "https://scontent.fbom19-2.fna.fbcdn.net/v/t1.0-9/26730868_778419902357592_2424208913221190760_n.jpg?_nc_cat=0&oh=ac851a4e2dd91d15a6503d410d6bcf52&oe=5C208835", links: { github: "htpps://github.com/midnightgamer", }, jobTitle: "Javascript Developer", location: { city: "Mumbai", state: "Maharastra", country: "India", }, }, { id: uuidv4(), name: "Prince Ikede", img: "", links: { website: "https://funand.github.io/", linkedin: "https://www.linkedin.com/in/prince-ikede-a1396a13a/", github: "https://github.com/funand", }, jobTitle: "Software Engineer/Front-End Developer", location: { city: "New York City", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Kostiantyn Borodach", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/kostiantyn-borodach-4a3859152/", github: "https://github.com/Kostiantyn777", }, jobTitle: "Full-Stack Developer", location: { city: "Barcelona", state: "Barcelona", country: "Spain", }, }, { id: uuidv4(), name: "Ivaylo Tsochev", img: "https://www.ivaylotsochev.com/img/me.png", links: { website: "https://www.ivaylotsochev.com/", linkedin: "https://www.linkedin.com/in/ivaylotsochev/", github: "https://github.com/IvoTsochev", }, jobTitle: "Web Developer", location: { city: "Sofia", state: "Sofia", country: "Bulgaria", }, }, { id: uuidv4(), name: "Alexis San Javier", img: "http://www.alexissj.com/assets/images/blackandwhite.jpg", links: { website: "http://www.alexissj.com", linkedin: "https://www.linkedin.com/in/alexissj", github: "https://github.com/code-guy21", }, jobTitle: "Web Developer", location: { city: "Orlando", state: "FL", country: "USA", }, }, { id: uuidv4(), name: "Yassire Mtioui", img: "https://yassiremt.github.io/pf/static/media/mypic.befc31d5.jpg", links: { website: "https://yassiremt.github.io/pf/", linkedin: "https://www.linkedin.com/in/yassiremt/", github: "https://github.com/Yassiremt", }, jobTitle: "Front-end Developer", location: { city: "Fez", state: "", country: "Morocco", }, }, { id: uuidv4(), name: "Faiz Hameed", img: "https://i.postimg.cc/XNzKhnyV/DSC_6402_1_copy.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/faizhameed/", github: "https://github.com/faizhameed", }, jobTitle: "Full Stack Web-Developer", location: { city: "Kottakal", state: "Kerala", country: "India", }, }, { id: uuidv4(), name: "Saumya Sharma", img: "http://iamsaumya.co/wp-content/uploads/2018/09/download.png", links: { website: "iamsaumya.co", linkedin: "https://www.linkedin.com/in/saumya-sharma-488a4356/", github: "https://github.com/saumya010", }, jobTitle: "Front-end Developer", location: { city: "New York", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Caio Vilas Boas", img: "https://media.licdn.com/dms/image/C4D03AQGtAQ0_ZSl0Sg/profile-displayphoto-shrink_200_200/0?e=1543449600&v=beta&t=ScJg8ABsUNqIPpzA78vWEGadnaZgWbHT9HKMS1atvyQ", links: { website: "http://valutti.co,", linkedin: "https://www.linkedin.com/in/caiovilas/", github: "https://github.com/caiovilas", }, jobTitle: "Full Stack Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Carlos Samuel Hernandez", img: "https://carls13.github.io/mypage/myself.jpg", links: { website: "https://carls13.github.io/mypage/", linkedin: "https://www.linkedin.com/in/carlos-samuel-hern%C3%A1ndez-blanco-b35075152/", github: "https://github.com/Carls13", }, jobTitle: "Web Developer", location: { city: "Valencia", state: "", country: "Venezuela", }, }, { id: uuidv4(), name: "Dmitry Mironov", img: "https://media.licdn.com/dms/image/C4E03AQGCI_gPvAqKNg/profile-displayphoto-shrink_200_200/0?e=1544054400&v=beta&t=KmH6YtxhvQNxnYsJ8jiN7Wuclx3-fWveZe11xCfb4bc", links: { website: "https://www.linkedin.com/in/mironovdmitry", linkedin: "https://www.linkedin.com/in/mironovdmitry/", github: "https://github.com/antonykidis", }, jobTitle: "Web Developer", location: { city: "Tel-Aviv", state: "IL", country: "Israel", }, }, { id: uuidv4(), name: "Hamza Benzaoui", img: "https://raw.githubusercontent.com/HBenzaoui/HTML-Signature/master/images/image6.png", links: { website: "https://www.linkedin.com/in/HamzaBenzaoui", linkedin: "https://www.linkedin.com/in/HamzaBenzaoui/", github: "https://github.com/HBenzaoui", }, jobTitle: "Full-Stack JavaScript/Java Developer", location: { city: "Bab Ezzouar", state: "Algiers", country: "Algeria", }, }, { id: uuidv4(), name: "Shruti Shastri", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/shruti-shastri-307279141", github: "https://github.com/shruti49", }, jobTitle: "Front-End Developer", location: { city: "", state: "Delhi-NCR", country: "India", }, }, { id: uuidv4(), name: "Thea Mushambadze", img: "https://avatars0.githubusercontent.com/u/6440158?s=400&u=145dc909f52cac0c93f24a5e15fb22e2dc9edb5a&v=4", links: { website: "https://theamax.me/", linkedin: "www.linkedin.com/in/theamushambadze", github: "https://github.com/highflyer910", }, jobTitle: "Front-End Developer", location: { city: "Tbilisi", state: "", country: "Georgia (Remote or Willing to Relocate)", }, }, { id: uuidv4(), name: "Kennith Nichol", img: "https://secure.gravatar.com/avatar/5d8cc0c05f351bd587222bccf38380a8", links: { linkedin: "https://ca.linkedin.com/in/kennithnichol", github: "https://github.com/kennithnichol", }, jobTitle: "Remote Full Stack Developer", location: { city: "", state: "BC", country: "Canada", }, }, { id: uuidv4(), name: "Yesenia Gonzalez", img: "", links: { website: "", linkedin: "www.linkedin.com/in/yglez", github: "https://github.com/Yglez", }, jobTitle: "Full Stack Developer", location: { city: "San Diego", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Jakub Wojtyra", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/jakub-wojtyra-07b783129/", github: "https://github.com/frozenfroggie", }, jobTitle: "Full Stack Developer", location: { city: "Wrocław", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Andrew Diedrich", img: "https://i.postimg.cc/MGxfvFmm/14271_C5_F-5151-492_A-_B98_C-_CF7_BB1_DAA290.jpg", links: { website: "https://andrewdiedrich.herokuapp.com/", linkedin: "https://www.linkedin.com/in/andrew-diedrich-a0a58893/", github: "https://github.com/AndrewDiedrich", }, jobTitle: "Developer/Analyst", location: { city: "Duluth", state: "Minnesota", country: "USA", }, }, { id: uuidv4(), name: "Italo Aurelio", img: "https://i.postimg.cc/WbGXtqh0/italo-inoweb.png", links: { website: "https://www.inoweb.com.br", linkedin: "https://www.linkedin.com/in/italo-aurelio-13b97172/", github: "https://github.com/Italox", }, jobTitle: "Front-End Developer", location: { city: "Curitiba", state: "Paraná", country: "Brazil", }, }, { id: uuidv4(), name: "Vincent Yan", img: "https://github.com/envincebal/my_portfolio/blob/master/build/img/pic.jpg?raw=true", links: { website: "https://envincebal.github.io/my_portfolio/", linkedin: "https://www.linkedin.com/in/vincent-yan/", github: "https://github.com/envincebal", }, jobTitle: "Front-End Developer", location: { city: "Portland", state: "Oregon", country: "USA", }, }, { id: uuidv4(), name: "Diogo Carvalho", img: "", links: { website: "https://diogo-p-carvalho.github.io/portfolio", linkedin: "https://www.linkedin.com/in/diogo-carvalho-83a96a14a", github: "https://github.com/Diogo-P-Carvalho", }, jobTitle: "Web Developer", location: { city: "Aveiro", state: "", country: "Portugal", }, }, { id: uuidv4(), name: "Thiago Marinho", img: "https://avatars2.githubusercontent.com/u/380327?s=150&v=3", links: { website: "http://tgmarinho.com", linkedin: "https://www.linkedin.com/in/tgmarinho", github: "https://github.com/tgmarinho", }, jobTitle: "React Developer - Home Office", location: { city: "Dourados", state: "MS", country: "Brazil", }, }, { id: uuidv4(), name: "Moshe Hamiel", img: "http://moshe-hamiel.info/wp-content/uploads/0.jpg", links: { website: "http://www.moshe-hamiel.info", linkedin: "https://www.linkedin.com/in/moshe-chamuel-761433117/", github: "https://github.com/Chamuelm", }, jobTitle: "SW Developer (Student)", location: { city: "Porat", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Rafael Rojas Covarrubias", img: "https://rafaelrojascov.com/images/rafael.jpg", links: { website: "https://www.rafaelrojascov.com", linkedin: "https://www.linkedin.com/in/RafaelRojasCov", github: "https://www.github.com/RafaelRojasCov", }, jobTitle: "Front-End React Developer", location: { city: "Santiago", state: "RM", country: "Chile", }, }, { id: uuidv4(), name: "Marc Sakalauskas", img: "https://avatars3.githubusercontent.com/u/42618353?s=460&v=4", links: { website: "", linkedin: "www.linkedin.com/in/scramblelock", github: "https://www.github.com/Scramblelock", }, jobTitle: "Full Stack Web Developer", location: { city: "Montréal", state: "QC", country: "Canada", }, }, { id: uuidv4(), name: "Ahmed Hajat", img: "", links: { website: "", linkedin: "www.linkedin.com/in/ahmed-hajat", github: "https://www.github.com/AhmedH14", }, jobTitle: "Project Manager and Frontend Developer", location: { city: "Johannesburg", state: "Gauteng", country: "South Africa", }, }, { id: uuidv4(), name: "Adriano Ianase", img: "https://media.licdn.com/dms/image/C4E03AQGTfv08sv9fBA/profile-displayphoto-shrink_200_200/0?e=1543449600&v=beta&t=8V8fXTBPNah4oN2HVXp8Ybe6EeXBbIdBtxmkxxmt298", links: { linkedin: "https://www.linkedin.com/in/adriano-ianase/", github: "https://github.com/adrianomi", }, jobTitle: "Front-End Developer", location: { city: "Campo Grande", state: "Mato Grosso do Sul", country: "Brazil", }, }, { id: uuidv4(), name: "Nilkamal Shah", img: "https://media-exp2.licdn.com/dms/image/C4E03AQF_4aLCPUuTjw/profile-displayphoto-shrink_200_200/0?e=1585785600&v=beta&t=zk7nach2oBxIP9QU3mDT61hwr_fbVkxbgi8eHs4NOAo", links: { linkedin: "https://www.linkedin.com/in/nilkamal-shah/", github: "https://github.com/nilkamal", }, jobTitle: "Senior Associate Technology Experience L1", location: { city: "Bangalore", state: "Karnataka", country: "INDIA", }, }, { id: uuidv4(), name: "Kanisk Chakraborty", img: "https://avatars2.githubusercontent.com/u/41521331?s=400&u=bbce04d3a1431b93b25a3f2b01430ab6f0ae3b03&v=4", links: { website: "http://knsk.me/", linkedin: "https://www.linkedin.com/in/kaniskc/", github: "https://github.com/k-n-sk", }, jobTitle: "Software Engineer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Siegfred Balona", img: "https://static-cdn.jtvnw.net/jtv_user_pictures/b3660425-a3c6-49b6-b87a-a8d487dd37b2-profile_image-300x300.jpg", links: { linkedin: "https://www.linkedin.com/in/siegblink/", github: "https://github.com/siegblink", }, jobTitle: "Fullstack Javascript Developer", location: { city: "Cebu City", state: "Cebu", country: "Philippines", }, }, { id: uuidv4(), name: "Luis Parra", img: "https://avatars2.githubusercontent.com/u/16653744?s=400&u=44a21a2b09172c9f2d300ee51aa95c14d3c8c8b8&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/parral", github: "https://github.com/lparra", }, jobTitle: "Full-Stack Dev", location: { city: "Fort Lauderdale", state: "Florida", country: "United States of America", }, }, { id: uuidv4(), name: "Raksha Kashyap", img: "https://avatars3.githubusercontent.com/u/25738721?s=400&u=59434ae41a079765afab03854be343412e62617b&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/rakshakashyap", github: "https://github.com/kashyap-raksha", }, jobTitle: "Full-Stack Dev", location: { city: "San Jose", state: "California", country: "United States of America", }, }, { id: uuidv4(), name: "Mika Riepponen", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/mika-riepponen/", github: "https://github.com/Vrites", }, jobTitle: "Front-End Web Developer", location: { city: "Espoo", state: "", country: "Finland", }, }, { id: uuidv4(), name: "Earle Poole", img: "https://static.wixstatic.com/media/d84b47_a4583d5323484368983b364eeddf1be8~mv2_d_3170_2911_s_4_2.jpg/v1/fill/w_161,h_161,al_c,q_80,usm_0.66_1.00_0.01/d84b47_a4583d5323484368983b364eeddf1be8~mv2_d_3170_2911_s_4_2.jpg", links: { website: "http://thepoolehouse.com/", linkedin: "https://www.linkedin.com/in/earle-poole-937736115/", github: "https://github.com/Earle-Poole", }, jobTitle: "Full-Stack Dev", location: { city: "Houston", state: "TX", country: "United States of America", }, }, { id: uuidv4(), name: "Rahul Marupaka", img: "https://media.licdn.com/dms/image/C5603AQHT9YtiI461Ug/profile-displayphoto-shrink_200_200/0?e=1545868800&v=beta&t=V7VgLpQZmELkL_hdxExEXes9lOn1_oMsN7FFF8SqWwE", links: { website: "www.rahulmarupaka.github.io", linkedin: "http://www.linkedin.com/in/rahulmarupaka", github: "www.github.com/rahulmarupaka", }, jobTitle: "Front-End Developer", location: { city: "Chicago", state: "Illinois", country: "USA", }, }, { id: uuidv4(), name: "Adam Round", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/adam-round-1665367a/", github: "https://github.com/Roundy123", }, jobTitle: "Data Scientist", location: { city: "Bristol", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Udi Levy", img: "https://static.wixstatic.com/media/d84b47_01a93a21ac9a407fb2bd56ffbc719cfa~mv2_d_3200_2885_s_4_2.jpg/v1/crop/x_112,y_0,w_2880,h_2885/fill/w_225,h_225,al_c,q_80,usm_0.66_1.00_0.01/d84b47_01a93a21ac9a407fb2bd56ffbc719cfa~mv2_d_3200_2885_s_4_2.webp", links: { website: "", linkedin: "https://www.linkedin.com/in/udi-levy-187865115/", github: "https://github.com/Udi18", }, jobTitle: "Full Stack Web Developer", location: { city: "Houston", state: "Texas", country: "USA", }, }, { id: uuidv4(), name: "Uriel Hayon", img: "https://instagram.faep11-1.fna.fbcdn.net/vp/15a806cc0355ab0df6233dcb220e863c/5C89B2E4/t51.2885-19/11377620_961066340581973_1665338264_a.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/uriel-hayon-4354626b/", github: "https://github.com/uhayon", }, jobTitle: "Full Stack Developer (Front End mainly)", location: { city: "CABA", state: "Buenos Aires", country: "Argentina", }, }, { id: uuidv4(), name: "Ruslan Anisimov", img: "https://media.licdn.com/dms/image/C5603AQFwm7MvgdqNlQ/profile-displayphoto-shrink_200_200/0?e=1546473600&v=beta&t=o2rX9xoGqLZMDNZWPiueErACYr7b_ezYmzwTgRYFvFk", links: { website: "http://ruslananisimov.com", linkedin: "https://www.linkedin.com/in/ruslan-anisimov/", github: "https://github.com/napvlm", }, jobTitle: "Front-end Developer", location: { city: "Kyiv", state: "", country: "Ukraine", }, }, { id: uuidv4(), name: "Michael Hill", img: "https://avatars0.githubusercontent.com/u/40850298?s=400&u=18b0309d1c4c08d1fe5cfbd0feb60039b5a141bf&v=4", links: { website: "", linkedin: "", github: "https://github.com/mk-hill", }, jobTitle: "Web Developer", location: { city: "Little Rock", state: "Arkansas", country: "USA", }, }, { id: uuidv4(), name: "John Davis", img: "https://avatars0.githubusercontent.com/u/1872844?s=400&u=164c5898d4246358676e04450a4b9eed792108cb&v=4", links: { website: "tidyneat.com", linkedin: "https://www.linkedin.com/in/johnjaydavis/", github: "https://github.com/512jay", }, jobTitle: "Developer", location: { city: "Washington", state: "DC", country: "USA", }, }, { id: uuidv4(), name: "Gil Weinstock", img: "https://avatars1.githubusercontent.com/u/37132245?s=400&u=cc8b69cae1e4c6f6e6394a3b297df7fa60c94bac&v=4", links: { website: "https://gildw.com", linkedin: "https://www.linkedin.com/in/gilweinstock/", github: "https://github.com/cippero", }, jobTitle: "Full Stack Developer (JS/TS/Python/C#)", location: { city: "Seattle", state: "WA", country: "USA", }, }, { id: uuidv4(), name: "Joachim Tranvag", img: "https://tranjog.github.io/safari/img/profilepic.jpg?raw=true", links: { website: "http://rafikiweb.com/", linkedin: "https://www.linkedin.com/in/joachimtra/", github: "https://github.com/tranjog", }, jobTitle: "Web and Digital Systems Developer", location: { city: "Exeter", state: "Devon", country: "United Kingdom", }, }, { id: uuidv4(), name: "Matheus Souza", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/matheus-h-souza/", github: "https://github.com/Teraus", }, jobTitle: "Web, C++ and Java Developer", location: { city: "Brasília", state: "Federal District", country: "Brazil", }, }, { id: uuidv4(), name: "Marco Sciortino", img: "https://sciortino-mrc.netlify.com/static/media/photo.5ae776c5.jpg", links: { website: "http://sciortino-mrc.netlify.com", linkedin: "https://www.linkedin.com/in/marco-sciortino-429938155/", github: "https://github.com/sciortinomrc", }, jobTitle: "Full Stack Javascript Web Dev, C#", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Ariel Tan", img: "https://media.licdn.com/dms/image/C5603AQHBlxdQPIa1nA/profile-displayphoto-shrink_200_200/0?e=1547078400&v=beta&t=06c7i75kKLmY8d2tKcTHgAyHWCmcu-gOVEC4NjGXcno", links: { website: "", linkedin: "https://www.linkedin.com/in/ariel-tan-67123b124/", github: "https://github.com/arieltan18", }, jobTitle: "Junior Web & Mobile Developer", location: { city: "", state: "", country: "Malaysia", }, }, { id: uuidv4(), name: "Swaroop S", img: "https://scontent-maa2-1.xx.fbcdn.net/v/t31.0-1/c2.0.960.960/p960x960/18209164_1116442258459101_6526383771619593096_o.jpg?_nc_cat=105&_nc_ht=scontent-maa2-1.xx&oh=9a3419b1e6589d6655700c557c61ceb9&oe=5C40EE2E", links: { website: "", linkedin: "https://www.linkedin.com/in/swaroop-sambhayya-72757a136/", github: "https://github.com/SwaroopSambhayya", }, jobTitle: "Full stack Android and Web Developer", location: { city: "", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Hareth Naji", img: "https://lh6.googleusercontent.com/t9VL3Ru-F44W5s_eQ8rhx-UHtYu_iE6BGDtvdyj6FBOVMZV6WvltFWBfASO4HADgvc6tukAqzJ1C0Q=w1432-h892", links: { website: "", linkedin: "https://www.linkedin.com/in/hareth-naji/", github: "https://github.com/hazzaldo", }, jobTitle: "Full stack (React) Web Developer and iOS developer", location: { city: "", state: "Warwickshire", country: "United Kingdom", }, }, { id: uuidv4(), name: "Kush Daga", img: "https://github.com/kush-daga/image/blob/master/image.png", links: { website: "kush-daga.github.io", linkedin: "www.linkedin.com/in/kush-d-63a310111", github: "https://github.com/kush-daga", }, jobTitle: "Full stack Web Developer", location: { city: "Patiala", state: "Punjab", country: "India", }, }, { id: uuidv4(), name: "Michael Legemah", img: "https://pbs.twimg.com/profile_images/717020237070221312/4Jcm3TnZ_400x400.jpg", links: { website: "https://mikelegemah5799.github.io/mikelegemah5799/", linkedin: "https://www.linkedin.com/in/michaellegemah/", github: "https://github.com/MikeLegemah5799", }, jobTitle: "Senior Front End Web Engineer", location: { city: "New York", state: "NY", country: "United States", }, }, { id: uuidv4(), name: "Paul Vargas", img: "http://vargasdev.com/images/Paul1_CircleOrange.png", links: { website: "http://vargasdev.com/", linkedin: "", github: "https://github.com/PaulVargasDev", }, jobTitle: "Web Developer (WordPress, React.js, Node.js)", location: { city: "", state: "", country: "Bolivia (Willing to Relocate or Work Remotely)", }, }, { id: uuidv4(), name: "Sherin Binu", img: "https://avatars1.githubusercontent.com/u/22068550?s=400&u=5ed15f9e5641e30c5a6543f198fcff55500b10ab&v=4", links: { website: "https://sherondale.me", linkedin: "https://www.linkedin.com/in/sherin-binu-75291a126/", github: "https://github.com/SherOnDale", }, jobTitle: "Full Stack Developer", location: { city: "Chennai", state: "Tamil Nadu", country: "India", }, }, { id: uuidv4(), name: "Daniel Roberts", img: "https://avatars3.githubusercontent.com/u/18223722", links: { website: "", linkedin: "https://www.linkedin.com/in/beardofdan/", github: "https://github.com/BeardOfDan", }, jobTitle: "Full Stack Web Developer", location: { city: "Bay Area", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Harsh Patel", img: "https://avatars3.githubusercontent.com/u/41349472?s=460&v=4", links: { website: "harshpatel.io", linkedin: "https://www.linkedin.com/pateltharsh/", github: "https://github.com/Zeztron", }, jobTitle: "Full Stack Web Developer", location: { city: "Columbus", state: "OH", country: "USA", }, }, { id: uuidv4(), name: "Joel Rumble", img: "https://avatars3.githubusercontent.com/u/18223722", links: { website: "https://www.joelandrewrumble.co.uk", linkedin: "https://www.linkedin.com/in/joel-rumble-17b554157", github: "", }, jobTitle: "Full Stack Web Developer", location: { city: "", state: "Dorset", country: "United Kingdom", }, }, { id: uuidv4(), name: "Harshit Mahajan", img: "https://avatars2.githubusercontent.com/u/34333099?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/hmahajan99", github: "https://github.com/hmahajan99", }, jobTitle: "Full Stack Web Developer/ Data Scientist", location: { city: "", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Kwanwoo (Steven) Jeong", img: "https://bquagq.bn.files.1drv.com/y4m6exJenQbE8UUae807UkgH5Jfmfvvhkj247iW3FGLy-UU95O--cyj4mtI4W4QPCdT64lBSNIkoFHYuAFRCofCiE9J1xdWJHkc2mJQzDq1XMF2vTFjDASc5T0sd43h_hnVVLSAoKEMRKNyK2Wl1F7LMOWTvB19vmWkWhgky1QmxJkdUCny6HIkVRMkuPwHvfd4ANCUSji3RY1vMmdm6PgEqg?width=642&height=616&cropmode=none", links: { website: "http://www.kwanwoo.me", linkedin: "https://www.linkedin.com/in/kwanwoo-jeong-48699483/", github: "https://github.com/kwanwooi25", }, jobTitle: "Full-stack Web Developer", location: { city: "Seoul", state: "", country: "Korea", }, }, { id: uuidv4(), name: "Vignesh Kaliyamoorthy", img: "https://avatars2.githubusercontent.com/u/26570662?v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/vignesh-kaliyamoorthy-24006a100/", github: "https://github.com/vigneshkaliyamoorthy", }, jobTitle: "Front-End Web Developer & SharePoint Developer", location: { city: "Chennai", state: "Tamilnadu", country: "India", }, }, { id: uuidv4(), name: "Tzu-Ching Chen", img: "https://avatars1.githubusercontent.com/u/45002821", links: { website: "", linkedin: "https://www.linkedin.com/in/ginnnnnn/", github: "https://github.com/ginnnnnn/", }, jobTitle: "Front-End Web Developer ", location: { city: "Adelide", state: "South Australia", country: "Australia", }, }, { id: uuidv4(), name: "Brian MacPherson", img: "https://avatars2.githubusercontent.com/u/36687746?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/brian-macpherson-414b6126/", github: "https://github.com/brimac1634", }, jobTitle: "Full Stack Developer and Project Manager", location: { city: "Hong Kong", state: "", country: "Hong Kong", }, }, { id: uuidv4(), name: "Wilfred Erdo A. Bancairen", img: "https://media.licdn.com/dms/image/C5603AQEBwBfeK6WvSQ/profile-displayphoto-shrink_200_200/0?e=1549497600&v=beta&t=MaS6fplYlejlV4ue5ImGCEOrn7JIFm1OBKRjsKTLJoo", links: { website: "to be updated", linkedin: "https://www.linkedin.com/in/wilfred-erdo-bancairen-54887939/", github: "https://github.com/wilfred05777", }, jobTitle: "Software Developer", location: { city: "Carmen", state: "Davao Del Norte", country: "Philippines", }, }, { id: uuidv4(), name: "Robert Stamate", img: "https://media.licdn.com/dms/image/C5603AQF7t_i2Uq2Vig/profile-displayphoto-shrink_200_200/0?e=1550102400&v=beta&t=FIG8s3SOWMFqWN0LqRLkbV2xmIHmVDA_BGSS9JAeHjY", links: { website: "https://valkyr-development.com/", linkedin: "https://www.linkedin.com/in/rmstamate/", github: "https://github.com/roberthugsy/", }, jobTitle: "Fullstack Developer", location: { city: "Cluj-Napoca", state: "Cluj", country: "Romania", }, }, { id: uuidv4(), name: "Tony Nguyen", img: "https://avatars1.githubusercontent.com/u/36907562?s=400&u=8fdd44b69baf5600d50a6ea6d5e883c4f31151c7&v=4", links: { website: "https://tonynguyen111997.github.io/portfolio/", linkedin: "https://www.linkedin.com/in/tonynguyen111997/", github: "https://github.com/tonynguyen111997", }, jobTitle: "Web Developer", location: { city: "San Bernardino", state: "California", country: "United States of America", }, }, { id: uuidv4(), name: "Andrés Cruz", img: "https://pbs.twimg.com/profile_images/1029210892624384000/hHQTuI96_400x400.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/profileandrescruz/", github: "https://github.com/andres-cruz", }, jobTitle: "Full Stack Developer", location: { city: "Buenos Aires", state: "", country: "Argentina", }, }, { id: uuidv4(), name: "Josef Bnm", img: "https://avatars0.githubusercontent.com/u/20369582?s=460&v=4", links: { website: "https://ycf-dev.herokuapp.com/", linkedin: "https://www.linkedin.com/in/josef-bnm-692392123/", github: "https://github.com/YoucefBnm", }, jobTitle: "Front-end Web Developer", location: { city: "Oran", state: "Oran", country: "Algeria (willin to relocate)", }, }, { id: uuidv4(), name: "Vanessa Wang", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/vanessawpwang/", github: "https://github.com/sanguliupo", }, jobTitle: "Front-end Web Developer", location: { city: "San Francisco", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Darnell Hedrick", img: "https://pbs.twimg.com/profile_images/990422694717001728/3xT7u7rD_400x400.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/darnell-hedrick-962b65176/", github: "https://github.com/DarrnyH", }, jobTitle: "Full Stack Developer(MERN) ", location: { city: "", state: "Mississippi", country: "United States", }, }, { id: uuidv4(), name: "Sina Moraddar", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/sina-moraddar-851708177/", github: "https://github.com/sinamoraddar", }, jobTitle: "Full Stack Web Developer", location: { city: "Shahriar", state: "Tehran", country: "Iran", }, }, { id: uuidv4(), name: "Pankaj Aagjal", img: "https://avatars0.githubusercontent.com/u/15609300?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/aagjalpankaj/", github: "https://github.com/aagjalpankaj/", }, jobTitle: "Full Stack Web Developer", location: { city: "Pune", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Kritika Sharma", img: "https://avatars2.githubusercontent.com/u/35176749?s=400&u=49691a090c52d6d0ae9315f746fc41595b584e51&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/kritika-sharma-8a65687a/", github: "https://github.com/KritikaSharmaKS/", }, jobTitle: "Full Stack Developer", location: { city: "Montreal", state: "Quebec", country: "Canada", }, }, { id: uuidv4(), name: "Yasser Dalouzi", img: "https://scontent-mrs1-1.xx.fbcdn.net/v/t1.0-9/21430280_1880453648948406_5484250295324615463_n.jpg?_nc_cat=100&_nc_ht=scontent-mrs1-1.xx&oh=aca8eaefeb26abbc38887a9a9b4dfc1a&oe=5C95D59D", links: { website: "", linkedin: "https://www.linkedin.com/in/yasserdalouzi/", github: "https://github.com/yvsser1/", }, jobTitle: "Full Stack Web Developer", location: { city: "Casablanca", state: "", country: "Morocco", }, }, { id: uuidv4(), name: "YIXUN LI", img: "https://miro.medium.com/fit/c/240/240/1*KCzB9vChbnmayxAyPmGDmg.jpeg", links: { website: "", linkedin: "https://www.linkedin.com/in/yixun-li-4b979ba3/", github: "https://github.com/yx8", }, jobTitle: "Full Stack Developer", location: { city: "Melbourne", state: "Victroia", country: "Australia", }, }, { id: uuidv4(), name: "David Bordeleau", img: "https://avatars3.githubusercontent.com/u/37828192?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/david-bordeleau-a39434156/", github: "https://github.com/davidbordeleau", }, jobTitle: "Full Stack Web Developer", location: { city: "Den Haag", state: "South Holland", country: "Netherlands", }, }, { id: uuidv4(), name: "Shinyuy Marcel Fonyuy", img: "https://s.cdpn.io/profiles/user/2737087/512.jpg?1546210786", links: { website: "https://shinyuy.github.io", linkedin: "www.linkedin.com/in/shinyuy-marcel-fonyuy-710a38169", github: "https://github.com/shinyuy", }, jobTitle: "Full-Stack Web Developer", location: { city: "Yaounde", state: "Centre", country: "Cameroon", }, }, { id: uuidv4(), name: "David Nowak", img: "https://avatars1.githubusercontent.com/u/22338256?s=400&u=28db2b90b819ad52c31c6a793005b5603240660c&v=4", links: { website: "https://davidpnowak.com", linkedin: "https://www.linkedin.com/in/davidpnowak/", github: "https://github.com/Confidenceiskey", }, jobTitle: "Front-End Developer", location: { city: "", state: "", country: "Canada", }, }, { id: uuidv4(), name: "Jared Gentry", img: "https://media.licdn.com/dms/image/C4E03AQF073t25rLyWA/profile-displayphoto-shrink_200_200/0?e=1551916800&v=beta&t=HxCnXtEBTirSCI33Az5cEAdoVVq_pP08m3RDdEtB2p4", links: { website: "https://jcgentr.github.io/", linkedin: "https://www.linkedin.com/in/jared-gentry-48923b113/", github: "https://github.com/jcgentr", }, jobTitle: "Full Stack Developer", location: { city: "Columbia", state: "South Carolina", country: "United States", }, }, { id: uuidv4(), name: "Roye Kott", img: "https://avatars1.githubusercontent.com/u/29805128?s=400&v=4", links: { website: "http://royekott-portfolio.ml/", linkedin: "https://www.linkedin.com/in/roye-kott-891561106/", github: "https://github.com/royekott", }, jobTitle: "Full Stack Developer", location: { city: "Emek Yizrael", state: "North", country: "Israel", }, }, { id: uuidv4(), name: "Alain Dimabuyo", img: "https://avatars2.githubusercontent.com/u/15050664?s=460&v=4", links: { website: "https://www.behance.net/alaindimabuyo", linkedin: "https://www.linkedin.com/in/alaindimabuyo/", github: "https://github.com/alaindimabuyo", }, jobTitle: "Front-End Web Developer", location: { city: "San Fernando", state: "Pampanga", country: "Philippines", }, }, { id: uuidv4(), name: "Pratyakash Saini", img: "https://avatars1.githubusercontent.com/u/13645745?s=400&u=cc315e581c698af75c0d2fd089aab27ae2fa5d43&v=4", links: { website: "https://pratyakash.github.io/", linkedin: "https://www.linkedin.com/in/pratyakash-s-saini-038639106", github: "https://github.com/pratyakash", }, jobTitle: "Front-End Web Developer", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Baddeley, Robert", img: "https://avatars2.githubusercontent.com/u/46244948?s=400&u=d3103d7aff9f8bb1cb4f8b1268c43bd0162c0d3b&v=4", links: { website: "https://waffleflopper.github.io/", linkedin: "https://www.linkedin.com/in/robert-baddeley-32ba63177/", github: "https://github.com/waffleflopper", }, jobTitle: "Full-Stack Developer (Currently Respiratory Therapist, Career Changing)", location: { city: "Honolulu", state: "Hawaii", country: "UNited States", }, }, { id: uuidv4(), name: "Neetish Pathak", img: "https://pbs.twimg.com/profile_images/3036362618/583ba4b504a3c54698f368d41bb8cf52_400x400.jpeg", links: { website: "https://neetishpathak.github.io/", linkedin: "https://www.linkedin.com/in/neetish-pathak-63024131/", github: "https://github.com/NeetishPathak", }, jobTitle: "Software and Systems Engineer", location: { city: "San Jose", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Cyryll Galon", img: "https://media.licdn.com/dms/image/C4D03AQECRGT3lp9axw/profile-displayphoto-shrink_200_200/0?e=1552521600&v=beta&t=Rg3feXVltdGPeGfd5C8CYdBR6qt50D_owbTaHfUFiqs", links: { website: "https://galoncyryll.github.io/website-portfolio/", linkedin: "https://www.linkedin.com/in/cyryll-joseph-galon-461710147/", github: "https://github.com/galoncyryll", }, jobTitle: "Software Developer", location: { city: "Bakersfield", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Sai Adarsh Babu Kuruvella", img: "", links: { website: "https://saiadarsh.github.io/", linkedin: "https://www.linkedin.com/in/saiadarsh/", github: "https://github.com/saiadarsh", }, jobTitle: "Software Engineer/Developer", location: { city: "Columbia", state: "South Carolina", country: "United States", }, }, { id: uuidv4(), name: "Annie Anna Belkin", img: "https://scontent.fhfa1-2.fna.fbcdn.net/v/t1.0-9/18664556_1102362763229333_8612792483817153454_n.jpg?_nc_cat=105&_nc_ht=scontent.fhfa1-2.fna&oh=2eaddf5cc576a8e71fbe4538e2e36de6&oe=5CC31CA0", links: { website: "https://amplace.co.il/", linkedin: "https://www.linkedin.com/in/anniebelkin/", github: "https://github.com/anniebelkin", }, jobTitle: "Front-end Developer", location: { city: "Beer-Sheva", state: "South", country: "Israel", }, }, { id: uuidv4(), name: "Morten Kose", img: "https://avatars3.githubusercontent.com/u/25040343?s=460&v=4", links: { website: "https://mortenkose.com/", linkedin: "https://www.linkedin.com/in/morten-kose/", github: "https://github.com/mortenkos", }, jobTitle: "Front End Developer", location: { city: "Tartu", state: "Tartumaa", country: "Estonia", }, }, { id: uuidv4(), name: "Kyrolos Magdy", img: "https://cdn1.imggmi.com/uploads/2019/1/14/3b2a92c40be00f96e1507bc93621b851-full.jpg", links: { website: "https://kyrolos.github.io/Myportofolio/", linkedin: "https://www.linkedin.com/in/kyrolos-magdy-575055163/", github: "https://github.com/kyrolos", }, jobTitle: "Senior web developer", location: { city: "Ismailia", state: "", country: "Egypt", }, }, { id: uuidv4(), name: "Frank Holder", img: "https://media.licdn.com/dms/image/C4D03AQG8utwt_Dqy-Q/profile-displayphoto-shrink_200_200/0?e=1553126400&v=beta&t=a1wboqyAS37HwMZlv4a22TczOiXpM7ahKo6RgRRT-AA", links: { website: "", linkedin: "https://www.linkedin.com/in/nigel-h-9a6165144/", github: "https://github.com/knarf118", }, jobTitle: "Software Developer", location: { city: "", state: "", country: "Barbados", }, }, { id: uuidv4(), name: "Redwan Jemal", img: "https://media.licdn.com/dms/image/C5603AQHJo4aayBxDIA/profile-displayphoto-shrink_200_200/0?e=1553126400&v=beta&t=Pb6rlHfQcWcRsN7h3ItEF-G1OGTBI5YhJ3Yuia44wPw", links: { website: "", linkedin: "https://www.linkedin.com/in/redwan-jemal/", github: "https://github.com/redwanJemal/", }, jobTitle: "Full Stack Web Developer", location: { city: "Addis Ababa", state: "", country: "Ethiopia", }, }, { id: uuidv4(), name: "Richard Widjaya", img: "https://media.licdn.com/dms/image/C5103AQHAsBPWl0NLsQ/profile-displayphoto-shrink_200_200/0?e=1553126400&v=beta&t=byPaOxuWdyTrs-gxD1_C8VQtaL3z7oM5yu3FLpOaJAY", links: { website: "", linkedin: "https://www.linkedin.com/in/richard-widjaya-3a658614b/", github: "https://github.com/ricwidjaya", }, jobTitle: "Digital Marketer", location: { city: "Taipei", state: "", country: "Taiwan", }, }, { id: uuidv4(), name: "Daniel Millier", img: "https://scontent-yyz1-1.xx.fbcdn.net/v/t1.0-9/34725849_10215131977726516_496494658889711616_n.jpg?_nc_cat=109&_nc_ht=scontent-yyz1-1.xx&oh=59b4e61202778b077a3d58689d5dab27&oe=5CBD78AC", links: { website: "https://danielmillier.carrd.co", linkedin: "https://www.linkedin.com/in/danjmillier/", github: "https://github.com/unknownfearng", }, jobTitle: "Web Developer", location: { city: "Kingston", state: "", country: "Canada", }, }, { id: uuidv4(), name: "Hugh Caluscusin", img: "https://avatars0.githubusercontent.com/u/18341500?s=460&v=4", links: { website: "https://www.melodiccrypter.com", linkedin: "https://www.linkedin.com/in/hughcaluscusin/", github: "https://github.com/MelodicCrypter", }, jobTitle: "Software Developer", location: { city: "Cebu", state: "", country: "Philippines", }, }, { id: uuidv4(), name: "Patrick Olvera", img: "https://www.patrickolvera.com/images/round-head-shot.png", links: { website: "https://www.patrickolvera.com/", linkedin: "https://www.linkedin.com/in/patrick-olvera/", github: "https://github.com/patrickolvera", }, jobTitle: "Front End Web Developer", location: { city: "Minneapolis", state: "MN", country: "USA", }, }, { id: uuidv4(), name: "Martyna Sarbak", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/martynasarbak/", github: "https://github.com/martynasarbak", }, jobTitle: "Software Developer", location: { city: "Warsaw", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Louis Beul", img: "", links: { linkedin: "https://www.linkedin.com/in/louis-beul-186108175/", github: "https://github.com/LBeul", }, jobTitle: "Web Developer", location: { city: "Rehe", state: "Westwood Forest", country: "Germany", }, }, { id: uuidv4(), name: "Fahad Zakir", img: "https://i.imgur.com/6OGHnLz.jpg", links: { website: "http://www.fahadzakir.com", linkedin: "https://www.linkedin.com/in/fahad-zakir", github: "https://github.com/fahad-zakir", }, jobTitle: "Front-End Developer", location: { city: "Chicago", state: "IL", country: "US", }, }, { id: uuidv4(), name: "Sophia Brandt", img: "https://i.imgur.com/r3JxfZN.jpg", links: { website: "https://sophiabrandt.com", linkedin: "https://www.linkedin.com/in/sophiabrandt", github: "https://github.com/sophiabrandt", }, jobTitle: "Web Developer", location: { city: "Dortmund", state: "NRW", country: "Germany", }, }, { id: uuidv4(), name: "Thaer Shakhshir", img: "https://ibb.co/jy1Wkxz", links: { website: "", linkedin: "https://www.linkedin.com/in/tshakhshir/", github: "https://github.com/ThaerMun", }, jobTitle: "Front End Developer", location: { city: "St.John's", state: "Newfoundland", country: "Canada", }, }, { id: uuidv4(), name: "Jack Meyer", img: "https://scontent-ort2-2.xx.fbcdn.net/v/t1.0-9/37812874_10160704243520344_4682453803721555968_n.jpg?_nc_cat=110&_nc_ht=scontent-ort2-2.xx&oh=a4f8394ff0bc99355cbf018dd3f64ba0&oe=5CF34C11", links: { website: "http://www.jackvmeyer.com", linkedin: "https://www.linkedin.com/in/jack-v-meyer/", github: "https://github.com/meyer744", }, jobTitle: "Front End Web Developer", location: { city: "Troy", state: "Ohio", country: "USA", }, }, { id: uuidv4(), name: "Olakunle Makanjuola", img: "https://share.icloud.com/photos/01UqN19xobH_Nyuc-j4zx6jVA#Lagos", links: { website: "https://macrichie.github.io/", linkedin: "https://www.linkedin.com/in/olakunle-makanjuola-7971155a/", github: "https://github.com/Macrichie", }, jobTitle: "Javascript Developer / Tech Recruiter", location: { city: "Lekki", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Taulant Shametaj :)", img: "https://avatars2.githubusercontent.com/u/45207786?s=400&u=2444f25b1917724d33457950a7c23c8a6dad4f07&v=4", links: { website: "https://shametaj.github.io", linkedin: "https://gr.linkedin.com/in/taulant-shametaj-6518a191", github: "https://github.com/shametaj", }, jobTitle: "Web Developer", location: { city: "Saarbrücken", state: "", country: "Germany", }, }, { id: uuidv4(), name: "Usman Jamil", img: "http://usmanjamil.co.uk/wp-content/uploads/2016/12/1-Usman-Jamil-300x300.jpg", links: { website: "http://usmanjamil.co.uk", linkedin: "https://www.linkedin.com/in/usmaanj/", github: "https://github.com/usmanj", }, jobTitle: "Full-Stack Developer (JavaScript, C#)", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Waheed Afolabi", img: "https://avatars.io/twitter/checkwithwaheed", links: { website: "", linkedin: "https://www.linkedin.com/in/waheed-afolabi/", github: "https://github.com/wptechprodigy", }, jobTitle: "Fullstack Software Developer", location: { city: "", state: "Lagos", country: "Nigeria (Open to Remote & Willing to Relocate)", }, }, { id: uuidv4(), name: "Jim Wright", img: "", links: { website: "https://diskomotech.github.io", linkedin: "https://www.linkedin.com/in/jimwright808/", github: "https://github.com/diskomotech", }, jobTitle: "Front-End Developer", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Joshua Curry", img: "https://lucidbeaming.net/assets/img/avatar.jpg", links: { website: "https://lucidbeaming.net/", linkedin: "https://www.linkedin.com/in/lucidbeaming/", github: "https://github.com/lucidbeaming", }, jobTitle: "Full stack developer", location: { city: "San Jose", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Natalia Quiroz Yoffe", img: "https://media.licdn.com/media-proxy/ext?w=800&h=800&f=n&hash=otDvMyUuQrHEompXJmLnseNzCKA%3D&ora=1%2CaFBCTXdkRmpGL2lvQUFBPQ%2CxAVta9Er0Vinkhwfjw8177yE41y87UNCVordEGXyD3u0qYrdfyTucMKMcOSnuV0WfC8ckQVnfPKgRWGyD5K-KIvsL9x5jJHsII24ZxUBbFI8lW4", links: { website: "", linkedin: "https://www.linkedin.com/in/natiquirozyoffe", github: "https://github.com/nquiroz", }, jobTitle: "Full Stack Developer (Java, Javascript, Css, Angular)", location: { city: "Asunción", state: "Central", country: "Paraguay", }, }, { id: uuidv4(), name: "Kundan Shrivastav", img: "https://imgsafe.org/image/e2a52900bc", links: { website: "", linkedin: "https://www.linkedin.com/in/kundanshrivastav/", github: "https://github.com/Kshriva1", }, jobTitle: "Software Developer", location: { city: "Binghamton(Open for relocation across US)", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "Carlos S. Nah Jr.", img: "https://avatars2.githubusercontent.com/u/20514920?s=460&v=4", links: { website: "https://ra9.github.io", linkedin: "https://linkedin.com/in/carlos-nah", github: "https://github.com/ra9", }, jobTitle: "Fullstack Developer", location: { city: "Monrovia(Open for relocation)", state: "Montserrado", country: "Liberia", }, }, { id: uuidv4(), name: "Kye James Davey", img: "https://avatars2.githubusercontent.com/u/10793626?s=460&v=4", links: { website: "https://arrogantgeek.com", linkedin: "https://www.linkedin.com/in/kyedavey", github: "https://github.com/kyedavey", }, jobTitle: "Full Stack Developer", location: { city: "Sydney", state: "NSW", country: "Australia", }, }, { id: uuidv4(), name: "Vignesh Manishankar", img: "https://media.licdn.com/dms/image/C4E03AQEyjilKbRcbaQ/profile-displayphoto-shrink_200_200/0?e=1555545600&v=beta&t=7tcX_W4MmmE45udTsOyZ4buctnLPp8TTt6BXuvVCco0", links: { website: "https://vignesh17.github.io/ME/", linkedin: "https://www.linkedin.com/in/vignesh-manishankar/", github: "https://github.com/vignesh17", }, jobTitle: "Fullstack Developer", location: { city: "San Ramon(Open for relocation)", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Michael Zaleski", img: "https://avatars2.githubusercontent.com/u/5598052?s=460&v=4", links: { website: "https://www.mikezaleski.com/", linkedin: "https://www.linkedin.com/in/michael-zaleski-b52b50161/", github: "https://github.com/multisonic", }, jobTitle: "Full Stack Developer", location: { city: "New York", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Ilan Melki", img: "https://media.licdn.com/dms/image/C4E03AQHSZt3lwFF0Mw/profile-displayphoto-shrink_200_200/0?e=1555545600&v=beta&t=kWX8oohe1S8ff_WCV86NFuzpj_A3f_Bao85Ch665dCM", links: { website: "https://www.facebook.com/Milkyahu/", linkedin: "https://www.linkedin.com/in/ilan-melki/", github: "https://github.com/iMelki", }, jobTitle: "Junior Full Stack Developer", location: { city: "Tel-Aviv", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Sauciuc Ana Maria", img: "https://avatars3.githubusercontent.com/u/41324045?s=460&v=4", links: { website: "http://www.amsauciuc.com", linkedin: "https://www.linkedin.com/in/ana-maria-sauciuc-753ba8155/", github: "https://github.com/annasauciuc", }, jobTitle: "Front-End Developer", location: { city: "Las Palmas", state: "Canary Islands", country: "Spain", }, }, { id: uuidv4(), name: "Ken Crites", img: "http://www.kencrites.com/img/KenCritesOct2018-9448.jpg", links: { website: "http://www.kencrites.com", linkedin: "https://www.linkedin.com/in/kencrites/", github: "https://github.com/kcrites", }, jobTitle: "Full Stack Developer", location: { city: "Amsterdam", state: "Noord-Holland", country: "Netherlands", }, }, { id: uuidv4(), name: "Prateek Parab", img: "https://media.licdn.com/dms/image/C5603AQE-jzpvaQWimw/profile-displayphoto-shrink_200_200/0?e=1556150400&v=beta&t=2r2Td18RmzK5udVAJmJYE6ZcGeDKJKjCFDMaTPRZqbk", links: { website: "", linkedin: "https://www.linkedin.com/in/prateek-parab/", github: "https://github.com/prateekParab20", }, jobTitle: "Software developer", location: { city: "Jersey city", state: "New Jersey", country: "USA", }, }, { id: uuidv4(), name: "Dave Lin", img: "https://secure.gravatar.com/avatar/52909e9a86a866e3585a65b5ba7a924f", links: { website: "http://www.davemint.com/", linkedin: "https://www.linkedin.com/in/dvdlin214/", github: "https://github.com/dvdlin214", }, jobTitle: "Software Developer", location: { city: "New York", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Loic Njike", img: "https://photos.google.com/photo/AF1QipPQHfL-k_8egWSRv15BffJmXr8H2JxZlT2-KGd3", links: { website: "", linkedin: "https://www.linkedin.com/in/loïc-njike/", github: "https://github.com/virgilenjike", }, jobTitle: "Full-Stack Web, C# and Python Developer", location: { city: "Douala", state: "Littoral", country: "Cameroon", }, }, { id: uuidv4(), name: "David Ugochukwu Okonkwo", img: "https://avatars1.githubusercontent.com/u/47087777?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/david-okonkwo-64717a12a/", github: "https://github.com/ugozeal", }, jobTitle: "Software Developer", location: { city: "FCT Abuja", state: "Abuja", country: "Nigeria", }, }, { id: uuidv4(), name: "Ricardo Serrano", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/ricardos27/", github: "https://github.com/rxsh96", }, jobTitle: "Computer Science Engineering Student", location: { city: "Guayaquil", state: "Guayas", country: "Ecuador", }, }, { id: uuidv4(), name: "Peter Abolude", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/abolude-peter/", github: "https://github.com/CFCIfe", }, jobTitle: "Web Developer", location: { city: "Lagos", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Denis Gornichar", img: "https://scontent-frx5-1.xx.fbcdn.net/v/t1.0-9/17498656_10206528090159743_4183490191246088808_n.jpg?_nc_cat=104&_nc_ht=scontent-frx5-1.xx&oh=c8d8fa0536128809b226d4a9df0b2fc8&oe=5D271331", links: { website: "https://gorniczy.github.io", linkedin: "https://www.linkedin.com/in/denis-gornichar/", github: "https://github.com/gorniczy", }, jobTitle: "Frontend Developer", location: { city: "Warsaw", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Adigun Adefisola", img: "https://avatars3.githubusercontent.com/u/17639878?s=400&u=f7a095a5e83c1be3395657726ed65ce697d472fc&v=4", links: { website: "https://www.adefisolaadigun.com", linkedin: "https://www.linkedin.com/in/adefisola-adigun/", github: "https://github.com/TheFisola", }, jobTitle: "Software Engineer | ♥ Javascript", location: { city: "Magodo", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Rodrigo Alberto", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/rodalbert/", github: "https://github.com/rodalbert", }, jobTitle: "Software Developer", location: { city: "Lisbon", state: "", country: "Portugal", }, }, { id: uuidv4(), name: "Ganesh Nomula", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/ganeshnomula/", github: "https://github.com/UnselfconsciousLux", }, jobTitle: "Product Designer, Full-Stack Developer, Illustrator", location: { city: "Dallas", state: "Texas", country: "USA", }, }, { id: uuidv4(), name: "Carlos De La Cruz", img: "https://media.licdn.com/dms/image/C5603AQHI1ztWds_mKg/profile-displayphoto-shrink_200_200/0?e=1556755200&v=beta&t=ZF5TGbDZMMCT-YJCxD0ZSY8jud-hwS1WKG_-eAOfMWo", links: { website: "http://carloscm.me", linkedin: "https://www.linkedin.com/in/carlos-de-la-cruz-meregildo-5673b1141/", github: "https://github.com/Ahcom1019", }, jobTitle: "FullStack Developer", location: { city: "Santo Domingo", state: "National District", country: "Dominican Republic", }, }, { id: uuidv4(), name: "Rajesh D", img: "https://avatars3.githubusercontent.com/u/25839746?v=4", links: { website: "https://rajesh13goud.github.io/", linkedin: "https://www.linkedin.com/in/rajesh-d-775981175/", github: "https://github.com/rajesh13goud", }, jobTitle: "FullStack Blockchain Developer", location: { city: "Bangalore", state: "Karnataka", country: "INDIA", }, }, { id: uuidv4(), name: "Chris Baucom", img: "https://res.cloudinary.com/crbaucom/image/upload/v1551412727/crbaucom-images/image_4.png", links: { website: "https://crbaucom.com", linkedin: "https://linkedin.com/in/chrisbaucom", github: "https://github.com/cbaucom", }, jobTitle: "Full Stack Engineer", location: { city: "Boston", state: "Massachusetts", country: "USA", }, }, { id: uuidv4(), name: "Naela Bahurmuz", img: " ", links: { website: " ", linkedin: "https://www.linkedin.com/in/naela-bahurmuz-05a85012a/", github: "https://github.com/lollaab", }, jobTitle: "Web Developer", location: { city: "Jeddah", state: "Makkah", country: "Saudi Arabia", }, }, { id: uuidv4(), name: "Jatin Varlyani", img: "https://avatars2.githubusercontent.com/u/34777376?v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/jatin-varlyani-127290150/", github: "https://github.com/Jatin-8898", }, jobTitle: "Full Stack Web Developer", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Devavrat Singh", img: "https://scontent.fjai1-1.fna.fbcdn.net/v/t1.0-1/p160x160/50275077_10210595861931160_6720448375885398016_n.jpg?_nc_cat=109&_nc_ht=scontent.fjai1-1.fna&oh=133c8b31219bf234307ea77b5007de01&oe=5D13A8B9", links: { website: "https://www.satsaiinfocom.com", linkedin: "https://www.linkedin.com/in/devavrat-singh-89249840", github: "https://github.com/devavratsingh", }, jobTitle: "Full Stack Web Developer", location: { city: "Jodhpur", state: "Rajasthan", country: "India", }, }, { id: uuidv4(), name: "Bojana Hadzivanova", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/bojana-hadzivanova-21336635/", github: "https://github.com/bojana899", }, jobTitle: "developer", location: { city: "Skopje", state: "", country: "Macedonia", }, }, { id: uuidv4(), name: "Timothy Ngai", img: "https://avatars3.githubusercontent.com/u/32214601?s=460&v=4", links: { website: "https://DeltaPenguinGames.weebly.com", linkedin: "https://www.linkedin.com/in/timothy-ngai-62198a10/", github: "https://github.com/DeltaPeng", }, jobTitle: "Full Stack Developer (C#, VB, Javascript)", location: { city: "Phoenix", state: "AZ", country: "USA", }, }, { id: uuidv4(), name: "Bruno Staub", img: "https://media.licdn.com/dms/image/C5603AQEOtIe_rX1R3Q/profile-displayphoto-shrink_200_200/0?e=1557360000&v=beta&t=csQDaLmqNh4XU_LPLMqqDBVTELxG8zBv_tH8iaCUZlM", links: { website: "https://www.stbr.ch", linkedin: "https://www.linkedin.com/in/bruno-staub-634b2870/", github: "https://github.com/bstaub/", }, jobTitle: "Full Stack Developer (Javascript, PHP)", location: { city: "Luzern", state: "LU", country: "CH", }, }, { id: uuidv4(), name: "Akshata Dabade", img: "https://media.licdn.com/dms/image/C4D03AQFTzCBZpv2FQQ/profile-displayphoto-shrink_200_200/0?e=1556755200&v=beta&t=FCp1OYOUS5jLbJsOld4uWZCWn0Pvp_h4owmX7TZ0Wno", links: { website: "https://akshatadabade.herokuapp.com/", linkedin: "https://www.linkedin.com/in/akshatadabade1994/", github: "https://github.com/adabade1/", }, jobTitle: "Front End Web Developer (Javascript, React.js, Node.js)", location: { city: "Dublin", state: "CA", country: "US", }, }, { id: uuidv4(), name: "Harry Parkinson", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/harry-parkinson-418515126/", github: "https://github.com/hazza203/", }, jobTitle: "Full Stack Web Developer (Javascript, React) and Software Developer (Java, Python)", location: { city: "Melbourne", state: "Victoria", country: "Australia", }, }, { id: uuidv4(), name: "Preston Davis", img: "", links: { website: "http://www.prestondavis.io", linkedin: "https://www.linkedin.com/in/preston-davis-016211139/", github: "https://www.github.com/premdav", }, jobTitle: "Full Stack Web Developer", location: { city: "Oklahoma City", state: "OK", country: "USA", }, }, { id: uuidv4(), name: "Fran Campana", img: "", links: { website: "http://www.vermontskitours.com/", linkedin: "https://www.linkedin.com/in/fran-campana-33939a13b/", github: "https://github.com/FMCampana", }, jobTitle: "Full Stack Web Developer (Javascript, React) and Software Developer (Java, Python)", location: { city: "Philadelphia", state: "PA", country: "USA", }, }, { id: uuidv4(), name: "VISHNUVARTHAN U", img: "https://media.licdn.com/dms/image/C5603AQHdoYsDA_WfzQ/profile-displayphoto-shrink_200_200/0?e=1557964800&v=beta&t=1KfgykQ1klCEBsq0bOOTWlqeGkf0XbQUlBzJ4acuO0k", links: { website: "http://vvarthan7.in/", linkedin: "https://www.linkedin.com/in/vvarthan7/", github: "https://github.com/vvarthan7", }, jobTitle: "Sr. Software Engineer (Javascript, React.js, AEM UI(Sightly, HTL), Bootstrap)", location: { city: "Bangalore", state: "Karnataka", country: "INDIA", }, }, { id: uuidv4(), name: "Argenis De La Rosa", img: "https://media.licdn.com/dms/image/C4E03AQG_S06UTIxSJw/profile-displayphoto-shrink_200_200/0?e=1557360000&v=beta&t=VNxIYWv_1rx-wJIQJcn83jpLDnJxF4LNpSiQZq6tIJo", links: { website: "https://argenisdelarosa.com/", linkedin: "https://www.linkedin.com/in/argenis-de-la-rosa-502b18157/", github: "https://github.com/ArgenisDLR", }, jobTitle: "Software Engineer", location: { city: "Boston", state: "Massachusetts", country: "USA", }, }, { id: uuidv4(), name: "Jay Hung", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/%E8%8B%B1%E6%8D%B7-%E6%B4%AA-9a3592174/", github: "https://github.com/a510102", }, jobTitle: "Front-endWed Developer", location: { city: "Taichung", state: "Taiwan", country: "Taiwan", }, }, { id: uuidv4(), name: "Sal Tamay", img: "https://media.licdn.com/dms/image/C5603AQGP5X8ovpsjrg/profile-displayphoto-shrink_200_200/0?e=1555545600&v=beta&t=IhQSnst-9gV332G4-zzS3d3kXG5aBY3lUXezIFQhdv0", links: { website: "https://saltamay.github.io/home/", linkedin: "https://www.linkedin.com/in/sal-tamay/", github: "https://github.com/saltamay", }, jobTitle: "Full-Stack JavaScript, ReactJS Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Jay Tin", img: "https://media.licdn.com/dms/image/C5103AQHVsH53UsL5-Q/profile-displayphoto-shrink_200_200/0?e=1557964800&v=beta&t=w9-1cYib3O_mAjNfesLHccY8YWXwIEqf8GNZEEY05OM", links: { website: "https://jaytintran.github.io", linkedin: "https://www.linkedin.com/in/jaytintran/", github: "https://github.com/jaytintran", }, jobTitle: "Front End Developer, Full Stack JavaScript, ReactJS Developer", location: { city: "Ho Chi Minh", state: "Ho Chi Minh", country: "Vietnam", }, }, { id: uuidv4(), name: "Alireza(Armin) Tavakol", img: "https://media.licdn.com/dms/image/C4D03AQFdb6t-2E0s4g/profile-displayphoto-shrink_200_200/0?e=1559174400&v=beta&t=wLCxzea4KsgVKwKLyEprdJUYq0wte16xDLeNiZDlFd8", links: { website: "https://stackoverflow.com/users/11187413/ali-tk", linkedin: "https://www.linkedin.com/in/alireza-tavakol73/", github: "https://github.com/art1373", }, jobTitle: "Fullstack Developer", location: { city: "Tehran", state: "Tehran", country: "Iran", }, }, { id: uuidv4(), name: "Joseph Kelly", img: "https://media.licdn.com/dms/image/C4E03AQGSdyg1klP5qw/profile-displayphoto-shrink_200_200/0?e=1558569600&v=beta&t=LlLt74lIaSKfbXYQ01vJ1tgqHIr9ELjG7xEFpR-ZnRE", links: { website: "http://www.josephdk.com", linkedin: "https://www.linkedin.com/in/joseph-kelly-420a81165/", github: "https://github.com/josephdk", }, jobTitle: "Full-stack Web Developer - Javascript, React.js, PHP, MySQL", location: { city: "Gainesville", state: "Florida", country: "USA", }, }, { id: uuidv4(), name: "Jose Rios", img: "https://i.imgur.com/P8vYgsy.jpg", links: { website: "https://riosjose.com/", linkedin: "https://www.linkedin.com/in/joserios41/", github: "https://github.com/Riosjl41", }, jobTitle: "Front-End Developer", location: { city: "", state: "Nevada", country: "USA", }, }, { id: uuidv4(), name: "Konstantine Berulava", img: "http://odelia.ge/wp-content/uploads/2018/04/od1.png", links: { website: "http://odelia.ge/", linkedin: "https://www.linkedin.com/in/berulava/", github: "https://github.com/Spie1er", }, jobTitle: "FullStack Developer", location: { city: "Tbilisi", state: "", country: "Georgia", }, }, { id: uuidv4(), name: "Nicholas Meriano", img: "", links: { website: "", linkedin: "", github: "https://github.com/nicmeriano", }, jobTitle: "Front-End Developer", location: { city: "Alameda", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Paola Arzuffi", img: "https://media.licdn.com/dms/image/C5603AQGyhOPSeqemgQ/profile-displayphoto-shrink_200_200/0?e=1558569600&v=beta&t=5sK396H41eBje7bgpx7qidHZAnsCgBF4r1TjP6VvHNE", links: { website: "", linkedin: "https://www.linkedin.com/in/paola-arzuffi-31570790/", github: "https://github.com/PaolaArz", }, jobTitle: "Bioinformatician, Full Stack Developer", location: { city: "Manchester", state: "", country: "UK", }, }, { id: uuidv4(), name: "Yudhistira Putra Nugraha", img: "https://raw.githubusercontent.com/kudismetal/web-cv/master/profile.jpg", links: { website: "https://kudismetal.github.io/web-cv/", linkedin: "https://www.linkedin.com/in/yudhistira-putra-nugraha-154207165/", github: "https://github.com/kudismetal", }, jobTitle: "Front-End Developer", location: { city: "Wonosobo", state: "Jawa Tengah", country: "Indonesia", }, }, { id: uuidv4(), name: "Russ Perry", img: "https://media.licdn.com/dms/image/C4E03AQFFbRkD77x10g/profile-displayphoto-shrink_200_200/0?e=1558569600&v=beta&t=0FEu-iDs8E9LrRX2LqF_sbbKxck5eStL_nY8hEPJBLk", links: { website: "https://rperry99.github.io/responsive-portfolio/dist/index.html", linkedin: "https://www.linkedin.com/in/russ-perry-22b638a8/", github: "https://github.com/rperry99", }, jobTitle: "Front End Developer", location: { city: "Cleveland", state: "OH", country: "US", }, }, { id: uuidv4(), name: "Jim Taulman", img: "https://avatars2.githubusercontent.com/u/6203317?s=460&v=4", links: { website: "https://jftiv.org", linkedin: "https://www.linkedin.com/in/jftiv/", github: "https://github.com/jftiv", }, jobTitle: "Web Developer", location: { city: "Atlanta", state: "Georgia", country: "USA", }, }, { id: uuidv4(), name: "González Oviedo Tomás Emiliano", img: "https://avatars1.githubusercontent.com/u/24637586?s=400&v=4", links: { website: "https://tomas95go.github.io/tomasportfolio/index.html", linkedin: "www.linkedin.com/in/tomas-emiliano-gonzalez-oviedo-897795173", github: "https://github.com/tomas95go", }, jobTitle: "Full Stack Web Developer", location: { city: "Formosa", state: "FSA", country: "Argentina", }, }, { id: uuidv4(), name: "Paolo Di Bello", img: "https://avatars3.githubusercontent.com/u/36816681?s=460&v=4", links: { website: "http://dibellopaolo-portfolio-demo-1.rf.gd/?i=1", linkedin: "https://www.linkedin.com/in/paolo-di-bello-239056151/", github: "https://github.com/PaoloDiBello", }, jobTitle: "Web Developer & Polyglot", location: { city: "Casapesenna", state: "Campania", country: "Italy", }, }, { id: uuidv4(), name: "Piero Sabino", img: "https://imgur.com/lbrbLvs", links: { website: "", linkedin: "https://www.linkedin.com/in/piero-sabino-15a1b671/", github: "https://github.com/pierre1590", }, jobTitle: "Junior Web Developer", location: { city: "Turi", state: "Puglia", country: "Italy", }, }, { id: uuidv4(), name: "Kelechi Igbokwe", img: "https://avatars0.githubusercontent.com/u/26067229?s=40&v=4", links: { website: "http://kelechi.me/my-portfolio/#/", linkedin: "https://www.linkedin.com/in/kelechi-igbokwe/", github: "https://github.com/sirkells", }, jobTitle: "Junior IT Consultant", location: { city: "Cologne", state: "NRW", country: "Germany", }, }, { id: uuidv4(), name: "Tushar Kharbanda", img: "https://avatars3.githubusercontent.com/u/34345518?s=460&v=4", links: { website: "https://tkdevlop.tk/", linkedin: "https://www.linkedin.com/in/tushar-kharbanda-69841a14b/", github: "https://github.com/TKdevlop/", }, jobTitle: "Full Stack JS Dev", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Anthony Curtis", img: "https://photos.app.goo.gl/u7QfNZT5uw7k4M7S7", links: { website: "https://tonydc1997.github.io/Personal-Website/", linkedin: "https://www.linkedin.com/in/anthony-curtis-js-developer/", github: "https://github.com/tonydc1997", }, jobTitle: "Full-Stack JS Developer", location: { city: "Los Angeles County", state: "CA", country: "U.S.", }, }, { id: uuidv4(), name: "Wouter Kok", img: "https://media.licdn.com/dms/image/C4D03AQGsoeE2ocP-Mg/profile-displayphoto-shrink_200_200/0?e=1559174400&v=beta&t=QLPXLGvPOOvqa5GMHEAmajLnXHBuzxarmFSF8PkZEzM", links: { website: "", linkedin: "https://www.linkedin.com/in/wouter-kok/", github: "https://github.com/wkokgit", }, jobTitle: "Web & Software Developer", location: { city: "Amsterdam", state: "", country: "Nederland", }, }, { id: uuidv4(), name: "Allentine Paulis", img: "https://imgur.com/a/bkKSeR5", links: { website: "https://rainbowmoonlight.github.io/AllentinePortfolio/", linkedin: "https://www.linkedin.com/in/allentine/", github: "https://github.com/rainbowmoonlight", }, jobTitle: "Full Stack Web Developer", location: { city: "Los Angeles", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Hrishabh Prajapati", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/hrishabh-prajapati", github: "https://github.com/hhrishabh", }, jobTitle: "Full Stack Web Developer", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Peterson Oaikhenah", img: "https://avatars1.githubusercontent.com/u/32341221?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/peterson-oaikhenah-102645144/", github: "https://github.com/nextwebb", }, jobTitle: "Full-Stack JavaScript and PHP Developer", location: { city: "ogba", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Shubham Dhage", img: "https://i.imgur.com/uXvnjsc.jpg", links: { website: "https://shubhamd99.github.io/portfolio/", linkedin: "https://www.linkedin.com/in/shubham-dhage-57133a175/", github: "https://github.com/shubhamd99", }, jobTitle: "Full Stack Web Developer", location: { city: "Banglore", state: "KA", country: "India", }, }, { id: uuidv4(), name: "Irfan Suleman", img: "https://i.imgur.com/CotZZCa.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/ivsuleman/", github: "https://github.com/ivsuleman", }, jobTitle: "Full Stack Web Developer", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Ryan Lewis", img: "https://media.licdn.com/dms/image/C4D03AQF1xFP1AmQarQ/profile-displayphoto-shrink_200_200/0?e=1559779200&v=beta&t=omFFe-NN9fH8DkEOJXwlRrwiMdFQ5EIQzBrS4C1Kd2w", links: { website: "https://www.ryanlewis.co.uk/portfolio/", linkedin: "https://www.linkedin.com/in/ryan-lewis-b02105161/", github: "https://github.com/ryanlewis94", }, jobTitle: "Junior Web Developer", location: { city: "Cardiff", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Peterson Oaikhenah", img: "https://nextwebb.github.io/profilepics/gitProfile.jpeg", links: { website: "nextwebb.com.ng", instagram: "www.instagram.com/peterson_hn", twitter: "https://twitter.com/peterson_hn", facebook: "https://www.facebook.com/peterson.oaikhenah", gmail: "oaikhenahpeterson@gmail.com", linkedin: "https://www.linkedin.com/in/peterson-oaikhenah-102645144/", github: "https://github.com/nextwebb", }, jobTitle: "Full-Stack nodejs and PHP Developer", location: { city: "ogba", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Nikola Vasilev", img: "http://nebivalici.com/styles/img/nikola.jpg", links: { website: "http://nebivalici.com/webapps", linkedin: "https://www.linkedin.com/in/nikola-vasilev-ab1161b9/", github: "https://github.com/crux-in-lan", }, jobTitle: "IT/KPI specialist", location: { city: "Sofia", state: "Sofia", country: "Bulgaria", }, }, { id: uuidv4(), name: "Brian Bartholomew", img: "https://res.cloudinary.com/djkkmw08b/image/upload/v1554409314/profile.png", links: { website: "https://brianbartholomew.tech/", linkedin: "https://www.linkedin.com/in/bartholomewbd/", github: "https://github.com/Bartholomewbd", }, jobTitle: "Front End Javascript Developer", location: { city: "Torrington", state: "CT", country: "USA", }, }, { id: uuidv4(), name: "Ciprian Cozma", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/ciprian-cozma/", github: "https://github.com/cipriancozma", }, jobTitle: "Front-End Developer", location: { city: "Iasi", state: "", country: "Romania", }, }, { id: uuidv4(), name: "Angel Tat", img: "https://i.imgur.com/siAUyvM.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/tat-angel-10668b117/", github: "https://github.com/angeltat", }, jobTitle: "Full Stack Web Developer", location: { city: "Timisoara", state: "Timis", country: "Romania", }, }, { id: uuidv4(), name: "Ileana Argyris", img: "", links: { website: "http://argyrisileana.com", linkedin: "https://www.linkedin.com/in/ileanaargyris/", github: "https://github.com/ileanahi/", }, jobTitle: "Front End Developer", location: { city: "", state: "Hawaii", country: "USA", }, }, { id: uuidv4(), name: "Tom Makowski", img: "https://media.licdn.com/dms/image/C5103AQElYXGsB0zQaA/profile-displayphoto-shrink_200_200/0?e=1560384000&v=beta&t=5afHEkKMbiUOD3JfUW92FGYk9x14PtbhYAT5_3B9GYo", links: { website: "http://www.backtodev.com", linkedin: "https://www.linkedin.com/in/tomasz-makowski/", github: "https://github.com/t-mak/", }, jobTitle: "Web Developer", location: { city: "", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Michael Johnston", img: "https://media.licdn.com/dms/image/C5603AQFA4TjeE9_hog/profile-displayphoto-shrink_200_200/0?e=1560384000&v=beta&t=Hr4Mh5NAaORzJ8NdxU6XH4fmND1pitP8fyJ01NCuhkE", links: { website: "https://michaeljamie.com/", linkedin: "https://www.linkedin.com/in/michaeljamiejohnston/", github: "https://github.com/michaeljamie", }, jobTitle: "Software Engineer", location: { city: "Greater Salt Lake City", state: "Utah", country: "USA", }, }, { id: uuidv4(), name: "Jack Chen (陳紀嘉)", img: "https://media.licdn.com/dms/image/C4E03AQE-Ft2dFtGI3g/profile-displayphoto-shrink_200_200/0?e=1560384000&v=beta&t=K5h7NsZlfZS6KNIs5yubO02ljf2GPcI72GQd-LgvyDs", links: { website: "https://jackchen1210.github.io/", linkedin: "https://www.linkedin.com/in/jackchen1210/", github: "https://github.com/jackchen1210", }, jobTitle: "FullStack Developer/Unity Developer", location: { city: "Kaohsiung", state: "Taiwan", country: "Taiwan", }, }, { id: uuidv4(), name: "Aria Samandi", img: "https://avatars2.githubusercontent.com/u/36803081?s=400&u=f557431b948c12c0ec3a5f5cb21e1a1a783b18a0&v=4", links: { website: "http://ariasamandi.com", linkedin: "https://www.linkedin.com/in/aria-samandi-91799a159/", github: "https://github.com/ariasamandi", }, jobTitle: "Full-Stack Developer", location: { city: "Pacific Palisades", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Bryan Windsor", img: "https://i.imgur.com/LEftyx4.jpg", links: { website: "http://www.taidaid.com", linkedin: "https://www.linkedin.com/in/bryanwindsor/", github: "https://github.com/taidaid", }, jobTitle: "Full-Stack Developer", location: { city: "", state: "", country: "Netherlands", }, }, { id: uuidv4(), name: "Siddharth Gusain", img: "https://github.com/siddharthgusain/My-Portfolio/blob/master/assets/images/sid.jpg", links: { website: "https://siddharthgusain.github.io/My-Portfolio/", linkedin: "https://in.linkedin.com/in/siddharth-gusain-355b84156", github: "https://github.com/siddharthgusain", }, jobTitle: "Full-Stack Developer", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Nahuel Alberti", img: "https://avatars3.githubusercontent.com/u/40583848?s=400&u=0b353b719e77f4f18a0c75f164c8cfc81030ceca&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/nahuel-alberti/", github: "https://github.com/NAlberti7", }, jobTitle: "Front End Developer", location: { city: "Ramos Mejia", state: "Buenos Aires", country: "Argentina", }, }, { id: uuidv4(), name: "Prashanth Adurugatla", img: "https://avatars0.githubusercontent.com/u/33069358?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/padurugatla/", github: "https://github.com/PrashanthAdurugatla", }, jobTitle: "Software Developer", location: { city: "San Francisco", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Saif Sadi", img: "https://avatars1.githubusercontent.com/u/26534702?s=460&v=4", links: { website: "http://xammin.com/", linkedin: "https://www.linkedin.com/in/saif-ur-rehman-5311a6b7/", github: "https://github.com/saifsadi", }, jobTitle: "Full Stack Developer ", location: { city: "Rawalpindi", state: "", country: "Pakistan", }, }, { id: uuidv4(), name: "Swarnendu Rohan Gupta", img: "https://photos.app.goo.gl/h3yvhZte479o8jKA8", links: { website: "https://swarnendurohanguptawebsite.firebaseapp.com/", linkedin: "https://www.linkedin.com/in/swarnendurohan-gupta/", github: "https://github.com/srgupta5328", }, jobTitle: "Software Developer", location: { city: "Oakland", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Tom Tong", img: "https://avatars3.githubusercontent.com/u/37486901?s=400&u=263546b8e7d2014db8badc93e9415962d0c8ddd5&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/meng-tong-7a5bb48b/", github: "https://github.com/Tom-MengTong", }, jobTitle: "Developer", location: { city: "Dunedin", state: "Otago", country: "New Zealand", }, }, { id: uuidv4(), name: "Britta Wang", img: "https://avatars3.githubusercontent.com/u/41138162?s=400&u=6ffe0c724e97c3de98b73c51bd5797b79711f9df&v=4", links: { website: "https://congw-syd.github.io", linkedin: "https://www.linkedin.com/in/cong-wang-374483172/", github: "https://github.com/congw-syd", }, jobTitle: "Front-End Developer", location: { city: "Sydney", state: "NSW", country: "Australia", }, }, { id: uuidv4(), name: "Pourush Shrestha", img: "https://media.licdn.com/dms/image/C4E03AQH-QmWXVwAo2A/profile-displayphoto-shrink_100_100/0?e=1562198400&v=beta&t=KGHdy-AAuYuwr-dzi5JY9xFQquwphRnGvXoRp_RA874", links: { website: "https://pourushshrestha.com", linkedin: "https://www.linkedin.com/in/pourush-shrestha/", github: "https://github.com/Pourush1", }, jobTitle: "Software Developer", location: { city: "Philadelphia", state: "Pennsylvania", country: "United States", }, }, { id: uuidv4(), name: "Anna Popowicz", img: "https://avatars1.githubusercontent.com/u/32011952?s=400&u=8042b97dd097bdab86e2ea95a875131fa02bbfbb&v=4", links: { website: "https://github.com/annpop", linkedin: "ttps://www.linkedin.com/in/anna-popowicz-01bb8456/", github: "https://github.com/annpop", }, jobTitle: "Junior Front-end Developer", location: { city: "Wrocław", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Ezenwanne Kenneth", img: "https://avatars2.githubusercontent.com/u/46355242?s=400&u=bc992566f4da86f5a81a8e2dcc380ffd36427bc4&v=4", links: { website: "https://github.com/surelinks", linkedin: "ttps://www.linkedin.com/in/Ezenwanne Kenneth/", github: "https://github.com/surelinks", }, jobTitle: "Full Stack Web Developer", location: { city: "Abuja", state: "FCT", country: "Nigeria", }, }, { id: uuidv4(), name: "Arigbede Abiodun", img: "https://res.cloudinary.com/deksm5bm1/image/upload/v1557241675/DSC_8633.jpg", links: { website: "https://abbyjoe.github.io/portfolio", linkedin: "", github: "https://github.com/abbyjoe", }, jobTitle: "Front-end Developer", location: { city: "Abeokuta", state: "Ogun", country: "Nigeria", }, }, { id: uuidv4(), name: "Steve Gojkov", img: "http://i65.tinypic.com/2agwbd3.png", links: { website: "http://www.stevegojkov.com", linkedin: "https://www.linkedin.com/in/stevegojkov", github: "https://github.com/gojkov/my-site", }, jobTitle: "Front End Developer", location: { city: "Detroit", state: "MI", country: "USA", }, }, { id: uuidv4(), name: "Rahil Hasnani", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/rahil-hasnani", github: "https://github.com/rahilhasnani95", }, jobTitle: "Front End Developer", location: { city: "Houston", state: "TX", country: "USA", }, }, { id: uuidv4(), name: "Marina Pestriacheva", img: "http://i68.tinypic.com/8g0j.jpg", links: { website: "http://www.rushingmarina.com/rm-demo/", linkedin: "https://www.linkedin.com/in/marina-pestriacheva-107b27143/", github: "https://github.com/rushingMarina", }, jobTitle: "Full Stack Web Developer", location: { city: "San Diego", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Bill Shannon", img: "http://i67.tinypic.com/6huw5d.jpg", links: { website: "http://www.billshamnon.com", linkedin: "https://www.linkedin.com/in/bill-shannon-734a118b/", github: "https://github.com/billshannon", }, jobTitle: "Full Stack Web Developer", location: { city: "Boulder", state: "CO", country: "USA", }, }, { id: uuidv4(), name: "Jason D'souza", img: "https://media.licdn.com/dms/image/C4D03AQHIjo9Nwl45XA/profile-displayphoto-shrink_200_200/0?e=1562803200&v=beta&t=W-NCStiVinGB2rQHmVarXu8KYuX2Jj-g-S7ML3rf-Q8", links: { website: "https://jasondsouza.dev/", linkedin: "https://www.linkedin.com/in/jason-d-souza-861762100/", github: "https://github.com/jvdsouza", }, jobTitle: "Full Stack Web Developer", location: { city: "Melbourne", state: "VIC", country: "Australia", }, }, { id: uuidv4(), name: "Brandon Castillo", img: "", links: { website: "https://brandonmcastillo.com/", linkedin: "https://www.linkedin.com/in/brandonmcastillo/", github: "https://github.com/brandonmcastillo", }, jobTitle: "Full Stack Web Developer", location: { city: "San Francisco", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Yasen Peev", img: "https://media.licdn.com/dms/image/C5603AQFy32Y80JCOcg/profile-displayphoto-shrink_200_200/0?e=1563408000&v=beta&t=0FSUqUyOyNLsh0-vrpgE80qcM_uz-3A8g8nnaxTSpDQ", links: { website: "", linkedin: "https://www.linkedin.com/in/yasen-peev-591318184/", github: "https://github.com/YasenPeev", }, jobTitle: "Full Stack Web Developer", location: { city: "Bracknell", state: "", country: "UK", }, }, { id: uuidv4(), name: "Juarez Pistore", img: "", links: { website: "www.juarezpistore.com", linkedin: "https://www.linkedin.com/in/juarez-pistore/", github: "https://github.com/juarezpistore", }, jobTitle: "Backend Software Developer", location: { city: "Vancouver", state: "British Columbia", country: "Canada", }, }, { id: uuidv4(), name: "Ronak Khimani", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/ronak-khimani", github: "https://github.com/Ron1722", }, jobTitle: "Front end developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Daniel Hardiman", img: "https://avatars1.githubusercontent.com/u/38153501?s=460&v=4", links: { website: "https://muaykhao86.github.io/Portfolio/", linkedin: "https://linkedin.com/in/daniel-hardiman-73844233", github: "https://github.com/Muaykhao86", }, jobTitle: "Full Stack Developer", location: { city: "London", state: "", country: "UK", }, }, { id: uuidv4(), name: "Alexander Tryastsyn", img: "https://goodhousekeeper.ru/style/images/photo.jpg", links: { website: "https://goodhousekeeper.ru", linkedin: "", github: "https://github.com/goodhousekeeper", }, jobTitle: "Team leader, full stack web developer", location: { city: "Saint-Petersburg", state: "", country: "RU", }, }, { id: uuidv4(), name: "Lucas Sallada", img: "https://avatars3.githubusercontent.com/u/18669601?s=460&v=4", links: { website: "http://sallada.org/", linkedin: "https://www.linkedin.com/in/lucas-sallada-6242a4106/", github: "https://github.com/yonlu", }, jobTitle: "Web Developer", location: { city: "Beaver Falls", state: "PA", country: "USA", }, }, { id: uuidv4(), name: "Makoto Dejima", img: "https://media.licdn.com/dms/image/C5603AQHO3f3ipaGjQQ/profile-displayphoto-shrink_200_200/0?e=1564012800&v=beta&t=SIQ27nhuP19KwYu0w_0w4h-ZuSq4BBHQ__izKoNKltI", links: { website: "https://madmak.me", linkedin: "https://www.linkedin.com/in/makotodejima/", github: "https://github.com/makotodejima", }, jobTitle: "Front-End Developer / Designer", location: { city: "Berlin", state: "", country: "Germany", }, }, { id: uuidv4(), name: "Abdulganiyu Yusufu", img: "https://doc-04-8c-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/3julgj05k7ps7rni7dpgh3jkub77heeg/1558656000000/18093204587770278309/*/1muqi9lO3lhoyXzRBRHUFhcXwIMNEHZlG", links: { website: "abdulganiyuyusufu.com", linkedin: "https://www.linkedin.com/in/abdulyusufu/", github: "https://github.com/abdulg95", }, jobTitle: "Full-Stack Developer", location: { city: "Ottawa", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Yang Zhao", img: "http://i65.tinypic.com/29wwepg.jpg", links: { website: "https://yangzhao71.github.io", linkedin: "https://www.linkedin.com/in/yangmengyuan-zhao-b97b13173/", github: "https://github.com/YangZhao71", }, jobTitle: "Full-Stack Developer", location: { city: "Ithaca", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Jonathan Helvey", img: "https://avatars3.githubusercontent.com/u/33816020?s=460&v=4", links: { website: "www.jonathanhelvey.com", linkedin: "https://www.linkedin.com/in/jonathanhelvey/", github: "https://github.com/JonathanHelvey", }, jobTitle: "Full Stack Developer", location: { city: "Chicago", state: "IL", country: "USA", }, }, { id: uuidv4(), name: "Waleed Mastour", img: "http://i63.tinypic.com/311qkoi.jpg", links: { website: "https://wmm3636.github.io/", linkedin: "https://www.linkedin.com/in/waleed-mastour-059b7a89/", github: "https://github.com/wmm3636", }, jobTitle: "Full Stack Developer", location: { city: "Riyadh", state: "Ar Riyadh", country: "Saudi Arabia", }, }, { id: uuidv4(), name: "Gabriel Cadiz", img: "https://avatars0.githubusercontent.com/u/42247905?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/gabriel-cadiz/", github: "https://github.com/gabecadiz", }, jobTitle: "Full-Stack Javascript Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Cliff Mirschel", img: "https://logodix.com/logo/557730.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/clifford-benjamin-mirschel/", github: "https://github.com/BlueBoi904", }, jobTitle: "Full-Stack Developer", location: { city: "Jacksonville", state: "FL", country: "USA", }, }, { id: uuidv4(), name: "Sikiru Shittu", img: "https://media.licdn.com/dms/image/C5603AQFEXZQ1oItw3g/profile-displayphoto-shrink_200_200/0?e=1564617600&v=beta&t=fJXQ2l43kk7nXlmYPbYJoBI-KTfEwMwGjnaOPqDULiY", links: { website: "https://afreekamode.wordpress.com", linkedin: "https://www.linkedin.com/in/sikirushittu/", github: "https://github.com/afreekamode", }, jobTitle: "Software Developer", location: { city: "Lagos", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Mayra Ruiz", img: "https://pbs.twimg.com/profile_images/1111480794818633728/5lKb3FXK_400x400.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/mruiz27/", github: "https://github.com/meyruiz", }, jobTitle: "Software Developer", location: { city: "Monterrey", state: "", country: "Mexico", }, }, { id: uuidv4(), name: "Ryan Boris", img: "https://avatars3.githubusercontent.com/u/19439753?v=4", links: { website: "", linkedin: "https://www.linked.com/in/ryanboris", github: "https://github.com/ryanboris", }, jobTitle: "Fullstack Developer", location: { city: "Philadelphia", state: "Pennsylvania", country: "United States", }, }, { id: uuidv4(), name: "Brennon Borbon", img: "https://avatars3.githubusercontent.com/u/30765158?s=40&v=4", links: { website: "https://brennon-borbon.netlify.com", linkedin: "", github: "https://github.com/brenborbs", }, jobTitle: "Full Stack Developer - MERN Stack, Gatsby.js/JAMStack", location: { city: "Cebu City", state: "City of Cebu", country: "Philippines", }, }, { id: uuidv4(), name: "Theodore Nguyen", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/theodorenguyen45", github: "", }, jobTitle: "Full Stack Developer", location: { city: "Brisbane", state: "Queensland", country: "Australia", }, }, { id: uuidv4(), name: "Diyar Faraj", img: "https://diyarfaraj.com/img/portrait.jpg", links: { website: "diyarfaraj.com", linkedin: "https://www.linkedin.com/in/diyar-faraj/", github: "https://github.com/diyarfaraj", }, jobTitle: "Developer", location: { city: "", state: "", country: "Sweden", }, }, { id: uuidv4(), name: "Lily Chen", img: "", links: { website: "", linkedin: "", github: "https://github.com/liliburg711", }, jobTitle: "Full Stack Developer", location: { city: "Miaoli", state: "", country: "Taiwan", }, }, { id: uuidv4(), name: "Idris Lawal", img: "https://res.cloudinary.com/idtitanium/image/upload/v1559991948/WhatsApp_Image_2019-01-29_at_14.27.50.jpg", links: { website: "https://idrislawal.herokuapp.com", linkedin: "https://linkedin.com/lawal-idris-oluwaseun", github: "https://github.com/IDTitanium", }, jobTitle: "Full Stack Developer", location: { city: "Lagos Mainland", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Kitravee Siwatkittisuk", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/kitravee-siwatkittisuk", github: "https://github.com/Gitravs", }, jobTitle: "Software Engineer", location: { city: "Bangkok", state: "", country: "Thailand", }, }, { id: uuidv4(), name: "Hagai Harari", img: "", links: { website: "http://www.hagaiportfolio.ml", linkedin: "", github: "https://github.com/YogiHa", }, jobTitle: "Full Stack Developer", location: { city: "Tel-Aviv", state: "middlecountry", country: "Israel", }, }, { id: uuidv4(), name: "Ulysse Tassidis", img: "https://i.imgur.com/voZ5o7b.jpg", links: { website: "https://ulyssetsd.github.io/", linkedin: "https://www.linkedin.com/in/ulyssetassidis/", github: "https://github.com/ulyssetsd/", }, jobTitle: "Full Stack Developer", location: { city: "Dublin", state: "", country: "Ireland", }, }, { id: uuidv4(), name: "Ashraf Patel", img: "https://avatars1.githubusercontent.com/u/13857813?s=460&v=4", links: { website: "https://ashrafpatel.github.io/", linkedin: "https://www.linkedin.com/in/ashr4fpatel/", github: "https://github.com/AshrafPatel", }, jobTitle: "Full Stack Developer", location: { city: "Mississauga", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Priyank Patel", img: "https://avatars2.githubusercontent.com/u/29913350", links: { website: "patel-priyank.github.io", linkedin: "linkedin.com/in/patel23priyank", github: "github.com/patel-priyank", }, jobTitle: "Software Engineer", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Esteban Barron Palma", img: "http://estebanbarron.com/assets/images/img-01.jpg", links: { website: "http://estebanbarron.com/", linkedin: "https://www.linkedin.com/in/esteban-barr%C3%B3n-a60a2a113/", github: "https://github.com/aberro3s", }, jobTitle: "Full Stack Developer", location: { city: "Merida", state: "Yucatan", country: "Mexico", }, }, { id: uuidv4(), name: "Joe Domingo", img: "https://contentapi.joedomingo.online/wp-content/uploads/joed-prof-pic-02.png", links: { website: "https://joedomingo.online", linkedin: "https://www.linkedin.com/in/joe-domingo-front-end-developer/", github: "https://github.com/joedonline", }, jobTitle: "Front End Developer, UI/UX, Graphic Design", location: { city: "NY Metropolitan", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Sam Raha", img: "https://i.imgur.com/cSoj3V0.jpg", links: { website: "https://samraha.com/", linkedin: "https://www.linkedin.com/in/sam-raha-6983a4b6/", github: "https://github.com/SamRaha", }, jobTitle: "Full Stack Developer", location: { city: "Leeds", state: "Yorkshire", country: "United Kingdom", }, }, { id: uuidv4(), name: "Mier Dhundee Agil", img: "https://media.licdn.com/dms/image/C5603AQH1AzK-WTtRdw/profile-displayphoto-shrink_200_200/0?e=1565827200&v=beta&t=VVeReX4qKqSRqISql62X4PZ1rz4W6O2OUbSLGZ1yw-Q", links: { website: "mieragil.github.io", linkedin: "https://www.linkedin.com/in/mier-agil-4333b011a/", github: "github.com/mieragil", }, jobTitle: "Full-Stack Web Developer", location: { city: "", state: "", country: "Philippines", }, }, { id: uuidv4(), name: "Ty Jenkins", img: "https://imgur.com/a/v4tNAIP", links: { website: "https://yujiman85.github.io/", linkedin: "https://www.linkedin.com/in/ty-jenkins/", github: "https://github.com/Yujiman85", }, jobTitle: "Software Engineer/Web Developer", location: { city: "Philadelphia", state: "Pennsylvania", country: "United States", }, }, { id: uuidv4(), name: "Vaibhav Heda", img: "http://estebanbarron.com/assets/images/img-01.jpg", links: { website: "https://vaibhav-heda.netlify.com/", linkedin: "https://www.linkedin.com/in/vaibhav-h-a5383b109/", github: "https://github.com/Vai-devil", }, jobTitle: "Full Stack Developer", location: { city: "Jaipur", state: "Rajasthan", country: "India", }, }, { id: uuidv4(), name: "Maliha Kabir", img: "https://malihakabir.github.io/img/Me.jpg", links: { website: "https://malihakabir.github.io/", linkedin: "https://www.linkedin.com/in/maliha-k-bb5867144/", github: "https://github.com/MalihaKabir", }, jobTitle: "Full-Stack JavaScript Developer", location: { city: "Dhaka", state: "", country: "Bangladesh", }, }, { id: uuidv4(), name: "Jose Carlos Gomez", img: "https://imgur.com/Ln8xFkh", links: { website: "", linkedin: "https://www.linkedin.com/in/carlos-gomez-pro/", github: "https://github.com/Carlitos5963", }, jobTitle: "Software Engineer/Web Developer", location: { city: "San Diego", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Amen Christ", img: "https://scontent-lhr3-1.cdninstagram.com/vp/6167186d3860eeae9ab0535c041c21ed/5DC4A546/t51.2885-19/s150x150/14596806_573322182869487_7938413337669271552_a.jpg?_nc_ht=scontent-lhr3-1.cdninstagram.com", links: { website: "", linkedin: "https://www.linkedin.com/in/amen-christ-85b919189/", github: "https://github.com/amenchrist", }, jobTitle: "Web Developer / Front-end Developer", location: { city: "London", state: "England", country: "United Kingdom", }, }, { id: uuidv4(), name: "Matthew Zito", img: "https://ia601402.us.archive.org/27/items/photo2_201906/photo%202.jpg", links: { website: "https://matthewzito.github.io", linkedin: "https://www.linkedin.com/in/matthew-zito/", github: "https://github.com/matthewzito", }, jobTitle: "Full Stack Web Developer / Blockchain Developer", location: { city: "Portland", state: "Oregon", country: "United States", }, }, { id: uuidv4(), name: "Ravshan Artykov", img: "https://avatars1.githubusercontent.com/u/44540541?s=400&u=fdf000aeba0d7c5090907b5bfd4f33aa9965790a&v=4", links: { website: "www.ravarty.me", linkedin: "https://www.linkedin.com/in/ravart/", github: "https://github.com/RavArty", }, jobTitle: "Web Developer/Software Developer", location: { city: "Los Angeles", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Jan Cyngynn Frigillana", img: "https://avatars2.githubusercontent.com/u/52190655?s=460&v=4", links: { website: "", linkedin: "", github: "https://github.com/JancKode", }, jobTitle: "Web Developer/Software Developer", location: { city: "Baguio", state: "Benguet", country: "Philippines", }, }, { id: uuidv4(), name: "SASSOUI Abdel", img: "https://sassouiabd.github.io/static/img/photo.jpg", links: { website: "https://sassouiabd.github.io/", linkedin: "https://www.linkedin.com/in/abdel-sassoui-59492146/", github: "https://github.com/sassouiabd", }, jobTitle: "Technical Lead Engineer", location: { city: "Paris", state: "", country: "France", }, }, { id: uuidv4(), name: "Niketan Moon", img: "", links: { website: "https://www.niketanmoon.ml", linkedin: "www.linkedin.com/in/niketanmoon", github: "https://github.com/niketanmoon", }, jobTitle: "Full Stack Developer/Research Assistant", location: { city: "Wardha", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Peng Xu", img: "https://imgur.com/a/hM2ug3A", links: { website: "https://xp0515.github.io/portfolio/", linkedin: "https://www.linkedin.com/in/peng-xu-a08089172/", github: "https://github.com/xp0515", }, jobTitle: "Web Developer", location: { city: "Sydney", state: "NSW", country: "Australia", }, }, { id: uuidv4(), name: "Ukpai Emeka", img: "https://imgur.com/muqELZB", links: { website: "", linkedin: "https://www.linkedin.com/in/ukpai-emeka/", github: "https://github.com/Mr-emeka", }, jobTitle: "Web Developer", location: { city: "Lagos", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Karin Povolozki-Rabichev", img: "https://cdn1.imggmi.com/uploads/2019/7/7/5b930225b449c12d52f1e2d8f2f73c72-full.jpg", links: { website: "https://karin-personal-website.herokuapp.com/", linkedin: "https://www.linkedin.com/in/karin-povolozki-rabichev/", github: "https://github.com/KarinPR/", }, jobTitle: "Full-Stack Developer", location: { city: "Ashdod", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Uchenna Sylvester Okoro", img: "https://avatars3.githubusercontent.com/u/38369717?s=460&v=4", links: { website: "", linkedin: "www.linkedin.com/in/uchenna-okoro/", github: "https://github.com/UcheSylvester", }, jobTitle: "Web Developer", location: { city: "", state: "Abia State", country: "Nigeria", }, }, { id: uuidv4(), name: "Shashank Singh", img: "https://imgur.com/a/jzGrGcK", links: { website: "shashankcic.github.io", linkedin: "www.linkedin.com/in/shashankcic/", github: "https://github.com/shashankcic", }, jobTitle: "Web Developer", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Shreeya Bhetwal", img: "https://github.com/Shreeya12/Shreeya12.github.io/blob/master/images/me.jpg", links: { website: "Shreeya12.github.io", linkedin: "https://www.linkedin.com/in/shreeya-bhetwal-059453185/", github: "https://github.com/Shreeya12", }, jobTitle: "Front-End Developer", location: { city: "San Francisco", state: "California", country: "United States of America", }, }, { id: uuidv4(), name: "Guilherme Brunner", img: "https://sgtbrunner.github.io/img/profile.png", links: { website: "https://sgtbrunner.github.io/", linkedin: "https://www.linkedin.com/in/guilherme-brunner/", github: "https://github.com/sgtbrunner", }, jobTitle: "Web Developer", location: { city: "São Paulo", state: "", country: "Brazil", }, }, { id: uuidv4(), name: "Tanner Stoker", img: "https://avatars2.githubusercontent.com/u/50390123?s=460&v=4", links: { website: "https://github.com/Tanner016", linkedin: "https://www.linkedin.com/in/tanner-stoker-78133a177/", github: "https://github.com/Tanner016", }, jobTitle: "Web Developer", location: { city: "Henderson", state: "Nevada", country: "United States of America", }, }, { id: uuidv4(), name: "Prateek Madaan", img: "https://miro.medium.com/fit/c/256/256/1*knoM7uDg8YqnxFCffX3gDg.jpeg", links: { website: "https://prateekmadaan.me", linkedin: "https://www.linkedin.com/in/prateek-madaan-08a7919a/", github: "https://github.com/prateek951", }, jobTitle: "Full Stack Developer", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Saurabh Singh", img: "https://avatars2.githubusercontent.com/u/40304636?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/saurabhsingh121/", github: "https://github.com/saurabhsingh121", }, jobTitle: "Full Stack Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Lachlan Whelan", img: "https://lachlanwhelan.github.io/images/logo.png", links: { website: "", linkedin: "https://www.linkedin.com/in/lachlan-whelan-666386179/", github: "https://github.com/lachlanwhelan", }, jobTitle: "Full-Stack Developer", location: { city: "Sydney", state: "NSW", country: "Australia", }, }, { id: uuidv4(), name: "Gioacchino Di Nardo", img: "https://media.licdn.com/dms/image/C4E03AQEmLetBdMjEQA/profile-displayphoto-shrink_200_200/0?e=1568851200&v=beta&t=9IWXFMTqCMVg-7vieB9v5KEFjtjtwGDrzWw64sgBwis", links: { website: "https://gioacchino-dinardo.com", linkedin: "https://www.linkedin.com/in/gioacchino-di-nardo/", github: "https://github.com/deeseert", }, jobTitle: "Full Stack Web Developer", location: { city: "London", state: "", country: "UK", }, }, { id: uuidv4(), name: "Daniel Guitara", img: "https://avatars2.githubusercontent.com/u/52767209?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/mohamad-daniel-guitara-4ba67290/", github: "https://github.com/danielguitara", }, jobTitle: "Software Developer", location: { city: "Jakarta", state: "", country: "Indonesia", }, }, { id: uuidv4(), name: "Rahul Syal", img: "https://res.cloudinary.com/dssa0shmr/image/upload/v1561878959/Pydata/rahuls_wuro1z.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/rahul-syal-646380151", github: "https://github.com/rahulsyal2512", }, jobTitle: "Full Stack Developer", location: { city: "Jalandhar", state: "Punjab", country: "India", }, }, { id: uuidv4(), name: "Anushka Beri", img: "https://res.cloudinary.com/dkksvxoms/image/upload/v1563784729/anushka_ilpacf_p7hj0u.jpg", links: { website: "https://thisbutterfly.netlify.com/", linkedin: "https://www.linkedin.com/in/anushka-beri-1b767a140/", github: "https://github.com/thisbutterfly", }, jobTitle: "Full Stack Developer", location: { city: "Ludhiana", state: "Punjab", country: "India", }, }, { id: uuidv4(), name: "Daniyal Majeed", img: "https://avatars1.githubusercontent.com/u/37538929?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/daniyal-majeed-a3821118a/", github: "https://github.com/danymajeed", }, jobTitle: "Full Stack Developer", location: { city: "Faisalabad", state: "Punjab", country: "Pakistan", }, }, { id: uuidv4(), name: "Glyn Lewington", img: "https://avatars2.githubusercontent.com/u/28625651?s=460&v=4", links: { website: "https://www.glynlewington.com", linkedin: "www.linkedin.com/in/glynlewington", github: "https://github.com/glynl", }, jobTitle: "Frontend Developer", location: { city: "Brisbane", state: "Queensland", country: "Australia", }, }, { id: uuidv4(), name: "Olamide Aboyeji", img: "https://avatars1.githubusercontent.com/u/40968569?s=460&v=4", links: { website: "https://aolamide.me", linkedin: "www.linkedin.com/in/aolamide/", github: "https://github.com/aolamide", }, jobTitle: "Web Developer", location: { city: "Lagos", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Spencer Fong", img: "https://github.com/spencerericfong/spencerericfong.github.io/blob/master/assets/pictures/Spencer_Profile.png", links: { website: "https://spencerericfong.github.io/", linkedin: "https://www.linkedin.com/in/spencer-eric-fong/", github: "https://github.com/spencerericfong", }, jobTitle: "Full Stack Dev/Student", location: { city: "Irvine", state: "California", country: "United States of America", }, }, { id: uuidv4(), name: "Andrea Franco", img: "https://github.com/andrea07021981/AndreaSite.github.io/blob/master/images/personalimage.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/andrea-franco-9624a278", github: "https://github.com/andrea07021981", }, jobTitle: "Mobile & Web Developer", location: { city: "Pordenone", state: "Friuli Venezia Giulie", country: "Italy", }, }, { id: uuidv4(), name: "FLORENCE ONYEDIKACHI NZE-BEN", img: "https://avatars1.githubusercontent.com/u/28601222?s=400&u=a1d6a8de8c34a150f6ccf71f5d91508330216d47&v=4", links: { website: "https://www.thekachi.com", linkedin: "https://www.linkedin.com/in/onyedikachi-f-nze-a37938163/", github: "https://github.com/TheKachi", }, jobTitle: "FULL STACK DEVELOPER", location: { city: "VICTORIA ISLAND", state: "LAGOS", country: "NIGERIA", }, }, { id: uuidv4(), name: "Ajay Kumar", img: "http://indianexpresss.in/wp-content/uploads/2019/07/FB_IMG_15633520365070317.jpg", links: { website: "", linkedin: "", github: "https://github.com/Ajaybhardwaj90", }, jobTitle: "Android & JavaEE Developer ", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Ayoub Issaad", img: "https://avatars0.githubusercontent.com/u/5059344?s=460&v=4", links: { website: "http://www.ayoubissaad.com/", linkedin: "https://www.linkedin.com/in/ayoubissaad/", github: "https://github.com/AyoubIssaad", }, jobTitle: "Full Stack Developer, (React, NodeJS, PHP), Database Manager", location: { city: "Marrakech", state: "", country: "Morocco", }, }, { id: uuidv4(), name: "Yulin Wang", img: "", links: { website: "https://yulin-profile.herokuapp.com/", linkedin: "www.linkedin.com/in/javascript-developer-yulin", github: "https://github.com/wangyulinaaron", }, jobTitle: "Full Stack Developer", location: { city: "ChongQing", state: "ChongQing", country: "China", }, }, { id: uuidv4(), name: "Fauzi Arda Saputra", img: "", links: { website: "https://fauziardha1.github.io/", linkedin: "linkedin.com/in/fauzi-arda-saputra-170557a4", github: "https://github.com/fauziardha1", }, jobTitle: "Full Stack Developer , c++, Java", location: { city: "Jakarta", state: "", country: "Indonesia", }, }, { id: uuidv4(), name: "Kinga Polgar", img: "https://raw.githubusercontent.com/kpolgar/profile-image/master/profile-image-small.png", links: { website: "http://www.kingapolgar.com/", linkedin: "https://www.linkedin.com/in/kinga-polgar", github: "https://github.com/kpolgar", }, jobTitle: "Full Stack Developer", location: { city: "New York", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Chisom Trisha Okoye", img: "http://www.trishaomabu.com/wp-content/uploads/2019/07/logo1.png", links: { website: "https://trishachi.github.io/Profile-Page-Project/index.html", linkedin: "https://www.linkedin.com/in/chisom-trisha-okoye/", github: "https://github.com/Trishachi", }, jobTitle: "Front End Developer | Project Management Professional", location: { city: "Calgary", state: "AB", country: "Canada", }, }, { id: uuidv4(), name: "Gagandeep Singh", img: "https://scontent-sjc3-1.xx.fbcdn.net/v/t1.0-9/66186607_858071157892550_5724901559700029440_n.jpg?_nc_cat=103&_nc_oc=AQl4Kl6qfRIPJiaDSmUfNaR64wdCAeCdeDU081FFq2IhQvA_MZgsyckTMW4YZHXoWYgVPXNj9HwIeluW2k605Pfl&_nc_ht=scontent-sjc3-1.xx&oh=c4a436124c6e939c0595d3963772d73a&oe=5DA48472", links: { website: "", linkedin: "https://www.linkedin.com/in/singhperry01/", github: "https://github.com/singhperryo1", }, jobTitle: "Full Stack, Java, C++", location: { city: "Santa Clara", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Sevilay Selecki", img: "https://www.google.com/search?q=sevilay+selecki&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiUmZOp09zjAhUuxKYKHc5MD-UQ_AUIESgB&biw=1366&bih=657#imgrc=ehQYbg5PrDHBBM:", links: { website: "https://github.com/sevydev/my-portfolio", linkedin: "https://www.linkedin.com/in/sevilay-selecki-49568a166/", github: "https://github.com/sevydev", }, jobTitle: "Front-End Developer", location: { city: "Wroclaw", state: "Lower Silesia", country: "Poland", }, }, { id: uuidv4(), name: "Aasim Ahmed Khan Jawaad", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/aasim-ahmed-khan-jawaad/", github: "https://github.com/AasimAhmed20", }, jobTitle: "Front-End Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Daniel Jimenez", img: "https://avatars1.githubusercontent.com/u/34693940?s=460&v=4", links: { website: "danieljimenez.com.ve", linkedin: "https://www.linkedin.com/in/daniel-alejandro-1181a3190", github: "https://github.com/danieljimenzg", }, jobTitle: "Web Developer", location: { city: "Caracas", state: "Caracas", country: "Venezuela", }, }, { id: uuidv4(), name: "Jacob Giamanco", img: "https://avatars2.githubusercontent.com/u/52183478?s=460&v=4", links: { website: "https://jgiamanco.netlify.com", linkedin: "https://linkedin.com/in/jacob-giamanco", github: "https://github.com/jgiamanco", }, jobTitle: "Front-End Web Developer", location: { city: "San Diego", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "David Yang", img: "https://www.gravatar.com/avatar/f73911268c7b1cfa458988828ed89d80?d=mm&s=120", links: { website: "https://aodabo.tech", linkedin: "https://www.linkedin.com/in/zhiyuan-yang-9204b8134/", github: "https://github.com/yzyly1992", }, jobTitle: "Full-Stack Web Developer", location: { city: "Berkeley", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Murtadore Olajobi", img: "https://drive.google.com/open?id=1Bs8pnAIwnygg3cMKRaXqcZiduJwWSnJG", links: { website: "murtadore.com", linkedin: "https://www.linkedin.com/in/murtadore-olajobi-36b473165/", github: "https://github.com/mtdola", }, jobTitle: "Full-Stack Web-Developer", location: { city: "Surulere", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Omar Osuna", img: "https://avatars2.githubusercontent.com/u/35446494?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/omar-osuna/", github: "https://github.com/Omaralon", }, jobTitle: "Full-Stack Developer, ML enthusiast", location: { city: "Tijuana", state: "Baja California", country: "Mexico", }, }, { id: uuidv4(), name: "Hrishikesh Baidya", img: "https://i.ibb.co/fGB9kgK/myimg.jpg", links: { website: "http://hrishikeshbaidya.ml/", linkedin: "https://www.linkedin.com/in/hrishikesh7/", github: "https://github.com/hrishi7", }, jobTitle: "Full Stack Developer", location: { city: "Kolkata", state: "West Bengal", country: "India", }, }, { id: uuidv4(), name: "Olumide Odusote", img: "https://avatars1.githubusercontent.com/u/34481013?s=40&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/olumide-odusote", github: "https://github.com/MaGo1024", }, jobTitle: "Web Developer", location: { city: "Ikeja", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Elissavet Triantafyllopoulou", img: "https://avatars3.githubusercontent.com/u/13526047?s=460&v=4", links: { website: "https://www.elissavet.me", linkedin: "https://www.linkedin.com/in/elitriant/", github: "https://github.com/elisavetTriant", }, jobTitle: "IT Professional | Full Stack PHP Web Developer", location: { city: "", state: "", country: "Greece", }, }, { id: uuidv4(), name: "Obusor Ezekiel Umesi", img: "https://drive.google.com/open?id=14xTXWCH6nYqaFixLpQdmTAQOgFtkUQnp", links: { website: "", linkedin: "https://www.linkedin.com/in/obusor-ezekiel-umesi-a66b55121/", github: "https://github.com/obusorezekiel", }, jobTitle: "Full Stack Software Engineer & Blockchain Enthusiast", location: { city: "Port Harcourt", state: "Rivers", country: "Nigeria", }, }, { id: uuidv4(), name: "Willie Björnbom", img: "https://media.licdn.com/dms/image/C4D03AQHB0TouVafT3g/profile-displayphoto-shrink_200_200/0?e=1570665600&v=beta&t=poi4DeiS80k-dRaSWQN7zQsbju5yjctaqUkJZbU0zVU", links: { website: "", linkedin: "https://www.linkedin.com/in/willie-björnbom", github: "https://github.com/Bjoernbom", }, jobTitle: "Software Engineer/Front-End Developer", location: { city: "Örebro", state: "", country: "Sweden", }, }, { id: uuidv4(), name: "Brittani Gongre", img: "", links: { website: "brittanigongre.com", linkedin: "https://www.linkedin.com/in/brittani-gongre", github: "https://github.com/bgongre", }, jobTitle: "Front End Developer", location: { city: "Atlanta", state: "Georgia", country: "USA", }, }, { id: uuidv4(), name: "MOHD SUALEH", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/mohd-sualeh-88b24b77/", github: "https://github.com/imsualeh", }, jobTitle: "Software Engineer/Front-End Developer", location: { city: "Kannauj", state: "UTTAR Pradesh", country: "INDIA", }, }, { id: uuidv4(), name: "Rizwan Aaqil", img: "https://avatars0.githubusercontent.com/u/50185178?s=460&v=4", links: { website: "https://www.linkedin.com/in/rizwanaaqil", linkedin: "https://www.linkedin.com/in/rizwanaaqil", github: "https://github.com/rizwanrajput", }, jobTitle: "Web/WordPress Developer", location: { city: "Karachi", state: "Sindh", country: "Pakistan", }, }, { id: uuidv4(), name: "Andrzej Gołąbek (Harnas_20)", img: "https://avatars1.githubusercontent.com/u/37544193?s=460&v=4", links: { website: "https://www.mojatesciowa.pl", linkedin: "https://www.linkedin.com/in/andrzej-go%C5%82%C4%85bek-2a812b152/", github: "https://github.com/AndrzejHarnas", }, jobTitle: "Research Assistant/IT Specialist", location: { city: "Krosno", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Christopher Brinkmann", img: "https://media.licdn.com/dms/image/C4D03AQF3q_lxMNHZBA/profile-displayphoto-shrink_200_200/0?e=1571270400&v=beta&t=2it5hynstXZnXUI_2jTBINHI78ydOuKh970BUKc4y5Q", links: { website: "", linkedin: "https://www.linkedin.com/in/christopher-brinkmann-89b85a112/", github: "https://github.com/chrisbrinkmann", }, jobTitle: "Full Stack Developer", location: { city: "Washington", state: "DC", country: "USA", }, }, { id: uuidv4(), name: "Thet Aung", img: "", links: { website: "", linkedin: "", github: "https://github.com/thetaung123", }, jobTitle: "Full Stack Developer", location: { city: "Yangon", state: "Yangon", country: "Myanmar", }, }, { id: uuidv4(), name: "Selmi Ahmed", img: "https://i.ibb.co/m07qc8Y/photo-v4.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/ahmed-selmi-7b8742191/ ", github: "https://github.com/SelmiAhmed", }, jobTitle: "Web Developer", location: { city: "Tunis", state: "Tunis", country: "Tunisia", }, }, { id: uuidv4(), name: "Muhamed khaled", img: "https://i.ibb.co/gFrSYrK/me.png", links: { website: "", linkedin: "https://www.linkedin.com/in/muhamedkhaled", github: "https://github.com/MuhamedKhaled", }, jobTitle: "Software Engineer", location: { city: "Cairo", state: "", country: "Egypt", }, }, { id: uuidv4(), name: "Marcin Selecki", img: "https://media.licdn.com/dms/image/C5603AQEmuhG71_ZN5A/profile-displayphoto-shrink_200_200/0?e=1571875200&v=beta&t=yCOY_KFyQJnnYlHbhztgfrwsG1t9JOOau1DeRN4K5sY", links: { website: "", linkedin: "https://www.linkedin.com/in/marcin-selecki-595b80182/", github: "https://github.com/marcindev10", }, jobTitle: "Front-end Developer", location: { city: "Wroclaw", state: "Lower silesia", country: "Poland", }, }, { id: uuidv4(), name: "Prateek Gurnani", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/prateek-gurnani-563565108/", github: "https://github.com/prateekgurnani10", }, jobTitle: "Full Stack Developer", location: { city: "Greenville", state: "South Carolina", country: "United States", }, }, { id: uuidv4(), name: "Sam Islam", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/shamiul-islam-882595169/", github: "https://github.com/Sam5180", }, jobTitle: "Full-Stack Developer", location: { city: "New York", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "Satendra Nath Chowdhary", img: "https://lh3.googleusercontent.com/-5enlx2hf5pY/XcD0vO34-_I/AAAAAAAAAAs/hYepTtFV4AQrpNkK8zUB0-ONiugBYxJeACEwYBhgL/w140-h140-p/profile.png", links: { website: "", linkedin: "https://www.linkedin.com/in/satendra-chowdhary-100607185/", github: "https://github.com/satendrachowdhary", }, jobTitle: "JS Full Stack Developer", location: { city: "Najafgarh", state: "New Delhi", country: "India", }, }, { id: uuidv4(), name: "Pratyush Ranjan Padhi", img: "https://photos.google.com/photo/AF1QipNxW_KAy8SE_7Ju4CD3zy-BAm1CjscZIGAAEjzC", links: { website: "https://pratyushranjan.in", linkedin: "https://www.linkedin.com/in/pratyushranjanpadhi/", github: "https://github.com/pratyushranjan02", }, jobTitle: "Full Stack Developer", location: { city: "Bengaluru", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Canaan Merchant", img: "https://media.licdn.com/dms/image/C4D03AQGd9SCk8jtcYg/profile-displayphoto-shrink_200_200/0?e=1571875200&v=beta&t=m1hY3wf194OVTztx65YCmxt_2QKSICQ4tzPR-QbZCi0", links: { website: "", linkedin: "https://www.linkedin.com/in/canaaanmerchant/", github: "https://github.com/canaanmerchant", }, jobTitle: "", location: { city: "Washington", state: "DC", country: "USA", }, }, { id: uuidv4(), name: "Milton Neto", img: "https://media.licdn.com/dms/image/C4E03AQEyZRJXT8uy9A/profile-displayphoto-shrink_200_200/0?e=1571875200&v=beta&t=iBsGK_DnM5KnP-85PA1_SgNYHX3zWQSUtNOVrLLQfwA", links: { website: "", linkedin: "https://www.linkedin.com/in/milton-omena/", github: "https://github.com/omenaneto", }, jobTitle: "Full Stack Dev.", location: { city: "Maceió", state: "Alagoas", country: "Brazil", }, }, { id: uuidv4(), name: "Ruturaj Jadeja", img: "https://photos.app.goo.gl/njsLf3XieDUGQP3d7", links: { website: "https://ruturajjadeja.com/", linkedin: "https://www.linkedin.com/in/ruturajjadeja/", github: "https://github.com/ruturajjadeja", }, jobTitle: "Full Stack Developer", location: { city: "Chicago", state: "IL", country: "USA", }, }, { id: uuidv4(), name: "Christopher Deiller", img: "https://media.licdn.com/dms/image/C4D03AQFXhrR_MPrLJg/profile-displayphoto-shrink_200_200/0?e=1572480000&v=beta&t=l4I9NFiJpZ--BfVmfM6v7iMGqv59LWcuscY_8h77Fik", links: { website: "", linkedin: "www.linkedin.com/in/christopher-deiller", github: "https://github.com/MonkeyDChriss", }, jobTitle: "QA Engineer", location: { city: "Barcelona", state: "Catalunya", country: "Spain", }, }, { id: uuidv4(), name: "Maarten Schuilenburg", img: "https://media.licdn.com/dms/image/C5603AQElrFxXSA9FPQ/profile-displayphoto-shrink_200_200/0?e=1572480000&v=beta&t=qTXcrPkl58d1B-yRkr7TijMIVnmKMEof1T0KzLviI3I", links: { website: "", linkedin: "www.linkedin.com/in/maartenschuilenburg/", github: "https://github.com/HANssvvv", }, jobTitle: "Junior full-stack developer", location: { city: "Utrecht", state: "Utrecht", country: "Netherlands", }, }, { id: uuidv4(), name: "Alessio Petrin", img: "https://media.licdn.com/dms/image/C4E03AQFH8uMbXPTNQw/profile-displayphoto-shrink_200_200/0?e=1572480000&v=beta&t=ltd5xbd6mRZ1psaTuxyKfkJfLe_Q_1bPtdW7BQkCWJc", links: { website: "http://myap-portfolio.com", linkedin: "www.linkedin.com/in/alessio-petrin-41b058190/", github: "https://github.com/ale917k", }, jobTitle: "Front End Developer", location: { city: "Oxford", state: "UK", country: "United Kingdom", }, }, { id: uuidv4(), name: "Sagnil Yun", img: "https://media.licdn.com/dms/image/C5103AQHROq8oN8jExw/profile-displayphoto-shrink_200_200/0?e=1573084800&v=beta&t=KtV50zNoZqjmjMjASK_9-4Gs7THD3mleoEMxCGpHNuw", links: { website: "", linkedin: "", github: "https://github.com/SangilYun", }, jobTitle: "Full Stack Developer", location: { city: "", state: "", country: "Korea (Republic of)", }, }, { id: uuidv4(), name: "Sebastian Andrei Gruia", img: "https://i.postimg.cc/50MSjbvz/D80-5373.jpg", links: { website: "https://sebagruia.github.io/SebastianGruia-Project-Page/", linkedin: "https://www.linkedin.com/in/sebastiangruia/", github: "https://github.com/sebagruia", }, jobTitle: "Front End Developer", location: { city: "Darmstadt", state: "Hesse", country: "Deutschland", }, }, { id: uuidv4(), name: "Chung-Fan Tsai", img: "https://i.ibb.co/9V5Sysc/profile.jpg", links: { website: "https://gigi1111.github.io/Chung-Fan-Tsai-Portfolio/", linkedin: "https://www.linkedin.com/in/chung-fan-tsai-433230175/", github: "https://github.com/Gigi1111", }, jobTitle: "Full Stack JS and Django Developer", location: { city: "Berlin", state: "Berlin", country: "Germany", }, }, { id: uuidv4(), name: "Fahad Jabbar", img: "https://avatars0.githubusercontent.com/u/29518549?v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/hereisfahad/", github: "https://github.com/hereisfahad", }, jobTitle: "JavaScript Developer", location: { city: "Lahore", state: "", country: "Pakistan", }, }, { id: uuidv4(), name: "Mikkel Ridley", img: "https://avatars3.githubusercontent.com/u/11878116?s=460&v=4", links: { website: "https://amazecode.com/", linkedin: "https://www.linkedin.com/in/mikkel250/", github: "https://github.com/mikkel250", }, jobTitle: "MERN Stack Developer", location: { city: "San Francisco", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Mengyue Wu", img: "https://avatars2.githubusercontent.com/u/42802258?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/mengyue-wu-804177158/", github: "https://github.com/menyw", }, jobTitle: "Full Stack Developer", location: { city: "Adelaide/Canberra", state: "SA/ACT", country: "Australia", }, }, { id: uuidv4(), name: "Damyan Peykov", img: "", links: { website: "https://dppeykov.github.io/", linkedin: "https://www.linkedin.com/in/damyan-peykov/", github: "https://github.com/dppeykov", }, jobTitle: "Full Stack Developer/System Administrator", location: { city: "Brno", state: "South Moravia", country: "Czech Republic", }, }, { id: uuidv4(), name: "Przemyslaw Gilewski", img: "https://avatars2.githubusercontent.com/u/35427990?s=460&v=4", links: { website: "http://pgilewski.com/", linkedin: "https://www.linkedin.com/in/przemyslaw-gilewski/", github: "https://github.com/pgilewski", }, jobTitle: "Full Stack Developer", location: { city: "Szczecin", state: "zachodnio-pomorskie", country: "Poland", }, }, { id: uuidv4(), name: "Maduabuchi Okonkwo", img: "https://media.licdn.com/dms/image/C5603AQExX7PwoRztZg/profile-displayphoto-shrink_200_200/0?e=1565827200&v=beta&t=QGAprDkmWsGLRMb9Z3NyueaK8Xf7si6eyPFtF8lqU1A", links: { website: "", linkedin: "www.linkedin.com/in/maduabuchi-okonkwo-855380b9", github: "https://github.com/Maduflavins", }, jobTitle: "Software Developer|Data Sciencetist|IT Professional", location: { city: "Abuja", state: "Abuja", country: "Nigeria", }, }, { id: uuidv4(), name: "Meagan Olsen", img: "", links: { website: "https://olsenme.github.io/portfolio/", linkedin: "www.linkedin.com/in/mkjo", github: "https://github.com/olsenme", }, jobTitle: "Software Developer|Technical Consultant|Technical Program Manager", location: { city: "Portland", state: "Oregon", country: "United States", }, }, { id: uuidv4(), name: "Md Kawsar Hussen", img: "https://avatars0.githubusercontent.com/u/46500263?s=400&v=4", links: { website: "https://kawsarhussen.com/", linkedin: "https://www.linkedin.com/in/kawsarhussen16/", github: "https://github.com/kawsarhussen16", }, jobTitle: "Full Stack Developer", location: { city: "New York", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "AHNM Ebn Sina", img: "https://scontent.fdac1-1.fna.fbcdn.net/v/t1.0-9/55853478_109250640254050_4847091024142532608_n.jpg?_nc_cat=109&_nc_eui2=AeG1d3hmax9FFRFicbOl2KLJ3Renr-G9DI72BYhvTplee9lsl4-w4Iq1DHqyPJrjpQdvffVniosXBoqjyXX98n3W-KgUYir-VVUHdLTDuL0WgA&_nc_oc=AQl4iZpNSeBbP-evgA5W8Dh_J7sRdAf4mvz_t44IoywmYBAt_JpQLtgVqLUaCKjdESI&_nc_ht=scontent.fdac1-1.fna&oh=5c62ec340dd79922ef1a2820d0b07202&oe=5E0D5D84", links: { website: "https://ebnsina.me", linkedin: "https://www.linkedin.com/in/ebn-sina", github: "https://github.com/ebnsina", }, jobTitle: "Full-Stack Web Dev", location: { city: "Dhaka", state: "", country: "Bangladesh", }, }, { id: uuidv4(), name: "Ricardo Esteves", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/ricardo-esteves-a5a971159/", github: "https://github.com/ricksnow26", }, jobTitle: "Electrical Engineer, Web Developer", location: { city: "Porto", state: "", country: "Portugal", }, }, { id: uuidv4(), name: "Muhammad Ali Kazmi", img: "https://avatars.githubusercontent.com/kazmiali", links: { website: "https://kazmiali.github.io", linkedin: "https://www.linkedin.com/in/muhammad-alikazmi/", github: "https://github.com/kazmiali", }, jobTitle: "Full Stack Web Developer, React Developer, NodeJS Developer", location: { city: "Hyderabad", state: "Sindh", country: "Pakistan", }, }, { id: uuidv4(), name: "Hsing-Ju Shih", img: "https://avatars2.githubusercontent.com/u/17341322?s=460&v=4", links: { website: "https://hsingjushih.wixsite.com/website", linkedin: "https://www.linkedin.com/in/hsing-ju-shih/", github: "https://github.com/HJShih/", }, jobTitle: "Software developer, Java, C++, JavaScript", location: { city: "New Taipei City", state: "", country: "Taiwan", }, }, { id: uuidv4(), name: "Pranav Shah", img: "https://avatars1.githubusercontent.com/u/2270260?s=460&v=4", links: { website: "http://www.shahpranav.com/", linkedin: "https://www.linkedin.com/in/shpranav/", github: "https://github.com/shahpranaf", }, jobTitle: "Full Stack JavaScript Developer", location: { city: "Pune", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Diego Ormaza", img: "https://avatars0.githubusercontent.com/u/18644717?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/diego-ormaza-de-paul-14453311a", github: "https://github.com/eaglearg", }, jobTitle: "Full Stack Developer", location: { city: "Roswell", state: "GA", country: "USA", }, }, { id: uuidv4(), name: "Andrew Baisden", img: "https://avatars1.githubusercontent.com/u/5095486?s=460&v=4", links: { website: "https://andrewbaisden.com/", linkedin: "https://www.linkedin.com/in/andrew-baisden/", github: "https://github.com/andrewbaisden", }, jobTitle: "Full Stack Developer", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Mauro Small", img: "https://media.licdn.com/dms/image/C4D03AQE4qZ20MsE_KA/profile-displayphoto-shrink_200_200/0?e=1574899200&v=beta&t=niw1nWkOqv6Lr4708EQnn9a4f14hUBDTLDJ6zY6khjE", links: { website: "", linkedin: "https://www.linkedin.com/in/mauro-small/", github: "https://github.com/mlsmall", }, jobTitle: "Machine Learning Practitioner", location: { city: "Montreal", state: "", country: "Canada", }, }, { id: uuidv4(), name: "Gonzalo García Costoya", img: "https://avatars1.githubusercontent.com/u/47854878?s=400&u=0640c04415b7d75704f9d5d2c7d165db512bd860&v=4", links: { website: "linkedin.com/in/gonza-garcia", linkedin: "linkedin.com/in/gonza-garcia", github: "github.com/gonza-garcia", }, jobTitle: "Full Stack Web Developer", location: { city: "Mar del Plata", state: "Buenos Aires", country: "Argentina", }, }, { id: uuidv4(), name: "Yisau Abdussamad", img: "https://res.cloudinary.com/sammieyisau/image/upload/v1554321179/Samad_3.jpg", links: { website: "https://abdussamadyisau.github.io", linkedin: "https://www.linkedin.com/in/abdussamad-yisau-915298154/", github: "https://github.com/AbdussamadYisau", }, jobTitle: "Frontend Web Developer", location: { city: "Lagos", state: "", country: "Nigeria", }, }, { id: uuidv4(), name: "Samir Jouni", img: "https://avatars1.githubusercontent.com/u/34379157?s=400&v=4", links: { website: "https://samirjouni.com/", linkedin: "https://www.linkedin.com/in/samir-jouni-373966156/", github: "https://github.com/SamirJouni", }, jobTitle: "Fullstack Web Developer", location: { city: "Paderborn", state: "North Rhine-Westphalia", country: "Germany", }, }, { id: uuidv4(), name: "Paul McLaughlin", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/paul-mclaughlin-18297b29/", github: "https://github.com/codepol", }, jobTitle: "Fullstack Web Developer", location: { city: "Dublin", state: "", country: "Ireland", }, }, { id: uuidv4(), name: "Raafay Alam", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/raafay-alam-3b68a195/", github: "https://github.com/rffffy", }, jobTitle: "Fullstack Web Developer", location: { city: "Berlin", state: "", country: "Germany", }, }, { id: uuidv4(), name: "Bibekpreet Singh", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/bibekpreet-singh-797966166/", github: "https://github.com/bibekpreet99", }, jobTitle: "Fullstack Javascript Developer", location: { city: "", state: "Punjab", country: "India", }, }, { id: uuidv4(), name: "Ionut Oceanu", img: "https://oceanu-ionut.netlify.com/assets/image.daa3a19bf5aed7dab1e1f02bbc8ba6b4.jpg", links: { website: "https://oceanu-ionut.netlify.com/", linkedin: "https://www.linkedin.com/in/ionut-oceanu/", github: "https://github.com/OceanU", }, jobTitle: "Full Stack Web Developer", location: { city: "Bucharest", state: "", country: "Romania", }, }, { id: uuidv4(), name: "Kay Nguyen", img: "https://kaynguyen.dev/static/media/profileImg.6745890d.jpeg", links: { website: "https://kaynguyen.dev", linkedin: "https://www.linkedin.com/in/kaynguyen-dev/", github: "https://github.com/k-awe-some", }, jobTitle: "React Developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Fadhil Kehinde Akindele", img: "https://res.cloudinary.com/fadhil/image/upload/v1570022438/My%20Pictures/blackops3.jpg", links: { website: " ", linkedin: "https://www.linkedin.com/in/fadhil-akindele-24701310a/", github: "https://github.com/TheCount511", }, jobTitle: "Frontend Developer", location: { city: "Lagos", state: "", country: "Nigeria", }, }, { id: uuidv4(), name: "Melody Reyes", img: "https://melodyreyes.pixieset.com/picture/p/MzMxMzU5NjU0OA==-MzY1MjI1ODI4MQ/", links: { website: " ", linkedin: "https://www.linkedin.com/in/melodyreyes/", github: "https://github.com/MelodyReyes09", }, jobTitle: "Frontend Web Developer", location: { city: "Mexico", state: "Pampanga", country: "Philippines", }, }, { id: uuidv4(), name: "Arkadiusz Szymczak", img: "", links: { website: "http://arkadiusz-szymczak.surge.sh/", linkedin: "https://www.linkedin.com/in/arkadiusz-szymczak/", github: "https://github.com/Aszmel", }, jobTitle: "Front-End Developer", location: { city: "", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Jessica Yin", img: "https://ibb.co/djkLv5z", links: { website: "https://jcat1504.github.io/portfolio2019/", linkedin: "https://www.linkedin.com/in/jessicatyin/", github: "https://github.com/jcat1504", }, jobTitle: "Front-End Developer", location: { city: "Buena Park", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Daniele Buccheri", img: "https://avatars2.githubusercontent.com/u/9345854?s=460&v=4", links: { website: "https://dbuccheri.github.io", linkedin: "https://www.linkedin.com/in/danielebuccheri/", github: "https://github.com/dbuccheri", }, jobTitle: "Full Stack Developer", location: { city: "Los Angeles", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Mike Damato", img: "", links: { linkedin: "https://www.linkedin.com/in/michael-damato-683abb48/", github: "https://github.com/Mike-Damato", }, jobTitle: "Fullstack Developer", location: { city: "New York", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Sergey Filat", img: "", links: { website: "", linkedin: "", github: "https://github.com/Filat1", }, jobTitle: "Full Stack Developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Robin Kartikeya Khatri", img: "https://pbs.twimg.com/profile_images/760312973470625792/KgptdRN3_400x400.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/robin-kartikeya-khatri-611278aa/", github: "https://github.com/RobinKartikeyaKhatri", }, jobTitle: "Full Stack Developer", location: { city: "Barmer", state: "Rajasthan", country: "India", }, }, { id: uuidv4(), name: "Dhaval Mehta", img: "https://media.licdn.com/dms/image/C5103AQE9az54ZZrzhg/profile-displayphoto-shrink_200_200/0?e=1576108800&v=beta&t=To3B1odr_6uzviLqsCsd_yWC5eqq2SaxaIY_J4Tv9xU", links: { website: "", linkedin: "https://www.linkedin.com/in/dhaval-m-994a83179/", github: "https://github.com/Dhaval1403", }, jobTitle: "Full Stack Web Developer", location: { city: "Rajkot", state: "Gujarat", country: "India", }, }, { id: uuidv4(), name: "Meet Mehta", img: "https://media.licdn.com/dms/image/C5103AQHvyda6VXgTnQ/profile-displayphoto-shrink_200_200/0?e=1576108800&v=beta&t=A7gmOBP-PtbBHlEmM9Cy-8pN4AjIxZ0uVChVJ1j6U-s", links: { website: "", linkedin: "https://www.linkedin.com/in/meetmehta1103/", github: "https://github.com/Meet1103", }, jobTitle: "Full Stack Web Developer", location: { city: "Rajkot", state: "Gujarat", country: "India", }, }, { id: uuidv4(), name: "Eric Puskas", img: "https://avatars0.githubusercontent.com/u/45266485?s=460&v=4", links: { website: "https://www.ericpuskas.com", linkedin: "https://www.linkedin.com/in/ericpuskas/", github: "https://github.com/EricPuskas", }, jobTitle: "Full-Stack Web Developer", location: { city: "Satu-Mare", state: "Satu-Mare", country: "Romania", }, }, { id: uuidv4(), name: "Arturo Castañon", img: "https://avatars0.githubusercontent.com/u/21693926?s=400&u=a0f35d5cbc47e874623f1e81ca93359293f09718&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/arturocastanonvargas/", github: "https://github.com/ArturVargas", }, jobTitle: "Full-Stack Web Developer", location: { city: "CDMX", state: "", country: "Mexico", }, }, { id: uuidv4(), name: "Baiyang Yao", img: "ttps://i.ibb.co/WK79MB2/self.jpg", links: { website: "http://www.bananaboom.space/", linkedin: "https://www.linkedin.com/in/baiyang-sam-y-54828a140/", github: "https://github.com/yaohuangguan", }, jobTitle: "Software Engineer | Web Developer", location: { city: "Columbus", state: "OH", country: "United States", }, }, { id: uuidv4(), name: "Paul Billings", img: "https://i.gyazo.com/b47f953cb0b01e9c7c7ed70d4337fcf1.png", links: { website: "https://www.paulbillings.co.uk", linkedin: "https://www.linkedin.com/in/paul-billings", github: "https://github.com/paulbillings", }, jobTitle: "Full-Stack Web Developer", location: { city: "Birmingham", state: "England", country: "United Kingdom", }, }, { id: uuidv4(), name: "Mano lingam", img: "https://doc-0s-6o-docs.googleusercontent.com/docs/securesc/ue0f0j6g8uvmn3b8ckgjcsjkd1knqu9d/935mlj9m36j268k0c51b6hin0qg4rfe8/1571198400000/07556814012980498705/07556814012980498705/1GjS_oPMN3pvBoP1wVUvVN9MYif6bG1hL?e=view&nonce=v5ajbr3sgp6v4&user=07556814012980498705&hash=sre35oqfgephu1b4cpfsom8if0ul1oqj", links: { website: "https://manolingam.github.io/", linkedin: "https://www.linkedin.com/in/saimano1996/", github: "https://github.com/manolingam/", }, jobTitle: "Front-End Web Developer | Blockchain Developer", location: { city: "", state: "", country: "India", }, }, { id: uuidv4(), name: "Tanya Yakovleva", img: "https://pbs.twimg.com/profile_images/1172763656699961345/PeX1flA8_200x200.jpg", links: { website: "https://www.yalovleva.dev", linkedin: "", github: "https://github.com/yakovleva-tanya/", }, jobTitle: "Front End Developer", location: { city: "", state: "", country: "", }, }, { id: uuidv4(), name: "Alex Marmalichi", img: "https://avatars0.githubusercontent.com/u/52268561?s=400&u=c479f56a831ad9cf20eb42651420bbb8340250e0&v=4", links: { website: "https://www.alcima.org/", linkedin: "https://www.linkedin.com/in/alex-marmalichi/", github: "https://github.com/2nd-Runner", }, jobTitle: "Full Stack Developer", location: { city: "Los Angeles", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Natalina Rodrigues", img: "http://natalina-portfolio.herokuapp.com/images/pics.jpg", links: { website: "http://natalina-portfolio.herokuapp.com/", linkedin: "https://www.linkedin.com/in/natalina-rodrigues-69ab29169/", github: "https://github.com/Natalina13", }, jobTitle: "Full Stack and Python Developer", location: { city: "Fremont", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Asifur Rahman", img: "https://photos.app.goo.gl/8e8ozgNdi8pY2nYi6", links: { website: "https://www.about.me/asifurrahman", linkedin: "https://www.linkedin.com/in/0asif0", github: "https://github.com/asifurrehman", }, jobTitle: "Full Stack Developer", location: { city: "", state: "", country: "Anywhere (Remotely) ", }, }, { id: uuidv4(), name: "Rucha Deshpande", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/rucha-deshpande-087b7342/", github: "https://github.com/cha1690", }, jobTitle: "Full Stack Developer", location: { city: "", state: "", country: "Anywhere (Remotely) ", }, }, { id: uuidv4(), name: "Charles Jones", img: "https://avatars1.githubusercontent.com/u/4614877?s=460&v=4", links: { website: "http://charlesjones.me/", linkedin: "https://www.linkedin.com/in/charlesjonesiii/", github: "https://github.com/CharlesJ3", }, jobTitle: "Full Stack Developer", location: { city: "Colorado Springs", state: "Colorado", country: "United States", }, }, { id: uuidv4(), name: "Chiragkumar Maniyar", img: "", links: { website: "http://cumaniar.cf", linkedin: "https://www.linkedin.com/in/chiragkumar-maniyar-37017492/", github: "https://github.com/CUManiar", }, jobTitle: "Software Engineer", location: { city: "Pune", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Puneet Kumar", img: "https://puneetkumarkaushik.github.io/img/profile.jpeg", links: { website: "http://puneetkumarkaushik.tech", linkedin: "https://www.linkedin.com/in/puneet-kumar-294507a6/", github: "https://github.com/puneetkumarkaushik", }, jobTitle: "MERN Stack Web Developer", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Jovan Ničković", img: "https://avatars0.githubusercontent.com/u/34028234?s=460&v=4", links: { website: "", linkedin: "", github: "https://github.com/jovannickovic", }, jobTitle: "Web Developer (PHP, JavaScript)", location: { city: "", state: "", country: "Serbia", }, }, { id: uuidv4(), name: "Constantino Saldana", img: "https://avatars3.githubusercontent.com/u/45720754?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/constantinosaldana/", github: "https://github.com/antinomezco", }, jobTitle: "Web Developer (Python, JavaScript)", location: { city: "Montreal", state: "Quebec", country: "Canada", }, }, { id: uuidv4(), name: "Yash Shelatkar", img: "https://avatars2.githubusercontent.com/u/25059239?s=400&u=804b365294eaadc66bcfadb6a7ab0b000651511b&v=4", links: { website: "http://www.yashshelatkar.com", linkedin: "https://www.linkedin.com/in/yash-shelatkar-b14bb0112", github: "https://github.com/yashShelatkar", }, jobTitle: "Fullstack Developer Intern", location: { city: "Melbourne", state: "Victoria", country: "Australia", }, }, { id: uuidv4(), name: "Oussama Er rabili", img: "https://avatars1.githubusercontent.com/u/20917516?s=460&v=4", links: { website: "http://oussamawebdev.com", linkedin: "https://www.linkedin.com/in/oussamaerrabili/", github: "https://github.com/redmor", }, jobTitle: "Full Stack Web Developer", location: { city: "Columbus", state: "Ohio", country: "United States", }, }, { id: uuidv4(), name: "Kaustuv Karan", img: "https://avatars2.githubusercontent.com/u/43791878?s=460&v=4", links: { linkedin: "https://www.linkedin.com/in/kaustuv-karan-b56750169/", github: "https://github.com/kaustuvkaran01", }, jobTitle: "React Developer Intern", location: { city: "Patiala", state: "Punjab", country: "India", }, }, { id: uuidv4(), name: "Rajnish Kr Singh", img: "https://media.licdn.com/dms/image/C5103AQFCTSzJ-qni8Q/profile-displayphoto-shrink_200_200/0?e=1577318400&v=beta&t=iAdUxzlVtGmSIHm9I9EzsIqIuup4kKiJdyNwuDEwCTk", links: { website: "https://rajnishkrsingh.github.io/my_portfolio", linkedin: "https://www.linkedin.com/in/rajnish-kr-singh-165272184/", github: "https://github.com/RajnishKrSingh", }, jobTitle: "Web Developer | Programmer | ReactJS Enthusiast", location: { city: "Kolkata", state: "", country: "India", }, }, { id: uuidv4(), name: "Donald Tang", img: "", links: { website: "https://turazi.xyz/", linkedin: "https://www.linkedin.com/in/donaldtang8/", github: "https://github.com/turazi", }, jobTitle: "Software Developer", location: { city: "New York", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "AmirDlz", img: "https://avatars0.githubusercontent.com/u/54416476?s=460&v=4", links: { website: "https://aynorica.github.io/", linkedin: "https://www.linkedin.com/in/amir-deilamizadeh-2712a6192", github: "https://github.com/aynorica", }, jobTitle: "Full-stack Developer", location: { city: "Istanbul", state: "Istanbul", country: "Turkey", }, }, { id: uuidv4(), name: "Khalig Novruzli", img: "https://avatars3.githubusercontent.com/u/6874791?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/khalign/", github: "https://github.com/khalign", }, jobTitle: "Software Engineer", location: { city: "Bandirma", state: "Balikesir", country: "Turkey", }, }, { id: uuidv4(), name: "Konstantin Proshin", img: "https://avatars1.githubusercontent.com/u/48204262?s=460&v=4", links: { website: "https://jkorum.github.io/portfolio-page/", linkedin: "https://www.linkedin.com/in/konstantin-proshin/", github: "https://github.com/JKorum", }, jobTitle: "Full-Stack Web Developer", location: { city: "Moscow", state: "", country: "Russia", }, }, { id: uuidv4(), name: "Aladdin Sonni", img: "https://avatars1.githubusercontent.com/u/11818560?s=400&u=b250580007b0604f5503aaca49ead5e68154f25e&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/aladdin-sonni/", github: "https://github.com/asonni", }, jobTitle: "Front End Developer", location: { city: "Tripoli", state: "", country: "Libya", }, }, { id: uuidv4(), name: "Geoff Thomas", img: "http://www.thomasgeoff.com/images/bg_1.jpg", links: { website: "http://www.thomasgeoff.com", linkedin: "https://www.linkedin.com/in/geoff-thomas-01/", github: "https://github.com/thomasgeoff", }, jobTitle: "Software Engineer", location: { city: "Rohnert Park", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Amit Bisht", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/amitbisht54/", github: "https://github.com/bishtamit", }, jobTitle: "Software Engineer", location: { city: "Gurugram", state: "Haryana", country: "India", }, }, { id: uuidv4(), name: "Fyodor Prokofiev", img: "https://avatars1.githubusercontent.com/u/9195737?s=460&v=4", links: { website: "https://fprokofiev.ru", linkedin: "https://www.linkedin.com/in/fpro/", github: "https://github.com/fprokofiev", }, jobTitle: "Full Stack Developer, Project Manager", location: { city: "Saint-Petersburg", state: "St.Petersburg", country: "Russia", }, }, { id: uuidv4(), name: "Edmond Ma", img: "https://avatars2.githubusercontent.com/u/12569803?s=400&u=6f74a7b55e6b23de8e99b7321589a2e9ea2b6815&v=4", links: { website: "https://edjunma.dev", linkedin: "https://www.linkedin.com/in/edjunma/", github: "https://github.com/edjunma", }, jobTitle: "Freelance Web Developer, Front-End Developer", location: { city: "New York City", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Andy Nguyen", img: "https://avatars2.githubusercontent.com/u/6422752?s=460&v=4", links: { website: "https://andycodes.io/", linkedin: "https://www.linkedin.com/in/andydnguyen/", github: "https://github.com/andydnguyen", }, jobTitle: "Full Stack Developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Ralph Emerson Manzano", img: "https://avatars0.githubusercontent.com/u/18175202?s=400&u=e654ce4937b7b1904906daa5f49aaab71e9df49d&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/ralphevmanzano/", github: "https://github.com/ralphevmanzano", }, jobTitle: "Android Developer", location: { city: "Cebu City", state: "", country: "Philippines", }, }, { id: uuidv4(), name: "Aditya Verma", img: "", links: { website: "https://ezioda004.github.io/", linkedin: "https://www.linkedin.com/in/aditya-v-16ba91137", github: "https://github.com/ezioda004", }, jobTitle: "Full Stack Developer", location: { city: "Bangalore", state: "Karnataka", country: "IN", }, }, { id: uuidv4(), name: "Tomasz Bogacki", img: "https://avatars1.githubusercontent.com/u/20223725?s=400&u=04798a90f9a065fe2eeacf92df3a2970ac5691a7&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/tomasz-bogacki-5b048b127/", github: "https://github.com/TheProrok29", }, jobTitle: "Python Developer && IT Specialist", location: { city: "Wrocław", state: "", country: "Poland", }, }, { id: uuidv4(), name: "Harry Zhang", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/harry-zhangsfsu/", github: "https://github.com/legenhairy", }, jobTitle: "Software Developer", location: { city: "San Francisco", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Alara Joel", img: "https://twitter.com/alara_joel/photo", links: { website: "https://codepen.io/alara_joel_stealth/full/yrjLjB", linkedin: "https://www.linkedin.com/in/alara-joel-b16865b6/", github: "https://github.com/stealthman22", }, jobTitle: "Junior Fullstack Developer", location: { city: "Accra", state: "Accra", country: "Ghana", }, }, { id: uuidv4(), name: "HATIM MAMA", img: "https://photos.app.goo.gl/N4Tiso6iBVVqeiuv8", links: { website: "https://www.linkedin.com/in/hatimmamajiwala/", linkedin: "https://www.linkedin.com/in/hatimmamajiwala/", github: "https://github.com/hatimmamajiwala", }, jobTitle: "Cloud Solutions Architect", location: { city: "Dubai", state: "Dubai", country: "United Arab Emirates", }, }, { id: uuidv4(), name: "Daniel G. Arnold", img: "https://avatars0.githubusercontent.com/u/270102?s=460&v=4", links: { website: "https://www.danielgarnold.com", linkedin: "https://www.linkedin.com/in/danielgarnold", github: "https://www.github.com/dga", }, jobTitle: "Python Developer", location: { city: "Folsom", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Dave Saluk", img: "https://avatars0.githubusercontent.com/u/54435977?s=400&u=712658a3aad50cd9ed72090fc214ec8410734ff8&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/dave-saluk-7387b4177?lipi=urn%3Ali%3Apage%3Ad_flagship3_profile_view_base_contact_details%3BCelcwMTeSUusy8oGqVuA4w%3D%3D", github: "https://github.com/DaveSaluk", }, jobTitle: "Full Stack Developer", location: { city: "Tel-Aviv", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Angel Andoney", img: "https://avatars2.githubusercontent.com/u/16805779?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/aandoney/", github: "https://github.com/aandoney", }, jobTitle: "Full Stack Engineer", location: { city: "Queretaro", state: "", country: "Mexico", }, }, { id: uuidv4(), name: "Brandon Samuel", img: "https://avatars2.githubusercontent.com/u/32402178?s=400&u=b8374e2b3868430206a09fa481356470426b071a&v=4", links: { website: "https://brandonsamuel1.github.io/mysite/", linkedin: "https://www.linkedin.com/in/brandon-samuel/", github: "https://github.com/brandonsamuel1", }, jobTitle: "Full Stack Javascript Developer", location: { city: "Vancouver", state: "British Columbia", country: "Canada", }, }, { id: uuidv4(), name: "Omar Faruque", img: "https://avatars3.githubusercontent.com/u/40371523?s=400&u=a7b2d51c745c57d058a8e3f1eba1569a44b763c1&v=4", links: { website: "https://www.omarfaruque.dev/", linkedin: "https://www.linkedin.com/in/webdevwithomar/", github: "https://github.com/webdevwithomar", }, jobTitle: "Full Stack Javascript Developer", location: { city: "Dhaka", state: "", country: "Bangladesh", }, }, { id: uuidv4(), name: "FOR KA LAU", img: "", links: { website: "Derricklau.pythonanywhere.com/", linkedin: "https://www.linkedin.com/in/for-ka-l-551262168/", github: "https://github.com/Derrick-lau/", }, jobTitle: "Full-Stack Web Developer", location: { city: "", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Curtis", img: "https://avatars2.githubusercontent.com/u/2359775?s=400&u=60830a49580407bff3ffede37af32348a0ece82f&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/webguy83/", github: "https://github.com/webguy83", }, jobTitle: "Front End Web Developer", location: { city: "Vancouver", state: "BC", country: "Canada", }, }, { id: uuidv4(), name: "David Samson", img: "https://avatars3.githubusercontent.com/u/33316904?s=460&v=4", links: { website: "https://www.techiedavid.com", linkedin: "https://www.linkedin.com/in/techiedavid-com/", github: "https://github.com/techie-david", }, jobTitle: "Senior Full Stack Developer", location: { city: "Vadodara", state: "Gujarat", country: "India", }, }, { id: uuidv4(), name: "Yanik Kumar", img: "https://avatars.githubusercontent.com/believemaster", links: { website: "https://believemaster.github.io/portfolio", linkedin: "https://www.linkedin.com/in/yanikkumar/", github: "https://believemaster.github.io", }, jobTitle: "Full Stack Developer", location: { city: "Hamirpur", state: "Himachal Pradesh", country: "India", }, }, { id: uuidv4(), name: "Spencer Dedrick", img: "https://media.licdn.com/dms/image/C4E03AQHuxk2aTvEIcQ/profile-displayphoto-shrink_200_200/0?e=1578528000&v=beta&t=9rWDXrBPrn-FZR0tUCaouRbu6Q3wjOz0P27dUH7J7MM", links: { website: "https://spencerdedrick.github.io/Portfolio/", linkedin: "https://www.linkedin.com/in/spencer-dedrick/", github: "https://github.com/SpencerDedrick/", }, jobTitle: "Web Developer", location: { city: "Houston", state: "Texas", country: "United States", }, }, { id: uuidv4(), name: "Pancho Daskalov", img: "https://drive.google.com/open?id=1xAWKZ8bF_Nbzbdbh0xcMncgLGekwKr_2", links: { website: "https://panchodaskalov.com/", linkedin: "https://www.linkedin.com/in/panchodaskalov/", github: "https://github.com/PanchoDaskalov", }, jobTitle: "UI/UX Design | Front-end Development", location: { city: "Munich", state: "Bavaria", country: "Germany", }, }, { id: uuidv4(), name: "Cyrus Eslamian", img: "", links: { website: "https://gazsix.com/", linkedin: "https://www.linkedin.com/in/cyruseslamian/", github: "https://github.com/mojopoly", }, jobTitle: "JavaScript Engineer | React | ReactNative", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Shivayan Anand Bora", img: "https://drive.google.com/open?id=1wwjXNtK4UjRkxBajzkEMaIL2xZWcyWAQ", links: { website: "", linkedin: "https://www.linkedin.com/in/shivayan-bora-9a858a35/", github: "https://github.com/shivayanbora123", }, jobTitle: "Senior Software Developer at JDA Software | Java and Python | Deep Learning Enthusiast", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Yarden Katz", img: "https://drive.google.com/file/d/1R7TG902VEyYoV5OotS0RxwNqF2IQXVNC/view?usp=sharing", links: { website: "", linkedin: "https://www.linkedin.com/in/yarden-katz", github: "https://github.com/YardenKatz", }, jobTitle: "Fullstack Developer | JavaScript | C++ | Java | Python | Django", location: { city: "", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Nicolei Ocana", img: "https://avatars3.githubusercontent.com/u/44947175?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/nicolei-ocana-0b271b71/", github: "https://github.com/nicoleiocana", }, jobTitle: "Fullstack Developer | Ruby | Rails", location: { city: "Placentia", state: "California", country: "United States of America", }, }, { id: uuidv4(), name: "Lasantha Basnayake", img: "https://avatars0.githubusercontent.com/u/6893358?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/lasantha-basnayake", github: "https://github.com/lasantha57", }, jobTitle: "Full-Stack Developer | Javascript", location: { city: "Colombo", state: "", country: "Sri Lanka", }, }, { id: uuidv4(), name: "Daniel Farlow", img: "https://avatars0.githubusercontent.com/u/52146855?s=460&v=4", links: { website: "https://daniel-farlow.com/", linkedin: "https://www.linkedin.com/in/daniel-farlow/", github: "https://github.com/daniel-farlow", }, jobTitle: "Software Engineer", location: { city: "Atlanta", state: "Georgia", country: "United States", }, }, { id: uuidv4(), name: "Shivayan Anand Bora", img: "https://drive.google.com/open?id=1wwjXNtK4UjRkxBajzkEMaIL2xZWcyWAQ", links: { website: "", linkedin: "https://www.linkedin.com/in/shivayan-bora-9a858a35/", github: "https://github.com/shivayanbora123", }, jobTitle: "Senior Software Developer at JDA Software | Java and Python | Deep Learning Enthusiast", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Yarden Katz", img: "https://drive.google.com/file/d/1R7TG902VEyYoV5OotS0RxwNqF2IQXVNC/view?usp=sharing", links: { website: "", linkedin: "https://www.linkedin.com/in/yarden-katz", github: "https://github.com/YardenKatz", }, jobTitle: "Fullstack Developer | JavaScript | C++ | Java | Python | Django", location: { city: "", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Nicolei Ocana", img: "https://avatars3.githubusercontent.com/u/44947175?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/nicolei-ocana-0b271b71/", github: "https://github.com/nicoleiocana", }, jobTitle: "Fullstack Developer | Ruby | Rails", location: { city: "Placentia", state: "California", country: "United States of America", }, }, { id: uuidv4(), name: "Lasantha Basnayake", img: "https://avatars0.githubusercontent.com/u/6893358?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/lasantha-basnayake", github: "https://github.com/lasantha57", }, jobTitle: "Full-Stack Developer | Javascript", location: { city: "Colombo", state: "", country: "Sri Lanka", }, }, { id: uuidv4(), name: "Sam Poe", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/sampoe/", github: "https://github.com/rckatz", }, jobTitle: "Web Developer", location: { city: "Greater Boston", state: "Massachusetts", country: "USA", }, }, { id: uuidv4(), name: "Andy Muñoz", img: "https://avatars1.githubusercontent.com/u/13410510?s=400&u=4d099e8a41a27db25c6900b15ea58df38dd03fce&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/andy-mc/", github: "https://github.com/andy-mc", }, jobTitle: "Full-Stack Developer | Javascript | Python", location: { city: "Quito", state: "Pichincha", country: "Ecuador", }, }, { id: uuidv4(), name: "Vamsi", img: "", links: { website: "www.vamsikrishnamraju.com", linkedin: "https://www.linkedin.com/in/vamsi-krishnam-raju-uddaraju-991b47171/", github: "https://github.com/uddaraju", }, jobTitle: "Software Developer Developer | Cloud Technology | ", location: { city: "London", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Bo Zhao", img: "https://avatars2.githubusercontent.com/u/3486381?s=400&u=77d90275e9e6ccb6ae18744d118733d2063a72f3&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/bocong-zhao-975b6162/", github: "https://github.com/zbc", }, jobTitle: "Full-Stack Developer | Javascript", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Valentin Mitran", img: "https://avatars1.githubusercontent.com/u/40249132?s=460&v=4", links: { website: "https://ValentinMitran.com", linkedin: "https://www.linkedin.com/in/ValentinMitran/", github: "https://github.com/ValentinMitran", }, jobTitle: "Full Stack Web Developer", location: { city: "", state: "Lisbon", country: "Portugal", }, }, { id: uuidv4(), name: "Derek Jackson", img: "https://avatars0.githubusercontent.com/u/593648?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/derekjackson/", github: "https://github.com/Cyph3r", }, jobTitle: "Full-Stack Dev, JavaScript", location: { city: "Tulsa", state: "Oklahoma", country: "USA", }, }, { id: uuidv4(), name: "Dennis Palmenco", img: "https://avatars0.githubusercontent.com/u/25899833?s=460&v=4", links: { website: "https://www.kickresume.com/cv/dpalmenco_support_analyst/", linkedin: "https://www.linkedin.com/in/dennispalmenco/", github: "https://github.com/dennisbp", }, jobTitle: "SAP Consultant/Software Engineer", location: { city: "Auckland", state: "Auckland", country: "New Zealand", }, }, { id: uuidv4(), name: "Dilip Teegala", img: "https://avatars0.githubusercontent.com/u/44141163?s=400&u=a847930288a92af3734f933ce214f94729713622&v=4", links: { linkedin: "https://www.linkedin.com/in/dilip-rao-877bb2116/", github: "https://github.com/dilipteegala", }, jobTitle: "Software Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Nurdaulet Shamilov", img: "https://avatars0.githubusercontent.com/u/49809339?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/nurdared/", github: "https://github.com/nurdared", }, jobTitle: "Full-Stack Developer | JavaScript", location: { city: "Aktau", state: "Mangystau", country: "Kazakhstan", }, }, { id: uuidv4(), name: "I Gusti Bagus A", img: "https://avatars1.githubusercontent.com/u/54065187?s=400&u=1f79b4adbcdce633a03723404e07f3aef47926ec&v=4", links: { linkedin: "https://id.linkedin.com/in/i-gusti-bagus-awienandra-483718132", github: "https://github.com/rainoverme002", }, jobTitle: "Software Engineer | Nuclear Engineer", location: { city: "Jakarta", state: "", country: "Indonesia", }, }, { id: uuidv4(), name: "Ulvi Jabbarli", img: "https://avatars2.githubusercontent.com/u/23367499?s=400&amp;u=2532b7523d901dce13f7aa5b6ed6a6236815d330&amp;v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/ulvi-jabbarli", github: "https://github.com/ulvij", }, jobTitle: "Android Developer", location: { city: "Baku", state: "", country: "Azerbaijan", }, }, { id: uuidv4(), name: "Victor Cruceanu", img: "https://avatars1.githubusercontent.com/u/39226366?s=460&v=4", links: { website: "https://psymaddoc.github.io/", linkedin: "https://www.linkedin.com/in/cruceanuvictor/", github: "https://github.com/PsyMadDoc/", }, jobTitle: "Front End Web Dev | JavaScript", location: { city: "Bucharest", state: "", country: "Romania", }, }, { id: uuidv4(), name: "Mughees Asif", img: "https://qph.fs.quoracdn.net/main-raw-454055733-jazwplkisizmhzmriodckjtprdstpenn.jpeg", links: { website: "", linkedin: "https://www.linkedin.com/in/mughees-asif", github: "https://github.com/mughees-asif", }, jobTitle: "Aerospace Engineering undergraduate student | Self-taught software/wed developer", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Oleh Zakharchuk", img: "https://github.com/Oleh-Zakharchuk/Portfolio/blob/gh-pages/img/portrait.jpg", links: { website: "https://oleh-zakharchuk.github.io/Portfolio/", linkedin: "https://www.linkedin.com/in/oleh-zakharchuk-7b216b198/", github: "https://github.com/Oleh-Zakharchuk", }, jobTitle: "Junior Front End Developer | Junior JavaScript Developer", location: { city: "Kyiv", state: "", country: "Ukraine", }, }, { id: uuidv4(), name: "Temitope Alex Adejumo", img: "https://avatars3.githubusercontent.com/u/46056386?s=460&v=4", links: { website: "https://alexadejumo.dev/", linkedin: "https://www.linkedin.com/in/alexadejumo/", github: "https://github.com/alexadejumo", }, jobTitle: "Full-Stack Developer | Javascript", location: { city: "Lagos", state: "", country: "Nigeria", }, }, { id: uuidv4(), name: "Omar Gaston", img: "https://ogaston.com/static/42fbb13abfb6167a265e357d74d55f8d/8539d/personal.jpg", links: { website: "https://ogaston.com/en/knowme/", linkedin: "https://www.linkedin.com/in/omar-gaston-chalas/", github: "https://github.com/ogaston/", }, jobTitle: "Software Engineer | Full-Stack JavaScript", location: { city: "Santo Domingo", state: "", country: "Dominican Republic", }, }, { id: uuidv4(), name: "Elmer Pineda", img: "https://avatars2.githubusercontent.com/u/14105415?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/mhelpineda/", github: "https://github.com/mhel14", }, jobTitle: "Full Stack Engineer", location: { city: "Pampanga", state: "", country: "Philippines", }, }, { id: uuidv4(), name: "Piyush Raut", img: "", links: { website: "https://knightowl2704.github.io", linkedin: "https://www.linkedin.com/in/piyushraut27", github: "https://github.com/knightowl2704/", }, jobTitle: "Machine Learning Enthusiast", location: { city: "Bhubaneswar", state: "Odisha", country: "India", }, }, { id: uuidv4(), name: "Sagi Hillel", img: "https://serving.photos.photobox.com/82771602922062b44917e977afcd494bd289d99063ebaf2fef0cee96d5469f6b3210f9eb.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/sagihillel", github: "https://github.com/sagihill/", }, jobTitle: "Full-Stack Developer", location: { city: "Tel-Aviv", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Majo Paschcuan", img: "https://i.imgur.com/mG5hxfD.jpg", links: { website: "https://paskuvan.us", linkedin: "https://www.linkedin.com/in/paskuvan", github: "https://github.com/paskuvan", }, jobTitle: "Full Stack & UX/UI Developer", location: { city: "Santiago", state: "", country: "Chile", }, }, { id: uuidv4(), name: "Abdul Rahim Shaikh", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/arahims/", github: "https://github.com/ariskycode", }, jobTitle: "Full-Stack|Java|Web Developer", location: { city: "Anywhere", state: "", country: "Willing to relocate internationally", }, }, { id: uuidv4(), name: "Pedro P. Medina", img: "", links: { website: "https://pedropmedina.github.io", linkedin: "https://www.linkedin.com/in/pedro-medina-65999b13a", github: "https://github.com/pedropmedina", }, jobTitle: "Full Stack Developer", location: { city: "Miami/Fort Lauderdale", state: "FL", country: "USA", }, }, { id: uuidv4(), name: "Jason Chang", img: "https://imgur.com/a/1ZCfWPs", links: { website: "", linkedin: "https://www.linkedin.com/in/%E4%BA%94%E6%9D%B0-%E5%BC%B5-07937b165/", github: "https://github.com/iggh966380", }, jobTitle: "Font-end Developer", location: { city: "New Taipei", state: "", country: "Taiwan", }, }, { id: uuidv4(), name: "Abdu Qnauy", img: "https://avatars1.githubusercontent.com/u/43282386?s=400&u=5c6a9446813bc982ade14b53f645e793c73783a2&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/pedro-medina-65999b13a", github: "https://www.linkedin.com/in/abdurhman-magdy-muhammad-a588a2103/", }, jobTitle: "Front End Developer", location: { city: "Cairo", state: "Cairo", country: "Egypt", }, }, { id: uuidv4(), name: "Tomasz Biernat", img: "https://avatars3.githubusercontent.com/u/39054140?s=400&u=2e6dfce7fb25df9bcfb9058021a5438a01a5d677&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/tomasz-biernat-682307163/", github: "https://github.com/tomaszbiernat", }, jobTitle: "Front-end Developer", location: { city: "Kraków", state: "Małopolska", country: "Poland", }, }, { id: uuidv4(), name: "Christopher Carr", img: "https://imgur.com/WKGieRB", links: { website: "https://www.chriscarr.dev", linkedin: "https://www.linkedin.com/in/chris-carr-93288820", github: "https://github.com/christocarr", }, jobTitle: "Frontend Web Developer", location: { city: "Wembley", state: "London", country: "United Kingdom", }, }, { id: uuidv4(), name: "Perry Raskin", img: "https://i.imgur.com/o5rlRTO.jpg", links: { website: "https://raskin.me", linkedin: "https://www.linkedin.com/in/perryraskin", github: "https://github.com/perryraskin", }, jobTitle: "Software Engineer", location: { city: "Forest Hills", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "Ahmed Abdelhamid", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/ahmedsalah4/", github: "https://github.com/ahmed-abdelhamid", }, jobTitle: "Full Stack Web Developer", location: { city: "Riyadh", state: "", country: "Saudi Arabia", }, }, { id: uuidv4(), name: "Radu Rusu", img: "https://github.com/RaduRS/img/blob/master/88.jpg", links: { website: "https://portfoliopro.co.uk/", linkedin: "https://www.linkedin.com/in/radu-rusu-88449991/", github: "https://github.com/RaduRS", }, jobTitle: "Full Stack & UX/UI Developer", location: { city: "Nottingham", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Akash Dutta", img: "", links: { website: "https://akashdutta93.github.io/akashdutta.github.io/", linkedin: "https://www.linkedin.com/in/akash-dutta-0a4993173/", github: "https://github.com/akashdutta93", }, jobTitle: "Front-End Developer", location: { city: "Kolkata", state: "West Bengal", country: "India", }, }, { id: uuidv4(), name: "Luis Gerardo", img: "https://avatars1.githubusercontent.com/u/27018845?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/luimagm/", github: "https://github.com/yaminolight", }, jobTitle: "Web Developer", location: { city: "Santo Domingo", state: "Santo Domingo", country: "Dominican Republic", }, }, { id: uuidv4(), name: "Mavroian Florin", img: "https://lh3.googleusercontent.com/-QNQ4WTbhW3Q/XXrk_Qyn6iI/AAAAAAAABek/-G88TlBtAvgvdekGHc10whLO0g4rk8dCQCEwYBhgL/w280-h280-p/Resume%2BPhoto.jpeg", links: { website: "http:/florinmavroian.tk", linkedin: "https://www.linkedin.com/in/florin-mavroian/", github: "https://github.com/mavroian", }, jobTitle: "Software Engineer", location: { city: "Tokyo", state: "Tokyo", country: "Japan", }, }, { id: uuidv4(), name: "Abhishek Prasad", img: "https://i.imgur.com/gOcr0VW.jpg", links: { website: "", linkedin: "https://in.linkedin.com/in/devcula", github: "https://github.com/devcula", }, jobTitle: "Full Stack Web Developer", location: { city: "Pune", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Osher Solimany", img: "https://scontent.ftlv5-1.fna.fbcdn.net/v/t1.0-9/12391812_1081587291861391_3812268796792628236_n.jpg?_nc_cat=110&_nc_ohc=eaN8C1nrDYEAQmBsMaRJ5aE2m0vDoO1pW31TAE3pVvo6wvuBsvE01axXA&_nc_ht=scontent.ftlv5-1.fna&oh=e0e639113fe7ce541d5c595efe4d03db&oe=5E73FE3D", links: { website: "http://smartbetk.herokuapp.com/main/", linkedin: "https://www.linkedin.com/in/osherso/", github: "https://github.com/OsherSo", }, jobTitle: "Full Stack Developer", location: { city: "Tel Aviv", state: "Tel Aviv", country: "Israel", }, }, { id: uuidv4(), name: "Kutlu Ata", img: "https://avatars2.githubusercontent.com/u/32374530?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/kutlu-devrim-ata-86a91518/", github: "https://github.com/leto666", }, jobTitle: "Full Stack Web Developer", location: { city: "Belgrade", state: "", country: "Serbia", }, }, { id: uuidv4(), name: "Erick Yataco", img: "https://avatars1.githubusercontent.com/u/7172570?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/erick-ivan-yataco/", github: "https://github.com/ErickYataco", }, jobTitle: "K8S specialist, DevOps and Cloud Engineer", location: { city: "Lima", state: "", country: "Peru", }, }, { id: uuidv4(), name: "Yoni Sisso", img: "", links: { website: "https://yonis9.github.io/portfolio/", linkedin: "https://www.linkedin.com/in/yonisisso/", github: "https://github.com/yonis9", }, jobTitle: "Full Stack Web Developer", location: { city: "Tel-Aviv", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Shabnam Essa", img: "", links: { website: "http://www.shabnamessa.com", linkedin: "https://www.linkedin.com/in/shabnamessa/", github: "https://github.com/shabname", }, jobTitle: "Full Stack Web Developer", location: { city: "Greater Manchester", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Rajaram Sivaramakrishnan", img: "", links: { website: "https://raja1196.github.io", linkedin: "https://www.linkedin.com/in/rajaram-sivaramakrishnan/", github: "https://github.com/raja1196", }, jobTitle: "Machine Learning Engineer", location: { city: "Raleigh", state: "North Carolina", country: "United States", }, }, { id: uuidv4(), name: "Gal Kol", img: "", links: { website: "https://github.com/settings/profile", linkedin: "https://www.linkedin.com/in/gal-kol", github: "https://github.com/999galk", }, jobTitle: "Junior Web Developer", location: { city: "Tel Aviv", state: "Israel", country: "Israel", }, }, { id: uuidv4(), name: "Ghislain Deffo", img: "https://avatars3.githubusercontent.com/u/37311893?s=460&v=4", links: { website: "https://gnarus-tech.github.io/", linkedin: "https://www.linkedin.com/in/ghislain-deffo-312922163/", github: "https://github.com/GnarusGBaby", }, jobTitle: "Full Stack Software Developer", location: { city: "Silver Spring", state: "Maryland", country: "United States", }, }, { id: uuidv4(), name: "Carlos Enrique Gil Carrillo", img: "https://media.licdn.com/dms/image/C5603AQF4i1GF7FevWg/profile-displayphoto-shrink_200_200/0?e=1582156800&v=beta&t=YF-Og1kgZ_AvtNY-hhvOTxMmjLIdEBvVp_AHK_bHwak", links: { website: "http://ixarlos.com/", linkedin: "https://www.linkedin.com/in/ixarlos/", github: "https://github.com/i-xarlos", }, jobTitle: "Web Developer Team Leader", location: { city: "Lima", state: "", country: "Perú", }, }, { id: uuidv4(), name: "Romane Green", img: " ", links: { website: "https://www.RomaneGreen.com", linkedin: "https://www.linkedin.com/in/romane-green-395539163/", github: "https://github.com/RomaneGreen", }, jobTitle: "Full Stack Software Developer", location: { city: "NYC", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "Crisse Soto", img: "https://secure.gravatar.com/avatar/551d4ac947cacb2fac2776e7606fedcb", links: { website: "http://www.crissesoto.com", linkedin: "https://www.linkedin.com/in/crisse-soto-380468b8/", github: "https://github.com/crissesoto", }, jobTitle: "Front-end Developer", location: { city: "Bruges", state: "West Flanders", country: "Belgium", }, }, { id: uuidv4(), name: "Ayush Gupta", img: "https://avatars3.githubusercontent.com/u/21218732?s=460&v=4", links: { website: "http://ayushgupta.tech/", linkedin: "https://www.linkedin.com/in/guptaji6/", github: "https://github.com/gupta-ji6", }, jobTitle: "Front-end Developer", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Anita Chang", img: "https://avatars2.githubusercontent.com/u/53840338?s=400&v=4", links: { website: "https://github.com/f228476653", linkedin: "https://www.linkedin.com/in/anita-chang-514549160/", github: "https://github.com/f228476653", }, jobTitle: "FullStack Developer", location: { city: "Burnaby", state: "British Columbia", country: "Canada", }, }, { id: uuidv4(), name: "Steve Kudirka", img: "https://avatars2.githubusercontent.com/u/709245?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/steven-kudirka-2a38a926/", github: "https://github.com/skudirka/", }, jobTitle: "Senior Software Engineer", location: { city: "Madisonville", state: "LA", country: "USA", }, }, { id: uuidv4(), name: "Ric Thomas", img: "https://avatars0.githubusercontent.com/u/54208612?s=400&v=4", links: { website: "www.gethric.com", linkedin: "https://www.linkedin.com/in/ric-thomas-221b10176/", github: "https://github.com/Gethric", }, jobTitle: "Front-end Developer", location: { city: "Leon", state: "Guanajuato", country: "Mexico", }, }, { id: uuidv4(), name: "Araf Hossain", img: "https://avatars1.githubusercontent.com/u/17367761?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/arafhossain", github: "https://github.com/arafhossain", }, jobTitle: "Full Stack Developer", location: { city: "New York", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Said LITIM", img: "https://avatars2.githubusercontent.com/u/42178733?s=460&v=4", links: { website: "http://portfolio.projectslit.fr/", linkedin: "https://www.linkedin.com/in/sa%C3%AFd-litim-105115ba/", github: "https://github.com/salitim", }, jobTitle: "JS Developer", location: { city: "Lyon", state: "", country: "France", }, }, { id: uuidv4(), name: "Timofeeva Elizaveta", img: "https://media.licdn.com/dms/image/C4D03AQF-NBv9wCeG1A/profile-displayphoto-shrink_200_200/0?e=1582761600&v=beta&t=dW6MWaZKwvCI2NogXUtki8lYL-OkBHrQCUtB7gleyWc", links: { website: "", linkedin: "https://www.linkedin.com/in/elizaveta-timofeeva-497158152/", github: "https://github.com/Lijamaija", }, jobTitle: "React Developer, Frone-end developer", location: { city: "Prague", state: "", country: "Czech Republic", }, }, { id: uuidv4(), name: "Can Berker Cikis", img: "https://avatars2.githubusercontent.com/u/13052327?s=460&v=4", links: { website: "https://canberker.com/", linkedin: "https://www.linkedin.com/in/can-berker/", github: "https://github.com/CanBerker", }, jobTitle: "Full-Stack Software Engineer", location: { city: "Zurich", state: "", country: "Switzerland", }, }, { id: uuidv4(), name: "Akshay Sharma", img: "https://avatars0.githubusercontent.com/u/37118877?v=4", links: { website: "https://www.developeratease.com/", linkedin: "https://www.linkedin.com/in/akshay-sharma-7962ab13a/", github: "https://github.com/Akshay2996", }, jobTitle: "Front-End Developer", location: { city: "Bengaluru", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Azorji Kelechi Oliver", img: "https://avatars1.githubusercontent.com/u/32667315?v=4", links: { website: "http://oliver-ke.github.io/", linkedin: "https://www.linkedin.com/in/oliver-ke", github: "http://github.com/oliver-ke", }, jobTitle: "Full-Stack Web Developer (NodeJs | React)", location: { city: "Port Harcourt", state: "Rivers State", country: "Nigeria", }, }, { id: uuidv4(), name: "Srinivasa Rao Bhandari", img: "https://avatars1.githubusercontent.com/u/58605019?s=460&amp;v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/srinivasa-rao-bhandari-aa36a1171/", github: "https://github.com/SrinivasaRaoBhandari", }, jobTitle: "Full-stack Web Developer", location: { city: "Zabrze", state: "Silesia", country: "Poland", }, }, { id: uuidv4(), name: "Jonathas Duarte", img: "https://avatars1.githubusercontent.com/u/42847587?s=400&u=86513eef5bc0297528225636193ab72d5da91ee9&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/jonathas-duarte-de-carvalho-e-silva-a728aa70/", github: "https://github.com/jonathasdcsilva/", }, jobTitle: "Backend Developer", location: { city: "Brasilia", state: "Distrito Federal", country: "Brazil", }, }, { id: uuidv4(), name: "Adam Hartman", img: "https://avatars3.githubusercontent.com/u/29264098?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/adamhartman5/", github: "https://github.com/adamhartman5/", }, jobTitle: "Junior Web Developer | Junior Developer", location: { city: "Lakeland", state: "Florida", country: "USA", }, }, { id: uuidv4(), name: "Felipe Cruz", img: "https://avatars2.githubusercontent.com/u/57880601?s=460&v=4", links: { website: "https://zealous-varahamihira-af923b.netlify.com/", linkedin: "", github: "https://github.com/felipegcruz", }, jobTitle: "Junior Web Developer | Junior Developer", location: { city: "Haverfordwest", state: "Pembrokeshire", country: "United Kingdom", }, }, { id: uuidv4(), name: "Serdar Mustafa", img: "https://avatars2.githubusercontent.com/u/45297391?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/serdar-mustafa/", github: "https://github.com/SerdarMustafa1", }, jobTitle: "Software Developer", location: { city: "London", state: "London", country: "United Kingdom", }, }, { id: uuidv4(), name: "Alek Vila", img: "https://avatars2.githubusercontent.com/u/39844914?s=460&v=4", links: { website: "https://www.greatgraphicdesign.com/", linkedin: "https://www.linkedin.com/in/alek-vila/", github: "https://github.com/greatgraphicdesign/", }, jobTitle: "Front-End Developer, Art Director, Graphic Designer, UI/UX", location: { city: "Bellingham", state: "Washington", country: "USA", }, }, { id: uuidv4(), name: "Haider Tiwana", img: "https://avatars3.githubusercontent.com/u/20669228?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/hai-der/", github: "https://github.com/hai-der", }, jobTitle: "Full-Stack Software Engineer", location: { city: "Seattle", state: "Washington", country: "United States", }, }, { id: uuidv4(), name: "Sonali Sawlani", img: " ", links: { website: " ", linkedin: "https://www.linkedin.com/in/sonalisawlani/", github: "https://github.com/sonali-20", }, jobTitle: "Software Engineer", location: { city: "Coimbatore", state: "Tamil Nadu", country: "India", }, }, { id: uuidv4(), name: "Tanja Vinogradova", img: "https://avatars1.githubusercontent.com/u/56765550?s=460&v=4", links: { website: "https://photovinogradova.com/resume", linkedin: "https://www.linkedin.com/in/tanjavinogradova/", github: "https://github.com/tavinogradova92", }, jobTitle: "Frontend Developer | UX Designer", location: { city: "Copenhagen", state: "Caputal Region", country: "Denmark", }, }, { id: uuidv4(), name: "David Nguyen (utechpia)", img: "https://avatars0.githubusercontent.com/u/57503203?s=460&v=4", links: { website: "https://www.utechpia.com/", linkedin: "https://www.linkedin.com/in/utechpia/", github: "https://github.com/utechpia", }, jobTitle: "Coder, Developer Advocate, YouTuber, Photographer", location: { city: "San Francisco", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Leonid Kuznetsov", img: "https://avatars0.githubusercontent.com/u/9495532?s=400&u=4ac086da09c90364634b00020680e81d2593af0a&v=4", links: { linkedin: "https://www.linkedin.com/in/leonidkuznetsov/", github: "https://github.com/MrChe", }, jobTitle: "Senior Front End Developer", location: { city: "Kyiv", state: "Kyiv", country: "Ukraine", }, }, { id: uuidv4(), name: "André Gonçalves", img: "https://avatars1.githubusercontent.com/u/42880576?s=460&v=4", links: { website: "https://www.andgcv.com/", linkedin: "https://www.linkedin.com/in/andgcv/", github: "https://github.com/andgcv", }, jobTitle: "Software Engineer", location: { city: "Lisbon", state: "Lisbon", country: "Portugal", }, }, { id: uuidv4(), name: "Michelle Rahman", img: "https://i.imgur.com/65I3Y6r.jpg", links: { website: "https://michellerahman21.github.io/portfolio.github.io/", linkedin: "https://www.linkedin.com/in/michelle-rahman/", github: "https://github.com/MichelleRahman21", }, jobTitle: "Software Engineer", location: { city: "Boston", state: "Massachusetts", country: "United States Of America", }, }, { id: uuidv4(), name: "Tony Mack", img: "https://media.licdn.com/dms/image/C4D03AQEr5VmiOWVTSg/profile-displayphoto-shrink_200_200/0?e=1583971200&v=beta&t=vO61QsF0sEwHlXyeu2EvTXNzrQbMPPdJ5UBpyFVkIPg", links: { linkedin: "https://www.linkedin.com/in/tmack123/", github: "https://github.com/tonmanayo", }, jobTitle: "Full Stack Software Developer", location: { city: "Bryanston", state: "Gauteng", country: "South Africa", }, }, { id: uuidv4(), name: "Stan Choi", img: "https://avatars0.githubusercontent.com/u/43020892?s=400&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/stanchoinym/", github: "https://github.com/StanimalTheMan", }, jobTitle: "Software Engineer", location: { city: "Flushing", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Oluwafemi Adenuga", img: "https://res.cloudinary.com/femosocratis/image/upload/v1586590237/023492D5-46DB-4688-B819-0E1DF187D899L0001_isedrz.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/femosocratis/", github: "https://github.com/phemmylintry", }, jobTitle: "Web Developer", location: { city: "Lagos", state: "", country: "Nigeria", }, }, { id: uuidv4(), name: "Arnab Ray", img: "https://avatars2.githubusercontent.com/u/26869021?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/funky-poseidon/", github: "https://github.com/arnabuchiha", }, jobTitle: "Full Stack Developer|Deep Learning Enthusiast|Android App Developer", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Kavya Sagar", img: "https://avatars0.githubusercontent.com/u/10847203?s=460&v=4", links: { website: "http://www.kavs.me", linkedin: "https://www.linkedin.com/in/kavya-v-sagar/", github: "https://github.com/kavyavsagar", }, jobTitle: "Full Stack Developer|Software Engineer", location: { city: "DSO", state: "Dubai", country: "UAE", }, }, { id: uuidv4(), name: "Daniel Gleason", img: "https://ibb.co/fF39wtk", links: { website: "https://danny-gleason.netlify.com/", linkedin: "https://www.linkedin.com/in/dcglesaon/", github: "https://github.com/dcglesaon", }, jobTitle: "Full Stack Developer | Software Engineer", location: { city: "Boston", state: "MA", country: "USA", }, }, { id: uuidv4(), name: "Oke Emmanuel", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/okemmanuel/", github: "https://github.com/theastutian", }, jobTitle: "Full Stack Developer | Data Scientist", location: { city: "Ile-Ife", state: "Osun", country: "Nigeria", }, }, { id: uuidv4(), name: "Banhaw Chun", img: "https://avatars0.githubusercontent.com/u/37777222?s=460&v=4", links: { website: "https://banhawch.netlify.com/", linkedin: "https://www.linkedin.com/in/banhaw-chun-331977198/", github: "https://github.com/banhawchun", }, jobTitle: "Full Stack Developer | Android Developer", location: { city: "Phnom Penh", state: "", country: "Cambodia", }, }, { id: uuidv4(), name: "Daniel Narh", img: "https://avatars0.githubusercontent.com/u/52500058?s=460&v=4", links: { website: "danielkpodo.github.io/portfolio", linkedin: "https://www.linkedin.com/in/daniel-narh-kpodo", github: "https://github.com/danielkpodo", }, jobTitle: "Full Stack Developer | MERN Developer", location: { city: "Accra", state: "Greater-Accra", country: "Ghana", }, }, { id: uuidv4(), name: "Ashwani Singh", img: "", links: { website: "https://ashwani65.blogspot.com/", linkedin: "https://www.linkedin.com/in/ashwani-singh-5b1868165/", github: "https://github.com/ashwani65", }, jobTitle: "Full Stack Developer | MERN Developer", location: { city: "Kanpur", state: "Uttar Pradesh", country: "India", }, }, { id: uuidv4(), name: "Amritha Marimuthu", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/amritha-marimuthu-3943b517b/", github: "https://github.com/AmrithaM/", }, jobTitle: "Full Stack Developer | Web Developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Shohei Hagiwara", img: "https://avatars1.githubusercontent.com/u/8368127?s=460&v=4", links: { website: "https://shoheihagiwara.github.io/resume/", linkedin: "https://www.linkedin.com/in/shoheihagiwara", github: "https://github.com/shoheihagiwara", }, jobTitle: "Web Application Developer", location: { city: "Tokyo", state: "Tokyo", country: "Japan", }, }, { id: uuidv4(), name: "Viktor Borsodi", img: "https://avatars0.githubusercontent.com/u/34397487?s=460&v=4", links: { website: "https://viktorborsodi.github.io/", linkedin: "https://www.linkedin.com/in/viktor-borsodi-73690062/", github: "https://github.com/ViktorBorsodi", }, jobTitle: "Full-stack Web Developer", location: { city: "Budapest", state: "", country: "Hungary", }, }, { id: uuidv4(), name: "Alex Gainza", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/alex-gainza-cintero-76360417a/", github: "https://github.com/alesgainza", }, jobTitle: "Full stack Developer", location: { city: "Zumaia", state: "Gipuzkoa", country: "Spain", }, }, { id: uuidv4(), name: "Glauber Camargo Campos Rocha", img: "https://avatars3.githubusercontent.com/u/2231796?s=400&u=2ac9f62f3d160210f16f9941152f27db697c8c07&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/glaubercamargo92/", github: "https://github.com/mhalgan", }, jobTitle: "Full Stack Developer (MERN)", location: { city: "Ipatinga", state: "Minas Gerais", country: "Brazil", }, }, { id: uuidv4(), name: "Darshin Van Parijs", img: "https://avatars3.githubusercontent.com/u/47732125?s=400&u=38fe82b76b8726378b0581e5dc1722c74b6df7e6&v=4", links: { website: "https://www.darshin.me/", linkedin: "https://www.linkedin.com/in/darshinvanparijs/", github: "https://github.com/DDVVPP/", }, jobTitle: "Full Stack Developer | Software Engineer", location: { city: "New York", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "Cayden Choi", img: "https://avatars0.githubusercontent.com/u/59014867?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/eunseok-cayden-choi-2aa79a137/", github: "https://github.com/EJ-C?tab=repositories", }, jobTitle: "Full-stack Web Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Elizabeth Ortiz", img: "https://avatars1.githubusercontent.com/u/26338550?s=400&u=785f8547bc53cf6926f8f8d63c6a31f061dd6d9a&v=4", links: { website: "https://www.ortizliz.com", linkedin: "https://www.linkedin.com/in/elizabeth-f-ortiz/", github: "https://github.com/lizbeth58", }, jobTitle: "Front-end developer", location: { city: "San Francisco", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Alejandro García Iglesias", img: "https://alejandroiglesias.github.io/cv/images/profile-picture.jpg", links: { website: "https://alejandroiglesias.github.io/cv/", linkedin: "https://www.linkedin.com/in/alegarciaiglesias/", github: "https://github.com/alejandroiglesias", }, jobTitle: "Senior Frontend Developer", location: { state: "Buenos Aires", country: "Argentina", }, }, { id: uuidv4(), name: "Cory Catherall", img: "https://avatars0.githubusercontent.com/u/45598232?s=460&v=4", links: { website: "https://corycatherall.com", linkedin: "https://www.linkedin.com/in/cory-catherall-9a5bb6116/", github: "https://github.com/Tera15", }, jobTitle: "Developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Nur Hikmah", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/nur-hikmah-aa9873192/", github: "https://github.com/nrhikmah", }, jobTitle: "Full Stack Developer | Informatics Collage Student", location: { city: "Maros", state: "South of Sulawesi", country: "Indonesia", }, }, { id: uuidv4(), name: "Jeffrey Vos", img: "https://media-exp1.licdn.com/dms/image/C5603AQGy8xtIftwFpA/profile-displayphoto-shrink_200_200/0?e=1585785600&v=beta&t=iINuqmtH8ARuYypIxKvzj7QMHyolDVw43C3pCvNZ1Nc", links: { website: "", linkedin: "https://www.linkedin.com/in/vosjeffrey/", github: "https://github.com/Jeffvos/", }, jobTitle: "Software Developer", location: { city: "", state: "", country: "", }, }, { id: uuidv4(), name: "Manjeet Kumar", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/manjeetkumar7/", github: "https://github.com/Manjeete", }, jobTitle: "Web Developer", location: { city: "Kushinagar", state: "Uttar Pradesh", country: "India", }, }, { id: uuidv4(), name: "Eden Varsulker", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/eden-varsulker-88676411a/", github: "https://github.com/edenv30", }, jobTitle: "Full Stack Developer", location: { city: "", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Harsh Khurana", img: "", links: { website: "", linkedin: "", github: "https://github.com/Harsh-Khurana", }, jobTitle: "Web Developer", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Gabriel Vlasceanu", img: "https://avatars2.githubusercontent.com/u/53636709?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/gvlasceanu/", github: "https://github.com/maugrim777", }, jobTitle: "Full-Stack Developer", location: { city: "Bucharest", state: "", country: "Romania", }, }, { id: uuidv4(), name: "Luiz Felipe Neves", img: "https://avatars2.githubusercontent.com/u/14094719??s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/luizfelipeneves0/", github: "https://github.com/luizfelipeneves", }, jobTitle: "Full-Stack Developer (MERN)", location: { city: "Lorena", state: "São Paulo", country: "Brazil", }, }, { id: uuidv4(), name: "Sirian Wang", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/sirian-wang-11720313/", github: "https://github.com/sirianw", }, jobTitle: "Software Developer", location: { city: "Los Angeles", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Ntsako Mculu", img: "https://avatars0.githubusercontent.com/u/60618174?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/ntsako-rodney-mculu-a486bb58/", github: "https://github.com/ntsakoMculu", }, jobTitle: "Software Developer, Data science/Analyst", location: { city: "Johannesburg", state: "Gauteng", country: "South Africa", }, }, { id: uuidv4(), name: "Edward Liu", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/etotheipipower/", github: "https://github.com/edward1127", }, jobTitle: "Software Developer", location: { city: "Los Angeles", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Charles Loges IV", img: "https://avatars1.githubusercontent.com/u/4064474?s=460&v=4", links: { website: "https://www.charlesloges.com/", linkedin: "https://www.linkedin.com/in/charles-loges-iv-9a534956/", github: "https://github.com/cloges4", }, jobTitle: "Front End Developer", location: { city: "Raleigh", state: "North Carolina", country: "USA", }, }, { id: uuidv4(), name: "Julia Lin", img: "https://avatars1.githubusercontent.com/u/29173391?v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/julialinmc/", github: "https://github.com/julialinju5", }, jobTitle: "Junior Big Data Engineer", location: { city: "Mountain View", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Akash Jeganath", img: "https://ibb.co/VCNV4sW", links: { website: "http://akashoffl.me/", linkedin: "https://www.linkedin.com/in/akashjoffl/", github: "https://github.com/akashjoffl", }, jobTitle: "Full Stack Developer", location: { city: "Colombo", state: "Western Province", country: "Sri-Lanka", }, }, { id: uuidv4(), name: "Shota Togawa", img: "", links: { website: "https://www.shotatogawa.site/", linkedin: "https://www.linkedin.com/in/shota-togawa-ba8235185/", github: "https://github.com/ShotaTogawa", }, jobTitle: "Web Developer", location: { city: "Vancouver", state: "BC", country: "Canada", }, }, { id: uuidv4(), name: "Aleksandar Nedelkovski", img: "https://avatars2.githubusercontent.com/u/28938627?s=460&v=4", links: { website: "https://nedelkovskialeks.com/", linkedin: "https://www.linkedin.com/in/aleksandarnedelkovski/", github: "https://github.com/Aleksandandar-Nedelkovski", }, jobTitle: "Full-stack Web Developer", location: { city: "Chicago", state: "IL", country: "USA", }, }, { id: uuidv4(), name: "Katsiaryna (Kate) Lupachova", img: "https://ramonak.io/my-photo.png", links: { website: "https://ramonak.io/", linkedin: "https://www.linkedin.com/in/katsiaryna-lupachova/", github: "https://github.com/KaterinaLupacheva", }, jobTitle: "Full-stack Web Developer", location: { city: "Minsk", state: "", country: "Belarus", }, }, { id: uuidv4(), name: "Neha Gupta", img: "https://avatars3.githubusercontent.com/u/50129533?s=400&v=4", links: { website: "https://ngcodes.com/", linkedin: "https://www.linkedin.com/in/gupneha/", github: "https://github.com/nehagupta2507", }, jobTitle: "Full-stack Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Rodrigo Santos", img: "https://avatars1.githubusercontent.com/u/23111460?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/rodsnts/", github: "https://github.com/rodsnts", }, jobTitle: "Front-End Developer", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Maria-Teodora Pop", img: "https://avatars2.githubusercontent.com/u/54820576?s=460&v=4", links: { website: "https://www.popmaria.com/home", linkedin: "https://www.linkedin.com/in/maria-teodora-pop-64825b156/", github: "https://github.com/LadyShinka", }, jobTitle: "Full-Stack Web Developer", location: { city: "Reading", state: "Berkshire", country: "United Kingdom", }, }, { id: uuidv4(), name: "Prabhjot Singh", img: "https://avatars3.githubusercontent.com/u/47789898?s=400&u=103b7e4f41d70a9b06ae407ee56ae11277b2477a&v=4", links: { website: "https://batmangoo.github.io/Javascript-Portfolio/", linkedin: "https://www.linkedin.com/in/prabhjot-singh-59750199/", github: "https://github.com/BATMANGOO", }, jobTitle: "Full-Stack Web Developer", location: { city: "San Francisco", state: "CA", country: "United States", }, }, { id: uuidv4(), name: "Michael Huber", img: "https://avatars1.githubusercontent.com/u/55626560?s=400&u=bbb9b547a6e0c4856997702307c52c6598c72f93&v=4", links: { website: "https://www.mikeyneedsajob.com/", linkedin: "https://www.linkedin.com/in/michael-huber-9b567a173/", github: "https://github.com/mshuber1981", }, jobTitle: "Front-end Web Developer", location: { city: "Des Moines", state: "IA", country: "United States", }, }, { id: uuidv4(), name: "Christian Stevens", img: "https://media-exp1.licdn.com/dms/image/C5603AQExqUsxV7_IQw/profile-displayphoto-shrink_200_200/0?e=1588809600&v=beta&t=tFrAQCIcG1T080mPykXyD4bxTG92fUx2wTBZQcy_NE4", links: { website: "https://chris-thedeveloper.com/", linkedin: "https://www.linkedin.com/in/christian-stevens-34367110b/", github: "https://github.com/stev1905", }, jobTitle: "Full Stack Developer", location: { city: "Brooklyn", state: "NY", country: "United States", }, }, { id: uuidv4(), name: "Pratik Pandab", img: "https://avatars0.githubusercontent.com/u/33945636?s=400&u=8373f0db9292c10f86da7390d50b91debad51716&v=4", links: { website: "https://pratik-1999.github.io/", linkedin: "https://www.linkedin.com/in/pratik-pandab-193b43143/", github: "https://github.com/pratik-1999", }, jobTitle: "AI Researcher", location: { city: "Vidisha", state: "M.P.", country: "India", }, }, { id: uuidv4(), name: "Miles Au", img: "https://i.imgur.com/4rNq9Rj.jpg", links: { website: "https://www.milesau.com", linkedin: "https://www.linkedin.com/in/milesau/", github: "https://github.com/miles-au", }, jobTitle: "Mobile and Web Developer", location: { city: "Toronto", state: "Ontario", country: "Canada 🇨🇦 (Willing to relocate)", }, }, { id: uuidv4(), name: "Bunyawat Srisompong", img: "https://avatars1.githubusercontent.com/u/33023239?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/bsrisompong/", github: "https://github.com/bsrisompong", }, jobTitle: "Full Stack Javascript Developer", location: { city: "Bangkok", state: "", country: "Thailand🇹🇭", }, }, { id: uuidv4(), name: "Jesus Soto", img: "https://avatars1.githubusercontent.com/u/16869766?s=400&v=4", links: { website: "https://www.upwork.com/o/profiles/users/~01b278e346910606a1/", linkedin: "https://www.linkedin.com/in/sotous/", github: "https://github.com/sotous", }, jobTitle: "Full Stack Developer", location: { city: "Barranquilla", state: "Atlantico", country: "Colombia", }, }, { id: uuidv4(), name: "Ray Reside", img: "", links: { website: "https://www.rayreside.com", linkedin: "https://www.linkedin.com/in/rayreside/", github: "https://github.com/rayreside", }, jobTitle: "Full Stack Web Developer", location: { city: "Jersey City", state: "New Jersey", country: "United States", }, }, { id: uuidv4(), name: "Jun Yu Lu", img: "https://avatars.githubusercontent.com/thejbomb", links: { website: "https://thejbomb.github.io/", linkedin: "https://www.linkedin.com/in/jun-yu-lu-34b14aa6/", github: "https://github.com/thejbomb", }, jobTitle: "Software Engineer (Java, Javascript C#)", location: { city: "Warwick", state: "Rhode Island", country: "USA (Willing to relocate)", }, }, { id: uuidv4(), name: "Juan Luis Rojas León", img: "https://avatars.githubusercontent.com/rojasleon", links: { website: "https://rojasleon.tech", linkedin: "https://www.linkedin.com/in/rojasleon", github: "https://github.com/rojasleon", }, jobTitle: "Software Developer", location: { city: "", state: "Guanajuato", country: "Mexico", }, }, { id: uuidv4(), name: "Vishwanth S Asundi", img: "https://avatars3.githubusercontent.com/u/45585360?s=460&v=4", links: { website: "https://vishwanath-asundi.netlify.com/", linkedin: "https://www.linkedin.com/in/vishwanath-s-065b2b115/", github: "https://github.com/VishwanathAsundi?tab=repositories", }, jobTitle: "Software Developer / Front end Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Abdul Mobeen", img: "https://media-exp1.licdn.com/dms/image/C5603AQGg4EhYo53Ocg/profile-displayphoto-shrink_200_200/0?e=1589414400&v=beta&t=e17Ov88gu7P7lF-9fPliYorFVQI8Py5VCIcbcrVyZWY", links: { website: "", linkedin: "https://qa.linkedin.com/in/mobeendev", github: "https://github.com/mobeendev?tab=repositories", }, jobTitle: "PHP◆JS◆Frameworks◆APIs◆Microservices◆Cloud◆SQL", location: { city: "Doha", state: "", country: "Qatar", }, }, { id: uuidv4(), name: "Jeryl Donato Estopace", img: "https://avatars0.githubusercontent.com/u/26645913?s=400&u=8d9a63dc398fd351037d0a8ffd8a56b37c386ee5&v=4", links: { website: "https://jeryldev.github.io/", linkedin: "https://www.linkedin.com/in/jeryldev/", github: "https://github.com/JerylDEv", }, jobTitle: "Technical Support Engineer, Oracle NetSuite", location: { city: "Taguig City", state: "National Capital Region", country: "Philippines", }, }, { id: uuidv4(), name: "Pop Stefan", img: "https://avatars0.githubusercontent.com/u/43994418?s=460&u=d5bb94d0c88bdf16a55d1807e0c3d6e8aa4e0054&v=4", links: { website: "https://stefanpop.dev", linkedin: "https://www.linkedin.com/in/stefan-pop-9a55a6191/", github: "https://github.com/StefanSelfTaught", }, jobTitle: "Front End Developer", location: { city: "Targu-Mures", state: "Mures", country: "Romania", }, }, { id: uuidv4(), name: "Ryan Rodrigues", img: "", links: { website: "", linkedin: "", github: "https://github.com/ryrodrig", }, jobTitle: "Backend Developer", location: { city: "Sadashivgad", state: "Toronto", country: "Canada", }, }, { id: uuidv4(), name: "Sarah Paz", img: "https://sarahpaz.ca/images/sarahpaz-headshot-2019.jpg", links: { website: "www.sarahpaz.ca", linkedin: "https://www.linkedin.com/in/sarahpaz/", github: "https://github.com/sarahpaz", }, jobTitle: "Full Stack Web Developer", location: { city: "Toronto", state: "ON", country: "Canada", }, }, { id: uuidv4(), name: "Anurag Yadav", img: "https://www.gravatar.com/avatar/9159f15d1336345e5378cb5464259e04", links: { website: "http://yadavanurag.github.io", linkedin: "https://www.linkedin.com/in/yadavanurag90", github: "https://github.com/yadavanurag", }, jobTitle: "Full Stack Developer", location: { city: "Gorakhpur", state: "Uttar Pradesh", country: "India", }, }, { id: uuidv4(), name: "Payton Jewell", img: "https://avatars3.githubusercontent.com/u/18350557?s=460&u=b5237bf592833e60ba0a68842c76ae4f3d08e28e&v=4", links: { website: "https://paytonjewell.github.io/", linkedin: "https://www.linkedin.com/in/payton-jewell/", github: "https://github.com/paytonjewell", }, jobTitle: "Front-End Developer", location: { city: "Appleton", state: "Wisconsin", country: "United States of America", }, }, { id: uuidv4(), name: "Josia Rodriguez", img: "https://res.cloudinary.com/di3jbt6xu/image/upload/v1584626388/profile_ome0ls.jpg", links: { website: "https://www.josiarodriguez.com/", linkedin: "https://www.linkedin.com/in/josiarodriguez/", github: "https://github.com/josiarod", }, jobTitle: "Full Stack Developer", location: { city: "Metro Area", state: "Washington, D.C.", country: "USA", }, }, { id: uuidv4(), name: "Joshua Folorunsho", img: "https://avatars3.githubusercontent.com/u/55793353?s=400&u=6828f7d903254ca765429cdf063e99635efb8b84&v=4", links: { website: "http://joshuafolorunsho.com", linkedin: "https://www.linkedin.com/in/jfolorunsho", github: "https://github.com/joshuafolorunsho", }, jobTitle: "Frontend Developer", location: { city: "Uyo", state: "Awka Ibom", country: "Nigeria", }, }, { id: uuidv4(), name: "Evangel Iheukwumere", img: "https://devevangel.github.io/assets/images/me.jpg", links: { website: "https://devevangel.github.io/", linkedin: "https://www.linkedin.com/in/evangel-iheukwumere-511a7219b/", github: "https://github.com/devevangel/", }, jobTitle: "Game Developer / Software Developer / Android Developer", location: { city: "Amarillo", state: "Texas", country: "United States", }, }, { id: uuidv4(), name: "S Salman", img: "https://media-exp1.licdn.com/dms/image/C5103AQFvOwhQ976dEg/profile-displayphoto-shrink_200_200/0?e=1590019200&v=beta&t=oNwKuih1J6tgxSo1GLcTjAGo8Kr3H8HrwTiBaisZwPA", links: { website: "https://ssalmanportfolio.netlify.com/", linkedin: "https://www.linkedin.com/in/s-salman-509776160/", github: "https://github.com/ssal-man", }, jobTitle: "Full-Stack Developer , Python Developer , Javascript Developer , Android Developer", location: { city: "Bhilai", state: "Chhattisgarh", country: "India", }, }, { id: uuidv4(), name: "Moulay Isam Elbousserghini", img: "https://lh3.googleusercontent.com/-dSTdfe93-d0fg1bc6hx8uHSYBH5FqeNaSftgWd5Vd_xln8293caccfoWsKrEc96JntGvfZxtkwer4HshgKWN4BFxfNTw5BVjuwgIfjDPoVEohpgr4EsBHPZJgb07BoLfPiagpuLjZRJb8o8hK-6IznMor5FKYKajywWsxjmxoxtSzTC0hz9JbdAeVUmukFjDqeZzXYzSI-Ix9a8MTmSfrYtkDmuYNPjlQ0nnSY3uqogmjeq5Obbh_pYBc4uL0R2IsUxuK0CjnPT8uzI14KWeNbP7GLp1SxNX6E7E8cyWAzAu2wcZA7bLj7G8Jjv_PvID5Aa5qprCHbJw_iEvpH0D--cJISyoBLv4w7SHAgfj7cMQlbHxl-80VmJGV-0KmGuUXtJh-megSIUuku0ms1IF-xrP9785TXX_mEKtU4X1L2Fna4kkcZvHcY6Lgs8Tg8P3rNgyiU5MvfDad-GoBSdQSBQSVbTA339OtF1RIQfZZ-XRylRM1VJQIGs-jy7FFlgAY95cohjOO_LXa2AdhhD4df5rYutbBplTTO8bzeU2FspNzC2cIjV9fm7JZc-yLklTjcJ-d46I_4C0-ECIoQcdBuAdyHyudZYySQ3d9XrbJGUrylpBW8rddtlVSv1Vjw7xhIt6kI5YdhNYdgnQLpICkHKveHDD7DxGG5Aa6ueKFEooAs-XPWwAfCDTZCRgBg=s231-no", links: { website: "https://mindtaxis.com/", linkedin: "https://www.linkedin.com/in/isam-elbousserghini-874614194/", github: "https://github.com/isamelb", }, jobTitle: "web developer, javascript, html, css, python", location: { city: "London", state: "London", country: "United Kingdom", }, }, { id: uuidv4(), name: "Himanshu Kishor Gohil", img: "https://tghimanshu.github.io/images/photo.jpg", links: { linkedin: "https://www.linkedin.com/in/himanshu-gohil-b21893155/", website: "https://tghimanshu.github.io/", github: "https://github.com/tghimanshu", }, jobTitle: "Full Stack Developer", location: { city: "Mumbai", state: "Maharastra", country: "India", }, }, { id: uuidv4(), name: "Iuliia Logunova", img: "https://avatars3.githubusercontent.com/u/54540652?s=460&u=6dfedd88e99956acf7c85c67e6b90627d8e67404&v=4", links: { linkedin: "http://linkedin.com/in/iuliia-logunova-982939190", website: "https://yulogun.github.io/my-portfolio/#/", github: "https://github.com/YuLogun", }, jobTitle: "Front End Developer", location: { city: "Samara", state: "", country: "Russia", }, }, { id: uuidv4(), name: "Mehedi Hasan", img: "https://avatars0.githubusercontent.com/u/24963413?s=460&u=97a321a6d6af5030cb6ca3f8f79bbff0dbab8198&v=4", links: { linkedin: "http://linkedin.com/in/codermehedi", website: "https://codermehedi.me", github: "https://github.com/Coder-Mehedi", }, jobTitle: "Full Stack Developer (MERN)", location: { city: "Dhaka", state: "", country: "Bangladesh", }, }, { id: uuidv4(), name: "Paramjeet Dhiman", img: "https://scontent.fhyd5-1.fna.fbcdn.net/v/t1.0-1/c60.0.240.240a/p240x240/90170088_1570467313105651_7051108845623443456_o.jpg?_nc_cat=108&_nc_sid=dbb9e7&_nc_ohc=Ipi2IGMZPxsAX_SKRWe&_nc_ht=scontent.fhyd5-1.fna&oh=a354d5e07f5072e7c79642cca644b748&oe=5EA6DA17https://scontent.fhyd5-1.fna.fbcdn.net/v/t1.0-1/c60.0.240.240a/p240x240/90170088_1570467313105651_7051108845623443456_o.jpg?_nc_cat=108&_nc_sid=dbb9e7&_nc_ohc=Ipi2IGMZPxsAX_SKRWe&_nc_ht=scontent.fhyd5-1.fna&oh=a354d5e07f5072e7c79642cca644b748&oe=5EA6DA17", links: { website: "https://about.me/paramjeetdhiman", linkedin: "https://www.linkedin.com/in/paramjeetdhiman", github: "https://github.com/paramjeetdhiman", }, jobTitle: "Front-End Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Narayan Hari", img: "https://narayanhari.in/1.JPG", links: { website: "https://narayanhari.in/", linkedin: "https://www.linkedin.com/in/narayanhari/", github: "https://github.com/narayanhari", }, jobTitle: "Computer Science Undergraduate", location: { city: "Manipal", state: "Manipal", country: "India", }, }, { id: uuidv4(), name: "Dmytro Anikin", img: "http://dimianni.biz/images/me.jpg", links: { website: "http://dimianni.biz/", linkedin: "https://www.linkedin.com/in/dimianni/", github: "https://github.com/dimianni", }, jobTitle: "Front-End Web Developer", location: { city: "Aberdeen", state: "SD", country: "USA", }, }, { id: uuidv4(), name: "Navendu Niranjan P", img: "https://avatars1.githubusercontent.com/u/49474499?s=400&v=4", links: { website: "https://navendu-pottekkat.github.io/#/", linkedin: "https://www.linkedin.com/in/navendup/", github: "https://github.com/navendu-pottekkat", }, jobTitle: "Data Scientist", location: { city: "Kochi", state: "Kerala", country: "India", }, }, { id: uuidv4(), name: "Tomer Guttman", img: "https://avatars0.githubusercontent.com/u/40022715?s=460&u=79919ca3d081b9423e0d4391807e62836cae6830&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/tomergut/", github: "https://github.com/tomerguttman", }, jobTitle: "Software Developer", location: { city: "Haifa", state: "", country: "Israel", }, }, { id: uuidv4(), name: "Olokor Divine", img: "https://avatars0.githubusercontent.com/u/48719608?s=400&u=d9ffb4f63c65b92a54d074abc54a5fcd5d2f7097&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in//", github: "https://github.com/divee789", }, jobTitle: "Fullstack Engineer", location: { city: "Lagos", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Rolando Capara", img: "https://avatars1.githubusercontent.com/u/62534347?s=460&u=5d96759c71d3b52b26f03d97d8cbd070da183950&v=4", links: { website: "https://rjcapara.com", linkedin: "https://www.linkedin.com/in/rolando-capara-536891144/", github: "https://github.com/rjcapara", }, jobTitle: "Full Stack Web Developer", location: { city: "Cainta", state: "Rizal", country: "Philippines", }, }, { id: uuidv4(), name: "Rafael Dias", img: "https://avatars0.githubusercontent.com/u/52940075?s=400&u=37f166717fd557194d81278ebd4f6f618fc18817&v=4", links: { website: "https://rafaeldias.netlify.com/", linkedin: "https://www.linkedin.com/in/rafaeldias6/", github: "https://github.com/Rafsdias", }, jobTitle: "Front-End Developer", location: { city: "Viseu", state: "", country: "Portugal", }, }, { id: uuidv4(), name: "Luis Vallejo", img: "https://media-exp1.licdn.com/dms/image/C4E03AQHyVZgfrVduVw/profile-displayphoto-shrink_100_100/0?e=1591833600&v=beta&t=nuBbreYm7bEbgSJBAWNaCbX0OwZ-DNFfgJZ8BbynqjU", links: { website: "", linkedin: "https://www.linkedin.com/in/luis-vallejo-luvagu/", github: "https://github.com/luiavag", }, jobTitle: "Full Stack Web Developer", location: { city: "Brighton", state: "ES", country: "UK", }, }, { id: uuidv4(), name: "Victor Jonah", img: "https://avatars2.githubusercontent.com/u/30151767?s=400&u=6e371cca7372e7627d27dacd64abfdb213053229&v=4", links: { website: "https://www.vectormike.codes/", linkedin: "https://www.linkedin.com/in/victor-jonah-abb1a1120/", github: "https://github.com/Vectormike", }, jobTitle: "Full Stack JavaScript Developer", location: { city: "Uyo", state: "AkwaIbom", country: "Nigeria", }, }, { id: uuidv4(), name: "Pranav Agarwal", img: "https://avatars0.githubusercontent.com/u/40036238?s=400&u=c8c83a97658f9f62f32d9cbfe4334962933271a1&v=4", links: { website: "https://www.pranav2012.github.io/", linkedin: "https://www.linkedin.com/in/pranav-agarwal-579363166/", github: "https://github.com/pranav2012", }, jobTitle: "Full-Stack Web-Developer, Python Developer", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Eugene Chan", img: "https://avatars.githubusercontent.com/eugenechanyc", links: { website: "", linkedin: "https://www.linkedin.com/in/eugenechanyc", github: "https://github.com/eugenechanyc", }, jobTitle: "Full Stack Web Developer", location: { city: "Singapore", state: "", country: "Singapore", }, }, { id: uuidv4(), name: "Mohamed Shawky", img: "https://res.cloudinary.com/dymelpf7v/image/upload/v1586085437/profile.png", links: { website: "", linkedin: "https://www.linkedin.com/in/mohamedshawkybayoumi", github: "https://github.com/MohamedShawkyBayoumi/", }, jobTitle: "Front End Web Developer | React Developer", location: { city: "Cairo", state: "", country: "Egypt", }, }, { id: uuidv4(), name: "Manoj Baddi", img: "https://avatars.githuhttps://avatars.githubusercontent.com/santhosh21vkbusercontent.com/manojbaddi", links: { website: "", linkedin: "https://www.linkedin.com/in/manojbaddi/", github: "https://github.com/manojbaddi", }, jobTitle: "Full Stack C# developer", location: { city: "Bangalore", state: "", country: "India", }, }, { id: uuidv4(), name: "Santhosh H V", img: "https://avatars.githubusercontent.com/santhosh21vk", links: { website: "", linkedin: "https://www.linkedin.com/in/santhosh-h-v-9a8937171/", github: "https://github.com/santhosh21vk", }, jobTitle: "Front End Web Developer (Javascript, React.js)", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Kiril Delovski", img: "https://avatars.githubusercontent.com/kiril6", links: { website: "http://delovski.net", linkedin: "https://www.linkedin.com/in/kdelovski6/", github: "https://github.com/kiril6", }, jobTitle: "Frontend Web Developer", location: { city: "Skopje", state: "", country: "North Macedonia", }, }, { id: uuidv4(), name: "Rigin Oommen", img: "https://avatars.githubusercontent.com/riginoommen", links: { website: "https://riginoommen.github.io", linkedin: "https://www.linkedin.com/in/riginoommen/", github: "https://github.com/riginoommen", }, jobTitle: "Application Developer", location: { city: "Pune", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Jonathan Branski", img: "https://avatars1.githubusercontent.com/u/32647040", links: { website: "https://jonathanbranski.com", linkedin: "https://www.linkedin.com/in/jonathanbranski/", github: "https://github.com/JBranski", }, jobTitle: "Front-end Developer", location: { city: "Milwaukee", state: "Wisconsin", country: "United States", }, }, { id: uuidv4(), name: "Matthew Rinaldo", img: "https://avatars1.githubusercontent.com/u/mattrinaldo", links: { website: "", linkedin: "https://www.linkedin.com/in/matthewrinaldo1/", github: "https://github.com/mattrinaldo", }, jobTitle: "Pre-Junior Full Stack Developer in Training", location: { city: "", state: "", country: "Earth", }, }, { id: uuidv4(), name: "Helio Cardoso", img: "", links: { website: "https://heliorochacardoso.github.io/portfolio/", linkedin: "https://www.linkedin.com/in/helio-cardoso-822355116/", github: "https://github.com/HelioRochaCardoso", }, jobTitle: "Front End Developer", location: { city: "Manchester", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Fran Extremera", img: "http://www.franextremera.com/images/about/profile_image.jpg", links: { website: "https://franextremera.com/", linkedin: "https://www.linkedin.com/in/francisco-extremera/", github: "https://github.com/franexmo81", }, jobTitle: "Front-end Web Developer", location: { city: "Jaen", state: "Andalusia", country: "Spain", }, }, { id: uuidv4(), name: "Theja M", img: "https://avatars1.githubusercontent.com/u/56859400?s=400&u=d5da7ac5fffe135c3d37dc8e7bda926d9e11e124&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/theja-m-744106168/", github: "https://github.com/theja-m", }, jobTitle: "Software Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Harendra Kumar Kanojiya", img: "https://media-exp1.licdn.com/dms/image/C5103AQF3dXY-xgSMuA/profile-displayphoto-shrink_200_200/0?e=1598486400&v=beta&t=7q-gaMWdhbM-acrMEJyShXIwuaZWLr5RNHs-IWMnAFc", links: { website: "https://harendra.in", linkedin: "https://www.linkedin.com/in/harendra-verma-157773a9/", github: "https://github.com/harendra21/", }, jobTitle: "Full Stack Web Developer", location: { city: "Gurugram", state: "Haryana", country: "India", }, }, { id: uuidv4(), name: "Aayush Rajput", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/aayush-r-44a33a108/", github: "https://github.com/aayushhh/", }, jobTitle: "Full Stack Web Developer", location: { city: "Gurugram", state: "Haryana", country: "India", }, }, { id: uuidv4(), name: "Funmilayo Tobun", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/tobun-funmilayo-b7b00171/", github: "https://github.com/Funmilayo24", }, jobTitle: "Full-Stack Web Developer", location: { city: "Bonn", state: "North rhine-westphalia", country: "Germany", }, }, { id: uuidv4(), name: "Mithlesh Yadav", img: "https://avatars2.githubusercontent.com/u/32195144?s=460&u=e7368131fc6cc6f55b6855cf7c2118945d111722&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/mithlesh-yadav-2aa8a316a/", github: "https://github.com/mithleshfreak", }, jobTitle: "Software Developer", location: { city: "Bhadrapur, Jhapa", state: "Province No. 1", country: "Nepal", }, }, { id: uuidv4(), name: "Lam Hong", img: "https://avatars3.githubusercontent.com/u/9206941?s=460&u=c8d9b30fe067bf089f93588e50b7aed9c409c887&v=4", links: { website: "lamhong.me", linkedin: "https://www.linkedin.com/in/lam-hong-529856109", github: "https://github.com/hongduclam", }, jobTitle: "Sr Full-Stack Engineer", location: { city: "Ho Chi Minh", state: "", country: "Viet Nam", }, }, { id: uuidv4(), name: "Usman Khalid", img: "https://media-exp1.licdn.com/dms/image/C5603AQH2HAy0OdhYlw/profile-displayphoto-shrink_200_200/0?e=1592438400&v=beta&t=J_uIatwlGMWjJNMgv4V-NRsYrdwYtkZaPXmDX2FKHr8", links: { website: "", linkedin: "https://www.linkedin.com/in/usman-khalid-9384129b/", github: "https://github.com/usmankhan495", }, jobTitle: "Mobile/Web (React Native | React Js)", location: { city: "Lahore", state: "Punjab", country: "Pakistan", }, }, { id: uuidv4(), name: "Damini Varu", img: "https://avatars2.githubusercontent.com/u/50891247?s=400&u=b5199d3397089aa3b292e6fff124e491096465e2&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/damini-varu-71607b197/", github: "https://github.com/dvru", }, jobTitle: "Software Developer, Technical Writer, Graphic Designer", location: { city: "Houston", state: "Texas", country: "United States", }, }, { id: uuidv4(), name: "Teri Eyenike", img: "https://res.cloudinary.com/codeg0d/image/upload/v1584384543/teri/codeg0d_d19edi.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/terieyenike/", github: "https://github.com/terieyenike", }, jobTitle: "JavaScript Developer", location: { city: "Maryland", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Cigdem Coskuner", img: "https://cigdem.dev/images/myphoto.jpg", links: { website: "https://www.cigdem.dev", linkedin: "linkedin.com/in/cigdemcoskuner", github: "https://github.com/CigdemCos", }, jobTitle: "Engineer | Full-Stack Developer", location: { city: "Albany", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Jonathan Aguilar", img: "https://avatars2.githubusercontent.com/u/63523280?s=400&u=a97aee07b624817cf6a7fb1bef02a74e4d8d9d26&v=4", links: { website: "www.moguljon.com", linkedin: "www.linkedin.com/in/jonathan-aguilar-047130ba/", github: "https://github.com/moguljon/", }, jobTitle: "Full Stack Web Developer", location: { city: "Elizabeth", state: "New Jersey", country: "USA", }, }, { id: uuidv4(), name: "Deepak Kumar", img: "https://avatars3.githubusercontent.com/u/30384999?s=460&u=c503b99720a093a4b67a76e2598e2fd6999b706a&v=4", links: { website: "https://deepak1418.github.io/", linkedin: "https://www.linkedin.com/in/deepak-kumar-70215b175/", github: "https://github.com/deepak1418", }, jobTitle: "Software Developer,Data Analyst", location: { city: "", state: "", country: "INDIA", }, }, { id: uuidv4(), name: "Fanni Takacs", img: "", links: { website: "http://FanniTakax.github.io/my_experimental_page", linkedin: "https://www.linkedin.com/in/fanni-takacs-profile/", github: "https://github.com/FanniTakax", }, jobTitle: "Web Developer", location: { city: "Budapest", state: "", country: "Hungary", }, }, { id: uuidv4(), name: "Vaibhav Kumar Singh", img: "https://bit.ly/2XyFqfE", links: { website: "", linkedin: "https://www.linkedin.com/in/vaibhav-kumar-singh-530928101", github: "https://github.com/vaivk4", }, jobTitle: "Software-Developer", location: { city: "Chennai", state: "Tamilnadu", country: "India", }, }, { id: uuidv4(), name: "Jonathan Grundy", img: "https://avatars2.githubusercontent.com/u/53473099?s=460&u=2120e37f1256225a73bbf2c75414e76217835d90&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/jonathan-grundy-661013190/", github: "https://github.com/jonathangrundy", }, jobTitle: "Junior Web Developer - Javascript", location: { city: "Preston", state: "Lancashire", country: "United Kingdom", }, }, { id: uuidv4(), name: "JT Houk", img: "https://res.cloudinary.com/jthouk/image/upload/w_200,c_fill,ar_1:1,g_auto,r_max/v1582802281/Profiles/IMG_0600_swphdi.png", links: { website: "https://jt.houk.space", linkedin: "https://www.linkedin.com/in/jt-houk", github: "https://github.com/HoukasaurusRex", }, jobTitle: "Senior Full Stack Developer", location: { city: "Beijing", state: "Beijing", country: "China", }, }, { id: uuidv4(), name: "Jorge Veronique", img: "https://avatars3.githubusercontent.com/u/59569596?s=460&u=afdf6a5866ed55179fa52663f6c0d6c380e049b4&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/jorge-veronique-981a0753/", github: "https://github.com/jorgey1", }, jobTitle: "Software Engineer", location: { city: "Perivale", state: "London", country: "United Kingdom", }, }, { id: uuidv4(), name: "Hassan Zain", img: "http://hassanzain.com/images/pic00.jpg", links: { website: "http://hassanzain.com/", linkedin: "https://www.linkedin.com/in/hassan-zain-delgadillo-b2056156/", github: "https://github.com/hassanzd", }, jobTitle: "Software Developer", location: { city: "Torreon", state: "Coahuila", country: "Mexico", }, }, { id: uuidv4(), name: "HanQiao(Claire) Li", img: "https://www.dropbox.com/s/ucb3lqrrbrp2wd0/HanQiao.JPG?dl=0", links: { website: "hanqiaoli.com", linkedin: "https://www.linkedin.com/in/claire-li-98739113b/", github: "https://github.com/clairehq", }, jobTitle: "Front-End Developer", location: { city: "Vancouver,Beijing", state: "BC", country: "Canada, China", }, }, { id: uuidv4(), name: "Faizan Qazi", img: "https://drive.google.com/file/d/1SCvbLjEEMXRP8erjEmMe2wqoVoI3zB9M/view?usp=drivesdk", links: { website: "http://caxefaizan.pythonanywhere.com", linkedin: "https://www.linkedin.com/in/caxefaizan/", github: "https://github.com/caxefaizan", }, jobTitle: "Python Developer|Full Stack Developer|Embedded IoT Developer", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Jordan Stanway", img: "https://res.cloudinary.com/mtninja/image/upload/v1587576167/js-cropped_all9eg.jpg", links: { website: "https://jordanstanway.com", linkedin: "https://www.linkedin.com/in/jordanstanway/", github: "https://github.com/jpstanway", }, jobTitle: "Full Stack React Developer", location: { city: "Vancouver", state: "BC", country: "Canada", }, }, { id: uuidv4(), name: "Jeremy Ng Cheng Hin", img: "https://tinyurl.com/ybjym5dm", links: { website: "", linkedin: "https://www.linkedin.com/in/jeremy-n-5b76aa105/", github: "https://github.com/jnch009", }, jobTitle: "Web Developer", location: { city: "Coquitlam", state: "BC", country: "Canada", }, }, { id: uuidv4(), name: "Denis Tita", img: "https://ibb.co/JjhcPhW", links: { website: "http://denistita.com/", linkedin: "https://www.linkedin.com/in/denis-tita-43a705197/", github: "https://github.com/denistita", }, jobTitle: "Software Developer", location: { city: "Caseyville", state: "Illinois", country: "USA", }, }, { id: uuidv4(), name: "JP Sainsbury", img: "https://avatars2.githubusercontent.com/u/32621022?s=460&u=2a90e6617060f57a08795e5f97f7fd69c9251809&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/jp-sainsbury-3a59158a/", github: "https://github.com/jpsains", }, jobTitle: "Web Developer", location: { city: "London", state: "", country: "England", }, }, { id: uuidv4(), name: "Magesh Sundar G", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/magesh-sundar-965ba2190", github: "https://github.com/MageshSundarG", }, jobTitle: "Python Developer|Data Scientist|Full Stack Developer", location: { city: "Chennai", state: "Tamilnadu", country: "india", }, }, { id: uuidv4(), name: "Pranav Sood", img: "https://secureservercdn.net/198.71.233.44/gpo.7bd.myftpupload.com/wp-content/uploads/2019/10/DSC_0576-copy.jpg", links: { website: "http://prnvsood.com/", linkedin: "https://www.linkedin.com/in/pranav-sood-3a9095a3/", github: "https://github.com/prnv06", }, jobTitle: "Product Manager| Designer| Full Stack Developer", location: { city: "New York", state: "NY", country: "", }, }, { id: uuidv4(), name: "Jonathan Hutnick", img: "https://ibb.co/XZGZLb2", links: { website: "", linkedin: "https://www.linkedin.com/in/jonathanhutnick/", github: "https://github.com/JHutnick", }, jobTitle: "Software Developer | Front-End Developer", location: { city: "New York", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Bhoomi Shah", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/shah-bhoomi/", github: "https://github.com/BShah5", }, jobTitle: "Web Developer | Javascript | Python | Ethereum | Java", location: { city: "Ahmedabad", state: "Gujarat", country: "India", }, }, { id: uuidv4(), name: "Radouane Khiri", img: "https://media-exp1.licdn.com/dms/image/C4D03AQEnRIsnOo8Dpw/profile-displayphoto-shrink_200_200/0?e=1593648000&v=beta&t=60tIarqFukAI7EyJyUKmm-JFTCaqZzK7mFm6JpHvWQQ", links: { website: "https://www.redvanisation.com/", linkedin: "https://www.linkedin.com/in/redvan/", github: "https://github.com/Redvanisation", }, jobTitle: "Full Stack Software Developer", location: { city: "New York", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Mohadip Lama", img: "https://media-exp1.licdn.com/dms/image/C4E03AQFlz-svFCpPKQ/profile-displayphoto-shrink_200_200/0?e=1593648000&v=beta&t=zMv14W_E4c_o_s-rD2IvdBxawOcIgY_GdNapw5weO-I", links: { linkedin: "https://www.linkedin.com/in/mohadip-lama-taveras-961a67140/", github: "https://github.com/mohadip", }, jobTitle: "Web Developer | Javascript | Python | Java", location: { city: "Santo Domingo", state: "Dominican Republic", country: "Dominican Republic", }, }, { id: uuidv4(), name: "Freeda Moore", img: "", links: { website: "https://freedamoore.github.io/", linkedin: "https://www.linkedin.com/in/freeda-moore-389057196/", github: "https://github.com/freedamoore", }, jobTitle: "Front End Developer", location: { city: "Sydney", state: "NSW", country: "Australia", }, }, { id: uuidv4(), name: "Paul Ventura", img: "http://gravatar.com/avatar/1455092cb82281ad79bbbd4da3b07bec", links: { website: "", linkedin: "https://www.linkedin.com/in/christian-paul-ventura", github: "https://github.com/pmventura", }, jobTitle: "Software Engineer", location: { city: "Singapore", state: "Singapore", country: "Singapore", }, }, { id: uuidv4(), name: "Tomas Czarnecki", img: "https://avatars1.githubusercontent.com/u/44222618?s=460&u=cb3a6ed4e892a2d83f17862cc562cb51dce862ce&v=4", links: { website: "https://heiux.com/", linkedin: "linkedin.com/in/tczarnecki/", github: "https://github.com/tomashei", }, jobTitle: "UX Developer", location: { city: "Poznan", state: "Greater Poland", country: "Poland", }, }, { id: uuidv4(), name: "Brittany Anderson", img: "", links: { website: "http://brittany-anderson.com/", linkedin: "https://www.linkedin.com/in/brittany-anderson-b9b835155/", github: "https://github.com/bdb5075", }, jobTitle: "Front End Developer", location: { city: "", state: "Maryland", country: "USA", }, }, { id: uuidv4(), name: "Rexx Samuell", img: "https://avatars3.githubusercontent.com/u/36671895?s=460&v=4", links: { website: "https://rexxanthony.com/", linkedin: "https://www.linkedin.com/in/rexx-anthony-samuell-1282304/", github: "https://github.com/rsamuell", }, jobTitle: "Web Developer", location: { city: "Washington", state: "DC", country: "USA", }, }, { id: uuidv4(), name: "Supratim Sarkar", img: "YOUR_IMG_URL", links: { website: "http://supracodes.pythonanywhere.com/", linkedin: "https://www.linkedin.com/in/supratim-sarkar-3a3299150/", github: "https://github.com/codewithsupra", }, jobTitle: "Data Analyst| Python Developer", location: { city: "MUSCAT", state: "MUSCAT", country: "OMAN", }, }, { id: uuidv4(), name: "Merlin Förster", img: "https://avatars0.githubusercontent.com/u/44608877", links: { website: "merlinfoerster.com", linkedin: "https://www.linkedin.com/in/merlinfoerster/", github: "https://github.com/r3m00n", }, jobTitle: "Full Stack Developer", location: { city: "Hamburg", state: "Hamburg", country: "Germany", }, }, { id: uuidv4(), name: "Aiswarya Sarangi", img: " ", links: { website: " ", linkedin: "https://www.linkedin.com/in/aiswaryasarangi/", github: "https://github.com/aiswarya8110", }, jobTitle: "Front End Developer", location: { city: "Bhubaneswar", state: "Odisha", country: "India", }, }, { id: uuidv4(), name: "Kumar Aditya", img: "https://kumaraditya.herokuapp.com/about/assets/img/profile-img.jpg", links: { website: "https://kumaraditya.herokuapp.com/", linkedin: "https://www.linkedin.com/in/kumar-aditya-77a2b4194/", github: "https://github.com/nnhhiilliisstt", }, jobTitle: "Full stack web developer| Flutter Developer", location: { city: "Gurgaon", state: "Haryana", country: "India", }, }, { id: uuidv4(), name: "Ritika Garg", img: "https://media-exp1.licdn.com/dms/image/C5103AQGED09T7SYrpA/profile-displayphoto-shrink_200_200/0?e=1594252800&v=beta&t=V67IMSqLNYRSW_zZy8aodzZuxPQK1p7SDPwwzzD5Wpo", links: { website: "", linkedin: "https://www.linkedin.com/in/ritika-garg98/", github: "https://github.com/rgarg22", }, jobTitle: "Full Stack Developer", location: { city: "", state: "Punjab", country: "India", }, }, { id: uuidv4(), name: "Edwin Torres", img: "https://avatars3.githubusercontent.com/u/5404833", links: { website: "https://codesandtags.github.io/", linkedin: "https://www.linkedin.com/in/edwintorresdeveloper/", github: "https://github.com/codesandtags", }, jobTitle: "Full Stack Developer", location: { city: "Bogota", state: "Bogota", country: "Colombia", }, }, { id: uuidv4(), name: "Jeremy Curtis", img: "https://avatars1.githubusercontent.com/u/29008729?s=400&u=60465f4a72f31f7fd4c0e0aea7e5b66673f5754a&v=4", links: { website: "", linkedin: "www.linkedin.com/in/jeremy-curtis-29a586185", github: "https://github.com/jcurtis808", }, jobTitle: "Self employed/freelance developer", location: { city: "Chicago", state: "Illinois", country: "USA", }, }, { id: uuidv4(), name: "Michio Hayakawa", img: "https://media-exp1.licdn.com/dms/image/C4D03AQE0hpBDzsfFMg/profile-displayphoto-shrink_200_200/0?e=1594857600&v=beta&t=7L0lsWuedUqgZWMdqirKTYQW8NPV-eCJZ_8MeqRbLH8", links: { website: "http://wwww.hacya.com", linkedin: "https://www.linkedin.com/in/michio-hayakawa-664507/", github: "https://github.com/hacyaman", }, jobTitle: "Software Engineering Manager", location: { city: "Yokohama", state: "Kanagawa", country: "Japan", }, }, { id: uuidv4(), name: "Pawan Ashish Kolhe", img: "https://pawankolhe.com/img/pawankolhe.jpg", links: { website: "https://pawankolhe.com/", linkedin: "https://www.linkedin.com/in/kolhepawan/", github: "https://github.com/PawanKolhe", }, jobTitle: "Front End Developer", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Hemant Kumar Singh", img: "https://avatars3.githubusercontent.com/u/26166716?s=460&u=6663ba6904746ecf7e28b604f0f2a739027ef27e&v=4", links: { website: "https://hs950559.github.io/portfolio", linkedin: "https://www.linkedin.com/in/hkajax", github: "https://github.com/hs950559", }, jobTitle: "Front End Developer, UI Developer, Senior Web Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Andrew Price", img: "https://pbs.twimg.com/profile_images/1018213344698724352/zW_-kGqV_400x400.jpg", links: { website: "https://www.awprice.com/", linkedin: "https://www.linkedin.com/in/loftkey/", github: "https://github.com/loftkey", }, jobTitle: "Developer", location: { city: "Murrieta", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Tai Disla", img: "http://taidisla.com/images/ztmJobBoardPic.jpg", links: { website: "http://taidisla.com/", linkedin: "https://www.linkedin.com/in/tai-disla/", github: "https://github.com/taicedtea", }, jobTitle: "Junior Front End Developer", location: { city: "New York", state: "New York", country: "USA", }, }, { id: uuidv4(), name: "Trejon Stallsworth", img: "https://avatars2.githubusercontent.com/u/50248674?s=460&u=8624e2ac772606d44807f794f59658f7a5664cde&v=4", links: { website: "https://trejon.github.io/TrejonStallsworthPortfolio/", linkedin: "https://www.linkedin.com/in/TrejonStallsworth/", github: "https://github.com/Trejon", }, jobTitle: "Full Stack Developer", location: { city: "Denver", state: "Colorado", country: "USA", }, }, { id: uuidv4(), name: "Arun Surendharan", img: "https://avatars2.githubusercontent.com/u/64095520", links: { website: "", linkedin: "https://www.linkedin.com/in/arun-surendharan-3084a6142/", github: "https://github.com/arun-me", }, jobTitle: "Full Stack Developer", location: { city: "Tirupur", state: "Tamil Nadu", country: "India", }, }, { id: uuidv4(), name: "Paul Marik", img: "https://i.imgur.com/ZazkmQd.jpg", links: { website: "http://marik.tech/", linkedin: "www.linkedin.com/in/paul-marik-web-developer", github: "https://github.com/pmarik", }, jobTitle: "Web Developer", location: { city: "Salt Lake City", state: "Utah", country: "USA", }, }, { id: uuidv4(), name: "Manjil Tamang", img: "https://github.com/manjillama.png", links: { website: "https://manjiltamang.com", linkedin: "http://linkedin.com/in/manjiltamang/", github: "https://github.com/manjillama", }, jobTitle: "Full stack developer", location: { city: "Boudha", state: "Kathmandu", country: "Nepal", }, }, { id: uuidv4(), name: "Ghizlane BOUSKRI", img: "http://ghizlaneb.pythonanywhere.com/about.html", links: { website: "http://ghizlaneb.pythonanywhere.com/index.html", linkedin: "https://www.linkedin.com/in/ghizlane-bouskri-physics/", github: "https://github.com/GhizlaneBOUSKRI", }, jobTitle: "Full stack developer", location: { city: "Düsseldorf", state: "NRW", country: "Germany", }, }, { id: uuidv4(), name: "Nikolay Almazov", img: "https://github.com/nalmazov.png", links: { website: "https://www.linkedin.com/in/nikolay-almazov-10b40892/", linkedin: "https://www.linkedin.com/in/nikolay-almazov-10b40892/", github: "https://github.com/NAlmazov", }, jobTitle: "Product Manager|Consultant|Aspiring Full-Stack Developer", location: { city: "Boston", state: "Massachusetts", country: "USA", }, }, { id: uuidv4(), name: "Enora Lecuyer", img: "https://media-exp1.licdn.com/dms/image/C5603AQHWpzQNlm5yCA/profile-displayphoto-shrink_400_400/0?e=1595462400&v=beta&t=4UssIs_APwAEYyoQaXJ0V6Dfp9SAASPUaYtkc7HbksM", links: { website: "http://www.enoralecuyer.com/", linkedin: "https://www.linkedin.com/in/enoralecuyer1/", github: "https://github.com/enoralecuyer", }, jobTitle: "Front-End Developer", location: { city: "Irvine", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Hunter Vitous", img: "https://github.com/hmvitous.png", links: { website: "", linkedin: "https://www.linkedin.com/in/hunter-vitous-07839a10b/", github: "https://github.com/hmvitous", }, jobTitle: "Full-Stack Developer", location: { city: "Bromma", state: "Stockholm", country: "Sweden", }, }, { id: uuidv4(), name: "Hulya Karakaya", img: "https://twitter.com/hulyakarakayaa/photo", links: { website: "", linkedin: "https://www.linkedin.com/in/hulya-karakaya/", github: "https://github.com/hulyak", }, jobTitle: "Front End Developer", location: { city: "Seattle", state: "Washington", country: "United States", }, }, { id: uuidv4(), name: "Yuchen Zhang", img: "https://avatars2.githubusercontent.com/u/20440998?s=400&u=e8f46d4a07da6a879e167ce152f1a409df566274&v=4", links: { website: "https://seraph-yczhang.github.io/me/", linkedin: "https://www.linkedin.com/in/yuchen-zhang-buffalo/", github: "https://github.com/Seraph-YCZhang", }, jobTitle: "Software Developer", location: { city: "Buffalo", state: "New York", country: "United States", }, }, { id: uuidv4(), name: "Rayyan Saeed", img: "", links: { website: "http://rayyansaeed.info/", linkedin: "https://www.linkedin.com/in/rayyansaeed/", github: "https://github.com/streehawk", }, jobTitle: "Software Developer", location: { city: "Sacramento", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Juan Agustín Morello", img: "https://avatars0.githubusercontent.com/u/32440750?s=460&u=89f48aa8c4b9a6071821b87035bab623c129d990&v=4", links: { website: "https://jamorello.github.io/", linkedin: "https://www.linkedin.com/in/juan-agust%C3%ADn-morello-a46385184/", github: "https://github.com/JAMorello", }, jobTitle: "Programador Junior", location: { city: "Parque Chas", state: "Ciudad de Buenos Aires", country: "Argentina", }, }, { id: uuidv4(), name: "Rudi Bester", img: "http://www.rudibester.co.za/static/assets/images/portfolio_pic.jpeg", links: { website: "http://www.rudibester.co.za", linkedin: "https://www.linkedin.com/in/rudi-bester-a18878199/", github: "https://github.com/rudibester", }, jobTitle: "Software Developer|Aspiring Data Scientist|ML Enthusiast", location: { city: "Cape Town", state: "", country: "South Africa", }, }, { id: uuidv4(), name: "Swati Dixit", img: "https://media-exp1.licdn.com/dms/image/C5103AQH8Fq_1_gRtDg/profile-displayphoto-shrink_200_200/0?e=1596672000&v=beta&t=xOFaNEZNL_sw46ataKaupw7p_KSyuG93Fx_4heZ0-E8 ", links: { website: "", linkedin: "https://www.linkedin.com/in/swati-dixit-458971170", github: "https://github.com/swatiidixit", }, jobTitle: "Software-Developer", location: { city: "Kanpur", state: "Uttar-Pradesh", country: "India", }, }, { id: uuidv4(), name: "Ujjwal Adhikari", img: "https://www.photobox.co.uk/my/photo/full?photo_id=503026919760", links: { website: "", linkedin: "https://www.linkedin.com/in/ujjwal-adhikari-3a946418b/", github: "https://github.com/ujjwal66", }, jobTitle: "Fullstack Developer", location: { city: "Kathmandu", state: "", country: "Nepal", }, }, { id: uuidv4(), name: "Manas Kulkarni", img: "https://manas588.github.io/portfo/static/media/thatsme.755846f5.jpg", links: { website: "https://manas588.github.io/portfo/", linkedin: "https://www.linkedin.com/in/manas-kulkarni-093900162/", github: "https://github.com/Manas588", }, jobTitle: "Web Developer", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Gain John", img: "https://avatars1.githubusercontent.com/u/46064597?s=460&u=a8251d1212695511856806c3f7bf53aacd1a2f3c&v=4", links: { website: "http://hoxnox.herokuapp.com/Dhaxor123/940/", linkedin: "https://www.linkedin.com/gain-john", github: "https://github.com/dhaxor", }, jobTitle: "Fullstack Developer", location: { city: "Portharcourt", state: "Rivers", country: "Nigeria", }, }, { id: uuidv4(), name: "Fems Seimiekumo Solomon", img: "https://web.facebook.com/sliem.king?fref=nf&__tn__=%2Cdm-R-R&eid=ARAVNoKmbEtR3Z4Aj1FRtMPaJtgESkWxhjCIWxfn_xFZ-EFOaTK4ylSRp_aIC1knDLZAtdPvtRwlk9Jk", links: { website: "", linkedin: "https://www.linkedin.com/in/seimiekumo-solomon-fems-4a3aa884/", github: "https://github.com/sliemking", }, jobTitle: "Fullstack Developer", location: { city: "Yenagoa", state: "State", country: "Nigeria", }, }, { id: uuidv4(), name: "Rallapalli Goutham Deekshith", img: "https://avatars3.githubusercontent.com/u/41180415?s=400&u=55c6c1cfd7c6c1850b0ba35296ff2834f395dd31&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/rgdeekshith/", github: "https://github.com/rgdeekshith", }, jobTitle: "Data Science | Machine Learning | Web Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Darryl Nicerio", img: "https://avatars1.githubusercontent.com/u/61145387?s=460&u=840fe501089042eb921600d6f3a0ac89ce972bae&v=4", links: { website: "https://dnicerio.github.io/", linkedin: "https://www.linkedin.com/in/darrylnicerio/", github: "https://github.com/dnicerio", }, jobTitle: "Front-End Web Developer", location: { city: "Pasay", state: "Metro Manila", country: "Philippines", }, }, { id: uuidv4(), name: "Vishal M", img: "https://ibb.co/6rHxHqQ", links: { website: "", linkedin: "https://www.linkedin.com/in/vishal-m-2436b018b/", github: "https://github.com/VishalM23", }, jobTitle: "Deep Learning Enthusisast", location: { city: "Bengaluru", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Rakshit Kumar", img: "https://twitter.com/spctr01/photo", links: { website: "", linkedin: "https://www.linkedin.com/in/rakshit-kumar-52b040165/", github: "https://github.com/spctr01", }, jobTitle: "Data Scientist | ML Engineer", location: { city: "Chandigarh", state: "", country: "India", }, }, { id: uuidv4(), name: "Shahnewaj Maksud Shoumikh", img: "https://www.facebook.com/photo.php?fbid=2423741161054065&set=picfp.100002546150649&type=3&theater", links: { website: "", linkedin: "https://www.linkedin.com/in/shahnewaj-maksud-shoumikh-376655108/", github: "https://github.com/Shoumikh", }, jobTitle: " Front-End Developer ", location: { city: "Dhaka", state: "", country: "Bangladesh", }, }, { id: uuidv4(), name: "Sudhip Chandra", img: "", links: { website: "http://sudhip.pythonanywhere.com/", linkedin: "https://www.linkedin.com/in/sudhip", github: "https://github.com/Sudhip007", }, jobTitle: " Python Developer ", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Tajib Smajlovic", img: "https://avatars1.githubusercontent.com/u/34982684?s=460&u=352a6e389d1a8c546bfe2e75ffd268fd1a8ada5f&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/tajibsmajlovic/", github: "https://github.com/TajibSmajlovic", }, jobTitle: "Software Engineer", location: { city: "Sarajevo", state: "Federation of Bosnia and Herzegovina", country: "Bosnia and Herzegovina", }, }, { id: uuidv4(), name: "Kevin Wang", img: "https://www.kevinwang.space/avatar.jpeg", links: { website: "https://kevinwang.space/", linkedin: "https://www.linkedin.com/in/huanxiangwang/", github: "https://github.com/kevinmore", }, jobTitle: "Game Engine Developer", location: { city: "London", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Laura Laane", img: "https://avatars2.githubusercontent.com/u/60161430?s=400&u=73a0e0fad959e40eabc836d558384f76e18174cf&v=4", links: { website: "http://www.lalaane.com/", linkedin: "https://www.linkedin.com/in/laura-laane/", github: "https://github.com/lalaane", }, jobTitle: "Web Developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Ganesh Mali", img: " ", links: { website: "", linkedin: "https://www.linkedin.com/in/ganesh-mali-77aab6137/", github: "https://github.com/Ganesh-mali", }, jobTitle: " Software Developer ", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Bianca Goncalves", img: "", links: { website: "https://biancascode.com/", linkedin: "https://www.linkedin.com/in/bianca-goncalves-247a301a5/", github: "https://github.com/biancadevelop", }, jobTitle: "Front-End Developer", location: { city: "Henderson", state: "Nevada", country: "United States", }, }, { id: uuidv4(), name: "Adwiteeya", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/adwiteeya/", github: "https://github.com/adwiteeya3", }, jobTitle: "Software Developer", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Gyanendra Knojiya", img: "https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR6mgU_w1eipap7G0A4UcaEFH2yxnBfk5uaQj0d3EhF2y_qn185fkzi49yx&usqp=CAU&ec=45673586", links: { website: "https://gyanendraknojiya.github.io", linkedin: "https://www.linkedin.com/in/gyanendraknojiya/", github: "https://github.com/gyanendraknojiya", }, jobTitle: "Full-Stack Web Developer", location: { city: "Lucknow", state: "Uttar Pradesh", country: "India", }, }, { id: uuidv4(), name: "Krisha Shah", img: "https://i.imgur.com/OC2vLem.jpg", links: { website: "https://krishashah911.github.io/krisha-portfo/", linkedin: "https://www.linkedin.com/in/krisha-shah-0974bb18b/", github: "https://github.com/krishashah911", }, jobTitle: "Data Analyst", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Tony Duong", img: "https://avatars1.githubusercontent.com/u/10689662?s=460&u=af55363956173397926612bae05066d272232ccc&v=4", links: { website: "http://frenchytony.net", linkedin: "https://www.linkedin.com/in/nytochin/", github: "https://github.com/tonystrawberry", }, jobTitle: "Full Stack Web Developer", location: { city: "Tokyo", state: "", country: "Japan", }, }, { id: uuidv4(), name: "M MOSTAGIR BHUIYAN", img: "", links: { website: "", linkedin: "https://linkedin.com/in/mmostagirbhuiyan", github: "https://github.com/mmostagirbhuiyan", }, jobTitle: "Sr. DevOps Engineer | Full Stack Web Developer | Sr. React Developer| Python | Java", location: { city: "New York City", state: "NY", country: "USA", }, }, { id: uuidv4(), name: "Nihal Ramteke", img: "", links: { linkedin: "https://www.linkedin.com/in/nihal-ramteke", github: "https://github.com/ramtekenihal", }, jobTitle: "Python Developer | Javascript | Data Scientist | HTML", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Saurabh Khaparey", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/saurabh-khaparey", github: "https://github.com/Saurabh2699", }, jobTitle: "MERN Stack Developer", location: { city: "Nagpur", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Samuel Solomon", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/samjsolomon", github: "https://github.com/samjsolomon", }, jobTitle: "Python Developer", location: { city: "Orlando", state: "Florida", country: "United States", }, }, { id: uuidv4(), name: "Ravi kumar Singh", img: "", links: { website: "", linkedin: "", github: "https://github.com/raviraka", }, jobTitle: "Web Developer", location: { city: "Milan", state: "", country: "Italy", }, }, { id: uuidv4(), name: "Sparsh Chadha", img: "", links: { website: "https://sparsh0427.github.io/Portfolio/", linkedin: "https://www.linkedin.com/in/sparsh-chadha-601b1516b", github: "https://github.com/sparsh0427/", }, jobTitle: "Full Stack Developer | Java Developer | ML Enthusiast", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Yury Hrytsuk", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/yury-hrytsuk-70335a15a/", github: "https://github.com/Jurek33", }, jobTitle: "JavaScript Developer", location: { city: "Miami", state: "Florida", country: "United States", }, }, { id: uuidv4(), name: "Sacha Bogaers", img: "https://avatars0.githubusercontent.com/u/48031121?s=400&u=469845ae94d776cbb1038eb6045b70c5388bf0a1&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/sacha-bogaers/", github: "https://github.com/SachaBog", }, jobTitle: "Junior Web Developer", location: { city: "Tilburg", state: "Noord-Brabant", country: "The Netherlands", }, }, { id: uuidv4(), name: "Rares Sandu", img: "https://avatars3.githubusercontent.com/u/59281487?s=400&u=ed6e2f43fffde34964b8ae73a3fdaacd1d7516f7&v=4", links: { website: "https://raressanduconstantin.github.io/modern_portfolio/index.html", linkedin: "https://www.linkedin.com/in/rares-sandu/", github: "https://github.com/RaresSanduConstantin", }, jobTitle: "Front-end web development", location: { city: "Bucharest", state: "", country: "Romania", }, }, { id: uuidv4(), name: "Michael Wang", img: "https://avatars0.githubusercontent.com/u/51487671?s=460&u=08ece0fce8b834cc44c18322191e9b7a80ab070c&v=4", links: { website: "http://michaelwang.herokuapp.com/", linkedin: "https://www.linkedin.com/in/michael-wang-dev/", github: "https://github.com/mwGHburger", }, jobTitle: "Junior Full-Stack Developer", location: { city: "Melbourne", state: "Victoria", country: "Australia", }, }, { id: uuidv4(), name: "Muhammad Haroon Saad", img: "https://user-images.githubusercontent.com/49754541/83527701-91ecff80-a501-11ea-8e91-2a702c534d81.jpeg", links: { website: "https://haroonsaad247622.github.io/HarrySalts/", linkedin: "www.linkedin.com/in/muhammad-haroon-saad-7b58bb1a9", github: "https://github.com/Haroonsaad247622", }, jobTitle: "Full-Stack Developer", location: { city: "Bahawalpur", state: "Punjab", country: "Pakistan", }, }, { id: uuidv4(), name: "Mehdi E.Manioui", img: "https://i.ibb.co/zPFG407/Photo.jpg", links: { website: "https://www.strengthauthority.com/", linkedin: "https://www.linkedin.com/in/mehdi-e-m-2a4826121/", github: "https://github.com/eemanioui", }, jobTitle: "Full Stack Web Developer", location: { city: "Winnipeg", state: "Manitoba", country: "Canada", }, }, { id: uuidv4(), name: "Anouar Chlih", img: "https://cdn.pixabay.com/photo/2015/02/24/15/41/dog-647528_960_720.jpg", links: { website: "https://anouar-chlih.github.io/Background-generator/", linkedin: "https://fr.linkedin.com/", github: "https://github.com/Anouar-chlih", }, jobtitle: "Mobile developer", location: { city: "Essawira", state: "Ariha", country: "Morocco", }, }, { id: uuidv4(), name: "Sheldon Hooper", img: "https://photos.app.goo.gl/6cnfe2rBfuLFBKgG7", links: { website: "", linkedin: "https://www.linkedin.com/in/sheldon-hooper-626822144/", github: "https://github.com/SheldonEHooper", }, jobTitle: "Freelance Developer", location: { city: "Hoedspruit", state: "Limpopo", country: "South Africa", }, }, { id: uuidv4(), name: "Tomas Bruzza", img: "https://imgur.com/7fXrIpF", links: { website: "tomasbruzza.github.io/portfolio/", linkedin: "https://www.linkedin.com/in/tomasbruzza/", github: "https://github.com/tomasbruzza", }, jobTitle: "Full Stack Developer", location: { city: "", state: "Buenos Aires", country: "Argentina", }, }, { id: uuidv4(), name: "Ethan Glover", img: "https://avatars1.githubusercontent.com/u/3924176?s=460&u=23f3b383da434df5ef9089dfc8927bbc90b305aa", links: { website: "", linkedin: "https://www.linkedin.com/in/ethan-glover/", github: "https://github.com/eglove", }, jobTitle: "Full Stack Developer", location: { city: "St. Louis", state: "Missouri", country: "United States", }, }, { id: uuidv4(), name: "Avinash Konduri", img: "https://photos.app.goo.gl/zsQLi8tGzhH6Mwvt5", links: { website: "https://avinashkonduri.github.io/PersonalSite/", linkedin: "https://www.linkedin.com/in/avinash-konduri-b212a711/", github: "https://github.com/avinashkonduri", }, jobTitle: "Fullstack Developer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Fabamise Adeolu", img: "https://media-exp1.licdn.com/dms/image/C4D03AQGeVAbG5dykXQ/profile-displayphoto-shrink_200_200/0?e=1599091200&v=beta&t=LYZI7zb6whWYZrhELQPiZJnR_pNEk9Q2C0x1NlclGNk", links: { website: "http://www.bamz.xyz/", linkedin: "https://www.linkedin.com/in/adeoluwa-fabamise-46a694198/", github: "https://github.com/Bamz-west", }, jobTitle: "Full-stack Developer", location: { city: "Lagos", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Ashu Gupta", img: "https://drive.google.com/file/d/1gOHtYkdHgW4PMjzKlny95GfNe3h8ZEfO/view?usp=sharing", links: { website: "https://ashugupta.tech", linkedin: "https://www.linkedin.com/in/ashugupta/", github: "https://github.com/ashu10832", }, jobTitle: "Software Developer", location: { city: "New Delhi", state: "Delhi", country: "India", }, }, { id: uuidv4(), name: "Yaman Mando", img: "https://i.ibb.co/HHs5HYV/yaman.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/yaman-mando/", github: "https://github.com/yaman-mando", }, jobTitle: "Frontend And Mobile Developer,Ionic,Angular,React js", location: { city: "Istanbul", state: "", country: "Turkey", }, }, { id: uuidv4(), name: "Gabriel Seals", img: "https://avatars3.githubusercontent.com/u/52087296?s=400&u=a7e20c9f1d334651a8c2458314cbd6a260ea549c&v=4", links: { website: "https://gabrielseals.com/", linkedin: "https://www.linkedin.com/in/gabeseals", github: "https://github.com/gseals", }, jobTitle: "Full-Stack Software and Web Developer", location: { city: "Nashville", state: "Tennessee", country: "United States", }, }, { id: uuidv4(), name: "Trenisha Goslee", img: "https://ibb.co/vzRXC7W", links: { website: "https://www.trenishagoslee.com/", linkedin: "https://www.linkedin.com/in/trenisha-goslee-92769358/", github: "https://github.com/tgoslee", }, jobTitle: "Front End Web Developer", location: { city: "Washington", state: "D.C", country: "USA", }, }, { id: uuidv4(), name: "Atabany", img: "https://i.ibb.co/gWNVrMz/img5.jpg", links: { website: "", linkedin: "https://www.linkedin.com/in/moelatabany/", github: "https://github.com/Atabany", }, jobTitle: "iOS Developer | Swift | JS", location: { city: "Mansoura", state: "Mansoura", country: "Egypt", }, }, { id: uuidv4(), name: "Ashutosh Dwivedi", img: "https://avatars0.githubusercontent.com/u/42907572?s=460&u=3c5c03fdddeec2483819b845bd549616d48b71e5&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/ashutosh-dwivedi-b3025b196/", github: "https://github.com/Ashutosh00710", }, jobTitle: "Full Stack Developer", location: { city: "Lucknow", state: "Uttar Pradesh", country: "India", }, }, { id: uuidv4(), name: "Micah Effiong", img: "https://media-exp1.licdn.com/dms/image/C4E03AQHiXqHMZKJO2w/profile-displayphoto-shrink_200_200/0?e=1599091200&v=beta&t=AP3H6fvEkCKlCV1fNyBFWU3Wws_iR4Et9g3_ijo7-Sk", links: { website: "", linkedin: "https://ng.linkedin.com/in/micaiah-effiong", github: "https://github.com/micaiah-effiong", }, jobTitle: "Web-Developer | NodeJs", location: { city: "Uyo", state: "Akwa Ibom", country: "Nigeria", }, }, { id: uuidv4(), name: "M Ebraheem Ijaz", img: "https://portfolioebraheem.herokuapp.com/assets/img/testimonial-2.jpg", links: { website: "https://portfolioebraheem.herokuapp.com/portfolio", linkedin: "https://www.linkedin.com/in/ebraheem-ijaz-0a685a122/", github: "https://github.com/ebraheemijaz/", }, jobTitle: "MERN Stack Developer", location: { city: "ISLAMABAD", state: "Pakistan", country: "Pakistan", }, }, { id: uuidv4(), name: "Jon Hualde", img: "https://i.ibb.co/gzjZ6rF/Jon-3.png", links: { website: "https://jonhualde.github.io/", linkedin: "https://www.linkedin.com/in/jonhualde/?locale=en_US", github: "https://github.com/JonHualde", }, jobTitle: "Front end developer", location: { city: "London", state: "England", country: "United Kingdom", }, }, { id: uuidv4(), name: "Ali Mirmohammad", img: "https://media-exp1.licdn.com/dms/image/C4E03AQHa_p4Z5ChE2Q/profile-displayphoto-shrink_200_200/0?e=1594857600&v=beta&t=94ZUHVReFbMjOaLIF5oQRHsra0RD-qo0snMVkf8P84s", links: { website: "", linkedin: "https://www.linkedin.com/in/ali-mirmohammad-786640158/", github: "https://github.com/alimirmohammad", }, jobTitle: "Web Developer", location: { city: "Tehran", state: "Tehran", country: "Iran", }, }, { id: uuidv4(), name: "Oluwakeye John", img: "https://avatars1.githubusercontent.com/u/43508135?s=460&u=a4a7dd9c9e899b7e1856d6ef92f9719b77529ee8&v=4", links: { website: "https://oluwakeyejohn.netlify.app", linkedin: "https://www.linkedin.com/in/oluwakeye-john-1706/", github: "https://github.com/oluwakeye-john", }, jobTitle: "Full Stack Web Developer", location: { city: "Ibadan", state: "Oyo", country: "Nigeria", }, }, { id: uuidv4(), name: "Ivan(Yufei) Zhang", img: "https://avatars3.githubusercontent.com/u/32757827?s=460&u=afc7ac52aaf0e238a419186f1124b03f4aa701cf&v=4", links: { website: "https://www.yufeiz.com", linkedin: "https://www.linkedin.com/in/yufeiz222", github: "https://github.com/YufeiZhang2", }, jobTitle: "Junior Software Developer", location: { city: "Sydney", state: "NSW", country: "Australia", }, }, { id: uuidv4(), name: "Yap Feng Yuan", img: "https://avatars0.githubusercontent.com/u/58755531?s=400&u=8048ff4f4351073924c113545dc1893d1db35a48&v=4", links: { website: "https://clever-joliot-d7cbd7.netlify.app", linkedin: "https://www.linkedin.com/in/fengyuan-yap-489b7b126/", github: "https://github.com/TheKinng96", }, jobTitle: "Frontend Developer", location: { city: "Komae", state: "Tokyo", country: "Japan", }, }, { id: uuidv4(), name: "Hung Nguyen", img: "https://avatars3.githubusercontent.com/u/33242351?s=400&v=4", links: { website: "https://hungapp.github.io/", linkedin: "https://www.linkedin.com/in/hung-viet-nguyen/", github: "https://github.com/hungapp", }, jobTitle: "Full Stack Engineer", location: { city: "Boston", state: "Massachusetts", country: "United States", }, }, { id: uuidv4(), name: "Ibrahim Satria", img: "https://avatars1.githubusercontent.com/u/49900199?s=460&u=4746331f3f58fdd1aea38ff6187cee90e1fe331e&v=4", links: { website: "https://ibrahimsatria.xyz/", linkedin: "https://www.linkedin.com/in/ibrahim-satria-56a779185/", github: "https://github.com/shipdyded", }, jobTitle: "Full Stack Web Developer", location: { city: "", state: "Bandar Seri Begawan", country: "Brunei Darussalam", }, }, { id: uuidv4(), name: "Aaron Cloet", img: "https://avatars1.githubusercontent.com/u/35313651?s=460&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/aaron-cloet-9972b9152/", github: "https://github.com/acloet22", }, jobTitle: "Freelance software Developer(searching for fulltime employment)", location: { city: "Omaha", state: "Nebraska", country: "United States", }, }, { id: uuidv4(), name: "Navneet Raju", img: "http://drive.google.com/uc?export=view&id=1PEFgITzJir2A9G-NVzbUEcJFgFp25Gqw", links: { website: "navneetraju66.github.io", linkedin: "https://www.linkedin.com/in/navneet-raju-4a07b87b/", github: "https://github.com/navneetraju66", }, jobTitle: "Research Intern and Mentor", location: { city: "Bengaluru", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Arun kumar Singh", img: "https://avatars1.githubusercontent.com/u/32652525?s=460&u=f39b4425e04cd21fa7ccde150424931f08b5e2a3&v=4", links: { website: "https://arunsinghsnd.netlify.app/", linkedin: "https://www.linkedin.com/in/arun-singh1999/", github: "https://www.linkedin.com/in/arun-singh1999/", }, jobTitle: "Full-Stack Developer", location: { city: "Dhanbad", state: "Jharkhand", country: "India", }, }, { id: uuidv4(), name: "Aniket Chauhan", img: "https://avatars0.githubusercontent.com/u/43927184?s=460&u=8fb16f130dd0c6f19e35d0c8295adc9bf6b5ff5a&v=4", links: { website: "https://www.nickapic.com/", linkedin: "https://www.linkedin.com/in/aniket-chauhan-09642536/", github: "https://github.com/nickapic", }, jobTitle: "Full Stack Developer", location: { city: "Kaunas", state: "", country: "Lithuania", }, }, { id: uuidv4(), name: "Abdulfatai Suleiman", img: "", links: { website: "https://iamnotstatic.github.io/", linkedin: "https://www.linkedin.com/in/abdulfatai-suleiman-706ba6172/", github: "https://github.com/iamnotstatic", }, jobTitle: "Software Developer", location: { city: "De-Dei", state: "Abuja", country: "Nigeria", }, }, { id: uuidv4(), name: "Rubén Morera", img: "https://media-exp1.licdn.com/dms/image/C4E03AQHTHn2eJQRR8Q/profile-displayphoto-shrink_200_200/0?e=1596067200&v=beta&t=WgyQRo6xEuuKzXuou9kOytIkSIrvFJA5rlTsB7w7K84", links: { website: "", linkedin: "https://www.linkedin.com/in/rubenmorera/", github: "https://gitlab.com/Ruben-1", }, jobTitle: "Software Engineer/Developer", location: { city: "San Francisco Bay Area", state: "CA", country: "USA", }, }, { id: uuidv4(), name: "Morgan King", img: "https://avatars1.githubusercontent.com/u/61506669?s=460&v=4", links: { website: "http://moki929.space/", linkedin: "https://www.linkedin.com/in/morganaking/", github: "https://github.com/moki929", }, jobTitle: "Web Developer", location: { city: "Atlanta", state: "Georgia", country: "USA", }, }, { id: uuidv4(), name: "Pradip Mudi", img: "https://www.google.com/url?sa=i&url=https%3A%2F%2Fin.linkedin.com%2Fin%2Fpradip-mudi-5a418b8a&psig=AOvVaw0adVK0FIvuqlrFReHDMBhD&ust=1590227599502000&source=images&cd=vfe&ved=0CAIQjRxqFwoTCMDBkMuZx-kCFQAAAAAdAAAAABAJ", links: { website: "", linkedin: "https://www.linkedin.com/in/pradip-mudi-5a418b8a/", github: "https://github.com/pradipmudi", }, jobTitle: "Software Engineer", location: { city: "Hyderabad", state: "Telangana", country: "India", }, }, { id: uuidv4(), name: "Jasper Beachy", img: "https://www.dropbox.com/s/wurudmom8pqqgwu/20190312_171808.jpg?dl=0", links: { website: "https://jasperbeachy.now.sh/", linkedin: "https://www.linkedin.com/in/jasperbeachy/", github: "https://github.com/jbeachy21", }, jobTitle: "Front-end web developer", location: { city: "Minneapolis", state: "MN", country: "USA", }, }, { id: uuidv4(), name: "Kristy Bell", img: "https://avatars0.githubusercontent.com/u/50686838?v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/kristy-bell", github: "https://github.com/kristybell", }, jobTitle: "Data Scientist/Machine Learning Engineer", location: { city: "New York", state: "New York", country: "United States of America", }, }, { id: uuidv4(), name: "Shezray Mirza", img: "https://avatars0.githubusercontent.com/u/64660355?s=400&u=9779a089808eb25ab0261354efb8aacb410b27d7&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/shezray/", github: "https://github.com/shezray/", }, jobTitle: "Front-End Developer", location: { city: "Chicago", state: "IL", country: "USA", }, }, { id: uuidv4(), name: "Jeff Landers", img: "http://jlanders12.pythonanywhere.com/static/images/profile3.jpg", links: { website: "http://jlanders12.pythonanywhere.com/", linkedin: "", github: "https://github.com/j994", }, jobTitle: "Full-Stack Web Developer", location: { city: "", state: "", country: "USA/Belgium", }, }, { id: uuidv4(), name: "Jay Prakash Kalia", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/jay-prakash-1a0235154/", github: "https://github.com/JAYKALIA007", }, jobTitle: "Full-Stack Developer | Software Engineer", location: { city: "Bhubaneshwar", state: "Odisha", country: "India", }, }, { id: uuidv4(), name: "Haoli Yang", img: "https://media-exp1.licdn.com/dms/image/C4D03AQFoZs5Ko4iTaw/profile-displayphoto-shrink_800_800/0?e=1596067200&v=beta&t=8OtfU2QeNkrabcPgm7_JmfeAXPB4HraSTUM_F4gxRe0", links: { website: "https://hyang77.github.io/Haoli_portfolio/", linkedin: "https://www.linkedin.com/in/haoliyang0312/", github: "https://github.com/hyang77/", }, jobTitle: "Front-End Developer", location: { city: "Chicago", state: "Illinois", country: "United States", }, }, { id: uuidv4(), name: "Ankitha C", img: "", links: { website: "https://ankithac.github.io//", linkedin: "https://www.linkedin.com/in/ankitha-chowlur-0a47821a4/", github: "https://github.com/ankithac", }, jobTitle: "Full Stack Web Developer", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Magnus Cromwell", img: "https://media-exp1.licdn.com/dms/image/C4E03AQHfmQq52tuq1w/profile-displayphoto-shrink_400_400/0?e=1596672000&v=beta&t=IxTdhudi0BkJSyUw3ms2Jx2iNQ2WbTzEFgT4cPsT6-Ig", links: { website: "https://magnus-cromwell-portfolio1.herokuapp.com/", linkedin: "https://www.linkedin.com/in/magnus-cromwell-517b59191/", github: "https://github.com/magpiet", }, jobTitle: "Web Developer", location: { city: "San Antonio", state: "Texas", country: "United States of America", }, }, { id: uuidv4(), name: "Priyanka Wankhade", img: "https://drive.google.com/file/d/1f7T8c0nMzGTED24jdh6OPIHpp31Sg_HQ/view?usp=sharing", links: { website: "", linkedin: "https://www.linkedin.com/in/priyanka-wankhade-277134155", github: "https://github.com/pgwankhade", }, jobTitle: "Full-Stack Web Developer", location: { city: "Pune", state: "Maharashtra", country: "INDIA", }, }, { id: uuidv4(), name: "Ilija", img: "https://avatars0.githubusercontent.com/u/26030847?s=400&u=d064ec65c22d0200ed1a674b6ae152d1e34b5fe2&v=4", links: { website: "https://ilija03.tk/", linkedin: "https://www.linkedin.com/in/ilija-savic-03/", github: "https://github.com/Archaeologist03", }, jobTitle: "JavaScript | React Developer", location: { city: "", state: "", country: "Serbia", }, }, { id: uuidv4(), name: "Savvas Giannoukas", img: "https://avatars1.githubusercontent.com/u/28651112?s=400&u=05e78471150e7d1cd2561cc88fb67f026768628c&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/savvas-giannoukas-824b2a138/", github: "https://github.com/savvasg35", }, jobTitle: "Full Stack Developer", location: { city: "Rhodes", state: "", country: "Greece", }, }, { id: uuidv4(), name: "Nicholas Markus", img: "https://avatars3.githubusercontent.com/u/21057939?s=400&u=2495152160f48382892b4772a57ccf97be7e5e3f&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/nicholas-chun-markus-0b0136a2/", github: "https://github.com/nicxzmiller", }, jobTitle: "UI Designer | Frontend Developer", location: { city: "Valletta", state: "Malta", country: "Malta", }, }, { id: uuidv4(), name: "Mayuresh Zende", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/mayuresh-zende", github: "https://github.com/mayureshzende/", }, jobTitle: "Full Stack Developer", location: { city: "pune", state: "Maharastra", country: "India", }, }, { id: uuidv4(), name: "SAINITHIN.ARTHAM", img: "https://photos.google.com/photo/AF1QipOSrma-fypcHtEVq67ajFBi-wpQrWfGqNqcW2by", links: { website: "https://sainithin-bit.github.io/Sainitin/", linkedin: "https://www.linkedin.com/in/sainithin-artham-735241164/", github: "https://github.com/Sainithin-bit", }, jobTitle: "Full-Stack JavaScript Dev", location: { city: "Gurgaon", state: "Haryana", country: "INDIA", }, }, { id: uuidv4(), name: "Jake Heath", img: "https://www.facebook.com/photo.php?fbid=939401296422295&set=a.119026958459737&type=3&theater", links: { website: "", linkedin: "https://www.linkedin.com/in/jake-heath-0b38aa196/", github: "https://github.com/jakedheath123", }, jobTitle: "Junior Full Stack Developer | Northcoders Graduate", location: { city: "Leeds", state: "", country: "United Kingdom", }, }, { id: uuidv4(), name: "Necula Andra Gabriela", img: "https://avatars1.githubusercontent.com/u/37038210?s=460&u=6b75e01966e1e0fc7a885859c169e4ebd81ed800&v=4", links: { website: "https://dummy-andra.github.io/index.html", linkedin: "https://www.linkedin.com/in/neculaandra/", github: "https://github.com/dummy-andra", }, jobTitle: "DevOps Engineer", location: { city: "Bucharest", state: "Bucharest", country: "Romania", }, }, { id: uuidv4(), name: "Jared Morris", img: "https://media-exp1.licdn.com/dms/image/C5603AQHKOVBHLYk9LA/profile-displayphoto-shrink_200_200/0?e=1597881600&v=beta&t=N6Qo17q5r_5DsmaEZrCv53BMraSsQqv_F4jG9MupWWo", links: { website: "https://www.jaredmsoftwares.com/", linkedin: "https://www.linkedin.com/in/jared-morris-b43527b9/", github: "https://github.com/jemraider21", }, jobTitle: "Software Developer", location: { city: "Ellicott City", state: "Maryland", country: "United States", }, }, { id: uuidv4(), name: "MD.Rakibul Hassan", img: "https://www.linkedin.com/in/rakibul-hassan-designer/", links: { website: "http://rakibul.pythonanywhere.com/", linkedin: "https://www.linkedin.com/in/rakibul-hassan-designer/", github: "https://github.com/tanvirakibul", }, jobTitle: "Machine Learning Engineer", location: { city: "Dhaka", state: "", country: "Bangladesh", }, }, { id: uuidv4(), name: "Alabi Muhydeen Olaniyi", img: "https://gitlab.com/uploads/-/system/user/avatar/6062175/avatar.png?width=400", links: { website: "", linkedin: "https://www.linkedin.com/in/alabi-muhydeen-o-46a9348a/", github: "https://github.com/muhydeen95", }, jobTitle: "Jnr Frontend Developer", location: { city: "", state: "Lagos", country: "Nigeria", }, }, { id: uuidv4(), name: "Chuck Baisch", img: "https://avatars2.githubusercontent.com/u/58837693?s=460&u=1256e0355690a3f231594c993d3ee29fd26e5d7c&v=4", links: { website: "https://www.baischdevelopment.com/", linkedin: "https://www.linkedin.com/in/charles-baisch/", github: "https://github.com/Baisch91", }, jobTitle: "Full Stack Web Developer", location: { city: "Orlando", state: "Florida", country: "United States", }, }, { id: uuidv4(), name: "Ismail Ramjean", img: "https://avatars2.githubusercontent.com/u/58746428?v=4", links: { website: "https://thenoobcoderd.github.io/startup-of-the-year/", linkedin: "https://www.linkedin.com/in/ismail-ramjean-9a063018a/", github: "https://github.com/theNoobCoderd", }, jobTitle: "FullStack Developer", location: { city: "-", state: "Savanne", country: "Mauritius", }, }, { id: uuidv4(), name: "Pavan T", img: "https://pavanskipo.com/assets/img/me.png", links: { website: "https://pavanskipo.com/", linkedin: "https://www.linkedin.com/in/pavan-t/", github: "https://github.com/pavanskipo", }, jobTitle: "Software Developer | Aspiring Data Scientist | ML Enthusiast", location: { city: "Chennai", state: "Tamil Nadu", country: "India", }, }, { id: uuidv4(), name: "Wellington Lopes", img: "https://avatars0.githubusercontent.com/u/1489470?s=400&u=8c9776c63520d19541862b8138a188193effb967&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/wellington-lopes-15690/", github: "https://github.com/wellingtonlopes", }, jobTitle: "Web Developer", location: { city: "Manaus", state: "Amazonas", country: "Brazil", }, }, { id: uuidv4(), name: "Ganesh Mali", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/ganesh-mali-77aab6137/", github: "https://github.com/Ganesh-mali", }, jobTitle: "Junior software developer", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Peter Kang", img: "https://avatars1.githubusercontent.com/u/57653839?s=400&u=053fa2d039ab1cac516b05a50e1a0a4cf378f4d2&v=4", links: { website: "https://www.pswk1.com/", linkedin: "https://www.linkedin.com/in/peterswkang/", github: "https://github.com/pswk1", }, jobTitle: "Software Engineer | Web Developer | Javascript Developer", location: { city: "Los Angeles", state: "California", country: "United States", }, }, { id: uuidv4(), name: "Saumya Bhatt", img: "https://saumya-bhatt.github.io/img/profile.jpeg", links: { website: "https://saumya-bhatt.github.io/", linkedin: "https://www.linkedin.com/in/saumya-bhatt-2000/", github: "https://github.com/Saumya-Bhatt", }, jobTitle: "Full Stack Web Developer", location: { city: "Panji", state: "Goa", country: "India", }, }, { id: uuidv4(), name: "Kiran A", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/kiran-anand-6b053513a/", github: "https://github.com/KiranVegeta", }, jobTitle: "Software Developer", location: { city: "Bangalore", state: "Karnataka", country: "India", }, }, { id: uuidv4(), name: "Adam Galek", img: "https://media-exp1.licdn.com/dms/image/C5603AQHgFFiiRJtXiw/profile-displayphoto-shrink_400_400/0?e=1598486400&v=beta&t=e8IPsJSON9zKNJG8A1lgTN0Jt8D347iIA-CasjQGvZE", links: { website: "https://www.adamgalek.ca", linkedin: "https://www.linkedin.com/in/adamgalek/", github: "https://github.com/TheGalekxy", }, jobTitle: "Web Developer", location: { city: "Toronto", state: "Ontario", country: "Canada", }, }, { id: uuidv4(), name: "Riketa Goel", img: "", links: { website: "http://riketagoel.blogspot.com/", linkedin: "https://www.linkedin.com/in/riketagarggoel/", github: "https://github.com/riketag", }, jobTitle: "Freelancer", location: { city: "Mumbai", state: "Maharashtra", country: "India", }, }, { id: uuidv4(), name: "Christine Trant", img: "https://github.com/christinetrant.png", links: { website: "https://www.christinetrant.com/", linkedin: "https://www.linkedin.com/in/christinetrant/", github: "https://github.com/christinetrant", }, jobTitle: "Front End Web Developer", location: { city: "Peckham", state: "London", country: "UK", }, }, { id: uuidv4(), name: "Jallah Sumbo", img: "https://avatars1.githubusercontent.com/u/31574317?s=460&u=9b6f28dcb60fab40e1a5cccb5776ccb19a52dace&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/jallah-sumbo-222b25113/", github: "https://github.com/Sumbo-1", }, jobTitle: "Software Developer | Open Source Enthusiast | Aspiring Data Scientist", location: { city: "Monrovia", state: "Montserrado", country: "Liberia", }, }, { id: uuidv4(), name: "Krunal Mistry", img: "https://avatars3.githubusercontent.com/u/43079622?s=400&u=9e22282eb55d5f10d5c843cb7231c27921541699&v=4", links: { website: "https://kmist1.herokuapp.com/", linkedin: "https://www.linkedin.com/in/krunal-mistry", github: "https://www.bitbucket.org/kmist1/", }, jobTitle: "Full Stack Developer", location: { city: "New Haven", state: "CT", country: "USA", }, }, { id: uuidv4(), name: "Aneta Stojanowska", img: "https://avatars2.githubusercontent.com/u/54153719?v=4", links: { website: "https://aneta.netlify.app/", linkedin: "https://www.linkedin.com/in/stojanowska", github: "https://github.com/aneta-s", }, jobTitle: "Frontend Web Developer", location: { city: "Amsterdam", state: "Noord Holland", country: "The Netherlands", }, }, { id: uuidv4(), name: "Johan Ochoa", img: "https://avatars.githubusercontent.com/andresochoa91", links: { website: "", linkedin: "https://www.linkedin.com/in/jandresochoa91/", github: "https://github.com/andresochoa91", }, jobTitle: "Full Stack Developer", location: { city: "San Francisco", state: "California", country: "USA", }, }, { id: uuidv4(), name: "Rishikesh Mishra", img: "https://avatars1.githubusercontent.com/u/54947439?s=460&u=db1c8d20adbb31328a878cc95e6467135b9ad144&v=4", links: { website: "https://rishikeshmishra.netlify.app/", linkedin: "https://www.linkedin.com/in/rishikesh-mishra-b98a20156/", github: "https://github.com/Rishikesh-12" }, jobTitle: "Frontend Developer", location: { city: "Delhi", state: "", country: "India" } }, { name: "Mirel Bițoi", img: "https://avatars.githubusercontent.com/Ochanissi", links: { website: "https://www.ochanissi.com/", linkedin: "https://www.linkedin.com/in/mirel-bițoi-2a74b217b", github: "https://github.com/Ochanissi", }, jobTitle: "Web Developer", location: { city: "Bucharest", state: "", country: "Romania", }, }, { id: uuidv4(), name: "Andre Derjagin", img: "https://avatars3.githubusercontent.com/u/38507921?s=400&u=e9dad4aee381e105510cb01ff6957e8dd054f148&v=4", links: { website: "", linkedin: "https://www.linkedin.com/in/andre-derjagin-94b0271a6/", github: "https://github.com/ExziiL" }, jobTitle: "Junior Web Developer", location: { city: "Bamberg", state: "Bayern", country: "Germany" } }, { id: uuidv4(), name: "Thomas Hooper", img: "https://avatars3.githubusercontent.com/u/28743134?s=400&u=ea2b9ed5ceb33c82e176869bca455e84748f4c25&v=4", links: { website: "https://tomhoopermedia.netlify.app/", linkedin: "https://www.linkedin.com/in/tjhooper88/", github: "https://github.com/tjhooper1" }, jobTitle: "Software Developer", location: { city: "Daytona Beach", state: "Fl", country: "USA" } }, { id: uuidv4(), name: "Gobinath", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/gobinath-v-4103201a8", github: "https://github.com/Gobinath24" }, jobTitle: "Junior Web Developer", location: { city: "Udumalpet", state: "Tamilnadu", country: "INDIA" } }, { name: "Abhishek Chaturvedi", img: "", links: { website: "", linkedin: "https://www.linkedin.com/in/abhishek-chaturvedi-6930a49b/", github: "https://github.com/Abhishek9320/my-first-blog.github.io" }, jobTitle: "Software Engineer", location: { city: "Mumbai", state: "Maharashtra", country: "India" } }, ], }
!function(){function e(e){var t=n;e&&(n[e]||(n[e]={}),t=n[e]),t.define&&t.define.packaged||(r.original=t.define,t.define=r,t.define.packaged=!0),t.require&&t.require.packaged||(l.original=t.require,t.require=l,t.require.packaged=!0)}var t="ace",n=function(){return this}();if(n||"undefined"==typeof window||(n=window),t||"undefined"==typeof requirejs){var r=function(e,t,n){"string"==typeof e?(2==arguments.length&&(n=t),r.modules[e]||(r.payloads[e]=n,r.modules[e]=null)):r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};r.modules={},r.payloads={};var s=function(e,t,n){if("string"==typeof t){var i=c(e,t);if(i!=undefined)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],r=0,s=t.length;r<s;++r){var a=c(e,t[r]);if(a==undefined&&l.original)return;o.push(a)}return n&&n.apply(null,o)||!0}},l=function(e,t){var n=s("",e,t);return n==undefined&&l.original?l.original.apply(this,arguments):n},a=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return a(e,n[0])+"!"+a(e,n[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&i!=t;){var i=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},c=function(e,n){n=a(e,n);var t=r.modules[n];if(!t){if("function"==typeof(t=r.payloads[n])){var i={},o={id:n,uri:"",exports:i,packaged:!0};i=t(function(e,t){return s(n,e,t)},i,o)||o.exports,r.modules[n]=i,delete r.payloads[n]}t=r.modules[n]=i||t}return t};e(t)}}(),ace.define("ace/lib/fixoldbrowsers",[],function(){"use strict";"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})}),ace.define("ace/lib/useragent",[],function(e,t){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var n="object"==typeof navigator?navigator:{},i=(/mac|win|linux/i.exec(n.platform)||["other"])[0].toLowerCase(),o=n.userAgent||"",r=n.appName||"";t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==r||0<=r.indexOf("MSAppHost")?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||undefined,t.isChrome=parseFloat(o.split(" Chrome/")[1])||undefined,t.isEdge=parseFloat(o.split(" Edge/")[1])||undefined,t.isAIR=0<=o.indexOf("AdobeAIR"),t.isAndroid=0<=o.indexOf("Android"),t.isChromeOS=0<=o.indexOf(" CrOS "),t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),ace.define("ace/lib/dom",[],function(e,a){"use strict";var t=e("./useragent"),n="http://www.w3.org/1999/xhtml";if(a.buildDom=function h(e,t,n){if("string"==typeof e&&e){var i=document.createTextNode(e);return t&&t.appendChild(i),i}if(!Array.isArray(e))return e&&e.appendChild&&t&&t.appendChild(e),e;if("string"!=typeof e[0]||!e[0]){for(var o=[],r=0;r<e.length;r++){var s=h(e[r],t,n);s&&o.push(s)}return o}var a=document.createElement(e[0]),l=e[1],c=1;l&&"object"==typeof l&&!Array.isArray(l)&&(c=2);for(r=c;r<e.length;r++)h(e[r],a,n);return 2==c&&Object.keys(l).forEach(function(e){var t=l[e];"class"===e?a.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?a[e]=t:"ref"===e?n&&(n[t]=a):null!=t&&a.setAttribute(e,t)}),t&&t.appendChild(a),a},a.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},a.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||n,e):document.createElement(e)},a.removeChildren=function(e){e.innerHTML=""},a.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},a.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},a.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},a.addCssClass=function(e,t){a.hasCssClass(e,t)||(e.className+=" "+t)},a.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},a.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),i=!0;;){var o=n.indexOf(t);if(-1==o)break;i=!1,n.splice(o,1)}return i&&n.push(t),e.className=n.join(" "),i},a.setCssClass=function(e,t,n){n?a.addCssClass(e,t):a.removeCssClass(e,t)},a.hasCssString=function(e,t){var n,i=0;if(n=(t=t||document).querySelectorAll("style"))for(;i<n.length;)if(n[i++].id===e)return!0},a.importCssString=function s(e,t,n){var i=n;n&&n.getRootNode&&(i=n.getRootNode())&&i!=n||(i=document);var o=i.ownerDocument||i;if(t&&a.hasCssString(t,i))return null;t&&(e+="\n/*# sourceURL=ace/css/"+t+" */");var r=a.createElement("style");r.appendChild(o.createTextNode(e)),t&&(r.id=t),i==o&&(i=a.getDocumentHead(o)),i.insertBefore(r,i.firstChild)},a.importCssStylsheet=function(e,t){a.buildDom(["link",{rel:"stylesheet",href:e}],a.getDocumentHead(t))},a.scrollbarWidth=function(e){var t=a.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var n=a.createElement("ace_outer"),i=n.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",n.appendChild(t);var o=e.documentElement;o.appendChild(n);var r=t.offsetWidth;i.overflow="scroll";var s=t.offsetWidth;return r==s&&(s=n.clientWidth),o.removeChild(n),r-s},"undefined"==typeof document&&(a.importCssString=function(){}),a.computedStyle=function(e){return window.getComputedStyle(e,"")||{}},a.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},a.HAS_CSS_ANIMATION=!1,a.HAS_CSS_TRANSFORMS=!1,a.HI_DPI=!t.isWin||"undefined"!=typeof window&&1.5<=window.devicePixelRatio,t.isChromeOS&&(a.HI_DPI=!1),"undefined"!=typeof document){var i=document.createElement("div");a.HI_DPI&&i.style.transform!==undefined&&(a.HAS_CSS_TRANSFORMS=!0),t.isEdge||"undefined"==typeof i.style.animationName||(a.HAS_CSS_ANIMATION=!0),i=null}a.HAS_CSS_TRANSFORMS?a.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:a.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/oop",[],function(e,n){"use strict";n.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},n.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},n.implement=function(e,t){n.mixin(e,t)}}),ace.define("ace/lib/keys",[],function(e,t){"use strict";var i=e("./oop"),n=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,"super":8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter(function(e){return t&n.KEY_MODS[e]}).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,n),t.keyCodeToString=function(e){var t=n[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),ace.define("ace/lib/event",[],function(e,u){"use strict";function t(){n=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){n={passive:!1}}})}catch(e){}}function o(){return n==undefined&&t(),n}function r(e,t,n){this.elem=e,this.type=t,this.callback=n}function s(e,t,n){var i=p(t);if(!d.isMac&&c){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(i|=8),c.altGr){if(3==(3&i))return;c.altGr=0}if(18===n||17===n){var o="location"in t?t.location:t.keyLocation;if(17===n&&1===o)1==c[n]&&(h=t.timeStamp);else if(18===n&&3===i&&2===o){t.timeStamp-h<50&&(c.altGr=!0)}}}if((n in l.MODIFIER_KEYS&&(n=-1),!i&&13===n)&&(3===(o="location"in t?t.location:t.keyLocation)&&(e(t,i,-n),t.defaultPrevented)))return;if(d.isChromeOS&&8&i){if(e(t,i,n),t.defaultPrevented)return;i&=-9}return!!(i||n in l.FUNCTION_KEYS||n in l.PRINTABLE_KEYS)&&e(t,i,n)}function a(){c=Object.create(null)}var n,l=e("./keys"),d=e("./useragent"),c=null,h=0;r.prototype.destroy=function(){f(this.elem,this.type,this.callback),this.elem=this.type=this.callback=undefined};var g=u.addListener=function(e,t,n,i){e.addEventListener(t,n,o()),i&&i.$toDestroy.push(new r(e,t,n))},f=u.removeListener=function(e,t,n){e.removeEventListener(t,n,o())};u.stopEvent=function(e){return u.stopPropagation(e),u.preventDefault(e),!1},u.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},u.preventDefault=function(e){e.preventDefault&&e.preventDefault()},u.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||d.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},u.capture=function(e,t,n){function i(e){t&&t(e),n&&n(e),f(o,"mousemove",t),f(o,"mouseup",i),f(o,"dragstart",i)}var o=e&&e.ownerDocument||document;return g(o,"mousemove",t),g(o,"mouseup",i),g(o,"dragstart",i),i},u.addMouseWheelListener=function(e,n,t){"onmousewheel"in e?g(e,"mousewheel",function(e){var t=8;e.wheelDeltaX!==undefined?(e.wheelX=-e.wheelDeltaX/t,e.wheelY=-e.wheelDeltaY/t):(e.wheelX=0,e.wheelY=-e.wheelDelta/t),n(e)},t):"onwheel"in e?g(e,"wheel",function(e){var t=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*t||0,e.wheelY=e.deltaY*t||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)},t):g(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)},t)},u.addMultiMouseDownListener=function(e,n,i,o,t){function r(e){if(0!==u.getButton(e)?c=0:1<e.detail?4<++c&&(c=1):c=1,d.isIE){var t=5<Math.abs(e.clientX-s)||5<Math.abs(e.clientY-a);l&&!t||(c=1),l&&clearTimeout(l),l=setTimeout(function(){l=null},n[c-1]||600),1==c&&(s=e.clientX,a=e.clientY)}if(e._clicks=c,i[o]("mousedown",e),4<c)c=0;else if(1<c)return i[o](h[c],e)}var s,a,l,c=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};Array.isArray(e)||(e=[e]),e.forEach(function(e){g(e,"mousedown",r,t)})};var p=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};if(u.getModifierString=function(e){return l.KEY_MODS[p(e)]},u.addCommandKeyListener=function(e,n,t){if(d.isOldGecko||d.isOpera&&!("KeyboardEvent"in window)){var i=null;g(e,"keydown",function(e){i=e.keyCode},t),g(e,"keypress",function(e){return s(n,e,i)},t)}else{var o=null;g(e,"keydown",function(e){c[e.keyCode]=(c[e.keyCode]||0)+1;var t=s(n,e,e.keyCode);return o=e.defaultPrevented,t},t),g(e,"keypress",function(e){o&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(u.stopEvent(e),o=null)},t),g(e,"keyup",function(e){c[e.keyCode]=null},t),c||(a(),g(window,"focus",a))}},"object"==typeof window&&window.postMessage&&!d.isOldIE){var m=1;u.nextTick=function(t,n){n=n||window;var i="zero-timeout-message-"+m++,o=function(e){e.data==i&&(u.stopPropagation(e),f(n,"message",o),t())};g(n,"message",o),n.postMessage(i,"*")}}u.$idleBlocked=!1,u.onIdle=function(e,t){return setTimeout(function n(){u.$idleBlocked?setTimeout(n,100):e()},t)},u.$idleBlockId=null,u.blockIdle=function(e){u.$idleBlockId&&clearTimeout(u.$idleBlockId),u.$idleBlocked=!0,u.$idleBlockId=setTimeout(function(){u.$idleBlocked=!1},e||100)},u.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),u.nextFrame?u.nextFrame=u.nextFrame.bind(window):u.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/range",[],function(e,t){"use strict";var n=function(e,t){return e.row-t.row||e.column-t.column},r=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(i.row,i.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(i.row,i.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var i={row:t+1,column:0};else if(this.start.row<e)i={row:e,column:0};return r.fromPoints(i||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var i={row:e,column:t};else var o={row:e,column:t};return r.fromPoints(i||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new r(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(r.prototype),r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=n,r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r}),ace.define("ace/lib/lang",[],function(e,t){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";0<t;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var n=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function o(e){if("object"!=typeof e||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=o(e[n]);return t}if("[object Object]"!==Object.prototype.toString.call(e))return e;for(var n in t={},e)t[n]=o(e[n]);return t},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},i=function(e){return i.cancel(),t=setTimeout(n,e||0),i};return(i.schedule=i).call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(t),t=null,i},i.isPending=function(){return t},i},t.delayedCall=function(e,t){var n=null,i=function(){n=null,e()},o=function(e){null==n&&(n=setTimeout(i,e||t))};return o.delay=function(e){n&&clearTimeout(n),n=setTimeout(i,e||t)},(o.schedule=o).call=function(){this.cancel(),e()},o.cancel=function(){n&&clearTimeout(n),n=null},o.isPending=function(){return n},o}}),ace.define("ace/clipboard",[],function(e,t,n){"use strict";var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}}),ace.define("ace/keyboard/textinput",[],function(e,t){"use strict";var D=e("../lib/event"),P=e("../lib/useragent"),W=e("../lib/dom"),z=e("../lib/lang"),V=e("../clipboard"),K=P.isChrome<18,U=P.isIE,G=63<P.isChrome,j=400,q=e("../lib/keys"),X=q.KEY_MODS,Q=P.isIOS,Y=Q?/\s/:/\n/,J=P.isMobile,n=function(e,d){function n(){o=!0,g.blur(),g.focus(),o=!1}function t(e){27==e.keyCode&&g.value.length<g.selectionStart&&(h||(v=g.value),w=b=-1,x()),B()}function l(){clearTimeout(E),E=setTimeout(function(){u&&(g.style.cssText=u,u=""),d.renderer.$isMousePressed=!1,d.renderer.$keepTextAreaAtCursor&&d.renderer.$moveTextAreaToCursor()},0)}function i(e,r,s){var t=null,a=!1;s.addEventListener("keydown",function(){t&&clearTimeout(t),a=!0},!0),s.addEventListener("keyup",function(){t=setTimeout(function(){a=!1},100)},!0);var n=function(){if(document.activeElement===s&&!(a||h||r.$mouseHandler.isMousePressed||c)){var e=s.selectionStart,t=s.selectionEnd,n=null,i=0;if(0==e?n=q.up:1==e?n=q.home:b<t&&"\n"==v[t]?n=q.end:e<w&&" "==v[e-1]?(n=q.left,i=X.option):e<w||e==w&&b!=w&&e==t?n=q.left:b<t&&2<v.slice(0,t).split("\n").length?n=q.down:b<t&&" "==v[t-1]?(n=q.right,i=X.option):(b<t||t==b&&b!=w&&e==t)&&(n=q.right),e!==t&&(i|=X.shift),n){if(!r.onCommandKey({},i,n)&&r.commands){n=q.keyCodeToString(n);var o=r.commands.findKeyCommand(i,n);o&&r.execCommand(o)}w=e,b=t,x("")}}};document.addEventListener("selectionchange",n),r.on("destroy",function(){document.removeEventListener("selectionchange",n)})}var g=W.createElement("textarea");g.className="ace_text-input",g.setAttribute("wrap","off"),g.setAttribute("autocorrect","off"),g.setAttribute("autocapitalize","off"),g.setAttribute("spellcheck",!1),g.style.opacity="0",e.insertBefore(g,e.firstChild);var c=!1,f=!1,h=!1,p=!1,u="";J||(g.style.fontSize="1px");var m=!1,o=!1,v="",w=0,b=0,y=0;try{var k=document.activeElement===g}catch(N){}D.addListener(g,"blur",function(e){o||(d.onBlur(e),k=!1)},d),D.addListener(g,"focus",function(e){if(!o){if(k=!0,P.isEdge)try{if(!document.hasFocus())return}catch(e){}d.onFocus(e),P.isEdge?setTimeout(x):x()}},d),this.$focusScroll=!1,this.focus=function(){if(u||G||"browser"==this.$focusScroll)return g.focus({preventScroll:!0});var e=g.style.top;g.style.position="fixed",g.style.top="0px";try{var t=0!=g.getBoundingClientRect().top}catch(N){return}var n=[];if(t)for(var i=g.parentElement;i&&1==i.nodeType;)n.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement;g.focus({preventScroll:!0}),t&&n.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){g.style.position="","0px"==g.style.top&&(g.style.top=e)},0)},this.blur=function(){g.blur()},this.isFocused=function(){return k},d.on("beforeEndOperation",function(){var e=d.curOp,t=e&&e.command&&e.command.name;if("insertstring"!=t){var n=t&&(e.docChanged||e.selectionChanged);h&&n&&(v=g.value="",F()),x()}});var x=Q?function(e){if(k&&(!c||e)&&!p){e||(e="");var t="\n ab"+e+"cde fg\n";t!=g.value&&(g.value=v=t);var n=4,i=4+(e.length||(d.selection.isEmpty()?0:1));w==n&&b==i||g.setSelectionRange(n,i),w=n,b=i}}:function(){if(!h&&!p&&(k||C)){h=!0;var e=0,t=0,n="";if(d.session){var i=d.selection,o=i.getRange(),r=i.cursor.row;if(e=o.start.column,t=o.end.column,n=d.session.getLine(r),o.start.row!=r){var s=d.session.getLine(r-1);e=o.start.row<r-1?0:e,t+=s.length+1,n=s+"\n"+n}else if(o.end.row!=r){var a=d.session.getLine(r+1);t=o.end.row>r+1?a.length:t,t+=n.length+1,n=n+"\n"+a}else J&&0<r&&(n="\n"+n,t+=1,e+=1);n.length>j&&(e<j&&t<j?n=n.slice(0,j):(n="\n",e==t?e=t=0:(e=0,t=1)))}var l=n+"\n\n";if(l!=v&&(g.value=v=l,w=b=l.length),C&&(w=g.selectionStart,b=g.selectionEnd),b!=t||w!=e||g.selectionEnd!=b)try{g.setSelectionRange(e,t),w=e,b=t}catch(N){}h=!1}};this.resetSelection=x,k&&d.onFocus();var r=function(e){return 0===e.selectionStart&&e.selectionEnd>=v.length&&e.value===v&&v&&e.selectionEnd!==b},s=function(){h||(c?c=!1:r(g)?(d.selectAll(),x()):J&&g.selectionStart!=w&&x())},a=null;this.setInputHandler=function(e){a=e};var C=!(this.getInputHandler=function(){return a}),S=function(e,t){if(C&&(C=!1),f)return x(),e&&d.onPaste(e),f=!1,"";for(var n=g.selectionStart,i=g.selectionEnd,o=w,r=v.length-b,s=e,a=e.length-n,l=e.length-i,c=0;0<o&&v[c]==e[c];)c++,o--;for(s=s.slice(c),c=1;0<r&&v.length-c>w-1&&v[v.length-c]==e[e.length-c];)c++,r--;a-=c-1,l-=c-1;var h=s.length-c+1;if(h<0&&(o=-h,h=0),s=s.slice(0,h),!(t||s||a||o||r||l))return"";var u=!(p=!0);return P.isAndroid&&". "==s&&(s=" ",u=!0),s&&!o&&!r&&!a&&!l||m?d.onTextInput(s):d.onTextInput(s,{extendLeft:o,extendRight:r,restoreStart:a,restoreEnd:l}),p=!1,v=e,w=n,b=i,y=l,u?"\n":s},$=function(e){if(h)return I();if(e&&e.inputType){if("historyUndo"==e.inputType)return d.execCommand("undo");if("historyRedo"==e.inputType)return d.execCommand("redo")}var t=g.value,n=S(t,!0);(t.length>j+100||Y.test(n)||J&&w<1&&w==b)&&x()},A=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!K){var o=U||n?"Text":"text/plain";try{return t?!1!==i.setData(o,t):i.getData(o)}catch(e){if(!n)return A(e,t,!0)}}},L=function(e,t){var n=d.getCopyText();if(!n)return D.preventDefault(e);A(e,n)?(Q&&(x(n),c=n,setTimeout(function(){c=!1},10)),t?d.onCut():d.onCopy(),D.preventDefault(e)):(c=!0,g.value=n,g.select(),setTimeout(function(){c=!1,x(),t?d.onCut():d.onCopy()}))},M=function(e){L(e,!0)},R=function(e){L(e,!1)},_=function(e){if(!T(e)){var t=A(e);V.pasteCancelled()||("string"==typeof t?(t&&d.onPaste(t,e),P.isIE&&setTimeout(x),D.preventDefault(e)):(g.value="",f=!0))}},T=function(e){var t=e.clipboardData||window.clipboardData,n=t&&t.items;return Array.from(n).some(function(e){return"file"===e.kind})};D.addCommandKeyListener(g,d.onCommandKey.bind(d),d),D.addListener(g,"select",s,d),D.addListener(g,"input",$,d),D.addListener(g,"cut",M,d),D.addListener(g,"copy",R,d),D.addListener(g,"paste",_,d),"oncut"in g&&"oncopy"in g&&"onpaste"in g||D.addListener(e,"keydown",function(e){if((!P.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:R(e);break;case 86:_(e);break;case 88:M(e)}},d);var E,O=function(e){if(!h&&d.onCompositionStart&&!d.$readOnly&&(h={},!m)){e.data&&(h.useTextareaForIME=!1),setTimeout(I,0),d._signal("compositionStart"),d.on("mousedown",n);var t=d.getSelectionRange();t.end.row=t.start.row,t.end.column=t.start.column,h.markerRange=t,h.selectionStart=w,d.onCompositionStart(h),h.useTextareaForIME?(v=g.value="",b=w=0):(g.msGetInputContext&&(h.context=g.msGetInputContext()),g.getInputContext&&(h.context=g.getInputContext()))}},I=function(){if(h&&d.onCompositionUpdate&&!d.$readOnly){if(m)return n();if(h.useTextareaForIME)d.onCompositionUpdate(g.value);else{var e=g.value;S(e),h.markerRange&&(h.context&&(h.markerRange.start.column=h.selectionStart=h.context.compositionStartOffset),h.markerRange.end.column=h.markerRange.start.column+b-h.selectionStart+y)}}},F=function(e){d.onCompositionEnd&&!d.$readOnly&&(h=!1,d.onCompositionEnd(),d.off("mousedown",n),e&&$())},B=z.delayedCall(I,50).schedule.bind(null,null);D.addListener(g,"compositionstart",O,d),D.addListener(g,"compositionupdate",I,d),D.addListener(g,"keyup",t,d),D.addListener(g,"keydown",B,d),D.addListener(g,"compositionend",F,d),this.getElement=function(){return g},this.setCommandMode=function(e){m=e,g.readOnly=!1},this.setReadOnly=function(e){m||(g.readOnly=e)},this.setCopyWithEmptySelection=function(){},this.onContextMenu=function(e){C=!0,x(),d._emit("nativecontextmenu",{target:d,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,t){u||(u=g.style.cssText),g.style.cssText=(t?"z-index:100000;":"")+(P.isIE?"opacity:0.1;":"")+"text-indent: -"+(w+b)*d.renderer.characterWidth*.5+"px;";var n=d.container.getBoundingClientRect(),i=W.computedStyle(d.container),o=n.top+(parseInt(i.borderTopWidth)||0),r=n.left+(parseInt(n.borderLeftWidth)||0),s=n.bottom-o-g.clientHeight-2,a=function(e){W.translate(g,e.clientX-r-2,Math.min(e.clientY-o-2,s))};a(e),"mousedown"==e.type&&(d.renderer.$isMousePressed=!0,clearTimeout(E),P.isWin&&D.capture(d.container,a,l))},this.onContextMenuClose=l;var H=function(e){d.textInput.onContextMenu(e),l()};D.addListener(g,"mouseup",H,d),D.addListener(g,"mousedown",function(e){e.preventDefault(),l()},d),D.addListener(d.renderer.scroller,"contextmenu",H,d),D.addListener(g,"contextmenu",H,d),Q&&i(e,d,g)};t.TextInput=n,t.$setUserAgentForTests=function(e,t){J=e,Q=t}}),ace.define("ace/mouse/default_handlers",[],function(e,t){"use strict";function n(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(e){t[e]=this[e]},this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function i(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}function l(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}var r=e("../lib/useragent"),o=0,c=550;(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();return 0!==o?((i.getSelectionRange().isEmpty()||1==o)&&i.selection.moveToPosition(n),void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,1<e.domEvent._clicks),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var o=l(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](i.row,i.column);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==r&&s<=0)t=this.$clickSelection.end,o.end.row==i.row&&o.end.column==i.column||(i=o.start);else if(1==s&&0<=r)t=this.$clickSelection.start,o.start.row==i.row&&o.start.column==i.column||(i=o.end);else if(-1==r&&1==s)i=o.end,t=o.start;else{var a=l(this.$clickSelection,i);i=a.cursor,t=a.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(o<e||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(){var e=this.editor;e.selectAll(),this.$clickSelection=e.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,o=i-n.t,r=o?e.wheelX/o:n.vx,s=o?e.wheelY/o:n.vy;o<c&&(r=(r+n.vx)/2,s=(s+n.vy)/2);var a=Math.abs(r/s),l=!1;if(1<=a&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=i;else if(i-n.allowed<c){Math.abs(r)<=1.5*Math.abs(n.vx)&&Math.abs(s)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=r,n.vy=s,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(n.prototype),t.DefaultHandlers=n}),ace.define("ace/tooltip",[],function(e,t){"use strict";function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var i=e("./lib/dom");(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){ return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),t.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",[],function(e,t){"use strict";function n(s){function n(){var e=c.getDocumentPosition().row,t=d.$annotations[e];if(!t)return a();if(e==u.session.getLength()){var n=u.renderer.pixelToScreenCoordinates(0,c.y).row,i=c.$pos;if(n>u.session.documentToScreenRow(i.row,i.column))return a()}if(h!=t)if(h=t.text.join("<br/>"),g.setHtml(h),g.show(),u._signal("showGutterTooltip",g),u.on("mousewheel",a),s.$tooltipFollowsMouse)l(c);else{var o=c.domEvent.target.getBoundingClientRect(),r=g.getElement().style;r.left=o.right+"px",r.top=o.bottom+"px"}}function a(){i&&(i=clearTimeout(i)),h&&(g.hide(),h=null,u._signal("hideGutterTooltip",g),u.off("mousewheel",a))}function l(e){g.setPosition(e.x,e.y)}var i,c,h,u=s.editor,d=u.renderer.$gutterLayer,g=new o(u.container);s.editor.setDefaultHandler("guttermousedown",function(e){if(u.isFocused()&&0==e.getButton()&&"foldWidgets"!=d.getRegion(e)){var t=e.getDocumentPosition().row,n=u.session.selection;if(e.getShiftKey())n.selectTo(t,0);else{if(2==e.domEvent.detail)return u.selectAll(),e.preventDefault();s.$clickSelection=u.selection.getLineRange(t)}return s.setState("selectByLines"),s.captureMouse(e),e.preventDefault()}}),s.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(r.hasCssClass(t,"ace_fold-widget"))return a();h&&s.$tooltipFollowsMouse&&l(e),c=e,i||(i=setTimeout(function(){i=null,c&&!s.isMousePressed?n():a()},50))}),f.addListener(u.renderer.$gutter,"mouseout",function(){c=null,h&&!i&&(i=setTimeout(function(){i=null,a()},50))},u),u.on("changeSession",a)}function o(e){s.call(this,e)}var r=e("../lib/dom"),i=e("../lib/oop"),f=e("../lib/event"),s=e("../tooltip").Tooltip;i.inherits(o,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),r=this.getHeight();n<(e+=15)+o&&(e-=e+o-n),i<(t+=15)+r&&(t-=20+r),s.prototype.setPosition.call(this,e,t)}}.call(o.prototype),t.GutterHandler=n}),ace.define("ace/mouse/mouse_event",[],function(e,t){"use strict";var n=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)}),ace.define("ace/mouse/dragdrop_handler",[],function(e,t){"use strict";function n(t){function n(e,t){var n=Date.now(),i=!t||e.row!=t.row,o=!t||e.column!=t.column;if(!y||i||o)g.moveCursorToPosition(e),y=n,k={x:f,y:p};else{var r=$(k.x,k.y,f,p);T<r?y=null:_<=n-y&&(g.renderer.scrollCursorIntoView(),y=null)}}function i(e,t){var n=Date.now(),i=g.renderer.layerConfig.lineHeight,o=g.renderer.layerConfig.characterWidth,r=g.renderer.scroller.getBoundingClientRect(),s={x:{left:f-r.left,right:r.right-f},y:{top:p-r.top,bottom:r.bottom-p}},a=Math.min(s.x.left,s.x.right),l=Math.min(s.y.top,s.y.bottom),c={row:e.row,column:e.column};a/o<=2&&(c.column+=s.x.left<s.x.right?-3:2),l/i<=1&&(c.row+=s.y.top<s.y.bottom?-1:1);var h=e.row!=c.row,u=e.column!=c.column,d=!t||e.row!=t.row;h||u&&!d?b?R<=n-b&&g.renderer.scrollCursorIntoView(c):b=n:b=null}function e(){var e=m;n(m=g.renderer.screenToTextCoordinates(f,p),e),i(m,e)}function o(){d=g.selection.toOrientedRange(),h=g.session.addMarker(d,"ace_selection",g.getSelectionStyle()),g.clearSelection(),g.isFocused()&&g.renderer.$cursorLayer.setBlinking(!1),clearInterval(u),e(),u=setInterval(e,20),C=0,L.addListener(document,"mousemove",s)}function r(){clearInterval(u),g.session.removeMarker(h),h=null,g.selection.fromOrientedRange(d),g.isFocused()&&!w&&g.$resetCursorStyle(),C=0,y=b=m=d=null,L.removeListener(document,"mousemove",s)}function s(){null==S&&(S=setTimeout(function(){null!=S&&h&&r()},20))}function a(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function l(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],i=M.isMac?e.altKey:e.ctrlKey,o="uninitialized";try{o=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var r="none";return i&&0<=t.indexOf(o)?r="copy":0<=n.indexOf(o)?r="move":0<=t.indexOf(o)&&(r="copy"),r}var g=t.editor,c=A.createElement("div");c.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",c.textContent="\xa0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(e){t[e]=this[e]},this),g.on("mousedown",this.onMouseDown.bind(t));var h,f,p,u,d,m,v,w,b,y,k,x=g.container,C=0;this.onDragStart=function(e){if(this.cancelDrag||!x.draggable){var t=this;return setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault()}d=g.getSelectionRange();var n=e.dataTransfer;n.effectAllowed=g.getReadOnly()?"copy":"copyMove",g.container.appendChild(c),n.setDragImage&&n.setDragImage(c,0,0),setTimeout(function(){g.container.removeChild(c)}),n.clearData(),n.setData("Text",g.session.getTextRange()),w=!0,this.setState("drag")},this.onDragEnd=function(e){if(x.draggable=!1,w=!1,this.setState(null),!g.getReadOnly()){var t=e.dataTransfer.dropEffect;v||"move"!=t||g.session.remove(g.getSelectionRange()),g.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!g.getReadOnly()&&a(e.dataTransfer))return f=e.clientX,p=e.clientY,h||o(),C++,e.dataTransfer.dropEffect=v=l(e),L.preventDefault(e)},this.onDragOver=function(e){if(!g.getReadOnly()&&a(e.dataTransfer))return f=e.clientX,p=e.clientY,h||(o(),C++),null!==S&&(S=null),e.dataTransfer.dropEffect=v=l(e),L.preventDefault(e)},this.onDragLeave=function(e){if(--C<=0&&h)return r(),v=null,L.preventDefault(e)},this.onDrop=function(e){if(m){var t=e.dataTransfer;if(w)switch(v){case"move":d=d.contains(m.row,m.column)?{start:m,end:m}:g.moveText(d,m);break;case"copy":d=g.moveText(d,m,!0)}else{var n=t.getData("Text");d={start:m,end:g.session.insert(m,n)},g.focus(),v=null}return r(),L.preventDefault(e)}},L.addListener(x,"dragstart",this.onDragStart.bind(t),g),L.addListener(x,"dragend",this.onDragEnd.bind(t),g),L.addListener(x,"dragenter",this.onDragEnter.bind(t),g),L.addListener(x,"dragover",this.onDragOver.bind(t),g),L.addListener(x,"dragleave",this.onDragLeave.bind(t),g),L.addListener(x,"drop",this.onDrop.bind(t),g);var S=null}function $(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}var A=e("../lib/dom"),L=e("../lib/event"),M=e("../lib/useragent"),R=200,_=200,T=5;(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=M.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(){var e=this.editor.container;M.isIE&&"dragReady"==this.state&&(3<$(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&e.dragDrop());"dragWait"===this.state&&(0<$(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton();if(1===(e.domEvent.detail||1)&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in o&&(o.unselectable="on"),t.getDragDelay()){if(M.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(n.prototype),t.DragdropHandler=n}),ace.define("ace/mouse/touch_handler",[],function(e,t){"use strict";var I=e("./mouse_event").MouseEvent,o=e("../lib/event"),l=e("../lib/dom");t.addTouchListeners=function(e,b){function r(){var n=window.navigator&&window.navigator.clipboard,i=!1,o=function(){var e=b.getCopyText(),t=b.session.getUndoManager().hasUndo();a.replaceChild(l.buildDom(i?["span",!e&&["span",{"class":"ace_mobile-button",action:"selectall"},"Select All"],e&&["span",{"class":"ace_mobile-button",action:"copy"},"Copy"],e&&["span",{"class":"ace_mobile-button",action:"cut"},"Cut"],n&&["span",{"class":"ace_mobile-button",action:"paste"},"Paste"],t&&["span",{"class":"ace_mobile-button",action:"undo"},"Undo"],["span",{"class":"ace_mobile-button",action:"find"},"Find"],["span",{"class":"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),a.firstChild)},t=function(e){var t=e.target.getAttribute("action");if("more"==t||!i)return i=!i,o();"paste"==t?n.readText().then(function(e){b.execCommand(t,e)}):t&&("cut"!=t&&"copy"!=t||(n?n.writeText(b.getCopyText()):document.execCommand("copy")),b.execCommand(t)),a.firstChild.style.display="none",i=!1,"openCommandPallete"!=t&&b.focus()};a=l.buildDom(["div",{"class":"ace_mobile-menu",ontouchstart:function(e){R="menu",e.stopPropagation(),e.preventDefault(),b.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),t(e)},onclick:t},["span"],["span",{"class":"ace_mobile-button",action:"more"},"..."]],b.container)}function n(){a||r();var e=b.selection.cursor,t=b.renderer.textToScreenCoordinates(e.row,e.column),n=b.renderer.textToScreenCoordinates(0,0).pageX,i=b.renderer.scrollLeft,o=b.container.getBoundingClientRect();a.style.top=t.pageY-o.top-3+"px",t.pageX-o.left<o.width-70?(a.style.left="",a.style.right="10px"):(a.style.right="",a.style.left=n+i-o.left+"px"),a.style.display="",a.firstChild.style.display="none",b.on("input",s)}function s(){a&&(a.style.display="none"),b.off("input",s)}function y(){A=null,clearTimeout(A);var e=b.selection.getRange(),t=e.contains(L.row,L.column);!e.isEmpty()&&t||(b.selection.moveToPosition(L),b.selection.selectWord()),R="wait",n()}function k(){A=null,clearTimeout(A),b.selection.moveToPosition(L);var e=2<=T?b.selection.getLineRange(L.row):b.session.getBracketRange(L);e&&!e.isEmpty()?b.selection.setRange(e):b.selection.selectWord(),R="wait"}function t(){_+=60,i=setInterval(function(){_--<=0&&(clearInterval(i),i=null),Math.abs(E)<.01&&(E=0),Math.abs(O)<.01&&(O=0),_<20&&(E*=.9),_<20&&(O*=.9);var e=b.session.getScrollTop();b.renderer.scrollBy(10*E,10*O),e==b.session.getScrollTop()&&(_=0)},10)}var x,C,S,$,A,i,L,M,a,R="scroll",_=0,T=0,E=0,O=0;o.addListener(e,"contextmenu",function(){M&&b.textInput.getElement().focus()},b),o.addListener(e,"touchstart",function(e){var t=e.touches;if(A||1<t.length)return clearTimeout(A),A=null,S=-1,void(R="zoom");M=b.$mouseHandler.isMousePressed=!0;var n=b.renderer.layerConfig.lineHeight,i=b.renderer.layerConfig.lineHeight,o=e.timeStamp;$=o;var r=t[0],s=r.clientX,a=r.clientY;Math.abs(x-s)+Math.abs(C-a)>n&&(S=-1),x=e.clientX=s,C=e.clientY=a,E=O=0;var l=new I(e,b);if(L=l.getDocumentPosition(),o-S<500&&1==t.length&&!_)T++,e.preventDefault(),e.button=0,k();else{T=0;var c=b.selection.cursor,h=b.selection.isEmpty()?c:b.selection.anchor,u=b.renderer.$cursorLayer.getPixelPosition(c,!0),d=b.renderer.$cursorLayer.getPixelPosition(h,!0),g=b.renderer.scroller.getBoundingClientRect(),f=b.renderer.layerConfig.offset,p=b.renderer.scrollLeft,m=function(e,t){return(e/=i)*e+(t=t/n-.75)*t};if(e.clientX<g.left)return void(R="zoom");var v=m(e.clientX-g.left-u.left+p,e.clientY-g.top-u.top+f),w=m(e.clientX-g.left-d.left+p,e.clientY-g.top-d.top+f);v<3.5&&w<3.5&&(R=w<v?"cursor":"anchor"),R=w<3.5?"anchor":v<3.5?"cursor":"scroll",A=setTimeout(y,450)}S=o},b),o.addListener(e,"touchend",function(){M=b.$mouseHandler.isMousePressed=!1,i&&clearInterval(i),"zoom"==R?(R="",_=0):A?(b.selection.moveToPosition(L),_=0,n()):"scroll"==R?(t(),s()):n(),clearTimeout(A),A=null},b),o.addListener(e,"touchmove",function(e){A&&(clearTimeout(A),A=null);var t=e.touches;if(!(1<t.length||"zoom"==R)){var n=t[0],i=x-n.clientX,o=C-n.clientY;if("wait"==R){if(!(4<i*i+o*o))return e.preventDefault();R="cursor"}x=n.clientX,C=n.clientY,e.clientX=n.clientX,e.clientY=n.clientY;var r=e.timeStamp,s=r-$;if($=r,"scroll"==R){var a=new I(e,b);a.speed=1,a.wheelX=i,a.wheelY=o,10*Math.abs(i)<Math.abs(o)&&(i=0),10*Math.abs(o)<Math.abs(i)&&(o=0),0!=s&&(E=i/s,O=o/s),b._emit("mousewheel",a),a.propagationStopped||(E=O=0)}else{var l=new I(e,b).getDocumentPosition();"cursor"==R?b.selection.moveCursorToPosition(l):"anchor"==R&&b.selection.setSelectionAnchor(l.row,l.column),b.renderer.scrollCursorIntoView(l),e.preventDefault()}}},b)}}),ace.define("ace/lib/net",[],function(e,t){"use strict";var o=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,n){var t=o.getDocumentHead(),i=document.createElement("script");i.src=e,t.appendChild(i),i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,t||n())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/event_emitter",[],function(e,t){"use strict";var n={},r=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length&&(n[o](t,this),!t.propagationStopped);o++);return i&&!t.defaultPrevented?i(t,this):void 0}},n._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var i=0;i<n.length;i++)n[i](t,this)}},n.once=function(e,t){var n=this;if(this.on(e,function i(){n.off(e,i),t.apply(null,arguments)}),!t)return new Promise(function(e){t=e})},n.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var i=n[e],o=n._disabled_[e];o||(n._disabled_[e]=o=[]),o.push(i);var r=o.indexOf(t);-1!=r&&o.splice(r,1)}n[e]=t},n.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var i=n._disabled_[e];if(n[e]==t)i&&this.setDefaultHandler(e,i.pop());else if(i){var o=i.indexOf(t);-1!=o&&i.splice(o,1)}}},n.on=n.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return i||(i=this._eventRegistry[e]=[]),-1==i.indexOf(t)&&i[n?"unshift":"push"](t),t},n.off=n.removeListener=n.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}},n.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=undefined),this._eventRegistry&&(this._eventRegistry[e]=undefined),this._defaultHandlers&&(this._defaultHandlers[e]=undefined)},t.EventEmitter=n}),ace.define("ace/lib/app_config",[],function(e,t){function i(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function n(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout(function(){throw n})}var o=e("./oop"),r=e("./event_emitter").EventEmitter,s={setOptions:function(t){Object.keys(t).forEach(function(e){this.setOption(e,t[e])},this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(t=e,e=Object.keys(t));else{var n=this.$options;e=Object.keys(n).filter(function(e){return!n[e].hidden})}return e.forEach(function(e){t[e]=this.getOption(e)},this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return i('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:i('misspelled option "'+e+'"')}},a=function(){this.$defaultOptions={}};(function(){o.implement(this,r),this.defineOptions=function(n,e,i){return n.$options||(this.$defaultOptions[e]=n.$options={}),Object.keys(i).forEach(function(e){var t=i[e];"string"==typeof t&&(t={forwardTo:t}),t.name||(t.name=e),"initialValue"in(n.$options[t.name]=t)&&(n["$"+t.name]=t.initialValue)}),o.implement(n,s),this},this.resetOptions=function(n){Object.keys(n.$options).forEach(function(e){var t=n.$options[e];"value"in t&&n.setOption(e,t.value)})},this.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i[t].value=n)},this.setDefaultValues=function(t,n){Object.keys(n).forEach(function(e){this.setDefaultValue(t,e,n[e])},this)},this.warn=i,this.reportError=n}).call(a.prototype),t.AppConfig=a}),ace.define("ace/config",[],function(f,p,m){function e(e){if(w&&w.document){b.packaged=e||f.packaged||m.packaged||w.define&&define.packaged;for(var t={},n="",i=document.currentScript||document._currentScript,o=(i&&i.ownerDocument||document).getElementsByTagName("script"),r=0;r<o.length;r++){var s=o[r],a=s.src||s.getAttribute("src");if(a){for(var l=s.attributes,c=0,h=l.length;c<h;c++){var u=l[c];0===u.name.indexOf("data-ace-")&&(t[v(u.name.replace(/^data-ace-/,""))]=u.value)}var d=a.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);d&&(n=d[1])}}for(var g in n&&(t.base=t.base||n,t.packaged=!0),t.basePath=t.base,t.workerPath=t.workerPath||t.base,t.modePath=t.modePath||t.base,t.themePath=t.themePath||t.base,delete t.base,t)"undefined"!=typeof t[g]&&p.set(g,t[g])}}function v(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}var t=f("./lib/lang"),s=(f("./lib/oop"),f("./lib/net")),n=f("./lib/app_config").AppConfig;m.exports=p=new n;var w=function(){return this||"undefined"!=typeof window&&window}(),b={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1};p.get=function(e){if(!b.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return b[e]},p.set=function(e,t){if(b.hasOwnProperty(e))b[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e)},p.all=function(){return t.copyObject(b)},p.$modes={},p.moduleUrl=function(e,t){if(b.$moduleUrls[e])return b.$moduleUrls[e];var n=e.split("/"),i="snippets"==(t=t||n[n.length-2]||"")?"/":"-",o=n[n.length-1];if("worker"==t&&"-"==i){var r=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");o=o.replace(r,"")}(!o||o==t)&&1<n.length&&(o=n[n.length-2]);var s=b[t+"Path"];return null==s?s=b.basePath:"/"==i&&(t=i=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+i+o+this.get("suffix")},p.setModuleUrl=function(e,t){return b.$moduleUrls[e]=t},p.$loading={},p.loadModule=function(n,e){var t,i;Array.isArray(n)&&(i=n[0],n=n[1]);try{t=f(n)}catch(r){}if(t&&!p.$loading[n])return e&&e(t);if(p.$loading[n]||(p.$loading[n]=[]),p.$loading[n].push(e),!(1<p.$loading[n].length)){var o=function(){f([n],function(t){p._emit("load.module",{name:n,module:t});var e=p.$loading[n];p.$loading[n]=null,e.forEach(function(e){e&&e(t)})})};if(!p.get("packaged"))return o();s.loadScript(p.moduleUrl(n,i),o),a()}};var a=function(){b.basePath||b.workerPath||b.modePath||b.themePath||Object.keys(b.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),a=function(){})};e(!0),p.init=e,p.version="1.4.12"}),ace.define("ace/mouse/mouse_handler",[],function(e,t){"use strict";var h=e("../lib/event"),u=e("../lib/useragent"),i=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,n=e("../config"),o=function(o){var r=this;this.editor=o,new i(this),new s(this),new a(this);var e=function(){(!document.hasFocus||!document.hasFocus()||!o.isFocused()&&document.activeElement==(o.textInput&&o.textInput.getElement()))&&window.focus(),o.focus()},t=o.renderer.getMouseEventTarget();h.addListener(t,"click",this.onMouseEvent.bind(this,"click"),o),h.addListener(t,"mousemove",this.onMouseMove.bind(this,"mousemove"),o),h.addMultiMouseDownListener([t,o.renderer.scrollBarV&&o.renderer.scrollBarV.inner,o.renderer.scrollBarH&&o.renderer.scrollBarH.inner,o.textInput&&o.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",o),h.addMouseWheelListener(o.container,this.onMouseWheel.bind(this,"mousewheel"),o),l(o.container,o);var n=o.renderer.$gutter;h.addListener(n,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),o),h.addListener(n,"click",this.onMouseEvent.bind(this,"gutterclick"),o),h.addListener(n,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),o),h.addListener(n,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),o),h.addListener(t,"mousedown",e,o),h.addListener(n,"mousedown",e,o),u.isIE&&o.renderer.scrollBarV&&(h.addListener(o.renderer.scrollBarV.element,"mousedown",e,o),h.addListener(o.renderer.scrollBarH.element,"mousedown",e,o)),o.on("mousemove",function(e){if(!r.state&&!r.$dragDelay&&r.$dragEnabled){var t=o.renderer.screenToTextCoordinates(e.x,e.y),n=o.session.selection.getRange(),i=o.renderer;!n.isEmpty()&&n.insideStart(t.row,t.column)?i.setCursorStyle("default"):i.setCursorStyle("")}},o)};(function(){this.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new d(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new d(t,this.editor))},this.onMouseWheel=function(e,t){var n=new d(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,i=this.editor.renderer;i.$isMousePressed=!0;var o=this,r=function(e){if(e){if(u.isWebKit&&!e.which&&o.releaseMouse)return o.releaseMouse();o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new d(e,o.editor),o.$mouseMoved=!0}},s=function(e){n.off("beforeEndOperation",l),clearInterval(c),n.session&&a(),o[o.state+"End"]&&o[o.state+"End"](e),o.state="",o.isMousePressed=i.$isMousePressed=!1,i.$keepTextAreaAtCursor&&i.$moveTextAreaToCursor(),o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent("mouseup",e),n.endOperation()},a=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(u.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){s(e)});var l=function(){o.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(o[o.state+"End"]&&o[o.state+"End"](),o.state="",o.releaseMouse())};n.on("beforeEndOperation",l),n.startOperation({command:{name:"mouse"}}),o.$onCaptureMouseMove=r,o.releaseMouse=h.capture(this.editor.container,r,s);var c=setInterval(a,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&h.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(o.prototype),n.defineOptions(o.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:u.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=o}),ace.define("ace/mouse/fold_handler",[],function(e,t){"use strict";function n(s){s.on("click",function(e){var t=e.getDocumentPosition(),n=s.session,i=n.getFoldAt(t.row,t.column,1);i&&(e.getAccelKey()?n.removeFold(i):n.expandFold(i),e.stop());var o=e.domEvent&&e.domEvent.target;o&&r.hasCssClass(o,"ace_inline_button")&&r.hasCssClass(o,"ace_toggle_wrap")&&(n.setOption("wrap",!n.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(e){if("foldWidgets"==s.renderer.$gutterLayer.getRegion(e)){var t=e.getDocumentPosition().row,n=s.session;n.foldWidgets&&n.foldWidgets[t]&&s.session.onFoldWidgetClick(t,e),s.isFocused()||s.focus(),e.stop()}}),s.on("gutterdblclick",function(e){if("foldWidgets"==s.renderer.$gutterLayer.getRegion(e)){var t=e.getDocumentPosition().row,n=s.session,i=n.getParentFoldRangeData(t,!0),o=i.range||i.firstRange;if(o){t=o.start.row;var r=n.getFoldAt(t,n.getLine(t).length,1);r?n.removeFold(r):(n.addFold("...",o),s.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}e.stop()}})}var r=e("../lib/dom");t.FoldHandler=n}),ace.define("ace/keyboard/keybinding",[],function(e,t){"use strict";var o=e("../lib/keys"),l=e("../lib/event"),n=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),t==undefined?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var t=this.$data,n=t.editor;return this.$handlers.map(function(e){return e.getStatusText&&e.getStatusText(n,t)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var o,r=!1,s=this.$editor.commands,a=this.$handlers.length;a--&&!((o=this.$handlers[a].handleKeyboard(this.$data,e,t,n,i))&&o.command&&((r="null"==o.command||s.exec(o.command,this.$editor,o.args,i))&&i&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&l.stopEvent(i),r)););return r||-1!=e||(o={command:"insertstring"},r=s.exec("insertstring",this.$editor,t)),r&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),r},this.onCommandKey=function(e,t,n){var i=o.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(n.prototype),t.KeyBinding=n}),ace.define("ace/lib/bidiutil",[],function(e,l){"use strict";function c(e,t,n,i){var o=v?C:x,r=null,s=null,a=null,l=0,c=null,h=-1,u=null,d=null,g=[];if(!i)for(u=0,i=[];u<n;u++)i[u]=m(e[u]);for(w=v,k=y=b=!1,d=0;d<n;d++){if(r=l,g[d]=s=p(e,i,g,d),c=240&(l=o[r][s]),l&=15,t[d]=a=o[l][5],0<c)if(16==c){for(u=h;u<d;u++)t[u]=1;h=-1}else h=-1;if(o[l][6])-1==h&&(h=d);else if(-1<h){for(u=h;u<d;u++)t[u]=a;h=-1}i[d]==L&&(t[d]=0),w|=a}if(k)for(u=0;u<n;u++)if(i[u]==M){t[u]=v;for(var f=u-1;0<=f&&i[f]==_;f--)t[f]=v}}function h(e,t,n){if(!(w<e))if(1!=e||v!=d||y)for(var i,o,r,s,a=n.length,l=0;l<a;){if(t[l]>=e){for(i=l+1;i<a&&t[i]>=e;)i++;for(o=l,r=i-1;o<r;o++,r--)s=n[o],n[o]=n[r],n[r]=s;l=i}l++}else n.reverse()}function p(e,t,n,i){var o,r,s,a,l=t[i];switch(l){case g:case f:b=!1;case A:case $:return l;case S:return b?$:S;case R:return b=!0,f;case _:return A;case T:return i<1||i+1>=t.length||(o=n[i-1])!=S&&o!=$||(r=t[i+1])!=S&&r!=$?A:(b&&(r=$),r==o?r:A);case E:return(o=0<i?n[i-1]:L)==S&&i+1<t.length&&t[i+1]==S?S:A;case O:if(0<i&&n[i-1]==S)return S;if(b)return A;for(a=i+1,s=t.length;a<s&&t[a]==O;)a++;return a<s&&t[a]==S?S:A;case I:for(s=t.length,a=i+1;a<s&&t[a]==I;)a++;if(a<s){var c=e[i],h=1425<=c&&c<=2303||64286==c;if(o=t[a],h&&(o==f||o==R))return f}return i<1||(o=t[i-1])==L?A:n[i-1];case L:return y=!(b=!1),v;case M:return k=!0,A;case F:case B:case N:case D:case H:b=!1;case P:return A}}function m(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?191<t?g:i[t]:5==n?/[\u0591-\u05f4]/.test(e)?f:g:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?I:/[\u0660-\u0669\u066b-\u066c]/.test(e)?$:1642==t?O:/[\u06f0-\u06f9]/.test(e)?S:R:32==n&&t<=8287?o[255&t]:254==n&&65136<=t?R:A}var v=0,w=0,b=!1,y=!1,k=!1,x=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],C=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,d=1,g=0,f=1,S=2,$=3,A=4,L=5,M=6,R=7,_=8,T=9,E=10,O=11,I=12,F=13,B=14,H=15,N=16,D=17,P=18,i=[P,P,P,P,P,P,P,P,P,M,L,M,_,L,P,P,P,P,P,P,P,P,P,P,P,P,P,P,L,L,L,M,_,A,A,O,O,O,A,A,A,A,A,E,T,E,T,T,S,S,S,S,S,S,S,S,S,S,T,A,A,A,A,A,A,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,A,A,A,A,A,A,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,A,A,A,A,P,P,P,P,P,P,L,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,P,T,A,O,O,O,O,A,A,A,A,g,A,A,P,A,A,O,O,S,S,A,g,A,A,A,S,g,A,A,A,A,A],o=[_,_,_,_,_,_,_,_,_,_,_,P,P,P,g,f,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,_,L,F,B,H,N,D,T,O,O,O,O,O,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,T,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,_];l.L=g,l.R=f,l.EN=S,l.ON_R=3,l.AN=4,l.R_H=5,l.B=6,l.RLE=7,l.DOT="\xb7",l.doBidiReorder=function(e,t,n){if(e.length<2)return{};var i=e.split(""),o=new Array(i.length),r=new Array(i.length),s=[];v=n?d:u,c(i,s,i.length,t);for(var a=0;a<o.length;o[a]=a,a++);h(2,s,o),h(1,s,o);for(a=0;a<o.length-1;a++)t[a]===$?s[a]=l.AN:s[a]===f&&(t[a]>R&&t[a]<F||t[a]===A||t[a]===P)?s[a]=l.ON_R:0<a&&"\u0644"===i[a-1]&&/\u0622|\u0623|\u0625|\u0627/.test(i[a])&&(s[a-1]=s[a]=l.R_H,a++);i[i.length-1]===l.DOT&&(s[i.length-1]=l.B),"\u202b"===i[0]&&(s[0]=l.RLE);for(a=0;a<o.length;a++)r[a]=s[o[a]];return{logicalFromVisual:o,bidiLevels:r}},l.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=m(e.charAt(i)),n||t[i]!=f&&t[i]!=R&&t[i]!=$||(n=!0);return n},l.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}}),ace.define("ace/bidihandler",[],function(e,t){"use strict";var a=e("./lib/bidiutil"),l=e("./lib/lang"),n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,i=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=a,this.charWidths=[],this.EOL="\xac",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="\xb6",this.RLE="\u202b",this.contentWidth=0, this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=n.test(e.getValue())};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&n.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);0<=n&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,i=this.session.$getRowCacheIndex(t,this.currentRow);0<this.currentRow-e&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=n,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){e===undefined&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[e];i&&(t===undefined&&(t=this.getSplitIndex()),0<t&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[a.L],this.line=t<i.length?this.line.substring(i[t-1],i[t]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[t])),t==i.length&&(this.line+=this.showInvisibles?n:a.DOT)}else this.line+=this.showInvisibles?n:a.DOT;var o,r=this.session,s=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(e,t){return"\t"===e||r.isFullWidth(e.charCodeAt(0))?(o="\t"===e?r.getScreenTabSize(t+s):2,s+=o-1,l.stringRepeat(a.DOT,o)):e}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==a.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];a.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=a.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("\u05d4");this.charWidths[a.L]=this.charWidths[a.EN]=this.charWidths[a.ON_R]=t,this.charWidths[a.R]=this.charWidths[a.AN]=n,this.charWidths[a.R_H]=.45*n,this.charWidths[a.B]=this.charWidths[a.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(e!=undefined?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),i=e.selection.getSelectionAnchor().row;i<=n.row;i++)t||e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:i},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(i,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=t<e?this.session.getOverwrite()?e:e-1:t,i=a.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,r=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!=0&&i++;for(var s=0;s<i;s++)r+=this.charWidths[o[s]];return!this.session.getOverwrite()&&t<e&&o[i]%2==0&&(r+=this.charWidths[o[i]]),this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(r+=this.rtlLineOffset),r},this.getSelections=function(e,t){var n,i=this.bidiMap,o=i.bidiLevels,r=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,h=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,g=0;g<o.length;g++)d=i.logicalFromVisual[g],n=o[g],(c=a<=d&&d<l)&&!h?u=s:!c&&h&&r.push({left:u,width:s-u}),s+=this.charWidths[n],h=c;if(c&&g===o.length&&r.push({left:u,width:s-u}),this.isRtlDir)for(var f=0;f<r.length;f++)r[f].left+=this.rtlLineOffset;return r},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),i=0,o=this.bidiMap.bidiLevels,r=this.charWidths[o[i]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);n+r/2<e;){if(n+=r,i===o.length-1){r=0;break}r=this.charWidths[o[++i]]}return 0<i&&o[i-1]%2!=0&&o[i]%2==0?(e<n&&i--,t=this.bidiMap.logicalFromVisual[i]):0<i&&o[i-1]%2==0&&o[i]%2!=0?t=1+(n<e?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&0===r&&o[i-1]%2==0||!this.isRtlDir&&0===i&&o[i]%2!=0?t=1+this.bidiMap.logicalFromVisual[i]:(0<i&&o[i-1]%2!=0&&0!==r&&i--,t=this.bidiMap.logicalFromVisual[i]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(i.prototype),t.BidiHandler=i}),ace.define("ace/selection",[],function(e,t){"use strict";var n=e("./lib/oop"),s=e("./lib/lang"),i=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,o=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})};(function(){n.implement(this,i),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,i=t?e.start:e.end;this.$setSelection(n.row,n.column,i.row,i.column)},this.$setSelection=function(e,t,n,i){if(!this.$silent){var o=this.$isEmpty,r=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,i),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||r)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(i);return o?(i=o.start.row,n=o.end.row):n=i,!0===t?new a(i,0,n,this.session.getLine(n).length):new a(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,o=e.column+t;return n<0&&(i=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)0<t.row&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),o=this.session.getDisplayLine(e,null,i.row,i.column).match(/^\s*/);o[0].length==t||this.session.$useEmacsStyleLineStart||(i.column+=o[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/\s+$/);0<i&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,n,-1);null==i&&(i=this.doc.getLine(t).substring(0,n));var o=s.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(0<t&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&i.test(t);)n++;if(n<1)for(o.lastIndex=0;(t=e[n])&&!o.test(t);)if(o.lastIndex=0,n++,i.test(t)){if(2<n){n--;break}for(;(t=e[n])&&i.test(t);)n++;if(2<n)break}}return o.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){for(var r=this.doc.getLength();e++,i=this.doc.getLine(e),e<r&&/^\s*$/.test(i););/^\s+/.test(i)||(i=""),t=0}var s=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,n);if(0===n){for(;t--,i=this.doc.getLine(t),0<t&&/^\s*$/.test(i););n=i.length,/\s+$/.test(i)||(i="")}var o=s.stringReverse(i),r=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-r)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:0<e&&(e+=o.rowCount-(o.rowsAbove||0))}var r=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&r.row===this.lead.row&&(r.column,this.lead.column),this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(i){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(e.start==undefined){if(this.rangeList&&1<e.length){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(o.prototype),t.Selection=o}),ace.define("ace/tokenizer",[],function(e,t){"use strict";var n=e("./config"),w=2e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&(s="gi"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var h=c.regex,u=new RegExp("(?:("+h+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=1<u?this.$applyToken:c.token),1<u&&(/\\\d/.test(c.regex)?h=c.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(u=1,h=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||a.push(c)),r[o]=l,o+=u,i.push(h),c.onMatch||(c.onMatch=null)}}i.length||(r[0]=0,i.push("$")),a.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){w=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;o<r;o++)t[o]&&(i[i.length]={type:n[o],value:t[o]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,o=0,r=i.length;o<r;o++)t[o+1]&&(n[n.length]={type:i[o],value:t[o+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(e,t){return t?"(?:":e})},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var s=0,a=!1,l={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,n,i,o,r){return a?a="]"!=o:o?a=!0:i?(s==l.stack&&(l.end=r+1,l.stack=-1),s--):n&&(s++,1!=n.length&&(l.stack=s,l.start=r)),e}),null!=l.end&&/^\)*$/.test(e.substr(l.end))&&(e=e.substring(0,l.start)+e.substr(l.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t)"#tmp"===(t=(n=t.slice(0))[0])&&(n.shift(),t=n.shift());else var n=[];var i=t||"start",o=this.states[i];o||(i="start",o=this.states[i]);for(var r,s=this.matchMappings[i],a=this.regExps[i],l=[],c=a.lastIndex=0,h=0,u={type:null,value:""};r=a.exec(e);){var d=s.defaultToken,g=null,f=r[0],p=a.lastIndex;if(p-f.length>c){var m=e.substring(c,p-f.length);u.type==d?u.value+=m:(u.type&&l.push(u),u={type:d,value:m})}for(var v=0;v<r.length-2;v++)if(r[v+1]!==undefined){d=(g=o[s[v]]).onMatch?g.onMatch(f,i,n,e):g.token,g.next&&(i="string"==typeof g.next?g.next:g.next(i,n),(o=this.states[i])||(this.reportError("state doesn't exist",i),i="start",o=this.states[i]),s=this.matchMappings[i],c=p,(a=this.regExps[i]).lastIndex=p),g.consumeLineEnd&&(c=p);break}if(f)if("string"==typeof d)g&&!1===g.merge||u.type!==d?(u.type&&l.push(u),u={type:d,value:f}):u.value+=f;else if(d){u.type&&l.push(u),u={type:null,value:""};for(v=0;v<d.length;v++)l.push(d[v])}if(c==e.length)break;if(c=p,h++>w){for(h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)u.type&&l.push(u),u={value:e.substring(c,c+=500),type:"overflow"};i="start",n=[];break}}return u.type&&l.push(u),1<n.length&&n[0]!==i&&n.unshift("#tmp",i),{tokens:l,state:n.length?n:i}},this.reportError=n.reportError}).call(i.prototype),t.Tokenizer=i}),ace.define("ace/mode/text_highlight_rules",[],function(e,t){"use strict";var c=e("../lib/lang"),n=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],o=0;o<i.length;o++){var r=i[o];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,o){var r="function"==typeof e?(new e).getRules():e;if(i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var a in i=[],r)i.push(t+a);if(this.addRules(r,t),n){var l=Array.prototype[o?"push":"unshift"];for(s=0;s<i.length;s++)l.apply(this.$rules[i[s]],c.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var g=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},f=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){function h(e){var t=d[e];t.processed=!0;for(var n=0;n<t.length;n++){var i=t[n],o=null;Array.isArray(i)&&(o=i,i={}),!i.regex&&i.start&&(i.regex=i.start,i.next||(i.next=[]),i.next.push({defaultToken:i.token},{token:i.token+".end",regex:i.end||i.start,next:"pop"}),i.token=i.token+".start",i.push=!0);var r=i.next||i.push;if(r&&Array.isArray(r)){var s=i.stateName;s||("string"!=typeof(s=i.token)&&(s=s[0]||""),d[s]&&(s+=u++)),d[s]=r,h(i.next=s)}else"pop"==r&&(i.next=f);if(i.push&&(i.nextState=i.next||i.push,i.next=g,delete i.push),i.rules)for(var a in i.rules)d[a]?d[a].push&&d[a].push.apply(d[a],i.rules[a]):d[a]=i.rules[a];var l="string"==typeof i?i:i.include;if(l&&(o=Array.isArray(l)?l.map(function(e){return d[e]}):d[l]),o){var c=[n,1].concat(o);i.noEscape&&(c=c.filter(function(e){return!e.next})),t.splice.apply(t,c),n--}i.keywordMap&&(i.token=this.createKeywordMapper(i.keywordMap,i.defaultToken||"text",i.caseInsensitive),delete i.defaultToken)}}var u=0,d=this.$rules;Object.keys(d).forEach(h,this)},this.createKeywordMapper=function(o,t,r,s){var a=Object.create(null);return this.$keywordList=[],Object.keys(o).forEach(function(e){for(var t=o[e].split(s||"|"),n=t.length;n--;){var i=t[n];this.$keywordList.push(i),r&&(i=i.toLowerCase()),a[i]=e}},this),o=null,r?function(e){return a[e.toLowerCase()]||t}:function(e){return a[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(n.prototype),t.TextHighlightRules=n}),ace.define("ace/mode/behaviour",[],function(e,t){"use strict";var n=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(undefined){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(n.prototype),t.Behaviour=n}),ace.define("ace/token_iterator",[],function(e,t){"use strict";var n=e("./range").Range,i=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(n!==undefined)return n;for(n=0;0<t;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new n(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i}),ace.define("ace/mode/behaviour/cstyle",[],function(e,t){"use strict";var f,n=e("../../lib/oop"),i=e("../behaviour").Behaviour,r=e("../../token_iterator").TokenIterator,p=e("../../lib/lang"),s=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],o={},x={'"':'"',"'":"'"},C=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,o.rangeCount!=e.multiSelect.rangeCount&&(o={rangeCount:e.multiSelect.rangeCount})),o[t])return f=o[t];f=o[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},S=function(e,t,n,i){var o=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},m=function(g){this.add("braces","insertion",function(e,t,n,i,o){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if("{"==o){C(n);var a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(""!==l&&"{"!==l&&n.getWrapBehavioursEnabled())return S(a,l,"{","}");if(m.isSaneInsertion(n,i))return/[\]\}\)]/.test(s[r.column])||n.inMultiSelectMode||g&&g.braces?(m.recordAutoInsert(n,i,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(n,i,"{"),{text:"{",selection:[1,1]})}else if("}"==o){if(C(n),"}"==s.substring(r.column,r.column+1))if(null!==i.$findOpeningBracket("}",{column:r.column+1,row:r.row})&&m.isAutoInsertedClosing(r,s,o))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==o||"\r\n"==o){C(n);var c="";if(m.isMaybeInsertedClosing(r,s)&&(c=p.stringRepeat("}",f.maybeInsertedBrackets),m.clearMaybeInsertedClosing()),"}"===s.substring(r.column,r.column+1)){var h=i.findMatchingBracket({row:r.row,column:r.column+1},"}");if(!h)return null;var u=this.$getIndent(i.getLine(h.row))}else{if(!c)return void m.clearMaybeInsertedClosing();u=this.$getIndent(s)}var d=u+i.getTabString();return{text:"\n"+d+"\n"+u+c,selection:[1,d.length,1,d.length]}}m.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==r){if(C(n),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;f.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,n,i,o){if("("==o){C(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return S(r,s,"(",")");if(m.isSaneInsertion(n,i))return m.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}}else if(")"==o){C(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row);if(")"==l.substring(a.column,a.column+1))if(null!==i.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&m.isAutoInsertedClosing(a,l,o))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"("==r&&(C(n),")"==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o}),this.add("brackets","insertion",function(e,t,n,i,o){if("["==o){C(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return S(r,s,"[","]");if(m.isSaneInsertion(n,i))return m.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){C(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row);if("]"==l.substring(a.column,a.column+1))if(null!==i.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&m.isAutoInsertedClosing(a,l,o))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"["==r&&(C(n),"]"==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o}),this.add("string_dquotes","insertion",function(e,t,n,i,o){var r=i.$mode.$quotes||x;if(1==o.length&&r[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;C(n);var s=o,a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(!(""===l||1==l.length&&r[l])&&n.getWrapBehavioursEnabled())return S(a,l,s,s);if(!l){var c=n.getCursorPosition(),h=i.doc.getLine(c.row),u=h.substring(c.column-1,c.column),d=h.substring(c.column,c.column+1),g=i.getTokenAt(c.row,c.column),f=i.getTokenAt(c.row,c.column+1);if("\\"==u&&g&&/escape/.test(g.type))return null;var p,m=g&&/string|escape/.test(g.type),v=!f||/string|escape/.test(f.type);if(d==s)(p=m!==v)&&/string\.end/.test(f.type)&&(p=!1);else{if(m&&!v)return null;if(m&&v)return null;var w=i.$mode.tokenRe;w.lastIndex=0;var b=w.test(u);w.lastIndex=0;var y=w.test(u);if(b||y)return null;if(d&&!/[\s;,.})\]\\]/.test(d))return null;var k=h[c.column-2];if(u==s&&(k==s||w.test(k)))return null;p=!0}return{text:p?s+s:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,n,i,o){var r=i.$mode.$quotes||x,s=i.doc.getTextRange(o);if(!o.isMultiLine()&&r.hasOwnProperty(s)&&(C(n),i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==s))return o.end.column++,o})};m.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new r(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",s)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var o=new r(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",s))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",a)},m.$matchTokenType=function(e,t){return-1<t.indexOf(e.type||e)},m.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,f.autoInsertedLineEnd[0])||(f.autoInsertedBrackets=0),f.autoInsertedRow=i.row,f.autoInsertedLineEnd=n+o.substr(i.column),f.autoInsertedBrackets++},m.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(f.maybeInsertedBrackets=0),f.maybeInsertedRow=i.row,f.maybeInsertedLineStart=o.substr(0,i.column)+n,f.maybeInsertedLineEnd=o.substr(i.column),f.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(e,t,n){return 0<f.autoInsertedBrackets&&e.row===f.autoInsertedRow&&n===f.autoInsertedLineEnd[0]&&t.substr(e.column)===f.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(e,t){return 0<f.maybeInsertedBrackets&&e.row===f.maybeInsertedRow&&t.substr(e.column)===f.maybeInsertedLineEnd&&t.substr(0,e.column)==f.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){f.autoInsertedLineEnd=f.autoInsertedLineEnd.substr(1),f.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){f&&(f.maybeInsertedBrackets=0,f.maybeInsertedRow=-1)},n.inherits(m,i),t.CstyleBehaviour=m}),ace.define("ace/unicode",[],function(e,t){"use strict";for(var n=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19 ,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],r=0;r<n.length;r+=2)o.push(i+=n[r]),n[r+1]&&o.push(45,i+=n[r+1]);t.wordChars=String.fromCharCode.apply(null,o)}),ace.define("ace/mode/text",[],function(e,t){"use strict";var s=e("../config"),n=e("../tokenizer").Tokenizer,i=e("./text_highlight_rules").TextHighlightRules,o=e("./behaviour/cstyle").CstyleBehaviour,r=e("../unicode"),k=e("../lib/lang"),p=e("../token_iterator").TokenIterator,m=e("../range").Range,a=function(){this.HighlightRules=i};(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp("^["+r.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+r.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new n(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,o,n,i){function t(e){for(var t=n;t<=i;t++)e(r.getLine(t),t)}var r=o.doc,s=!0,a=!0,l=Infinity,c=o.getTabSize(),h=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))p=this.lineCommentStart.map(k.escapeRegExp).join("|"),g=this.lineCommentStart[0];else p=k.escapeRegExp(this.lineCommentStart),g=this.lineCommentStart;p=new RegExp("^(\\s*)(?:"+p+") ?"),h=o.getUseSoftTabs();w=function(e,t){var n=e.match(p);if(n){var i=n[1].length,o=n[0].length;d(e,i,o)||" "!=n[0][o-1]||o--,r.removeInLine(t,i,o)}};var u=g+" ",d=(v=function(e,t){s&&!/\S/.test(e)||(d(e,l,l)?r.insertInLine({row:t,column:l},u):r.insertInLine({row:t,column:l},g))},b=function(e){return p.test(e)},function(e,t,n){for(var i=0;t--&&" "==e.charAt(t);)i++;if(i%c!=0)return!1;for(i=0;" "==e.charAt(n++);)i++;return 2<c?i%c!=c-1:i%c==0})}else{if(!this.blockComment)return!1;var g=this.blockComment.start,f=this.blockComment.end,p=new RegExp("^(\\s*)(?:"+k.escapeRegExp(g)+")"),m=new RegExp("(?:"+k.escapeRegExp(f)+")\\s*$"),v=function(e,t){b(e,t)||s&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},f),r.insertInLine({row:t,column:l},g))},w=function(e,t){var n;(n=e.match(m))&&r.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(p))&&r.removeInLine(t,n[1].length,n[0].length)},b=function(e,t){if(p.test(e))return!0;for(var n=o.getTokens(t),i=0;i<n.length;i++)if("comment"===n[i].type)return!0}}var y=Infinity;t(function(e,t){var n=e.search(/\S/);-1!==n?(n<l&&(l=n),a&&!b(e,t)&&(a=!1)):y>e.length&&(y=e.length)}),l==Infinity&&(l=y,a=s=!1),h&&l%c!=0&&(l=Math.floor(l/c)*c),t(a?w:v)},this.toggleBlockComment=function(e,t,n,i){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var r,s,a=(g=new p(t,i.row,i.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var c,h;a&&/comment/.test(a.type);){if(-1!=(f=a.value.indexOf(o.start))){var u=g.getCurrentTokenRow(),d=g.getCurrentTokenColumn()+f;c=new m(u,d,u,d+o.start.length);break}a=g.stepBackward()}var g;for(a=(g=new p(t,i.row,i.column)).getCurrentToken();a&&/comment/.test(a.type);){var f;if(-1!=(f=a.value.indexOf(o.end))){u=g.getCurrentTokenRow(),d=g.getCurrentTokenColumn()+f;h=new m(u,d,u,d+o.end.length);break}a=g.stepForward()}h&&t.remove(h),c&&(t.remove(c),r=c.start.row,s=-o.start.length)}else s=o.start.length,r=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);l.start.row==r&&(l.start.column+=s),l.end.row==r&&(l.end.column+=s),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t){return this.$getIndent(t)},this.checkOutdent=function(){return!1},this.autoOutdent=function(){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(){return null},this.createModeDelegates=function(e){for(var i in this.$embeds=[],this.$modes={},e)if(e[i]){var t=e[i],n=t.prototype.$id,o=s.$modes[n];o||(s.$modes[n]=o=new t),s.$modes[i]||(s.$modes[i]=o),this.$embeds.push(i),this.$modes[i]=o}var r=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(i=0;i<r.length;i++)!function(e){var t=r[i],n=e[t];e[r[i]]=function(){return this.$delegator(t,arguments,n)}}(this)},this.$delegator=function(e,t,n){var i=t[0]||"start";if("string"!=typeof i){if(Array.isArray(i[2])){var o=i[2][i[2].length-1];if(s=this.$modes[o])return s[e].apply(s,[i[1]].concat([].slice.call(t,1)))}i=i[0]||"start"}for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var s,a=i.split(this.$embeds[r]);if(!a[0]&&a[1])return t[0]=a[1],(s=this.$modes[this.$embeds[r]])[e].apply(s,t)}var l=n.apply(this,t);return n?l:undefined},this.transformAction=function(e,t,n,i,o){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var s in r)if(r[s][t]){var a=r[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var o=t[i],r=0,s=o.length;r<s;r++)if("string"==typeof o[r].token)/keyword|support|storage/.test(o[r].token)&&n.push(o[r].regex);else if("object"==typeof o[r].token)for(var a=0,l=o[r].token.length;a<l;a++)if(/keyword|support|storage/.test(o[r].token[a])){i=o[r].regex.match(/\(.+?\)/g)[a];n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(a.prototype),t.Mode=a}),ace.define("ace/apply_delta",[],function(e,t){"use strict";t.applyDelta=function(e,t){var n=t.start.row,i=t.start.column,o=e[n]||"";switch(t.action){case"insert":if(1===t.lines.length)e[n]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var r=[n,1].concat(t.lines);e.splice.apply(e,r),e[n]=o.substring(0,i)+e[n],e[n+t.lines.length-1]+=o.substring(i)}break;case"remove":var s=t.end.column,a=t.end.row;n===a?e[n]=o.substring(0,i)+o.substring(s):e.splice(n,a-n+1,o.substring(0,i)+e[a].substring(s))}}}),ace.define("ace/anchor",[],function(e,t){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,n=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function l(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}function n(e,t,n){var i="insert"==e.action,o=(i?1:-1)*(e.end.row-e.start.row),r=(i?1:-1)*(e.end.column-e.start.column),s=e.start,a=i?s:e.end;return l(t,s,n)?{row:t.row,column:t.column}:l(a,t,!n)?{row:t.row+o,column:t.column+(t.row==a.row?r:0)}:{row:s.row,column:s.column}}i.implement(this,o),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=n(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var o={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:o,value:i})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(n.prototype)}),ace.define("ace/document",[],function(e,t){"use strict";var n=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,r=e("./anchor").Anchor,s=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){n.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new h(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new r(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:n<=e&&(e=n-1,t=undefined);var i=this.getLine(e);return t==undefined&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),o=this.clippedPos(e,n);return this.applyDelta({start:i,end:o,action:"remove",lines:this.getLinesForRange({start:i,end:o})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&0<e,i=t<this.getLength()-1,o=n?e-1:e,r=n?this.getLine(o).length:0,s=i?t+1:t,a=i?0:this.getLine(s).length,l=new h(o,r,s,a),c=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),c},this.removeNewLine=function(e){e<this.getLength()-1&&0<=e&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof h||(e=h.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;0<=t;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!h.comparePoints(e.start,e.end))||(n&&2e4<e.lines.length?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length-t+1,o=e.start.row,r=e.start.column,s=0,a=0;s<i;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(o+s,r),end:this.pos(o+a,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=o+s,e.start.column=r,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=t||0,r=n.length;o<r;o++)if((e-=n[o].length+i)<0)return{row:o,column:e+n[o].length+i};return{row:r-1,column:e+n[r-1].length+i}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=0,r=Math.min(e.row,n.length),s=t||0;s<r;++s)o+=n[s].length+i;return o+e.column}}).call(s.prototype),t.Document=s}),ace.define("ace/background_tokenizer",[],function(e,t){"use strict";var n=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(e){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var a=this;this.$worker=function(){if(a.running){for(var e=new Date,t=a.currentLine,n=-1,i=a.doc,o=t;a.lines[t];)t++;var r=i.getLength(),s=0;for(a.running=!1;t<r;){for(a.$tokenizeRow(t),n=t;t++,a.lines[t];);if(++s%5==0&&20<new Date-e){a.running=setTimeout(a.$worker,20);break}}a.currentLine=t,-1==n&&(n=t),o<=n&&a.fireUpdateEvent(o,n)}}};(function(){n.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens}}).call(o.prototype),t.BackgroundTokenizer=o}),ace.define("ace/search_highlight",[],function(e,t){"use strict";var c=e("./lib/lang"),h=(e("./lib/oop"),e("./range").Range),n=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,i){if(this.regExp)for(var o=i.firstRow,r=i.lastRow,s=o;s<=r;s++){var a=this.cache[s];null==a&&((a=c.getMatchOffsets(n.getLine(s),this.regExp)).length>this.MAX_RANGES&&(a=a.slice(0,this.MAX_RANGES)),a=a.map(function(e){return new h(s,e.offset,s,e.offset+e.length)}),this.cache[s]=a.length?a:"");for(var l=a.length;l--;)t.drawSingleLineMarker(e,a[l].toScreenRange(n),this.clazz,i)}}}).call(n.prototype),t.SearchHighlight=n}),ace.define("ace/edit_session/fold_line",[],function(e,t){"use strict";function c(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var i=e("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0<this.range.compareEnd(e.start.row,e.start.column)?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,o,r=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<s.length;l++){if(-1==(o=(i=s[l]).range.compareStart(t,n)))return void e(null,t,n,r,a);if(!e(null,i.start.row,i.start.column,r,a)&&e(i.placeholder,i.start.row,i.start.column,r)||0===o)return;a=!i.sameRow,r=i.end.column}e(null,t,n,r,a)},this.getNextFoldTo=function(e,t){for(var n,i,o=0;o<this.folds.length;o++){if(-1==(i=(n=this.folds[o]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,o,r=this.getNextFoldTo(e,t);if(r)if(i=r.fold,"inside"==r.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){var s=(o=this.folds).indexOf(i);for(0===s&&(this.start.column+=n);s<o.length;s++){if((i=o[s]).start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var i=n.fold,o=this.folds,r=this.foldData,s=o.indexOf(i),a=o[s-1];this.end.row=a.end.row,this.end.column=a.end.column;var l=new c(r,o=o.splice(s,o.length-s));return r.splice(r.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},this.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach(function(e){t.push(" "+e.toString())}),t.push("]"),t.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if((e-=i.start.column-t)<0)return{row:i.start.row,column:i.start.column+e};if((e-=i.placeholder.length)<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(c.prototype),t.FoldLine=c}),ace.define("ace/range_list",[],function(e,t){"use strict";var l=e("./range").Range.comparePoints,n=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=l,this.pointIndex=function(e,t,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var r=i[o],s=l(e,r.end);if(!(0<s)){var a=l(e,r.start);return 0===s?t&&0!==a?-o-2:o:0<a||0===a&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,i=(n=n.sort(function(e,t){return l(e.start,t.start)}))[0],o=1;o<n.length;o++){e=i,i=n[o];var r=l(e.end,i.start);r<0||(0!=r||e.isEmpty()||i.isEmpty())&&(l(e.end,i.end)<0&&(e.end.row=i.end.row,e.end.column=i.end.column),n.splice(o,1),t.push(i),i=e,o--)}return this.ranges=n,t},this.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})},this.containsPoint=function(e){return 0<=this.pointIndex(e)},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var o=this.pointIndex({row:t,column:0},i);o<0&&(o=-o-1);for(var r=[],s=i;s<o;s++)r.push(n[s]);return r},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,n=e.end,i=t.row,o=n.row,r=this.ranges,s=0,a=r.length;s<a;s++){if((h=r[s]).end.row>=i)break}if("insert"==e.action)for(var l=o-i,c=-t.column+n.column;s<a;s++){if((h=r[s]).start.row>i)break;if(h.start.row==i&&h.start.column>=t.column&&(h.start.column==t.column&&this.$bias<=0||(h.start.column+=c,h.start.row+=l)),h.end.row==i&&h.end.column>=t.column){if(h.end.column==t.column&&this.$bias<0)continue;h.end.column==t.column&&0<c&&s<a-1&&h.end.column>h.start.column&&h.end.column==r[s+1].start.column&&(h.end.column-=c),h.end.column+=c,h.end.row+=l}}else for(l=i-o,c=t.column-n.column;s<a;s++){if((h=r[s]).start.row>o)break;h.end.row<o&&(i<h.end.row||i==h.end.row&&t.column<h.end.column)?(h.end.row=i,h.end.column=t.column):h.end.row==o?h.end.column<=n.column?(l||h.end.column>t.column)&&(h.end.column=t.column,h.end.row=t.row):(h.end.column+=c,h.end.row+=l):h.end.row>o&&(h.end.row+=l),h.start.row<o&&(i<h.start.row||i==h.start.row&&t.column<h.start.column)?(h.start.row=i,h.start.column=t.column):h.start.row==o?h.start.column<=n.column?(l||h.start.column>t.column)&&(h.start.column=t.column,h.start.row=t.row):(h.start.column+=c,h.start.row+=l):h.start.row>o&&(h.start.row+=l)}if(0!=l&&s<a)for(;s<a;s++){var h;(h=r[s]).start.row+=l,h.end.row+=l}}}).call(n.prototype),t.RangeList=n}),ace.define("ace/edit_session/fold",[],function(e,t){"use strict";function n(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function u(e,t){n(e.start,t),n(e.end,t)}function i(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function o(e,t){i(e.start,t),i(e.end,t)}var r=e("../range_list").RangeList,s=e("../lib/oop"),a=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};s.inherits(a,r),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach(function(e){e.setFoldLine(t)})},this.clone=function(){var e=this.range.clone(),t=new a(e,this.placeholder);return this.subFolds.forEach(function(e){t.subFolds.push(e.clone())}),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){u(e,this.start);for(var t=e.start.row,n=e.start.column,i=0,o=-1;i<this.subFolds.length&&1==(o=this.subFolds[i].range.compare(t,n));i++);var r=this.subFolds[i],s=0;if(0==o){if(r.range.containsRange(e))return r.addSubFold(e);s=1}t=e.range.end.row,n=e.range.end.column;var a=i;for(o=-1;a<this.subFolds.length&&1==(o=this.subFolds[a].range.compare(t,n));a++);0==o&&a++;for(var l=this.subFolds.splice(i,a-i,e),c=0==o?l.length-1:l.length,h=s;h<c;h++)e.addSubFold(l[h]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return o(e,this.start)}}.call(a.prototype)}),ace.define("ace/edit_session/folding",[],function(e,t){"use strict";function n(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var o=i.folds,r=0;r<o.length;r++){var s=o[r].range;if(s.contains(e,t)){if(1==n&&s.isEnd(e,t)&&!s.isEmpty())continue;if(-1==n&&s.isStart(e,t)&&!s.isEmpty())continue;return o[r]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,o=[];t.column+=1,n.column-=1;for(var r=0;r<i.length;r++){var s=i[r].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i[r].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;o.push(c)}}}}return t.column-=1,n.column+=1,o},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(!(i=i||this.getFoldLine(e)))return null;for(var o,r,s={end:{column:0}},a=0;a<i.folds.length;a++){var l=(r=i.folds[a]).range.compareEnd(e,t);if(-1==l){o=this.getLine(r.start.row).substring(s.end.column,r.start.column);break}if(0===l)return null;s=r}return o||(o=this.getLine(r.start.row).substring(s.end.column)),-1==n?o.substring(0,t-s.end.column):1==n?o.substring(t-s.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var o=n[i];if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var o=n[i];if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,o=0;o<n.length;o++){var r=n[o],s=r.end.row,a=r.start.row;if(t<=s){a<t&&(e<=a?i-=t-a:i=0);break}e<=s&&(i-=e<=a?s-a:s-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var n,i=this.$foldData,o=!1;e instanceof m?n=e:(n=new m(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var r=n.start.row,s=n.start.column,a=n.end.row,l=n.end.column,c=this.getFoldAt(r,s,1),h=this.getFoldAt(a,l,-1);if(c&&h==c)return c.addSubFold(n);c&&!c.range.isStart(r,s)&&this.removeFold(c),h&&!h.range.isEnd(a,l)&&this.removeFold(h);var u=this.getFoldsInRange(n.range);0<u.length&&(this.removeFolds(u),n.collapseChildren||u.forEach(function(e){n.addSubFold(e)}));for(var d=0;d<i.length;d++){var g=i[d];if(a==g.start.row){g.addFold(n),o=!0;break}if(r==g.end.row){if(g.addFold(n),o=!0,!n.sameRow){var f=i[d+1];if(f&&f.start.row==a){g.merge(f);break}}break}if(a<=g.start.row)break}return o||(g=this.$addFoldLine(new p(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,o=this.$foldData,r=t.folds;if(1==r.length)o.splice(o.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(r=s.folds).shift(),s.start.row=r[0].start.row,s.start.column=r[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach(function(e){t.restoreRange(e),this.addFold(e)},this),0<t.collapseChildren&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var n,i;if(null==e?(n=new h(0,0,this.getLength(),0),null==t&&(t=!0)):n="number"==typeof e?new h(e,0,e,this.getLine(e).length):"row"in e?h.fromPoints(e,e):e,i=this.getFoldsInRangeList(n),0!=t?this.removeFolds(i):this.expandFolds(i),i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,o,r){null==o&&(o=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var s=this.doc,a="";return e.walk(function(e,t,n,i){if(!(t<o)){if(t==o){if(n<r)return;i=Math.max(r,i)}a+=null!=e?e:s.getLine(t).substring(i,n)}},t,n),a},this.getDisplayLine=function(e,t,n,i){var o,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,n,i):(o=this.doc.getLine(e)).substring(i||0,t||o.length)},this.$cloneFoldData=function(){var n=[];return n=this.$foldData.map(function(e){var t=e.folds.map(function(e){return e.clone()});return new p(n,t)})},this.toggleFold=function(e){var t,n,i=this.selection.getRange();if(i.isEmpty()){var o=i.start;if(t=this.getFoldAt(o.row,o.column))return void this.expandFold(t);(n=this.findMatchingBracket(o))?1==i.comparePoint(n)?i.end=n:(i.start=n,i.start.column++,i.end.column--):(n=this.findMatchingBracket({row:o.row,column:o.column+1}))?(1==i.comparePoint(n)?i.end=n:i.start=n,i.start.column++):i=this.getCommentFoldRange(o.row,o.column)||i}else{var r=this.getFoldsInRange(i);if(e&&r.length)return void this.expandFolds(r);1==r.length&&(t=r[0])}if(t||(t=this.getFoldAt(i.start.row,i.start.column)),t&&t.range.toString()==i.toString())this.expandFold(t);else{var s="...";if(!i.isMultiLine()){if((s=this.getTextRange(i)).length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,i)}},this.getCommentFoldRange=function(e,t,n){var i=new u(this,e,t),o=i.getCurrentToken(),r=o&&o.type;if(o&&/^comment|string/.test(r)){"comment"==(r=r.match(/comment|string/ )[0])&&(r+="|doc-start");var s=new RegExp(r),a=new h;if(1!=n){for(;(o=i.stepBackward())&&s.test(o.type););i.stepForward()}if(a.start.row=i.getCurrentTokenRow(),a.start.column=i.getCurrentTokenColumn()+2,i=new u(this,e,t),-1!=n){var l=-1;do{if(o=i.stepForward(),-1==l){var c=this.getState(i.$row);s.test(c)||(l=i.$row)}else if(i.$row>l)break}while(o&&s.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return a.end.row=i.getCurrentTokenRow(),a.end.column=i.getCurrentTokenColumn()+o.value.length-2,a}},this.foldAll=function(e,t,n,i){n==undefined&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength();for(var r=e=e||0;r<t;r++)if(null==o[r]&&(o[r]=this.getFoldWidget(r)),"start"==o[r]&&(!i||i(r))){var s=this.getFoldWidgetRange(r);s&&s.isMultiLine()&&s.end.row<=t&&s.start.row>=e&&(r=s.end.row,s.collapseChildren=n,this.addFold("...",s))}}},this.foldToLevel=function(e){for(this.foldAll();0<e--;)this.unfold(null,!1)},this.foldAllComments=function(){var o=this;this.foldAll(null,null,null,function(e){for(var t=o.getTokens(e),n=0;n<t.length;n++){var i=t[n];if("text"!=i.type||!/^\s+$/.test(i.value))return!!/comment/.test(i.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){"manual"==(this.$foldStyle=e)&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var i,o=e-1;0<=o;){var r=n[o];if(null==r&&(r=n[o]=this.getFoldWidget(o)),"start"==r){var s=this.getFoldWidgetRange(o);if(i||(i=s),s&&s.end.row>=e)break}o--}return{range:-1!==o&&s,firstRange:i}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),o="end"===n?-1:1,r=this.getFoldAt(e,-1===o?0:i.length,o);if(r)return t.children||t.all?this.removeFold(r):this.expandFold(r),r;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(r=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(r.range))return this.removeFold(r),r;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(){var e=this.selection.getCursor().row;e=this.getRowFoldStart(e);var t=this.$toggleFoldWidget(e,{});if(!t){var n=this.getParentFoldRangeData(e,!0);if(t=n.range||n.firstRange){e=t.start.row;var i=this.getFoldAt(e,this.getLine(e).length,1);i?this.removeFold(i):this.addFold("...",t)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}var h=e("../range").Range,p=e("./fold_line").FoldLine,m=e("./fold").Fold,u=e("../token_iterator").TokenIterator;t.Folding=n}),ace.define("ace/edit_session/bracket_match",[],function(e,t){"use strict";function n(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,o=n.charAt(e.column-1),r=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(r||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},r=o&&o.match(/([\(\[\{])|([\)\]\}])/),i=!1),!r)return null;if(r[1]){if(!(s=this.$findClosingBracket(r[1],e)))return null;t=a.fromPoints(e,s),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(r[2],e)))return null;t=a.fromPoints(s,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),i=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(i||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},i=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!i)return null;var o=new a(e.row,e.column-1,e.row,e.column),r=i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e);return r?[o,new a(r.row,r.column,r.row,r.column+1)]:[o]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,r=new u(this,t.row,t.column),s=r.getCurrentToken();if(s||(s=r.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var a=t.column-r.getCurrentTokenColumn()-2,l=s.value;;){for(;0<=a;){var c=l.charAt(a);if(c==i){if(0==(o-=1))return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else c==e&&(o+=1);a-=1}for(;(s=r.stepBackward())&&!n.test(s.type););if(null==s)break;a=(l=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,r=new u(this,t.row,t.column),s=r.getCurrentToken();if(s||(s=r.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var a=t.column-r.getCurrentTokenColumn();;){for(var l=s.value,c=l.length;a<c;){var h=l.charAt(a);if(h==i){if(0==(o-=1))return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else h==e&&(o+=1);a+=1}for(;(s=r.stepForward())&&!n.test(s.type););if(null==s)break;a=0}return null}}}var u=e("../token_iterator").TokenIterator,a=e("../range").Range;t.BracketMatch=n}),ace.define("ace/edit_session",[],function(e,t){"use strict";var n=e("./lib/oop"),i=e("./lib/lang"),o=e("./bidihandler").BidiHandler,r=e("./config"),s=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,c=e("./mode/text").Mode,h=e("./range").Range,l=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,d=e("./search_highlight").SearchHighlight,g=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++g.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new l(e)),this.setDocument(e),this.selection=new a(this),this.$bidiHandler=new o(this),r.resetOptions(this),this.setMode(t),r._signal("session",this)};g.$uid=0,function(){function a(e){return!(e<4352)&&(4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12288<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510)}n.implement(this,s),this.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),(this.doc=e).on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;n<t&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,i=e.length-1;n<=i;){var o=n+i>>1,r=e[o];if(r<t)n=o+1;else{if(!(t<r))return o;i=o-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),o=0;if(null==t){var r=i.length-1;o=this.getLine(e).length}else for(r=0;r<i.length&&!(t<=(o+=i[r].value.length));r++);return(n=i[r])?(n.index=r,n.start=o-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){t===undefined&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var o=this.$markerId++,r={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:o};return i?(this.$frontMarkers[o]=r,this._signal("changeFrontMarker")):(this.$backMarkers[o]=r,this._signal("changeBackMarker")),o},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var o=new h(e,0,t,Infinity);return o.id=this.addMarker(o,n,"fullLine",i),o},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(0<t&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var o=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var r=t;if(0<r){for(;0<=--r&&n.charAt(r).match(o););r++}for(var s=t;s<n.length&&n.charAt(s).match(o);)s++;return new h(e,r,e,s)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),i=this.getLine(n.end.row);i.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=r.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,r.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||((this.$modes[i]=e).$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var i=e.getTokenizer();if(i.on!==undefined){var o=this.onReloadTokenizer.bind(this);i.on("update",o)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(i);else{this.bgTokenizer=new u(i);var r=this;this.bgTokenizer.on("update",function(e){r._signal("tokenizerUpdate",e)})}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){r.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var t=0;return this.lineWidgets.forEach(function(e){e&&e.screenWidth>t&&(t=e.screenWidth)}),this.lineWidgetWidth=t},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,o=0,r=this.$foldData[o],s=r?r.start.row:Infinity,a=t.length,l=0;l<a;l++){if(s<l){if(a<=(l=r.end.row+1))break;s=(r=this.$foldData[o++])?r.start.row:Infinity}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var i=e[n];"insert"==i.action||"remove"==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var i=e[n];"insert"!=i.action&&"remove"!=i.action||this.doc.$safeApplyDelta(i)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var i,o,r=0;r<e.length;r++){var s=e[r];s.start&&(i?n(s)?(o=s.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=s.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=s.start,-1==i.compare(o.row,o.column)&&(i=h.fromPoints(s.start,s.start))):i=n(s)?h.fromPoints(s.start,s.end):h.fromPoints(s.start,s.start))}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i=this.getTextRange(e),o=this.getFoldsInRange(e),r=h.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row;(c=s?-e.end.column:e.start.column-e.end.column)&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=c),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=c)),s&&r.start.row>=e.end.row&&(r.start.row+=s,r.end.row+=s)}if(r.end=this.insert(r.start,i),o.length){var a=e.start,l=r.start,c=(s=l.row-a.row,l.column-a.column);this.addFolds(o.map(function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=c),e.end.row==a.row&&(e.end.column+=c),e.start.row+=s,e.end.row+=s,e}))}return r},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new h(0,0,0,0),i=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var r=this.getLine(o);n.start.row=o,n.end.row=o;for(var s=0;s<i&&" "==r.charAt(s);++s);s<i&&"\t"==r.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((o=this.getRowFoldStart(e+n))<0)return 0;var i=o-e}else if(0<n){var o;if((o=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;i=o-t}else{e=this.$clipRowToDocument(e);i=(t=this.$clipRowToDocument(t))-e+1}var r=new h(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(r).map(function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e}),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,a),s.length&&this.addFolds(s),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)t=e=0;else{var n=this.doc.getLength();n<=e?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&1<i&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,o=e.end,r=i.row,s=o.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var h=0;if(p=this.getFoldLine(o.row)){p.addRemoveChars(o.row,o.column,i.column-o.column),p.shiftRow(-a);var u=this.getFoldLine(r);u&&u!==p&&(u.merge(p),p=u),h=c.indexOf(p)+1}for(;h<c.length;h++){(p=c[h]).start.row>=o.row&&p.shiftRow(-a)}s=r}else{var d=Array(a);d.unshift(r,0);var g=t?this.$wrapData:this.$rowLengthCache;g.splice.apply(g,d);c=this.$foldData,h=0;if(p=this.getFoldLine(r)){var f=p.range.compareInside(i.row,i.column);0==f?(p=p.split(i.row,i.column))&&(p.shiftRow(a),p.addRemoveChars(s,0,o.column-i.column)):-1==f&&(p.addRemoveChars(r,0,o.column-i.column),p.shiftRow(a)),h=c.indexOf(p)+1}for(;h<c.length;h++){var p;(p=c[h]).start.row>=r&&p.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(p=this.getFoldLine(r))&&p.addRemoveChars(r,i.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},this.$updateRowLengthCache=function(e,t){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var s,n,a=this.doc.getAllLines(),i=this.getTabSize(),o=this.$wrapData,r=this.$wrapLimit,l=e;for(t=Math.min(t,a.length-1);l<=t;)(n=this.getFoldLine(l,n))?(s=[],n.walk(function(e,t,n,i){var o;if(null!=e){(o=this.$getDisplayTokens(e,s.length))[0]=m;for(var r=1;r<o.length;r++)o[r]=v}else o=this.$getDisplayTokens(a[t].substring(i,n),s.length);s=s.concat(o)}.bind(this),n.end.row,a[n.end.row].length+1),o[n.start.row]=this.$computeWrapSplits(s,r,i),l=n.end.row+1):(s=this.$getDisplayTokens(a[l]),o[l]=this.$computeWrapSplits(s,r,i),l++)};var l=1,p=2,m=3,v=4,w=9,b=10,y=11,k=12;this.$computeWrapSplits=function(o,e,i){function r(){var e=0;if(0===u)return e;if(h)for(var t=0;t<o.length;t++){var n=o[t];if(n==b)e+=1;else{if(n!=y){if(n==k)continue;break}e+=i}}return c&&!1!==h&&(e+=i),Math.min(e,u)}function t(e){for(var t=e-a,n=a;n<e;n++){var i=o[n];12!==i&&2!==i||(t-=1)}s.length||(d=r(),s.indent=d),l+=t,s.push(l),a=e}if(0==o.length)return[];for(var s=[],n=o.length,a=0,l=0,c=this.$wrapAsCode,h=this.$indentedSoftWrap,u=e<=Math.max(2*i,8)||!1===h?0:Math.floor(e/2),d=0;e-d<n-a;){var g=a+e-d;if(o[g-1]>=b&&o[g]>=b)t(g);else if(o[g]!=m&&o[g]!=v){for(var f=Math.max(g-(e-(e>>2)),a-1);f<g&&o[g]<m;)g--;if(c){for(;f<g&&o[g]<m;)g--;for(;f<g&&o[g]==w;)g--}else for(;f<g&&o[g]<b;)g--;f<g?t(++g):(o[g=a+e]==p&&g--,t(g-d))}else{for(;g!=a-1&&o[g]!=m;g--);if(a<g){t(g);continue}for(g=a+e;g<o.length&&o[g]==v;g++);if(g==o.length)break;t(g)}}return s},this.$getDisplayTokens=function(e,t){var n,i=[];t=t||0;for(var o=0;o<e.length;o++){var r=e.charCodeAt(o);if(9==r){n=this.getScreenTabSize(i.length+t),i.push(y);for(var s=1;s<n;s++)i.push(k)}else 32==r?i.push(b):39<r&&r<48||57<r&&r<64?i.push(w):4352<=r&&a(r)?i.push(l,p):i.push(l)}return i},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var i,o;for(null==t&&(t=Infinity),n=n||0,o=0;o<e.length&&(9==(i=e.charCodeAt(o))?n+=this.getScreenTabSize(n):4352<=i&&a(i)?n+=2:n+=1,!(t<n));o++);return[n,o]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:undefined},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,o,r=0,s=0,a=0,l=0,c=this.$screenRowCache,h=this.$getRowCacheIndex(c,e),u=c.length;if(u&&0<=h){a=c[h],r=this.$docRowCache[h];var d=e>c[u-1]}else d=!u;for(var g=this.getLength()-1,f=this.getNextFoldLine(r),p=f?f.start.row:Infinity;a<=e&&!(e<a+(l=this.getRowLength(r))||g<=r);)a+=l,p<++r&&(r=f.end.row+1,p=(f=this.getNextFoldLine(r,f))?f.start.row:Infinity),d&&(this.$docRowCache.push(r),this.$screenRowCache.push(a));if(f&&f.start.row<=r)i=this.getFoldDisplayLine(f),r=f.start.row;else{if(a+l<=e||g<r)return{row:g,column:this.getLine(g).length};i=this.getLine(r),f=null}var m=0,v=Math.floor(e-a);if(this.$useWrapMode){var w=this.$wrapData[r];w&&(o=w[v],0<v&&w.length&&(m=w.indent,s=w[v-1]||w[w.length-1],i=i.substring(s)))}return n!==undefined&&this.$bidiHandler.isBidiRow(a+v,r,v)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&o<=s&&(s=o-1),f?f.idxToPosition(s):{row:r,column:s}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i=0,o=null,r=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),h=l.length;if(h&&0<=c){a=l[c],i=this.$screenRowCache[c];var u=e>l[h-1]}else u=!h;for(var d=this.getNextFoldLine(a),g=d?d.start.row:Infinity;a<e;){if(g<=a){if(e<(s=d.end.row+1))break;g=(d=this.getNextFoldLine(s,d))?d.start.row:Infinity}else s=a+1;i+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var f="";d&&g<=a?(f=this.getFoldDisplayLine(d,e,t),o=d.start.row):(f=this.getLine(e).substring(0,t),o=e);var p=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){for(var v=0;f.length>=m[v];)i++,v++;f=f.substring(m[v-1]||0,f.length),p=0<v?m.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(i+=this.lineWidgets[a].rowsAbove),{row:i,column:p+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,o=(a=0,(t=this.$foldData[a++])?t.start.row:Infinity);i<n;){var r=this.$wrapData[i];e+=r?r.length+1:1,o<++i&&(i=t.end.row+1,o=(t=this.$foldData[a++])?t.start.row:Infinity)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(r){this.$enableVarChar&&(this.$getStringScreenWidth=function(e,t,n){if(0===t)return[0,0];var i,o;for(t||(t=Infinity),n=n||0,o=0;o<e.length&&!(t<(n+="\t"===(i=e.charAt(o))?this.getScreenTabSize(n):r.getCharacterWidth(i)));o++);return[n,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=a}.call(g.prototype),e("./edit_session/folding").Folding.call(g.prototype),e("./edit_session/bracket_match").BracketMatch.call(g.prototype),r.defineOptions(g.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){0<(e=parseInt(e))&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e ){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=g}),ace.define("ace/search",[],function(e,t){"use strict";function s(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}var y=e("./lib/lang"),n=e("./lib/oop"),k=e("./range").Range,i=function(){this.$options={}};(function(){this.set=function(e){return n.mixin(this.$options,e),this},this.getOptions=function(){return y.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var o=this.$options,t=this.$matchIterator(e,o);if(!t)return!1;var r=null;return t.forEach(function(e,t,n,i){return r=new k(e,t,n,i),!(t==i&&o.start&&o.start.start&&0!=o.skipCurrent&&r.isEqual(o.start))||(r=null,!1)}),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),o=[],r=t.re;if(t.$isMultiLine){var s,a=r.length,l=i.length-a;e:for(var c=r.offset||0;c<=l;c++){for(var h=0;h<a;h++)if(-1==i[c+h].search(r[h]))continue e;var u=i[c],d=i[c+a-1],g=u.length-u.match(r[0])[0].length,f=d.match(r[a-1])[0].length;s&&s.end.row===c&&s.end.column>g||(o.push(s=new k(c,g,c+a-1,f)),2<a&&(c=c+a-2))}}else for(var p=0;p<i.length;p++){var m=y.getMatchOffsets(i[p],r);for(h=0;h<m.length;h++){var v=m[h];o.push(new k(p,v.offset,p,v.offset+v.length))}}if(n){var w=n.start.column,b=n.start.column;for(p=0,h=o.length-1;p<h&&o[p].start.column<w&&o[p].start.row==n.start.row;)p++;for(;p<h&&o[h].end.column>b&&o[h].end.row==n.end.row;)h--;for(o=o.slice(p,h+1),p=0,h=o.length;p<h;p++)o[p].start.row+=n.start.row,o[p].end.row+=n.start.row}return o},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var o=i.exec(e);if(!o||o[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var s=e[r];s&&s.toLowerCase()!=s?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=y.escapeRegExp(n)),e.wholeWord&&(n=s(n,e));var i=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var o=new RegExp(n,i)}catch(r){o=!1}return e.re=o},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],o=0;o<n.length;o++)try{i.push(new RegExp(n[o],t))}catch(r){return!1}return i},this.$matchIterator=function(h,n){var u=this.$assembleRegExp(n);if(!u)return!1;var l=1==n.backwards,e=0!=n.skipCurrent,t=n.range,i=n.start;i||(i=t?t[l?"end":"start"]:h.selection.getRange()),i.start&&(i=i[e!=l?"end":"start"]);var o=t?t.start.row:0,r=t?t.end.row:h.getLength()-1;if(l)var s=function(e){var t=i.row;if(!a(t,i.column,e)){for(t--;o<=t;t--)if(a(t,Number.MAX_VALUE,e))return;if(0!=n.wrap)for(t=r,o=i.row;o<=t;t--)if(a(t,Number.MAX_VALUE,e))return}};else s=function(e){var t=i.row;if(!a(t,i.column,e)){for(t+=1;t<=r;t++)if(a(t,0,e))return;if(0!=n.wrap)for(t=o,r=i.row;t<=r;t++)if(a(t,0,e))return}};if(n.$isMultiLine)var c=u.length,a=function(e,t,n){var i=l?e-c+1:e;if(!(i<0)){var o=h.getLine(i),r=o.search(u[0]);if(!(!l&&r<t||-1===r)){for(var s=1;s<c;s++)if(-1==(o=h.getLine(i+s)).search(u[s]))return;var a=o.match(u[c-1])[0].length;if(!(l&&t<a))return!!n(i,r,i+c-1,a)||void 0}}};else if(l)a=function(e,t,n){var i,o=h.getLine(e),r=[],s=0;for(u.lastIndex=0;i=u.exec(o);){var a=i[0].length;if(s=i.index,!a){if(s>=o.length)break;u.lastIndex=s+=1}if(i.index+a>t)break;r.push(i.index,a)}for(var l=r.length-1;0<=l;l-=2){var c=r[l-1];if(n(e,c,e,c+(a=r[l])))return!0}};else a=function(e,t,n){var i,o,r=h.getLine(e);for(u.lastIndex=t;o=u.exec(r);){var s=o[0].length;if(n(e,i=o.index,e,i+s))return!0;if(!s&&(u.lastIndex=i+=1,i>=r.length))return!1}};return{forEach:s}}}).call(i.prototype),t.Search=i}),ace.define("ace/keyboard/hash_handler",[],function(e,t){"use strict";function n(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function i(e,t){n.call(this,e,t),this.$singleCommand=!1}var a=e("../lib/keys"),o=e("../lib/useragent"),l=a.KEY_MODS;i.prototype=n.prototype,function(){function s(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var o in i){var r=i[o];if(r==e)delete i[o];else if(Array.isArray(r)){var s=r.indexOf(e);-1!=s&&(r.splice(s,1),1==r.length&&(i[o]=r[0]))}}},this.bindKey=function(e,r,s){if("object"==typeof e&&e&&(s==undefined&&(s=e.position),e=e[this.platform]),e)return"function"==typeof r?this.addCommand({exec:r,bindKey:e,name:r.name||e}):void e.split("|").forEach(function(e){var i="";if(-1!=e.indexOf(" ")){var t=e.split(/\s+/);e=t.pop(),t.forEach(function(e){var t=this.parseKeys(e),n=l[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")},this),i+=" "}var n=this.parseKeys(e),o=l[n.hashId]+n.key;this._addCommandToBinding(i+o,r,s)},this)},this._addCommandToBinding=function(e,t,n){var i,o=this.commandKeyBinding;if(t)if(!o[e]||this.$singleCommand)o[e]=t;else{Array.isArray(o[e])?-1!=(i=o[e].indexOf(t))&&o[e].splice(i,1):o[e]=[o[e]],"number"!=typeof n&&(n=s(t));var r=o[e];for(i=0;i<r.length;i++){if(n<s(r[i]))break}r.splice(i,0,t)}else delete o[e]},this.addCommands=function(n){n&&Object.keys(n).forEach(function(e){var t=n[e];if(t){if("string"==typeof t)return this.bindKey(t,e);"function"==typeof t&&(t={exec:t}),"object"==typeof t&&(t.name||(t.name=e),this.addCommand(t))}},this)},this.removeCommands=function(t){Object.keys(t).forEach(function(e){this.removeCommand(t[e])},this)},this.bindKeys=function(t){Object.keys(t).forEach(function(e){this.bindKey(e,t[e])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),i=a[n];if(a.FUNCTION_KEYS[i])n=a.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,r=t.length;r--;){var s=a.KEY_MODS[t[r]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function i(e,t){var n=l[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var o=l[t]+n,r=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,r=this.commandKeyBinding[e.$keyChain]||r),!r||"chainKeys"!=r&&"chainKeys"!=r[r.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||0<i)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:r}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(n.prototype),t.HashHandler=n,t.MultiHashHandler=i}),ace.define("ace/commands/command_manager",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,r=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};n.inherits(r,i),function(){n.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach(function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(r.prototype),t.CommandManager=r}),ace.define("ace/commands/default_commands",[],function(e,t){"use strict";function n(e,t){return{win:e,mac:t}}var c=e("../lib/lang"),i=e("../config"),h=e("../range").Range;t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:n("Ctrl-,","Command-,"),exec:function(t){i.loadModule("ace/ext/settings_menu",function(e){e.init(t),t.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:n("Alt-E","F4"),exec:function(t){i.loadModule("./ext/error_marker",function(e){e.showErrorMarker(t,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:n("Alt-Shift-E","Shift-F4"),exec:function(t){i.loadModule("./ext/error_marker",function(e){e.showErrorMarker(t,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:n("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:n(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:n("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:n("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:n("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:n("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:n("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:n("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:n("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:n("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:n("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:n("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:n("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:n("Ctrl-F","Command-F"),exec:function(t){i.loadModule("ace/ext/searchbox",function(e){e.Search(t)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:n("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:n("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:n("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:n("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:n("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:n("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:n("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:n("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:n("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:n("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:n("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:n("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:n("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:n("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:n("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:n("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:n("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:n("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:n("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:n("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:n(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:n("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:n(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:n("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:n("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:n("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:n("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:n("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:n("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:n("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:n(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:n("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:n("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:n("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:n("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:n("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:n("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:n("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:n("Ctrl-H","Command-Option-F"),exec:function(t){i.loadModule("ace/ext/searchbox",function(e){e.Search(t,!0)})}},{name:"undo",description:"Undo",bindKey:n("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:n("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:n("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:n("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:n("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:n("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:n("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:n("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:n("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:n("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:n("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:n("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:n("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:n("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:n("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:n("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:n("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:n("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:n("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(c.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:n(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:n("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:n("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:n("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:n(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:n("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:n(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),o=e.session.doc.getLine(n.row).length,r=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,s=e.session.doc.getLine(n.row),a=n.row+1;a<=i.row+1;a++){var l=c.stringTrimLeft(c.stringTrimRight(e.session.doc.getLine(a)));0!==l.length&&(l=" "+l),s+=l}i.row+1<e.session.doc.getLength()-1&&(s+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new h(n.row,0,i.row+2,0),s),0<r?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+r)):(o=e.session.doc.getLine(n.row).length>o?o+1:o,e.selection.moveCursorTo(n.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var r=0;r<i.length;r++)r==i.length-1&&(i[r].end.row===t&&i[r].end.column===n||o.push(new h(i[r].end.row,i[r].end.column,t,n))),0===r?0===i[r].start.row&&0===i[r].start.column||o.push(new h(0,0,i[r].start.row,i[r].start.column)):o.push(new h(i[r-1].end.row,i[r-1].end.column,i[r].start.row,i[r].start.column));e.exitMultiSelectMode(),e.clearSelection();for(r=0;r<o.length;r++)e.selection.addRange(o[r],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command pallete",bindKey:n("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:n(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var o=1;o<9;o++)t.commands.push({name:"foldToLevel"+o,description:"Fold To Level "+o,level:o,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),ace.define("ace/editor",[],function(e,t){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/oop"),n=e("./lib/dom"),m=e("./lib/lang"),o=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,a=e("./mouse/mouse_handler").MouseHandler,l=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,u=e("./search").Search,v=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,d=e("./commands/command_manager").CommandManager,g=e("./commands/default_commands").commands,f=e("./config"),w=e("./token_iterator").TokenIterator,p=e("./clipboard"),b=function(e,t,n){this.$toDestroy=[];var i=e.getContainerElement();this.container=i,this.renderer=e,this.id="editor"+ ++b.$uid,this.commands=new d(o.isMac?"mac":"win",g),"object"==typeof document&&(this.textInput=new s(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new l(this)),this.keyBinding=new c(this),this.$search=(new u).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=m.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||n&&n.session||new h("")),f.resetOptions(this),n&&this.setOptions(n),f._signal("editor",this)};b.$uid=0,function(){r.implement(this,i),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=m.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),o=this.renderer.layerConfig;(i.start.row>=o.lastRow||i.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var r=this.selection.toJSON();this.curOp.selectionAfter=r,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(r),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;this.mergeNextCommand===undefined&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf( e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(t,n){if(t&&"string"==typeof t&&"ace"!=t){this.$keybindingId=t;var i=this;f.loadModule(["keybinding",t],function(e){i.$keybindingId==t&&i.keyBinding.setKeyboardHandler(e&&e.handler),n&&n()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),n&&n()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}(this.session=e)?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||n.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var i=this;this.$highlightPending=!0,setTimeout(function(){i.$highlightPending=!1;var t=i.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach(function(e){t.removeMarker(e)}),t.$bracketHighlight=null);var e=t.getMatchingBracketRanges(i.getCursorPosition());if(!e&&t.$mode.getMatching&&(e=t.$mode.getMatching(i.session)),e){var n="ace_bracket";Array.isArray(e)?1==e.length&&(n="ace_error_bracket"):e=[e],2==e.length&&(0==v.comparePoints(e[0].end,e[1].start)?e=[v.fromPoints(e[0].start,e[1].end)]:0==v.comparePoints(e[0].start,e[1].end)&&(e=[v.fromPoints(e[1].start,e[0].end)])),t.$bracketHighlight={ranges:e,markerIds:e.map(function(e){return t.addMarker(e,n,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var p=this;this.$highlightTagPending=!0,setTimeout(function(){p.$highlightTagPending=!1;var e=p.session;if(e&&e.bgTokenizer){var t=p.getCursorPosition(),n=new w(p.session,t.row,t.column),i=n.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);if(-1===i.type.indexOf("tag-open")||(i=n.stepForward())){var o=i.value,r=i.value,s=0,a=n.stepBackward();if("<"===a.value)for(;a=i,(i=n.stepForward())&&(-1!==i.type.indexOf("tag-name")?o===(r=i.value)&&("<"===a.value?s++:"</"===a.value&&s--):o===r&&"/>"===i.value&&s--),i&&0<=s;);else{do{if(i=a,a=n.stepBackward(),i)if(-1!==i.type.indexOf("tag-name"))o===i.value&&("<"===a.value?s++:"</"===a.value&&s--);else if("/>"===i.value){for(var l=0,c=a;c;){if(-1!==c.type.indexOf("tag-name")&&c.value===o){s--;break}if("<"===c.value)break;c=n.stepBackward(),l++}for(var h=0;h<l;h++)n.stepForward()}}while(a&&s<=0);n.stepForward()}if(!i)return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);var u=n.getCurrentTokenRow(),d=n.getCurrentTokenColumn(),g=new v(u,d,u,d+i.value.length),f=e.$backMarkers[e.$tagHighlight];e.$tagHighlight&&f!=undefined&&0!==g.compareRange(f.range)&&(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null),e.$tagHighlight||(e.$tagHighlight=e.addMarker(g,"ace_bracket","text"))}}},50)}},this.focus=function(){var e=this;setTimeout(function(){e.isFocused()||e.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:Infinity;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||1<this.renderer.$minLines||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new v(e.row,e.column,e.row,Infinity);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(){var e=this.session;if(e.$selectionMarker&&e.removeMarker(e.$selectionMarker),e.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var t=this.selection.getRange(),n=this.getSelectionStyle();e.$selectionMarker=e.addMarker(t,"ace_selection",n)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,i=t.end.column,o=e.getLine(t.start.row),r=o.substring(n,i);if(!(5e3<r.length)&&/[\w\d]/.test(r)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:r}),a=o.substring(n-1,i+1);if(s.test(a))return s}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),o=0;o<i.length;o++){var r=i[o];o&&i[o-1].start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}}var s={text:e};return this._signal("copy",s),p.lineMode=n?s.text:"",s.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t==p.lineMode,i=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?i.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach(function(e){i.insert({row:e.start.row,column:0},t)});else{var o=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges,s=!(2!=o.length||o[0]&&o[1]);if(o.length!=r.length||s)return this.commands.exec("insertstring",this,t);for(var a=r.length;a--;){var l=r[a];l.isEmpty()||i.remove(l),i.insert(l.start,o[a])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=i.transformAction(n.getState(o.row),"insertion",this,n,e);r&&(e!==r.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=r.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(s=new v.fromPoints(o,o)).end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();o=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(o.row);if(o.column>a.search(/\S|$/)){var l=a.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,h=n.getState(o.row),u=(a=n.getLine(o.row),i.checkOutdent(h,a,e));if(n.insert(o,e),r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new v(o.row,c+r.selection[0],o.row,c+r.selection[1])):this.selection.setSelectionRange(new v(o.row+r.selection[0],r.selection[1],o.row+r.selection[2],r.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var d=i.getNextLineIndent(h,a.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},d)}u&&i.autoOutdent(h,n,o.row)}},this.autoIndent=function(){var e,t,n=this.session,i=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var r,s,a,l="",c="",h="",u=n.getTabString(),d=e;d<=t;d++)0<d&&(l=n.getState(d-1),c=n.getLine(d-1),h=i.getNextLineIndent(l,c,u)),r=n.getLine(d),h!==(s=i.$getIndent(r))&&(0<s.length&&(a=new v(d,0,d,s.length),n.remove(a)),0<h.length&&n.insert({row:d,column:0},h)),i.autoOutdent(l,n,d)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),o=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var r=n.getTextRange(t);if("\n"==r[r.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,o=this.session.getLine(e.row);t<o.length?(n=o.charAt(t)+o.charAt(t-1),i=new v(e.row,t-1,e.row,t+1)):(n=o.charAt(t-1)+o.charAt(t-2),i=new v(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){c=this.$getSelectedRows();return void e.indentRows(c.first,c.last,"\t")}}var i=e.getLine(t.start.row),o=t.start,r=e.getTabSize(),s=e.documentToScreenColumn(o.row,o.column);if(this.session.getUseSoftTabs())var a=r-s%r,l=m.stringRepeat(" ",a);else{for(a=s%r;" "==i[t.start.column-1]&&a;)t.start.column--,a--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var c=this.$getSelectedRows();e.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});var o=new v(0,0,0,0);for(i=e.first;i<=e.last;i++){var r=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=r.length,t.replace(o,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var i=this.session.getLine(e);n.lastIndex<t;){var o=n.exec(i);if(o.index<=t&&o.index+o[0].length>=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new v(t,n-1,t,n),o=this.session.getTextRange(i);if(!isNaN(parseFloat(o))&&isFinite(o)){var r=this.getNumberAt(t,n);if(r){var s=0<=r.value.indexOf(".")?r.start+r.value.indexOf(".")+1:r.end,a=r.start+r.value.length-s,l=parseFloat(r.value);l*=Math.pow(10,a),s!==r.end&&n<s?e*=Math.pow(10,r.end-n-1):e*=Math.pow(10,r.end-n),l+=e;var c=(l/=Math.pow(10,a)).toFixed(a),h=new v(t,r.start,t,r.end);this.session.replace(h,c),this.moveCursorTo(t,Math.max(r.start+1,n+c.length-r.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var t=this.selection.getCursor().row,e=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),i=this.selection.getWordRange().start.column,o=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),r=e-i-1;r<0&&(r=0);var s=0,a=0,l=this;n.match(/[A-Za-z0-9_]+/)&&o.forEach(function(e){a=s+e.length,s<=r&&r<=a&&(n=e,l.selection.clearSelection(),l.moveCursorTo(t,s+i),l.selection.selectTo(t,a+i)),s=a});for(var c,h=this.$toggleWordPairs,u=0;u<h.length;u++)for(var d=h[u],g=0;g<=1;g++){var f=+!g,p=n.match(new RegExp("^\\s?_?("+m.escapeRegExp(d[g])+")\\s?$","i"));if(p)n.match(new RegExp("([_]|^|\\s)("+m.escapeRegExp(p[1])+")($|\\s)","g"))&&(c=n.replace(new RegExp(m.escapeRegExp(d[g]),"i"),function(e){var t=d[f];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+d[f].charAt(0).toUpperCase()+t.substr(1)),t}),this.insert(c),c="")}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),i=e.isBackwards();if(n.isEmpty()){var o=n.start.row;t.duplicateLines(o,o)}else{var r=i?n.start:n.end,s=t.insert(r,t.getTextRange(n),!1);n.start=r,n.end=s,e.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,i,o=this.selection;if(!o.inMultiSelectMode||this.inVirtualSelectionMode){var r=o.toOrientedRange();n=this.$getSelectedRows(r),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),r.moveBy(i,0),o.fromOrientedRange(r)}else{var s=o.rangeList.ranges;o.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,h=0;h<c;h++){var u=h;s[h].moveBy(a,0);for(var d=(n=this.$getSelectedRows(s[h])).first,g=n.last;++h<c;){l&&s[h].moveBy(l,0);var f=this.$getSelectedRows(s[h]);if(t&&f.first!=g)break;if(!t&&f.first>g+1)break;g=f.last}for(h--,a=this.session.$moveLines(d,g,t?0:e),t&&-1==e&&(u=h+1);u<=h;)s[u].moveBy(a,0),u++;t||(a=0),l+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight);!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(o,0)}):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var r=n.scrollTop;n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(r)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new w(this.session,n.row,n.column),o=i.getCurrentToken(),r=o||i.stepForward();if(r){var s,a,l=!1,c={},h=n.column-r.start,u={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(r.value.match(/[{}()\[\]]/g)){for(;h<r.value.length&&!l;h++)if(u[r.value[h]])switch(a=u[r.value[h]]+"."+r.type.replace("rparen","lparen"),isNaN(c[a])&&(c[a]=0),r.value[h]){case"(":case"[":case"{":c[a]++;break;case")":case"]":case"}":c[a]--,-1===c[a]&&(s="bracket",l=!0)}}else-1!==r.type.indexOf("tag-name")&&(isNaN(c[r.value])&&(c[r.value]=0),"<"===o.value?c[r.value]++:"</"===o.value&&c[r.value]--,-1===c[r.value]&&(s="tag",l=!0));l||(o=r,r=i.stepForward(),h=0)}while(r&&!l);if(s){var d,g;if("bracket"===s)(d=this.session.getBracketRange(n))||(g=(d=new v(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+h-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+h-1)).start,(t||g.row===n.row&&Math.abs(g.column-n.column)<2)&&(d=this.session.getBracketRange(g)));else if("tag"===s){if(!r||-1===r.type.indexOf("tag-name"))return;var f=r.value;if(0===(d=new v(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column))for(l=!1;r=o,(o=i.stepBackward())&&(-1!==o.type.indexOf("tag-close")&&d.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),r.value===f&&-1!==r.type.indexOf("tag-name")&&("<"===o.value?c[f]++:"</"===o.value&&c[f]--,0===c[f]&&(l=!0))),o&&!l;);r&&r.type.indexOf("tag-name")&&(g=d.start).row==n.row&&Math.abs(g.column-n.column)<2&&(g=d.end)}(g=d&&d.cursor||g)&&(e?d&&t?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n&&(this.$tryReplace(n,e)&&(i=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),i},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=n.length-1;0<=r;--r)this.$tryReplace(n[r],e)&&i++;return this.selection.setSelectionRange(o),i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var o,r=this,s=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var a=this.$scrollAnchor;a.style.cssText="position:absolute",this.container.insertBefore(a,this.container.firstChild);var t=this.on("changeSelection", function(){s=!0}),n=this.renderer.on("beforeRender",function(){s&&(o=r.renderer.container.getBoundingClientRect())}),i=this.renderer.on("afterRender",function(){if(s&&o&&(r.isFocused()||r.searchBox&&r.searchBox.isFocused())){var e=r.renderer,t=e.$cursorLayer.$pixelPos,n=e.layerConfig,i=t.top-n.offset;null!=(s=0<=t.top&&i+o.top<0||!(t.top<n.height&&t.top+o.top+n.lineHeight>window.innerHeight)&&null)&&(a.style.top=i+"px",a.style.left=t.left+"px",a.style.height=n.lineHeight+"px",a.scrollIntoView(s)),s=o=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",i),this.renderer.off("beforeRender",n))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(t,n,i){var o=this;f.loadModule("./ext/prompt",function(e){e.prompt(o,t,n,i)})}}.call(b.prototype),f.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?y.attach(this):y.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?y.attach(this):y.detach(this)}},placeholder:{set:function(){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),n.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),n.addCssClass(this.container,"ace_hasPlaceholder");var t=n.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var y={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"\xb7":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=b}),ace.define("ace/undomanager",[],function(e,t){"use strict";function r(e,t){for(var n=t;n--;){var i=e[n];if(i&&!i[0].ignore){for(;n<t-1;){var o=l(e[n],e[n+1]);e[n]=o[0],e[n+1]=o[1],n++}return!0}}}function a(e){return{row:e.row,column:e.column}}function s(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}function n(e){if(e=e||this,Array.isArray(e))return e.map(n).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(i).join("\n"):i(e.value)),e.start&&(t+=i(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function i(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function o(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)if(0<=v(t.start,e.end))h(t,e,-1);else{if(!(v(t.start,e.start)<=0))return null;h(e,t,1)}else if(n&&!i)if(0<=v(t.start,e.end))h(t,e,-1);else{if(!(v(t.end,e.start)<=0))return null;h(e,t,-1)}else if(!n&&i)if(0<=v(t.start,e.start))h(t,e,1);else{if(!(v(t.start,e.start)<=0))return null;h(e,t,1)}else if(!n&&!i)if(0<=v(t.start,e.start))h(t,e,1);else{if(!(v(t.end,e.start)<=0))return null;h(e,t,-1)}return[t,e]}function l(e,t){for(var n=e.length;n--;)for(var i=0;i<t.length;i++)if(!o(e[n],t[i])){for(;n<e.length;){for(;i--;)o(t[i],e[n]);i=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function c(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)v(e.start,t.start)<0?h(t,e,1):h(e,t,1);else if(n&&!i)0<=v(e.start,t.end)?h(e,t,-1):(v(e.start,t.start)<=0||h(e,m.fromPoints(t.start,e.start),-1),h(t,e,1));else if(!n&&i)0<=v(t.start,e.end)?h(t,e,-1):(v(t.start,e.start)<=0||h(t,m.fromPoints(e.start,t.start),-1),h(e,t,1));else if(!n&&!i)if(0<=v(t.start,e.end))h(t,e,-1);else{var o,r;if(!(v(t.end,e.start)<=0))return v(e.start,t.start)<0&&(e=d(o=e,t.start)),0<v(e.end,t.end)&&(r=d(e,t.end)),u(t.end,e.start,e.end,-1),r&&!o&&(e.lines=r.lines,e.start=r.start,e.end=r.end,r=e),[t,o,r].filter(Boolean);h(e,t,-1)}return[t,e]}function h(e,t,n){u(e.start,t.start,t.end,n),u(e.end,t.start,t.end,n)}function u(e,t,n,i){e.row==(1==i?t:n).row&&(e.column+=i*(n.column-t.column)),e.row+=i*(n.row-t.row)}function d(e,t){var n=e.lines,i=e.end;e.end=a(t);var o=e.end.row-e.start.row,r=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;return n.push(r[0].substring(0,s)),r[0]=r[0].substr(s),{start:a(t),end:i,lines:r,action:e.action}}function g(e,t){t=s(t);for(var n=e.length;n--;){for(var i=e[n],o=0;o<i.length;o++){var r=c(i[o],t);t=r[0],2!=r.length&&(r[2]?(i.splice(o+1,1,r[1],r[2]),o++):r[1]||(i.splice(o,1),o--))}i.length||e.splice(n,1)}return e}function f(e,t){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;o++)g(e,i[o])}var p=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=n.length;i--;){var o=n[i][0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var n=this.selections,i=n.length;i--;){var o=n[i];if(o.rev<e)return t&&(o=n[i+1]),o}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=null,o=0,r=n.length;r--;){var s=n[r][0];if(s.id<t&&!i&&(i=r+1),s.id<=e){o=r+1;break}}return n.slice(o,i)},this.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},this.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},this.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(r(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var i=n.pop(),o=null;return i&&(o=e.undoChanges(i,t),this.$redoStack.push(i),this.$syncRev()),this.$fromUndo=!1,o}},this.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);f(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(e){e[0].id=++this.$maxRev},this)}var i=this.$redoStack.pop(),o=null;return i&&(o=e.redoChanges(i,t),this.$undoStack.push(i),this.$syncRev()),this.$fromUndo=!1,o},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return 0<this.$undoStack.length},this.canRedo=function(){return 0<this.$redoStack.length},this.bookmark=function(e){e==undefined&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?n(e):n(this.$undoStack)+"\n---\n"+n(this.$redoStack)}}).call(p.prototype);var m=e("./range").Range,v=m.comparePoints;m.comparePoints;t.UndoManager=p}),ace.define("ace/layer/lines",[],function(e,t){"use strict";var s=e("../lib/dom"),n=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){s.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight,o=Math.floor(i/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-o*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=s.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=s.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,n,i){var o=this.cellCache.pop();if(!o){var r=s.createElement("div");i&&i(r),this.element.appendChild(r),o={element:r,text:"",row:e}}return o.row=e,o}}).call(n.prototype),t.Lines=n}),ace.define("ace/layer/gutter",[],function(e,t){"use strict";function c(e){var t=document.createTextNode("");e.appendChild(t);var n=w.createElement("span");return e.appendChild(n),e}var w=e("../lib/dom"),n=e("../lib/oop"),a=e("../lib/lang"),i=e("../lib/event_emitter").EventEmitter,o=e("./lines").Lines,r=function(e){this.element=w.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new o(this.element),this.$lines.$offsetCoefficient=1};(function(){n.implement(this,i),this.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),(this.session=e)&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,o=this.$annotations[i];o||(o=this.$annotations[i]={text:[]});var r=n.text;r=r?a.escapeHTML(r):n.html||"",-1===o.text.indexOf(r)&&o.text.push(r);var s=n.type;"error"==s?o.className=" ace_error":"warning"==s&&" ace_error"!=o.className?o.className=" ace_warning":"info"!=s||o.className||(o.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){this.config=e;var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=i,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();for(var o=t.getNextFoldLine(n),r=o?o.start.row:Infinity,s=null,a=-1,l=n;;){if(r<l&&(l=o.end.row+1,r=(o=t.getNextFoldLine(l,o))?o.start.row:Infinity),i<l){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(s=this.$lines.get(++a))?s.row=l:(s=this.$lines.createCell(l,e,this.session,c),this.$lines.push(s)),this.$renderCell(s,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1);var r=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,s=this.$padding||this.$computePadding();(r+=s.left+s.right)===this.gutterWidth||isNaN(r)||(this.gutterWidth=r,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",r))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var i=t[n];if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(0<n&&o&&o.start.row==t[n-1].row))break;i=t[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<o;o--)this.$lines.shift();if(n<i)for(o=this.session.getFoldedRowCount(n+1,i);0<o;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),i<n&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){for(var i=[],o=t,r=this.session.getNextFoldLine(o),s=r?r.start.row:Infinity;s<o&&(o=r.end.row+1,s=(r=this.session.getNextFoldLine(o,r))?r.start.row:Infinity),!(n<o);){var a=this.$lines.createCell(o,e,this.session,c);this.$renderCell(a,e,r,o),i.push(a),o++}return i},this.$renderCell=function(e,t,n,i){var o=e.element,r=this.session,s=o.childNodes[0],a=o.childNodes[1],l=r.$firstLineNumber,c=r.$breakpoints,h=r.$decorations,u=r.gutterRenderer||this.$renderer,d=this.$showFoldWidgets&&r.foldWidgets,g=n?n.start.row:Number.MAX_VALUE,f="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&g<=i&&this.$cursorRow<=n.end.row)&&(f+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),c[i]&&(f+=c[i]),h[i]&&(f+=h[i]),this.$annotations[i]&&(f+=this.$annotations[i].className),o.className!=f&&(o.className=f),d){var p=d[i];null==p&&(p=d[i]=r.getFoldWidget(i))}if(p){f="ace_fold-widget ace_"+p;"start"==p&&i==g&&i<n.end.row?f+=" ace_closed":f+=" ace_open",a.className!=f&&(a.className=f);var m=t.lineHeight+"px";w.setStyle(a.style,"height",m),w.setStyle(a.style,"display","inline-block")}else a&&w.setStyle(a.style,"display","none");var v=(u?u.getText(r,i):i+l).toString();return v!==s.data&&(s.data=v),w.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,r)+"px"),w.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,r)+"px"),e.text=v,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?w.addCssClass(this.element,"ace_folding-enabled"):w.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=w.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(r.prototype),t.Gutter=r}),ace.define("ace/layer/marker",[],function(e,t){"use strict";var f=e("../range").Range,n=e("../lib/dom"),i=function(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function g(e,t,n,i){return(e?1:0)|(t?2:0)|(n?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var i=this.markers[n];if(i.range){var o=i.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),i.renderer){var r=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth;i.renderer(t,o,s,r,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,o,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,o,i.clazz,e):o.isMultiLine()?"text"==i.type?this.drawTextMarker(t,o,i.clazz,e):this.drawMultiLineMarker(t,o,i.clazz,e):this.drawSingleLineMarker(t,o,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,i,o){for(var r=this.session,s=t.start.row,a=t.end.row,l=s,c=0,h=0,u=r.getScreenLastRowColumn(l),d=new f(l,t.start.column,l,h);l<=a;l++)d.start.row=d.end.row=l,d.start.column=l==s?t.start.column:r.getRowWrapIndent(l),c=h,h=d.end.column=u,u=l+1<a?r.getScreenLastRowColumn(l+1):l==a?0:t.end.column,this.drawSingleLineMarker(e,d,n+(l==s?" ace_start":"")+" ace_br"+g(l==s||l==s+1&&t.start.column,c<h,u<h,l==a),i,l==a?0:1,o)},this.drawMultiLineMarker=function(e,t,n,i,o){var r=this.$padding,s=i.lineHeight,a=this.$getTop(t.start.row,i),l=r+t.start.column*i.characterWidth;(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",i,null,o)):this.elt(n+" ace_br1 ace_start","height:"+s+"px;right:0;top:"+a+"px;left:"+l+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",i,null,o)}else{a=this.$getTop(t.end.row,i);var h=t.end.column*i.characterWidth;this.elt(n+" ace_br12","height:"+s+"px;width:"+h+"px;top:"+a+"px;left:"+r+"px;"+(o||""))}if(!((s=(t.end.row-t.start.row-1)*i.lineHeight)<=0)){a=this.$getTop(t.start.row+1,i);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(u?" ace_br"+u:""),"height:"+s+"px;right:0;top:"+a+"px;left:"+r+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,n,i,o,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,r);var s=i.lineHeight,a=(t.end.column+(o||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),c=this.$padding+t.start.column*i.characterWidth;this.elt(n,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+c+"px;"+(r||""))},this.drawBidiSingleLineMarker=function(e,t,n,i,o,r){var s=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(e){this.elt(n,"height:"+s+"px;width:"+e.width+(o||0)+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(r||""))},this)},this.drawFullLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-r),this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))}}).call(i.prototype),t.Marker=i}),ace.define("ace/layer/text",[],function(e,t){"use strict";var n=e("../lib/oop"),c=e("../lib/dom"),w=e("../lib/lang"),i=e("./lines").Lines,o=e("../lib/event_emitter").EventEmitter,r=function(e){this.dom=c,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new i(this.element)};(function(){n.implement(this,o),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){(this.session=e)&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&("string"==typeof(this.showInvisibles=e)?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++){if(this.showTabs)(i=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",i.textContent=w.stringRepeat(this.TAB_CHAR,n),t.push(i);else t.push(this.dom.createTextNode(w.stringRepeat(" ",n),this.element))}if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i,o="ace_indent-guide",r=this.showSpaces?" ace_invisible ace_invisible_space":"",s=this.showSpaces?w.stringRepeat(this.SPACE_CHAR,this.tabSize):w.stringRepeat(" ",this.tabSize),a=this.showTabs?" ace_invisible ace_invisible_tab":"",l=this.showTabs?w.stringRepeat(this.TAB_CHAR,this.tabSize):s;(i=this.dom.createElement("span")).className=o+r,i.textContent=s,this.$tabStrings[" "]=i,(i=this.dom.createElement("span")).className=o+a,i.textContent=l,this.$tabStrings["\t"]=i}},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var i=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}s++}for(var l,c=!1,h=(a=i,(l=this.session.getNextFoldLine(a))?l.start.row:Infinity);h<a&&(a=l.end.row+1,h=(l=this.session.getNextFoldLine(a,l))?l.start.row:Infinity),!(o<a);){var u=r[s++];if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==h&&l),c&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var d=e.lineHeight*this.session.getRowLength(a)+"px";u.style.height!=d&&(c=!0,u.style.height=d)}a++}if(c)for(;s<this.$lines.cells.length;){var g=this.$lines.cells[s++];g.element.style.top=this.$lines.computeLineTop(g.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,i=t?t.lastRow:-1;if(!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<o;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0<o;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){for(var i=[],o=t,r=this.session.getNextFoldLine(o),s=r?r.start.row:Infinity;s<o&&(o=r.end.row+1,s=(r=this.session.getNextFoldLine(o,r))?r.start.row:Infinity),!(n<o);){var a=this.$lines.createCell(o,e,this.session),l=a.element;this.dom.removeChildren(l),c.setStyle(l.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),c.setStyle(l.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(l,o,o==s&&r),this.$useLineGroups()?l.className="ace_line_group":l.className="ace_line",i.push(a),o++}return i},this.update=function(e){this.$lines.moveContainer(e);for(var t=(this.config=e).firstRow,n=e.lastRow,i=this.$lines;i.getLength();)i.pop();i.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){for(var o,r=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,a=this.dom.createFragment(this.element),l=0;o=s.exec(i);){var c=o[1],h=o[2],u=o[3],d=o[4],g=o[5];if(r.showSpaces||!h){var f=l!=o.index?i.slice(l,o.index):"";if(l=o.index+o[0].length,f&&a.appendChild(this.dom.createTextNode(f,this.element)),c){var p=r.session.getScreenTabSize(t+o.index);a.appendChild(r.$tabStrings[p].cloneNode(!0)),t+=p-1}else if(h){if(r.showSpaces)(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",v.textContent=w.stringRepeat(r.SPACE_CHAR,h.length),a.appendChild(v);else a.appendChild(this.com.createTextNode(h,this.element))}else if(u){(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",v.textContent=w.stringRepeat(r.SPACE_CHAR,u.length),a.appendChild(v)}else if(d){t+=1,(v=this.dom.createElement("span")).style.width=2*r.config.characterWidth+"px",v.className=r.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=r.showSpaces?r.SPACE_CHAR:d,a.appendChild(v)}else if(g){t+=1,(v=this.dom.createElement("span")).style.width=2*r.config.characterWidth+"px",v.className="ace_cjk",v.textContent=g,a.appendChild(v)}}}if(a.appendChild(this.dom.createTextNode(l?i.slice(l):i,this.element)),this.$textToken[n.type])e.appendChild(a);else{var m="ace_"+n.type.replace(/\./g," ace_"),v=this.dom.createElement("span");"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px"),v.className=m,v.appendChild(a),e.appendChild(v)}return t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||n<=i)return t;if(" "==t[0]){for(var o=(i-=i%this.tabSize)/this.tabSize,r=0;r<o;r++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return t.substr(i)}if("\t"!=t[0])return t;for(r=0;r<i;r++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return t.substr(i)},this.$createLineElement=function(){var e=this.dom.createElement("div");return e.className="ace_line",e.style.height=this.config.lineHeight+"px",e},this.$renderWrappedLine=function(e,t,n){var i=0,o=0,r=n[0],s=0,a=this.$createLineElement();e.appendChild(a);for(var l=0;l<t.length;l++){var c=t[l],h=c.value;if(0==l&&this.displayIndentGuides){if(i=h.length,!(h=this.renderIndentGuide(a,h,r)))continue;i-=h.length}if(i+h.length<r)s=this.$renderToken(a,s,c,h),i+=h.length;else{for(;i+h.length>=r;)s=this.$renderToken(a,s,c,h.substring(0,r-i)),h=h.substring(r-i),i=r,a=this.$createLineElement(),e.appendChild(a),a.appendChild(this.dom.createTextNode(w.stringRepeat("\xa0",n.indent),this.element)),s=0,r=n[++o]||Number.MAX_VALUE;0!=h.length&&(i+=h.length,s=this.$renderToken(a,s,c,h))}} n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(a,s,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],o=i.value;this.displayIndentGuides&&(o=this.renderIndentGuide(e,o)),o&&(n=this.$renderToken(e,n,i,o));for(var r=1;r<t.length;r++){if(n+(o=(i=t[r]).value).length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,i,o);n=this.$renderToken(e,n,i,o)}},this.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderToken(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t));var r=this.dom.createElement("span");r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=o?"<hide>":"<click to see more...>",e.appendChild(r)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var i=this.$getFoldLineTokens(t,n);else i=this.session.getTokens(t);var o=e;if(i.length){var r=this.session.getRowSplitData(t);if(r&&r.length){this.$renderWrappedLine(e,i,r);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,i)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s)}},this.$getFoldLineTokens=function(e,t){function r(e,t,n){for(var i=0,o=0;o+e[i].value.length<t;)if(o+=e[i].value.length,++i==e.length)return;o!=t&&((r=e[i].value.substring(t-o)).length>n-t&&(r=r.substring(0,n-t)),a.push({type:e[i].type,value:r}),o=t+r.length,i+=1);for(;o<n&&i<e.length;){var r;(r=e[i].value).length+o>n?a.push({type:e[i].type,value:r.substring(0,n-o)}):a.push(e[i]),o+=r.length,i+=1}}var s=this.session,a=[],l=s.getTokens(e);return t.walk(function(e,t,n,i,o){null!=e?a.push({type:"fold",value:e}):(o&&(l=s.getTokens(t)),l.length&&r(l,i,n))},t.end.row,this.session.getLine(t.end.row).length),a},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(r.prototype),t.Text=r}),ace.define("ace/layer/cursor",[],function(e,t){"use strict";var c=e("../lib/dom"),n=function(e){this.element=c.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),c.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)c.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&c.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,c.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,c.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=c.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(1<this.cursors.length){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,c.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,c.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,c.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&c.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),c.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return 0<=e.top&&e.top<t.maxHeight},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;t!==undefined&&0!==t.length||(t=[{cursor:null}]);n=0;for(var o=t.length;n<o;n++){var r=this.getPixelPosition(t[n].cursor,!0);if(!((r.top>e.height+e.offset||r.top<0)&&1<n)){var s=this.cursors[i++]||this.addCursor(),a=s.style;this.drawCursor?this.drawCursor(s,r,e,t[n],this.session):this.isCursorInView(r,e)?(c.setStyle(a,"display","block"),c.translate(s,r.left,r.top),c.setStyle(a,"width",Math.round(e.characterWidth)+"px"),c.setStyle(a,"height",e.lineHeight+"px")):c.setStyle(a,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=r,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?c.addCssClass(this.element,"ace_overwrite-cursors"):c.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),t.Cursor=n}),ace.define("ace/scrollbar",[],function(e,t){"use strict";var n=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),r=e("./lib/event_emitter").EventEmitter,s=32768,a=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){n.implement(this,r),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};n.inherits(l,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,s<e?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var c=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(c,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(c.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=c,t.VScrollBar=l,t.HScrollBar=c}),ace.define("ace/renderloop",[],function(e,t){"use strict";var i=e("./lib/event"),n=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(){n.pending=!1;var e=n.changes;if(e&&(i.blockIdle(100),n.changes=0,n.onRender(e)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},this.clear=function(){var e=this.changes;return this.changes=0,e}}).call(n.prototype),t.RenderLoop=n}),ace.define("ace/layer/font_metrics",[],function(e,t){var n=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),r=e("../lib/event"),s=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=256,c="function"==typeof ResizeObserver,b=200,h=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",l),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};(function(){n.implement(this,a),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(e===undefined&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver(function(){e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=r.onIdle(function t(){e.checkForSizeChanges(),r.onIdle(t,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/l};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,l),this.$main.getBoundingClientRect().width/l},this.getCharacterWidth=function(e){var t=this.charSizes[e];return t===undefined&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function t(e){return e&&e.parentElement?(window.getComputedStyle(e).zoom||1)*t(e.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(b,0),e(0,b),e(b,b)],this.el)},this.transformCoordinates=function(e,t){function n(e,t,n){var i=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/i,(+e[1]*n[0]-e[0]*n[1])/i]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function r(e,t){return[e*t[0],e*t[1]]}function s(e){var t=e.getBoundingClientRect();return[t.left,t.top]}e&&(e=r(1/this.$getZoom(this.el),e));this.els||this.$initTransformMeasureNodes();var a=s(this.els[0]),l=s(this.els[1]),c=s(this.els[2]),h=s(this.els[3]),u=n(i(h,l),i(h,c),i(o(l,c),o(h,a))),d=r(1+u[0],i(l,a)),g=r(1+u[1],i(c,a));if(t){var f=t,p=u[0]*f[0]/b+u[1]*f[1]/b+1,m=o(r(f[0],d),r(f[1],g));return o(r(1/p/b,m),a)}var v=i(e,a),w=n(i(d,r(u[0],v)),i(g,r(u[1],v)),v);return r(b,w)}}).call(h.prototype)}),ace.define("ace/virtual_renderer",[],function(e,t){"use strict";var n=e("./lib/oop"),h=e("./lib/dom"),r=e("./config"),o=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,a=e("./layer/text").Text,l=e("./layer/cursor").Cursor,c=e("./scrollbar").HScrollBar,u=e("./scrollbar").VScrollBar,d=e("./renderloop").RenderLoop,g=e("./layer/font_metrics").FontMetrics,i=e("./lib/event_emitter").EventEmitter,f='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',p=e("./lib/useragent"),m=p.isIE;h.importCssString(f,"ace_editor.css");var v=function(e,t){var n=this;this.container=e||h.createElement("div"),h.addCssClass(this.container,"ace_editor"),h.HI_DPI&&h.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=h.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=h.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=h.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new o(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var i=this.$textLayer=new a(this.content);this.canvas=i.element,this.$markerFront=new s(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!p.isIOS,this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),r.resetOptions(this),r._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,i),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),h.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(t===undefined&&(t=Infinity),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=e?1:0;var o=this.container;i||(i=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var r=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0 ):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var o=0,r=this.$size,s={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};if(i&&(e||r.height!=i)&&(r.height=i,o|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||r.width!=n)){o|=this.CHANGE_SIZE,r.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,h.setStyle(this.scrollBarH.element.style,"left",t+"px"),h.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),r.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),h.setStyle(this.$gutter.style,"left",this.margin.left+"px");var a=this.scrollBarV.getWidth()+"px";h.setStyle(this.scrollBarH.element.style,"right",a),h.setStyle(this.scroller.style,"right",a),h.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return r.$dirty=!n||!i,o&&this._signal("resize",s),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=h.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=h.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var i=this.layerConfig,o=n.top,r=n.left;o-=i.offset;var s=t&&t.useTextareaForIME?this.lineHeight:m?0:1;if(o<0||o>i.height-s)h.translate(this.textarea,0,0);else{var a=1,l=this.$size.height-s;if(t)if(t.useTextareaForIME){var c=this.textarea.value;a=this.characterWidth*this.session.$getStringScreenWidth(c)[0]}else o+=this.lineHeight+2;else o+=this.lineHeight;(r-=this.scrollLeft)>this.$size.scrollerWidth-a&&(r=this.$size.scrollerWidth-a),r+=this.gutterWidth+this.margin.left,h.setStyle(e,"height",s+"px"),h.setStyle(e,"width",a+"px"),h.translate(this.textarea,Math.min(r,this.$size.scrollerWidth-a),Math.min(o,l))}}}else h.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;0<i&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),h.translate(this.content,-this.scrollLeft,-n.offset);var o=n.width+2*this.$padding+"px",r=n.minHeight+"px";h.setStyle(this.content.style,"width",o),h.setStyle(this.content.style,"height",r)}if(e&this.CHANGE_H_SCROLL&&(h.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=!(n<=2*this.lineHeight)&&t<e;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),r=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),s=this.$horizScroll!==r;s&&(this.$horizScroll=r,this.scrollBarH.setVisible(r));var a=this.$vScroll;this.$maxLines&&1<this.lineHeight&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=c;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,i-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+h.right)));var u=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+c<0||this.scrollTop>h.top),d=a!==u;d&&(this.$vScroll=u,this.scrollBarV.setVisible(u));var g,f,p=this.scrollTop%this.lineHeight,m=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-p)/this.lineHeight)),w=v+m,b=this.lineHeight;v=e.screenToDocumentRow(v,0);var y=e.getFoldLine(v);y&&(v=y.start.row),g=e.documentToScreenRow(v,0),f=e.getRowLength(v)*b,w=Math.min(e.screenToDocumentRow(w,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(w)*b+f,p=this.scrollTop-g*b;var k=0;return(this.layerConfig.width!=o||s)&&(k=this.CHANGE_H_SCROLL),(s||d)&&(k|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),d&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:v,firstRowScreen:g,lastRow:w,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:i,offset:p,gutterOffset:b?Math.max(0,Math.ceil((p+t.height-t.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),k},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===Infinity?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),o=i.left,r=i.top,s=n&&n.top||0,a=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;r<l+s?(t&&l+s>r+this.lineHeight&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop(r)):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<r-this.lineHeight&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight+a-this.$size.scrollerHeight));var c=this.scrollLeft;o<c?(o<this.$padding+2*this.layerConfig.characterWidth&&(o=-this.scrollMargin.left),this.session.setScrollLeft(o)):c+this.$size.scrollerWidth<o+this.characterWidth?this.session.setScrollLeft(Math.round(o+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&o-c<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,o=n.top-i*(t||0);return this.session.setScrollTop(o),o},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,i=this.STEPS,o=[],r=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<i;++n)o.push(r(n/this.STEPS,e,t-e));return o},this.scrollToLine=function(e,t,n,i){var o=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(o-=this.$size.scrollerHeight/2);var r=this.scrollTop;this.session.setScrollTop(o),!1!==n&&this.animateScrolling(r,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var o=this.$scrollAnimation.steps;if(o.length&&(e=o[0])==n)return}var r=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:r},clearInterval(this.$timer),i.session.setScrollTop(r.shift()),i.session.$scrollTop=n,this.$timer=setInterval(function(){if(!i.session)return clearInterval(i.$timer);r.length?(i.session.setScrollTop(r.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,t&&t())},10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(0<t&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(0<e&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor(r):Math.round(r);return{row:s,column:a,side:0<r-a?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=this.$blockCursor?Math.floor(r):Math.round(r),a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),o)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),r=i.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+r-this.scrollTop}},this.visualizeFocus=function(){h.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){h.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){(this.$composition=e).cssText||(e.cssText=this.textarea.style.cssText),e.useTextareaForIME==undefined&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(h.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),h.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,i){var o=this.session;o.bgTokenizer.lines[n]=null;var r={type:t,value:e},s=o.getTokens(n);if(null==i)s.push(r);else for(var a=0,l=0;l<s.length;l++){var c=s[l];if(i<=(a+=c.value.length)){var h=c.value.length-(a-i),u=c.value.slice(0,h),d=c.value.slice(h);s.splice(l,1,{type:c.type,value:u},r,{type:c.type,value:d});break}}this.updateLines(n,n)},this.removeExtraToken=function(e){this.updateLines(e,e)},this.setTheme=function(n,i){function e(e){if(o.$themeId!=n)return i&&i();if(!e||!e.cssClass)throw new Error("couldn't load module "+n+" or it didn't call define");e.$id&&(o.$themeId=e.$id),h.importCssString(e.cssText,e.cssClass,o.container),o.theme&&h.removeCssClass(o.container,o.theme.cssClass);var t="padding"in e?e.padding:"padding"in(o.theme||{})?4:o.$padding;o.$padding&&t!=o.$padding&&o.setPadding(t),o.$theme=e.cssClass,o.theme=e,h.addCssClass(o.container,e.cssClass),h.setCssClass(o.container,"ace_dark",e.isDark),o.$size&&(o.$size.width=0,o.$updateSizeAsync()),o._dispatchEvent("themeLoaded",{theme:e}),i&&i()}var o=this;if(this.$themeId=n,o._dispatchEvent("themeChange",{theme:n}),n&&"string"!=typeof n)e(n);else{var t=n||this.$options.theme.initialValue;r.loadModule(["theme",t],e)}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){h.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){h.removeCssClass(this.container,e)},this.setCursorStyle=function(e){h.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){h.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){h.importCssString(f,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""}}).call(v.prototype),r.defineOptions(v.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){h.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(){this.updateFull()}},minLines:{set:function(){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!p.isMobile&&!p.isIE}}),t.VirtualRenderer=v}),ace.define("ace/worker/worker_client",[],function(a,e){"use strict";function i(e){var t="importScripts('"+r.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(o){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,i=new n;return i.append(t),i.getBlob("application/javascript")}}function l(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var t=i(e),n=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(n)}return new Worker(e)}var t=a("../lib/oop"),r=a("../lib/net"),c=a("../lib/event_emitter").EventEmitter,h=a("../config"),u=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){t.implement(this,c),this.$createWorkerFromOldConfig=function(e,t,n,i,o){if(a.nameToUrl&&!a.toUrl&&(a.toUrl=a.nameToUrl),h.get("packaged")||!a.toUrl)i=i||h.moduleUrl(t,"worker");else{var r=this.$normalizePath;i=i||r(a.toUrl("ace/worker/worker.js",null,"_"));var s={};e.forEach(function(e){s[e]=r(a.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=l(i),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:s,module:t,classname:n}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,50<e.length&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(u.prototype);var n=function(e,t,n){var i=null,o=!1,r=Object.create(c),s=[],a=new u({messageBuffer:s,terminate:function(){},postMessage:function(e){s.push(e),i&&(o?setTimeout(l):l())}});a.setEmitSync=function(e){o=e};var l=function(){var e=s.shift();e.command?i[e.command].apply(i,e.args):e.event&&r._signal(e.event,e.data)};return r.postMessage=function(e){a.onMessage({data:e})},r.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},r.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},h.loadModule(["worker",t],function(e){for(i=new e[n](r);s.length;)l()}),a};e.UIWorkerClient=n,e.WorkerClient=u,e.createWorker=l}),ace.define("ace/placeholder",[],function(e,t){"use strict";var l=e("./range").Range,n=e("./lib/event_emitter").EventEmitter,i=e("./lib/oop"),o=function(e,t,n,i,o,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){i.implement(this,n),this.setup=function(){var n=this,i=this.doc,e=this.session;this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var t=this.pos;t.$insertRight=!0,t.detach(),t.markerId=e.addMarker(new l(t.row,t.column,t.row,t.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){var t=i.createAnchor(e.row,e.column);t.$insertRight=!0,t.detach(),n.others.push(t)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var t=this.session,n=this;this.othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new l(e.row,e.column,e.row,e.column+n.length),n.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var r=this.others.length-1;0<=r;r--){var s={row:(a=this.others[r]).row,column:a.column+o};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(r=this.others.length-1;0<=r;r--){var a;s={row:(a=this.others[r]).row,column:a.column+o};this.doc.remove(new l(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var n=this,i=this.session,e=function(e,t){i.removeMarker(e.markerId),e.markerId=i.addMarker(new l(e.row,e.column,e.row,e.column+n.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(o.prototype),t.PlaceHolder=o}),ace.define("ace/mouse/multi_select_handler",[],function(e,t){function M(e,t){return e.row==t.row&&e.column==t.column}function n(e){var t=e.domEvent,n=t.altKey,i=t.shiftKey,o=t.ctrlKey,r=e.getAccelKey(),s=e.getButton();if(o&&_.isMac&&(s=t.button),e.editor.inMultiSelectMode&&2==s)e.editor.textInput.onContextMenu(e.domEvent);else if(o||n||r){if(0===s){var a,l=e.editor,c=l.selection,h=l.inMultiSelectMode,u=e.getDocumentPosition(),d=c.getCursor(),g=e.inSelection()||c.isEmpty()&&M(u,d),f=e.x,p=e.y,m=function(e){f=e.clientX,p=e.clientY},v=l.session,w=l.renderer.pixelToScreenCoordinates(f,p),b=w;if(l.$mouseHandler.$enableJumpToDef)o&&n||r&&n?a=i?"block":"add":n&&l.$blockSelectEnabled&&(a="block");else if(r&&!n){if(a="add",!h&&i)return}else n&&l.$blockSelectEnabled&&(a="block");if(a&&_.isMac&&t.ctrlKey&&l.$mouseHandler.cancelContextMenu(),"add"==a){if(!h&&g)return;if(!h){var y=c.toOrientedRange();l.addSelectionMarker(y)}var k=c.rangeList.rangeAtPoint(u);l.inVirtualSelectionMode=!0,i&&(k=null,y=c.ranges[0]||y,l.removeSelectionMarker(y)),l.once("mouseup",function(){var e=c.toOrientedRange();k&&e.isEmpty()&&M(k.cursor,e.cursor)?c.substractPoint(e.cursor):(i?c.substractPoint(y.cursor):y&&(l.removeSelectionMarker(y),c.addRange(y)),c.addRange(e)),l.inVirtualSelectionMode=!1})}else if("block"==a){var x;e.stop(),l.inVirtualSelectionMode=!0;var C=[],S=function(){var e=l.renderer.pixelToScreenCoordinates(f,p),t=v.screenToDocumentPosition(e.row,e.column, e.offsetX);M(b,e)&&M(t,c.lead)||(b=e,l.selection.moveToPosition(t),l.renderer.scrollCursorIntoView(),l.removeSelectionMarkers(C),C=c.rectangularRangeBlock(b,w),l.$mouseHandler.$clickSelection&&1==C.length&&C[0].isEmpty()&&(C[0]=l.$mouseHandler.$clickSelection.clone()),C.forEach(l.addSelectionMarker,l),l.updateSelectionMarkers())};h&&!r?c.toSingleRange():!h&&r&&(x=c.toOrientedRange(),l.addSelectionMarker(x)),i?w=v.documentToScreenPosition(c.lead):c.moveToPosition(u),b={row:-1,column:-1};var $=function(){S(),clearInterval(L),l.removeSelectionMarkers(C),C.length||(C=[c.toOrientedRange()]),x&&(l.removeSelectionMarker(x),c.toSingleRange(x));for(var e=0;e<C.length;e++)c.addRange(C[e]);l.inVirtualSelectionMode=!1,l.$mouseHandler.$clickSelection=null},A=S;R.capture(l.container,m,$);var L=setInterval(function(){A()},20);return e.preventDefault()}}}else 0===s&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}var R=e("../lib/event"),_=e("../lib/useragent");t.onMouseDown=n}),ace.define("ace/commands/multi_select_commands",[],function(e,t){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(e){1<e.multiSelect.rangeCount?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var n=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new n(t.multiSelectCommands)}),ace.define("ace/multi_select",[],function(e,t){function s(e,t,n){return c.$options.wrap=!0,c.$options.needle=t,c.$options.backwards=-1==n,c.find(e)}function w(e,t){return e.row==t.row&&e.column==t.column}function n(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",r),e.commands.addCommands(l.defaultCommands),i(e))}function i(n){function i(){o&&(n.renderer.setMouseCursor(""),o=!1)}if(n.textInput){var e=n.textInput.getElement(),o=!1;a.addListener(e,"keydown",function(e){var t=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey);n.$blockSelectEnabled&&t?o||(n.renderer.setMouseCursor("crosshair"),o=!0):o&&i()},n),a.addListener(e,"keyup",i,n),a.addListener(e,"blur",i,n)}}var o=e("./range_list").RangeList,b=e("./range").Range,p=e("./selection").Selection,r=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),m=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var c=new(e("./search").Search),h=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var i=e[n],o=i.start.row,r=i.end.row;if(o===r)t.push(i.clone());else{for(t.push(new b(o,i.start.column,o,this.session.getLine(o).length));++o<r;)t.push(this.getLineRange(o,!0));t.push(new b(r,0,r,i.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=b.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(1<this.rangeCount){var e=this.rangeList.ranges,t=e[e.length-1],n=b.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(i,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],o=e.column<t.column;if(o)var r=e.column,s=t.column,a=e.offsetX,l=t.offsetX;else r=t.column,s=e.column,a=t.offsetX,l=e.offsetX;var c,h=e.row<t.row;if(h)var u=e.row,d=t.row;else u=t.row,d=e.row;r<0&&(r=0),u<0&&(u=0),u==d&&(n=!0);for(var g=u;g<=d;g++){var f=b.fromPoints(this.session.screenToDocumentPosition(g,r,a),this.session.screenToDocumentPosition(g,s,l));if(f.isEmpty()){if(c&&w(f.end,c))break;c=f.end}f.cursor=o?f.start:f.end,i.push(f)}if(h&&i.reverse(),!n){for(var p=i.length-1;i[p].isEmpty()&&0<p;)p--;if(0<p)for(var m=0;i[m].isEmpty();)m++;for(var v=p;m<=v;v--)i[v].isEmpty()&&i.splice(v,1)}return i}}.call(p.prototype);var u=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var o=t.indexOf(i);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,r=1==n||n&&n.$byLines,s=this.session,a=this.selection,l=a.rangeList,c=(o?a:l).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=a._eventRegistry;a._eventRegistry={};var u=new p(s);this.inVirtualSelectionMode=!0;for(var d=c.length;d--;){if(r)for(;0<d&&c[d].start.row==c[d-1].end.row;)d--;u.fromOrientedRange(c[d]),u.index=d,this.selection=s.selection=u;var g=e.exec?e.exec(this,t||{}):e(this,t||{});i||g===undefined||(i=g),u.toOrientedRange(c[d])}u.detach(),this.selection=s.selection=a,this.inVirtualSelectionMode=!1,a._eventRegistry=h,a.mergeOverlappingRanges(),a.ranges[0]&&a.fromOrientedRange(a.ranges[0]);var f=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),f&&f.from==f.to&&this.renderer.animateScrolling(f.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var o=this.session.getDocument().getNewLineCharacter();(e=n.join(o)).length==(n.length-1)*o.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row!=t.row||this.session.$clipPositionToDocument(i.row,i.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,t.needle==undefined){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var o=this.$search.findAll(this.session);if(!o.length)return 0;var r=this.multiSelect;n||r.toSingleRange(o[0]);for(var s=o.length;s--;)r.addRange(o[s],!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),o.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var r,s=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())l=s;else var a=this.session.documentToScreenPosition(i?n.end:n.start),l=this.session.screenToDocumentPosition(a.row+e,a.column);i?(r=b.fromPoints(s,l)).cursor=r.start:(r=b.fromPoints(l,s)).cursor=r.end;if(r.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var c=n.cursor}else this.selection.addRange(n);this.selection.addRange(r),c&&this.selection.substractPoint(c)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,o=i.length;o--;){if((a=i[o]).isEmpty()){var r=t.getWordRange(a.start.row,a.start.column);a.start.row=r.start.row,a.start.column=r.start.column,a.end.row=r.end.row,a.end.column=r.end.column}}n.mergeOverlappingRanges();var s=[];for(o=i.length;o--;){var a=i[o];s.unshift(t.getTextRange(a))}e<0?s.unshift(s.pop()):s.push(s.shift());for(o=i.length;o--;){r=(a=i[o]).clone();t.replace(a,s[o]),a.start.row=r.start.row,a.start.column=r.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var i=this.session,o=i.multiSelect.toOrientedRange();if(!o.isEmpty()||((o=i.getWordRange(o.start.row,o.start.column)).cursor=-1==e?o.start:o.end,this.multiSelect.addRange(o),!n)){var r=s(i,i.getTextRange(o),e);r&&(r.cursor=-1==e?r.start:r.end,this.session.unfold(r),this.multiSelect.addRange(r),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(o.cursor)}},this.alignCursors=function(){var r=this.session,t=r.multiSelect,e=t.ranges,n=-1,i=e.filter(function(e){if(e.cursor.row==n)return!0;n=e.cursor.row});if(e.length&&i.length!=e.length-1){i.forEach(function(e){t.substractPoint(e.cursor)});var s=0,a=Infinity,l=e.map(function(e){var t=e.cursor,n=r.getLine(t.row).substr(t.column).search(/\S/g);return-1==n&&(n=0),t.column>s&&(s=t.column),n<a&&(a=n),n});e.forEach(function(e,t){var n=e.cursor,i=s-n.column,o=l[t]-a;o<i?r.insert(n,m.stringRepeat(" ",i-o)):r.remove(new b(n.row,n.column,n.row,n.column-i+o)),e.start.column=e.end.column=s,e.start.row=e.end.row=n.row,e.cursor=e.end}),t.fromOrientedRange(e[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var o=this.selection.getRange(),c=o.start.row,h=o.end.row,u=c==h;if(u){for(var d,g=this.session.getLength();d=this.session.getLine(h),/[=:]/.test(d)&&++h<g;);for(;d=this.session.getLine(c),/[=:]/.test(d)&&0<--c;);c<0&&(c=0),g<=h&&(h=g-1)}var f=this.session.removeFullLines(c,h);f=this.$reAlignText(f,u),this.session.insert({row:c,column:0},f.join("\n")+"\n"),u||(o.start.column=0,o.end.column=f[f.length-1].length),this.selection.setRange(o)}},this.$reAlignText=function(e,t){function n(e){return m.stringRepeat(" ",e)}function i(e){return e[2]?n(s)+e[2]+n(a-e[2].length+l)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function o(e){return e[2]?n(s+a-e[2].length)+e[2]+n(l)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function r(e){return e[2]?n(s)+e[2]+n(l)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}var s,a,l,c=!0,h=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?(null==s?(s=t[1].length,a=t[2].length,l=t[3].length):(s+a+l!=t[1].length+t[2].length+t[3].length&&(h=!1),s!=t[1].length&&(c=!1),s>t[1].length&&(s=t[1].length),a<t[2].length&&(a=t[2].length),l>t[3].length&&(l=t[3].length)),t):[e]}).map(t?i:c?h?o:i:r)}}).call(u.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=n,e("./config").defineOptions(u.prototype,"editor",{enableMultiselect:{set:function(e){n(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",r)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",r))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",[],function(e,t){"use strict";var g=e("../../range").Range,n=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),r=o.search(i);if(-1!=r){for(var s=n||o.length,a=e.getLength(),l=t,c=t;++t<a;){var h=e.getLine(t).search(i);if(-1!=h){if(h<=r){var u=e.getTokenAt(t,0);if(!u||"string"!==u.type)break}c=t}}if(l<c){var d=e.getLine(c).length;return new g(l,s,c,d)}}},this.openingBracketBlock=function(e,t,n,i,o){var r={row:n,column:i+1},s=e.$findClosingBracket(t,r,o);if(s){var a=e.foldWidgets[s.row];return null==a&&(a=e.getFoldWidget(s.row)),"start"==a&&s.row>r.row&&(s.row--,s.column=e.getLine(s.row).length),g.fromPoints(r,s)}},this.closingBracketBlock=function(e,t,n,i){var o={row:n,column:i},r=e.$findOpeningBracket(t,o);if(r)return r.column++,o.column--,g.fromPoints(r,o)}}).call(n.prototype)}),ace.define("ace/theme/textmate",[],function(e,t){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",[],function(e,t){"use strict";function n(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}var o=e("./lib/dom");(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),(this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(){var e=this.editor;if(e){this.editor=null,e.widgetManager=null,e.renderer.off("beforeRender",this.measureWidgets),e.renderer.off("afterRender",this.renderWidgets);var t=this.session.lineWidgets;t&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,o=i.start.row,r=i.end.row,s="add"==e.action,a=o+1;a<r;a++)n[a]&&(n[a].hidden=s);n[r]&&(s?n[o]?n[r].hidden=s:n[o]=n[r]:(n[o]==n[r]&&(n[o]=undefined),n[r].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0===i);else if("remove"==e.action){var o=t.splice(n+1,i);!t[n]&&o[o.length-1]&&(t[n]=o.pop()),o.forEach(function(e){e&&this.removeLineWidget(e)},this),this.$updateRows()}else{var r=new Array(i);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var n=!0;e.forEach(function(e,t){if(e)for(n=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),n&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=o.createElement("div"),e.el.innerHTML=e.html),e.el&&(o.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n){var i=this.session.lineWidgets;e.row!=n.end.row||i[n.start.row]?e.hidden=!0:i[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],i=[];n;)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=Infinity,r=0;r<n.length;r++){var s=n[r];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<o&&(o=s.row))}}o!=Infinity&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){for(var o=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,i.length);0<o&&!i[o];)o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=o;s<=r;s++){var a=i[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(n.prototype),t.LineWidgets=n}),ace.define("ace/ext/error_marker",[],function(e,t){"use strict";function a(e,t,n){for(var i=0,o=e.length-1;i<=o;){var r=i+o>>1,s=n(t,e[r]);if(0<s)i=r+1;else{if(!(s<0))return r;o=r-1}}return-(i+1)}function f(e,t,n){var i=e.getAnnotations().sort(l.comparePoints);if(i.length){var o=a(i,{row:t,column:-1},l.comparePoints);o<0&&(o=-o-1),o>=i.length?o=0<n?0:i.length-1:0===o&&n<0&&(o=i.length-1);var r=i[o];if(r&&n){if(r.row===t){for(;(r=i[o+=n])&&r.row===t;);if(!r)return i.slice()}var s=[];for(t=r.row;s[n<0?"unshift":"push"](r),(r=i[o+=n])&&r.row==t;);return s.length&&s}}}var p=e("../line_widgets").LineWidgets,m=e("../lib/dom"),l=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new p(n),n.widgetManager.attach(e));var i=e.getCursorPosition(),o=i.row,r=n.widgetManager.getWidgetsAtRow(o).filter(function(e){return"errorMarker"==e.type})[0];r?r.destroy():o-=t;var s,a=f(n,o,t);if(a){var l=a[0];i.column=(l.pos&&"number"!=typeof l.column?l.pos.sc:l.column)||0,i.row=l.row,s=e.renderer.$gutterLayer.$annotations[i.row]}else{if(r)return;s={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(i.row),e.selection.moveToPosition(i);var c={row:i.row,fixedWidth:!0,coverGutter:!0,el:m.createElement("div"),type:"errorMarker"},h=c.el.appendChild(m.createElement("div")),u=c.el.appendChild(m.createElement("div"));u.className="error_widget_arrow "+s.className;var d=e.renderer.$cursorLayer.getPixelPosition(i).left;u.style.left=d+e.renderer.gutterWidth-5+"px",c.el.className="error_widget_wrapper",h.className="error_widget "+s.className,h.innerHTML=s.text.join("<br>"),h.appendChild(m.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return c.destroy(),{command:"null"}};c.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(c),e.off("changeSelection",c.destroy),e.off("changeSession",c.destroy),e.off("mouseup",c.destroy),e.off("change",c.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",c.destroy),e.on("changeSession",c.destroy),e.on("mouseup",c.destroy),e.on("change",c.destroy),e.session.widgetManager.addLineWidget(c),c.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:c.el.offsetHeight})},m.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",[],function(e,l){"use strict";e("./lib/fixoldbrowsers");var c=e("./lib/dom"),h=e("./lib/event"),t=e("./range").Range,u=e("./editor").Editor,i=e("./edit_session").EditSession,o=e("./undomanager").UndoManager,d=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),l.config=e("./config"),l.require=e,"function"==typeof define&&(l.define=define),l.edit=function(e,t){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof u)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var o=e;i=o.value,e=c.createElement("pre"),o.parentNode.replaceChild(e,o)}else e&&(i=e.textContent,e.innerHTML="");var r=l.createEditSession(i),s=new u(new d(e),r,t),a={document:r,editor:s,onResize:s.resize.bind(s,null)};return o&&(a.textarea=o),h.addListener(window,"resize",a.onResize),s.on("destroy",function(){h.removeListener(window,"resize",a.onResize),a.editor.container.env=null}),s.container.env=s.env=a,s},l.createEditSession=function(e,t){var n=new i(e,t);return n.setUndoManager(new o),n},l.Range=t,l.Editor=u,l.EditSession=i,l.UndoManager=o,l.VirtualRenderer=d,l.version=l.config.version}),ace.require(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t]);window.ace["default"]=window.ace,"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=window.ace)}),ace.define("ace/mode/doc_comment_highlight_rules",[],function(e,t){ "use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},o.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};n.inherits(o,i),o.getTagRule=function(){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o}),ace.define("ace/mode/javascript_highlight_rules",[],function(e,t){"use strict";function o(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,r("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function r(e){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var n=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,i=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_\xa1-\uffff][a-zA-Z\\d\\$_\xa1-\uffff]*",l=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",i="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),r("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),r("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:i},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||o.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};n.inherits(l,i),t.JavaScriptHighlightRules=l}),ace.define("ace/mode/matching_brace_outdent",[],function(e,t){"use strict";var s=e("../range").Range,n=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var r=this.$getIndent(e.getLine(o.row));e.replace(new s(t,0,t,i-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(n.prototype),t.MatchingBraceOutdent=n}),ace.define("ace/mode/folding/cstyle",[],function(e,t){"use strict";var n=e("../../lib/oop"),h=e("../../range").Range,i=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};n.inherits(o,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o,r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);if(o=r.match(this.foldingStartMarker)){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,s);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=r.match(this.foldingStopMarker))){s=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),o=t,r=n.length,s=t+=1,a=e.getLength();++t<a;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(l<i)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=o)break;if(c.isMultiLine())t=c.end.row;else if(i==l)break}s=t}}return new h(o,r,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),o=e.getLength(),r=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?a--:a++,!a))break}if(r<n)return new h(r,i,n,t.length)}}.call(o.prototype)}),ace.define("ace/mode/javascript",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./javascript_highlight_rules").JavaScriptHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,a=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=new a,this.foldingRules=new l};n.inherits(c,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(i+=n);else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(t){var e=new s(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return e.attachToDocument(t.getDocument()),e.on("annotate",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(c.prototype),t.Mode=c}),ace.define("ace/mode/xml_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e="[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+e+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:e},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+e+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+e+":)?"+e+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===o&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(i.prototype),n.inherits(o,i),t.XmlHighlightRules=o}),ace.define("ace/mode/behaviour/xml",[],function(e,t){"use strict";function g(e,t){return e&&-1<e.type.lastIndexOf(t+".xml")}var n=e("../../lib/oop"),i=e("../behaviour").Behaviour,f=e("../../token_iterator").TokenIterator,o=(e("../../lib/lang"),function(){this.add("string_dquotes","insertion",function(e,t,n,i,o){if('"'==o||"'"==o){var r=o,s=i.doc.getTextRange(n.getSelectionRange());if(""!==s&&"'"!==s&&'"'!=s&&n.getWrapBehavioursEnabled())return{text:r+s+r,selection:!1};var a=n.getCursorPosition(),l=i.doc.getLine(a.row).substring(a.column,a.column+1),c=new f(i,a.row,a.column),h=c.getCurrentToken();if(l==r&&(g(h,"attribute-value")||g(h,"string")))return{text:"",selection:[1,1]};if(h||(h=c.stepBackward()),!h)return;for(;g(h,"tag-whitespace")||g(h,"whitespace");)h=c.stepBackward();var u=!l||l.match(/\s/);if(g(h,"attribute-equals")&&(u||">"==l)||g(h,"decl-attribute-equals")&&(u||"?"==l))return{text:r+r,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&('"'==r||"'"==r)&&i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==r)return o.end.column++,o}),this.add("autoclosing","insertion",function(e,t,n,i,o){if(">"==o){var r=n.getSelectionRange().start,s=new f(i,r.row,r.column),a=s.getCurrentToken()||s.stepBackward();if(!a||!(g(a,"tag-name")||g(a,"tag-whitespace")||g(a,"attribute-name")||g(a,"attribute-equals")||g(a,"attribute-value")))return;if(g(a,"reference.attribute-value"))return;if(g(a,"attribute-value")){var l=s.getCurrentTokenColumn()+a.value.length;if(r.column<l)return;if(r.column==l){var c=s.stepForward();if(c&&g(c,"attribute-value"))return;s.stepBackward()}}if(/^\s*>/.test(i.getLine(r.row).slice(r.column)))return;for(;!g(a,"tag-name");)if("<"==(a=s.stepBackward()).value){a=s.stepForward();break}var h=s.getCurrentTokenRow(),u=s.getCurrentTokenColumn();if(g(s.stepBackward(),"end-tag-open"))return;var d=a.value;if(h==r.row&&(d=d.substring(0,r.column-u)),this.voidElements.hasOwnProperty(d.toLowerCase()))return;return{text:"></"+d+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(e,t,n,i,o){if("\n"==o){var r=n.getCursorPosition(),s=i.getLine(r.row),a=new f(i,r.row,r.column),l=a.getCurrentToken();if(l&&-1!==l.type.indexOf("tag-close")){if("/>"==l.value)return;for(;l&&-1===l.type.indexOf("tag-name");)l=a.stepBackward();if(!l)return;var c=l.value,h=a.getCurrentTokenRow();if(!(l=a.stepBackward())||-1!==l.type.indexOf("end-tag"))return;if(this.voidElements&&!this.voidElements[c]){var u=i.getTokenAt(r.row,r.column+1),d=(s=i.getLine(h),this.$getIndent(s)),g=d+i.getTabString();return u&&"</"===u.value?{text:"\n"+g+"\n"+d,selection:[1,g.length,1,g.length]}:{text:"\n"+g}}}}})});n.inherits(o,i),t.XmlBehaviour=o}),ace.define("ace/mode/folding/xml",[],function(e,t){"use strict";function l(e,t){return-1<e.type.lastIndexOf(t+".xml")}var n=e("../../lib/oop"),c=(e("../../lib/lang"),e("../../range").Range),i=e("./fold_mode").FoldMode,h=e("../../token_iterator").TokenIterator,o=t.FoldMode=function(e,t){i.call(this),this.voidElements=e||{},this.optionalEndTags=n.mixin({},this.voidElements),t&&n.mixin(this.optionalEndTags,t)};n.inherits(o,i);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(e,t,n){var i=this._getFirstTagInLine(e,n);return i?i.closing||!i.tagName&&i.selfClosing?"markbeginend"==t?"end":"":!i.tagName||i.selfClosing||this.voidElements.hasOwnProperty(i.tagName.toLowerCase())?"":this._findEndTagInLine(e,n,i.tagName,i.end.column)?"":"start":this.getCommentFoldWidget(e,n)},this.getCommentFoldWidget=function(e,t){return/comment/.test(e.getState(t))&&/<!-/.test(e.getLine(t))?"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),i=new s,o=0;o<n.length;o++){var r=n[o];if(l(r,"tag-open")){if(i.end.column=i.start.column+r.value.length,i.closing=l(r,"end-tag-open"),!(r=n[++o]))return null;for(i.tagName=r.value,i.end.column+=r.value.length,o++;o<n.length;o++)if(r=n[o],i.end.column+=r.value.length,l(r,"tag-close")){i.selfClosing="/>"==r.value;break}return i}if(l(r,"tag-close"))return i.selfClosing="/>"==r.value,i;i.start.column+=r.value.length}return null},this._findEndTagInLine=function(e,t,n,i){for(var o=e.getTokens(t),r=0,s=0;s<o.length;s++){var a=o[s];if(!((r+=a.value.length)<i)&&l(a,"end-tag-open")&&(a=o[s+1])&&a.value==n)return!0}return!1},this._readTagForward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new s;do{if(l(t,"tag-open"))n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn();else if(l(t,"tag-name"))n.tagName=t.value;else if(l(t,"tag-close"))return n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length,e.stepForward(),n}while(t=e.stepForward());return null},this._readTagBackward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new s;do{if(l(t,"tag-open"))return n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn(),e.stepBackward(),n;l(t,"tag-name")?n.tagName=t.value:l(t,"tag-close")&&(n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length)}while(t=e.stepBackward());return null},this._pop=function(e,t){for(;e.length;){var n=e[e.length-1];if(t&&n.tagName!=t.tagName){if(this.optionalEndTags.hasOwnProperty(n.tagName)){e.pop();continue}return null}return e.pop()}},this.getFoldWidgetRange=function(e,t,n){var i=this._getFirstTagInLine(e,n);if(!i)return this.getCommentFoldWidget(e,n)&&e.getCommentFoldRange(n,e.getLine(n).length);var o,r=[];if(i.closing||i.selfClosing){a=new h(e,n,i.end.column);for(var s={row:n,column:i.start.column};o=this._readTagBackward(a);){if(o.selfClosing){if(r.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,c.fromPoints(o.start,o.end)}if(o.closing)r.push(o);else if(this._pop(r,o),0==r.length)return o.start.column+=o.tagName.length+2,o.start.row==o.end.row&&o.start.column<o.end.column&&(o.start.column=o.end.column),c.fromPoints(o.start,s)}}else{var a=new h(e,n,i.start.column),l={row:n,column:i.start.column+i.tagName.length+2};for(i.start.row==i.end.row&&(l.column=i.end.column);o=this._readTagForward(a);){if(o.selfClosing){if(r.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,c.fromPoints(o.start,o.end)}if(o.closing){if(this._pop(r,o),0==r.length)return c.fromPoints(l,o.start)}else r.push(o)}}}}).call(o.prototype)}),ace.define("ace/mode/xml",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("../lib/lang"),o=e("./text").Mode,r=e("./xml_highlight_rules").XmlHighlightRules,s=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=r,this.$behaviour=new s,this.foldingRules=new a};n.inherits(c,o),function(){this.voidElements=i.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(t){var e=new l(["ace"],"ace/mode/xml_worker","Worker");return e.attachToDocument(t.getDocument()),e.on("error",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/xml"}.call(c.prototype),t.Mode=c}),ace.define("ace/mode/css_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",r=t.supportFunction="rgb|rgba|url|attr|counter|counters", s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",c=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",h=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",u=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",d=function(){var e=this.createKeywordMapper({"support.function":r,"support.constant":s,"support.type":o,"support.constant.color":a,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:c},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+c+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:h},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:u},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};n.inherits(d,i),t.CssHighlightRules=d}),ace.define("ace/mode/css_completions",[],function(e,t){"use strict";var s={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,"double":2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{"default":1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},"float":{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,"static":1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},n=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});s.hasOwnProperty(n)||(s[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),"ruleset"!==e&&"ace/mode/scss"!=t.$mode.$id)return[];var o=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i)},this.getPropertyCompletions=function(){return Object.keys(s).map(function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(e,t,n){var i=t.getLine(n.row).substr(0,n.column),o=(/([\w\-]+):[^:]*$/.exec(i)||{})[1];if(!o)return[];var r=[];return o in s&&"object"==typeof s[o]&&(r=Object.keys(s[o])),r.map(function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}})}}).call(n.prototype),t.CssCompletions=n}),ace.define("ace/mode/behaviour/css",[],function(e,t){"use strict";var n=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),c=e("../../token_iterator").TokenIterator,o=function(){this.inherit(i),this.add("colon","insertion",function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=new c(i,r.row,r.column),a=s.getCurrentToken();if(a&&a.value.match(/\s+/)&&(a=s.stepBackward()),a&&"support.type"===a.type){var l=i.doc.getLine(r.row);if(":"===l.substring(r.column,r.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(l.substring(r.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===r){var s=n.getCursorPosition(),a=new c(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type)if(";"===i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o}}),this.add("semicolon","insertion",function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()){var r=n.getCursorPosition();if(";"===i.doc.getLine(r.row).substring(r.column,r.column+1))return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}})};n.inherits(o,i),t.CssBehaviour=o}),ace.define("ace/mode/css",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./css_highlight_rules").CssHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,c=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=new l,this.$completer=new a,this.foldingRules=new c};n.inherits(h,i),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;return o.length&&"comment"==o[o.length-1].type||t.match(/^.*\{\s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(t){var e=new s(["ace"],"ace/mode/css_worker","Worker");return e.attachToDocument(t.getDocument()),e.on("annotate",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(h.prototype),t.Mode=h}),ace.define("ace/mode/html_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("../lib/lang"),o=e("./css_highlight_rules").CssHighlightRules,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./xml_highlight_rules").XmlHighlightRules,a=i.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){s.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=a[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(o,"css-","style"),this.embedTagRules(new r({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};n.inherits(l,s),t.HtmlHighlightRules=l}),ace.define("ace/mode/folding/mixed",[],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./fold_mode").FoldMode,o=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};n.inherits(o,i),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,i){var o=this.$getMode(e);return o?o.getFoldWidget(t,n,i):""},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var i=this.$getMode(e.getState(n-1));return i&&i.getFoldWidget(e,t,n)||(i=this.$getMode(e.getState(n))),i&&i.getFoldWidget(e,t,n)||(i=this.defaultMode),i.getFoldWidgetRange(e,t,n)}}.call(o.prototype)}),ace.define("ace/mode/folding/html",[],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./mixed").FoldMode,o=e("./xml").FoldMode,r=e("./cstyle").FoldMode,s=t.FoldMode=function(e,t){i.call(this,new o(e,t),{"js-":new r,"css-":new r})};n.inherits(s,i)}),ace.define("ace/mode/html_completions",[],function(e,t){"use strict";function s(e,t){return-1<e.type.lastIndexOf(t+".xml")}function a(e,t){for(var n=new o(e,t.row,t.column),i=n.getCurrentToken();i&&!s(i,"tag-name");)i=n.stepBackward();if(i)return i.value}function l(e,t){for(var n=new o(e,t.row,t.column),i=n.getCurrentToken();i&&!s(i,"attribute-name");)i=n.stepBackward();if(i)return i.value}var o=e("../token_iterator").TokenIterator,n=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],r=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"].concat(n),c={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,"for":1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{"for":1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,"default":1},section:{},summary:{},u:{},ul:{},"var":{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},i=Object.keys(c),h=function(){};(function(){this.getCompletions=function(e,t,n,i){var o=t.getTokenAt(n.row,n.column);if(!o)return[];if(s(o,"tag-name")||s(o,"tag-open")||s(o,"end-tag-open"))return this.getTagCompletions(e,t,n,i);if(s(o,"tag-whitespace")||s(o,"attribute-name"))return this.getAttributeCompletions(e,t,n,i);if(s(o,"attribute-value"))return this.getAttributeValueCompletions(e,t,n,i);var r=t.getLine(n.row).substr(0,n.column);return/&[a-z]*$/i.test(r)?this.getHTMLEntityCompletions(e,t,n,i):[]},this.getTagCompletions=function(){return i.map(function(e){return{value:e,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(e,t,n){var i=a(t,n);if(!i)return[];var o=r;return i in c&&(o=o.concat(Object.keys(c[i]))),o.map(function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(e,t,n){var i=a(t,n),o=l(t,n);if(!i)return[];var r=[];return i in c&&o in c[i]&&"object"==typeof c[i][o]&&(r=Object.keys(c[i][o])),r.map(function(e){return{caption:e,snippet:e,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(){return["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"].map(function(e){return{caption:e,snippet:e,meta:"html entity",score:1e6}})}}).call(h.prototype),t.HtmlCompletions=h}),ace.define("ace/mode/html",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("../lib/lang"),o=e("./text").Mode,r=e("./javascript").Mode,s=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,c=e("./folding/html").FoldMode,h=e("./html_completions").HtmlCompletions,u=e("../worker/worker_client").WorkerClient,d=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],f=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=a,this.$behaviour=new l,this.$completer=new h,this.createModeDelegates({"js-":r,"css-":s}),this.foldingRules=new c(this.voidElements,i.arrayToMap(g))};n.inherits(f,o),function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=i.arrayToMap(d),this.getNextLineIndent=function(e,t){return this.$getIndent(t)},this.checkOutdent=function(){return!1},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(t){if(this.constructor==f){var e=new u(["ace"],"ace/mode/html_worker","Worker");return e.attachToDocument(t.getDocument()),this.fragmentContext&&e.call("setOptions",[{context:this.fragmentContext}]),e.on("error",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}.call(f.prototype),t.Mode=f}),ace.define("ace/mode/markdown_highlight_rules",[],function(e,t){"use strict";var c=e("../config").$modes,n=e("../lib/oop"),i=e("../lib/lang"),o=e("./text_highlight_rules").TextHighlightRules,r=e("./html_highlight_rules").HtmlHighlightRules,s=function(e){return"(?:[^"+i.escapeRegExp(e)+"\\\\]|\\\\.)*"},a=function(){r.call(this);var e={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(e,t,n){var i=e.match(/^(\s*)([`~]+)(.*)/),o=/[\w-]+|$/.exec(i[3])[0];return c[o]||(o=""),n.unshift("githubblock",[],[i[1],i[2],o],t),this.token},next:"githubblock"},t=[{token:"support.function",regex:".*",onMatch:function(e,t,n){var i=n[1],o=n[2][0],r=n[2][1],s=n[2][2],a=/^(\s*)(`+|~+)\s*$/.exec(e);if(a&&a[1].length<o.length+3&&a[2].length>=r.length&&a[2][0]==r[0])return n.splice(0,3),this.next=n.shift(),this.token;if(this.next="",s&&c[s]){var l=c[s].getTokenizer().getLineTokens(e,i.slice(0));return n[1]=l.state,l.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(e){return"markup.heading."+e.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},e,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:"(<)((?:https?|ftp|dict):[^'\">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)"}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},e,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:t}),this.normalizeRules()};n.inherits(a,o),t.MarkdownHighlightRules=a}),ace.define("ace/mode/folding/markdown",[],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./fold_mode").FoldMode,f=e("../../range").Range,o=t.FoldMode=function(){};n.inherits(o,i),function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"`"==i[0]&&"start"==e.bgTokenizer.getState(n)?"end":"start":""},this.getFoldWidgetRange=function(t,e,n){function i(e){return(h=t.getTokens(e)[0])&&0===h.type.lastIndexOf(u,0)}function o(){var e=h.value[0];return"="==e?6:"-"==e?5:7-h.value.search(/[^#]|$/)}var r=t.getLine(n),s=r.length,a=t.getLength(),l=n,c=n;if(r.match(this.foldingStartMarker)){if("`"==r[0]){if("start"!==t.bgTokenizer.getState(n)){for(;++n<a&&!("`"==(r=t.getLine(n))[0]&"```"==r.substring(0,3)););return new f(l,s,n,0)}for(;0<n--&&!("`"==(r=t.getLine(n))[0]&"```"==r.substring(0,3)););return new f(n,r.length,l,0)}var h,u="markup.heading";if(i(n)){for(var d=o();++n<a;){if(i(n))if(d<=o())break}if(l<(c=n-(h&&-1!=["=","-"].indexOf(h.value[0])?2:1)))for(;l<c&&/^\s*$/.test(t.getLine(c));)c--;if(l<c){var g=t.getLine(c).length;return new f(l,s,c,g)}}}}}.call(o.prototype)}),ace.define("ace/mode/sh_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,h=t.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",u=t.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",o=function(){var e=this.createKeywordMapper({keyword:h,"support.function.builtin":u,"invalid.deprecated":"debugger"},"identifier"),t="(?:(?:[1-9]\\d*)|(?:0))",n="(?:\\d+)",i="(?:(?:"+n+"?"+"(?:\\.\\d+)"+")|(?:"+n+"\\.))",o="(?:"+("(?:(?:"+i+"|"+n+"))")+"|"+i+")",r="(?:&"+n+")",s="[a-zA-Z_][a-zA-Z0-9_]*",a="(?:"+s+"(?==))",l="(?:\\$(?:SHLVL|\\$|\\!|\\?))",c="(?:"+s+"\\s*\\(\\))" ;this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(e,t,n){var i="-"==e[2]?"indentedHeredoc":"heredoc",o=e.split(this.splitRegex);return n.push(i,o[4]),[{type:"constant",value:o[1]},{type:"text",value:o[2]},{type:"string",value:o[3]},{type:"support.class",value:o[4]},{type:"string",value:o[5]}]},rules:{heredoc:[{onMatch:function(e,t,n){return e===n[1]?(n.shift(),n.shift(),this.next=n[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^\t+"},{onMatch:function(e,t,n){return e===n[1]?(n.shift(),n.shift(),this.next=n[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(e,t){return"heredoc"===t[0]||"indentedHeredoc"===t[0]?t[0]:e}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:l},{token:"variable",regex:a},{include:"variables"},{token:"support.function",regex:c},{token:"support.function",regex:r},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:o},{token:"constant.numeric",regex:t+"\\b"},{token:e,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};n.inherits(o,i),t.ShHighlightRules=o}),ace.define("ace/mode/sh",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./sh_highlight_rules").ShHighlightRules,s=e("../range").Range,r=e("./folding/cstyle").FoldMode,a=e("./behaviour/cstyle").CstyleBehaviour,l=function(){this.HighlightRules=o,this.foldingRules=new r,this.$behaviour=new a};n.inherits(l,i),function(){this.lineCommentStart="#",this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;if(o.length&&"comment"==o[o.length-1].type)return i;"start"==e&&(t.match(/^.*[\{\(\[:]\s*$/)&&(i+=n));return i};var r={pass:1,"return":1,raise:1,"break":1,"continue":1};this.checkOutdent=function(e,t,n){if("\r\n"!==n&&"\r"!==n&&"\n"!==n)return!1;var i=this.getTokenizer().getLineTokens(t.trim(),e).tokens;if(!i)return!1;do{var o=i.pop()}while(o&&("comment"==o.type||"text"==o.type&&o.value.match(/^\s+$/)));return!!o&&("keyword"==o.type&&r[o.value])},this.autoOutdent=function(e,t,n){n+=1;var i=this.$getIndent(t.getLine(n)),o=t.getTabString();i.slice(-o.length)==o&&t.remove(new s(n,i.length-o.length,n,i.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}.call(l.prototype),t.Mode=l}),ace.define("ace/mode/markdown",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=(e("./javascript").Mode,e("./xml").Mode,e("./html").Mode,e("./markdown_highlight_rules").MarkdownHighlightRules),r=e("./folding/markdown").FoldMode,s=function(){this.HighlightRules=o,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(s,i),function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(e,t){if("listblock"!=e)return this.$getIndent(t);var n=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(t);if(!n)return"";var i=n[2];return i||(i=parseInt(n[3],10)+1+"."),n[1]+i+n[4]},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}.call(s.prototype),t.Mode=s}),ace.require(["ace/mode/markdown"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/asciidoc_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}var t="[a-zA-Z\xa1-\uffff]+\\b";this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"string",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1,5}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","variable.language"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:"link",regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:t},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:t+"|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:t+"|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("`")},{token:"keyword",regex:e("^")},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var n={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var i in this.$rules)for(var o=this.$rules[i],r=o.length;r--;){var s=o[r];if(s.include||"string"==typeof s){var a=[r,1].concat(this.$rules[s.include||s]);s.noEscape&&(a=a.filter(function(e){return!e.next})),o.splice.apply(o,a)}else s.token in n&&(s.token=n[s.token])}};n.inherits(o,i),t.AsciidocHighlightRules=o}),ace.define("ace/mode/folding/asciidoc",[],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./fold_mode").FoldMode,m=e("../../range").Range,o=t.FoldMode=function(){};n.inherits(o,i),function(){this.foldingStartMarker=/^(?:\|={10,}|[\.\/=\-~^+]{4,}\s*$|={1,5} )/,this.singleLineHeadingRe=/^={1,5}(?=\s+\S)/,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"="==i[0]?this.singleLineHeadingRe.test(i)?"start":e.getLine(n-1).length!=e.getLine(n).length?"":"start":"dissallowDelimitedBlock"==e.bgTokenizer.getState(n)?"end":"start":""},this.getFoldWidgetRange=function(n,e,i){function t(e){return(h=n.getTokens(e)[0])&&h.type}function o(){var e=h.value.match(g);if(e)return e[0].length;var t=u.indexOf(h.value[0])+1;return 1==t&&n.getLine(i-1).length!=n.getLine(i).length?Infinity:t}var r=n.getLine(i),s=r.length,a=n.getLength(),l=i,c=i;if(r.match(this.foldingStartMarker)){var h,u=["=","-","~","^","+"],d="markup.heading",g=this.singleLineHeadingRe;if(t(i)==d){for(var f=o();++i<a;){if(t(i)==d)if(o()<=f)break}if(l<(c=h&&h.value.match(this.singleLineHeadingRe)?i-1:i-2))for(;l<c&&(!t(c)||"["==h.value[0]);)c--;if(l<c){var p=n.getLine(c).length;return new m(l,s,c,p)}}else{if("dissallowDelimitedBlock"==n.bgTokenizer.getState(i)){for(;0<i--&&-1!=n.bgTokenizer.getState(i).lastIndexOf("Block"););if((c=i+1)<l){p=n.getLine(i).length;return new m(c,5,l,s-5)}}else{for(;++i<a&&"dissallowDelimitedBlock"!=n.bgTokenizer.getState(i););if(l<(c=i)){p=n.getLine(i).length;return new m(l,5,c,p-5)}}}}}}.call(o.prototype)}),ace.define("ace/mode/asciidoc",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./asciidoc_highlight_rules").AsciidocHighlightRules,r=e("./folding/asciidoc").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new r};n.inherits(s,i),function(){this.type="text",this.getNextLineIndent=function(e,t){if("listblock"!=e)return this.$getIndent(t);var n=/^((?:.+)?)([-+*][ ]+)/.exec(t);return n?new Array(n[1].length+1).join(" ")+n[2]:""},this.$id="ace/mode/asciidoc"}.call(s.prototype),t.Mode=s}),ace.require(["ace/mode/asciidoc"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.require(["ace/mode/text"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/latex_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:["keyword","lparen","variable.parameter","rparen","lparen","storage.type","rparen"],regex:"(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"},{token:["keyword","lparen","variable.parameter","rparen"],regex:"(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(verbatim)(})",next:"verbatim"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(lstlisting)(})",next:"lstlisting"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\(?:begin|end))({)([\\w*]*)(})"},{token:"storage.type",regex:/\\verb\b\*?/,next:[{token:["keyword.operator","string","keyword.operator"],regex:"(.)(.*?)(\\1|$)|",next:"start"}]},{token:"storage.type",regex:"\\\\[a-zA-Z]+"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"constant.character.escape",regex:"\\\\[^a-zA-Z]?"},{token:"string",regex:"\\${1,2}",next:"equation"}],equation:[{token:"comment",regex:"%.*$"},{token:"string",regex:"\\${1,2}",next:"start"},{token:"constant.character.escape",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"error",regex:"^\\s*$",next:"start"},{defaultToken:"string"}],verbatim:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(verbatim)(})",next:"start"},{defaultToken:"text"}],lstlisting:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(lstlisting)(})",next:"start"},{defaultToken:"text"}]},this.normalizeRules()};n.inherits(o,i),t.LatexHighlightRules=o}),ace.define("ace/mode/rdoc_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=(e("./latex_highlight_rules"),function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:"text",regex:"\\\\[$&%#\\{\\}]"},{token:"keyword",regex:"\\\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\\b",next:"nospell"},{token:"keyword",regex:"\\\\(?:[a-zA-Z0-9]+|[^a-zA-Z0-9])"},{token:"paren.keyword.operator",regex:"[[({]"},{token:"paren.keyword.operator",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],nospell:[{token:"comment",regex:"%.*$",next:"start"},{token:"nospell.text",regex:"\\\\[$&%#\\{\\}]"},{token:"keyword",regex:"\\\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\\b"},{token:"keyword",regex:"\\\\(?:[a-zA-Z0-9]+|[^a-zA-Z0-9])",next:"start"},{token:"paren.keyword.operator",regex:"[[({]"},{token:"paren.keyword.operator",regex:"[\\])]"},{token:"paren.keyword.operator",regex:"}",next:"start"},{token:"nospell.text",regex:"\\s+"},{token:"nospell.text",regex:"\\w+"}]}});n.inherits(o,i),t.RDocHighlightRules=o}),ace.define("ace/mode/matching_brace_outdent",[],function(e,t){"use strict";var s=e("../range").Range,n=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var r=this.$getIndent(e.getLine(o.row));e.replace(new s(t,0,t,i-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(n.prototype),t.MatchingBraceOutdent=n}),ace.define("ace/mode/rdoc",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./rdoc_highlight_rules").RDocHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,s=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(s,i),function(){this.getNextLineIndent=function(e,t){return this.$getIndent(t)},this.$id="ace/mode/rdoc"}.call(s.prototype),t.Mode=s}),ace.require(["ace/mode/rdoc"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/textile_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:function(e){return"h"==e.charAt(0)?"markup.heading."+e.charAt(1):"markup.heading"},regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};n.inherits(o,i),t.TextileHighlightRules=o}),ace.define("ace/mode/matching_brace_outdent",[],function(e,t){"use strict";var s=e("../range").Range,n=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var r=this.$getIndent(e.getLine(o.row));e.replace(new s(t,0,t,i-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(n.prototype),t.MatchingBraceOutdent=n}),ace.define("ace/mode/textile",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./textile_highlight_rules").TextileHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,s=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(s,i),function(){this.type="text",this.getNextLineIndent=function(e,t,n){return"intag"==e?n:""},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.$id="ace/mode/textile",this.snippetFileId="ace/snippets/textile"}.call(s.prototype),t.Mode=s}),ace.require(["ace/mode/textile"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/rst_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=function(){var e={title:"markup.heading",list:"markup.heading",table:"constant",directive:"keyword.operator",entity:"string",link:"markup.underline.list",bold:"markup.bold",italic:"markup.italic",literal:"support.function",comment:"comment"},t="(^|\\s|[\"'(<\\[{\\-/:])",n="(?:$|(?=\\s|[\\\\.,;!?\\-/:\"')>\\]}]))";this.$rules={start:[{token:e.title,regex:"(^)([\\=\\-`:\\.'\"~\\^_\\*\\+#])(\\2{2,}\\s*$)"},{token:["text",e.directive,e.literal],regex:"(^\\s*\\.\\. )([^: ]+::)(.*$)",next:"codeblock"},{token:e.directive,regex:"::$",next:"codeblock"},{token:[e.entity,e.link],regex:"(^\\.\\. _[^:]+:)(.*$)"},{token:[e.entity,e.link],regex:"(^__ )(https?://.*$)"},{token:e.entity,regex:"^\\.\\. \\[[^\\]]+\\] "},{token:e.comment,regex:"^\\.\\. .*$",next:"comment"},{token:e.list,regex:"^\\s*[\\*\\+-] "},{token:e.list,regex:"^\\s*(?:[A-Za-z]|[0-9]+|[ivxlcdmIVXLCDM]+)\\. "},{token:e.list,regex:"^\\s*\\(?(?:[A-Za-z]|[0-9]+|[ivxlcdmIVXLCDM]+)\\) "},{token:e.table,regex:"^={2,}(?: +={2,})+$"},{token:e.table,regex:"^\\+-{2,}(?:\\+-{2,})+\\+$"},{token:e.table,regex:"^\\+={2,}(?:\\+={2,})+\\+$"},{token:["text",e.literal],regex:t+"(``)(?=\\S)",next:"code"},{token:["text",e.bold],regex:t+"(\\*\\*)(?=\\S)",next:"bold"},{token:["text",e.italic],regex:t+"(\\*)(?=\\S)",next:"italic"},{token:e.entity,regex:"\\|[\\w\\-]+?\\|"},{token:e.entity,regex:":[\\w-:]+:`\\S",next:"entity"},{token:["text",e.entity],regex:t+"(_`)(?=\\S)",next:"entity"},{token:e.entity,regex:"_[A-Za-z0-9\\-]+?"},{token:["text",e.link],regex:t+"(`)(?=\\S)",next:"link"},{token:e.link,regex:"[A-Za-z0-9\\-]+?__?"},{token:e.link,regex:"\\[[^\\]]+?\\]_"},{token:e.link,regex:"https?://\\S+"},{token:e.table,regex:"\\|"}],codeblock:[{token:e.literal,regex:"^ +.+$",next:"codeblock"},{token:e.literal,regex:"^$",next:"codeblock"},{token:"empty",regex:"",next:"start"}],code:[{token:e.literal,regex:"\\S``"+n,next:"start"},{defaultToken:e.literal}],bold:[{token:e.bold,regex:"\\S\\*\\*"+n,next:"start"},{defaultToken:e.bold}],italic:[{token:e.italic,regex:"\\S\\*"+n,next:"start"},{defaultToken:e.italic}],entity:[{token:e.entity,regex:"\\S`"+n,next:"start"},{defaultToken:e.entity}],link:[{token:e.link,regex:"\\S`__?"+n,next:"start"},{defaultToken:e.link}],comment:[{token:e.comment,regex:"^ +.+$",next:"comment"},{token:e.comment,regex:"^$",next:"comment"},{token:"empty",regex:"",next:"start"}]}};n.inherits(o,i),t.RSTHighlightRules=o}),ace.define("ace/mode/rst",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./rst_highlight_rules").RSTHighlightRules,r=function(){this.HighlightRules=o};n.inherits(r,i),function(){this.type="text",this.$id="ace/mode/rst",this.snippetFileId="ace/snippets/rst"}.call(r.prototype),t.Mode=r}),ace.require(["ace/mode/rst"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/latex_highlight_rules",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:["keyword","lparen","variable.parameter","rparen","lparen","storage.type","rparen"],regex:"(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"},{token:["keyword","lparen","variable.parameter","rparen"],regex:"(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(verbatim)(})",next:"verbatim"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(lstlisting)(})",next:"lstlisting"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\(?:begin|end))({)([\\w*]*)(})"},{token:"storage.type",regex:/\\verb\b\*?/,next:[{token:["keyword.operator","string","keyword.operator"],regex:"(.)(.*?)(\\1|$)|",next:"start"}]},{token:"storage.type",regex:"\\\\[a-zA-Z]+"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"constant.character.escape",regex:"\\\\[^a-zA-Z]?"},{token:"string",regex:"\\${1,2}",next:"equation"}],equation:[{token:"comment",regex:"%.*$"},{token:"string",regex:"\\${1,2}",next:"start"},{token:"constant.character.escape",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"error",regex:"^\\s*$",next:"start"},{defaultToken:"string"}],verbatim:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(verbatim)(})",next:"start"},{defaultToken:"text"}],lstlisting:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(lstlisting)(})",next:"start"},{defaultToken:"text"}]},this.normalizeRules()};n.inherits(o,i),t.LatexHighlightRules=o}),ace.define("ace/mode/folding/latex",[],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./fold_mode").FoldMode,f=e("../../range").Range,p=e("../../token_iterator").TokenIterator,c={"\\subparagraph":1,"\\paragraph":2,"\\subsubsubsection":3,"\\subsubsection":4,"\\subsection":5,"\\section":6,"\\chapter":7,"\\part":8,"\\begin":9,"\\end":10},o=t.FoldMode=function(){};n.inherits(o,i),function(){this.foldingStartMarker=/^\s*\\(begin)|\s*\\(part|chapter|(?:sub)*(?:section|paragraph))\b|{\s*$/,this.foldingStopMarker=/^\s*\\(end)\b|^\s*}/,this.getFoldWidgetRange=function(e,t,n){var i,o=e.doc.getLine(n);return(i=this.foldingStartMarker.exec(o))?i[1]?this.latexBlock(e,n,i[0].length-1):i[2]?this.latexSection(e,n,i[0].length-1):this.openingBracketBlock(e,"{",n,i.index):(i=this.foldingStopMarker.exec(o))?i[1]?this.latexBlock(e,n,i[0].length-1):this.closingBracketBlock(e,"}",n,i.index+i[0].length):void 0},this.latexBlock=function(e,t,n,i){var o={"\\begin":1,"\\end":-1},r=new p(e,t,n),s=r.getCurrentToken();if(s&&("storage.type"==s.type||"constant.character.escape"==s.type)){var a=o[s.value],l=function(){var e="lparen"==r.stepForward().type?r.stepForward().value:"";return-1===a&&(r.stepBackward(),e&&r.stepBackward()),e},c=[l()],h=-1===a?r.getCurrentTokenColumn():e.getLine(t).length,u=t;for(r.step=-1===a?r.stepBackward:r.stepForward;s=r.step();)if(s&&("storage.type"==s.type||"constant.character.escape"==s.type)){var d=o[s.value];if(d){var g=l();if(d===a)c.unshift(g);else if(c.shift()!==g||!c.length)break}}if(!c.length){if(1==a&&(r.stepBackward(),r.stepBackward()),i)return r.getCurrentTokenRange();t=r.getCurrentTokenRow();return-1===a?new f(t,e.getLine(t).length,u,h):new f(u,h,t,r.getCurrentTokenColumn())}}},this.latexSection=function(e,t,n){var i=new p(e,t,n),o=i.getCurrentToken();if(o&&"storage.type"==o.type){for(var r=c[o.value]||0,s=0,a=t;o=i.stepForward();)if("storage.type"===o.type){var l=c[o.value]||0;if(9<=l){if(s||(a=i.getCurrentTokenRow()-1),(s+=9==l?1:-1)<0)break}else if(r<=l)break}for(s||(a=i.getCurrentTokenRow()-1);t<a&&!/\S/.test(e.getLine(a));)a--;return new f(t,e.getLine(t).length,a,e.getLine(a).length)}}}.call(o.prototype)}),ace.define("ace/mode/latex",[],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./latex_highlight_rules").LatexHighlightRules,r=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/latex").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s,this.$behaviour=new r({braces:!0})};n.inherits(a,i),function(){this.type="text",this.lineCommentStart="%",this.$id="ace/mode/latex",this.getMatching=function(e,t,n){t==undefined&&(t=e.selection.lead),"object"==typeof t&&(n=t.column,t=t.row);var i=e.getTokenAt(t,n);if(i)return"\\begin"==i.value||"\\end"==i.value?this.foldingRules.latexBlock(e,t,n,!0):void 0}}.call(a.prototype),t.Mode=a}),ace.require(["ace/mode/latex"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/theme/tomorrow",[],function(e,t){t.isDark=!1,t.cssClass="ace-tomorrow",t.cssText=".ace-tomorrow .ace_gutter {background: #f6f6f6;color: #4D4D4C}.ace-tomorrow .ace_print-margin {width: 1px;background: #f6f6f6}.ace-tomorrow {background-color: #FFFFFF;color: #4D4D4C}.ace-tomorrow .ace_cursor {color: #AEAFAD}.ace-tomorrow .ace_marker-layer .ace_selection {background: #D6D6D6}.ace-tomorrow.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-tomorrow .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-tomorrow .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #D1D1D1}.ace-tomorrow .ace_marker-layer .ace_active-line {background: #EFEFEF}.ace-tomorrow .ace_gutter-active-line {background-color : #dcdcdc}.ace-tomorrow .ace_marker-layer .ace_selected-word {border: 1px solid #D6D6D6}.ace-tomorrow .ace_invisible {color: #D1D1D1}.ace-tomorrow .ace_keyword,.ace-tomorrow .ace_meta,.ace-tomorrow .ace_storage,.ace-tomorrow .ace_storage.ace_type,.ace-tomorrow .ace_support.ace_type {color: #8959A8}.ace-tomorrow .ace_keyword.ace_operator {color: #3E999F}.ace-tomorrow .ace_constant.ace_character,.ace-tomorrow .ace_constant.ace_language,.ace-tomorrow .ace_constant.ace_numeric,.ace-tomorrow .ace_keyword.ace_other.ace_unit,.ace-tomorrow .ace_support.ace_constant,.ace-tomorrow .ace_variable.ace_parameter {color: #F5871F}.ace-tomorrow .ace_constant.ace_other {color: #666969}.ace-tomorrow .ace_invalid {color: #FFFFFF;background-color: #C82829}.ace-tomorrow .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #8959A8}.ace-tomorrow .ace_fold {background-color: #4271AE;border-color: #4D4D4C}.ace-tomorrow .ace_entity.ace_name.ace_function,.ace-tomorrow .ace_support.ace_function,.ace-tomorrow .ace_variable {color: #4271AE}.ace-tomorrow .ace_support.ace_class,.ace-tomorrow .ace_support.ace_type {color: #C99E00}.ace-tomorrow .ace_heading,.ace-tomorrow .ace_markup.ace_heading,.ace-tomorrow .ace_string {color: #718C00}.ace-tomorrow .ace_entity.ace_name.ace_tag,.ace-tomorrow .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow .ace_meta.ace_tag,.ace-tomorrow .ace_string.ace_regexp,.ace-tomorrow .ace_variable {color: #C82829}.ace-tomorrow .ace_comment {color: #8E908C}.ace-tomorrow .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y}",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.require(["ace/theme/tomorrow"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/keyboard/vim",[],function(e,t){"use strict";function a(e){return{row:e.line,column:e.ch}}function c(e){return new Tt(e.row,e.column)}function n(e){e.setOption("disableInput",!0),e.setOption("showCursorWhenSelecting",!1),Lt.signal(e,"vim-mode-change",{mode:"normal"}),e.on("cursorActivity",rt),S(e),Lt.on(e.getInputField(),"paste",h(e))}function i(e){e.setOption("disableInput",!1),e.off("cursorActivity",rt),Lt.off(e.getInputField(),"paste",h(e)),e.state.vim=null}function o(e,t){this==Lt.keyMap.vim&&Lt.rmClass(e.getWrapperElement(),"cm-fat-cursor"),t&&t.attach==r||i(e)}function r(e,t){this==Lt.keyMap.vim&&Lt.addClass(e.getWrapperElement(),"cm-fat-cursor"),t&&t.attach==r||n(e)}function s(e,t){if(!t)return undefined;if(this[e])return this[e];var n=l(e);if(!n)return!1;var i=Lt.Vim.findKey(t,n);return"function"==typeof i&&Lt.signal(t,"vim-keypress",n),i}function l(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var i=!1,o=0;o<t.length;o++){var r=t[o];r in Ot?t[o]=Ot[r]:i=!0,r in It&&(t[o]=It[r])}return!!i&&(m(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}function h(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(N(e.getCursor(),0,1)),Jt.enterInsertMode(e,{},t))}),t.onPasteFn}function u(e,t){for(var n=[],i=e;i<e+t;i++)n.push(String.fromCharCode(i));return n}function p(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function d(e){return/^[a-z]$/.test(e)}function g(e){return-1!="()[]{}".indexOf(e)}function f(e){return Ft.test(e)}function m(e){return/^[A-Z]$/.test(e)}function v(e){return/^\s*$/.test(e)}function w(e){return-1!=".?!".indexOf(e)}function b(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}function y(e,t,n,i,o){if(t===undefined&&!o)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),Vt[e]={type:n,defaultValue:t,callback:o},i)for(var r=0;r<i.length;r++)Vt[i[r]]=Vt[e];t&&k(e,t)}function k(e,t,n,i){var o=Vt[e],r=(i=i||{}).scope;if(!o)return new Error("Unknown option: "+e);if("boolean"==o.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}o.callback?("local"!==r&&o.callback(t,undefined),"global"!==r&&n&&o.callback(t,n)):("local"!==r&&(o.value="boolean"==o.type?!!t:t),"global"!==r&&n&&(n.state.vim.options[e]={value:t}))}function x(e,t,n){var i=Vt[e],o=(n=n||{}).scope;if(!i)return new Error("Unknown option: "+e);if(i.callback){var r=t&&i.callback(undefined,t);return"global"!==o&&r!==undefined?r:"local"!==o?i.callback():void 0}return((r="global"!==o&&t&&t.state.vim.options[e])||"local"!==o&&i||{}).value}function C(){this.latestRegister=undefined,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=undefined,this.lastInsertModeChanges=jt()}function S(e){return e.state.vim||(e.state.vim={inputState:new A,lastEditInputState:undefined,lastEditActionCommand:undefined,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{}, fakeCursor:null,insertMode:!1,insertModeRepeat:undefined,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function $(){for(var e in Kt={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:undefined,jumpList:Gt(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new R({}),searchHistoryController:new _,exCommandHistoryController:new _},Vt){var t=Vt[e];t.value=t.defaultValue}}function A(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function T(e,t){e.state.vim.inputState=new A,Lt.signal(e,"vim-command-done",t)}function L(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function M(e,t){var n=Kt.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");n[e]=t,zt.push(e)}function R(e){this.registers=e,this.unnamedRegister=e['"']=new L,e["."]=new L,e[":"]=new L,e["/"]=new L}function _(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function E(e,t){Qt[e]=t}function O(e,t){for(var n=[],i=0;i<t;i++)n.push(e);return n}function I(e,t){Yt[e]=t}function F(e,t){Jt[e]=t}function B(e,t,n){var i=Math.min(Math.max(e.firstLine(),t.line),e.lastLine()),o=X(e,i)-1;o=n?o+1:o;var r=Math.min(Math.max(0,t.ch),o);return Tt(i,r)}function H(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function N(e,t,n){return"object"==typeof t&&(n=t.ch,t=t.line),Tt(e.line+t,e.ch+n)}function D(e,t,n,i){for(var o,r=[],s=[],a=0;a<t.length;a++){var l=t[a];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||i.operator&&"action"==l.type||!(o=P(e,l.keys))||("partial"==o&&r.push(l),"full"==o&&s.push(l))}return{partial:r.length&&r,full:s.length&&s}}function P(e,t){if("<character>"!=t.slice(-11))return e==t?"full":0==t.indexOf(e)&&"partial";var n=t.length-11,i=e.slice(0,n),o=t.slice(0,n);return i==o&&e.length>n?"full":0==o.indexOf(i)&&"partial"}function W(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(1<n.length)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}function z(t,n,i){return function(){for(var e=0;e<i;e++)n(t)}}function V(e){return Tt(e.line,e.ch)}function K(e,t){return e.ch==t.ch&&e.line==t.line}function U(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function G(e,t){return 2<arguments.length&&(t=G.apply(undefined,Array.prototype.slice.call(arguments,1))),U(e,t)?e:t}function j(e,t){return 2<arguments.length&&(t=j.apply(undefined,Array.prototype.slice.call(arguments,1))),U(e,t)?t:e}function q(e,t,n){var i=U(e,t),o=U(t,n);return i&&o}function X(e,t){return e.getLine(t).length}function Q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function J(e,t,n){var i=X(e,t),o=new Array(n-i+1).join(" ");e.setCursor(Tt(t,i)),e.replaceRange(o,e.getCursor())}function Z(e,t){var n=[],i=e.listSelections(),o=V(e.clipPos(t)),r=!K(t,o),s=te(i,e.getCursor("head")),a=K(i[s].head,i[s].anchor),l=i.length-1,c=s<l-s?l:0,h=i[c].anchor,u=Math.min(h.line,o.line),d=Math.max(h.line,o.line),g=h.ch,f=o.ch,p=i[c].head.ch-g,m=f-g;0<p&&m<=0?(g++,r||f--):p<0&&0<=m?(g--,a||f++):p<0&&-1==m&&(g--,f++);for(var v=u;v<=d;v++){var w={anchor:new Tt(v,g),head:new Tt(v,f)};n.push(w)}return e.setSelections(n),t.ch=f,h.ch=g,h}function ee(e,t,n){for(var i=[],o=0;o<n;o++){var r=N(t,o,0);i.push({anchor:r,head:r})}e.setSelections(i,0)}function te(e,t,n){for(var i=0;i<e.length;i++){var o="head"!=n&&K(e[i].anchor,t),r="anchor"!=n&&K(e[i].head,t);if(o||r)return i}return-1}function ne(d,e){var g=e.lastSelection,t=function(){var e=d.listSelections(),t=e[0],n=e[e.length-1];return[U(t.anchor,t.head)?t.anchor:t.head,U(n.anchor,n.head)?n.head:n.anchor]},n=function(){var e=d.getCursor(),t=d.getCursor(),n=g.visualBlock;if(n){var i=n.width,o=n.height;t=Tt(e.line+o,e.ch+i);for(var r=[],s=e.line;s<t.line;s++){var a={anchor:Tt(s,e.ch),head:Tt(s,t.ch)};r.push(a)}d.setSelections(r)}else{var l=g.anchorMark.find(),c=g.headMark.find(),h=c.line-l.line,u=c.ch-l.ch;t={line:t.line+h,ch:h?t.ch:u+t.ch},g.visualLine&&(e=Tt(e.line,0),t=Tt(t.line,X(d,t.line))),d.setSelection(e,t)}return[e,t]};return e.visualMode?t():n()}function ie(e,t){var n=t.sel.anchor,i=t.sel.head;t.lastPastedText&&(i=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(i),anchor:V(n),head:V(i),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function oe(e,t,n){var i,o=e.state.vim.sel,r=o.head,s=o.anchor;return U(n,t)&&(i=n,n=t,t=i),U(r,s)?(r=G(t,r),s=j(s,n)):(s=G(t,s),-1==(r=N(r=j(r,n),0,-1)).ch&&r.line!=e.firstLine()&&(r=Tt(r.line-1,X(e,r.line-1)))),[s,r]}function re(e,t,n){var i=e.state.vim,o=se(e,t=t||i.sel,n=n||i.visualLine?"line":i.visualBlock?"block":"char");e.setSelections(o.ranges,o.primary),st(e)}function se(e,t,n,i){var o=V(t.head),r=V(t.anchor);if("char"==n){var s=i||U(t.head,t.anchor)?0:1,a=U(t.head,t.anchor)?1:0;return o=N(t.head,0,s),{ranges:[{anchor:r=N(t.anchor,0,a),head:o}],primary:0}}if("line"==n){if(U(t.head,t.anchor))o.ch=0,r.ch=X(e,r.line);else{r.ch=0;var l=e.lastLine();o.line>l&&(o.line=l),o.ch=X(e,o.line)}return{ranges:[{anchor:r,head:o}],primary:0}}if("block"==n){for(var c=Math.min(r.line,o.line),h=Math.min(r.ch,o.ch),u=Math.max(r.line,o.line),d=Math.max(r.ch,o.ch)+1,g=u-c+1,f=o.line==c?0:g-1,p=[],m=0;m<g;m++)p.push({anchor:Tt(c+m,h),head:Tt(c+m,d)});return{ranges:p,primary:f}}}function ae(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=G(t,e.getCursor("anchor"))),t}function le(e,t){var n=e.state.vim;!1!==t&&e.setCursor(B(e,n.sel.head)),ie(e,n),n.visualMode=!1,n.visualLine=!1,n.visualBlock=!1,Lt.signal(e,"vim-mode-change",{mode:"normal"}),n.fakeCursor&&n.fakeCursor.clear()}function ce(e,t,n){var i=e.getRange(t,n);if(/\n\s*$/.test(i)){var o=i.split("\n");o.pop();for(var r=o.pop();0<o.length&&r&&v(r);r=o.pop())n.line--,n.ch=0;r?(n.line--,n.ch=X(e,n.line)):n.ch=0}}function he(e,t,n){t.ch=0,n.ch=0,n.line++}function ue(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function de(e,t,n,i,o){for(var r=ae(e),s=e.getLine(r.line),a=r.ch,l=o?Bt[0]:Ht[0];!l(s.charAt(a));)if(++a>=s.length)return null;i?l=Ht[0]:(l=Bt[0])(s.charAt(a))||(l=Bt[1]);for(var c=a,h=a;l(s.charAt(c))&&c<s.length;)c++;for(;l(s.charAt(h))&&0<=h;)h--;if(h++,t){for(var u=c;/\s/.test(s.charAt(c))&&c<s.length;)c++;if(u==c){for(var d=h;/\s/.test(s.charAt(h-1))&&0<h;)h--;h||(h=d)}}return{start:Tt(r.line,h),end:Tt(r.line,c)}}function ge(e,t,n){K(t,n)||Kt.jumpList.add(e,t,n)}function fe(e,t){Kt.lastCharacterSearch.increment=e,Kt.lastCharacterSearch.forward=t.forward,Kt.lastCharacterSearch.selectedCharacter=t.selectedCharacter}function pe(e,t,n,i){var o=V(e.getCursor()),r=n?1:-1,s=n?e.lineCount():-1,a=o.ch,l=o.line,c=e.getLine(l),h={lineText:c,nextCh:c.charAt(a),lastCh:null,index:a,symb:i,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[i],forward:n,depth:0,curMoveThrough:!1},u=Zt[i];if(!u)return o;var d=en[u].init,g=en[u].isComplete;for(d&&d(h);l!==s&&t;){if(h.index+=r,h.nextCh=h.lineText.charAt(h.index),!h.nextCh){if(l+=r,h.lineText=e.getLine(l)||"",0<r)h.index=0;else{var f=h.lineText.length;h.index=0<f?f-1:0}h.nextCh=h.lineText.charAt(h.index)}g(h)&&(o.line=l,o.ch=h.index,t--)}return h.nextCh||h.curMoveThrough?Tt(l,h.index):o}function me(e,t,n,i,o){var r=t.line,s=t.ch,a=e.getLine(r),l=n?1:-1,c=i?Ht:Bt;if(o&&""==a){if(r+=l,a=e.getLine(r),!p(e,r))return null;s=n?0:a.length}for(;;){if(o&&""==a)return{from:0,to:0,line:r};for(var h=0<l?a.length:-1,u=h,d=h;s!=h;){for(var g=!1,f=0;f<c.length&&!g;++f)if(c[f](a.charAt(s))){for(u=s;s!=h&&c[f](a.charAt(s));)s+=l;if(g=u!=(d=s),u==t.ch&&r==t.line&&d==u+l)continue;return{from:Math.min(u,d+1),to:Math.max(u,d),line:r}}g||(s+=l)}if(!p(e,r+=l))return null;a=e.getLine(r),s=0<l?0:a.length}}function ve(e,t,n,i,o,r){var s=V(t),a=[];(i&&!o||!i&&o)&&n++;for(var l=!(i&&o),c=0;c<n;c++){var h=me(e,t,i,r,l);if(!h){var u=X(e,e.lastLine());a.push(i?{line:e.lastLine(),from:u,to:u}:{line:0,from:0,to:0});break}a.push(h),t=Tt(h.line,i?h.to-1:h.from)}var d=a.length!=n,g=a[0],f=a.pop();return i&&!o?(d||g.from==s.ch&&g.line==s.line||(f=a.pop()),Tt(f.line,f.from)):i&&o?Tt(f.line,f.to-1):!i&&o?(d||g.to==s.ch&&g.line==s.line||(f=a.pop()),Tt(f.line,f.to)):Tt(f.line,f.from)}function we(e,t,n,i){for(var o,r=e.getCursor(),s=r.ch,a=0;a<t;a++){if(-1==(o=ke(s,e.getLine(r.line),i,n,!0)))return null;s=o}return Tt(e.getCursor().line,o)}function be(e,t){var n=e.getCursor().line;return B(e,Tt(n,t-1))}function ye(e,t,n,i){b(n,Wt)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(i))}function ke(e,t,n,i,o){var r;return i?-1==(r=t.indexOf(n,e+1))||o||(r-=1):-1==(r=t.lastIndexOf(n,e-1))||o||(r+=1),r}function xe(n,e,t,i,o){function r(e){return!/\S/.test(n.getLine(e))}function s(e,t,n){return n?r(e)!=r(e+t):!r(e)&&r(e+t)}function a(e){i=0<i?1:-1;var t=n.ace.session.getFoldLine(e);t&&e+i>t.start.row&&e+i<t.end.row&&(i=(0<i?t.end.row:t.start.row)-e)}var l,c=e.line,h=n.firstLine(),u=n.lastLine(),d=c;if(i){for(;h<=d&&d<=u&&0<t;)a(d),s(d,i)&&t--,d+=i;return new Tt(d,0)}var g=n.state.vim;if(g.visualLine&&s(c,1,!0)){var f=g.sel.anchor;s(f.line,-1,!0)&&(o&&f.line==c||(c+=1))}var p=r(c);for(d=c;d<=u&&t;d++)s(d,1,!0)&&(o&&r(d)==p||t--);for(l=new Tt(d,0),u<d&&!p?p=!0:o=!1,d=c;h<d&&(o&&r(d)!=p&&d!=c||!s(d,-1,!0));d--);return{start:new Tt(d,0),end:l}}function Ce(e,t,n,i){function h(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!p(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=0<t.dir?0:t.line.length-1}else t.pos+=t.dir}function o(e,t,n,i){var o=""===(l=e.getLine(t)),r={line:l,ln:t,pos:n,dir:i},s={ln:r.ln,pos:r.pos},a=""===r.line;for(h(e,r);null!==r.line;){if(s.ln=r.ln,s.pos=r.pos,""===r.line&&!a)return{ln:r.ln,pos:r.pos};if(o&&""!==r.line&&!v(r.line[r.pos]))return{ln:r.ln,pos:r.pos};!w(r.line[r.pos])||o||r.pos!==r.line.length-1&&!v(r.line[r.pos+1])||(o=!0),h(e,r)}var l=e.getLine(s.ln);s.pos=0;for(var c=l.length-1;0<=c;--c)if(!v(l[c])){s.pos=c;break}return s}function r(e,t,n,i){var o={line:a=e.getLine(t),ln:t,pos:n,dir:i},r={ln:o.ln,pos:null},s=""===o.line;for(h(e,o);null!==o.line;){if(""===o.line&&!s)return null!==r.pos?r:{ln:o.ln,pos:o.pos};if(w(o.line[o.pos])&&null!==r.pos&&(o.ln!==r.ln||o.pos+1!==r.pos))return r;""===o.line||v(o.line[o.pos])||(s=!1,r={ln:o.ln,pos:o.pos}),h(e,o)}for(var a=e.getLine(r.ln),l=r.pos=0;l<a.length;++l)if(!v(a[l])){r.pos=l;break}return r}for(var s={ln:t.line,pos:t.ch};0<n;)s=i<0?r(e,s.ln,s.pos,i):o(e,s.ln,s.pos,i),n--;return Tt(s.ln,s.pos)}function Se(e,t,n,i){var o,r,s=t,a={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],l={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],c=e.getLine(s.line).charAt(s.ch)===l?1:0;if(o=e.scanForBracket(Tt(s.line,s.ch+c),-1,undefined,{bracketRegex:a}),r=e.scanForBracket(Tt(s.line,s.ch+c),1,undefined,{bracketRegex:a}),!o||!r)return{start:s,end:s};if(o=o.pos,r=r.pos,o.line==r.line&&o.ch>r.ch||o.line>r.line){var h=o;o=r,r=h}return i?r.ch+=1:o.ch+=1,{start:o,end:r}}function $e(e,t,n,i){var o,r,s,a,l=V(t),c=e.getLine(l.line).split(""),h=c.indexOf(n);if(l.ch<h?l.ch=h:h<l.ch&&c[l.ch]==n&&(r=l.ch,--l.ch),c[l.ch]!=n||r)for(s=l.ch;-1<s&&!o;s--)c[s]==n&&(o=s+1);else o=l.ch+1;if(o&&!r)for(s=o,a=c.length;s<a&&!r;s++)c[s]==n&&(r=s);return o&&r?(i&&(--o,++r),{start:Tt(l.line,o),end:Tt(l.line,r)}):{start:l,end:l}}function Ae(){}function Le(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Ae)}function Me(e,t,n,i,o){e.openDialog?e.openDialog(t,i,{bottom:!0,value:o.value,onKeyDown:o.onKeyDown,onKeyUp:o.onKeyUp,selectValueOnOpen:!1,onClose:function(){e.state.vim&&(e.state.vim.status="",e.ace.renderer.$loop.schedule(e.ace.renderer.CHANGE_CURSOR))}}):i(prompt(n,""))}function Re(e){return Te(e,"/")}function _e(e){return Ee(e,"/")}function Te(e,t){var n=Ee(e,t)||[];if(!n.length)return[];var i=[];if(0===n[0]){for(var o=0;o<n.length;o++)"number"==typeof n[o]&&i.push(e.substring(n[o]+1,n[o+1]));return i}}function Ee(e,t){t||(t="/");for(var n=!1,i=[],o=0;o<e.length;o++){var r=e.charAt(o);n||r!=t||i.push(o),n=!n&&"\\"==r}return i}function Oe(e){for(var t="|(){",n="}",i=!1,o=[],r=-1;r<e.length;r++){var s=e.charAt(r)||"",a=e.charAt(r+1)||"",l=a&&-1!=t.indexOf(a);i?("\\"===s&&l||o.push(s),i=!1):"\\"===s?(i=!0,a&&-1!=n.indexOf(a)&&(l=!0),l&&"\\"!==a||o.push(s)):(o.push(s),l&&"\\"!==a&&o.push("\\"))}return o.join("")}function Ie(e){for(var t=!1,n=[],i=-1;i<e.length;i++){var o=e.charAt(i)||"",r=e.charAt(i+1)||"";tn[o+r]?(n.push(tn[o+r]),i++):t?(n.push(o),t=!1):"\\"===o?(t=!0,f(r)||"$"===r?n.push("$"):"/"!==r&&"\\"!==r&&n.push("\\")):("$"===o&&n.push("$"),n.push(o),"/"===r&&n.push("\\"))}return n.join("")}function Fe(e){for(var t=new Lt.StringStream(e),n=[];!t.eol();){for(;t.peek()&&"\\"!=t.peek();)n.push(t.next());var i=!1;for(var o in nn)if(t.match(o,!0)){i=!0,n.push(nn[o]);break}i||n.push(t.next())}return n.join("")}function Be(e,t,n){if(Kt.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var i,o,r=_e(e);r.length?(i=e.substring(0,r[0]),o=-1!=e.substring(r[0]).indexOf("i")):i=e;return i?(x("pcre")||(i=Oe(i)),n&&(t=/^[^A-Z]*$/.test(i)),new RegExp(i,t||o?"i":undefined)):null}function He(e,t){e.openNotification?e.openNotification('<span style="color: red">'+t+"</span>",{bottom:!0,duration:5e3}):alert(t)}function Ne(e,t){var n='<span style="font-family: monospace; white-space: pre">'+(e||"")+'<input type="text" autocorrect="off" autocapitalize="none" autocomplete="off"></span>';return t&&(n+=' <span style="color: #888">'+t+"</span>"),n}function De(e,t){var n=(t.prefix||"")+" "+(t.desc||"");Me(e,Ne(t.prefix,t.desc),n,t.onClose,t)}function Pe(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}return!1}function We(e,t,n,i){if(t){var o=Le(e),r=Be(t,!!n,!!i);if(r)return Ve(e,r),Pe(r,o.getQuery())||o.setQuery(r),r}}function ze(n){if("^"==n.source.charAt(0))var i=!0;return{token:function(e){if(!i||e.sol()){var t=e.match(n,!1);if(t)return 0==t[0].length?(e.next(),"searching"):e.sol()||(e.backUp(1),n.exec(e.next()+t[0]))?(e.match(n),"searching"):(e.next(),null);for(;!e.eol()&&(e.next(),!e.match(n,!1)););}else e.skipToEnd()},query:n}}function Ve(e,t){var n=Le(e),i=n.getOverlay();i&&t==i.query||(i&&e.removeOverlay(i),i=ze(t),e.addOverlay(i),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(i))}function Ke(o,r,s,a){return a===undefined&&(a=1),o.operation(function(){for(var e=o.getCursor(),t=o.getSearchCursor(s,e),n=0;n<a;n++){var i=t.find(r);if(0==n&&i&&K(t.from(),e)&&(i=t.find(r)),!i&&!(t=o.getSearchCursor(s,r?Tt(o.lastLine()):Tt(o.firstLine(),0))).find(r))return}return t.from()})}function Ue(e){var t=Le(e);e.removeOverlay(Le(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function Ge(e,t,n){return"number"!=typeof e&&(e=e.line),t instanceof Array?b(e,t):n?t<=e&&e<=n:e==t}function je(e){var t=e.ace.renderer;return{top:t.getFirstFullyVisibleRow(),bottom:t.getLastFullyVisibleRow()}}function qe(e,t,n){if("'"==n||"`"==n)return Kt.jumpList.find(e,-1)||Tt(0,0);if("."==n)return Xe(e);var i=t.marks[n];return i&&i.find()}function Xe(e){var t=e.ace.session.$undoManager;if(t&&t.$lastDelta)return c(t.$lastDelta.end)}function Qe(o,e,t,n,i,r,s,a,l){function c(){o.operation(function(){for(;!p;)u(),d();g()})}function h(e){return(e.match(/[\n\r]/g)||[]).length}function u(){var e=o.getRange(r.from(),r.to()),t=e.replace(s,a);r.replace(t);var n=h(t)-h(e);i+=n,m.line+=n}function d(){for(;r.findNext()&&Ge(r.from(),n,i);)if(t||!m||r.from().line!=m.line)return o.scrollIntoView(r.from(),30),o.setSelection(r.from(),r.to()),m=r.from(),void(p=!1);p=!0}function g(e){if(e&&e(),o.focus(),m){o.setCursor(m);var t=o.state.vim;t.exMode=!1,t.lastHPos=t.lastHSPos=m.ch}l&&l()}function f(e,t,n){switch(Lt.e_stop(e),Lt.keyName(e)){case"Y":u(),d();break;case"N":d();break;case"A":var i=l;l=undefined,o.operation(c),l=i;break;case"L":u();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":g(n)}return p&&g(n),!0}var p=!(o.state.vim.exMode=!0),m=r.from();if(d(),!p)return e?void De(o,{prefix:"replace with <strong>"+a+"</strong> (y/n/a/q/l)",onKeyDown:f}):(c(),void(l&&l()));He(o,"No matches for "+s.source)}function Ye(e){var t=e.state.vim,n=Kt.macroModeState,i=Kt.registerController.getRegister("."),o=n.isPlaying,r=n.lastInsertModeChanges;o||(e.off("change",ot),Lt.off(e.getInputField(),"keydown",ct)),!o&&1<t.insertModeRepeat&&(ht(e,t,t.insertModeRepeat-1,!0),t.lastEditInputState.repeatOverride=t.insertModeRepeat),delete t.insertModeRepeat,t.insertMode=!1,e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption("keyMap","vim"),e.setOption("disableInput",!0),e.toggleOverwrite(!1),i.setText(r.changes.join("")),Lt.signal(e,"vim-mode-change",{mode:"normal"}),n.isRecording&&nt(n)}function Je(e){Mt.unshift(e)}function Ze(e,t,n,i,o){var r={keys:e,type:t};for(var s in r[t]=n,r[t+"Args"]=i,o)r[s]=o[s];Je(r)}function et(e,t,n,i){var o=Kt.registerController.getRegister(i);if(":"==i)return o.keyBuffer[0]&&an.processCommand(e,o.keyBuffer[0]),void(n.isPlaying=!1);var r=o.keyBuffer,s=0;n.isPlaying=!0,n.replaySearchQueries=o.searchQueries.slice(0);for(var a=0;a<r.length;a++)for(var l,c,h=r[a];h;)if(c=(l=/<\w+-.+?>|<\w+>|./.exec(h))[0],h=h.substring(l.index+c.length),Lt.Vim.handleKey(e,c,"macro"),t.insertMode){var u=o.insertModeChanges[s++].changes;ut(e,Kt.macroModeState.lastInsertModeChanges.changes=u,1),Ye(e)}n.isPlaying=!1}function tt(e,t){if(!e.isPlaying){var n=e.latestRegister,i=Kt.registerController.getRegister(n);i&&i.pushText(t)}}function nt(e){if(!e.isPlaying){var t=e.latestRegister,n=Kt.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function it(e,t){if(!e.isPlaying){var n=e.latestRegister,i=Kt.registerController.getRegister(n);i&&i.pushSearchQuery&&i.pushSearchQuery(t)}}function ot(e,t){var n=Kt.macroModeState,i=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(i.expectCursorActivityForChange=!0,1<i.ignoreCount)i.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||t.origin===undefined){var o=e.listSelections().length;1<o&&(i.ignoreCount=o);var r=t.text.join("\n");i.maybeReset&&(i.changes=[],i.maybeReset=!1),r&&(e.state.overwrite&&!/\n/.test(r)?i.changes.push([r]):i.changes.push(r))}t=t.next}}function rt(e){var t=e.state.vim;if(t.insertMode){var n=Kt.macroModeState;if(n.isPlaying)return;var i=n.lastInsertModeChanges;i.expectCursorActivityForChange?i.expectCursorActivityForChange=!1:i.maybeReset=!0}else e.curOp.isVimOp||at(e,t);t.visualMode&&st(e)}function st(e){var t=e.state.vim,n=B(e,V(t.sel.head)),i=N(n,0,1);t.fakeCursor&&t.fakeCursor.clear(),t.fakeCursor=e.markText(n,i,{className:"cm-animate-fat-cursor"})}function at(e,t,n){var i=e.getCursor("anchor"),o=e.getCursor("head");if(t.visualMode&&!e.somethingSelected()?le(e,!1):t.visualMode||t.insertMode||!e.somethingSelected()||(t.visualMode=!0,t.visualLine=!1,Lt.signal(e,"vim-mode-change",{mode:"visual"})),t.visualMode){var r=U(o,i)?0:-1,s=U(o,i)?-1:0;o=N(o,0,r),i=N(i,0,s),t.sel={anchor:i,head:o},ye(e,t,"<",G(o,i)),ye(e,t,">",j(o,i))}else t.insertMode||n||(t.lastHPos=e.getCursor().ch)}function lt(e){this.keyName=e}function ct(e){function t(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new lt(i)),!0}var n=Kt.macroModeState.lastInsertModeChanges,i=Lt.keyName(e);i&&(-1==i.indexOf("Delete")&&-1==i.indexOf("Backspace")||Lt.lookupKey(i,"vim-insert",t))}function ht(n,i,e,t){function o(){a?Xt.processAction(n,i,i.lastEditActionCommand):Xt.evalInput(n,i)}function r(e){if(0<s.lastInsertModeChanges.changes.length){e=i.lastEditActionCommand?e:1;var t=s.lastInsertModeChanges;ut(n,t.changes,e)}}var s=Kt.macroModeState;s.isPlaying=!0;var a=!!i.lastEditActionCommand,l=i.inputState;if(i.inputState=i.lastEditInputState,a&&i.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c<e;c++)o(),r(1);else t||o(),r(e);i.inputState=l,i.insertMode&&!t&&Ye(n),s.isPlaying=!1}function ut(t,e,n){function i(e){return"string"==typeof e?Lt.commands[e](t):e(t),!0}var o=t.getCursor("head"),r=Kt.macroModeState.lastInsertModeChanges.visualBlock;r&&(ee(t,o,r+1),n=t.listSelections().length,t.setCursor(o));for(var s=0;s<n;s++){r&&t.setCursor(N(o,s,0));for(var a=0;a<e.length;a++){var l=e[a];if(l instanceof lt)Lt.lookupKey(l.keyName,"vim-insert",i);else if("string"==typeof l){var c=t.getCursor();t.replaceRange(l,c,c)}else{var h=t.getCursor(),u=N(h,0,l[0].length);t.replaceRange(l[0],h,u)}}}r&&t.setCursor(N(o,0,1))}function dt(e,t,n){1<t.length&&"n"==t[0]&&(t=t.replace("numpad","")),t=ln[t]||t;var i="";return n.ctrlKey&&(i+="C-"),n.altKey&&(i+="A-"),(i||1<t.length)&&n.shiftKey&&(i+="S-"),1<(i+=t).length&&(i="<"+i+">"),i}function gt(n){var i=new n.constructor;return Object.keys(n).forEach(function(e){var t=n[e];Array.isArray(t)?t=t.slice():t&&"object"==typeof t&&t.constructor!=Object&&(t=gt(t)),i[e]=t}),n.sel&&(i.sel={head:n.sel.head&&V(n.sel.head),anchor:n.sel.anchor&&V(n.sel.anchor)}),i}function ft(r,s,a){var l=!1,e=Et.maybeInitVimState_(r),t=e.visualBlock||e.wasInVisualBlock,n=r.ace.inMultiSelectMode;if(e.wasInVisualBlock&&!n?e.wasInVisualBlock=!1:n&&e.visualBlock&&(e.wasInVisualBlock=!0),"<Esc>"!=s||e.insertMode||e.visualMode||!n)if(t||!n||r.ace.inVirtualSelectionMode)l=Et.handleKey(r,s,a);else{var c=gt(e);r.operation(function(){r.ace.forEachSelection(function(){var e=r.ace.selection;r.state.vim.lastHPos=null==e.$desiredColumn?e.lead.column:e.$desiredColumn;var t=r.getCursor("head"),n=r.getCursor("anchor"),i=U(t,n)?0:-1,o=U(t,n)?-1:0;t=N(t,0,i),n=N(n,0,o),r.state.vim.sel.head=t,r.state.vim.sel.anchor=n,l=cn(r,s,a),e.$desiredColumn=-1==r.state.vim.lastHPos?null:r.state.vim.lastHPos,r.virtualSelectionMode()&&(r.state.vim=gt(c))}),r.curOp.cursorActivity&&!l&&(r.curOp.cursorActivity=!1)},!0)}else r.ace.exitMultiSelectMode();return!l||e.visualMode||e.insert||e.visualMode==r.somethingSelected()||at(r,e,!0),l}function pt(e,t){t.off("beforeEndOperation",pt);var n=t.state.cm.vimCmd;n&&t.execCommand(n.exec?n:n.name,n.args),t.curOp=t.prevOp}var mt=e("../range").Range,vt=e("../lib/event_emitter").EventEmitter,wt=e("../lib/dom"),bt=e("../lib/oop"),yt=e("../lib/keys"),kt=e("../lib/event"),xt=e("../search").Search,Ct=e("../lib/useragent"),St=e("../search_highlight").SearchHighlight,$t=e("../commands/multi_select_commands"),At=e("../mode/text").Mode.prototype.tokenRe;e("../multi_select");var Lt=function(e){this.ace=e,this.state={},this.marks={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};Lt.Pos=function(e,t){if(!(this instanceof Tt))return new Tt(e,t);this.line=e,this.ch=t},Lt.defineOption=function(){},Lt.commands={redo:function(e){e.ace.redo()},undo:function(e){e.ace.undo()},newlineAndIndent:function(e){e.ace.insert("\n")}},Lt.keyMap={},Lt.addClass=Lt.rmClass=function(){},Lt.e_stop=Lt.e_preventDefault=kt.stopEvent,Lt.keyName=function(e){var t=yt[e.keyCode]||e.key||"";return 1==t.length&&(t=t.toUpperCase()),t=kt.getModifierString(e).replace(/(^|-)\w/g,function(e){return e.toUpperCase()})+t},Lt.keyMap["default"]=function(n){return function(e){var t=e.ace.commands.commandKeyBinding[n.toLowerCase()];return t&&!1!==e.ace.execCommand(t)}},Lt.lookupKey=function dt(e,t,n){t||(t="default"),"string"==typeof t&&(t=Lt.keyMap[t]);var i="function"==typeof t?t(e):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if(!Array.isArray(t.fallthrough))return dt(e,t.fallthrough,n);for(var o=0;o<t.fallthrough.length;o++){var r=dt(e,t.fallthrough[o],n);if(r)return r}}},Lt.signal=function(e,t,n){return e._signal(t,n)},Lt.on=kt.addListener,Lt.off=kt.removeListener,Lt.isWordChar=function(e){return e<"\x7f"?/^\w$/.test(e):(At.lastIndex=0,At.test(e))},function(){bt.implement(Lt.prototype,vt),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(e){var t={text:"i"==e.action[0]?e.lines:[]},n=this.curOp=this.curOp||{};n.changeHandlers||(n.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),n.lastChange?n.lastChange.next=n.lastChange=t:n.lastChange=n.change=t,this.$updateMarkers(e)},this.onSelectionChange=function(){var e=this.curOp=this.curOp||{};e.cursorActivityHandlers||(e.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler($t.keyboardHandler)},this.operation=function(e,t){if(!t&&this.curOp||t&&this.curOp&&this.curOp.force)return e();if(!t&&this.ace.curOp||this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var n=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var i=this.curOp=this.curOp||{};this.curOp.force=t;var o=e();return this.ace.curOp&&"vim"==this.ace.curOp.command.name&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=!1),this.ace.endOperation(),i.cursorActivity||i.lastChange||!n||(this.ace.prevOp=n)),!t&&this.ace.curOp||this.curOp&&this.onBeforeEndOperation(),o},this.onBeforeEndOperation=function(){var e=this.curOp;e&&(e.change&&this.signal("change",e.change,e),e&&e.cursorActivity&&this.signal("cursorActivity",null,e),this.curOp=null)},this.signal=function(e,t,n){var i=n?n[e+"Handlers"]:(this._eventRegistry||{})[e];if(i){i=i.slice();for(var o=0;o<i.length;o++)i[o](this,t)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(e,t){"object"==typeof e&&(t=e.ch,e=e.line),this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:e,column:t}),this.ace.selection.moveTo(e,t)},this.getCursor=function(e){var t=this.ace.selection;return c("anchor"==e?t.isEmpty()?t.lead:t.anchor:"head"!=e&&e?t.getRange()[e]:t.lead)},this.listSelections=function(){var e=this.ace.multiSelect.rangeList.ranges;return!e.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:e.map(function(e){return{anchor:this.clipPos(c(e.cursor==e.end?e.start:e.end)),head:this.clipPos(c(e.cursor))}},this)},this.setSelections=function(e,t){var n=this.ace.multiSelect,i=e.map(function(e){var t=a(e.anchor),n=a(e.head),i=mt.comparePoints(t,n)<0?new mt.fromPoints(t,n):new mt.fromPoints(n,t);return i.cursor=mt.comparePoints(i.start,n)?i.end:i.start,i});if(this.ace.inVirtualSelectionMode)this.ace.selection.fromOrientedRange(i[0]);else{t?i[t]&&i.push(i.splice(t,1)[0]):i=i.reverse(),n.toSingleRange(i[0].clone());for(var o=this.ace.session,r=0;r<i.length;r++){var s=o.$clipRangeToDocument(i[r]);n.addRange(s)}}},this.setSelection=function(e,t,n){var i=this.ace.selection;i.moveTo(e.line,e.ch),i.selectTo(t.line,t.ch),n&&"*mouse"==n.origin&&this.onBeforeEndOperation()},this.somethingSelected=function(){return!this.ace.selection.isEmpty()},this.clipPos=function(e){return c(this.ace.session.$clipPositionToDocument(e.line,e.ch))},this.markText=function(){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(e){var t="insert"==e.action,n=e.start,i=e.end,o=(i.row-n.row)*(t?1:-1),r=(i.column-n.column)*(t?1:-1);for(var s in t&&(i=n),this.marks){var a=this.marks[s],l=mt.comparePoints(a,n);if(!(l<0)){if(0===l&&t){if(1!=a.bias){a.bias=-1;continue}l=1}var c=t?l:mt.comparePoints(a,i);0<c?(a.row+=o,a.column+=a.row==i.row?r:0):!t&&c<=0&&(a.row=n.row,a.column=n.column,0===c&&(a.bias=1))}}};var i=function(e,t,n,i){this.cm=e,this.id=t,this.row=n,this.column=i,e.marks[this.id]=this};i.prototype.clear=function(){delete this.cm.marks[this.id]},i.prototype.find=function(){return c(this)},this.setBookmark=function(e,t){var n=new i(this,this.$uid++,e.line,e.ch);return t&&t.insertLeft||(n.$insertRight=!0),this.marks[n.id]=n},this.moveH=function(e,t){if("char"==t){var n=this.ace.selection;n.clearSelection(),n.moveCursorBy(0,e)}},this.findPosV=function(e,t,n,i){if("page"==n){var o=this.ace.renderer.layerConfig;t*=Math.floor(o.height/o.lineHeight),n="line"}if("line"==n){var r=this.ace.session.documentToScreenPosition(e.line,e.ch);return null!=i&&(r.column=i),r.row+=t,r.row=Math.min(Math.max(0,r.row),this.ace.session.getScreenLength()-1),c(this.ace.session.screenToDocumentPosition(r.row,r.column))}},this.charCoords=function(e,t){if("div"==t||!t)return{left:(i=this.ace.session.documentToScreenPosition(e.line,e.ch)).column,top:i.row};if("local"==t){var n=this.ace.renderer,i=this.ace.session.documentToScreenPosition(e.line,e.ch),o=n.layerConfig.lineHeight,r=n.layerConfig.characterWidth,s=o*i.row;return{left:i.column*r,top:s,bottom:s+o}}},this.coordsChar=function(e,t){var n=this.ace.renderer;if("local"==t){var i=Math.max(0,Math.floor(e.top/n.lineHeight)),o=Math.max(0,Math.floor(e.left/n.characterWidth));return c(n.session.screenToDocumentPosition(i,o))}if("div"==t)throw"not implemented"},this.getSearchCursor=function(n,e){var i=!1,o=!1;n instanceof RegExp&&!n.global&&(i=!n.ignoreCase,n=n.source,o=!0);var r=new xt;e.ch==undefined&&(e.ch=Number.MAX_VALUE);var s={row:e.line,column:e.ch},a=this,l=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){r.setOptions({needle:n,caseSensitive:i,wrap:!1,backwards:e,regExp:o,start:l||s});var t=r.find(a.ace.session);return t&&t.isEmpty()&&a.getLine(t.start.row).length==t.start.column&&(r.$options.start=t,t=r.find(a.ace.session)),l=t},from:function(){return l&&c(l.start)},to:function(){return l&&c(l.end)},replace:function(e){l&&(l.end=a.ace.session.doc.replace(l,e))}}},this.scrollTo=function(e,t){var n=this.ace.renderer,i=n.layerConfig,o=i.maxHeight;o-=(n.$size.scrollerHeight-n.lineHeight)*n.$scrollPastEnd,null!=t&&this.ace.session.setScrollTop(Math.max(0,Math.min(t,o))),null!=e&&this.ace.session.setScrollLeft(Math.max(0,Math.min(e,i.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(e,t){if(e){var n=this.ace.renderer,i={top:0,bottom:t};n.scrollCursorIntoView(a(e),2*n.lineHeight/n.$size.scrollerHeight,i)}},this.getLine=function(e){return this.ace.session.getLine(e)},this.getRange=function(e,t){return this.ace.session.getTextRange(new mt(e.line,e.ch,t.line,t.ch))},this.replaceRange=function(e,t,n){return n||(n=t),this.ace.session.replace(new mt(t.line,t.ch,n.line,n.ch),e)},this.replaceSelection=this.replaceSelections=function(e){var t=this.ace.selection;if(this.ace.inVirtualSelectionMode)this.ace.session.replace(t.getRange(),e[0]||"");else{t.inVirtualSelectionMode=!0;var n=t.rangeList.ranges;n.length||(n=[this.ace.multiSelect.getRange()]);for(var i=n.length;i--;)this.ace.session.replace(n[i],e[i]||"");t.inVirtualSelectionMode=!1}},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(e){return this.getRange(e.anchor,e.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var o={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(e,t){switch(this.state[e]=t,e){case"indentWithTabs":e=o[e],t=!t;break;case"keyMap":return void(this.state.$keyMap=t);default:e=o[e]}e&&this.ace.setOption(e,t)},this.getOption=function(e,t){var n=o[e];switch(n&&(t=this.ace.getOption(n)),e){case"indentWithTabs":return e=o[e],!t;case"keyMap":return this.state.$keyMap}return n?t:this.state[e]},this.toggleOverwrite=function(e){return this.state.overwrite=e,this.ace.setOverwrite(e)},this.addOverlay=function(e){if(!this.$searchHighlight||!this.$searchHighlight.session){var n=new St(null,"ace_highlight-marker","text"),t=this.ace.session.addDynamicMarker(n) ;n.id=t.id,n.session=this.ace.session,n.destroy=function(){n.session.off("change",n.updateOnChange),n.session.off("changeEditor",n.destroy),n.session.removeMarker(n.id),n.session=null},n.updateOnChange=function(e){var t=e.start.row;t==e.end.row?n.cache[t]=undefined:n.cache.splice(t,n.cache.length)},n.session.on("changeEditor",n.destroy),n.session.on("change",n.updateOnChange)}var i=new RegExp(e.query.source,"gmi");this.$searchHighlight=e.highlight=n,this.$searchHighlight.setRegexp(i),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var e=this.ace.renderer,t=e.layerConfig;return{left:e.scrollLeft,top:e.scrollTop,height:t.maxHeight,width:t.width,clientHeight:t.height,clientWidth:t.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(e){return this.ace.setValue(e,-1)},this.getTokenTypeAt=function(e){var t=this.ace.session.getTokenAt(e.line,e.ch);return t&&/comment|string/.test(t.type)?"string":""},this.findMatchingBracket=function(e){var t=this.ace.session.findMatchingBracket(a(e));return{to:t&&c(t)}},this.indentLine=function(e,t){!0===t?this.ace.session.indentRows(e,e,"\t"):!1===t&&this.ace.session.outdentRows(new mt(e,0,e,0))},this.indexFromPos=function(e){return this.ace.session.doc.positionToIndex(a(e))},this.posFromIndex=function(e){return c(this.ace.session.doc.indexToPosition(e))},this.focus=function(){return this.ace.textInput.focus()},this.blur=function(){return this.ace.blur()},this.defaultTextHeight=function(){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(e,t,n,i){var o=i.bracketRegex.source,r=/paren|text|operator|tag/;if(1==t)var s=this.ace.session.$findClosingBracket(o.slice(1,2),a(e),r);else s=this.ace.session.$findOpeningBracket(o.slice(-2,-1),{row:e.line,column:e.ch+1},r);return s&&{pos:c(s)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(e){"indentAuto"==e?this.ace.execCommand("autoindent"):console.log(e+" is not implemented")}}.call(Lt.prototype),(Lt.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0}).prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||undefined},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(e){var t=this.string.charAt(this.pos);if("string"==typeof e)var n=t==e;else n=t&&(e.test?e.test(t):e(t));if(n)return++this.pos,t},eatWhile:function(e){for(var t=this.pos;this.eat(e););return this.pos>t},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(-1<t)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&0<i.index?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}},Lt.defineExtension=function(e,t){Lt.prototype[e]=t},wt.importCssString(".normal-mode .ace_cursor{ border: none; background-color: rgba(255,0,0,0.5);}.normal-mode .ace_hidden-cursors .ace_cursor{ background-color: transparent; border: 1px solid red; opacity: 0.7}.ace_dialog { position: absolute; left: 0; right: 0; background: inherit; z-index: 15; padding: .1em .8em; overflow: hidden; color: inherit;}.ace_dialog-top { border-bottom: 1px solid #444; top: 0;}.ace_dialog-bottom { border-top: 1px solid #444; bottom: 0;}.ace_dialog input { border: none; outline: none; background: transparent; width: 20em; color: inherit; font-family: monospace;}","vimMode"),function(){function c(e,t,n){var i;return(i=e.ace.container.appendChild(document.createElement("div"))).className=n?"ace_dialog ace_dialog-bottom":"ace_dialog ace_dialog-top","string"==typeof t?i.innerHTML=t:i.appendChild(t),i}function h(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}Lt.defineExtension("openDialog",function(e,t,n){function i(e){if("string"==typeof e)l.value=e;else{if(s)return;if(e&&"blur"==e.type&&document.activeElement===l)return;a.state.dialog=null,s=!0,r.parentNode.removeChild(r),a.focus(),n.onClose&&n.onClose(r)}}if(!this.virtualSelectionMode()){n||(n={}),h(this,null);var o,r=c(this,e,n.bottom),s=!1,a=this,l=(this.state.dialog=r).getElementsByTagName("input")[0];return l?(n.value&&(l.value=n.value,!1!==n.selectValueOnOpen&&l.select()),n.onInput&&Lt.on(l,"input",function(e){n.onInput(e,l.value,i)}),n.onKeyUp&&Lt.on(l,"keyup",function(e){n.onKeyUp(e,l.value,i)}),Lt.on(l,"keydown",function(e){n&&n.onKeyDown&&n.onKeyDown(e,l.value,i)||(13==e.keyCode&&t(l.value),(27==e.keyCode||!1!==n.closeOnEnter&&13==e.keyCode)&&(l.blur(),Lt.e_stop(e),i()))}),!1!==n.closeOnBlur&&Lt.on(l,"blur",i),l.focus()):(o=r.getElementsByTagName("button")[0])&&(Lt.on(o,"click",function(){i(),a.focus()}),!1!==n.closeOnBlur&&Lt.on(o,"blur",i),o.focus()),i}}),Lt.defineExtension("openNotification",function(e,t){function n(){r||(r=!0,clearTimeout(i),o.parentNode.removeChild(o))}if(!this.virtualSelectionMode()){h(this,n);var i,o=c(this,e,t&&t.bottom),r=!1,s=t&&"undefined"!=typeof t.duration?t.duration:5e3;return Lt.on(o,"click",function(e){Lt.e_preventDefault(e),n()}),s&&(i=setTimeout(n,s)),n}})}();var Mt=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Rt=Mt.length,_t=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],Tt=Lt.Pos,Et=function(){return qt};Lt.defineOption("vimMode",!1,function(e,t,n){t&&"vim"!=e.getOption("keyMap")?e.setOption("keyMap","vim"):!t&&n!=Lt.Init&&/^vim/.test(e.getOption("keyMap"))&&e.setOption("keyMap","default")});var Ot={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},It={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"},Ft=/[\d]/,Bt=[Lt.isWordChar,function(e){return e&&!Lt.isWordChar(e)&&!/\s/.test(e)}],Ht=[function(e){return/\S/.test(e)}],Nt=u(65,26),Dt=u(97,26),Pt=u(48,10),Wt=[].concat(Nt,Dt,Pt,["<",">"]),zt=[].concat(Nt,Dt,Pt,["-",'"',".",":","/"]),Vt={};y("filetype",undefined,"string",["ft"],function(e,t){if(t!==undefined){if(e===undefined)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}});var Kt,Ut,Gt=function(){function e(i,e,t){function n(e){var t=++a%s,n=h[t];n&&n.clear(),h[t]=i.setBookmark(e)}var o=h[a%s];if(o){var r=o.find();r&&!K(r,e)&&n(e)}else n(e);n(t),(c=(l=a)-s+1)<0&&(c=0)}function o(e,t){l<(a+=t)?a=l:a<c&&(a=c);var n=h[(s+a)%s];if(n&&!n.find()){var i,o=0<t?1:-1,r=e.getCursor();do{if((n=h[(s+(a+=o))%s])&&(i=n.find())&&!K(r,i))break}while(a<l&&c<a)}return n}function t(e,t){var n=a,i=o(e,t);return a=n,i&&i.find()}var s=100,a=-1,l=0,c=0,h=new Array(s);return{cachedCursor:undefined,add:e,find:t,move:o}},jt=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}},qt={buildKeyMap:function(){},getRegisterController:function(){return Kt.registerController},resetVimGlobalState_:$,getVimGlobalState_:function(){return Kt},maybeInitVimState_:S,suppressErrorLogging:!(C.prototype={exitMacroRecordMode:function(){var e=Kt.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=undefined,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=Kt.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog("(recording)["+t+"]",null,{bottom:!0})),this.isRecording=!0)}}),InsertModeKey:lt,map:function(e,t,n){an.map(e,t,n)},unmap:function(e,t){an.unmap(e,t)},noremap:function(e,t,n){function i(e){return e?[e]:["normal","insert","visual"]}for(var o=i(n),r=Mt.length,s=r-Rt;s<r&&o.length;s++){var a=Mt[s];if(!(a.keys!=t||n&&a.context&&a.context!==n||"ex"===a.type.substr(0,2)||"key"===a.type.substr(0,3))){var l={};for(var c in a)l[c]=a[c];l.keys=e,n&&!l.context&&(l.context=n),this._mapCommand(l);var h=i(a.context);o=o.filter(function(e){return-1===h.indexOf(e)})}}},mapclear:function(e){var t=Mt.length,n=Rt,i=Mt.slice(0,t-n);if(Mt=Mt.slice(t-n),e)for(var o=i.length-1;0<=o;o--){var r=i[o];if(e!==r.context)if(r.context)this._mapCommand(r);else{var s=["normal","insert","visual"];for(var a in s)if(s[a]!==e){var l={};for(var c in r)l[c]=r[c];l.context=s[a],this._mapCommand(l)}}}},setOption:k,getOption:x,defineOption:y,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;sn[e]=n,an.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var i=this.findKey(e,t,n);if("function"==typeof i)return i()},findKey:function(a,l,t){function o(){var e=Kt.macroModeState;if(e.isRecording){if("q"==l)return e.exitMacroRecordMode(),T(a),!0;"mapping"!=t&&tt(e,l)}}function c(){if("<Esc>"==l)return T(a),h.visualMode?le(a):h.insertMode&&Ye(a),!0}function n(e){for(var t;e;)t=/<\w+-.+?>|<\w+>|./.exec(e),l=t[0],e=e.substring(t.index+l.length),Lt.Vim.handleKey(a,l,"mapping")}function e(){if(c())return!0;for(var e=h.inputState.keyBuffer=h.inputState.keyBuffer+l,t=1==l.length,n=Xt.matchCommand(e,Mt,h.inputState,"insert");1<e.length&&"full"!=n.type;){e=h.inputState.keyBuffer=e.slice(1);var i=Xt.matchCommand(e,Mt,h.inputState,"insert");"none"!=i.type&&(n=i)}if("none"==n.type)return T(a),!1;if("partial"==n.type)return Ut&&window.clearTimeout(Ut),Ut=window.setTimeout(function(){h.insertMode&&h.inputState.keyBuffer&&T(a)},x("insertModeEscKeysTimeout")),!t;if(Ut&&window.clearTimeout(Ut),t){for(var o=a.listSelections(),r=0;r<o.length;r++){var s=o[r].head;a.replaceRange("",N(s,0,-(e.length-1)),s,"+input")}Kt.macroModeState.lastInsertModeChanges.changes.pop()}return T(a),n.command}function i(){if(o()||c())return!0;var e=h.inputState.keyBuffer=h.inputState.keyBuffer+l;if(/^[1-9]\d*$/.test(e))return!0;if(!(t=/^(\d*)(.*)$/.exec(e)))return T(a),!1;var t,n=h.visualMode?"visual":"normal",i=Xt.matchCommand(t[2]||t[1],Mt,h.inputState,n);return"none"==i.type?(T(a),!1):"partial"==i.type||(h.inputState.keyBuffer="",(t=/^(\d*)(.*)$/.exec(e))[1]&&"0"!=t[1]&&h.inputState.pushRepeatDigit(t[1]),i.command)}var r,h=S(a);return!1===(r=h.insertMode?e():i())?undefined:!0===r?function(){return!0}:function(){if(!r.operator&&!r.isEdit||!a.getOption("readOnly"))return a.operation(function(){a.curOp.isVimOp=!0;try{"keyToKey"==r.type?n(r.toKeys):Xt.processCommand(a,h,r)}catch(e){throw a.state.vim=undefined,S(a),Lt.Vim.suppressErrorLogging||console.log(e),e}return!0})}},handleEx:function(e,t){an.processCommand(e,t)},defineMotion:E,defineAction:F,defineOperator:I,mapCommand:Ze,_mapCommand:Je,defineRegister:M,exitVisualMode:le,exitInsertMode:Ye};A.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},A.prototype.getRepeat=function(){var e=0;return(0<this.prefixRepeat.length||0<this.motionRepeat.length)&&(e=1,0<this.prefixRepeat.length&&(e*=parseInt(this.prefixRepeat.join(""),10)),0<this.motionRepeat.length&&(e*=parseInt(this.motionRepeat.join(""),10))),e},L.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(jt(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},R.prototype={pushText:function(e,t,n,i,o){i&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var r=this.isValidRegister(e)?this.getRegister(e):null;if(r){m(e)?r.pushText(n,i):r.setText(n,i,o),this.unnamedRegister.setText(r.toString(),i)}else{switch(t){case"yank":this.registers[0]=new L(n,i,o);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new L(n,i):(this.shiftNumericRegisters_(),this.registers[1]=new L(n,i))}this.unnamedRegister.setText(n,i,o)}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new L),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&b(e,zt)},shiftNumericRegisters_:function(){for(var e=9;2<=e;e--)this.registers[e]=this.getRegister(""+(e-1))}},_.prototype={nextMatch:function(e,t){var n=this.historyBuffer,i=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var o=this.iterator+i;t?0<=o:o<n.length;o+=i)for(var r=n[o],s=0;s<=r.length;s++)if(this.initialPrefix==r.substring(0,s))return this.iterator=o,r;return o>=n.length?(this.iterator=n.length,this.initialPrefix):o<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);-1<t&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Xt={matchCommand:function(e,t,n,i){var o,r=D(e,t,i,n);if(!r.full&&!r.partial)return{type:"none"};if(!r.full&&r.partial)return{type:"partial"};for(var s=0;s<r.full.length;s++){var a=r.full[s];o||(o=a)}if("<character>"==o.keys.slice(-11)){var l=W(e);if(/<C-.>/.test(l)||!l)return{type:"none"};n.selectedCharacter=l}return{type:"full",command:o}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=H(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var i=t.inputState;if(i.operator){if(i.operator==n.operator)return i.motion="expandToLine",i.motionArgs={linewise:!0},void this.evalInput(e,t);T(e)}i.operator=n.operator,i.operatorArgs=H(n.operatorArgs),n.exitVisualBlock&&(t.visualBlock=!1,re(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var i=t.visualMode,o=H(n.operatorMotionArgs);o&&i&&o.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),i||this.processMotion(e,t,n)},processAction:function(e,t,n){var i=t.inputState,o=i.getRepeat(),r=!!o,s=H(n.actionArgs)||{};i.selectedCharacter&&(s.selectedCharacter=i.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),s.repeat=o||1,s.repeatIsExplicit=r,s.registerName=i.registerName,T(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,i,n),Jt[n.action](e,s,t)},processSearch:function(a,o,r){function n(e,t,n){Kt.searchHistoryController.pushInput(e),Kt.searchHistoryController.reset();try{We(a,e,t,n)}catch(i){return He(a,"Invalid regex: "+e),void T(a)}Xt.processMotion(a,o,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}function e(e){a.scrollTo(u.left,u.top),n(e,!0,!0);var t=Kt.macroModeState;t.isRecording&&it(t,e)}function t(e,t,n){var i,o,r,s=Lt.keyName(e);"Up"==s||"Down"==s?(i="Up"==s,o=e.target?e.target.selectionEnd:0,n(t=Kt.searchHistoryController.nextMatch(t,i)||""),o&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(o,e.target.value.length))):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&Kt.searchHistoryController.reset();try{r=We(a,t,!0,!0)}catch(e){}r?a.scrollIntoView(Ke(a,!l,r),30):(Ue(a),a.scrollTo(u.left,u.top))}function i(e,t,n){var i=Lt.keyName(e);"Esc"==i||"Ctrl-C"==i||"Ctrl-["==i||"Backspace"==i&&""==t?(Kt.searchHistoryController.pushInput(t),Kt.searchHistoryController.reset(),We(a,h),Ue(a),a.scrollTo(u.left,u.top),Lt.e_stop(e),T(a),n(),a.focus()):"Up"==i||"Down"==i?Lt.e_stop(e):"Ctrl-U"==i&&(Lt.e_stop(e),n(""))}if(a.getSearchCursor){var l=r.searchArgs.forward,s=r.searchArgs.wholeWordOnly;Le(a).setReversed(!l);var c=l?"/":"?",h=Le(a).getQuery(),u=a.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var d=Kt.macroModeState;if(d.isPlaying)n(p=d.replaySearchQueries.shift(),!0,!1);else De(a,{onClose:e,prefix:c,desc:on,onKeyUp:t,onKeyDown:i});break;case"wordUnderCursor":var g=de(a,!1,!0,!1,!0),f=!0;if(g||(g=de(a,!1,!0,!1,!1),f=!1),!g)return;var p=a.getLine(g.start.line).substring(g.start.ch,g.end.ch);p=f&&s?"\\b"+p+"\\b":Y(p),Kt.jumpList.cachedCursor=a.getCursor(),a.setCursor(g.start),n(p,!0,!1)}}},processEx:function(s,e,t){function n(e){Kt.exCommandHistoryController.pushInput(e),Kt.exCommandHistoryController.reset(),an.processCommand(s,e)}function i(e,t,n){var i,o,r=Lt.keyName(e);("Esc"==r||"Ctrl-C"==r||"Ctrl-["==r||"Backspace"==r&&""==t)&&(Kt.exCommandHistoryController.pushInput(t),Kt.exCommandHistoryController.reset(),Lt.e_stop(e),T(s),n(),s.focus()),"Up"==r||"Down"==r?(Lt.e_stop(e),i="Up"==r,o=e.target?e.target.selectionEnd:0,n(t=Kt.exCommandHistoryController.nextMatch(t,i)||""),o&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(o,e.target.value.length))):"Ctrl-U"==r?(Lt.e_stop(e),n("")):"Left"!=r&&"Right"!=r&&"Ctrl"!=r&&"Alt"!=r&&"Shift"!=r&&Kt.exCommandHistoryController.reset()}"keyToEx"==t.type?an.processCommand(s,t.exArgs.input):e.visualMode?De(s,{onClose:n,prefix:":",value:"'<,'>",onKeyDown:i,selectValueOnOpen:!1}):De(s,{onClose:n,prefix:":",onKeyDown:i})},evalInput:function(e,t){var n,i,o,r=t.inputState,s=r.motion,a=r.motionArgs||{},l=r.operator,c=r.operatorArgs||{},h=r.registerName,u=t.sel,d=V(t.visualMode?B(e,u.head):e.getCursor("head")),g=V(t.visualMode?B(e,u.anchor):e.getCursor("anchor")),f=V(d),p=V(g);if(l&&this.recordLastEdit(t,r),0<(o=r.repeatOverride!==undefined?r.repeatOverride:r.getRepeat())&&a.explicitRepeat?a.repeatIsExplicit=!0:(a.noRepeat||!a.explicitRepeat&&0===o)&&(o=1,a.repeatIsExplicit=!1),r.selectedCharacter&&(a.selectedCharacter=c.selectedCharacter=r.selectedCharacter),a.repeat=o,T(e),s){var m=Qt[s](e,d,a,t);if(t.lastMotion=Qt[s],!m)return;if(a.toJumplist){l||null==e.ace.curOp||(e.ace.curOp.command.scrollIntoView="center-animate");var v=Kt.jumpList,w=v.cachedCursor;w?(ge(e,w,m),delete v.cachedCursor):ge(e,d,m)}m instanceof Array?(i=m[0],n=m[1]):n=m,n||(n=V(d)),t.visualMode?(t.visualBlock&&n.ch===Infinity||(n=B(e,n,t.visualBlock)),i&&(i=B(e,i,!0)),i=i||p,u.anchor=i,u.head=n,re(e),ye(e,t,"<",U(i,n)?i:n),ye(e,t,">",U(i,n)?n:i)):l||(n=B(e,n),e.setCursor(n.line,n.ch))}if(l){if(c.lastSel){i=p;var b=c.lastSel,y=Math.abs(b.head.line-b.anchor.line),k=Math.abs(b.head.ch-b.anchor.ch);n=b.visualLine?Tt(p.line+y,p.ch):b.visualBlock?Tt(p.line+y,p.ch+k):b.head.line==b.anchor.line?Tt(p.line,p.ch+k):Tt(p.line+y,p.ch),t.visualMode=!0,t.visualLine=b.visualLine,t.visualBlock=b.visualBlock,u=t.sel={anchor:i,head:n},re(e)}else t.visualMode&&(c.lastSel={anchor:V(u.anchor),head:V( u.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var x,C,S,$,A;if(t.visualMode){if(x=G(u.head,u.anchor),C=j(u.head,u.anchor),S=t.visualLine||c.linewise,A=se(e,{anchor:x,head:C},$=t.visualBlock?"block":S?"line":"char"),S){var L=A.ranges;if("block"==$)for(var M=0;M<L.length;M++)L[M].head.ch=X(e,L[M].head.line);else"line"==$&&(L[0].head=Tt(L[0].head.line+1,0))}}else{if(x=V(i||p),U(C=V(n||f),x)){var R=x;x=C,C=R}(S=a.linewise||c.linewise)?he(e,x,C):a.forward&&ce(e,x,C),A=se(e,{anchor:x,head:C},$="char",!a.inclusive||S)}e.setSelections(A.ranges,A.primary),t.lastMotion=null,c.repeat=o,c.registerName=h,c.linewise=S;var _=Yt[l](e,c,A.ranges,p,n);t.visualMode&&le(e,null!=_),_&&e.setCursor(_)}},recordLastEdit:function(e,t,n){var i=Kt.macroModeState;i.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,i.lastInsertModeChanges.changes=[],i.lastInsertModeChanges.expectCursorActivityForChange=!1,i.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},Qt={moveToTopLine:function(e,t,n){var i=je(e).top+n.repeat-1;return Tt(i,ue(e.getLine(i)))},moveToMiddleLine:function(e){var t=je(e),n=Math.floor(.5*(t.top+t.bottom));return Tt(n,ue(e.getLine(n)))},moveToBottomLine:function(e,t,n){var i=je(e).bottom-n.repeat+1;return Tt(i,ue(e.getLine(i)))},expandToLine:function(e,t,n){return Tt(t.line+n.repeat-1,Infinity)},findNext:function(e,t,n){var i=Le(e),o=i.getQuery();if(o){var r=!n.forward;return r=i.isReversed()?!r:r,Ve(e,o),Ke(e,r,o,n.repeat)}},goToMark:function(e,t,n,i){var o=qe(e,i,n.selectedCharacter);return o?n.linewise?{line:o.line,ch:ue(e.getLine(o.line))}:o:null},moveToOtherHighlightedEnd:function(e,t,n,i){if(i.visualBlock&&n.sameLine){var o=i.sel;return[B(e,Tt(o.anchor.line,o.head.ch)),B(e,Tt(o.head.line,o.anchor.ch))]}return[i.sel.head,i.sel.anchor]},jumpToMark:function(e,t,n,i){for(var o=t,r=0;r<n.repeat;r++){var s=o;for(var a in i.marks)if(d(a)){var l=i.marks[a].find();if(!((n.forward?U(l,s):U(s,l))||n.linewise&&l.line==s.line)){var c=K(s,o),h=n.forward?q(s,l,o):q(o,l,s);(c||h)&&(o=l)}}}return n.linewise&&(o=Tt(o.line,ue(e.getLine(o.line)))),o},moveByCharacters:function(e,t,n){var i=t,o=n.repeat,r=n.forward?i.ch+o:i.ch-o;return Tt(i.line,r)},moveByLines:function(e,t,n,i){var o=t,r=o.ch;switch(i.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:r=i.lastHPos;break;default:i.lastHPos=r}var s=n.repeat+(n.repeatOffset||0),a=n.forward?o.line+s:o.line-s,l=e.firstLine(),c=e.lastLine();if(a<l&&o.line==l)return this.moveToStartOfLine(e,t,n,i);if(c<a&&o.line==c)return this.moveToEol(e,t,n,i,!0);var h=e.ace.session.getFoldLine(a);return h&&(n.forward?a>h.start.row&&(a=h.end.row+1):a=h.start.row),n.toFirstChar&&(r=ue(e.getLine(a)),i.lastHPos=r),i.lastHSPos=e.charCoords(Tt(a,r),"div").left,Tt(a,r)},moveByDisplayLines:function(e,t,n,i){var o=t;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var r=n.repeat;if((a=e.findPosV(o,n.forward?r:-r,"line",i.lastHSPos)).hitSide)if(n.forward)var s={top:e.charCoords(a,"div").top+8,left:i.lastHSPos},a=e.coordsChar(s,"div");else{var l=e.charCoords(Tt(e.firstLine(),0),"div");l.left=i.lastHSPos,a=e.coordsChar(l,"div")}return i.lastHPos=a.ch,a},moveByPage:function(e,t,n){var i=t,o=n.repeat;return e.findPosV(i,n.forward?o:-o,"page")},moveByParagraph:function(e,t,n){var i=n.forward?1:-1;return xe(e,t,n.repeat,i)},moveBySentence:function(e,t,n){var i=n.forward?1:-1;return Ce(e,t,n.repeat,i)},moveByScroll:function(e,t,n,i){var o=e.getScrollInfo(),r=null,s=n.repeat;s||(s=o.clientHeight/(2*e.defaultTextHeight()));var a=e.charCoords(t,"local");if(n.repeat=s,!(r=Qt.moveByDisplayLines(e,t,n,i)))return null;var l=e.charCoords(r,"local");return e.scrollTo(null,o.top+l.top-a.top),r},moveByWords:function(e,t,n){return ve(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var i=we(e,n.repeat,n.forward,n.selectedCharacter),o=n.forward?-1:1;return fe(o,n),i?(i.ch+=o,i):null},moveToCharacter:function(e,t,n){var i=n.repeat;return fe(0,n),we(e,i,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){return pe(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,i){var o=n.repeat;return i.lastHPos=o-1,i.lastHSPos=e.charCoords(t,"div").left,be(e,o)},moveToEol:function(e,t,n,i,o){var r=Tt(t.line+n.repeat-1,Infinity),s=e.clipPos(r);return s.ch--,o||(i.lastHPos=Infinity,i.lastHSPos=e.charCoords(s,"div").left),r},moveToFirstNonWhiteSpaceCharacter:function(e,t){var n=t;return Tt(n.line,ue(e.getLine(n.line)))},moveToMatchedSymbol:function(e,t){for(var n,i=t,o=i.line,r=i.ch,s=e.getLine(o);r<s.length;r++)if((n=s.charAt(r))&&g(n)){var a=e.getTokenTypeAt(Tt(o,r+1));if("string"!==a&&"comment"!==a)break}if(r<s.length){var l=/[<>]/.test(s[r])?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(Tt(o,r+1),{bracketRegex:l}).to}return i},moveToStartOfLine:function(e,t){return Tt(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,n){var i=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(i=n.repeat-e.getOption("firstLineNumber")),Tt(i,ue(e.getLine(i)))},textObjectManipulation:function(e,t,n,i){var o={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},r={"'":!0,'"':!0,"`":!0},s=n.selectedCharacter;"b"==s?s="(":"B"==s&&(s="{");var a,l=!n.textObjectInner;if(o[s])a=Se(e,t,s,l);else if(r[s])a=$e(e,t,s,l);else if("W"===s)a=de(e,l,!0,!0);else if("w"===s)a=de(e,l,!0,!1);else{if("p"!==s)return null;if(a=xe(e,t,n.repeat,0,l),n.linewise=!0,i.visualMode)i.visualLine||(i.visualLine=!0);else{var c=i.inputState.operatorArgs;c&&(c.linewise=!0),a.end.line--}}return e.state.vim.visualMode?oe(e,a.start,a.end):[a.start,a.end]},repeatLastCharacterSearch:function(e,t,n){var i=Kt.lastCharacterSearch,o=n.repeat,r=n.forward===i.forward,s=(i.increment?1:0)*(r?-1:1);e.moveH(-s,"char"),n.inclusive=!!r;var a=we(e,o,r,i.selectedCharacter);return a?(a.ch+=s,a):(e.moveH(s,"char"),t)}},Yt={change:function(e,t,n){var i,o,r=e.state.vim,s=n[0].anchor,a=n[0].head;if(r.visualMode)if(t.fullLine)a.ch=Number.MAX_VALUE,a.line--,e.setSelection(s,a),o=e.getSelection(),e.replaceSelection(""),i=s;else{o=e.getSelection();var l=O("",n.length);e.replaceSelections(l),i=G(n[0].head,n[0].anchor)}else{o=e.getRange(s,a);var c=r.lastEditInputState||{};if("moveByWords"==c.motion&&!v(o)){var h=/\s+$/.exec(o);h&&c.motionArgs&&c.motionArgs.forward&&(a=N(a,0,-h[0].length),o=o.slice(0,-h[0].length))}var u=new Tt(s.line-1,Number.MAX_VALUE),d=e.firstLine()==e.lastLine(),g=e.firstLine()==s.line;a.line>e.lastLine()&&t.linewise&&!d&&!g?e.replaceRange("",u,a):e.replaceRange("",s,a),t.linewise&&(d||(e.setCursor(u),Lt.commands.newlineAndIndent(e)),s.ch=Number.MAX_VALUE),i=s}Kt.registerController.pushText(t.registerName,"change",o,t.linewise,1<n.length),Jt.enterInsertMode(e,{head:i},e.state.vim)},"delete":function(e,t,n){var i,o,r=e.state.vim;if(r.visualBlock){o=e.getSelection();var s=O("",n.length);e.replaceSelections(s),i=n[0].anchor}else{var a=n[0].anchor,l=n[0].head;t.linewise&&l.line!=e.firstLine()&&a.line==e.lastLine()&&a.line==l.line-1&&(a.line==e.firstLine()?a.ch=0:a=Tt(a.line-1,X(e,a.line-1))),o=e.getRange(a,l),e.replaceRange("",a,l),i=a,t.linewise&&(i=Qt.moveToFirstNonWhiteSpaceCharacter(e,a))}return Kt.registerController.pushText(t.registerName,"delete",o,t.linewise,r.visualBlock),B(e,i,r.insertMode)},indent:function(e,t,n){var i=e.state.vim,o=n[0].anchor.line,r=i.visualBlock?n[n.length-1].anchor.line:n[0].head.line,s=i.visualMode?t.repeat:1;t.linewise&&r--;for(var a=o;a<=r;a++)for(var l=0;l<s;l++)e.indentLine(a,t.indentRight);return Qt.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),Qt.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,i,o){for(var r=e.getSelections(),s=[],a=t.toLower,l=0;l<r.length;l++){var c=r[l],h="";if(!0===a)h=c.toLowerCase();else if(!1===a)h=c.toUpperCase();else for(var u=0;u<c.length;u++){var d=c.charAt(u);h+=m(d)?d.toLowerCase():d.toUpperCase()}s.push(h)}return e.replaceSelections(s),t.shouldMoveCursor?o:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?Qt.moveToFirstNonWhiteSpaceCharacter(e,i):t.linewise?i:G(n[0].anchor,n[0].head)},yank:function(e,t,n,i){var o=e.state.vim,r=e.getSelection(),s=o.visualMode?G(o.sel.anchor,o.sel.head,n[0].head,n[0].anchor):i;return Kt.registerController.pushText(t.registerName,"yank",r,t.linewise,o.visualBlock),s}},Jt={jumpListWalk:function(e,t,n){if(!n.visualMode){var i=t.repeat,o=t.forward,r=Kt.jumpList.move(e,o?i:-i),s=r?r.find():undefined;s=s||e.getCursor(),e.setCursor(s),e.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(e,t,n){if(!n.visualMode){var i=t.repeat||1,o=e.defaultTextHeight(),r=e.getScrollInfo().top,s=o*i,a=t.forward?r+s:r-s,l=V(e.getCursor()),c=e.charCoords(l,"local");if(t.forward)a>c.top?(l.line+=(a-c.top)/o,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,a);else{var h=a+e.getScrollInfo().clientHeight;h<c.bottom?(l.line-=(c.bottom-h)/o,l.line=Math.floor(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,a)}}},scrollToCursor:function(e,t){var n=e.getCursor().line,i=e.charCoords(Tt(n,0),"local"),o=e.getScrollInfo().clientHeight,r=i.top,s=i.bottom-r;switch(t.position){case"center":r=r-o/2+s;break;case"bottom":r=r-o+s}e.scrollTo(null,r)},replayMacro:function(e,t,n){var i=t.selectedCharacter,o=t.repeat,r=Kt.macroModeState;for("@"==i?i=r.latestRegister:r.latestRegister=i;o--;)et(e,n,r,i)},enterMacroRecordMode:function(e,t){var n=Kt.macroModeState,i=t.selectedCharacter;Kt.registerController.isValidRegister(i)&&n.enterMacroRecordMode(e,i)},toggleOverwrite:function(e){e.state.overwrite?(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),Lt.signal(e,"vim-mode-change",{mode:"insert"})):(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),Lt.signal(e,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(e,t,n){if(!e.getOption("readOnly")){n.insertMode=!0,n.insertModeRepeat=t&&t.repeat||1;var i=t?t.insertAt:null,o=n.sel,r=t.head||e.getCursor("head"),s=e.listSelections().length;if("eol"==i)r=Tt(r.line,X(e,r.line));else if("bol"==i)r=Tt(r.line,0);else if("charAfter"==i)r=N(r,0,1);else if("firstNonBlank"==i)r=Qt.moveToFirstNonWhiteSpaceCharacter(e,r);else if("startOfSelectedArea"==i){if(!n.visualMode)return;n.visualBlock?(r=Tt(Math.min(o.head.line,o.anchor.line),Math.min(o.head.ch,o.anchor.ch)),s=Math.abs(o.head.line-o.anchor.line)+1):r=o.head.line<o.anchor.line?o.head:Tt(o.anchor.line,0)}else if("endOfSelectedArea"==i){if(!n.visualMode)return;n.visualBlock?(r=Tt(Math.min(o.head.line,o.anchor.line),Math.max(o.head.ch+1,o.anchor.ch)),s=Math.abs(o.head.line-o.anchor.line)+1):r=o.head.line>=o.anchor.line?N(o.head,0,1):Tt(o.anchor.line,0)}else if("inplace"==i){if(n.visualMode)return}else"lastEdit"==i&&(r=Xe(e)||r);e.setOption("disableInput",!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),Lt.signal(e,"vim-mode-change",{mode:"replace"})):(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),Lt.signal(e,"vim-mode-change",{mode:"insert"})),Kt.macroModeState.isPlaying||(e.on("change",ot),Lt.on(e.getInputField(),"keydown",ct)),n.visualMode&&le(e),ee(e,r,s)}},toggleVisualMode:function(e,t,n){var i,o=t.repeat,r=e.getCursor();n.visualMode?n.visualLine^t.linewise||n.visualBlock^t.blockwise?(n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,Lt.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""}),re(e)):le(e):(n.visualMode=!0,n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,i=B(e,Tt(r.line,r.ch+o-1),!0),n.sel={anchor:r,head:i},Lt.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""}),re(e),ye(e,n,"<",G(r,i)),ye(e,n,">",j(r,i)))},reselectLastSelection:function(e,t,n){var i=n.lastSelection;if(n.visualMode&&ie(e,n),i){var o=i.anchorMark.find(),r=i.headMark.find();if(!o||!r)return;n.sel={anchor:o,head:r},n.visualMode=!0,n.visualLine=i.visualLine,n.visualBlock=i.visualBlock,re(e),ye(e,n,"<",G(o,r)),ye(e,n,">",j(o,r)),Lt.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""})}},joinLines:function(e,t,n){var i,o;if(n.visualMode){if(i=e.getCursor("anchor"),U(o=e.getCursor("head"),i)){var r=o;o=i,i=r}o.ch=X(e,o.line)-1}else{var s=Math.max(t.repeat,2);i=e.getCursor(),o=B(e,Tt(i.line+s-1,Infinity))}for(var a=0,l=i.line;l<o.line;l++){a=X(e,i.line);r=Tt(i.line+1,X(e,i.line+1));var c=e.getRange(i,r);c=t.keepSpaces?c.replace(/\n\r?/g,""):c.replace(/\n\s*/g," "),e.replaceRange(c,i,r)}var h=Tt(i.line,a);n.visualMode&&le(e,!1),e.setCursor(h)},newLineAndEnterInsertMode:function(e,t,n){n.insertMode=!0;var i=V(e.getCursor());i.line!==e.firstLine()||t.after?(i.line=t.after?i.line:i.line-1,i.ch=X(e,i.line),e.setCursor(i),(Lt.commands.newlineAndIndentContinueComment||Lt.commands.newlineAndIndent)(e)):(e.replaceRange("\n",Tt(e.firstLine(),0)),e.setCursor(e.firstLine(),0));this.enterInsertMode(e,{repeat:t.repeat},n)},paste:function(i,e,t){var n=V(i.getCursor()),o=Kt.registerController.getRegister(e.registerName);if(d=o.toString()){if(e.matchIndent){var r=i.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*r+1*n},a=i.getLine(i.getCursor().line),l=s(a.match(/^\s*/)[0]),c=d.replace(/\n$/,""),h=d!==c,u=s(d.match(/^\s*/)[0]),d=c.replace(/^\s*/gm,function(e){var t=l+(s(e)-u);if(t<0)return"";if(i.getOption("indentWithTabs")){var n=Math.floor(t/r);return Array(n+1).join("\t")}return Array(t+1).join(" ")});d+=h?"\n":""}if(1<e.repeat)d=Array(e.repeat+1).join(d);var g,f,p=o.linewise,m=o.blockwise;if(m){d=d.split("\n"),p&&d.pop();for(var v=0;v<d.length;v++)d[v]=""==d[v]?" ":d[v];n.ch+=e.after?1:0,n.ch=Math.min(X(i,n.line),n.ch)}else p?t.visualMode?d=t.visualLine?d.slice(0,-1):"\n"+d.slice(0,d.length-1)+"\n":e.after?(d="\n"+d.slice(0,d.length-1),n.ch=X(i,n.line)):n.ch=0:n.ch+=e.after?1:0;if(t.visualMode){var w;t.lastPastedText=d;var b=ne(i,t),y=b[0],k=b[1],x=i.getSelection(),C=i.listSelections(),S=new Array(C.length).join("1").split("1");t.lastSelection&&(w=t.lastSelection.headMark.find()),Kt.registerController.unnamedRegister.setText(x),m?(i.replaceSelections(S),k=Tt(y.line+d.length-1,y.ch),i.setCursor(y),Z(i,k),i.replaceSelections(d),g=y):t.visualBlock?(i.replaceSelections(S),i.setCursor(y),i.replaceRange(d,y,y),g=y):(i.replaceRange(d,y,k),g=i.posFromIndex(i.indexFromPos(y)+d.length-1)),w&&(t.lastSelection.headMark=i.setBookmark(w)),p&&(g.ch=0)}else if(m){i.setCursor(n);for(v=0;v<d.length;v++){var $=n.line+v;$>i.lastLine()&&i.replaceRange("\n",Tt($,0)),X(i,$)<n.ch&&J(i,$,n.ch)}i.setCursor(n),Z(i,Tt(n.line+d.length-1,n.ch)),i.replaceSelections(d),g=n}else i.replaceRange(d,n),p&&e.after?g=Tt(n.line+1,ue(i.getLine(n.line+1))):p&&!e.after?g=Tt(n.line,ue(i.getLine(n.line))):!p&&e.after?(f=i.indexFromPos(n),g=i.posFromIndex(f+d.length-1)):(f=i.indexFromPos(n),g=i.posFromIndex(f+d.length));t.visualMode&&le(i,!1),i.setCursor(g)}},undo:function(e,t){e.operation(function(){z(e,Lt.commands.undo,t.repeat)(),e.setCursor(e.getCursor("anchor"))})},redo:function(e,t){z(e,Lt.commands.redo,t.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){ye(e,n,t.selectedCharacter,e.getCursor())},replace:function(e,t,n){var i,o,r=t.selectedCharacter,s=e.getCursor(),a=e.listSelections();if(n.visualMode)s=e.getCursor("start"),o=e.getCursor("end");else{var l=e.getLine(s.line);(i=s.ch+t.repeat)>l.length&&(i=l.length),o=Tt(s.line,i)}if("\n"==r)n.visualMode||e.replaceRange("",s,o),(Lt.commands.newlineAndIndentContinueComment||Lt.commands.newlineAndIndent)(e);else{var c=e.getRange(s,o);if(c=c.replace(/[^\n]/g,r),n.visualBlock){var h=new Array(e.getOption("tabSize")+1).join(" ");c=(c=e.getSelection()).replace(/\t/g,h).replace(/[^\n]/g,r).split("\n"),e.replaceSelections(c)}else e.replaceRange(c,s,o);n.visualMode?(s=U(a[0].anchor,a[0].head)?a[0].anchor:a[0].head,e.setCursor(s),le(e,!1)):e.setCursor(N(o,0,-1))}},incrementNumberToken:function(e,t){for(var n,i,o,r,s=e.getCursor(),a=e.getLine(s.line),l=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=l.exec(a))&&(o=(i=n.index)+n[0].length,!(s.ch<o)););if((t.backtrack||!(o<=s.ch))&&n){var c=n[2]||n[4],h=n[3]||n[5],u=t.increase?1:-1,d={"0b":2,0:8,"":10,"0x":16}[c.toLowerCase()];r=(parseInt(n[1]+h,d)+u*t.repeat).toString(d);var g=c?new Array(h.length-r.length+1+n[1].length).join("0"):"";r="-"===r.charAt(0)?"-"+c+g+r.substr(1):c+g+r;var f=Tt(s.line,i),p=Tt(s.line,o);e.replaceRange(r,f,p),e.setCursor(Tt(s.line,i+r.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var i=t.repeat;i&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=i:i=n.lastEditInputState.repeatOverride||i,ht(e,n,i,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Ye},Zt={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},en={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,1<=e.depth)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};y("pcre",!0,"boolean"),Ae.prototype={getQuery:function(){return Kt.query},setQuery:function(e){Kt.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return Kt.isReversed},setReversed:function(e){Kt.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var tn={"\\n":"\n","\\r":"\r","\\t":"\t"},nn={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t"},on="(Javascript regexp)",rn=function(){this.buildCommandMap_()};rn.prototype={processCommand:function(e,t,n){var i=this;e.operation(function(){e.curOp.isVimOp=!0,i._processCommand(e,t,n)})},_processCommand:function(e,t,n){var i=e.state.vim,o=Kt.registerController.getRegister(":"),r=o.toString();i.visualMode&&le(e);var s=new Lt.StringStream(t);o.setText(t);var a,l,c=n||{};c.input=t;try{this.parseInput_(e,s,c)}catch(u){throw He(e,u),u}if(c.commandName){if(a=this.matchCommand_(c.commandName)){if(l=a.name,a.excludeFromCommandHistory&&o.setText(r),this.parseCommandArgs_(s,c,a),"exToKey"==a.type){for(var h=0;h<a.toKeys.length;h++)Lt.Vim.handleKey(e,a.toKeys[h],"mapping");return}if("exToEx"==a.type)return void this.processCommand(e,a.toInput)}}else c.line!==undefined&&(l="move");if(l)try{sn[l](e,c),a&&a.possiblyAsync||!c.callback||c.callback()}catch(u){throw He(e,u),u}else He(e,'Not an editor command ":'+t+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),n.line!==undefined&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var i=t.match(/^(\w+)/);return n.commandName=i?i[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var i=t.next(),o=qe(e,e.state.vim,i);if(!o)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,o.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return t.backUp(1),undefined}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var i=parseInt(n[2],10);"-"==n[1]?t-=i:t+=i}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var i=n.argDelimiter||/\s+/,o=Q(t.argString).split(i);o.length&&o[0]&&(t.args=o)}},matchCommand_:function(e){for(var t=e.length;0<t;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var i=this.commandMap_[n];if(0===i.name.indexOf(e))return i}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<_t.length;e++){var t=_t[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,t,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:t,user:!0}}else if(":"!=t&&":"==t.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:t.substring(1)}};n&&(o.context=n),Mt.unshift(o)}else{o={keys:e,type:"keyToKey",toKeys:t};n&&(o.context=n),Mt.unshift(o)}},unmap:function(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var n=e.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user)return void delete this.commandMap_[n]}else for(var i=e,o=0;o<Mt.length;o++)if(i==Mt[o].keys&&Mt[o].context===t)return void Mt.splice(o,1)}};var sn={colorscheme:function(e,t){!t.args||t.args.length<1?He(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var i=t.args;!i||i.length<2?e&&He(e,"Invalid mapping: "+t.input):an.map(i[0],i[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var i=t.args;!i||i.length<1?e&&He(e,"No such mapping: "+t.input):an.unmap(i[0],n)},move:function(e,t){Xt.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,i=t.setCfg||{};if(!n||n.length<1)e&&He(e,"Invalid mapping: "+t.input);else{var o=n[0].split("="),r=o[0],s=o[1],a=!1;if("?"==r.charAt(r.length-1)){if(s)throw Error("Trailing characters: "+t.argString);r=r.substring(0,r.length-1),a=!0}s===undefined&&"no"==r.substring(0,2)&&(r=r.substring(2),s=!1);var l=Vt[r]&&"boolean"==Vt[r].type;if(l&&s==undefined&&(s=!0),!l&&s===undefined||a){var c=x(r,e,i);c instanceof Error?He(e,c.message):He(e,!0===c||!1===c?" "+(c?"":"no")+r:" "+r+"="+c)}else{var h=k(r,s,e,i);h instanceof Error&&He(e,h.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,i=Kt.registerController.registers,o="----------Registers----------<br><br>";if(n){n=n.join("");for(var r=0;r<n.length;r++){if(s=n.charAt(r),Kt.registerController.isValidRegister(s))o+='"'+s+" "+(i[s]||new L).toString()+"<br>"}}else for(var s in i){var a=i[s].toString();a.length&&(o+='"'+s+" "+a+"<br>")}He(e,o)},sort:function(e,r){function t(){if(r.argString){var e=new Lt.StringStream(r.argString);if(e.eat("!")&&(s=!0),e.eol())return;if(!e.eatSpace())return"Invalid arguments";var t=e.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!t&&!e.eol())return"Invalid arguments";if(t[1]){a=-1!=t[1].indexOf("i"),l=-1!=t[1].indexOf("u");var n=-1!=t[1].indexOf("d")||-1!=t[1].indexOf("n")&&1,i=-1!=t[1].indexOf("x")&&1,o=-1!=t[1].indexOf("o")&&1;if(1<n+i+o)return"Invalid arguments";c=(n?"decimal":i&&"hex")||o&&"octal"}t[2]&&(h=new RegExp(t[2].substr(1,t[2].length-2),a?"i":""))}}function n(e,t){var n;s&&(n=e,e=t,t=n);a&&(e=e.toLowerCase(),t=t.toLowerCase());var i=c&&m.exec(e),o=c&&m.exec(t);return i?(i=parseInt((i[1]+i[2]).toLowerCase(),v))-(o=parseInt((o[1]+o[2]).toLowerCase(),v)):e<t?-1:1}function i(e,t){var n;s&&(n=e,e=t,t=n);return a&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}var s,a,l,c,h,o=t();if(o)He(e,o+": "+r.argString);else{var u=r.line||e.firstLine(),d=r.lineEnd||r.line||e.lastLine();if(u!=d){var g=Tt(u,0),f=Tt(d,X(e,d)),p=e.getRange(g,f).split("\n"),m=h||("decimal"==c?/(-?)([\d]+)/:"hex"==c?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==c?/([0-7]+)/:null),v="decimal"==c?10:"hex"==c?16:"octal"==c?8:null,w=[],b=[];if(c||h)for(var y=0;y<p.length;y++){var k=h?p[y].match(h):null;k&&""!=k[0]?w.push(k):!h&&m.exec(p[y])?w.push(p[y]):b.push(p[y])}else b=p;if(w.sort(h?i:n),h)for(y=0;y<w.length;y++)w[y]=w[y].input;else c||b.sort(n);if(p=s?w.concat(b):b.concat(w),l){var x,C=p;p=[];for(y=0;y<C.length;y++)C[y]!=x&&p.push(C[y]),x=C[y]}e.replaceRange(p.join("\n"),g,f)}}},global:function(t,e){var n=e.argString;if(n){var i,o=e.line!==undefined?e.line:t.firstLine(),r=e.lineEnd||e.line||t.lastLine(),s=Re(n),a=n;if(s.length&&(a=s[0],i=s.slice(1,s.length).join("/")),a)try{We(t,a,!0,!0)}catch(f){return void He(t,"Invalid regex: "+a)}for(var l=Le(t).getQuery(),c=[],h="",u=o;u<=r;u++){l.test(t.getLine(u))&&(c.push(u+1),h+=t.getLine(u)+"<br>")}if(i){var d=0,g=function(){if(d<c.length){var e=c[d]+i;an.processCommand(t,e,{callback:g})}d++};g()}else He(t,h)}else He(t,"Regular Expression missing from global")},substitute:function(e,t){if(!e.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var n,i,o,r,s=t.argString,a=s?Te(s,s[0]):[],l="",c=!1,h=!1;if(a.length)n=a[0],x("pcre")&&""!==n&&(n=new RegExp(n).source),l=a[1],n&&"$"===n[n.length-1]&&(n=n.slice(0,n.length-1)+"\\n",l=l?l+"\n":"\n"),l!==undefined&&(l=x("pcre")?Fe(l.replace(/([^\\])&/g,"$1$$&")):Ie(l),Kt.lastSubstituteReplacePart=l),i=a[2]?a[2].split(" "):[];else if(s&&s.length)return void He(e,"Substitutions should be of the form :s/pattern/replace/");if(i&&(o=i[0],r=parseInt(i[1]),o&&(-1!=o.indexOf("c")&&(c=!0,o.replace("c","")),-1!=o.indexOf("g")&&(h=!0,o.replace("g","")),n=x("pcre")?n+"/"+o:n.replace(/\//g,"\\/")+"/"+o)),n)try{We(e,n,!0,!0)}catch(p){return void He(e,"Invalid regex: "+n)}if((l=l||Kt.lastSubstituteReplacePart)!==undefined){var u=Le(e).getQuery(),d=t.line!==undefined?t.line:e.getCursor().line,g=t.lineEnd||d;d==e.firstLine()&&g==e.lastLine()&&(g=Infinity),r&&(g=(d=g)+r-1);var f=B(e,Tt(d,0));Qe(e,c,h,d,g,e.getSearchCursor(u,f),u,l,t.callback)}else He(e,"No previous substitute regular expression")},redo:Lt.commands.redo,undo:Lt.commands.undo,write:function(e){Lt.commands.save?Lt.commands.save(e):e.save&&e.save()},nohlsearch:function(e){Ue(e)},yank:function(e){var t=V(e.getCursor()).line,n=e.getLine(t);Kt.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(e,t){if(t.argString&&Q(t.argString))for(var n=e.state.vim,i=new Lt.StringStream(Q(t.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void He(e,"Invalid argument: "+t.argString.substring(o));var r=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void He(e,"Invalid argument: "+t.argString.substring(o));var s=r,a=i.next();if(!(d(s)&&d(a)||m(s)&&m(a)))return void He(e,"Invalid argument: "+s+"-");var l=s.charCodeAt(0),c=a.charCodeAt(0);if(c<=l)return void He(e,"Invalid argument: "+t.argString.substring(o));for(var h=0;h<=c-l;h++){var u=String.fromCharCode(l+h);delete n.marks[u]}}else delete n.marks[r]}else He(e,"Argument required")}},an=new rn;Lt.keyMap.vim={attach:r,detach:o,call:s},y("insertModeEscKeysTimeout",200,"number"),Lt.keyMap["vim-insert"]={fallthrough:["default"],attach:r,detach:o,call:s},Lt.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:r,detach:o,call:s},$(),Lt.Vim=Et(),Et=Lt.Vim;var ln={"return":"CR",backspace:"BS","delete":"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},cn=Et.handleKey.bind(Et);Et.handleKey=function(e,t,n){return e.operation(function(){return cn(e,t,n)},!0)},t.CodeMirror=Lt;var hn=Et.maybeInitVimState_;t.handler={$id:"ace/keyboard/vim",drawCursor:function(e,t,n,i,o){var r=this.state.vim||{},s=n.characterWidth,a=n.lineHeight,l=t.top,c=t.left;r.insertMode||!(i.cursor?mt.comparePoints(i.cursor,i.start)<=0:o.selection.isBackwards()||o.selection.isEmpty())&&s<c&&(c-=s);!r.insertMode&&r.status&&(l+=a/=2),wt.translate(e,c,l),wt.setStyle(e.style,"width",s+"px"),wt.setStyle(e.style,"height",a+"px")},handleKeyboard:function(e,t,n,i,o){var r=e.editor,s=r.state.cm,a=hn(s);if(-1!=i){if(a.insertMode||(-1==t?(255<n.charCodeAt(0)&&e.inputKey&&(n=e.inputKey)&&4==e.inputHash&&(n=n.toUpperCase()),e.inputChar=n):4==t||0==t?e.inputKey==n&&e.inputHash==t&&e.inputChar?(n=e.inputChar,t=-1):(e.inputChar=null,e.inputKey=n,e.inputHash=t):e.inputChar=e.inputKey=null),"c"==n&&1==t&&!Ct.isMac&&r.getCopyText())return r.once("copy",function(){r.selection.clearSelection()}),{command:"null",passEvent:!0};if("esc"==n&&!a.insertMode&&!a.visualMode&&!s.ace.inMultiSelectMode){var l=Le(s).getOverlay();l&&s.removeOverlay(l)}if(-1==t||1&t||0===t&&1<n.length){var c=a.insertMode,h=dt(t,n,o||{});null==a.status&&(a.status="");var u=ft(s,h,"user");if(a=hn(s),u&&null!=a.status?a.status+=h:null==a.status&&(a.status=""),s._signal("changeStatus"),!u&&(-1!=t||c))return;return{command:"null",passEvent:!u}}}},attach:function(t){function e(){var e=hn(n).insertMode;n.ace.renderer.setStyle("normal-mode",!e),t.textInput.setCommandMode(!e),t.renderer.$keepTextAreaAtCursor=e,t.renderer.$blockCursor=!e}t.state||(t.state={});var n=new Lt(t);t.state.cm=n,t.$vimModeHandler=this,Lt.keyMap.vim.attach(n),hn(n).status=null,n.on("vim-command-done",function(){n.virtualSelectionMode()||(hn(n).status=null,n.ace._signal("changeStatus"),n.ace.session.markUndoGroup())}),n.on("changeStatus",function(){n.ace.renderer.updateCursor(),n.ace._signal("changeStatus")}),n.on("vim-mode-change",function(){n.virtualSelectionMode()||(e(),n._signal("changeStatus"))}),e(),t.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(n)},detach:function(e){var t=e.state.cm;Lt.keyMap.vim.detach(t),t.destroy(),e.state.cm=null,e.$vimModeHandler=null,e.renderer.$cursorLayer.drawCursor=null,e.renderer.setStyle("normal-mode",!1),e.textInput.setCommandMode(!1),e.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(e){var t=e.state.cm,n=hn(t);if(n.insertMode)return"INSERT";var i="";return n.visualMode&&(i+="VISUAL",n.visualLine&&(i+=" LINE"),n.visualBlock&&(i+=" BLOCK")),n.status&&(i+=(i?" ":"")+n.status),i}},Et.defineOption({name:"wrap",set:function(e,t){t&&t.ace.setOption("wrap",e)},type:"boolean"},!1),Et.defineEx("write","w",function(){console.log(":write is not implemented")}),Mt.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Jt.aceCommand=function(e,t){e.vimCmd=t,e.ace.inVirtualSelectionMode?e.ace.on("beforeEndOperation",pt):pt(null,e.ace)},Jt.fold=function(e,t){e.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(t.all?2:0)+(t.open?1:0)])},t.handler.defaultKeymap=Mt,t.handler.actions=Jt,t.Vim=Et}),ace.require(["ace/keyboard/vim"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/occur",[],function(e,t){"use strict";function n(){}var i=e("./lib/oop"),r=(e("./range").Range,e("./search").Search),s=e("./edit_session" ).EditSession,o=e("./search_highlight").SearchHighlight;i.inherits(n,r),function(){this.enter=function(e,t){if(!t.needle)return!1;var n=e.getCursorPosition();this.displayOccurContent(e,t);var i=this.originalToOccurPosition(e.session,n);return e.moveCursorToPosition(i),!0},this.exit=function(e,t){var n=t.translatePosition&&e.getCursorPosition(),i=n&&this.occurToOriginalPosition(e.session,n);return this.displayOriginalContent(e),i&&e.moveCursorToPosition(i),!0},this.highlight=function(e,t){(e.$occurHighlight=e.$occurHighlight||e.addDynamicMarker(new o(null,"ace_occur-highlight","text"))).setRegexp(t),e._emit("changeBackMarker")},this.displayOccurContent=function(e,t){this.$originalSession=e.session;var n=this.matchingLines(e.session,t),i=n.map(function(e){return e.content}),o=new s(i.join("\n"));o.$occur=this,o.$occurMatchingLines=n,e.setSession(o),this.$useEmacsStyleLineStart=this.$originalSession.$useEmacsStyleLineStart,o.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart,this.highlight(o,t.re),o._emit("changeBackMarker")},this.displayOriginalContent=function(e){e.setSession(this.$originalSession),this.$originalSession.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart},this.originalToOccurPosition=function(e,t){var n=e.$occurMatchingLines,i={row:0,column:0};if(!n)return i;for(var o=0;o<n.length;o++)if(n[o].row===t.row)return{row:o,column:t.column};return i},this.occurToOriginalPosition=function(e,t){var n=e.$occurMatchingLines;return n&&n[t.row]?{row:n[t.row].row,column:t.column}:t},this.matchingLines=function(o,e){if(e=i.mixin({},e),!o||!e.needle)return[];var t=new r;return t.set(e),t.findAll(o).reduce(function(e,t){var n=t.start.row,i=e[e.length-1];return i&&i.row===n?e:e.concat({row:n,content:o.getLine(n)})},[])}}.call(n.prototype),e("./lib/dom").importCssString(".ace_occur-highlight {\n border-radius: 4px;\n background-color: rgba(87, 255, 8, 0.25);\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n box-shadow: 0 0 4px rgb(91, 255, 50);\n}\n.ace_dark .ace_occur-highlight {\n background-color: rgb(80, 140, 85);\n box-shadow: 0 0 4px rgb(60, 120, 70);\n}\n","incremental-occur-highlighting"),t.Occur=n}),ace.define("ace/commands/occur_commands",[],function(e,t){function i(){}e("../config");var o=e("../occur").Occur,n={name:"occur",exec:function(e,t){var n=!!e.session.$occur;(new o).enter(e,t)&&!n&&i.installIn(e)},readOnly:!0},s=[{name:"occurexit",bindKey:"esc|Ctrl-G",exec:function(e){var t=e.session.$occur;t&&(t.exit(e,{}),e.session.$occur||i.uninstallFrom(e))},readOnly:!0},{name:"occuraccept",bindKey:"enter",exec:function(e){var t=e.session.$occur;t&&(t.exit(e,{translatePosition:!0}),e.session.$occur||i.uninstallFrom(e))},readOnly:!0}],a=e("../keyboard/hash_handler").HashHandler;e("../lib/oop").inherits(i,a),function(){this.isOccurHandler=!0,this.attach=function(e){a.call(this,s,e.commands.platform),this.$editor=e};var r=this.handleKeyboard;this.handleKeyboard=function(e,t,n,i){var o=r.call(this,e,t,n,i);return o&&o.command?o:undefined}}.call(i.prototype),i.installIn=function(e){var t=new this;e.keyBinding.addKeyboardHandler(t),e.commands.addCommands(s)},i.uninstallFrom=function(e){e.commands.removeCommands(s);var t=e.getKeyboardHandler();t.isOccurHandler&&e.keyBinding.removeKeyboardHandler(t)},t.occurStartCommand=n}),ace.define("ace/commands/incremental_search_commands",[],function(e,t){function n(e){this.$iSearch=e}var o=e("../config"),i=e("../lib/oop"),r=e("../keyboard/hash_handler").HashHandler,s=e("./occur_commands").occurStartCommand;t.iSearchStartCommands=[{name:"iSearch",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(n,i){o.loadModule(["core","ace/incremental_search"],function(e){var t=e.iSearch=e.iSearch||new e.IncrementalSearch;t.activate(n,i.backwards),i.jumpToFirstMatch&&t.next(i)})},readOnly:!0},{name:"iSearchBackwards",exec:function(e){e.execCommand("iSearch",{backwards:!0})},readOnly:!0},{name:"iSearchAndGo",bindKey:{win:"Ctrl-K",mac:"Command-G"},exec:function(e){e.execCommand("iSearch",{jumpToFirstMatch:!0,useCurrentOrPrevSearch:!0})},readOnly:!0},{name:"iSearchBackwardsAndGo",bindKey:{win:"Ctrl-Shift-K",mac:"Command-Shift-G"},exec:function(e){e.execCommand("iSearch",{jumpToFirstMatch:!0,backwards:!0,useCurrentOrPrevSearch:!0})},readOnly:!0}],t.iSearchCommands=[{name:"restartSearch",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(e){e.cancelSearch(!0)}},{name:"searchForward",bindKey:{win:"Ctrl-S|Ctrl-K",mac:"Ctrl-S|Command-G"},exec:function(e,t){t.useCurrentOrPrevSearch=!0,e.next(t)}},{name:"searchBackward",bindKey:{win:"Ctrl-R|Ctrl-Shift-K",mac:"Ctrl-R|Command-Shift-G"},exec:function(e,t){t.useCurrentOrPrevSearch=!0,t.backwards=!0,e.next(t)}},{name:"extendSearchTerm",exec:function(e,t){e.addString(t)}},{name:"extendSearchTermSpace",bindKey:"space",exec:function(e){e.addString(" ")}},{name:"shrinkSearchTerm",bindKey:"backspace",exec:function(e){e.removeChar()}},{name:"confirmSearch",bindKey:"return",exec:function(e){e.deactivate()}},{name:"cancelSearch",bindKey:"esc|Ctrl-G",exec:function(e){e.deactivate(!0)}},{name:"occurisearch",bindKey:"Ctrl-O",exec:function(e){var t=i.mixin({},e.$options);e.deactivate(),s.exec(e.$editor,t)}},{name:"yankNextWord",bindKey:"Ctrl-w",exec:function(e){var t=e.$editor,n=t.selection.getRangeOfMovements(function(e){e.moveCursorWordRight()}),i=t.session.getTextRange(n);e.addString(i)}},{name:"yankNextChar",bindKey:"Ctrl-Alt-y",exec:function(e){var t=e.$editor,n=t.selection.getRangeOfMovements(function(e){e.moveCursorRight()}),i=t.session.getTextRange(n);e.addString(i)}},{name:"recenterTopBottom",bindKey:"Ctrl-l",exec:function(e){e.$editor.execCommand("recenterTopBottom")}},{name:"selectAllMatches",bindKey:"Ctrl-space",exec:function(e){var t=e.$editor,n=t.session.$isearchHighlight,i=n&&n.cache?n.cache.reduce(function(e,t){return e.concat(t||[])},[]):[];e.deactivate(!1),i.forEach(t.selection.addRange.bind(t.selection))}},{name:"searchAsRegExp",bindKey:"Alt-r",exec:function(e){e.convertNeedleToRegExp()}}].map(function(e){return e.readOnly=!0,e.isIncrementalSearchCommand=!0,e.scrollIntoView="animate-cursor",e}),i.inherits(n,r),function(){this.attach=function(i){var o=this.$iSearch;r.call(this,t.iSearchCommands,i.commands.platform),this.$commandExecHandler=i.commands.on("exec",function(e){if(!e.command.isIncrementalSearchCommand)return o.deactivate();e.stopPropagation(),e.preventDefault();var t=i.session.getScrollTop(),n=e.command.exec(o,e.args||{});return i.renderer.scrollCursorIntoView(null,.5),i.renderer.animateScrolling(t),n})},this.detach=function(e){this.$commandExecHandler&&(e.commands.off("exec",this.$commandExecHandler),delete this.$commandExecHandler)};var s=this.handleKeyboard;this.handleKeyboard=function(e,t,n,i){if((1===t||8===t)&&"v"===n||1===t&&"y"===n)return null;var o=s.call(this,e,t,n,i);if(o&&o.command)return o;if(-1==t){var r=this.commands.extendSearchTerm;if(r)return{command:r,args:n}}return!1}}.call(n.prototype),t.IncrementalSearchKeyboardHandler=n}),ace.define("ace/incremental_search",[],function(e,t){"use strict";function n(){this.$options={wrap:!1,skipCurrent:!1},this.$keyboardHandler=new d(this)}function i(e){return e instanceof RegExp}function o(e){var t=String(e),n=t.indexOf("/"),i=t.lastIndexOf("/");return{expression:t.slice(n+1,i),flags:t.slice(i+1)}}function r(e,t){try{return new RegExp(e,t)}catch(n){return e}}function s(e){return r(e.expression,e.flags)}var a=e("./lib/oop"),l=e("./range").Range,c=e("./search").Search,h=e("./search_highlight").SearchHighlight,u=e("./commands/incremental_search_commands"),d=u.IncrementalSearchKeyboardHandler;a.inherits(n,c),function(){this.activate=function(e,t){this.$editor=e,this.$startPos=this.$currentPos=e.getCursorPosition(),this.$options.needle="",this.$options.backwards=t,e.keyBinding.addKeyboardHandler(this.$keyboardHandler),this.$originalEditorOnPaste=e.onPaste,e.onPaste=this.onPaste.bind(this),this.$mousedownHandler=e.on("mousedown",this.onMouseDown.bind(this)),this.selectionFix(e),this.statusMessage(!0)},this.deactivate=function(e){this.cancelSearch(e);var t=this.$editor;t.keyBinding.removeKeyboardHandler(this.$keyboardHandler),this.$mousedownHandler&&(t.off("mousedown",this.$mousedownHandler),delete this.$mousedownHandler),t.onPaste=this.$originalEditorOnPaste,this.message("")},this.selectionFix=function(e){e.selection.isEmpty()&&!e.session.$emacsMark&&e.clearSelection()},this.highlight=function(e){var t=this.$editor.session;(t.$isearchHighlight=t.$isearchHighlight||t.addDynamicMarker(new h(null,"ace_isearch-result","text"))).setRegexp(e),t._emit("changeBackMarker")},this.cancelSearch=function(e){var t=this.$editor;return this.$prevNeedle=this.$options.needle,this.$options.needle="",e?(t.moveCursorToPosition(this.$startPos),this.$currentPos=this.$startPos):t.pushEmacsMark&&t.pushEmacsMark(this.$startPos,!1),this.highlight(null),l.fromPoints(this.$currentPos,this.$currentPos)},this.highlightAndFindWithNeedle=function(e,t){if(!this.$editor)return null;var n=this.$options;if(t&&(n.needle=t.call(this,n.needle||"")||""),0===n.needle.length)return this.statusMessage(!0),this.cancelSearch(!0);n.start=this.$currentPos;var i=this.$editor.session,o=this.find(i),r=this.$editor.emacsMark?!!this.$editor.emacsMark():!this.$editor.selection.isEmpty();return o&&(n.backwards&&(o=l.fromPoints(o.end,o.start)),this.$editor.selection.setRange(l.fromPoints(r?this.$startPos:o.end,o.end)),e&&(this.$currentPos=o.end),this.highlight(n.re)),this.statusMessage(o),o},this.addString=function(n){return this.highlightAndFindWithNeedle(!1,function(e){if(!i(e))return e+n;var t=o(e);return t.expression+=n,s(t)})},this.removeChar=function(){return this.highlightAndFindWithNeedle(!1,function(e){if(!i(e))return e.substring(0,e.length-1);var t=o(e);return t.expression=t.expression.substring(0,t.expression.length-1),s(t)})},this.next=function(t){return t=t||{},this.$options.backwards=!!t.backwards,this.$currentPos=this.$editor.getCursorPosition(),this.highlightAndFindWithNeedle(!0,function(e){return t.useCurrentOrPrevSearch&&0===e.length?this.$prevNeedle||"":e})},this.onMouseDown=function(){return this.deactivate(),!0},this.onPaste=function(e){this.addString(e)},this.convertNeedleToRegExp=function(){return this.highlightAndFindWithNeedle(!1,function(e){return i(e)?e:r(e,"ig")})},this.convertNeedleToString=function(){return this.highlightAndFindWithNeedle(!1,function(e){return i(e)?o(e).expression:e})},this.statusMessage=function(e){var t=this.$options,n="";n+=t.backwards?"reverse-":"",n+="isearch: "+t.needle,n+=e?"":" (not found)",this.message(n)},this.message=function(e){this.$editor.showCommandLine&&(this.$editor.showCommandLine(e),this.$editor.focus())}}.call(n.prototype),t.IncrementalSearch=n;var g=e("./lib/dom");g.importCssString&&g.importCssString(".ace_marker-layer .ace_isearch-result { position: absolute; z-index: 6; box-sizing: border-box;}div.ace_isearch-result { border-radius: 4px; background-color: rgba(255, 200, 0, 0.5); box-shadow: 0 0 4px rgb(255, 200, 0);}.ace_dark div.ace_isearch-result { background-color: rgb(100, 110, 160); box-shadow: 0 0 4px rgb(80, 90, 140);}","incremental-search-highlighting");var f=e("./commands/command_manager");(function(){this.setupIncrementalSearch=function(e,t){if(this.usesIncrementalSearch!=t){this.usesIncrementalSearch=t;var n=u.iSearchStartCommands;this[t?"addCommands":"removeCommands"](n)}}}).call(f.CommandManager.prototype);var p=e("./editor").Editor;e("./config").defineOptions(p.prototype,"editor",{useIncrementalSearch:{set:function(t){this.keyBinding.$handlers.forEach(function(e){e.setupIncrementalSearch&&e.setupIncrementalSearch(this,t)}),this._emit("incrementalSearchSettingChanged",{isEnabled:t})}}})}),ace.define("ace/keyboard/emacs",[],function(e,r){"use strict";var t=e("../lib/dom");e("../incremental_search");var n=e("../commands/incremental_search_commands"),i=e("./hash_handler").HashHandler;r.handler=new i,r.handler.isEmacs=!0;var o,s,a=!(r.handler.$id="ace/keyboard/emacs");r.handler.attach=function(e){a||(a=!0,t.importCssString(" .emacs-mode .ace_cursor{ border: 1px rgba(50,250,50,0.8) solid!important; box-sizing: border-box!important; background-color: rgba(0,250,0,0.9); opacity: 0.5; } .emacs-mode .ace_hidden-cursors .ace_cursor{ opacity: 1; background-color: transparent; } .emacs-mode .ace_overwrite-cursors .ace_cursor { opacity: 1; background-color: transparent; border-width: 0 0 2px 2px !important; } .emacs-mode .ace_text-layer { z-index: 4 } .emacs-mode .ace_cursor-layer { z-index: 2 }","emacsMode")),o=e.session.$selectLongWords,e.session.$selectLongWords=!0,s=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.$emacsMark=null,e.session.$emacsMarkRing=e.session.$emacsMarkRing||[],e.emacsMark=function(){return this.session.$emacsMark},e.setEmacsMark=function(e){this.session.$emacsMark=e},e.pushEmacsMark=function(e,t){var n=this.session.$emacsMark;n&&this.session.$emacsMarkRing.push(n),!e||t?this.setEmacsMark(e):this.session.$emacsMarkRing.push(e)},e.popEmacsMark=function(){var e=this.emacsMark();return e?(this.setEmacsMark(null),e):this.session.$emacsMarkRing.pop()},e.getLastEmacsMark=function(){return this.session.$emacsMark||this.session.$emacsMarkRing.slice(-1)[0]},e.emacsMarkForSelection=function(e){var t=this.selection,n=this.multiSelect?this.multiSelect.getAllRanges().length:1,i=t.index||0,o=this.session.$emacsMarkRing,r=o.length-(n-i),s=o[r]||t.anchor;return e&&o.splice(r,1,"row"in e&&"column"in e?e:undefined),s},e.on("click",c),e.on("changeSession",l),e.renderer.$blockCursor=!0,e.setStyle("emacs-mode"),e.commands.addCommands(d),r.handler.platform=e.commands.platform,e.$emacsModeHandler=this,e.on("copy",this.onCopy),e.on("paste",this.onPaste)},r.handler.detach=function(e){e.renderer.$blockCursor=!1,e.session.$selectLongWords=o,e.session.$useEmacsStyleLineStart=s,e.off("click",c),e.off("changeSession",l),e.unsetStyle("emacs-mode"),e.commands.removeCommands(d),e.off("copy",this.onCopy),e.off("paste",this.onPaste),e.$emacsModeHandler=null};var l=function(e){e.oldSession&&(e.oldSession.$selectLongWords=o,e.oldSession.$useEmacsStyleLineStart=s),o=e.session.$selectLongWords,e.session.$selectLongWords=!0,s=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.hasOwnProperty("$emacsMark")||(e.session.$emacsMark=null),e.session.hasOwnProperty("$emacsMarkRing")||(e.session.$emacsMarkRing=[])},c=function(e){e.editor.session.$emacsMark=null},h=e("../lib/keys").KEY_MODS,u={C:"ctrl",S:"shift",M:"alt",CMD:"command"};["C-S-M-CMD","S-M-CMD","C-M-CMD","C-S-CMD","C-S-M","M-CMD","S-CMD","S-M","C-CMD","C-M","C-S","CMD","M","S","C"].forEach(function(e){var t=0;e.split("-").forEach(function(e){t|=h[u[e]]}),u[t]=e.toLowerCase()+"-"}),r.handler.onCopy=function(e,t){t.$handlesEmacsOnCopy||(t.$handlesEmacsOnCopy=!0,r.handler.commands.killRingSave.exec(t),t.$handlesEmacsOnCopy=!1)},r.handler.onPaste=function(e,t){t.pushEmacsMark(t.getCursorPosition())},r.handler.bindKey=function(e,t){if("object"==typeof e&&(e=e[this.platform]),e){var n=this.commandKeyBinding;e.split("|").forEach(function(e){e=e.toLowerCase(),n[e]=t,e.split(" ").slice(0,-1).reduce(function(e,t,n){var i=e[n-1]?e[n-1]+" ":"";return e.concat([i+t])},[]).forEach(function(e){n[e]||(n[e]="null")})},this)}},r.handler.getStatusText=function(e,t){var n="";return t.count&&(n+=t.count),t.keyChain&&(n+=" "+t.keyChain),n},r.handler.handleKeyboard=function(e,t,n,i){if(-1===i)return undefined;var o=e.editor;if(o._signal("changeStatus"),-1==t&&(o.pushEmacsMark(),e.count)){var r=new Array(e.count+1).join(n);return e.count=null,{command:"insertstring",args:r}}var s=u[t];if(("c-"==s||e.count)&&("number"==typeof(c=parseInt(n[n.length-1]))&&!isNaN(c)))return e.count=Math.max(e.count,0)||0,e.count=10*e.count+c,{command:"null"};s&&(n=s+n),e.keyChain&&(n=e.keyChain+=" "+n);var a,l=this.commandKeyBinding[n];if(e.keyChain="null"==l?n:"",!l)return undefined;if("null"===l)return{command:"null"};if("universalArgument"===l)return e.count=-4,{command:"null"};if("string"!=typeof l&&(a=l.args,l.command&&(l=l.command),"goorselect"===l&&(l=o.emacsMark()?a[1]:a[0],a=null)),"string"==typeof l&&("insertstring"!==l&&"splitline"!==l&&"togglecomment"!==l||o.pushEmacsMark(),!(l=this.commands[l]||o.commands.commands[l])))return undefined;if(l.readOnly||l.isYank||(e.lastCommand=null),!l.readOnly&&o.emacsMark()&&o.setEmacsMark(null),e.count){var c=e.count;if(e.count=0,!l||!l.handlesCount)return{args:a,command:{exec:function(e,t){for(var n=0;n<c;n++)l.exec(e,t)},multiSelectAction:l.multiSelectAction}};a||(a={}),"object"==typeof a&&(a.count=c)}return{command:l,args:a}},r.emacsKeys={"Up|C-p":{command:"goorselect",args:["golineup","selectup"]},"Down|C-n":{command:"goorselect",args:["golinedown","selectdown"]},"Left|C-b":{command:"goorselect",args:["gotoleft","selectleft"]},"Right|C-f":{command:"goorselect",args:["gotoright","selectright"]},"C-Left|M-b":{command:"goorselect",args:["gotowordleft","selectwordleft"]},"C-Right|M-f":{command:"goorselect",args:["gotowordright","selectwordright"]},"Home|C-a":{command:"goorselect",args:["gotolinestart","selecttolinestart"]},"End|C-e":{command:"goorselect",args:["gotolineend","selecttolineend"]},"C-Home|S-M-,":{command:"goorselect",args:["gotostart","selecttostart"]},"C-End|S-M-.":{command:"goorselect",args:["gotoend","selecttoend"]},"S-Up|S-C-p":"selectup","S-Down|S-C-n":"selectdown","S-Left|S-C-b":"selectleft","S-Right|S-C-f":"selectright","S-C-Left|S-M-b":"selectwordleft","S-C-Right|S-M-f":"selectwordright","S-Home|S-C-a":"selecttolinestart","S-End|S-C-e":"selecttolineend","S-C-Home":"selecttostart","S-C-End":"selecttoend","C-l":"recenterTopBottom","M-s":"centerselection","M-g":"gotoline","C-x C-p":"selectall","C-Down":{command:"goorselect",args:["gotopagedown","selectpagedown"]},"C-Up":{command:"goorselect",args:["gotopageup","selectpageup"]},"PageDown|C-v":{command:"goorselect",args:["gotopagedown","selectpagedown"]},"PageUp|M-v":{command:"goorselect",args:["gotopageup","selectpageup"]},"S-C-Down":"selectpagedown","S-C-Up":"selectpageup","C-s":"iSearch","C-r":"iSearchBackwards","M-C-s":"findnext","M-C-r":"findprevious","S-M-5":"replace",Backspace:"backspace","Delete|C-d":"del","Return|C-m":{command:"insertstring",args:"\n"},"C-o":"splitline","M-d|C-Delete":{command:"killWord",args:"right"},"C-Backspace|M-Backspace|M-Delete":{command:"killWord",args:"left"},"C-k":"killLine","C-y|S-Delete":"yank","M-y":"yankRotate","C-g":"keyboardQuit","C-w|C-S-W":"killRegion","M-w":"killRingSave","C-Space":"setMark","C-x C-x":"exchangePointAndMark","C-t":"transposeletters","M-u":"touppercase","M-l":"tolowercase","M-/":"autocomplete","C-u":"universalArgument","M-;":"togglecomment","C-/|C-x u|S-C--|C-z":"undo","S-C-/|S-C-x u|C--|S-C-z":"redo","C-x r":"selectRectangularRegion","M-x":{command:"focusCommandLine",args:"M-x "}},r.handler.bindKeys(r.emacsKeys),r.handler.addCommands({recenterTopBottom:function(e){var t=e.renderer,n=t.$cursorLayer.getPixelPosition(),i=t.$size.scrollerHeight-t.lineHeight,o=t.scrollTop;o=Math.abs(n.top-o)<2?n.top-i:Math.abs(n.top-o-.5*i)<2?n.top:n.top-.5*i,e.session.setScrollTop(o)},selectRectangularRegion:function(e){e.multiSelect.toggleBlockSelection()},setMark:{exec:function(t,e){function n(){var e=t.popEmacsMark();e&&t.moveCursorToPosition(e)}if(e&&e.count)return t.inMultiSelectMode?t.forEachSelection(n):n(),void n();var i=t.emacsMark(),o=t.selection.getAllRanges(),r=o.map(function(e){return{row:e.start.row,column:e.start.column}}),s=!0,a=o.every(function(e){return e.isEmpty()});return!s||!i&&a?i?void 0:(r.forEach(function(e){t.pushEmacsMark(e)}),void t.setEmacsMark(r[r.length-1])):(t.inMultiSelectMode?t.forEachSelection({exec:t.clearSelection.bind(t)}):t.clearSelection(),void(i&&t.pushEmacsMark(null)))},readOnly:!0,handlesCount:!0},exchangePointAndMark:{exec:function g(e,t){var n=e.selection;if(t.count||n.isEmpty())if(t.count){var i={row:n.lead.row,column:n.lead.column};n.clearSelection(),n.moveCursorToPosition(e.emacsMarkForSelection(i))}else n.selectToPosition(e.emacsMarkForSelection());else n.setSelectionRange(n.getRange(),!n.isBackwards())},readOnly:!0,handlesCount:!0,multiSelectAction:"forEach"},killWord:{exec:function(e,t){e.clearSelection(),"left"==t?e.selection.selectWordLeft():e.selection.selectWordRight();var n=e.getSelectionRange(),i=e.session.getTextRange(n);r.killRing.add(i),e.session.remove(n),e.clearSelection()},multiSelectAction:"forEach"},killLine:function(e){e.pushEmacsMark(null),e.clearSelection();var t=e.getSelectionRange(),n=e.session.getLine(t.start.row);t.end.column=n.length,n=n.substr(t.start.column);var i=e.session.getFoldLine(t.start.row);i&&t.end.row!=i.end.row&&(t.end.row=i.end.row,n="x"),/^\s*$/.test(n)&&(t.end.row++,n=e.session.getLine(t.end.row),t.end.column=/^\s*$/.test(n)?n.length:0);var o=e.session.getTextRange(t);e.prevOp.command==this?r.killRing.append(o):r.killRing.add(o),e.session.remove(t),e.clearSelection()},yank:function(e){e.onPaste(r.killRing.get()||""),e.keyBinding.$data.lastCommand="yank"},yankRotate:function(e){"yank"==e.keyBinding.$data.lastCommand&&(e.undo(),e.session.$emacsMarkRing.pop(),e.onPaste(r.killRing.rotate()),e.keyBinding.$data.lastCommand="yank")},killRegion:{exec:function(e){r.killRing.add(e.getCopyText()),e.commands.byName.cut.exec(e),e.setEmacsMark(null)},readOnly:!0,multiSelectAction:"forEach"},killRingSave:{exec:function(i){i.$handlesEmacsOnCopy=!0;var t=i.session.$emacsMarkRing.slice(),o=[];r.killRing.add(i.getCopyText()),setTimeout(function(){function e(){var e=i.selection,t=e.getRange(),n=e.isBackwards()?t.end:t.start;o.push({row:n.row,column:n.column}),e.clearSelection()}i.$handlesEmacsOnCopy=!1,i.inMultiSelectMode?i.forEachSelection({exec:e}):e(),i.setEmacsMark(null),i.session.$emacsMarkRing=t.concat(o.reverse())},0)},readOnly:!0},keyboardQuit:function(e){e.selection.clearSelection(),e.setEmacsMark(null),e.keyBinding.$data.count=null},focusCommandLine:function(e,t){e.showCommandLine&&e.showCommandLine(t)}}),r.handler.addCommands(n.iSearchStartCommands);var d=r.handler.commands;d.yank.isYank=!0,d.yankRotate.isYank=!0,r.killRing={$data:[],add:function(e){e&&this.$data.push(e),30<this.$data.length&&this.$data.shift()},append:function(e){var t=this.$data.length-1,n=this.$data[t]||"";e&&(n+=e),n&&(this.$data[t]=n)},get:function(e){return e=e||1,this.$data.slice(this.$data.length-e,this.$data.length).reverse().join("\n")},pop:function(){return 1<this.$data.length&&this.$data.pop(),this.get()},rotate:function(){return this.$data.unshift(this.$data.pop()),this.get()}}}),ace.require(["ace/keyboard/emacs"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/elastic_tabstops_lite",[],function(e,t){"use strict";var n=function(e){this.$editor=e;var t=this,n=[],i=!1;this.onAfterExec=function(){i=!1,t.processRows(n),n=[]},this.onExec=function(){i=!0},this.onChange=function(e){i&&(-1==n.indexOf(e.start.row)&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!(-1<t.indexOf(o)))for(var r=this.$findCellWidthsForBlock(o),s=this.$setBlockCellWidthsToMax(r.cellWidths),a=r.firstRow,l=0,c=s.length;l<c;l++){var h=s[l];t.push(a),this.$adjustRow(a,h),a++}}this.$inChange=!1},this.$findCellWidthsForBlock=function(e){for(var t,n=[],i=e;0<=i&&0!=(t=this.$cellWidthsForRow(i)).length;)n.unshift(t),i--;var o=i+1;i=e;for(var r=this.$editor.session.getLength();i<r-1&&(i++,0!=(t=this.$cellWidthsForRow(i)).length);)n.push(t);return{cellWidths:n,firstRow:o}},this.$cellWidthsForRow=function(e){for(var t=this.$selectionColumnsForRow(e),n=[-1].concat(this.$tabsForRow(e)),i=n.map(function(){return 0}).slice(1),o=this.$editor.session.getLine(e),r=0,s=n.length-1;r<s;r++){var a=n[r]+1,l=n[r+1],c=this.$rightmostSelectionInCell(t,l),h=o.substring(a,l);i[r]=Math.max(h.replace(/\s+$/g,"").length,c-a)}return i},this.$selectionColumnsForRow=function(e){var t=[],n=this.$editor.getCursorPosition();return this.$editor.session.getSelection().isEmpty()&&e==n.row&&t.push(n.column),t},this.$setBlockCellWidthsToMax=function(e){for(var t,n,i,o=!0,r=this.$izip_longest(e),s=0,a=r.length;s<a;s++){var l=r[s];if(l.push){l.push(NaN);for(var c=0,h=l.length;c<h;c++){var u=l[c];if(o&&(t=c,i=0,o=!1),isNaN(u)){n=c;for(var d=t;d<n;d++)e[d][s]=i;o=!0}i=Math.max(i,u)}}else console.error(l)}return e},this.$rightmostSelectionInCell=function(e,t){var n=0;if(e.length){for(var i=[],o=0,r=e.length;o<r;o++)e[o]<=t?i.push(o):i.push(0);n=Math.max.apply(Math,i)}return n},this.$tabsForRow=function(e){for(var t,n=[],i=this.$editor.session.getLine(e),o=/\t/g;null!=(t=o.exec(i));)n.push(t.index);return n},this.$adjustRow=function(e,t){var n=this.$tabsForRow(e);if(0!=n.length)for(var i=0,o=-1,r=this.$izip(t,n),s=0,a=r.length;s<a;s++){var l=r[s][0],c=r[s][1],h=(o+=1+l)-(c+=i);if(0!=h){var u=this.$editor.session.getLine(e).substr(0,c),d=u.replace(/\s*$/g,""),g=u.length-d.length;0<h&&(this.$editor.session.getDocument().insertInLine({row:e,column:c+1},Array(h+1).join(" ")+"\t"),this.$editor.session.getDocument().removeInLine(e,c,c+1),i+=h),h<0&&-h<=g&&(this.$editor.session.getDocument().removeInLine(e,c+h,c),i+=h)}}},this.$izip_longest=function(e){if(!e[0])return[];for(var t=e[0].length,n=e.length,i=1;i<n;i++){var o=e[i].length;t<o&&(t=o)}for(var r=[],s=0;s<t;s++){var a=[];for(i=0;i<n;i++)""===e[i][s]?a.push(NaN):a.push(e[i][s]);r.push(a)}return r},this.$izip=function(e,t){for(var n=e.length>=t.length?t.length:e.length,i=[],o=0;o<n;o++){var r=[e[o],t[o]];i.push(r)}return i}}).call(n.prototype),t.ElasticTabstopsLite=n;var i=e("../editor").Editor;e("../config").defineOptions(i.prototype,"editor",{useElasticTabstops:{set:function(e){e?(this.elasticTabstops||(this.elasticTabstops=new n(this)),this.commands.on("afterExec",this.elasticTabstops.onAfterExec),this.commands.on("exec",this.elasticTabstops.onExec),this.on("change",this.elasticTabstops.onChange)):this.elasticTabstops&&(this.commands.removeListener("afterExec",this.elasticTabstops.onAfterExec),this.commands.removeListener("exec",this.elasticTabstops.onExec),this.removeListener("change",this.elasticTabstops.onChange))}}})}),ace.require(["ace/ext/elastic_tabstops_lite"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.require(["ace/ext/error_marker"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/menu_tools/overlay_page",[],function(e,t,n){"use strict";var i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}";e("../../lib/dom").importCssString(i),n.exports.overlayPage=function l(e,t,n){function i(e){27===e.keyCode&&o()}function o(){s&&(document.removeEventListener("keydown",i),s.parentNode.removeChild(s),e&&e.focus(),s=null,n&&n())}function r(e){(a=e)&&(s.style.pointerEvents="none",t.style.pointerEvents="auto")}var s=document.createElement("div"),a=!1;return s.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; "+(e?"background-color: rgba(0, 0, 0, 0.3);":""),s.addEventListener("click",function(){a||o()}),document.addEventListener("keydown",i),t.addEventListener("click",function(e){e.stopPropagation()}),s.appendChild(t),document.body.appendChild(s),e&&e.blur(),{close:o,setIgnoreFocusOut:r}}}),ace.define("ace/ext/menu_tools/get_editor_keyboard_shortcuts",[],function(e,t,n){"use strict";var i=e("../../lib/keys");n.exports.getEditorKeybordShortcuts=function(e){i.KEY_MODS;var r=[],s={};return e.keyBinding.$handlers.forEach(function(e){var t=e.commandKeyBinding;for(var n in t){var i=n.replace(/(^|-)\w/g,function(e){return e.toUpperCase()}),o=t[n];Array.isArray(o)||(o=[o]),o.forEach(function(e){"string"!=typeof e&&(e=e.name),s[e]?s[e].key+="|"+i:(s[e]={key:i,command:e},r.push(s[e]))})}}),r}}),ace.define("ace/ext/keybinding_menu",[],function(r,e,t){"use strict";function n(e){if(!document.getElementById("kbshortcutmenu")){var t=r("./menu_tools/overlay_page").overlayPage,n=(0,r("./menu_tools/get_editor_keyboard_shortcuts").getEditorKeybordShortcuts)(e),i=document.createElement("div"),o=n.reduce(function(e,t){return e+'<div class="ace_optionsMenuEntry"><span class="ace_optionsMenuCommand">'+t.command+'</span> : <span class="ace_optionsMenuKey">'+t.key+"</span></div>"},"");i.id="kbshortcutmenu",i.innerHTML="<h1>Keyboard Shortcuts</h1>"+o+"</div>",t(e,i)}}var i=r("../editor").Editor;t.exports.init=function(e){i.prototype.showKeyboardShortcuts=function(){n(this)},e.commands.addCommands([{name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e){e.showKeyboardShortcuts()}}])}}),ace.require(["ace/ext/keybinding_menu"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/snippets",[],function(e,a){"use strict";function t(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}var n=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,c=e("./lib/lang"),h=e("./range").Range,u=e("./range_list").RangeList,o=e("./keyboard/hash_handler").HashHandler,r=e("./tokenizer").Tokenizer,s=e("./clipboard"),l={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var i=e.session.getTextRange();return n?i.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):i},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(){return s.getText&&s.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:t.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:t.bind(null,{year:"2-digit"}),CURRENT_MONTH:t.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:t.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:t.bind(null,{month:"short"}),CURRENT_DATE:t.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:t.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:t.bind(null,{weekday:"short"}),CURRENT_HOUR:t.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:t.bind(null,{minute:"2-digit"}),CURRENT_SECOND:t.bind(null,{second:"2-digit"})};l.SELECTED_TEXT=l.SELECTION;var d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){n.implement(this,i),this.getTokenizer=function(){return d.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function o(e){return e=e.substr(1),/^\d+$/.test(e )?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function e(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var t={regex:"/("+e("/")+"+)/",onMatch:function(e,t,n){var i=n[0];return i.fmtString=!0,i.guard=e.slice(1,-1),i.flag=""},next:"formatString"};return d.$tokenizer=new r({start:[{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length?e=i:-1!="`$\\".indexOf(i)&&(e=i),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:o},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,t,n){var i=o(e.substr(1));return n.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+e("\\|")+"*\\|",onMatch:function(e,t,n){var i=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\0"}).split("\0").map(function(e){return{value:e}});return[(n[0].choices=i)[0]]},next:"start"},t,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length?e=i:-1!="`$\\".indexOf(i)?e=i:"n"==i?e="\n":"t"==i?e="\t":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:"a"<i}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var i=n.shift();return i&&(i.flag=e.slice(1,-1)),this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var i={text:e.slice(2)};return n.unshift(i),[i]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var i=n.shift();return this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},t,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return"function"==typeof i&&(i=this.variables[t](e,t,n)),null==i?"":i},this.variables=l,this.tmStrFormat=function(e,t,s){if(!t.fmt)return e;var n=t.flag||"",i=t.guard;i=new RegExp(i,n.replace(/[^gim]/g,""));var a="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,l=this;return e.replace(i,function(){var e=l.variables.__;l.variables.__=[].slice.call(arguments);for(var t=l.resolveVariables(a,s),n="E",i=0;i<t.length;i++){var o=t[i];if("object"==typeof o)if(t[i]="",o.changeCase&&o.local){var r=t[i+1];r&&"string"==typeof r&&("u"==o.changeCase?t[i]=r[0].toUpperCase():t[i]=r[0].toLowerCase(),t[i+1]=r.substr(1))}else o.changeCase&&(n=o.changeCase);else"U"==n?t[i]=o.toUpperCase():"L"==n&&(t[i]=o.toLowerCase())}return l.variables.__=e,t.join("")})},this.tmFormatFunction=function(e,t){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},this.resolveVariables=function(n,e){function t(e){var t=n.indexOf(e,s+1);-1!=t&&(s=t)}for(var i=[],o="",r=!0,s=0;s<n.length;s++){var a=n[s];if("string"!=typeof a){if(a){if(r=!1,a.fmtString){var l=n.indexOf(a,s+1);-1==l&&(l=n.length),a.fmt=n.slice(s+1,l),s=l}if(a.text){var c=this.getVariableValue(e,a.text,o)+"";a.fmtString&&(c=this.tmStrFormat(c,a,e)),a.formatFunction&&(c=this.tmFormatFunction(c,a,e)),c&&!a.ifEnd?(i.push(c),t(a)):!c&&a.ifEnd&&t(a.ifEnd)}else a.elseEnd?t(a.elseEnd):null!=a.tabstopId?i.push(a):null!=a.changeCase&&i.push(a)}}else i.push(a),"\n"==a?(r=!0,o=""):r&&(o=/^\t*/.exec(a)[0],r=/\S/.test(a))}return i},this.insertSnippetForSelection=function(e,t){function n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if("object"==typeof i){if(c[i.tabstopId])continue;i=t[e.lastIndexOf(i,n-1)]||{tabstopId:i.tabstopId}}t[n]=i}return t}var i=e.getCursorPosition(),o=e.session.getLine(i.row),r=e.session.getTabString(),s=o.match(/^\s*/)[0];i.column<s.length&&(s=s.slice(0,i.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=(a=this.resolveVariables(a,e)).map(function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,r):e});var l=[];a.forEach(function(e,t){if("object"==typeof e){var n=e.tabstopId,i=l[n];if(i||((i=l[n]=[]).index=n,i.value="",i.parents={}),-1===i.indexOf(e)){e.choices&&!i.choices&&(i.choices=e.choices),i.push(e);var o=a.indexOf(e,t+1);if(-1!==o){var r=a.slice(t+1,o);r.some(function(e){return"object"==typeof e})&&!i.value?i.value=r:!r.length||i.value&&"string"==typeof i.value||(i.value=r.join(""))}}}}),l.forEach(function(e){e.length=0});for(var c={},h=0;h<a.length;h++){var u=a[h];if("object"==typeof u){var d=u.tabstopId,g=l[d],f=a.indexOf(u,h+1);if(c[d])c[d]===u&&(delete c[d],Object.keys(c).forEach(function(e){g.parents[e]=!0}));else{c[d]=u;var p=g.value;"string"!=typeof p?p=n(p):u.fmt&&(p=this.tmStrFormat(p,u,e)),a.splice.apply(a,[h+1,Math.max(0,f-h)].concat(p,u)),-1===g.indexOf(u)&&g.push(u)}}}var m=0,v=0,w="";a.forEach(function(e){if("string"==typeof e){var t=e.split("\n");1<t.length?(v=t[t.length-1].length,m+=t.length-1):v+=e.length,w+=e}else e&&(e.start?e.end={row:m,column:v}:e.start={row:m,column:v})});var b=e.getSelectionRange(),y=e.session.replace(b,w),k=new C(e),x=e.inVirtualSelectionMode&&e.selection.index;k.addTabstops(l,b.start,y,x)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection(function(){n.insertSnippetForSelection(e,t)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"==typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection(function(){return n.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),o=e.session.getLine(i.row),r=o.substring(0,i.column),s=o.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some(function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,r,s)),!!n},this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var o=e[i];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},this.snippetMap={},this.snippetNameMap={},this.register=function(t,i){function o(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function r(e,t,n){return e=o(e),t=o(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function n(e){e.scope||(e.scope=i||"_"),i=e.scope,s[i]||(s[i]=[],a[i]={});var t=a[i];if(e.name){var n=t[e.name];n&&l.unregister(n),t[e.name]=e}s[i].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=c.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=r(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=r(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}var s=this.snippetMap,a=this.snippetNameMap,l=this;t||(t=[]),Array.isArray(t)?t.forEach(n):Object.keys(t).forEach(function(e){n(t[e])}),this._signal("registerSnippets",{scope:i})},this.unregister=function(e,o){function t(e){var t=s[e.scope||o];if(t&&t[e.name]){delete t[e.name];var n=r[e.scope||o],i=n&&n.indexOf(e);0<=i&&n.splice(i,1)}}var r=this.snippetMap,s=this.snippetNameMap;e.content?t(e):Array.isArray(e)&&e.forEach(t)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],i={},o=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=o.exec(e);){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(l){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var r=t[2],s=t[3];if("regex"==r){var a=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=a.exec(s)[1],i.trigger=a.exec(s)[1],i.endTrigger=a.exec(s)[1],i.endGuard=a.exec(s)[1]}else"snippet"==r?(i.tabTrigger=s.match(/^\S*/)[0],i.name||(i.name=s)):r&&(i[r]=s)}}return n},this.getSnippetByName=function(n,e){var i,o=this.snippetNameMap;return this.getActiveScopes(e).some(function(e){var t=o[e];return t&&(i=t[n]),!!i},this),i}}).call(d.prototype);var C=function(e){if(e.tabstopManager)return e.tabstopManager;(e.tabstopManager=this).$onChange=this.onChange.bind(this),this.$onChangeSelection=c.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},i=n.parents||{},o=(this.tabstops||[]).slice(),r=0;r<o.length;r++){var s=o[r],a=s==n||i[s.index];if(s.rangeList.$bias=a?0:1,"remove"==e.action&&s!==n){var l=s.parents&&s.parents[n.index],c=s.rangeList.pointIndex(e.start,l);c=c<0?-c-1:c+1;var h=s.rangeList.pointIndex(e.end,l);h=h<0?-h-1:h-1;for(var u=s.rangeList.ranges.slice(c,h),d=0;d<u.length;d++)this.removeRange(u[d])}s.rangeList.$onChange(e)}var g=this.editor.session;this.$inChange||!t||1!=g.getLength()||g.getValue()||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var t=this.editor.session,n=t.getTextRange(e.firstNonLinked),i=0;i<e.length;i++){var o=e[i];if(o.linked){var r=o.original,s=a.snippetManager.tmStrFormat(n,r,this.editor);t.replace(o,s)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=0;i<this.ranges.length;i++)if(!this.ranges[i].linked){var o=this.ranges[i].contains(e.row,e.column),r=n||this.ranges[i].contains(t.row,t.column);if(o&&r)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){var n=(this.selectedTabstop=t).firstNonLinked||t;if(t.choices&&(n.cursor=n.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var i=this.editor.multiSelect;i.toSingleRange(n);for(var o=0;o<t.length;o++)t.hasLinkedRanges&&t[o].linked||i.addRange(t[o].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},this.addTabstops=function(e,s,t){var a=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var n=h.fromPoints(t,t);f(n.start,s),f(n.end,s),e[0]=[n],e[0].index=0}var l=[this.index+1,0],c=this.ranges;e.forEach(function(e,t){for(var n=this.$openTabstops[t]||e,i=0;i<e.length;i++){var o=e[i],r=h.fromPoints(o.start,o.end||o.start);g(r.start,s),g(r.end,s),r.original=o,r.tabstop=n,c.push(r),n!=e?n.unshift(r):n[i]=r,o.fmtString||n.firstNonLinked&&a?(r.linked=!0,n.hasLinkedRanges=!0):n.firstNonLinked||(n.firstNonLinked=r)}n.firstNonLinked||(n.hasLinkedRanges=!1),n===e&&(l.push(n),this.$openTabstops[t]=n),this.addTabstopMarkers(n),n.rangeList=n.rangeList||new u,n.rangeList.$bias=0,n.rangeList.addList(n)},this),2<l.length&&(this.tabstops.length&&l.push(l.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,l))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new o,this.keyboardHandler.bindKeys({Tab:function(e){a.snippetManager&&a.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(C.prototype);var g=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},f=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),a.snippetManager=new d;var p=e("./editor").Editor;(function(){this.insertSnippet=function(e,t){return a.snippetManager.insertSnippet(this,e,t)},this.expandSnippet=function(e){return a.snippetManager.expandWithTab(this,e)}}).call(p.prototype)}),ace.define("ace/autocomplete/popup",[],function(e,t){"use strict";var i=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,l=e("../range").Range,c=e("../lib/event"),u=e("../lib/lang"),g=e("../lib/dom"),f=function(e){var t=new i(e);t.$maxLines=4;var n=new o(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n},n=function(e){var t=g.createElement("div"),d=new f(t);e&&e.appendChild(t),t.style.display="none",d.renderer.content.style.cursor="default",d.renderer.setStyle("ace_autocomplete"),d.setOption("displayIndentGuides",!1),d.setOption("dragDelay",150);var h,n=function(){};d.focus=n,d.$isFocused=!0,d.renderer.$cursorLayer.restartTimer=n,d.renderer.$cursorLayer.element.style.opacity=0,d.renderer.$maxLines=8,d.renderer.$keepTextAreaAtCursor=!1,d.setHighlightActiveLine(!1),d.session.highlight(""),d.session.$searchHighlight.clazz="ace_highlight-marker",d.on("mousedown",function(e){var t=e.getDocumentPosition();d.selection.moveToPosition(t),o.start.row=o.end.row=t.row,e.stop()});var i=new l(-1,0,-1,Infinity),o=new l(-1,0,-1,Infinity);o.id=d.session.addMarker(o,"ace_active-line","fullLine"),d.setSelectOnHover=function(e){e?i.id&&(d.session.removeMarker(i.id),i.id=null):i.id=d.session.addMarker(i,"ace_line-hover","fullLine")},d.setSelectOnHover(!1),d.on("mousemove",function(e){if(h){if(h.x!=e.x||h.y!=e.y){(h=e).scrollTop=d.renderer.scrollTop;var t=h.getDocumentPosition().row;i.start.row!=t&&(i.id||d.setRow(t),s(t))}}else h=e}),d.renderer.on("beforeRender",function(){if(h&&-1!=i.start.row){h.$pos=null;var e=h.getDocumentPosition().row;i.id||d.setRow(e),s(e,!0)}}),d.renderer.on("afterRender",function(){var e=d.getRow(),t=d.renderer.$textLayer,n=t.element.childNodes[e-t.config.firstRow];n!==t.selectedNode&&t.selectedNode&&g.removeCssClass(t.selectedNode,"ace_selected"),(t.selectedNode=n)&&g.addCssClass(n,"ace_selected")});var r=function(){s(-1)},s=function(e,t){e!==i.start.row&&(i.start.row=i.end.row=e,t||d.session._emit("changeBackMarker"),d._emit("changeHoverMarker"))};d.getHoveredRow=function(){return i.start.row},c.addListener(d.container,"mouseout",r),d.on("hide",r),d.on("changeSelection",r),d.session.doc.getLength=function(){return d.data.length},d.session.doc.getLine=function(e){var t=d.data[e];return"string"==typeof t?t:t&&t.value||""};var a=d.session.bgTokenizer;return a.$tokenizeRow=function(e){function t(e,t){e&&i.push({type:(n.className||"")+(t||""),value:e})}var n=d.data[e],i=[];if(!n)return i;"string"==typeof n&&(n={value:n});for(var o=n.caption||n.value||n.name,r=o.toLowerCase(),s=(d.filterText||"").toLowerCase(),a=0,l=0,c=0;c<=s.length;c++)if(c!=l&&(n.matchMask&1<<c||c==s.length)){var h=s.slice(l,c);l=c;var u=r.indexOf(h,a);if(-1==u)continue;t(o.slice(a,u),""),a=u+h.length,t(o.slice(u,a),"completion-highlight")}return t(o.slice(a,o.length),""),n.meta&&i.push({type:"completion-meta",value:n.meta}),n.message&&i.push({type:"completion-message",value:n.message}),i},a.$updateOnChange=n,a.start=n,d.session.$computeWidth=function(){return this.screenWidth=0},d.isOpen=!1,d.isTopdown=!1,d.autoSelect=!0,d.filterText="",d.data=[],d.setData=function(e,t){d.filterText=t||"",d.setValue(u.stringRepeat("\n",e.length),-1),d.data=e||[],d.setRow(0)},d.getData=function(e){return d.data[e]},d.getRow=function(){return o.start.row},d.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),o.start.row!=e&&(d.selection.clearSelection(),o.start.row=o.end.row=e||0,d.session._emit("changeBackMarker"),d.moveCursorTo(e||0,0),d.isOpen&&d._signal("select"))},d.on("changeSelection",function(){d.isOpen&&d.setRow(d.selection.lead.row),d.renderer.scrollCursorIntoView()}),d.hide=function(){this.container.style.display="none",this._signal("hide"),d.isOpen=!1},d.show=function(e,t,n){var i=this.container,o=window.innerHeight,r=window.innerWidth,s=this.renderer,a=s.$maxLines*t*1.4,l=e.top+this.$borderSize;o/2<l&&!n&&o<l+t+a?(s.$maxPixelHeight=l-2*this.$borderSize,i.style.top="",i.style.bottom=o-l+"px",d.isTopdown=!1):(l+=t,s.$maxPixelHeight=o-l-.2*t,i.style.top=l+"px",i.style.bottom="",d.isTopdown=!0),i.style.display="";var c=e.left;c+i.offsetWidth>r&&(c=r-i.offsetWidth),i.style.left=c+"px",this._signal("show"),h=null,d.isOpen=!0},d.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=n<=t?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},d.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},d.$imageSize=0,d.$borderSize=1,d};g.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css"),t.AcePopup=n,t.$singleLineEditor=f}),ace.define("ace/autocomplete/util",[],function(e,t){"use strict";t.parForEach=function(e,t,n){var i=0,o=e.length;0===o&&n();for(var r=0;r<o;r++)t(e[r],function(e,t){++i===o&&n(e,t)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t-1;0<=o&&n.test(e[o]);o--)i.push(e[o]);return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t;o<e.length&&n.test(e[o]);o++)i.push(e[o]);return i},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),i=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(i,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(i,n.column)}}),ace.define("ace/autocomplete",[],function(e,t){"use strict";var n=e("./keyboard/hash_handler").HashHandler,i=e("./autocomplete/popup").AcePopup,l=e("./autocomplete/util"),o=e("./lib/lang"),r=e("./lib/dom"),s=e("./snippets").snippetManager,a=e("./config"),c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new n,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=o.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=o.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new i(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var i=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var o=i.layerConfig.lineHeight,r=i.$cursorLayer.getPixelPosition(this.base,!0);r.left-=this.popup.getTextLeftOffset();var s=e.container.getBoundingClientRect();r.top+=s.top-i.layerConfig.offset,r.left+=s.left-e.renderer.scrollLeft,r.left+=i.gutterWidth,this.popup.show(r,o)}this.changeTimer.cancel()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(){var e=this.editor.selection.lead;(e.row!=this.base.row||e.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),i=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),o=this.popup&&this.popup.container;t==n||t.parentNode==o||i||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(){this.detach()},this.mousewheelListener=function(){this.detach()},this.goTo=function(e){this.popup.goTo(e)},this.insertMatch=function(e){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;var t=this.completions;if(this.editor.startOperation({command:{name:"insertMatch"}}),e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(t.filterText)for(var n,i=this.editor.selection.getAllRanges(),o=0;n=i[o];o++)n.start.column-=t.filterText.length,this.editor.session.remove(n);e.snippet?s.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.completions==t&&this.detach(),this.editor.endOperation()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(n,i){var t=n.getSession(),o=n.getCursorPosition(),r=l.getCompletionPrefix(n);this.base=t.doc.createAnchor(o.row,o.column-r.length),this.base.$insertRight=!0;var s=[],a=n.completers.length;return n.completers.forEach(function(e){e.getCompletions(n,t,o,r,function(e,t){!e&&t&&(s=s.concat(t)),i(null,{prefix:l.getCompletionPrefix(n),matches:s,finished:0==--a})})}),!0},this.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,(this.editor=e).completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},this.updateCompletions=function(o,e){if(o&&this.base&&this.completions){var t=this.editor.getCursorPosition(),n=this.editor.session.getTextRange({start:this.base,end:t});if(n==this.completions.filterText)return;return this.completions.setFilter(n),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet?void this.openPopup(this.editor,n,o):this.detach():this.detach()}if(e&&e.matches){t=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(t.row,t.column),this.base.$insertRight=!0,this.completions=new h(e.matches),this.openPopup(this.editor,"",o)}var r=this.gatherCompletionsId,s=function(e){if(e.finished)return this.detach()}.bind(this),a=function(e){var t=e.prefix,n=e.matches;this.completions=new h(n),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(t);var i=this.completions.filtered;return i.length&&(1!=i.length||i[0].value!=t||i[0].snippet)?this.autoInsert&&1==i.length&&e.finished?this.insertMatch(i[0]):void this.openPopup(this.editor,t,o):s(e)}.bind(this),l=!0,c=null;if(this.gatherCompletions(this.editor,function(e,t){var n=t.prefix,i=t&&t.matches;if(!i||!i.length)return s(t);0===n.indexOf(t.prefix)&&r==this.gatherCompletionsId&&(l?c=t:a(t))}.bind(this)),l=!1,c){var i=c;c=null,a(i)}},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),i=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some(function(e){return e.getDocTooltip&&(i=e.getDocTooltip(n)),i}),i||"string"==typeof n||(i=n),"string"==typeof i&&(i={docText:i}),i&&(i.docHTML||i.docText)?void this.showDocTooltip(i):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=r.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,i=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,t.style.display="block",window.innerWidth-i.right<320?i.left<320?(n.isTopdown?t.style.top=i.bottom+"px":t.style.top=n.container.offsetTop-t.offsetHeight+"px",t.style.left=i.left+"px",t.style.right="",t.style.bottom=""):(t.style.right=window.innerWidth-i.left+"px",t.style.left=""):(t.style.left=i.right+1+"px",t.style.right="")},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},this.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&this.editor.completer,this.popup=null}}).call(c.prototype),c["for"]=function(e){return e.completer||(a.get("sharedPopups")?(c.$shared||(c.$sharedInstance=new c),e.completer=c.$sharedInstance):(e.completer=new c,e.once("destroy",function(e,t){t.completer.destroy()}))),e.completer},c.startCommand={name:"startAutocomplete",exec:function(e,t){var n=c["for"](e);n.autoInsert=!1,n.autoSelect=!0,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var h=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)});var n=null;t=t.filter(function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)}),this.filtered=t},this.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),o=t.toLowerCase();e:for(var r,s=0;r=e[s];s++){var a=r.caption||r.value||r.snippet;if(a){var l,c,h=-1,u=0,d=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var g=a.toLowerCase().indexOf(o);if(-1<g)d=g;else for(var f=0;f<t.length;f++){var p=a.indexOf(o[f],h+1),m=a.indexOf(i[f],h+1);if((l=0<=p&&(m<0||p<m)?p:m)<0)continue e;0<(c=l-h-1)&&(-1===h&&(d+=10),d+=c,u|=1<<f),h=l}}r.matchMask=u,r.exactMatch=d?0:1,r.$score=(r.score||0)-d,n.push(r)}}return n}}).call(h.prototype),t.Autocomplete=c,t.FilteredList=h}),ace.define("ace/autocomplete/text_completer",[],function(e,t){function n(e,t){return e.getTextRange(i.fromPoints({row:0,column:0},t)).split(l).length-1}function s(e,t){var o=n(e,t),r=e.getValue().split(l),s=Object.create(null),a=r[o];return r.forEach(function(e,t){if(e&&e!==a){var n=Math.abs(o-t),i=r.length-n;s[e]?s[e]=Math.max(i,s[e]):s[e]=i}}),s}var i=e("../range").Range,l=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;t.getCompletions=function(e,t,n,i,o){var r=s(t,n);o(null,Object.keys(r ).map(function(e){return{caption:e,value:e,score:r[e],meta:"local"}}))}}),ace.define("ace/ext/language_tools",[],function(e,t){"use strict";var c=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,n=e("../config"),i=e("../lib/lang"),r=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),a={getCompletions:function(e,t,n,i,o){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,i,o);var r=e.session.getState(n.row);o(null,t.$mode.getCompletions(r,t,n,i))}},l={getCompletions:function(e,t,n,i,o){var r=[],s=t.getTokenAt(n.row,n.column);s&&s.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?r.push("html-tag"):r=c.getActiveScopes(e);var a=c.snippetMap,l=[];r.forEach(function(e){for(var t=a[e]||[],n=t.length;n--;){var i=t[n],o=i.name||i.tabTrigger;o&&l.push({caption:o,snippet:i.content,meta:i.tabTrigger&&!i.name?i.tabTrigger+"\u21e5 ":"snippet",type:"snippet"})}},this),o(null,l)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",i.escapeHTML(e.caption),"</b>","<hr></hr>",i.escapeHTML(e.snippet)].join(""))}},h=[l,s,a];t.setCompleters=function(e){h.length=0,e&&h.push.apply(h,e)},t.addCompleter=function(e){h.push(e)},t.textCompleter=s,t.keyWordCompleter=a,t.snippetCompleter=l;var u={name:"expandSnippet",exec:function(e){return c.expandWithTab(e)},bindKey:"Tab"},d=function(e,t){g(t.session.$mode)},g=function(e){"string"==typeof e&&(e=n.$modes[e]),e&&(c.files||(c.files={}),f(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(g))},f=function(t,e){e&&t&&!c.files[t]&&(c.files[t]={},n.loadModule(e,function(e){e&&(!(c.files[t]=e).snippets&&e.snippetText&&(e.snippets=c.parseSnippetFile(e.snippetText)),c.register(e.snippets||[],e.scope),e.includeScopes&&(c.snippetMap[e.scope].includeScopes=e.includeScopes,e.includeScopes.forEach(function(e){g("ace/mode/"+e)})))}))},p=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!r.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){if(r.getCompletionPrefix(t)&&!n){var i=o["for"](t);i.autoInsert=!1,i.showPopup(t)}}},m=e("../editor").Editor;e("../config").defineOptions(m.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.on("afterExec",p)):this.commands.removeListener("afterExec",p)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(u),this.on("changeMode",d),d(null,this)):(this.commands.removeCommand(u),this.off("changeMode",d))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/linking",[],function(e,o){function t(e){var t=e.editor;if(e.getAccelKey()){t=e.editor;var n=e.getDocumentPosition(),i=t.session.getTokenAt(n.row,n.column);o.previousLinkingHover&&o.previousLinkingHover!=i&&t._emit("linkHoverOut"),t._emit("linkHover",{position:n,token:i}),o.previousLinkingHover=i}else o.previousLinkingHover&&(t._emit("linkHoverOut"),o.previousLinkingHover=!1)}function n(e){var t=e.getAccelKey();if(0==e.getButton()&&t){var n=e.editor,i=e.getDocumentPosition(),o=n.session.getTokenAt(i.row,i.column);n._emit("linkClick",{position:i,token:o})}}var i=e("../editor").Editor;e("../config").defineOptions(i.prototype,"editor",{enableLinking:{set:function(e){e?(this.on("click",n),this.on("mousemove",t)):(this.off("click",n),this.off("mousemove",t))},value:!1}}),o.previousLinkingHover=!1}),ace.require(["ace/ext/linking"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/rtl",[],function(e){"use strict";function t(e,t){var n=t.getSelection().lead;t.session.$bidiHandler.isRtlLine(n.row)&&0===n.column&&(t.session.$bidiHandler.isMoveLeftOperation&&0<n.row?t.getSelection().moveCursorTo(n.row-1,t.session.getLine(n.row-1).length):t.getSelection().isEmpty()?n.column+=1:n.setPosition(n.row,n.column+1))}function n(e){e.editor.session.$bidiHandler.isMoveLeftOperation=/gotoleft|selectleft|backspace|removewordleft/.test(e.command.name)}function i(e,t){var n=t.session;if(n.$bidiHandler.currentRow=null,n.$bidiHandler.isRtlLine(e.start.row)&&"insert"===e.action&&1<e.lines.length)for(var i=e.start.row;i<e.end.row;i++)n.getLine(i+1).charAt(0)!==n.$bidiHandler.RLE&&(n.doc.$lines[i+1]=n.$bidiHandler.RLE+n.getLine(i+1))}function o(e,t){var n=t.session.$bidiHandler,i=t.$textLayer.$lines.cells,o=t.layerConfig.width-t.layerConfig.padding+"px";i.forEach(function(e){var t=e.element.style;n&&n.isRtlLine(e.row)?(t.direction="rtl",t.textAlign="right",t.width=o):(t.direction="",t.textAlign="",t.width="")})}function r(e){function t(e){var t=e.element.style;t.direction=t.textAlign=t.width=""}var n=e.$textLayer.$lines;n.cells.forEach(t),n.cellCache.forEach(t)}var s=[{name:"leftToRight",bindKey:{win:"Ctrl-Alt-Shift-L",mac:"Command-Alt-Shift-L"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!1)},readOnly:!0},{name:"rightToLeft",bindKey:{win:"Ctrl-Alt-Shift-R",mac:"Command-Alt-Shift-R"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!0)},readOnly:!0}],a=e("../editor").Editor;e("../config").defineOptions(a.prototype,"editor",{rtlText:{set:function(e){e?(this.on("change",i),this.on("changeSelection",t),this.renderer.on("afterRender",o),this.commands.on("exec",n),this.commands.addCommands(s)):(this.off("change",i),this.off("changeSelection",t),this.renderer.off("afterRender",o),this.commands.off("exec",n),this.commands.removeCommands(s),r(this.renderer)),this.renderer.updateFull()}},rtl:{set:function(e){(this.session.$bidiHandler.$isRtl=e)?(this.setOption("rtlText",!1),this.renderer.on("afterRender",o),this.session.$bidiHandler.seenBidi=!0):(this.renderer.off("afterRender",o),r(this.renderer)),this.renderer.updateFull()}}})}),ace.require(["ace/ext/rtl"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/searchbox",[],function(e,t){"use strict";var o=e("../lib/dom"),n=e("../lib/lang"),s=e("../lib/event"),i='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',r=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),l=999;o.importCssString(i,"ace_searchbox");var c=function(e){var t=o.createElement("div");o.buildDom(["div",{"class":"ace_search right"},["span",{action:"hide","class":"ace_searchbtn_close"}],["div",{"class":"ace_search_form"},["input",{"class":"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev","class":"ace_searchbtn prev"},"\u200b"],["span",{action:"findNext","class":"ace_searchbtn next"},"\u200b"],["span",{action:"findAll","class":"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{"class":"ace_replace_form"},["input",{"class":"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext","class":"ace_searchbtn"},"Replace"],["span",{action:"replaceAll","class":"ace_searchbtn"},"All"]],["div",{"class":"ace_search_options"},["span",{action:"toggleReplace","class":"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{"class":"ace_search_counter"}],["span",{action:"toggleRegexpMode","class":"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive","class":"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords","class":"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection","class":"ace_button",title:"Search In Selection"},"S"]]],t),this.element=t.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e),o.importCssString(i,"ace_searchbox",e.container)};(function(){this.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},this.setSession=function(){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOption=e.querySelector("[action=searchInSelection]"),this.replaceOption=e.querySelector("[action=toggleReplace]"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=e.querySelector(".ace_search_counter")},this.$init=function(){var e=this.element;this.$initElements(e);var r=this;s.addListener(e,"mousedown",function(e){setTimeout(function(){r.activeInput.focus()},0),s.stopPropagation(e)}),s.addListener(e,"click",function(e){var t=(e.target||e.srcElement).getAttribute("action");t&&r[t]?r[t]():r.$searchBarKb.commands[t]&&r.$searchBarKb.commands[t].exec(r),s.stopPropagation(e)}),s.addCommandKeyListener(e,function(e,t,n){var i=a.keyCodeToString(n),o=r.$searchBarKb.findKeyCommand(t,i);o&&o.exec&&(o.exec(r),s.stopEvent(e))}),this.$onChange=n.delayedCall(function(){r.find(!1,!1)}),s.addListener(this.searchInput,"input",function(){r.$onChange.schedule(20)}),s.addListener(this.searchInput,"focus",function(){r.activeInput=r.searchInput,r.searchInput.value&&r.highlight()}),s.addListener(this.replaceInput,"focus",function(){r.activeInput=r.replaceInput,r.searchInput.value&&r.highlight()})},this.$closeSearchBarKb=new r([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new r,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.editor.getReadOnly()||(e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus())},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout(function(){e.hide()})},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:"toggleReplace",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:"searchInSelection",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),this.setSearchRange=function(e){(this.searchRange=e)?this.searchRangeMarker=this.editor.session.addMarker(e,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(e){o.setCssClass(this.replaceOption,"checked",this.searchRange),o.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",o.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),o.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),o.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var t=this.editor.getReadOnly();this.replaceOption.style.display=t?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!t?"":"none",this.find(!1,!1,e)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,n){var i=!this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:n,range:this.searchRange})&&this.searchInput.value;o.setCssClass(this.searchBox,"ace_nomatch",i),this.editor._emit("findSearchBox",{match:!i}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,n=0,i=0;if(t){var o=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),r=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(r-=e.session.doc.positionToIndex(this.searchRange.start));for(var s,a=t.lastIndex=0;(s=t.exec(o))&&(n++,(a=s.index)<=r&&i++,!(l<n))&&(s[0]||(t.lastIndex=a+=1,!(a>=o.length))););}this.searchCounter.textContent=i+" of "+(l<n?l+"+":n)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;o.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(c.prototype),t.SearchBox=c,t.Search=function(e,t){(e.searchBox||new c(e)).show(e.session.getTextRange(),t)}}),ace.require(["ace/ext/searchbox"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/menu_tools/overlay_page",[],function(e,t,n){"use strict";var i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}";e("../../lib/dom").importCssString(i),n.exports.overlayPage=function l(e,t,n){function i(e){27===e.keyCode&&o()}function o(){s&&(document.removeEventListener("keydown",i),s.parentNode.removeChild(s),e&&e.focus(),s=null,n&&n())}function r(e){(a=e)&&(s.style.pointerEvents="none",t.style.pointerEvents="auto")}var s=document.createElement("div"),a=!1;return s.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; "+(e?"background-color: rgba(0, 0, 0, 0.3);":""),s.addEventListener("click",function(){a||o()}),document.addEventListener("keydown",i),t.addEventListener("click",function(e){e.stopPropagation()}),s.appendChild(t),document.body.appendChild(s),e&&e.blur(),{close:o,setIgnoreFocusOut:r}}}),ace.define("ace/ext/modelist",[],function(e,t,n){"use strict";function i(e){for(var t=l.text,n=e.split(/[\/\\]/).pop(),i=0;i<o.length;i++)if(o[i].supportsFile(n)){t=o[i];break}return t}var o=[],r=function(e,t,n){var i;this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n,i=/\^/.test(n)?n.replace(/\|(\^)?/g,function(e,t){return"$|"+(t?"^":"^.*\\.")})+"$":"^.*\\.("+n+")$",this.extRe=new RegExp(i,"gi")};r.prototype.supportsFile=function(e){return e.match(this.extRe)};var s={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Alda:["alda"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],Apex:["apex|cls|trigger|tgr"],AQL:["aql"],AsciiDoc:["asciidoc|adoc"],ASL:["dsl|asl|asl.json"],Assembly_x86:["asm|a"],AutoHotKey:["ahk"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm"],Crystal:["cr"],CSharp:["cs"],Csound_Document:["csd"],Csound_Orchestra:["orc"],Csound_Score:["sco"],CSS:["css"],Curly:["curly"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Dockerfile:["^Dockerfile"],Dot:["dot"],Drools:["drl"],Edifact:["edi"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Forth:["frt|fs|ldr|fth|4th"],Fortran:["f|f90"],FSharp:["fsi|fs|ml|mli|fsx|fsscript"],FSL:["fsl"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],Gobstones:["gbs"],golang:["go"],GraphQLSchema:["gql"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],Haskell_Cabal:["cabal"],haXe:["hx"],Hjson:["hjson"],HTML:["html|htm|xhtml|vue|we|wpy"],HTML_Elixir:["eex|html.eex"],HTML_Ruby:["erb|rhtml|html.erb"],INI:["ini|conf|cfg|prefs"],Io:["io"],Jack:["jack"],Jade:["jade|pug"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSON5:["json5"],JSONiq:["jq"],JSP:["jsp"],JSSM:["jssm|jssm_state"],JSX:["jsx"],Julia:["jl"],Kotlin:["kt|kts"],LaTeX:["tex|latex|ltx|bib"],Latte:["latte"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],LogiQL:["logic|lql"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MediaWiki:["wiki|mediawiki"],MEL:["mel"],MIPS:["s|asm"],MIXAL:["mixal"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nginx:["nginx|conf"],Nim:["nim"],Nix:["nix"],NSIS:["nsi|nsh"],Nunjucks:["nunjucks|nunjs|nj|njk"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],PHP_Laravel_blade:["blade.php"],Pig:["pig"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prisma:["prisma"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],Puppet:["epp|pp"],Python:["py"],QML:["qml"],R:["r"],Raku:["raku|rakumod|rakutest|p6|pl6|pm6"],Razor:["cshtml|asp"],RDoc:["Rd"],Red:["red|reds"],RHTML:["Rhtml"],RST:["rst"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCAD:["scad"],Scala:["scala|sbt"],Scheme:["scm|sm|rkt|oak|scheme"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Slim:["slim|skim"],Smarty:["smarty|tpl"],Smithy:["smithy"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Terraform:["tf","tfvars","terragrunt"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],TSX:["tsx"],Twig:["twig|swig"],Typescript:["ts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],Visualforce:["vfp|component|page"],Wollok:["wlk|wpgm|wtest"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Zeek:["zeek|bro"],Django:["html"]},a={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",Csound_Document:"Csound Document",Csound_Orchestra:"Csound",Csound_Score:"Csound Score",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker",PHP_Laravel_blade:"PHP (Blade Template)",Perl6:"Perl 6",AutoHotKey:"AutoHotkey / AutoIt"},l={};for(var c in s){var h=s[c],u=(a[c]||c).replace(/_/g," "),d=c.toLowerCase(),g=new r(d,u,h[0]);l[d]=g,o.push(g)}n.exports={getModeForPath:i,modes:o,modesByName:l}}),ace.define("ace/ext/themelist",[],function(e,i){"use strict";var t=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["Xcode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Dracula","","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Nord Dark","nord_dark","dark"],["One Dark","one_dark","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];i.themesByName={},i.themes=t.map(function(e){var t=e[1]||e[0].replace(/ /g,"_").toLowerCase(),n={caption:e[0],theme:"ace/theme/"+t,isDark:"dark"==e[2],name:t};return i.themesByName[t]=n})}),ace.define("ace/ext/options",[],function(e,t){"use strict";e("./menu_tools/overlay_page");var n=e("../lib/dom"),i=e("../lib/oop"),o=e("../config"),r=e("../lib/event_emitter").EventEmitter,s=n.buildDom,a=e("./modelist"),l=e("./themelist"),c={Bright:[],Dark:[]};l.themes.forEach(function(e){c[e.isDark?"Dark":"Bright"].push({caption:e.caption,value:e.theme})});var h={Main:{Mode:{path:"mode",type:"select",items:a.modes.map(function(e){return{caption:e.caption,value:e.mode}})},Theme:{path:"theme",type:"select",items:c},Keybinding:{type:"buttonBar",path:"keyboardHandler",items:[{caption:"Ace",value:null},{caption:"Vim",value:"ace/keyboard/vim"},{caption:"Emacs",value:"ace/keyboard/emacs"},{caption:"Sublime",value:"ace/keyboard/sublime"},{caption:"VSCode",value:"ace/keyboard/vscode"}]},"Font Size":{path:"fontSize",type:"number",defaultValue:12,defaults:[{caption:"12px",value:12},{caption:"24px",value:24}]},"Soft Wrap":{type:"buttonBar",path:"wrap",items:[{caption:"Off",value:"off"},{caption:"View",value:"free"},{caption:"margin",value:"printMargin"},{caption:"40",value:"40"}]},"Cursor Style":{path:"cursorStyle",items:[{caption:"Ace",value:"ace"},{caption:"Slim",value:"slim"},{caption:"Smooth",value:"smooth"},{caption:"Smooth And Slim",value:"smooth slim"},{caption:"Wide",value:"wide"}]},Folding:{path:"foldStyle",items:[{caption:"Manual",value:"manual"},{caption:"Mark begin",value:"markbegin"},{caption:"Mark begin and end",value:"markbeginend"}]},"Soft Tabs":[{path:"useSoftTabs"},{ariaLabel:"Tab Size",path:"tabSize",type:"number",values:[2,3,4,8,16]}],Overscroll:{type:"buttonBar",path:"scrollPastEnd",items:[{caption:"None",value:0},{caption:"Half",value:.5},{caption:"Full",value:1}]}},More:{"Atomic soft tabs":{path:"navigateWithinSoftTabs"},"Enable Behaviours":{path:"behavioursEnabled"},"Wrap with quotes":{path:"wrapBehavioursEnabled"},"Enable Auto Indent":{path:"enableAutoIndent"},"Full Line Selection":{type:"checkbox",values:"text|line",path:"selectionStyle"},"Highlight Active Line":{path:"highlightActiveLine"},"Show Invisibles":{path:"showInvisibles"},"Show Indent Guides":{path:"displayIndentGuides"},"Persistent HScrollbar":{path:"hScrollBarAlwaysVisible"},"Persistent VScrollbar":{path:"vScrollBarAlwaysVisible"},"Animate scrolling":{path:"animatedScroll"},"Show Gutter":{path:"showGutter"},"Show Line Numbers":{path:"showLineNumbers"},"Relative Line Numbers":{path:"relativeLineNumbers"},"Fixed Gutter Width":{path:"fixedWidthGutter"},"Show Print Margin":[{path:"showPrintMargin"},{ariaLabel:"Print Margin",type:"number",path:"printMarginColumn"}],"Indented Soft Wrap":{path:"indentedSoftWrap"},"Highlight selected word":{path:"highlightSelectedWord"},"Fade Fold Widgets":{path:"fadeFoldWidgets"},"Use textarea for IME":{path:"useTextareaForIME"},"Merge Undo Deltas":{path:"mergeUndoDeltas",items:[{caption:"Always",value:"always"},{caption:"Never",value:"false"},{caption:"Timed",value:"true"}]},"Elastic Tabstops":{path:"useElasticTabstops"},"Incremental Search":{path:"useIncrementalSearch"},"Read-only":{path:"readOnly"},"Copy without selection":{path:"copyWithEmptySelection"},"Live Autocompletion":{path:"enableLiveAutocompletion"}}},u=function(e,t){this.editor=e,this.container=t||document.createElement("div"),this.groups=[],this.options={}};(function(){i.implement(this,r),this.add=function(e){e.Main&&i.mixin(h.Main,e.Main),e.More&&i.mixin(h.More,e.More)},this.render=function(){this.container.innerHTML="",s(["table",{role:"presentation",id:"controls"},this.renderOptionGroup(h.Main),["tr",null,["td",{colspan:2},["table",{role:"presentation",id:"more-controls"},this.renderOptionGroup(h.More)]]],["tr",null,["td",{colspan:2},"version "+o.version]]],this.container)},this.renderOptionGroup=function(i){return Object.keys(i).map(function(e,t){var n=i[e];return n.position||(n.position=t/1e4),n.label||(n.label=e),n}).sort(function(e,t){return e.position-t.position}).map(function(e){return this.renderOption(e.label,e)},this)},this.renderOptionControl=function(t,i){var e,o=this;if(Array.isArray(i))return i.map(function(e){return o.renderOptionControl(t,e)});var r=o.getOption(i);if(i.values&&"checkbox"!=i.type&&("string"==typeof i.values&&(i.values=i.values.split("|")),i.items=i.values.map(function(e){return{value:e,name:e}})),"buttonBar"==i.type)e=["div",{role:"group","aria-labelledby":i.path+"-label"},i.items.map(function(n){return["button",{value:n.value,ace_selected_button:r==n.value,"aria-pressed":r==n.value,onclick:function(){o.setOption(i,n.value);for(var e=this.parentNode.querySelectorAll("[ace_selected_button]"),t=0;t<e.length;t++)e[t].removeAttribute("ace_selected_button"),e[t].setAttribute("aria-pressed",!1);this.setAttribute("ace_selected_button",!0),this.setAttribute("aria-pressed",!0)}},n.desc||n.caption||n.name]})];else if("number"==i.type)e=["input",{type:"number",value:r||i.defaultValue,style:"width:3em",oninput:function(){o.setOption(i,parseInt(this.value))}}],i.ariaLabel?e[1]["aria-label"]=i.ariaLabel:e[1].id=t,i.defaults&&(e=[e,i.defaults.map(function(t){return["button",{onclick:function(){var e=this.parentNode.firstChild;e.value=t.value,e.oninput()}},t.caption]})]);else if(i.items){var n=function(e){return e.map(function(e){return["option",{value:e.value||e.name},e.desc||e.caption||e.name]})},s=Array.isArray(i.items)?n(i.items):Object.keys(i.items).map(function(e){return["optgroup",{label:e},n(i.items[e])]});e=["select",{id:t,value:r,onchange:function(){o.setOption(i,this.value)}},s]}else"string"==typeof i.values&&(i.values=i.values.split("|")),i.values&&(r=r==i.values[1]),e=["input",{type:"checkbox",id:t,checked:r||null,onchange:function(){var e=this.checked;i.values&&(e=i.values[e?1:0]),o.setOption(i,e)}}],"checkedNumber"==i.type&&(e=[e,[]]);return e},this.renderOption=function(e,t){if(!t.path||t.onchange||this.editor.$options[t.path]){var n=Array.isArray(t)?t[0].path:t.path;this.options[n]=t;var i="-"+n;return["tr",{"class":"ace_optionsMenuEntry"},["td",["label",{"for":i,id:n+"-label"},e]],["td",this.renderOptionControl(i,t)]]}},this.setOption=function(e,t){"string"==typeof e&&(e=this.options[e]),"false"==t&&(t=!1),"true"==t&&(t=!0),"null"==t&&(t=null),"undefined"==t&&(t=undefined),"string"==typeof t&&parseFloat(t).toString()==t&&(t=parseFloat(t)),e.onchange?e.onchange(t):e.path&&this.editor.setOption(e.path,t),this._signal("setOption",{name:e.path,value:t})},this.getOption=function(e){return e.getValue?e.getValue():this.editor.getOption(e.path)}}).call(u.prototype),t.OptionPanel=u}),ace.define("ace/ext/settings_menu",[],function(e,t,n){"use strict";function i(e){if(!document.getElementById("ace_settingsmenu")){var t=new o(e);t.render(),t.container.id="ace_settingsmenu",r(e,t.container),t.container.querySelector("select,input,button,checkbox").focus()}}var o=e("./options").OptionPanel,r=e("./menu_tools/overlay_page").overlayPage;n.exports.init=function(){e("../editor").Editor.prototype.showSettingsMenu=function(){i(this)}}}),ace.require(["ace/ext/settings_menu"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/spellcheck",[],function(e,t){"use strict";var h=e("../lib/event") ;t.contextMenuHandler=function(e){var n=e.target,i=n.textInput.getElement();if(n.selection.isEmpty()){var t=n.getCursorPosition(),o=n.session.getWordRange(t.row,t.column),r=n.session.getTextRange(o);if(n.session.tokenRe.lastIndex=0,n.session.tokenRe.test(r)){var s="\x01\x01",a=r+" "+s;i.value=a,i.setSelectionRange(r.length,r.length+1),i.setSelectionRange(0,0),i.setSelectionRange(0,r.length);var l=!1;h.addListener(i,"keydown",function c(){h.removeListener(i,"keydown",c),l=!0}),n.textInput.setInputHandler(function(e){if(e==a)return"";if(0===e.lastIndexOf(a,0))return e.slice(a.length);if(e.substr(i.selectionEnd)==a)return e.slice(0,-a.length);if(e.slice(-2)==s){var t=e.slice(0,-2);if(" "==t.slice(-1))return l?t.substring(0,i.selectionEnd):(t=t.slice(0,-1),n.session.replace(o,t),"")}return e})}}};var n=e("../editor").Editor;e("../config").defineOptions(n.prototype,"editor",{spellcheck:{set:function(e){this.textInput.getElement().spellcheck=!!e,e?this.on("nativecontextmenu",t.contextMenuHandler):this.removeListener("nativecontextmenu",t.contextMenuHandler)},value:!0}})}),ace.require(["ace/ext/spellcheck"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/split",[],function(e,t){"use strict";var n=e("./lib/oop"),i=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),o=e("./editor").Editor,r=e("./virtual_renderer").VirtualRenderer,s=e("./edit_session").EditSession,a=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){n.implement(this,i),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new r(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(t){this.$editors.forEach(function(e){e.setTheme(t)})},this.setKeyboardHandler=function(t){this.$editors.forEach(function(e){e.setKeyboardHandler(t)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(t){this.$fontSize=t,this.forEach(function(e){e.setFontSize(t)})},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(t,e){var n;return n=null==e?this.$cEditor:this.$editors[e],this.$editors.some(function(e){return e.session===t})&&(t=this.$cloneSession(t)),n.setSession(t),t},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var i=t/this.$splits,o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=i+"px",e.container.style.top="0px",e.container.style.left=o*i+"px",e.container.style.height=n+"px",e.resize();else{var r=n/this.$splits;for(o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=t+"px",e.container.style.top=o*r+"px",e.container.style.left="0px",e.container.style.height=r+"px",e.resize()}}}).call(a.prototype),t.Split=a}),ace.define("ace/ext/split",[],function(e,t,n){"use strict";n.exports=e("../split")}),ace.require(["ace/ext/split"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/static_highlight",[],function(e,t,n){"use strict";function i(e){this.type=e,this.style={},this.textContent=""}var g=e("../edit_session").EditSession,o=e("../layer/text").Text,f=".ace_static_highlight {font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;font-size: 12px;white-space: pre-wrap}.ace_static_highlight .ace_gutter {width: 2em;text-align: right;padding: 0 3px 0 0;margin-right: 3px;contain: none;}.ace_static_highlight.ace_show_gutter .ace_line {padding-left: 2.6em;}.ace_static_highlight .ace_line { position: relative; }.ace_static_highlight .ace_gutter-cell {-moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none;top: 0;bottom: 0;left: 0;position: absolute;}.ace_static_highlight .ace_gutter-cell:before {content: counter(ace_line, decimal);counter-increment: ace_line;}.ace_static_highlight {counter-reset: ace_line;}",u=e("../config"),d=e("../lib/dom"),r=e("../lib/lang").escapeHTML;i.prototype.cloneNode=function(){return this},i.prototype.appendChild=function(e){this.textContent+=e.toString()},i.prototype.toString=function(){var e=[];if("fragment"!=this.type){e.push("<",this.type),this.className&&e.push(" class='",this.className,"'");var t=[];for(var n in this.style)t.push(n,":",this.style[n]);t.length&&e.push(" style='",t.join(""),"'"),e.push(">")}return this.textContent&&e.push(this.textContent),"fragment"!=this.type&&e.push("</",this.type,">"),e.join("")};var p={createTextNode:function(e){return r(e)},createElement:function(e){return new i(e)},createFragment:function(){return new i("fragment")}},m=function(){this.config={},this.dom=p};m.prototype=o.prototype;var v=function(s,e,a){var t=s.className.match(/lang-(\w+)/),n=e.mode||t&&"ace/mode/"+t[1];if(!n)return!1;var i=e.theme||"ace/theme/textmate",o="",l=[];if(s.firstElementChild)for(var r=0,c=0;c<s.childNodes.length;c++){var h=s.childNodes[c];3==h.nodeType?(r+=h.data.length,o+=h.data):l.push(r,h)}else o=s.textContent,e.trim&&(o=o.trim());v.render(o,n,i,e.firstLineNumber,!e.showGutter,function(e){d.importCssString(e.css,"ace_highlight"),s.innerHTML=e.html;for(var t=s.firstChild.firstChild,n=0;n<l.length;n+=2){var i=e.session.doc.indexToPosition(l[n]),o=l[n+1],r=t.children[i.row];r&&r.appendChild(o)}a&&a()})};v.render=function(t,n,i,o,r,s){function a(){var e=v.renderSync(t,n,i,o,r);return s?s(e):e}var l,c=1,h=g.prototype.$modes;return"string"==typeof i&&(c++,u.loadModule(["theme",i],function(e){i=e,--c||a()})),n&&"object"==typeof n&&!n.getTokenizer&&(n=(l=n).path),"string"==typeof n&&(c++,u.loadModule(["mode",n],function(e){h[n]&&!l||(h[n]=new e.Mode(l)),n=h[n],--c||a()})),--c||a()},v.renderSync=function(e,t,n,i,o){i=parseInt(i||1,10);var r=new g("");r.setUseWorker(!1),r.setMode(t);var s=new m;s.setSession(r),Object.keys(s.$tabStrings).forEach(function(e){if("string"==typeof s.$tabStrings[e]){var t=p.createFragment();t.textContent=s.$tabStrings[e],s.$tabStrings[e]=t}}),r.setValue(e);var a=r.getLength(),l=p.createElement("div");l.className=n.cssClass;var c=p.createElement("div");c.className="ace_static_highlight"+(o?"":" ace_show_gutter"),c.style["counter-reset"]="ace_line "+(i-1);for(var h=0;h<a;h++){var u=p.createElement("div");if(u.className="ace_line",!o){var d=p.createElement("span");d.className="ace_gutter ace_gutter-cell",d.textContent="",u.appendChild(d)}s.$renderLine(u,h,!1),u.textContent+="\n",c.appendChild(u)}return l.appendChild(c),{css:f+n.cssText,html:l.toString(),session:r}},n.exports=v,n.exports.highlight=v}),ace.require(["ace/ext/static_highlight"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/statusbar",[],function(e,t){"use strict";var i=e("../lib/dom"),o=e("../lib/lang"),n=function(e,t){this.element=i.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",t.appendChild(this.element);var n=o.delayedCall(function(){this.updateStatus(e)}.bind(this)).schedule.bind(null,100);e.on("changeStatus",n),e.on("changeSelection",n),e.on("keyboardActivity",n)};(function(){this.updateStatus=function(e){function t(e,t){e&&n.push(e,t||"|")}var n=[];t(e.keyBinding.getStatusText(e)),e.commands.recording&&t("REC");var i=e.selection,o=i.lead;if(!i.isEmpty()){var r=e.getSelectionRange();t("("+(r.end.row-r.start.row)+":"+(r.end.column-r.start.column)+")"," ")}t(o.row+":"+o.column," "),i.rangeCount&&t("["+i.rangeCount+"]"," "),n.pop(),this.element.textContent=n.join("")}}).call(n.prototype),t.StatusBar=n}),ace.require(["ace/ext/statusbar"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/theme/textmate",[],function(e,t){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/ext/textarea",[],function(e,p,t){"use strict";function u(e,t){for(var n in t)e.style[n]=t[n]}function d(i,t){if("textarea"!=i.type)throw new Error("Textarea required!");var e=i.parentNode,o=document.createElement("div"),n=function(){var t="position:relative;";["margin-top","margin-left","margin-right","margin-bottom"].forEach(function(e){t+=e+":"+s(i,o,e)+";"});var e=s(i,o,"width")||i.clientWidth+"px",n=s(i,o,"height")||i.clientHeight+"px";t+="height:"+n+";width:"+e+";",t+="display:inline-block;",o.setAttribute("style",t)};for(m.addListener(window,"resize",n),n(),e.insertBefore(o,i.nextSibling);e!==document;){if("FORM"===e.tagName.toUpperCase()){var r=e.onsubmit;e.onsubmit=function(e){i.value=t(),r&&r.call(this,e)};break}e=e.parentNode}return o}function g(n,e,i,t,o){function r(e){return"true"===e||1==e}n.getSession(),n.renderer;return n.setDisplaySettings=function(e){null==e&&(e="none"==i.style.display),e?(i.style.display="block",i.hideButton.focus(),n.on("focus",function t(){n.removeListener("focus",t),i.style.display="none"})):n.focus()},n.$setOption=n.setOption,n.$getOption=n.getOption,n.setOption=function(e,t){switch(e){case"mode":n.$setOption("mode","ace/mode/"+t);break;case"theme":n.$setOption("theme","ace/theme/"+t);break;case"keybindings":switch(t){case"vim":n.setKeyboardHandler("ace/keyboard/vim");break;case"emacs":n.setKeyboardHandler("ace/keyboard/emacs");break;default:n.setKeyboardHandler(null)}break;case"wrap":case"fontSize":n.$setOption(e,t);break;default:n.$setOption(e,r(t))}},n.getOption=function(e){switch(e){case"mode":return n.$getOption("mode").substr("ace/mode/".length);case"theme":return n.$getOption("theme").substr("ace/theme/".length);case"keybindings":var t=n.getKeyboardHandler();switch(t&&t.$id){case"ace/keyboard/vim":return"vim";case"ace/keyboard/emacs":return"emacs";default:return"ace"}break;default:return n.$getOption(e)}},n.setOptions(o),n}function f(e,t,n){function i(e,t,n,i){if(n){for(var o in e.push("<select title='"+t+"'>"),n)e.push("<option value='"+o+"' "),i==o&&e.push(" selected "),e.push(">",n[o],"</option>");e.push("</select>")}else e.push("<input type='checkbox' title='",t,"' ",i+""=="true"?"checked='true'":"","'></input>")}var o=null,r={mode:"Mode:",wrap:"Soft Wrap:",theme:"Theme:",fontSize:"Font Size:",showGutter:"Display Gutter:",keybindings:"Keyboard",showPrintMargin:"Show Print Margin:",useSoftTabs:"Use Soft Tabs:",showInvisibles:"Show Invisibles"},s={mode:{text:"Plain",javascript:"JavaScript",xml:"XML",html:"HTML",css:"CSS",scss:"SCSS",python:"Python",php:"PHP",java:"Java",ruby:"Ruby",c_cpp:"C/C++",coffee:"CoffeeScript",json:"json",perl:"Perl",clojure:"Clojure",ocaml:"OCaml",csharp:"C#",haxe:"haXe",svg:"SVG",textile:"Textile",groovy:"Groovy",liquid:"Liquid",Scala:"Scala"},theme:{clouds:"Clouds",clouds_midnight:"Clouds Midnight",cobalt:"Cobalt",crimson_editor:"Crimson Editor",dawn:"Dawn",gob:"Green on Black",eclipse:"Eclipse",idle_fingers:"Idle Fingers",kr_theme:"Kr Theme",merbivore:"Merbivore",merbivore_soft:"Merbivore Soft",mono_industrial:"Mono Industrial",monokai:"Monokai",pastel_on_dark:"Pastel On Dark",solarized_dark:"Solarized Dark",solarized_light:"Solarized Light",textmate:"Textmate",twilight:"Twilight",vibrant_ink:"Vibrant Ink"},showGutter:o,fontSize:{"10px":"10px","11px":"11px","12px":"12px","14px":"14px","16px":"16px"},wrap:{off:"Off",40:"40",80:"80",free:"Free"},keybindings:{ace:"ace",vim:"vim",emacs:"emacs"},showPrintMargin:o,useSoftTabs:o,showInvisibles:o},a=[];for(var l in a.push("<table><tr><th>Setting</th><th>Value</th></tr>"),p.defaultOptions)a.push("<tr><td>",r[l],"</td>"),a.push("<td>"),i(a,l,s[l],n.getOption(l)),a.push("</td></tr>");a.push("</table>"),e.innerHTML=a.join("");for(var c=function(e){var t=e.currentTarget;n.setOption(t.title,t.value)},h=function(e){var t=e.currentTarget;n.setOption(t.title,t.checked)},u=e.getElementsByTagName("select"),d=0;d<u.length;d++)u[d].onchange=c;var g=e.getElementsByTagName("input");for(d=0;d<g.length;d++)g[d].onclick=h;var f=document.createElement("input");f.type="button",f.value="Hide",m.addListener(f,"click",function(){n.setDisplaySettings(!1)}),e.appendChild(f),e.hideButton=f}var m=e("../lib/event"),v=e("../lib/useragent"),w=(e("../lib/net"),e("../ace"));e("../theme/textmate"),t.exports=p=w;var s=function(e,t,n){var i=e.style[n];return i||(i=window.getComputedStyle?window.getComputedStyle(e,"").getPropertyValue(n):e.currentStyle[n]),i&&"auto"!=i&&"intrinsic"!=i||(i=t.style[n]),i};p.transformTextarea=function(e,t){var n,i=e.autofocus||document.activeElement==e,o=d(e,function(){return n.getValue()});e.style.display="none",o.style.background="white";var r=document.createElement("div");u(r,{top:"0px",left:"0px",right:"0px",bottom:"0px",border:"1px solid gray",position:"absolute"}),o.appendChild(r);var s=document.createElement("div");u(s,{position:"absolute",right:"0px",bottom:"0px",cursor:"nw-resize",border:"solid 9px",borderColor:"lightblue gray gray #ceade6",zIndex:101});var a=document.createElement("div"),l={top:"0px",left:"20%",right:"0px",bottom:"0px",position:"absolute",padding:"5px",zIndex:100,color:"white",display:"none",overflow:"auto",fontSize:"14px",boxShadow:"-5px 2px 3px gray"};v.isOldIE?l.backgroundColor="#333":l.backgroundColor="rgba(0, 0, 0, 0.6)",u(a,l),o.appendChild(a),t=t||p.defaultOptions;var c=w.edit(r);(n=c.getSession()).setValue(e.value||e.innerHTML),i&&c.focus(),o.appendChild(s),g(c,r,a,w,t),f(a,s,c);var h="";return m.addListener(s,"mousemove",function(e){var t=this.getBoundingClientRect();e.clientX-t.left+(e.clientY-t.top)<(t.width+t.height)/2?(this.style.cursor="pointer",h="toggle"):(h="resize",this.style.cursor="nw-resize")}),m.addListener(s,"mousedown",function(e){if(e.preventDefault(),"toggle"!=h){o.style.zIndex=1e5;var t=o.getBoundingClientRect(),n=t.width+t.left-e.clientX,i=t.height+t.top-e.clientY;m.capture(s,function(e){o.style.width=e.clientX-t.left+n+"px",o.style.height=e.clientY-t.top+i+"px",c.resize()},function(){})}else c.setDisplaySettings()}),c},p.defaultOptions={mode:"javascript",theme:"textmate",wrap:"off",fontSize:"12px",showGutter:"false",keybindings:"ace",showPrintMargin:"false",useSoftTabs:"true",showInvisibles:"false"}}),ace.require(["ace/ext/textarea"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/themelist",[],function(e,i){"use strict";var t=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["Xcode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Dracula","","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Nord Dark","nord_dark","dark"],["One Dark","one_dark","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];i.themesByName={},i.themes=t.map(function(e){var t=e[1]||e[0].replace(/ /g,"_").toLowerCase(),n={caption:e[0],theme:"ace/theme/"+t,isDark:"dark"==e[2],name:t};return i.themesByName[t]=n})}),ace.require(["ace/ext/themelist"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/whitespace",[],function(e,i){"use strict";var v=e("../lib/lang");i.$detectIndentation=function(e){function t(e){for(var t=0,n=e;n<i.length;n+=e)t+=i[n]||0;return t}for(var i=[],n=[],o=0,r=0,s=Math.min(e.length,1e3),a=0;a<s;a++){var l=e[a];if(/^\s*[^*+\-\s]/.test(l)){if("\t"==l[0])o++,r=-Number.MAX_VALUE;else{var c=l.match(/^ */)[0].length;if(c&&"\t"!=l[c]){var h=c-r;!(0<h)||r%h||c%h||(n[h]=(n[h]||0)+1),i[c]=(i[c]||0)+1}r=c}for(;a<s&&"\\"==l[l.length-1];)l=e[a++]}}var u=n.reduce(function(e,t){return e+t},0),d={score:0,length:0},g=0;for(a=1;a<12;a++){var f=t(a);1==a?(g=f,f=i[1]?.9:.8,i.length||(f=0)):f/=g,n[a]&&(f+=n[a]/u),f>d.score&&(d={score:f,length:a})}if(d.score&&1.4<d.score)var p=d.length;return g+1<o?((1==p||g<o/4||d.score<1.8)&&(p=undefined),{ch:"\t",length:p}):o+1<g?{ch:" ",length:p}:void 0},i.detectIndentation=function(e){var t=e.getLines(0,1e3),n=i.$detectIndentation(t)||{};return n.ch&&e.setUseSoftTabs(" "==n.ch),n.length&&e.setTabSize(n.length),n},i.trimTrailingSpace=function(e,t){var n=e.getDocument(),i=n.getAllLines(),o=t&&t.trimEmpty?-1:0,r=[],s=-1;t&&t.keepCursorPosition&&(e.selection.rangeCount?e.selection.rangeList.ranges.forEach(function(e,t,n){var i=n[t+1];i&&i.cursor.row==e.cursor.row||r.push(e.cursor)}):r.push(e.selection.getCursor()),s=0);for(var a=r[s]&&r[s].row,l=0,c=i.length;l<c;l++){var h=i[l],u=h.search(/\s+$/);l==a&&(u<r[s].column&&o<u&&(u=r[s].column),a=r[++s]?r[s].row:-1),o<u&&n.removeInLine(l,u,h.length)}},i.convertIndentation=function(e,t,n){var i=e.getTabString()[0],o=e.getTabSize();n||(n=o),t||(t=i);for(var r="\t"==t?t:v.stringRepeat(t,n),s=e.doc,a=s.getAllLines(),l={},c={},h=0,u=a.length;h<u;h++){var d=a[h].match(/^\s*/)[0];if(d){var g=e.$getStringScreenWidth(d)[0],f=Math.floor(g/o),p=g%o,m=l[f]||(l[f]=v.stringRepeat(r,f));(m+=c[p]||(c[p]=v.stringRepeat(" ",p)))!=d&&(s.removeInLine(h,0,d.length),s.insertInLine({row:h,column:0},m))}}e.setTabSize(n),e.setUseSoftTabs(" "==t)},i.$parseStringArg=function(e){var t={};/t/.test(e)?t.ch="\t":/s/.test(e)&&(t.ch=" ");var n=e.match(/\d+/);return n&&(t.length=parseInt(n[0],10)),t},i.$parseArg=function(e){return e?"string"==typeof e?i.$parseStringArg(e):"string"==typeof e.text?i.$parseStringArg(e.text):e:{}},i.commands=[{name:"detectIndentation",description:"Detect indentation from content",exec:function(e){i.detectIndentation(e.session)}},{name:"trimTrailingSpace",description:"Trim trailing whitespace",exec:function(e,t){i.trimTrailingSpace(e.session,t)}},{name:"convertIndentation",description:"Convert indentation to ...",exec:function(e,t){var n=i.$parseArg(t);i.convertIndentation(e.session,n.ch,n.length)}},{name:"setIndentation",description:"Set indentation",exec:function(e,t){var n=i.$parseArg(t);n.length&&e.session.setTabSize(n.length),n.ch&&e.session.setUseSoftTabs(" "==n.ch)}}]}),ace.require(["ace/ext/whitespace"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)});var GollumTagStart={token:"support.function",regex:"\\[\\[[^\\]]*\\]\\]",next:"start"},UMLBlock=[{token:"support.function",regex:"^\\@enduml$",next:"start"},{defaultToken:"support.function"}],UMLStart={token:"support.function",regex:"^(?:[ \\t]*)\\@startuml$",next:"umlblock"},GithubCodeBlock=[{token:"support.function",regex:".*",onMatch:function(e,t,n){var i=n[2][0],o=n[2][1],r=/^( {0,3})(~~[~]+|```)\s*$/.exec(e);return r&&r[2].length>=i&&r[2].charAt(0)==o?(n.splice(0,3),this.next=n.shift()):this.next="",this.token}},{defaultToken:"support.function"}],startCodeBlockMatch=function(e,t,n){var i=new RegExp(this.regex).exec(e);return n.unshift("githubblock",[],[i[2].length,i[2].charAt(0)],t),this.token},GollumCodeStart={token:"support.function",regex:"^( {0,3})(```)[^`]*$",onMatch:startCodeBlockMatch,next:"githubblock"},MarkdownCodeStart={token:"support.function",regex:"^( {0,3})(~~[~]+)[^`~]*$",onMatch:startCodeBlockMatch,next:"githubblock"};ace.define("GollumRstHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/rst_highlight_rules").RSTHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumAsciidocHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/asciidoc_highlight_rules").AsciidocHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumTextileHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/textile_highlight_rules").TextileHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumTextHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/text_highlight_rules").TextHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumRdocHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/rdoc_highlight_rules").RDocHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumMarkdownHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/markdown_highlight_rules").MarkdownHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.$rules.start.unshift(MarkdownCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),function(e){var r={asciidoc:{mode:"asciidoc",highlighter:"GollumAsciidocHighlightRules"},creole:{mode:"text",highlighter:"GollumTextHighlightRules"},markdown:{mode:"markdown",highlighter:"GollumMarkdownHighlightRules"},mediawiki:{mode:"text",highlighter:"GollumTextHighlightRules"},bib:{mode:"latex"},org:{mode:"text",highlighter:"GollumTextHighlightRules"},rst:{mode:"rst",highlighter:"GollumRstHighlightRules"},txt:{mode:"text"},pod:{mode:"text",highlighter:"GollumTextHighlightRules"},rdoc:{mode:"rdoc",highlighter:"GollumRdocHighlightRules"},textile:{mode:"textile",highlighter:"GollumTextileHighlightRules"}};e.getEditorMode=function(e){var t=null;if(t=r[e]){var n=t.mode,i=t.highlighter;if(i){var o=new(ace.require("ace/mode/"+n).Mode);return o.HighlightRules=ace.require(i).GollumHighlightRules,o}return"ace/mode/"+n}return null}}(jQuery),function(v){function s(e){return new RegExp("^[^"+"A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufdfe-\ufe6f\ufefd-\uffff"+"]*["+"\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc"+"]").test(e)}function a(e){window.ace_editor.session.$bidiHandler.$isRtl=e,window.ace_editor.session.$bidiHandler.updateBidiMap(),window.ace_editor.renderer.updateFull()}function l(){e&&clearTimeout(e),v("#gollum-saved-msg").text("Saving..."),e=setTimeout(function(){localStorage.setItem(u,window.ace_editor.getSession().getValue()),v("#gollum-editor-header, #gollum-editor-footer, #gollum-editor-sidebar").each(function(e,t){var n=u+t.id.replace("gollum-editor-","_");localStorage.setItem(n,t.value)}),v("#gollum-saved-msg").text("Saved recovery text")},2e3)}var c={MarkupType:"markdown",EditorMode:"code",NewFile:!1,HasFunctionBar:!0,Debug:!1,NoDefinitionsFor:[]},h={},e=null,u="gollum_autorecover_"+window.location;v.GollumEditor=function(e){function o(i,o){var e=new FormData;e.append("file",i),v.ajax({url:routePath("upload_file"),data:e,cache:!1,contentType:!1,processData:!1,type:"POST",success:function(){o.removeClass("uploading");var e=i.name.split(".").pop().toLowerCase(),t=["jpg","jpeg","tif","tiff","png","gif","svg","bmp"];if(uploadDest=uploadDest.replace(/%20/g," "),-1<t.indexOf(e))var n="[[/"+uploadDest+"/"+i.name+"]]";else n="[["+i.name+"|/"+uploadDest+"/"+i.name+"]]";window.ace_editor.insert(n)},error:function(e,t,n){409==e.status?alert("This file already exists."):alert("Error uploading file: "+t+" "+n),o.removeClass("uploading")}})}if(h=v.extend(c,e),v('textarea[id="gollum-editor-body"]').each(function(){var e=v(this),t=e.attr("data-markup-lang")?e.attr("data-markup-lang"):"markdown",n=v("<div>",{position:"absolute",height:e.height(),"class":e.attr("class"),id:"gollum-editor-body-ace"}).insertAfter(e);e.css("display","none");var i=ace.edit(n[0],{rtlText:!0});window.ace_editor=i;var o=localStorage.getItem(u);o&&(v("#gollum-autorecover-button").click(function(e){i.getSession().setValue(o),["header","footer","sidebar"].forEach(function(e){var t=localStorage.getItem(u+"_"+e);t&&v("#gollum-editor-"+e).val(t)}),v("#gollum-autorecover-msg")[0].hidden=!0,e.preventDefault()}),v("#gollum-autorecover-msg")[0].hidden=!1),i.setTheme("ace/theme/tomorrow"),i.setKeyboardHandler(),i.renderer.setShowGutter(!1),i.getSession().setUseWrapMode(!0),i.getSession().setValue(e.val()),i.getSession().setMode(v.getEditorMode(t)),i.getSession().on("change",function(){e.val(i.getSession().getValue()),l()}),v("#gollum-editor-header, #gollum-editor-footer, #gollum-editor-sidebar").on("change keyup paste",l),s(i.getSession().getLine(0))&&a(!0),i.commands.addCommand({name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(t){ace.config.loadModule("ace/ext/keybinding_menu",function(e){e.init(t),t.showKeyboardShortcuts()})}}),h.commands&&v.each(h.commands,function(e,t){i.commands.addCommand(t)})}),v("#gollum-editor-body-ace").resize(function(){window.ace_editor.resize()}),v("#wiki_format").change(function(){var e=v(this).val(),t=window.ace_editor;window.ace_editor.getSession().setMode(v.getEditorMode(e)),f.updateCommitMessage(e),t.focus()}),v("#keybinding").change(function(){var e=v(this).val(),t=window.ace_editor;"default"==e?t.setKeyboardHandler():"vim"==e||"emacs"==e?t.setKeyboardHandler("ace/keyboard/"+e):t.setKeyboardHandler(),t.focus()}),v("#gollum-editor-submit, #gollum-editor-cancel").click(function(){var t="gollum_autorecover_"+window.location;localStorage.removeItem(t),["header","footer","sidebar"].forEach(function(e){localStorage.removeItem(t+"_"+e)})}),w("GollumEditor loading"),g.baseEditorMarkup()){if(g.titleDisplayed()&&v("#gollum-editor-title-field").addClass("active"),g.editSummaryMarkup()&&(v.GollumEditor.Placeholder.add(v("#gollum-editor-edit-summary input")),v('#gollum-editor form[name="gollum-editor"]').submit(function(e){e.preventDefault(),w("submitting"),v(this).unbind("submit"),v(this).submit()})), g.collapsibleInputs()&&v("#gollum-editor .collapsed button.collapsable, #gollum-editor .expanded button.collapsable").click(function(e){e.preventDefault(),v(this).parent().toggleClass("expanded"),v(this).parent().toggleClass("collapsed"),buttons=v(this).parent().children("button"),hidden_button=buttons.filter(":hidden")[0],shown_button=buttons.not(":hidden")[0],hidden_button.hidden=!1,shown_button.hidden=!0}),g.previewButton())v("#gollum-editor #gollum-editor-preview").click(function(){var e=v("#gollum-editor form").attr("action"),t=v(v("#gollum-editor form").get(0));t.attr("action",this.href||routePath("preview")),t.attr("target","_blank");var n=window.location.pathname.split("/");return t.attr("page",n[n.length-1]||""),t.submit(),t.attr("action",e),t.removeAttr("target"),!1});if(g.functionBar()){var t=v("#gollum-editor-body").attr("data-markup-lang");t&&(h.MarkupType=t),d.setActiveLanguage(h.MarkupType),g.formatSelector()&&f.init(v("#wiki_format")),g.dir()&&v("#function-text-direction").click(function(e){e.preventDefault(),a(!window.ace_editor.session.$bidiHandler.$isRtl)}),g.help()&&(v("#gollum-editor-help").hide(),v("#gollum-editor-help").removeClass("jaws"))}if(h.section&&v.markupSupportsEditableSections(h.MarkupType)){var n=v.findSection(h.section,d.getDefinitionFor("gollum-helpers"));n&&(window.ace_editor.gotoLine(n+1,0,animate=!1),window.ace_editor.scrollToLine(n,center=!1,animate=!1),window.ace_editor.focus())}if(g.dragDropUpload()){var r=v("#gollum-editor-body-ace"),i=v("#gollum-editor-body-ace")[0];i.ondragover=function(){return r.addClass("dragging"),!1},i.ondragleave=function(){return r.removeClass("dragging"),!1},i.ondrop=function(e){return w("dropped file"),e.preventDefault(),r.removeClass("dragging").addClass("uploading"),o(e.dataTransfer.files[0],r),!1},i.onpaste=function(e){var t=e.clipboardData||window.clipboardData,n=t&&t.items,i=n&&Array.from(n).filter(function(e){return"file"===e.kind});return!(i&&0<i.length)||(i.forEach(function(e){o(e.getAsFile(),r)}),!1)}}}},v.GollumEditor.defineLanguage=function(e,t){"object"==typeof t?d.define(e,t):w("GollumEditor.defineLanguage: definition for "+e+" is not an object")};var w=function(e){h.Debug&&"undefined"!=typeof console&&console.log(e)},d={_ACTIVE_LANG:"",_LOADED_LANGS:[],_LANG:{},define:function(e,t){if(d._ACTIVE_LANG=e,d._LOADED_LANGS.push(e),"object"==typeof v.GollumEditor.WikiLanguage){var n={};v.extend(n,v.GollumEditor.WikiLanguage,t),d._LANG[e]=n}else d._LANG[e]=t},getActiveLanguage:function(){return d._ACTIVE_LANG},setActiveLanguage:function(e){function t(t){return function(){var e=d.getDefinitionFor(t);"object"==typeof e&&n.executeAction(e)}}null!=d._ACTIVE_LANG&&d._ACTIVE_LANG.length<=0&&f.updateCommitMessage(e),d.getHookFunctionFor("deactivate")&&d.getHookFunctionFor("deactivate")(),d.isLoadedFor(e)?(d._ACTIVE_LANG=e,n.refresh()):(d._ACTIVE_LANG=null,g.functionBar()&&n.refresh(),d.isValid()&&g.formatSelector()&&f.updateSelected()),d.getHookFunctionFor("activate")&&d.getHookFunctionFor("activate")(),window.ace_editor.commands.addCommand({name:"header-1",bindKey:{win:"Ctrl-1",mac:"Command-1"},exec:t("function-h1")}),window.ace_editor.commands.addCommand({name:"header-2",bindKey:{win:"Ctrl-2",mac:"Command-2"},exec:t("function-h2")}),window.ace_editor.commands.addCommand({name:"header-3",bindKey:{win:"Ctrl-3",mac:"Command-3"},exec:t("function-h3")}),window.ace_editor.commands.addCommand({name:"bold-text",bindKey:{win:"Ctrl-b",mac:"Command-b"},exec:t("function-bold")}),window.ace_editor.commands.addCommand({name:"italic-text",bindKey:{win:"Ctrl-i",mac:"Command-i"},exec:t("function-italic")})},getHookFunctionFor:function(e,t){return t||(t=d._ACTIVE_LANG),d.isLoadedFor(t)&&d._LANG[t][e]&&"function"==typeof d._LANG[t][e]?d._LANG[t][e]:null},getDefinitionFor:function(e,t){return t||(t=d._ACTIVE_LANG),d.isLoadedFor(t)&&d._LANG[t][e]&&"object"==typeof d._LANG[t][e]?d._LANG[t][e]:null},isLoadedFor:function(e){if(0===d._LOADED_LANGS.length)return!1;for(var t=0;t<d._LOADED_LANGS.length;t++)if(d._LOADED_LANGS[t]==e)return!0;return!1},isValid:function(){return d._ACTIVE_LANG&&"object"==typeof d._LANG[d._ACTIVE_LANG]}},g={baseEditorMarkup:function(){return v("#gollum-editor").length&&v("#gollum-editor-body").length},collapsibleInputs:function(){return v("#gollum-editor .collapsed, #gollum-editor .expanded").length},formatSelector:function(){return v("#wiki_format").length},functionBar:function(){return h.HasFunctionBar&&v("#gollum-editor-function-bar").length},ff4Environment:function(){return new RegExp(/Firefox\/4.0b/).test(navigator.userAgent)},editSummaryMarkup:function(){return 0<v("input#gollum-editor-message-field").length},help:function(){return v("#gollum-editor #gollum-editor-help").length&&v("#gollum-editor #function-help").length},dir:function(){return v("#gollum-editor #function-text-direction").length},previewButton:function(){return v("#gollum-editor #gollum-editor-preview").length},titleDisplayed:function(){return h.NewFile},dragDropUpload:function(){return v("#gollum-editor.uploads-allowed").length}},n={isActive:!1,activate:function(){w("Activating function bar"),v("#gollum-editor-function-bar button.function-button").each(function(){d.getDefinitionFor(v(this).attr("id"))?(v(this).click(n.evtFunctionButtonClick),v(this).attr("disabled",!1)):["function-help","function-text-direction"].includes(v(this).attr("id"))||v(this).attr("disabled",!0)}),v("#gollum-editor-function-bar").addClass("active"),n.isActive=!0},deactivate:function(){v("#gollum-editor-function-bar button.function-button").not("#function-text-direction").unbind("click"),v("#gollum-editor-function-bar").removeClass("active"),n.isActive=!1},evtFunctionButtonClick:function(e){e.preventDefault();var t=d.getDefinitionFor(v(this).attr("id"));"object"==typeof t&&n.executeAction(t)},executeAction:function(e){var t=window.ace_editor,n=t.getValue(),i=!1,o=!1,r=t.getSelectionRange(),s=t.getSelectedText(),a=s.length,l=!1;if(""==s)if(e.whole_line&&1==e.whole_line){l=!0;var c=r.start.row;s=t.session.getLine(c),r=new(ace.require("ace/range").Range)(c,0,c,s.length)}else e.break_line&&1==e.break_line&&(o=i=!0);else e.break_line&&1==e.break_line&&(o=i=!0);var h=s;if(e.exec&&"function"==typeof e.exec)e.exec(n,s,v("#gollum-editor-body"),r);else{var u=/([^\n]+)/gi;if(e.search&&"object"==typeof e.search&&(w("Replacing search Regex"),u=null,u=new RegExp(e.search),w(u)),w('repText is "'+h+'"'),e.replace&&"string"==typeof e.replace){w("Running replacement - using "+e.replace);var d=e.replace;h=(h=(h=escape(h)).replace(u,d)).replace(/\$[\d]/g,""),""===(h=unescape(h))&&(w("Search string is empty"),h=d.replace(/\$[\d]/g,""));var g=undefined;if(0==l){repPosition=d.indexOf("$1"),-1==repPosition&&(repPosition=Math.floor(d.length/2));var f=d.substring(0,repPosition),p=f.split("\n").length-1,m=repPosition;0<p&&(m-=f.lastIndexOf("\n")),g=[p,m+=a]}}e.append&&"string"==typeof e.append&&(h+=e.append),h&&v.GollumEditor.replaceSelection(h,i,o,r,g)}},isShown:function(){return v("#gollum-editor-function-bar").is(":visible")},refresh:function(){g.functionBar()&&(w("Refreshing function bar"),d.isValid()?(n.deactivate(),n.activate(),o&&o.setActiveHelp(d.getActiveLanguage())):(w("Language definition is invalid."),n.isShown()&&n.deactivate(),o.isShown()&&o.hide()))}},f={$_SELECTOR:null,evtChangeFormat:function(){var e=v(this).val();f.updateCommitMessage(e),d.setActiveLanguage(e)},updateCommitMessage:function(e){var t=document.getElementById("gollum-editor-message-field"),n=t.value;/^(?:created|updated)/i.test(n)&&(t.value=n.replace(/\([^\)]*\)$/,"("+e+")"))},init:function(e){w("Initializing format selector"),f.$_SELECTOR&&"object"==typeof f.$_SELECTOR&&f.$_SELECTOR.unbind("change"),f.$_SELECTOR=e,f.updateSelected(),f.$_SELECTOR.change(f.evtChangeFormat)},updateSelected:function(){var e=d.getActiveLanguage();f.$_SELECTOR.val(e)}},o={_ACTIVE_HELP:"",_LOADED_HELP_LANGS:[],_HELP:{},define:function(e,t){o.isValidHelpFormat(t)?(w("help is a valid format"),o._ACTIVE_HELP_LANG=e,o._LOADED_HELP_LANGS.push(e),o._HELP[e]=t,v("#function-help").length&&(v("#function-help").attr("disabled")&&v("#function-help").attr("disabled",!1),v("#function-help").unbind("click"),v("#function-help").click(o.evtHelpButtonClick),o.generateHelpMenuFor(e),v("#gollum-editor-help").length&&void 0!==v("#gollum-editor-help").attr("data-autodisplay")&&"true"===v("#gollum-editor-help").attr("data-autodisplay")&&o.show())):v("#function-help").length&&v("#function-help").attr("disabled",!0)},generateHelpMenuFor:function(e){if(!o._HELP[e])return w("Help is not defined for "+e.toString()),!1;var t=o._HELP[e];v("#gollum-editor-help-parent").html(""),v("#gollum-editor-help-list").html(""),v("#gollum-editor-help-content").html("");for(var n=0;n<t.length&&"object"==typeof t[n];n++){var i=v('<li><a href="#" rel="'+n+'">'+t[n].menuName+"</a></li>");v("#gollum-editor-help-parent").append(i),0===n&&i.children("a").addClass("selected"),i.children("a").click(o.evtParentMenuClick)}o.generateSubMenu(t[0],0),v(v("#gollum-editor-help-list li a").get(0)).click()},generateSubMenu:function(e,t){v("#gollum-editor-help-list").html(""),v("#gollum-editor-help-content").html("");for(var n=0;n<e.content.length&&"object"==typeof e.content[n];n++){var i=v('<li><a href="#" rel="'+t+":"+n+'">'+e.content[n].menuName+"</a></li>");v("#gollum-editor-help-list").append(i),i.children("a").click(o.evtSubMenuClick)}},hide:function(){v.browser.msie?v("#gollum-editor-help").css("display","none"):v("#gollum-editor-help").animate({opacity:0},200,function(){v("#gollum-editor-help").animate({height:"hide"},200)})},show:function(){v.browser.msie?v("#gollum-editor-help").css("display","block"):v("#gollum-editor-help").animate({height:"show"},200,function(){v("#gollum-editor-help").animate({opacity:1},300)})},showHelpFor:function(e,t){var n=o._HELP[o._ACTIVE_HELP_LANG][e].content[t].data;v("#gollum-editor-help-content").html(n)},isLoadedFor:function(e){for(var t=0;t<o._LOADED_HELP_LANGS.length;t++)if(e==o._LOADED_HELP_LANGS[t])return!0;return!1},isShown:function(){return v("#gollum-editor-help").is(":visible")},isValidHelpFormat:function(e){return"object"==typeof e&&e.length&&"string"==typeof e[0].menuName&&"object"==typeof e[0].content&&e[0].content.length},setActiveHelp:function(e){o.isLoadedFor(e)?(o._ACTIVE_HELP_LANG=e,v("#function-help").length&&(v("#function-help").attr("disabled")&&v("#function-help").attr("disabled",!1),v("#function-help").unbind("click"),v("#function-help").click(o.evtHelpButtonClick),o.generateHelpMenuFor(e))):(v("#function-help").length&&v("#function-help").attr("disabled",!0),o.isShown()&&o.hide())},evtHelpButtonClick:function(e){e.preventDefault(),o.isShown()?(v("#gollum-editor-help").length&&"undefined"!==v("#gollum-editor-help").attr("data-autodisplay")&&"true"===v("#gollum-editor-help").attr("data-autodisplay")&&(v.post("/wiki/help?_method=delete"),v("#gollum-editor-help").attr("data-autodisplay","")),o.hide()):o.show()},evtParentMenuClick:function(e){if(e.preventDefault(),!v(this).hasClass("selected")){var t=v(this).attr("rel"),n=o._HELP[o._ACTIVE_HELP_LANG][t];v("#gollum-editor-help-parent li a").removeClass("selected"),v(this).addClass("selected"),o.generateSubMenu(n,t),v(v("#gollum-editor-help-list li a").get(0)).click()}},evtSubMenuClick:function(e){if(e.preventDefault(),!v(this).hasClass("selected")){var t=v(this).attr("rel").split(":");v("#gollum-editor-help-list li a").removeClass("selected"),v(this).addClass("selected"),o.showHelpFor(t[0],t[1])}}};v.GollumEditor.defineHelp=o.define,v.GollumEditor.Dialog=v.GollumDialog,v.GollumEditor.replaceSelection=function(e,t,n,i,o){var r=window.ace_editor,s=0;if(i==undefined)i=r.selection.getRange();if(1==t){var a=r.session.doc.getLine(i.start.row-1);0<i.start.column?(e="\n\n"+e,s=2):""!=a&&(e="\n"+e,s=1)}if(1==n){var l=r.session.doc.getLine(i.end.row+1);i.end.column<r.session.doc.getLine(i.end.row).length?e+="\n\n":""!=l&&(e+="\n")}r.session.replace(i,e),o!=undefined&&(totalVerticalOffset=o[0]+s+i.start.row,totalHorizontalOffset=o[1]+i.start.column,r.navigateTo(totalVerticalOffset,totalHorizontalOffset)),r.focus()},v.GollumEditor.Placeholder=v.GollumPlaceholder}(jQuery),function(r){r.constructLanguageDefinition=function(t){var n=r.extend(!0,{},r.DefaultLang,t);return Object.keys(t).forEach(function(e){"undefined"==typeof t[e]&&delete n[e]}),n};var n=function(e,t,n){r.GollumEditor.Dialog.init({title:e,fields:t,OK:function(e){r.GollumEditor.replaceSelection(n(e))}})};r.DefaultLang={"function-bold":{search:/([^\n]+)([\n\s]*)/g,replace:"**$1**$2"},"function-italic":{search:/([^\n]+)([\n\s]*)/g,replace:"_$1_$2"},"function-code":{search:/([^\n]+)([\n\s]*)/g,replace:"`$1`$2"},"function-hr":{append:"\n***\n"},"function-ul":{exec:function(e,t){for(var n="",i=t.split("\n"),o=0;o<i.length;o++)n+="* "+i[o]+"\n";n=n.substring(0,n.length-1),r.GollumEditor.replaceSelection(n,!0,!0)}},"function-ol":{line:function(e,t){return e.toString()+". "+t+"\n"},exec:function(e,t){for(var n="",i=t.split("\n"),o=0;o<i.length;o++)n+=this.line(o+1,i[o]);n=n.substring(0,n.length-1),r.GollumEditor.replaceSelection(n,!0,!0)}},"function-blockquote":{search:/(.+)([\n]?)/g,replace:"> $1$2",break_line:!0},"function-h1":{search:/(.+)([\n]?)/g,replace:"# $1$2",break_line:!0,whole_line:!0},"function-h2":{search:/(.+)([\n]?)/g,replace:"## $1$2",break_line:!0,whole_line:!0},"function-h3":{search:/(.+)([\n]?)/g,replace:"### $1$2",break_line:!0,whole_line:!0},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="["+e.text+"]("+e.href+")"),t},exec:function(e,t){n("Insert Link",[{id:"text",name:"Link Text",type:"text",defaultValue:t},{id:"href",name:"URL",type:"text"}],this.replace)}},"function-image":{replace:function(e){var t="";return e.url&&e.alt&&(t="!["+e.alt+"]("+e.url+")"),t},exec:function(e,t){n("Insert Image",[{id:"url",name:"Image Url",type:"text",defaultValue:t},{id:"alt",name:"Alt Text",type:"text"}],this.replace)}},"function-critic-accept":{exec:function(e,t){var n=t.replace(/\{\+\+(.*?)\+\+[ \t]*(\[(.*?)\])?[ \t]*\}/gm,"$1").replace(/\{--(.*?)--[ \t]*(\[(.*?)\])?[ \t]*\}/gm,"").replace(/\{~~(.*?)~>(.*?)~~\}/gm,"$2").replace(/\{\=\=(.*?)[ \t]*(\[(.*?)\])?[ \t]*\=\=\}{>>(.*?)<<\}/gm,"$1").replace(/\{>>(.*?)<<\}/gm,"");r.GollumEditor.replaceSelection(n)}},"function-critic-reject":{exec:function(e,t){var n=t.replace(/\{\+\+(.*?)\+\+[ \t]*(\[(.*?)\])?[ \t]*\}/gm,"").replace(/\{--(.*?)--[ \t]*(\[(.*?)\])?[ \t]*\}/gm,"$1").replace(/\{~~(.*?)~>(.*?)~~\}/gm,"$1").replace(/\{\=\=(.*?)[ \t]*(\[(.*?)\])?[ \t]*\=\=\}{>>(.*?)<<\}/gm,"$1").replace(/\{>>(.*?)<<\}/gm,"");r.GollumEditor.replaceSelection(n)}}}}(jQuery),function(e){var t={"function-bold":{replace:"*$1*$2"},"function-hr":undefined,"function-blockquote":{replace:"----\n$1$2\n----"},"function-h1":{replace:"= $1$2"},"function-h2":{replace:"== $1$2"},"function-h3":{replace:"=== $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t=e.href+"["+e.text+"]"),t}},"function-image":{replace:function(e){var t="";return e.url&&e.alt&&(t="image::"+e.url+"["+e.alt+"]"),t}}};e.GollumEditor.defineLanguage("asciidoc",e.constructLanguageDefinition(t));var n=[{menuName:"Text Formatting",content:[{menuName:"Headers",data:"<p>AsciiDoc headers can be written in two ways: with differing underlines or with different indentation using <code>=</code> (equals sign). AsciiDoc supports headings 1-4. The editor will automatically use the <code>=</code> notation. To create a level one header, prefix your line with one <code>=</code>. Level two headers are created with <code>==</code> and so on.</p>"},{menuName:"Bold / Italic",data:"<p>To display text as <strong>bold</strong>, wrap the text in <code>*</code> (asterisks). To display text as <em>italic</em>, wrap the text in <code>_</code> (underscores). To create <code>monospace</code> text, wrap the text in <code>`</code> (backtick)."},{menuName:"Scripts",data:"<p>Superscript and subscript is created the same way as other inline formats. To create superscript text, wrap your text in <code>^</code> (carats). To create subscript text, wrap your text in <code>~</code> (tildes).</p>"},{menuName:"Special Characters",data:"<p>AsciiDoc will automatically convert textual representations of commonly-used special characters. For example, <code>(R)</code> becomes &reg;, <code>(C)</code> becomes &copy; and <code>(TM)</code> becomes &trade;.</p>"}]},{menuName:"Blocks",content:[{menuName:"Paragraphs",data:"<p>AsciiDoc allows paragraphs to have optional titles or icons to denote special sections. To make a normal paragraph, simply add a line between blocks and a new paragraph will start. If you want to title your paragraphs, adda line prefixed by <code>.</code> (full stop). An example paragraph with optional title is displayed below:<br><br><code>.Optional Title<br><br>This is my paragraph. It is two sentences long.</code></p>"},{menuName:"Source Blocks",data:"<p>To create source blocks (long blocks of code), follow the same syntax as above but with an extra line denoting the inline source and lines of four dashes (<code>----</code>) delimiting the source block.. An example of Python source is below:<br><br><code>.python.py<br>[source,python]<br>----<br># i just wrote a comment in python<br># and maybe one more<br>----</code></p>"},{menuName:"Comment Blocks",data:"<p>Comment blocks are useful if you want to keep notes for yourself inline but do not want them displayed to the public. To create a comment block, simply wrap the paragraph in dividers with four slashes (<code>////</code>). An example comment block is below:<br><br><code>////<br>My comment block is here now<br><br>It can be multiple paragraphs. Really.<br>////</p>"},{menuName:"Quote Blocks",data:"<p>Quote blocks work much like comment blocks &mdash; simply create dividers using four underscores (<code>____</code>) around your quote. An example quote block is displayed below:<br><code>____<br>This is my quote block. Quote something nice here, otherwise there is no point in quoting.<br>____</code></p>"}]},{menuName:"Macros",content:[{menuName:"Links",data:'<p>To create links to external pages, you can simply write the URI if you want the URI to link to itself. (i.e., <code>http://github.com/</code> will automatically be parsed to <a href="javascript:void(0);">http://github.com/</a>. If you want different text to be displayed, simply append it to the end of the URI in between <code>[</code> (brackets.) For example, <code>http://github.com/[GitHub]</code> will be parsed as <a href="javascript:void(0);">GitHub</a>, with the URI pointing to <code>http://github.com</code>.</p>'},{menuName:"Images",data:"<p>Images in AsciiDoc work much like hyperlinks, but image URLs are prefixed with <code>image:</code>. For example, to link to an image at <code>images/icons/home.png</code>, write <code>image:images/icons/home.png</code>. Alt text can be added by appending the text to the URI in <code>[</code> (brackets).</p>"}]}];e.GollumEditor.defineHelp("asciidoc",n)}(jQuery),jQuery.GollumEditor.defineLanguage("bib",{}),function(e){var t={"function-italic":{replace:"//$1//$2"},"function-code":{replace:"{{{$1}}}$2"},"function-hr":{append:"\n\n----\n\n"},"function-blockquote":undefined,"function-ol":{line:function(e,t){return"# "+t+"\n"}},"function-h1":{replace:"== $1$2"},"function-h2":{replace:"=== $1$2"},"function-h3":{replace:"==== $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="[["+e.href+"|"+e.text+"]]"),t}},"function-image":{replace:function(e){var t="";return e.url&&e.alt&&(t="{{"+e.url,""!=e.alt&&(t+="|"+e.alt),t+="}}"),t}}};e.GollumEditor.defineLanguage("creole",e.constructLanguageDefinition(t))}(jQuery),function(e){var t={"gollum-helpers":{"find-header-line":function(e,t){if(t.match(/(^[=]+$)/)||t.match(/(^[-]+$)/)){var n=e-1,i=window.ace_editor.getSession().getLine(n);return 0<=n&&!/^\s+$/.test(i)?[i,n]:null}return null}}};e.GollumEditor.defineLanguage("markdown",e.constructLanguageDefinition(t));var n=[{menuName:"Block Elements",content:[{menuName:"Paragraphs &amp; Breaks",data:"<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p><p>If you want to create a line break, end a line with two or more spaces, then hit Return/Enter.</p>"},{menuName:"Headers",data:"<p>Markdown supports two header formats. The wiki editor uses the &ldquo;atx&rsquo;-style headers. Simply prefix your header text with the number of <code>#</code> characters to specify heading depth. For example: <code># Header 1</code>, <code>## Header 2</code> and <code>### Header 3</code> will be progressively smaller headers. You may end your headers with any number of hashes.</p>"},{menuName:"Blockquotes",data:"<p>Markdown creates blockquotes email-style by prefixing each line with the <code>&gt;</code>. This looks best if you decide to hard-wrap text and prefix each line with a <code>&gt;</code> character, but Markdown supports just putting <code>&gt;</code> before your paragraph.</p>"},{menuName:"Lists",data:"<p>Markdown supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number (any number will do &mdash; this is why the editor only uses one number.) To create an unordered list, you can prefix each line with <code>*</code>, <code>+</code> or <code>-</code>.</p> List items can contain multiple paragraphs, however each paragraph must be indented by at least 4 spaces or a tab."},{menuName:"Code Blocks",data:"<p>Markdown wraps code blocks in pre-formatted tags to preserve indentation in your code blocks. To create a code block, indent the entire block by at least 4 spaces or one tab. Markdown will strip the extra indentation you&rsquo;ve added to the code block.</p>"},{menuName:"Horizontal Rules",data:"Horizontal rules are created by placing three or more hyphens, asterisks or underscores on a line by themselves. Spaces are allowed between the hyphens, asterisks or underscores."}]},{menuName:"Span Elements",content:[{menuName:"Links",data:"<p>Markdown has two types of links: <strong>inline</strong> and <strong>reference</strong>. For both types of links, the text you want to display to the user is placed in square brackets. For example, if you want your link to display the text &ldquo;GitHub&rdquo;, you write <code>[GitHub]</code>.</p><p>To create an inline link, create a set of parentheses immediately after the brackets and write your URL within the parentheses. (e.g., <code>[GitHub](http://github.com/)</code>). Relative paths are allowed in inline links.</p><p>To create a reference link, use two sets of square brackets. <code>[my internal link][internal-ref]</code> will link to the internal reference <code>internal-ref</code>.</p>"},{menuName:"Emphasis",data:"<p>Asterisks (<code>*</code>) and underscores (<code>_</code>) are treated as emphasis and are wrapped with an <code>&lt;em&gt;</code> tag, which usually displays as italics in most browsers. Double asterisks (<code>**</code>) or double underscores (<code>__</code>) are treated as bold using the <code>&lt;strong&gt;</code> tag. To create italic or bold text, simply wrap your words in single/double asterisks/underscores. For example, <code>**My double emphasis text**</code> becomes <strong>My double emphasis text</strong>, and <code>*My single emphasis text*</code> becomes <em>My single emphasis text</em>.</p>"},{menuName:"Code",data:"<p>To create inline spans of code, simply wrap the code in backticks (<code>`</code>). Markdown will turn <code>`myFunction`</code> into <code>myFunction</code>.</p>"},{menuName:"Images",data:"<p>Markdown image syntax looks a lot like the syntax for links; it is essentially the same syntax preceded by an exclamation point (<code>!</code>). For example, if you want to link to an image at <code>http://github.com/unicorn.png</code> with the alternate text <code>My Unicorn</code>, you would write <code>![My Unicorn](http://github.com/unicorn.png)</code>.</p>"}]},{menuName:"Miscellaneous",content:[{menuName:"Automatic Links",data:'<p>If you want to create a link that displays the actual URL, markdown allows you to quickly wrap the URL in <code>&lt;</code> and <code>&gt;</code> to do so. For example, the link <a href="javascript:void(0);">http://github.com/</a> is easily produced by writing <code>&lt;http://github.com/&gt;</code>.</p>'},{menuName:"Escaping",data:"<p>If you want to use a special Markdown character in your document (such as displaying literal asterisks), you can escape the character with the backslash (<code>\\</code>). Markdown will ignore the character directly after a backslash."},{menuName:"Emoji",data:'<p>See the <a href="http://emojione.com/demo/" target="_blank">EmojiOne demo</a> for all available emoji. To include one, wrap the emoji name in colons and use underscores instead of spaces (e.g. :heart: or :point_up:).'}]}];e.GollumEditor.defineHelp("markdown",n)}(jQuery),function(e){var t={"function-bold":{replace:"'''$1'''$2"},"function-italic":{replace:"''$1''$2"},"function-hr":{append:"\n---\n"},"function-code":{replace:"<code>$1</code>$2"},"function-ol":{link:function(e,t){return"# "+t+"\n"}},"function-blockquote":{replace:"<blockquote>\n$1$2\n</blockquote>"},"function-h1":{replace:"= $1$2 ="},"function-h2":{replace:"== $1$2 =="},"function-h3":{replace:"=== $1$2 ==="},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="["+e.href+" | "+e.text+"]"),t}}};e.GollumEditor.defineLanguage("mediawiki",e.constructLanguageDefinition(t));var n=[{menuName:"Text Formatting",content:[{menuName:"Headers",data:"<p>MediaWiki headers are written with different indentation using <code>= Title =</code> (equals sign). MediaWiki supports headings 1-6.</p>"},{menuName:"Bold / Italic",data:"<p>To display text as <strong>bold</strong>, wrap the text in <code>'''</code>. To display text as <em>italic</em>, wrap the text in <code>''</code>. To create <code>monospace</code> text, wrap the text in <code>&lt;code&gt;&lt;/code&gt;</code>."},{menuName:"Special Characters",data:"<p>Use HTML special characters, e.g. <code>&copy;</code> or <code>&euro;</code></p>"}]},{menuName:"Blocks",content:[{menuName:"Paragraphs",data:"<p>MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <code><br /></code>.</p>"},{menuName:"Tables",data:'<p>Tables may be authored in wiki pages using either XHTML table elements directly, or using wikicode formatting to define the table. Wikitable syntax overview: <table cellpadding="5" cellspacing="0" border="1"><tr><td><pre> <code>{|</code></pre></td><td><b>table start</b></td></tr><tr><td><pre> <code>|+</code></pre></td><td>table <b>caption,</b> <i>optional;</i> only between <b>table start</b> and first <b>table row</b></td></tr><tr><td><pre> <code>|-</code></pre></td><td><b>table row,</b> <i>optional on first row</i> -- wiki engine assumes the first row</td></tr><tr><td><pre> <code>!</code></pre></td><td><b>table header</b> cell, <i>optional.</i> Consecutive <b>table header</b> cells may be added on same line separated by double marks (<code>!!</code>) or start on new lines, each with its own single mark (<code>!</code>).</td></tr><tr><td><pre> <code>|</code></pre></td><td><b>table data</b> cell, <i>required!</i> Consecutive <b>table data</b> cells may be added on same line separated by double marks (<code>||</code>) or start on new lines, each with its own single mark (<code>|</code>).</td></tr><tr><td><pre> <code>|}</code></pre></td><td><b>table end</b></td></tr></table></p>'}]},{menuName:"Macros",content:[{menuName:"Links",data:"<p>To create links to external pages, use single brackets, e.g. <code>[https://mediawiki.org MediaWiki]</code>. Internal links use double brackets: <code>[[Main Page]]</code>. To define the link text, use <code>[[Main Page | this is displayed]]</code> (note: the order of the URL/Page Name and the link text is reversed compared to Gollum pages in other markups).</p>"},{menuName:"Images",data:"<p>Use Gollum internal links, e.g. <code>[[sauron.jpg]]<code>, to insert images."}]}];e.GollumEditor.defineHelp("mediawiki",n)}(jQuery),function(e){var t={"function-bold":{replace:"*$1*$2"},"function-italic":{replace:"/$1/$2"},"function-code":{replace:"=$1=$2"},"function-hr":undefined,"function-blockquote":{replace:"#+BEGIN_QUOTE\n$1$2\n#+END_QUOTE"},"function-h1":{replace:"* $1$2"},"function-h2":{replace:"** $1$2"},"function-h3":{replace:"*** $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href?t="[["+e.href+"]["+e.text+"]]":e.href&&(t="[["+e.href+"]]"),t}},"function-image":{replace:function(e){var t="";return e.url&&(t="[["+e.url+"]]"),t}}};e.GollumEditor.defineLanguage("org",e.constructLanguageDefinition(t));var n=[{menuName:"Block Elements",content:[{menuName:"Paragraphs &amp; Breaks",data:"<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p>"},{menuName:"Headers",data:"<p>Simply prefix your header text with the number of <code>*</code> characters to specify heading depth. For example: <code>* Header 1</code>, <code>** Header 2</code> and <code>*** Header 3</code> will be progressively smaller headers.</p>"},{menuName:"Blockquotes",data:"<p>To create a blockquote, simple embed the text between <code>#+BEGIN_QUOTE</code> and <code>#+END_QUOTE</code>. An example quote block is displayed below:<br><code>#+BEGIN_QUOTE<br>This is my quote block. Quote something nice here, otherwise there is no point in quoting.<br>#+END_QUOTE</code></p>"},{menuName:"Lists",data:"<p>Org-mode supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number (any number will do &mdash; this is why the editor only uses one number.) To create an unordered list, you can prefix each line with <code>+</code> or <code>-</code>.</p>"},{menuName:"Code Blocks",data:"<p>Code Blocks are similar to blockquote, except that <code>#+BEGIN_EXAMPLE</code> and <code>#+END_EXAMPLE</code> are used.</p>"},{menuName:"Tables",data:"<p>Org-mode supports simple tables (tables with equal number of cells in each row). To create a simple table, just separate the contents of each cell with a <code>|</code> character. For example, <br><br><code>|one|two|three|<br>|four|five|six|</code><br><br> will appear as a table with two rows and three columns. Additionally, <br><br><code>|one|two|three|<br>|---+---+-----|<br>|four|five|six|</code><br><br> will also appear as a table, but the first row will be interpreted as a header row and the <code>&lt;th&gt;</code> tag will be used to render it. </p>"}]},{menuName:"Span Elements",content:[{menuName:"Links",data:'<p>To create links to external pages, you need to enclose the URI in double square brackets. (i.e., <code>[[http://github.com/]]</code> will automatically be parsed to <a href="javascript:void(0);">http://github.com/</a>)If you want to add text, to be displayed to the user, you write the URI and the text next to each other, both enclosed in square brackets and both of them together enclosed in another pair of square brackets. For example, if you want your link to display the text &ldquo;GitHub&rdquo;, you write <code>[[http://github.com][GitHub]]</code>.</p>'},{menuName:"Emphasis",data:"<p>Forward slashes (<code>/</code>) are treated as emphasis and are wrapped with an <code>&lt;i&gt;</code> tag. Asterisks (<code>*</code>) are treated as bold using the <code>&lt;b&gt;</code> tag.</p>"},{menuName:"Code",data:"<p>To create inline spans of code, simply wrap the code in equal signs (<code>=</code>). Orgmode will turn <code>=myFunction=</code> into <code>myFunction</code>.</p>"},{menuName:"Images",data:"<p>Org-mode image syntax is exactly same as the syntax that you would use for a URI to link to itself. The image URI is enclosed in double square brackets. Alt text on images is not currently supported by Gollum's Org-mode parser.</p>"}]}];e.GollumEditor.defineHelp("org",n)}(jQuery),jQuery.GollumEditor.defineLanguage("txt",{}),function(e){var t={"function-bold":{replace:"B<$1>$2"},"function-italic":{replace:"I<$1>$2"},"function-hr":undefined,"function-code":{replace:"C<$1>$2"},"function-h1":{replace:"=head1 $1$2"},"function-h2":{replace:"=head2 $1$2"},"function-h3":{replace:"=head3 $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="L<"+e.text+"|"+e.href+">"),t}},"function-image":undefined,"function-ul":undefined,"function-ol":undefined,"function-blockquote":undefined};e.GollumEditor.defineLanguage("pod", e.constructLanguageDefinition(t));var n=[{menuName:"Command Paragraphs",content:[{menuName:"Headings",data:"<p>All command paragraphs start with <code>=</code> (equals sign).</p><p>To create headings 1 through 4, begin your command paragraph with <code>=headN</code>, where <code>N</code> is the number of the heading 1 through 4. For example, to make a first-order heading (the largest possible,) write <code>=head1</code>, then on the next line begin your paragraph that you want under the heading.</p>"},{menuName:"Beginning &amp; Ending",data:"<p>Perl pod blocks should begin with <code>=pod</code> and end with <code>=cut</code>, signifying to Pod parsers that the pod block has begun and ended. These command paragraphs only signal the beginning and end of a pod block.</p>"},{menuName:"Other Formats",data:"<p>pod also allows blocks in other formats, such as HTML or plain text. To create one of these blocks, use the <code>=format SYNTAX</code> command paragraph, where <code>SYNTAX</code> is the syntax of the block (e.g. <code>html</code> or <code>txt</code>). At the end of your block, use the <code>=end SYNTAX</code> block.</p>"},{menuName:"Encoding",data:"<p>If you are having encoding troubles, use the <code>=encoding ENC_TYPE</code> command, where <code>ENC_TYPE</code> is the encoding type (e.g. <code>utf8</code>, <code>koi8-r</code>). This will affect the entire document, not just the block below the command.</p>"}]},{menuName:"Formatting",content:[{menuName:"Text",data:"<p>Formatting text as <strong>bold</strong>, <em>italic</em> or <code>code</code> works in the <code>S&lt;word&gt;</code> syntax, where <code>S</code> is an abbreviation for the type of text you are trying to create. For example, <code>B&lt;my bold text&gt;</code> becomes <strong>my bold text</strong>, <code>I&lt;italic text&gt;</code> becomes <em>italic text</em> and <code>C&lt;code here()&gt;</code> becomes <code>code here()</code>.</p>"},{menuName:"Hyperlinks",data:"<p>Writing hyperlinks in pod is much like formatting text, using the same <code>S&lt;&gt;</code> syntax. Instead of <code>B</code>, <code>I</code> or <code>C</code>, use <code>L</code> to begin a hyperlink.</p><p>pod allows you to hyperlink to a <code>man</code> page, a Perl documentation page, or another web page. To link to a <code>man</code> or Perl documentation page, simply include the page name in the link (e.g. <code>L&lt;perl(1)&gt;</code> or <code>L&lt;Net::Ping&gt;</code>). If you want to link to a web page, separate the URL and the link text with a pipe (e.g. to link to github.com, write <code>L&lt;GitHub|http://github.com/&gt;</code>)."}]}];e.GollumEditor.defineHelp("pod",n)}(jQuery),function(e){var t={"function-code":undefined,"function-h1":undefined,"function-h2":undefined,"function-h3":undefined,"function-link":undefined,"function-image":undefined,"function-hr":undefined,"function-blockquote":undefined};e.GollumEditor.defineLanguage("rdoc",e.constructLanguageDefinition(t))}(jQuery),function(s){var o=function(e,t,n){var i="";i=e.length?e:"Title here",adornment=n.repeat(i.length),i=i+"\n"+adornment+"\n",s.GollumEditor.replaceSelection(i,!1,!1,t)},e={"function-bold":{replace:"**$1**$2"},"function-italic":{replace:"*$1*$2"},"function-code":{replace:"``$1``$2"},"function-hr":{append:"\n\n----\n\n"},"function-blockquote":{exec:function(e,t){for(var n=" ",i=t.split("\n"),o=0;o<i.length;o++)i[o]=n+i[o];var r=i.join("\n");s.GollumEditor.replaceSelection(r)}},"function-h1":{symbol:"=",exec:function(e,t,n,i){o(t,i,this.symbol)}},"function-h2":{symbol:"-",exec:function(e,t,n,i){o(t,i,this.symbol)}},"function-h3":{symbol:"~",exec:function(e,t,n,i){o(t,i,this.symbol)}},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="`"+e.text+" <"+e.href+">`_"),t}},"function-image":{replace:function(e){var t="";return e.url&&e.alt&&(t=".. image:: "+e.url+"\n :alt: "+e.alt),t}},"gollum-helpers":{"find-header-line":function(e){var t=e-1,n=window.ace_editor.getSession().getLine(t);return 0<=t&&!/^\s+$/.test(n)?[n,t]:null}}};s.GollumEditor.defineLanguage("rst",s.constructLanguageDefinition(e));var t=[{menuName:"Block Elements",content:[{menuName:"Paragraphs &amp; Breaks",data:"<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p>"},{menuName:"Headers",data:"<p>Rest uses overline/underline adornments to indicate headers. To create a header, underline your header text with adornment characters such as the <code>=, ~, +, ^</code> characters. Make sure that the adornment is of the same length (or longer) as the header text. Use a different adornment character to specify a different heading depth.</p>"},{menuName:"Blockquotes",data:"<p>Rest creates blockquotes using indentation. This looks best if you use four spaces per level of indentation.</p>"},{menuName:"Lists",data:"<p>Rest supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number, or use <code>#</code> for auto enumeration. To create an unordered list, you can prefix each line with <code>*</code>, <code>+</code> or <code>-</code>.</p>"},{menuName:"Code Blocks",data:"<p>Rest wraps code blocks in pre-formatted tags to preserve indentation in your code blocks. To create a code block, indent the entire block by at least 4 spaces or one tab. Rest will strip the extra indentation you&rsquo;ve added to the code block.</p>"},{menuName:"Horizontal Rules",data:"<p>Horizontal rules are created by placing four or more hyphens, asterisks or underscores on a line by themselves.</p>"}]},{menuName:"Span Elements",content:[{menuName:"Links",data:"<p>To create an inline link, create a set of backticks, include the link title first, followed by the url in angled brackets (e.g., <code>`Python <http://www.python.org/>`_</code>).</p>"},{menuName:"Emphasis",data:"<p>Asterisks (<code>*</code>) are treated as emphasis and are wrapped with an <code>&lt;em&gt;</code> tag, which usually displays as italics in most browsers. Double asterisks (<code>**</code>) are treated as bold using the <code>&lt;strong&gt;</code> tag. To create italic or bold text, simply wrap your words in single/double asterisks. For example, <code>**My double emphasis text**</code> becomes <strong>My double emphasis text</strong>, and <code>*My single emphasis text*</code> becomes <em>My single emphasis text</em>.</p>"},{menuName:"Code",data:"<p>To create inline spans of code, simply wrap the code in backticks (<code>`</code>). Rest will turn <code>`myFunction`</code> into <code>myFunction</code>.</p>"},{menuName:"Images",data:'<p>Rest image syntax is two dots, followed by a space, the word "image", two colons, another space, and the url: <code>.. image:: http://image.com/image.png</code>.</p>'}]},{menuName:"Miscellaneous",content:[{menuName:"Escaping",data:"<p>If you want to use a special Rest character in your document (such as displaying literal asterisks), you can escape the character with the backslash (<code>\\</code>). Rest will ignore the character directly after a backslash."}]}];s.GollumEditor.defineHelp("rst",t)}(jQuery),function(e){var t={"function-hr":undefined,"function-code":{replace:"bc. $1$2",whole_line:!0},"function-ol":{line:function(e,t){return"# "+t+"\n"}},"function-blockquote":{replace:"bq. $1$2"},"function-h1":{replace:"h1. $1$2"},"function-h2":{replace:"h2. $1$2"},"function-h3":{replace:"h3. $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t='"'+e.text+'":'+e.href),t}},"function-image":{replace:function(e){var t="";if(e.url){t="!"+e.url;return""!=e.alt&&(t+="("+e.alt+")"),t+="!"}}}};e.GollumEditor.defineLanguage("textile",e.constructLanguageDefinition(t));var n=[{menuName:"Phrase Modifiers",content:[{menuName:"Emphasis / Strength",data:"<p>To place emphasis or strength on inline text, simply place <code>_</code> (underscores) around the text for emphasis or <code>*</code> (asterisks) around the text for strength. In most browsers, <code>_mytext_</code> will appear as italics and <code>*mytext*</code> will appear as bold.</p><p>To force italics or bold, simply double the characters: <code>__mytext__</code> will appear italic and <code>**mytext**</code> will appear as bold text.</p>"},{menuName:"Citations / Editing",data:'<p>To display citations, wrap your text in <code>??</code> (two question marks).</p><p>To display edit marks such as deleted text (strikethrough) or inserted text (underlined text), wrap your text in <code>-</code> (minuses) or <code>+</code> (pluses). For example <code>-mytext-</code> will be rendered as <span style="text-decoration: line-through;">mytext</span> and <code>+mytext+</code> will be rendered as <span style="text-decoration: underline;">mytext</span></p>'},{menuName:"Superscript / Subscript",data:"<p>To display superscript, wrap your text in <code>^</code> (carets). To display subscript, wrap your text in <code>~</code> (tildes).</p>"},{menuName:"Code",data:"<p>To display monospace code, wrap your text in <code>@</code> (at symbol). For example, <code>@mytext@</code> will appear as <code>mytext</code>.</p>"},{menuName:"Acronyms",data:'<p>To create an acronym, suffix the acronym with the definition in parentheses. For example, <code>JS(JavaScript)</code> will be displayed as <abbr title="JavaScript">JS</abbr>.</p>'}]},{menuName:"Block Modifiers",content:[{menuName:"Headings",data:"<p>To display a heading in Textile, prefix your line of text with <code>hn.</code>, where <code>n</code> equals the heading size you want (1 is largest, 6 is smallest).</p>"},{menuName:"Paragraphs / Quotes",data:"<p>To create a new paragraph, prefix your first line of a block of text with <code>p.</code>.</p><p>To create a blockquote, make sure at least one blank line exists between your text and any surrounding text, and then prefix that block with <code>bq.</code> If you need to extend a blockquote to more than one text block, write <code>bq..</code> (note the two periods) and prefix your next normal paragraph with <code>p.</code></p>"},{menuName:"Code Blocks",data:"<p>Code blocks in textile are simply prefixed like any other block. To create a code block, place the beginning of the block on a separate line and prefix it with <code>bc.</code></p><p>To display a preformatted block, prefix the block with <code>pre.</code></p>"},{menuName:"Lists",data:"<p>To create ordered lists, prefix each line with <code>#</code>. To create unordered lists, prefix each line with <code>*</code>.</p>"}]},{menuName:"Links / Images",content:[{menuName:"Links",data:'<p>To display a link, put the text you want to display in quotes, then a colon (<code>:</code>), then the URL after the colon. For example <code>&quot;GitHub&quot;:http://github.com/</code> will appear as <a href="javascript:void(0);">GitHub</a>.</p>'},{menuName:"Images",data:"<p>To display an image, simply wrap the image&rsquo;s URL in <code>!</code> (exclamation points). If you want to link the image to a URL, you can blend the image and link syntax: place your image URL in the exclamation points and suffix that with a colon and your URL. For example, an image at <code>http://myurl/image.png</code> that should link to <code>http://myurl/</code> should be written as <code>!http://myurl/image.png!:http://myurl/</code>.</p>"}]}];e.GollumEditor.defineHelp("textile",n)}(jQuery);
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; import { isValidElement, useEffect, useMemo } from 'react'; import inflection from 'inflection'; import { useLocation } from 'react-router-dom'; import { useSelector } from 'react-redux'; import get from 'lodash/get'; import { useCheckMinimumRequiredProps } from './checkMinimumRequiredProps'; import useListParams from './useListParams'; import useRecordSelection from './useRecordSelection'; import useVersion from './useVersion'; import { useTranslate } from '../i18n'; import { SORT_ASC } from '../reducer/admin/resource/list/queryReducer'; import { CRUD_GET_LIST } from '../actions'; import { useNotify } from '../sideEffect'; import useGetList from '../dataProvider/useGetList'; var defaultSort = { field: 'id', order: SORT_ASC, }; var defaultData = {}; /** * Prepare data for the List view * * @param {Object} props The props passed to the List component. * * @return {Object} controllerProps Fetched and computed data for the List view * * @example * * import { useListController } from 'react-admin'; * import ListView from './ListView'; * * const MyList = props => { * const controllerProps = useListController(props); * return <ListView {...controllerProps} {...props} />; * } */ var useListController = function (props) { useCheckMinimumRequiredProps('List', ['basePath', 'resource'], props); var basePath = props.basePath, resource = props.resource, hasCreate = props.hasCreate, filterDefaultValues = props.filterDefaultValues, _a = props.sort, sort = _a === void 0 ? defaultSort : _a, _b = props.perPage, perPage = _b === void 0 ? 10 : _b, filter = props.filter, _c = props.debounce, debounce = _c === void 0 ? 500 : _c; if (filter && isValidElement(filter)) { throw new Error('<List> received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.'); } var location = useLocation(); var translate = useTranslate(); var notify = useNotify(); var version = useVersion(); var _d = useListParams({ resource: resource, location: location, filterDefaultValues: filterDefaultValues, sort: sort, perPage: perPage, debounce: debounce, }), query = _d[0], queryModifiers = _d[1]; var _e = useRecordSelection(resource), selectedIds = _e[0], selectionModifiers = _e[1]; /** * We want the list of ids to be always available for optimistic rendering, * and therefore we need a custom action (CRUD_GET_LIST) that will be used. */ var _f = useGetList(resource, { page: query.page, perPage: query.perPage, }, { field: query.sort, order: query.order }, __assign(__assign({}, query.filter), filter), { action: CRUD_GET_LIST, version: version, onFailure: function (error) { return notify(typeof error === 'string' ? error : error.message || 'ra.notification.http_error', 'warning'); }, }), ids = _f.ids, total = _f.total, loading = _f.loading, loaded = _f.loaded; var data = useSelector(function (state) { return get(state.admin.resources, [resource, 'data'], defaultData); }); // When the user changes the page/sort/filter, this controller runs the // useGetList hook again. While the result of this new call is loading, // the ids and total are empty. To avoid rendering an empty list at that // moment, we override the ids and total with the latest loaded ones. var defaultIds = useSelector(function (state) { return get(state.admin.resources, [resource, 'list', 'ids'], []); }); var defaultTotal = useSelector(function (state) { return get(state.admin.resources, [resource, 'list', 'total'], 0); }); useEffect(function () { if (query.page <= 0 || (!loading && query.page > 1 && (ids || []).length === 0)) { // query for a page that doesn't exist, set page to 1 queryModifiers.setPage(1); } }, [loading, query.page, ids, queryModifiers]); var currentSort = useMemo(function () { return ({ field: query.sort, order: query.order, }); }, [query.sort, query.order]); var resourceName = translate("resources." + resource + ".name", { smart_count: 2, _: inflection.humanize(inflection.pluralize(resource)), }); var defaultTitle = translate('ra.page.list', { name: resourceName, }); return { basePath: basePath, currentSort: currentSort, data: data, defaultTitle: defaultTitle, displayedFilters: query.displayedFilters, filterValues: query.filterValues, hasCreate: hasCreate, hideFilter: queryModifiers.hideFilter, ids: typeof total === 'undefined' ? defaultIds : ids, loaded: loaded || defaultIds.length > 0, loading: loading, onSelect: selectionModifiers.select, onToggleItem: selectionModifiers.toggle, onUnselectItems: selectionModifiers.clearSelection, page: query.page, perPage: query.perPage, resource: resource, selectedIds: selectedIds, setFilters: queryModifiers.setFilters, setPage: queryModifiers.setPage, setPerPage: queryModifiers.setPerPage, setSort: queryModifiers.setSort, showFilter: queryModifiers.showFilter, total: typeof total === 'undefined' ? defaultTotal : total, version: version, }; }; export var injectedProps = [ 'basePath', 'currentSort', 'data', 'defaultTitle', 'displayedFilters', 'filterValues', 'hasCreate', 'hideFilter', 'ids', 'loading', 'loaded', 'onSelect', 'onToggleItem', 'onUnselectItems', 'page', 'perPage', 'refresh', 'resource', 'selectedIds', 'setFilters', 'setPage', 'setPerPage', 'setSort', 'showFilter', 'total', 'version', ]; /** * Select the props injected by the useListController hook * to be passed to the List children need * This is an implementation of pick() */ export var getListControllerProps = function (props) { return injectedProps.reduce(function (acc, key) { var _a; return (__assign(__assign({}, acc), (_a = {}, _a[key] = props[key], _a))); }, {}); }; /** * Select the props not injected by the useListController hook * to be used inside the List children to sanitize props injected by List * This is an implementation of omit() */ export var sanitizeListRestProps = function (props) { return Object.keys(props) .filter(function (propName) { return !injectedProps.includes(propName); }) .reduce(function (acc, key) { var _a; return (__assign(__assign({}, acc), (_a = {}, _a[key] = props[key], _a))); }, {}); }; export default useListController;
var util = require('util'); var assert = require('assert'); var defineClass = require('library/class/defineClass.js'); var Class = require('library/class/Class.js'); var Lockable = require('library/thread').Lockable; /** A Wrapper Class implementing HashSet REFERENCE http://docs.oracle.com/javase/7/docs/api/java/util/HashSet.html Set Definition REFERENCE http://docs.oracle.com/javase/7/docs/api/java/util/Set.html A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1 and e2 such that e1.equals(e2), and at most one null element. **/ var HashSet = defineClass({ name : "HashSet", extend : Lockable, construct : function(){ this.base = {}; }, methods : { forEach : function(op){ for(var elem in this.base) op(elem); }, //check if the set contains the specified element contains : function(elem){ return (this.base[elem]!=null); }, //add a new element add : function(elem){ this.base[elem] = true; }, remove : function(elem){ delete this.base[elem]; }, //REFERENCE http://docs.oracle.com/javase/7/docs/api/java/util/AbstractSet.html#removeAll(java.util.Collection) //Removes from this set all of its elements that are contained in the specified collection removeAll : function(set){ assert(Class.isInstanceOfClass(set, "HashSet")); var self = this; set.forEach(function(elem){ if(self.contains(elem)) self.remove(elem); }); }, //REFERENCE http://docs.oracle.com/javase/7/docs/api/java/util/AbstractCollection.html#retainAll(java.util.Collection) //removes from this collection all of its elements that are not contained in the specified collection. retainAll : function(set){ assert(Class.isInstanceOfClass(set,"HashSet")); var removes = []; for(var elem in this.base){ if(!set.contains(elem)) removes.push(elem); } for(var i=0;i<removes.length;i++) set.remove(removes[i]); } } }); module.exports = exports = HashSet;
var array = []; var i, lat, lng, n, latlng, map, centroMapa; centroMapa = L.latLng(-26.83051, -65.20382); zoomMapa = 13; map = L.map('map', { center: centroMapa, zoom: zoomMapa }); L.tileLayer('https://{s}.tiles.mapbox.com/v3/{id}/{z}/{x}/{y}.png', { id: 'examples.map-i875mjb7' }).addTo(map); /*latlng = L.latLng(-26.78250, -65.23400); L.circleMarker(latlng, { stroke: true, color: 'blue', weight: 5, opacity: 0.5, fill: true, fillColor: 'red', fillOpacity: 0.2, dashArray: null, lineCap: null, lineJoin: null, clickable: true, pointerEvents: null, className:'' }).addTo(map).bindPopup("Info");*/ n = 10; lat = -26.78250; lng = -65.23400; for (i = 0; i < n; i++) { latlng = L.latLng(lat,lng); lat -= 0.00050; circulo = new L.circle(latlng, 15, { stroke: false, color: 'red', weight: 3, opacity: 0.7, fill: true, fillColor: 'red', fillOpacity: 0.7, // dashArray: null, // lineCap: null, //lineJoin: null, // clickable: true, // pointerEvents: null, // className:'' }).addTo(map).bindPopup(i.toString()); array.push(circulo); } n = 10; lat = -26.78250; lng = -65.23400; for (i = 0; i < n; i++) { latlng = L.latLng(lat,lng); lat -= 0.00050; circulo = new L.circle(latlng, 10, { stroke: false, color: 'green', weight: 2, opacity: 0.7, fill: true, fillColor: 'green', fillOpacity: 0.7, // dashArray: null, // lineCap: null, //lineJoin: null, // clickable: true, // pointerEvents: null, // className:'' }).addTo(map).bindPopup(i.toString()); array.push(circulo); } markers.addLayers(array);
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add('radio',function(a){return{title:a.lang.checkboxAndRadio.radioTitle,minWidth:350,minHeight:140,onShow:function(){var c=this;delete c.radioButton;var b=c.getParentEditor().getSelection().getSelectedElement();if(b&&b.getName()=='input'&&b.getAttribute('type')=='radio'){c.radioButton=b;c.setupContent(b);}},onOk:function(){var b,c=this.radioButton,d=!c;if(d){b=this.getParentEditor();c=b.document.createElement('input');c.setAttribute('type','radio');}if(d)b.insertElement(c);this.commitContent({element:c});},contents:[{id:'info',label:a.lang.checkboxAndRadio.radioTitle,title:a.lang.checkboxAndRadio.radioTitle,elements:[{id:'name',type:'text',label:a.lang.common.name,'default':'',accessKey:'N',setup:function(b){this.setValue(b.getAttribute('_cke_saved_name')||b.getAttribute('name')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('_cke_saved_name',this.getValue());else{c.removeAttribute('_cke_saved_name');c.removeAttribute('name');}}},{id:'value',type:'text',label:a.lang.checkboxAndRadio.value,'default':'',accessKey:'V',setup:function(b){this.setValue(b.getAttribute('value')||'');},commit:function(b){var c=b.element;if(this.getValue())c.setAttribute('value',this.getValue());else c.removeAttribute('value');}},{id:'checked',type:'checkbox',label:a.lang.checkboxAndRadio.selected,'default':'',accessKey:'S',value:'checked',setup:function(b){this.setValue(b.getAttribute('checked'));},commit:function(b){var c=b.element;if(!CKEDITOR.env.ie){if(this.getValue())c.setAttribute('checked','checked');else c.removeAttribute('checked');}else{var d=c.getAttribute('checked'),e=!!this.getValue();if(d!=e){var f=CKEDITOR.dom.element.createFromHtml('<input type="radio"'+(e?' checked="checked"':'')+'></input>',a.document);c.copyAttributes(f,{type:1,checked:1});f.replace(c);a.getSelection().selectElement(f);b.element=f;}}}}]}]};});
import { TextField, NumberField, SimpleShowLayout, Show, Button, } from 'react-admin'; import { useParams } from 'react-router-dom'; import ArrowBackIcon from '@material-ui/icons/ArrowBack'; import { useState } from 'react'; import React from 'react'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import TableRow from '@material-ui/core/TableRow'; import Paper from '@material-ui/core/Paper'; import { TableHead } from '@material-ui/core'; import EditIcon from '@material-ui/icons/Edit'; import VisibilityIcon from '@material-ui/icons/Visibility'; export const ProductShow = (props) => { const { id } = useParams(); const [storages, setStorages] = useState([]); async function dataStorages() { const res = await fetch(`http://localhost:3000/products/${id}/storages`, { method: 'GET', }); const json = await res.json(); setStorages(json); } React.useEffect(() => { dataStorages(); }, []); return ( <div> <Show {...props}> <SimpleShowLayout> {/* <NumberField source="id" /> */} <TextField source="name" /> <TextField source="type" /> <NumberField source="uprice" /> <NumberField source="stock" /> <Button href="/#/products" label="Back" style={{ display: 'flex', maxWidth: 'max-content', marginLeft: 'auto', }} > <ArrowBackIcon /> </Button> {/* <Link style={{ display: 'flex', alignItems: 'center', padding: '5px 15px', backgroundColor: 'Lavender', maxWidth: '67px', textTransform: 'uppercase', textDecoration: 'none', borderRadius: '3px', marginLeft: 'auto', }} to={`/products`} > <ArrowBackIcon style={{ marginRight: '5px', marginTop: '5px' }} /> Back </Link> */} </SimpleShowLayout> </Show> {storages.length ? ( <TableContainer component={Paper}> <Table size="small" aria-label="a dense table"> <TableHead> <TableRow> <TableCell align="center">Corridor</TableCell> <TableCell align="center">Box</TableCell> <TableCell align="center">Shelf</TableCell> <TableCell align="center">Name</TableCell> <TableCell align="center"></TableCell> <TableCell align="center"></TableCell> </TableRow> </TableHead> <TableBody> {storages.map((store) => ( <TableRow key={store.id}> <TableCell style={{ padding: '12px' }} align="center"> {store.corridor} </TableCell> <TableCell style={{ padding: '12px' }} align="center"> {store.box} </TableCell> <TableCell style={{ padding: '12px' }} align="center"> {store.shelf} </TableCell> <TableCell style={{ padding: '12px' }} align="center"> {store.name} </TableCell> <TableCell style={{ padding: '12px' }} align="center"> <Button href={`/#/storages/${store.id}`} label="Edit" style={{ display: 'flex', maxWidth: 'max-content', marginLeft: 'auto', padding: '0', }} > <EditIcon /> </Button> </TableCell> <TableCell style={{ padding: '12px' }} align="center"> <Button href={`/#/storages/${store.id}/show`} label="Show" style={{ display: 'flex', maxWidth: 'max-content', marginLeft: 'auto', padding: '0', }} > <VisibilityIcon /> </Button> </TableCell> </TableRow> ))} </TableBody> </Table> </TableContainer> ) : ( '' )} </div> ); };
"use strict"; if (process.env.NODE_ENV === "production") { module.exports = require("./index.cjs.production.min.js.js"); } else { module.exports = require("./index.cjs.development.js.js"); }
// import container from './container'; import { combineReducers } from 'redux'; // import sagas from './sagas'; // import reducer from './reducer'; export const reducer = combineReducers({ }); export const sagas = [ ]; // export default container; export { };
function DrawChart(canvasID, remoteFields, remoteData, remoteColors, remoteBorderColors) { var ctx = document.getElementById(canvasID).getContext('2d'); var myChart = new Chart(ctx, { type: 'bar', data: { labels: remoteFields, datasets: [{ data: remoteData, backgroundColor: remoteColors, borderColor: remoteBorderColors, borderWidth: 1 }] }, options: { scales: { xAxes: [{ ticks: { callback: function(t) { var maxLabelLength = 25; if (t.length > maxLabelLength) return t.substr(0, maxLabelLength) + '...'; else return t; } }, barPercentage: 0.8 }], yAxes: [{ ticks: { beginAtZero:true, stepSize: 1 } }] }, responsive: true, maintainAspectRatio: false, legend: { display: false }, tooltips: { callbacks: { title: function(t, d) { return d.labels[t[0].index]; } } } } }); } function DrawComparisonChart(canvasID, remoteFields, remoteData, remoteColors, remoteBorderColors, remoteLabel) { var ctx = document.getElementById(canvasID).getContext('2d'); var myChart = new Chart(ctx, { type: 'bar', data: { labels: remoteFields, datasets: [ { label: remoteLabel["class1"], data: remoteData["class1"], backgroundColor: remoteColors["class1"], borderColor: remoteBorderColors["class1"], borderWidth: 1 },{ label: remoteLabel["class2"], data: remoteData["class2"], backgroundColor: remoteColors["class2"], borderColor: remoteBorderColors["class2"], borderWidth: 1 }] }, options: { scales: { xAxes: [{ ticks: { callback: function(t) { var maxLabelLength = 25; if (t.length > maxLabelLength) return t.substr(0, maxLabelLength) + '...'; else return t; } } }], yAxes: [{ ticks: { beginAtZero:true, stepSize: 1 } }] }, responsive: true, maintainAspectRatio: false, legend: { display: false }, tooltips: { callbacks: { title: function(t, d) { return d.labels[t[0].index]; } } } } }); }
/** * @ngdoc module * @name material.components.divider * @description Divider module! */ angular.module('material.components.divider', [ 'material.core' ]) .directive('mdDivider', MdDividerDirective); /** * @ngdoc directive * @name mdDivider * @module material.components.divider * @restrict E * * @description * Dividers group and separate content within lists and page layouts using strong visual and spatial distinctions. This divider is a thin rule, lightweight enough to not distract the user from content. * * @param {boolean=} md-inset Add this attribute to activate the inset divider style. * @usage * <hljs lang="html"> * <md-divider></md-divider> * * <md-divider md-inset></md-divider> * </hljs> * */ function MdDividerDirective($mdTheming) { return { restrict: 'E', link: $mdTheming }; }
import '@storybook/addon-console'; import { configure, addDecorator } from '@storybook/react'; import { withPropsTable } from 'storybook-addon-react-docgen'; import { withKnobs } from '@storybook/addon-knobs'; addDecorator(withPropsTable); addDecorator(withKnobs); function loadStories() { require('../stories'); // eslint-disable-line global-require } configure(loadStories, module);
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><g><path d="M20.5 6c-2.61.7-5.67 1-8.5 1s-5.89-.3-8.5-1L3 8c1.86.5 4 .83 6 1v13h2v-6h2v6h2V9c2-.17 4.14-.5 6-1l-.5-2zM12 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z" /></g></React.Fragment> , 'AccessibilityNewSharp');
import $ from '../../core/renderer'; import { extend } from '../../core/utils/extend'; import eventsEngine from '../../events/core/events_engine'; import { addNamespace } from '../../events/utils/index'; import { name as clickEventName } from '../../events/click'; import { getImageContainer } from '../../core/utils/icon'; import Overlay from '../overlay/ui.overlay'; import { render } from '../widget/utils.ink_ripple'; import { isMaterial } from '../themes'; const FAB_CLASS = 'dx-fa-button'; const FAB_ICON_CLASS = 'dx-fa-button-icon'; const FAB_LABEL_CLASS = 'dx-fa-button-label'; const FAB_LABEL_WRAPPER_CLASS = 'dx-fa-button-label-wrapper'; const FAB_CONTENT_REVERSE_CLASS = 'dx-fa-button-content-reverse'; const OVERLAY_CONTENT_SELECTOR = '.dx-overlay-content'; class SpeedDialItem extends Overlay { _getDefaultOptions() { return extend(super._getDefaultOptions(), { shading: false, useInkRipple: false, callOverlayRenderShading: false, width: 'auto', zIndex: 1500 }); } _defaultOptionsRules() { return super._defaultOptionsRules().concat([ { device() { return isMaterial(); }, options: { useInkRipple: true } } ]); } _render() { this.$element().addClass(FAB_CLASS); this._renderIcon(); this._renderLabel(); super._render(); this.option('useInkRipple') && this._renderInkRipple(); this._renderClick(); } _renderLabel() { !!this._$label && this._$label.remove(); const labelText = this.option('label'); if(!labelText) { this._$label = null; return; } const $element = $('<div>').addClass(FAB_LABEL_CLASS); const $wrapper = $('<div>').addClass(FAB_LABEL_WRAPPER_CLASS); this._$label = $wrapper .prependTo(this.$content()) .append($element.text(labelText)); this.$content().toggleClass(FAB_CONTENT_REVERSE_CLASS, this._isPositionLeft(this.option('parentPosition'))); } _isPositionLeft(position) { const currentLocation = position ? (position.at ? (position.at.x ? position.at.x : position.at) : (typeof position === 'string' ? position : '')) : ''; return currentLocation.split(' ')[0] === 'left'; } _renderButtonIcon($element, icon, iconClass) { !!$element && $element.remove(); $element = $('<div>').addClass(iconClass); const $iconElement = getImageContainer(icon); $element .append($iconElement) .appendTo(this.$content()); return $element; } _renderIcon() { this._$icon = this._renderButtonIcon( this._$icon, this._options.silent('icon'), FAB_ICON_CLASS); } _renderWrapper() { if(this._options.silent('callOverlayRenderShading')) { super._renderWrapper(); } } _getVisibleActions(actions) { const currentActions = actions || this.option('actions') || []; return currentActions.filter((action) => action.option('visible')); } _getActionComponent() { if(this._getVisibleActions().length === 1) { return this._getVisibleActions()[0]; } else { return this.option('actionComponent') || this.option('actions')[0]; } } _initContentReadyAction() { this._contentReadyAction = this._getActionComponent()._createActionByOption('onContentReady', { excludeValidators: ['disabled', 'readOnly'] }, true); } _fireContentReadyAction() { this._contentReadyAction({ actionElement: this.$element() }); } _updateZIndexStackPosition() { const zIndex = this.option('zIndex'); this._$wrapper.css('zIndex', zIndex); this._$content.css('zIndex', zIndex); } _fixWrapperPosition() { const $wrapper = this._$wrapper; const $container = this._getContainer(); $wrapper.css('position', this._isWindow($container) ? 'fixed' : 'absolute'); } _setClickAction() { const eventName = addNamespace(clickEventName, this.NAME); const overlayContent = this.$element().find(OVERLAY_CONTENT_SELECTOR); eventsEngine.off(overlayContent, eventName); eventsEngine.on(overlayContent, eventName, (e) => { const clickActionArgs = { event: e, actionElement: this.element(), element: this._getActionComponent().$element() }; this._clickAction(clickActionArgs); }); } _defaultActionArgs() { return { component: this._getActionComponent() }; } _renderClick() { this._clickAction = this._getActionComponent()._createActionByOption('onClick'); this._setClickAction(); } _renderInkRipple() { this._inkRipple = render(); } _getInkRippleContainer() { return this._$icon; } _toggleActiveState($element, value, e) { super._toggleActiveState.apply(this, arguments); if(!this._inkRipple) { return; } const config = { element: this._getInkRippleContainer(), event: e }; if(value) { this._inkRipple.showWave(config); } else { this._inkRipple.hideWave(config); } } _optionChanged(args) { switch(args.name) { case 'icon': this._renderIcon(); break; case 'onClick': this._renderClick(); break; case 'label': this._renderLabel(); break; case 'visible': this._currentVisible = args.previousValue; args.value ? this._show() : this._hide(); break; case 'useInkRipple': this._render(); break; default: super._optionChanged(args); } } } export default SpeedDialItem;
const HuddlyDeviceApiIp = require('@huddly/device-api-ip').default; const HuddlyDeviceApiIUsb = require('@huddly/device-api-usb').default; const HuddlySdk = require('@huddly/sdk').default; const { HUDDLY_L1_PID } = require('@huddly/sdk/lib/src/components/device/factory').default; const ipApi = new HuddlyDeviceApiIp(); const usbApi = new HuddlyDeviceApiIUsb(); // Create an instance of the SDK const sdk = new HuddlySdk([usbApi, ipApi], [usbApi, ipApi]); const applicationTeardown = () => { process.exit(); } if (!process.argv[2]) { console.log('Note: Default search time (30 seconds). Update it by adding an extra cmd argument.'); } const searchTime = process.argv[2] || 30; const cameraList = []; sdk.on('ATTACH', (huddlyDevice) => { console.log(`Found [${huddlyDevice.productName}] device!`) huddlyDevice.getInfo() .then(info => { cameraList.push(info) }) .catch((e) => { console.error(`Unable to get camera info from [${huddlyDevice.productName}]`) console.trace(e); }).finally(_ => { huddlyDevice.closeConnection(); }); }); setTimeout(() => { console.group('Camera List') console.log(cameraList) console.groupEnd(); applicationTeardown(); }, searchTime * 1000) // Call init() to trigger device discovery sdk.init();
import predefinedPropTypes from '../../constants/prop-types/body' import PropTypes from 'prop-types' import React, { PureComponent } from 'react' import SeparationCurve from '../separation-curve' import styled from 'styled-components' import styles from '../../constants/css' import themeConst from '../../constants/theme' import typography from '../../constants/typography' // lodash import get from 'lodash/get' import map from 'lodash/map' const _ = { get, map, } const Content = styled.div` /* ff-tisa-web-pro is for english text */ font-family: ff-tisa-web-pro, source-han-serif-tc, serif; p { color: ${props => { switch (props.theme.name) { case themeConst.article.v2.photo: return 'rgba(255, 255, 255, 0.9)' case themeConst.article.v2.pink: case themeConst.article.v2.default: default: return '#808080' } }}; line-height: 1.7; letter-spacing: 0.7px; font-weight: ${typography.font.weight.semiBold}; font-size: ${props => props.theme.fontSizeOffset + 20}px; margin: 0 0 1em 0; &:last-child { margin: 0; } } ${styles.linkChildren} ` export default class Brief extends PureComponent { static propTypes = { className: PropTypes.string, data: PropTypes.arrayOf(predefinedPropTypes.elementData), } static defaultProps = { className: '', data: [], } _buildContentElement = (data, index) => { switch (data.type) { case 'unstyled': const htmlString = _.get(data, ['content', 0]) if (!htmlString) return null return ( <p key={_.get(data, 'id', `p-${index}`)} dangerouslySetInnerHTML={{ __html: htmlString }} /> ) default: return null } } render() { const { className, data } = this.props const elements = _.map(data, this._buildContentElement).filter(Boolean) return elements.length > 0 ? ( <div className={className}> <Content>{elements}</Content> <SeparationCurve /> </div> ) : null } }
import fs from 'fs'; import dotty from 'dotty'; import i18n from 'koa-i18n'; import locale from 'koa-locale'; const SUPPORTED_LOCALES = ['en']; export function initI18nMiddleware(server) { locale(server.app); let directory = './translations'; const preferredDir = `./${server.config.project}-translations`; if (fs.existsSync(preferredDir)) { directory = preferredDir; } server.logger.info(`load translations from ${directory}`); server.use(i18n(server.app, { directory, locales: SUPPORTED_LOCALES, modes: [ 'cookie', 'query', 'header', ], extension: '.yaml', parse(data) { return require('js-yaml').safeLoad(data); }, dump(data) { return require('js-yaml').safeDump(data); }, })); server.use(async(ctx, next) => { const locale = dotty.get(ctx, 'request.query.locale'); if (locale && SUPPORTED_LOCALES.indexOf(locale) !== -1) { ctx.cookies.set( 'locale', ctx.request.query.locale.toLowerCase(), { maxAge: 14 * 24 * 3600 * 1000, }, ); ctx.i18n.setLocale(locale); } await next(); }); }
hqDefine("domain/js/internal_settings", [ 'jquery', 'knockout', 'underscore', 'hqwebapp/js/initial_page_data', 'hqwebapp/js/multiselect_utils', 'jquery-ui/ui/widgets/datepicker', ], function ( $, ko, _, initialPageData, multiselectUtils ) { var areas = initialPageData.get('areas'); var internalSettingsViewModel = function (initialValues) { var self = {}; self.use_custom_auto_case_update_limit = ko.observable(initialValues.use_custom_auto_case_update_limit); self.use_custom_odata_feed_limit = ko.observable(initialValues.use_custom_odata_feed_limit); return self; }; function updateSubareas() { var $subarea = $subarea || $('[name="sub_area"]'); var chosenSubArea = $subarea.val(); var area = $('[name="area"]').val(); var validSubAreas = []; if (area) { validSubAreas = areas[area]; } $subarea.empty().append($("<option></option>").attr("value", '').text('---')); _.each(validSubAreas, function (val) { var $opt = $("<option></option>").attr("value", val).text(val); if (val === chosenSubArea) { $opt.prop("selected", true); } $subarea.append($opt); }); } function updateWorkshopRegion() { var $wr = $wr || $('#id_workshop_region').parent().parent(); var $workshopInitiative = $workshopInitiative || $('[name="initiative"][value="Workshop"]'); if ($workshopInitiative.is(":checked")) { $wr.show(); } else { $wr.hide(); } } $(function () { updateSubareas(); updateWorkshopRegion(); $('[name="area"]').change(function () { updateSubareas(); }); $('[name="initiative"]').change(function () { updateWorkshopRegion(); }); var internalSettingsView = internalSettingsViewModel( initialPageData.get("current_values") ); $('#update-project-info').koApplyBindings(internalSettingsView); $('#id_deployment_date').datepicker({ changeMonth: true, changeYear: true, showButtonPanel: true, dateFormat: 'yy-mm-dd', maxDate: '0', numberOfMonths: 2, }); multiselectUtils.createFullMultiselectWidget( 'id_countries', gettext("Available Countries"), gettext("Active Countries"), gettext("Search Countries...") ); }); });
export default { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32', width: 32, height: 32, }, content: [ { elem: 'path', attrs: { d: 'M19 24h4v4h-4zm7 0h4v4h-4zm-7-7h4v4h-4zm7 0h4v4h-4z' }, }, { elem: 'path', attrs: { d: 'M17 24H4V10h24v5h2v-5a2.002 2.002 0 0 0-2-2h-6V4a2.002 2.002 0 0 0-2-2h-8a2.002 2.002 0 0 0-2 2v4H4a2.002 2.002 0 0 0-2 2v14a2.002 2.002 0 0 0 2 2h13zM12 4h8v4h-8z', }, }, ], name: 'inventory-management', size: 32, };
'use strict'; const EngineAddon = require('ember-engines/lib/engine-addon'); module.exports = EngineAddon.extend({ name: 'external-admin', lazyLoading: true });
define( ({ doNew: "[ny]", edit: "[redigér]", save: "[gem]", cancel: "[annullér]" }) );
const xmlHttpRequests = { "/links/go" : (_response) => { return _response.url; } }; XMLHttpRequest.prototype.openOriginal = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function(_method, _url, _async, _user, _password) { let xmlHttpRequest = xmlHttpRequests[_url]; if (xmlHttpRequest) { this.addEventListener("readystatechange", () => { if (this.readyState != 4 || this.status != 200 || this.response.length < 1) { return; } let referer = location.href; let target = xmlHttpRequest(JSON.parse(this.response)); contribute(referer, target); }); } this.openOriginal(_method, _url, _async, _user, _password); } function contribute(_referer, _target) { let result = _referer.match(/https?:\/\/w*\.?(.*)\/(.*)/i); let domain = encodeURIComponent(result[1]); let path = encodeURIComponent(result[2]); let target = encodeURIComponent(_target); let xmlHttpRequest = new XMLHttpRequest(); xmlHttpRequest.onreadystatechange = () => { if (xmlHttpRequest.readyState != 4 || xmlHttpRequest.status != 200) { return; } location.assign(_target); }; xmlHttpRequest.open("POST", "https://universal-bypass.org/crowd/contribute_v1", true); xmlHttpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlHttpRequest.send("domain=" + domain + "&path=" + path + "&target=" + target); }
/** * @license Copyright 2018 The Lighthouse Authors. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ 'use strict'; const fs = require('fs'); const flowReportAssets = require('./flow-report-assets.js'); const REPORT_TEMPLATE = fs.readFileSync(__dirname + '/../assets/standalone-template.html', 'utf8'); const REPORT_JAVASCRIPT = fs.readFileSync(__dirname + '/../../dist/report/standalone.js', 'utf8'); const REPORT_CSS = fs.readFileSync(__dirname + '/../assets/styles.css', 'utf8'); // Changes to this export interface should be reflected in build/build-dt-report-resources.js // and clients/devtools-report-assets.js module.exports = { REPORT_TEMPLATE, REPORT_JAVASCRIPT, REPORT_CSS, // Flow report assets are not needed for every bundle. // Ignoring flow-report-assets.js (e.g. `browserify.ignore`) will remove the flow assets from the bundle. ...flowReportAssets, };
import React from 'react'; import { Link } from 'react-router'; import './Contact.scss'; const Contact = ({contact, authReducer}) => { const detailUrl = authReducer.user.model_meta && (contact.ct === authReducer.user.model_meta.lead) ? '/detail-lead/' : '/detail-contact/'; return ( <div className="rightBlockContact"> <ul> <li> <div className="photoBlock" style={{backgroundImage: `url(${contact.prof_pic})`}}> {!contact.prof_pic && <i className="fa fa-user"/>} </div> <div className="textBlock"> <div className="nameBlock"> <Link to={detailUrl + contact.id}>{contact.first_name} {contact.last_name}</Link> </div> <div className="line">{contact.position}</div> <div className="line">{contact.email}</div> <div className="line">{contact.phone} {contact.mobile_phone}</div> </div> </li> </ul> </div> ); }; Contact.propTypes = { contact: React.PropTypes.object, authReducer: React.PropTypes.object, }; export default Contact;
export default "M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"
import charsEndIndex from './_charsEndIndex'; import charsStartIndex from './_charsStartIndex'; import stringToArray from './_stringToArray'; import toString from './toString'; /** Used to match leading and trailing whitespace. */ var reTrim = /^\s+|\s+$/g; /** * Removes leading and trailing whitespace or specified characters from `string`. * * @static * @memberOf _ * @category String * @param {string} [string=''] The string to trim. * @param {string} [chars=whitespace] The characters to trim. * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`. * @returns {string} Returns the trimmed string. * @example * * _.trim(' abc '); * // => 'abc' * * _.trim('-_-abc-_-', '_-'); * // => 'abc' * * _.map([' foo ', ' bar '], _.trim); * // => ['foo', 'bar'] */ function trim(string, chars, guard) { string = toString(string); if (!string) { return string; } if (guard || chars === undefined) { return string.replace(reTrim, ''); } chars = (chars + ''); if (!chars) { return string; } var strSymbols = stringToArray(string), chrSymbols = stringToArray(chars); return strSymbols .slice(charsStartIndex(strSymbols, chrSymbols), charsEndIndex(strSymbols, chrSymbols) + 1) .join(''); } export default trim;
/* * * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined * * in FIPS 180-1 * * Version 2.2 Copyright Paul Johnston 2000 - 2009. * * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet * * Distributed under the BSD License * * See http://pajhome.org.uk/crypt/md5 for details. * */ /* * * Configurable variables. You may need to tweak these to be compatible with * * the server-side, but the defaults work in most cases. * */ var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */ var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */ /* * * These are the functions you'll usually want to call * * They take string arguments and return either hex or base-64 encoded strings * */ function hex_sha1(s) { return rstr2hex(rstr_sha1(str2rstr_utf8(s))); } function b64_sha1(s) { return rstr2b64(rstr_sha1(str2rstr_utf8(s))); } function any_sha1(s, e) { return rstr2any(rstr_sha1(str2rstr_utf8(s)), e); } function hex_hmac_sha1(k, d) { return rstr2hex(rstr_hmac_sha1(str2rstr_utf8(k), str2rstr_utf8(d))); } function b64_hmac_sha1(k, d) { return rstr2b64(rstr_hmac_sha1(str2rstr_utf8(k), str2rstr_utf8(d))); } function any_hmac_sha1(k, d, e) { return rstr2any(rstr_hmac_sha1(str2rstr_utf8(k), str2rstr_utf8(d)), e); } /* * * Perform a simple self-test to see if the VM is working * */ function sha1_vm_test() { return hex_sha1("abc").toLowerCase() == "a9993e364706816aba3e25717850c26c9cd0d89d"; } /* * * Calculate the SHA1 of a raw string * */ function rstr_sha1(s) { return binb2rstr(binb_sha1(rstr2binb(s), s.length * 8)); } /* * * Calculate the HMAC-SHA1 of a key and some data (raw strings) * */ function rstr_hmac_sha1(key, data) { var bkey = rstr2binb(key); if(bkey.length > 16) bkey = binb_sha1(bkey, key.length * 8); var ipad = Array(16), opad = Array(16); for(var i = 0; i < 16; i++) { ipad[i] = bkey[i] ^ 0x36363636; opad[i] = bkey[i] ^ 0x5C5C5C5C; } var hash = binb_sha1(ipad.concat(rstr2binb(data)), 512 + data.length * 8); return binb2rstr(binb_sha1(opad.concat(hash), 512 + 160)); } /* * * Convert a raw string to a hex string * */ function rstr2hex(input) { try { hexcase } catch(e) { hexcase=0; } var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; var output = ""; var x; for(var i = 0; i < input.length; i++) { x = input.charCodeAt(i); output += hex_tab.charAt((x >>> 4) & 0x0F) + hex_tab.charAt( x & 0x0F); } return output; } /* * * Convert a raw string to a base-64 string * */ function rstr2b64(input) { try { b64pad } catch(e) { b64pad=''; } var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var output = ""; var len = input.length; for(var i = 0; i < len; i += 3) { var triplet = (input.charCodeAt(i) << 16) | (i + 1 < len ? input.charCodeAt(i+1) << 8 : 0) | (i + 2 < len ? input.charCodeAt(i+2) : 0); for(var j = 0; j < 4; j++) { if(i * 8 + j * 6 > input.length * 8) output += b64pad; else output += tab.charAt((triplet >>> 6*(3-j)) & 0x3F); } } return output; } /* * * Convert a raw string to an arbitrary string encoding * */ function rstr2any(input, encoding) { var divisor = encoding.length; var remainders = Array(); var i, q, x, quotient; /* Convert to an array of 16-bit big-endian values, forming the dividend */ var dividend = Array(Math.ceil(input.length / 2)); for(i = 0; i < dividend.length; i++) { dividend[i] = (input.charCodeAt(i * 2) << 8) | input.charCodeAt(i * 2 + 1); } /* * * Repeatedly perform a long division. The binary array forms the dividend, * * the length of the encoding is the divisor. Once computed, the quotient * * forms the dividend for the next step. We stop when the dividend is zero. * * All remainders are stored for later use. * */ while(dividend.length > 0) { quotient = Array(); x = 0; for(i = 0; i < dividend.length; i++) { x = (x << 16) + dividend[i]; q = Math.floor(x / divisor); x -= q * divisor; if(quotient.length > 0 || q > 0) quotient[quotient.length] = q; } remainders[remainders.length] = x; dividend = quotient; } /* Convert the remainders to the output string */ var output = ""; for(i = remainders.length - 1; i >= 0; i--) output += encoding.charAt(remainders[i]); /* Append leading zero equivalents */ var full_length = Math.ceil(input.length * 8 / (Math.log(encoding.length) / Math.log(2))) for(i = output.length; i < full_length; i++) output = encoding[0] + output; return output; } /* * * Encode a string as utf-8. * * For efficiency, this assumes the input is valid utf-16. * */ function str2rstr_utf8(input) { var output = ""; var i = -1; var x, y; while(++i < input.length) { /* Decode utf-16 surrogate pairs */ x = input.charCodeAt(i); y = i + 1 < input.length ? input.charCodeAt(i + 1) : 0; if(0xD800 <= x && x <= 0xDBFF && 0xDC00 <= y && y <= 0xDFFF) { x = 0x10000 + ((x & 0x03FF) << 10) + (y & 0x03FF); i++; } /* Encode output as utf-8 */ if(x <= 0x7F) output += String.fromCharCode(x); else if(x <= 0x7FF) output += String.fromCharCode(0xC0 | ((x >>> 6 ) & 0x1F), 0x80 | ( x & 0x3F)); else if(x <= 0xFFFF) output += String.fromCharCode(0xE0 | ((x >>> 12) & 0x0F), 0x80 | ((x >>> 6 ) & 0x3F), 0x80 | ( x & 0x3F)); else if(x <= 0x1FFFFF) output += String.fromCharCode(0xF0 | ((x >>> 18) & 0x07), 0x80 | ((x >>> 12) & 0x3F), 0x80 | ((x >>> 6 ) & 0x3F), 0x80 | ( x & 0x3F)); } return output; } /* * * Encode a string as utf-16 * */ function str2rstr_utf16le(input) { var output = ""; for(var i = 0; i < input.length; i++) output += String.fromCharCode( input.charCodeAt(i) & 0xFF, (input.charCodeAt(i) >>> 8) & 0xFF); return output; } function str2rstr_utf16be(input) { var output = ""; for(var i = 0; i < input.length; i++) output += String.fromCharCode((input.charCodeAt(i) >>> 8) & 0xFF, input.charCodeAt(i) & 0xFF); return output; } /* * * Convert a raw string to an array of big-endian words * * Characters >255 have their high-byte silently ignored. * */ function rstr2binb(input) { var output = Array(input.length >> 2); for(var i = 0; i < output.length; i++) output[i] = 0; for(var i = 0; i < input.length * 8; i += 8) output[i>>5] |= (input.charCodeAt(i / 8) & 0xFF) << (24 - i % 32); return output; } /* * * Convert an array of big-endian words to a string * */ function binb2rstr(input) { var output = ""; for(var i = 0; i < input.length * 32; i += 8) output += String.fromCharCode((input[i>>5] >>> (24 - i % 32)) & 0xFF); return output; } /* * * Calculate the SHA-1 of an array of big-endian words, and a bit length * */ function binb_sha1(x, len) { /* append padding */ x[len >> 5] |= 0x80 << (24 - len % 32); x[((len + 64 >> 9) << 4) + 15] = len; var w = Array(80); var a = 1732584193; var b = -271733879; var c = -1732584194; var d = 271733878; var e = -1009589776; for(var i = 0; i < x.length; i += 16) { var olda = a; var oldb = b; var oldc = c; var oldd = d; var olde = e; for(var j = 0; j < 80; j++) { if(j < 16) w[j] = x[i + j]; else w[j] = bit_rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1); var t = safe_add(safe_add(bit_rol(a, 5), sha1_ft(j, b, c, d)), safe_add(safe_add(e, w[j]), sha1_kt(j))); e = d; d = c; c = bit_rol(b, 30); b = a; a = t; } a = safe_add(a, olda); b = safe_add(b, oldb); c = safe_add(c, oldc); d = safe_add(d, oldd); e = safe_add(e, olde); } return Array(a, b, c, d, e); } /* * * Perform the appropriate triplet combination function for the current * * iteration * */ function sha1_ft(t, b, c, d) { if(t < 20) return (b & c) | ((~b) & d); if(t < 40) return b ^ c ^ d; if(t < 60) return (b & c) | (b & d) | (c & d); return b ^ c ^ d; } /* * * Determine the appropriate additive constant for the current iteration * */ function sha1_kt(t) { return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 : (t < 60) ? -1894007588 : -899497514; } /* * * Add integers, wrapping at 2^32. This uses 16-bit operations internally * * to work around bugs in some JS interpreters. * */ function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF); } /* * * Bitwise rotate a 32-bit number to the left. * */ function bit_rol(num, cnt) { return (num << cnt) | (num >>> (32 - cnt)); }
var requirejs,require,define;!function(global){function isFunction(a){return"[object Function]"===ostring.call(a)}function isArray(a){return"[object Array]"===ostring.call(a)}function each(a,b){if(a){var c;for(c=0;c<a.length&&(!a[c]||!b(a[c],c,a));c+=1);}}function eachReverse(a,b){if(a){var c;for(c=a.length-1;c>-1&&(!a[c]||!b(a[c],c,a));c-=1);}}function hasProp(a,b){return hasOwn.call(a,b)}function getOwn(a,b){return hasProp(a,b)&&a[b]}function eachProp(a,b){var c;for(c in a)if(hasProp(a,c)&&b(a[c],c))break}function mixin(a,b,c,d){return b&&eachProp(b,function(b,e){(c||!hasProp(a,e))&&(!d||"object"!=typeof b||!b||isArray(b)||isFunction(b)||b instanceof RegExp?a[e]=b:(a[e]||(a[e]={}),mixin(a[e],b,c,d)))}),a}function bind(a,b){return function(){return b.apply(a,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(a){throw a}function getGlobal(a){if(!a)return a;var b=global;return each(a.split("."),function(a){b=b[a]}),b}function makeError(a,b,c,d){var e=new Error(b+"\nhttp://requirejs.org/docs/errors.html#"+a);return e.requireType=a,e.requireModules=d,c&&(e.originalError=c),e}function newContext(a){function b(a){var b,c;for(b=0;b<a.length;b++)if(c=a[b],"."===c)a.splice(b,1),b-=1;else if(".."===c){if(0===b||1==b&&".."===a[2]||".."===a[b-1])continue;b>0&&(a.splice(b-1,2),b-=2)}}function c(a,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q=c&&c.split("/"),r=x.map,s=r&&r["*"];if(a&&(a=a.split("/"),k=a.length-1,x.nodeIdCompat&&jsSuffixRegExp.test(a[k])&&(a[k]=a[k].replace(jsSuffixRegExp,"")),"."===a[0].charAt(0)&&q&&(p=q.slice(0,q.length-1),a=p.concat(a)),b(a),a=a.join("/")),d&&r&&(q||s)){g=a.split("/");a:for(h=g.length;h>0;h-=1){if(j=g.slice(0,h).join("/"),q)for(i=q.length;i>0;i-=1)if(f=getOwn(r,q.slice(0,i).join("/")),f&&(f=getOwn(f,j))){l=f,m=h;break a}!n&&s&&getOwn(s,j)&&(n=getOwn(s,j),o=h)}!l&&n&&(l=n,m=o),l&&(g.splice(0,m,l),a=g.join("/"))}return e=getOwn(x.pkgs,a),e?e:a}function d(a){isBrowser&&each(scripts(),function(b){return b.getAttribute("data-requiremodule")===a&&b.getAttribute("data-requirecontext")===u.contextName?(b.parentNode.removeChild(b),!0):void 0})}function e(a){var b=getOwn(x.paths,a);return b&&isArray(b)&&b.length>1?(b.shift(),u.require.undef(a),u.makeRequire(null,{skipMap:!0})([a]),!0):void 0}function f(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function g(a,b,d,e){var g,h,i,j,k=null,l=b?b.name:null,m=a,n=!0,o="";return a||(n=!1,a="_@r"+(F+=1)),j=f(a),k=j[0],a=j[1],k&&(k=c(k,l,e),h=getOwn(C,k)),a&&(k?o=h&&h.normalize?h.normalize(a,function(a){return c(a,l,e)}):-1===a.indexOf("!")?c(a,l,e):a:(o=c(a,l,e),j=f(o),k=j[0],o=j[1],d=!0,g=u.nameToUrl(o))),i=!k||h||d?"":"_unnormalized"+(G+=1),{prefix:k,name:o,parentMap:b,unnormalized:!!i,url:g,originalName:m,isDefine:n,id:(k?k+"!"+o:o)+i}}function h(a){var b=a.id,c=getOwn(y,b);return c||(c=y[b]=new u.Module(a)),c}function i(a,b,c){var d=a.id,e=getOwn(y,d);!hasProp(C,d)||e&&!e.defineEmitComplete?(e=h(a),e.error&&"error"===b?c(e.error):e.on(b,c)):"defined"===b&&c(C[d])}function j(a,b){var c=a.requireModules,d=!1;b?b(a):(each(c,function(b){var c=getOwn(y,b);c&&(c.error=a,c.events.error&&(d=!0,c.emit("error",a)))}),d||req.onError(a))}function k(){globalDefQueue.length&&(apsp.apply(B,[B.length,0].concat(globalDefQueue)),globalDefQueue=[])}function l(a){delete y[a],delete z[a]}function m(a,b,c){var d=a.map.id;a.error?a.emit("error",a.error):(b[d]=!0,each(a.depMaps,function(d,e){var f=d.id,g=getOwn(y,f);!g||a.depMatched[e]||c[f]||(getOwn(b,f)?(a.defineDep(e,C[f]),a.check()):m(g,b,c))}),c[d]=!0)}function n(){var a,b,c=1e3*x.waitSeconds,f=c&&u.startTime+c<(new Date).getTime(),g=[],h=[],i=!1,k=!0;if(!s){if(s=!0,eachProp(z,function(a){var c=a.map,j=c.id;if(a.enabled&&(c.isDefine||h.push(a),!a.error))if(!a.inited&&f)e(j)?(b=!0,i=!0):(g.push(j),d(j));else if(!a.inited&&a.fetched&&c.isDefine&&(i=!0,!c.prefix))return k=!1}),f&&g.length)return a=makeError("timeout","Load timeout for modules: "+g,null,g),a.contextName=u.contextName,j(a);k&&each(h,function(a){m(a,{},{})}),f&&!b||!i||!isBrowser&&!isWebWorker||w||(w=setTimeout(function(){w=0,n()},50)),s=!1}}function o(a){hasProp(C,a[0])||h(g(a[0],null,!0)).init(a[1],a[2])}function p(a,b,c,d){a.detachEvent&&!isOpera?d&&a.detachEvent(d,b):a.removeEventListener(c,b,!1)}function q(a){var b=a.currentTarget||a.srcElement;return p(b,u.onScriptLoad,"load","onreadystatechange"),p(b,u.onScriptError,"error"),{node:b,id:b&&b.getAttribute("data-requiremodule")}}function r(){var a;for(k();B.length;){if(a=B.shift(),null===a[0])return j(makeError("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));o(a)}}var s,t,u,v,w,x={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},y={},z={},A={},B=[],C={},D={},E={},F=1,G=1;return v={require:function(a){return a.require?a.require:a.require=u.makeRequire(a.map)},exports:function(a){return a.usingExports=!0,a.map.isDefine?a.exports?C[a.map.id]=a.exports:a.exports=C[a.map.id]={}:void 0},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return getOwn(x.config,a.map.id)||{}},exports:a.exports||(a.exports={})}}},t=function(a){this.events=getOwn(A,a.id)||{},this.map=a,this.shim=getOwn(x.shim,a.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},t.prototype={init:function(a,b,c,d){d=d||{},this.inited||(this.factory=b,c?this.on("error",c):this.events.error&&(c=bind(this,function(a){this.emit("error",a)})),this.depMaps=a&&a.slice(0),this.errback=c,this.inited=!0,this.ignore=d.ignore,d.enabled||this.enabled?this.enable():this.check())},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0,u.startTime=(new Date).getTime();var a=this.map;return this.shim?void u.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return a.prefix?this.callPlugin():this.load()})):a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;D[a]||(D[a]=!0,u.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id,d=this.depExports,e=this.exports,f=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(f)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{e=u.execCb(c,f,d,e)}catch(g){a=g}else e=u.execCb(c,f,d,e);if(this.map.isDefine&&void 0===e&&(b=this.module,b?e=b.exports:this.usingExports&&(e=this.exports)),a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",j(this.error=a)}else e=f;this.exports=e,this.map.isDefine&&!this.ignore&&(C[c]=e,req.onResourceLoad&&req.onResourceLoad(u,this.map,this.depMaps)),l(c),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=g(a.prefix);this.depMaps.push(d),i(d,"defined",bind(this,function(d){var e,f,k,m=getOwn(E,this.map.id),n=this.map.name,o=this.map.parentMap?this.map.parentMap.name:null,p=u.makeRequire(a.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(d.normalize&&(n=d.normalize(n,function(a){return c(a,o,!0)})||""),f=g(a.prefix+"!"+n,this.map.parentMap),i(f,"defined",bind(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),k=getOwn(y,f.id),void(k&&(this.depMaps.push(f),this.events.error&&k.on("error",bind(this,function(a){this.emit("error",a)})),k.enable()))):m?(this.map.url=u.nameToUrl(m),void this.load()):(e=bind(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),e.error=bind(this,function(a){this.inited=!0,this.error=a,a.requireModules=[b],eachProp(y,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&l(a.map.id)}),j(a)}),e.fromText=bind(this,function(c,d){var f=a.name,i=g(f),k=useInteractive;d&&(c=d),k&&(useInteractive=!1),h(i),hasProp(x.config,b)&&(x.config[f]=x.config[b]);try{req.exec(c)}catch(l){return j(makeError("fromtexteval","fromText eval for "+b+" failed: "+l,l,[b]))}k&&(useInteractive=!0),this.depMaps.push(i),u.completeLoad(f),p([f],e)}),void d.load(a.name,p,e,x))})),u.enable(d,this),this.pluginMaps[d.id]=d},enable:function(){z[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(a,b){var c,d,e;if("string"==typeof a){if(a=g(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[b]=a,e=getOwn(v,a.id))return void(this.depExports[b]=e(this));this.depCount+=1,i(a,"defined",bind(this,function(a){this.defineDep(b,a),this.check()})),this.errback&&i(a,"error",bind(this,this.errback))}c=a.id,d=y[c],hasProp(v,c)||!d||d.enabled||u.enable(a,this)})),eachProp(this.pluginMaps,bind(this,function(a){var b=getOwn(y,a.id);b&&!b.enabled&&u.enable(a,this)})),this.enabling=!1,this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]),c.push(b)},emit:function(a,b){each(this.events[a],function(a){a(b)}),"error"===a&&delete this.events[a]}},u={config:x,contextName:a,registry:y,defined:C,urlFetched:D,defQueue:B,Module:t,makeModuleMap:g,nextTick:req.nextTick,onError:j,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=x.shim,c={paths:!0,bundles:!0,config:!0,map:!0};eachProp(a,function(a,b){c[b]?(x[b]||(x[b]={}),mixin(x[b],a,!0,!0)):x[b]=a}),a.bundles&&eachProp(a.bundles,function(a,b){each(a,function(a){a!==b&&(E[a]=b)})}),a.shim&&(eachProp(a.shim,function(a,c){isArray(a)&&(a={deps:a}),!a.exports&&!a.init||a.exportsFn||(a.exportsFn=u.makeShimExports(a)),b[c]=a}),x.shim=b),a.packages&&each(a.packages,function(a){var b,c;a="string"==typeof a?{name:a}:a,c=a.name,b=a.location,b&&(x.paths[c]=a.location),x.pkgs[c]=a.name+"/"+(a.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(y,function(a,b){a.inited||a.map.unnormalized||(a.map=g(b))}),(a.deps||a.callback)&&u.require(a.deps||[],a.callback)},makeShimExports:function(a){function b(){var b;return a.init&&(b=a.init.apply(global,arguments)),b||a.exports&&getGlobal(a.exports)}return b},makeRequire:function(b,e){function f(c,d,i){var k,l,m;return e.enableBuildCallback&&d&&isFunction(d)&&(d.__requireJsBuild=!0),"string"==typeof c?isFunction(d)?j(makeError("requireargs","Invalid require call"),i):b&&hasProp(v,c)?v[c](y[b.id]):req.get?req.get(u,c,b,f):(l=g(c,b,!1,!0),k=l.id,hasProp(C,k)?C[k]:j(makeError("notloaded",'Module name "'+k+'" has not been loaded yet for context: '+a+(b?"":". Use require([])")))):(r(),u.nextTick(function(){r(),m=h(g(null,b)),m.skipMap=e.skipMap,m.init(c,d,i,{enabled:!0}),n()}),f)}return e=e||{},mixin(f,{isBrowser:isBrowser,toUrl:function(a){var d,e=a.lastIndexOf("."),f=a.split("/")[0],g="."===f||".."===f;return-1!==e&&(!g||e>1)&&(d=a.substring(e,a.length),a=a.substring(0,e)),u.nameToUrl(c(a,b&&b.id,!0),d,!0)},defined:function(a){return hasProp(C,g(a,b,!1,!0).id)},specified:function(a){return a=g(a,b,!1,!0).id,hasProp(C,a)||hasProp(y,a)}}),b||(f.undef=function(a){k();var c=g(a,b,!0),e=getOwn(y,a);d(a),delete C[a],delete D[c.url],delete A[a],eachReverse(B,function(b,c){b[0]===a&&B.splice(c,1)}),e&&(e.events.defined&&(A[a]=e.events),l(a))}),f},enable:function(a){var b=getOwn(y,a.id);b&&h(a).enable()},completeLoad:function(a){var b,c,d,f=getOwn(x.shim,a)||{},g=f.exports;for(k();B.length;){if(c=B.shift(),null===c[0]){if(c[0]=a,b)break;b=!0}else c[0]===a&&(b=!0);o(c)}if(d=getOwn(y,a),!b&&!hasProp(C,a)&&d&&!d.inited){if(!(!x.enforceDefine||g&&getGlobal(g)))return e(a)?void 0:j(makeError("nodefine","No define call for "+a,null,[a]));o([a,f.deps||[],f.exportsFn])}n()},nameToUrl:function(a,b,c){var d,e,f,g,h,i,j,k=getOwn(x.pkgs,a);if(k&&(a=k),j=getOwn(E,a))return u.nameToUrl(j,b,c);if(req.jsExtRegExp.test(a))h=a+(b||"");else{for(d=x.paths,e=a.split("/"),f=e.length;f>0;f-=1)if(g=e.slice(0,f).join("/"),i=getOwn(d,g)){isArray(i)&&(i=i[0]),e.splice(0,f,i);break}h=e.join("/"),h+=b||(/^data\:|\?/.test(h)||c?"":".js"),h=("/"===h.charAt(0)||h.match(/^[\w\+\.\-]+:/)?"":x.baseUrl)+h}return x.urlArgs?h+((-1===h.indexOf("?")?"?":"&")+x.urlArgs):h},load:function(a,b){req.load(u,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||readyRegExp.test((a.currentTarget||a.srcElement).readyState)){interactiveScript=null;var b=q(a);u.completeLoad(b.id)}},onScriptError:function(a){var b=q(a);return e(b.id)?void 0:j(makeError("scripterror","Script error for: "+b.id,a,[b.id]))}},u.require=u.makeRequire(),u}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(a){return"interactive"===a.readyState?interactiveScript=a:void 0}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.1.15",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,ap=Array.prototype,apsp=ap.splice,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}"undefined"==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(a,b,c,d){var e,f,g=defContextName;return isArray(a)||"string"==typeof a||(f=a,isArray(b)?(a=b,b=c,c=d):a=[]),f&&f.context&&(g=f.context),e=getOwn(contexts,g),e||(e=contexts[g]=req.s.newContext(g)),f&&e.configure(f),e.require(a,b,c)},req.config=function(a){return req(a)},req.nextTick="undefined"!=typeof setTimeout?function(a){setTimeout(a,4)}:function(a){a()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(a){req[a]=function(){var b=contexts[defContextName];return b.require[a].apply(b,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(a){var b=a.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return b.type=a.scriptType||"text/javascript",b.charset="utf-8",b.async=!0,b},req.load=function(a,b,c){var d,e=a&&a.config||{};if(isBrowser)return d=req.createNode(e,b,c),d.setAttribute("data-requirecontext",a.contextName),d.setAttribute("data-requiremodule",b),!d.attachEvent||d.attachEvent.toString&&d.attachEvent.toString().indexOf("[native code")<0||isOpera?(d.addEventListener("load",a.onScriptLoad,!1),d.addEventListener("error",a.onScriptError,!1)):(useInteractive=!0,d.attachEvent("onreadystatechange",a.onScriptLoad)),d.src=c,currentlyAddingScript=d,baseElement?head.insertBefore(d,baseElement):head.appendChild(d),currentlyAddingScript=null,d;if(isWebWorker)try{importScripts(c),a.completeLoad(b)}catch(f){a.onError(makeError("importscripts","importScripts failed for "+b+" at "+c,f,[b]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(a){return head||(head=a.parentNode),dataMain=a.getAttribute("data-main"),dataMain?(mainScript=dataMain,cfg.baseUrl||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0):void 0}),define=function(a,b,c){var d,e;"string"!=typeof a&&(c=b,b=a,a=null),isArray(b)||(c=b,b=null),!b&&isFunction(c)&&(b=[],c.length&&(c.toString().replace(commentRegExp,"").replace(cjsRequireRegExp,function(a,c){b.push(c)}),b=(1===c.length?["require"]:["require","exports","module"]).concat(b))),useInteractive&&(d=currentlyAddingScript||getInteractiveScript(),d&&(a||(a=d.getAttribute("data-requiremodule")),e=contexts[d.getAttribute("data-requirecontext")])),(e?e.defQueue:globalDefQueue).push([a,b,c])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this),function(a,b){"use strict";a("when",["require"],function(a){function c(a,b,c,e){return d(a).then(b,c,e)}function d(a){return a instanceof e?a:f(a)}function e(a,b){this._message=a,this.inspect=b}function f(a){return i(function(b){b(a)})}function g(a){return c(a,m)}function h(){function a(a,e,g){b.resolve=b.resolver.resolve=function(b){return d?f(b):(d=!0,a(b),c)},b.reject=b.resolver.reject=function(a){return d?f(m(a)):(d=!0,e(a),c)},b.notify=b.resolver.notify=function(a){return g(a),a}}var b,c,d;return b={promise:W,resolve:W,reject:W,notify:W,resolver:{resolve:W,reject:W,notify:W}},b.promise=c=i(a),b}function i(a){return j(a,T.PromiseStatus&&T.PromiseStatus())}function j(a,b){function c(a,b,c,d){function e(e){e._message(a,b,c,d)}l?l.push(e):G(function(){e(j)})}function d(){return j?j.inspect():F()}function f(a){if(l){var c=l;l=W,G(function(){j=p(i,a),b&&t(j,b),k(c,j)})}}function g(a){f(m(a))}function h(a){if(l){var b=l;G(function(){k(b,o(a))})}}var i,j,l=[];i=new e(c,d),i._status=b;try{a(f,g,h)}catch(n){g(n)}return i}function k(a,b){for(var c=0;c<a.length;c++)a[c](b)}function l(a){return n(new r(a),function(){return D(a)})}function m(a){return n(new s(a),function(){return E(a)})}function n(a,b){return new e(function(b,c,d){try{d(a[b].apply(a,c))}catch(e){d(m(e))}},b)}function o(a){return new e(function(b,c,d,e){var f=c[2];try{e("function"==typeof f?f(a):a)}catch(g){e(g)}})}function p(a,b){if(b===a)return m(new TypeError);if(b instanceof e)return b;try{var c=b===Object(b)&&b.then;return"function"==typeof c?q(c,b):l(b)}catch(d){return m(d)}}function q(a,b){return i(function(c,d){M(a,b,c,d)})}function r(a){this.value=a}function s(a){this.reason=a}function t(a,b){function c(){b.fulfilled()}function d(a){b.rejected(a)}a.then(c,d)}function u(a){return a&&"function"==typeof a.then}function v(a,b,d,e,f){return c(a,function(a){function g(d,e,f){function g(a){n(a)}function h(a){m(a)}var i,j,k,l,m,n,o,p;if(o=a.length>>>0,i=Math.max(0,Math.min(b,o)),k=[],j=o-i+1,l=[],i)for(n=function(a){l.push(a),--j||(m=n=I,e(l))},m=function(a){k.push(a),--i||(m=n=I,d(k))},p=0;o>p;++p)p in a&&c(a[p],h,g,f);else d(k)}return i(g).then(d,e,f)})}function w(a,b,c,d){function e(a){return b?b(a[0]):a[0]}return v(a,1,e,c,d)}function x(a,b,c,d){return B(a,I).then(b,c,d)}function y(){return B(arguments,I)}function z(a){return B(a,D,E)}function A(a,b){return B(a,b)}function B(a,b,d){return c(a,function(a){function e(e,f,g){function h(a,h){c(a,b,d).then(function(a){i[h]=a,--k||e(i)},f,g)}var i,j,k,l;if(k=j=a.length>>>0,i=[],!k)return void e(i);for(l=0;j>l;l++)l in a?h(a[l],l):--k}return j(e)})}function C(a,b){var d=M(L,arguments,1);return c(a,function(a){var e;return e=a.length,d[0]=function(a,d,f){return c(a,function(a){return c(d,function(c){return b(a,c,f,e)})})},K.apply(a,d)})}function D(a){return{state:"fulfilled",value:a}}function E(a){return{state:"rejected",reason:a}}function F(){return{state:"pending"}}function G(a){1===O.push(a)&&N(H)}function H(){k(O),O=[]}function I(a){return a}function J(a){throw"function"==typeof T.reportUnhandled?T.reportUnhandled():G(function(){throw a}),a}c.promise=i,c.resolve=f,c.reject=g,c.defer=h,c.join=y,c.all=x,c.map=A,c.reduce=C,c.settle=z,c.any=w,c.some=v,c.isPromise=u,c.isPromiseLike=u,e.prototype={then:function(){var a,b;return a=arguments,b=this._message,j(function(c,d,e){b("when",a,c,e)},this._status&&this._status.observed())},otherwise:function(a){return this.then(W,a)},ensure:function(a){function b(){return f(a())}return"function"==typeof a?this.then(b,b)["yield"](this):this},done:function(a,b){this.then(a,b).otherwise(J)},"yield":function(a){return this.then(function(){return a})},tap:function(a){return this.then(a)["yield"](this)},spread:function(a){return this.then(function(b){return x(b,function(b){return a.apply(W,b)})})},always:function(a,b){return this.then(a,a,b)}},r.prototype.when=function(a){return"function"==typeof a?a(this.value):this.value},s.prototype.when=function(a,b){if("function"==typeof b)return b(this.reason);throw this.reason};var K,L,M,N,O,P,Q,R,S,T,U,V,W;if(U=a,O=[],P=b.setTimeout,T="undefined"!=typeof console?console:c,"object"==typeof process&&process.nextTick)N=process.nextTick;else if(V=b.MutationObserver||b.WebKitMutationObserver)N=function(a,b,c){var d=a.createElement("div");return new b(c).observe(d,{attributes:!0}),function(){d.setAttribute("x","x")}}(document,V,H);else try{N=U("vertx").runOnLoop||U("vertx").runOnContext}catch(X){N=function(a){P(a,0)}}return Q=Function.prototype,R=Q.call,M=Q.bind?R.bind(R):function(a,b){return a.apply(b,L.call(arguments,2))},S=[],L=S.slice,K=S.reduce||function(a){var b,c,d,e,f;if(f=0,b=Object(this),e=b.length>>>0,c=arguments,c.length<=1)for(;;){if(f in b){d=b[f++];break}if(++f>=e)throw new TypeError}else d=c[1];for(;e>f;++f)f in b&&(d=a(d,b[f],f,b));return d},c})}("function"==typeof define&&define.amd?define:function(a){module.exports=a(require)},this),function(){var a=this,b=a._,c={},d=Array.prototype,e=Object.prototype,f=Function.prototype,g=d.push,h=d.slice,i=d.concat,j=e.toString,k=e.hasOwnProperty,l=d.forEach,m=d.map,n=d.reduce,o=d.reduceRight,p=d.filter,q=d.every,r=d.some,s=d.indexOf,t=d.lastIndexOf,u=Array.isArray,v=Object.keys,w=f.bind,x=function(a){return a instanceof x?a:this instanceof x?void(this._wrapped=a):new x(a)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=x),exports._=x):a._=x,x.VERSION="1.5.2";var y=x.each=x.forEach=function(a,b,d){if(null!=a)if(l&&a.forEach===l)a.forEach(b,d);else if(a.length===+a.length){for(var e=0,f=a.length;f>e;e++)if(b.call(d,a[e],e,a)===c)return}else for(var g=x.keys(a),e=0,f=g.length;f>e;e++)if(b.call(d,a[g[e]],g[e],a)===c)return};x.map=x.collect=function(a,b,c){var d=[];return null==a?d:m&&a.map===m?a.map(b,c):(y(a,function(a,e,f){d.push(b.call(c,a,e,f))}),d)};var z="Reduce of empty array with no initial value";x.reduce=x.foldl=x.inject=function(a,b,c,d){var e=arguments.length>2;if(null==a&&(a=[]),n&&a.reduce===n)return d&&(b=x.bind(b,d)),e?a.reduce(b,c):a.reduce(b);if(y(a,function(a,f,g){e?c=b.call(d,c,a,f,g):(c=a,e=!0)}),!e)throw new TypeError(z);return c},x.reduceRight=x.foldr=function(a,b,c,d){var e=arguments.length>2;if(null==a&&(a=[]),o&&a.reduceRight===o)return d&&(b=x.bind(b,d)),e?a.reduceRight(b,c):a.reduceRight(b);var f=a.length;if(f!==+f){var g=x.keys(a);f=g.length}if(y(a,function(h,i,j){i=g?g[--f]:--f,e?c=b.call(d,c,a[i],i,j):(c=a[i],e=!0)}),!e)throw new TypeError(z);return c},x.find=x.detect=function(a,b,c){var d;return A(a,function(a,e,f){return b.call(c,a,e,f)?(d=a,!0):void 0}),d},x.filter=x.select=function(a,b,c){var d=[];return null==a?d:p&&a.filter===p?a.filter(b,c):(y(a,function(a,e,f){b.call(c,a,e,f)&&d.push(a)}),d)},x.reject=function(a,b,c){return x.filter(a,function(a,d,e){return!b.call(c,a,d,e)},c)},x.every=x.all=function(a,b,d){b||(b=x.identity);var e=!0;return null==a?e:q&&a.every===q?a.every(b,d):(y(a,function(a,f,g){return(e=e&&b.call(d,a,f,g))?void 0:c}),!!e)};var A=x.some=x.any=function(a,b,d){b||(b=x.identity);var e=!1;return null==a?e:r&&a.some===r?a.some(b,d):(y(a,function(a,f,g){return e||(e=b.call(d,a,f,g))?c:void 0}),!!e)};x.contains=x.include=function(a,b){return null==a?!1:s&&a.indexOf===s?-1!=a.indexOf(b):A(a,function(a){return a===b})},x.invoke=function(a,b){var c=h.call(arguments,2),d=x.isFunction(b);return x.map(a,function(a){return(d?b:a[b]).apply(a,c)})},x.pluck=function(a,b){return x.map(a,function(a){return a[b]})},x.where=function(a,b,c){return x.isEmpty(b)?c?void 0:[]:x[c?"find":"filter"](a,function(a){for(var c in b)if(b[c]!==a[c])return!1;return!0})},x.findWhere=function(a,b){return x.where(a,b,!0)},x.max=function(a,b,c){if(!b&&x.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.max.apply(Math,a);if(!b&&x.isEmpty(a))return-1/0;var d={computed:-1/0,value:-1/0};return y(a,function(a,e,f){var g=b?b.call(c,a,e,f):a;g>d.computed&&(d={value:a,computed:g})}),d.value},x.min=function(a,b,c){if(!b&&x.isArray(a)&&a[0]===+a[0]&&a.length<65535)return Math.min.apply(Math,a);if(!b&&x.isEmpty(a))return 1/0;var d={computed:1/0,value:1/0};return y(a,function(a,e,f){var g=b?b.call(c,a,e,f):a;g<d.computed&&(d={value:a,computed:g})}),d.value},x.shuffle=function(a){var b,c=0,d=[];return y(a,function(a){b=x.random(c++),d[c-1]=d[b],d[b]=a}),d},x.sample=function(a,b,c){return arguments.length<2||c?a[x.random(a.length-1)]:x.shuffle(a).slice(0,Math.max(0,b))};var B=function(a){return x.isFunction(a)?a:function(b){return b[a]}};x.sortBy=function(a,b,c){var d=B(b);return x.pluck(x.map(a,function(a,b,e){return{value:a,index:b,criteria:d.call(c,a,b,e)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;if(c!==d){if(c>d||void 0===c)return 1;if(d>c||void 0===d)return-1}return a.index-b.index}),"value")};var C=function(a){return function(b,c,d){var e={},f=null==c?x.identity:B(c);return y(b,function(c,g){var h=f.call(d,c,g,b);a(e,h,c)}),e}};x.groupBy=C(function(a,b,c){(x.has(a,b)?a[b]:a[b]=[]).push(c)}),x.indexBy=C(function(a,b,c){a[b]=c}),x.countBy=C(function(a,b){x.has(a,b)?a[b]++:a[b]=1}),x.sortedIndex=function(a,b,c,d){c=null==c?x.identity:B(c);for(var e=c.call(d,b),f=0,g=a.length;g>f;){var h=f+g>>>1;c.call(d,a[h])<e?f=h+1:g=h}return f},x.toArray=function(a){return a?x.isArray(a)?h.call(a):a.length===+a.length?x.map(a,x.identity):x.values(a):[]},x.size=function(a){return null==a?0:a.length===+a.length?a.length:x.keys(a).length},x.first=x.head=x.take=function(a,b,c){return null==a?void 0:null==b||c?a[0]:h.call(a,0,b)},x.initial=function(a,b,c){return h.call(a,0,a.length-(null==b||c?1:b))},x.last=function(a,b,c){return null==a?void 0:null==b||c?a[a.length-1]:h.call(a,Math.max(a.length-b,0))},x.rest=x.tail=x.drop=function(a,b,c){return h.call(a,null==b||c?1:b)},x.compact=function(a){return x.filter(a,x.identity)};var D=function(a,b,c){return b&&x.every(a,x.isArray)?i.apply(c,a):(y(a,function(a){x.isArray(a)||x.isArguments(a)?b?g.apply(c,a):D(a,b,c):c.push(a)}),c)};x.flatten=function(a,b){return D(a,b,[])},x.without=function(a){return x.difference(a,h.call(arguments,1))},x.uniq=x.unique=function(a,b,c,d){x.isFunction(b)&&(d=c,c=b,b=!1);var e=c?x.map(a,c,d):a,f=[],g=[];return y(e,function(c,d){(b?d&&g[g.length-1]===c:x.contains(g,c))||(g.push(c),f.push(a[d]))}),f},x.union=function(){return x.uniq(x.flatten(arguments,!0))},x.intersection=function(a){var b=h.call(arguments,1);return x.filter(x.uniq(a),function(a){return x.every(b,function(b){return x.indexOf(b,a)>=0})})},x.difference=function(a){var b=i.apply(d,h.call(arguments,1));return x.filter(a,function(a){return!x.contains(b,a)})},x.zip=function(){for(var a=x.max(x.pluck(arguments,"length").concat(0)),b=new Array(a),c=0;a>c;c++)b[c]=x.pluck(arguments,""+c);return b},x.object=function(a,b){if(null==a)return{};for(var c={},d=0,e=a.length;e>d;d++)b?c[a[d]]=b[d]:c[a[d][0]]=a[d][1];return c},x.indexOf=function(a,b,c){if(null==a)return-1;var d=0,e=a.length;if(c){if("number"!=typeof c)return d=x.sortedIndex(a,b),a[d]===b?d:-1;d=0>c?Math.max(0,e+c):c}if(s&&a.indexOf===s)return a.indexOf(b,c);for(;e>d;d++)if(a[d]===b)return d;return-1},x.lastIndexOf=function(a,b,c){if(null==a)return-1;var d=null!=c;if(t&&a.lastIndexOf===t)return d?a.lastIndexOf(b,c):a.lastIndexOf(b);for(var e=d?c:a.length;e--;)if(a[e]===b)return e;return-1},x.range=function(a,b,c){arguments.length<=1&&(b=a||0,a=0),c=arguments[2]||1;for(var d=Math.max(Math.ceil((b-a)/c),0),e=0,f=new Array(d);d>e;)f[e++]=a,a+=c;return f};var E=function(){};x.bind=function(a,b){var c,d;if(w&&a.bind===w)return w.apply(a,h.call(arguments,1));if(!x.isFunction(a))throw new TypeError;return c=h.call(arguments,2),d=function(){if(!(this instanceof d))return a.apply(b,c.concat(h.call(arguments)));E.prototype=a.prototype;var e=new E;E.prototype=null;var f=a.apply(e,c.concat(h.call(arguments)));return Object(f)===f?f:e}},x.partial=function(a){var b=h.call(arguments,1);return function(){return a.apply(this,b.concat(h.call(arguments)))}},x.bindAll=function(a){var b=h.call(arguments,1);if(0===b.length)throw new Error("bindAll must be passed function names");return y(b,function(b){a[b]=x.bind(a[b],a)}),a},x.memoize=function(a,b){var c={};return b||(b=x.identity),function(){var d=b.apply(this,arguments);return x.has(c,d)?c[d]:c[d]=a.apply(this,arguments)}},x.delay=function(a,b){var c=h.call(arguments,2);return setTimeout(function(){return a.apply(null,c)},b)},x.defer=function(a){return x.delay.apply(x,[a,1].concat(h.call(arguments,1)))},x.throttle=function(a,b,c){var d,e,f,g=null,h=0;c||(c={});var i=function(){h=c.leading===!1?0:new Date,g=null,f=a.apply(d,e)};return function(){var j=new Date;h||c.leading!==!1||(h=j);var k=b-(j-h);return d=this,e=arguments,0>=k?(clearTimeout(g),g=null,h=j,f=a.apply(d,e)):g||c.trailing===!1||(g=setTimeout(i,k)),f}},x.debounce=function(a,b,c){var d,e,f,g,h;return function(){f=this,e=arguments,g=new Date;var i=function(){var j=new Date-g;b>j?d=setTimeout(i,b-j):(d=null,c||(h=a.apply(f,e)))},j=c&&!d;return d||(d=setTimeout(i,b)),j&&(h=a.apply(f,e)),h}},x.once=function(a){var b,c=!1;return function(){return c?b:(c=!0,b=a.apply(this,arguments),a=null,b)}},x.wrap=function(a,b){return function(){var c=[a];return g.apply(c,arguments),b.apply(this,c)}},x.compose=function(){var a=arguments;return function(){for(var b=arguments,c=a.length-1;c>=0;c--)b=[a[c].apply(this,b)];return b[0]}},x.after=function(a,b){return function(){return--a<1?b.apply(this,arguments):void 0}},x.keys=v||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[];for(var c in a)x.has(a,c)&&b.push(c);return b},x.values=function(a){for(var b=x.keys(a),c=b.length,d=new Array(c),e=0;c>e;e++)d[e]=a[b[e]];return d},x.pairs=function(a){for(var b=x.keys(a),c=b.length,d=new Array(c),e=0;c>e;e++)d[e]=[b[e],a[b[e]]];return d},x.invert=function(a){for(var b={},c=x.keys(a),d=0,e=c.length;e>d;d++)b[a[c[d]]]=c[d];return b},x.functions=x.methods=function(a){var b=[];for(var c in a)x.isFunction(a[c])&&b.push(c);return b.sort()},x.extend=function(a){return y(h.call(arguments,1),function(b){if(b)for(var c in b)a[c]=b[c]}),a},x.pick=function(a){var b={},c=i.apply(d,h.call(arguments,1));return y(c,function(c){c in a&&(b[c]=a[c])}),b},x.omit=function(a){var b={},c=i.apply(d,h.call(arguments,1));for(var e in a)x.contains(c,e)||(b[e]=a[e]);return b},x.defaults=function(a){return y(h.call(arguments,1),function(b){if(b)for(var c in b)void 0===a[c]&&(a[c]=b[c])}),a},x.clone=function(a){return x.isObject(a)?x.isArray(a)?a.slice():x.extend({},a):a},x.tap=function(a,b){return b(a),a};var F=function(a,b,c,d){if(a===b)return 0!==a||1/a==1/b;if(null==a||null==b)return a===b;a instanceof x&&(a=a._wrapped),b instanceof x&&(b=b._wrapped);var e=j.call(a);if(e!=j.call(b))return!1;switch(e){case"[object String]":return a==String(b);case"[object Number]":return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case"[object Date]":case"[object Boolean]":return+a==+b;case"[object RegExp]":return a.source==b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase}if("object"!=typeof a||"object"!=typeof b)return!1;for(var f=c.length;f--;)if(c[f]==a)return d[f]==b;var g=a.constructor,h=b.constructor;if(g!==h&&!(x.isFunction(g)&&g instanceof g&&x.isFunction(h)&&h instanceof h))return!1; c.push(a),d.push(b);var i=0,k=!0;if("[object Array]"==e){if(i=a.length,k=i==b.length)for(;i--&&(k=F(a[i],b[i],c,d)););}else{for(var l in a)if(x.has(a,l)&&(i++,!(k=x.has(b,l)&&F(a[l],b[l],c,d))))break;if(k){for(l in b)if(x.has(b,l)&&!i--)break;k=!i}}return c.pop(),d.pop(),k};x.isEqual=function(a,b){return F(a,b,[],[])},x.isEmpty=function(a){if(null==a)return!0;if(x.isArray(a)||x.isString(a))return 0===a.length;for(var b in a)if(x.has(a,b))return!1;return!0},x.isElement=function(a){return!(!a||1!==a.nodeType)},x.isArray=u||function(a){return"[object Array]"==j.call(a)},x.isObject=function(a){return a===Object(a)},y(["Arguments","Function","String","Number","Date","RegExp"],function(a){x["is"+a]=function(b){return j.call(b)=="[object "+a+"]"}}),x.isArguments(arguments)||(x.isArguments=function(a){return!(!a||!x.has(a,"callee"))}),"function"!=typeof/./&&(x.isFunction=function(a){return"function"==typeof a}),x.isFinite=function(a){return isFinite(a)&&!isNaN(parseFloat(a))},x.isNaN=function(a){return x.isNumber(a)&&a!=+a},x.isBoolean=function(a){return a===!0||a===!1||"[object Boolean]"==j.call(a)},x.isNull=function(a){return null===a},x.isUndefined=function(a){return void 0===a},x.has=function(a,b){return k.call(a,b)},x.noConflict=function(){return a._=b,this},x.identity=function(a){return a},x.times=function(a,b,c){for(var d=Array(Math.max(0,a)),e=0;a>e;e++)d[e]=b.call(c,e);return d},x.random=function(a,b){return null==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))};var G={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};G.unescape=x.invert(G.escape);var H={escape:new RegExp("["+x.keys(G.escape).join("")+"]","g"),unescape:new RegExp("("+x.keys(G.unescape).join("|")+")","g")};x.each(["escape","unescape"],function(a){x[a]=function(b){return null==b?"":(""+b).replace(H[a],function(b){return G[a][b]})}}),x.result=function(a,b){if(null==a)return void 0;var c=a[b];return x.isFunction(c)?c.call(a):c},x.mixin=function(a){y(x.functions(a),function(b){var c=x[b]=a[b];x.prototype[b]=function(){var a=[this._wrapped];return g.apply(a,arguments),M.call(this,c.apply(x,a))}})};var I=0;x.uniqueId=function(a){var b=++I+"";return a?a+b:b},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var J=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},L=/\\|'|\r|\n|\t|\u2028|\u2029/g;x.template=function(a,b,c){var d;c=x.defaults({},c,x.templateSettings);var e=new RegExp([(c.escape||J).source,(c.interpolate||J).source,(c.evaluate||J).source].join("|")+"|$","g"),f=0,g="__p+='";a.replace(e,function(b,c,d,e,h){return g+=a.slice(f,h).replace(L,function(a){return"\\"+K[a]}),c&&(g+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'"),d&&(g+="'+\n((__t=("+d+"))==null?'':__t)+\n'"),e&&(g+="';\n"+e+"\n__p+='"),f=h+b.length,b}),g+="';\n",c.variable||(g="with(obj||{}){\n"+g+"}\n"),g="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+g+"return __p;\n";try{d=new Function(c.variable||"obj","_",g)}catch(h){throw h.source=g,h}if(b)return d(b,x);var i=function(a){return d.call(this,a,x)};return i.source="function("+(c.variable||"obj")+"){\n"+g+"}",i},x.chain=function(a){return x(a).chain()};var M=function(a){return this._chain?x(a).chain():a};x.mixin(x),y(["pop","push","reverse","shift","sort","splice","unshift"],function(a){var b=d[a];x.prototype[a]=function(){var c=this._wrapped;return b.apply(c,arguments),"shift"!=a&&"splice"!=a||0!==c.length||delete c[0],M.call(this,c)}}),y(["concat","join","slice"],function(a){var b=d[a];x.prototype[a]=function(){return M.call(this,b.apply(this._wrapped,arguments))}}),x.extend(x.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),"function"==typeof define&&define.amd&&define("underscore",[],function(){return x})}.call(this);var __slice=[].slice;define("core/errors",[],function(){var a,b,c,d;return b=function(a,b){return function(){var c;return c=1<=arguments.length?__slice.call(arguments,0):[],"string"==typeof b&&(b=new Error(b+" "+c.join(" "))),b.code=a,b}},d=function(a){return null!=a.code&&"number"==typeof a.code?a:b(500,a)()},c=function(a){var b;return b="string"==typeof a?a:null!=a.stack?a.stack:void 0,console.log(b)},a={status:{exit:b(0,"exit")},config:{missing_texture:b(504,"texture/image missing in data"),loading_texture:b(505,"texture loading error")},tasks:{forcedFallback:b(101,"forced fallback (_fallback is true in options)"),unsupp_renderer:b(110,"No renderer availables"),no_webgl:b(111,"Webgl not supported"),no_options:b(501,"missing options in App initialize call"),no_container:b(502,"App config must have 'container' property."),no_assets:b(503,"App config must have 'assetsDir' property."),no_city:b(504,"App config must have 'city' property."),unknown_city:b(505,"Config 'city' don't match any known cities."),no_msg:b(506,"App config must have 'message' property."),no_msg_prop:b(507,"'message' config missing property : "),capabilities:b(510,"Missing mandatory capability : "),unknown_renderer:b(511,"Unknown renderer passed in options "),no_hxr:b(512,"No HXR available, check jquery support ajax or you have other hxr lib")},internal:{"abstract":b(520,"Abstract methods must be overrided.")},errorHandler:c,normalize:d}}),define("core/quality",[],function(){var a,b,c,d,e,f,g,h,i;return a=2,c=1,b=0,i=2,g=function(a){return i=a},e=function(d,e,f){switch(i){case b:return d;case c:return e;case a:return f}},d=function(d,e,f){switch(i){case b:d();break;case c:e();break;case a:f()}},f=function(a){return h[a][i]},h={half_dpi:[!0,!0,!1],assets_path:["low","med","hi"],shaderQuality:["QUALITY_LOW","QUALITY_MED","QUALITY_HI"],msaa:[!1,!1,!1],glsl_precision:["mediump","mediump","highp"],shadowCasting:[!1,!0,!0],shadowMapSize:[512,1024,2048],shadowMapMethod:[0,0,1],skybox_size:[16,16,128],skybox_steps:[4,4,16],reflectionMapSize:[[128,64],[512,256],[1024,512]],reflectionBlurIter:[4,8,16],reflactableA:[!0,!0,!0],reflactableB:[!1,!1,!0]},{HI:a,MED:c,setQuality:g,get:e,call:d,param:f}}),define("core/progressor",["when"],function(a){var b;return b=function(){function b(){this.loadables=[]}return b.prototype.addLoadable=function(a){return this.loadables.push(a)},b.prototype.addLoadables=function(a){var b,c,d,e;for(e=[],c=0,d=a.length;d>c;c++)b=a[c],e.push(this.loadables.push(b));return e},b.prototype.reset=function(){return this.loadables=[]},b.prototype.start=function(){var b,c,d,e,f,g,h,i,j;for(g=this.loadables.length,e=0,i=0,b=a.defer(),a.all(this.loadables,b.resolve,b.reject),d=function(){return e++,i=e/g,b.notify({code:"progress",data:i})},j=this.loadables,f=0,h=j.length;h>f;f++)c=j[f],c.then(d);return b.promise},b}()}),define("core/hasDDS",[],function(){return{dds:!0,pvr:!0}}),define("lib/log",[],function(){function a(c){return a.enabled(c)?function(d){d=b(d);var e=new Date,f=e-(a[c]||e);a[c]=e,d=c+" "+d+" +"+a.humanize(f),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function b(a){return a instanceof Error?a.stack||a.message:a}return a.names=[],a.skips=[],a.enable=function(b){for(var c=(b||"").split(/[\s,]+/),d=c.length,e=0;d>e;e++)b=c[e].replace("*",".*?"),"-"===b[0]?a.skips.push(new RegExp("^"+b.substr(1)+"$")):a.names.push(new RegExp("^"+b+"$"))},a.disable=function(){a.enable("")},a.humanize=function(a){var b=1e3,c=6e4,d=60*c;return a>=d?(a/d).toFixed(1)+"h":a>=c?(a/c).toFixed(1)+"m":a>=b?(a/b|0)+"s":a+"ms"},a.enabled=function(b){for(var c=0,d=a.skips.length;d>c;c++)if(a.skips[c].test(b))return!1;for(var c=0,d=a.names.length;d>c;c++)if(a.names[c].test(b))return!0;return!1},a}),define("lib/indexof",[],function(){return function(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0;c<a.length;++c)if(a[c]===b)return c;return-1}}),define("lib/emitter",["lib/indexof"],function(a){function b(a){return a?c(a):void 0}function c(a){for(var c in b.prototype)a[c]=b.prototype[c];return a}return b.prototype.on=b.prototype.addEventListener=function(a,b){return this._callbacks=this._callbacks||{},(this._callbacks[a]=this._callbacks[a]||[]).push(b),this},b.prototype.once=function(a,b){function c(){d.off(a,c),b.apply(this,arguments)}var d=this;return this._callbacks=this._callbacks||{},b._off=c,this.on(a,c),this},b.prototype.off=b.prototype.removeListener=b.prototype.removeAllListeners=b.prototype.removeEventListener=function(b,c){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var d=this._callbacks[b];if(!d)return this;if(1==arguments.length)return delete this._callbacks[b],this;var e=a(d,c._off||c);return~e&&d.splice(e,1),this},b.prototype.emit=function(a){this._callbacks=this._callbacks||{};var b=[].slice.call(arguments,1),c=this._callbacks[a];if(c){c=c.slice(0);for(var d=0,e=c.length;e>d;++d)c[d].apply(this,b)}return this},b.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks[a]||[]},b.prototype.hasListeners=function(a){return!!this.listeners(a).length},b});var __slice=[].slice;define("lib/gui",[],function(){var a,b,c,d,e;return c=function(){var a,b,c,d,e,f,g;return e=arguments[0],g=arguments[1],d=arguments[2],a=4<=arguments.length?__slice.call(arguments,3):[],f=g[d],c={},"c"===f.type?(c[d]="#"+f.value.getHex().toString(16),b=e.addColor.apply(e,[c,d].concat(__slice.call(a))),b.onChange(function(a){return a=a.replace("#","0x"),f.value.setHex(a),console.log("[gui]",f.value.getHex().toString(16))})):(c[d]=f.value,b=e.add.apply(e,[c,d].concat(__slice.call(a))),b.onChange(function(){return f.value=c[d]}))},a=null,e={onChange:function(){}},d=function(){return e},d.u=function(){},b=function(e){var f,g;return b.enabled(e)?(null==b.datgui&&(b.datgui=new a),f=b.folders,f[e]||(f[e]=b.datgui.addFolder(e)),g=f[e],g.open(),function(a){var b;return b=function(){var b;return b=1<=arguments.length?__slice.call(arguments,0):[],a.add.apply(a,b)},b.addColor=function(){var b;return b=1<=arguments.length?__slice.call(arguments,0):[],a.addColor.apply(a,b)},b.u=function(){var b,d,e;return e=arguments[0],d=arguments[1],b=3<=arguments.length?__slice.call(arguments,2):[],c.apply(null,[a,e,d].concat(__slice.call(b)))},b}(g)):d},b.setup=function(b){return a=b},b.folders={},b.datgui=null,b.names=[],b.skips=[],b.enable=function(a){var c,d,e,f,g;for(d=(a||"").split(/[\s,]+/),g=[],e=0,f=d.length;f>e;e++)c=d[e],a=c.replace("*",".*?"),g.push("-"===a[0]?b.skips.push(new RegExp("^"+a.substr(1)+"$")):b.names.push(new RegExp("^"+a+"$")));return g},b.disable=function(){return b.enable("")},b.enabled=function(a){var c,d,e,f,g,h,i,j;for(i=b.skips,e=0,g=i.length;g>e;e++)if(d=i[e],d.test(a))return!1;for(j=b.names,f=0,h=j.length;h>f;f++)if(c=j[f],c.test(a))return!0;return!1},b}),define("lib/assembleCube",[],function(){return function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n;for(k=a[0],i=k.mipmaps,l=k.width,f=k.height,e=k.format,j=i.length,c=new b.CompressedTexture,1===j&&(c.minFilter=b.LinearFilter),h=c.images=c.image=[],d=m=0;6>m;d=++m)for(h[d]={mipmaps:[]},h[d].format=e,h[d].width=l,h[d].height=f,g=n=0;j>n;g=n+=1)h[d].mipmaps.push(a[d].mipmaps[g]);return c.needsUpdate=!0,c.name="asembled",c.format=e,c.width=l,c.height=f,c}}),define("engine/consts",[],function(){return function(){return{introDuration:21,focusCenter:[0,0,0],gScale:10,gTranslate:[2.95,-509.04,-1261.66],signAlign:[0,0,-1],focusHeights:{amsterdam:-30,london:-30,paris:-10,portland:-30,sanfransisco:-30,tokyo:-30,washington:-30,generic:-30,newyork:-30,berlin:-30,saopaulo:-30,atlanta:-30,shangai:-30,gurgaon:-30},citysight:[-1,0,0,0,0,.7270230650901794,.6866130232810974,0,0,.6866130232810974,-.7270230650901794,0,0,601.7,-637.3,1]}}}),define("core/tasks",["when","underscore","./errors","./quality","./progressor","./hasDDS","lib/log","lib/emitter","lib/gui","lib/assembleCube","engine/consts"],function(a,b,c,d,e,f,g,h,i,j,k){var l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E;return n=k(),E=c.tasks,o=E.forcedFallback,x=E.no_webgl,w=E.no_options,s=E.no_container,r=E.no_city,u=E.no_msg,v=E.no_msg_prop,z=E.unknown_city,m=E.capabilities,A=E.unknown_renderer,t=E.no_hxr,l=null,D=null,p=function(a,b){var c,d;return null==b&&(b=""),d=new RegExp("&?"+a+"=([^&]+)","g"),c=d.exec(location.search),c?c[1].replace(/%20|\+/g," "):b},B=function(a){return null!=n.focusHeights[a]},C=function(a,b){return null==a&&b.reject(u()),null==a.font&&b.reject(v("font")),null==a.color&&b.reject(v("color")),null==a.lineHeight?b.reject(v("lineHeight")):void 0},q=function(a){var b,c;return b=a.substr(0,a.length-4),c=a.substr(-4),[b+"_05"+c,b+"_03"+c,b+"_01"+c,b+"_07"+c,b+"_04"+c,b+"_10"+c]},y={status:function(b){var c;return c=a.defer(),setTimeout(function(){return c.notify(b),c.resolve()},1),c.promise},getQuery:p,defer:function(c){var d;return d=a.defer(),b.defer(d.resolve),d.promise["yield"](c)},domReady:function(b){var c,d;return c=a.defer(),d=document.readyState,("complete"===d||"loaded"===d||"interactive"===d)&&c.resolve(b),document.addEventListener("DOMContentLoaded",function(){return c.resolve(b)}),c.promise},initLog:function(b){var c;return c=function(a){return null!=a?a:p("log")},g.enable(c(b.options._log)),a(b)},initGui:function(b){var c,d;return c=function(a){return null!=a?a:p("gui")},d=c(b.options._gui),""!==d?y.loadModule("lib/dat-gui").then(function(a){return i.setup(a),i.enable(d)})["yield"](b):a(b)},setQuality:function(b){var c;return c=function(a){return null!=a?a:parseInt(p("quality",2))},d.setQuality(c(b.options.quality)),a(b)},setDevMode:function(b){var c,d,e;return e=parseInt(p("dev",0)),b.devMode=e?!0:!1,c=parseInt(p("noBBC",0)),d=p("city",""),0!==c&&(b.options._noDDS=!0),""!==d&&(b.options.city=d),a(b)},setDirect:function(b){var c,d;return d=new RegExp("&?quality=([^&]+)","g"),c=d.test(location.search),b.isDirect=function(){return c},a(b)},validate:function(b){var c,d;return c=a.defer(),d=b.options,null==d&&c.reject(w()),null==d.container&&c.reject(s()),null==d.assetsDir&&c.reject(no_assets()),null==d.city&&c.reject(r()),B(d.city)||c.reject(z(d.city)),C(d.message,c),c.resolve(b),c.promise},forceFallback:function(b){return b.options._fallback===!0?a.reject(o()):a.resolve(b)},capabilities:function(b){var c,e,g;return b._supportS3TC=!1,console.log("DDS: "+f.dds),console.log("PVR: "+f.pvr),c=b.options._pratio||window.devicePixelRatio,null==c&&(c=1),b.devicePixelRatio=function(){return c},b.hdpi=function(){return c>1.5},b.halfDpi=function(){return b.hdpi&&d.param("half_dpi")},b.useDDS=function(){return b._supportS3TC&&!b.options._noDDS&&f.dds},b.usePVR=function(){return b._supportPVRTC&&!b.options._noDDS&&f.pvr},e=document.createElement("canvas"),g=e.getContext("webgl")||e.getContext("experimental-webgl"),null==g?a.reject(x()):a(b)},inputFeatures:function(b){return b.inputType=function(){return window.navigator.msPointerEnabled?"msPointer":"none"}(),a(b)},setupAnimator:function(b){return function(){var a,c,d;return d=[],c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){return window.setTimeout(a,1e3/60)},a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.clearTimeout,b.options._framerate&&(c=function(a){return window.setTimeout(a,1e3/b.options._framerate)}),b.requestAnimationFrame=function(a){return c.call(window,a)},b.cancelAnimationFrame=function(b){return a.call(window,b)}}(),a(b)},setupFraming:function(b){var c,d,e;return d="undefined"!=typeof performance&&null!==performance?function(){return performance.now()}:function(){return Date.now()},e=d(),(c=function(){var a,f;return f=d(),a=(f-e)/1e3,b.dt=a>.2?1/60:a,e=f,b.requestAnimationFrame(c)})(),a(b)},setupFocus:function(b){var c;return c=window.document.hasFocus(),window.addEventListener("focus",function(){return c=!0,b.emit("focus",!0),b._checkPause()}),window.addEventListener("blur",function(){return c=!1,b.emit("focus",!1),b._checkPause()}),b.hasFocus=function(){return c},a(b)},normalizeAudio:function(b){return window.AudioContext=window.AudioContext||window.webkitAudioContext,a(b)},normalizeFullscreen:function(b){var c;return b._isFullScreen=!1,document.exitFullscreen=function(){return document.exitFullscreen||document.webkitCancelFullScreen||document.mozCancelFullScreen||function(){return console.log("fullscreen not available")}}(),c=document.documentElement,c.requestFullscreen=function(){return c.requestFullscreen||c.webkitRequestFullscreen||c.mozRequestFullScreen||function(){return console.log("fullscreen not available")}}(),b.enterFs=function(){return c.requestFullscreen()},b.exitFs=function(){return document.exitFullscreen()},a(b)},configure:function(c){var g,i,j,k,l,m,n,o,p,q,r,t,u;return h(c),j=a.defer(),l=c.options,u=l.duration||60,m=!1,t=!1,k=!1,i=l.crossOrigin||null,n=d.param("assets_path"),o=function(a){return""+l.assetsDir+"/"+a},r=function(a){return""+l.assetsDir+"/"+n+"/"+a},q=function(a){return""+l.city+"/"+a},p=function(a){return c._supportS3TC&&f.dds?a+".dds":c._supportPVRTC&&f.pvr?a+".pvr":a},c.getLocal=function(){return l.local},c.resolveAsset=o,c.resolveQAsset=r,c.resolveCity=q,c.progressor=new e,c.addLoadable=function(a){return c.progressor.addLoadable(a)},c.resolveLocalized=function(a){return""+l.assetsDir+"/i18n/"+l.local+"/"+a},c.crossOrigin=function(){return i},c.toggleSound=function(){return k=!k,c.emit("toggleSound",!k)},c.muted=function(){return k},c.setCity=function(a){return c.options.city!==a?(c.options.city=a,c.emit("city-change",a)):void 0},c.setMessage=function(a){return a=b.defaults(a,c.options.message),c.options.message=a,c.emit("message-change",a)},c.toggleFullscreen=function(){return c._isFullScreen?c.exitFs():c.enterFs(),c._isFullScreen=!c._isFullScreen},c.xpDuration=function(){return 1e3*u},c._checkPause=function(){return!c.hasFocus()||t?c._pause():c.hasFocus()||!t?c._resume():void 0},c._pause=function(){return m?void 0:(m=!0,c.emit("pause",!0))},c._resume=function(){return m?(m=!1,c.emit("pause",!1)):void 0},c.pause=function(){return t=!0,c._checkPause()},c.resume=function(){return t=!1,c._checkPause()},c.paused=function(){return m},c.loadTexture=function(a){return a=r(a),a=p(a),y.loadTexture(c,a)},c.loadCube=function(a){return a=r(a),a=p(a),y.loadCube(c,a)},c.loadImage=function(a){return a=r(a),y.loadImage(c,a)},g=l.container,"string"==typeof g&&(g=document.getElementById(g)),null==g&&j.reject(s()),c.getWrapper=function(){return g},j.resolve(c),j.promise},loadEngine:function(a){var b;return b=y.loadModule("engine").then(function(b){return a.engineClass=b,l=b.THREE})["yield"](a),a.addLoadable(b),b},finalize:function(b){return a(b)},ajax:function(b){var c,d,e;return c=a.defer(),null==D&&c.reject(t()),e=b.success,b.success=function(a){return"function"==typeof e&&e(a),c.resolve(a)},d=b.error,b.error=function(a,b,e){return"function"==typeof d&&d(b,e),c.reject(e)},D(b),c.promise},loadJson:function(a,b){return y.ajax({url:a,dataType:"text"}).then(function(a){return JSON.parse(a,b)})},loadBytes:function(b,c){var d,e;return null==c&&(c="GET"),d=a.defer(),e=new XMLHttpRequest,e.open(c,b,!0),e.responseType="arraybuffer",e.onload=function(){return d.resolve(e.response)},e.error=function(a){return d.reject(a)},e.send(),d.promise},loadModule:function(b){var c;return c=a.defer(),require([b],function(a){return c.resolve(a)},function(a){return c.reject(a)}),c.promise},loadImage:function(b,c){var d,e;return d=a.defer(),e=document.createElement("img"),e.onload=function(){return d.resolve(e)},e.onerror=function(a){return d.reject(a)},e.src=c,b.addLoadable(d.promise),d.promise},loadTexture:function(b,c){var d,e,f;return e=c.substr(-3),"dds"===e?y.loadDDS(b,c):"pvr"===e?y.loadPVR(b,c):(d=a.defer(),f=new l.TextureLoader,f.crossOrigin=b.crossOrigin(),f.load(c,d.resolve,d.notify,d.reject),b.addLoadable(d.promise),d.promise)},loadCube:function(c,d){var e,f,g,h;return e=d.substr(-3),"dds"===e||"pvr"===e?y.loadCompressedCube(c,d):(h=q(d),f=function(a){return y.loadImage(c,a)},g=b.map(h,f),a.all(g).then(function(a){var b;return b=new l.CubeTexture,b.image=a,b.images=a,b.needsUpdate=!0,b.flipY=!1,b}))},loadDDS:function(a,b){return y.loadCompressed(a,b,"dds")},loadPVR:function(a,b){return y.loadCompressed(a,b,"pvr")},loadCompressedCube:function(c,d){var e,f,g,h,i;return e=d.substr(-3),"dds"===e?f=function(a){return y.loadDDS(c,a)}:"pvr"===e&&(f=function(a){return y.loadPVR(c,a)}),d=d.substr(0,d.length-4),i=q(d),console.log("[tasks.loadCompressedCube]",i),i=function(){var a,b,c;for(c=[],a=0,b=i.length;b>a;a++)h=i[a],c.push(h+"."+e);return c}(),g=b.map(i,f),a.all(g).then(function(a){return j(a,l)})},loadCompressed:function(b,c,d){var e,f;return e=a.defer(),f="dds"===d?new l.DDSLoader:new l.PVRLoader,f.load(c,e.resolve,e.reject),b.addLoadable(e.promise),e.promise}}}),define("core/bootstrap",["./tasks","when","lib/log"],function(a,b,c){var d,e,f;return d=c("bootstrap"),f=function(b){return a.status("bootstrap.complete")["yield"](b)},e=["defer","domReady","initLog","initGui","setQuality","setDevMode","setDirect","validate","forceFallback","capabilities","inputFeatures","setupAnimator","setupFraming","setupFocus","normalizeAudio","normalizeFullscreen","configure","finalize"],function(c){return b.reduce(e,function(b,c){return d(c),a[c](b)},c)}}),define("core/notifications",["when"],function(a){var b,c,d,e,f;return b=null,f=[],c=function(){var a,c,d,e;for(e=[],c=0,d=f.length;d>c;c++)a=f[c],e.push(b.notify(a));return e},d=function(){return null!=b&&b.reject(),b=a.defer(),setTimeout(c,1),b.promise},e=function(a,c){return a={code:a,data:c},null!=b?b.notify(a):f.push(a)},{pipe:d,send:e}});var __bind=function(a,b){return function(){return a.apply(b,arguments)}};define("app",["when","core/bootstrap","core/tasks","core/errors","core/notifications"],function(a,b,c,d,e){var f;return f=function(){function f(){this.recover=__bind(this.recover,this),this.onReady=__bind(this.onReady,this),this.initEngine=__bind(this.initEngine,this),this.run=__bind(this.run,this),this.ctx=null,this.engine=null,this.views=null,this.enginep=null}return f.prototype.initialize=function(a){return this.ctx={options:a},b(this.ctx).then(this.run).then(e.pipe).otherwise(this.recover)},f.prototype.intro=function(){return this.engine.intro()},f.prototype.citySight=function(a){return this.engine.citySight(a)},f.prototype.setCity=function(a){return this.ctx.setCity(a)},f.prototype.setMessage=function(a){return this.ctx.setMessage(a)},f.prototype.run=function(){return c.loadEngine(this.ctx).then(this.initEngine).then(this.onReady)},f.prototype.initEngine=function(){return this.ctx.progressor.reset(),this.engine=new this.ctx.engineClass,this.engine.initialize(this.ctx),this.ctx.progressor.start()},f.prototype.onReady=function(){return e.send("ready"),this.engine.play()},f.prototype.dispose=function(){},f.prototype.recover=function(b){return this.dispose(),b=d.normalize(b),console.log(b.stack),b.code>=500?a.reject(b):a(b)},f}()}),require.config({shim:{three:{exports:"THREE"}}}),require(["app"],function(){}),define("main",function(){});
'use strict'; const test = require('tap').test; const objoin = require('../index.js'); const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms)); const rint = (l, u) => Math.random() * (u - l) + l; test('objoin retrieves and adds record to each item in collection', async(t) => { const posts = [ { authorId: 'id1', title: 'this is post 1' }, { authorId: 'id2', title: 'this is post 2' }, { authorId: 'id1', title: 'this is post 3' } ]; const users = { id1: { name: 'bob smith' }, id2: { name: 'jane brown' } }; const fetchIt = (authorId) => users[authorId]; const obj = await objoin(posts, { key: 'authorId', set: 'author' }, (authorId) => fetchIt(authorId)); t.deepEqual(obj, [{ authorId: 'id1', title: 'this is post 1', author: { name: 'bob smith' } }, { authorId: 'id2', title: 'this is post 2', author: { name: 'jane brown' } }, { authorId: 'id1', title: 'this is post 3', author: { name: 'bob smith' } } ]); t.end(); }); test('objoin uses caching to avoid re-fetching the same id twice', async(t) => { const posts = [ { authorId: 'id1', title: 'this is post 1' }, { authorId: 'id2', title: 'this is post 2' }, { authorId: 'id1', title: 'this is post 3' } ]; const users = { id1: { name: 'bob smith' }, id2: { name: 'jane brown' } }; let idCalls = 0; await objoin(posts, { key: 'authorId', set: 'author' }, async (authorId) => { idCalls++; await wait(100); return users[authorId]; }); t.equal(idCalls, 2, 'id fetcher only runs for ids that are not already cached'); t.end(); }); test('objoin can process one object as well as a list of objects', async(t) => { const users = { id1: { name: 'bob smith' }, id2: { name: 'jane brown' } }; const obj = await objoin({ authorId: 'id1', title: 'this is post 1' }, { key: 'authorId', set: 'author' }, (authorId) => users[authorId]); t.deepEqual(obj, [{ authorId: 'id1', title: 'this is post 1', author: { name: 'bob smith' } } ]); t.end(); }); test('"get" option retrieves and adds a specific field from a record to each item in collection', async(t) => { const posts = [ { authorId: 'id1', title: 'this is post 1' }, { authorId: 'id2', title: 'this is post 2' }, { authorId: 'id1', title: 'this is post 3' } ]; const users = { id1: { name: 'bob smith', occupation: 'cult leader' }, id2: { name: 'jane brown', occupation: 'antiques curator' } }; const fetchIt = (authorId) => users[authorId]; const obj = await objoin(posts, { key: 'authorId', set: 'author', get: 'name' }, async(authorId) => { //authorIds are just unique Ids, so you don't have to fetch the same id multiple times //in this case, it would get called with authorId id1 and id2 (the second id1 would not be called) //normally this would be some call to the db or ajax call await wait(3000); return fetchIt(authorId); }); t.deepEqual(obj, [{ authorId: 'id1', title: 'this is post 1', author: 'bob smith' }, { authorId: 'id2', title: 'this is post 2', author: 'jane brown' }, { authorId: 'id1', title: 'this is post 3', author: 'bob smith' } ]); t.end(); }); test('objoin retrieves and adds record to each item in collection when collection field is a list', async(t) => { const posts = [ { authors: ['id1', 'id2'], title: 'this is post 1' }, { authors: ['id1', 'id3'], title: 'this is post 2' }, ]; const users = { id1: { name: 'bob smith' }, id2: { name: 'jane brown' }, id3: { name: 'john doe' } }; const fetchIt = (authorId) => users[authorId]; const obj = await objoin(posts, { key: 'authors', set: 'authors', get: 'name' }, (authorId) => fetchIt(authorId)); t.deepEqual(obj, [{ authors: ['bob smith', 'jane brown'], title: 'this is post 1' }, { authors: ['bob smith', 'john doe'], title: 'this is post 2' }]); t.end(); }); test('objoin retrieves and adds record to a single item when collection field is a list', async(t) => { const users = { id1: { name: 'bob smith' }, id2: { name: 'jane brown' }, id3: { name: 'john doe' } }; const fetchIt = (authorId) => users[authorId]; const obj = await objoin({ authors: ['id1', 'id2'], title: 'this is post 1' }, { key: 'authors', set: 'authors', get: 'name' }, (authorId) => fetchIt(authorId)); t.deepEqual(obj, [{ authors: ['bob smith', 'jane brown'], title: 'this is post 1' } ]); t.end(); }); test('objoin takes a fallback method to handle errors in the method promise', async(t) => { const posts = [ { authorId: 'id1', title: 'this is post 1' }, { authorId: 'id2', title: 'this is post 2' }, { authorId: 'id1', title: 'this is post 3' } ]; const posts2 = [ { authors: ['id1', 'id2'], title: 'this is post 1' }, { authors: ['id1', 'id3'], title: 'this is post 2' }, ]; const users = { id1: { name: 'bob smith' }, id2: { name: 'jane brown' } }; const fetchIt = (authorId) => { if (authorId === 'id2') { throw new Error('some error'); } return users[authorId]; }; const fallback = { name: 'clarence smith' }; const obj = await objoin(posts, { key: 'authorId', set: 'author', fallback }, (authorId) => fetchIt(authorId)); t.deepEqual(obj, [{ authorId: 'id1', title: 'this is post 1', author: { name: 'bob smith' } }, { authorId: 'id2', title: 'this is post 2', author: { name: 'clarence smith' } }, { authorId: 'id1', title: 'this is post 3', author: { name: 'bob smith' } }]); const obj2 = await objoin(posts2, { key: 'authors', set: 'author', get: 'name', fallback }, (authorId) => { throw new Error('an error'); }); t.deepEqual(obj2, [ { authors: ['id1', 'id2'], title: 'this is post 1', author: ['clarence smith', 'clarence smith'] }, { authors: ['id1', 'id3'], title: 'this is post 2', author: ['clarence smith', 'clarence smith'] } ]); const obj3 = await objoin({ authorId: 'id1', title: 'this is post 1' }, { key: 'authorId', set: 'author', fallback }, (authorId) => { throw new Error('no way no way'); }); t.deepEqual(obj3, [{ authorId: 'id1', title: 'this is post 1', author: { name: 'clarence smith' } } ]); t.end(); }); test('objoin throws errors if method promise fails', async(t) => { const posts = [ { authorId: 'id1', title: 'this is post 1' }, { authorId: 'id2', title: 'this is post 2' }, { authorId: 'id1', title: 'this is post 3' } ]; const posts2 = [ { authors: ['id1', 'id2'], title: 'this is post 1' }, { authors: ['id1', 'id3'], title: 'this is post 2' }, ]; let errCount = 0; // handle when entries are not lists: try { await objoin(posts, { key: 'authorId', set: 'author' }, (authorId) => { throw new Error('hey hey you you'); }); t.fail(); } catch (e) { errCount++; } // handle when each entry in post is a list try { await objoin(posts2, { key: 'authors', set: 'author', get: 'name' }, (authorId) => { throw new Error('i dont like your girlfriend'); }); t.fail(); } catch (e) { errCount++; } // handle for singular: try { await objoin({ authorId: 'id1', title: 'this is post 1' }, { key: 'authorId', set: 'author' }, (authorId) => { throw new Error('no way no way'); }); t.fail(); } catch (e) { errCount++; t.equal(errCount, 3, 'throws all expected errors'); t.end(); } }); test('passing concurrency limits number of promises', async (t) => { let running = 0; const posts = [ { authorId: 'id1', title: 'this is post 1' }, { authorId: 'id2', title: 'this is post 2' }, { authorId: 'id9', title: 'this is post 3' }, { authorId: 'id4', title: 'this is post 4' }, { authorId: 'id8', title: 'this is post 4' }, { authorId: 'id3', title: 'this is post 4' }, { authorId: 'id6', title: 'this is post 4' }, { authorId: 'id5', title: 'this is post 4' } ]; try { await objoin(posts, { key: 'authorId', set: 'author' }, async (authId) => { running++; t.true(running <= 3); await wait(rint(40, 50)); running--; return `Mister Beauchamp ${authId}`; }, { concurrency: 3 }); await wait(5); } catch (e) { t.fail(); } t.end(); });
'use strict'; /** * *App level module with it's dependencies * */ angular.module('app', [ 'ui.router', 'ui.bootstrap' ]);
// S E C T I O N 3 : ES Modules //Example 1 import { message } from './message.js' const h1 = document.createElement('h1'); h1.textContent = message document.body.appendChild(h1) //Example 2 import { message, setMessage } from './greeting.js'; console.log(message); // 'Hi' setMessage('Hello'); console.log(message); // 'Hello' //Example 3 import { foo } from './foo.js'; console.log(foo); // 10;
const express = require('express'); const app = express(); const dotenv = require('dotenv'); const mongoose = require('mongoose'); //import routes const authRoute = require('./routes/auth'); const sampleRoute = require('./routes/sample'); dotenv.config(); //Connect to DB mongoose.connect(process.env.DB_Connect, { useNewUrlParser: true, useUnifiedTopology: true }, () => console.log('Connected to DB!')); //Middleware app.use(express.json()); //Route Middleware localhost/api/user/'routes' app.use('/api/user', authRoute); app.use('/api/sample', sampleRoute); app.listen(3000, () => console.log('Server: Up and Running'));
var webpack = require('webpack') var BundleTracker = require('webpack-bundle-tracker') var config = require('./webpack.base.config.js') staticDevConfig = config('production') staticDevConfig.output.path = require('path').resolve('./assets/dist') staticDevConfig.plugins = staticDevConfig.plugins.concat([ new BundleTracker({ filename: './hypha/static_compiled/app/webpack-stats.json' }), new webpack.EnvironmentPlugin({ NODE_ENV: 'production', API_BASE_URL: null , }), ]) staticDevConfig.optimization = {} /** * A webpack config similar to production, but produces development-oriented webpack-stats file. * This makes it possible to use React application without Webpack Dev Server. */ module.exports = staticDevConfig
define({ "_widgetLabel": "מערכת קואורדינטות", "hintMessage": "הקש במפה לקבלת קואורדינטות.", "defaultLabel": "ברירת מחדל", "realtimeLabel": "הזז את העכבר כדי לקבל קואורדינטות", "computing": "מחשב...", "latitudeLabel": "קו רוחב", "longitudeLabel": "קו אורך", "loading": "טוען...", "enableClick": "לחץ כדי להפעיל לחיצה על המפה לקבלת קואורדינטות", "disableClick": "לחץ כדי לבטל לחיצה על המפה לקבלת קואורדינטות", "Default": "ברירת מחדל", "Inches": "אינצ׳ים", "Foot": "רגל", "Foot_US": "Feet_US", "Yards": "יארד", "Miles": "מיילים", "Nautical_Miles": "מיילים ימיים", "Millimeters": "מילימטרים", "Centimeters": "סנטימטרים", "Meter": "מטרים", "Kilometers": "קילומטרים", "Decimeters": "דצימטרים", "Decimal_Degrees": "מעלות", "Degree_Minutes_Seconds": "מעלות דקות שניות", "MGRS": "MGRS", "USNG": "USNG" });
const { displayViewPlugin } = require('./view-package'); module.exports = function pluginViewCommand(pluginCommand) { pluginCommand .command('view <package>') .description('view package and check plugin detail') .option('--registry <url>', 'override configuration registry') .action(function (package) { displayViewPlugin(package, this.context.plugins, this.context.options); }); };
// This is the service worker with the Cache-first network const CACHE = "pwabuilder-precache"; const precacheFiles = [ './sounds/1up.mp3', './sounds/3.mp3', './sounds/06h30.mp3', './sounds/7thelement.mp3', './sounds/20thcenturyfoxalaflute.mp3', './sounds/56k.mp3', './sounds/01189998819991197253.mp3', './sounds/achetemamerde.mp3', './sounds/achetemamerdecomplet.mp3', './sounds/ah.mp3', './sounds/ahouiouiouiouioui.mp3', './sounds/airhorn.mp3', './sounds/akhmed.mp3', './sounds/alaferme.mp3', './sounds/alerteaugogole.mp3', './sounds/alertegeneraaale.mp3', './sounds/alertepsychopathe.mp3', './sounds/alleluia.mp3', './sounds/amazinghorse.mp3', './sounds/amoi.mp3', './sounds/apoildanslapiscine.mp3', './sounds/applaudissements.mp3', './sounds/apres.mp3', './sounds/apwal.mp3', './sounds/aquecoucou.mp3', './sounds/areyoufromthepast.mp3', './sounds/areyoureadyforamiracle.mp3', './sounds/arthour.mp3', './sounds/attentionberthier.mp3', './sounds/aurevoir.mp3', './sounds/aurevoirpresident.mp3', './sounds/ayoucayou.mp3', './sounds/bac2.mp3', './sounds/badger.mp3', './sounds/badumtss.mp3', './sounds/balles.mp3', './sounds/ballsofsteel.mp3', './sounds/bananaphone.mp3', './sounds/bandedecriminels.mp3', './sounds/bandedeputenegre.mp3', './sounds/bazinga.mp3', './sounds/begyourpardonsir.mp3', './sounds/believeitornot.mp3', './sounds/benjaminprejent.mp3', './sounds/bennyhill.mp3', './sounds/benzaielive.mp3', './sounds/bibihendl.mp3', './sounds/bip.mp3', './sounds/bipbip.mp3', './sounds/birdistheword.mp3', './sounds/blaguedemerde.mp3', './sounds/boblennon.mp3', './sounds/bobleponge.mp3', './sounds/boitealambert.mp3', './sounds/boiteameuh.mp3', './sounds/bonbonsquicollent.mp3', './sounds/bonjour.mp3', './sounds/bonnenuitleschiards.mp3', './sounds/boomboomboomboom.mp3', './sounds/boomboomboomboom2.mp3', './sounds/boomheadshot.mp3', './sounds/boulenoire.mp3', './sounds/boy.mp3', './sounds/brainpower.mp3', './sounds/brasdansle.mp3', './sounds/bravoartour.mp3', './sounds/bruh.mp3', './sounds/burned.mp3', './sounds/cacapapillon.mp3', './sounds/cacestunetalalavoca.mp3', './sounds/cadepasseraitlentendement.mp3', './sounds/cafe.mp3', './sounds/calottesurtabouche.mp3', './sounds/cantina.mp3', './sounds/canttouchthis.mp3', './sounds/capousse.mp3', './sounds/captainplanet.mp3', './sounds/carelesswhisper.mp3', './sounds/carglass.mp3', './sounds/cartekiwi.mp3', './sounds/cavaonrigole.mp3', './sounds/cccombobreaker.mp3', './sounds/cestbiennils.mp3', './sounds/cestcontrenaturenh.mp3', './sounds/cestdegeulasse.mp3', './sounds/cestfrancais.mp3', './sounds/cestgenial.mp3', './sounds/cestlapiquettejack.mp3', './sounds/cestmameuf.mp3', './sounds/cestnon.mp3', './sounds/cestnow.mp3', './sounds/cestpasfaux.mp3', './sounds/cestpassorcier.mp3', './sounds/cestpesant.mp3', './sounds/cestquilepatron.mp3', './sounds/cetaitvraimenttresinteressant.mp3', './sounds/champions.mp3', './sounds/chansondupoireau.mp3', './sounds/chapichapo.mp3', './sounds/charal.mp3', './sounds/chewbacca.mp3', './sounds/chiliconcarne.mp3', './sounds/chut.mp3', './sounds/clapclapclapclap.mp3', './sounds/cliquez.mp3', './sounds/codec.mp3', './sounds/cogipbonjour.mp3', './sounds/coin.mp3', './sounds/comsi.mp3', './sounds/connasse.mp3', './sounds/coucou.mp3', './sounds/cri.mp3', './sounds/crickets.mp3', './sounds/croustibat.mp3', './sounds/culquibrille.mp3', './sounds/cykablyat.mp3', './sounds/dansmapetitevoiture.mp3', './sounds/darudesandstorm.mp3', './sounds/davidgoodenough.mp3', './sounds/dbzteleport.mp3', './sounds/dejavu.mp3', './sounds/delaporcelaine.mp3', './sounds/deschiffresetdeslettres.mp3', './sounds/deschips.mp3', './sounds/desfruitssecsjamy.mp3', './sounds/desmeufs.mp3', './sounds/destins.mp3', './sounds/deuxsemaines.mp3', './sounds/dewey.mp3', './sounds/diepotato.mp3', './sounds/disdoncjamy.mp3', './sounds/division.mp3', './sounds/doabarrelroll.mp3', './sounds/doh.mp3', './sounds/doit.mp3', './sounds/donnegrave.mp3', './sounds/dontdropthatdurkadurk.mp3', './sounds/dragonballz.mp3', './sounds/drama.mp3', './sounds/dramaticchipmunk.mp3', './sounds/dringdringdring.mp3', './sounds/drinkmilkandkickass.mp3', './sounds/droooogue.mp3', './sounds/dropmic.mp3', './sounds/eagames.mp3', './sounds/easports.mp3', './sounds/elevator.mp3', './sounds/enferetdamnation.mp3', './sounds/epicsaxguy.mp3', './sounds/error.mp3', './sounds/etflashmevoila.mp3', './sounds/etoilemario.mp3', './sounds/etonfaittournerlesserviettes.mp3', './sounds/etquandilpete.mp3', './sounds/everydayim.mp3', './sounds/everydayimshufflin.mp3', './sounds/excellent.mp3', './sounds/excessivementenervant.mp3', './sounds/excuuuusemeprincess.mp3', './sounds/eyeofthetiger.mp3', './sounds/fairedelamerde.mp3', './sounds/fart.mp3', './sounds/fascistedemerde.mp3', './sounds/fatality.mp3', './sounds/fatheeeeer.mp3', './sounds/finishhim.mp3', './sounds/fistiland.mp3', './sounds/flim.mp3', './sounds/fortboyard.mp3', './sounds/fortboyardmaislamasticot.mp3', './sounds/fouet.mp3', './sounds/fouxdufafa.mp3', './sounds/france98.mp3', './sounds/fuckinggenius.mp3', './sounds/fuckyou.mp3', './sounds/fuckyou2.mp3', './sounds/fury.mp3', './sounds/fusrodah.mp3', './sounds/gaayyyyy.mp3', './sounds/gameboy.mp3', './sounds/gamecube.mp3', './sounds/gameofderps.mp3', './sounds/genredesphraseschoc.mp3', './sounds/georges.mp3', './sounds/gewonnen.mp3', './sounds/girliaintgoingnowhere.mp3', './sounds/goodbye.mp3', './sounds/gourmetrace.mp3', './sounds/grosblaireau.mp3', './sounds/guile.mp3', './sounds/gurdil.mp3', './sounds/hadouken.mp3', './sounds/haha.mp3', './sounds/hahah.mp3', './sounds/halo.mp3', './sounds/happybirthday.mp3', './sounds/hardcorner.mp3', './sounds/harlemshake.mp3', './sounds/hassancehef.mp3', './sounds/hellodarknessmyoldfriend.mp3', './sounds/helloit.mp3', './sounds/hey.mp3', './sounds/heyheyhey.mp3', './sounds/hihi.mp3', './sounds/hihi2.mp3', './sounds/hobbits.mp3', './sounds/hydroponic.mp3', './sounds/hymnedebaseball.mp3', './sounds/ibelieveicanfly.mp3', './sounds/idonthateyou.mp3', './sounds/ilapetemonbic.mp3', './sounds/ilenestmort.mp3', './sounds/ilestcontent.mp3', './sounds/ilestecrit.mp3', './sounds/ilestfortcecon.mp3', './sounds/iliketomoveit.mp3', './sounds/ilnepeutplusriennousarriver.mp3', './sounds/ilsvontcreuver.mp3', './sounds/imbatman.mp3', './sounds/immafirin.mp3', './sounds/imsexyandiknowit.mp3', './sounds/inception.mp3', './sounds/incroyableducul.mp3', './sounds/indianmusic.mp3', './sounds/ingenieurinformaticien.mp3', './sounds/inspecteurgadget.mp3', './sounds/instantlove.mp3', './sounds/iphone.mp3', './sounds/iplaypokemongo.mp3', './sounds/irasshaimase.mp3', './sounds/isthisreallife.mp3', './sounds/italianmusic.mp3', './sounds/itsatrap.mp3', './sounds/itsmemario.mp3', './sounds/itsoktobegay.mp3', './sounds/itsover9000.mp3', './sounds/jacques.mp3', './sounds/jaibeauetrematinal.mp3', './sounds/jaienviedmesuicider.mp3', './sounds/jaifaitcaca.mp3', './sounds/jaiglissechef.mp3', './sounds/jaimemebeurrerlabiscotte.mp3', './sounds/jasonlemacon.mp3', './sounds/javoue.mp3', './sounds/jdansecommeunouf.mp3', './sounds/jeanneausecours.mp3', './sounds/jecodeaveclecul.mp3', './sounds/jemenvole.mp3', './sounds/jeopardy.mp3', './sounds/jepasse.mp3', './sounds/jepreferepartir.mp3', './sounds/jesuiscolere.mp3', './sounds/jesuisspecial.mp3', './sounds/jetemmerde.mp3', './sounds/jevousemmerde.mp3', './sounds/jingle.mp3', './sounds/jmenbatslescouilles.mp3', './sounds/johncena.mp3', './sounds/jujulepers.mp3', './sounds/julienlepers.mp3', './sounds/jurassicpark.mp3', './sounds/justeleblanc.mp3', './sounds/jvaistarracherlesyeux.mp3', './sounds/jvousaimeputain.mp3', './sounds/k2000.mp3', './sounds/kamehameha.mp3', './sounds/katamarydamacy.mp3', './sounds/keuuuuuwah.mp3', './sounds/kevintumedegoutes.mp3', './sounds/keyboardcat.mp3', './sounds/killbill.mp3', './sounds/killbillparano.mp3', './sounds/kiryuchan.mp3', './sounds/kohlanta.mp3', './sounds/Kommentallebu.mp3', './sounds/kuze.mp3', './sounds/labifle.mp3', './sounds/lablagueestvalide.mp3', './sounds/laboulemagique.mp3', './sounds/lacherlatouffe.mp3', './sounds/lacolagiala.mp3', './sounds/lafroussedanstonfroc.mp3', './sounds/laissezlapolicefairesontravail.mp3', './sounds/lajungledesanimaux.mp3', './sounds/lalalalalalalala.mp3', './sounds/lamarmeladedemagrandmere.mp3', './sounds/lamecanophilie.mp3', './sounds/lamernoire.mp3', './sounds/lamitienattendpas.mp3', './sounds/lapincretin.mp3', './sounds/laughing.mp3', './sounds/laughingowl.mp3', './sounds/lechevalcestgenial.mp3', './sounds/lecondespagnol.mp3', './sounds/leeerooooy.mp3', './sounds/legendary.mp3', './sounds/lepapapingouin.mp3', './sounds/lepetitbonhommeenmousse.mp3', './sounds/lepetitculdelucas.mp3', './sounds/lepremier.mp3', './sounds/lesaviscestcommelestrousducul.mp3', './sounds/lesburgers.mp3', './sounds/lescalculssontpasbonskevin.mp3', './sounds/lescartesbleuesenlair.mp3', './sounds/lesproduitslaitiers.mp3', './sounds/lessnorky.mp3', './sounds/letempscommelesoeufs.mp3', './sounds/letraindetesinjures.mp3', './sounds/letsgettorumble.mp3', './sounds/letthebodies.mp3', './sounds/lilalilalila.mp3', './sounds/linternetmappartient.mp3', './sounds/loches.mp3', './sounds/lofteursupdown.mp3', './sounds/lolelole.mp3', './sounds/looneytoons.mp3', './sounds/magabons.mp3', './sounds/magnum.mp3', './sounds/maiscestdlameeeerde.mp3', './sounds/maisnonmaisnon.mp3', './sounds/maisouicestclair.mp3', './sounds/maistespasnet.mp3', './sounds/maite.mp3', './sounds/manutudescends.mp3', './sounds/mariopiece.mp3', './sounds/matete.mp3', './sounds/mcgyver.mp3', './sounds/mecdedroite.mp3', './sounds/mefairefoutre.mp3', './sounds/memequedesfois.mp3', './sounds/mercilagueuse.mp3', './sounds/mercivous.mp3', './sounds/mercurochrome.mp3', './sounds/merguezparty.mp3', './sounds/mescouillessurtonnez.mp3', './sounds/messageacaractereinformatif.mp3', './sounds/metalgear.mp3', './sounds/meu.mp3', './sounds/mexicanmusic.mp3', './sounds/mgsrencontre.mp3', './sounds/michelcestlebresil.mp3', './sounds/michelforevertonight.mp3', './sounds/modem.mp3', './sounds/moijevoteilbluffe.mp3', './sounds/moncucurbitacee.mp3', './sounds/mondedemerde.mp3', './sounds/monpetit.mp3', './sounds/monsacestfait.mp3', './sounds/monsieurnestpasunetapette.mp3', './sounds/monsieurranu.mp3', './sounds/monsterkill.mp3', './sounds/montrealparistentends.mp3', './sounds/mortalkombat.mp3', './sounds/mortalkombat2.mp3', './sounds/moskau.mp3', './sounds/motus.mp3', './sounds/movebitch.mp3', './sounds/msn.mp3', './sounds/muricafkyeah.mp3', './sounds/murloc.mp3', './sounds/nani.mp3', './sounds/naon.mp3', './sounds/narwhals.mp3', './sounds/nein.mp3', './sounds/nervousbreakdown.mp3', './sounds/nestcepas.mp3', './sounds/niquer.mp3', './sounds/niquetameremlp.mp3', './sounds/no.mp3', './sounds/nokia3310.mp3', './sounds/nomdezeus.mp3', './sounds/non.mp3', './sounds/noncestpasunematraque.mp3', './sounds/nooooooo.mp3', './sounds/nootnoot.mp3', './sounds/nope.mp3', './sounds/notreprojet.mp3', './sounds/nyancat.mp3', './sounds/objection.mp3', './sounds/ohbahcacatombebienalors.mp3', './sounds/ohbravo.mp3', './sounds/ohhimark.mp3', './sounds/ohlongjohnson.mp3', './sounds/ohyeah.mp3', './sounds/oleputain.mp3', './sounds/omaewamoushindeiru.mp3', './sounds/omarsharif.mp3', './sounds/onatousledroit.mp3', './sounds/onestchampions.mp3', './sounds/onesttesamisyugi.mp3', './sounds/onsenbatles.mp3', './sounds/onvafaireunereunion.mp3', './sounds/oppagangnamstyle.mp3', './sounds/orientalriff.mp3', './sounds/oskuur.mp3', './sounds/ouaip.mp3', './sounds/ouaisouaisouaisouais.mp3', './sounds/oui.mp3', './sounds/ouichelorraine.mp3', './sounds/ouyouyouyouyouyou.mp3', './sounds/pacman.mp3', './sounds/pacmandies.mp3', './sounds/paillettesdansmaviekevin.mp3', './sounds/papifougasselenigme.mp3', './sounds/papifougassesolution.mp3', './sounds/papybrossard.mp3', './sounds/pardessusla3emecorde.mp3', './sounds/parleritalien.mp3', './sounds/partouzeursdedroite.mp3', './sounds/partyhorn.mp3', './sounds/paschangerassiettepourfromage.mp3', './sounds/pasdecouillesplusdecash.mp3', './sounds/pasdeprobleme.mp3', './sounds/pegi18.mp3', './sounds/penny.mp3', './sounds/peterleurschevilles.mp3', './sounds/philippe.mp3', './sounds/picsou.mp3', './sounds/pikachu.mp3', './sounds/pipeau.mp3', './sounds/pipeetjambedebois.mp3', './sounds/pitoyable.mp3', './sounds/pokemon.mp3', './sounds/popipo.mp3', './sounds/popopooo.mp3', './sounds/poudredeperlinpinpin.mp3', './sounds/poudredeperlinpinpin2.mp3', './sounds/pouinpouinpouinpouiiiin.mp3', './sounds/poupipou.mp3', './sounds/powerrangers.mp3', './sounds/ppap.mp3', './sounds/proposintolerables.mp3', './sounds/psx.mp3', './sounds/psychose.mp3', './sounds/puddipuddi.mp3', './sounds/puissanceintellectuelle.mp3', './sounds/questcequiestjauneetquiattend.mp3', './sounds/questcequiestpetitetmarron.mp3', './sounds/questcequonpeutsennuyer.mp3', './sounds/quoidneufscoubidoo.mp3', './sounds/quoiiii.mp3', './sounds/r2d2.mp3', './sounds/ramoucho.mp3', './sounds/renaud.mp3', './sounds/renaud2.mp3', './sounds/roggan.mp3', './sounds/roulementdetambour.mp3', './sounds/run.mp3', './sounds/sabrelaser.mp3', './sounds/sacrehubert.mp3', './sounds/sadviolin.mp3', './sounds/salope.mp3', './sounds/salutbandedesalopes.mp3', './sounds/salutlestrouducs.mp3', './sounds/salutyoutube.mp3', './sounds/sambadejaneiro.mp3', './sounds/samsung.mp3', './sounds/saufunefoisauchalet.mp3', './sounds/saupiquet.mp3', './sounds/scatman.mp3', './sounds/scorpionquimeurt.mp3', './sounds/screaminggoat.mp3', './sounds/secondpoteaupavard.mp3', './sounds/secteurnordpd.mp3', './sounds/sega.mp3', './sounds/sega2.mp3', './sounds/servietski.mp3', './sounds/shakethatass.mp3', './sounds/shame.mp3', './sounds/shootingstars.mp3', './sounds/shutup.mp3', './sounds/singhallelujah.mp3', './sounds/skype.mp3', './sounds/smokeweedeveryday.mp3', './sounds/smokeweedeverydayremix.mp3', './sounds/sncf.mp3', './sounds/snoopdogg.mp3', './sounds/softkitty.mp3', './sounds/sonicboom.mp3', './sounds/sonicextralife.mp3', './sounds/sortezvouslesdoigtsducul.mp3', './sounds/souffrirok.mp3', './sounds/spanishflea.mp3', './sounds/squalala.mp3', './sounds/suitup.mp3', './sounds/supergreen.mp3', './sounds/superman.mp3', './sounds/supertimor.mp3', './sounds/surprise.mp3', './sounds/surprisemotherfucker.mp3', './sounds/taaaank.mp3', './sounds/tada.mp3', './sounds/tagueule.mp3', './sounds/tagueule2.mp3', './sounds/tagueuule.mp3', './sounds/taisezvous.mp3', './sounds/telepod2000.mp3', './sounds/tequilaheineken.mp3', './sounds/tescon.mp3', './sounds/testenduenatasha.mp3', './sounds/tetris.mp3', './sounds/texto.mp3', './sounds/thecoconutnut.mp3', './sounds/thefinalcountdown.mp3', './sounds/thegodfather.mp3', './sounds/theinternetisforporn.mp3', './sounds/theyseemerollin.mp3', './sounds/thierrylafronde.mp3', './sounds/thisissparta.mp3', './sounds/thx.mp3', './sounds/tintintin.mp3', './sounds/tintintintiiin.mp3', './sounds/titanic.mp3', './sounds/titanicflute.mp3', './sounds/tnetennba.mp3', './sounds/tobecontinued.mp3', './sounds/toomanycooks.mp3', './sounds/topdeliremegagroove.mp3', './sounds/topofthepop.mp3', './sounds/toucheatoncul.mp3', './sounds/toujoursdebout.mp3', './sounds/toutlemondesenbranle.mp3', './sounds/toutvabeaucouptropvite.mp3', './sounds/tresgentil.mp3', './sounds/trololo.mp3', './sounds/tropbiensape.mp3', './sounds/tropdetension.mp3', './sounds/tropgeniaaaale.mp3', './sounds/troupatroupa.mp3', './sounds/troyandabedinthemorning.mp3', './sounds/truieviolette.mp3', './sounds/tuestresmoche.mp3', './sounds/tumbleweed.mp3', './sounds/tunaktunak.mp3', './sounds/tutecalmesmartine.mp3', './sounds/tuturu.mp3', './sounds/twister.mp3', './sounds/ump.mp3', './sounds/unclefcker.mp3', './sounds/unefamilleenor.mp3', './sounds/unfax.mp3', './sounds/unpetitbaiser.mp3', './sounds/unpeucommemabte.mp3', './sounds/urss.mp3', './sounds/vabientefairefoutreantoinedaniel.mp3', './sounds/valeriepecresse.mp3', './sounds/victory.mp3', './sounds/viensboireunptitcoup.mp3', './sounds/voirmesfesses.mp3', './sounds/voleursfdp.mp3', './sounds/vousavezlaparole.mp3', './sounds/vousetesvraimentdegeulasse.mp3', './sounds/vousnagezbienchef.mp3', './sounds/vuvuzela.mp3', './sounds/walle.mp3', './sounds/warcraft.mp3', './sounds/wasted.mp3', './sounds/wazzaaaaa.mp3', './sounds/wearethechampions.mp3', './sounds/whatislove.mp3', './sounds/whatizzefuque.mp3', './sounds/whatthecutresume.mp3', './sounds/whatthefck.mp3', './sounds/whatwhat.mp3', './sounds/wheatley.mp3', './sounds/wheeeeeee.mp3', './sounds/whocansaywheretheroadgoes.mp3', './sounds/wholetthedogsout.mp3', './sounds/whosthatpokemon.mp3', './sounds/whosyourdaddy.mp3', './sounds/wilhelm.mp3', './sounds/windows95.mp3', './sounds/wingardiumleviosaaa.mp3', './sounds/wololo.mp3', './sounds/wow.mp3', './sounds/wow2.mp3', './sounds/xfiles.mp3', './sounds/yaaaaaaay.mp3', './sounds/yabbadabadoo.mp3', './sounds/yametekudasai.mp3', './sounds/yeaaaaaah.mp3', './sounds/yeah.mp3', './sounds/yeeeeees.mp3', './sounds/yenaquontessaye.mp3', './sounds/yep.mp3', './sounds/yesssyesss.mp3', './sounds/yoda.mp3', './sounds/yodel.mp3', './sounds/youareapirate.mp3', './sounds/youlose.mp3', './sounds/youpimatin.mp3', './sounds/youshallnotpass.mp3', './sounds/youtouchmytralala.mp3', './sounds/zeldaunitem.mp3', './sounds/zeldaunpassagesecret.mp3', './sounds/zigounettepipi.mp3' ]; self.addEventListener("install", function (event) { console.log("[PWA Builder] Install Event processing"); console.log("[PWA Builder] Skip waiting on install"); self.skipWaiting(); event.waitUntil( caches.open(CACHE).then(function (cache) { console.log("[PWA Builder] Caching pages during install"); return cache.addAll(precacheFiles); }) ); }); // Allow sw to control of current page self.addEventListener("activate", function (event) { console.log("[PWA Builder] Claiming clients for current page"); event.waitUntil(self.clients.claim()); }); // If any fetch fails, it will look for the request in the cache and serve it from there first self.addEventListener("fetch", function (event) { if (event.request.method !== "GET") return; event.respondWith( fromCache(event.request).then( function (response) { // The response was found in the cache so we responde with it and update the entry // This is where we call the server to get the newest version of the // file to use the next time we show view event.waitUntil( fetch(event.request).then(function (response) { return updateCache(event.request, response); }) ); return response; }, function () { // The response was not found in the cache so we look for it on the server return fetch(event.request) .then(function (response) { // If request was success, add or update it in the cache event.waitUntil(updateCache(event.request, response.clone())); return response; }) .catch(function (error) { console.log("[PWA Builder] Network request failed and no cache." + error); }); } ) ); }); function fromCache(request) { // Check to see if you have it in the cache // Return response // If not in the cache, then return return caches.open(CACHE).then(function (cache) { return cache.match(request).then(function (matching) { if (!matching || matching.status === 404) { return Promise.reject("no-match"); } return matching; }); }); } function updateCache(request, response) { return caches.open(CACHE).then(function (cache) { return cache.put(request, response); }); }
'use strict'; /* Copyright 2019 AnyMoe Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ var parents = chrome.contextMenus.create({ "title": "fuck-ulearning", "contexts": ["all"] }); chrome.contextMenus.create( { "title": chrome.i18n.getMessage("showAnswer"), "parentId": parents, "onclick": genericOnClick, id: 'showAnswer', "contexts": ["all"] }); chrome.contextMenus.create( { "title": chrome.i18n.getMessage("fillBlanks"), "parentId": parents, "onclick": genericOnClick, id: 'fillBlanks', "contexts": ["all"] }); chrome.contextMenus.create( { "title": chrome.i18n.getMessage("addSpeed5x"), "parentId": parents, "onclick": genericOnClick, id: 'addSpeed5x', "contexts": ["all"] }); function genericOnClick(info, tab) { chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) { chrome.tabs.sendMessage(tabs[0].id, { 'contextMenuId': info.menuItemId, 'info': info }, function (response) { }); }); }
const cytoscape = require('cytoscape'); const sbgnStyleSheet = require('cytoscape-sbgn-stylesheet'); const { MATCHED_SEARCH_CLASS } = require('./actions'); module.exports = sbgnStyleSheet(cytoscape) .selector('node') .css({ 'background-opacity': '0.4' }) .selector('node:active') .css({ 'background-opacity': '0.7', }) .selector('node[class!="compartment"]') .css({ 'font-size': 20, 'color': 'black', 'text-outline-color': 'white', 'text-outline-width': 2, 'text-outline-opacity': 0.5, 'text-wrap': 'wrap', 'text-max-width': 175, 'label': node => { const label = node.data('label') .split('(').join('').split(')').join('') .split(':').join(' '); return label; } }) .selector('node[class="complex"]') .css({ 'width': 45, 'height': 45, 'label': node => node.isParent() ? '' : node.data('label') }) .selector('.compoundcollapse-collapsed-node') .css({ 'font-size': 20, 'text-max-width': 175 }) .selector('edge') .css({ 'opacity': 0.3 }) .selector('node[class="and"],node[class="or"],node[class="not"]') .css({ 'label':node=>node.data('class') }) .selector('.hidden') .css({ 'display':'none', }) .selector(`.${MATCHED_SEARCH_CLASS}`) .css({ 'border-width': 8, 'border-color': 'red' });
%include binpac.pac %include zeek.pac %extern{ #include "analyzer/protocol/dce-rpc/consts.bif.h" #include "analyzer/protocol/dce-rpc/types.bif.h" #include "analyzer/protocol/dce-rpc/events.bif.h" %} analyzer DCE_RPC withcontext { connection : DCE_RPC_Conn; flow : DCE_RPC_Flow; }; connection DCE_RPC_Conn(zeek_analyzer: ZeekAnalyzer) { upflow = DCE_RPC_Flow(true); downflow = DCE_RPC_Flow(false); }; %include dce_rpc-protocol.pac %include endpoint-atsvc.pac %include endpoint-epmapper.pac %include dce_rpc-analyzer.pac %include dce_rpc-auth.pac
const jwt = require('jsonwebtoken'); const defaultconfig = { secret: 'abcdefghijklmnopqrstuvwxyz0123456789', }; function PluginJWT(config={}) { PluginJWT.config = { ...defaultconfig, ...config, }; return build; } PluginJWT.getConfig = function getConfig(name) { return !!name ? PluginJWT.config[name] : PluginJWT.config; } function build(req, res) { const tokenRaw = req.headers['authorization'] || req.headers['Authorization']; if (tokenRaw) { const tokenSplitted = tokenRaw.split(' '); if (tokenSplitted.length < 2) { req.error = "invalid token"; } else { const token = tokenSplitted[1]; req.user = jwt.verify(token, PluginJWT.getConfig('secret')) } return; } req.error = "not authorized"; }; module.exports = PluginJWT;
$(function(){ $('.subnav').css('height',$(window).height() ); //侧边栏高度 $('.wrap02 > .content').css('width',$(window).width()-265);//内容块宽度 $('.login').css('height',$(window).height());//登录高度 $(window).resize(function(){ $('.subnav').css('height',$(window).height()-43); //侧边栏高度 $('.wrap02 > .content').css('width',$(window).width()-265);//内容块宽度 $('.login').css('height',$(window).height());//登录高度 }); $('.login span').click(function(){//logincheck $('.login span').toggleClass('cur'); if($('.login span').hasClass('cur')==true){ $('.login .checkval').val('1'); }else{ $('.login .checkval').val('0'); } }); $('.wrap01 h2').click(function(){//user下拉框 $(".nav_r").toggle(); }); //侧边栏 $('.nav > li > a').click(function(){ $(".sub-menu").slideUp('linear'); if($(this).parent().hasClass('cur') || $(this).parent().hasClass('second') ){ $(this).parent().removeClass('cur'); }else{ $(this).parent().addClass('cur').siblings().removeClass('cur'); $(this).parent().children(".sub-menu").slideDown('linear'); } }); $('.sub-menu > li').click(function(){// $(this).addClass('cur').siblings().removeClass('cur'); }); $('.cate_img a').magnificPopup({//zoom type: 'image', closeOnContentClick: true, closeBtnInside: false, fixedContentPos: true, mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side image: { verticalFit: true }, zoom: { enabled: true, duration: 300 // don't foget to change the duration also in CSS } }); }); function subnav(i){//侧边状态 $('.nav li:eq('+i+')').children(".sub-menu").show(); $('.nav li:eq('+i+')').addClass('cur'); }
/** * Developer: Stanislav Guryev * Date: 02.02.2017 * Copyright: 2009-2017 Comindware® * All Rights Reserved * * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Comindware * The copyright notice above does not evidence any * actual or intended publication of such source code. */ import CodemirrorView from './impl/codeEditor/views/CodemirrorView'; import template from './impl/codeEditor/templates/codeEditor.html'; import BaseLayoutEditorView from './base/BaseLayoutEditorView'; import formRepository from '../formRepository'; import LocalizationService from '../../services/LocalizationService'; const showModes = { normal: 'normal', button: 'button' }; const classes = { buttonMode: 'dev-code-editor-button-mode' }; const defaultOptions = { mode: 'expression', height: 300, showMode: showModes.normal, ontologyService: null }; /** * @name NumberEditorView * @memberof module:Core.form.editors * @class Редактор выражений и скриптов. Поддерживаемый тип данных: <code>Sting</code>. * @extends module:Core.form.editors.base.BaseLayoutEditorView * @param {String} [options.mode='expression'] Определяет тип редактора:<ul> * <li><code>'expression'</code> - редактор выражений.</li> * <li><code>'script'</code> - редактор C#-скриптов.</li></ul> * @param {Number} [options.height=150] Высота редактора в пикселях. * */ export default formRepository.editors.Code = BaseLayoutEditorView.extend({ className: 'dev-code-editor-field', regions: { editorContainer: '.js-code-codemirror-container', }, ui: { editor: '.js-code-codemirror-container', editBtn: '.js-code-button-edit', clearBtn: '.js-code-button-clear', fadingPanel: '.js-code-fading-panel', }, events: { 'click @ui.editBtn': '__onEdit', 'click @ui.clearBtn': '__onClear' }, template: Handlebars.compile(template), templateHelpers() { return this.options; }, initialize(options = {}) { _.defaults(this.options, _.pick(options.schema ? options.schema : options, Object.keys(defaultOptions)), defaultOptions); }, onRender() { this.editor = new CodemirrorView({ mode: this.options.mode, height: this.options.height, ontologyService: this.options.ontologyService }); this.editor.on('change', this.__change, this); this.editor.on('maximize', () => this.ui.fadingPanel.show()); this.editor.on('minimize', () => { this.ui.fadingPanel.hide(); if (this.options.showMode === showModes.button) { this.ui.editor.hide(); } }); this.editorContainer.show(this.editor); this.editor.setValue(this.value || ''); this.ui.fadingPanel.hide(); if (this.options.showMode === showModes.button) { this.ui.editor.hide(); this.$el.addClass(classes.buttonMode); } else { this.ui.editBtn.hide(); this.ui.clearBtn.hide(); } this.__setEditBtnText(); }, __value(value, updateUi, triggerChange) { if (this.value === value) { return; } this.value = value; this.__setEditBtnText(); if (updateUi) { this.editor.setValue(value); } if (triggerChange) { this.__triggerChange(); } }, setValue(value) { this.__value(value, true, false); }, __change() { const value = this.editor.getValue() || null; this.__value(value, false, true); }, __onEdit() { this.ui.editor.show(); this.ui.fadingPanel.show(); this.editor.maximize(); }, __onClear() { this.__value(null, true, true); }, __setEditBtnText() { if (this.value) { this.ui.editBtn.text(LocalizationService.get('CORE.FORM.EDITORS.CODE.EDIT')); } else { this.ui.editBtn.text(LocalizationService.get('CORE.FORM.EDITORS.CODE.EMPTY')); } }, __setReadonly(readonly) { BaseLayoutEditorView.prototype.__setReadonly.call(this, readonly); this.editor.setReadonly(readonly); } });
export {default} from "./InformeContrataciones";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _LocalDatastoreUtils = require("./LocalDatastoreUtils"); var _Storage = _interopRequireDefault(require("./Storage")); function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } var LocalDatastoreController = { fromPinWithName: function (name) { var values, objects; return _regenerator.default.async(function (_context) { while (1) { switch (_context.prev = _context.next) { case 0: _context.next = 2; return _regenerator.default.awrap(_Storage.default.getItemAsync(name)); case 2: values = _context.sent; if (values) { _context.next = 5; break; } return _context.abrupt("return", []); case 5: objects = JSON.parse(values); return _context.abrupt("return", objects); case 7: case "end": return _context.stop(); } } }, null, null, null, Promise); }, pinWithName: function (name, value) { var values = JSON.stringify(value); return _Storage.default.setItemAsync(name, values); }, unPinWithName: function (name) { return _Storage.default.removeItemAsync(name); }, getAllContents: function () { var keys; return _regenerator.default.async(function (_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: _context3.next = 2; return _regenerator.default.awrap(_Storage.default.getAllKeysAsync()); case 2: keys = _context3.sent; return _context3.abrupt("return", keys.reduce(function (previousPromise, key) { var LDS, value; return _regenerator.default.async(function (_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: _context2.next = 2; return _regenerator.default.awrap(previousPromise); case 2: LDS = _context2.sent; if (!(0, _LocalDatastoreUtils.isLocalDatastoreKey)(key)) { _context2.next = 8; break; } _context2.next = 6; return _regenerator.default.awrap(_Storage.default.getItemAsync(key)); case 6: value = _context2.sent; try { LDS[key] = JSON.parse(value); } catch (error) { console.error('Error getAllContents: ', error); } case 8: return _context2.abrupt("return", LDS); case 9: case "end": return _context2.stop(); } } }, null, null, null, Promise); }, Promise.resolve({}))); case 4: case "end": return _context3.stop(); } } }, null, null, null, Promise); }, getRawStorage: function () { var keys; return _regenerator.default.async(function (_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: _context5.next = 2; return _regenerator.default.awrap(_Storage.default.getAllKeysAsync()); case 2: keys = _context5.sent; return _context5.abrupt("return", keys.reduce(function (previousPromise, key) { var LDS, value; return _regenerator.default.async(function (_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: _context4.next = 2; return _regenerator.default.awrap(previousPromise); case 2: LDS = _context4.sent; _context4.next = 5; return _regenerator.default.awrap(_Storage.default.getItemAsync(key)); case 5: value = _context4.sent; LDS[key] = value; return _context4.abrupt("return", LDS); case 8: case "end": return _context4.stop(); } } }, null, null, null, Promise); }, Promise.resolve({}))); case 4: case "end": return _context5.stop(); } } }, null, null, null, Promise); }, clear: function () { var keys, toRemove, _iterator, _step, key, promises; return _regenerator.default.async(function (_context6) { while (1) { switch (_context6.prev = _context6.next) { case 0: _context6.next = 2; return _regenerator.default.awrap(_Storage.default.getAllKeysAsync()); case 2: keys = _context6.sent; toRemove = []; for (_iterator = _createForOfIteratorHelperLoose(keys); !(_step = _iterator()).done;) { key = _step.value; if ((0, _LocalDatastoreUtils.isLocalDatastoreKey)(key)) { toRemove.push(key); } } promises = toRemove.map(this.unPinWithName); return _context6.abrupt("return", Promise.all(promises)); case 7: case "end": return _context6.stop(); } } }, null, this, null, Promise); } }; module.exports = LocalDatastoreController;
var callbackArguments = []; var argument1 = function() { callbackArguments.push(arguments) return undefined; }; var argument2 = function() { callbackArguments.push(arguments) return "ÿ\u0019\u0019—"; }; var argument3 = {"82":"xJF","705":8.902180178961623e+307,")":"`","1.3406512289226387e+308":1.2124485510838745e+308,"":6.97174555975969e+307}; var argument4 = false; var argument5 = function() { callbackArguments.push(arguments) return false; }; var argument6 = function() { callbackArguments.push(arguments) return 52.602583929605686; }; var argument7 = r_0; var base_0 = [705,242,823,655,783,1.7976931348623157e+308,618] var r_0= undefined try { r_0 = base_0.reduceRight(argument1) } catch(e) { r_0= "Error" } var base_1 = [705,242,823,655,783,1.7976931348623157e+308,618] var r_1= undefined try { r_1 = base_1.reduceRight(argument2,argument3,argument4) } catch(e) { r_1= "Error" } var base_2 = [705,242,823,655,783,1.7976931348623157e+308,618] var r_2= undefined try { r_2 = base_2.reduceRight(argument5) } catch(e) { r_2= "Error" } var base_3 = [705,242,823,655,783,1.7976931348623157e+308,618] var r_3= undefined try { r_3 = base_3.reduceRight(argument6,argument7) } catch(e) { r_3= "Error" } function serialize(array){ return array.map(function(a){ if (a === null || a == undefined) return a; var name = a.constructor.name; if (name==='Object' || name=='Boolean'|| name=='Array'||name=='Number'||name=='String') return JSON.stringify(a); return name; }); } setTimeout(function(){ require("fs").writeFileSync("./experiments/reduceRight/reduceRightQC/test261.json",JSON.stringify({"baseObjects":serialize([base_0,base_1,base_2,base_3]),"returnObjects":serialize([r_0,r_1,r_2,r_3]),"callbackArgs":callbackArguments})) },300)
import { createStore } from 'redux'; const INITIAL_STATE = { data: [ 'React Native', 'ReactJS', 'NodeJS', ], }; function courses(state = INITIAL_STATE, action) { switch(action.type) { case 'ADD_COURSE': return { ...state, data: [ ...state.data, action.title] }; default: return state; } } const store = createStore(courses); export default store;
"use strict"; const BloggifyPage = require("../lib"); const home = new BloggifyPage({ title: "Home" , content: "Hey there!" , metadata: { customField: "Hello Mars!" } }); console.log(home); // BloggifyPage { // title: 'Home', // slug: 'Home', // url: '/Home', // content: 'Hey there!', // customField: 'Hello Mars!', // raw_content: 'Hey there!' }
// ==UserScript== // @name Template - Favicon // @version 1.0 // @description Add a favicon to "the website's name" // @icon "Type a URL that is the website's icon" // @include "Type the website's URL that needs a favicon" // @author MrBukLau // @grant none // @run-at document-start // ==/UserScript== var favicon_link_html = document.createElement('link'); favicon_link_html.rel = 'icon'; // Insert the favicon's URL in between the apostrophes favicon_link_html.href = ' '; // Change "png" if the image file format is different favicon_link_html.type = 'image/png'; try { document.getElementsByTagName('head')[0].appendChild( favicon_link_html ); } catch(e) { }
import PropTypes from "prop-types"; const Link = ({ icon = "external link", tags = [], type = "dashboards", ...props }) => <link icon={icon} tags={tags} type={type} {...props} />; Link.PropTypes = { icon: PropTypes.string, tags: PropTypes.arrayOf(PropTypes.string), type: PropTypes.string, }; export default Link;
class RoleRemoteRepairer { constructor() { this.name = 'RemoteRepairer' this.priority = 7 this.prespawn = 50 } getName() { return this.name } getPriority() { return this.priority } getPrespawn() { return this.prespawn } work(remoteRepairer) { if (!remoteRepairer.memory.targetRoom) { return } } moveToRoom(remoteRepairer) { if (remoteRepairer.memory.targetRoom === remoteRepairer.pos.roomName && remoteRepairer.pos.x !== 49 && remoteRepairer.pos.y !== 49 && remoteRepairer.pos.x !== 0 && remoteRepairer.pos.x !== 0) { remoteRepairer.memory.state = CREEP_MOVE_TO_TARGET return } remoteRepairer.moveTo(new RoomPosition(25, 25, remoteRepairer.memory.targetRoom)) } moveToTarget(remoteRepairer) { } moveToDestination(remoteRepairer) { } collect(remoteRepairer) { let destination = Game.getObjectById(remoteRepairer.memory.destination) if (destination.structureType) { remoteRepairer.withdraw(destination, RESOURCE_ENERGY) } else { remoteRepairer.pickup(destination) } remoteRepairer.memory.state = CREEP_MOVE_TO_TARGET } repair(remoteRepairer) { let outcome = remoteRepairer.repair(Game.getObjectById(remoteRepairer.memory.target)) if (outcome != OK) { remoteRepairer.memory.target = '' remoteRepairer.memory.state = CREEP_MOVE_TO_DESTINATION } } } module.exports = new RoleRemoteRepairer
import React from 'react'; import { render, cleanup } from '@testing-library/react'; import UserForm from '../UserForm'; afterEach(cleanup); describe('UserForm', () => { it('should match snapshot', () => { const { asFragment } = render(<UserForm />); expect(asFragment).toMatchSnapshot(); }); });
// Fork of https://github.com/mapbox/wellknown under ISC license (MIT/BSD-2-clause equivalent) import test from 'tape-promise/tape'; import parseWKT from '../../src/lib/parse-wkt'; import fuzzer from 'fuzzer'; test('parseWKT#fuzz', (t) => { fuzzer.seed(0); const inputs = [ 'MULTIPOLYGON (((30 20, 10 40, 45 40, 30 20)), ((15 5, 40 10, 10 20, 5 10, 15 5)))', 'POINT(1.1 1.1)', 'LINESTRING (30 10, 10 30, 40 40)', 'GeometryCollection(POINT(4 6),\nLINESTRING(4 6,7 10))' ]; inputs.forEach(function (str) { for (let i = 0; i < 10000; i++) { const input = fuzzer.mutate.string(str); try { parseWKT(input); } catch (e) { t.fail(`could not parse ${input}, exception ${e}`); } } }); t.end(); });
import styled from '@emotion/styled'; export const CountryContainer = styled.div` width: 80%; height: 200px; margin: 20px auto 0; display: flex; justify-content: space-between; align-items: center; ` export const CountryImage = styled.img` width: 50%; height: 200px; background-image: url(${p => p.img}); background-size: cover; background-repeat: no-repeat; background-position: center center; ` export const CountryDescription = styled.div` width: 45%; `
window.globalProvideData('slide', '{"title":"Logging Out","trackViews":true,"showMenuResultIcon":false,"viewGroupId":"","historyGroupId":"","videoZoom":"","scrolling":false,"transition":"appear","transDuration":0,"transDir":1,"wipeTrans":false,"slideLock":false,"navIndex":-1,"globalAudioId":"","thumbnailid":"","presenterRef":{"id":"none"},"showAnimationId":"","lmsId":"Slide47","width":720,"height":540,"resume":false,"background":{"type":"fill","fill":{"type":"linear","rotation":90,"colors":[{"kind":"color","rgb":"0xFFFFFF","alpha":100,"stop":0}]}},"id":"6NokW5nPjXp","actionGroups":{"ActGrpOnPrevButtonClick":{"kind":"actiongroup","actions":[{"kind":"history_prev"}]},"NavigationRestrictionPreviousSlide_6NokW5nPjXp":{"kind":"actiongroup","actions":[{"kind":"exe_actiongroup","id":"ActGrpOnPrevButtonClick"}]}},"events":[{"kind":"onbeforeslidein","actions":[{"kind":"if_action","condition":{"statement":{"kind":"compare","operator":"eq","valuea":"$WindowId","typea":"property","valueb":"_frame","typeb":"string"}},"thenActions":[{"kind":"set_frame_layout","name":"pnxanbnsnfns10111000101"}],"elseActions":[{"kind":"set_window_control_layout","name":"pnxanbnsnfns10111000101"}]}]},{"kind":"onprevslide","actions":[{"kind":"exe_actiongroup","id":"NavigationRestrictionPreviousSlide_6NokW5nPjXp"}]},{"kind":"ontimelinecomplete","actions":[{"kind":"gotoplay","window":"_current","wndtype":"normal","objRef":{"type":"string","value":"_player.5VYaJc28szW.5nyZMgP4Ttp"}}]},{"kind":"ontransitionin","actions":[{"kind":"adjustvar","variable":"_player.LastSlideViewed_6ILrY5W3MWi","operator":"set","value":{"type":"string","value":"_player."}},{"kind":"adjustvar","variable":"_player.LastSlideViewed_6ILrY5W3MWi","operator":"add","value":{"type":"property","value":"$AbsoluteId"}}]}],"slideLayers":[{"enableSeek":true,"enableReplay":true,"timeline":{"duration":2500,"events":[{"kind":"ontimelinetick","time":0,"actions":[{"kind":"show","transition":"appear","objRef":{"type":"string","value":"5XHiUMpFBEN"}},{"kind":"show","transition":"custom","animationId":"Entrance","reverse":false,"objRef":{"type":"string","value":"5yOHeLxx6Lm"}}]},{"kind":"ontimelinetick","time":2250,"actions":[{"kind":"hide","transition":"custom","animationId":"Exit","reverse":false,"objRef":{"type":"string","value":"5XHiUMpFBEN"}},{"kind":"hide","transition":"custom","animationId":"Exit","reverse":false,"objRef":{"type":"string","value":"5yOHeLxx6Lm"}}]}]},"objects":[{"kind":"vectorshape","rotation":0,"accType":"text","cliptobounds":false,"defaultAction":"","shapemaskId":"","xPos":0,"yPos":-2,"tabIndex":0,"tabEnabled":true,"xOffset":0,"yOffset":0,"rotateXPos":359.5,"rotateYPos":271.5,"scaleX":100,"scaleY":100,"alpha":100,"depth":1,"scrolling":true,"shuffleLock":false,"data":{"hotlinkId":"","accState":0,"vectorData":{"left":-1,"top":-1,"right":721,"bottom":545,"altText":"Rectangle 1","pngfb":false,"pr":{"l":"Lib","i":115}},"html5data":{"xPos":-1,"yPos":-1,"width":721,"height":545,"strokewidth":1}},"animations":[{"kind":"animation","id":"Exit","duration":250,"hidetextatend":true,"animateshapewithtext":false,"tweens":[{"kind":"tween","time":0,"duration":250,"alpha":{"path":[{"kind":"segment","start":"100","dstart":"0","end":"0","dend":"0"}],"duration":250,"easing":"linear","easingdir":"easeout"}}]}],"width":720,"height":544,"resume":false,"useHandCursor":true,"id":"5XHiUMpFBEN"},{"kind":"vectorshape","rotation":0,"accType":"text","cliptobounds":false,"defaultAction":"","textLib":[{"kind":"textdata","uniqueId":"5yOHeLxx6Lm_-2046986873","id":"01","linkId":"txt__default_5yOHeLxx6Lm","type":"vectortext","xPos":0,"yPos":0,"width":0,"height":0,"shadowIndex":-1,"vectortext":{"left":0,"top":0,"right":404,"bottom":71,"pngfb":false,"pr":{"l":"Lib","i":529}}}],"shapemaskId":"","xPos":96,"yPos":118,"tabIndex":1,"tabEnabled":true,"xOffset":0,"yOffset":0,"rotateXPos":268,"rotateYPos":37.5,"scaleX":100,"scaleY":100,"alpha":100,"depth":2,"scrolling":true,"shuffleLock":false,"data":{"hotlinkId":"","accState":0,"vectorData":{"left":0,"top":0,"right":536,"bottom":75,"altText":"Logging Out","pngfb":false,"pr":{"l":"Lib","i":4}},"html5data":{"xPos":-1,"yPos":-1,"width":537,"height":76,"strokewidth":0}},"animations":[{"kind":"animation","id":"Entrance","duration":1000,"hidetextatstart":true,"animateshapewithtext":false,"tweens":[{"kind":"tween","time":0,"duration":1000,"alpha":{"path":[{"kind":"segment","start":"0","dstart":"0","end":"100","dend":"0"}],"duration":1000,"easing":"linear","easingdir":"easein"}}]},{"kind":"animation","id":"Exit","duration":250,"hidetextatend":true,"animateshapewithtext":false,"tweens":[{"kind":"tween","time":0,"duration":250,"alpha":{"path":[{"kind":"segment","start":"100","dstart":"0","end":"0","dend":"0"}],"duration":250,"easing":"linear","easingdir":"easeout"}}]}],"width":536,"height":75,"resume":false,"useHandCursor":true,"id":"5yOHeLxx6Lm"}],"startTime":-1,"elapsedTimeMode":"normal","useHandCursor":false,"resume":false,"kind":"slidelayer","isBaseLayer":true}]}');
function consultaCep() { var cep = document.getElementById("cep").value; var url = "https://viacep.com.br/ws/" + cep + "/json/"; console.log(url) $.ajax({ url: url, type: "GET", success: function(response){ console.log(response); document.getElementById("uf").innerHTML = response.uf document.getElementById("localidade").innerHTML = response.localidade document.getElementById("cep").innerHTML = response.cep document.getElementById("bairro").innerHTML = response.bairro document.getElementById("ddd").innerHTML = response.ddd } }) }
'use strict'; const letter = ['a', 'b', 'c', 'd', 'a', 'e', 'f', 'c', 'b']; function removeDuplicates(array){ for( let element of array){ let run=(array.indexOf(element)+1); for(run; run<array.length; run++){ if(array[run]==element){ array.splice(run, 1); } } } return array; } console.log(removeDuplicates(letter));
/** * Created by yangyanfei on 15/11/2016. */ //閻熸瑱绲鹃悗绲瑀l闁汇劌鍩妔 var cutStr = function(str, len) { if(str==null)return null; var str_length = 0; var str_len = 0; var str_cut = new String(); str_len = str.length; var emoji=false; var aa=str.match(/\ud83c[\udf00-\udfff]|\ud83d[\udc00-\ude4f]|\ud83d[\ude80-\udeff]/g); if(str_len<=len&&aa==null||str_len-1<=len&&aa)return str; for (var i = 0; i < str_len; i++) { var hs = str.charCodeAt(i); emoji=false; if (0xd800 <= hs && hs <= 0xdbff) { if (str_len > 1) { var ls = str.charCodeAt(i + 1); var uc = ((hs - 0xd800) * 0x400) + (ls - 0xdc00) + 0x10000; if (0x1d000 <= uc && uc <= 0x1f77f) { str_length++; emoji=true; }else { str_length++; } } }else { str_length++; } if(emoji) { var aa=escape(str[i]+str[i+1]); aa=unescape(aa); i++; str_cut=str_cut.concat(aa); }else { str_cut = str_cut.concat(str.charAt(i)); } if (str_length == len-1) { str_cut = str_cut.concat("..."); return str_cut; } } //濠碘€冲€归悘澶岀磼濞嗗繒鏆伴悗娑欘殘椤戜焦绋夐幓鎺旀瘓濞存粌瀛╃€垫氨鈧宀搁弳杈ㄦ償閿旇偐绀夐柛鎺撶懆缁绘垿宕堕悙瀵哥埍閻庢稒顨堥浣圭▔鐠囇呭耿 if (str_length < len) { return str; } }; var js = 0; var hideGame=function(resultStr) { js++; if(js>1)return; if(resultStr) { prompt("hideGame",resultStr); }else { prompt("hideGame"); } } var Url = function(){ this.userId = null;//闁绘壕鏅涢宄 this.nickname = "";//闁绘壕鏅涢宥夊触瀹ュ懐鎽� this.encodeNickname= ""; this.iconUrl = null;//闁绘壕鏅涢宥嗗緞閺夋垵鍓奸柛锔芥緲濞硷拷 this.encodeIconUrl= null; this.skin = 1000;//闁活煈鍠涢崑锟� this.roomId = null;//闁规潙娼″Λ绺 this.serverUrl = null;//婵炴挸鎲¢崹娆撳嫉瀹ュ懎顫ら柛锝冨妼濠€鎾锤閳э拷 this.gameMode = "link";//"app","link" this.osName = null;//閻庡箍鍨洪崺娑氱博椤栨粓鍏囩紓渚婃嫹 this.aiNickname = "";//ai闁汇劌瀚幃鏇犫偓娑虫嫹 this.aiIconUrl = null;//ai闁汇劌瀚妵鏃堝磽韫囨挻鍕鹃柛褉鍋� this.aiSkin = 1000;//ai闁汇劌瀚В濠囨嚃閿燂拷 this.aiGrade = 0; this.openMusic =1;//闁硅矇鍐ㄧ厬闂傚﹤鍘栫粻浼存儍閸曨偆纾婚柛蹇ユ嫹 }; Url.prototype = { init:function(){ this.roomId = this.getValueByKey("rid",null); this.userId = this.getValueByKey("uid",null); this.nickname = this.getValueByKey("nickname",""); this.nickname=cutStr(this.nickname,7); this.iconUrl = this.getValueByKey("iconUrl",null); this.skin = this.getValueByKey("skin",1000); this.serverUrl = this.getValueByKey("serverUrl",null); this.gameMode = this.getValueByKey("gameMode","link"); this.osName = this.getValueByKey("osName",null); this.aiNickname = this.getValueByKey("targetNickname",""); this.aiNickname=cutStr(this.aiNickname,7); this.aiIconUrl = this.getValueByKey("targetUserIcon",null); this.aiSkin = this.getValueByKey("aiSkin",1000); this.aiGrade = this.getValueByKey("aiGrade",0); this.openMusic = this.getValueByKey("openMusic",1); }, getValueByKey:function (key,defaultValue) { var reg = new RegExp("(^|&)" + key + "=([^&]*)(&|$)", "i"); var strArray = window.location.href.split("?"); var str = strArray[strArray.length - 1]; var r = str.match(reg); if (r != null)return unescape(decodeURIComponent(r[2])); return defaultValue; }, }; tz_url = new Url(); tz_url.init(); var Configure= { stopAllMusic:function () { if(tz_url.openMusic=='0'||tz_url.openMusic==0) { cc.audioEngine.setMusicVolume(0); cc.audioEngine.setEffectsVolume(0); } }, include:function(path){ var a=document.createElement("script"); a.type = "text/javascript"; a.src=path; var head=document.getElementsByTagName("head")[0]; head.appendChild(a); } };
/** * @fileoverview Prefer Heading: Prevent heading tags (h1 ... h6), use Gestalt Heading, instead */ // @flow strict import { hasAttributes, hasImport, hasUnsupportedAttributes, hasSpreadAttributes, isTag, getHtmlTag, } from './helpers/eslintASTHelpers.js'; import { renameTagFixer, renameTagWithPropsFixer, updateGestaltImportFixer, } from './helpers/eslintASTFixers.js'; import { type ESLintRule } from './helpers/eslintFlowTypes.js'; export const MESSAGES = { fixMessageHeading: `Use Heading from Gestalt with accessibilityLevel (default autofix):\n <Heading accessibilityLevel={| 1 | 2 | 3 | 4 | 5 | 6 |}>Text</Heading>\n OR Use a presentational Heading from Gestalt:\n <Heading accessibilityLevel="none">Text</Heading>\n 'none' hides Heading from assistive technology: see suggested options below to autofix`, suggestionMessageA11yLevelNone: `Use a presentational Heading from Gestalt instead (accessibilityLevel="none")`, }; const rule: ESLintRule = { meta: { type: 'suggestion', docs: { description: 'Prefer Heading: Prevent heading tags (h1 ... h6), use Gestalt Heading, instead', category: 'Gestalt alternatives', recommended: true, url: 'https://gestalt.pinterest.systems/eslint%20plugin#gestaltprefer-link', }, fixable: 'code', schema: [], messages: { fixMessageHeading: MESSAGES.fixMessageHeading, suggestionMessageA11yLevelNone: MESSAGES.suggestionMessageA11yLevelNone, }, hasSuggestions: true, }, create(context) { let programNode; let gestaltImportNode; let importFixerRun = false; const headingTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']; const importDeclarationFnc = (node) => { if (!node) return; const isGestaltImportNode = hasImport({ importNode: node, path: 'gestalt' }); if (!isGestaltImportNode) return; gestaltImportNode = node; }; const jSXElementFnc = (node) => { const headingDisallowedAttributes = ['className']; // First, exit if anchor tag should stay unmodified if ( !isTag({ elementNode: node.openingElement, tagName: headingTags }) || hasSpreadAttributes({ elementNode: node.openingElement }) || hasAttributes({ elementNode: node.openingElement, tagName: headingTags, attributes: headingDisallowedAttributes, }) || hasUnsupportedAttributes({ elementNode: node.openingElement, tagName: headingTags, supportedAttributes: [], }) ) { return null; } const headingTag = getHtmlTag({ elementNode: node }); const a11yLevel = headingTag.replace('h', ''); const a11yLevelProp = `accessibilityLevel={${a11yLevel}}`; const a11yLevelNoneProp = `accessibilityLevel="none"`; // For any other anchor tag modification return context.report({ node, messageId: 'fixMessageHeading', fix: (fixer) => { const tagFixers = a11yLevel === '1' ? renameTagFixer({ context, elementNode: node, fixer, gestaltImportNode, newComponentName: 'Heading', tagName: headingTag, }) : renameTagWithPropsFixer({ context, elementNode: node, fixer, gestaltImportNode, newComponentName: 'Heading', modifiedPropsString: a11yLevelProp, tagName: headingTag, }); const importFixers = updateGestaltImportFixer({ gestaltImportNode, fixer, newComponentName: 'Heading', programNode, }); const fixers = !importFixerRun ? [...tagFixers, importFixers] : tagFixers; importFixerRun = true; return fixers; }, suggest: [ { messageId: 'suggestionMessageA11yLevelNone', fix: (fixer) => { const tagFixers = renameTagWithPropsFixer({ context, elementNode: node, fixer, gestaltImportNode, newComponentName: 'Heading', modifiedPropsString: a11yLevelNoneProp, tagName: headingTag, }); const importFixers = updateGestaltImportFixer({ gestaltImportNode, fixer, newComponentName: 'Heading', programNode, }); const fixers = [...tagFixers, importFixers]; return fixers; }, }, ], }); }; return { Program: (node) => { programNode = node; }, ImportDeclaration: importDeclarationFnc, JSXElement: jSXElementFnc, }; }, }; export default rule;
/** * Visual Blocks Language * * Copyright 2012 Google Inc. * http://blockly.googlecode.com/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @fileoverview Math blocks for Blockly. * @author q.neutron@gmail.com (Quynh Neutron) */ 'use strict'; goog.provide('Blockly.Language.math'); goog.require('Blockly.Language'); Blockly.Language.math_number = { // Numeric value. helpUrl: Blockly.LANG_MATH_NUMBER_HELPURL, init: function() { this.setColour(230); this.appendDummyInput() .appendTitle(new Blockly.FieldTextInput('0', Blockly.FieldTextInput.numberValidator), 'NUM'); this.setOutput(true, Number); this.setTooltip(Blockly.LANG_MATH_NUMBER_TOOLTIP); } }; Blockly.Language.math_arithmetic = { // Basic arithmetic operator. helpUrl: Blockly.LANG_MATH_ARITHMETIC_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendValueInput('A') .setCheck(Number); this.appendValueInput('B') .setCheck(Number) .appendTitle(new Blockly.FieldDropdown(this.OPERATORS), 'OP'); this.setInputsInline(true); // Assign 'this' to a variable for use in the tooltip closure below. var thisBlock = this; this.setTooltip(function() { var mode = thisBlock.getTitleValue('OP'); return thisBlock.TOOLTIPS[mode]; }); } }; Blockly.Language.math_arithmetic.OPERATORS = [['+', 'ADD'], ['-', 'MINUS'], ['\u00D7', 'MULTIPLY'], ['\u00F7', 'DIVIDE'], ['^', 'POWER']]; Blockly.Language.math_arithmetic.TOOLTIPS = { ADD: Blockly.LANG_MATH_ARITHMETIC_TOOLTIP_ADD, MINUS: Blockly.LANG_MATH_ARITHMETIC_TOOLTIP_MINUS, MULTIPLY: Blockly.LANG_MATH_ARITHMETIC_TOOLTIP_MULTIPLY, DIVIDE: Blockly.LANG_MATH_ARITHMETIC_TOOLTIP_DIVIDE, POWER: Blockly.LANG_MATH_ARITHMETIC_TOOLTIP_POWER }; Blockly.Language.math_single = { // Advanced math operators with single operand. helpUrl: Blockly.LANG_MATH_SINGLE_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendValueInput('NUM') .setCheck(Number) .appendTitle(new Blockly.FieldDropdown(this.OPERATORS), 'OP'); // Assign 'this' to a variable for use in the tooltip closure below. var thisBlock = this; this.setTooltip(function() { var mode = thisBlock.getTitleValue('OP'); return thisBlock.TOOLTIPS[mode]; }); } }; Blockly.Language.math_single.OPERATORS = [[Blockly.LANG_MATH_SINGLE_OP_ROOT, 'ROOT'], [Blockly.LANG_MATH_SINGLE_OP_ABSOLUTE, 'ABS'], ['-', 'NEG'], ['ln', 'LN'], ['log10', 'LOG10'], ['e^', 'EXP'], ['10^', 'POW10']]; Blockly.Language.math_single.TOOLTIPS = { ROOT: Blockly.LANG_MATH_SINGLE_TOOLTIP_ROOT, ABS: Blockly.LANG_MATH_SINGLE_TOOLTIP_ABS, NEG: Blockly.LANG_MATH_SINGLE_TOOLTIP_NEG, LN: Blockly.LANG_MATH_SINGLE_TOOLTIP_LN, LOG10: Blockly.LANG_MATH_SINGLE_TOOLTIP_LOG10, EXP: Blockly.LANG_MATH_SINGLE_TOOLTIP_EXP, POW10: Blockly.LANG_MATH_SINGLE_TOOLTIP_POW10 }; Blockly.Language.math_trig = { // Trigonometry operators. helpUrl: Blockly.LANG_MATH_TRIG_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendValueInput('NUM') .setCheck(Number) .appendTitle(new Blockly.FieldDropdown(this.OPERATORS), 'OP'); // Assign 'this' to a variable for use in the tooltip closure below. var thisBlock = this; this.setTooltip(function() { var mode = thisBlock.getTitleValue('OP'); return thisBlock.TOOLTIPS[mode]; }); } }; Blockly.Language.math_trig.OPERATORS = [['sin', 'SIN'], ['cos', 'COS'], ['tan', 'TAN'], ['asin', 'ASIN'], ['acos', 'ACOS'], ['atan', 'ATAN']]; Blockly.Language.math_trig.TOOLTIPS = { SIN: Blockly.LANG_MATH_TRIG_TOOLTIP_SIN, COS: Blockly.LANG_MATH_TRIG_TOOLTIP_COS, TAN: Blockly.LANG_MATH_TRIG_TOOLTIP_TAN, ASIN: Blockly.LANG_MATH_TRIG_TOOLTIP_ASIN, ACOS: Blockly.LANG_MATH_TRIG_TOOLTIP_ACOS, ATAN: Blockly.LANG_MATH_TRIG_TOOLTIP_ATAN }; Blockly.Language.math_constant = { // Constants: PI, E, the Golden Ratio, sqrt(2), 1/sqrt(2), INFINITY. helpUrl: Blockly.LANG_MATH_CONSTANT_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendDummyInput() .appendTitle(new Blockly.FieldDropdown(this.CONSTANTS), 'CONSTANT'); this.setTooltip(Blockly.LANG_MATH_CONSTANT_TOOLTIP); } }; Blockly.Language.math_constant.CONSTANTS = [['\u03c0', 'PI'], ['e', 'E'], ['\u03c6', 'GOLDEN_RATIO'], ['sqrt(2)', 'SQRT2'], ['sqrt(\u00bd)', 'SQRT1_2'], ['\u221e', 'INFINITY']]; Blockly.Language.math_number_property = { // Check if a number is even, odd, prime, whole, positive, or negative // or if it is divisible by certain number. Returns true or false. helpUrl: '', init: function() { this.setColour(230); this.appendValueInput('NUMBER_TO_CHECK') .setCheck(Number); var dropdown = new Blockly.FieldDropdown(this.PROPERTIES, function(option) { var divisorInput = (option == 'DIVISIBLE_BY'); this.sourceBlock_.updateShape(divisorInput); }); this.appendDummyInput() .appendTitle(dropdown, 'PROPERTY'); this.setInputsInline(true); this.setOutput(true, Boolean); this.setTooltip(Blockly.LANG_MATH_IS_TOOLTIP); }, mutationToDom: function() { // Save whether the 'divisorInput' should be true of false (present or not). var container = document.createElement('mutation'); var divisorInput = (this.getTitleValue('PROPERTY') == 'DIVISIBLE_BY'); container.setAttribute('divisor_input', divisorInput); return container; }, domToMutation: function(xmlElement) { // Restore the 'divisorInput'. var divisorInput = (xmlElement.getAttribute('divisor_input') == 'true'); this.updateShape(divisorInput); }, updateShape: function(divisorInput) { // Add or remove a Value Input. var inputExists = this.getInput('DIVISOR'); if (divisorInput) { if (!inputExists) { this.appendValueInput('DIVISOR') .setCheck(Number); } } else if (inputExists) { this.removeInput('DIVISOR'); } } }; Blockly.Language.math_number_property.PROPERTIES = [[Blockly.LANG_MATH_IS_EVEN, 'EVEN'], [Blockly.LANG_MATH_IS_ODD, 'ODD'], [Blockly.LANG_MATH_IS_PRIME, 'PRIME'], [Blockly.LANG_MATH_IS_WHOLE, 'WHOLE'], [Blockly.LANG_MATH_IS_POSITIVE, 'POSITIVE'], [Blockly.LANG_MATH_IS_NEGATIVE, 'NEGATIVE'], [Blockly.LANG_MATH_IS_DIVISIBLE_BY, 'DIVISIBLE_BY']]; Blockly.Language.math_change = { // Add to a variable in place. helpUrl: Blockly.LANG_MATH_CHANGE_HELPURL, init: function() { this.setColour(230); this.appendValueInput('DELTA') .setCheck(Number) .appendTitle(Blockly.LANG_MATH_CHANGE_TITLE_CHANGE) .appendTitle(new Blockly.FieldVariable( Blockly.LANG_MATH_CHANGE_TITLE_ITEM), 'VAR') .appendTitle(Blockly.LANG_MATH_CHANGE_INPUT_BY); this.setPreviousStatement(true); this.setNextStatement(true); // Assign 'this' to a variable for use in the tooltip closure below. var thisBlock = this; this.setTooltip(function() { return Blockly.LANG_MATH_CHANGE_TOOLTIP.replace('%1', thisBlock.getTitleValue('VAR')); }); }, getVars: function() { return [this.getTitleValue('VAR')]; }, renameVar: function(oldName, newName) { if (Blockly.Names.equals(oldName, this.getTitleValue('VAR'))) { this.setTitleValue(newName, 'VAR'); } } }; Blockly.Language.math_round = { // Rounding functions. helpUrl: Blockly.LANG_MATH_ROUND_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendValueInput('NUM') .setCheck(Number) .appendTitle(new Blockly.FieldDropdown(this.OPERATORS), 'OP'); this.setTooltip(Blockly.LANG_MATH_ROUND_TOOLTIP); } }; Blockly.Language.math_round.OPERATORS = [[Blockly.LANG_MATH_ROUND_OPERATOR_ROUND, 'ROUND'], [Blockly.LANG_MATH_ROUND_OPERATOR_ROUNDUP, 'ROUNDUP'], [Blockly.LANG_MATH_ROUND_OPERATOR_ROUNDDOWN, 'ROUNDDOWN']]; Blockly.Language.math_on_list = { // Evaluate a list of numbers to return sum, average, min, max, etc. // Some functions also work on text (min, max, mode, median). helpUrl: Blockly.LANG_MATH_ONLIST_HELPURL, init: function() { // Assign 'this' to a variable for use in the closures below. var thisBlock = this; this.setColour(230); this.setOutput(true, Number); var dropdown = new Blockly.FieldDropdown(this.OPERATORS, function(newOp) { if (newOp == 'MODE') { thisBlock.outputConnection.setCheck(Array); } else { thisBlock.outputConnection.setCheck(Number); } }); this.appendValueInput('LIST') .setCheck(Array) .appendTitle(dropdown, 'OP') .appendTitle(Blockly.LANG_MATH_ONLIST_INPUT_OFLIST); this.setTooltip(function() { var mode = thisBlock.getTitleValue('OP'); return thisBlock.TOOLTIPS[mode]; }); } }; Blockly.Language.math_on_list.OPERATORS = [[Blockly.LANG_MATH_ONLIST_OPERATOR_SUM, 'SUM'], [Blockly.LANG_MATH_ONLIST_OPERATOR_MIN, 'MIN'], [Blockly.LANG_MATH_ONLIST_OPERATOR_MAX, 'MAX'], [Blockly.LANG_MATH_ONLIST_OPERATOR_AVERAGE, 'AVERAGE'], [Blockly.LANG_MATH_ONLIST_OPERATOR_MEDIAN, 'MEDIAN'], [Blockly.LANG_MATH_ONLIST_OPERATOR_MODE, 'MODE'], [Blockly.LANG_MATH_ONLIST_OPERATOR_STD_DEV, 'STD_DEV'], [Blockly.LANG_MATH_ONLIST_OPERATOR_RANDOM, 'RANDOM']]; Blockly.Language.math_on_list.TOOLTIPS = { SUM: Blockly.LANG_MATH_ONLIST_TOOLTIP_SUM, MIN: Blockly.LANG_MATH_ONLIST_TOOLTIP_MIN, MAX: Blockly.LANG_MATH_ONLIST_TOOLTIP_MAX, AVERAGE: Blockly.LANG_MATH_ONLIST_TOOLTIP_AVERAGE, MEDIAN: Blockly.LANG_MATH_ONLIST_TOOLTIP_MEDIAN, MODE: Blockly.LANG_MATH_ONLIST_TOOLTIP_MODE, STD_DEV: Blockly.LANG_MATH_ONLIST_TOOLTIP_STD_DEV, RANDOM: Blockly.LANG_MATH_ONLIST_TOOLTIP_RANDOM }; Blockly.Language.math_modulo = { // Remainder of a division. helpUrl: Blockly.LANG_MATH_MODULO_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendValueInput('DIVIDEND') .setCheck(Number) .appendTitle(Blockly.LANG_MATH_MODULO_INPUT_DIVIDEND); this.appendValueInput('DIVISOR') .setCheck(Number) .setAlign(Blockly.ALIGN_RIGHT) .appendTitle('\u00F7'); this.setInputsInline(true); this.setTooltip(Blockly.LANG_MATH_MODULO_TOOLTIP); } }; Blockly.Language.math_constrain = { // Constrain a number between two limits. helpUrl: Blockly.LANG_MATH_CONSTRAIN_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendValueInput('VALUE') .setCheck(Number) .appendTitle(Blockly.LANG_MATH_CONSTRAIN_INPUT_CONSTRAIN); this.appendValueInput('LOW') .setCheck(Number) .appendTitle(Blockly.LANG_MATH_CONSTRAIN_INPUT_LOW); this.appendValueInput('HIGH') .setCheck(Number) .appendTitle(Blockly.LANG_MATH_CONSTRAIN_INPUT_HIGH); this.setInputsInline(true); this.setTooltip(Blockly.LANG_MATH_CONSTRAIN_TOOLTIP); } }; Blockly.Language.math_random_int = { // Random integer between [X] and [Y]. helpUrl: Blockly.LANG_MATH_RANDOM_INT_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendValueInput('FROM') .setCheck(Number) .appendTitle(Blockly.LANG_MATH_RANDOM_INT_INPUT_FROM); this.appendValueInput('TO') .setCheck(Number) .setAlign(Blockly.ALIGN_RIGHT) .appendTitle(Blockly.LANG_MATH_RANDOM_INT_INPUT_TO); this.setInputsInline(true); this.setTooltip(Blockly.LANG_MATH_RANDOM_INT_TOOLTIP); } }; Blockly.Language.math_random_float = { // Random fraction between 0 and 1. helpUrl: Blockly.LANG_MATH_RANDOM_FLOAT_HELPURL, init: function() { this.setColour(230); this.setOutput(true, Number); this.appendDummyInput() .appendTitle(Blockly.LANG_MATH_RANDOM_FLOAT_TITLE_RANDOM); this.setTooltip(Blockly.LANG_MATH_RANDOM_FLOAT_TOOLTIP); } };
define ("block_mynotes/mynotesblock",["jquery","core/yui","core/str","core/config","core/notification"],function(c,a,b){var d,e={DELETE_ICON:"<span class=\"delete\">&#x274C;</span>"},f={MYNOTES_BASE:"#mynotes_base",MYNOTES_OPENER:".mynotes-opener",MYNOTES_LISTS:".mynotes_list"},g={MYNOTES_BASE:"mynotes_base",MYNOTES_OPENER:"mynotes-opener",MYNOTES_LISTS:"mynotes_list"},h=null,j=null,k=M.util.get_string("deletemynotes","block_mynotes"),l={getMynotesValidatedUrl:function getMynotesValidatedUrl(b){var c=document.createElement("a");c.href=b;return 0<c.search.length?b:b+"?"},getWarnings:function getWarnings(a){if(!1==a){c("#addmynote-label-"+d.instanceid+" span.warning").html(d.maxallowedcharacters_warning)}else{var b=c("#id_mynotecontent-"+d.instanceid);if(""==b.val()){c("#addmynote-label-"+d.instanceid+" span.warning").html("")}else{var e=d.maxallowedcharacters-b.val().length;c("#addmynote-label-"+d.instanceid+" span.warning").html(M.util.get_string("charactersleft","block_mynotes")+e)}}},checkInputText:function checkInputText(){var a=c("#id_mynotecontent-"+d.instanceid);if(a.val().length<=d.maxallowedcharacters){c("#addmynote_submit").removeAttr("disabled","");return!0}else{c("#addmynote_submit").attr("disabled","disabled");return!1}return!0},toggle_textarea:function toggle_textarea(a){var b=c("#id_mynotecontent-"+d.instanceid);if(!b){return!1}var e="focusin"==a.type;if(e){if(b.val()==M.util.get_string("placeholdercontent","block_mynotes")){b.val("");c(".textarea").css("border-color","black")}}else{if(""==b.val()){b.val(M.util.get_string("placeholdercontent","block_mynotes"));c(".textarea").css("border-color","gray");c("#addmynote-label-"+d.instanceid+" span.warning").html("")}}},request:function request(b){var c={},e=this;if(b.scope){e=b.scope}c.contextarea=e.currenttab.replace(d.prefix,"");c.contextarea=c.contextarea.replace("#","");if(b.params){for(i in b.params){c[i]=b.params[i]}}c.sesskey=M.cfg.sesskey;var f={method:"POST",on:{start:function start(){},complete:function complete(c,d,e){if(!d){alert("IO FATAL");return!1}var f=a.JSON.parse(d.responseText);if(f.error){if("require_login"==f.error){b.callback(c,f,e);return!0}alert(f.error);return!1}else{b.callback(c,f,e);return!0}}},arguments:{scope:e},headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},data:build_querystring(c)};if(b.form){f.form=b.form}a.io(this.api,f)},saveMynotes:function saveMynotes(a){a.preventDefault();var b=this;if(!1==b.checkInputText()){return!1}var e=c("#id_mynotecontent-"+d.instanceid);if(""==e.val()||e.val()==M.util.get_string("placeholdercontent","block_mynotes")){return!1}var g={contextid:d.contextid,content:e.val(),action:"add",contextarea:b.currenttabindex};e.attr("disabled",!0);e.css({backgroundImage:"url("+M.util.image_url("i/loading_small","core")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center center"});this.request({params:g,callback:function callback(a,e){if(!e.notes){return!1}c("#addmynote-label-"+d.instanceid+" span.warning").html("");c("#id_mynotecontent-"+d.instanceid).val(M.util.get_string("placeholdercontent","block_mynotes"));c("#id_mynotecontent-"+d.instanceid).removeAttr("disabled");c("#id_mynotecontent-"+d.instanceid).css({backgroundImage:""});if(b.currenttab!=b.defaulttab){b.currenttab=b.defaulttab;var g=b.currenttab.replace("#","#tab-");c(f.MYNOTES_BASE+" ul.tabs-menu li").removeClass("current");c(f.MYNOTES_BASE+" "+g).addClass("current");c(f.MYNOTES_BASE+" .tab-content").has(b.currenttab).addClass("current");c(f.MYNOTES_BASE+" .tab-content").not(b.currenttab).css("display","none");c(f.MYNOTES_BASE+" "+b.currenttab+".tab-content").css("display","block")}b.addToList(e,"add");b.displayMynotes();c(f.MYNOTES_BASE).find(".responsetext").html(M.util.get_string("savedsuccess","block_mynotes"))}})},addToList:function addToList(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"",d=this,e=c(f.MYNOTES_BASE).find(d.currenttab+"-list");if("add"==b){e.prepend(d.renderMynotes(a.notes))}else{e.append(d.renderMynotes(a.notes));c(e).find("li").sort(function sort_li(d,a){return c(a).data("itemid")>c(d).data("itemid")?1:-1}).appendTo(e)}c(f.MYNOTES_BASE).find(d.currenttab).attr("notes-count",a.count)},getMynotes:function getMynotes(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:0,b=this;a=parseInt(a);var e=c(f.MYNOTES_BASE).find(b.currenttab+"-list"),g=e.find("li").length,h=Math.ceil(g/d.perpage);if(0<g&&h>a){b.displayMynotes();return!1}var j={contextid:d.contextid,action:"get",page:a};this.request({params:j,callback:function callback(a,c){b.addToList(c);b.displayMynotes()}})},updateMynotesInfo:function updateMynotesInfo(a,b){b=parseInt(b);a=parseInt(a);var e=this,g="";if(a>d.perpage){var h=b-1,j="",k="";if(0<b){j=e.createLink(h,M.util.get_string("previouspage","block_mynotes"),"previous")}if(0<d.perpage){var l=Math.ceil(a/d.perpage)}else{var l=1}h=b+1;if(h!=l){k=e.createLink(h,M.util.get_string("nextpage","block_mynotes"),"next")}g=j;if(""!=j&&""!=k){g+="<span class=\"separator\"></span>"}g+=k;g="<span class=\"paging\">"+g+"</span>"}var m=c(f.MYNOTES_BASE).find(e.currenttab);if(0<a){m.find(".count").html(M.util.get_string("mynotescount","block_mynotes")+""+a)}else{m.find(".count").html(M.util.get_string("nothingtodisplay","block_mynotes"))}m.find(".mynotes-paging").html(g)},renderMynotes:function renderMynotes(a){if(1>a.length){return!1}var b="",f="";for(f in a){c("#mynote-"+d.instanceid+"-"+a[f].id).remove();var g="<a href=\"#\" id=\"mynote-delete-"+d.instanceid+"-"+a[f].id+"\" class=\"mynote-delete\" title=\""+k+"\">"+e.DELETE_ICON+"</a>",h="";if(""!=a[f].coursename){h="<div class=\"note-detail\">"+a[f].coursename+" - </div>"}var j="<div class=\"time\">"+a[f].timecreated+"</div>",l="<div class=\"content\">"+g+a[f].content+"</div>";b+="<li id=\"mynote-"+d.instanceid+"-"+a[f].id+"\" data-itemid=\""+a[f].id+"\">"+l+h+j+"</li>"}return b},createLink:function createLink(a,b,c){var d="undefined"!=typeof c?" class=\""+c+"\"":"";return"<a href=\""+this.api+"&page="+a+"\""+d+">"+b+"</a>"},displayMynotes:function displayMynotes(){var a=this,b=parseInt(c(f.MYNOTES_BASE).find(a.currenttab).attr("onpage")),e=parseInt(c(f.MYNOTES_BASE).find(a.currenttab).attr("notes-count")),g=c(f.MYNOTES_BASE).find(" "+a.currenttab+"-list"),h=g.find("li").length,j=Math.ceil(h/d.perpage);if(0<h&&j<=b){b=j-1}var k=b*d.perpage+d.perpage,l=b*d.perpage;g.find("li").css("display","none");g.find("li").each(function(a,b){if(a>=l&&a<k){c(b).css("display","block")}});a.updateMynotesInfo(e,b)},registerActions:function registerActions(){var a=this;c("body").delegate("#addmynote_cancel","click",function(){h.hide()});c("body").delegate("#addmynote_submit","click",function(b){a.saveMynotes(b)});c("body").delegate(f.MYNOTES_BASE+" ul.tabs-menu li","click",function(){c(this).addClass("current");c(this).siblings().removeClass("current");var b=c(this).attr("id").replace("tab-","");c(f.MYNOTES_BASE+" .tab-content").not("#"+b).css("display","none");c(f.MYNOTES_BASE+" #"+b+".tab-content").css("display","block");a.currenttab="#"+b;var d=c(a.currenttab).attr("data-loaded");if("undefined"==typeof d||!1==d){c(f.MYNOTES_BASE).find(a.currenttab).attr("data-loaded","true");a.getMynotes(0)}});c("body").delegate("#id_mynotecontent-"+d.instanceid,"focus blur",function(b){a.toggle_textarea(b)});c("body").delegate("#id_mynotecontent-"+d.instanceid,"change keypress keyup",function(){a.getWarnings(a.checkInputText())});c("body").delegate(f.MYNOTES_BASE+" .mynotes-paging .paging a","click",function(b){b.preventDefault();var d=new RegExp(/[\?&]page=(\d+)/),e=d.exec(c(this).attr("href")),g=0;if(e[1]){g=e[1]}c(f.MYNOTES_BASE).find(a.currenttab).attr("onpage",parseInt(g));a.getMynotes(g)});c("body").delegate(f.MYNOTES_BASE+" a.mynote-delete","click",function(b){b.preventDefault();var e=c(this).attr("id");if(""!=e||"undefined"!=e){var g=c(f.MYNOTES_BASE).find(f.MYNOTES_LISTS+"-"+a.currenttab+" > li").length,h=e.replace("mynote-delete-"+d.instanceid+"-",""),j={contextid:d.contextid,action:"delete",noteid:h,lastnotecounts:g};a.request({params:j,callback:function callback(a,b,e){e.scope.addToList(b);c("#mynote-"+d.instanceid+"-"+b.noteid).remove();e.scope.displayMynotes()}})}})},displayDialogue:function displayDialogue(){var e=l;if(null===h){b.get_strings([{key:"mynotes",component:"block_mynotes"},{key:"characterlimit",component:"block_mynotes"},{key:"save",component:"block_mynotes"},{key:"cancel"},{key:"mynotessavedundertab",component:"block_mynotes",param:d.contextareas[e.currenttabindex]},{key:"placeholdercontent",component:"block_mynotes"}]).done(function(b){var k=c("<div></div>").append(c("<div id=\""+g.MYNOTES_BASE+"\" class=\""+g.MYNOTES_BASE+"\"></div>").append("<div class=\"inputarea\"><div class=\"responsetext\"></div><div id=\"addmynote-label-"+d.instanceid+"\">"+b[1]+" "+d.maxallowedcharacters+"<span class=\"warning\"></span></div><div class=\"textarea\"><textarea id=\"id_mynotecontent-"+d.instanceid+"\" name=\"mynotecontent\" rows=\"2\">"+b[5]+"</textarea></div><p class=\"notesavedhint\">"+b[4]+"</p><p class=\"mdl-align\"><input type=\"submit\" id=\"addmynote_submit\"/></p></div>").append(c("<ul class=\"tabs-menu\"></ul>")).append(c("<div class=\"tab\"></div>")));k.find("#addmynote_submit").attr("value",b[2]);k.find("#addmynote_cancel").attr("value",b[3]);var l="",m="",n="";for(n in d.contextareas){if(e.currenttabindex==n){l+="<li class=\"current\" id=\"tab-"+d.prefix+n+"\"><div class=\"menu-item\">"+d.contextareas[n]+"</div></li>"}else{l+="<li class=\"\" id=\"tab-"+d.prefix+n+"\"><div class=\"menu-item\">"+d.contextareas[n]+"</div></li>"}m+="<div class=\"tab-content\" id=\""+d.prefix+n+"\" onpage=\"0\" notes-count=\"0\"><div class=\"notes-info\"><div class=\"mynotes-paging\"></div><div class=\"count\"></div></div><ul id=\""+d.prefix+n+"-list\" class=\"mynotes_lists\"></ul></div>"}k.find(".tabs-menu").append(l);k.find(".tab").append(c(m));a.use("moodle-core-notification-dialogue",function(){h=new M.core.dialogue({draggable:!0,modal:!0,closeButton:!0,headerContent:M.util.get_string("mynotes","block_mynotes"),responsive:!0});h.set("bodyContent",k.html());if(null===j){j=!0;e.getMynotes(0);c(f.MYNOTES_BASE).find(e.currenttab).attr("data-loaded","true");c(f.MYNOTES_BASE).find(e.currenttab).css("display","block")}h.show()});e.registerActions()})}else{h.show()}},init:function init(a){d=a;d.prefix="mynotes_";this.perpage=parseInt(d.perpage);this.currenttab="#mynotes_"+a.currenttabindex;this.defaulttab="#mynotes_"+a.currenttabindex;this.currenttabindex=a.currenttabindex;this.api=this.getMynotesValidatedUrl(M.cfg.wwwroot+"/blocks/mynotes/mynotes_ajax.php");var b=M.util.get_string("showmynotes","block_mynotes");if(!d.editing){var e=c("<div class=\""+g.MYNOTES_OPENER+"\" title=\""+b+"\" alt=\""+b+"\">"+M.util.get_string("mynotes","block_mynotes")+"</div>");e.addClass(d.editingicon_pos);c("body").append(e);e.html("<span class=\"pencil\">&#x270D;</span>")}else{var e=c("<div class=\""+g.MYNOTES_OPENER+"\" title=\""+b+"\" alt=\""+b+"\">"+M.util.get_string("mynotes","block_mynotes")+"</div>");e.addClass(d.editingicon_pos);e.html("<span class=\"pencil\">&#x270D;</span>");c(".inline-"+g.MYNOTES_OPENER).html(e);c(".inline-"+g.MYNOTES_OPENER).append("<div class=\"mynotes-pos-inline-text "+g.MYNOTES_OPENER+"\">"+b+"</div>")}var h=c("body");h.delegate(f.MYNOTES_OPENER,"click",this.displayDialogue)}};return l}); //# sourceMappingURL=mynotesblock.min.js.map
import React, {Fragment, useEffect, useRef, useState} from 'react'; import CellTemplate from '../../../template/CellTemplate'; import {getColorByLabel, isAllow, limitString} from '../../../common/globalMethods'; import AddCell from '../../molecules/addCell/AddCell'; import RemoveCell from '../../molecules/removeCell/RemoveCell'; import {useDispatch, useSelector} from 'react-redux'; import styled from 'styled-components'; import Button from "@material-ui/core/Button"; import {withStyles} from "@material-ui/core/styles"; import {AppPerm} from "../../../enums/permissions/permissions"; import {clickOutsideHandler} from "../../support/closeByClickOutside/clickOutsideHandler"; import {Draggable} from 'react-beautiful-dnd'; import MenuItem from '@material-ui/core/MenuItem'; import DraggableModal from "../../molecules/draggableModal/DraggableModal"; import ContextMenu from "../../molecules/contextMenus/ContextMenu"; import EditContent from "../../molecules/editContent/EditContent"; import {useHistory} from "react-router"; const StyledMiniNote = styled.div` font-size: 8px; display: flex; align-self: flex-end; ` const StyledButton = withStyles({ root: { margin: 0, padding: 0, width: '100%', border: 'none', height: 'auto', '&.Mui-disabled': { border: 'none', } }, } )(Button); const StyledTitle = styled.div` font-size: 10px; font-weight: 500; text-transform: none; ` const StyledWrapper = styled.div` display: grid; grid-template-rows: 1fr auto; ` const StyledContent = styled.div` grid-row: 2 / 3; height: 34px; overflow: hidden; ` const StyledButtonBottom = styled.div.attrs({ className: 'pl-1 pr-1' })` grid-row: 3 / -1; display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; ` const Cell = ({status, name, openModal, mini_note, stageId, id, index, position, ...props}) => { const detailWindowData = {name, mini_note, status, stageId, id, ...props}; const openTaskWindow = useDispatch() const [stateName, setName] = useState(''); const [isDisable, setDisable] = useState(true); const [open, setOpen] = useState(false); const history = useHistory() const permission = useSelector(state => state.investments.permissions) const allowOpenEdit = permission && isAllow(permission, [AppPerm.OPEN_TASK]) const allowAddTask = permission && isAllow(permission, [AppPerm.ADD_TASK]) const allowRemoveTask = permission && isAllow(permission, [AppPerm.DELETE_TASK]) const inputRef = useRef(null); useEffect(() => { setName(name); }, [name]); const closeInputHandler = () => { if (!isDisable) { asyncUpdateName(); setDisable(true); } }; const handleOpenTask = () => { isDisable && history.push(`/react/invest/task/${stageId}/${id}`) } clickOutsideHandler(closeInputHandler, inputRef) const menuItems = (close) => ( <MenuItem onClick={() => handleEdit(close)}>Edytuj</MenuItem> ) const handleEdit = (close) => { close() setOpen(!open) } return ( <Fragment> <Draggable draggableId={`${id}`} index={index} id={id}> {(provided) => ( <div id='styled-cont' ref={provided.innerRef} {...provided.draggableProps} {...provided.dragHandleProps} > <CellTemplate color={getColorByLabel(status)} popoverMessage={name}> <StyledWrapper> <StyledContent> <ContextMenu menuItems={(close) =>menuItems(close)}> <StyledButton disabled={!allowOpenEdit} onClick={handleOpenTask} variant="outlined"> <StyledTitle>{stateName}</StyledTitle> </StyledButton> </ContextMenu> </StyledContent> <StyledButtonBottom> <RemoveCell stageId={stageId} taskId={id} cellName={name} disabled={allowRemoveTask}/> <StyledMiniNote>{mini_note ? limitString(mini_note, 11) : ''}</StyledMiniNote> <AddCell disabled={allowAddTask} stageId={stageId} taskId={id} position={position}/> </StyledButtonBottom> </StyledWrapper> </CellTemplate> </div> )} </Draggable> <DraggableModal open={open} setOpen={setOpen}> <EditContent name={name} id={id} stageId={stageId} setOpen={setOpen}/> </DraggableModal> </Fragment> ) }; export default Cell;
System.register(["cc"], function (_export, _context) { "use strict"; var _cclegacy, _dec, _dec2, _class, _class2, _descriptor, _descriptor2, _temp, _crd, ccclass, property, CloseToBorderComponent; function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; } function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); } return { setters: [function (_cc) { _cclegacy = _cc.cclegacy; }], execute: function () { _crd = true; _cclegacy._RF.push({}, "cf3e2ka4oJD86ow+EZC3UZs", "CloseToBorderComponent", undefined); ({ ccclass, property } = cc._decorator); /** * 未完成 */ _export("default", CloseToBorderComponent = (_dec = property({ tooltip: "是否紧贴下方,不能和紧贴上方同时使用" }), _dec2 = property({ tooltip: "距离下方的距离(px),开启紧贴下方时使用" }), ccclass(_class = (_class2 = (_temp = class CloseToBorderComponent extends cc.Component { constructor(...args) { super(...args); _initializerDefineProperty(this, "closeToBottom", _descriptor, this); _initializerDefineProperty(this, "marginBottomInPx", _descriptor2, this); } // @property({ // tooltip: "是否紧贴上方,不能和紧贴下方同时使用" // }) // closeToTop: boolean = false; onLoad() { // 计算本节点在父节点下,贴底边时的坐标,需要特别注意处理锚点 if (this.closeToBottom) { this.node.position = cc.v2(this.node.position.x, -this.node.parent.height / 2 + this.node.anchorY * this.node.height + this.marginBottomInPx); } } }, _temp), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "closeToBottom", [_dec], { configurable: true, enumerable: true, writable: true, initializer: function () { return false; } }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "marginBottomInPx", [_dec2], { configurable: true, enumerable: true, writable: true, initializer: function () { return 0; } })), _class2)) || _class)); _cclegacy._RF.pop(); _crd = false; } }; }); //# sourceMappingURL=CloseToBorderComponent.js.map
const path = require("path"); const baseConfig = { mode: "production", performance: { hints: false }, stats: { modules: false, children: false, chunks: false, chunkModules: false }, resolve: { extensions: [".ts", ".js"], alias: { "@lin-media": path.join(__dirname, "../packages") }, mainFields: ["doc", "main"] }, module: { rules: [ { test: /\.tsx?$/, use: ["ts-loader"], exclude: /node_modules/ }, { test: /\.(js|jsx)$/, use: ["babel-loader"], exclude: /node_modules/ }, { test: /\.css$/, use: ["style-loader", "css-loader", "postcss-loader"] }, { test: /\.scss$/, use: [ "style-loader", { loader: "css-loader", options: { importLoaders: 1 } }, "postcss-loader", "sass-loader" ] }, { test: /\.(png|jpg|jpeg|gif)$/, use: { loader: "url-loader", options: { name: "[name].[ext]", outputPath: "assets/images/", limit: 40000, esModule: false } } }, { test: /\.(eot|ttf|woff|woff2|svg)$/, use: { loader: "url-loader", options: { name: "[name].[ext]", outputPath: "assets/fonts/", limit: 40000, esModule: false } } }, { test: /\.art$/, loader: "art-template-loader" } ] } }; module.exports = baseConfig;
var shell = require("shelljs"); var config = require("../config/paths.js"); var marked = require('marked'); var TerminalRenderer = require('marked-terminal'); module.exports = (function () { return { execute: function (branch) { // Checkout the new branch shell.cd(`${config.WORKSHOP_HOME}/current`); // Switch to the branch if (shell.exec(`git checkout --quiet ${branch}`).code !== 0) { console.log(`Error: Switching to the chapter ${branch} failed`.red); shell.exit(1); } // Update the branch if (shell.exec(`git pull --quiet origin ${branch}`).code !== 0) { console.log(`Error: Updating the chapter ${branch} failed`.red); shell.exit(1); } // Run the `make intro` command on the repository marked.setOptions({ // Define custom renderer renderer: new TerminalRenderer() }); // Run the branch start command var startOutput = shell.exec(`make start`, {silent: true}); if (startOutput.code !== 0) { console.log(`Error: Starting the chapter ${branch} failed`.red); shell.exit(1); } console.log(marked(startOutput.stdout)); } } })()
const CliTable = require('cli-table') function $(id) { return document.getElementById(id); } var EPSILON = '\'\''; var alphabet; var nonterminals; var terminals; var rules; var firsts; var follows; var ruleTable; function createLl1Table(txt) { rules = txt.split('\n'); alphabet = []; nonterminals = []; terminals = []; collectAlphabetAndNonterminalsAndTerminals(); collectFirsts(); collectFollows(); makeRuleTable(); } function makeRuleTable() { ruleTable = new Object(); for (var i in rules) { var rule = rules[i].trim().split('->'); if (rule.length < 2) { continue; } var nonterminal = rule[0].trim(); var development = trimElements(rule[1].trim().split(' ')); var developmentFirsts = collectFirsts3(development); for (var j in developmentFirsts) { var symbol = developmentFirsts[j]; if (symbol != EPSILON) { if (ruleTable[nonterminal] == undefined) { ruleTable[nonterminal] = new Object(); } var oldTableRule = ruleTable[nonterminal][symbol]; if (oldTableRule == undefined) { ruleTable[nonterminal][symbol] = rules[i].trim(); } else { let oldRules = {} for (let r of oldTableRule.split('\n')) oldRules[r.trim()] = true if (oldRules[rules[i].trim()] === undefined) ruleTable[nonterminal][symbol] = oldTableRule + "\n" + rules[i].trim(); } } else { for (var j in follows[nonterminal]) { var symbol2 = follows[nonterminal][j]; if (ruleTable[nonterminal] == undefined) { ruleTable[nonterminal] = new Object(); } var oldTableRule = ruleTable[nonterminal][symbol2]; if (oldTableRule == undefined) { ruleTable[nonterminal][symbol2] = rules[i].trim(); } else { let oldRules = {} for (let r of oldTableRule.split('\n')) oldRules[r.trim()] = true if (oldRules[rules[i].trim()] === undefined) ruleTable[nonterminal][symbol2] = oldTableRule + "\n" + rules[i].trim(); // ruleTable[nonterminal][symbol2] = oldTableRule + "\n" + rules[i].trim(); } } } } } } function emptyIfUndefined(string) { return string == undefined ? '' : string; } function collectFirsts() { firsts = new Object(); var notDone; do { notDone = false; for (var i in rules) { var rule = rules[i].split('->'); if (rule.length < 2) { continue; } var nonterminal = rule[0].trim(); var development = trimElements(rule[1].trim().split(' ')); var nonterminalFirsts = firsts[nonterminal]; if (nonterminalFirsts == undefined) { nonterminalFirsts = []; } if (development.length == 1 && development[0] == EPSILON) { notDone |= addUnique(EPSILON, nonterminalFirsts); } else { notDone |= collectFirsts4(development, nonterminalFirsts); } firsts[nonterminal] = nonterminalFirsts; } } while (notDone); } /** * @param development * <br>Array of symbols * @param nonterminalFirsts * <br>Array of symbols * <br>Input-output * @return <code>true</code> If <code>nonterminalFirsts</code> has been modified */ function collectFirsts4(development, nonterminalFirsts) { var result = false; var epsilonInSymbolFirsts = true; for (var j in development) { var symbol = development[j]; epsilonInSymbolFirsts = false; if (isElement(symbol, terminals)) { result |= addUnique(symbol, nonterminalFirsts); break; } for (var k in firsts[symbol]) { var first = firsts[symbol][k]; epsilonInSymbolFirsts |= first == EPSILON; result |= addUnique(first, nonterminalFirsts); } if (!epsilonInSymbolFirsts) { break; } } if (epsilonInSymbolFirsts) { result |= addUnique(EPSILON, nonterminalFirsts); } return result; } /** * @param sequence * <br>Array of symbols */ function collectFirsts3(sequence) { var result = []; var epsilonInSymbolFirsts = true; for (var j in sequence) { var symbol = sequence[j]; epsilonInSymbolFirsts = false; if (isElement(symbol, terminals)) { addUnique(symbol, result); break; } for (var k in firsts[symbol]) { var first = firsts[symbol][k]; epsilonInSymbolFirsts |= first == EPSILON; addUnique(first, result); } epsilonInSymbolFirsts |= firsts[symbol] == undefined || firsts[symbol].length == 0; if (!epsilonInSymbolFirsts) { break; } } if (epsilonInSymbolFirsts) { addUnique(EPSILON, result); } return result; } function collectFollows() { follows = new Object(); var notDone; do { notDone = false; for (var i in rules) { var rule = rules[i].split('->'); if (rule.length < 2) { continue; } var nonterminal = rule[0].trim(); var development = trimElements(rule[1].trim().split(' ')); if (i == 0) { var nonterminalFollows = follows[nonterminal]; if (nonterminalFollows == undefined) { nonterminalFollows = []; } notDone |= addUnique('$', nonterminalFollows); follows[nonterminal] = nonterminalFollows; } for (var j in development) { var symbol = development[j]; if (isElement(symbol, nonterminals)) { var symbolFollows = follows[symbol]; if (symbolFollows == undefined) { symbolFollows = []; } var afterSymbolFirsts = collectFirsts3(development.slice(parseInt(j) + 1)); for (var k in afterSymbolFirsts) { var first = afterSymbolFirsts[k]; if (first == EPSILON) { var nonterminalFollows = follows[nonterminal]; for (var l in nonterminalFollows) { notDone |= addUnique(nonterminalFollows[l], symbolFollows); } } else { notDone |= addUnique(first, symbolFollows); } } follows[symbol] = symbolFollows; } } } } while (notDone); } function collectAlphabetAndNonterminalsAndTerminals() { for (var i in rules) { var rule = rules[i].split('->'); if (rule.length != 2) { continue; } var nonterminal = rule[0].trim(); var development = trimElements(rule[1].trim().split(' ')); addUnique(nonterminal, alphabet); addUnique(nonterminal, nonterminals); for (var j in development) { var symbol = development[j]; if (symbol != EPSILON) { addUnique(symbol, alphabet); } } } subtract(alphabet, nonterminals, terminals); } /** * @param result * <br>Array * <br>Input-output * @return <code>result</code> */ function subtract(array1, array2, result) { for (var i in array1) { var element = array1[i]; if (!isElement(element, array2)) { result[result.length] = element; } } return result; } /** * @return * <br>Array * <br>New */ function trimElements(array) { var result = []; for (var i in array) { result[i] = array[i].trim(); } return result; } function isElement(element, array) { for (var i in array) { if (element == array[i]) { return true; } } return false; } /** * @param array * <br>Input-output * @return <code>true</code> iff <code>array</code> has been modified */ function addUnique(element, array) { if (!isElement(element, array)) { array[array.length] = element; return true; } return false; } function resize(textInput, minimumSize) { textInput.size = Math.max(minimumSize, textInput.value.length); } function formatStack(stack) { return stack.join(' ') } function formatInput(input, index) { return input.slice(index).join(' ') + " $" } function formatRule(rule) { return rule; } function parseInput(inputStr, maximumStepCount = 100) { inputStr = inputStr.trim().replace(/ /g, '') // var input = $('input').value.trim().split(' '); var input = inputStr.split(''); var stack = ['$', nonterminals[0]]; let parsingRows = [] parsingRows.push([ formatStack(stack), formatInput(input, 0), '' ]) // var parsingRows = stack.join(' ') + " " + input.join(' ') + " $"; var ok = true; var tree = new Object(); tree.label = 'root'; tree.children = []; var parents = [tree]; for (var i = 0, index = 0; i < maximumStepCount && 1 < stack.length; ++i) { var stackTop = stack[stack.length - 1]; var symbol = index < input.length ? input[index] : '$'; if (symbol.trim() == '') { symbol = '$'; } var rule = ''; if (stackTop == symbol) { stack.pop(); ++index; parents.pop().children.push(symbol); } else { if (isElement(stackTop, nonterminals)) { rule = ruleTable[stackTop][symbol]; var node = new Object(); node.label = stackTop; node.children = []; parents.pop().children.push(node); if (rule == undefined) { ok = false; break; } stack.pop(); var reverseDevelopment = rule.split('->')[1].trim().split(' ').slice(0).reverse(); for (var i in reverseDevelopment) { parents.push(node); } if (!isElement(EPSILON, reverseDevelopment)) { stack = stack.concat(reverseDevelopment); } else { parents.pop().children.push(EPSILON); } } else { ok = false; break; } } // parsingRows += '<tr><td nowrap=\"nowrap\">' + stack.join(' ') + "</td><td nowrap=\"nowrap\">" + input.slice(index).join(' ') + " $</td><td nowrap=\"nowrap\">" + rule + "</td></tr>\n"; parsingRows.push([ formatStack(stack), formatInput(input, index), formatRule(rule) ]) } const table = new CliTable({ head: ['STACK', 'INPUT', 'RULE'] }) table.push(...parsingRows) if (ok) { console.log('Parsing Steps'.cyan) console.log(table.toString()) console.log('string accepted!'.green) } else { console.log('string not accepted!'.red) } // return [...['STACK', 'INPUT', 'RULE'],parsingRows] return { header: ['STACK', 'INPUT', 'RULE'], rows: parsingRows, accepted: ok } } function toString(tree) { if (tree.label == undefined) { return '' + tree; } var result = "<table class=\"tree\" border=\"1\"><thead><tr><th colspan=\"" + tree.children.length + "\">" + tree.label + "</th></tr></thead><tbody><tr>"; for (var i in tree.children) { result += "<td>" + toString(tree.children[i]) + "</td>"; } result += "</tr></tbody></table>"; return result; } function renderRuleTable() { const head = ['NonTerminal'] for (let t of terminals.concat(['$'])) head.push(t); let rows = [] for (var i in nonterminals) { var nonterminal = nonterminals[i]; let row = [nonterminal] for (var j in terminals) row.push(emptyIfUndefined(ruleTable[nonterminal][terminals[j]])) row.push(emptyIfUndefined(ruleTable[nonterminal]['$'])) rows.push(row) } const table = new CliTable({ head: head }) table.push(...rows) console.log('LL(1) Parsing Table:'.cyan) console.log(table.toString()) // return table.toString() // return [...head,rows] return { header: head, rows } } function handleLl1(grammerTxt, input) { createLl1Table(grammerTxt) // console.log(('\nLL(1) Parse Table:').cyan) // console.log(renderRuleTable()) let tableRes = renderRuleTable() let str = '' if (input) { str = parseInput(input) // if (ok) { // console.log('\nParsing Steps'.cyan) // console.log(str) // console.log('string accepted!'.green) // } else { // console.log('\nstring not accepted!'.red) // } } // console.log(tableRes) return {states:tableRes, 'parse-table': str} } module.exports = { handleLl1: handleLl1, renderRuleTable: renderRuleTable }
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. import { Log } from "./Log.js"; import { CheckSessionIFrame } from "./CheckSessionIFrame.js"; import { Global } from "./Global.js"; export class SessionMonitor { constructor( userManager, CheckSessionIFrameCtor = CheckSessionIFrame, timer = Global.timer ) { if (!userManager) { Log.error( "SessionMonitor.ctor: No user manager passed to SessionMonitor" ); throw new Error("userManager"); } this._userManager = userManager; this._CheckSessionIFrameCtor = CheckSessionIFrameCtor; this._timer = timer; this._userManager.events.addUserLoaded(this._start.bind(this)); this._userManager.events.addUserUnloaded(this._stop.bind(this)); Promise.resolve( this._userManager .getUser() .then((user) => { // doing this manually here since calling getUser // doesn't trigger load event. if (user) { this._start(user); } else if (this._settings.monitorAnonymousSession) { this._userManager .querySessionStatus() .then((session) => { let tmpUser = { session_state: session.session_state, }; if (session.sub && session.sid) { tmpUser.profile = { sub: session.sub, sid: session.sid, }; } this._start(tmpUser); }) .catch((err) => { // catch to suppress errors since we're in a ctor Log.error( "SessionMonitor ctor: error from querySessionStatus:", err.message ); }); } }) .catch((err) => { // catch to suppress errors since we're in a ctor Log.error("SessionMonitor ctor: error from getUser:", err.message); }) ); } get _settings() { return this._userManager.settings; } get _metadataService() { return this._userManager.metadataService; } get _client_id() { return this._settings.client_id; } get _checkSessionInterval() { return this._settings.checkSessionInterval; } get _stopCheckSessionOnError() { return this._settings.stopCheckSessionOnError; } _start(user) { let session_state = user.session_state; if (session_state) { if (user.profile) { this._sub = user.profile.sub; this._sid = user.profile.sid; Log.debug( "SessionMonitor._start: session_state:", session_state, ", sub:", this._sub ); } else { this._sub = undefined; this._sid = undefined; Log.debug( "SessionMonitor._start: session_state:", session_state, ", anonymous user" ); } if (!this._checkSessionIFrame) { this._metadataService .getCheckSessionIframe() .then((url) => { if (url) { Log.debug( "SessionMonitor._start: Initializing check session iframe" ); let client_id = this._client_id; let interval = this._checkSessionInterval; let stopOnError = this._stopCheckSessionOnError; this._checkSessionIFrame = new this._CheckSessionIFrameCtor( this._callback.bind(this), client_id, url, interval, stopOnError ); this._checkSessionIFrame.load().then(() => { this._checkSessionIFrame.start(session_state); }); } else { Log.warn( "SessionMonitor._start: No check session iframe found in the metadata" ); } }) .catch((err) => { // catch to suppress errors since we're in non-promise callback Log.error( "SessionMonitor._start: Error from getCheckSessionIframe:", err.message ); }); } else { this._checkSessionIFrame.start(session_state); } } } _stop() { this._sub = undefined; this._sid = undefined; if (this._checkSessionIFrame) { Log.debug("SessionMonitor._stop"); this._checkSessionIFrame.stop(); } if (this._settings.monitorAnonymousSession) { // using a timer to delay re-initialization to avoid race conditions during signout let timerHandle = this._timer.setInterval(() => { this._timer.clearInterval(timerHandle); this._userManager .querySessionStatus() .then((session) => { let tmpUser = { session_state: session.session_state, }; if (session.sub && session.sid) { tmpUser.profile = { sub: session.sub, sid: session.sid, }; } this._start(tmpUser); }) .catch((err) => { // catch to suppress errors since we're in a callback Log.error( "SessionMonitor: error from querySessionStatus:", err.message ); }); }, 1000); } } _callback() { this._userManager .querySessionStatus() .then((session) => { var raiseEvent = true; if (session) { if (session.sub === this._sub) { raiseEvent = false; this._checkSessionIFrame.start(session.session_state); if (session.sid === this._sid) { Log.debug( "SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:", session.session_state ); } else { Log.debug( "SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:", session.session_state ); this._userManager.events._raiseUserSessionChanged(); } } else { Log.debug( "SessionMonitor._callback: Different subject signed into OP:", session.sub ); } } else { Log.debug( "SessionMonitor._callback: Subject no longer signed into OP" ); } if (raiseEvent) { if (this._sub) { Log.debug( "SessionMonitor._callback: SessionMonitor._callback; raising signed out event" ); this._userManager.events._raiseUserSignedOut(); } else { Log.debug( "SessionMonitor._callback: SessionMonitor._callback; raising signed in event" ); this._userManager.events._raiseUserSignedIn(); } } }) .catch((err) => { if (this._sub) { Log.debug( "SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event", err.message ); this._userManager.events._raiseUserSignedOut(); } }); } }
/** * Copyright (c) 2014, 2016, Oracle and/or its affiliates. * The Universal Permissive License (UPL), Version 1.0 * as shown at https://oss.oracle.com/licenses/upl/ */ "use strict";var l={"STP":["STP","Sao Tom\u00E9-et-Principe"],"SDN":["SDN","Soudan"],"GMB":["GMB","Gambie"],"CMR":["CMR","Cameroun"],"GNB":["GNB","Guin\u00E9e-Bissau"],"ERI":["ERI","Erythr\u00E9e"],"SEN":["SEN","S\u00E9n\u00E9gal"],"MAR":["MAR","Maroc"],"GNQ":["GNQ","Guin\u00E9e \u00E9quatoriale"],"MRT":["MRT","Mauritanie"],"COD":["COD","Congo, R\u00E9publique d\u00E9mocratique"],"ESH":["ESH","Sahara occidental"],"COM":["COM","Comores"],"DZA":["DZA","Alg\u00E9rie"],"BEN":["BEN","B\u00E9nin"],"ZMB":["ZMB","Zambie"],"SOM":["SOM","Somalie"],"ETH":["ETH","Ethiopie"],"TZA":["TZA","Tanzanie"],"REU":["REU","R\u00E9union"],"CPV":["CPV","Cap-Vert"],"SHN":["SHN","Sainte-H\u00E9l\u00E8ne"],"LBR":["LBR","Lib\u00E9ria"],"LBY":["LBY","Libye"],"CAF":["CAF","R\u00E9publique centrafricaine"],"MUS":["MUS","Maurice"],"GIN":["GIN","Guin\u00E9e"],"CIV":["CIV","C\u00F4te d'Ivoire"],"TCD":["TCD","Tchad"],"TUN":["TUN","Tunisie"],"UGA":["UGA","Ouganda"],"EGY":["EGY","Egypte"],"NAM":["NAM","Namibie"],"ZAF":["ZAF","Afrique du Sud"]};(this?this:window)['DvtBaseMapManager']['_UNPROCESSED_MAPS'][2].push(["africa","countries",l]);
var convert = require('./convert'), func = convert('unionWith', require('../unionWith')); func.placeholder = require('./placeholder'); module.exports = func;
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); /******/ }) /************************************************************************/ /******/ ({ /***/ "./node_modules/alpinejs/dist/alpine.js": /*!**********************************************!*\ !*** ./node_modules/alpinejs/dist/alpine.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { (function (global, factory) { true ? module.exports = factory() : undefined; }(this, (function () { 'use strict'; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } // Thanks @stimulus: // https://github.com/stimulusjs/stimulus/blob/master/packages/%40stimulus/core/src/application.ts function domReady() { return new Promise(resolve => { if (document.readyState == "loading") { document.addEventListener("DOMContentLoaded", resolve); } else { resolve(); } }); } function arrayUnique(array) { return Array.from(new Set(array)); } function isTesting() { return navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"); } function checkedAttrLooseCompare(valueA, valueB) { return valueA == valueB; } function warnIfMalformedTemplate(el, directive) { if (el.tagName.toLowerCase() !== 'template') { console.warn(`Alpine: [${directive}] directive should only be added to <template> tags. See https://github.com/alpinejs/alpine#${directive}`); } else if (el.content.childElementCount !== 1) { console.warn(`Alpine: <template> tag with [${directive}] encountered with multiple element roots. Make sure <template> only has a single child element.`); } } function kebabCase(subject) { return subject.replace(/([a-z])([A-Z])/g, '$1-$2').replace(/[_\s]/, '-').toLowerCase(); } function camelCase(subject) { return subject.toLowerCase().replace(/-(\w)/g, (match, char) => char.toUpperCase()); } function walk(el, callback) { if (callback(el) === false) return; let node = el.firstElementChild; while (node) { walk(node, callback); node = node.nextElementSibling; } } function debounce(func, wait) { var timeout; return function () { var context = this, args = arguments; var later = function later() { timeout = null; func.apply(context, args); }; clearTimeout(timeout); timeout = setTimeout(later, wait); }; } const handleError = (el, expression, error) => { console.warn(`Alpine Error: "${error}"\n\nExpression: "${expression}"\nElement:`, el); if (!isTesting()) { throw error; } }; function tryCatch(cb, { el, expression }) { try { const value = cb(); return value instanceof Promise ? value.catch(e => handleError(el, expression, e)) : value; } catch (e) { handleError(el, expression, e); } } function saferEval(el, expression, dataContext, additionalHelperVariables = {}) { return tryCatch(() => { if (typeof expression === 'function') { return expression.call(dataContext); } return new Function(['$data', ...Object.keys(additionalHelperVariables)], `var __alpine_result; with($data) { __alpine_result = ${expression} }; return __alpine_result`)(dataContext, ...Object.values(additionalHelperVariables)); }, { el, expression }); } function saferEvalNoReturn(el, expression, dataContext, additionalHelperVariables = {}) { return tryCatch(() => { if (typeof expression === 'function') { return Promise.resolve(expression.call(dataContext, additionalHelperVariables['$event'])); } let AsyncFunction = Function; /* MODERN-ONLY:START */ AsyncFunction = Object.getPrototypeOf(async function () {}).constructor; /* MODERN-ONLY:END */ // For the cases when users pass only a function reference to the caller: `x-on:click="foo"` // Where "foo" is a function. Also, we'll pass the function the event instance when we call it. if (Object.keys(dataContext).includes(expression)) { let methodReference = new Function(['dataContext', ...Object.keys(additionalHelperVariables)], `with(dataContext) { return ${expression} }`)(dataContext, ...Object.values(additionalHelperVariables)); if (typeof methodReference === 'function') { return Promise.resolve(methodReference.call(dataContext, additionalHelperVariables['$event'])); } else { return Promise.resolve(); } } return Promise.resolve(new AsyncFunction(['dataContext', ...Object.keys(additionalHelperVariables)], `with(dataContext) { ${expression} }`)(dataContext, ...Object.values(additionalHelperVariables))); }, { el, expression }); } const xAttrRE = /^x-(on|bind|data|text|html|model|if|for|show|cloak|transition|ref|spread)\b/; function isXAttr(attr) { const name = replaceAtAndColonWithStandardSyntax(attr.name); return xAttrRE.test(name); } function getXAttrs(el, component, type) { let directives = Array.from(el.attributes).filter(isXAttr).map(parseHtmlAttribute); // Get an object of directives from x-spread. let spreadDirective = directives.filter(directive => directive.type === 'spread')[0]; if (spreadDirective) { let spreadObject = saferEval(el, spreadDirective.expression, component.$data); // Add x-spread directives to the pile of existing directives. directives = directives.concat(Object.entries(spreadObject).map(([name, value]) => parseHtmlAttribute({ name, value }))); } if (type) return directives.filter(i => i.type === type); return sortDirectives(directives); } function sortDirectives(directives) { let directiveOrder = ['bind', 'model', 'show', 'catch-all']; return directives.sort((a, b) => { let typeA = directiveOrder.indexOf(a.type) === -1 ? 'catch-all' : a.type; let typeB = directiveOrder.indexOf(b.type) === -1 ? 'catch-all' : b.type; return directiveOrder.indexOf(typeA) - directiveOrder.indexOf(typeB); }); } function parseHtmlAttribute({ name, value }) { const normalizedName = replaceAtAndColonWithStandardSyntax(name); const typeMatch = normalizedName.match(xAttrRE); const valueMatch = normalizedName.match(/:([a-zA-Z0-9\-:]+)/); const modifiers = normalizedName.match(/\.[^.\]]+(?=[^\]]*$)/g) || []; return { type: typeMatch ? typeMatch[1] : null, value: valueMatch ? valueMatch[1] : null, modifiers: modifiers.map(i => i.replace('.', '')), expression: value }; } function isBooleanAttr(attrName) { // As per HTML spec table https://html.spec.whatwg.org/multipage/indices.html#attributes-3:boolean-attribute // Array roughly ordered by estimated usage const booleanAttributes = ['disabled', 'checked', 'required', 'readonly', 'hidden', 'open', 'selected', 'autofocus', 'itemscope', 'multiple', 'novalidate', 'allowfullscreen', 'allowpaymentrequest', 'formnovalidate', 'autoplay', 'controls', 'loop', 'muted', 'playsinline', 'default', 'ismap', 'reversed', 'async', 'defer', 'nomodule']; return booleanAttributes.includes(attrName); } function replaceAtAndColonWithStandardSyntax(name) { if (name.startsWith('@')) { return name.replace('@', 'x-on:'); } else if (name.startsWith(':')) { return name.replace(':', 'x-bind:'); } return name; } function convertClassStringToArray(classList, filterFn = Boolean) { return classList.split(' ').filter(filterFn); } const TRANSITION_TYPE_IN = 'in'; const TRANSITION_TYPE_OUT = 'out'; const TRANSITION_CANCELLED = 'cancelled'; function transitionIn(el, show, reject, component, forceSkip = false) { // We don't want to transition on the initial page load. if (forceSkip) return show(); if (el.__x_transition && el.__x_transition.type === TRANSITION_TYPE_IN) { // there is already a similar transition going on, this was probably triggered by // a change in a different property, let's just leave the previous one doing its job return; } const attrs = getXAttrs(el, component, 'transition'); const showAttr = getXAttrs(el, component, 'show')[0]; // If this is triggered by a x-show.transition. if (showAttr && showAttr.modifiers.includes('transition')) { let modifiers = showAttr.modifiers; // If x-show.transition.out, we'll skip the "in" transition. if (modifiers.includes('out') && !modifiers.includes('in')) return show(); const settingBothSidesOfTransition = modifiers.includes('in') && modifiers.includes('out'); // If x-show.transition.in...out... only use "in" related modifiers for this transition. modifiers = settingBothSidesOfTransition ? modifiers.filter((i, index) => index < modifiers.indexOf('out')) : modifiers; transitionHelperIn(el, modifiers, show, reject); // Otherwise, we can assume x-transition:enter. } else if (attrs.some(attr => ['enter', 'enter-start', 'enter-end'].includes(attr.value))) { transitionClassesIn(el, component, attrs, show, reject); } else { // If neither, just show that damn thing. show(); } } function transitionOut(el, hide, reject, component, forceSkip = false) { // We don't want to transition on the initial page load. if (forceSkip) return hide(); if (el.__x_transition && el.__x_transition.type === TRANSITION_TYPE_OUT) { // there is already a similar transition going on, this was probably triggered by // a change in a different property, let's just leave the previous one doing its job return; } const attrs = getXAttrs(el, component, 'transition'); const showAttr = getXAttrs(el, component, 'show')[0]; if (showAttr && showAttr.modifiers.includes('transition')) { let modifiers = showAttr.modifiers; if (modifiers.includes('in') && !modifiers.includes('out')) return hide(); const settingBothSidesOfTransition = modifiers.includes('in') && modifiers.includes('out'); modifiers = settingBothSidesOfTransition ? modifiers.filter((i, index) => index > modifiers.indexOf('out')) : modifiers; transitionHelperOut(el, modifiers, settingBothSidesOfTransition, hide, reject); } else if (attrs.some(attr => ['leave', 'leave-start', 'leave-end'].includes(attr.value))) { transitionClassesOut(el, component, attrs, hide, reject); } else { hide(); } } function transitionHelperIn(el, modifiers, showCallback, reject) { // Default values inspired by: https://material.io/design/motion/speed.html#duration const styleValues = { duration: modifierValue(modifiers, 'duration', 150), origin: modifierValue(modifiers, 'origin', 'center'), first: { opacity: 0, scale: modifierValue(modifiers, 'scale', 95) }, second: { opacity: 1, scale: 100 } }; transitionHelper(el, modifiers, showCallback, () => {}, reject, styleValues, TRANSITION_TYPE_IN); } function transitionHelperOut(el, modifiers, settingBothSidesOfTransition, hideCallback, reject) { // Make the "out" transition .5x slower than the "in". (Visually better) // HOWEVER, if they explicitly set a duration for the "out" transition, // use that. const duration = settingBothSidesOfTransition ? modifierValue(modifiers, 'duration', 150) : modifierValue(modifiers, 'duration', 150) / 2; const styleValues = { duration: duration, origin: modifierValue(modifiers, 'origin', 'center'), first: { opacity: 1, scale: 100 }, second: { opacity: 0, scale: modifierValue(modifiers, 'scale', 95) } }; transitionHelper(el, modifiers, () => {}, hideCallback, reject, styleValues, TRANSITION_TYPE_OUT); } function modifierValue(modifiers, key, fallback) { // If the modifier isn't present, use the default. if (modifiers.indexOf(key) === -1) return fallback; // If it IS present, grab the value after it: x-show.transition.duration.500ms const rawValue = modifiers[modifiers.indexOf(key) + 1]; if (!rawValue) return fallback; if (key === 'scale') { // Check if the very next value is NOT a number and return the fallback. // If x-show.transition.scale, we'll use the default scale value. // That is how a user opts out of the opacity transition. if (!isNumeric(rawValue)) return fallback; } if (key === 'duration') { // Support x-show.transition.duration.500ms && duration.500 let match = rawValue.match(/([0-9]+)ms/); if (match) return match[1]; } if (key === 'origin') { // Support chaining origin directions: x-show.transition.top.right if (['top', 'right', 'left', 'center', 'bottom'].includes(modifiers[modifiers.indexOf(key) + 2])) { return [rawValue, modifiers[modifiers.indexOf(key) + 2]].join(' '); } } return rawValue; } function transitionHelper(el, modifiers, hook1, hook2, reject, styleValues, type) { // clear the previous transition if exists to avoid caching the wrong styles if (el.__x_transition) { el.__x_transition.cancel && el.__x_transition.cancel(); } // If the user set these style values, we'll put them back when we're done with them. const opacityCache = el.style.opacity; const transformCache = el.style.transform; const transformOriginCache = el.style.transformOrigin; // If no modifiers are present: x-show.transition, we'll default to both opacity and scale. const noModifiers = !modifiers.includes('opacity') && !modifiers.includes('scale'); const transitionOpacity = noModifiers || modifiers.includes('opacity'); const transitionScale = noModifiers || modifiers.includes('scale'); // These are the explicit stages of a transition (same stages for in and for out). // This way you can get a birds eye view of the hooks, and the differences // between them. const stages = { start() { if (transitionOpacity) el.style.opacity = styleValues.first.opacity; if (transitionScale) el.style.transform = `scale(${styleValues.first.scale / 100})`; }, during() { if (transitionScale) el.style.transformOrigin = styleValues.origin; el.style.transitionProperty = [transitionOpacity ? `opacity` : ``, transitionScale ? `transform` : ``].join(' ').trim(); el.style.transitionDuration = `${styleValues.duration / 1000}s`; el.style.transitionTimingFunction = `cubic-bezier(0.4, 0.0, 0.2, 1)`; }, show() { hook1(); }, end() { if (transitionOpacity) el.style.opacity = styleValues.second.opacity; if (transitionScale) el.style.transform = `scale(${styleValues.second.scale / 100})`; }, hide() { hook2(); }, cleanup() { if (transitionOpacity) el.style.opacity = opacityCache; if (transitionScale) el.style.transform = transformCache; if (transitionScale) el.style.transformOrigin = transformOriginCache; el.style.transitionProperty = null; el.style.transitionDuration = null; el.style.transitionTimingFunction = null; } }; transition(el, stages, type, reject); } const ensureStringExpression = (expression, el, component) => { return typeof expression === 'function' ? component.evaluateReturnExpression(el, expression) : expression; }; function transitionClassesIn(el, component, directives, showCallback, reject) { const enter = convertClassStringToArray(ensureStringExpression((directives.find(i => i.value === 'enter') || { expression: '' }).expression, el, component)); const enterStart = convertClassStringToArray(ensureStringExpression((directives.find(i => i.value === 'enter-start') || { expression: '' }).expression, el, component)); const enterEnd = convertClassStringToArray(ensureStringExpression((directives.find(i => i.value === 'enter-end') || { expression: '' }).expression, el, component)); transitionClasses(el, enter, enterStart, enterEnd, showCallback, () => {}, TRANSITION_TYPE_IN, reject); } function transitionClassesOut(el, component, directives, hideCallback, reject) { const leave = convertClassStringToArray(ensureStringExpression((directives.find(i => i.value === 'leave') || { expression: '' }).expression, el, component)); const leaveStart = convertClassStringToArray(ensureStringExpression((directives.find(i => i.value === 'leave-start') || { expression: '' }).expression, el, component)); const leaveEnd = convertClassStringToArray(ensureStringExpression((directives.find(i => i.value === 'leave-end') || { expression: '' }).expression, el, component)); transitionClasses(el, leave, leaveStart, leaveEnd, () => {}, hideCallback, TRANSITION_TYPE_OUT, reject); } function transitionClasses(el, classesDuring, classesStart, classesEnd, hook1, hook2, type, reject) { // clear the previous transition if exists to avoid caching the wrong classes if (el.__x_transition) { el.__x_transition.cancel && el.__x_transition.cancel(); } const originalClasses = el.__x_original_classes || []; const stages = { start() { el.classList.add(...classesStart); }, during() { el.classList.add(...classesDuring); }, show() { hook1(); }, end() { // Don't remove classes that were in the original class attribute. el.classList.remove(...classesStart.filter(i => !originalClasses.includes(i))); el.classList.add(...classesEnd); }, hide() { hook2(); }, cleanup() { el.classList.remove(...classesDuring.filter(i => !originalClasses.includes(i))); el.classList.remove(...classesEnd.filter(i => !originalClasses.includes(i))); } }; transition(el, stages, type, reject); } function transition(el, stages, type, reject) { const finish = once(() => { stages.hide(); // Adding an "isConnected" check, in case the callback // removed the element from the DOM. if (el.isConnected) { stages.cleanup(); } delete el.__x_transition; }); el.__x_transition = { // Set transition type so we can avoid clearing transition if the direction is the same type: type, // create a callback for the last stages of the transition so we can call it // from different point and early terminate it. Once will ensure that function // is only called one time. cancel: once(() => { reject(TRANSITION_CANCELLED); finish(); }), finish, // This store the next animation frame so we can cancel it nextFrame: null }; stages.start(); stages.during(); el.__x_transition.nextFrame = requestAnimationFrame(() => { // Note: Safari's transitionDuration property will list out comma separated transition durations // for every single transition property. Let's grab the first one and call it a day. let duration = Number(getComputedStyle(el).transitionDuration.replace(/,.*/, '').replace('s', '')) * 1000; if (duration === 0) { duration = Number(getComputedStyle(el).animationDuration.replace('s', '')) * 1000; } stages.show(); el.__x_transition.nextFrame = requestAnimationFrame(() => { stages.end(); setTimeout(el.__x_transition.finish, duration); }); }); } function isNumeric(subject) { return !Array.isArray(subject) && !isNaN(subject); } // Thanks @vuejs // https://github.com/vuejs/vue/blob/4de4649d9637262a9b007720b59f80ac72a5620c/src/shared/util.js function once(callback) { let called = false; return function () { if (!called) { called = true; callback.apply(this, arguments); } }; } function handleForDirective(component, templateEl, expression, initialUpdate, extraVars) { warnIfMalformedTemplate(templateEl, 'x-for'); let iteratorNames = typeof expression === 'function' ? parseForExpression(component.evaluateReturnExpression(templateEl, expression)) : parseForExpression(expression); let items = evaluateItemsAndReturnEmptyIfXIfIsPresentAndFalseOnElement(component, templateEl, iteratorNames, extraVars); // As we walk the array, we'll also walk the DOM (updating/creating as we go). let currentEl = templateEl; items.forEach((item, index) => { let iterationScopeVariables = getIterationScopeVariables(iteratorNames, item, index, items, extraVars()); let currentKey = generateKeyForIteration(component, templateEl, index, iterationScopeVariables); let nextEl = lookAheadForMatchingKeyedElementAndMoveItIfFound(currentEl.nextElementSibling, currentKey); // If we haven't found a matching key, insert the element at the current position. if (!nextEl) { nextEl = addElementInLoopAfterCurrentEl(templateEl, currentEl); // And transition it in if it's not the first page load. transitionIn(nextEl, () => {}, () => {}, component, initialUpdate); nextEl.__x_for = iterationScopeVariables; component.initializeElements(nextEl, () => nextEl.__x_for); // Otherwise update the element we found. } else { // Temporarily remove the key indicator to allow the normal "updateElements" to work. delete nextEl.__x_for_key; nextEl.__x_for = iterationScopeVariables; component.updateElements(nextEl, () => nextEl.__x_for); } currentEl = nextEl; currentEl.__x_for_key = currentKey; }); removeAnyLeftOverElementsFromPreviousUpdate(currentEl, component); } // This was taken from VueJS 2.* core. Thanks Vue! function parseForExpression(expression) { let forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/; let stripParensRE = /^\(|\)$/g; let forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/; let inMatch = expression.match(forAliasRE); if (!inMatch) return; let res = {}; res.items = inMatch[2].trim(); let item = inMatch[1].trim().replace(stripParensRE, ''); let iteratorMatch = item.match(forIteratorRE); if (iteratorMatch) { res.item = item.replace(forIteratorRE, '').trim(); res.index = iteratorMatch[1].trim(); if (iteratorMatch[2]) { res.collection = iteratorMatch[2].trim(); } } else { res.item = item; } return res; } function getIterationScopeVariables(iteratorNames, item, index, items, extraVars) { // We must create a new object, so each iteration has a new scope let scopeVariables = extraVars ? _objectSpread2({}, extraVars) : {}; scopeVariables[iteratorNames.item] = item; if (iteratorNames.index) scopeVariables[iteratorNames.index] = index; if (iteratorNames.collection) scopeVariables[iteratorNames.collection] = items; return scopeVariables; } function generateKeyForIteration(component, el, index, iterationScopeVariables) { let bindKeyAttribute = getXAttrs(el, component, 'bind').filter(attr => attr.value === 'key')[0]; // If the dev hasn't specified a key, just return the index of the iteration. if (!bindKeyAttribute) return index; return component.evaluateReturnExpression(el, bindKeyAttribute.expression, () => iterationScopeVariables); } function evaluateItemsAndReturnEmptyIfXIfIsPresentAndFalseOnElement(component, el, iteratorNames, extraVars) { let ifAttribute = getXAttrs(el, component, 'if')[0]; if (ifAttribute && !component.evaluateReturnExpression(el, ifAttribute.expression)) { return []; } let items = component.evaluateReturnExpression(el, iteratorNames.items, extraVars); // This adds support for the `i in n` syntax. if (isNumeric(items) && items > 0) { items = Array.from(Array(items).keys(), i => i + 1); } return items; } function addElementInLoopAfterCurrentEl(templateEl, currentEl) { let clone = document.importNode(templateEl.content, true); currentEl.parentElement.insertBefore(clone, currentEl.nextElementSibling); return currentEl.nextElementSibling; } function lookAheadForMatchingKeyedElementAndMoveItIfFound(nextEl, currentKey) { if (!nextEl) return; // If we are already past the x-for generated elements, we don't need to look ahead. if (nextEl.__x_for_key === undefined) return; // If the the key's DO match, no need to look ahead. if (nextEl.__x_for_key === currentKey) return nextEl; // If they don't, we'll look ahead for a match. // If we find it, we'll move it to the current position in the loop. let tmpNextEl = nextEl; while (tmpNextEl) { if (tmpNextEl.__x_for_key === currentKey) { return tmpNextEl.parentElement.insertBefore(tmpNextEl, nextEl); } tmpNextEl = tmpNextEl.nextElementSibling && tmpNextEl.nextElementSibling.__x_for_key !== undefined ? tmpNextEl.nextElementSibling : false; } } function removeAnyLeftOverElementsFromPreviousUpdate(currentEl, component) { var nextElementFromOldLoop = currentEl.nextElementSibling && currentEl.nextElementSibling.__x_for_key !== undefined ? currentEl.nextElementSibling : false; while (nextElementFromOldLoop) { let nextElementFromOldLoopImmutable = nextElementFromOldLoop; let nextSibling = nextElementFromOldLoop.nextElementSibling; transitionOut(nextElementFromOldLoop, () => { nextElementFromOldLoopImmutable.remove(); }, () => {}, component); nextElementFromOldLoop = nextSibling && nextSibling.__x_for_key !== undefined ? nextSibling : false; } } function handleAttributeBindingDirective(component, el, attrName, expression, extraVars, attrType, modifiers) { var value = component.evaluateReturnExpression(el, expression, extraVars); if (attrName === 'value') { if (Alpine.ignoreFocusedForValueBinding && document.activeElement.isSameNode(el)) return; // If nested model key is undefined, set the default value to empty string. if (value === undefined && expression.match(/\./)) { value = ''; } if (el.type === 'radio') { // Set radio value from x-bind:value, if no "value" attribute exists. // If there are any initial state values, radio will have a correct // "checked" value since x-bind:value is processed before x-model. if (el.attributes.value === undefined && attrType === 'bind') { el.value = value; } else if (attrType !== 'bind') { el.checked = checkedAttrLooseCompare(el.value, value); } } else if (el.type === 'checkbox') { // If we are explicitly binding a string to the :value, set the string, // If the value is a boolean, leave it alone, it will be set to "on" // automatically. if (typeof value !== 'boolean' && ![null, undefined].includes(value) && attrType === 'bind') { el.value = String(value); } else if (attrType !== 'bind') { if (Array.isArray(value)) { // I'm purposely not using Array.includes here because it's // strict, and because of Numeric/String mis-casting, I // want the "includes" to be "fuzzy". el.checked = value.some(val => checkedAttrLooseCompare(val, el.value)); } else { el.checked = !!value; } } } else if (el.tagName === 'SELECT') { updateSelect(el, value); } else { if (el.value === value) return; el.value = value; } } else if (attrName === 'class') { if (Array.isArray(value)) { const originalClasses = el.__x_original_classes || []; el.setAttribute('class', arrayUnique(originalClasses.concat(value)).join(' ')); } else if (typeof value === 'object') { // Sorting the keys / class names by their boolean value will ensure that // anything that evaluates to `false` and needs to remove classes is run first. const keysSortedByBooleanValue = Object.keys(value).sort((a, b) => value[a] - value[b]); keysSortedByBooleanValue.forEach(classNames => { if (value[classNames]) { convertClassStringToArray(classNames).forEach(className => el.classList.add(className)); } else { convertClassStringToArray(classNames).forEach(className => el.classList.remove(className)); } }); } else { const originalClasses = el.__x_original_classes || []; const newClasses = value ? convertClassStringToArray(value) : []; el.setAttribute('class', arrayUnique(originalClasses.concat(newClasses)).join(' ')); } } else { attrName = modifiers.includes('camel') ? camelCase(attrName) : attrName; // If an attribute's bound value is null, undefined or false, remove the attribute if ([null, undefined, false].includes(value)) { el.removeAttribute(attrName); } else { isBooleanAttr(attrName) ? setIfChanged(el, attrName, attrName) : setIfChanged(el, attrName, value); } } } function setIfChanged(el, attrName, value) { if (el.getAttribute(attrName) != value) { el.setAttribute(attrName, value); } } function updateSelect(el, value) { const arrayWrappedValue = [].concat(value).map(value => { return value + ''; }); Array.from(el.options).forEach(option => { option.selected = arrayWrappedValue.includes(option.value || option.text); }); } function handleTextDirective(el, output, expression) { // If nested model key is undefined, set the default value to empty string. if (output === undefined && expression.match(/\./)) { output = ''; } el.textContent = output; } function handleHtmlDirective(component, el, expression, extraVars) { el.innerHTML = component.evaluateReturnExpression(el, expression, extraVars); } function handleShowDirective(component, el, value, modifiers, initialUpdate = false) { const hide = () => { el.style.display = 'none'; el.__x_is_shown = false; }; const show = () => { if (el.style.length === 1 && el.style.display === 'none') { el.removeAttribute('style'); } else { el.style.removeProperty('display'); } el.__x_is_shown = true; }; if (initialUpdate === true) { if (value) { show(); } else { hide(); } return; } const handle = (resolve, reject) => { if (value) { if (el.style.display === 'none' || el.__x_transition) { transitionIn(el, () => { show(); }, reject, component); } resolve(() => {}); } else { if (el.style.display !== 'none') { transitionOut(el, () => { resolve(() => { hide(); }); }, reject, component); } else { resolve(() => {}); } } }; // The working of x-show is a bit complex because we need to // wait for any child transitions to finish before hiding // some element. Also, this has to be done recursively. // If x-show.immediate, foregoe the waiting. if (modifiers.includes('immediate')) { handle(finish => finish(), () => {}); return; } // x-show is encountered during a DOM tree walk. If an element // we encounter is NOT a child of another x-show element we // can execute the previous x-show stack (if one exists). if (component.showDirectiveLastElement && !component.showDirectiveLastElement.contains(el)) { component.executeAndClearRemainingShowDirectiveStack(); } component.showDirectiveStack.push(handle); component.showDirectiveLastElement = el; } function handleIfDirective(component, el, expressionResult, initialUpdate, extraVars) { warnIfMalformedTemplate(el, 'x-if'); const elementHasAlreadyBeenAdded = el.nextElementSibling && el.nextElementSibling.__x_inserted_me === true; if (expressionResult && (!elementHasAlreadyBeenAdded || el.__x_transition)) { const clone = document.importNode(el.content, true); el.parentElement.insertBefore(clone, el.nextElementSibling); transitionIn(el.nextElementSibling, () => {}, () => {}, component, initialUpdate); component.initializeElements(el.nextElementSibling, extraVars); el.nextElementSibling.__x_inserted_me = true; } else if (!expressionResult && elementHasAlreadyBeenAdded) { transitionOut(el.nextElementSibling, () => { el.nextElementSibling.remove(); }, () => {}, component, initialUpdate); } } function registerListener(component, el, event, modifiers, expression, extraVars = {}) { const options = { passive: modifiers.includes('passive') }; if (modifiers.includes('camel')) { event = camelCase(event); } if (modifiers.includes('away')) { let handler = e => { // Don't do anything if the click came from the element or within it. if (el.contains(e.target)) return; // Don't do anything if this element isn't currently visible. if (el.offsetWidth < 1 && el.offsetHeight < 1) return; // Now that we are sure the element is visible, AND the click // is from outside it, let's run the expression. runListenerHandler(component, expression, e, extraVars); if (modifiers.includes('once')) { document.removeEventListener(event, handler, options); } }; // Listen for this event at the root level. document.addEventListener(event, handler, options); } else { let listenerTarget = modifiers.includes('window') ? window : modifiers.includes('document') ? document : el; let handler = e => { // Remove this global event handler if the element that declared it // has been removed. It's now stale. if (listenerTarget === window || listenerTarget === document) { if (!document.body.contains(el)) { listenerTarget.removeEventListener(event, handler, options); return; } } if (isKeyEvent(event)) { if (isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers)) { return; } } if (modifiers.includes('prevent')) e.preventDefault(); if (modifiers.includes('stop')) e.stopPropagation(); // If the .self modifier isn't present, or if it is present and // the target element matches the element we are registering the // event on, run the handler if (!modifiers.includes('self') || e.target === el) { const returnValue = runListenerHandler(component, expression, e, extraVars); returnValue.then(value => { if (value === false) { e.preventDefault(); } else { if (modifiers.includes('once')) { listenerTarget.removeEventListener(event, handler, options); } } }); } }; if (modifiers.includes('debounce')) { let nextModifier = modifiers[modifiers.indexOf('debounce') + 1] || 'invalid-wait'; let wait = isNumeric(nextModifier.split('ms')[0]) ? Number(nextModifier.split('ms')[0]) : 250; handler = debounce(handler, wait); } listenerTarget.addEventListener(event, handler, options); } } function runListenerHandler(component, expression, e, extraVars) { return component.evaluateCommandExpression(e.target, expression, () => { return _objectSpread2(_objectSpread2({}, extraVars()), {}, { '$event': e }); }); } function isKeyEvent(event) { return ['keydown', 'keyup'].includes(event); } function isListeningForASpecificKeyThatHasntBeenPressed(e, modifiers) { let keyModifiers = modifiers.filter(i => { return !['window', 'document', 'prevent', 'stop'].includes(i); }); if (keyModifiers.includes('debounce')) { let debounceIndex = keyModifiers.indexOf('debounce'); keyModifiers.splice(debounceIndex, isNumeric((keyModifiers[debounceIndex + 1] || 'invalid-wait').split('ms')[0]) ? 2 : 1); } // If no modifier is specified, we'll call it a press. if (keyModifiers.length === 0) return false; // If one is passed, AND it matches the key pressed, we'll call it a press. if (keyModifiers.length === 1 && keyModifiers[0] === keyToModifier(e.key)) return false; // The user is listening for key combinations. const systemKeyModifiers = ['ctrl', 'shift', 'alt', 'meta', 'cmd', 'super']; const selectedSystemKeyModifiers = systemKeyModifiers.filter(modifier => keyModifiers.includes(modifier)); keyModifiers = keyModifiers.filter(i => !selectedSystemKeyModifiers.includes(i)); if (selectedSystemKeyModifiers.length > 0) { const activelyPressedKeyModifiers = selectedSystemKeyModifiers.filter(modifier => { // Alias "cmd" and "super" to "meta" if (modifier === 'cmd' || modifier === 'super') modifier = 'meta'; return e[`${modifier}Key`]; }); // If all the modifiers selected are pressed, ... if (activelyPressedKeyModifiers.length === selectedSystemKeyModifiers.length) { // AND the remaining key is pressed as well. It's a press. if (keyModifiers[0] === keyToModifier(e.key)) return false; } } // We'll call it NOT a valid keypress. return true; } function keyToModifier(key) { switch (key) { case '/': return 'slash'; case ' ': case 'Spacebar': return 'space'; default: return key && kebabCase(key); } } function registerModelListener(component, el, modifiers, expression, extraVars) { // If the element we are binding to is a select, a radio, or checkbox // we'll listen for the change event instead of the "input" event. var event = el.tagName.toLowerCase() === 'select' || ['checkbox', 'radio'].includes(el.type) || modifiers.includes('lazy') ? 'change' : 'input'; const listenerExpression = `${expression} = rightSideOfExpression($event, ${expression})`; registerListener(component, el, event, modifiers, listenerExpression, () => { return _objectSpread2(_objectSpread2({}, extraVars()), {}, { rightSideOfExpression: generateModelAssignmentFunction(el, modifiers, expression) }); }); } function generateModelAssignmentFunction(el, modifiers, expression) { if (el.type === 'radio') { // Radio buttons only work properly when they share a name attribute. // People might assume we take care of that for them, because // they already set a shared "x-model" attribute. if (!el.hasAttribute('name')) el.setAttribute('name', expression); } return (event, currentValue) => { // Check for event.detail due to an issue where IE11 handles other events as a CustomEvent. if (event instanceof CustomEvent && event.detail) { return event.detail; } else if (el.type === 'checkbox') { // If the data we are binding to is an array, toggle its value inside the array. if (Array.isArray(currentValue)) { const newValue = modifiers.includes('number') ? safeParseNumber(event.target.value) : event.target.value; return event.target.checked ? currentValue.concat([newValue]) : currentValue.filter(el => !checkedAttrLooseCompare(el, newValue)); } else { return event.target.checked; } } else if (el.tagName.toLowerCase() === 'select' && el.multiple) { return modifiers.includes('number') ? Array.from(event.target.selectedOptions).map(option => { const rawValue = option.value || option.text; return safeParseNumber(rawValue); }) : Array.from(event.target.selectedOptions).map(option => { return option.value || option.text; }); } else { const rawValue = event.target.value; return modifiers.includes('number') ? safeParseNumber(rawValue) : modifiers.includes('trim') ? rawValue.trim() : rawValue; } }; } function safeParseNumber(rawValue) { const number = rawValue ? parseFloat(rawValue) : null; return isNumeric(number) ? number : rawValue; } /** * Copyright (C) 2017 salesforce.com, inc. */ const { isArray } = Array; const { getPrototypeOf, create: ObjectCreate, defineProperty: ObjectDefineProperty, defineProperties: ObjectDefineProperties, isExtensible, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, preventExtensions, hasOwnProperty, } = Object; const { push: ArrayPush, concat: ArrayConcat, map: ArrayMap, } = Array.prototype; function isUndefined(obj) { return obj === undefined; } function isFunction(obj) { return typeof obj === 'function'; } function isObject(obj) { return typeof obj === 'object'; } const proxyToValueMap = new WeakMap(); function registerProxy(proxy, value) { proxyToValueMap.set(proxy, value); } const unwrap = (replicaOrAny) => proxyToValueMap.get(replicaOrAny) || replicaOrAny; function wrapValue(membrane, value) { return membrane.valueIsObservable(value) ? membrane.getProxy(value) : value; } /** * Unwrap property descriptors will set value on original descriptor * We only need to unwrap if value is specified * @param descriptor external descrpitor provided to define new property on original value */ function unwrapDescriptor(descriptor) { if (hasOwnProperty.call(descriptor, 'value')) { descriptor.value = unwrap(descriptor.value); } return descriptor; } function lockShadowTarget(membrane, shadowTarget, originalTarget) { const targetKeys = ArrayConcat.call(getOwnPropertyNames(originalTarget), getOwnPropertySymbols(originalTarget)); targetKeys.forEach((key) => { let descriptor = getOwnPropertyDescriptor(originalTarget, key); // We do not need to wrap the descriptor if configurable // Because we can deal with wrapping it when user goes through // Get own property descriptor. There is also a chance that this descriptor // could change sometime in the future, so we can defer wrapping // until we need to if (!descriptor.configurable) { descriptor = wrapDescriptor(membrane, descriptor, wrapValue); } ObjectDefineProperty(shadowTarget, key, descriptor); }); preventExtensions(shadowTarget); } class ReactiveProxyHandler { constructor(membrane, value) { this.originalTarget = value; this.membrane = membrane; } get(shadowTarget, key) { const { originalTarget, membrane } = this; const value = originalTarget[key]; const { valueObserved } = membrane; valueObserved(originalTarget, key); return membrane.getProxy(value); } set(shadowTarget, key, value) { const { originalTarget, membrane: { valueMutated } } = this; const oldValue = originalTarget[key]; if (oldValue !== value) { originalTarget[key] = value; valueMutated(originalTarget, key); } else if (key === 'length' && isArray(originalTarget)) { // fix for issue #236: push will add the new index, and by the time length // is updated, the internal length is already equal to the new length value // therefore, the oldValue is equal to the value. This is the forking logic // to support this use case. valueMutated(originalTarget, key); } return true; } deleteProperty(shadowTarget, key) { const { originalTarget, membrane: { valueMutated } } = this; delete originalTarget[key]; valueMutated(originalTarget, key); return true; } apply(shadowTarget, thisArg, argArray) { /* No op */ } construct(target, argArray, newTarget) { /* No op */ } has(shadowTarget, key) { const { originalTarget, membrane: { valueObserved } } = this; valueObserved(originalTarget, key); return key in originalTarget; } ownKeys(shadowTarget) { const { originalTarget } = this; return ArrayConcat.call(getOwnPropertyNames(originalTarget), getOwnPropertySymbols(originalTarget)); } isExtensible(shadowTarget) { const shadowIsExtensible = isExtensible(shadowTarget); if (!shadowIsExtensible) { return shadowIsExtensible; } const { originalTarget, membrane } = this; const targetIsExtensible = isExtensible(originalTarget); if (!targetIsExtensible) { lockShadowTarget(membrane, shadowTarget, originalTarget); } return targetIsExtensible; } setPrototypeOf(shadowTarget, prototype) { } getPrototypeOf(shadowTarget) { const { originalTarget } = this; return getPrototypeOf(originalTarget); } getOwnPropertyDescriptor(shadowTarget, key) { const { originalTarget, membrane } = this; const { valueObserved } = this.membrane; // keys looked up via hasOwnProperty need to be reactive valueObserved(originalTarget, key); let desc = getOwnPropertyDescriptor(originalTarget, key); if (isUndefined(desc)) { return desc; } const shadowDescriptor = getOwnPropertyDescriptor(shadowTarget, key); if (!isUndefined(shadowDescriptor)) { return shadowDescriptor; } // Note: by accessing the descriptor, the key is marked as observed // but access to the value, setter or getter (if available) cannot observe // mutations, just like regular methods, in which case we just do nothing. desc = wrapDescriptor(membrane, desc, wrapValue); if (!desc.configurable) { // If descriptor from original target is not configurable, // We must copy the wrapped descriptor over to the shadow target. // Otherwise, proxy will throw an invariant error. // This is our last chance to lock the value. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/getOwnPropertyDescriptor#Invariants ObjectDefineProperty(shadowTarget, key, desc); } return desc; } preventExtensions(shadowTarget) { const { originalTarget, membrane } = this; lockShadowTarget(membrane, shadowTarget, originalTarget); preventExtensions(originalTarget); return true; } defineProperty(shadowTarget, key, descriptor) { const { originalTarget, membrane } = this; const { valueMutated } = membrane; const { configurable } = descriptor; // We have to check for value in descriptor // because Object.freeze(proxy) calls this method // with only { configurable: false, writeable: false } // Additionally, method will only be called with writeable:false // if the descriptor has a value, as opposed to getter/setter // So we can just check if writable is present and then see if // value is present. This eliminates getter and setter descriptors if (hasOwnProperty.call(descriptor, 'writable') && !hasOwnProperty.call(descriptor, 'value')) { const originalDescriptor = getOwnPropertyDescriptor(originalTarget, key); descriptor.value = originalDescriptor.value; } ObjectDefineProperty(originalTarget, key, unwrapDescriptor(descriptor)); if (configurable === false) { ObjectDefineProperty(shadowTarget, key, wrapDescriptor(membrane, descriptor, wrapValue)); } valueMutated(originalTarget, key); return true; } } function wrapReadOnlyValue(membrane, value) { return membrane.valueIsObservable(value) ? membrane.getReadOnlyProxy(value) : value; } class ReadOnlyHandler { constructor(membrane, value) { this.originalTarget = value; this.membrane = membrane; } get(shadowTarget, key) { const { membrane, originalTarget } = this; const value = originalTarget[key]; const { valueObserved } = membrane; valueObserved(originalTarget, key); return membrane.getReadOnlyProxy(value); } set(shadowTarget, key, value) { return false; } deleteProperty(shadowTarget, key) { return false; } apply(shadowTarget, thisArg, argArray) { /* No op */ } construct(target, argArray, newTarget) { /* No op */ } has(shadowTarget, key) { const { originalTarget, membrane: { valueObserved } } = this; valueObserved(originalTarget, key); return key in originalTarget; } ownKeys(shadowTarget) { const { originalTarget } = this; return ArrayConcat.call(getOwnPropertyNames(originalTarget), getOwnPropertySymbols(originalTarget)); } setPrototypeOf(shadowTarget, prototype) { } getOwnPropertyDescriptor(shadowTarget, key) { const { originalTarget, membrane } = this; const { valueObserved } = membrane; // keys looked up via hasOwnProperty need to be reactive valueObserved(originalTarget, key); let desc = getOwnPropertyDescriptor(originalTarget, key); if (isUndefined(desc)) { return desc; } const shadowDescriptor = getOwnPropertyDescriptor(shadowTarget, key); if (!isUndefined(shadowDescriptor)) { return shadowDescriptor; } // Note: by accessing the descriptor, the key is marked as observed // but access to the value or getter (if available) cannot be observed, // just like regular methods, in which case we just do nothing. desc = wrapDescriptor(membrane, desc, wrapReadOnlyValue); if (hasOwnProperty.call(desc, 'set')) { desc.set = undefined; // readOnly membrane does not allow setters } if (!desc.configurable) { // If descriptor from original target is not configurable, // We must copy the wrapped descriptor over to the shadow target. // Otherwise, proxy will throw an invariant error. // This is our last chance to lock the value. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/getOwnPropertyDescriptor#Invariants ObjectDefineProperty(shadowTarget, key, desc); } return desc; } preventExtensions(shadowTarget) { return false; } defineProperty(shadowTarget, key, descriptor) { return false; } } function createShadowTarget(value) { let shadowTarget = undefined; if (isArray(value)) { shadowTarget = []; } else if (isObject(value)) { shadowTarget = {}; } return shadowTarget; } const ObjectDotPrototype = Object.prototype; function defaultValueIsObservable(value) { // intentionally checking for null if (value === null) { return false; } // treat all non-object types, including undefined, as non-observable values if (typeof value !== 'object') { return false; } if (isArray(value)) { return true; } const proto = getPrototypeOf(value); return (proto === ObjectDotPrototype || proto === null || getPrototypeOf(proto) === null); } const defaultValueObserved = (obj, key) => { /* do nothing */ }; const defaultValueMutated = (obj, key) => { /* do nothing */ }; const defaultValueDistortion = (value) => value; function wrapDescriptor(membrane, descriptor, getValue) { const { set, get } = descriptor; if (hasOwnProperty.call(descriptor, 'value')) { descriptor.value = getValue(membrane, descriptor.value); } else { if (!isUndefined(get)) { descriptor.get = function () { // invoking the original getter with the original target return getValue(membrane, get.call(unwrap(this))); }; } if (!isUndefined(set)) { descriptor.set = function (value) { // At this point we don't have a clear indication of whether // or not a valid mutation will occur, we don't have the key, // and we are not sure why and how they are invoking this setter. // Nevertheless we preserve the original semantics by invoking the // original setter with the original target and the unwrapped value set.call(unwrap(this), membrane.unwrapProxy(value)); }; } } return descriptor; } class ReactiveMembrane { constructor(options) { this.valueDistortion = defaultValueDistortion; this.valueMutated = defaultValueMutated; this.valueObserved = defaultValueObserved; this.valueIsObservable = defaultValueIsObservable; this.objectGraph = new WeakMap(); if (!isUndefined(options)) { const { valueDistortion, valueMutated, valueObserved, valueIsObservable } = options; this.valueDistortion = isFunction(valueDistortion) ? valueDistortion : defaultValueDistortion; this.valueMutated = isFunction(valueMutated) ? valueMutated : defaultValueMutated; this.valueObserved = isFunction(valueObserved) ? valueObserved : defaultValueObserved; this.valueIsObservable = isFunction(valueIsObservable) ? valueIsObservable : defaultValueIsObservable; } } getProxy(value) { const unwrappedValue = unwrap(value); const distorted = this.valueDistortion(unwrappedValue); if (this.valueIsObservable(distorted)) { const o = this.getReactiveState(unwrappedValue, distorted); // when trying to extract the writable version of a readonly // we return the readonly. return o.readOnly === value ? value : o.reactive; } return distorted; } getReadOnlyProxy(value) { value = unwrap(value); const distorted = this.valueDistortion(value); if (this.valueIsObservable(distorted)) { return this.getReactiveState(value, distorted).readOnly; } return distorted; } unwrapProxy(p) { return unwrap(p); } getReactiveState(value, distortedValue) { const { objectGraph, } = this; let reactiveState = objectGraph.get(distortedValue); if (reactiveState) { return reactiveState; } const membrane = this; reactiveState = { get reactive() { const reactiveHandler = new ReactiveProxyHandler(membrane, distortedValue); // caching the reactive proxy after the first time it is accessed const proxy = new Proxy(createShadowTarget(distortedValue), reactiveHandler); registerProxy(proxy, value); ObjectDefineProperty(this, 'reactive', { value: proxy }); return proxy; }, get readOnly() { const readOnlyHandler = new ReadOnlyHandler(membrane, distortedValue); // caching the readOnly proxy after the first time it is accessed const proxy = new Proxy(createShadowTarget(distortedValue), readOnlyHandler); registerProxy(proxy, value); ObjectDefineProperty(this, 'readOnly', { value: proxy }); return proxy; } }; objectGraph.set(distortedValue, reactiveState); return reactiveState; } } /** version: 0.26.0 */ function wrap(data, mutationCallback) { let membrane = new ReactiveMembrane({ valueMutated(target, key) { mutationCallback(target, key); } }); return { data: membrane.getProxy(data), membrane: membrane }; } function unwrap$1(membrane, observable) { let unwrappedData = membrane.unwrapProxy(observable); let copy = {}; Object.keys(unwrappedData).forEach(key => { if (['$el', '$refs', '$nextTick', '$watch'].includes(key)) return; copy[key] = unwrappedData[key]; }); return copy; } class Component { constructor(el, componentForClone = null) { this.$el = el; const dataAttr = this.$el.getAttribute('x-data'); const dataExpression = dataAttr === '' ? '{}' : dataAttr; const initExpression = this.$el.getAttribute('x-init'); let dataExtras = { $el: this.$el }; let canonicalComponentElementReference = componentForClone ? componentForClone.$el : this.$el; Object.entries(Alpine.magicProperties).forEach(([name, callback]) => { Object.defineProperty(dataExtras, `$${name}`, { get: function get() { return callback(canonicalComponentElementReference); } }); }); this.unobservedData = componentForClone ? componentForClone.getUnobservedData() : saferEval(el, dataExpression, dataExtras); // Construct a Proxy-based observable. This will be used to handle reactivity. let { membrane, data } = this.wrapDataInObservable(this.unobservedData); this.$data = data; this.membrane = membrane; // After making user-supplied data methods reactive, we can now add // our magic properties to the original data for access. this.unobservedData.$el = this.$el; this.unobservedData.$refs = this.getRefsProxy(); this.nextTickStack = []; this.unobservedData.$nextTick = callback => { this.nextTickStack.push(callback); }; this.watchers = {}; this.unobservedData.$watch = (property, callback) => { if (!this.watchers[property]) this.watchers[property] = []; this.watchers[property].push(callback); }; /* MODERN-ONLY:START */ // We remove this piece of code from the legacy build. // In IE11, we have already defined our helpers at this point. // Register custom magic properties. Object.entries(Alpine.magicProperties).forEach(([name, callback]) => { Object.defineProperty(this.unobservedData, `$${name}`, { get: function get() { return callback(canonicalComponentElementReference, this.$el); } }); }); /* MODERN-ONLY:END */ this.showDirectiveStack = []; this.showDirectiveLastElement; componentForClone || Alpine.onBeforeComponentInitializeds.forEach(callback => callback(this)); var initReturnedCallback; // If x-init is present AND we aren't cloning (skip x-init on clone) if (initExpression && !componentForClone) { // We want to allow data manipulation, but not trigger DOM updates just yet. // We haven't even initialized the elements with their Alpine bindings. I mean c'mon. this.pauseReactivity = true; initReturnedCallback = this.evaluateReturnExpression(this.$el, initExpression); this.pauseReactivity = false; } // Register all our listeners and set all our attribute bindings. this.initializeElements(this.$el); // Use mutation observer to detect new elements being added within this component at run-time. // Alpine's just so darn flexible amirite? this.listenForNewElementsToInitialize(); if (typeof initReturnedCallback === 'function') { // Run the callback returned from the "x-init" hook to allow the user to do stuff after // Alpine's got it's grubby little paws all over everything. initReturnedCallback.call(this.$data); } componentForClone || setTimeout(() => { Alpine.onComponentInitializeds.forEach(callback => callback(this)); }, 0); } getUnobservedData() { return unwrap$1(this.membrane, this.$data); } wrapDataInObservable(data) { var self = this; let updateDom = debounce(function () { self.updateElements(self.$el); }, 0); return wrap(data, (target, key) => { if (self.watchers[key]) { // If there's a watcher for this specific key, run it. self.watchers[key].forEach(callback => callback(target[key])); } else if (Array.isArray(target)) { // Arrays are special cases, if any of the items change, we consider the array as mutated. Object.keys(self.watchers).forEach(fullDotNotationKey => { let dotNotationParts = fullDotNotationKey.split('.'); // Ignore length mutations since they would result in duplicate calls. // For example, when calling push, we would get a mutation for the item's key // and a second mutation for the length property. if (key === 'length') return; dotNotationParts.reduce((comparisonData, part) => { if (Object.is(target, comparisonData[part])) { self.watchers[fullDotNotationKey].forEach(callback => callback(target)); } return comparisonData[part]; }, self.unobservedData); }); } else { // Let's walk through the watchers with "dot-notation" (foo.bar) and see // if this mutation fits any of them. Object.keys(self.watchers).filter(i => i.includes('.')).forEach(fullDotNotationKey => { let dotNotationParts = fullDotNotationKey.split('.'); // If this dot-notation watcher's last "part" doesn't match the current // key, then skip it early for performance reasons. if (key !== dotNotationParts[dotNotationParts.length - 1]) return; // Now, walk through the dot-notation "parts" recursively to find // a match, and call the watcher if one's found. dotNotationParts.reduce((comparisonData, part) => { if (Object.is(target, comparisonData)) { // Run the watchers. self.watchers[fullDotNotationKey].forEach(callback => callback(target[key])); } return comparisonData[part]; }, self.unobservedData); }); } // Don't react to data changes for cases like the `x-created` hook. if (self.pauseReactivity) return; updateDom(); }); } walkAndSkipNestedComponents(el, callback, initializeComponentCallback = () => {}) { walk(el, el => { // We've hit a component. if (el.hasAttribute('x-data')) { // If it's not the current one. if (!el.isSameNode(this.$el)) { // Initialize it if it's not. if (!el.__x) initializeComponentCallback(el); // Now we'll let that sub-component deal with itself. return false; } } return callback(el); }); } initializeElements(rootEl, extraVars = () => {}) { this.walkAndSkipNestedComponents(rootEl, el => { // Don't touch spawns from for loop if (el.__x_for_key !== undefined) return false; // Don't touch spawns from if directives if (el.__x_inserted_me !== undefined) return false; this.initializeElement(el, extraVars); }, el => { el.__x = new Component(el); }); this.executeAndClearRemainingShowDirectiveStack(); this.executeAndClearNextTickStack(rootEl); } initializeElement(el, extraVars) { // To support class attribute merging, we have to know what the element's // original class attribute looked like for reference. if (el.hasAttribute('class') && getXAttrs(el, this).length > 0) { el.__x_original_classes = convertClassStringToArray(el.getAttribute('class')); } this.registerListeners(el, extraVars); this.resolveBoundAttributes(el, true, extraVars); } updateElements(rootEl, extraVars = () => {}) { this.walkAndSkipNestedComponents(rootEl, el => { // Don't touch spawns from for loop (and check if the root is actually a for loop in a parent, don't skip it.) if (el.__x_for_key !== undefined && !el.isSameNode(this.$el)) return false; this.updateElement(el, extraVars); }, el => { el.__x = new Component(el); }); this.executeAndClearRemainingShowDirectiveStack(); this.executeAndClearNextTickStack(rootEl); } executeAndClearNextTickStack(el) { // Skip spawns from alpine directives if (el === this.$el && this.nextTickStack.length > 0) { // We run the tick stack after the next frame to allow any // running transitions to pass the initial show stage. requestAnimationFrame(() => { while (this.nextTickStack.length > 0) { this.nextTickStack.shift()(); } }); } } executeAndClearRemainingShowDirectiveStack() { // The goal here is to start all the x-show transitions // and build a nested promise chain so that elements // only hide when the children are finished hiding. this.showDirectiveStack.reverse().map(handler => { return new Promise((resolve, reject) => { handler(resolve, reject); }); }).reduce((promiseChain, promise) => { return promiseChain.then(() => { return promise.then(finishElement => { finishElement(); }); }); }, Promise.resolve(() => {})).catch(e => { if (e !== TRANSITION_CANCELLED) throw e; }); // We've processed the handler stack. let's clear it. this.showDirectiveStack = []; this.showDirectiveLastElement = undefined; } updateElement(el, extraVars) { this.resolveBoundAttributes(el, false, extraVars); } registerListeners(el, extraVars) { getXAttrs(el, this).forEach(({ type, value, modifiers, expression }) => { switch (type) { case 'on': registerListener(this, el, value, modifiers, expression, extraVars); break; case 'model': registerModelListener(this, el, modifiers, expression, extraVars); break; } }); } resolveBoundAttributes(el, initialUpdate = false, extraVars) { let attrs = getXAttrs(el, this); attrs.forEach(({ type, value, modifiers, expression }) => { switch (type) { case 'model': handleAttributeBindingDirective(this, el, 'value', expression, extraVars, type, modifiers); break; case 'bind': // The :key binding on an x-for is special, ignore it. if (el.tagName.toLowerCase() === 'template' && value === 'key') return; handleAttributeBindingDirective(this, el, value, expression, extraVars, type, modifiers); break; case 'text': var output = this.evaluateReturnExpression(el, expression, extraVars); handleTextDirective(el, output, expression); break; case 'html': handleHtmlDirective(this, el, expression, extraVars); break; case 'show': var output = this.evaluateReturnExpression(el, expression, extraVars); handleShowDirective(this, el, output, modifiers, initialUpdate); break; case 'if': // If this element also has x-for on it, don't process x-if. // We will let the "x-for" directive handle the "if"ing. if (attrs.some(i => i.type === 'for')) return; var output = this.evaluateReturnExpression(el, expression, extraVars); handleIfDirective(this, el, output, initialUpdate, extraVars); break; case 'for': handleForDirective(this, el, expression, initialUpdate, extraVars); break; case 'cloak': el.removeAttribute('x-cloak'); break; } }); } evaluateReturnExpression(el, expression, extraVars = () => {}) { return saferEval(el, expression, this.$data, _objectSpread2(_objectSpread2({}, extraVars()), {}, { $dispatch: this.getDispatchFunction(el) })); } evaluateCommandExpression(el, expression, extraVars = () => {}) { return saferEvalNoReturn(el, expression, this.$data, _objectSpread2(_objectSpread2({}, extraVars()), {}, { $dispatch: this.getDispatchFunction(el) })); } getDispatchFunction(el) { return (event, detail = {}) => { el.dispatchEvent(new CustomEvent(event, { detail, bubbles: true })); }; } listenForNewElementsToInitialize() { const targetNode = this.$el; const observerOptions = { childList: true, attributes: true, subtree: true }; const observer = new MutationObserver(mutations => { for (let i = 0; i < mutations.length; i++) { // Filter out mutations triggered from child components. const closestParentComponent = mutations[i].target.closest('[x-data]'); if (!(closestParentComponent && closestParentComponent.isSameNode(this.$el))) continue; if (mutations[i].type === 'attributes' && mutations[i].attributeName === 'x-data') { const xAttr = mutations[i].target.getAttribute('x-data') || '{}'; const rawData = saferEval(this.$el, xAttr, { $el: this.$el }); Object.keys(rawData).forEach(key => { if (this.$data[key] !== rawData[key]) { this.$data[key] = rawData[key]; } }); } if (mutations[i].addedNodes.length > 0) { mutations[i].addedNodes.forEach(node => { if (node.nodeType !== 1 || node.__x_inserted_me) return; if (node.matches('[x-data]') && !node.__x) { node.__x = new Component(node); return; } this.initializeElements(node); }); } } }); observer.observe(targetNode, observerOptions); } getRefsProxy() { var self = this; var refObj = {}; // One of the goals of this is to not hold elements in memory, but rather re-evaluate // the DOM when the system needs something from it. This way, the framework is flexible and // friendly to outside DOM changes from libraries like Vue/Livewire. // For this reason, I'm using an "on-demand" proxy to fake a "$refs" object. return new Proxy(refObj, { get(object, property) { if (property === '$isAlpineProxy') return true; var ref; // We can't just query the DOM because it's hard to filter out refs in // nested components. self.walkAndSkipNestedComponents(self.$el, el => { if (el.hasAttribute('x-ref') && el.getAttribute('x-ref') === property) { ref = el; } }); return ref; } }); } } const Alpine = { version: "2.8.0", pauseMutationObserver: false, magicProperties: {}, onComponentInitializeds: [], onBeforeComponentInitializeds: [], ignoreFocusedForValueBinding: false, start: async function start() { if (!isTesting()) { await domReady(); } this.discoverComponents(el => { this.initializeComponent(el); }); // It's easier and more performant to just support Turbolinks than listen // to MutationObserver mutations at the document level. document.addEventListener("turbolinks:load", () => { this.discoverUninitializedComponents(el => { this.initializeComponent(el); }); }); this.listenForNewUninitializedComponentsAtRunTime(); }, discoverComponents: function discoverComponents(callback) { const rootEls = document.querySelectorAll('[x-data]'); rootEls.forEach(rootEl => { callback(rootEl); }); }, discoverUninitializedComponents: function discoverUninitializedComponents(callback, el = null) { const rootEls = (el || document).querySelectorAll('[x-data]'); Array.from(rootEls).filter(el => el.__x === undefined).forEach(rootEl => { callback(rootEl); }); }, listenForNewUninitializedComponentsAtRunTime: function listenForNewUninitializedComponentsAtRunTime() { const targetNode = document.querySelector('body'); const observerOptions = { childList: true, attributes: true, subtree: true }; const observer = new MutationObserver(mutations => { if (this.pauseMutationObserver) return; for (let i = 0; i < mutations.length; i++) { if (mutations[i].addedNodes.length > 0) { mutations[i].addedNodes.forEach(node => { // Discard non-element nodes (like line-breaks) if (node.nodeType !== 1) return; // Discard any changes happening within an existing component. // They will take care of themselves. if (node.parentElement && node.parentElement.closest('[x-data]')) return; this.discoverUninitializedComponents(el => { this.initializeComponent(el); }, node.parentElement); }); } } }); observer.observe(targetNode, observerOptions); }, initializeComponent: function initializeComponent(el) { if (!el.__x) { // Wrap in a try/catch so that we don't prevent other components // from initializing when one component contains an error. try { el.__x = new Component(el); } catch (error) { setTimeout(() => { throw error; }, 0); } } }, clone: function clone(component, newEl) { if (!newEl.__x) { newEl.__x = new Component(newEl, component); } }, addMagicProperty: function addMagicProperty(name, callback) { this.magicProperties[name] = callback; }, onComponentInitialized: function onComponentInitialized(callback) { this.onComponentInitializeds.push(callback); }, onBeforeComponentInitialized: function onBeforeComponentInitialized(callback) { this.onBeforeComponentInitializeds.push(callback); } }; if (!isTesting()) { window.Alpine = Alpine; if (window.deferLoadingAlpine) { window.deferLoadingAlpine(function () { window.Alpine.start(); }); } else { window.Alpine.start(); } } return Alpine; }))); /***/ }), /***/ "./node_modules/axios/index.js": /*!*************************************!*\ !*** ./node_modules/axios/index.js ***! \*************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); /***/ }), /***/ "./node_modules/axios/lib/adapters/xhr.js": /*!************************************************!*\ !*** ./node_modules/axios/lib/adapters/xhr.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js"); var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { var requestData = config.data; var requestHeaders = config.headers; if (utils.isFormData(requestData)) { delete requestHeaders['Content-Type']; // Let the browser set it } var request = new XMLHttpRequest(); // HTTP basic authentication if (config.auth) { var username = config.auth.username || ''; var password = config.auth.password || ''; requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); } var fullPath = buildFullPath(config.baseURL, config.url); request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS request.timeout = config.timeout; // Listen for ready state request.onreadystatechange = function handleLoad() { if (!request || request.readyState !== 4) { return; } // The request errored out and we didn't get a response, this will be // handled by onerror instead // With one exception: request that using file: protocol, most browsers // will return status as 0 even though it's a successful request if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { return; } // Prepare the response var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; var response = { data: responseData, status: request.status, statusText: request.statusText, headers: responseHeaders, config: config, request: request }; settle(resolve, reject, response); // Clean up request request = null; }; // Handle browser request cancellation (as opposed to a manual cancellation) request.onabort = function handleAbort() { if (!request) { return; } reject(createError('Request aborted', config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Handle low level network errors request.onerror = function handleError() { // Real errors are hidden from us by the browser // onerror should only fire if it's a network error reject(createError('Network Error', config, null, request)); // Clean up request request = null; }; // Handle timeout request.ontimeout = function handleTimeout() { var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; if (config.timeoutErrorMessage) { timeoutErrorMessage = config.timeoutErrorMessage; } reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request)); // Clean up request request = null; }; // Add xsrf header // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined; if (xsrfValue) { requestHeaders[config.xsrfHeaderName] = xsrfValue; } } // Add headers to the request if ('setRequestHeader' in request) { utils.forEach(requestHeaders, function setRequestHeader(val, key) { if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { // Remove Content-Type if data is undefined delete requestHeaders[key]; } else { // Otherwise add header to the request request.setRequestHeader(key, val); } }); } // Add withCredentials to request if needed if (!utils.isUndefined(config.withCredentials)) { request.withCredentials = !!config.withCredentials; } // Add responseType to request if needed if (config.responseType) { try { request.responseType = config.responseType; } catch (e) { // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. if (config.responseType !== 'json') { throw e; } } } // Handle progress if needed if (typeof config.onDownloadProgress === 'function') { request.addEventListener('progress', config.onDownloadProgress); } // Not all browsers support upload events if (typeof config.onUploadProgress === 'function' && request.upload) { request.upload.addEventListener('progress', config.onUploadProgress); } if (config.cancelToken) { // Handle cancellation config.cancelToken.promise.then(function onCanceled(cancel) { if (!request) { return; } request.abort(); reject(cancel); // Clean up request request = null; }); } if (requestData === undefined) { requestData = null; } // Send the request request.send(requestData); }); }; /***/ }), /***/ "./node_modules/axios/lib/axios.js": /*!*****************************************!*\ !*** ./node_modules/axios/lib/axios.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); /** * Create an instance of Axios * * @param {Object} defaultConfig The default config for the instance * @return {Axios} A new instance of Axios */ function createInstance(defaultConfig) { var context = new Axios(defaultConfig); var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance utils.extend(instance, Axios.prototype, context); // Copy context to instance utils.extend(instance, context); return instance; } // Create the default instance to be exported var axios = createInstance(defaults); // Expose Axios class to allow class inheritance axios.Axios = Axios; // Factory for creating new instances axios.create = function create(instanceConfig) { return createInstance(mergeConfig(axios.defaults, instanceConfig)); }; // Expose Cancel & CancelToken axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); module.exports = axios; // Allow use of default import syntax in TypeScript module.exports.default = axios; /***/ }), /***/ "./node_modules/axios/lib/cancel/Cancel.js": /*!*************************************************!*\ !*** ./node_modules/axios/lib/cancel/Cancel.js ***! \*************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * A `Cancel` is an object that is thrown when an operation is canceled. * * @class * @param {string=} message The message. */ function Cancel(message) { this.message = message; } Cancel.prototype.toString = function toString() { return 'Cancel' + (this.message ? ': ' + this.message : ''); }; Cancel.prototype.__CANCEL__ = true; module.exports = Cancel; /***/ }), /***/ "./node_modules/axios/lib/cancel/CancelToken.js": /*!******************************************************!*\ !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. * * @class * @param {Function} executor The executor function. */ function CancelToken(executor) { if (typeof executor !== 'function') { throw new TypeError('executor must be a function.'); } var resolvePromise; this.promise = new Promise(function promiseExecutor(resolve) { resolvePromise = resolve; }); var token = this; executor(function cancel(message) { if (token.reason) { // Cancellation has already been requested return; } token.reason = new Cancel(message); resolvePromise(token.reason); }); } /** * Throws a `Cancel` if cancellation has been requested. */ CancelToken.prototype.throwIfRequested = function throwIfRequested() { if (this.reason) { throw this.reason; } }; /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ CancelToken.source = function source() { var cancel; var token = new CancelToken(function executor(c) { cancel = c; }); return { token: token, cancel: cancel }; }; module.exports = CancelToken; /***/ }), /***/ "./node_modules/axios/lib/cancel/isCancel.js": /*!***************************************************!*\ !*** ./node_modules/axios/lib/cancel/isCancel.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function isCancel(value) { return !!(value && value.__CANCEL__); }; /***/ }), /***/ "./node_modules/axios/lib/core/Axios.js": /*!**********************************************!*\ !*** ./node_modules/axios/lib/core/Axios.js ***! \**********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); /** * Create a new instance of Axios * * @param {Object} instanceConfig The default config for the instance */ function Axios(instanceConfig) { this.defaults = instanceConfig; this.interceptors = { request: new InterceptorManager(), response: new InterceptorManager() }; } /** * Dispatch a request * * @param {Object} config The config specific for this request (merged with this.defaults) */ Axios.prototype.request = function request(config) { /*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API if (typeof config === 'string') { config = arguments[1] || {}; config.url = arguments[0]; } else { config = config || {}; } config = mergeConfig(this.defaults, config); // Set config.method if (config.method) { config.method = config.method.toLowerCase(); } else if (this.defaults.method) { config.method = this.defaults.method.toLowerCase(); } else { config.method = 'get'; } // Hook up interceptors middleware var chain = [dispatchRequest, undefined]; var promise = Promise.resolve(config); this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { chain.unshift(interceptor.fulfilled, interceptor.rejected); }); this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { chain.push(interceptor.fulfilled, interceptor.rejected); }); while (chain.length) { promise = promise.then(chain.shift(), chain.shift()); } return promise; }; Axios.prototype.getUri = function getUri(config) { config = mergeConfig(this.defaults, config); return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); }; // Provide aliases for supported request methods utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, config) { return this.request(utils.merge(config || {}, { method: method, url: url })); }; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { /*eslint func-names:0*/ Axios.prototype[method] = function(url, data, config) { return this.request(utils.merge(config || {}, { method: method, url: url, data: data })); }; }); module.exports = Axios; /***/ }), /***/ "./node_modules/axios/lib/core/InterceptorManager.js": /*!***********************************************************!*\ !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); function InterceptorManager() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ InterceptorManager.prototype.use = function use(fulfilled, rejected) { this.handlers.push({ fulfilled: fulfilled, rejected: rejected }); return this.handlers.length - 1; }; /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` */ InterceptorManager.prototype.eject = function eject(id) { if (this.handlers[id]) { this.handlers[id] = null; } }; /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor */ InterceptorManager.prototype.forEach = function forEach(fn) { utils.forEach(this.handlers, function forEachHandler(h) { if (h !== null) { fn(h); } }); }; module.exports = InterceptorManager; /***/ }), /***/ "./node_modules/axios/lib/core/buildFullPath.js": /*!******************************************************!*\ !*** ./node_modules/axios/lib/core/buildFullPath.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); /** * Creates a new URL by combining the baseURL with the requestedURL, * only when the requestedURL is not already an absolute URL. * If the requestURL is absolute, this function returns the requestedURL untouched. * * @param {string} baseURL The base URL * @param {string} requestedURL Absolute or relative URL to combine * @returns {string} The combined full path */ module.exports = function buildFullPath(baseURL, requestedURL) { if (baseURL && !isAbsoluteURL(requestedURL)) { return combineURLs(baseURL, requestedURL); } return requestedURL; }; /***/ }), /***/ "./node_modules/axios/lib/core/createError.js": /*!****************************************************!*\ !*** ./node_modules/axios/lib/core/createError.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); /** * Create an Error with the specified message, config, error code, request and response. * * @param {string} message The error message. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The created error. */ module.exports = function createError(message, config, code, request, response) { var error = new Error(message); return enhanceError(error, config, code, request, response); }; /***/ }), /***/ "./node_modules/axios/lib/core/dispatchRequest.js": /*!********************************************************!*\ !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); /** * Throws a `Cancel` if cancellation has been requested. */ function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } } /** * Dispatch a request to the server using the configured adapter. * * @param {object} config The config that is to be used for the request * @returns {Promise} The Promise to be fulfilled */ module.exports = function dispatchRequest(config) { throwIfCancellationRequested(config); // Ensure headers exist config.headers = config.headers || {}; // Transform request data config.data = transformData( config.data, config.headers, config.transformRequest ); // Flatten headers config.headers = utils.merge( config.headers.common || {}, config.headers[config.method] || {}, config.headers ); utils.forEach( ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function cleanHeaderConfig(method) { delete config.headers[method]; } ); var adapter = config.adapter || defaults.adapter; return adapter(config).then(function onAdapterResolution(response) { throwIfCancellationRequested(config); // Transform response data response.data = transformData( response.data, response.headers, config.transformResponse ); return response; }, function onAdapterRejection(reason) { if (!isCancel(reason)) { throwIfCancellationRequested(config); // Transform response data if (reason && reason.response) { reason.response.data = transformData( reason.response.data, reason.response.headers, config.transformResponse ); } } return Promise.reject(reason); }); }; /***/ }), /***/ "./node_modules/axios/lib/core/enhanceError.js": /*!*****************************************************!*\ !*** ./node_modules/axios/lib/core/enhanceError.js ***! \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Update an Error with the specified config, error code, and response. * * @param {Error} error The error to update. * @param {Object} config The config. * @param {string} [code] The error code (for example, 'ECONNABORTED'). * @param {Object} [request] The request. * @param {Object} [response] The response. * @returns {Error} The error. */ module.exports = function enhanceError(error, config, code, request, response) { error.config = config; if (code) { error.code = code; } error.request = request; error.response = response; error.isAxiosError = true; error.toJSON = function() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: this.config, code: this.code }; }; return error; }; /***/ }), /***/ "./node_modules/axios/lib/core/mergeConfig.js": /*!****************************************************!*\ !*** ./node_modules/axios/lib/core/mergeConfig.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); /** * Config-specific merge-function which creates a new config-object * by merging two configuration objects together. * * @param {Object} config1 * @param {Object} config2 * @returns {Object} New object resulting from merging config2 to config1 */ module.exports = function mergeConfig(config1, config2) { // eslint-disable-next-line no-param-reassign config2 = config2 || {}; var config = {}; var valueFromConfig2Keys = ['url', 'method', 'params', 'data']; var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy']; var defaultToConfig2Keys = [ 'baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath' ]; utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop]; } }); utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) { if (utils.isObject(config2[prop])) { config[prop] = utils.deepMerge(config1[prop], config2[prop]); } else if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop]; } else if (utils.isObject(config1[prop])) { config[prop] = utils.deepMerge(config1[prop]); } else if (typeof config1[prop] !== 'undefined') { config[prop] = config1[prop]; } }); utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop]; } else if (typeof config1[prop] !== 'undefined') { config[prop] = config1[prop]; } }); var axiosKeys = valueFromConfig2Keys .concat(mergeDeepPropertiesKeys) .concat(defaultToConfig2Keys); var otherKeys = Object .keys(config2) .filter(function filterAxiosKeys(key) { return axiosKeys.indexOf(key) === -1; }); utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) { if (typeof config2[prop] !== 'undefined') { config[prop] = config2[prop]; } else if (typeof config1[prop] !== 'undefined') { config[prop] = config1[prop]; } }); return config; }; /***/ }), /***/ "./node_modules/axios/lib/core/settle.js": /*!***********************************************!*\ !*** ./node_modules/axios/lib/core/settle.js ***! \***********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. */ module.exports = function settle(resolve, reject, response) { var validateStatus = response.config.validateStatus; if (!validateStatus || validateStatus(response.status)) { resolve(response); } else { reject(createError( 'Request failed with status code ' + response.status, response.config, null, response.request, response )); } }; /***/ }), /***/ "./node_modules/axios/lib/core/transformData.js": /*!******************************************************!*\ !*** ./node_modules/axios/lib/core/transformData.js ***! \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); /** * Transform the data for a request or a response * * @param {Object|String} data The data to be transformed * @param {Array} headers The headers for the request or response * @param {Array|Function} fns A single function or Array of functions * @returns {*} The resulting transformed data */ module.exports = function transformData(data, headers, fns) { /*eslint no-param-reassign:0*/ utils.forEach(fns, function transform(fn) { data = fn(data, headers); }); return data; }; /***/ }), /***/ "./node_modules/axios/lib/defaults.js": /*!********************************************!*\ !*** ./node_modules/axios/lib/defaults.js ***! \********************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' }; function setContentTypeIfUnset(headers, value) { if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { headers['Content-Type'] = value; } } function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { // For node use HTTP adapter adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); } return adapter; } var defaults = { adapter: getDefaultAdapter(), transformRequest: [function transformRequest(data, headers) { normalizeHeaderName(headers, 'Accept'); normalizeHeaderName(headers, 'Content-Type'); if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) ) { return data; } if (utils.isArrayBufferView(data)) { return data.buffer; } if (utils.isURLSearchParams(data)) { setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); return data.toString(); } if (utils.isObject(data)) { setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); return JSON.stringify(data); } return data; }], transformResponse: [function transformResponse(data) { /*eslint no-param-reassign:0*/ if (typeof data === 'string') { try { data = JSON.parse(data); } catch (e) { /* Ignore */ } } return data; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: function validateStatus(status) { return status >= 200 && status < 300; } }; defaults.headers = { common: { 'Accept': 'application/json, text/plain, */*' } }; utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }); module.exports = defaults; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) /***/ }), /***/ "./node_modules/axios/lib/helpers/bind.js": /*!************************************************!*\ !*** ./node_modules/axios/lib/helpers/bind.js ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function bind(fn, thisArg) { return function wrap() { var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { args[i] = arguments[i]; } return fn.apply(thisArg, args); }; }; /***/ }), /***/ "./node_modules/axios/lib/helpers/buildURL.js": /*!****************************************************!*\ !*** ./node_modules/axios/lib/helpers/buildURL.js ***! \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); function encode(val) { return encodeURIComponent(val). replace(/%40/gi, '@'). replace(/%3A/gi, ':'). replace(/%24/g, '$'). replace(/%2C/gi, ','). replace(/%20/g, '+'). replace(/%5B/gi, '['). replace(/%5D/gi, ']'); } /** * Build a URL by appending params to the end * * @param {string} url The base of the url (e.g., http://www.google.com) * @param {object} [params] The params to be appended * @returns {string} The formatted url */ module.exports = function buildURL(url, params, paramsSerializer) { /*eslint no-param-reassign:0*/ if (!params) { return url; } var serializedParams; if (paramsSerializer) { serializedParams = paramsSerializer(params); } else if (utils.isURLSearchParams(params)) { serializedParams = params.toString(); } else { var parts = []; utils.forEach(params, function serialize(val, key) { if (val === null || typeof val === 'undefined') { return; } if (utils.isArray(val)) { key = key + '[]'; } else { val = [val]; } utils.forEach(val, function parseValue(v) { if (utils.isDate(v)) { v = v.toISOString(); } else if (utils.isObject(v)) { v = JSON.stringify(v); } parts.push(encode(key) + '=' + encode(v)); }); }); serializedParams = parts.join('&'); } if (serializedParams) { var hashmarkIndex = url.indexOf('#'); if (hashmarkIndex !== -1) { url = url.slice(0, hashmarkIndex); } url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; } return url; }; /***/ }), /***/ "./node_modules/axios/lib/helpers/combineURLs.js": /*!*******************************************************!*\ !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Creates a new URL by combining the specified URLs * * @param {string} baseURL The base URL * @param {string} relativeURL The relative URL * @returns {string} The combined URL */ module.exports = function combineURLs(baseURL, relativeURL) { return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL; }; /***/ }), /***/ "./node_modules/axios/lib/helpers/cookies.js": /*!***************************************************!*\ !*** ./node_modules/axios/lib/helpers/cookies.js ***! \***************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs support document.cookie (function standardBrowserEnv() { return { write: function write(name, value, expires, path, domain, secure) { var cookie = []; cookie.push(name + '=' + encodeURIComponent(value)); if (utils.isNumber(expires)) { cookie.push('expires=' + new Date(expires).toGMTString()); } if (utils.isString(path)) { cookie.push('path=' + path); } if (utils.isString(domain)) { cookie.push('domain=' + domain); } if (secure === true) { cookie.push('secure'); } document.cookie = cookie.join('; '); }, read: function read(name) { var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); return (match ? decodeURIComponent(match[3]) : null); }, remove: function remove(name) { this.write(name, '', Date.now() - 86400000); } }; })() : // Non standard browser env (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return { write: function write() {}, read: function read() { return null; }, remove: function remove() {} }; })() ); /***/ }), /***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": /*!*********************************************************!*\ !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Determines whether the specified URL is absolute * * @param {string} url The URL to test * @returns {boolean} True if the specified URL is absolute, otherwise false */ module.exports = function isAbsoluteURL(url) { // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed // by any combination of letters, digits, plus, period, or hyphen. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); }; /***/ }), /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": /*!***********************************************************!*\ !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); module.exports = ( utils.isStandardBrowserEnv() ? // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. (function standardBrowserEnv() { var msie = /(msie|trident)/i.test(navigator.userAgent); var urlParsingNode = document.createElement('a'); var originURL; /** * Parse a URL to discover it's components * * @param {String} url The URL to be parsed * @returns {Object} */ function resolveURL(url) { var href = url; if (msie) { // IE needs attribute set twice to normalize properties urlParsingNode.setAttribute('href', href); href = urlParsingNode.href; } urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils return { href: urlParsingNode.href, protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', host: urlParsingNode.host, search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', hostname: urlParsingNode.hostname, port: urlParsingNode.port, pathname: (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname : '/' + urlParsingNode.pathname }; } originURL = resolveURL(window.location.href); /** * Determine if a URL shares the same origin as the current location * * @param {String} requestURL The URL to test * @returns {boolean} True if URL shares the same origin, otherwise false */ return function isURLSameOrigin(requestURL) { var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; return (parsed.protocol === originURL.protocol && parsed.host === originURL.host); }; })() : // Non standard browser envs (web workers, react-native) lack needed support. (function nonStandardBrowserEnv() { return function isURLSameOrigin() { return true; }; })() ); /***/ }), /***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": /*!***************************************************************!*\ !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { headers[normalizedName] = value; delete headers[name]; } }); }; /***/ }), /***/ "./node_modules/axios/lib/helpers/parseHeaders.js": /*!********************************************************!*\ !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers var ignoreDuplicateOf = [ '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' ]; /** * Parse headers into an object * * ``` * Date: Wed, 27 Aug 2014 08:58:49 GMT * Content-Type: application/json * Connection: keep-alive * Transfer-Encoding: chunked * ``` * * @param {String} headers Headers needing to be parsed * @returns {Object} Headers parsed into an object */ module.exports = function parseHeaders(headers) { var parsed = {}; var key; var val; var i; if (!headers) { return parsed; } utils.forEach(headers.split('\n'), function parser(line) { i = line.indexOf(':'); key = utils.trim(line.substr(0, i)).toLowerCase(); val = utils.trim(line.substr(i + 1)); if (key) { if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { return; } if (key === 'set-cookie') { parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); } else { parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; } } }); return parsed; }; /***/ }), /***/ "./node_modules/axios/lib/helpers/spread.js": /*!**************************************************!*\ !*** ./node_modules/axios/lib/helpers/spread.js ***! \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /** * Syntactic sugar for invoking a function and expanding an array for arguments. * * Common use case would be to use `Function.prototype.apply`. * * ```js * function f(x, y, z) {} * var args = [1, 2, 3]; * f.apply(null, args); * ``` * * With `spread` this example can be re-written. * * ```js * spread(function(x, y, z) {})([1, 2, 3]); * ``` * * @param {Function} callback * @returns {Function} */ module.exports = function spread(callback) { return function wrap(arr) { return callback.apply(null, arr); }; }; /***/ }), /***/ "./node_modules/axios/lib/utils.js": /*!*****************************************!*\ !*** ./node_modules/axios/lib/utils.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios var toString = Object.prototype.toString; /** * Determine if a value is an Array * * @param {Object} val The value to test * @returns {boolean} True if value is an Array, otherwise false */ function isArray(val) { return toString.call(val) === '[object Array]'; } /** * Determine if a value is undefined * * @param {Object} val The value to test * @returns {boolean} True if the value is undefined, otherwise false */ function isUndefined(val) { return typeof val === 'undefined'; } /** * Determine if a value is a Buffer * * @param {Object} val The value to test * @returns {boolean} True if value is a Buffer, otherwise false */ function isBuffer(val) { return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); } /** * Determine if a value is an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is an ArrayBuffer, otherwise false */ function isArrayBuffer(val) { return toString.call(val) === '[object ArrayBuffer]'; } /** * Determine if a value is a FormData * * @param {Object} val The value to test * @returns {boolean} True if value is an FormData, otherwise false */ function isFormData(val) { return (typeof FormData !== 'undefined') && (val instanceof FormData); } /** * Determine if a value is a view on an ArrayBuffer * * @param {Object} val The value to test * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false */ function isArrayBufferView(val) { var result; if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { result = ArrayBuffer.isView(val); } else { result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); } return result; } /** * Determine if a value is a String * * @param {Object} val The value to test * @returns {boolean} True if value is a String, otherwise false */ function isString(val) { return typeof val === 'string'; } /** * Determine if a value is a Number * * @param {Object} val The value to test * @returns {boolean} True if value is a Number, otherwise false */ function isNumber(val) { return typeof val === 'number'; } /** * Determine if a value is an Object * * @param {Object} val The value to test * @returns {boolean} True if value is an Object, otherwise false */ function isObject(val) { return val !== null && typeof val === 'object'; } /** * Determine if a value is a Date * * @param {Object} val The value to test * @returns {boolean} True if value is a Date, otherwise false */ function isDate(val) { return toString.call(val) === '[object Date]'; } /** * Determine if a value is a File * * @param {Object} val The value to test * @returns {boolean} True if value is a File, otherwise false */ function isFile(val) { return toString.call(val) === '[object File]'; } /** * Determine if a value is a Blob * * @param {Object} val The value to test * @returns {boolean} True if value is a Blob, otherwise false */ function isBlob(val) { return toString.call(val) === '[object Blob]'; } /** * Determine if a value is a Function * * @param {Object} val The value to test * @returns {boolean} True if value is a Function, otherwise false */ function isFunction(val) { return toString.call(val) === '[object Function]'; } /** * Determine if a value is a Stream * * @param {Object} val The value to test * @returns {boolean} True if value is a Stream, otherwise false */ function isStream(val) { return isObject(val) && isFunction(val.pipe); } /** * Determine if a value is a URLSearchParams object * * @param {Object} val The value to test * @returns {boolean} True if value is a URLSearchParams object, otherwise false */ function isURLSearchParams(val) { return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; } /** * Trim excess whitespace off the beginning and end of a string * * @param {String} str The String to trim * @returns {String} The String freed of excess whitespace */ function trim(str) { return str.replace(/^\s*/, '').replace(/\s*$/, ''); } /** * Determine if we're running in a standard browser environment * * This allows axios to run in a web worker, and react-native. * Both environments support XMLHttpRequest, but not fully standard globals. * * web workers: * typeof window -> undefined * typeof document -> undefined * * react-native: * navigator.product -> 'ReactNative' * nativescript * navigator.product -> 'NativeScript' or 'NS' */ function isStandardBrowserEnv() { if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) { return false; } return ( typeof window !== 'undefined' && typeof document !== 'undefined' ); } /** * Iterate over an Array or an Object invoking a function for each item. * * If `obj` is an Array callback will be called passing * the value, index, and complete array for each item. * * If 'obj' is an Object callback will be called passing * the value, key, and complete object for each property. * * @param {Object|Array} obj The object to iterate * @param {Function} fn The callback to invoke for each item */ function forEach(obj, fn) { // Don't bother if no value provided if (obj === null || typeof obj === 'undefined') { return; } // Force an array if not already something iterable if (typeof obj !== 'object') { /*eslint no-param-reassign:0*/ obj = [obj]; } if (isArray(obj)) { // Iterate over array values for (var i = 0, l = obj.length; i < l; i++) { fn.call(null, obj[i], i, obj); } } else { // Iterate over object keys for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { fn.call(null, obj[key], key, obj); } } } } /** * Accepts varargs expecting each argument to be an object, then * immutably merges the properties of each object and returns result. * * When multiple objects contain the same key the later object in * the arguments list will take precedence. * * Example: * * ```js * var result = merge({foo: 123}, {foo: 456}); * console.log(result.foo); // outputs 456 * ``` * * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function merge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (typeof result[key] === 'object' && typeof val === 'object') { result[key] = merge(result[key], val); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Function equal to merge with the difference being that no reference * to original objects is kept. * * @see merge * @param {Object} obj1 Object to merge * @returns {Object} Result of all merge properties */ function deepMerge(/* obj1, obj2, obj3, ... */) { var result = {}; function assignValue(val, key) { if (typeof result[key] === 'object' && typeof val === 'object') { result[key] = deepMerge(result[key], val); } else if (typeof val === 'object') { result[key] = deepMerge({}, val); } else { result[key] = val; } } for (var i = 0, l = arguments.length; i < l; i++) { forEach(arguments[i], assignValue); } return result; } /** * Extends object a by mutably adding to it the properties of object b. * * @param {Object} a The object to be extended * @param {Object} b The object to copy properties from * @param {Object} thisArg The object to bind function to * @return {Object} The resulting value of object a */ function extend(a, b, thisArg) { forEach(b, function assignValue(val, key) { if (thisArg && typeof val === 'function') { a[key] = bind(val, thisArg); } else { a[key] = val; } }); return a; } module.exports = { isArray: isArray, isArrayBuffer: isArrayBuffer, isBuffer: isBuffer, isFormData: isFormData, isArrayBufferView: isArrayBufferView, isString: isString, isNumber: isNumber, isObject: isObject, isUndefined: isUndefined, isDate: isDate, isFile: isFile, isBlob: isBlob, isFunction: isFunction, isStream: isStream, isURLSearchParams: isURLSearchParams, isStandardBrowserEnv: isStandardBrowserEnv, forEach: forEach, merge: merge, deepMerge: deepMerge, extend: extend, trim: trim }; /***/ }), /***/ "./node_modules/lodash/lodash.js": /*!***************************************!*\ !*** ./node_modules/lodash/lodash.js ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ ;(function() { /** Used as a safe reference for `undefined` in pre-ES5 environments. */ var undefined; /** Used as the semantic version number. */ var VERSION = '4.17.20'; /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** Error message constants. */ var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.', FUNC_ERROR_TEXT = 'Expected a function'; /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** Used as the internal argument placeholder. */ var PLACEHOLDER = '__lodash_placeholder__'; /** Used to compose bitmasks for cloning. */ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; /** Used to compose bitmasks for value comparisons. */ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512; /** Used as default options for `_.truncate`. */ var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = '...'; /** Used to detect hot functions by number of calls within a span of milliseconds. */ var HOT_COUNT = 800, HOT_SPAN = 16; /** Used to indicate the type of lazy iteratees. */ var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3; /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 1.7976931348623157e+308, NAN = 0 / 0; /** Used as references for the maximum length and index of an array. */ var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; /** Used to associate wrap methods with their bit flags. */ var wrapFlags = [ ['ary', WRAP_ARY_FLAG], ['bind', WRAP_BIND_FLAG], ['bindKey', WRAP_BIND_KEY_FLAG], ['curry', WRAP_CURRY_FLAG], ['curryRight', WRAP_CURRY_RIGHT_FLAG], ['flip', WRAP_FLIP_FLAG], ['partial', WRAP_PARTIAL_FLAG], ['partialRight', WRAP_PARTIAL_RIGHT_FLAG], ['rearg', WRAP_REARG_FLAG] ]; /** `Object#toString` result references. */ var argsTag = '[object Arguments]', arrayTag = '[object Array]', asyncTag = '[object AsyncFunction]', boolTag = '[object Boolean]', dateTag = '[object Date]', domExcTag = '[object DOMException]', errorTag = '[object Error]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', mapTag = '[object Map]', numberTag = '[object Number]', nullTag = '[object Null]', objectTag = '[object Object]', promiseTag = '[object Promise]', proxyTag = '[object Proxy]', regexpTag = '[object RegExp]', setTag = '[object Set]', stringTag = '[object String]', symbolTag = '[object Symbol]', undefinedTag = '[object Undefined]', weakMapTag = '[object WeakMap]', weakSetTag = '[object WeakSet]'; var arrayBufferTag = '[object ArrayBuffer]', dataViewTag = '[object DataView]', float32Tag = '[object Float32Array]', float64Tag = '[object Float64Array]', int8Tag = '[object Int8Array]', int16Tag = '[object Int16Array]', int32Tag = '[object Int32Array]', uint8Tag = '[object Uint8Array]', uint8ClampedTag = '[object Uint8ClampedArray]', uint16Tag = '[object Uint16Array]', uint32Tag = '[object Uint32Array]'; /** Used to match empty string literals in compiled template source. */ var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; /** Used to match HTML entities and HTML characters. */ var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); /** Used to match template delimiters. */ var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g; /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); /** Used to match leading and trailing whitespace. */ var reTrim = /^\s+|\s+$/g, reTrimStart = /^\s+/, reTrimEnd = /\s+$/; /** Used to match wrap detail comments. */ var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /; /** Used to match words composed of alphanumeric characters. */ var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Used to match * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components). */ var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; /** Used to match `RegExp` flags from their coerced string values. */ var reFlags = /\w*$/; /** Used to detect bad signed hexadecimal string values. */ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; /** Used to detect binary string values. */ var reIsBinary = /^0b[01]+$/i; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** Used to match Latin Unicode letters (excluding mathematical operators). */ var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; /** Used to ensure capturing order of template delimiters. */ var reNoMatch = /($^)/; /** Used to match unescaped characters in compiled string literals. */ var reUnescapedString = /['\n\r\u2028\u2029\\]/g; /** Used to compose unicode character classes. */ var rsAstralRange = '\\ud800-\\udfff', rsComboMarksRange = '\\u0300-\\u036f', reComboHalfMarksRange = '\\ufe20-\\ufe2f', rsComboSymbolsRange = '\\u20d0-\\u20ff', rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = '\\u2700-\\u27bf', rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', rsMathOpRange = '\\xac\\xb1\\xd7\\xf7', rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf', rsPunctuationRange = '\\u2000-\\u206f', rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000', rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde', rsVarRange = '\\ufe0e\\ufe0f', rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; /** Used to compose unicode capture groups. */ var rsApos = "['\u2019]", rsAstral = '[' + rsAstralRange + ']', rsBreak = '[' + rsBreakRange + ']', rsCombo = '[' + rsComboRange + ']', rsDigits = '\\d+', rsDingbat = '[' + rsDingbatRange + ']', rsLower = '[' + rsLowerRange + ']', rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']', rsFitz = '\\ud83c[\\udffb-\\udfff]', rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')', rsNonAstral = '[^' + rsAstralRange + ']', rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}', rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]', rsUpper = '[' + rsUpperRange + ']', rsZWJ = '\\u200d'; /** Used to compose unicode regexes. */ var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')', rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')', rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?', rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?', reOptMod = rsModifier + '?', rsOptVar = '[' + rsVarRange + ']?', rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*', rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])', rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])', rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq, rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; /** Used to match apostrophes. */ var reApos = RegExp(rsApos, 'g'); /** * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols). */ var reComboMark = RegExp(rsCombo, 'g'); /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); /** Used to match complex or compound words. */ var reUnicodeWord = RegExp([ rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')', rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower, rsUpper + '+' + rsOptContrUpper, rsOrdUpper, rsOrdLower, rsDigits, rsEmoji ].join('|'), 'g'); /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); /** Used to detect strings that need a more robust regexp to match words. */ var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; /** Used to assign default `context` object properties. */ var contextProps = [ 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array', 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object', 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout' ]; /** Used to make template sourceURLs easier to identify. */ var templateCounter = -1; /** Used to identify `toStringTag` values of typed arrays. */ var typedArrayTags = {}; typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** Used to identify `toStringTag` values supported by `_.clone`. */ var cloneableTags = {}; cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; /** Used to map Latin Unicode letters to basic Latin letters. */ var deburredLetters = { // Latin-1 Supplement block. '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A', '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a', '\xc7': 'C', '\xe7': 'c', '\xd0': 'D', '\xf0': 'd', '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E', '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e', '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I', '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i', '\xd1': 'N', '\xf1': 'n', '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O', '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o', '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U', '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u', '\xdd': 'Y', '\xfd': 'y', '\xff': 'y', '\xc6': 'Ae', '\xe6': 'ae', '\xde': 'Th', '\xfe': 'th', '\xdf': 'ss', // Latin Extended-A block. '\u0100': 'A', '\u0102': 'A', '\u0104': 'A', '\u0101': 'a', '\u0103': 'a', '\u0105': 'a', '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C', '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c', '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd', '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E', '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e', '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G', '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g', '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h', '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I', '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i', '\u0134': 'J', '\u0135': 'j', '\u0136': 'K', '\u0137': 'k', '\u0138': 'k', '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L', '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l', '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N', '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n', '\u014c': 'O', '\u014e': 'O', '\u0150': 'O', '\u014d': 'o', '\u014f': 'o', '\u0151': 'o', '\u0154': 'R', '\u0156': 'R', '\u0158': 'R', '\u0155': 'r', '\u0157': 'r', '\u0159': 'r', '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S', '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's', '\u0162': 'T', '\u0164': 'T', '\u0166': 'T', '\u0163': 't', '\u0165': 't', '\u0167': 't', '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U', '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u', '\u0174': 'W', '\u0175': 'w', '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y', '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z', '\u017a': 'z', '\u017c': 'z', '\u017e': 'z', '\u0132': 'IJ', '\u0133': 'ij', '\u0152': 'Oe', '\u0153': 'oe', '\u0149': "'n", '\u017f': 's' }; /** Used to map characters to HTML entities. */ var htmlEscapes = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }; /** Used to map HTML entities to characters. */ var htmlUnescapes = { '&amp;': '&', '&lt;': '<', '&gt;': '>', '&quot;': '"', '&#39;': "'" }; /** Used to escape characters for inclusion in compiled string literals. */ var stringEscapes = { '\\': '\\', "'": "'", '\n': 'n', '\r': 'r', '\u2028': 'u2028', '\u2029': 'u2029' }; /** Built-in method references without a dependency on `root`. */ var freeParseFloat = parseFloat, freeParseInt = parseInt; /** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root = freeGlobal || freeSelf || Function('return this')(); /** Detect free variable `exports`. */ var freeExports = true && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Detect free variable `process` from Node.js. */ var freeProcess = moduleExports && freeGlobal.process; /** Used to access faster Node.js helpers. */ var nodeUtil = (function() { try { // Use `util.types` for Node.js 10+. var types = freeModule && freeModule.require && freeModule.require('util').types; if (types) { return types; } // Legacy `process.binding('util')` for Node.js < 10. return freeProcess && freeProcess.binding && freeProcess.binding('util'); } catch (e) {} }()); /* Node.js helper references. */ var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /*--------------------------------------------------------------------------*/ /** * A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @param {Array} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { switch (args.length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); case 2: return func.call(thisArg, args[0], args[1]); case 3: return func.call(thisArg, args[0], args[1], args[2]); } return func.apply(thisArg, args); } /** * A specialized version of `baseAggregator` for arrays. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} setter The function to set `accumulator` values. * @param {Function} iteratee The iteratee to transform keys. * @param {Object} accumulator The initial aggregated object. * @returns {Function} Returns `accumulator`. */ function arrayAggregator(array, setter, iteratee, accumulator) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { var value = array[index]; setter(accumulator, value, iteratee(value), array); } return accumulator; } /** * A specialized version of `_.forEach` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEach(array, iteratee) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (iteratee(array[index], index, array) === false) { break; } } return array; } /** * A specialized version of `_.forEachRight` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns `array`. */ function arrayEachRight(array, iteratee) { var length = array == null ? 0 : array.length; while (length--) { if (iteratee(array[length], length, array) === false) { break; } } return array; } /** * A specialized version of `_.every` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false`. */ function arrayEvery(array, predicate) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (!predicate(array[index], index, array)) { return false; } } return true; } /** * A specialized version of `_.filter` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function arrayFilter(array, predicate) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result[resIndex++] = value; } } return result; } /** * A specialized version of `_.includes` for arrays without support for * specifying an index to search from. * * @private * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludes(array, value) { var length = array == null ? 0 : array.length; return !!length && baseIndexOf(array, value, 0) > -1; } /** * This function is like `arrayIncludes` except that it accepts a comparator. * * @private * @param {Array} [array] The array to inspect. * @param {*} target The value to search for. * @param {Function} comparator The comparator invoked per element. * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludesWith(array, value, comparator) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (comparator(value, array[index])) { return true; } } return false; } /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } /** * Appends the elements of `values` to `array`. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to append. * @returns {Array} Returns `array`. */ function arrayPush(array, values) { var index = -1, length = values.length, offset = array.length; while (++index < length) { array[offset + index] = values[index]; } return array; } /** * A specialized version of `_.reduce` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} [accumulator] The initial value. * @param {boolean} [initAccum] Specify using the first element of `array` as * the initial value. * @returns {*} Returns the accumulated value. */ function arrayReduce(array, iteratee, accumulator, initAccum) { var index = -1, length = array == null ? 0 : array.length; if (initAccum && length) { accumulator = array[++index]; } while (++index < length) { accumulator = iteratee(accumulator, array[index], index, array); } return accumulator; } /** * A specialized version of `_.reduceRight` for arrays without support for * iteratee shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} [accumulator] The initial value. * @param {boolean} [initAccum] Specify using the last element of `array` as * the initial value. * @returns {*} Returns the accumulated value. */ function arrayReduceRight(array, iteratee, accumulator, initAccum) { var length = array == null ? 0 : array.length; if (initAccum && length) { accumulator = array[--length]; } while (length--) { accumulator = iteratee(accumulator, array[length], length, array); } return accumulator; } /** * A specialized version of `_.some` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. */ function arraySome(array, predicate) { var index = -1, length = array == null ? 0 : array.length; while (++index < length) { if (predicate(array[index], index, array)) { return true; } } return false; } /** * Gets the size of an ASCII `string`. * * @private * @param {string} string The string inspect. * @returns {number} Returns the string size. */ var asciiSize = baseProperty('length'); /** * Converts an ASCII `string` to an array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the converted array. */ function asciiToArray(string) { return string.split(''); } /** * Splits an ASCII `string` into an array of its words. * * @private * @param {string} The string to inspect. * @returns {Array} Returns the words of `string`. */ function asciiWords(string) { return string.match(reAsciiWord) || []; } /** * The base implementation of methods like `_.findKey` and `_.findLastKey`, * without support for iteratee shorthands, which iterates over `collection` * using `eachFunc`. * * @private * @param {Array|Object} collection The collection to inspect. * @param {Function} predicate The function invoked per iteration. * @param {Function} eachFunc The function to iterate over `collection`. * @returns {*} Returns the found element or its key, else `undefined`. */ function baseFindKey(collection, predicate, eachFunc) { var result; eachFunc(collection, function(value, key, collection) { if (predicate(value, key, collection)) { result = key; return false; } }); return result; } /** * The base implementation of `_.findIndex` and `_.findLastIndex` without * support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} predicate The function invoked per iteration. * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {number} Returns the index of the matched value, else `-1`. */ function baseFindIndex(array, predicate, fromIndex, fromRight) { var length = array.length, index = fromIndex + (fromRight ? 1 : -1); while ((fromRight ? index-- : ++index < length)) { if (predicate(array[index], index, array)) { return index; } } return -1; } /** * The base implementation of `_.indexOf` without `fromIndex` bounds checks. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. */ function baseIndexOf(array, value, fromIndex) { return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); } /** * This function is like `baseIndexOf` except that it accepts a comparator. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @param {Function} comparator The comparator invoked per element. * @returns {number} Returns the index of the matched value, else `-1`. */ function baseIndexOfWith(array, value, fromIndex, comparator) { var index = fromIndex - 1, length = array.length; while (++index < length) { if (comparator(array[index], value)) { return index; } } return -1; } /** * The base implementation of `_.isNaN` without support for number objects. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. */ function baseIsNaN(value) { return value !== value; } /** * The base implementation of `_.mean` and `_.meanBy` without support for * iteratee shorthands. * * @private * @param {Array} array The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {number} Returns the mean. */ function baseMean(array, iteratee) { var length = array == null ? 0 : array.length; return length ? (baseSum(array, iteratee) / length) : NAN; } /** * The base implementation of `_.property` without support for deep paths. * * @private * @param {string} key The key of the property to get. * @returns {Function} Returns the new accessor function. */ function baseProperty(key) { return function(object) { return object == null ? undefined : object[key]; }; } /** * The base implementation of `_.propertyOf` without support for deep paths. * * @private * @param {Object} object The object to query. * @returns {Function} Returns the new accessor function. */ function basePropertyOf(object) { return function(key) { return object == null ? undefined : object[key]; }; } /** * The base implementation of `_.reduce` and `_.reduceRight`, without support * for iteratee shorthands, which iterates over `collection` using `eachFunc`. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} accumulator The initial value. * @param {boolean} initAccum Specify using the first or last element of * `collection` as the initial value. * @param {Function} eachFunc The function to iterate over `collection`. * @returns {*} Returns the accumulated value. */ function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { eachFunc(collection, function(value, index, collection) { accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection); }); return accumulator; } /** * The base implementation of `_.sortBy` which uses `comparer` to define the * sort order of `array` and replaces criteria objects with their corresponding * values. * * @private * @param {Array} array The array to sort. * @param {Function} comparer The function to define sort order. * @returns {Array} Returns `array`. */ function baseSortBy(array, comparer) { var length = array.length; array.sort(comparer); while (length--) { array[length] = array[length].value; } return array; } /** * The base implementation of `_.sum` and `_.sumBy` without support for * iteratee shorthands. * * @private * @param {Array} array The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {number} Returns the sum. */ function baseSum(array, iteratee) { var result, index = -1, length = array.length; while (++index < length) { var current = iteratee(array[index]); if (current !== undefined) { result = result === undefined ? current : (result + current); } } return result; } /** * The base implementation of `_.times` without support for iteratee shorthands * or max array length checks. * * @private * @param {number} n The number of times to invoke `iteratee`. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the array of results. */ function baseTimes(n, iteratee) { var index = -1, result = Array(n); while (++index < n) { result[index] = iteratee(index); } return result; } /** * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array * of key-value pairs for `object` corresponding to the property names of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get values for. * @returns {Object} Returns the key-value pairs. */ function baseToPairs(object, props) { return arrayMap(props, function(key) { return [key, object[key]]; }); } /** * The base implementation of `_.unary` without support for storing metadata. * * @private * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. */ function baseUnary(func) { return function(value) { return func(value); }; } /** * The base implementation of `_.values` and `_.valuesIn` which creates an * array of `object` property values corresponding to the property names * of `props`. * * @private * @param {Object} object The object to query. * @param {Array} props The property names to get values for. * @returns {Object} Returns the array of property values. */ function baseValues(object, props) { return arrayMap(props, function(key) { return object[key]; }); } /** * Checks if a `cache` value for `key` exists. * * @private * @param {Object} cache The cache to query. * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function cacheHas(cache, key) { return cache.has(key); } /** * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol * that is not found in the character symbols. * * @private * @param {Array} strSymbols The string symbols to inspect. * @param {Array} chrSymbols The character symbols to find. * @returns {number} Returns the index of the first unmatched string symbol. */ function charsStartIndex(strSymbols, chrSymbols) { var index = -1, length = strSymbols.length; while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} return index; } /** * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol * that is not found in the character symbols. * * @private * @param {Array} strSymbols The string symbols to inspect. * @param {Array} chrSymbols The character symbols to find. * @returns {number} Returns the index of the last unmatched string symbol. */ function charsEndIndex(strSymbols, chrSymbols) { var index = strSymbols.length; while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} return index; } /** * Gets the number of `placeholder` occurrences in `array`. * * @private * @param {Array} array The array to inspect. * @param {*} placeholder The placeholder to search for. * @returns {number} Returns the placeholder count. */ function countHolders(array, placeholder) { var length = array.length, result = 0; while (length--) { if (array[length] === placeholder) { ++result; } } return result; } /** * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A * letters to basic Latin letters. * * @private * @param {string} letter The matched letter to deburr. * @returns {string} Returns the deburred letter. */ var deburrLetter = basePropertyOf(deburredLetters); /** * Used by `_.escape` to convert characters to HTML entities. * * @private * @param {string} chr The matched character to escape. * @returns {string} Returns the escaped character. */ var escapeHtmlChar = basePropertyOf(htmlEscapes); /** * Used by `_.template` to escape characters for inclusion in compiled string literals. * * @private * @param {string} chr The matched character to escape. * @returns {string} Returns the escaped character. */ function escapeStringChar(chr) { return '\\' + stringEscapes[chr]; } /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } /** * Checks if `string` contains Unicode symbols. * * @private * @param {string} string The string to inspect. * @returns {boolean} Returns `true` if a symbol is found, else `false`. */ function hasUnicode(string) { return reHasUnicode.test(string); } /** * Checks if `string` contains a word composed of Unicode symbols. * * @private * @param {string} string The string to inspect. * @returns {boolean} Returns `true` if a word is found, else `false`. */ function hasUnicodeWord(string) { return reHasUnicodeWord.test(string); } /** * Converts `iterator` to an array. * * @private * @param {Object} iterator The iterator to convert. * @returns {Array} Returns the converted array. */ function iteratorToArray(iterator) { var data, result = []; while (!(data = iterator.next()).done) { result.push(data.value); } return result; } /** * Converts `map` to its key-value pairs. * * @private * @param {Object} map The map to convert. * @returns {Array} Returns the key-value pairs. */ function mapToArray(map) { var index = -1, result = Array(map.size); map.forEach(function(value, key) { result[++index] = [key, value]; }); return result; } /** * Creates a unary function that invokes `func` with its argument transformed. * * @private * @param {Function} func The function to wrap. * @param {Function} transform The argument transform. * @returns {Function} Returns the new function. */ function overArg(func, transform) { return function(arg) { return func(transform(arg)); }; } /** * Replaces all `placeholder` elements in `array` with an internal placeholder * and returns an array of their indexes. * * @private * @param {Array} array The array to modify. * @param {*} placeholder The placeholder to replace. * @returns {Array} Returns the new array of placeholder indexes. */ function replaceHolders(array, placeholder) { var index = -1, length = array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (value === placeholder || value === PLACEHOLDER) { array[index] = PLACEHOLDER; result[resIndex++] = index; } } return result; } /** * Converts `set` to an array of its values. * * @private * @param {Object} set The set to convert. * @returns {Array} Returns the values. */ function setToArray(set) { var index = -1, result = Array(set.size); set.forEach(function(value) { result[++index] = value; }); return result; } /** * Converts `set` to its value-value pairs. * * @private * @param {Object} set The set to convert. * @returns {Array} Returns the value-value pairs. */ function setToPairs(set) { var index = -1, result = Array(set.size); set.forEach(function(value) { result[++index] = [value, value]; }); return result; } /** * A specialized version of `_.indexOf` which performs strict equality * comparisons of values, i.e. `===`. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. */ function strictIndexOf(array, value, fromIndex) { var index = fromIndex - 1, length = array.length; while (++index < length) { if (array[index] === value) { return index; } } return -1; } /** * A specialized version of `_.lastIndexOf` which performs strict equality * comparisons of values, i.e. `===`. * * @private * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} fromIndex The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. */ function strictLastIndexOf(array, value, fromIndex) { var index = fromIndex + 1; while (index--) { if (array[index] === value) { return index; } } return index; } /** * Gets the number of symbols in `string`. * * @private * @param {string} string The string to inspect. * @returns {number} Returns the string size. */ function stringSize(string) { return hasUnicode(string) ? unicodeSize(string) : asciiSize(string); } /** * Converts `string` to an array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the converted array. */ function stringToArray(string) { return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); } /** * Used by `_.unescape` to convert HTML entities to characters. * * @private * @param {string} chr The matched character to unescape. * @returns {string} Returns the unescaped character. */ var unescapeHtmlChar = basePropertyOf(htmlUnescapes); /** * Gets the size of a Unicode `string`. * * @private * @param {string} string The string inspect. * @returns {number} Returns the string size. */ function unicodeSize(string) { var result = reUnicode.lastIndex = 0; while (reUnicode.test(string)) { ++result; } return result; } /** * Converts a Unicode `string` to an array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the converted array. */ function unicodeToArray(string) { return string.match(reUnicode) || []; } /** * Splits a Unicode `string` into an array of its words. * * @private * @param {string} The string to inspect. * @returns {Array} Returns the words of `string`. */ function unicodeWords(string) { return string.match(reUnicodeWord) || []; } /*--------------------------------------------------------------------------*/ /** * Create a new pristine `lodash` function using the `context` object. * * @static * @memberOf _ * @since 1.1.0 * @category Util * @param {Object} [context=root] The context object. * @returns {Function} Returns a new `lodash` function. * @example * * _.mixin({ 'foo': _.constant('foo') }); * * var lodash = _.runInContext(); * lodash.mixin({ 'bar': lodash.constant('bar') }); * * _.isFunction(_.foo); * // => true * _.isFunction(_.bar); * // => false * * lodash.isFunction(lodash.foo); * // => false * lodash.isFunction(lodash.bar); * // => true * * // Create a suped-up `defer` in Node.js. * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer; */ var runInContext = (function runInContext(context) { context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps)); /** Built-in constructor references. */ var Array = context.Array, Date = context.Date, Error = context.Error, Function = context.Function, Math = context.Math, Object = context.Object, RegExp = context.RegExp, String = context.String, TypeError = context.TypeError; /** Used for built-in method references. */ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype; /** Used to detect overreaching core-js shims. */ var coreJsData = context['__core-js_shared__']; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to generate unique IDs. */ var idCounter = 0; /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** Used to infer the `Object` constructor. */ var objectCtorString = funcToString.call(Object); /** Used to restore the original `_` reference in `_.noConflict`. */ var oldDash = root._; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** Built-in value references. */ var Buffer = moduleExports ? context.Buffer : undefined, Symbol = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined, symIterator = Symbol ? Symbol.iterator : undefined, symToStringTag = Symbol ? Symbol.toStringTag : undefined; var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); /** Mocked built-ins. */ var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeCeil = Math.ceil, nativeFloor = Math.floor, nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object.keys, Object), nativeMax = Math.max, nativeMin = Math.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math.random, nativeReverse = arrayProto.reverse; /* Built-in method references that are verified to be native. */ var DataView = getNative(context, 'DataView'), Map = getNative(context, 'Map'), Promise = getNative(context, 'Promise'), Set = getNative(context, 'Set'), WeakMap = getNative(context, 'WeakMap'), nativeCreate = getNative(Object, 'create'); /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; /** Used to lookup unminified function names. */ var realNames = {}; /** Used to detect maps, sets, and weakmaps. */ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /*------------------------------------------------------------------------*/ /** * Creates a `lodash` object which wraps `value` to enable implicit method * chain sequences. Methods that operate on and return arrays, collections, * and functions can be chained together. Methods that retrieve a single value * or may return a primitive value will automatically end the chain sequence * and return the unwrapped value. Otherwise, the value must be unwrapped * with `_#value`. * * Explicit chain sequences, which must be unwrapped with `_#value`, may be * enabled using `_.chain`. * * The execution of chained methods is lazy, that is, it's deferred until * `_#value` is implicitly or explicitly called. * * Lazy evaluation allows several methods to support shortcut fusion. * Shortcut fusion is an optimization to merge iteratee calls; this avoids * the creation of intermediate arrays and can greatly reduce the number of * iteratee executions. Sections of a chain sequence qualify for shortcut * fusion if the section is applied to an array and iteratees accept only * one argument. The heuristic for whether a section qualifies for shortcut * fusion is subject to change. * * Chaining is supported in custom builds as long as the `_#value` method is * directly or indirectly included in the build. * * In addition to lodash methods, wrappers have `Array` and `String` methods. * * The wrapper `Array` methods are: * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift` * * The wrapper `String` methods are: * `replace` and `split` * * The wrapper methods that support shortcut fusion are: * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`, * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`, * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray` * * The chainable wrapper methods are: * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`, * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`, * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`, * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`, * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`, * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`, * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`, * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`, * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`, * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`, * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`, * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`, * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`, * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`, * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`, * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`, * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`, * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`, * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`, * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`, * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`, * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`, * `zipObject`, `zipObjectDeep`, and `zipWith` * * The wrapper methods that are **not** chainable by default are: * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`, * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`, * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`, * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`, * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`, * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`, * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`, * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`, * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`, * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`, * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`, * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`, * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`, * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`, * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`, * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`, * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`, * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`, * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`, * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`, * `upperFirst`, `value`, and `words` * * @name _ * @constructor * @category Seq * @param {*} value The value to wrap in a `lodash` instance. * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * function square(n) { * return n * n; * } * * var wrapped = _([1, 2, 3]); * * // Returns an unwrapped value. * wrapped.reduce(_.add); * // => 6 * * // Returns a wrapped value. * var squares = wrapped.map(square); * * _.isArray(squares); * // => false * * _.isArray(squares.value()); * // => true */ function lodash(value) { if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { if (value instanceof LodashWrapper) { return value; } if (hasOwnProperty.call(value, '__wrapped__')) { return wrapperClone(value); } } return new LodashWrapper(value); } /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} proto The object to inherit from. * @returns {Object} Returns the new object. */ var baseCreate = (function() { function object() {} return function(proto) { if (!isObject(proto)) { return {}; } if (objectCreate) { return objectCreate(proto); } object.prototype = proto; var result = new object; object.prototype = undefined; return result; }; }()); /** * The function whose prototype chain sequence wrappers inherit from. * * @private */ function baseLodash() { // No operation performed. } /** * The base constructor for creating `lodash` wrapper objects. * * @private * @param {*} value The value to wrap. * @param {boolean} [chainAll] Enable explicit method chain sequences. */ function LodashWrapper(value, chainAll) { this.__wrapped__ = value; this.__actions__ = []; this.__chain__ = !!chainAll; this.__index__ = 0; this.__values__ = undefined; } /** * By default, the template delimiters used by lodash are like those in * embedded Ruby (ERB) as well as ES2015 template strings. Change the * following template settings to use alternative delimiters. * * @static * @memberOf _ * @type {Object} */ lodash.templateSettings = { /** * Used to detect `data` property values to be HTML-escaped. * * @memberOf _.templateSettings * @type {RegExp} */ 'escape': reEscape, /** * Used to detect code to be evaluated. * * @memberOf _.templateSettings * @type {RegExp} */ 'evaluate': reEvaluate, /** * Used to detect `data` property values to inject. * * @memberOf _.templateSettings * @type {RegExp} */ 'interpolate': reInterpolate, /** * Used to reference the data object in the template text. * * @memberOf _.templateSettings * @type {string} */ 'variable': '', /** * Used to import variables into the compiled template. * * @memberOf _.templateSettings * @type {Object} */ 'imports': { /** * A reference to the `lodash` function. * * @memberOf _.templateSettings.imports * @type {Function} */ '_': lodash } }; // Ensure wrappers are instances of `baseLodash`. lodash.prototype = baseLodash.prototype; lodash.prototype.constructor = lodash; LodashWrapper.prototype = baseCreate(baseLodash.prototype); LodashWrapper.prototype.constructor = LodashWrapper; /*------------------------------------------------------------------------*/ /** * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. * * @private * @constructor * @param {*} value The value to wrap. */ function LazyWrapper(value) { this.__wrapped__ = value; this.__actions__ = []; this.__dir__ = 1; this.__filtered__ = false; this.__iteratees__ = []; this.__takeCount__ = MAX_ARRAY_LENGTH; this.__views__ = []; } /** * Creates a clone of the lazy wrapper object. * * @private * @name clone * @memberOf LazyWrapper * @returns {Object} Returns the cloned `LazyWrapper` object. */ function lazyClone() { var result = new LazyWrapper(this.__wrapped__); result.__actions__ = copyArray(this.__actions__); result.__dir__ = this.__dir__; result.__filtered__ = this.__filtered__; result.__iteratees__ = copyArray(this.__iteratees__); result.__takeCount__ = this.__takeCount__; result.__views__ = copyArray(this.__views__); return result; } /** * Reverses the direction of lazy iteration. * * @private * @name reverse * @memberOf LazyWrapper * @returns {Object} Returns the new reversed `LazyWrapper` object. */ function lazyReverse() { if (this.__filtered__) { var result = new LazyWrapper(this); result.__dir__ = -1; result.__filtered__ = true; } else { result = this.clone(); result.__dir__ *= -1; } return result; } /** * Extracts the unwrapped value from its lazy wrapper. * * @private * @name value * @memberOf LazyWrapper * @returns {*} Returns the unwrapped value. */ function lazyValue() { var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : (start - 1), iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__); if (!isArr || (!isRight && arrLength == length && takeCount == length)) { return baseWrapperValue(array, this.__actions__); } var result = []; outer: while (length-- && resIndex < takeCount) { index += dir; var iterIndex = -1, value = array[index]; while (++iterIndex < iterLength) { var data = iteratees[iterIndex], iteratee = data.iteratee, type = data.type, computed = iteratee(value); if (type == LAZY_MAP_FLAG) { value = computed; } else if (!computed) { if (type == LAZY_FILTER_FLAG) { continue outer; } else { break outer; } } } result[resIndex++] = value; } return result; } // Ensure `LazyWrapper` is an instance of `baseLodash`. LazyWrapper.prototype = baseCreate(baseLodash.prototype); LazyWrapper.prototype.constructor = LazyWrapper; /*------------------------------------------------------------------------*/ /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; /*------------------------------------------------------------------------*/ /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; /*------------------------------------------------------------------------*/ /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; /*------------------------------------------------------------------------*/ /** * * Creates an array cache object to store unique values. * * @private * @constructor * @param {Array} [values] The values to cache. */ function SetCache(values) { var index = -1, length = values == null ? 0 : values.length; this.__data__ = new MapCache; while (++index < length) { this.add(values[index]); } } /** * Adds `value` to the array cache. * * @private * @name add * @memberOf SetCache * @alias push * @param {*} value The value to cache. * @returns {Object} Returns the cache instance. */ function setCacheAdd(value) { this.__data__.set(value, HASH_UNDEFINED); return this; } /** * Checks if `value` is in the array cache. * * @private * @name has * @memberOf SetCache * @param {*} value The value to search for. * @returns {number} Returns `true` if `value` is found, else `false`. */ function setCacheHas(value) { return this.__data__.has(value); } // Add methods to `SetCache`. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; SetCache.prototype.has = setCacheHas; /*------------------------------------------------------------------------*/ /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear() { this.__data__ = new ListCache; this.size = 0; } /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete(key) { var data = this.__data__, result = data['delete'](key); this.size = data.size; return result; } /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet(key) { return this.__data__.get(key); } /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas(key) { return this.__data__.has(key); } /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet(key, value) { var data = this.__data__; if (data instanceof ListCache) { var pairs = data.__data__; if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache(pairs); } data.set(key, value); this.size = data.size; return this; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; /*------------------------------------------------------------------------*/ /** * Creates an array of the enumerable property names of the array-like `value`. * * @private * @param {*} value The value to query. * @param {boolean} inherited Specify returning inherited property names. * @returns {Array} Returns the array of property names. */ function arrayLikeKeys(value, inherited) { var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; for (var key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode. key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers. (isBuff && (key == 'offset' || key == 'parent')) || // PhantomJS 2 has enumerable non-index properties on typed arrays. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || // Skip index properties. isIndex(key, length) ))) { result.push(key); } } return result; } /** * A specialized version of `_.sample` for arrays. * * @private * @param {Array} array The array to sample. * @returns {*} Returns the random element. */ function arraySample(array) { var length = array.length; return length ? array[baseRandom(0, length - 1)] : undefined; } /** * A specialized version of `_.sampleSize` for arrays. * * @private * @param {Array} array The array to sample. * @param {number} n The number of elements to sample. * @returns {Array} Returns the random elements. */ function arraySampleSize(array, n) { return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); } /** * A specialized version of `_.shuffle` for arrays. * * @private * @param {Array} array The array to shuffle. * @returns {Array} Returns the new shuffled array. */ function arrayShuffle(array) { return shuffleSelf(copyArray(array)); } /** * This function is like `assignValue` except that it doesn't assign * `undefined` values. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignMergeValue(object, key, value) { if ((value !== undefined && !eq(object[key], value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } /** * Assigns `value` to `key` of `object` if the existing value is not equivalent * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function assignValue(object, key, value) { var objValue = object[key]; if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue(object, key, value); } } /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } /** * Aggregates elements of `collection` on `accumulator` with keys transformed * by `iteratee` and values set by `setter`. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} setter The function to set `accumulator` values. * @param {Function} iteratee The iteratee to transform keys. * @param {Object} accumulator The initial aggregated object. * @returns {Function} Returns `accumulator`. */ function baseAggregator(collection, setter, iteratee, accumulator) { baseEach(collection, function(value, key, collection) { setter(accumulator, value, iteratee(value), collection); }); return accumulator; } /** * The base implementation of `_.assign` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssign(object, source) { return object && copyObject(source, keys(source), object); } /** * The base implementation of `_.assignIn` without support for multiple sources * or `customizer` functions. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @returns {Object} Returns `object`. */ function baseAssignIn(object, source) { return object && copyObject(source, keysIn(source), object); } /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } /** * The base implementation of `_.at` without support for individual paths. * * @private * @param {Object} object The object to iterate over. * @param {string[]} paths The property paths to pick. * @returns {Array} Returns the picked elements. */ function baseAt(object, paths) { var index = -1, length = paths.length, result = Array(length), skip = object == null; while (++index < length) { result[index] = skip ? undefined : get(object, paths[index]); } return result; } /** * The base implementation of `_.clamp` which doesn't coerce arguments. * * @private * @param {number} number The number to clamp. * @param {number} [lower] The lower bound. * @param {number} upper The upper bound. * @returns {number} Returns the clamped number. */ function baseClamp(number, lower, upper) { if (number === number) { if (upper !== undefined) { number = number <= upper ? number : upper; } if (lower !== undefined) { number = number >= lower ? number : lower; } } return number; } /** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * * @private * @param {*} value The value to clone. * @param {boolean} bitmask The bitmask flags. * 1 - Deep clone * 2 - Flatten inherited properties * 4 - Clone symbols * @param {Function} [customizer] The function to customize cloning. * @param {string} [key] The key of `value`. * @param {Object} [object] The parent object of `value`. * @param {Object} [stack] Tracks traversed objects and their clone counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, bitmask, customizer, key, object, stack) { var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; if (customizer) { result = object ? customizer(value, key, object, stack) : customizer(value); } if (result !== undefined) { return result; } if (!isObject(value)) { return value; } var isArr = isArray(value); if (isArr) { result = initCloneArray(value); if (!isDeep) { return copyArray(value, result); } } else { var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; if (isBuffer(value)) { return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value)); } } else { if (!cloneableTags[tag]) { return object ? value : {}; } result = initCloneByTag(value, tag, isDeep); } } // Check for circular references and return its corresponding clone. stack || (stack = new Stack); var stacked = stack.get(value); if (stacked) { return stacked; } stack.set(value, result); if (isSet(value)) { value.forEach(function(subValue) { result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); }); } else if (isMap(value)) { value.forEach(function(subValue, key) { result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); } var keysFunc = isFull ? (isFlat ? getAllKeysIn : getAllKeys) : (isFlat ? keysIn : keys); var props = isArr ? undefined : keysFunc(value); arrayEach(props || value, function(subValue, key) { if (props) { key = subValue; subValue = value[key]; } // Recursively populate clone (susceptible to call stack limits). assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); }); return result; } /** * The base implementation of `_.conforms` which doesn't clone `source`. * * @private * @param {Object} source The object of property predicates to conform to. * @returns {Function} Returns the new spec function. */ function baseConforms(source) { var props = keys(source); return function(object) { return baseConformsTo(object, source, props); }; } /** * The base implementation of `_.conformsTo` which accepts `props` to check. * * @private * @param {Object} object The object to inspect. * @param {Object} source The object of property predicates to conform to. * @returns {boolean} Returns `true` if `object` conforms, else `false`. */ function baseConformsTo(object, source, props) { var length = props.length; if (object == null) { return !length; } object = Object(object); while (length--) { var key = props[length], predicate = source[key], value = object[key]; if ((value === undefined && !(key in object)) || !predicate(value)) { return false; } } return true; } /** * The base implementation of `_.delay` and `_.defer` which accepts `args` * to provide to `func`. * * @private * @param {Function} func The function to delay. * @param {number} wait The number of milliseconds to delay invocation. * @param {Array} args The arguments to provide to `func`. * @returns {number|Object} Returns the timer id or timeout object. */ function baseDelay(func, wait, args) { if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } return setTimeout(function() { func.apply(undefined, args); }, wait); } /** * The base implementation of methods like `_.difference` without support * for excluding multiple arrays or iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Array} values The values to exclude. * @param {Function} [iteratee] The iteratee invoked per element. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of filtered values. */ function baseDifference(array, values, iteratee, comparator) { var index = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values.length; if (!length) { return result; } if (iteratee) { values = arrayMap(values, baseUnary(iteratee)); } if (comparator) { includes = arrayIncludesWith; isCommon = false; } else if (values.length >= LARGE_ARRAY_SIZE) { includes = cacheHas; isCommon = false; values = new SetCache(values); } outer: while (++index < length) { var value = array[index], computed = iteratee == null ? value : iteratee(value); value = (comparator || value !== 0) ? value : 0; if (isCommon && computed === computed) { var valuesIndex = valuesLength; while (valuesIndex--) { if (values[valuesIndex] === computed) { continue outer; } } result.push(value); } else if (!includes(values, computed, comparator)) { result.push(value); } } return result; } /** * The base implementation of `_.forEach` without support for iteratee shorthands. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array|Object} Returns `collection`. */ var baseEach = createBaseEach(baseForOwn); /** * The base implementation of `_.forEachRight` without support for iteratee shorthands. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array|Object} Returns `collection`. */ var baseEachRight = createBaseEach(baseForOwnRight, true); /** * The base implementation of `_.every` without support for iteratee shorthands. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false` */ function baseEvery(collection, predicate) { var result = true; baseEach(collection, function(value, index, collection) { result = !!predicate(value, index, collection); return result; }); return result; } /** * The base implementation of methods like `_.max` and `_.min` which accepts a * `comparator` to determine the extremum value. * * @private * @param {Array} array The array to iterate over. * @param {Function} iteratee The iteratee invoked per iteration. * @param {Function} comparator The comparator used to compare values. * @returns {*} Returns the extremum value. */ function baseExtremum(array, iteratee, comparator) { var index = -1, length = array.length; while (++index < length) { var value = array[index], current = iteratee(value); if (current != null && (computed === undefined ? (current === current && !isSymbol(current)) : comparator(current, computed) )) { var computed = current, result = value; } } return result; } /** * The base implementation of `_.fill` without an iteratee call guard. * * @private * @param {Array} array The array to fill. * @param {*} value The value to fill `array` with. * @param {number} [start=0] The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns `array`. */ function baseFill(array, value, start, end) { var length = array.length; start = toInteger(start); if (start < 0) { start = -start > length ? 0 : (length + start); } end = (end === undefined || end > length) ? length : toInteger(end); if (end < 0) { end += length; } end = start > end ? 0 : toLength(end); while (start < end) { array[start++] = value; } return array; } /** * The base implementation of `_.filter` without support for iteratee shorthands. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {Array} Returns the new filtered array. */ function baseFilter(collection, predicate) { var result = []; baseEach(collection, function(value, index, collection) { if (predicate(value, index, collection)) { result.push(value); } }); return result; } /** * The base implementation of `_.flatten` with support for restricting flattening. * * @private * @param {Array} array The array to flatten. * @param {number} depth The maximum recursion depth. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. * @param {Array} [result=[]] The initial result value. * @returns {Array} Returns the new flattened array. */ function baseFlatten(array, depth, predicate, isStrict, result) { var index = -1, length = array.length; predicate || (predicate = isFlattenable); result || (result = []); while (++index < length) { var value = array[index]; if (depth > 0 && predicate(value)) { if (depth > 1) { // Recursively flatten arrays (susceptible to call stack limits). baseFlatten(value, depth - 1, predicate, isStrict, result); } else { arrayPush(result, value); } } else if (!isStrict) { result[result.length] = value; } } return result; } /** * The base implementation of `baseForOwn` which iterates over `object` * properties returned by `keysFunc` and invokes `iteratee` for each property. * Iteratee functions may exit iteration early by explicitly returning `false`. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseFor = createBaseFor(); /** * This function is like `baseFor` except that it iterates over properties * in the opposite order. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ var baseForRight = createBaseFor(true); /** * The base implementation of `_.forOwn` without support for iteratee shorthands. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. */ function baseForOwn(object, iteratee) { return object && baseFor(object, iteratee, keys); } /** * The base implementation of `_.forOwnRight` without support for iteratee shorthands. * * @private * @param {Object} object The object to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Object} Returns `object`. */ function baseForOwnRight(object, iteratee) { return object && baseForRight(object, iteratee, keys); } /** * The base implementation of `_.functions` which creates an array of * `object` function property names filtered from `props`. * * @private * @param {Object} object The object to inspect. * @param {Array} props The property names to filter. * @returns {Array} Returns the function names. */ function baseFunctions(object, props) { return arrayFilter(props, function(key) { return isFunction(object[key]); }); } /** * The base implementation of `_.get` without support for default values. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @returns {*} Returns the resolved value. */ function baseGet(object, path) { path = castPath(path, object); var index = 0, length = path.length; while (object != null && index < length) { object = object[toKey(path[index++])]; } return (index && index == length) ? object : undefined; } /** * The base implementation of `getAllKeys` and `getAllKeysIn` which uses * `keysFunc` and `symbolsFunc` to get the enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @param {Function} keysFunc The function to get the keys of `object`. * @param {Function} symbolsFunc The function to get the symbols of `object`. * @returns {Array} Returns the array of property names and symbols. */ function baseGetAllKeys(object, keysFunc, symbolsFunc) { var result = keysFunc(object); return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); } /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag(value) { if (value == null) { return value === undefined ? undefinedTag : nullTag; } return (symToStringTag && symToStringTag in Object(value)) ? getRawTag(value) : objectToString(value); } /** * The base implementation of `_.gt` which doesn't coerce arguments. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is greater than `other`, * else `false`. */ function baseGt(value, other) { return value > other; } /** * The base implementation of `_.has` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHas(object, key) { return object != null && hasOwnProperty.call(object, key); } /** * The base implementation of `_.hasIn` without support for deep paths. * * @private * @param {Object} [object] The object to query. * @param {Array|string} key The key to check. * @returns {boolean} Returns `true` if `key` exists, else `false`. */ function baseHasIn(object, key) { return object != null && key in Object(object); } /** * The base implementation of `_.inRange` which doesn't coerce arguments. * * @private * @param {number} number The number to check. * @param {number} start The start of the range. * @param {number} end The end of the range. * @returns {boolean} Returns `true` if `number` is in the range, else `false`. */ function baseInRange(number, start, end) { return number >= nativeMin(start, end) && number < nativeMax(start, end); } /** * The base implementation of methods like `_.intersection`, without support * for iteratee shorthands, that accepts an array of arrays to inspect. * * @private * @param {Array} arrays The arrays to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of shared values. */ function baseIntersection(arrays, iteratee, comparator) { var includes = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array(othLength), maxLength = Infinity, result = []; while (othIndex--) { var array = arrays[othIndex]; if (othIndex && iteratee) { array = arrayMap(array, baseUnary(iteratee)); } maxLength = nativeMin(array.length, maxLength); caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120)) ? new SetCache(othIndex && array) : undefined; } array = arrays[0]; var index = -1, seen = caches[0]; outer: while (++index < length && result.length < maxLength) { var value = array[index], computed = iteratee ? iteratee(value) : value; value = (comparator || value !== 0) ? value : 0; if (!(seen ? cacheHas(seen, computed) : includes(result, computed, comparator) )) { othIndex = othLength; while (--othIndex) { var cache = caches[othIndex]; if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed, comparator)) ) { continue outer; } } if (seen) { seen.push(computed); } result.push(value); } } return result; } /** * The base implementation of `_.invert` and `_.invertBy` which inverts * `object` with values transformed by `iteratee` and set by `setter`. * * @private * @param {Object} object The object to iterate over. * @param {Function} setter The function to set `accumulator` values. * @param {Function} iteratee The iteratee to transform values. * @param {Object} accumulator The initial inverted object. * @returns {Function} Returns `accumulator`. */ function baseInverter(object, setter, iteratee, accumulator) { baseForOwn(object, function(value, key, object) { setter(accumulator, iteratee(value), key, object); }); return accumulator; } /** * The base implementation of `_.invoke` without support for individual * method arguments. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the method to invoke. * @param {Array} args The arguments to invoke the method with. * @returns {*} Returns the result of the invoked method. */ function baseInvoke(object, path, args) { path = castPath(path, object); object = parent(object, path); var func = object == null ? object : object[toKey(last(path))]; return func == null ? undefined : apply(func, object, args); } /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } /** * The base implementation of `_.isArrayBuffer` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. */ function baseIsArrayBuffer(value) { return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; } /** * The base implementation of `_.isDate` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. */ function baseIsDate(value) { return isObjectLike(value) && baseGetTag(value) == dateTag; } /** * The base implementation of `_.isEqual` which supports partial comparisons * and tracks traversed objects. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {boolean} bitmask The bitmask flags. * 1 - Unordered comparison * 2 - Partial comparison * @param {Function} [customizer] The function to customize comparisons. * @param {Object} [stack] Tracks traversed `value` and `other` objects. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. */ function baseIsEqual(value, other, bitmask, customizer, stack) { if (value === other) { return true; } if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { return value !== value && other !== other; } return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); } /** * A specialized version of `baseIsEqual` for arrays and objects which performs * deep comparisons and tracks traversed objects enabling objects with circular * references to be compared. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} [stack] Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); objTag = objTag == argsTag ? objectTag : objTag; othTag = othTag == argsTag ? objectTag : othTag; var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; if (isSameTag && isBuffer(object)) { if (!isBuffer(other)) { return false; } objIsArr = true; objIsObj = false; } if (isSameTag && !objIsObj) { stack || (stack = new Stack); return (objIsArr || isTypedArray(object)) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); } if (!(bitmask & COMPARE_PARTIAL_FLAG)) { var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); if (objIsWrapped || othIsWrapped) { var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; stack || (stack = new Stack); return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); } } if (!isSameTag) { return false; } stack || (stack = new Stack); return equalObjects(object, other, bitmask, customizer, equalFunc, stack); } /** * The base implementation of `_.isMap` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. */ function baseIsMap(value) { return isObjectLike(value) && getTag(value) == mapTag; } /** * The base implementation of `_.isMatch` without support for iteratee shorthands. * * @private * @param {Object} object The object to inspect. * @param {Object} source The object of property values to match. * @param {Array} matchData The property names, values, and compare flags to match. * @param {Function} [customizer] The function to customize comparisons. * @returns {boolean} Returns `true` if `object` is a match, else `false`. */ function baseIsMatch(object, source, matchData, customizer) { var index = matchData.length, length = index, noCustomizer = !customizer; if (object == null) { return !length; } object = Object(object); while (index--) { var data = matchData[index]; if ((noCustomizer && data[2]) ? data[1] !== object[data[0]] : !(data[0] in object) ) { return false; } } while (++index < length) { data = matchData[index]; var key = data[0], objValue = object[key], srcValue = data[1]; if (noCustomizer && data[2]) { if (objValue === undefined && !(key in object)) { return false; } } else { var stack = new Stack; if (customizer) { var result = customizer(objValue, srcValue, key, object, source, stack); } if (!(result === undefined ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result )) { return false; } } } return true; } /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } /** * The base implementation of `_.isRegExp` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. */ function baseIsRegExp(value) { return isObjectLike(value) && baseGetTag(value) == regexpTag; } /** * The base implementation of `_.isSet` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. */ function baseIsSet(value) { return isObjectLike(value) && getTag(value) == setTag; } /** * The base implementation of `_.isTypedArray` without Node.js optimizations. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. */ function baseIsTypedArray(value) { return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; } /** * The base implementation of `_.iteratee`. * * @private * @param {*} [value=_.identity] The value to convert to an iteratee. * @returns {Function} Returns the iteratee. */ function baseIteratee(value) { // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. if (typeof value == 'function') { return value; } if (value == null) { return identity; } if (typeof value == 'object') { return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); } return property(value); } /** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeys(object) { if (!isPrototype(object)) { return nativeKeys(object); } var result = []; for (var key in Object(object)) { if (hasOwnProperty.call(object, key) && key != 'constructor') { result.push(key); } } return result; } /** * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function baseKeysIn(object) { if (!isObject(object)) { return nativeKeysIn(object); } var isProto = isPrototype(object), result = []; for (var key in object) { if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { result.push(key); } } return result; } /** * The base implementation of `_.lt` which doesn't coerce arguments. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is less than `other`, * else `false`. */ function baseLt(value, other) { return value < other; } /** * The base implementation of `_.map` without support for iteratee shorthands. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function baseMap(collection, iteratee) { var index = -1, result = isArrayLike(collection) ? Array(collection.length) : []; baseEach(collection, function(value, key, collection) { result[++index] = iteratee(value, key, collection); }); return result; } /** * The base implementation of `_.matches` which doesn't clone `source`. * * @private * @param {Object} source The object of property values to match. * @returns {Function} Returns the new spec function. */ function baseMatches(source) { var matchData = getMatchData(source); if (matchData.length == 1 && matchData[0][2]) { return matchesStrictComparable(matchData[0][0], matchData[0][1]); } return function(object) { return object === source || baseIsMatch(object, source, matchData); }; } /** * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. * * @private * @param {string} path The path of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. */ function baseMatchesProperty(path, srcValue) { if (isKey(path) && isStrictComparable(srcValue)) { return matchesStrictComparable(toKey(path), srcValue); } return function(object) { var objValue = get(object, path); return (objValue === undefined && objValue === srcValue) ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); }; } /** * The base implementation of `_.merge` without support for multiple sources. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {number} srcIndex The index of `source`. * @param {Function} [customizer] The function to customize merged values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMerge(object, source, srcIndex, customizer, stack) { if (object === source) { return; } baseFor(source, function(srcValue, key) { stack || (stack = new Stack); if (isObject(srcValue)) { baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); } else { var newValue = customizer ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack) : undefined; if (newValue === undefined) { newValue = srcValue; } assignMergeValue(object, key, newValue); } }, keysIn); } /** * A specialized version of `baseMerge` for arrays and objects which performs * deep merges and tracks traversed objects enabling objects with circular * references to be merged. * * @private * @param {Object} object The destination object. * @param {Object} source The source object. * @param {string} key The key of the value to merge. * @param {number} srcIndex The index of `source`. * @param {Function} mergeFunc The function to merge values. * @param {Function} [customizer] The function to customize assigned values. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. */ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); if (stacked) { assignMergeValue(object, key, stacked); return; } var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined; var isCommon = newValue === undefined; if (isCommon) { var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); newValue = srcValue; if (isArr || isBuff || isTyped) { if (isArray(objValue)) { newValue = objValue; } else if (isArrayLikeObject(objValue)) { newValue = copyArray(objValue); } else if (isBuff) { isCommon = false; newValue = cloneBuffer(srcValue, true); } else if (isTyped) { isCommon = false; newValue = cloneTypedArray(srcValue, true); } else { newValue = []; } } else if (isPlainObject(srcValue) || isArguments(srcValue)) { newValue = objValue; if (isArguments(objValue)) { newValue = toPlainObject(objValue); } else if (!isObject(objValue) || isFunction(objValue)) { newValue = initCloneObject(srcValue); } } else { isCommon = false; } } if (isCommon) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, newValue); mergeFunc(newValue, srcValue, srcIndex, customizer, stack); stack['delete'](srcValue); } assignMergeValue(object, key, newValue); } /** * The base implementation of `_.nth` which doesn't coerce arguments. * * @private * @param {Array} array The array to query. * @param {number} n The index of the element to return. * @returns {*} Returns the nth element of `array`. */ function baseNth(array, n) { var length = array.length; if (!length) { return; } n += n < 0 ? length : 0; return isIndex(n, length) ? array[n] : undefined; } /** * The base implementation of `_.orderBy` without param guards. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by. * @param {string[]} orders The sort orders of `iteratees`. * @returns {Array} Returns the new sorted array. */ function baseOrderBy(collection, iteratees, orders) { if (iteratees.length) { iteratees = arrayMap(iteratees, function(iteratee) { if (isArray(iteratee)) { return function(value) { return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee); } } return iteratee; }); } else { iteratees = [identity]; } var index = -1; iteratees = arrayMap(iteratees, baseUnary(getIteratee())); var result = baseMap(collection, function(value, key, collection) { var criteria = arrayMap(iteratees, function(iteratee) { return iteratee(value); }); return { 'criteria': criteria, 'index': ++index, 'value': value }; }); return baseSortBy(result, function(object, other) { return compareMultiple(object, other, orders); }); } /** * The base implementation of `_.pick` without support for individual * property identifiers. * * @private * @param {Object} object The source object. * @param {string[]} paths The property paths to pick. * @returns {Object} Returns the new object. */ function basePick(object, paths) { return basePickBy(object, paths, function(value, path) { return hasIn(object, path); }); } /** * The base implementation of `_.pickBy` without support for iteratee shorthands. * * @private * @param {Object} object The source object. * @param {string[]} paths The property paths to pick. * @param {Function} predicate The function invoked per property. * @returns {Object} Returns the new object. */ function basePickBy(object, paths, predicate) { var index = -1, length = paths.length, result = {}; while (++index < length) { var path = paths[index], value = baseGet(object, path); if (predicate(value, path)) { baseSet(result, castPath(path, object), value); } } return result; } /** * A specialized version of `baseProperty` which supports deep paths. * * @private * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. */ function basePropertyDeep(path) { return function(object) { return baseGet(object, path); }; } /** * The base implementation of `_.pullAllBy` without support for iteratee * shorthands. * * @private * @param {Array} array The array to modify. * @param {Array} values The values to remove. * @param {Function} [iteratee] The iteratee invoked per element. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns `array`. */ function basePullAll(array, values, iteratee, comparator) { var indexOf = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values.length, seen = array; if (array === values) { values = copyArray(values); } if (iteratee) { seen = arrayMap(array, baseUnary(iteratee)); } while (++index < length) { var fromIndex = 0, value = values[index], computed = iteratee ? iteratee(value) : value; while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) { if (seen !== array) { splice.call(seen, fromIndex, 1); } splice.call(array, fromIndex, 1); } } return array; } /** * The base implementation of `_.pullAt` without support for individual * indexes or capturing the removed elements. * * @private * @param {Array} array The array to modify. * @param {number[]} indexes The indexes of elements to remove. * @returns {Array} Returns `array`. */ function basePullAt(array, indexes) { var length = array ? indexes.length : 0, lastIndex = length - 1; while (length--) { var index = indexes[length]; if (length == lastIndex || index !== previous) { var previous = index; if (isIndex(index)) { splice.call(array, index, 1); } else { baseUnset(array, index); } } } return array; } /** * The base implementation of `_.random` without support for returning * floating-point numbers. * * @private * @param {number} lower The lower bound. * @param {number} upper The upper bound. * @returns {number} Returns the random number. */ function baseRandom(lower, upper) { return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); } /** * The base implementation of `_.range` and `_.rangeRight` which doesn't * coerce arguments. * * @private * @param {number} start The start of the range. * @param {number} end The end of the range. * @param {number} step The value to increment or decrement by. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Array} Returns the range of numbers. */ function baseRange(start, end, step, fromRight) { var index = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result = Array(length); while (length--) { result[fromRight ? length : ++index] = start; start += step; } return result; } /** * The base implementation of `_.repeat` which doesn't coerce arguments. * * @private * @param {string} string The string to repeat. * @param {number} n The number of times to repeat the string. * @returns {string} Returns the repeated string. */ function baseRepeat(string, n) { var result = ''; if (!string || n < 1 || n > MAX_SAFE_INTEGER) { return result; } // Leverage the exponentiation by squaring algorithm for a faster repeat. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details. do { if (n % 2) { result += string; } n = nativeFloor(n / 2); if (n) { string += string; } } while (n); return result; } /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. */ function baseRest(func, start) { return setToString(overRest(func, start, identity), func + ''); } /** * The base implementation of `_.sample`. * * @private * @param {Array|Object} collection The collection to sample. * @returns {*} Returns the random element. */ function baseSample(collection) { return arraySample(values(collection)); } /** * The base implementation of `_.sampleSize` without param guards. * * @private * @param {Array|Object} collection The collection to sample. * @param {number} n The number of elements to sample. * @returns {Array} Returns the random elements. */ function baseSampleSize(collection, n) { var array = values(collection); return shuffleSelf(array, baseClamp(n, 0, array.length)); } /** * The base implementation of `_.set`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {*} value The value to set. * @param {Function} [customizer] The function to customize path creation. * @returns {Object} Returns `object`. */ function baseSet(object, path, value, customizer) { if (!isObject(object)) { return object; } path = castPath(path, object); var index = -1, length = path.length, lastIndex = length - 1, nested = object; while (nested != null && ++index < length) { var key = toKey(path[index]), newValue = value; if (key === '__proto__' || key === 'constructor' || key === 'prototype') { return object; } if (index != lastIndex) { var objValue = nested[key]; newValue = customizer ? customizer(objValue, key, nested) : undefined; if (newValue === undefined) { newValue = isObject(objValue) ? objValue : (isIndex(path[index + 1]) ? [] : {}); } } assignValue(nested, key, newValue); nested = nested[key]; } return object; } /** * The base implementation of `setData` without support for hot loop shorting. * * @private * @param {Function} func The function to associate metadata with. * @param {*} data The metadata. * @returns {Function} Returns `func`. */ var baseSetData = !metaMap ? identity : function(func, data) { metaMap.set(func, data); return func; }; /** * The base implementation of `setToString` without support for hot loop shorting. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var baseSetToString = !defineProperty ? identity : function(func, string) { return defineProperty(func, 'toString', { 'configurable': true, 'enumerable': false, 'value': constant(string), 'writable': true }); }; /** * The base implementation of `_.shuffle`. * * @private * @param {Array|Object} collection The collection to shuffle. * @returns {Array} Returns the new shuffled array. */ function baseShuffle(collection) { return shuffleSelf(values(collection)); } /** * The base implementation of `_.slice` without an iteratee call guard. * * @private * @param {Array} array The array to slice. * @param {number} [start=0] The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns the slice of `array`. */ function baseSlice(array, start, end) { var index = -1, length = array.length; if (start < 0) { start = -start > length ? 0 : (length + start); } end = end > length ? length : end; if (end < 0) { end += length; } length = start > end ? 0 : ((end - start) >>> 0); start >>>= 0; var result = Array(length); while (++index < length) { result[index] = array[index + start]; } return result; } /** * The base implementation of `_.some` without support for iteratee shorthands. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. */ function baseSome(collection, predicate) { var result; baseEach(collection, function(value, index, collection) { result = predicate(value, index, collection); return !result; }); return !!result; } /** * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which * performs a binary search of `array` to determine the index at which `value` * should be inserted into `array` in order to maintain its sort order. * * @private * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. * @param {boolean} [retHighest] Specify returning the highest qualified index. * @returns {number} Returns the index at which `value` should be inserted * into `array`. */ function baseSortedIndex(array, value, retHighest) { var low = 0, high = array == null ? low : array.length; if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) { while (low < high) { var mid = (low + high) >>> 1, computed = array[mid]; if (computed !== null && !isSymbol(computed) && (retHighest ? (computed <= value) : (computed < value))) { low = mid + 1; } else { high = mid; } } return high; } return baseSortedIndexBy(array, value, identity, retHighest); } /** * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy` * which invokes `iteratee` for `value` and each element of `array` to compute * their sort ranking. The iteratee is invoked with one argument; (value). * * @private * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. * @param {Function} iteratee The iteratee invoked per element. * @param {boolean} [retHighest] Specify returning the highest qualified index. * @returns {number} Returns the index at which `value` should be inserted * into `array`. */ function baseSortedIndexBy(array, value, iteratee, retHighest) { var low = 0, high = array == null ? 0 : array.length; if (high === 0) { return 0; } value = iteratee(value); var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined; while (low < high) { var mid = nativeFloor((low + high) / 2), computed = iteratee(array[mid]), othIsDefined = computed !== undefined, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed); if (valIsNaN) { var setLow = retHighest || othIsReflexive; } else if (valIsUndefined) { setLow = othIsReflexive && (retHighest || othIsDefined); } else if (valIsNull) { setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull); } else if (valIsSymbol) { setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol); } else if (othIsNull || othIsSymbol) { setLow = false; } else { setLow = retHighest ? (computed <= value) : (computed < value); } if (setLow) { low = mid + 1; } else { high = mid; } } return nativeMin(high, MAX_ARRAY_INDEX); } /** * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without * support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. */ function baseSortedUniq(array, iteratee) { var index = -1, length = array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index], computed = iteratee ? iteratee(value) : value; if (!index || !eq(computed, seen)) { var seen = computed; result[resIndex++] = value === 0 ? 0 : value; } } return result; } /** * The base implementation of `_.toNumber` which doesn't ensure correct * conversions of binary, hexadecimal, or octal string values. * * @private * @param {*} value The value to process. * @returns {number} Returns the number. */ function baseToNumber(value) { if (typeof value == 'number') { return value; } if (isSymbol(value)) { return NAN; } return +value; } /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } /** * The base implementation of `_.uniqBy` without support for iteratee shorthands. * * @private * @param {Array} array The array to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new duplicate free array. */ function baseUniq(array, iteratee, comparator) { var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result; if (comparator) { isCommon = false; includes = arrayIncludesWith; } else if (length >= LARGE_ARRAY_SIZE) { var set = iteratee ? null : createSet(array); if (set) { return setToArray(set); } isCommon = false; includes = cacheHas; seen = new SetCache; } else { seen = iteratee ? [] : result; } outer: while (++index < length) { var value = array[index], computed = iteratee ? iteratee(value) : value; value = (comparator || value !== 0) ? value : 0; if (isCommon && computed === computed) { var seenIndex = seen.length; while (seenIndex--) { if (seen[seenIndex] === computed) { continue outer; } } if (iteratee) { seen.push(computed); } result.push(value); } else if (!includes(seen, computed, comparator)) { if (seen !== result) { seen.push(computed); } result.push(value); } } return result; } /** * The base implementation of `_.unset`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The property path to unset. * @returns {boolean} Returns `true` if the property is deleted, else `false`. */ function baseUnset(object, path) { path = castPath(path, object); object = parent(object, path); return object == null || delete object[toKey(last(path))]; } /** * The base implementation of `_.update`. * * @private * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to update. * @param {Function} updater The function to produce the updated value. * @param {Function} [customizer] The function to customize path creation. * @returns {Object} Returns `object`. */ function baseUpdate(object, path, updater, customizer) { return baseSet(object, path, updater(baseGet(object, path)), customizer); } /** * The base implementation of methods like `_.dropWhile` and `_.takeWhile` * without support for iteratee shorthands. * * @private * @param {Array} array The array to query. * @param {Function} predicate The function invoked per iteration. * @param {boolean} [isDrop] Specify dropping elements instead of taking them. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Array} Returns the slice of `array`. */ function baseWhile(array, predicate, isDrop, fromRight) { var length = array.length, index = fromRight ? length : -1; while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {} return isDrop ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index)); } /** * The base implementation of `wrapperValue` which returns the result of * performing a sequence of actions on the unwrapped `value`, where each * successive action is supplied the return value of the previous. * * @private * @param {*} value The unwrapped value. * @param {Array} actions Actions to perform to resolve the unwrapped value. * @returns {*} Returns the resolved value. */ function baseWrapperValue(value, actions) { var result = value; if (result instanceof LazyWrapper) { result = result.value(); } return arrayReduce(actions, function(result, action) { return action.func.apply(action.thisArg, arrayPush([result], action.args)); }, result); } /** * The base implementation of methods like `_.xor`, without support for * iteratee shorthands, that accepts an array of arrays to inspect. * * @private * @param {Array} arrays The arrays to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of values. */ function baseXor(arrays, iteratee, comparator) { var length = arrays.length; if (length < 2) { return length ? baseUniq(arrays[0]) : []; } var index = -1, result = Array(length); while (++index < length) { var array = arrays[index], othIndex = -1; while (++othIndex < length) { if (othIndex != index) { result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator); } } } return baseUniq(baseFlatten(result, 1), iteratee, comparator); } /** * This base implementation of `_.zipObject` which assigns values using `assignFunc`. * * @private * @param {Array} props The property identifiers. * @param {Array} values The property values. * @param {Function} assignFunc The function to assign values. * @returns {Object} Returns the new object. */ function baseZipObject(props, values, assignFunc) { var index = -1, length = props.length, valsLength = values.length, result = {}; while (++index < length) { var value = index < valsLength ? values[index] : undefined; assignFunc(result, props[index], value); } return result; } /** * Casts `value` to an empty array if it's not an array like object. * * @private * @param {*} value The value to inspect. * @returns {Array|Object} Returns the cast array-like object. */ function castArrayLikeObject(value) { return isArrayLikeObject(value) ? value : []; } /** * Casts `value` to `identity` if it's not a function. * * @private * @param {*} value The value to inspect. * @returns {Function} Returns cast function. */ function castFunction(value) { return typeof value == 'function' ? value : identity; } /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } /** * A `baseRest` alias which can be replaced with `identity` by module * replacement plugins. * * @private * @type {Function} * @param {Function} func The function to apply a rest parameter to. * @returns {Function} Returns the new function. */ var castRest = baseRest; /** * Casts `array` to a slice if it's needed. * * @private * @param {Array} array The array to inspect. * @param {number} start The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns the cast slice. */ function castSlice(array, start, end) { var length = array.length; end = end === undefined ? length : end; return (!start && end >= length) ? array : baseSlice(array, start, end); } /** * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout). * * @private * @param {number|Object} id The timer id or timeout object of the timer to clear. */ var clearTimeout = ctxClearTimeout || function(id) { return root.clearTimeout(id); }; /** * Creates a clone of `buffer`. * * @private * @param {Buffer} buffer The buffer to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Buffer} Returns the cloned buffer. */ function cloneBuffer(buffer, isDeep) { if (isDeep) { return buffer.slice(); } var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); buffer.copy(result); return result; } /** * Creates a clone of `arrayBuffer`. * * @private * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ function cloneArrayBuffer(arrayBuffer) { var result = new arrayBuffer.constructor(arrayBuffer.byteLength); new Uint8Array(result).set(new Uint8Array(arrayBuffer)); return result; } /** * Creates a clone of `dataView`. * * @private * @param {Object} dataView The data view to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned data view. */ function cloneDataView(dataView, isDeep) { var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); } /** * Creates a clone of `regexp`. * * @private * @param {Object} regexp The regexp to clone. * @returns {Object} Returns the cloned regexp. */ function cloneRegExp(regexp) { var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); result.lastIndex = regexp.lastIndex; return result; } /** * Creates a clone of the `symbol` object. * * @private * @param {Object} symbol The symbol object to clone. * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; } /** * Creates a clone of `typedArray`. * * @private * @param {Object} typedArray The typed array to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); } /** * Compares values to sort them in ascending order. * * @private * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {number} Returns the sort order indicator for `value`. */ function compareAscending(value, other) { if (value !== other) { var valIsDefined = value !== undefined, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); var othIsDefined = other !== undefined, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other); if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) || (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) || (valIsNull && othIsDefined && othIsReflexive) || (!valIsDefined && othIsReflexive) || !valIsReflexive) { return 1; } if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) || (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) || (othIsNull && valIsDefined && valIsReflexive) || (!othIsDefined && valIsReflexive) || !othIsReflexive) { return -1; } } return 0; } /** * Used by `_.orderBy` to compare multiple properties of a value to another * and stable sort them. * * If `orders` is unspecified, all values are sorted in ascending order. Otherwise, * specify an order of "desc" for descending or "asc" for ascending sort order * of corresponding values. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {boolean[]|string[]} orders The order to sort by for each property. * @returns {number} Returns the sort order indicator for `object`. */ function compareMultiple(object, other, orders) { var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; while (++index < length) { var result = compareAscending(objCriteria[index], othCriteria[index]); if (result) { if (index >= ordersLength) { return result; } var order = orders[index]; return result * (order == 'desc' ? -1 : 1); } } // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications // that causes it, under certain circumstances, to provide the same value for // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247 // for more details. // // This also ensures a stable sort in V8 and other engines. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details. return object.index - other.index; } /** * Creates an array that is the composition of partially applied arguments, * placeholders, and provided arguments into a single array of arguments. * * @private * @param {Array} args The provided arguments. * @param {Array} partials The arguments to prepend to those provided. * @param {Array} holders The `partials` placeholder indexes. * @params {boolean} [isCurried] Specify composing for a curried function. * @returns {Array} Returns the new array of composed arguments. */ function composeArgs(args, partials, holders, isCurried) { var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result = Array(leftLength + rangeLength), isUncurried = !isCurried; while (++leftIndex < leftLength) { result[leftIndex] = partials[leftIndex]; } while (++argsIndex < holdersLength) { if (isUncurried || argsIndex < argsLength) { result[holders[argsIndex]] = args[argsIndex]; } } while (rangeLength--) { result[leftIndex++] = args[argsIndex++]; } return result; } /** * This function is like `composeArgs` except that the arguments composition * is tailored for `_.partialRight`. * * @private * @param {Array} args The provided arguments. * @param {Array} partials The arguments to append to those provided. * @param {Array} holders The `partials` placeholder indexes. * @params {boolean} [isCurried] Specify composing for a curried function. * @returns {Array} Returns the new array of composed arguments. */ function composeArgsRight(args, partials, holders, isCurried) { var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result = Array(rangeLength + rightLength), isUncurried = !isCurried; while (++argsIndex < rangeLength) { result[argsIndex] = args[argsIndex]; } var offset = argsIndex; while (++rightIndex < rightLength) { result[offset + rightIndex] = partials[rightIndex]; } while (++holdersIndex < holdersLength) { if (isUncurried || argsIndex < argsLength) { result[offset + holders[holdersIndex]] = args[argsIndex++]; } } return result; } /** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function copyArray(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++index < length) { array[index] = source[index]; } return array; } /** * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. * @param {Array} props The property identifiers to copy. * @param {Object} [object={}] The object to copy properties to. * @param {Function} [customizer] The function to customize copied values. * @returns {Object} Returns `object`. */ function copyObject(source, props, object, customizer) { var isNew = !object; object || (object = {}); var index = -1, length = props.length; while (++index < length) { var key = props[index]; var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined; if (newValue === undefined) { newValue = source[key]; } if (isNew) { baseAssignValue(object, key, newValue); } else { assignValue(object, key, newValue); } } return object; } /** * Copies own symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbols(source, object) { return copyObject(source, getSymbols(source), object); } /** * Copies own and inherited symbols of `source` to `object`. * * @private * @param {Object} source The object to copy symbols from. * @param {Object} [object={}] The object to copy symbols to. * @returns {Object} Returns `object`. */ function copySymbolsIn(source, object) { return copyObject(source, getSymbolsIn(source), object); } /** * Creates a function like `_.groupBy`. * * @private * @param {Function} setter The function to set accumulator values. * @param {Function} [initializer] The accumulator object initializer. * @returns {Function} Returns the new aggregator function. */ function createAggregator(setter, initializer) { return function(collection, iteratee) { var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; return func(collection, setter, getIteratee(iteratee, 2), accumulator); }; } /** * Creates a function like `_.assign`. * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return baseRest(function(object, sources) { var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; customizer = (assigner.length > 3 && typeof customizer == 'function') ? (length--, customizer) : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; } object = Object(object); while (++index < length) { var source = sources[index]; if (source) { assigner(object, source, index, customizer); } } return object; }); } /** * Creates a `baseEach` or `baseEachRight` function. * * @private * @param {Function} eachFunc The function to iterate over a collection. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseEach(eachFunc, fromRight) { return function(collection, iteratee) { if (collection == null) { return collection; } if (!isArrayLike(collection)) { return eachFunc(collection, iteratee); } var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection); while ((fromRight ? index-- : ++index < length)) { if (iteratee(iterable[index], index, iterable) === false) { break; } } return collection; }; } /** * Creates a base function for methods like `_.forIn` and `_.forOwn`. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new base function. */ function createBaseFor(fromRight) { return function(object, iteratee, keysFunc) { var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length; while (length--) { var key = props[fromRight ? length : ++index]; if (iteratee(iterable[key], key, iterable) === false) { break; } } return object; }; } /** * Creates a function that wraps `func` to invoke it with the optional `this` * binding of `thisArg`. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} [thisArg] The `this` binding of `func`. * @returns {Function} Returns the new wrapped function. */ function createBind(func, bitmask, thisArg) { var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); function wrapper() { var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; return fn.apply(isBind ? thisArg : this, arguments); } return wrapper; } /** * Creates a function like `_.lowerFirst`. * * @private * @param {string} methodName The name of the `String` case method to use. * @returns {Function} Returns the new case function. */ function createCaseFirst(methodName) { return function(string) { string = toString(string); var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined; var chr = strSymbols ? strSymbols[0] : string.charAt(0); var trailing = strSymbols ? castSlice(strSymbols, 1).join('') : string.slice(1); return chr[methodName]() + trailing; }; } /** * Creates a function like `_.camelCase`. * * @private * @param {Function} callback The function to combine each word. * @returns {Function} Returns the new compounder function. */ function createCompounder(callback) { return function(string) { return arrayReduce(words(deburr(string).replace(reApos, '')), callback, ''); }; } /** * Creates a function that produces an instance of `Ctor` regardless of * whether it was invoked as part of a `new` expression or by `call` or `apply`. * * @private * @param {Function} Ctor The constructor to wrap. * @returns {Function} Returns the new wrapped function. */ function createCtor(Ctor) { return function() { // Use a `switch` statement to work with class constructors. See // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist // for more details. var args = arguments; switch (args.length) { case 0: return new Ctor; case 1: return new Ctor(args[0]); case 2: return new Ctor(args[0], args[1]); case 3: return new Ctor(args[0], args[1], args[2]); case 4: return new Ctor(args[0], args[1], args[2], args[3]); case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]); case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); } var thisBinding = baseCreate(Ctor.prototype), result = Ctor.apply(thisBinding, args); // Mimic the constructor's `return` behavior. // See https://es5.github.io/#x13.2.2 for more details. return isObject(result) ? result : thisBinding; }; } /** * Creates a function that wraps `func` to enable currying. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {number} arity The arity of `func`. * @returns {Function} Returns the new wrapped function. */ function createCurry(func, bitmask, arity) { var Ctor = createCtor(func); function wrapper() { var length = arguments.length, args = Array(length), index = length, placeholder = getHolder(wrapper); while (index--) { args[index] = arguments[index]; } var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder) ? [] : replaceHolders(args, placeholder); length -= holders.length; if (length < arity) { return createRecurry( func, bitmask, createHybrid, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; return apply(fn, this, args); } return wrapper; } /** * Creates a `_.find` or `_.findLast` function. * * @private * @param {Function} findIndexFunc The function to find the collection index. * @returns {Function} Returns the new find function. */ function createFind(findIndexFunc) { return function(collection, predicate, fromIndex) { var iterable = Object(collection); if (!isArrayLike(collection)) { var iteratee = getIteratee(predicate, 3); collection = keys(collection); predicate = function(key) { return iteratee(iterable[key], key, iterable); }; } var index = findIndexFunc(collection, predicate, fromIndex); return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; }; } /** * Creates a `_.flow` or `_.flowRight` function. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new flow function. */ function createFlow(fromRight) { return flatRest(function(funcs) { var length = funcs.length, index = length, prereq = LodashWrapper.prototype.thru; if (fromRight) { funcs.reverse(); } while (index--) { var func = funcs[index]; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } if (prereq && !wrapper && getFuncName(func) == 'wrapper') { var wrapper = new LodashWrapper([], true); } } index = wrapper ? index : length; while (++index < length) { func = funcs[index]; var funcName = getFuncName(func), data = funcName == 'wrapper' ? getData(func) : undefined; if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1 ) { wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); } else { wrapper = (func.length == 1 && isLaziable(func)) ? wrapper[funcName]() : wrapper.thru(func); } } return function() { var args = arguments, value = args[0]; if (wrapper && args.length == 1 && isArray(value)) { return wrapper.plant(value).value(); } var index = 0, result = length ? funcs[index].apply(this, args) : value; while (++index < length) { result = funcs[index].call(this, result); } return result; }; }); } /** * Creates a function that wraps `func` to invoke it with optional `this` * binding of `thisArg`, partial application, and currying. * * @private * @param {Function|string} func The function or method name to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to prepend to those provided to * the new function. * @param {Array} [holders] The `partials` placeholder indexes. * @param {Array} [partialsRight] The arguments to append to those provided * to the new function. * @param {Array} [holdersRight] The `partialsRight` placeholder indexes. * @param {Array} [argPos] The argument positions of the new function. * @param {number} [ary] The arity cap of `func`. * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) { var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined : createCtor(func); function wrapper() { var length = arguments.length, args = Array(length), index = length; while (index--) { args[index] = arguments[index]; } if (isCurried) { var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder); } if (partials) { args = composeArgs(args, partials, holders, isCurried); } if (partialsRight) { args = composeArgsRight(args, partialsRight, holdersRight, isCurried); } length -= holdersCount; if (isCurried && length < arity) { var newHolders = replaceHolders(args, placeholder); return createRecurry( func, bitmask, createHybrid, wrapper.placeholder, thisArg, args, newHolders, argPos, ary, arity - length ); } var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func; length = args.length; if (argPos) { args = reorder(args, argPos); } else if (isFlip && length > 1) { args.reverse(); } if (isAry && ary < length) { args.length = ary; } if (this && this !== root && this instanceof wrapper) { fn = Ctor || createCtor(fn); } return fn.apply(thisBinding, args); } return wrapper; } /** * Creates a function like `_.invertBy`. * * @private * @param {Function} setter The function to set accumulator values. * @param {Function} toIteratee The function to resolve iteratees. * @returns {Function} Returns the new inverter function. */ function createInverter(setter, toIteratee) { return function(object, iteratee) { return baseInverter(object, setter, toIteratee(iteratee), {}); }; } /** * Creates a function that performs a mathematical operation on two values. * * @private * @param {Function} operator The function to perform the operation. * @param {number} [defaultValue] The value used for `undefined` arguments. * @returns {Function} Returns the new mathematical operation function. */ function createMathOperation(operator, defaultValue) { return function(value, other) { var result; if (value === undefined && other === undefined) { return defaultValue; } if (value !== undefined) { result = value; } if (other !== undefined) { if (result === undefined) { return other; } if (typeof value == 'string' || typeof other == 'string') { value = baseToString(value); other = baseToString(other); } else { value = baseToNumber(value); other = baseToNumber(other); } result = operator(value, other); } return result; }; } /** * Creates a function like `_.over`. * * @private * @param {Function} arrayFunc The function to iterate over iteratees. * @returns {Function} Returns the new over function. */ function createOver(arrayFunc) { return flatRest(function(iteratees) { iteratees = arrayMap(iteratees, baseUnary(getIteratee())); return baseRest(function(args) { var thisArg = this; return arrayFunc(iteratees, function(iteratee) { return apply(iteratee, thisArg, args); }); }); }); } /** * Creates the padding for `string` based on `length`. The `chars` string * is truncated if the number of characters exceeds `length`. * * @private * @param {number} length The padding length. * @param {string} [chars=' '] The string used as padding. * @returns {string} Returns the padding for `string`. */ function createPadding(length, chars) { chars = chars === undefined ? ' ' : baseToString(chars); var charsLength = chars.length; if (charsLength < 2) { return charsLength ? baseRepeat(chars, length) : chars; } var result = baseRepeat(chars, nativeCeil(length / stringSize(chars))); return hasUnicode(chars) ? castSlice(stringToArray(result), 0, length).join('') : result.slice(0, length); } /** * Creates a function that wraps `func` to invoke it with the `this` binding * of `thisArg` and `partials` prepended to the arguments it receives. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {*} thisArg The `this` binding of `func`. * @param {Array} partials The arguments to prepend to those provided to * the new function. * @returns {Function} Returns the new wrapped function. */ function createPartial(func, bitmask, thisArg, partials) { var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); function wrapper() { var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), fn = (this && this !== root && this instanceof wrapper) ? Ctor : func; while (++leftIndex < leftLength) { args[leftIndex] = partials[leftIndex]; } while (argsLength--) { args[leftIndex++] = arguments[++argsIndex]; } return apply(fn, isBind ? thisArg : this, args); } return wrapper; } /** * Creates a `_.range` or `_.rangeRight` function. * * @private * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {Function} Returns the new range function. */ function createRange(fromRight) { return function(start, end, step) { if (step && typeof step != 'number' && isIterateeCall(start, end, step)) { end = step = undefined; } // Ensure the sign of `-0` is preserved. start = toFinite(start); if (end === undefined) { end = start; start = 0; } else { end = toFinite(end); } step = step === undefined ? (start < end ? 1 : -1) : toFinite(step); return baseRange(start, end, step, fromRight); }; } /** * Creates a function that performs a relational operation on two values. * * @private * @param {Function} operator The function to perform the operation. * @returns {Function} Returns the new relational operation function. */ function createRelationalOperation(operator) { return function(value, other) { if (!(typeof value == 'string' && typeof other == 'string')) { value = toNumber(value); other = toNumber(other); } return operator(value, other); }; } /** * Creates a function that wraps `func` to continue currying. * * @private * @param {Function} func The function to wrap. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @param {Function} wrapFunc The function to create the `func` wrapper. * @param {*} placeholder The placeholder value. * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to prepend to those provided to * the new function. * @param {Array} [holders] The `partials` placeholder indexes. * @param {Array} [argPos] The argument positions of the new function. * @param {number} [ary] The arity cap of `func`. * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) { var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined, newHoldersRight = isCurry ? undefined : holders, newPartials = isCurry ? partials : undefined, newPartialsRight = isCurry ? undefined : partials; bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG); bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); } var newData = [ func, bitmask, thisArg, newPartials, newHolders, newPartialsRight, newHoldersRight, argPos, ary, arity ]; var result = wrapFunc.apply(undefined, newData); if (isLaziable(func)) { setData(result, newData); } result.placeholder = placeholder; return setWrapToString(result, func, bitmask); } /** * Creates a function like `_.round`. * * @private * @param {string} methodName The name of the `Math` method to use when rounding. * @returns {Function} Returns the new round function. */ function createRound(methodName) { var func = Math[methodName]; return function(number, precision) { number = toNumber(number); precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); if (precision && nativeIsFinite(number)) { // Shift with exponential notation to avoid floating-point issues. // See [MDN](https://mdn.io/round#Examples) for more details. var pair = (toString(number) + 'e').split('e'), value = func(pair[0] + 'e' + (+pair[1] + precision)); pair = (toString(value) + 'e').split('e'); return +(pair[0] + 'e' + (+pair[1] - precision)); } return func(number); }; } /** * Creates a set object of `values`. * * @private * @param {Array} values The values to add to the set. * @returns {Object} Returns the new set. */ var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { return new Set(values); }; /** * Creates a `_.toPairs` or `_.toPairsIn` function. * * @private * @param {Function} keysFunc The function to get the keys of a given object. * @returns {Function} Returns the new pairs function. */ function createToPairs(keysFunc) { return function(object) { var tag = getTag(object); if (tag == mapTag) { return mapToArray(object); } if (tag == setTag) { return setToPairs(object); } return baseToPairs(object, keysFunc(object)); }; } /** * Creates a function that either curries or invokes `func` with optional * `this` binding and partially applied arguments. * * @private * @param {Function|string} func The function or method name to wrap. * @param {number} bitmask The bitmask flags. * 1 - `_.bind` * 2 - `_.bindKey` * 4 - `_.curry` or `_.curryRight` of a bound function * 8 - `_.curry` * 16 - `_.curryRight` * 32 - `_.partial` * 64 - `_.partialRight` * 128 - `_.rearg` * 256 - `_.ary` * 512 - `_.flip` * @param {*} [thisArg] The `this` binding of `func`. * @param {Array} [partials] The arguments to be partially applied. * @param {Array} [holders] The `partials` placeholder indexes. * @param {Array} [argPos] The argument positions of the new function. * @param {number} [ary] The arity cap of `func`. * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new wrapped function. */ function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; if (!isBindKey && typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } var length = partials ? partials.length : 0; if (!length) { bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); partials = holders = undefined; } ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0); arity = arity === undefined ? arity : toInteger(arity); length -= holders ? holders.length : 0; if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { var partialsRight = partials, holdersRight = holders; partials = holders = undefined; } var data = isBindKey ? undefined : getData(func); var newData = [ func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity ]; if (data) { mergeData(newData, data); } func = newData[0]; bitmask = newData[1]; thisArg = newData[2]; partials = newData[3]; holders = newData[4]; arity = newData[9] = newData[9] === undefined ? (isBindKey ? 0 : func.length) : nativeMax(newData[9] - length, 0); if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); } if (!bitmask || bitmask == WRAP_BIND_FLAG) { var result = createBind(func, bitmask, thisArg); } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { result = createCurry(func, bitmask, arity); } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { result = createPartial(func, bitmask, thisArg, partials); } else { result = createHybrid.apply(undefined, newData); } var setter = data ? baseSetData : setData; return setWrapToString(setter(result, newData), func, bitmask); } /** * Used by `_.defaults` to customize its `_.assignIn` use to assign properties * of source objects to the destination object for all destination properties * that resolve to `undefined`. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to assign. * @param {Object} object The parent object of `objValue`. * @returns {*} Returns the value to assign. */ function customDefaultsAssignIn(objValue, srcValue, key, object) { if (objValue === undefined || (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) { return srcValue; } return objValue; } /** * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source * objects into destination objects that are passed thru. * * @private * @param {*} objValue The destination value. * @param {*} srcValue The source value. * @param {string} key The key of the property to merge. * @param {Object} object The parent object of `objValue`. * @param {Object} source The parent object of `srcValue`. * @param {Object} [stack] Tracks traversed source values and their merged * counterparts. * @returns {*} Returns the value to assign. */ function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { if (isObject(objValue) && isObject(srcValue)) { // Recursively merge objects and arrays (susceptible to call stack limits). stack.set(srcValue, objValue); baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack); stack['delete'](srcValue); } return objValue; } /** * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain * objects. * * @private * @param {*} value The value to inspect. * @param {string} key The key of the property to inspect. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`. */ function customOmitClone(value) { return isPlainObject(value) ? undefined : value; } /** * A specialized version of `baseIsEqualDeep` for arrays with support for * partial deep comparisons. * * @private * @param {Array} array The array to compare. * @param {Array} other The other array to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `array` and `other` objects. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. */ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; if (arrLength != othLength && !(isPartial && othLength > arrLength)) { return false; } // Check that cyclic values are equal. var arrStacked = stack.get(array); var othStacked = stack.get(other); if (arrStacked && othStacked) { return arrStacked == other && othStacked == array; } var index = -1, result = true, seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; stack.set(array, other); stack.set(other, array); // Ignore non-index properties. while (++index < arrLength) { var arrValue = array[index], othValue = other[index]; if (customizer) { var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack); } if (compared !== undefined) { if (compared) { continue; } result = false; break; } // Recursively compare arrays (susceptible to call stack limits). if (seen) { if (!arraySome(other, function(othValue, othIndex) { if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { return seen.push(othIndex); } })) { result = false; break; } } else if (!( arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack) )) { result = false; break; } } stack['delete'](array); stack['delete'](other); return result; } /** * A specialized version of `baseIsEqualDeep` for comparing objects of * the same `toStringTag`. * * **Note:** This function only supports comparing values with tags of * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {string} tag The `toStringTag` of the objects to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { switch (tag) { case dataViewTag: if ((object.byteLength != other.byteLength) || (object.byteOffset != other.byteOffset)) { return false; } object = object.buffer; other = other.buffer; case arrayBufferTag: if ((object.byteLength != other.byteLength) || !equalFunc(new Uint8Array(object), new Uint8Array(other))) { return false; } return true; case boolTag: case dateTag: case numberTag: // Coerce booleans to `1` or `0` and dates to milliseconds. // Invalid dates are coerced to `NaN`. return eq(+object, +other); case errorTag: return object.name == other.name && object.message == other.message; case regexpTag: case stringTag: // Coerce regexes to strings and treat strings, primitives and objects, // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring // for more details. return object == (other + ''); case mapTag: var convert = mapToArray; case setTag: var isPartial = bitmask & COMPARE_PARTIAL_FLAG; convert || (convert = setToArray); if (object.size != other.size && !isPartial) { return false; } // Assume cyclic values are equal. var stacked = stack.get(object); if (stacked) { return stacked == other; } bitmask |= COMPARE_UNORDERED_FLAG; // Recursively compare objects (susceptible to call stack limits). stack.set(object, other); var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); stack['delete'](object); return result; case symbolTag: if (symbolValueOf) { return symbolValueOf.call(object) == symbolValueOf.call(other); } } return false; } /** * A specialized version of `baseIsEqualDeep` for objects with support for * partial deep comparisons. * * @private * @param {Object} object The object to compare. * @param {Object} other The other object to compare. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. * @param {Function} customizer The function to customize comparisons. * @param {Function} equalFunc The function to determine equivalents of values. * @param {Object} stack Tracks traversed `object` and `other` objects. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. */ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; if (objLength != othLength && !isPartial) { return false; } var index = objLength; while (index--) { var key = objProps[index]; if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { return false; } } // Check that cyclic values are equal. var objStacked = stack.get(object); var othStacked = stack.get(other); if (objStacked && othStacked) { return objStacked == other && othStacked == object; } var result = true; stack.set(object, other); stack.set(other, object); var skipCtor = isPartial; while (++index < objLength) { key = objProps[index]; var objValue = object[key], othValue = other[key]; if (customizer) { var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); } // Recursively compare objects (susceptible to call stack limits). if (!(compared === undefined ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) : compared )) { result = false; break; } skipCtor || (skipCtor = key == 'constructor'); } if (result && !skipCtor) { var objCtor = object.constructor, othCtor = other.constructor; // Non `Object` object instances with different constructors are not equal. if (objCtor != othCtor && ('constructor' in object && 'constructor' in other) && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) { result = false; } } stack['delete'](object); stack['delete'](other); return result; } /** * A specialized version of `baseRest` which flattens the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @returns {Function} Returns the new function. */ function flatRest(func) { return setToString(overRest(func, undefined, flatten), func + ''); } /** * Creates an array of own enumerable property names and symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeys(object) { return baseGetAllKeys(object, keys, getSymbols); } /** * Creates an array of own and inherited enumerable property names and * symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names and symbols. */ function getAllKeysIn(object) { return baseGetAllKeys(object, keysIn, getSymbolsIn); } /** * Gets metadata for `func`. * * @private * @param {Function} func The function to query. * @returns {*} Returns the metadata for `func`. */ var getData = !metaMap ? noop : function(func) { return metaMap.get(func); }; /** * Gets the name of `func`. * * @private * @param {Function} func The function to query. * @returns {string} Returns the function name. */ function getFuncName(func) { var result = (func.name + ''), array = realNames[result], length = hasOwnProperty.call(realNames, result) ? array.length : 0; while (length--) { var data = array[length], otherFunc = data.func; if (otherFunc == null || otherFunc == func) { return data.name; } } return result; } /** * Gets the argument placeholder value for `func`. * * @private * @param {Function} func The function to inspect. * @returns {*} Returns the placeholder value. */ function getHolder(func) { var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func; return object.placeholder; } /** * Gets the appropriate "iteratee" function. If `_.iteratee` is customized, * this function returns the custom method, otherwise it returns `baseIteratee`. * If arguments are provided, the chosen function is invoked with them and * its result is returned. * * @private * @param {*} [value] The value to convert to an iteratee. * @param {number} [arity] The arity of the created iteratee. * @returns {Function} Returns the chosen function or its result. */ function getIteratee() { var result = lodash.iteratee || iteratee; result = result === iteratee ? baseIteratee : result; return arguments.length ? result(arguments[0], arguments[1]) : result; } /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } /** * Gets the property names, values, and compare flags of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the match data of `object`. */ function getMatchData(object) { var result = keys(object), length = result.length; while (length--) { var key = result[length], value = object[key]; result[length] = [key, value, isStrictComparable(value)]; } return result; } /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag(value) { var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; try { value[symToStringTag] = undefined; var unmasked = true; } catch (e) {} var result = nativeObjectToString.call(value); if (unmasked) { if (isOwn) { value[symToStringTag] = tag; } else { delete value[symToStringTag]; } } return result; } /** * Creates an array of the own enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbols = !nativeGetSymbols ? stubArray : function(object) { if (object == null) { return []; } object = Object(object); return arrayFilter(nativeGetSymbols(object), function(symbol) { return propertyIsEnumerable.call(object, symbol); }); }; /** * Creates an array of the own and inherited enumerable symbols of `object`. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of symbols. */ var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { var result = []; while (object) { arrayPush(result, getSymbols(object)); object = getPrototype(object); } return result; }; /** * Gets the `toStringTag` of `value`. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || (Map && getTag(new Map) != mapTag) || (Promise && getTag(Promise.resolve()) != promiseTag) || (Set && getTag(new Set) != setTag) || (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : undefined, ctorString = Ctor ? toSource(Ctor) : ''; if (ctorString) { switch (ctorString) { case dataViewCtorString: return dataViewTag; case mapCtorString: return mapTag; case promiseCtorString: return promiseTag; case setCtorString: return setTag; case weakMapCtorString: return weakMapTag; } } return result; }; } /** * Gets the view, applying any `transforms` to the `start` and `end` positions. * * @private * @param {number} start The start of the view. * @param {number} end The end of the view. * @param {Array} transforms The transformations to apply to the view. * @returns {Object} Returns an object containing the `start` and `end` * positions of the view. */ function getView(start, end, transforms) { var index = -1, length = transforms.length; while (++index < length) { var data = transforms[index], size = data.size; switch (data.type) { case 'drop': start += size; break; case 'dropRight': end -= size; break; case 'take': end = nativeMin(end, start + size); break; case 'takeRight': start = nativeMax(start, end - size); break; } } return { 'start': start, 'end': end }; } /** * Extracts wrapper details from the `source` body comment. * * @private * @param {string} source The source to inspect. * @returns {Array} Returns the wrapper details. */ function getWrapDetails(source) { var match = source.match(reWrapDetails); return match ? match[1].split(reSplitDetails) : []; } /** * Checks if `path` exists on `object`. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @param {Function} hasFunc The function to check properties. * @returns {boolean} Returns `true` if `path` exists, else `false`. */ function hasPath(object, path, hasFunc) { path = castPath(path, object); var index = -1, length = path.length, result = false; while (++index < length) { var key = toKey(path[index]); if (!(result = object != null && hasFunc(object, key))) { break; } object = object[key]; } if (result || ++index != length) { return result; } length = object == null ? 0 : object.length; return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); } /** * Initializes an array clone. * * @private * @param {Array} array The array to clone. * @returns {Array} Returns the initialized clone. */ function initCloneArray(array) { var length = array.length, result = new array.constructor(length); // Add properties assigned by `RegExp#exec`. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { result.index = array.index; result.input = array.input; } return result; } /** * Initializes an object clone. * * @private * @param {Object} object The object to clone. * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { return (typeof object.constructor == 'function' && !isPrototype(object)) ? baseCreate(getPrototype(object)) : {}; } /** * Initializes an object clone based on its `toStringTag`. * * **Note:** This function only supports cloning values with tags of * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. * * @private * @param {Object} object The object to clone. * @param {string} tag The `toStringTag` of the object to clone. * @param {boolean} [isDeep] Specify a deep clone. * @returns {Object} Returns the initialized clone. */ function initCloneByTag(object, tag, isDeep) { var Ctor = object.constructor; switch (tag) { case arrayBufferTag: return cloneArrayBuffer(object); case boolTag: case dateTag: return new Ctor(+object); case dataViewTag: return cloneDataView(object, isDeep); case float32Tag: case float64Tag: case int8Tag: case int16Tag: case int32Tag: case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: return cloneTypedArray(object, isDeep); case mapTag: return new Ctor; case numberTag: case stringTag: return new Ctor(object); case regexpTag: return cloneRegExp(object); case setTag: return new Ctor; case symbolTag: return cloneSymbol(object); } } /** * Inserts wrapper `details` in a comment at the top of the `source` body. * * @private * @param {string} source The source to modify. * @returns {Array} details The details to insert. * @returns {string} Returns the modified source. */ function insertWrapDetails(source, details) { var length = details.length; if (!length) { return source; } var lastIndex = length - 1; details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex]; details = details.join(length > 2 ? ', ' : ' '); return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n'); } /** * Checks if `value` is a flattenable `arguments` object or array. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. */ function isFlattenable(value) { return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); } /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } /** * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. * @param {*} index The potential iteratee index or key argument. * @param {*} object The potential iteratee object argument. * @returns {boolean} Returns `true` if the arguments are from an iteratee call, * else `false`. */ function isIterateeCall(value, index, object) { if (!isObject(object)) { return false; } var type = typeof index; if (type == 'number' ? (isArrayLike(object) && isIndex(index, object.length)) : (type == 'string' && index in object) ) { return eq(object[index], value); } return false; } /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } /** * Checks if `func` has a lazy counterpart. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` has a lazy counterpart, * else `false`. */ function isLaziable(func) { var funcName = getFuncName(func), other = lodash[funcName]; if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) { return false; } if (func === other) { return true; } var data = getData(other); return !!data && func === data[0]; } /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } /** * Checks if `func` is capable of being masked. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `func` is maskable, else `false`. */ var isMaskable = coreJsData ? isFunction : stubFalse; /** * Checks if `value` is likely a prototype object. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ function isPrototype(value) { var Ctor = value && value.constructor, proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; return value === proto; } /** * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` if suitable for strict * equality comparisons, else `false`. */ function isStrictComparable(value) { return value === value && !isObject(value); } /** * A specialized version of `matchesProperty` for source values suitable * for strict equality comparisons, i.e. `===`. * * @private * @param {string} key The key of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. */ function matchesStrictComparable(key, srcValue) { return function(object) { if (object == null) { return false; } return object[key] === srcValue && (srcValue !== undefined || (key in Object(object))); }; } /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } /** * Merges the function metadata of `source` into `data`. * * Merging metadata reduces the number of wrappers used to invoke a function. * This is possible because methods like `_.bind`, `_.curry`, and `_.partial` * may be applied regardless of execution order. Methods like `_.ary` and * `_.rearg` modify function arguments, making the order in which they are * executed important, preventing the merging of metadata. However, we make * an exception for a safe combined case where curried functions have `_.ary` * and or `_.rearg` applied. * * @private * @param {Array} data The destination metadata. * @param {Array} source The source metadata. * @returns {Array} Returns `data`. */ function mergeData(data, source) { var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); var isCombo = ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) || ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) || ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG)); // Exit early if metadata can't be merged. if (!(isCommon || isCombo)) { return data; } // Use source `thisArg` if available. if (srcBitmask & WRAP_BIND_FLAG) { data[2] = source[2]; // Set when currying a bound function. newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; } // Compose partial arguments. var value = source[3]; if (value) { var partials = data[3]; data[3] = partials ? composeArgs(partials, value, source[4]) : value; data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; } // Compose partial right arguments. value = source[5]; if (value) { partials = data[5]; data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; } // Use source `argPos` if available. value = source[7]; if (value) { data[7] = value; } // Use source `ary` if it's smaller. if (srcBitmask & WRAP_ARY_FLAG) { data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); } // Use source `arity` if one is not provided. if (data[9] == null) { data[9] = source[9]; } // Use source `func` and merge bitmasks. data[0] = source[0]; data[1] = newBitmask; return data; } /** * This function is like * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * except that it includes inherited enumerable properties. * * @private * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ function nativeKeysIn(object) { var result = []; if (object != null) { for (var key in Object(object)) { result.push(key); } } return result; } /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } /** * A specialized version of `baseRest` which transforms the rest array. * * @private * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @param {Function} transform The rest array transform. * @returns {Function} Returns the new function. */ function overRest(func, start, transform) { start = nativeMax(start === undefined ? (func.length - 1) : start, 0); return function() { var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length); while (++index < length) { array[index] = args[start + index]; } index = -1; var otherArgs = Array(start + 1); while (++index < start) { otherArgs[index] = args[index]; } otherArgs[start] = transform(array); return apply(func, this, otherArgs); }; } /** * Gets the parent value at `path` of `object`. * * @private * @param {Object} object The object to query. * @param {Array} path The path to get the parent value of. * @returns {*} Returns the parent value. */ function parent(object, path) { return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); } /** * Reorder `array` according to the specified indexes where the element at * the first index is assigned as the first element, the element at * the second index is assigned as the second element, and so on. * * @private * @param {Array} array The array to reorder. * @param {Array} indexes The arranged array indexes. * @returns {Array} Returns `array`. */ function reorder(array, indexes) { var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array); while (length--) { var index = indexes[length]; array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined; } return array; } /** * Gets the value at `key`, unless `key` is "__proto__" or "constructor". * * @private * @param {Object} object The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function safeGet(object, key) { if (key === 'constructor' && typeof object[key] === 'function') { return; } if (key == '__proto__') { return; } return object[key]; } /** * Sets metadata for `func`. * * **Note:** If this function becomes hot, i.e. is invoked a lot in a short * period of time, it will trip its breaker and transition to an identity * function to avoid garbage collection pauses in V8. See * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070) * for more details. * * @private * @param {Function} func The function to associate metadata with. * @param {*} data The metadata. * @returns {Function} Returns `func`. */ var setData = shortOut(baseSetData); /** * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout). * * @private * @param {Function} func The function to delay. * @param {number} wait The number of milliseconds to delay invocation. * @returns {number|Object} Returns the timer id or timeout object. */ var setTimeout = ctxSetTimeout || function(func, wait) { return root.setTimeout(func, wait); }; /** * Sets the `toString` method of `func` to return `string`. * * @private * @param {Function} func The function to modify. * @param {Function} string The `toString` result. * @returns {Function} Returns `func`. */ var setToString = shortOut(baseSetToString); /** * Sets the `toString` method of `wrapper` to mimic the source of `reference` * with wrapper details in a comment at the top of the source body. * * @private * @param {Function} wrapper The function to modify. * @param {Function} reference The reference function. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @returns {Function} Returns `wrapper`. */ function setWrapToString(wrapper, reference, bitmask) { var source = (reference + ''); return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); } /** * Creates a function that'll short out and invoke `identity` instead * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` * milliseconds. * * @private * @param {Function} func The function to restrict. * @returns {Function} Returns the new shortable function. */ function shortOut(func) { var count = 0, lastCalled = 0; return function() { var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); lastCalled = stamp; if (remaining > 0) { if (++count >= HOT_COUNT) { return arguments[0]; } } else { count = 0; } return func.apply(undefined, arguments); }; } /** * A specialized version of `_.shuffle` which mutates and sets the size of `array`. * * @private * @param {Array} array The array to shuffle. * @param {number} [size=array.length] The size of `array`. * @returns {Array} Returns `array`. */ function shuffleSelf(array, size) { var index = -1, length = array.length, lastIndex = length - 1; size = size === undefined ? length : size; while (++index < size) { var rand = baseRandom(index, lastIndex), value = array[rand]; array[rand] = array[index]; array[index] = value; } array.length = size; return array; } /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } /** * Updates wrapper `details` based on `bitmask` flags. * * @private * @returns {Array} details The details to modify. * @param {number} bitmask The bitmask flags. See `createWrap` for more details. * @returns {Array} Returns `details`. */ function updateWrapDetails(details, bitmask) { arrayEach(wrapFlags, function(pair) { var value = '_.' + pair[0]; if ((bitmask & pair[1]) && !arrayIncludes(details, value)) { details.push(value); } }); return details.sort(); } /** * Creates a clone of `wrapper`. * * @private * @param {Object} wrapper The wrapper to clone. * @returns {Object} Returns the cloned wrapper. */ function wrapperClone(wrapper) { if (wrapper instanceof LazyWrapper) { return wrapper.clone(); } var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); result.__actions__ = copyArray(wrapper.__actions__); result.__index__ = wrapper.__index__; result.__values__ = wrapper.__values__; return result; } /*------------------------------------------------------------------------*/ /** * Creates an array of elements split into groups the length of `size`. * If `array` can't be split evenly, the final chunk will be the remaining * elements. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to process. * @param {number} [size=1] The length of each chunk * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Array} Returns the new array of chunks. * @example * * _.chunk(['a', 'b', 'c', 'd'], 2); * // => [['a', 'b'], ['c', 'd']] * * _.chunk(['a', 'b', 'c', 'd'], 3); * // => [['a', 'b', 'c'], ['d']] */ function chunk(array, size, guard) { if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) { size = 1; } else { size = nativeMax(toInteger(size), 0); } var length = array == null ? 0 : array.length; if (!length || size < 1) { return []; } var index = 0, resIndex = 0, result = Array(nativeCeil(length / size)); while (index < length) { result[resIndex++] = baseSlice(array, index, (index += size)); } return result; } /** * Creates an array with all falsey values removed. The values `false`, `null`, * `0`, `""`, `undefined`, and `NaN` are falsey. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to compact. * @returns {Array} Returns the new array of filtered values. * @example * * _.compact([0, 1, false, 2, '', 3]); * // => [1, 2, 3] */ function compact(array) { var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (value) { result[resIndex++] = value; } } return result; } /** * Creates a new array concatenating `array` with any additional arrays * and/or values. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to concatenate. * @param {...*} [values] The values to concatenate. * @returns {Array} Returns the new concatenated array. * @example * * var array = [1]; * var other = _.concat(array, 2, [3], [[4]]); * * console.log(other); * // => [1, 2, 3, [4]] * * console.log(array); * // => [1] */ function concat() { var length = arguments.length; if (!length) { return []; } var args = Array(length - 1), array = arguments[0], index = length; while (index--) { args[index - 1] = arguments[index]; } return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); } /** * Creates an array of `array` values not included in the other given arrays * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. The order and references of result values are * determined by the first array. * * **Note:** Unlike `_.pullAll`, this method returns a new array. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @param {...Array} [values] The values to exclude. * @returns {Array} Returns the new array of filtered values. * @see _.without, _.xor * @example * * _.difference([2, 1], [2, 3]); * // => [1] */ var difference = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : []; }); /** * This method is like `_.difference` except that it accepts `iteratee` which * is invoked for each element of `array` and `values` to generate the criterion * by which they're compared. The order and references of result values are * determined by the first array. The iteratee is invoked with one argument: * (value). * * **Note:** Unlike `_.pullAllBy`, this method returns a new array. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {...Array} [values] The values to exclude. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); * // => [1.2] * * // The `_.property` iteratee shorthand. * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x'); * // => [{ 'x': 2 }] */ var differenceBy = baseRest(function(array, values) { var iteratee = last(values); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)) : []; }); /** * This method is like `_.difference` except that it accepts `comparator` * which is invoked to compare elements of `array` to `values`. The order and * references of result values are determined by the first array. The comparator * is invoked with two arguments: (arrVal, othVal). * * **Note:** Unlike `_.pullAllWith`, this method returns a new array. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {...Array} [values] The values to exclude. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; * * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); * // => [{ 'x': 2, 'y': 1 }] */ var differenceWith = baseRest(function(array, values) { var comparator = last(values); if (isArrayLikeObject(comparator)) { comparator = undefined; } return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator) : []; }); /** * Creates a slice of `array` with `n` elements dropped from the beginning. * * @static * @memberOf _ * @since 0.5.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to drop. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Array} Returns the slice of `array`. * @example * * _.drop([1, 2, 3]); * // => [2, 3] * * _.drop([1, 2, 3], 2); * // => [3] * * _.drop([1, 2, 3], 5); * // => [] * * _.drop([1, 2, 3], 0); * // => [1, 2, 3] */ function drop(array, n, guard) { var length = array == null ? 0 : array.length; if (!length) { return []; } n = (guard || n === undefined) ? 1 : toInteger(n); return baseSlice(array, n < 0 ? 0 : n, length); } /** * Creates a slice of `array` with `n` elements dropped from the end. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to drop. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Array} Returns the slice of `array`. * @example * * _.dropRight([1, 2, 3]); * // => [1, 2] * * _.dropRight([1, 2, 3], 2); * // => [1] * * _.dropRight([1, 2, 3], 5); * // => [] * * _.dropRight([1, 2, 3], 0); * // => [1, 2, 3] */ function dropRight(array, n, guard) { var length = array == null ? 0 : array.length; if (!length) { return []; } n = (guard || n === undefined) ? 1 : toInteger(n); n = length - n; return baseSlice(array, 0, n < 0 ? 0 : n); } /** * Creates a slice of `array` excluding elements dropped from the end. * Elements are dropped until `predicate` returns falsey. The predicate is * invoked with three arguments: (value, index, array). * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * * var users = [ * { 'user': 'barney', 'active': true }, * { 'user': 'fred', 'active': false }, * { 'user': 'pebbles', 'active': false } * ]; * * _.dropRightWhile(users, function(o) { return !o.active; }); * // => objects for ['barney'] * * // The `_.matches` iteratee shorthand. * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false }); * // => objects for ['barney', 'fred'] * * // The `_.matchesProperty` iteratee shorthand. * _.dropRightWhile(users, ['active', false]); * // => objects for ['barney'] * * // The `_.property` iteratee shorthand. * _.dropRightWhile(users, 'active'); * // => objects for ['barney', 'fred', 'pebbles'] */ function dropRightWhile(array, predicate) { return (array && array.length) ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; } /** * Creates a slice of `array` excluding elements dropped from the beginning. * Elements are dropped until `predicate` returns falsey. The predicate is * invoked with three arguments: (value, index, array). * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * * var users = [ * { 'user': 'barney', 'active': false }, * { 'user': 'fred', 'active': false }, * { 'user': 'pebbles', 'active': true } * ]; * * _.dropWhile(users, function(o) { return !o.active; }); * // => objects for ['pebbles'] * * // The `_.matches` iteratee shorthand. * _.dropWhile(users, { 'user': 'barney', 'active': false }); * // => objects for ['fred', 'pebbles'] * * // The `_.matchesProperty` iteratee shorthand. * _.dropWhile(users, ['active', false]); * // => objects for ['pebbles'] * * // The `_.property` iteratee shorthand. * _.dropWhile(users, 'active'); * // => objects for ['barney', 'fred', 'pebbles'] */ function dropWhile(array, predicate) { return (array && array.length) ? baseWhile(array, getIteratee(predicate, 3), true) : []; } /** * Fills elements of `array` with `value` from `start` up to, but not * including, `end`. * * **Note:** This method mutates `array`. * * @static * @memberOf _ * @since 3.2.0 * @category Array * @param {Array} array The array to fill. * @param {*} value The value to fill `array` with. * @param {number} [start=0] The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns `array`. * @example * * var array = [1, 2, 3]; * * _.fill(array, 'a'); * console.log(array); * // => ['a', 'a', 'a'] * * _.fill(Array(3), 2); * // => [2, 2, 2] * * _.fill([4, 6, 8, 10], '*', 1, 3); * // => [4, '*', '*', 10] */ function fill(array, value, start, end) { var length = array == null ? 0 : array.length; if (!length) { return []; } if (start && typeof start != 'number' && isIterateeCall(array, value, start)) { start = 0; end = length; } return baseFill(array, value, start, end); } /** * This method is like `_.find` except that it returns the index of the first * element `predicate` returns truthy for instead of the element itself. * * @static * @memberOf _ * @since 1.1.0 * @category Array * @param {Array} array The array to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. * @example * * var users = [ * { 'user': 'barney', 'active': false }, * { 'user': 'fred', 'active': false }, * { 'user': 'pebbles', 'active': true } * ]; * * _.findIndex(users, function(o) { return o.user == 'barney'; }); * // => 0 * * // The `_.matches` iteratee shorthand. * _.findIndex(users, { 'user': 'fred', 'active': false }); * // => 1 * * // The `_.matchesProperty` iteratee shorthand. * _.findIndex(users, ['active', false]); * // => 0 * * // The `_.property` iteratee shorthand. * _.findIndex(users, 'active'); * // => 2 */ function findIndex(array, predicate, fromIndex) { var length = array == null ? 0 : array.length; if (!length) { return -1; } var index = fromIndex == null ? 0 : toInteger(fromIndex); if (index < 0) { index = nativeMax(length + index, 0); } return baseFindIndex(array, getIteratee(predicate, 3), index); } /** * This method is like `_.findIndex` except that it iterates over elements * of `collection` from right to left. * * @static * @memberOf _ * @since 2.0.0 * @category Array * @param {Array} array The array to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=array.length-1] The index to search from. * @returns {number} Returns the index of the found element, else `-1`. * @example * * var users = [ * { 'user': 'barney', 'active': true }, * { 'user': 'fred', 'active': false }, * { 'user': 'pebbles', 'active': false } * ]; * * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; }); * // => 2 * * // The `_.matches` iteratee shorthand. * _.findLastIndex(users, { 'user': 'barney', 'active': true }); * // => 0 * * // The `_.matchesProperty` iteratee shorthand. * _.findLastIndex(users, ['active', false]); * // => 2 * * // The `_.property` iteratee shorthand. * _.findLastIndex(users, 'active'); * // => 0 */ function findLastIndex(array, predicate, fromIndex) { var length = array == null ? 0 : array.length; if (!length) { return -1; } var index = length - 1; if (fromIndex !== undefined) { index = toInteger(fromIndex); index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); } return baseFindIndex(array, getIteratee(predicate, 3), index, true); } /** * Flattens `array` a single level deep. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * * _.flatten([1, [2, [3, [4]], 5]]); * // => [1, 2, [3, [4]], 5] */ function flatten(array) { var length = array == null ? 0 : array.length; return length ? baseFlatten(array, 1) : []; } /** * Recursively flattens `array`. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to flatten. * @returns {Array} Returns the new flattened array. * @example * * _.flattenDeep([1, [2, [3, [4]], 5]]); * // => [1, 2, 3, 4, 5] */ function flattenDeep(array) { var length = array == null ? 0 : array.length; return length ? baseFlatten(array, INFINITY) : []; } /** * Recursively flatten `array` up to `depth` times. * * @static * @memberOf _ * @since 4.4.0 * @category Array * @param {Array} array The array to flatten. * @param {number} [depth=1] The maximum recursion depth. * @returns {Array} Returns the new flattened array. * @example * * var array = [1, [2, [3, [4]], 5]]; * * _.flattenDepth(array, 1); * // => [1, 2, [3, [4]], 5] * * _.flattenDepth(array, 2); * // => [1, 2, 3, [4], 5] */ function flattenDepth(array, depth) { var length = array == null ? 0 : array.length; if (!length) { return []; } depth = depth === undefined ? 1 : toInteger(depth); return baseFlatten(array, depth); } /** * The inverse of `_.toPairs`; this method returns an object composed * from key-value `pairs`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} pairs The key-value pairs. * @returns {Object} Returns the new object. * @example * * _.fromPairs([['a', 1], ['b', 2]]); * // => { 'a': 1, 'b': 2 } */ function fromPairs(pairs) { var index = -1, length = pairs == null ? 0 : pairs.length, result = {}; while (++index < length) { var pair = pairs[index]; result[pair[0]] = pair[1]; } return result; } /** * Gets the first element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @alias first * @category Array * @param {Array} array The array to query. * @returns {*} Returns the first element of `array`. * @example * * _.head([1, 2, 3]); * // => 1 * * _.head([]); * // => undefined */ function head(array) { return (array && array.length) ? array[0] : undefined; } /** * Gets the index at which the first occurrence of `value` is found in `array` * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. If `fromIndex` is negative, it's used as the * offset from the end of `array`. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. * @example * * _.indexOf([1, 2, 1, 2], 2); * // => 1 * * // Search from the `fromIndex`. * _.indexOf([1, 2, 1, 2], 2, 2); * // => 3 */ function indexOf(array, value, fromIndex) { var length = array == null ? 0 : array.length; if (!length) { return -1; } var index = fromIndex == null ? 0 : toInteger(fromIndex); if (index < 0) { index = nativeMax(length + index, 0); } return baseIndexOf(array, value, index); } /** * Gets all but the last element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {Array} Returns the slice of `array`. * @example * * _.initial([1, 2, 3]); * // => [1, 2] */ function initial(array) { var length = array == null ? 0 : array.length; return length ? baseSlice(array, 0, -1) : []; } /** * Creates an array of unique values that are included in all given arrays * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. The order and references of result values are * determined by the first array. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @returns {Array} Returns the new array of intersecting values. * @example * * _.intersection([2, 1], [2, 3]); * // => [2] */ var intersection = baseRest(function(arrays) { var mapped = arrayMap(arrays, castArrayLikeObject); return (mapped.length && mapped[0] === arrays[0]) ? baseIntersection(mapped) : []; }); /** * This method is like `_.intersection` except that it accepts `iteratee` * which is invoked for each element of each `arrays` to generate the criterion * by which they're compared. The order and references of result values are * determined by the first array. The iteratee is invoked with one argument: * (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of intersecting values. * @example * * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); * // => [2.1] * * // The `_.property` iteratee shorthand. * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }] */ var intersectionBy = baseRest(function(arrays) { var iteratee = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); if (iteratee === last(mapped)) { iteratee = undefined; } else { mapped.pop(); } return (mapped.length && mapped[0] === arrays[0]) ? baseIntersection(mapped, getIteratee(iteratee, 2)) : []; }); /** * This method is like `_.intersection` except that it accepts `comparator` * which is invoked to compare elements of `arrays`. The order and references * of result values are determined by the first array. The comparator is * invoked with two arguments: (arrVal, othVal). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of intersecting values. * @example * * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; * * _.intersectionWith(objects, others, _.isEqual); * // => [{ 'x': 1, 'y': 2 }] */ var intersectionWith = baseRest(function(arrays) { var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); comparator = typeof comparator == 'function' ? comparator : undefined; if (comparator) { mapped.pop(); } return (mapped.length && mapped[0] === arrays[0]) ? baseIntersection(mapped, undefined, comparator) : []; }); /** * Converts all elements in `array` into a string separated by `separator`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to convert. * @param {string} [separator=','] The element separator. * @returns {string} Returns the joined string. * @example * * _.join(['a', 'b', 'c'], '~'); * // => 'a~b~c' */ function join(array, separator) { return array == null ? '' : nativeJoin.call(array, separator); } /** * Gets the last element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {*} Returns the last element of `array`. * @example * * _.last([1, 2, 3]); * // => 3 */ function last(array) { var length = array == null ? 0 : array.length; return length ? array[length - 1] : undefined; } /** * This method is like `_.indexOf` except that it iterates over elements of * `array` from right to left. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=array.length-1] The index to search from. * @returns {number} Returns the index of the matched value, else `-1`. * @example * * _.lastIndexOf([1, 2, 1, 2], 2); * // => 3 * * // Search from the `fromIndex`. * _.lastIndexOf([1, 2, 1, 2], 2, 2); * // => 1 */ function lastIndexOf(array, value, fromIndex) { var length = array == null ? 0 : array.length; if (!length) { return -1; } var index = length; if (fromIndex !== undefined) { index = toInteger(fromIndex); index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1); } return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true); } /** * Gets the element at index `n` of `array`. If `n` is negative, the nth * element from the end is returned. * * @static * @memberOf _ * @since 4.11.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=0] The index of the element to return. * @returns {*} Returns the nth element of `array`. * @example * * var array = ['a', 'b', 'c', 'd']; * * _.nth(array, 1); * // => 'b' * * _.nth(array, -2); * // => 'c'; */ function nth(array, n) { return (array && array.length) ? baseNth(array, toInteger(n)) : undefined; } /** * Removes all given values from `array` using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove` * to remove elements from an array by predicate. * * @static * @memberOf _ * @since 2.0.0 * @category Array * @param {Array} array The array to modify. * @param {...*} [values] The values to remove. * @returns {Array} Returns `array`. * @example * * var array = ['a', 'b', 'c', 'a', 'b', 'c']; * * _.pull(array, 'a', 'c'); * console.log(array); * // => ['b', 'b'] */ var pull = baseRest(pullAll); /** * This method is like `_.pull` except that it accepts an array of values to remove. * * **Note:** Unlike `_.difference`, this method mutates `array`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to modify. * @param {Array} values The values to remove. * @returns {Array} Returns `array`. * @example * * var array = ['a', 'b', 'c', 'a', 'b', 'c']; * * _.pullAll(array, ['a', 'c']); * console.log(array); * // => ['b', 'b'] */ function pullAll(array, values) { return (array && array.length && values && values.length) ? basePullAll(array, values) : array; } /** * This method is like `_.pullAll` except that it accepts `iteratee` which is * invoked for each element of `array` and `values` to generate the criterion * by which they're compared. The iteratee is invoked with one argument: (value). * * **Note:** Unlike `_.differenceBy`, this method mutates `array`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to modify. * @param {Array} values The values to remove. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns `array`. * @example * * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; * * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); * console.log(array); * // => [{ 'x': 2 }] */ function pullAllBy(array, values, iteratee) { return (array && array.length && values && values.length) ? basePullAll(array, values, getIteratee(iteratee, 2)) : array; } /** * This method is like `_.pullAll` except that it accepts `comparator` which * is invoked to compare elements of `array` to `values`. The comparator is * invoked with two arguments: (arrVal, othVal). * * **Note:** Unlike `_.differenceWith`, this method mutates `array`. * * @static * @memberOf _ * @since 4.6.0 * @category Array * @param {Array} array The array to modify. * @param {Array} values The values to remove. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns `array`. * @example * * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }]; * * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual); * console.log(array); * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }] */ function pullAllWith(array, values, comparator) { return (array && array.length && values && values.length) ? basePullAll(array, values, undefined, comparator) : array; } /** * Removes elements from `array` corresponding to `indexes` and returns an * array of removed elements. * * **Note:** Unlike `_.at`, this method mutates `array`. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to modify. * @param {...(number|number[])} [indexes] The indexes of elements to remove. * @returns {Array} Returns the new array of removed elements. * @example * * var array = ['a', 'b', 'c', 'd']; * var pulled = _.pullAt(array, [1, 3]); * * console.log(array); * // => ['a', 'c'] * * console.log(pulled); * // => ['b', 'd'] */ var pullAt = flatRest(function(array, indexes) { var length = array == null ? 0 : array.length, result = baseAt(array, indexes); basePullAt(array, arrayMap(indexes, function(index) { return isIndex(index, length) ? +index : index; }).sort(compareAscending)); return result; }); /** * Removes all elements from `array` that `predicate` returns truthy for * and returns an array of the removed elements. The predicate is invoked * with three arguments: (value, index, array). * * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull` * to pull elements from an array by value. * * @static * @memberOf _ * @since 2.0.0 * @category Array * @param {Array} array The array to modify. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new array of removed elements. * @example * * var array = [1, 2, 3, 4]; * var evens = _.remove(array, function(n) { * return n % 2 == 0; * }); * * console.log(array); * // => [1, 3] * * console.log(evens); * // => [2, 4] */ function remove(array, predicate) { var result = []; if (!(array && array.length)) { return result; } var index = -1, indexes = [], length = array.length; predicate = getIteratee(predicate, 3); while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result.push(value); indexes.push(index); } } basePullAt(array, indexes); return result; } /** * Reverses `array` so that the first element becomes the last, the second * element becomes the second to last, and so on. * * **Note:** This method mutates `array` and is based on * [`Array#reverse`](https://mdn.io/Array/reverse). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to modify. * @returns {Array} Returns `array`. * @example * * var array = [1, 2, 3]; * * _.reverse(array); * // => [3, 2, 1] * * console.log(array); * // => [3, 2, 1] */ function reverse(array) { return array == null ? array : nativeReverse.call(array); } /** * Creates a slice of `array` from `start` up to, but not including, `end`. * * **Note:** This method is used instead of * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are * returned. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to slice. * @param {number} [start=0] The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns the slice of `array`. */ function slice(array, start, end) { var length = array == null ? 0 : array.length; if (!length) { return []; } if (end && typeof end != 'number' && isIterateeCall(array, start, end)) { start = 0; end = length; } else { start = start == null ? 0 : toInteger(start); end = end === undefined ? length : toInteger(end); } return baseSlice(array, start, end); } /** * Uses a binary search to determine the lowest index at which `value` * should be inserted into `array` in order to maintain its sort order. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. * @returns {number} Returns the index at which `value` should be inserted * into `array`. * @example * * _.sortedIndex([30, 50], 40); * // => 1 */ function sortedIndex(array, value) { return baseSortedIndex(array, value); } /** * This method is like `_.sortedIndex` except that it accepts `iteratee` * which is invoked for `value` and each element of `array` to compute their * sort ranking. The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. * @example * * var objects = [{ 'x': 4 }, { 'x': 5 }]; * * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); * // => 0 * * // The `_.property` iteratee shorthand. * _.sortedIndexBy(objects, { 'x': 4 }, 'x'); * // => 0 */ function sortedIndexBy(array, value, iteratee) { return baseSortedIndexBy(array, value, getIteratee(iteratee, 2)); } /** * This method is like `_.indexOf` except that it performs a binary * search on a sorted `array`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @returns {number} Returns the index of the matched value, else `-1`. * @example * * _.sortedIndexOf([4, 5, 5, 5, 6], 5); * // => 1 */ function sortedIndexOf(array, value) { var length = array == null ? 0 : array.length; if (length) { var index = baseSortedIndex(array, value); if (index < length && eq(array[index], value)) { return index; } } return -1; } /** * This method is like `_.sortedIndex` except that it returns the highest * index at which `value` should be inserted into `array` in order to * maintain its sort order. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. * @returns {number} Returns the index at which `value` should be inserted * into `array`. * @example * * _.sortedLastIndex([4, 5, 5, 5, 6], 5); * // => 4 */ function sortedLastIndex(array, value) { return baseSortedIndex(array, value, true); } /** * This method is like `_.sortedLastIndex` except that it accepts `iteratee` * which is invoked for `value` and each element of `array` to compute their * sort ranking. The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The sorted array to inspect. * @param {*} value The value to evaluate. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the index at which `value` should be inserted * into `array`. * @example * * var objects = [{ 'x': 4 }, { 'x': 5 }]; * * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); * // => 1 * * // The `_.property` iteratee shorthand. * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x'); * // => 1 */ function sortedLastIndexBy(array, value, iteratee) { return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true); } /** * This method is like `_.lastIndexOf` except that it performs a binary * search on a sorted `array`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {*} value The value to search for. * @returns {number} Returns the index of the matched value, else `-1`. * @example * * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5); * // => 3 */ function sortedLastIndexOf(array, value) { var length = array == null ? 0 : array.length; if (length) { var index = baseSortedIndex(array, value, true) - 1; if (eq(array[index], value)) { return index; } } return -1; } /** * This method is like `_.uniq` except that it's designed and optimized * for sorted arrays. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @returns {Array} Returns the new duplicate free array. * @example * * _.sortedUniq([1, 1, 2]); * // => [1, 2] */ function sortedUniq(array) { return (array && array.length) ? baseSortedUniq(array) : []; } /** * This method is like `_.uniqBy` except that it's designed and optimized * for sorted arrays. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {Function} [iteratee] The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. * @example * * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); * // => [1.1, 2.3] */ function sortedUniqBy(array, iteratee) { return (array && array.length) ? baseSortedUniq(array, getIteratee(iteratee, 2)) : []; } /** * Gets all but the first element of `array`. * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to query. * @returns {Array} Returns the slice of `array`. * @example * * _.tail([1, 2, 3]); * // => [2, 3] */ function tail(array) { var length = array == null ? 0 : array.length; return length ? baseSlice(array, 1, length) : []; } /** * Creates a slice of `array` with `n` elements taken from the beginning. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to take. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Array} Returns the slice of `array`. * @example * * _.take([1, 2, 3]); * // => [1] * * _.take([1, 2, 3], 2); * // => [1, 2] * * _.take([1, 2, 3], 5); * // => [1, 2, 3] * * _.take([1, 2, 3], 0); * // => [] */ function take(array, n, guard) { if (!(array && array.length)) { return []; } n = (guard || n === undefined) ? 1 : toInteger(n); return baseSlice(array, 0, n < 0 ? 0 : n); } /** * Creates a slice of `array` with `n` elements taken from the end. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. * @param {number} [n=1] The number of elements to take. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Array} Returns the slice of `array`. * @example * * _.takeRight([1, 2, 3]); * // => [3] * * _.takeRight([1, 2, 3], 2); * // => [2, 3] * * _.takeRight([1, 2, 3], 5); * // => [1, 2, 3] * * _.takeRight([1, 2, 3], 0); * // => [] */ function takeRight(array, n, guard) { var length = array == null ? 0 : array.length; if (!length) { return []; } n = (guard || n === undefined) ? 1 : toInteger(n); n = length - n; return baseSlice(array, n < 0 ? 0 : n, length); } /** * Creates a slice of `array` with elements taken from the end. Elements are * taken until `predicate` returns falsey. The predicate is invoked with * three arguments: (value, index, array). * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * * var users = [ * { 'user': 'barney', 'active': true }, * { 'user': 'fred', 'active': false }, * { 'user': 'pebbles', 'active': false } * ]; * * _.takeRightWhile(users, function(o) { return !o.active; }); * // => objects for ['fred', 'pebbles'] * * // The `_.matches` iteratee shorthand. * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false }); * // => objects for ['pebbles'] * * // The `_.matchesProperty` iteratee shorthand. * _.takeRightWhile(users, ['active', false]); * // => objects for ['fred', 'pebbles'] * * // The `_.property` iteratee shorthand. * _.takeRightWhile(users, 'active'); * // => [] */ function takeRightWhile(array, predicate) { return (array && array.length) ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; } /** * Creates a slice of `array` with elements taken from the beginning. Elements * are taken until `predicate` returns falsey. The predicate is invoked with * three arguments: (value, index, array). * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to query. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the slice of `array`. * @example * * var users = [ * { 'user': 'barney', 'active': false }, * { 'user': 'fred', 'active': false }, * { 'user': 'pebbles', 'active': true } * ]; * * _.takeWhile(users, function(o) { return !o.active; }); * // => objects for ['barney', 'fred'] * * // The `_.matches` iteratee shorthand. * _.takeWhile(users, { 'user': 'barney', 'active': false }); * // => objects for ['barney'] * * // The `_.matchesProperty` iteratee shorthand. * _.takeWhile(users, ['active', false]); * // => objects for ['barney', 'fred'] * * // The `_.property` iteratee shorthand. * _.takeWhile(users, 'active'); * // => [] */ function takeWhile(array, predicate) { return (array && array.length) ? baseWhile(array, getIteratee(predicate, 3)) : []; } /** * Creates an array of unique values, in order, from all given arrays using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @returns {Array} Returns the new array of combined values. * @example * * _.union([2], [1, 2]); * // => [2, 1] */ var union = baseRest(function(arrays) { return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); }); /** * This method is like `_.union` except that it accepts `iteratee` which is * invoked for each element of each `arrays` to generate the criterion by * which uniqueness is computed. Result values are chosen from the first * array in which the value occurs. The iteratee is invoked with one argument: * (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of combined values. * @example * * _.unionBy([2.1], [1.2, 2.3], Math.floor); * // => [2.1, 1.2] * * // The `_.property` iteratee shorthand. * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }, { 'x': 2 }] */ var unionBy = baseRest(function(arrays) { var iteratee = last(arrays); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)); }); /** * This method is like `_.union` except that it accepts `comparator` which * is invoked to compare elements of `arrays`. Result values are chosen from * the first array in which the value occurs. The comparator is invoked * with two arguments: (arrVal, othVal). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of combined values. * @example * * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; * * _.unionWith(objects, others, _.isEqual); * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ var unionWith = baseRest(function(arrays) { var comparator = last(arrays); comparator = typeof comparator == 'function' ? comparator : undefined; return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator); }); /** * Creates a duplicate-free version of an array, using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons, in which only the first occurrence of each element * is kept. The order of result values is determined by the order they occur * in the array. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @returns {Array} Returns the new duplicate free array. * @example * * _.uniq([2, 1, 2]); * // => [2, 1] */ function uniq(array) { return (array && array.length) ? baseUniq(array) : []; } /** * This method is like `_.uniq` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which * uniqueness is computed. The order of result values is determined by the * order they occur in the array. The iteratee is invoked with one argument: * (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new duplicate free array. * @example * * _.uniqBy([2.1, 1.2, 2.3], Math.floor); * // => [2.1, 1.2] * * // The `_.property` iteratee shorthand. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }, { 'x': 2 }] */ function uniqBy(array, iteratee) { return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : []; } /** * This method is like `_.uniq` except that it accepts `comparator` which * is invoked to compare elements of `array`. The order of result values is * determined by the order they occur in the array.The comparator is invoked * with two arguments: (arrVal, othVal). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {Array} array The array to inspect. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new duplicate free array. * @example * * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }]; * * _.uniqWith(objects, _.isEqual); * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] */ function uniqWith(array, comparator) { comparator = typeof comparator == 'function' ? comparator : undefined; return (array && array.length) ? baseUniq(array, undefined, comparator) : []; } /** * This method is like `_.zip` except that it accepts an array of grouped * elements and creates an array regrouping the elements to their pre-zip * configuration. * * @static * @memberOf _ * @since 1.2.0 * @category Array * @param {Array} array The array of grouped elements to process. * @returns {Array} Returns the new array of regrouped elements. * @example * * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]); * // => [['a', 1, true], ['b', 2, false]] * * _.unzip(zipped); * // => [['a', 'b'], [1, 2], [true, false]] */ function unzip(array) { if (!(array && array.length)) { return []; } var length = 0; array = arrayFilter(array, function(group) { if (isArrayLikeObject(group)) { length = nativeMax(group.length, length); return true; } }); return baseTimes(length, function(index) { return arrayMap(array, baseProperty(index)); }); } /** * This method is like `_.unzip` except that it accepts `iteratee` to specify * how regrouped values should be combined. The iteratee is invoked with the * elements of each group: (...group). * * @static * @memberOf _ * @since 3.8.0 * @category Array * @param {Array} array The array of grouped elements to process. * @param {Function} [iteratee=_.identity] The function to combine * regrouped values. * @returns {Array} Returns the new array of regrouped elements. * @example * * var zipped = _.zip([1, 2], [10, 20], [100, 200]); * // => [[1, 10, 100], [2, 20, 200]] * * _.unzipWith(zipped, _.add); * // => [3, 30, 300] */ function unzipWith(array, iteratee) { if (!(array && array.length)) { return []; } var result = unzip(array); if (iteratee == null) { return result; } return arrayMap(result, function(group) { return apply(iteratee, undefined, group); }); } /** * Creates an array excluding all given values using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. * * **Note:** Unlike `_.pull`, this method returns a new array. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to inspect. * @param {...*} [values] The values to exclude. * @returns {Array} Returns the new array of filtered values. * @see _.difference, _.xor * @example * * _.without([2, 1, 2, 3], 1, 2); * // => [3] */ var without = baseRest(function(array, values) { return isArrayLikeObject(array) ? baseDifference(array, values) : []; }); /** * Creates an array of unique values that is the * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference) * of the given arrays. The order of result values is determined by the order * they occur in the arrays. * * @static * @memberOf _ * @since 2.4.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @returns {Array} Returns the new array of filtered values. * @see _.difference, _.without * @example * * _.xor([2, 1], [2, 3]); * // => [1, 3] */ var xor = baseRest(function(arrays) { return baseXor(arrayFilter(arrays, isArrayLikeObject)); }); /** * This method is like `_.xor` except that it accepts `iteratee` which is * invoked for each element of each `arrays` to generate the criterion by * which by which they're compared. The order of result values is determined * by the order they occur in the arrays. The iteratee is invoked with one * argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor); * // => [1.2, 3.4] * * // The `_.property` iteratee shorthand. * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 2 }] */ var xorBy = baseRest(function(arrays) { var iteratee = last(arrays); if (isArrayLikeObject(iteratee)) { iteratee = undefined; } return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2)); }); /** * This method is like `_.xor` except that it accepts `comparator` which is * invoked to compare elements of `arrays`. The order of result values is * determined by the order they occur in the arrays. The comparator is invoked * with two arguments: (arrVal, othVal). * * @static * @memberOf _ * @since 4.0.0 * @category Array * @param {...Array} [arrays] The arrays to inspect. * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; * * _.xorWith(objects, others, _.isEqual); * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ var xorWith = baseRest(function(arrays) { var comparator = last(arrays); comparator = typeof comparator == 'function' ? comparator : undefined; return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator); }); /** * Creates an array of grouped elements, the first of which contains the * first elements of the given arrays, the second of which contains the * second elements of the given arrays, and so on. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {...Array} [arrays] The arrays to process. * @returns {Array} Returns the new array of grouped elements. * @example * * _.zip(['a', 'b'], [1, 2], [true, false]); * // => [['a', 1, true], ['b', 2, false]] */ var zip = baseRest(unzip); /** * This method is like `_.fromPairs` except that it accepts two arrays, * one of property identifiers and one of corresponding values. * * @static * @memberOf _ * @since 0.4.0 * @category Array * @param {Array} [props=[]] The property identifiers. * @param {Array} [values=[]] The property values. * @returns {Object} Returns the new object. * @example * * _.zipObject(['a', 'b'], [1, 2]); * // => { 'a': 1, 'b': 2 } */ function zipObject(props, values) { return baseZipObject(props || [], values || [], assignValue); } /** * This method is like `_.zipObject` except that it supports property paths. * * @static * @memberOf _ * @since 4.1.0 * @category Array * @param {Array} [props=[]] The property identifiers. * @param {Array} [values=[]] The property values. * @returns {Object} Returns the new object. * @example * * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]); * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } } */ function zipObjectDeep(props, values) { return baseZipObject(props || [], values || [], baseSet); } /** * This method is like `_.zip` except that it accepts `iteratee` to specify * how grouped values should be combined. The iteratee is invoked with the * elements of each group: (...group). * * @static * @memberOf _ * @since 3.8.0 * @category Array * @param {...Array} [arrays] The arrays to process. * @param {Function} [iteratee=_.identity] The function to combine * grouped values. * @returns {Array} Returns the new array of grouped elements. * @example * * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) { * return a + b + c; * }); * // => [111, 222] */ var zipWith = baseRest(function(arrays) { var length = arrays.length, iteratee = length > 1 ? arrays[length - 1] : undefined; iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined; return unzipWith(arrays, iteratee); }); /*------------------------------------------------------------------------*/ /** * Creates a `lodash` wrapper instance that wraps `value` with explicit method * chain sequences enabled. The result of such sequences must be unwrapped * with `_#value`. * * @static * @memberOf _ * @since 1.3.0 * @category Seq * @param {*} value The value to wrap. * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var users = [ * { 'user': 'barney', 'age': 36 }, * { 'user': 'fred', 'age': 40 }, * { 'user': 'pebbles', 'age': 1 } * ]; * * var youngest = _ * .chain(users) * .sortBy('age') * .map(function(o) { * return o.user + ' is ' + o.age; * }) * .head() * .value(); * // => 'pebbles is 1' */ function chain(value) { var result = lodash(value); result.__chain__ = true; return result; } /** * This method invokes `interceptor` and returns `value`. The interceptor * is invoked with one argument; (value). The purpose of this method is to * "tap into" a method chain sequence in order to modify intermediate results. * * @static * @memberOf _ * @since 0.1.0 * @category Seq * @param {*} value The value to provide to `interceptor`. * @param {Function} interceptor The function to invoke. * @returns {*} Returns `value`. * @example * * _([1, 2, 3]) * .tap(function(array) { * // Mutate input array. * array.pop(); * }) * .reverse() * .value(); * // => [2, 1] */ function tap(value, interceptor) { interceptor(value); return value; } /** * This method is like `_.tap` except that it returns the result of `interceptor`. * The purpose of this method is to "pass thru" values replacing intermediate * results in a method chain sequence. * * @static * @memberOf _ * @since 3.0.0 * @category Seq * @param {*} value The value to provide to `interceptor`. * @param {Function} interceptor The function to invoke. * @returns {*} Returns the result of `interceptor`. * @example * * _(' abc ') * .chain() * .trim() * .thru(function(value) { * return [value]; * }) * .value(); * // => ['abc'] */ function thru(value, interceptor) { return interceptor(value); } /** * This method is the wrapper version of `_.at`. * * @name at * @memberOf _ * @since 1.0.0 * @category Seq * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; * * _(object).at(['a[0].b.c', 'a[1]']).value(); * // => [3, 4] */ var wrapperAt = flatRest(function(paths) { var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) { return baseAt(object, paths); }; if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) { return this.thru(interceptor); } value = value.slice(start, +start + (length ? 1 : 0)); value.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined }); return new LodashWrapper(value, this.__chain__).thru(function(array) { if (length && !array.length) { array.push(undefined); } return array; }); }); /** * Creates a `lodash` wrapper instance with explicit method chain sequences enabled. * * @name chain * @memberOf _ * @since 0.1.0 * @category Seq * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var users = [ * { 'user': 'barney', 'age': 36 }, * { 'user': 'fred', 'age': 40 } * ]; * * // A sequence without explicit chaining. * _(users).head(); * // => { 'user': 'barney', 'age': 36 } * * // A sequence with explicit chaining. * _(users) * .chain() * .head() * .pick('user') * .value(); * // => { 'user': 'barney' } */ function wrapperChain() { return chain(this); } /** * Executes the chain sequence and returns the wrapped result. * * @name commit * @memberOf _ * @since 3.2.0 * @category Seq * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var array = [1, 2]; * var wrapped = _(array).push(3); * * console.log(array); * // => [1, 2] * * wrapped = wrapped.commit(); * console.log(array); * // => [1, 2, 3] * * wrapped.last(); * // => 3 * * console.log(array); * // => [1, 2, 3] */ function wrapperCommit() { return new LodashWrapper(this.value(), this.__chain__); } /** * Gets the next value on a wrapped object following the * [iterator protocol](https://mdn.io/iteration_protocols#iterator). * * @name next * @memberOf _ * @since 4.0.0 * @category Seq * @returns {Object} Returns the next iterator value. * @example * * var wrapped = _([1, 2]); * * wrapped.next(); * // => { 'done': false, 'value': 1 } * * wrapped.next(); * // => { 'done': false, 'value': 2 } * * wrapped.next(); * // => { 'done': true, 'value': undefined } */ function wrapperNext() { if (this.__values__ === undefined) { this.__values__ = toArray(this.value()); } var done = this.__index__ >= this.__values__.length, value = done ? undefined : this.__values__[this.__index__++]; return { 'done': done, 'value': value }; } /** * Enables the wrapper to be iterable. * * @name Symbol.iterator * @memberOf _ * @since 4.0.0 * @category Seq * @returns {Object} Returns the wrapper object. * @example * * var wrapped = _([1, 2]); * * wrapped[Symbol.iterator]() === wrapped; * // => true * * Array.from(wrapped); * // => [1, 2] */ function wrapperToIterator() { return this; } /** * Creates a clone of the chain sequence planting `value` as the wrapped value. * * @name plant * @memberOf _ * @since 3.2.0 * @category Seq * @param {*} value The value to plant. * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * function square(n) { * return n * n; * } * * var wrapped = _([1, 2]).map(square); * var other = wrapped.plant([3, 4]); * * other.value(); * // => [9, 16] * * wrapped.value(); * // => [1, 4] */ function wrapperPlant(value) { var result, parent = this; while (parent instanceof baseLodash) { var clone = wrapperClone(parent); clone.__index__ = 0; clone.__values__ = undefined; if (result) { previous.__wrapped__ = clone; } else { result = clone; } var previous = clone; parent = parent.__wrapped__; } previous.__wrapped__ = value; return result; } /** * This method is the wrapper version of `_.reverse`. * * **Note:** This method mutates the wrapped array. * * @name reverse * @memberOf _ * @since 0.1.0 * @category Seq * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var array = [1, 2, 3]; * * _(array).reverse().value() * // => [3, 2, 1] * * console.log(array); * // => [3, 2, 1] */ function wrapperReverse() { var value = this.__wrapped__; if (value instanceof LazyWrapper) { var wrapped = value; if (this.__actions__.length) { wrapped = new LazyWrapper(this); } wrapped = wrapped.reverse(); wrapped.__actions__.push({ 'func': thru, 'args': [reverse], 'thisArg': undefined }); return new LodashWrapper(wrapped, this.__chain__); } return this.thru(reverse); } /** * Executes the chain sequence to resolve the unwrapped value. * * @name value * @memberOf _ * @since 0.1.0 * @alias toJSON, valueOf * @category Seq * @returns {*} Returns the resolved unwrapped value. * @example * * _([1, 2, 3]).value(); * // => [1, 2, 3] */ function wrapperValue() { return baseWrapperValue(this.__wrapped__, this.__actions__); } /*------------------------------------------------------------------------*/ /** * Creates an object composed of keys generated from the results of running * each element of `collection` thru `iteratee`. The corresponding value of * each key is the number of times the key was returned by `iteratee`. The * iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 0.5.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * * _.countBy([6.1, 4.2, 6.3], Math.floor); * // => { '4': 1, '6': 2 } * * // The `_.property` iteratee shorthand. * _.countBy(['one', 'two', 'three'], 'length'); * // => { '3': 2, '5': 1 } */ var countBy = createAggregator(function(result, value, key) { if (hasOwnProperty.call(result, key)) { ++result[key]; } else { baseAssignValue(result, key, 1); } }); /** * Checks if `predicate` returns truthy for **all** elements of `collection`. * Iteration is stopped once `predicate` returns falsey. The predicate is * invoked with three arguments: (value, index|key, collection). * * **Note:** This method returns `true` for * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of * elements of empty collections. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {boolean} Returns `true` if all elements pass the predicate check, * else `false`. * @example * * _.every([true, 1, null, 'yes'], Boolean); * // => false * * var users = [ * { 'user': 'barney', 'age': 36, 'active': false }, * { 'user': 'fred', 'age': 40, 'active': false } * ]; * * // The `_.matches` iteratee shorthand. * _.every(users, { 'user': 'barney', 'active': false }); * // => false * * // The `_.matchesProperty` iteratee shorthand. * _.every(users, ['active', false]); * // => true * * // The `_.property` iteratee shorthand. * _.every(users, 'active'); * // => false */ function every(collection, predicate, guard) { var func = isArray(collection) ? arrayEvery : baseEvery; if (guard && isIterateeCall(collection, predicate, guard)) { predicate = undefined; } return func(collection, getIteratee(predicate, 3)); } /** * Iterates over elements of `collection`, returning an array of all elements * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). * * **Note:** Unlike `_.remove`, this method returns a new array. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.reject * @example * * var users = [ * { 'user': 'barney', 'age': 36, 'active': true }, * { 'user': 'fred', 'age': 40, 'active': false } * ]; * * _.filter(users, function(o) { return !o.active; }); * // => objects for ['fred'] * * // The `_.matches` iteratee shorthand. * _.filter(users, { 'age': 36, 'active': true }); * // => objects for ['barney'] * * // The `_.matchesProperty` iteratee shorthand. * _.filter(users, ['active', false]); * // => objects for ['fred'] * * // The `_.property` iteratee shorthand. * _.filter(users, 'active'); * // => objects for ['barney'] * * // Combining several predicates using `_.overEvery` or `_.overSome`. * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]])); * // => objects for ['fred', 'barney'] */ function filter(collection, predicate) { var func = isArray(collection) ? arrayFilter : baseFilter; return func(collection, getIteratee(predicate, 3)); } /** * Iterates over elements of `collection`, returning the first element * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=0] The index to search from. * @returns {*} Returns the matched element, else `undefined`. * @example * * var users = [ * { 'user': 'barney', 'age': 36, 'active': true }, * { 'user': 'fred', 'age': 40, 'active': false }, * { 'user': 'pebbles', 'age': 1, 'active': true } * ]; * * _.find(users, function(o) { return o.age < 40; }); * // => object for 'barney' * * // The `_.matches` iteratee shorthand. * _.find(users, { 'age': 1, 'active': true }); * // => object for 'pebbles' * * // The `_.matchesProperty` iteratee shorthand. * _.find(users, ['active', false]); * // => object for 'fred' * * // The `_.property` iteratee shorthand. * _.find(users, 'active'); * // => object for 'barney' */ var find = createFind(findIndex); /** * This method is like `_.find` except that it iterates over elements of * `collection` from right to left. * * @static * @memberOf _ * @since 2.0.0 * @category Collection * @param {Array|Object} collection The collection to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param {number} [fromIndex=collection.length-1] The index to search from. * @returns {*} Returns the matched element, else `undefined`. * @example * * _.findLast([1, 2, 3, 4], function(n) { * return n % 2 == 1; * }); * // => 3 */ var findLast = createFind(findLastIndex); /** * Creates a flattened array of values by running each element in `collection` * thru `iteratee` and flattening the mapped results. The iteratee is invoked * with three arguments: (value, index|key, collection). * * @static * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example * * function duplicate(n) { * return [n, n]; * } * * _.flatMap([1, 2], duplicate); * // => [1, 1, 2, 2] */ function flatMap(collection, iteratee) { return baseFlatten(map(collection, iteratee), 1); } /** * This method is like `_.flatMap` except that it recursively flattens the * mapped results. * * @static * @memberOf _ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new flattened array. * @example * * function duplicate(n) { * return [[[n, n]]]; * } * * _.flatMapDeep([1, 2], duplicate); * // => [1, 1, 2, 2] */ function flatMapDeep(collection, iteratee) { return baseFlatten(map(collection, iteratee), INFINITY); } /** * This method is like `_.flatMap` except that it recursively flattens the * mapped results up to `depth` times. * * @static * @memberOf _ * @since 4.7.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @param {number} [depth=1] The maximum recursion depth. * @returns {Array} Returns the new flattened array. * @example * * function duplicate(n) { * return [[[n, n]]]; * } * * _.flatMapDepth([1, 2], duplicate, 2); * // => [[1, 1], [2, 2]] */ function flatMapDepth(collection, iteratee, depth) { depth = depth === undefined ? 1 : toInteger(depth); return baseFlatten(map(collection, iteratee), depth); } /** * Iterates over elements of `collection` and invokes `iteratee` for each element. * The iteratee is invoked with three arguments: (value, index|key, collection). * Iteratee functions may exit iteration early by explicitly returning `false`. * * **Note:** As with other "Collections" methods, objects with a "length" * property are iterated like arrays. To avoid this behavior use `_.forIn` * or `_.forOwn` for object iteration. * * @static * @memberOf _ * @since 0.1.0 * @alias each * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array|Object} Returns `collection`. * @see _.forEachRight * @example * * _.forEach([1, 2], function(value) { * console.log(value); * }); * // => Logs `1` then `2`. * * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { * console.log(key); * }); * // => Logs 'a' then 'b' (iteration order is not guaranteed). */ function forEach(collection, iteratee) { var func = isArray(collection) ? arrayEach : baseEach; return func(collection, getIteratee(iteratee, 3)); } /** * This method is like `_.forEach` except that it iterates over elements of * `collection` from right to left. * * @static * @memberOf _ * @since 2.0.0 * @alias eachRight * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array|Object} Returns `collection`. * @see _.forEach * @example * * _.forEachRight([1, 2], function(value) { * console.log(value); * }); * // => Logs `2` then `1`. */ function forEachRight(collection, iteratee) { var func = isArray(collection) ? arrayEachRight : baseEachRight; return func(collection, getIteratee(iteratee, 3)); } /** * Creates an object composed of keys generated from the results of running * each element of `collection` thru `iteratee`. The order of grouped values * is determined by the order they occur in `collection`. The corresponding * value of each key is an array of elements responsible for generating the * key. The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * * _.groupBy([6.1, 4.2, 6.3], Math.floor); * // => { '4': [4.2], '6': [6.1, 6.3] } * * // The `_.property` iteratee shorthand. * _.groupBy(['one', 'two', 'three'], 'length'); * // => { '3': ['one', 'two'], '5': ['three'] } */ var groupBy = createAggregator(function(result, value, key) { if (hasOwnProperty.call(result, key)) { result[key].push(value); } else { baseAssignValue(result, key, [value]); } }); /** * Checks if `value` is in `collection`. If `collection` is a string, it's * checked for a substring of `value`, otherwise * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * is used for equality comparisons. If `fromIndex` is negative, it's used as * the offset from the end of `collection`. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object|string} collection The collection to inspect. * @param {*} value The value to search for. * @param {number} [fromIndex=0] The index to search from. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. * @returns {boolean} Returns `true` if `value` is found, else `false`. * @example * * _.includes([1, 2, 3], 1); * // => true * * _.includes([1, 2, 3], 1, 2); * // => false * * _.includes({ 'a': 1, 'b': 2 }, 1); * // => true * * _.includes('abcd', 'bc'); * // => true */ function includes(collection, value, fromIndex, guard) { collection = isArrayLike(collection) ? collection : values(collection); fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0; var length = collection.length; if (fromIndex < 0) { fromIndex = nativeMax(length + fromIndex, 0); } return isString(collection) ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1) : (!!length && baseIndexOf(collection, value, fromIndex) > -1); } /** * Invokes the method at `path` of each element in `collection`, returning * an array of the results of each invoked method. Any additional arguments * are provided to each invoked method. If `path` is a function, it's invoked * for, and `this` bound to, each element in `collection`. * * @static * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Array|Function|string} path The path of the method to invoke or * the function invoked per iteration. * @param {...*} [args] The arguments to invoke each method with. * @returns {Array} Returns the array of results. * @example * * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); * // => [[1, 5, 7], [1, 2, 3]] * * _.invokeMap([123, 456], String.prototype.split, ''); * // => [['1', '2', '3'], ['4', '5', '6']] */ var invokeMap = baseRest(function(collection, path, args) { var index = -1, isFunc = typeof path == 'function', result = isArrayLike(collection) ? Array(collection.length) : []; baseEach(collection, function(value) { result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); }); return result; }); /** * Creates an object composed of keys generated from the results of running * each element of `collection` thru `iteratee`. The corresponding value of * each key is the last element responsible for generating the key. The * iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The iteratee to transform keys. * @returns {Object} Returns the composed aggregate object. * @example * * var array = [ * { 'dir': 'left', 'code': 97 }, * { 'dir': 'right', 'code': 100 } * ]; * * _.keyBy(array, function(o) { * return String.fromCharCode(o.code); * }); * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } } * * _.keyBy(array, 'dir'); * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } } */ var keyBy = createAggregator(function(result, value, key) { baseAssignValue(result, key, value); }); /** * Creates an array of values by running each element in `collection` thru * `iteratee`. The iteratee is invoked with three arguments: * (value, index|key, collection). * * Many lodash methods are guarded to work as iteratees for methods like * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`. * * The guarded methods are: * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`, * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`, * `template`, `trim`, `trimEnd`, `trimStart`, and `words` * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the new mapped array. * @example * * function square(n) { * return n * n; * } * * _.map([4, 8], square); * // => [16, 64] * * _.map({ 'a': 4, 'b': 8 }, square); * // => [16, 64] (iteration order is not guaranteed) * * var users = [ * { 'user': 'barney' }, * { 'user': 'fred' } * ]; * * // The `_.property` iteratee shorthand. * _.map(users, 'user'); * // => ['barney', 'fred'] */ function map(collection, iteratee) { var func = isArray(collection) ? arrayMap : baseMap; return func(collection, getIteratee(iteratee, 3)); } /** * This method is like `_.sortBy` except that it allows specifying the sort * orders of the iteratees to sort by. If `orders` is unspecified, all values * are sorted in ascending order. Otherwise, specify an order of "desc" for * descending or "asc" for ascending sort order of corresponding values. * * @static * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]] * The iteratees to sort by. * @param {string[]} [orders] The sort orders of `iteratees`. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`. * @returns {Array} Returns the new sorted array. * @example * * var users = [ * { 'user': 'fred', 'age': 48 }, * { 'user': 'barney', 'age': 34 }, * { 'user': 'fred', 'age': 40 }, * { 'user': 'barney', 'age': 36 } * ]; * * // Sort by `user` in ascending order and by `age` in descending order. * _.orderBy(users, ['user', 'age'], ['asc', 'desc']); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]] */ function orderBy(collection, iteratees, orders, guard) { if (collection == null) { return []; } if (!isArray(iteratees)) { iteratees = iteratees == null ? [] : [iteratees]; } orders = guard ? undefined : orders; if (!isArray(orders)) { orders = orders == null ? [] : [orders]; } return baseOrderBy(collection, iteratees, orders); } /** * Creates an array of elements split into two groups, the first of which * contains elements `predicate` returns truthy for, the second of which * contains elements `predicate` returns falsey for. The predicate is * invoked with one argument: (value). * * @static * @memberOf _ * @since 3.0.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the array of grouped elements. * @example * * var users = [ * { 'user': 'barney', 'age': 36, 'active': false }, * { 'user': 'fred', 'age': 40, 'active': true }, * { 'user': 'pebbles', 'age': 1, 'active': false } * ]; * * _.partition(users, function(o) { return o.active; }); * // => objects for [['fred'], ['barney', 'pebbles']] * * // The `_.matches` iteratee shorthand. * _.partition(users, { 'age': 1, 'active': false }); * // => objects for [['pebbles'], ['barney', 'fred']] * * // The `_.matchesProperty` iteratee shorthand. * _.partition(users, ['active', false]); * // => objects for [['barney', 'pebbles'], ['fred']] * * // The `_.property` iteratee shorthand. * _.partition(users, 'active'); * // => objects for [['fred'], ['barney', 'pebbles']] */ var partition = createAggregator(function(result, value, key) { result[key ? 0 : 1].push(value); }, function() { return [[], []]; }); /** * Reduces `collection` to a value which is the accumulated result of running * each element in `collection` thru `iteratee`, where each successive * invocation is supplied the return value of the previous. If `accumulator` * is not given, the first element of `collection` is used as the initial * value. The iteratee is invoked with four arguments: * (accumulator, value, index|key, collection). * * Many lodash methods are guarded to work as iteratees for methods like * `_.reduce`, `_.reduceRight`, and `_.transform`. * * The guarded methods are: * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`, * and `sortBy` * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @param {*} [accumulator] The initial value. * @returns {*} Returns the accumulated value. * @see _.reduceRight * @example * * _.reduce([1, 2], function(sum, n) { * return sum + n; * }, 0); * // => 3 * * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { * (result[value] || (result[value] = [])).push(key); * return result; * }, {}); * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed) */ function reduce(collection, iteratee, accumulator) { var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3; return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach); } /** * This method is like `_.reduce` except that it iterates over elements of * `collection` from right to left. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @param {*} [accumulator] The initial value. * @returns {*} Returns the accumulated value. * @see _.reduce * @example * * var array = [[0, 1], [2, 3], [4, 5]]; * * _.reduceRight(array, function(flattened, other) { * return flattened.concat(other); * }, []); * // => [4, 5, 2, 3, 0, 1] */ function reduceRight(collection, iteratee, accumulator) { var func = isArray(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3; return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight); } /** * The opposite of `_.filter`; this method returns the elements of `collection` * that `predicate` does **not** return truthy for. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {Array} Returns the new filtered array. * @see _.filter * @example * * var users = [ * { 'user': 'barney', 'age': 36, 'active': false }, * { 'user': 'fred', 'age': 40, 'active': true } * ]; * * _.reject(users, function(o) { return !o.active; }); * // => objects for ['fred'] * * // The `_.matches` iteratee shorthand. * _.reject(users, { 'age': 40, 'active': true }); * // => objects for ['barney'] * * // The `_.matchesProperty` iteratee shorthand. * _.reject(users, ['active', false]); * // => objects for ['fred'] * * // The `_.property` iteratee shorthand. * _.reject(users, 'active'); * // => objects for ['barney'] */ function reject(collection, predicate) { var func = isArray(collection) ? arrayFilter : baseFilter; return func(collection, negate(getIteratee(predicate, 3))); } /** * Gets a random element from `collection`. * * @static * @memberOf _ * @since 2.0.0 * @category Collection * @param {Array|Object} collection The collection to sample. * @returns {*} Returns the random element. * @example * * _.sample([1, 2, 3, 4]); * // => 2 */ function sample(collection) { var func = isArray(collection) ? arraySample : baseSample; return func(collection); } /** * Gets `n` random elements at unique keys from `collection` up to the * size of `collection`. * * @static * @memberOf _ * @since 4.0.0 * @category Collection * @param {Array|Object} collection The collection to sample. * @param {number} [n=1] The number of elements to sample. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Array} Returns the random elements. * @example * * _.sampleSize([1, 2, 3], 2); * // => [3, 1] * * _.sampleSize([1, 2, 3], 4); * // => [2, 3, 1] */ function sampleSize(collection, n, guard) { if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) { n = 1; } else { n = toInteger(n); } var func = isArray(collection) ? arraySampleSize : baseSampleSize; return func(collection, n); } /** * Creates an array of shuffled values, using a version of the * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to shuffle. * @returns {Array} Returns the new shuffled array. * @example * * _.shuffle([1, 2, 3, 4]); * // => [4, 1, 3, 2] */ function shuffle(collection) { var func = isArray(collection) ? arrayShuffle : baseShuffle; return func(collection); } /** * Gets the size of `collection` by returning its length for array-like * values or the number of own enumerable string keyed properties for objects. * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object|string} collection The collection to inspect. * @returns {number} Returns the collection size. * @example * * _.size([1, 2, 3]); * // => 3 * * _.size({ 'a': 1, 'b': 2 }); * // => 2 * * _.size('pebbles'); * // => 7 */ function size(collection) { if (collection == null) { return 0; } if (isArrayLike(collection)) { return isString(collection) ? stringSize(collection) : collection.length; } var tag = getTag(collection); if (tag == mapTag || tag == setTag) { return collection.size; } return baseKeys(collection).length; } /** * Checks if `predicate` returns truthy for **any** element of `collection`. * Iteration is stopped once `predicate` returns truthy. The predicate is * invoked with three arguments: (value, index|key, collection). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {boolean} Returns `true` if any element passes the predicate check, * else `false`. * @example * * _.some([null, 0, 'yes', false], Boolean); * // => true * * var users = [ * { 'user': 'barney', 'active': true }, * { 'user': 'fred', 'active': false } * ]; * * // The `_.matches` iteratee shorthand. * _.some(users, { 'user': 'barney', 'active': false }); * // => false * * // The `_.matchesProperty` iteratee shorthand. * _.some(users, ['active', false]); * // => true * * // The `_.property` iteratee shorthand. * _.some(users, 'active'); * // => true */ function some(collection, predicate, guard) { var func = isArray(collection) ? arraySome : baseSome; if (guard && isIterateeCall(collection, predicate, guard)) { predicate = undefined; } return func(collection, getIteratee(predicate, 3)); } /** * Creates an array of elements, sorted in ascending order by the results of * running each element in a collection thru each iteratee. This method * performs a stable sort, that is, it preserves the original sort order of * equal elements. The iteratees are invoked with one argument: (value). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to iterate over. * @param {...(Function|Function[])} [iteratees=[_.identity]] * The iteratees to sort by. * @returns {Array} Returns the new sorted array. * @example * * var users = [ * { 'user': 'fred', 'age': 48 }, * { 'user': 'barney', 'age': 36 }, * { 'user': 'fred', 'age': 30 }, * { 'user': 'barney', 'age': 34 } * ]; * * _.sortBy(users, [function(o) { return o.user; }]); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]] * * _.sortBy(users, ['user', 'age']); * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]] */ var sortBy = baseRest(function(collection, iteratees) { if (collection == null) { return []; } var length = iteratees.length; if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { iteratees = []; } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { iteratees = [iteratees[0]]; } return baseOrderBy(collection, baseFlatten(iteratees, 1), []); }); /*------------------------------------------------------------------------*/ /** * Gets the timestamp of the number of milliseconds that have elapsed since * the Unix epoch (1 January 1970 00:00:00 UTC). * * @static * @memberOf _ * @since 2.4.0 * @category Date * @returns {number} Returns the timestamp. * @example * * _.defer(function(stamp) { * console.log(_.now() - stamp); * }, _.now()); * // => Logs the number of milliseconds it took for the deferred invocation. */ var now = ctxNow || function() { return root.Date.now(); }; /*------------------------------------------------------------------------*/ /** * The opposite of `_.before`; this method creates a function that invokes * `func` once it's called `n` or more times. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {number} n The number of calls before `func` is invoked. * @param {Function} func The function to restrict. * @returns {Function} Returns the new restricted function. * @example * * var saves = ['profile', 'settings']; * * var done = _.after(saves.length, function() { * console.log('done saving!'); * }); * * _.forEach(saves, function(type) { * asyncSave({ 'type': type, 'complete': done }); * }); * // => Logs 'done saving!' after the two async saves have completed. */ function after(n, func) { if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } n = toInteger(n); return function() { if (--n < 1) { return func.apply(this, arguments); } }; } /** * Creates a function that invokes `func`, with up to `n` arguments, * ignoring any additional arguments. * * @static * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} func The function to cap arguments for. * @param {number} [n=func.length] The arity cap. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Function} Returns the new capped function. * @example * * _.map(['6', '8', '10'], _.ary(parseInt, 1)); * // => [6, 8, 10] */ function ary(func, n, guard) { n = guard ? undefined : n; n = (func && n == null) ? func.length : n; return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n); } /** * Creates a function that invokes `func`, with the `this` binding and arguments * of the created function, while it's called less than `n` times. Subsequent * calls to the created function return the result of the last `func` invocation. * * @static * @memberOf _ * @since 3.0.0 * @category Function * @param {number} n The number of calls at which `func` is no longer invoked. * @param {Function} func The function to restrict. * @returns {Function} Returns the new restricted function. * @example * * jQuery(element).on('click', _.before(5, addContactToList)); * // => Allows adding up to 4 contacts to the list. */ function before(n, func) { var result; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } n = toInteger(n); return function() { if (--n > 0) { result = func.apply(this, arguments); } if (n <= 1) { func = undefined; } return result; }; } /** * Creates a function that invokes `func` with the `this` binding of `thisArg` * and `partials` prepended to the arguments it receives. * * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, * may be used as a placeholder for partially applied arguments. * * **Note:** Unlike native `Function#bind`, this method doesn't set the "length" * property of bound functions. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to bind. * @param {*} thisArg The `this` binding of `func`. * @param {...*} [partials] The arguments to be partially applied. * @returns {Function} Returns the new bound function. * @example * * function greet(greeting, punctuation) { * return greeting + ' ' + this.user + punctuation; * } * * var object = { 'user': 'fred' }; * * var bound = _.bind(greet, object, 'hi'); * bound('!'); * // => 'hi fred!' * * // Bound with placeholders. * var bound = _.bind(greet, object, _, '!'); * bound('hi'); * // => 'hi fred!' */ var bind = baseRest(function(func, thisArg, partials) { var bitmask = WRAP_BIND_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bind)); bitmask |= WRAP_PARTIAL_FLAG; } return createWrap(func, bitmask, thisArg, partials, holders); }); /** * Creates a function that invokes the method at `object[key]` with `partials` * prepended to the arguments it receives. * * This method differs from `_.bind` by allowing bound functions to reference * methods that may be redefined or don't yet exist. See * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern) * for more details. * * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic * builds, may be used as a placeholder for partially applied arguments. * * @static * @memberOf _ * @since 0.10.0 * @category Function * @param {Object} object The object to invoke the method on. * @param {string} key The key of the method. * @param {...*} [partials] The arguments to be partially applied. * @returns {Function} Returns the new bound function. * @example * * var object = { * 'user': 'fred', * 'greet': function(greeting, punctuation) { * return greeting + ' ' + this.user + punctuation; * } * }; * * var bound = _.bindKey(object, 'greet', 'hi'); * bound('!'); * // => 'hi fred!' * * object.greet = function(greeting, punctuation) { * return greeting + 'ya ' + this.user + punctuation; * }; * * bound('!'); * // => 'hiya fred!' * * // Bound with placeholders. * var bound = _.bindKey(object, 'greet', _, '!'); * bound('hi'); * // => 'hiya fred!' */ var bindKey = baseRest(function(object, key, partials) { var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; if (partials.length) { var holders = replaceHolders(partials, getHolder(bindKey)); bitmask |= WRAP_PARTIAL_FLAG; } return createWrap(key, bitmask, object, partials, holders); }); /** * Creates a function that accepts arguments of `func` and either invokes * `func` returning its result, if at least `arity` number of arguments have * been provided, or returns a function that accepts the remaining `func` * arguments, and so on. The arity of `func` may be specified if `func.length` * is not sufficient. * * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds, * may be used as a placeholder for provided arguments. * * **Note:** This method doesn't set the "length" property of curried functions. * * @static * @memberOf _ * @since 2.0.0 * @category Function * @param {Function} func The function to curry. * @param {number} [arity=func.length] The arity of `func`. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Function} Returns the new curried function. * @example * * var abc = function(a, b, c) { * return [a, b, c]; * }; * * var curried = _.curry(abc); * * curried(1)(2)(3); * // => [1, 2, 3] * * curried(1, 2)(3); * // => [1, 2, 3] * * curried(1, 2, 3); * // => [1, 2, 3] * * // Curried with placeholders. * curried(1)(_, 3)(2); * // => [1, 2, 3] */ function curry(func, arity, guard) { arity = guard ? undefined : arity; var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curry.placeholder; return result; } /** * This method is like `_.curry` except that arguments are applied to `func` * in the manner of `_.partialRight` instead of `_.partial`. * * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic * builds, may be used as a placeholder for provided arguments. * * **Note:** This method doesn't set the "length" property of curried functions. * * @static * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} func The function to curry. * @param {number} [arity=func.length] The arity of `func`. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Function} Returns the new curried function. * @example * * var abc = function(a, b, c) { * return [a, b, c]; * }; * * var curried = _.curryRight(abc); * * curried(3)(2)(1); * // => [1, 2, 3] * * curried(2, 3)(1); * // => [1, 2, 3] * * curried(1, 2, 3); * // => [1, 2, 3] * * // Curried with placeholders. * curried(3)(1, _)(2); * // => [1, 2, 3] */ function curryRight(func, arity, guard) { arity = guard ? undefined : arity; var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity); result.placeholder = curryRight.placeholder; return result; } /** * Creates a debounced function that delays invoking `func` until after `wait` * milliseconds have elapsed since the last time the debounced function was * invoked. The debounced function comes with a `cancel` method to cancel * delayed `func` invocations and a `flush` method to immediately invoke them. * Provide `options` to indicate whether `func` should be invoked on the * leading and/or trailing edge of the `wait` timeout. The `func` is invoked * with the last arguments provided to the debounced function. Subsequent * calls to the debounced function return the result of the last `func` * invocation. * * **Note:** If `leading` and `trailing` options are `true`, `func` is * invoked on the trailing edge of the timeout only if the debounced function * is invoked more than once during the `wait` timeout. * * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.debounce` and `_.throttle`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to debounce. * @param {number} [wait=0] The number of milliseconds to delay. * @param {Object} [options={}] The options object. * @param {boolean} [options.leading=false] * Specify invoking on the leading edge of the timeout. * @param {number} [options.maxWait] * The maximum time `func` is allowed to be delayed before it's invoked. * @param {boolean} [options.trailing=true] * Specify invoking on the trailing edge of the timeout. * @returns {Function} Returns the new debounced function. * @example * * // Avoid costly calculations while the window size is in flux. * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); * * // Invoke `sendMail` when clicked, debouncing subsequent calls. * jQuery(element).on('click', _.debounce(sendMail, 300, { * 'leading': true, * 'trailing': false * })); * * // Ensure `batchLog` is invoked once after 1 second of debounced calls. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); * var source = new EventSource('/stream'); * jQuery(source).on('message', debounced); * * // Cancel the trailing debounced invocation. * jQuery(window).on('popstate', debounced.cancel); */ function debounce(func, wait, options) { var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } wait = toNumber(wait) || 0; if (isObject(options)) { leading = !!options.leading; maxing = 'maxWait' in options; maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; trailing = 'trailing' in options ? !!options.trailing : trailing; } function invokeFunc(time) { var args = lastArgs, thisArg = lastThis; lastArgs = lastThis = undefined; lastInvokeTime = time; result = func.apply(thisArg, args); return result; } function leadingEdge(time) { // Reset any `maxWait` timer. lastInvokeTime = time; // Start the timer for the trailing edge. timerId = setTimeout(timerExpired, wait); // Invoke the leading edge. return leading ? invokeFunc(time) : result; } function remainingWait(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; } function shouldInvoke(time) { var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the // trailing edge, the system time has gone backwards and we're treating // it as the trailing edge, or we've hit the `maxWait` limit. return (lastCallTime === undefined || (timeSinceLastCall >= wait) || (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); } function timerExpired() { var time = now(); if (shouldInvoke(time)) { return trailingEdge(time); } // Restart the timer. timerId = setTimeout(timerExpired, remainingWait(time)); } function trailingEdge(time) { timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been // debounced at least once. if (trailing && lastArgs) { return invokeFunc(time); } lastArgs = lastThis = undefined; return result; } function cancel() { if (timerId !== undefined) { clearTimeout(timerId); } lastInvokeTime = 0; lastArgs = lastCallTime = lastThis = timerId = undefined; } function flush() { return timerId === undefined ? result : trailingEdge(now()); } function debounced() { var time = now(), isInvoking = shouldInvoke(time); lastArgs = arguments; lastThis = this; lastCallTime = time; if (isInvoking) { if (timerId === undefined) { return leadingEdge(lastCallTime); } if (maxing) { // Handle invocations in a tight loop. clearTimeout(timerId); timerId = setTimeout(timerExpired, wait); return invokeFunc(lastCallTime); } } if (timerId === undefined) { timerId = setTimeout(timerExpired, wait); } return result; } debounced.cancel = cancel; debounced.flush = flush; return debounced; } /** * Defers invoking the `func` until the current call stack has cleared. Any * additional arguments are provided to `func` when it's invoked. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to defer. * @param {...*} [args] The arguments to invoke `func` with. * @returns {number} Returns the timer id. * @example * * _.defer(function(text) { * console.log(text); * }, 'deferred'); * // => Logs 'deferred' after one millisecond. */ var defer = baseRest(function(func, args) { return baseDelay(func, 1, args); }); /** * Invokes `func` after `wait` milliseconds. Any additional arguments are * provided to `func` when it's invoked. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to delay. * @param {number} wait The number of milliseconds to delay invocation. * @param {...*} [args] The arguments to invoke `func` with. * @returns {number} Returns the timer id. * @example * * _.delay(function(text) { * console.log(text); * }, 1000, 'later'); * // => Logs 'later' after one second. */ var delay = baseRest(function(func, wait, args) { return baseDelay(func, toNumber(wait) || 0, args); }); /** * Creates a function that invokes `func` with arguments reversed. * * @static * @memberOf _ * @since 4.0.0 * @category Function * @param {Function} func The function to flip arguments for. * @returns {Function} Returns the new flipped function. * @example * * var flipped = _.flip(function() { * return _.toArray(arguments); * }); * * flipped('a', 'b', 'c', 'd'); * // => ['d', 'c', 'b', 'a'] */ function flip(func) { return createWrap(func, WRAP_FLIP_FLAG); } /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; /** * Creates a function that negates the result of the predicate `func`. The * `func` predicate is invoked with the `this` binding and arguments of the * created function. * * @static * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} predicate The predicate to negate. * @returns {Function} Returns the new negated function. * @example * * function isEven(n) { * return n % 2 == 0; * } * * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven)); * // => [1, 3, 5] */ function negate(predicate) { if (typeof predicate != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } return function() { var args = arguments; switch (args.length) { case 0: return !predicate.call(this); case 1: return !predicate.call(this, args[0]); case 2: return !predicate.call(this, args[0], args[1]); case 3: return !predicate.call(this, args[0], args[1], args[2]); } return !predicate.apply(this, args); }; } /** * Creates a function that is restricted to invoking `func` once. Repeat calls * to the function return the value of the first invocation. The `func` is * invoked with the `this` binding and arguments of the created function. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to restrict. * @returns {Function} Returns the new restricted function. * @example * * var initialize = _.once(createApplication); * initialize(); * initialize(); * // => `createApplication` is invoked once */ function once(func) { return before(2, func); } /** * Creates a function that invokes `func` with its arguments transformed. * * @static * @since 4.0.0 * @memberOf _ * @category Function * @param {Function} func The function to wrap. * @param {...(Function|Function[])} [transforms=[_.identity]] * The argument transforms. * @returns {Function} Returns the new function. * @example * * function doubled(n) { * return n * 2; * } * * function square(n) { * return n * n; * } * * var func = _.overArgs(function(x, y) { * return [x, y]; * }, [square, doubled]); * * func(9, 3); * // => [81, 6] * * func(10, 5); * // => [100, 10] */ var overArgs = castRest(function(func, transforms) { transforms = (transforms.length == 1 && isArray(transforms[0])) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); var funcsLength = transforms.length; return baseRest(function(args) { var index = -1, length = nativeMin(args.length, funcsLength); while (++index < length) { args[index] = transforms[index].call(this, args[index]); } return apply(func, this, args); }); }); /** * Creates a function that invokes `func` with `partials` prepended to the * arguments it receives. This method is like `_.bind` except it does **not** * alter the `this` binding. * * The `_.partial.placeholder` value, which defaults to `_` in monolithic * builds, may be used as a placeholder for partially applied arguments. * * **Note:** This method doesn't set the "length" property of partially * applied functions. * * @static * @memberOf _ * @since 0.2.0 * @category Function * @param {Function} func The function to partially apply arguments to. * @param {...*} [partials] The arguments to be partially applied. * @returns {Function} Returns the new partially applied function. * @example * * function greet(greeting, name) { * return greeting + ' ' + name; * } * * var sayHelloTo = _.partial(greet, 'hello'); * sayHelloTo('fred'); * // => 'hello fred' * * // Partially applied with placeholders. * var greetFred = _.partial(greet, _, 'fred'); * greetFred('hi'); * // => 'hi fred' */ var partial = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partial)); return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders); }); /** * This method is like `_.partial` except that partially applied arguments * are appended to the arguments it receives. * * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic * builds, may be used as a placeholder for partially applied arguments. * * **Note:** This method doesn't set the "length" property of partially * applied functions. * * @static * @memberOf _ * @since 1.0.0 * @category Function * @param {Function} func The function to partially apply arguments to. * @param {...*} [partials] The arguments to be partially applied. * @returns {Function} Returns the new partially applied function. * @example * * function greet(greeting, name) { * return greeting + ' ' + name; * } * * var greetFred = _.partialRight(greet, 'fred'); * greetFred('hi'); * // => 'hi fred' * * // Partially applied with placeholders. * var sayHelloTo = _.partialRight(greet, 'hello', _); * sayHelloTo('fred'); * // => 'hello fred' */ var partialRight = baseRest(function(func, partials) { var holders = replaceHolders(partials, getHolder(partialRight)); return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders); }); /** * Creates a function that invokes `func` with arguments arranged according * to the specified `indexes` where the argument value at the first index is * provided as the first argument, the argument value at the second index is * provided as the second argument, and so on. * * @static * @memberOf _ * @since 3.0.0 * @category Function * @param {Function} func The function to rearrange arguments for. * @param {...(number|number[])} indexes The arranged argument indexes. * @returns {Function} Returns the new function. * @example * * var rearged = _.rearg(function(a, b, c) { * return [a, b, c]; * }, [2, 0, 1]); * * rearged('b', 'c', 'a') * // => ['a', 'b', 'c'] */ var rearg = flatRest(function(func, indexes) { return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes); }); /** * Creates a function that invokes `func` with the `this` binding of the * created function and arguments from `start` and beyond provided as * an array. * * **Note:** This method is based on the * [rest parameter](https://mdn.io/rest_parameters). * * @static * @memberOf _ * @since 4.0.0 * @category Function * @param {Function} func The function to apply a rest parameter to. * @param {number} [start=func.length-1] The start position of the rest parameter. * @returns {Function} Returns the new function. * @example * * var say = _.rest(function(what, names) { * return what + ' ' + _.initial(names).join(', ') + * (_.size(names) > 1 ? ', & ' : '') + _.last(names); * }); * * say('hello', 'fred', 'barney', 'pebbles'); * // => 'hello fred, barney, & pebbles' */ function rest(func, start) { if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } start = start === undefined ? start : toInteger(start); return baseRest(func, start); } /** * Creates a function that invokes `func` with the `this` binding of the * create function and an array of arguments much like * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply). * * **Note:** This method is based on the * [spread operator](https://mdn.io/spread_operator). * * @static * @memberOf _ * @since 3.2.0 * @category Function * @param {Function} func The function to spread arguments over. * @param {number} [start=0] The start position of the spread. * @returns {Function} Returns the new function. * @example * * var say = _.spread(function(who, what) { * return who + ' says ' + what; * }); * * say(['fred', 'hello']); * // => 'fred says hello' * * var numbers = Promise.all([ * Promise.resolve(40), * Promise.resolve(36) * ]); * * numbers.then(_.spread(function(x, y) { * return x + y; * })); * // => a Promise of 76 */ function spread(func, start) { if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } start = start == null ? 0 : nativeMax(toInteger(start), 0); return baseRest(function(args) { var array = args[start], otherArgs = castSlice(args, 0, start); if (array) { arrayPush(otherArgs, array); } return apply(func, this, otherArgs); }); } /** * Creates a throttled function that only invokes `func` at most once per * every `wait` milliseconds. The throttled function comes with a `cancel` * method to cancel delayed `func` invocations and a `flush` method to * immediately invoke them. Provide `options` to indicate whether `func` * should be invoked on the leading and/or trailing edge of the `wait` * timeout. The `func` is invoked with the last arguments provided to the * throttled function. Subsequent calls to the throttled function return the * result of the last `func` invocation. * * **Note:** If `leading` and `trailing` options are `true`, `func` is * invoked on the trailing edge of the timeout only if the throttled function * is invoked more than once during the `wait` timeout. * * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred * until to the next tick, similar to `setTimeout` with a timeout of `0`. * * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) * for details over the differences between `_.throttle` and `_.debounce`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to throttle. * @param {number} [wait=0] The number of milliseconds to throttle invocations to. * @param {Object} [options={}] The options object. * @param {boolean} [options.leading=true] * Specify invoking on the leading edge of the timeout. * @param {boolean} [options.trailing=true] * Specify invoking on the trailing edge of the timeout. * @returns {Function} Returns the new throttled function. * @example * * // Avoid excessively updating the position while scrolling. * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); * * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }); * jQuery(element).on('click', throttled); * * // Cancel the trailing throttled invocation. * jQuery(window).on('popstate', throttled.cancel); */ function throttle(func, wait, options) { var leading = true, trailing = true; if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } if (isObject(options)) { leading = 'leading' in options ? !!options.leading : leading; trailing = 'trailing' in options ? !!options.trailing : trailing; } return debounce(func, wait, { 'leading': leading, 'maxWait': wait, 'trailing': trailing }); } /** * Creates a function that accepts up to one argument, ignoring any * additional arguments. * * @static * @memberOf _ * @since 4.0.0 * @category Function * @param {Function} func The function to cap arguments for. * @returns {Function} Returns the new capped function. * @example * * _.map(['6', '8', '10'], _.unary(parseInt)); * // => [6, 8, 10] */ function unary(func) { return ary(func, 1); } /** * Creates a function that provides `value` to `wrapper` as its first * argument. Any additional arguments provided to the function are appended * to those provided to the `wrapper`. The wrapper is invoked with the `this` * binding of the created function. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {*} value The value to wrap. * @param {Function} [wrapper=identity] The wrapper function. * @returns {Function} Returns the new function. * @example * * var p = _.wrap(_.escape, function(func, text) { * return '<p>' + func(text) + '</p>'; * }); * * p('fred, barney, & pebbles'); * // => '<p>fred, barney, &amp; pebbles</p>' */ function wrap(value, wrapper) { return partial(castFunction(wrapper), value); } /*------------------------------------------------------------------------*/ /** * Casts `value` as an array if it's not one. * * @static * @memberOf _ * @since 4.4.0 * @category Lang * @param {*} value The value to inspect. * @returns {Array} Returns the cast array. * @example * * _.castArray(1); * // => [1] * * _.castArray({ 'a': 1 }); * // => [{ 'a': 1 }] * * _.castArray('abc'); * // => ['abc'] * * _.castArray(null); * // => [null] * * _.castArray(undefined); * // => [undefined] * * _.castArray(); * // => [] * * var array = [1, 2, 3]; * console.log(_.castArray(array) === array); * // => true */ function castArray() { if (!arguments.length) { return []; } var value = arguments[0]; return isArray(value) ? value : [value]; } /** * Creates a shallow clone of `value`. * * **Note:** This method is loosely based on the * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) * and supports cloning arrays, array buffers, booleans, date objects, maps, * numbers, `Object` objects, regexes, sets, strings, symbols, and typed * arrays. The own enumerable properties of `arguments` objects are cloned * as plain objects. An empty object is returned for uncloneable values such * as error objects, functions, DOM nodes, and WeakMaps. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to clone. * @returns {*} Returns the cloned value. * @see _.cloneDeep * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * * var shallow = _.clone(objects); * console.log(shallow[0] === objects[0]); * // => true */ function clone(value) { return baseClone(value, CLONE_SYMBOLS_FLAG); } /** * This method is like `_.clone` except that it accepts `customizer` which * is invoked to produce the cloned value. If `customizer` returns `undefined`, * cloning is handled by the method instead. The `customizer` is invoked with * up to four arguments; (value [, index|key, object, stack]). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to clone. * @param {Function} [customizer] The function to customize cloning. * @returns {*} Returns the cloned value. * @see _.cloneDeepWith * @example * * function customizer(value) { * if (_.isElement(value)) { * return value.cloneNode(false); * } * } * * var el = _.cloneWith(document.body, customizer); * * console.log(el === document.body); * // => false * console.log(el.nodeName); * // => 'BODY' * console.log(el.childNodes.length); * // => 0 */ function cloneWith(value, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); } /** * This method is like `_.clone` except that it recursively clones `value`. * * @static * @memberOf _ * @since 1.0.0 * @category Lang * @param {*} value The value to recursively clone. * @returns {*} Returns the deep cloned value. * @see _.clone * @example * * var objects = [{ 'a': 1 }, { 'b': 2 }]; * * var deep = _.cloneDeep(objects); * console.log(deep[0] === objects[0]); * // => false */ function cloneDeep(value) { return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); } /** * This method is like `_.cloneWith` except that it recursively clones `value`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to recursively clone. * @param {Function} [customizer] The function to customize cloning. * @returns {*} Returns the deep cloned value. * @see _.cloneWith * @example * * function customizer(value) { * if (_.isElement(value)) { * return value.cloneNode(true); * } * } * * var el = _.cloneDeepWith(document.body, customizer); * * console.log(el === document.body); * // => false * console.log(el.nodeName); * // => 'BODY' * console.log(el.childNodes.length); * // => 20 */ function cloneDeepWith(value, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); } /** * Checks if `object` conforms to `source` by invoking the predicate * properties of `source` with the corresponding property values of `object`. * * **Note:** This method is equivalent to `_.conforms` when `source` is * partially applied. * * @static * @memberOf _ * @since 4.14.0 * @category Lang * @param {Object} object The object to inspect. * @param {Object} source The object of property predicates to conform to. * @returns {boolean} Returns `true` if `object` conforms, else `false`. * @example * * var object = { 'a': 1, 'b': 2 }; * * _.conformsTo(object, { 'b': function(n) { return n > 1; } }); * // => true * * _.conformsTo(object, { 'b': function(n) { return n > 2; } }); * // => false */ function conformsTo(object, source) { return source == null || baseConformsTo(object, source, keys(source)); } /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } /** * Checks if `value` is greater than `other`. * * @static * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is greater than `other`, * else `false`. * @see _.lt * @example * * _.gt(3, 1); * // => true * * _.gt(3, 3); * // => false * * _.gt(1, 3); * // => false */ var gt = createRelationalOperation(baseGt); /** * Checks if `value` is greater than or equal to `other`. * * @static * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is greater than or equal to * `other`, else `false`. * @see _.lte * @example * * _.gte(3, 1); * // => true * * _.gte(3, 3); * // => true * * _.gte(1, 3); * // => false */ var gte = createRelationalOperation(function(value, other) { return value >= other; }); /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; /** * Checks if `value` is classified as an `ArrayBuffer` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`. * @example * * _.isArrayBuffer(new ArrayBuffer(2)); * // => true * * _.isArrayBuffer(new Array(2)); * // => false */ var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } /** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, * else `false`. * @example * * _.isArrayLikeObject([1, 2, 3]); * // => true * * _.isArrayLikeObject(document.body.children); * // => true * * _.isArrayLikeObject('abc'); * // => false * * _.isArrayLikeObject(_.noop); * // => false */ function isArrayLikeObject(value) { return isObjectLike(value) && isArrayLike(value); } /** * Checks if `value` is classified as a boolean primitive or object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a boolean, else `false`. * @example * * _.isBoolean(false); * // => true * * _.isBoolean(null); * // => false */ function isBoolean(value) { return value === true || value === false || (isObjectLike(value) && baseGetTag(value) == boolTag); } /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; /** * Checks if `value` is classified as a `Date` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a date object, else `false`. * @example * * _.isDate(new Date); * // => true * * _.isDate('Mon April 23 2012'); * // => false */ var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; /** * Checks if `value` is likely a DOM element. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. * @example * * _.isElement(document.body); * // => true * * _.isElement('<body>'); * // => false */ function isElement(value) { return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); } /** * Checks if `value` is an empty object, collection, map, or set. * * Objects are considered empty if they have no own enumerable string keyed * properties. * * Array-like values such as `arguments` objects, arrays, buffers, strings, or * jQuery-like collections are considered empty if they have a `length` of `0`. * Similarly, maps and sets are considered empty if they have a `size` of `0`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is empty, else `false`. * @example * * _.isEmpty(null); * // => true * * _.isEmpty(true); * // => true * * _.isEmpty(1); * // => true * * _.isEmpty([1, 2, 3]); * // => false * * _.isEmpty({ 'a': 1 }); * // => false */ function isEmpty(value) { if (value == null) { return true; } if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) { return !value.length; } var tag = getTag(value); if (tag == mapTag || tag == setTag) { return !value.size; } if (isPrototype(value)) { return !baseKeys(value).length; } for (var key in value) { if (hasOwnProperty.call(value, key)) { return false; } } return true; } /** * Performs a deep comparison between two values to determine if they are * equivalent. * * **Note:** This method supports comparing arrays, array buffers, booleans, * date objects, error objects, maps, numbers, `Object` objects, regexes, * sets, strings, symbols, and typed arrays. `Object` objects are compared * by their own, not inherited, enumerable properties. Functions and DOM * nodes are compared by strict equality, i.e. `===`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.isEqual(object, other); * // => true * * object === other; * // => false */ function isEqual(value, other) { return baseIsEqual(value, other); } /** * This method is like `_.isEqual` except that it accepts `customizer` which * is invoked to compare values. If `customizer` returns `undefined`, comparisons * are handled by the method instead. The `customizer` is invoked with up to * six arguments: (objValue, othValue [, index|key, object, other, stack]). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @param {Function} [customizer] The function to customize comparisons. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * function isGreeting(value) { * return /^h(?:i|ello)$/.test(value); * } * * function customizer(objValue, othValue) { * if (isGreeting(objValue) && isGreeting(othValue)) { * return true; * } * } * * var array = ['hello', 'goodbye']; * var other = ['hi', 'goodbye']; * * _.isEqualWith(array, other, customizer); * // => true */ function isEqualWith(value, other, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; var result = customizer ? customizer(value, other) : undefined; return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result; } /** * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`, * `SyntaxError`, `TypeError`, or `URIError` object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an error object, else `false`. * @example * * _.isError(new Error); * // => true * * _.isError(Error); * // => false */ function isError(value) { if (!isObjectLike(value)) { return false; } var tag = baseGetTag(value); return tag == errorTag || tag == domExcTag || (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value)); } /** * Checks if `value` is a finite primitive number. * * **Note:** This method is based on * [`Number.isFinite`](https://mdn.io/Number/isFinite). * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a finite number, else `false`. * @example * * _.isFinite(3); * // => true * * _.isFinite(Number.MIN_VALUE); * // => true * * _.isFinite(Infinity); * // => false * * _.isFinite('3'); * // => false */ function isFinite(value) { return typeof value == 'number' && nativeIsFinite(value); } /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } /** * Checks if `value` is an integer. * * **Note:** This method is based on * [`Number.isInteger`](https://mdn.io/Number/isInteger). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an integer, else `false`. * @example * * _.isInteger(3); * // => true * * _.isInteger(Number.MIN_VALUE); * // => false * * _.isInteger(Infinity); * // => false * * _.isInteger('3'); * // => false */ function isInteger(value) { return typeof value == 'number' && value == toInteger(value); } /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } /** * Checks if `value` is object-like. A value is object-like if it's not `null` * and has a `typeof` result of "object". * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is object-like, else `false`. * @example * * _.isObjectLike({}); * // => true * * _.isObjectLike([1, 2, 3]); * // => true * * _.isObjectLike(_.noop); * // => false * * _.isObjectLike(null); * // => false */ function isObjectLike(value) { return value != null && typeof value == 'object'; } /** * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * * _.isMap(new Map); * // => true * * _.isMap(new WeakMap); * // => false */ var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; /** * Performs a partial deep comparison between `object` and `source` to * determine if `object` contains equivalent property values. * * **Note:** This method is equivalent to `_.matches` when `source` is * partially applied. * * Partial comparisons will match empty array and empty object `source` * values against any array or object value, respectively. See `_.isEqual` * for a list of supported value comparisons. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {Object} object The object to inspect. * @param {Object} source The object of property values to match. * @returns {boolean} Returns `true` if `object` is a match, else `false`. * @example * * var object = { 'a': 1, 'b': 2 }; * * _.isMatch(object, { 'b': 2 }); * // => true * * _.isMatch(object, { 'b': 1 }); * // => false */ function isMatch(object, source) { return object === source || baseIsMatch(object, source, getMatchData(source)); } /** * This method is like `_.isMatch` except that it accepts `customizer` which * is invoked to compare values. If `customizer` returns `undefined`, comparisons * are handled by the method instead. The `customizer` is invoked with five * arguments: (objValue, srcValue, index|key, object, source). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {Object} object The object to inspect. * @param {Object} source The object of property values to match. * @param {Function} [customizer] The function to customize comparisons. * @returns {boolean} Returns `true` if `object` is a match, else `false`. * @example * * function isGreeting(value) { * return /^h(?:i|ello)$/.test(value); * } * * function customizer(objValue, srcValue) { * if (isGreeting(objValue) && isGreeting(srcValue)) { * return true; * } * } * * var object = { 'greeting': 'hello' }; * var source = { 'greeting': 'hi' }; * * _.isMatchWith(object, source, customizer); * // => true */ function isMatchWith(object, source, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; return baseIsMatch(object, source, getMatchData(source), customizer); } /** * Checks if `value` is `NaN`. * * **Note:** This method is based on * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for * `undefined` and other non-number values. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. * @example * * _.isNaN(NaN); * // => true * * _.isNaN(new Number(NaN)); * // => true * * isNaN(undefined); * // => true * * _.isNaN(undefined); * // => false */ function isNaN(value) { // An `NaN` primitive is the only value that is not equal to itself. // Perform the `toStringTag` check first to avoid errors with some // ActiveX objects in IE. return isNumber(value) && value != +value; } /** * Checks if `value` is a pristine native function. * * **Note:** This method can't reliably detect native functions in the presence * of the core-js package because core-js circumvents this kind of detection. * Despite multiple requests, the core-js maintainer has made it clear: any * attempt to fix the detection will be obstructed. As a result, we're left * with little choice but to throw an error. Unfortunately, this also affects * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill), * which rely on core-js. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. * @example * * _.isNative(Array.prototype.push); * // => true * * _.isNative(_); * // => false */ function isNative(value) { if (isMaskable(value)) { throw new Error(CORE_ERROR_TEXT); } return baseIsNative(value); } /** * Checks if `value` is `null`. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `null`, else `false`. * @example * * _.isNull(null); * // => true * * _.isNull(void 0); * // => false */ function isNull(value) { return value === null; } /** * Checks if `value` is `null` or `undefined`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is nullish, else `false`. * @example * * _.isNil(null); * // => true * * _.isNil(void 0); * // => true * * _.isNil(NaN); * // => false */ function isNil(value) { return value == null; } /** * Checks if `value` is classified as a `Number` primitive or object. * * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are * classified as numbers, use the `_.isFinite` method. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a number, else `false`. * @example * * _.isNumber(3); * // => true * * _.isNumber(Number.MIN_VALUE); * // => true * * _.isNumber(Infinity); * // => true * * _.isNumber('3'); * // => false */ function isNumber(value) { return typeof value == 'number' || (isObjectLike(value) && baseGetTag(value) == numberTag); } /** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * * @static * @memberOf _ * @since 0.8.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. * @example * * function Foo() { * this.a = 1; * } * * _.isPlainObject(new Foo); * // => false * * _.isPlainObject([1, 2, 3]); * // => false * * _.isPlainObject({ 'x': 0, 'y': 0 }); * // => true * * _.isPlainObject(Object.create(null)); * // => true */ function isPlainObject(value) { if (!isObjectLike(value) || baseGetTag(value) != objectTag) { return false; } var proto = getPrototype(value); if (proto === null) { return true; } var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; } /** * Checks if `value` is classified as a `RegExp` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`. * @example * * _.isRegExp(/abc/); * // => true * * _.isRegExp('/abc/'); * // => false */ var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; /** * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754 * double precision number which isn't the result of a rounded unsafe integer. * * **Note:** This method is based on * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`. * @example * * _.isSafeInteger(3); * // => true * * _.isSafeInteger(Number.MIN_VALUE); * // => false * * _.isSafeInteger(Infinity); * // => false * * _.isSafeInteger('3'); * // => false */ function isSafeInteger(value) { return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; } /** * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * * _.isSet(new Set); * // => true * * _.isSet(new WeakSet); * // => false */ var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; /** * Checks if `value` is classified as a `String` primitive or object. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a string, else `false`. * @example * * _.isString('abc'); * // => true * * _.isString(1); * // => false */ function isString(value) { return typeof value == 'string' || (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); } /** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * * _.isSymbol(Symbol.iterator); * // => true * * _.isSymbol('abc'); * // => false */ function isSymbol(value) { return typeof value == 'symbol' || (isObjectLike(value) && baseGetTag(value) == symbolTag); } /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; /** * Checks if `value` is `undefined`. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`. * @example * * _.isUndefined(void 0); * // => true * * _.isUndefined(null); * // => false */ function isUndefined(value) { return value === undefined; } /** * Checks if `value` is classified as a `WeakMap` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a weak map, else `false`. * @example * * _.isWeakMap(new WeakMap); * // => true * * _.isWeakMap(new Map); * // => false */ function isWeakMap(value) { return isObjectLike(value) && getTag(value) == weakMapTag; } /** * Checks if `value` is classified as a `WeakSet` object. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a weak set, else `false`. * @example * * _.isWeakSet(new WeakSet); * // => true * * _.isWeakSet(new Set); * // => false */ function isWeakSet(value) { return isObjectLike(value) && baseGetTag(value) == weakSetTag; } /** * Checks if `value` is less than `other`. * * @static * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is less than `other`, * else `false`. * @see _.gt * @example * * _.lt(1, 3); * // => true * * _.lt(3, 3); * // => false * * _.lt(3, 1); * // => false */ var lt = createRelationalOperation(baseLt); /** * Checks if `value` is less than or equal to `other`. * * @static * @memberOf _ * @since 3.9.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if `value` is less than or equal to * `other`, else `false`. * @see _.gte * @example * * _.lte(1, 3); * // => true * * _.lte(3, 3); * // => true * * _.lte(3, 1); * // => false */ var lte = createRelationalOperation(function(value, other) { return value <= other; }); /** * Converts `value` to an array. * * @static * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to convert. * @returns {Array} Returns the converted array. * @example * * _.toArray({ 'a': 1, 'b': 2 }); * // => [1, 2] * * _.toArray('abc'); * // => ['a', 'b', 'c'] * * _.toArray(1); * // => [] * * _.toArray(null); * // => [] */ function toArray(value) { if (!value) { return []; } if (isArrayLike(value)) { return isString(value) ? stringToArray(value) : copyArray(value); } if (symIterator && value[symIterator]) { return iteratorToArray(value[symIterator]()); } var tag = getTag(value), func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values); return func(value); } /** * Converts `value` to a finite number. * * @static * @memberOf _ * @since 4.12.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted number. * @example * * _.toFinite(3.2); * // => 3.2 * * _.toFinite(Number.MIN_VALUE); * // => 5e-324 * * _.toFinite(Infinity); * // => 1.7976931348623157e+308 * * _.toFinite('3.2'); * // => 3.2 */ function toFinite(value) { if (!value) { return value === 0 ? value : 0; } value = toNumber(value); if (value === INFINITY || value === -INFINITY) { var sign = (value < 0 ? -1 : 1); return sign * MAX_INTEGER; } return value === value ? value : 0; } /** * Converts `value` to an integer. * * **Note:** This method is loosely based on * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted integer. * @example * * _.toInteger(3.2); * // => 3 * * _.toInteger(Number.MIN_VALUE); * // => 0 * * _.toInteger(Infinity); * // => 1.7976931348623157e+308 * * _.toInteger('3.2'); * // => 3 */ function toInteger(value) { var result = toFinite(value), remainder = result % 1; return result === result ? (remainder ? result - remainder : result) : 0; } /** * Converts `value` to an integer suitable for use as the length of an * array-like object. * * **Note:** This method is based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted integer. * @example * * _.toLength(3.2); * // => 3 * * _.toLength(Number.MIN_VALUE); * // => 0 * * _.toLength(Infinity); * // => 4294967295 * * _.toLength('3.2'); * // => 3 */ function toLength(value) { return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; } /** * Converts `value` to a number. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to process. * @returns {number} Returns the number. * @example * * _.toNumber(3.2); * // => 3.2 * * _.toNumber(Number.MIN_VALUE); * // => 5e-324 * * _.toNumber(Infinity); * // => Infinity * * _.toNumber('3.2'); * // => 3.2 */ function toNumber(value) { if (typeof value == 'number') { return value; } if (isSymbol(value)) { return NAN; } if (isObject(value)) { var other = typeof value.valueOf == 'function' ? value.valueOf() : value; value = isObject(other) ? (other + '') : other; } if (typeof value != 'string') { return value === 0 ? value : +value; } value = value.replace(reTrim, ''); var isBinary = reIsBinary.test(value); return (isBinary || reIsOctal.test(value)) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : (reIsBadHex.test(value) ? NAN : +value); } /** * Converts `value` to a plain object flattening inherited enumerable string * keyed properties of `value` to own properties of the plain object. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to convert. * @returns {Object} Returns the converted plain object. * @example * * function Foo() { * this.b = 2; * } * * Foo.prototype.c = 3; * * _.assign({ 'a': 1 }, new Foo); * // => { 'a': 1, 'b': 2 } * * _.assign({ 'a': 1 }, _.toPlainObject(new Foo)); * // => { 'a': 1, 'b': 2, 'c': 3 } */ function toPlainObject(value) { return copyObject(value, keysIn(value)); } /** * Converts `value` to a safe integer. A safe integer can be compared and * represented correctly. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {number} Returns the converted integer. * @example * * _.toSafeInteger(3.2); * // => 3 * * _.toSafeInteger(Number.MIN_VALUE); * // => 0 * * _.toSafeInteger(Infinity); * // => 9007199254740991 * * _.toSafeInteger('3.2'); * // => 3 */ function toSafeInteger(value) { return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : (value === 0 ? value : 0); } /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } /*------------------------------------------------------------------------*/ /** * Assigns own enumerable string keyed properties of source objects to the * destination object. Source objects are applied from left to right. * Subsequent sources overwrite property assignments of previous sources. * * **Note:** This method mutates `object` and is loosely based on * [`Object.assign`](https://mdn.io/Object/assign). * * @static * @memberOf _ * @since 0.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.assignIn * @example * * function Foo() { * this.a = 1; * } * * function Bar() { * this.c = 3; * } * * Foo.prototype.b = 2; * Bar.prototype.d = 4; * * _.assign({ 'a': 0 }, new Foo, new Bar); * // => { 'a': 1, 'c': 3 } */ var assign = createAssigner(function(object, source) { if (isPrototype(source) || isArrayLike(source)) { copyObject(source, keys(source), object); return; } for (var key in source) { if (hasOwnProperty.call(source, key)) { assignValue(object, key, source[key]); } } }); /** * This method is like `_.assign` except that it iterates over own and * inherited source properties. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @alias extend * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.assign * @example * * function Foo() { * this.a = 1; * } * * function Bar() { * this.c = 3; * } * * Foo.prototype.b = 2; * Bar.prototype.d = 4; * * _.assignIn({ 'a': 0 }, new Foo, new Bar); * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 } */ var assignIn = createAssigner(function(object, source) { copyObject(source, keysIn(source), object); }); /** * This method is like `_.assignIn` except that it accepts `customizer` * which is invoked to produce the assigned values. If `customizer` returns * `undefined`, assignment is handled by the method instead. The `customizer` * is invoked with five arguments: (objValue, srcValue, key, object, source). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @alias extendWith * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} [customizer] The function to customize assigned values. * @returns {Object} Returns `object`. * @see _.assignWith * @example * * function customizer(objValue, srcValue) { * return _.isUndefined(objValue) ? srcValue : objValue; * } * * var defaults = _.partialRight(_.assignInWith, customizer); * * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); * // => { 'a': 1, 'b': 2 } */ var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { copyObject(source, keysIn(source), object, customizer); }); /** * This method is like `_.assign` except that it accepts `customizer` * which is invoked to produce the assigned values. If `customizer` returns * `undefined`, assignment is handled by the method instead. The `customizer` * is invoked with five arguments: (objValue, srcValue, key, object, source). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} [customizer] The function to customize assigned values. * @returns {Object} Returns `object`. * @see _.assignInWith * @example * * function customizer(objValue, srcValue) { * return _.isUndefined(objValue) ? srcValue : objValue; * } * * var defaults = _.partialRight(_.assignWith, customizer); * * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); * // => { 'a': 1, 'b': 2 } */ var assignWith = createAssigner(function(object, source, srcIndex, customizer) { copyObject(source, keys(source), object, customizer); }); /** * Creates an array of values corresponding to `paths` of `object`. * * @static * @memberOf _ * @since 1.0.0 * @category Object * @param {Object} object The object to iterate over. * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Array} Returns the picked values. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; * * _.at(object, ['a[0].b.c', 'a[1]']); * // => [3, 4] */ var at = flatRest(baseAt); /** * Creates an object that inherits from the `prototype` object. If a * `properties` object is given, its own enumerable string keyed properties * are assigned to the created object. * * @static * @memberOf _ * @since 2.3.0 * @category Object * @param {Object} prototype The object to inherit from. * @param {Object} [properties] The properties to assign to the object. * @returns {Object} Returns the new object. * @example * * function Shape() { * this.x = 0; * this.y = 0; * } * * function Circle() { * Shape.call(this); * } * * Circle.prototype = _.create(Shape.prototype, { * 'constructor': Circle * }); * * var circle = new Circle; * circle instanceof Circle; * // => true * * circle instanceof Shape; * // => true */ function create(prototype, properties) { var result = baseCreate(prototype); return properties == null ? result : baseAssign(result, properties); } /** * Assigns own and inherited enumerable string keyed properties of source * objects to the destination object for all destination properties that * resolve to `undefined`. Source objects are applied from left to right. * Once a property is set, additional values of the same property are ignored. * * **Note:** This method mutates `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaultsDeep * @example * * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); * // => { 'a': 1, 'b': 2 } */ var defaults = baseRest(function(object, sources) { object = Object(object); var index = -1; var length = sources.length; var guard = length > 2 ? sources[2] : undefined; if (guard && isIterateeCall(sources[0], sources[1], guard)) { length = 1; } while (++index < length) { var source = sources[index]; var props = keysIn(source); var propsIndex = -1; var propsLength = props.length; while (++propsIndex < propsLength) { var key = props[propsIndex]; var value = object[key]; if (value === undefined || (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) { object[key] = source[key]; } } } return object; }); /** * This method is like `_.defaults` except that it recursively assigns * default properties. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 3.10.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @see _.defaults * @example * * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } }); * // => { 'a': { 'b': 2, 'c': 3 } } */ var defaultsDeep = baseRest(function(args) { args.push(undefined, customDefaultsMerge); return apply(mergeWith, undefined, args); }); /** * This method is like `_.find` except that it returns the key of the first * element `predicate` returns truthy for instead of the element itself. * * @static * @memberOf _ * @since 1.1.0 * @category Object * @param {Object} object The object to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {string|undefined} Returns the key of the matched element, * else `undefined`. * @example * * var users = { * 'barney': { 'age': 36, 'active': true }, * 'fred': { 'age': 40, 'active': false }, * 'pebbles': { 'age': 1, 'active': true } * }; * * _.findKey(users, function(o) { return o.age < 40; }); * // => 'barney' (iteration order is not guaranteed) * * // The `_.matches` iteratee shorthand. * _.findKey(users, { 'age': 1, 'active': true }); * // => 'pebbles' * * // The `_.matchesProperty` iteratee shorthand. * _.findKey(users, ['active', false]); * // => 'fred' * * // The `_.property` iteratee shorthand. * _.findKey(users, 'active'); * // => 'barney' */ function findKey(object, predicate) { return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); } /** * This method is like `_.findKey` except that it iterates over elements of * a collection in the opposite order. * * @static * @memberOf _ * @since 2.0.0 * @category Object * @param {Object} object The object to inspect. * @param {Function} [predicate=_.identity] The function invoked per iteration. * @returns {string|undefined} Returns the key of the matched element, * else `undefined`. * @example * * var users = { * 'barney': { 'age': 36, 'active': true }, * 'fred': { 'age': 40, 'active': false }, * 'pebbles': { 'age': 1, 'active': true } * }; * * _.findLastKey(users, function(o) { return o.age < 40; }); * // => returns 'pebbles' assuming `_.findKey` returns 'barney' * * // The `_.matches` iteratee shorthand. * _.findLastKey(users, { 'age': 36, 'active': true }); * // => 'barney' * * // The `_.matchesProperty` iteratee shorthand. * _.findLastKey(users, ['active', false]); * // => 'fred' * * // The `_.property` iteratee shorthand. * _.findLastKey(users, 'active'); * // => 'pebbles' */ function findLastKey(object, predicate) { return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); } /** * Iterates over own and inherited enumerable string keyed properties of an * object and invokes `iteratee` for each property. The iteratee is invoked * with three arguments: (value, key, object). Iteratee functions may exit * iteration early by explicitly returning `false`. * * @static * @memberOf _ * @since 0.3.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns `object`. * @see _.forInRight * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.forIn(new Foo, function(value, key) { * console.log(key); * }); * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed). */ function forIn(object, iteratee) { return object == null ? object : baseFor(object, getIteratee(iteratee, 3), keysIn); } /** * This method is like `_.forIn` except that it iterates over properties of * `object` in the opposite order. * * @static * @memberOf _ * @since 2.0.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns `object`. * @see _.forIn * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.forInRight(new Foo, function(value, key) { * console.log(key); * }); * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'. */ function forInRight(object, iteratee) { return object == null ? object : baseForRight(object, getIteratee(iteratee, 3), keysIn); } /** * Iterates over own enumerable string keyed properties of an object and * invokes `iteratee` for each property. The iteratee is invoked with three * arguments: (value, key, object). Iteratee functions may exit iteration * early by explicitly returning `false`. * * @static * @memberOf _ * @since 0.3.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns `object`. * @see _.forOwnRight * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.forOwn(new Foo, function(value, key) { * console.log(key); * }); * // => Logs 'a' then 'b' (iteration order is not guaranteed). */ function forOwn(object, iteratee) { return object && baseForOwn(object, getIteratee(iteratee, 3)); } /** * This method is like `_.forOwn` except that it iterates over properties of * `object` in the opposite order. * * @static * @memberOf _ * @since 2.0.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns `object`. * @see _.forOwn * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.forOwnRight(new Foo, function(value, key) { * console.log(key); * }); * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'. */ function forOwnRight(object, iteratee) { return object && baseForOwnRight(object, getIteratee(iteratee, 3)); } /** * Creates an array of function property names from own enumerable properties * of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to inspect. * @returns {Array} Returns the function names. * @see _.functionsIn * @example * * function Foo() { * this.a = _.constant('a'); * this.b = _.constant('b'); * } * * Foo.prototype.c = _.constant('c'); * * _.functions(new Foo); * // => ['a', 'b'] */ function functions(object) { return object == null ? [] : baseFunctions(object, keys(object)); } /** * Creates an array of function property names from own and inherited * enumerable properties of `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to inspect. * @returns {Array} Returns the function names. * @see _.functions * @example * * function Foo() { * this.a = _.constant('a'); * this.b = _.constant('b'); * } * * Foo.prototype.c = _.constant('c'); * * _.functionsIn(new Foo); * // => ['a', 'b', 'c'] */ function functionsIn(object) { return object == null ? [] : baseFunctions(object, keysIn(object)); } /** * Gets the value at `path` of `object`. If the resolved value is * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @param {*} [defaultValue] The value returned for `undefined` resolved values. * @returns {*} Returns the resolved value. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * * _.get(object, 'a[0].b.c'); * // => 3 * * _.get(object, ['a', '0', 'b', 'c']); * // => 3 * * _.get(object, 'a.b.c', 'default'); * // => 'default' */ function get(object, path, defaultValue) { var result = object == null ? undefined : baseGet(object, path); return result === undefined ? defaultValue : result; } /** * Checks if `path` is a direct property of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = { 'a': { 'b': 2 } }; * var other = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.has(object, 'a'); * // => true * * _.has(object, 'a.b'); * // => true * * _.has(object, ['a', 'b']); * // => true * * _.has(other, 'a'); * // => false */ function has(object, path) { return object != null && hasPath(object, path, baseHas); } /** * Checks if `path` is a direct or inherited property of `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @example * * var object = _.create({ 'a': _.create({ 'b': 2 }) }); * * _.hasIn(object, 'a'); * // => true * * _.hasIn(object, 'a.b'); * // => true * * _.hasIn(object, ['a', 'b']); * // => true * * _.hasIn(object, 'b'); * // => false */ function hasIn(object, path) { return object != null && hasPath(object, path, baseHasIn); } /** * Creates an object composed of the inverted keys and values of `object`. * If `object` contains duplicate values, subsequent values overwrite * property assignments of previous values. * * @static * @memberOf _ * @since 0.7.0 * @category Object * @param {Object} object The object to invert. * @returns {Object} Returns the new inverted object. * @example * * var object = { 'a': 1, 'b': 2, 'c': 1 }; * * _.invert(object); * // => { '1': 'c', '2': 'b' } */ var invert = createInverter(function(result, value, key) { if (value != null && typeof value.toString != 'function') { value = nativeObjectToString.call(value); } result[value] = key; }, constant(identity)); /** * This method is like `_.invert` except that the inverted object is generated * from the results of running each element of `object` thru `iteratee`. The * corresponding inverted value of each inverted key is an array of keys * responsible for generating the inverted value. The iteratee is invoked * with one argument: (value). * * @static * @memberOf _ * @since 4.1.0 * @category Object * @param {Object} object The object to invert. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {Object} Returns the new inverted object. * @example * * var object = { 'a': 1, 'b': 2, 'c': 1 }; * * _.invertBy(object); * // => { '1': ['a', 'c'], '2': ['b'] } * * _.invertBy(object, function(value) { * return 'group' + value; * }); * // => { 'group1': ['a', 'c'], 'group2': ['b'] } */ var invertBy = createInverter(function(result, value, key) { if (value != null && typeof value.toString != 'function') { value = nativeObjectToString.call(value); } if (hasOwnProperty.call(result, value)) { result[value].push(key); } else { result[value] = [key]; } }, getIteratee); /** * Invokes the method at `path` of `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the method to invoke. * @param {...*} [args] The arguments to invoke the method with. * @returns {*} Returns the result of the invoked method. * @example * * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] }; * * _.invoke(object, 'a[0].b.c.slice', 1, 3); * // => [2, 3] */ var invoke = baseRest(baseInvoke); /** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) * for more details. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keys(new Foo); * // => ['a', 'b'] (iteration order is not guaranteed) * * _.keys('hi'); * // => ['0', '1'] */ function keys(object) { return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); } /** * Creates an array of the own and inherited enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.keysIn(new Foo); * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ function keysIn(object) { return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } /** * The opposite of `_.mapValues`; this method creates an object with the * same values as `object` and keys generated by running each own enumerable * string keyed property of `object` thru `iteratee`. The iteratee is invoked * with three arguments: (value, key, object). * * @static * @memberOf _ * @since 3.8.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns the new mapped object. * @see _.mapValues * @example * * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) { * return key + value; * }); * // => { 'a1': 1, 'b2': 2 } */ function mapKeys(object, iteratee) { var result = {}; iteratee = getIteratee(iteratee, 3); baseForOwn(object, function(value, key, object) { baseAssignValue(result, iteratee(value, key, object), value); }); return result; } /** * Creates an object with the same keys as `object` and values generated * by running each own enumerable string keyed property of `object` thru * `iteratee`. The iteratee is invoked with three arguments: * (value, key, object). * * @static * @memberOf _ * @since 2.4.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Object} Returns the new mapped object. * @see _.mapKeys * @example * * var users = { * 'fred': { 'user': 'fred', 'age': 40 }, * 'pebbles': { 'user': 'pebbles', 'age': 1 } * }; * * _.mapValues(users, function(o) { return o.age; }); * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) * * // The `_.property` iteratee shorthand. * _.mapValues(users, 'age'); * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) */ function mapValues(object, iteratee) { var result = {}; iteratee = getIteratee(iteratee, 3); baseForOwn(object, function(value, key, object) { baseAssignValue(result, key, iteratee(value, key, object)); }); return result; } /** * This method is like `_.assign` except that it recursively merges own and * inherited enumerable string keyed properties of source objects into the * destination object. Source properties that resolve to `undefined` are * skipped if a destination value exists. Array and plain object properties * are merged recursively. Other objects and value types are overridden by * assignment. Source objects are applied from left to right. Subsequent * sources overwrite property assignments of previous sources. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 0.5.0 * @category Object * @param {Object} object The destination object. * @param {...Object} [sources] The source objects. * @returns {Object} Returns `object`. * @example * * var object = { * 'a': [{ 'b': 2 }, { 'd': 4 }] * }; * * var other = { * 'a': [{ 'c': 3 }, { 'e': 5 }] * }; * * _.merge(object, other); * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] } */ var merge = createAssigner(function(object, source, srcIndex) { baseMerge(object, source, srcIndex); }); /** * This method is like `_.merge` except that it accepts `customizer` which * is invoked to produce the merged values of the destination and source * properties. If `customizer` returns `undefined`, merging is handled by the * method instead. The `customizer` is invoked with six arguments: * (objValue, srcValue, key, object, source, stack). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The destination object. * @param {...Object} sources The source objects. * @param {Function} customizer The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * function customizer(objValue, srcValue) { * if (_.isArray(objValue)) { * return objValue.concat(srcValue); * } * } * * var object = { 'a': [1], 'b': [2] }; * var other = { 'a': [3], 'b': [4] }; * * _.mergeWith(object, other, customizer); * // => { 'a': [1, 3], 'b': [2, 4] } */ var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { baseMerge(object, source, srcIndex, customizer); }); /** * The opposite of `_.pick`; this method creates an object composed of the * own and inherited enumerable property paths of `object` that are not omitted. * * **Note:** This method is considerably slower than `_.pick`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The source object. * @param {...(string|string[])} [paths] The property paths to omit. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.omit(object, ['a', 'c']); * // => { 'b': '2' } */ var omit = flatRest(function(object, paths) { var result = {}; if (object == null) { return result; } var isDeep = false; paths = arrayMap(paths, function(path) { path = castPath(path, object); isDeep || (isDeep = path.length > 1); return path; }); copyObject(object, getAllKeysIn(object), result); if (isDeep) { result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); } var length = paths.length; while (length--) { baseUnset(result, paths[length]); } return result; }); /** * The opposite of `_.pickBy`; this method creates an object composed of * the own and inherited enumerable string keyed properties of `object` that * `predicate` doesn't return truthy for. The predicate is invoked with two * arguments: (value, key). * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The source object. * @param {Function} [predicate=_.identity] The function invoked per property. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.omitBy(object, _.isNumber); * // => { 'b': '2' } */ function omitBy(object, predicate) { return pickBy(object, negate(getIteratee(predicate))); } /** * Creates an object composed of the picked `object` properties. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The source object. * @param {...(string|string[])} [paths] The property paths to pick. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ var pick = flatRest(function(object, paths) { return object == null ? {} : basePick(object, paths); }); /** * Creates an object composed of the `object` properties `predicate` returns * truthy for. The predicate is invoked with two arguments: (value, key). * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The source object. * @param {Function} [predicate=_.identity] The function invoked per property. * @returns {Object} Returns the new object. * @example * * var object = { 'a': 1, 'b': '2', 'c': 3 }; * * _.pickBy(object, _.isNumber); * // => { 'a': 1, 'c': 3 } */ function pickBy(object, predicate) { if (object == null) { return {}; } var props = arrayMap(getAllKeysIn(object), function(prop) { return [prop]; }); predicate = getIteratee(predicate); return basePickBy(object, props, function(value, path) { return predicate(value, path[0]); }); } /** * This method is like `_.get` except that if the resolved value is a * function it's invoked with the `this` binding of its parent object and * its result is returned. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to resolve. * @param {*} [defaultValue] The value returned for `undefined` resolved values. * @returns {*} Returns the resolved value. * @example * * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] }; * * _.result(object, 'a[0].b.c1'); * // => 3 * * _.result(object, 'a[0].b.c2'); * // => 4 * * _.result(object, 'a[0].b.c3', 'default'); * // => 'default' * * _.result(object, 'a[0].b.c3', _.constant('default')); * // => 'default' */ function result(object, path, defaultValue) { path = castPath(path, object); var index = -1, length = path.length; // Ensure the loop is entered when path is empty. if (!length) { length = 1; object = undefined; } while (++index < length) { var value = object == null ? undefined : object[toKey(path[index])]; if (value === undefined) { index = length; value = defaultValue; } object = isFunction(value) ? value.call(object) : value; } return object; } /** * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, * it's created. Arrays are created for missing index properties while objects * are created for all other missing properties. Use `_.setWith` to customize * `path` creation. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {*} value The value to set. * @returns {Object} Returns `object`. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * * _.set(object, 'a[0].b.c', 4); * console.log(object.a[0].b.c); * // => 4 * * _.set(object, ['x', '0', 'y', 'z'], 5); * console.log(object.x[0].y.z); * // => 5 */ function set(object, path, value) { return object == null ? object : baseSet(object, path, value); } /** * This method is like `_.set` except that it accepts `customizer` which is * invoked to produce the objects of `path`. If `customizer` returns `undefined` * path creation is handled by the method instead. The `customizer` is invoked * with three arguments: (nsValue, key, nsObject). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {*} value The value to set. * @param {Function} [customizer] The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * var object = {}; * * _.setWith(object, '[0][1]', 'a', Object); * // => { '0': { '1': 'a' } } */ function setWith(object, path, value, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; return object == null ? object : baseSet(object, path, value, customizer); } /** * Creates an array of own enumerable string keyed-value pairs for `object` * which can be consumed by `_.fromPairs`. If `object` is a map or set, its * entries are returned. * * @static * @memberOf _ * @since 4.0.0 * @alias entries * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the key-value pairs. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.toPairs(new Foo); * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed) */ var toPairs = createToPairs(keys); /** * Creates an array of own and inherited enumerable string keyed-value pairs * for `object` which can be consumed by `_.fromPairs`. If `object` is a map * or set, its entries are returned. * * @static * @memberOf _ * @since 4.0.0 * @alias entriesIn * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the key-value pairs. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.toPairsIn(new Foo); * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed) */ var toPairsIn = createToPairs(keysIn); /** * An alternative to `_.reduce`; this method transforms `object` to a new * `accumulator` object which is the result of running each of its own * enumerable string keyed properties thru `iteratee`, with each invocation * potentially mutating the `accumulator` object. If `accumulator` is not * provided, a new object with the same `[[Prototype]]` will be used. The * iteratee is invoked with four arguments: (accumulator, value, key, object). * Iteratee functions may exit iteration early by explicitly returning `false`. * * @static * @memberOf _ * @since 1.3.0 * @category Object * @param {Object} object The object to iterate over. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @param {*} [accumulator] The custom accumulator value. * @returns {*} Returns the accumulated value. * @example * * _.transform([2, 3, 4], function(result, n) { * result.push(n *= n); * return n % 2 == 0; * }, []); * // => [4, 9] * * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { * (result[value] || (result[value] = [])).push(key); * }, {}); * // => { '1': ['a', 'c'], '2': ['b'] } */ function transform(object, iteratee, accumulator) { var isArr = isArray(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object); iteratee = getIteratee(iteratee, 4); if (accumulator == null) { var Ctor = object && object.constructor; if (isArrLike) { accumulator = isArr ? new Ctor : []; } else if (isObject(object)) { accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; } else { accumulator = {}; } } (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) { return iteratee(accumulator, value, index, object); }); return accumulator; } /** * Removes the property at `path` of `object`. * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.0.0 * @category Object * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to unset. * @returns {boolean} Returns `true` if the property is deleted, else `false`. * @example * * var object = { 'a': [{ 'b': { 'c': 7 } }] }; * _.unset(object, 'a[0].b.c'); * // => true * * console.log(object); * // => { 'a': [{ 'b': {} }] }; * * _.unset(object, ['a', '0', 'b', 'c']); * // => true * * console.log(object); * // => { 'a': [{ 'b': {} }] }; */ function unset(object, path) { return object == null ? true : baseUnset(object, path); } /** * This method is like `_.set` except that accepts `updater` to produce the * value to set. Use `_.updateWith` to customize `path` creation. The `updater` * is invoked with one argument: (value). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.6.0 * @category Object * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {Function} updater The function to produce the updated value. * @returns {Object} Returns `object`. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * * _.update(object, 'a[0].b.c', function(n) { return n * n; }); * console.log(object.a[0].b.c); * // => 9 * * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; }); * console.log(object.x[0].y.z); * // => 0 */ function update(object, path, updater) { return object == null ? object : baseUpdate(object, path, castFunction(updater)); } /** * This method is like `_.update` except that it accepts `customizer` which is * invoked to produce the objects of `path`. If `customizer` returns `undefined` * path creation is handled by the method instead. The `customizer` is invoked * with three arguments: (nsValue, key, nsObject). * * **Note:** This method mutates `object`. * * @static * @memberOf _ * @since 4.6.0 * @category Object * @param {Object} object The object to modify. * @param {Array|string} path The path of the property to set. * @param {Function} updater The function to produce the updated value. * @param {Function} [customizer] The function to customize assigned values. * @returns {Object} Returns `object`. * @example * * var object = {}; * * _.updateWith(object, '[0][1]', _.constant('a'), Object); * // => { '0': { '1': 'a' } } */ function updateWith(object, path, updater, customizer) { customizer = typeof customizer == 'function' ? customizer : undefined; return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); } /** * Creates an array of the own enumerable string keyed property values of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property values. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.values(new Foo); * // => [1, 2] (iteration order is not guaranteed) * * _.values('hi'); * // => ['h', 'i'] */ function values(object) { return object == null ? [] : baseValues(object, keys(object)); } /** * Creates an array of the own and inherited enumerable string keyed property * values of `object`. * * **Note:** Non-object values are coerced to objects. * * @static * @memberOf _ * @since 3.0.0 * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property values. * @example * * function Foo() { * this.a = 1; * this.b = 2; * } * * Foo.prototype.c = 3; * * _.valuesIn(new Foo); * // => [1, 2, 3] (iteration order is not guaranteed) */ function valuesIn(object) { return object == null ? [] : baseValues(object, keysIn(object)); } /*------------------------------------------------------------------------*/ /** * Clamps `number` within the inclusive `lower` and `upper` bounds. * * @static * @memberOf _ * @since 4.0.0 * @category Number * @param {number} number The number to clamp. * @param {number} [lower] The lower bound. * @param {number} upper The upper bound. * @returns {number} Returns the clamped number. * @example * * _.clamp(-10, -5, 5); * // => -5 * * _.clamp(10, -5, 5); * // => 5 */ function clamp(number, lower, upper) { if (upper === undefined) { upper = lower; lower = undefined; } if (upper !== undefined) { upper = toNumber(upper); upper = upper === upper ? upper : 0; } if (lower !== undefined) { lower = toNumber(lower); lower = lower === lower ? lower : 0; } return baseClamp(toNumber(number), lower, upper); } /** * Checks if `n` is between `start` and up to, but not including, `end`. If * `end` is not specified, it's set to `start` with `start` then set to `0`. * If `start` is greater than `end` the params are swapped to support * negative ranges. * * @static * @memberOf _ * @since 3.3.0 * @category Number * @param {number} number The number to check. * @param {number} [start=0] The start of the range. * @param {number} end The end of the range. * @returns {boolean} Returns `true` if `number` is in the range, else `false`. * @see _.range, _.rangeRight * @example * * _.inRange(3, 2, 4); * // => true * * _.inRange(4, 8); * // => true * * _.inRange(4, 2); * // => false * * _.inRange(2, 2); * // => false * * _.inRange(1.2, 2); * // => true * * _.inRange(5.2, 4); * // => false * * _.inRange(-3, -2, -6); * // => true */ function inRange(number, start, end) { start = toFinite(start); if (end === undefined) { end = start; start = 0; } else { end = toFinite(end); } number = toNumber(number); return baseInRange(number, start, end); } /** * Produces a random number between the inclusive `lower` and `upper` bounds. * If only one argument is provided a number between `0` and the given number * is returned. If `floating` is `true`, or either `lower` or `upper` are * floats, a floating-point number is returned instead of an integer. * * **Note:** JavaScript follows the IEEE-754 standard for resolving * floating-point values which can produce unexpected results. * * @static * @memberOf _ * @since 0.7.0 * @category Number * @param {number} [lower=0] The lower bound. * @param {number} [upper=1] The upper bound. * @param {boolean} [floating] Specify returning a floating-point number. * @returns {number} Returns the random number. * @example * * _.random(0, 5); * // => an integer between 0 and 5 * * _.random(5); * // => also an integer between 0 and 5 * * _.random(5, true); * // => a floating-point number between 0 and 5 * * _.random(1.2, 5.2); * // => a floating-point number between 1.2 and 5.2 */ function random(lower, upper, floating) { if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) { upper = floating = undefined; } if (floating === undefined) { if (typeof upper == 'boolean') { floating = upper; upper = undefined; } else if (typeof lower == 'boolean') { floating = lower; lower = undefined; } } if (lower === undefined && upper === undefined) { lower = 0; upper = 1; } else { lower = toFinite(lower); if (upper === undefined) { upper = lower; lower = 0; } else { upper = toFinite(upper); } } if (lower > upper) { var temp = lower; lower = upper; upper = temp; } if (floating || lower % 1 || upper % 1) { var rand = nativeRandom(); return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper); } return baseRandom(lower, upper); } /*------------------------------------------------------------------------*/ /** * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the camel cased string. * @example * * _.camelCase('Foo Bar'); * // => 'fooBar' * * _.camelCase('--foo-bar--'); * // => 'fooBar' * * _.camelCase('__FOO_BAR__'); * // => 'fooBar' */ var camelCase = createCompounder(function(result, word, index) { word = word.toLowerCase(); return result + (index ? capitalize(word) : word); }); /** * Converts the first character of `string` to upper case and the remaining * to lower case. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to capitalize. * @returns {string} Returns the capitalized string. * @example * * _.capitalize('FRED'); * // => 'Fred' */ function capitalize(string) { return upperFirst(toString(string).toLowerCase()); } /** * Deburrs `string` by converting * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A) * letters to basic Latin letters and removing * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to deburr. * @returns {string} Returns the deburred string. * @example * * _.deburr('déjà vu'); * // => 'deja vu' */ function deburr(string) { string = toString(string); return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ''); } /** * Checks if `string` ends with the given target string. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to inspect. * @param {string} [target] The string to search for. * @param {number} [position=string.length] The position to search up to. * @returns {boolean} Returns `true` if `string` ends with `target`, * else `false`. * @example * * _.endsWith('abc', 'c'); * // => true * * _.endsWith('abc', 'b'); * // => false * * _.endsWith('abc', 'b', 2); * // => true */ function endsWith(string, target, position) { string = toString(string); target = baseToString(target); var length = string.length; position = position === undefined ? length : baseClamp(toInteger(position), 0, length); var end = position; position -= target.length; return position >= 0 && string.slice(position, end) == target; } /** * Converts the characters "&", "<", ">", '"', and "'" in `string` to their * corresponding HTML entities. * * **Note:** No other characters are escaped. To escape additional * characters use a third-party library like [_he_](https://mths.be/he). * * Though the ">" character is escaped for symmetry, characters like * ">" and "/" don't need escaping in HTML and have no special meaning * unless they're part of a tag or unquoted attribute value. See * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands) * (under "semi-related fun fact") for more details. * * When working with HTML you should always * [quote attribute values](http://wonko.com/post/html-escaping) to reduce * XSS vectors. * * @static * @since 0.1.0 * @memberOf _ * @category String * @param {string} [string=''] The string to escape. * @returns {string} Returns the escaped string. * @example * * _.escape('fred, barney, & pebbles'); * // => 'fred, barney, &amp; pebbles' */ function escape(string) { string = toString(string); return (string && reHasUnescapedHtml.test(string)) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; } /** * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+", * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to escape. * @returns {string} Returns the escaped string. * @example * * _.escapeRegExp('[lodash](https://lodash.com/)'); * // => '\[lodash\]\(https://lodash\.com/\)' */ function escapeRegExp(string) { string = toString(string); return (string && reHasRegExpChar.test(string)) ? string.replace(reRegExpChar, '\\$&') : string; } /** * Converts `string` to * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles). * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the kebab cased string. * @example * * _.kebabCase('Foo Bar'); * // => 'foo-bar' * * _.kebabCase('fooBar'); * // => 'foo-bar' * * _.kebabCase('__FOO_BAR__'); * // => 'foo-bar' */ var kebabCase = createCompounder(function(result, word, index) { return result + (index ? '-' : '') + word.toLowerCase(); }); /** * Converts `string`, as space separated words, to lower case. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the lower cased string. * @example * * _.lowerCase('--Foo-Bar--'); * // => 'foo bar' * * _.lowerCase('fooBar'); * // => 'foo bar' * * _.lowerCase('__FOO_BAR__'); * // => 'foo bar' */ var lowerCase = createCompounder(function(result, word, index) { return result + (index ? ' ' : '') + word.toLowerCase(); }); /** * Converts the first character of `string` to lower case. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the converted string. * @example * * _.lowerFirst('Fred'); * // => 'fred' * * _.lowerFirst('FRED'); * // => 'fRED' */ var lowerFirst = createCaseFirst('toLowerCase'); /** * Pads `string` on the left and right sides if it's shorter than `length`. * Padding characters are truncated if they can't be evenly divided by `length`. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to pad. * @param {number} [length=0] The padding length. * @param {string} [chars=' '] The string used as padding. * @returns {string} Returns the padded string. * @example * * _.pad('abc', 8); * // => ' abc ' * * _.pad('abc', 8, '_-'); * // => '_-abc_-_' * * _.pad('abc', 3); * // => 'abc' */ function pad(string, length, chars) { string = toString(string); length = toInteger(length); var strLength = length ? stringSize(string) : 0; if (!length || strLength >= length) { return string; } var mid = (length - strLength) / 2; return ( createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars) ); } /** * Pads `string` on the right side if it's shorter than `length`. Padding * characters are truncated if they exceed `length`. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to pad. * @param {number} [length=0] The padding length. * @param {string} [chars=' '] The string used as padding. * @returns {string} Returns the padded string. * @example * * _.padEnd('abc', 6); * // => 'abc ' * * _.padEnd('abc', 6, '_-'); * // => 'abc_-_' * * _.padEnd('abc', 3); * // => 'abc' */ function padEnd(string, length, chars) { string = toString(string); length = toInteger(length); var strLength = length ? stringSize(string) : 0; return (length && strLength < length) ? (string + createPadding(length - strLength, chars)) : string; } /** * Pads `string` on the left side if it's shorter than `length`. Padding * characters are truncated if they exceed `length`. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to pad. * @param {number} [length=0] The padding length. * @param {string} [chars=' '] The string used as padding. * @returns {string} Returns the padded string. * @example * * _.padStart('abc', 6); * // => ' abc' * * _.padStart('abc', 6, '_-'); * // => '_-_abc' * * _.padStart('abc', 3); * // => 'abc' */ function padStart(string, length, chars) { string = toString(string); length = toInteger(length); var strLength = length ? stringSize(string) : 0; return (length && strLength < length) ? (createPadding(length - strLength, chars) + string) : string; } /** * Converts `string` to an integer of the specified radix. If `radix` is * `undefined` or `0`, a `radix` of `10` is used unless `value` is a * hexadecimal, in which case a `radix` of `16` is used. * * **Note:** This method aligns with the * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`. * * @static * @memberOf _ * @since 1.1.0 * @category String * @param {string} string The string to convert. * @param {number} [radix=10] The radix to interpret `value` by. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {number} Returns the converted integer. * @example * * _.parseInt('08'); * // => 8 * * _.map(['6', '08', '10'], _.parseInt); * // => [6, 8, 10] */ function parseInt(string, radix, guard) { if (guard || radix == null) { radix = 0; } else if (radix) { radix = +radix; } return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0); } /** * Repeats the given string `n` times. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to repeat. * @param {number} [n=1] The number of times to repeat the string. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {string} Returns the repeated string. * @example * * _.repeat('*', 3); * // => '***' * * _.repeat('abc', 2); * // => 'abcabc' * * _.repeat('abc', 0); * // => '' */ function repeat(string, n, guard) { if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) { n = 1; } else { n = toInteger(n); } return baseRepeat(toString(string), n); } /** * Replaces matches for `pattern` in `string` with `replacement`. * * **Note:** This method is based on * [`String#replace`](https://mdn.io/String/replace). * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to modify. * @param {RegExp|string} pattern The pattern to replace. * @param {Function|string} replacement The match replacement. * @returns {string} Returns the modified string. * @example * * _.replace('Hi Fred', 'Fred', 'Barney'); * // => 'Hi Barney' */ function replace() { var args = arguments, string = toString(args[0]); return args.length < 3 ? string : string.replace(args[1], args[2]); } /** * Converts `string` to * [snake case](https://en.wikipedia.org/wiki/Snake_case). * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the snake cased string. * @example * * _.snakeCase('Foo Bar'); * // => 'foo_bar' * * _.snakeCase('fooBar'); * // => 'foo_bar' * * _.snakeCase('--FOO-BAR--'); * // => 'foo_bar' */ var snakeCase = createCompounder(function(result, word, index) { return result + (index ? '_' : '') + word.toLowerCase(); }); /** * Splits `string` by `separator`. * * **Note:** This method is based on * [`String#split`](https://mdn.io/String/split). * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to split. * @param {RegExp|string} separator The separator pattern to split by. * @param {number} [limit] The length to truncate results to. * @returns {Array} Returns the string segments. * @example * * _.split('a-b-c', '-', 2); * // => ['a', 'b'] */ function split(string, separator, limit) { if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) { separator = limit = undefined; } limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0; if (!limit) { return []; } string = toString(string); if (string && ( typeof separator == 'string' || (separator != null && !isRegExp(separator)) )) { separator = baseToString(separator); if (!separator && hasUnicode(string)) { return castSlice(stringToArray(string), 0, limit); } } return string.split(separator, limit); } /** * Converts `string` to * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage). * * @static * @memberOf _ * @since 3.1.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the start cased string. * @example * * _.startCase('--foo-bar--'); * // => 'Foo Bar' * * _.startCase('fooBar'); * // => 'Foo Bar' * * _.startCase('__FOO_BAR__'); * // => 'FOO BAR' */ var startCase = createCompounder(function(result, word, index) { return result + (index ? ' ' : '') + upperFirst(word); }); /** * Checks if `string` starts with the given target string. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to inspect. * @param {string} [target] The string to search for. * @param {number} [position=0] The position to search from. * @returns {boolean} Returns `true` if `string` starts with `target`, * else `false`. * @example * * _.startsWith('abc', 'a'); * // => true * * _.startsWith('abc', 'b'); * // => false * * _.startsWith('abc', 'b', 1); * // => true */ function startsWith(string, target, position) { string = toString(string); position = position == null ? 0 : baseClamp(toInteger(position), 0, string.length); target = baseToString(target); return string.slice(position, position + target.length) == target; } /** * Creates a compiled template function that can interpolate data properties * in "interpolate" delimiters, HTML-escape interpolated data properties in * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data * properties may be accessed as free variables in the template. If a setting * object is given, it takes precedence over `_.templateSettings` values. * * **Note:** In the development build `_.template` utilizes * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) * for easier debugging. * * For more information on precompiling templates see * [lodash's custom builds documentation](https://lodash.com/custom-builds). * * For more information on Chrome extension sandboxes see * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). * * @static * @since 0.1.0 * @memberOf _ * @category String * @param {string} [string=''] The template string. * @param {Object} [options={}] The options object. * @param {RegExp} [options.escape=_.templateSettings.escape] * The HTML "escape" delimiter. * @param {RegExp} [options.evaluate=_.templateSettings.evaluate] * The "evaluate" delimiter. * @param {Object} [options.imports=_.templateSettings.imports] * An object to import into the template as free variables. * @param {RegExp} [options.interpolate=_.templateSettings.interpolate] * The "interpolate" delimiter. * @param {string} [options.sourceURL='lodash.templateSources[n]'] * The sourceURL of the compiled template. * @param {string} [options.variable='obj'] * The data object variable name. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Function} Returns the compiled template function. * @example * * // Use the "interpolate" delimiter to create a compiled template. * var compiled = _.template('hello <%= user %>!'); * compiled({ 'user': 'fred' }); * // => 'hello fred!' * * // Use the HTML "escape" delimiter to escape data property values. * var compiled = _.template('<b><%- value %></b>'); * compiled({ 'value': '<script>' }); * // => '<b>&lt;script&gt;</b>' * * // Use the "evaluate" delimiter to execute JavaScript and generate HTML. * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>'); * compiled({ 'users': ['fred', 'barney'] }); * // => '<li>fred</li><li>barney</li>' * * // Use the internal `print` function in "evaluate" delimiters. * var compiled = _.template('<% print("hello " + user); %>!'); * compiled({ 'user': 'barney' }); * // => 'hello barney!' * * // Use the ES template literal delimiter as an "interpolate" delimiter. * // Disable support by replacing the "interpolate" delimiter. * var compiled = _.template('hello ${ user }!'); * compiled({ 'user': 'pebbles' }); * // => 'hello pebbles!' * * // Use backslashes to treat delimiters as plain text. * var compiled = _.template('<%= "\\<%- value %\\>" %>'); * compiled({ 'value': 'ignored' }); * // => '<%- value %>' * * // Use the `imports` option to import `jQuery` as `jq`. * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>'; * var compiled = _.template(text, { 'imports': { 'jq': jQuery } }); * compiled({ 'users': ['fred', 'barney'] }); * // => '<li>fred</li><li>barney</li>' * * // Use the `sourceURL` option to specify a custom sourceURL for the template. * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' }); * compiled(data); * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector. * * // Use the `variable` option to ensure a with-statement isn't used in the compiled template. * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' }); * compiled.source; * // => function(data) { * // var __t, __p = ''; * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!'; * // return __p; * // } * * // Use custom template delimiters. * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g; * var compiled = _.template('hello {{ user }}!'); * compiled({ 'user': 'mustache' }); * // => 'hello mustache!' * * // Use the `source` property to inline compiled templates for meaningful * // line numbers in error messages and stack traces. * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\ * var JST = {\ * "main": ' + _.template(mainText).source + '\ * };\ * '); */ function template(string, options, guard) { // Based on John Resig's `tmpl` implementation // (http://ejohn.org/blog/javascript-micro-templating/) // and Laura Doktorova's doT.js (https://github.com/olado/doT). var settings = lodash.templateSettings; if (guard && isIterateeCall(string, options, guard)) { options = undefined; } string = toString(string); options = assignInWith({}, options, settings, customDefaultsAssignIn); var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; // Compile the regexp to match each delimiter. var reDelimiters = RegExp( (options.escape || reNoMatch).source + '|' + interpolate.source + '|' + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' + (options.evaluate || reNoMatch).source + '|$' , 'g'); // Use a sourceURL for easier debugging. // The sourceURL gets injected into the source that's eval-ed, so be careful // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in // and escape the comment, thus injecting code that gets evaled. var sourceURL = '//# sourceURL=' + (hasOwnProperty.call(options, 'sourceURL') ? (options.sourceURL + '').replace(/\s/g, ' ') : ('lodash.templateSources[' + (++templateCounter) + ']') ) + '\n'; string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { interpolateValue || (interpolateValue = esTemplateValue); // Escape characters that can't be included in string literals. source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); // Replace delimiters with snippets. if (escapeValue) { isEscaping = true; source += "' +\n__e(" + escapeValue + ") +\n'"; } if (evaluateValue) { isEvaluating = true; source += "';\n" + evaluateValue + ";\n__p += '"; } if (interpolateValue) { source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; } index = offset + match.length; // The JS engine embedded in Adobe products needs `match` returned in // order to produce the correct `offset` value. return match; }); source += "';\n"; // If `variable` is not specified wrap a with-statement around the generated // code to add the data object to the top of the scope chain. var variable = hasOwnProperty.call(options, 'variable') && options.variable; if (!variable) { source = 'with (obj) {\n' + source + '\n}\n'; } // Cleanup code by stripping empty strings. source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source) .replace(reEmptyStringMiddle, '$1') .replace(reEmptyStringTrailing, '$1;'); // Frame code as the function body. source = 'function(' + (variable || 'obj') + ') {\n' + (variable ? '' : 'obj || (obj = {});\n' ) + "var __t, __p = ''" + (isEscaping ? ', __e = _.escape' : '' ) + (isEvaluating ? ', __j = Array.prototype.join;\n' + "function print() { __p += __j.call(arguments, '') }\n" : ';\n' ) + source + 'return __p\n}'; var result = attempt(function() { return Function(importsKeys, sourceURL + 'return ' + source) .apply(undefined, importsValues); }); // Provide the compiled function's source by its `toString` method or // the `source` property as a convenience for inlining compiled templates. result.source = source; if (isError(result)) { throw result; } return result; } /** * Converts `string`, as a whole, to lower case just like * [String#toLowerCase](https://mdn.io/toLowerCase). * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the lower cased string. * @example * * _.toLower('--Foo-Bar--'); * // => '--foo-bar--' * * _.toLower('fooBar'); * // => 'foobar' * * _.toLower('__FOO_BAR__'); * // => '__foo_bar__' */ function toLower(value) { return toString(value).toLowerCase(); } /** * Converts `string`, as a whole, to upper case just like * [String#toUpperCase](https://mdn.io/toUpperCase). * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the upper cased string. * @example * * _.toUpper('--foo-bar--'); * // => '--FOO-BAR--' * * _.toUpper('fooBar'); * // => 'FOOBAR' * * _.toUpper('__foo_bar__'); * // => '__FOO_BAR__' */ function toUpper(value) { return toString(value).toUpperCase(); } /** * Removes leading and trailing whitespace or specified characters from `string`. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to trim. * @param {string} [chars=whitespace] The characters to trim. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {string} Returns the trimmed string. * @example * * _.trim(' abc '); * // => 'abc' * * _.trim('-_-abc-_-', '_-'); * // => 'abc' * * _.map([' foo ', ' bar '], _.trim); * // => ['foo', 'bar'] */ function trim(string, chars, guard) { string = toString(string); if (string && (guard || chars === undefined)) { return string.replace(reTrim, ''); } if (!string || !(chars = baseToString(chars))) { return string; } var strSymbols = stringToArray(string), chrSymbols = stringToArray(chars), start = charsStartIndex(strSymbols, chrSymbols), end = charsEndIndex(strSymbols, chrSymbols) + 1; return castSlice(strSymbols, start, end).join(''); } /** * Removes trailing whitespace or specified characters from `string`. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to trim. * @param {string} [chars=whitespace] The characters to trim. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {string} Returns the trimmed string. * @example * * _.trimEnd(' abc '); * // => ' abc' * * _.trimEnd('-_-abc-_-', '_-'); * // => '-_-abc' */ function trimEnd(string, chars, guard) { string = toString(string); if (string && (guard || chars === undefined)) { return string.replace(reTrimEnd, ''); } if (!string || !(chars = baseToString(chars))) { return string; } var strSymbols = stringToArray(string), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1; return castSlice(strSymbols, 0, end).join(''); } /** * Removes leading whitespace or specified characters from `string`. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to trim. * @param {string} [chars=whitespace] The characters to trim. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {string} Returns the trimmed string. * @example * * _.trimStart(' abc '); * // => 'abc ' * * _.trimStart('-_-abc-_-', '_-'); * // => 'abc-_-' */ function trimStart(string, chars, guard) { string = toString(string); if (string && (guard || chars === undefined)) { return string.replace(reTrimStart, ''); } if (!string || !(chars = baseToString(chars))) { return string; } var strSymbols = stringToArray(string), start = charsStartIndex(strSymbols, stringToArray(chars)); return castSlice(strSymbols, start).join(''); } /** * Truncates `string` if it's longer than the given maximum string length. * The last characters of the truncated string are replaced with the omission * string which defaults to "...". * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to truncate. * @param {Object} [options={}] The options object. * @param {number} [options.length=30] The maximum string length. * @param {string} [options.omission='...'] The string to indicate text is omitted. * @param {RegExp|string} [options.separator] The separator pattern to truncate to. * @returns {string} Returns the truncated string. * @example * * _.truncate('hi-diddly-ho there, neighborino'); * // => 'hi-diddly-ho there, neighbo...' * * _.truncate('hi-diddly-ho there, neighborino', { * 'length': 24, * 'separator': ' ' * }); * // => 'hi-diddly-ho there,...' * * _.truncate('hi-diddly-ho there, neighborino', { * 'length': 24, * 'separator': /,? +/ * }); * // => 'hi-diddly-ho there...' * * _.truncate('hi-diddly-ho there, neighborino', { * 'omission': ' [...]' * }); * // => 'hi-diddly-ho there, neig [...]' */ function truncate(string, options) { var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION; if (isObject(options)) { var separator = 'separator' in options ? options.separator : separator; length = 'length' in options ? toInteger(options.length) : length; omission = 'omission' in options ? baseToString(options.omission) : omission; } string = toString(string); var strLength = string.length; if (hasUnicode(string)) { var strSymbols = stringToArray(string); strLength = strSymbols.length; } if (length >= strLength) { return string; } var end = length - stringSize(omission); if (end < 1) { return omission; } var result = strSymbols ? castSlice(strSymbols, 0, end).join('') : string.slice(0, end); if (separator === undefined) { return result + omission; } if (strSymbols) { end += (result.length - end); } if (isRegExp(separator)) { if (string.slice(end).search(separator)) { var match, substring = result; if (!separator.global) { separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g'); } separator.lastIndex = 0; while ((match = separator.exec(substring))) { var newEnd = match.index; } result = result.slice(0, newEnd === undefined ? end : newEnd); } } else if (string.indexOf(baseToString(separator), end) != end) { var index = result.lastIndexOf(separator); if (index > -1) { result = result.slice(0, index); } } return result + omission; } /** * The inverse of `_.escape`; this method converts the HTML entities * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to * their corresponding characters. * * **Note:** No other HTML entities are unescaped. To unescape additional * HTML entities use a third-party library like [_he_](https://mths.be/he). * * @static * @memberOf _ * @since 0.6.0 * @category String * @param {string} [string=''] The string to unescape. * @returns {string} Returns the unescaped string. * @example * * _.unescape('fred, barney, &amp; pebbles'); * // => 'fred, barney, & pebbles' */ function unescape(string) { string = toString(string); return (string && reHasEscapedHtml.test(string)) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string; } /** * Converts `string`, as space separated words, to upper case. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the upper cased string. * @example * * _.upperCase('--foo-bar'); * // => 'FOO BAR' * * _.upperCase('fooBar'); * // => 'FOO BAR' * * _.upperCase('__foo_bar__'); * // => 'FOO BAR' */ var upperCase = createCompounder(function(result, word, index) { return result + (index ? ' ' : '') + word.toUpperCase(); }); /** * Converts the first character of `string` to upper case. * * @static * @memberOf _ * @since 4.0.0 * @category String * @param {string} [string=''] The string to convert. * @returns {string} Returns the converted string. * @example * * _.upperFirst('fred'); * // => 'Fred' * * _.upperFirst('FRED'); * // => 'FRED' */ var upperFirst = createCaseFirst('toUpperCase'); /** * Splits `string` into an array of its words. * * @static * @memberOf _ * @since 3.0.0 * @category String * @param {string} [string=''] The string to inspect. * @param {RegExp|string} [pattern] The pattern to match words. * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. * @returns {Array} Returns the words of `string`. * @example * * _.words('fred, barney, & pebbles'); * // => ['fred', 'barney', 'pebbles'] * * _.words('fred, barney, & pebbles', /[^, ]+/g); * // => ['fred', 'barney', '&', 'pebbles'] */ function words(string, pattern, guard) { string = toString(string); pattern = guard ? undefined : pattern; if (pattern === undefined) { return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); } return string.match(pattern) || []; } /*------------------------------------------------------------------------*/ /** * Attempts to invoke `func`, returning either the result or the caught error * object. Any additional arguments are provided to `func` when it's invoked. * * @static * @memberOf _ * @since 3.0.0 * @category Util * @param {Function} func The function to attempt. * @param {...*} [args] The arguments to invoke `func` with. * @returns {*} Returns the `func` result or error object. * @example * * // Avoid throwing errors for invalid selectors. * var elements = _.attempt(function(selector) { * return document.querySelectorAll(selector); * }, '>_>'); * * if (_.isError(elements)) { * elements = []; * } */ var attempt = baseRest(function(func, args) { try { return apply(func, undefined, args); } catch (e) { return isError(e) ? e : new Error(e); } }); /** * Binds methods of an object to the object itself, overwriting the existing * method. * * **Note:** This method doesn't set the "length" property of bound functions. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {Object} object The object to bind and assign the bound methods to. * @param {...(string|string[])} methodNames The object method names to bind. * @returns {Object} Returns `object`. * @example * * var view = { * 'label': 'docs', * 'click': function() { * console.log('clicked ' + this.label); * } * }; * * _.bindAll(view, ['click']); * jQuery(element).on('click', view.click); * // => Logs 'clicked docs' when clicked. */ var bindAll = flatRest(function(object, methodNames) { arrayEach(methodNames, function(key) { key = toKey(key); baseAssignValue(object, key, bind(object[key], object)); }); return object; }); /** * Creates a function that iterates over `pairs` and invokes the corresponding * function of the first predicate to return truthy. The predicate-function * pairs are invoked with the `this` binding and arguments of the created * function. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {Array} pairs The predicate-function pairs. * @returns {Function} Returns the new composite function. * @example * * var func = _.cond([ * [_.matches({ 'a': 1 }), _.constant('matches A')], * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')], * [_.stubTrue, _.constant('no match')] * ]); * * func({ 'a': 1, 'b': 2 }); * // => 'matches A' * * func({ 'a': 0, 'b': 1 }); * // => 'matches B' * * func({ 'a': '1', 'b': '2' }); * // => 'no match' */ function cond(pairs) { var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); pairs = !length ? [] : arrayMap(pairs, function(pair) { if (typeof pair[1] != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } return [toIteratee(pair[0]), pair[1]]; }); return baseRest(function(args) { var index = -1; while (++index < length) { var pair = pairs[index]; if (apply(pair[0], this, args)) { return apply(pair[1], this, args); } } }); } /** * Creates a function that invokes the predicate properties of `source` with * the corresponding property values of a given object, returning `true` if * all predicates return truthy, else `false`. * * **Note:** The created function is equivalent to `_.conformsTo` with * `source` partially applied. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {Object} source The object of property predicates to conform to. * @returns {Function} Returns the new spec function. * @example * * var objects = [ * { 'a': 2, 'b': 1 }, * { 'a': 1, 'b': 2 } * ]; * * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } })); * // => [{ 'a': 1, 'b': 2 }] */ function conforms(source) { return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); } /** * Creates a function that returns `value`. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {*} value The value to return from the new function. * @returns {Function} Returns the new constant function. * @example * * var objects = _.times(2, _.constant({ 'a': 1 })); * * console.log(objects); * // => [{ 'a': 1 }, { 'a': 1 }] * * console.log(objects[0] === objects[1]); * // => true */ function constant(value) { return function() { return value; }; } /** * Checks `value` to determine whether a default value should be returned in * its place. The `defaultValue` is returned if `value` is `NaN`, `null`, * or `undefined`. * * @static * @memberOf _ * @since 4.14.0 * @category Util * @param {*} value The value to check. * @param {*} defaultValue The default value. * @returns {*} Returns the resolved value. * @example * * _.defaultTo(1, 10); * // => 1 * * _.defaultTo(undefined, 10); * // => 10 */ function defaultTo(value, defaultValue) { return (value == null || value !== value) ? defaultValue : value; } /** * Creates a function that returns the result of invoking the given functions * with the `this` binding of the created function, where each successive * invocation is supplied the return value of the previous. * * @static * @memberOf _ * @since 3.0.0 * @category Util * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. * @see _.flowRight * @example * * function square(n) { * return n * n; * } * * var addSquare = _.flow([_.add, square]); * addSquare(1, 2); * // => 9 */ var flow = createFlow(); /** * This method is like `_.flow` except that it creates a function that * invokes the given functions from right to left. * * @static * @since 3.0.0 * @memberOf _ * @category Util * @param {...(Function|Function[])} [funcs] The functions to invoke. * @returns {Function} Returns the new composite function. * @see _.flow * @example * * function square(n) { * return n * n; * } * * var addSquare = _.flowRight([square, _.add]); * addSquare(1, 2); * // => 9 */ var flowRight = createFlow(true); /** * This method returns the first argument it receives. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'a': 1 }; * * console.log(_.identity(object) === object); * // => true */ function identity(value) { return value; } /** * Creates a function that invokes `func` with the arguments of the created * function. If `func` is a property name, the created function returns the * property value for a given element. If `func` is an array or object, the * created function returns `true` for elements that contain the equivalent * source properties, otherwise it returns `false`. * * @static * @since 4.0.0 * @memberOf _ * @category Util * @param {*} [func=_.identity] The value to convert to a callback. * @returns {Function} Returns the callback. * @example * * var users = [ * { 'user': 'barney', 'age': 36, 'active': true }, * { 'user': 'fred', 'age': 40, 'active': false } * ]; * * // The `_.matches` iteratee shorthand. * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true })); * // => [{ 'user': 'barney', 'age': 36, 'active': true }] * * // The `_.matchesProperty` iteratee shorthand. * _.filter(users, _.iteratee(['user', 'fred'])); * // => [{ 'user': 'fred', 'age': 40 }] * * // The `_.property` iteratee shorthand. * _.map(users, _.iteratee('user')); * // => ['barney', 'fred'] * * // Create custom iteratee shorthands. * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) { * return !_.isRegExp(func) ? iteratee(func) : function(string) { * return func.test(string); * }; * }); * * _.filter(['abc', 'def'], /ef/); * // => ['def'] */ function iteratee(func) { return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG)); } /** * Creates a function that performs a partial deep comparison between a given * object and `source`, returning `true` if the given object has equivalent * property values, else `false`. * * **Note:** The created function is equivalent to `_.isMatch` with `source` * partially applied. * * Partial comparisons will match empty array and empty object `source` * values against any array or object value, respectively. See `_.isEqual` * for a list of supported value comparisons. * * **Note:** Multiple values can be checked by combining several matchers * using `_.overSome` * * @static * @memberOf _ * @since 3.0.0 * @category Util * @param {Object} source The object of property values to match. * @returns {Function} Returns the new spec function. * @example * * var objects = [ * { 'a': 1, 'b': 2, 'c': 3 }, * { 'a': 4, 'b': 5, 'c': 6 } * ]; * * _.filter(objects, _.matches({ 'a': 4, 'c': 6 })); * // => [{ 'a': 4, 'b': 5, 'c': 6 }] * * // Checking for several possible values * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })])); * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }] */ function matches(source) { return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); } /** * Creates a function that performs a partial deep comparison between the * value at `path` of a given object to `srcValue`, returning `true` if the * object value is equivalent, else `false`. * * **Note:** Partial comparisons will match empty array and empty object * `srcValue` values against any array or object value, respectively. See * `_.isEqual` for a list of supported value comparisons. * * **Note:** Multiple values can be checked by combining several matchers * using `_.overSome` * * @static * @memberOf _ * @since 3.2.0 * @category Util * @param {Array|string} path The path of the property to get. * @param {*} srcValue The value to match. * @returns {Function} Returns the new spec function. * @example * * var objects = [ * { 'a': 1, 'b': 2, 'c': 3 }, * { 'a': 4, 'b': 5, 'c': 6 } * ]; * * _.find(objects, _.matchesProperty('a', 4)); * // => { 'a': 4, 'b': 5, 'c': 6 } * * // Checking for several possible values * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)])); * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }] */ function matchesProperty(path, srcValue) { return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG)); } /** * Creates a function that invokes the method at `path` of a given object. * Any additional arguments are provided to the invoked method. * * @static * @memberOf _ * @since 3.7.0 * @category Util * @param {Array|string} path The path of the method to invoke. * @param {...*} [args] The arguments to invoke the method with. * @returns {Function} Returns the new invoker function. * @example * * var objects = [ * { 'a': { 'b': _.constant(2) } }, * { 'a': { 'b': _.constant(1) } } * ]; * * _.map(objects, _.method('a.b')); * // => [2, 1] * * _.map(objects, _.method(['a', 'b'])); * // => [2, 1] */ var method = baseRest(function(path, args) { return function(object) { return baseInvoke(object, path, args); }; }); /** * The opposite of `_.method`; this method creates a function that invokes * the method at a given path of `object`. Any additional arguments are * provided to the invoked method. * * @static * @memberOf _ * @since 3.7.0 * @category Util * @param {Object} object The object to query. * @param {...*} [args] The arguments to invoke the method with. * @returns {Function} Returns the new invoker function. * @example * * var array = _.times(3, _.constant), * object = { 'a': array, 'b': array, 'c': array }; * * _.map(['a[2]', 'c[0]'], _.methodOf(object)); * // => [2, 0] * * _.map([['a', '2'], ['c', '0']], _.methodOf(object)); * // => [2, 0] */ var methodOf = baseRest(function(object, args) { return function(path) { return baseInvoke(object, path, args); }; }); /** * Adds all own enumerable string keyed function properties of a source * object to the destination object. If `object` is a function, then methods * are added to its prototype as well. * * **Note:** Use `_.runInContext` to create a pristine `lodash` function to * avoid conflicts caused by modifying the original. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {Function|Object} [object=lodash] The destination object. * @param {Object} source The object of functions to add. * @param {Object} [options={}] The options object. * @param {boolean} [options.chain=true] Specify whether mixins are chainable. * @returns {Function|Object} Returns `object`. * @example * * function vowels(string) { * return _.filter(string, function(v) { * return /[aeiou]/i.test(v); * }); * } * * _.mixin({ 'vowels': vowels }); * _.vowels('fred'); * // => ['e'] * * _('fred').vowels().value(); * // => ['e'] * * _.mixin({ 'vowels': vowels }, { 'chain': false }); * _('fred').vowels(); * // => ['e'] */ function mixin(object, source, options) { var props = keys(source), methodNames = baseFunctions(source, props); if (options == null && !(isObject(source) && (methodNames.length || !props.length))) { options = source; source = object; object = this; methodNames = baseFunctions(source, keys(source)); } var chain = !(isObject(options) && 'chain' in options) || !!options.chain, isFunc = isFunction(object); arrayEach(methodNames, function(methodName) { var func = source[methodName]; object[methodName] = func; if (isFunc) { object.prototype[methodName] = function() { var chainAll = this.__chain__; if (chain || chainAll) { var result = object(this.__wrapped__), actions = result.__actions__ = copyArray(this.__actions__); actions.push({ 'func': func, 'args': arguments, 'thisArg': object }); result.__chain__ = chainAll; return result; } return func.apply(object, arrayPush([this.value()], arguments)); }; } }); return object; } /** * Reverts the `_` variable to its previous value and returns a reference to * the `lodash` function. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @returns {Function} Returns the `lodash` function. * @example * * var lodash = _.noConflict(); */ function noConflict() { if (root._ === this) { root._ = oldDash; } return this; } /** * This method returns `undefined`. * * @static * @memberOf _ * @since 2.3.0 * @category Util * @example * * _.times(2, _.noop); * // => [undefined, undefined] */ function noop() { // No operation performed. } /** * Creates a function that gets the argument at index `n`. If `n` is negative, * the nth argument from the end is returned. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {number} [n=0] The index of the argument to return. * @returns {Function} Returns the new pass-thru function. * @example * * var func = _.nthArg(1); * func('a', 'b', 'c', 'd'); * // => 'b' * * var func = _.nthArg(-2); * func('a', 'b', 'c', 'd'); * // => 'c' */ function nthArg(n) { n = toInteger(n); return baseRest(function(args) { return baseNth(args, n); }); } /** * Creates a function that invokes `iteratees` with the arguments it receives * and returns their results. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {...(Function|Function[])} [iteratees=[_.identity]] * The iteratees to invoke. * @returns {Function} Returns the new function. * @example * * var func = _.over([Math.max, Math.min]); * * func(1, 2, 3, 4); * // => [4, 1] */ var over = createOver(arrayMap); /** * Creates a function that checks if **all** of the `predicates` return * truthy when invoked with the arguments it receives. * * Following shorthands are possible for providing predicates. * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate. * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {...(Function|Function[])} [predicates=[_.identity]] * The predicates to check. * @returns {Function} Returns the new function. * @example * * var func = _.overEvery([Boolean, isFinite]); * * func('1'); * // => true * * func(null); * // => false * * func(NaN); * // => false */ var overEvery = createOver(arrayEvery); /** * Creates a function that checks if **any** of the `predicates` return * truthy when invoked with the arguments it receives. * * Following shorthands are possible for providing predicates. * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate. * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {...(Function|Function[])} [predicates=[_.identity]] * The predicates to check. * @returns {Function} Returns the new function. * @example * * var func = _.overSome([Boolean, isFinite]); * * func('1'); * // => true * * func(null); * // => true * * func(NaN); * // => false * * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }]) * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]]) */ var overSome = createOver(arraySome); /** * Creates a function that returns the value at `path` of a given object. * * @static * @memberOf _ * @since 2.4.0 * @category Util * @param {Array|string} path The path of the property to get. * @returns {Function} Returns the new accessor function. * @example * * var objects = [ * { 'a': { 'b': 2 } }, * { 'a': { 'b': 1 } } * ]; * * _.map(objects, _.property('a.b')); * // => [2, 1] * * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); * // => [1, 2] */ function property(path) { return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); } /** * The opposite of `_.property`; this method creates a function that returns * the value at a given path of `object`. * * @static * @memberOf _ * @since 3.0.0 * @category Util * @param {Object} object The object to query. * @returns {Function} Returns the new accessor function. * @example * * var array = [0, 1, 2], * object = { 'a': array, 'b': array, 'c': array }; * * _.map(['a[2]', 'c[0]'], _.propertyOf(object)); * // => [2, 0] * * _.map([['a', '2'], ['c', '0']], _.propertyOf(object)); * // => [2, 0] */ function propertyOf(object) { return function(path) { return object == null ? undefined : baseGet(object, path); }; } /** * Creates an array of numbers (positive and/or negative) progressing from * `start` up to, but not including, `end`. A step of `-1` is used if a negative * `start` is specified without an `end` or `step`. If `end` is not specified, * it's set to `start` with `start` then set to `0`. * * **Note:** JavaScript follows the IEEE-754 standard for resolving * floating-point values which can produce unexpected results. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {number} [start=0] The start of the range. * @param {number} end The end of the range. * @param {number} [step=1] The value to increment or decrement by. * @returns {Array} Returns the range of numbers. * @see _.inRange, _.rangeRight * @example * * _.range(4); * // => [0, 1, 2, 3] * * _.range(-4); * // => [0, -1, -2, -3] * * _.range(1, 5); * // => [1, 2, 3, 4] * * _.range(0, 20, 5); * // => [0, 5, 10, 15] * * _.range(0, -4, -1); * // => [0, -1, -2, -3] * * _.range(1, 4, 0); * // => [1, 1, 1] * * _.range(0); * // => [] */ var range = createRange(); /** * This method is like `_.range` except that it populates values in * descending order. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {number} [start=0] The start of the range. * @param {number} end The end of the range. * @param {number} [step=1] The value to increment or decrement by. * @returns {Array} Returns the range of numbers. * @see _.inRange, _.range * @example * * _.rangeRight(4); * // => [3, 2, 1, 0] * * _.rangeRight(-4); * // => [-3, -2, -1, 0] * * _.rangeRight(1, 5); * // => [4, 3, 2, 1] * * _.rangeRight(0, 20, 5); * // => [15, 10, 5, 0] * * _.rangeRight(0, -4, -1); * // => [-3, -2, -1, 0] * * _.rangeRight(1, 4, 0); * // => [1, 1, 1] * * _.rangeRight(0); * // => [] */ var rangeRight = createRange(true); /** * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Array} Returns the new empty array. * @example * * var arrays = _.times(2, _.stubArray); * * console.log(arrays); * // => [[], []] * * console.log(arrays[0] === arrays[1]); * // => false */ function stubArray() { return []; } /** * This method returns `false`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `false`. * @example * * _.times(2, _.stubFalse); * // => [false, false] */ function stubFalse() { return false; } /** * This method returns a new empty object. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {Object} Returns the new empty object. * @example * * var objects = _.times(2, _.stubObject); * * console.log(objects); * // => [{}, {}] * * console.log(objects[0] === objects[1]); * // => false */ function stubObject() { return {}; } /** * This method returns an empty string. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {string} Returns the empty string. * @example * * _.times(2, _.stubString); * // => ['', ''] */ function stubString() { return ''; } /** * This method returns `true`. * * @static * @memberOf _ * @since 4.13.0 * @category Util * @returns {boolean} Returns `true`. * @example * * _.times(2, _.stubTrue); * // => [true, true] */ function stubTrue() { return true; } /** * Invokes the iteratee `n` times, returning an array of the results of * each invocation. The iteratee is invoked with one argument; (index). * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {number} n The number of times to invoke `iteratee`. * @param {Function} [iteratee=_.identity] The function invoked per iteration. * @returns {Array} Returns the array of results. * @example * * _.times(3, String); * // => ['0', '1', '2'] * * _.times(4, _.constant(0)); * // => [0, 0, 0, 0] */ function times(n, iteratee) { n = toInteger(n); if (n < 1 || n > MAX_SAFE_INTEGER) { return []; } var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH); iteratee = getIteratee(iteratee); n -= MAX_ARRAY_LENGTH; var result = baseTimes(length, iteratee); while (++index < n) { iteratee(index); } return result; } /** * Converts `value` to a property path array. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {*} value The value to convert. * @returns {Array} Returns the new property path array. * @example * * _.toPath('a.b.c'); * // => ['a', 'b', 'c'] * * _.toPath('a[0].b.c'); * // => ['a', '0', 'b', 'c'] */ function toPath(value) { if (isArray(value)) { return arrayMap(value, toKey); } return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); } /** * Generates a unique ID. If `prefix` is given, the ID is appended to it. * * @static * @since 0.1.0 * @memberOf _ * @category Util * @param {string} [prefix=''] The value to prefix the ID with. * @returns {string} Returns the unique ID. * @example * * _.uniqueId('contact_'); * // => 'contact_104' * * _.uniqueId(); * // => '105' */ function uniqueId(prefix) { var id = ++idCounter; return toString(prefix) + id; } /*------------------------------------------------------------------------*/ /** * Adds two numbers. * * @static * @memberOf _ * @since 3.4.0 * @category Math * @param {number} augend The first number in an addition. * @param {number} addend The second number in an addition. * @returns {number} Returns the total. * @example * * _.add(6, 4); * // => 10 */ var add = createMathOperation(function(augend, addend) { return augend + addend; }, 0); /** * Computes `number` rounded up to `precision`. * * @static * @memberOf _ * @since 3.10.0 * @category Math * @param {number} number The number to round up. * @param {number} [precision=0] The precision to round up to. * @returns {number} Returns the rounded up number. * @example * * _.ceil(4.006); * // => 5 * * _.ceil(6.004, 2); * // => 6.01 * * _.ceil(6040, -2); * // => 6100 */ var ceil = createRound('ceil'); /** * Divide two numbers. * * @static * @memberOf _ * @since 4.7.0 * @category Math * @param {number} dividend The first number in a division. * @param {number} divisor The second number in a division. * @returns {number} Returns the quotient. * @example * * _.divide(6, 4); * // => 1.5 */ var divide = createMathOperation(function(dividend, divisor) { return dividend / divisor; }, 1); /** * Computes `number` rounded down to `precision`. * * @static * @memberOf _ * @since 3.10.0 * @category Math * @param {number} number The number to round down. * @param {number} [precision=0] The precision to round down to. * @returns {number} Returns the rounded down number. * @example * * _.floor(4.006); * // => 4 * * _.floor(0.046, 2); * // => 0.04 * * _.floor(4060, -2); * // => 4000 */ var floor = createRound('floor'); /** * Computes the maximum value of `array`. If `array` is empty or falsey, * `undefined` is returned. * * @static * @since 0.1.0 * @memberOf _ * @category Math * @param {Array} array The array to iterate over. * @returns {*} Returns the maximum value. * @example * * _.max([4, 2, 8, 6]); * // => 8 * * _.max([]); * // => undefined */ function max(array) { return (array && array.length) ? baseExtremum(array, identity, baseGt) : undefined; } /** * This method is like `_.max` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which * the value is ranked. The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {*} Returns the maximum value. * @example * * var objects = [{ 'n': 1 }, { 'n': 2 }]; * * _.maxBy(objects, function(o) { return o.n; }); * // => { 'n': 2 } * * // The `_.property` iteratee shorthand. * _.maxBy(objects, 'n'); * // => { 'n': 2 } */ function maxBy(array, iteratee) { return (array && array.length) ? baseExtremum(array, getIteratee(iteratee, 2), baseGt) : undefined; } /** * Computes the mean of the values in `array`. * * @static * @memberOf _ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. * @returns {number} Returns the mean. * @example * * _.mean([4, 2, 8, 6]); * // => 5 */ function mean(array) { return baseMean(array, identity); } /** * This method is like `_.mean` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the value to be averaged. * The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.7.0 * @category Math * @param {Array} array The array to iterate over. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the mean. * @example * * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]; * * _.meanBy(objects, function(o) { return o.n; }); * // => 5 * * // The `_.property` iteratee shorthand. * _.meanBy(objects, 'n'); * // => 5 */ function meanBy(array, iteratee) { return baseMean(array, getIteratee(iteratee, 2)); } /** * Computes the minimum value of `array`. If `array` is empty or falsey, * `undefined` is returned. * * @static * @since 0.1.0 * @memberOf _ * @category Math * @param {Array} array The array to iterate over. * @returns {*} Returns the minimum value. * @example * * _.min([4, 2, 8, 6]); * // => 2 * * _.min([]); * // => undefined */ function min(array) { return (array && array.length) ? baseExtremum(array, identity, baseLt) : undefined; } /** * This method is like `_.min` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the criterion by which * the value is ranked. The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {*} Returns the minimum value. * @example * * var objects = [{ 'n': 1 }, { 'n': 2 }]; * * _.minBy(objects, function(o) { return o.n; }); * // => { 'n': 1 } * * // The `_.property` iteratee shorthand. * _.minBy(objects, 'n'); * // => { 'n': 1 } */ function minBy(array, iteratee) { return (array && array.length) ? baseExtremum(array, getIteratee(iteratee, 2), baseLt) : undefined; } /** * Multiply two numbers. * * @static * @memberOf _ * @since 4.7.0 * @category Math * @param {number} multiplier The first number in a multiplication. * @param {number} multiplicand The second number in a multiplication. * @returns {number} Returns the product. * @example * * _.multiply(6, 4); * // => 24 */ var multiply = createMathOperation(function(multiplier, multiplicand) { return multiplier * multiplicand; }, 1); /** * Computes `number` rounded to `precision`. * * @static * @memberOf _ * @since 3.10.0 * @category Math * @param {number} number The number to round. * @param {number} [precision=0] The precision to round to. * @returns {number} Returns the rounded number. * @example * * _.round(4.006); * // => 4 * * _.round(4.006, 2); * // => 4.01 * * _.round(4060, -2); * // => 4100 */ var round = createRound('round'); /** * Subtract two numbers. * * @static * @memberOf _ * @since 4.0.0 * @category Math * @param {number} minuend The first number in a subtraction. * @param {number} subtrahend The second number in a subtraction. * @returns {number} Returns the difference. * @example * * _.subtract(6, 4); * // => 2 */ var subtract = createMathOperation(function(minuend, subtrahend) { return minuend - subtrahend; }, 0); /** * Computes the sum of the values in `array`. * * @static * @memberOf _ * @since 3.4.0 * @category Math * @param {Array} array The array to iterate over. * @returns {number} Returns the sum. * @example * * _.sum([4, 2, 8, 6]); * // => 20 */ function sum(array) { return (array && array.length) ? baseSum(array, identity) : 0; } /** * This method is like `_.sum` except that it accepts `iteratee` which is * invoked for each element in `array` to generate the value to be summed. * The iteratee is invoked with one argument: (value). * * @static * @memberOf _ * @since 4.0.0 * @category Math * @param {Array} array The array to iterate over. * @param {Function} [iteratee=_.identity] The iteratee invoked per element. * @returns {number} Returns the sum. * @example * * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]; * * _.sumBy(objects, function(o) { return o.n; }); * // => 20 * * // The `_.property` iteratee shorthand. * _.sumBy(objects, 'n'); * // => 20 */ function sumBy(array, iteratee) { return (array && array.length) ? baseSum(array, getIteratee(iteratee, 2)) : 0; } /*------------------------------------------------------------------------*/ // Add methods that return wrapped values in chain sequences. lodash.after = after; lodash.ary = ary; lodash.assign = assign; lodash.assignIn = assignIn; lodash.assignInWith = assignInWith; lodash.assignWith = assignWith; lodash.at = at; lodash.before = before; lodash.bind = bind; lodash.bindAll = bindAll; lodash.bindKey = bindKey; lodash.castArray = castArray; lodash.chain = chain; lodash.chunk = chunk; lodash.compact = compact; lodash.concat = concat; lodash.cond = cond; lodash.conforms = conforms; lodash.constant = constant; lodash.countBy = countBy; lodash.create = create; lodash.curry = curry; lodash.curryRight = curryRight; lodash.debounce = debounce; lodash.defaults = defaults; lodash.defaultsDeep = defaultsDeep; lodash.defer = defer; lodash.delay = delay; lodash.difference = difference; lodash.differenceBy = differenceBy; lodash.differenceWith = differenceWith; lodash.drop = drop; lodash.dropRight = dropRight; lodash.dropRightWhile = dropRightWhile; lodash.dropWhile = dropWhile; lodash.fill = fill; lodash.filter = filter; lodash.flatMap = flatMap; lodash.flatMapDeep = flatMapDeep; lodash.flatMapDepth = flatMapDepth; lodash.flatten = flatten; lodash.flattenDeep = flattenDeep; lodash.flattenDepth = flattenDepth; lodash.flip = flip; lodash.flow = flow; lodash.flowRight = flowRight; lodash.fromPairs = fromPairs; lodash.functions = functions; lodash.functionsIn = functionsIn; lodash.groupBy = groupBy; lodash.initial = initial; lodash.intersection = intersection; lodash.intersectionBy = intersectionBy; lodash.intersectionWith = intersectionWith; lodash.invert = invert; lodash.invertBy = invertBy; lodash.invokeMap = invokeMap; lodash.iteratee = iteratee; lodash.keyBy = keyBy; lodash.keys = keys; lodash.keysIn = keysIn; lodash.map = map; lodash.mapKeys = mapKeys; lodash.mapValues = mapValues; lodash.matches = matches; lodash.matchesProperty = matchesProperty; lodash.memoize = memoize; lodash.merge = merge; lodash.mergeWith = mergeWith; lodash.method = method; lodash.methodOf = methodOf; lodash.mixin = mixin; lodash.negate = negate; lodash.nthArg = nthArg; lodash.omit = omit; lodash.omitBy = omitBy; lodash.once = once; lodash.orderBy = orderBy; lodash.over = over; lodash.overArgs = overArgs; lodash.overEvery = overEvery; lodash.overSome = overSome; lodash.partial = partial; lodash.partialRight = partialRight; lodash.partition = partition; lodash.pick = pick; lodash.pickBy = pickBy; lodash.property = property; lodash.propertyOf = propertyOf; lodash.pull = pull; lodash.pullAll = pullAll; lodash.pullAllBy = pullAllBy; lodash.pullAllWith = pullAllWith; lodash.pullAt = pullAt; lodash.range = range; lodash.rangeRight = rangeRight; lodash.rearg = rearg; lodash.reject = reject; lodash.remove = remove; lodash.rest = rest; lodash.reverse = reverse; lodash.sampleSize = sampleSize; lodash.set = set; lodash.setWith = setWith; lodash.shuffle = shuffle; lodash.slice = slice; lodash.sortBy = sortBy; lodash.sortedUniq = sortedUniq; lodash.sortedUniqBy = sortedUniqBy; lodash.split = split; lodash.spread = spread; lodash.tail = tail; lodash.take = take; lodash.takeRight = takeRight; lodash.takeRightWhile = takeRightWhile; lodash.takeWhile = takeWhile; lodash.tap = tap; lodash.throttle = throttle; lodash.thru = thru; lodash.toArray = toArray; lodash.toPairs = toPairs; lodash.toPairsIn = toPairsIn; lodash.toPath = toPath; lodash.toPlainObject = toPlainObject; lodash.transform = transform; lodash.unary = unary; lodash.union = union; lodash.unionBy = unionBy; lodash.unionWith = unionWith; lodash.uniq = uniq; lodash.uniqBy = uniqBy; lodash.uniqWith = uniqWith; lodash.unset = unset; lodash.unzip = unzip; lodash.unzipWith = unzipWith; lodash.update = update; lodash.updateWith = updateWith; lodash.values = values; lodash.valuesIn = valuesIn; lodash.without = without; lodash.words = words; lodash.wrap = wrap; lodash.xor = xor; lodash.xorBy = xorBy; lodash.xorWith = xorWith; lodash.zip = zip; lodash.zipObject = zipObject; lodash.zipObjectDeep = zipObjectDeep; lodash.zipWith = zipWith; // Add aliases. lodash.entries = toPairs; lodash.entriesIn = toPairsIn; lodash.extend = assignIn; lodash.extendWith = assignInWith; // Add methods to `lodash.prototype`. mixin(lodash, lodash); /*------------------------------------------------------------------------*/ // Add methods that return unwrapped values in chain sequences. lodash.add = add; lodash.attempt = attempt; lodash.camelCase = camelCase; lodash.capitalize = capitalize; lodash.ceil = ceil; lodash.clamp = clamp; lodash.clone = clone; lodash.cloneDeep = cloneDeep; lodash.cloneDeepWith = cloneDeepWith; lodash.cloneWith = cloneWith; lodash.conformsTo = conformsTo; lodash.deburr = deburr; lodash.defaultTo = defaultTo; lodash.divide = divide; lodash.endsWith = endsWith; lodash.eq = eq; lodash.escape = escape; lodash.escapeRegExp = escapeRegExp; lodash.every = every; lodash.find = find; lodash.findIndex = findIndex; lodash.findKey = findKey; lodash.findLast = findLast; lodash.findLastIndex = findLastIndex; lodash.findLastKey = findLastKey; lodash.floor = floor; lodash.forEach = forEach; lodash.forEachRight = forEachRight; lodash.forIn = forIn; lodash.forInRight = forInRight; lodash.forOwn = forOwn; lodash.forOwnRight = forOwnRight; lodash.get = get; lodash.gt = gt; lodash.gte = gte; lodash.has = has; lodash.hasIn = hasIn; lodash.head = head; lodash.identity = identity; lodash.includes = includes; lodash.indexOf = indexOf; lodash.inRange = inRange; lodash.invoke = invoke; lodash.isArguments = isArguments; lodash.isArray = isArray; lodash.isArrayBuffer = isArrayBuffer; lodash.isArrayLike = isArrayLike; lodash.isArrayLikeObject = isArrayLikeObject; lodash.isBoolean = isBoolean; lodash.isBuffer = isBuffer; lodash.isDate = isDate; lodash.isElement = isElement; lodash.isEmpty = isEmpty; lodash.isEqual = isEqual; lodash.isEqualWith = isEqualWith; lodash.isError = isError; lodash.isFinite = isFinite; lodash.isFunction = isFunction; lodash.isInteger = isInteger; lodash.isLength = isLength; lodash.isMap = isMap; lodash.isMatch = isMatch; lodash.isMatchWith = isMatchWith; lodash.isNaN = isNaN; lodash.isNative = isNative; lodash.isNil = isNil; lodash.isNull = isNull; lodash.isNumber = isNumber; lodash.isObject = isObject; lodash.isObjectLike = isObjectLike; lodash.isPlainObject = isPlainObject; lodash.isRegExp = isRegExp; lodash.isSafeInteger = isSafeInteger; lodash.isSet = isSet; lodash.isString = isString; lodash.isSymbol = isSymbol; lodash.isTypedArray = isTypedArray; lodash.isUndefined = isUndefined; lodash.isWeakMap = isWeakMap; lodash.isWeakSet = isWeakSet; lodash.join = join; lodash.kebabCase = kebabCase; lodash.last = last; lodash.lastIndexOf = lastIndexOf; lodash.lowerCase = lowerCase; lodash.lowerFirst = lowerFirst; lodash.lt = lt; lodash.lte = lte; lodash.max = max; lodash.maxBy = maxBy; lodash.mean = mean; lodash.meanBy = meanBy; lodash.min = min; lodash.minBy = minBy; lodash.stubArray = stubArray; lodash.stubFalse = stubFalse; lodash.stubObject = stubObject; lodash.stubString = stubString; lodash.stubTrue = stubTrue; lodash.multiply = multiply; lodash.nth = nth; lodash.noConflict = noConflict; lodash.noop = noop; lodash.now = now; lodash.pad = pad; lodash.padEnd = padEnd; lodash.padStart = padStart; lodash.parseInt = parseInt; lodash.random = random; lodash.reduce = reduce; lodash.reduceRight = reduceRight; lodash.repeat = repeat; lodash.replace = replace; lodash.result = result; lodash.round = round; lodash.runInContext = runInContext; lodash.sample = sample; lodash.size = size; lodash.snakeCase = snakeCase; lodash.some = some; lodash.sortedIndex = sortedIndex; lodash.sortedIndexBy = sortedIndexBy; lodash.sortedIndexOf = sortedIndexOf; lodash.sortedLastIndex = sortedLastIndex; lodash.sortedLastIndexBy = sortedLastIndexBy; lodash.sortedLastIndexOf = sortedLastIndexOf; lodash.startCase = startCase; lodash.startsWith = startsWith; lodash.subtract = subtract; lodash.sum = sum; lodash.sumBy = sumBy; lodash.template = template; lodash.times = times; lodash.toFinite = toFinite; lodash.toInteger = toInteger; lodash.toLength = toLength; lodash.toLower = toLower; lodash.toNumber = toNumber; lodash.toSafeInteger = toSafeInteger; lodash.toString = toString; lodash.toUpper = toUpper; lodash.trim = trim; lodash.trimEnd = trimEnd; lodash.trimStart = trimStart; lodash.truncate = truncate; lodash.unescape = unescape; lodash.uniqueId = uniqueId; lodash.upperCase = upperCase; lodash.upperFirst = upperFirst; // Add aliases. lodash.each = forEach; lodash.eachRight = forEachRight; lodash.first = head; mixin(lodash, (function() { var source = {}; baseForOwn(lodash, function(func, methodName) { if (!hasOwnProperty.call(lodash.prototype, methodName)) { source[methodName] = func; } }); return source; }()), { 'chain': false }); /*------------------------------------------------------------------------*/ /** * The semantic version number. * * @static * @memberOf _ * @type {string} */ lodash.VERSION = VERSION; // Assign default placeholders. arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) { lodash[methodName].placeholder = lodash; }); // Add `LazyWrapper` methods for `_.drop` and `_.take` variants. arrayEach(['drop', 'take'], function(methodName, index) { LazyWrapper.prototype[methodName] = function(n) { n = n === undefined ? 1 : nativeMax(toInteger(n), 0); var result = (this.__filtered__ && !index) ? new LazyWrapper(this) : this.clone(); if (result.__filtered__) { result.__takeCount__ = nativeMin(n, result.__takeCount__); } else { result.__views__.push({ 'size': nativeMin(n, MAX_ARRAY_LENGTH), 'type': methodName + (result.__dir__ < 0 ? 'Right' : '') }); } return result; }; LazyWrapper.prototype[methodName + 'Right'] = function(n) { return this.reverse()[methodName](n).reverse(); }; }); // Add `LazyWrapper` methods that accept an `iteratee` value. arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) { var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG; LazyWrapper.prototype[methodName] = function(iteratee) { var result = this.clone(); result.__iteratees__.push({ 'iteratee': getIteratee(iteratee, 3), 'type': type }); result.__filtered__ = result.__filtered__ || isFilter; return result; }; }); // Add `LazyWrapper` methods for `_.head` and `_.last`. arrayEach(['head', 'last'], function(methodName, index) { var takeName = 'take' + (index ? 'Right' : ''); LazyWrapper.prototype[methodName] = function() { return this[takeName](1).value()[0]; }; }); // Add `LazyWrapper` methods for `_.initial` and `_.tail`. arrayEach(['initial', 'tail'], function(methodName, index) { var dropName = 'drop' + (index ? '' : 'Right'); LazyWrapper.prototype[methodName] = function() { return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1); }; }); LazyWrapper.prototype.compact = function() { return this.filter(identity); }; LazyWrapper.prototype.find = function(predicate) { return this.filter(predicate).head(); }; LazyWrapper.prototype.findLast = function(predicate) { return this.reverse().find(predicate); }; LazyWrapper.prototype.invokeMap = baseRest(function(path, args) { if (typeof path == 'function') { return new LazyWrapper(this); } return this.map(function(value) { return baseInvoke(value, path, args); }); }); LazyWrapper.prototype.reject = function(predicate) { return this.filter(negate(getIteratee(predicate))); }; LazyWrapper.prototype.slice = function(start, end) { start = toInteger(start); var result = this; if (result.__filtered__ && (start > 0 || end < 0)) { return new LazyWrapper(result); } if (start < 0) { result = result.takeRight(-start); } else if (start) { result = result.drop(start); } if (end !== undefined) { end = toInteger(end); result = end < 0 ? result.dropRight(-end) : result.take(end - start); } return result; }; LazyWrapper.prototype.takeRightWhile = function(predicate) { return this.reverse().takeWhile(predicate).reverse(); }; LazyWrapper.prototype.toArray = function() { return this.take(MAX_ARRAY_LENGTH); }; // Add `LazyWrapper` methods to `lodash.prototype`. baseForOwn(LazyWrapper.prototype, function(func, methodName) { var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName], retUnwrapped = isTaker || /^find/.test(methodName); if (!lodashFunc) { return; } lodash.prototype[methodName] = function() { var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee = args[0], useLazy = isLazy || isArray(value); var interceptor = function(value) { var result = lodashFunc.apply(lodash, arrayPush([value], args)); return (isTaker && chainAll) ? result[0] : result; }; if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) { // Avoid lazy use if the iteratee has a "length" value other than `1`. isLazy = useLazy = false; } var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid; if (!retUnwrapped && useLazy) { value = onlyLazy ? value : new LazyWrapper(this); var result = func.apply(value, args); result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined }); return new LodashWrapper(result, chainAll); } if (isUnwrapped && onlyLazy) { return func.apply(this, args); } result = this.thru(interceptor); return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result; }; }); // Add `Array` methods to `lodash.prototype`. arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) { var func = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru', retUnwrapped = /^(?:pop|shift)$/.test(methodName); lodash.prototype[methodName] = function() { var args = arguments; if (retUnwrapped && !this.__chain__) { var value = this.value(); return func.apply(isArray(value) ? value : [], args); } return this[chainName](function(value) { return func.apply(isArray(value) ? value : [], args); }); }; }); // Map minified method names to their real names. baseForOwn(LazyWrapper.prototype, function(func, methodName) { var lodashFunc = lodash[methodName]; if (lodashFunc) { var key = lodashFunc.name + ''; if (!hasOwnProperty.call(realNames, key)) { realNames[key] = []; } realNames[key].push({ 'name': methodName, 'func': lodashFunc }); } }); realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': undefined }]; // Add methods to `LazyWrapper`. LazyWrapper.prototype.clone = lazyClone; LazyWrapper.prototype.reverse = lazyReverse; LazyWrapper.prototype.value = lazyValue; // Add chain sequence methods to the `lodash` wrapper. lodash.prototype.at = wrapperAt; lodash.prototype.chain = wrapperChain; lodash.prototype.commit = wrapperCommit; lodash.prototype.next = wrapperNext; lodash.prototype.plant = wrapperPlant; lodash.prototype.reverse = wrapperReverse; lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; // Add lazy aliases. lodash.prototype.first = lodash.prototype.head; if (symIterator) { lodash.prototype[symIterator] = wrapperToIterator; } return lodash; }); /*--------------------------------------------------------------------------*/ // Export lodash. var _ = runInContext(); // Some AMD build optimizers, like r.js, check for condition patterns like: if (true) { // Expose Lodash on the global object to prevent errors when Lodash is // loaded by a script tag in the presence of an AMD loader. // See http://requirejs.org/docs/errors.html#mismatch for more details. // Use `_.noConflict` to remove Lodash from the global object. root._ = _; // Define as an anonymous module so, through path mapping, it can be // referenced as the "underscore" module. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return _; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } // Check for `exports` after `define` in case a build optimizer adds it. else {} }.call(this)); /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module))) /***/ }), /***/ "./node_modules/process/browser.js": /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports) { // shim for using process in browser var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it // don't break things. But we need to wrap it in a try catch in case it is // wrapped in strict mode code which doesn't define any globals. It's inside a // function because try/catches deoptimize in certain engines. var cachedSetTimeout; var cachedClearTimeout; function defaultSetTimout() { throw new Error('setTimeout has not been defined'); } function defaultClearTimeout () { throw new Error('clearTimeout has not been defined'); } (function () { try { if (typeof setTimeout === 'function') { cachedSetTimeout = setTimeout; } else { cachedSetTimeout = defaultSetTimout; } } catch (e) { cachedSetTimeout = defaultSetTimout; } try { if (typeof clearTimeout === 'function') { cachedClearTimeout = clearTimeout; } else { cachedClearTimeout = defaultClearTimeout; } } catch (e) { cachedClearTimeout = defaultClearTimeout; } } ()) function runTimeout(fun) { if (cachedSetTimeout === setTimeout) { //normal enviroments in sane situations return setTimeout(fun, 0); } // if setTimeout wasn't available but was latter defined if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { cachedSetTimeout = setTimeout; return setTimeout(fun, 0); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedSetTimeout(fun, 0); } catch(e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedSetTimeout.call(null, fun, 0); } catch(e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error return cachedSetTimeout.call(this, fun, 0); } } } function runClearTimeout(marker) { if (cachedClearTimeout === clearTimeout) { //normal enviroments in sane situations return clearTimeout(marker); } // if clearTimeout wasn't available but was latter defined if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { cachedClearTimeout = clearTimeout; return clearTimeout(marker); } try { // when when somebody has screwed with setTimeout but no I.E. maddness return cachedClearTimeout(marker); } catch (e){ try { // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally return cachedClearTimeout.call(null, marker); } catch (e){ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. // Some versions of I.E. have different rules for clearTimeout vs setTimeout return cachedClearTimeout.call(this, marker); } } } var queue = []; var draining = false; var currentQueue; var queueIndex = -1; function cleanUpNextTick() { if (!draining || !currentQueue) { return; } draining = false; if (currentQueue.length) { queue = currentQueue.concat(queue); } else { queueIndex = -1; } if (queue.length) { drainQueue(); } } function drainQueue() { if (draining) { return; } var timeout = runTimeout(cleanUpNextTick); draining = true; var len = queue.length; while(len) { currentQueue = queue; queue = []; while (++queueIndex < len) { if (currentQueue) { currentQueue[queueIndex].run(); } } queueIndex = -1; len = queue.length; } currentQueue = null; draining = false; runClearTimeout(timeout); } process.nextTick = function (fun) { var args = new Array(arguments.length - 1); if (arguments.length > 1) { for (var i = 1; i < arguments.length; i++) { args[i - 1] = arguments[i]; } } queue.push(new Item(fun, args)); if (queue.length === 1 && !draining) { runTimeout(drainQueue); } }; // v8 likes predictible objects function Item(fun, array) { this.fun = fun; this.array = array; } Item.prototype.run = function () { this.fun.apply(null, this.array); }; process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; process.version = ''; // empty string to avoid regexp issues process.versions = {}; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.prependListener = noop; process.prependOnceListener = noop; process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); }; process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; process.umask = function() { return 0; }; /***/ }), /***/ "./node_modules/webpack/buildin/global.js": /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports) { var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || new Function("return this")(); } catch (e) { // This works if the window reference is available if (typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g; /***/ }), /***/ "./node_modules/webpack/buildin/module.js": /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = function(module) { if (!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if (!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /***/ "./resources/css/app.css": /*!*******************************!*\ !*** ./resources/css/app.css ***! \*******************************/ /*! no static exports found */ /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }), /***/ "./resources/js/app.js": /*!*****************************!*\ !*** ./resources/js/app.js ***! \*****************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); __webpack_require__(/*! alpinejs */ "./node_modules/alpinejs/dist/alpine.js"); /***/ }), /***/ "./resources/js/bootstrap.js": /*!***********************************!*\ !*** ./resources/js/bootstrap.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { window._ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js"); /** * We'll load the axios HTTP library which allows us to easily issue requests * to our Laravel back-end. This library automatically handles sending the * CSRF token as a header based on the value of the "XSRF" token cookie. */ window.axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; /** * Echo exposes an expressive API for subscribing to channels and listening * for events that are broadcast by Laravel. Echo and event broadcasting * allows your team to easily build robust real-time web applications. */ // import Echo from 'laravel-echo'; // window.Pusher = require('pusher-js'); // window.Echo = new Echo({ // broadcaster: 'pusher', // key: process.env.MIX_PUSHER_APP_KEY, // cluster: process.env.MIX_PUSHER_APP_CLUSTER, // forceTLS: true // }); /***/ }), /***/ 0: /*!***********************************************************!*\ !*** multi ./resources/js/app.js ./resources/css/app.css ***! \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { __webpack_require__(/*! S:\laragon\www\LaravelLivewire\resources\js\app.js */"./resources/js/app.js"); module.exports = __webpack_require__(/*! S:\laragon\www\LaravelLivewire\resources\css\app.css */"./resources/css/app.css"); /***/ }) /******/ });
/** * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /** * @module engine/view/documentfragment */ import Text from './text'; import TextProxy from './textproxy'; import mix from '@ckeditor/ckeditor5-utils/src/mix'; import isIterable from '@ckeditor/ckeditor5-utils/src/isiterable'; import EmitterMixin from '@ckeditor/ckeditor5-utils/src/emittermixin'; /** * Document fragment. * * To create a new document fragment instance use the * {@link module:engine/view/upcastwriter~UpcastWriter#createDocumentFragment `UpcastWriter#createDocumentFragment()`} * method. */ export default class DocumentFragment { /** * Creates new DocumentFragment instance. * * @protected * @param {module:engine/view/node~Node|Iterable.<module:engine/view/node~Node>} [children] * A list of nodes to be inserted into the created document fragment. */ constructor( children ) { /** * Array of child nodes. * * @protected * @member {Array.<module:engine/view/element~Element>} module:engine/view/documentfragment~DocumentFragment#_children */ this._children = []; if ( children ) { this._insertChild( 0, children ); } } /** * Iterable interface. * * Iterates over nodes added to this document fragment. * * @returns {Iterable.<module:engine/view/node~Node>} */ [ Symbol.iterator ]() { return this._children[ Symbol.iterator ](); } /** * Number of child nodes in this document fragment. * * @readonly * @type {Number} */ get childCount() { return this._children.length; } /** * Is `true` if there are no nodes inside this document fragment, `false` otherwise. * * @readonly * @type {Boolean} */ get isEmpty() { return this.childCount === 0; } /** * Artificial root of `DocumentFragment`. Returns itself. Added for compatibility reasons. * * @readonly * @type {module:engine/model/documentfragment~DocumentFragment} */ get root() { return this; } /** * Artificial parent of `DocumentFragment`. Returns `null`. Added for compatibility reasons. * * @readonly * @type {null} */ get parent() { return null; } /** * Checks whether given view tree object is of given type. * * Read more in {@link module:engine/view/node~Node#is}. * * @param {String} type * @returns {Boolean} */ is( type ) { return type == 'documentFragment'; } /** * {@link module:engine/view/documentfragment~DocumentFragment#_insertChild Insert} a child node or a list of child nodes at the end * and sets the parent of these nodes to this fragment. * * @param {module:engine/view/item~Item|Iterable.<module:engine/view/item~Item>} items Items to be inserted. * @returns {Number} Number of appended nodes. */ _appendChild( items ) { return this._insertChild( this.childCount, items ); } /** * Gets child at the given index. * * @param {Number} index Index of child. * @returns {module:engine/view/node~Node} Child node. */ getChild( index ) { return this._children[ index ]; } /** * Gets index of the given child node. Returns `-1` if child node is not found. * * @param {module:engine/view/node~Node} node Child node. * @returns {Number} Index of the child node. */ getChildIndex( node ) { return this._children.indexOf( node ); } /** * Gets child nodes iterator. * * @returns {Iterable.<module:engine/view/node~Node>} Child nodes iterator. */ getChildren() { return this._children[ Symbol.iterator ](); } /** * Inserts a child node or a list of child nodes on the given index and sets the parent of these nodes to * this fragment. * * @param {Number} index Position where nodes should be inserted. * @param {module:engine/view/item~Item|Iterable.<module:engine/view/item~Item>} items Items to be inserted. * @returns {Number} Number of inserted nodes. */ _insertChild( index, items ) { this._fireChange( 'children', this ); let count = 0; const nodes = normalize( items ); for ( const node of nodes ) { // If node that is being added to this element is already inside another element, first remove it from the old parent. if ( node.parent !== null ) { node._remove(); } node.parent = this; this._children.splice( index, 0, node ); index++; count++; } return count; } /** * Removes number of child nodes starting at the given index and set the parent of these nodes to `null`. * * @param {Number} index Number of the first node to remove. * @param {Number} [howMany=1] Number of nodes to remove. * @returns {Array.<module:engine/view/node~Node>} The array of removed nodes. */ _removeChildren( index, howMany = 1 ) { this._fireChange( 'children', this ); for ( let i = index; i < index + howMany; i++ ) { this._children[ i ].parent = null; } return this._children.splice( index, howMany ); } /** * Fires `change` event with given type of the change. * * @private * @param {module:engine/view/document~ChangeType} type Type of the change. * @param {module:engine/view/node~Node} node Changed node. * @fires module:engine/view/node~Node#change */ _fireChange( type, node ) { this.fire( 'change:' + type, node ); } } mix( DocumentFragment, EmitterMixin ); // Converts strings to Text and non-iterables to arrays. // // @param {String|module:engine/view/item~Item|Iterable.<String|module:engine/view/item~Item>} // @returns {Iterable.<module:engine/view/node~Node>} function normalize( nodes ) { // Separate condition because string is iterable. if ( typeof nodes == 'string' ) { return [ new Text( nodes ) ]; } if ( !isIterable( nodes ) ) { nodes = [ nodes ]; } // Array.from to enable .map() on non-arrays. return Array.from( nodes ) .map( node => { if ( typeof node == 'string' ) { return new Text( node ); } if ( node instanceof TextProxy ) { return new Text( node.data ); } return node; } ); }
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ var App = require('app'); var stringUtils = require('utils/string_utils'); App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wizardDeployProgressControllerMixin, App.ConfigOverridable, App.ConfigsSaverMixin, { name: 'wizardStep8Controller', /** * @type {boolean} */ isAddService: Em.computed.equal('content.controllerName', 'addServiceController'), /** * @type {boolean} */ isAddHost: Em.computed.equal('content.controllerName', 'addHostController'), /** * @type {boolean} */ isInstaller: Em.computed.equal('content.controllerName', 'installerController'), /** * List of raw data about cluster that should be displayed * @type {Array} */ rawContent: [ { config_name: 'Admin', display_name: 'Admin Name', config_value: '' }, { config_name: 'cluster', display_name: 'Cluster Name', config_value: '' }, { config_name: 'hosts', display_name: 'Total Hosts', config_value: '' }, { config_name: 'Repo', display_name: 'Local Repository', config_value: '' } ], /** * List of data about cluster (based on formatted <code>rawContent</code>) * @type {Object[]} */ clusterInfo: [], /** * List of services with components assigned to hosts * @type {Object[]} */ services: [], /** * @type {Object[]} */ configs: [], /** * True if Kerberos is installed on the cluster and the kdc_type on the server is set to "none" * @type {Boolean} */ isManualKerberos: Em.computed.equal('App.router.mainAdminKerberosController.kdc_type', 'none'), showDownloadCsv: function () { return !!App.get('router.mainAdminKerberosController.kdc_type') }.property('App.router.mainAdminKerberosController.kdc_type'), /** * Should Submit button be disabled * @type {bool} */ isSubmitDisabled: false, /** * Should Back button be disabled * @type {bool} */ isBackBtnDisabled: false, /** * Is error appears while <code>ajaxQueue</code> executes * @type {bool} */ hasErrorOccurred: false, /** * Are services installed * Used to hide Deploy Progress Bar * @type {bool} */ servicesInstalled: false, /** * List of service config tags * @type {Object[]} */ serviceConfigTags: [], /** * Selected config group * @type {Object} */ selectedConfigGroup: null, /** * List of config groups * @type {Object[]} */ configGroups: [], /** * List of selected but not installed services * @type {Object[]} */ selectedServices: function () { return this.get('content.services').filterProperty('isSelected', true).filterProperty('isInstalled', false); }.property('content.services.@each.isSelected','content.services.@each.isInstalled').cacheable(), /** * List of installed services * @type {Object[]} */ installedServices: Em.computed.filterBy('content.services', 'isInstalled', true), /** * Current cluster name * @type {string} */ clusterName: Em.computed.alias('content.cluster.name'), /** * List of existing cluster names * @type {string[]} */ clusterNames: [], /** * Number of completed cluster delete requests * @type {number} */ clusterDeleteRequestsCompleted: 0, /** * Indicates if all cluster delete requests are completed * @type {boolean} */ isAllClusterDeleteRequestsCompleted: Em.computed.equalProperties('clusterDeleteRequestsCompleted', 'clusterNames.length'), /** * Error popup body views for clusters that couldn't be deleted * @type {App.AjaxDefaultErrorPopupBodyView[]} */ clusterDeleteErrorViews: [], /** * Clear current step data * @method clearStep */ clearStep: function () { this.get('services').clear(); this.get('configs').clear(); this.get('clusterInfo').clear(); this.get('serviceConfigTags').clear(); this.set('servicesInstalled', false); this.set('ajaxQueueLength', 0); this.set('ajaxRequestsQueue', App.ajaxQueue.create()); this.set('ajaxRequestsQueue.finishedCallback', this.ajaxQueueFinished); this.get('clusterDeleteErrorViews').clear(); this.set('clusterDeleteRequestsCompleted', 0); }, /** * Load current step data * @method loadStep */ loadStep: function () { this.clearStep(); if (this.get('content.serviceConfigProperties')) { this.formatProperties(); this.loadConfigs(); } this.loadClusterInfo(); this.loadServices(); this.set('isSubmitDisabled', false); this.set('isBackBtnDisabled', false); }, /** * replace whitespace character with coma between directories * @method formatProperties */ formatProperties: function () { this.get('content.serviceConfigProperties').forEach(function (_configProperty) { _configProperty.value = (typeof _configProperty.value === "boolean") ? _configProperty.value.toString() : App.config.trimProperty(_configProperty, false); }); }, /** * Load all site properties * @method loadConfigs */ loadConfigs: function () { this.set('configs', this.get('content.serviceConfigProperties').filter(function (config) { return !config.group; })); }, /** * Format <code>content.hosts</code> from Object to Array * @returns {Array} * @method getRegisteredHosts */ getRegisteredHosts: function () { var allHosts = this.get('content.hosts'); var hosts = []; for (var hostName in allHosts) { if (allHosts.hasOwnProperty(hostName)) { if (allHosts[hostName].bootStatus == 'REGISTERED') { allHosts[hostName].hostName = allHosts[hostName].name; hosts.pushObject(allHosts[hostName]); } } } return hosts; }, /** * Load all info about cluster to <code>clusterInfo</code> variable * @method loadClusterInfo */ loadClusterInfo: function () { //Admin name var admin = this.rawContent.findProperty('config_name', 'Admin'); admin.config_value = App.db.getLoginName(); if (admin.config_value) { this.get('clusterInfo').pushObject(Ember.Object.create(admin)); } // cluster name var cluster = this.rawContent.findProperty('config_name', 'cluster'); cluster.config_value = this.get('content.cluster.name'); this.get('clusterInfo').pushObject(Ember.Object.create(cluster)); //hosts var newHostsCount = 0; var totalHostsCount = 0; var hosts = this.get('content.hosts'); for (var hostName in hosts) { newHostsCount += ~~(!hosts[hostName].isInstalled); totalHostsCount++; } var totalHostsObj = this.rawContent.findProperty('config_name', 'hosts'); totalHostsObj.config_value = totalHostsCount + ' (' + newHostsCount + ' new)'; this.get('clusterInfo').pushObject(Em.Object.create(totalHostsObj)); //repo if (['addHostController', 'addServiceController'].contains(this.get('content.controllerName'))) { // For some stacks there is no info regarding stack versions to upgrade, e.g. HDP-2.1 if (App.StackVersion.find().get('content.length')) { this.loadRepoInfo(); } else { this.loadDefaultRepoInfo(); } } else { // from install wizard var selectedStack = App.Stack.find().findProperty('isSelected'); var allRepos = []; if (selectedStack && selectedStack.get('operatingSystems')) { selectedStack.get('operatingSystems').forEach(function (os) { if (os.get('isSelected')) { os.get('repositories').forEach(function(repo) { allRepos.push(Em.Object.create({ base_url: repo.get('baseUrl'), os_type: repo.get('osType'), repo_id: repo.get('repoId') })); }, this); } }, this); } allRepos.set('display_name', Em.I18n.t("installer.step8.repoInfo.displayName")); this.get('clusterInfo').set('repoInfo', allRepos); } }, /** * Load repo info for add Service/Host wizard review page * @return {$.ajax|null} * @method loadRepoInfo */ loadRepoInfo: function () { var currentRepoVersion = App.StackVersion.find().findProperty('state', 'CURRENT').get('repositoryVersion.repositoryVersion'); var stackName = App.get('currentStackName'); return App.ajax.send({ name: 'cluster.load_repo_version', sender: this, data: { stackName: stackName, repositoryVersion: currentRepoVersion }, success: 'loadRepoInfoSuccessCallback', error: 'loadRepoInfoErrorCallback' }); }, /** * Save all repo base URL of all OS type to <code>repoInfo<code> * @param {object} data * @method loadRepoInfoSuccessCallback */ loadRepoInfoSuccessCallback: function (data) { Em.assert('Current repo-version may be only one', data.items.length === 1); if (data.items.length) { var allRepos = this.generateRepoInfo(Em.getWithDefault(data, 'items.0.repository_versions.0.operating_systems', [])); allRepos.set('display_name', Em.I18n.t("installer.step8.repoInfo.displayName")); this.get('clusterInfo').set('repoInfo', allRepos); } else { this.loadDefaultRepoInfo(); } }, /** * Generate list regarding info about OS versions and repositories. * * @param {Object{}} oses - OS array * @returns {Em.Object[]} */ generateRepoInfo: function(oses) { return oses.map(function(os) { return os.repositories.map(function (repository) { return Em.Object.create({ base_url: repository.Repositories.base_url, os_type: repository.Repositories.os_type, repo_id: repository.Repositories.repo_id }); }); }).reduce(function(p, c) { return p.concat(c); }); }, /** * Load repo info from stack. Used if installed stack doesn't have upgrade info. * * @returns {$.Deferred} * @method loadDefaultRepoInfo */ loadDefaultRepoInfo: function() { var nameVersionCombo = App.get('currentStackVersion').split('-'); return App.ajax.send({ name: 'cluster.load_repositories', sender: this, data: { stackName: nameVersionCombo[0], stackVersion: nameVersionCombo[1] }, success: 'loadDefaultRepoInfoSuccessCallback', error: 'loadRepoInfoErrorCallback' }); }, /** * @param {Object} data - JSON data from server * @method loadDefaultRepoInfoSuccessCallback */ loadDefaultRepoInfoSuccessCallback: function (data) { var allRepos = this.generateRepoInfo(Em.getWithDefault(data, 'items', [])); allRepos.set('display_name', Em.I18n.t("installer.step8.repoInfo.displayName")); this.get('clusterInfo').set('repoInfo', allRepos); }, /** * @param {object} request * @method loadRepoInfoErrorCallback */ loadRepoInfoErrorCallback: function (request) { var allRepos = []; allRepos.set('display_name', Em.I18n.t("installer.step8.repoInfo.displayName")); this.get('clusterInfo').set('repoInfo', allRepos); }, /** * Load all info about services to <code>services</code> variable * @method loadServices */ loadServices: function () { this.get('selectedServices').filterProperty('isHiddenOnSelectServicePage', false).forEach(function (service) { var serviceObj = Em.Object.create({ service_name: service.get('serviceName'), display_name: service.get('displayNameOnSelectServicePage'), service_components: Em.A([]) }); service.get('serviceComponents').forEach(function (component) { // show clients for services that have only clients components if ((component.get('isClient') || component.get('isRequiredOnAllHosts')) && !service.get('isClientOnlyService')) return; // no HA component if (component.get('isHAComponentOnly')) return; // skip if component is not allowed on single node cluster if (Object.keys(this.get('content.hosts')).length == 1 && component.get('isNotAllowedOnSingleNodeCluster')) return; var displayName; if (component.get('isClient')) { displayName = Em.I18n.t('common.clients') } else { // remove service name from component display name displayName = App.format.role(component.get('componentName'), false).replace(new RegExp('^' + service.get('serviceName') + '\\s', 'i'), ''); } var componentName = component.get('componentName'); var masterComponents = this.get('content.masterComponentHosts'); var isMasterComponentSelected = masterComponents.someProperty('component', componentName); var isMaster = component.get('isMaster'); if (!isMaster || isMasterComponentSelected) { serviceObj.get('service_components').pushObject(Em.Object.create({ component_name: component.get('isClient') ? Em.I18n.t('common.client').toUpperCase() : component.get('componentName'), display_name: displayName, component_value: this.assignComponentHosts(component) })); } }, this); if (service.get('customReviewHandler')) { for (var displayName in service.get('customReviewHandler')) { serviceObj.get('service_components').pushObject(Em.Object.create({ display_name: displayName, component_value: this.assignComponentHosts(Em.Object.create({ customHandler: service.get('customReviewHandler.' + displayName) })) })); } } this.get('services').pushObject(serviceObj); }, this); }, /** * Set <code>component_value</code> property to <code>component</code> * @param {Em.Object} component * @return {String} * @method assignComponentHosts */ assignComponentHosts: function (component) { var componentValue; if (component.get('customHandler')) { componentValue = this[component.get('customHandler')].call(this, component); } else { if (component.get('isMaster')) { componentValue = this.getMasterComponentValue(component.get('componentName')); } else { var componentName = component.get('isClient') ? Em.I18n.t('common.client').toUpperCase() : component.get('componentName'); var hostsLength = this.get('content.slaveComponentHosts') .findProperty('componentName', componentName).hosts.length; componentValue = hostsLength + Em.I18n.t('installer.step8.host' + ((hostsLength > 1) ? 's' : '')); } } return componentValue; }, getMasterComponentValue: function (componentName) { var masterComponents = this.get('content.masterComponentHosts'); var hostsCount = masterComponents.filterProperty('component', componentName).length; return stringUtils.pluralize(hostsCount, masterComponents.findProperty('component', componentName).hostName, hostsCount + ' ' + Em.I18n.t('installer.step8.hosts')); }, loadHiveDbValue: function() { return this.loadDbValue('HIVE'); }, loadOozieDbValue: function() { return this.loadDbValue('OOZIE'); }, /** * Set displayed Hive DB value based on DB type * @method loadHiveDbValue */ loadDbValue: function (serviceName) { var serviceConfigProperties = this.get('wizardController').getDBProperty('serviceConfigProperties'); var dbFull = serviceConfigProperties.findProperty('name', serviceName.toLowerCase() + '_database'), db = serviceConfigProperties.findProperty('name', serviceName.toLowerCase() + '_ambari_database'); return db && dbFull ? db.value + ' (' + dbFull.value + ')' : ''; }, /** * Set displayed HBase master value * @param {Object} hbaseMaster * @method loadHbaseMasterValue */ loadHbaseMasterValue: function (hbaseMaster) { var hbaseHostName = this.get('content.masterComponentHosts').filterProperty('component', hbaseMaster.component_name); if (hbaseHostName.length == 1) { hbaseMaster.set('component_value', hbaseHostName[0].hostName); } else { hbaseMaster.set('component_value', hbaseHostName[0].hostName + " " + Em.I18n.t('installer.step8.other').format(hbaseHostName.length - 1)); } }, /** * Set displayed ZooKeeper Server value * @param {Object} serverComponent * @method loadZkServerValue */ loadZkServerValue: function (serverComponent) { var zkHostNames = this.get('content.masterComponentHosts').filterProperty('component', serverComponent.component_name).length; var hostSuffix; if (zkHostNames === 1) { hostSuffix = Em.I18n.t('installer.step8.host'); } else { hostSuffix = Em.I18n.t('installer.step8.hosts'); } serverComponent.set('component_value', zkHostNames + hostSuffix); }, /** * Onclick handler for <code>next</code> button * @method submit * @return {void} */ submit: function () { var wizardController; if (!this.get('isSubmitDisabled')) { wizardController = App.router.get(this.get('content.controllerName')); wizardController.setLowerStepsDisable(wizardController.get('currentStep')); this.set('isSubmitDisabled', true); this.set('isBackBtnDisabled', true); this.showRestartWarnings() .then(this.checkKDCSession.bind(this)); } }, /** * Warn user about services that will be restarted during installation. * * @returns {$.Deferred} */ showRestartWarnings: function() { var self = this; var dfd = $.Deferred(); var wizardController = App.router.get(this.get('content.controllerName')); var selectedServiceNames = this.get('selectedServices').mapProperty('serviceName'); var installedServiceNames = this.get('installedServices').mapProperty('serviceName'); if (this.get('content.controllerName') === 'addServiceController' && selectedServiceNames.contains('OOZIE')) { var affectedServices = ['HDFS', 'YARN'].filter(function(serviceName) { return installedServiceNames.contains(serviceName); }); if (affectedServices.length) { var serviceNames = affectedServices.length > 1 ? '<b>{0}</b> {1} <b>{2}</b>'.format(affectedServices[0], Em.I18n.t('and'), affectedServices[1]) : '<b>' + affectedServices[0] + '</b> '; App.ModalPopup.show({ encodeBody: false, header: Em.I18n.t('common.warning'), body: Em.I18n.t('installer.step8.services.restart.required').format(serviceNames, stringUtils.pluralize(affectedServices.length, Em.I18n.t('common.service').toLowerCase())), secondary: Em.I18n.t('common.cancel'), primary: Em.I18n.t('common.proceedAnyway'), onPrimary: function() { this.hide(); dfd.resolve(); }, onClose: function() { this.hide(); self.set('isSubmitDisabled', false); self.set('isBackBtnDisabled', false); wizardController.setStepsEnable(); dfd.reject(); }, onSecondary: function() { this.onClose(); } }); } else { dfd.resolve(); } } else { dfd.resolve(); } return dfd.promise(); }, checkKDCSession: function() { var self = this; var wizardController = App.router.get(this.get('content.controllerName')); if (this.get('content.controllerName') != 'installerController') { App.get('router.mainAdminKerberosController').getKDCSessionState(this.submitProceed.bind(this), function () { self.set('isSubmitDisabled', false); self.set('isBackBtnDisabled', false); wizardController.setStepsEnable(); if (self.get('content.controllerName') === 'addServiceController') { wizardController.setSkipSlavesStep(wizardController.getDBProperty('selectedServiceNames'), 3); } }); } else { this.submitProceed(); } }, /** * Prepare <code>ajaxQueue</code> and start to execute it * @method submitProceed */ submitProceed: function () { var self = this; this.set('clusterDeleteRequestsCompleted', 0); this.get('clusterDeleteErrorViews').clear(); if (this.get('content.controllerName') == 'addHostController') { App.router.get('addHostController').setLowerStepsDisable(4); } // checkpoint the cluster status on the server so that the user can resume from where they left off switch (this.get('content.controllerName')) { case 'installerController': App.clusterStatus.setClusterStatus({ clusterName: this.get('clusterName'), clusterState: 'CLUSTER_DEPLOY_PREP_2', wizardControllerName: this.get('content.controllerName'), localdb: App.db.data }); break; case 'addHostController': App.clusterStatus.setClusterStatus({ clusterName: this.get('clusterName'), clusterState: 'ADD_HOSTS_DEPLOY_PREP_2', wizardControllerName: this.get('content.controllerName'), localdb: App.db.data }); break; case 'addServiceController': App.clusterStatus.setClusterStatus({ clusterName: this.get('clusterName'), clusterState: 'ADD_SERVICES_DEPLOY_PREP_2', wizardControllerName: this.get('content.controllerName'), localdb: App.db.data }); break; default: break; } // delete any existing clusters to start from a clean slate // before creating a new cluster in install wizard // TODO: modify for multi-cluster support this.getExistingClusterNames().complete(function () { var clusterNames = self.get('clusterNames'); if (self.get('content.controllerName') == 'installerController' && (!App.get('testMode')) && clusterNames.length) { self.deleteClusters(clusterNames); } else { self.startDeploy(); } }); }, /** * Get list of existing cluster names * @returns {object|null} * returns an array of existing cluster names. * returns an empty array if there are no existing clusters. * @method getExistingClusterNames */ getExistingClusterNames: function () { return App.ajax.send({ name: 'wizard.step8.existing_cluster_names', sender: this, success: 'getExistingClusterNamesSuccessCallBack', error: 'getExistingClusterNamesErrorCallback' }); }, /** * Save received list to <code>clusterNames</code> * @param {Object} data * @method getExistingClusterNamesSuccessCallBack */ getExistingClusterNamesSuccessCallBack: function (data) { var clusterNames = data.items.mapProperty('Clusters.cluster_name'); this.set('clusterNames', clusterNames); }, /** * If error appears, set <code>clusterNames</code> to <code>[]</code> * @method getExistingClusterNamesErrorCallback */ getExistingClusterNamesErrorCallback: function () { this.set('clusterNames', []); }, /** * Delete cluster by name * One request for one cluster! * @param {string[]} clusterNames * @method deleteClusters */ deleteClusters: function (clusterNames) { this.get('clusterDeleteErrorViews').clear(); clusterNames.forEach(function (clusterName, index) { App.ajax.send({ name: 'common.delete.cluster', sender: this, data: { name: clusterName, isLast: index == clusterNames.length - 1 }, success: 'deleteClusterSuccessCallback', error: 'deleteClusterErrorCallback' }); }, this); }, /** * Method to execute after successful cluster deletion * @method deleteClusterSuccessCallback */ deleteClusterSuccessCallback: function () { this.incrementProperty('clusterDeleteRequestsCompleted'); if (this.get('isAllClusterDeleteRequestsCompleted')) { if (this.get('clusterDeleteErrorViews.length')) { this.showDeleteClustersErrorPopup(); } else { this.startDeploy(); } } }, /** * Method to execute after failed cluster deletion * @param {object} request * @param {string} ajaxOptions * @param {string} error * @param {object} opt * @method deleteClusterErrorCallback */ deleteClusterErrorCallback: function (request, ajaxOptions, error, opt) { this.incrementProperty('clusterDeleteRequestsCompleted'); try { var json = $.parseJSON(request.responseText); var message = json.message; } catch (err) { } this.get('clusterDeleteErrorViews').pushObject(App.AjaxDefaultErrorPopupBodyView.create({ url: opt.url, type: opt.type, status: request.status, message: message })); if (this.get('isAllClusterDeleteRequestsCompleted')) { this.showDeleteClustersErrorPopup(); } }, /** * Show error popup if cluster deletion failed * @method showDeleteClustersErrorPopup */ showDeleteClustersErrorPopup: function () { var self = this; this.setProperties({ isSubmitDisabled: false, isBackBtnDisabled: false }); App.ModalPopup.show({ header: Em.I18n.t('common.error'), secondary: false, onPrimary: function () { this.hide(); }, bodyClass: Em.ContainerView.extend({ childViews: self.get('clusterDeleteErrorViews') }) }); }, /** * updates kerberosDescriptorConfigs * @method updateKerberosDescriptor */ updateKerberosDescriptor: function(instant) { var kerberosDescriptor = App.db.get('KerberosWizard', 'kerberosDescriptorConfigs'); var descriptorExists = this.get('wizardController').getDBProperty('isClusterDescriptorExists') === true; var ajaxOpts = { name: descriptorExists ? 'admin.kerberos.cluster.artifact.update' : 'admin.kerberos.cluster.artifact.create', data: { artifactName: 'kerberos_descriptor', data: { artifact_data: kerberosDescriptor } } }; if (instant) { ajaxOpts.sender = this; App.ajax.send(ajaxOpts); } else { this.addRequestToAjaxQueue(ajaxOpts); } }, /** * Start deploy process * @method startDeploy */ startDeploy: function () { this.createCluster(); this.createSelectedServices(); if (this.get('content.controllerName') !== 'addHostController') { if (this.get('content.controllerName') === 'addServiceController') { // for manually enabled Kerberos descriptor was updated on transition to this step if (App.get('isKerberosEnabled') && !this.get('isManualKerberos')) { this.updateKerberosDescriptor(); } var fileNamesToUpdate = this.get('wizardController').getDBProperty('fileNamesToUpdate').uniq(); if (fileNamesToUpdate && fileNamesToUpdate.length) { this.applyConfigurationsToCluster(this.generateDesiredConfigsJSON(this.get('configs'), fileNamesToUpdate)); } } this.createConfigurations(); this.applyConfigurationsToCluster(this.get('serviceConfigTags')); } this.createComponents(); this.registerHostsToCluster(); this.createConfigurationGroups(); this.createMasterHostComponents(); this.createSlaveAndClientsHostComponents(); if (this.get('content.controllerName') === 'addServiceController') { this.createAdditionalClientComponents(); } this.createAdditionalHostComponents(); this.set('ajaxQueueLength', this.get('ajaxRequestsQueue.queue.length')); this.get('ajaxRequestsQueue').start(); this.showLoadingIndicator(); }, /** * ******************************************************************* * The following create* functions are called upon submitting Step 8. * ******************************************************************* */ /** * Create cluster using selected stack version * Queued request * @method createCluster */ createCluster: function () { if (this.get('content.controllerName') !== 'installerController') return; var stackVersion = (this.get('content.installOptions.localRepo')) ? App.currentStackVersion.replace(/(-\d+(\.\d)*)/ig, "Local$&") : App.currentStackVersion; this.addRequestToAjaxQueue({ name: 'wizard.step8.create_cluster', data: { data: JSON.stringify({ "Clusters": {"version": stackVersion }}) }, success: 'createClusterSuccess' }); }, createClusterSuccess: function (data, xhr, params) { App.set('clusterName', params.cluster) }, /** * Create selected to install services * Queued request * Skipped if no services where selected! * @method createSelectedServices */ createSelectedServices: function () { var data = this.createSelectedServicesData(); if (!data.length) return; this.addRequestToAjaxQueue({ name: 'wizard.step8.create_selected_services', data: { data: JSON.stringify(data) } }); }, /** * Format data for <code>createSelectedServices</code> request * @returns {Object[]} * @method createSelectedServicesData */ createSelectedServicesData: function () { return this.get('selectedServices').map(function (_service) { return {"ServiceInfo": { "service_name": _service.get('serviceName') }}; }); }, /** * Create components for selected services * Queued requests * One request for each service! * @method createComponents */ createComponents: function () { var serviceComponents = App.StackServiceComponent.find(); this.get('selectedServices').forEach(function (_service) { var serviceName = _service.get('serviceName'); var componentsData = serviceComponents.filterProperty('serviceName', serviceName).map(function (_component) { return { "ServiceComponentInfo": { "component_name": _component.get('componentName') } }; }); // Service must be specified in terms of a query for creating multiple components at the same time. // See AMBARI-1018. this.addRequestToCreateComponent(componentsData, serviceName); }, this); if (this.get('content.controllerName') === 'addHostController') { var allServiceComponents = []; var services = App.Service.find().mapProperty('serviceName'); services.forEach(function(_service){ var _serviceComponents = App.Service.find(_service).get('serviceComponents'); allServiceComponents = allServiceComponents.concat(_serviceComponents); }, this); this.get('content.slaveComponentHosts').forEach(function (component) { if (component.componentName !== 'CLIENT' && !allServiceComponents.contains(component.componentName)) { this.addRequestToCreateComponent( [{"ServiceComponentInfo": {"component_name": component.componentName}}], App.StackServiceComponent.find().findProperty('componentName', component.componentName).get('serviceName') ); } }, this); this.get('content.clients').forEach(function (component) { if (!allServiceComponents.contains(component.component_name)) { this.addRequestToCreateComponent( [{"ServiceComponentInfo": {"component_name": component.component_name}}], App.StackServiceComponent.find().findProperty('componentName', component.component_name).get('serviceName') ); } }, this); } }, /** * Add request to ajax queue to create service component * @param componentsData * @param serviceName */ addRequestToCreateComponent: function (componentsData, serviceName) { this.addRequestToAjaxQueue({ name: 'wizard.step8.create_components', data: { data: JSON.stringify({"components": componentsData}), serviceName: serviceName } }); }, /** * Error callback for new service component request * So, if component doesn't exist we should create it * @param {object} request * @param {object} ajaxOptions * @param {string} error * @param {object} opt * @param {object} params * @method newServiceComponentErrorCallback */ newServiceComponentErrorCallback: function (request, ajaxOptions, error, opt, params) { this.addRequestToAjaxQueue({ name: 'wizard.step8.create_components', data: { serviceName: params.serviceName, data: JSON.stringify({ "components": [ { "ServiceComponentInfo": { "component_name": params.componentName } } ] }) } }); }, /** * Register hosts * Queued request * @method registerHostsToCluster */ registerHostsToCluster: function () { var data = this.createRegisterHostData(); if (!data.length) return; this.addRequestToAjaxQueue({ name: 'wizard.step8.register_host_to_cluster', data: { data: JSON.stringify(data) } }); }, /** * Format request-data for <code>registerHostsToCluster</code> * @returns {Object} * @method createRegisterHostData */ createRegisterHostData: function () { return this.getRegisteredHosts().filterProperty('isInstalled', false).map(function (host) { return {"Hosts": { "host_name": host.hostName}}; }); }, /** * Register new master components * @uses registerHostsToComponent * @method createMasterHostComponents */ createMasterHostComponents: function () { var masterOnAllHosts = []; this.get('content.services').filterProperty('isSelected').forEach(function (service) { service.get('serviceComponents').filterProperty('isRequiredOnAllHosts').forEach(function (component) { if (component.get('isMaster')) { masterOnAllHosts.push(component.get('componentName')); } }, this); }, this); // create master components for only selected services. var selectedMasterComponents = this.get('content.masterComponentHosts').filter(function (_component) { return this.get('selectedServices').mapProperty('serviceName').contains(_component.serviceId) }, this); selectedMasterComponents.mapProperty('component').uniq().forEach(function (component) { if (masterOnAllHosts.length > 0) { var compOnAllHosts = false; for (var i=0; i < masterOnAllHosts.length; i++) { if (component.component_name == masterOnAllHosts[i]) { compOnAllHosts = true; break; } } if (!compOnAllHosts) { var hostNames = selectedMasterComponents.filterProperty('component', component).filterProperty('isInstalled', false).mapProperty('hostName'); this.registerHostsToComponent(hostNames, component); } } else { var hostNames = selectedMasterComponents.filterProperty('component', component).filterProperty('isInstalled', false).mapProperty('hostName'); this.registerHostsToComponent(hostNames, component); } }, this); }, getClientsMap: function (flag) { var clientNames = App.StackServiceComponent.find().filterProperty('isClient').mapProperty('componentName'), clientsMap = {}, dependedComponents = flag ? App.StackServiceComponent.find().filterProperty(flag) : App.StackServiceComponent.find(); clientNames.forEach(function (clientName) { clientsMap[clientName] = Em.A([]); dependedComponents.forEach(function (component) { if (component.get('dependencies').mapProperty('componentName').contains(clientName)) clientsMap[clientName].push(component.get('componentName')); }); if (!clientsMap[clientName].length) delete clientsMap[clientName]; }); return clientsMap; }, /** * Register slave components and clients * @uses registerHostsToComponent * @method createSlaveAndClientsHostComponents */ createSlaveAndClientsHostComponents: function () { var masterHosts = this.get('content.masterComponentHosts'); var slaveHosts = this.get('content.slaveComponentHosts'); var clients = this.get('content.clients').filterProperty('isInstalled', false); var slaveOnAllHosts = []; var clientOnAllHosts = []; this.get('content.services').filterProperty('isSelected').forEach(function (service) { service.get('serviceComponents').filterProperty('isRequiredOnAllHosts').forEach(function (component) { if (component.get('isClient')) { clientOnAllHosts.push(component.get('componentName')); } else if (component.get('isSlave')) { slaveOnAllHosts.push(component.get('componentName')); } }, this); }, this); /** * Determines on which hosts client should be installed (based on availability of master components on hosts) * @type {Object} * Format: * <code> * { * CLIENT1: Em.A([MASTER1, MASTER2, ...]), * CLIENT2: Em.A([MASTER3, MASTER1, ...]) * ... * } * </code> */ var clientsToMasterMap = this.getClientsMap('isMaster'); slaveHosts.forEach(function (_slave) { if (_slave.componentName !== 'CLIENT') { if (slaveOnAllHosts.length > 0) { var compOnAllHosts = false; for (var i=0; i < slaveOnAllHosts.length; i++) { if (_slave.component_name == slaveOnAllHosts[i]) { // component with ALL cardinality should not // registerHostsToComponent in createSlaveAndClientsHostComponents compOnAllHosts = true; break; } } if (!compOnAllHosts) { var hostNames = _slave.hosts.filterProperty('isInstalled', false).mapProperty('hostName'); this.registerHostsToComponent(hostNames, _slave.componentName); } } else { var hostNames = _slave.hosts.filterProperty('isInstalled', false).mapProperty('hostName'); this.registerHostsToComponent(hostNames, _slave.componentName); } } else { clients.forEach(function (_client) { var hostNames = _slave.hosts.mapProperty('hostName'); // The below logic to install clients to existing/New master hosts should not be applied to Add Host wizard. // This is with the presumption that Add Host controller does not add any new Master component to the cluster if (this.get('content.controllerName') !== 'addHostController') { if (clientsToMasterMap[_client.component_name]) { clientsToMasterMap[_client.component_name].forEach(function (componentName) { masterHosts.filterProperty('component', componentName).forEach(function (_masterHost) { hostNames.pushObject(_masterHost.hostName); }); }); } } if (clientOnAllHosts.length > 0) { var compOnAllHosts = false; for (var i=0; i < clientOnAllHosts.length; i++) { if (_client.component_name == clientOnAllHosts[i]) { // component with ALL cardinality should not // registerHostsToComponent in createSlaveAndClientsHostComponents compOnAllHosts = true; break; } } if (!compOnAllHosts) { hostNames = hostNames.uniq(); this.registerHostsToComponent(hostNames, _client.component_name); } } else { hostNames = hostNames.uniq(); this.registerHostsToComponent(hostNames, _client.component_name); } }, this); } }, this); }, /** * This function is specific to addServiceController * Newly introduced master components requires some existing client components to be hosted along with them */ createAdditionalClientComponents: function () { var masterHosts = this.get('content.masterComponentHosts'); var clientHosts = []; if (this.get('content.slaveComponentHosts').someProperty('componentName', 'CLIENT')) { clientHosts = this.get('content.slaveComponentHosts').findProperty('componentName', 'CLIENT').hosts; } var clients = this.get('content.clients').filterProperty('isInstalled', false); var clientsToMasterMap = this.getClientsMap('isMaster'); var clientsToClientMap = this.getClientsMap('isClient'); var installedClients = []; // Get all the installed Client components this.get('content.services').filterProperty('isInstalled').forEach(function (_service) { var serviceClients = App.StackServiceComponent.find().filterProperty('serviceName', _service.get('serviceName')).filterProperty('isClient'); serviceClients.forEach(function (client) { installedClients.push(client.get('componentName')); }, this); }, this); // Check if there is a dependency for being co-hosted between existing client and selected new master installedClients.forEach(function (_clientName) { if (clientsToMasterMap[_clientName] || clientsToClientMap[_clientName]) { var hostNames = []; if (clientsToMasterMap[_clientName]) { clientsToMasterMap[_clientName].forEach(function (componentName) { masterHosts.filterProperty('component', componentName).filterProperty('isInstalled', false).forEach(function (_masterHost) { hostNames.pushObject(_masterHost.hostName); }, this); }, this); } if (clientsToClientMap[_clientName]) { clientsToClientMap[_clientName].forEach(function (componentName) { clientHosts.forEach(function (_clientHost) { var host = this.get('content.hosts')[_clientHost.hostName]; if (host.isInstalled && !host.hostComponents.someProperty('HostRoles.component_name', componentName)) { hostNames.pushObject(_clientHost.hostName); } }, this); }, this); } hostNames = hostNames.uniq(); if (hostNames.length > 0) { // If a dependency for being co-hosted is derived between existing client and selected new master but that // dependency is already satisfied in the cluster then disregard the derived dependency this.removeClientsFromList(_clientName, hostNames); this.registerHostsToComponent(hostNames, _clientName); if(hostNames.length > 0) { this.get('content.additionalClients').pushObject({hostNames: hostNames, componentName: _clientName}); } } } }, this); }, /** * * @param clientName * @param hostList */ removeClientsFromList: function (clientName, hostList) { var clientHosts = []; var installedHosts = this.get('content.hosts'); for (var hostName in installedHosts) { if (installedHosts[hostName].isInstalled) { if (installedHosts[hostName].hostComponents.mapProperty('HostRoles.component_name').contains(clientName)) { clientHosts.push(hostName); } } } if (clientHosts.length > 0) { clientHosts.forEach(function (hostName) { if (hostList.contains(hostName)) { hostList.splice(hostList.indexOf(hostName), 1); } }, this); } }, /** * Register additional components * Based on availability of some services * @uses registerHostsToComponent * @method createAdditionalHostComponents */ createAdditionalHostComponents: function () { var masterHosts = this.get('content.masterComponentHosts'); // add all components with cardinality == ALL of selected services var registeredHosts = this.getRegisteredHosts(); var notInstalledHosts = registeredHosts.filterProperty('isInstalled', false); this.get('content.services').filterProperty('isSelected').forEach(function (service) { service.get('serviceComponents').filterProperty('isRequiredOnAllHosts').forEach(function (component) { if (service.get('isInstalled') && notInstalledHosts.length) { this.registerHostsToComponent(notInstalledHosts.mapProperty('hostName'), component.get('componentName')); } else if (!service.get('isInstalled') && registeredHosts.length) { this.registerHostsToComponent(registeredHosts.mapProperty('hostName'), component.get('componentName')); } }, this); }, this); // add MySQL Server if Hive is selected var hiveService = this.get('content.services').filterProperty('isSelected', true).filterProperty('isInstalled', false).findProperty('serviceName', 'HIVE'); if (hiveService) { var hiveDb = this.get('content.serviceConfigProperties').findProperty('name', 'hive_database'); if (hiveDb.value == "New MySQL Database") { this.registerHostsToComponent(masterHosts.filterProperty('component', 'HIVE_SERVER').mapProperty('hostName'), 'MYSQL_SERVER'); } else if (hiveDb.value === "New PostgreSQL Database") { this.registerHostsToComponent(masterHosts.filterProperty('component', 'HIVE_SERVER').mapProperty('hostName'), 'POSTGRESQL_SERVER'); } } }, /** * Register component to hosts * Queued request * @param {String[]} hostNames * @param {String} componentName * @method registerHostsToComponent */ registerHostsToComponent: function (hostNames, componentName) { if (!hostNames.length) return; var queryStr = ''; hostNames.forEach(function (hostName) { queryStr += 'Hosts/host_name=' + hostName + '|'; }); //slice off last symbol '|' queryStr = queryStr.slice(0, -1); var data = { "RequestInfo": { "query": queryStr }, "Body": { "host_components": [ { "HostRoles": { "component_name": componentName } } ] } }; this.addRequestToAjaxQueue({ name: 'wizard.step8.register_host_to_component', data: { data: JSON.stringify(data) } }); }, /** * Create config objects for cluster and services * @method createConfigurations */ createConfigurations: function () { var tag = this.getServiceConfigVersion(); if (this.get('isInstaller')) { /** add cluster-env **/ this.get('serviceConfigTags').pushObject(this.createDesiredConfig('cluster-env', tag, this.get('configs').filterProperty('filename', 'cluster-env.xml'))); } this.get('selectedServices').forEach(function (service) { Object.keys(service.get('configTypes')).forEach(function (type) { if (!this.get('serviceConfigTags').someProperty('type', type)) { var configs = this.get('configs').filterProperty('filename', App.config.getOriginalFileName(type)); var serviceConfigNote = this.getServiceConfigNote(type, service.get('displayName')); this.get('serviceConfigTags').pushObject(this.createDesiredConfig(type, tag, configs, serviceConfigNote)); } }, this); }, this); this.createNotification(); }, /** * Get config version tag * * @returns {string} */ getServiceConfigVersion: function() { return 'version' + (this.get('isAddService') ? (new Date).getTime() : '1'); }, /** * Get config version message * * @param type * @param serviceDisplayName * @returns {*} */ getServiceConfigNote: function(type, serviceDisplayName) { return (this.get('isAddService') && (type === 'core-site')) ? Em.I18n.t('dashboard.configHistory.table.notes.addService') : Em.I18n.t('dashboard.configHistory.table.notes.default').format(serviceDisplayName); }, /** * Send <code>serviceConfigTags</code> to server * Queued request * One request for each service config tag * @param serviceConfigTags * @method applyConfigurationsToCluster */ applyConfigurationsToCluster: function (serviceConfigTags) { var allServices = this.get('installedServices').concat(this.get('selectedServices')); var allConfigData = []; allServices.forEach(function (service) { var serviceConfigData = []; Object.keys(service.get('configTypesRendered')).forEach(function (type) { var serviceConfigTag = serviceConfigTags.findProperty('type', type); if (serviceConfigTag) { serviceConfigData.pushObject(serviceConfigTag); } }, this); if (serviceConfigData.length) { allConfigData.pushObject(JSON.stringify({ Clusters: { desired_config: serviceConfigData.map(function(item) { var props = {}; Em.keys(item.properties).forEach(function(propName) { if (item.properties[propName] !== null) { props[propName] = item.properties[propName]; } }); item.properties = props; return item; }) } })); } }, this); var clusterConfig = serviceConfigTags.findProperty('type', 'cluster-env'); if (clusterConfig) { allConfigData.pushObject(JSON.stringify({ Clusters: { desired_config: [clusterConfig] } })); } this.addRequestToAjaxQueue({ name: 'common.across.services.configurations', data: { data: '[' + allConfigData.toString() + ']' } }); }, /** * Create and update config groups * @method createConfigurationGroups */ createConfigurationGroups: function () { var configGroups = this.get('content.configGroups').filterProperty('is_default', false); var groupsToDelete = App.router.get(this.get('content.controllerName')).getDBProperty('groupsToDelete'); if (groupsToDelete && groupsToDelete.length > 0) { this.removeInstalledServicesConfigurationGroups(groupsToDelete); } configGroups.forEach(function (configGroup) { if (configGroup.is_for_update || !configGroup.config_group_id) { this.saveGroup(configGroup.properties, configGroup, this.getServiceConfigNote('', configGroup.service_id)); } }, this); }, /** * add request to create config group to queue * * @param data * @method createConfigGroup */ createConfigGroup: function(data) { this.addRequestToAjaxQueue({ name: 'wizard.step8.apply_configuration_groups', sender: this, data: { data: JSON.stringify(data) } }); }, /** * add request to update config group to queue * * @param data {Object} * @method updateConfigGroup */ updateConfigGroup: function (data) { this.addRequestToAjaxQueue({ name: 'config_groups.update_config_group', sender: this, data: { id: data.ConfigGroup.id, configGroup: data } }); }, /** * Delete selected config groups * @param {Object[]} groupsToDelete * @method removeInstalledServicesConfigurationGroups */ removeInstalledServicesConfigurationGroups: function (groupsToDelete) { var self = this; groupsToDelete.forEach(function (item) { self.deleteConfigurationGroup(Em.Object.create(item)); }); }, /** * Selected and installed services * @override */ currentServices: function() { return this.get('installedServices').concat(this.get('selectedServices')); }.property('installedServices.length', 'selectedServices.length'), /** * Add handling GLUSTREFS properties * @param property * @returns {*} * @override */ formatValueBeforeSave: function(property) { if (this.formatGLUSTERFSProperties(Em.get(property, 'filename'))) { switch (property.name) { case "fs.default.name": return this.get('configs').someProperty('name', 'fs_glusterfs_default_name') ? this.get('configs').findProperty('name', 'fs_glusterfs_default_name').value : null; case "fs.defaultFS": return this.get('configs').someProperty('name', 'glusterfs_defaultFS_name') ? this.get('configs').findProperty('name', 'glusterfs_defaultFS_name').value : null; } } return this._super(property); }, /** * Defines if some GLUSTERFS properties should be changed * * @param {String} type * @returns {boolean} */ formatGLUSTERFSProperties: function(type) { return App.config.getConfigTagFromFileName(type) === 'core-site' && this.get('installedServices').concat(this.get('selectedServices')).someProperty('serviceName', 'GLUSTERFS'); }, /** * Create one Alert Notification (if user select this on step7) * Only for Install Wizard and stack * @method createNotification */ createNotification: function () { if (this.get('content.controllerName') !== 'installerController') return; var miscConfigs = this.get('configs').filterProperty('serviceName', 'MISC'), createNotification = miscConfigs.findProperty('name', 'create_notification').value; if (createNotification !== 'yes') return; var predefinedNotificationConfigNames = require('data/HDP2/alert_notification').mapProperty('name'), configsForNotification = this.get('configs').filterProperty('filename', 'alert_notification'); var properties = {}, names = [ 'ambari.dispatch.recipients', 'mail.smtp.host', 'mail.smtp.port', 'mail.smtp.from', 'mail.smtp.starttls.enable', 'mail.smtp.startssl.enable' ]; if (miscConfigs.findProperty('name', 'smtp_use_auth').value == 'true') { // yes, it's not converted to boolean names.pushObjects(['ambari.dispatch.credential.username', 'ambari.dispatch.credential.password']); } names.forEach(function (name) { properties[name] = miscConfigs.findProperty('name', name).value; }); properties['ambari.dispatch.recipients'] = properties['ambari.dispatch.recipients'].replace(/\s/g, '').split(','); configsForNotification.forEach(function (config) { if (predefinedNotificationConfigNames.contains(config.name)) return; properties[config.name] = config.value; }); var apiObject = { AlertTarget: { name: 'Initial Notification', description: 'Notification created during cluster installing', global: true, notification_type: 'EMAIL', alert_states: ['OK', 'WARNING', 'CRITICAL', 'UNKNOWN'], properties: properties } }; this.addRequestToAjaxQueue({ name: 'alerts.create_alert_notification', data: { urlParams: 'overwrite_existing=true', data: apiObject } }); }, /** * Should ajax-queue progress bar be displayed * @method showLoadingIndicator */ showLoadingIndicator: function () { return App.ModalPopup.show({ header: '', showFooter: false, showCloseButton: false, bodyClass: Em.View.extend({ templateName: require('templates/wizard/step8/step8_log_popup'), controllerBinding: 'App.router.wizardStep8Controller', /** * Css-property for progress-bar * @type {string} */ barWidth: '', progressBarClass: 'progress log_popup', /** * Popup-message * @type {string} */ message: '', /** * Set progress bar width and popup message when ajax-queue requests are proccessed * @method ajaxQueueChangeObs */ ajaxQueueChangeObs: function () { var length = this.get('controller.ajaxQueueLength'); var left = this.get('controller.ajaxRequestsQueue.queue.length'); this.set('barWidth', 'width: ' + ((length - left) / length * 100) + '%;'); this.set('message', Em.I18n.t('installer.step8.deployPopup.message').format((length - left), length)); }.observes('controller.ajaxQueueLength', 'controller.ajaxRequestsQueue.queue.length'), /** * Hide popup when ajax-queue is finished * @method autoHide */ autoHide: function () { if (this.get('controller.servicesInstalled')) { this.get('parentView').hide(); } }.observes('controller.servicesInstalled') }) }); } });
module.exports = { 'extends': 'eslint:recommended', 'env': { 'node': true, 'browser': false, 'es6': true }, 'parserOptions': { 'ecmaVersion': 2018, 'sourceType': 'module' }, 'rules': { 'linebreak-style':2, 'comma-dangle': ['error', 'only-multiline'], 'comma-spacing': ['error', { 'before': false, 'after': true }], 'eol-last': ['error', 'always'], 'indent': ['error', 4, { 'MemberExpression': 1 }], 'no-multiple-empty-lines': ['error'], 'no-new-symbol': 'error', 'no-trailing-spaces': ['error'], 'no-undef': ['error'], 'no-unused-vars': ['error'], 'object-curly-spacing': ['error', 'always'], 'object-shorthand': 'error', 'prefer-const': 2, 'quotes': ['error', 'single'], 'semi': ['error', 'always'], 'space-in-parens': ['error', 'never'], 'strict': [2, 'never'], 'no-console':'off', 'no-useless-escape':'off' }, 'globals':{ } };
//模块的配置 require.config({ paths: { 'jquery': 'https://cdn.bootcdn.net/ajax/libs/jquery/3.3.1/jquery.min', 'jcookie': 'https://cdn.bootcdn.net/ajax/libs/jquery-cookie/1.0/jquery.cookie.min', 'jlazyload': 'https://cdn.bootcdn.net/ajax/libs/jquery.lazyload/1.8.3/jquery.lazyload.min', }, shim: { 'jcookie': { deps: ['jquery'], exprots: 'jcookie' }, 'jlazyload': { deps: ['jquery'], exports: 'jlazyload' } } }) require(['jquery', 'jcookie', 'jlazyload'], function() { let pagemod = $('#currentpage').attr('data-page'); require([pagemod], function(page) { page.init(); }); });
// This is the main.js file. Import global CSS and scripts here. // The Client API can be used here. Learn more: gridsome.org/docs/client-api import DefaultLayout from '~/layouts/Default.vue' import '~/assets/scss/globals.scss' import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' import { config, library } from '@fortawesome/fontawesome-svg-core' import { faGithub, faTwitter } from '@fortawesome/free-brands-svg-icons' import { faLightbulb, faQuoteLeft, faQuoteRight } from '@fortawesome/free-solid-svg-icons' import '@fortawesome/fontawesome-svg-core/styles.css' import Vuetify from 'vuetify' import "vuetify/dist/vuetify.min.css" import Vuex from 'vuex' import ContractForm from '~/components/contract-ui/ContractForm.vue' import Highlightable from '~/components/Highlightable.vue' import Vssue from 'vssue' import GithubV3 from '@vssue/api-github-v3' import 'vssue/dist/vssue.css' require('typeface-source-sans-pro') config.autoAddCss = false; library.add(faGithub, faTwitter) export default function (Vue, { router, head, isClient, appOptions }) { // Add iconography plugin library.add(faLightbulb, faQuoteLeft, faQuoteRight) Vue.component('fa-icon', FontAwesomeIcon) // out-of-the-box slick layouts plus material design classes Vue.use(Vuetify); // not actually sure if needed Vue.use(Vuex) // Set default layout as a global component Vue.component('Layout', DefaultLayout) // Add contract demo Vue.component('contract-form', ContractForm) // Add Medium Style Select Text to Comment Functionality Vue.component('highlightable', Highlightable) // allows users to comment via GH issues on any text they select Vue.use(Vssue, { api: GithubV3, owner: process.env.GRIDSOME_REPO_OWNER, repo: process.env.GRIDSOME_REPO_NAME, clientId: process.env.GRIDSOME_VSSUE_CLIENT_ID, clientSecret: process.env.GRIDSOME_VSSUE_CLIENT_SECRET }) // // allows users to comment via GH issues on any text they select // Vue.use(VueNear, { // // Needs the environment for the correct RPC to use // env: 'development', // config: { // appTitle: 'Thanks', // contractName: 'thanks.humanman.testnet', // }, // }) // Add attributes to HTML tag head.htmlAttrs = { lang: 'en' } head.link.push({ rel: 'manifest', href: '/manifest.json' }) head.link.push({ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css', }) head.link.push({ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900', }); head.meta.push({ name: 'theme-color', content: '#10c186' }) head.meta.push({ name: 'google-site-verification', content: process.env.GSV_META }) head.meta.push({ name: 'apple-mobile-web-app-status-bar-style', content: 'default' }) // NEAR API head.script.push({ src: "https://cdn.jsdelivr.net/gh/nearprotocol/near-api-js/dist/near-api-js.js" }) //UI appOptions.vuetify = new Vuetify({}); // State appOptions.store = new Vuex.Store({ state: { sidebarOpen: false }, mutations: { toggleSidebar(state) { state.sidebarOpen = !state.sidebarOpen }, closeSidebar(state) { state.sidebarOpen = false }, openSidebar(state) { state.sidebarOpen = true } } }) }
export default { methods: { onChangeLocale(command) { this.$i18n.locale = command } } }
define({ "_widgetLabel": "Tietojen yhteenveto", "title": "InfoSummary-pienoisohjelma", "helpText": "InfoSummary-ohjeteksti" });
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render, fillIn, find } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; module('Integration | Component | login-form', function(hooks) { setupRenderingTest(hooks); test('it renders', async function(assert) { // Set any properties with this.set('myProperty', 'value'); // Handle any actions with this.set('myAction', function(val) { ... }); await render(hbs`<LoginForm />`); assert.deepEqual(this.element.textContent.trim().replace(/\s*\n+\s*/g, '\n').split('\n'), [ "Login", "Select a user", "Testy Testerson", "Sample McData" ]); let button = /** @type { HTMLInputElement } */ (find('input[type="submit"]')); assert.equal(button.disabled, true) // button is disabled await fillIn('select', '1'); // button is enabled assert.equal(button.disabled, false) }); });
import { useState, useEffect } from 'react'; import { Badge } from 'reactstrap'; import { Chart } from 'react-google-charts'; import { FontAwesomeIcon as Icon } from '@fortawesome/react-fontawesome'; import { faCalendar, faUser, faLink } from '@fortawesome/free-solid-svg-icons'; import SelfVisDataModel from 'libs/selfVisModel/SelfVisDataModel'; import moment from 'moment'; import Tippy from '@tippyjs/react'; import { RESOURCE_TYPE_ID } from 'constants/misc'; import ROUTES from 'constants/routes.js'; import { Link } from 'react-router-dom'; import { reverse } from 'named-urls'; import styled from 'styled-components'; import PropTypes from 'prop-types'; const VisualizationCard = styled.div` margin: 0 2px; cursor: pointer; border: ${props => (!props.isHovered ? '1px solid rgb(219,221,229)' : '1px solid #e8616169')}; border-radius: 5px; width: 220px; `; const DescriptionHeader = styled.div` color: white; background: ${props => props.theme.primary}; padding: 5px; text-overflow: ellipsis; &::selection, &::-moz-selection { color: ${props => props.theme.secondary}; background: ${props => props.theme.light} !important; } `; const SingleVisualizationComponent = props => { const getAvailableWidth = () => { const item = document.getElementById('PreviewCarouselContainer'); return item?.clientWidth; }; // get window dimensions to set the fullWidget into the center of the screen. const width = getAvailableWidth(); const [isHovering, setIsHovering] = useState(false); const [renderingData, setRenderingData] = useState(undefined); const [windowHeight, setWindowHeight] = useState(0.5 * window.innerHeight); const [windowWidth, setWindowWidth] = useState(0.8 * width); const [selfVisModel] = useState(new SelfVisDataModel()); /** hover over a preview card handler -- currently disabled **/ const handleMouseEnter = () => { // get window dimensions to set the fullWidget into the center of the screen. const width = getAvailableWidth(); setIsHovering(true); setWindowHeight(0.4 * window.innerHeight); setWindowWidth(0.8 * width); }; const handleMouseLeave = () => { setIsHovering(false); }; const visMethod = props.input.reconstructionModel.data.visMethod; const customizationState = props.input.reconstructionModel.data.reconstructionData.customizationState; useEffect(() => { // we need to check if the data input for this component has changed iff then apply reconstructionModel) const renderingData = selfVisModel.applyReconstructionModel(props.input.reconstructionModel); setRenderingData(renderingData); // eslint-disable-next-line react-hooks/exhaustive-deps }, [props.input.reconstructionModel.orkgOrigin]); return ( <Tippy onShow={handleMouseEnter} onHide={handleMouseLeave} interactive={true} placement="bottom" theme="visualizationPreview" maxWidth={windowWidth} content={ <div index={props.itemIndex} style={{ overflow: 'hidden', borderRadius: '4px', width: windowWidth + 'px' // height: windowHeight + 100 + 'px' }} > <DescriptionHeader> {props.input.label.length > 0 ? 'Title: ' + props.input.label : 'No Title'} <Tippy content="Go to resource page"> <Link target="_blank" className="ml-2 resourceLink" to={reverse(ROUTES.RESOURCE, { id: props.input.id })}> <Icon icon={faLink} color="#fff" /> </Link> </Tippy> </DescriptionHeader> {isHovering && ( <Chart chartType={visMethod} data={renderingData} width={windowWidth - 20 + 'px'} height={windowHeight - 50 + 'px'} options={{ showRowNumber: true, width: '100%', hAxis: { title: visMethod === 'BarChart' ? customizationState.yAxisLabel : customizationState.xAxisLabel }, vAxis: { title: visMethod === 'BarChart' ? customizationState.xAxisLabel : customizationState.yAxisLabel } }} /> )} <hr className="m-1" /> <div className="d-flex"> <div className="col-6 p-2 mb-2" style={{ borderRight: '2px solid #ddd' }}> <b>Description:</b> <br /> <span>{props.input.description ? props.input.description : 'No Description'}</span>{' '} </div> <div className="col-6 p-2 mb-2"> <b>Meta Information:</b> <br /> <div className="mb-2"> <i>Created on: </i> <span className="badge badge-light mr-2"> <Icon icon={faCalendar} className="text-primary" />{' '} {props.input.created_at ? moment(props.input.created_at).format('dddd, MMMM Do YYYY') : ''} </span> </div> {props.input.authors && props.input.authors.length > 0 && ( <div className="mb-2"> <i>Created by: </i> {props.input.authors.map(author => { if (author && author.class === RESOURCE_TYPE_ID) { return ( <Link className="d-inline-block mr-2 mb-2" to={reverse(ROUTES.AUTHOR_PAGE, { authorId: author.id })} key={`author${author.id}`} > <Badge color="light"> <Icon icon={faUser} className="text-primary" /> {author.label} </Badge> </Link> ); } else { return ( <Badge key={`author${author.id}`} color="light" className="mr-2 mb-2"> <Icon icon={faUser} /> {author.label} </Badge> ); } })} </div> )} </div> </div> {!isHovering && <div style={{ width: windowWidth - 20 + 'px', height: windowHeight - 50 + 'px' }} />} </div> } > <VisualizationCard onClick={() => { selfVisModel.applyReconstructionModel(props.input.reconstructionModel); props.expandVisualization(true); }} isHovered={isHovering} id={`#Vis${props.input.reconstructionModel.orkgOrigin}`} > <div style={{ padding: '5px', pointerEvents: 'none', minWidth: '200px', minHeight: '100px' }}> {renderingData && ( <Chart chartType={visMethod} data={renderingData} width="200px" height="100px" options={{ width: '100%', chartArea: { height: '50%' }, showRowNumber: true, hAxis: { title: visMethod === 'BarChart' ? customizationState.yAxisLabel : customizationState.xAxisLabel }, vAxis: { title: visMethod === 'BarChart' ? customizationState.xAxisLabel : customizationState.yAxisLabel } }} /> )} </div> </VisualizationCard> </Tippy> ); }; SingleVisualizationComponent.propTypes = { input: PropTypes.object, itemIndex: PropTypes.number, expandVisualization: PropTypes.func }; export default SingleVisualizationComponent;
/** * Changing fixtures won't reload worker */ 'use strict'; module.exports = { test: 'js', };
/* Copyright 2019, 2020 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ import React from "react"; import ReactDOM from 'react-dom'; import {MatrixClientPeg} from '../MatrixClientPeg'; import SettingsStore from "../settings/SettingsStore"; import {PushProcessor} from 'matrix-js-sdk/src/pushprocessor'; import * as sdk from '../index'; /** * Recurses depth-first through a DOM tree, converting matrix.to links * into pills based on the context of a given room. Returns a list of * the resulting React nodes so they can be unmounted rather than leaking. * * @param {Node[]} nodes - a list of sibling DOM nodes to traverse to try * to turn into pills. * @param {MatrixEvent} mxEvent - the matrix event which the DOM nodes are * part of representing. * @param {Node[]} pills: an accumulator of the DOM nodes which contain * React components which have been mounted as part of this. * The initial caller should pass in an empty array to seed the accumulator. */ export function pillifyLinks(nodes, mxEvent, pills) { const room = MatrixClientPeg.get().getRoom(mxEvent.getRoomId()); const shouldShowPillAvatar = SettingsStore.getValue("Pill.shouldShowPillAvatar"); let node = nodes[0]; while (node) { let pillified = false; if (node.tagName === "A" && node.getAttribute("href")) { const href = node.getAttribute("href"); // If the link is a (localised) matrix.to link, replace it with a pill const Pill = sdk.getComponent('elements.Pill'); if (Pill.isMessagePillUrl(href)) { const pillContainer = document.createElement('span'); const pill = <Pill url={href} inMessage={true} room={room} shouldShowPillAvatar={shouldShowPillAvatar} />; ReactDOM.render(pill, pillContainer); node.parentNode.replaceChild(pillContainer, node); pills.push(pillContainer); // Pills within pills aren't going to go well, so move on pillified = true; // update the current node with one that's now taken its place node = pillContainer; } } else if ( node.nodeType === Node.TEXT_NODE && // as applying pills happens outside of react, make sure we're not doubly // applying @room pills here, as a rerender with the same content won't touch the DOM // to clear the pills from the last run of pillifyLinks !node.parentElement.classList.contains("mx_AtRoomPill") ) { const Pill = sdk.getComponent('elements.Pill'); let currentTextNode = node; const roomNotifTextNodes = []; // Take a textNode and break it up to make all the instances of @room their // own textNode, adding those nodes to roomNotifTextNodes while (currentTextNode !== null) { const roomNotifPos = Pill.roomNotifPos(currentTextNode.textContent); let nextTextNode = null; if (roomNotifPos > -1) { let roomTextNode = currentTextNode; if (roomNotifPos > 0) roomTextNode = roomTextNode.splitText(roomNotifPos); if (roomTextNode.textContent.length > Pill.roomNotifLen()) { nextTextNode = roomTextNode.splitText(Pill.roomNotifLen()); } roomNotifTextNodes.push(roomTextNode); } currentTextNode = nextTextNode; } if (roomNotifTextNodes.length > 0) { const pushProcessor = new PushProcessor(MatrixClientPeg.get()); const atRoomRule = pushProcessor.getPushRuleById(".m.rule.roomnotif"); if (atRoomRule && pushProcessor.ruleMatchesEvent(atRoomRule, mxEvent)) { // Now replace all those nodes with Pills for (const roomNotifTextNode of roomNotifTextNodes) { // Set the next node to be processed to the one after the node // we're adding now, since we've just inserted nodes into the structure // we're iterating over. // Note we've checked roomNotifTextNodes.length > 0 so we'll do this at least once node = roomNotifTextNode.nextSibling; const pillContainer = document.createElement('span'); const pill = <Pill type={Pill.TYPE_AT_ROOM_MENTION} inMessage={true} room={room} shouldShowPillAvatar={true} />; ReactDOM.render(pill, pillContainer); roomNotifTextNode.parentNode.replaceChild(pillContainer, roomNotifTextNode); pills.push(pillContainer); } // Nothing else to do for a text node (and we don't need to advance // the loop pointer because we did it above) continue; } } } if (node.childNodes && node.childNodes.length && !pillified) { pillifyLinks(node.childNodes, mxEvent, pills); } node = node.nextSibling; } } /** * Unmount all the pill containers from React created by pillifyLinks. * * It's critical to call this after pillifyLinks, otherwise * Pills will leak, leaking entire DOM trees via the event * emitter on BaseAvatar as per * https://github.com/vector-im/riot-web/issues/12417 * * @param {Node[]} pills - array of pill containers whose React * components should be unmounted. */ export function unmountPills(pills) { for (const pillContainer of pills) { ReactDOM.unmountComponentAtNode(pillContainer); } }
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); const DotEnvWebpackPlugin = require('dotenv-webpack'); const path = require('path'); const srcPath = path.resolve(__dirname, 'src'); const distPath = path.resolve(__dirname, 'dist'); module.exports = { context: __dirname, resolve: { modules: [srcPath, path.resolve(__dirname, 'node_modules')], extensions: ['.ts', '.tsx', '.js'], }, entry: srcPath, output: { path: distPath, publicPath: '/', }, module: { rules: [ { test: /\.tsx?$/, loader: 'ts-loader', exclude: /node_modules/, options: { transpileOnly: true, }, }, ], }, plugins: [new ForkTsCheckerWebpackPlugin(), new DotEnvWebpackPlugin()], devtool: 'source-map', devServer: { host: 'localhost', port: 5000, contentBase: distPath, historyApiFallback: true, watchContentBase: true, stats: 'minimal', }, };
$(document).ready(function () { $(".items").click(function () { var curentlist = $(this).parent().attr('id'); if (curentlist == "liste1") $(this).detach().appendTo($("#liste2")); if (curentlist == "liste2") $(this).detach().appendTo($("#liste1")); }); });
var gulp = require('gulp'); var uglify = require('gulp-uglify'); var uglifycss = require('gulp-uglifycss'); var rename = require('gulp-rename'); gulp.task('dist', function() { gulp.src('src/*.js') .pipe(uglify()) .pipe(rename({ suffix: '.min' })) .pipe(gulp.dest('dist')) }); gulp.task('default',function() { gulp.watch('src/*.js','dist'); });
const User = ` type User { id: ID! username: String email: String password: String notes: [Note] } `; export default User;
/* Massively by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) */ (function($) { var $window = $(window), $body = $('body'), $wrapper = $('#wrapper'), $header = $('#header'), $nav = $('#nav'), $main = $('#main'), $navPanelToggle, $navPanel, $navPanelInner; // Breakpoints. breakpoints({ default: ['1681px', null ], xlarge: ['1281px', '1680px' ], large: ['981px', '1280px' ], medium: ['737px', '980px' ], small: ['481px', '736px' ], xsmall: ['361px', '480px' ], xxsmall: [null, '360px' ] }); /** * Applies parallax scrolling to an element's background image. * @return {jQuery} jQuery object. */ $.fn._parallax = function(intensity) { var $window = $(window), $this = $(this); if (this.length == 0 || intensity === 0) return $this; if (this.length > 1) { for (var i=0; i < this.length; i++) $(this[i])._parallax(intensity); return $this; } if (!intensity) intensity = 0.25; $this.each(function() { var $t = $(this), $bg = $('<div class="bg"></div>').appendTo($t), on, off; on = function() { $bg .removeClass('fixed') .css('transform', 'matrix(1,0,0,1,0,0)'); $window .on('scroll._parallax', function() { var pos = parseInt($window.scrollTop()) - parseInt($t.position().top); $bg.css('transform', 'matrix(1,0,0,1,0,' + (pos * intensity) + ')'); }); }; off = function() { $bg .addClass('fixed') .css('transform', 'none'); $window .off('scroll._parallax'); }; // Disable parallax on .. if (browser.name == 'ie' // IE || browser.name == 'edge' // Edge || window.devicePixelRatio > 1 // Retina/HiDPI (= poor performance) || browser.mobile) // Mobile devices off(); // Enable everywhere else. else { breakpoints.on('>large', on); breakpoints.on('<=large', off); } }); $window .off('load._parallax resize._parallax') .on('load._parallax resize._parallax', function() { $window.trigger('scroll'); }); return $(this); }; $('#video_id').on('loadstart', function (event) { $(this).addClass('loading'); }); $('#video_id').on('canplay', function (event) { $(this).removeClass('loading'); $(this).attr('poster', ''); }); // Play initial animations on page load. $window.on('load', function() { window.setTimeout(function() { $body.removeClass('is-preload'); }, 100); }); // Scrolly. $('.scrolly').scrolly(); // Background. $wrapper._parallax(0.925); // Nav Panel. // Toggle. $navPanelToggle = $( '<a href="#navPanel" id="navPanelToggle">Menu</a>' ) .appendTo($wrapper); // Change toggle styling once we've scrolled past the header. $header.scrollex({ bottom: '5vh', enter: function() { $navPanelToggle.removeClass('alt'); }, leave: function() { $navPanelToggle.addClass('alt'); } }); // Panel. $navPanel = $( '<div id="navPanel">' + '<nav>' + '</nav>' + '<a href="#navPanel" class="close"></a>' + '</div>' ) .appendTo($body) .panel({ delay: 500, hideOnClick: true, hideOnSwipe: true, resetScroll: true, resetForms: true, side: 'right', target: $body, visibleClass: 'is-navPanel-visible' }); // Get inner. $navPanelInner = $navPanel.children('nav'); // Move nav content on breakpoint change. var $navContent = $nav.children(); breakpoints.on('>medium', function() { // NavPanel -> Nav. $navContent.appendTo($nav); // Flip icon classes. $nav.find('.icons, .icon') .removeClass('alt'); }); breakpoints.on('<=medium', function() { // Nav -> NavPanel. $navContent.appendTo($navPanelInner); // Flip icon classes. $navPanelInner.find('.icons, .icon') .addClass('alt'); }); // Hack: Disable transitions on WP. if (browser.os == 'wp' && browser.osVersion < 10) $navPanel .css('transition', 'none'); // Intro. var $intro = $('#intro'); if ($intro.length > 0) { // Hack: Fix flex min-height on IE. if (browser.name == 'ie') { $window.on('resize.ie-intro-fix', function() { var h = $intro.height(); if (h > $window.height()) $intro.css('height', 'auto'); else $intro.css('height', h); }).trigger('resize.ie-intro-fix'); } // Hide intro on scroll (> small). breakpoints.on('>small', function() { $main.unscrollex(); $main.scrollex({ mode: 'bottom', top: '25vh', bottom: '-50vh', enter: function() { $intro.addClass('hidden'); }, leave: function() { $intro.removeClass('hidden'); } }); }); // Hide intro on scroll (<= small). breakpoints.on('<=small', function() { $main.unscrollex(); $main.scrollex({ mode: 'middle', top: '15vh', bottom: '-15vh', enter: function() { $intro.addClass('hidden'); }, leave: function() { $intro.removeClass('hidden'); } }); }); } })(jQuery);
var group___p_b_a___c_o_n_f_i_g = [ [ "BSP-Konfiguration", "group___b_s_p-_k_o_n_f_i_g_u_r_a_t_i_o_n.html", "group___b_s_p-_k_o_n_f_i_g_u_r_a_t_i_o_n" ], [ "Taktkonfiguration für Delay", "group___d_e_f___d_e_l_a_y.html", "group___d_e_f___d_e_l_a_y" ], [ "Taster-Bits", "group___d_e_f___t_a_s_t_e_r.html", "group___d_e_f___t_a_s_t_e_r" ], [ "Definition LED-und Summer-Bits", "group___d_e_f___l_e_d___s_u_m_m_e_r.html", "group___d_e_f___l_e_d___s_u_m_m_e_r" ], [ "PBA_config.h", "_p_b_a__config_8h.html", null ], [ "PBA_config.c", "_p_b_a__config_8c.html", null ], [ "PBA_Init", "group___p_b_a___c_o_n_f_i_g.html#gafb5f95002b7e470a9e29ef4f253ba56a", null ], [ "putch", "group___p_b_a___c_o_n_f_i_g.html#ga58240cb98993a2f6b353e05bc8c38368", null ] ];
var passport = require('passport-strategy'); var util = require('util'); var saml = require('./saml'); var url = require('url'); function Strategy (options, verify) { if (typeof options == 'function') { verify = options; options = {}; } if (!verify) { throw new Error('SAML authentication strategy requires a verify function'); } // Customizing the name can be useful to support multiple SAML configurations at the same time. // Unlike other options, this one gets deleted instead of passed along. if (options.name) { this.name = options.name; } else { this.name = 'saml'; } passport.Strategy.call(this); this._verify = verify; this._saml = new saml.SAML(options); this._passReqToCallback = !!options.passReqToCallback; this._authnRequestBinding = options.authnRequestBinding || 'HTTP-Redirect'; } util.inherits(Strategy, passport.Strategy); Strategy.prototype.authenticate = function (req, options) { var self = this; options.samlFallback = options.samlFallback || 'login-request'; function validateCallback(err, profile, loggedOut) { if (err) { return self.error(err); } if (loggedOut) { req.logout(); if (profile) { req.samlLogoutRequest = profile; // return self._saml.getLogoutResponseUrl(req, options, redirectIfSuccess); } return self.pass(); } var verified = function (err, user, info) { if (err) { return self.error(err); } if (!user) { return self.fail(info); } self.success(user, info); }; if (self._passReqToCallback) { self._verify(req, profile, verified); } else { self._verify(profile, verified); } } function redirectIfSuccess(err, url) { if (err) { self.error(err); } else { self.redirect(url); } } if (req.query && (req.query.SAMLResponse || req.query.SAMLRequest)) { var originalQuery = url.parse(req.url).query; this._saml.validateRedirect(req.query, originalQuery, validateCallback); } else if (req.body && req.body.SAMLResponse) { this._saml.validatePostResponse(req.body, validateCallback); } else if (req.body && req.body.SAMLRequest) { this._saml.validatePostRequest(req.body, validateCallback); } else { var requestHandler = { 'login-request': function() { if (self._authnRequestBinding === 'HTTP-POST') { this._saml.getAuthorizeForm(req, function(err, data) { if (err) { self.error(err); } else { var res = req.res; res.send(data); } }); } else { // Defaults to HTTP-Redirect this._saml.getAuthorizeUrl(req, options, redirectIfSuccess); } }.bind(self), 'logout-request': function() { this._saml.getLogoutUrl(req, options, redirectIfSuccess); }.bind(self) }[options.samlFallback]; if (typeof requestHandler !== 'function') { return self.fail(); } requestHandler(); } }; Strategy.prototype.logout = function(req, callback) { this._saml.getLogoutUrl(req, {}, callback); }; Strategy.prototype.generateServiceProviderMetadata = function( decryptionCert, signingCert ) { return this._saml.generateServiceProviderMetadata( decryptionCert, signingCert ); }; module.exports = Strategy;
/***************************************************************** * jQuery Validate扩展验证方法 (linjq) * Modified by guojunhui * Date modified:01/01/2017 *****************************************************************/ $(function(){ // 判断整数value是否等于0 jQuery.validator.addMethod("isIntEqZero", function(value, element) { value=parseInt(value); return this.optional(element) || value==0; }, "整数必须为0"); // 判断整数value是否大于0 jQuery.validator.addMethod("isIntGtZero", function(value, element) { value=parseInt(value); return this.optional(element) || value>0; }, "整数必须大于0"); // 判断整数value是否大于或等于0 jQuery.validator.addMethod("isIntGteZero", function(value, element) { value=parseInt(value); return this.optional(element) || value>=0; }, "整数必须大于或等于0"); // 判断整数value是否不等于0 jQuery.validator.addMethod("isIntNEqZero", function(value, element) { value=parseInt(value); return this.optional(element) || value!=0; }, "整数必须不等于0"); // 判断整数value是否小于0 jQuery.validator.addMethod("isIntLtZero", function(value, element) { value=parseInt(value); return this.optional(element) || value<0; }, "整数必须小于0"); // 判断整数value是否小于或等于0 jQuery.validator.addMethod("isIntLteZero", function(value, element) { value=parseInt(value); return this.optional(element) || value<=0; }, "整数必须小于或等于0"); // 判断浮点数value是否等于0 jQuery.validator.addMethod("isFloatEqZero", function(value, element) { value=parseFloat(value); return this.optional(element) || value==0; }, "浮点数必须为0"); // 判断浮点数value是否大于0 jQuery.validator.addMethod("isFloatGtZero", function(value, element) { value=parseFloat(value); return this.optional(element) || value>0; }, "浮点数必须大于0"); // 判断浮点数value是否大于或等于0 jQuery.validator.addMethod("isFloatGteZero", function(value, element) { value=parseFloat(value); return this.optional(element) || value>=0; }, "浮点数必须大于或等于0"); // 判断浮点数value是否不等于0 jQuery.validator.addMethod("isFloatNEqZero", function(value, element) { value=parseFloat(value); return this.optional(element) || value!=0; }, "浮点数必须不等于0"); // 判断浮点数value是否小于0 jQuery.validator.addMethod("isFloatLtZero", function(value, element) { value=parseFloat(value); return this.optional(element) || value<0; }, "浮点数必须小于0"); // 判断浮点数value是否小于或等于0 jQuery.validator.addMethod("isFloatLteZero", function(value, element) { value=parseFloat(value); return this.optional(element) || value<=0; }, "浮点数必须小于或等于0"); // 判断浮点型 jQuery.validator.addMethod("isFloat", function(value, element) { return this.optional(element) || /^[-\+]?\d+(\.\d+)?$/.test(value); }, "只能包含数字、小数点等字符"); // 匹配integer jQuery.validator.addMethod("isInteger", function(value, element) { return this.optional(element) || (/^[-\+]?\d+$/.test(value) && parseInt(value)>=0); }, "匹配integer"); // 判断数值类型,包括整数和浮点数 jQuery.validator.addMethod("isNumber", function(value, element) { return this.optional(element) || /^[-\+]?\d+$/.test(value) || /^[-\+]?\d+(\.\d+)?$/.test(value); }, "匹配数值类型,包括整数和浮点数"); // 只能输入[0-9]数字 jQuery.validator.addMethod("isDigits", function(value, element) { return this.optional(element) || /^\d+$/.test(value); }, "只能输入0-9数字"); // 判断中文字符 jQuery.validator.addMethod("isChinese", function(value, element) { return this.optional(element) || /^[\u0391-\uFFE5]+$/.test(value); }, "只能包含中文字符。"); // 判断英文字符 jQuery.validator.addMethod("isEnglish", function(value, element) { return this.optional(element) || /^[A-Za-z]+$/.test(value); }, "只能包含英文字符。"); // 手机号码验证 jQuery.validator.addMethod("isMobile", function(value, element) { var length = value.length; return this.optional(element) || (length == 11 && /^(((13[0-9]{1})|(15[0-35-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/.test(value)); }, "手机号码格式不正确。"); // 电话号码验证 jQuery.validator.addMethod("isPhone", function(value, element) { var tel = /^(\d{3,4}-?)?\d{7,9}$/g; return this.optional(element) || (tel.test(value)); }, "电话号码格式不正确"); // 联系电话(手机/电话皆可)验证 jQuery.validator.addMethod("isTel", function(value,element) { var length = value.length; var mobile = /^(((13[0-9]{1})|(15[0-35-9]{1})|(17[0-9]{1})|(18[0-9]{1}))+\d{8})$/; var tel = /^(\d{3,4}-?)?\d{7,9}$/g; return this.optional(element) || tel.test(value) || (length==11 && mobile.test(value)); }, "请输入正确手机号码或电话号码"); // 匹配qq jQuery.validator.addMethod("isQq", function(value, element) { return this.optional(element) || /^[1-9]\d{4,12}$/; }, "QQ号码不合法"); // 邮政编码验证 jQuery.validator.addMethod("isZipCode", function(value, element) { var zip = /^[0-9]{6}$/; return this.optional(element) || (zip.test(value)); }, "邮政编码不正确"); // 匹配密码,以字母开头,长度在6-16之间,只能包含字符、数字和下划线。 jQuery.validator.addMethod("isPwd", function(value, element) { return this.optional(element) || /^[a-zA-Z]\\w{6,16}$/.test(value); }, "以字母开头,长度在6-12之间,只能包含字符、数字和下划线。"); // 身份证号码验证 jQuery.validator.addMethod("isIdCardNo", function(value, element) { //var idCard = /^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/; return this.optional(element) || isIdCardNo(value); }, "身份证号码不正确"); // IP地址验证 jQuery.validator.addMethod("ip", function(value, element) { return this.optional(element) || /^(([1-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.)(([1-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))\.){2}([1-9]|([1-9]\d)|(1\d\d)|(2([0-4]\d|5[0-5])))$/.test(value); }, "请填写正确的IP地址"); // 字符验证,只能包含中文、英文、数字、下划线等字符。 jQuery.validator.addMethod("stringCheck", function(value, element) { return this.optional(element) || /^[a-zA-Z0-9\u4e00-\u9fa5-_]+$/.test(value); }, "只能包含中文、英文、数字、下划线等字符"); // 匹配中文(包括汉字和字符) jQuery.validator.addMethod("isChineseChar", function(value, element) { return this.optional(element) || /^[\u0391-\uFFE5]+$/.test(value); }, "匹配中文(包括汉字和字符) "); // 判断是否为合法字符(a-zA-Z0-9-_) jQuery.validator.addMethod("isRightfulString", function(value, element) { return this.optional(element) || /^[A-Za-z0-9_-]+$/.test(value); }, "判断是否为合法字符(a-zA-Z0-9-_)"); // 判断是否包含中英文特殊字符,除英文"-_"字符外 jQuery.validator.addMethod("isContainsSpecialChar", function(value, element) { var reg = RegExp(/[(\ )(\`)(\~)(\!)(\@)(\#)(\$)(\%)(\^)(\&)(\*)(\()(\))(\+)(\=)(\|)(\{)(\})(\')(\:)(\;)(\')(',)(\[)(\])(\.)(\<)(\>)(\/)(\?)(\~)(\!)(\@)(\#)(\¥)(\%)(\…)(\&)(\*)(\()(\))(\—)(\+)(\|)(\{)(\})(\【)(\】)(\‘)(\;)(\:)(\”)(\“)(\’)(\。)(\,)(\、)(\?)]+/); return this.optional(element) || !reg.test(value); }, "含有中英文特殊字符"); //车牌号校验 jQuery.validator.addMethod("isPlateNo", function(value, element) { var reg = /^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$/; return this.optional(element) || (tel.test(value)); },"请输入正确车牌号"); }); //身份证号码的验证规则 function isIdCardNo(num){   //if (isNaN(num)) {alert("输入的不是数字!"); return false;}    var len = num.length, re;    if (len == 15)    re = new RegExp(/^(\d{6})()?(\d{2})(\d{2})(\d{2})(\d{2})(\w)$/);    else if (len == 18)    re = new RegExp(/^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/);    else { //alert("输入的数字位数不对。"); return false; }    var a = num.match(re);    if (a != null)    {    if (len==15)    {    var D = new Date("19"+a[3]+"/"+a[4]+"/"+a[5]);    var B = D.getYear()==a[3]&&(D.getMonth()+1)==a[4]&&D.getDate()==a[5];    }    else    {    var D = new Date(a[3]+"/"+a[4]+"/"+a[5]);    var B = D.getFullYear()==a[3]&&(D.getMonth()+1)==a[4]&&D.getDate()==a[5];    }    if (!B) { //alert("输入的身份证号 "+ a[0] +" 里出生日期不对。"); return false; }    }    if(!re.test(num)){ //alert("身份证最后一位只能是数字和字母。"); return false; }    return true; }
#!/home/imtiaz/.local/bin/checkio --domain=js run number-radix // // END_DESC "use strict"; function numberRadix(str_number, radix){ return -1; } var assert = require('assert'); if (!global.is_checking) { assert.equal(numberRadix("AF", 16), 175, "Hex"); assert.equal(numberRadix("101", 2), 5, "Bin"); assert.equal(numberRadix("101", 5), 26, "5 base"); assert.equal(numberRadix("Z", 36), 35, "Z base"); assert.equal(numberRadix("AB", 10), -1, "B > A > 10"); console.log("Coding complete? Click 'Check' to review your tests and earn cool rewards!"); }
var draw_view3 = { data: 0, height: 0, width: 0, div: 0, view: 0, graph_line_class: 0, yScale: 0, xScale: 0, stroke_color: 0, name_list: 0, record_list: 0, graph_text_class: 0, initialize: function() { var self = this; self.div = "#view3"; self.width = $(self.div).width(); self.height = $(self.div).height(); self.view = d3.select(self.div).append("svg") .attr("width", self.width) .attr("height", self.height); self.stroke_color = "steelblue"; self.name_list = []; self.record_list = []; self.graph_line_class = []; self.draw(); }, draw: function(data) { var self = this; self.yScale = d3.scale.linear() .domain([0, 10]) .range([0, self.height * 0.7]); var yAxis = d3.svg.axis() .scale(self.yScale) .orient("left") .ticks(0); self.yScale.range([self.height * 0.7, 0]); self.xScale = d3.scale.linear() .domain([1965, 2018]) .range([0, self.width * 0.8]); var xAxis = d3.svg.axis() .scale(self.xScale) .ticks(10) var gxAxis = self.view.append("g") .attr("transform", 'translate(' + (self.width * 0.1) + ',' + (self.height * 0.8) + ')') .attr("class", "axis"); var gyAxis = self.view.append("g") .attr("transform", 'translate(' + (self.width * 0.1) + ',' + (self.height * 0.1) + ')') .attr("class", "axis"); gxAxis.call(xAxis); gyAxis.call(yAxis); self.yScale.range([0, self.height * 0.7]); d3.csv("data/all_data.csv", function(error, data) { console.log(data[0].履历); console.log(data); }) }, get_record: function(name) { var self = this; self.name_list.push(name); self.record_list = new Array(self.name_list.length); console.log(self.name_list); d3.csv("data/all_data.csv", function(error, data) { for (var i = 0; i < data.length; i++) { if (_.contains(self.name_list, data[i].姓名)) self.record_list[_.indexOf(self.name_list, data[i].姓名)] = data[i].履历; } for (var i = 0; i < self.record_list.length; i++) { self.record_list[i] = self.record_list[i].toString().split('\n'); } self.draw_line(); self.draw_text(); }) }, draw_text: function() { var self = this; self.remove_text(); self.graph_text_class = self.view.append("g") .attr("id", "view3_text") .selectAll("text") .data(self.name_list) .enter().append("text") .attr("x", function(d, i) { return self.width * 0.07; }) .attr("y", function(d, i) { return self.height * 0.8 - self.height * 0.7 / (self.name_list.length + 1) * (i + 1); }) .text(function(d) { return d }) }, draw_line: function() { var self = this; self.remove_line(); self.graph_line_class = new Array(self.name_list.length); for (var index = 0; index < self.name_list.length; index++) { self.graph_line_class[index] = self.view.append("g") .attr("id", "view3_line" + index) .attr("stroke-width", 3) .attr("stroke", self.stroke_color) .selectAll("line") .data(self.generate_line_data(index)) .enter().append("line") .attr("x1", function(d, i) { return d.x1; }) .attr("x2", function(d, i) { return d.x2; }) .attr("y1", function(d, i) { return d.y1; }) .attr("y2", function(d, i) { return d.y2; }) } for (var index = 0; index < self.name_list.length; index++) { self.graph_line_class[index].attr("opacity", function(d, i) { return (i % 2 == 1) ? 1 : 0.5; }) .on("mouseover", function(d, i) { for (var index = 0; index < location_list.length; index++) { if (d.content.search(location_list[index]) != -1) draw_view2.highlight_location(location_list[index], 1); } d3.select(this).attr("stroke-width", 4) .attr("stroke", "red"); tooltip.html(d.content) .style("left", (d3.event.pageX) + "px") .style("top", (d3.event.pageY + 20) + "px") .style("opacity", 1); }) .on("mouseout", function(d, i) { d3.select(this).attr("stroke-width", 3) .attr("stroke", self.stroke_color) tooltip.style("opacity", 0.0); }) } }, generate_line_data: function(index) { var self = this; console.log(self.record_list); function LINE() {} LINE.prototype.id = 0; LINE.prototype.x1 = 0; LINE.prototype.x2 = 0; LINE.prototype.y1 = 0; LINE.prototype.y2 = 0; LINE.prototype.content = 0; var line_class = new Array(), tmp; for (var i = 0; i < self.record_list[index].length; i++) { tmp = self.record_list[index][i]; tmp = tmp.toString().split('—'); console.log("------------"); console.log(parseInt(tmp[0])); console.log(parseInt(tmp[1])); console.log("------------"); if (isNaN(parseInt(tmp[1]))) tmp[1] = 2018; line_class[i] = new LINE(); line_class[i].id = index; line_class[i].content = self.record_list[index][i]; line_class[i].x1 = self.width * 0.1 + self.xScale(Math.abs(parseInt(tmp[0]))); line_class[i].x2 = self.width * 0.1 + self.xScale(Math.abs(parseInt(tmp[1]))); line_class[i].y1 = self.height * 0.8 - self.height * 0.7 / (self.record_list.length + 1) * (index + 1); line_class[i].y2 = self.height * 0.8 - self.height * 0.7 / (self.record_list.length + 1) * (index + 1); } return line_class; }, remove_line: function() { var self = this; for (var i = 0; i < self.name_list.length; i++) self.view.select("#view3_line" + i).remove(); }, remove_text: function() { var self = this; self.view.select("#view3_text").remove(); } }
import React, {Component} from 'react'; import {Route, Switch} from 'react-router-dom'; import Home from './pages/Home'; import Results from './pages/Results'; import Details from './pages/Details'; import './App.css'; /** * Home.js * * This renders the primary App container. Also handles all app routing. */ class App extends Component { constructor() { super(); // Google Fonts const WebFont = require('webfontloader'); WebFont.load({ google: { families: ['Erica One', 'Open Sans:300,400,700'] } }); // Bind the custom method(s) to the class this.keyboardFocus = this.keyboardFocus.bind(this); this.mouseFocus = this.mouseFocus.bind(this); // Show focus styles on keyboard events only 😎 // https://codepen.io/svinkle/pen/zzrORW document.addEventListener('keyup', this.keyboardFocus); document.addEventListener('mousedown', this.mouseFocus); } /** * Add the focus class to the container if the keyboard event is an * element within the container. * * @param {Object} e Keyboard event object * @return null */ keyboardFocus(e) { if (this.app.contains(e.target)) { this.app.classList.add('app--has-focus'); } else { this.app.classList.remove('app--has-focus'); } } /** * Remove the focus class on mouse click. * * @param {Object} e Mouse event object * @return null */ mouseFocus(e) { if (this.app.contains(e.target)) { this.app.classList.remove('app--has-focus'); } } render() { return ( <div className="app" ref={app => { this.app = app; }} > <Route basename={'/'} render={({location}) => ( <Switch key={location.key} location={location}> <Route exact path={`${process.env.PUBLIC_URL}/`} component={Home} key={location.key} /> <Route path={`${process.env.PUBLIC_URL}/results/:q`} component={Results} key={location.key} /> <Route path={`${process.env.PUBLIC_URL}/show/:id`} component={Details} key={location.key} /> </Switch> )} /> </div> ); } } export default App;
/* eslint-disable no-param-reassign */ // eslint-disable-next-line import/no-extraneous-dependencies import copy from '@guanghechen/rollup-plugin-copy' // eslint-disable-next-line import/no-anonymous-default-export export default { input: 'index.js', output: { dir: 'lib/esm', format: 'esm', }, plugins: [ copy({ verbose: true, targets: [ { src: 'assets/data/*.json', dest: 'dist/packs', rename: name => `${name}.txt`, transform: async function (source) { return 'Author: guanghechen\n' + source.toString() }, }, { src: 'assets/data/some-folder', dest: 'dist/packs', }, { src: 'assets/data/some/**/*.json', dest: 'dist/packs', }, ], }), ], }
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("omi")); else if(typeof define === 'function' && define.amd) define(["omi"], factory); else if(typeof exports === 'object') exports["line-style-outlined"] = factory(require("omi")); else root["line-style-outlined"] = factory(root["Omi"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_omi__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "./esm/line-style-outlined.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "./esm/line-style-outlined.js": /*!************************************!*\ !*** ./esm/line-style-outlined.js ***! \************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ \"omi\");\nvar createSvgIcon_1 = __webpack_require__(/*! ./utils/createSvgIcon */ \"./esm/utils/createSvgIcon.js\");\nexports.default = createSvgIcon_1.default(omi_1.h(\"path\", {\n d: \"M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h-8v2zM3 4v4h18V4H3z\"\n}), 'LineStyleOutlined');\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/line-style-outlined.js?"); /***/ }), /***/ "./esm/utils/createSvgIcon.js": /*!************************************!*\ !*** ./esm/utils/createSvgIcon.js ***! \************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar omi_1 = __webpack_require__(/*! omi */ \"omi\");\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase();\n};\nfunction createSvgIcon(path, displayName) {\n var _a;\n omi_1.define(hyphenate('OIcon' + displayName), (_a = /** @class */ (function (_super) {\n __extends(class_1, _super);\n function class_1() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n class_1.prototype.render = function () {\n return omi_1.h('svg', {\n viewBox: '0 0 24 24',\n }, path);\n };\n return class_1;\n }(omi_1.WeElement)),\n _a.css = \":host {\\n fill: currentColor;\\n width: 1em;\\n height: 1em;\\n display: inline-block;\\n vertical-align: -0.125em;\\n transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\\n flex-shrink: 0;\\n user-select: none;\\n}\",\n _a));\n}\nexports.default = createSvgIcon;\n\n\n//# sourceURL=webpack://%5Bname%5D/./esm/utils/createSvgIcon.js?"); /***/ }), /***/ "omi": /*!******************************************************************************!*\ !*** external {"commonjs":"omi","commonjs2":"omi","amd":"omi","root":"Omi"} ***! \******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("module.exports = __WEBPACK_EXTERNAL_MODULE_omi__;\n\n//# sourceURL=webpack://%5Bname%5D/external_%7B%22commonjs%22:%22omi%22,%22commonjs2%22:%22omi%22,%22amd%22:%22omi%22,%22root%22:%22Omi%22%7D?"); /***/ }) /******/ })["default"]; });
module.exports = { siteMetadata: { title: `Gatsby Default Starter`, description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`, author: `@gatsbyjs`, }, plugins: [ `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, options: { name: `images`, path: `${__dirname}/src/images`, }, }, { resolve: `gatsby-source-filesystem`, options: { name: `posts`, path: `${__dirname}/src/posts`, }, }, `gatsby-transformer-sharp`, `gatsby-plugin-sharp`, `gatsby-plugin-styled-components`, { resolve: `gatsby-plugin-manifest`, options: { name: `gatsby-starter-default`, short_name: `starter`, start_url: `/`, background_color: `#663399`, theme_color: `#663399`, display: `minimal-ui`, icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site. }, }, { resolve: `gatsby-plugin-mdx`, options: { extensions: [`.md`, `.mdx`], gatsbyRemarkPlugins: [ { resolve: `gatsby-remark-images`, options: { maxWidth: 1200, }, }, ], }, }, { resolve: `gatsby-plugin-google-fonts`, options: { fonts: [`Lato`, `muli\:400,400i,700,700i`], display: "swap", }, }, { resolve: `gatsby-plugin-material-ui`, options: { stylesProvider: { injectFirst: true, }, disableAutoprefixing: false, disableMinification: false, }, }, ], }