hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
9dfe34b5bc455ead421bb2c8cda52f92fe49d969
555
js
JavaScript
controllers/reviews.js
aurehmanghani/API-SERVER-FOR-TODO-APP
b52f092a6e256a8c7a756a672ed78c3c6f134775
[ "MIT" ]
null
null
null
controllers/reviews.js
aurehmanghani/API-SERVER-FOR-TODO-APP
b52f092a6e256a8c7a756a672ed78c3c6f134775
[ "MIT" ]
null
null
null
controllers/reviews.js
aurehmanghani/API-SERVER-FOR-TODO-APP
b52f092a6e256a8c7a756a672ed78c3c6f134775
[ "MIT" ]
null
null
null
const reviews = require('../data/reviews.json') function reviewsCtrl (ctx) { let review = reviews.filter(review =>{ return review.pId === parseInt(ctx.params.id) }) ctx.ok({ review }) } function saveReviews (ctx) { let view = ctx.request.body; view["id"] = reviews.length + 1; view["pId"] = parseInt(ctx.params.id); reviews.push(view); let review = reviews.filter(review =>{ return review.pId === parseInt(ctx.params.id); }) ctx.ok({ review }) } module.exports = { reviewsCtrl,saveReviews }
20.555556
51
0.614414
9dffcc571118523607ddea2ee148b64f83efa9c2
819
js
JavaScript
server/src/schema/schemaImage.js
refugies-info/karfur
09c0375c7c23c5fe9e73f8acbc2e5e06969b14d8
[ "MIT" ]
8
2020-12-08T16:21:20.000Z
2022-03-11T08:27:37.000Z
server/src/schema/schemaImage.js
refugies-info/karfur
09c0375c7c23c5fe9e73f8acbc2e5e06969b14d8
[ "MIT" ]
29
2020-12-01T15:06:14.000Z
2022-03-31T08:55:18.000Z
server/src/schema/schemaImage.js
Tony4469/karfur
0d008571b245d695a451aaf9d21b13d8e7101045
[ "MIT" ]
null
null
null
const mongoose = require("mongoose"); var imageSchema = mongoose.Schema( { public_id: { type: String, trim: true, unique: true, required: true, }, format: { type: String, required: false, }, height: { type: Number, required: false, }, width: { type: Number, required: false, }, original_filename: { type: String, required: false, }, secure_url: { type: String, required: false, }, signature: { type: String, required: false, }, url: { type: String, required: false, }, version: { type: String, required: false, }, }, { timestamps: { createdAt: "created_at" } } ); module.exports = mongoose.model("Image", imageSchema);
17.0625
54
0.516484
3b00919fdf0dcea558aa90175413200cd3dac1aa
3,365
js
JavaScript
tests/index.js
dhmncivichacks/outagamie-county-recycling
c9ea016a2b8d72c432e9230eb3af9572478ea20a
[ "MIT" ]
1
2015-08-03T22:12:08.000Z
2015-08-03T22:12:08.000Z
tests/index.js
dhmncivichacks/outagamie-county-recycling
c9ea016a2b8d72c432e9230eb3af9572478ea20a
[ "MIT" ]
null
null
null
tests/index.js
dhmncivichacks/outagamie-county-recycling
c9ea016a2b8d72c432e9230eb3af9572478ea20a
[ "MIT" ]
null
null
null
import tape from 'tape'; import {getNextRecycleDate} from '../lib'; const location1 = [-88.271913, 44.267002]; const location2 = [-88.261194, 44.290477]; const location3 = [-88.307391, 44.26176]; let tests = [ { name: '[location1] week before', location: location1, fromDate: 'August 16, 2015', expected: 'Tue Aug 25 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location1] day before', location: location1, fromDate: 'August 24, 2015', expected: 'Tue Aug 25 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location1] day of', location: location1, fromDate: 'August 25, 2015', expected: 'Tue Aug 25 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location1] day after', location: location1, fromDate: 'August 26, 2015', expected: 'Tue Sep 08 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location1] next interval - day before', location: location1, fromDate: 'September 7, 2015', expected: 'Tue Sep 08 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location1] next interval - day of', location: location1, fromDate: 'September 8, 2015', expected: 'Tue Sep 08 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location1] next interval - day after', location: location1, fromDate: 'September 9, 2015', expected: 'Tue Sep 22 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location2] week before', location: location2, fromDate: 'August 16, 2015', expected: 'Mon Aug 24 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location2] day before', location: location2, fromDate: 'August 23, 2015', expected: 'Mon Aug 24 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location2] day of', location: location2, fromDate: 'August 24, 2015', expected: 'Mon Aug 24 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location2] day after', location: location2, fromDate: 'August 25, 2015', expected: 'Mon Sep 07 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location2] next interval - day before', location: location2, fromDate: 'September 6, 2015', expected: 'Mon Sep 07 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location2] next interval - day of', location: location2, fromDate: 'September 7, 2015', expected: 'Mon Sep 07 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location2] next interval - day after', location: location2, fromDate: 'September 8, 2015', expected: 'Mon Sep 21 2015 00:00:00 GMT-0500 (CDT)' }, { name: '[location3] different pickup day', location: location3, fromDate: 'September 8, 2015', expected: 'Tue Sep 08 2015 00:00:00 GMT-0500 (CDT)' } ]; tests.forEach(test => { tape(test.name, t => { t.equal( getNextRecycleDate(test.location, new Date(test.fromDate + ' 00:00:00')).toString(), test.expected); t.equal( getNextRecycleDate(test.location, new Date(test.fromDate + ' 23:59:59')).toString(), test.expected); t.end(); }); });
30.315315
96
0.547697
3b011ae048fe569e7aeef196ecc7a444f625bc65
833
js
JavaScript
src/index.js
RadiBarq/gayelak-react
86604d6ff7ba832f7df21e56a79131957f1cf251
[ "MIT" ]
null
null
null
src/index.js
RadiBarq/gayelak-react
86604d6ff7ba832f7df21e56a79131957f1cf251
[ "MIT" ]
null
null
null
src/index.js
RadiBarq/gayelak-react
86604d6ff7ba832f7df21e56a79131957f1cf251
[ "MIT" ]
null
null
null
import React from 'react'; import { HashRouter, Route, Switch, Router } from 'react-router-dom'; import ReactDOM from 'react-dom'; import { render } from 'react-dom'; import './index.css'; import App from './App'; import Profile from './Profile' import routes from './routes'; import './gestalt/dist/gestalt.css'; import './reset.css'; import Chat from './Chat' import CardPage from './CardPage'; import { slide as Menu } from 'react-burger-menu' import './App.css' import registerServiceWorker from './registerServiceWorker'; import Heading from './Heading'; const container = document.getElementById('root'); if (container instanceof Element) { ReactDOM.render( <div> <Heading/> </div>, container ); } else { throw new Error("No element with id 'root' found in index.html file"); }
26.870968
74
0.679472
3b013e1a322d69e3cf0c9bfa3cddf480afc297a1
4,387
js
JavaScript
js/plugins/MrTS_RestoreHpMpTp.js
DAcKeyy/Lack-of-Life
3989a425f99d9b6482b0ddc713cd8d90d3a85160
[ "MIT" ]
null
null
null
js/plugins/MrTS_RestoreHpMpTp.js
DAcKeyy/Lack-of-Life
3989a425f99d9b6482b0ddc713cd8d90d3a85160
[ "MIT" ]
null
null
null
js/plugins/MrTS_RestoreHpMpTp.js
DAcKeyy/Lack-of-Life
3989a425f99d9b6482b0ddc713cd8d90d3a85160
[ "MIT" ]
null
null
null
//============================================================================= // MrTS_RestoreHpMpTp.js //============================================================================= /*: * @plugindesc Allows to have equipment/states that restore HP/MP/TP after battles or level ups. * @author Mr. Trivel * * @help * -------------------------------------------------------------------------------- * Terms of Use * -------------------------------------------------------------------------------- * Don't remove the header or claim that you wrote this plugin. * Credit Mr. Trivel if using this plugin in your project. * Free for commercial and non-commercial projects. * -------------------------------------------------------------------------------- * Version 1.0 * -------------------------------------------------------------------------------- * * -------------------------------------------------------------------------------- * Trait Objects Tags (Actor/Class/Weapon/Armor/State) * -------------------------------------------------------------------------------- * HP: * <RestoreAfterBattleHP: [AMOUNT]> * <RestoreAfterBattleHPPercent: [PERCENT AMOUNT]> * * <RestoreAfterLevelUpHP: [AMOUNT]> * <RestoreAfterLevelUpHPPercent: [PERCENT AMOUNT]> * * MP: * <RestoreAfterBattleMP: [AMOUNT]> * <RestoreAfterBattleMPPercent: [PERCENT AMOUNT]> * * <RestoreAfterLevelUpMP: [AMOUNT]> * <RestoreAfterLevelUpMPPercent: [PERCENT AMOUNT]> * * TP: * <RestoreAfterBattleTP: [AMOUNT]> * <RestoreAfterBattleTPPercent: [PERCENT AMOUNT]> * * <RestoreAfterLevelUpTP: [AMOUNT]> * <RestoreAfterLevelUpTPPercent: [PERCENT AMOUNT]> * * RestoreAfterBattle - restores HP/MP/TP after a won battle. * RestoreAfterLevelUp - restores HP/MP/TP after a level up. * [AMOUNT] - flat amount E.g. 10, 100, 1000, 50, 37 * [PERCENT AMOUNT] - uses floating point E.g. 0.53 being 53%, 1.0 being 100% * * Examples: * <RestoreAfterBattleTP: 50> * <RestoreAfterBattleHP: 15> * <RestoreAfterBattleHPPercent: 0.05> * <RestoreAfterBattleMPPercent: 0.10> * -------------------------------------------------------------------------------- * * -------------------------------------------------------------------------------- * Version History * -------------------------------------------------------------------------------- * 1.0 - Release */ (function() { Game_Actor.prototype.restoreAfterType = function(type) { var valueHp = 0; var valueHpP = 0.0; var valueMp = 0; var valueMpP = 0.0; var valueTp = 0; var valueTpP = 0.0; var traitObjects = this.traitObjects(); for (var i = 0; i < traitObjects.length; i++) { switch(type) { case 'battle': { valueHp += Number(traitObjects[i].meta.RestoreAfterBattleHP) || 0; valueHpP += Number(traitObjects[i].meta.RestoreAfterBattleHPPercent) || 0; valueMp += Number(traitObjects[i].meta.RestoreAfterBattleMP) || 0; valueMpP += Number(traitObjects[i].meta.RestoreAfterBattleMPPercent) || 0; valueTp += Number(traitObjects[i].meta.RestoreAfterBattleTP) || 0; valueTpP += Number(traitObjects[i].meta.RestoreAfterBattleTPPercent) || 0; } break; case 'levelup': { valueHp += Number(traitObjects[i].meta.RestoreAfterLevelUpHP) || 0; valueHpP += Number(traitObjects[i].meta.RestoreAfterLevelUpHPPercent) || 0; valueMp += Number(traitObjects[i].meta.RestoreAfterLevelUpMP) || 0; valueMpP += Number(traitObjects[i].meta.RestoreAfterLevelUpMPPercent) || 0; valueTp += Number(traitObjects[i].meta.RestoreAfterLevelUpTP) || 0; valueTpP += Number(traitObjects[i].meta.RestoreAfterLevelUpTPPercent) || 0; } break; } } var totalHp = valueHp + Math.floor(this.mhp * valueHpP); var totalMp = valueMp + Math.floor(this.mmp * valueMpP); var totalTp = valueTp + Math.floor(100 * valueTpP); console.log(valueHp, valueMp, valueTp); this.gainHp(totalHp); this.gainMp(totalMp); this.gainTp(totalTp); }; var _GameActor_levelUp = Game_Actor.prototype.levelUp; Game_Actor.prototype.levelUp = function() { _GameActor_levelUp.call(this); this.restoreAfterType('levelup'); }; var _BattleManager_processVictory = BattleManager.processVictory; BattleManager.processVictory = function() { _BattleManager_processVictory.call(this); for (var i = 0; i < $gameParty.battleMembers().length; i++) { $gameParty.battleMembers()[i].restoreAfterType('battle'); } }; })();
35.666667
95
0.562799
3b0198f8196a0d8a9adf8d3adbc139cb22ad791a
35,269
js
JavaScript
20211SVAC/G40/Js/Optimizador/Optimizador.js
JossVan/tytusx
0e9effda35d0ec660b521e49d4fe6882cde5797b
[ "MIT" ]
null
null
null
20211SVAC/G40/Js/Optimizador/Optimizador.js
JossVan/tytusx
0e9effda35d0ec660b521e49d4fe6882cde5797b
[ "MIT" ]
null
null
null
20211SVAC/G40/Js/Optimizador/Optimizador.js
JossVan/tytusx
0e9effda35d0ec660b521e49d4fe6882cde5797b
[ "MIT" ]
null
null
null
class Optimizador{ constructor(bloques){ this.bloques = bloques; } Ejecutar(){ //Aplicando 16 reglas de optimizacion this.Regla1(); this.Regla2(); this.Regla3(); this.Regla4(); this.Regla5(); this.Regla6(); this.Regla7(); this.Regla8(); this.Regla9(); this.Regla10(); this.Regla11(); this.Regla12(); this.Regla13(); this.Regla14(); this.Regla15(); this.Regla16(); return this.GenerarResultado(); } /* goto L1; <instrucciones> L1: */ Regla1(){ var bloques = this.bloques; bloques.forEach(function (bloque){ //Iteramos sobre cada bloque de instrucciones if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ //Iteramos sobre cada instruccion del bloque for (var i=0; i < bloque.getInstrucciones().length;i++ ){ //Verificamos que la instruccion sea una instruccion GOTO if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.GOTO){ var posicionGoto = i; var inicio = i + 1; for (var j=inicio; j < bloque.getInstrucciones().length;j++ ){ if(bloque.getInstrucciones()[j].getTipo() == TipoInstruccion3D.ETIQUETA && (bloque.getInstrucciones()[posicionGoto].getEtiqueta() == bloque.getInstrucciones()[j].getEtiqueta() )){ if((j-1) != posicionGoto){ var existeEtiqueta = false; for(var x=inicio; (x < bloque.getInstrucciones().length) && (x < j); x++ ){ if(bloque.getInstrucciones()[x].getTipo() == TipoInstruccion3D.ETIQUETA){ existeEtiqueta = true; break; } } if(existeEtiqueta==false){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); codigoAntes += ` [instruciones] ` + bloque.getInstrucciones()[j].getEtiqueta() + ":"; var codigoDespues = bloque.getInstrucciones()[i].getCodigo3D(); codigoDespues += bloque.getInstrucciones()[j].getEtiqueta() + ":"; ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoDespues, "Regla 1", pasada)); bloque.getInstrucciones().splice(inicio,j-inicio); // OJO CON ESTOS INDICES j--; i--; } } } } } } } }); } /* If (x == x) goto L1; goto L2; */ Regla2(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length; i++){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.IF){ if((i+2) < bloque.getInstrucciones().length){ if((bloque.getInstrucciones()[i+1].getTipo() == TipoInstruccion3D.GOTO) && (bloque.getInstrucciones()[i+2].getTipo() == TipoInstruccion3D.ETIQUETA) && (bloque.getInstrucciones()[i].getGOTO() == bloque.getInstrucciones()[i+2].getEtiqueta())){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); codigoAntes += bloque.getInstrucciones()[i+1].getCodigo3D(); codigoAntes += bloque.getInstrucciones()[i+2].getCodigo3D(); bloque.getInstrucciones()[i].InvertirOperador(); bloque.getInstrucciones()[i].setGOTO(bloque.getInstrucciones()[i+1].getEtiqueta()); bloque.getInstrucciones()[i].GenerarC3D(); var codigoDespues = bloque.getInstrucciones()[i].getCodigo3D(); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoDespues, "Regla 2", pasada)); bloque.getInstrucciones().splice(i+1,2); i--; } } } } } }); } /* If (1 == 1) goto L1; goto L2; */ Regla3(){ function EsNumero(str) { if (typeof str != "string") return false return !isNaN(str) && !isNaN(parseFloat(str)) } var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length; i++){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.IF){ if((((EsNumero(bloque.getInstrucciones()[i].getOperando1()) == true) && (EsNumero(bloque.getInstrucciones()[i].getOperando2()) == true))) || ((((EsNumero(bloque.getInstrucciones()[i].getOperando1()) == false) && (EsNumero(bloque.getInstrucciones()[i].getOperando2()) == false))) && ((bloque.getInstrucciones()[i].getOperando1()) == (bloque.getInstrucciones()[i].getOperando2())) )){ if((i+1) < bloque.getInstrucciones().length){ if((bloque.getInstrucciones()[i].esConstantePositiva()== true) && (bloque.getInstrucciones()[i+1].getTipo() == TipoInstruccion3D.GOTO)){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); codigoAntes += bloque.getInstrucciones()[i+1].getCodigo3D(); bloque.getInstrucciones()[i+1].setEtiqueta(bloque.getInstrucciones()[i].getGOTO()); bloque.getInstrucciones()[i+1].GenerarC3D(); var codigoDespues = bloque.getInstrucciones()[i+1].getCodigo3D(); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoDespues, "Regla 3", pasada)); bloque.getInstrucciones().splice(i,1); i--; } } } } } } }); } /* If (4 == 1) goto L1; goto L2; */ Regla4(){ function EsNumero(str) { if (typeof str != "string") return false return !isNaN(str) && !isNaN(parseFloat(str)) } var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length; i++){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.IF){ if((((EsNumero(bloque.getInstrucciones()[i].getOperando1()) == true) && (EsNumero(bloque.getInstrucciones()[i].getOperando2()) == true))) || ((((EsNumero(bloque.getInstrucciones()[i].getOperando1()) == false) && (EsNumero(bloque.getInstrucciones()[i].getOperando2()) == false))) && ((bloque.getInstrucciones()[i].getOperando1()) == (bloque.getInstrucciones()[i].getOperando2())) )){ if((i+1) < bloque.getInstrucciones().length){ if((bloque.getInstrucciones()[i].esConstantePositiva()== false) && (bloque.getInstrucciones()[i+1].getTipo() == TipoInstruccion3D.GOTO)){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); codigoAntes += bloque.getInstrucciones()[i+1].getCodigo3D(); var codigoDespues = bloque.getInstrucciones()[i+1].getCodigo3D(); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoDespues, "Regla 4", pasada)); bloque.getInstrucciones().splice(i,1); i--; } } } } } } }); } /* T3 = T2; <instrucciones> T2 = T3; */ Regla5(){ function EsNumero(str) { if (typeof str != "string") return false return !isNaN(str) && !isNaN(parseFloat(str)) } var bloques = this.bloques; bloques.forEach(function (bloque){ //Iteramos sobre cada bloque de instrucciones if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ //Iteramos sobre cada instruccion del bloque for (var i=0; i < bloque.getInstrucciones().length;i++ ){ //Verificamos que la instruccion sea una instruccion ASIGNACION_SIMPLE if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_SIMPLE){ //Validamos que el temporal no este igualado a un numero if(EsNumero(bloque.getInstrucciones()[i].getValor()) == false){ var Temporal1 = bloque.getInstrucciones()[i].getTemporal(); var Temporal2 = bloque.getInstrucciones()[i].getValor(); var posicionAsignacionSimple = i; var inicio = i + 1; for (var j=inicio; j < bloque.getInstrucciones().length; j++){ //buscamos por una instruccion de la forma a = b o de la forma b = a if(bloque.getInstrucciones()[j].getTipo() == TipoInstruccion3D.ASIGNACION_SIMPLE && (((bloque.getInstrucciones()[j].getTemporal() == Temporal1) && (bloque.getInstrucciones()[j].getValor() == Temporal2)) || ((bloque.getInstrucciones()[j].getTemporal() == Temporal2) && (bloque.getInstrucciones()[j].getValor() == Temporal1)))){ var cambiaValor = false; for(var x=inicio; (x < bloque.getInstrucciones().length) && (x < j); x++){ if((bloque.getInstrucciones()[x].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION) || (bloque.getInstrucciones()[x].getTipo() == TipoInstruccion3D.ASIGNACION_SIMPLE) || (bloque.getInstrucciones()[x].getTipo() == TipoInstruccion3D.ASIGNACION_ARREGLO)){ if((bloque.getInstrucciones()[x].getTemporal() == Temporal1) || (bloque.getInstrucciones()[x].getTemporal() == Temporal2)){ cambiaValor = true; break; } } } if(cambiaValor==false){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); codigoAntes += ` [instruciones] ` + bloque.getInstrucciones()[j].getCodigo3D(); var codigoDespues = bloque.getInstrucciones()[i].getCodigo3D(); codigoDespues += ` [instruciones] `; ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoDespues, "Regla 5", pasada)); bloque.getInstrucciones().splice(j,1); j--; } } } } } } } }); } // T1 = T1 + 0; Regla6(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.SUMA) && (bloque.getInstrucciones()[i].getTemporal() == bloque.getInstrucciones()[i].getOperando1() || bloque.getInstrucciones()[i].getTemporal() == bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando1() == "0" || bloque.getInstrucciones()[i].getOperando2() == "0")){ ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", bloque.getInstrucciones()[i].getCodigo3D(), "Se eliminó la instrucción.", "Regla 6", pasada)); bloque.getInstrucciones().splice(i,1); i--; } } } } }); } // T1 = T1 - 0; Regla7(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.RESTA) && (bloque.getInstrucciones()[i].getTemporal() == bloque.getInstrucciones()[i].getOperando1() || bloque.getInstrucciones()[i].getTemporal() == bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando1() == "0" || bloque.getInstrucciones()[i].getOperando2() == "0")){ ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", bloque.getInstrucciones()[i].getCodigo3D(), "Se eliminó la instrucción.", "Regla 7", pasada)); bloque.getInstrucciones().splice(i,1); i--; } } } } }); } // T1 = T1 * 1; Regla8(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.MULTIPLICACION) && (bloque.getInstrucciones()[i].getTemporal() == bloque.getInstrucciones()[i].getOperando1() || bloque.getInstrucciones()[i].getTemporal() == bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando1() == "1" || bloque.getInstrucciones()[i].getOperando2() == "1")){ ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", bloque.getInstrucciones()[i].getCodigo3D(), "Se eliminó la instrucción.", "Regla 8", pasada)); bloque.getInstrucciones().splice(i,1); i--; } } } } }); } // T1 = T1 / 1; Regla9(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.DIVISION) && (bloque.getInstrucciones()[i].getTemporal() == bloque.getInstrucciones()[i].getOperando1()) && (bloque.getInstrucciones()[i].getOperando2() == "1")){ ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", bloque.getInstrucciones()[i].getCodigo3D(), "Se eliminó la instrucción.", "Regla 9", pasada)); bloque.getInstrucciones().splice(i,1); i--; } } } } }); } // T1 = T2 + 0; Regla10(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.SUMA) && (bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando1() && bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando1() == "0" || bloque.getInstrucciones()[i].getOperando2() == "0")){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); var codigoAux = bloque.getInstrucciones()[i].getTemporal(); if(bloque.getInstrucciones()[i].getOperando2() == "0"){ codigoAux += " = " + bloque.getInstrucciones()[i].getOperando1() + ";\n"; } else if (bloque.getInstrucciones()[i].getOperando1() == "0"){ codigoAux += " = " + bloque.getInstrucciones()[i].getOperando2() + ";\n"; } bloque.getInstrucciones()[i].setCodigo(codigoAux); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoAux, "Regla 10", pasada)); } } } } }); } // T1 = T2 - 0; Regla11(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.RESTA) && (bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando1() && bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando2() == "0")){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); var codigoAux = bloque.getInstrucciones()[i].getTemporal() + " = " + bloque.getInstrucciones()[i].getOperando1() + ";\n"; bloque.getInstrucciones()[i].setCodigo(codigoAux); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoAux, "Regla 11", pasada)); } } } } }); } // T1 = T2 * 1; Regla12(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.MULTIPLICACION) && (bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando1() && bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando1() == "1" || bloque.getInstrucciones()[i].getOperando2() == "1")){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); var codigoAux = bloque.getInstrucciones()[i].getTemporal(); if(bloque.getInstrucciones()[i].getOperando2() == "1"){ codigoAux += " = " + bloque.getInstrucciones()[i].getOperando1() + ";\n"; } else if (bloque.getInstrucciones()[i].getOperando1() == "1"){ codigoAux += " = " + bloque.getInstrucciones()[i].getOperando2() + ";\n"; } bloque.getInstrucciones()[i].setCodigo(codigoAux); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoAux, "Regla 12", pasada)); } } } } }); } // T1 = T2 / 1; Regla13(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.DIVISION) && (bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando1() && bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando2() == "1")){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); var codigoAux = bloque.getInstrucciones()[i].getTemporal(); codigoAux += " = " + bloque.getInstrucciones()[i].getOperando1() + ";\n"; bloque.getInstrucciones()[i].setCodigo(codigoAux); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoAux, "Regla 13", pasada)); } } } } }); } // T1 = T2 * 2; Regla14(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.MULTIPLICACION) && (bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando1() && bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando1() == "2" || bloque.getInstrucciones()[i].getOperando2() == "2")){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); var codigoAux = bloque.getInstrucciones()[i].getTemporal(); if(bloque.getInstrucciones()[i].getOperando2() == "2"){ codigoAux += " = " + bloque.getInstrucciones()[i].getOperando1() + " + " + bloque.getInstrucciones()[i].getOperando1() + ";\n"; } else if (bloque.getInstrucciones()[i].getOperando1() == "2"){ codigoAux += " = " + bloque.getInstrucciones()[i].getOperando2() + " + " + bloque.getInstrucciones()[i].getOperando2() + ";\n"; } bloque.getInstrucciones()[i].setCodigo(codigoAux); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoAux, "Regla 14", pasada)); } } } } }); } // T1 = T2 * 0; Regla15(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.MULTIPLICACION) && (bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando1() && bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando1() == "0" || bloque.getInstrucciones()[i].getOperando2() == "0")){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); var codigoAux = bloque.getInstrucciones()[i].getTemporal()+" = 0;\n"; bloque.getInstrucciones()[i].setCodigo(codigoAux); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoAux, "Regla 15", pasada)); } } } } }); } // T1 = 0 / T2; Regla16(){ var bloques = this.bloques; bloques.forEach(function (bloque){ if(bloque.getTipo() == TipoBloque.VOID || bloque.getTipo() == TipoBloque.MAIN){ for (var i=0; i < bloque.getInstrucciones().length;i++ ){ if(bloque.getInstrucciones()[i].getTipo() == TipoInstruccion3D.ASIGNACION_OPERACION){ if(( bloque.getInstrucciones()[i].getOperador() == Operador.DIVISION) && (bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando1() && bloque.getInstrucciones()[i].getTemporal() != bloque.getInstrucciones()[i].getOperando2()) && (bloque.getInstrucciones()[i].getOperando1() == "0")){ var codigoAntes = bloque.getInstrucciones()[i].getCodigo3D(); var codigoAux = bloque.getInstrucciones()[i].getTemporal()+" = 0;\n"; bloque.getInstrucciones()[i].setCodigo(codigoAux); ListaOptimizaciones.push(new Optimizacion( bloque.getInstrucciones()[i].getLinea(), bloque.getInstrucciones()[i].getColumna(), "Bloques", codigoAntes, codigoAux, "Regla 16", pasada)); } } } } }); } GenerarResultado(){ var bloques = this.bloques; var resultadoAux = `/* RESULTADO OPTIMIZADO (Desarrollado por Oscar Llamas :D) */ /*------HEADER------*/ `; bloques.forEach(function (bloque){ resultadoAux += bloque.getCodigo3D(); }); return resultadoAux; } }
43.434729
165
0.424339
3b01df4542554889c0e6ce6d07dc4ddf1a0336e6
21,372
js
JavaScript
node_modules/@angular/compiler-cli/src/ngtsc/metadata/src/util.js
fracturesfei/angulardemo
7cb8ef6f9139d84f98034488f520a70215fb4375
[ "MIT" ]
74
2016-12-01T02:12:59.000Z
2022-03-09T23:00:43.000Z
node_modules/@angular/compiler-cli/src/ngtsc/metadata/src/util.js
fracturesfei/angulardemo
7cb8ef6f9139d84f98034488f520a70215fb4375
[ "MIT" ]
349
2016-10-19T16:05:24.000Z
2022-03-17T21:43:58.000Z
node_modules/@angular/compiler-cli/src/ngtsc/metadata/src/util.js
fracturesfei/angulardemo
7cb8ef6f9139d84f98034488f520a70215fb4375
[ "MIT" ]
100
2016-10-19T21:03:22.000Z
2022-03-31T02:41:45.000Z
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define("@angular/compiler-cli/src/ngtsc/metadata/src/util", ["require", "exports", "tslib", "typescript", "@angular/compiler-cli/src/ngtsc/imports", "@angular/compiler-cli/src/ngtsc/reflection", "@angular/compiler-cli/src/ngtsc/util/src/typescript"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var ts = require("typescript"); var imports_1 = require("@angular/compiler-cli/src/ngtsc/imports"); var reflection_1 = require("@angular/compiler-cli/src/ngtsc/reflection"); var typescript_1 = require("@angular/compiler-cli/src/ngtsc/util/src/typescript"); function extractReferencesFromType(checker, def, ngModuleImportedFrom, resolutionContext) { if (!ts.isTupleTypeNode(def)) { return []; } return def.elementTypes.map(function (element) { if (!ts.isTypeQueryNode(element)) { throw new Error("Expected TypeQueryNode: " + typescript_1.nodeDebugInfo(element)); } var type = element.exprName; var _a = reflection_1.reflectTypeEntityToDeclaration(type, checker), node = _a.node, from = _a.from; if (!reflection_1.isNamedClassDeclaration(node)) { throw new Error("Expected named ClassDeclaration: " + typescript_1.nodeDebugInfo(node)); } var specifier = (from !== null && !from.startsWith('.') ? from : ngModuleImportedFrom); if (specifier !== null) { return new imports_1.Reference(node, { specifier: specifier, resolutionContext: resolutionContext }); } else { return new imports_1.Reference(node); } }); } exports.extractReferencesFromType = extractReferencesFromType; function readStringType(type) { if (!ts.isLiteralTypeNode(type) || !ts.isStringLiteral(type.literal)) { return null; } return type.literal.text; } exports.readStringType = readStringType; function readStringMapType(type) { if (!ts.isTypeLiteralNode(type)) { return {}; } var obj = {}; type.members.forEach(function (member) { if (!ts.isPropertySignature(member) || member.type === undefined || member.name === undefined || !ts.isStringLiteral(member.name)) { return; } var value = readStringType(member.type); if (value === null) { return null; } obj[member.name.text] = value; }); return obj; } exports.readStringMapType = readStringMapType; function readStringArrayType(type) { if (!ts.isTupleTypeNode(type)) { return []; } var res = []; type.elementTypes.forEach(function (el) { if (!ts.isLiteralTypeNode(el) || !ts.isStringLiteral(el.literal)) { return; } res.push(el.literal.text); }); return res; } exports.readStringArrayType = readStringArrayType; function extractDirectiveGuards(node, reflector) { var staticMembers = reflector.getMembersOfClass(node).filter(function (member) { return member.isStatic; }); var ngTemplateGuards = staticMembers.map(extractTemplateGuard) .filter(function (guard) { return guard !== null; }); var hasNgTemplateContextGuard = staticMembers.some(function (member) { return member.kind === reflection_1.ClassMemberKind.Method && member.name === 'ngTemplateContextGuard'; }); return { hasNgTemplateContextGuard: hasNgTemplateContextGuard, ngTemplateGuards: ngTemplateGuards }; } exports.extractDirectiveGuards = extractDirectiveGuards; function extractTemplateGuard(member) { if (!member.name.startsWith('ngTemplateGuard_')) { return null; } var inputName = member.name.split('_', 2)[1]; if (member.kind === reflection_1.ClassMemberKind.Property) { var type = null; if (member.type !== null && ts.isLiteralTypeNode(member.type) && ts.isStringLiteral(member.type.literal)) { type = member.type.literal.text; } // Only property members with string literal type 'binding' are considered as template guard. if (type !== 'binding') { return null; } return { inputName: inputName, type: type }; } else if (member.kind === reflection_1.ClassMemberKind.Method) { return { inputName: inputName, type: 'invocation' }; } else { return null; } } /** * A `MetadataReader` that reads from an ordered set of child readers until it obtains the requested * metadata. * * This is used to combine `MetadataReader`s that read from different sources (e.g. from a registry * and from .d.ts files). */ var CompoundMetadataReader = /** @class */ (function () { function CompoundMetadataReader(readers) { this.readers = readers; } CompoundMetadataReader.prototype.getDirectiveMetadata = function (node) { var e_1, _a; try { for (var _b = tslib_1.__values(this.readers), _c = _b.next(); !_c.done; _c = _b.next()) { var reader = _c.value; var meta = reader.getDirectiveMetadata(node); if (meta !== null) { return meta; } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return null; }; CompoundMetadataReader.prototype.getNgModuleMetadata = function (node) { var e_2, _a; try { for (var _b = tslib_1.__values(this.readers), _c = _b.next(); !_c.done; _c = _b.next()) { var reader = _c.value; var meta = reader.getNgModuleMetadata(node); if (meta !== null) { return meta; } } } catch (e_2_1) { e_2 = { error: e_2_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_2) throw e_2.error; } } return null; }; CompoundMetadataReader.prototype.getPipeMetadata = function (node) { var e_3, _a; try { for (var _b = tslib_1.__values(this.readers), _c = _b.next(); !_c.done; _c = _b.next()) { var reader = _c.value; var meta = reader.getPipeMetadata(node); if (meta !== null) { return meta; } } } catch (e_3_1) { e_3 = { error: e_3_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_3) throw e_3.error; } } return null; }; return CompoundMetadataReader; }()); exports.CompoundMetadataReader = CompoundMetadataReader; }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyLWNsaS9zcmMvbmd0c2MvbWV0YWRhdGEvc3JjL3V0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7O0lBRUgsK0JBQWlDO0lBRWpDLG1FQUF3QztJQUN4Qyx5RUFBeUo7SUFDekosa0ZBQXdEO0lBSXhELFNBQWdCLHlCQUF5QixDQUNyQyxPQUF1QixFQUFFLEdBQWdCLEVBQUUsb0JBQW1DLEVBQzlFLGlCQUF5QjtRQUMzQixJQUFJLENBQUMsRUFBRSxDQUFDLGVBQWUsQ0FBQyxHQUFHLENBQUMsRUFBRTtZQUM1QixPQUFPLEVBQUUsQ0FBQztTQUNYO1FBQ0QsT0FBTyxHQUFHLENBQUMsWUFBWSxDQUFDLEdBQUcsQ0FBQyxVQUFBLE9BQU87WUFDakMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxlQUFlLENBQUMsT0FBTyxDQUFDLEVBQUU7Z0JBQ2hDLE1BQU0sSUFBSSxLQUFLLENBQUMsNkJBQTJCLDBCQUFhLENBQUMsT0FBTyxDQUFHLENBQUMsQ0FBQzthQUN0RTtZQUNELElBQU0sSUFBSSxHQUFHLE9BQU8sQ0FBQyxRQUFRLENBQUM7WUFDeEIsSUFBQSwrREFBNEQsRUFBM0QsY0FBSSxFQUFFLGNBQXFELENBQUM7WUFDbkUsSUFBSSxDQUFDLG9DQUF1QixDQUFDLElBQUksQ0FBQyxFQUFFO2dCQUNsQyxNQUFNLElBQUksS0FBSyxDQUFDLHNDQUFvQywwQkFBYSxDQUFDLElBQUksQ0FBRyxDQUFDLENBQUM7YUFDNUU7WUFDRCxJQUFNLFNBQVMsR0FBRyxDQUFDLElBQUksS0FBSyxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLG9CQUFvQixDQUFDLENBQUM7WUFDekYsSUFBSSxTQUFTLEtBQUssSUFBSSxFQUFFO2dCQUN0QixPQUFPLElBQUksbUJBQVMsQ0FBQyxJQUFJLEVBQUUsRUFBQyxTQUFTLFdBQUEsRUFBRSxpQkFBaUIsbUJBQUEsRUFBQyxDQUFDLENBQUM7YUFDNUQ7aUJBQU07Z0JBQ0wsT0FBTyxJQUFJLG1CQUFTLENBQUMsSUFBSSxDQUFDLENBQUM7YUFDNUI7UUFDSCxDQUFDLENBQUMsQ0FBQztJQUNMLENBQUM7SUF0QkQsOERBc0JDO0lBRUQsU0FBZ0IsY0FBYyxDQUFDLElBQWlCO1FBQzlDLElBQUksQ0FBQyxFQUFFLENBQUMsaUJBQWlCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsZUFBZSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsRUFBRTtZQUNwRSxPQUFPLElBQUksQ0FBQztTQUNiO1FBQ0QsT0FBTyxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQztJQUMzQixDQUFDO0lBTEQsd0NBS0M7SUFFRCxTQUFnQixpQkFBaUIsQ0FBQyxJQUFpQjtRQUNqRCxJQUFJLENBQUMsRUFBRSxDQUFDLGlCQUFpQixDQUFDLElBQUksQ0FBQyxFQUFFO1lBQy9CLE9BQU8sRUFBRSxDQUFDO1NBQ1g7UUFDRCxJQUFNLEdBQUcsR0FBNEIsRUFBRSxDQUFDO1FBQ3hDLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLFVBQUEsTUFBTTtZQUN6QixJQUFJLENBQUMsRUFBRSxDQUFDLG1CQUFtQixDQUFDLE1BQU0sQ0FBQyxJQUFJLE1BQU0sQ0FBQyxJQUFJLEtBQUssU0FBUyxJQUFJLE1BQU0sQ0FBQyxJQUFJLEtBQUssU0FBUztnQkFDekYsQ0FBQyxFQUFFLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsRUFBRTtnQkFDcEMsT0FBTzthQUNSO1lBQ0QsSUFBTSxLQUFLLEdBQUcsY0FBYyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUMxQyxJQUFJLEtBQUssS0FBSyxJQUFJLEVBQUU7Z0JBQ2xCLE9BQU8sSUFBSSxDQUFDO2FBQ2I7WUFDRCxHQUFHLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxLQUFLLENBQUM7UUFDaEMsQ0FBQyxDQUFDLENBQUM7UUFDSCxPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFqQkQsOENBaUJDO0lBRUQsU0FBZ0IsbUJBQW1CLENBQUMsSUFBaUI7UUFDbkQsSUFBSSxDQUFDLEVBQUUsQ0FBQyxlQUFlLENBQUMsSUFBSSxDQUFDLEVBQUU7WUFDN0IsT0FBTyxFQUFFLENBQUM7U0FDWDtRQUNELElBQU0sR0FBRyxHQUFhLEVBQUUsQ0FBQztRQUN6QixJQUFJLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxVQUFBLEVBQUU7WUFDMUIsSUFBSSxDQUFDLEVBQUUsQ0FBQyxpQkFBaUIsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxlQUFlLENBQUMsRUFBRSxDQUFDLE9BQU8sQ0FBQyxFQUFFO2dCQUNoRSxPQUFPO2FBQ1I7WUFDRCxHQUFHLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDNUIsQ0FBQyxDQUFDLENBQUM7UUFDSCxPQUFPLEdBQUcsQ0FBQztJQUNiLENBQUM7SUFaRCxrREFZQztJQUdELFNBQWdCLHNCQUFzQixDQUFDLElBQXNCLEVBQUUsU0FBeUI7UUFJdEYsSUFBTSxhQUFhLEdBQUcsU0FBUyxDQUFDLGlCQUFpQixDQUFDLElBQUksQ0FBQyxDQUFDLE1BQU0sQ0FBQyxVQUFBLE1BQU0sSUFBSSxPQUFBLE1BQU0sQ0FBQyxRQUFRLEVBQWYsQ0FBZSxDQUFDLENBQUM7UUFDMUYsSUFBTSxnQkFBZ0IsR0FBRyxhQUFhLENBQUMsR0FBRyxDQUFDLG9CQUFvQixDQUFDO2FBQ2xDLE1BQU0sQ0FBQyxVQUFDLEtBQUssSUFBaUMsT0FBQSxLQUFLLEtBQUssSUFBSSxFQUFkLENBQWMsQ0FBQyxDQUFDO1FBQzVGLElBQU0seUJBQXlCLEdBQUcsYUFBYSxDQUFDLElBQUksQ0FDaEQsVUFBQSxNQUFNLElBQUksT0FBQSxNQUFNLENBQUMsSUFBSSxLQUFLLDRCQUFlLENBQUMsTUFBTSxJQUFJLE1BQU0sQ0FBQyxJQUFJLEtBQUssd0JBQXdCLEVBQWxGLENBQWtGLENBQUMsQ0FBQztRQUNsRyxPQUFPLEVBQUMseUJBQXlCLDJCQUFBLEVBQUUsZ0JBQWdCLGtCQUFBLEVBQUMsQ0FBQztJQUN2RCxDQUFDO0lBVkQsd0RBVUM7SUFFRCxTQUFTLG9CQUFvQixDQUFDLE1BQW1CO1FBQy9DLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxrQkFBa0IsQ0FBQyxFQUFFO1lBQy9DLE9BQU8sSUFBSSxDQUFDO1NBQ2I7UUFDRCxJQUFNLFNBQVMsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDL0MsSUFBSSxNQUFNLENBQUMsSUFBSSxLQUFLLDRCQUFlLENBQUMsUUFBUSxFQUFFO1lBQzVDLElBQUksSUFBSSxHQUFnQixJQUFJLENBQUM7WUFDN0IsSUFBSSxNQUFNLENBQUMsSUFBSSxLQUFLLElBQUksSUFBSSxFQUFFLENBQUMsaUJBQWlCLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQztnQkFDekQsRUFBRSxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxFQUFFO2dCQUMzQyxJQUFJLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDO2FBQ2pDO1lBRUQsNkZBQTZGO1lBQzdGLElBQUksSUFBSSxLQUFLLFNBQVMsRUFBRTtnQkFDdEIsT0FBTyxJQUFJLENBQUM7YUFDYjtZQUNELE9BQU8sRUFBQyxTQUFTLFdBQUEsRUFBRSxJQUFJLE1BQUEsRUFBQyxDQUFDO1NBQzFCO2FBQU0sSUFBSSxNQUFNLENBQUMsSUFBSSxLQUFLLDRCQUFlLENBQUMsTUFBTSxFQUFFO1lBQ2pELE9BQU8sRUFBQyxTQUFTLFdBQUEsRUFBRSxJQUFJLEVBQUUsWUFBWSxFQUFDLENBQUM7U0FDeEM7YUFBTTtZQUNMLE9BQU8sSUFBSSxDQUFDO1NBQ2I7SUFDSCxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0g7UUFDRSxnQ0FBb0IsT0FBeUI7WUFBekIsWUFBTyxHQUFQLE9BQU8sQ0FBa0I7UUFBRyxDQUFDO1FBRWpELHFEQUFvQixHQUFwQixVQUFxQixJQUFpRDs7O2dCQUNwRSxLQUFxQixJQUFBLEtBQUEsaUJBQUEsSUFBSSxDQUFDLE9BQU8sQ0FBQSxnQkFBQSw0QkFBRTtvQkFBOUIsSUFBTSxNQUFNLFdBQUE7b0JBQ2YsSUFBTSxJQUFJLEdBQUcsTUFBTSxDQUFDLG9CQUFvQixDQUFDLElBQUksQ0FBQyxDQUFDO29CQUMvQyxJQUFJLElBQUksS0FBSyxJQUFJLEVBQUU7d0JBQ2pCLE9BQU8sSUFBSSxDQUFDO3FCQUNiO2lCQUNGOzs7Ozs7Ozs7WUFDRCxPQUFPLElBQUksQ0FBQztRQUNkLENBQUM7UUFFRCxvREFBbUIsR0FBbkIsVUFBb0IsSUFBaUQ7OztnQkFDbkUsS0FBcUIsSUFBQSxLQUFBLGlCQUFBLElBQUksQ0FBQyxPQUFPLENBQUEsZ0JBQUEsNEJBQUU7b0JBQTlCLElBQU0sTUFBTSxXQUFBO29CQUNmLElBQU0sSUFBSSxHQUFHLE1BQU0sQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztvQkFDOUMsSUFBSSxJQUFJLEtBQUssSUFBSSxFQUFFO3dCQUNqQixPQUFPLElBQUksQ0FBQztxQkFDYjtpQkFDRjs7Ozs7Ozs7O1lBQ0QsT0FBTyxJQUFJLENBQUM7UUFDZCxDQUFDO1FBQ0QsZ0RBQWUsR0FBZixVQUFnQixJQUFpRDs7O2dCQUMvRCxLQUFxQixJQUFBLEtBQUEsaUJBQUEsSUFBSSxDQUFDLE9BQU8sQ0FBQSxnQkFBQSw0QkFBRTtvQkFBOUIsSUFBTSxNQUFNLFdBQUE7b0JBQ2YsSUFBTSxJQUFJLEdBQUcsTUFBTSxDQUFDLGVBQWUsQ0FBQyxJQUFJLENBQUMsQ0FBQztvQkFDMUMsSUFBSSxJQUFJLEtBQUssSUFBSSxFQUFFO3dCQUNqQixPQUFPLElBQUksQ0FBQztxQkFDYjtpQkFDRjs7Ozs7Ozs7O1lBQ0QsT0FBTyxJQUFJLENBQUM7UUFDZCxDQUFDO1FBQ0gsNkJBQUM7SUFBRCxDQUFDLEFBL0JELElBK0JDO0lBL0JZLHdEQUFzQiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgSW5jLiBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuaW1wb3J0ICogYXMgdHMgZnJvbSAndHlwZXNjcmlwdCc7XG5cbmltcG9ydCB7UmVmZXJlbmNlfSBmcm9tICcuLi8uLi9pbXBvcnRzJztcbmltcG9ydCB7Q2xhc3NEZWNsYXJhdGlvbiwgQ2xhc3NNZW1iZXIsIENsYXNzTWVtYmVyS2luZCwgUmVmbGVjdGlvbkhvc3QsIGlzTmFtZWRDbGFzc0RlY2xhcmF0aW9uLCByZWZsZWN0VHlwZUVudGl0eVRvRGVjbGFyYXRpb259IGZyb20gJy4uLy4uL3JlZmxlY3Rpb24nO1xuaW1wb3J0IHtub2RlRGVidWdJbmZvfSBmcm9tICcuLi8uLi91dGlsL3NyYy90eXBlc2NyaXB0JztcblxuaW1wb3J0IHtEaXJlY3RpdmVNZXRhLCBNZXRhZGF0YVJlYWRlciwgTmdNb2R1bGVNZXRhLCBQaXBlTWV0YSwgVGVtcGxhdGVHdWFyZE1ldGF9IGZyb20gJy4vYXBpJztcblxuZXhwb3J0IGZ1bmN0aW9uIGV4dHJhY3RSZWZlcmVuY2VzRnJvbVR5cGUoXG4gICAgY2hlY2tlcjogdHMuVHlwZUNoZWNrZXIsIGRlZjogdHMuVHlwZU5vZGUsIG5nTW9kdWxlSW1wb3J0ZWRGcm9tOiBzdHJpbmcgfCBudWxsLFxuICAgIHJlc29sdXRpb25Db250ZXh0OiBzdHJpbmcpOiBSZWZlcmVuY2U8Q2xhc3NEZWNsYXJhdGlvbj5bXSB7XG4gIGlmICghdHMuaXNUdXBsZVR5cGVOb2RlKGRlZikpIHtcbiAgICByZXR1cm4gW107XG4gIH1cbiAgcmV0dXJuIGRlZi5lbGVtZW50VHlwZXMubWFwKGVsZW1lbnQgPT4ge1xuICAgIGlmICghdHMuaXNUeXBlUXVlcnlOb2RlKGVsZW1lbnQpKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYEV4cGVjdGVkIFR5cGVRdWVyeU5vZGU6ICR7bm9kZURlYnVnSW5mbyhlbGVtZW50KX1gKTtcbiAgICB9XG4gICAgY29uc3QgdHlwZSA9IGVsZW1lbnQuZXhwck5hbWU7XG4gICAgY29uc3Qge25vZGUsIGZyb219ID0gcmVmbGVjdFR5cGVFbnRpdHlUb0RlY2xhcmF0aW9uKHR5cGUsIGNoZWNrZXIpO1xuICAgIGlmICghaXNOYW1lZENsYXNzRGVjbGFyYXRpb24obm9kZSkpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgRXhwZWN0ZWQgbmFtZWQgQ2xhc3NEZWNsYXJhdGlvbjogJHtub2RlRGVidWdJbmZvKG5vZGUpfWApO1xuICAgIH1cbiAgICBjb25zdCBzcGVjaWZpZXIgPSAoZnJvbSAhPT0gbnVsbCAmJiAhZnJvbS5zdGFydHNXaXRoKCcuJykgPyBmcm9tIDogbmdNb2R1bGVJbXBvcnRlZEZyb20pO1xuICAgIGlmIChzcGVjaWZpZXIgIT09IG51bGwpIHtcbiAgICAgIHJldHVybiBuZXcgUmVmZXJlbmNlKG5vZGUsIHtzcGVjaWZpZXIsIHJlc29sdXRpb25Db250ZXh0fSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBuZXcgUmVmZXJlbmNlKG5vZGUpO1xuICAgIH1cbiAgfSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiByZWFkU3RyaW5nVHlwZSh0eXBlOiB0cy5UeXBlTm9kZSk6IHN0cmluZ3xudWxsIHtcbiAgaWYgKCF0cy5pc0xpdGVyYWxUeXBlTm9kZSh0eXBlKSB8fCAhdHMuaXNTdHJpbmdMaXRlcmFsKHR5cGUubGl0ZXJhbCkpIHtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuICByZXR1cm4gdHlwZS5saXRlcmFsLnRleHQ7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiByZWFkU3RyaW5nTWFwVHlwZSh0eXBlOiB0cy5UeXBlTm9kZSk6IHtba2V5OiBzdHJpbmddOiBzdHJpbmd9IHtcbiAgaWYgKCF0cy5pc1R5cGVMaXRlcmFsTm9kZSh0eXBlKSkge1xuICAgIHJldHVybiB7fTtcbiAgfVxuICBjb25zdCBvYmo6IHtba2V5OiBzdHJpbmddOiBzdHJpbmd9ID0ge307XG4gIHR5cGUubWVtYmVycy5mb3JFYWNoKG1lbWJlciA9PiB7XG4gICAgaWYgKCF0cy5pc1Byb3BlcnR5U2lnbmF0dXJlKG1lbWJlcikgfHwgbWVtYmVyLnR5cGUgPT09IHVuZGVmaW5lZCB8fCBtZW1iZXIubmFtZSA9PT0gdW5kZWZpbmVkIHx8XG4gICAgICAgICF0cy5pc1N0cmluZ0xpdGVyYWwobWVtYmVyLm5hbWUpKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIGNvbnN0IHZhbHVlID0gcmVhZFN0cmluZ1R5cGUobWVtYmVyLnR5cGUpO1xuICAgIGlmICh2YWx1ZSA9PT0gbnVsbCkge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuICAgIG9ialttZW1iZXIubmFtZS50ZXh0XSA9IHZhbHVlO1xuICB9KTtcbiAgcmV0dXJuIG9iajtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHJlYWRTdHJpbmdBcnJheVR5cGUodHlwZTogdHMuVHlwZU5vZGUpOiBzdHJpbmdbXSB7XG4gIGlmICghdHMuaXNUdXBsZVR5cGVOb2RlKHR5cGUpKSB7XG4gICAgcmV0dXJuIFtdO1xuICB9XG4gIGNvbnN0IHJlczogc3RyaW5nW10gPSBbXTtcbiAgdHlwZS5lbGVtZW50VHlwZXMuZm9yRWFjaChlbCA9PiB7XG4gICAgaWYgKCF0cy5pc0xpdGVyYWxUeXBlTm9kZShlbCkgfHwgIXRzLmlzU3RyaW5nTGl0ZXJhbChlbC5saXRlcmFsKSkge1xuICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICByZXMucHVzaChlbC5saXRlcmFsLnRleHQpO1xuICB9KTtcbiAgcmV0dXJuIHJlcztcbn1cblxuXG5leHBvcnQgZnVuY3Rpb24gZXh0cmFjdERpcmVjdGl2ZUd1YXJkcyhub2RlOiBDbGFzc0RlY2xhcmF0aW9uLCByZWZsZWN0b3I6IFJlZmxlY3Rpb25Ib3N0KToge1xuICBuZ1RlbXBsYXRlR3VhcmRzOiBUZW1wbGF0ZUd1YXJkTWV0YVtdLFxuICBoYXNOZ1RlbXBsYXRlQ29udGV4dEd1YXJkOiBib29sZWFuLFxufSB7XG4gIGNvbnN0IHN0YXRpY01lbWJlcnMgPSByZWZsZWN0b3IuZ2V0TWVtYmVyc09mQ2xhc3Mobm9kZSkuZmlsdGVyKG1lbWJlciA9PiBtZW1iZXIuaXNTdGF0aWMpO1xuICBjb25zdCBuZ1RlbXBsYXRlR3VhcmRzID0gc3RhdGljTWVtYmVycy5tYXAoZXh0cmFjdFRlbXBsYXRlR3VhcmQpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmZpbHRlcigoZ3VhcmQpOiBndWFyZCBpcyBUZW1wbGF0ZUd1YXJkTWV0YSA9PiBndWFyZCAhPT0gbnVsbCk7XG4gIGNvbnN0IGhhc05nVGVtcGxhdGVDb250ZXh0R3VhcmQgPSBzdGF0aWNNZW1iZXJzLnNvbWUoXG4gICAgICBtZW1iZXIgPT4gbWVtYmVyLmtpbmQgPT09IENsYXNzTWVtYmVyS2luZC5NZXRob2QgJiYgbWVtYmVyLm5hbWUgPT09ICduZ1RlbXBsYXRlQ29udGV4dEd1YXJkJyk7XG4gIHJldHVybiB7aGFzTmdUZW1wbGF0ZUNvbnRleHRHdWFyZCwgbmdUZW1wbGF0ZUd1YXJkc307XG59XG5cbmZ1bmN0aW9uIGV4dHJhY3RUZW1wbGF0ZUd1YXJkKG1lbWJlcjogQ2xhc3NNZW1iZXIpOiBUZW1wbGF0ZUd1YXJkTWV0YXxudWxsIHtcbiAgaWYgKCFtZW1iZXIubmFtZS5zdGFydHNXaXRoKCduZ1RlbXBsYXRlR3VhcmRfJykpIHtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuICBjb25zdCBpbnB1dE5hbWUgPSBtZW1iZXIubmFtZS5zcGxpdCgnXycsIDIpWzFdO1xuICBpZiAobWVtYmVyLmtpbmQgPT09IENsYXNzTWVtYmVyS2luZC5Qcm9wZXJ0eSkge1xuICAgIGxldCB0eXBlOiBzdHJpbmd8bnVsbCA9IG51bGw7XG4gICAgaWYgKG1lbWJlci50eXBlICE9PSBudWxsICYmIHRzLmlzTGl0ZXJhbFR5cGVOb2RlKG1lbWJlci50eXBlKSAmJlxuICAgICAgICB0cy5pc1N0cmluZ0xpdGVyYWwobWVtYmVyLnR5cGUubGl0ZXJhbCkpIHtcbiAgICAgIHR5cGUgPSBtZW1iZXIudHlwZS5saXRlcmFsLnRleHQ7XG4gICAgfVxuXG4gICAgLy8gT25seSBwcm9wZXJ0eSBtZW1iZXJzIHdpdGggc3RyaW5nIGxpdGVyYWwgdHlwZSAnYmluZGluZycgYXJlIGNvbnNpZGVyZWQgYXMgdGVtcGxhdGUgZ3VhcmQuXG4gICAgaWYgKHR5cGUgIT09ICdiaW5kaW5nJykge1xuICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuICAgIHJldHVybiB7aW5wdXROYW1lLCB0eXBlfTtcbiAgfSBlbHNlIGlmIChtZW1iZXIua2luZCA9PT0gQ2xhc3NNZW1iZXJLaW5kLk1ldGhvZCkge1xuICAgIHJldHVybiB7aW5wdXROYW1lLCB0eXBlOiAnaW52b2NhdGlvbid9O1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBudWxsO1xuICB9XG59XG5cbi8qKlxuICogQSBgTWV0YWRhdGFSZWFkZXJgIHRoYXQgcmVhZHMgZnJvbSBhbiBvcmRlcmVkIHNldCBvZiBjaGlsZCByZWFkZXJzIHVudGlsIGl0IG9idGFpbnMgdGhlIHJlcXVlc3RlZFxuICogbWV0YWRhdGEuXG4gKlxuICogVGhpcyBpcyB1c2VkIHRvIGNvbWJpbmUgYE1ldGFkYXRhUmVhZGVyYHMgdGhhdCByZWFkIGZyb20gZGlmZmVyZW50IHNvdXJjZXMgKGUuZy4gZnJvbSBhIHJlZ2lzdHJ5XG4gKiBhbmQgZnJvbSAuZC50cyBmaWxlcykuXG4gKi9cbmV4cG9ydCBjbGFzcyBDb21wb3VuZE1ldGFkYXRhUmVhZGVyIGltcGxlbWVudHMgTWV0YWRhdGFSZWFkZXIge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHJlYWRlcnM6IE1ldGFkYXRhUmVhZGVyW10pIHt9XG5cbiAgZ2V0RGlyZWN0aXZlTWV0YWRhdGEobm9kZTogUmVmZXJlbmNlPENsYXNzRGVjbGFyYXRpb248dHMuRGVjbGFyYXRpb24+Pik6IERpcmVjdGl2ZU1ldGF8bnVsbCB7XG4gICAgZm9yIChjb25zdCByZWFkZXIgb2YgdGhpcy5yZWFkZXJzKSB7XG4gICAgICBjb25zdCBtZXRhID0gcmVhZGVyLmdldERpcmVjdGl2ZU1ldGFkYXRhKG5vZGUpO1xuICAgICAgaWYgKG1ldGEgIT09IG51bGwpIHtcbiAgICAgICAgcmV0dXJuIG1ldGE7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiBudWxsO1xuICB9XG5cbiAgZ2V0TmdNb2R1bGVNZXRhZGF0YShub2RlOiBSZWZlcmVuY2U8Q2xhc3NEZWNsYXJhdGlvbjx0cy5EZWNsYXJhdGlvbj4+KTogTmdNb2R1bGVNZXRhfG51bGwge1xuICAgIGZvciAoY29uc3QgcmVhZGVyIG9mIHRoaXMucmVhZGVycykge1xuICAgICAgY29uc3QgbWV0YSA9IHJlYWRlci5nZXROZ01vZHVsZU1ldGFkYXRhKG5vZGUpO1xuICAgICAgaWYgKG1ldGEgIT09IG51bGwpIHtcbiAgICAgICAgcmV0dXJuIG1ldGE7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiBudWxsO1xuICB9XG4gIGdldFBpcGVNZXRhZGF0YShub2RlOiBSZWZlcmVuY2U8Q2xhc3NEZWNsYXJhdGlvbjx0cy5EZWNsYXJhdGlvbj4+KTogUGlwZU1ldGF8bnVsbCB7XG4gICAgZm9yIChjb25zdCByZWFkZXIgb2YgdGhpcy5yZWFkZXJzKSB7XG4gICAgICBjb25zdCBtZXRhID0gcmVhZGVyLmdldFBpcGVNZXRhZGF0YShub2RlKTtcbiAgICAgIGlmIChtZXRhICE9PSBudWxsKSB7XG4gICAgICAgIHJldHVybiBtZXRhO1xuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gbnVsbDtcbiAgfVxufVxuIl19
110.164948
13,274
0.827063
3b025feb0320d134c00388c8886cd8f79f353205
1,026
js
JavaScript
App/I18n.js
tientnvn/react-native-boilerplate
8147c2a01d8b1d59ce4174804b40245fe83ffb61
[ "MIT" ]
null
null
null
App/I18n.js
tientnvn/react-native-boilerplate
8147c2a01d8b1d59ce4174804b40245fe83ffb61
[ "MIT" ]
null
null
null
App/I18n.js
tientnvn/react-native-boilerplate
8147c2a01d8b1d59ce4174804b40245fe83ffb61
[ "MIT" ]
null
null
null
import { I18nManager } from 'react-native' import * as RNLocalize from "react-native-localize"; import i18n from "i18n-js"; import memoize from "lodash.memoize"; const translationGetters = { // lazy requires (metro bundler does not support symlinks) vi: () => require("App/Languages/vi.json"), en: () => require("App/Languages/en.json") }; const translate = memoize( (key, config) => i18n.t(key, config), (key, config) => (config ? key + JSON.stringify(config) : key) ); const setI18nConfig = () => { // fallback if no available language fits const fallback = { languageTag: "en", isRTL: false }; const { languageTag, isRTL } = RNLocalize.findBestAvailableLanguage(Object.keys(translationGetters)) || fallback; // clear translation cache translate.cache.clear(); // update layout direction I18nManager.forceRTL(isRTL); // set i18n-js config i18n.translations = { [languageTag]: translationGetters[languageTag]() }; i18n.locale = languageTag; }; export { setI18nConfig, translate }
28.5
76
0.695906
3b02f11ea0b557cbd922ecd0a1c43e657910520d
383
js
JavaScript
src/svgicons/mp/IconMpKeyboardDown.js
we-act/components
a54dd513683024cede7bfbe1bf8af8797039218f
[ "MIT" ]
3
2017-07-03T09:42:29.000Z
2017-07-04T15:25:36.000Z
src/svgicons/mp/IconMpKeyboardDown.js
we-act/components
a54dd513683024cede7bfbe1bf8af8797039218f
[ "MIT" ]
null
null
null
src/svgicons/mp/IconMpKeyboardDown.js
we-act/components
a54dd513683024cede7bfbe1bf8af8797039218f
[ "MIT" ]
null
null
null
import React from 'react' import Icon from '../ReactIconBase' const IconMpKeyboardDown = props => ( <Icon viewBox="0 0 16 16" aria-hidden="true" data-role="icon" {...props}> <path d="M8.003 11l.008.007 4.597-4.596-1.06-1.06-3.544 3.543L4.46 5.35 3.4 6.41l4.596 4.597.007-.007z"/> </Icon> ) export default IconMpKeyboardDown
21.277778
109
0.592689
3b0334b71fb864107cb535a3bf39af6f99cae65e
950
js
JavaScript
lib/servers/parser.js
vinniejames/open-api-mocker
eedf9d7c4826d54b758c1d799a4718e49b348864
[ "MIT" ]
null
null
null
lib/servers/parser.js
vinniejames/open-api-mocker
eedf9d7c4826d54b758c1d799a4718e49b348864
[ "MIT" ]
null
null
null
lib/servers/parser.js
vinniejames/open-api-mocker
eedf9d7c4826d54b758c1d799a4718e49b348864
[ "MIT" ]
null
null
null
'use strict'; const ParserError = require('../errors/parser-error'); const Server = require('./server'); const ServersStruct = require('./structs'); class Parser { parse(schema) { const { servers } = schema; this.validateServers(servers); if(!servers || !servers.length) return [this.defaultServer()]; return servers .map(this.parseServer.bind(this)); } defaultServer() { return Server.getDefault(); } validateServers(servers) { try { return ServersStruct(servers); } catch(e) { const path = e.path .reduce((acum, pathPart) => `${acum}.${pathPart}`, 'servers'); throw new ParserError(e.message, path); } } parseServer({ url, description, variables, ...otherProps }) { const extensionProps = Object.entries(otherProps) .filter(([propName]) => propName.substr(0, 2) === 'x-'); return new Server({ url, description, variables }, extensionProps); } } module.exports = Parser;
17.592593
66
0.649474
3b04c0864a9e3d6960f935deca06730990d38834
12,158
js
JavaScript
src/dom/DomUtil.js
EddiG/Leaflet
ff70b2f374d2c6ed849b56c54e43c012d9c1afda
[ "BSD-2-Clause" ]
null
null
null
src/dom/DomUtil.js
EddiG/Leaflet
ff70b2f374d2c6ed849b56c54e43c012d9c1afda
[ "BSD-2-Clause" ]
null
null
null
src/dom/DomUtil.js
EddiG/Leaflet
ff70b2f374d2c6ed849b56c54e43c012d9c1afda
[ "BSD-2-Clause" ]
null
null
null
import * as DomEvent from './DomEvent'; import * as Util from '../core/Util'; import {Point} from '../geometry/Point'; import * as Browser from '../core/Browser'; /* * @namespace DomUtil * * Utility functions to work with the [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model) * tree, used by Leaflet internally. * * Most functions expecting or returning a `HTMLElement` also work for * SVG elements. The only difference is that classes refer to CSS classes * in HTML and SVG classes in SVG. */ // @property TRANSFORM: String // Vendor-prefixed transform style name (e.g. `'webkitTransform'` for WebKit). export var TRANSFORM = testProp( ['transform', 'webkitTransform', 'OTransform', 'MozTransform', 'msTransform']); // webkitTransition comes first because some browser versions that drop vendor prefix don't do // the same for the transitionend event, in particular the Android 4.1 stock browser // @property TRANSITION: String // Vendor-prefixed transition style name. export var TRANSITION = testProp( ['webkitTransition', 'transition', 'OTransition', 'MozTransition', 'msTransition']); // @property TRANSITION_END: String // Vendor-prefixed transitionend event name. export var TRANSITION_END = TRANSITION === 'webkitTransition' || TRANSITION === 'OTransition' ? TRANSITION + 'End' : 'transitionend'; // @function get(id: String|HTMLElement): HTMLElement // Returns an element given its DOM id, or returns the element itself // if it was passed directly. export function get(id) { return typeof id === 'string' ? document.getElementById(id) : id; } // @function getStyle(el: HTMLElement, styleAttrib: String): String // Returns the value for a certain style attribute on an element, // including computed values or values set through CSS. export function getStyle(el, style) { var value = el.style[style] || (el.currentStyle && el.currentStyle[style]); if ((!value || value === 'auto') && document.defaultView) { var css = document.defaultView.getComputedStyle(el, null); value = css ? css[style] : null; } return value === 'auto' ? null : value; } // @function create(tagName: String, className?: String, container?: HTMLElement): HTMLElement // Creates an HTML element with `tagName`, sets its class to `className`, and optionally appends it to `container` element. export function create(tagName, className, container) { var el = document.createElement(tagName); el.className = className || ''; if (container) { container.appendChild(el); } return el; } // @function remove(el: HTMLElement) // Removes `el` from its parent element export function remove(el) { var parent = el.parentNode; if (parent) { parent.removeChild(el); } } // @function empty(el: HTMLElement) // Removes all of `el`'s children elements from `el` export function empty(el) { while (el.firstChild) { el.removeChild(el.firstChild); } } // @function toFront(el: HTMLElement) // Makes `el` the last child of its parent, so it renders in front of the other children. export function toFront(el) { var parent = el.parentNode; if (parent && parent.lastChild !== el) { parent.appendChild(el); } } // @function toBack(el: HTMLElement) // Makes `el` the first child of its parent, so it renders behind the other children. export function toBack(el) { var parent = el.parentNode; if (parent && parent.firstChild !== el) { parent.insertBefore(el, parent.firstChild); } } // @function hasClass(el: HTMLElement, name: String): Boolean // Returns `true` if the element's class attribute contains `name`. export function hasClass(el, name) { if (el.classList !== undefined) { return el.classList.contains(name); } var className = getClass(el); return className.length > 0 && new RegExp('(^|\\s)' + name + '(\\s|$)').test(className); } // @function addClass(el: HTMLElement, name: String) // Adds `name` to the element's class attribute. export function addClass(el, name) { if (el.classList !== undefined) { var classes = Util.splitWords(name); for (var i = 0, len = classes.length; i < len; i++) { el.classList.add(classes[i]); } } else if (!hasClass(el, name)) { var className = getClass(el); setClass(el, (className ? className + ' ' : '') + name); } } // @function removeClass(el: HTMLElement, name: String) // Removes `name` from the element's class attribute. export function removeClass(el, name) { if (el.classList !== undefined) { el.classList.remove(name); } else { setClass(el, Util.trim((' ' + getClass(el) + ' ').replace(' ' + name + ' ', ' '))); } } // @function setClass(el: HTMLElement, name: String) // Sets the element's class. export function setClass(el, name) { if (el.className.baseVal === undefined) { el.className = name; } else { // in case of SVG element el.className.baseVal = name; } } // @function getClass(el: HTMLElement): String // Returns the element's class. export function getClass(el) { // Check if the element is an SVGElementInstance and use the correspondingElement instead // (Required for linked SVG elements in IE11.) if (el.correspondingElement) { el = el.correspondingElement; } return el.className.baseVal === undefined ? el.className : el.className.baseVal; } // @function setOpacity(el: HTMLElement, opacity: Number) // Set the opacity of an element (including old IE support). // `opacity` must be a number from `0` to `1`. export function setOpacity(el, value) { if ('opacity' in el.style) { el.style.opacity = value; } else if ('filter' in el.style) { _setOpacityIE(el, value); } } function _setOpacityIE(el, value) { var filter = false, filterName = 'DXImageTransform.Microsoft.Alpha'; // filters collection throws an error if we try to retrieve a filter that doesn't exist try { filter = el.filters.item(filterName); } catch (e) { // don't set opacity to 1 if we haven't already set an opacity, // it isn't needed and breaks transparent pngs. if (value === 1) { return; } } value = Math.round(value * 100); if (filter) { filter.Enabled = (value !== 100); filter.Opacity = value; } else { el.style.filter += ' progid:' + filterName + '(opacity=' + value + ')'; } } // @function testProp(props: String[]): String|false // Goes through the array of style names and returns the first name // that is a valid style name for an element. If no such name is found, // it returns false. Useful for vendor-prefixed styles like `transform`. export function testProp(props) { var style = document.documentElement.style; for (var i = 0; i < props.length; i++) { if (props[i] in style) { return props[i]; } } return false; } // @function setTransform(el: HTMLElement, offset: Point, scale?: Number) // Resets the 3D CSS transform of `el` so it is translated by `offset` pixels // and optionally scaled by `scale`. Does not have an effect if the // browser doesn't support 3D CSS transforms. export function setTransform(el, offset, scale, bearing, pivot) { var pos = offset || new L.Point(0, 0); if (!bearing) { el.style[L.DomUtil.TRANSFORM] = (L.Browser.ie3d ? 'translate(' + pos.x + 'px,' + pos.y + 'px)' : 'translate3d(' + pos.x + 'px,' + pos.y + 'px,0)') + (scale ? ' scale(' + scale + ')' : ''); } else { pos = pos.rotateFrom(bearing, pivot); el.style[L.DomUtil.TRANSFORM] = 'translate3d(' + pos.x + 'px,' + pos.y + 'px,0)' + (scale ? ' scale(' + scale + ')' : '') + ' rotate(' + bearing + 'rad)'; } } // @function setPosition(el: HTMLElement, position: Point) // Sets the position of `el` to coordinates specified by `position`, // using CSS translate or top/left positioning depending on the browser // (used by Leaflet internally to position its layers). export function setPosition(el, point, bearing, pivot) { // eslint-disable-next-line el._leaflet_pos = point; if (L.Browser.any3d) { L.DomUtil.setTransform(el, point, undefined, bearing, pivot); } else { el.style.left = point.x + 'px'; el.style.top = point.y + 'px'; } } export const DEG_TO_RAD = Math.PI / 180 export const RAD_TO_DEG = 180 / Math.PI // @function getPosition(el: HTMLElement): Point // Returns the coordinates of an element previously positioned with setPosition. export function getPosition(el) { // this method is only used for elements previously positioned using setPosition, // so it's safe to cache the position for performance return el._leaflet_pos || new Point(0, 0); } // @function disableTextSelection() // Prevents the user from generating `selectstart` DOM events, usually generated // when the user drags the mouse through a page with text. Used internally // by Leaflet to override the behaviour of any click-and-drag interaction on // the map. Affects drag interactions on the whole document. // @function enableTextSelection() // Cancels the effects of a previous [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection). export var disableTextSelection; export var enableTextSelection; var _userSelect; if ('onselectstart' in document) { disableTextSelection = function () { DomEvent.on(window, 'selectstart', DomEvent.preventDefault); }; enableTextSelection = function () { DomEvent.off(window, 'selectstart', DomEvent.preventDefault); }; } else { var userSelectProperty = testProp( ['userSelect', 'WebkitUserSelect', 'OUserSelect', 'MozUserSelect', 'msUserSelect']); disableTextSelection = function () { if (userSelectProperty) { var style = document.documentElement.style; _userSelect = style[userSelectProperty]; style[userSelectProperty] = 'none'; } }; enableTextSelection = function () { if (userSelectProperty) { document.documentElement.style[userSelectProperty] = _userSelect; _userSelect = undefined; } }; } // @function disableImageDrag() // As [`L.DomUtil.disableTextSelection`](#domutil-disabletextselection), but // for `dragstart` DOM events, usually generated when the user drags an image. export function disableImageDrag() { DomEvent.on(window, 'dragstart', DomEvent.preventDefault); } // @function enableImageDrag() // Cancels the effects of a previous [`L.DomUtil.disableImageDrag`](#domutil-disabletextselection). export function enableImageDrag() { DomEvent.off(window, 'dragstart', DomEvent.preventDefault); } var _outlineElement, _outlineStyle; // @function preventOutline(el: HTMLElement) // Makes the [outline](https://developer.mozilla.org/docs/Web/CSS/outline) // of the element `el` invisible. Used internally by Leaflet to prevent // focusable elements from displaying an outline when the user performs a // drag interaction on them. export function preventOutline(element) { while (element.tabIndex === -1) { element = element.parentNode; } if (!element.style) { return; } restoreOutline(); _outlineElement = element; _outlineStyle = element.style.outline; element.style.outline = 'none'; DomEvent.on(window, 'keydown', restoreOutline); } // @function restoreOutline() // Cancels the effects of a previous [`L.DomUtil.preventOutline`](). export function restoreOutline() { if (!_outlineElement) { return; } _outlineElement.style.outline = _outlineStyle; _outlineElement = undefined; _outlineStyle = undefined; DomEvent.off(window, 'keydown', restoreOutline); } // @function getSizedParentNode(el: HTMLElement): HTMLElement // Finds the closest parent node which size (width and height) is not null. export function getSizedParentNode(element) { do { element = element.parentNode; } while ((!element.offsetWidth || !element.offsetHeight) && element !== document.body); return element; } // @function getScale(el: HTMLElement): Object // Computes the CSS scale currently applied on the element. // Returns an object with `x` and `y` members as horizontal and vertical scales respectively, // and `boundingClientRect` as the result of [`getBoundingClientRect()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect). export function getScale(element) { var rect = element.getBoundingClientRect(); // Read-only in old browsers. return { x: rect.width / element.offsetWidth || 1, y: rect.height / element.offsetHeight || 1, boundingClientRect: rect }; }
33.772222
153
0.708998
3b04d96f6075971aa6a5c443503347fc38e70c35
15,276
js
JavaScript
davinci.dojo_1_8/WebContent/metadata/dijit/form/HorizontalSliderInput.js
ravi013/maqetta
8477280b0c52b2766578217e7a19b7d3801af95e
[ "AFL-2.1" ]
467
2015-01-06T08:05:43.000Z
2022-03-02T05:53:51.000Z
davinci.dojo_1_8/WebContent/metadata/dijit/form/HorizontalSliderInput.js
ravi013/weblabs
8477280b0c52b2766578217e7a19b7d3801af95e
[ "AFL-2.1" ]
12
2015-01-15T14:45:22.000Z
2018-11-29T17:20:57.000Z
davinci.dojo_1_8/WebContent/metadata/dijit/form/HorizontalSliderInput.js
ravi013/weblabs
8477280b0c52b2766578217e7a19b7d3801af95e
[ "AFL-2.1" ]
243
2015-01-03T11:36:14.000Z
2022-02-22T19:36:48.000Z
define( [ "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "../layout/ContainerInput", "dijit/layout/ContentPane", "dijit/layout/BorderContainer", "dijit/layout/LayoutContainer", "dijit/form/HorizontalSlider", "dijit/form/HorizontalRule", "dijit/form/HorizontalRuleLabels", "davinci/Workbench", "dojo/text!./templates/horizontalSliderInput.html", "dojo/text!./templates/horizontalSliderInputRowTemplate.html", "davinci/css!./templates/horizontalSliderInput.css", "dojo/i18n!../nls/dijit", "dojo/i18n!dijit/nls/common" ], function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, ContainerInput, ContentPane, BorderContainer, LayoutContainer, HorizontalSlider, HorizontalRule, HorizontalRuleLabels, Workbench, mainTemplateString, rowTemplate, cssForTemplate, langObj, dijitLangObj) { var ContinerInputWidget = declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], { templateString: mainTemplateString, langObj: langObj, dijitLangObj: dijitLangObj, postCreate: function() { if (this.widget.inLineEdit_displayOnCreate) { // hide cancel on widget creation #120 delete this.widget.inLineEdit_displayOnCreate; dojo.style(this.cancelButton.domNode, "display", "none"); } }, resize: function(coords) { this.borderContainer.resize(); }, _onCancel: function() { this.onClose(); } }); return declare(ContainerInput, { //Data structure to hold entries for (potentially) new children of the slider _sliderChildrenEntries: null, _substitutedRowTemplate: null, _substitutedMainTemplate: null, show: function(widgetId) { this._widget = davinci.ve.widget.byId(widgetId); //Set up the dialog var dimensions = this._getDialogDimensions(); var width = dimensions.width; var height = dimensions.height; var s = this._getTemplate(width, height); function _onOK() { this.updateWidget(); } this.contentWidget = new ContinerInputWidget({widget: this._widget}); this._inline = Workbench.showModal(this.contentWidget, this._getDialogTitle(), {width: width, height: height}, dojo.hitch(this, _onOK)); //Loop through slider children to find Rule and RuleLabel elements this._sliderChildrenEntries = []; var data = this._widget.getData(); var children = data.children; for(var i=0; i<children.length; i++){ var child = children[i]; if (this._isValidChildType(child.type)) { var childData = { "type": child.type, "properties": dojo.clone(child.properties) }; if (childData.properties.isTempID) { // delete temp id so it does not make its way out to the source // when we recreate the children delete childData.properties.id; } this._sliderChildrenEntries.push(childData); } else { console.log('WARNING. HorizontalSliderInput.js show(). Invalid child of slider: type = ' + child.type); } } this._updateDialog(); }, hide: function(cancel) { if (this._inline) { //Clean up connections var connection; while (connection = this._connection.pop()){ dojo.disconnect(connection); } //Destroy dialog and widgets this._inline.destroyRecursive(); delete this._inline; } this.inherited(arguments); }, //Updates underlying slider with (potentially) new set of children updateWidget: function() { var data = this._widget.getData(); //Commit changes by executing ModifyCommand if (data.properties.isTempID) { // delete temp id so it does not make its way out to the source delete data.properties.id; } var command = new davinci.ve.commands.ModifyCommand(this._widget, data.properties, this._sliderChildrenEntries, this._widget._edit_context); this._widget._edit_context.getCommandStack().execute(command); this._widget = command.newWidget; // get the focus on the current node this._widget._edit_context._focuses[0]._selectedWidget = this._widget; var context = this._widget.getContext(); // redraw the box around the widget context.select(this._widget, null, false); }, _updateDialog: function() { var sliderInputChildRows = dojo.query('.sliderInputChildRow', this.domNode); // Destroy all existing rows except for the heading row (#0) for(var i=sliderInputChildRows.length-1; i>0; i--){ var rowNode = sliderInputChildRows[i]; var typeSelectNodes = dojo.query('.sliderTypeSelect', rowNode); var typeSelect = dijit.byNode(typeSelectNodes[0]); typeSelect.destroyRecursive(); var containerSelectNodes = dojo.query('.sliderContainerSelect', rowNode); var containerSelect = dijit.byNode(containerSelectNodes[0]); containerSelect.destroyRecursive(); dojo.destroy(rowNode); } // Create a TR for each entry in array and insert after heading row var headerNode = sliderInputChildRows[0]; var headerParentNode = headerNode.parentNode; var headerNextSibling = headerNode.nextSibling; if (this._sliderChildrenEntries.length > 0) { for(var i=0; i<this._sliderChildrenEntries.length; i++){ var child = this._sliderChildrenEntries[i]; var newRuleOrLabel = dojo.create('tr',{'className':'sliderInputChildRow'}); newRuleOrLabel.innerHTML = this._getRowTemplate(); headerParentNode.insertBefore(newRuleOrLabel, headerNextSibling); dojo.parser.parse(newRuleOrLabel); var labelNodes = dojo.query('.sliderInputChildLabel', newRuleOrLabel); labelNodes[0].innerHTML = ' #' + (i+1) + ':'; var typeSelectNodes = dojo.query('.sliderTypeSelect', newRuleOrLabel); var typeSelect = dijit.byNode(typeSelectNodes[0]); typeSelect.set('value', this._getSelectValueAssociatedWithType(child.type)); this._connection.push(dojo.connect(typeSelect, 'onChange', dojo.hitch(this,function(){ this._updateDataStructureChildren(); this._updatePreview(); }))); var containerSelectNodes = dojo.query('.sliderContainerSelect', newRuleOrLabel); var containerSelect = dijit.byNode(containerSelectNodes[0]); containerSelect.set('value', this._getRuleOrLabelContainer(child)); this._connection.push(dojo.connect(containerSelect, 'onChange', dojo.hitch(this,function(){ this._updateDataStructureChildren(); this._updatePreview(); }))); var plusNode = dojo.query('.sliderInputPlusButton', newRuleOrLabel)[0]; var plusButton = dijit.byNode(plusNode); plusButton.set('title', langObj.bgdAddStop); this._connection.push(dojo.connect(plusButton, 'onClick', dojo.hitch(this, function(rownum){ var newRowData = this._createNewChildData(this._getWidgetTypeForRuleLabels()); this._sliderChildrenEntries.splice(rownum+1, 0, newRowData); this._updateDialog(); }, i))); var minusNode = dojo.query('.sliderInputMinusButton', newRuleOrLabel)[0]; var minusButton = dijit.byNode(minusNode); minusButton.set('title', langObj.bgdRemoveStop); this._connection.push(dojo.connect(minusButton, 'onClick', dojo.hitch(this, function(rownum){ // Remove row <rownum> this._sliderChildrenEntries.splice(rownum, 1); this._updateDialog(); }, i))); } } else { //There are no rules or labels defined var newNoChildrenRow = dojo.create('tr',{'className':'sliderInputChildRow'}); newNoChildrenRow.innerHTML = this._getRowTemplate(); headerParentNode.insertBefore(newNoChildrenRow, headerNextSibling); dojo.parser.parse(newNoChildrenRow); var labelNodes = dojo.query('.sliderInputChildLabel', newNoChildrenRow); labelNodes[0].innerHTML = ''; var typeSelectNodes = dojo.query('.sliderTypeSelect', newNoChildrenRow); var typeSelect = dijit.byNode(typeSelectNodes[0]); typeSelect.set('value', this._getSelectValueAssociatedWithType(this._getWidgetTypeForRuleLabels())); typeSelect.set('disabled', 'disabled'); var containerSelectNodes = dojo.query('.sliderContainerSelect', newNoChildrenRow); var containerSelect = dijit.byNode(containerSelectNodes[0]); containerSelect.set('disabled', 'disabled'); var plusNode = dojo.query('.sliderInputPlusButton', newNoChildrenRow)[0]; var plusButton = dijit.byNode(plusNode); plusButton.set('title', langObj.bgdAddStop); this._connection.push(dojo.connect(plusButton, 'onClick', dojo.hitch(this, function(rownum){ var newRowData = this._createNewChildData(this._getWidgetTypeForRuleLabels()); this._sliderChildrenEntries.splice(rownum+1, 0, newRowData); this._updateDialog(); }, i))); var minusNode = dojo.query('.sliderInputMinusButton', newNoChildrenRow)[0]; var minusButton = dijit.byNode(minusNode); minusButton.set('disabled', 'disabled'); } //Update the preview of the slider this._updatePreview(); }, _updatePreview: function(){ var s = this._getPreviewContent(); //Set the content var obj = this.contentWidget.previewArea; obj.set("content", s); }, _getPreviewContent: function(){ //Construct template for slider based on dialog settings var s = '<div dojoType="' + this._getWidgetTypeForSlider() + '" style="' + this._getWidgetStyleForSlider() + '">'; //Add child rules and labels for(var i=0; i<this._sliderChildrenEntries.length; i++){ var sliderChild = this._sliderChildrenEntries[i]; if (sliderChild.type === this._getWidgetTypeForRule()) { s += ' <div dojoType="' + this._getWidgetTypeForRule() + '"'; var sliderChildProps = sliderChild.properties; var name = null; for (name in sliderChildProps) { if (sliderChildProps.hasOwnProperty(name)) { s += ' ' + name + '="' + sliderChild.properties[name] + '"'; } } s += ' ></div>'; } else if (sliderChild.type === this._getWidgetTypeForRuleLabels()) { s += ' <ol dojoType="' + this._getWidgetTypeForRuleLabels() + '"'; var sliderChildProps = sliderChild.properties; var name = null; for (name in sliderChildProps) { if (sliderChildProps.hasOwnProperty(name)) { s += ' ' + name + '="' + sliderChild.properties[name] + '"'; } } s += ' ></ol>'; } } //End slider div s += '</div>'; //Return content return s; }, _getRuleOrLabelContainer: function(child) { return child.properties.container; }, _isValidChildType: function(type) { return type === this._getWidgetTypeForRule() || this._getWidgetTypeForRuleLabels(); }, _getSelectValueAssociatedWithType: function(type) { var value = null; if (type === this._getWidgetTypeForRule()) { value = "rules"; } else if (type === this._getWidgetTypeForRuleLabels()) { value = "labels"; } else { console.log('WARNING. HorizontalSliderInput.js _getSelectValueAssociatedWithType(). Invalid child type for slider: type = ' + type); } return value; }, _getTypeFromSelectValue: function(selectVal) { var value = null; if (selectVal === "rules") { value = this._getWidgetTypeForRule(); } else if (selectVal === "labels") { value = this._getWidgetTypeForRuleLabels(); } else { console.log('WARNING. HorizontalSliderInput.js _getTypeFromSelectValue(). Invalid combo box value: val = ' + selectVal); } return value; }, _updateDataStructureChildren: function(){ var sliderInputChildRows = dojo.query('.sliderInputChildRow', this.domNode); // Ignore the heading row (#0) for(var i=1; i<sliderInputChildRows.length; i++){ var ruleOrLabelData = this._sliderChildrenEntries[i-1]; var rowNode = sliderInputChildRows[i]; var typeSelectNodes = dojo.query('.sliderTypeSelect', rowNode); var typeSelect = dijit.byNode(typeSelectNodes[0]); var containerSelectNodes = dojo.query('.sliderContainerSelect', rowNode); var containerSelect = dijit.byNode(containerSelectNodes[0]); //Get values from dijits on the row and put back into data structure var newType = this._getTypeFromSelectValue(typeSelect.get('value')); if (newType != ruleOrLabelData.type) { //We've had a type change, so we need to update the style prop so dimensions are appropriate //for the child type. We'll do this by creating a dummy child of the //new type and getting the style off of that. var dummyNewChild = this._createNewChildData(newType); ruleOrLabelData.properties.style = dummyNewChild.properties.style; if (newType === this._getWidgetTypeForRule()) { //We've switched from labels to rule, and many properties for //labels are not at all applicable to rules. So, let's remove them delete ruleOrLabelData.properties.labelStyle; delete ruleOrLabelData.properties.labels; delete ruleOrLabelData.properties.numericMargin; delete ruleOrLabelData.properties.minimum; delete ruleOrLabelData.properties.maximum; delete ruleOrLabelData.properties.constraints; } } ruleOrLabelData.type = newType; ruleOrLabelData.properties.container = containerSelect.get('value'); } }, _createNewChildData: function(type) { var childData = { "type": type, "properties": this._getPropertiesForNewChildData(type) }; return childData; }, _getTemplate: function(width, height) { if (!this._substitutedMainTemplate) { this._substitutedMainTemplate = dojo.replace(mainTemplateString, { //width: width + "px", //height: (height - 20) + "px", ruleAndLabelsHeader: langObj.ruleAndLabelsHeader, typeColHeader: langObj.typeColHeader, containerColHeader: langObj.containerColHeader, preview: langObj.preview, buttonOk: dijitLangObj.buttonOk, buttonCancel: dijitLangObj.buttonCancel }); } return this._substitutedMainTemplate; }, _getRowTemplate: function() { if (!this._substitutedRowTemplate) { var containerOptions = this._getContainerOptions(); this._substitutedRowTemplate = dojo.replace(rowTemplate, { containerOptions0: containerOptions[0], containerOptions1: containerOptions[1], rulesSelectEntry: langObj.rulesSelectEntry, labelsSelectEntry: langObj.labelsSelectEntry }); } return this._substitutedRowTemplate; }, destroy: function() { dojo.forEach(this._connection, function(c) { dojo.disconnect(c); }) }, /************************************************************* * Functions subclass should override *************************************************************/ _getDialogTitle: function() { return langObj.horizontalSliderDialog; }, _getDialogDimensions: function() { return { "width": 610, "height": 250 }; }, _getWidgetTypeForSlider: function() { return "dijit/form/HorizontalSlider"; }, _getWidgetStyleForSlider: function() { return "width: 200px;"; }, _getWidgetTypeForRule: function() { return "dijit/form/HorizontalRule"; }, _getWidgetTypeForRuleLabels: function() { return "dijit/form/HorizontalRuleLabels"; }, _getPropertiesForNewChildData: function(type) { var props = null; if (type === this._getWidgetTypeForRule()) { props = { "style": "height:5px;", "container": "bottomDecoration" }; } else { props = { "container": "bottomDecoration", "style": "height:20px;" }; } return props; }, _getContainerOptions: function() { return [ "bottomDecoration", "topDecoration" ]; } }); });
32.502128
138
0.700969
3b06d8cbc9a534f86a4a685f6f5175a1c355c823
978
js
JavaScript
src/permission.js
caotans/myFavorite
8f5e74f56bd5f7c86bcce6fb99645560d6b7a7b5
[ "MIT" ]
null
null
null
src/permission.js
caotans/myFavorite
8f5e74f56bd5f7c86bcce6fb99645560d6b7a7b5
[ "MIT" ]
null
null
null
src/permission.js
caotans/myFavorite
8f5e74f56bd5f7c86bcce6fb99645560d6b7a7b5
[ "MIT" ]
null
null
null
import router from './router' // import { Message } from 'element-ui' import NProgress from 'nprogress' // progress bar import 'nprogress/nprogress.css' // progress bar style NProgress.configure({ showSpinner: false })// NProgress Configuration // const whiteList = ['/login', '/authredirect']// no redirect whitelist router.beforeEach((to, from, next) => { // NProgress.start() // start progress bar // if (window.localStorage.getItem('token')) store.commit('SET_TOKEN', window.localStorage.getItem('token')) // if (store.getters.token) { // determine if there has token // next() // } else { // /* has no token*/ // if (whiteList.indexOf(to.path) !== -1) { // 在免登录白名单,直接进入 // next() // } else { // next('/login') // 否则全部重定向到登录页 // NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it // } // } next(); }) router.afterEach(() => { NProgress.done() // finish progress bar })
32.6
110
0.640082
3b06f1e59c5b600f5dffd0339e75eac3eeb22c02
1,868
js
JavaScript
lib/gitlab-webhook-handler.js
ernstki/jtlabber
84090fb8a3b1da9023f9f16f839ffcf4416fb1cb
[ "MIT", "0BSD" ]
null
null
null
lib/gitlab-webhook-handler.js
ernstki/jtlabber
84090fb8a3b1da9023f9f16f839ffcf4416fb1cb
[ "MIT", "0BSD" ]
1
2017-12-12T04:54:17.000Z
2017-12-12T04:54:17.000Z
lib/gitlab-webhook-handler.js
ernstki/jtlabber
84090fb8a3b1da9023f9f16f839ffcf4416fb1cb
[ "MIT", "0BSD" ]
null
null
null
const EventEmitter = require('events').EventEmitter , inherits = require('util').inherits , bl = require('bl') function create (options) { if (typeof options != 'object') throw new TypeError('must provide an options object') if (typeof options.path != 'string') throw new TypeError('must provide a \'path\' option') // make it an EventEmitter, sort of handler.__proto__ = EventEmitter.prototype EventEmitter.call(handler) return handler function handler (req, res, callback) { if (req.url.split('?').shift() !== options.path) return callback() function hasError (msg) { res.writeHead(400, { 'content-type': 'application/json' }) res.end(JSON.stringify({ error: msg })) var err = new Error(msg) handler.emit('error', err, req) callback(err) } var event = req.headers['x-gitlab-event']; if (!event) return hasError('No X-Gitlab-Event found on request') req.pipe(bl(function (err, data) { if (err) { return hasError(err.message) } var obj try { obj = JSON.parse(data.toString()) } catch (e) { return hasError(e) } // console.log(obj); var event = obj.object_kind; // invalid json if (!obj || !obj.repository || !obj.repository.name) { return hasError('received invalid data from ' + req.headers['host'] + ', returning 400'); } var repo = obj.repository.name; res.writeHead(200, { 'content-type': 'application/json' }) res.end('{"ok":true}') var emitData = { event : event , payload : obj , protocol: req.protocol , host : req.headers['host'] , url : req.url } handler.emit(event, emitData) handler.emit('*', emitData) })) // req.pipe } // handler } // function create (options) module.exports = create
23.64557
97
0.598501
3b072b48bdf749d7980f599a8f4c5eeb3170e398
66,471
js
JavaScript
lib/services/serviceBusManagement2/lib/operations/rules.js
blueww/azure-sdk-for-node
ddd13c1e5f56975c593e58b168a57447677701aa
[ "Apache-2.0", "MIT" ]
null
null
null
lib/services/serviceBusManagement2/lib/operations/rules.js
blueww/azure-sdk-for-node
ddd13c1e5f56975c593e58b168a57447677701aa
[ "Apache-2.0", "MIT" ]
null
null
null
lib/services/serviceBusManagement2/lib/operations/rules.js
blueww/azure-sdk-for-node
ddd13c1e5f56975c593e58b168a57447677701aa
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ 'use strict'; const msRest = require('ms-rest'); const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** * List all the rules within given topic-subscription * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} callback - The callback. * * @returns {function} callback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. * See {@link RuleListResult} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ function _listBySubscriptions(resourceGroupName, namespaceName, topicName, subscriptionName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } if (!callback) { throw new Error('callback cannot be null.'); } // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { if (resourceGroupName.length > 90) { throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); } if (resourceGroupName.length < 1) { throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); } } if (namespaceName === null || namespaceName === undefined || typeof namespaceName.valueOf() !== 'string') { throw new Error('namespaceName cannot be null or undefined and it must be of type string.'); } if (namespaceName !== null && namespaceName !== undefined) { if (namespaceName.length > 50) { throw new Error('"namespaceName" should satisfy the constraint - "MaxLength": 50'); } if (namespaceName.length < 6) { throw new Error('"namespaceName" should satisfy the constraint - "MinLength": 6'); } } if (topicName === null || topicName === undefined || typeof topicName.valueOf() !== 'string') { throw new Error('topicName cannot be null or undefined and it must be of type string.'); } if (topicName !== null && topicName !== undefined) { if (topicName.length < 1) { throw new Error('"topicName" should satisfy the constraint - "MinLength": 1'); } } if (subscriptionName === null || subscriptionName === undefined || typeof subscriptionName.valueOf() !== 'string') { throw new Error('subscriptionName cannot be null or undefined and it must be of type string.'); } if (subscriptionName !== null && subscriptionName !== undefined) { if (subscriptionName.length > 50) { throw new Error('"subscriptionName" should satisfy the constraint - "MaxLength": 50'); } if (subscriptionName.length < 1) { throw new Error('"subscriptionName" should satisfy the constraint - "MinLength": 1'); } } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); } // Construct URL let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules'; requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{topicName}', encodeURIComponent(topicName)); requestUrl = requestUrl.replace('{subscriptionName}', encodeURIComponent(subscriptionName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } if(options) { for(let headerName in options['customHeaders']) { if (options['customHeaders'].hasOwnProperty(headerName)) { httpRequest.headers[headerName] = options['customHeaders'][headerName]; } } } httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } let statusCode = response.statusCode; if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { let internalError = null; if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; error.code = internalError ? internalError.code : parsedErrorResponse.code; error.message = internalError ? internalError.message : parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + `- "${responseBody}" for the default response.`; return callback(error); } return callback(error); } // Create Result let result = null; if (responseBody === '') responseBody = null; // Deserialize Response if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { let resultMapper = new client.models['RuleListResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); deserializationError.request = msRest.stripRequest(httpRequest); deserializationError.response = msRest.stripResponse(response); return callback(deserializationError); } } return callback(null, result, httpRequest, response); }); } /** * Creates a new rule and updates an existing rule * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} parameters Parameters supplied to create a rule. * * @param {object} [parameters.action] Represents the filter actions which are * allowed for the transformation of a message that have been matched by a * filter expression. * * @param {string} [parameters.action.sqlExpression] SQL expression. e.g. * MyProperty='ABC' * * @param {number} [parameters.action.compatibilityLevel] This property is * reserved for future use. An integer value showing the compatibility level, * currently hard-coded to 20. * * @param {boolean} [parameters.action.requiresPreprocessing] Value that * indicates whether the rule action requires preprocessing. * * @param {string} [parameters.filterType] Filter type that is evaluated * against a BrokeredMessage. Possible values include: 'SqlFilter', * 'CorrelationFilter' * * @param {object} [parameters.sqlFilter] Properties of sqlFilter * * @param {string} [parameters.sqlFilter.sqlExpression] The SQL expression. * e.g. MyProperty='ABC' * * @param {boolean} [parameters.sqlFilter.requiresPreprocessing] Value that * indicates whether the rule action requires preprocessing. * * @param {object} [parameters.correlationFilter] Properties of * correlationFilter * * @param {string} [parameters.correlationFilter.correlationId] Identifier of * the correlation. * * @param {string} [parameters.correlationFilter.messageId] Identifier of the * message. * * @param {string} [parameters.correlationFilter.to] Address to send to. * * @param {string} [parameters.correlationFilter.replyTo] Address of the queue * to reply to. * * @param {string} [parameters.correlationFilter.label] Application specific * label. * * @param {string} [parameters.correlationFilter.sessionId] Session identifier. * * @param {string} [parameters.correlationFilter.replyToSessionId] Session * identifier to reply to. * * @param {string} [parameters.correlationFilter.contentType] Content type of * the message. * * @param {boolean} [parameters.correlationFilter.requiresPreprocessing] Value * that indicates whether the rule action requires preprocessing. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} callback - The callback. * * @returns {function} callback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. * See {@link Rule} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ function _createOrUpdate(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } if (!callback) { throw new Error('callback cannot be null.'); } // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { if (resourceGroupName.length > 90) { throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); } if (resourceGroupName.length < 1) { throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); } } if (namespaceName === null || namespaceName === undefined || typeof namespaceName.valueOf() !== 'string') { throw new Error('namespaceName cannot be null or undefined and it must be of type string.'); } if (namespaceName !== null && namespaceName !== undefined) { if (namespaceName.length > 50) { throw new Error('"namespaceName" should satisfy the constraint - "MaxLength": 50'); } if (namespaceName.length < 6) { throw new Error('"namespaceName" should satisfy the constraint - "MinLength": 6'); } } if (topicName === null || topicName === undefined || typeof topicName.valueOf() !== 'string') { throw new Error('topicName cannot be null or undefined and it must be of type string.'); } if (topicName !== null && topicName !== undefined) { if (topicName.length < 1) { throw new Error('"topicName" should satisfy the constraint - "MinLength": 1'); } } if (subscriptionName === null || subscriptionName === undefined || typeof subscriptionName.valueOf() !== 'string') { throw new Error('subscriptionName cannot be null or undefined and it must be of type string.'); } if (subscriptionName !== null && subscriptionName !== undefined) { if (subscriptionName.length > 50) { throw new Error('"subscriptionName" should satisfy the constraint - "MaxLength": 50'); } if (subscriptionName.length < 1) { throw new Error('"subscriptionName" should satisfy the constraint - "MinLength": 1'); } } if (ruleName === null || ruleName === undefined || typeof ruleName.valueOf() !== 'string') { throw new Error('ruleName cannot be null or undefined and it must be of type string.'); } if (ruleName !== null && ruleName !== undefined) { if (ruleName.length > 50) { throw new Error('"ruleName" should satisfy the constraint - "MaxLength": 50'); } if (ruleName.length < 1) { throw new Error('"ruleName" should satisfy the constraint - "MinLength": 1'); } } if (parameters === null || parameters === undefined) { throw new Error('parameters cannot be null or undefined.'); } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); } // Construct URL let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}'; requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{topicName}', encodeURIComponent(topicName)); requestUrl = requestUrl.replace('{subscriptionName}', encodeURIComponent(subscriptionName)); requestUrl = requestUrl.replace('{ruleName}', encodeURIComponent(ruleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'PUT'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } if(options) { for(let headerName in options['customHeaders']) { if (options['customHeaders'].hasOwnProperty(headerName)) { httpRequest.headers[headerName] = options['customHeaders'][headerName]; } } } // Serialize Request let requestContent = null; let requestModel = null; try { if (parameters !== null && parameters !== undefined) { let requestModelMapper = new client.models['Rule']().mapper(); requestModel = client.serialize(requestModelMapper, parameters, 'parameters'); requestContent = JSON.stringify(requestModel); } } catch (error) { let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + `payload - ${JSON.stringify(parameters, null, 2)}.`); return callback(serializationError); } httpRequest.body = requestContent; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } let statusCode = response.statusCode; if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { let internalError = null; if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; error.code = internalError ? internalError.code : parsedErrorResponse.code; error.message = internalError ? internalError.message : parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + `- "${responseBody}" for the default response.`; return callback(error); } return callback(error); } // Create Result let result = null; if (responseBody === '') responseBody = null; // Deserialize Response if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { let resultMapper = new client.models['Rule']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); deserializationError.request = msRest.stripRequest(httpRequest); deserializationError.response = msRest.stripResponse(response); return callback(deserializationError); } } return callback(null, result, httpRequest, response); }); } /** * Deletes an existing rule. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} callback - The callback. * * @returns {function} callback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ function _deleteMethod(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } if (!callback) { throw new Error('callback cannot be null.'); } // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { if (resourceGroupName.length > 90) { throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); } if (resourceGroupName.length < 1) { throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); } } if (namespaceName === null || namespaceName === undefined || typeof namespaceName.valueOf() !== 'string') { throw new Error('namespaceName cannot be null or undefined and it must be of type string.'); } if (namespaceName !== null && namespaceName !== undefined) { if (namespaceName.length > 50) { throw new Error('"namespaceName" should satisfy the constraint - "MaxLength": 50'); } if (namespaceName.length < 6) { throw new Error('"namespaceName" should satisfy the constraint - "MinLength": 6'); } } if (topicName === null || topicName === undefined || typeof topicName.valueOf() !== 'string') { throw new Error('topicName cannot be null or undefined and it must be of type string.'); } if (topicName !== null && topicName !== undefined) { if (topicName.length < 1) { throw new Error('"topicName" should satisfy the constraint - "MinLength": 1'); } } if (subscriptionName === null || subscriptionName === undefined || typeof subscriptionName.valueOf() !== 'string') { throw new Error('subscriptionName cannot be null or undefined and it must be of type string.'); } if (subscriptionName !== null && subscriptionName !== undefined) { if (subscriptionName.length > 50) { throw new Error('"subscriptionName" should satisfy the constraint - "MaxLength": 50'); } if (subscriptionName.length < 1) { throw new Error('"subscriptionName" should satisfy the constraint - "MinLength": 1'); } } if (ruleName === null || ruleName === undefined || typeof ruleName.valueOf() !== 'string') { throw new Error('ruleName cannot be null or undefined and it must be of type string.'); } if (ruleName !== null && ruleName !== undefined) { if (ruleName.length > 50) { throw new Error('"ruleName" should satisfy the constraint - "MaxLength": 50'); } if (ruleName.length < 1) { throw new Error('"ruleName" should satisfy the constraint - "MinLength": 1'); } } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); } // Construct URL let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}'; requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{topicName}', encodeURIComponent(topicName)); requestUrl = requestUrl.replace('{subscriptionName}', encodeURIComponent(subscriptionName)); requestUrl = requestUrl.replace('{ruleName}', encodeURIComponent(ruleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'DELETE'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } if(options) { for(let headerName in options['customHeaders']) { if (options['customHeaders'].hasOwnProperty(headerName)) { httpRequest.headers[headerName] = options['customHeaders'][headerName]; } } } httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } let statusCode = response.statusCode; if (statusCode !== 204 && statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { let internalError = null; if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; error.code = internalError ? internalError.code : parsedErrorResponse.code; error.message = internalError ? internalError.message : parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + `- "${responseBody}" for the default response.`; return callback(error); } return callback(error); } // Create Result let result = null; if (responseBody === '') responseBody = null; return callback(null, result, httpRequest, response); }); } /** * Retrieves the description for the specified rule. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} callback - The callback. * * @returns {function} callback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. * See {@link Rule} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ function _get(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } if (!callback) { throw new Error('callback cannot be null.'); } // Validate try { if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } if (resourceGroupName !== null && resourceGroupName !== undefined) { if (resourceGroupName.length > 90) { throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); } if (resourceGroupName.length < 1) { throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); } } if (namespaceName === null || namespaceName === undefined || typeof namespaceName.valueOf() !== 'string') { throw new Error('namespaceName cannot be null or undefined and it must be of type string.'); } if (namespaceName !== null && namespaceName !== undefined) { if (namespaceName.length > 50) { throw new Error('"namespaceName" should satisfy the constraint - "MaxLength": 50'); } if (namespaceName.length < 6) { throw new Error('"namespaceName" should satisfy the constraint - "MinLength": 6'); } } if (topicName === null || topicName === undefined || typeof topicName.valueOf() !== 'string') { throw new Error('topicName cannot be null or undefined and it must be of type string.'); } if (topicName !== null && topicName !== undefined) { if (topicName.length < 1) { throw new Error('"topicName" should satisfy the constraint - "MinLength": 1'); } } if (subscriptionName === null || subscriptionName === undefined || typeof subscriptionName.valueOf() !== 'string') { throw new Error('subscriptionName cannot be null or undefined and it must be of type string.'); } if (subscriptionName !== null && subscriptionName !== undefined) { if (subscriptionName.length > 50) { throw new Error('"subscriptionName" should satisfy the constraint - "MaxLength": 50'); } if (subscriptionName.length < 1) { throw new Error('"subscriptionName" should satisfy the constraint - "MinLength": 1'); } } if (ruleName === null || ruleName === undefined || typeof ruleName.valueOf() !== 'string') { throw new Error('ruleName cannot be null or undefined and it must be of type string.'); } if (ruleName !== null && ruleName !== undefined) { if (ruleName.length > 50) { throw new Error('"ruleName" should satisfy the constraint - "MaxLength": 50'); } if (ruleName.length < 1) { throw new Error('"ruleName" should satisfy the constraint - "MinLength": 1'); } } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); } // Construct URL let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}'; requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{namespaceName}', encodeURIComponent(namespaceName)); requestUrl = requestUrl.replace('{topicName}', encodeURIComponent(topicName)); requestUrl = requestUrl.replace('{subscriptionName}', encodeURIComponent(subscriptionName)); requestUrl = requestUrl.replace('{ruleName}', encodeURIComponent(ruleName)); requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } if(options) { for(let headerName in options['customHeaders']) { if (options['customHeaders'].hasOwnProperty(headerName)) { httpRequest.headers[headerName] = options['customHeaders'][headerName]; } } } httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } let statusCode = response.statusCode; if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { let internalError = null; if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; error.code = internalError ? internalError.code : parsedErrorResponse.code; error.message = internalError ? internalError.message : parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + `- "${responseBody}" for the default response.`; return callback(error); } return callback(error); } // Create Result let result = null; if (responseBody === '') responseBody = null; // Deserialize Response if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { let resultMapper = new client.models['Rule']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); deserializationError.request = msRest.stripRequest(httpRequest); deserializationError.response = msRest.stripResponse(response); return callback(deserializationError); } } return callback(null, result, httpRequest, response); }); } /** * List all the rules within given topic-subscription * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} callback - The callback. * * @returns {function} callback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. * See {@link RuleListResult} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ function _listBySubscriptionsNext(nextPageLink, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } if (!callback) { throw new Error('callback cannot be null.'); } // Validate try { if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); } // Construct URL let requestUrl = '{nextLink}'; requestUrl = requestUrl.replace('{nextLink}', nextPageLink); // Create HTTP transport objects let httpRequest = new WebResource(); httpRequest.method = 'GET'; httpRequest.url = requestUrl; httpRequest.headers = {}; // Set Headers httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } if(options) { for(let headerName in options['customHeaders']) { if (options['customHeaders'].hasOwnProperty(headerName)) { httpRequest.headers[headerName] = options['customHeaders'][headerName]; } } } httpRequest.body = null; // Send Request return client.pipeline(httpRequest, (err, response, responseBody) => { if (err) { return callback(err); } let statusCode = response.statusCode; if (statusCode !== 200) { let error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; let parsedErrorResponse; try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { let internalError = null; if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; error.code = internalError ? internalError.code : parsedErrorResponse.code; error.message = internalError ? internalError.message : parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { let resultMapper = new client.models['ErrorResponse']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + `- "${responseBody}" for the default response.`; return callback(error); } return callback(error); } // Create Result let result = null; if (responseBody === '') responseBody = null; // Deserialize Response if (statusCode === 200) { let parsedResponse = null; try { parsedResponse = JSON.parse(responseBody); result = JSON.parse(responseBody); if (parsedResponse !== null && parsedResponse !== undefined) { let resultMapper = new client.models['RuleListResult']().mapper(); result = client.deserialize(resultMapper, parsedResponse, 'result'); } } catch (error) { let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); deserializationError.request = msRest.stripRequest(httpRequest); deserializationError.response = msRest.stripResponse(response); return callback(deserializationError); } } return callback(null, result, httpRequest, response); }); } /** Class representing a Rules. */ class Rules { /** * Create a Rules. * @param {ServiceBusManagementClient} client Reference to the service client. */ constructor(client) { this.client = client; this._listBySubscriptions = _listBySubscriptions; this._createOrUpdate = _createOrUpdate; this._deleteMethod = _deleteMethod; this._get = _get; this._listBySubscriptionsNext = _listBySubscriptionsNext; } /** * List all the rules within given topic-subscription * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse<RuleListResult>} - The deserialized result object. * * @reject {Error} - The error object. */ listBySubscriptionsWithHttpOperationResponse(resourceGroupName, namespaceName, topicName, subscriptionName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { self._listBySubscriptions(resourceGroupName, namespaceName, topicName, subscriptionName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } else { resolve(httpOperationResponse); } return; }); }); } /** * List all the rules within given topic-subscription * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} [optionalCallback] - The optional callback. * * @returns {function|Promise} If a callback was passed as the last parameter * then it returns the callback else returns a Promise. * * {Promise} A promise is returned * * @resolve {RuleListResult} - The deserialized result object. * * @reject {Error} - The error object. * * {function} optionalCallback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. * See {@link RuleListResult} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ listBySubscriptions(resourceGroupName, namespaceName, topicName, subscriptionName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { optionalCallback = options; options = null; } if (!optionalCallback) { return new Promise((resolve, reject) => { self._listBySubscriptions(resourceGroupName, namespaceName, topicName, subscriptionName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { return self._listBySubscriptions(resourceGroupName, namespaceName, topicName, subscriptionName, options, optionalCallback); } } /** * Creates a new rule and updates an existing rule * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} parameters Parameters supplied to create a rule. * * @param {object} [parameters.action] Represents the filter actions which are * allowed for the transformation of a message that have been matched by a * filter expression. * * @param {string} [parameters.action.sqlExpression] SQL expression. e.g. * MyProperty='ABC' * * @param {number} [parameters.action.compatibilityLevel] This property is * reserved for future use. An integer value showing the compatibility level, * currently hard-coded to 20. * * @param {boolean} [parameters.action.requiresPreprocessing] Value that * indicates whether the rule action requires preprocessing. * * @param {string} [parameters.filterType] Filter type that is evaluated * against a BrokeredMessage. Possible values include: 'SqlFilter', * 'CorrelationFilter' * * @param {object} [parameters.sqlFilter] Properties of sqlFilter * * @param {string} [parameters.sqlFilter.sqlExpression] The SQL expression. * e.g. MyProperty='ABC' * * @param {boolean} [parameters.sqlFilter.requiresPreprocessing] Value that * indicates whether the rule action requires preprocessing. * * @param {object} [parameters.correlationFilter] Properties of * correlationFilter * * @param {string} [parameters.correlationFilter.correlationId] Identifier of * the correlation. * * @param {string} [parameters.correlationFilter.messageId] Identifier of the * message. * * @param {string} [parameters.correlationFilter.to] Address to send to. * * @param {string} [parameters.correlationFilter.replyTo] Address of the queue * to reply to. * * @param {string} [parameters.correlationFilter.label] Application specific * label. * * @param {string} [parameters.correlationFilter.sessionId] Session identifier. * * @param {string} [parameters.correlationFilter.replyToSessionId] Session * identifier to reply to. * * @param {string} [parameters.correlationFilter.contentType] Content type of * the message. * * @param {boolean} [parameters.correlationFilter.requiresPreprocessing] Value * that indicates whether the rule action requires preprocessing. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse<Rule>} - The deserialized result object. * * @reject {Error} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { self._createOrUpdate(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } else { resolve(httpOperationResponse); } return; }); }); } /** * Creates a new rule and updates an existing rule * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} parameters Parameters supplied to create a rule. * * @param {object} [parameters.action] Represents the filter actions which are * allowed for the transformation of a message that have been matched by a * filter expression. * * @param {string} [parameters.action.sqlExpression] SQL expression. e.g. * MyProperty='ABC' * * @param {number} [parameters.action.compatibilityLevel] This property is * reserved for future use. An integer value showing the compatibility level, * currently hard-coded to 20. * * @param {boolean} [parameters.action.requiresPreprocessing] Value that * indicates whether the rule action requires preprocessing. * * @param {string} [parameters.filterType] Filter type that is evaluated * against a BrokeredMessage. Possible values include: 'SqlFilter', * 'CorrelationFilter' * * @param {object} [parameters.sqlFilter] Properties of sqlFilter * * @param {string} [parameters.sqlFilter.sqlExpression] The SQL expression. * e.g. MyProperty='ABC' * * @param {boolean} [parameters.sqlFilter.requiresPreprocessing] Value that * indicates whether the rule action requires preprocessing. * * @param {object} [parameters.correlationFilter] Properties of * correlationFilter * * @param {string} [parameters.correlationFilter.correlationId] Identifier of * the correlation. * * @param {string} [parameters.correlationFilter.messageId] Identifier of the * message. * * @param {string} [parameters.correlationFilter.to] Address to send to. * * @param {string} [parameters.correlationFilter.replyTo] Address of the queue * to reply to. * * @param {string} [parameters.correlationFilter.label] Application specific * label. * * @param {string} [parameters.correlationFilter.sessionId] Session identifier. * * @param {string} [parameters.correlationFilter.replyToSessionId] Session * identifier to reply to. * * @param {string} [parameters.correlationFilter.contentType] Content type of * the message. * * @param {boolean} [parameters.correlationFilter.requiresPreprocessing] Value * that indicates whether the rule action requires preprocessing. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} [optionalCallback] - The optional callback. * * @returns {function|Promise} If a callback was passed as the last parameter * then it returns the callback else returns a Promise. * * {Promise} A promise is returned * * @resolve {Rule} - The deserialized result object. * * @reject {Error} - The error object. * * {function} optionalCallback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. * See {@link Rule} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ createOrUpdate(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { optionalCallback = options; options = null; } if (!optionalCallback) { return new Promise((resolve, reject) => { self._createOrUpdate(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { return self._createOrUpdate(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, parameters, options, optionalCallback); } } /** * Deletes an existing rule. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse<null>} - The deserialized result object. * * @reject {Error} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { self._deleteMethod(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } else { resolve(httpOperationResponse); } return; }); }); } /** * Deletes an existing rule. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} [optionalCallback] - The optional callback. * * @returns {function|Promise} If a callback was passed as the last parameter * then it returns the callback else returns a Promise. * * {Promise} A promise is returned * * @resolve {null} - The deserialized result object. * * @reject {Error} - The error object. * * {function} optionalCallback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {null} [result] - The deserialized result object if an error did not occur. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ deleteMethod(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { optionalCallback = options; options = null; } if (!optionalCallback) { return new Promise((resolve, reject) => { self._deleteMethod(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { return self._deleteMethod(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, optionalCallback); } } /** * Retrieves the description for the specified rule. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse<Rule>} - The deserialized result object. * * @reject {Error} - The error object. */ getWithHttpOperationResponse(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { self._get(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } else { resolve(httpOperationResponse); } return; }); }); } /** * Retrieves the description for the specified rule. * * @param {string} resourceGroupName Name of the Resource group within the * Azure subscription. * * @param {string} namespaceName The namespace name * * @param {string} topicName The topic name. * * @param {string} subscriptionName The subscription name. * * @param {string} ruleName The rule name. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} [optionalCallback] - The optional callback. * * @returns {function|Promise} If a callback was passed as the last parameter * then it returns the callback else returns a Promise. * * {Promise} A promise is returned * * @resolve {Rule} - The deserialized result object. * * @reject {Error} - The error object. * * {function} optionalCallback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. * See {@link Rule} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ get(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { optionalCallback = options; options = null; } if (!optionalCallback) { return new Promise((resolve, reject) => { self._get(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { return self._get(resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options, optionalCallback); } } /** * List all the rules within given topic-subscription * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse<RuleListResult>} - The deserialized result object. * * @reject {Error} - The error object. */ listBySubscriptionsNextWithHttpOperationResponse(nextPageLink, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { self._listBySubscriptionsNext(nextPageLink, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } else { resolve(httpOperationResponse); } return; }); }); } /** * List all the rules within given topic-subscription * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} [optionalCallback] - The optional callback. * * @returns {function|Promise} If a callback was passed as the last parameter * then it returns the callback else returns a Promise. * * {Promise} A promise is returned * * @resolve {RuleListResult} - The deserialized result object. * * @reject {Error} - The error object. * * {function} optionalCallback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {object} [result] - The deserialized result object if an error did not occur. * See {@link RuleListResult} for more information. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ listBySubscriptionsNext(nextPageLink, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { optionalCallback = options; options = null; } if (!optionalCallback) { return new Promise((resolve, reject) => { self._listBySubscriptionsNext(nextPageLink, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { return self._listBySubscriptionsNext(nextPageLink, options, optionalCallback); } } } module.exports = Rules;
40.605376
261
0.658453
3b082927e9046d6de0c7225dea494e4f800525f4
2,610
js
JavaScript
modules/html/lib/pug/mixins/__tests__/img.js
pixelastic/norska
feb9978ad8c32833191f67dd9739540cdafb58d5
[ "MIT" ]
6
2019-10-09T12:57:39.000Z
2021-07-27T08:44:37.000Z
modules/html/lib/pug/mixins/__tests__/img.js
pixelastic/norska
feb9978ad8c32833191f67dd9739540cdafb58d5
[ "MIT" ]
125
2019-11-29T14:22:12.000Z
2022-03-05T02:00:47.000Z
modules/html/lib/pug/mixins/__tests__/img.js
pixelastic/norska
feb9978ad8c32833191f67dd9739540cdafb58d5
[ "MIT" ]
null
null
null
const pug = require('../../index.js'); const config = require('norska-config'); describe('norska-html > pug > mixins > img', () => { const tmpDirectory = './tmp/norska-html/pug/mixins/img'; beforeEach(async () => { await config.init({ from: `${tmpDirectory}/src`, to: `${tmpDirectory}/dist`, }); await pug.init(); }); it.each([ // Name, source, output ['Nominal case', '+img', '<img/>'], ['With only a alt', '+img(alt="foo")', '<img alt="foo"/>'], ['With only a class', '+img.foo', '<img class="foo"/>'], [ 'With a local src', '+img(src="cover.png")', '<img class="lazyload lazyload-local" data-src="cover.png" loading="lazy"/>', ], [ 'With a remote url', '+img(src="https://there.com/foo.png")', '<img class="lazyload lazyload-remote" src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo.png&af&blur=5&il&q=50" data-src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo.png&af&il" loading="lazy"/>', ], [ 'With a remote url and a class', '+img.rounded(src="https://there.com/foo.png")', '<img class="lazyload lazyload-remote rounded" src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo.png&af&blur=5&il&q=50" data-src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo.png&af&il" loading="lazy"/>', ], [ 'With options', '+img(src="https://there.com/foo.png" options={width: 100})', '<img class="lazyload lazyload-remote" src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo.png&af&blur=5&il&q=50&w=100" data-src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo.png&af&il&w=100" loading="lazy"/>', ], [ 'With placeholder options', '+img(src="https://there.com/foo.png" options={placeholder: {blur:100}})', '<img class="lazyload lazyload-remote" src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo.png&af&blur=100&il&q=50" data-src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo.png&af&il" loading="lazy"/>', ], [ 'With a space in the remote url', '+img(src="https://there.com/foo bar.png")', '<img class="lazyload lazyload-remote" src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo%2520bar.png&af&blur=5&il&q=50" data-src="https://images.weserv.nl?url=https%3A%2F%2Fthere.com%2Ffoo%2520bar.png&af&il" loading="lazy"/>', ], ])('%s', async (_name, source, expected) => { const actual = await pug.convert(dedent` block content ${source}`); expect(actual).toContain(expected); }); });
47.454545
246
0.618391
3b08792e8b6fa545a1b66c067b2ec1c4a39eb05f
642
js
JavaScript
tests/baselines/reference/propertySignatures.js
nilamjadhav/TypeScript
b059135c51ee93f8fb44dd70a2ca67674ff7a877
[ "Apache-2.0" ]
49,134
2015-01-01T02:37:27.000Z
2019-05-06T20:38:53.000Z
tests/baselines/reference/propertySignatures.js
nilamjadhav/TypeScript
b059135c51ee93f8fb44dd70a2ca67674ff7a877
[ "Apache-2.0" ]
26,488
2015-01-01T13:57:03.000Z
2019-05-06T20:40:00.000Z
tests/baselines/reference/propertySignatures.js
nilamjadhav/TypeScript
b059135c51ee93f8fb44dd70a2ca67674ff7a877
[ "Apache-2.0" ]
8,518
2015-01-05T03:29:29.000Z
2019-05-06T14:37:49.000Z
//// [propertySignatures.ts] // Should be error - duplicate identifiers var foo1: { a:string; a: string; }; // Should be OK var foo2: { a; }; foo2.a = 2; foo2.a = "0"; // Should be error var foo3: { (): string; (): string; }; // Should be OK var foo4: { (): void; }; var test = foo(); // Should be OK var foo5: {();}; var test = foo5(); test.bar = 2; //// [propertySignatures.js] // Should be error - duplicate identifiers var foo1; // Should be OK var foo2; foo2.a = 2; foo2.a = "0"; // Should be error var foo3; // Should be OK var foo4; var test = foo(); // Should be OK var foo5; var test = foo5(); test.bar = 2;
16.461538
43
0.584112
3b088a6518fbdd8d1c3a4c7eef659a43a32d0b0a
1,147
js
JavaScript
packages/admin-web-angular/src/app/@shared/render-component/warehouse-table/status.component.js
Bravedragon0313/dolglo313
5cbb4796c32bcf27f643ca0134f509a1a36bbc67
[ "MIT" ]
null
null
null
packages/admin-web-angular/src/app/@shared/render-component/warehouse-table/status.component.js
Bravedragon0313/dolglo313
5cbb4796c32bcf27f643ca0134f509a1a36bbc67
[ "MIT" ]
1
2022-03-02T08:27:07.000Z
2022-03-02T08:27:07.000Z
packages/admin-web-angular/src/app/@shared/render-component/warehouse-table/status.component.js
Bravedragon0313/newdolce
88ea552dae0cd4a9286aa0cfbccf8b7af1131866
[ "MIT" ]
null
null
null
import { __decorate, __metadata } from "tslib"; import { Component, Input } from '@angular/core'; let StatusComponent = class StatusComponent { constructor() { } ngOnInit() { if (this.checkOrderField === 'isPaid') { this.paid = this.rowData.isPaid; } else { this.closed = this.rowData.isCancelled; } } }; __decorate([ Input(), __metadata("design:type", Object) ], StatusComponent.prototype, "rowData", void 0); StatusComponent = __decorate([ Component({ styles: [ ` .paid-icon { color: green; margin-right: 3px; } .closed-icon { color: red; margin-right: 3px; } .actions-invites-requests { width: 6rem; } `, ], template: ` <div *ngIf="paid || closed" class="text-center actions-invites-requests" > <i *ngIf="paid" class="ion-md-checkmark paid-icon"></i> <i *ngIf="closed" class="ion-md-close closed-icon"></i> {{ text }} </div> `, }), __metadata("design:paramtypes", []) ], StatusComponent); export { StatusComponent }; //# sourceMappingURL=status.component.js.map
23.895833
69
0.582389
3b088ba0cc48da2148ad9225a00f8a69d1e1fb4e
1,335
js
JavaScript
node_modules/google-auto-auth/node_modules/gcp-metadata/index.js
yuriatgoogle/stackdriver-k8s
15ab60ff77f18afcadb17f4060fb345a4c4b8a4f
[ "Apache-2.0" ]
1
2019-05-23T04:38:58.000Z
2019-05-23T04:38:58.000Z
node_modules/google-auto-auth/node_modules/gcp-metadata/index.js
yuriatgoogle/stackdriver-k8s
15ab60ff77f18afcadb17f4060fb345a4c4b8a4f
[ "Apache-2.0" ]
null
null
null
node_modules/google-auto-auth/node_modules/gcp-metadata/index.js
yuriatgoogle/stackdriver-k8s
15ab60ff77f18afcadb17f4060fb345a4c4b8a4f
[ "Apache-2.0" ]
null
null
null
'use strict' var extend = require('extend') var request = require('retry-request') var BASE_URL = 'http://metadata.google.internal/computeMetadata/v1' var gcpMetadata = { _buildMetadataAccessor: function (type) { return function (options, callback) { if (typeof options === 'function') { callback = options options = {} } if (typeof options === 'string') { options = { property: options } } var property = options.property ? '/' + options.property : '' var reqOpts = extend(true, { uri: BASE_URL + '/' + type + property, headers: { 'Metadata-Flavor': 'Google' } }, options) delete reqOpts.property return request(reqOpts, function (err, res, body) { if (err) { callback(err) } else if (!res || res.headers['Metadata-Flavor'] !== 'Google') { callback(new Error('Invalid response from metadata service')) } else if (res.statusCode !== 200) { callback(new Error('Unsuccessful response status code'), res) } else { callback(null, res, body) } }) } } } gcpMetadata.instance = gcpMetadata._buildMetadataAccessor('instance') gcpMetadata.project = gcpMetadata._buildMetadataAccessor('project') module.exports = gcpMetadata
26.7
73
0.597004
3b0979b28edb86cd202d20a62d1256ac3dad47cb
90
js
JavaScript
doc/html/search/classes_1.js
yavl/pm
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
1
2021-04-07T11:15:03.000Z
2021-04-07T11:15:03.000Z
doc/html/search/classes_1.js
yavl/trewlib
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
null
null
null
doc/html/search/classes_1.js
yavl/trewlib
03a49aa82794a42edef851456ff111156157112c
[ "MIT" ]
null
null
null
var searchData= [ ['button_33',['Button',['../classtrew_1_1_button.html',1,'trew']]] ];
18
68
0.633333
3b0a087527bb566980a6bba12ea904f357423656
3,257
js
JavaScript
node_modules/vue/src/server/optimizing-compiler/modules.js
firojkabir/lsg
ff8b5edc02b2d45f6bc602c7a2aa592706009345
[ "MIT" ]
null
null
null
node_modules/vue/src/server/optimizing-compiler/modules.js
firojkabir/lsg
ff8b5edc02b2d45f6bc602c7a2aa592706009345
[ "MIT" ]
null
null
null
node_modules/vue/src/server/optimizing-compiler/modules.js
firojkabir/lsg
ff8b5edc02b2d45f6bc602c7a2aa592706009345
[ "MIT" ]
null
null
null
/* @flow */ import { RAW, // INTERPOLATION, EXPRESSION } from './codegen' import { propsToAttrMap, isRenderableAttr } from 'web/server/util' import { isBooleanAttr, isEnumeratedAttr } from 'web/util/attrs' import type { StringSegment } from './codegen' import type { CodegenState } from 'compiler/codegen/index' type Attr = { name: string; value: string }; const plainStringRE = /^"(?:[^"\\]|\\.)*"$|^'(?:[^'\\]|\\.)*'$/ // let the model AST transform translate v-model into appropriate // props bindings export function applyModelTransform (el: ASTElement, state: CodegenState) { if (el.directives) { for (let i = 0; i < el.directives.length; i++) { const dir = el.directives[i] if (dir.name === 'model') { state.directives.model(el, dir, state.warn) // remove value for textarea as its converted to text if (el.tag === 'textarea' && el.props) { el.props = el.props.filter(p => p.name !== 'value') } break } } } } export function genAttrSegments ( attrs: Array<Attr> ): Array<StringSegment> { return attrs.map(({ name, value }) => genAttrSegment(name, value)) } export function genDOMPropSegments ( props: Array<Attr>, attrs: ?Array<Attr> ): Array<StringSegment> { const segments = [] props.forEach(({ name, value }) => { name = propsToAttrMap[name] || name.toLowerCase() if (isRenderableAttr(name) && !(attrs && attrs.some(a => a.name === name)) ) { segments.push(genAttrSegment(name, value)) } }) return segments } function genAttrSegment (name: string, value: string): StringSegment { if (plainStringRE.test(value)) { // force double quote value = value.replace(/^'|'$/g, '"') // force enumerated attr to "true" if (isEnumeratedAttr(name) && value !== `"false"`) { value = `"true"` } return { type: RAW, value: isBooleanAttr(name) ? ` ${name}="${name}"` : value === '""' ? ` ${name}` : ` ${name}="${JSON.parse(value)}"` } } else { return { type: EXPRESSION, value: `_ssrAttr(${JSON.stringify(name)},${value})` } } } export function genClassSegments ( staticClass: ?string, classBinding: ?string ): Array<StringSegment> { if (staticClass && !classBinding) { return [{ type: RAW, value: ` class="${JSON.parse(staticClass)}"` }] } else { return [{ type: EXPRESSION, value: `_ssrClass(${staticClass || 'null'},${classBinding || 'null'})` }] } } export function genStyleSegments ( staticStyle: ?string, parsedStaticStyle: ?string, styleBinding: ?string, vShowExpression: ?string ): Array<StringSegment> { if (staticStyle && !styleBinding && !vShowExpression) { return [{ type: RAW, value: ` style=${JSON.stringify(staticStyle)}` }] } else { return [{ type: EXPRESSION, value: `_ssrStyle(${ parsedStaticStyle || 'null' },${ styleBinding || 'null' }, ${ vShowExpression ? `{ display: (${vShowExpression}) ? '' : 'none' }` : 'null' })` }] } }
25.645669
77
0.562174
3b0aa27e3a7a025d6da7754fbdc70766fa2fc00e
13,341
js
JavaScript
lib/geocoder.js
conveyal/otp.js
672cc12332700066a270a17202ea1f989641c9e0
[ "MIT" ]
17
2015-02-05T22:14:36.000Z
2020-12-06T11:12:30.000Z
lib/geocoder.js
conveyal/otp.js
672cc12332700066a270a17202ea1f989641c9e0
[ "MIT" ]
56
2015-03-09T19:27:38.000Z
2020-01-14T23:39:42.000Z
lib/geocoder.js
conveyal/otp.js
672cc12332700066a270a17202ea1f989641c9e0
[ "MIT" ]
14
2015-04-13T09:37:13.000Z
2020-11-18T08:55:31.000Z
var $ = require('jquery') var maxSuggestResults = 10 // init the search location in the format expected by the ESRI geocoder, if avaiable if (window.OTP_config.initLatLng && window.OTP_config.initLatLng.length === 2) { var esriLocation = window.OTP_config.initLatLng[1] + ',' + window.OTP_config.initLatLng[0] } // Utilize a searchExtent bounding box in the format expected by the ESRI // geocoder, if avaiable. if (window.OTP_config.searchExtent) { var searchExtent = window.OTP_config.searchExtent; } var EsriGeocoder = { reverse: function (place, callback) { // esri takes lon/lat var parts = place.split(',') var lonlat = parts[1] + ',' + parts[0] $.ajax({ url: window.OTP_config.esriApi + 'reverseGeocode', data: { location: lonlat, f: 'json' }, type: 'GET', dataType: 'jsonp', error: callback, success: function (res) { if (!res.address) { return callback('No address found for ' + lonlat, { text: 'No address found for location', place: place }) } var address = res.address var location = res.location callback(null, { address: address.Address, city: address.City, state: address.Region, place: location.y + ',' + location.x }) } }) }, lookup: function (query, callback, opts) { if (!query.length) return callback() var params = { countryCode: 'USA', f: 'json', singleLine: query } if (esriLocation) params.location = esriLocation if (opts && opts.magicKey) params.magicKey = opts.magicKey $.ajax({ url: window.OTP_config.esriApi + 'findAddressCandidates', type: 'GET', data: params, dataType: 'jsonp', error: callback, success: function (res) { var data = [] for (var itemPos in res.candidates.slice(0, 10)) { var item = { text: res.candidates[itemPos].address, place: res.candidates[itemPos].location.y + ',' + res.candidates[itemPos].location.x, source: 'esri' } data.push(item) } callback(data) } }) }, suggest: function (query, callback, opts) { if (!query.length) return callback() var params = { countryCode: 'USA', f: 'json', text: query } if (esriLocation) params.location = esriLocation if (searchExtent) params.searchExtent = searchExtent $.ajax({ url: window.OTP_config.esriApi + 'suggest', type: 'GET', data: params, dataType: 'jsonp', error: callback, success: function (res) { var data = [] for (var itemPos in res.suggestions.slice(0, maxSuggestResults)) { var item = { text: res.suggestions[itemPos].text, magicKey: res.suggestions[itemPos].magicKey, id: itemPos + 1, source: 'esri' } data.push(item) } callback(data) } }) } } /* OTP's Built-in Lucene Geocoder for resolving stops */ var OtpBuiltInGeocoder = { lookup: function (query, callback, opts) { if (!query.length) return callback() $.ajax({ url: window.OTP_config.otpApi + (window.OTP_config.routerId || 'default') + '/geocode', data: { query: query, corners: false, // don't look up intersections for now autocomplete: opts && opts.autocomplete === true }, type: 'GET', dataType: 'json', error: function () { callback() }, success: function (res) { var data = [] for (var item in res.slice(0, maxSuggestResults)) { var itemData = { id: res[item].id, text: res[item].description, place: res[item].lat + ',' + res[item].lng, source: 'otp' } data.push(itemData) } callback(data) } }) }, suggest: function (query, callback) { OtpBuiltInGeocoder.lookup(query, callback, { autocomplete: true }) } } /* OSM's nominatim geocoder */ var NominatimGeocoder = { reverse: function (place, callback) { var latlon = place.split(',') $.ajax({ url: window.OTP_config.nominatimApi + 'reverse', data: { lat: latlon[0], lon: latlon[1], format: 'json' }, type: 'GET', dataType: 'jsonp', jsonp: 'json_callback', error: callback, success: function (res) { if (!res.address.road) { return callback('No address found for ' + latlon[1] + ',' + latlon[0], { text: 'No address found for location', place: place }) } var address = res.address var location = res.location callback(null, { address: address.road, city: address.city, state: address.state, place: res.lon + ',' + res.lat }) } }) }, lookup: function (query, callback) { if (!query.length) return callback() var params = { countrycodes: 'us', format: 'json', q: query, } $.ajax({ url: window.OTP_config.nominatimApi + 'search', type: 'GET', data: params, dataType: 'jsonp', jsonp: 'json_callback', error: callback, success: function (res) { var data = [] for (var itemPos in res.slice(0, maxSuggestResults)) { var item = { id: itemPos + 1, text: res[itemPos].display_name, place: res[itemPos].lat + ',' + res[itemPos].lon, source: 'nominatim' } data.push(item) } callback(data) } }) }, suggest: function (query, callback) { NominatimGeocoder.lookup(query, callback) } } /* Mapzen Search geocoder */ var MapzenGeocoder = { reverse: function (place, callback) { var latlon = place.split(',') var params = { api_key: window.OTP_config.mapzenApiKey, 'point.lat': latlon[0], 'point.lon': latlon[1] } $.ajax({ url: window.OTP_config.mapzenApi + 'reverse', type: 'GET', data: params, dataType: 'json', error: callback, success: function (res) { if (res.features.length <= 0) { return callback('No address found for ' + latlon[1] + ',' + latlon[0], { text: 'No address found for location', place: place }) } var lonlat = res.features[0].geometry.coordinates callback(null, { address: res.features[0].properties.name, city: res.features[0].properties.locality, state: res.features[0].properties.region, place: lonlat[1] + ',' + lonlat[0] }) } }) }, lookup: function (query, callback) { if (!query.length) return callback() var params = { api_key: window.OTP_config.mapzenApiKey, text: query, size: maxSuggestResults, } if(window.OTP_config.initLatLng && window.OTP_config.initLatLng.length === 2) { params.lat = window.OTP_config.initLatLng[0] params.lon = window.OTP_config.initLatLng[1] } $.ajax({ url: window.OTP_config.mapzenApi + 'search', type: 'GET', data: params, dataType: 'json', error: callback, success: function (res) { var data = [] for (var itemPos in res.features.slice(0, maxSuggestResults)) { var resultItem = res.features[itemPos] var lonlat = resultItem.geometry.coordinates var item = { id: parseInt(itemPos) + 1, text: resultItem.properties.text, place: lonlat[1] + ',' + lonlat[0], source: 'pelias' } data.push(item) } callback(data) } }) }, suggest: function (query, callback) { if (!query.length) return callback() if(window.OTP_config.initLatLng && window.OTP_config.initLatLng.length === 2) { var params = { api_key: window.OTP_config.mapzenApiKey, text: query, size: maxSuggestResults, 'boundary.circle.lat': window.OTP_config.initLatLng[0], 'boundary.circle.lon': window.OTP_config.initLatLng[1], 'boundary.circle.radius': window.OTP_config.geocoderSearchRadius || 50 } $.ajax({ url: window.OTP_config.mapzenApi + 'search', type: 'GET', data: params, dataType: 'json', error: callback, success: function (res) { var data = [] for (var itemPos in res.features.slice(0, maxSuggestResults)) { var resultItem = res.features[itemPos] var lonlat = resultItem.geometry.coordinates var item = { id: parseInt(itemPos) + 1, text: resultItem.properties.label, place: lonlat[1] + ',' + lonlat[0], source: 'mapzen' } data.push(item) } callback(data) } }) } else { MapzenGeocoder.lookup(query, callback) } } } /* Mapbox's geocoder */ var MapboxGeocoder = { reverse: function (place, callback) { var latlon = place.split(',') if (typeof window.OTP_config.mapboxAccessToken === "undefined") { console.log("WARNING: You haven't set a mapbox access token!") return callback() } var params = { access_token: window.OTP_config.mapboxAccessToken, } $.ajax({ url: '//api.mapbox.com/v4/geocode/mapbox.places/' + encodeURIComponent(query) + '.json', type: 'GET', data: params, dataType: 'json', error: callback, success: function (res) { if (res.features.length <= 0) { return callback('No address found for ' + latlon[1] + ',' + latlon[0], { text: 'No address found for location', place: place }) } var lonlat = res.features[0].geometry.coordinates callback(null, { address: res.features[0].place_name, // city: address.city, // state: address.state, place: lonlat[1] + ',' + lonlat[0] }) } }) }, lookup: function (query, callback) { if (!query.length) return callback() if (typeof window.OTP_config.mapboxAccessToken === "undefined") { console.log("WARNING: You haven't set a mapbox access token!") return callback() } var params = { access_token: window.OTP_config.mapboxAccessToken, } /* Mapbox also takes in lon/lat */ if(initialLocation) params.proximity = initialLocation $.ajax({ url: '//api.mapbox.com/v4/geocode/mapbox.places/' + encodeURIComponent(query) + '.json', type: 'GET', data: params, dataType: 'json', error: callback, success: function (res) { var data = [] for (var itemPos in res.features.slice(0, maxSuggestResults)) { var resultItem = res.features[itemPos] var lonlat = resultItem.geometry.coordinates var item = { id: parseInt(itemPos) + 1, text: resultItem.place_name, place: lonlat[1] + ',' + lonlat[0], source: 'mapbox' } data.push(item) } callback(data) } }) }, suggest: function (query, callback) { MapboxGeocoder.lookup(query, callback) } } /* Geocoding function that splits suggest query between multiple other geocoders */ // Array of geocoder ids to lookup. Defaults to 'esri' only, can be overriddin in config var geocoders = window.OTP_config.geocoders || ['esri'] // Lookup mapping geocoder id to object var geocoderLookup = { esri : EsriGeocoder, otp : OtpBuiltInGeocoder, nominatim : NominatimGeocoder, mapzen : MapzenGeocoder, mapbox : MapboxGeocoder, } var MultiGeocoder = { reverse: function (place, callback) { if (typeof window.OTP_config.reverseGeocoder === "undefined") { EsriGeocoder.reverse(place, callback) } else { geocoderLookup[window.OTP_config.reverseGeocoder].reverse(place, callback) } }, suggest: function (query, callback, opts) { var queriesComplete = 0 var maxResultsPerGeocoder = Math.floor(maxSuggestResults / geocoders.length) var resultsMap = {} // maps geocoder id to result set of suggest query // iterate through geocoders, firing suggest queries for each for (var i = 0; i < geocoders.length; i++) { var geocoder = geocoders[i] geocoderLookup[geocoder].suggest(query, function (results) { resultsMap[this.geocoder] = results.slice(0, maxResultsPerGeocoder) queriesComplete++ if (queriesComplete === geocoders.length) { // we're done; invoke callback with combined results var combinedResults = [] for (var j = 0; j < geocoders.length; j++) { combinedResults = combinedResults.concat(resultsMap[geocoders[j]]) } callback(combinedResults) } }.bind({ geocoder: geocoder }), opts) } } } module.exports = { EsriGeocoder: EsriGeocoder, lookup: EsriGeocoder.lookup, reverse: MultiGeocoder.reverse, suggest: MultiGeocoder.suggest }
26.735471
104
0.568848
3b0aec78c8f429dd0d4433cc7ccbab3b815a65b3
74,316
js
JavaScript
ajax/libs/yui/3.15.0/autocomplete-list/autocomplete-list-coverage.js
platanus/cdnjs
daa228b7426fa70b2e3c82f9ef9e8d19548bc255
[ "MIT" ]
5
2015-02-20T16:11:30.000Z
2017-05-15T11:50:44.000Z
ajax/libs/yui/3.15.0/autocomplete-list/autocomplete-list-coverage.js
platanus/cdnjs
daa228b7426fa70b2e3c82f9ef9e8d19548bc255
[ "MIT" ]
null
null
null
ajax/libs/yui/3.15.0/autocomplete-list/autocomplete-list-coverage.js
platanus/cdnjs
daa228b7426fa70b2e3c82f9ef9e8d19548bc255
[ "MIT" ]
4
2015-07-14T16:16:05.000Z
2021-03-10T08:15:54.000Z
/* YUI 3.15.0 (build 834026e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/autocomplete-list/autocomplete-list.js']) { __coverage__['build/autocomplete-list/autocomplete-list.js'] = {"path":"build/autocomplete-list/autocomplete-list.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0,0,0,0],"47":[0,0],"48":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":48}}},"2":{"name":"(anonymous_2)","line":70,"loc":{"start":{"line":70,"column":16},"end":{"line":70,"column":28}}},"3":{"name":"(anonymous_3)","line":80,"loc":{"start":{"line":80,"column":17},"end":{"line":80,"column":29}}},"4":{"name":"(anonymous_4)","line":115,"loc":{"start":{"line":115,"column":16},"end":{"line":115,"column":28}}},"5":{"name":"(anonymous_5)","line":125,"loc":{"start":{"line":125,"column":12},"end":{"line":125,"column":24}}},"6":{"name":"(anonymous_6)","line":130,"loc":{"start":{"line":130,"column":14},"end":{"line":130,"column":26}}},"7":{"name":"(anonymous_7)","line":160,"loc":{"start":{"line":160,"column":12},"end":{"line":160,"column":24}}},"8":{"name":"(anonymous_8)","line":176,"loc":{"start":{"line":176,"column":10},"end":{"line":176,"column":22}}},"9":{"name":"(anonymous_9)","line":190,"loc":{"start":{"line":190,"column":16},"end":{"line":190,"column":49}}},"10":{"name":"(anonymous_10)","line":223,"loc":{"start":{"line":223,"column":23},"end":{"line":223,"column":35}}},"11":{"name":"(anonymous_11)","line":248,"loc":{"start":{"line":248,"column":23},"end":{"line":248,"column":35}}},"12":{"name":"(anonymous_12)","line":267,"loc":{"start":{"line":267,"column":10},"end":{"line":267,"column":27}}},"13":{"name":"(anonymous_13)","line":270,"loc":{"start":{"line":270,"column":59},"end":{"line":270,"column":75}}},"14":{"name":"(anonymous_14)","line":289,"loc":{"start":{"line":289,"column":14},"end":{"line":289,"column":40}}},"15":{"name":"(anonymous_15)","line":300,"loc":{"start":{"line":300,"column":16},"end":{"line":300,"column":28}}},"16":{"name":"(anonymous_16)","line":339,"loc":{"start":{"line":339,"column":15},"end":{"line":339,"column":27}}},"17":{"name":"(anonymous_17)","line":366,"loc":{"start":{"line":366,"column":12},"end":{"line":366,"column":24}}},"18":{"name":"(anonymous_18)","line":380,"loc":{"start":{"line":380,"column":21},"end":{"line":380,"column":33}}},"19":{"name":"(anonymous_19)","line":397,"loc":{"start":{"line":397,"column":21},"end":{"line":397,"column":39}}},"20":{"name":"(anonymous_20)","line":414,"loc":{"start":{"line":414,"column":21},"end":{"line":414,"column":33}}},"21":{"name":"(anonymous_21)","line":435,"loc":{"start":{"line":435,"column":23},"end":{"line":435,"column":35}}},"22":{"name":"(anonymous_22)","line":446,"loc":{"start":{"line":446,"column":22},"end":{"line":446,"column":34}}},"23":{"name":"(anonymous_23)","line":456,"loc":{"start":{"line":456,"column":19},"end":{"line":456,"column":31}}},"24":{"name":"(anonymous_24)","line":472,"loc":{"start":{"line":472,"column":18},"end":{"line":472,"column":37}}},"25":{"name":"(anonymous_25)","line":498,"loc":{"start":{"line":498,"column":25},"end":{"line":498,"column":37}}},"26":{"name":"(anonymous_26)","line":504,"loc":{"start":{"line":504,"column":8},"end":{"line":504,"column":20}}},"27":{"name":"(anonymous_27)","line":514,"loc":{"start":{"line":514,"column":21},"end":{"line":514,"column":40}}},"28":{"name":"(anonymous_28)","line":562,"loc":{"start":{"line":562,"column":28},"end":{"line":562,"column":41}}},"29":{"name":"(anonymous_29)","line":599,"loc":{"start":{"line":599,"column":32},"end":{"line":599,"column":45}}},"30":{"name":"(anonymous_30)","line":612,"loc":{"start":{"line":612,"column":20},"end":{"line":612,"column":33}}},"31":{"name":"(anonymous_31)","line":629,"loc":{"start":{"line":629,"column":29},"end":{"line":629,"column":42}}},"32":{"name":"(anonymous_32)","line":648,"loc":{"start":{"line":648,"column":25},"end":{"line":648,"column":37}}},"33":{"name":"(anonymous_33)","line":666,"loc":{"start":{"line":666,"column":26},"end":{"line":666,"column":38}}},"34":{"name":"(anonymous_34)","line":677,"loc":{"start":{"line":677,"column":21},"end":{"line":677,"column":34}}},"35":{"name":"(anonymous_35)","line":694,"loc":{"start":{"line":694,"column":20},"end":{"line":694,"column":32}}},"36":{"name":"(anonymous_36)","line":706,"loc":{"start":{"line":706,"column":25},"end":{"line":706,"column":38}}},"37":{"name":"(anonymous_37)","line":721,"loc":{"start":{"line":721,"column":25},"end":{"line":721,"column":38}}},"38":{"name":"(anonymous_38)","line":732,"loc":{"start":{"line":732,"column":18},"end":{"line":732,"column":31}}},"39":{"name":"(anonymous_39)","line":748,"loc":{"start":{"line":748,"column":18},"end":{"line":748,"column":31}}},"40":{"name":"(anonymous_40)","line":850,"loc":{"start":{"line":850,"column":21},"end":{"line":850,"column":33}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":906,"column":3}},"2":{"start":{"line":22,"column":0},"end":{"line":874,"column":3}},"3":{"start":{"line":71,"column":8},"end":{"line":71,"column":50}},"4":{"start":{"line":73,"column":8},"end":{"line":73,"column":36}},"5":{"start":{"line":74,"column":8},"end":{"line":74,"column":36}},"6":{"start":{"line":76,"column":8},"end":{"line":76,"column":24}},"7":{"start":{"line":81,"column":8},"end":{"line":81,"column":46}},"8":{"start":{"line":83,"column":8},"end":{"line":86,"column":9}},"9":{"start":{"line":84,"column":12},"end":{"line":84,"column":47}},"10":{"start":{"line":85,"column":12},"end":{"line":85,"column":19}},"11":{"start":{"line":88,"column":8},"end":{"line":88,"column":37}},"12":{"start":{"line":89,"column":8},"end":{"line":89,"column":30}},"13":{"start":{"line":93,"column":8},"end":{"line":93,"column":59}},"14":{"start":{"line":96,"column":8},"end":{"line":96,"column":59}},"15":{"start":{"line":97,"column":8},"end":{"line":97,"column":69}},"16":{"start":{"line":98,"column":8},"end":{"line":98,"column":68}},"17":{"start":{"line":99,"column":8},"end":{"line":99,"column":59}},"18":{"start":{"line":110,"column":8},"end":{"line":112,"column":11}},"19":{"start":{"line":116,"column":8},"end":{"line":118,"column":9}},"20":{"start":{"line":117,"column":12},"end":{"line":117,"column":44}},"21":{"start":{"line":120,"column":8},"end":{"line":122,"column":9}},"22":{"start":{"line":121,"column":12},"end":{"line":121,"column":50}},"23":{"start":{"line":126,"column":8},"end":{"line":126,"column":26}},"24":{"start":{"line":127,"column":8},"end":{"line":127,"column":25}},"25":{"start":{"line":131,"column":8},"end":{"line":136,"column":54}},"26":{"start":{"line":138,"column":8},"end":{"line":142,"column":11}},"27":{"start":{"line":146,"column":8},"end":{"line":146,"column":36}},"28":{"start":{"line":149,"column":8},"end":{"line":151,"column":9}},"29":{"start":{"line":150,"column":12},"end":{"line":150,"column":44}},"30":{"start":{"line":153,"column":8},"end":{"line":153,"column":37}},"31":{"start":{"line":154,"column":8},"end":{"line":154,"column":40}},"32":{"start":{"line":155,"column":8},"end":{"line":155,"column":39}},"33":{"start":{"line":156,"column":8},"end":{"line":156,"column":37}},"34":{"start":{"line":157,"column":8},"end":{"line":157,"column":39}},"35":{"start":{"line":163,"column":8},"end":{"line":163,"column":28}},"36":{"start":{"line":164,"column":8},"end":{"line":164,"column":31}},"37":{"start":{"line":177,"column":8},"end":{"line":177,"column":76}},"38":{"start":{"line":191,"column":8},"end":{"line":201,"column":9}},"39":{"start":{"line":192,"column":12},"end":{"line":194,"column":13}},"40":{"start":{"line":193,"column":16},"end":{"line":193,"column":28}},"41":{"start":{"line":196,"column":12},"end":{"line":196,"column":45}},"42":{"start":{"line":198,"column":12},"end":{"line":200,"column":13}},"43":{"start":{"line":199,"column":16},"end":{"line":199,"column":28}},"44":{"start":{"line":203,"column":8},"end":{"line":207,"column":11}},"45":{"start":{"line":209,"column":8},"end":{"line":209,"column":20}},"46":{"start":{"line":224,"column":8},"end":{"line":225,"column":21}},"47":{"start":{"line":227,"column":8},"end":{"line":232,"column":9}},"48":{"start":{"line":228,"column":12},"end":{"line":229,"column":55}},"49":{"start":{"line":231,"column":12},"end":{"line":231,"column":48}},"50":{"start":{"line":234,"column":8},"end":{"line":234,"column":40}},"51":{"start":{"line":236,"column":8},"end":{"line":236,"column":20}},"52":{"start":{"line":249,"column":8},"end":{"line":251,"column":66}},"53":{"start":{"line":253,"column":8},"end":{"line":253,"column":48}},"54":{"start":{"line":255,"column":8},"end":{"line":255,"column":20}},"55":{"start":{"line":268,"column":8},"end":{"line":268,"column":27}},"56":{"start":{"line":270,"column":8},"end":{"line":272,"column":17}},"57":{"start":{"line":271,"column":12},"end":{"line":271,"column":77}},"58":{"start":{"line":274,"column":8},"end":{"line":274,"column":37}},"59":{"start":{"line":275,"column":8},"end":{"line":275,"column":50}},"60":{"start":{"line":277,"column":8},"end":{"line":277,"column":25}},"61":{"start":{"line":290,"column":8},"end":{"line":290,"column":54}},"62":{"start":{"line":291,"column":8},"end":{"line":291,"column":77}},"63":{"start":{"line":301,"column":8},"end":{"line":302,"column":46}},"64":{"start":{"line":307,"column":8},"end":{"line":324,"column":9}},"65":{"start":{"line":310,"column":12},"end":{"line":310,"column":48}},"66":{"start":{"line":311,"column":12},"end":{"line":311,"column":84}},"67":{"start":{"line":313,"column":12},"end":{"line":316,"column":15}},"68":{"start":{"line":321,"column":12},"end":{"line":323,"column":13}},"69":{"start":{"line":322,"column":16},"end":{"line":322,"column":44}},"70":{"start":{"line":327,"column":8},"end":{"line":330,"column":11}},"71":{"start":{"line":340,"column":8},"end":{"line":357,"column":11}},"72":{"start":{"line":367,"column":8},"end":{"line":367,"column":36}},"73":{"start":{"line":368,"column":8},"end":{"line":368,"column":38}},"74":{"start":{"line":370,"column":8},"end":{"line":370,"column":52}},"75":{"start":{"line":381,"column":8},"end":{"line":381,"column":55}},"76":{"start":{"line":383,"column":8},"end":{"line":386,"column":11}},"77":{"start":{"line":398,"column":8},"end":{"line":398,"column":55}},"78":{"start":{"line":400,"column":8},"end":{"line":403,"column":73}},"79":{"start":{"line":415,"column":8},"end":{"line":415,"column":79}},"80":{"start":{"line":417,"column":8},"end":{"line":420,"column":11}},"81":{"start":{"line":422,"column":8},"end":{"line":422,"column":40}},"82":{"start":{"line":423,"column":8},"end":{"line":423,"column":48}},"83":{"start":{"line":425,"column":8},"end":{"line":425,"column":24}},"84":{"start":{"line":436,"column":8},"end":{"line":436,"column":56}},"85":{"start":{"line":447,"column":8},"end":{"line":447,"column":72}},"86":{"start":{"line":458,"column":8},"end":{"line":458,"column":31}},"87":{"start":{"line":461,"column":8},"end":{"line":461,"column":25}},"88":{"start":{"line":473,"column":8},"end":{"line":475,"column":9}},"89":{"start":{"line":474,"column":12},"end":{"line":474,"column":40}},"90":{"start":{"line":477,"column":8},"end":{"line":477,"column":22}},"91":{"start":{"line":479,"column":8},"end":{"line":482,"column":9}},"92":{"start":{"line":480,"column":12},"end":{"line":480,"column":31}},"93":{"start":{"line":481,"column":12},"end":{"line":481,"column":45}},"94":{"start":{"line":484,"column":8},"end":{"line":484,"column":29}},"95":{"start":{"line":486,"column":8},"end":{"line":488,"column":9}},"96":{"start":{"line":487,"column":12},"end":{"line":487,"column":60}},"97":{"start":{"line":499,"column":8},"end":{"line":499,"column":42}},"98":{"start":{"line":501,"column":8},"end":{"line":503,"column":9}},"99":{"start":{"line":502,"column":12},"end":{"line":502,"column":24}},"100":{"start":{"line":515,"column":8},"end":{"line":518,"column":9}},"101":{"start":{"line":516,"column":12},"end":{"line":516,"column":27}},"102":{"start":{"line":517,"column":12},"end":{"line":517,"column":39}},"103":{"start":{"line":520,"column":8},"end":{"line":522,"column":9}},"104":{"start":{"line":521,"column":12},"end":{"line":521,"column":40}},"105":{"start":{"line":524,"column":8},"end":{"line":524,"column":54}},"106":{"start":{"line":525,"column":8},"end":{"line":525,"column":55}},"107":{"start":{"line":527,"column":8},"end":{"line":537,"column":9}},"108":{"start":{"line":528,"column":12},"end":{"line":528,"column":33}},"109":{"start":{"line":530,"column":12},"end":{"line":530,"column":40}},"110":{"start":{"line":531,"column":12},"end":{"line":531,"column":42}},"111":{"start":{"line":536,"column":12},"end":{"line":536,"column":49}},"112":{"start":{"line":542,"column":8},"end":{"line":550,"column":9}},"113":{"start":{"line":547,"column":12},"end":{"line":549,"column":47}},"114":{"start":{"line":563,"column":8},"end":{"line":566,"column":17}},"115":{"start":{"line":570,"column":8},"end":{"line":572,"column":9}},"116":{"start":{"line":571,"column":12},"end":{"line":571,"column":58}},"117":{"start":{"line":574,"column":8},"end":{"line":579,"column":9}},"118":{"start":{"line":575,"column":12},"end":{"line":575,"column":54}},"119":{"start":{"line":576,"column":12},"end":{"line":576,"column":67}},"120":{"start":{"line":578,"column":12},"end":{"line":578,"column":63}},"121":{"start":{"line":581,"column":8},"end":{"line":589,"column":9}},"122":{"start":{"line":582,"column":12},"end":{"line":582,"column":39}},"123":{"start":{"line":584,"column":12},"end":{"line":588,"column":13}},"124":{"start":{"line":587,"column":16},"end":{"line":587,"column":38}},"125":{"start":{"line":600,"column":8},"end":{"line":600,"column":68}},"126":{"start":{"line":613,"column":8},"end":{"line":614,"column":35}},"127":{"start":{"line":616,"column":8},"end":{"line":619,"column":9}},"128":{"start":{"line":618,"column":12},"end":{"line":618,"column":24}},"129":{"start":{"line":630,"column":8},"end":{"line":631,"column":32}},"130":{"start":{"line":633,"column":8},"end":{"line":635,"column":9}},"131":{"start":{"line":634,"column":12},"end":{"line":634,"column":57}},"132":{"start":{"line":637,"column":8},"end":{"line":639,"column":9}},"133":{"start":{"line":638,"column":12},"end":{"line":638,"column":53}},"134":{"start":{"line":649,"column":8},"end":{"line":649,"column":39}},"135":{"start":{"line":651,"column":8},"end":{"line":657,"column":9}},"136":{"start":{"line":656,"column":12},"end":{"line":656,"column":24}},"137":{"start":{"line":667,"column":8},"end":{"line":667,"column":38}},"138":{"start":{"line":678,"column":8},"end":{"line":678,"column":78}},"139":{"start":{"line":680,"column":8},"end":{"line":680,"column":35}},"140":{"start":{"line":682,"column":8},"end":{"line":684,"column":9}},"141":{"start":{"line":683,"column":12},"end":{"line":683,"column":46}},"142":{"start":{"line":695,"column":8},"end":{"line":695,"column":36}},"143":{"start":{"line":696,"column":8},"end":{"line":696,"column":38}},"144":{"start":{"line":707,"column":8},"end":{"line":707,"column":36}},"145":{"start":{"line":709,"column":8},"end":{"line":711,"column":9}},"146":{"start":{"line":710,"column":12},"end":{"line":710,"column":49}},"147":{"start":{"line":722,"column":8},"end":{"line":722,"column":41}},"148":{"start":{"line":733,"column":8},"end":{"line":733,"column":39}},"149":{"start":{"line":735,"column":8},"end":{"line":735,"column":40}},"150":{"start":{"line":736,"column":8},"end":{"line":736,"column":37}},"151":{"start":{"line":749,"column":8},"end":{"line":749,"column":33}},"152":{"start":{"line":752,"column":8},"end":{"line":752,"column":32}},"153":{"start":{"line":753,"column":8},"end":{"line":753,"column":32}},"154":{"start":{"line":754,"column":8},"end":{"line":754,"column":53}},"155":{"start":{"line":755,"column":8},"end":{"line":755,"column":20}},"156":{"start":{"line":851,"column":16},"end":{"line":851,"column":55}},"157":{"start":{"line":876,"column":0},"end":{"line":876,"column":26}},"158":{"start":{"line":885,"column":0},"end":{"line":885,"column":22}}},"branchMap":{"1":{"line":27,"type":"binary-expr","locations":[{"start":{"line":27,"column":14},"end":{"line":27,"column":21}},{"start":{"line":27,"column":25},"end":{"line":27,"column":36}}]},"2":{"line":83,"type":"if","locations":[{"start":{"line":83,"column":8},"end":{"line":83,"column":8}},{"start":{"line":83,"column":8},"end":{"line":83,"column":8}}]},"3":{"line":120,"type":"if","locations":[{"start":{"line":120,"column":8},"end":{"line":120,"column":8}},{"start":{"line":120,"column":8},"end":{"line":120,"column":8}}]},"4":{"line":149,"type":"if","locations":[{"start":{"line":149,"column":8},"end":{"line":149,"column":8}},{"start":{"line":149,"column":8},"end":{"line":149,"column":8}}]},"5":{"line":177,"type":"cond-expr","locations":[{"start":{"line":177,"column":44},"end":{"line":177,"column":48}},{"start":{"line":177,"column":51},"end":{"line":177,"column":75}}]},"6":{"line":191,"type":"if","locations":[{"start":{"line":191,"column":8},"end":{"line":191,"column":8}},{"start":{"line":191,"column":8},"end":{"line":191,"column":8}}]},"7":{"line":192,"type":"if","locations":[{"start":{"line":192,"column":12},"end":{"line":192,"column":12}},{"start":{"line":192,"column":12},"end":{"line":192,"column":12}}]},"8":{"line":198,"type":"if","locations":[{"start":{"line":198,"column":12},"end":{"line":198,"column":12}},{"start":{"line":198,"column":12},"end":{"line":198,"column":12}}]},"9":{"line":205,"type":"binary-expr","locations":[{"start":{"line":205,"column":25},"end":{"line":205,"column":36}},{"start":{"line":205,"column":40},"end":{"line":205,"column":44}}]},"10":{"line":227,"type":"if","locations":[{"start":{"line":227,"column":8},"end":{"line":227,"column":8}},{"start":{"line":227,"column":8},"end":{"line":227,"column":8}}]},"11":{"line":228,"type":"binary-expr","locations":[{"start":{"line":228,"column":23},"end":{"line":228,"column":54}},{"start":{"line":229,"column":21},"end":{"line":229,"column":53}}]},"12":{"line":229,"type":"cond-expr","locations":[{"start":{"line":229,"column":42},"end":{"line":229,"column":46}},{"start":{"line":229,"column":49},"end":{"line":229,"column":53}}]},"13":{"line":250,"type":"cond-expr","locations":[{"start":{"line":250,"column":30},"end":{"line":250,"column":65}},{"start":{"line":251,"column":20},"end":{"line":251,"column":65}}]},"14":{"line":251,"type":"binary-expr","locations":[{"start":{"line":251,"column":20},"end":{"line":251,"column":38}},{"start":{"line":251,"column":42},"end":{"line":251,"column":65}}]},"15":{"line":253,"type":"binary-expr","locations":[{"start":{"line":253,"column":30},"end":{"line":253,"column":38}},{"start":{"line":253,"column":42},"end":{"line":253,"column":46}}]},"16":{"line":270,"type":"cond-expr","locations":[{"start":{"line":270,"column":42},"end":{"line":270,"column":47}},{"start":{"line":270,"column":50},"end":{"line":270,"column":57}}]},"17":{"line":291,"type":"cond-expr","locations":[{"start":{"line":291,"column":42},"end":{"line":291,"column":65}},{"start":{"line":291,"column":68},"end":{"line":291,"column":75}}]},"18":{"line":307,"type":"if","locations":[{"start":{"line":307,"column":8},"end":{"line":307,"column":8}},{"start":{"line":307,"column":8},"end":{"line":307,"column":8}}]},"19":{"line":311,"type":"binary-expr","locations":[{"start":{"line":311,"column":26},"end":{"line":311,"column":36}},{"start":{"line":311,"column":40},"end":{"line":311,"column":69}},{"start":{"line":311,"column":74},"end":{"line":311,"column":83}}]},"20":{"line":321,"type":"if","locations":[{"start":{"line":321,"column":12},"end":{"line":321,"column":12}},{"start":{"line":321,"column":12},"end":{"line":321,"column":12}}]},"21":{"line":321,"type":"binary-expr","locations":[{"start":{"line":321,"column":16},"end":{"line":321,"column":32}},{"start":{"line":321,"column":37},"end":{"line":321,"column":78}}]},"22":{"line":415,"type":"binary-expr","locations":[{"start":{"line":415,"column":23},"end":{"line":415,"column":43}},{"start":{"line":415,"column":47},"end":{"line":415,"column":78}}]},"23":{"line":473,"type":"if","locations":[{"start":{"line":473,"column":8},"end":{"line":473,"column":8}},{"start":{"line":473,"column":8},"end":{"line":473,"column":8}}]},"24":{"line":479,"type":"if","locations":[{"start":{"line":479,"column":8},"end":{"line":479,"column":8}},{"start":{"line":479,"column":8},"end":{"line":479,"column":8}}]},"25":{"line":486,"type":"if","locations":[{"start":{"line":486,"column":8},"end":{"line":486,"column":8}},{"start":{"line":486,"column":8},"end":{"line":486,"column":8}}]},"26":{"line":486,"type":"binary-expr","locations":[{"start":{"line":486,"column":12},"end":{"line":486,"column":41}},{"start":{"line":486,"column":45},"end":{"line":486,"column":67}}]},"27":{"line":498,"type":"cond-expr","locations":[{"start":{"line":498,"column":25},"end":{"line":504,"column":5}},{"start":{"line":504,"column":8},"end":{"line":504,"column":22}}]},"28":{"line":501,"type":"if","locations":[{"start":{"line":501,"column":8},"end":{"line":501,"column":8}},{"start":{"line":501,"column":8},"end":{"line":501,"column":8}}]},"29":{"line":515,"type":"if","locations":[{"start":{"line":515,"column":8},"end":{"line":515,"column":8}},{"start":{"line":515,"column":8},"end":{"line":515,"column":8}}]},"30":{"line":520,"type":"if","locations":[{"start":{"line":520,"column":8},"end":{"line":520,"column":8}},{"start":{"line":520,"column":8},"end":{"line":520,"column":8}}]},"31":{"line":527,"type":"if","locations":[{"start":{"line":527,"column":8},"end":{"line":527,"column":8}},{"start":{"line":527,"column":8},"end":{"line":527,"column":8}}]},"32":{"line":542,"type":"if","locations":[{"start":{"line":542,"column":8},"end":{"line":542,"column":8}},{"start":{"line":542,"column":8},"end":{"line":542,"column":8}}]},"33":{"line":570,"type":"if","locations":[{"start":{"line":570,"column":8},"end":{"line":570,"column":8}},{"start":{"line":570,"column":8},"end":{"line":570,"column":8}}]},"34":{"line":570,"type":"binary-expr","locations":[{"start":{"line":570,"column":12},"end":{"line":570,"column":19}},{"start":{"line":570,"column":23},"end":{"line":570,"column":36}}]},"35":{"line":574,"type":"if","locations":[{"start":{"line":574,"column":8},"end":{"line":574,"column":8}},{"start":{"line":574,"column":8},"end":{"line":574,"column":8}}]},"36":{"line":581,"type":"if","locations":[{"start":{"line":581,"column":8},"end":{"line":581,"column":8}},{"start":{"line":581,"column":8},"end":{"line":581,"column":8}}]},"37":{"line":582,"type":"binary-expr","locations":[{"start":{"line":582,"column":19},"end":{"line":582,"column":25}},{"start":{"line":582,"column":29},"end":{"line":582,"column":38}}]},"38":{"line":584,"type":"if","locations":[{"start":{"line":584,"column":12},"end":{"line":584,"column":12}},{"start":{"line":584,"column":12},"end":{"line":584,"column":12}}]},"39":{"line":584,"type":"binary-expr","locations":[{"start":{"line":584,"column":16},"end":{"line":584,"column":60}},{"start":{"line":585,"column":23},"end":{"line":585,"column":61}}]},"40":{"line":600,"type":"binary-expr","locations":[{"start":{"line":600,"column":26},"end":{"line":600,"column":34}},{"start":{"line":600,"column":38},"end":{"line":600,"column":66}}]},"41":{"line":616,"type":"if","locations":[{"start":{"line":616,"column":8},"end":{"line":616,"column":8}},{"start":{"line":616,"column":8},"end":{"line":616,"column":8}}]},"42":{"line":616,"type":"binary-expr","locations":[{"start":{"line":616,"column":12},"end":{"line":616,"column":38}},{"start":{"line":616,"column":42},"end":{"line":616,"column":64}},{"start":{"line":617,"column":16},"end":{"line":617,"column":67}}]},"43":{"line":633,"type":"if","locations":[{"start":{"line":633,"column":8},"end":{"line":633,"column":8}},{"start":{"line":633,"column":8},"end":{"line":633,"column":8}}]},"44":{"line":637,"type":"if","locations":[{"start":{"line":637,"column":8},"end":{"line":637,"column":8}},{"start":{"line":637,"column":8},"end":{"line":637,"column":8}}]},"45":{"line":651,"type":"if","locations":[{"start":{"line":651,"column":8},"end":{"line":651,"column":8}},{"start":{"line":651,"column":8},"end":{"line":651,"column":8}}]},"46":{"line":651,"type":"binary-expr","locations":[{"start":{"line":651,"column":12},"end":{"line":651,"column":29}},{"start":{"line":652,"column":16},"end":{"line":652,"column":36}},{"start":{"line":653,"column":17},"end":{"line":653,"column":47}},{"start":{"line":654,"column":20},"end":{"line":654,"column":42}},{"start":{"line":655,"column":20},"end":{"line":655,"column":42}}]},"47":{"line":682,"type":"if","locations":[{"start":{"line":682,"column":8},"end":{"line":682,"column":8}},{"start":{"line":682,"column":8},"end":{"line":682,"column":8}}]},"48":{"line":709,"type":"if","locations":[{"start":{"line":709,"column":8},"end":{"line":709,"column":8}},{"start":{"line":709,"column":8},"end":{"line":709,"column":8}}]}},"code":["(function () { YUI.add('autocomplete-list', function (Y, NAME) {","","/**","Traditional autocomplete dropdown list widget, just like Mom used to make.","","@module autocomplete","@submodule autocomplete-list","**/","","/**","Traditional autocomplete dropdown list widget, just like Mom used to make.","","@class AutoCompleteList","@extends Widget","@uses AutoCompleteBase","@uses WidgetPosition","@uses WidgetPositionAlign","@constructor","@param {Object} config Configuration object.","**/","","var Lang = Y.Lang,"," Node = Y.Node,"," YArray = Y.Array,",""," // Whether or not we need an iframe shim."," useShim = Y.UA.ie && Y.UA.ie < 7,",""," // keyCode constants."," KEY_TAB = 9,",""," // String shorthand."," _CLASS_ITEM = '_CLASS_ITEM',"," _CLASS_ITEM_ACTIVE = '_CLASS_ITEM_ACTIVE',"," _CLASS_ITEM_HOVER = '_CLASS_ITEM_HOVER',"," _SELECTOR_ITEM = '_SELECTOR_ITEM',",""," ACTIVE_ITEM = 'activeItem',"," ALWAYS_SHOW_LIST = 'alwaysShowList',"," CIRCULAR = 'circular',"," HOVERED_ITEM = 'hoveredItem',"," ID = 'id',"," ITEM = 'item',"," LIST = 'list',"," RESULT = 'result',"," RESULTS = 'results',"," VISIBLE = 'visible',"," WIDTH = 'width',",""," // Event names."," EVT_SELECT = 'select',","","List = Y.Base.create('autocompleteList', Y.Widget, ["," Y.AutoCompleteBase,"," Y.WidgetPosition,"," Y.WidgetPositionAlign","], {"," // -- Prototype Properties -------------------------------------------------"," ARIA_TEMPLATE: '<div/>',"," ITEM_TEMPLATE: '<li/>',"," LIST_TEMPLATE: '<ul/>',",""," // Widget automatically attaches delegated event handlers to everything in"," // Y.Node.DOM_EVENTS, including synthetic events. Since Widget's event"," // delegation won't work for the synthetic valuechange event, and since"," // it creates a name collision between the backcompat \"valueChange\" synth"," // event alias and AutoCompleteList's \"valueChange\" event for the \"value\""," // attr, this hack is necessary in order to prevent Widget from attaching"," // valuechange handlers."," UI_EVENTS: (function () {"," var uiEvents = Y.merge(Y.Node.DOM_EVENTS);",""," delete uiEvents.valuechange;"," delete uiEvents.valueChange;",""," return uiEvents;"," }()),",""," // -- Lifecycle Prototype Methods ------------------------------------------"," initializer: function () {"," var inputNode = this.get('inputNode');",""," if (!inputNode) {"," Y.error('No inputNode specified.');"," return;"," }",""," this._inputNode = inputNode;"," this._listEvents = [];",""," // This ensures that the list is rendered inside the same parent as the"," // input node by default, which is necessary for proper ARIA support."," this.DEF_PARENT_NODE = inputNode.get('parentNode');",""," // Cache commonly used classnames and selectors for performance."," this[_CLASS_ITEM] = this.getClassName(ITEM);"," this[_CLASS_ITEM_ACTIVE] = this.getClassName(ITEM, 'active');"," this[_CLASS_ITEM_HOVER] = this.getClassName(ITEM, 'hover');"," this[_SELECTOR_ITEM] = '.' + this[_CLASS_ITEM];",""," /**"," Fires when an autocomplete suggestion is selected from the list,"," typically via a keyboard action or mouse click.",""," @event select"," @param {Node} itemNode List item node that was selected."," @param {Object} result AutoComplete result object."," @preventable _defSelectFn"," **/"," this.publish(EVT_SELECT, {"," defaultFn: this._defSelectFn"," });"," },",""," destructor: function () {"," while (this._listEvents.length) {"," this._listEvents.pop().detach();"," }",""," if (this._ariaNode) {"," this._ariaNode.remove().destroy(true);"," }"," },",""," bindUI: function () {"," this._bindInput();"," this._bindList();"," },",""," renderUI: function () {"," var ariaNode = this._createAriaNode(),"," boundingBox = this.get('boundingBox'),"," contentBox = this.get('contentBox'),"," inputNode = this._inputNode,"," listNode = this._createListNode(),"," parentNode = inputNode.get('parentNode');",""," inputNode.addClass(this.getClassName('input')).setAttrs({"," 'aria-autocomplete': LIST,"," 'aria-expanded' : false,"," 'aria-owns' : listNode.get('id')"," });",""," // ARIA node must be outside the widget or announcements won't be made"," // when the widget is hidden."," parentNode.append(ariaNode);",""," // Add an iframe shim for IE6."," if (useShim) {"," boundingBox.plug(Y.Plugin.Shim);"," }",""," this._ariaNode = ariaNode;"," this._boundingBox = boundingBox;"," this._contentBox = contentBox;"," this._listNode = listNode;"," this._parentNode = parentNode;"," },",""," syncUI: function () {"," // No need to call _syncPosition() here; the other _sync methods will"," // call it when necessary."," this._syncResults();"," this._syncVisibility();"," },",""," // -- Public Prototype Methods ---------------------------------------------",""," /**"," Hides the list, unless the `alwaysShowList` attribute is `true`.",""," @method hide"," @see show"," @chainable"," **/"," hide: function () {"," return this.get(ALWAYS_SHOW_LIST) ? this : this.set(VISIBLE, false);"," },",""," /**"," Selects the specified _itemNode_, or the current `activeItem` if _itemNode_"," is not specified.",""," @method selectItem"," @param {Node} [itemNode] Item node to select."," @param {EventFacade} [originEvent] Event that triggered the selection, if"," any."," @chainable"," **/"," selectItem: function (itemNode, originEvent) {"," if (itemNode) {"," if (!itemNode.hasClass(this[_CLASS_ITEM])) {"," return this;"," }"," } else {"," itemNode = this.get(ACTIVE_ITEM);",""," if (!itemNode) {"," return this;"," }"," }",""," this.fire(EVT_SELECT, {"," itemNode : itemNode,"," originEvent: originEvent || null,"," result : itemNode.getData(RESULT)"," });",""," return this;"," },",""," // -- Protected Prototype Methods ------------------------------------------",""," /**"," Activates the next item after the currently active item. If there is no next"," item and the `circular` attribute is `true`, focus will wrap back to the"," input node.",""," @method _activateNextItem"," @chainable"," @protected"," **/"," _activateNextItem: function () {"," var item = this.get(ACTIVE_ITEM),"," nextItem;",""," if (item) {"," nextItem = item.next(this[_SELECTOR_ITEM]) ||"," (this.get(CIRCULAR) ? null : item);"," } else {"," nextItem = this._getFirstItemNode();"," }",""," this.set(ACTIVE_ITEM, nextItem);",""," return this;"," },",""," /**"," Activates the item previous to the currently active item. If there is no"," previous item and the `circular` attribute is `true`, focus will wrap back"," to the input node.",""," @method _activatePrevItem"," @chainable"," @protected"," **/"," _activatePrevItem: function () {"," var item = this.get(ACTIVE_ITEM),"," prevItem = item ? item.previous(this[_SELECTOR_ITEM]) :"," this.get(CIRCULAR) && this._getLastItemNode();",""," this.set(ACTIVE_ITEM, prevItem || null);",""," return this;"," },",""," /**"," Appends the specified result _items_ to the list inside a new item node.",""," @method _add"," @param {Array|Node|HTMLElement|String} items Result item or array of"," result items."," @return {NodeList} Added nodes."," @protected"," **/"," _add: function (items) {"," var itemNodes = [];",""," YArray.each(Lang.isArray(items) ? items : [items], function (item) {"," itemNodes.push(this._createItemNode(item).setData(RESULT, item));"," }, this);",""," itemNodes = Y.all(itemNodes);"," this._listNode.append(itemNodes.toFrag());",""," return itemNodes;"," },",""," /**"," Updates the ARIA live region with the specified message.",""," @method _ariaSay"," @param {String} stringId String id (from the `strings` attribute) of the"," message to speak."," @param {Object} [subs] Substitutions for placeholders in the string."," @protected"," **/"," _ariaSay: function (stringId, subs) {"," var message = this.get('strings.' + stringId);"," this._ariaNode.set('text', subs ? Lang.sub(message, subs) : message);"," },",""," /**"," Binds `inputNode` events and behavior.",""," @method _bindInput"," @protected"," **/"," _bindInput: function () {"," var inputNode = this._inputNode,"," alignNode, alignWidth, tokenInput;",""," // Null align means we can auto-align. Set align to false to prevent"," // auto-alignment, or a valid alignment config to customize the"," // alignment."," if (this.get('align') === null) {"," // If this is a tokenInput, align with its bounding box."," // Otherwise, align with the inputNode. Bit of a cheat."," tokenInput = this.get('tokenInput');"," alignNode = (tokenInput && tokenInput.get('boundingBox')) || inputNode;",""," this.set('align', {"," node : alignNode,"," points: ['tl', 'bl']"," });",""," // If no width config is set, attempt to set the list's width to the"," // width of the alignment node. If the alignment node's width is"," // falsy, do nothing."," if (!this.get(WIDTH) && (alignWidth = alignNode.get('offsetWidth'))) {"," this.set(WIDTH, alignWidth);"," }"," }",""," // Attach inputNode events."," this._listEvents = this._listEvents.concat(["," inputNode.after('blur', this._afterListInputBlur, this),"," inputNode.after('focus', this._afterListInputFocus, this)"," ]);"," },",""," /**"," Binds list events.",""," @method _bindList"," @protected"," **/"," _bindList: function () {"," this._listEvents = this._listEvents.concat(["," Y.one('doc').after('click', this._afterDocClick, this),"," Y.one('win').after('windowresize', this._syncPosition, this),",""," this.after({"," mouseover: this._afterMouseOver,"," mouseout : this._afterMouseOut,",""," activeItemChange : this._afterActiveItemChange,"," alwaysShowListChange: this._afterAlwaysShowListChange,"," hoveredItemChange : this._afterHoveredItemChange,"," resultsChange : this._afterResultsChange,"," visibleChange : this._afterVisibleChange"," }),",""," this._listNode.delegate('click', this._onItemClick,"," this[_SELECTOR_ITEM], this)"," ]);"," },",""," /**"," Clears the contents of the tray.",""," @method _clear"," @protected"," **/"," _clear: function () {"," this.set(ACTIVE_ITEM, null);"," this._set(HOVERED_ITEM, null);",""," this._listNode.get('children').remove(true);"," },",""," /**"," Creates and returns an ARIA live region node.",""," @method _createAriaNode"," @return {Node} ARIA node."," @protected"," **/"," _createAriaNode: function () {"," var ariaNode = Node.create(this.ARIA_TEMPLATE);",""," return ariaNode.addClass(this.getClassName('aria')).setAttrs({"," 'aria-live': 'polite',"," role : 'status'"," });"," },",""," /**"," Creates and returns an item node with the specified _content_.",""," @method _createItemNode"," @param {Object} result Result object."," @return {Node} Item node."," @protected"," **/"," _createItemNode: function (result) {"," var itemNode = Node.create(this.ITEM_TEMPLATE);",""," return itemNode.addClass(this[_CLASS_ITEM]).setAttrs({"," id : Y.stamp(itemNode),"," role: 'option'"," }).setAttribute('data-text', result.text).append(result.display);"," },",""," /**"," Creates and returns a list node. If the `listNode` attribute is already set"," to an existing node, that node will be used.",""," @method _createListNode"," @return {Node} List node."," @protected"," **/"," _createListNode: function () {"," var listNode = this.get('listNode') || Node.create(this.LIST_TEMPLATE);",""," listNode.addClass(this.getClassName(LIST)).setAttrs({"," id : Y.stamp(listNode),"," role: 'listbox'"," });",""," this._set('listNode', listNode);"," this.get('contentBox').append(listNode);",""," return listNode;"," },",""," /**"," Gets the first item node in the list, or `null` if the list is empty.",""," @method _getFirstItemNode"," @return {Node|null}"," @protected"," **/"," _getFirstItemNode: function () {"," return this._listNode.one(this[_SELECTOR_ITEM]);"," },",""," /**"," Gets the last item node in the list, or `null` if the list is empty.",""," @method _getLastItemNode"," @return {Node|null}"," @protected"," **/"," _getLastItemNode: function () {"," return this._listNode.one(this[_SELECTOR_ITEM] + ':last-child');"," },",""," /**"," Synchronizes the result list's position and alignment.",""," @method _syncPosition"," @protected"," **/"," _syncPosition: function () {"," // Force WidgetPositionAlign to refresh its alignment."," this._syncUIPosAlign();",""," // Resize the IE6 iframe shim to match the list's dimensions."," this._syncShim();"," },",""," /**"," Synchronizes the results displayed in the list with those in the _results_"," argument, or with the `results` attribute if an argument is not provided.",""," @method _syncResults"," @param {Array} [results] Results."," @protected"," **/"," _syncResults: function (results) {"," if (!results) {"," results = this.get(RESULTS);"," }",""," this._clear();",""," if (results.length) {"," this._add(results);"," this._ariaSay('items_available');"," }",""," this._syncPosition();",""," if (this.get('activateFirstItem') && !this.get(ACTIVE_ITEM)) {"," this.set(ACTIVE_ITEM, this._getFirstItemNode());"," }"," },",""," /**"," Synchronizes the size of the iframe shim used for IE6 and lower. In other"," browsers, this method is a noop.",""," @method _syncShim"," @protected"," **/"," _syncShim: useShim ? function () {"," var shim = this._boundingBox.shim;",""," if (shim) {"," shim.sync();"," }"," } : function () {},",""," /**"," Synchronizes the visibility of the tray with the _visible_ argument, or with"," the `visible` attribute if an argument is not provided.",""," @method _syncVisibility"," @param {Boolean} [visible] Visibility."," @protected"," **/"," _syncVisibility: function (visible) {"," if (this.get(ALWAYS_SHOW_LIST)) {"," visible = true;"," this.set(VISIBLE, visible);"," }",""," if (typeof visible === 'undefined') {"," visible = this.get(VISIBLE);"," }",""," this._inputNode.set('aria-expanded', visible);"," this._boundingBox.set('aria-hidden', !visible);",""," if (visible) {"," this._syncPosition();"," } else {"," this.set(ACTIVE_ITEM, null);"," this._set(HOVERED_ITEM, null);",""," // Force a reflow to work around a glitch in IE6 and 7 where some of"," // the contents of the list will sometimes remain visible after the"," // container is hidden."," this._boundingBox.get('offsetWidth');"," }",""," // In some pages, IE7 fails to repaint the contents of the list after it"," // becomes visible. Toggling a bogus class on the body forces a repaint"," // that fixes the issue."," if (Y.UA.ie === 7) {"," // Note: We don't actually need to use ClassNameManager here. This"," // class isn't applying any actual styles; it's just frobbing the"," // body element to force a repaint. The actual class name doesn't"," // really matter."," Y.one('body')"," .addClass('yui3-ie7-sucks')"," .removeClass('yui3-ie7-sucks');"," }"," },",""," // -- Protected Event Handlers ---------------------------------------------",""," /**"," Handles `activeItemChange` events.",""," @method _afterActiveItemChange"," @param {EventFacade} e"," @protected"," **/"," _afterActiveItemChange: function (e) {"," var inputNode = this._inputNode,"," newVal = e.newVal,"," prevVal = e.prevVal,"," node;",""," // The previous item may have disappeared by the time this handler runs,"," // so we need to be careful."," if (prevVal && prevVal._node) {"," prevVal.removeClass(this[_CLASS_ITEM_ACTIVE]);"," }",""," if (newVal) {"," newVal.addClass(this[_CLASS_ITEM_ACTIVE]);"," inputNode.set('aria-activedescendant', newVal.get(ID));"," } else {"," inputNode.removeAttribute('aria-activedescendant');"," }",""," if (this.get('scrollIntoView')) {"," node = newVal || inputNode;",""," if (!node.inRegion(Y.DOM.viewportRegion(), true)"," || !node.inRegion(this._contentBox, true)) {",""," node.scrollIntoView();"," }"," }"," },",""," /**"," Handles `alwaysShowListChange` events.",""," @method _afterAlwaysShowListChange"," @param {EventFacade} e"," @protected"," **/"," _afterAlwaysShowListChange: function (e) {"," this.set(VISIBLE, e.newVal || this.get(RESULTS).length > 0);"," },",""," /**"," Handles click events on the document. If the click is outside both the"," input node and the bounding box, the list will be hidden.",""," @method _afterDocClick"," @param {EventFacade} e"," @protected"," @since 3.5.0"," **/"," _afterDocClick: function (e) {"," var boundingBox = this._boundingBox,"," target = e.target;",""," if (target !== this._inputNode && target !== boundingBox &&"," !target.ancestor('#' + boundingBox.get('id'), true)){"," this.hide();"," }"," },",""," /**"," Handles `hoveredItemChange` events.",""," @method _afterHoveredItemChange"," @param {EventFacade} e"," @protected"," **/"," _afterHoveredItemChange: function (e) {"," var newVal = e.newVal,"," prevVal = e.prevVal;",""," if (prevVal) {"," prevVal.removeClass(this[_CLASS_ITEM_HOVER]);"," }",""," if (newVal) {"," newVal.addClass(this[_CLASS_ITEM_HOVER]);"," }"," },",""," /**"," Handles `inputNode` blur events.",""," @method _afterListInputBlur"," @protected"," **/"," _afterListInputBlur: function () {"," this._listInputFocused = false;",""," if (this.get(VISIBLE) &&"," !this._mouseOverList &&"," (this._lastInputKey !== KEY_TAB ||"," !this.get('tabSelect') ||"," !this.get(ACTIVE_ITEM))) {"," this.hide();"," }"," },",""," /**"," Handles `inputNode` focus events.",""," @method _afterListInputFocus"," @protected"," **/"," _afterListInputFocus: function () {"," this._listInputFocused = true;"," },",""," /**"," Handles `mouseover` events.",""," @method _afterMouseOver"," @param {EventFacade} e"," @protected"," **/"," _afterMouseOver: function (e) {"," var itemNode = e.domEvent.target.ancestor(this[_SELECTOR_ITEM], true);",""," this._mouseOverList = true;",""," if (itemNode) {"," this._set(HOVERED_ITEM, itemNode);"," }"," },",""," /**"," Handles `mouseout` events.",""," @method _afterMouseOut"," @param {EventFacade} e"," @protected"," **/"," _afterMouseOut: function () {"," this._mouseOverList = false;"," this._set(HOVERED_ITEM, null);"," },",""," /**"," Handles `resultsChange` events.",""," @method _afterResultsChange"," @param {EventFacade} e"," @protected"," **/"," _afterResultsChange: function (e) {"," this._syncResults(e.newVal);",""," if (!this.get(ALWAYS_SHOW_LIST)) {"," this.set(VISIBLE, !!e.newVal.length);"," }"," },",""," /**"," Handles `visibleChange` events.",""," @method _afterVisibleChange"," @param {EventFacade} e"," @protected"," **/"," _afterVisibleChange: function (e) {"," this._syncVisibility(!!e.newVal);"," },",""," /**"," Delegated event handler for item `click` events.",""," @method _onItemClick"," @param {EventFacade} e"," @protected"," **/"," _onItemClick: function (e) {"," var itemNode = e.currentTarget;",""," this.set(ACTIVE_ITEM, itemNode);"," this.selectItem(itemNode, e);"," },",""," // -- Protected Default Event Handlers -------------------------------------",""," /**"," Default `select` event handler.",""," @method _defSelectFn"," @param {EventFacade} e"," @protected"," **/"," _defSelectFn: function (e) {"," var text = e.result.text;",""," // TODO: support typeahead completion, etc."," this._inputNode.focus();"," this._updateValue(text);"," this._ariaSay('item_selected', {item: text});"," this.hide();"," }","}, {"," ATTRS: {"," /**"," If `true`, the first item in the list will be activated by default when"," the list is initially displayed and when results change.",""," @attribute activateFirstItem"," @type Boolean"," @default false"," **/"," activateFirstItem: {"," value: false"," },",""," /**"," Item that's currently active, if any. When the user presses enter, this"," is the item that will be selected.",""," @attribute activeItem"," @type Node"," **/"," activeItem: {"," setter: Y.one,"," value: null"," },",""," /**"," If `true`, the list will remain visible even when there are no results"," to display.",""," @attribute alwaysShowList"," @type Boolean"," @default false"," **/"," alwaysShowList: {"," value: false"," },",""," /**"," If `true`, keyboard navigation will wrap around to the opposite end of"," the list when navigating past the first or last item.",""," @attribute circular"," @type Boolean"," @default true"," **/"," circular: {"," value: true"," },",""," /**"," Item currently being hovered over by the mouse, if any.",""," @attribute hoveredItem"," @type Node|null"," @readOnly"," **/"," hoveredItem: {"," readOnly: true,"," value: null"," },",""," /**"," Node that will contain result items.",""," @attribute listNode"," @type Node|null"," @initOnly"," **/"," listNode: {"," writeOnce: 'initOnly',"," value: null"," },",""," /**"," If `true`, the viewport will be scrolled to ensure that the active list"," item is visible when necessary.",""," @attribute scrollIntoView"," @type Boolean"," @default false"," **/"," scrollIntoView: {"," value: false"," },",""," /**"," Translatable strings used by the AutoCompleteList widget.",""," @attribute strings"," @type Object"," **/"," strings: {"," valueFn: function () {"," return Y.Intl.get('autocomplete-list');"," }"," },",""," /**"," If `true`, pressing the tab key while the list is visible will select"," the active item, if any.",""," @attribute tabSelect"," @type Boolean"," @default true"," **/"," tabSelect: {"," value: true"," },",""," // The \"visible\" attribute is documented in Widget."," visible: {"," value: false"," }"," },",""," CSS_PREFIX: Y.ClassNameManager.getClassName('aclist')","});","","Y.AutoCompleteList = List;","","/**","Alias for <a href=\"AutoCompleteList.html\">`AutoCompleteList`</a>. See that class","for API docs.","","@class AutoComplete","**/","","Y.AutoComplete = List;","","","}, '3.15.0', {"," \"lang\": ["," \"en\","," \"es\","," \"hu\","," \"it\""," ],"," \"requires\": ["," \"autocomplete-base\","," \"event-resize\","," \"node-screen\","," \"selector-css3\","," \"shim-plugin\","," \"widget\","," \"widget-position\","," \"widget-position-align\""," ],"," \"skinnable\": true","});","","}());"]}; } var __cov_phGEYvstTwuNZzNKUS0nWg = __coverage__['build/autocomplete-list/autocomplete-list.js']; __cov_phGEYvstTwuNZzNKUS0nWg.s['1']++;YUI.add('autocomplete-list',function(Y,NAME){__cov_phGEYvstTwuNZzNKUS0nWg.f['1']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['2']++;var Lang=Y.Lang,Node=Y.Node,YArray=Y.Array,useShim=(__cov_phGEYvstTwuNZzNKUS0nWg.b['1'][0]++,Y.UA.ie)&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['1'][1]++,Y.UA.ie<7),KEY_TAB=9,_CLASS_ITEM='_CLASS_ITEM',_CLASS_ITEM_ACTIVE='_CLASS_ITEM_ACTIVE',_CLASS_ITEM_HOVER='_CLASS_ITEM_HOVER',_SELECTOR_ITEM='_SELECTOR_ITEM',ACTIVE_ITEM='activeItem',ALWAYS_SHOW_LIST='alwaysShowList',CIRCULAR='circular',HOVERED_ITEM='hoveredItem',ID='id',ITEM='item',LIST='list',RESULT='result',RESULTS='results',VISIBLE='visible',WIDTH='width',EVT_SELECT='select',List=Y.Base.create('autocompleteList',Y.Widget,[Y.AutoCompleteBase,Y.WidgetPosition,Y.WidgetPositionAlign],{ARIA_TEMPLATE:'<div/>',ITEM_TEMPLATE:'<li/>',LIST_TEMPLATE:'<ul/>',UI_EVENTS:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['2']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['3']++;var uiEvents=Y.merge(Y.Node.DOM_EVENTS);__cov_phGEYvstTwuNZzNKUS0nWg.s['4']++;delete uiEvents.valuechange;__cov_phGEYvstTwuNZzNKUS0nWg.s['5']++;delete uiEvents.valueChange;__cov_phGEYvstTwuNZzNKUS0nWg.s['6']++;return uiEvents;}(),initializer:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['3']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['7']++;var inputNode=this.get('inputNode');__cov_phGEYvstTwuNZzNKUS0nWg.s['8']++;if(!inputNode){__cov_phGEYvstTwuNZzNKUS0nWg.b['2'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['9']++;Y.error('No inputNode specified.');__cov_phGEYvstTwuNZzNKUS0nWg.s['10']++;return;}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['2'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['11']++;this._inputNode=inputNode;__cov_phGEYvstTwuNZzNKUS0nWg.s['12']++;this._listEvents=[];__cov_phGEYvstTwuNZzNKUS0nWg.s['13']++;this.DEF_PARENT_NODE=inputNode.get('parentNode');__cov_phGEYvstTwuNZzNKUS0nWg.s['14']++;this[_CLASS_ITEM]=this.getClassName(ITEM);__cov_phGEYvstTwuNZzNKUS0nWg.s['15']++;this[_CLASS_ITEM_ACTIVE]=this.getClassName(ITEM,'active');__cov_phGEYvstTwuNZzNKUS0nWg.s['16']++;this[_CLASS_ITEM_HOVER]=this.getClassName(ITEM,'hover');__cov_phGEYvstTwuNZzNKUS0nWg.s['17']++;this[_SELECTOR_ITEM]='.'+this[_CLASS_ITEM];__cov_phGEYvstTwuNZzNKUS0nWg.s['18']++;this.publish(EVT_SELECT,{defaultFn:this._defSelectFn});},destructor:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['4']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['19']++;while(this._listEvents.length){__cov_phGEYvstTwuNZzNKUS0nWg.s['20']++;this._listEvents.pop().detach();}__cov_phGEYvstTwuNZzNKUS0nWg.s['21']++;if(this._ariaNode){__cov_phGEYvstTwuNZzNKUS0nWg.b['3'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['22']++;this._ariaNode.remove().destroy(true);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['3'][1]++;}},bindUI:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['5']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['23']++;this._bindInput();__cov_phGEYvstTwuNZzNKUS0nWg.s['24']++;this._bindList();},renderUI:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['6']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['25']++;var ariaNode=this._createAriaNode(),boundingBox=this.get('boundingBox'),contentBox=this.get('contentBox'),inputNode=this._inputNode,listNode=this._createListNode(),parentNode=inputNode.get('parentNode');__cov_phGEYvstTwuNZzNKUS0nWg.s['26']++;inputNode.addClass(this.getClassName('input')).setAttrs({'aria-autocomplete':LIST,'aria-expanded':false,'aria-owns':listNode.get('id')});__cov_phGEYvstTwuNZzNKUS0nWg.s['27']++;parentNode.append(ariaNode);__cov_phGEYvstTwuNZzNKUS0nWg.s['28']++;if(useShim){__cov_phGEYvstTwuNZzNKUS0nWg.b['4'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['29']++;boundingBox.plug(Y.Plugin.Shim);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['4'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['30']++;this._ariaNode=ariaNode;__cov_phGEYvstTwuNZzNKUS0nWg.s['31']++;this._boundingBox=boundingBox;__cov_phGEYvstTwuNZzNKUS0nWg.s['32']++;this._contentBox=contentBox;__cov_phGEYvstTwuNZzNKUS0nWg.s['33']++;this._listNode=listNode;__cov_phGEYvstTwuNZzNKUS0nWg.s['34']++;this._parentNode=parentNode;},syncUI:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['7']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['35']++;this._syncResults();__cov_phGEYvstTwuNZzNKUS0nWg.s['36']++;this._syncVisibility();},hide:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['8']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['37']++;return this.get(ALWAYS_SHOW_LIST)?(__cov_phGEYvstTwuNZzNKUS0nWg.b['5'][0]++,this):(__cov_phGEYvstTwuNZzNKUS0nWg.b['5'][1]++,this.set(VISIBLE,false));},selectItem:function(itemNode,originEvent){__cov_phGEYvstTwuNZzNKUS0nWg.f['9']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['38']++;if(itemNode){__cov_phGEYvstTwuNZzNKUS0nWg.b['6'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['39']++;if(!itemNode.hasClass(this[_CLASS_ITEM])){__cov_phGEYvstTwuNZzNKUS0nWg.b['7'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['40']++;return this;}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['7'][1]++;}}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['6'][1]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['41']++;itemNode=this.get(ACTIVE_ITEM);__cov_phGEYvstTwuNZzNKUS0nWg.s['42']++;if(!itemNode){__cov_phGEYvstTwuNZzNKUS0nWg.b['8'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['43']++;return this;}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['8'][1]++;}}__cov_phGEYvstTwuNZzNKUS0nWg.s['44']++;this.fire(EVT_SELECT,{itemNode:itemNode,originEvent:(__cov_phGEYvstTwuNZzNKUS0nWg.b['9'][0]++,originEvent)||(__cov_phGEYvstTwuNZzNKUS0nWg.b['9'][1]++,null),result:itemNode.getData(RESULT)});__cov_phGEYvstTwuNZzNKUS0nWg.s['45']++;return this;},_activateNextItem:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['10']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['46']++;var item=this.get(ACTIVE_ITEM),nextItem;__cov_phGEYvstTwuNZzNKUS0nWg.s['47']++;if(item){__cov_phGEYvstTwuNZzNKUS0nWg.b['10'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['48']++;nextItem=(__cov_phGEYvstTwuNZzNKUS0nWg.b['11'][0]++,item.next(this[_SELECTOR_ITEM]))||(__cov_phGEYvstTwuNZzNKUS0nWg.b['11'][1]++,this.get(CIRCULAR)?(__cov_phGEYvstTwuNZzNKUS0nWg.b['12'][0]++,null):(__cov_phGEYvstTwuNZzNKUS0nWg.b['12'][1]++,item));}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['10'][1]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['49']++;nextItem=this._getFirstItemNode();}__cov_phGEYvstTwuNZzNKUS0nWg.s['50']++;this.set(ACTIVE_ITEM,nextItem);__cov_phGEYvstTwuNZzNKUS0nWg.s['51']++;return this;},_activatePrevItem:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['11']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['52']++;var item=this.get(ACTIVE_ITEM),prevItem=item?(__cov_phGEYvstTwuNZzNKUS0nWg.b['13'][0]++,item.previous(this[_SELECTOR_ITEM])):(__cov_phGEYvstTwuNZzNKUS0nWg.b['13'][1]++,(__cov_phGEYvstTwuNZzNKUS0nWg.b['14'][0]++,this.get(CIRCULAR))&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['14'][1]++,this._getLastItemNode()));__cov_phGEYvstTwuNZzNKUS0nWg.s['53']++;this.set(ACTIVE_ITEM,(__cov_phGEYvstTwuNZzNKUS0nWg.b['15'][0]++,prevItem)||(__cov_phGEYvstTwuNZzNKUS0nWg.b['15'][1]++,null));__cov_phGEYvstTwuNZzNKUS0nWg.s['54']++;return this;},_add:function(items){__cov_phGEYvstTwuNZzNKUS0nWg.f['12']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['55']++;var itemNodes=[];__cov_phGEYvstTwuNZzNKUS0nWg.s['56']++;YArray.each(Lang.isArray(items)?(__cov_phGEYvstTwuNZzNKUS0nWg.b['16'][0]++,items):(__cov_phGEYvstTwuNZzNKUS0nWg.b['16'][1]++,[items]),function(item){__cov_phGEYvstTwuNZzNKUS0nWg.f['13']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['57']++;itemNodes.push(this._createItemNode(item).setData(RESULT,item));},this);__cov_phGEYvstTwuNZzNKUS0nWg.s['58']++;itemNodes=Y.all(itemNodes);__cov_phGEYvstTwuNZzNKUS0nWg.s['59']++;this._listNode.append(itemNodes.toFrag());__cov_phGEYvstTwuNZzNKUS0nWg.s['60']++;return itemNodes;},_ariaSay:function(stringId,subs){__cov_phGEYvstTwuNZzNKUS0nWg.f['14']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['61']++;var message=this.get('strings.'+stringId);__cov_phGEYvstTwuNZzNKUS0nWg.s['62']++;this._ariaNode.set('text',subs?(__cov_phGEYvstTwuNZzNKUS0nWg.b['17'][0]++,Lang.sub(message,subs)):(__cov_phGEYvstTwuNZzNKUS0nWg.b['17'][1]++,message));},_bindInput:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['15']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['63']++;var inputNode=this._inputNode,alignNode,alignWidth,tokenInput;__cov_phGEYvstTwuNZzNKUS0nWg.s['64']++;if(this.get('align')===null){__cov_phGEYvstTwuNZzNKUS0nWg.b['18'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['65']++;tokenInput=this.get('tokenInput');__cov_phGEYvstTwuNZzNKUS0nWg.s['66']++;alignNode=(__cov_phGEYvstTwuNZzNKUS0nWg.b['19'][0]++,tokenInput)&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['19'][1]++,tokenInput.get('boundingBox'))||(__cov_phGEYvstTwuNZzNKUS0nWg.b['19'][2]++,inputNode);__cov_phGEYvstTwuNZzNKUS0nWg.s['67']++;this.set('align',{node:alignNode,points:['tl','bl']});__cov_phGEYvstTwuNZzNKUS0nWg.s['68']++;if((__cov_phGEYvstTwuNZzNKUS0nWg.b['21'][0]++,!this.get(WIDTH))&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['21'][1]++,alignWidth=alignNode.get('offsetWidth'))){__cov_phGEYvstTwuNZzNKUS0nWg.b['20'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['69']++;this.set(WIDTH,alignWidth);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['20'][1]++;}}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['18'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['70']++;this._listEvents=this._listEvents.concat([inputNode.after('blur',this._afterListInputBlur,this),inputNode.after('focus',this._afterListInputFocus,this)]);},_bindList:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['16']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['71']++;this._listEvents=this._listEvents.concat([Y.one('doc').after('click',this._afterDocClick,this),Y.one('win').after('windowresize',this._syncPosition,this),this.after({mouseover:this._afterMouseOver,mouseout:this._afterMouseOut,activeItemChange:this._afterActiveItemChange,alwaysShowListChange:this._afterAlwaysShowListChange,hoveredItemChange:this._afterHoveredItemChange,resultsChange:this._afterResultsChange,visibleChange:this._afterVisibleChange}),this._listNode.delegate('click',this._onItemClick,this[_SELECTOR_ITEM],this)]);},_clear:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['17']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['72']++;this.set(ACTIVE_ITEM,null);__cov_phGEYvstTwuNZzNKUS0nWg.s['73']++;this._set(HOVERED_ITEM,null);__cov_phGEYvstTwuNZzNKUS0nWg.s['74']++;this._listNode.get('children').remove(true);},_createAriaNode:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['18']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['75']++;var ariaNode=Node.create(this.ARIA_TEMPLATE);__cov_phGEYvstTwuNZzNKUS0nWg.s['76']++;return ariaNode.addClass(this.getClassName('aria')).setAttrs({'aria-live':'polite',role:'status'});},_createItemNode:function(result){__cov_phGEYvstTwuNZzNKUS0nWg.f['19']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['77']++;var itemNode=Node.create(this.ITEM_TEMPLATE);__cov_phGEYvstTwuNZzNKUS0nWg.s['78']++;return itemNode.addClass(this[_CLASS_ITEM]).setAttrs({id:Y.stamp(itemNode),role:'option'}).setAttribute('data-text',result.text).append(result.display);},_createListNode:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['20']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['79']++;var listNode=(__cov_phGEYvstTwuNZzNKUS0nWg.b['22'][0]++,this.get('listNode'))||(__cov_phGEYvstTwuNZzNKUS0nWg.b['22'][1]++,Node.create(this.LIST_TEMPLATE));__cov_phGEYvstTwuNZzNKUS0nWg.s['80']++;listNode.addClass(this.getClassName(LIST)).setAttrs({id:Y.stamp(listNode),role:'listbox'});__cov_phGEYvstTwuNZzNKUS0nWg.s['81']++;this._set('listNode',listNode);__cov_phGEYvstTwuNZzNKUS0nWg.s['82']++;this.get('contentBox').append(listNode);__cov_phGEYvstTwuNZzNKUS0nWg.s['83']++;return listNode;},_getFirstItemNode:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['21']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['84']++;return this._listNode.one(this[_SELECTOR_ITEM]);},_getLastItemNode:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['22']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['85']++;return this._listNode.one(this[_SELECTOR_ITEM]+':last-child');},_syncPosition:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['23']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['86']++;this._syncUIPosAlign();__cov_phGEYvstTwuNZzNKUS0nWg.s['87']++;this._syncShim();},_syncResults:function(results){__cov_phGEYvstTwuNZzNKUS0nWg.f['24']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['88']++;if(!results){__cov_phGEYvstTwuNZzNKUS0nWg.b['23'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['89']++;results=this.get(RESULTS);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['23'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['90']++;this._clear();__cov_phGEYvstTwuNZzNKUS0nWg.s['91']++;if(results.length){__cov_phGEYvstTwuNZzNKUS0nWg.b['24'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['92']++;this._add(results);__cov_phGEYvstTwuNZzNKUS0nWg.s['93']++;this._ariaSay('items_available');}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['24'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['94']++;this._syncPosition();__cov_phGEYvstTwuNZzNKUS0nWg.s['95']++;if((__cov_phGEYvstTwuNZzNKUS0nWg.b['26'][0]++,this.get('activateFirstItem'))&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['26'][1]++,!this.get(ACTIVE_ITEM))){__cov_phGEYvstTwuNZzNKUS0nWg.b['25'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['96']++;this.set(ACTIVE_ITEM,this._getFirstItemNode());}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['25'][1]++;}},_syncShim:useShim?(__cov_phGEYvstTwuNZzNKUS0nWg.b['27'][0]++,function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['25']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['97']++;var shim=this._boundingBox.shim;__cov_phGEYvstTwuNZzNKUS0nWg.s['98']++;if(shim){__cov_phGEYvstTwuNZzNKUS0nWg.b['28'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['99']++;shim.sync();}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['28'][1]++;}}):(__cov_phGEYvstTwuNZzNKUS0nWg.b['27'][1]++,function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['26']++;}),_syncVisibility:function(visible){__cov_phGEYvstTwuNZzNKUS0nWg.f['27']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['100']++;if(this.get(ALWAYS_SHOW_LIST)){__cov_phGEYvstTwuNZzNKUS0nWg.b['29'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['101']++;visible=true;__cov_phGEYvstTwuNZzNKUS0nWg.s['102']++;this.set(VISIBLE,visible);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['29'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['103']++;if(typeof visible==='undefined'){__cov_phGEYvstTwuNZzNKUS0nWg.b['30'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['104']++;visible=this.get(VISIBLE);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['30'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['105']++;this._inputNode.set('aria-expanded',visible);__cov_phGEYvstTwuNZzNKUS0nWg.s['106']++;this._boundingBox.set('aria-hidden',!visible);__cov_phGEYvstTwuNZzNKUS0nWg.s['107']++;if(visible){__cov_phGEYvstTwuNZzNKUS0nWg.b['31'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['108']++;this._syncPosition();}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['31'][1]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['109']++;this.set(ACTIVE_ITEM,null);__cov_phGEYvstTwuNZzNKUS0nWg.s['110']++;this._set(HOVERED_ITEM,null);__cov_phGEYvstTwuNZzNKUS0nWg.s['111']++;this._boundingBox.get('offsetWidth');}__cov_phGEYvstTwuNZzNKUS0nWg.s['112']++;if(Y.UA.ie===7){__cov_phGEYvstTwuNZzNKUS0nWg.b['32'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['113']++;Y.one('body').addClass('yui3-ie7-sucks').removeClass('yui3-ie7-sucks');}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['32'][1]++;}},_afterActiveItemChange:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['28']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['114']++;var inputNode=this._inputNode,newVal=e.newVal,prevVal=e.prevVal,node;__cov_phGEYvstTwuNZzNKUS0nWg.s['115']++;if((__cov_phGEYvstTwuNZzNKUS0nWg.b['34'][0]++,prevVal)&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['34'][1]++,prevVal._node)){__cov_phGEYvstTwuNZzNKUS0nWg.b['33'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['116']++;prevVal.removeClass(this[_CLASS_ITEM_ACTIVE]);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['33'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['117']++;if(newVal){__cov_phGEYvstTwuNZzNKUS0nWg.b['35'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['118']++;newVal.addClass(this[_CLASS_ITEM_ACTIVE]);__cov_phGEYvstTwuNZzNKUS0nWg.s['119']++;inputNode.set('aria-activedescendant',newVal.get(ID));}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['35'][1]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['120']++;inputNode.removeAttribute('aria-activedescendant');}__cov_phGEYvstTwuNZzNKUS0nWg.s['121']++;if(this.get('scrollIntoView')){__cov_phGEYvstTwuNZzNKUS0nWg.b['36'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['122']++;node=(__cov_phGEYvstTwuNZzNKUS0nWg.b['37'][0]++,newVal)||(__cov_phGEYvstTwuNZzNKUS0nWg.b['37'][1]++,inputNode);__cov_phGEYvstTwuNZzNKUS0nWg.s['123']++;if((__cov_phGEYvstTwuNZzNKUS0nWg.b['39'][0]++,!node.inRegion(Y.DOM.viewportRegion(),true))||(__cov_phGEYvstTwuNZzNKUS0nWg.b['39'][1]++,!node.inRegion(this._contentBox,true))){__cov_phGEYvstTwuNZzNKUS0nWg.b['38'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['124']++;node.scrollIntoView();}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['38'][1]++;}}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['36'][1]++;}},_afterAlwaysShowListChange:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['29']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['125']++;this.set(VISIBLE,(__cov_phGEYvstTwuNZzNKUS0nWg.b['40'][0]++,e.newVal)||(__cov_phGEYvstTwuNZzNKUS0nWg.b['40'][1]++,this.get(RESULTS).length>0));},_afterDocClick:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['30']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['126']++;var boundingBox=this._boundingBox,target=e.target;__cov_phGEYvstTwuNZzNKUS0nWg.s['127']++;if((__cov_phGEYvstTwuNZzNKUS0nWg.b['42'][0]++,target!==this._inputNode)&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['42'][1]++,target!==boundingBox)&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['42'][2]++,!target.ancestor('#'+boundingBox.get('id'),true))){__cov_phGEYvstTwuNZzNKUS0nWg.b['41'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['128']++;this.hide();}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['41'][1]++;}},_afterHoveredItemChange:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['31']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['129']++;var newVal=e.newVal,prevVal=e.prevVal;__cov_phGEYvstTwuNZzNKUS0nWg.s['130']++;if(prevVal){__cov_phGEYvstTwuNZzNKUS0nWg.b['43'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['131']++;prevVal.removeClass(this[_CLASS_ITEM_HOVER]);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['43'][1]++;}__cov_phGEYvstTwuNZzNKUS0nWg.s['132']++;if(newVal){__cov_phGEYvstTwuNZzNKUS0nWg.b['44'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['133']++;newVal.addClass(this[_CLASS_ITEM_HOVER]);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['44'][1]++;}},_afterListInputBlur:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['32']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['134']++;this._listInputFocused=false;__cov_phGEYvstTwuNZzNKUS0nWg.s['135']++;if((__cov_phGEYvstTwuNZzNKUS0nWg.b['46'][0]++,this.get(VISIBLE))&&(__cov_phGEYvstTwuNZzNKUS0nWg.b['46'][1]++,!this._mouseOverList)&&((__cov_phGEYvstTwuNZzNKUS0nWg.b['46'][2]++,this._lastInputKey!==KEY_TAB)||(__cov_phGEYvstTwuNZzNKUS0nWg.b['46'][3]++,!this.get('tabSelect'))||(__cov_phGEYvstTwuNZzNKUS0nWg.b['46'][4]++,!this.get(ACTIVE_ITEM)))){__cov_phGEYvstTwuNZzNKUS0nWg.b['45'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['136']++;this.hide();}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['45'][1]++;}},_afterListInputFocus:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['33']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['137']++;this._listInputFocused=true;},_afterMouseOver:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['34']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['138']++;var itemNode=e.domEvent.target.ancestor(this[_SELECTOR_ITEM],true);__cov_phGEYvstTwuNZzNKUS0nWg.s['139']++;this._mouseOverList=true;__cov_phGEYvstTwuNZzNKUS0nWg.s['140']++;if(itemNode){__cov_phGEYvstTwuNZzNKUS0nWg.b['47'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['141']++;this._set(HOVERED_ITEM,itemNode);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['47'][1]++;}},_afterMouseOut:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['35']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['142']++;this._mouseOverList=false;__cov_phGEYvstTwuNZzNKUS0nWg.s['143']++;this._set(HOVERED_ITEM,null);},_afterResultsChange:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['36']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['144']++;this._syncResults(e.newVal);__cov_phGEYvstTwuNZzNKUS0nWg.s['145']++;if(!this.get(ALWAYS_SHOW_LIST)){__cov_phGEYvstTwuNZzNKUS0nWg.b['48'][0]++;__cov_phGEYvstTwuNZzNKUS0nWg.s['146']++;this.set(VISIBLE,!!e.newVal.length);}else{__cov_phGEYvstTwuNZzNKUS0nWg.b['48'][1]++;}},_afterVisibleChange:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['37']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['147']++;this._syncVisibility(!!e.newVal);},_onItemClick:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['38']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['148']++;var itemNode=e.currentTarget;__cov_phGEYvstTwuNZzNKUS0nWg.s['149']++;this.set(ACTIVE_ITEM,itemNode);__cov_phGEYvstTwuNZzNKUS0nWg.s['150']++;this.selectItem(itemNode,e);},_defSelectFn:function(e){__cov_phGEYvstTwuNZzNKUS0nWg.f['39']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['151']++;var text=e.result.text;__cov_phGEYvstTwuNZzNKUS0nWg.s['152']++;this._inputNode.focus();__cov_phGEYvstTwuNZzNKUS0nWg.s['153']++;this._updateValue(text);__cov_phGEYvstTwuNZzNKUS0nWg.s['154']++;this._ariaSay('item_selected',{item:text});__cov_phGEYvstTwuNZzNKUS0nWg.s['155']++;this.hide();}},{ATTRS:{activateFirstItem:{value:false},activeItem:{setter:Y.one,value:null},alwaysShowList:{value:false},circular:{value:true},hoveredItem:{readOnly:true,value:null},listNode:{writeOnce:'initOnly',value:null},scrollIntoView:{value:false},strings:{valueFn:function(){__cov_phGEYvstTwuNZzNKUS0nWg.f['40']++;__cov_phGEYvstTwuNZzNKUS0nWg.s['156']++;return Y.Intl.get('autocomplete-list');}},tabSelect:{value:true},visible:{value:false}},CSS_PREFIX:Y.ClassNameManager.getClassName('aclist')});__cov_phGEYvstTwuNZzNKUS0nWg.s['157']++;Y.AutoCompleteList=List;__cov_phGEYvstTwuNZzNKUS0nWg.s['158']++;Y.AutoComplete=List;},'3.15.0',{'lang':['en','es','hu','it'],'requires':['autocomplete-base','event-resize','node-screen','selector-css3','shim-plugin','widget','widget-position','widget-position-align'],'skinnable':true});
5,308.285714
52,820
0.610851
3b0be50732b53cb02872d743a9f4e1d628f00ae2
94
js
JavaScript
src/unpoly/classes/layer/cover.js
apollo13/unpoly
98517c14b6f3c20382d36209bb62ed76ed791b98
[ "MIT" ]
1,129
2016-03-14T12:38:59.000Z
2022-03-29T23:42:00.000Z
src/unpoly/classes/layer/cover.js
apollo13/unpoly
98517c14b6f3c20382d36209bb62ed76ed791b98
[ "MIT" ]
219
2016-06-09T13:46:34.000Z
2022-03-24T13:50:49.000Z
src/unpoly/classes/layer/cover.js
apollo13/unpoly
98517c14b6f3c20382d36209bb62ed76ed791b98
[ "MIT" ]
54
2016-04-11T15:50:19.000Z
2022-03-27T10:23:20.000Z
up.Layer.Cover = class Cover extends up.Layer.OverlayWithViewport { static mode = 'cover' }
23.5
67
0.744681
3b0c19dea64f0fc93b729b26aff955b90e326c9c
575
js
JavaScript
src/components/Workout/ExerciseElement.js
kcrites/trainingtracker
ef134ce3b14847c9e77596b00481d17936a6e3d9
[ "MIT" ]
null
null
null
src/components/Workout/ExerciseElement.js
kcrites/trainingtracker
ef134ce3b14847c9e77596b00481d17936a6e3d9
[ "MIT" ]
6
2020-04-06T07:31:13.000Z
2022-02-28T01:42:51.000Z
src/components/Workout/ExerciseElement.js
kcrites/trainingtracker
ef134ce3b14847c9e77596b00481d17936a6e3d9
[ "MIT" ]
null
null
null
import React from 'react'; import Groups from './Groups'; const ExerciseElement = (props) => { const { number, groupArray } = props; let exerciseNumber = 'exercise' + number; return ( <tr key={number.toString()}> <td><label>Exercise {number}</label></td> <td><input className='f4 pa2 w-250 center' name={exerciseNumber} type='text' onChange={props.handleEFunction} /></td> <td key={number}><Groups number={number} groupArray={groupArray} handleFunction={props.handleGFunction}/></td> </tr> ) }; export default ExerciseElement;
30.263158
125
0.65913
3b0c1c68fe04cd0429c71898916389cd9d90eeab
976
js
JavaScript
vendor/gViz/helpers/text.js
eubr-bigsea/lemonade-datavis
7a49d350d8d3bfe3dcd97e3b0803807da967a2df
[ "MIT" ]
1
2018-06-05T19:41:53.000Z
2018-06-05T19:41:53.000Z
vendor/gViz/helpers/text.js
eubr-bigsea/lemonade-datavis
7a49d350d8d3bfe3dcd97e3b0803807da967a2df
[ "MIT" ]
null
null
null
vendor/gViz/helpers/text.js
eubr-bigsea/lemonade-datavis
7a49d350d8d3bfe3dcd97e3b0803807da967a2df
[ "MIT" ]
1
2018-05-02T20:38:26.000Z
2018-05-02T20:38:26.000Z
"use strict"; // Create date helper main object if (!gViz.helpers.text) { gViz.helpers.text = {}; } // Get size gViz.helpers.text.getSize = function (text) { var t = d3.select('body').append('span') .style('font-size', '12px') .style('font-weight', 'bold') .style('white-space', 'nowrap') .html(text); var width = t.node().getBoundingClientRect().width; t.remove(); return width + 10; } // Get string width gViz.helpers.text.getBBox = function (container) { var text = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "bla"; var fontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12; var weight = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'normal'; var o = container.append("text").style("font-weight", weight).style("font-size", fontSize + "px").style("visibility", "hidden !important").text(text); var bbox = o.node().getBBox(); o.remove(); return bbox; };
31.483871
152
0.640369
3b0cac1444013209ce959640329b4a557db52ed1
541
js
JavaScript
src/App.js
labra/rdfshape-client
1ce8e5c27566734ef8672d549e0bdfc09af9fb3e
[ "MIT" ]
null
null
null
src/App.js
labra/rdfshape-client
1ce8e5c27566734ef8672d549e0bdfc09af9fb3e
[ "MIT" ]
null
null
null
src/App.js
labra/rdfshape-client
1ce8e5c27566734ef8672d549e0bdfc09af9fb3e
[ "MIT" ]
1
2019-09-03T07:03:05.000Z
2019-09-03T07:03:05.000Z
import React, { useState } from "react"; import Container from "react-bootstrap/Container"; import "./App.css"; import { initialApplicationContext } from "./context/ApplicationContext"; import ApplicationProvider from "./context/ApplicationProvider"; import Routes from "./Routes.js"; function App() { const [appContext, setAppContext] = useState(initialApplicationContext); return ( <Container fluid={true}> <ApplicationProvider> <Routes /> </ApplicationProvider> </Container> ); } export default App;
24.590909
74
0.713494
3b0ce7ef5eed90c4b4a7704496cbe93efe5f595f
2,235
js
JavaScript
src/components/Layouts/Mentor/Tasks/TaskTable.js
covernal/EndorsseWebApp
be185b55b02337197859662d92a2886ea3b1db41
[ "MIT" ]
null
null
null
src/components/Layouts/Mentor/Tasks/TaskTable.js
covernal/EndorsseWebApp
be185b55b02337197859662d92a2886ea3b1db41
[ "MIT" ]
1
2020-07-07T20:48:17.000Z
2020-07-07T20:48:17.000Z
src/components/Layouts/Mentor/Tasks/TaskTable.js
covernal/EndorsseWebApp
be185b55b02337197859662d92a2886ea3b1db41
[ "MIT" ]
null
null
null
import React, {Component, PropTypes} from 'react'; import {Link} from 'react-router'; import {DeleteTaskModal} from '../../../Widgets/EndorsseModal'; class TaskTable extends Component { constructor(props, context) { super(props); } render() { let loadingClass = (this.props.isInitTable || this.props.isInitTable == undefined) ? 'loading' : 'loading hidden'; if (!this.props || this.props.taskData == undefined) { return null; } let rows = []; this.props.taskData.forEach((task, index) => { let taskObj = task.attributes; rows.push( <tr className="" key={'mentor_tasks' + index}> <td>{taskObj.title}</td> <td>{taskObj.type}</td> <td>{(taskObj.currency).toUpperCase()} ${taskObj.price}</td> <td>{taskObj.estimatedCompletionTime}</td> <td> <Link to={'/edit-task/' + task.id} className="table-action-btn h3"><i className="mdi mdi-pencil text-grey"></i></Link> <DeleteTaskModal taskDetails={task} deleteTask={this.props.deleteTask} /> <a className="table-action-btn h3" data-toggle="modal" data-target={`#custom-width-modal-delete-task-${task.id}`} > <i className="mdi mdi-delete text-grey"></i> </a> </td> </tr> ); }); return ( <div className="table-responsive"> <table className="table table-hover mails m-0 table table-actions-bar"> <thead> <tr> <th>Task Title</th> <th>Type</th> <th>Price</th> <th>Estimated Time (hours)</th> <th>Action</th> </tr> </thead> <tbody> {rows} </tbody> </table> <div className={loadingClass}> <i className="fa fa-spinner fa-spin-custom" aria-hidden="true"></i> </div> </div> ); } } TaskTable.contextTypes = { router: PropTypes.object.isRequired }; TaskTable.propTypes = { taskData: PropTypes.array, isInitTable: PropTypes.bool, hasMoreTasks: PropTypes.bool }; export default TaskTable;
27.256098
130
0.538255
3b0dfa7232062715fd3d17ad85eed3c922dd5b40
578
js
JavaScript
7-assets/past-student-repos/LambdaSchool-master/m4/42d2/data/seeds/04-recipesingredients.js
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m4/42d2/data/seeds/04-recipesingredients.js
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m4/42d2/data/seeds/04-recipesingredients.js
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
exports.seed = function(knex) { return knex('recipesingredients').insert([ { recipeid: 1, ingredientsid: 3 }, { recipeid: 1, ingredientsid: 4 }, { recipeid: 4, ingredientsid: 2 }, { recipeid: 3, ingredientsid: 1 }, { recipeid: 2, ingredientsid: 3 }, { recipeid: 2, ingredientsid: 6 }, { recipeid: 3, ingredientsid: 6 }, { recipeid: 4, ingredientsid: 5 }, { recipeid: 5, ingredientsid: 4 }, { recipeid: 6, ingredientsid: 5 }, { recipeid: 5, ingredientsid: 3 } ]); };
11.795918
43
0.536332
3b0e2bb019323698bcdc023d3f5f4c92717275f1
186
js
JavaScript
src/redux/actionTypes.js
NabeelahY/wtc-frontend
b62cc832f8ddd55e7080c9f13cfa0e6231af8bae
[ "MIT" ]
null
null
null
src/redux/actionTypes.js
NabeelahY/wtc-frontend
b62cc832f8ddd55e7080c9f13cfa0e6231af8bae
[ "MIT" ]
null
null
null
src/redux/actionTypes.js
NabeelahY/wtc-frontend
b62cc832f8ddd55e7080c9f13cfa0e6231af8bae
[ "MIT" ]
null
null
null
export const LOADING_LOCATIONS = 'LOADING_LOCATIONS'; export const FETCH_LOCATIONS_SUCCESS = 'FETCH_LOCATIONS_SUCCESS'; export const FETCH_LOCATIONS_FAILURE = 'FETCH_LOCATIONS_FAILURE';
46.5
65
0.854839
3b0e5b5b73a6491788baec7fea60abf21fab539d
638
js
JavaScript
app/views/Home/meta.js
joncursi/yingyang
e922e359af88f7cf0741ad10512a753501b3dc30
[ "MIT" ]
null
null
null
app/views/Home/meta.js
joncursi/yingyang
e922e359af88f7cf0741ad10512a753501b3dc30
[ "MIT" ]
5
2019-04-14T00:07:06.000Z
2021-12-09T00:22:34.000Z
app/views/Home/meta.js
joncursi/yingyang
e922e359af88f7cf0741ad10512a753501b3dc30
[ "MIT" ]
null
null
null
/** * @flow * @prettier */ import * as React from 'react'; import RenderMetaTags from '../../components/RenderMetaTags'; const Meta = (): React.Node => ( <RenderMetaTags description="Michelle and Jon are getting married on Sept. 29, 2019! Click here for wedding details and more information." imageUrl="/static/img/splashes/home-1.jpg" keywords={[ 'jon cursi', 'jonathan cursi', 'love', 'marriage', 'michelle lombarski', 'website', 'wedding', 'yang', 'ying', ]} title="Michelle Lombarski and Jonathan Cursi's Wedding Website" /> ); export default Meta;
21.266667
126
0.619122
3b0e7fffe869dcc74367867459fdbb55d10115af
384
js
JavaScript
src/components/Nav.js
Water-My-Plants-07/front-end
313a381ebd40df4c672d3394f6631b34efcf7ae3
[ "MIT" ]
null
null
null
src/components/Nav.js
Water-My-Plants-07/front-end
313a381ebd40df4c672d3394f6631b34efcf7ae3
[ "MIT" ]
null
null
null
src/components/Nav.js
Water-My-Plants-07/front-end
313a381ebd40df4c672d3394f6631b34efcf7ae3
[ "MIT" ]
1
2022-02-04T07:50:44.000Z
2022-02-04T07:50:44.000Z
import React from "react"; import { Link } from "react-router-dom"; const Nav = () => { return ( <div> <ul> <li> <Link to="/">Login</Link> </li> <li> <Link to="/AllPlants">View Plants</Link> </li> <li> <Link to="/Logout">Logout</Link> </li> </ul> </div> ); }; export default Nav;
16.695652
50
0.432292
3b0e9546bb76c11a8271b6cb59c6ebb717203ebf
527
js
JavaScript
wp-content/plugins/super-socializer/js/front/social_login/linkedin.js
wpugph/phtechcommunity
f61dfa1079fea29a45e056d494565d1b628ad5ad
[ "MIT" ]
1
2018-03-19T11:44:20.000Z
2018-03-19T11:44:20.000Z
wp-content/plugins/super-socializer/js/front/social_login/linkedin.js
wpugph/phtechcommunity
f61dfa1079fea29a45e056d494565d1b628ad5ad
[ "MIT" ]
35
2018-03-17T03:39:29.000Z
2021-10-09T13:29:25.000Z
wp-content/plugins/super-socializer/js/front/social_login/linkedin.js
wpugph/phtechcommunity
f61dfa1079fea29a45e056d494565d1b628ad5ad
[ "MIT" ]
2
2018-08-21T03:17:48.000Z
2021-10-09T13:34:41.000Z
function theChampLinkedInOnLoad(){theChampDisplayLoginIcon(document,["theChampLinkedinButton","theChampLinkedinLogin"])}IN.Event.on(IN,"auth",function(){theChampLoadingIcon(),IN.API.Profile("me").fields(["email-address","id","picture-urls::(original)","first-name","last-name","headline","picture-url","public-profile-url","num-connections"]).result(function(a){a.values[0].id&&""!=a.values[0].id&&theChampCallAjax(function(){1==heateorMSEnabled&&(a.values[0].mc_subscribe=1),theChampAjaxUserAuth(a.values[0],"linkedin")})})});
527
527
0.755218
3b0f2a9784a25a5c07cf29751e1dc7d4cc6a709b
559
js
JavaScript
node_modules/string.prototype.matchall/implementation.js
Romarioh39/UI-Slider
ae9f4b4f0de2f81c56f7a20386f566765a07f959
[ "MIT" ]
null
null
null
node_modules/string.prototype.matchall/implementation.js
Romarioh39/UI-Slider
ae9f4b4f0de2f81c56f7a20386f566765a07f959
[ "MIT" ]
null
null
null
node_modules/string.prototype.matchall/implementation.js
Romarioh39/UI-Slider
ae9f4b4f0de2f81c56f7a20386f566765a07f959
[ "MIT" ]
null
null
null
'use strict'; var ES = require('es-abstract'); var hasSymbols = require('has-symbols')(); var MatchAllIterator = require('./helpers/MatchAllIterator'); module.exports = function matchAll(regexp) { var O = ES.RequireObjectCoercible(this); if (typeof regexp !== 'undefined' && regexp !== null) { var matcher; if (hasSymbols && typeof Symbol.matchAll === 'symbol') { matcher = ES.GetMethod(regexp, Symbol.matchAll); } if (typeof matcher !== 'undefined') { return ES.Call(matcher, regexp, [O]); } } return MatchAllIterator(regexp, O); };
24.304348
61
0.670841
3b0f3d0732cd980fce8b243d9404d204b37d29ef
3,276
js
JavaScript
src/main/webapp/ext/packages/ux/classic/src/ProgressBarPager.js
rzen/link-rest-fantasy-hockey
081540badd0e6854a453d458998fbbff3053e5b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/main/webapp/ext/packages/ux/classic/src/ProgressBarPager.js
rzen/link-rest-fantasy-hockey
081540badd0e6854a453d458998fbbff3053e5b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/main/webapp/ext/packages/ux/classic/src/ProgressBarPager.js
rzen/link-rest-fantasy-hockey
081540badd0e6854a453d458998fbbff3053e5b4
[ "BSD-2-Clause-FreeBSD" ]
3
2016-01-25T15:09:59.000Z
2020-11-06T07:37:37.000Z
/** * Plugin for displaying a progressbar inside of a paging toolbar * instead of plain text. */ Ext.define('Ext.ux.ProgressBarPager', { requires: ['Ext.ProgressBar'], /** * @cfg {Number} width * <p>The default progress bar width. Default is 225.</p> */ width : 225, /** * @cfg {String} defaultText * <p>The text to display while the store is loading. Default is 'Loading...'</p> */ defaultText : 'Loading...', /** * @cfg {Object} defaultAnimCfg * <p>A {@link Ext.fx.Anim Ext.fx.Anim} configuration object.</p> */ defaultAnimCfg : { duration: 1000, easing: 'bounceOut' }, /** * Creates new ProgressBarPager. * @param {Object} config Configuration options */ constructor : function(config) { if (config) { Ext.apply(this, config); } }, //public init : function (parent) { var displayItem; if (parent.displayInfo) { this.parent = parent; displayItem = parent.child("#displayItem"); if (displayItem) { parent.remove(displayItem, true); } this.progressBar = Ext.create('Ext.ProgressBar', { text : this.defaultText, width : this.width, animate : this.defaultAnimCfg, style: { cursor: 'pointer' }, listeners: { el: { scope: this, click: this.handleProgressBarClick } } }); parent.displayItem = this.progressBar; parent.add(parent.displayItem); Ext.apply(parent, this.parentOverrides); } }, // private // This method handles the click for the progress bar handleProgressBarClick : function(e){ var parent = this.parent, displayItem = parent.displayItem, box = this.progressBar.getBox(), xy = e.getXY(), position = xy[0]- box.x, pages = Math.ceil(parent.store.getTotalCount() / parent.pageSize), newPage = Math.max(Math.ceil(position / (displayItem.width / pages)), 1); parent.store.loadPage(newPage); }, // private, overriddes parentOverrides : { // private // This method updates the information via the progress bar. updateInfo : function(){ if(this.displayItem){ var count = this.store.getCount(), pageData = this.getPageData(), message = count === 0 ? this.emptyMsg : Ext.String.format( this.displayMsg, pageData.fromRecord, pageData.toRecord, this.store.getTotalCount() ), percentage = pageData.pageCount > 0 ? (pageData.currentPage / pageData.pageCount) : 0; this.displayItem.updateProgress(percentage, message, this.animate || this.defaultAnimConfig); } } } });
31.5
110
0.497253
3b0f5ea344405d78e059bd76af28aca94b8377d4
5,323
js
JavaScript
src/Itowns/Controls/MiniGlobe.js
IGNF/geoportal-extensions
9c2344e7caf89c852336a5e167be7031203ce8e7
[ "RSA-MD" ]
52
2016-06-08T13:19:01.000Z
2022-03-31T04:51:02.000Z
src/Itowns/Controls/MiniGlobe.js
IGNF/geoportal-extensions
9c2344e7caf89c852336a5e167be7031203ce8e7
[ "RSA-MD" ]
237
2016-06-09T09:22:20.000Z
2022-03-30T16:38:24.000Z
src/Itowns/Controls/MiniGlobe.js
IGNF/geoportal-extensions
9c2344e7caf89c852336a5e167be7031203ce8e7
[ "RSA-MD" ]
29
2016-06-13T14:13:16.000Z
2020-11-23T20:25:07.000Z
import GlobeViewExtended from "../GlobeViewExtended"; import Utils from "../../Common/Utils"; import SelectorID from "../../Common/Utils/SelectorID"; import MiniGlobeDOM from "../../Common/Controls/MiniGlobeDOM"; import Widget from "./Widget"; /** * @classdesc * Control to display the MiniGlobe with itowns * * @constructor * @extends {itowns.control.Widget} * @alias itowns.control.MiniGlobe * @param {Object} [options] - control options * @param {Object} [options.layer] - custom itowns layer to display on the mini globe * @example * var miniglobe = new itowns.control.MiniGlobe(); * */ function MiniGlobe (options) { options = options || {}; if (!(this instanceof MiniGlobe)) { throw new TypeError("ERROR CLASS_CONSTRUCTOR"); } if (typeof options !== "object") { throw new Error("ERROR WRONG_TYPE : options should be an object"); } this._initialize(); var container = this._initContainer(); this._options = options; Widget.call( this, { name : "Overview", element : container, target : options.target, position : options.position } ); } /* * @lends module:MiniGlobe */ MiniGlobe.prototype = Object.create(Widget.prototype, {}); // retrieves methods of the common class MiniGlobeDOM Utils.assign(MiniGlobe.prototype, MiniGlobeDOM); /** * Constructor (alias) * * @private */ MiniGlobe.prototype.constructor = MiniGlobe; // ################################################################### // // ############## public methods (getters, setters) ################## // // ################################################################### // /** * Bind globe to control * * @param {GlobeViewExtended} globe - the globe */ MiniGlobe.prototype.setGlobe = function (globe) { // info : this function is called after a globe.addWidget() or a globe.removeWidget() if (globe) { // In the case of the adding of a control to the globe var minDistance = 6650000; var maxDistance = 30000000; var positionOnGlobe = globe.getCenter(); var miniView = new GlobeViewExtended(this._element, positionOnGlobe, { // `limit globe' subdivision level: // we're don't need a precise globe model // since the mini globe will always be seen from a far point of view (see minDistance above) maxSubdivisionLevel : 6, sseSubdivisionThreshold : 3, // Don't instance default controls since miniview's camera will be synced // on the main view's one (see globeView.onAfterRender) noControls : true }); miniView.setBackground(); var updateMiniGlobeHandler = function () { // clamp distance camera from globe var distanceCamera = globe.getGlobeView().camera.camera3D.position.length(); var distance = Math.min(Math.max(distanceCamera, minDistance), maxDistance); var camera = miniView.getGlobeView().camera.camera3D; var cameraTargetPosition = globe.getGlobeView().controls.getCameraTargetPosition(); // Update target miniview's camera camera.position.copy(cameraTargetPosition).setLength(distance); camera.lookAt(cameraTargetPosition); miniView.notifyChange(camera); }; globe.listen(GlobeViewExtended.EVENTS.AFTER_RENDER, updateMiniGlobeHandler); if (globe.isInitialized()) { updateMiniGlobeHandler(); } else { globe.listen(GlobeViewExtended.EVENTS.GLOBE_INITIALIZED, updateMiniGlobeHandler); } /** * Add one imagery layer to the miniview (by default, the ortho) */ var miniGlobeLayer = this._options.layer; miniView.addLayer(miniGlobeLayer); // save as property of the control the globe created for the overview this._globeObj = miniView; } else if (globe == null) { // if globe == null we remove the overview control // we delete the overview control DOM while (this.getElement().hasChildNodes()) { this.getElement().removeChild(this.getElement().lastChild); } this.getElement().parentNode.removeChild(this.getElement()); } // call original setGlobe method Widget.prototype.setGlobe.call(this, globe); }; // ################################################################### // // ##################### init component ############################## // // ################################################################### // /** * Initialize MiniGlobe control (called by constructor) * * @private */ MiniGlobe.prototype._initialize = function () { // id of the widget : usefull to suffix the CSS ids (to handle cases with several widgets on the same page) this._uid = SelectorID.generate(); // div which will contain the list divs. this._MiniGlobeContainer = null; // callbacks this._callbacks = {}; }; /** * Creates control main container * * @method _initContainer * @returns {DOMElement} container - widget container * @private */ MiniGlobe.prototype._initContainer = function () { var container = this._createMainContainerElement(); return container; }; export default MiniGlobe;
32.858025
111
0.605486
3b0f84b9f9849389b2a07fb652c54c616518cb3d
660
js
JavaScript
algorithms/array/insertion-sort/animation/elements.js
vivaxy/examples
9ae9e2080a8eca92fba2a256a51a7ff3bdb4133f
[ "MIT" ]
20
2015-08-19T09:52:17.000Z
2021-01-21T03:21:57.000Z
algorithms/array/insertion-sort/animation/elements.js
vivaxy/examples
9ae9e2080a8eca92fba2a256a51a7ff3bdb4133f
[ "MIT" ]
39
2019-08-03T15:38:14.000Z
2021-01-21T14:24:46.000Z
algorithms/array/insertion-sort/animation/elements.js
vivaxy/samples
8845d5c243345a1adead4f1423993b2185529951
[ "MIT" ]
8
2018-12-15T01:50:32.000Z
2021-04-13T01:39:52.000Z
/** * @since 2018-05-06 12:41:50 * @author vivaxy */ import query from './query.js'; import array from './array.js'; const body = document.body; export default array.map((item, index) => { const ele = document.createElement('div'); ele.classList.add('item'); ele.style.height = (item * 100) + '%'; ele.style.width = (100 / query.length) + '%'; ele.style.left = (100 / query.length * index) + '%'; ele.style.transition = `all ${query.interval}ms`; ele.style.animationDuration = `${query.interval}ms`; ele.setAttribute('data-index', String(index)); ele.setAttribute('data-value', String(item)); body.appendChild(ele); return ele; });
27.5
54
0.648485
3b0f903abf6e1cb0354f9aa961f691a0cbc8afeb
2,706
js
JavaScript
node_modules/carbon-components-react/lib/components/Pagination/Pagination-story.js
fabianklonsdorf/ixhh
d595f89ddb8320b4f1847e9e5bd6265f9a529db3
[ "Apache-2.0" ]
null
null
null
node_modules/carbon-components-react/lib/components/Pagination/Pagination-story.js
fabianklonsdorf/ixhh
d595f89ddb8320b4f1847e9e5bd6265f9a529db3
[ "Apache-2.0" ]
null
null
null
node_modules/carbon-components-react/lib/components/Pagination/Pagination-story.js
fabianklonsdorf/ixhh
d595f89ddb8320b4f1847e9e5bd6265f9a529db3
[ "Apache-2.0" ]
null
null
null
"use strict"; var _react = _interopRequireDefault(require("react")); var _react2 = require("@storybook/react"); var _addonActions = require("@storybook/addon-actions"); var _addonKnobs = require("@storybook/addon-knobs"); var _Pagination = _interopRequireDefault(require("../Pagination")); var _FeatureFlags = require("../../internal/FeatureFlags"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ var props = function props() { return { disabled: (0, _addonKnobs.boolean)('Disable backward/forward buttons (disabled)', false), page: (0, _addonKnobs.number)('The current page (page)', 1), totalItems: (0, _addonKnobs.number)('Total number of items (totalItems)', 103), pagesUnknown: (0, _addonKnobs.boolean)('Total number of items unknown (pagesUnknown)', false), pageInputDisabled: (0, _addonKnobs.boolean)('Disable page input (pageInputDisabled)', false), isLastPage: _FeatureFlags.componentsX ? null : (0, _addonKnobs.boolean)('At the last page (isLastPage)', false), backwardText: (0, _addonKnobs.text)('The description for the backward icon (backwardText)', 'Previous page'), forwardText: (0, _addonKnobs.text)('The description for the backward icon (forwardText)', 'Next page'), pageSize: (0, _addonKnobs.number)('Number of items per page (pageSize)', 10), pageSizes: (0, _addonKnobs.array)('Choices of `pageSize` (pageSizes)', [10, 20, 30, 40, 50]), itemsPerPageText: (0, _addonKnobs.text)('Label for `pageSizes` select UI (itemsPerPageText)', 'Items per page:'), onChange: (0, _addonActions.action)('onChange') }; }; (0, _react2.storiesOf)('Pagination', module).addDecorator(_addonKnobs.withKnobs).addDecorator(function (story) { return _react.default.createElement("div", { style: { width: '800px' } }, story()); }).add('Pagination', function () { return _react.default.createElement(_Pagination.default, props()); }, { info: { text: "\n The pagination component is used to switch through multiple pages of items, when only a maxium number of items can be displayed per page. Can be used in combination with other components like DataTable.\n " } }).add('↪︎ multipe Pagination components', function () { return _react.default.createElement("div", null, _react.default.createElement(_Pagination.default, props()), _react.default.createElement(_Pagination.default, props())); }, { info: { text: "Showcasing unique ids for each pagination component" } });
46.655172
240
0.706208
3b0f96164b052e2ef2c678b5ac036ad640da08a3
1,541
js
JavaScript
resources/assets/js/components/purchase_orders/edit/Contacts.js
turbo124/taskmanager
24f76f2a57e823434d22c85c00af1cf33e87b20a
[ "MIT" ]
null
null
null
resources/assets/js/components/purchase_orders/edit/Contacts.js
turbo124/taskmanager
24f76f2a57e823434d22c85c00af1cf33e87b20a
[ "MIT" ]
null
null
null
resources/assets/js/components/purchase_orders/edit/Contacts.js
turbo124/taskmanager
24f76f2a57e823434d22c85c00af1cf33e87b20a
[ "MIT" ]
null
null
null
import React from 'react' import { Card, CardBody, CardHeader, FormGroup, Input, Label } from 'reactstrap' import { translations } from '../../utils/_translations' import CompanyDropdown from '../../common/dropdowns/CompanyDropdown' export default function Contacts (props) { const send_to = props.contacts.length ? props.contacts.map((contact, index) => { const invitations = props.invitations.length ? props.invitations.filter(invitation => parseInt(invitation.contact_id) === contact.id) : [] const checked = invitations.length ? 'checked="checked"' : '' return <FormGroup key={index} check> <Label check> <Input checked={checked} value={contact.id} onChange={props.handleContactChange} type="checkbox"/> {`${contact.first_name} ${contact.last_name}`} </Label> </FormGroup> }) : null return ( <Card> <CardHeader>{translations.company}</CardHeader> <CardBody> {props.hide_customer === true && <FormGroup> <Label>{translations.company}</Label> <CompanyDropdown handleInputChanges={props.handleInput} company_id={props.invoice.company_id} companies={props.companies} errors={props.errors} /> </FormGroup> } {send_to} </CardBody> </Card> ) }
38.525
146
0.552239
3b0fdae023be186ddc44bfe84219644504b31548
2,677
js
JavaScript
packages/extension/examples/html-card/index.js
MirrorYUAI/LogicFlow
fbb483b835c6d320bf002b399c2dd1c8e6e2f337
[ "Apache-2.0" ]
2,259
2020-12-30T03:34:22.000Z
2022-03-31T17:00:33.000Z
packages/extension/examples/html-card/index.js
MirrorYUAI/LogicFlow
fbb483b835c6d320bf002b399c2dd1c8e6e2f337
[ "Apache-2.0" ]
266
2021-01-02T08:11:00.000Z
2022-03-29T03:06:46.000Z
packages/extension/examples/html-card/index.js
MirrorYUAI/LogicFlow
fbb483b835c6d320bf002b399c2dd1c8e6e2f337
[ "Apache-2.0" ]
342
2020-12-30T03:34:54.000Z
2022-03-31T07:43:32.000Z
import cardLine from "./cardLine.js"; import htmlCard from "./htmlCard.js"; LogicFlow.use(MiniMap); const lf = new LogicFlow({ container: document.querySelector('#container'), grid: true, }); lf.register(cardLine); lf.register(htmlCard); lf.setDefaultEdgeType('card-line'); lf.on('node:click', ({ data : { id, properties }}) => { if (properties.answers && properties.answers.length < 5) { const randomId = Math.ceil(Math.random() * 10000) + '' properties.answers.push({ id: randomId, text: randomId }) lf.setProperties(id, properties) } }) lf.render({ nodes: [ { id: '1', type: 'html-card', x: 300, y: 100, properties: { title: '普通话术', content: '喂,您好,这里是美家装饰,专业的装修品牌。请问您最近有装修吗?', answers: [ { id: '10', text: '装好了' }, { id: '11', text: '肯定' }, { id: '12', text: '拒绝' }, { id: '13', text: '否定' }, { id: '14', text: '默认' } ] } }, { id: '2', type: 'html-card', x: 200, y: 300, properties: { title: '跳转话术', content: '好的,我们将给安排专门装修师傅上面服务。', answers: [ { id: '21', text: '肯定' }, { id: '23', text: '否定' } ] } }, { id: '3', type: 'html-card', x: 600, y: 300, properties: { title: '普通话术', content: '好的,我们将给安排专门装修师傅上面服务。', answers: [ { id: '31', text: '肯定' }, { id: '43', text: '否定' } ] } } ], edges: [ { "id":"36097b7b-f7fb-4eba-ac84-d9cec1e8f4d0", "type":"card-line", "sourceNodeId":"1", "targetNodeId":"2", "startPoint":{"x":249,"y":145}, "endPoint":{"x":200,"y":250}, "properties":{}, "pointsList":[{"x":249,"y":145},{"x":249,"y":250},{"x":200,"y":150},{"x":200,"y":250}] }, { "id":"ab537079-c6d9-45b9-8251-ebb5d7a98998", "type":"card-line", "sourceNodeId":"1", "targetNodeId":"3", "startPoint":{"x":325,"y":145}, "endPoint":{"x":600,"y":250}, "properties":{}, "pointsList":[{"x":325,"y":145},{"x":325,"y":250},{"x":600,"y":150},{"x":600,"y":250}] } ] }); MiniMap.show(0, 0); document.querySelector('#getJson').addEventListener('click', () => { const data = lf.getGraphData(); console.log(data); })
21.58871
92
0.424729
3b0ffb8ce9d6df3c80bc5cb6721c634efc9fef8c
272
js
JavaScript
src/0112-best-time-to-buy-and-sell-stock-ii/main.js
weizhiqimail/leet-code
20c72c9e431acbfe41adcd13bd6606db866cb907
[ "MIT" ]
null
null
null
src/0112-best-time-to-buy-and-sell-stock-ii/main.js
weizhiqimail/leet-code
20c72c9e431acbfe41adcd13bd6606db866cb907
[ "MIT" ]
null
null
null
src/0112-best-time-to-buy-and-sell-stock-ii/main.js
weizhiqimail/leet-code
20c72c9e431acbfe41adcd13bd6606db866cb907
[ "MIT" ]
null
null
null
function maxProfit(prices) { let profit = 0; for (let i = 1; i < prices.length; i++) { const first = prices[i - 1]; const second = prices[i]; if (second > first) { profit += second - first; } } return profit; }
20.923077
45
0.488971
3b1048a6dce18adc1b23a6869d99c7a7c211be85
1,420
js
JavaScript
app/scripts/code-mirror/mode/headers/headers.js
Acidburn0zzz/ChromeRestClient
8e41af902a8e71a926f38450189136fad0e3d1a6
[ "Apache-2.0" ]
1
2019-10-25T03:55:59.000Z
2019-10-25T03:55:59.000Z
app/scripts/code-mirror/mode/headers/headers.js
Acidburn0zzz/ChromeRestClient
8e41af902a8e71a926f38450189136fad0e3d1a6
[ "Apache-2.0" ]
null
null
null
app/scripts/code-mirror/mode/headers/headers.js
Acidburn0zzz/ChromeRestClient
8e41af902a8e71a926f38450189136fad0e3d1a6
[ "Apache-2.0" ]
null
null
null
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE (function(mod) { if (typeof exports == 'object' && typeof module == 'object') { // CommonJS mod(require('../../lib/codemirror')); } else if (typeof define == 'function' && define.amd) { // AMD define(['../../lib/codemirror'], mod); } else { // Plain browser env mod(CodeMirror); } })(function(CodeMirror) { 'use strict'; CodeMirror.defineMode('http-headers', function() { function failRest(stream, state) { stream.skipToEnd(); state.cur = failRest; return 'error'; } function header(stream) { if (stream.sol() && !stream.eat(/[ \t]/)) { if (stream.match(/^.*?:/)) { return 'atom'; } else { stream.skipToEnd(); return 'error'; } } else { stream.skipToEnd(); return 'string'; } } return { token: function(stream, state) { var cur = state.cur; if (!cur || cur !== header && stream.eatSpace()) { return null; } return cur(stream, state); }, blankLine: function(state) { state.cur = failRest; }, startState: function() { return { cur: header }; } }; }); CodeMirror.defineMIME('message/http-headers', 'http-headers'); });
24.067797
76
0.530282
3b10b320fd9c569afc51c70c01a5d1a9b662ba00
3,641
js
JavaScript
node_modules/.cache/nuxt/dist/client/2e79860.js
Uvacoder/holasvg-loaders
7b9de2603f7635748971a7002e3249fb4e6407e8
[ "MIT" ]
9
2021-08-16T16:18:42.000Z
2021-11-12T11:31:37.000Z
node_modules/.cache/nuxt/dist/client/2e79860.js
marianabeldi/holasvg-loaders
7b9de2603f7635748971a7002e3249fb4e6407e8
[ "MIT" ]
null
null
null
node_modules/.cache/nuxt/dist/client/2e79860.js
marianabeldi/holasvg-loaders
7b9de2603f7635748971a7002e3249fb4e6407e8
[ "MIT" ]
null
null
null
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{200:function(t,e,o){var content=o(209);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(46).default)("6ce5f915",content,!0,{sourceMap:!1})},208:function(t,e,o){"use strict";o(200)},209:function(t,e,o){var r=o(45)(!1);r.push([t.i,".custom-shape{background-color:var(--bgColor);border:1px solid;color:var(--textColor);display:none;margin-top:.5rem;min-height:4rem;padding:.2rem .5rem;width:100%}.custom-shape.active{display:block}.custom-shape-btn{background-color:var(--siteLightblue);color:var(--bgColor);display:none;margin-top:.5rem;width:100%}.custom-shape-btn.active{display:block}.custom-shape-btn:hover{background-color:var(--siteGreen)}.custom-shape-btn:disabled{cursor:not-allowed;opacity:.5}.custom-shape-btn:disabled:hover{background-color:var(--siteLightblue)}.btn-custom{background-color:transparent;border-color:var(--siteLightblue);color:var(--textColor);margin:.5rem 0}.btn-custom:hover{background-color:var(--siteLightblue);color:var(--bgColor)}",""]),t.exports=r},223:function(t,e,o){"use strict";o.r(e);o(71);var r={methods:{setShape:function(t){var e=this;this.$state.shapeActive=t;for(var i=0;i<this.$state.shapes.length;i++)this.$state.shapes[i].id===t&&(this.$state.loaderCurrentDef=this.$state.shapes[i].svgspinner,"inline1"===this.$state.styleActive&&(this.$state.loaderCurrentDef=this.$state.shapes[i].svginline),"custom"===t&&(this.$state.loaderCurrentDef=this.$state.customShape));this.$state.renderComponent=!1,this.$nextTick((function(){e.$state.renderComponent=!0})),this.$getSmilCode()},disabledOp:function(){this.$state.customShape.startsWith("<path")||this.$state.customShape.startsWith("<text")||this.$state.customShape.startsWith("<svg")||this.$state.customShape.startsWith("<rect")||this.$state.customShape.startsWith("<circle")||this.$state.customShape.startsWith("<polyline")||this.$state.customShape.startsWith("<ellipse")||this.$state.customShape.startsWith("<line")||this.$state.customShape.startsWith("<polygon")?this.$state.disabledSave=!1:this.$state.disabledSave=!0}}},n=(o(208),o(33)),component=Object(n.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"style-bar-box"},[o("h3",[t._v("Shapes:")]),t._v(" "),o("div",[t._l(t.$state.shapes,(function(e){return o("div",{key:e.id,staticClass:"loop-container shape-option",class:{active:t.$state.shapeActive===e.id},attrs:{tabindex:"0"},on:{click:function(o){return t.setShape(e.id)}}},[o("svg",{attrs:{width:"50",height:"50",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",overflow:"visible",fill:"#84c9d2"},domProps:{innerHTML:t._s(e.menu)}})])})),t._v(" "),o("button",{staticClass:"btn btn-custom",on:{click:function(e){t.$state.isActiveCustom=!t.$state.isActiveCustom}}},[t._v("Custom")]),t._v(" "),o("textarea",{directives:[{name:"model",rawName:"v-model",value:t.$state.customShape,expression:"$state.customShape"}],staticClass:"custom-shape",class:{active:t.$state.isActiveCustom},attrs:{placeholder:"paste your shape, <path>, or <text>!",title:'💡 TRY: <text y="20">💩</text>',required:""},domProps:{value:t.$state.customShape},on:{input:[function(e){e.target.composing||t.$set(t.$state,"customShape",e.target.value)},function(e){return t.disabledOp()}]}}),t._v(" "),o("button",{staticClass:"btn custom-shape-btn",class:{active:t.$state.isActiveCustom},attrs:{type:"submit",disabled:t.$state.disabledSave},on:{click:function(e){return t.setShape("custom")}}},[t._v("Save")])],2)])}),[],!1,null,null,null);e.default=component.exports}}]);
3,641
3,641
0.725899
3b10b6c58842422ca5645a0a2cbf27b5e71d7685
28,185
js
JavaScript
bootstrap/bootstrap-icons.js
openeuropa/bootstrap-component-library
640c1b8f9fdb3372f6a74a624275c3edb9a545aa
[ "MIT" ]
14
2021-07-01T14:10:17.000Z
2022-03-29T11:40:16.000Z
bootstrap/bootstrap-icons.js
openeuropa/bootstrap-component-library
640c1b8f9fdb3372f6a74a624275c3edb9a545aa
[ "MIT" ]
278
2021-06-14T15:07:29.000Z
2022-03-31T11:06:02.000Z
bootstrap/bootstrap-icons.js
openeuropa/bootstrap-component-library
640c1b8f9fdb3372f6a74a624275c3edb9a545aa
[ "MIT" ]
3
2021-09-07T12:34:22.000Z
2022-01-23T09:11:03.000Z
export default [ "123", "alarm-fill", "alarm", "align-bottom", "align-center", "align-end", "align-middle", "align-start", "align-top", "alt", "app-indicator", "app", "archive-fill", "archive", "arrow-90deg-down", "arrow-90deg-left", "arrow-90deg-right", "arrow-90deg-up", "arrow-bar-down", "arrow-bar-left", "arrow-bar-right", "arrow-bar-up", "arrow-clockwise", "arrow-counterclockwise", "arrow-down-circle-fill", "arrow-down-circle", "arrow-down-left-circle-fill", "arrow-down-left-circle", "arrow-down-left-square-fill", "arrow-down-left-square", "arrow-down-left", "arrow-down-right-circle-fill", "arrow-down-right-circle", "arrow-down-right-square-fill", "arrow-down-right-square", "arrow-down-right", "arrow-down-short", "arrow-down-square-fill", "arrow-down-square", "arrow-down-up", "arrow-down", "arrow-left-circle-fill", "arrow-left-circle", "arrow-left-right", "arrow-left-short", "arrow-left-square-fill", "arrow-left-square", "arrow-left", "arrow-repeat", "arrow-return-left", "arrow-return-right", "arrow-right-circle-fill", "arrow-right-circle", "arrow-right-short", "arrow-right-square-fill", "arrow-right-square", "arrow-right", "arrow-up-circle-fill", "arrow-up-circle", "arrow-up-left-circle-fill", "arrow-up-left-circle", "arrow-up-left-square-fill", "arrow-up-left-square", "arrow-up-left", "arrow-up-right-circle-fill", "arrow-up-right-circle", "arrow-up-right-square-fill", "arrow-up-right-square", "arrow-up-right", "arrow-up-short", "arrow-up-square-fill", "arrow-up-square", "arrow-up", "arrows-angle-contract", "arrows-angle-expand", "arrows-collapse", "arrows-expand", "arrows-fullscreen", "arrows-move", "aspect-ratio-fill", "aspect-ratio", "asterisk", "at", "award-fill", "award", "back", "backspace-fill", "backspace-reverse-fill", "backspace-reverse", "backspace", "badge-3d-fill", "badge-3d", "badge-4k-fill", "badge-4k", "badge-8k-fill", "badge-8k", "badge-ad-fill", "badge-ad", "badge-ar-fill", "badge-ar", "badge-cc-fill", "badge-cc", "badge-hd-fill", "badge-hd", "badge-tm-fill", "badge-tm", "badge-vo-fill", "badge-vo", "badge-vr-fill", "badge-vr", "badge-wc-fill", "badge-wc", "bag-check-fill", "bag-check", "bag-dash-fill", "bag-dash", "bag-fill", "bag-plus-fill", "bag-plus", "bag-x-fill", "bag-x", "bag", "bar-chart-fill", "bar-chart-line-fill", "bar-chart-line", "bar-chart-steps", "bar-chart", "basket-fill", "basket", "basket2-fill", "basket2", "basket3-fill", "basket3", "battery-charging", "battery-full", "battery-half", "battery", "bell-fill", "bell", "bezier", "bezier2", "bicycle", "binoculars-fill", "binoculars", "blockquote-left", "blockquote-right", "book-fill", "book-half", "book", "bookmark-check-fill", "bookmark-check", "bookmark-dash-fill", "bookmark-dash", "bookmark-fill", "bookmark-heart-fill", "bookmark-heart", "bookmark-plus-fill", "bookmark-plus", "bookmark-star-fill", "bookmark-star", "bookmark-x-fill", "bookmark-x", "bookmark", "bookmarks-fill", "bookmarks", "bookshelf", "bootstrap-fill", "bootstrap-reboot", "bootstrap", "border-all", "border-bottom", "border-center", "border-inner", "border-left", "border-middle", "border-outer", "border-right", "border-style", "border-top", "border-width", "border", "bounding-box-circles", "bounding-box", "box-arrow-down-left", "box-arrow-down-right", "box-arrow-down", "box-arrow-in-down-left", "box-arrow-in-down-right", "box-arrow-in-down", "box-arrow-in-left", "box-arrow-in-right", "box-arrow-in-up-left", "box-arrow-in-up-right", "box-arrow-in-up", "box-arrow-left", "box-arrow-right", "box-arrow-up-left", "box-arrow-up-right", "box-arrow-up", "box-seam", "box", "braces", "bricks", "briefcase-fill", "briefcase", "brightness-alt-high-fill", "brightness-alt-high", "brightness-alt-low-fill", "brightness-alt-low", "brightness-high-fill", "brightness-high", "brightness-low-fill", "brightness-low", "broadcast-pin", "broadcast", "brush-fill", "brush", "bucket-fill", "bucket", "bug-fill", "bug", "building", "bullseye", "calculator-fill", "calculator", "calendar-check-fill", "calendar-check", "calendar-date-fill", "calendar-date", "calendar-day-fill", "calendar-day", "calendar-event-fill", "calendar-event", "calendar-fill", "calendar-minus-fill", "calendar-minus", "calendar-month-fill", "calendar-month", "calendar-plus-fill", "calendar-plus", "calendar-range-fill", "calendar-range", "calendar-week-fill", "calendar-week", "calendar-x-fill", "calendar-x", "calendar", "calendar2-check-fill", "calendar2-check", "calendar2-date-fill", "calendar2-date", "calendar2-day-fill", "calendar2-day", "calendar2-event-fill", "calendar2-event", "calendar2-fill", "calendar2-minus-fill", "calendar2-minus", "calendar2-month-fill", "calendar2-month", "calendar2-plus-fill", "calendar2-plus", "calendar2-range-fill", "calendar2-range", "calendar2-week-fill", "calendar2-week", "calendar2-x-fill", "calendar2-x", "calendar2", "calendar3-event-fill", "calendar3-event", "calendar3-fill", "calendar3-range-fill", "calendar3-range", "calendar3-week-fill", "calendar3-week", "calendar3", "calendar4-event", "calendar4-range", "calendar4-week", "calendar4", "camera-fill", "camera-reels-fill", "camera-reels", "camera-video-fill", "camera-video-off-fill", "camera-video-off", "camera-video", "camera", "camera2", "capslock-fill", "capslock", "card-checklist", "card-heading", "card-image", "card-list", "card-text", "caret-down-fill", "caret-down-square-fill", "caret-down-square", "caret-down", "caret-left-fill", "caret-left-square-fill", "caret-left-square", "caret-left", "caret-right-fill", "caret-right-square-fill", "caret-right-square", "caret-right", "caret-up-fill", "caret-up-square-fill", "caret-up-square", "caret-up", "cart-check-fill", "cart-check", "cart-dash-fill", "cart-dash", "cart-fill", "cart-plus-fill", "cart-plus", "cart-x-fill", "cart-x", "cart", "cart2", "cart3", "cart4", "cash-stack", "cash", "cast", "chat-dots-fill", "chat-dots", "chat-fill", "chat-left-dots-fill", "chat-left-dots", "chat-left-fill", "chat-left-quote-fill", "chat-left-quote", "chat-left-text-fill", "chat-left-text", "chat-left", "chat-quote-fill", "chat-quote", "chat-right-dots-fill", "chat-right-dots", "chat-right-fill", "chat-right-quote-fill", "chat-right-quote", "chat-right-text-fill", "chat-right-text", "chat-right", "chat-square-dots-fill", "chat-square-dots", "chat-square-fill", "chat-square-quote-fill", "chat-square-quote", "chat-square-text-fill", "chat-square-text", "chat-square", "chat-text-fill", "chat-text", "chat", "check-all", "check-circle-fill", "check-circle", "check-square-fill", "check-square", "check", "check2-all", "check2-circle", "check2-square", "check2", "chevron-bar-contract", "chevron-bar-down", "chevron-bar-expand", "chevron-bar-left", "chevron-bar-right", "chevron-bar-up", "chevron-compact-down", "chevron-compact-left", "chevron-compact-right", "chevron-compact-up", "chevron-contract", "chevron-double-down", "chevron-double-left", "chevron-double-right", "chevron-double-up", "chevron-down", "chevron-expand", "chevron-left", "chevron-right", "chevron-up", "circle-fill", "circle-half", "circle-square", "circle", "clipboard-check", "clipboard-data", "clipboard-minus", "clipboard-plus", "clipboard-x", "clipboard", "clock-fill", "clock-history", "clock", "cloud-arrow-down-fill", "cloud-arrow-down", "cloud-arrow-up-fill", "cloud-arrow-up", "cloud-check-fill", "cloud-check", "cloud-download-fill", "cloud-download", "cloud-drizzle-fill", "cloud-drizzle", "cloud-fill", "cloud-fog-fill", "cloud-fog", "cloud-fog2-fill", "cloud-fog2", "cloud-hail-fill", "cloud-hail", "cloud-haze-1", "cloud-haze-fill", "cloud-haze", "cloud-haze2-fill", "cloud-lightning-fill", "cloud-lightning-rain-fill", "cloud-lightning-rain", "cloud-lightning", "cloud-minus-fill", "cloud-minus", "cloud-moon-fill", "cloud-moon", "cloud-plus-fill", "cloud-plus", "cloud-rain-fill", "cloud-rain-heavy-fill", "cloud-rain-heavy", "cloud-rain", "cloud-slash-fill", "cloud-slash", "cloud-sleet-fill", "cloud-sleet", "cloud-snow-fill", "cloud-snow", "cloud-sun-fill", "cloud-sun", "cloud-upload-fill", "cloud-upload", "cloud", "clouds-fill", "clouds", "cloudy-fill", "cloudy", "code-slash", "code-square", "code", "collection-fill", "collection-play-fill", "collection-play", "collection", "columns-gap", "columns", "command", "compass-fill", "compass", "cone-striped", "cone", "controller", "cpu-fill", "cpu", "credit-card-2-back-fill", "credit-card-2-back", "credit-card-2-front-fill", "credit-card-2-front", "credit-card-fill", "credit-card", "crop", "cup-fill", "cup-straw", "cup", "cursor-fill", "cursor-text", "cursor", "dash-circle-dotted", "dash-circle-fill", "dash-circle", "dash-square-dotted", "dash-square-fill", "dash-square", "dash", "diagram-2-fill", "diagram-2", "diagram-3-fill", "diagram-3", "diamond-fill", "diamond-half", "diamond", "dice-1-fill", "dice-1", "dice-2-fill", "dice-2", "dice-3-fill", "dice-3", "dice-4-fill", "dice-4", "dice-5-fill", "dice-5", "dice-6-fill", "dice-6", "disc-fill", "disc", "discord", "display-fill", "display", "distribute-horizontal", "distribute-vertical", "door-closed-fill", "door-closed", "door-open-fill", "door-open", "dot", "download", "droplet-fill", "droplet-half", "droplet", "earbuds", "easel-fill", "easel", "egg-fill", "egg-fried", "egg", "eject-fill", "eject", "emoji-angry-fill", "emoji-angry", "emoji-dizzy-fill", "emoji-dizzy", "emoji-expressionless-fill", "emoji-expressionless", "emoji-frown-fill", "emoji-frown", "emoji-heart-eyes-fill", "emoji-heart-eyes", "emoji-laughing-fill", "emoji-laughing", "emoji-neutral-fill", "emoji-neutral", "emoji-smile-fill", "emoji-smile-upside-down-fill", "emoji-smile-upside-down", "emoji-smile", "emoji-sunglasses-fill", "emoji-sunglasses", "emoji-wink-fill", "emoji-wink", "envelope-fill", "envelope-open-fill", "envelope-open", "envelope", "eraser-fill", "eraser", "exclamation-circle-fill", "exclamation-circle", "exclamation-diamond-fill", "exclamation-diamond", "exclamation-octagon-fill", "exclamation-octagon", "exclamation-square-fill", "exclamation-square", "exclamation-triangle-fill", "exclamation-triangle", "exclamation", "exclude", "eye-fill", "eye-slash-fill", "eye-slash", "eye", "eyedropper", "eyeglasses", "facebook", "file-arrow-down-fill", "file-arrow-down", "file-arrow-up-fill", "file-arrow-up", "file-bar-graph-fill", "file-bar-graph", "file-binary-fill", "file-binary", "file-break-fill", "file-break", "file-check-fill", "file-check", "file-code-fill", "file-code", "file-diff-fill", "file-diff", "file-earmark-arrow-down-fill", "file-earmark-arrow-down", "file-earmark-arrow-up-fill", "file-earmark-arrow-up", "file-earmark-bar-graph-fill", "file-earmark-bar-graph", "file-earmark-binary-fill", "file-earmark-binary", "file-earmark-break-fill", "file-earmark-break", "file-earmark-check-fill", "file-earmark-check", "file-earmark-code-fill", "file-earmark-code", "file-earmark-diff-fill", "file-earmark-diff", "file-earmark-easel-fill", "file-earmark-easel", "file-earmark-excel-fill", "file-earmark-excel", "file-earmark-fill", "file-earmark-font-fill", "file-earmark-font", "file-earmark-image-fill", "file-earmark-image", "file-earmark-lock-fill", "file-earmark-lock", "file-earmark-lock2-fill", "file-earmark-lock2", "file-earmark-medical-fill", "file-earmark-medical", "file-earmark-minus-fill", "file-earmark-minus", "file-earmark-music-fill", "file-earmark-music", "file-earmark-person-fill", "file-earmark-person", "file-earmark-play-fill", "file-earmark-play", "file-earmark-plus-fill", "file-earmark-plus", "file-earmark-post-fill", "file-earmark-post", "file-earmark-ppt-fill", "file-earmark-ppt", "file-earmark-richtext-fill", "file-earmark-richtext", "file-earmark-ruled-fill", "file-earmark-ruled", "file-earmark-slides-fill", "file-earmark-slides", "file-earmark-spreadsheet-fill", "file-earmark-spreadsheet", "file-earmark-text-fill", "file-earmark-text", "file-earmark-word-fill", "file-earmark-word", "file-earmark-x-fill", "file-earmark-x", "file-earmark-zip-fill", "file-earmark-zip", "file-earmark", "file-easel-fill", "file-easel", "file-excel-fill", "file-excel", "file-fill", "file-font-fill", "file-font", "file-image-fill", "file-image", "file-lock-fill", "file-lock", "file-lock2-fill", "file-lock2", "file-medical-fill", "file-medical", "file-minus-fill", "file-minus", "file-music-fill", "file-music", "file-person-fill", "file-person", "file-play-fill", "file-play", "file-plus-fill", "file-plus", "file-post-fill", "file-post", "file-ppt-fill", "file-ppt", "file-richtext-fill", "file-richtext", "file-ruled-fill", "file-ruled", "file-slides-fill", "file-slides", "file-spreadsheet-fill", "file-spreadsheet", "file-text-fill", "file-text", "file-word-fill", "file-word", "file-x-fill", "file-x", "file-zip-fill", "file-zip", "file", "files-alt", "files", "film", "filter-circle-fill", "filter-circle", "filter-left", "filter-right", "filter-square-fill", "filter-square", "filter", "flag-fill", "flag", "flower1", "flower2", "flower3", "folder-check", "folder-fill", "folder-minus", "folder-plus", "folder-symlink-fill", "folder-symlink", "folder-x", "folder", "folder2-open", "folder2", "fonts", "forward-fill", "forward", "front", "fullscreen-exit", "fullscreen", "funnel-fill", "funnel", "gear-fill", "gear-wide-connected", "gear-wide", "gear", "gem", "geo-alt-fill", "geo-alt", "geo-fill", "geo", "gift-fill", "gift", "github", "globe", "globe2", "google", "graph-down", "graph-up", "grid-1x2-fill", "grid-1x2", "grid-3x2-gap-fill", "grid-3x2-gap", "grid-3x2", "grid-3x3-gap-fill", "grid-3x3-gap", "grid-3x3", "grid-fill", "grid", "grip-horizontal", "grip-vertical", "hammer", "hand-index-fill", "hand-index-thumb-fill", "hand-index-thumb", "hand-index", "hand-thumbs-down-fill", "hand-thumbs-down", "hand-thumbs-up-fill", "hand-thumbs-up", "handbag-fill", "handbag", "hash", "hdd-fill", "hdd-network-fill", "hdd-network", "hdd-rack-fill", "hdd-rack", "hdd-stack-fill", "hdd-stack", "hdd", "headphones", "headset", "heart-fill", "heart-half", "heart", "heptagon-fill", "heptagon-half", "heptagon", "hexagon-fill", "hexagon-half", "hexagon", "hourglass-bottom", "hourglass-split", "hourglass-top", "hourglass", "house-door-fill", "house-door", "house-fill", "house", "hr", "hurricane", "image-alt", "image-fill", "image", "images", "inbox-fill", "inbox", "inboxes-fill", "inboxes", "info-circle-fill", "info-circle", "info-square-fill", "info-square", "info", "input-cursor-text", "input-cursor", "instagram", "intersect", "journal-album", "journal-arrow-down", "journal-arrow-up", "journal-bookmark-fill", "journal-bookmark", "journal-check", "journal-code", "journal-medical", "journal-minus", "journal-plus", "journal-richtext", "journal-text", "journal-x", "journal", "journals", "joystick", "justify-left", "justify-right", "justify", "kanban-fill", "kanban", "key-fill", "key", "keyboard-fill", "keyboard", "ladder", "lamp-fill", "lamp", "laptop-fill", "laptop", "layer-backward", "layer-forward", "layers-fill", "layers-half", "layers", "layout-sidebar-inset-reverse", "layout-sidebar-inset", "layout-sidebar-reverse", "layout-sidebar", "layout-split", "layout-text-sidebar-reverse", "layout-text-sidebar", "layout-text-window-reverse", "layout-text-window", "layout-three-columns", "layout-wtf", "life-preserver", "lightbulb-fill", "lightbulb-off-fill", "lightbulb-off", "lightbulb", "lightning-charge-fill", "lightning-charge", "lightning-fill", "lightning", "link-45deg", "link", "linkedin", "list-check", "list-nested", "list-ol", "list-stars", "list-task", "list-ul", "list", "lock-fill", "lock", "mailbox", "mailbox2", "map-fill", "map", "markdown-fill", "markdown", "mask", "megaphone-fill", "megaphone", "menu-app-fill", "menu-app", "menu-button-fill", "menu-button-wide-fill", "menu-button-wide", "menu-button", "menu-down", "menu-up", "mic-fill", "mic-mute-fill", "mic-mute", "mic", "minecart-loaded", "minecart", "moisture", "moon-fill", "moon-stars-fill", "moon-stars", "moon", "mouse-fill", "mouse", "mouse2-fill", "mouse2", "mouse3-fill", "mouse3", "music-note-beamed", "music-note-list", "music-note", "music-player-fill", "music-player", "newspaper", "node-minus-fill", "node-minus", "node-plus-fill", "node-plus", "nut-fill", "nut", "octagon-fill", "octagon-half", "octagon", "option", "outlet", "paint-bucket", "palette-fill", "palette", "palette2", "paperclip", "paragraph", "patch-check-fill", "patch-check", "patch-exclamation-fill", "patch-exclamation", "patch-minus-fill", "patch-minus", "patch-plus-fill", "patch-plus", "patch-question-fill", "patch-question", "pause-btn-fill", "pause-btn", "pause-circle-fill", "pause-circle", "pause-fill", "pause", "peace-fill", "peace", "pen-fill", "pen", "pencil-fill", "pencil-square", "pencil", "pentagon-fill", "pentagon-half", "pentagon", "people-fill", "people", "percent", "person-badge-fill", "person-badge", "person-bounding-box", "person-check-fill", "person-check", "person-circle", "person-dash-fill", "person-dash", "person-fill", "person-lines-fill", "person-plus-fill", "person-plus", "person-square", "person-x-fill", "person-x", "person", "phone-fill", "phone-landscape-fill", "phone-landscape", "phone-vibrate-fill", "phone-vibrate", "phone", "pie-chart-fill", "pie-chart", "pin-angle-fill", "pin-angle", "pin-fill", "pin", "pip-fill", "pip", "play-btn-fill", "play-btn", "play-circle-fill", "play-circle", "play-fill", "play", "plug-fill", "plug", "plus-circle-dotted", "plus-circle-fill", "plus-circle", "plus-square-dotted", "plus-square-fill", "plus-square", "plus", "power", "printer-fill", "printer", "puzzle-fill", "puzzle", "question-circle-fill", "question-circle", "question-diamond-fill", "question-diamond", "question-octagon-fill", "question-octagon", "question-square-fill", "question-square", "question", "rainbow", "receipt-cutoff", "receipt", "reception-0", "reception-1", "reception-2", "reception-3", "reception-4", "record-btn-fill", "record-btn", "record-circle-fill", "record-circle", "record-fill", "record", "record2-fill", "record2", "reply-all-fill", "reply-all", "reply-fill", "reply", "rss-fill", "rss", "rulers", "save-fill", "save", "save2-fill", "save2", "scissors", "screwdriver", "search", "segmented-nav", "server", "share-fill", "share", "shield-check", "shield-exclamation", "shield-fill-check", "shield-fill-exclamation", "shield-fill-minus", "shield-fill-plus", "shield-fill-x", "shield-fill", "shield-lock-fill", "shield-lock", "shield-minus", "shield-plus", "shield-shaded", "shield-slash-fill", "shield-slash", "shield-x", "shield", "shift-fill", "shift", "shop-window", "shop", "shuffle", "signpost-2-fill", "signpost-2", "signpost-fill", "signpost-split-fill", "signpost-split", "signpost", "sim-fill", "sim", "skip-backward-btn-fill", "skip-backward-btn", "skip-backward-circle-fill", "skip-backward-circle", "skip-backward-fill", "skip-backward", "skip-end-btn-fill", "skip-end-btn", "skip-end-circle-fill", "skip-end-circle", "skip-end-fill", "skip-end", "skip-forward-btn-fill", "skip-forward-btn", "skip-forward-circle-fill", "skip-forward-circle", "skip-forward-fill", "skip-forward", "skip-start-btn-fill", "skip-start-btn", "skip-start-circle-fill", "skip-start-circle", "skip-start-fill", "skip-start", "slack", "slash-circle-fill", "slash-circle", "slash-square-fill", "slash-square", "slash", "sliders", "smartwatch", "snow", "snow2", "snow3", "sort-alpha-down-alt", "sort-alpha-down", "sort-alpha-up-alt", "sort-alpha-up", "sort-down-alt", "sort-down", "sort-numeric-down-alt", "sort-numeric-down", "sort-numeric-up-alt", "sort-numeric-up", "sort-up-alt", "sort-up", "soundwave", "speaker-fill", "speaker", "speedometer", "speedometer2", "spellcheck", "square-fill", "square-half", "square", "stack", "star-fill", "star-half", "star", "stars", "stickies-fill", "stickies", "sticky-fill", "sticky", "stop-btn-fill", "stop-btn", "stop-circle-fill", "stop-circle", "stop-fill", "stop", "stoplights-fill", "stoplights", "stopwatch-fill", "stopwatch", "subtract", "suit-club-fill", "suit-club", "suit-diamond-fill", "suit-diamond", "suit-heart-fill", "suit-heart", "suit-spade-fill", "suit-spade", "sun-fill", "sun", "sunglasses", "sunrise-fill", "sunrise", "sunset-fill", "sunset", "symmetry-horizontal", "symmetry-vertical", "table", "tablet-fill", "tablet-landscape-fill", "tablet-landscape", "tablet", "tag-fill", "tag", "tags-fill", "tags", "telegram", "telephone-fill", "telephone-forward-fill", "telephone-forward", "telephone-inbound-fill", "telephone-inbound", "telephone-minus-fill", "telephone-minus", "telephone-outbound-fill", "telephone-outbound", "telephone-plus-fill", "telephone-plus", "telephone-x-fill", "telephone-x", "telephone", "terminal-fill", "terminal", "text-center", "text-indent-left", "text-indent-right", "text-left", "text-paragraph", "text-right", "textarea-resize", "textarea-t", "textarea", "thermometer-half", "thermometer-high", "thermometer-low", "thermometer-snow", "thermometer-sun", "thermometer", "three-dots-vertical", "three-dots", "toggle-off", "toggle-on", "toggle2-off", "toggle2-on", "toggles", "toggles2", "tools", "tornado", "trash-fill", "trash", "trash2-fill", "trash2", "tree-fill", "tree", "triangle-fill", "triangle-half", "triangle", "trophy-fill", "trophy", "tropical-storm", "truck-flatbed", "truck", "tsunami", "tv-fill", "tv", "twitch", "twitter", "type-bold", "type-h1", "type-h2", "type-h3", "type-italic", "type-strikethrough", "type-underline", "type", "ui-checks-grid", "ui-checks", "ui-radios-grid", "ui-radios", "umbrella-fill", "umbrella", "union", "unlock-fill", "unlock", "upc-scan", "upc", "upload", "vector-pen", "view-list", "view-stacked", "vinyl-fill", "vinyl", "voicemail", "volume-down-fill", "volume-down", "volume-mute-fill", "volume-mute", "volume-off-fill", "volume-off", "volume-up-fill", "volume-up", "vr", "wallet-fill", "wallet", "wallet2", "watch", "water", "whatsapp", "wifi-1", "wifi-2", "wifi-off", "wifi", "wind", "window-dock", "window-sidebar", "window", "wrench", "x-circle-fill", "x-circle", "x-diamond-fill", "x-diamond", "x-octagon-fill", "x-octagon", "x-square-fill", "x-square", "x", "youtube", "zoom-in", "zoom-out", "bank", "bank2", "bell-slash-fill", "bell-slash", "cash-coin", "check-lg", "coin", "currency-bitcoin", "currency-dollar", "currency-euro", "currency-exchange", "currency-pound", "currency-yen", "dash-lg", "exclamation-lg", "file-earmark-pdf-fill", "file-earmark-pdf", "file-pdf-fill", "file-pdf", "gender-ambiguous", "gender-female", "gender-male", "gender-trans", "headset-vr", "info-lg", "mastodon", "messenger", "piggy-bank-fill", "piggy-bank", "pin-map-fill", "pin-map", "plus-lg", "question-lg", "recycle", "reddit", "safe-fill", "safe2-fill", "safe2", "sd-card-fill", "sd-card", "skype", "slash-lg", "translate", "x-lg", "safe", "apple", "microsoft", "windows", "behance", "dribbble", "line", "medium", "paypal", "pinterest", "signal", "snapchat", "spotify", "stack-overflow", "strava", "wordpress", "vimeo", "activity", "easel2-fill", "easel2", "easel3-fill", "easel3", "fan", "fingerprint", "graph-down-arrow", "graph-up-arrow", "hypnotize", "magic", "person-rolodex", "person-video", "person-video2", "person-video3", "person-workspace", "radioactive", "webcam-fill", "webcam", "yin-yang", "bandaid-fill", "bandaid", "bluetooth", "body-text", "boombox", "boxes", "dpad-fill", "dpad", "ear-fill", "ear", "envelope-check-1", "envelope-check-fill", "envelope-check", "envelope-dash-1", "envelope-dash-fill", "envelope-dash", "envelope-exclamation-1", "envelope-exclamation-fill", "envelope-exclamation", "envelope-plus-fill", "envelope-plus", "envelope-slash-1", "envelope-slash-fill", "envelope-slash", "envelope-x-1", "envelope-x-fill", "envelope-x", "explicit-fill", "explicit", "git", "infinity", "list-columns-reverse", "list-columns", "meta", "mortorboard-fill", "mortorboard", "nintendo-switch", "pc-display-horizontal", "pc-display", "pc-horizontal", "pc", "playstation", "plus-slash-minus", "projector-fill", "projector", "qr-code-scan", "qr-code", "quora", "quote", "robot", "send-check-fill", "send-check", "send-dash-fill", "send-dash", "send-exclamation-1", "send-exclamation-fill", "send-exclamation", "send-fill", "send-plus-fill", "send-plus", "send-slash-fill", "send-slash", "send-x-fill", "send-x", "send", "steam", "terminal-dash-1", "terminal-dash", "terminal-plus", "terminal-split", "ticket-detailed-fill", "ticket-detailed", "ticket-fill", "ticket-perferated-fill", "ticket-perferated", "ticket", "tiktok", "window-dash", "window-desktop", "window-fullscreen", "window-plus", "window-split", "window-stack", "window-x", "xbox", "ethernet", "hdmi-fill", "hdmi", "usb-c-fill", "usb-c", "usb-fill", "usb-plug-fill", "usb-plug", "usb-symbol", "usb", "boombox-fill", "displayport-1", "displayport", "gpu-card", "memory", "modem-fill", "modem", "motherboard-fill", "motherboard", "optical-audio-fill", "optical-audio", "pci-card", "router-fill", "router", "ssd-fill", "ssd", "thunderbolt-fill", "thunderbolt", "usb-drive-fill", "usb-drive", "usb-micro-fill", "usb-micro", "usb-mini-fill", "usb-mini", "cloud-haze2", "device-hdd-fill", "device-hdd", "device-ssd-fill", "device-ssd", "displayport-fill", "mortarboard-fill", "mortarboard", "terminal-x" ]
18.325748
34
0.606954
3b1146632b5c43a1509891fe7e91718278608cb0
2,179
js
JavaScript
src/utils/math.js
nicklee100/cliff-effects
e1aef4de04c8541c18a3fc80ef67a832aee5668a
[ "MIT" ]
null
null
null
src/utils/math.js
nicklee100/cliff-effects
e1aef4de04c8541c18a3fc80ef67a832aee5668a
[ "MIT" ]
null
null
null
src/utils/math.js
nicklee100/cliff-effects
e1aef4de04c8541c18a3fc80ef67a832aee5668a
[ "MIT" ]
null
null
null
/** For different kinds of math operations we need, some unconventional */ const sum = function ( vals ) { var total = 0; for (let vali = 0; vali < vals.length; vali++) { total += vals[ vali ]; }; return total; }; const roundMoney = function ( val ) { // Only round values for display. In actual calculations and // storage objects, keep things exact. Also, this doesn't restrict // to two decimal places. Do that in the input's attributes. return ( Math.round(val * 100) / 100 ); // val = '' returns 0 }; // End roundMoney() /** * Turns a value into a float, limits it in between min and max, and * makes sure to return a number (not NaN). * * @todo Testing required */ const limit = function ( initialVal, minMax ) { /** @todo Add trailing 0's somewhere */ var min = minMax.min, max = minMax.max; var raw = parseFloat( initialVal ), value = raw; if ( typeof min === 'number' && !isNaN(min) ) { value = Math.max( min, raw ); } if ( typeof max === 'number' && !isNaN(max) ) { value = Math.min( max, raw ); } if ( isNaN( value ) ) { value = 0; } return value; }; // End limit() var toMonthlyAmount = {}; toMonthlyAmount.weekly = function ( evnt, weeklyVal ) { /** @see {@link https://docs.google.com/document/d/13kb1hsxMi6pN9oAUGsTatDz4OSX5IeDLF9B-ddPjMCk/edit#heading=h.hxz256tmbsz9} */ var monthlyRaw = weeklyVal * 4.33, monthly = toMonthlyAmount[ 'monthly' ]( evnt, monthlyRaw ); return monthly; }; // End toMonthlyAmount.weekly() toMonthlyAmount.monthly = function ( evnt, monthlyVal ) { // Monthly is used for a lot of things and is the one we want to store var monthlyInBounds = limit( monthlyVal, { min: 0 } ); return monthlyInBounds; }; // End toMonthlyAmount.monthly() toMonthlyAmount.yearly = function ( evnt, yearlyVal ) { /** @see {@link https://docs.google.com/document/d/13kb1hsxMi6pN9oAUGsTatDz4OSX5IeDLF9B-ddPjMCk/edit#heading=h.hxz256tmbsz9} */ var monthlyRaw = ( yearlyVal / 12 ), monthly = toMonthlyAmount[ 'monthly' ]( evnt, monthlyRaw ); return monthly; }; // End toMonthlyAmount.yearly() export { sum, roundMoney, limit, toMonthlyAmount };
29.849315
130
0.656723
3b1151b7504ee189740d3082068a5b4267bf6dd7
1,469
js
JavaScript
app/assets/javascripts/reporting.js
awongCM/timesheet-ruby
2805241076d675367da78b7c38bf0d9240c49b25
[ "MIT" ]
null
null
null
app/assets/javascripts/reporting.js
awongCM/timesheet-ruby
2805241076d675367da78b7c38bf0d9240c49b25
[ "MIT" ]
null
null
null
app/assets/javascripts/reporting.js
awongCM/timesheet-ruby
2805241076d675367da78b7c38bf0d9240c49b25
[ "MIT" ]
null
null
null
// TODOs - page specific javascript $('.js-reporting').ready( function(){ console.log("init_reporting"); //TODO - to use these configs when passing json from rails timesheet models if (document.getElementById("popChart") === null) { return; } var popCanvas = document.getElementById("popChart").getContext("2d"); var content_tag = $('#rb_reporting_data'); var jsondata = { labels: content_tag.data('labels'), datasets: [{ label: content_tag.data('legend'), data: content_tag.data('data'), // One background color for all backgroundColor: '#34495E' }] }; var barChart = new Chart(popCanvas, { type: 'bar', data: jsondata, //bar chart config options options: { title: { display: true, text: content_tag.data('title') }, scales: { yAxes : [{ display: true, ticks: { min: 0, max: 16 } }] }, tooltips: { yAlign: 'bottom', xAlign: 'center', position: 'average', xPadding: 16, yPadding: 10, backgroundColor: '#26B99A', titleFontStyle: 'normal', titleMarginBottom: 15 }, legend: { display: true, position: 'bottom', labels: { boxWidth: 15 } } } }); });
22.6
77
0.494894
3b118ea19f4dc088bac41da4b624bad487232392
1,166
js
JavaScript
book/interview-questions/most-common-words-ii.js
e-ntro-py/dsa.js-data-structures-algorithms-javascript
ae41553426a8d128db7958769bc8cfaa753acd23
[ "MIT" ]
4,365
2019-06-28T13:26:14.000Z
2022-03-31T09:16:59.000Z
book/interview-questions/most-common-words-ii.js
e-ntro-py/dsa.js-data-structures-algorithms-javascript
ae41553426a8d128db7958769bc8cfaa753acd23
[ "MIT" ]
74
2019-06-28T20:48:25.000Z
2022-03-09T04:13:31.000Z
book/interview-questions/most-common-words-ii.js
e-ntro-py/dsa.js-data-structures-algorithms-javascript
ae41553426a8d128db7958769bc8cfaa753acd23
[ "MIT" ]
609
2019-07-01T16:54:25.000Z
2022-03-31T10:12:52.000Z
/** * Given text and banned words, * return the most common words in descending order. * @param {string} text - The text to parse. * @param {number} n - The number of results. * @return {string[]} */ // tag::map[] function mostCommonWords(text, n = 1) { const words = text.toLowerCase().split(/\W+/); const map = words .reduce((m, w) => m.set(w, 1 + (m.get(w) || 0)), new Map()); return Array.from(map.entries()) .sort((a, b) => b[1] - a[1]) .slice(0, n) .map((w) => w[0]); } // end::map[] // tag::brute[] function mostCommonWordsBrute(text, n = 1) { const words = text.toLowerCase().split(/\W+/); const entries = []; // array of [word, count] pairs for (let i = 0; i < words.length; i++) { if (!words[i]) continue; let count = 1; for (let j = i + 1; j < words.length; j++) { if (words[i] === words[j]) { count++; words[j] = null; // removed letter once it's counted. } } entries.push([words[i], count]); } return entries .sort((a, b) => b[1] - a[1]) .slice(0, n) .map((w) => w[0]); } // end::brute[] module.exports = { mostCommonWords, mostCommonWordsBrute };
24.291667
64
0.54717
3b1310213693a4781a0512414933ec3a0c3ec747
495
js
JavaScript
data/providers/stackpath.js
KevinLu/pops
485a0ab8ea4a4fc21fe5a77d45139615616b47bb
[ "MIT" ]
15
2020-09-29T21:16:05.000Z
2022-03-29T04:15:11.000Z
data/providers/stackpath.js
KevinLu/pops
485a0ab8ea4a4fc21fe5a77d45139615616b47bb
[ "MIT" ]
20
2020-10-03T03:47:45.000Z
2022-03-07T07:04:42.000Z
data/providers/stackpath.js
KevinLu/pops
485a0ab8ea4a4fc21fe5a77d45139615616b47bb
[ "MIT" ]
6
2020-10-03T23:53:12.000Z
2022-02-13T01:18:49.000Z
const stackpath = { name: "StackPath", url: "https://www.stackpath.com/", pops: [ "AMS", "ARN", "ATL", "BOG", "BRU", "CDG", "DCA", "DEN", "DFW", "EZE", "FRA", "GIG", "GRU", "HKG", "ICN", "JFK", "LAX", "LHR", "LIM", "MAD", "MEL", "MIA", "MXP", "NRT", "ORD", "PHX", "SCL", "SEA", "SFO", "SIN", "SJC", "SYD", "WAW", "YYZ" ] }; export default stackpath;
11.511628
36
0.359596
3b13490c2e4720fb05ff411adf74952b0aacd4c3
4,578
js
JavaScript
src/locales/de-DE.js
christianblais/shopify-translator
8ae8239248c01335839d1912dccf5bec6f287438
[ "MIT" ]
16
2017-04-01T18:53:58.000Z
2019-11-02T09:21:16.000Z
src/locales/de-DE.js
christianblais/shopify-translator
8ae8239248c01335839d1912dccf5bec6f287438
[ "MIT" ]
8
2017-04-04T12:56:09.000Z
2018-01-25T15:40:58.000Z
src/locales/de-DE.js
christianblais/shopify-translator
8ae8239248c01335839d1912dccf5bec6f287438
[ "MIT" ]
18
2017-04-04T12:31:48.000Z
2018-10-09T12:05:19.000Z
if (typeof LANGUAGES === 'undefined') { var LANGUAGES = {} } LANGUAGES['de-DE'] = { 'general': { 'sections': { 'home': 'Übersicht', 'orders': 'Bestellungen', 'drafts': 'Entwürfe', 'checkouts': 'Warenkorbabbrecher', 'products': 'Produkte', 'customers': 'Kunden', 'reports': 'Berichte', 'discounts': 'Rabatte', 'sales-channels': 'Verkaufskanäle', 'channels': 'Kanäle', 'online_store': 'Onlineshop', 'buy_button': 'Buy Button', 'mobile_app': "Mobile App", 'pos': "Point of Sale", 'apps': "Apps", 'settings': "Einstellungen", 'online_preferences': "Einstellungen", 'themes': "Themes", 'blogs': "Blogs", 'pages': "Seiten", 'navigation': "Navigation", 'domains': "Domains", 'inventory': "Lagerhaltung", 'inventory_transfers': "Lagerzugänge", 'collections': "Kollektionen", 'gift_cards': "Geschenkgutscheine", 'files': "Dateien", 'taxes': "Steuern", 'checkout': "Checkout", 'general': "Allgemein", 'payments': "Zahlungen", 'shipping': "Versand", 'notifications': "Benachrichtigungen", 'plan': "Tarif", 'account': "Konto", }, 'search': { 'placeholder': 'Suchen', }, 'buttons': { 'export': 'Exportieren', 'import': 'Importieren', 'save': 'Speichern', 'edit': 'Bearbeiten', 'cancel': 'Abbrechen', 'change': 'Ändern', 'destroy': "Löschen", 'post': 'Veröffentlichen', 'filter': 'Filtern' } }, 'modal': { 'titles': { 'capture-payment': "Zahlung akzeptieren", }, }, 'home-index': { 'cards': { 'api_buy_button_create_first_embed_card': '', 'multi_image_buy_button_announcement_card': '', }, 'today-features': { "todays-total-sales": "Heutige Umsätze", "todays-visits": "Heutige Besuche", "todays-orders": "Heutige Bestellungen", }, 'titles': { 'total-sales': "Umsätze", 'top-products': "Bestseller", }, 'buttons': { 'all-channels': "Alle Kanäle", 'online-store': "Onlineshop", 'view-order': "Bestellung ansehen", 'view-orders': "Bestellungen ansehen", 'create-button': "Button erstellen", 'create-buy-button': "Buy Button erstellen", 'learn-more': "Weitere Infos" } }, 'products-index': { 'table': { 'tabs': { 'all-products': "Alle Produkte", }, }, 'buttons': { 'add-product': "Produkt hinzufügen", }, }, 'orders-index': { 'table': { 'tabs': { 'all-orders': "Alle Bestellungen", 'open': "Offen", 'unfulfilled': "Nicht ausgeliefert", 'unpaid': "Nicht bezahlt", }, 'columns': { 'order': 'Bestellung', 'date': 'Datum', 'customer': 'Kunde', 'payment-status': 'Zahlungsstatus', 'fulfillment-status': 'Auslieferungsstatus', 'total': 'Summe', }, 'badges': { 'fulfilled': 'Ausgeliefert', 'unfulfilled': 'Nicht ausgeliefert', 'paid': 'Bezahlt', 'pending': 'Wartend', 'refunded': 'Erstattet', 'authorized': "Autorisiert" }, }, 'filters': { 'status': "Status", 'credit-card': "Kreditkarte", 'customer': "Kunde", 'payment-status': "Zahlung", 'fulfillment-status': "Auslieferungsstatus", 'tagged-with': "Getaggt", 'risk-level': "Risikoklasse", }, 'buttons': { 'create-order': "Bestellung erstellen", }, }, 'orders-show': { 'buttons': { 'print': "Drucken", 'cancel-order': "Stornieren", 'archive': "Archivieren", 'view-order-status-page': "Bestellstatus-Seite", 'capture-payment': "Zahlung akzeptieren", 'restock': "Lagerbestand anpassen", 'fulfill-items': "Ausliefern", }, 'titles': { 'order-details': 'Details', 'unfulfilled': 'Nicht ausgeliefert', 'accept-payment': 'Zahlung', 'fulfill-items': 'Ausliefern', 'risk-level': 'Risikoklasse' }, }, 'customers-show': { 'titles': { 'recent-orders': "Letzte Bestellungen", 'default-address': "Standard-Adresse", 'contact': "Information", }, }, 'draft-orders-index': { 'buttons': { 'create-order': 'Bestellung erstellen' }, 'empty': { 'title': '', 'subtitle': '' } }, 'draft': { 'buttons': { 'save-draft-order': 'Bestellung speichern' } }, }
23.597938
60
0.529707
3b13989102176be93165c3cfaa4f6e684e8f7cb8
141,292
js
JavaScript
dist/vue-grid-layout.umd.min.js
021-projects/vue-grid-layout
7b71c8df13c6fcca184a1beb334dd9d3d1da2604
[ "MIT" ]
null
null
null
dist/vue-grid-layout.umd.min.js
021-projects/vue-grid-layout
7b71c8df13c6fcca184a1beb334dd9d3d1da2604
[ "MIT" ]
null
null
null
dist/vue-grid-layout.umd.min.js
021-projects/vue-grid-layout
7b71c8df13c6fcca184a1beb334dd9d3d1da2604
[ "MIT" ]
null
null
null
/*! vue-grid-layout - 2.3.12 | (c) 2015, 2021 Gustavo Santos (JBay Solutions) <gustavo.santos@jbaysolutions.com> (http://www.jbaysolutions.com) | https://github.com/jbaysolutions/vue-grid-layout */ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueGridLayout"]=e(require("vue")):t["VueGridLayout"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};t.exports=function(t,e,n,v,b,y,x){c(n,e,v);var w,S,E,T=function(t){if(!d&&t in _)return _[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",z=b==g,M=!1,_=t.prototype,P=_[h]||_[f]||b&&_[b],I=P||T(b),j=b?z?T("entries"):I:void 0,R="Array"==e&&_.entries||P;if(R&&(E=l(R.call(new t)),E!==Object.prototype&&E.next&&(u(E,O,!0),i||"function"==typeof E[h]||s(E,h,m))),z&&P&&P.name!==g&&(M=!0,I=function(){return P.call(this)}),i&&!x||!d&&!M&&_[h]||s(_,h,I),a[e]=I,a[O]=m,b)if(w={values:z?I:T(g),keys:y?I:T(p),entries:j},x)for(S in w)S in _||o(_,S,w[S]);else r(r.P+r.F*(d||M),e,w);return w}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),c=i(n),u=a.length;return c<0||c>=u?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},1156:function(t,e,n){var i=n("ad20");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("c1ec597e",i,!0,{sourceMap:!1,shadowMode:!1})},"11e9":function(t,e,n){var i=n("52a7"),r=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=s(e,!0),c)try{return u(t,e)}catch(n){}if(a(t,e))return r(!i.f.call(t,e),t[e])}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,s=o(e),a=s.length,c=0;while(a>c)i.f(t,n=s[c++],e[n]);return t}},"18d2":function(t,e,n){"use strict";var i=n("18e9");t.exports=function(t){t=t||{};var e=t.reporter,n=t.batchProcessor,r=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(t,e){function n(){e(t)}if(i.isIE(8))r(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=c(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}}function s(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function a(t,o,a){a||(a=o,o=t,t=null),t=t||{};t.debug;function c(o,a){var c=s(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,l=window.getComputedStyle(o),h=o.offsetWidth,d=o.offsetHeight;function f(){function n(){if("static"===l.position){o.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,i,r){function o(t){return t.replace(/[^-\d\.]/g,"")}var s=i[r];"auto"!==s&&"0"!==o(s)&&(e.warn("An element that is positioned static has style."+r+"="+s+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",n),n.style.setProperty(r,"0",t.important?"important":""))};n(e,o,l,"top"),n(e,o,l,"right"),n(e,o,l,"bottom"),n(e,o,l,"left")}}function s(){function t(e,n){if(!e.contentDocument){var i=r(e);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,t(e,n)}),100))}n(e.contentDocument)}u||n();var e=this;t(e,(function(t){a(o)}))}""!==l.position&&(n(l),u=!0);var h=document.createElement("object");h.style.cssText=c,h.tabIndex=-1,h.type="text/html",h.setAttribute("aria-hidden","true"),h.onload=s,i.isIE()||(h.data="about:blank"),r(o)&&(o.appendChild(h),r(o).object=h,i.isIE()&&(h.data="about:blank"))}r(o).startSize={width:h,height:d},n?n.add(f):f()}i.isIE(8)?a(o):c(o,a)}function c(t){return r(t).object}function u(t){if(r(t)){var e=c(t);e&&(i.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),r(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(r(t).checkForObjectDocumentTimeoutId),delete r(t).object)}}return{makeDetectable:a,addListener:o,uninstall:u}}},"18e9":function(t,e,n){"use strict";var i=t.exports={};i.isIE=function(t){function e(){var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}if(!e())return!1;if(!t)return!0;var n=function(){var t,e=3,n=document.createElement("div"),i=n.getElementsByTagName("i");do{n.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(i[0]);return e>4?e:t}();return t===n},i.isLegacyOpera=function(){return!!window.opera}},"1bc3":function(t,e,n){var i=n("f772");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var i=n("f772"),r=n("e53d").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),u=a("species"),l=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=a(t),f=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!l||"split"===t&&!h){var g=/./[d],m=n(s,d,""[t],(function(t,e,n,i,r){return e.exec===c?f&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),v=m[0],b=m[1];i(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},2350:function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"===typeof btoa){var o=i(r),s=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(s).concat([o]).join("\n")}return[n].join("\n")}function i(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+n+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"===typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"===typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"===typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},2877:function(t,e,n){"use strict";function i(t,e,n,i,r,o,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):r&&(c=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return i}))},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),c="toString",u=(""+a).split(c);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||r(n,s,t[e]?""+t[e]:u.join(String(e)))),t===i?t[e]=n:a?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[s]||a.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c="prototype",u=function(){var t,e=n("230e")("iframe"),i=o.length,r="<",s=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+s+"document.F=Object"+r+"/script"+s),t.close(),u=t.F;while(i--)delete u[c][o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=i(t),n=new a,a[c]=null,n[s]=t):n=u(),void 0===e?n:r(n,e)}},"2af9":function(t,e,n){"use strict";(function(t){n.d(e,"d",(function(){return s}));n("7f7f"),n("cadf"),n("456d"),n("ac6a");var i=n("bc21");n.d(e,"a",(function(){return i["a"]}));var r=n("37c8");n.d(e,"b",(function(){return r["a"]}));var o={GridLayout:r["a"],GridItem:i["a"]};function s(t){s.installed||(s.installed=!0,Object.keys(o).forEach((function(e){t.component(e,o[e])})))}var a={install:s},c=null;"undefined"!==typeof window?c=window.Vue:"undefined"!==typeof t&&(c=t.Vue),c&&c.use(a),e["c"]=o}).call(this,n("c8ba"))},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))};a.store=i},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;function e(){return t++}return{generate:e}}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var i=n("79e5");t.exports=function(t,e){return!!t&&i((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"35e8":function(t,e,n){var i=n("d9f6"),r=n("aebd");t.exports=n("8e60")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"37c8":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-layout",style:t.mergedStyle},[t._t("default"),n("grid-item",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"vue-grid-placeholder",attrs:{x:t.placeholder.x,y:t.placeholder.y,w:t.placeholder.w,h:t.placeholder.h,i:t.placeholder.i}})],2)},r=[],o=(n("8e6e"),n("cadf"),n("456d"),n("f751"),n("fca0"),n("ac6a"),n("85f2")),s=n.n(o);function a(t,e,n){return e in t?s()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("c5f6");var c=n("8bbf"),u=n.n(c),l=n("eb59"),h=n("44e4"),d=n("bc21"),f=n("af4e");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m=n("eec4"),v={name:"GridLayout",provide:function(){return{eventBus:null,layout:this}},components:{GridItem:d["a"]},props:{autoSize:{type:Boolean,default:!0},colNum:{type:Number,default:12},rowHeight:{type:Number,default:150},maxRows:{type:Number,default:1/0},margin:{type:Array,default:function(){return[10,10]}},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},layout:{type:Array,required:!0},responsive:{type:Boolean,default:!1},responsiveLayouts:{type:Object,default:function(){return{}}},breakpoints:{type:Object,default:function(){return{lg:1200,md:996,sm:768,xs:480,xxs:0}}},cols:{type:Object,default:function(){return{lg:12,md:10,sm:6,xs:4,xxs:2}}},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},data:function(){return{width:null,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:-1},layouts:{},lastBreakpoint:null,originalLayout:null}},created:function(){var t=this;t.resizeEventHandler=function(e,n,i,r,o,s){t.resizeEvent(e,n,i,r,o,s)},t.dragEventHandler=function(e,n,i,r,o,s){t.dragEvent(e,n,i,r,o,s)},t._provided.eventBus=new u.a,t.eventBus=t._provided.eventBus,t.eventBus.$on("resizeEvent",t.resizeEventHandler),t.eventBus.$on("dragEvent",t.dragEventHandler),t.$emit("layout-created",t.layout)},beforeDestroy:function(){this.eventBus.$off("resizeEvent",this.resizeEventHandler),this.eventBus.$off("dragEvent",this.dragEventHandler),this.eventBus.$destroy(),Object(f["c"])("resize",this.onWindowResize),this.erd&&this.erd.uninstall(this.$refs.item)},beforeMount:function(){this.$emit("layout-before-mount",this.layout)},mounted:function(){this.$emit("layout-mounted",this.layout),this.$nextTick((function(){Object(l["l"])(this.layout),this.originalLayout=this.layout;var t=this;this.$nextTick((function(){t.onWindowResize(),t.initResponsiveFeatures(),Object(f["a"])("resize",t.onWindowResize),Object(l["c"])(t.layout,t.verticalCompact),t.$emit("layout-updated",t.layout),t.updateHeight(),t.$nextTick((function(){this.erd=m({strategy:"scroll",callOnAdd:!1}),this.erd.listenTo(t.$refs.item,(function(){t.onWindowResize()}))}))}))}))},watch:{width:function(t,e){var n=this;this.$nextTick((function(){var t=this;this.eventBus.$emit("updateWidth",this.width),null===e&&this.$nextTick((function(){t.$emit("layout-ready",n.layout)})),this.updateHeight()}))},layout:function(){this.layoutUpdate()},colNum:function(t){this.eventBus.$emit("setColNum",t)},rowHeight:function(){this.eventBus.$emit("setRowHeight",this.rowHeight)},isDraggable:function(){this.eventBus.$emit("setDraggable",this.isDraggable)},isResizable:function(){this.eventBus.$emit("setResizable",this.isResizable)},responsive:function(){this.responsive||(this.$emit("update:layout",this.originalLayout),this.eventBus.$emit("setColNum",this.colNum)),this.onWindowResize()},maxRows:function(){this.eventBus.$emit("setMaxRows",this.maxRows)},margin:function(){this.updateHeight()}},methods:{layoutUpdate:function(){if(void 0!==this.layout&&null!==this.originalLayout){if(this.layout.length!==this.originalLayout.length){var t=this.findDifference(this.layout,this.originalLayout);t.length>0&&(this.layout.length>this.originalLayout.length?this.originalLayout=this.originalLayout.concat(t):this.originalLayout=this.originalLayout.filter((function(e){return!t.some((function(t){return e.i===t.i}))}))),this.lastLayoutLength=this.layout.length,this.initResponsiveFeatures()}Object(l["c"])(this.layout,this.verticalCompact),this.eventBus.$emit("updateWidth",this.width),this.updateHeight(),this.$emit("layout-updated",this.layout)}},updateHeight:function(){this.mergedStyle={height:this.containerHeight()}},onWindowResize:function(){null!==this.$refs&&null!==this.$refs.item&&void 0!==this.$refs.item&&(this.width=this.$refs.item.offsetWidth),this.eventBus.$emit("resizeEvent")},containerHeight:function(){if(this.autoSize){var t=Object(l["a"])(this.layout)*(this.rowHeight+this.margin[1])+this.margin[1]+"px";return t}},dragEvent:function(t,e,n,i,r,o){var s=Object(l["f"])(this.layout,e);void 0!==s&&null!==s||(s={x:0,y:0}),"dragmove"===t||"dragstart"===t?(this.placeholder.i=e,this.placeholder.x=s.x,this.placeholder.y=s.y,this.placeholder.w=o,this.placeholder.h=r,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.layout=Object(l["g"])(this.layout,s,n,i,!0,this.preventCollision),Object(l["c"])(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"dragend"===t&&this.$emit("layout-updated",this.layout)},resizeEvent:function(t,e,n,i,r,o){var s,a=Object(l["f"])(this.layout,e);if(void 0!==a&&null!==a||(a={h:0,w:0}),this.preventCollision){var c=Object(l["e"])(this.layout,g(g({},a),{},{w:o,h:r})).filter((function(t){return t.i!==a.i}));if(s=c.length>0,s){var u=1/0,h=1/0;c.forEach((function(t){t.x>a.x&&(u=Math.min(u,t.x)),t.y>a.y&&(h=Math.min(h,t.y))})),Number.isFinite(u)&&(a.w=u-a.x),Number.isFinite(h)&&(a.h=h-a.y)}}s||(a.w=o,a.h=r),"resizestart"===t||"resizemove"===t?(this.placeholder.i=e,this.placeholder.x=n,this.placeholder.y=i,this.placeholder.w=a.w,this.placeholder.h=a.h,this.$nextTick((function(){this.isDragging=!0})),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick((function(){this.isDragging=!1})),this.responsive&&this.responsiveGridLayout(),Object(l["c"])(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"resizeend"===t&&this.$emit("layout-updated",this.layout)},responsiveGridLayout:function(){var t=Object(h["b"])(this.breakpoints,this.width),e=Object(h["c"])(t,this.cols);null==this.lastBreakpoint||this.layouts[this.lastBreakpoint]||(this.layouts[this.lastBreakpoint]=Object(l["b"])(this.layout));var n=Object(h["a"])(this.originalLayout,this.layouts,this.breakpoints,t,this.lastBreakpoint,e,this.verticalCompact);this.layouts[t]=n,this.lastBreakpoint!==t&&this.$emit("breakpoint-changed",t,n),this.$emit("update:layout",n),this.lastBreakpoint=t,this.eventBus.$emit("setColNum",Object(h["c"])(t,this.cols))},initResponsiveFeatures:function(){this.layouts=Object.assign({},this.responsiveLayouts)},findDifference:function(t,e){var n=t.filter((function(t){return!e.some((function(e){return t.i===e.i}))})),i=e.filter((function(e){return!t.some((function(t){return e.i===t.i}))}));return n.concat(i)}}},b=v,y=(n("e279"),n("2877")),x=Object(y["a"])(b,i,r,!1,null,null,null);e["a"]=x.exports},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},"44e4":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));n("55dd"),n("ac6a"),n("cadf"),n("456d");var i=n("eb59");function r(t,e){for(var n=a(t),i=n[0],r=1,o=n.length;r<o;r++){var s=n[r];e>t[s]&&(i=s)}return i}function o(t,e){if(!e[t])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function s(t,e,n,r,o,s,c){if(e[r])return Object(i["b"])(e[r]);for(var u=t,l=a(n),h=l.slice(l.indexOf(r)),d=0,f=h.length;d<f;d++){var p=h[d];if(e[p]){u=e[p];break}}return u=Object(i["b"])(u||[]),Object(i["c"])(Object(i["d"])(u,{cols:s}),c)}function a(t){var e=Object.keys(t);return e.sort((function(e,n){return t[e]-t[n]}))}},"454f":function(t,e,n){n("46a7");var i=n("584a").Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"46a7":function(t,e,n){var i=n("63b6");i(i.S+i.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},4917:function(t,e,n){"use strict";var i=n("cb7c"),r=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,(function(t,e,n,a){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=i(t),u=String(this);if(!c.global)return s(c,u);var l=c.unicode;c.lastIndex=0;var h,d=[],f=0;while(null!==(h=s(c,u))){var p=String(h[0]);d[f]=p,""===p&&(c.lastIndex=o(u,r(c.lastIndex),l)),f++}return 0===f?null:d}]}))},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],s=o[0],a=o[1],c=o[2],u=o[3],l={id:t+":"+r,css:a,media:c,sourceMap:u};i[s]?i[s].parts.push(l):n.push(i[s]={id:s,parts:[l]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=r&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,u=!1,l=function(){},h=null,d="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,r){u=n,h=r||{};var s=i(t,e);return g(s),function(e){for(var n=[],r=0;r<s.length;r++){var a=s[r],c=o[a.id];c.refs--,n.push(c)}e?(s=i(t,e),g(s)):s=[];for(r=0;r<n.length;r++){c=n[r];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(v(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(r=0;r<n.parts.length;r++)s.push(v(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:s}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,i=document.querySelector("style["+d+'~="'+t.id+'"]');if(i){if(u)return l;i.parentNode.removeChild(i)}if(f){var r=c++;i=a||(a=m()),e=y.bind(null,i,r,!1),n=y.bind(null,i,r,!0)}else i=m(),e=x.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function y(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=b(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function x(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(d,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var i=t.get(n);return void 0===i?[]:e[i]||[]}function i(n,i){var r=t.get(n);e[r]||(e[r]=[]),e[r].push(i)}function r(t,e){for(var i=n(t),r=0,o=i.length;r<o;++r)if(i[r]===e){i.splice(r,1);break}}function o(t){var e=n(t);e&&(e.length=0)}return{get:n,add:i,removeListener:r,removeAllListeners:o}}},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;function i(t){var e=n(t);return e&&void 0!==e.id?e.id:null}function r(t){var i=n(t);if(!i)throw new Error("setId required the element to have a resize detection state.");var r=e.generate();return i.id=r,r}return{get:i,set:r}}},"50bf":function(t,e,n){"use strict";var i=t.exports={};function r(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}i.getOption=r},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,s=r,a="lastIndex",c=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[a]||0!==e[a]}(),u=void 0!==/()??/.exec("")[1],l=c||u;l&&(s=function(t){var e,n,s,l,h=this;return u&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),c&&(e=h[a]),s=r.call(h,t),c&&s&&(h[a]=h.global?s.index+s[0].length:e),u&&s&&s.length>1&&o.call(s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s}),t.exports=s},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",s=r[o]||(r[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,n){"use strict";var i=n("5ca1"),r=n("d8e8"),o=n("4bf8"),s=n("79e5"),a=[].sort,c=[1,2,3];i(i.P+i.F*(s((function(){c.sort(void 0)}))||!s((function(){c.sort(null)}))||!n("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),r(t))}})},"584a":function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;function n(t){var n=e(t);return n&&!!n.isDetectable}function i(t){e(t).isDetectable=!0}function r(t){return!!e(t).busy}function o(t,n){e(t).busy=!!n}return{isDetectable:n,markAsDetectable:i,isBusy:r,markBusy:o}}},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),c="prototype",u=function(t,e,n){var l,h,d,f,p=t&u.F,g=t&u.G,m=t&u.S,v=t&u.P,b=t&u.B,y=g?i:m?i[e]||(i[e]={}):(i[e]||{})[c],x=g?r:r[e]||(r[e]={}),w=x[c]||(x[c]={});for(l in g&&(n=e),n)h=!p&&y&&void 0!==y[l],d=(h?y:n)[l],f=b&&h?a(d,i):v&&"function"==typeof d?a(Function.call,d):d,y&&s(y,l,d,t&u.U),x[l]!=d&&o(x,l,f),v&&w[l]!=d&&(w[l]=d)};i.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var i=n("d3f4"),r=n("8b97").set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},"5ed4":function(t,e,n){"use strict";n("6e21")},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",s)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},"63b6":function(t,e,n){var i=n("e53d"),r=n("584a"),o=n("d864"),s=n("35e8"),a=n("07e3"),c="prototype",u=function(t,e,n){var l,h,d,f=t&u.F,p=t&u.G,g=t&u.S,m=t&u.P,v=t&u.B,b=t&u.W,y=p?r:r[e]||(r[e]={}),x=y[c],w=p?i:g?i[e]:(i[e]||{})[c];for(l in p&&(n=e),n)h=!f&&w&&void 0!==w[l],h&&a(y,l)||(d=h?w[l]:n[l],y[l]=p&&"function"!=typeof w[l]?n[l]:v&&h?o(d,i):b&&w[l]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e[c]=t[c],e}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[l]=d,t&u.R&&x&&!x[l]&&s(x,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6e21":function(t,e,n){var i=n("9cbe");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("499e").default;r("3cbd0c21",i,!0,{sourceMap:!1,shadowMode:!1})},7333:function(t,e,n){"use strict";var i=n("9e1e"),r=n("0d58"),o=n("2621"),s=n("52a7"),a=n("4bf8"),c=n("626a"),u=Object.assign;t.exports=!u||n("79e5")((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i}))?function(t,e){var n=a(t),u=arguments.length,l=1,h=o.f,d=s.f;while(u>l){var f,p=c(arguments[l++]),g=h?r(p).concat(h(p)):r(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!d.call(p,f)||(n[f]=p[f])}return n}:u},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var i=n("86cc").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in r||n("9e1e")&&i(r,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var i=n("d3f4"),r=n("cb7c"),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(r){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},"8bbf":function(e,n){e.exports=t},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(t,e,n){var i=n("5ca1"),r=n("990b"),o=n("6821"),s=n("11e9"),a=n("f1ae");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){var e,n,i=o(t),c=s.f,u=r(i),l={},h=0;while(u.length>h)n=c(i,e=u[h++]),void 0!==n&&a(l,e,n);return l}})},9093:function(t,e,n){var i=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},"990b":function(t,e,n){var i=n("9093"),r=n("2621"),o=n("cb7c"),s=n("7726").Reflect;t.exports=s&&s.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9cbe":function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,'.vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""])},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),c=n("5f1b"),u=Math.max,l=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,g){return[function(i,r){var o=t(this),s=void 0==i?void 0:i[e];return void 0!==s?s.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=g(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),f="function"===typeof e;f||(e=String(e));var v=h.global;if(v){var b=h.unicode;h.lastIndex=0}var y=[];while(1){var x=c(h,d);if(null===x)break;if(y.push(x),!v)break;var w=String(x[0]);""===w&&(h.lastIndex=a(d,o(h.lastIndex),b))}for(var S="",E=0,T=0;T<y.length;T++){x=y[T];for(var O=String(x[0]),z=u(l(s(x.index),d.length),0),M=[],_=1;_<x.length;_++)M.push(p(x[_]));var P=x.groups;if(f){var I=[O].concat(M,z,d);void 0!==P&&I.push(P);var j=String(e.apply(void 0,I))}else j=m(O,d,z,M,P,e);z>=E&&(S+=d.slice(E,z)+j,E=z+O.length)}return S+d.slice(E)}];function m(t,e,i,o,s,a){var c=i+t.length,u=o.length,l=f;return void 0!==s&&(s=r(s),l=d),n.call(a,l,(function(n,r){var a;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(c);case"<":a=s[r.slice(1,-1)];break;default:var l=+r;if(0===l)return n;if(l>u){var d=h(l/10);return 0===d?n:d<=u?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):n}a=o[l-1]}return void 0===a?"":a}))}}))},aa77:function(t,e,n){var i=n("5ca1"),r=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",c="​…",u=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),h=function(t,e,n){var r={},a=o((function(){return!!s[t]()||c[t]()!=c})),u=r[t]=a?e(d):s[t];n&&(r[n]=u),i(i.P+i.F*a,"String",r)},d=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=h},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var i=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),h=u("toStringTag"),d=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),g=0;g<p.length;g++){var m,v=p[g],b=f[v],y=s[v],x=y&&y.prototype;if(x&&(x[l]||a(x,l,d),x[h]||a(x,h,v),c[v]=d,b))for(m in i)x[m]||o(x,m,i[m],!0)}},ad20:function(t,e,n){e=t.exports=n("2350")(!1),e.push([t.i,".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}",""])},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},af4e:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return c}));var i="auto";function r(){return"undefined"!==typeof document}function o(){return"undefined"!==typeof window}function s(){if(!r())return i;var t="undefined"!==typeof document.dir?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir");return t}function a(t,e){o?window.addEventListener(t,e):e()}function c(t,e){o&&window.removeEventListener(t,e)}},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b770:function(t,e,n){"use strict";var i=t.exports={};i.forEach=function(t,e){for(var n=0;n<t.length;n++){var i=e(t[n]);if(i)return i}}},bc21:function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"edgeTarget",(function(){return gn})),n.d(i,"elements",(function(){return mn})),n.d(i,"grid",(function(){return vn}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-item",class:t.classObj,style:t.style},[t._t("default"),t.resizableAndNotStatic?n("span",{ref:"handle",class:t.resizableHandleClass}):t._e()],2)},o=[],s=(n("a481"),n("4917"),n("c5f6"),n("eb59"));function a(t){return c(t)}function c(t){var e=t.target.offsetParent||document.body,n=t.offsetParent===document.body?{left:0,top:0}:e.getBoundingClientRect(),i=t.clientX+e.scrollLeft-n.left,r=t.clientY+e.scrollTop-n.top;return{x:i,y:r}}function u(t,e,n,i){var r=!l(t);return r?{deltaX:0,deltaY:0,lastX:n,lastY:i,x:n,y:i}:{deltaX:n-t,deltaY:i-e,lastX:t,lastY:e,x:n,y:i}}function l(t){return"number"===typeof t&&!isNaN(t)}var h=n("44e4"),d=n("af4e");const f={init:m,document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function p(){}var g=f;function m(t){const e=t;f.document=e.document,f.DocumentFragment=e.DocumentFragment||p,f.SVGElement=e.SVGElement||p,f.SVGSVGElement=e.SVGSVGElement||p,f.SVGElementInstance=e.SVGElementInstance||p,f.Element=e.Element||p,f.HTMLElement=e.HTMLElement||f.Element,f.Event=e.Event,f.Touch=e.Touch||p,f.PointerEvent=e.PointerEvent||e.MSPointerEvent}var v=t=>!(!t||!t.Window)&&t instanceof t.Window;let b=void 0,y=void 0;function x(t){b=t;const e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"===typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),y=t}function w(t){if(v(t))return t;const e=t.ownerDocument||t;return e.defaultView||y.window}"undefined"!==typeof window&&window&&x(window);const S=t=>t===y||v(t),E=t=>T(t)&&11===t.nodeType,T=t=>!!t&&"object"===typeof t,O=t=>"function"===typeof t,z=t=>"number"===typeof t,M=t=>"boolean"===typeof t,_=t=>"string"===typeof t,P=t=>{if(!t||"object"!==typeof t)return!1;const e=w(t)||y;return/object|function/.test(typeof e.Element)?t instanceof e.Element:1===t.nodeType&&"string"===typeof t.nodeName},I=t=>T(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString()),j=t=>T(t)&&"undefined"!==typeof t.length&&O(t.splice);var R={window:S,docFrag:E,object:T,func:O,number:z,bool:M,string:_,element:P,plainObject:I,array:j};const D={init:A,supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};function A(t){const e=g.Element,n=t.navigator||{};D.supportsTouch="ontouchstart"in t||R.func(t.DocumentTouch)&&g.document instanceof t.DocumentTouch,D.supportsPointerEvent=!1!==n.pointerEnabled&&!!g.PointerEvent,D.isIOS=/iP(hone|od|ad)/.test(n.platform),D.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),D.isIe9=/MSIE 9/.test(n.userAgent),D.isOperaMobile="Opera"===n.appName&&D.supportsTouch&&/Presto/.test(n.userAgent),D.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",D.pEventTypes=D.supportsPointerEvent?g.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,D.wheelEvent=g.document&&"onmousewheel"in g.document?"mousewheel":"wheel"}var k=D;const C=(t,e)=>-1!==t.indexOf(e),H=(t,e)=>{for(const n of e)t.push(n);return t},L=t=>H([],t),N=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},W=(t,e)=>t[N(t,e)];function $(t){const e={};for(const n in t){const i=t[n];R.plainObject(i)?e[n]=$(i):R.array(i)?e[n]=L(i):e[n]=i}return e}function B(t,e){for(const i in e)t[i]=e[i];const n=t;return n}let F,G,X=0;function Y(t){if(F=t.requestAnimationFrame,G=t.cancelAnimationFrame,!F){const e=["ms","moz","webkit","o"];for(const n of e)F=t[n+"RequestAnimationFrame"],G=t[n+"CancelAnimationFrame"]||t[n+"CancelRequestAnimationFrame"]}F=F&&F.bind(t),G=G&&G.bind(t),F||(F=e=>{const n=Date.now(),i=Math.max(0,16-(n-X)),r=t.setTimeout(()=>{e(n+i)},i);return X=n+i,r},G=t=>clearTimeout(t))}var V={request:t=>F(t),cancel:t=>G(t),init:Y};function q(t,e,n){if(n=n||{},R.string(t)&&-1!==t.search(" ")&&(t=U(t)),R.array(t))return t.reduce((t,i)=>B(t,q(i,e,n)),n);if(R.object(t)&&(e=t,t=""),R.func(e))n[t]=n[t]||[],n[t].push(e);else if(R.array(e))for(const i of e)q(t,i,n);else if(R.object(e))for(const i in e){const r=U(i).map(e=>`${t}${e}`);q(r,e[i],n)}return n}function U(t){return t.trim().split(/ +/)}function Z(t,e){for(const n of e){if(t.immediatePropagationStopped)break;n(t)}}class K{constructor(t){this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=B({},t||{})}fire(t){let e;const n=this.global;(e=this.types[t.type])&&Z(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&Z(t,e)}on(t,e){const n=q(t,e);for(t in n)this.types[t]=H(this.types[t]||[],n[t])}off(t,e){const n=q(t,e);for(t in n){const e=this.types[t];if(e&&e.length)for(const i of n[t]){const t=e.indexOf(i);-1!==t&&e.splice(t,1)}}}getRect(t){return null}}function J(t,e){if(t.contains)return t.contains(e);while(e){if(e===t)return!0;e=e.parentNode}return!1}function Q(t,e){while(R.element(t)){if(et(t,e))return t;t=tt(t)}return null}function tt(t){let e=t.parentNode;if(R.docFrag(e)){while((e=e.host)&&R.docFrag(e));return e}return e}function et(t,e){return y!==b&&(e=e.replace(/\/deep\//g," ")),t[k.prefixedMatchesSelector](e)}function nt(t,e,n){while(R.element(t)){if(et(t,e))return!0;if(t=tt(t),t===n)return et(t,e)}return!1}function it(t){return t.correspondingUseElement||t}function rt(t){return t=t||y,{x:t.scrollX||t.document.documentElement.scrollLeft,y:t.scrollY||t.document.documentElement.scrollTop}}function ot(t){const e=t instanceof g.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function st(t){const e=ot(t);if(!k.isIOS7&&e){const n=rt(w(t));e.left+=n.x,e.right+=n.x,e.top+=n.y,e.bottom+=n.y}return e}function at(t){return!!R.string(t)&&(g.document.querySelector(t),!0)}function ct(t,e,n){return"parent"===t?tt(n):"self"===t?e.getRect(n):Q(n,t)}function ut(t,e,n,i){let r=t;return R.string(r)?r=ct(r,e,n):R.func(r)&&(r=r(...i)),R.element(r)&&(r=st(r)),r}function lt(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function ht(t){return!t||"left"in t&&"top"in t||(t=B({},t),t.left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}function dt(t){return!t||"x"in t&&"y"in t||(t=B({},t),t.x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function ft(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}var pt=function(t,e,n){const i=t.options[n],r=i&&i.origin,o=r||t.options.origin,s=ut(o,t,e,[t&&e]);return lt(s)||{x:0,y:0}},gt=(t,e)=>Math.sqrt(t*t+e*e);class mt{constructor(t){this.type=void 0,this.target=void 0,this.currentTarget=void 0,this.interactable=void 0,this._interaction=void 0,this.timeStamp=void 0,this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}Object.defineProperty(mt.prototype,"interaction",{get(){return this._interaction._proxy},set(){}});const vt={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};class bt extends mt{constructor(t,e,n,i,r,o,s){super(t),this.target=void 0,this.currentTarget=void 0,this.relatedTarget=null,this.screenX=void 0,this.screenY=void 0,this.button=void 0,this.buttons=void 0,this.ctrlKey=void 0,this.shiftKey=void 0,this.altKey=void 0,this.metaKey=void 0,this.page=void 0,this.client=void 0,this.delta=void 0,this.rect=void 0,this.x0=void 0,this.y0=void 0,this.t0=void 0,this.dt=void 0,this.duration=void 0,this.clientX0=void 0,this.clientY0=void 0,this.velocity=void 0,this.speed=void 0,this.swipe=void 0,this.timeStamp=void 0,this.axes=void 0,this.preEnd=void 0,r=r||t.element;const a=t.interactable,c=(a&&a.options||vt).deltaSource,u=pt(a,r,n),l="start"===i,h="end"===i,d=l?this:t.prevEvent,f=l?t.coords.start:h?{page:d.page,client:d.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;this.page=B({},f.page),this.client=B({},f.client),this.rect=B({},t.rect),this.timeStamp=f.timeStamp,h||(this.page.x-=u.x,this.page.y-=u.y,this.client.x-=u.x,this.client.y-=u.y),this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.button=e.button,this.buttons=e.buttons,this.target=r,this.currentTarget=r,this.preEnd=o,this.type=s||n+(i||""),this.interactable=a,this.t0=l?t.pointers[t.pointers.length-1].downTime:d.t0,this.x0=t.coords.start.page.x-u.x,this.y0=t.coords.start.page.y-u.y,this.clientX0=t.coords.start.client.x-u.x,this.clientY0=t.coords.start.client.y-u.y,this.delta=l||h?{x:0,y:0}:{x:this[c].x-d[c].x,y:this[c].y-d[c].y},this.dt=t.coords.delta.timeStamp,this.duration=this.timeStamp-this.t0,this.velocity=B({},t.coords.velocity[c]),this.speed=gt(this.velocity.x,this.velocity.y),this.swipe=h||"inertiastart"===i?this.getSwipe():null}getSwipe(){const t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;let e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;const n=22.5;e<0&&(e+=360);const i=135-n<=e&&e<225+n,r=225-n<=e&&e<315+n,o=!i&&(315-n<=e||e<45+n),s=!r&&45-n<=e&&e<135+n;return{up:r,down:s,left:i,right:o,angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}preventDefault(){}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}stopPropagation(){this.propagationStopped=!0}}function yt(t,e){let n=!1;return function(){return n||(y.console.warn(e),n=!0),t.apply(this,arguments)}}function xt(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}Object.defineProperties(bt.prototype,{pageX:{get(){return this.page.x},set(t){this.page.x=t}},pageY:{get(){return this.page.y},set(t){this.page.y=t}},clientX:{get(){return this.client.x},set(t){this.client.x=t}},clientY:{get(){return this.client.y},set(t){this.client.y=t}},dx:{get(){return this.delta.x},set(t){this.delta.x=t}},dy:{get(){return this.delta.y},set(t){this.delta.y=t}},velocityX:{get(){return this.velocity.x},set(t){this.velocity.x=t}},velocityY:{get(){return this.velocity.y},set(t){this.velocity.y=t}}});function wt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function St(t,e,n){t.page.x=n.page.x-e.page.x,t.page.y=n.page.y-e.page.y,t.client.x=n.client.x-e.client.x,t.client.y=n.client.y-e.client.y,t.timeStamp=n.timeStamp-e.timeStamp}function Et(t,e){const n=Math.max(e.timeStamp/1e3,.001);t.page.x=e.page.x/n,t.page.y=e.page.y/n,t.client.x=e.client.x/n,t.client.y=e.client.y/n,t.timeStamp=n}function Tt(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function Ot(t){return t instanceof g.Event||t instanceof g.Touch}function zt(t,e,n){return n=n||{},t=t||"page",n.x=e[t+"X"],n.y=e[t+"Y"],n}function Mt(t,e){return e=e||{x:0,y:0},k.isOperaMobile&&Ot(t)?(zt("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):zt("page",t,e),e}function _t(t,e){return e=e||{},k.isOperaMobile&&Ot(t)?zt("screen",t,e):zt("client",t,e),e}function Pt(t){return R.number(t.pointerId)?t.pointerId:t.identifier}function It(t,e,n){const i=e.length>1?Rt(e):e[0];Mt(i,t.page),_t(i,t.client),t.timeStamp=n}function jt(t){const e=[];return R.array(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function Rt(t){const e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0};for(const n of t)for(const t in e)e[t]+=n[t];for(const n in e)e[n]/=t.length;return e}function Dt(t){if(!t.length)return null;const e=jt(t),n=Math.min(e[0].pageX,e[1].pageX),i=Math.min(e[0].pageY,e[1].pageY),r=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}}function At(t,e){const n=e+"X",i=e+"Y",r=jt(t),o=r[0][n]-r[1][n],s=r[0][i]-r[1][i];return gt(o,s)}function kt(t,e){const n=e+"X",i=e+"Y",r=jt(t),o=r[1][n]-r[0][n],s=r[1][i]-r[0][i],a=180*Math.atan2(s,o)/Math.PI;return a}function Ct(t){return R.string(t.pointerType)?t.pointerType:R.number(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof g.Touch?"touch":"mouse"}function Ht(t){const e=R.func(t.composedPath)?t.composedPath():t.path;return[it(e?e[0]:t.target),it(t.currentTarget)]}function Lt(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}}function Nt(t,e){if(e.phaselessTypes[t])return!0;for(const n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}function Wt(t){const e=(n,i)=>{let r=t.interactables.get(n,i);return r||(r=t.interactables.new(n,i),r.events.global=e.globalEvents),r};return e.getPointerAverage=Rt,e.getTouchBBox=Dt,e.getTouchDistance=At,e.getTouchAngle=kt,e.getElementRect=st,e.getElementClientRect=ot,e.matchesSelector=et,e.closest=Q,e.globalEvents={},e.version="1.10.11",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=yt((function(t,e,n){if(R.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),R.array(t)){for(const i of t)this.on(i,e,n);return this}if(R.object(t)){for(const n in t)this.on(n,t[n],e);return this}return Nt(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=yt((function(t,e,n){if(R.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),R.array(t)){for(const i of t)this.off(i,e,n);return this}if(R.object(t)){for(const n in t)this.off(n,t[n],e);return this}if(Nt(t,this.scope.actions)){let n;t in this.globalEvents&&-1!==(n=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(n,1)}else this.scope.events.remove(this.scope.document,t,e,n);return this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return k.supportsTouch},e.supportsPointerEvent=function(){return k.supportsPointerEvent},e.stop=function(){for(const t of this.scope.interactions.list)t.stop();return this},e.pointerMoveTolerance=function(t){return R.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}class $t{get _defaults(){return{base:{},perAction:{},actions:{}}}constructor(t,e,n,i){this.options=void 0,this._actions=void 0,this.target=void 0,this.events=new K,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._rectChecker=void 0,this._actions=e.actions,this.target=t,this._context=e.context||n,this._win=w(at(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=i,this.set(e)}setOnEvents(t,e){return R.func(e.onstart)&&this.on(t+"start",e.onstart),R.func(e.onmove)&&this.on(t+"move",e.onmove),R.func(e.onend)&&this.on(t+"end",e.onend),R.func(e.oninertiastart)&&this.on(t+"inertiastart",e.oninertiastart),this}updatePerActionListeners(t,e,n){(R.array(e)||R.object(e))&&this.off(t,e),(R.array(n)||R.object(n))&&this.on(t,n)}setPerAction(t,e){const n=this._defaults;for(const i in e){const r=i,o=this.options[t],s=e[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,s),R.array(s)?o[r]=L(s):R.plainObject(s)?(o[r]=B(o[r]||{},$(s)),R.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(o[r].enabled=!1!==s.enabled)):R.bool(s)&&R.object(n.perAction[r])?o[r].enabled=s:o[r]=s}}getRect(t){return t=t||(R.element(this.target)?this.target:null),R.string(this.target)&&(t=t||this._context.querySelector(this.target)),st(t)}rectChecker(t){return R.func(t)?(this._rectChecker=t,this.getRect=t=>{const e=B({},this._rectChecker(t));return"width"in e||(e.width=e.right-e.left,e.height=e.bottom-e.top),e},this):null===t?(delete this.getRect,delete this._rectChecker,this):this.getRect}_backCompatOption(t,e){if(at(e)||R.object(e)){this.options[t]=e;for(const n in this._actions.map)this.options[n][t]=e;return this}return this.options[t]}origin(t){return this._backCompatOption("origin",t)}deltaSource(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}context(){return this._context}inContext(t){return this._context===t.ownerDocument||J(this._context,t)}testIgnoreAllow(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}testAllow(t,e,n){return!t||!!R.element(n)&&(R.string(t)?nt(n,t,e):!!R.element(t)&&J(t,n))}testIgnore(t,e,n){return!(!t||!R.element(n))&&(R.string(t)?nt(n,t,e):!!R.element(t)&&J(t,n))}fire(t){return this.events.fire(t),this}_onOff(t,e,n,i){R.object(e)&&!R.array(e)&&(i=n,n=null);const r="on"===t?"add":"remove",o=q(e,n);for(let s in o){"wheel"===s&&(s=k.wheelEvent);for(const e of o[s])Nt(s,this._actions)?this.events[t](s,e):R.string(this.target)?this._scopeEvents[r+"Delegate"](this.target,this._context,s,e,i):this._scopeEvents[r](this.target,s,e,i)}return this}on(t,e,n){return this._onOff("on",t,e,n)}off(t,e,n){return this._onOff("off",t,e,n)}set(t){const e=this._defaults;R.object(t)||(t={}),this.options=$(e.base);for(const n in this._actions.methodDict){const i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,B(B({},e.perAction),e.actions[i])),this[r](t[i])}for(const n in t)R.func(this[n])&&this[n](t[n]);return this}unset(){if(R.string(this.target))for(const t in this._scopeEvents.delegatedEvents){const e=this._scopeEvents.delegatedEvents[t];for(let n=e.length-1;n>=0;n--){const{selector:i,context:r,listeners:o}=e[n];i===this.target&&r===this._context&&e.splice(n,1);for(let e=o.length-1;e>=0;e--)this._scopeEvents.removeDelegate(this.target,this._context,t,o[e][0],o[e][1])}}else this._scopeEvents.remove(this.target,"all")}}class Bt{constructor(t){this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":({interactable:t})=>{const{target:e,_context:n}=t,i=R.string(e)?this.selectorMap[e]:e[this.scope.id],r=N(i,t=>t.context===n);i[r]&&(i[r].context=null,i[r].interactable=null),i.splice(r,1)}})}new(t,e){e=B(e||{},{actions:this.scope.actions});const n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events),i={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),R.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(i)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(i)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}get(t,e){const n=e&&e.context||this.scope.document,i=R.string(t),r=i?this.selectorMap[t]:t[this.scope.id];if(!r)return null;const o=W(r,e=>e.context===n&&(i||e.interactable.inContext(t)));return o&&o.interactable}forEachMatch(t,e){for(const n of this.list){let i;if((R.string(n.target)?R.element(t)&&et(t,n.target):t===n.target)&&n.inContext(t)&&(i=e(n)),void 0!==i)return i}}}function Ft(t,e){for(const n in e){const i=Ft.prefixedPropREs;let r=!1;for(const t in i)if(0===n.indexOf(t)&&i[t].test(n)){r=!0;break}r||"function"===typeof e[n]||(t[n]=e[n])}return t}Ft.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,moz:/(Pressure)$/};var Gt=Ft;function Xt(t){var e;const n=[],i={},r=[],o={add:s,remove:a,addDelegate:c,removeDelegate:u,delegateListener:l,delegateUseCapture:h,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function s(t,e,i,r){const s=Vt(r);let a=W(n,e=>e.eventTarget===t);a||(a={eventTarget:t,events:{}},n.push(a)),a.events[e]||(a.events[e]=[]),t.addEventListener&&!C(a.events[e],i)&&(t.addEventListener(e,i,o.supportsOptions?s:s.capture),a.events[e].push(i))}function a(t,e,i,r){const s=Vt(r),c=N(n,e=>e.eventTarget===t),u=n[c];if(!u||!u.events)return;if("all"===e){for(e in u.events)u.events.hasOwnProperty(e)&&a(t,e,"all");return}let l=!1;const h=u.events[e];if(h){if("all"===i){for(let n=h.length-1;n>=0;n--)a(t,e,h[n],s);return}for(let n=0;n<h.length;n++)if(h[n]===i){t.removeEventListener(e,i,o.supportsOptions?s:s.capture),h.splice(n,1),0===h.length&&(delete u.events[e],l=!0);break}}l&&!Object.keys(u.events).length&&n.splice(c,1)}function c(t,e,n,o,a){const c=Vt(a);if(!i[n]){i[n]=[];for(const t of r)s(t,n,l),s(t,n,h,!0)}const u=i[n];let d=W(u,n=>n.selector===t&&n.context===e);d||(d={selector:t,context:e,listeners:[]},u.push(d)),d.listeners.push([o,c])}function u(t,e,n,r,o){const s=Vt(o),c=i[n];let u,d=!1;if(c)for(u=c.length-1;u>=0;u--){const i=c[u];if(i.selector===t&&i.context===e){const{listeners:t}=i;for(let i=t.length-1;i>=0;i--){const[o,{capture:f,passive:p}]=t[i];if(o===r&&f===s.capture&&p===s.passive){t.splice(i,1),t.length||(c.splice(u,1),a(e,n,l),a(e,n,h,!0)),d=!0;break}}if(d)break}}}function l(t,e){const n=Vt(e),r=new Yt(t),o=i[t.type],[s]=Ht(t);let a=s;while(R.element(a)){for(let t=0;t<o.length;t++){const e=o[t],{selector:i,context:c}=e;if(et(a,i)&&J(c,s)&&J(c,a)){const{listeners:t}=e;r.currentTarget=a;for(const[e,{capture:i,passive:o}]of t)i===n.capture&&o===n.passive&&e(r)}}a=tt(a)}}function h(t){return l.call(this,t,!0)}return null==(e=t.document)||e.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}class Yt{constructor(t){this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,Gt(this,t)}preventOriginalDefault(){this.originalEvent.preventDefault()}stopPropagation(){this.originalEvent.stopPropagation()}stopImmediatePropagation(){this.originalEvent.stopImmediatePropagation()}}function Vt(t){if(!R.object(t))return{capture:!!t,passive:!1};const e=B({},t);return e.capture=!!t.capture,e.passive=!!t.passive,e}var qt={id:"events",install:Xt};class Ut{constructor(t,e,n,i,r){this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=e,this.event=n,this.downTime=i,this.downTarget=r}}let Zt,Kt;(function(t){t["interactable"]="",t["element"]="",t["prepared"]="",t["pointerIsDown"]="",t["pointerWasMoved"]="",t["_proxy"]=""})(Zt||(Zt={})),function(t){t["start"]="",t["move"]="",t["end"]="",t["stop"]="",t["interacting"]=""}(Kt||(Kt={}));let Jt=0;class Qt{get pointerMoveTolerance(){return 1}constructor({pointerType:t,scopeFire:e}){this.interactable=null,this.element=null,this.rect=void 0,this._rects=void 0,this.edges=void 0,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=null,this.simulation=null,this.doMove=yt((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:Lt(),prev:Lt(),cur:Lt(),delta:Lt(),velocity:Lt()},this._id=Jt++,this._scopeFire=e,this.pointerType=t;const n=this;this._proxy={};for(const i in Zt)Object.defineProperty(this._proxy,i,{get(){return n[i]}});for(const i in Kt)Object.defineProperty(this._proxy,i,{value:(...t)=>n[i](...t)});this._scopeFire("interactions:new",{interaction:this})}pointerDown(t,e,n){const i=this.updatePointer(t,e,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}start(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(xt(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?B({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}pointerMove(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);const i=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;let r,o;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=gt(r,o)>this.pointerMoveTolerance);const s=this.getPointerIndex(t),a={pointer:t,pointerIndex:s,pointerInfo:this.pointers[s],event:e,type:"move",eventTarget:n,dx:r,dy:o,duplicate:i,interaction:this};i||Et(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",a),i||this.simulation||(this.interacting()&&(a.type=null,this.move(a)),this.pointerWasMoved&&wt(this.coords.prev,this.coords.cur))}move(t){t&&t.event||Tt(this.coords.delta),t=B({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{}),t.phase="move",this._doPhase(t)}pointerUp(t,e,n,i){let r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,e,n,!1));const o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:"+o,{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:e,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}documentBlur(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}end(t){let e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}currentAction(){return this._interacting?this.prepared.name:null}interacting(){return this._interacting}stop(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}getPointerIndex(t){const e=Pt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:N(this.pointers,t=>t.id===e)}getPointerInfo(t){return this.pointers[this.getPointerIndex(t)]}updatePointer(t,e,n,i){const r=Pt(t);let o=this.getPointerIndex(t),s=this.pointers[o];return i=!1!==i&&(i||/(down|start)$/i.test(e.type)),s?s.pointer=t:(s=new Ut(r,t,e,null,null),o=this.pointers.length,this.pointers.push(s)),It(this.coords.cur,this.pointers.map(t=>t.pointer),this._now()),St(this.coords.delta,this.coords.prev,this.coords.cur),i&&(this.pointerIsDown=!0,s.downTime=this.coords.cur.timeStamp,s.downTarget=n,Gt(this.downPointer,t),this.interacting()||(wt(this.coords.start,this.coords.cur),wt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:i,pointerInfo:s,pointerIndex:o,interaction:this}),o}removePointer(t,e){const n=this.getPointerIndex(t);if(-1===n)return;const i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}_updateLatestPointer(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}destroy(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}_createPreparedEvent(t,e,n,i){return new bt(this,t,this.prepared.name,e,this.element,n,i)}_fireEvent(t){this.interactable.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}_doPhase(t){const{event:e,phase:n,preEnd:i,type:r}=t,{rect:o}=this;o&&"move"===n&&(ft(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top);const s=this._scopeFire("interactions:before-action-"+n,t);if(!1===s)return!1;const a=t.iEvent=this._createPreparedEvent(e,n,i,r);return this._scopeFire("interactions:action-"+n,t),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-"+n,t),!0}_now(){return Date.now()}}var te=Qt;function ee(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):R.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault}function ne(t,e,n){const i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){const t=w(n.target).document,i=e.getDocOptions(t);if(!i||!i.events||!1!==i.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||R.element(n.target)&&et(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}function ie({interaction:t,event:e}){t.interactable&&t.interactable.checkAndPreventDefault(e)}function re(t){const{Interactable:e}=t;e.prototype.preventDefault=ee,e.prototype.checkAndPreventDefault=function(e){return ne(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener(e){for(const n of t.interactions.list)if(n.element&&(n.element===e.target||J(n.element,e.target)))return void n.interactable.checkAndPreventDefault(e)}})}var oe={id:"core/interactablePreventDefault",install:re,listeners:["down","move","up","cancel"].reduce((t,e)=>(t["interactions:"+e]=ie,t),{})};const se={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search(t){for(const e of se.methodOrder){const n=se[e](t);if(n)return n}return null},simulationResume({pointerType:t,eventType:e,eventTarget:n,scope:i}){if(!/down|start/i.test(e))return null;for(const r of i.interactions.list){let e=n;if(r.simulation&&r.simulation.allowResume&&r.pointerType===t)while(e){if(e===r.element)return r;e=tt(e)}}return null},mouseOrPen({pointerId:t,pointerType:e,eventType:n,scope:i}){if("mouse"!==e&&"pen"!==e)return null;let r;for(const o of i.interactions.list)if(o.pointerType===e){if(o.simulation&&!ae(o,t))continue;if(o.interacting())return o;r||(r=o)}if(r)return r;for(const o of i.interactions.list)if(o.pointerType===e&&(!/down/i.test(n)||!o.simulation))return o;return null},hasPointer({pointerId:t,scope:e}){for(const n of e.interactions.list)if(ae(n,t))return n;return null},idle({pointerType:t,scope:e}){for(const n of e.interactions.list){if(1===n.pointers.length){const t=n.interactable;if(t&&(!t.options.gesture||!t.options.gesture.enabled))continue}else if(n.pointers.length>=2)continue;if(!n.interacting()&&t===n.pointerType)return n}return null}};function ae(t,e){return t.pointers.some(({id:t})=>t===e)}var ce=se;const ue=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function le(t){const e={};for(const o of ue)e[o]=he(o,t);const n=k.pEventTypes;let i;function r(){for(const e of t.interactions.list)if(e.pointerIsDown&&"touch"===e.pointerType&&!e._interacting)for(const n of e.pointers)t.documents.some(({doc:t})=>J(t,n.downTarget))||e.removePointer(n.pointer,n.event)}i=g.PointerEvent?[{type:n.down,listener:r},{type:n.down,listener:e.pointerDown},{type:n.move,listener:e.pointerMove},{type:n.up,listener:e.pointerUp},{type:n.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:r},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}],i.push({type:"blur",listener(e){for(const n of t.interactions.list)n.documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=class extends te{get pointerMoveTolerance(){return t.interactions.pointerMoveTolerance}set pointerMoveTolerance(e){t.interactions.pointerMoveTolerance=e}_now(){return t.now()}},t.interactions={list:[],new(e){e.scopeFire=(e,n)=>t.fire(e,n);const n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:i,pointerMoveTolerance:1},t.usePlugin(oe)}function he(t,e){return function(n){const i=e.interactions.list,r=Ct(n),[o,s]=Ht(n),a=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(const t of n.changedTouches){const i=t,c=Pt(i),u={pointer:i,pointerId:c,pointerType:r,eventType:n.type,eventTarget:o,curEventTarget:s,scope:e},l=de(u);a.push([u.pointer,u.eventTarget,u.curEventTarget,l])}}else{let t=!1;if(!k.supportsPointerEvent&&/mouse/.test(n.type)){for(let e=0;e<i.length&&!t;e++)t="mouse"!==i[e].pointerType&&i[e].pointerIsDown;t=t||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!t){const t={pointer:n,pointerId:Pt(n),pointerType:r,eventType:n.type,curEventTarget:s,eventTarget:o,scope:e},i=de(t);a.push([t.pointer,t.eventTarget,t.curEventTarget,i])}}for(const[e,c,u,l]of a)l[t](e,n,c,u)}}function de(t){const{pointerType:e,scope:n}=t,i=ce.search(t),r={interaction:i,searchDetails:t};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:e})}function fe({doc:t,scope:e,options:n},i){const{interactions:{docEvents:r},events:o}=e,s=o[i];e.browser.isIOS&&!n.events&&(n.events={passive:!1});for(const c in o.delegatedEvents)s(t,c,o.delegateListener),s(t,c,o.delegateUseCapture,!0);const a=n&&n.events;for(const{type:c,listener:u}of r)s(t,c,u,a)}const pe={id:"core/interactions",install:le,listeners:{"scope:add-document":t=>fe(t,"add"),"scope:remove-document":t=>fe(t,"remove"),"interactable:unset":({interactable:t},e)=>{for(let n=e.interactions.list.length-1;n>=0;n--){const i=e.interactions.list[n];i.interactable===t&&(i.stop(),e.fire("interactions:destroy",{interaction:i}),i.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(n,1))}}},onDocSignal:fe,doOnInteractions:he,methodNames:ue};var ge=pe;class me{constructor(){this.id="__interact_scope_"+Math.floor(100*Math.random()),this.isInitialized=!1,this.listenerMaps=[],this.browser=k,this.defaults=$(vt),this.Eventable=K,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=Wt(this),this.InteractEvent=bt,this.Interactable=void 0,this.interactables=new Bt(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=t=>this.removeDocument(t.target);const t=this;this.Interactable=class extends $t{get _defaults(){return t.defaults}set(e){return super.set(e),t.fire("interactable:set",{options:e,interactable:this}),this}unset(){super.unset(),t.interactables.list.splice(t.interactables.list.indexOf(this),1),t.fire("interactable:unset",{interactable:this})}}}addListeners(t,e){this.listenerMaps.push({id:e,map:t})}fire(t,e){for(const{map:{[t]:n}}of this.listenerMaps)if(n&&!1===n(e,this,t))return!1}init(t){return this.isInitialized?this:ve(this,t)}pluginIsInstalled(t){return this._plugins.map[t.id]||-1!==this._plugins.list.indexOf(t)}usePlugin(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){let e=0;const n=this.listenerMaps.length,i=t.before.reduce((t,e)=>(t[e]=!0,t[be(e)]=!0,t),{});for(;e<n;e++){const t=this.listenerMaps[e].id;if(i[t]||i[be(t)])break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}addDocument(t,e){if(-1!==this.getDocIndex(t))return!1;const n=w(t);e=e?B({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}removeDocument(t){const e=this.getDocIndex(t),n=w(t),i=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:i})}getDocIndex(t){for(let e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}getDocOptions(t){const e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}now(){return(this.window.Date||Date).now()}}function ve(t,e){return t.isInitialized=!0,R.window(e)&&x(e),g.init(e),k.init(e),V.init(e),t.window=e,t.document=e.document,t.usePlugin(ge),t.usePlugin(qt),t}function be(t){return t&&t.replace(/\/.*$/,"")}const ye=new me,xe=ye.interactStatic;var we=xe;const Se="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:void 0;function Ee(t){const{Interactable:e}=t;e.prototype.getAction=function(e,n,i,r){const o=Te(this,n,i,r,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,r,i):o},e.prototype.ignoreFrom=yt((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=yt((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=ze,e.prototype.styleCursor=Oe}function Te(t,e,n,i,r){const o=t.getRect(i),s=e.buttons||{0:1,1:4,3:8,4:16}[e.button],a={action:null,interactable:t,interaction:n,element:i,rect:o,buttons:s};return r.fire("auto-start:check",a),a.action}function Oe(t){return R.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function ze(t){return R.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}ye.init(Se);var Me={id:"auto-start/interactableMethods",install:Ee};function _e(t){const{interactStatic:e,defaults:n}=t;t.usePlugin(Me),n.base.actionChecker=null,n.base.styleCursor=!0,B(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=e=>Le(e,t),t.autoStart={maxInteractions:1/0,withinInteractionLimit:He,cursorElement:null}}function Pe({interaction:t,pointer:e,event:n,eventTarget:i},r){if(t.interacting())return;const o=ke(t,e,n,i,r);Ce(t,o,r)}function Ie({interaction:t,pointer:e,event:n,eventTarget:i},r){if("mouse"!==t.pointerType||t.pointerIsDown||t.interacting())return;const o=ke(t,e,n,i,r);Ce(t,o,r)}function je(t,e){const{interaction:n}=t;if(!n.pointerIsDown||n.interacting()||!n.pointerWasMoved||!n.prepared.name)return;e.fire("autoStart:before-start",t);const{interactable:i}=n,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!He(i,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,i,n.element),We(n,e)))}function Re({interaction:t},e){const{interactable:n}=t;n&&n.options.styleCursor&&Ne(t.element,"",e)}function De(t,e,n,i,r){return e.testIgnoreAllow(e.options[t.name],n,i)&&e.options[t.name].enabled&&He(e,n,t,r)?t:null}function Ae(t,e,n,i,r,o,s){for(let a=0,c=i.length;a<c;a++){const c=i[a],u=r[a],l=c.getAction(e,n,t,u);if(!l)continue;const h=De(l,c,u,o,s);if(h)return{action:h,interactable:c,element:u}}return{action:null,interactable:null,element:null}}function ke(t,e,n,i,r){let o=[],s=[],a=i;function c(t){o.push(t),s.push(a)}while(R.element(a)){o=[],s=[],r.interactables.forEachMatch(a,c);const u=Ae(t,e,n,o,s,i,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;a=tt(a)}return{action:null,interactable:null,element:null}}function Ce(t,{action:e,interactable:n,element:i},r){e=e||{name:null},t.interactable=n,t.element=i,xt(t.prepared,e),t.rect=n&&e.name?n.getRect(i):null,We(t,r),r.fire("autoStart:prepared",{interaction:t})}function He(t,e,n,i){const r=t.options,o=r[n.name].max,s=r[n.name].maxPerElement,a=i.autoStart.maxInteractions;let c=0,u=0,l=0;if(!(o&&s&&a))return!1;for(const h of i.interactions.list){const i=h.prepared.name;if(h.interacting()){if(c++,c>=a)return!1;if(h.interactable===t){if(u+=i===n.name?1:0,u>=o)return!1;if(h.element===e&&(l++,i===n.name&&l>=s))return!1}}}return a>0}function Le(t,e){return R.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function Ne(t,e,n){const{cursorElement:i}=n.autoStart;i&&i!==t&&(i.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function We(t,e){const{interactable:n,element:i,prepared:r}=t;if("mouse"!==t.pointerType||!n||!n.options.styleCursor)return void(e.autoStart.cursorElement&&Ne(e.autoStart.cursorElement,"",e));let o="";if(r.name){const s=n.options[r.name].cursorChecker;o=R.func(s)?s(r,n,i,t._interacting):e.actions.map[r.name].getCursor(r)}Ne(t.element,o||"",e)}const $e={id:"auto-start/base",before:["actions"],install:_e,listeners:{"interactions:down":Pe,"interactions:move":(t,e)=>{Ie(t,e),je(t,e)},"interactions:stop":Re},maxInteractions:Le,withinInteractionLimit:He,validateAction:De};var Be=$e;function Fe({interaction:t,eventTarget:e,dx:n,dy:i},r){if("drag"!==t.prepared.name)return;const o=Math.abs(n),s=Math.abs(i),a=t.interactable.options.drag,c=a.startAxis,u=o>s?"x":o<s?"y":"xy";if(t.prepared.axis="start"===a.lockAxis?u[0]:a.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){t.prepared.name=null;let n=e;const i=function(i){if(i===t.interactable)return;const o=t.interactable.options.drag;if(!o.manualStart&&i.testIgnoreAllow(o,n,e)){const o=i.getAction(t.downPointer,t.downEvent,t,n);if(o&&"drag"===o.name&&Ge(u,i)&&Be.validateAction(o,i,n,e,r))return i}};while(R.element(n)){const e=r.interactables.forEachMatch(n,i);if(e){t.prepared.name="drag",t.interactable=e,t.element=n;break}n=tt(n)}}}function Ge(t,e){if(!e)return!1;const n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}var Xe={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":Fe}};function Ye(t){const{defaults:e}=t;t.usePlugin(Be),e.perAction.hold=0,e.perAction.delay=0}function Ve(t){const e=t.prepared&&t.prepared.name;if(!e)return null;const n=t.interactable.options;return n[e].hold||n[e].delay}const qe={id:"auto-start/hold",install:Ye,listeners:{"interactions:new":({interaction:t})=>{t.autoStartHoldTimer=null},"autoStart:prepared":({interaction:t})=>{const e=Ve(t);e>0&&(t.autoStartHoldTimer=setTimeout(()=>{t.start(t.prepared,t.interactable,t.element)},e))},"interactions:move":({interaction:t,duplicate:e})=>{t.autoStartHoldTimer&&t.pointerWasMoved&&!e&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":({interaction:t})=>{const e=Ve(t);e>0&&(t.prepared.name=null)}},getHoldDuration:Ve};var Ue=qe,Ze={id:"auto-start",install(t){t.usePlugin(Be),t.usePlugin(Ue),t.usePlugin(Xe)}};function Ke(t){const{actions:e,Interactable:n,defaults:i}=t;n.prototype.draggable=en.draggable,e.map.drag=en,e.methodDict.drag="draggable",i.actions.drag=en.defaults}function Je({interaction:t}){if("drag"!==t.prepared.name)return;const e=t.prepared.axis;"x"===e?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===e&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}function Qe({iEvent:t,interaction:e}){if("drag"!==e.prepared.name)return;const n=e.prepared.axis;if("x"===n||"y"===n){const i="x"===n?"y":"x";t.page[i]=e.coords.start.page[i],t.client[i]=e.coords.start.client[i],t.delta[i]=0}}we.use(Ze);const tn=function(t){return R.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):R.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},en={id:"actions/drag",install:Ke,listeners:{"interactions:before-action-move":Je,"interactions:action-resume":Je,"interactions:action-move":Qe,"auto-start:check":t=>{const{interaction:e,interactable:n,buttons:i}=t,r=n.options.drag;if(r&&r.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!==(i&n.options.drag.mouseButtons)))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:tn,beforeMove:Je,move:Qe,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor(){return"move"}};var nn=en;function rn(t){const{actions:e,browser:n,Interactable:i,defaults:r}=t;fn.cursors=cn(n),fn.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(e){return sn(this,e,t)},e.map.resize=fn,e.methodDict.resize="resizable",r.actions.resize=fn.defaults}function on(t){const{interaction:e,interactable:n,element:i,rect:r,buttons:o}=t;if(!r)return;const s=B({},e.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!==(o&a.mouseButtons))){if(R.object(a.edges)){const n={left:!1,right:!1,top:!1,bottom:!1};for(const t in n)n[t]=an(t,a.edges[t],s,e._latestPointer.eventTarget,i,r,a.margin||fn.defaultMargin);n.left=n.left&&!n.right,n.top=n.top&&!n.bottom,(n.left||n.right||n.top||n.bottom)&&(t.action={name:"resize",edges:n})}else{const e="y"!==a.axis&&s.x>r.right-fn.defaultMargin,n="x"!==a.axis&&s.y>r.bottom-fn.defaultMargin;(e||n)&&(t.action={name:"resize",axes:(e?"x":"")+(n?"y":"")})}return!t.action&&void 0}}function sn(t,e,n){return R.object(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),R.string(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),R.bool(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:R.bool(e.square)&&(t.options.resize.square=e.square),t):R.bool(e)?(t.options.resize.enabled=e,t):t.options.resize}function an(t,e,n,i,r,o,s){if(!e)return!1;if(!0===e){const e=R.number(o.width)?o.width:o.right-o.left,i=R.number(o.height)?o.height:o.bottom-o.top;if(s=Math.min(s,Math.abs(("left"===t||"right"===t?e:i)/2)),e<0&&("left"===t?t="right":"right"===t&&(t="left")),i<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return n.x<(e>=0?o.left:o.right)+s;if("top"===t)return n.y<(i>=0?o.top:o.bottom)+s;if("right"===t)return n.x>(e>=0?o.right:o.left)-s;if("bottom"===t)return n.y>(i>=0?o.bottom:o.top)-s}return!!R.element(i)&&(R.element(e)?e===i:nt(i,e,r))}function cn(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}function un({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,i=e.rect;e._rects={start:B({},i),corrected:B({},i),previous:B({},i),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta}function ln({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,i=e.interactable.options.resize,r=i.invert,o="reposition"===r||"negate"===r,s=e.rect,{start:a,corrected:c,delta:u,previous:l}=e._rects;if(B(l,c),o){if(B(c,s),"reposition"===r){if(c.top>c.bottom){const t=c.top;c.top=c.bottom,c.bottom=t}if(c.left>c.right){const t=c.left;c.left=c.right,c.right=t}}}else c.top=Math.min(s.top,a.bottom),c.bottom=Math.max(s.bottom,a.top),c.left=Math.min(s.left,a.right),c.right=Math.max(s.right,a.left);c.width=c.right-c.left,c.height=c.bottom-c.top;for(const h in c)u[h]=c[h]-l[h];n.edges=e.prepared.edges,n.rect=c,n.deltaRect=u}function hn({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t;n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta}function dn({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.resizeAxes)return;const n=e.interactable.options,i=t;n.resize.square?("y"===e.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=e.resizeAxes,"x"===e.resizeAxes?i.delta.y=0:"y"===e.resizeAxes&&(i.delta.x=0))}we.use(nn);const fn={id:"actions/resize",before:["actions/drag"],install:rn,listeners:{"interactions:new":({interaction:t})=>{t.resizeAxes="xy"},"interactions:action-start":t=>{un(t),dn(t)},"interactions:action-move":t=>{ln(t),dn(t)},"interactions:action-end":hn,"auto-start:check":on},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor({edges:t,axis:e,name:n}){const i=fn.cursors;let r=null;if(e)r=i[n+e];else if(t){let e="";for(const n of["top","bottom","left","right"])t[n]&&(e+=n);r=i[e]}return r},defaultMargin:null};var pn=fn;we.use(pn);var gn=()=>{},mn=()=>{},vn=t=>{const e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(([e,n])=>e in t||n in t),n=(n,i)=>{const{range:r,limits:o={left:-1/0,right:1/0,top:-1/0,bottom:1/0},offset:s={x:0,y:0}}=t,a={range:r,grid:t,x:null,y:null};for(const[c,u]of e){const e=Math.round((n-s.x)/t[c]),r=Math.round((i-s.y)/t[u]);a[c]=Math.max(o.left,Math.min(o.right,e*t[c]+s.x)),a[u]=Math.max(o.top,Math.min(o.bottom,r*t[u]+s.y))}return a};return n.grid=t,n.coordFields=e,n};const bn={id:"snappers",install(t){const{interactStatic:e}=t;e.snappers=B(e.snappers||{},i),e.createSnapGrid=e.snappers.grid}};var yn=bn;class xn{constructor(t){this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=t,this.result=wn()}start({phase:t},e){const{interaction:n}=this,i=Sn(n);this.prepareStates(i),this.edges=B({},n.edges),this.startOffset=En(n.rect,e),this.startDelta={x:0,y:0};const r=this.fillArg({phase:t,pageCoords:e,preEnd:!1});this.result=wn(),this.startAll(r);const o=this.result=this.setAll(r);return o}fillArg(t){const{interaction:e}=this;return t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect=t.rect||e.rect,t.edges=this.edges,t.startOffset=this.startOffset,t}startAll(t){for(const e of this.states)e.methods.start&&(t.state=e,e.methods.start(t))}setAll(t){const{phase:e,preEnd:n,skipModifiers:i,rect:r}=t;t.coords=B({},t.pageCoords),t.rect=B({},r);const o=i?this.states.slice(i):this.states,s=wn(t.coords,t.rect);for(const l of o){var a;const{options:i}=l,r=B({},t.coords);let o=null;null!=(a=l.methods)&&a.set&&this.shouldDo(i,n,e)&&(t.state=l,o=l.methods.set(t),ft(this.interaction.edges,t.rect,{x:t.coords.x-r.x,y:t.coords.y-r.y})),s.eventProps.push(o)}s.delta.x=t.coords.x-t.pageCoords.x,s.delta.y=t.coords.y-t.pageCoords.y,s.rectDelta.left=t.rect.left-r.left,s.rectDelta.right=t.rect.right-r.right,s.rectDelta.top=t.rect.top-r.top,s.rectDelta.bottom=t.rect.bottom-r.bottom;const c=this.result.coords,u=this.result.rect;if(c&&u){const t=s.rect.left!==u.left||s.rect.right!==u.right||s.rect.top!==u.top||s.rect.bottom!==u.bottom;s.changed=t||c.x!==s.coords.x||c.y!==s.coords.y}return s}applyToInteraction(t){const{interaction:e}=this,{phase:n}=t,i=e.coords.cur,r=e.coords.start,{result:o,startDelta:s}=this,a=o.delta;"start"===n&&B(this.startDelta,o.delta);for(const[l,h]of[[r,s],[i,a]])l.page.x+=h.x,l.page.y+=h.y,l.client.x+=h.x,l.client.y+=h.y;const{rectDelta:c}=this.result,u=t.rect||e.rect;u.left+=c.left,u.right+=c.right,u.top+=c.top,u.bottom+=c.bottom,u.width=u.right-u.left,u.height=u.bottom-u.top}setAndApply(t){const{interaction:e}=this,{phase:n,preEnd:i,skipModifiers:r}=t,o=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page}));if(this.result=o,!o.changed&&(!r||r<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){const{page:n}=e.coords.cur,i={x:t.modifiedCoords.x-n.x,y:t.modifiedCoords.y-n.y};o.coords.x+=i.x,o.coords.y+=i.y,o.delta.x+=i.x,o.delta.y+=i.y}this.applyToInteraction(t)}beforeEnd(t){const{interaction:e,event:n}=t,i=this.states;if(!i||!i.length)return;let r=!1;for(const o of i){t.state=o;const{options:e,methods:n}=o,i=n.beforeEnd&&n.beforeEnd(t);if(i)return this.endResult=i,!1;r=r||!r&&this.shouldDo(e,!0,t.phase,!0)}r&&e.move({event:n,preEnd:!0})}stop(t){const{interaction:e}=t;if(!this.states||!this.states.length)return;const n=B({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(const i of this.states)n.state=i,i.methods.stop&&i.methods.stop(n);this.states=null,this.endResult=null}prepareStates(t){this.states=[];for(let e=0;e<t.length;e++){const{options:n,methods:i,name:r}=t[e];this.states.push({options:n,methods:i,index:e,name:r})}return this.states}restoreInteractionCoords({interaction:{coords:t,rect:e,modification:n}}){if(!n.result)return;const{startDelta:i}=n,{delta:r,rectDelta:o}=n.result,s=[[t.start,i],[t.cur,r]];for(const[a,c]of s)a.page.x-=c.x,a.page.y-=c.y,a.client.x-=c.x,a.client.y-=c.y;e.left-=o.left,e.right-=o.right,e.top-=o.top,e.bottom-=o.bottom}shouldDo(t,e,n,i){return!(!t||!1===t.enabled||i&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}copyFrom(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.edges=t.edges,this.states=t.states.map(t=>$(t)),this.result=wn(B({},t.result.coords),B({},t.result.rect))}destroy(){for(const t in this)this[t]=null}}function wn(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Sn(t){const e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(t=>{const n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}}).filter(t=>!!t)}function En(t,e){return t?{left:e.x-t.left,top:e.y-t.top,right:t.right-e.x,bottom:t.bottom-e.y}:{left:0,top:0,right:0,bottom:0}}function Tn(t,e){const{defaults:n}=t,i={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=t=>{const r=t||{};r.enabled=!1!==r.enabled;for(const e in n)e in r||(r[e]=n[e]);const o={options:r,methods:i,name:e,enable:()=>(r.enabled=!0,o),disable:()=>(r.enabled=!1,o)};return o};return e&&"string"===typeof e&&(r._defaults=n,r._methods=i),r}function On({iEvent:t,interaction:e}){const n=e.modification.result;n&&(t.modifiers=n.eventProps)}const zn={id:"modifiers/base",before:["actions"],install:t=>{t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":({interaction:t})=>{t.modification=new xn(t)},"interactions:before-action-start":t=>{const e=t.interaction.modification;e.start(t,t.interaction.coords.start.page),t.interaction.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":t=>t.interaction.modification.setAndApply(t),"interactions:before-action-end":t=>t.interaction.modification.beforeEnd(t),"interactions:action-start":On,"interactions:action-move":On,"interactions:action-end":On,"interactions:after-action-start":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:after-action-move":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:stop":t=>t.interaction.modification.stop(t)}};var Mn=zn;const _n={start(t){const{state:e,rect:n,edges:i,pageCoords:r}=t;let{ratio:o}=e.options;const{equalDelta:s,modifiers:a}=e.options;"preserve"===o&&(o=n.width/n.height),e.startCoords=B({},r),e.startRect=B({},n),e.ratio=o,e.equalDelta=s;const c=e.linkedEdges={top:i.top||i.left&&!i.bottom,left:i.left||i.top&&!i.right,bottom:i.bottom||i.right&&!i.top,right:i.right||i.bottom&&!i.left};if(e.xIsPrimaryAxis=!(!i.left&&!i.right),e.equalDelta)e.edgeSign=(c.left?1:-1)*(c.top?1:-1);else{const t=e.xIsPrimaryAxis?c.top:c.left;e.edgeSign=t?-1:1}if(B(t.edges,c),!a||!a.length)return;const u=new xn(t.interaction);u.copyFrom(t.interaction.modification),u.prepareStates(a),e.subModification=u,u.startAll({...t})},set(t){const{state:e,rect:n,coords:i}=t,r=B({},i),o=e.equalDelta?Pn:In;if(o(e,e.xIsPrimaryAxis,i,n),!e.subModification)return null;const s=B({},n);ft(e.linkedEdges,s,{x:i.x-r.x,y:i.y-r.y});const a=e.subModification.setAll({...t,rect:s,edges:e.linkedEdges,pageCoords:i,prevCoords:i,prevRect:s}),{delta:c}=a;if(a.changed){const t=Math.abs(c.x)>Math.abs(c.y);o(e,t,a.coords,a.rect),B(i,a.coords)}return a.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Pn({startCoords:t,edgeSign:e},n,i){n?i.y=t.y+(i.x-t.x)*e:i.x=t.x+(i.y-t.y)*e}function In({startRect:t,startCoords:e,ratio:n,edgeSign:i},r,o,s){if(r){const r=s.width/n;o.y=e.y+(r-t.height)*i}else{const r=s.height*n;o.x=e.x+(r-t.width)*i}}var jn=Tn(_n,"aspectRatio");const Rn=()=>{};Rn._defaults={};var Dn=Rn;function An({rect:t,startOffset:e,state:n,interaction:i,pageCoords:r}){const{options:o}=n,{elementRect:s}=o,a=B({left:0,top:0,right:0,bottom:0},o.offset||{});if(t&&s){const n=Cn(o.restriction,i,r);if(n){const e=n.right-n.left-t.width,i=n.bottom-n.top-t.height;e<0&&(a.left+=e,a.right+=e),i<0&&(a.top+=i,a.bottom+=i)}a.left+=e.left-t.width*s.left,a.top+=e.top-t.height*s.top,a.right+=e.right-t.width*(1-s.right),a.bottom+=e.bottom-t.height*(1-s.bottom)}n.offset=a}function kn({coords:t,interaction:e,state:n}){const{options:i,offset:r}=n,o=Cn(i.restriction,e,t);if(!o)return;const s=ht(o);t.x=Math.max(Math.min(s.right-r.right,t.x),s.left+r.left),t.y=Math.max(Math.min(s.bottom-r.bottom,t.y),s.top+r.top)}function Cn(t,e,n){return R.func(t)?ut(t,e.interactable,e.element,[n.x,n.y,e]):ut(t,e.interactable,e.element)}const Hn={restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1},Ln={start:An,set:kn,defaults:Hn};var Nn=Tn(Ln,"restrict");const Wn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},$n={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Bn({interaction:t,startOffset:e,state:n}){const{options:i}=n;let r;if(i){const e=Cn(i.offset,t,t.coords.start.page);r=lt(e)}r=r||{x:0,y:0},n.offset={top:r.y+e.top,left:r.x+e.left,bottom:r.y-e.bottom,right:r.x-e.right}}function Fn({coords:t,edges:e,interaction:n,state:i}){const{offset:r,options:o}=i;if(!e)return;const s=B({},t),a=Cn(o.inner,n,s)||{},c=Cn(o.outer,n,s)||{};Gn(a,Wn),Gn(c,$n),e.top?t.y=Math.min(Math.max(c.top+r.top,s.y),a.top+r.top):e.bottom&&(t.y=Math.max(Math.min(c.bottom+r.bottom,s.y),a.bottom+r.bottom)),e.left?t.x=Math.min(Math.max(c.left+r.left,s.x),a.left+r.left):e.right&&(t.x=Math.max(Math.min(c.right+r.right,s.x),a.right+r.right))}function Gn(t,e){for(const n of["top","left","bottom","right"])n in t||(t[n]=e[n]);return t}const Xn={inner:null,outer:null,offset:null,endOnly:!1,enabled:!1},Yn={noInner:Wn,noOuter:$n,start:Bn,set:Fn,defaults:Xn};var Vn=Tn(Yn,"restrictEdges");const qn=B({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Ln.defaults),Un={start:Ln.start,set:Ln.set,defaults:qn};var Zn=Tn(Un,"restrictRect");const Kn={width:-1/0,height:-1/0},Jn={width:1/0,height:1/0};function Qn(t){return Yn.start(t)}function ti(t){const{interaction:e,state:n,rect:i,edges:r}=t,{options:o}=n;if(!r)return;const s=dt(Cn(o.min,e,t.coords))||Kn,a=dt(Cn(o.max,e,t.coords))||Jn;n.options={endOnly:o.endOnly,inner:B({},Yn.noInner),outer:B({},Yn.noOuter)},r.top?(n.options.inner.top=i.bottom-s.height,n.options.outer.top=i.bottom-a.height):r.bottom&&(n.options.inner.bottom=i.top+s.height,n.options.outer.bottom=i.top+a.height),r.left?(n.options.inner.left=i.right-s.width,n.options.outer.left=i.right-a.width):r.right&&(n.options.inner.right=i.left+s.width,n.options.outer.right=i.left+a.width),Yn.set(t),n.options=o}const ei={min:null,max:null,endOnly:!1,enabled:!1},ni={start:Qn,set:ti,defaults:ei};var ii=Tn(ni,"restrictSize");function ri(t){const{interaction:e,interactable:n,element:i,rect:r,state:o,startOffset:s}=t,{options:a}=o,c=a.offsetWithOrigin?si(t):{x:0,y:0};let u;if("startCoords"===a.offset)u={x:e.coords.start.page.x,y:e.coords.start.page.y};else{const t=ut(a.offset,n,i,[e]);u=lt(t)||{x:0,y:0},u.x+=c.x,u.y+=c.y}const{relativePoints:l}=a;o.offsets=r&&l&&l.length?l.map((t,e)=>({index:e,relativePoint:t,x:s.left-r.width*t.x+u.x,y:s.top-r.height*t.y+u.y})):[{index:0,relativePoint:null,x:u.x,y:u.y}]}function oi(t){const{interaction:e,coords:n,state:i}=t,{options:r,offsets:o}=i,s=pt(e.interactable,e.element,e.prepared.name),a=B({},n),c=[];r.offsetWithOrigin||(a.x-=s.x,a.y-=s.y);for(const l of o){const t=a.x-l.x,n=a.y-l.y;for(let i=0,o=r.targets.length;i<o;i++){const o=r.targets[i];let s;s=R.func(o)?o(t,n,e._proxy,l,i):o,s&&c.push({x:(R.number(s.x)?s.x:t)+l.x,y:(R.number(s.y)?s.y:n)+l.y,range:R.number(s.range)?s.range:r.range,source:o,index:i,offset:l})}}const u={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}};for(const l of c){const t=l.range,e=l.x-a.x,n=l.y-a.y,i=gt(e,n);let r=i<=t;t===1/0&&u.inRange&&u.range!==1/0&&(r=!1),u.target&&!(r?u.inRange&&t!==1/0?i/t<u.distance/u.range:t===1/0&&u.range!==1/0||i<u.distance:!u.inRange&&i<u.distance)||(u.target=l,u.distance=i,u.range=t,u.inRange=r,u.delta.x=e,u.delta.y=n)}return u.inRange&&(n.x=u.target.x,n.y=u.target.y),i.closest=u,u}function si(t){const{element:e}=t.interaction,n=lt(ut(t.state.options.origin,null,null,[e])),i=n||pt(t.interactable,e,t.interaction.prepared.name);return i}const ai={range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1},ci={start:ri,set:oi,defaults:ai};var ui=Tn(ci,"snap");function li(t){const{state:e,edges:n}=t,{options:i}=e;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],ci.start(t),e.offsets=t.state.offsets,t.state=e}function hi(t){const{interaction:e,state:n,coords:i}=t,{options:r,offsets:o}=n,s={x:i.x-o[0].x,y:i.y-o[0].y};n.options=B({},r),n.options.targets=[];for(const c of r.targets||[]){let t;if(t=R.func(c)?c(s.x,s.y,e):c,t){for(const[e,i]of n.targetFields)if(e in t||i in t){t.x=t[e],t.y=t[i];break}n.options.targets.push(t)}}const a=ci.set(t);return n.options=r,a}const di={range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1},fi={start:li,set:hi,defaults:di};var pi=Tn(fi,"snapSize");function gi(t){const{edges:e}=t;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],fi.start(t)):null}const mi={start:gi,set:fi.set,defaults:B($(fi.defaults),{targets:null,range:null,offset:{x:0,y:0}})};var vi=Tn(mi,"snapEdges"),bi={aspectRatio:jn,restrictEdges:Vn,restrict:Nn,restrictRect:Zn,restrictSize:ii,snapEdges:vi,snap:ui,snapSize:pi,spring:Dn,avoid:Dn,transform:Dn,rubberband:Dn};const yi={id:"modifiers",install(t){const{interactStatic:e}=t;t.usePlugin(Mn),t.usePlugin(yn),e.modifiers=bi;for(const n in bi){const{_defaults:e,_methods:i}=bi[n];e._methods=i,t.defaults.perAction[n]=e}}};var xi=yi;we.use(xi);var wi,Si={};(function(t){t["touchAction"]="touchAction",t["boxSizing"]="boxSizing",t["noListeners"]="noListeners"})(wi||(wi={}));const Ei="[interact.js] ",Ti={touchAction:"https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action",boxSizing:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing"},Oi=!1;function zi(t,{logger:e}={}){const{Interactable:n,defaults:i}=t;t.logger=e||console,i.base.devTools={ignore:{}},n.prototype.devTools=function(t){return t?(B(this.options.devTools,t),this):this.options.devTools},t.usePlugin(Si)}const Mi=[{name:wi.touchAction,perform({element:t}){return!Pi(t,"touchAction",/pan-|pinch|none/)},getInfo({element:t}){return[t,Ti.touchAction]},text:'Consider adding CSS "touch-action: none" to this element\n'},{name:wi.boxSizing,perform(t){const{element:e}=t;return"resize"===t.prepared.name&&e instanceof g.HTMLElement&&!_i(e,"boxSizing",/border-box/)},text:'Consider adding CSS "box-sizing: border-box" to this resizable element',getInfo({element:t}){return[t,Ti.boxSizing]}},{name:wi.noListeners,perform(t){const e=t.prepared.name,n=t.interactable.events.types[e+"move"]||[];return!n.length},getInfo(t){return[t.prepared.name,t.interactable]},text:"There are no listeners set for this action"}];function _i(t,e,n){const i=t.style[e]||y.getComputedStyle(t)[e];return n.test((i||"").toString())}function Pi(t,e,n){let i=t;while(R.element(i)){if(_i(i,e,n))return!0;i=tt(i)}return!1}const Ii="dev-tools",ji=Oi?{id:Ii,install:()=>{}}:{id:Ii,install:zi,listeners:{"interactions:action-start":({interaction:t},e)=>{for(const n of Mi){const i=t.interactable&&t.interactable.options;i&&i.devTools&&i.devTools.ignore[n.name]||!n.perform(t)||e.logger.warn(Ei+n.text,...n.getInfo(t))}}},checks:Mi,CheckName:wi,links:Ti,prefix:Ei};var Ri=ji;we.use(Ri);var Di={name:"GridItem",props:{isDraggable:{type:Boolean,required:!1,default:null},isResizable:{type:Boolean,required:!1,default:null},static:{type:Boolean,required:!1,default:!1},minH:{type:Number,required:!1,default:1},minW:{type:Number,required:!1,default:1},maxH:{type:Number,required:!1,default:1/0},maxW:{type:Number,required:!1,default:1/0},x:{type:Number,required:!0},y:{type:Number,required:!0},w:{type:Number,required:!0},h:{type:Number,required:!0},i:{required:!0},dragIgnoreFrom:{type:String,required:!1,default:"a, button"},dragAllowFrom:{type:String,required:!1,default:null},resizeIgnoreFrom:{type:String,required:!1,default:"a, button"},preserveAspectRatio:{type:Boolean,required:!1,default:!1}},inject:["eventBus","layout"],data:function(){return{cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:null,resizable:null,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:null,isResizing:!1,resizing:null,lastX:NaN,lastY:NaN,lastW:NaN,lastH:NaN,style:{},rtl:!1,dragEventSet:!1,resizeEventSet:!1,previousW:null,previousH:null,previousX:null,previousY:null,innerX:this.x,innerY:this.y,innerW:this.w,innerH:this.h}},created:function(){var t=this,e=this;e.updateWidthHandler=function(t){e.updateWidth(t)},e.compactHandler=function(t){e.compact(t)},e.setDraggableHandler=function(t){null===e.isDraggable&&(e.draggable=t)},e.setResizableHandler=function(t){null===e.isResizable&&(e.resizable=t)},e.setRowHeightHandler=function(t){e.rowHeight=t},e.setMaxRowsHandler=function(t){e.maxRows=t},e.directionchangeHandler=function(){t.rtl="rtl"===Object(d["b"])(),t.compact()},e.setColNum=function(t){e.cols=parseInt(t)},this.eventBus.$on("updateWidth",e.updateWidthHandler),this.eventBus.$on("compact",e.compactHandler),this.eventBus.$on("setDraggable",e.setDraggableHandler),this.eventBus.$on("setResizable",e.setResizableHandler),this.eventBus.$on("setRowHeight",e.setRowHeightHandler),this.eventBus.$on("setMaxRows",e.setMaxRowsHandler),this.eventBus.$on("directionchange",e.directionchangeHandler),this.eventBus.$on("setColNum",e.setColNum),this.rtl="rtl"===Object(d["b"])()},beforeDestroy:function(){var t=this;this.eventBus.$off("updateWidth",t.updateWidthHandler),this.eventBus.$off("compact",t.compactHandler),this.eventBus.$off("setDraggable",t.setDraggableHandler),this.eventBus.$off("setResizable",t.setResizableHandler),this.eventBus.$off("setRowHeight",t.setRowHeightHandler),this.eventBus.$off("setMaxRows",t.setMaxRowsHandler),this.eventBus.$off("directionchange",t.directionchangeHandler),this.eventBus.$off("setColNum",t.setColNum),this.interactObj&&this.interactObj.unset()},mounted:function(){this.layout.responsive&&this.layout.lastBreakpoint?this.cols=Object(h["c"])(this.layout.lastBreakpoint,this.layout.cols):this.cols=this.layout.colNum,this.rowHeight=this.layout.rowHeight,this.containerWidth=null!==this.layout.width?this.layout.width:100,this.margin=void 0!==this.layout.margin?this.layout.margin:[10,10],this.maxRows=this.layout.maxRows,null===this.isDraggable?this.draggable=this.layout.isDraggable:this.draggable=this.isDraggable,null===this.isResizable?this.resizable=this.layout.isResizable:this.resizable=this.isResizable,this.useCssTransforms=this.layout.useCssTransforms,this.useStyleCursor=this.layout.useStyleCursor,this.createStyle()},watch:{isDraggable:function(){this.draggable=this.isDraggable},static:function(){this.tryMakeDraggable(),this.tryMakeResizable()},draggable:function(){this.tryMakeDraggable()},isResizable:function(){this.resizable=this.isResizable},resizable:function(){this.tryMakeResizable()},rowHeight:function(){this.createStyle(),this.emitContainerResized()},cols:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},containerWidth:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},x:function(t){this.innerX=t,this.createStyle()},y:function(t){this.innerY=t,this.createStyle()},h:function(t){this.innerH=t,this.createStyle()},w:function(t){this.innerW=t,this.createStyle()},renderRtl:function(){this.tryMakeResizable(),this.createStyle()},minH:function(){this.tryMakeResizable()},maxH:function(){this.tryMakeResizable()},minW:function(){this.tryMakeResizable()},maxW:function(){this.tryMakeResizable()},"$parent.margin":function(t){!t||t[0]==this.margin[0]&&t[1]==this.margin[1]||(this.margin=t.map((function(t){return Number(t)})),this.createStyle(),this.emitContainerResized())}},computed:{classObj:function(){return{"vue-resizable":this.resizableAndNotStatic,static:this.static,resizing:this.isResizing,"vue-draggable-dragging":this.isDragging,cssTransforms:this.useCssTransforms,"render-rtl":this.renderRtl,"disable-userselect":this.isDragging,"no-touch":this.isAndroid&&this.draggableOrResizableAndNotStatic}},resizableAndNotStatic:function(){return this.resizable&&!this.static},draggableOrResizableAndNotStatic:function(){return(this.draggable||this.resizable)&&!this.static},isAndroid:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},renderRtl:function(){return this.layout.isMirrored?!this.rtl:this.rtl},resizableHandleClass:function(){return this.renderRtl?"vue-resizable-handle vue-rtl-resizable-handle":"vue-resizable-handle"}},methods:{createStyle:function(){this.x+this.w>this.cols?(this.innerX=0,this.innerW=this.w>this.cols?this.cols:this.w):(this.innerX=this.x,this.innerW=this.w);var t,e=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH);this.isDragging&&(e.top=this.dragging.top,this.renderRtl?e.right=this.dragging.left:e.left=this.dragging.left),this.isResizing&&(e.width=this.resizing.width,e.height=this.resizing.height),t=this.useCssTransforms?this.renderRtl?Object(s["k"])(e.top,e.right,e.width,e.height):Object(s["j"])(e.top,e.left,e.width,e.height):this.renderRtl?Object(s["i"])(e.top,e.right,e.width,e.height):Object(s["h"])(e.top,e.left,e.width,e.height),this.style=t},emitContainerResized:function(){for(var t={},e=0,n=["width","height"];e<n.length;e++){var i=n[e],r=this.style[i],o=r.match(/^(\d+)px$/);if(!o)return;t[i]=o[1]}this.$emit("container-resized",this.i,this.h,this.w,t.height,t.width)},handleResize:function(t){if(!this.static){var e=a(t);if(null!=e){var n,i=e.x,r=e.y,o={width:0,height:0};switch(t.type){case"resizestart":this.previousW=this.innerW,this.previousH=this.innerH,n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),o.width=n.width,o.height=n.height,this.resizing=o,this.isResizing=!0;break;case"resizemove":var s=u(this.lastW,this.lastH,i,r);this.renderRtl?o.width=this.resizing.width-s.deltaX:o.width=this.resizing.width+s.deltaX,o.height=this.resizing.height+s.deltaY,this.resizing=o;break;case"resizeend":n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),o.width=n.width,o.height=n.height,this.resizing=null,this.isResizing=!1;break}n=this.calcWH(o.height,o.width),n.w<this.minW&&(n.w=this.minW),n.w>this.maxW&&(n.w=this.maxW),n.h<this.minH&&(n.h=this.minH),n.h>this.maxH&&(n.h=this.maxH),n.h<1&&(n.h=1),n.w<1&&(n.w=1),this.lastW=i,this.lastH=r,this.innerW===n.w&&this.innerH===n.h||this.$emit("resize",this.i,n.h,n.w,o.height,o.width),"resizeend"!==t.type||this.previousW===this.innerW&&this.previousH===this.innerH||this.$emit("resized",this.i,n.h,n.w,o.height,o.width),this.eventBus.$emit("resizeEvent",t.type,this.i,this.innerX,this.innerY,n.h,n.w)}}},handleDrag:function(t){if(!this.static&&!this.isResizing){var e=a(t);if(null!==e){var n,i=e.x,r=e.y,o={top:0,left:0};switch(t.type){case"dragstart":this.previousX=this.innerX,this.previousY=this.innerY;var s=t.target.offsetParent.getBoundingClientRect(),c=t.target.getBoundingClientRect();this.renderRtl?o.left=-1*(c.right-s.right):o.left=c.left-s.left,o.top=c.top-s.top,this.dragging=o,this.isDragging=!0;break;case"dragend":if(!this.isDragging)return;var l=t.target.offsetParent.getBoundingClientRect(),h=t.target.getBoundingClientRect();this.renderRtl?o.left=-1*(h.right-l.right):o.left=h.left-l.left,o.top=h.top-l.top,this.dragging=null,this.isDragging=!1;break;case"dragmove":var d=u(this.lastX,this.lastY,i,r);this.renderRtl?o.left=this.dragging.left-d.deltaX:o.left=this.dragging.left+d.deltaX,o.top=this.dragging.top+d.deltaY,this.dragging=o;break}n=(this.renderRtl,this.calcXY(o.top,o.left)),this.lastX=i,this.lastY=r,this.innerX===n.x&&this.innerY===n.y||this.$emit("move",this.i,n.x,n.y),"dragend"!==t.type||this.previousX===this.innerX&&this.previousY===this.innerY||this.$emit("moved",this.i,n.x,n.y),this.eventBus.$emit("dragEvent",t.type,this.i,n.x,n.y,this.innerH,this.innerW)}}},calcPosition:function(t,e,n,i){var r,o=this.calcColWidth();return r=this.renderRtl?{right:Math.round(o*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(o*n+Math.max(0,n-1)*this.margin[0]),height:i===1/0?i:Math.round(this.rowHeight*i+Math.max(0,i-1)*this.margin[1])}:{left:Math.round(o*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(o*n+Math.max(0,n-1)*this.margin[0]),height:i===1/0?i:Math.round(this.rowHeight*i+Math.max(0,i-1)*this.margin[1])},r},calcXY:function(t,e){var n=this.calcColWidth(),i=Math.round((e-this.margin[0])/(n+this.margin[0])),r=Math.round((t-this.margin[1])/(this.rowHeight+this.margin[1]));return i=Math.max(Math.min(i,this.cols-this.innerW),0),r=Math.max(Math.min(r,this.maxRows-this.innerH),0),{x:i,y:r}},calcColWidth:function(){var t=(this.containerWidth-this.margin[0]*(this.cols+1))/this.cols;return t},calcWH:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.calcColWidth(),r=Math.round((e+this.margin[0])/(i+this.margin[0])),o=0;return o=n?Math.ceil((t+this.margin[1])/(this.rowHeight+this.margin[1])):Math.round((t+this.margin[1])/(this.rowHeight+this.margin[1])),r=Math.max(Math.min(r,this.cols-this.innerX),0),o=Math.max(Math.min(o,this.maxRows-this.innerY),0),{w:r,h:o}},updateWidth:function(t,e){this.containerWidth=t,void 0!==e&&null!==e&&(this.cols=e)},compact:function(){this.createStyle()},tryMakeDraggable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=we(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.draggable&&!this.static){var e={ignoreFrom:this.dragIgnoreFrom,allowFrom:this.dragAllowFrom};this.interactObj.draggable(e),this.dragEventSet||(this.dragEventSet=!0,this.interactObj.on("dragstart dragmove dragend",(function(e){t.handleDrag(e)})))}else this.interactObj.draggable({enabled:!1})},tryMakeResizable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=we(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.resizable&&!this.static){var e=this.calcPosition(0,0,this.maxW,this.maxH),n=this.calcPosition(0,0,this.minW,this.minH),i={edges:{left:!1,right:"."+this.resizableHandleClass.trim().replace(" ","."),bottom:"."+this.resizableHandleClass.trim().replace(" ","."),top:!1},ignoreFrom:this.resizeIgnoreFrom,restrictSize:{min:{height:n.height,width:n.width},max:{height:e.height,width:e.width}}};this.preserveAspectRatio&&(i.modifiers=[we.modifiers.aspectRatio({ratio:"preserve"})]),this.interactObj.resizable(i),this.resizeEventSet||(this.resizeEventSet=!0,this.interactObj.on("resizestart resizemove resizeend",(function(e){t.handleResize(e)})))}else this.interactObj.resizable({enabled:!1})},autoSize:function(){this.previousW=this.innerW,this.previousH=this.innerH;var t=this.$slots.default[0].elm.getBoundingClientRect(),e=this.calcWH(t.height,t.width,!0);e.w<this.minW&&(e.w=this.minW),e.w>this.maxW&&(e.w=this.maxW),e.h<this.minH&&(e.h=this.minH),e.h>this.maxH&&(e.h=this.maxH),e.h<1&&(e.h=1),e.w<1&&(e.w=1),this.innerW===e.w&&this.innerH===e.h||this.$emit("resize",this.i,e.h,e.w,t.height,t.width),this.previousW===e.w&&this.previousH===e.h||(this.$emit("resized",this.i,e.h,e.w,t.height,t.width),this.eventBus.$emit("resizeEvent","resizeend",this.i,this.innerX,this.innerY,e.h,e.w))}}},Ai=Di,ki=(n("5ed4"),n("2877")),Ci=Object(ki["a"])(Ai,r,o,!1,null,null,null);e["a"]=Ci.exports},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c274:function(t,e,n){"use strict";var i=n("50bf");function r(){var t={},e=0,n=0,i=0;function r(r,o){o||(o=r,r=0),r>n?n=r:r<i&&(i=r),t[r]||(t[r]=[]),t[r].push(o),e++}function o(){for(var e=i;e<=n;e++)for(var r=t[e],o=0;o<r.length;o++){var s=r[o];s()}}function s(){return e}return{add:r,process:o,size:s}}t.exports=function(t){t=t||{};var e=t.reporter,n=i.getOption(t,"async",!0),o=i.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var s,a=r(),c=!1;function u(t,e){!c&&o&&n&&0===a.size()&&d(),a.add(t,e)}function l(){c=!0;while(a.size()){var t=a;a=r(),t.process()}c=!1}function h(t){c||(void 0===t&&(t=n),s&&(f(s),s=null),t?d():l())}function d(){s=p(l)}function f(t){var e=clearTimeout;return e(t)}function p(t){var e=function(t){return setTimeout(t,0)};return e(t)}return{add:u,force:h}}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,c=i(e),u=r(c.length),l=o(s,u);if(t&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,h=n("86cc").f,d=n("aa77").trim,f="Number",p=i[f],g=p,m=p.prototype,v=o(n("2aeb")(m))==f,b="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():d(e,3);var n,i,r,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var s,c=e.slice(2),u=0,l=c.length;u<l;u++)if(s=c.charCodeAt(u),s<48||s>r)return NaN;return parseInt(c,i)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(v?c((function(){m.valueOf.call(n)})):o(n)!=f)?s(new g(y(e)),n,p):y(e)};for(var x,w=n("9e1e")?u(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)r(g,x=w[S])&&!r(p,x)&&h(p,x,l(g,x));p.prototype=m,m.constructor=p,n("2aba")(i,f,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c946:function(t,e,n){"use strict";var i=n("b770").forEach;t.exports=function(t){t=t||{};var e=t.reporter,n=t.batchProcessor,r=t.stateHandler.getState,o=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var s=h(),a="erd_scroll_detection_scrollbar_style",c="erd_scroll_detection_container";function u(t){d(t,a,c)}function l(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function h(){var t=500,e=500,n=document.createElement("div");n.style.cssText=l(["position: absolute","width: "+2*t+"px","height: "+2*e+"px","visibility: hidden","margin: 0","padding: 0"]);var i=document.createElement("div");i.style.cssText=l(["position: absolute","width: "+t+"px","height: "+e+"px","overflow: scroll","visibility: none","top: "+3*-t+"px","left: "+3*-e+"px","visibility: hidden","margin: 0","padding: 0"]),i.appendChild(n),document.body.insertBefore(i,document.body.firstChild);var r=t-i.clientWidth,o=e-i.clientHeight;return document.body.removeChild(i),{width:r,height:o}}function d(t,e,n){function i(n,i){i=i||function(e){t.head.appendChild(e)};var r=t.createElement("style");return r.innerHTML=n,r.id=e,i(r),r}if(!t.getElementById(e)){var r=n+"_animation",o=n+"_animation_active",s="/* Created by the element-resize-detector library. */\n";s+="."+n+" > div::-webkit-scrollbar { "+l(["display: none"])+" }\n\n",s+="."+o+" { "+l(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+r,"animation-name: "+r])+" }\n",s+="@-webkit-keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",s+="@keyframes "+r+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",i(s)}}function f(t){t.className+=" "+c+"_animation_active"}function p(t,n,i){if(t.addEventListener)t.addEventListener(n,i);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,i)}}function g(t,n,i){if(t.removeEventListener)t.removeEventListener(n,i);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,i)}}function m(t){return r(t).container.childNodes[0].childNodes[0].childNodes[0]}function v(t){return r(t).container.childNodes[0].childNodes[0].childNodes[1]}function b(t,e){var n=r(t).listeners;if(!n.push)throw new Error("Cannot add listener to an element that is not detectable.");r(t).listeners.push(e)}function y(t,a,u){function h(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(a),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var i=0;i<n.length;i++)e.log(n[i])}}function d(t){function e(t){var e=t.getRootNode&&t.getRootNode().contains(t);return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)||e}return!e(t)||null===window.getComputedStyle(t)}function g(t){var e=r(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function b(){var t=window.getComputedStyle(a),e={};return e.position=t.position,e.width=a.offsetWidth,e.height=a.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function y(){var t=b();r(a).startSize={width:t.width,height:t.height},h("Element start size",r(a).startSize)}function x(){r(a).listeners=[]}function w(){if(h("storeStyle invoked."),r(a)){var t=b();r(a).style=t}else h("Aborting because element has been uninstalled")}function S(t,e,n){r(t).lastWidth=e,r(t).lastHeight=n}function E(t){return m(t).childNodes[0]}function T(){return 2*s.width+1}function O(){return 2*s.height+1}function z(t){return t+10+T()}function M(t){return t+10+O()}function _(t){return 2*t+T()}function P(t){return 2*t+O()}function I(t,e,n){var i=m(t),r=v(t),o=z(e),s=M(n),a=_(e),c=P(n);i.scrollLeft=o,i.scrollTop=s,r.scrollLeft=a,r.scrollTop=c}function j(){var t=r(a).container;if(!t){t=document.createElement("div"),t.className=c,t.style.cssText=l(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),r(a).container=t,f(t),a.appendChild(t);var e=function(){r(a).onRendered&&r(a).onRendered()};p(t,"animationstart",e),r(a).onAnimationStart=e}return t}function R(){function n(){var n=r(a).style;if("static"===n.position){a.style.setProperty("position","relative",t.important?"important":"");var i=function(t,e,n,i){function r(t){return t.replace(/[^-\d\.]/g,"")}var o=n[i];"auto"!==o&&"0"!==r(o)&&(t.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",e),e.style[i]=0)};i(e,a,n,"top"),i(e,a,n,"right"),i(e,a,n,"bottom"),i(e,a,n,"left")}}function i(t,e,n,i){return t=t?t+"px":"0",e=e?e+"px":"0",n=n?n+"px":"0",i=i?i+"px":"0",["left: "+t,"top: "+e,"right: "+i,"bottom: "+n]}if(h("Injecting elements"),r(a)){n();var o=r(a).container;o||(o=j());var u=s.width,d=s.height,f=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),g=l(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(i(-(1+u),-(1+d),-d,-u))),m=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),v=l(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=l(["position: absolute","left: 0","top: 0"]),y=l(["position: absolute","width: 200%","height: 200%"]),x=document.createElement("div"),w=document.createElement("div"),S=document.createElement("div"),E=document.createElement("div"),T=document.createElement("div"),O=document.createElement("div");x.dir="ltr",x.style.cssText=f,x.className=c,w.className=c,w.style.cssText=g,S.style.cssText=m,E.style.cssText=b,T.style.cssText=v,O.style.cssText=y,S.appendChild(E),T.appendChild(O),w.appendChild(S),w.appendChild(T),x.appendChild(w),o.appendChild(x),p(S,"scroll",z),p(T,"scroll",M),r(a).onExpandScroll=z,r(a).onShrinkScroll=M}else h("Aborting because element has been uninstalled");function z(){r(a).onExpand&&r(a).onExpand()}function M(){r(a).onShrink&&r(a).onShrink()}}function D(){function s(e,n,i){var r=E(e),o=z(n),s=M(i);r.style.setProperty("width",o+"px",t.important?"important":""),r.style.setProperty("height",s+"px",t.important?"important":"")}function c(i){var c=a.offsetWidth,l=a.offsetHeight,d=c!==r(a).lastWidth||l!==r(a).lastHeight;h("Storing current size",c,l),S(a,c,l),n.add(0,(function(){if(d)if(r(a))if(u()){if(t.debug){var n=a.offsetWidth,i=a.offsetHeight;n===c&&i===l||e.warn(o.get(a),"Scroll: Size changed before updating detector elements.")}s(a,c,l)}else h("Aborting because element container has not been initialized");else h("Aborting because element has been uninstalled")})),n.add(1,(function(){r(a)?u()?I(a,c,l):h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")})),d&&i&&n.add(2,(function(){r(a)?u()?i():h("Aborting because element container has not been initialized"):h("Aborting because element has been uninstalled")}))}function u(){return!!r(a).container}function l(){function t(){return void 0===r(a).lastNotifiedWidth}h("notifyListenersIfNeeded invoked");var e=r(a);return t()&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?h("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?h("Not notifying: Size already notified"):(h("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void i(r(a).listeners,(function(t){t(a)})))}function d(){if(h("startanimation triggered."),g(a))h("Ignoring since element is still unrendered...");else{h("Element rendered.");var t=m(a),e=v(a);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(h("Scrollbars out of sync. Updating detector elements..."),c(l))}}function f(){h("Scroll detected."),g(a)?h("Scroll event fired while unrendered. Ignoring..."):c(l)}if(h("registerListenersAndPositionElements invoked."),r(a)){r(a).onRendered=d,r(a).onExpand=f,r(a).onShrink=f;var p=r(a).style;s(a,p.width,p.height)}else h("Aborting because element has been uninstalled")}function A(){if(h("finalizeDomMutation invoked."),r(a)){var t=r(a).style;S(a,t.width,t.height),I(a,t.width,t.height)}else h("Aborting because element has been uninstalled")}function k(){u(a)}function C(){h("Installing..."),x(),y(),n.add(0,w),n.add(1,R),n.add(2,D),n.add(3,A),n.add(4,k)}u||(u=a,a=t,t=null),t=t||{},h("Making detectable..."),d(a)?(h("Element is detached"),j(),h("Waiting until element is attached..."),r(a).onRendered=function(){h("Element is now attached"),C()}):C()}function x(t){var e=r(t);e&&(e.onExpandScroll&&g(m(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&g(v(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&g(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))}return u(window.document),{makeDetectable:y,addListener:b,uninstall:x,initDocument:u}}},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),s=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=r(t),c=0,u=[];for(n in a)n!=s&&i(a,n)&&u.push(n);while(e.length>c)i(a,n=e[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";var i="_erd";function r(t){return t[i]={},o(t)}function o(t){return t[i]}function s(t){delete t[i]}t.exports={initState:r,getState:o,cleanState:s}},d864:function(t,e,n){var i=n("79aa");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var i=n("e4ae"),r=n("794b"),o=n("1bc3"),s=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e279:function(t,e,n){"use strict";n("1156")},e4ae:function(t,e,n){var i=n("f772");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},eb59:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return u})),n.d(e,"f",(function(){return l})),n.d(e,"e",(function(){return d})),n.d(e,"g",(function(){return p})),n.d(e,"j",(function(){return m})),n.d(e,"k",(function(){return v})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return y})),n.d(e,"l",(function(){return w}));n("a481"),n("cadf"),n("456d"),n("ac6a"),n("55dd");function i(t){for(var e,n=0,i=0,r=t.length;i<r;i++)e=t[i].y+t[i].h,e>n&&(n=e);return n}function r(t){for(var e=Array(t.length),n=0,i=t.length;n<i;n++)e[n]=o(t[n]);return e}function o(t){return JSON.parse(JSON.stringify(t))}function s(t,e){return t!==e&&(!(t.x+t.w<=e.x)&&(!(t.x>=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function a(t,e){for(var n=f(t),i=x(t),r=Array(t.length),o=0,s=i.length;o<s;o++){var a=i[o];a.static||(a=c(n,a,e),n.push(a)),r[t.indexOf(a)]=a,a.moved=!1}return r}function c(t,e,n){if(n)while(e.y>0&&!h(t,e))e.y--;var i;while(i=h(t,e))e.y=i.y+i.h;return e}function u(t,e){for(var n=f(t),i=0,r=t.length;i<r;i++){var o=t[i];if(o.x+o.w>e.cols&&(o.x=e.cols-o.w),o.x<0&&(o.x=0,o.w=e.cols),o.static)while(h(n,o))o.y++;else n.push(o)}return t}function l(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n].i===e)return t[n]}function h(t,e){for(var n=0,i=t.length;n<i;n++)if(s(t[n],e))return t[n]}function d(t,e){return t.filter((function(t){return s(t,e)}))}function f(t){return t.filter((function(t){return t.static}))}function p(t,e,n,i,r,o){if(e.static)return t;var s=e.x,a=e.y,c=i&&e.y>i;"number"===typeof n&&(e.x=n),"number"===typeof i&&(e.y=i),e.moved=!0;var u=x(t);c&&(u=u.reverse());var l=d(u,e);if(o&&l.length)return e.x=s,e.y=a,e.moved=!1,t;for(var h=0,f=l.length;h<f;h++){var p=l[h];p.moved||(e.y>p.y&&e.y-p.y>p.h/4||(t=p.static?g(t,p,e,r):g(t,e,p,r)))}return t}function g(t,e,n,i){var r=!1;if(i){var o={x:n.x,y:n.y,w:n.w,h:n.h,i:"-1"};if(o.y=Math.max(e.y-n.h,0),!h(t,o))return p(t,n,void 0,o.y,r)}return p(t,n,void 0,n.y+1,r)}function m(t,e,n,i){var r="translate3d("+e+"px,"+t+"px, 0)";return{transform:r,WebkitTransform:r,MozTransform:r,msTransform:r,OTransform:r,width:n+"px",height:i+"px",position:"absolute"}}function v(t,e,n,i){var r="translate3d("+-1*e+"px,"+t+"px, 0)";return{transform:r,WebkitTransform:r,MozTransform:r,msTransform:r,OTransform:r,width:n+"px",height:i+"px",position:"absolute"}}function b(t,e,n,i){return{top:t+"px",left:e+"px",width:n+"px",height:i+"px",position:"absolute"}}function y(t,e,n,i){return{top:t+"px",right:e+"px",width:n+"px",height:i+"px",position:"absolute"}}function x(t){return[].concat(t).sort((function(t,e){return t.y===e.y&&t.x===e.x?0:t.y>e.y||t.y===e.y&&t.x>e.x?1:-1}))}function w(t,e){e=e||"Layout";var n=["x","y","w","h"],i=[];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var r=0,o=t.length;r<o;r++){for(var s=t[r],a=0;a<n.length;a++)if("number"!==typeof s[n[a]])throw new Error("VueGridLayout: "+e+"["+r+"]."+n[a]+" must be a number!");if(void 0===s.i||null===s.i)throw new Error("VueGridLayout: "+e+"["+r+"].i cannot be null!");if("number"!==typeof s.i&&"string"!==typeof s.i)throw new Error("VueGridLayout: "+e+"["+r+"].i must be a string or number!");if(i.indexOf(s.i)>=0)throw new Error("VueGridLayout: "+e+"["+r+"].i must be unique!");if(i.push(s.i),void 0!==s.static&&"boolean"!==typeof s.static)throw new Error("VueGridLayout: "+e+"["+r+"].static must be a boolean!")}}},eec4:function(t,e,n){"use strict";var i=n("b770").forEach,r=n("5be5"),o=n("49ad"),s=n("2cef"),a=n("5058"),c=n("abb4"),u=n("18e9"),l=n("c274"),h=n("d6eb"),d=n("18d2"),f=n("c946");function p(t){return Array.isArray(t)||void 0!==t.length}function g(t){if(Array.isArray(t))return t;var e=[];return i(t,(function(t){e.push(t)})),e}function m(t){return t&&1===t.nodeType}function v(t,e,n){var i=t[e];return void 0!==i&&null!==i||void 0===n?i:n}t.exports=function(t){var e;if(t=t||{},t.idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=s(),b=a({idGenerator:n,stateHandler:h});e=b}var y=t.reporter;if(!y){var x=!1===y;y=c(x)}var w=v(t,"batchProcessor",l({reporter:y})),S={};S.callOnAdd=!!v(t,"callOnAdd",!0),S.debug=!!v(t,"debug",!1);var E,T=o(e),O=r({stateHandler:h}),z=v(t,"strategy","object"),M=v(t,"important",!1),_={reporter:y,batchProcessor:w,stateHandler:h,idHandler:e,important:M};if("scroll"===z&&(u.isLegacyOpera()?(y.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),z="object"):u.isIE(9)&&(y.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),z="object")),"scroll"===z)E=f(_);else{if("object"!==z)throw new Error("Invalid strategy name: "+z);E=d(_)}var P={};function I(t,n,r){function o(t){var e=T.get(t);i(e,(function(e){e(t)}))}function s(t,e,n){T.add(e,n),t&&n(e)}if(r||(r=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!r)throw new Error("Listener required.");if(m(n))n=[n];else{if(!p(n))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var a=0,c=v(t,"callOnAdd",S.callOnAdd),u=v(t,"onReady",(function(){})),l=v(t,"debug",S.debug);i(n,(function(t){h.getState(t)||(h.initState(t),e.set(t));var d=e.get(t);if(l&&y.log("Attaching listener to element",d,t),!O.isDetectable(t))return l&&y.log(d,"Not detectable."),O.isBusy(t)?(l&&y.log(d,"System busy making it detectable"),s(c,t,r),P[d]=P[d]||[],void P[d].push((function(){a++,a===n.length&&u()}))):(l&&y.log(d,"Making detectable..."),O.markBusy(t,!0),E.makeDetectable({debug:l,important:M},t,(function(t){if(l&&y.log(d,"onElementDetectable"),h.getState(t)){O.markAsDetectable(t),O.markBusy(t,!1),E.addListener(t,o),s(c,t,r);var e=h.getState(t);if(e&&e.startSize){var f=t.offsetWidth,p=t.offsetHeight;e.startSize.width===f&&e.startSize.height===p||o(t)}P[d]&&i(P[d],(function(t){t()}))}else l&&y.log(d,"Element uninstalled before being detectable.");delete P[d],a++,a===n.length&&u()})));l&&y.log(d,"Already detecable, adding listener."),s(c,t,r),a++})),a===n.length&&u()}function j(t){if(!t)return y.error("At least one element is required.");if(m(t))t=[t];else{if(!p(t))return y.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=g(t)}i(t,(function(t){T.removeAllListeners(t),E.uninstall(t),h.cleanState(t)}))}function R(t){E.initDocument&&E.initDocument(t)}return{listenTo:I,removeListener:T.removeListener,removeAllListeners:T.removeAllListeners,uninstall:j,initDocument:R}}},f1ae:function(t,e,n){"use strict";var i=n("86cc"),r=n("4630");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;(n.r(e),n.d(e,"install",(function(){return r["d"]})),n.d(e,"GridLayout",(function(){return r["b"]})),n.d(e,"GridItem",(function(){return r["a"]})),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));var r=n("2af9");e["default"]=r["c"]},fca0:function(t,e,n){var i=n("5ca1"),r=n("7726").isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})["default"]})); //# sourceMappingURL=vue-grid-layout.umd.min.js.map
47,097.333333
141,041
0.700443
3b1434bb026e4b4942802a5f23acff019deded20
659
js
JavaScript
src/main.js
mehdyouras/vue-confessionnal
8c40a41bded58e6ec7cd95b20a91f90d02829bac
[ "Apache-2.0" ]
null
null
null
src/main.js
mehdyouras/vue-confessionnal
8c40a41bded58e6ec7cd95b20a91f90d02829bac
[ "Apache-2.0" ]
null
null
null
src/main.js
mehdyouras/vue-confessionnal
8c40a41bded58e6ec7cd95b20a91f90d02829bac
[ "Apache-2.0" ]
null
null
null
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue'; import App from './App'; import router from './router'; import apolloClient from './plugins/vue-apollo'; import VueApollo from 'vue-apollo' import BootstrapVue from './plugins/bootstrap-vue'; Vue.use(VueApollo); Vue.use(BootstrapVue); Vue.config.productionTip = false; const apolloProvider = new VueApollo({ defaultClient: apolloClient, }) /* eslint-disable no-new */ new Vue({ el: '#app', router, provide: apolloProvider.provide(), components: { App }, template: '<App/>', });
22.724138
80
0.711684
3b1532d617ac80a75f3a916dcd7a3bd42c1da1ad
5,741
js
JavaScript
fbwiki/mediawiki/extensions/MultimediaViewer/resources/mmv.ui.tipsyDialog/mmv.ui.tipsyDialog.js
FrederickOberg/frederickoberg.github.io
a1ba4076482dbdba8a0b717db6034d138f01cabe
[ "CC-BY-3.0" ]
1
2019-10-09T13:48:40.000Z
2019-10-09T13:48:40.000Z
fbwiki/mediawiki/extensions/MultimediaViewer/resources/mmv.ui.tipsyDialog/mmv.ui.tipsyDialog.js
FrederickOberg/frederickoberg.github.io
a1ba4076482dbdba8a0b717db6034d138f01cabe
[ "CC-BY-3.0" ]
5
2019-07-28T08:18:23.000Z
2020-09-06T01:25:28.000Z
fbwiki/mediawiki/extensions/MultimediaViewer/resources/mmv.ui.tipsyDialog/mmv.ui.tipsyDialog.js
FrederickOberg/frederickoberg.github.io
a1ba4076482dbdba8a0b717db6034d138f01cabe
[ "CC-BY-3.0" ]
1
2019-07-28T10:17:46.000Z
2019-07-28T10:17:46.000Z
/* * This file is part of the MediaWiki extension MediaViewer. * * MediaViewer is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * MediaViewer is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MediaViewer. If not, see <http://www.gnu.org/licenses/>. */ ( function () { var TDP; /** * A simple popup dialog that can be opened and closed and can contain some HTML. * Due to the way tipsy works, there can be only one TipsyDialog and/or tipsy tooltip on the same element. * * @class mw.mmv.ui.TipsyDialog * @extends mw.mmv.ui.Element * @constructor * @param {jQuery} $anchor the element to which the popup is anchored. * @param {Object} options takes any tipsy option - see * https://github.com/jaz303/tipsy/blob/master/docs/src/index.html.erb#L298 */ function TipsyDialog( $anchor, options ) { mw.mmv.ui.Element.call( this, null ); // tipsy does the element construction so we don't need a container /** @property {jQuery} $anchor - */ this.$anchor = $anchor; /** @property {Object} options - */ this.options = $.extend( {}, this.defaultOptions, options ); /** @property {boolean} dirty Track whether tipsy settings changed and need to be reinitialized. */ this.dirty = false; /** @property {string|null} contentTitle Title of the dialog (optional) */ this.contentTitle = null; /** @property {string|null} contentBody Contents of the dialog */ this.contentBody = null; /** @property {Function} closeProxy Proxied close function to be used as an event handler, so it can be * identified for removal. */ this.closeProxy = this.maybeCloseOnClick.bind( this ); } OO.inheritClass( TipsyDialog, mw.mmv.ui.Element ); TDP = TipsyDialog.prototype; /** * @property {Object} defaultOptions Tipsy defaults - see * https://github.com/jaz303/tipsy/blob/master/docs/src/index.html.erb#L298 */ TDP.defaultOptions = { // tipsy options trigger: 'manual', html: true, fade: false, offset: 0, gravity: 'sw' }; /** * @property {number} extraOffset offset adjustment to correct for the larger margins and tip size * compared to the standard tipsy style */ TDP.extraOffset = 10; /** * @private * @return {boolean} */ TDP.isInitialized = function () { return !!this.$anchor.tipsy( true ); }; /** * Returns the preprocessed version of an options object: * - directions are flipped on RTL documents * - standard classnames are applied * - HTML content is generated * The original object is not changed. * * @private * @param {Object} originalOptions * @return {Object} Preprocessed options */ TDP.getPreprocessedOptions = function ( originalOptions ) { var options = $.extend( {}, originalOptions ); if ( options.className ) { options.className += ' mw-mmv-tipsy-dialog'; } else { options.className = ' mw-mmv-tipsy-dialog'; } options.gravity = this.correctEW( options.gravity ); options.offset += this.extraOffset; options.fallback = this.generateContent( this.contentTitle, this.contentBody ); return options; }; /** * @private */ TDP.init = function () { var options; if ( !this.isInitialized() || this.dirty ) { options = this.getPreprocessedOptions( this.options ); this.$anchor.tipsy( options ); // add click handler to close the popup when clicking on X or outside // off is to make sure we won't end up with more then one - init() can be called multiple times this.$anchor.find( '.mw-mmv-tipsy-dialog-disable' ).add( document ) .off( 'click.mmv-tipsy-dialog', this.closeProxy ) .on( 'click.mmv-tipsy-dialog', this.closeProxy ); this.dirty = false; } }; /** * Open the dialog */ TDP.open = function () { this.init(); this.$anchor.tipsy( 'enable' ).tipsy( 'show' ); }; /** * Close the dialog */ TDP.close = function () { if ( this.isInitialized() ) { this.$anchor.tipsy( 'hide' ).tipsy( 'disable' ); } }; /** * Return the main popup element. * * @return {jQuery|null} */ TDP.getPopup = function () { var tipsyData = this.$anchor.tipsy( true ); return tipsyData ? tipsyData.$tip : null; }; /** * Set dialog contents * * @param {string|null} title title of the dialog (plain text; escaping will be handled by TipsyDialog) * @param {string|null} body content of the dialog (HTML; no escaping) */ TDP.setContent = function ( title, body ) { this.contentTitle = title; this.contentBody = body; this.dirty = true; }; /** * @private * @param {string} [title] * @param {string} [body] * @return {string} */ TDP.generateContent = function ( title, body ) { body = body || ''; if ( title ) { body = '<div class="mw-mmv-tipsy-dialog-title">' + mw.html.escape( title ) + '</div>' + body; } return '<div class="mw-mmv-tipsy-dialog-disable"></div>' + body; }; /** * Click handler to be set on the document. * * @private * @param {jQuery.Event} event */ TDP.maybeCloseOnClick = function ( event ) { var $clickTarget = $( event.target ); if ( $clickTarget.closest( this.getPopup() ).length === 0 || // click was outside the dialog $clickTarget.closest( '.mw-mmv-tipsy-dialog-disable' ).length > 0 // click was on the close icon ) { this.close(); } }; mw.mmv.ui.TipsyDialog = TipsyDialog; }() );
28.280788
107
0.665389
3b15559962ca9b154d1e3aafb7490cd8871b677b
180
js
JavaScript
server/server.js
kimhartley/SpacePants-FrontEnd
04ab1359849e0147cc911a54639edf796ea2c877
[ "MIT" ]
1
2020-05-21T00:09:45.000Z
2020-05-21T00:09:45.000Z
server/server.js
kimhartley/SpacePants-FrontEnd
04ab1359849e0147cc911a54639edf796ea2c877
[ "MIT" ]
null
null
null
server/server.js
kimhartley/SpacePants-FrontEnd
04ab1359849e0147cc911a54639edf796ea2c877
[ "MIT" ]
null
null
null
const path = require('path') const express = require('express') const server = express() server.use(express.json()) server.use(express.static('public')) module.exports = server
18
36
0.727778
3b1557eb8bb75e2fb770dc42a1dbc6f81c85206f
1,314
js
JavaScript
src/pages/auth/Register.js
Mynameisvishal/apollo-blog-site
1dba7db8b3ffd0d0ffe1ebd877e950d36146a534
[ "MIT" ]
null
null
null
src/pages/auth/Register.js
Mynameisvishal/apollo-blog-site
1dba7db8b3ffd0d0ffe1ebd877e950d36146a534
[ "MIT" ]
null
null
null
src/pages/auth/Register.js
Mynameisvishal/apollo-blog-site
1dba7db8b3ffd0d0ffe1ebd877e950d36146a534
[ "MIT" ]
null
null
null
import React, { useState } from 'react'; import { auth } from '../../firebase'; import { toast } from 'react-toastify'; import AuthForm from '../../components/forms/AuthForm'; const Register = () => { const [email, setEmail] = useState('vishaltheking54.vr@gmail.com'); const [loading, setLoading] = useState(false); const handleSubmit = async (e) => { e.preventDefault(); setLoading(true); const config = { url: process.env.REACT_APP_CONFIRMATION_EMAIL_REDIRECT, handleCodeInApp: true }; const result = await auth.sendSignInLinkToEmail(email, config); console.log('result', result); // show toast notification to user about email sent toast.success(`Email is sent to ${email}. click the link to complete your registration.`); // save user email to local storage window.localStorage.setItem('emailForRegistration', email); // clear state setEmail(''); setLoading(''); }; return ( <div className="contianer p-5"> {loading ? <h4 className="text-danger">Loading...</h4> : <h4>Register</h4>} <AuthForm email={email} loading={loading} setEmail={setEmail} handleSubmit={handleSubmit} /> </div> ); }; export default Register;
35.513514
104
0.61796
3b15e47d662b6e84938aac0fe4b278947b136147
946
js
JavaScript
plugin/ActiveMQ/www/ActiveMQ.js
lostsnow/Bifrost
aeb88c59d163ce512d317f0f3de715600740d893
[ "Apache-2.0" ]
988
2019-05-17T03:38:15.000Z
2022-03-31T11:16:38.000Z
plugin/ActiveMQ/www/ActiveMQ.js
lostsnow/Bifrost
aeb88c59d163ce512d317f0f3de715600740d893
[ "Apache-2.0" ]
73
2020-01-10T14:31:19.000Z
2022-03-25T09:36:08.000Z
plugin/ActiveMQ/www/ActiveMQ.js
lostsnow/Bifrost
aeb88c59d163ce512d317f0f3de715600740d893
[ "Apache-2.0" ]
220
2019-05-18T07:18:04.000Z
2022-03-30T06:01:19.000Z
function transferBool(b){ if(b=="true" || b == "1"){ return true; }else{ return false; } } function doGetPluginParam(){ var result = {data:{},status:false,msg:"error",batchSupport:true} var data = {}; var QueueName = $("#ActiveMQ_Queue").val(); var Expir = $("#ActiveMQ_Plugin_Contair input[name='Expir']").val(); var Persistent = transferBool($("#RabbitMQ_Plugin_Contair #RabbitMQ_Persistent").val()); if(QueueName == ""){ result.msg = "QueueName not be empty!" return result; } if (Expir != "" && Expir != null && isNaN(Expir)){ result.msg = "Expir must be int!" return result; } data["QueueName"] = QueueName; data["Persistent"] = Persistent; data["Expir"] = parseInt(Expir); result.data = data; result.msg = "success"; result.status = true; return result; } setPluginParamDefault("FilterQuery",false);
26.277778
93
0.587738
3b166ba595692da181c597eacca7ee391615ffa2
8,201
js
JavaScript
advent-of-code-2021/day11.js
discombobulateme/advent-of-code
62ba5726b38c41b7413f0adce3dee43de821cbe8
[ "MIT" ]
null
null
null
advent-of-code-2021/day11.js
discombobulateme/advent-of-code
62ba5726b38c41b7413f0adce3dee43de821cbe8
[ "MIT" ]
null
null
null
advent-of-code-2021/day11.js
discombobulateme/advent-of-code
62ba5726b38c41b7413f0adce3dee43de821cbe8
[ "MIT" ]
null
null
null
/* --- Day 11: Dumbo Octopus --- You enter a large cavern full of rare bioluminescent dumbo octopuses! They seem to not like the Christmas lights on your submarine, so you turn them off for now. There are 100 octopuses arranged neatly in a 10 by 10 grid. Each octopus slowly gains energy over time and flashes brightly for a moment when its energy is full. Although your lights are off, maybe you could navigate through the cave without disturbing the octopuses if you could predict when the flashes of light will happen. Each octopus has an energy level - your submarine can remotely measure the energy level of each octopus (your puzzle input). For example: 5483143223 2745854711 5264556173 6141336146 6357385478 4167524645 2176841721 6882881134 4846848554 5283751526 The energy level of each octopus is a value between 0 and 9. Here, the top-left octopus has an energy level of 5, the bottom-right one has an energy level of 6, and so on. You can model the energy levels and flashes of light in steps. During a single step, the following occurs: First, the energy level of each octopus increases by 1. Then, any octopus with an energy level greater than 9 flashes. This increases the energy level of all adjacent octopuses by 1, including octopuses that are diagonally adjacent. If this causes an octopus to have an energy level greater than 9, it also flashes. This process continues as long as new octopuses keep having their energy level increased beyond 9. (An octopus can only flash at most once per step.) Finally, any octopus that flashed during this step has its energy level set to 0, as it used all of its energy to flash. Adjacent flashes can cause an octopus to flash on a step even if it begins that step with very little energy. Consider the middle octopus with 1 energy in this situation: Before any steps: 11111 19991 19191 19991 11111 After step 1: 34543 40004 50005 40004 34543 After step 2: 45654 51115 61116 51115 45654 An octopus is highlighted when it flashed during the given step. Here is how the larger example above progresses: Before any steps: 5483143223 2745854711 5264556173 6141336146 6357385478 4167524645 2176841721 6882881134 4846848554 5283751526 After step 1: 6594254334 3856965822 6375667284 7252447257 7468496589 5278635756 3287952832 7993992245 5957959665 6394862637 After step 2: 8807476555 5089087054 8597889608 8485769600 8700908800 6600088989 6800005943 0000007456 9000000876 8700006848 After step 3: 0050900866 8500800575 9900000039 9700000041 9935080063 7712300000 7911250009 2211130000 0421125000 0021119000 After step 4: 2263031977 0923031697 0032221150 0041111163 0076191174 0053411122 0042361120 5532241122 1532247211 1132230211 After step 5: 4484144000 2044144000 2253333493 1152333274 1187303285 1164633233 1153472231 6643352233 2643358322 2243341322 After step 6: 5595255111 3155255222 3364444605 2263444496 2298414396 2275744344 2264583342 7754463344 3754469433 3354452433 After step 7: 6707366222 4377366333 4475555827 3496655709 3500625609 3509955566 3486694453 8865585555 4865580644 4465574644 After step 8: 7818477333 5488477444 5697666949 4608766830 4734946730 4740097688 6900007564 0000009666 8000004755 6800007755 After step 9: 9060000644 7800000976 6900000080 5840000082 5858000093 6962400000 8021250009 2221130009 9111128097 7911119976 After step 10: 0481112976 0031112009 0041112504 0081111406 0099111306 0093511233 0442361130 5532252350 0532250600 0032240000 After step 10, there have been a total of 204 flashes. Fast forwarding, here is the same configuration every 10 steps: After step 20: 3936556452 5686556806 4496555690 4448655580 4456865570 5680086577 7000009896 0000000344 6000000364 4600009543 After step 30: 0643334118 4253334611 3374333458 2225333337 2229333338 2276733333 2754574565 5544458511 9444447111 7944446119 After step 40: 6211111981 0421111119 0042111115 0003111115 0003111116 0065611111 0532351111 3322234597 2222222976 2222222762 After step 50: 9655556447 4865556805 4486555690 4458655580 4574865570 5700086566 6000009887 8000000533 6800000633 5680000538 After step 60: 2533334200 2743334640 2264333458 2225333337 2225333338 2287833333 3854573455 1854458611 1175447111 1115446111 After step 70: 8211111164 0421111166 0042111114 0004211115 0000211116 0065611111 0532351111 7322235117 5722223475 4572222754 After step 80: 1755555697 5965555609 4486555680 4458655580 4570865570 5700086566 7000008666 0000000990 0000000800 0000000000 After step 90: 7433333522 2643333522 2264333458 2226433337 2222433338 2287833333 2854573333 4854458333 3387779333 3333333333 After step 100: 0397666866 0749766918 0053976933 0004297822 0004229892 0053222877 0532222966 9322228966 7922286866 6789998766 After 100 steps, there have been a total of 1656 flashes. Given the starting energy levels of the dumbo octopuses in your cavern, simulate 100 steps. How many total flashes are there after 100 steps? Expected output: 1667 --- Part Two --- It seems like the individual flashes aren't bright enough to navigate. However, you might have a better option: the flashes seem to be synchronizing! In the example above, the first time all octopuses flash simultaneously is step 195: After step 193: 5877777777 8877777777 7777777777 7777777777 7777777777 7777777777 7777777777 7777777777 7777777777 7777777777 After step 194: 6988888888 9988888888 8888888888 8888888888 8888888888 8888888888 8888888888 8888888888 8888888888 8888888888 After step 195: 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 If you can calculate the exact moments when the octopuses will all flash simultaneously, you should be able to navigate through the cavern. What is the first step during which all octopuses flash? */ //Resolution based on: https://github.com/llun/advent-of-code-2021/blob/main/day11/flashes.js const fs = require("fs"); const getInput = (fileName) => { return fs .readFileSync(fileName) .toString("utf-8") .trim() .split("\n") .map((line) => line.split("").map((val) => parseInt(val, 10))); }; const increaseCellValue = (input, row, column, flashed = new Set()) => { if (row < 0 || row >= input.length) return; if (column < 0 || column >= input[0].length) return; if (flashed.has(`${row}${column}`)) return; const value = input[row][column]; const newValue = value + 1; input[row][column] = newValue; if (newValue <= 9) { return; } flashed.add(`${row}${column}`); input[row][column] = 0; increaseCellValue(input, row - 1, column - 1, flashed); increaseCellValue(input, row - 1, column, flashed); increaseCellValue(input, row - 1, column + 1, flashed); increaseCellValue(input, row, column - 1, flashed); increaseCellValue(input, row, column + 1, flashed); increaseCellValue(input, row + 1, column - 1, flashed); increaseCellValue(input, row + 1, column, flashed); increaseCellValue(input, row + 1, column + 1, flashed); }; const iterate = (input) => { const flashed = new Set(); for (let r = 0; r < input.length; r++) { const row = input[r]; for (let c = 0; c < row.length; c++) { increaseCellValue(input, r, c, flashed); } } return flashed.size; }; /** * The first challenge is to increment each 2D array 100 times and count how * many flashes occur. For each step, every number is incremented by one. A * flash occurs every time a number grows larger than nine, which often causes * a domino affect on the surrounding squares (all 8 squares around are counted) */ const part1 = (input) => { let totalFlashed = 0; for (let i = 0; i < 100; i++) { totalFlashed += iterate(input); } return totalFlashed; }; console.log("Part1"); console.log(part1(getInput("./day11-input.txt"))); /** * The second challenge is to count how many steps it takes for the entire board * to sync up and flash at the exact same time (essentially - when the board is * entirely zeros) */ const part2 = (input) => { let step = 1; while (true) { const flashedCount = iterate(input); if (flashedCount === 100) { break; } step++; } return step; }; console.log("Part2"); console.log(part2(getInput("./day11-input.txt")));
18.429213
101
0.778929
3b16c3fc003f269b6cf6f4c9e2cd0a8f31fa1773
2,231
js
JavaScript
src/pages/window/layout/default.js
dongmingzhixiu/layout-dynamic-ui-dom
8dccf12772d831d326915a3107062b6fbd859340
[ "Apache-2.0" ]
null
null
null
src/pages/window/layout/default.js
dongmingzhixiu/layout-dynamic-ui-dom
8dccf12772d831d326915a3107062b6fbd859340
[ "Apache-2.0" ]
null
null
null
src/pages/window/layout/default.js
dongmingzhixiu/layout-dynamic-ui-dom
8dccf12772d831d326915a3107062b6fbd859340
[ "Apache-2.0" ]
null
null
null
let _self; const layout = { /** * 展示模板所用参数 */ table: { //展示布局查询条件表单,可以设置查询条件默认值 forms: {}, //查询条件布局 whereLayout: [], //显示表格布局 tableLayout: [], //是否显示分页 showPageHelper: true, //自动加载表格数据的 api接口 autoLoadDataApi: { remotePath: '/test/getUserInfo', remoteParam: {}, remoteMethodType: "get", remoteTimeout: null, }, //设置可选择的分页条数 elPagination: { pageSizes: [15, 20, 30, 40, 50, 80] }, //查询条件按钮 whereButton: [{ label: '搜索', icon: 'el-icon-search', method: 'search', type: 'primary' }, { label: '新增', icon: 'el-icon-plus', method: 'add', type: 'danger' }, ], //删除的api接口 deleteApi: { remotePath: '/delete/byId', remoteParam: { d: false }, remoteMethodType: "post", remoteTimeout: null, }, //编辑界面只显示一个tab editorOneFormTab:false, //调用搜索之前会执行的方法 searchBefore:(form,that)=>{ return form; }, }, /** * 编辑模板所用参数 */ editor: { /** * 返回菜单按钮 */ backButton:{show:true,showType:true}, /** * 编辑布局 */ layout: [], /** * 编辑按钮 */ button: [{ label: '保存', icon: 'el-icon-s-order', method: 'save', type: 'danger' }, { label: '重置', icon: 'el-icon-s-release', method: 'reset', type: 'warning' }, { label: '关闭', method: 'cancel' }, ], buttonStyle:"", editorStyle:"", /** * 编辑布局列数 */ cols: 1, /** * 编辑页面列数的宽度 */ oneColsWidth: { 1: 600, 2: 800, 3: 900, 4: 1200 }, /** * 是否保存后关闭该页面 */ saveClose: true, /** * 自动保存api */ autoSaveApi: { //请求路径 remotePath: 'test/getUserById', //请求参数 remoteParam: { //id: 3 //形如id }, //请求方法 remoteMethodType: "post", //得到数据后对数据的预处理 // getDataAfter: (data) => { // return data.data; // } }, //在修改数据时,默认拉去修改数据的api接口 editorFormsInitApis: { //请求路径 remotePath: '/teacher/getById', //请求参数 remoteParam: {}, //请求方法 remoteMethodType: "get", //得到数据后对数据的预处理 // getDataAfter: (data) => { // return data.data; // } }, /** * 保存之前数据整理的修饰方法 */ autoSaveBefore:(e)=>{ return e; }, //将页面this对象设置到当前js可使用 setSelf(self){ _self=self; }, }, } export default layout;
14.677632
39
0.527566
3b18f1b40d52a7b925d18f619a528fe05abe2505
418
js
JavaScript
src/components/Icon/Ellipsis.js
jradtilbrook/he-react-ui
fe81bee3f27dce4b9dccf392e861c5e4d3f766fe
[ "MIT" ]
null
null
null
src/components/Icon/Ellipsis.js
jradtilbrook/he-react-ui
fe81bee3f27dce4b9dccf392e861c5e4d3f766fe
[ "MIT" ]
null
null
null
src/components/Icon/Ellipsis.js
jradtilbrook/he-react-ui
fe81bee3f27dce4b9dccf392e861c5e4d3f766fe
[ "MIT" ]
null
null
null
// @flow import React from 'react'; function Ellipsis(props: SVGProps) { return ( <svg {...props} viewBox="0 0 24 24"> <g transform="translate(0 8)"> <circle cx="2" cy="2" r="2" /> <circle cx="10" cy="2" r="2" /> <circle cx="18" cy="2" r="2" /> </g> </svg> ); } Ellipsis.defaultProps = { height: 32, width: 32, fill: 'currentColor', }; export default Ellipsis;
18.173913
40
0.528708
3b192d1e66da180035c0ffa8d356c20c9c7b2a9a
3,421
js
JavaScript
routes/index.js
zkwsk/node-authentication
fa71cca35c635e3f5d7b210f357c726dda2566cc
[ "MIT" ]
null
null
null
routes/index.js
zkwsk/node-authentication
fa71cca35c635e3f5d7b210f357c726dda2566cc
[ "MIT" ]
null
null
null
routes/index.js
zkwsk/node-authentication
fa71cca35c635e3f5d7b210f357c726dda2566cc
[ "MIT" ]
null
null
null
var express = require('express'); var router = express.Router(); var expressValidator = require('express-validator'); var passport = require('passport'); var bcrypt = require('bcrypt'); const saltRounds = 10; router.get('/', function(req, res, next) { console.log(req.user); console.log(req.isAuthenticated()); res.render('home', { title: 'Home' }); }) router.get('/profile', authenticationMiddleware(), function(req, res) { res.render('profile', { title: 'Profile' }); }) router.post('/login', passport.authenticate('local', { successRedirect: '/profile', failureRedirect: '/login' } )); router.get('/login', function(req, res) { res.render('login', { title: 'Login' }); }); router.get('/logout', function(req, res) { req.logout(); req.session.destroy(); res.redirect('/'); }); router.get('/register', function(req, res, next) { res.render('register', { title: 'Registration' }); }); router.post('/register', function(req, res, next) { // Validation // Username req.checkBody('username', 'Username field cannot be empty.').notEmpty(); req.checkBody('username', 'Username must be between 4-15 characters long.').len(4, 15); req.checkBody('username', 'Username can only contain letters, numbers, or underscores.') .matches(/^[A-Za-z0-9_-]+$/, 'i'); // Email req.checkBody('email', 'Email is not valid.').isEmail(); req.checkBody('email', 'Email address must be between 4 and 255 characters long.').len(4, 255); // Password req.checkBody('password', 'Password must be between 8-100 characters long').len(8, 100); //req.checkBody('password', 'Password must include one lowercase character, one uppercase character, a number, and a special character.') // .matches(/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.* )(?=.*[^a-zA-Z0-9]).{8,}$/, "i"); // Password match req.checkBody('passwordMatch', 'Password must be between 8-100 characters long.').len(8, 100); req.checkBody('passwordMatch', 'Passwords do not match, please try again.').equals(req.body.password); const errors = req.validationErrors(); if (errors) { console.log(`errors: ${JSON.stringify(errors)}`); res.render('register', { title: 'Registration error', errors: errors }); } else { const { username, email, password } = req.body; const db = require('../db.js'); bcrypt.hash(password, saltRounds, function(err, hash) { db.query('INSERT INTO users (username, email, password) VALUES (?, ?, ?)', [username, email, hash], function(error, results, fields) { if (error) throw error; db.query('SELECT LAST_INSERT_ID() as user_id', function(error, results, fields) { if (error) throw error; const user_id = results[0]; req.login(user_id, function(err) { if (err) throw err; res.redirect('/'); }); res.render('register', { title: 'Registration Complete' }); }); }); }); } }); passport.serializeUser(function(user_id, done) { console.log('serializing'); done(null, user_id); }); passport.deserializeUser(function(user_id, done) { done(null, user_id); }); function authenticationMiddleware () { return (req, res, next) => { console.log(`req.session.passport.user: ${JSON.stringify(req.session.passport)}`); if (req.isAuthenticated()) return next(); res.redirect('/login') } } module.exports = router;
31.385321
139
0.632564
3b19890cf598b35fb6d31f29d887b009f389d3f4
1,067
js
JavaScript
duster/helpers/core/cloudcms/beta/nodeAttachmentText.js
gitana/cloudcms-server
0e67667e83ca6d58f3969bc7f95d28b9714d57f9
[ "Apache-2.0" ]
18
2015-08-11T01:14:43.000Z
2021-03-25T09:08:45.000Z
duster/helpers/core/cloudcms/beta/nodeAttachmentText.js
gitana/cloudcms-server
0e67667e83ca6d58f3969bc7f95d28b9714d57f9
[ "Apache-2.0" ]
4
2015-11-20T11:07:38.000Z
2021-08-24T13:16:57.000Z
duster/helpers/core/cloudcms/beta/nodeAttachmentText.js
gitana/cloudcms-server
0e67667e83ca6d58f3969bc7f95d28b9714d57f9
[ "Apache-2.0" ]
17
2015-11-07T14:10:34.000Z
2022-02-06T21:58:06.000Z
/** * @nodeAttachmentText * * @param app * @param dust * @param callback */ module.exports = function(app, dust, callback) { var engine = require("../../engine")(app, dust); var map = engine.map; var end = engine.end; dust.helpers.nodeAttachmentText = dust.helpers.nodeAttachmentValue = function(chunk, context, bodies, params) { params = params || {}; var nodeId = context.resolve(params.node); var attachmentId = context.resolve(params.attachment); if (!attachmentId) { attachmentId = "default"; } return map(chunk, function(chunk) { var req = context.get("req"); req.branch(function(err, branch) { if (err) { return end(chunk, context); } branch.readNode(nodeId).attachment(attachmentId).download(function(text) { chunk.write(text); end(chunk, context); }); }); }); }; callback(); };
22.702128
113
0.519213
3b199fa688fb569632815743f304af8c457af6fd
11,619
js
JavaScript
Source/WebInspectorUI/UserInterface/Base/Setting.js
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/WebInspectorUI/UserInterface/Base/Setting.js
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/WebInspectorUI/UserInterface/Base/Setting.js
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2009 Google Inc. All rights reserved. * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ WI.Setting = class Setting extends WI.Object { constructor(name, defaultValue) { super(); this._name = name; this._localStorageKey = WI.Setting._localStorageKey(this._name); this._defaultValue = defaultValue; } // Static static migrateValue(key) { let localStorageKey = WI.Setting._localStorageKey(key); let value = undefined; if (!window.InspectorTest && window.localStorage && localStorageKey in window.localStorage) { try { value = JSON.parse(window.localStorage[localStorageKey]); } catch { } window.localStorage.removeItem(localStorageKey); } return value; } static reset() { let prefix = Setting._localStorageKey(""); let keysToRemove = []; for (let i = 0; i < window.localStorage.length; ++i) { let key = window.localStorage.key(i); if (key.startsWith(prefix)) keysToRemove.push(key); } for (let key of keysToRemove) window.localStorage.removeItem(key); } static _localStorageKey(name) { let inspectionLevel = InspectorFrontendHost ? InspectorFrontendHost.inspectionLevel : 1; let levelString = inspectionLevel > 1 ? "-" + inspectionLevel : ""; return `com.apple.WebInspector${levelString}.${name}`; } // Public get name() { return this._name; } get defaultValue() { return this._defaultValue; } get value() { if ("_value" in this) return this._value; // Make a copy of the default value so changes to object values don't modify the default value. this._value = JSON.parse(JSON.stringify(this._defaultValue)); if (!window.InspectorTest && window.localStorage && this._localStorageKey in window.localStorage) { try { this._value = JSON.parse(window.localStorage[this._localStorageKey]); } catch { delete window.localStorage[this._localStorageKey]; } } return this._value; } set value(value) { if (this._value === value) return; this._value = value; this.save(); } save() { if (!window.InspectorTest && window.localStorage) { try { if (Object.shallowEqual(this._value, this._defaultValue)) delete window.localStorage[this._localStorageKey]; else window.localStorage[this._localStorageKey] = JSON.stringify(this._value); } catch { console.error("Error saving setting with name: " + this._name); } } this.dispatchEventToListeners(WI.Setting.Event.Changed, this._value, {name: this._name}); } reset() { // Make a copy of the default value so changes to object values don't modify the default value. this.value = JSON.parse(JSON.stringify(this._defaultValue)); } }; WI.Setting.Event = { Changed: "setting-changed" }; WI.EngineeringSetting = class EngineeringSetting extends WI.Setting { get value() { if (WI.isEngineeringBuild) return super.value; return this.defaultValue; } set value(value) { console.assert(WI.isEngineeringBuild); if (WI.isEngineeringBuild) super.value = value; } }; WI.DebugSetting = class DebugSetting extends WI.Setting { get value() { if (WI.isDebugUIEnabled()) return super.value; return this.defaultValue; } set value(value) { console.assert(WI.isDebugUIEnabled()); if (WI.isDebugUIEnabled()) super.value = value; } }; WI.settings = { canvasRecordingAutoCaptureEnabled: new WI.Setting("canvas-recording-auto-capture-enabled", false), canvasRecordingAutoCaptureFrameCount: new WI.Setting("canvas-recording-auto-capture-frame-count", 1), consoleAutoExpandTrace: new WI.Setting("console-auto-expand-trace", true), consoleSavedResultAlias: new WI.Setting("console-saved-result-alias", ""), cssChangesPerNode: new WI.Setting("css-changes-per-node", false), clearLogOnNavigate: new WI.Setting("clear-log-on-navigate", true), clearNetworkOnNavigate: new WI.Setting("clear-network-on-navigate", true), cpuTimelineThreadDetailsExpanded: new WI.Setting("cpu-timeline-thread-details-expanded", false), emulateInUserGesture: new WI.Setting("emulate-in-user-gesture", false), enableControlFlowProfiler: new WI.Setting("enable-control-flow-profiler", false), enableLineWrapping: new WI.Setting("enable-line-wrapping", true), frontendAppearance: new WI.Setting("frontend-appearance", "system"), groupMediaRequestsByDOMNode: new WI.Setting("group-media-requests-by-dom-node", WI.Setting.migrateValue("group-by-dom-node") || false), indentUnit: new WI.Setting("indent-unit", 4), indentWithTabs: new WI.Setting("indent-with-tabs", false), resourceCachingDisabled: new WI.Setting("disable-resource-caching", false), searchCaseSensitive: new WI.Setting("search-case-sensitive", false), searchFromSelection: new WI.Setting("search-from-selection", false), searchRegularExpression: new WI.Setting("search-regular-expression", false), selectedNetworkDetailContentViewIdentifier: new WI.Setting("network-detail-content-view-identifier", "preview"), sourceMapsEnabled: new WI.Setting("source-maps-enabled", true), showAllAnimationFramesBreakpoint: new WI.Setting("show-all-animation-frames-breakpoint", false), showAllIntervalsBreakpoint: new WI.Setting("show-all-inteverals-breakpoint", false), showAllListenersBreakpoint: new WI.Setting("show-all-listeners-breakpoint", false), showAllMicrotasksBreakpoint: new WI.Setting("show-all-microtasks-breakpoint", false), showAllRequestsBreakpoint: new WI.Setting("show-all-requests-breakpoint", false), showAllTimeoutsBreakpoint: new WI.Setting("show-all-timeouts-breakpoint", false), showAssertionFailuresBreakpoint: new WI.Setting("show-assertion-failures-breakpoint", true), showCanvasPath: new WI.Setting("show-canvas-path", false), showImageGrid: new WI.Setting("show-image-grid", true), showInvisibleCharacters: new WI.Setting("show-invisible-characters", !!WI.Setting.migrateValue("show-invalid-characters")), showJavaScriptTypeInformation: new WI.Setting("show-javascript-type-information", false), showRulers: new WI.Setting("show-rulers", false), showRulersDuringElementSelection: new WI.Setting("show-rulers-during-element-selection", true), showScopeChainOnPause: new WI.Setting("show-scope-chain-sidebar", true), showWhitespaceCharacters: new WI.Setting("show-whitespace-characters", false), tabSize: new WI.Setting("tab-size", 4), timelinesAutoStop: new WI.Setting("timelines-auto-stop", true), timelineOverviewGroupBySourceCode: new WI.Setting("timeline-overview-group-by-source-code", true), zoomFactor: new WI.Setting("zoom-factor", 1), // Experimental experimentalEnablePreviewFeatures: new WI.Setting("experimental-enable-preview-features", true), experimentalEnableStylesJumpToEffective: new WI.Setting("experimental-styles-jump-to-effective", false), experimentalEnableStyelsJumpToVariableDeclaration: new WI.Setting("experimental-styles-jump-to-variable-declaration", false), // Protocol protocolLogAsText: new WI.Setting("protocol-log-as-text", false), protocolAutoLogMessages: new WI.Setting("protocol-auto-log-messages", false), protocolAutoLogTimeStats: new WI.Setting("protocol-auto-log-time-stats", false), protocolFilterMultiplexingBackendMessages: new WI.Setting("protocol-filter-multiplexing-backend-messages", true), // Engineering engineeringShowInternalExecutionContexts: new WI.EngineeringSetting("engineering-show-internal-execution-contexts", false), engineeringShowInternalScripts: new WI.EngineeringSetting("engineering-show-internal-scripts", false), engineeringPauseForInternalScripts: new WI.EngineeringSetting("engineering-pause-for-internal-scripts", false), engineeringShowInternalObjectsInHeapSnapshot: new WI.EngineeringSetting("engineering-show-internal-objects-in-heap-snapshot", false), engineeringShowPrivateSymbolsInHeapSnapshot: new WI.EngineeringSetting("engineering-show-private-symbols-in-heap-snapshot", false), engineeringAllowEditingUserAgentShadowTrees: new WI.EngineeringSetting("engineering-allow-editing-user-agent-shadow-trees", false), // Debug debugShowConsoleEvaluations: new WI.DebugSetting("debug-show-console-evaluations", false), debugOutlineFocusedElement: new WI.DebugSetting("debug-outline-focused-element", false), debugEnableLayoutFlashing: new WI.DebugSetting("debug-enable-layout-flashing", false), debugEnableStyleEditingDebugMode: new WI.DebugSetting("debug-enable-style-editing-debug-mode", false), debugEnableUncaughtExceptionReporter: new WI.DebugSetting("debug-enable-uncaught-exception-reporter", true), debugEnableDiagnosticLogging: new WI.DebugSetting("debug-enable-diagnostic-logging", true), debugAutoLogDiagnosticEvents: new WI.DebugSetting("debug-auto-log-diagnostic-events", false), debugLayoutDirection: new WI.DebugSetting("debug-layout-direction-override", "system"), }; WI.previewFeatures = []; // WebKit may by default enable certain features in a Technology Preview that are not enabled in trunk. // Provide a switch that will make non-preview builds behave like an experimental build, for those preview features. WI.canShowPreviewFeatures = function() { let hasPreviewFeatures = WI.previewFeatures.length > 0; return hasPreviewFeatures && WI.isExperimentalBuild; }; WI.arePreviewFeaturesEnabled = function() { return WI.canShowPreviewFeatures() && WI.settings.experimentalEnablePreviewFeatures.value; };
44.011364
139
0.711851
3b19a5ea4aeead2a5c576eb074f6c566c7eee463
873
js
JavaScript
Intermediate Algorithm Scripting/myReplace.js
Exogenist/Robotik-js
c74e5aa5fcce3a004014c3c5d50821c2fd27d66c
[ "MIT" ]
1
2017-02-28T23:47:41.000Z
2017-02-28T23:47:41.000Z
Intermediate Algorithm Scripting/myReplace.js
Exogenist/Robotik-js
c74e5aa5fcce3a004014c3c5d50821c2fd27d66c
[ "MIT" ]
null
null
null
Intermediate Algorithm Scripting/myReplace.js
Exogenist/Robotik-js
c74e5aa5fcce3a004014c3c5d50821c2fd27d66c
[ "MIT" ]
null
null
null
// Author - Swainson Holness // Contact - swainson.holness@gmail.com // FCC Description: // Perform a search and replace on the sentence using the arguments provided and return the new sentence. // First argument is the sentence to perform the search and replace on. // Second argument is the word that you will be replacing (before). // Third argument is what you will be replacing the second argument with (after). // NOTE: Preserve the case of the original word when you are replacing it. // For example if you mean to replace the word "Book" with the word "dog", it should be replaced as "Dog" function myReplace(str, before, after) { var sentence; if (before[0] === before[0].toUpperCase()) { after = after.replace(after[0], after[0].toUpperCase()); str = str.replace(before, after); } else { str = str.replace(before, after); } return str; }
39.681818
105
0.713631
3b19e00bb643db99a7dab05d4696d47e86e9dd96
263
js
JavaScript
src/components/IndexTitle.js
DangAsian/gatsbyapp
8cb15c59c2cf53dfbdba3aea8e23ebb7ad66e736
[ "MIT" ]
null
null
null
src/components/IndexTitle.js
DangAsian/gatsbyapp
8cb15c59c2cf53dfbdba3aea8e23ebb7ad66e736
[ "MIT" ]
6
2021-05-09T19:08:08.000Z
2022-02-26T13:40:35.000Z
src/components/IndexTitle.js
DangAsian/gatsbyapp
8cb15c59c2cf53dfbdba3aea8e23ebb7ad66e736
[ "MIT" ]
null
null
null
import React from 'react'; class IndexContentTitle extends React.Component { render(){ return( <div className="container-title"> <h1>About</h1> <div className="title-line" /> </div> ) } } export default IndexContentTitle
17.533333
49
0.623574
3b1a057f7e54ee9249f0e295ef78741a103d1319
253
js
JavaScript
packages/react-ui-utils/src/__tests__/keyMirror-test.js
rentpath/react-ui
adf05bdf2c209aa44b764f64f820048303f3cab9
[ "MIT" ]
4
2017-07-25T14:26:31.000Z
2019-05-13T14:00:03.000Z
packages/react-ui-utils/src/__tests__/keyMirror-test.js
rentpath/react-ui
adf05bdf2c209aa44b764f64f820048303f3cab9
[ "MIT" ]
259
2017-07-19T17:43:11.000Z
2022-02-26T17:28:02.000Z
packages/react-ui-utils/src/__tests__/keyMirror-test.js
rentpath/react-ui
adf05bdf2c209aa44b764f64f820048303f3cab9
[ "MIT" ]
2
2017-07-28T02:28:04.000Z
2018-11-20T05:58:59.000Z
import keyMirror from '../keyMirror' describe('utils/keyMirror', () => { it('converts an array into an object with mirrored key/values', () => { expect(keyMirror(['one', 'two'])).toMatchObject({ one: 'one', two: 'two', }) }) })
23
73
0.577075
3b1a2e090061caabf59c592f539017e7685d7c43
293
js
JavaScript
src/Emoji/__tests__/Emoji.js
marshmallow-insurance/smores-style
0b8d71944a9bbe51a65d40c8de070ed2078998b7
[ "MIT" ]
3
2019-06-07T10:16:21.000Z
2019-06-07T10:19:56.000Z
src/Emoji/__tests__/Emoji.js
marshmallow-insurance/smores-style
0b8d71944a9bbe51a65d40c8de070ed2078998b7
[ "MIT" ]
null
null
null
src/Emoji/__tests__/Emoji.js
marshmallow-insurance/smores-style
0b8d71944a9bbe51a65d40c8de070ed2078998b7
[ "MIT" ]
null
null
null
import React from 'react' import { render } from '@testing-library/react' import 'jest-styled-components' import { Emoji } from '../Emoji' test('renders', () => { const { container } = render(<Emoji symbol="😉" size={24} label="wink" />) expect(container.firstChild).toMatchSnapshot() })
26.636364
75
0.675768
3b1aaf1f044dee84e8a6247e6a4b2bf795feb72f
1,335
js
JavaScript
static/scripts/taskListView.js
avkom/go-todo
22d15c76bd191d940e25c9affb92f23b187dfe23
[ "MIT" ]
null
null
null
static/scripts/taskListView.js
avkom/go-todo
22d15c76bd191d940e25c9affb92f23b187dfe23
[ "MIT" ]
null
null
null
static/scripts/taskListView.js
avkom/go-todo
22d15c76bd191d940e25c9affb92f23b187dfe23
[ "MIT" ]
null
null
null
define([ 'jquery', 'underscore', 'backbone', 'scripts/taskCollection', 'text!scripts/taskListTemplate.html' ], function ($, _, Backbone, TaskCollection, taskListTemplate) { var TaskListView = Backbone.View.extend({ _collection: new TaskCollection(), el: '.todoapp', template: _.template(taskListTemplate), events: { 'click .new': '_onNewClicked', 'click .delete': '_onDeleteClicked' }, initialize: function () { this._collection.fetch().then(this.render.bind(this)); }, render: function () { var data = { tasks: this._collection.toJSON() }; this.$el.html(this.template(data)); return this; }, _onNewClicked: function () { Backbone.history.navigate('tasks/new', { trigger: true }); }, _onDeleteClicked: function (e) { var taskId = $(e.currentTarget).data('task-id'); var task = this._collection.get(taskId); task.destroy({ error: this._onTaskDeleted.bind(this), success: this._onTaskDeleted.bind(this) }); }, _onTaskDeleted: function () { this._collection.fetch().then(this.render.bind(this)); } }); return TaskListView; });
25.188679
70
0.552809
3b1ae850f674a67fc8cc9358290f35925c1446ad
2,019
js
JavaScript
repos/jsutils/src/url/__tests__/objToQuery.js
keg-hub/keg-hub
e96a3c9ae88976bc3a2c07e0d8c3a2045d651e01
[ "MIT" ]
null
null
null
repos/jsutils/src/url/__tests__/objToQuery.js
keg-hub/keg-hub
e96a3c9ae88976bc3a2c07e0d8c3a2045d651e01
[ "MIT" ]
7
2022-01-04T23:20:20.000Z
2022-03-31T18:59:40.000Z
repos/jsutils/src/url/__tests__/objToQuery.js
KegHub/keg-hub
11c59a21f409355337decb34b549f679cb82a925
[ "MIT" ]
1
2022-02-14T17:31:25.000Z
2022-02-14T17:31:25.000Z
const Url = require('..') describe('objToQuery', () => { beforeEach(() => jest.resetAllMocks()) it('return a valid querystring from the given object with strings', () => { const obj = { name: 'daniel', food: 'pasta', } const result = Url.objToQuery(obj) expect(result).toEqual('?name=daniel&food=pasta') const obj2 = { name: 'some sentence with spaces', } const result2 = Url.objToQuery(obj2) expect(result2).toEqual('?name=some%20sentence%20with%20spaces') }) it('return a valid querystring from the given object with number', () => { const obj = { name: 'daniel', id: 100, } const result = Url.objToQuery(obj) expect(result).toEqual('?name=daniel&id=100') }) it('return a valid querystring from the given object with nested object', () => { const obj = { name: 'daniel', id: { foo: 'bar', }, } const result = Url.objToQuery(obj) // just appends the nested object via JSON string expect(result).toEqual('?name=daniel&id=%7B%22foo%22%3A%22bar%22%7D') }) it('return a valid querystring from the given object with boolean', () => { const obj = { name: 'daniel', alive: true, } const result = Url.objToQuery(obj) // just appends the nested object via JSON string expect(result).toEqual('?name=daniel&alive=true') }) it('should convert array object for commas', () => { const obj = { name: 'daniel', groups: [ 1, 2, 3 ], } const result = Url.objToQuery(obj) expect(result).toEqual('?name=daniel&groups=1%2C2%2C3') }) it('should return valid inputs only, invalid inputs are excluded', () => { const obj = { name: 'daniel', func: () => {}, } const result = Url.objToQuery(obj) expect(result).toEqual('?name=daniel') }) it('should return emptystring on null or empty obj', () => { expect(Url.objToQuery({})).toEqual('') expect(Url.objToQuery(null)).toEqual('') }) })
26.92
83
0.59683
3b1b9c6d52b69ab4306aa099ff336ae17dddab1e
6,723
js
JavaScript
src/data/contador.js
FCE-Map/FCE-Map
1a23b3f6f34140d4495846de334b6149cb10605a
[ "MIT" ]
1
2021-12-28T18:28:18.000Z
2021-12-28T18:28:18.000Z
src/data/contador.js
minennai/FCE-Map
e2a6fb5e5fcdfd05126a43f3b5b86938205fb983
[ "MIT" ]
null
null
null
src/data/contador.js
minennai/FCE-Map
e2a6fb5e5fcdfd05126a43f3b5b86938205fb983
[ "MIT" ]
null
null
null
export const contador = [ { id: "241", materia: "Análisis Matemático I", creditos: 0, categoria: "*CBC", level: -2, }, { id: "245", materia: "Álgebra", creditos: 0, categoria: "*CBC", level: -2, }, { id: "243", materia: "Sociología", creditos: 0, categoria: "*CBC", level: -2, }, { id: "244", materia: "Metodología de las Ciencias Sociales ", creditos: 0, categoria: "*CBC", level: -1, }, { id: "246", materia: "Historia Económica y Social General ", creditos: 0, categoria: "*CBC", level: -1, }, { id: "242", materia: "Economía", creditos: 0, categoria: "*CBC", level: -1, }, { id: "CBC", materia: "Ciclo Básico Común", creditos: 0, categoria: "CBC", title: "Ver CBC Entero", level: 0, correlativas: "241-242-243-244-245-246", }, { id: "247", materia: "Teoría Contable", creditos: 8, correlativas: "CBC", categoria: "Materias Obligatorias", level: 1, }, { id: "248", materia: "Estadística I", creditos: 2, correlativas: "CBC", categoria: "Materias Obligatorias", level: 1, }, { id: "249", materia: "Historia Económica y Social Argentina", creditos: 6, correlativas: "CBC", categoria: "Materias Obligatorias", level: 1, }, { id: "250", materia: "Microeconomía I", creditos: 8, correlativas: "CBC", categoria: "Materias Obligatorias", level: 1, }, { id: "251", materia: "Instituciones de Derecho Público", creditos: 4, correlativas: "CBC", categoria: "Materias Obligatorias", level: 1, }, { id: "252", materia: "Administración General", creditos: 2, correlativas: "CBC", categoria: "Materias Obligatorias", level: 1, }, { id: "273", materia: "Instituciones del Derecho Privado", creditos: 4, correlativas: "CBC", categoria: "Materias Obligatorias", level: 3, }, { id: "274", materia: "Sistemas Administrativos", creditos: 4, correlativas: "252", categoria: "Materias Obligatorias", level: 2, }, { id: "275", materia: "Tecnología de la Información", creditos: 6, correlativas: "274", categoria: "Materias Obligatorias", level: 3, }, { id: "276", materia: "Cálculo Financiero", creditos: 4, correlativas: "248", categoria: "Materias Obligatorias", level: 2, }, { id: "278", materia: "Macroeconomía y Política Económica", creditos: 6, correlativas: "250", categoria: "Materias Obligatorias", level: 3, }, { id: "279", materia: "Administración Financiera", creditos: 6, correlativas: "252-276", categoria: "Materias Obligatorias", level: 3, }, { id: "351", materia: "Sistemas Contables", creditos: 6, correlativas: "247", categoria: "Materias Obligatorias", level: 2, }, { id: "353", materia: "Sistemas de Costos", creditos: 4, correlativas: "247", categoria: "Materias Obligatorias", level: 2, }, { id: "354", materia: "Derecho del Trabajo y la Seguridad Social", creditos: 4, correlativas: "251-1359", categoria: "Materias Obligatorias", level: 3, }, { id: "355", materia: "Auditoría", creditos: 6, correlativas: "362-1352", categoria: "Materias Obligatorias", level: 4, }, { id: "356", materia: "Teoría y Técnica Impositiva I", creditos: 6, correlativas: "251-1352", categoria: "Materias Obligatorias", level: 4, }, { id: "357", materia: "Teoría y Técnica Impositiva II", creditos: 6, correlativas: "356", categoria: "Materias Obligatorias", level: 5, }, { id: "362", materia: "Gestión y Costos para Contadores", creditos: 6, correlativas: "353", categoria: "Materias Obligatorias", level: 3, }, { id: "1330", materia: "Contabilidad Social y Ambiental", creditos: 2, correlativas: "1352", categoria: "Materias Obligatorias", level: 4, }, { id: "1352", materia: "Contabilidad Financiera", creditos: 6, correlativas: "351-353", categoria: "Materias Obligatorias", level: 3, }, { id: "1359", materia: "Derecho Económico", creditos: 4, correlativas: "*CBC", categoria: "Materias Obligatorias", level: 2, }, { id: "1360", materia: "Derecho Crediticio, Bursátil e Insolvencia", creditos: 4, correlativas: "273-354", categoria: "Materias Obligatorias", level: 4, }, { id: "1374", materia: "Contabilidad Gubernamental y Control de Gestión", creditos: 4, correlativas: "278-1352", categoria: "Materias Obligatorias", level: 4, }, // Electivas { id: "721", materia: "Poder Económico y Derechos Humanos", creditos: 4, correlativas: "", categoria: "Materias Electivas", }, { id: "749", materia: "Administración de la Salud", creditos: 4, correlativas: "274", categoria: "Materias Electivas", }, { id: "1708", materia: "Economía y Delito", creditos: 4, correlativas: "278-276", categoria: "Materias Electivas", }, { id: "764", materia: "Gestión en la Economía Social", creditos: 4, correlativas: "274", categoria: "Materias Electivas", }, { id: "768", materia: "Finanzas Públicas", creditos: 4, correlativas: "362", categoria: "Materias Electivas", }, { id: "775", materia: "Seminario de Sindicatura Concursal", creditos: 4, correlativas: "357", categoria: "Materias Electivas", }, { id: "776", materia: "Planeamiento y Control Presupuestario", creditos: 4, correlativas: "1352", categoria: "Materias Electivas", }, { id: "786", materia: "Derecho de Seguros", creditos: 4, correlativas: "276", categoria: "Materias Electivas", }, { id: "794", materia: "Administración Pública", creditos: 4, correlativas: "362", categoria: "Materias Electivas", }, { id: "1798", materia: "Contabilidad Financiera Superior", creditos: 4, correlativas: "279", categoria: "Materias Electivas", }, { id: "1358", materia: "Taller de Actuación Profesional Judicial", creditos: 4, correlativas: "355-1360", categoria: "Fin de Carrera (Obligatorio)", }, { id: "1361", materia: "Taller de Práctica Profesional en Organizaciones", creditos: 6, correlativas: "273-279-355-1330", categoria: "Fin de Carrera (Obligatorio)", }, ];
20.311178
64
0.57638
3b1ba9eeba61fff81fdcc1e6806b6823488eb598
4,387
js
JavaScript
lib/nestcam.js
msutara/homebridge-nest-cam
88067617fd5adce1cf76fc4056be69900fb20688
[ "Apache-2.0" ]
1
2019-11-06T01:02:54.000Z
2019-11-06T01:02:54.000Z
lib/nestcam.js
msutara/homebridge-nest-cam
88067617fd5adce1cf76fc4056be69900fb20688
[ "Apache-2.0" ]
null
null
null
lib/nestcam.js
msutara/homebridge-nest-cam
88067617fd5adce1cf76fc4056be69900fb20688
[ "Apache-2.0" ]
null
null
null
'use strict'; let uuid, Service, Characteristic, StreamController; const fs = require('fs'); const ip = require('ip'); const spawn = require('child_process').spawn; const querystring = require('querystring'); const NexusStreamer = require('./streamer').NexusStreamer; class NestCam { constructor(api, info) { let self = this; self.ffmpegCodec = "libx264"; self.api = api; self.name = info.name; self.uuid = info.uuid; self.serialNumber = info.serial_number; self.softwareVersion = info.combined_software_version; self.type = info.type; self.nexusTalkHost = info.direct_nexustalk_host; self.apiHost = info.nexus_api_http_server.slice(8); // remove https:// } // Homebridge configureWithHAP(hap, config) { uuid = hap.uuid; Service = hap.Service; Characteristic = hap.Characteristic; StreamController = hap.StreamController; let self = this; // This is for backward compatibility with the old useOMX config value if (config.useOMX) { self.ffmpegCodec = "h264_omx"; } else if (config.ffmpegCodec) { self.ffmpegCodec = config.ffmpegCodec; } self.services = []; self.streamControllers = []; self.sessions = {}; let numberOfStreams = 2; let videoResolutions; // Use 4:3 aspect ratio resolutions for Nest Hello cameras if (self.type == 12) { videoResolutions = [ [320, 240, 30], [480, 360, 30], [640, 480, 30], [1280, 960, 30], [1600, 1200, 30] ]; // Use 16:9 aspect ratio resolutions for all other Nest Cameras } else { videoResolutions = [ [320, 180, 30], [480, 270, 30], [640, 360, 30], [1280, 720, 30], [1920, 1080, 30] ]; } let options = { proxy: false, srtp: true, video: { resolutions: videoResolutions, codec: { profiles: [0, 1, 2], levels: [0, 1, 2] } }, audio: { codecs: [ { type: "OPUS", samplerate: 24 }, { type: "OPUS", samplerate: 16 }, { type: "OPUS", samplerate: 8 }, { type: "AAC-eld", samplerate: 16 } ] } } self.createCameraControlService(); self._createStreamControllers(numberOfStreams, options); } // Camera Source handleSnapshotRequest(request, callback) { let self = this; let query = querystring.stringify({ uuid: self.uuid, width: request.width }); self.api.sendRequest(self.apiHost, '/get_image?' + query, 'GET') .then((response) => { callback(undefined, response); }) .catch((err) => { callback(err); }); } handleCloseConnection(connectionID) { let self = this; self.streamControllers.forEach((controller) => { controller.handleCloseConnection(connectionID); }); } prepareStream(request, callback) { let self = this; let sessionID = uuid.unparse(request["sessionID"]); let streamer = new NexusStreamer(self.nexusTalkHost, self.uuid, self.api.sessionToken, self.ffmpegCodec); self.sessions[sessionID] = streamer; streamer.prepareStream(request, callback); } handleStreamRequest(request) { let self = this; let sessionID = request["sessionID"]; let requestType = request["type"]; if (sessionID) { let sessionIdentifier = uuid.unparse(sessionID); let streamer = self.sessions[sessionIdentifier]; if (!streamer) { return; } if (requestType === 'start') { streamer.startPlaybackWithRequest(request); } else if (requestType === 'stop') { streamer.stopPlayback(); delete self.sessions[sessionIdentifier]; } } } createCameraControlService() { let self = this; let controlService = new Service.CameraControl(); self.services.push(controlService); } _createStreamControllers(maxStreams, options) { let self = this; for (var i = 0; i < maxStreams; i++) { var streamController = new StreamController(i, options, self); self.services.push(streamController.service); self.streamControllers.push(streamController); } } } module.exports = { NestCam: NestCam };
24.785311
109
0.591292
3b1bf159b7a7637729a3a9f0f800c4ec63232c46
2,729
js
JavaScript
vis/index.js
yxdunc/aeon_graphviz
adae9061812fded6d24d99c47ef184949f6be9e5
[ "Apache-2.0" ]
2
2016-07-15T03:15:38.000Z
2020-07-23T16:12:31.000Z
index.js
atFriendly/vis
37a03742bd7d1bafd0507fef7c2d8ab173ef15dd
[ "Apache-2.0", "MIT" ]
null
null
null
index.js
atFriendly/vis
37a03742bd7d1bafd0507fef7c2d8ab173ef15dd
[ "Apache-2.0", "MIT" ]
null
null
null
// utils exports.util = require('./lib/util'); exports.DOMutil = require('./lib/DOMutil'); // data exports.DataSet = require('./lib/DataSet'); exports.DataView = require('./lib/DataView'); exports.Queue = require('./lib/Queue'); // Graph3d exports.Graph3d = require('./lib/graph3d/Graph3d'); exports.graph3d = { Camera: require('./lib/graph3d/Camera'), Filter: require('./lib/graph3d/Filter'), Point2d: require('./lib/graph3d/Point2d'), Point3d: require('./lib/graph3d/Point3d'), Slider: require('./lib/graph3d/Slider'), StepNumber: require('./lib/graph3d/StepNumber') }; // Timeline exports.Timeline = require('./lib/timeline/Timeline'); exports.Graph2d = require('./lib/timeline/Graph2d'); exports.timeline = { Core: require('./lib/timeline/Core'), DataStep: require('./lib/timeline/DataStep'), DateUtil: require('./lib/timeline/DateUtil'), Range: require('./lib/timeline/Range'), stack: require('./lib/timeline/Stack'), TimeStep: require('./lib/timeline/TimeStep'), components: { items: { Item: require('./lib/timeline/component/item/Item'), BackgroundItem: require('./lib/timeline/component/item/BackgroundItem'), BoxItem: require('./lib/timeline/component/item/BoxItem'), PointItem: require('./lib/timeline/component/item/PointItem'), RangeItem: require('./lib/timeline/component/item/RangeItem') }, BackgroundGroup: require('./lib/timeline/component/BackgroundGroup'), Component: require('./lib/timeline/component/Component'), CurrentTime: require('./lib/timeline/component/CurrentTime'), CustomTime: require('./lib/timeline/component/CustomTime'), DataAxis: require('./lib/timeline/component/DataAxis'), GraphGroup: require('./lib/timeline/component/GraphGroup'), Group: require('./lib/timeline/component/Group'), ItemSet: require('./lib/timeline/component/ItemSet'), Legend: require('./lib/timeline/component/Legend'), LineGraph: require('./lib/timeline/component/LineGraph'), TimeAxis: require('./lib/timeline/component/TimeAxis') } }; // Network exports.Network = require('./lib/network/Network'); exports.network = { Images: require('./lib/network/Images'), dotparser: require('./lib/network/dotparser'), gephiParser: require('./lib/network/gephiParser'), allOptions: require('./lib/network/options') }; exports.network.convertDot = function (input) {return exports.network.dotparser.DOTToGraph(input)}; exports.network.convertGephi = function (input,options) {return exports.network.gephiParser.parseGephi(input,options)}; // bundled external libraries exports.moment = require('./lib/module/moment'); exports.Hammer = require('./lib/module/hammer'); exports.keycharm = require('keycharm');
39.550725
119
0.709784
3b1cba508c7498ad15f3541749c3ddddcac6bd31
146
js
JavaScript
serial-plot-smoothie/webpack.config.js
d-clz/test_serial_plot
4740372c09b6b8046735e781d7df084f88d91f82
[ "MIT" ]
10
2019-07-29T11:38:17.000Z
2021-05-24T22:09:42.000Z
serial-plot-smoothie/webpack.config.js
d-clz/test_serial_plot
4740372c09b6b8046735e781d7df084f88d91f82
[ "MIT" ]
1
2020-12-11T06:29:55.000Z
2020-12-11T06:29:55.000Z
serial-plot-smoothie/webpack.config.js
d-clz/test_serial_plot
4740372c09b6b8046735e781d7df084f88d91f82
[ "MIT" ]
5
2019-11-21T04:24:53.000Z
2021-08-18T17:38:03.000Z
// webpack.config.js module.exports = { entry: './renderer.js', output: { filename: 'renderer_packed.js' }, devtool: "source-map" };
14.6
34
0.616438
3b1ce1420f7af29078824fedaf35e7b4cf5beb99
67
js
JavaScript
frontend/src/config/index.js
world-bit/knowledge
81ecd030fd77d66a6e8fa2b887d271c8e343fe83
[ "Apache-2.0" ]
1
2021-08-05T06:24:52.000Z
2021-08-05T06:24:52.000Z
frontend/src/config/index.js
koda-masaru/knowledge-v2
7581b3c2ec759cb7de3aa2084b02f731e61881e8
[ "Apache-2.0" ]
1
2021-09-29T17:41:11.000Z
2021-09-29T17:41:11.000Z
frontend/src/config/index.js
koda-masaru/knowledge-v2
7581b3c2ec759cb7de3aa2084b02f731e61881e8
[ "Apache-2.0" ]
1
2018-04-10T00:55:48.000Z
2018-04-10T00:55:48.000Z
export default { fixedLayout: false, hideLogoOnMobile: false }
13.4
25
0.746269
3b1d167bdf2cd6bd3168535c2773fb3cc8487cb4
1,630
js
JavaScript
test/unit/nft/get-nft-template-list-test.js
BananoCoin/banano-metanode-nft
3f708a9c56b63ef7dd1162bc2f37284e2af1855d
[ "MIT" ]
9
2021-07-11T05:51:07.000Z
2022-03-09T03:25:41.000Z
test/unit/nft/get-nft-template-list-test.js
BananoCoin/banano-metanode-nft
3f708a9c56b63ef7dd1162bc2f37284e2af1855d
[ "MIT" ]
28
2021-07-07T21:56:23.000Z
2022-02-11T01:45:08.000Z
test/unit/nft/get-nft-template-list-test.js
BananoCoin/banano-metanode-nft
3f708a9c56b63ef7dd1162bc2f37284e2af1855d
[ "MIT" ]
4
2021-07-07T21:33:28.000Z
2021-12-27T16:49:09.000Z
'use strict'; // libraries const chai = require('chai'); // modules const expect = chai.expect; const actionUtil = require('../../../scripts/actions/nft/get-nft-template-list.js'); const ipfsUtil = require('../../../scripts/ipfs-util.js'); const dataUtil = require('../../../scripts/data-util.js'); const mockFs = require('../../util/mock-fs.js'); const {config, loggingUtil, getResponse} = require('../../util/get-response.js'); // constants const goodIpfsCid = 'QmQJXwo7Ee1cgP2QVRMQGrgz29knQrUMfciq2wQWAvdzzS'; const goodSendHash4 = '0000000000000000000000000000000000000000000000000000000000000004'; // variables // functions describe(actionUtil.ACTION, () => { it('get status 200', async () => { const context = { bananojs: {}, fs: mockFs, fetch: {}, }; ipfsUtil.addTemplateAndAsset(mockFs, actionUtil.ACTION, goodIpfsCid, goodSendHash4); let actualResponse; try { actualResponse = await getResponse(actionUtil, context, {}); } catch (error) { loggingUtil.trace(error); } const expectedResponse = { success: true, templates: [ goodIpfsCid, ], }; loggingUtil.debug('actualResponse', actualResponse); loggingUtil.debug('expectedResponse', expectedResponse); expect(actualResponse).to.deep.equal(expectedResponse); }); beforeEach(async () => { dataUtil.init(config, loggingUtil); ipfsUtil.init(config, loggingUtil); actionUtil.init(config, loggingUtil); }); afterEach(async () => { actionUtil.deactivate(); ipfsUtil.deactivate(); dataUtil.deactivate(); mockFs.clear(); }); });
27.166667
89
0.662577
3b1d1a8ca421c179e5d492bfc0c6810707dc55dd
1,936
js
JavaScript
src/router/index.js
Akaten/vueElementrouter
3eb4389815e8ad00f52f350226fe35d2d33af7d3
[ "MIT" ]
2
2017-07-31T03:58:23.000Z
2017-07-31T03:58:27.000Z
src/router/index.js
Akaten/vueElementrouter
3eb4389815e8ad00f52f350226fe35d2d33af7d3
[ "MIT" ]
null
null
null
src/router/index.js
Akaten/vueElementrouter
3eb4389815e8ad00f52f350226fe35d2d33af7d3
[ "MIT" ]
null
null
null
import Vue from 'vue' import Router from 'vue-router' import Vuex from 'vuex' import Login from 'components/Login.vue' import Home from 'components/Home.vue' import massFunction from 'components/nav1/massFunction.vue' import autoreplyFunction from 'components/nav1/autoreplyFunction.vue' import Form from 'components/nav1/Form.vue' import User from 'components/nav1/user.vue' import Page4 from 'components/nav2/Page4.vue' import userManage from 'components/nav2/userManage.vue' import Page6 from 'components/nav3/Page6.vue' import Page7 from 'components/nav3/Page7.vue' import materialManage from 'components/nav2/materialManage.vue' import createMessage from 'components/nav2/createMessage.vue' Vue.use(Router) Vue.use(Vuex) export default new Router({ routes: [ { path: '/login', component: Login, name: '', hidden: true }, { path: '/', name: '功能', component: Home, iconCls: 'el-icon-menu', children: [ { path: '/massFunction', component: massFunction, name: '群发功能' }, { path: '/autoreplyFunction', component: autoreplyFunction, name: '自动回复' }, { path: '/form', component: Form, name: '自定义菜单' }, { path: '/user', component: User, name: '投票管理' } ] }, { path: '/', component: Home, name: '管理', iconCls: 'fa fa-briefcase', children: [ { path: '/page4', component: Page4, name: '消息管理' }, { path: '/userManage', component: userManage, name: '用户管理' }, { path: '/materialManage', component: materialManage, name: '素材管理' }, { path: '/createMessage', component: createMessage, name: '新建图文管理' } ] }, { path: '/', component: Home, name: '统计', iconCls: 'fa fa-pie-chart', children: [ { path: '/page6', component: Page6, name: '用户分析' }, { path: '/page7', component: Page7, name: '图文分析' } ] } ] })
30.25
83
0.618802
3b1ec8a754ddd6417037744ed34abc7a79f00e64
102
js
JavaScript
es/form/index.js
RomanTsegelskyi/formik-antd
0f5cd02535ceaf9a3ab7d836acd731b9798ff659
[ "MIT" ]
null
null
null
es/form/index.js
RomanTsegelskyi/formik-antd
0f5cd02535ceaf9a3ab7d836acd731b9798ff659
[ "MIT" ]
null
null
null
es/form/index.js
RomanTsegelskyi/formik-antd
0f5cd02535ceaf9a3ab7d836acd731b9798ff659
[ "MIT" ]
null
null
null
import { Form } from "./form"; export { Form }; export default Form; //# sourceMappingURL=index.js.map
25.5
33
0.696078
3b1f70332de32a9896d0f0898b076c6970e132d2
1,141
js
JavaScript
test/both/datastore/async_methods/find.test.js
eldridge/js-data
1a83f93ae7916f2b9b06d776471e9fcb8e44a3db
[ "MIT" ]
null
null
null
test/both/datastore/async_methods/find.test.js
eldridge/js-data
1a83f93ae7916f2b9b06d776471e9fcb8e44a3db
[ "MIT" ]
null
null
null
test/both/datastore/async_methods/find.test.js
eldridge/js-data
1a83f93ae7916f2b9b06d776471e9fcb8e44a3db
[ "MIT" ]
null
null
null
describe('DS#find', function () { it('should throw an error when method pre-conditions are not met', function () { var tasks = []; tasks.push(store.find('does not exist', 5).then(function () { fail('should have rejected'); }).catch(function (err) { assert.isTrue(err instanceof Error); assert.equal(err.message, 'does not exist is not a registered resource!'); })); DSUtils.forEach(TYPES_EXCEPT_STRING_OR_NUMBER, function (key) { tasks.push(store.find('post', key).then(function () { fail('should have rejected'); }).catch(function (err) { assert.isTrue(err instanceof Error); assert.equal(err.message, '"id" must be a string or a number!'); })); }); DSUtils.forEach(TYPES_EXCEPT_OBJECT, function (key) { if (key) { tasks.push(store.find('post', 5, key).then(function () { fail('should have rejected'); }).catch(function (err) { assert.isTrue(err instanceof Error); assert.equal(err.message, '"options" must be an object!'); })); } }); return Promise.all(tasks); }); });
32.6
82
0.595968
3b1f94c228ca4d4c513379b329a7ccb1a3c79474
996
js
JavaScript
src/library/Card/CardDivider/CardDivider.js
UXPin/mineral-ui
568bb0246b81e346d084df781b102334dd8e5c52
[ "Apache-2.0" ]
1
2020-03-13T16:34:08.000Z
2020-03-13T16:34:08.000Z
src/library/Card/CardDivider/CardDivider.js
UXPin/mineral-ui
568bb0246b81e346d084df781b102334dd8e5c52
[ "Apache-2.0" ]
null
null
null
src/library/Card/CardDivider/CardDivider.js
UXPin/mineral-ui
568bb0246b81e346d084df781b102334dd8e5c52
[ "Apache-2.0" ]
4
2019-03-27T21:21:50.000Z
2021-07-15T19:33:18.000Z
/* @flow */ import React from 'react'; import { createStyledComponent } from '../../styles/index'; import { componentTheme as cardComponentTheme } from '../Card/Card'; type Props = Object; export const componentTheme = (baseTheme: Object) => ({ CardDivider_borderColor: baseTheme.borderColor, CardDivider_borderWidth: '1px', ...baseTheme }); const Root = createStyledComponent( 'div', (props) => { const theme = { ...componentTheme(props.theme), ...cardComponentTheme(props.theme) }; return { backgroundColor: theme.CardDivider_borderColor, height: theme.CardDivider_borderWidth, margin: `${theme.CardRow_marginVertical} 0` }; }, { displayName: 'CardDivider' } ); /** * CardDividers separate content in [Card](/components/card) to establish hierarchy. * * Too many dividers will add unnecessary weight to your Card. */ export default function CardDivider(props: Props) { return <Root {...props} role="separator" />; }
23.714286
84
0.678715
3b1fdd7f12fed27e116f0ec247cf1c0a083501eb
1,072
js
JavaScript
src/hooks/use-http.js
MaEdAlpha/artera-labs
a68e29e7e47c7f32c48d23c1a2c27071c90159bc
[ "MIT" ]
null
null
null
src/hooks/use-http.js
MaEdAlpha/artera-labs
a68e29e7e47c7f32c48d23c1a2c27071c90159bc
[ "MIT" ]
null
null
null
src/hooks/use-http.js
MaEdAlpha/artera-labs
a68e29e7e47c7f32c48d23c1a2c27071c90159bc
[ "MIT" ]
null
null
null
import {useCallback, useState} from 'react'; const useHttp = () => { const [isLoading, setIsLoading] = useState(false); const [error, setError] = useState(null); const sendRequest = useCallback( async (httpOptions, applyData) => { setIsLoading(true); setError(null); try { const response = await fetch( httpOptions.url,{ method: httpOptions.method ? httpOptions.method : 'GET', headers: httpOptions.headers ? httpOptions.headers : {}, body: httpOptions.body ? JSON.stringify(httpOptions.body) : null } ); if (!response.ok) { throw new Error('Request failed!'); } const data = await response.json(); applyData(data); } catch (err) { console.warn(err); setError(err.message || 'Something went wrong!'); } setIsLoading(false); }, []); return { isLoading: isLoading, error: error, sendRequest: sendRequest } }; export default useHttp;
25.52381
78
0.559701
3b2025e5579b8fa65338c85b59974c03e739c2e9
3,230
js
JavaScript
packages/helper-insert-link/__tests__/index.js
nisarhassan12/OctoLinker
538c00a2a152c3cd13e8604cbd307548c1c067ab
[ "MIT" ]
1
2020-03-24T23:21:52.000Z
2020-03-24T23:21:52.000Z
packages/helper-insert-link/__tests__/index.js
nisarhassan12/OctoLinker
538c00a2a152c3cd13e8604cbd307548c1c067ab
[ "MIT" ]
1
2021-08-31T21:28:51.000Z
2021-08-31T21:28:51.000Z
packages/helper-insert-link/__tests__/index.js
nisarhassan12/OctoLinker
538c00a2a152c3cd13e8604cbd307548c1c067ab
[ "MIT" ]
1
2020-05-14T01:57:00.000Z
2020-05-14T01:57:00.000Z
import { REQUIRE } from '@octolinker/helper-grammar-regex-collection'; import insertLink from '../index'; describe('insert-link', () => { const DEFAULT_REGEX = /foo ("\w+")/g; const fakePlugin = { resolve: jest.fn().mockReturnValue('urlsToResolve'), }; function helper(html, regex = DEFAULT_REGEX, plugin = fakePlugin, meta = {}) { const el = document.createElement('div'); el.innerHTML = `<div id="LC1">${html}</div>`; const blob = { el, isDiff: false, firstLineNumber: 1, lineSelector() { return `#LC1`; }, toString() { return el.textContent; }, }; const matches = insertLink(blob, regex, plugin, meta); // Remove root element for a pretty output const testEl = el.firstChild; testEl.removeAttribute('id'); return { blob, el: testEl, matches, }; } it('wraps the elements based on their char position which is specified in the keywords map', () => { expect(helper('foo <span><i>"</i>foo<i>"</i></span>').el).toMatchSnapshot(); }); it('wraps a nested element', () => { expect( helper('foo <div><span><i>"</i>foo<i>"</i></span></div>').el, ).toMatchSnapshot(); }); it('wraps double quotes', () => { const input = 'foo <span>"foo"</span>'; expect(helper(input).el).toMatchSnapshot(); }); it('wraps single quotes', () => { const regex = /foo ('\w+')/g; const input = "foo <span>'foo'</span>"; expect(helper(input, regex).el).toMatchSnapshot(); }); it('wraps mixed quotes', () => { const regex = /foo ('\w+")/g; const input = 'foo <span>\'foo"</span>'; expect(helper(input, regex).el).toMatchSnapshot(); }); it('wraps a single word', () => { const regex = /foo (\w+)/g; const input = 'foo <span>bar</span>'; expect(helper(input, regex).el).toMatchSnapshot(); }); it('wraps a single string', () => { const regex = /(bar)/g; const input = 'foo bar baz'; expect(helper(input, regex).el).toMatchSnapshot(); }); it('wraps multiple strings', () => { const regex = /foo (bar)/g; const input = 'foo bar baz'; expect(helper(input, regex).el).toMatchSnapshot(); }); it('wraps the element once', () => { const input = 'foo <span><i>"</i>foo<i>"</i></span>'; const { blob, el, matches: match1 } = helper(input); const match2 = insertLink(blob, DEFAULT_REGEX, fakePlugin); expect(match1.length).toBe(1); expect(match2.length).toBe(0); expect(el).toMatchSnapshot(); }); it('does not remove closing parentheses from commented out require() calls', () => { const input = "// var faker = require('faker')"; expect(helper(input, REQUIRE).el).toMatchSnapshot(); }); describe('returns', () => { it('returns an array', () => { const input = 'foo <span>"bar"</span>'; expect(helper(input).matches.length).toBe(1); expect(helper(input).matches).toMatchSnapshot(); }); it('returns an array with values', () => { const input = 'foo <span>"bar"</span>'; fakePlugin.resolve.mockReturnValue([undefined, null, '', 'bar']); expect(helper(input).matches[0].urls).toEqual(['bar']); }); }); });
26.47541
102
0.578947
3b208d74b2bc1834829edaeb550a7edccdab6322
841
js
JavaScript
commands/reactions/stab.js
Mag1cUwU/Asuna-San-DEPRECATED-
4db63f13c176af1d0c5f4c248c4a1eab78d28146
[ "MIT" ]
1
2019-11-30T17:05:35.000Z
2019-11-30T17:05:35.000Z
commands/reactions/stab.js
Magic-Bot-Coder/CreamBotV1
4db63f13c176af1d0c5f4c248c4a1eab78d28146
[ "MIT" ]
1
2021-09-02T07:01:22.000Z
2021-09-02T07:01:22.000Z
commands/reactions/stab.js
msochalski/Asuna-San-DEPRECATED-
4db63f13c176af1d0c5f4c248c4a1eab78d28146
[ "MIT" ]
4
2019-11-30T17:05:38.000Z
2019-12-01T18:12:19.000Z
const stab = require('./stab.json'); const Discord = require('discord.js'); module.exports = { name: "stab", category: "reactions", description: "stab someone", run: async (client, message, args) => { if (!message.mentions.users.first()) return message.reply("You need to mention someone to stab them"); if (message.mentions.users.first().id === message.author.id) return message.channel.send('I can\'t let you do that, self-harm is bad :pleading_face:'); args = args.join(" "); const embed = new Discord.RichEmbed() .setColor(Math.floor(Math.random()*16777215)) .setTimestamp() .setTitle(`TwT, ${message.author.username} stabbed ${message.mentions.users.first().username}`) .setImage(`${stab[Math.floor(Math.random() * stab.length)]}`) message.channel.send({embed}) }}
46.722222
156
0.653983
3b20a86288c08f985e60ae328b1609f499f0a7b0
5,354
js
JavaScript
wordpress/wp-content/plugins/buddypress/bp-core/js/webcam.min.js
jmelgarejo/Clan
c4cfe23c29edc4267bc6379735f945e6746d11aa
[ "MIT" ]
1
2018-06-11T20:16:22.000Z
2018-06-11T20:16:22.000Z
prototypewp/wp-content/plugins/buddypress/bp-core/js/webcam.min.js
dtpett16/uia-alumni
2fd7a2681ee35c7c32a9ebb9da229d27922efdbe
[ "MIT" ]
null
null
null
prototypewp/wp-content/plugins/buddypress/bp-core/js/webcam.min.js
dtpett16/uia-alumni
2fd7a2681ee35c7c32a9ebb9da229d27922efdbe
[ "MIT" ]
null
null
null
window.bp=window.bp||{},bp,jQuery,"undefined"!=typeof BP_Uploader&&(bp.Models=bp.Models||{},bp.Collections=bp.Collections||{},bp.Views=bp.Views||{},bp.WebCam={start:function(){this.params={video:null,videoStream:null,capture_enable:!1,capture:null,canvas:null,warning:null,flipped:!1},bp.Avatar.nav.on("bp-avatar-view:changed",_.bind(this.setView,this))},setView:function(e){if("camera"===e){var a=new bp.Views.WebCamAvatar({model:new Backbone.Model({user_media:!1})});this.params.flipped=!1,bp.Avatar.views.add({id:"camera",view:a}),a.inject(".bp-avatar")}else _.isNull(this.params.video)||(this.stop(),this.removeWarning())},removeView:function(){var e;_.isUndefined(bp.Avatar.views.get("camera"))||((e=bp.Avatar.views.get("camera")).get("view").remove(),bp.Avatar.views.remove({id:"camera",view:e}))},gotStream:function(e){var a=bp.WebCam.params.video;bp.WebCam.params.videoStream=e,bp.WebCam.displayWarning("loaded"),a.onerror=function(){bp.WebCam.displayWarning("videoerror"),a&&bp.WebCam.stop()},e.onended=bp.WebCam.noStream(),void 0!==a.mozSrcObject?(a.mozSrcObject=e,a.play()):navigator.mozGetUserMedia?(a.src=e,a.play()):void 0!==a.srcObject?a.srcObject=e:window.URL?a.src=window.URL.createObjectURL(e):a.src=e,bp.WebCam.params.capture_enable=!0},stop:function(){bp.WebCam.params.capture_enable=!1,bp.WebCam.params.videoStream&&(bp.WebCam.params.videoStream.stop?bp.WebCam.params.videoStream.stop():bp.WebCam.params.videoStream.msStop&&bp.WebCam.params.videoStream.msStop(),bp.WebCam.params.videoStream.onended=null,bp.WebCam.params.videoStream=null),bp.WebCam.params.video&&(bp.WebCam.params.video.onerror=null,bp.WebCam.params.video.pause(),bp.WebCam.params.video.mozSrcObject&&(bp.WebCam.params.video.mozSrcObject=null),bp.WebCam.params.video.src="")},noStream:function(){_.isNull(bp.WebCam.params.videoStream)&&(bp.WebCam.displayWarning("noaccess"),bp.WebCam.removeView())},setAvatar:function(e){e.get("url")||bp.WebCam.displayWarning("nocapture"),bp.WebCam.removeView(),bp.Avatar.setAvatar(e)},removeWarning:function(){_.isNull(this.params.warning)||this.params.warning.remove()},displayWarning:function(e){this.removeWarning(),this.params.warning=new bp.Views.uploaderWarning({value:BP_Uploader.strings.camera_warnings[e]}),this.params.warning.inject(".bp-avatar-status")}},bp.Views.WebCamAvatar=bp.View.extend({tagName:"div",id:"bp-webcam-avatar",template:bp.template("bp-avatar-webcam"),events:{"click .avatar-webcam-capture":"captureStream","click .avatar-webcam-save":"saveCapture"},initialize:function(){var e;(navigator.getUserMedia||navigator.oGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia)&&(e=_.extend(_.pick(BP_Uploader.settings.defaults.multipart_params.bp_params,"object","item_id","nonces"),{user_media:!0,w:BP_Uploader.settings.crop.full_w,h:BP_Uploader.settings.crop.full_h,x:0,y:0,type:"camera"}),this.model.set(e)),this.on("ready",this.useStream,this)},useStream:function(){this.model.get("user_media")&&(this.options.video=new bp.Views.WebCamVideo,this.options.canvas=new bp.Views.WebCamCanvas,this.$el.find("#avatar-to-crop").append(this.options.video.el),this.$el.find("#avatar-crop-pane").append(this.options.canvas.el),bp.WebCam.params.video=this.options.video.el,bp.WebCam.params.canvas=this.options.canvas.el,bp.WebCam.displayWarning("requesting"),navigator.getUserMedia?navigator.getUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.oGetUserMedia?navigator.oGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.mozGetUserMedia?navigator.mozGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.webkitGetUserMedia?navigator.webkitGetUserMedia({video:!0},bp.WebCam.gotStream,bp.WebCam.noStream):navigator.msGetUserMedia?navigator.msGetUserMedia({video:!0,audio:!1},bp.WebCams.gotStream,bp.WebCam.noStream):bp.WebCam.displayWarning("errormsg"))},captureStream:function(e){var a,t;e.preventDefault(),bp.WebCam.params.capture_enable?this.model.get("h")>this.options.video.el.videoHeight||this.model.get("w")>this.options.video.el.videoWidth?bp.WebCam.displayWarning("videoerror"):(t=this.options.video.el.videoHeight,a=(this.options.video.el.videoWidth-t)/2,bp.WebCam.params.flipped||(this.options.canvas.el.getContext("2d").translate(this.model.get("w"),0),this.options.canvas.el.getContext("2d").scale(-1,1),bp.WebCam.params.flipped=!0),this.options.canvas.el.getContext("2d").drawImage(this.options.video.el,a,0,t,t,0,0,this.model.get("w"),this.model.get("h")),bp.WebCam.params.capture=this.options.canvas.el.toDataURL("image/png"),this.model.set("url",bp.WebCam.params.capture),bp.WebCam.displayWarning("ready")):bp.WebCam.displayWarning("loading")},saveCapture:function(e){e.preventDefault(),bp.WebCam.params.capture?(bp.WebCam.stop(),bp.WebCam.setAvatar(this.model)):bp.WebCam.displayWarning("nocapture")}}),bp.Views.WebCamVideo=bp.View.extend({tagName:"video",id:"bp-webcam-video",attributes:{autoplay:"autoplay"}}),bp.Views.WebCamCanvas=bp.View.extend({tagName:"canvas",id:"bp-webcam-canvas",attributes:{width:150,height:150},initialize:function(){_.isUndefined(BP_Uploader.settings.crop.full_h)||_.isUndefined(BP_Uploader.settings.crop.full_w)||(this.el.attributes.width.value=BP_Uploader.settings.crop.full_w,this.el.attributes.height.value=BP_Uploader.settings.crop.full_h)}}),bp.WebCam.start());
5,354
5,354
0.784273
3b212c7d3cb13e03b6cd90451558d0c46d23c1ac
4,709
js
JavaScript
viz-lib/src/visualizations/chart/plotly/applyLayoutFixes.js
atharvai/redash
8ffc2719740967ef476a999ccc3dbd4003f7b1f2
[ "BSD-2-Clause" ]
2
2019-11-11T17:00:14.000Z
2020-05-10T16:27:17.000Z
viz-lib/src/visualizations/chart/plotly/applyLayoutFixes.js
atharvai/redash
8ffc2719740967ef476a999ccc3dbd4003f7b1f2
[ "BSD-2-Clause" ]
2
2021-02-01T08:02:42.000Z
2021-03-03T09:00:57.000Z
viz-lib/src/visualizations/chart/plotly/applyLayoutFixes.js
atharvai/redash
8ffc2719740967ef476a999ccc3dbd4003f7b1f2
[ "BSD-2-Clause" ]
null
null
null
import { find, pick, reduce } from "lodash"; function fixLegendContainer(plotlyElement) { const legend = plotlyElement.querySelector(".legend"); if (legend) { let node = legend.parentNode; while (node) { if (node.tagName.toLowerCase() === "svg") { node.style.overflow = "visible"; break; } node = node.parentNode; } } } function placeLegendNextToPlot(plotlyElement, layout, updatePlot) { const transformName = find( ["transform", "WebkitTransform", "MozTransform", "MsTransform", "OTransform"], prop => prop in plotlyElement.style ); layout.legend = { orientation: "v", // vertical legend will be rendered properly, so just place it to the right // side of plot y: 1, x: 1, xanchor: "left", yanchor: "top", }; const legend = plotlyElement.querySelector(".legend"); if (legend) { legend.style[transformName] = null; } updatePlot(plotlyElement, pick(layout, ["width", "height", "legend"])); } function placeLegendBelowPlot(plotlyElement, layout, updatePlot) { const transformName = find( ["transform", "WebkitTransform", "MozTransform", "MsTransform", "OTransform"], prop => prop in plotlyElement.style ); // Save current `layout.height` value because `updatePlot().then(...)` handler may be called multiple // times within single update, and since the handler mutates `layout` object - it may lead to bugs const layoutHeight = layout.height; // change legend orientation to horizontal; plotly has a bug with this // legend alignment - it does not preserve enough space under the plot; // so we'll hack this: update plot (it will re-render legend), compute // legend height, reduce plot size by legend height (but not less than // half of plot container's height - legend will have max height equal to // plot height), re-render plot again and offset legend to the space under // the plot. // Related issue: https://github.com/plotly/plotly.js/issues/1199 layout.legend = { orientation: "h", // locate legend inside of plot area - otherwise plotly will preserve // some amount of space under the plot; also this will limit legend height // to plot's height y: 0, x: 0, xanchor: "left", yanchor: "bottom", }; // set `overflow: visible` to svg containing legend because later we will // position legend outside of it fixLegendContainer(plotlyElement); updatePlot(plotlyElement, pick(layout, ["width", "height", "legend"])).then(() => { const legend = plotlyElement.querySelector(".legend"); // eslint-disable-line no-shadow if (legend) { // compute real height of legend - items may be split into few columnns, // also scrollbar may be shown const bounds = reduce( legend.querySelectorAll(".traces"), (result, node) => { const b = node.getBoundingClientRect(); result = result || b; return { top: Math.min(result.top, b.top), bottom: Math.max(result.bottom, b.bottom), }; }, null ); // here we have two values: // 1. height of plot container excluding height of legend items; // it may be any value between 0 and plot container's height; // 2. half of plot containers height. Legend cannot be larger than // plot; if legend is too large, plotly will reduce it's height and // show a scrollbar; in this case, height of plot === height of legend, // so we can split container's height half by half between them. layout.height = Math.floor(Math.max(layoutHeight / 2, layoutHeight - (bounds.bottom - bounds.top))); // offset the legend legend.style[transformName] = "translate(0, " + layout.height + "px)"; updatePlot(plotlyElement, pick(layout, ["height"])); } }); } function placeLegendAuto(plotlyElement, layout, updatePlot) { if (layout.width <= 600) { placeLegendBelowPlot(plotlyElement, layout, updatePlot); } else { placeLegendNextToPlot(plotlyElement, layout, updatePlot); } } export default function applyLayoutFixes(plotlyElement, layout, options, updatePlot) { // update layout size to plot container // plot size should be at least 5x5px layout.width = Math.max(5, Math.floor(plotlyElement.offsetWidth)); layout.height = Math.max(5, Math.floor(plotlyElement.offsetHeight)); if (options.legend.enabled) { switch (options.legend.placement) { case "auto": placeLegendAuto(plotlyElement, layout, updatePlot); break; case "below": placeLegendBelowPlot(plotlyElement, layout, updatePlot); break; // no default } } }
35.674242
106
0.660225
3b22877c41285aeb0671c5f6997cef705b97e55b
1,702
js
JavaScript
.eslintrc.js
laranhee/git-helper
72b6650c5cdd39a97a8bc6d9dc82241ec2f0e2ee
[ "MIT" ]
1
2018-05-29T08:28:56.000Z
2018-05-29T08:28:56.000Z
.eslintrc.js
laranhee/git-helper
72b6650c5cdd39a97a8bc6d9dc82241ec2f0e2ee
[ "MIT" ]
null
null
null
.eslintrc.js
laranhee/git-helper
72b6650c5cdd39a97a8bc6d9dc82241ec2f0e2ee
[ "MIT" ]
null
null
null
module.exports = { root: true, parserOptions: { parser: 'babel-eslint', sourceType: 'module', }, env: { browser: true, node: true, }, extends: ['plugin:vue/recommended', 'airbnb-base', 'prettier'], globals: { __static: true, }, plugins: ['vue'], rules: { 'global-require': 0, 'import/no-unresolved': 0, 'no-param-reassign': 0, 'no-shadow': 0, 'import/extensions': 0, 'import/newline-after-import': 0, 'no-multi-assign': 0, // TODO FIXME electron이 해당 룰에 걸려 임시로 처리. 해결방안 찾을 것 'import/no-extraneous-dependencies': [ 'error', { devDependencies: [ 'test/**', // tape, common npm pattern 'tests/**', // also common npm pattern 'spec/**', // mocha, rspec-like pattern '**/__tests__/**', // jest pattern 'test.{js,jsx}', // repos with a single test file 'test-*.{js,jsx}', // repos with multiple top-level test files '**/*.{test,spec}.{js,jsx}', // tests where the extension denotes that it is a test '**/jest.config.js', // jest config '**/webpack.config.js', // webpack config '**/webpack.config.*.js', // webpack config '**/rollup.config.js', // rollup config '**/rollup.config.*.js', // rollup config '**/gulpfile.js', // gulp config '**/gulpfile.*.js', // gulp config '**/Gruntfile{,.js}', // grunt config '**/protractor.conf.*.js', // protractor config '**', ], optionalDependencies: false, }, ], // allow debugger during development 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, }, };
31.518519
93
0.53584
3b22a26853069b679547d3c97ba6effd600ac9c7
4,002
js
JavaScript
lib/js/tests/canvas/canvas2d_test.js
malthe/bs-webapi-incubator
065059d56c4f9299547760d64746e1bb7d8c0b96
[ "MIT" ]
null
null
null
lib/js/tests/canvas/canvas2d_test.js
malthe/bs-webapi-incubator
065059d56c4f9299547760d64746e1bb7d8c0b96
[ "MIT" ]
null
null
null
lib/js/tests/canvas/canvas2d_test.js
malthe/bs-webapi-incubator
065059d56c4f9299547760d64746e1bb7d8c0b96
[ "MIT" ]
null
null
null
'use strict'; var List = require("bs-platform/lib/js/list.js"); var Canvas2dRe = require("../../src/canvas/Canvas2dRe.js"); var Js_primitive = require("bs-platform/lib/js/js_primitive.js"); var canvasEl = document.createElement("canvas"); var ctx = canvasEl.getContext("2d"); ctx.save(); ctx.restore(); ctx.scale(1, 2); ctx.rotate(2); ctx.translate(2, 3); ctx.transform(1, 2, 1, 1, 1, 1); ctx.globalAlpha = 0.9; ctx.globalCompositeOperation = Canvas2dRe.Composite[/* sourceOver */0]; ctx.lineWidth = 1; ctx.lineCap = Canvas2dRe.LineCap[/* butt */0]; ctx.lineJoin = Canvas2dRe.LineJoin[/* round */0]; ctx.miterLimit = 10; Canvas2dRe.setStrokeStyle(ctx, /* String */0, "red"); Canvas2dRe.setFillStyle(ctx, /* String */0, "red"); var match = Canvas2dRe.fillStyle(ctx); switch (match[0]) { case 0 : console.log(match[1]); break; case 1 : match[1].addColorStop(0.0, "red"); break; case 2 : break; } var match$1 = Canvas2dRe.strokeStyle(ctx); switch (match$1[0]) { case 0 : console.log(match$1[1]); break; case 1 : match$1[1].addColorStop(1.2, "blue"); break; case 2 : break; } ctx.shadowOffsetX = 1; ctx.shadowOffsetY = 1; ctx.shadowBlur = 1; ctx.shadowColor = "red"; ctx.beginPath(); ctx.closePath(); ctx.fill(); ctx.stroke(); ctx.clip(); ctx.moveTo(1, 1); ctx.lineTo(1, 2); ctx.quadraticCurveTo(1, 1, 1, 1); ctx.bezierCurveTo(1, 1, 2, 2, 4, 4); ctx.arcTo(1, 1, 2, 2, 4); ctx.arc(1, 1, 4, 1, 3, true); ctx.rect(0, 0, 10, 10); ctx.isPointInPath(0, 0); var linearGradient = ctx.createLinearGradient(0.0, 0.0, 0.0, 0.0); Canvas2dRe.setStrokeStyle(ctx, /* Gradient */1, linearGradient); ctx.createRadialGradient(0.0, 0.0, 0.0, 0.0, 0.0, 0.0); linearGradient.addColorStop(0.0, "red"); var partial_arg = document.createElement("img"); List.map((function (param) { return createPattern(ctx, partial_arg, (function () { switch (param) { case 108828507 : return "repeat"; case 646437021 : return "repeat-x"; case 646437022 : return "repeat-y"; case -695430532 : return "no-repeat"; } })()); }), /* :: */[ /* noRepeat */-695430532, /* :: */[ /* repeat */108828507, /* :: */[ /* repeatX */646437021, /* :: */[ /* repeatY */646437022, /* [] */0 ] ] ] ]); var measureText = ctx.measureText("foo"); var width = measureText.width; ctx.fillText("foo!", 0.0, 0.0, width); ctx.strokeText("foo!", 0.0, 0.0, width); var imageData = ctx.createImageData(0.0, 0.0); ctx.createImageData(imageData); imageData.width; imageData.height; ctx.getImageData(0.0, 0.0, 0.0, 0.0); ctx.putImageData(imageData, 0.0, 0.0, undefined, undefined, undefined, undefined); ctx.putImageData(imageData, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); ctx.font = "10px Courier"; ctx.textAlign = "left"; ctx.textBaseline = "top"; ((function (eta) { var param = undefined; var param$1 = eta; param$1.fillText("hi", 1, 0, param !== undefined ? Js_primitive.valFromOption(param) : undefined); return /* () */0; })(ctx)); ((function (eta) { var param = undefined; var param$1 = eta; param$1.strokeText("hi", 1, 0, param !== undefined ? Js_primitive.valFromOption(param) : undefined); return /* () */0; })(ctx)); ctx.fillRect(1, 0, 10, 10); ctx.strokeRect(1, 0, 10, 10); ctx.clearRect(1, 0, 10, 10); exports.canvasEl = canvasEl; exports.ctx = ctx; exports.linearGradient = linearGradient; exports.measureText = measureText; exports.width = width; exports.imageData = imageData; /* canvasEl Not a pure module */
20.628866
108
0.561969
3b22e1b1ac654753953e65c5ccf82fa6107ae655
167
js
JavaScript
template/src/router/module1/index.js
hjJunior/vue-starter
3499da71e61aa23bb3e57de64fc4508830f6f8a8
[ "MIT" ]
null
null
null
template/src/router/module1/index.js
hjJunior/vue-starter
3499da71e61aa23bb3e57de64fc4508830f6f8a8
[ "MIT" ]
null
null
null
template/src/router/module1/index.js
hjJunior/vue-starter
3499da71e61aa23bb3e57de64fc4508830f6f8a8
[ "MIT" ]
null
null
null
import HelloWorld from '@/components/HelloWorld' const Module1 = [ { path: '/', name: 'HelloWorld', component: HelloWorld } ] export default Module1
13.916667
48
0.652695
3b243a6cd2df43b3df337980799804fbf5f9b68b
2,491
js
JavaScript
test/core.message.js
matomesc/gossip
50ed9b1b4f017f8b68e3ca7bcdaf7f5ea69229fe
[ "MIT" ]
1
2015-06-29T06:33:04.000Z
2015-06-29T06:33:04.000Z
test/core.message.js
matomesc/gossip
50ed9b1b4f017f8b68e3ca7bcdaf7f5ea69229fe
[ "MIT" ]
1
2015-04-21T21:32:07.000Z
2015-04-21T21:32:07.000Z
test/core.message.js
matomesc/gossip
50ed9b1b4f017f8b68e3ca7bcdaf7f5ea69229fe
[ "MIT" ]
null
null
null
var assert = require('assert'); var sinon = require('sinon'); var Message = require('../core/message'); describe('core.Message', function () { describe('new Message()', function () { it('should create an empty message', function () { var m = new Message(); assert(!m.data); assert(!m.raw); }); }); describe('new Message(object)', function () { it('should create a new message with object body', function () { var body = { human: false }; var m = new Message(body); assert.deepEqual(m.data, body); assert(m.raw === null); }); }); describe('new Message(buffer)', function () { it('should create a new message with buffer body', function () { var body = new Buffer('{ "human": false }'); var m = new Message(body); assert(m.raw === body); assert(m.data === undefined); }); }); describe('message.deserialize()', function () { it('should parse the raw buffer into an object', function () { var msg = { human: false }; var body = new Buffer(JSON.stringify(msg)); var m = new Message(body); m.deserialize(); assert.deepEqual(m.get(), msg); }); }); describe('message.serialize()', function () { it('should stringify the object into a buffer', function () { var body = { human: false }; var jsonBody = JSON.stringify(body); var m = new Message(body); assert(m.serialize().toString('utf8') === jsonBody); }); }); describe('message.get(path)', function () { it('should return the value at path', function () { var body = { a: 10, b: { c: 15 } }; var message = new Message(body); assert.deepEqual(message.get(), body); assert(message.get('a') === 10); assert(message.get('b.c') === 15); assert(message.get('a.b.c') === undefined); }); it('should deserialize the object', function () { var body = { stuff: 'apples' }; var buffer = new Buffer(JSON.stringify(body)); var m = new Message(buffer); assert(m.get('stuff') === 'apples'); }); }); describe('message.set(path, value)', function () { it('should set the value at path', function () { var m = new Message({ a: 10 }); m.set('a', 20); m.set('d', 10); m.set('b.c', 'asdf'); assert(m.get('a') === 20); assert(m.get('d') === 10); assert(m.get('b.c') === 'asdf'); }); }); });
27.076087
68
0.537535
3b24d13e0802db9fa2862fc85764e1d7d8e4d90c
2,766
js
JavaScript
app/components/Pin/index.js
kevinnorris/pintclone
55a2ce4c7c10c3cc91b4320ddc5ed2888254306e
[ "MIT" ]
null
null
null
app/components/Pin/index.js
kevinnorris/pintclone
55a2ce4c7c10c3cc91b4320ddc5ed2888254306e
[ "MIT" ]
null
null
null
app/components/Pin/index.js
kevinnorris/pintclone
55a2ce4c7c10c3cc91b4320ddc5ed2888254306e
[ "MIT" ]
null
null
null
import React from 'react'; import styled from 'styled-components'; import { Link } from 'react-router'; import { outline, mainColor, main, btnBorderRadius, inactive, background, } from 'utils/colors'; import defaultImg from './default.png'; const PinImg = styled.img` display: block; width: 360px; border-radius: 6px; &:hover{ cursor: zoom-in; } @media (max-width: 370px) { width: 320px; } `; const Wrapper = styled.div` position: relative; padding: 5px; background: white; border-radius: 8px; // text-align: center; &:hover{ background: ${outline}; button { visibility: visible; } } `; const ImgBtn = styled.button` visibility: hidden; position: absolute; top: 10px; padding: 5px 8px; border-radius: ${btnBorderRadius}; &:hover { cursor: pointer; } `; const LikesBtn = styled(ImgBtn)` left: 10px; color: ${(props) => props.active ? mainColor : inactive}; background: ${(props) => props.active ? main : background}; p { display: inline-block; margin: 0; } `; const DeleteBtn = styled(ImgBtn)` right: 10px; color: ${inactive}; background: ${background}; font-weight: bold; `; const UserLink = styled(Link)` cursor: pointer; color: ${inactive}; text-decoration: none; &:hover, &:active, &:focus { color: ${inactive}; text-decoration: none; } `; const addDefaultSrc = (ev) => { ev.target.src = defaultImg; }; function Pin({ id, title, imgurl, username, userThumbnail, likes, liked, handelImgClick, handelLikeClick, handelDeleteClick, myPic }) { return ( <Wrapper> <LikesBtn active={liked} onClick={handelLikeClick(id, !!liked)} > <span className="glyphicon glyphicon-heart" aria-hidden="true"></span> {likes || 0} </LikesBtn> {myPic ? <DeleteBtn onClick={handelDeleteClick(id)}> <span className="glyphicon glyphicon-trash" aria-hidden="true" /> </DeleteBtn> : null } <PinImg src={imgurl} onError={addDefaultSrc} alt={title} onClick={handelImgClick({ id, title, imgurl, username, userThumbnail, likes, liked, myPic })} /> <UserLink to={`/${username}`}> By {username} </UserLink> </Wrapper> ); } Pin.propTypes = { id: React.PropTypes.number.isRequired, title: React.PropTypes.string.isRequired, imgurl: React.PropTypes.string.isRequired, username: React.PropTypes.string.isRequired, userThumbnail: React.PropTypes.string, likes: React.PropTypes.number, liked: React.PropTypes.bool, handelImgClick: React.PropTypes.func.isRequired, handelLikeClick: React.PropTypes.func.isRequired, myPic: React.PropTypes.bool.isRequired, handelDeleteClick: React.PropTypes.func.isRequired, }; export default Pin;
21.952381
159
0.658351
3b2571a88c7507172c2a318046fc0eb915a8c37c
1,169
js
JavaScript
src/gatsby-browser.js
rowlandcorentin/gatsby-plugin-hubspot
46a65d481cb29644c18b961eaaeeb43cebdec762
[ "MIT" ]
3
2022-01-03T10:01:36.000Z
2022-02-04T15:02:49.000Z
src/gatsby-browser.js
rowlandcorentin/gatsby-plugin-hubspot
46a65d481cb29644c18b961eaaeeb43cebdec762
[ "MIT" ]
null
null
null
src/gatsby-browser.js
rowlandcorentin/gatsby-plugin-hubspot
46a65d481cb29644c18b961eaaeeb43cebdec762
[ "MIT" ]
1
2021-07-30T17:24:20.000Z
2021-07-30T17:24:20.000Z
import defaultOptions from './default-options'; export function onRouteUpdate({ location }, pluginOptions) { const { productionOnly } = Object.assign( {}, defaultOptions, pluginOptions ); if ( (productionOnly && process.env.NODE_ENV !== 'production') || !Array.isArray(window._hsq) ) { return; } // wrap inside a timeout to make sure react-helmet is done with it's changes (https://github.com/gatsbyjs/gatsby/issues/9139) // react-helmet is using requestAnimationFrame (https://github.com/nfl/react-helmet/blob/5.2.0/src/HelmetUtils.js#L296-L299) const trackPageView = () => { const path = location ? location.pathname + location.search + location.hash : undefined; window._hsq.push(['setPath', path]); window._hsq.push(['trackPageView']); }; if (typeof window.requestAnimationFrame === 'function') { window.requestAnimationFrame(() => { window.requestAnimationFrame(trackPageView); }); } else { // simulate 2 requestAnimationFrame calls setTimeout(trackPageView, 32); } }
32.472222
129
0.618477
3b268afade0da7f3dd63c2d8fac740df13596ace
1,586
js
JavaScript
frontend/src/components/Autocomplete/index.js
iredhd/anestech
0ca6cd3e68c2547fa88665b9dd7936fee9b93a7c
[ "MIT" ]
null
null
null
frontend/src/components/Autocomplete/index.js
iredhd/anestech
0ca6cd3e68c2547fa88665b9dd7936fee9b93a7c
[ "MIT" ]
null
null
null
frontend/src/components/Autocomplete/index.js
iredhd/anestech
0ca6cd3e68c2547fa88665b9dd7936fee9b93a7c
[ "MIT" ]
null
null
null
import React, { useCallback } from 'react'; import TextField from '@material-ui/core/TextField'; import MuiAutocomplete from '@material-ui/lab/Autocomplete'; import PropTypes from 'prop-types'; import { find } from 'lodash'; const Autocomplete = ({ label, error, id: elementId, options, onChange, onTextChange, value, }) => { const handleChange = useCallback((_, option) => { onChange(option); }, [onChange]); return ( <MuiAutocomplete id={elementId} options={options} clearOnBlur value={find(options, ({ id }) => id === value) || null} getOptionLabel={(option) => option.label} onChange={handleChange} noOptionsText="Nenhuma opção encontrada." renderInput={(params) => ( <TextField error={!!error} fullWidth helperText={error} onChange={onTextChange} {...params} label={label} variant="outlined" /> )} /> ); }; Autocomplete.defaultProps = { onTextChange: () => {}, id: '', error: false, value: '', }; Autocomplete.propTypes = { label: PropTypes.string.isRequired, name: PropTypes.string.isRequired, id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), options: PropTypes.arrayOf(PropTypes.shape({ label: PropTypes.string.isRequired, })).isRequired, onChange: PropTypes.func.isRequired, onTextChange: PropTypes.func, value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), }; export default Autocomplete;
26.881356
70
0.64691
3b26e73a42dfef03d9eaa4f8982540bc7f57cc4a
903
js
JavaScript
server/apis/models/directCost.model.js
nriderelli/vulture
3449bf0f5ff88f50d7f3345a5c136f1ed5bb9410
[ "MIT" ]
null
null
null
server/apis/models/directCost.model.js
nriderelli/vulture
3449bf0f5ff88f50d7f3345a5c136f1ed5bb9410
[ "MIT" ]
null
null
null
server/apis/models/directCost.model.js
nriderelli/vulture
3449bf0f5ff88f50d7f3345a5c136f1ed5bb9410
[ "MIT" ]
null
null
null
const mongoose = require('mongoose'); const DirectCostSchema = new mongoose.Schema({ "Negocio": { type: String, }, "País": { type: String, }, "Canal": { type: String, }, "Tipo": { type: String, }, "Certificacion": { type: String, }, "Calidad": { type: String, }, "Cepa1": { type: String, }, "Cepa": { type: String, }, "Marca1": { type: String, }, "Marca": { type: String, }, "Packaging": { type: String, }, "Real / Budget": { type: String, }, "Month": { type: String, }, "Year": { type: String, }, "Value": { type: String, }, createdAt: { type: Date, default: Date.now, required: true } } ); module.exports = mongoose.model("DirectCost", DirectCostSchema);
16.722222
64
0.447398
3b278c3c255c0d002f347d8b1c811336c653b32e
567
js
JavaScript
implementation-contributed/v8/mjsunit/immutable-context-slot-inlining.js
katemihalikova/test262
aaf4402b4ca9923012e61830fba588bf7ceb6027
[ "BSD-3-Clause" ]
5,964
2016-09-27T03:46:29.000Z
2022-03-31T16:25:27.000Z
implementation-contributed/v8/mjsunit/immutable-context-slot-inlining.js
katemihalikova/test262
aaf4402b4ca9923012e61830fba588bf7ceb6027
[ "BSD-3-Clause" ]
2,157
2015-01-06T05:01:55.000Z
2022-03-31T17:18:08.000Z
implementation-contributed/v8/mjsunit/immutable-context-slot-inlining.js
katemihalikova/test262
aaf4402b4ca9923012e61830fba588bf7ceb6027
[ "BSD-3-Clause" ]
1,006
2016-09-27T05:17:27.000Z
2022-03-30T02:46:51.000Z
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --allow-natives-syntax function h(g) { return g(); } function f() { var g; for (var i = 0; i < 10; i++) { var y = i; if (i === 5) { g = function() { return y; }; assertEquals(5, h(g)); assertEquals(5, h(g)); %OptimizeFunctionOnNextCall(h); assertEquals(5, h(g)); } } return g; } var myg = f(); assertEquals(9, h(myg));
18.290323
73
0.56261
3b279acb765e304ec1c1b11efc69049f87670a58
1,338
js
JavaScript
lesson-01-DOM/dom-excercises/coloring/coloring.js
mabbason/ls-ls230
4ef78292482f0540d0a456e6e03b03f981d1b9d0
[ "MIT" ]
null
null
null
lesson-01-DOM/dom-excercises/coloring/coloring.js
mabbason/ls-ls230
4ef78292482f0540d0a456e6e03b03f981d1b9d0
[ "MIT" ]
null
null
null
lesson-01-DOM/dom-excercises/coloring/coloring.js
mabbason/ls-ls230
4ef78292482f0540d0a456e6e03b03f981d1b9d0
[ "MIT" ]
null
null
null
"use strict"; /* i: single integer o: adding the '.generation-color' class to the correct generation algorithm - write function colorGeneration, takes single int as arg - walk the entire DOM tree - if a node is an element get node generationNum (helper function) - if node genNum === input num - add the class helper: getGenerationNum, takes single element as arg declare genNum and init to 0 declare currElement and init to input element while currElement.tagName is NOT 'BODY' - increment genNum - reassign currElement to parent of currElement return genNum */ document.addEventListener('DOMContentLoaded', event => { function walk(node, callback) { callback(node); for (let i = 0; i < node.childNodes.length; i += 1) { walk(node.childNodes[i], callback) } }; function colorGeneration(genNum) { if (genNum > 0) { walk(document.body, node => { if (node instanceof Element && getElementGenNum(node) === genNum) { node.classList.add('generation-color'); } }); } }; function getElementGenNum(element) { let genNum = 0; let currElement = element; while (currElement.tagName !== 'BODY') { genNum += 1; currElement = currElement.parentNode; } return genNum; } colorGeneration(3); });
24.777778
75
0.652466
3b27d3e3a618aca301b9dab52d7104c37912ee0f
939
js
JavaScript
Backend/webtask/webtask.js
matt-roe/breezybook
5549e9f14cd261605e3f3b400ec782312479440f
[ "Apache-2.0" ]
1
2019-09-16T01:04:18.000Z
2019-09-16T01:04:18.000Z
Backend/webtask/webtask.js
matt-roe/breezybook
5549e9f14cd261605e3f3b400ec782312479440f
[ "Apache-2.0" ]
1
2022-02-12T21:03:48.000Z
2022-02-12T21:03:48.000Z
Backend/webtask/webtask.js
matt-roe/breezybook
5549e9f14cd261605e3f3b400ec782312479440f
[ "Apache-2.0" ]
null
null
null
'use latest'; import express from 'express'; import { fromExpress } from 'webtask-tools'; import bodyParser from 'body-parser'; import stripe from 'stripe'; bodyParser.urlencoded(); var app = express(); app.use(bodyParser.urlencoded()); app.post('/payment', (req,res) => { var ctx = req.webtaskContext; var STRIPE_SECRET_KEY = ctx.secrets.STRIPE_SECRET_KEY; stripe(STRIPE_SECRET_KEY).charges.create({ amount: req.query.amount, currency: req.query.currency, source: req.body.stripeToken, description: req.query.description }, payment_intent_data: { application_fee_amount: 100 }, (err, charge) => { const status = err ? 400: 200; const message = err ? err.message: 'Payment done!'; res.writeHead(status, { 'Content-Type': 'text/html' }); return res.end('<h1>' + message + '</h1>'); }, { stripe_account: CONNECTED_STRIPE_ACCOUNT_ID, }); }); module.exports = fromExpress(app);
24.710526
59
0.679446
3b2938280b6363d9932d60bc9ab3f44e1c774657
123,070
js
JavaScript
public/js/fusionmaps/maps/fusioncharts.balkh.js
cmiguelmartes/banshee
f7d868fae47a5f0da11f4cc4185b1949d37894ae
[ "MIT" ]
1
2018-05-29T12:35:01.000Z
2018-05-29T12:35:01.000Z
public/js/fusionmaps/maps/fusioncharts.balkh.js
cmiguelmartes/banshee
f7d868fae47a5f0da11f4cc4185b1949d37894ae
[ "MIT" ]
null
null
null
public/js/fusionmaps/maps/fusioncharts.balkh.js
cmiguelmartes/banshee
f7d868fae47a5f0da11f4cc4185b1949d37894ae
[ "MIT" ]
null
null
null
/* FusionCharts JavaScript Library Copyright FusionCharts Technologies LLP License Information at <http://www.fusioncharts.com/license> @author FusionCharts Technologies LLP @meta package_map_pack @id fusionmaps.Balkh.17.10-13-2015 07:16:20 */ (function(b){"object"===typeof module&&"undefined"!==typeof module.exports?module.exports=b:b(FusionCharts)})(function(b){b(["private","modules.renderer.js-balkh",function(){var b=this,c=b.hcLib,d=c.chartAPI,h=c.moduleCmdQueue,c=c.injectModuleDependency,a=!!d.geo,f,g,e;f=[{name:"Balkh",revision:17,standaloneInit:!0,baseWidth:482,baseHeight:644,baseScaleFactor:10,entities:{"AF.BK.SR":{outlines:[["M",1615,222,"Q",1612,220,1610,217,1610,215,1608,213,1606,209,1601,204,1592,195,1582,187,1580,186,1579, 185,1577,185,1576,184,1571,179,1568,173,1568,172,1567,171,1560,167,1553,164,1552,164,1550,164,1541,163,1533,159,1532,159,1530,157,1529,156,1528,155,1524,152,1520,151,1518,150,1516,149,1503,142,1495,136,1494,135,1493,134,1487,125,1473,119,1471,119,1470,117,1468,116,1466,115,1465,114,1463,112,1458,106,1451,100,1450,98,1448,98,1445,97,1443,97,1441,97,1440,95,1434,91,1429,88,1428,87,1426,85,1424,83,1422,81,1421,80,1419,79,1418,79,1416,78,1414,76,1409,75,1407,75,1404,74,1400,74,1396,73,1394,73,1392,73, 1391,72,1389,71,1383,68,1376,68,1368,69,1360,68,1353,68,1347,66,1341,63,1332,63,1318,64,1305,64,1299,65,1293,62,1293,61,1292,61,1287,60,1283,58,1280,57,1278,56,1276,55,1273,54,1256,54,1240,54,1236,54,1233,54,1230,55,1226,58,1225,60,1224,61,1222,65,1216,65,1215,65,1214,65,1205,65,1196,66,1186,66,1176,69,1171,71,1164,71,1161,71,1158,71,1151,72,1144,75,1143,76,1141,77,1140,79,1139,79,1130,82,1119,82,1109,82,1101,84,1098,85,1096,85,1078,87,1060,87,1059,87,1057,87,1049,91,1044,95,1042,97,1040,97,1032, 99,1023,99,1015,99,1007,98,1E3,98,997,100,996,101,995,102,993,102,992,103,990,106,985,108,983,109,981,109,964,110,948,110,940,110,933,110,913,108,901,119,899,120,898,120,883,123,867,123,839,122,810,122,795,122,780,124,779,125,777,126,772,129,767,132,766,133,765,133,736,134,706,134,705,134,703,134,702,135,701,135,695,138,690,141,688,142,686,142,665,142,643,142,636,142,629,143,616,144,606,152,605,153,604,154,600,157,598,160,595,162,589,161,582,160,578,163,576,164,574,166,572,167,571,168,567,174,559, 175,557,175,555,175,550,175,547,179,546,181,545,182,542,185,537,186,536,187,535,187,527,186,522,193,521,194,521,194,519,198,513,196,506,195,502,199,496,206,492,209,488,212,482,212,480,211,479,210,475,206,468,207,460,207,453,204,450,203,448,201,443,195,431,196,424,197,422,193,418,186,409,188,403,189,400,185,399,184,397,183,395,182,393,179,390,176,384,175,381,174,377,174,374,173,372,169,372,169,371,168,369,166,366,166,361,166,356,166,349,167,347,163,343,163,343,168,342,187,342,206,342,211,343,215,344, 224,339,230,337,232,337,233,336,259,336,285,336,315,336,344,336,352,334,359,333,362,329,366,328,368,328,369,327,381,327,393,327,409,327,425,326,429,326,433,323,444,323,456,324,472,324,487,325,492,322,496,318,502,318,510,"L",320,513,"Q",320,515,320,517,320,519,319,522,319,527,318,532,318,534,318,537,317,563,317,589,317,602,317,616,318,622,315,627,315,628,314,629,310,630,308,634,308,635,308,636,307,641,306,646,304,675,305,705,305,720,306,735,306,742,304,748,303,751,301,752,298,755,296,758,295,760,295, 762,293,779,293,797,293,801,293,805,322,805,350,805,357,805,364,807,365,807,365,808,366,810,366,812,367,815,372,814,377,813,381,813,410,813,439,813,452,813,465,815,466,815,466,817,466,821,467,825,467,827,468,828,470,830,473,830,501,830,530,830,540,830,550,831,551,831,551,832,552,835,553,839,553,841,557,841,564,840,570,840,577,840,584,841,585,841,585,842,588,845,591,849,592,850,594,850,608,850,622,851,624,851,626,852,627,854,629,857,629,858,631,858,636,859,641,858,644,858,645,856,647,855,649,853,651, 852,652,851,655,848,661,849,673,851,681,844,684,842,686,841,688,840,689,840,698,841,703,834,706,831,711,831,719,833,724,828,726,827,728,825,735,819,745,819,774,819,803,819,812,819,820,821,822,821,823,824,824,825,824,827,825,829,827,830,829,830,830,830,860,830,889,830,917,830,944,831,959,832,975,832,1004,832,1033,832,1063,832,1092,832,1121,832,1151,832,1162,832,1173,833,1174,833,1174,834,1174,835,1174,837,1175,842,1181,841,1184,840,1188,840,1215,840,1243,840,1272,840,1302,840,1331,840,1360,840,1365, 840,1370,840,1373,841,1373,845,1372,850,1377,849,1384,849,1391,849,1420,849,1449,849,1479,849,1508,849,1538,849,1567,849,1595,849,1622,847,1629,847,1632,849,1633,850,1634,851,1638,856,1643,860,1644,861,1646,861,1654,861,1658,865,1659,867,1661,867,1666,869,1669,872,1673,875,1678,875,1679,875,1681,876,1686,879,1689,884,1690,885,1691,886,1697,890,1703,894,1704,895,1704,896,1710,904,1720,904,1728,903,1735,906,1740,908,1741,914,1742,915,1743,916,1744,918,1745,919,1748,925,1748,933,1749,939,1753,943,1756, 945,1757,950,1757,951,1758,951,1763,956,1765,961,1766,962,1766,963,1767,965,1767,968,1768,969,1768,970,1770,975,1773,982,1773,983,1774,985,1776,991,1776,998,1776,999,1776,1E3,1778,1006,1783,1009,1789,1013,1789,1020,1789,1029,1793,1035,1797,1042,1801,1047,1803,1049,1804,1050,1807,1056,1807,1064,1807,1067,1808,1070,1808,1072,1809,1074,1809,1077,1811,1081,1812,1083,1812,1085,1813,1086,1813,1087,1814,1090,1815,1092,1820,1101,1826,1111,1826,1112,1827,1112,1830,1112,1830,1117,1830,1119,1831,1121,1832,1123, 1833,1125,1834,1126,1834,1127,1835,1135,1840,1141,1841,1142,1842,1142,1848,1148,1851,1158,1851,1159,1852,1159,1854,1165,1856,1171,1856,1173,1857,1174,1859,1178,1861,1183,1861,1184,1862,1184,1865,1186,1867,1187,1870,1188,1874,1188,1903,1188,1933,1188,1962,1188,1991,1188,2018,1188,2045,1187,2048,1187,2050,1186,2051,1185,2052,1184,2056,1179,2065,1176,2070,1174,2071,1171,2071,1170,2072,1169,2076,1165,2080,1163,2086,1159,2091,1155,2096,1152,2098,1149,2100,1148,2101,1147,2102,1146,2104,1146,2114,1145,2121, 1139,2125,1136,2131,1136,2132,1137,2134,1136,2163,1136,2193,1136,2222,1136,2251,1136,2276,1136,2300,1136,2305,1136,2306,1139,2306,1140,2307,1141,2310,1144,2313,1148,2314,1149,2315,1149,2345,1149,2374,1149,2403,1149,2433,1149,2462,1149,2491,1149,2504,1149,2517,1150,2511,1136,2501,1126,2500,1125,2500,1124,2499,1122,2499,1119,2498,1113,2495,1107,2494,1106,2494,1104,2493,1102,2492,1099,2492,1098,2492,1097,2490,1088,2484,1085,2484,1085,2483,1084,2479,1080,2478,1077,2478,1076,2477,1074,2475,1069,2473,1064, 2473,1062,2472,1060,2470,1054,2471,1047,2471,1039,2468,1035,2464,1030,2464,1023,2464,1023,2463,1022,2463,1019,2463,1015,2463,1011,2462,1007,2462,1005,2462,1003,2461,996,2457,992,2451,985,2448,977,2447,975,2447,973,2446,971,2446,968,2446,958,2441,950,2438,945,2436,940,2433,931,2430,924,2430,924,2430,923,2429,919,2429,916,2428,915,2427,914,2427,913,2425,911,2424,910,2423,907,2422,906,2422,905,2418,899,2414,894,2412,893,2412,891,2411,883,2411,874,2411,873,2410,871,2410,870,2410,869,2409,863,2409,857, 2409,828,2409,799,2409,769,2409,740,2409,738,2409,737,2413,733,2417,733,2419,733,2419,731,2421,723,2421,715,2421,686,2421,656,2421,627,2420,597,2418,599,2416,601,2406,607,2394,606,2391,605,2387,606,2379,608,2372,613,2371,615,2369,614,2363,614,2360,619,2360,620,2359,620,2349,620,2339,620,2337,620,2335,621,2335,621,2334,621,2330,622,2327,625,2326,626,2325,627,2323,629,2320,629,2313,631,2305,631,2296,631,2287,630,2271,629,2260,636,2258,637,2257,638,2256,640,2253,640,2252,641,2250,641,2235,641,2220,640, 2214,640,2210,642,2209,643,2208,644,2202,647,2198,652,2197,654,2196,656,2195,657,2195,657,2195,664,2189,667,2181,672,2174,675,2165,680,2157,689,2154,693,2147,694,2145,695,2143,697,2140,700,2134,704,2133,705,2132,706,2131,706,2129,707,2128,707,2126,707,2117,708,2112,713,2112,714,2111,714,2110,719,2106,720,2105,720,2104,721,2103,725,2099,725,2092,724,2085,724,2078,723,2072,716,2070,713,2065,712,2065,712,2064,712,2052,711,2040,711,2039,711,2037,711,2031,708,2022,709,2010,710,2E3,708,1998,708,1996,707, 1992,706,1990,703,1989,702,1989,701,1988,699,1988,698,1985,694,1981,692,1981,692,1980,691,1978,691,1977,690,1976,689,1974,689,1969,685,1966,683,1962,678,1961,671,1961,669,1960,668,1959,666,1956,664,1956,663,1955,662,1952,660,1950,656,1948,653,1948,651,1946,642,1946,632,1946,624,1942,621,1938,617,1937,610,1933,596,1931,580,1931,579,1931,577,1930,576,1929,575,1929,574,1928,574,1924,573,1921,573,1913,571,1910,566,1909,565,1908,564,1907,562,1905,559,1904,556,1902,552,1901,551,1900,548,1899,545,1896,543, 1892,542,1890,537,1890,535,1890,534,1888,523,1881,520,1880,520,1879,519,1878,514,1874,513,1871,512,1868,509,1867,507,1866,505,1865,504,1863,502,1861,499,1858,496,1853,489,1850,485,1850,483,1848,482,1847,480,1846,478,1845,477,1844,475,1843,473,1842,470,1840,464,1838,458,1838,457,1836,455,1832,449,1827,443,1826,442,1825,440,1823,438,1821,435,1818,430,1815,428,1808,419,1796,410,1794,408,1793,406,1791,403,1787,403,1782,404,1778,401,1773,397,1771,393,1768,388,1766,383,1765,381,1763,379,1760,374,1755,371, 1754,370,1753,369,1743,361,1736,351,1736,349,1734,347,1734,347,1733,346,1731,338,1727,334,1718,325,1708,314,1706,312,1704,311,1699,308,1694,304,1694,303,1693,303,1691,302,1689,302,1689,301,1688,301,1680,298,1678,292,1675,285,1671,280,1667,274,1663,268,1662,267,1660,266,1657,263,1656,260,1655,259,1654,257,1653,256,1652,255,1651,251,1646,251,1645,251,1644,250,1642,246,1637,243,1634,242,1632,240,"Q",1625,231,1615,222,"Z"]],label:"Shortepa",shortLabel:"SR",labelPosition:[140.5,52.1],labelAlignment:["center", "middle"]},"AF.BK.DA":{outlines:[["M",1646,861,"Q",1644,861,1643,860,1638,856,1634,851,1633,850,1632,849,1629,847,1622,847,1595,849,1567,849,1538,849,1508,849,1479,849,1449,849,1420,849,1391,849,1384,849,1377,849,1372,850,1373,845,1373,841,1370,840,1365,840,1360,840,1331,840,1302,840,1272,840,1243,840,1215,840,1188,840,1184,840,1181,841,1175,842,1174,837,1174,835,1174,834,1174,833,1173,833,1162,832,1151,832,1121,832,1092,832,1063,832,1033,832,1004,832,975,832,959,832,944,831,917,830,889,830,860,830, 830,830,829,830,827,830,825,829,824,827,824,825,823,824,822,821,820,821,812,819,803,819,774,819,745,819,735,819,728,825,726,827,724,828,719,833,711,831,706,831,703,834,698,841,689,840,688,840,686,841,684,842,681,844,673,851,661,849,655,848,652,851,651,852,649,853,647,855,645,856,644,858,641,858,636,859,631,858,629,858,629,857,627,854,626,852,624,851,622,851,608,850,594,850,592,850,591,849,588,845,585,842,585,841,584,841,577,840,570,840,564,840,557,841,553,841,553,839,552,835,551,832,551,831,550,831, 540,830,530,830,501,830,473,830,470,830,468,828,467,827,467,825,466,821,466,817,466,815,465,815,452,813,439,813,410,813,381,813,377,813,372,814,367,815,366,812,366,810,365,808,365,807,364,807,357,805,350,805,322,805,293,805,293,831,293,856,293,857,294,859,295,862,295,866,296,874,298,881,298,883,299,883,301,884,302,887,303,890,306,892,307,893,307,894,309,924,309,953,309,982,309,1012,309,1040,309,1069,310,1075,315,1077,315,1107,315,1136,315,1165,315,1195,315,1197,316,1200,318,1208,318,1216,317,1224, 317,1231,316,1239,319,1245,320,1248,325,1249,326,1249,327,1250,328,1252,329,1253,331,1254,331,1255,332,1271,332,1287,332,1316,332,1346,332,1348,332,1351,331,1352,331,1354,330,1356,330,1359,329,1372,321,1381,320,1383,318,1383,314,1385,314,1391,314,1419,314,1448,314,1457,311,1463,310,1465,308,1465,301,1469,301,1476,301,1478,301,1480,300,1498,301,1517,313,1516,325,1517,326,1517,327,1518,329,1519,330,1521,330,1523,331,1525,333,1529,337,1528,345,1528,350,1530,351,1531,352,1532,359,1544,376,1543,377,1543, 379,1544,381,1545,383,1549,384,1552,385,1553,387,1555,387,1557,388,1563,394,1563,395,1563,396,1563,399,1563,402,1563,411,1564,415,1570,417,1572,419,1573,429,1578,440,1583,442,1584,444,1586,445,1587,446,1587,448,1588,449,1588,453,1589,456,1589,472,1588,486,1591,487,1591,488,1592,491,1598,501,1598,503,1598,505,1598,507,1599,510,1599,514,1600,516,1601,522,1605,530,1603,537,1602,542,1606,544,1607,545,1608,547,1608,548,1609,551,1614,558,1614,564,1614,569,1617,570,1617,572,1617,582,1616,592,1619,597,1621, 601,1624,602,1625,604,1626,606,1626,607,1628,608,1629,611,1631,612,1632,614,1632,625,1630,630,1637,631,1639,634,1641,637,1643,641,1644,642,1644,644,1645,649,1649,653,1652,654,1653,656,1654,663,1657,667,1661,668,1662,669,1663,671,1663,673,1664,676,1664,679,1665,686,1666,691,1669,692,1670,693,1670,696,1671,698,1674,700,1675,701,1676,705,1680,708,1680,715,1682,721,1686,724,1688,727,1689,728,1689,730,1690,736,1692,740,1696,749,1705,761,1712,768,1715,775,1717,782,1719,788,1723,789,1725,790,1726,793,1734, 798,1736,799,1737,800,1738,810,1749,823,1753,825,1753,826,1754,827,1755,828,1755,830,1757,832,1758,837,1763,841,1769,842,1771,844,1772,845,1772,845,1773,847,1773,849,1774,853,1775,857,1777,859,1777,860,1779,864,1783,872,1790,873,1791,874,1792,878,1797,886,1799,887,1799,887,1799,890,1800,894,1800,901,1801,903,1806,904,1808,906,1809,907,1809,907,1810,911,1814,915,1819,918,1821,918,1825,918,1826,919,1827,925,1838,933,1845,939,1851,941,1857,942,1858,942,1859,945,1864,948,1869,954,1878,966,1881,968,1881, 969,1882,974,1885,978,1888,980,1889,981,1889,983,1890,985,1890,991,1892,998,1894,1E3,1895,1001,1896,1004,1901,1011,1904,1018,1907,1022,1914,1022,1915,1023,1916,1030,1925,1042,1936,1048,1942,1052,1948,1053,1949,1053,1951,1057,1960,1062,1966,1064,1967,1065,1968,1070,1973,1077,1976,1078,1977,1080,1977,1085,1979,1090,1978,1099,1978,1107,1977,1112,1977,1115,1979,1122,1983,1129,1984,1133,1985,1137,1985,1149,1985,1161,1984,1163,1984,1164,1983,1169,1982,1171,1980,1176,1976,1178,1972,1179,1971,1180,1969,1182, 1961,1185,1957,1187,1956,1187,1954,1188,1951,1188,1948,1189,1940,1197,1937,1200,1936,1203,1934,1208,1931,1210,1928,1211,1927,1213,1926,1214,1925,1214,1924,1218,1919,1226,1914,1227,1913,1228,1912,1229,1912,1229,1911,1232,1907,1232,1902,1232,1902,1232,1901,1235,1893,1240,1889,1244,1886,1246,1880,1247,1877,1250,1877,1251,1876,1251,1875,1256,1871,1259,1864,1261,1858,1264,1855,1268,1851,1271,1845,1274,1840,1280,1834,1283,1829,1282,1823,1280,1814,1288,1810,1289,1809,1290,1808,1295,1802,1303,1800,1304,1800, 1305,1798,1306,1798,1307,1797,1308,1796,1308,1795,1310,1790,1311,1785,1312,1783,1313,1782,1318,1778,1325,1779,1332,1780,1339,1780,1368,1780,1397,1780,1422,1780,1446,1781,1447,1781,1448,1781,1454,1785,1458,1788,1463,1791,1468,1797,1471,1801,1476,1801,1477,1801,1478,1801,1480,1802,1481,1802,1487,1804,1492,1808,1496,1811,1499,1816,1501,1818,1506,1819,1509,1820,1511,1822,1521,1831,1534,1836,1537,1837,1538,1838,1540,1840,1542,1840,1544,1842,1547,1843,1550,1844,1552,1845,1554,1846,1555,1847,1558,1847,1561, 1849,1563,1850,1565,1851,1566,1851,1567,1852,1568,1854,1569,1859,1569,1860,1570,1860,1574,1863,1578,1866,1579,1867,1580,1867,1610,1867,1639,1867,1668,1867,1698,1867,1707,1867,1716,1868,1721,1869,1726,1869,1730,1869,1733,1869,1737,1866,1740,1864,1742,1863,1743,1862,1746,1861,1747,1859,1748,1858,1750,1857,1755,1852,1753,1844,1752,1835,1757,1829,1759,1828,1760,1826,1761,1825,1762,1823,1767,1807,1780,1801,1781,1800,1782,1798,1783,1798,1783,1797,1784,1795,1784,1793,1784,1781,1784,1768,1785,1767,1785,1767, 1788,1765,1789,1761,1790,1756,1791,1753,1792,1751,1792,1750,1792,1741,1793,1731,1794,1730,1795,1728,1801,1723,1805,1717,1805,1716,1805,1714,1806,1708,1808,1703,1809,1701,1809,1699,1808,1685,1813,1674,1814,1672,1814,1669,1816,1663,1820,1654,1821,1652,1822,1650,1824,1647,1825,1642,1826,1635,1828,1630,1829,1629,1829,1627,1831,1621,1831,1614,1831,1612,1832,1610,1832,1607,1834,1605,1837,1601,1838,1594,1838,1593,1838,1592,1843,1580,1848,1570,1850,1566,1851,1562,1853,1556,1854,1550,1855,1546,1857,1543,1857, 1542,1858,1540,1858,1538,1859,1537,1859,1533,1860,1530,1860,1529,1861,1528,1867,1516,1870,1503,1871,1500,1871,1498,1870,1490,1874,1486,1876,1485,1877,1483,1883,1478,1884,1471,1884,1468,1884,1464,1884,1455,1888,1449,1889,1448,1890,1446,1890,1444,1890,1443,1891,1436,1895,1433,1897,1433,1898,1431,1899,1430,1899,1429,1901,1428,1902,1424,1903,1422,1905,1421,1906,1420,1907,1419,1908,1418,1908,1416,1910,1409,1915,1402,1915,1402,1916,1401,1923,1395,1921,1382,1921,1381,1921,1379,1920,1375,1917,1372,1914,1370, 1912,1368,1911,1366,1910,1365,1909,1364,1909,1363,1907,1358,1908,1350,1909,1343,1905,1337,1904,1335,1903,1334,1898,1330,1897,1323,1897,1320,1896,1317,1896,1309,1896,1302,1896,1299,1893,1298,1892,1298,1891,1297,1889,1295,1889,1292,1889,1291,1888,1290,1884,1289,1885,1285,1886,1280,1886,1275,1886,1272,1886,1268,1886,1267,1886,1265,1884,1255,1881,1245,1881,1244,1879,1243,1877,1240,1874,1236,1870,1230,1871,1223,1871,1217,1869,1213,1866,1208,1867,1201,1867,1194,1867,1187,1865,1186,1862,1184,1861,1184,1861, 1183,1859,1178,1857,1174,1856,1173,1856,1171,1854,1165,1852,1159,1851,1159,1851,1158,1848,1148,1842,1142,1841,1142,1840,1141,1835,1135,1834,1127,1834,1126,1833,1125,1832,1123,1831,1121,1830,1119,1830,1117,1830,1112,1827,1112,1826,1112,1826,1111,1820,1101,1815,1092,1814,1090,1813,1087,1813,1086,1812,1085,1812,1083,1811,1081,1809,1077,1809,1074,1808,1072,1808,1070,1807,1067,1807,1064,1807,1056,1804,1050,1803,1049,1801,1047,1797,1042,1793,1035,1789,1029,1789,1020,1789,1013,1783,1009,1778,1006,1776,1E3, 1776,999,1776,998,1776,991,1774,985,1773,983,1773,982,1770,975,1768,970,1768,969,1767,968,1767,965,1766,963,1766,962,1765,961,1763,956,1758,951,1757,951,1757,950,1756,945,1753,943,1749,939,1748,933,1748,925,1745,919,1744,918,1743,916,1742,915,1741,914,1740,908,1735,906,1728,903,1720,904,1710,904,1704,896,1704,895,1703,894,1697,890,1691,886,1690,885,1689,884,1686,879,1681,876,1679,875,1678,875,1673,875,1669,872,1666,869,1661,867,1659,867,1658,865,"Q",1654,861,1646,861,"Z"]],label:"Dawlatabad",shortLabel:"DA", labelPosition:[110.7,139.5],labelAlignment:["center","middle"]},"AF.BK.KA":{outlines:[["M",3333,594,"Q",3318,595,3308,589,3303,586,3295,585,3294,585,3293,584,3292,584,3290,583,3286,581,3281,582,3266,583,3251,581,3248,580,3244,580,3235,578,3231,574,3228,571,3224,569,3223,568,3221,567,3217,567,3214,566,3214,566,3213,566,3209,565,3206,565,3204,564,3202,564,3193,564,3186,562,3184,561,3183,560,3182,559,3180,557,3174,553,3169,548,3165,543,3157,544,3150,544,3144,542,3142,542,3141,541,3138,538,3134,536,3132, 536,3131,534,3128,530,3120,529,3118,528,3115,528,3114,527,3112,527,3104,528,3098,525,3097,524,3095,524,3090,524,3087,521,3075,514,3065,509,3064,509,3063,509,3062,508,3060,508,3059,507,3058,507,3057,506,3055,506,3050,503,3045,503,3042,503,3040,503,3039,502,3038,502,3036,501,3033,500,3021,500,3010,500,3008,500,3007,499,3005,498,3004,497,3E3,495,2997,492,2995,489,2993,488,2988,485,2981,485,2980,485,2978,484,2976,483,2973,483,2965,484,2959,482,2958,481,2956,481,2953,480,2950,479,2946,477,2941,476,2938, 476,2936,475,2927,475,2923,471,2918,466,2911,467,2907,468,2904,468,2896,470,2890,464,2882,455,2869,453,2866,454,2864,454,2856,454,2849,455,2838,455,2829,452,2828,452,2827,451,2816,442,2802,443,2800,443,2798,442,2797,441,2793,439,2792,439,2791,437,2787,434,2783,432,2782,432,2780,432,2775,431,2770,430,2754,429,2742,438,2736,443,2730,446,2728,447,2726,447,2717,448,2708,448,2706,448,2705,448,2702,451,2696,453,2688,455,2678,455,2670,454,2664,458,2664,459,2663,459,2657,462,2651,468,2650,469,2649,469,2636, 474,2624,477,2622,478,2621,478,2618,480,2614,480,2610,480,2607,481,2606,481,2605,482,2602,484,2598,487,2594,491,2590,496,2590,497,2589,497,2583,498,2580,503,2576,509,2569,515,2567,516,2564,518,2551,528,2542,535,2540,537,2538,538,2531,542,2525,547,2523,548,2522,549,2519,552,2513,555,2509,557,2505,558,2501,558,2498,560,2495,562,2492,564,2488,566,2481,570,2481,571,2480,571,2475,572,2470,572,2468,572,2467,572,2460,575,2455,580,2454,581,2453,581,2449,582,2446,582,2445,583,2444,583,2441,584,2438,585,2430, 587,2426,591,2423,595,2420,597,2421,627,2421,656,2421,686,2421,715,2421,723,2419,731,2419,733,2417,733,2413,733,2409,737,2409,738,2409,740,2409,769,2409,799,2409,828,2409,857,2409,863,2410,869,2410,870,2410,871,2411,873,2411,874,2411,883,2412,891,2412,893,2414,894,2418,899,2422,905,2422,906,2423,907,2424,910,2425,911,2427,913,2427,914,2428,915,2429,916,2429,919,2430,923,2430,924,2430,924,2433,931,2436,940,2438,945,2441,950,2446,958,2446,968,2446,971,2447,973,2447,975,2448,977,2451,985,2457,992,2461, 996,2462,1003,2462,1005,2462,1007,2463,1011,2463,1015,2463,1019,2463,1022,2464,1023,2464,1023,2464,1030,2468,1035,2471,1039,2471,1047,2470,1054,2472,1060,2473,1062,2473,1064,2475,1069,2477,1074,2478,1076,2478,1077,2479,1080,2483,1084,2484,1085,2484,1085,2490,1088,2492,1097,2492,1098,2492,1099,2493,1102,2494,1104,2494,1106,2495,1107,2498,1113,2499,1119,2499,1122,2500,1124,2500,1125,2501,1126,2511,1136,2517,1150,2520,1150,2523,1151,2523,1151,2524,1153,2524,1154,2525,1154,2528,1160,2537,1158,2540,1158, 2543,1158,2556,1158,2568,1158,2569,1159,2570,1159,2574,1164,2577,1165,2579,1166,2580,1166,2592,1166,2604,1167,2605,1167,2605,1168,2608,1177,2617,1181,2619,1181,2620,1181,2629,1181,2637,1181,2639,1185,2646,1187,2647,1187,2647,1187,2649,1188,2651,1188,2657,1187,2661,1193,2662,1194,2662,1194,2668,1201,2672,1205,2673,1206,2673,1208,2674,1211,2677,1214,2679,1215,2680,1216,2680,1217,2681,1218,2685,1222,2693,1226,2695,1226,2696,1227,2702,1229,2708,1233,2709,1234,2710,1235,2713,1239,2719,1244,2720,1245,2721, 1245,2722,1246,2723,1246,2730,1250,2733,1256,2733,1258,2733,1260,2732,1265,2734,1267,2735,1268,2735,1270,2734,1275,2736,1277,2738,1279,2740,1283,2741,1284,2741,1285,2748,1289,2750,1297,2751,1298,2751,1298,2754,1304,2758,1308,2762,1311,2762,1315,2763,1316,2763,1317,2764,1323,2769,1328,2772,1333,2776,1337,2777,1339,2777,1340,2776,1348,2778,1354,2779,1358,2784,1362,2789,1367,2795,1372,2796,1373,2796,1374,2797,1377,2800,1378,2801,1379,2802,1381,2807,1388,2813,1393,2818,1396,2820,1399,2821,1400,2822,1400, 2825,1401,2825,1406,2825,1408,2825,1409,2825,1413,2828,1416,2830,1418,2831,1418,2832,1419,2834,1420,2839,1421,2842,1426,2844,1428,2845,1429,2849,1434,2850,1441,2850,1442,2851,1443,2854,1448,2858,1454,2860,1458,2860,1463,2860,1470,2867,1472,2869,1473,2870,1473,2874,1475,2876,1476,2877,1477,2877,1478,2879,1480,2880,1483,2881,1488,2886,1492,2887,1493,2888,1494,2889,1496,2890,1498,2892,1500,2893,1505,2893,1507,2895,1508,2896,1509,2897,1510,2903,1514,2908,1519,2909,1520,2911,1520,2940,1520,2970,1520,2981, 1520,2991,1518,2992,1518,2994,1517,2999,1512,3004,1509,3005,1508,3007,1508,3036,1508,3065,1508,3078,1508,3090,1507,3091,1507,3092,1505,3093,1504,3094,1503,3097,1501,3101,1497,3102,1496,3104,1495,3110,1493,3117,1490,3119,1489,3121,1488,3122,1487,3122,1486,3123,1482,3129,1479,3131,1479,3132,1478,3136,1478,3139,1477,3145,1476,3149,1475,3154,1474,3157,1472,3164,1469,3167,1465,3168,1464,3169,1462,3170,1461,3171,1460,3173,1459,3174,1458,3181,1456,3189,1455,3191,1455,3192,1454,3198,1449,3203,1445,3209,1439, 3216,1438,3221,1438,3226,1437,3228,1437,3230,1436,3232,1436,3233,1436,3241,1435,3244,1428,3245,1427,3246,1426,3252,1420,3262,1422,3267,1422,3272,1422,3287,1422,3302,1422,3304,1422,3305,1421,3314,1421,3318,1417,3320,1416,3321,1414,3324,1410,3329,1407,3330,1407,3330,1406,3359,1406,3387,1406,3417,1406,3446,1406,3454,1406,3461,1406,3463,1405,3466,1405,3479,1404,3491,1403,3521,1403,3550,1403,3579,1403,3609,1403,3627,1403,3645,1402,3647,1402,3649,1400,3653,1397,3658,1393,3661,1390,3666,1391,3674,1392,3679, 1386,3682,1383,3686,1381,3688,1381,3689,1380,3698,1379,3702,1374,3703,1373,3704,1373,3707,1372,3711,1372,3722,1373,3728,1367,3735,1360,3746,1360,3748,1361,3750,1359,3755,1355,3765,1355,3768,1355,3770,1354,3774,1351,3776,1349,3778,1347,3780,1346,3785,1342,3792,1336,3793,1335,3794,1335,3798,1333,3801,1332,3799,1330,3797,1328,3794,1326,3791,1325,3790,1325,3789,1323,3784,1317,3778,1310,3773,1306,3767,1301,3764,1298,3758,1294,3752,1291,3747,1287,3741,1281,3733,1278,3732,1278,3731,1277,3728,1273,3723,1271, 3717,1269,3712,1266,3702,1261,3694,1248,3692,1244,3689,1241,3685,1236,3683,1230,3681,1224,3677,1220,3673,1216,3669,1213,3665,1210,3662,1208,3658,1205,3656,1199,3653,1193,3649,1189,3645,1185,3642,1181,3641,1180,3640,1180,3638,1179,3636,1177,3634,1176,3631,1175,3629,1174,3627,1172,3626,1171,3625,1170,3619,1166,3613,1161,3612,1160,3611,1159,3607,1153,3600,1151,3594,1149,3590,1146,3586,1144,3582,1142,3576,1139,3572,1134,3570,1132,3568,1131,3562,1127,3560,1122,3560,1121,3559,1119,3555,1112,3555,1104,3551, 1103,3549,1099,3547,1096,3543,1092,3539,1087,3531,1082,3530,1081,3528,1080,3524,1075,3518,1073,3516,1073,3515,1073,3511,1072,3509,1070,3505,1065,3501,1062,3500,1061,3500,1060,3499,1059,3498,1057,3498,1056,3497,1055,3493,1051,3486,1045,3480,1039,3477,1033,3477,1032,3475,1030,3470,1025,3466,1018,3465,1015,3461,1014,3448,1009,3445,996,3444,995,3444,993,3440,985,3436,980,3435,979,3434,978,3432,975,3430,974,3426,970,3423,966,3422,965,3420,963,3420,962,3420,961,3419,939,3419,917,3419,914,3419,911,3421, 903,3426,897,3427,897,3427,896,3429,895,3429,894,3431,875,3431,855,3431,826,3430,797,3430,789,3437,787,3442,786,3442,782,3442,754,3442,726,3442,719,3443,711,3443,705,3441,703,3439,701,3435,698,3432,695,3428,691,3426,688,3427,684,3427,681,3427,678,3426,674,3424,670,3424,669,3423,668,3421,663,3421,656,3422,647,3419,641,3417,637,3412,635,3411,635,3409,634,3399,632,3395,627,3395,626,3394,626,3389,625,3385,622,3384,621,3381,619,3376,616,3372,612,3371,611,3370,611,3366,609,3364,607,3363,606,3362,605,3358, 600,3353,598,3352,598,3350,597,3346,596,3342,595,"Q",3338,593,3333,594,"Z"]],label:"Kaldar",shortLabel:"KA",labelPosition:[300.5,97.5],labelAlignment:["center","middle"]},"AF.BK.NS":{outlines:[["M",2708,1233,"Q",2702,1229,2696,1227,2695,1226,2693,1226,2685,1222,2681,1218,2680,1217,2680,1216,2679,1215,2677,1214,2674,1211,2673,1208,2673,1206,2672,1205,2668,1201,2662,1194,2662,1194,2661,1193,2657,1187,2651,1188,2649,1188,2647,1187,2647,1187,2646,1187,2639,1185,2637,1181,2629,1181,2620,1181,2619,1181, 2617,1181,2608,1177,2605,1168,2605,1167,2604,1167,2592,1166,2580,1166,2579,1166,2577,1165,2574,1164,2570,1159,2569,1159,2568,1158,2556,1158,2543,1158,2540,1158,2537,1158,2528,1160,2525,1154,2524,1154,2524,1153,2523,1151,2523,1151,2520,1150,2517,1150,2504,1149,2491,1149,2462,1149,2433,1149,2403,1149,2374,1149,2345,1149,2315,1149,2314,1149,2313,1148,2310,1144,2307,1141,2306,1140,2306,1139,2305,1136,2300,1136,2276,1136,2251,1136,2222,1136,2193,1136,2163,1136,2134,1136,2132,1137,2131,1136,2125,1136,2121, 1139,2114,1145,2104,1146,2102,1146,2101,1147,2100,1148,2098,1149,2096,1152,2091,1155,2086,1159,2080,1163,2076,1165,2072,1169,2071,1170,2071,1171,2070,1174,2065,1176,2056,1179,2052,1184,2051,1185,2050,1186,2048,1187,2045,1187,2018,1188,1991,1188,1962,1188,1933,1188,1903,1188,1874,1188,1870,1188,1867,1187,1867,1194,1867,1201,1866,1208,1869,1213,1871,1217,1871,1223,1870,1230,1874,1236,1877,1240,1879,1243,1881,1244,1881,1245,1884,1255,1886,1265,1886,1267,1886,1268,1886,1272,1886,1275,1886,1280,1885,1285, 1884,1289,1888,1290,1889,1291,1889,1292,1889,1295,1891,1297,1892,1298,1893,1298,1896,1299,1896,1302,1896,1309,1896,1317,1897,1320,1897,1323,1898,1330,1903,1334,1904,1335,1905,1337,1909,1343,1908,1350,1907,1358,1909,1363,1909,1364,1910,1365,1911,1366,1912,1368,1914,1370,1917,1372,1920,1375,1921,1379,1921,1381,1921,1382,1923,1395,1916,1401,1915,1402,1915,1402,1910,1409,1908,1416,1908,1418,1907,1419,1906,1420,1905,1421,1903,1422,1902,1424,1901,1428,1899,1429,1899,1430,1898,1431,1897,1433,1895,1433,1891, 1436,1890,1443,1890,1444,1890,1446,1889,1448,1888,1449,1884,1455,1884,1464,1884,1468,1884,1471,1883,1478,1877,1483,1876,1485,1874,1486,1870,1490,1871,1498,1871,1500,1870,1503,1867,1516,1861,1528,1860,1529,1860,1530,1859,1533,1859,1537,1858,1538,1858,1540,1857,1542,1857,1543,1855,1546,1854,1550,1853,1556,1851,1562,1850,1566,1848,1570,1843,1580,1838,1592,1838,1593,1838,1594,1837,1601,1834,1605,1832,1607,1832,1610,1831,1612,1831,1614,1831,1621,1829,1627,1829,1629,1828,1630,1826,1635,1825,1642,1824,1647, 1822,1650,1821,1652,1820,1654,1816,1663,1814,1669,1814,1672,1813,1674,1808,1685,1809,1699,1809,1701,1808,1703,1806,1708,1805,1714,1805,1716,1805,1717,1801,1723,1795,1728,1794,1730,1793,1731,1792,1741,1792,1750,1792,1751,1791,1753,1790,1756,1789,1761,1788,1765,1785,1767,1785,1767,1784,1768,1784,1781,1784,1793,1784,1795,1783,1797,1783,1798,1782,1798,1781,1800,1780,1801,1767,1807,1762,1823,1761,1825,1760,1826,1759,1828,1757,1829,1752,1835,1753,1844,1755,1852,1750,1857,1748,1858,1747,1859,1746,1861,1743, 1862,1742,1863,1740,1864,1740,1872,1740,1881,1741,1891,1737,1899,1735,1903,1733,1904,1730,1905,1729,1908,1729,1909,1729,1911,1728,1935,1728,1960,1728,1961,1727,1962,1724,1968,1723,1973,1723,1980,1723,1986,1723,1994,1724,2001,1725,2008,1722,2010,1721,2011,1719,2012,1713,2018,1710,2023,1709,2025,1709,2026,1709,2031,1706,2035,1706,2037,1704,2038,1704,2039,1703,2040,1702,2042,1701,2042,1696,2046,1694,2052,1694,2053,1694,2055,1693,2060,1690,2062,1687,2065,1685,2067,1684,2068,1684,2068,1684,2072,1682,2076, 1681,2077,1681,2078,1677,2086,1673,2094,1670,2098,1671,2105,1671,2107,1670,2108,1665,2112,1661,2119,1660,2122,1659,2125,1658,2135,1658,2146,1658,2174,1658,2203,1658,2232,1658,2261,1658,2263,1657,2264,1657,2265,1656,2266,1655,2277,1658,2286,1658,2287,1659,2288,1665,2293,1669,2298,1670,2300,1670,2302,1674,2317,1683,2328,1684,2329,1684,2330,1685,2342,1692,2347,1696,2350,1697,2354,1697,2355,1698,2355,1700,2359,1700,2364,1700,2366,1701,2367,1702,2368,1703,2369,1708,2372,1706,2379,1705,2386,1711,2391,1712, 2391,1713,2392,1716,2395,1717,2399,1718,2401,1718,2402,1718,2417,1718,2431,1719,2432,1719,2432,1719,2437,1720,2440,1721,2443,1722,2445,1723,2446,1723,2448,1722,2454,1724,2458,1724,2459,1724,2461,1724,2473,1725,2484,1725,2485,1726,2486,1726,2489,1726,2491,1726,2502,1738,2500,1743,2500,1748,2500,1777,2500,1807,2499,1813,2499,1815,2503,1816,2504,1817,2505,1819,2509,1828,2508,1830,2508,1832,2507,1832,2502,1837,2498,1839,2497,1839,2496,1840,2495,1840,2493,1840,2485,1840,2476,1840,2472,1845,2472,1846,2472, 1847,2471,1852,2466,1858,2461,1859,2460,1860,2459,1863,2456,1863,2449,1863,2449,1864,2448,1866,2445,1866,2439,1865,2433,1866,2426,1866,2423,1867,2421,1867,2414,1867,2407,1867,2395,1869,2384,1869,2383,1870,2382,1881,2377,1894,2378,1898,2379,1902,2379,1903,2380,1904,2380,1905,2383,1907,2386,1907,2387,1907,2389,1907,2398,1917,2396,1926,2395,1931,2400,1938,2407,1948,2406,1955,2405,1961,2407,1964,2408,1965,2411,1965,2412,1966,2412,1971,2415,1975,2420,1977,2422,1979,2422,1990,2424,1993,2436,1994,2438,1996, 2440,1997,2441,1998,2442,2001,2445,2003,2446,2004,2447,2005,2448,2007,2451,2008,2453,2008,2454,2008,2456,2010,2464,2014,2467,2016,2468,2017,2469,2017,2470,2018,2471,2020,2471,2021,2472,2028,2474,2027,2483,2027,2485,2028,2486,2032,2492,2037,2495,2041,2499,2040,2506,2039,2512,2041,2515,2046,2522,2049,2527,2050,2528,2050,2530,2051,2532,2051,2533,2052,2540,2054,2547,2054,2548,2055,2548,2059,2552,2061,2558,2062,2560,2062,2562,2061,2579,2068,2592,2068,2594,2068,2595,2068,2601,2070,2606,2070,2607,2070,2609, 2069,2617,2071,2622,2072,2625,2075,2626,2076,2627,2077,2629,2080,2633,2081,2640,2082,2649,2075,2652,2074,2653,2074,2654,2072,2657,2069,2660,2068,2661,2067,2662,2067,2663,2066,2664,2065,2666,2065,2667,2064,2669,2062,2671,2061,2672,2061,2672,2059,2675,2056,2678,2055,2679,2055,2681,2055,2688,2050,2692,2049,2693,2048,2694,2043,2701,2033,2700,2029,2699,2025,2699,1996,2699,1968,2699,1954,2699,1941,2699,1939,2699,1938,2696,1934,2685,1919,2687,1913,2687,1906,2687,1902,2687,1899,2686,1897,2686,1896,2684,1889, 2678,1883,2675,1882,2674,1881,2674,1875,2674,1874,2669,1874,2670,1874,2671,1874,2673,1874,2674,1871,2679,1866,2683,1865,2684,1865,2684,1864,2688,1864,2693,1863,2697,1861,2701,1857,2707,1852,2712,1848,2716,1847,2718,1847,2719,1846,2720,1843,2722,1843,2726,1843,2735,1839,2738,1838,2739,1838,2740,1837,2742,1837,2743,1836,2745,1836,2748,1836,2755,1835,2762,1834,2769,1830,2773,1830,2774,1829,2775,1827,2776,1826,2777,1821,2784,1822,2792,1822,2808,1832,2819,1833,2820,1833,2820,1834,2822,1835,2823,1840,2829, 1846,2835,1848,2837,1851,2840,1856,2845,1857,2852,1857,2854,1858,2854,1861,2857,1864,2861,1867,2865,1869,2866,1871,2868,1871,2869,1871,2875,1876,2877,1878,2878,1879,2878,1887,2879,1894,2879,1909,2879,1924,2879,1940,2878,1955,2880,1963,2882,1965,2889,1966,2892,1967,2894,1967,2895,1967,2896,1968,2899,1970,2901,1977,2906,1983,2913,1984,2914,1985,2915,1987,2917,1988,2921,1988,2928,1993,2933,1998,2939,2004,2944,2008,2949,2012,2953,2017,2957,2015,2963,2014,2971,2020,2973,2022,2974,2022,2975,2023,2977,2024, 2978,2026,2980,2025,2986,2045,2986,2063,2988,2064,2988,2066,2990,2069,2994,2069,3001,2069,3002,2070,3003,2075,3006,2082,3005,2089,3005,2097,3005,2106,3005,2115,3004,2119,3004,2120,3002,2121,3E3,2121,2996,2120,2991,2120,2985,2119,2980,2115,2976,2110,2971,2106,2966,2105,2965,2105,2963,2103,2957,2104,2949,2104,2948,2104,2946,2105,2945,2105,2944,2105,2938,2105,2931,2105,2930,2104,2929,2100,2924,2097,2921,2096,2919,2094,2916,2092,2914,2091,2909,2090,2908,2090,2906,2091,2893,2088,2882,2088,2882,2087,2881, 2087,2879,2087,2877,2085,2861,2093,2851,2094,2850,2095,2849,2107,2846,2109,2835,2110,2832,2114,2829,2115,2828,2115,2827,2118,2827,2120,2827,2136,2828,2149,2823,2154,2822,2160,2816,2162,2813,2167,2813,2182,2814,2198,2812,2200,2812,2202,2811,2203,2810,2204,2810,2212,2810,2219,2810,2224,2810,2227,2805,2230,2801,2235,2800,2236,2799,2236,2798,2238,2795,2243,2794,2245,2794,2248,2793,2253,2791,2257,2788,2258,2787,2260,2787,2264,2787,2267,2783,2267,2783,2268,2782,2275,2780,2280,2775,2285,2771,2286,2767,2287, 2765,2287,2763,2287,2734,2287,2704,2287,2699,2287,2693,2288,2692,2288,2692,2291,2691,2295,2691,2296,2690,2297,2690,2299,2689,2300,2689,2305,2689,2307,2684,2308,2684,2308,2683,2312,2683,2313,2680,2314,2679,2315,2678,2322,2674,2327,2669,2328,2669,2329,2668,2330,2666,2332,2663,2334,2662,2335,2661,2340,2660,2345,2658,2346,2658,2347,2656,2349,2655,2350,2654,2353,2652,2355,2650,2356,2649,2357,2649,2358,2648,2359,2648,2364,2646,2369,2644,2370,2643,2370,2642,2374,2637,2377,2635,2378,2634,2379,2632,2383,2627, 2386,2624,2390,2620,2390,2612,2391,2611,2392,2609,2396,2603,2398,2597,2400,2590,2405,2585,2407,2584,2407,2582,2408,2576,2413,2572,2414,2572,2414,2570,2414,2564,2418,2559,2421,2554,2426,2551,2427,2548,2430,2547,2433,2544,2438,2543,2439,2543,2440,2541,2444,2538,2448,2536,2452,2534,2459,2535,2465,2537,2470,2534,2471,2533,2472,2533,2475,2532,2476,2530,2480,2524,2487,2520,2492,2518,2498,2518,2511,2518,2523,2518,2524,2518,2524,2517,2526,2513,2532,2514,2539,2515,2547,2515,2567,2515,2587,2514,2589,2514,2590, 2514,2596,2512,2602,2507,2608,2502,2617,2503,2624,2503,2630,2503,2660,2503,2689,2503,2691,2503,2693,2503,2694,2502,2696,2501,2700,2498,2706,2495,2708,2495,2709,2495,2717,2494,2720,2489,2721,2487,2723,2486,2727,2482,2732,2480,2733,2480,2735,2480,2741,2480,2745,2476,2749,2472,2755,2468,2756,2467,2756,2466,2758,2462,2765,2462,2767,2462,2768,2462,2771,2461,2774,2460,2777,2460,2779,2458,2782,2456,2787,2455,2791,2455,2795,2453,2797,2453,2798,2452,2799,2451,2800,2450,2802,2449,2803,2447,2804,2446,2805,2443, 2805,2441,2805,2439,2805,2410,2805,2381,2805,2351,2805,2322,2805,2293,2805,2265,2805,2241,2806,2218,2806,2216,2807,2215,2809,2211,2813,2207,2818,2203,2817,2196,2817,2190,2817,2183,2817,2155,2817,2127,2818,2127,2818,2126,2827,2120,2826,2107,2825,2101,2825,2095,2825,2092,2825,2088,2826,2079,2834,2075,2835,2074,2835,2073,2838,2070,2842,2067,2845,2064,2845,2060,2845,2058,2845,2057,2848,2052,2851,2045,2852,2041,2853,2038,2854,2036,2856,2033,2857,2031,2857,2028,2857,2021,2864,2018,2865,2017,2865,2016,2868, 2012,2871,2006,2871,2006,2872,2005,2874,1999,2876,1993,2876,1992,2877,1991,2878,1988,2879,1984,2879,1981,2880,1979,2881,1977,2881,1974,2882,1971,2883,1969,2884,1967,2884,1964,2885,1963,2886,1961,2894,1953,2893,1936,2892,1928,2892,1921,2892,1905,2892,1889,2893,1883,2897,1881,2899,1881,2900,1879,2902,1877,2903,1876,2904,1875,2905,1874,2907,1874,2907,1872,2911,1866,2910,1859,2909,1852,2909,1845,2910,1831,2910,1817,2911,1787,2911,1758,2911,1729,2911,1701,2911,1672,2911,1644,2911,1615,2911,1587,2911,1558, 2911,1528,2911,1524,2911,1520,2909,1520,2908,1519,2903,1514,2897,1510,2896,1509,2895,1508,2893,1507,2893,1505,2892,1500,2890,1498,2889,1496,2888,1494,2887,1493,2886,1492,2881,1488,2880,1483,2879,1480,2877,1478,2877,1477,2876,1476,2874,1475,2870,1473,2869,1473,2867,1472,2860,1470,2860,1463,2860,1458,2858,1454,2854,1448,2851,1443,2850,1442,2850,1441,2849,1434,2845,1429,2844,1428,2842,1426,2839,1421,2834,1420,2832,1419,2831,1418,2830,1418,2828,1416,2825,1413,2825,1409,2825,1408,2825,1406,2825,1401,2822, 1400,2821,1400,2820,1399,2818,1396,2813,1393,2807,1388,2802,1381,2801,1379,2800,1378,2797,1377,2796,1374,2796,1373,2795,1372,2789,1367,2784,1362,2779,1358,2778,1354,2776,1348,2777,1340,2777,1339,2776,1337,2772,1333,2769,1328,2764,1323,2763,1317,2763,1316,2762,1315,2762,1311,2758,1308,2754,1304,2751,1298,2751,1298,2750,1297,2748,1289,2741,1285,2741,1284,2740,1283,2738,1279,2736,1277,2734,1275,2735,1270,2735,1268,2734,1267,2732,1265,2733,1260,2733,1258,2733,1256,2730,1250,2723,1246,2722,1246,2721,1245, 2720,1245,2719,1244,2713,1239,2710,1235,"Q",2709,1234,2708,1233,"Z"]],label:"Nahri Shahi",shortLabel:"NS",labelPosition:[228.3,207],labelAlignment:["center","middle"]},"AF.BK.MS":{outlines:[["M",1965,2411,"Q",1964,2408,1961,2407,1955,2405,1948,2406,1938,2407,1931,2400,1926,2395,1917,2396,1907,2398,1907,2389,1907,2387,1907,2386,1905,2383,1904,2380,1903,2380,1902,2379,1898,2379,1894,2378,1881,2377,1870,2382,1869,2383,1869,2384,1867,2395,1867,2407,1867,2414,1867,2421,1866,2423,1866,2426,1865,2433,1866, 2439,1866,2445,1864,2448,1863,2449,1863,2449,1863,2456,1860,2459,1859,2460,1858,2461,1852,2466,1847,2471,1846,2472,1845,2472,1840,2472,1840,2476,1840,2485,1840,2493,1840,2495,1839,2496,1839,2497,1837,2498,1832,2502,1832,2507,1831,2509,1832,2511,1832,2513,1832,2514,1833,2516,1834,2518,1835,2521,1835,2523,1835,2529,1839,2530,1840,2531,1840,2531,1843,2540,1843,2549,1842,2551,1842,2553,1842,2557,1844,2560,1845,2561,1845,2562,1846,2567,1846,2572,1846,2586,1854,2594,1856,2596,1856,2597,1857,2606,1857,2614, 1857,2616,1858,2617,1861,2621,1864,2626,1866,2628,1868,2629,1871,2631,1870,2636,1870,2639,1869,2643,1868,2651,1872,2658,1873,2659,1874,2661,1874,2665,1874,2669,1875,2674,1881,2674,1882,2674,1883,2675,1889,2678,1896,2684,1897,2686,1899,2686,1902,2687,1906,2687,1913,2687,1919,2687,1934,2685,1938,2696,1939,2699,1941,2699,1954,2699,1968,2699,1996,2699,2025,2699,2029,2699,2033,2700,2043,2701,2048,2694,2049,2693,2050,2692,2055,2688,2055,2681,2055,2679,2056,2678,2059,2675,2061,2672,2061,2672,2062,2671,2064, 2669,2065,2667,2065,2666,2066,2664,2067,2663,2067,2662,2068,2661,2069,2660,2072,2657,2074,2654,2074,2653,2075,2652,2082,2649,2081,2640,2080,2633,2077,2629,2076,2627,2075,2626,2072,2625,2071,2622,2069,2617,2070,2609,2070,2607,2070,2606,2068,2601,2068,2595,2068,2594,2068,2592,2061,2579,2062,2562,2062,2560,2061,2558,2059,2552,2055,2548,2054,2548,2054,2547,2052,2540,2051,2533,2051,2532,2050,2530,2050,2528,2049,2527,2046,2522,2041,2515,2039,2512,2040,2506,2041,2499,2037,2495,2032,2492,2028,2486,2027,2485, 2027,2483,2028,2474,2021,2472,2020,2471,2018,2471,2017,2470,2017,2469,2016,2468,2014,2467,2010,2464,2008,2456,2008,2454,2008,2453,2007,2451,2005,2448,2004,2447,2003,2446,2001,2445,1998,2442,1997,2441,1996,2440,1994,2438,1993,2436,1990,2424,1979,2422,1977,2422,1975,2420,1971,2415,1966,2412,"Q",1965,2412,1965,2411,"Z"]],label:"Mazari Sharif",shortLabel:"MS",labelPosition:[195.6,253.9],labelAlignment:["center","middle"]},"AF.BK.KH":{outlines:[["M",3820,1348,"Q",3819,1347,3818,1346,3811,1339,3806,1334, 3806,1333,3805,1333,3804,1333,3803,1332,3802,1332,3801,1332,3798,1333,3794,1335,3793,1335,3792,1336,3785,1342,3780,1346,3778,1347,3776,1349,3774,1351,3770,1354,3768,1355,3765,1355,3755,1355,3750,1359,3748,1361,3746,1360,3735,1360,3728,1367,3722,1373,3711,1372,3707,1372,3704,1373,3703,1373,3702,1374,3698,1379,3689,1380,3688,1381,3686,1381,3682,1383,3679,1386,3674,1392,3666,1391,3661,1390,3658,1393,3653,1397,3649,1400,3647,1402,3645,1402,3627,1403,3609,1403,3579,1403,3550,1403,3521,1403,3491,1403,3479, 1404,3466,1405,3463,1405,3461,1406,3454,1406,3446,1406,3417,1406,3387,1406,3359,1406,3330,1406,3330,1407,3329,1407,3324,1410,3321,1414,3320,1416,3318,1417,3314,1421,3305,1421,3304,1422,3302,1422,3287,1422,3272,1422,3267,1422,3262,1422,3252,1420,3246,1426,3245,1427,3244,1428,3241,1435,3233,1436,3232,1436,3230,1436,3228,1437,3226,1437,3221,1438,3216,1438,3209,1439,3203,1445,3198,1449,3192,1454,3191,1455,3189,1455,3181,1456,3174,1458,3173,1459,3171,1460,3170,1461,3169,1462,3168,1464,3167,1465,3164,1469, 3157,1472,3154,1474,3149,1475,3145,1476,3139,1477,3136,1478,3132,1478,3131,1479,3129,1479,3123,1482,3122,1486,3122,1487,3121,1488,3119,1489,3117,1490,3110,1493,3104,1495,3102,1496,3101,1497,3097,1501,3094,1503,3093,1504,3092,1505,3091,1507,3090,1507,3078,1508,3065,1508,3036,1508,3007,1508,3005,1508,3004,1509,2999,1512,2994,1517,2992,1518,2991,1518,2981,1520,2970,1520,2940,1520,2911,1520,2911,1524,2911,1528,2911,1558,2911,1587,2911,1615,2911,1644,2911,1672,2911,1701,2911,1729,2911,1758,2911,1787,2910, 1817,2910,1831,2909,1845,2909,1852,2910,1859,2911,1866,2907,1872,2907,1874,2905,1874,2904,1875,2903,1876,2902,1877,2900,1879,2899,1881,2897,1881,2893,1883,2892,1889,2892,1905,2892,1921,2892,1928,2893,1936,2894,1953,2886,1961,2885,1963,2884,1964,2884,1967,2883,1969,2882,1971,2881,1974,2881,1977,2880,1979,2879,1981,2879,1984,2878,1988,2877,1991,2876,1992,2876,1993,2874,1999,2872,2005,2871,2006,2871,2006,2868,2012,2865,2016,2865,2017,2864,2018,2857,2021,2857,2028,2857,2031,2856,2033,2854,2036,2853,2038, 2852,2041,2851,2045,2848,2052,2845,2057,2845,2058,2845,2060,2845,2064,2842,2067,2838,2070,2835,2073,2835,2074,2834,2075,2826,2079,2825,2088,2825,2092,2825,2095,2825,2101,2826,2107,2827,2120,2818,2126,2818,2127,2817,2127,2817,2155,2817,2183,2817,2190,2817,2196,2818,2203,2813,2207,2809,2211,2807,2215,2806,2216,2806,2218,2805,2241,2805,2265,2805,2293,2805,2322,2805,2351,2805,2381,2805,2410,2805,2439,2805,2441,2805,2443,2808,2448,2811,2452,2817,2458,2823,2463,2829,2468,2834,2471,2837,2472,2838,2476,2840, 2482,2841,2487,2842,2490,2843,2492,2851,2500,2854,2508,2855,2512,2859,2515,2860,2516,2860,2516,2861,2518,2862,2519,2864,2522,2866,2523,2868,2526,2867,2531,2867,2540,2870,2546,2871,2548,2871,2550,2872,2564,2872,2578,2872,2583,2873,2587,2873,2589,2874,2590,2874,2594,2875,2599,2875,2605,2879,2610,2885,2617,2891,2621,2892,2621,2892,2622,2892,2631,2892,2639,2892,2668,2892,2698,2892,2727,2892,2756,2892,2758,2891,2759,2890,2762,2890,2768,2891,2770,2890,2771,2888,2776,2886,2780,2886,2782,2885,2782,2882,2785, 2880,2790,2879,2792,2879,2793,2876,2808,2877,2823,2877,2838,2877,2852,2877,2853,2876,2853,2869,2856,2869,2864,2869,2865,2869,2867,2866,2873,2867,2880,2867,2881,2867,2881,2867,2882,2866,2883,2866,2884,2865,2885,2865,2897,2875,2903,2876,2904,2877,2905,2882,2911,2881,2919,2881,2921,2882,2923,2882,2927,2883,2931,2883,2933,2883,2934,2883,2939,2885,2941,2885,2943,2885,2944,2885,2951,2886,2958,2886,2960,2887,2962,2887,2963,2888,2965,2888,2966,2889,2966,2891,2971,2891,2976,2890,2983,2890,2990,2889,2994,2892, 2997,2893,2998,2894,3E3,2895,3005,2898,3012,2901,3019,2901,3027,2900,3031,2902,3034,2902,3035,2902,3037,2902,3052,2903,3067,2904,3074,2904,3080,2904,3097,2905,3114,2905,3121,2906,3129,2906,3130,2907,3131,2907,3133,2908,3134,2908,3137,2910,3139,2912,3141,2912,3142,2916,3148,2916,3156,2916,3172,2916,3188,2917,3190,2917,3191,2919,3202,2925,3210,2926,3211,2926,3213,2926,3221,2929,3228,2930,3231,2931,3235,2932,3237,2934,3239,2934,3240,2935,3241,2937,3249,2937,3257,2937,3258,2938,3259,2942,3264,2942,3270, 2943,3274,2945,3276,2946,3277,2946,3278,2945,3287,2952,3294,2953,3295,2954,3297,2959,3303,2960,3310,2961,3317,2961,3324,2961,3331,2962,3337,2962,3339,2963,3340,2971,3349,2972,3361,2973,3364,2975,3368,2980,3373,2979,3381,2978,3388,2981,3394,2982,3396,2983,3397,2987,3403,2991,3411,2991,3413,2991,3414,2992,3429,2992,3444,2993,3464,2991,3485,2991,3487,2989,3488,2975,3499,2977,3517,2978,3521,2978,3525,2978,3554,2978,3584,2978,3587,2977,3590,2976,3592,2975,3594,2972,3598,2970,3603,2969,3604,2969,3605,2969, 3610,2966,3613,2965,3614,2963,3617,2957,3624,2952,3629,2949,3639,2945,3649,2944,3651,2944,3652,2941,3665,2933,3673,2932,3674,2932,3676,2931,3680,2931,3684,2930,3686,2930,3688,2929,3691,2927,3694,2927,3695,2926,3696,2926,3699,2926,3701,2926,3716,2924,3730,2924,3731,2924,3732,2923,3733,2923,3735,2924,3742,2921,3747,2921,3748,2920,3750,2918,3764,2920,3780,2920,3784,2918,3787,2918,3789,2918,3790,2918,3820,2918,3849,2918,3861,2917,3874,2917,3875,2916,3876,2915,3879,2913,3882,2912,3883,2911,3884,2909,3890, 2907,3897,2907,3899,2906,3901,2906,3903,2906,3906,2906,3921,2906,3936,2907,3937,2908,3938,2910,3941,2913,3945,2916,3947,2919,3947,2923,3947,2926,3951,2927,3952,2928,3953,2936,3960,2946,3968,2952,3973,2957,3977,2962,3981,2969,3985,2970,3986,2971,3986,2974,3986,2975,3990,2975,3991,2976,3991,2978,3992,2978,3993,2980,3997,2984,3998,2992,4001,2996,4004,3003,4009,3008,4013,3009,4015,3010,4016,3011,4016,3013,4017,3014,4017,3014,4018,3015,4021,3018,4022,3026,4024,3036,4031,3038,4033,3039,4034,3051,4044,3063, 4050,3065,4051,3066,4052,3068,4054,3069,4054,3072,4057,3077,4059,3083,4062,3088,4065,3089,4066,3090,4066,3093,4068,3094,4069,3098,4073,3100,4074,3102,4075,3103,4075,3107,4078,3110,4078,3112,4079,3113,4079,3115,4080,3119,4081,3120,4081,3121,4082,3123,4084,3127,4085,3133,4087,3137,4092,3141,4097,3149,4098,3150,4098,3150,4098,3158,4099,3164,4102,3166,4103,3167,4103,3169,4104,3170,4105,3175,4109,3181,4112,3189,4117,3196,4122,3200,4126,3206,4127,3208,4128,3209,4128,3211,4129,3213,4129,3214,4130,3214,4130, 3217,4132,3219,4132,3221,4133,3222,4134,3224,4136,3225,4136,3226,4137,3227,4138,3229,4139,3230,4140,3231,4142,3232,4143,3238,4149,3246,4151,3252,4153,3259,4152,3267,4151,3271,4156,3276,4162,3281,4167,3283,4169,3285,4170,3290,4171,3295,4171,3324,4171,3353,4170,3357,4170,3360,4170,3386,4169,3412,4169,3442,4169,3471,4170,3479,4170,3483,4167,3484,4167,3484,4166,3486,4160,3489,4157,3490,4157,3491,4156,3495,4150,3499,4147,3505,4144,3508,4139,3510,4137,3510,4135,3511,4133,3512,4131,3513,4129,3516,4127,3517, 4126,3518,4125,3521,4123,3523,4120,3524,4117,3528,4112,3529,4111,3529,4110,3531,4108,3532,4106,3533,4104,3534,4102,3538,4097,3540,4092,3542,4087,3548,4082,3554,4076,3561,4068,3562,4067,3564,4066,3566,4064,3567,4062,3572,4055,3574,4048,3575,4047,3576,4045,3580,4040,3582,4037,3583,4036,3583,4035,3585,4034,3586,4033,3595,4020,3603,4011,3605,4010,3606,4008,3607,4007,3608,4005,3612,4E3,3615,3996,3620,3992,3622,3988,3624,3982,3627,3975,3629,3971,3632,3967,3634,3965,3635,3962,3635,3961,3636,3960,3639,3957, 3639,3953,3640,3951,3639,3949,3639,3942,3642,3936,3646,3927,3649,3917,3650,3914,3650,3911,3650,3891,3651,3871,3651,3862,3657,3855,3659,3854,3661,3851,3663,3847,3664,3842,3664,3840,3664,3838,"L",3664,3837,"Q",3664,3832,3664,3827,3664,3825,3665,3824,3666,3822,3667,3820,3668,3817,3672,3813,3675,3810,3675,3805,3674,3789,3678,3776,3679,3771,3683,3769,3684,3769,3684,3768,3685,3766,3685,3765,3686,3741,3686,3718,3686,3689,3686,3661,3686,3657,3685,3654,3684,3651,3684,3647,3683,3624,3683,3600,3683,3571,3683, 3542,3683,3513,3683,3484,3684,3483,3683,3481,3683,3476,3685,3474,3687,3473,3688,3471,3691,3465,3690,3458,3689,3442,3698,3432,3699,3432,3699,3431,3706,3418,3704,3402,3704,3401,3705,3399,3708,3394,3711,3387,3712,3386,3712,3384,3715,3372,3714,3359,3714,3356,3715,3354,3715,3353,3715,3352,3716,3346,3718,3342,3719,3341,3719,3340,3719,3331,3722,3323,3722,3323,3722,3322,3722,3314,3725,3307,3726,3305,3727,3303,3728,3302,3728,3300,3729,3299,3729,3298,3730,3289,3729,3280,3729,3272,3732,3267,3734,3261,3737,3256, 3739,3254,3740,3252,3743,3247,3746,3243,3747,3241,3748,3240,3748,3238,3749,3236,3750,3230,3753,3224,3754,3224,3755,3223,3757,3222,3757,3221,3759,3215,3765,3211,3767,3209,3769,3206,"L",3769,3206,"Q",3775,3201,3780,3195,3781,3194,3781,3193,3786,3189,3785,3183,3784,3176,3787,3172,3788,3170,3790,3168,3795,3165,3795,3161,3795,3157,3800,3157,3803,3158,3807,3157,3816,3155,3822,3149,3824,3148,3824,3145,3825,3142,3826,3139,3828,3132,3833,3129,3835,3128,3835,3125,3837,3120,3837,3114,3837,3110,3840,3109,3847, 3107,3854,3107,3883,3107,3912,3107,3941,3107,3969,3107,3999,3107,4028,3107,4058,3107,4087,3107,4094,3107,4100,3107,4109,3106,4112,3114,4113,3116,4114,3116,4130,3117,4146,3117,4147,3117,4148,3118,4154,3122,4156,3126,4157,3128,4159,3128,4166,3129,4172,3129,4185,3127,4192,3136,4194,3138,4195,3138,4199,3139,4203,3139,4219,3139,4234,3139,4241,3138,4244,3143,4246,3144,4246,3144,4258,3146,4270,3145,4275,3145,4276,3148,4276,3149,4277,3149,4280,3150,4280,3154,4281,3156,4281,3156,4308,3158,4335,3158,4365,3158, 4394,3158,4423,3158,4453,3158,4482,3158,4511,3158,4513,3158,4514,3157,4517,3155,4520,3154,4522,3154,4522,3152,4525,3148,4530,3146,4532,3146,4532,3145,4536,3142,4538,3141,4540,3140,4541,3139,4544,3135,4552,3136,4557,3137,4560,3134,4561,3133,4562,3133,4563,3132,4564,3132,4569,3126,4577,3126,4581,3127,4583,3124,4584,3122,4588,3119,4590,3118,4592,3116,4598,3112,4602,3109,4604,3107,4606,3107,4608,3106,4612,3105,4619,3104,4625,3099,4626,3098,4627,3098,4631,3098,4634,3096,4635,3095,4635,3095,4646,3093,4656, 3087,4657,3086,4659,3085,4666,3082,4672,3079,4674,3078,4675,3077,4677,3076,4678,3074,4678,3073,4679,3073,4686,3071,4692,3065,4696,3062,4699,3061,4704,3060,4707,3056,4712,3051,4718,3046,4719,3045,4721,3045,4733,3039,4748,3040,4751,3040,4753,3038,4754,3037,4758,3035,4760,3034,4761,3034,4766,3033,4768,3030,4769,3029,4770,3029,4775,3027,4773,3020,4772,3019,4771,3017,4769,3010,4766,3005,4765,3001,4763,2998,4763,2997,4762,2995,4759,2992,4756,2990,4755,2988,4753,2985,4752,2983,4752,2981,4751,2973,4751,2965, 4751,2960,4748,2956,4746,2953,4741,2950,4740,2949,4739,2948,4734,2943,4732,2938,4729,2933,4728,2928,4728,2923,4727,2918,4727,2917,4727,2916,4727,2912,4724,2910,4723,2909,4721,2907,4720,2907,4719,2906,4718,2905,4716,2905,4713,2904,4711,2902,4710,2901,4709,2899,4706,2892,4704,2884,4704,2883,4702,2881,4697,2875,4694,2871,4691,2868,4687,2861,4687,2859,4686,2857,4686,2854,4684,2853,4680,2849,4676,2845,4666,2833,4663,2820,4662,2819,4662,2818,4658,2813,4658,2805,4658,2805,4658,2804,4656,2798,4653,2793,4650, 2789,4647,2783,4643,2775,4640,2771,4636,2765,4634,2758,4633,2756,4632,2754,4629,2750,4627,2745,4626,2742,4626,2738,4627,2730,4620,2725,4613,2721,4610,2713,4610,2711,4608,2710,4605,2706,4603,2700,4603,2699,4603,2698,4603,2693,4600,2690,4594,2684,4592,2676,4591,2669,4585,2663,4584,2662,4584,2661,4582,2658,4581,2654,4580,2652,4579,2650,4575,2643,4568,2638,4566,2637,4565,2637,4565,2636,4565,2636,4564,2635,4564,2634,4562,2628,4561,2622,4561,2621,4561,2619,4560,2614,4559,2609,4559,2607,4559,2606,4558,2604, 4557,2603,4553,2598,4553,2589,4552,2581,4549,2576,4547,2571,4545,2567,4544,2566,4543,2565,4536,2560,4534,2552,4534,2551,4534,2550,4533,2546,4533,2542,4533,2535,4531,2528,4529,2523,4526,2515,4526,2514,4525,2512,4521,2506,4518,2502,4517,2501,4516,2500,4511,2494,4508,2490,4503,2482,4499,2475,4499,2473,4497,2472,4496,2470,4495,2468,4494,2467,4493,2465,4493,2460,4489,2459,4489,2459,4488,2458,4488,2455,4487,2453,4485,2448,4482,2446,4480,2445,4479,2444,4476,2442,4474,2440,4474,2439,4473,2438,4471,2436,4469, 2435,4465,2431,4461,2426,4460,2425,4459,2424,4453,2418,4448,2412,4447,2411,4446,2409,4445,2405,4441,2403,4435,2401,4432,2398,4431,2396,4427,2395,4425,2395,4423,2393,4420,2388,4414,2381,4412,2379,4411,2377,4411,2376,4410,2375,4407,2372,4402,2366,4402,2365,4401,2364,4397,2357,4393,2350,4391,2348,4390,2346,4386,2340,4380,2334,4375,2328,4375,2320,4375,2320,4374,2319,4373,2311,4370,2307,4364,2300,4364,2292,4364,2290,4363,2289,4363,2287,4362,2285,4362,2281,4361,2277,4361,2275,4361,2273,4359,2269,4355,2265, 4355,2264,4354,2263,4351,2258,4350,2252,4350,2251,4349,2250,4349,2244,4349,2238,4349,2237,4348,2236,4339,2230,4340,2218,4340,2215,4341,2211,4340,2207,4338,2203,4338,2202,4337,2201,4335,2199,4334,2196,4331,2185,4327,2178,4326,2177,4326,2176,4326,2171,4323,2169,4323,2169,4322,2168,4317,2158,4318,2146,4318,2144,4318,2142,4314,2132,4308,2122,4305,2118,4305,2112,4305,2106,4304,2099,4304,2098,4304,2097,4303,2096,4303,2094,4304,2082,4298,2075,4297,2074,4296,2072,4293,2065,4292,2057,4292,2052,4291,2048,4291, 2047,4290,2045,4290,2044,4289,2042,4286,2036,4286,2028,4287,2021,4286,2013,4286,2011,4285,2008,4285,2004,4284,2E3,4284,1997,4284,1995,4283,1976,4283,1956,4283,1955,4283,1953,4281,1950,4279,1944,4278,1941,4277,1937,4273,1930,4271,1924,4268,1918,4269,1911,4269,1902,4266,1896,4266,1895,4265,1894,4265,1893,4264,1892,4253,1881,4254,1866,4255,1862,4254,1859,4254,1855,4252,1852,4251,1851,4251,1849,4250,1847,4249,1845,4247,1841,4243,1835,4241,1834,4241,1832,4235,1819,4224,1810,4224,1810,4223,1809,4221,1803, 4218,1797,4217,1795,4216,1793,4214,1790,4213,1787,4213,1784,4212,1783,4208,1780,4202,1774,4196,1766,4191,1760,4190,1758,4189,1757,4183,1752,4182,1746,4182,1746,4181,1745,4180,1743,4179,1742,4176,1741,4175,1736,4175,1735,4174,1733,4170,1726,4165,1720,4161,1715,4158,1707,4157,1706,4157,1705,4151,1696,4148,1686,4148,1685,4148,1684,4148,1679,4145,1674,4137,1661,4124,1652,4123,1652,4123,1651,4122,1649,4121,1648,4118,1642,4118,1634,4118,1627,4112,1623,4111,1622,4109,1620,4104,1616,4100,1612,4095,1605,4096, 1595,4097,1592,4097,1589,4099,1580,4092,1577,4090,1576,4089,1576,4085,1576,4083,1575,4081,1575,4080,1575,4068,1575,4055,1575,4050,1575,4045,1576,4037,1577,4031,1572,4026,1567,4023,1562,4022,1560,4021,1559,4017,1557,4015,1553,4011,1549,4010,1546,4008,1543,4006,1538,4005,1538,4005,1537,3999,1524,3993,1516,3987,1509,3981,1503,3979,1502,3977,1500,3974,1498,3970,1494,3965,1490,3959,1487,3958,1486,3956,1484,3955,1483,3954,1483,3949,1481,3947,1478,3946,1476,3944,1475,3938,1473,3937,1468,3935,1459,3926,1454, 3925,1454,3924,1453,3923,1450,3921,1449,3919,1449,3918,1447,3914,1444,3912,1443,3911,1442,3910,1441,3909,1439,3907,1438,3906,1436,3905,1434,3901,1426,3897,1421,3896,1419,3895,1417,3891,1412,3884,1407,3883,1407,3882,1406,3879,1403,3874,1400,3872,1399,3871,1397,3870,1394,3867,1393,3865,1392,3864,1390,3860,1386,3855,1382,3851,1379,3846,1372,3842,1368,3838,1362,3837,1360,3834,1358,3832,1357,3829,1356,3828,1355,3827,1355,3825,1353,3823,1351,"Q",3822,1350,3820,1348,"Z"]],label:"Khulm",shortLabel:"KH",labelPosition:[378.9, 250.1],labelAlignment:["center","middle"]},"AF.BK.CB":{outlines:[["M",872,1790,"Q",864,1783,860,1779,859,1777,857,1777,853,1775,849,1774,847,1773,845,1773,845,1772,844,1772,842,1771,841,1769,837,1763,832,1758,830,1757,828,1755,827,1755,826,1754,825,1753,823,1753,810,1749,800,1738,799,1737,798,1736,793,1734,790,1726,789,1725,788,1723,782,1719,775,1717,768,1715,761,1712,749,1705,740,1696,736,1692,730,1690,728,1689,727,1689,724,1688,721,1686,715,1682,708,1680,705,1680,701,1676,700,1675,698,1674,696, 1671,693,1670,692,1670,691,1669,686,1666,679,1665,676,1664,673,1664,671,1663,669,1663,668,1662,667,1661,663,1657,656,1654,654,1653,653,1652,649,1649,644,1645,642,1644,641,1644,637,1643,634,1641,631,1639,630,1637,625,1630,614,1632,612,1632,611,1631,608,1629,607,1628,606,1626,604,1626,602,1625,601,1624,597,1621,592,1619,582,1616,572,1617,570,1617,569,1617,564,1614,558,1614,551,1614,548,1609,547,1608,545,1608,544,1607,542,1606,537,1602,530,1603,522,1605,516,1601,514,1600,510,1599,507,1599,505,1598,503, 1598,501,1598,491,1598,488,1592,487,1591,486,1591,472,1588,456,1589,453,1589,449,1588,448,1588,446,1587,445,1587,444,1586,442,1584,440,1583,429,1578,419,1573,417,1572,415,1570,411,1564,402,1563,399,1563,396,1563,395,1563,394,1563,388,1563,387,1557,387,1555,385,1553,384,1552,383,1549,381,1545,379,1544,377,1543,376,1543,359,1544,352,1532,351,1531,350,1530,345,1528,337,1528,333,1529,331,1525,330,1523,330,1521,329,1519,327,1518,326,1517,325,1517,313,1516,301,1517,301,1532,298,1547,298,1549,297,1550,297, 1552,296,1553,295,1555,294,1556,293,1558,292,1560,292,1568,292,1575,293,1589,290,1602,290,1605,289,1607,289,1623,289,1639,289,1647,283,1653,282,1654,281,1656,280,1658,279,1658,277,1661,277,1666,277,1679,277,1693,277,1722,277,1752,277,1753,276,1754,274,1757,270,1760,264,1765,265,1771,"L",265,1772,"Q",265,1791,265,1810,265,1839,265,1869,265,1873,264,1877,263,1881,259,1884,257,1886,256,1887,255,1914,255,1941,255,1943,256,1944,259,1949,261,1956,262,1958,263,1959,264,1964,267,1967,269,1970,268,1974,268, 1979,269,1983,269,1985,271,1989,273,1994,275,2E3,276,2001,276,2001,276,2003,277,2004,281,2008,282,2015,283,2017,284,2021,285,2024,286,2026,287,2029,289,2031,292,2035,293,2038,294,2041,295,2045,295,2047,295,2048,296,2050,297,2052,298,2053,297,2055,297,2060,299,2064,300,2065,300,2067,301,2068,301,2068,302,2070,303,2071,303,2073,304,2074,307,2076,308,2080,308,2082,309,2083,310,2086,312,2090,313,2093,315,2096,318,2101,321,2106,322,2109,323,2111,325,2117,326,2124,327,2126,327,2127,328,2129,329,2132,329, 2134,330,2135,333,2144,339,2147,340,2148,340,2149,341,2151,342,2152,348,2158,349,2166,349,2173,349,2179,350,2180,350,2181,350,2186,352,2191,353,2192,353,2192,359,2199,364,2206,365,2207,365,2208,365,2222,365,2236,365,2266,367,2295,367,2303,367,2310,367,2340,367,2369,367,2399,367,2428,367,2434,365,2440,365,2441,364,2441,364,2443,363,2444,358,2448,358,2455,357,2462,358,2470,358,2473,356,2475,350,2480,349,2485,346,2496,347,2508,347,2510,346,2511,339,2519,335,2527,335,2529,335,2530,336,2543,332,2553,360, 2552,387,2553,389,2554,390,2556,391,2557,391,2559,390,2565,394,2569,395,2570,397,2570,427,2570,456,2570,458,2570,459,2568,464,2565,463,2557,463,2552,464,2547,465,2546,466,2545,471,2544,477,2537,478,2536,480,2535,488,2530,487,2518,487,2517,488,2515,495,2507,500,2503,504,2501,507,2497,511,2491,519,2487,520,2486,521,2486,526,2484,527,2482,529,2481,532,2479,533,2479,533,2478,537,2472,543,2472,550,2471,557,2471,562,2471,567,2470,569,2470,570,2468,576,2461,584,2458,586,2458,589,2458,606,2458,624,2456,626, 2456,627,2455,630,2454,632,2452,636,2449,639,2448,644,2445,651,2446,665,2446,679,2446,684,2445,687,2448,689,2450,689,2451,691,2459,699,2458,705,2458,710,2458,720,2458,730,2459,732,2460,734,2462,736,2463,737,2464,738,2466,739,2467,745,2471,755,2470,765,2468,763,2478,762,2485,766,2489,768,2490,769,2491,770,2493,772,2493,778,2496,781,2503,782,2504,783,2505,789,2510,794,2517,794,2518,795,2518,796,2519,797,2520,804,2524,808,2529,809,2530,810,2530,819,2529,821,2522,822,2520,823,2518,825,2517,825,2515,827, 2513,828,2510,829,2508,830,2507,837,2501,842,2496,843,2495,843,2493,844,2487,852,2484,859,2481,863,2471,864,2468,867,2468,870,2467,872,2467,877,2466,881,2466,905,2466,929,2468,931,2468,932,2470,934,2473,936,2475,938,2478,942,2480,944,2481,946,2481,976,2481,1005,2481,1006,2481,1006,2480,1007,2478,1008,2477,1009,2475,1009,2474,1011,2468,1010,2461,1010,2455,1010,2448,1010,2440,1016,2436,1019,2434,1019,2431,1019,2428,1021,2425,1022,2424,1022,2421,1022,2394,1023,2367,1023,2366,1024,2364,1025,2363,1025, 2361,1025,2359,1026,2357,1029,2352,1029,2346,1028,2330,1028,2314,1028,2293,1028,2272,1028,2270,1026,2269,1025,2268,1024,2266,1022,2265,1021,2264,1020,2262,1018,2260,1016,2258,1016,2255,1016,2254,1015,2253,1015,2251,1015,2248,1015,2221,1016,2193,1016,2191,1017,2190,1021,2185,1020,2178,1020,2171,1020,2164,1020,2163,1020,2161,1021,2157,1025,2154,1036,2145,1036,2129,1036,2128,1036,2126,1037,2122,1038,2118,1039,2115,1040,2112,1040,2111,1041,2109,1041,2108,1041,2107,1042,2100,1045,2095,1048,2092,1048,2087, 1048,2086,1048,2084,1048,2077,1049,2070,1049,2062,1052,2056,1054,2054,1055,2052,1062,2048,1062,2039,1062,2029,1063,2018,1063,2018,1063,2017,1068,2011,1067,2003,1065,1996,1072,1992,1073,1991,1074,1990,1077,1985,1079,1982,1080,1982,1080,1980,1080,1978,1080,1977,1078,1977,1077,1976,1070,1973,1065,1968,1064,1967,1062,1966,1057,1960,1053,1951,1053,1949,1052,1948,1048,1942,1042,1936,1030,1925,1023,1916,1022,1915,1022,1914,1018,1907,1011,1904,1004,1901,1001,1896,1E3,1895,998,1894,991,1892,985,1890,983,1890, 981,1889,980,1889,978,1888,974,1885,969,1882,968,1881,966,1881,954,1878,948,1869,945,1864,942,1859,942,1858,941,1857,939,1851,933,1845,925,1838,919,1827,918,1826,918,1825,918,1821,915,1819,911,1814,907,1810,907,1809,906,1809,904,1808,903,1806,901,1801,894,1800,890,1800,887,1799,887,1799,886,1799,878,1797,874,1792,"Q",873,1791,872,1790,"Z"]],label:"Chahar Bolak",shortLabel:"CB",labelPosition:[66.7,204.3],labelAlignment:["center","middle"]},"AF.BK.BA":{outlines:[["M",1716,1868,"Q",1707,1867,1698,1867, 1668,1867,1639,1867,1610,1867,1580,1867,1579,1867,1578,1866,1574,1863,1570,1860,1569,1860,1569,1859,1568,1854,1567,1852,1566,1851,1565,1851,1563,1850,1561,1849,1558,1847,1555,1847,1554,1846,1552,1845,1550,1844,1547,1843,1544,1842,1542,1840,1540,1840,1538,1838,1537,1837,1534,1836,1521,1831,1511,1822,1509,1820,1506,1819,1501,1818,1499,1816,1496,1811,1492,1808,1487,1804,1481,1802,1480,1802,1478,1801,1477,1801,1476,1801,1471,1801,1468,1797,1463,1791,1458,1788,1454,1785,1448,1781,1447,1781,1446,1781,1422, 1780,1397,1780,1368,1780,1339,1780,1332,1780,1325,1779,1318,1778,1313,1782,1312,1783,1311,1785,1310,1790,1308,1795,1308,1796,1307,1797,1306,1798,1305,1798,1304,1800,1303,1800,1295,1802,1290,1808,1289,1809,1288,1810,1280,1814,1282,1823,1283,1829,1280,1834,1274,1840,1271,1845,1268,1851,1264,1855,1261,1858,1259,1864,1256,1871,1251,1875,1251,1876,1250,1877,1247,1877,1246,1880,1244,1886,1240,1889,1235,1893,1232,1901,1232,1902,1232,1902,1232,1907,1229,1911,1229,1912,1228,1912,1227,1913,1226,1914,1218,1919, 1214,1924,1214,1925,1213,1926,1211,1927,1210,1928,1208,1931,1203,1934,1200,1936,1197,1937,1189,1940,1188,1948,1188,1951,1187,1954,1187,1956,1185,1957,1182,1961,1180,1969,1179,1971,1178,1972,1176,1976,1171,1980,1169,1982,1164,1983,1163,1984,1161,1984,1149,1985,1137,1985,1133,1985,1129,1984,1122,1983,1115,1979,1112,1977,1107,1977,1099,1978,1090,1978,1085,1979,1080,1977,1080,1978,1080,1980,1080,1982,1079,1982,1077,1985,1074,1990,1073,1991,1072,1992,1065,1996,1067,2003,1068,2011,1063,2017,1063,2018,1063, 2018,1062,2029,1062,2039,1062,2048,1055,2052,1054,2054,1052,2056,1049,2062,1049,2070,1048,2077,1048,2084,1048,2086,1048,2087,1048,2092,1045,2095,1042,2100,1041,2107,1041,2108,1041,2109,1040,2111,1040,2112,1039,2115,1038,2118,1037,2122,1036,2126,1036,2128,1036,2129,1036,2145,1025,2154,1021,2157,1020,2161,1020,2163,1020,2164,1020,2171,1020,2178,1021,2185,1017,2190,1016,2191,1016,2193,1015,2221,1015,2248,1015,2251,1015,2253,1016,2254,1016,2255,1016,2258,1018,2260,1020,2262,1021,2264,1022,2265,1024,2266, 1025,2268,1026,2269,1028,2270,1028,2272,1028,2293,1028,2314,1028,2330,1029,2346,1029,2352,1026,2357,1025,2359,1025,2361,1025,2363,1024,2364,1023,2366,1023,2367,1022,2394,1022,2421,1022,2424,1021,2425,1019,2428,1019,2431,1019,2434,1016,2436,1010,2440,1010,2448,1010,2455,1010,2461,1011,2468,1009,2474,1009,2475,1008,2477,1010,2482,1015,2484,1017,2485,1018,2487,1018,2488,1019,2489,1019,2490,1020,2491,1020,2494,1020,2498,1019,2507,1029,2506,1031,2506,1033,2508,1037,2512,1037,2516,1037,2520,1039,2521,1040, 2522,1040,2523,1043,2526,1048,2532,1051,2535,1050,2540,1050,2544,1054,2547,1055,2547,1056,2548,1063,2551,1066,2560,1066,2561,1067,2562,1073,2576,1083,2584,1084,2585,1084,2587,1085,2588,1086,2588,1091,2594,1095,2597,1097,2599,1099,2600,1102,2602,1106,2602,1121,2602,1131,2615,1136,2620,1140,2625,1141,2626,1143,2627,1144,2629,1147,2630,1150,2631,1152,2632,1153,2632,1154,2633,1155,2633,1156,2633,1159,2634,1162,2635,1164,2636,1164,2637,1166,2647,1173,2654,1174,2655,1174,2656,1178,2660,1186,2660,1187,2660, 1188,2660,1190,2661,1191,2661,1192,2662,1193,2662,1196,2667,1200,2669,1202,2670,1203,2670,1210,2671,1216,2673,1218,2673,1220,2674,1226,2678,1228,2684,1229,2686,1230,2687,1231,2691,1235,2691,1242,2690,1248,2692,1250,2692,1252,2693,1254,2693,1255,2694,1258,2694,1260,2695,1268,2697,1277,2697,1280,2697,1282,2699,1286,2705,1295,2705,1297,2705,1299,2705,1303,2706,1307,2707,1308,2707,1309,2707,1311,2708,1312,2708,1313,2709,1314,2709,1317,2710,1318,2712,1320,2714,1322,2714,1330,2714,1337,2715,1338,2715,1339, 2715,1346,2716,1354,2715,1362,2715,1368,2718,1369,2719,1371,2719,1386,2718,1385,2701,1385,2698,1385,2696,1386,2694,1386,2692,1387,2691,1387,2689,1388,2686,1388,2682,1388,2669,1388,2656,1389,2653,1389,2651,1389,2646,1390,2643,1391,2641,1392,2639,1394,2637,1395,2636,1396,2635,1397,2633,1401,2630,1402,2624,1402,2622,1402,2620,1403,2616,1403,2612,1403,2583,1403,2553,1403,2545,1404,2537,1405,2535,1406,2533,1407,2532,1408,2531,1410,2529,1411,2526,1414,2521,1416,2515,1416,2514,1417,2512,1427,2505,1437,2495, 1438,2494,1439,2492,1443,2489,1446,2487,1447,2487,1448,2486,1451,2482,1454,2477,1456,2474,1456,2471,1456,2469,1457,2468,1457,2465,1460,2463,1464,2457,1469,2453,1471,2453,1472,2451,1472,2450,1473,2449,1479,2446,1485,2439,1490,2434,1492,2430,1493,2429,1494,2428,1497,2420,1502,2416,1506,2412,1511,2408,1513,2405,1515,2402,1516,2401,1517,2399,1518,2395,1521,2393,1523,2392,1524,2391,1526,2388,1526,2384,1526,2381,1527,2379,1528,2378,1529,2377,1538,2372,1544,2364,1547,2358,1549,2352,1552,2345,1557,2342,1561, 2339,1563,2337,1568,2331,1572,2329,1575,2327,1579,2325,1581,2324,1584,2320,1585,2319,1586,2318,1591,2311,1596,2308,1597,2308,1597,2307,1597,2303,1602,2304,1604,2304,1606,2303,1612,2301,1615,2297,1618,2291,1624,2288,1626,2287,1627,2285,1633,2278,1639,2275,1641,2274,1643,2273,1644,2272,1644,2272,1646,2271,1648,2271,1652,2271,1655,2268,1655,2267,1656,2266,1657,2265,1657,2264,1658,2263,1658,2261,1658,2232,1658,2203,1658,2174,1658,2146,1658,2135,1659,2125,1660,2122,1661,2119,1665,2112,1670,2108,1671,2107, 1671,2105,1670,2098,1673,2094,1677,2086,1681,2078,1681,2077,1682,2076,1684,2072,1684,2068,1684,2068,1685,2067,1687,2065,1690,2062,1693,2060,1694,2055,1694,2053,1694,2052,1696,2046,1701,2042,1702,2042,1703,2040,1704,2039,1704,2038,1706,2037,1706,2035,1709,2031,1709,2026,1709,2025,1710,2023,1713,2018,1719,2012,1721,2011,1722,2010,1725,2008,1724,2001,1723,1994,1723,1986,1723,1980,1723,1973,1724,1968,1727,1962,1728,1961,1728,1960,1728,1935,1729,1911,1729,1909,1729,1908,1730,1905,1733,1904,1735,1903,1737, 1899,1741,1891,1740,1881,1740,1872,1740,1864,1737,1866,1733,1869,1730,1869,1726,1869,"Q",1721,1869,1716,1868,"Z"]],label:"Balkh",shortLabel:"BA",labelPosition:[137.4,224.9],labelAlignment:["center","middle"]},"AF.BK.CM":{outlines:[["M",1186,2660,"Q",1178,2660,1174,2656,1174,2655,1173,2654,1166,2647,1164,2637,1164,2636,1162,2635,1159,2634,1156,2633,1155,2633,1154,2633,1153,2632,1152,2632,1150,2631,1147,2630,1144,2629,1143,2627,1141,2626,1140,2625,1136,2620,1131,2615,1121,2602,1106,2602,1102,2602,1099, 2600,1097,2599,1095,2597,1091,2594,1086,2588,1085,2588,1084,2587,1084,2585,1083,2584,1073,2576,1067,2562,1066,2561,1066,2560,1063,2551,1056,2548,1055,2547,1054,2547,1050,2544,1050,2540,1051,2535,1048,2532,1043,2526,1040,2523,1040,2522,1039,2521,1037,2520,1037,2516,1037,2512,1033,2508,1031,2506,1029,2506,1019,2507,1020,2498,1020,2494,1020,2491,1019,2490,1019,2489,1018,2488,1018,2487,1017,2485,1015,2484,1010,2482,1008,2477,1007,2478,1006,2480,1006,2481,1005,2481,976,2481,946,2481,944,2481,942,2480, 938,2478,936,2475,934,2473,932,2470,931,2468,929,2468,905,2466,881,2466,877,2466,872,2467,870,2467,867,2468,864,2468,863,2471,859,2481,852,2484,844,2487,843,2493,843,2495,842,2496,837,2501,830,2507,829,2508,828,2510,827,2513,825,2515,825,2517,823,2518,822,2520,821,2522,819,2529,810,2530,809,2530,808,2529,804,2524,797,2520,796,2519,795,2518,794,2518,794,2517,789,2510,783,2505,782,2504,781,2503,778,2496,772,2493,770,2493,769,2491,768,2490,766,2489,762,2485,763,2478,765,2468,755,2470,745,2471,739,2467, 738,2466,737,2464,736,2463,734,2462,732,2460,730,2459,720,2458,710,2458,705,2458,699,2458,691,2459,689,2451,689,2450,687,2448,684,2445,679,2446,665,2446,651,2446,644,2445,639,2448,636,2449,632,2452,630,2454,627,2455,626,2456,624,2456,606,2458,589,2458,586,2458,584,2458,576,2461,570,2468,569,2470,567,2470,562,2471,557,2471,550,2471,543,2472,537,2472,533,2478,533,2479,532,2479,529,2481,527,2482,526,2484,521,2486,520,2486,519,2487,511,2491,507,2497,504,2501,500,2503,495,2507,488,2515,487,2517,487,2518, 488,2530,480,2535,478,2536,477,2537,471,2544,466,2545,465,2546,464,2547,463,2552,463,2557,464,2565,459,2568,458,2570,456,2570,427,2570,397,2570,395,2570,394,2569,390,2565,391,2559,391,2557,390,2556,389,2554,387,2553,360,2552,332,2553,332,2555,331,2557,330,2559,329,2559,318,2569,320,2585,321,2592,318,2597,317,2600,315,2601,312,2603,312,2607,313,2620,311,2632,310,2634,310,2635,304,2648,305,2664,306,2673,303,2679,301,2684,298,2685,298,2685,297,2686,295,2687,295,2688,293,2692,293,2696,293,2700,292,2703, 290,2709,290,2716,289,2724,292,2731,294,2735,297,2740,298,2741,298,2741,302,2741,302,2745,302,2755,302,2765,301,2795,303,2824,303,2827,304,2830,304,2832,304,2834,305,2840,310,2844,312,2846,312,2848,314,2854,314,2861,314,2890,314,2919,314,2927,316,2934,317,2941,324,2936,324,2961,324,2985,325,2986,325,2986,325,2988,326,2989,327,2992,329,2995,331,2998,334,3001,337,3004,339,3008,340,3012,344,3014,345,3014,345,3015,345,3017,346,3018,347,3020,347,3022,348,3026,352,3027,353,3028,354,3028,355,3030,356,3031, 360,3032,361,3037,362,3043,367,3049,369,3051,371,3053,374,3055,375,3057,377,3059,378,3060,379,3061,380,3062,384,3066,389,3072,390,3073,390,3074,391,3075,391,3076,394,3081,399,3087,401,3089,404,3093,408,3097,410,3104,411,3106,412,3107,413,3108,413,3109,414,3111,415,3112,415,3113,415,3114,418,3119,421,3122,423,3123,424,3124,427,3128,431,3132,432,3133,432,3134,433,3138,435,3140,438,3145,443,3150,447,3154,451,3160,452,3161,453,3163,454,3164,455,3164,456,3164,458,3169,460,3174,464,3174,468,3173,469,3175, 469,3177,473,3183,476,3188,478,3188,480,3187,479,3192,479,3196,482,3199,483,3201,485,3203,486,3205,486,3206,486,3231,486,3255,486,3259,489,3261,490,3263,490,3264,491,3265,492,3267,495,3279,493,3293,493,3297,493,3300,492,3302,492,3303,491,3326,491,3349,491,3351,492,3353,495,3360,497,3366,497,3368,499,3370,501,3372,504,3376,504,3377,504,3377,505,3391,505,3404,505,3434,505,3463,505,3465,505,3468,506,3469,506,3470,507,3472,507,3475,508,3477,509,3480,510,3481,510,3482,512,3485,512,3486,513,3512,513,3538, 513,3547,514,3555,515,3564,512,3569,511,3571,509,3572,504,3575,505,3580,505,3597,505,3614,505,3621,503,3625,502,3627,501,3629,500,3633,499,3637,499,3638,499,3639,498,3652,498,3664,498,3666,498,3667,497,3669,495,3671,495,3673,494,3673,490,3677,486,3683,486,3684,485,3686,485,3709,485,3733,485,3735,484,3736,483,3738,482,3740,480,3745,477,3750,477,3751,477,3751,476,3775,476,3798,476,3800,475,3801,472,3806,466,3812,465,3814,464,3815,463,3826,463,3837,463,3845,461,3852,460,3853,460,3854,456,3861,451,3864, 450,3865,450,3865,449,3867,447,3867,442,3870,438,3877,438,3879,437,3880,434,3883,433,3889,433,3891,432,3892,432,3893,432,3894,431,3901,426,3905,424,3907,423,3908,422,3909,420,3910,416,3912,414,3917,414,3920,412,3922,410,3926,410,3933,410,3940,404,3945,403,3946,400,3947,398,3948,397,3951,394,3959,391,3964,390,3966,389,3967,384,3972,379,3977,374,3982,369,3985,364,3989,363,3995,363,3996,363,3996,362,4002,357,4003,356,4004,356,4005,354,4007,352,4009,351,4011,349,4012,343,4017,342,4025,341,4027,341,4028, 340,4034,337,4037,336,4038,336,4040,335,4042,334,4042,330,4048,327,4053,324,4059,322,4067,321,4069,320,4070,317,4073,315,4078,314,4081,313,4085,312,4092,308,4095,297,4103,290,4112,289,4114,289,4115,287,4122,286,4127,285,4129,285,4130,284,4131,284,4132,283,4137,280,4141,277,4145,273,4152,268,4159,270,4171,270,4173,269,4174,267,4181,262,4184,261,4185,260,4186,250,4197,258,4209,259,4210,260,4210,264,4211,263,4216,262,4220,265,4222,267,4224,267,4225,270,4229,274,4236,274,4237,274,4238,276,4240,278,4243, 279,4245,280,4246,286,4250,285,4258,284,4264,287,4268,289,4271,290,4273,294,4279,297,4285,298,4287,299,4288,300,4289,301,4290,302,4292,303,4292,308,4299,309,4307,309,4308,309,4310,309,4311,309,4312,309,4313,309,4313,310,4315,310,4317,312,4321,317,4327,318,4328,318,4328,319,4330,319,4332,320,4336,323,4336,324,4336,325,4337,329,4343,335,4347,343,4351,349,4358,350,4360,351,4361,355,4366,362,4366,363,4366,364,4366,369,4366,374,4369,379,4372,384,4375,386,4376,387,4378,388,4379,389,4379,392,4380,396,4380, 404,4381,408,4386,410,4387,411,4388,413,4389,414,4389,416,4390,417,4390,420,4391,422,4391,428,4392,430,4395,432,4397,433,4398,434,4399,436,4399,437,4400,438,4400,448,4403,453,4407,456,4411,463,4412,465,4412,466,4413,468,4413,469,4413,474,4413,476,4416,480,4419,486,4423,487,4423,488,4423,493,4423,496,4427,501,4433,510,4435,512,4435,513,4436,519,4437,525,4441,526,4442,526,4442,528,4442,529,4443,533,4446,538,4447,543,4449,548,4450,550,4451,551,4452,557,4456,563,4459,564,4460,564,4461,565,4465,570,4465, 577,4464,583,4465,585,4465,585,4466,585,4467,585,4467,592,4465,596,4462,597,4461,598,4460,600,4460,601,4458,602,4457,603,4455,604,4454,604,4453,605,4446,612,4443,620,4439,624,4433,629,4424,635,4420,637,4419,637,4417,638,4414,639,4412,642,4407,647,4403,650,4400,654,4396,656,4394,657,4391,659,4389,661,4386,664,4380,664,4372,664,4366,669,4363,670,4362,670,4360,671,4354,671,4347,671,4344,673,4342,681,4332,682,4320,682,4319,683,4317,690,4309,693,4300,694,4297,697,4293,699,4292,699,4290,702,4281,702,4271, 702,4271,702,4270,703,4256,710,4246,711,4244,713,4241,717,4235,720,4229,724,4223,726,4219,726,4218,726,4216,725,4205,727,4194,728,4193,728,4191,730,4183,734,4179,736,4178,736,4176,737,4171,739,4169,740,4168,740,4166,741,4163,743,4159,743,4158,744,4156,745,4153,747,4151,750,4148,750,4144,750,4133,750,4122,751,4119,754,4116,756,4116,756,4114,758,4112,760,4109,761,4108,762,4107,764,4105,765,4100,766,4100,767,4099,770,4095,772,4093,773,4092,774,4091,776,4087,777,4084,780,4077,783,4072,783,4070,783,4068, 783,4061,786,4054,787,4053,787,4052,789,4046,793,4042,801,4036,805,4028,808,4022,814,4017,815,4017,816,4015,816,4014,817,4013,820,4008,820,4001,820,4E3,820,3998,821,3991,827,3986,831,3983,837,3978,844,3972,845,3964,847,3949,857,3939,858,3939,859,3938,862,3933,867,3924,867,3923,868,3921,868,3920,869,3919,873,3916,876,3912,879,3908,883,3903,884,3902,884,3901,885,3893,890,3887,894,3882,898,3878,899,3876,900,3875,909,3867,911,3852,912,3850,913,3849,918,3840,923,3833,924,3832,925,3830,925,3829,926,3828, 928,3822,930,3814,931,3815,931,3810,931,3805,934,3801,935,3800,935,3798,936,3793,940,3790,941,3790,941,3788,942,3781,946,3778,952,3775,957,3770,963,3764,967,3758,968,3757,967,3755,966,3750,969,3748,970,3748,970,3746,971,3745,972,3744,975,3739,975,3731,976,3731,976,3730,978,3725,980,3721,986,3711,994,3699,999,3692,1001,3684,1001,3681,1002,3678,1002,3677,1003,3676,1003,3672,1003,3669,1004,3657,1009,3649,1011,3646,1012,3642,1012,3641,1013,3639,1018,3632,1021,3624,1021,3623,1021,3622,1023,3621,1023,3619, 1025,3617,1028,3613,1029,3612,1030,3611,1034,3602,1035,3590,1035,3589,1035,3587,1037,3580,1040,3575,1041,3574,1042,3572,1043,3571,1043,3570,1044,3563,1048,3557,1049,3556,1049,3555,1050,3554,1051,3552,1052,3549,1054,3547,1058,3541,1059,3536,1060,3534,1062,3532,1066,3529,1067,3525,1068,3524,1068,3523,1069,3522,1069,3520,1072,3514,1079,3508,1084,3504,1087,3500,1089,3498,1090,3496,1091,3495,1092,3493,1095,3488,1097,3483,1097,3482,1098,3480,1098,3479,1099,3478,1103,3474,1103,3468,1103,3467,1103,3466,1104, 3465,1104,3463,1106,3461,1107,3459,1107,3458,1108,3456,1109,3450,1115,3445,1117,3445,1118,3443,1119,3442,1121,3441,1125,3438,1129,3433,1131,3432,1132,3431,1138,3426,1144,3420,1149,3414,1152,3409,1154,3406,1155,3402,1155,3401,1156,3399,1157,3397,1159,3395,1160,3394,1161,3392,1164,3387,1170,3384,1173,3383,1176,3381,1177,3380,1178,3379,1180,3379,1183,3379,1207,3379,1231,3377,1232,3377,1233,3376,1235,3375,1236,3373,1238,3370,1243,3369,1246,3369,1250,3369,1275,3369,1300,3367,1301,3367,1302,3366,1305,3362, 1308,3359,1309,3357,1310,3355,1312,3352,1316,3350,1319,3348,1322,3346,1330,3340,1334,3334,1335,3333,1336,3332,1348,3321,1362,3317,1376,3313,1383,3302,1383,3301,1384,3300,1387,3296,1393,3292,1396,3291,1397,3288,1398,3288,1399,3287,1401,3284,1402,3280,1403,3276,1407,3274,1408,3274,1409,3273,1415,3269,1419,3263,1420,3263,1420,3262,1422,3255,1429,3250,1431,3248,1434,3246,1434,3245,1434,3243,1435,3234,1444,3230,1446,3230,1448,3228,1456,3221,1460,3210,1460,3209,1461,3208,1469,3205,1467,3198,1467,3193,1469, 3191,1472,3188,1473,3184,1474,3184,1475,3183,1477,3181,1477,3178,1479,3170,1485,3164,1491,3159,1495,3154,1496,3153,1496,3151,1496,3147,1497,3144,1498,3142,1498,3139,1498,3110,1498,3080,1498,3071,1498,3061,"L",1498,3060,"Q",1498,3036,1499,3011,1499,3010,1500,3008,1507,3001,1505,2985,1505,2976,1505,2968,1505,2946,1506,2924,1506,2924,1506,2923,1507,2921,1507,2919,1508,2908,1508,2896,1509,2888,1511,2882,1512,2881,1512,2879,1512,2876,1513,2873,1508,2868,1503,2864,1502,2863,1501,2862,1497,2854,1493,2849, 1492,2848,1491,2847,1490,2845,1486,2845,1485,2844,1483,2843,1482,2841,1478,2841,1471,2842,1469,2837,1469,2835,1467,2834,1465,2832,1463,2828,1461,2823,1453,2822,1450,2822,1448,2821,1442,2819,1438,2815,1434,2810,1427,2804,1422,2799,1420,2791,1420,2791,1420,2790,1419,2782,1419,2773,1419,2772,1419,2771,1415,2770,1411,2769,1409,2769,1408,2767,1407,2764,1404,2761,1403,2760,1401,2757,1401,2756,1400,2755,1396,2749,1384,2750,1378,2751,1378,2748,1377,2746,1376,2745,1364,2737,1368,2718,1362,2715,1354,2715,1346, 2716,1339,2715,1338,2715,1337,2715,1330,2714,1322,2714,1320,2714,1318,2712,1317,2710,1314,2709,1313,2709,1312,2708,1311,2708,1309,2707,1308,2707,1307,2707,1303,2706,1299,2705,1297,2705,1295,2705,1286,2705,1282,2699,1280,2697,1277,2697,1268,2697,1260,2695,1258,2694,1255,2694,1254,2693,1252,2693,1250,2692,1248,2692,1242,2690,1235,2691,1231,2691,1230,2687,1229,2686,1228,2684,1226,2678,1220,2674,1218,2673,1216,2673,1210,2671,1203,2670,1202,2670,1200,2669,1196,2667,1193,2662,1192,2662,1191,2661,1190,2661, 1188,2660,"Q",1187,2660,1186,2660,"Z"]],label:"Chimtal",shortLabel:"CM",labelPosition:[77.1,345.6],labelAlignment:["center","middle"]},"AF.BK.DI":{outlines:[["M",1643,2273,"Q",1641,2274,1639,2275,1633,2278,1627,2285,1626,2287,1624,2288,1618,2291,1615,2297,1612,2301,1606,2303,1604,2304,1602,2304,1597,2303,1597,2307,1597,2308,1596,2308,1591,2311,1586,2318,1585,2319,1584,2320,1581,2324,1579,2325,1575,2327,1572,2329,1568,2331,1563,2337,1561,2339,1557,2342,1552,2345,1549,2352,1547,2358,1544,2364,1538, 2372,1529,2377,1528,2378,1527,2379,1526,2381,1526,2384,1526,2388,1524,2391,1523,2392,1521,2393,1518,2395,1517,2399,1516,2401,1515,2402,1513,2405,1511,2408,1506,2412,1502,2416,1497,2420,1494,2428,1493,2429,1492,2430,1490,2434,1485,2439,1479,2446,1473,2449,1472,2450,1472,2451,1471,2453,1469,2453,1464,2457,1460,2463,1457,2465,1457,2468,1456,2469,1456,2471,1456,2474,1454,2477,1451,2482,1448,2486,1447,2487,1446,2487,1443,2489,1439,2492,1438,2494,1437,2495,1427,2505,1417,2512,1416,2514,1416,2515,1414,2521, 1411,2526,1410,2529,1408,2531,1407,2532,1406,2533,1405,2535,1404,2537,1403,2545,1403,2553,1403,2583,1403,2612,1403,2616,1402,2620,1402,2622,1402,2624,1401,2630,1397,2633,1396,2635,1395,2636,1394,2637,1392,2639,1391,2641,1390,2643,1389,2646,1389,2651,1389,2653,1388,2656,1388,2669,1388,2682,1388,2686,1387,2689,1387,2691,1386,2692,1386,2694,1385,2696,1385,2698,1385,2701,1386,2718,1371,2719,1369,2719,1368,2718,1364,2737,1376,2745,1377,2746,1378,2748,1378,2751,1384,2750,1396,2749,1400,2755,1401,2756,1401, 2757,1403,2760,1404,2761,1407,2764,1408,2767,1409,2769,1411,2769,1415,2770,1419,2771,1419,2772,1419,2773,1419,2782,1420,2790,1420,2791,1420,2791,1422,2799,1427,2804,1434,2810,1438,2815,1442,2819,1448,2821,1450,2822,1453,2822,1461,2823,1463,2828,1465,2832,1467,2834,1469,2835,1469,2837,1471,2842,1478,2841,1482,2841,1483,2843,1485,2844,1486,2845,1490,2845,1491,2847,1492,2848,1493,2849,1497,2854,1501,2862,1502,2863,1503,2864,1508,2868,1513,2873,1513,2874,1514,2875,1516,2878,1518,2880,1523,2885,1522,2894, 1522,2896,1524,2897,1527,2901,1533,2904,1535,2906,1537,2907,1541,2909,1545,2915,1547,2917,1548,2919,1549,2921,1553,2924,1557,2927,1558,2932,1559,2933,1560,2935,1560,2936,1561,2937,1562,2940,1565,2941,1566,2943,1567,2944,1568,2945,1568,2945,1572,2947,1574,2950,1575,2951,1576,2953,1577,2957,1578,2961,1578,2964,1579,2968,1579,2969,1580,2971,1581,2977,1586,2982,1588,2983,1589,2984,1594,2989,1600,2994,1605,2999,1608,3003,1612,3008,1616,3009,1617,3010,1619,3010,1621,3011,1622,3011,1629,3011,1634,3014,1637, 3017,1638,3018,1640,3020,1641,3021,1646,3026,1652,3030,1657,3033,1661,3038,1662,3039,1662,3040,1663,3045,1668,3049,1669,3051,1671,3051,1673,3052,1674,3052,1676,3053,1677,3054,1680,3057,1682,3059,1684,3061,1684,3063,1687,3076,1693,3083,1694,3084,1695,3086,1704,3097,1712,3106,1713,3108,1714,3109,1721,3112,1724,3118,1725,3120,1726,3121,1727,3122,1728,3123,1730,3125,1731,3126,1731,3128,1732,3129,1734,3135,1737,3139,1739,3141,1741,3143,1742,3144,1742,3146,1745,3154,1753,3156,1754,3157,1755,3157,1757,3159, 1757,3160,1758,3161,1759,3163,1759,3164,1760,3166,1762,3173,1767,3177,1768,3177,1769,3177,1770,3178,1772,3178,1801,3178,1830,3178,1844,3178,1857,3176,1859,3176,1861,3175,1865,3173,1869,3169,1876,3165,1884,3165,1885,3165,1886,3164,1891,3157,1901,3159,1910,3161,1916,3154,1920,3150,1926,3148,1934,3144,1940,3138,1941,3137,1943,3137,1945,3136,1946,3134,1949,3133,1950,3130,1951,3129,1951,3127,1950,3116,1953,3106,1954,3105,1955,3104,1960,3100,1959,3089,1958,3083,1961,3080,1963,3078,1964,3074,1964,3073,1965, 3072,1970,3070,1969,3060,1968,3050,1975,3045,1976,3045,1976,3044,1981,3038,1986,3036,1988,3035,1989,3034,1993,3029,1993,3022,1993,3020,1995,3018,1999,3013,2003,3011,2004,3011,2005,3010,2011,3005,2015,3001,2018,2998,2021,2996,2023,2995,2024,2993,2024,2992,2025,2991,2025,2989,2025,2986,2026,2980,2024,2978,2023,2977,2022,2975,2022,2974,2020,2973,2014,2971,2015,2963,2017,2957,2012,2953,2008,2949,2004,2944,1998,2939,1993,2933,1988,2928,1988,2921,1987,2917,1985,2915,1984,2914,1983,2913,1977,2906,1970,2901, 1968,2899,1967,2896,1967,2895,1967,2894,1966,2892,1965,2889,1963,2882,1955,2880,1940,2878,1924,2879,1909,2879,1894,2879,1887,2879,1879,2878,1878,2878,1876,2877,1871,2875,1871,2869,1871,2868,1869,2866,1867,2865,1864,2861,1861,2857,1858,2854,1857,2854,1857,2852,1856,2845,1851,2840,1848,2837,1846,2835,1840,2829,1835,2823,1834,2822,1833,2820,1833,2820,1832,2819,1822,2808,1822,2792,1821,2784,1826,2777,1827,2776,1829,2775,1830,2774,1830,2773,1834,2769,1835,2762,1836,2755,1836,2748,1836,2745,1837,2743,1837, 2742,1838,2740,1838,2739,1839,2738,1843,2735,1843,2726,1843,2722,1846,2720,1847,2719,1847,2718,1848,2716,1852,2712,1857,2707,1861,2701,1863,2697,1864,2693,1864,2688,1865,2684,1865,2684,1866,2683,1871,2679,1874,2674,1874,2673,1874,2671,1874,2670,1874,2669,1874,2665,1874,2661,1873,2659,1872,2658,1868,2651,1869,2643,1870,2639,1870,2636,1871,2631,1868,2629,1866,2628,1864,2626,1861,2621,1858,2617,1857,2616,1857,2614,1857,2606,1856,2597,1856,2596,1854,2594,1846,2586,1846,2572,1846,2567,1845,2562,1845,2561, 1844,2560,1842,2557,1842,2553,1842,2551,1843,2549,1843,2540,1840,2531,1840,2531,1839,2530,1835,2529,1835,2523,1835,2521,1834,2518,1833,2516,1832,2514,1832,2513,1832,2511,1831,2509,1832,2507,1830,2508,1828,2508,1819,2509,1817,2505,1816,2504,1815,2503,1813,2499,1807,2499,1777,2500,1748,2500,1743,2500,1738,2500,1726,2502,1726,2491,1726,2489,1726,2486,1725,2485,1725,2484,1724,2473,1724,2461,1724,2459,1724,2458,1722,2454,1723,2448,1723,2446,1722,2445,1721,2443,1720,2440,1719,2437,1719,2432,1719,2432,1718, 2431,1718,2417,1718,2402,1718,2401,1717,2399,1716,2395,1713,2392,1712,2391,1711,2391,1705,2386,1706,2379,1708,2372,1703,2369,1702,2368,1701,2367,1700,2366,1700,2364,1700,2359,1698,2355,1697,2355,1697,2354,1696,2350,1692,2347,1685,2342,1684,2330,1684,2329,1683,2328,1674,2317,1670,2302,1670,2300,1669,2298,1665,2293,1659,2288,1658,2287,1658,2286,1655,2277,1656,2266,1655,2267,1655,2268,1652,2271,1648,2271,1646,2271,1644,2272,"Q",1644,2272,1643,2273,"Z"]],label:"Dihdadi",shortLabel:"DI",labelPosition:[163.3, 272.2],labelAlignment:["center","middle"]},"AF.BK.SL":{outlines:[["M",1802,3325,"Q",1801,3324,1800,3324,1792,3323,1789,3318,1786,3314,1785,3307,1784,3306,1784,3305,1783,3303,1783,3302,1779,3299,1776,3293,1776,3292,1775,3291,1775,3290,1774,3289,1770,3286,1768,3278,1768,3276,1767,3273,1767,3255,1767,3236,1767,3207,1767,3177,1762,3173,1760,3166,1759,3164,1759,3163,1758,3161,1757,3160,1757,3159,1755,3157,1754,3157,1753,3156,1745,3154,1742,3146,1742,3144,1741,3143,1739,3141,1737,3139,1734,3135,1732,3129, 1731,3128,1731,3126,1730,3125,1728,3123,1727,3122,1726,3121,1725,3120,1724,3118,1721,3112,1714,3109,1713,3108,1712,3106,1704,3097,1695,3086,1694,3084,1693,3083,1687,3076,1684,3063,1684,3061,1682,3059,1680,3057,1677,3054,1676,3053,1674,3052,1673,3052,1671,3051,1669,3051,1668,3049,1663,3045,1662,3040,1662,3039,1661,3038,1657,3033,1652,3030,1646,3026,1641,3021,1640,3020,1638,3018,1637,3017,1634,3014,1629,3011,1622,3011,1621,3011,1619,3010,1617,3010,1616,3009,1612,3008,1608,3003,1605,2999,1600,2994,1594, 2989,1589,2984,1588,2983,1586,2982,1581,2977,1580,2971,1579,2969,1579,2968,1578,2964,1578,2961,1577,2957,1576,2953,1575,2951,1574,2950,1572,2947,1568,2945,1568,2945,1567,2944,1566,2943,1565,2941,1562,2940,1561,2937,1560,2936,1560,2935,1559,2933,1558,2932,1557,2927,1553,2924,1549,2921,1548,2919,1547,2917,1545,2915,1541,2909,1537,2907,1535,2906,1533,2904,1527,2901,1524,2897,1522,2896,1522,2894,1523,2885,1518,2880,1516,2878,1514,2875,1513,2874,1513,2873,1512,2876,1512,2879,1512,2881,1511,2882,1509,2888, 1508,2896,1508,2908,1507,2919,1507,2921,1506,2923,1506,2924,1506,2924,1505,2946,1505,2968,1505,2976,1505,2985,1507,3001,1500,3008,1499,3010,1499,3011,1498,3036,1498,3060,"L",1498,3061,"Q",1498,3071,1498,3080,1498,3110,1498,3139,1498,3142,1497,3144,1496,3147,1496,3151,1496,3153,1495,3154,1491,3159,1485,3164,1479,3170,1477,3178,1477,3181,1475,3183,1474,3184,1473,3184,1472,3188,1469,3191,1467,3193,1467,3198,1469,3205,1461,3208,1460,3209,1460,3210,1456,3221,1448,3228,1446,3230,1444,3230,1435,3234,1434, 3243,1434,3245,1434,3246,1431,3248,1429,3250,1422,3255,1420,3262,1420,3263,1419,3263,1415,3269,1409,3273,1408,3274,1407,3274,1403,3276,1402,3280,1401,3284,1399,3287,1398,3288,1397,3288,1396,3291,1393,3292,1387,3296,1384,3300,1383,3301,1383,3302,1376,3313,1362,3317,1348,3321,1336,3332,1335,3333,1334,3334,1330,3340,1322,3346,1319,3348,1316,3350,1312,3352,1310,3355,1309,3357,1308,3359,1305,3362,1302,3366,1301,3367,1300,3367,1275,3369,1250,3369,1246,3369,1243,3369,1238,3370,1236,3373,1235,3375,1233,3376, 1232,3377,1231,3377,1207,3379,1183,3379,1180,3379,1178,3379,1177,3380,1176,3381,1173,3383,1170,3384,1164,3387,1161,3392,1160,3394,1159,3395,1157,3397,1156,3399,1155,3401,1155,3402,1154,3406,1152,3409,1149,3414,1144,3420,1138,3426,1132,3431,1131,3432,1129,3433,1125,3438,1121,3441,1119,3442,1118,3443,1117,3445,1115,3445,1109,3450,1108,3456,1107,3458,1107,3459,1106,3461,1104,3463,1104,3465,1103,3466,1103,3467,1103,3468,1103,3474,1099,3478,1098,3479,1098,3480,1097,3482,1097,3483,1095,3488,1092,3493,1091, 3495,1090,3496,1089,3498,1087,3500,1084,3504,1079,3508,1072,3514,1069,3520,1069,3522,1068,3523,1068,3524,1067,3525,1066,3529,1062,3532,1060,3534,1059,3536,1058,3541,1054,3547,1052,3549,1051,3552,1050,3554,1049,3555,1049,3556,1048,3557,1044,3563,1043,3570,1043,3571,1042,3572,1041,3574,1040,3575,1037,3580,1035,3587,1035,3589,1035,3590,1034,3602,1030,3611,1029,3612,1028,3613,1025,3617,1023,3619,1023,3621,1021,3622,1021,3623,1021,3624,1018,3632,1013,3639,1012,3641,1012,3642,1011,3646,1009,3649,1004,3657, 1003,3669,1003,3672,1003,3676,1002,3677,1002,3678,1001,3681,1001,3684,999,3692,994,3699,986,3711,980,3721,978,3725,976,3730,976,3731,975,3731,975,3739,972,3744,971,3745,970,3746,970,3748,969,3748,966,3750,967,3755,968,3757,967,3758,963,3764,957,3770,952,3775,946,3778,942,3781,941,3788,941,3790,940,3790,936,3793,935,3798,935,3800,934,3801,931,3805,931,3810,931,3815,930,3814,928,3822,926,3828,925,3829,925,3830,924,3832,923,3833,918,3840,913,3849,912,3850,911,3852,909,3867,900,3875,899,3876,898,3878, 894,3882,890,3887,885,3893,884,3901,884,3902,883,3903,879,3908,876,3912,873,3916,869,3919,868,3920,868,3921,867,3923,867,3924,862,3933,859,3938,858,3939,857,3939,847,3949,845,3964,844,3972,837,3978,831,3983,827,3986,821,3991,820,3998,820,4E3,820,4001,820,4008,817,4013,816,4014,816,4015,815,4017,814,4017,808,4022,805,4028,801,4036,793,4042,789,4046,787,4052,787,4053,786,4054,783,4061,783,4068,783,4070,783,4072,780,4077,777,4084,776,4087,774,4091,773,4092,772,4093,770,4095,767,4099,766,4100,765,4100, 764,4105,762,4107,761,4108,760,4109,758,4112,756,4114,756,4116,754,4116,751,4119,750,4122,750,4133,750,4144,750,4148,747,4151,745,4153,744,4156,743,4158,743,4159,741,4163,740,4166,740,4168,739,4169,737,4171,736,4176,736,4178,734,4179,730,4183,728,4191,728,4193,727,4194,725,4205,726,4216,726,4218,726,4219,724,4223,720,4229,717,4235,713,4241,711,4244,710,4246,703,4256,702,4270,702,4271,702,4271,702,4281,699,4290,699,4292,697,4293,694,4297,693,4300,690,4309,683,4317,682,4319,682,4320,681,4332,673,4342, 671,4344,671,4347,671,4354,670,4360,670,4362,669,4363,664,4366,664,4372,664,4380,661,4386,659,4389,657,4391,660,4395,666,4399,668,4401,672,4403,673,4404,675,4405,681,4413,693,4412,703,4411,711,4417,712,4418,713,4419,717,4422,723,4422,725,4422,726,4422,734,4424,737,4429,739,4431,741,4432,747,4434,753,4436,755,4437,756,4438,761,4443,767,4446,768,4446,770,4446,777,4446,785,4447,786,4447,786,4448,793,4454,797,4456,798,4456,799,4457,803,4458,804,4460,808,4463,812,4465,813,4465,813,4466,815,4466,817,4466, 846,4466,875,4466,896,4466,917,4467,920,4467,922,4467,951,4468,979,4468,1008,4468,1036,4468,1064,4468,1092,4468,1120,4468,1149,4468,1178,4468,1208,4468,1237,4468,1266,4468,1271,4468,1276,4468,1272,4469,1277,4472,1278,4473,1280,4473,1282,4474,1283,4474,1290,4475,1297,4476,1298,4476,1300,4477,1304,4479,1307,4483,1311,4489,1318,4489,1323,4490,1328,4490,1330,4491,1332,4491,1336,4491,1340,4492,1342,4492,1344,4493,1345,4494,1345,4495,1347,4498,1349,4499,1352,4500,1353,4503,1354,4504,1355,4505,1356,4506, 1357,4506,1361,4509,1367,4509,1371,4508,1375,4511,1382,4515,1386,4521,1387,4522,1389,4522,1393,4522,1396,4523,1404,4527,1409,4533,1411,4534,1412,4535,1413,4537,1414,4537,1416,4538,1417,4539,1422,4541,1427,4542,1428,4543,1429,4543,1435,4545,1442,4546,1443,4546,1444,4546,1447,4547,1449,4547,1456,4547,1461,4550,1463,4551,1466,4552,1472,4554,1476,4558,1483,4565,1491,4567,1492,4568,1493,4568,1500,4574,1508,4582,1514,4588,1519,4593,1520,4594,1520,4595,1521,4596,1521,4597,1526,4602,1530,4609,1531,4610,1531, 4610,1532,4611,1533,4612,1537,4614,1540,4616,1541,4616,1541,4617,1544,4618,1547,4620,1548,4620,1550,4621,1553,4621,1555,4623,1557,4624,1558,4624,1562,4626,1563,4629,1565,4633,1566,4637,1567,4639,1568,4641,1576,4647,1579,4654,1579,4655,1580,4656,1584,4659,1587,4662,1590,4666,1596,4670,1598,4671,1599,4672,1600,4674,1602,4674,1605,4675,1607,4679,1608,4680,1609,4681,1619,4687,1627,4696,1628,4698,1628,4699,1629,4704,1632,4705,1633,4705,1634,4706,1636,4712,1641,4716,1642,4717,1643,4718,1650,4724,1656,4728, 1657,4729,1657,4729,1662,4733,1666,4737,1667,4738,1668,4738,1672,4741,1675,4742,1680,4746,1686,4751,1689,4754,1690,4757,1694,4762,1698,4768,1699,4769,1699,4770,1702,4777,1706,4781,1708,4783,1710,4785,1718,4792,1724,4799,1728,4803,1730,4810,1730,4811,1731,4812,1736,4818,1741,4821,1743,4822,1744,4824,1753,4833,1758,4842,1759,4843,1760,4844,1762,4847,1765,4849,1767,4850,1770,4852,1770,4849,1772,4847,1773,4846,1774,4845,1784,4832,1796,4823,1798,4822,1799,4821,1802,4818,1805,4813,1809,4807,1813,4803,1824, 4794,1832,4782,1837,4776,1841,4771,1848,4764,1855,4760,1856,4759,1857,4758,1862,4752,1869,4748,1870,4747,1870,4746,1872,4745,1873,4743,1877,4740,1881,4735,1882,4734,1882,4733,1886,4732,1886,4728,1887,4727,1887,4726,1887,4722,1891,4718,1896,4713,1901,4708,1907,4701,1911,4698,1915,4693,1917,4690,1920,4686,1926,4682,1928,4681,1929,4679,1933,4677,1934,4674,1935,4673,1936,4671,1937,4670,1937,4669,1939,4668,1940,4667,1942,4665,1943,4661,1944,4660,1944,4659,1950,4655,1952,4651,1954,4649,1955,4648,1958,4646, 1961,4642,1969,4631,1978,4624,1979,4623,1980,4622,1986,4616,1990,4610,1991,4610,1991,4609,1998,4604,2004,4598,2011,4593,2015,4590,2017,4590,2018,4589,2025,4585,2030,4580,2035,4576,2039,4573,2047,4568,2053,4560,2054,4559,2055,4559,2061,4558,2065,4555,2071,4551,2075,4546,2078,4542,2086,4539,2087,4538,2088,4537,2090,4537,2091,4536,2100,4530,2107,4520,2108,4519,2109,4519,2114,4516,2117,4513,2118,4512,2119,4512,2122,4510,2126,4509,2124,4508,2125,4505,2125,4501,2125,4496,2125,4495,2124,4493,2124,4466,2124, 4439,2124,4423,2123,4407,2123,4401,2117,4397,2112,4395,2110,4391,2109,4387,2108,4382,2107,4378,2105,4374,2105,4373,2104,4372,2103,4371,2102,4369,2101,4367,2101,4365,2100,4364,2100,4363,2098,4361,2097,4359,2096,4357,2095,4356,2091,4354,2091,4350,2090,4349,2090,4347,2089,4346,2089,4345,2088,4344,2088,4342,2088,4341,2087,4340,2086,4339,2086,4337,2085,4332,2084,4328,2083,4327,2083,4326,2078,4316,2073,4305,2070,4297,2065,4290,2064,4288,2063,4287,2059,4285,2059,4280,2058,4278,2057,4277,2055,4273,2055,4268, 2055,4267,2054,4265,2053,4262,2052,4260,2050,4253,2046,4248,2046,4247,2045,4246,2045,4245,2044,4243,2043,4242,2043,4241,2041,4236,2038,4231,2037,4230,2036,4228,2029,4216,2020,4210,2018,4209,2017,4207,2016,4206,2014,4205,2011,4201,2009,4194,2009,4193,2007,4192,1994,4183,1988,4174,1987,4173,1986,4171,1981,4167,1977,4164,1974,4162,1972,4160,1971,4158,1969,4158,1968,4158,1967,4158,1966,4157,1965,4154,1965,4152,1965,4151,1964,4149,1963,4148,1962,4145,1961,4141,1960,4135,1958,4130,1955,4125,1955,4117,1956, 4103,1956,4089,1957,4083,1954,4079,1953,4077,1952,4075,1951,4048,1951,4021,1951,4017,1951,4013,1952,4012,1952,4010,1953,3995,1953,3979,1953,3951,1953,3922,1953,3894,1952,3866,1944,3846,1935,3832,1934,3830,1932,3829,1928,3823,1926,3817,1923,3811,1921,3807,1920,3805,1919,3803,1915,3797,1914,3791,1913,3785,1909,3780,1909,3779,1909,3778,1909,3772,1906,3768,1905,3767,1905,3766,1904,3765,1903,3764,1901,3762,1899,3760,1898,3758,1898,3756,1897,3755,1896,3753,1893,3748,1895,3739,1895,3733,1892,3729,1892,3729, 1891,3728,1887,3722,1882,3718,1881,3716,1879,3714,1869,3704,1863,3691,1861,3687,1858,3685,1857,3683,1856,3682,1853,3678,1849,3676,1843,3672,1837,3671,1836,3671,1834,3670,1833,3670,1832,3669,1830,3668,1827,3666,1826,3666,1825,3664,1819,3657,1814,3654,1812,3653,1811,3652,1807,3647,1802,3643,1796,3637,1788,3637,1785,3637,1782,3637,1781,3636,1780,3636,1775,3636,1772,3632,1771,3631,1770,3631,1762,3632,1757,3625,1756,3624,1756,3622,1755,3598,1755,3575,1755,3546,1755,3516,1755,3512,1755,3508,1756,3506,1756, 3505,1758,3498,1759,3491,1760,3490,1760,3488,1762,3484,1765,3481,1766,3480,1767,3479,1771,3477,1772,3474,1773,3473,1774,3471,1778,3466,1780,3461,1781,3459,1782,3458,1790,3450,1795,3442,1796,3441,1797,3440,1800,3436,1802,3434,1803,3433,1803,3432,1805,3431,1805,3429,1807,3412,1807,3394,1807,3365,1807,3337,1807,3333,1806,3330,"Q",1805,3327,1802,3325,"Z"]],label:"Sholgara",shortLabel:"SL",labelPosition:[139.1,386.2],labelAlignment:["center","middle"]},"AF.BK.CK":{outlines:[["M",2858,2893,"Q",2854,2896, 2851,2897,2848,2898,2846,2902,2846,2904,2845,2905,2844,2907,2843,2909,2841,2911,2840,2912,2837,2914,2834,2916,2829,2920,2827,2924,2826,2925,2826,2926,2820,2935,2807,2939,2804,2940,2800,2941,2799,2942,2797,2943,2795,2945,2794,2948,2793,2949,2792,2949,2786,2954,2779,2958,2773,2961,2767,2966,2766,2968,2764,2969,2762,2970,2761,2972,2756,2977,2748,2978,2747,2979,2746,2980,2744,2983,2740,2986,2738,2987,2737,2988,2726,2999,2710,2998,2700,2997,2695,3003,2694,3005,2692,3006,2690,3007,2688,3008,2687,3009,2686, 3009,2685,3011,2684,3012,2682,3014,2680,3015,2673,3018,2668,3021,2665,3022,2663,3024,2656,3028,2652,3033,2652,3034,2651,3035,2647,3038,2645,3039,2641,3042,2638,3047,2636,3050,2634,3053,2633,3054,2632,3055,2628,3060,2624,3062,2618,3066,2614,3070,2608,3075,2608,3082,2608,3083,2608,3083,2607,3088,2604,3089,2603,3089,2603,3090,2602,3095,2599,3098,2597,3100,2596,3101,2592,3105,2587,3110,2586,3111,2586,3112,2585,3115,2583,3116,2579,3119,2577,3124,2576,3125,2575,3125,2569,3127,2565,3130,2560,3136,2557,3140, 2553,3145,2545,3148,2545,3148,2544,3148,2542,3149,2541,3149,2539,3151,2537,3152,2533,3155,2528,3161,2526,3165,2523,3166,2518,3168,2513,3171,2508,3174,2504,3177,2500,3181,2493,3187,2488,3192,2483,3195,2482,3197,2480,3197,2478,3198,2476,3198,2447,3198,2418,3198,2409,3198,2401,3197,2398,3197,2394,3196,2389,3196,2384,3196,2355,3196,2325,3196,2312,3196,2299,3196,2286,3197,2275,3195,2274,3194,2272,3194,2270,3193,2269,3190,2266,3183,2261,3178,2260,3176,2259,3174,2258,3171,2256,3167,2255,3164,2254,3161,2253, 3159,2252,3158,2252,3157,2250,3155,2248,3154,2246,3153,2243,3152,2240,3152,2238,3152,2237,3150,2236,3147,2234,3145,2231,3142,2226,3137,2226,3136,2225,3136,2219,3132,2215,3125,2213,3121,2209,3115,2209,3115,2209,3114,2208,3110,2205,3107,2194,3098,2189,3085,2187,3080,2181,3075,2180,3074,2177,3073,2169,3069,2166,3060,2165,3058,2165,3057,2165,3052,2163,3051,2161,3050,2160,3048,2159,3045,2156,3044,2149,3041,2143,3035,2142,3033,2142,3031,2141,3026,2138,3024,2136,3023,2134,3020,2133,3019,2132,3018,2128,3015, 2124,3011,2121,3008,2120,3002,2119,3004,2115,3004,2106,3005,2097,3005,2089,3005,2082,3005,2075,3006,2070,3003,2069,3002,2069,3001,2069,2994,2066,2990,2064,2988,2063,2988,2045,2986,2025,2986,2025,2989,2025,2991,2024,2992,2024,2993,2023,2995,2021,2996,2018,2998,2015,3001,2011,3005,2005,3010,2004,3011,2003,3011,1999,3013,1995,3018,1993,3020,1993,3022,1993,3029,1989,3034,1988,3035,1986,3036,1981,3038,1976,3044,1976,3045,1975,3045,1968,3050,1969,3060,1970,3070,1965,3072,1964,3073,1964,3074,1963,3078,1961, 3080,1958,3083,1959,3089,1960,3100,1955,3104,1954,3105,1953,3106,1950,3116,1951,3127,1951,3129,1950,3130,1949,3133,1946,3134,1945,3136,1943,3137,1941,3137,1940,3138,1934,3144,1926,3148,1920,3150,1916,3154,1910,3161,1901,3159,1891,3157,1886,3164,1885,3165,1884,3165,1876,3165,1869,3169,1865,3173,1861,3175,1859,3176,1857,3176,1844,3178,1830,3178,1801,3178,1772,3178,1770,3178,1769,3177,1768,3177,1767,3177,1767,3207,1767,3236,1767,3255,1767,3273,1768,3276,1768,3278,1770,3286,1774,3289,1775,3290,1775,3291, 1776,3292,1776,3293,1779,3299,1783,3302,1783,3303,1784,3305,1784,3306,1785,3307,1786,3314,1789,3318,1792,3323,1800,3324,1801,3324,1802,3325,1805,3327,1806,3330,1807,3333,1807,3337,1807,3365,1807,3394,1807,3412,1805,3429,1805,3431,1803,3432,1803,3433,1802,3434,1800,3436,1797,3440,1796,3441,1795,3442,1790,3450,1782,3458,1781,3459,1780,3461,1778,3466,1774,3471,1773,3473,1772,3474,1771,3477,1767,3479,1766,3480,1765,3481,1762,3484,1760,3488,1760,3490,1759,3491,1758,3498,1756,3505,1756,3506,1755,3508,1755, 3512,1755,3516,1755,3546,1755,3575,1755,3598,1756,3622,1756,3624,1757,3625,1762,3632,1770,3631,1771,3631,1772,3632,1775,3636,1780,3636,1781,3636,1782,3637,1785,3637,1788,3637,1796,3637,1802,3643,1807,3647,1811,3652,1812,3653,1814,3654,1819,3657,1825,3664,1826,3666,1827,3666,1830,3668,1832,3669,1833,3670,1834,3670,1836,3671,1837,3671,1843,3672,1849,3676,1853,3678,1856,3682,1857,3683,1858,3685,1861,3687,1863,3691,1869,3704,1879,3714,1881,3716,1882,3718,1887,3722,1891,3728,1892,3729,1892,3729,1895,3733, 1895,3739,1893,3748,1896,3753,1897,3755,1898,3756,1898,3758,1899,3760,1901,3762,1903,3764,1904,3765,1905,3766,1905,3767,1906,3768,1909,3772,1909,3778,1909,3779,1909,3780,1913,3785,1914,3791,1915,3797,1919,3803,1920,3805,1921,3807,1923,3811,1926,3817,1928,3823,1932,3829,1934,3830,1935,3832,1944,3846,1952,3866,1953,3894,1953,3922,1953,3951,1953,3979,1953,3995,1952,4010,1952,4012,1951,4013,1951,4017,1951,4021,1951,4048,1952,4075,1953,4077,1954,4079,1957,4083,1956,4089,1956,4103,1955,4117,1955,4125,1958, 4130,1960,4135,1961,4141,1962,4145,1963,4148,1964,4149,1965,4151,1965,4152,1965,4154,1966,4157,1967,4158,1968,4158,1969,4158,1971,4158,1972,4160,1974,4162,1977,4164,1981,4167,1986,4171,1987,4173,1988,4174,1994,4183,2007,4192,2009,4193,2009,4194,2011,4201,2014,4205,2016,4206,2017,4207,2018,4209,2020,4210,2029,4216,2036,4228,2037,4230,2038,4231,2041,4236,2043,4241,2043,4242,2044,4243,2045,4245,2045,4246,2046,4247,2046,4248,2050,4253,2052,4260,2053,4262,2054,4265,2055,4267,2055,4268,2055,4273,2057,4277, 2058,4278,2059,4280,2059,4285,2063,4287,2064,4288,2065,4290,2070,4297,2073,4305,2078,4316,2083,4326,2083,4327,2084,4328,2085,4332,2086,4337,2086,4339,2087,4340,2088,4341,2088,4342,2088,4344,2089,4345,2089,4346,2090,4347,2090,4349,2091,4350,2091,4354,2095,4356,2096,4357,2097,4359,2098,4361,2100,4363,2100,4364,2101,4365,2101,4367,2102,4369,2103,4371,2104,4372,2105,4373,2105,4374,2107,4378,2108,4382,2109,4387,2110,4391,2112,4395,2117,4397,2123,4401,2123,4407,2124,4423,2124,4439,2124,4466,2124,4493,2125, 4495,2125,4496,2125,4501,2125,4505,2124,4508,2126,4509,2132,4508,2137,4505,2138,4504,2139,4504,2147,4502,2154,4496,2157,4494,2159,4492,2170,4484,2178,4475,2179,4474,2181,4473,2186,4471,2189,4463,2200,4458,2211,4454,2216,4452,2219,4449,2229,4440,2242,4435,2243,4434,2244,4433,2250,4430,2256,4424,2260,4421,2266,4419,2267,4418,2268,4418,2274,4414,2279,4410,2282,4409,2283,4409,2288,4408,2290,4404,2292,4401,2295,4399,2301,4395,2305,4393,2307,4392,2308,4390,2309,4388,2312,4388,2321,4386,2325,4381,2330,4376, 2335,4373,2341,4369,2345,4364,2346,4363,2347,4362,2349,4361,2352,4358,2354,4356,2354,4355,2356,4351,2360,4349,2363,4347,2365,4345,2370,4338,2375,4334,2376,4333,2377,4332,2380,4327,2384,4324,2387,4321,2390,4318,2392,4317,2393,4315,2394,4314,2396,4312,2404,4301,2413,4292,2418,4286,2422,4283,2426,4281,2431,4275,2436,4268,2441,4265,2443,4263,2444,4260,2445,4258,2446,4257,2449,4255,2451,4253,2453,4250,2455,4246,2455,4246,2456,4245,2457,4243,2458,4241,2459,4240,2461,4238,2465,4236,2467,4232,2469,4231,2469, 4230,2470,4229,2471,4228,2472,4226,2473,4225,2476,4223,2479,4219,2486,4210,2495,4203,2501,4197,2504,4192,2511,4184,2520,4177,2521,4177,2521,4176,2523,4175,2524,4174,2526,4173,2527,4171,2529,4170,2531,4169,2532,4168,2534,4167,2536,4165,2537,4162,2537,4162,2538,4161,2540,4160,2541,4159,2544,4154,2550,4149,2551,4147,2554,4144,2560,4137,2566,4130,2568,4129,2569,4128,2571,4126,2575,4124,2576,4123,2576,4122,2578,4118,2580,4117,2581,4116,2582,4115,2583,4114,2584,4113,2589,4108,2593,4102,2595,4100,2597,4097, 2599,4095,2600,4094,2605,4087,2612,4084,2615,4082,2618,4079,2623,4073,2630,4067,2637,4060,2640,4055,2643,4051,2645,4047,2647,4043,2649,4040,2650,4038,2651,4037,2654,4031,2659,4028,2662,4026,2663,4021,2663,4021,2663,4020,2663,4015,2667,4014,2668,4014,2669,4013,2674,4007,2681,4005,2683,4004,2684,4003,2685,4002,2686,4001,2692,3997,2696,3993,2700,3987,2706,3983,2708,3981,2709,3978,2710,3976,2711,3975,2715,3972,2717,3970,2721,3964,2724,3963,2732,3960,2738,3956,2740,3955,2741,3954,2746,3948,2752,3943,2754, 3942,2756,3942,2765,3941,2771,3936,2772,3935,2773,3934,2777,3928,2785,3928,2787,3928,2787,3927,2792,3922,2796,3919,2798,3918,2800,3917,2804,3916,2808,3915,2810,3915,2812,3914,2816,3913,2820,3907,2822,3906,2825,3905,2826,3905,2827,3905,2829,3903,2830,3901,2833,3898,2838,3897,2844,3896,2849,3899,2850,3900,2850,3900,2852,3902,2853,3903,2855,3908,2862,3909,2864,3910,2865,3911,2869,3915,2874,3917,2876,3917,2877,3918,2883,3923,2890,3927,2892,3928,2894,3928,2899,3928,2902,3931,2904,3933,2906,3936,2906,3921, 2906,3906,2906,3903,2906,3901,2907,3899,2907,3897,2909,3890,2911,3884,2912,3883,2913,3882,2915,3879,2916,3876,2917,3875,2917,3874,2918,3861,2918,3849,2918,3820,2918,3790,2918,3789,2918,3787,2920,3784,2920,3780,2918,3764,2920,3750,2921,3748,2921,3747,2924,3742,2923,3735,2923,3733,2924,3732,2924,3731,2924,3730,2926,3716,2926,3701,2926,3699,2926,3696,2927,3695,2927,3694,2929,3691,2930,3688,2930,3686,2931,3684,2931,3680,2932,3676,2932,3674,2933,3673,2941,3665,2944,3652,2944,3651,2945,3649,2949,3639,2952, 3629,2957,3624,2963,3617,2965,3614,2966,3613,2969,3610,2969,3605,2969,3604,2970,3603,2972,3598,2975,3594,2976,3592,2977,3590,2978,3587,2978,3584,2978,3554,2978,3525,2978,3521,2977,3517,2975,3499,2989,3488,2991,3487,2991,3485,2993,3464,2992,3444,2992,3429,2991,3414,2991,3413,2991,3411,2987,3403,2983,3397,2982,3396,2981,3394,2978,3388,2979,3381,2980,3373,2975,3368,2973,3364,2972,3361,2971,3349,2963,3340,2962,3339,2962,3337,2961,3331,2961,3324,2961,3317,2960,3310,2959,3303,2954,3297,2953,3295,2952,3294, 2945,3287,2946,3278,2946,3277,2945,3276,2943,3274,2942,3270,2942,3264,2938,3259,2937,3258,2937,3257,2937,3249,2935,3241,2934,3240,2934,3239,2932,3237,2931,3235,2930,3231,2929,3228,2926,3221,2926,3213,2926,3211,2925,3210,2919,3202,2917,3191,2917,3190,2916,3188,2916,3172,2916,3156,2916,3148,2912,3142,2912,3141,2910,3139,2908,3137,2908,3134,2907,3133,2907,3131,2906,3130,2906,3129,2905,3121,2905,3114,2904,3097,2904,3080,2904,3074,2903,3067,2902,3052,2902,3037,2902,3035,2902,3034,2900,3031,2901,3027,2901, 3019,2898,3012,2895,3005,2894,3E3,2893,2998,2892,2997,2889,2994,2890,2990,2890,2983,2891,2976,2891,2971,2889,2966,2888,2966,2888,2965,2887,2963,2887,2962,2886,2960,2886,2958,2885,2951,2885,2944,2885,2943,2885,2941,2883,2939,2883,2934,2883,2933,2883,2931,2882,2927,2882,2923,2881,2921,2881,2919,2882,2911,2877,2905,2876,2904,2875,2903,2865,2897,2865,2885,"Q",2862,2889,2858,2893,"Z"]],label:"Chahar Kint",shortLabel:"CK",labelPosition:[237.3,369.7],labelAlignment:["center","middle"]},"AF.BK.MM":{outlines:[["M", 2803,2447,"Q",2802,2449,2800,2450,2799,2451,2798,2452,2797,2453,2795,2453,2791,2455,2787,2455,2782,2456,2779,2458,2777,2460,2774,2460,2771,2461,2768,2462,2767,2462,2765,2462,2758,2462,2756,2466,2756,2467,2755,2468,2749,2472,2745,2476,2741,2480,2735,2480,2733,2480,2732,2480,2727,2482,2723,2486,2721,2487,2720,2489,2717,2494,2709,2495,2708,2495,2706,2495,2700,2498,2696,2501,2694,2502,2693,2503,2691,2503,2689,2503,2660,2503,2630,2503,2624,2503,2617,2503,2608,2502,2602,2507,2596,2512,2590,2514,2589,2514, 2587,2514,2567,2515,2547,2515,2539,2515,2532,2514,2526,2513,2524,2517,2524,2518,2523,2518,2511,2518,2498,2518,2492,2518,2487,2520,2480,2524,2476,2530,2475,2532,2472,2533,2471,2533,2470,2534,2465,2537,2459,2535,2452,2534,2448,2536,2444,2538,2440,2541,2439,2543,2438,2543,2433,2544,2430,2547,2429,2548,2428,2549,2427,2550,2426,2551,2421,2554,2418,2559,2414,2564,2414,2570,2414,2572,2413,2572,2408,2576,2407,2582,2407,2584,2405,2585,2400,2590,2398,2597,2396,2603,2392,2609,2391,2611,2390,2612,2390,2620,2386, 2624,2383,2627,2379,2632,2378,2634,2377,2635,2374,2637,2370,2642,2370,2643,2369,2644,2364,2646,2359,2648,2358,2648,2357,2649,2356,2649,2355,2650,2353,2652,2350,2654,2349,2655,2347,2656,2346,2658,2345,2658,2340,2660,2335,2661,2334,2662,2332,2663,2330,2666,2329,2668,2328,2669,2327,2669,2322,2674,2315,2678,2314,2679,2313,2680,2312,2683,2308,2683,2308,2684,2307,2684,2305,2689,2300,2689,2299,2689,2297,2690,2296,2690,2295,2691,2291,2691,2288,2692,2288,2692,2287,2693,2287,2699,2287,2704,2287,2734,2287,2763, 2287,2765,2286,2767,2285,2771,2280,2775,2275,2780,2268,2782,2267,2783,2267,2783,2264,2787,2260,2787,2258,2787,2257,2788,2253,2791,2248,2793,2245,2794,2243,2794,2238,2795,2236,2798,2236,2799,2235,2800,2230,2801,2227,2805,2224,2810,2219,2810,2212,2810,2204,2810,2203,2810,2202,2811,2200,2812,2198,2812,2182,2814,2167,2813,2162,2813,2160,2816,2154,2822,2149,2823,2136,2828,2120,2827,2118,2827,2115,2827,2115,2828,2114,2829,2110,2832,2109,2835,2107,2846,2095,2849,2094,2850,2093,2851,2085,2861,2087,2877,2087, 2879,2087,2881,2088,2882,2088,2882,2091,2893,2090,2906,2090,2908,2091,2909,2092,2914,2094,2916,2096,2919,2097,2921,2100,2924,2104,2929,2105,2930,2105,2931,2105,2938,2105,2944,2105,2945,2104,2946,2104,2948,2104,2949,2103,2957,2105,2963,2105,2965,2106,2966,2110,2971,2115,2976,2119,2980,2120,2985,2120,2991,2121,2996,2121,3E3,2120,3002,2121,3008,2124,3011,2128,3015,2132,3018,2133,3019,2134,3020,2136,3023,2138,3024,2141,3026,2142,3031,2142,3033,2143,3035,2149,3041,2156,3044,2159,3045,2160,3048,2161,3050, 2163,3051,2165,3052,2165,3057,2165,3058,2166,3060,2169,3069,2177,3073,2180,3074,2181,3075,2187,3080,2189,3085,2194,3098,2205,3107,2208,3110,2209,3114,2209,3115,2209,3115,2213,3121,2215,3125,2219,3132,2225,3136,2226,3136,2226,3137,2231,3142,2234,3145,2236,3147,2237,3150,2238,3152,2240,3152,2243,3152,2246,3153,2248,3154,2250,3155,2252,3157,2252,3158,2253,3159,2254,3161,2255,3164,2256,3167,2258,3171,2259,3174,2260,3176,2261,3178,2266,3183,2269,3190,2270,3193,2272,3194,2274,3194,2275,3195,2286,3197,2299, 3196,2312,3196,2325,3196,2355,3196,2384,3196,2389,3196,2394,3196,2398,3197,2401,3197,2409,3198,2418,3198,2447,3198,2476,3198,2478,3198,2480,3197,2482,3197,2483,3195,2488,3192,2493,3187,2500,3181,2504,3177,2508,3174,2513,3171,2518,3168,2523,3166,2526,3165,2528,3161,2533,3155,2537,3152,2539,3151,2541,3149,2542,3149,2544,3148,2545,3148,2545,3148,2553,3145,2557,3140,2560,3136,2565,3130,2569,3127,2575,3125,2576,3125,2577,3124,2579,3119,2583,3116,2585,3115,2586,3112,2586,3111,2587,3110,2592,3105,2596,3101, 2597,3100,2599,3098,2602,3095,2603,3090,2603,3089,2604,3089,2607,3088,2608,3083,2608,3083,2608,3082,2608,3075,2614,3070,2618,3066,2624,3062,2628,3060,2632,3055,2633,3054,2634,3053,2636,3050,2638,3047,2641,3042,2645,3039,2647,3038,2651,3035,2652,3034,2652,3033,2656,3028,2663,3024,2665,3022,2668,3021,2673,3018,2680,3015,2682,3014,2684,3012,2685,3011,2686,3009,2687,3009,2688,3008,2690,3007,2692,3006,2694,3005,2695,3003,2700,2997,2710,2998,2726,2999,2737,2988,2738,2987,2740,2986,2744,2983,2746,2980,2747, 2979,2748,2978,2756,2977,2761,2972,2762,2970,2764,2969,2766,2968,2767,2966,2773,2961,2779,2958,2786,2954,2792,2949,2793,2949,2794,2948,2795,2945,2797,2943,2799,2942,2800,2941,2804,2940,2807,2939,2820,2935,2826,2926,2826,2925,2827,2924,2829,2920,2834,2916,2837,2914,2840,2912,2841,2911,2843,2909,2844,2907,2845,2905,2846,2904,2846,2902,2848,2898,2851,2897,2854,2896,2858,2893,2862,2889,2865,2885,2865,2883,2867,2881,2867,2881,2867,2880,2866,2873,2869,2867,2869,2865,2869,2864,2869,2856,2876,2853,2877,2853, 2877,2852,2877,2838,2877,2823,2876,2808,2879,2793,2879,2792,2880,2790,2882,2785,2885,2782,2886,2782,2886,2780,2888,2776,2890,2771,2891,2770,2890,2768,2890,2762,2891,2759,2892,2758,2892,2756,2892,2727,2892,2698,2892,2668,2892,2639,2892,2631,2892,2622,2892,2621,2891,2621,2885,2617,2879,2610,2875,2605,2875,2599,2874,2594,2874,2590,2873,2589,2873,2587,2872,2583,2872,2578,2872,2564,2871,2550,2871,2548,2870,2546,2867,2540,2867,2531,2868,2526,2866,2523,2864,2522,2862,2519,2861,2518,2860,2516,2860,2516,2859, 2515,2855,2512,2854,2508,2851,2500,2843,2492,2842,2490,2841,2487,2840,2482,2838,2476,2837,2472,2834,2471,2829,2468,2823,2463,2817,2458,2811,2452,2808,2448,2805,2443,"Q",2804,2446,2803,2447,"Z"]],label:"Marmul",shortLabel:"MM",labelPosition:[248.9,282],labelAlignment:["center","middle"]},"AF.BK.KI":{outlines:[["M",1579,4654,"Q",1576,4647,1568,4641,1567,4639,1566,4637,1565,4633,1563,4629,1562,4626,1558,4624,1557,4624,1555,4623,1553,4621,1550,4621,1548,4620,1547,4620,1544,4618,1541,4617,1541,4616,1540, 4616,1537,4614,1533,4612,1532,4611,1531,4610,1531,4610,1530,4609,1526,4602,1521,4597,1521,4596,1520,4595,1520,4594,1519,4593,1514,4588,1508,4582,1500,4574,1493,4568,1492,4568,1491,4567,1483,4565,1476,4558,1472,4554,1466,4552,1463,4551,1461,4550,1456,4547,1449,4547,1447,4547,1444,4546,1443,4546,1442,4546,1435,4545,1429,4543,1428,4543,1427,4542,1422,4541,1417,4539,1416,4538,1414,4537,1413,4537,1412,4535,1411,4534,1409,4533,1404,4527,1396,4523,1393,4522,1389,4522,1387,4522,1386,4521,1382,4515,1375,4511, 1371,4508,1367,4509,1361,4509,1357,4506,1356,4506,1355,4505,1354,4504,1353,4503,1352,4500,1349,4499,1347,4498,1345,4495,1345,4494,1344,4493,1342,4492,1340,4492,1336,4491,1332,4491,1330,4491,1328,4490,1323,4490,1318,4489,1311,4489,1307,4483,1304,4479,1300,4477,1298,4476,1297,4476,1290,4475,1283,4474,1282,4474,1280,4473,1278,4473,1277,4472,1272,4469,1276,4468,1271,4468,1266,4468,1237,4468,1208,4468,1178,4468,1149,4468,1120,4468,1092,4468,1064,4468,1036,4468,1008,4468,979,4468,951,4468,922,4467,920, 4467,917,4467,896,4466,875,4466,846,4466,817,4466,815,4466,813,4466,813,4465,812,4465,808,4463,804,4460,803,4458,799,4457,798,4456,797,4456,793,4454,786,4448,786,4447,785,4447,777,4446,770,4446,768,4446,767,4446,761,4443,756,4438,755,4437,753,4436,747,4434,741,4432,739,4431,737,4429,734,4424,726,4422,725,4422,723,4422,717,4422,713,4419,712,4418,711,4417,703,4411,693,4412,681,4413,675,4405,673,4404,672,4403,668,4401,666,4399,660,4395,657,4391,656,4394,654,4396,650,4400,647,4403,642,4407,639,4412,638, 4414,637,4417,637,4419,635,4420,629,4424,624,4433,620,4439,612,4443,605,4446,604,4453,604,4454,603,4455,602,4457,601,4458,600,4460,598,4460,597,4461,596,4462,592,4465,585,4467,587,4489,587,4510,587,4539,587,4568,587,4598,586,4627,586,4636,590,4640,591,4641,592,4642,595,4645,595,4647,595,4675,595,4703,595,4732,595,4761,595,4776,596,4791,596,4800,597,4810,597,4813,597,4817,598,4818,598,4820,599,4822,599,4823,601,4838,600,4854,600,4855,601,4856,602,4859,603,4861,604,4862,605,4863,609,4871,614,4877,615, 4878,615,4879,615,4896,615,4912,615,4914,616,4915,619,4918,619,4922,620,4923,620,4924,623,4928,625,4932,628,4939,628,4947,627,4955,628,4963,628,4964,628,4964,629,4966,630,4967,634,4973,633,4981,631,4992,634,5003,635,5008,640,5013,642,5015,641,5016,640,5021,640,5026,641,5033,641,5040,642,5041,642,5041,642,5043,643,5044,644,5046,645,5047,647,5050,649,5050,653,5050,654,5053,654,5055,654,5057,654,5070,654,5083,654,5086,654,5088,655,5089,655,5090,657,5098,664,5104,665,5105,666,5108,666,5115,665,5122,663, 5139,672,5149,673,5151,674,5152,677,5158,676,5165,676,5179,675,5192,675,5198,677,5202,679,5204,681,5207,682,5209,683,5210,687,5212,687,5217,688,5241,687,5264,687,5279,690,5293,690,5295,691,5296,693,5297,694,5298,696,5300,698,5303,699,5304,699,5305,701,5313,701,5321,701,5351,701,5380,701,5382,701,5384,702,5385,702,5385,703,5390,704,5395,705,5397,705,5399,706,5418,706,5437,706,5443,704,5447,702,5452,700,5456,699,5458,697,5459,695,5462,696,5469,696,5471,695,5472,693,5477,689,5482,688,5484,686,5486,686, 5488,685,5489,682,5495,683,5503,684,5512,678,5518,677,5520,675,5521,671,5525,670,5531,670,5533,670,5535,670,5543,664,5550,663,5551,663,5551,661,5555,660,5558,660,5560,660,5561,661,5572,656,5580,655,5582,653,5583,643,5592,646,5607,647,5613,644,5615,643,5616,643,5617,642,5620,642,5623,642,5624,641,5625,641,5629,640,5634,640,5635,639,5637,635,5645,629,5649,627,5650,626,5652,625,5656,625,5660,625,5665,624,5669,623,5671,623,5672,623,5679,620,5684,620,5685,619,5686,619,5687,618,5689,617,5691,619,5697,619, 5699,619,5701,620,5707,615,5710,606,5717,607,5728,607,5730,606,5731,605,5732,603,5734,600,5739,599,5748,599,5750,598,5751,596,5757,592,5760,591,5761,590,5761,589,5764,588,5766,588,5774,586,5780,585,5782,584,5782,580,5787,578,5791,576,5798,577,5807,577,5811,575,5813,572,5814,570,5818,569,5819,569,5820,566,5826,567,5833,569,5843,562,5847,561,5848,560,5848,558,5850,557,5852,554,5858,554,5867,554,5873,553,5879,553,5880,552,5880,552,5890,552,5899,552,5904,551,5909,551,5911,549,5912,547,5913,544,5918,540, 5922,539,5931,539,5932,539,5932,538,5934,538,5936,538,5937,537,5937,537,5939,536,5941,535,5944,533,5946,530,5948,529,5952,529,5953,529,5954,528,5957,527,5959,525,5963,523,5966,520,5969,515,5972,513,5974,511,5974,503,5975,499,5981,499,5982,498,5982,486,5983,476,5989,473,5991,469,5993,468,5994,466,5995,462,5998,454,5999,453,5999,451,6E3,449,6001,447,6002,446,6003,445,6004,444,6005,442,6006,440,6008,437,6009,434,6010,431,6010,430,6011,429,6011,423,6012,419,6016,418,6017,417,6017,414,6018,411,6018,410, 6019,409,6019,404,6022,397,6025,397,6026,396,6026,391,6032,384,6037,381,6038,378,6039,375,6040,370,6040,369,6041,368,6042,364,6046,359,6048,355,6050,349,6051,347,6051,346,6052,342,6053,339,6055,337,6056,336,6057,333,6061,327,6063,324,6064,322,6065,321,6066,320,6066,319,6067,318,6068,316,6069,313,6071,312,6073,311,6074,299,6084,283,6082,282,6082,280,6082,274,6085,270,6089,269,6089,269,6090,266,6096,260,6096,256,6097,255,6098,252,6100,250,6102,245,6106,237,6110,236,6110,235,6111,231,6113,224,6117,224, 6118,223,6118,215,6121,213,6125,212,6126,211,6126,208,6127,206,6129,205,6130,204,6131,203,6132,201,6132,200,6133,199,6133,197,6134,194,6134,193,6135,191,6135,188,6135,186,6136,181,6137,174,6141,173,6141,172,6142,171,6142,170,6143,168,6145,166,6145,158,6148,151,6151,150,6151,149,6152,147,6152,147,6153,143,6156,137,6158,136,6159,134,6159,133,6160,132,6160,124,6161,119,6162,117,6163,115,6163,106,6164,101,6171,96,6178,87,6179,84,6180,82,6180,77,6180,75,6182,74,6183,73,6183,69,6184,68,6187,68,6189,66, 6191,65,6193,65,6197,65,6199,65,6200,62,6206,57,6209,56,6210,56,6211,53,6221,53,6233,53,6235,53,6236,50,6241,47,6246,44,6253,44,6263,44,6271,41,6278,41,6279,41,6280,40,6292,40,6303,"L",40,6305,"Q",51,6306,63,6306,65,6306,67,6307,71,6308,75,6312,78,6313,80,6313,98,6315,115,6315,119,6315,124,6315,126,6316,127,6316,130,6317,132,6317,141,6318,147,6325,148,6326,149,6326,151,6328,152,6328,163,6328,174,6328,189,6328,204,6328,212,6327,219,6330,221,6331,222,6332,224,6334,224,6334,244,6335,265,6335,273,6335, 281,6335,287,6334,288,6337,289,6339,290,6340,292,6341,293,6342,294,6344,295,6344,298,6345,302,6345,324,6345,345,6345,354,6344,358,6349,363,6353,365,6355,367,6357,369,6357,380,6358,391,6358,398,6357,404,6360,405,6361,405,6362,406,6366,409,6366,413,6367,417,6367,422,6368,426,6370,428,6370,428,6371,430,6374,434,6375,440,6378,448,6377,454,6376,457,6379,460,6381,462,6383,463,6385,463,6386,466,6390,474,6389,481,6388,486,6390,488,6391,489,6393,494,6399,503,6398,505,6397,506,6398,514,6401,517,6409,540,6409, 563,6409,593,6409,622,6409,627,6409,631,6410,640,6411,644,6404,645,6403,646,6401,648,6400,648,6399,648,6395,652,6393,653,6393,654,6392,655,6391,656,6389,660,6386,659,6382,659,6381,660,6380,666,6377,669,6370,670,6369,671,6367,676,6361,679,6357,680,6356,681,6355,682,6355,682,6354,684,6352,685,6351,687,6348,689,6346,694,6341,698,6335,700,6333,702,6331,705,6328,706,6325,708,6320,712,6315,714,6314,715,6313,719,6310,723,6304,726,6299,730,6297,735,6294,740,6290,742,6288,743,6287,750,6283,753,6278,754,6277, 755,6275,758,6271,761,6268,766,6261,772,6255,773,6254,774,6253,775,6252,775,6250,776,6248,778,6244,778,6243,779,6242,780,6240,780,6237,781,6234,785,6231,788,6229,789,6225,789,6224,790,6223,793,6222,793,6219,793,6216,796,6213,797,6212,797,6211,802,6203,812,6198,814,6197,814,6196,820,6185,830,6179,832,6179,834,6178,837,6178,840,6177,842,6177,844,6176,846,6176,847,6175,848,6174,849,6173,852,6169,860,6169,862,6169,863,6168,865,6168,866,6166,867,6165,868,6164,878,6157,889,6147,892,6144,899,6143,901,6142, 902,6142,910,6140,917,6137,921,6136,925,6133,927,6131,930,6128,931,6127,932,6125,933,6124,934,6123,937,6118,940,6113,945,6106,956,6104,958,6104,958,6103,960,6101,963,6100,965,6100,965,6098,967,6095,971,6094,973,6094,974,6093,978,6092,981,6091,983,6090,984,6090,991,6087,996,6084,998,6083,999,6081,1001,6080,1005,6079,1009,6079,1011,6076,1016,6070,1025,6069,1030,6068,1033,6067,1035,6066,1036,6065,1039,6061,1047,6060,1049,6060,1050,6060,1053,6058,1057,6058,1064,6058,1070,6059,1087,6060,1100,6050,1101, 6049,1102,6049,1117,6048,1132,6048,1134,6048,1135,6047,1139,6045,1142,6040,1143,6039,1144,6038,1146,6038,1147,6037,1170,6037,1193,6037,1195,6037,1196,6036,1201,6033,1204,6028,1206,6027,1208,6025,1210,6024,1211,6024,1224,6023,1236,6023,1245,6023,1253,6024,1270,6026,1280,6016,1284,6012,1292,6013,1293,6013,1294,6013,1299,6010,1303,6006,1309,6E3,1320,5995,1322,5994,1324,5993,1329,5993,1334,5992,1335,5992,1337,5992,1344,5991,1350,5988,1351,5987,1352,5986,1358,5982,1362,5978,1364,5976,1366,5976,1374,5973, 1379,5968,1385,5960,1394,5953,1395,5952,1395,5951,1399,5946,1404,5942,1405,5942,1406,5941,1412,5939,1417,5936,1419,5935,1421,5935,1425,5935,1426,5933,1427,5932,1428,5932,1432,5931,1434,5929,1440,5924,1448,5924,1455,5925,1458,5919,1462,5913,1466,5910,1467,5910,1468,5909,1472,5901,1478,5896,1479,5895,1479,5894,1481,5891,1483,5888,1487,5882,1490,5877,1491,5876,1492,5875,1497,5872,1498,5865,1499,5857,1505,5850,1506,5848,1509,5845,1511,5844,1512,5842,1517,5838,1517,5830,1516,5827,1517,5824,1517,5823,1518, 5822,1520,5818,1521,5815,1523,5810,1527,5806,1527,5805,1528,5803,1530,5802,1531,5801,1535,5798,1539,5790,1542,5784,1546,5780,1547,5779,1547,5778,1548,5774,1552,5772,1553,5772,1553,5771,1552,5761,1557,5753,1558,5752,1558,5751,1559,5743,1565,5739,1566,5739,1566,5738,1566,5732,1569,5728,1571,5726,1572,5724,1576,5720,1581,5714,1586,5709,1592,5708,1594,5708,1595,5707,1599,5703,1602,5699,1603,5698,1604,5698,1612,5697,1619,5697,1621,5697,1622,5697,1626,5695,1629,5693,1637,5688,1649,5689,1651,5689,1652,5689, 1655,5687,1659,5684,1660,5683,1662,5682,1668,5678,1676,5679,1678,5679,1679,5678,1682,5675,1690,5676,1697,5677,1701,5672,1702,5672,1703,5671,1705,5671,1706,5670,1713,5665,1721,5664,1724,5664,1725,5663,1729,5660,1735,5656,1738,5654,1742,5654,1750,5655,1755,5651,1757,5649,1759,5648,1760,5647,1762,5647,1763,5646,1763,5646,1766,5645,1768,5645,1777,5642,1785,5640,1788,5639,1792,5638,1793,5638,1794,5638,1802,5638,1809,5634,1811,5633,1812,5632,1814,5629,1819,5629,1821,5629,1822,5628,1825,5626,1829,5627,1832, 5627,1836,5627,1837,5626,1839,5626,1846,5625,1852,5621,1854,5620,1855,5618,1859,5611,1867,5612,1873,5613,1874,5610,1875,5607,1879,5604,1881,5602,1883,5602,1894,5600,1904,5600,1906,5600,1907,5599,1914,5594,1918,5588,1919,5588,1919,5587,1927,5587,1936,5587,1936,5582,1935,5577,1933,5557,1942,5542,1943,5540,1944,5538,1944,5537,1944,5535,1944,5506,1945,5476,1945,5470,1951,5467,1954,5466,1954,5461,1954,5432,1954,5402,1954,5401,1955,5399,1956,5396,1955,5392,1954,5377,1961,5367,1963,5366,1963,5364,1964,5338, 1964,5313,1964,5311,1965,5308,1966,5303,1971,5298,1972,5297,1972,5295,1973,5280,1973,5265,1973,5263,1972,5263,1970,5262,1971,5258,1971,5250,1972,5241,1972,5240,1972,5238,1972,5229,1974,5221,1974,5219,1975,5217,1977,5212,1979,5206,1981,5201,1986,5194,1987,5193,1987,5191,1988,5172,1988,5154,1988,5152,1987,5151,1985,5149,1981,5146,1980,5144,1977,5143,1976,5142,1975,5142,1973,5141,1972,5138,1971,5135,1969,5133,1961,5125,1954,5120,1954,5120,1953,5119,1949,5119,1946,5114,1945,5113,1945,5112,1944,5104,1936, 5098,1935,5098,1935,5097,1931,5087,1922,5082,1919,5079,1916,5078,1914,5077,1914,5075,1913,5071,1911,5070,1910,5069,1910,5067,1906,5067,1902,5066,1902,5066,1901,5065,1897,5055,1892,5047,1889,5041,1882,5039,1870,5036,1865,5025,1865,5024,1864,5024,1862,5023,1860,5023,1860,5022,1859,5021,1857,5020,1856,5018,1853,5013,1847,5010,1845,5008,1845,5005,1843,4996,1837,4993,1835,4992,1834,4991,1829,4987,1825,4981,1825,4980,1824,4978,1824,4975,1823,4973,1823,4972,1823,4971,1823,4966,1820,4964,1820,4964,1819,4963, 1818,4961,1816,4960,1812,4957,1811,4953,1810,4951,1810,4950,1807,4944,1807,4938,1807,4936,1806,4935,1805,4933,1804,4930,1801,4927,1799,4925,1792,4921,1792,4914,1792,4907,1788,4901,1785,4896,1780,4891,1779,4890,1779,4889,1778,4881,1778,4874,1777,4871,1774,4867,1773,4866,1771,4864,1769,4861,1769,4857,1769,4856,1769,4854,1769,4853,1770,4852,1767,4850,1765,4849,1762,4847,1760,4844,1759,4843,1758,4842,1753,4833,1744,4824,1743,4822,1741,4821,1736,4818,1731,4812,1730,4811,1730,4810,1728,4803,1724,4799,1718, 4792,1710,4785,1708,4783,1706,4781,1702,4777,1699,4770,1699,4769,1698,4768,1694,4762,1690,4757,1689,4754,1686,4751,1680,4746,1675,4742,1672,4741,1668,4738,1667,4738,1666,4737,1662,4733,1657,4729,1657,4729,1656,4728,1650,4724,1643,4718,1642,4717,1641,4716,1636,4712,1634,4706,1633,4705,1632,4705,1629,4704,1628,4699,1628,4698,1627,4696,1619,4687,1609,4681,1608,4680,1607,4679,1605,4675,1602,4674,1600,4674,1599,4672,1598,4671,1596,4670,1590,4666,1587,4662,1584,4659,1580,4656,"Q",1579,4655,1579,4654,"Z"]], label:"Kishindih",shortLabel:"KI",labelPosition:[116.4,540.1],labelAlignment:["center","middle"]}}}];e=f.length;if(a)for(;e--;)a=f[e],d(a.name.toLowerCase(),a,d.geo);else for(;e--;)a=f[e],g=a.name.toLowerCase(),c("maps",g,1),h.maps.unshift({cmd:"_call",obj:window,args:[function(a,c){d.geo?d(a,c,d.geo):b.raiseError(b.core,"12052314141","run","JavaScriptRenderer~Maps._call()",Error("FusionCharts.HC.Maps.js is required in order to define vizualization"))},[g,a],window]})}])});
486.442688
521
0.787999
3b2973a81807d27e55cea78ca5ce06bdaaa4a503
1,363
js
JavaScript
assets/js/pages/main-menu-management.js
briannkhata/Loan
b39ff81ae514bb5ec5d362eb397d102584107cc1
[ "MIT" ]
null
null
null
assets/js/pages/main-menu-management.js
briannkhata/Loan
b39ff81ae514bb5ec5d362eb397d102584107cc1
[ "MIT" ]
null
null
null
assets/js/pages/main-menu-management.js
briannkhata/Loan
b39ff81ae514bb5ec5d362eb397d102584107cc1
[ "MIT" ]
null
null
null
/* ------------------------------------------------------------------------------ * * # Main menu management page * * ---------------------------------------------------------------------------- */ $(function() { // Main menu nodes $(".main-menu-tree").fancytree({ checkbox: true, selectMode: 2, extensions: ["edit", "dnd"], source: { url: "assets/js/pages/main-menu-management.json" }, edit: { adjustWidthOfs: 0, inputCss: {minWidth: "0"}, triggerStart: ["f2", "dblclick", "shift+click", "mac+enter"], save: function(event, data) { alert("save " + data.input.val()); // Save data.input.val() or return false to keep editor open } }, dnd: { autoExpandMS: 400, focusOnClick: true, preventVoidMoves: true, // Prevent dropping nodes 'before self', etc. preventRecursiveMoves: true, // Prevent dropping nodes on own descendants dragStart: function(node, data) { return true; }, dragEnter: function(node, data) { return true; }, dragDrop: function(node, data) { // This function MUST be defined to enable dropping of items on the tree. data.otherNode.moveTo(node, data.hitMode); } } }); $(".save-main-menu").on('click', function () { var tree = $(".main-menu-tree").fancytree("getTree"); var d = tree.toDict(true); console.log(JSON.stringify(d)); }) });
23.5
99
0.548789
3b2a297d59b3fd6203fd3bb19697bf97ae72bdc9
120
js
JavaScript
client/src/utils/LoginContext.js
Connor-Walden/gifchat-app
6c5517cd2902955958a188b600079f7c57fea49f
[ "MIT" ]
null
null
null
client/src/utils/LoginContext.js
Connor-Walden/gifchat-app
6c5517cd2902955958a188b600079f7c57fea49f
[ "MIT" ]
null
null
null
client/src/utils/LoginContext.js
Connor-Walden/gifchat-app
6c5517cd2902955958a188b600079f7c57fea49f
[ "MIT" ]
null
null
null
import React from "react"; const LoginContext = React.createContext({logged_in: false}); export default LoginContext;
20
61
0.783333
3b2a2c978d9cf43afdd032e1c87edc8025f50d5c
6,870
js
JavaScript
node_modules/colyseus.js/lib/Room.js
fazemahn/Rummykub
420d4b805f9c9616a39c398d34845dbf0d7f1523
[ "MIT" ]
null
null
null
node_modules/colyseus.js/lib/Room.js
fazemahn/Rummykub
420d4b805f9c9616a39c398d34845dbf0d7f1523
[ "MIT" ]
null
null
null
node_modules/colyseus.js/lib/Room.js
fazemahn/Rummykub
420d4b805f9c9616a39c398d34845dbf0d7f1523
[ "MIT" ]
null
null
null
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(exports, "__esModule", { value: true }); var msgpack = __importStar(require("./msgpack")); var strong_events_1 = require("strong-events"); var Connection_1 = require("./Connection"); var Serializer_1 = require("./serializer/Serializer"); var Protocol_1 = require("./Protocol"); var Room = /** @class */ (function () { function Room(name, rootSchema) { var _this = this; // Public signals this.onJoin = strong_events_1.createSignal(); this.onStateChange = strong_events_1.createSignal(); this.onMessage = strong_events_1.createSignal(); this.onError = strong_events_1.createSignal(); this.onLeave = strong_events_1.createSignal(); this.hasJoined = false; this.id = null; this.name = name; if (rootSchema) { this.serializer = new (Serializer_1.getSerializer("schema")); this.rootSchema = rootSchema; this.serializer.state = new rootSchema(); } else { // TODO: remove default serializer. it should arrive only after JOIN_ROOM. this.serializer = new (Serializer_1.getSerializer("fossil-delta")); } this.onError(function (message) { return message && console.error(message); }); this.onLeave(function () { return _this.removeAllListeners(); }); } Room.prototype.connect = function (endpoint) { var _this = this; this.connection = new Connection_1.Connection(endpoint, false); this.connection.reconnectEnabled = false; this.connection.onmessage = this.onMessageCallback.bind(this); this.connection.onclose = function (e) { if (!_this.hasJoined) { console.error("Room connection was closed unexpectedly (" + e.code + "): " + e.reason); _this.onError.invoke(e.reason); return; } _this.onLeave.invoke(e.code); }; this.connection.onerror = function (e) { console.warn("Room, onError (" + e.code + "): " + e.reason); _this.onError.invoke(e.reason); }; this.connection.open(); }; Room.prototype.leave = function (consented) { if (consented === void 0) { consented = true; } if (this.connection) { if (consented) { this.connection.send([Protocol_1.Protocol.LEAVE_ROOM]); } else { this.connection.close(); } } else { this.onLeave.invoke(4000); // "consented" code } }; Room.prototype.send = function (data) { this.connection.send([Protocol_1.Protocol.ROOM_DATA, data]); }; Object.defineProperty(Room.prototype, "state", { get: function () { return this.serializer.getState(); }, enumerable: true, configurable: true }); // TODO: deprecate / move somewhere else // this method is useful only for FossilDeltaSerializer Room.prototype.listen = function (segments, callback, immediate) { if (this.serializerId === "schema") { console.error("'" + this.serializerId + "' serializer doesn't support .listen() method."); return; } else if (!this.serializerId) { console.warn("room.Listen() should be called after room.onJoin has been called (DEPRECATION WARNING)"); } return this.serializer.api.listen(segments, callback, immediate); }; // TODO: deprecate / move somewhere else // this method is useful only for FossilDeltaSerializer Room.prototype.removeListener = function (listener) { return this.serializer.api.removeListener(listener); }; Room.prototype.removeAllListeners = function () { if (this.serializer) { this.serializer.teardown(); } this.onJoin.clear(); this.onStateChange.clear(); this.onMessage.clear(); this.onError.clear(); this.onLeave.clear(); }; Room.prototype.onMessageCallback = function (event) { var bytes = Array.from(new Uint8Array(event.data)); var code = bytes[0]; if (code === Protocol_1.Protocol.JOIN_ROOM) { var offset = 1; this.serializerId = Protocol_1.utf8Read(bytes, offset); offset += Protocol_1.utf8Length(this.serializerId); // get serializer implementation var serializer = Serializer_1.getSerializer(this.serializerId); if (!serializer) { throw new Error("missing serializer: " + this.serializerId); } // TODO: remove this check if (this.serializerId !== "fossil-delta" && !this.rootSchema) { this.serializer = new serializer(); } if (bytes.length > offset && this.serializer.handshake) { this.serializer.handshake(bytes, { offset: 1 }); } this.hasJoined = true; this.onJoin.invoke(); // acknowledge successfull JOIN_ROOM this.connection.send([Protocol_1.Protocol.JOIN_ROOM]); } else if (code === Protocol_1.Protocol.JOIN_ERROR) { this.onError.invoke(Protocol_1.utf8Read(bytes, 1)); } else if (code === Protocol_1.Protocol.LEAVE_ROOM) { this.leave(); } else if (code === Protocol_1.Protocol.ROOM_DATA_SCHEMA) { var context_1 = this.serializer.getState().constructor._context; var type = context_1.get(bytes[1]); var message = new type(); message.decode(bytes, { offset: 2 }); this.onMessage.invoke(message); } else if (code === Protocol_1.Protocol.ROOM_STATE) { bytes.shift(); // drop `code` byte this.setState(bytes); } else if (code === Protocol_1.Protocol.ROOM_STATE_PATCH) { bytes.shift(); // drop `code` byte this.patch(bytes); } else if (code === Protocol_1.Protocol.ROOM_DATA) { this.onMessage.invoke(msgpack.decode(event.data, 1)); } }; Room.prototype.setState = function (encodedState) { this.serializer.setState(encodedState); this.onStateChange.invoke(this.serializer.getState()); }; Room.prototype.patch = function (binaryPatch) { this.serializer.patch(binaryPatch); this.onStateChange.invoke(this.serializer.getState()); }; return Room; }()); exports.Room = Room;
40.650888
115
0.587773
3b2af03cca1966187d5fc7ed065772aa061c9c91
2,412
js
JavaScript
src/sunstone/public/app/tabs/hosts-tab/panels/vms.js
laurencegill/one
9d6a1334bddecd71b269f018d9da469b1a4faa2a
[ "Apache-2.0" ]
null
null
null
src/sunstone/public/app/tabs/hosts-tab/panels/vms.js
laurencegill/one
9d6a1334bddecd71b269f018d9da469b1a4faa2a
[ "Apache-2.0" ]
22
2021-07-15T21:46:56.000Z
2022-03-15T20:55:12.000Z
src/sunstone/public/app/tabs/hosts-tab/panels/vms.js
laurencegill/one
9d6a1334bddecd71b269f018d9da469b1a4faa2a
[ "Apache-2.0" ]
null
null
null
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2021, OpenNebula Project, OpenNebula Systems */ /* */ /* 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. */ /* -------------------------------------------------------------------------- */ define(function(require){ /* DEPENDENCIES */ var Locale = require('utils/locale'); var VMsTable = require('tabs/vms-tab/datatable'); /* CONSTANTS */ var PANEL_ID = require('./vms/panelId'); var VMS_TABLE_ID = PANEL_ID + "VMsTable"; var RESOURCE = "Host"; var XML_ROOT = "HOST"; /* CONSTRUCTOR */ function Panel(info) { this.title = Locale.tr("VMs"); this.icon = "fa-cloud"; this.element = info[XML_ROOT]; return this; } Panel.PANEL_ID = PANEL_ID; Panel.prototype.html = _html; Panel.prototype.setup = _setup; return Panel; /* FUNCTION DEFINITIONS */ function _html() { var vms = []; if (this.element.VMS.ID != undefined){ vms = this.element.VMS.ID; if (!$.isArray(vms)){ vms = [vms]; } } var opts = { info: true, select: true, selectOptions: { read_only: true, fixed_ids: vms } }; this.vmsTable = new VMsTable(VMS_TABLE_ID, opts); return this.vmsTable.dataTableHTML; } function _setup(context) { this.vmsTable.initialize(); this.vmsTable.refreshResourceTableSelect(); return false; } });
27.101124
80
0.483002
3b2af6faf0c01b1487990ed0d88b0aaaff4f8155
864
js
JavaScript
src/scripts/functions/calculations/weighted.js
DataWorks-NC/Mecklenburg-County-Quality-of-Life-Dashboard
9e72aff131bfad6dd659447473a383a5e2769e06
[ "MIT" ]
37
2015-02-06T02:59:36.000Z
2020-12-04T14:38:16.000Z
src/scripts/functions/calculations/weighted.js
DataWorks-NC/Mecklenburg-County-Quality-of-Life-Dashboard
9e72aff131bfad6dd659447473a383a5e2769e06
[ "MIT" ]
4
2015-12-14T19:24:49.000Z
2016-04-21T20:52:46.000Z
src/scripts/functions/calculations/weighted.js
DataWorks-NC/Mecklenburg-County-Quality-of-Life-Dashboard
9e72aff131bfad6dd659447473a383a5e2769e06
[ "MIT" ]
21
2015-03-13T01:43:46.000Z
2021-02-01T15:17:32.000Z
// renormalize/weight a metric function dataWeighted(dataNumerator, dataDenominator, key, filter) { // apply filter if passed if (typeof filter !== "undefined" && filter !== null) { dataNumerator = dataFilter(dataNumerator, filter); dataDenominator = dataFilter(dataDenominator, filter); } // reduce dataSet to numbers - no nulls dataNumerator = dataStrip(dataNumerator, key); dataDenominator = dataStrip(dataDenominator, key); if (dataNumerator.length > 0 && dataDenominator.length > 0) { // calculate var totalNumerator = dataNumerator.reduce(function(a, b) { return a + b; }); var totalDenominator = dataDenominator.reduce(function(a, b) { return a + b; }); return totalNumerator / totalDenominator; } else { return 'N/A'; } }
33.230769
70
0.628472
3b2b0ee706d3d267cc7526c8e8bdc79787725860
1,292
js
JavaScript
frontend/js/ide/preamble/services/preamble.js
jmexia23/web
d18150f44ed8c9c771d4dd65370ce626d4179f3d
[ "MIT" ]
null
null
null
frontend/js/ide/preamble/services/preamble.js
jmexia23/web
d18150f44ed8c9c771d4dd65370ce626d4179f3d
[ "MIT" ]
null
null
null
frontend/js/ide/preamble/services/preamble.js
jmexia23/web
d18150f44ed8c9c771d4dd65370ce626d4179f3d
[ "MIT" ]
null
null
null
/* eslint-disable max-len, no-undef, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS103: Rewrite code to no longer use __guard__ * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ define(['../../../base'], App => App.factory('preamble', function(ide) { var Preamble = { getPreambleText() { const text = ide.editorManager.getCurrentDocValue().slice(0, 5000) const preamble = __guard__(text.match(/([^]*)^\\begin\{document\}/m), x => x[1]) || '' return preamble }, getGraphicsPaths() { let match const preamble = Preamble.getPreambleText() const graphicsPathsArgs = __guard__(preamble.match(/\\graphicspath\{(.*)\}/), x => x[1]) || '' const paths = [] const re = /\{([^}]*)\}/g while ((match = re.exec(graphicsPathsArgs))) { paths.push(match[1]) } return paths } } return Preamble })) function __guard__(value, transform) { return typeof value !== 'undefined' && value !== null ? transform(value) : undefined }
28.711111
90
0.596749