code_text
stringlengths
604
999k
repo_name
stringlengths
4
100
file_path
stringlengths
4
873
language
stringclasses
23 values
license
stringclasses
15 values
size
int32
1.02k
999k
'use strict'; var memoize = require('../..') , nextTick = require('next-tick'); module.exports = function () { return { Regular: function (a) { var i = 0, fn = function (x, y, z) { ++i; return x + y + z; }, mfn; mfn = memoize(fn, { refCounter: true }); a(mfn.deleteRef(3, 5, 7), null, "Delete before"); a(mfn(3, 5, 7), 15, "Initial"); a(mfn(3, 5, 7), 15, "Cache"); a(mfn.deleteRef(3, 5, 7), false, "Delete #1"); mfn(3, 5, 7); a(mfn.deleteRef(3, 5, 7), false, "Delete #2"); mfn(3, 5, 7); a(mfn.deleteRef(3, 5, 7), false, "Delete #3"); mfn(3, 5, 7); a(i, 1, "Not deleteed"); a(mfn.deleteRef(3, 5, 7), false, "Delete #4"); a(mfn.deleteRef(3, 5, 7), true, "Delete final"); mfn(3, 5, 7); a(i, 2, "Restarted"); mfn(3, 5, 7); a(i, 2, "Cached again"); }, "Regular: Async": function (a, d) { var mfn, fn, u = {}, i = 0; fn = function (x, y, cb) { nextTick(function () { ++i; cb(null, x + y); }); return u; }; mfn = memoize(fn, { async: true, refCounter: true }); a(mfn.deleteRef(3, 7), null, "Delete ref before"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Result #1"); }), u, "Initial"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Result #2"); }), u, "Initial #2"); a(mfn(5, 8, function (err, res) { a.deep([err, res], [null, 13], "Result B #1"); }), u, "Initial #2"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Result #3"); }), u, "Initial #2"); a(mfn(5, 8, function (err, res) { a.deep([err, res], [null, 13], "Result B #2"); }), u, "Initial #3"); nextTick(function () { a(i, 2, "Called #2"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Again: Result"); }), u, "Again: Initial"); a(mfn(5, 8, function (err, res) { a.deep([err, res], [null, 13], "Again B: Result"); }), u, "Again B: Initial"); nextTick(function () { a(i, 2, "Again Called #2"); a(mfn.deleteRef(3, 7), false, "Delete ref #1"); a(mfn.deleteRef(3, 7), false, "Delete ref #2"); a(mfn.deleteRef(3, 7), false, "Delete ref #3"); a(mfn.deleteRef(3, 7), true, "Delete ref Final"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Again: Result"); }), u, "Again: Initial"); a(mfn(5, 8, function (err, res) { a.deep([err, res], [null, 13], "Again B: Result"); }), u, "Again B: Initial"); nextTick(function () { a(i, 3, "Call After delete"); d(); }); }); }); }, Primitive: function (a) { var i = 0, fn = function (x, y, z) { ++i; return x + y + z; }, mfn; mfn = memoize(fn, { primitive: true, refCounter: true }); a(mfn.deleteRef(3, 5, 7), null, "Delete before"); a(mfn(3, 5, 7), 15, "Initial"); a(mfn(3, 5, 7), 15, "Cache"); a(mfn.deleteRef(3, 5, 7), false, "Delete #1"); mfn(3, 5, 7); a(mfn.deleteRef(3, 5, 7), false, "Delete #2"); mfn(3, 5, 7); a(mfn.deleteRef(3, 5, 7), false, "Delete #3"); mfn(3, 5, 7); a(i, 1, "Not deleteed"); a(mfn.deleteRef(3, 5, 7), false, "Delete #4"); a(mfn.deleteRef(3, 5, 7), true, "Delete final"); mfn(3, 5, 7); a(i, 2, "Restarted"); mfn(3, 5, 7); a(i, 2, "Cached again"); }, "Primitive: Async": function (a, d) { var mfn, fn, u = {}, i = 0; fn = function (x, y, cb) { nextTick(function () { ++i; cb(null, x + y); }); return u; }; mfn = memoize(fn, { async: true, primitive: true, refCounter: true }); a(mfn.deleteRef(3, 7), null, "Delete ref before"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Result #1"); }), u, "Initial"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Result #2"); }), u, "Initial #2"); a(mfn(5, 8, function (err, res) { a.deep([err, res], [null, 13], "Result B #1"); }), u, "Initial #2"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Result #3"); }), u, "Initial #2"); a(mfn(5, 8, function (err, res) { a.deep([err, res], [null, 13], "Result B #2"); }), u, "Initial #3"); nextTick(function () { a(i, 2, "Called #2"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Again: Result"); }), u, "Again: Initial"); a(mfn(5, 8, function (err, res) { a.deep([err, res], [null, 13], "Again B: Result"); }), u, "Again B: Initial"); nextTick(function () { a(i, 2, "Again Called #2"); a(mfn.deleteRef(3, 7), false, "Delete ref #1"); a(mfn.deleteRef(3, 7), false, "Delete ref #2"); a(mfn.deleteRef(3, 7), false, "Delete ref #3"); a(mfn.deleteRef(3, 7), true, "Delete ref Final"); a(mfn(3, 7, function (err, res) { a.deep([err, res], [null, 10], "Again: Result"); }), u, "Again: Initial"); a(mfn(5, 8, function (err, res) { a.deep([err, res], [null, 13], "Again B: Result"); }), u, "Again B: Initial"); nextTick(function () { a(i, 3, "Call After delete"); d(); }); }); }); } }; };
klik1301/angular_dz1
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/memoizee/test/ext/ref-counter.js
JavaScript
mit
5,128
'use strict'; //This file contains the ES6 extensions to the core Promises/A+ API var Promise = require('./core.js'); module.exports = Promise; /* Static Functions */ var TRUE = valuePromise(true); var FALSE = valuePromise(false); var NULL = valuePromise(null); var UNDEFINED = valuePromise(undefined); var ZERO = valuePromise(0); var EMPTYSTRING = valuePromise(''); function valuePromise(value) { var p = new Promise(Promise._noop); p._state = 1; p._value = value; return p; } Promise.resolve = function (value) { if (value instanceof Promise) return value; if (value === null) return NULL; if (value === undefined) return UNDEFINED; if (value === true) return TRUE; if (value === false) return FALSE; if (value === 0) return ZERO; if (value === '') return EMPTYSTRING; if (typeof value === 'object' || typeof value === 'function') { try { var then = value.then; if (typeof then === 'function') { return new Promise(then.bind(value)); } } catch (ex) { return new Promise(function (resolve, reject) { reject(ex); }); } } return valuePromise(value); }; Promise.all = function (arr) { var args = Array.prototype.slice.call(arr); return new Promise(function (resolve, reject) { if (args.length === 0) return resolve([]); var remaining = args.length; function res(i, val) { if (val && (typeof val === 'object' || typeof val === 'function')) { if (val instanceof Promise && val.then === Promise.prototype.then) { while (val._state === 3) { val = val._value; } if (val._state === 1) return res(i, val._value); if (val._state === 2) reject(val._value); val.then(function (val) { res(i, val); }, reject); return; } else { var then = val.then; if (typeof then === 'function') { var p = new Promise(then.bind(val)); p.then(function (val) { res(i, val); }, reject); return; } } } args[i] = val; if (--remaining === 0) { resolve(args); } } for (var i = 0; i < args.length; i++) { res(i, args[i]); } }); }; Promise.reject = function (value) { return new Promise(function (resolve, reject) { reject(value); }); }; Promise.race = function (values) { return new Promise(function (resolve, reject) { values.forEach(function(value){ Promise.resolve(value).then(resolve, reject); }); }); }; /* Prototype Methods */ Promise.prototype['catch'] = function (onRejected) { return this.then(null, onRejected); };
edsrupp/eds-mess
node_modules/flux/node_modules/fbjs/node_modules/promise/src/es6-extensions.js
JavaScript
mit
2,700
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a.m.", "p.m." ], "DAY": [ "s\u00f8ndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "l\u00f8rdag" ], "MONTH": [ "januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember" ], "SHORTDAY": [ "s\u00f8n.", "man.", "tir.", "ons.", "tor.", "fre.", "l\u00f8r." ], "SHORTMONTH": [ "jan.", "feb.", "mar.", "apr.", "mai", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "des." ], "fullDate": "EEEE d. MMMM y", "longDate": "d. MMMM y", "medium": "d. MMM y HH.mm.ss", "mediumDate": "d. MMM y", "mediumTime": "HH.mm.ss", "short": "dd.MM.yy HH.mm", "shortDate": "dd.MM.yy", "shortTime": "HH.mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "kr", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4\u00a0-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "no-no", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
dada0423/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_no-no.js
JavaScript
mit
1,936
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a. m.", "p. m." ], "DAY": [ "domingo", "lunes", "martes", "mi\u00e9rcoles", "jueves", "viernes", "s\u00e1bado" ], "MONTH": [ "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ], "SHORTDAY": [ "dom.", "lun.", "mar.", "mi\u00e9.", "jue.", "vie.", "s\u00e1b." ], "SHORTMONTH": [ "ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic." ], "fullDate": "EEEE, d 'de' MMMM 'de' y", "longDate": "d 'de' MMMM 'de' y", "medium": "d/M/y H:mm:ss", "mediumDate": "d/M/y", "mediumTime": "H:mm:ss", "short": "d/M/yy H:mm", "shortDate": "d/M/yy", "shortTime": "H:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Gs", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4\u00a0-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "es-py", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
hasantayyar/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_es-py.js
JavaScript
mit
1,948
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "CFA", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-sn", "pluralCat": function (n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
tkirda/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_fr-sn.js
JavaScript
mit
1,970
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "niedziela", "poniedzia\u0142ek", "wtorek", "\u015broda", "czwartek", "pi\u0105tek", "sobota" ], "MONTH": [ "stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "wrze\u015bnia", "pa\u017adziernika", "listopada", "grudnia" ], "SHORTDAY": [ "niedz.", "pon.", "wt.", "\u015br.", "czw.", "pt.", "sob." ], "SHORTMONTH": [ "sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "pa\u017a", "lis", "gru" ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd.MM.y HH:mm", "shortDate": "dd.MM.y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "z\u0142", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "pl", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14)) { return PLURAL_CATEGORY.FEW; } if (vf.v == 0 && i != 1 && i % 10 >= 0 && i % 10 <= 1 || vf.v == 0 && i % 10 >= 5 && i % 10 <= 9 || vf.v == 0 && i % 100 >= 12 && i % 100 <= 14) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} }); }]);
pombredanne/cdnjs
ajax/libs/angular-i18n/1.3.0/angular-locale_pl.js
JavaScript
mit
2,650
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "domingo", "lunes", "martes", "mi\u00e9rcoles", "jueves", "viernes", "s\u00e1bado" ], "MONTH": [ "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ], "SHORTDAY": [ "dom.", "lun.", "mar.", "mi\u00e9.", "jue.", "vie.", "s\u00e1b." ], "SHORTMONTH": [ "ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic." ], "fullDate": "EEEE, d 'de' MMMM 'de' y", "longDate": "d 'de' MMMM 'de' y", "medium": "MMM d, y h:mm:ss a", "mediumDate": "MMM d, y", "mediumTime": "h:mm:ss a", "short": "M/d/yy h:mm a", "shortDate": "M/d/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "$", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "es-us", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
seogi1004/cdnjs
ajax/libs/angular-i18n/1.3.0-rc.4/angular-locale_es-us.js
JavaScript
mit
1,955
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FCFA", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-td", "pluralCat": function (n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
Nadeermalangadan/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_fr-td.js
JavaScript
mit
1,971
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "fm", "em" ], "DAY": [ "s\u00f6ndag", "m\u00e5ndag", "tisdag", "onsdag", "torsdag", "fredag", "l\u00f6rdag" ], "MONTH": [ "januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december" ], "SHORTDAY": [ "s\u00f6n", "m\u00e5n", "tis", "ons", "tors", "fre", "l\u00f6r" ], "SHORTMONTH": [ "jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec" ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "y-MM-dd HH:mm", "shortDate": "y-MM-dd", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "sv-ax", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
anshulverma/cdnjs
ajax/libs/angular.js/1.2.25/i18n/angular-locale_sv-ax.js
JavaScript
mit
2,320
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "PG", "PTG" ], "DAY": [ "Ahad", "Isnin", "Selasa", "Rabu", "Khamis", "Jumaat", "Sabtu" ], "MONTH": [ "Januari", "Februari", "Mac", "April", "Mei", "Jun", "Julai", "Ogos", "September", "Oktober", "November", "Disember" ], "SHORTDAY": [ "Ahd", "Isn", "Sel", "Rab", "Kha", "Jum", "Sab" ], "SHORTMONTH": [ "Jan", "Feb", "Mac", "Apr", "Mei", "Jun", "Jul", "Ogo", "Sep", "Okt", "Nov", "Dis" ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "d/MM/yy h:mm a", "shortDate": "d/MM/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "$", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "ms-latn-sg", "pluralCat": function (n, opt_precision) { return PLURAL_CATEGORY.OTHER;} }); }]);
kennynaoh/cdnjs
ajax/libs/angular-i18n/1.2.29/angular-locale_ms-latn-sg.js
JavaScript
mit
1,823
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0db4\u0dd9.\u0dc0.", "\u0db4.\u0dc0." ], "DAY": [ "\u0d89\u0dbb\u0dd2\u0daf\u0dcf", "\u0dc3\u0db3\u0dd4\u0daf\u0dcf", "\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf", "\u0db6\u0daf\u0dcf\u0daf\u0dcf", "\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf", "\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf", "\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf" ], "MONTH": [ "\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2", "\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2", "\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4", "\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca", "\u0db8\u0dd0\u0dba\u0dd2", "\u0da2\u0dd6\u0db1\u0dd2", "\u0da2\u0dd6\u0dbd\u0dd2", "\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4", "\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca", "\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca", "\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca", "\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca" ], "SHORTDAY": [ "\u0d89\u0dbb\u0dd2\u0daf\u0dcf", "\u0dc3\u0db3\u0dd4\u0daf\u0dcf", "\u0d85\u0d9f\u0dc4", "\u0db6\u0daf\u0dcf\u0daf\u0dcf", "\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca", "\u0dc3\u0dd2\u0d9a\u0dd4", "\u0dc3\u0dd9\u0db1" ], "SHORTMONTH": [ "\u0da2\u0db1", "\u0db4\u0dd9\u0db6", "\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4", "\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca", "\u0db8\u0dd0\u0dba\u0dd2", "\u0da2\u0dd6\u0db1\u0dd2", "\u0da2\u0dd6\u0dbd\u0dd2", "\u0d85\u0d9c\u0ddd", "\u0dc3\u0dd0\u0db4\u0dca", "\u0d94\u0d9a\u0dca", "\u0db1\u0ddc\u0dc0\u0dd0", "\u0daf\u0dd9\u0dc3\u0dd0" ], "fullDate": "y MMMM d, EEEE", "longDate": "y MMMM d", "medium": "y MMM d a h.mm.ss", "mediumDate": "y MMM d", "mediumTime": "a h.mm.ss", "short": "y-MM-dd a h.mm", "shortDate": "y-MM-dd", "shortTime": "a h.mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Rs", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "si-lk", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if ((n == 0 || n == 1) || i == 0 && vf.f == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
anilanar/jsdelivr
files/angularjs/1.2.28/i18n/angular-locale_si-lk.js
JavaScript
mit
3,471
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "paradite", "pasdite" ], "DAY": [ "e diel", "e h\u00ebn\u00eb", "e mart\u00eb", "e m\u00ebrkur\u00eb", "e enjte", "e premte", "e shtun\u00eb" ], "MONTH": [ "janar", "shkurt", "mars", "prill", "maj", "qershor", "korrik", "gusht", "shtator", "tetor", "n\u00ebntor", "dhjetor" ], "SHORTDAY": [ "Die", "H\u00ebn", "Mar", "M\u00ebr", "Enj", "Pre", "Sht" ], "SHORTMONTH": [ "Jan", "Shk", "Mar", "Pri", "Maj", "Qer", "Kor", "Gsh", "Sht", "Tet", "N\u00ebn", "Dhj" ], "fullDate": "EEEE, dd MMMM y", "longDate": "dd MMMM y", "medium": "dd/MM/y HH:mm:ss", "mediumDate": "dd/MM/y", "mediumTime": "HH:mm:ss", "short": "dd/MM/yy HH:mm", "shortDate": "dd/MM/yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Lek", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "sq", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
neveldo/cdnjs
ajax/libs/angular.js/1.2.25/i18n/angular-locale_sq.js
JavaScript
mit
1,954
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u092a\u0942\u0930\u094d\u0935 \u092e\u0927\u094d\u092f\u093e\u0928\u094d\u0939", "\u0909\u0924\u094d\u0924\u0930 \u092e\u0927\u094d\u092f\u093e\u0928\u094d\u0939" ], "DAY": [ "\u0906\u0907\u0924\u092c\u093e\u0930", "\u0938\u094b\u092e\u092c\u093e\u0930", "\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930", "\u092c\u0941\u0927\u092c\u093e\u0930", "\u092c\u093f\u0939\u0940\u092c\u093e\u0930", "\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930", "\u0936\u0928\u093f\u092c\u093e\u0930" ], "MONTH": [ "\u091c\u0928\u0935\u0930\u0940", "\u092b\u0947\u092c\u094d\u0930\u0941\u0905\u0930\u0940", "\u092e\u093e\u0930\u094d\u091a", "\u0905\u092a\u094d\u0930\u093f\u0932", "\u092e\u0947", "\u091c\u0941\u0928", "\u091c\u0941\u0932\u093e\u0908", "\u0905\u0917\u0938\u094d\u091f", "\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930", "\u0905\u0915\u094d\u091f\u094b\u092c\u0930", "\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930", "\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930" ], "SHORTDAY": [ "\u0906\u0907\u0924", "\u0938\u094b\u092e", "\u092e\u0919\u094d\u0917\u0932", "\u092c\u0941\u0927", "\u092c\u093f\u0939\u0940", "\u0936\u0941\u0915\u094d\u0930", "\u0936\u0928\u093f" ], "SHORTMONTH": [ "\u091c\u0928\u0935\u0930\u0940", "\u092b\u0947\u092c\u094d\u0930\u0941\u0905\u0930\u0940", "\u092e\u093e\u0930\u094d\u091a", "\u0905\u092a\u094d\u0930\u093f\u0932", "\u092e\u0947", "\u091c\u0941\u0928", "\u091c\u0941\u0932\u093e\u0908", "\u0905\u0917\u0938\u094d\u091f", "\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930", "\u0905\u0915\u094d\u091f\u094b\u092c\u0930", "\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930", "\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930" ], "fullDate": "y MMMM d, EEEE", "longDate": "y MMMM d", "medium": "y MMM d HH:mm:ss", "mediumDate": "y MMM d", "mediumTime": "HH:mm:ss", "short": "y-MM-dd HH:mm", "shortDate": "y-MM-dd", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Rs", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "ne-np", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
gasolin/cdnjs
ajax/libs/angular.js/1.2.28/i18n/angular-locale_ne-np.js
JavaScript
mit
3,168
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a. m.", "p. m." ], "DAY": [ "domingo", "lunes", "martes", "mi\u00e9rcoles", "jueves", "viernes", "s\u00e1bado" ], "MONTH": [ "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ], "SHORTDAY": [ "dom.", "lun.", "mar.", "mi\u00e9.", "jue.", "vie.", "s\u00e1b." ], "SHORTMONTH": [ "ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic." ], "fullDate": "EEEE, d 'de' MMMM 'de' y", "longDate": "d 'de' MMMM 'de' y", "medium": "d/M/y H:mm:ss", "mediumDate": "d/M/y", "mediumTime": "H:mm:ss", "short": "d/M/yy H:mm", "shortDate": "d/M/yy", "shortTime": "H:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "$", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "es-419", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
algolia/cdnjs
ajax/libs/angular.js/1.2.28/i18n/angular-locale_es-419.js
JavaScript
mit
1,936
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "ned\u011ble", "pond\u011bl\u00ed", "\u00fater\u00fd", "st\u0159eda", "\u010dtvrtek", "p\u00e1tek", "sobota" ], "MONTH": [ "ledna", "\u00fanora", "b\u0159ezna", "dubna", "kv\u011btna", "\u010dervna", "\u010dervence", "srpna", "z\u00e1\u0159\u00ed", "\u0159\u00edjna", "listopadu", "prosince" ], "SHORTDAY": [ "ne", "po", "\u00fat", "st", "\u010dt", "p\u00e1", "so" ], "SHORTMONTH": [ "led", "\u00fano", "b\u0159e", "dub", "kv\u011b", "\u010dvn", "\u010dvc", "srp", "z\u00e1\u0159", "\u0159\u00edj", "lis", "pro" ], "fullDate": "EEEE d. MMMM y", "longDate": "d. MMMM y", "medium": "d. M. y H:mm:ss", "mediumDate": "d. M. y", "mediumTime": "H:mm:ss", "short": "dd.MM.yy H:mm", "shortDate": "dd.MM.yy", "shortTime": "H:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "K\u010d", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "cs-cz", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } if (i >= 2 && i <= 4 && vf.v == 0) { return PLURAL_CATEGORY.FEW; } if (vf.v != 0) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} }); }]);
idleberg/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_cs-cz.js
JavaScript
mit
2,555
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a.m.", "p.m." ], "DAY": [ "s\u00f8ndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "l\u00f8rdag" ], "MONTH": [ "januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember" ], "SHORTDAY": [ "s\u00f8n.", "man.", "tir.", "ons.", "tor.", "fre.", "l\u00f8r." ], "SHORTMONTH": [ "jan.", "feb.", "mar.", "apr.", "mai", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "des." ], "fullDate": "EEEE d. MMMM y", "longDate": "d. MMMM y", "medium": "d. MMM y HH.mm.ss", "mediumDate": "d. MMM y", "mediumTime": "HH.mm.ss", "short": "dd.MM.yy HH.mm", "shortDate": "dd.MM.yy", "shortTime": "HH.mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "kr", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4\u00a0-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "nb-sj", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
Dervisevic/cdnjs
ajax/libs/angular.js/1.2.27/i18n/angular-locale_nb-sj.js
JavaScript
mit
1,936
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\uc624\uc804", "\uc624\ud6c4" ], "DAY": [ "\uc77c\uc694\uc77c", "\uc6d4\uc694\uc77c", "\ud654\uc694\uc77c", "\uc218\uc694\uc77c", "\ubaa9\uc694\uc77c", "\uae08\uc694\uc77c", "\ud1a0\uc694\uc77c" ], "MONTH": [ "1\uc6d4", "2\uc6d4", "3\uc6d4", "4\uc6d4", "5\uc6d4", "6\uc6d4", "7\uc6d4", "8\uc6d4", "9\uc6d4", "10\uc6d4", "11\uc6d4", "12\uc6d4" ], "SHORTDAY": [ "\uc77c", "\uc6d4", "\ud654", "\uc218", "\ubaa9", "\uae08", "\ud1a0" ], "SHORTMONTH": [ "1\uc6d4", "2\uc6d4", "3\uc6d4", "4\uc6d4", "5\uc6d4", "6\uc6d4", "7\uc6d4", "8\uc6d4", "9\uc6d4", "10\uc6d4", "11\uc6d4", "12\uc6d4" ], "fullDate": "y\ub144 M\uc6d4 d\uc77c EEEE", "longDate": "y\ub144 M\uc6d4 d\uc77c", "medium": "y. M. d. a h:mm:ss", "mediumDate": "y. M. d.", "mediumTime": "a h:mm:ss", "short": "yy. M. d. a h:mm", "shortDate": "yy. M. d.", "shortTime": "a h:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20a9KP", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "ko-kp", "pluralCat": function (n, opt_precision) { return PLURAL_CATEGORY.OTHER;} }); }]);
hanbyul-here/cdnjs
ajax/libs/angular-i18n/1.2.28/angular-locale_ko-kp.js
JavaScript
mit
2,058
YUI.add('clickable-rail', function(Y) { /** * Adds support for mouse interaction with the Slider rail triggering thumb * movement. * * @module slider * @submodule clickable-rail */ /** * Slider extension that allows clicking on the Slider's rail element, * triggering the thumb to align with the location of the click. * * @class ClickableRail */ function ClickableRail() { this._initClickableRail(); } Y.ClickableRail = Y.mix(ClickableRail, { // Prototype methods added to host class prototype: { /** * Initializes the internal state and sets up events. * * @method _initClickableRail * @protected */ _initClickableRail: function () { this._evtGuid = this._evtGuid || (Y.guid() + '|'); /** * Broadcasts when the rail has received a mousedown event and * triggers the thumb positioning. Use * <code>e.preventDefault()</code> or * <code>set(&quot;clickableRail&quot;, false)</code> to prevent * the thumb positioning. * * @event railMouseDown * @preventable _defRailMouseDownFn */ this.publish('railMouseDown', { defaultFn: this._defRailMouseDownFn }); this.after('render', this._bindClickableRail); this.on('destroy', this._unbindClickableRail); }, /** * Attaches DOM event subscribers to support rail interaction. * * @method _bindClickableRail * @protected */ _bindClickableRail: function () { this._dd.addHandle(this.rail); this.rail.on(this._evtGuid + Y.DD.Drag.START_EVENT, Y.bind(this._onRailMouseDown, this)); }, /** * Detaches DOM event subscribers for cleanup/destruction cycle. * * @method _unbindClickableRail * @protected */ _unbindClickableRail: function () { if (this.get('rendered')) { var contentBox = this.get('contentBox'), rail = contentBox.one('.' + this.getClassName('rail')); rail.detach(this.evtGuid + '*'); } }, /** * Dispatches the railMouseDown event. * * @method _onRailMouseDown * @param e {DOMEvent} the mousedown event object * @protected */ _onRailMouseDown: function (e) { if (this.get('clickableRail') && !this.get('disabled')) { this.fire('railMouseDown', { ev: e }); this.thumb.focus(); } }, /** * Default behavior for the railMouseDown event. Centers the thumb at * the click location and passes control to the DDM to behave as though * the thumb itself were clicked in preparation for a drag operation. * * @method _defRailMouseDownFn * @param e {Event} the EventFacade for the railMouseDown custom event * @protected */ _defRailMouseDownFn: function (e) { e = e.ev; // Logic that determines which thumb should be used is abstracted // to someday support multi-thumb sliders var dd = this._resolveThumb(e), i = this._key.xyIndex, length = parseFloat(this.get('length'), 10), thumb, thumbSize, xy; if (dd) { thumb = dd.get('dragNode'); thumbSize = parseFloat(thumb.getStyle(this._key.dim), 10); // Step 1. Allow for aligning to thumb center or edge, etc xy = this._getThumbDestination(e, thumb); // Step 2. Remove page offsets to give just top/left style val xy = xy[ i ] - this.rail.getXY()[i]; // Step 3. Constrain within the rail in case of attempt to // center the thumb when clicking on the end of the rail xy = Math.min( Math.max(xy, 0), (length - thumbSize)); this._uiMoveThumb(xy, { source: 'rail' }); // Set e.target for DD's IE9 patch which calls // e.target._node.setCapture() to allow imgs to be dragged. // Without this, setCapture is called from the rail and rail // clicks on other Sliders may have their thumb movements // overridden by a different Slider (the thumb on the wrong // Slider moves). e.target = this.thumb.one('img') || this.thumb; // Delegate to DD's natural behavior dd._handleMouseDownEvent(e); // TODO: this won't trigger a slideEnd if the rail is clicked // check if dd._move(e); dd._dragThreshMet = true; dd.start(); // will do the trick. Is that even a good idea? } }, /** * Resolves which thumb to actuate if any. Override this if you want to * support multiple thumbs. By default, returns the Drag instance for * the thumb stored by the Slider. * * @method _resolveThumb * @param e {DOMEvent} the mousedown event object * @return {DD.Drag} the Drag instance that should be moved * @protected */ _resolveThumb: function (e) { /* Temporary workaround var primaryOnly = this._dd.get('primaryButtonOnly'), validClick = !primaryOnly || e.button <= 1; return (validClick) ? this._dd : null; */ return this._dd; }, /** * Calculates the top left position the thumb should be moved to to * align the click XY with the center of the specified node. * * @method _getThumbDestination * @param e {DOMEvent} The mousedown event object * @param node {Node} The node to position * @return {Array} the [top, left] pixel position of the destination * @protected */ _getThumbDestination: function (e, node) { var offsetWidth = node.get('offsetWidth'), offsetHeight = node.get('offsetHeight'); // center return [ (e.pageX - Math.round((offsetWidth / 2))), (e.pageY - Math.round((offsetHeight / 2))) ]; } }, // Static properties added onto host class ATTRS: { /** * Enable or disable clickable rail support. * * @attribute clickableRail * @type {Boolean} * @default true */ clickableRail: { value: true, validator: Y.Lang.isBoolean } } }, true); }, '@VERSION@' ,{requires:['slider-base']});
lobbin/cdnjs
ajax/libs/yui/3.5.0pr2/clickable-rail/clickable-rail-debug.js
JavaScript
mit
7,045
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "kari", "nt\u025bn\u025b", "tarata", "araba", "alamisa", "juma", "sibiri" ], "MONTH": [ "zanwuye", "feburuye", "marisi", "awirili", "m\u025b", "zuw\u025bn", "zuluye", "uti", "s\u025btanburu", "\u0254kut\u0254buru", "nowanburu", "desanburu" ], "SHORTDAY": [ "kar", "nt\u025b", "tar", "ara", "ala", "jum", "sib" ], "SHORTMONTH": [ "zan", "feb", "mar", "awi", "m\u025b", "zuw", "zul", "uti", "s\u025bt", "\u0254ku", "now", "des" ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM, y HH:mm:ss", "mediumDate": "d MMM, y", "mediumTime": "HH:mm:ss", "short": "d/M/y HH:mm", "shortDate": "d/M/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "CFA", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "bm-ml", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
LeaYeh/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_bm-ml.js
JavaScript
mit
2,321
videojs.addLanguage("es",{ "Play": "Reproducción", "Pause": "Pausa", "Current Time": "Tiempo reproducido", "Duration Time": "Duración total", "Remaining Time": "Tiempo restante", "Stream Type": "Tipo de secuencia", "LIVE": "DIRECTO", "Loaded": "Cargado", "Progress": "Progreso", "Fullscreen": "Pantalla completa", "Non-Fullscreen": "Pantalla no completa", "Mute": "Silenciar", "Unmuted": "No silenciado", "Playback Rate": "Velocidad de reproducción", "Subtitles": "Subtítulos", "subtitles off": "Subtítulos desactivados", "Captions": "Subtítulos especiales", "captions off": "Subtítulos especiales desactivados", "Chapters": "Capítulos", "You aborted the media playback": "Ha interrumpido la reproducción del vídeo.", "A network error caused the media download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.", "The media could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.", "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.", "No compatible source was found for this media.": "No se ha encontrado ninguna fuente compatible con este vídeo." });
brix/cdnjs
ajax/libs/video.js/5.0.0-rc.87/lang/es.js
JavaScript
mit
1,504
videojs.addLanguage("ja",{ "Play": "再生", "Pause": "一時停止", "Current Time": "現在の時間", "Duration Time": "長さ", "Remaining Time": "残りの時間", "Stream Type": "ストリームの種類", "LIVE": "ライブ", "Loaded": "ロード済み", "Progress": "進行状況", "Fullscreen": "フルスクリーン", "Non-Fullscreen": "フルスクリーン以外", "Mute": "ミュート", "Unmuted": "ミュート解除", "Playback Rate": "再生レート", "Subtitles": "サブタイトル", "subtitles off": "サブタイトル オフ", "Captions": "キャプション", "captions off": "キャプション オフ", "Chapters": "チャプター", "You aborted the media playback": "動画再生を中止しました", "A network error caused the media download to fail part-way.": "ネットワーク エラーにより動画のダウンロードが途中で失敗しました", "The media could not be loaded, either because the server or network failed or because the format is not supported.": "サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした", "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました", "No compatible source was found for this media.": "この動画に対して互換性のあるソースが見つかりませんでした" });
froala/cdnjs
ajax/libs/video.js/5.0.0-rc.56/lang/ja.js
JavaScript
mit
1,644
videojs.addLanguage("es",{ "Play": "Reproducción", "Pause": "Pausa", "Current Time": "Tiempo reproducido", "Duration Time": "Duración total", "Remaining Time": "Tiempo restante", "Stream Type": "Tipo de secuencia", "LIVE": "DIRECTO", "Loaded": "Cargado", "Progress": "Progreso", "Fullscreen": "Pantalla completa", "Non-Fullscreen": "Pantalla no completa", "Mute": "Silenciar", "Unmuted": "No silenciado", "Playback Rate": "Velocidad de reproducción", "Subtitles": "Subtítulos", "subtitles off": "Subtítulos desactivados", "Captions": "Subtítulos especiales", "captions off": "Subtítulos especiales desactivados", "Chapters": "Capítulos", "You aborted the media playback": "Ha interrumpido la reproducción del vídeo.", "A network error caused the media download to fail part-way.": "Un error de red ha interrumpido la descarga del vídeo.", "The media could not be loaded, either because the server or network failed or because the format is not supported.": "No se ha podido cargar el vídeo debido a un fallo de red o del servidor o porque el formato es incompatible.", "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La reproducción de vídeo se ha interrumpido por un problema de corrupción de datos o porque el vídeo precisa funciones que su navegador no ofrece.", "No compatible source was found for this media.": "No se ha encontrado ninguna fuente compatible con este vídeo." });
dlueth/cdnjs
ajax/libs/video.js/5.0.0-rc.44/lang/es.js
JavaScript
mit
1,504
videojs.addLanguage("ar",{ "Play": "تشغيل", "Pause": "ايقاف", "Current Time": "الوقت الحالي", "Duration Time": "Dauer", "Remaining Time": "الوقت المتبقي", "Stream Type": "نوع التيار", "LIVE": "مباشر", "Loaded": "تم التحميل", "Progress": "التقدم", "Fullscreen": "ملء الشاشة", "Non-Fullscreen": "غير ملء الشاشة", "Mute": "صامت", "Unmuted": "غير الصامت", "Playback Rate": "معدل التشغيل", "Subtitles": "الترجمة", "subtitles off": "ايقاف الترجمة", "Captions": "التعليقات", "captions off": "ايقاف التعليقات", "Chapters": "فصول", "You aborted the media playback": "لقد ألغيت تشغيل الفيديو", "A network error caused the media download to fail part-way.": "تسبب خطأ في الشبكة بفشل تحميل الفيديو بالكامل.", "The media could not be loaded, either because the server or network failed or because the format is not supported.": "لا يمكن تحميل الفيديو بسبب فشل في الخادم أو الشبكة ، أو فشل بسبب عدم امكانية قراءة تنسيق الفيديو.", "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "تم ايقاف تشغيل الفيديو بسبب مشكلة فساد أو لأن الفيديو المستخدم يستخدم ميزات غير مدعومة من متصفحك.", "No compatible source was found for this media.": "فشل العثور على أي مصدر متوافق مع هذا الفيديو." });
yaplas/jsdelivr
files/videojs/5.0.0-rc.52/lang/ar.js
JavaScript
mit
1,674
YUI.add('series-area-stacked', function (Y, NAME) { /** * Provides functionality for creating a stacked area series. * * @module charts * @submodule series-area-stacked */ /** * StackedAreaSeries area fills to display data showing its contribution to a whole. * * @class StackedAreaSeries * @extends AreaSeries * @uses StackingUtil * @constructor * @param {Object} config (optional) Configuration parameters. * @submodule series-area-stacked */ Y.StackedAreaSeries = Y.Base.create("stackedAreaSeries", Y.AreaSeries, [Y.StackingUtil], { /** * @protected * * Calculates the coordinates for the series. Overrides base implementation. * * @method setAreaData */ setAreaData: function() { Y.StackedAreaSeries.superclass.setAreaData.apply(this); this._stackCoordinates.apply(this); }, /** * @protected * * Draws the series * * @method drawSeries */ drawSeries: function() { this.drawFill.apply(this, this._getStackedClosingPoints()); } }, { ATTRS: { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default stackedArea */ type: { value:"stackedArea" } } }); }, '@VERSION@', {"requires": ["series-stacked", "series-area"]});
tonytlwu/cdnjs
ajax/libs/yui/3.10.2/series-area-stacked/series-area-stacked-debug.js
JavaScript
mit
1,393
YUI.add('graphics-group', function (Y, NAME) { /** * The graphics-group submodule allows from drawing a shape multiple times within a single instance. * * @module graphics * @submodule graphics-group */ var ShapeGroup, CircleGroup, RectGroup, EllipseGroup, DiamondGroup, Y_Lang = Y.Lang; /** * Abstract class for creating groups of shapes with the same styles and dimensions. * * @class ShapeGroup * @constructor * @submodule graphics-group */ ShapeGroup = function() { ShapeGroup.superclass.constructor.apply(this, arguments); }; ShapeGroup.NAME = "shapeGroup"; Y.extend(ShapeGroup, Y.Path, { /** * Updates the shape. * * @method _draw * @private */ _draw: function() { var xvalues = this.get("xvalues"), yvalues = this.get("yvalues"), x, y, xRad, yRad, i = 0, len, dimensions = this.get("dimensions"), width = dimensions.width, height = dimensions.height, radius = dimensions.radius, yRadius = dimensions.yRadius, widthIsArray = Y_Lang.isArray(width), heightIsArray = Y_Lang.isArray(height), radiusIsArray = Y_Lang.isArray(radius), yRadiusIsArray = Y_Lang.isArray(yRadius); if(xvalues && yvalues && xvalues.length > 0) { this.clear(); len = xvalues.length; for(; i < len; ++i) { x = xvalues[i]; y = yvalues[i]; xRad = radiusIsArray ? radius[i] : radius; yRad = yRadiusIsArray ? yRadius[i] : yRadius; if(!isNaN(x) && !isNaN(y) && !isNaN(xRad)) { this.drawShape({ x: x, y: y, width: widthIsArray ? width[i] : width, height: heightIsArray ? height[i] : height, radius: xRad, yRadius: yRad }); this.closePath(); } } this._closePath(); } }, /** * Parses and array of lengths into radii * * @method _getRadiusCollection * @param {Array} val Array of lengths * @return Array * @private */ _getRadiusCollection: function(val) { var i = 0, len = val.length, radii = []; for(; i < len; ++i) { radii[i] = val[i] * 0.5; } return radii; } }); ShapeGroup.ATTRS = Y.merge(Y.Path.ATTRS, { dimensions: { getter: function() { var dimensions = this._dimensions, radius, yRadius, width, height; if(dimensions.hasOwnProperty("radius")) { return dimensions; } else { width = dimensions.width; height = dimensions.height; radius = Y_Lang.isArray(width) ? this._getRadiusCollection(width) : (width * 0.5); yRadius = Y_Lang.isArray(height) ? this._getRadiusCollection(height) : (height * 0.5); return { width: width, height: height, radius: radius, yRadius: yRadius }; } }, setter: function(val) { this._dimensions = val; return val; } }, xvalues: { getter: function() { return this._xvalues; }, setter: function(val) { this._xvalues = val; } }, yvalues: { getter: function() { return this._yvalues; }, setter: function(val) { this._yvalues = val; } } }); Y.ShapeGroup = ShapeGroup; /** * Abstract class for creating groups of circles with the same styles and dimensions. * * @class CircleGroup * @constructor * @submodule graphics-group */ CircleGroup = function() { CircleGroup.superclass.constructor.apply(this, arguments); }; CircleGroup.NAME = "circleGroup"; Y.extend(CircleGroup, Y.ShapeGroup, { /** * Algorithm for drawing shape. * * @method drawShape * @param {Object} cfg Parameters used to draw the shape. */ drawShape: function(cfg) { this.drawCircle(cfg.x, cfg.y, cfg.radius); } }); CircleGroup.ATTRS = Y.merge(Y.ShapeGroup.ATTRS, { dimensions: { getter: function() { var dimensions = this._dimensions, radius, yRadius, width, height; if(dimensions.hasOwnProperty("radius")) { return dimensions; } else { width = dimensions.width; height = dimensions.height; radius = Y_Lang.isArray(width) ? this._getRadiusCollection(width) : (width * 0.5); yRadius = radius; return { width: width, height: height, radius: radius, yRadius: yRadius }; } } } }); CircleGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.CircleGroup = CircleGroup; /** * Abstract class for creating groups of rects with the same styles and dimensions. * * @class GroupRect * @constructor * @submodule graphics-group */ RectGroup = function() { RectGroup.superclass.constructor.apply(this, arguments); }; RectGroup.NAME = "rectGroup"; Y.extend(RectGroup, Y.ShapeGroup, { /** * Updates the rect. * * @method _draw * @private */ drawShape: function(cfg) { this.drawRect(cfg.x, cfg.y, cfg.width, cfg.height); } }); RectGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.RectGroup = RectGroup; /** * Abstract class for creating groups of diamonds with the same styles and dimensions. * * @class GroupDiamond * @constructor * @submodule graphics-group */ DiamondGroup = function() { DiamondGroup.superclass.constructor.apply(this, arguments); }; DiamondGroup.NAME = "diamondGroup"; Y.extend(DiamondGroup, Y.ShapeGroup, { /** * Updates the diamond. * * @method _draw * @private */ drawShape: function(cfg) { this.drawDiamond(cfg.x, cfg.y, cfg.width, cfg.height); } }); DiamondGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.DiamondGroup = DiamondGroup; /** * Abstract class for creating groups of ellipses with the same styles and dimensions. * * @class EllipseGroup * @constructor * @submodule graphics-group */ EllipseGroup = function() { EllipseGroup.superclass.constructor.apply(this, arguments); }; EllipseGroup.NAME = "ellipseGroup"; Y.extend(EllipseGroup, Y.ShapeGroup, { /** * Updates the ellipse. * * @method _draw * @private */ drawShape: function(cfg) { this.drawEllipse(cfg.x, cfg.y, cfg.width, cfg.height); } }); EllipseGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.EllipseGroup = EllipseGroup; }, '@VERSION@', {"requires": ["graphics"]});
enricodeleo/cdnjs
ajax/libs/yui/3.14.1/graphics-group/graphics-group.js
JavaScript
mit
7,404
YUI.add('series-marker-stacked', function (Y, NAME) { /** * Provides functionality for creating a stacked marker series. * * @module charts * @submodule series-marker-stacked */ /** * StackedMarkerSeries plots markers with different series stacked along the value axis to indicate each * series' contribution to a cumulative total. * * @class StackedMarkerSeries * @constructor * @extends MarkerSeries * @uses StackingUtil * @param {Object} config (optional) Configuration parameters. * @submodule series-marker-stacked */ Y.StackedMarkerSeries = Y.Base.create("stackedMarkerSeries", Y.MarkerSeries, [Y.StackingUtil], { /** * @protected * * Calculates the coordinates for the series. Overrides base implementation. * * @method setAreaData */ setAreaData: function() { Y.StackedMarkerSeries.superclass.setAreaData.apply(this); this._stackCoordinates.apply(this); } }, { ATTRS: { /** * Read-only attribute indicating the type of series. * * @attribute type * @type String * @default stackedMarker */ type: { value:"stackedMarker" } } }); }, '@VERSION@', {"requires": ["series-stacked", "series-marker"]});
mgoldsborough/cdnjs
ajax/libs/yui/3.10.1/series-marker-stacked/series-marker-stacked-debug.js
JavaScript
mit
1,283
YUI.add('graphics-group', function (Y, NAME) { /** * The graphics-group submodule allows from drawing a shape multiple times within a single instance. * * @module graphics * @submodule graphics-group */ var ShapeGroup, CircleGroup, RectGroup, EllipseGroup, DiamondGroup, Y_Lang = Y.Lang; /** * Abstract class for creating groups of shapes with the same styles and dimensions. * * @class ShapeGroup * @constructor * @submodule graphics-group */ ShapeGroup = function() { ShapeGroup.superclass.constructor.apply(this, arguments); }; ShapeGroup.NAME = "shapeGroup"; Y.extend(ShapeGroup, Y.Path, { /** * Updates the shape. * * @method _draw * @private */ _draw: function() { var xvalues = this.get("xvalues"), yvalues = this.get("yvalues"), x, y, xRad, yRad, i = 0, len, dimensions = this.get("dimensions"), width = dimensions.width, height = dimensions.height, radius = dimensions.radius, yRadius = dimensions.yRadius, widthIsArray = Y_Lang.isArray(width), heightIsArray = Y_Lang.isArray(height), radiusIsArray = Y_Lang.isArray(radius), yRadiusIsArray = Y_Lang.isArray(yRadius); if(xvalues && yvalues && xvalues.length > 0) { this.clear(); len = xvalues.length; for(; i < len; ++i) { x = xvalues[i]; y = yvalues[i]; xRad = radiusIsArray ? radius[i] : radius; yRad = yRadiusIsArray ? yRadius[i] : yRadius; if(!isNaN(x) && !isNaN(y) && !isNaN(xRad)) { this.drawShape({ x: x, y: y, width: widthIsArray ? width[i] : width, height: heightIsArray ? height[i] : height, radius: xRad, yRadius: yRad }); this.closePath(); } } this._closePath(); } }, /** * Parses and array of lengths into radii * * @method _getRadiusCollection * @param {Array} val Array of lengths * @return Array * @private */ _getRadiusCollection: function(val) { var i = 0, len = val.length, radii = []; for(; i < len; ++i) { radii[i] = val[i] * 0.5; } return radii; } }); ShapeGroup.ATTRS = Y.merge(Y.Path.ATTRS, { dimensions: { getter: function() { var dimensions = this._dimensions, radius, yRadius, width, height; if(dimensions.hasOwnProperty("radius")) { return dimensions; } else { width = dimensions.width; height = dimensions.height; radius = Y_Lang.isArray(width) ? this._getRadiusCollection(width) : (width * 0.5); yRadius = Y_Lang.isArray(height) ? this._getRadiusCollection(height) : (height * 0.5); return { width: width, height: height, radius: radius, yRadius: yRadius }; } }, setter: function(val) { this._dimensions = val; return val; } }, xvalues: { getter: function() { return this._xvalues; }, setter: function(val) { this._xvalues = val; } }, yvalues: { getter: function() { return this._yvalues; }, setter: function(val) { this._yvalues = val; } } }); Y.ShapeGroup = ShapeGroup; /** * Abstract class for creating groups of circles with the same styles and dimensions. * * @class CircleGroup * @constructor * @submodule graphics-group */ CircleGroup = function() { CircleGroup.superclass.constructor.apply(this, arguments); }; CircleGroup.NAME = "circleGroup"; Y.extend(CircleGroup, Y.ShapeGroup, { /** * Algorithm for drawing shape. * * @method drawShape * @param {Object} cfg Parameters used to draw the shape. */ drawShape: function(cfg) { this.drawCircle(cfg.x, cfg.y, cfg.radius); } }); CircleGroup.ATTRS = Y.merge(Y.ShapeGroup.ATTRS, { dimensions: { getter: function() { var dimensions = this._dimensions, radius, yRadius, width, height; if(dimensions.hasOwnProperty("radius")) { return dimensions; } else { width = dimensions.width; height = dimensions.height; radius = Y_Lang.isArray(width) ? this._getRadiusCollection(width) : (width * 0.5); yRadius = radius; return { width: width, height: height, radius: radius, yRadius: yRadius }; } } } }); CircleGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.CircleGroup = CircleGroup; /** * Abstract class for creating groups of rects with the same styles and dimensions. * * @class GroupRect * @constructor * @submodule graphics-group */ RectGroup = function() { RectGroup.superclass.constructor.apply(this, arguments); }; RectGroup.NAME = "rectGroup"; Y.extend(RectGroup, Y.ShapeGroup, { /** * Updates the rect. * * @method _draw * @private */ drawShape: function(cfg) { this.drawRect(cfg.x, cfg.y, cfg.width, cfg.height); } }); RectGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.RectGroup = RectGroup; /** * Abstract class for creating groups of diamonds with the same styles and dimensions. * * @class GroupDiamond * @constructor * @submodule graphics-group */ DiamondGroup = function() { DiamondGroup.superclass.constructor.apply(this, arguments); }; DiamondGroup.NAME = "diamondGroup"; Y.extend(DiamondGroup, Y.ShapeGroup, { /** * Updates the diamond. * * @method _draw * @private */ drawShape: function(cfg) { this.drawDiamond(cfg.x, cfg.y, cfg.width, cfg.height); } }); DiamondGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.DiamondGroup = DiamondGroup; /** * Abstract class for creating groups of ellipses with the same styles and dimensions. * * @class EllipseGroup * @constructor * @submodule graphics-group */ EllipseGroup = function() { EllipseGroup.superclass.constructor.apply(this, arguments); }; EllipseGroup.NAME = "ellipseGroup"; Y.extend(EllipseGroup, Y.ShapeGroup, { /** * Updates the ellipse. * * @method _draw * @private */ drawShape: function(cfg) { this.drawEllipse(cfg.x, cfg.y, cfg.width, cfg.height); } }); EllipseGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.EllipseGroup = EllipseGroup; }, '@VERSION@', {"requires": ["graphics"]});
emmansun/cdnjs
ajax/libs/yui/3.14.0/graphics-group/graphics-group-debug.js
JavaScript
mit
7,404
YUI.add('graphics-group', function (Y, NAME) { /** * The graphics-group submodule allows from drawing a shape multiple times within a single instance. * * @module graphics * @submodule graphics-group */ var ShapeGroup, CircleGroup, RectGroup, EllipseGroup, DiamondGroup, Y_Lang = Y.Lang; /** * Abstract class for creating groups of shapes with the same styles and dimensions. * * @class ShapeGroup * @constructor * @submodule graphics-group */ ShapeGroup = function() { ShapeGroup.superclass.constructor.apply(this, arguments); }; ShapeGroup.NAME = "shapeGroup"; Y.extend(ShapeGroup, Y.Path, { /** * Updates the shape. * * @method _draw * @private */ _draw: function() { var xvalues = this.get("xvalues"), yvalues = this.get("yvalues"), x, y, xRad, yRad, i = 0, len, dimensions = this.get("dimensions"), width = dimensions.width, height = dimensions.height, radius = dimensions.radius, yRadius = dimensions.yRadius, widthIsArray = Y_Lang.isArray(width), heightIsArray = Y_Lang.isArray(height), radiusIsArray = Y_Lang.isArray(radius), yRadiusIsArray = Y_Lang.isArray(yRadius); if(xvalues && yvalues && xvalues.length > 0) { this.clear(); len = xvalues.length; for(; i < len; ++i) { x = xvalues[i]; y = yvalues[i]; xRad = radiusIsArray ? radius[i] : radius; yRad = yRadiusIsArray ? yRadius[i] : yRadius; if(!isNaN(x) && !isNaN(y) && !isNaN(xRad)) { this.drawShape({ x: x, y: y, width: widthIsArray ? width[i] : width, height: heightIsArray ? height[i] : height, radius: xRad, yRadius: yRad }); this.closePath(); } } this._closePath(); } }, /** * Parses and array of lengths into radii * * @method _getRadiusCollection * @param {Array} val Array of lengths * @return Array * @private */ _getRadiusCollection: function(val) { var i = 0, len = val.length, radii = []; for(; i < len; ++i) { radii[i] = val[i] * 0.5; } return radii; } }); ShapeGroup.ATTRS = Y.merge(Y.Path.ATTRS, { dimensions: { getter: function() { var dimensions = this._dimensions, radius, yRadius, width, height; if(dimensions.hasOwnProperty("radius")) { return dimensions; } else { width = dimensions.width; height = dimensions.height; radius = Y_Lang.isArray(width) ? this._getRadiusCollection(width) : (width * 0.5); yRadius = Y_Lang.isArray(height) ? this._getRadiusCollection(height) : (height * 0.5); return { width: width, height: height, radius: radius, yRadius: yRadius }; } }, setter: function(val) { this._dimensions = val; return val; } }, xvalues: { getter: function() { return this._xvalues; }, setter: function(val) { this._xvalues = val; } }, yvalues: { getter: function() { return this._yvalues; }, setter: function(val) { this._yvalues = val; } } }); Y.ShapeGroup = ShapeGroup; /** * Abstract class for creating groups of circles with the same styles and dimensions. * * @class CircleGroup * @constructor * @submodule graphics-group */ CircleGroup = function() { CircleGroup.superclass.constructor.apply(this, arguments); }; CircleGroup.NAME = "circleGroup"; Y.extend(CircleGroup, Y.ShapeGroup, { /** * Algorithm for drawing shape. * * @method drawShape * @param {Object} cfg Parameters used to draw the shape. */ drawShape: function(cfg) { this.drawCircle(cfg.x, cfg.y, cfg.radius); } }); CircleGroup.ATTRS = Y.merge(Y.ShapeGroup.ATTRS, { dimensions: { getter: function() { var dimensions = this._dimensions, radius, yRadius, width, height; if(dimensions.hasOwnProperty("radius")) { return dimensions; } else { width = dimensions.width; height = dimensions.height; radius = Y_Lang.isArray(width) ? this._getRadiusCollection(width) : (width * 0.5); yRadius = radius; return { width: width, height: height, radius: radius, yRadius: yRadius }; } } } }); CircleGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.CircleGroup = CircleGroup; /** * Abstract class for creating groups of rects with the same styles and dimensions. * * @class GroupRect * @constructor * @submodule graphics-group */ RectGroup = function() { RectGroup.superclass.constructor.apply(this, arguments); }; RectGroup.NAME = "rectGroup"; Y.extend(RectGroup, Y.ShapeGroup, { /** * Updates the rect. * * @method _draw * @private */ drawShape: function(cfg) { this.drawRect(cfg.x, cfg.y, cfg.width, cfg.height); } }); RectGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.RectGroup = RectGroup; /** * Abstract class for creating groups of diamonds with the same styles and dimensions. * * @class GroupDiamond * @constructor * @submodule graphics-group */ DiamondGroup = function() { DiamondGroup.superclass.constructor.apply(this, arguments); }; DiamondGroup.NAME = "diamondGroup"; Y.extend(DiamondGroup, Y.ShapeGroup, { /** * Updates the diamond. * * @method _draw * @private */ drawShape: function(cfg) { this.drawDiamond(cfg.x, cfg.y, cfg.width, cfg.height); } }); DiamondGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.DiamondGroup = DiamondGroup; /** * Abstract class for creating groups of ellipses with the same styles and dimensions. * * @class EllipseGroup * @constructor * @submodule graphics-group */ EllipseGroup = function() { EllipseGroup.superclass.constructor.apply(this, arguments); }; EllipseGroup.NAME = "ellipseGroup"; Y.extend(EllipseGroup, Y.ShapeGroup, { /** * Updates the ellipse. * * @method _draw * @private */ drawShape: function(cfg) { this.drawEllipse(cfg.x, cfg.y, cfg.width, cfg.height); } }); EllipseGroup.ATTRS = Y.ShapeGroup.ATTRS; Y.EllipseGroup = EllipseGroup; }, '@VERSION@', {"requires": ["graphics"]});
joaojeronimo/cdnjs
ajax/libs/yui/3.9.1/graphics-group/graphics-group-debug.js
JavaScript
mit
7,404
module ActiveRecord # = Active Record Persistence module Persistence extend ActiveSupport::Concern module ClassMethods # Creates an object (or multiple objects) and saves it to the database, if validations pass. # The resulting object is returned whether the object was saved successfully to the database or not. # # The +attributes+ parameter can be either a Hash or an Array of Hashes. These Hashes describe the # attributes on the objects that are to be created. # # ==== Examples # # Create a single new object # User.create(first_name: 'Jamie') # # # Create an Array of new objects # User.create([{ first_name: 'Jamie' }, { first_name: 'Jeremy' }]) # # # Create a single object and pass it into a block to set other attributes. # User.create(first_name: 'Jamie') do |u| # u.is_admin = false # end # # # Creating an Array of new objects using a block, where the block is executed for each object: # User.create([{ first_name: 'Jamie' }, { first_name: 'Jeremy' }]) do |u| # u.is_admin = false # end def create(attributes = nil, &block) if attributes.is_a?(Array) attributes.collect { |attr| create(attr, &block) } else object = new(attributes, &block) object.save object end end # Creates an object (or multiple objects) and saves it to the database, # if validations pass. Raises a RecordInvalid error if validations fail, # unlike Base#create. # # The +attributes+ parameter can be either a Hash or an Array of Hashes. # These describe which attributes to be created on the object, or # multiple objects when given an Array of Hashes. def create!(attributes = nil, &block) if attributes.is_a?(Array) attributes.collect { |attr| create!(attr, &block) } else object = new(attributes, &block) object.save! object end end # Given an attributes hash, +instantiate+ returns a new instance of # the appropriate class. Accepts only keys as strings. # # For example, +Post.all+ may return Comments, Messages, and Emails # by storing the record's subclass in a +type+ attribute. By calling # +instantiate+ instead of +new+, finder methods ensure they get new # instances of the appropriate class for each record. # # See +ActiveRecord::Inheritance#discriminate_class_for_record+ to see # how this "single-table" inheritance mapping is implemented. def instantiate(attributes, column_types = {}) klass = discriminate_class_for_record(attributes) attributes = klass.attributes_builder.build_from_database(attributes, column_types) klass.allocate.init_with('attributes' => attributes, 'new_record' => false) end private # Called by +instantiate+ to decide which class to use for a new # record instance. # # See +ActiveRecord::Inheritance#discriminate_class_for_record+ for # the single-table inheritance discriminator. def discriminate_class_for_record(record) self end end # Returns true if this object hasn't been saved yet -- that is, a record # for the object doesn't exist in the database yet; otherwise, returns false. def new_record? sync_with_transaction_state @new_record end # Returns true if this object has been destroyed, otherwise returns false. def destroyed? sync_with_transaction_state @destroyed end # Returns true if the record is persisted, i.e. it's not a new record and it was # not destroyed, otherwise returns false. def persisted? !(new_record? || destroyed?) end # Saves the model. # # If the model is new a record gets created in the database, otherwise # the existing record gets updated. # # By default, save always run validations. If any of them fail the action # is cancelled and +save+ returns +false+. However, if you supply # validate: false, validations are bypassed altogether. See # ActiveRecord::Validations for more information. # # There's a series of callbacks associated with +save+. If any of the # <tt>before_*</tt> callbacks return +false+ the action is cancelled and # +save+ returns +false+. See ActiveRecord::Callbacks for further # details. # # Attributes marked as readonly are silently ignored if the record is # being updated. def save(*) create_or_update rescue ActiveRecord::RecordInvalid false end # Saves the model. # # If the model is new a record gets created in the database, otherwise # the existing record gets updated. # # With <tt>save!</tt> validations always run. If any of them fail # ActiveRecord::RecordInvalid gets raised. See ActiveRecord::Validations # for more information. # # There's a series of callbacks associated with <tt>save!</tt>. If any of # the <tt>before_*</tt> callbacks return +false+ the action is cancelled # and <tt>save!</tt> raises ActiveRecord::RecordNotSaved. See # ActiveRecord::Callbacks for further details. # # Attributes marked as readonly are silently ignored if the record is # being updated. def save!(*) create_or_update || raise(RecordNotSaved.new("Failed to save the record", self)) end # Deletes the record in the database and freezes this instance to # reflect that no changes should be made (since they can't be # persisted). Returns the frozen instance. # # The row is simply removed with an SQL +DELETE+ statement on the # record's primary key, and no callbacks are executed. # # To enforce the object's +before_destroy+ and +after_destroy+ # callbacks or any <tt>:dependent</tt> association # options, use <tt>#destroy</tt>. def delete self.class.delete(id) if persisted? @destroyed = true freeze end # Deletes the record in the database and freezes this instance to reflect # that no changes should be made (since they can't be persisted). # # There's a series of callbacks associated with <tt>destroy</tt>. If # the <tt>before_destroy</tt> callback return +false+ the action is cancelled # and <tt>destroy</tt> returns +false+. See # ActiveRecord::Callbacks for further details. def destroy raise ReadOnlyRecord, "#{self.class} is marked as readonly" if readonly? destroy_associations self.class.connection.add_transaction_record(self) destroy_row if persisted? @destroyed = true freeze end # Deletes the record in the database and freezes this instance to reflect # that no changes should be made (since they can't be persisted). # # There's a series of callbacks associated with <tt>destroy!</tt>. If # the <tt>before_destroy</tt> callback return +false+ the action is cancelled # and <tt>destroy!</tt> raises ActiveRecord::RecordNotDestroyed. See # ActiveRecord::Callbacks for further details. def destroy! destroy || raise(RecordNotDestroyed.new("Failed to destroy the record", self)) end # Returns an instance of the specified +klass+ with the attributes of the # current record. This is mostly useful in relation to single-table # inheritance structures where you want a subclass to appear as the # superclass. This can be used along with record identification in # Action Pack to allow, say, <tt>Client < Company</tt> to do something # like render <tt>partial: @client.becomes(Company)</tt> to render that # instance using the companies/company partial instead of clients/client. # # Note: The new instance will share a link to the same attributes as the original class. # So any change to the attributes in either instance will affect the other. def becomes(klass) became = klass.new became.instance_variable_set("@attributes", @attributes) changed_attributes = @changed_attributes if defined?(@changed_attributes) became.instance_variable_set("@changed_attributes", changed_attributes || {}) became.instance_variable_set("@new_record", new_record?) became.instance_variable_set("@destroyed", destroyed?) became.instance_variable_set("@errors", errors) became end # Wrapper around +becomes+ that also changes the instance's sti column value. # This is especially useful if you want to persist the changed class in your # database. # # Note: The old instance's sti column value will be changed too, as both objects # share the same set of attributes. def becomes!(klass) became = becomes(klass) sti_type = nil if !klass.descends_from_active_record? sti_type = klass.sti_name end became.public_send("#{klass.inheritance_column}=", sti_type) became end # Updates a single attribute and saves the record. # This is especially useful for boolean flags on existing records. Also note that # # * Validation is skipped. # * Callbacks are invoked. # * updated_at/updated_on column is updated if that column is available. # * Updates all the attributes that are dirty in this object. # # This method raises an +ActiveRecord::ActiveRecordError+ if the # attribute is marked as readonly. # # See also +update_column+. def update_attribute(name, value) name = name.to_s verify_readonly_attribute(name) send("#{name}=", value) save(validate: false) end # Updates the attributes of the model from the passed-in hash and saves the # record, all wrapped in a transaction. If the object is invalid, the saving # will fail and false will be returned. def update(attributes) # The following transaction covers any possible database side-effects of the # attributes assignment. For example, setting the IDs of a child collection. with_transaction_returning_status do assign_attributes(attributes) save end end alias update_attributes update # Updates its receiver just like +update+ but calls <tt>save!</tt> instead # of +save+, so an exception is raised if the record is invalid. def update!(attributes) # The following transaction covers any possible database side-effects of the # attributes assignment. For example, setting the IDs of a child collection. with_transaction_returning_status do assign_attributes(attributes) save! end end alias update_attributes! update! # Equivalent to <code>update_columns(name => value)</code>. def update_column(name, value) update_columns(name => value) end # Updates the attributes directly in the database issuing an UPDATE SQL # statement and sets them in the receiver: # # user.update_columns(last_request_at: Time.current) # # This is the fastest way to update attributes because it goes straight to # the database, but take into account that in consequence the regular update # procedures are totally bypassed. In particular: # # * Validations are skipped. # * Callbacks are skipped. # * +updated_at+/+updated_on+ are not updated. # # This method raises an +ActiveRecord::ActiveRecordError+ when called on new # objects, or when at least one of the attributes is marked as readonly. def update_columns(attributes) raise ActiveRecordError, "cannot update a new record" if new_record? raise ActiveRecordError, "cannot update a destroyed record" if destroyed? attributes.each_key do |key| verify_readonly_attribute(key.to_s) end updated_count = self.class.unscoped.where(self.class.primary_key => id).update_all(attributes) attributes.each do |k, v| raw_write_attribute(k, v) end updated_count == 1 end # Initializes +attribute+ to zero if +nil+ and adds the value passed as +by+ (default is 1). # The increment is performed directly on the underlying attribute, no setter is invoked. # Only makes sense for number-based attributes. Returns +self+. def increment(attribute, by = 1) self[attribute] ||= 0 self[attribute] += by self end # Wrapper around +increment+ that saves the record. This method differs from # its non-bang version in that it passes through the attribute setter. # Saving is not subjected to validation checks. Returns +true+ if the # record could be saved. def increment!(attribute, by = 1) increment(attribute, by).update_attribute(attribute, self[attribute]) end # Initializes +attribute+ to zero if +nil+ and subtracts the value passed as +by+ (default is 1). # The decrement is performed directly on the underlying attribute, no setter is invoked. # Only makes sense for number-based attributes. Returns +self+. def decrement(attribute, by = 1) self[attribute] ||= 0 self[attribute] -= by self end # Wrapper around +decrement+ that saves the record. This method differs from # its non-bang version in that it passes through the attribute setter. # Saving is not subjected to validation checks. Returns +true+ if the # record could be saved. def decrement!(attribute, by = 1) decrement(attribute, by).update_attribute(attribute, self[attribute]) end # Assigns to +attribute+ the boolean opposite of <tt>attribute?</tt>. So # if the predicate returns +true+ the attribute will become +false+. This # method toggles directly the underlying value without calling any setter. # Returns +self+. def toggle(attribute) self[attribute] = !send("#{attribute}?") self end # Wrapper around +toggle+ that saves the record. This method differs from # its non-bang version in that it passes through the attribute setter. # Saving is not subjected to validation checks. Returns +true+ if the # record could be saved. def toggle!(attribute) toggle(attribute).update_attribute(attribute, self[attribute]) end # Reloads the record from the database. # # This method finds record by its primary key (which could be assigned manually) and # modifies the receiver in-place: # # account = Account.new # # => #<Account id: nil, email: nil> # account.id = 1 # account.reload # # Account Load (1.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 1]] # # => #<Account id: 1, email: 'account@example.com'> # # Attributes are reloaded from the database, and caches busted, in # particular the associations cache and the QueryCache. # # If the record no longer exists in the database <tt>ActiveRecord::RecordNotFound</tt> # is raised. Otherwise, in addition to the in-place modification the method # returns +self+ for convenience. # # The optional <tt>:lock</tt> flag option allows you to lock the reloaded record: # # reload(lock: true) # reload with pessimistic locking # # Reloading is commonly used in test suites to test something is actually # written to the database, or when some action modifies the corresponding # row in the database but not the object in memory: # # assert account.deposit!(25) # assert_equal 25, account.credit # check it is updated in memory # assert_equal 25, account.reload.credit # check it is also persisted # # Another common use case is optimistic locking handling: # # def with_optimistic_retry # begin # yield # rescue ActiveRecord::StaleObjectError # begin # # Reload lock_version in particular. # reload # rescue ActiveRecord::RecordNotFound # # If the record is gone there is nothing to do. # else # retry # end # end # end # def reload(options = nil) clear_aggregation_cache clear_association_cache self.class.connection.clear_query_cache fresh_object = if options && options[:lock] self.class.unscoped { self.class.lock(options[:lock]).find(id) } else self.class.unscoped { self.class.find(id) } end @attributes = fresh_object.instance_variable_get('@attributes') @new_record = false self end # Saves the record with the updated_at/on attributes set to the current time. # Please note that no validation is performed and only the +after_touch+, # +after_commit+ and +after_rollback+ callbacks are executed. # # If attribute names are passed, they are updated along with updated_at/on # attributes. # # product.touch # updates updated_at/on # product.touch(:designed_at) # updates the designed_at attribute and updated_at/on # product.touch(:started_at, :ended_at) # updates started_at, ended_at and updated_at/on attributes # # If used along with +belongs_to+ then +touch+ will invoke +touch+ method on # associated object. # # class Brake < ActiveRecord::Base # belongs_to :car, touch: true # end # # class Car < ActiveRecord::Base # belongs_to :corporation, touch: true # end # # # triggers @brake.car.touch and @brake.car.corporation.touch # @brake.touch # # Note that +touch+ must be used on a persisted object, or else an # ActiveRecordError will be thrown. For example: # # ball = Ball.new # ball.touch(:updated_at) # => raises ActiveRecordError # def touch(*names) raise ActiveRecordError, "cannot touch on a new record object" unless persisted? attributes = timestamp_attributes_for_update_in_model attributes.concat(names) unless attributes.empty? current_time = current_time_from_proper_timezone changes = {} attributes.each do |column| column = column.to_s changes[column] = write_attribute(column, current_time) end changes[self.class.locking_column] = increment_lock if locking_enabled? clear_attribute_changes(changes.keys) primary_key = self.class.primary_key self.class.unscoped.where(primary_key => self[primary_key]).update_all(changes) == 1 else true end end private # A hook to be overridden by association modules. def destroy_associations end def destroy_row relation_for_destroy.delete_all end def relation_for_destroy pk = self.class.primary_key column = self.class.columns_hash[pk] substitute = self.class.connection.substitute_at(column) relation = self.class.unscoped.where( self.class.arel_table[pk].eq(substitute)) relation.bind_values = [[column, id]] relation end def create_or_update raise ReadOnlyRecord, "#{self.class} is marked as readonly" if readonly? result = new_record? ? _create_record : _update_record result != false end # Updates the associated record with values matching those of the instance attributes. # Returns the number of affected rows. def _update_record(attribute_names = self.attribute_names) attributes_values = arel_attributes_with_values_for_update(attribute_names) if attributes_values.empty? 0 else self.class.unscoped._update_record attributes_values, id, id_was end end # Creates a record with values matching those of the instance attributes # and returns its id. def _create_record(attribute_names = self.attribute_names) attributes_values = arel_attributes_with_values_for_create(attribute_names) new_id = self.class.unscoped.insert attributes_values self.id ||= new_id if self.class.primary_key @new_record = false id end def verify_readonly_attribute(name) raise ActiveRecordError, "#{name} is marked as readonly" if self.class.readonly_attributes.include?(name) end end end
shelvacu/alternative-poll
vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/persistence.rb
Ruby
mit
20,452
function concatMap(source, selector, thisArg) { return source.map(function (x, i) { var result = selector.call(thisArg, x, i, source); isPromise(result) && (result = observableFromPromise(result)); (Array.isArray(result) || isIterable(result)) && (result = observableFrom(result)); return result; }).concatAll(); } /** * One of the Following: * Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence. * * @example * var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }); * Or: * Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence. * * var res = source.concatMap(function (x) { return Rx.Observable.range(0, x); }, function (x, y) { return x + y; }); * Or: * Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence. * * var res = source.concatMap(Rx.Observable.fromArray([1,2,3])); * @param {Function} selector A transform function to apply to each element or an observable sequence to project each element from the * source sequence onto which could be either an observable or Promise. * @param {Function} [resultSelector] A transform function to apply to each element of the intermediate sequence. * @returns {Observable} An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element. */ observableProto.selectConcat = observableProto.concatMap = function (selector, resultSelector, thisArg) { if (typeof selector === 'function' && typeof resultSelector === 'function') { return this.concatMap(function (x, i) { var selectorResult = selector(x, i); isPromise(selectorResult) && (selectorResult = observableFromPromise(selectorResult)); (Array.isArray(selectorResult) || isIterable(selectorResult)) && (selectorResult = observableFrom(selectorResult)); return selectorResult.map(function (y, i2) { return resultSelector(x, y, i, i2); }); }); } return typeof selector === 'function' ? concatMap(this, selector, thisArg) : concatMap(this, function () { return selector; }); };
meltdownsolutions/meltdown.www
node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/concatmap.js
JavaScript
mit
2,683
/*! formstone v1.0.2 [touch.js] 2016-04-14 | MIT License | formstone.it */ !function(a){"function"==typeof define&&define.amd?define(["jquery","./core"],a):a(jQuery,Formstone)}(function(a,b){"use strict";function c(a){if(a.touches=[],a.touching=!1,this.on(q.dragStart,r.killEvent),a.swipe&&(a.pan=!0),a.scale&&(a.axis=!1),a.axisX="x"===a.axis,a.axisY="y"===a.axis,b.support.pointer){var c="";!a.axis||a.axisX&&a.axisY?c="none":(a.axisX&&(c+=" pan-y"),a.axisY&&(c+=" pan-x")),n(this,c),this.on(q.pointerDown,a,e)}else this.on(q.touchStart,a,e).on(q.mouseDown,a,f)}function d(){this.off(q.namespace),n(this,"")}function e(a){a.preventManipulation&&a.preventManipulation();var b=a.data,c=a.originalEvent;if(c.type.match(/(up|end|cancel)$/i))return void j(a);if(c.pointerId){var d=!1;for(var e in b.touches)b.touches[e].id===c.pointerId&&(d=!0,b.touches[e].pageX=c.pageX,b.touches[e].pageY=c.pageY);d||b.touches.push({id:c.pointerId,pageX:c.pageX,pageY:c.pageY})}else b.touches=c.touches;c.type.match(/(down|start)$/i)?f(a):c.type.match(/move$/i)&&g(a)}function f(c){var d=c.data,f="undefined"!==a.type(d.touches)?d.touches[0]:null;d.touching||(d.startE=c.originalEvent,d.startX=f?f.pageX:c.pageX,d.startY=f?f.pageY:c.pageY,d.startT=(new Date).getTime(),d.scaleD=1,d.passed=!1),d.$links&&d.$links.off(q.click);var h=k(d.scale?q.scaleStart:q.panStart,c,d.startX,d.startY,d.scaleD,0,0,"","");if(d.scale&&d.touches&&d.touches.length>=2){var i=d.touches;d.pinch={startX:l(i[0].pageX,i[1].pageX),startY:l(i[0].pageY,i[1].pageY),startD:m(i[1].pageX-i[0].pageX,i[1].pageY-i[0].pageY)},h.pageX=d.startX=d.pinch.startX,h.pageY=d.startY=d.pinch.startY}d.touching||(d.touching=!0,d.pan&&s.on(q.mouseMove,d,g).on(q.mouseUp,d,j),b.support.pointer?s.on([q.pointerMove,q.pointerUp,q.pointerCancel].join(" "),d,e):s.on([q.touchMove,q.touchEnd,q.touchCancel].join(" "),d,e),d.$el.trigger(h))}function g(b){var c=b.data,d="undefined"!==a.type(c.touches)?c.touches[0]:null,e=d?d.pageX:b.pageX,f=d?d.pageY:b.pageY,g=e-c.startX,h=f-c.startY,i=g>0?"right":"left",n=h>0?"down":"up",o=Math.abs(g)>t,p=Math.abs(h)>t;if(!c.passed&&c.axis&&(c.axisX&&p||c.axisY&&o))j(b);else{!c.passed&&(!c.axis||c.axis&&c.axisX&&o||c.axisY&&p)&&(c.passed=!0),c.passed&&(r.killEvent(b),r.killEvent(c.startE));var s=!0,u=k(c.scale?q.scale:q.pan,b,e,f,c.scaleD,g,h,i,n);if(c.scale)if(c.touches&&c.touches.length>=2){var v=c.touches;c.pinch.endX=l(v[0].pageX,v[1].pageX),c.pinch.endY=l(v[0].pageY,v[1].pageY),c.pinch.endD=m(v[1].pageX-v[0].pageX,v[1].pageY-v[0].pageY),c.scaleD=c.pinch.endD/c.pinch.startD,u.pageX=c.pinch.endX,u.pageY=c.pinch.endY,u.scale=c.scaleD,u.deltaX=c.pinch.endX-c.pinch.startX,u.deltaY=c.pinch.endY-c.pinch.startY}else c.pan||(s=!1);s&&c.$el.trigger(u)}}function h(b,c){b.on(q.click,c,i);var d=a._data(b[0],"events").click;d.unshift(d.pop())}function i(a){r.killEvent(a,!0),a.data.$links.off(q.click)}function j(b){var c=b.data,d="undefined"!==a.type(c.touches)?c.touches[0]:null,e=d?d.pageX:b.pageX,f=d?d.pageY:b.pageY,g=e-c.startX,i=f-c.startY,j=(new Date).getTime(),l=c.scale?q.scaleEnd:q.panEnd,m=g>0?"right":"left",n=i>0?"down":"up",o=Math.abs(g)>1,p=Math.abs(i)>1;if(c.swipe&&Math.abs(g)>t&&j-c.startT<u&&(l=q.swipe),c.axis&&(c.axisX&&p||c.axisY&&o)||o||p){c.$links=c.$el.find("a");for(var r=0,v=c.$links.length;v>r;r++)h(c.$links.eq(r),c)}var w=k(l,b,e,f,c.scaleD,g,i,m,n);s.off([q.touchMove,q.touchEnd,q.touchCancel,q.mouseMove,q.mouseUp,q.pointerMove,q.pointerUp,q.pointerCancel].join(" ")),c.$el.trigger(w),c.touches=[],c.scale,c.touching=!1}function k(b,c,d,e,f,g,h,i,j){return a.Event(b,{originalEvent:c,bubbles:!0,pageX:d,pageY:e,scale:f,deltaX:g,deltaY:h,directionX:i,directionY:j})}function l(a,b){return(a+b)/2}function m(a,b){return Math.sqrt(a*a+b*b)}function n(a,b){a.css({"-ms-touch-action":b,"touch-action":b})}var o=!b.window.PointerEvent,p=b.Plugin("touch",{widget:!0,defaults:{axis:!1,pan:!1,scale:!1,swipe:!1},methods:{_construct:c,_destruct:d},events:{pointerDown:o?"MSPointerDown":"pointerdown",pointerUp:o?"MSPointerUp":"pointerup",pointerMove:o?"MSPointerMove":"pointermove",pointerCancel:o?"MSPointerCancel":"pointercancel"}}),q=p.events,r=p.functions,s=b.$window,t=10,u=50;q.pan="pan",q.panStart="panstart",q.panEnd="panend",q.scale="scale",q.scaleStart="scalestart",q.scaleEnd="scaleend",q.swipe="swipe"});
sajochiu/cdnjs
ajax/libs/formstone/1.0.2/js/touch.js
JavaScript
mit
4,313
/* @license textAngular Author : Austin Anderson License : 2013 MIT Version 1.3.0-20 See README.md or https://github.com/fraywing/textAngular/wiki for requirements and use. */ (function(){ // encapsulate all variables so they don't become global vars "Use Strict"; // IE version detection - http://stackoverflow.com/questions/4169160/javascript-ie-detection-why-not-use-simple-conditional-comments // We need this as IE sometimes plays funny tricks with the contenteditable. // ---------------------------------------------------------- // If you're not in IE (or IE version is less than 5) then: // ie === undefined // If you're in IE (>=5) then you can determine which version: // ie === 7; // IE7 // Thus, to detect IE: // if (ie) {} // And to detect the version: // ie === 6 // IE6 // ie > 7 // IE8, IE9, IE10 ... // ie < 9 // Anything less than IE9 // ---------------------------------------------------------- /* istanbul ignore next: untestable browser check */ var _browserDetect = { ie: (function(){ var undef, v = 3, div = document.createElement('div'), all = div.getElementsByTagName('i'); while ( div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->', all[0] ); return v > 4 ? v : undef; }()), webkit: /AppleWebKit\/([\d.]+)/i.test(navigator.userAgent) }; // fix a webkit bug, see: https://gist.github.com/shimondoodkin/1081133 // this is set true when a blur occurs as the blur of the ta-bind triggers before the click var globalContentEditableBlur = false; /* istanbul ignore next: Browser Un-Focus fix for webkit */ if(_browserDetect.webkit) { document.addEventListener("mousedown", function(_event){ var e = _event || window.event; var curelement = e.target; if(globalContentEditableBlur && curelement !== null){ var isEditable = false; var tempEl = curelement; while(tempEl !== null && tempEl.tagName.toLowerCase() !== 'html' && !isEditable){ isEditable = tempEl.contentEditable === 'true'; tempEl = tempEl.parentNode; } if(!isEditable){ document.getElementById('textAngular-editableFix-010203040506070809').setSelectionRange(0, 0); // set caret focus to an element that handles caret focus correctly. curelement.focus(); // focus the wanted element. if (curelement.select) { curelement.select(); // use select to place cursor for input elements. } } } globalContentEditableBlur = false; }, false); // add global click handler angular.element(document).ready(function () { angular.element(document.body).append(angular.element('<input id="textAngular-editableFix-010203040506070809" style="width:1px;height:1px;border:none;margin:0;padding:0;position:absolute; top: -10000px; left: -10000px;" unselectable="on" tabIndex="-1">')); }); } // Gloabl to textAngular REGEXP vars for block and list elements. var BLOCKELEMENTS = /^(address|article|aside|audio|blockquote|canvas|dd|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|noscript|ol|output|p|pre|section|table|tfoot|ul|video)$/ig; var LISTELEMENTS = /^(ul|li|ol)$/ig; var VALIDELEMENTS = /^(address|article|aside|audio|blockquote|canvas|dd|div|dl|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|noscript|ol|output|p|pre|section|table|tfoot|ul|video|li)$/ig; // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Compatibility /* istanbul ignore next: trim shim for older browsers */ if (!String.prototype.trim) { String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g, ''); }; } // tests against the current jqLite/jquery implementation if this can be an element function validElementString(string){ try{ return angular.element(string).length !== 0; }catch(any){ return false; } } /* Custom stylesheet for the placeholders rules. Credit to: http://davidwalsh.name/add-rules-stylesheets */ var sheet, addCSSRule, removeCSSRule, _addCSSRule, _removeCSSRule; /* istanbul ignore else: IE <8 test*/ if(_browserDetect.ie > 8 || _browserDetect.ie === undefined){ var _sheets = document.styleSheets; /* istanbul ignore next: preference for stylesheet loaded externally */ for(var i = 0; i < _sheets.length; i++){ if(_sheets[i].media.length === 0 || _sheets[i].media.mediaText.match(/(all|screen)/ig)){ if(_sheets[i].href){ if(_sheets[i].href.match(/textangular\.(min\.|)css/ig)){ sheet = _sheets[i]; break; } } } } /* istanbul ignore next: preference for stylesheet loaded externally */ if(!sheet){ // this sheet is used for the placeholders later on. sheet = (function() { // Create the <style> tag var style = document.createElement("style"); /* istanbul ignore else : WebKit hack :( */ if(_browserDetect.webkit) style.appendChild(document.createTextNode("")); // Add the <style> element to the page, add as first so the styles can be overridden by custom stylesheets document.head.appendChild(style); return style.sheet; })(); } // use as: addCSSRule("header", "float: left"); addCSSRule = function(selector, rules) { return _addCSSRule(sheet, selector, rules); }; _addCSSRule = function(_sheet, selector, rules){ var insertIndex; // This order is important as IE 11 has both cssRules and rules but they have different lengths - cssRules is correct, rules gives an error in IE 11 /* istanbul ignore else: firefox catch */ if(_sheet.cssRules) insertIndex = Math.max(_sheet.cssRules.length - 1, 0); else if(_sheet.rules) insertIndex = Math.max(_sheet.rules.length - 1, 0); /* istanbul ignore else: untestable IE option */ if(_sheet.insertRule) { _sheet.insertRule(selector + "{" + rules + "}", insertIndex); } else { _sheet.addRule(selector, rules, insertIndex); } // return the index of the stylesheet rule return insertIndex; }; removeCSSRule = function(index){ _removeCSSRule(sheet, index); }; _removeCSSRule = function(sheet, index){ /* istanbul ignore else: untestable IE option */ if(sheet.removeRule){ sheet.removeRule(index); }else{ sheet.deleteRule(index); } }; } // recursive function that returns an array of angular.elements that have the passed attribute set on them function getByAttribute(element, attribute){ var resultingElements = []; var childNodes = element.children(); if(childNodes.length){ angular.forEach(childNodes, function(child){ resultingElements = resultingElements.concat(getByAttribute(angular.element(child), attribute)); }); } if(element.attr(attribute) !== undefined) resultingElements.push(element); return resultingElements; } angular.module('textAngular.factories', []) .factory('taBrowserTag', [function(){ return function(tag){ /* istanbul ignore next: ie specific test */ if(!tag) return (_browserDetect.ie <= 8)? 'P' : 'p'; else if(tag === '') return (_browserDetect.ie === undefined)? 'div' : (_browserDetect.ie <= 8)? 'P' : 'p'; else return (_browserDetect.ie <= 8)? tag.toUpperCase() : tag; }; }]).factory('taApplyCustomRenderers', ['taCustomRenderers', function(taCustomRenderers){ return function(val){ var element = angular.element('<div></div>'); element[0].innerHTML = val; angular.forEach(taCustomRenderers, function(renderer){ var elements = []; // get elements based on what is defined. If both defined do secondary filter in the forEach after using selector string if(renderer.selector && renderer.selector !== '') elements = element.find(renderer.selector); /* istanbul ignore else: shouldn't fire, if it does we're ignoring everything */ else if(renderer.customAttribute && renderer.customAttribute !== '') elements = getByAttribute(element, renderer.customAttribute); // process elements if any found angular.forEach(elements, function(_element){ _element = angular.element(_element); if(renderer.selector && renderer.selector !== '' && renderer.customAttribute && renderer.customAttribute !== ''){ if(_element.attr(renderer.customAttribute) !== undefined) renderer.renderLogic(_element); } else renderer.renderLogic(_element); }); }); return element[0].innerHTML; }; }]).factory('taFixChrome', function(){ // get whaterever rubbish is inserted in chrome // should be passed an html string, returns an html string var taFixChrome = function(html){ // default wrapper is a span so find all of them var $html = angular.element('<div>' + html + '</div>'); var spans = angular.element($html).find('span'); for(var s = 0; s < spans.length; s++){ var span = angular.element(spans[s]); // chrome specific string that gets inserted into the style attribute, other parts may vary. Second part is specific ONLY to hitting backspace in Headers if(span.attr('style') && span.attr('style').match(/line-height: 1.428571429;|color: inherit; line-height: 1.1;/i)){ span.attr('style', span.attr('style').replace(/( |)font-family: inherit;|( |)line-height: 1.428571429;|( |)line-height:1.1;|( |)color: inherit;/ig, '')); if(!span.attr('style') || span.attr('style') === ''){ if(span.next().length > 0 && span.next()[0].tagName === 'BR') span.next().remove(); span.replaceWith(span[0].innerHTML); } } } // regex to replace ONLY offending styles - these can be inserted into various other tags on delete var result = $html[0].innerHTML.replace(/style="[^"]*?(line-height: 1.428571429;|color: inherit; line-height: 1.1;)[^"]*"/ig, ''); // only replace when something has changed, else we get focus problems on inserting lists if(result !== $html[0].innerHTML) $html[0].innerHTML = result; return $html[0].innerHTML; }; return taFixChrome; }).factory('taSanitize', ['$sanitize', function taSanitizeFactory($sanitize){ var convert_infos = [ { property: 'font-weight', values: [ 'bold' ], tag: 'b' }, { property: 'font-style', values: [ 'italic' ], tag: 'i' } ]; function fixChildren( jq_elm ) { var children = jq_elm.children(); if ( !children.length ) { return; } angular.forEach( children, function( child ) { var jq_child = angular.element(child); fixElement( jq_child ); fixChildren( jq_child ); }); } function fixElement( jq_elm ) { var styleString = jq_elm.attr('style'); if ( !styleString ) { return; } angular.forEach( convert_infos, function( convert_info ) { var css_key = convert_info.property; var css_value = jq_elm.css(css_key); if ( convert_info.values.indexOf(css_value) >= 0 && styleString.toLowerCase().indexOf(css_key) >= 0 ) { jq_elm.css( css_key, '' ); var inner_html = jq_elm.html(); var tag = convert_info.tag; inner_html = '<'+tag+'>' + inner_html + '</'+tag+'>'; jq_elm.html( inner_html ); } }); } return function taSanitize(unsafe, oldsafe, ignore){ if ( !ignore ) { try { var jq_container = angular.element('<div>' + unsafe + '</div>'); fixElement( jq_container ); fixChildren( jq_container ); unsafe = jq_container.html(); } catch (e) { } } // unsafe and oldsafe should be valid HTML strings // any exceptions (lets say, color for example) should be made here but with great care // setup unsafe element for modification var unsafeElement = angular.element('<div>' + unsafe + '</div>'); // replace all align='...' tags with text-align attributes angular.forEach(getByAttribute(unsafeElement, 'align'), function(element){ element.css('text-align', element.attr('align')); element.removeAttr('align'); }); // get the html string back var safe; unsafe = unsafeElement[0].innerHTML; try { safe = $sanitize(unsafe); // do this afterwards, then the $sanitizer should still throw for bad markup if(ignore) safe = unsafe; } catch (e){ safe = oldsafe || ''; } return safe; }; }]).factory('taToolExecuteAction', ['$q', '$log', function($q, $log){ // this must be called on a toolScope or instance return function(editor){ if(editor !== undefined) this.$editor = function(){ return editor; }; var deferred = $q.defer(), promise = deferred.promise, _editor = this.$editor(); promise['finally'](function(){ _editor.endAction.call(_editor); }); // pass into the action the deferred function and also the function to reload the current selection if rangy available var result; try{ result = this.action(deferred, _editor.startAction()); }catch(exc){ $log.error(exc); } if(result || result === undefined){ // if true or undefined is returned then the action has finished. Otherwise the deferred action will be resolved manually. deferred.resolve(); } }; }]); angular.module('textAngular.DOM', ['textAngular.factories']) .factory('taExecCommand', ['taSelection', 'taBrowserTag', '$document', function(taSelection, taBrowserTag, $document){ var listToDefault = function(listElement, defaultWrap){ var $target, i; // if all selected then we should remove the list // grab all li elements and convert to taDefaultWrap tags var children = listElement.find('li'); for(i = children.length - 1; i >= 0; i--){ $target = angular.element('<' + defaultWrap + '>' + children[i].innerHTML + '</' + defaultWrap + '>'); listElement.after($target); } listElement.remove(); taSelection.setSelectionToElementEnd($target[0]); }; var selectLi = function(liElement){ if(/(<br(|\/)>)$/i.test(liElement.innerHTML.trim())) taSelection.setSelectionBeforeElement(angular.element(liElement).find("br")[0]); else taSelection.setSelectionToElementEnd(liElement); }; var listToList = function(listElement, newListTag){ var $target = angular.element('<' + newListTag + '>' + listElement[0].innerHTML + '</' + newListTag + '>'); listElement.after($target); listElement.remove(); selectLi($target.find('li')[0]); }; var childElementsToList = function(elements, listElement, newListTag){ var html = ''; for(var i = 0; i < elements.length; i++){ html += '<' + taBrowserTag('li') + '>' + elements[i].innerHTML + '</' + taBrowserTag('li') + '>'; } var $target = angular.element('<' + newListTag + '>' + html + '</' + newListTag + '>'); listElement.after($target); listElement.remove(); selectLi($target.find('li')[0]); }; return function(taDefaultWrap, topNode){ taDefaultWrap = taBrowserTag(taDefaultWrap); return function(command, showUI, options){ var i, $target, html, _nodes, next, optionsTagName, selectedElement; var defaultWrapper = angular.element('<' + taDefaultWrap + '>'); try{ selectedElement = taSelection.getSelectionElement(); }catch(e){} var $selected = angular.element(selectedElement); if(selectedElement !== undefined){ var tagName = selectedElement.tagName.toLowerCase(); if(command.toLowerCase() === 'insertorderedlist' || command.toLowerCase() === 'insertunorderedlist'){ var selfTag = taBrowserTag((command.toLowerCase() === 'insertorderedlist')? 'ol' : 'ul'); if(tagName === selfTag){ // if all selected then we should remove the list // grab all li elements and convert to taDefaultWrap tags return listToDefault($selected, taDefaultWrap); }else if(tagName === 'li' && $selected.parent()[0].tagName.toLowerCase() === selfTag && $selected.parent().children().length === 1){ // catch for the previous statement if only one li exists return listToDefault($selected.parent(), taDefaultWrap); }else if(tagName === 'li' && $selected.parent()[0].tagName.toLowerCase() !== selfTag && $selected.parent().children().length === 1){ // catch for the previous statement if only one li exists return listToList($selected.parent(), selfTag); }else if(tagName.match(BLOCKELEMENTS) && !$selected.hasClass('ta-bind')){ // if it's one of those block elements we have to change the contents // if it's a ol/ul we are changing from one to the other if(tagName === 'ol' || tagName === 'ul'){ return listToList($selected, selfTag); }else{ var childBlockElements = false; angular.forEach($selected.children(), function(elem){ if(elem.tagName.match(BLOCKELEMENTS)) { childBlockElements = true; } }); if(childBlockElements){ return childElementsToList($selected.children(), $selected, selfTag); }else{ return childElementsToList([angular.element('<div>' + selectedElement.innerHTML + '</div>')[0]], $selected, selfTag); } } }else if(tagName.match(BLOCKELEMENTS)){ // if we get here then all the contents of the ta-bind are selected _nodes = taSelection.getOnlySelectedElements(); if(_nodes.length === 0){ // here is if there is only text in ta-bind ie <div ta-bind>test content</div> $target = angular.element('<' + selfTag + '><li>' + selectedElement.innerHTML + '</li></' + selfTag + '>'); $selected.html(''); $selected.append($target); }else if(_nodes.length === 1 && (_nodes[0].tagName.toLowerCase() === 'ol' || _nodes[0].tagName.toLowerCase() === 'ul')){ if(_nodes[0].tagName.toLowerCase() === selfTag){ // remove return listToDefault(angular.element(_nodes[0]), taDefaultWrap); }else{ return listToList(angular.element(_nodes[0]), selfTag); } }else{ html = ''; var $nodes = []; for(i = 0; i < _nodes.length; i++){ /* istanbul ignore else: catch for real-world can't make it occur in testing */ if(_nodes[i].nodeType !== 3){ var $n = angular.element(_nodes[i]); /* istanbul ignore if: browser check only, phantomjs doesn't return children nodes but chrome at least does */ if(_nodes[i].tagName.toLowerCase() === 'li') continue; else if(_nodes[i].tagName.toLowerCase() === 'ol' || _nodes[i].tagName.toLowerCase() === 'ul'){ html += $n[0].innerHTML; // if it's a list, add all it's children }else if(_nodes[i].tagName.toLowerCase() === 'span' && (_nodes[i].childNodes[0].tagName.toLowerCase() === 'ol' || _nodes[i].childNodes[0].tagName.toLowerCase() === 'ul')){ html += $n[0].childNodes[0].innerHTML; // if it's a list, add all it's children }else{ html += '<' + taBrowserTag('li') + '>' + $n[0].innerHTML + '</' + taBrowserTag('li') + '>'; } $nodes.unshift($n); } } $target = angular.element('<' + selfTag + '>' + html + '</' + selfTag + '>'); $nodes.pop().replaceWith($target); angular.forEach($nodes, function($node){ $node.remove(); }); } taSelection.setSelectionToElementEnd($target[0]); return; } }else if(command.toLowerCase() === 'formatblock'){ optionsTagName = options.toLowerCase().replace(/[<>]/ig, ''); if(optionsTagName.trim() === 'default') { optionsTagName = taDefaultWrap; options = '<' + taDefaultWrap + '>'; } if(tagName === 'li') $target = $selected.parent(); else $target = $selected; // find the first blockElement while(!$target[0].tagName || !$target[0].tagName.match(BLOCKELEMENTS) && !$target.parent().attr('contenteditable')){ $target = $target.parent(); /* istanbul ignore next */ tagName = ($target[0].tagName || '').toLowerCase(); } if(tagName === optionsTagName){ // $target is wrap element _nodes = $target.children(); var hasBlock = false; for(i = 0; i < _nodes.length; i++){ hasBlock = hasBlock || _nodes[i].tagName.match(BLOCKELEMENTS); } if(hasBlock){ $target.after(_nodes); next = $target.next(); $target.remove(); $target = next; }else{ defaultWrapper.append($target[0].childNodes); $target.after(defaultWrapper); $target.remove(); $target = defaultWrapper; } }else if($target.parent()[0].tagName.toLowerCase() === optionsTagName && !$target.parent().hasClass('ta-bind')){ //unwrap logic for parent var blockElement = $target.parent(); var contents = blockElement.contents(); for(i = 0; i < contents.length; i ++){ /* istanbul ignore next: can't test - some wierd thing with how phantomjs works */ if(blockElement.parent().hasClass('ta-bind') && contents[i].nodeType === 3){ defaultWrapper = angular.element('<' + taDefaultWrap + '>'); defaultWrapper[0].innerHTML = contents[i].outerHTML; contents[i] = defaultWrapper[0]; } blockElement.parent()[0].insertBefore(contents[i], blockElement[0]); } blockElement.remove(); }else if(tagName.match(LISTELEMENTS)){ // wrapping a list element $target.wrap(options); }else{ // default wrap behaviour _nodes = taSelection.getOnlySelectedElements(); if(_nodes.length === 0) _nodes = [$target[0]]; // find the parent block element if any of the nodes are inline or text for(i = 0; i < _nodes.length; i++){ if(_nodes[i].nodeType === 3 || !_nodes[i].tagName.match(BLOCKELEMENTS)){ while(_nodes[i].nodeType === 3 || !_nodes[i].tagName || !_nodes[i].tagName.match(BLOCKELEMENTS)){ _nodes[i] = _nodes[i].parentNode; } } } if(angular.element(_nodes[0]).hasClass('ta-bind')){ $target = angular.element(options); $target[0].innerHTML = _nodes[0].innerHTML; _nodes[0].innerHTML = $target[0].outerHTML; }else if(optionsTagName === 'blockquote'){ // blockquotes wrap other block elements html = ''; for(i = 0; i < _nodes.length; i++){ html += _nodes[i].outerHTML; } $target = angular.element(options); $target[0].innerHTML = html; _nodes[0].parentNode.insertBefore($target[0],_nodes[0]); for(i = _nodes.length - 1; i >= 0; i--){ /* istanbul ignore else: */ if(_nodes[i].parentNode) _nodes[i].parentNode.removeChild(_nodes[i]); } } else { // regular block elements replace other block elements for(i = 0; i < _nodes.length; i++){ $target = angular.element(options); $target[0].innerHTML = _nodes[i].innerHTML; _nodes[i].parentNode.insertBefore($target[0],_nodes[i]); _nodes[i].parentNode.removeChild(_nodes[i]); } } } taSelection.setSelectionToElementEnd($target[0]); return; }else if(command.toLowerCase() === 'createlink'){ var _selection = taSelection.getSelection(); if(_selection.collapsed){ // insert text at selection, then select then just let normal exec-command run taSelection.insertHtml('<a href="' + options + '">' + options + '</a>', topNode); return; } }else if(command.toLowerCase() === 'inserthtml'){ taSelection.insertHtml(options, topNode); return; } } try{ $document[0].execCommand(command, showUI, options); }catch(e){} }; }; }]).service('taSelection', ['$window', '$document', /* istanbul ignore next: all browser specifics and PhantomJS dosen't seem to support half of it */ function($window, $document){ // need to dereference the document else the calls don't work correctly var _document = $document[0]; var rangy = $window.rangy; var api = { getSelection: function(){ var range = rangy.getSelection().getRangeAt(0); var container = range.commonAncestorContainer; // Check if the container is a text node and return its parent if so container = container.nodeType === 3 ? container.parentNode : container; return { start: { element: range.startContainer, offset: range.startOffset }, end: { element: range.endContainer, offset: range.endOffset }, container: container, collapsed: range.collapsed }; }, getOnlySelectedElements: function(){ var range = rangy.getSelection().getRangeAt(0); var container = range.commonAncestorContainer; // Check if the container is a text node and return its parent if so container = container.nodeType === 3 ? container.parentNode : container; return range.getNodes([1], function(node){ return node.parentNode === container; }); }, // Some basic selection functions getSelectionElement: function () { return api.getSelection().container; }, setSelection: function(el, start, end){ var range = rangy.createRange(); range.setStart(el, start); range.setEnd(el, end); rangy.getSelection().setSingleRange(range); }, setSelectionBeforeElement: function (el){ var range = rangy.createRange(); range.selectNode(el); range.collapse(true); rangy.getSelection().setSingleRange(range); }, setSelectionAfterElement: function (el){ var range = rangy.createRange(); range.selectNode(el); range.collapse(false); rangy.getSelection().setSingleRange(range); }, setSelectionToElementStart: function (el){ var range = rangy.createRange(); range.selectNodeContents(el); range.collapse(true); rangy.getSelection().setSingleRange(range); }, setSelectionToElementEnd: function (el){ var range = rangy.createRange(); range.selectNodeContents(el); range.collapse(false); rangy.getSelection().setSingleRange(range); }, // from http://stackoverflow.com/questions/6690752/insert-html-at-caret-in-a-contenteditable-div // topNode is the contenteditable normally, all manipulation MUST be inside this. insertHtml: function(html, topNode){ var parent, secondParent, _childI, nodes, startIndex, startNodes, endNodes, i, lastNode; var element = angular.element("<div>" + html + "</div>"); var range = rangy.getSelection().getRangeAt(0); var frag = _document.createDocumentFragment(); var children = element[0].childNodes; var isInline = true; if(children.length > 0){ // NOTE!! We need to do the following: // check for blockelements - if they exist then we have to split the current element in half (and all others up to the closest block element) and insert all children in-between. // If there are no block elements, or there is a mixture we need to create textNodes for the non wrapped text (we don't want them spans messing up the picture). nodes = []; for(_childI = 0; _childI < children.length; _childI++){ if(!( (children[_childI].nodeName.toLowerCase() === 'p' && children[_childI].innerHTML.trim() === '') || // empty p element (children[_childI].nodeType === 3 && children[_childI].nodeValue.trim() === '') // empty text node )){ isInline = isInline && !BLOCKELEMENTS.test(children[_childI].nodeName); nodes.push(children[_childI]); } } for(var _n = 0; _n < nodes.length; _n++) lastNode = frag.appendChild(nodes[_n]); if(!isInline && range.collapsed && /^(|<br(|\/)>)$/i.test(range.startContainer.innerHTML)) range.selectNode(range.startContainer); }else{ isInline = true; // paste text of some sort lastNode = frag = _document.createTextNode(html); } // Other Edge case - selected data spans multiple blocks. if(isInline){ range.deleteContents(); }else{ // not inline insert if(range.collapsed && range.startContainer !== topNode && range.startContainer.parentNode !== topNode){ // split element into 2 and insert block element in middle if(range.startContainer.nodeType === 3){ // if text node parent = range.startContainer.parentNode; nodes = parent.childNodes; // split the nodes into two lists - before and after, splitting the node with the selection into 2 text nodes. startNodes = []; endNodes = []; for(startIndex = 0; startIndex < nodes.length; startIndex++){ startNodes.push(nodes[startIndex]); if(nodes[startIndex] === range.startContainer) break; } endNodes.push(_document.createTextNode(range.startContainer.nodeValue.substring(range.startOffset))); range.startContainer.nodeValue = range.startContainer.nodeValue.substring(0, range.startOffset); for(i = startIndex + 1; i < nodes.length; i++) endNodes.push(nodes[i]); secondParent = parent.cloneNode(); parent.childNodes = startNodes; secondParent.childNodes = endNodes; }else{ parent = range.startContainer; secondParent = parent.cloneNode(); secondParent.innerHTML = parent.innerHTML.substring(range.startOffset); parent.innerHTML = parent.innerHTML.substring(0, range.startOffset); } angular.element(parent).after(secondParent); // put cursor to end of inserted content range.setStartAfter(parent); range.setEndAfter(parent); if(/^(|<br(|\/)>)$/i.test(parent.innerHTML.trim())){ range.setStartBefore(parent); range.setEndBefore(parent); angular.element(parent).remove(); } if(/^(|<br(|\/)>)$/i.test(secondParent.innerHTML.trim())) angular.element(secondParent).remove(); }else{ range.deleteContents(); } } range.insertNode(frag); if(lastNode){ api.setSelectionToElementEnd(lastNode); } } }; return api; }]); angular.module('textAngular.validators', []) .directive('taMaxText', function(){ return { restrict: 'A', require: 'ngModel', link: function(scope, elem, attrs, ctrl){ var max = parseInt(scope.$eval(attrs.taMaxText)); if (isNaN(max)){ throw('Max text must be an integer'); } attrs.$observe('taMaxText', function(value){ max = parseInt(value); if (isNaN(max)){ throw('Max text must be an integer'); } if (ctrl.$dirty){ ctrl.$setViewValue(ctrl.$viewValue); } }); function validator (viewValue){ var source = angular.element('<div/>'); source.html(viewValue); var length = source.text().length; if (length <= max){ ctrl.$setValidity('taMaxText', true); return viewValue; } else{ ctrl.$setValidity('taMaxText', false); return undefined; } } ctrl.$parsers.unshift(validator); } }; }).directive('taMinText', function(){ return { restrict: 'A', require: 'ngModel', link: function(scope, elem, attrs, ctrl){ var min = parseInt(scope.$eval(attrs.taMinText)); if (isNaN(min)){ throw('Min text must be an integer'); } attrs.$observe('taMinText', function(value){ min = parseInt(value); if (isNaN(min)){ throw('Min text must be an integer'); } if (ctrl.$dirty){ ctrl.$setViewValue(ctrl.$viewValue); } }); function validator (viewValue){ var source = angular.element('<div/>'); source.html(viewValue); var length = source.text().length; if (!length || length >= min){ ctrl.$setValidity('taMinText', true); return viewValue; } else{ ctrl.$setValidity('taMinText', false); return undefined; } } ctrl.$parsers.unshift(validator); } }; }); angular.module('textAngular.taBind', ['textAngular.factories', 'textAngular.DOM']) .directive('taBind', ['taSanitize', '$timeout', '$window', '$document', 'taFixChrome', 'taBrowserTag', 'taSelection', 'taSelectableElements', 'taApplyCustomRenderers', 'taOptions', function(taSanitize, $timeout, $window, $document, taFixChrome, taBrowserTag, taSelection, taSelectableElements, taApplyCustomRenderers, taOptions){ // Uses for this are textarea or input with ng-model and ta-bind='text' // OR any non-form element with contenteditable="contenteditable" ta-bind="html|text" ng-model return { require: 'ngModel', link: function(scope, element, attrs, ngModel){ // the option to use taBind on an input or textarea is required as it will sanitize all input into it correctly. var _isContentEditable = element.attr('contenteditable') !== undefined && element.attr('contenteditable'); var _isInputFriendly = _isContentEditable || element[0].tagName.toLowerCase() === 'textarea' || element[0].tagName.toLowerCase() === 'input'; var _isReadonly = false; var _focussed = false; var _disableSanitizer = attrs.taUnsafeSanitizer || taOptions.disableSanitizer; var _lastKey; var BLOCKED_KEYS = /^(9|19|20|27|33|34|35|36|37|38|39|40|45|112|113|114|115|116|117|118|119|120|121|122|123|144|145)$/i; var UNDO_TRIGGER_KEYS = /^(8|13|32|46|59|61|107|109|186|187|188|189|190|191|192|219|220|221|222)$/i; // spaces, enter, delete, backspace, all punctuation var INLINETAGS_NONBLANK = /<(a|abbr|acronym|bdi|bdo|big|cite|code|del|dfn|img|ins|kbd|label|map|mark|q|ruby|rp|rt|s|samp|time|tt|var)[^>]*>/i; // defaults to the paragraph element, but we need the line-break or it doesn't allow you to type into the empty element // non IE is '<p><br/></p>', ie is '<p></p>' as for once IE gets it correct... var _defaultVal, _defaultTest; // set the default to be a paragraph value if(attrs.taDefaultWrap === undefined) attrs.taDefaultWrap = 'p'; /* istanbul ignore next: ie specific test */ if(attrs.taDefaultWrap === ''){ _defaultVal = ''; _defaultTest = (_browserDetect.ie === undefined)? '<div><br></div>' : (_browserDetect.ie >= 11)? '<p><br></p>' : (_browserDetect.ie <= 8)? '<P>&nbsp;</P>' : '<p>&nbsp;</p>'; }else{ _defaultVal = (_browserDetect.ie === undefined || _browserDetect.ie >= 11)? '<' + attrs.taDefaultWrap + '><br></' + attrs.taDefaultWrap + '>' : (_browserDetect.ie <= 8)? '<' + attrs.taDefaultWrap.toUpperCase() + '></' + attrs.taDefaultWrap.toUpperCase() + '>' : '<' + attrs.taDefaultWrap + '></' + attrs.taDefaultWrap + '>'; _defaultTest = (_browserDetect.ie === undefined || _browserDetect.ie >= 11)? '<' + attrs.taDefaultWrap + '><br></' + attrs.taDefaultWrap + '>' : (_browserDetect.ie <= 8)? '<' + attrs.taDefaultWrap.toUpperCase() + '>&nbsp;</' + attrs.taDefaultWrap.toUpperCase() + '>' : '<' + attrs.taDefaultWrap + '>&nbsp;</' + attrs.taDefaultWrap + '>'; } var _blankTest = function(_blankVal){ var _firstTagIndex = _blankVal.indexOf('>'); if(_firstTagIndex === -1) return _blankVal.trim().length === 0; _blankVal = _blankVal.trim().substring(_firstTagIndex, _firstTagIndex + 100); // this regex is to match any number of whitespace only between two tags if (_blankVal.length === 0 || _blankVal === _defaultTest || /^>(\s|&nbsp;)*<\/[^>]+>$/ig.test(_blankVal)) return true; // this regex tests if there is a tag followed by some optional whitespace and some text after that else if (/>\s*[^\s<]/i.test(_blankVal) || INLINETAGS_NONBLANK.test(_blankVal)) return false; else return true; }; element.addClass('ta-bind'); var _undoKeyupTimeout; scope['$undoManager' + (attrs.id || '')] = ngModel.$undoManager = { _stack: [], _index: 0, _max: 1000, push: function(value){ if((typeof value === "undefined" || value === null) || ((typeof this.current() !== "undefined" && this.current() !== null) && value === this.current())) return value; if(this._index < this._stack.length - 1){ this._stack = this._stack.slice(0,this._index+1); } this._stack.push(value); if(_undoKeyupTimeout) $timeout.cancel(_undoKeyupTimeout); if(this._stack.length > this._max) this._stack.shift(); this._index = this._stack.length - 1; return value; }, undo: function(){ return this.setToIndex(this._index-1); }, redo: function(){ return this.setToIndex(this._index+1); }, setToIndex: function(index){ if(index < 0 || index > this._stack.length - 1){ return undefined; } this._index = index; return this.current(); }, current: function(){ return this._stack[this._index]; } }; var _undo = scope['$undoTaBind' + (attrs.id || '')] = function(){ /* istanbul ignore else: can't really test it due to all changes being ignored as well in readonly */ if(!_isReadonly && _isContentEditable){ var content = ngModel.$undoManager.undo(); if(typeof content !== "undefined" && content !== null){ _setInnerHTML(content); _setViewValue(content, false); /* istanbul ignore else: browser catch */ if(element[0].childNodes.length) taSelection.setSelectionToElementEnd(element[0].childNodes[element[0].childNodes.length-1]); else taSelection.setSelectionToElementEnd(element[0]); } } }; var _redo = scope['$redoTaBind' + (attrs.id || '')] = function(){ /* istanbul ignore else: can't really test it due to all changes being ignored as well in readonly */ if(!_isReadonly && _isContentEditable){ var content = ngModel.$undoManager.redo(); if(typeof content !== "undefined" && content !== null){ _setInnerHTML(content); _setViewValue(content, false); /* istanbul ignore else: browser catch */ if(element[0].childNodes.length) taSelection.setSelectionToElementEnd(element[0].childNodes[element[0].childNodes.length-1]); else taSelection.setSelectionToElementEnd(element[0]); } } }; // in here we are undoing the converts used elsewhere to prevent the < > and & being displayed when they shouldn't in the code. var _compileHtml = function(){ if(_isContentEditable) return element[0].innerHTML; if(_isInputFriendly) return element.val(); throw ('textAngular Error: attempting to update non-editable taBind'); }; var _setViewValue = function(_val, triggerUndo){ if(typeof triggerUndo === "undefined" || triggerUndo === null) triggerUndo = true && _isContentEditable; // if not contentEditable then the native undo/redo is fine if(typeof _val === "undefined" || _val === null) _val = _compileHtml(); if(_blankTest(_val)){ // this avoids us from tripping the ng-pristine flag if we click in and out with out typing if(ngModel.$viewValue !== '') ngModel.$setViewValue(''); if(triggerUndo && ngModel.$undoManager.current() !== '') ngModel.$undoManager.push(''); }else{ _reApplyOnSelectorHandlers(); if(ngModel.$viewValue !== _val){ ngModel.$setViewValue(_val); if(triggerUndo) ngModel.$undoManager.push(_val); } } }; //used for updating when inserting wrapped elements scope['updateTaBind' + (attrs.id || '')] = function(){ if(!_isReadonly) _setViewValue(); }; //this code is used to update the models when data is entered/deleted if(_isInputFriendly){ if(!_isContentEditable){ // if a textarea or input just add in change and blur handlers, everything else is done by angulars input directive element.on('change blur', function(){ if(!_isReadonly) ngModel.$setViewValue(_compileHtml()); }); }else{ // all the code specific to contenteditable divs var waitforpastedata = function(savedcontent, _savedSelection, cb) { if (element[0].childNodes && element[0].childNodes.length > 0) { cb(savedcontent, _savedSelection); } else { that = { s: savedcontent, _: _savedSelection, cb: cb }; that.callself = function () { waitforpastedata(that.s, that._, that.cb); }; setTimeout(that.callself, 5); } }; var _processingPaste = false; /* istanbul ignore next: phantom js cannot test this for some reason */ var processpaste = function(savedcontent, _savedSelection) { text = element[0].innerHTML; element[0].innerHTML = savedcontent; // restore selection $window.rangy.restoreSelection(_savedSelection); /* istanbul ignore else: don't care if nothing pasted */ if(text.trim().length){ // test paste from word/microsoft product if(text.match(/class=["']*Mso(Normal|List)/i)){ var textFragment = text.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/i); if(!textFragment) textFragment = text; else textFragment = textFragment[1]; textFragment = textFragment.replace(/<o:p>[\s\S]*?<\/o:p>/ig, '').replace(/class=(["']|)MsoNormal(["']|)/ig, ''); var dom = angular.element("<div>" + textFragment + "</div>"); var targetDom = angular.element("<div></div>"); var _list = { element: null, lastIndent: [], lastLi: null, isUl: false }; _list.lastIndent.peek = function(){ var n = this.length; if (n>0) return this[n-1]; }; var _resetList = function(isUl){ _list.isUl = isUl; _list.element = angular.element(isUl ? "<ul>" : "<ol>"); _list.lastIndent = []; _list.lastIndent.peek = function(){ var n = this.length; if (n>0) return this[n-1]; }; _list.lastLevelMatch = null; }; for(var i = 0; i <= dom[0].childNodes.length; i++){ if(!dom[0].childNodes[i] || dom[0].childNodes[i].nodeName === "#text" || dom[0].childNodes[i].tagName.toLowerCase() !== "p") continue; var el = angular.element(dom[0].childNodes[i]); var _listMatch = (el.attr('class') || '').match(/MsoList(Bullet|Number|Paragraph)(CxSp(First|Middle|Last)|)/i); if(_listMatch){ if(el[0].childNodes.length < 2 || el[0].childNodes[1].childNodes.length < 1){ continue; } var isUl = _listMatch[1].toLowerCase() === "bullet" || (_listMatch[1].toLowerCase() !== "number" && !(/^[^0-9a-z<]*[0-9a-z]+[^0-9a-z<>]</i.test(el[0].childNodes[1].innerHTML) || /^[^0-9a-z<]*[0-9a-z]+[^0-9a-z<>]</i.test(el[0].childNodes[1].childNodes[0].innerHTML))); var _indentMatch = (el.attr('style') || '').match(/margin-left:([\-\.0-9]*)/i); var indent = parseFloat((_indentMatch)?_indentMatch[1]:0); var _levelMatch = (el.attr('style') || '').match(/mso-list:l([0-9]+) level([0-9]+) lfo[0-9+]($|;)/i); // prefers the mso-list syntax if(_levelMatch && _levelMatch[2]) indent = parseInt(_levelMatch[2]); if ((_levelMatch && (!_list.lastLevelMatch || _levelMatch[1] !== _list.lastLevelMatch[1])) || !_listMatch[3] || _listMatch[3].toLowerCase() === "first" || (_list.lastIndent.peek() === null) || (_list.isUl !== isUl && _list.lastIndent.peek() === indent)) { _resetList(isUl); targetDom.append(_list.element); } else if (_list.lastIndent.peek() != null && _list.lastIndent.peek() < indent){ _list.element = angular.element(isUl ? "<ul>" : "<ol>"); _list.lastLi.append(_list.element); } else if (_list.lastIndent.peek() != null && _list.lastIndent.peek() > indent){ while(_list.lastIndent.peek() != null && _list.lastIndent.peek() > indent){ if(_list.element.parent()[0].tagName.toLowerCase() === 'li'){ _list.element = _list.element.parent(); continue; }else if(/[uo]l/i.test(_list.element.parent()[0].tagName.toLowerCase())){ _list.element = _list.element.parent(); }else{ // else it's it should be a sibling break; } _list.lastIndent.pop(); } _list.isUl = _list.element[0].tagName.toLowerCase() === "ul"; if (isUl !== _list.isUl) { _resetList(isUl); targetDom.append(_list.element); } } _list.lastLevelMatch = _levelMatch; if(indent !== _list.lastIndent.peek()) _list.lastIndent.push(indent); _list.lastLi = angular.element("<li>"); _list.element.append(_list.lastLi); _list.lastLi.html(el.html().replace(/<!(--|)\[if !supportLists\](--|)>[\s\S]*?<!(--|)\[endif\](--|)>/ig, '')); el.remove(); }else{ _resetList(false); targetDom.append(el); } } var _unwrapElement = function(node){ node = angular.element(node); for(var _n = node[0].childNodes.length - 1; _n >= 0; _n--) node.after(node[0].childNodes[_n]); node.remove(); }; angular.forEach(targetDom.find('span'), function(node){ node.removeAttribute('lang'); if(node.attributes.length <= 0) _unwrapElement(node); }); angular.forEach(targetDom.find('font'), _unwrapElement); text = targetDom.html(); }else{ // remove unnecessary chrome insert text = text.replace(/<(|\/)meta[^>]*?>/ig, ''); if(text.match(/<[^>]*?(ta-bind)[^>]*?>/)){ // entire text-angular or ta-bind has been pasted, REMOVE AT ONCE!! if(text.match(/<[^>]*?(text-angular)[^>]*?>/)){ var _el = angular.element("<div>" + text + "</div>"); _el.find('textarea').remove(); var binds = getByAttribute(_el, 'ta-bind'); for(var _b = 0; _b < binds.length; _b++){ var _target = binds[_b][0].parentNode.parentNode; for(var _c = 0; _c < binds[_b][0].childNodes.length; _c++){ _target.parentNode.insertBefore(binds[_b][0].childNodes[_c], _target); } _target.parentNode.removeChild(_target); } text = _el.html().replace('<br class="Apple-interchange-newline">', ''); } }else if(text.match(/^<span/)){ // in case of pasting only a span - chrome paste, remove them. THis is just some wierd formatting text = text.replace(/<(|\/)span[^>]*?>/ig, ''); } text = text.replace(/<br class="Apple-interchange-newline"[^>]*?>/ig, ''); } text = taSanitize(text, '', _disableSanitizer); taSelection.insertHtml(text, element[0]); $timeout(function(){ ngModel.$setViewValue(_compileHtml()); _processingPaste = false; element.removeClass('processing-paste'); }, 0); }else{ _processingPaste = false; element.removeClass('processing-paste'); } }; element.on('paste', function(e, eventData){ /* istanbul ignore else: this is for catching the jqLite testing*/ if(eventData) angular.extend(e, eventData); if(_isReadonly || _processingPaste){ e.stopPropagation(); e.preventDefault(); return false; } // Code adapted from http://stackoverflow.com/questions/2176861/javascript-get-clipboard-data-on-paste-event-cross-browser/6804718#6804718 var _savedSelection = $window.rangy.saveSelection(); _processingPaste = true; element.addClass('processing-paste'); var savedcontent = element[0].innerHTML; var clipboardData = (e.originalEvent || e).clipboardData; if (clipboardData && clipboardData.getData) {// Webkit - get data from clipboard, put into editdiv, cleanup, then cancel event var _types = ""; for(var _t = 0; _t < clipboardData.types.length; _t++){ _types += " " + clipboardData.types[_t]; } /* istanbul ignore next: browser tests */ if (/text\/html/i.test(_types)) { element[0].innerHTML = clipboardData.getData('text/html'); } else if (/text\/plain/i.test(_types)) { element[0].innerHTML = clipboardData.getData('text/plain'); } else { element[0].innerHTML = ""; } waitforpastedata(savedcontent, _savedSelection, processpaste); e.stopPropagation(); e.preventDefault(); return false; } else {// Everything else - empty editdiv and allow browser to paste content into it, then cleanup element[0].innerHTML = ""; waitforpastedata(savedcontent, _savedSelection, processpaste); return true; } }); element.on('cut', function(e){ // timeout to next is needed as otherwise the paste/cut event has not finished actually changing the display if(!_isReadonly) $timeout(function(){ ngModel.$setViewValue(_compileHtml()); }, 0); else e.preventDefault(); }); element.on('keydown', function(event, eventData){ /* istanbul ignore else: this is for catching the jqLite testing*/ if(eventData) angular.extend(event, eventData); /* istanbul ignore else: readonly check */ if(!_isReadonly){ if(event.metaKey || event.ctrlKey){ // covers ctrl/command + z if((event.keyCode === 90 && !event.shiftKey)){ _undo(); event.preventDefault(); // covers ctrl + y, command + shift + z }else if((event.keyCode === 90 && event.shiftKey) || (event.keyCode === 89 && !event.shiftKey)){ _redo(); event.preventDefault(); } /* istanbul ignore next: difficult to test as can't seem to select */ }else if(event.keyCode === 13 && !event.shiftKey){ var selection = taSelection.getSelectionElement(); if(!selection.tagName.match(VALIDELEMENTS)) return; var _new = angular.element(_defaultVal); if (/^<br(|\/)>$/i.test(selection.innerHTML.trim()) && selection.parentNode.tagName.toLowerCase() === 'blockquote' && !selection.nextSibling) { // if last element in blockquote and element is blank, pull element outside of blockquote. $selection = angular.element(selection); var _parent = $selection.parent(); _parent.after(_new); $selection.remove(); if(_parent.children().length === 0) _parent.remove(); taSelection.setSelectionToElementStart(_new[0]); event.preventDefault(); }else if (/^<[^>]+><br(|\/)><\/[^>]+>$/i.test(selection.innerHTML.trim()) && selection.tagName.toLowerCase() === 'blockquote'){ $selection = angular.element(selection); $selection.after(_new); $selection.remove(); taSelection.setSelectionToElementStart(_new[0]); event.preventDefault(); } } } }); element.on('keyup', function(event, eventData){ /* istanbul ignore else: this is for catching the jqLite testing*/ if(eventData) angular.extend(event, eventData); if(_undoKeyupTimeout) $timeout.cancel(_undoKeyupTimeout); if(!_isReadonly && !BLOCKED_KEYS.test(event.keyCode)){ // if enter - insert new taDefaultWrap, if shift+enter insert <br/> if(_defaultVal !== '' && event.keyCode === 13){ if(!event.shiftKey){ // new paragraph, br should be caught correctly var selection = taSelection.getSelectionElement(); while(!selection.tagName.match(VALIDELEMENTS) && selection !== element[0]){ selection = selection.parentNode; } if(selection.tagName.toLowerCase() !== attrs.taDefaultWrap && selection.tagName.toLowerCase() !== 'li' && (selection.innerHTML.trim() === '' || selection.innerHTML.trim() === '<br>')){ var _new = angular.element(_defaultVal); angular.element(selection).replaceWith(_new); taSelection.setSelectionToElementStart(_new[0]); } } } var val = _compileHtml(); if(_defaultVal !== '' && val.trim() === ''){ _setInnerHTML(_defaultVal); taSelection.setSelectionToElementStart(element.children()[0]); } var triggerUndo = _lastKey !== event.keyCode && UNDO_TRIGGER_KEYS.test(event.keyCode); _setViewValue(val, triggerUndo); if(!triggerUndo) _undoKeyupTimeout = $timeout(function(){ ngModel.$undoManager.push(val); }, 250); _lastKey = event.keyCode; } }); element.on('blur', function(){ _focussed = false; /* istanbul ignore else: if readonly don't update model */ if(!_isReadonly){ _setViewValue(); } ngModel.$render(); }); // Placeholders not supported on ie 8 and below if(attrs.placeholder && (_browserDetect.ie > 8 || _browserDetect.ie === undefined)){ var ruleIndex; if(attrs.id) ruleIndex = addCSSRule('#' + attrs.id + '.placeholder-text:before', 'content: "' + attrs.placeholder + '"'); else throw('textAngular Error: An unique ID is required for placeholders to work'); scope.$on('$destroy', function(){ removeCSSRule(ruleIndex); }); } element.on('focus', function(){ _focussed = true; ngModel.$render(); }); element.on('mouseup', function(){ var _selection = taSelection.getSelection(); if(_selection.start.element === element[0] && element.children().length) taSelection.setSelectionToElementStart(element.children()[0]); }); // prevent propagation on mousedown in editor, see #206 element.on('mousedown', function(event, eventData){ /* istanbul ignore else: this is for catching the jqLite testing*/ if(eventData) angular.extend(event, eventData); event.stopPropagation(); }); } } // catch DOM XSS via taSanitize // Sanitizing both ways is identical var _sanitize = function(unsafe){ return (ngModel.$oldViewValue = taSanitize(taFixChrome(unsafe), ngModel.$oldViewValue, _disableSanitizer)); }; // trigger the validation calls var _validity = function(value){ if(attrs.required) ngModel.$setValidity('required', !_blankTest(value)); return value; }; // parsers trigger from the above keyup function or any other time that the viewValue is updated and parses it for storage in the ngModel ngModel.$parsers.push(_sanitize); ngModel.$parsers.push(_validity); // because textAngular is bi-directional (which is awesome) we need to also sanitize values going in from the server ngModel.$formatters.push(_sanitize); ngModel.$formatters.push(function(value){ if(_blankTest(value)) return value; var domTest = angular.element("<div>" + value + "</div>"); if(domTest.children().length === 0){ value = "<" + attrs.taDefaultWrap + ">" + value + "</" + attrs.taDefaultWrap + ">"; } return value; }); ngModel.$formatters.push(_validity); ngModel.$formatters.push(function(value){ return ngModel.$undoManager.push(value || ''); }); var selectorClickHandler = function(event){ // emit the element-select event, pass the element scope.$emit('ta-element-select', this); event.preventDefault(); return false; }; var fileDropHandler = function(event, eventData){ /* istanbul ignore else: this is for catching the jqLite testing*/ if(eventData) angular.extend(event, eventData); // emit the drop event, pass the element, preventing should be done elsewhere if(!dropFired && !_isReadonly){ dropFired = true; var dataTransfer; if(event.originalEvent) dataTransfer = event.originalEvent.dataTransfer; else dataTransfer = event.dataTransfer; scope.$emit('ta-drop-event', this, event, dataTransfer); $timeout(function(){ dropFired = false; _setViewValue(); }, 100); } }; //used for updating when inserting wrapped elements var _reApplyOnSelectorHandlers = scope['reApplyOnSelectorHandlers' + (attrs.id || '')] = function(){ /* istanbul ignore else */ if(!_isReadonly) angular.forEach(taSelectableElements, function(selector){ // check we don't apply the handler twice element.find(selector) .off('click', selectorClickHandler) .on('click', selectorClickHandler); }); }; var _setInnerHTML = function(newval){ element[0].innerHTML = newval; }; // changes to the model variable from outside the html/text inputs ngModel.$render = function(){ // catch model being null or undefined var val = ngModel.$viewValue || ''; // if the editor isn't focused it needs to be updated, otherwise it's receiving user input if($document[0].activeElement !== element[0]){ // Not focussed if(_isContentEditable){ // WYSIWYG Mode if(attrs.placeholder){ if(val === ''){ // blank if(_focussed) element.removeClass('placeholder-text'); else element.addClass('placeholder-text'); _setInnerHTML(_defaultVal); }else{ // not-blank element.removeClass('placeholder-text'); _setInnerHTML(val); } }else{ _setInnerHTML((val === '') ? _defaultVal : val); } // if in WYSIWYG and readOnly we kill the use of links by clicking if(!_isReadonly){ _reApplyOnSelectorHandlers(); element.on('drop', fileDropHandler); }else{ element.off('drop', fileDropHandler); } }else if(element[0].tagName.toLowerCase() !== 'textarea' && element[0].tagName.toLowerCase() !== 'input'){ // make sure the end user can SEE the html code as a display. This is a read-only display element _setInnerHTML(taApplyCustomRenderers(val)); }else{ // only for input and textarea inputs element.val(val); } }else{ /* istanbul ignore else: in other cases we don't care */ if(_isContentEditable){ // element is focussed, test for placeholder element.removeClass('placeholder-text'); } } }; if(attrs.taReadonly){ //set initial value _isReadonly = scope.$eval(attrs.taReadonly); if(_isReadonly){ element.addClass('ta-readonly'); // we changed to readOnly mode (taReadonly='true') if(element[0].tagName.toLowerCase() === 'textarea' || element[0].tagName.toLowerCase() === 'input'){ element.attr('disabled', 'disabled'); } if(element.attr('contenteditable') !== undefined && element.attr('contenteditable')){ element.removeAttr('contenteditable'); } }else{ element.removeClass('ta-readonly'); // we changed to NOT readOnly mode (taReadonly='false') if(element[0].tagName.toLowerCase() === 'textarea' || element[0].tagName.toLowerCase() === 'input'){ element.removeAttr('disabled'); }else if(_isContentEditable){ element.attr('contenteditable', 'true'); } } // taReadonly only has an effect if the taBind element is an input or textarea or has contenteditable='true' on it. // Otherwise it is readonly by default scope.$watch(attrs.taReadonly, function(newVal, oldVal){ if(oldVal === newVal) return; if(newVal){ element.addClass('ta-readonly'); // we changed to readOnly mode (taReadonly='true') if(element[0].tagName.toLowerCase() === 'textarea' || element[0].tagName.toLowerCase() === 'input'){ element.attr('disabled', 'disabled'); } if(element.attr('contenteditable') !== undefined && element.attr('contenteditable')){ element.removeAttr('contenteditable'); } // turn ON selector click handlers angular.forEach(taSelectableElements, function(selector){ element.find(selector).on('click', selectorClickHandler); }); element.off('drop', fileDropHandler); }else{ element.removeClass('ta-readonly'); // we changed to NOT readOnly mode (taReadonly='false') if(element[0].tagName.toLowerCase() === 'textarea' || element[0].tagName.toLowerCase() === 'input'){ element.removeAttr('disabled'); }else if(_isContentEditable){ element.attr('contenteditable', 'true'); } // remove the selector click handlers angular.forEach(taSelectableElements, function(selector){ element.find(selector).off('click', selectorClickHandler); }); element.on('drop', fileDropHandler); } _isReadonly = newVal; }); } // Initialise the selectableElements // if in WYSIWYG and readOnly we kill the use of links by clicking if(_isContentEditable && !_isReadonly){ angular.forEach(taSelectableElements, function(selector){ element.find(selector).on('click', selectorClickHandler); }); element.on('drop', fileDropHandler); element.on('blur', function(){ /* istanbul ignore next: webkit fix */ if(_browserDetect.webkit) { // detect webkit globalContentEditableBlur = true; } }); } } }; }]); // this global var is used to prevent multiple fires of the drop event. Needs to be global to the textAngular file. var dropFired = false; var textAngular = angular.module("textAngular", ['ngSanitize', 'textAngularSetup', 'textAngular.factories', 'textAngular.DOM', 'textAngular.validators', 'textAngular.taBind']); //This makes ngSanitize required // setup the global contstant functions for setting up the toolbar // all tool definitions var taTools = {}; /* A tool definition is an object with the following key/value parameters: action: [function(deferred, restoreSelection)] a function that is executed on clicking on the button - this will allways be executed using ng-click and will overwrite any ng-click value in the display attribute. The function is passed a deferred object ($q.defer()), if this is wanted to be used `return false;` from the action and manually call `deferred.resolve();` elsewhere to notify the editor that the action has finished. restoreSelection is only defined if the rangy library is included and it can be called as `restoreSelection()` to restore the users selection in the WYSIWYG editor. display: [string]? Optional, an HTML element to be displayed as the button. The `scope` of the button is the tool definition object with some additional functions If set this will cause buttontext and iconclass to be ignored class: [string]? Optional, if set will override the taOptions.classes.toolbarButton class. buttontext: [string]? if this is defined it will replace the contents of the element contained in the `display` element iconclass: [string]? if this is defined an icon (<i>) will be appended to the `display` element with this string as it's class tooltiptext: [string]? Optional, a plain text description of the action, used for the title attribute of the action button in the toolbar by default. activestate: [function(commonElement)]? this function is called on every caret movement, if it returns true then the class taOptions.classes.toolbarButtonActive will be applied to the `display` element, else the class will be removed disabled: [function()]? if this function returns true then the tool will have the class taOptions.classes.disabled applied to it, else it will be removed Other functions available on the scope are: name: [string] the name of the tool, this is the first parameter passed into taRegisterTool isDisabled: [function()] returns true if the tool is disabled, false if it isn't displayActiveToolClass: [function(boolean)] returns true if the tool is 'active' in the currently focussed toolbar onElementSelect: [Object] This object contains the following key/value pairs and is used to trigger the ta-element-select event element: [String] an element name, will only trigger the onElementSelect action if the tagName of the element matches this string filter: [function(element)]? an optional filter that returns a boolean, if true it will trigger the onElementSelect. action: [function(event, element, editorScope)] the action that should be executed if the onElementSelect function runs */ // name and toolDefinition to add into the tools available to be added on the toolbar function registerTextAngularTool(name, toolDefinition){ if(!name || name === '' || taTools.hasOwnProperty(name)) throw('textAngular Error: A unique name is required for a Tool Definition'); if( (toolDefinition.display && (toolDefinition.display === '' || !validElementString(toolDefinition.display))) || (!toolDefinition.display && !toolDefinition.buttontext && !toolDefinition.iconclass) ) throw('textAngular Error: Tool Definition for "' + name + '" does not have a valid display/iconclass/buttontext value'); taTools[name] = toolDefinition; } textAngular.constant('taRegisterTool', registerTextAngularTool); textAngular.value('taTools', taTools); textAngular.config([function(){ // clear taTools variable. Just catches testing and any other time that this config may run multiple times... angular.forEach(taTools, function(value, key){ delete taTools[key]; }); }]); textAngular.run([function(){ /* istanbul ignore next: not sure how to test this */ // Require Rangy and rangy savedSelection module. if(!window.rangy){ throw("rangy-core.js and rangy-selectionsaverestore.js are required for textAngular to work correctly, rangy-core is not yet loaded."); }else{ window.rangy.init(); if(!window.rangy.saveSelection){ throw("rangy-selectionsaverestore.js is required for textAngular to work correctly."); } } }]); textAngular.directive("textAngular", [ '$compile', '$timeout', 'taOptions', 'taSelection', 'taExecCommand', 'textAngularManager', '$window', '$document', '$animate', '$log', '$q', function($compile, $timeout, taOptions, taSelection, taExecCommand, textAngularManager, $window, $document, $animate, $log, $q){ return { require: '?ngModel', scope: {}, restrict: "EA", link: function(scope, element, attrs, ngModel){ // all these vars should not be accessable outside this directive var _keydown, _keyup, _keypress, _mouseup, _focusin, _focusout, _originalContents, _toolbars, _serial = (attrs.serial) ? attrs.serial : Math.floor(Math.random() * 10000000000000000), _taExecCommand; scope._name = (attrs.name) ? attrs.name : 'textAngularEditor' + _serial; var oneEvent = function(_element, event, action){ $timeout(function(){ // shim the .one till fixed var _func = function(){ _element.off(event, _func); action.apply(this, arguments); }; _element.on(event, _func); }, 100); }; _taExecCommand = taExecCommand(attrs.taDefaultWrap); // get the settings from the defaults and add our specific functions that need to be on the scope angular.extend(scope, angular.copy(taOptions), { // wraps the selection in the provided tag / execCommand function. Should only be called in WYSIWYG mode. wrapSelection: function(command, opt, isSelectableElementTool){ if(command.toLowerCase() === "undo"){ scope['$undoTaBindtaTextElement' + _serial](); }else if(command.toLowerCase() === "redo"){ scope['$redoTaBindtaTextElement' + _serial](); }else{ // catch errors like FF erroring when you try to force an undo with nothing done _taExecCommand(command, false, opt); if(isSelectableElementTool){ // re-apply the selectable tool events scope['reApplyOnSelectorHandlerstaTextElement' + _serial](); } // refocus on the shown display element, this fixes a display bug when using :focus styles to outline the box. // You still have focus on the text/html input it just doesn't show up scope.displayElements.text[0].focus(); } }, showHtml: scope.$eval(attrs.taShowHtml) || false }); // setup the options from the optional attributes if(attrs.taFocussedClass) scope.classes.focussed = attrs.taFocussedClass; if(attrs.taTextEditorClass) scope.classes.textEditor = attrs.taTextEditorClass; if(attrs.taHtmlEditorClass) scope.classes.htmlEditor = attrs.taHtmlEditorClass; // optional setup functions if(attrs.taTextEditorSetup) scope.setup.textEditorSetup = scope.$parent.$eval(attrs.taTextEditorSetup); if(attrs.taHtmlEditorSetup) scope.setup.htmlEditorSetup = scope.$parent.$eval(attrs.taHtmlEditorSetup); // optional fileDropHandler function if(attrs.taFileDrop) scope.fileDropHandler = scope.$parent.$eval(attrs.taFileDrop); else scope.fileDropHandler = scope.defaultFileDropHandler; _originalContents = element[0].innerHTML; // clear the original content element[0].innerHTML = ''; // Setup the HTML elements as variable references for use later scope.displayElements = { // we still need the hidden input even with a textarea as the textarea may have invalid/old input in it, // wheras the input will ALLWAYS have the correct value. forminput: angular.element("<input type='hidden' tabindex='-1' style='display: none;'>"), html: angular.element("<textarea></textarea>"), text: angular.element("<div></div>"), // other toolbased elements scrollWindow: angular.element("<div class='ta-scroll-window'></div>"), popover: angular.element('<div class="popover fade bottom" style="max-width: none; width: 305px;"></div>'), popoverArrow: angular.element('<div class="arrow"></div>'), popoverContainer: angular.element('<div class="popover-content"></div>'), resize: { overlay: angular.element('<div class="ta-resizer-handle-overlay"></div>'), background: angular.element('<div class="ta-resizer-handle-background"></div>'), anchors: [ angular.element('<div class="ta-resizer-handle-corner ta-resizer-handle-corner-tl"></div>'), angular.element('<div class="ta-resizer-handle-corner ta-resizer-handle-corner-tr"></div>'), angular.element('<div class="ta-resizer-handle-corner ta-resizer-handle-corner-bl"></div>'), angular.element('<div class="ta-resizer-handle-corner ta-resizer-handle-corner-br"></div>') ], info: angular.element('<div class="ta-resizer-handle-info"></div>') } }; // Setup the popover scope.displayElements.popover.append(scope.displayElements.popoverArrow); scope.displayElements.popover.append(scope.displayElements.popoverContainer); scope.displayElements.scrollWindow.append(scope.displayElements.popover); scope.displayElements.popover.on('mousedown', function(e, eventData){ /* istanbul ignore else: this is for catching the jqLite testing*/ if(eventData) angular.extend(e, eventData); // this prevents focusout from firing on the editor when clicking anything in the popover e.preventDefault(); return false; }); // define the popover show and hide functions scope.showPopover = function(_el){ scope.displayElements.popover.css('display', 'block'); scope.reflowPopover(_el); $animate.addClass(scope.displayElements.popover, 'in'); oneEvent($document.find('body'), 'click keyup', function(){scope.hidePopover();}); }; scope.reflowPopover = function(_el){ /* istanbul ignore if: catches only if near bottom of editor */ if(scope.displayElements.text[0].offsetHeight - 51 > _el[0].offsetTop){ scope.displayElements.popover.css('top', _el[0].offsetTop + _el[0].offsetHeight + 'px'); scope.displayElements.popover.removeClass('top').addClass('bottom'); }else{ scope.displayElements.popover.css('top', _el[0].offsetTop - 54 + 'px'); scope.displayElements.popover.removeClass('bottom').addClass('top'); } var _maxLeft = scope.displayElements.text[0].offsetWidth - scope.displayElements.popover[0].offsetWidth; var _targetLeft = _el[0].offsetLeft + (_el[0].offsetWidth / 2.0) - (scope.displayElements.popover[0].offsetWidth / 2.0); scope.displayElements.popover.css('left', Math.max(0, Math.min(_maxLeft, _targetLeft)) + 'px'); scope.displayElements.popoverArrow.css('margin-left', (Math.min(_targetLeft, (Math.max(0, _targetLeft - _maxLeft))) - 11) + 'px'); }; scope.hidePopover = function(){ /* istanbul ignore next: dosen't test with mocked animate */ var doneCb = function(){ scope.displayElements.popover.css('display', ''); scope.displayElements.popoverContainer.attr('style', ''); scope.displayElements.popoverContainer.attr('class', 'popover-content'); }; $q.when($animate.removeClass(scope.displayElements.popover, 'in', doneCb)).then(doneCb); }; // setup the resize overlay scope.displayElements.resize.overlay.append(scope.displayElements.resize.background); angular.forEach(scope.displayElements.resize.anchors, function(anchor){ scope.displayElements.resize.overlay.append(anchor);}); scope.displayElements.resize.overlay.append(scope.displayElements.resize.info); scope.displayElements.scrollWindow.append(scope.displayElements.resize.overlay); // define the show and hide events scope.reflowResizeOverlay = function(_el){ _el = angular.element(_el)[0]; scope.displayElements.resize.overlay.css({ 'display': 'block', 'left': _el.offsetLeft - 5 + 'px', 'top': _el.offsetTop - 5 + 'px', 'width': _el.offsetWidth + 10 + 'px', 'height': _el.offsetHeight + 10 + 'px' }); scope.displayElements.resize.info.text(_el.offsetWidth + ' x ' + _el.offsetHeight); }; /* istanbul ignore next: pretty sure phantomjs won't test this */ scope.showResizeOverlay = function(_el){ var resizeMouseDown = function(event){ var startPosition = { width: parseInt(_el.attr('width')), height: parseInt(_el.attr('height')), x: event.clientX, y: event.clientY }; if(startPosition.width === undefined || isNaN(startPosition.width)) startPosition.width = _el[0].offsetWidth; if(startPosition.height === undefined || isNaN(startPosition.height)) startPosition.height = _el[0].offsetHeight; scope.hidePopover(); var ratio = startPosition.height / startPosition.width; var mousemove = function(event){ // calculate new size var pos = { x: Math.max(0, startPosition.width + (event.clientX - startPosition.x)), y: Math.max(0, startPosition.height + (event.clientY - startPosition.y)) }; if(event.shiftKey){ // keep ratio var newRatio = pos.y / pos.x; pos.x = ratio > newRatio ? pos.x : pos.y / ratio; pos.y = ratio > newRatio ? pos.x * ratio : pos.y; } el = angular.element(_el); el.attr('height', Math.max(0, pos.y)); el.attr('width', Math.max(0, pos.x)); // reflow the popover tooltip scope.reflowResizeOverlay(_el); }; $document.find('body').on('mousemove', mousemove); oneEvent($document.find('body'), 'mouseup', function(event){ event.preventDefault(); event.stopPropagation(); $document.find('body').off('mousemove', mousemove); scope.showPopover(_el); }); event.stopPropagation(); event.preventDefault(); }; scope.displayElements.resize.anchors[3].on('mousedown', resizeMouseDown); scope.reflowResizeOverlay(_el); oneEvent($document.find('body'), 'click', function(){scope.hideResizeOverlay();}); }; /* istanbul ignore next: pretty sure phantomjs won't test this */ scope.hideResizeOverlay = function(){ scope.displayElements.resize.overlay.css('display', ''); }; // allow for insertion of custom directives on the textarea and div scope.setup.htmlEditorSetup(scope.displayElements.html); scope.setup.textEditorSetup(scope.displayElements.text); scope.displayElements.html.attr({ 'id': 'taHtmlElement' + _serial, 'ng-show': 'showHtml', 'ta-bind': 'ta-bind', 'ng-model': 'html' }); scope.displayElements.text.attr({ 'id': 'taTextElement' + _serial, 'contentEditable': 'true', 'ta-bind': 'ta-bind', 'ng-model': 'html' }); scope.displayElements.scrollWindow.attr({'ng-hide': 'showHtml'}); if(attrs.taDefaultWrap) scope.displayElements.text.attr('ta-default-wrap', attrs.taDefaultWrap); if(attrs.taUnsafeSanitizer){ scope.displayElements.text.attr('ta-unsafe-sanitizer', attrs.taUnsafeSanitizer); scope.displayElements.html.attr('ta-unsafe-sanitizer', attrs.taUnsafeSanitizer); } // add the main elements to the origional element scope.displayElements.scrollWindow.append(scope.displayElements.text); element.append(scope.displayElements.scrollWindow); element.append(scope.displayElements.html); scope.displayElements.forminput.attr('name', scope._name); element.append(scope.displayElements.forminput); if(attrs.tabindex){ element.removeAttr('tabindex'); scope.displayElements.text.attr('tabindex', attrs.tabindex); scope.displayElements.html.attr('tabindex', attrs.tabindex); } if (attrs.placeholder) { scope.displayElements.text.attr('placeholder', attrs.placeholder); scope.displayElements.html.attr('placeholder', attrs.placeholder); } if(attrs.taDisabled){ scope.displayElements.text.attr('ta-readonly', 'disabled'); scope.displayElements.html.attr('ta-readonly', 'disabled'); scope.disabled = scope.$parent.$eval(attrs.taDisabled); scope.$parent.$watch(attrs.taDisabled, function(newVal){ scope.disabled = newVal; if(scope.disabled){ element.addClass(scope.classes.disabled); }else{ element.removeClass(scope.classes.disabled); } }); } // compile the scope with the text and html elements only - if we do this with the main element it causes a compile loop $compile(scope.displayElements.scrollWindow)(scope); $compile(scope.displayElements.html)(scope); scope.updateTaBindtaTextElement = scope['updateTaBindtaTextElement' + _serial]; scope.updateTaBindtaHtmlElement = scope['updateTaBindtaHtmlElement' + _serial]; // add the classes manually last element.addClass("ta-root"); scope.displayElements.scrollWindow.addClass("ta-text ta-editor " + scope.classes.textEditor); scope.displayElements.html.addClass("ta-html ta-editor " + scope.classes.htmlEditor); // used in the toolbar actions scope._actionRunning = false; var _savedSelection = false; scope.startAction = function(){ scope._actionRunning = true; // if rangy library is loaded return a function to reload the current selection _savedSelection = $window.rangy.saveSelection(); return function(){ if(_savedSelection) $window.rangy.restoreSelection(_savedSelection); }; }; scope.endAction = function(){ scope._actionRunning = false; if(_savedSelection) $window.rangy.removeMarkers(_savedSelection); _savedSelection = false; scope.updateSelectedStyles(); // only update if in text or WYSIWYG mode if(!scope.showHtml) scope['updateTaBindtaTextElement' + _serial](); }; // note that focusout > focusin is called everytime we click a button - except bad support: http://www.quirksmode.org/dom/events/blurfocus.html // cascades to displayElements.text and displayElements.html automatically. _focusin = function(){ scope.focussed = true; element.addClass(scope.classes.focussed); _toolbars.focus(); }; scope.displayElements.html.on('focus', _focusin); scope.displayElements.text.on('focus', _focusin); _focusout = function(e){ // if we are NOT runnig an action and have NOT focussed again on the text etc then fire the blur events if(!scope._actionRunning && $document[0].activeElement !== scope.displayElements.html[0] && $document[0].activeElement !== scope.displayElements.text[0]){ element.removeClass(scope.classes.focussed); _toolbars.unfocus(); // to prevent multiple apply error defer to next seems to work. $timeout(function(){ scope._bUpdateSelectedStyles = false; element.triggerHandler('blur'); scope.focussed = false; }, 0); } e.preventDefault(); return false; }; scope.displayElements.html.on('blur', _focusout); scope.displayElements.text.on('blur', _focusout); // Setup the default toolbar tools, this way allows the user to add new tools like plugins. // This is on the editor for future proofing if we find a better way to do this. scope.queryFormatBlockState = function(command){ // $document[0].queryCommandValue('formatBlock') errors in Firefox if we call this when focussed on the textarea return !scope.showHtml && command.toLowerCase() === $document[0].queryCommandValue('formatBlock').toLowerCase(); }; scope.queryCommandState = function(command){ // $document[0].queryCommandValue('formatBlock') errors in Firefox if we call this when focussed on the textarea return (!scope.showHtml) ? $document[0].queryCommandState(command) : ''; }; scope.switchView = function(){ scope.showHtml = !scope.showHtml; $animate.enabled(false, scope.displayElements.html); $animate.enabled(false, scope.displayElements.text); //Show the HTML view if(scope.showHtml){ //defer until the element is visible $timeout(function(){ $animate.enabled(true, scope.displayElements.html); $animate.enabled(true, scope.displayElements.text); // [0] dereferences the DOM object from the angular.element return scope.displayElements.html[0].focus(); }, 100); }else{ //Show the WYSIWYG view //defer until the element is visible $timeout(function(){ $animate.enabled(true, scope.displayElements.html); $animate.enabled(true, scope.displayElements.text); // [0] dereferences the DOM object from the angular.element return scope.displayElements.text[0].focus(); }, 100); } }; // changes to the model variable from outside the html/text inputs // if no ngModel, then the only input is from inside text-angular if(attrs.ngModel){ var _firstRun = true; ngModel.$render = function(){ if(_firstRun){ // we need this firstRun to set the originalContents otherwise it gets overrided by the setting of ngModel to undefined from NaN _firstRun = false; // if view value is null or undefined initially and there was original content, set to the original content var _initialValue = scope.$parent.$eval(attrs.ngModel); if((_initialValue === undefined || _initialValue === null) && (_originalContents && _originalContents !== '')){ // on passing through to taBind it will be sanitised ngModel.$setViewValue(_originalContents); } } scope.displayElements.forminput.val(ngModel.$viewValue); // if the editors aren't focused they need to be updated, otherwise they are doing the updating /* istanbul ignore else: don't care */ if(!scope._elementSelectTriggered && $document[0].activeElement !== scope.displayElements.html[0] && $document[0].activeElement !== scope.displayElements.text[0]){ // catch model being null or undefined scope.html = ngModel.$viewValue || ''; } }; // trigger the validation calls var _validity = function(value){ if(attrs.required) ngModel.$setValidity('required', !(!value || value.trim() === '')); return value; }; ngModel.$parsers.push(_validity); ngModel.$formatters.push(_validity); }else{ // if no ngModel then update from the contents of the origional html. scope.displayElements.forminput.val(_originalContents); scope.html = _originalContents; } // changes from taBind back up to here scope.$watch('html', function(newValue, oldValue){ if(newValue !== oldValue){ if(attrs.ngModel && ngModel.$viewValue !== newValue) ngModel.$setViewValue(newValue); scope.displayElements.forminput.val(newValue); } }); if(attrs.taTargetToolbars) _toolbars = textAngularManager.registerEditor(scope._name, scope, attrs.taTargetToolbars.split(',')); else{ var _toolbar = angular.element('<div text-angular-toolbar name="textAngularToolbar' + _serial + '">'); // passthrough init of toolbar options if(attrs.taToolbar) _toolbar.attr('ta-toolbar', attrs.taToolbar); if(attrs.taToolbarClass) _toolbar.attr('ta-toolbar-class', attrs.taToolbarClass); if(attrs.taToolbarGroupClass) _toolbar.attr('ta-toolbar-group-class', attrs.taToolbarGroupClass); if(attrs.taToolbarButtonClass) _toolbar.attr('ta-toolbar-button-class', attrs.taToolbarButtonClass); if(attrs.taToolbarActiveButtonClass) _toolbar.attr('ta-toolbar-active-button-class', attrs.taToolbarActiveButtonClass); if(attrs.taFocussedClass) _toolbar.attr('ta-focussed-class', attrs.taFocussedClass); element.prepend(_toolbar); $compile(_toolbar)(scope.$parent); _toolbars = textAngularManager.registerEditor(scope._name, scope, ['textAngularToolbar' + _serial]); } scope.$on('$destroy', function(){ textAngularManager.unregisterEditor(scope._name); }); // catch element select event and pass to toolbar tools scope.$on('ta-element-select', function(event, element){ if(_toolbars.triggerElementSelect(event, element)){ scope['reApplyOnSelectorHandlerstaTextElement' + _serial](); } }); scope.$on('ta-drop-event', function(event, element, dropEvent, dataTransfer){ scope.displayElements.text[0].focus(); if(dataTransfer && dataTransfer.files && dataTransfer.files.length > 0){ angular.forEach(dataTransfer.files, function(file){ // taking advantage of boolean execution, if the fileDropHandler returns true, nothing else after it is executed // If it is false then execute the defaultFileDropHandler if the fileDropHandler is NOT the default one // Once one of these has been executed wrap the result as a promise, if undefined or variable update the taBind, else we should wait for the promise try{ $q.when(scope.fileDropHandler(file, scope.wrapSelection) || (scope.fileDropHandler !== scope.defaultFileDropHandler && $q.when(scope.defaultFileDropHandler(file, scope.wrapSelection)))).then(function(){ scope['updateTaBindtaTextElement' + _serial](); }); }catch(error){ $log.error(error); } }); dropEvent.preventDefault(); dropEvent.stopPropagation(); /* istanbul ignore else, the updates if moved text */ }else{ $timeout(function(){ scope['updateTaBindtaTextElement' + _serial](); }, 0); } }); // the following is for applying the active states to the tools that support it scope._bUpdateSelectedStyles = false; /* istanbul ignore next: browser window/tab leave check */ angular.element(window).on('blur', function(){ scope._bUpdateSelectedStyles = false; scope.focussed = false; }); // loop through all the tools polling their activeState function if it exists scope.updateSelectedStyles = function(){ var _selection; // test if the common element ISN'T the root ta-text node if((_selection = taSelection.getSelectionElement()) !== undefined && _selection.parentNode !== scope.displayElements.text[0]){ _toolbars.updateSelectedStyles(angular.element(_selection)); }else _toolbars.updateSelectedStyles(); // used to update the active state when a key is held down, ie the left arrow /* istanbul ignore else: browser only check */ if(scope._bUpdateSelectedStyles) $timeout(scope.updateSelectedStyles, 200); }; // start updating on keydown _keydown = function(){ /* istanbul ignore next: ie catch */ if(!scope.focussed){ scope._bUpdateSelectedStyles = false; return; } /* istanbul ignore else: don't run if already running */ if(!scope._bUpdateSelectedStyles){ scope._bUpdateSelectedStyles = true; scope.$apply(function(){ scope.updateSelectedStyles(); }); } }; scope.displayElements.html.on('keydown', _keydown); scope.displayElements.text.on('keydown', _keydown); // stop updating on key up and update the display/model _keyup = function(){ scope._bUpdateSelectedStyles = false; }; scope.displayElements.html.on('keyup', _keyup); scope.displayElements.text.on('keyup', _keyup); // stop updating on key up and update the display/model _keypress = function(event, eventData){ /* istanbul ignore else: this is for catching the jqLite testing*/ if(eventData) angular.extend(event, eventData); scope.$apply(function(){ if(_toolbars.sendKeyCommand(event)){ /* istanbul ignore else: don't run if already running */ if(!scope._bUpdateSelectedStyles){ scope.updateSelectedStyles(); } event.preventDefault(); return false; } }); }; scope.displayElements.html.on('keypress', _keypress); scope.displayElements.text.on('keypress', _keypress); // update the toolbar active states when we click somewhere in the text/html boxed _mouseup = function(){ // ensure only one execution of updateSelectedStyles() scope._bUpdateSelectedStyles = false; scope.$apply(function(){ scope.updateSelectedStyles(); }); }; scope.displayElements.html.on('mouseup', _mouseup); scope.displayElements.text.on('mouseup', _mouseup); } }; } ]); textAngular.service('textAngularManager', ['taToolExecuteAction', 'taTools', 'taRegisterTool', function(taToolExecuteAction, taTools, taRegisterTool){ // this service is used to manage all textAngular editors and toolbars. // All publicly published functions that modify/need to access the toolbar or editor scopes should be in here // these contain references to all the editors and toolbars that have been initialised in this app var toolbars = {}, editors = {}; // when we focus into a toolbar, we need to set the TOOLBAR's $parent to be the toolbars it's linked to. // We also need to set the tools to be updated to be the toolbars... return { // register an editor and the toolbars that it is affected by registerEditor: function(name, scope, targetToolbars){ // targetToolbars are optional, we don't require a toolbar to function if(!name || name === '') throw('textAngular Error: An editor requires a name'); if(!scope) throw('textAngular Error: An editor requires a scope'); if(editors[name]) throw('textAngular Error: An Editor with name "' + name + '" already exists'); // _toolbars is an ARRAY of toolbar scopes var _toolbars = []; angular.forEach(targetToolbars, function(_name){ if(toolbars[_name]) _toolbars.push(toolbars[_name]); // if it doesn't exist it may not have been compiled yet and it will be added later }); editors[name] = { scope: scope, toolbars: targetToolbars, _registerToolbar: function(toolbarScope){ // add to the list late if(this.toolbars.indexOf(toolbarScope.name) >= 0) _toolbars.push(toolbarScope); }, // this is a suite of functions the editor should use to update all it's linked toolbars editorFunctions: { disable: function(){ // disable all linked toolbars angular.forEach(_toolbars, function(toolbarScope){ toolbarScope.disabled = true; }); }, enable: function(){ // enable all linked toolbars angular.forEach(_toolbars, function(toolbarScope){ toolbarScope.disabled = false; }); }, focus: function(){ // this should be called when the editor is focussed angular.forEach(_toolbars, function(toolbarScope){ toolbarScope._parent = scope; toolbarScope.disabled = false; toolbarScope.focussed = true; scope.focussed = true; }); }, unfocus: function(){ // this should be called when the editor becomes unfocussed angular.forEach(_toolbars, function(toolbarScope){ toolbarScope.disabled = true; toolbarScope.focussed = false; }); scope.focussed = false; }, updateSelectedStyles: function(selectedElement){ // update the active state of all buttons on liked toolbars angular.forEach(_toolbars, function(toolbarScope){ angular.forEach(toolbarScope.tools, function(toolScope){ if(toolScope.activeState){ toolbarScope._parent = scope; toolScope.active = toolScope.activeState(selectedElement); } }); }); }, sendKeyCommand: function(event){ // we return true if we applied an action, false otherwise var result = false; if(event.ctrlKey || event.metaKey) angular.forEach(taTools, function(tool, name){ if(tool.commandKeyCode && tool.commandKeyCode === event.which){ for(var _t = 0; _t < _toolbars.length; _t++){ if(_toolbars[_t].tools[name] !== undefined){ taToolExecuteAction.call(_toolbars[_t].tools[name], scope); result = true; break; } } } }); return result; }, triggerElementSelect: function(event, element){ // search through the taTools to see if a match for the tag is made. // if there is, see if the tool is on a registered toolbar and not disabled. // NOTE: This can trigger on MULTIPLE tools simultaneously. var elementHasAttrs = function(_element, attrs){ var result = true; for(var i = 0; i < attrs.length; i++) result = result && _element.attr(attrs[i]); return result; }; var workerTools = []; var unfilteredTools = {}; var result = false; element = angular.element(element); // get all valid tools by element name, keep track if one matches the var onlyWithAttrsFilter = false; angular.forEach(taTools, function(tool, name){ if( tool.onElementSelect && tool.onElementSelect.element && tool.onElementSelect.element.toLowerCase() === element[0].tagName.toLowerCase() && (!tool.onElementSelect.filter || tool.onElementSelect.filter(element)) ){ // this should only end up true if the element matches the only attributes onlyWithAttrsFilter = onlyWithAttrsFilter || (angular.isArray(tool.onElementSelect.onlyWithAttrs) && elementHasAttrs(element, tool.onElementSelect.onlyWithAttrs)); if(!tool.onElementSelect.onlyWithAttrs || elementHasAttrs(element, tool.onElementSelect.onlyWithAttrs)) unfilteredTools[name] = tool; } }); // if we matched attributes to filter on, then filter, else continue if(onlyWithAttrsFilter){ angular.forEach(unfilteredTools, function(tool, name){ if(tool.onElementSelect.onlyWithAttrs && elementHasAttrs(element, tool.onElementSelect.onlyWithAttrs)) workerTools.push({'name': name, 'tool': tool}); }); // sort most specific (most attrs to find) first workerTools.sort(function(a,b){ return b.tool.onElementSelect.onlyWithAttrs.length - a.tool.onElementSelect.onlyWithAttrs.length; }); }else{ angular.forEach(unfilteredTools, function(tool, name){ workerTools.push({'name': name, 'tool': tool}); }); } // Run the actions on the first visible filtered tool only if(workerTools.length > 0){ for(var _i = 0; _i < workerTools.length; _i++){ var tool = workerTools[_i].tool; var name = workerTools[_i].name; for(var _t = 0; _t < _toolbars.length; _t++){ if(_toolbars[_t].tools[name] !== undefined){ tool.onElementSelect.action.call(_toolbars[_t].tools[name], event, element, scope); result = true; break; } } if(result) break; } } return result; } } }; return editors[name].editorFunctions; }, // retrieve editor by name, largely used by testing suites only retrieveEditor: function(name){ return editors[name]; }, unregisterEditor: function(name){ delete editors[name]; }, // registers a toolbar such that it can be linked to editors registerToolbar: function(scope){ if(!scope) throw('textAngular Error: A toolbar requires a scope'); if(!scope.name || scope.name === '') throw('textAngular Error: A toolbar requires a name'); if(toolbars[scope.name]) throw('textAngular Error: A toolbar with name "' + scope.name + '" already exists'); toolbars[scope.name] = scope; angular.forEach(editors, function(_editor){ _editor._registerToolbar(scope); }); }, // retrieve toolbar by name, largely used by testing suites only retrieveToolbar: function(name){ return toolbars[name]; }, // retrieve toolbars by editor name, largely used by testing suites only retrieveToolbarsViaEditor: function(name){ var result = [], _this = this; angular.forEach(this.retrieveEditor(name).toolbars, function(name){ result.push(_this.retrieveToolbar(name)); }); return result; }, unregisterToolbar: function(name){ delete toolbars[name]; }, // functions for updating the toolbar buttons display updateToolsDisplay: function(newTaTools){ // pass a partial struct of the taTools, this allows us to update the tools on the fly, will not change the defaults. var _this = this; angular.forEach(newTaTools, function(_newTool, key){ _this.updateToolDisplay(key, _newTool); }); }, // this function resets all toolbars to their default tool definitions resetToolsDisplay: function(){ var _this = this; angular.forEach(taTools, function(_newTool, key){ _this.resetToolDisplay(key); }); }, // update a tool on all toolbars updateToolDisplay: function(toolKey, _newTool){ var _this = this; angular.forEach(toolbars, function(toolbarScope, toolbarKey){ _this.updateToolbarToolDisplay(toolbarKey, toolKey, _newTool); }); }, // resets a tool to the default/starting state on all toolbars resetToolDisplay: function(toolKey){ var _this = this; angular.forEach(toolbars, function(toolbarScope, toolbarKey){ _this.resetToolbarToolDisplay(toolbarKey, toolKey); }); }, // update a tool on a specific toolbar updateToolbarToolDisplay: function(toolbarKey, toolKey, _newTool){ if(toolbars[toolbarKey]) toolbars[toolbarKey].updateToolDisplay(toolKey, _newTool); else throw('textAngular Error: No Toolbar with name "' + toolbarKey + '" exists'); }, // reset a tool on a specific toolbar to it's default starting value resetToolbarToolDisplay: function(toolbarKey, toolKey){ if(toolbars[toolbarKey]) toolbars[toolbarKey].updateToolDisplay(toolKey, taTools[toolKey], true); else throw('textAngular Error: No Toolbar with name "' + toolbarKey + '" exists'); }, // removes a tool from all toolbars and it's definition removeTool: function(toolKey){ delete taTools[toolKey]; angular.forEach(toolbars, function(toolbarScope){ delete toolbarScope.tools[toolKey]; for(var i = 0; i < toolbarScope.toolbar.length; i++){ var toolbarIndex; for(var j = 0; j < toolbarScope.toolbar[i].length; j++){ if(toolbarScope.toolbar[i][j] === toolKey){ toolbarIndex = { group: i, index: j }; break; } if(toolbarIndex !== undefined) break; } if(toolbarIndex !== undefined){ toolbarScope.toolbar[toolbarIndex.group].slice(toolbarIndex.index, 1); toolbarScope._$element.children().eq(toolbarIndex.group).children().eq(toolbarIndex.index).remove(); } } }); }, // toolkey, toolDefinition are required. If group is not specified will pick the last group, if index isnt defined will append to group addTool: function(toolKey, toolDefinition, group, index){ taRegisterTool(toolKey, toolDefinition); angular.forEach(toolbars, function(toolbarScope){ toolbarScope.addTool(toolKey, toolDefinition, group, index); }); }, // adds a Tool but only to one toolbar not all addToolToToolbar: function(toolKey, toolDefinition, toolbarKey, group, index){ taRegisterTool(toolKey, toolDefinition); toolbars[toolbarKey].addTool(toolKey, toolDefinition, group, index); }, // this is used when externally the html of an editor has been changed and textAngular needs to be notified to update the model. // this will call a $digest if not already happening refreshEditor: function(name){ if(editors[name]){ editors[name].scope.updateTaBindtaTextElement(); /* istanbul ignore else: phase catch */ if(!editors[name].scope.$$phase) editors[name].scope.$digest(); }else throw('textAngular Error: No Editor with name "' + name + '" exists'); } }; }]); textAngular.directive('textAngularToolbar', [ '$compile', 'textAngularManager', 'taOptions', 'taTools', 'taToolExecuteAction', '$window', function($compile, textAngularManager, taOptions, taTools, taToolExecuteAction, $window){ return { scope: { name: '@' // a name IS required }, restrict: "EA", link: function(scope, element, attrs){ if(!scope.name || scope.name === '') throw('textAngular Error: A toolbar requires a name'); angular.extend(scope, angular.copy(taOptions)); if(attrs.taToolbar) scope.toolbar = scope.$parent.$eval(attrs.taToolbar); if(attrs.taToolbarClass) scope.classes.toolbar = attrs.taToolbarClass; if(attrs.taToolbarGroupClass) scope.classes.toolbarGroup = attrs.taToolbarGroupClass; if(attrs.taToolbarButtonClass) scope.classes.toolbarButton = attrs.taToolbarButtonClass; if(attrs.taToolbarActiveButtonClass) scope.classes.toolbarButtonActive = attrs.taToolbarActiveButtonClass; if(attrs.taFocussedClass) scope.classes.focussed = attrs.taFocussedClass; scope.disabled = true; scope.focussed = false; scope._$element = element; element[0].innerHTML = ''; element.addClass("ta-toolbar " + scope.classes.toolbar); scope.$watch('focussed', function(){ if(scope.focussed) element.addClass(scope.classes.focussed); else element.removeClass(scope.classes.focussed); }); var setupToolElement = function(toolDefinition, toolScope){ var toolElement; if(toolDefinition && toolDefinition.display){ toolElement = angular.element(toolDefinition.display); } else toolElement = angular.element("<button type='button'>"); if(toolDefinition && toolDefinition["class"]) toolElement.addClass(toolDefinition["class"]); else toolElement.addClass(scope.classes.toolbarButton); toolElement.attr('name', toolScope.name); // important to not take focus from the main text/html entry toolElement.attr('unselectable', 'on'); toolElement.attr('ng-disabled', 'isDisabled()'); toolElement.attr('tabindex', '-1'); toolElement.attr('ng-click', 'executeAction()'); toolElement.attr('ng-class', 'displayActiveToolClass(active)'); if (toolDefinition && toolDefinition.tooltiptext) { toolElement.attr('title', toolDefinition.tooltiptext); } toolElement.on('mousedown', function(e, eventData){ /* istanbul ignore else: this is for catching the jqLite testing*/ if(eventData) angular.extend(e, eventData); // this prevents focusout from firing on the editor when clicking toolbar buttons e.preventDefault(); return false; }); if(toolDefinition && !toolDefinition.display && !toolScope._display){ // first clear out the current contents if any toolElement[0].innerHTML = ''; // add the buttonText if(toolDefinition.buttontext) toolElement[0].innerHTML = toolDefinition.buttontext; // add the icon to the front of the button if there is content if(toolDefinition.iconclass){ var icon = angular.element('<i>'), content = toolElement[0].innerHTML; icon.addClass(toolDefinition.iconclass); toolElement[0].innerHTML = ''; toolElement.append(icon); if(content && content !== '') toolElement.append('&nbsp;' + content); } } toolScope._lastToolDefinition = angular.copy(toolDefinition); return $compile(toolElement)(toolScope); }; // Keep a reference for updating the active states later scope.tools = {}; // create the tools in the toolbar // default functions and values to prevent errors in testing and on init scope._parent = { disabled: true, showHtml: false, queryFormatBlockState: function(){ return false; }, queryCommandState: function(){ return false; } }; var defaultChildScope = { $window: $window, $editor: function(){ // dynamically gets the editor as it is set return scope._parent; }, isDisabled: function(){ // to set your own disabled logic set a function or boolean on the tool called 'disabled' return ( // this bracket is important as without it it just returns the first bracket and ignores the rest // when the button's disabled function/value evaluates to true (typeof this.$eval('disabled') !== 'function' && this.$eval('disabled')) || this.$eval('disabled()') || // all buttons except the HTML Switch button should be disabled in the showHtml (RAW html) mode (this.name !== 'html' && this.$editor().showHtml) || // if the toolbar is disabled this.$parent.disabled || // if the current editor is disabled this.$editor().disabled ); }, displayActiveToolClass: function(active){ return (active)? scope.classes.toolbarButtonActive : ''; }, executeAction: taToolExecuteAction }; angular.forEach(scope.toolbar, function(group){ // setup the toolbar group var groupElement = angular.element("<div>"); groupElement.addClass(scope.classes.toolbarGroup); angular.forEach(group, function(tool){ // init and add the tools to the group // a tool name (key name from taTools struct) //creates a child scope of the main angularText scope and then extends the childScope with the functions of this particular tool // reference to the scope and element kept scope.tools[tool] = angular.extend(scope.$new(true), taTools[tool], defaultChildScope, {name: tool}); scope.tools[tool].$element = setupToolElement(taTools[tool], scope.tools[tool]); // append the tool compiled with the childScope to the group element groupElement.append(scope.tools[tool].$element); }); // append the group to the toolbar element.append(groupElement); }); // update a tool // if a value is set to null, remove from the display // when forceNew is set to true it will ignore all previous settings, used to reset to taTools definition // to reset to defaults pass in taTools[key] as _newTool and forceNew as true, ie `updateToolDisplay(key, taTools[key], true);` scope.updateToolDisplay = function(key, _newTool, forceNew){ var toolInstance = scope.tools[key]; if(toolInstance){ // get the last toolDefinition, then override with the new definition if(toolInstance._lastToolDefinition && !forceNew) _newTool = angular.extend({}, toolInstance._lastToolDefinition, _newTool); if(_newTool.buttontext === null && _newTool.iconclass === null && _newTool.display === null) throw('textAngular Error: Tool Definition for updating "' + key + '" does not have a valid display/iconclass/buttontext value'); // if tool is defined on this toolbar, update/redo the tool if(_newTool.buttontext === null){ delete _newTool.buttontext; } if(_newTool.iconclass === null){ delete _newTool.iconclass; } if(_newTool.display === null){ delete _newTool.display; } var toolElement = setupToolElement(_newTool, toolInstance); toolInstance.$element.replaceWith(toolElement); toolInstance.$element = toolElement; } }; // we assume here that all values passed are valid and correct scope.addTool = function(key, _newTool, groupIndex, index){ scope.tools[key] = angular.extend(scope.$new(true), taTools[key], defaultChildScope, {name: key}); scope.tools[key].$element = setupToolElement(taTools[key], scope.tools[key]); var group; if(groupIndex === undefined) groupIndex = scope.toolbar.length - 1; group = angular.element(element.children()[groupIndex]); if(index === undefined){ group.append(scope.tools[key].$element); scope.toolbar[groupIndex][scope.toolbar[groupIndex].length - 1] = key; }else{ group.children().eq(index).after(scope.tools[key].$element); scope.toolbar[groupIndex][index] = key; } }; textAngularManager.registerToolbar(scope); scope.$on('$destroy', function(){ textAngularManager.unregisterToolbar(scope.name); }); } }; } ]);})();
codfish/cdnjs
ajax/libs/textAngular/1.3.0-20/src/textAngular.js
JavaScript
mit
108,022
/*! Lazy Load XT v1.0.1 2014-02-17 * http://ressio.github.io/lazy-load-xt * (C) 2014 RESS.io * Licensed under MIT */ (function ($, window, document, undefined) { // options var lazyLoadXT = 'lazyLoadXT', dataLazied = 'lazied', load_error = 'load error', classLazyHidden = 'lazy-hidden', docElement = document.documentElement || document.body, // force load all images in Opera Mini and some mobile browsers without scroll event or getBoundingClientRect() forceLoad = (window.onscroll === undefined || !!window.operamini || !docElement.getBoundingClientRect), options = { autoInit: true, // auto initialize in $.ready selector: 'img[data-src]', // selector for lazyloading elements blankImage: 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7', throttle: 99, // interval (ms) for changes check forceLoad: forceLoad, // force auto load all images loadEvent: 'pageshow', // check AJAX-loaded content in jQueryMobile updateEvent: 'load orientationchange resize scroll touchmove', // page-modified events forceEvent: '', // force loading of all elements //onstart: null, oninit: {removeClass: 'lazy'}, // init handler onshow: {addClass: classLazyHidden}, // start loading handler onload: {removeClass: classLazyHidden, addClass: 'lazy-loaded'}, // load success handler onerror: {removeClass: classLazyHidden}, // error handler //oncomplete: null, // complete handler //scrollContainer: undefined, checkDuplicates: true }, elementOptions = { srcAttr: 'data-src', edgeX: 0, edgeY: 0, visibleOnly: true }, $window = $(window), $isFunction = $.isFunction, $extend = $.extend, $data = $.data || function (el, name) { return $(el).data(name); }, elements = [], topLazy = 0, /* waitingMode=0 : no setTimeout waitingMode=1 : setTimeout, no deferred events waitingMode=2 : setTimeout, deferred events */ waitingMode = 0; $[lazyLoadXT] = $extend(options, elementOptions, $[lazyLoadXT]); /** * Return options.prop if obj.prop is undefined, otherwise return obj.prop * @param {*} obj * @param {*} prop * @returns * */ function getOrDef(obj, prop) { return obj[prop] === undefined ? options[prop] : obj[prop]; } /** * Add new elements to lazy-load list: * $(elements).lazyLoadXT() or $(window).lazyLoadXT() * * @param {object} [overrides] override global options */ $.fn[lazyLoadXT] = function (overrides) { overrides = overrides || {}; var blankImage = getOrDef(overrides, 'blankImage'), checkDuplicates = getOrDef(overrides, 'checkDuplicates'), scrollContainer = getOrDef(overrides, 'scrollContainer'), elementOptionsOverrides = {}, prop; // empty overrides.scrollContainer is supported by both jQuery and Zepto $(scrollContainer).on('scroll', queueCheckLazyElements); for (prop in elementOptions) { elementOptionsOverrides[prop] = getOrDef(overrides, prop); } return this.each(function () { if (this === window) { $(options.selector).lazyLoadXT(overrides); } else { // prevent duplicates if (checkDuplicates && $data(this, dataLazied)) { return; } var $el = $(this).data(dataLazied, 1); if (blankImage && $el[0].tagName === 'IMG' && !this.src) { this.src = blankImage; } // clone elementOptionsOverrides object $el[lazyLoadXT] = $extend({}, elementOptionsOverrides); triggerEvent('init', $el); elements.push($el); } }); }; /** * Process function/object event handler * @param {string} event suffix * @param {jQuery} $el */ function triggerEvent(event, $el) { var handler = options['on' + event]; if (handler) { if ($isFunction(handler)) { handler.call($el[0]); } else { $el .addClass(handler.addClass || '') .removeClass(handler.removeClass || ''); } } $el.trigger('lazy' + event, [$el]); // queue next check as images may be resized after loading of actual file queueCheckLazyElements(); } /** * Trigger onload/onerror handler * @param {Event} e */ function triggerLoadOrError(e) { triggerEvent(e.type, $(this).off(load_error, triggerLoadOrError)); } /** * Load visible elements * @param {bool} [force] loading of all elements */ function checkLazyElements(force) { if (!elements.length) { return; } force = force || options.forceLoad; topLazy = Infinity; var viewportTop = $window.scrollTop(), viewportHeight = window.innerHeight || $window.height(), viewportWidth = window.innerWidth || $window.width(), i, length; for (i = 0, length = elements.length; i < length; i++) { var $el = elements[i], el = $el[0], objData = $el[lazyLoadXT], removeNode = false, visible = force, topEdge; // remove items that are not in DOM if (!$.contains(docElement, el)) { removeNode = true; } else if (force || !objData.visibleOnly || el.offsetWidth || el.offsetHeight) { if (!visible) { var elPos = el.getBoundingClientRect(), edgeX = objData.edgeX, edgeY = objData.edgeY; topEdge = (elPos.top + viewportTop - edgeY) - viewportHeight; visible = (topEdge <= viewportTop && elPos.bottom > -edgeY && elPos.left <= viewportWidth + edgeX && elPos.right > -edgeX); } if (visible) { triggerEvent('show', $el); var srcAttr = objData.srcAttr, src = $isFunction(srcAttr) ? srcAttr($el) : el.getAttribute(srcAttr); if (src) { $el.on(load_error, triggerLoadOrError); el.src = src; } removeNode = true; } else { if (topEdge < topLazy) { topLazy = topEdge; } } } if (removeNode) { elements.splice(i--, 1); length--; } } if (!length) { triggerEvent('complete', $(docElement)); } } /** * Run check of lazy elements after timeout */ function timeoutLazyElements() { if (waitingMode > 1) { waitingMode = 1; checkLazyElements(); setTimeout(timeoutLazyElements, options.throttle); } else { waitingMode = 0; } } /** * Queue check of lazy elements because of event e * @param {Event} [e] */ function queueCheckLazyElements(e) { if (!elements.length) { return; } // fast check for scroll event without new visible elements if (e && e.type === 'scroll' && e.currentTarget === window) { if (topLazy >= $window.scrollTop()) { return; } } if (!waitingMode) { setTimeout(timeoutLazyElements, 0); } waitingMode = 2; } /** * Initialize list of hidden elements */ function initLazyElements() { $window.lazyLoadXT(); queueCheckLazyElements(); } /** * Loading of all elements */ function forceLoadAll() { checkLazyElements(true); } /** * Initialization */ $(document).ready(function () { triggerEvent('start', $window); $window .on(options.loadEvent, initLazyElements) .on(options.updateEvent, queueCheckLazyElements) .on(options.forceEvent, forceLoadAll); if (options.autoInit) { initLazyElements(); // standard initialization } }); })(window.jQuery || window.Zepto, window, document); (function ($) { var options = $.lazyLoadXT; options.selector += ',video,iframe[data-src]'; options.videoPoster = 'data-poster'; $(document).on('lazyshow', 'video', function (e, $el) { var srcAttr = $el.lazyLoadXT.srcAttr, isFuncSrcAttr = $.isFunction(srcAttr); $el .attr('poster', $el.attr(options.videoPoster)) .children('source,track') .each(function () { var $child = $(this); $child.attr('src', isFuncSrcAttr ? srcAttr($child) : $child.attr(srcAttr)); }); // reload video this.load(); }); })(window.jQuery || window.Zepto);
xeodou/cdnjs
ajax/libs/jquery.lazyloadxt/1.0.1/jquery.lazyloadxt.extra.js
JavaScript
mit
9,549
/*! angular-retina - v0.3.0 - 2014-02-17 * https://github.com/jrief/angular-retina * Copyright (c) 2014 Jacob Rief; Licensed MIT */ (function (angular, undefined) { 'use strict'; var infix = '@2x'; var ngRetina = angular.module('ngRetina', []).config([ '$provide', function ($provide) { $provide.decorator('ngSrcDirective', [ '$delegate', function ($delegate) { $delegate[0].compile = function (element, attrs) { }; return $delegate; } ]); } ]); ngRetina.provider('ngRetina', function () { this.setInfix = function (value) { infix = value; }; this.$get = angular.noop; }); ngRetina.directive('ngSrc', [ '$window', '$http', function ($window, $http) { var msie = parseInt((/msie (\d+)/.exec($window.navigator.userAgent.toLowerCase()) || [])[1], 10); var isRetina = function () { var mediaQuery = '(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), ' + '(-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)'; if ($window.devicePixelRatio > 1) return true; return $window.matchMedia && $window.matchMedia(mediaQuery).matches; }(); function getHighResolutionURL(url) { var parts = url.split('.'); if (parts.length < 2) return url; parts[parts.length - 2] += infix; return parts.join('.'); } return function (scope, element, attrs) { function setImgSrc(img_url) { attrs.$set('src', img_url); if (msie) element.prop('src', img_url); } function set2xVariant(img_url) { var img_url_2x = $window.sessionStorage.getItem(img_url); if (!img_url_2x) { img_url_2x = getHighResolutionURL(img_url); $http.head(img_url_2x).success(function (data, status) { setImgSrc(img_url_2x); $window.sessionStorage.setItem(img_url, img_url_2x); }).error(function (data, status, headers, config) { setImgSrc(img_url); $window.sessionStorage.setItem(img_url, img_url); }); } else { setImgSrc(img_url_2x); } } attrs.$observe('ngSrc', function (value) { if (!value) return; if (isRetina && typeof $window.sessionStorage === 'object') { set2xVariant(value); } else { setImgSrc(value); } }); }; } ]); }(window.angular));
tharakauka/cdnjs
ajax/libs/angular-retina/0.3.1/angular-retina.js
JavaScript
mit
2,609
'use strict' var url = require('url') , tunnel = require('tunnel-agent') var defaultProxyHeaderWhiteList = [ 'accept', 'accept-charset', 'accept-encoding', 'accept-language', 'accept-ranges', 'cache-control', 'content-encoding', 'content-language', 'content-length', 'content-location', 'content-md5', 'content-range', 'content-type', 'connection', 'date', 'expect', 'max-forwards', 'pragma', 'referer', 'te', 'transfer-encoding', 'user-agent', 'via' ] var defaultProxyHeaderExclusiveList = [ 'proxy-authorization' ] function constructProxyHost(uriObject) { var port = uriObject.port , protocol = uriObject.protocol , proxyHost = uriObject.hostname + ':' if (port) { proxyHost += port } else if (protocol === 'https:') { proxyHost += '443' } else { proxyHost += '80' } return proxyHost } function constructProxyHeaderWhiteList(headers, proxyHeaderWhiteList) { var whiteList = proxyHeaderWhiteList .reduce(function (set, header) { set[header.toLowerCase()] = true return set }, {}) return Object.keys(headers) .filter(function (header) { return whiteList[header.toLowerCase()] }) .reduce(function (set, header) { set[header] = headers[header] return set }, {}) } function constructTunnelOptions (request, proxyHeaders) { var proxy = request.proxy var tunnelOptions = { proxy : { host : proxy.hostname, port : +proxy.port, proxyAuth : proxy.auth, headers : proxyHeaders }, headers : request.headers, ca : request.ca, cert : request.cert, key : request.key, passphrase : request.passphrase, pfx : request.pfx, ciphers : request.ciphers, rejectUnauthorized : request.rejectUnauthorized, secureOptions : request.secureOptions, secureProtocol : request.secureProtocol } return tunnelOptions } function constructTunnelFnName(uri, proxy) { var uriProtocol = (uri.protocol === 'https:' ? 'https' : 'http') var proxyProtocol = (proxy.protocol === 'https:' ? 'Https' : 'Http') return [uriProtocol, proxyProtocol].join('Over') } function getTunnelFn(request) { var uri = request.uri var proxy = request.proxy var tunnelFnName = constructTunnelFnName(uri, proxy) return tunnel[tunnelFnName] } function Tunnel (request) { this.request = request this.proxyHeaderWhiteList = defaultProxyHeaderWhiteList this.proxyHeaderExclusiveList = [] if (typeof request.tunnel !== 'undefined') { this.tunnelOverride = request.tunnel } } Tunnel.prototype.isEnabled = function () { var self = this , request = self.request // Tunnel HTTPS by default. Allow the user to override this setting. // If self.tunnelOverride is set (the user specified a value), use it. if (typeof self.tunnelOverride !== 'undefined') { return self.tunnelOverride } // If the destination is HTTPS, tunnel. if (request.uri.protocol === 'https:') { return true } // Otherwise, do not use tunnel. return false } Tunnel.prototype.setup = function (options) { var self = this , request = self.request options = options || {} if (typeof request.proxy === 'string') { request.proxy = url.parse(request.proxy) } if (!request.proxy || !request.tunnel) { return false } // Setup Proxy Header Exclusive List and White List if (options.proxyHeaderWhiteList) { self.proxyHeaderWhiteList = options.proxyHeaderWhiteList } if (options.proxyHeaderExclusiveList) { self.proxyHeaderExclusiveList = options.proxyHeaderExclusiveList } var proxyHeaderExclusiveList = self.proxyHeaderExclusiveList.concat(defaultProxyHeaderExclusiveList) var proxyHeaderWhiteList = self.proxyHeaderWhiteList.concat(proxyHeaderExclusiveList) // Setup Proxy Headers and Proxy Headers Host // Only send the Proxy White Listed Header names var proxyHeaders = constructProxyHeaderWhiteList(request.headers, proxyHeaderWhiteList) proxyHeaders.host = constructProxyHost(request.uri) proxyHeaderExclusiveList.forEach(request.removeHeader, request) // Set Agent from Tunnel Data var tunnelFn = getTunnelFn(request) var tunnelOptions = constructTunnelOptions(request, proxyHeaders) request.agent = tunnelFn(tunnelOptions) return true } Tunnel.defaultProxyHeaderWhiteList = defaultProxyHeaderWhiteList Tunnel.defaultProxyHeaderExclusiveList = defaultProxyHeaderExclusiveList exports.Tunnel = Tunnel
kripple/playlist-app
node_modules/karma/node_modules/chokidar/node_modules/fsevents/node_modules/request/lib/tunnel.js
JavaScript
mit
4,580
#include <vector> #include <boost/test/unit_test.hpp> #include <boost/foreach.hpp> #include "script.h" #include "key.h" using namespace std; // Helpers: static std::vector<unsigned char> Serialize(const CScript& s) { std::vector<unsigned char> sSerialized(s); return sSerialized; } BOOST_AUTO_TEST_SUITE(sigopcount_tests) BOOST_AUTO_TEST_CASE(GetSigOpCount) { // Test CScript::GetSigOpCount() CScript s1; BOOST_CHECK_EQUAL(s1.GetSigOpCount(false), 0U); BOOST_CHECK_EQUAL(s1.GetSigOpCount(true), 0U); uint160 dummy; s1 << OP_1 << dummy << dummy << OP_2 << OP_CHECKMULTISIG; BOOST_CHECK_EQUAL(s1.GetSigOpCount(true), 2U); s1 << OP_IF << OP_CHECKSIG << OP_ENDIF; BOOST_CHECK_EQUAL(s1.GetSigOpCount(true), 3U); BOOST_CHECK_EQUAL(s1.GetSigOpCount(false), 21U); CScript p2sh; p2sh.SetDestination(s1.GetID()); CScript scriptSig; scriptSig << OP_0 << Serialize(s1); BOOST_CHECK_EQUAL(p2sh.GetSigOpCount(scriptSig), 3U); std::vector<CPubKey> keys; for (int i = 0; i < 3; i++) { CKey k; k.MakeNewKey(true); keys.push_back(k.GetPubKey()); } CScript s2; s2.SetMultisig(1, keys); BOOST_CHECK_EQUAL(s2.GetSigOpCount(true), 3U); BOOST_CHECK_EQUAL(s2.GetSigOpCount(false), 20U); p2sh.SetDestination(s2.GetID()); BOOST_CHECK_EQUAL(p2sh.GetSigOpCount(true), 0U); BOOST_CHECK_EQUAL(p2sh.GetSigOpCount(false), 0U); CScript scriptSig2; scriptSig2 << OP_1 << dummy << dummy << Serialize(s2); BOOST_CHECK_EQUAL(p2sh.GetSigOpCount(scriptSig2), 3U); } BOOST_AUTO_TEST_SUITE_END()
midnight109/XPP-PennyPinchers
src/test/sigopcount_tests.cpp
C++
mit
1,613
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon <mihai.bazon@gmail.com> http://mihai.bazon.net/blog Distributed under the BSD license: Copyright 2012 (c) Mihai Bazon <mihai.bazon@gmail.com> 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. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “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 HOLDER 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. ***********************************************************************/ "use strict"; // a small wrapper around fitzgen's source-map library function SourceMap(options) { options = defaults(options, { file : null, root : null, orig : null, orig_line_diff : 0, dest_line_diff : 0, }); var orig_map = options.orig && new MOZ_SourceMap.SourceMapConsumer(options.orig); var generator; if (orig_map) { generator = MOZ_SourceMap.SourceMapGenerator.fromSourceMap(orig_map); } else { generator = new MOZ_SourceMap.SourceMapGenerator({ file : options.file, sourceRoot : options.root }); } function add(source, gen_line, gen_col, orig_line, orig_col, name) { if (orig_map) { var info = orig_map.originalPositionFor({ line: orig_line, column: orig_col }); if (info.source === null) { return; } source = info.source; orig_line = info.line; orig_col = info.column; name = info.name || name; } generator.addMapping({ generated : { line: gen_line + options.dest_line_diff, column: gen_col }, original : { line: orig_line + options.orig_line_diff, column: orig_col }, source : source, name : name }); } return { add : add, get : function() { return generator }, toString : function() { return JSON.stringify(generator.toJSON()); } }; };
siddharthsudheer/lumX-fontAwesome
node_modules/gulp-uglify/node_modules/uglify-js/lib/sourcemap.js
JavaScript
mit
3,460
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FCFP", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-pf", "pluralCat": function (n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
kartikrao31/cdnjs
ajax/libs/angular.js/1.2.28/i18n/angular-locale_fr-pf.js
JavaScript
mit
1,971
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "bazar", "bazar ert\u0259si", "\u00e7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131", "\u00e7\u0259r\u015f\u0259nb\u0259", "c\u00fcm\u0259 ax\u015fam\u0131", "c\u00fcm\u0259", "\u015f\u0259nb\u0259" ], "MONTH": [ "yanvar", "fevral", "mart", "aprel", "may", "iyun", "iyul", "avqust", "sentyabr", "oktyabr", "noyabr", "dekabr" ], "SHORTDAY": [ "B.", "B.E.", "\u00c7.A.", "\u00c7.", "C.A.", "C", "\u015e." ], "SHORTMONTH": [ "yan", "fev", "mar", "apr", "may", "iyn", "iyl", "avq", "sen", "okt", "noy", "dek" ], "fullDate": "d MMMM y, EEEE", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd.MM.yy HH:mm", "shortDate": "dd.MM.yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "man.", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4\u00a0-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "az-latn-az", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
wenzhixin/cdnjs
ajax/libs/angular.js/1.2.25/i18n/angular-locale_az-latn-az.js
JavaScript
mit
2,026
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0635", "\u0645" ], "DAY": [ "\u0627\u0644\u0623\u062d\u062f", "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", "\u0627\u0644\u062e\u0645\u064a\u0633", "\u0627\u0644\u062c\u0645\u0639\u0629", "\u0627\u0644\u0633\u0628\u062a" ], "MONTH": [ "\u062c\u0627\u0646\u0641\u064a", "\u0641\u064a\u0641\u0631\u064a", "\u0645\u0627\u0631\u0633", "\u0623\u0641\u0631\u064a\u0644", "\u0645\u0627\u064a", "\u062c\u0648\u0627\u0646", "\u062c\u0648\u064a\u0644\u064a\u0629", "\u0623\u0648\u062a", "\u0633\u0628\u062a\u0645\u0628\u0631", "\u0623\u0643\u062a\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062f\u064a\u0633\u0645\u0628\u0631" ], "SHORTDAY": [ "\u0627\u0644\u0623\u062d\u062f", "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", "\u0627\u0644\u062e\u0645\u064a\u0633", "\u0627\u0644\u062c\u0645\u0639\u0629", "\u0627\u0644\u0633\u0628\u062a" ], "SHORTMONTH": [ "\u062c\u0627\u0646\u0641\u064a", "\u0641\u064a\u0641\u0631\u064a", "\u0645\u0627\u0631\u0633", "\u0623\u0641\u0631\u064a\u0644", "\u0645\u0627\u064a", "\u062c\u0648\u0627\u0646", "\u062c\u0648\u064a\u0644\u064a\u0629", "\u0623\u0648\u062a", "\u0633\u0628\u062a\u0645\u0628\u0631", "\u0623\u0643\u062a\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062f\u064a\u0633\u0645\u0628\u0631" ], "fullDate": "EEEE\u060c d MMMM\u060c y", "longDate": "d MMMM\u060c y", "medium": "y/MM/dd h:mm:ss a", "mediumDate": "y/MM/dd", "mediumTime": "h:mm:ss a", "short": "y/M/d h:mm a", "shortDate": "y/M/d", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "din", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4\u00a0-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "ar-dz", "pluralCat": function (n, opt_precision) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} }); }]);
hasantayyar/cdnjs
ajax/libs/angular-i18n/1.2.27/angular-locale_ar-dz.js
JavaScript
mit
3,231
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", "\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07" ], "DAY": [ "\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c", "\u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c", "\u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23", "\u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18", "\u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35", "\u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c", "\u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c" ], "MONTH": [ "\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21", "\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c", "\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21", "\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19", "\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21", "\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19", "\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21", "\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21", "\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19", "\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21", "\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19", "\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21" ], "SHORTDAY": [ "\u0e2d\u0e32.", "\u0e08.", "\u0e2d.", "\u0e1e.", "\u0e1e\u0e24.", "\u0e28.", "\u0e2a." ], "SHORTMONTH": [ "\u0e21.\u0e04.", "\u0e01.\u0e1e.", "\u0e21\u0e35.\u0e04.", "\u0e40\u0e21.\u0e22.", "\u0e1e.\u0e04.", "\u0e21\u0e34.\u0e22.", "\u0e01.\u0e04.", "\u0e2a.\u0e04.", "\u0e01.\u0e22.", "\u0e15.\u0e04.", "\u0e1e.\u0e22.", "\u0e18.\u0e04." ], "fullDate": "EEEE\u0e17\u0e35\u0e48 d MMMM G y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "d/M/yy HH:mm", "shortDate": "d/M/yy", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u0e3f", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "th-th", "pluralCat": function (n, opt_precision) { return PLURAL_CATEGORY.OTHER;} }); }]);
Dervisevic/cdnjs
ajax/libs/angular.js/1.2.27/i18n/angular-locale_th-th.js
JavaScript
mit
2,917
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u1325\u12cb\u1275", "\u12a8\u1230\u12d3\u1275" ], "DAY": [ "\u12a5\u1211\u12f5", "\u1230\u129e", "\u121b\u12ad\u1230\u129e", "\u1228\u1261\u12d5", "\u1210\u1219\u1235", "\u12d3\u122d\u1265", "\u1245\u12f3\u121c" ], "MONTH": [ "\u1303\u1295\u12e9\u12c8\u122a", "\u134c\u1265\u1229\u12c8\u122a", "\u121b\u122d\u127d", "\u12a4\u1355\u122a\u120d", "\u121c\u12ed", "\u1301\u1295", "\u1301\u120b\u12ed", "\u12a6\u1308\u1235\u1275", "\u1234\u1355\u1274\u121d\u1260\u122d", "\u12a6\u12ad\u1270\u12cd\u1260\u122d", "\u1296\u126c\u121d\u1260\u122d", "\u12f2\u1234\u121d\u1260\u122d" ], "SHORTDAY": [ "\u12a5\u1211\u12f5", "\u1230\u129e", "\u121b\u12ad\u1230", "\u1228\u1261\u12d5", "\u1210\u1219\u1235", "\u12d3\u122d\u1265", "\u1245\u12f3\u121c" ], "SHORTMONTH": [ "\u1303\u1295\u12e9", "\u134c\u1265\u1229", "\u121b\u122d\u127d", "\u12a4\u1355\u122a", "\u121c\u12ed", "\u1301\u1295", "\u1301\u120b\u12ed", "\u12a6\u1308\u1235", "\u1234\u1355\u1274", "\u12a6\u12ad\u1270", "\u1296\u126c\u121d", "\u12f2\u1234\u121d" ], "fullDate": "EEEE, d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "dd/MM/y h:mm a", "shortDate": "dd/MM/y", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "Birr", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "am-et", "pluralCat": function (n, opt_precision) { var i = n | 0; if (i == 0 || n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
2947721120/cdnjs
ajax/libs/angular-i18n/1.2.27/angular-locale_am-et.js
JavaScript
mit
2,520
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0635", "\u0645" ], "DAY": [ "\u0627\u0644\u0623\u062d\u062f", "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", "\u0627\u0644\u062e\u0645\u064a\u0633", "\u0627\u0644\u062c\u0645\u0639\u0629", "\u0627\u0644\u0633\u0628\u062a" ], "MONTH": [ "\u064a\u0646\u0627\u064a\u0631", "\u0641\u0628\u0631\u0627\u064a\u0631", "\u0645\u0627\u0631\u0633", "\u0623\u0628\u0631\u064a\u0644", "\u0645\u0627\u064a\u0648", "\u064a\u0648\u0646\u064a\u0648", "\u064a\u0648\u0644\u064a\u0648", "\u0623\u063a\u0633\u0637\u0633", "\u0633\u0628\u062a\u0645\u0628\u0631", "\u0623\u0643\u062a\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062f\u064a\u0633\u0645\u0628\u0631" ], "SHORTDAY": [ "\u0627\u0644\u0623\u062d\u062f", "\u0627\u0644\u0627\u062b\u0646\u064a\u0646", "\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621", "\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621", "\u0627\u0644\u062e\u0645\u064a\u0633", "\u0627\u0644\u062c\u0645\u0639\u0629", "\u0627\u0644\u0633\u0628\u062a" ], "SHORTMONTH": [ "\u064a\u0646\u0627\u064a\u0631", "\u0641\u0628\u0631\u0627\u064a\u0631", "\u0645\u0627\u0631\u0633", "\u0623\u0628\u0631\u064a\u0644", "\u0645\u0627\u064a\u0648", "\u064a\u0648\u0646\u064a\u0648", "\u064a\u0648\u0644\u064a\u0648", "\u0623\u063a\u0633\u0637\u0633", "\u0633\u0628\u062a\u0645\u0628\u0631", "\u0623\u0643\u062a\u0648\u0628\u0631", "\u0646\u0648\u0641\u0645\u0628\u0631", "\u062f\u064a\u0633\u0645\u0628\u0631" ], "fullDate": "EEEE\u060c d MMMM\u060c y", "longDate": "d MMMM\u060c y", "medium": "dd\u200f/MM\u200f/y h:mm:ss a", "mediumDate": "dd\u200f/MM\u200f/y", "mediumTime": "h:mm:ss a", "short": "d\u200f/M\u200f/y h:mm a", "shortDate": "d\u200f/M\u200f/y", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "SOS", "DECIMAL_SEP": "\u066b", "GROUP_SEP": "\u066c", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4\u00a0-", "negSuf": "", "posPre": "\u00a4\u00a0", "posSuf": "" } ] }, "id": "ar-so", "pluralCat": function (n, opt_precision) { if (n == 0) { return PLURAL_CATEGORY.ZERO; } if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == 2) { return PLURAL_CATEGORY.TWO; } if (n % 100 >= 3 && n % 100 <= 10) { return PLURAL_CATEGORY.FEW; } if (n % 100 >= 11 && n % 100 <= 99) { return PLURAL_CATEGORY.MANY; } return PLURAL_CATEGORY.OTHER;} }); }]);
lucasls/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_ar-so.js
JavaScript
mit
3,337
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FCFA", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-cf", "pluralCat": function (n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
bevacqua/cdnjs
ajax/libs/angular.js/1.2.25/i18n/angular-locale_fr-cf.js
JavaScript
mit
1,971
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi" ], "MONTH": [ "janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre" ], "SHORTDAY": [ "dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam." ], "SHORTMONTH": [ "janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c." ], "fullDate": "EEEE d MMMM y", "longDate": "d MMMM y", "medium": "d MMM y HH:mm:ss", "mediumDate": "d MMM y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "FrCD", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "fr-cd", "pluralCat": function (n, opt_precision) { var i = n | 0; if (i == 0 || i == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
Download/cdnjs
ajax/libs/angular.js/1.2.25/i18n/angular-locale_fr-cd.js
JavaScript
mit
1,971
/*! jQuery UI - v1.9.1 - 2012-11-06 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.datepicker.js, jquery.ui.effect.js, jquery.ui.effect-fade.js * Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */ (function(e,t){function i(t,n){var r,i,o,u=t.nodeName.toLowerCase();return"area"===u?(r=t.parentNode,i=r.name,!t.href||!i||r.nodeName.toLowerCase()!=="map"?!1:(o=e("img[usemap=#"+i+"]")[0],!!o&&s(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().andSelf().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};if(e.ui.version)return;e.extend(e.ui,{version:"1.9.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseInt(r.css("zIndex"),10);if(!isNaN(s)&&s!==0)return s}r=r.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&e(this).removeAttr("id")})}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(n,r){function u(t,n,r,s){return e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0,r&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var i=r==="Width"?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?o["inner"+r].call(this):this.each(function(){e(this).css(s,u(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?o["outer"+r].call(this,t):this.each(function(){e(this).css(s,u(this,t,!0,n)+"px")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(t,!r)}}),e(function(){var t=document.body,n=t.appendChild(n=document.createElement("div"));n.offsetHeight,e.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=n.offsetHeight===100,e.support.selectstart="onselectstart"in n,t.removeChild(n).style.display="none"}),function(){var t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];e.ui.ie=t.length?!0:!1,e.ui.ie6=parseFloat(t[1],10)===6}(),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)return;for(r=0;r<i.length;r++)e.options[i[r][0]]&&i[r][1].apply(e.element,n)}},contains:e.contains,hasScroll:function(t,n){if(e(t).css("overflow")==="hidden")return!1;var r=n&&n==="left"?"scrollLeft":"scrollTop",i=!1;return t[r]>0?!0:(t[r]=1,i=t[r]>0,t[r]=0,i)},isOverAxis:function(e,t,n){return e>t&&e<t+n},isOver:function(t,n,r,i,s,o){return e.ui.isOverAxis(t,r,s)&&e.ui.isOverAxis(n,i,o)}})})(jQuery);(function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(t,"mouseout",function(){$(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!=-1&&$(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!=-1&&$(this).removeClass("ui-datepicker-next-hover")}).delegate(t,"mouseover",function(){$.datepicker._isDisabledDatepicker(instActive.inline?e.parent()[0]:instActive.input[0])||($(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!=-1&&$(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!=-1&&$(this).addClass("ui-datepicker-next-hover"))})}function extendRemove(e,t){$.extend(e,t);for(var n in t)if(t[n]==null||t[n]==undefined)e[n]=t[n];return e}$.extend($.ui,{datepicker:{version:"1.9.1"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline=nodeName=="div"||nodeName=="span";target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),nodeName=="input"?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(e,t){var n=e[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(e,t){var n=$(e);t.append=$([]),t.trigger=$([]);if(n.hasClass(this.markerClassName))return;this._attachments(n,t),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,n,r){t.settings[n]=r}).bind("getData.datepicker",function(e,n){return this._get(t,n)}),this._autoSize(t),$.data(e,PROP_NAME,t),t.settings.disabled&&this._disableDatepicker(e)},_attachments:function(e,t){var n=this._get(t,"appendText"),r=this._get(t,"isRTL");t.append&&t.append.remove(),n&&(t.append=$('<span class="'+this._appendClass+'">'+n+"</span>"),e[r?"before":"after"](t.append)),e.unbind("focus",this._showDatepicker),t.trigger&&t.trigger.remove();var i=this._get(t,"showOn");(i=="focus"||i=="both")&&e.focus(this._showDatepicker);if(i=="button"||i=="both"){var s=this._get(t,"buttonText"),o=this._get(t,"buttonImage");t.trigger=$(this._get(t,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:o,alt:s,title:s}):$('<button type="button"></button>').addClass(this._triggerClass).html(o==""?s:$("<img/>").attr({src:o,alt:s,title:s}))),e[r?"before":"after"](t.trigger),t.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==e[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=e[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(e[0])):$.datepicker._showDatepicker(e[0]),!1})}},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t=new Date(2009,11,20),n=this._get(e,"dateFormat");if(n.match(/[DM]/)){var r=function(e){var t=0,n=0;for(var r=0;r<e.length;r++)e[r].length>t&&(t=e[r].length,n=r);return n};t.setMonth(r(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),t.setDate(r(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-t.getDay())}e.input.attr("size",this._formatDate(e,t).length)}},_inlineDatepicker:function(e,t){var n=$(e);if(n.hasClass(this.markerClassName))return;n.addClass(this.markerClassName).append(t.dpDiv).bind("setData.datepicker",function(e,n,r){t.settings[n]=r}).bind("getData.datepicker",function(e,n){return this._get(t,n)}),$.data(e,PROP_NAME,t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block")},_dialogDatepicker:function(e,t,n,r,i){var s=this._dialogInst;if(!s){this.uuid+=1;var o="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+o+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),s=this._dialogInst=this._newInst(this._dialogInput,!1),s.settings={},$.data(this._dialogInput[0],PROP_NAME,s)}extendRemove(s.settings,r||{}),t=t&&t.constructor==Date?this._formatDate(s,t):t,this._dialogInput.val(t),this._pos=i?i.length?i:[i.pageX,i.pageY]:null;if(!this._pos){var u=document.documentElement.clientWidth,a=document.documentElement.clientHeight,f=document.documentElement.scrollLeft||document.body.scrollLeft,l=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[u/2-100+f,a/2-150+l]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),s.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,s),this},_destroyDatepicker:function(e){var t=$(e),n=$.data(e,PROP_NAME);if(!t.hasClass(this.markerClassName))return;var r=e.nodeName.toLowerCase();$.removeData(e,PROP_NAME),r=="input"?(n.append.remove(),n.trigger.remove(),t.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(r=="div"||r=="span")&&t.removeClass(this.markerClassName).empty()},_enableDatepicker:function(e){var t=$(e),n=$.data(e,PROP_NAME);if(!t.hasClass(this.markerClassName))return;var r=e.nodeName.toLowerCase();if(r=="input")e.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if(r=="div"||r=="span"){var i=t.children("."+this._inlineClass);i.children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)}this._disabledInputs=$.map(this._disabledInputs,function(t){return t==e?null:t})},_disableDatepicker:function(e){var t=$(e),n=$.data(e,PROP_NAME);if(!t.hasClass(this.markerClassName))return;var r=e.nodeName.toLowerCase();if(r=="input")e.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if(r=="div"||r=="span"){var i=t.children("."+this._inlineClass);i.children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)}this._disabledInputs=$.map(this._disabledInputs,function(t){return t==e?null:t}),this._disabledInputs[this._disabledInputs.length]=e},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]==e)return!0;return!1},_getInst:function(e){try{return $.data(e,PROP_NAME)}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,n){var r=this._getInst(e);if(arguments.length==2&&typeof t=="string")return t=="defaults"?$.extend({},$.datepicker._defaults):r?t=="all"?$.extend({},r.settings):this._get(r,t):null;var i=t||{};typeof t=="string"&&(i={},i[t]=n);if(r){this._curInst==r&&this._hideDatepicker();var s=this._getDateDatepicker(e,!0),o=this._getMinMaxDate(r,"min"),u=this._getMinMaxDate(r,"max");extendRemove(r.settings,i),o!==null&&i.dateFormat!==undefined&&i.minDate===undefined&&(r.settings.minDate=this._formatDate(r,o)),u!==null&&i.dateFormat!==undefined&&i.maxDate===undefined&&(r.settings.maxDate=this._formatDate(r,u)),this._attachments($(e),r),this._autoSize(r),this._setDate(r,s),this._updateAlternate(r),this._updateDatepicker(r)}},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(e){var t=$.datepicker._getInst(e.target),n=!0,r=t.dpDiv.is(".ui-datepicker-rtl");t._keyEvent=!0;if($.datepicker._datepickerShowing)switch(e.keyCode){case 9:$.datepicker._hideDatepicker(),n=!1;break;case 13:var i=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",t.dpDiv);i[0]&&$.datepicker._selectDay(e.target,t.selectedMonth,t.selectedYear,i[0]);var s=$.datepicker._get(t,"onSelect");if(s){var o=$.datepicker._formatDate(t);s.apply(t.input?t.input[0]:null,[o,t])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(t,"stepBigMonths"):-$.datepicker._get(t,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(t,"stepBigMonths"):+$.datepicker._get(t,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&$.datepicker._clearDate(e.target),n=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&$.datepicker._gotoToday(e.target),n=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,r?1:-1,"D"),n=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(t,"stepBigMonths"):-$.datepicker._get(t,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,-7,"D"),n=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,r?-1:1,"D"),n=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(t,"stepBigMonths"):+$.datepicker._get(t,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&$.datepicker._adjustDate(e.target,7,"D"),n=e.ctrlKey||e.metaKey;break;default:n=!1}else e.keyCode==36&&e.ctrlKey?$.datepicker._showDatepicker(this):n=!1;n&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t=$.datepicker._getInst(e.target);if($.datepicker._get(t,"constrainInput")){var n=$.datepicker._possibleChars($.datepicker._get(t,"dateFormat")),r=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return e.ctrlKey||e.metaKey||r<" "||!n||n.indexOf(r)>-1}},_doKeyUp:function(e){var t=$.datepicker._getInst(e.target);if(t.input.val()!=t.lastVal)try{var n=$.datepicker.parseDate($.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,$.datepicker._getFormatConfig(t));n&&($.datepicker._setDateFromField(t),$.datepicker._updateAlternate(t),$.datepicker._updateDatepicker(t))}catch(r){$.datepicker.log(r)}return!0},_showDatepicker:function(e){e=e.target||e,e.nodeName.toLowerCase()!="input"&&(e=$("input",e.parentNode)[0]);if($.datepicker._isDisabledDatepicker(e)||$.datepicker._lastInput==e)return;var t=$.datepicker._getInst(e);$.datepicker._curInst&&$.datepicker._curInst!=t&&($.datepicker._curInst.dpDiv.stop(!0,!0),t&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var n=$.datepicker._get(t,"beforeShow"),r=n?n.apply(e,[e,t]):{};if(r===!1)return;extendRemove(t.settings,r),t.lastVal=null,$.datepicker._lastInput=e,$.datepicker._setDateFromField(t),$.datepicker._inDialog&&(e.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(e),$.datepicker._pos[1]+=e.offsetHeight);var i=!1;$(e).parents().each(function(){return i|=$(this).css("position")=="fixed",!i});var s={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(t),s=$.datepicker._checkOffset(t,s,i),t.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":i?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"});if(!t.inline){var o=$.datepicker._get(t,"showAnim"),u=$.datepicker._get(t,"duration"),a=function(){var e=t.dpDiv.find("iframe.ui-datepicker-cover");if(!!e.length){var n=$.datepicker._getBorders(t.dpDiv);e.css({left:-n[0],top:-n[1],width:t.dpDiv.outerWidth(),height:t.dpDiv.outerHeight()})}};t.dpDiv.zIndex($(e).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&($.effects.effect[o]||$.effects[o])?t.dpDiv.show(o,$.datepicker._get(t,"showOptions"),u,a):t.dpDiv[o||"show"](o?u:null,a),(!o||!u)&&a(),t.input.is(":visible")&&!t.input.is(":disabled")&&t.input.focus(),$.datepicker._curInst=t}},_updateDatepicker:function(e){this.maxRows=4;var t=$.datepicker._getBorders(e.dpDiv);instActive=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n=e.dpDiv.find("iframe.ui-datepicker-cover");!n.length||n.css({left:-t[0],top:-t[1],width:e.dpDiv.outerWidth(),height:e.dpDiv.outerHeight()}),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var r=this._getNumberOfMonths(e),i=r[1],s=17;e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),i>1&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",s*i+"em"),e.dpDiv[(r[0]!=1||r[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e==$.datepicker._curInst&&$.datepicker._datepickerShowing&&e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&e.input[0]!=document.activeElement&&e.input.focus();if(e.yearshtml){var o=e.yearshtml;setTimeout(function(){o===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),o=e.yearshtml=null},0)}},_getBorders:function(e){var t=function(e){return{thin:1,medium:2,thick:3}[e]||e};return[parseFloat(t(e.css("border-left-width"))),parseFloat(t(e.css("border-top-width")))]},_checkOffset:function(e,t,n){var r=e.dpDiv.outerWidth(),i=e.dpDiv.outerHeight(),s=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,u=document.documentElement.clientWidth+(n?0:$(document).scrollLeft()),a=document.documentElement.clientHeight+(n?0:$(document).scrollTop());return t.left-=this._get(e,"isRTL")?r-s:0,t.left-=n&&t.left==e.input.offset().left?$(document).scrollLeft():0,t.top-=n&&t.top==e.input.offset().top+o?$(document).scrollTop():0,t.left-=Math.min(t.left,t.left+r>u&&u>r?Math.abs(t.left+r-u):0),t.top-=Math.min(t.top,t.top+i>a&&a>i?Math.abs(i+o):0),t},_findPos:function(e){var t=this._getInst(e),n=this._get(t,"isRTL");while(e&&(e.type=="hidden"||e.nodeType!=1||$.expr.filters.hidden(e)))e=e[n?"previousSibling":"nextSibling"];var r=$(e).offset();return[r.left,r.top]},_hideDatepicker:function(e){var t=this._curInst;if(!t||e&&t!=$.data(e,PROP_NAME))return;if(this._datepickerShowing){var n=this._get(t,"showAnim"),r=this._get(t,"duration"),i=function(){$.datepicker._tidyDialog(t)};$.effects&&($.effects.effect[n]||$.effects[n])?t.dpDiv.hide(n,$.datepicker._get(t,"showOptions"),r,i):t.dpDiv[n=="slideDown"?"slideUp":n=="fadeIn"?"fadeOut":"hide"](n?r:null,i),n||i(),this._datepickerShowing=!1;var s=this._get(t,"onClose");s&&s.apply(t.input?t.input[0]:null,[t.input?t.input.val():"",t]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(!$.datepicker._curInst)return;var t=$(e.target),n=$.datepicker._getInst(t[0]);(t[0].id!=$.datepicker._mainDivId&&t.parents("#"+$.datepicker._mainDivId).length==0&&!t.hasClass($.datepicker.markerClassName)&&!t.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||t.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=n)&&$.datepicker._hideDatepicker()},_adjustDate:function(e,t,n){var r=$(e),i=this._getInst(r[0]);if(this._isDisabledDatepicker(r[0]))return;this._adjustInstDate(i,t+(n=="M"?this._get(i,"showCurrentAtPos"):0),n),this._updateDatepicker(i)},_gotoToday:function(e){var t=$(e),n=this._getInst(t[0]);if(this._get(n,"gotoCurrent")&&n.currentDay)n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear;else{var r=new Date;n.selectedDay=r.getDate(),n.drawMonth=n.selectedMonth=r.getMonth(),n.drawYear=n.selectedYear=r.getFullYear()}this._notifyChange(n),this._adjustDate(t)},_selectMonthYear:function(e,t,n){var r=$(e),i=this._getInst(r[0]);i["selected"+(n=="M"?"Month":"Year")]=i["draw"+(n=="M"?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(r)},_selectDay:function(e,t,n,r){var i=$(e);if($(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(i[0]))return;var s=this._getInst(i[0]);s.selectedDay=s.currentDay=$("a",r).html(),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear))},_clearDate:function(e){var t=$(e),n=this._getInst(t[0]);this._selectDate(t,"")},_selectDate:function(e,t){var n=$(e),r=this._getInst(n[0]);t=t!=null?t:this._formatDate(r),r.input&&r.input.val(t),this._updateAlternate(r);var i=this._get(r,"onSelect");i?i.apply(r.input?r.input[0]:null,[t,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var t=this._get(e,"altField");if(t){var n=this._get(e,"altFormat")||this._get(e,"dateFormat"),r=this._getDate(e),i=this.formatDate(n,r,this._getFormatConfig(e));$(t).each(function(){$(this).val(i)})}},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t=new Date(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1},parseDate:function(e,t,n){if(e==null||t==null)throw"Invalid arguments";t=typeof t=="object"?t.toString():t+"";if(t=="")return null;var r=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff;r=typeof r!="string"?r:(new Date).getFullYear()%100+parseInt(r,10);var i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,s=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,u=(n?n.monthNames:null)||this._defaults.monthNames,a=-1,f=-1,l=-1,c=-1,h=!1,p=function(t){var n=y+1<e.length&&e.charAt(y+1)==t;return n&&y++,n},d=function(e){var n=p(e),r=e=="@"?14:e=="!"?20:e=="y"&&n?4:e=="o"?3:2,i=new RegExp("^\\d{1,"+r+"}"),s=t.substring(g).match(i);if(!s)throw"Missing number at position "+g;return g+=s[0].length,parseInt(s[0],10)},v=function(e,n,r){var i=$.map(p(e)?r:n,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)}),s=-1;$.each(i,function(e,n){var r=n[1];if(t.substr(g,r.length).toLowerCase()==r.toLowerCase())return s=n[0],g+=r.length,!1});if(s!=-1)return s+1;throw"Unknown name at position "+g},m=function(){if(t.charAt(g)!=e.charAt(y))throw"Unexpected literal at position "+g;g++},g=0;for(var y=0;y<e.length;y++)if(h)e.charAt(y)=="'"&&!p("'")?h=!1:m();else switch(e.charAt(y)){case"d":l=d("d");break;case"D":v("D",i,s);break;case"o":c=d("o");break;case"m":f=d("m");break;case"M":f=v("M",o,u);break;case"y":a=d("y");break;case"@":var b=new Date(d("@"));a=b.getFullYear(),f=b.getMonth()+1,l=b.getDate();break;case"!":var b=new Date((d("!")-this._ticksTo1970)/1e4);a=b.getFullYear(),f=b.getMonth()+1,l=b.getDate();break;case"'":p("'")?m():h=!0;break;default:m()}if(g<t.length){var w=t.substr(g);if(!/^\s+/.test(w))throw"Extra/unparsed characters found in date: "+w}a==-1?a=(new Date).getFullYear():a<100&&(a+=(new Date).getFullYear()-(new Date).getFullYear()%100+(a<=r?0:-100));if(c>-1){f=1,l=c;do{var E=this._getDaysInMonth(a,f-1);if(l<=E)break;f++,l-=E}while(!0)}var b=this._daylightSavingAdjust(new Date(a,f-1,l));if(b.getFullYear()!=a||b.getMonth()+1!=f||b.getDate()!=l)throw"Invalid date";return b},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var r=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,i=(n?n.dayNames:null)||this._defaults.dayNames,s=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,o=(n?n.monthNames:null)||this._defaults.monthNames,u=function(t){var n=h+1<e.length&&e.charAt(h+1)==t;return n&&h++,n},a=function(e,t,n){var r=""+t;if(u(e))while(r.length<n)r="0"+r;return r},f=function(e,t,n,r){return u(e)?r[t]:n[t]},l="",c=!1;if(t)for(var h=0;h<e.length;h++)if(c)e.charAt(h)=="'"&&!u("'")?c=!1:l+=e.charAt(h);else switch(e.charAt(h)){case"d":l+=a("d",t.getDate(),2);break;case"D":l+=f("D",t.getDay(),r,i);break;case"o":l+=a("o",Math.round(((new Date(t.getFullYear(),t.getMonth(),t.getDate())).getTime()-(new Date(t.getFullYear(),0,0)).getTime())/864e5),3);break;case"m":l+=a("m",t.getMonth()+1,2);break;case"M":l+=f("M",t.getMonth(),s,o);break;case"y":l+=u("y")?t.getFullYear():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":l+=t.getTime();break;case"!":l+=t.getTime()*1e4+this._ticksTo1970;break;case"'":u("'")?l+="'":c=!0;break;default:l+=e.charAt(h)}return l},_possibleChars:function(e){var t="",n=!1,r=function(t){var n=i+1<e.length&&e.charAt(i+1)==t;return n&&i++,n};for(var i=0;i<e.length;i++)if(n)e.charAt(i)=="'"&&!r("'")?n=!1:t+=e.charAt(i);else switch(e.charAt(i)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":r("'")?t+="'":n=!0;break;default:t+=e.charAt(i)}return t},_get:function(e,t){return e.settings[t]!==undefined?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()==e.lastVal)return;var n=this._get(e,"dateFormat"),r=e.lastVal=e.input?e.input.val():null,i,s;i=s=this._getDefaultDate(e);var o=this._getFormatConfig(e);try{i=this.parseDate(n,r,o)||s}catch(u){this.log(u),r=t?"":r}e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),e.currentDay=r?i.getDate():0,e.currentMonth=r?i.getMonth():0,e.currentYear=r?i.getFullYear():0,this._adjustInstDate(e)},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(e,t,n){var r=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},i=function(t){try{return $.datepicker.parseDate($.datepicker._get(e,"dateFormat"),t,$.datepicker._getFormatConfig(e))}catch(n){}var r=(t.toLowerCase().match(/^c/)?$.datepicker._getDate(e):null)||new Date,i=r.getFullYear(),s=r.getMonth(),o=r.getDate(),u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=u.exec(t);while(a){switch(a[2]||"d"){case"d":case"D":o+=parseInt(a[1],10);break;case"w":case"W":o+=parseInt(a[1],10)*7;break;case"m":case"M":s+=parseInt(a[1],10),o=Math.min(o,$.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(a[1],10),o=Math.min(o,$.datepicker._getDaysInMonth(i,s))}a=u.exec(t)}return new Date(i,s,o)},s=t==null||t===""?n:typeof t=="string"?i(t):typeof t=="number"?isNaN(t)?n:r(t):new Date(t.getTime());return s=s&&s.toString()=="Invalid Date"?n:s,s&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var r=!t,i=e.selectedMonth,s=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),(i!=e.selectedMonth||s!=e.selectedYear)&&!n&&this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(r?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&e.input.val()==""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(n,-t,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(n,+t,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(n)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(n,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t=new Date;t=this._daylightSavingAdjust(new Date(t.getFullYear(),t.getMonth(),t.getDate()));var n=this._get(e,"isRTL"),r=this._get(e,"showButtonPanel"),i=this._get(e,"hideIfNoPrevNext"),s=this._get(e,"navigationAsDateFormat"),o=this._getNumberOfMonths(e),u=this._get(e,"showCurrentAtPos"),a=this._get(e,"stepMonths"),f=o[0]!=1||o[1]!=1,l=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),c=this._getMinMaxDate(e,"min"),h=this._getMinMaxDate(e,"max"),p=e.drawMonth-u,d=e.drawYear;p<0&&(p+=12,d--);if(h){var v=this._daylightSavingAdjust(new Date(h.getFullYear(),h.getMonth()-o[0]*o[1]+1,h.getDate()));v=c&&v<c?c:v;while(this._daylightSavingAdjust(new Date(d,p,1))>v)p--,p<0&&(p=11,d--)}e.drawMonth=p,e.drawYear=d;var m=this._get(e,"prevText");m=s?this.formatDate(m,this._daylightSavingAdjust(new Date(d,p-a,1)),this._getFormatConfig(e)):m;var g=this._canAdjustMonth(e,-1,d,p)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+m+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"e":"w")+'">'+m+"</span></a>":i?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+m+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"e":"w")+'">'+m+"</span></a>",y=this._get(e,"nextText");y=s?this.formatDate(y,this._daylightSavingAdjust(new Date(d,p+a,1)),this._getFormatConfig(e)):y;var b=this._canAdjustMonth(e,1,d,p)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+y+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"w":"e")+'">'+y+"</span></a>":i?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+y+'"><span class="ui-icon ui-icon-circle-triangle-'+(n?"w":"e")+'">'+y+"</span></a>",w=this._get(e,"currentText"),E=this._get(e,"gotoCurrent")&&e.currentDay?l:t;w=s?this.formatDate(w,E,this._getFormatConfig(e)):w;var S=e.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(e,"closeText")+"</button>",x=r?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(n?S:"")+(this._isInRange(e,E)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+w+"</button>":"")+(n?"":S)+"</div>":"",T=parseInt(this._get(e,"firstDay"),10);T=isNaN(T)?0:T;var N=this._get(e,"showWeek"),C=this._get(e,"dayNames"),k=this._get(e,"dayNamesShort"),L=this._get(e,"dayNamesMin"),A=this._get(e,"monthNames"),O=this._get(e,"monthNamesShort"),M=this._get(e,"beforeShowDay"),_=this._get(e,"showOtherMonths"),D=this._get(e,"selectOtherMonths"),P=this._get(e,"calculateWeek")||this.iso8601Week,H=this._getDefaultDate(e),B="";for(var j=0;j<o[0];j++){var F="";this.maxRows=4;for(var I=0;I<o[1];I++){var q=this._daylightSavingAdjust(new Date(d,p,e.selectedDay)),R=" ui-corner-all",U="";if(f){U+='<div class="ui-datepicker-group';if(o[1]>1)switch(I){case 0:U+=" ui-datepicker-group-first",R=" ui-corner-"+(n?"right":"left");break;case o[1]-1:U+=" ui-datepicker-group-last",R=" ui-corner-"+(n?"left":"right");break;default:U+=" ui-datepicker-group-middle",R=""}U+='">'}U+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+R+'">'+(/all|left/.test(R)&&j==0?n?b:g:"")+(/all|right/.test(R)&&j==0?n?g:b:"")+this._generateMonthYearHeader(e,p,d,c,h,j>0||I>0,A,O)+'</div><table class="ui-datepicker-calendar"><thead>'+"<tr>";var z=N?'<th class="ui-datepicker-week-col">'+this._get(e,"weekHeader")+"</th>":"";for(var W=0;W<7;W++){var X=(W+T)%7;z+="<th"+((W+T+6)%7>=5?' class="ui-datepicker-week-end"':"")+">"+'<span title="'+C[X]+'">'+L[X]+"</span></th>"}U+=z+"</tr></thead><tbody>";var V=this._getDaysInMonth(d,p);d==e.selectedYear&&p==e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,V));var J=(this._getFirstDayOfMonth(d,p)-T+7)%7,K=Math.ceil((J+V)/7),Q=f?this.maxRows>K?this.maxRows:K:K;this.maxRows=Q;var G=this._daylightSavingAdjust(new Date(d,p,1-J));for(var Y=0;Y<Q;Y++){U+="<tr>";var Z=N?'<td class="ui-datepicker-week-col">'+this._get(e,"calculateWeek")(G)+"</td>":"";for(var W=0;W<7;W++){var et=M?M.apply(e.input?e.input[0]:null,[G]):[!0,""],tt=G.getMonth()!=p,nt=tt&&!D||!et[0]||c&&G<c||h&&G>h;Z+='<td class="'+((W+T+6)%7>=5?" ui-datepicker-week-end":"")+(tt?" ui-datepicker-other-month":"")+(G.getTime()==q.getTime()&&p==e.selectedMonth&&e._keyEvent||H.getTime()==G.getTime()&&H.getTime()==q.getTime()?" "+this._dayOverClass:"")+(nt?" "+this._unselectableClass+" ui-state-disabled":"")+(tt&&!_?"":" "+et[1]+(G.getTime()==l.getTime()?" "+this._currentClass:"")+(G.getTime()==t.getTime()?" ui-datepicker-today":""))+'"'+((!tt||_)&&et[2]?' title="'+et[2]+'"':"")+(nt?"":' data-handler="selectDay" data-event="click" data-month="'+G.getMonth()+'" data-year="'+G.getFullYear()+'"')+">"+(tt&&!_?"&#xa0;":nt?'<span class="ui-state-default">'+G.getDate()+"</span>":'<a class="ui-state-default'+(G.getTime()==t.getTime()?" ui-state-highlight":"")+(G.getTime()==l.getTime()?" ui-state-active":"")+(tt?" ui-priority-secondary":"")+'" href="#">'+G.getDate()+"</a>")+"</td>",G.setDate(G.getDate()+1),G=this._daylightSavingAdjust(G)}U+=Z+"</tr>"}p++,p>11&&(p=0,d++),U+="</tbody></table>"+(f?"</div>"+(o[0]>0&&I==o[1]-1?'<div class="ui-datepicker-row-break"></div>':""):""),F+=U}B+=F}return B+=x+($.ui.ie6&&!e.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),e._keyEvent=!1,B},_generateMonthYearHeader:function(e,t,n,r,i,s,o,u){var a=this._get(e,"changeMonth"),f=this._get(e,"changeYear"),l=this._get(e,"showMonthAfterYear"),c='<div class="ui-datepicker-title">',h="";if(s||!a)h+='<span class="ui-datepicker-month">'+o[t]+"</span>";else{var p=r&&r.getFullYear()==n,d=i&&i.getFullYear()==n;h+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var v=0;v<12;v++)(!p||v>=r.getMonth())&&(!d||v<=i.getMonth())&&(h+='<option value="'+v+'"'+(v==t?' selected="selected"':"")+">"+u[v]+"</option>");h+="</select>"}l||(c+=h+(s||!a||!f?"&#xa0;":""));if(!e.yearshtml){e.yearshtml="";if(s||!f)c+='<span class="ui-datepicker-year">'+n+"</span>";else{var m=this._get(e,"yearRange").split(":"),g=(new Date).getFullYear(),y=function(e){var t=e.match(/c[+-].*/)?n+parseInt(e.substring(1),10):e.match(/[+-].*/)?g+parseInt(e,10):parseInt(e,10);return isNaN(t)?g:t},b=y(m[0]),w=Math.max(b,y(m[1]||""));b=r?Math.max(b,r.getFullYear()):b,w=i?Math.min(w,i.getFullYear()):w,e.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';for(;b<=w;b++)e.yearshtml+='<option value="'+b+'"'+(b==n?' selected="selected"':"")+">"+b+"</option>";e.yearshtml+="</select>",c+=e.yearshtml,e.yearshtml=null}}return c+=this._get(e,"yearSuffix"),l&&(c+=(s||!a||!f?"&#xa0;":"")+h),c+="</div>",c},_adjustInstDate:function(e,t,n){var r=e.drawYear+(n=="Y"?t:0),i=e.drawMonth+(n=="M"?t:0),s=Math.min(e.selectedDay,this._getDaysInMonth(r,i))+(n=="D"?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(r,i,s)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),(n=="M"||n=="Y")&&this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),i=n&&t<n?n:t;return i=r&&i>r?r:i,i},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return(new Date(e,t,1)).getDay()},_canAdjustMonth:function(e,t,n,r){var i=this._getNumberOfMonths(e),s=this._daylightSavingAdjust(new Date(n,r+(t<0?t:i[0]*i[1]),1));return t<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(e,s)},_isInRange:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max");return(!n||t.getTime()>=n.getTime())&&(!r||t.getTime()<=r.getTime())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,r){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var i=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),$.fn.datepicker=function(e){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var t=Array.prototype.slice.call(arguments,1);return typeof e!="string"||e!="isDisabled"&&e!="getDate"&&e!="widget"?e=="option"&&arguments.length==2&&typeof arguments[1]=="string"?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t)):this.each(function(){typeof e=="string"?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this].concat(t)):$.datepicker._attachDatepicker(this,e)}):$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.1",window["DP_jQuery_"+dpuuid]=$})(jQuery);jQuery.effects||function(e,t){var n=e.uiBackCompat!==!1,r="ui-effects-";e.effects={effect:{}},function(t,n){function p(e,t,n){var r=a[t.type]||{};return e==null?n||!t.def?null:t.def:(e=r.floor?~~e:parseFloat(e),isNaN(e)?t.def:r.mod?(e+r.mod)%r.mod:0>e?0:r.max<e?r.max:e)}function d(e){var n=o(),r=n._rgba=[];return e=e.toLowerCase(),h(s,function(t,i){var s,o=i.re.exec(e),a=o&&i.parse(o),f=i.space||"rgba";if(a)return s=n[f](a),n[u[f].cache]=s[u[f].cache],r=n._rgba=s._rgba,!1}),r.length?(r.join()==="0,0,0,0"&&t.extend(r,c.transparent),n):c[e]}function v(e,t,n){return n=(n+1)%1,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}var r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),i=/^([\-+])=\s*(\d+\.?\d*)/,s=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1]*2.55,e[2]*2.55,e[3]*2.55,e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],o=t.Color=function(e,n,r,i){return new t.Color.fn.parse(e,n,r,i)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},a={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},f=o.support={},l=t("<p>")[0],c,h=t.each;l.style.cssText="background-color:rgba(1,1,1,.5)",f.rgba=l.style.backgroundColor.indexOf("rgba")>-1,h(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),o.fn=t.extend(o.prototype,{parse:function(r,i,s,a){if(r===n)return this._rgba=[null,null,null,null],this;if(r.jquery||r.nodeType)r=t(r).css(i),i=n;var f=this,l=t.type(r),v=this._rgba=[];i!==n&&(r=[r,i,s,a],l="array");if(l==="string")return this.parse(d(r)||c._default);if(l==="array")return h(u.rgba.props,function(e,t){v[t.idx]=p(r[t.idx],t)}),this;if(l==="object")return r instanceof o?h(u,function(e,t){r[t.cache]&&(f[t.cache]=r[t.cache].slice())}):h(u,function(t,n){var i=n.cache;h(n.props,function(e,t){if(!f[i]&&n.to){if(e==="alpha"||r[e]==null)return;f[i]=n.to(f._rgba)}f[i][t.idx]=p(r[e],t,!0)}),f[i]&&e.inArray(null,f[i].slice(0,3))<0&&(f[i][3]=1,n.from&&(f._rgba=n.from(f[i])))}),this},is:function(e){var t=o(e),n=!0,r=this;return h(u,function(e,i){var s,o=t[i.cache];return o&&(s=r[i.cache]||i.to&&i.to(r._rgba)||[],h(i.props,function(e,t){if(o[t.idx]!=null)return n=o[t.idx]===s[t.idx],n})),n}),n},_space:function(){var e=[],t=this;return h(u,function(n,r){t[r.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var n=o(e),r=n._space(),i=u[r],s=this.alpha()===0?o("transparent"):this,f=s[i.cache]||i.to(s._rgba),l=f.slice();return n=n[i.cache],h(i.props,function(e,r){var i=r.idx,s=f[i],o=n[i],u=a[r.type]||{};if(o===null)return;s===null?l[i]=o:(u.mod&&(o-s>u.mod/2?s+=u.mod:s-o>u.mod/2&&(s-=u.mod)),l[i]=p((o-s)*t+s,r))}),this[r](l)},blend:function(e){if(this._rgba[3]===1)return this;var n=this._rgba.slice(),r=n.pop(),i=o(e)._rgba;return o(t.map(n,function(e,t){return(1-r)*i[t]+r*e}))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,function(e,t){return e==null?t>2?1:0:e});return n[3]===1&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),function(e,t){return e==null&&(e=t>2?1:0),t&&t<3&&(e=Math.round(e*100)+"%"),e});return n[3]===1&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),r=n.pop();return e&&n.push(~~(r*255)),"#"+t.map(n,function(e){return e=(e||0).toString(16),e.length===1?"0"+e:e}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),o.fn.parse.prototype=o.fn,u.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=e[3],s=Math.max(t,n,r),o=Math.min(t,n,r),u=s-o,a=s+o,f=a*.5,l,c;return o===s?l=0:t===s?l=60*(n-r)/u+360:n===s?l=60*(r-t)/u+120:l=60*(t-n)/u+240,f===0||f===1?c=f:f<=.5?c=u/a:c=u/(2-a),[Math.round(l)%360,c,f,i==null?1:i]},u.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],s=r<=.5?r*(1+n):r+n-r*n,o=2*r-s;return[Math.round(v(o,s,t+1/3)*255),Math.round(v(o,s,t)*255),Math.round(v(o,s,t-1/3)*255),i]},h(u,function(e,r){var s=r.props,u=r.cache,a=r.to,f=r.from;o.fn[e]=function(e){a&&!this[u]&&(this[u]=a(this._rgba));if(e===n)return this[u].slice();var r,i=t.type(e),l=i==="array"||i==="object"?e:arguments,c=this[u].slice();return h(s,function(e,t){var n=l[i==="object"?e:t.idx];n==null&&(n=c[t.idx]),c[t.idx]=p(n,t)}),f?(r=o(f(c)),r[u]=c,r):o(c)},h(s,function(n,r){if(o.fn[n])return;o.fn[n]=function(s){var o=t.type(s),u=n==="alpha"?this._hsla?"hsla":"rgba":e,a=this[u](),f=a[r.idx],l;return o==="undefined"?f:(o==="function"&&(s=s.call(this,f),o=t.type(s)),s==null&&r.empty?this:(o==="string"&&(l=i.exec(s),l&&(s=f+parseFloat(l[2])*(l[1]==="+"?1:-1))),a[r.idx]=s,this[u](a)))}})}),h(r,function(e,n){t.cssHooks[n]={set:function(e,r){var i,s,u="";if(t.type(r)!=="string"||(i=d(r))){r=o(i||r);if(!f.rgba&&r._rgba[3]!==1){s=n==="backgroundColor"?e.parentNode:e;while((u===""||u==="transparent")&&s&&s.style)try{u=t.css(s,"backgroundColor"),s=s.parentNode}catch(a){}r=r.blend(u&&u!=="transparent"?u:"_default")}r=r.toRgbaString()}try{e.style[n]=r}catch(l){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=o(e.elem,n),e.end=o(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}}),t.cssHooks.borderColor={expand:function(e){var t={};return h(["Top","Right","Bottom","Left"],function(n,r){t["border"+r+"Color"]=e}),t}},c=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(){var t=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,n={},r,i;if(t&&t.length&&t[0]&&t[t[0]]){i=t.length;while(i--)r=t[i],typeof t[r]=="string"&&(n[e.camelCase(r)]=t[r])}else for(r in t)typeof t[r]=="string"&&(n[r]=t[r]);return n}function s(t,n){var i={},s,o;for(s in n)o=n[s],t[s]!==o&&!r[s]&&(e.fx.step[s]||!isNaN(parseFloat(o)))&&(i[s]=o);return i}var n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,n){e.fx.step[n]=function(e){if(e.end!=="none"&&!e.setAttr||e.pos===1&&!e.setAttr)jQuery.style(e.elem,n,e.end),e.setAttr=!0}}),e.effects.animateClass=function(t,r,o,u){var a=e.speed(r,o,u);return this.queue(function(){var r=e(this),o=r.attr("class")||"",u,f=a.children?r.find("*").andSelf():r;f=f.map(function(){var t=e(this);return{el:t,start:i.call(this)}}),u=function(){e.each(n,function(e,n){t[n]&&r[n+"Class"](t[n])})},u(),f=f.map(function(){return this.end=i.call(this.el[0]),this.diff=s(this.start,this.end),this}),r.attr("class",o),f=f.map(function(){var t=this,n=e.Deferred(),r=jQuery.extend({},a,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,r),n.promise()}),e.when.apply(e,f.get()).done(function(){u(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),a.complete.call(r[0])})})},e.fn.extend({_addClass:e.fn.addClass,addClass:function(t,n,r,i){return n?e.effects.animateClass.call(this,{add:t},n,r,i):this._addClass(t)},_removeClass:e.fn.removeClass,removeClass:function(t,n,r,i){return n?e.effects.animateClass.call(this,{remove:t},n,r,i):this._removeClass(t)},_toggleClass:e.fn.toggleClass,toggleClass:function(n,r,i,s,o){return typeof r=="boolean"||r===t?i?e.effects.animateClass.call(this,r?{add:n}:{remove:n},i,s,o):this._toggleClass(n,r):e.effects.animateClass.call(this,{toggle:n},r,i,s)},switchClass:function(t,n,r,i,s){return e.effects.animateClass.call(this,{add:n,remove:t},r,i,s)}})}(),function(){function i(t,n,r,i){e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},n==null&&(n={}),e.isFunction(n)&&(i=n,r=null,n={});if(typeof n=="number"||e.fx.speeds[n])i=r,r=n,n={};return e.isFunction(r)&&(i=r,r=null),n&&e.extend(t,n),r=r||n.duration,t.duration=e.fx.off?0:typeof r=="number"?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,t.complete=i||n.complete,t}function s(t){return!t||typeof t=="number"||e.fx.speeds[t]?!0:typeof t=="string"&&!e.effects.effect[t]?n&&e.effects[t]?!1:!0:!1}e.extend(e.effects,{version:"1.9.1",save:function(e,t){for(var n=0;n<t.length;n++)t[n]!==null&&e.data(r+t[n],e[0].style[t[n]])},restore:function(e,n){var i,s;for(s=0;s<n.length;s++)n[s]!==null&&(i=e.data(r+n[s]),i===t&&(i=""),e.css(n[s],i))},setMode:function(e,t){return t==="toggle"&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var n,r;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=e[1]/t.width}return{x:r,y:n}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},r=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}return t.wrap(r),(t[0]===s||e.contains(t[0],s))&&e(s).focus(),r=t.parent(),t.css("position")==="static"?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,r){n[r]=t.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),r.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).focus()),t},setTransition:function(t,n,r,i){return i=i||{},e.each(n,function(e,n){var s=t.cssUnit(n);s[0]>0&&(i[n]=s[0]*r+s[1])}),i}}),e.fn.extend({effect:function(){function a(n){function u(){e.isFunction(i)&&i.call(r[0]),e.isFunction(n)&&n()}var r=e(this),i=t.complete,s=t.mode;(r.is(":hidden")?s==="hide":s==="show")?u():o.call(r[0],t,u)}var t=i.apply(this,arguments),r=t.mode,s=t.queue,o=e.effects.effect[t.effect],u=!o&&n&&e.effects[t.effect];return e.fx.off||!o&&!u?r?this[r](t.duration,t.complete):this.each(function(){t.complete&&t.complete.call(this)}):o?s===!1?this.each(a):this.queue(s||"fx",a):u.call(this,{options:t,duration:t.duration,callback:t.complete,mode:t.mode})},_show:e.fn.show,show:function(e){if(s(e))return this._show.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="show",this.effect.call(this,t)},_hide:e.fn.hide,hide:function(e){if(s(e))return this._hide.apply(this,arguments);var t=i.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(s(t)||typeof t=="boolean"||e.isFunction(t))return this.__toggle.apply(this,arguments);var n=i.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)},cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])}),r}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return e===0||e===1?e:-Math.pow(2,8*(e-1))*Math.sin(((e-1)*80-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){var t,n=4;while(e<((t=Math.pow(2,--n))-1)/11);return 1/Math.pow(4,3-n)-7.5625*Math.pow((t*3-2)/22-e,2)}}),e.each(t,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(e*2)/2:1-n(e*-2+2)/2}})}()}(jQuery);(function(e,t){e.effects.effect.fade=function(t,n){var r=e(this),i=e.effects.setMode(r,t.mode||"toggle");r.animate({opacity:i},{queue:!1,duration:t.duration,easing:t.easing,complete:n})}})(jQuery);
caitp/cdnjs
ajax/libs/x-editable/1.0.0/inputs/dateui/jquery-ui-datepicker/js/jquery-ui-1.9.1.custom.min.js
JavaScript
mit
55,042
<?php /* * Copyright 2016 Google Inc. * * 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. */ /** * The "pageViews" collection of methods. * Typical usage is: * <code> * $bloggerService = new Google_Service_Blogger(...); * $pageViews = $bloggerService->pageViews; * </code> */ class Google_Service_Blogger_Resource_PageViews extends Google_Service_Resource { /** * Retrieve pageview stats for a Blog. (pageViews.get) * * @param string $blogId The ID of the blog to get. * @param array $optParams Optional parameters. * * @opt_param string range * @return Google_Service_Blogger_Pageviews */ public function get($blogId, $optParams = array()) { $params = array('blogId' => $blogId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Blogger_Pageviews"); } }
fahmyard/jadwal-ruangan
vendor/google/apiclient-services/src/Google/Service/Blogger/Resource/PageViews.php
PHP
mit
1,370
/* Copyright (c) 2011, Chris Umbel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var WordNetFile = require('./wordnet_file'), fs = require('fs'), util = require('util'); function getFileSize(path) { var stat = fs.statSync(path); return stat.size; } function findPrevEOL(fd, pos, callback) { var buff = new Buffer(1024); if(pos == 0) callback(0); else { fs.read(fd, buff, 0, 1, pos, function(err, count) { if(buff[0] == 10) callback(pos + 1); else findPrevEOL(fd, pos - 1, callback); }); } } function readLine(fd, pos, callback) { var buff = new Buffer(1024); findPrevEOL(fd, pos, function(pos) { WordNetFile.appendLineChar(fd, pos, 0, buff, callback); }); } function miss(callback) { callback({status: 'miss'}); } function findAt(fd, size, pos, lastPos, adjustment, searchKey, callback, lastKey) { if (lastPos == pos || pos >= size) { miss(callback); } else { readLine(fd, pos, function(line) { var tokens = line.split(/\s+/); var key = tokens[0]; if(key == searchKey) { callback({status: 'hit', key: key, 'line': line, tokens: tokens}); } else if(adjustment == 1 || key == lastKey) { miss(callback); } else { adjustment = Math.ceil(adjustment * 0.5); if (key < searchKey) { findAt(fd, size, pos + adjustment, pos, adjustment, searchKey, callback, key); } else { findAt(fd, size, pos - adjustment, pos, adjustment, searchKey, callback, key); } } }); } } function find(searchKey, callback) { var indexFile = this; indexFile.open(function(err, fd, done) { if(err) { console.log(err); } else { var size = getFileSize(indexFile.filePath) - 1; var pos = Math.ceil(size / 2); findAt(fd, size, pos, null, pos, searchKey, function(result) { callback(result); done(); }); } }); } function lookupFromFile(word, callback) { this.find(word, function(record) { var indexRecord = null; if(record.status == 'hit') { var ptrs = [], offsets = []; for(var i = 0; i < parseInt(record.tokens[3]); i++) ptrs.push(record.tokens[i]); for(var i = 0; i < parseInt(record.tokens[2]); i++) offsets.push(parseInt(record.tokens[ptrs.length + 6 + i], 10)); indexRecord = { lemma: record.tokens[0], pos: record.tokens[1], ptrSymbol: ptrs, senseCnt: parseInt(record.tokens[ptrs.length + 4], 10), tagsenseCnt: parseInt(record.tokens[ptrs.length + 5], 10), synsetOffset: offsets }; } callback(indexRecord); }); } function lookup(word, callback) { this.lookupFromFile(word, callback); } var IndexFile = function(dataDir, name) { WordNetFile.call(this, dataDir, 'index.' + name); }; util.inherits(IndexFile, WordNetFile); IndexFile.prototype.lookupFromFile = lookupFromFile; IndexFile.prototype.lookup = lookup; IndexFile.prototype.find = find; IndexFile.prototype._findAt = findAt; module.exports = IndexFile;
dpraimeyuu/natural
lib/natural/wordnet/index_file.js
JavaScript
mit
4,038
/** * rome - Dependency free, opt-in UI, customizable date _(and time)_ picker! * @version v0.3.5 * @link https://github.com/bevacqua/rome * @license MIT */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.rome=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ // shim for using process in browser var process = module.exports = {}; process.nextTick = (function () { var canSetImmediate = typeof window !== 'undefined' && window.setImmediate; var canPost = typeof window !== 'undefined' && window.postMessage && window.addEventListener ; if (canSetImmediate) { return function (f) { return window.setImmediate(f) }; } if (canPost) { var queue = []; window.addEventListener('message', function (ev) { var source = ev.source; if ((source === window || source === null) && ev.data === 'process-tick') { ev.stopPropagation(); if (queue.length > 0) { var fn = queue.shift(); fn(); } } }, true); return function nextTick(fn) { queue.push(fn); window.postMessage('process-tick', '*'); }; } return function nextTick(fn) { setTimeout(fn, 0); }; })(); process.title = 'browser'; process.browser = true; process.env = {}; process.argv = []; function noop() {} process.on = noop; process.addListener = noop; process.once = noop; process.off = noop; process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; process.binding = function (name) { throw new Error('process.binding is not supported'); } // TODO(shtylman) process.cwd = function () { return '/' }; process.chdir = function (dir) { throw new Error('process.chdir is not supported'); }; },{}],2:[function(_dereq_,module,exports){ module.exports = _dereq_('./src/contra.js'); },{"./src/contra.js":3}],3:[function(_dereq_,module,exports){ (function (process){ (function (Object, root, undefined) { 'use strict'; var undef = '' + undefined; var SERIAL = 1; var CONCURRENT = Infinity; function noop () {} function a (o) { return Object.prototype.toString.call(o) === '[object Array]'; } function atoa (a, n) { return Array.prototype.slice.call(a, n); } function debounce (fn, args, ctx) { if (!fn) { return; } tick(function run () { fn.apply(ctx || null, args || []); }); } function once (fn) { var disposed; function disposable () { if (disposed) { return; } disposed = true; (fn || noop).apply(null, arguments); } disposable.discard = function () { disposed = true; }; return disposable; } function handle (args, done, disposable) { var err = args.shift(); if (err) { if (disposable) { disposable.discard(); } debounce(done, [err]); return true; } } // cross-platform ticker var si = typeof setImmediate === 'function', tick; if (si) { tick = function (fn) { setImmediate(fn); }; } else if (typeof process !== undef && process.nextTick) { tick = process.nextTick; } else { tick = function (fn) { setTimeout(fn, 0); }; } function _curry () { var args = atoa(arguments); var method = args.shift(); return function curried () { var more = atoa(arguments); method.apply(method, args.concat(more)); }; } function _waterfall (steps, done) { var d = once(done); function next () { var args = atoa(arguments); var step = steps.shift(); if (step) { if (handle(args, d)) { return; } args.push(once(next)); debounce(step, args); } else { debounce(d, arguments); } } next(); } function _concurrent (tasks, concurrency, done) { if (!done) { done = concurrency; concurrency = CONCURRENT; } var d = once(done); var q = _queue(worker, concurrency); var keys = Object.keys(tasks); var results = a(tasks) ? [] : {}; q.unshift(keys); q.on('drain', function completed () { d(null, results); }); function worker (key, next) { debounce(tasks[key], [proceed]); function proceed () { var args = atoa(arguments); if (handle(args, d)) { return; } results[key] = args.shift(); next(); } } } function _series (tasks, done) { _concurrent(tasks, SERIAL, done); } function _map (cap, then, attached) { var map = function (collection, concurrency, iterator, done) { var args = arguments; if (args.length === 2) { iterator = concurrency; concurrency = CONCURRENT; } if (args.length === 3 && typeof concurrency !== 'number') { done = iterator; iterator = concurrency; concurrency = CONCURRENT; } var keys = Object.keys(collection); var tasks = a(collection) ? [] : {}; keys.forEach(function insert (key) { tasks[key] = function iterate (cb) { if (iterator.length === 3) { iterator(collection[key], key, cb); } else { iterator(collection[key], cb); } }; }); _concurrent(tasks, cap || concurrency, then ? then(collection, done) : done); }; if (!attached) { map.series = _map(SERIAL, then, true); } return map; } function _each (concurrency) { return _map(concurrency, then); function then (collection, done) { return function mask (err) { done(err); // only return the error, no more arguments }; } } function _filter (concurrency) { return _map(concurrency, then); function then (collection, done) { return function filter (err, results) { function exists (item, key) { return !!results[key]; } function ofilter () { var filtered = {}; Object.keys(collection).forEach(function omapper (key) { if (exists(null, key)) { filtered[key] = collection[key]; } }); return filtered; } if (err) { done(err); return; } done(null, a(results) ? collection.filter(exists) : ofilter()); }; } } function _emitter (thing, options) { var opts = options || {}; var evt = {}; if (thing === undefined) { thing = {}; } thing.on = function (type, fn) { if (!evt[type]) { evt[type] = [fn]; } else { evt[type].push(fn); } }; thing.once = function (type, fn) { fn._once = true; // thing.off(fn) still works! thing.on(type, fn); }; thing.off = function (type, fn) { var c = arguments.length; if (c === 1) { delete evt[type]; } else if (c === 0) { evt = {}; } else { var et = evt[type]; if (!et) { return; } et.splice(et.indexOf(fn), 1); } }; thing.emit = function () { var args = atoa(arguments); var type = args.shift(); var et = evt[type]; if (type === 'error' && opts.throws !== false && !et) { throw args.length === 1 ? args[0] : args; } if (!et) { return; } evt[type] = et.filter(function emitter (listen) { if (opts.async) { debounce(listen, args, thing); } else { listen.apply(thing, args); } return !listen._once; }); }; return thing; } function _queue (worker, concurrency) { var q = [], load = 0, max = concurrency || 1, paused; var qq = _emitter({ push: manipulate.bind(null, 'push'), unshift: manipulate.bind(null, 'unshift'), pause: function () { paused = true; }, resume: function () { paused = false; debounce(labor); }, pending: q }); if (Object.defineProperty && !Object.definePropertyPartial) { Object.defineProperty(qq, 'length', { get: function () { return q.length; } }); } function manipulate (how, task, done) { var tasks = a(task) ? task : [task]; tasks.forEach(function insert (t) { q[how]({ t: t, done: done }); }); debounce(labor); } function labor () { if (paused || load >= max) { return; } if (!q.length) { if (load === 0) { qq.emit('drain'); } return; } load++; var job = q.pop(); worker(job.t, once(complete.bind(null, job))); debounce(labor); } function complete (job) { load--; debounce(job.done, atoa(arguments, 1)); debounce(labor); } return qq; } var contra = { curry: _curry, concurrent: _concurrent, series: _series, waterfall: _waterfall, each: _each(), map: _map(), filter: _filter(), queue: _queue, emitter: _emitter }; // cross-platform export if (typeof module !== undef && module.exports) { module.exports = contra; } else { root.contra = contra; } })(Object, this); }).call(this,_dereq_("FWaASH")) },{"FWaASH":1}],4:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var baseClone = _dereq_('lodash._baseclone'), baseCreateCallback = _dereq_('lodash._basecreatecallback'); /** * Creates a deep clone of `value`. If a callback is provided it will be * executed to produce the cloned values. If the callback returns `undefined` * cloning will be handled by the method instead. The callback is bound to * `thisArg` and invoked with one argument; (value). * * Note: This method is loosely based on the structured clone algorithm. Functions * and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and * objects created by constructors other than `Object` are cloned to plain `Object` objects. * See http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm. * * @static * @memberOf _ * @category Objects * @param {*} value The value to deep clone. * @param {Function} [callback] The function to customize cloning values. * @param {*} [thisArg] The `this` binding of `callback`. * @returns {*} Returns the deep cloned value. * @example * * var characters = [ * { 'name': 'barney', 'age': 36 }, * { 'name': 'fred', 'age': 40 } * ]; * * var deep = _.cloneDeep(characters); * deep[0] === characters[0]; * // => false * * var view = { * 'label': 'docs', * 'node': element * }; * * var clone = _.cloneDeep(view, function(value) { * return _.isElement(value) ? value.cloneNode(true) : undefined; * }); * * clone.node == view.node; * // => false */ function cloneDeep(value, callback, thisArg) { return baseClone(value, true, typeof callback == 'function' && baseCreateCallback(callback, thisArg, 1)); } module.exports = cloneDeep; },{"lodash._baseclone":5,"lodash._basecreatecallback":27}],5:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var assign = _dereq_('lodash.assign'), forEach = _dereq_('lodash.foreach'), forOwn = _dereq_('lodash.forown'), getArray = _dereq_('lodash._getarray'), isArray = _dereq_('lodash.isarray'), isObject = _dereq_('lodash.isobject'), releaseArray = _dereq_('lodash._releasearray'), slice = _dereq_('lodash._slice'); /** Used to match regexp flags from their coerced string values */ var reFlags = /\w*$/; /** `Object#toString` result shortcuts */ var argsClass = '[object Arguments]', arrayClass = '[object Array]', boolClass = '[object Boolean]', dateClass = '[object Date]', funcClass = '[object Function]', numberClass = '[object Number]', objectClass = '[object Object]', regexpClass = '[object RegExp]', stringClass = '[object String]'; /** Used to identify object classifications that `_.clone` supports */ var cloneableClasses = {}; cloneableClasses[funcClass] = false; cloneableClasses[argsClass] = cloneableClasses[arrayClass] = cloneableClasses[boolClass] = cloneableClasses[dateClass] = cloneableClasses[numberClass] = cloneableClasses[objectClass] = cloneableClasses[regexpClass] = cloneableClasses[stringClass] = true; /** Used for native method references */ var objectProto = Object.prototype; /** Used to resolve the internal [[Class]] of values */ var toString = objectProto.toString; /** Native method shortcuts */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to lookup a built-in constructor by [[Class]] */ var ctorByClass = {}; ctorByClass[arrayClass] = Array; ctorByClass[boolClass] = Boolean; ctorByClass[dateClass] = Date; ctorByClass[funcClass] = Function; ctorByClass[objectClass] = Object; ctorByClass[numberClass] = Number; ctorByClass[regexpClass] = RegExp; ctorByClass[stringClass] = String; /** * The base implementation of `_.clone` without argument juggling or support * for `thisArg` binding. * * @private * @param {*} value The value to clone. * @param {boolean} [isDeep=false] Specify a deep clone. * @param {Function} [callback] The function to customize cloning values. * @param {Array} [stackA=[]] Tracks traversed source objects. * @param {Array} [stackB=[]] Associates clones with source counterparts. * @returns {*} Returns the cloned value. */ function baseClone(value, isDeep, callback, stackA, stackB) { if (callback) { var result = callback(value); if (typeof result != 'undefined') { return result; } } // inspect [[Class]] var isObj = isObject(value); if (isObj) { var className = toString.call(value); if (!cloneableClasses[className]) { return value; } var ctor = ctorByClass[className]; switch (className) { case boolClass: case dateClass: return new ctor(+value); case numberClass: case stringClass: return new ctor(value); case regexpClass: result = ctor(value.source, reFlags.exec(value)); result.lastIndex = value.lastIndex; return result; } } else { return value; } var isArr = isArray(value); if (isDeep) { // check for circular references and return corresponding clone var initedStack = !stackA; stackA || (stackA = getArray()); stackB || (stackB = getArray()); var length = stackA.length; while (length--) { if (stackA[length] == value) { return stackB[length]; } } result = isArr ? ctor(value.length) : {}; } else { result = isArr ? slice(value) : assign({}, value); } // add array properties assigned by `RegExp#exec` if (isArr) { if (hasOwnProperty.call(value, 'index')) { result.index = value.index; } if (hasOwnProperty.call(value, 'input')) { result.input = value.input; } } // exit for shallow clone if (!isDeep) { return result; } // add the source value to the stack of traversed objects // and associate it with its clone stackA.push(value); stackB.push(result); // recursively populate clone (susceptible to call stack limits) (isArr ? forEach : forOwn)(value, function(objValue, key) { result[key] = baseClone(objValue, isDeep, callback, stackA, stackB); }); if (initedStack) { releaseArray(stackA); releaseArray(stackB); } return result; } module.exports = baseClone; },{"lodash._getarray":6,"lodash._releasearray":8,"lodash._slice":11,"lodash.assign":12,"lodash.foreach":17,"lodash.forown":18,"lodash.isarray":23,"lodash.isobject":25}],6:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var arrayPool = _dereq_('lodash._arraypool'); /** * Gets an array from the array pool or creates a new one if the pool is empty. * * @private * @returns {Array} The array from the pool. */ function getArray() { return arrayPool.pop() || []; } module.exports = getArray; },{"lodash._arraypool":7}],7:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ /** Used to pool arrays and objects used internally */ var arrayPool = []; module.exports = arrayPool; },{}],8:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var arrayPool = _dereq_('lodash._arraypool'), maxPoolSize = _dereq_('lodash._maxpoolsize'); /** * Releases the given array back to the array pool. * * @private * @param {Array} [array] The array to release. */ function releaseArray(array) { array.length = 0; if (arrayPool.length < maxPoolSize) { arrayPool.push(array); } } module.exports = releaseArray; },{"lodash._arraypool":9,"lodash._maxpoolsize":10}],9:[function(_dereq_,module,exports){ module.exports=_dereq_(7) },{}],10:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ /** Used as the max size of the `arrayPool` and `objectPool` */ var maxPoolSize = 40; module.exports = maxPoolSize; },{}],11:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ /** * Slices the `collection` from the `start` index up to, but not including, * the `end` index. * * Note: This function is used instead of `Array#slice` to support node lists * in IE < 9 and to ensure dense arrays are returned. * * @private * @param {Array|Object|string} collection The collection to slice. * @param {number} start The start index. * @param {number} end The end index. * @returns {Array} Returns the new array. */ function slice(array, start, end) { start || (start = 0); if (typeof end == 'undefined') { end = array ? array.length : 0; } var index = -1, length = end - start || 0, result = Array(length < 0 ? 0 : length); while (++index < length) { result[index] = array[start + index]; } return result; } module.exports = slice; },{}],12:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var baseCreateCallback = _dereq_('lodash._basecreatecallback'), keys = _dereq_('lodash.keys'), objectTypes = _dereq_('lodash._objecttypes'); /** * Assigns own enumerable properties of source object(s) to the destination * object. Subsequent sources will overwrite property assignments of previous * sources. If a callback is provided it will be executed to produce the * assigned values. The callback is bound to `thisArg` and invoked with two * arguments; (objectValue, sourceValue). * * @static * @memberOf _ * @type Function * @alias extend * @category Objects * @param {Object} object The destination object. * @param {...Object} [source] The source objects. * @param {Function} [callback] The function to customize assigning values. * @param {*} [thisArg] The `this` binding of `callback`. * @returns {Object} Returns the destination object. * @example * * _.assign({ 'name': 'fred' }, { 'employer': 'slate' }); * // => { 'name': 'fred', 'employer': 'slate' } * * var defaults = _.partialRight(_.assign, function(a, b) { * return typeof a == 'undefined' ? b : a; * }); * * var object = { 'name': 'barney' }; * defaults(object, { 'name': 'fred', 'employer': 'slate' }); * // => { 'name': 'barney', 'employer': 'slate' } */ var assign = function(object, source, guard) { var index, iterable = object, result = iterable; if (!iterable) return result; var args = arguments, argsIndex = 0, argsLength = typeof guard == 'number' ? 2 : args.length; if (argsLength > 3 && typeof args[argsLength - 2] == 'function') { var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2); } else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') { callback = args[--argsLength]; } while (++argsIndex < argsLength) { iterable = args[argsIndex]; if (iterable && objectTypes[typeof iterable]) { var ownIndex = -1, ownProps = objectTypes[typeof iterable] && keys(iterable), length = ownProps ? ownProps.length : 0; while (++ownIndex < length) { index = ownProps[ownIndex]; result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]; } } } return result }; module.exports = assign; },{"lodash._basecreatecallback":27,"lodash._objecttypes":13,"lodash.keys":14}],13:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ /** Used to determine if values are of the language type Object */ var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; module.exports = objectTypes; },{}],14:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var isNative = _dereq_('lodash._isnative'), isObject = _dereq_('lodash.isobject'), shimKeys = _dereq_('lodash._shimkeys'); /* Native method shortcuts for methods with the same name as other `lodash` methods */ var nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys; /** * Creates an array composed of the own enumerable property names of an object. * * @static * @memberOf _ * @category Objects * @param {Object} object The object to inspect. * @returns {Array} Returns an array of property names. * @example * * _.keys({ 'one': 1, 'two': 2, 'three': 3 }); * // => ['one', 'two', 'three'] (property order is not guaranteed across environments) */ var keys = !nativeKeys ? shimKeys : function(object) { if (!isObject(object)) { return []; } return nativeKeys(object); }; module.exports = keys; },{"lodash._isnative":15,"lodash._shimkeys":16,"lodash.isobject":25}],15:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ /** Used for native method references */ var objectProto = Object.prototype; /** Used to resolve the internal [[Class]] of values */ var toString = objectProto.toString; /** Used to detect if a method is native */ var reNative = RegExp('^' + String(toString) .replace(/[.*+?^${}()|[\]\\]/g, '\\$&') .replace(/toString| for [^\]]+/g, '.*?') + '$' ); /** * Checks if `value` is a native function. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if the `value` is a native function, else `false`. */ function isNative(value) { return typeof value == 'function' && reNative.test(value); } module.exports = isNative; },{}],16:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var objectTypes = _dereq_('lodash._objecttypes'); /** Used for native method references */ var objectProto = Object.prototype; /** Native method shortcuts */ var hasOwnProperty = objectProto.hasOwnProperty; /** * A fallback implementation of `Object.keys` which produces an array of the * given object's own enumerable property names. * * @private * @type Function * @param {Object} object The object to inspect. * @returns {Array} Returns an array of property names. */ var shimKeys = function(object) { var index, iterable = object, result = []; if (!iterable) return result; if (!(objectTypes[typeof object])) return result; for (index in iterable) { if (hasOwnProperty.call(iterable, index)) { result.push(index); } } return result }; module.exports = shimKeys; },{"lodash._objecttypes":13}],17:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var baseCreateCallback = _dereq_('lodash._basecreatecallback'), forOwn = _dereq_('lodash.forown'); /** * Iterates over elements of a collection, executing the callback for each * element. The callback is bound to `thisArg` and invoked with three arguments; * (value, index|key, collection). Callbacks may exit iteration early by * explicitly returning `false`. * * Note: As with other "Collections" methods, objects with a `length` property * are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn` * may be used for object iteration. * * @static * @memberOf _ * @alias each * @category Collections * @param {Array|Object|string} collection The collection to iterate over. * @param {Function} [callback=identity] The function called per iteration. * @param {*} [thisArg] The `this` binding of `callback`. * @returns {Array|Object|string} Returns `collection`. * @example * * _([1, 2, 3]).forEach(function(num) { console.log(num); }).join(','); * // => logs each number and returns '1,2,3' * * _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { console.log(num); }); * // => logs each number and returns the object (property order is not guaranteed across environments) */ function forEach(collection, callback, thisArg) { var index = -1, length = collection ? collection.length : 0; callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3); if (typeof length == 'number') { while (++index < length) { if (callback(collection[index], index, collection) === false) { break; } } } else { forOwn(collection, callback); } return collection; } module.exports = forEach; },{"lodash._basecreatecallback":27,"lodash.forown":18}],18:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var baseCreateCallback = _dereq_('lodash._basecreatecallback'), keys = _dereq_('lodash.keys'), objectTypes = _dereq_('lodash._objecttypes'); /** * Iterates over own enumerable properties of an object, executing the callback * for each property. The callback is bound to `thisArg` and invoked with three * arguments; (value, key, object). Callbacks may exit iteration early by * explicitly returning `false`. * * @static * @memberOf _ * @type Function * @category Objects * @param {Object} object The object to iterate over. * @param {Function} [callback=identity] The function called per iteration. * @param {*} [thisArg] The `this` binding of `callback`. * @returns {Object} Returns `object`. * @example * * _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) { * console.log(key); * }); * // => logs '0', '1', and 'length' (property order is not guaranteed across environments) */ var forOwn = function(collection, callback, thisArg) { var index, iterable = collection, result = iterable; if (!iterable) return result; if (!objectTypes[typeof iterable]) return result; callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3); var ownIndex = -1, ownProps = objectTypes[typeof iterable] && keys(iterable), length = ownProps ? ownProps.length : 0; while (++ownIndex < length) { index = ownProps[ownIndex]; if (callback(iterable[index], index, collection) === false) return result; } return result }; module.exports = forOwn; },{"lodash._basecreatecallback":27,"lodash._objecttypes":19,"lodash.keys":20}],19:[function(_dereq_,module,exports){ module.exports=_dereq_(13) },{}],20:[function(_dereq_,module,exports){ module.exports=_dereq_(14) },{"lodash._isnative":21,"lodash._shimkeys":22,"lodash.isobject":25}],21:[function(_dereq_,module,exports){ module.exports=_dereq_(15) },{}],22:[function(_dereq_,module,exports){ module.exports=_dereq_(16) },{"lodash._objecttypes":19}],23:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var isNative = _dereq_('lodash._isnative'); /** `Object#toString` result shortcuts */ var arrayClass = '[object Array]'; /** Used for native method references */ var objectProto = Object.prototype; /** Used to resolve the internal [[Class]] of values */ var toString = objectProto.toString; /* Native method shortcuts for methods with the same name as other `lodash` methods */ var nativeIsArray = isNative(nativeIsArray = Array.isArray) && nativeIsArray; /** * Checks if `value` is an array. * * @static * @memberOf _ * @type Function * @category Objects * @param {*} value The value to check. * @returns {boolean} Returns `true` if the `value` is an array, else `false`. * @example * * (function() { return _.isArray(arguments); })(); * // => false * * _.isArray([1, 2, 3]); * // => true */ var isArray = nativeIsArray || function(value) { return value && typeof value == 'object' && typeof value.length == 'number' && toString.call(value) == arrayClass || false; }; module.exports = isArray; },{"lodash._isnative":24}],24:[function(_dereq_,module,exports){ module.exports=_dereq_(15) },{}],25:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var objectTypes = _dereq_('lodash._objecttypes'); /** * Checks if `value` is the language type of Object. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @category Objects * @param {*} value The value to check. * @returns {boolean} Returns `true` if the `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(1); * // => false */ function isObject(value) { // check if the value is the ECMAScript language type of Object // http://es5.github.io/#x8 // and avoid a V8 bug // http://code.google.com/p/v8/issues/detail?id=2291 return !!(value && objectTypes[typeof value]); } module.exports = isObject; },{"lodash._objecttypes":26}],26:[function(_dereq_,module,exports){ module.exports=_dereq_(13) },{}],27:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var bind = _dereq_('lodash.bind'), identity = _dereq_('lodash.identity'), setBindData = _dereq_('lodash._setbinddata'), support = _dereq_('lodash.support'); /** Used to detected named functions */ var reFuncName = /^\s*function[ \n\r\t]+\w/; /** Used to detect functions containing a `this` reference */ var reThis = /\bthis\b/; /** Native method shortcuts */ var fnToString = Function.prototype.toString; /** * The base implementation of `_.createCallback` without support for creating * "_.pluck" or "_.where" style callbacks. * * @private * @param {*} [func=identity] The value to convert to a callback. * @param {*} [thisArg] The `this` binding of the created callback. * @param {number} [argCount] The number of arguments the callback accepts. * @returns {Function} Returns a callback function. */ function baseCreateCallback(func, thisArg, argCount) { if (typeof func != 'function') { return identity; } // exit early for no `thisArg` or already bound by `Function#bind` if (typeof thisArg == 'undefined' || !('prototype' in func)) { return func; } var bindData = func.__bindData__; if (typeof bindData == 'undefined') { if (support.funcNames) { bindData = !func.name; } bindData = bindData || !support.funcDecomp; if (!bindData) { var source = fnToString.call(func); if (!support.funcNames) { bindData = !reFuncName.test(source); } if (!bindData) { // checks if `func` references the `this` keyword and stores the result bindData = reThis.test(source); setBindData(func, bindData); } } } // exit early if there are no `this` references or `func` is bound if (bindData === false || (bindData !== true && bindData[1] & 1)) { return func; } switch (argCount) { case 1: return function(value) { return func.call(thisArg, value); }; case 2: return function(a, b) { return func.call(thisArg, a, b); }; case 3: return function(value, index, collection) { return func.call(thisArg, value, index, collection); }; case 4: return function(accumulator, value, index, collection) { return func.call(thisArg, accumulator, value, index, collection); }; } return bind(func, thisArg); } module.exports = baseCreateCallback; },{"lodash._setbinddata":28,"lodash.bind":31,"lodash.identity":47,"lodash.support":48}],28:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var isNative = _dereq_('lodash._isnative'), noop = _dereq_('lodash.noop'); /** Used as the property descriptor for `__bindData__` */ var descriptor = { 'configurable': false, 'enumerable': false, 'value': null, 'writable': false }; /** Used to set meta data on functions */ var defineProperty = (function() { // IE 8 only accepts DOM elements try { var o = {}, func = isNative(func = Object.defineProperty) && func, result = func(o, o, o) && func; } catch(e) { } return result; }()); /** * Sets `this` binding data on a given function. * * @private * @param {Function} func The function to set data on. * @param {Array} value The data array to set. */ var setBindData = !defineProperty ? noop : function(func, value) { descriptor.value = value; defineProperty(func, '__bindData__', descriptor); }; module.exports = setBindData; },{"lodash._isnative":29,"lodash.noop":30}],29:[function(_dereq_,module,exports){ module.exports=_dereq_(15) },{}],30:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ /** * A no-operation function. * * @static * @memberOf _ * @category Utilities * @example * * var object = { 'name': 'fred' }; * _.noop(object) === undefined; * // => true */ function noop() { // no operation performed } module.exports = noop; },{}],31:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var createWrapper = _dereq_('lodash._createwrapper'), slice = _dereq_('lodash._slice'); /** * Creates a function that, when called, invokes `func` with the `this` * binding of `thisArg` and prepends any additional `bind` arguments to those * provided to the bound function. * * @static * @memberOf _ * @category Functions * @param {Function} func The function to bind. * @param {*} [thisArg] The `this` binding of `func`. * @param {...*} [arg] Arguments to be partially applied. * @returns {Function} Returns the new bound function. * @example * * var func = function(greeting) { * return greeting + ' ' + this.name; * }; * * func = _.bind(func, { 'name': 'fred' }, 'hi'); * func(); * // => 'hi fred' */ function bind(func, thisArg) { return arguments.length > 2 ? createWrapper(func, 17, slice(arguments, 2), null, thisArg) : createWrapper(func, 1, null, null, thisArg); } module.exports = bind; },{"lodash._createwrapper":32,"lodash._slice":46}],32:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var baseBind = _dereq_('lodash._basebind'), baseCreateWrapper = _dereq_('lodash._basecreatewrapper'), isFunction = _dereq_('lodash.isfunction'), slice = _dereq_('lodash._slice'); /** * Used for `Array` method references. * * Normally `Array.prototype` would suffice, however, using an array literal * avoids issues in Narwhal. */ var arrayRef = []; /** Native method shortcuts */ var push = arrayRef.push, unshift = arrayRef.unshift; /** * Creates a function that, when called, either curries or invokes `func` * with an optional `this` binding and partially applied arguments. * * @private * @param {Function|string} func The function or method name to reference. * @param {number} bitmask The bitmask of method flags to compose. * The bitmask may be composed of the following flags: * 1 - `_.bind` * 2 - `_.bindKey` * 4 - `_.curry` * 8 - `_.curry` (bound) * 16 - `_.partial` * 32 - `_.partialRight` * @param {Array} [partialArgs] An array of arguments to prepend to those * provided to the new function. * @param {Array} [partialRightArgs] An array of arguments to append to those * provided to the new function. * @param {*} [thisArg] The `this` binding of `func`. * @param {number} [arity] The arity of `func`. * @returns {Function} Returns the new function. */ function createWrapper(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) { var isBind = bitmask & 1, isBindKey = bitmask & 2, isCurry = bitmask & 4, isCurryBound = bitmask & 8, isPartial = bitmask & 16, isPartialRight = bitmask & 32; if (!isBindKey && !isFunction(func)) { throw new TypeError; } if (isPartial && !partialArgs.length) { bitmask &= ~16; isPartial = partialArgs = false; } if (isPartialRight && !partialRightArgs.length) { bitmask &= ~32; isPartialRight = partialRightArgs = false; } var bindData = func && func.__bindData__; if (bindData && bindData !== true) { // clone `bindData` bindData = slice(bindData); if (bindData[2]) { bindData[2] = slice(bindData[2]); } if (bindData[3]) { bindData[3] = slice(bindData[3]); } // set `thisBinding` is not previously bound if (isBind && !(bindData[1] & 1)) { bindData[4] = thisArg; } // set if previously bound but not currently (subsequent curried functions) if (!isBind && bindData[1] & 1) { bitmask |= 8; } // set curried arity if not yet set if (isCurry && !(bindData[1] & 4)) { bindData[5] = arity; } // append partial left arguments if (isPartial) { push.apply(bindData[2] || (bindData[2] = []), partialArgs); } // append partial right arguments if (isPartialRight) { unshift.apply(bindData[3] || (bindData[3] = []), partialRightArgs); } // merge flags bindData[1] |= bitmask; return createWrapper.apply(null, bindData); } // fast path for `_.bind` var creater = (bitmask == 1 || bitmask === 17) ? baseBind : baseCreateWrapper; return creater([func, bitmask, partialArgs, partialRightArgs, thisArg, arity]); } module.exports = createWrapper; },{"lodash._basebind":33,"lodash._basecreatewrapper":39,"lodash._slice":46,"lodash.isfunction":45}],33:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var baseCreate = _dereq_('lodash._basecreate'), isObject = _dereq_('lodash.isobject'), setBindData = _dereq_('lodash._setbinddata'), slice = _dereq_('lodash._slice'); /** * Used for `Array` method references. * * Normally `Array.prototype` would suffice, however, using an array literal * avoids issues in Narwhal. */ var arrayRef = []; /** Native method shortcuts */ var push = arrayRef.push; /** * The base implementation of `_.bind` that creates the bound function and * sets its meta data. * * @private * @param {Array} bindData The bind data array. * @returns {Function} Returns the new bound function. */ function baseBind(bindData) { var func = bindData[0], partialArgs = bindData[2], thisArg = bindData[4]; function bound() { // `Function#bind` spec // http://es5.github.io/#x15.3.4.5 if (partialArgs) { // avoid `arguments` object deoptimizations by using `slice` instead // of `Array.prototype.slice.call` and not assigning `arguments` to a // variable as a ternary expression var args = slice(partialArgs); push.apply(args, arguments); } // mimic the constructor's `return` behavior // http://es5.github.io/#x13.2.2 if (this instanceof bound) { // ensure `new bound` is an instance of `func` var thisBinding = baseCreate(func.prototype), result = func.apply(thisBinding, args || arguments); return isObject(result) ? result : thisBinding; } return func.apply(thisArg, args || arguments); } setBindData(bound, bindData); return bound; } module.exports = baseBind; },{"lodash._basecreate":34,"lodash._setbinddata":28,"lodash._slice":46,"lodash.isobject":37}],34:[function(_dereq_,module,exports){ (function (global){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var isNative = _dereq_('lodash._isnative'), isObject = _dereq_('lodash.isobject'), noop = _dereq_('lodash.noop'); /* Native method shortcuts for methods with the same name as other `lodash` methods */ var nativeCreate = isNative(nativeCreate = Object.create) && nativeCreate; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} prototype The object to inherit from. * @returns {Object} Returns the new object. */ function baseCreate(prototype, properties) { return isObject(prototype) ? nativeCreate(prototype) : {}; } // fallback for browsers without `Object.create` if (!nativeCreate) { baseCreate = (function() { function Object() {} return function(prototype) { if (isObject(prototype)) { Object.prototype = prototype; var result = new Object; Object.prototype = null; } return result || global.Object(); }; }()); } module.exports = baseCreate; }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"lodash._isnative":35,"lodash.isobject":37,"lodash.noop":36}],35:[function(_dereq_,module,exports){ module.exports=_dereq_(15) },{}],36:[function(_dereq_,module,exports){ module.exports=_dereq_(30) },{}],37:[function(_dereq_,module,exports){ module.exports=_dereq_(25) },{"lodash._objecttypes":38}],38:[function(_dereq_,module,exports){ module.exports=_dereq_(13) },{}],39:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var baseCreate = _dereq_('lodash._basecreate'), isObject = _dereq_('lodash.isobject'), setBindData = _dereq_('lodash._setbinddata'), slice = _dereq_('lodash._slice'); /** * Used for `Array` method references. * * Normally `Array.prototype` would suffice, however, using an array literal * avoids issues in Narwhal. */ var arrayRef = []; /** Native method shortcuts */ var push = arrayRef.push; /** * The base implementation of `createWrapper` that creates the wrapper and * sets its meta data. * * @private * @param {Array} bindData The bind data array. * @returns {Function} Returns the new function. */ function baseCreateWrapper(bindData) { var func = bindData[0], bitmask = bindData[1], partialArgs = bindData[2], partialRightArgs = bindData[3], thisArg = bindData[4], arity = bindData[5]; var isBind = bitmask & 1, isBindKey = bitmask & 2, isCurry = bitmask & 4, isCurryBound = bitmask & 8, key = func; function bound() { var thisBinding = isBind ? thisArg : this; if (partialArgs) { var args = slice(partialArgs); push.apply(args, arguments); } if (partialRightArgs || isCurry) { args || (args = slice(arguments)); if (partialRightArgs) { push.apply(args, partialRightArgs); } if (isCurry && args.length < arity) { bitmask |= 16 & ~32; return baseCreateWrapper([func, (isCurryBound ? bitmask : bitmask & ~3), args, null, thisArg, arity]); } } args || (args = arguments); if (isBindKey) { func = thisBinding[key]; } if (this instanceof bound) { thisBinding = baseCreate(func.prototype); var result = func.apply(thisBinding, args); return isObject(result) ? result : thisBinding; } return func.apply(thisBinding, args); } setBindData(bound, bindData); return bound; } module.exports = baseCreateWrapper; },{"lodash._basecreate":40,"lodash._setbinddata":28,"lodash._slice":46,"lodash.isobject":43}],40:[function(_dereq_,module,exports){ module.exports=_dereq_(34) },{"lodash._isnative":41,"lodash.isobject":43,"lodash.noop":42}],41:[function(_dereq_,module,exports){ module.exports=_dereq_(15) },{}],42:[function(_dereq_,module,exports){ module.exports=_dereq_(30) },{}],43:[function(_dereq_,module,exports){ module.exports=_dereq_(25) },{"lodash._objecttypes":44}],44:[function(_dereq_,module,exports){ module.exports=_dereq_(13) },{}],45:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ /** * Checks if `value` is a function. * * @static * @memberOf _ * @category Objects * @param {*} value The value to check. * @returns {boolean} Returns `true` if the `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true */ function isFunction(value) { return typeof value == 'function'; } module.exports = isFunction; },{}],46:[function(_dereq_,module,exports){ module.exports=_dereq_(11) },{}],47:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ /** * This method returns the first argument provided to it. * * @static * @memberOf _ * @category Utilities * @param {*} value Any value. * @returns {*} Returns `value`. * @example * * var object = { 'name': 'fred' }; * _.identity(object) === object; * // => true */ function identity(value) { return value; } module.exports = identity; },{}],48:[function(_dereq_,module,exports){ (function (global){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var isNative = _dereq_('lodash._isnative'); /** Used to detect functions containing a `this` reference */ var reThis = /\bthis\b/; /** * An object used to flag environments features. * * @static * @memberOf _ * @type Object */ var support = {}; /** * Detect if functions can be decompiled by `Function#toString` * (all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps). * * @memberOf _.support * @type boolean */ support.funcDecomp = !isNative(global.WinRTError) && reThis.test(function() { return this; }); /** * Detect if `Function#name` is supported (all but IE). * * @memberOf _.support * @type boolean */ support.funcNames = typeof Function.name == 'string'; module.exports = support; }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"lodash._isnative":49}],49:[function(_dereq_,module,exports){ module.exports=_dereq_(15) },{}],50:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var debounce = _dereq_('lodash.debounce'), isFunction = _dereq_('lodash.isfunction'), isObject = _dereq_('lodash.isobject'); /** Used as an internal `_.debounce` options object */ var debounceOptions = { 'leading': false, 'maxWait': 0, 'trailing': false }; /** * Creates a function that, when executed, will only call the `func` function * at most once per every `wait` milliseconds. Provide an options object to * indicate that `func` should be invoked on the leading and/or trailing edge * of the `wait` timeout. Subsequent calls to the throttled function will * return the result of the last `func` call. * * Note: If `leading` and `trailing` options are `true` `func` will be called * on the trailing edge of the timeout only if the the throttled function is * invoked more than once during the `wait` timeout. * * @static * @memberOf _ * @category Functions * @param {Function} func The function to throttle. * @param {number} wait The number of milliseconds to throttle executions to. * @param {Object} [options] The options object. * @param {boolean} [options.leading=true] Specify execution on the leading edge of the timeout. * @param {boolean} [options.trailing=true] Specify execution on the trailing edge of the timeout. * @returns {Function} Returns the new throttled function. * @example * * // avoid excessively updating the position while scrolling * var throttled = _.throttle(updatePosition, 100); * jQuery(window).on('scroll', throttled); * * // execute `renewToken` when the click event is fired, but not more than once every 5 minutes * jQuery('.interactive').on('click', _.throttle(renewToken, 300000, { * 'trailing': false * })); */ function throttle(func, wait, options) { var leading = true, trailing = true; if (!isFunction(func)) { throw new TypeError; } if (options === false) { leading = false; } else if (isObject(options)) { leading = 'leading' in options ? options.leading : leading; trailing = 'trailing' in options ? options.trailing : trailing; } debounceOptions.leading = leading; debounceOptions.maxWait = wait; debounceOptions.trailing = trailing; return debounce(func, wait, debounceOptions); } module.exports = throttle; },{"lodash.debounce":51,"lodash.isfunction":54,"lodash.isobject":55}],51:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var isFunction = _dereq_('lodash.isfunction'), isObject = _dereq_('lodash.isobject'), now = _dereq_('lodash.now'); /* Native method shortcuts for methods with the same name as other `lodash` methods */ var nativeMax = Math.max; /** * Creates a function that will delay the execution of `func` until after * `wait` milliseconds have elapsed since the last time it was invoked. * Provide an options object to indicate that `func` should be invoked on * the leading and/or trailing edge of the `wait` timeout. Subsequent calls * to the debounced function will return the result of the last `func` call. * * Note: If `leading` and `trailing` options are `true` `func` will be called * on the trailing edge of the timeout only if the the debounced function is * invoked more than once during the `wait` timeout. * * @static * @memberOf _ * @category Functions * @param {Function} func The function to debounce. * @param {number} wait The number of milliseconds to delay. * @param {Object} [options] The options object. * @param {boolean} [options.leading=false] Specify execution on the leading edge of the timeout. * @param {number} [options.maxWait] The maximum time `func` is allowed to be delayed before it's called. * @param {boolean} [options.trailing=true] Specify execution on the trailing edge of the timeout. * @returns {Function} Returns the new debounced function. * @example * * // avoid costly calculations while the window size is in flux * var lazyLayout = _.debounce(calculateLayout, 150); * jQuery(window).on('resize', lazyLayout); * * // execute `sendMail` when the click event is fired, debouncing subsequent calls * jQuery('#postbox').on('click', _.debounce(sendMail, 300, { * 'leading': true, * 'trailing': false * }); * * // ensure `batchLog` is executed once after 1 second of debounced calls * var source = new EventSource('/stream'); * source.addEventListener('message', _.debounce(batchLog, 250, { * 'maxWait': 1000 * }, false); */ function debounce(func, wait, options) { var args, maxTimeoutId, result, stamp, thisArg, timeoutId, trailingCall, lastCalled = 0, maxWait = false, trailing = true; if (!isFunction(func)) { throw new TypeError; } wait = nativeMax(0, wait) || 0; if (options === true) { var leading = true; trailing = false; } else if (isObject(options)) { leading = options.leading; maxWait = 'maxWait' in options && (nativeMax(wait, options.maxWait) || 0); trailing = 'trailing' in options ? options.trailing : trailing; } var delayed = function() { var remaining = wait - (now() - stamp); if (remaining <= 0) { if (maxTimeoutId) { clearTimeout(maxTimeoutId); } var isCalled = trailingCall; maxTimeoutId = timeoutId = trailingCall = undefined; if (isCalled) { lastCalled = now(); result = func.apply(thisArg, args); if (!timeoutId && !maxTimeoutId) { args = thisArg = null; } } } else { timeoutId = setTimeout(delayed, remaining); } }; var maxDelayed = function() { if (timeoutId) { clearTimeout(timeoutId); } maxTimeoutId = timeoutId = trailingCall = undefined; if (trailing || (maxWait !== wait)) { lastCalled = now(); result = func.apply(thisArg, args); if (!timeoutId && !maxTimeoutId) { args = thisArg = null; } } }; return function() { args = arguments; stamp = now(); thisArg = this; trailingCall = trailing && (timeoutId || !leading); if (maxWait === false) { var leadingCall = leading && !timeoutId; } else { if (!maxTimeoutId && !leading) { lastCalled = stamp; } var remaining = maxWait - (stamp - lastCalled), isCalled = remaining <= 0; if (isCalled) { if (maxTimeoutId) { maxTimeoutId = clearTimeout(maxTimeoutId); } lastCalled = stamp; result = func.apply(thisArg, args); } else if (!maxTimeoutId) { maxTimeoutId = setTimeout(maxDelayed, remaining); } } if (isCalled && timeoutId) { timeoutId = clearTimeout(timeoutId); } else if (!timeoutId && wait !== maxWait) { timeoutId = setTimeout(delayed, wait); } if (leadingCall) { isCalled = true; result = func.apply(thisArg, args); } if (isCalled && !timeoutId && !maxTimeoutId) { args = thisArg = null; } return result; }; } module.exports = debounce; },{"lodash.isfunction":54,"lodash.isobject":55,"lodash.now":52}],52:[function(_dereq_,module,exports){ /** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize modern exports="npm" -o ./npm/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <http://lodash.com/license> */ var isNative = _dereq_('lodash._isnative'); /** * Gets the number of milliseconds that have elapsed since the Unix epoch * (1 January 1970 00:00:00 UTC). * * @static * @memberOf _ * @category Utilities * @example * * var stamp = _.now(); * _.defer(function() { console.log(_.now() - stamp); }); * // => logs the number of milliseconds it took for the deferred function to be called */ var now = isNative(now = Date.now) && now || function() { return new Date().getTime(); }; module.exports = now; },{"lodash._isnative":53}],53:[function(_dereq_,module,exports){ module.exports=_dereq_(15) },{}],54:[function(_dereq_,module,exports){ module.exports=_dereq_(45) },{}],55:[function(_dereq_,module,exports){ module.exports=_dereq_(25) },{"lodash._objecttypes":56}],56:[function(_dereq_,module,exports){ module.exports=_dereq_(13) },{}],57:[function(_dereq_,module,exports){ (function (global){ //! moment.js //! version : 2.7.0 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com (function (undefined) { /************************************ Constants ************************************/ var moment, VERSION = "2.7.0", // the global-scope this is NOT the global object in Node.js globalScope = typeof global !== 'undefined' ? global : this, oldGlobalMoment, round = Math.round, i, YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, // internal storage for language config files languages = {}, // moment internal properties momentProperties = { _isAMomentObject: null, _i : null, _f : null, _l : null, _strict : null, _tzm : null, _isUTC : null, _offset : null, // optional. Combine with _isUTC _pf : null, _lang : null // optional }, // check for nodeJS hasModule = (typeof module !== 'undefined' && module.exports), // ASP.NET json date format regex aspNetJsonRegex = /^\/?Date\((\-?\d+)/i, aspNetTimeSpanJsonRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/, // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/, // format tokens formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g, // parsing token regexes parseTokenOneOrTwoDigits = /\d\d?/, // 0 - 99 parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999 parseTokenOneToFourDigits = /\d{1,4}/, // 0 - 9999 parseTokenOneToSixDigits = /[+\-]?\d{1,6}/, // -999,999 - 999,999 parseTokenDigits = /\d+/, // nonzero number of digits parseTokenWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, // any word (or two) characters or numbers including two/three word month in arabic. parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z parseTokenT = /T/i, // T (ISO separator) parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 parseTokenOrdinal = /\d{1,2}/, //strict parsing regexes parseTokenOneDigit = /\d/, // 0 - 9 parseTokenTwoDigits = /\d\d/, // 00 - 99 parseTokenThreeDigits = /\d{3}/, // 000 - 999 parseTokenFourDigits = /\d{4}/, // 0000 - 9999 parseTokenSixDigits = /[+-]?\d{6}/, // -999,999 - 999,999 parseTokenSignedNumber = /[+-]?\d+/, // -inf - inf // iso 8601 regex // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, isoFormat = 'YYYY-MM-DDTHH:mm:ssZ', isoDates = [ ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/], ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/], ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/], ['GGGG-[W]WW', /\d{4}-W\d{2}/], ['YYYY-DDD', /\d{4}-\d{3}/] ], // iso time formats and regexes isoTimes = [ ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/], ['HH:mm', /(T| )\d\d:\d\d/], ['HH', /(T| )\d\d/] ], // timezone chunker "+10:00" > ["10", "00"] or "-1530" > ["-15", "30"] parseTimezoneChunker = /([\+\-]|\d\d)/gi, // getter and setter names proxyGettersAndSetters = 'Date|Hours|Minutes|Seconds|Milliseconds'.split('|'), unitMillisecondFactors = { 'Milliseconds' : 1, 'Seconds' : 1e3, 'Minutes' : 6e4, 'Hours' : 36e5, 'Days' : 864e5, 'Months' : 2592e6, 'Years' : 31536e6 }, unitAliases = { ms : 'millisecond', s : 'second', m : 'minute', h : 'hour', d : 'day', D : 'date', w : 'week', W : 'isoWeek', M : 'month', Q : 'quarter', y : 'year', DDD : 'dayOfYear', e : 'weekday', E : 'isoWeekday', gg: 'weekYear', GG: 'isoWeekYear' }, camelFunctions = { dayofyear : 'dayOfYear', isoweekday : 'isoWeekday', isoweek : 'isoWeek', weekyear : 'weekYear', isoweekyear : 'isoWeekYear' }, // format function strings formatFunctions = {}, // default relative time thresholds relativeTimeThresholds = { s: 45, //seconds to minutes m: 45, //minutes to hours h: 22, //hours to days dd: 25, //days to month (month == 1) dm: 45, //days to months (months > 1) dy: 345 //days to year }, // tokens to ordinalize and pad ordinalizeTokens = 'DDD w W M D d'.split(' '), paddedTokens = 'M D H h m s w W'.split(' '), formatTokenFunctions = { M : function () { return this.month() + 1; }, MMM : function (format) { return this.lang().monthsShort(this, format); }, MMMM : function (format) { return this.lang().months(this, format); }, D : function () { return this.date(); }, DDD : function () { return this.dayOfYear(); }, d : function () { return this.day(); }, dd : function (format) { return this.lang().weekdaysMin(this, format); }, ddd : function (format) { return this.lang().weekdaysShort(this, format); }, dddd : function (format) { return this.lang().weekdays(this, format); }, w : function () { return this.week(); }, W : function () { return this.isoWeek(); }, YY : function () { return leftZeroFill(this.year() % 100, 2); }, YYYY : function () { return leftZeroFill(this.year(), 4); }, YYYYY : function () { return leftZeroFill(this.year(), 5); }, YYYYYY : function () { var y = this.year(), sign = y >= 0 ? '+' : '-'; return sign + leftZeroFill(Math.abs(y), 6); }, gg : function () { return leftZeroFill(this.weekYear() % 100, 2); }, gggg : function () { return leftZeroFill(this.weekYear(), 4); }, ggggg : function () { return leftZeroFill(this.weekYear(), 5); }, GG : function () { return leftZeroFill(this.isoWeekYear() % 100, 2); }, GGGG : function () { return leftZeroFill(this.isoWeekYear(), 4); }, GGGGG : function () { return leftZeroFill(this.isoWeekYear(), 5); }, e : function () { return this.weekday(); }, E : function () { return this.isoWeekday(); }, a : function () { return this.lang().meridiem(this.hours(), this.minutes(), true); }, A : function () { return this.lang().meridiem(this.hours(), this.minutes(), false); }, H : function () { return this.hours(); }, h : function () { return this.hours() % 12 || 12; }, m : function () { return this.minutes(); }, s : function () { return this.seconds(); }, S : function () { return toInt(this.milliseconds() / 100); }, SS : function () { return leftZeroFill(toInt(this.milliseconds() / 10), 2); }, SSS : function () { return leftZeroFill(this.milliseconds(), 3); }, SSSS : function () { return leftZeroFill(this.milliseconds(), 3); }, Z : function () { var a = -this.zone(), b = "+"; if (a < 0) { a = -a; b = "-"; } return b + leftZeroFill(toInt(a / 60), 2) + ":" + leftZeroFill(toInt(a) % 60, 2); }, ZZ : function () { var a = -this.zone(), b = "+"; if (a < 0) { a = -a; b = "-"; } return b + leftZeroFill(toInt(a / 60), 2) + leftZeroFill(toInt(a) % 60, 2); }, z : function () { return this.zoneAbbr(); }, zz : function () { return this.zoneName(); }, X : function () { return this.unix(); }, Q : function () { return this.quarter(); } }, lists = ['months', 'monthsShort', 'weekdays', 'weekdaysShort', 'weekdaysMin']; // Pick the first defined of two or three arguments. dfl comes from // default. function dfl(a, b, c) { switch (arguments.length) { case 2: return a != null ? a : b; case 3: return a != null ? a : b != null ? b : c; default: throw new Error("Implement me"); } } function defaultParsingFlags() { // We need to deep clone this object, and es5 standard is not very // helpful. return { empty : false, unusedTokens : [], unusedInput : [], overflow : -2, charsLeftOver : 0, nullInput : false, invalidMonth : null, invalidFormat : false, userInvalidated : false, iso: false }; } function deprecate(msg, fn) { var firstTime = true; function printMsg() { if (moment.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) { console.warn("Deprecation warning: " + msg); } } return extend(function () { if (firstTime) { printMsg(); firstTime = false; } return fn.apply(this, arguments); }, fn); } function padToken(func, count) { return function (a) { return leftZeroFill(func.call(this, a), count); }; } function ordinalizeToken(func, period) { return function (a) { return this.lang().ordinal(func.call(this, a), period); }; } while (ordinalizeTokens.length) { i = ordinalizeTokens.pop(); formatTokenFunctions[i + 'o'] = ordinalizeToken(formatTokenFunctions[i], i); } while (paddedTokens.length) { i = paddedTokens.pop(); formatTokenFunctions[i + i] = padToken(formatTokenFunctions[i], 2); } formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3); /************************************ Constructors ************************************/ function Language() { } // Moment prototype object function Moment(config) { checkOverflow(config); extend(this, config); } // Duration Constructor function Duration(duration) { var normalizedInput = normalizeObjectUnits(duration), years = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months = normalizedInput.month || 0, weeks = normalizedInput.week || 0, days = normalizedInput.day || 0, hours = normalizedInput.hour || 0, minutes = normalizedInput.minute || 0, seconds = normalizedInput.second || 0, milliseconds = normalizedInput.millisecond || 0; // representation for dateAddRemove this._milliseconds = +milliseconds + seconds * 1e3 + // 1000 minutes * 6e4 + // 1000 * 60 hours * 36e5; // 1000 * 60 * 60 // Because of dateAddRemove treats 24 hours as different from a // day when working around DST, we need to store them separately this._days = +days + weeks * 7; // It is impossible translate months into days without knowing // which months you are are talking about, so we have to store // it separately. this._months = +months + quarters * 3 + years * 12; this._data = {}; this._bubble(); } /************************************ Helpers ************************************/ function extend(a, b) { for (var i in b) { if (b.hasOwnProperty(i)) { a[i] = b[i]; } } if (b.hasOwnProperty("toString")) { a.toString = b.toString; } if (b.hasOwnProperty("valueOf")) { a.valueOf = b.valueOf; } return a; } function cloneMoment(m) { var result = {}, i; for (i in m) { if (m.hasOwnProperty(i) && momentProperties.hasOwnProperty(i)) { result[i] = m[i]; } } return result; } function absRound(number) { if (number < 0) { return Math.ceil(number); } else { return Math.floor(number); } } // left zero fill a number // see http://jsperf.com/left-zero-filling for performance comparison function leftZeroFill(number, targetLength, forceSign) { var output = '' + Math.abs(number), sign = number >= 0; while (output.length < targetLength) { output = '0' + output; } return (sign ? (forceSign ? '+' : '') : '-') + output; } // helper function for _.addTime and _.subtractTime function addOrSubtractDurationFromMoment(mom, duration, isAdding, updateOffset) { var milliseconds = duration._milliseconds, days = duration._days, months = duration._months; updateOffset = updateOffset == null ? true : updateOffset; if (milliseconds) { mom._d.setTime(+mom._d + milliseconds * isAdding); } if (days) { rawSetter(mom, 'Date', rawGetter(mom, 'Date') + days * isAdding); } if (months) { rawMonthSetter(mom, rawGetter(mom, 'Month') + months * isAdding); } if (updateOffset) { moment.updateOffset(mom, days || months); } } // check if is an array function isArray(input) { return Object.prototype.toString.call(input) === '[object Array]'; } function isDate(input) { return Object.prototype.toString.call(input) === '[object Date]' || input instanceof Date; } // compare two arrays, return the number of differences function compareArrays(array1, array2, dontConvert) { var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i; for (i = 0; i < len; i++) { if ((dontConvert && array1[i] !== array2[i]) || (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { diffs++; } } return diffs + lengthDiff; } function normalizeUnits(units) { if (units) { var lowered = units.toLowerCase().replace(/(.)s$/, '$1'); units = unitAliases[units] || camelFunctions[lowered] || lowered; } return units; } function normalizeObjectUnits(inputObject) { var normalizedInput = {}, normalizedProp, prop; for (prop in inputObject) { if (inputObject.hasOwnProperty(prop)) { normalizedProp = normalizeUnits(prop); if (normalizedProp) { normalizedInput[normalizedProp] = inputObject[prop]; } } } return normalizedInput; } function makeList(field) { var count, setter; if (field.indexOf('week') === 0) { count = 7; setter = 'day'; } else if (field.indexOf('month') === 0) { count = 12; setter = 'month'; } else { return; } moment[field] = function (format, index) { var i, getter, method = moment.fn._lang[field], results = []; if (typeof format === 'number') { index = format; format = undefined; } getter = function (i) { var m = moment().utc().set(setter, i); return method.call(moment.fn._lang, m, format || ''); }; if (index != null) { return getter(index); } else { for (i = 0; i < count; i++) { results.push(getter(i)); } return results; } }; } function toInt(argumentForCoercion) { var coercedNumber = +argumentForCoercion, value = 0; if (coercedNumber !== 0 && isFinite(coercedNumber)) { if (coercedNumber >= 0) { value = Math.floor(coercedNumber); } else { value = Math.ceil(coercedNumber); } } return value; } function daysInMonth(year, month) { return new Date(Date.UTC(year, month + 1, 0)).getUTCDate(); } function weeksInYear(year, dow, doy) { return weekOfYear(moment([year, 11, 31 + dow - doy]), dow, doy).week; } function daysInYear(year) { return isLeapYear(year) ? 366 : 365; } function isLeapYear(year) { return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; } function checkOverflow(m) { var overflow; if (m._a && m._pf.overflow === -2) { overflow = m._a[MONTH] < 0 || m._a[MONTH] > 11 ? MONTH : m._a[DATE] < 1 || m._a[DATE] > daysInMonth(m._a[YEAR], m._a[MONTH]) ? DATE : m._a[HOUR] < 0 || m._a[HOUR] > 23 ? HOUR : m._a[MINUTE] < 0 || m._a[MINUTE] > 59 ? MINUTE : m._a[SECOND] < 0 || m._a[SECOND] > 59 ? SECOND : m._a[MILLISECOND] < 0 || m._a[MILLISECOND] > 999 ? MILLISECOND : -1; if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { overflow = DATE; } m._pf.overflow = overflow; } } function isValid(m) { if (m._isValid == null) { m._isValid = !isNaN(m._d.getTime()) && m._pf.overflow < 0 && !m._pf.empty && !m._pf.invalidMonth && !m._pf.nullInput && !m._pf.invalidFormat && !m._pf.userInvalidated; if (m._strict) { m._isValid = m._isValid && m._pf.charsLeftOver === 0 && m._pf.unusedTokens.length === 0; } } return m._isValid; } function normalizeLanguage(key) { return key ? key.toLowerCase().replace('_', '-') : key; } // Return a moment from input, that is local/utc/zone equivalent to model. function makeAs(input, model) { return model._isUTC ? moment(input).zone(model._offset || 0) : moment(input).local(); } /************************************ Languages ************************************/ extend(Language.prototype, { set : function (config) { var prop, i; for (i in config) { prop = config[i]; if (typeof prop === 'function') { this[i] = prop; } else { this['_' + i] = prop; } } }, _months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), months : function (m) { return this._months[m.month()]; }, _monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), monthsShort : function (m) { return this._monthsShort[m.month()]; }, monthsParse : function (monthName) { var i, mom, regex; if (!this._monthsParse) { this._monthsParse = []; } for (i = 0; i < 12; i++) { // make the regex if we don't have it already if (!this._monthsParse[i]) { mom = moment.utc([2000, i]); regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); } // test the regex if (this._monthsParse[i].test(monthName)) { return i; } } }, _weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), weekdays : function (m) { return this._weekdays[m.day()]; }, _weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), weekdaysShort : function (m) { return this._weekdaysShort[m.day()]; }, _weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), weekdaysMin : function (m) { return this._weekdaysMin[m.day()]; }, weekdaysParse : function (weekdayName) { var i, mom, regex; if (!this._weekdaysParse) { this._weekdaysParse = []; } for (i = 0; i < 7; i++) { // make the regex if we don't have it already if (!this._weekdaysParse[i]) { mom = moment([2000, 1]).day(i); regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); } // test the regex if (this._weekdaysParse[i].test(weekdayName)) { return i; } } }, _longDateFormat : { LT : "h:mm A", L : "MM/DD/YYYY", LL : "MMMM D YYYY", LLL : "MMMM D YYYY LT", LLLL : "dddd, MMMM D YYYY LT" }, longDateFormat : function (key) { var output = this._longDateFormat[key]; if (!output && this._longDateFormat[key.toUpperCase()]) { output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) { return val.slice(1); }); this._longDateFormat[key] = output; } return output; }, isPM : function (input) { // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays // Using charAt should be more compatible. return ((input + '').toLowerCase().charAt(0) === 'p'); }, _meridiemParse : /[ap]\.?m?\.?/i, meridiem : function (hours, minutes, isLower) { if (hours > 11) { return isLower ? 'pm' : 'PM'; } else { return isLower ? 'am' : 'AM'; } }, _calendar : { sameDay : '[Today at] LT', nextDay : '[Tomorrow at] LT', nextWeek : 'dddd [at] LT', lastDay : '[Yesterday at] LT', lastWeek : '[Last] dddd [at] LT', sameElse : 'L' }, calendar : function (key, mom) { var output = this._calendar[key]; return typeof output === 'function' ? output.apply(mom) : output; }, _relativeTime : { future : "in %s", past : "%s ago", s : "a few seconds", m : "a minute", mm : "%d minutes", h : "an hour", hh : "%d hours", d : "a day", dd : "%d days", M : "a month", MM : "%d months", y : "a year", yy : "%d years" }, relativeTime : function (number, withoutSuffix, string, isFuture) { var output = this._relativeTime[string]; return (typeof output === 'function') ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number); }, pastFuture : function (diff, output) { var format = this._relativeTime[diff > 0 ? 'future' : 'past']; return typeof format === 'function' ? format(output) : format.replace(/%s/i, output); }, ordinal : function (number) { return this._ordinal.replace("%d", number); }, _ordinal : "%d", preparse : function (string) { return string; }, postformat : function (string) { return string; }, week : function (mom) { return weekOfYear(mom, this._week.dow, this._week.doy).week; }, _week : { dow : 0, // Sunday is the first day of the week. doy : 6 // The week that contains Jan 1st is the first week of the year. }, _invalidDate: 'Invalid date', invalidDate: function () { return this._invalidDate; } }); // Loads a language definition into the `languages` cache. The function // takes a key and optionally values. If not in the browser and no values // are provided, it will load the language file module. As a convenience, // this function also returns the language values. function loadLang(key, values) { values.abbr = key; if (!languages[key]) { languages[key] = new Language(); } languages[key].set(values); return languages[key]; } // Remove a language from the `languages` cache. Mostly useful in tests. function unloadLang(key) { delete languages[key]; } // Determines which language definition to use and returns it. // // With no parameters, it will return the global language. If you // pass in a language key, such as 'en', it will return the // definition for 'en', so long as 'en' has already been loaded using // moment.lang. function getLangDefinition(key) { var i = 0, j, lang, next, split, get = function (k) { if (!languages[k] && hasModule) { try { _dereq_('./lang/' + k); } catch (e) { } } return languages[k]; }; if (!key) { return moment.fn._lang; } if (!isArray(key)) { //short-circuit everything else lang = get(key); if (lang) { return lang; } key = [key]; } //pick the language from the array //try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each //substring from most specific to least, but move to the next array item if it's a more specific variant than the current root while (i < key.length) { split = normalizeLanguage(key[i]).split('-'); j = split.length; next = normalizeLanguage(key[i + 1]); next = next ? next.split('-') : null; while (j > 0) { lang = get(split.slice(0, j).join('-')); if (lang) { return lang; } if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { //the next array item is better than a shallower substring of this one break; } j--; } i++; } return moment.fn._lang; } /************************************ Formatting ************************************/ function removeFormattingTokens(input) { if (input.match(/\[[\s\S]/)) { return input.replace(/^\[|\]$/g, ""); } return input.replace(/\\/g, ""); } function makeFormatFunction(format) { var array = format.match(formattingTokens), i, length; for (i = 0, length = array.length; i < length; i++) { if (formatTokenFunctions[array[i]]) { array[i] = formatTokenFunctions[array[i]]; } else { array[i] = removeFormattingTokens(array[i]); } } return function (mom) { var output = ""; for (i = 0; i < length; i++) { output += array[i] instanceof Function ? array[i].call(mom, format) : array[i]; } return output; }; } // format date using native date object function formatMoment(m, format) { if (!m.isValid()) { return m.lang().invalidDate(); } format = expandFormat(format, m.lang()); if (!formatFunctions[format]) { formatFunctions[format] = makeFormatFunction(format); } return formatFunctions[format](m); } function expandFormat(format, lang) { var i = 5; function replaceLongDateFormatTokens(input) { return lang.longDateFormat(input) || input; } localFormattingTokens.lastIndex = 0; while (i >= 0 && localFormattingTokens.test(format)) { format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); localFormattingTokens.lastIndex = 0; i -= 1; } return format; } /************************************ Parsing ************************************/ // get the regex to find the next token function getParseRegexForToken(token, config) { var a, strict = config._strict; switch (token) { case 'Q': return parseTokenOneDigit; case 'DDDD': return parseTokenThreeDigits; case 'YYYY': case 'GGGG': case 'gggg': return strict ? parseTokenFourDigits : parseTokenOneToFourDigits; case 'Y': case 'G': case 'g': return parseTokenSignedNumber; case 'YYYYYY': case 'YYYYY': case 'GGGGG': case 'ggggg': return strict ? parseTokenSixDigits : parseTokenOneToSixDigits; case 'S': if (strict) { return parseTokenOneDigit; } /* falls through */ case 'SS': if (strict) { return parseTokenTwoDigits; } /* falls through */ case 'SSS': if (strict) { return parseTokenThreeDigits; } /* falls through */ case 'DDD': return parseTokenOneToThreeDigits; case 'MMM': case 'MMMM': case 'dd': case 'ddd': case 'dddd': return parseTokenWord; case 'a': case 'A': return getLangDefinition(config._l)._meridiemParse; case 'X': return parseTokenTimestampMs; case 'Z': case 'ZZ': return parseTokenTimezone; case 'T': return parseTokenT; case 'SSSS': return parseTokenDigits; case 'MM': case 'DD': case 'YY': case 'GG': case 'gg': case 'HH': case 'hh': case 'mm': case 'ss': case 'ww': case 'WW': return strict ? parseTokenTwoDigits : parseTokenOneOrTwoDigits; case 'M': case 'D': case 'd': case 'H': case 'h': case 'm': case 's': case 'w': case 'W': case 'e': case 'E': return parseTokenOneOrTwoDigits; case 'Do': return parseTokenOrdinal; default : a = new RegExp(regexpEscape(unescapeFormat(token.replace('\\', '')), "i")); return a; } } function timezoneMinutesFromString(string) { string = string || ""; var possibleTzMatches = (string.match(parseTokenTimezone) || []), tzChunk = possibleTzMatches[possibleTzMatches.length - 1] || [], parts = (tzChunk + '').match(parseTimezoneChunker) || ['-', 0, 0], minutes = +(parts[1] * 60) + toInt(parts[2]); return parts[0] === '+' ? -minutes : minutes; } // function to convert string input to date function addTimeToArrayFromToken(token, input, config) { var a, datePartArray = config._a; switch (token) { // QUARTER case 'Q': if (input != null) { datePartArray[MONTH] = (toInt(input) - 1) * 3; } break; // MONTH case 'M' : // fall through to MM case 'MM' : if (input != null) { datePartArray[MONTH] = toInt(input) - 1; } break; case 'MMM' : // fall through to MMMM case 'MMMM' : a = getLangDefinition(config._l).monthsParse(input); // if we didn't find a month name, mark the date as invalid. if (a != null) { datePartArray[MONTH] = a; } else { config._pf.invalidMonth = input; } break; // DAY OF MONTH case 'D' : // fall through to DD case 'DD' : if (input != null) { datePartArray[DATE] = toInt(input); } break; case 'Do' : if (input != null) { datePartArray[DATE] = toInt(parseInt(input, 10)); } break; // DAY OF YEAR case 'DDD' : // fall through to DDDD case 'DDDD' : if (input != null) { config._dayOfYear = toInt(input); } break; // YEAR case 'YY' : datePartArray[YEAR] = moment.parseTwoDigitYear(input); break; case 'YYYY' : case 'YYYYY' : case 'YYYYYY' : datePartArray[YEAR] = toInt(input); break; // AM / PM case 'a' : // fall through to A case 'A' : config._isPm = getLangDefinition(config._l).isPM(input); break; // 24 HOUR case 'H' : // fall through to hh case 'HH' : // fall through to hh case 'h' : // fall through to hh case 'hh' : datePartArray[HOUR] = toInt(input); break; // MINUTE case 'm' : // fall through to mm case 'mm' : datePartArray[MINUTE] = toInt(input); break; // SECOND case 's' : // fall through to ss case 'ss' : datePartArray[SECOND] = toInt(input); break; // MILLISECOND case 'S' : case 'SS' : case 'SSS' : case 'SSSS' : datePartArray[MILLISECOND] = toInt(('0.' + input) * 1000); break; // UNIX TIMESTAMP WITH MS case 'X': config._d = new Date(parseFloat(input) * 1000); break; // TIMEZONE case 'Z' : // fall through to ZZ case 'ZZ' : config._useUTC = true; config._tzm = timezoneMinutesFromString(input); break; // WEEKDAY - human case 'dd': case 'ddd': case 'dddd': a = getLangDefinition(config._l).weekdaysParse(input); // if we didn't get a weekday name, mark the date as invalid if (a != null) { config._w = config._w || {}; config._w['d'] = a; } else { config._pf.invalidWeekday = input; } break; // WEEK, WEEK DAY - numeric case 'w': case 'ww': case 'W': case 'WW': case 'd': case 'e': case 'E': token = token.substr(0, 1); /* falls through */ case 'gggg': case 'GGGG': case 'GGGGG': token = token.substr(0, 2); if (input) { config._w = config._w || {}; config._w[token] = toInt(input); } break; case 'gg': case 'GG': config._w = config._w || {}; config._w[token] = moment.parseTwoDigitYear(input); } } function dayOfYearFromWeekInfo(config) { var w, weekYear, week, weekday, dow, doy, temp, lang; w = config._w; if (w.GG != null || w.W != null || w.E != null) { dow = 1; doy = 4; // TODO: We need to take the current isoWeekYear, but that depends on // how we interpret now (local, utc, fixed offset). So create // a now version of current config (take local/utc/offset flags, and // create now). weekYear = dfl(w.GG, config._a[YEAR], weekOfYear(moment(), 1, 4).year); week = dfl(w.W, 1); weekday = dfl(w.E, 1); } else { lang = getLangDefinition(config._l); dow = lang._week.dow; doy = lang._week.doy; weekYear = dfl(w.gg, config._a[YEAR], weekOfYear(moment(), dow, doy).year); week = dfl(w.w, 1); if (w.d != null) { // weekday -- low day numbers are considered next week weekday = w.d; if (weekday < dow) { ++week; } } else if (w.e != null) { // local weekday -- counting starts from begining of week weekday = w.e + dow; } else { // default to begining of week weekday = dow; } } temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow); config._a[YEAR] = temp.year; config._dayOfYear = temp.dayOfYear; } // convert an array to a date. // the array should mirror the parameters below // note: all values past the year are optional and will default to the lowest possible value. // [year, month, day , hour, minute, second, millisecond] function dateFromConfig(config) { var i, date, input = [], currentDate, yearToUse; if (config._d) { return; } currentDate = currentDateArray(config); //compute day of the year from weeks and weekdays if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { dayOfYearFromWeekInfo(config); } //if the day of the year is set, figure out what it is if (config._dayOfYear) { yearToUse = dfl(config._a[YEAR], currentDate[YEAR]); if (config._dayOfYear > daysInYear(yearToUse)) { config._pf._overflowDayOfYear = true; } date = makeUTCDate(yearToUse, 0, config._dayOfYear); config._a[MONTH] = date.getUTCMonth(); config._a[DATE] = date.getUTCDate(); } // Default to current date. // * if no year, month, day of month are given, default to today // * if day of month is given, default month and year // * if month is given, default only year // * if year is given, don't default anything for (i = 0; i < 3 && config._a[i] == null; ++i) { config._a[i] = input[i] = currentDate[i]; } // Zero out whatever was not defaulted, including time for (; i < 7; i++) { config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; } config._d = (config._useUTC ? makeUTCDate : makeDate).apply(null, input); // Apply timezone offset from input. The actual zone can be changed // with parseZone. if (config._tzm != null) { config._d.setUTCMinutes(config._d.getUTCMinutes() + config._tzm); } } function dateFromObject(config) { var normalizedInput; if (config._d) { return; } normalizedInput = normalizeObjectUnits(config._i); config._a = [ normalizedInput.year, normalizedInput.month, normalizedInput.day, normalizedInput.hour, normalizedInput.minute, normalizedInput.second, normalizedInput.millisecond ]; dateFromConfig(config); } function currentDateArray(config) { var now = new Date(); if (config._useUTC) { return [ now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate() ]; } else { return [now.getFullYear(), now.getMonth(), now.getDate()]; } } // date from string and format string function makeDateFromStringAndFormat(config) { if (config._f === moment.ISO_8601) { parseISO(config); return; } config._a = []; config._pf.empty = true; // This array is used to make a Date, either with `new Date` or `Date.UTC` var lang = getLangDefinition(config._l), string = '' + config._i, i, parsedInput, tokens, token, skipped, stringLength = string.length, totalParsedInputLength = 0; tokens = expandFormat(config._f, lang).match(formattingTokens) || []; for (i = 0; i < tokens.length; i++) { token = tokens[i]; parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; if (parsedInput) { skipped = string.substr(0, string.indexOf(parsedInput)); if (skipped.length > 0) { config._pf.unusedInput.push(skipped); } string = string.slice(string.indexOf(parsedInput) + parsedInput.length); totalParsedInputLength += parsedInput.length; } // don't parse if it's not a known token if (formatTokenFunctions[token]) { if (parsedInput) { config._pf.empty = false; } else { config._pf.unusedTokens.push(token); } addTimeToArrayFromToken(token, parsedInput, config); } else if (config._strict && !parsedInput) { config._pf.unusedTokens.push(token); } } // add remaining unparsed input length to the string config._pf.charsLeftOver = stringLength - totalParsedInputLength; if (string.length > 0) { config._pf.unusedInput.push(string); } // handle am pm if (config._isPm && config._a[HOUR] < 12) { config._a[HOUR] += 12; } // if is 12 am, change hours to 0 if (config._isPm === false && config._a[HOUR] === 12) { config._a[HOUR] = 0; } dateFromConfig(config); checkOverflow(config); } function unescapeFormat(s) { return s.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { return p1 || p2 || p3 || p4; }); } // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript function regexpEscape(s) { return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); } // date from string and array of format strings function makeDateFromStringAndArray(config) { var tempConfig, bestMoment, scoreToBeat, i, currentScore; if (config._f.length === 0) { config._pf.invalidFormat = true; config._d = new Date(NaN); return; } for (i = 0; i < config._f.length; i++) { currentScore = 0; tempConfig = extend({}, config); tempConfig._pf = defaultParsingFlags(); tempConfig._f = config._f[i]; makeDateFromStringAndFormat(tempConfig); if (!isValid(tempConfig)) { continue; } // if there is any input that was not parsed add a penalty for that format currentScore += tempConfig._pf.charsLeftOver; //or tokens currentScore += tempConfig._pf.unusedTokens.length * 10; tempConfig._pf.score = currentScore; if (scoreToBeat == null || currentScore < scoreToBeat) { scoreToBeat = currentScore; bestMoment = tempConfig; } } extend(config, bestMoment || tempConfig); } // date from iso format function parseISO(config) { var i, l, string = config._i, match = isoRegex.exec(string); if (match) { config._pf.iso = true; for (i = 0, l = isoDates.length; i < l; i++) { if (isoDates[i][1].exec(string)) { // match[5] should be "T" or undefined config._f = isoDates[i][0] + (match[6] || " "); break; } } for (i = 0, l = isoTimes.length; i < l; i++) { if (isoTimes[i][1].exec(string)) { config._f += isoTimes[i][0]; break; } } if (string.match(parseTokenTimezone)) { config._f += "Z"; } makeDateFromStringAndFormat(config); } else { config._isValid = false; } } // date from iso format or fallback function makeDateFromString(config) { parseISO(config); if (config._isValid === false) { delete config._isValid; moment.createFromInputFallback(config); } } function makeDateFromInput(config) { var input = config._i, matched = aspNetJsonRegex.exec(input); if (input === undefined) { config._d = new Date(); } else if (matched) { config._d = new Date(+matched[1]); } else if (typeof input === 'string') { makeDateFromString(config); } else if (isArray(input)) { config._a = input.slice(0); dateFromConfig(config); } else if (isDate(input)) { config._d = new Date(+input); } else if (typeof(input) === 'object') { dateFromObject(config); } else if (typeof(input) === 'number') { // from milliseconds config._d = new Date(input); } else { moment.createFromInputFallback(config); } } function makeDate(y, m, d, h, M, s, ms) { //can't just apply() to create a date: //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply var date = new Date(y, m, d, h, M, s, ms); //the date constructor doesn't accept years < 1970 if (y < 1970) { date.setFullYear(y); } return date; } function makeUTCDate(y) { var date = new Date(Date.UTC.apply(null, arguments)); if (y < 1970) { date.setUTCFullYear(y); } return date; } function parseWeekday(input, language) { if (typeof input === 'string') { if (!isNaN(input)) { input = parseInt(input, 10); } else { input = language.weekdaysParse(input); if (typeof input !== 'number') { return null; } } } return input; } /************************************ Relative Time ************************************/ // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize function substituteTimeAgo(string, number, withoutSuffix, isFuture, lang) { return lang.relativeTime(number || 1, !!withoutSuffix, string, isFuture); } function relativeTime(milliseconds, withoutSuffix, lang) { var seconds = round(Math.abs(milliseconds) / 1000), minutes = round(seconds / 60), hours = round(minutes / 60), days = round(hours / 24), years = round(days / 365), args = seconds < relativeTimeThresholds.s && ['s', seconds] || minutes === 1 && ['m'] || minutes < relativeTimeThresholds.m && ['mm', minutes] || hours === 1 && ['h'] || hours < relativeTimeThresholds.h && ['hh', hours] || days === 1 && ['d'] || days <= relativeTimeThresholds.dd && ['dd', days] || days <= relativeTimeThresholds.dm && ['M'] || days < relativeTimeThresholds.dy && ['MM', round(days / 30)] || years === 1 && ['y'] || ['yy', years]; args[2] = withoutSuffix; args[3] = milliseconds > 0; args[4] = lang; return substituteTimeAgo.apply({}, args); } /************************************ Week of Year ************************************/ // firstDayOfWeek 0 = sun, 6 = sat // the day of the week that starts the week // (usually sunday or monday) // firstDayOfWeekOfYear 0 = sun, 6 = sat // the first week is the week that contains the first // of this day of the week // (eg. ISO weeks use thursday (4)) function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) { var end = firstDayOfWeekOfYear - firstDayOfWeek, daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(), adjustedMoment; if (daysToDayOfWeek > end) { daysToDayOfWeek -= 7; } if (daysToDayOfWeek < end - 7) { daysToDayOfWeek += 7; } adjustedMoment = moment(mom).add('d', daysToDayOfWeek); return { week: Math.ceil(adjustedMoment.dayOfYear() / 7), year: adjustedMoment.year() }; } //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) { var d = makeUTCDate(year, 0, 1).getUTCDay(), daysToAdd, dayOfYear; d = d === 0 ? 7 : d; weekday = weekday != null ? weekday : firstDayOfWeek; daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0); dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1; return { year: dayOfYear > 0 ? year : year - 1, dayOfYear: dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear }; } /************************************ Top Level Functions ************************************/ function makeMoment(config) { var input = config._i, format = config._f; if (input === null || (format === undefined && input === '')) { return moment.invalid({nullInput: true}); } if (typeof input === 'string') { config._i = input = getLangDefinition().preparse(input); } if (moment.isMoment(input)) { config = cloneMoment(input); config._d = new Date(+input._d); } else if (format) { if (isArray(format)) { makeDateFromStringAndArray(config); } else { makeDateFromStringAndFormat(config); } } else { makeDateFromInput(config); } return new Moment(config); } moment = function (input, format, lang, strict) { var c; if (typeof(lang) === "boolean") { strict = lang; lang = undefined; } // object construction must be done this way. // https://github.com/moment/moment/issues/1423 c = {}; c._isAMomentObject = true; c._i = input; c._f = format; c._l = lang; c._strict = strict; c._isUTC = false; c._pf = defaultParsingFlags(); return makeMoment(c); }; moment.suppressDeprecationWarnings = false; moment.createFromInputFallback = deprecate( "moment construction falls back to js Date. This is " + "discouraged and will be removed in upcoming major " + "release. Please refer to " + "https://github.com/moment/moment/issues/1407 for more info.", function (config) { config._d = new Date(config._i); }); // Pick a moment m from moments so that m[fn](other) is true for all // other. This relies on the function fn to be transitive. // // moments should either be an array of moment objects or an array, whose // first element is an array of moment objects. function pickBy(fn, moments) { var res, i; if (moments.length === 1 && isArray(moments[0])) { moments = moments[0]; } if (!moments.length) { return moment(); } res = moments[0]; for (i = 1; i < moments.length; ++i) { if (moments[i][fn](res)) { res = moments[i]; } } return res; } moment.min = function () { var args = [].slice.call(arguments, 0); return pickBy('isBefore', args); }; moment.max = function () { var args = [].slice.call(arguments, 0); return pickBy('isAfter', args); }; // creating with utc moment.utc = function (input, format, lang, strict) { var c; if (typeof(lang) === "boolean") { strict = lang; lang = undefined; } // object construction must be done this way. // https://github.com/moment/moment/issues/1423 c = {}; c._isAMomentObject = true; c._useUTC = true; c._isUTC = true; c._l = lang; c._i = input; c._f = format; c._strict = strict; c._pf = defaultParsingFlags(); return makeMoment(c).utc(); }; // creating with unix timestamp (in seconds) moment.unix = function (input) { return moment(input * 1000); }; // duration moment.duration = function (input, key) { var duration = input, // matching against regexp is expensive, do it on demand match = null, sign, ret, parseIso; if (moment.isDuration(input)) { duration = { ms: input._milliseconds, d: input._days, M: input._months }; } else if (typeof input === 'number') { duration = {}; if (key) { duration[key] = input; } else { duration.milliseconds = input; } } else if (!!(match = aspNetTimeSpanJsonRegex.exec(input))) { sign = (match[1] === "-") ? -1 : 1; duration = { y: 0, d: toInt(match[DATE]) * sign, h: toInt(match[HOUR]) * sign, m: toInt(match[MINUTE]) * sign, s: toInt(match[SECOND]) * sign, ms: toInt(match[MILLISECOND]) * sign }; } else if (!!(match = isoDurationRegex.exec(input))) { sign = (match[1] === "-") ? -1 : 1; parseIso = function (inp) { // We'd normally use ~~inp for this, but unfortunately it also // converts floats to ints. // inp may be undefined, so careful calling replace on it. var res = inp && parseFloat(inp.replace(',', '.')); // apply sign while we're at it return (isNaN(res) ? 0 : res) * sign; }; duration = { y: parseIso(match[2]), M: parseIso(match[3]), d: parseIso(match[4]), h: parseIso(match[5]), m: parseIso(match[6]), s: parseIso(match[7]), w: parseIso(match[8]) }; } ret = new Duration(duration); if (moment.isDuration(input) && input.hasOwnProperty('_lang')) { ret._lang = input._lang; } return ret; }; // version number moment.version = VERSION; // default format moment.defaultFormat = isoFormat; // constant that refers to the ISO standard moment.ISO_8601 = function () {}; // Plugins that add properties should also add the key here (null value), // so we can properly clone ourselves. moment.momentProperties = momentProperties; // This function will be called whenever a moment is mutated. // It is intended to keep the offset in sync with the timezone. moment.updateOffset = function () {}; // This function allows you to set a threshold for relative time strings moment.relativeTimeThreshold = function(threshold, limit) { if (relativeTimeThresholds[threshold] === undefined) { return false; } relativeTimeThresholds[threshold] = limit; return true; }; // This function will load languages and then set the global language. If // no arguments are passed in, it will simply return the current global // language key. moment.lang = function (key, values) { var r; if (!key) { return moment.fn._lang._abbr; } if (values) { loadLang(normalizeLanguage(key), values); } else if (values === null) { unloadLang(key); key = 'en'; } else if (!languages[key]) { getLangDefinition(key); } r = moment.duration.fn._lang = moment.fn._lang = getLangDefinition(key); return r._abbr; }; // returns language data moment.langData = function (key) { if (key && key._lang && key._lang._abbr) { key = key._lang._abbr; } return getLangDefinition(key); }; // compare moment object moment.isMoment = function (obj) { return obj instanceof Moment || (obj != null && obj.hasOwnProperty('_isAMomentObject')); }; // for typechecking Duration objects moment.isDuration = function (obj) { return obj instanceof Duration; }; for (i = lists.length - 1; i >= 0; --i) { makeList(lists[i]); } moment.normalizeUnits = function (units) { return normalizeUnits(units); }; moment.invalid = function (flags) { var m = moment.utc(NaN); if (flags != null) { extend(m._pf, flags); } else { m._pf.userInvalidated = true; } return m; }; moment.parseZone = function () { return moment.apply(null, arguments).parseZone(); }; moment.parseTwoDigitYear = function (input) { return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); }; /************************************ Moment Prototype ************************************/ extend(moment.fn = Moment.prototype, { clone : function () { return moment(this); }, valueOf : function () { return +this._d + ((this._offset || 0) * 60000); }, unix : function () { return Math.floor(+this / 1000); }, toString : function () { return this.clone().lang('en').format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); }, toDate : function () { return this._offset ? new Date(+this) : this._d; }, toISOString : function () { var m = moment(this).utc(); if (0 < m.year() && m.year() <= 9999) { return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); } else { return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); } }, toArray : function () { var m = this; return [ m.year(), m.month(), m.date(), m.hours(), m.minutes(), m.seconds(), m.milliseconds() ]; }, isValid : function () { return isValid(this); }, isDSTShifted : function () { if (this._a) { return this.isValid() && compareArrays(this._a, (this._isUTC ? moment.utc(this._a) : moment(this._a)).toArray()) > 0; } return false; }, parsingFlags : function () { return extend({}, this._pf); }, invalidAt: function () { return this._pf.overflow; }, utc : function () { return this.zone(0); }, local : function () { this.zone(0); this._isUTC = false; return this; }, format : function (inputString) { var output = formatMoment(this, inputString || moment.defaultFormat); return this.lang().postformat(output); }, add : function (input, val) { var dur; // switch args to support add('s', 1) and add(1, 's') if (typeof input === 'string' && typeof val === 'string') { dur = moment.duration(isNaN(+val) ? +input : +val, isNaN(+val) ? val : input); } else if (typeof input === 'string') { dur = moment.duration(+val, input); } else { dur = moment.duration(input, val); } addOrSubtractDurationFromMoment(this, dur, 1); return this; }, subtract : function (input, val) { var dur; // switch args to support subtract('s', 1) and subtract(1, 's') if (typeof input === 'string' && typeof val === 'string') { dur = moment.duration(isNaN(+val) ? +input : +val, isNaN(+val) ? val : input); } else if (typeof input === 'string') { dur = moment.duration(+val, input); } else { dur = moment.duration(input, val); } addOrSubtractDurationFromMoment(this, dur, -1); return this; }, diff : function (input, units, asFloat) { var that = makeAs(input, this), zoneDiff = (this.zone() - that.zone()) * 6e4, diff, output; units = normalizeUnits(units); if (units === 'year' || units === 'month') { // average number of days in the months in the given dates diff = (this.daysInMonth() + that.daysInMonth()) * 432e5; // 24 * 60 * 60 * 1000 / 2 // difference in months output = ((this.year() - that.year()) * 12) + (this.month() - that.month()); // adjust by taking difference in days, average number of days // and dst in the given months. output += ((this - moment(this).startOf('month')) - (that - moment(that).startOf('month'))) / diff; // same as above but with zones, to negate all dst output -= ((this.zone() - moment(this).startOf('month').zone()) - (that.zone() - moment(that).startOf('month').zone())) * 6e4 / diff; if (units === 'year') { output = output / 12; } } else { diff = (this - that); output = units === 'second' ? diff / 1e3 : // 1000 units === 'minute' ? diff / 6e4 : // 1000 * 60 units === 'hour' ? diff / 36e5 : // 1000 * 60 * 60 units === 'day' ? (diff - zoneDiff) / 864e5 : // 1000 * 60 * 60 * 24, negate dst units === 'week' ? (diff - zoneDiff) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst diff; } return asFloat ? output : absRound(output); }, from : function (time, withoutSuffix) { return moment.duration(this.diff(time)).lang(this.lang()._abbr).humanize(!withoutSuffix); }, fromNow : function (withoutSuffix) { return this.from(moment(), withoutSuffix); }, calendar : function (time) { // We want to compare the start of today, vs this. // Getting start-of-today depends on whether we're zone'd or not. var now = time || moment(), sod = makeAs(now, this).startOf('day'), diff = this.diff(sod, 'days', true), format = diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse'; return this.format(this.lang().calendar(format, this)); }, isLeapYear : function () { return isLeapYear(this.year()); }, isDST : function () { return (this.zone() < this.clone().month(0).zone() || this.zone() < this.clone().month(5).zone()); }, day : function (input) { var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); if (input != null) { input = parseWeekday(input, this.lang()); return this.add({ d : input - day }); } else { return day; } }, month : makeAccessor('Month', true), startOf: function (units) { units = normalizeUnits(units); // the following switch intentionally omits break keywords // to utilize falling through the cases. switch (units) { case 'year': this.month(0); /* falls through */ case 'quarter': case 'month': this.date(1); /* falls through */ case 'week': case 'isoWeek': case 'day': this.hours(0); /* falls through */ case 'hour': this.minutes(0); /* falls through */ case 'minute': this.seconds(0); /* falls through */ case 'second': this.milliseconds(0); /* falls through */ } // weeks are a special case if (units === 'week') { this.weekday(0); } else if (units === 'isoWeek') { this.isoWeekday(1); } // quarters are also special if (units === 'quarter') { this.month(Math.floor(this.month() / 3) * 3); } return this; }, endOf: function (units) { units = normalizeUnits(units); return this.startOf(units).add((units === 'isoWeek' ? 'week' : units), 1).subtract('ms', 1); }, isAfter: function (input, units) { units = typeof units !== 'undefined' ? units : 'millisecond'; return +this.clone().startOf(units) > +moment(input).startOf(units); }, isBefore: function (input, units) { units = typeof units !== 'undefined' ? units : 'millisecond'; return +this.clone().startOf(units) < +moment(input).startOf(units); }, isSame: function (input, units) { units = units || 'ms'; return +this.clone().startOf(units) === +makeAs(input, this).startOf(units); }, min: deprecate( "moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548", function (other) { other = moment.apply(null, arguments); return other < this ? this : other; } ), max: deprecate( "moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548", function (other) { other = moment.apply(null, arguments); return other > this ? this : other; } ), // keepTime = true means only change the timezone, without affecting // the local hour. So 5:31:26 +0300 --[zone(2, true)]--> 5:31:26 +0200 // It is possible that 5:31:26 doesn't exist int zone +0200, so we // adjust the time as needed, to be valid. // // Keeping the time actually adds/subtracts (one hour) // from the actual represented time. That is why we call updateOffset // a second time. In case it wants us to change the offset again // _changeInProgress == true case, then we have to adjust, because // there is no such time in the given timezone. zone : function (input, keepTime) { var offset = this._offset || 0; if (input != null) { if (typeof input === "string") { input = timezoneMinutesFromString(input); } if (Math.abs(input) < 16) { input = input * 60; } this._offset = input; this._isUTC = true; if (offset !== input) { if (!keepTime || this._changeInProgress) { addOrSubtractDurationFromMoment(this, moment.duration(offset - input, 'm'), 1, false); } else if (!this._changeInProgress) { this._changeInProgress = true; moment.updateOffset(this, true); this._changeInProgress = null; } } } else { return this._isUTC ? offset : this._d.getTimezoneOffset(); } return this; }, zoneAbbr : function () { return this._isUTC ? "UTC" : ""; }, zoneName : function () { return this._isUTC ? "Coordinated Universal Time" : ""; }, parseZone : function () { if (this._tzm) { this.zone(this._tzm); } else if (typeof this._i === 'string') { this.zone(this._i); } return this; }, hasAlignedHourOffset : function (input) { if (!input) { input = 0; } else { input = moment(input).zone(); } return (this.zone() - input) % 60 === 0; }, daysInMonth : function () { return daysInMonth(this.year(), this.month()); }, dayOfYear : function (input) { var dayOfYear = round((moment(this).startOf('day') - moment(this).startOf('year')) / 864e5) + 1; return input == null ? dayOfYear : this.add("d", (input - dayOfYear)); }, quarter : function (input) { return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); }, weekYear : function (input) { var year = weekOfYear(this, this.lang()._week.dow, this.lang()._week.doy).year; return input == null ? year : this.add("y", (input - year)); }, isoWeekYear : function (input) { var year = weekOfYear(this, 1, 4).year; return input == null ? year : this.add("y", (input - year)); }, week : function (input) { var week = this.lang().week(this); return input == null ? week : this.add("d", (input - week) * 7); }, isoWeek : function (input) { var week = weekOfYear(this, 1, 4).week; return input == null ? week : this.add("d", (input - week) * 7); }, weekday : function (input) { var weekday = (this.day() + 7 - this.lang()._week.dow) % 7; return input == null ? weekday : this.add("d", input - weekday); }, isoWeekday : function (input) { // behaves the same as moment#day except // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) // as a setter, sunday should belong to the previous week. return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7); }, isoWeeksInYear : function () { return weeksInYear(this.year(), 1, 4); }, weeksInYear : function () { var weekInfo = this._lang._week; return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); }, get : function (units) { units = normalizeUnits(units); return this[units](); }, set : function (units, value) { units = normalizeUnits(units); if (typeof this[units] === 'function') { this[units](value); } return this; }, // If passed a language key, it will set the language for this // instance. Otherwise, it will return the language configuration // variables for this instance. lang : function (key) { if (key === undefined) { return this._lang; } else { this._lang = getLangDefinition(key); return this; } } }); function rawMonthSetter(mom, value) { var dayOfMonth; // TODO: Move this out of here! if (typeof value === 'string') { value = mom.lang().monthsParse(value); // TODO: Another silent failure? if (typeof value !== 'number') { return mom; } } dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); return mom; } function rawGetter(mom, unit) { return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit](); } function rawSetter(mom, unit, value) { if (unit === 'Month') { return rawMonthSetter(mom, value); } else { return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); } } function makeAccessor(unit, keepTime) { return function (value) { if (value != null) { rawSetter(this, unit, value); moment.updateOffset(this, keepTime); return this; } else { return rawGetter(this, unit); } }; } moment.fn.millisecond = moment.fn.milliseconds = makeAccessor('Milliseconds', false); moment.fn.second = moment.fn.seconds = makeAccessor('Seconds', false); moment.fn.minute = moment.fn.minutes = makeAccessor('Minutes', false); // Setting the hour should keep the time, because the user explicitly // specified which hour he wants. So trying to maintain the same hour (in // a new timezone) makes sense. Adding/subtracting hours does not follow // this rule. moment.fn.hour = moment.fn.hours = makeAccessor('Hours', true); // moment.fn.month is defined separately moment.fn.date = makeAccessor('Date', true); moment.fn.dates = deprecate("dates accessor is deprecated. Use date instead.", makeAccessor('Date', true)); moment.fn.year = makeAccessor('FullYear', true); moment.fn.years = deprecate("years accessor is deprecated. Use year instead.", makeAccessor('FullYear', true)); // add plural methods moment.fn.days = moment.fn.day; moment.fn.months = moment.fn.month; moment.fn.weeks = moment.fn.week; moment.fn.isoWeeks = moment.fn.isoWeek; moment.fn.quarters = moment.fn.quarter; // add aliased format methods moment.fn.toJSON = moment.fn.toISOString; /************************************ Duration Prototype ************************************/ extend(moment.duration.fn = Duration.prototype, { _bubble : function () { var milliseconds = this._milliseconds, days = this._days, months = this._months, data = this._data, seconds, minutes, hours, years; // The following code bubbles up values, see the tests for // examples of what that means. data.milliseconds = milliseconds % 1000; seconds = absRound(milliseconds / 1000); data.seconds = seconds % 60; minutes = absRound(seconds / 60); data.minutes = minutes % 60; hours = absRound(minutes / 60); data.hours = hours % 24; days += absRound(hours / 24); data.days = days % 30; months += absRound(days / 30); data.months = months % 12; years = absRound(months / 12); data.years = years; }, weeks : function () { return absRound(this.days() / 7); }, valueOf : function () { return this._milliseconds + this._days * 864e5 + (this._months % 12) * 2592e6 + toInt(this._months / 12) * 31536e6; }, humanize : function (withSuffix) { var difference = +this, output = relativeTime(difference, !withSuffix, this.lang()); if (withSuffix) { output = this.lang().pastFuture(difference, output); } return this.lang().postformat(output); }, add : function (input, val) { // supports only 2.0-style add(1, 's') or add(moment) var dur = moment.duration(input, val); this._milliseconds += dur._milliseconds; this._days += dur._days; this._months += dur._months; this._bubble(); return this; }, subtract : function (input, val) { var dur = moment.duration(input, val); this._milliseconds -= dur._milliseconds; this._days -= dur._days; this._months -= dur._months; this._bubble(); return this; }, get : function (units) { units = normalizeUnits(units); return this[units.toLowerCase() + 's'](); }, as : function (units) { units = normalizeUnits(units); return this['as' + units.charAt(0).toUpperCase() + units.slice(1) + 's'](); }, lang : moment.fn.lang, toIsoString : function () { // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js var years = Math.abs(this.years()), months = Math.abs(this.months()), days = Math.abs(this.days()), hours = Math.abs(this.hours()), minutes = Math.abs(this.minutes()), seconds = Math.abs(this.seconds() + this.milliseconds() / 1000); if (!this.asSeconds()) { // this is the same as C#'s (Noda) and python (isodate)... // but not other JS (goog.date) return 'P0D'; } return (this.asSeconds() < 0 ? '-' : '') + 'P' + (years ? years + 'Y' : '') + (months ? months + 'M' : '') + (days ? days + 'D' : '') + ((hours || minutes || seconds) ? 'T' : '') + (hours ? hours + 'H' : '') + (minutes ? minutes + 'M' : '') + (seconds ? seconds + 'S' : ''); } }); function makeDurationGetter(name) { moment.duration.fn[name] = function () { return this._data[name]; }; } function makeDurationAsGetter(name, factor) { moment.duration.fn['as' + name] = function () { return +this / factor; }; } for (i in unitMillisecondFactors) { if (unitMillisecondFactors.hasOwnProperty(i)) { makeDurationAsGetter(i, unitMillisecondFactors[i]); makeDurationGetter(i.toLowerCase()); } } makeDurationAsGetter('Weeks', 6048e5); moment.duration.fn.asMonths = function () { return (+this - this.years() * 31536e6) / 2592e6 + this.years() * 12; }; /************************************ Default Lang ************************************/ // Set default language, other languages will inherit from English. moment.lang('en', { ordinal : function (number) { var b = number % 10, output = (toInt(number % 100 / 10) === 1) ? 'th' : (b === 1) ? 'st' : (b === 2) ? 'nd' : (b === 3) ? 'rd' : 'th'; return number + output; } }); /* EMBED_LANGUAGES */ /************************************ Exposing Moment ************************************/ function makeGlobal(shouldDeprecate) { /*global ender:false */ if (typeof ender !== 'undefined') { return; } oldGlobalMoment = globalScope.moment; if (shouldDeprecate) { globalScope.moment = deprecate( "Accessing Moment through the global scope is " + "deprecated, and will be removed in an upcoming " + "release.", moment); } else { globalScope.moment = moment; } } // CommonJS module is defined if (hasModule) { module.exports = moment; } else if (typeof define === "function" && define.amd) { define("moment", function (_dereq_, exports, module) { if (module.config && module.config() && module.config().noGlobal === true) { // release the global variable globalScope.moment = oldGlobalMoment; } return moment; }); makeGlobal(true); } else { makeGlobal(); } }).call(this); }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],58:[function(_dereq_,module,exports){ var now = _dereq_('performance-now') , global = typeof window === 'undefined' ? {} : window , vendors = ['moz', 'webkit'] , suffix = 'AnimationFrame' , raf = global['request' + suffix] , caf = global['cancel' + suffix] || global['cancelRequest' + suffix] for(var i = 0; i < vendors.length && !raf; i++) { raf = global[vendors[i] + 'Request' + suffix] caf = global[vendors[i] + 'Cancel' + suffix] || global[vendors[i] + 'CancelRequest' + suffix] } // Some versions of FF have rAF but not cAF if(!raf || !caf) { var last = 0 , id = 0 , queue = [] , frameDuration = 1000 / 60 raf = function(callback) { if(queue.length === 0) { var _now = now() , next = Math.max(0, frameDuration - (_now - last)) last = next + _now setTimeout(function() { var cp = queue.slice(0) // Clear queue here to prevent // callbacks from appending listeners // to the current frame's queue queue.length = 0 for (var i = 0; i < cp.length; i++) { if (!cp[i].cancelled) { cp[i].callback(last) } } }, next) } queue.push({ handle: ++id, callback: callback, cancelled: false }) return id } caf = function(handle) { for(var i = 0; i < queue.length; i++) { if(queue[i].handle === handle) { queue[i].cancelled = true } } } } module.exports = function() { // Wrap in a new function to prevent // `cancel` potentially being assigned // to the native rAF function return raf.apply(global, arguments) } module.exports.cancel = function() { caf.apply(global, arguments) } },{"performance-now":59}],59:[function(_dereq_,module,exports){ (function (process){ // Generated by CoffeeScript 1.6.3 (function() { var getNanoSeconds, hrtime, loadTime; if ((typeof performance !== "undefined" && performance !== null) && performance.now) { module.exports = function() { return performance.now(); }; } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) { module.exports = function() { return (getNanoSeconds() - loadTime) / 1e6; }; hrtime = process.hrtime; getNanoSeconds = function() { var hr; hr = hrtime(); return hr[0] * 1e9 + hr[1]; }; loadTime = getNanoSeconds(); } else if (Date.now) { module.exports = function() { return Date.now() - loadTime; }; loadTime = Date.now(); } else { module.exports = function() { return new Date().getTime() - loadTime; }; loadTime = new Date().getTime(); } }).call(this); /* //@ sourceMappingURL=performance-now.map */ }).call(this,_dereq_("FWaASH")) },{"FWaASH":1}],60:[function(_dereq_,module,exports){ 'use strict'; var moment = _dereq_('moment'); function parse (date, format) { var value; if (typeof date === 'string') { value = moment(date, format); return value.isValid() ? value : null; } if (Object.prototype.toString.call(date) === '[object Date]') { return moment(date); } if (moment.isMoment(date)) { return date; } return null; } function defaults (options, input) { var temp; var no; var o = options || {}; if (o.autoHideOnClick === no) { o.autoHideOnClick = true; } if (o.autoHideOnBlur === no) { o.autoHideOnBlur = true; } if (o.autoClose === no) { o.autoClose = true; } if (o.appendTo === no) { o.appendTo = document.body; } if (o.appendTo === 'parent') { o.appendTo = input.parentNode; } if (o.invalidate === no) { o.invalidate = true; } if (o.date === no) { o.date = true; } if (o.time === no) { o.time = true; } if (o.date === false && o.time === false) { throw new Error('At least one of `date` or `time` must be `true`.'); } if (o.inputFormat === no) { if (o.date && o.time) { o.inputFormat = 'YYYY-MM-DD HH:mm'; } else if (o.date) { o.inputFormat = 'YYYY-MM-DD'; } else { o.inputFormat = 'HH:mm'; } } if (o.min === no) { o.min = null; } else { o.min = parse(o.min, o.inputFormat); } if (o.max === no) { o.max = null; } else { o.max = parse(o.max, o.inputFormat); } if (o.min && o.max) { if (o.max.isBefore(o.min)) { temp = o.max; o.max = o.min; o.min = temp; } if (o.max.clone().subtract('days', 1).isBefore(o.min)) { throw new Error('`max` must be at least one day after `min`'); } } if (o.timeFormat === no) { o.timeFormat = 'HH:mm'; } if (o.timeInterval === no) { o.timeInterval = 60 * 30; } // 30 minutes by default if (o.monthFormat === no) { o.monthFormat = 'MMMM YYYY'; } if (o.dayFormat === no) { o.dayFormat = 'DD'; } if (o.styles === no) { o.styles = {}; } var styl = o.styles; if (styl.back === no) { styl.back = 'rd-back'; } if (styl.container === no) { styl.container = 'rd-container'; } if (styl.date === no) { styl.date = 'rd-date'; } if (styl.dayBody === no) { styl.dayBody = 'rd-days-body'; } if (styl.dayBodyElem === no) { styl.dayBodyElem = 'rd-day-body'; } if (styl.dayPrevMonth === no) { styl.dayPrevMonth = 'rd-day-prev-month'; } if (styl.dayNextMonth === no) { styl.dayNextMonth = 'rd-day-next-month'; } if (styl.dayDisabled === no) { styl.dayDisabled = 'rd-day-disabled'; } if (styl.dayHead === no) { styl.dayHead = 'rd-days-head'; } if (styl.dayHeadElem === no) { styl.dayHeadElem = 'rd-day-head'; } if (styl.dayRow === no) { styl.dayRow = 'rd-days-row'; } if (styl.dayTable === no) { styl.dayTable = 'rd-days'; } if (styl.month === no) { styl.month = 'rd-month'; } if (styl.next === no) { styl.next = 'rd-next'; } if (styl.selectedDay === no) { styl.selectedDay = 'rd-day-selected'; } if (styl.selectedTime === no) { styl.selectedTime = 'rd-time-selected'; } if (styl.time === no) { styl.time = 'rd-time'; } if (styl.timeList === no) { styl.timeList = 'rd-time-list'; } if (styl.timeOption === no) { styl.timeOption = 'rd-time-option'; } return o; } module.exports = defaults; },{"moment":57}],61:[function(_dereq_,module,exports){ 'use strict'; function dom (options) { var o = options || {}; if (!o.type) { o.type = 'div'; } var elem = document.createElement(o.type); if (o.className) { elem.className = o.className; } if (o.text) { elem.innerText = elem.textContent = o.text; } if (o.parent) { o.parent.appendChild(elem); } return elem; } module.exports = dom; },{}],62:[function(_dereq_,module,exports){ 'use strict'; var contra = _dereq_('contra'); var moment = _dereq_('moment'); var throttle = _dereq_('lodash.throttle'); var clone = _dereq_('lodash.clonedeep'); var raf = _dereq_('raf'); var dom = _dereq_('./dom'); var defaults = _dereq_('./defaults'); var ikey = 'romeId'; var index = []; var no; function cloner (value) { if (moment.isMoment(value)) { return value.clone(); } } function text (elem, value) { if (arguments.length === 2) { elem.innerText = elem.textContent = value; } return elem.innerText || elem.textContent; } function find (thing) { if (typeof thing !== 'number' && thing && thing.dataset) { return find(thing.dataset[ikey]); } var existing = index[thing]; if (existing !== no) { return existing; } } function calendar (input, calendarOptions) { var existing = find(input); if (existing) { return existing; } var o; var api = contra.emitter({}); var ref = moment(); var container; var throttledTakeInput = throttle(takeInput, 50); var throttledPosition = throttle(position, 30); var ignoreInvalidation; var ignoreShow; // date variables var weekdays = moment.weekdaysMin(); var month; var datebody; var lastYear; var lastMonth; var lastDay; var back; var next; // time variables var time; var timelist; assign(); init(); function assign () { input.dataset[ikey] = index.push(api) - 1; } function init (initOptions) { o = defaults(initOptions || calendarOptions, input); if (!container) { container = dom({ className: o.styles.container }); } lastMonth = no; lastYear = no; lastDay = no; removeChildren(container); renderDates(); renderTime(); o.appendTo.appendChild(container); container.addEventListener('mousedown', containerMouseDown); container.addEventListener('click', containerClick); input.addEventListener('click', show); input.addEventListener('focusin', show); input.addEventListener('change', throttledTakeInput); input.addEventListener('keypress', throttledTakeInput); input.addEventListener('keydown', throttledTakeInput); input.addEventListener('input', throttledTakeInput); if (o.invalidate) { input.addEventListener('blur', invalidateInput); } if (o.autoHideOnBlur) { window.addEventListener('focusin', hideOnBlur); } if (o.autoHideOnClick) { window.addEventListener('click', hideOnClick); } window.addEventListener('resize', throttledPosition); api.emit('ready', clone(o, cloner)); hide(); throttledTakeInput(); updateCalendar(); delete api.restore; api.show = show; api.hide = hide; api.container = container; api.input = input; api.getDate = getDate; api.getDateString = getDateString; api.getMoment = getMoment; api.destroy = destroy; api.options = changeOptions; api.options.reset = resetOptions; } function destroy () { container.parentNode.removeChild(container); input.removeEventListener('focusin', show); input.removeEventListener('change', throttledTakeInput); input.removeEventListener('keypress', throttledTakeInput); input.removeEventListener('keydown', throttledTakeInput); input.removeEventListener('input', throttledTakeInput); if (o.invalidate) { input.removeEventListener('blur', invalidateInput); } if (o.autoHideOnBlur) { window.removeEventListener('focusin', hideOnBlur); } if (o.autoHideOnClick) { window.removeEventListener('click', hideOnClick); } window.removeEventListener('resize', throttledPosition); // reverse order micro-optimization delete api.options; delete api.destroy; delete api.getMoment; delete api.getDateString; delete api.getDate; delete api.input; delete api.container; delete api.hide; delete api.show; api.restore = init; api.emit('destroyed'); api.off(); } function changeOptions (options) { if (arguments.length === 0) { return clone(o, cloner); } destroy(); init(options); } function resetOptions () { changeOptions({}); } function renderDates () { if (!o.date) { return; } var datewrapper = dom({ className: o.styles.date, parent: container }); back = dom({ type: 'button', className: o.styles.back, parent: datewrapper }); next = dom({ type: 'button', className: o.styles.next, parent: datewrapper }); month = dom({ className: o.styles.month, parent: datewrapper }); var date = dom({ type: 'table', className: o.styles.dayTable, parent: datewrapper }); var datehead = dom({ type: 'thead', className: o.styles.dayHead, parent: date }); var dateheadrow = dom({ type: 'tr', className: o.styles.dayRow, parent: datehead }); datebody = dom({ type: 'tbody', className: o.styles.dayBody, parent: date }); var i; for (i = 0; i < weekdays.length; i++) { dom({ type: 'th', className: o.styles.dayHeadElem, parent: dateheadrow, text: weekdays[i] }); } back.addEventListener('click', subtractMonth); next.addEventListener('click', addMonth); datebody.addEventListener('click', pickDay); } function renderTime () { if (!o.time || !o.timeInterval) { return; } var timewrapper = dom({ className: o.styles.time, parent: container }); time = dom({ className: o.styles.selectedTime, parent: timewrapper, text: ref.format(o.timeFormat) }); time.addEventListener('click', toggleTimeList); timelist = dom({ className: o.styles.timeList, parent: timewrapper }); timelist.addEventListener('click', pickTime); var next = moment('00:00:00', 'HH:mm:ss'); var latest = next.clone().add('days', 1); while (next.isBefore(latest)) { dom({ className: o.styles.timeOption, parent: timelist, text: next.format(o.timeFormat) }); next.add('seconds', o.timeInterval); } } function displayValidTimesOnly () { var times = timelist.children; var length = times.length; var date; var time; var item; var i; for (i = 0; i < length; i++) { item = times[i]; time = moment(text(item), o.timeFormat); date = setTime(ref.clone(), time); item.style.display = isInRange(date) ? 'block' : 'none'; } } function toggleTimeList (show) { var display = typeof show === 'boolean' ? show : timelist.style.display === 'none'; if (display) { showTimeList(); } else { hideTimeList(); } } function showTimeList () { if (timelist) { timelist.style.display = 'block'; } } function hideTimeList () { if (timelist) { timelist.style.display = 'none'; } } function show () { if (ignoreShow || container.style.display === 'block') { return; } toggleTimeList(!o.date); container.style.display = 'block'; position(); } function hide () { hideTimeList(); container.style.display = 'none'; } function position () { container.style.position = 'absolute'; container.style.top = input.offsetTop + input.offsetHeight + 'px'; container.style.left = input.offsetLeft + 'px'; } function calendarEventTarget (e) { var target = e.target; if (target === input) { return true; } while (target) { if (target === container) { return true; } target = target.parentNode; } } function hideOnBlur (e) { if (calendarEventTarget(e)) { return; } hide(); } function hideOnClick (e) { if (calendarEventTarget(e)) { return; } hide(); } function takeInput () { if (input.value) { var val = moment(input.value, o.inputFormat); if (val.isValid()) { ref = inRange(val); updateCalendar(); updateTime(); displayValidTimesOnly(); } } } function subtractMonth () { ref.subtract('months', 1); update(); } function addMonth () { ref.add('months', 1); update(); } function updateCalendar () { if (!o.date) { return; } var y = ref.year(); var m = ref.month(); var d = ref.date(); if (d === lastDay && m === lastMonth && y === lastYear) { return; } text(month, ref.format(o.monthFormat)); lastDay = ref.date(); lastMonth = ref.month(); lastYear = ref.year(); removeChildren(datebody); renderDays(); } function updateTime () { if (!o.time) { return; } text(time, ref.format(o.timeFormat)); } function updateInput () { input.value = ref.format(o.inputFormat); } function update () { updateCalendar(); updateInput(); api.emit('data', getDateString()); api.emit('year', ref.year()); api.emit('month', ref.month()); } function containerClick () { ignoreShow = true; input.focus(); ignoreShow = false; } function containerMouseDown () { ignoreInvalidation = true; raf(unignore); function unignore () { ignoreInvalidation = false; } } function invalidateInput () { if (!ignoreInvalidation) { updateInput(); } } function removeChildren (elem) { while (elem.firstChild) { elem.removeChild(elem.firstChild); } } function renderDays () { var total = ref.daysInMonth(); var current = ref.date(); // 1..31 var first = ref.clone().date(1); var firstDay = first.day(); // 0..6 var lastMoment; var lastDay; var i, day, node; var tr = row(); var prevMonth = o.styles.dayBodyElem + ' ' + o.styles.dayPrevMonth; var nextMonth = o.styles.dayBodyElem + ' ' + o.styles.dayNextMonth; var disabled = ' ' + o.styles.dayDisabled; for (i = 0; i < firstDay; i++) { day = first.clone().subtract('days', firstDay - i); node = dom({ type: 'td', className: test(day, prevMonth), parent: tr, text: day.format(o.dayFormat) }); } for (i = 0; i < total; i++) { if (tr.children.length === weekdays.length) { tr = row(); } day = first.clone().add('days', i); node = dom({ type: 'td', className: test(day, o.styles.dayBodyElem), parent: tr, text: day.format(o.dayFormat) }); if (day.date() === current) { node.classList.add(o.styles.selectedDay); } } lastMoment = day.clone(); lastDay = lastMoment.day(); for (i = 1; tr.children.length < weekdays.length; i++) { day = lastMoment.clone().add('days', i); node = dom({ type: 'td', className: test(day, nextMonth), parent: tr, text: day.format(o.dayFormat) }); } back.disabled = !isInRange(first.clone().subtract('days', firstDay), true); next.disabled = !isInRange(day, true); function test (day, classes) { if (isInRange(day, true)) { return classes; } return classes + disabled; } } function isInRange (date, day) { var min = !o.min ? false : (day ? o.min.clone().startOf('day') : o.min); var max = !o.max ? false : (day ? o.max.clone().endOf('day') : o.max); if (min && date.isBefore(min)) { return false; } if (max && date.isAfter(max)) { return false; } return true; } function inRange (date) { if (o.min && date.isBefore(o.min)) { return o.min.clone(); } else if (o.max && date.isAfter(o.max)) { return o.max.clone(); } return date; } function row () { return dom({ type: 'tr', className: o.styles.dayRow, parent: datebody }); } function pickDay (e) { var target = e.target; if (target.classList.contains(o.styles.dayDisabled) || !target.classList.contains(o.styles.dayBodyElem)) { return; } var day = parseInt(text(target), 10); var query = '.' + o.styles.selectedDay; var selection = container.querySelector(query); if (selection) { selection.classList.remove(o.styles.selectedDay); } var prev = target.classList.contains(o.styles.dayPrevMonth); var next = target.classList.contains(o.styles.dayNextMonth); var action; if (prev || next) { action = prev ? 'subtract' : 'add'; ref[action]('months', 1); } else { target.classList.add(o.styles.selectedDay); } ref.date(day); // must run after setting the month setTime(ref, inRange(ref)); displayValidTimesOnly(); updateInput(); updateTime() if (o.autoClose) { hide(); } api.emit('data', getDateString()); api.emit('day', day); if (prev || next) { updateCalendar(); // must run after setting the date api.emit('month', ref.month()); } } function setTime (to, from) { to.hour(from.hour()).minute(from.minute()).second(from.second()); return to; } function pickTime (e) { var target = e.target; if (!target.classList.contains(o.styles.timeOption)) { return; } var value = moment(text(target), o.timeFormat); setTime(ref, value); updateTime(); updateInput(); if (!o.date && o.autoClose) { hide(); } else { hideTimeList(); } api.emit('data', getDateString()); api.emit('time', value); } function getDate () { return ref.toDate(); } function getDateString (format) { return ref.format(format || o.inputFormat); } function getMoment () { return ref.clone(); } return api; } calendar.find = find; module.exports = calendar; },{"./defaults":60,"./dom":61,"contra":2,"lodash.clonedeep":4,"lodash.throttle":50,"moment":57,"raf":58}]},{},[62]) //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9uaWNvL25pY28vZ2l0L3JvbWUvbm9kZV9tb2R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AgICBZRUFSID0gMCxcbiAgICAgICAgTU9OVEggPSAxLFxuICAgICAgICBEQVRFID0gMixcbiAgICAgICAgSE9VUiA9IDMsXG4gICAgICAgIE1JTlVURSA9IDQsXG4gICAgICAgIFNFQ09ORCA9IDUsXG4gICAgICAgIE1JTExJU0VDT05EID0gNixcblxuICAgICAgICAvLyBpbnRlcm5hbCBzdG9yYWdlIGZvciBsYW5ndWFnZSBjb25maWcgZmlsZXNcbiAgICAgICAgbGFuZ3VhZ2VzID0ge30sXG5cbiAgICAgICAgLy8gbW9tZW50IGludGVybmFsIHByb3BlcnRpZXNcbiAgICAgICAgbW9tZW50UHJvcGVydGllcyA9IHtcbiAgICAgICAgICAgIF9pc0FNb21lbnRPYmplY3Q6IG51bGwsXG4gICAgICAgICAgICBfaSA6IG51bGwsXG4gICAgICAgICAgICBfZiA6IG51bGwsXG4gICAgICAgICAgICBfbCA6IG51bGwsXG4gICAgICAgICAgICBfc3RyaWN0IDogbnVsbCxcbiAgICAgICAgICAgIF90em0gOiBudWxsLFxuICAgICAgICAgICAgX2lzVVRDIDogbnVsbCxcbiAgICAgICAgICAgIF9vZmZzZXQgOiBudWxsLCAgLy8gb3B0aW9uYWwuIENvbWJpbmUgd2l0aCBfaXNVVENcbiAgICAgICAgICAgIF9wZiA6IG51bGwsXG4gICAgICAgICAgICBfbGFuZyA6IG51bGwgIC8vIG9wdGlvbmFsXG4gICAgICAgIH0sXG5cbiAgICAgICAgLy8gY2hlY2sgZm9yIG5vZGVKU1xuICAgICAgICBoYXNNb2R1bGUgPSAodHlwZW9mIG1vZHVsZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbW9kdWxlLmV4cG9ydHMpLFxuXG4gICAgICAgIC8vIEFTUC5ORVQganNvbiBkYXRlIGZvcm1hdCByZWdleFxuICAgICAgICBhc3BOZXRKc29uUmVnZXggPSAvXlxcLz9EYXRlXFwoKFxcLT9cXGQrKS9pLFxuICAgICAgICBhc3BOZXRUaW1lU3Bhbkpzb25SZW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AgICAgICAgICAgICdTZWNvbmRzJyA6IDFlMyxcbiAgICAgICAgICAgICdNaW51dGVzJyA6IDZlNCxcbiAgICAgICAgICAgICdIb3VycycgOiAzNmU1LFxuICAgICAgICAgICAgJ0RheXMnIDogODY0ZTUsXG4gICAgICAgICAgICAnTW9udGhzJyA6IDI1OTJlNixcbiAgICAgICAgICAgICdZZWFycycgOiAzMTUzNmU2XG4gICAgICAgIH0sXG5cbiAgICAgICAgdW5pdEFsaWFzZXMgPSB7XG4gICAgICAgICAgICBtcyA6ICdtaWxsaXNlY29uZCcsXG4gICAgICAgICAgICBzIDogJ3NlY29uZCcsXG4gICAgICAgICAgICBtIDogJ21pbnV0ZScsXG4gICAgICAgICAgICBoIDogJ2hvdXInLFxuICAgICAgICAgICAgZCA6ICdkYXknLFxuICAgICAgICAgICAgRCA6ICdkYXRlJyxcbiAgICAgICAgICAgIHcgOiAnd2VlaycsXG4gICAgICAgICAgICBXIDogJ2lzb1dlZWsnLFxuICAgICAgICAgICAgTSA6ICdtb250aCcsXG4gICAgICAgICAgICBRIDogJ3F1YXJ0ZXInLFxuICAgICAgICAgICAgeSA6ICd5ZWFyJyxcbiAgICAgICAgICAgIERERCA6ICdkYXlPZlllYXInLFxuICAgICAgICAgICAgZSA6ICd3ZWVrZGF5JyxcbiAgICAgICAgICAgIEUgOiAnaXNvV2Vla2RheScsXG4gICAgICAgICAgICBnZzogJ3dlZWtZZWFyJyxcbiAgICAgICAgICAgIEdHOiAnaXNvV2Vla1llYXInXG4gICAgICAgIH0sXG5cbiAgICAgICAgY2FtZWxGdW5jdGlvbnMgPSB7XG4gICAgICAgICAgICBkYXlvZnllYXIgOiAnZGF5T2ZZZWFyJyxcbiAgICAgICAgICAgIGlzb3dlZWtkYXkgOiAnaXNvV2Vla2RheScsXG4gICAgICAgICAgICBpc293ZWVrIDogJ2lzb1dlZWsnLFxuICAgICAgICAgICAgd2Vla3llYXIgOiAnd2Vla1llYXInLFxuICAgICAgICAgICAgaXNvd2Vla3llYXIgOiAnaXNvV2Vla1llYXInXG4gICAgICAgIH0sXG5cbiAgICAgICAgLy8gZm9ybWF0IGZ1bmN0aW9uIHN0cmluZ3NcbiAgICAgICAgZm9ybWF0RnVuY3Rpb25zID0ge30sXG5cbiAgICAgICAgLy8gZGVmYXVsdCByZWxhdGl2ZSB0aW1lIHRocmVzaG9sZHNcbiAgICAgICAgcmVsYXRpdmVUaW1lVGhyZXNob2xkcyA9IHtcbiAgICAgICAgICBzOiA0NSwgICAvL3NlY29uZHMgdG8gbWludXRlc1xuICAgICAgICAgIG06IDQ1LCAgIC8vbWludXRlcyB0byBob3Vyc1xuICAgICAgICAgIGg6IDIyLCAgIC8vaG91cnMgdG8gZGF5c1xuICAgICAgICAgIGRkOiAyNSwgIC8vZGF5cyB0byBtb250aCAobW9udGggPT0gMSlcbiAgICAgICAgICBkbTogNDUsICAvL2RheXMgdG8gbW9udGhzIChtb250aHMgPiAxKVxuICAgICAgICAgIGR5OiAzNDUgIC8vZGF5cyB0byB5ZWFyXG4gICAgICAgIH0sXG5cbiAgICAgICAgLy8gdG9rZW5zIHRvIG9yZGluYWxpemUgYW5kIHBhZFxuICAgICAgICBvcmRpbmFsaXplVG9rZW5zID0gJ0RERCB3IFcgTSBEIGQnLnNwbGl0KCcgJyksXG4gICAgICAgIHBhZGRlZFRva2VucyA9ICdNIEQgSCBoIG0gcyB3IFcnLnNwbGl0KCcgJyksXG5cbiAgICAgICAgZm9ybWF0VG9rZW5GdW5jdGlvbnMgPSB7XG4gICAgICAgICAgICBNICAgIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLm1vbnRoKCkgKyAxO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIE1NTSAgOiBmdW5jdGlvbiAoZm9ybWF0KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMubGFuZygpLm1vbnRoc1Nob3J0KHRoaXMsIGZvcm1hdCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgTU1NTSA6IGZ1bmN0aW9uIChmb3JtYXQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5sYW5nKCkubW9udGhzKHRoaXMsIGZvcm1hdCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgRCAgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5kYXRlKCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgREREICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5kYXlPZlllYXIoKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBkICAgIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmRheSgpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGRkICAgOiBmdW5jdGlvbiAoZm9ybWF0KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMubGFuZygpLndlZWtkYXlzTWluKHRoaXMsIGZvcm1hdCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgZGRkICA6IGZ1bmN0aW9uIChmb3JtYXQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5sYW5nKCkud2Vla2RheXNTaG9ydCh0aGlzLCBmb3JtYXQpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGRkZGQgOiBmdW5jdGlvbiAoZm9ybWF0KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMubGFuZygpLndlZWtkYXlzKHRoaXMsIGZvcm1hdCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgdyAgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy53ZWVrKCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgVyAgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5pc29XZWVrKCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgWVkgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gbGVmdFplcm9GaWxsKHRoaXMueWVhcigpICUgMTAwLCAyKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBZWVlZIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBsZWZ0WmVyb0ZpbGwodGhpcy55ZWFyKCksIDQpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFlZWVlZIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBsZWZ0WmVyb0ZpbGwodGhpcy55ZWFyKCksIDUpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFlZWVlZWSA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICB2YXIgeSA9IHRoaXMueWVhcigpLCBzaWduID0geSA+PSAwID8gJysnIDogJy0nO1xuICAgICAgICAgICAgICAgIHJldHVybiBzaWduICsgbGVmdFplcm9GaWxsKE1hdGguYWJzKHkpLCA2KTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBnZyAgIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBsZWZ0WmVyb0ZpbGwodGhpcy53ZWVrWWVhcigpICUgMTAwLCAyKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBnZ2dnIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBsZWZ0WmVyb0ZpbGwodGhpcy53ZWVrWWVhcigpLCA0KTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBnZ2dnZyA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gbGVmdFplcm9GaWxsKHRoaXMud2Vla1llYXIoKSwgNSk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgR0cgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gbGVmdFplcm9GaWxsKHRoaXMuaXNvV2Vla1llYXIoKSAlIDEwMCwgMik7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgR0dHRyA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gbGVmdFplcm9GaWxsKHRoaXMuaXNvV2Vla1llYXIoKSwgNCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgR0dHR0cgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGxlZnRaZXJvRmlsbCh0aGlzLmlzb1dlZWtZZWFyKCksIDUpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGUgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMud2Vla2RheSgpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIEUgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuaXNvV2Vla2RheSgpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGEgICAgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMubGFuZygpLm1lcmlkaWVtKHRoaXMuaG91cnMoKSwgdGhpcy5taW51dGVzKCksIHRydWUpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIEEgICAgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMubGFuZygpLm1lcmlkaWVtKHRoaXMuaG91cnMoKSwgdGhpcy5taW51dGVzKCksIGZhbHNlKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBIICAgIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmhvdXJzKCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgaCAgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5ob3VycygpICUgMTIgfHwgMTI7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbSAgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5taW51dGVzKCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgcyAgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5zZWNvbmRzKCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgUyAgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdG9JbnQodGhpcy5taWxsaXNlY29uZHMoKSAvIDEwMCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgU1MgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gbGVmdFplcm9GaWxsKHRvSW50KHRoaXMubWlsbGlzZWNvbmRzKCkgLyAxMCksIDIpO1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFNTUyAgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGxlZnRaZXJvRmlsbCh0aGlzLm1pbGxpc2Vjb25kcygpLCAzKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBTU1NTIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBsZWZ0WmVyb0ZpbGwodGhpcy5taWxsaXNlY29uZHMoKSwgMyk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgWiAgICA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICB2YXIgYSA9IC10aGlzLnpvbmUoKSxcbiAgICAgICAgICAgICAgICAgICAgYiA9IFwiK1wiO1xuICAgICAgICAgICAgICAgIGlmIChhIDwgMCkge1xuICAgICAgICAgICAgICAgICAgICBhID0gLWE7XG4gICAgICAgICAgICAgICAgICAgIGIgPSBcIi1cIjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIGIgKyBsZWZ0WmVyb0ZpbGwodG9JbnQoYSAvIDYwKSwgMikgKyBcIjpcIiArIGxlZnRaZXJvRmlsbCh0b0ludChhKSAlIDYwLCAyKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBaWiAgIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHZhciBhID0gLXRoaXMuem9uZSgpLFxuICAgICAgICAgICAgICAgICAgICBiID0gXCIrXCI7XG4gICAgICAgICAgICAgICAgaWYgKGEgPCAwKSB7XG4gICAgICAgICAgICAgICAgICAgIGEgPSAtYTtcbiAgICAgICAgICAgICAgICAgICAgYiA9IFwiLVwiO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gYiArIGxlZnRaZXJvRmlsbCh0b0ludChhIC8gNjApLCAyKSArIGxlZnRaZXJvRmlsbCh0b0ludChhKSAlIDYwLCAyKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB6IDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLnpvbmVBYmJyKCk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgenogOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuem9uZU5hbWUoKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBYICAgIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLnVuaXgoKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBRIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLnF1YXJ0ZXIoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICA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AgICAgICAgICB1c2VySW52YWxpZGF0ZWQgOiBmYWxzZSxcbiAgICAgICAgICAgIGlzbzogZmFsc2VcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBmdW5jdGlvbiBkZXByZWNhdGUobXNnLCBmbikge1xuICAgICAgICB2YXIgZmlyc3RUaW1lID0gdHJ1ZTtcbiAgICAgICAgZnVuY3Rpb24gcHJpbnRNc2coKSB7XG4gICAgICAgICAgICBpZiAobW9tZW50LnN1cHByZXNzRGVwcmVjYXRpb25XYXJuaW5ncyA9PT0gZmFsc2UgJiZcbiAgICAgICAgICAgICAgICAgICAgdHlwZW9mIGNvbnNvbGUgIT09ICd1bmRlZmluZWQnICYmIGNvbnNvbGUud2Fybikge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUud2FybihcIkRlcHJlY2F0aW9uIHdhcm5pbmc6IFwiICsgbXNnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZXh0ZW5kKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIGlmIChmaXJzdFRpbWUpIHtcbiAgICAgICAgICAgICAgICBwcmludE1zZygpO1xuICAgICAgICAgICAgICAgIGZpcnN0VGltZSA9IGZhbHNlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGZuLmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7XG4gICAgICAgIH0sIGZuKTtcbiAgICB9XG5cbiAgICBmdW5jdGlvbiBwYWRUb2tlbihmdW5jLCBjb3VudCkge1xuICAgICAgICByZXR1cm4gZnVuY3Rpb24gKGEpIHtcbiAgICAgICAgICAgIHJldHVybiBsZWZ0WmVyb0ZpbGwoZnVuYy5jYWxsKHRoaXMsIGEpLCBjb3VudCk7XG4gICAgICAgIH07XG4gICAgfVxuICAgIGZ1bmN0aW9uIG9yZGluYWxpemVUb2tlbihmdW5jLCBwZXJpb2QpIHtcbiAgICAgICAgcmV0dXJuIGZ1bmN0aW9uIChhKSB7XG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XJvdW5kIERTVCwgd2UgbmVlZCB0byBzdG9yZSB0aGVtIHNlcGFyYXRlbHlcbiAgICAgICAgdGhpcy5fZGF5cyA9ICtkYXlzICtcbiAgICAgICAgICAgIHdlZWtzICogNztcbiAgICAgICAgLy8gSXQgaXMgaW1wb3NzaWJsZSB0cmFuc2xhdGUgbW9udGhzIGludG8gZGF5cyB3aXRob3V0IGtub3dpbmdcbiAgICAgICAgLy8gd2hpY2ggbW9udGhzIHlvdSBhcmUgYXJlIHRhbGtpbmcgYWJvdXQsIHNvIHdlIGhhdmUgdG8gc3RvcmVcbiAgICAgICAgLy8gaXQgc2VwYXJhdGVseS5cbiAgICAgICAgdGhpcy5fbW9udGhzID0gK21vbnRocyArXG4gICAgICAgICAgICBxdWFydGVycyAqIDMgK1xuICAgICAgICAgICAgeWVhcnMgKiAxMjtcblxuICAgICAgICB0aGlzLl9kYXRhID0ge307XG5cbiAgICAgICAgdGhpcy5fYnViYmxlKCk7XG4gICAgfVxuXG4gICAgLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxuICAgICAgICBIZWxwZXJzXG4gICAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuXG5cbiAgICBmdW5jdGlvbiBleHRlbmQoYSwgYikge1xuICAgICAgICBmb3IgKHZhciBpIGluIGIpIHtcbiAgICAgICAgICAgIGlmIChiLmhhc093blByb3BlcnR5KGkpKSB7XG4gICAgICAgICAgICAgICAgYVtpXSA9IGJbaV07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoYi5oYXNPd25Qcm9wZXJ0eShcInRvU3RyaW5nXCIpKSB7XG4gICAgICAgICAgICBhLnRvU3RyaW5nID0gYi50b1N0cmluZztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChiLmhhc093blByb3BlcnR5KFwidmFsdWVPZlwiKSkge1xuICAgICAgICAgICAgYS52YWx1ZU9mID0gYi52YWx1ZU9mO1xuICAgICAgICB9XG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gYW4gYXJyYXlcbiAgICBmdW5jdGlvbiBpc0FycmF5KGlucHV0KSB7XG4gICAgICAgIHJldHVybiBPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwoaW5wdXQpID09PSAnW29iamVjdCBBcnJheV0nO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIGlzRGF0ZShpbnB1dCkge1xuICAgICAgICByZXR1cm4gIE9iamVjdC5wcm90b3R5cGUudG9TdHJpbmcuY2FsbChpbnB1dCkgPT09ICdbb2JqZWN0IERhdGVdJyB8fFxuICAgICAgICAgICAgICAgIGlucHV0IGluc3RhbmNlb2YgRGF0ZTtcbiAgICB9XG5cbiAgICAvLyBjb21wYXJlIHR3byBhcnJheXMsIHJldHVybiB0aGUgbnVtYmVyIG9mIGRpZmZlcmVuY2VzXG4gICAgZnVuY3Rpb24gY29tcGFyZUFycmF5cyhhcnJheTEsIGFycmF5MiwgZG9udENvbnZlcnQpIHtcbiAgICAgICAgdmFyIGxlbiA9IE1hdGgubWluKGFycmF5MS5sZW5ndGgsIGFycmF5Mi5sZW5ndGgpLFxuICAgICAgICAgICAgbGVuZ3RoRGlmZiA9IE1hdGguYWJzKGFycmF5MS5sZW5ndGggLSBhcnJheTIubGVuZ3RoKSxcbiAgICAgICAgICAgIGRpZmZzID0gMCxcbiAgICAgICAgICAgIGk7XG4gICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkrKykge1xuICAgICAgICAgICAgaWYgKChkb250Q29udmVydCAmJiBhcnJheTFbaV0gIT09IGFycmF5MltpXSkgfHxcbiAgICAgICAgICAgICAgICAoIWRvbnRDb252ZXJ0ICYmIHRvSW50KGFycmF5MVtpXSkgIT09IHRvSW50KGFycmF5MltpXSkpKSB7XG4gICAgICAgICAgICAgICAgZGlmZnMrKztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZGlmZnMgKyBsZW5ndGhEaWZmO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIG5vcm1hbGl6ZVVuaXRzKHVuaXRzKSB7XG4gICAgICAgIGlmICh1bml0cykge1xuICAgICAgICAgICAgdmFyIGxvd2VyZWQgPSB1bml0cy50b0xvd2VyQ2FzZSgpLnJlcGxhY2UoLyguKXMkLywgJyQxJyk7XG4gICAgICAgICAgICB1bml0cyA9IHVuaXRBbGlhc2VzW3VuaXRzXSB8fCBjYW1lbEZ1bmN0aW9uc1tsb3dlcmVkXSB8fCBsb3dlcmVkO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB1bml0cztcbiAgICB9XG5cbiAgICBmdW5jdGlvbiBub3JtYWxpemVPYmplY3RVbml0cyhpbnB1dE9iamVjdCkge1xuICAgICAgICB2YXIgbm9ybWFsaXplZElucHV0ID0ge30sXG4gICAgICAgICAgICBub3JtYWxpemVkUHJvcCxcbiAgICAgICAgICAgIHByb3A7XG5cbiAgICAgICAgZm9yIChwcm9wIGluIGlucHV0T2JqZWN0KSB7XG4gICAgICAgICAgICBpZiAoaW5wdXRPYmplY3QuaGFzT3duUHJvcGVydHkocHJvcCkpIHtcbiAgICAgICAgICAgICAgICBub3JtYWxpemVkUHJvcCA9IG5vcm1hbGl6ZVVuaXRzKHByb3ApO1xuICAgICAgICAgICAgICAgIGlmIChub3JtYWxpemVkUHJvcCkge1xuICAgICAgICAgICAgICAgICAgICBub3JtYWxpemVkSW5wdXRbbm9ybWFsaXplZFByb3BdID0gaW5wdXRPYmplY3RbcHJvcF07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG5vcm1hbGl6ZWRJbnB1dDtcbiAgICB9XG5cbiAgICBmdW5jdGlvbiBtYWtlTGlzdChmaWVsZCkge1xuICAgICAgICB2YXIgY291bnQsIHNldHRlcjtcblxuICAgICAgICBpZiAoZmllbGQuaW5kZXhPZignd2VlaycpID09PSAwKSB7XG4gICAgICAgICAgICBjb3VudCA9IDc7XG4gICAgICAgICAgICBzZXR0ZXIgPSAnZGF5JztcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChmaWVsZC5pbmRleE9mKCdtb250aCcpID09PSAwKSB7XG4gICAgICAgICAgICBjb3VudCA9IDEyO1xuICAgICAgICAgICAgc2V0dGVyID0gJ21vbnRoJztcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIG1vbWVudFtmaWVsZF0gPSBmdW5jdGlvbiAoZm9ybWF0LCBpbmRleCkge1xuICAgICAgICAgICAgdmFyIGksIGdldHRlcixcbiAgICAgICAgICAgICAgICBtZXRob2QgPSBtb21lbnQuZm4uX2xhbmdbZmllbGRdLFxuICAgICAgICAgICAgICAgIHJlc3VsdHMgPSBbXTtcblxuICAgICAgICAgICAgaWYgKHR5cGVvZiBmb3JtYXQgPT09ICdudW1iZXInKSB7XG4gICAgICAgICAgICAgICAgaW5kZXggPSBmb3JtYXQ7XG4gICAgICAgICAgICAgICAgZm9ybWF0ID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBnZXR0ZXIgPSBmdW5jdGlvbiAoaSkge1xuICAgICAgICAgICAgICAgIHZhciBtID0gbW9tZW50KCkudXRjKCkuc2V0KHNldHRlciwgaSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG1ldGhvZC5jYWxsKG1vbWVudC5mbi5fbGFuZywgbSwgZm9ybWF0IHx8ICcnKTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIGlmIChpbmRleCAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGdldHRlcihpbmRleCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgY291bnQ7IGkrKykge1xuICAgICAgICAgICAgICAgICAgICByZXN1bHRzLnB1c2goZ2V0dGVyKGkpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdHM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gdG9JbnQoYXJndW1lbnRGb3JDb2VyY2lvbikge1xuICAgICAgICB2YXIgY29lcmNlZE51bWJlciA9ICthcmd1bWVudEZvckNvZXJjaW9uLFxuICAgICAgICAgICAgdmFsdWUgPSAwO1xuXG4gICAgICAgIGlmIChjb2VyY2VkTnVtYmVyICE9PSAwICYmIGlzRmluaXRlKGNvZXJjZWROdW1iZXIpKSB7XG4gICAgICAgICAgICBpZiAoY29lcmNlZE51bWJlciA+PSAwKSB7XG4gICAgICAgICAgICAgICAgdmFsdWUgPSBNYXRoLmZsb29yKGNvZXJjZWROdW1iZXIpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB2YWx1ZSA9IE1hdGguY2VpbChjb2VyY2VkTnVtYmVyKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICB9XG5cbiAgICBmdW5jdGlvbiBkYXlzSW5Nb250aCh5ZWFyLCBtb250aCkge1xuICAgICAgICByZXR1cm4gbmV3IERhdGUoRGF0ZS5VVEMoeWVhciwgbW9udGggKyAxLCAwKSkuZ2V0VVRDRGF0ZSgpO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIHdlZWtzSW5ZZWFyKHllYXIsIGRvdywgZG95KSB7XG4gICAgICAgIHJldHVybiB3ZWVrT2ZZZWFyKG1vbWVudChbeWVhciwgMTEsIDMxICsgZG93IC0gZG95XSksIGRvdywgZG95KS53ZWVrO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIGRheXNJblllYXIoeWVhcikge1xuICAgICAgICByZXR1cm4gaXNMZWFwWWVhcih5ZWFyKSA/IDM2NiA6IDM2NTtcbiAgICB9XG5cbiAgICBmdW5jdGlvbiBpc0xlYXBZZWFyK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ZXJmbG93O1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gaXNWYWxpZChtKSB7XG4gICAgICAgIGlmIChtLl9pc1ZhbGlkID09IG51bGwpIHtcbiAgICAgICAgICAgIG0uX2lzVmFsaWQgPSAhaXNOYU4obS5fZC5nZXRUaW1lKCkpICYmXG4gICAgICAgICAgICAgICAgbS5fcGYub3ZlcmZsb3cgPCAwICYmXG4gICAgICAgICAgICAgICAgIW0uX3BmLmVtcHR5ICYmXG4gICAgICAgICAgICAgICAgIW0uX3BmLmludmFsaWRNb250aCAmJlxuICAgICAgICAgICAgICAgICFtLl9wZi5udWxsSW5wdXQgJiZcbiAgICAgICAgICAgICAgICAhbS5fcGYuaW52YWxpZEZvcm1hdCAmJlxuICAgICAgICAgICAgICAgICFtLl9wZi51c2VySW52YWxpZGF0ZWQ7XG5cbiAgICAgICAgICAgIGlmIChtLl9zdHJpY3QpIHtcbiAgICAgICAgICAgICAgICBtLl9pc1ZhbGlkID0gbS5faXNWYWxpZCAmJlxuICAgICAgICAgICAgICAgICAgICBtLl9wZi5jaGFyc0xlZnRPdmVyID09PSAwICYmXG4gICAgICAgICAgICAgICAgICAgIG0uX3BmLnVudXNlZFRva2Vucy5sZW5ndGggPT09IDA7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG0uX2lzVmFsaWQ7XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gbm9ybWFsaXplTGFuZ3VhZ2Uoa2V5KSB7XG4gICAgICAgIHJldHVybiBrZXkgPyBrZXkudG9Mb3dlckNhc2UoKS5yZXBsYWNlKCdfJywgJy0nKSA6IGtleTtcbiAgICB9XG5cbiAgICAvLyBSZXR1cm4gYSBtb21lbnQgZnJvbSBpbnB1dCwgdGhhdCBpcyBsb2NhbC91dGMvem9uZSBlcXVpdmFsZW50IHRvIG1vZGVsLlxuICAgIGZ1bmN0aW9uIG1ha2VBcyhpbnB1dCwgbW9kZWwpIHtcbiAgICAgICAgcmV0dXJuIG1vZGVsLl9pc1VUQyA/IG1vbWVudChpbnB1dCkuem9uZShtb2RlbC5fb2Zmc2V0IHx8IDApIDpcbiAgICAgICAgICAgIG1vbWVudChpbnB1dCkubG9jYWwoKTtcbiAgICB9XG5cbiAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqXG4gICAgICAgIExhbmd1YWdlc1xuICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cblxuXG4gICAgZXh0ZW5kKExhbmd1YWdlLnByb3RvdHlwZSwge1xuXG4gICAgICAgIHNldCA6IGZ1bmN0aW9uIChjb25maWcpIHtcbiAgICAgICAgICAgIHZhciBwcm9wLCBpO1xuICAgICAgICAgICAgZm9yIChpIGluIGNvbmZpZykge1xuICAgICAgICAgICAgICAgIHByb3AgPSBjb25maWdbaV07XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBwcm9wID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXNbaV0gPSBwcm9wO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXNbJ18nICsgaV0gPSBwcm9wO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICBfbW9udGhzIDogXCJKYW51YXJ5X0ZlYnJ1YXJ5X01hcmNoX0FwcmlsX01heV9KdW5lX0p1bHlfQXVndXN0X1NlcHRlbWJlcl9PY3RvYmVyX05vdmVtYmVyX0RlY2VtYmVyXCIuc3BsaXQoXCJfXCIpLFxuICAgICAgICBtb250aHMgOiBmdW5jdGlvbiAobSkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuX21vbnRoc1ttLm1vbnRoKCldO1xuICAgICAgICB9LFxuXG4gICAgICAgIF9tb250aHNTaG9ydCA6IFwiSmFuX0ZlYl9NYXJfQXByX01heV9KdW5fSnVsX0F1Z19TZXBfT2N0X05vdl9EZWNcIi5zcGxpdChcIl9cIiksXG4gICAgICAgIG1vbnRoc1Nob3J0IDogZnVuY3Rpb24gKG0pIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLl9tb250aHNTaG9ydFttLm1vbnRoKCldO1xuICAgICAgICB9LFxuXG4gICAgICAgIG1vbnRoc1BhcnNlIDogZnVuY3Rpb24gKG1vbnRoTmFtZSkge1xuICAgICAgICAgICAgdmFyIGksIG1vbSwgcmVnZXg7XG5cbiAgICAgICAgICAgIGlmICghdGhpcy5fbW9udGhzUGFyc2UpIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9tb250aHNQYXJzZSA9IFtdO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgMTI7IGkrKykge1xuICAgICAgICAgICAgICAgIC8vIG1ha2UgdGhlIHJlZ2V4IGlmIHdlIGRvbid0IGhhdmUgaXQgYWxyZWFkeVxuICAgICAgICAgICAgICAgIGlmICghdGhpcy5fbW9udGhzUGFyc2VbaV0pIHtcbiAgICAgICAgICAgICAgICAgICAgbW9tID0gbW9tZW50LnV0YyhbMjAwMCwgaV0pO1xuICAgICAgICAgICAgICAgICAgICByZWdleCA9ICdeJyArIHRoaXMubW9udGhzKG1vbSwgJycpICsgJ3xeJyArIHRoaXMubW9udGhzU2hvcnQobW9tLCAnJyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX21vbnRoc1BhcnNlW2ldID0gbmV3IFJlZ0V4cChyZWdleC5yZXBsYWNlKCcuJywgJycpLCAnaScpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyB0ZXN0IHRoZSByZWdleFxuICAgICAgICAgICAgICAgIGlmICh0aGlzLl9tb250aHNQYXJzZVtpXS50ZXN0KG1vbnRoTmFtZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAg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YgKCF0aGlzLl93ZWVrZGF5c1BhcnNlW2ldKSB7XG4gICAgICAgICAgICAgICAgICAgIG1vbSA9IG1vbWVudChbMjAwMCwgMV0pLmRheShpKTtcbiAgICAgICAgICAgICAgICAgICAgcmVnZXggPSAnXicgKyB0aGlzLndlZWtkYXlzKG1vbSwgJycpICsgJ3xeJyArIHRoaXMud2Vla2RheXNTaG9ydChtb20sICcnKSArICd8XicgKyB0aGlzLndlZWtkYXlzTWluKG1vbSwgJycpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLl93ZWVrZGF5c1BhcnNlW2ldID0gbmV3IFJlZ0V4cChyZWdleC5yZXBsYWNlKCcuJywgJycpLCAnaScpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAvLyB0ZXN0IHRoZSByZWdleFxuICAgICAgICAgICAgICAgIGlmICh0aGlzLl93ZWVrZGF5c1BhcnNlW2ldLnRlc3Qod2Vla2RheU5hbWUpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICBfbG9uZ0RhdGVGb3JtYXQgOiB7XG4gICAgICAgICAgICBMVCA6IFwiaDptbSBBXCIsXG4gICAgICAgICAgICBMIDogXCJNTS9ERC9ZWVlZXCIsXG4gICAgICAgICAgICBMTCA6IFwiTU1NTSBEIFlZWVlcIixcbiAgICAgICAgICAgIExMTCA6IFwiTU1NTSBEIFlZWVkgTFRcIixcbiAgICAgICAgICAgIExMTEwgOiBcImRkZGQsIE1NTU0gRCBZWVlZIExUXCJcbiAgICAgICAgfSxcbiAgICAgICAgbG9uZ0RhdGVGb3JtYXQgOiBmdW5jdGlvbiAoa2V5KSB7XG4gICAgICAgICAgICB2YXIgb3V0cHV0ID0gdGhpcy5fbG9uZ0RhdGVGb3JtYXRba2V5XTtcbiAgICAgICAgICAgIGlmICghb3V0cHV0ICYmIHRoaXMuX2xvbmdEYX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gICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICBfY2FsZW5kYXIgOiB7XG4gICAgICAgICAgICBzYW1lRGF5IDogJ1tUb2RheSBhdF0gTFQnLFxuICAgICAgICAgICAgbmV4dERheSA6ICdbVG9tb3Jyb3cgYXRdIExUJyxcbiAgICAgICAgICAgIG5leHRXZWVrIDogJ2RkZGQgW2F0XSBMVCcsXG4gICAgICAgICAgICBsYXN0RGF5IDogJ1tZZXN0ZXJkYXkgYXRdIExUJyxcbiAgICAgICAgICAgIGxhc3RXZWVrIDogJ1tMYXN0XSBkZGRkIFthdF0gTFQnLFxuICAgICAgICAgICAgc2FtZUVsc2UgOiAnTCdcbiAgICAgICAgfSxcbiAgICAgICAgY2FsZW5kYXIgOiBmdW5jdGlvbiAoa2V5LCBtb20pIHtcbiAgICAgICAgICAgIHZhciBvdXRwdXQgPSB0aGlzLl9jYWxlbmRhcltrZXldO1xuICAgICAgICAgICAgcmV0dXJuIHR5cGVvZiBvdXRwdXQgPT09ICdmdW5jdGlvbicgPyBvdXRwdXQuYXBwbHkobW9tKSA6IG91dHB1dDtcbiAgICAgICAgfSxcblxuICAgICAgICBfcmVsYXRpdmVUaW1lIDoge1xuICAgICAgICAgICAgZnV0dXJlIDogXCJpbiAlc1wiLFxuICAgICAgICAgICAgcGFzdCA6IFwiJXMgYWdvXCIsXG4gICAgICAgICAgICBzIDogXCJhIGZldyBzZWNvbmRzXCIsXG4gICAgICAgICAgICBtIDogXCJhIG1pbnV0ZVwiLFxuICAgICAgICAgICAgbW0gOiBcIiVkIG1pbnV0ZXNcIixcbiAgICAgICAgICAgIGggOiBcImFuIGhvdXJcIixcbiAgICAgICAgICAgIGhoIDogXCIlZCBob3Vyc1wiLFxuICAgICAgICAgICAgZCA6IFwiYSBkYXlcIixcbiAgICAgICAgICAgIGRkIDogXCIlZCBkYXlzXCIsXG4gICAgICAgICAgICBNIDogXCJhIG1vbnRoXCIsXG4gICAgICAgICAgICBNTSA6IFwiJWQgbW9udGh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mdW5jdGlvbiAoaykge1xuICAgICAgICAgICAgICAgIGlmICghbGFuZ3VhZ2VzW2tdICYmIGhhc01vZHVsZSkge1xuICAgICAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVxdWlyZSgnLi9sYW5nLycgKyBrKTtcbiAgICAgICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkgeyB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHJldHVybiBsYW5ndWFnZXNba107XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgIGlmICgha2V5KSB7XG4gICAgICAgICAgICByZXR1cm4gbW9tZW50LmZuLl9sYW5nO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCFpc0FycmF5KGtleSkpIHtcbiAgICAgICAgICAgIC8vc2hvcnQtY2lyY3VpdCBldmVyeXRoaW5nIGVsc2VcbiAgICAgICAgICAgIGxhbmcgPSBnZXQoa2V5KTtcbiAgICAgICAgICAgIGlmIChsYW5nKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGxhbmc7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBrZXkgPSBba2V5XTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vcGljayB0aGUgbGFuZ3VhZ2UgZnJvbSB0aGUgYXJyYXlcbiAgICAgICAgLy90cnkgWydlbi1hdScsICdlbi1nYiddIGFzICdlbi1hdScsICdlbi1nYicsICdlbicsIGFzIGluIG1vdmUgdGhyb3VnaCB0aGUgbGlzdCB0cnlpbmcgZWFjaFxuICAgICAgICAvL3N1YnN0cmluZyBmcm9tIG1vc3Qgc3BlY2lmaWMgdG8gbGVhc3QsIGJ1dCBtb3ZlIHRvIHRoZSBuZXh0IGFycmF5IGl0ZW0gaWYgaXQncyBhIG1vcmUgc3BlY2lmaWMgdmFyaWFudCB0aGFuIHRoZSBjdXJyZW50IHJvb3RcbiAgICAgICAgd2hpbGUgKGkgPCBrZXkubGVuZ3RoKSB7XG4gICAgICAgICAgICBzcGxpdCA9IG5vcm1hbGl6ZUxhbmd1YWdlKGtleVtpXSkuc3BsaXQoJy0nKTtcbiAgICAgICAgICAgIGogPSBzcGxpdC5sZW5ndGg7XG4gICAgICAgICAgICBuZXh0ID0gbm9ybWFsaXplTGFuZ3VhZ2Uoa2V5W2kgKyAxXSk7XG4gICAgICAgICAgICBuZXh0ID0gbmV4dCA/IG5leHQuc3BsaXQoJy0nKSA6IG51bGw7XG4gICAgICAgICAgICB3aGlsZSAoaiA+IDApIHtcbiAgICAgICAgICAgICAgICBsYW5nID0gZ2V0KHNwbGl0LnNsaWNlKDAsIGopLmpvaW4oJy0nKSk7XG4gICAgICAgICAgICAgICAgaWYgKGxhbmcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGxhbmc7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChuZXh0ICYmIG5leHQubGVuZ3RoID49IGogJiYgY29tcGFyZUFycmF5cyhzcGxpdCwgbmV4dCwgdHJ1ZSkgPj0gaiAtIDEpIHtcbiAgICAgICAgICAgICAgICAgICAgLy90aGUgbmV4dCBhcnJheSBpdGVtIGlzIGJldHRlciB0aGFuIGEgc2hhbGxvd2VyIHN1YnN0cmluZyBvZiB0aGlzIG9uZVxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgai0tO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaSsrO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBtb21lbnQuZm4uX2xhbmc7XG4gICAgfVxuXG4gICAgLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxuICAgICAgICBGb3JtYXR0aW5nXG4gICAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuXG5cbiAgICBmdW5jdGlvbiByZW1vdmVGb3JtYXR0aW5nVG9rZW5zKGlucHV0KSB7XG4gICAgICAgIGlmIChp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gICAgICAgICAgICBpIC09IDE7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gZm9ybWF0O1xuICAgIH1cblxuXG4gICAgLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxuICAgICAgICBQYXJzaW5nXG4gICAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuXG5cbiAgICAvLyBnZXQgdGhlIHJlZ2V4IHRvIGZpbmQgdGhlIG5leHQgdG9rZW5cbiAgICBmdW5jdGlvbiBnZXRQYXJzZVJlZ2V4Rm9yVG9rZW4odG9rZW4sIGNvbmZpZykge1xuICAgICAgICB2YXIgYSwgc3RyaWN0ID0gY29uZmlnLl9zdHJpY3Q7XG4gICAgICAgIHN3aXRjaCAodG9rZW4pIHtcbiAgICAgICAgY2FzZSAnUSc6XG4gICAgICAgICAgICByZXR1cm4gcGFyc2VUb2tlbk9uZURpZ2l0O1xuICAgICAgICBjYXNlICdEREREJzpcbiAgICAgICAgICAgIHJldHVybiBwYXJzZVRva2VuVGhyZWVEaWdpdHM7XG4gICAgICAgIGNhc2UgJ1lZWVknOlxuICAgICAgICBjYXNlICdHR0dHJzpcbiAgICAgICAgY2FzZSAnZ2dnZyc6XG4gICAgICAgICAgICByZXR1cm4gc3RyaWN0ID8gcGFyc2VUb2tlbkZvdXJEaWdpdHMgOiBwYXJzZVRva2VuT25lVG9Gb3VyRGlnaXRzO1xuICAgICAgICBjYXNlICdZJzpcbiAgICAgICAgY2FzZSAnRyc6XG4gICAgICAgIGNhc2UgJ2cnOlxuICAgICAgICAgICAgcmV0dXJuIHBhcnNlVG9rZW5TaWduZWROdW1iZXI7XG4gICAgICAgIGNhc2UgJ1lZWVlZWSc6XG4gICAgICAgIGNhc2UgJ1lZWVlZJzpcbiAgICAgICAgY2FzZSAnR0dHR0cnOlxuICAgICAgICBjYXNlICdnZ2dnZyc6XG4gICAgICAgICAgICByZXR1cm4gc3RyaWN0ID8gcGFyc2VUb2tlblNpeERpZ2l0cyA6IHBhcnNlVG9rZW5PbmVUb1NpeERpZ2l0cztcbiAgICAgICAgY2FzZSAnUyc6XG4gICAgICAgICAgICBpZiAoc3RyaWN0KSB7IHJldHVybiBwYXJzZVRva2VuT25lRGlnaXQ7IH1cbiAgICAgICAgICAgIC8qIGZhbGxzIHRocm91Z2ggKi9cbiAgICAgICAgY2FzZSAnU1MnOlxuICAgICAgICAgICAgaWYgKHN0cmljdCkgeyByZXR1cm4gcGFyc2VUb2tlblR3b0RpZ2l0czsgfVxuICAgICAgICAgICAgLyogZmFsbHMgdGhyb3VnaCAqL1xuICAgICAgICBjYXNlICdTU1MnOlxuICAgICAgICAgICAgaWYgKHN0cmljdCkgeyByZXR1cm4gcGFyc2VUb2tlblRocmVlRGlnaXRzOyB9XG4gICAgICAgICAgICAvKiBmYWxscyB0aHJvdWdoICovXG4gICAgICAgIGNhc2UgJ0RERCc6XG4gICAgICAgICAgICByZXR1cm4gcGFyc2VUb2tlbk9uZVRvVGhyZWVEaWdpdHM7XG4gICAgICAgIGNhc2UgJ01NTSc6XG4gICAgICAgIGNhc2UgJ01NTU0nOlxuICAgICAgICBjYXNlICdkZCc6XG4gICAgICAgIGNhc2UgJ2RkZCc6XG4gICAgICAgIGNhc2UgJ2RkZGQnOlxuICAgICAgICAgICAgcmV0dXJuIHBhcnNlVG9rZW5Xb3JkO1xuICAgICAgICBjYXNlICdhJzpcbiAgICAgICAgY2FzZSAnQSc6XG4gICAgICAgICAgICByZXR1cm4gZ2V0TGFuZ0RlZmluaXRpb24oY29uZmlnLl9sKS5fbWVyaWRpZW1QYXJzZTtcbiAgICAgICAgY2FzZSAnWCc6XG4gICAgICAgICAgICByZXR1cm4gcGFyc2VUb2tlblRpbWVzdGFtcE1zO1xuICAgICAgICBjYXNlICdaJzpcbiAgICAgICAgY2FzZSAnWlonOlxuICAgICAgICAgICAgcmV0dXJuIHBhcnNlVG9rZW5UaW1lem9uZTtcbiAgICAgICAgY2FzZSAnVCc6XG4gICAgICAgICAgICByZXR1cm4gcGFyc2VUb2tlblQ7XG4gICAgICAgIGNhc2UgJ1NTU1MnOlxuICAgICAgICAgICAgcmV0dXJuIHBhcnNlVG9rZW5EaWdpdHM7XG4gICAgICAgIGNhc2UgJ01NJzpcbiAgICAgICAgY2FzZSAnREQnOlxuICAgICAgICBjYXNlICdZWSc6XG4gICAgICAgIGNhc2UgJ0dHJzpcbiAgICAgICAgY2FzZSAnZ2cnOlxuICAgICAgICBjYXNlICdISCc6XG4gICAgICAgIGNhc2UgJ2hoJzpcbiAgICAgICAgY2FzZSAnbW0nOlxuICAgICAgICBjYXNlICdzcyc6XG4gICAgICAgIGNhc2UgJ3d3JzpcbiAgICAgICAgY2FzZSAnV1cnOlxuICAgICAgICAgICAgcmV0dXJuIHN0cmljdCA/IHBhcnNlVG9rZW5Ud29EaWdpdHMgOiBwYXJzZVRva2VuT25lT3JUd29EaWdpdHM7XG4gICAgICAgIGNhc2UgJ00nOlxuICAgICAgICBjYXNlICdEJzpcbiAgICAgICAgY2FzZSAnZCc6XG4gICAgICAgIGNhc2UgJ0gnOlxuICAgICAgICBjYXNlICdoJzpcbiAgICAgICAgY2FzZSAnbSc6XG4gICAgICAgIGNhc2UgJ3MnOlxuICAgICAgICBjYXNlICd3JzpcbiAgICAgICAgY2FzZSAnVyc6XG4gICAgICAgIGNhc2UgJ2UnOlxuICAgICAgICBjYXNlICdFJzpcbiAgICAgICAgICAgIHJldHVybiBwYXJzZVRva2VuT25lT3JUd29EaWdpdHM7XG4gICAgICAgIGNhc2UgJ0RvJzpcbiAgICAgICAgICAgIHJldHVybiBwYXJzZVRva2VuT3JkaW5hbDtcbiAgICAgICAgZGVmYXVsdCA6XG4gICAgICAgICAgICBhID0gbmV3IFJlZ0V4cChyZWdleHBFc2NhcGUodW5lc2NhcGVGb3JtYXQodG9rZW4ucmVwbGFjZSgnXFxcXCcsICcnKSksIFwiaVwiKSk7XG4gICAgICAgICAgICByZXR1cm4gYTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGZ1bmN0aW9uIHRpbWV6b25lTWludXRlc0Zyb21TdHJpbmcoc3RyaW5nKSB7XG4gICAgICAgIHN0cmluZyA9IHN0cmluZyB8fCBcIlwiO1xuICAgICAgICB2YXIgcG9zc2libGVUek1hdGNoZXMgPSAoc3RyaW5nLm1hdGNoKHBhcnNlVG9rZW5UaW1lem9uZSkgfHwgW10pLFxuICAgICAgICAgICAgdHpDaHVuayA9IHBvc3NpYmxlVHpNYXRjaGVzW3Bvc3NpYmxlVHpNYXRjaGVzLmxlbmd0aCAtIDFdIHx8IFtdLFxuICAgICAgICAgICAgcGFydHMgPSAodHpDaHVuayArICcnKS5tYXRjaChwYXJzZVRpbWV6b25lQ2h1bmtlcikgfHwgWyctJywgMCwgMF0sXG4gICAgICAgICAgICBtaW51dGVzID0gKyhwYXJ0c1sxXSAqIDYwKSArIHRvSW50KHBhcnRzWzJdKTtcblxuICAgICAgICByZXR1cm4gcGFydHNbMF0gPT09ICcrJyA/IC1taW51dGVzIDogbWludXRlcztcbiAgICB9XG5cbiAgICAvLyBmdW5jdGlvbiB0byBjb252ZXJ0IHN0cmluZyBpbnB1dCB0byBkYXRlXG4gICAgZnVuY3Rpb24gYWRkVGltZVRvQXJyYXlGcm9tVG9rZW4odG9rZW4sIGlucHV0LCBjb25maWcpIHtcbiAgICAgICAgdmFyIGEsIGRhdGVQYXJ0QXJyYXkgPSBjb25maWcuX2E7XG5cbiAgICAgICAgc3dpdGNoICh0b2tlbikge1xuICAgICAgICAvLyBRVUFSVEVSXG4gICAgICAgIGNhc2UgJ1EnOlxuICAgICAgICAgICAgaWYgKGlucHV0ICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBkYXRlUGFydEFycmF5W01PTlRIXSA9ICh0b0ludChpbnB1dCkgLSAxKSAqIDM7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gTU9OVEhcbiAgICAgICAgY2FzZSAnTScgOiAvLyBmYWxsIHRocm91Z2ggdG8gTU1cbiAgICAgICAgY2FzZSAnTU0nIDpcbiAgICAgICAgICAgIGlmIChpbnB1dCAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgZGF0ZVBhcnRBcnJheVtNT05USF0gPSB0b0ludChpbnB1dCkgLSAxO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgJ01NTScgOiAvLyBmYWxsIHRocm91Z2ggdG8gTU1NTVxuICAgICAgICBjYXNlICdNTU1NJyA6XG4gICAgICAgICAgICBhID0gZ2V0TGFuZ0RlZmluaXRpb24oY29uZmlnLl9sKS5tb250aHNQYXJzZShpbnB1dCk7XG4gICAgICAgICAgICAvLyBpZiB3ZSBkaWRuJ3QgZmluZCBhIG1vbnRoIG5hbWUsIG1hcmsgdGhlIGRhdGUgYXMgaW52YWxpZC5cbiAgICAgICAgICAgIGlmIChhICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBkYXRlUGFydEFycmF5W01PTlRIXSA9IGE7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGNvbmZpZy5fcGYuaW52YWxpZE1vbnRoID0gaW5wdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gREFZIE9GIE1PTlRIXG4gICAgICAgIGNhc2UgJ0QnIDogLy8gZmFsbCB0aHJvdWdoIHRvIEREXG4gICAgICAgIGNhc2UgJ0REJyA6XG4gICAgICAgICAgICBpZiAoaW5wdXQgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIGRhdGVQYXJ0QXJyYXlbREFURV0gPSB0b0ludChpbnB1dCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnRG8nIDpcbiAgICAgICAgICAgIGlmIChpbnB1dCAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgZGF0ZVBhcnRBcnJheVtEQVRFXSA9IHRvSW50KHBhcnNlSW50KGlucHV0LCAxMCkpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIC8vIERBWSBPRiBZRUFSXG4gICAgICAgIGNhc2UgJ0RERCcgOiAvLyBmYWxsIHRocm91Z2ggdG8gRERERFxuICAgICAgICBjYXNlICdEREREJyA6XG4gICAgICAgICAgICBpZiAoaW5wdXQgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIGNvbmZpZy5fZGF5T2ZZZWFyID0gdG9JbnQoaW5wdXQpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gWUVBUlxuICAgICAgICBjYXNlICdZWScgOlxuICAgICAgICAgICAgZGF0ZVBhcnRBcnJheVtZRUFSXSA9IG1vbWVudC5wYXJzZVR3b0RpZ2l0WWVhcihpbnB1dCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAnWVlZWScgOlxuICAgICAgICBjYXNlICdZWVlZWScgOlxuICAgICAgICBjYXNlICdZWVlZWVknIDpcbiAgICAgICAgICAgIGRhdGVQYXJ0QXJyYXlbWUVBUl0gPSB0b0ludChpbnB1dCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gQU0gLyBQTVxuICAgICAgICBjYXNlICdhJyA6IC8vIGZhbGwgdGhyb3VnaCB0byBBXG4gICAgICAgIGNhc2UgJ0EnIDpcbiAgICAgICAgICAgIGNvbmZpZy5faXNQbSA9IGdldExhbmdEZWZpbml0aW9uKGNvbmZpZy5fbCkuaXNQTShpbnB1dCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gMjQgSE9VUlxuICAgICAgICBjYXNlICdIJyA6IC8vIGZhbGwgdGhyb3VnaCB0byBoaFxuICAgICAgICBjYXNlICdISCcgOiAvLyBmYWxsIHRocm91Z2ggdG8gaGhcbiAgICAgICAgY2FzZSAnaCcgOiAvLyBmYWxsIHRocm91Z2ggdG8gaGhcbiAgICAgICAgY2FzZSAnaGgnIDpcbiAgICAgICAgICAgIGRhdGVQYXJ0QXJyYXlbSE9VUl0gPSB0b0ludChpbnB1dCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gTUlOVVRFXG4gICAgICAgIGNhc2UgJ20nIDogLy8gZmFsbCB0aHJvdWdoIHRvIG1tXG4gICAgICAgIGNhc2UgJ21tJyA6XG4gICAgICAgICAgICBkYXRlUGFydEFycmF5W01JTlVURV0gPSB0b0ludChpbnB1dCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gU0VDT05EXG4gICAgICAgIGNhc2UgJ3MnIDogLy8gZmFsbCB0aHJvdWdoIHRvIHNzXG4gICAgICAgIGNhc2UgJ3NzJyA6XG4gICAgICAgICAgICBkYXRlUGFydEFycmF5W1NFQ09ORF0gPSB0b0ludChpbnB1dCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gTUlMTElTRUNPTkRcbiAgICAgICAgY2FzZSAnUycgOlxuICAgICAgICBjYXNlICdTUycgOlxuICAgICAgICBjYXNlICdTU1MnIDpcbiAgICAgICAgY2FzZSAnU1NTUycgOlxuICAgICAgICAgICAgZGF0ZVBhcnRBcnJheVtNSUxMSVNFQ09ORF0gPSB0b0ludCgoJzAuJyArIGlucHV0KSAqIDEwMDApO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIC8vIFVOSVggVElNRVNUQU1QIFdJVEggTVNcbiAgICAgICAgY2FzZSAnWCc6XG4gICAgICAgICAgICBjb25maWcuX2QgPSBuZXcgRGF0ZShwYXJzZUZsb2F0KGlucHV0KSAqIDEwMDApO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIC8vIFRJTUVaT05FXG4gICAgICAgIGNhc2UgJ1onIDogLy8gZmFsbCB0aHJvdWdoIHRvIFpaXG4gICAgICAgIGNhc2UgJ1paJyA6XG4gICAgICAgICAgICBjb25maWcuX3VzZVVUQyA9IHRydWU7XG4gICAgICAgICAgICBjb25maWcuX3R6bSA9IHRpbWV6b25lTWludXRlc0Zyb21TdHJpbmcoaW5wdXQpO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIC8vIFdFRUtEQVkgLSBodW1hblxuICAgICAgICBjYXNlICdkZCc6XG4gICAgICAgIGNhc2UgJ2RkZCc6XG4gICAgICAgIGNhc2UgJ2RkZGQnOlxuICAgICAgICAgICAgYSA9IGdldExhbmdEZWZpbml0aW9uKGNvbmZpZy5fbCkud2Vla2RheXNQYXJzZShpbnB1dCk7XG4gICAgICAgICAgICAvLyBpZiB3ZSBkaWRuJ3QgZ2V0IGEgd2Vla2RheSBuYW1lLCBtYXJrIHRoZSBkYXRlIGFzIGludmFsaWRcbiAgICAgICAgICAgIGlmIChhICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBjb25maWcuX3cgPSBjb25maWcuX3cgfHwge307XG4gICAgICAgICAgICAgICAgY29uZmlnLl93WydkJ10gPSBhO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBjb25maWcuX3BmLmludmFsaWRXZWVrZGF5ID0gaW5wdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gV0VFSywgV0VFSyBEQVkgLSBudW1lcmljXG4gICAgICAgIGNhc2UgJ3cnOlxuICAgICAgICBjYXNlICd3dyc6XG4gICAgICAgIGNhc2UgJ1cnOlxuICAgICAgICBjYXNlICdXVyc6XG4gICAgICAgIGNhc2UgJ2QnOlxuICAgICAgICBjYXNlICdlJzpcbiAgICAgICAgY2FzZSAnRSc6XG4gICAgICAgICAgICB0b2tlbiA9IHRva2VuLnN1YnN0cigwLCAxKTtcbiAgICAgICAgICAgIC8qIGZhbGxzIHRocm91Z2ggKi9cbiAgICAgICAgY2FzZSAnZ2dnZyc6XG4gICAgICAgIGNhc2UgJ0dHR0cnOlxuICAgICAgICBjYXNlICdHR0dHRyc6XG4gICAgICAgICAgICB0b2tlbiA9IHRva2Vu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ub3cpLlxuICAgICAgICAgICAgd2Vla1llYXIgPSBkZmwody5HRywgY29uZmlnLl9hW1lFQVJdLCB3ZWVrT2ZZZWFyKG1vbWVudCgpLCAxLCA0KS55ZWFyKTtcbiAgICAgICAgICAgIHdlZWsgPSBkZmwody5XLCAxKTtcbiAgICAgICAgICAgIHdlZWtkYXkgPSBkZmwody5FLCAxKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGxhbmcgPSBnZXRMYW5nRGVmaW5pdGlvbihjb25maWcuX2wpO1xuICAgICAgICAgICAgZG93ID0gbGFuZy5fd2Vlay5kb3c7XG4gICAgICAgICAgICBkb3kgPSBsYW5nLl93ZWVrLmRveTtcblxuICAgICAgICAgICAgd2Vla1llYXIgPSBkZmwody5nZywgY29uZmlnLl9hW1lFQVJdLCB3ZWVrT2ZZZWFyKG1vbWVudCgpLCBkb3csIGRveSkueWVhcik7XG4gICAgICAgICAgICB3ZWVrID0gZGZsKHcudywgMSk7XG5cbiAgICAgICAgICAgIGlmICh3LmQgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIC8vIHdlZWtkYXkgLS0gbG93IGRheSBudW1iZXJzIGFyZSBjb25zaWRlcmVkIG5leHQgd2Vla1xuICAgICAgICAgICAgICAgIHdlZWtkYXkgPSB3LmQ7XG4gICAgICAgICAgICAgICAgaWYgKHdlZWtkYXkgPCBkb3cpIHtcbiAgICAgICAgICAgICAgICAgICAgKyt3ZWVrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAody5lICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICAvLyBsb2NhbCB3ZWVrZGF5IC0tIGNvdW50aW5nIHN0YXJ0cyBmcm9tIGJlZ2luaW5nIG9mIHdlZWtcbiAgICAgICAgICAgICAgICB3ZWVrZGF5ID0gdy5lICsgZG93O1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAvLyBkZWZhdWx0IHRvIGJlZ2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faSk7XG4gICAgICAgIGNvbmZpZy5fYSA9IFtcbiAgICAgICAgICAgIG5vcm1hbGl6ZWRJbnB1dC55ZWFyLFxuICAgICAgICAgICAgbm9ybWFsaXplZElucHV0Lm1vbnRoLFxuICAgICAgICAgICAgbm9ybWFsaXplZElucHV0LmRheSxcbiAgICAgICAgICAgIG5vcm1hbGl6ZWRJbnB1dC5ob3VyLFxuICAgICAgICAgICAgbm9ybWFsaXplZElucHV0Lm1pbnV0ZSxcbiAgICAgICAgICAgIG5vcm1hbGl6ZWRJbnB1dC5zZWNvbmQsXG4gICAgICAgICAgICBub3JtYWxpemVkSW5wdXQubWlsbGlzZWNvbmRcbiAgICAgICAgXTtcblxuICAgICAgICBkYXRlRnJvbUNvbmZpZyhjb25maWcpO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIGN1cnJlbnREYXRlQXJyYXkoY29uZmlnKSB7XG4gICAgICAgIHZhciBub3cgPSBuZXcgRGF0ZSgpO1xuICAgICAgICBpZiAoY29uZmlnLl91c2VVVEMpIHtcbiAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgbm93LmdldFVUQ0Z1bGxZZWFyKCksXG4gICAgICAgICAgICAgICAgbm93LmdldFVUQ01vbnRoKCksXG4gICAgICAgICAgICAgICAgbm93LmdldFVUQ0RhdGUoKVxuICAgICAgICAgICAgXTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiBbbm93LmdldEZ1bGxZZWFyKCksIG5vdy5nZXRNb250aCgpLCBub3cuZ2V0RGF0ZSgpXTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vIGRhdGUgZnJvbSBzdHJpbmcgYW5kIGZvcm1hdCBzdHJpbmdcbiAgICBmdW5jdGlvbiBtYWtlRGF0ZUZyb21TdHJpbmdBbmRGb3JtYXQoY29uZmlnKSB7XG5cbiAgICAgICAgaWYgKGNvbmZpZy5fZiA9PT0gbW9tZW50LklTT184NjAxKSB7XG4gICAgICAgICAgICBwYXJzZUlTTyhjb25maWcpO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uZmlnLl9hID0gW107XG4gICAgICAgIGNvbmZpZy5fcGYuZW1wdHkgPSB0cnVlO1xuXG4gICAgICAgIC8vIFRoaXMgYXJyYXkgaXMgdXNlZCB0byBtYWtlIGEgRGF0ZSwgZWl0aGVyIHdpdGggYG5ldyBEYXRlYCBvciBgRGF0ZS5VVENgXG4gICAgICAgIHZhciBsYW5nID0gZ2V0TGFuZ0RlZmluaXRpb24oY29uZmlnLl9sKSxcbiAgICAgICAgICAgIHN0cmluZyA9ICcnICsgY29uZmlnLl9pLFxuICAgICAgICAgICAgaSwgcGFyc2VkSW5wdXQsIHRva2VucywgdG9rZW4sIHNraXBwZWQsXG4gICAgICAgICAgICBzdHJpbmdMZW5ndGggPSBzdHJpbmcubGVuZ3RoLFxuICAgICAgICAgICAgdG90YWxQYXJzZWRJbnB1dExlbmd0aCA9IDA7XG5cbiAgICAgICAgdG9rZW5zID0gZXhwYW5kRm9ybWF0KGNvbmZpZy5fZiwgbGFuZykubWF0Y2goZm9ybWF0dGluZ1Rva2VucykgfHwgW107XG5cbiAgICAgICAgZm9yIChpID0gMDsgaSA8IHRva2Vucy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgdG9rZW4gPSB0b2tlbnNbaV07XG4gICAgICAgICAgICBwYXJzZWRJbnB1dCA9IChzdHJpbmcubWF0Y2goZ2V0UGFyc2VSZWdleEZvclRva2VuKHRva2VuLCBjb25maWcpKSB8fCBbXSlbMF07XG4gICAgICAgICAgICBpZiAocGFyc2VkSW5wdXQpIHtcbiAgICAgICAgICAgICAgICBza2lwcGVkID0gc3RyaW5nLnN1YnN0cigwLCBzdHJpbmcuaW5kZXhPZihwYXJzZWRJbnB1dCkpO1xuICAgICAgICAgICAgICAgIGlmIChza2lwcGVkLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgICAgICAgICAgY29uZmlnLl9wZi51bnVzZWRJbnB1dC5wdXNoKHNraXBwZWQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBzdHJpbmcgPSBzdHJpbmcuc2xpY2Uoc3RyaW5nLmluZGV4T2YocGFyc2VkSW5wdXQpICsgcGFyc2VkSW5wdXQubGVuZ3RoKTtcbiAgICAgICAgICAgICAgICB0b3RhbFBhcnNlZElucHV0TGVuZ3RoICs9IHBhcnNlZElucHV0Lmxlbmd0aDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vIGRvbid0IHBhcnNlIGlmIGl0J3Mgbm90IGEga25vd24gdG9rZW5cbiAgICAgICAgICAgIGlmIChmb3JtYXRUb2tlbkZ1bmN0aW9uc1t0b2tlbl0pIHtcbiAgICAgICAgICAgICAgICBpZiAocGFyc2VkSW5wdXQpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uZmlnLl9wZi5lbXB0eSA9IGZhbHNlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgY29uZmlnLl9wZi51bnVzZWRUb2tlbnMucHVzaCh0b2tlbik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGFkZFRpbWVUb0FycmF5RnJvbVRva2VuKHRva2VuLCBwYXJzZWRJbnB1dCwgY29uZmlnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKGNvbmZpZy5fc3RyaWN0ICYmICFwYXJzZWRJbnB1dCkge1xuICAgICAgICAgICAgICAgIGNvbmZpZy5fcGYudW51c2VkVG9rZW5zLnB1c2godG9rZW4pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gYWRkIHJlbWFpbmluZyB1bnBhcnNlZCBpbnB1dCBsZW5ndGggdG8gdGhlIHN0cmluZ1xuICAgICAgICBjb25maWcuX3BmLmNoYXJzTGVmdE92ZXIgPSBzdHJpbmdMZW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ykge1xuICAgICAgICByZXR1cm4gcy5yZXBsYWNlKC9bLVxcL1xcXFxeJCorPy4oKXxbXFxde31dL2csICdcXFxcJCYnKTtcbiAgICB9XG5cbiAgICAvLyBkYXRlIGZyb20gc3RyaW5nIGFuZCBhcnJheSBvZiBmb3JtYXQgc3RyaW5nc1xuICAgIGZ1bmN0aW9uIG1ha2VEYXRlRnJvbVN0cmluZ0FuZEFycmF5KGNvbmZpZykge1xuICAgICAgICB2YXIgdGVtcENvbmZpZyxcbiAgICAgICAgICAgIGJlc3RNb21lbnQsXG5cbiAgICAgICAgICAgIHNjb3JlVG9CZWF0LFxuICAgICAgICAgICAgaSxcbiAgICAgICAgICAgIGN1cnJlbnRTY29yZTtcblxuICAgICAgICBpZiAoY29uZmlnLl9mLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgY29uZmlnLl9wZi5pbnZhbGlkRm9ybWF0ID0gdHJ1ZTtcbiAgICAgICAgICAgIGNvbmZpZy5fZCA9IG5ldyBEYXRlKE5hTik7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBmb3IgKGkgPSAwOyBpIDwgY29uZmlnLl9mLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICBjdXJyZW50U2NvcmUgPSAwO1xuICAgICAgICAgICAgdGVtcENvbmZpZyA9IGV4dGVuZCh7fSwgY29uZmlnKTtcbiAgICAgICAgICAgIHRlbXBDb25maWcuX3BmID0gZGVmYXVsdFBhcnNpbmdGbGFncygpO1xuICAgICAgICAgICAgdGVtcENvbmZpZy5fZiA9IGNvbmZpZy5fZltpXTtcbiAgICAgICAgICAgIG1ha2VEYXRlRnJvbVN0cmluZ0FuZEZvcm1hdCh0ZW1wQ29uZmlnKTtcblxuICAgICAgICAgICAgaWYgKCFpc1ZhbGlkKHRlbXBDb25maWcpKSB7XG4gICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIGlmIHRoZ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cmluZykpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gbWF0Y2hbNV0gc2hvdWxkIGJlIFwiVFwiIG9yIHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICBjb25maWcuX2YgPSBpc29EYXRlc1tpXVswXSArIChtYXRjaFs2XSB8fCBcIiBcIik7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGZvciAoaSA9IDAsIGwgPSBpc29UaW1lcy5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICAgICAgICAgICAgICBpZiAoaXNvVGltZXNbaV1bMV0uZXhlYyhzdHJpbmcpKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbmZpZy5fZiArPSBpc29UaW1lc1tpXVswXTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHN0cmluZy5tYXRjaChwYXJzZVRva2VuVGltZXpvbmUpKSB7XG4gICAgICAgICAgICAgICAgY29uZmlnLl9mICs9IFwiWlwiO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbWFrZURhdGVGcm9tU3RyaW5nQW5kRm9ybWF0KGNvbmZpZyk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBjb25maWcuX2lzVmFsaWQgPSBmYWxzZTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vIGRhdGUgZnJvbSBpc28gZm9ybWF0IG9yIGZhbGxiYWNrXG4gICAgZnVuY3Rpb24gbWFrZURhdGVGcm9tU3RyaW5nKGNvbmZpZykge1xuICAgICAgICBwYXJzZUlTTyhjb25maWcpO1xuICAgICAgICBpZiAoY29uZmlnLl9pc1ZhbGlkID09PSBmYWxzZSkge1xuICAgICAgICAgICAgZGVsZXRlIGNvbmZpZy5faXNWYWxpZDtcbiAgICAgICAgICAgIG1vbWVudC5jcmVhdGVGcm9tSW5wdXRGYWxsYmFjayhjb25maWcpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gbWFrZURhdGVGcm9tSW5wdXQoY29uZmlnKSB7XG4gICAgICAgIHZhciBpbnB1dCA9IGNvbmZpZy5faSxcbiAgICAgICAgICAgIG1hdGNoZWQgPSBhc3BOZXRKc29uUmVnZXguZXhlYyhpbnB1dCk7XG5cbiAgICAgICAgaWYgKGlucHV0ID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGNvbmZpZy5fZCA9IG5ldyBEYXRlKCk7XG4gICAgICAgIH0gZWxzZSBpZiAobWF0Y2hlZCkge1xuICAgICAgICAgICAgY29uZmlnLl9kID0gbmV3IERhdGUoK21hdGNoZWRbMV0pO1xuICAgICAgICB9IGVsc2UgaWYgKHR5cGVvZiBpbnB1dCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgIG1ha2VEYXRlRnJvbVN0cmluZyhjb25maWcpO1xuICAgICAgICB9IGVsc2UgaWYgKGlzQXJyYXkoaW5wdXQpKSB7XG4gICAgICAgICAgICBjb25maWcuX2EgPSBpbnB1dC5zbGljZSgwKTtcbiAgICAgICAgICAgIGRhdGVGcm9tQ29uZmlnKGNvbmZpZyk7XG4gICAgICAgIH0gZWxzZSBpZiAoaXNEYXRlKGlucHV0KSkge1xuICAgICAgICAgICAgY29uZmlnLl9kID0gbmV3IERhdGUoK2lucHV0KTtcbiAgICAgICAgfSBlbHNlIGlmICh0eXBlb2YoaW5wdXQpID09PSAnb2JqZWN0Jykge1xuICAgICAgICAgICAgZGF0ZUZyb21PYmplY3QoY29uZmlnKTtcbiAgICAgICAgfSBlbHNlIGlmICh0eXBlb2YoaW5wdXQpID09PSAnbnVtYmVyJykge1xuICAgICAgICAgICAgLy8gZnJvbSBtaWxsaXNlY29uZHNcbiAgICAgICAgICAgIGNvbmZpZy5fZCA9IG5ldyBEYXRlKGlucHV0KTtcbiAgICAgICAgfSBl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4oaW5wdXQpKSB7XG4gICAgICAgICAgICAgICAgaW5wdXQgPSBwYXJzZUludChpbnB1dCwgMTApO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgaW5wdXQgPSBsYW5ndWFnZS53ZWVrZGF5c1BhcnNlKGlucHV0KTtcbiAgICAgICAgICAgICAgICBpZiAodHlwZW9mIGlucHV0ICE9PSAnbnVtYmVyJykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGlucHV0O1xuICAgIH1cblxuICAgIC8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKipcbiAgICAgICAgUmVsYXRpdmUgVGltZVxuICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cblxuXG4gICAgLy8gaGVscGVyIGZ1bmN0aW9uIGZvciBtb21lbnQuZm4uZnJvbSwgbW9tZW50LmZuLmZyb21Ob3csIGFuZCBtb21lbnQuZHVyYXRpb24uZm4uaHVtYW5pemVcbiAgICBmdW5jdGlvbiBzdWJzdGl0dXRlVGltZUFnbyhzdHJpbmcsIG51bWJlciwgd2l0aG91dFN1ZmZpeCwgaXNGdXR1cmUsIGxhbmcpIHtcbiAgICAgICAgcmV0dXJuIGxhbmcucmVsYXRpdmVUaW1lKG51bWJlciB8fCAxLCAhIXdpdGhvdXRTdWZmaXgsIHN0cmluZywgaXNGdXR1cmUpO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIHJlbGF0aXZlVGltZShtaWxsaXNlY29uZHMsIHdpdGhvdXRTdWZmaXgsIGxhbmcpIHtcbiAgICAgICAgdmFyIHNlY29uZHMgPSByb3VuZChNYXRoLmFicyhtaWxsaXNlY29uZHMpIC8gMTAwMCksXG4gICAgICAgICAgICBtaW51dGVzID0gcm91bmQoc2Vjb25kcyAvIDYwKSxcbiAgICAgICAgICAgIGhvdXJzID0gcm91bmQobWludXRlcyAvIDYwKSxcbiAgICAgICAgICAgIGRheXMgPSByb3VuZChob3VycyAvIDI0KSxcbiAgICAgICAgICAgIHllYXJzID0gcm91bmQoZGF5cyAvIDM2NSksXG4gICAgICAgICAgICBhcmdzID0gc2Vjb25kcyA8IHJlbGF0aXZlVGltZVRocmVzaG9sZHMucyAgJiYgWydzJywgc2Vjb25kc10gfHxcbiAgICAgICAgICAgICAgICBtaW51dGVzID09PSAxICYmIFsnbSddIHx8XG4gICAgICAgICAgICAgICAgbWludXRlcyA8IHJlbGF0aXZlVGltZVRocmVzaG9sZHMubSAmJiBbJ21tJywgbWludXRlc10gfHxcbiAgICAgICAgICAgICAgICBob3VycyA9PT0gMSAmJiBbJ2gnXSB8fFxuICAgICAgICAgICAgICAgIGhvdXJzIDwgcmVsYXRpdmVUaW1lVGhyZXNob2xkcy5oICYmIFsnaGgnLCBob3Vyc10gfHxcbiAgICAgICAgICAgICAgICBkYXlzID09PSAxICYmIFsnZCddIHx8XG4gICAgICAgICAgICAgICAgZGF5cyA8PSByZWxhdGl2ZVRpbWVUaHJlc2hvbGRzLmRkICYmIFsnZGQnLCBkYXlzXSB8fFxuICAgICAgICAgICAgICAgIGRheXMgPD0gcmVsYXRpdmVUaW1lVGhyZXNob2xkcy5kbSAmJiBbJ00nXSB8fFxuICAgICAgICAgICAgICAgIGRheXMgPCByZWxhdGl2ZVRpbWVUaHJlc2hvbGRzLmR5ICYmIFsnTU0nLCByb3VuZChkYXlzIC8gMzApXSB8fFxuICAgICAgICAgICAgICAgIHllYXJzID09PSAxICYmIFsneSddIHx8IFsneXknLCB5ZWFyc107XG4gICAgICAgIGFyZ3NbMl0gPSB3aXRob3V0U3VmZml4O1xuICAgICAgICBhcmdzWzNdID0gbWlsbGlzZWNvbmRzID4gMDtcbiAgICAgICAgYXJnc1s0XSA9IGxhbmc7XG4gICAgICAgIHJldHVybiBzdWJzdGl0dXRlVGltZUFnby5hcHBseSh7fSwgYXJncyk7XG4gICAgfVxuXG5cbiAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqXG4gICAgICAgIFdlZWsgb2YgWWVhclxuICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cblxuXG4gICAgLy8gZmlyc3REYXlPZldlZWsgICAgICAgMCA9IHN1biwgNiA9IHNhdFxuICAgIC8vICAgICAgICAgICAgICAgICAgICAgIHRoZSBkYXkgb2YgdGhlIHdlZWsgdGhhdCBzdGFydHMgdGhlIHdlZWtcbiAgICAvLyAgICAgICAgICAgICAgICAgICAgICAodXN1YWxseSBzdW5kYXkgb3IgbW9uZGF5KVxuICAgIC8vIGZpcnN0RGF5T2ZXZWVrT2ZZZWFyIDAgPSBzdW4sIDYgPSBzYXRcbiAgICAvLyAgICAgICAgICAgICAgICAgICAgICB0aGUgZmlyc3Qgd2VlayBpcyB0aGUgd2VlayB0aGF0IGNvbnRhaW5zIHRoZSBmaXJzdFxuICAgIC8vICAgICAgICAgICAgICAgICAgICAgIG9mIHRoaXMgZGF5IG9mIHRoZSB3ZWVrXG4gICAgLy8gICAgICAgICAgICAgICAgICAgICAgKGVnLiBJU08gd2Vla3MgdXNlIHRodXJzZGF5ICg0KSlcbiAgICBmdW5jdGlvbiB3ZWVrT2ZZZWFyKG1vbSwgZmlyc3REYXlPZldlZWssIGZpcnN0RGF5T2ZXZWVrT2ZZZWFyKSB7XG4gICAgICAgIHZhciBlbmQgPSBmaXJzdERheU9mV2Vla09mWWVhciAtIGZpcnN0RGF5T2ZXZWVrLFxuICAgICAgICAgICAgZGF5c1RvRGF5T2ZXZWVrID0gZmlyc3REYXlPZldlZWtPZlllYXIgLSBtb20uZGF5KCksXG4gICAgICAgICAgICBhZGp1c3RlZE1vbWVudDtcblxuXG4gICAgICAgIGlmIChkYXlzVG9EYXlPZldlZWsgPiBlbmQpIHtcbiAgICAgICAgICAgIGRheXNUb0RheU9mV2VlayAtPSA3O1xuICAgICAg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WVrZGF5IC0gZmlyc3REYXlPZldlZWspICsgZGF5c1RvQWRkICsgMTtcblxuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgeWVhcjogZGF5T2ZZZWFyID4gMCA/IHllYXIgOiB5ZWFyIC0gMSxcbiAgICAgICAgICAgIGRheU9mWWVhcjogZGF5T2ZZZWFyID4gMCA/ICBkYXlPZlllYXIgOiBkYXlzSW5ZZWFyKHllYXIgLSAxKSArIGRheU9mWWVhclxuICAgICAgICB9O1xuICAgIH1cblxuICAgIC8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKipcbiAgICAgICAgVG9wIExldmVsIEZ1bmN0aW9uc1xuICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cblxuICAgIGZ1bmN0aW9uIG1ha2VNb21lbnQoY29uZmlnKSB7XG4gICAgICAgIHZhciBpbnB1dCA9IGNvbmZpZy5faSxcbiAgICAgICAgICAgIGZvcm1hdCA9IGNvbmZpZy5fZjtcblxuICAgICAgICBpZiAoaW5wdXQgPT09IG51bGwgfHwgKGZvcm1hdCA9PT0gdW5kZWZpbmVkICYmIGlucHV0ID09PSAnJykpIHtcbiAgICAgICAgICAgIHJldHVybiBtb21lbnQuaW52YWxpZCh7bnVsbElucHV0OiB0cnVlfSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodHlwZW9mIGlucHV0ID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgY29uZmlnLl9pID0gaW5wdXQgPSBnZXRMYW5nRGVmaW5pdGlvbigpLnByZXBhcnNlKGlucHV0KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChtb21lbnQuaXNNb21lbnQoaW5wdXQpKSB7XG4gICAgICAgICAgICBjb25maWcgPSBjbG9uZU1vbWVudChpbnB1dCk7XG5cbiAgICAgICAgICAgIGNvbmZpZy5fZCA9IG5ldyBEYXRlKCtpbnB1dC5fZCk7XG4gICAgICAgIH0gZWxzZSBpZiAoZm9ybWF0KSB7XG4gICAgICAgICAgICBpZiAoaXNBcnJheShmb3JtYXQpKSB7XG4gICAgICAgICAgICAgICAgbWFrZURhdGVGcm9tU3RyaW5nQW5kQXJyYXkoY29uZmlnKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgbWFrZURhdGVGcm9tU3RyaW5nQW5kRm9ybWF0KGNvbmZpZyk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBtYWtlRGF0ZUZyb21JbnB1dChjb25maWcpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG5ldyBNb21lbnQoY29uZmlnKTtcbiAgICB9XG5cbiAgICBtb21lbnQgPSBmdW5jdGlvbiAoaW5wdXQsIGZvcm1hdCwgbGFuZywgc3RyaWN0KSB7XG4gICAgICAgIHZhciBjO1xuXG4gICAgICAgIGlmICh0eXBlb2YobGFuZykgPT09IFwiYm9vbGVhblwiKSB7XG4gICAgICAgICAgICBzdHJpY3QgPSBsYW5nO1xuICAgICAgICAgICAgbGFuZyA9IHVuZGVmaW5lZDtcbiAgICAgICAgfVxuICAgICAgICAvLyBvYmplY3QgY29uc3RydWN0aW9uIG11c3QgYmUgZG9uZSB0aGlzIHdheS5cbiAgICAgICAgLy8gaHR0cHM6Ly9naXRodWIuY29tL21vbWVudC9tb21lbnQvaXNzdWVzLzE0MjNcbiAgICAgICAgYyA9IHt9O1xuICAgICAgICBjLl9pc0FNb21lbnRPYmplY3QgPSB0cnVlO1xuICAgICAgICBjLl9pID0gaW5wdXQ7XG4gICAgICAgIGMuX2YgPSBmb3JtYXQ7XG4gICAgICAgIGMuX2wgPSBsYW5nO1xuICAgICAgICBjLl9zdHJpY3QgPSBzdHJpY3Q7XG4gICAgICAgIGMuX2lzVVRDID0gZmFsc2U7XG4gICAgICAgIGMuX3BmID0gZGVmYXVsdFBhcnNpbmdGbGFncygpO1xuXG4gICAgICAgIHJldHVybiBtYWtlTW9tZW50KGMpO1xuIC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XNBcnJheShtb21lbnRzWzBdKSkge1xuICAgICAgICAgICAgbW9tZW50cyA9IG1vbWVudHNbMF07XG4gICAgICAgIH1cbiAgICAgICAgaWYgKCFtb21lbnRzLmxlbmd0aCkge1xuICAgICAgICAgICAgcmV0dXJuIG1vbWVudCgpO1xuICAgICAgICB9XG4gICAgICAgIHJlcyA9IG1vbWVudHNbMF07XG4gICAgICAgIGZvciAoaSA9IDE7IGkgPCBtb21lbnRzLmxlbmd0aDsgKytpKSB7XG4gICAgICAgICAgICBpZiAobW9tZW50c1tpXVtmbl0ocmVzKSkge1xuICAgICAgICAgICAgICAgIHJlcyA9IG1vbWVudHNbaV07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlcztcbiAgICB9XG5cbiAgICBtb21lbnQubWluID0gZnVuY3Rpb24gKCkge1xuICAgICAgICB2YXIgYXJncyA9IFtdLnNsaWNlLmNhbGwoYXJndW1lbnRzLCAwKTtcblxuICAgICAgICByZXR1cm4gcGlja0J5KCdpc0JlZm9yZScsIGFyZ3MpO1xuICAgIH07XG5cbiAgICBtb21lbnQubWF4ID0gZnVuY3Rpb24gKCkge1xuICAgICAgICB2YXIgYXJncyA9IFtdLnNsaWNlLmNhbGwoYXJndW1lbnRzLCAwKTtcblxuICAgICAgICByZXR1cm4gcGlja0J5KCdpc0FmdGVyJywgYXJncyk7XG4gICAgfTtcblxuICAgIC8vIGNyZWF0aW5nIHdpdGggdXRjXG4gICAgbW9tZW50LnV0YyA9IGZ1bmN0aW9uIChpbnB1dCwgZm9ybWF0LCBsYW5nLCBzdHJpY3QpIHtcbiAgICAgICAgdmFyIGM7XG5cbiAgICAgICAgaWYgKHR5cGVvZihsYW5nKSA9PT0gXCJib29sZWFuXCIpIHtcbiAgICAgICAgICAgIHN0cmljdCA9IGxhbmc7XG4gICAgICAgICAgICBsYW5nID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG4gICAgICAgIC8vIG9iamVjdCBjb25zdHJ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ICAgICAgICAgICAgIG1zOiBpbnB1dC5fbWlsbGlzZWNvbmRzLFxuICAgICAgICAgICAgICAgIGQ6IGlucHV0Ll9kYXlzLFxuICAgICAgICAgICAgICAgIE06IGlucHV0Ll9tb250aHNcbiAgICAgICAgICAgIH07XG4gICAgICAgIH0gZWxzZSBpZiAodHlwZW9mIGlucHV0ID09PSAnbnVtYmVyJykge1xuICAgICAgICAgICAgZHVyYXRpb24gPSB7fTtcbiAgICAgICAgICAgIGlmIChrZXkpIHtcbiAgICAgICAgICAgICAgICBkdXJhdGlvbltrZXldID0gaW5wdXQ7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGR1cmF0aW9uLm1pbGxpc2Vjb25kcyA9IGlucHV0O1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2UgaWYgKCEhKG1hdGNoID0gYXNwTmV0VGltZVNwYW5Kc29uUmVnZXguZXhlYyhpbnB1dCkpKSB7XG4gICAgICAgICAgICBzaWduID0gKG1hdGNoWzFdID09PSBcIi1cIikgPyAtMSA6IDE7XG4gICAgICAgICAgICBkdXJhdGlvbiA9IHtcbiAgICAgICAgICAgICAgICB5OiAwLFxuICAgICAgICAgICAgICAgIGQ6IHRvSW50KG1hdGNoW0RBVEVdKSAqIHNpZ24sXG4gICAgICAgICAgICAgICAgaDogdG9JbnQobWF0Y2hbSE9VUl0pICogc2lnbixcbiAgICAgICAgICAgICAgICBtOiB0b0ludChtYXRjaFtNSU5VVEVdKSAqIHNpZ24sXG4gICAgICAgICAgICAgICAgczogdG9JbnQobWF0Y2hbU0VDT05EXSkgKiBzaWduLFxuICAgICAgICAgICAgICAgIG1zOiB0b0ludChtYXRjaFtNSUxMSVNFQ09ORF0pICogc2lnblxuICAgICAgICAgICAgfTtcbiAgICAgICAgfSBlbHNlIGlmICghIShtYXRjaCA9IGlzb0R1cmF0aW9uUmVnZXguZXhlYyhpbnB1dCkpKSB7XG4gICAgICAgICAgICBzaWduID0gKG1hdGNoWzFdID09PSBcIi1cIikgPyAtMSA6IDE7XG4gICAgICAgICAgICBwYXJzZUlzbyA9IGZ1bmN0aW9uIChpbnApIHtcbiAgICAgICAgICAgICAgICAvLyBXZSdkIG5vcm1hbGx5IHVzZSB+fmlucCBmb3IgdGhpcywgYnV0IHVuZm9ydHVuYXRlbHkgaXQgYWxzb1xuICAgICAgICAgICAgICAgIC8vIGNvbnZlcnRzIGZsb2F0cyB0byBpbnRzLlxuICAgICAgICAgICAgICAgIC8vIGlucCBtYXkgYmUgdW5kZWZpbmVkLCBzbyBjYXJlZnVsIGNhbGxpbmcgcmVwbGFjZSBvbiBpdC5cbiAgICAgICAgICAgICAgICB2YXIgcmVzID0gaW5wICYmIHBhcnNlRmxvYXQoaW5wLnJlcGxhY2UoJywnLCAnLicpKTtcbiAgICAgICAgICAgICAgICAvLyBhcHBseSBzaWduIHdoaWxlIHdlJ3JlIGF0IGl0XG4gICAgICAgICAgICAgICAgcmV0dXJuIChpc05hTihyZXMpID8gMCA6IHJlcykgKiBzaWduO1xuICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIGR1cmF0aW9uID0ge1xuICAgICAgICAgICAgICAgIHk6IHBhcnNlSXNvKG1hdGNoWzJdKSxcbiAgICAgICAgICAgICAgICBNOiBwYXJzZUlzbyhtYXRjaFszXSksXG4gICAgICAgICAgICAgICAgZDogcGFyc2VJc28obWF0Y2hbNF0pLFxuICAgICAgICAgICAgICAgIGg6IHBhcnNlSXNvKG1hdGNoWzVdKSxcbiAgICAgICAgICAgICAgICBtOiBwYXJzZUlzbyhtYXRjaFs2XSksXG4gICAgICAgICAgICAgICAgczogcGFyc2VJc28obWF0Y2hbN10pLFxuICAgICAgICAgICAgICAgIHc6IHBhcnNlSXNvKG1hdGNoWzhdKVxuICAgICAgICAgICAgfTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldCA9IG5ldyBEdXJhdGlvbihkdXJhdGlvbik7XG5cbiAgICAgICAgaWYgKG1vbWVudC5pc0R1cmF0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dEZWZpbml0aW9uKGtleSk7XG4gICAgICAgIHJldHVybiByLl9hYmJyO1xuICAgIH07XG5cbiAgICAvLyByZXR1cm5zIGxhbmd1YWdlIGRhdGFcbiAgICBtb21lbnQubGFuZ0RhdGEgPSBmdW5jdGlvbiAoa2V5KSB7XG4gICAgICAgIGlmIChrZXkgJiYga2V5Ll9sYW5nICYmIGtleS5fbGFuZy5fYWJicikge1xuICAgICAgICAgICAga2V5ID0ga2V5Ll9sYW5nLl9hYmJyO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBnZXRMYW5nRGVmaW5pdGlvbihrZXkpO1xuICAgIH07XG5cbiAgICAvLyBjb21wYXJlIG1vbWVudCBvYmplY3RcbiAgICBtb21lbnQuaXNNb21lbnQgPSBmdW5jdGlvbiAob2JqKSB7XG4gICAgICAgIHJldHVybiBvYmogaW5zdGFuY2VvZiBNb21lbnQgfHxcbiAgICAgICAgICAgIChvYmogIT0gbnVsbCAmJiAgb2JqLmhhc093blByb3BlcnR5KCdfaXNBTW9tZW50T2JqZWN0JykpO1xuICAgIH07XG5cbiAgICAvLyBmb3IgdHlwZWNoZWNraW5nIER1cmF0aW9uIG9iamVjdHNcbiAgICBtb21lbnQuaXNEdXJhdGlvbiA9IGZ1bmN0aW9uIChvYmopIHtcbiAgICAgICAgcmV0dXJuIG9iaiBpbnN0YW5jZW9mIER1cmF0aW9uO1xuICAgIH07XG5cbiAgICBmb3IgKGkgPSBsaXN0cy5sZW5ndGggLSAxOyBpID49IDA7IC0taSkge1xuICAgICAgICBtYWtlTGlzdChsaXN0c1tpXSk7XG4gICAgfVxuXG4gICAgbW9tZW50Lm5vcm1hbGl6ZVVuaXRzID0gZnVuY3Rpb24gKHVuaXRzKSB7XG4gICAgICAgIHJldHVybiBub3JtYWxpemVVbml0cyh1bml0cyk7XG4gICAgfTtcblxuICAgIG1vbWVudC5pbnZhbGlkID0gZnVuY3Rpb24gKGZsYWdzKSB7XG4gICAgICAgIHZhciBtID0gbW9tZW50LnV0YyhOYU4pO1xuICAgICAgICBpZiAoZmxhZ3MgIT0gbnVsbCkge1xuICAgICAgICAgICAgZXh0ZW5kKG0uX3BmLCBmbGFncyk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBtLl9wZi51c2VySW52YWxpZGF0ZWQgPSB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG07XG4gICAgfTtcblxuICAgIG1vbWVudC5wYXJzZVpvbmUgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgIHJldHVybiBtb21lbnQuYXBwbHkobnVsbCwgYXJndW1lbnRzKS5wYXJzZVpvbmUoKTtcbiAgICB9O1xuXG4gICAgbW9tZW50LnBhcnNlVHdvRGlnaXRZZWFyID0gZnVuY3Rpb24gKGlucHV0KSB7XG4gICAgICAgIHJldHVybiB0b0ludChpbnB1dCkgKyAodG9JbnQoaW5wdXQpID4gNjggPyAxOTAwIDogMjAwMCk7XG4gICAgfTtcblxuICAgIC8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKipcbiAgICAgICAgTW9tZW50IFByb3RvdHlwZVxuICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cblxuXG4gICAgZXh0ZW5kKG1vbWVudC5mbiA9IE1vbWVudC5wcm90b3R5cGUsIHtcblxuICAgICAgICBjbG9uZSA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiBtb21lbnQodGhpcyk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgdmFsdWVPZiA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiArdGhpcy5fZCArICgodGhpcy5fb2Zmc2V0IHx8IDApICogNjAwMDApO1xuICAgICAgICB9LFxuXG4gICAgICAgIHVuaXggOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICByZXR1cm4gTWF0aC5mbG9vcigrdGhpcyAvIDEwMDApO1xuICAgICAgICB9LFxuXG4gICAgICAgIHRvU3RyaW5nIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmUoKS5sYW5nKCdlbicpLmZvcm1hdChcImRkZCBNTU0gREQgWVlZWSBISDptbTpzcyBbR01UXVpaXCIpO1xuICAgICAgICB9LFxuXG4gICAgICAgIHRvRGF0ZSA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLl9vZmZzZXQgPyBuZXcgRGF0ZSgrdGhpcykgOiB0aGlzLl9kO1xuICAgICAgICB9LFxuXG4gICAgICAgIHRvSVNPU3RyaW5nIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgdmFyIG0gPSBtb21lbnQodGhpcykudXRjKCk7XG4gICAgICAgICAgICBpZiAoMCA8IG0ueWVhcigpICYmIG0ueWVhcigpIDw9IDk5OTkpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZm9ybWF0TW9tZW50KG0sICdZWVlZLU1NLUREW1RdSEg6bW06c3MuU1NTW1pdJyk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybiBmb3JtYXRNb21lbnQobSwgJ1lZWVlZWS1NTS1ERFtUXUhIOm1tOnNzLlNTU1taXScpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9LFxuXG4gICAgICAgIHRvQXJyYXkgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICB2YXIgbSA9IHRoaXM7XG4gICAgICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgICAgIG0ueWVhcigpLFxuICAgICAgICAgICAgICAgIG0ubW9udGgoKSxcbiAgICAgICAgICAgICAgICBtLmRhdGUoKSxcbiAgICAgICAgICAgICAgICBtLmhvdXJzKCksXG4gICAgICAgICAgICAgICAgbS5taW51dGVzKCksXG4gICAgICAgICAgICAgICAgbS5zZWNvbmRzKCksXG4gICAgICAgICAgICAgICAgbS5taWxsaXNlY29uZHMoKVxuICAgICAgICAgICAgXTtcbiAgICAgICAgfSxcblxuICAgICAgICBpc1ZhbGlkIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIGlzVmFsaWQodGhpcyk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgaXNEU1RTaGlmdGVkIDogZnVuY3Rpb24gKCkge1xuXG4gICAgICAgICAgICBpZiAodGhpcy5fYSkge1xuICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQoKSAmJiBjb21wYXJlQXJyYXlzKHRoaXMuX2EsICh0aGlzLl9pc1VUQyA/IG1vbWVudC51dGModGhpcy5fYSkgOiBtb21lbnQodGhpcy5fYSkpLnRvQXJyYXkoKSkgPiAwO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH0sXG5cbiAgICAgICAgcGFyc2luZ0ZsYWdzIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIGV4dGVuZCh7fSwgdGhpcy5fcGYpO1xuICAgICAgICB9LFxuXG4gICAgICAgIGludmFsaWRBdDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuX3BmLm92ZXJmbG93O1xuICAgICAgICB9LFxuXG4gICAgICAgIHV0YyA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnpvbmUoMCk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgbG9jYWwgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICB0aGlzLnpvbmUoMCk7XG4gICAgICAgICAgICB0aGlzLl9pc1VUQyA9IGZhbHNlO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH0sXG5cbiAgICAgICAgZm9ybWF0IDogZnVuY3Rpb24gKGlucHV0U3RyaW5nKSB7XG4gICAgICAgICAgICB2YXIgb3V0cHV0ID0gZm9ybWF0TW9tZW50KHRoaXMsIGlucHV0U3RyaW5nIHx8IG1vbWVudC5kZWZhdWx0Rm9ybWF0KTtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmxhbmcoKS5wb3N0Zm9ybWF0KG91dHB1dCk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgYWRkIDogZnVuY3Rpb24gKGlucHV0LCB2YWwpIHtcbiAgICAgICAgICAgIHZhciBkdXI7XG4gICAgICAgICAgICAvLyBzd2l0Y2ggYXJncyB0byBzdXBwb3J0IGFkZCgncycsIDEpIGFuZCBhZGQoMSwgJ3MnKVxuICAgICAgICAgICAgaWYgKHR5cGVvZiBpbnB1dCA9PT0gJ3N0cmluZycgJiYgdHlwZW9mIHZhbCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgICBkdXIgPSBtb21lbnQuZHVyYXRpb24oaXNOYU4oK3ZhbCkgPyAraW5wdXQgOiArdmFsLCBpc05hTigrdmFsKSA/IHZhbCA6IGlucHV0KTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodHlwZW9mIGlucHV0ID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIGR1ciA9IG1vbWVudC5kdXJhdGlvbigrdmFsLCBpbnB1dCk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGR1ciA9IG1vbWVudC5kdXJhdGlvbihpbnB1dCwgdmFsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGFkZE9yU3VidHJhY3REdXJhdGlvbkZyb21Nb21lbnQodGhpcywgZHVyLCAxKTtcbiAgICAgICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgICB9LFxuXG4gICAgICAgIHN1YnRyYWN0IDogZnVuY3Rpb24gKGlucHV0LCB2YWwpIHtcbiAgICAgICAgICAgIHZhciBkdXI7XG4gICAgICAgICAgICAvLyBzd2l0Y2ggYXJncyB0byBzdXBwb3J0IHN1YnRyYWN0KCdzJywgMSkgYW5kIHN1YnRyYWN0KDEsICdzJylcbiAgICAgICAgICAgIGlmIC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AgICBkaWZmID0gKHRoaXMuZGF5c0luTW9udGgoKSArIHRoYXQuZGF5c0luTW9udGgoKSkgKiA0MzJlNTsgLy8gMjQgKiA2MCAqIDYwICogMTAwMCAvIDJcbiAgICAgICAgICAgICAgICAvLyBkaWZmZXJlbmNlIGluIG1vbnRoc1xuICAgICAgICAgICAgICAgIG91dHB1dCA9ICgodGhpcy55ZWFyKCkgLSB0aGF0LnllYXIoKSkgKiAxMikgKyAodGhpcy5tb250aCgpIC0gdGhhdC5tb250aCgpKTtcbiAgICAgICAgICAgICAgICAvLyBhZGp1c3QgYnkgdGFraW5nIGRpZmZlcmVuY2UgaW4gZGF5cywgYXZlcmFnZSBudW1iZXIgb2YgZGF5c1xuICAgICAgICAgICAgICAgIC8vIGFuZCBkc3QgaW4gdGhlIGdpdmVuIG1vbnRocy5cbiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gKCh0aGlzIC0gbW9tZW50KHRoaXMpLnN0YXJ0T2YoJ21vbnRoJykpIC1cbiAgICAgICAgICAgICAgICAgICAgICAgICh0aGF0IC0gbW9tZW50KHRoYXQpLnN0YXJ0T2YoJ21vbnRoJykpKSAvIGRpZmY7XG4gICAgICAgICAgICAgICAgLy8gc2FtZSBhcyBhYm92ZSBidXQgd2l0aCB6b25lcywgdG8gbmVnYXRlIGFsbCBkc3RcbiAgICAgICAgICAgICAgICBvdXRwdXQgLT0gKCh0aGlzLnpvbmUoKSAtIG1vbWVudCh0aGlzKS5zdGFydE9mKCdtb250aCcpLnpvbmUoKSkgLVxuICAgICAgICAgICAgICAgICAgICAgICAgKHRoYXQuem9uZSgpIC0gbW9tZW50KHRoYXQpLnN0YXJ0T2YoJ21vbnRoJykuem9uZSgpKSkgKiA2ZTQgLyBkaWZmO1xuICAgICAgICAgICAgICAgIGlmICh1bml0cyA9PT0gJ3llYXInKSB7XG4gICAgICAgICAgICAgICAgICAgIG91dHB1dCA9IG91dHB1dCAvIDEyO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgZGlmZiA9ICh0aGlzIC0gdGhhdCk7XG4gICAgICAgICAgICAgICAgb3V0cHV0ID0gdW5pdHMgPT09ICdzZWNvbmQnID8gZGlmZiAvIDFlMyA6IC8vIDEwMDBcbiAgICAgICAgICAgICAgICAgICAgdW5pdHMgPT09ICdtaW51dGUnID8gZGlmZiAvIDZlNCA6IC8vIDEwMDAgKiA2MFxuICAgICAgICAgICAgICAgICAgICB1bml0cyA9PT0gJ2hvdXInID8gZGlmZiAvIDM2ZTUgOiAvLyAxMDAwICogNjAgKiA2MFxuICAgICAgICAgICAgICAgICAgICB1bml0cyA9PT0gJ2RheScgPyAoZGlmZiAtIHpvbmVEaWZmKSAvIDg2NGU1IDogLy8gMTAwMCAqIDYwICogNjAgKiAyNCwgbmVnYXRlIGRzdFxuICAgICAgICAgICAgICAgICAgICB1bml0cyA9PT0gJ3dlZWsnID8gKGRpZmYgLSB6b25lRGlmZikgLyA2MDQ4ZTUgOiAvLyAxMDAwICogNjAgKiA2MCAqIDI0ICogNywgbmVnYXRlIGRzdFxuICAgICAgICAgICAgICAgICAgICBkaWZmO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGFzRmxvYXQgPyBvdXRwdXQgOiBhYnNSb3VuZChvdXRwdXQpO1xuICAgICAgICB9LFxuXG4gICAgICAgIGZyb20gOiBmdW5jdGlvbiAodGltZSwgd2l0aG91dFN1ZmZpeCkge1xuICAgICAgICAgICAgcmV0dXJuIG1vbWVudC5kdXJhdGlvbih0aGlzLmRpZmYodGltZSkpLmxhbmcodGhpcy5sYW5nKCkuX2FiYnIpLmh1bWFuaXplKCF3aXRob3V0U3VmZml4KTtcbiAgICAgICAgfSxcblxuICAgICAgICBmcm9tTm93IDogZnVuY3Rpb24gKHdpdGhvdXRTdWZmaXgpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmZyb20obW9tZW50KCksIHdpdGhvdXRTdWZmaXgpO1xuICAgICAgICB9LFxuXG4gICAgICAgIGNhbGVuZGFyIDogZnVuY3Rpb24gKHRpbWUpIHtcbiAgICAgICAgICAgIC8vIFdlIHdhbnQgdG8gY29tcGFyZSB0aGUgc3RhcnQgb2YgdG9kYXksIHZzIHRoaXMuXG4gICAgICAgICAgICAvLyBHZXR0aW5nIHN0YXJ0LW9mLXRvZGF5IGRlcGVuZHMgb24gd2hldGhlciB3ZSdyZSB6b25lJ2Qgb3Igbm90LlxuICAgICAgICAgICAgdmFyIG5vdyA9IHRpbWUgfHwgbW9tZW50KCksXG4gICAgICAgICAgICAgICAgc29kID0gbWFrZUFzKG5vdywgdGhpcykuc3RhcnRPZignZGF5JyksXG4gICAgICAgICAgICAgICAgZGlmZiA9IHRoaXMuZGlmZihzb2QsICdkYXlzJywgdHJ1ZSksXG4gICAgICAgICAgICAgICAgZm9ybWF0ID0gZGlmZiA8IC02ID8gJ3NhbWVFbHNlJyA6XG4gICAgICAgICAgICAgICAgICAgIGRpZmYgPCAtMSA/ICdsYXN0V2VlaycgOlxuICAgICAgICAgICAgICAgICAgICBkaWZmIDwgMCA/ICdsYXN0RGF5JyA6XG4gICAgICAgICAgICAgICAgICAgIGRpZmYgPCAxID8gJ3NhbWVEYXknIDpcbiAgICAgICAgICAgICAgICAgICAgZGlmZiA8IDIgPyAnbmV4dERheScgOlxuICAgICAgICAgICAgICAgICAgICBkaWZmIDwgNyA/ICduZXh0V2VlaycgOiAnc2FtZUVsc2UnO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuZm9ybWF0KHRoaXMubGFuZygpLmNhbGVuZGFyKGZvcm1hdCwgdGhpcykpO1xuICAgICAgICB9LFxuXG4gICAgICAgIGlzTGVhcFllYXIgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICByZXR1cm4gaXNMZWFwWWVhcih0aGlzLnllYXIoKSk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgaXNEU1QgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICByZXR1cm4gKHRoaXMuem9uZSgpIDwgdGhpcy5jbG9uZSgpLm1vbnRoKDApLnpvbmUoKSB8fFxuICAgICAgICAgICAgICAgIHRoaXMuem9uZSgpIDwgdGhpcy5jbG9uZSgpLm1vbnRoKDUpLnpvbmUoKSk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgZGF5IDogZnVuY3Rpb24gKGlucHV0KSB7XG4gICAgICAgICAgICB2YXIgZGF5ID0gdGhpcy5faXNVVEMgPyB0aGlzLl9kLmdldFVUQ0RheSgpIDogdGhpcy5fZC5nZXREYXkoKTtcbiAgICAgICAgICAgIGlmIChpbnB1dCAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgaW5wdXQgPSBwYXJzZVdlZWtkYXkoaW5wdXQsIHRoaXMubGFuZygpKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5hZGQoeyBkIDogaW5wdXQgLSBkYXkgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybiBkYXk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgbW9udGggOiBtYWtlQWNjZXNzb3IoJ01vbnRoJywgdHJ1ZSksXG5cbiAgICAgICAgc3RhcnRPZjogZnVuY3Rpb24gKHVuaXRzKSB7XG4gICAgICAgICAgICB1bml0cyA9IG5vcm1hbGl6ZVVuaXRzKHVuaXRzKTtcbiAgICAgICAgICAgIC8vIHRoZSBmb2xsb3dpbmcgc3dpdGNoIGludGVudGlvbmFsbHkgb21pdHMgYnJlYWsga2V5d29yZHNcbiAgICAgICAgICAgIC8vIHRvIHV0aWxpemUgZmFsbGluZyB0aHJvdWdoIHRoZSBjYXNlcy5cbiAgICAgICAgICAgIHN3aXRjaCAodW5pdHMpIHtcbiAgICAgICAgICAgIGNhc2UgJ3llYXInOlxuICAgICAgICAgICAgICAgIHRoaXMubW9udGgoMCk7XG4gICAgICAgICAgICAgICAgLyogZmFsbHMgdGhyb3VnaCAqL1xuICAgICAgICAgICAgY2FzZSAncXVhcnRlcic6XG4gICAgICAgICAgICBjYXNlICdtb250aCc6XG4gICAgICAgICAgICAgICAgdGhpcy5kYXRlKDEpO1xuICAgICAgICAgICAgICAgIC8qIGZhbGxzIHRocm91Z2ggKi9cbiAgICAgICAgICAgIGNhc2UgJ3dlZWsnOlxuICAgICAgICAgICAgY2FzZSAnaXNvV2Vlayc6XG4gICAgICAgICAgICBjYXNlICdkYXknOlxuICAgICAgICAgICAgICAgIHRoaXMuaG91cnMoMCk7XG4gICAgICAgICAgICAgICAgLyogZmFsbHMgdGhyb3VnaCAqL1xuICAgICAgICAgICAgY2FzZSAnaG91cic6XG4gICAgICAgICAgICAgICAgdGhpcy5taW51dGVzKDApO1xuICAgICAgICAgICAgICAgIC8qIGZhbGxzIHRocm91Z2ggKi9cbiAgICAgICAgICAgIGNhc2UgJ21pbnV0ZSc6XG4gICAgICAgICAgICAgICAgdGhpcy5zZWNvbmRzKDApO1xuICAgICAgICAgICAgICAgIC8qIGZhbGxzIHRocm91Z2ggKi9cbiAgICAgICAgICAgIGNhc2UgJ3NlY29uZCc6XG4gICAgICAgICAgICAgICAgdGhpcy5taWxsaXNlY29uZHMoMCk7XG4gICAgICAgICAgICAgICAgLyogZmFsbHMgdGhyb3VnaCAqL1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAvLyB3ZWVrcyBhcmUgYSBzcGVjaWFsIGNhc2VcbiAgICAgICAgICAgIGlmICh1bml0cyA9PT0gJ3dlZWsnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy53ZWVrZGF5KDApO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh1bml0cyA9PT0gJ2lzb1dlZWsnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5pc29XZWVrZGF5KDEpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAvLyBxdWFydGVycyBhcmUgYWxzbyBzcGVjaWFsXG4gICAgICAgICAgICBpZiAodW5pdHMgPT09ICdxdWFydGVyJykge1xuICAgICAgICAgICAgICAgIHRoaXMubW9udGgoTWF0aC5mbG9vcih0aGlzLm1vbnRoKCkgLyAzKSAqIDMpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfSxcblxuICAgICAgICBlbmRPZjogZnVuY3Rpb24gKHVuaXRzKSB7XG4gICAgICAgICAgICB1bml0cyA9IG5vcm1hbGl6ZVVuaXRzKHVuaXRzKTtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnN0YXJ0T2YodW5pdHMpLmFkZCgodW5pdHMgPT09ICdpc29XZWVrJyA/ICd3ZWVrJyA6IHVuaXRzKSwgMSkuc3VidHJhY3QoJ21zJywgMSk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgaXNBZnRlcjogZnVuY3Rpb24gKGlucHV0LCB1bml0cykge1xuICAgICAgICAgICAgdW5pdHMgPSB0eXBlb2YgdW5pdHMgIT09ICd1bmRlZmluZWQnID8gdW5pdHMgOiAnbWlsbGlzZWNvbmQnO1xuICAgICAgICAgICAgcmV0dXJuICt0aGlzLmNsb25lKCkuc3RhcnRPZih1bml0cykgPiArbW9tZW50KGlucHV0KS5zdGFydE9mKHVuaXRzKTtcbiAgICAgICAgfSxcblxuICAgICAgICBpc0JlZm9yZTogZnVuY3Rpb24gKGlucHV0LCB1bml0cykge1xuICAgICAgICAgICAgdW5pdHMgPSB0eXBlb2YgdW5pdHMgIT09ICd1bmRlZmluZWQnID8gdW5pdHMgOiAnbWlsbGlzZWNvbmQnO1xuICAgICAgICAgICAgcmV0dXJuICt0aGlzLmNsb25lKCkuc3RhcnRPZih1bml0cykgPCArbW9tZW50KGlucHV0KS5zdGFydE9mKHVuaXRzKTtcbiAgICAgICAgfSxcblxuICAgICAgICBpc1NhbWU6IGZ1bmN0aW9uIChpbnB1dCwgdW5pdHMpIHtcbiAgICAgICAgICAgIHVuaXRzID0gdW5pdHMgfHwgJ21zJztcbiAgICAgICAgICAgIHJldHVybiArdGhpcy5jbG9uZSgpLnN0YXJ0T2YodW5pdHMpID09PSArbWFrZUFzKGlucHV0LCB0aGlzKS5zdGFydE9mKHVuaXRzKTtcbiAgICAgICAgfSxcblxuICAgICAgICBtaW46IGRlcHJlY2F0ZShcbiAgICAgICAgICAgICAgICAgXCJtb21lbnQoKS5taW4gaXMgZGVwcmVjYXRlZCwgdXNlIG1vbWVudC5taW4gaW5zdGVhZC4gaHR0cHM6Ly9naXRodWIuY29tL21vbWVudC9tb21lbnQvaXNzdWVzLzE1NDhcIixcbiAgICAgICAgICAgICAgICAgZnVuY3Rpb24gKG90aGVyKSB7XG4gICAgICAgICAgICAgICAgICAgICBvdGhlciA9IG1vbWVudC5hcHBseShudWxsLCBhcmd1bWVudHMpO1xuICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG90aGVyIDwgdGhpcyA/IHRoaXMgOiBvdGhlcjtcbiAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgKSxcblxuICAgICAgICBtYXg6IGRlcHJlY2F0ZShcbiAgICAgICAgICAgICAgICBcIm1vbWVudCgpLm1heCBpcyBkZXByZWNhdGVkLCB1c2UgbW9tZW50Lm1heCBpbnN0ZWFkLiBodHRwczovL2dpdGh1Yi5jb20vbW9tZW50L21vbWVudC9pc3N1ZXMvMTU0OFwiLFxuICAgICAgICAgICAgICAgIGZ1bmN0aW9uIChvdGhlcikge1xuICAgICAgICAgICAgICAgICAgICBvdGhlciA9IG1vbWVudC5hcHBseShudWxsLCBhcmd1bWVudHMpO1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gb3RoZXIgPiB0aGlzID8gdGhpcyA6IG90aGVyO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgKSxcblxuICAgICAgICAvLyBrZWVwVGltZSA9IHRydWUgbWVhbnMgb25seSBjaGFuZ2UgdGhlIHRpbWV6b25lLCB3aXRob3V0IGFmZmVjdGluZ1xuICAgICAgICAvLyB0aGUgbG9jYWwgaG91ci4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ge1xuICAgICAgICAgICAgICAgICAgICBpbnB1dCA9IGlucHV0ICogNjA7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMuX29mZnNldCA9IGlucHV0O1xuICAgICAgICAgICAgICAgIHRoaXMuX2lzVVRDID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICBpZiAob2Zmc2V0ICE9PSBpbnB1dCkge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIWtlZXBUaW1lIHx8IHRoaXMuX2NoYW5nZUluUHJvZ3Jlc3MpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFkZE9yU3VidHJhY3REdXJhdGlvbkZyb21Nb21lbnQodGhpcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9tZW50LmR1cmF0aW9uKG9mZnNldCAtIGlucHV0LCAnbScpLCAxLCBmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoIXRoaXMuX2NoYW5nZUluUHJvZ3Jlc3MpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2NoYW5nZUluUHJvZ3Jlc3MgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgbW9tZW50LnVwZGF0ZU9mZnNldCh0aGlzLCB0cnVlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2NoYW5nZUluUHJvZ3Jlc3MgPSBudWxsO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5faXNVVEMgPyBvZmZzZXQgOiB0aGlzLl9kLmdldFRpbWV6b25lT2Zmc2V0KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfSxcblxuICAgICAgICB6b25lQWJiciA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLl9pc1VUQyA/IFwiVVRDXCIgOiBcIlwiO1xuICAgICAgICB9LFxuXG4gICAgICAgIHpvbmVOYW1lIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuX2lzVVRDID8gXCJDb29yZGluYXRlZCBVbml2ZXJzYWwgVGltZVwiIDogXCJcIjtcbiAgICAgICAgfSxcblxuICAgICAgICBwYXJzZVpvbmUgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5fdHptKSB7XG4gICAgICAgICAgICAgICAgdGhpcy56b25lKHRoaXMuX3R6bSk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHR5cGVvZiB0aGlzLl9pID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIHRoaXMuem9uZSh0aGlzLl9pKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiB0aGlzO1xuICAgICAgICB9LFxuXG4gICAgICAgIGhhc0FsaWduZWRIb3VyT2Zmc2V0IDogZnVuY3Rpb24gKGlucHV0KSB7XG4gICAgICAgICAgICBpZiAoIWlucHV0KSB7XG4gICAgICAgICAgICAgICAgaW5wdXQgPSAwO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgaW5wdXQgPSBtb21lbnQoaW5wdXQpLnpvbmUoKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcmV0dXJuICh0aGlzLnpvbmUoKSAtIGlucHV0KSAlIDYwID09PSAwO1xuICAgICAgICB9LFxuXG4gICAgICAgIGRheXNJbk1vbnRoIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIGRheXNJbk1vbnRoKHRoaXMueWVhcigpLCB0aGlzLm1vbnRoKCkpO1xuICAgICAgICB9LFxuXG4gICAgICAgIGRheU9mWWVhciA6IGZ1bmN0aW9uIChpbnB1dCkge1xuICAgICAgICAgICAgdmFyIGRheU9mWWVhciA9IHJvdW5kKChtb21lbnQodGhpcykuc3RhcnRPZignZGF5JykgLSBtb21lbnQodGhpcykuc3RhcnRPZigneWVhcicpKSAvIDg2NGU1KSArIDE7XG4gICAgICAgICAgICByZXR1cm4gaW5wdXQgPT0gbnVsbCA/IGRheU9mWWVhciA6IHRoaXMuYWRkKFwiZFwiLCAoaW5wdXQgLSBkYXlPZlllYXIpKTtcbiAgICAgICAgfSxcblxuICAgICAgICBxdWFydGVyIDogZnVuY3Rpb24gKGlucHV0KSB7XG4gICAgICAgICAgICByZXR1cm4gaW5wdXQgPT0gbnVsbCA/IE1hdGguY2VpbCgodGhpcy5tb250aCgpICsgMSkgLyAzKSA6IHRoaXMubW9udGgoKGlucHV0IC0gMSkgKiAzICsgdGhpcy5tb250aCgpICUgMyk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgd2Vla1llYXIgOiBmdW5jdGlvbiAoaW5wdXQpIHtcbiAgICAgICAgICAgIHZhciB5ZWFyID0gd2Vla09mWWVhcih0aGlzLCB0aGlzLmxhbmcoKS5fd2Vlay5kb3csIHRoaXMubGFuZygpLl93ZWVrLmRveSkueWVhcjtcbiAgICAgICAgICAgIHJldHVybiBpbnB1dCA9PSBudWxsID8geWVhciA6IHRoaXMuYWRkKFwieVwiLCAoaW5wdXQgLSB5ZWFyKSk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgaXNvV2Vla1llYXIgOiBmdW5jdGlvbiAoaW5wdXQpIHtcbiAgICAgICAgICAgIHZhciB5ZWFyID0gd2Vla09mWWVhcih0aGlzLCAxLCA0KS55ZWFyO1xuICAgICAgICAgICAgcmV0dXJuIGlucHV0ID09IG51bGwgPyB5ZWFyIDogdGhpcy5hZGQoXCJ5XCIsIChpbnB1dCAtIHllYXIpKTtcbiAgICAgICAgfSxcblxuICAgICAgICB3ZWVrIDogZnVuY3Rpb24gKGlucHV0KSB7XG4gICAgICAgICAgICB2YXIgd2VlayA9IHRoaXMubGFuZygpLndlZWsodGhpcyk7XG4gICAgICAg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W5jdGlvbiAoa2V5KSB7XG4gICAgICAgICAgICBpZiAoa2V5ID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5fbGFuZztcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fbGFuZyA9IGdldExhbmdEZWZpbml0aW9uKGtleSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9KTtcblxuICAgIGZ1bmN0aW9uIHJhd01vbnRoU2V0dGVyKG1vbSwgdmFsdWUpIHtcbiAgICAgICAgdmFyIGRheU9mTW9udGg7XG5cbiAgICAgICAgLy8gVE9ETzogTW92ZSB0aGlzIG91dCBvZiBoZXJlIVxuICAgICAgICBpZiAodHlwZW9mIHZhbHVlID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgdmFsdWUgPSBtb20ubGFuZygpLm1vbnRoc1BhcnNlKHZhbHVlKTtcbiAgICAgICAgICAgIC8vIFRPRE86IEFub3RoZXIgc2lsZW50IGZhaWx1cmU/XG4gICAgICAgICAgICBpZiAodHlwZW9mIHZhbHVlICE9PSAnbnVtYmVyJykge1xuICAgICAgICAgICAgICAgIHJldHVybiBtb207XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBkYXlPZk1vbnRoID0gTWF0aC5taW4obW9tLmRhdGUoKSxcbiAgICAgICAgICAgICAgICBkYXlzSW5Nb250aChtb20ueWVhcigpLCB2YWx1ZSkpO1xuICAgICAgICBtb20uX2RbJ3NldCcgKyAobW9tLl9pc1VUQyA/ICdVVEMnIDogJycpICsgJ01vbnRoJ10odmFsdWUsIGRheU9mTW9udGgpO1xuICAgICAgICByZXR1cm4gbW9tO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIHJhd0dldHRlcihtb20sIHVuaXQpIHtcbiAgICAgICAgcmV0dXJuIG1vbS5fZFsnZ2V0JyArIChtb20uX2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tb21lbnQuZm4ubW9udGhzID0gbW9tZW50LmZuLm1vbnRoO1xuICAgIG1vbWVudC5mbi53ZWVrcyA9IG1vbWVudC5mbi53ZWVrO1xuICAgIG1vbWVudC5mbi5pc29XZWVrcyA9IG1vbWVudC5mbi5pc29XZWVrO1xuICAgIG1vbWVudC5mbi5xdWFydGVycyA9IG1vbWVudC5mbi5xdWFydGVyO1xuXG4gICAgLy8gYWRkIGFsaWFzZWQgZm9ybWF0IG1ldGhvZHNcbiAgICBtb21lbnQuZm4udG9KU09OID0gbW9tZW50LmZuLnRvSVNPU3RyaW5nO1xuXG4gICAgLyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxuICAgICAgICBEdXJhdGlvbiBQcm90b3R5cGVcbiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG5cblxuICAgIGV4dGVuZChtb21lbnQuZHVyYXRpb24uZm4gPSBEdXJhdGlvbi5wcm90b3R5cGUsIHtcblxuICAgICAgICBfYnViYmxlIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgdmFyIG1pbGxpc2Vjb25kcyA9IHRoaXMuX21pbGxpc2Vjb25kcyxcbiAgICAgICAgICAgICAgICBkYXlzID0gdGhpcy5fZGF5cyxcbiAgICAgICAgICAgICAgICBtb250aHMgPSB0aGlzLl9tb250aHMsXG4gICAgICAgICAgICAgICAgZGF0YSA9IHRoaXMuX2RhdGEsXG4gICAgICAgICAgICAgICAgc2Vjb25kcywgbWludXRlcywgaG91cnMsIHllYXJzO1xuXG4gICAgICAgICAgICAvLyBUaGUgZm9sbG93aW5nIGNvZGUgYnViYmxlcyB1cCB2YWx1ZXMsIHNlZSB0aGUgdGVzdHMgZm9yXG4gICAgICAgICAgICAvLyBleGFtcGxlcyBvZiB3aGF0IHRoYXQgbWVhbnMuXG4gICAgICAgICAgICBkYXRhLm1pbGxpc2Vjb25kcyA9IG1pbGxpc2Vjb25kcyAlIDEwMDA7XG5cbiAgICAgICAgICAgIHNlY29uZHMgPSBhYnNSb3VuZChtaWxsaXNlY29uZHMgLyAxMDAwKTtcbiAgICAgICAgICAgIGRhdGEuc2Vjb25kcyA9IHNlY29uZHMgJSA2MDtcblxuICAgICAgICAgICAgbWludXRlcyA9IGFic1JvdW5kKHNlY29uZHMgLyA2MCk7XG4gICAgICAgICAgICBkYXRhLm1pbnV0ZXMgPSBtaW51dGVzICUgNjA7XG5cbiAgICAgICAgICAgIGhvdXJzID0gYWJzUm91bmQobWludXRlcyAvIDYwKTtcbiAgICAgICAgICAgIGRhdGEuaG91cnMgPSBob3VycyAlIDI0O1xuXG4gICAgICAgICAgICBkYXlzICs9IGFic1JvdW5kKGhvdXJzIC8gMjQpO1xuICAgICAgICAgICAgZGF0YS5kYXlzID0gZGF5cyAlIDMwO1xuXG4gICAgICAgICAgICBtb250aHMgKz0gYWJzUm91bmQoZGF5cyAvIDMwKTtcbiAgICAgICAgICAgIGRhdGEubW9udGhzID0gbW9udGhzICUgMTI7XG5cbiAgICAgICAgICAgIHllYXJzID0gYWJzUm91bmQobW9udGhzIC8gMTIpO1xuICAgICAgICAgICAgZGF0YS55ZWFycyA9IHllYXJzO1xuICAgICAgICB9LFxuXG4gICAgICAgIHdlZWtzIDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgcmV0dXJuIGFic1JvdW5kKHRoaXMuZGF5cygpIC8gNyk7XG4gICAgICAgIH0sXG5cbiAgICAgICAgdmFsdWVPZiA6IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLl9taWxsaXNlY29uZHMgK1xuICAgICAgICAgICAgICB0aGlzLl9kYXlzICogODY0ZTUgK1xuICAgICAgICAgICAgICAodGhpcy5fbW9udGhzICUgMTIpICogMjU5MmU2ICtcbiAgICAgICAgICAgICAgdG9JbnQodGhpcy5fbW9udGhzIC8gMTIpICogMzE1MzZlNjtcbiAgICAgICAgfSxcblxuICAgICAgICBodW1hbml6ZSA6IGZ1bmN0aW9uICh3aXRoU3VmZml4KSB7XG4gICAgICAgICAgICB2YXIgZGlmZmVyZW5jZSA9ICt0aGlzLFxuICAgICAgICAgICAgICAgIG91dHB1dCA9IHJlbGF0aXZlVGltZShkaWZmZXJlbmNlLCAhd2l0aFN1ZmZpeCwgdGhpcy5sYW5nKCkpO1xuXG4gICAgICAgICAgICBpZiAod2l0aFN1ZmZpeCkge1xuICAgICAgICAgICAgICAgIG91dHB1dCA9IHRoaXMubGFuZygpLnBhc3RGdXR1cmUoZGlmZmVyZW5jZSwgb3V0cHV0KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcmV0dXJuIHRoaXMubGFuZygpLnBvc3Rmb3JtYXQob3V0cHV0KTtcbiAgICAgICAgfSxcblxuICAgICAgICBhZGQgOiBmdW5jdGlvbiAoaW5wdXQsIHZhbCkge1xuICAgICAgICAgICAgLy8gc3VwcG9ydHMgb25seSAyLjAtc3R5bGUgYWRkKDEsICdzJykgb3IgYWRkKG1vbWVudClcbiAgICAgICAgICAgIHZhciBkdXIgPSBtb21lbnQuZHVyYXRpb24oaW5wdXQsIHZhbCk7XG5cbiAgICAgICAgICAgIHRoaXMuX21pbGxpc2Vjb25kcyArPSBkdXIuX21pbGxpc2Vjb25kcztcbiAgICAgICAgICAgIHRoaXMuX2RheXMgKz0gZHVyLl9kYXlzO1xuICAgICAgICAgICAgdGhpcy5fbW9udGhzICs9IGR1ci5fbW9udGhzO1xuXG4gICAgICAgICAgICB0aGlzLl9idWJibGUoKTtcblxuICAgICAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgICAgIH0sXG5cbiAgICAgICAgc3VidHJhY3QgOiBmdW5jdGlvbiAoaW5wdXQsIHZhbCkge1xuICAgICAgICAgICAgdmFyIGR1ciA9IG1vbWVudC5kdXJhdGlvbihpbnB1dCwgdmFsKTtcblxuICAgICAgICAgICAgdGhpcy5fbWlsbGlzZWNvbmRzIC09IGR1ci5fbWlsbGlzZWNvbmRzO1xuICAgICAgICAgICAgdGhpcy5fZGF5cyAtPSBkdXIuX2RheXM7XG4gICAgICAgICAgICB0aGlzLl9tb250aHMgLT0gZHVyLl9tb250aHM7XG5cbiAgICAgICAgICAgIHRoaXMuX2J1YmJsZSgpO1xuXG4gICAgICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgICAgfSxcblxuICAgICAgICBnZXQgOiBmdW5jdGlvbiAodW5pdHMpIHtcbiAgICAgICAgICAgIHVuaXRzID0gbm9ybWFsaXplVW5pdHModW5pdHMpO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXNbdW5pdHMudG9Mb3dlckNhc2UoKSArICdzJ10oKTtcbiAgICAgICAgfSxcblxuICAgICAgICBhcyA6IGZ1bmN0aW9uICh1bml0cykge1xuICAgICAgICAgICAgdW5pdHMgPSBub3JtYWxpemVVbml0cyh1bml0cyk7XG4gICAgICAgICAgICByZXR1cm4gdGhpc1snYXMnICsgdW5pdHMuY2hhckF0KDApLnRvVXBwZXJDYXNlKCkgKyB1bml0cy5zbGljZSgxKSArICdzJ10oKTtcbiAgICAgICAgfSxcblxuICAgICAgICBsYW5nIDogbW9tZW50LmZuLmxhbmcsXG5cbiAgICAgICAgdG9Jc29TdHJpbmcgOiBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAvLyBpbnNwaXJlZCBieSBodHRwczovL2dpdGh1Yi5jb20vZG9yZGlsbGUvbW9tZW50LWlzb2R1cmF0aW9uL2Jsb2IvbWFzdGVyL21vbWVudC5pc29kdXJhdGlvbi5qc1xuICAgICAgICAgICAgdmFyIHllYXJzID0gTWF0aC5hYnModGhpcy55ZWFycygpKSxcbiAgICAgICAgICAgICAgICBtb250aHMgPSBNYXRoLmFicyh0aGlzLm1vbnRocygpKSxcbiAgICAgICAgICAgICAgICBkYXlzID0gTWF0aC5hYnModGhpcy5kYXlzKCkpLFxuICAgICAgICAgICAgICAgIGhvdXJzID0gTWF0aC5hYnModGhpcy5ob3VycygpKSxcbiAgICAgICAgICAgICAgICBtaW51dGVzID0gTWF0aC5hYnModGhpcy5taW51dGVzKCkpLFxuICAgICAgICAgICAgICAgIHNlY29uZHMgPSBNYXRoLmFicyh0aGlzLnNlY29uZHMoKSArIHRoaXMubWlsbGlzZWNvbmRzKCkgLyAxMDAwKTtcblxuICAgICAgICAgICAgaWYgKCF0aGlzLmFzU2Vjb25kcygpKSB7XG4gICAgICAgICAgICAgICAgLy8gdGhpcyBpcyB0aGUgc2FtZSBhcyBDIydzIChOb2RhKSBhbmQgcHl0aG9uIChpc29kYXRlKS4uLlxuICAgICAgICAgICAgICAgIC8vIGJ1dCBub3Qgb3RoZXIgSlMgKGdvb2cuZGF0ZSlcbiAgICAgICAgICAgICAgICByZXR1cm4gJ1AwRCc7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHJldHVybiAodGhpcy5hc1NlY29uZHMoKSA8IDAgPyAnLScgOiAnJykgK1xuICAgICAgICAgICAgICAgICdQJyArXG4gICAgICAgICAgICAgICAgKHllYXJzID8geWVhcnMgKyAnWScgOiAnJykgK1xuICAgICAgICAgICAgICAgIChtb250aHMgPyBtb250aHMgKyAnTScgOiAnJykgK1xuICAgICAgICAgICAgICAgIChkYXlzID8gZGF5cyArICdEJyA6ICcnKSArXG4gICAgICAgICAgICAgICAgKChob3VycyB8fCBtaW51dGVzIHx8IHNlY29uZHMpID8gJ1QnIDogJycpICtcbiAgICAgICAgICAgICAgICAoaG91cnMgPyBob3VycyArICdIJyA6ICcnKSArXG4gICAgICAgICAgICAgICAgKG1pbnV0ZXMgPyBtaW51dGVzICsgJ00nIDogJycpICtcbiAgICAgICAgICAgICAgICAoc2Vjb25kcyA/IHNlY29uZHMgKyAnUycgOiAnJyk7XG4gICAgICAgIH1cbiAgICB9KTtcblxuICAgIGZ1bmN0aW9uIG1ha2VEdXJhdGlvbkdldHRlcihuYW1lKSB7XG4gICAgICAgIG1vbWVudC5kdXJhdGlvbi5mbltuYW1lXSA9IGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHJldHVybiB0aG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mFsIDogZnVuY3Rpb24gKG51bWJlcikge1xuICAgICAgICAgICAgdmFyIGIgPSBudW1iZXIgJSAxMCxcbiAgICAgICAgICAgICAgICBvdXRwdXQgPSAodG9JbnQobnVtYmVyICUgMTAwIC8gMTApID09PSAxKSA/ICd0aCcgOlxuICAgICAgICAgICAgICAgIChiID09PSAxKSA/ICdzdCcgOlxuICAgICAgICAgICAgICAgIChiID09PSAyKSA/ICduZCcgOlxuICAgICAgICAgICAgICAgIChiID09PSAzKSA/ICdyZCcgOiAndGgnO1xuICAgICAgICAgICAgcmV0dXJuIG51bWJlciArIG91dHB1dDtcbiAgICAgICAgfVxuICAgIH0pO1xuXG4gICAgLyogRU1CRURfTEFOR1VBR0VTICovXG5cbiAgICAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqXG4gICAgICAgIEV4cG9zaW5nIE1vbWVudFxuICAgICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cblxuICAgIGZ1bmN0aW9uIG1ha2VHbG9iYWwoc2hvdWxkRGVwcmVjYXRlKSB7XG4gICAgICAgIC8qZ2xvYmFsIGVuZGVyOmZhbHNlICovXG4gICAgICAgIGlmICh0eXBlb2YgZW5kZXIgIT09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgb2xkR2xvYmFsTW9tZW50ID0gZ2xvYmFsU2NvcGUubW9tZW50O1xuICAgICAgICBpZiAoc2hvdWxkRGVwcmVjYXRlKSB7XG4gICAgICAgICAgICBnbG9iYWxTY29wZS5tb21lbnQgPSBkZXByZWNhdGUoXG4gICAgICAgICAgICAgICAgICAgIFwiQWNjZXNzaW5nIE1vbWVudCB0aHJvdWdoIHRoZSBnbG9iYWwgc2NvcGUgaXMgXCIgK1xuICAgICAgICAgICAgICAgICAgICBcImRlcHJlY2F0ZWQsIGFuZCB3aWxsIGJlIHJlbW92ZWQgaW4gYW4gdXBjb21pbmcgXCIgK1xuICA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KSwgby50aW1lRm9ybWF0KTtcbiAgICBzZXRUaW1lKHJlZiwgdmFsdWUpO1xuICAgIHVwZGF0ZVRpbWUoKTtcbiAgICB1cGRhdGVJbnB1dCgpO1xuICAgIGlmICghby5kYXRlICYmIG8uYXV0b0Nsb3NlKSB7XG4gICAgICBoaWRlKCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGhpZGVUaW1lTGlzdCgpO1xuICAgIH1cbiAgICBhcGkuZW1pdCgnZGF0YScsIGdldERhdGVTdHJpbmcoKSk7XG4gICAgYXBpLmVtaXQoJ3RpbWUnLCB2YWx1ZSk7XG4gIH1cblxuICBmdW5jdGlvbiBnZXREYXRlICgpIHtcbiAgICByZXR1cm4gcmVmLnRvRGF0ZSgpO1xuICB9XG5cbiAgZnVuY3Rpb24gZ2V0RGF0ZVN0cmluZyAoZm9ybWF0KSB7XG4gICAgcmV0dXJuIHJlZi5mb3JtYXQoZm9ybWF0IHx8IG8uaW5wdXRGb3JtYXQpO1xuICB9XG5cbiAgZnVuY3Rpb24gZ2V0TW9tZW50ICgpIHtcbiAgICByZXR1cm4gcmVmLmNsb25lKCk7XG4gIH1cblxuICByZXR1cm4gYXBpO1xufVxuXG5jYWxlbmRhci5maW5kID0gZmluZDtcblxubW9kdWxlLmV4cG9ydHMgPSBjYWxlbmRhcjtcbiJdfQ== (62) });
jimmybyrum/cdnjs
ajax/libs/rome/0.3.5/rome.js
JavaScript
mit
438,226
/* * The Aegis CSS Framework * Licensed under Apache. * http://www.apache.org/licenses/LICENSE-2.0 */ .grid-12 { width: 92%; margin-left: 4%; margin-right: 4%; } .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-13, .col-14, .col-15, .col-16 { display: inline; position: relative; float: left; margin-left: 1%; margin-right: 1%; } .grid-12 .col-3 { width: 23%; } .grid-12 .col-6 { width: 48%; } .grid-12 .col-9 { width: 73%; } .grid-12 .col-12 { width: 98%; } .alpha, .alphamega { margin-left: 0; } .omega, .alphamega { margin-right: 0; } .grid-12 .col-1 { width: 6.333%; } .grid-12 .col-2 { width: 14.666%; } .grid-12 .col-4 { width: 31.333%; } .grid-12 .col-5 { width: 39.666%; } .grid-12 .col-7 { width: 56.333%; } .grid-12 .col-8 { width: 64.666%; } .grid-12 .col-10 { width: 81.333%; } .grid-12 .col-11 { width: 89.666%; } .grid-12 .pfx-3 { padding-left: 25%; } .grid-12 .pfx-6 { padding-left: 50%; } .grid-12 .pfx-9 { padding-left: 75%; } .grid-12 .pfx-1 { padding-left: 8.333%; } .grid-12 .pfx-2 { padding-left: 16.666%; } .grid-12 .pfx-4 { padding-left: 33.333%; } .grid-12 .pfx-5 { padding-left: 41.666%; } .grid-12 .pfx-7 { padding-left: 58.333%; } .grid-12 .pfx-8 { padding-left: 66.666%; } .grid-12 .pfx-10 { padding-left: 83.333%; } .grid-12 .pfx-11 { padding-left: 91.666%; } .grid-12 .sfx-3 { padding-right: 25%; } .grid-12 .sfx-6 { padding-right: 50%; } .grid-12 .sfx-9 { padding-right: 75%; } .grid-12 .sfx-1 { padding-right: 8.333%; } .grid-12 .sfx-2 { padding-right: 16.666%; } .grid-12 .sfx-4 { padding-right: 33.333%; } .grid-12 .sfx-5 { padding-right: 41.666%; } .grid-12 .sfx-7 { padding-right: 58.333%; } .grid-12 .sfx-8 { padding-right: 66.666%; } .grid-12 .sfx-10 { padding-right: 83.333%; } .grid-12 .sfx-11 { padding-right: 91.666%; } .grid-12 .push-1 { left: 8.333%; } .grid-12 .push-2 { left: 16.667%; } .grid-12 .push-3 { left: 25.0%; } .grid-12 .push-4 { left: 33.333%; } .grid-12 .push-5 { left: 41.667%; } .grid-12 .push-6 { left: 50.0%; } .grid-12 .push-7 { left: 58.333%; } .grid-12 .push-8 { left: 66.667%; } .grid-12 .push-9 { left: 75.0%; } .grid-12 .push-10 { left: 83.333%; } .grid-12 .push-11 { left: 91.667%; } .grid-12 .pull-1 { left: -8.333%; } .grid-12 .pull-2 { left: -16.667%; } .grid-12 .pull-3 { left: -25.0%; } .grid-12 .pull-4 { left: -33.333%; } .grid-12 .pull-5 { left: -41.667%; } .grid-12 .pull-6 { left: -50.0%; } .grid-12 .pull-7 { left: -58.333%; } .grid-12 .pull-8 { left: -66.667%; } .grid-12 .pull-9 { left: -75.0%; } .grid-12 .pull-10 { left: -83.333%; } .grid-12 .pull-11 { left: -91.667%; } .clearfix:before, .clearfix:after { display: table; line-height: 0; content: ""; } .clearfix:after { clear: both; } .hide { display: none !important; } .show { display: block !important; } .no-top { margin-top: 0 !important; } .no-bot { margin-bottom: 0 !important; } .no-margin, .no-space { margin: 0 !important; } .no-padding, .no-space { padding: 0 !important; } .no-space { /* use with care, !important declarative */ } .no-anchor { text-decoration: none !important; outline: none; } .auto-width { width: auto !important; } .full-width { width: 100% !important; } .full-height { height: 100% !important; } .left { float: left !important; } .right { float: right !important; } .no-float { float: none !important; } .static-pos { position: static !important; } .rel-pos { position: relative !important; } .abs-pos { position: absolute !important; } .fix-pos { position: fixed !important; } .block { display: block !important; } .inline { display: inline !important; } .in-block { display: inline-block; vertical-align: middle; } .fade-1 { opacity: 0.1; } .fade-2 { opacity: 0.2; } .fade-3 { opacity: 0.3; } .fade-4 { opacity: 0.4; } .fade-5 { opacity: 0.5; } .fade-6 { opacity: 0.6; } .fade-7 { opacity: 0.7; } .fade-8 { opacity: 0.8; } .fade-9 { opacity: 0.9; } .list-unstyled, .nav, .form-errors, .form-horizontal .form-errors, .field-errors { margin: 0; padding: 0; list-style: none; } .list-inline { word-spacing: -0.26em; } .list-inline > li { display: inline-block; vertical-align: middle; padding: 0 0.5em; word-spacing: normal; } .nav { margin: 0; padding: 0; } .nav:before, .nav:after { display: table; line-height: 0; content: ""; } .nav:after { clear: both; } .nav-link, .navbar .navbar-link, .navbar .navbar-item > a, .tab-item a { -webkit-touch-callout: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; text-decoration: none !important; outline: none; cursor: pointer; display: block; } .nav-inline > li { display: inline-block; vertical-align: middle; padding: 0; } .navbar { position: fixed; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; background-color: #8fc717; border-bottom: 1px solid #80b314; z-index: 1000; width: 100%; top: 0; } .navbar .navbar-inner { height: 40px; } .navbar .navbar-item { float: left; display: block; -webkit-transition: background 0.2s ease; -webkit-transition-delay: 0.1s; -moz-transition: background 0.2s ease 0.1s; transition: background 0.2s ease 0.1s; } .navbar .navbar-item:hover, .navbar .navbar-item.active { background-color: #80b314; } .navbar .navbar-link, .navbar .navbar-item > a { color: white; line-height: 40px; padding: 0 12px; } .navbar .navbar-link:hover, .navbar .navbar-item > a:hover { color: white; } .navbar .crest { display: block; float: left; -webkit-touch-callout: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; text-decoration: none !important; outline: none; cursor: pointer; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 6px 12px 5px 0; line-height: 40px; height: 40px; color: transparent; } .navbar .crest:hover { background-color: transparent; } .dropdown { position: relative; } .dropdown .dropdown-nav, .dropdown .dropdown-wrapper { display: none; position: absolute; top: 100%; left: 0; background-color: white; border: 1px solid #eeeeee; border-top: none; z-index: 400; } .dropdown:hover .dropdown-nav, .dropdown:hover .dropdown-wrapper, .dropdown.active .dropdown-nav, .dropdown.active .dropdown-wrapper { display: block; } .navbar .dropdown-nav { border-color: #80b314; } .navbar .dropdown-nav > li, .navbar .dropdown-wrapper > .nav > li { float: none; } .mask, .mask-content { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.8); z-index: 500; } .mask-content { background-color: transparent; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; z-index: 501; padding: 20px 10px; } .modal-mask { position: fixed; z-index: 2000; } .modal { position: fixed; width: 500px; margin-left: -250px; top: 15%; left: 50%; overflow: hidden; background: white; z-index: 2001; border: 1px solid #dddddd; -webkit-box-shadow: 1px 2px 7px rgba(0, 0, 0, 0.15); -moz-box-shadow: 1px 2px 7px rgba(0, 0, 0, 0.15); box-shadow: 1px 2px 7px rgba(0, 0, 0, 0.15); -webkit-background-clip: padding; background-clip: padding-box; } .modal.lined .modal-header { border-bottom: 1px solid #eeeeee; } .modal.lined .modal-footer { border-top: 1px solid #eeeeee; } .modal.special { border-top-width: 10px; } .modal.wide { width: 800px; margin-left: -400px; } .modal.primary { border-color: #80b314; -webkit-box-shadow: 1px 2px 7px #a9d44d; -moz-box-shadow: 1px 2px 7px #a9d44d; box-shadow: 1px 2px 7px #a9d44d; } .modal.info { border-color: #0085f1; -webkit-box-shadow: 1px 2px 7px #a5d6ff; -moz-box-shadow: 1px 2px 7px #a5d6ff; box-shadow: 1px 2px 7px #a5d6ff; } .modal.alert { border-color: #d70b0b; -webkit-box-shadow: 1px 2px 7px #ffe2e2; -moz-box-shadow: 1px 2px 7px #ffe2e2; box-shadow: 1px 2px 7px #ffe2e2; } .modal-close { -webkit-touch-callout: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; text-decoration: none !important; outline: none; cursor: pointer; position: absolute; top: 4px; right: 0; font-size: 1.5em; z-index: 1; color: #dddddd; } .modal-close:hover { color: #e20000; } .modal-section { padding: 1em 2em; position: relative; overflow: hidden; } .modal-header { padding-top: 0; padding-bottom: 0; } .overlay-spinner { position: relative; top: 50%; margin-top: -45px; text-align: center; text-transform: uppercase; } .sidewinder { position: relative; width: 200px; height: auto; padding: 2em 0; background: white; border-right: 1px solid #dddddd; font-size: 13px; z-index: 1; } .sidewinder a { border-left: 5px solid white; color: #333333; margin-left: 10px; padding: 5px 0 5px 10px; -webkit-transition: background, 0.3s, ease, 0.3s; -moz-transition: background, 0.3s, ease, 0.3s; transition: background, 0.3s, ease, 0.3s; } .sidewinder a:hover { color: #8fc717; -webkit-transition: border-color, 0.3s, ease, 0.2s; -moz-transition: border-color, 0.3s, ease, 0.2s; transition: border-color, 0.3s, ease, 0.2s; } .sidewinder .sw-l1 { position: relative; } .sidewinder .sw-l1 > a { border-left-color: #dddddd; font-weight: bold; color: #595959; } .sidewinder .sw-l1:hover .arrow { border-left-color: #8fc717; } .sidewinder .sw-l1:hover > a { border-left-color: #8fc717; color: #8fc717; } .sidewinder .sw-l1 .arrow { display: block; position: absolute; top: 10px; right: 15px; width: 0; height: 0; border-left: 5px solid #333333; border-top: 5px solid transparent; border-bottom: 5px solid transparent; -webkit-transition: -webkit-transform 1s ease; -webkit-transition-delay: 0.1s; -moz-transition: -moz-transform 1s ease 0.1s; transition: transform 1s ease 0.1s; } .sidewinder .unwound > a { color: #333333; } .sidewinder .unwound .arrow { -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); transform: rotate(90deg); } .sidewinder .unwound:hover > a, .sidewinder .unwound:hover .arrow { border-left-color: #8fc717; } .sidewinder .sw-l1.active > a { color: #80b314; border-left-color: #80b314; } .sidewinder .sw-l1.active > .arrow { border-left-color: #80b314; } .sidewinder .sw-l2 a { border-left: 2px solid #dddddd; margin-left: 13px; } .sidewinder .sw-l2 a:hover { color: #259dff; border-left-color: #58b4ff; } .sidewinder .sw-l2 .active a { font-weight: bold; color: #259dff; border-left-color: #259dff; } html, body { height: 100%; } body { margin: 0; padding: 0; border: none; font-size: 13px; font-weight: 400; line-height: 21px; color: #555555; } .fixed-width { width: 1024px; margin: 0 auto; } .fixed-width:before, .fixed-width:after { display: table; line-height: 0; content: ""; } .fixed-width:after { clear: both; } .page-wrapper { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding-top: 40px; min-height: 100%; } .page-content { overflow: auto; padding-top: 40px; padding-bottom: 50px; } p, body, textarea, input, select { font-family: "Droid Sans", "sans-serif"; font-weight: normal; } h1, h2, h3, h4, h5, h6 { font-family: "Droid Sans", "sans-serif"; font-weight: 400; text-rendering: optimizeLegibility; margin: 13px 0; } h1.splash, h2.splash, h3.splash, h4.splash, h5.splash, h6.splash { font-weight: bold; text-shadow: 2px 2px 3px #555555; } h1, h2 { line-height: 42px; } h4, h5, h6, p { line-height: 21px; } h1 { font-size: 3.38em; } h1.splash { font-size: 5.07em; line-height: 1.1em; margin: 0.5em 0; } h2 { font-size: 2.62em; } h3 { line-height: 33.978px; font-size: 2.08em; } h4 { font-size: 1.62em; } h5 { font-size: 1.15em; margin: 6.5px 0; } h6 { font-size: 1.08em; font-weight: bold; text-transform: uppercase; margin: 2px 0; } p { font-size: 13px; margin: 0 0 13px; } a { color: #80b314; text-decoration: none; } a:hover { color: #0085f1; text-decoration: underline; } .caps { text-transform: uppercase; } .hl { color: #0085f1; } code, pre { font-family: "Droid Sans Mono", "Consolas", "Lucida Console", "Ubuntu Mono", monospace; padding: 1em 1em; background-color: #fbfbfb; color: #259dff; border: 1px solid #e1e1e1; margin-bottom: 1em; white-space: pre-wrap; overflow-wrap: break-word; word-wrap: break-word; } code:empty, pre:empty { display: none; } code { padding: 0.31em 0.38em 0.08em; margin: 0 0.2em; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } @font-face { font-family: 'Lyfeicons'; src: url("fonts/Lyfeicons.eot"); src: local("Lyfeicons"), local("lyfeiconsregular"), url("fonts/Lyfeicons.eot?#iefix") format("embedded-opentype"), url("fonts/Lyfeicons.woff") format("woff"), url("fonts/Lyfeicons.ttf") format("truetype"), url("fonts/Lyfeicons.svg#lyfeiconsregular") format("svg"); font-weight: normal; font-style: normal; } [class^="icon-"], [class*=" icon-"] { font-family: 'Lyfeicons'; font-weight: normal; font-style: normal; text-decoration: inherit; -webkit-font-smoothing: antialiased; display: inline; margin-right: 0.4em; } [class^="icon-"]:before, [class*=" icon-"]:before { text-decoration: inherit; display: inline-block; speak: none; } a [class^="icon-"], a [class*=" icon-"], a [class^="icon-"]:before, a [class*=" icon-"]:before { display: inline; } /* makes the font 33% larger relative to the icon container */ .icon-big:before { vertical-align: -10%; font-size: 1.5em; } .icon-2x { font-size: 2em; line-height: 1em; } .icon-3x { font-size: 3em; line-height: 1em; } .icon-4x { font-size: 4em; line-height: 1em; } .icon-plus:before { content: '\E001'; } .icon-minus:before { content: '\E002'; } .icon-pl:before { content: '\E003'; } .icon-playlyfe:before { content: '\E004'; } .icon-cross:before { content: '\E005'; } .icon-tick:before { content: '\E006'; } .icon-edit:before { content: '\E007'; } .icon-hamburger:before { content: '\E008'; } .icon-cog:before { content: '\E009'; } .icon-cog-double:before { content: '\E00A'; } .icon-eye:before { content: '\E00B'; } .icon-retry:before { content: '\E00C'; } .icon-hellipsis:before { content: '\E00D'; } .icon-vellipsis:before { content: '\E00E'; } .icon-cloud:before { content: '\E00F'; } .icon-approval:before, .icon-dodecagram:before { content: '\E010'; } .icon-trash:before { content: '\E011'; } .icon-copy:before { content: '\E012'; } .icon-exit:before { content: '\E013'; } .icon-loop:before { content: '\E014'; } .icon-refresh:before { content: '\E015'; } .icon-feed:before { content: '\E016'; } .icon-user:before { content: '\E017'; } .icon-calendar:before { content: '\E018'; } .icon-search:before { content: '\E019'; } .icon-settings:before { content: '\E01A'; } .icon-castle:before { content: '\E01B'; } .icon-triskelion-light:before { content: '\E01C'; } .icon-triskelion-dark:before { content: '\E01D'; } .icon-trophy:before { content: '\E01E'; } .icon-left:before { content: '\E01F'; } .icon-right:before { content: '\E020'; } .icon-up:before { content: '\E021'; } .icon-down:before { content: '\E022'; } .icon-double-right:before { content: '\E023'; } .icon-double-left:before { content: '\E024'; } .icon-help:before, .icon-round-question:before { content: '\E025'; } .icon-round-question-fill:before { content: '\E026'; } .icon-round-warning:before { content: '\E027'; } .icon-round-warning-fill:before { content: '\E028'; } .icon-warning:before, .field-errors li:before { content: '\E029'; } .icon-warning-fill:before { content: '\E02A'; } .icon-about:before, .icon-round-info:before { content: '\E02B'; } .icon-round-info-fill:before { content: '\E02C'; } .icon-round-asterisk:before { content: '\E02D'; } .icon-new:before, .icon-round-asterisk-fill:before { content: '\E02E'; } .icon-round-plus:before { content: '\E02F'; } .icon-round-plus-fill:before { content: '\E030'; } .icon-round-minus:before { content: '\E031'; } .icon-round-minus-fill:before { content: '\E032'; } .icon-round-cross:before { content: '\E033'; } .icon-round-cross-fill:before { content: '\E034'; } .icon-round-tick:before { content: '\E035'; } .icon-round-tick-fill:before { content: '\E036'; } .icon-new-object:before { content: '\E038'; } .icon-message:before { content: '\E037'; } .icon-conversation:before { content: '\E039'; } .icon-bell:before { content: '\E03A'; } .icon-target:before { content: '\E03B'; } .icon-checklist:before { content: '\E03C'; } .icon-activity:before, .icon-hourglass:before { content: '\E03D'; } .icon-round-hourglass:before { content: '\E03E'; } .icon-power-off:before { content: '\E03F'; } .icon-public:before, .icon-world:before { content: '\E040'; } .icon-private:before, .icon-lock:before { content: '\E041'; } .icon-unlock:before { content: '\E042'; } .icon-protected:before, .icon-key:before { content: '\E043'; } .icon-object:before { content: '\E044'; } .icon-mobile:before { content: '\E045'; } .icon-tablet:before { content: '\E046'; } .icon-laptop:before { content: '\E047'; } .icon-tv:before { content: '\E048'; } .icon-play:before { content: '\E049'; } .icon-contract:before { content: '\E04A'; } .icon-expand:before { content: '\E04B'; } .icon-dice:before { content: '\E04C'; } .icon-point:before { content: '\E04D'; } .icon-set:before { content: '\E04E'; } .icon-state:before { content: '\E04F'; } .icon-badge:before { content: '\E050'; } .icon-star-fill:before { content: '\E051'; } .icon-star:before { content: '\E052'; } .icon-circle:before { content: '\E053'; } .icon-circle-fill:before { content: '\E054'; } .icon-circle-half-pre:before { content: '\E055'; } .icon-circle-half-post:before { content: '\E056'; } .icon-token:before { content: '\E057'; } .icon-code:before { content: '\E058'; } .icon-user-plus:before { content: '\E059'; } .icon-user-minus:before { content: '\E05A'; } .icon-team:before { content: '\E05B'; } .icon-process:before { content: '\E05C'; } .icon-sub_process:before { content: '\E05D'; } .icon-node-plus:before { content: '\E05E'; } .icon-node-cross:before { content: '\E05F'; } .icon-node-minus:before { content: '\E060'; } .icon-task:before { content: '\E061'; } .icon-gateway-exclusive:before { content: '\E062'; } .icon-gateway-parallel:before { content: '\E063'; } .icon-link:before { content: '\E064'; } .icon-unlink:before { content: '\E065'; } .icon-role:before, .icon-bow:before { content: '\E066'; } .icon-lane:before { content: '\E067'; } .icon-launch:before, .icon-shuttle:before { content: '\E068'; } .icon-simulate:before, .icon-shuttle-loop:before { content: '\E069'; } .icon-rank:before { content: '\E06A'; } .icon-crown:before { content: '\E06B'; } .icon-leaderboard:before, .icon-podium:before { content: '\E06C'; } .icon-download:before, .icon-cloud-down:before { content: '\E06D'; } .icon-upload:before, .icon-cloud-up:before { content: '\E06E'; } .icon-document:before { content: '\E06F'; } .icon-pie:before { content: '\E070'; } .icon-bars:before { content: '\E071'; } .icon-invite:before, .icon-mail:before { content: '\E072'; } .icon-wand:before { content: '\E073'; } .icon-tag:before { content: '\E074'; } .icon-braces:before { content: '\E075'; } .icon-prompt:before { content: '\E076'; } .icon-sigma:before { content: '\E077'; } .icon-expand-double:before { content: '\E078'; } .icon-contract-double:before { content: '\E079'; } .icon-compass:before { content: '\E07A'; } .icon-tracker:before { content: '\E07B'; } .icon-set-square:before { content: '\E07C'; } .icon-sandbox:before { content: '\E07D'; } .icon-clock:before { content: '\E07E'; } .icon-wrench:before { content: '\E07F'; } .icon-hammer:before { content: '\E080'; } .icon-wrench-hammer:before { content: '\E081'; } .icon-face-happy:before { content: '\E082'; } .icon-face-dead:before { content: '\E083'; } .icon-face-sad:before { content: '\E084'; } .icon-user-cross:before { content: '\E085'; } .icon-user-disable:before { content: '\E086'; } .icon-user-key:before { content: '\E087'; } .icon-rules:before { content: '\E088'; } .icon-grid:before { content: '\E089'; } .icon-list:before { content: '\E08A'; } .icon-round-disable:before { content: '\E08B'; } .icon-round-disable-fill:before { content: '\E08C'; } .icon-paper-plane:before { content: '\E08D'; } .icon-flag:before { content: '\E08F'; } .icon-flag-fill:before { content: '\E08E'; } .icon-camera:before { content: '\E090'; } .icon-bookmark:before { content: '\E091'; } .icon-heart:before { content: '\E093'; } .icon-heart-fill:before { content: '\E092'; } .icon-reset:before, .icon-undo:before, .icon-back:before { content: '\E094'; } .icon-redo:before, .icon-forward:before { content: '\E095'; } .icon-bag:before { content: '\E096'; } .icon-marker:before { content: '\E097'; } .icon-pin-small:before { content: '\E098'; } .icon-pin-big:before { content: '\E099'; } .icon-pin-disable:before { content: '\E09A'; } .icon-bootstrap:before, .icon-shine:before { content: '\E09B'; } .icon-gamepad:before { content: '\E09C'; } .icon-blackboard:before { content: '\E09D'; } .icon-book:before { content: '\E09E'; } form { margin: 0 0 21px; } label, input, button, select, textarea { font: normal 13px/21px "Droid Sans", "sans-serif"; } legend { font-size: 19.5px; line-height: 42px; color: #555555; border-bottom: 1px solid #dddddd; margin-bottom: 21px; width: 100%; } legend.small { font-size: 14px; line-height: 21px; border-bottom: none; margin-bottom: 5px; } fieldset { padding: 0; margin: 0 0 21px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; border: none; width: 100%; } fieldset.framed { position: relative; padding: 30px 10px 10px; border: 1px solid #dddddd; margin-top: 20px; } fieldset.framed > legend { font-size: 14px; line-height: 21px; position: absolute; top: -13px; left: 10px; width: auto; height: 21px; text-align: center; background-color: white; padding: 1px 5px 2px; margin: 0; border: 1px solid #dddddd; } fieldset[class*='col-'] { display: block; } .form-row, .form-errors, .form-horizontal .form-errors { margin-bottom: 5px; } .form-row button, .form-errors button, .form-horizontal .form-errors button, .form-row .button, .form-errors .button { margin-bottom: 0.64286em; } .form-row .button-group, .form-errors .button-group { margin-bottom: 9px; } .form-row .button-group > .button, .form-errors .button-group > .button { margin-bottom: 0; } .form-row:before, .form-errors:before, .form-horizontal .form-errors:before, .form-row:after, .form-errors:after, .form-horizontal .form-errors:after { display: table; line-height: 0; content: ""; } .form-row:after, .form-errors:after, .form-horizontal .form-errors:after { clear: both; } .form-row .snippet, .form-errors .snippet { height: 2.38462em; line-height: 2.38462em; padding-top: 0; padding-bottom: 0; max-width: 100%; margin: 0 0 0.64286em; } label { display: block; margin-bottom: 5px; } label.optional:after { content: '(optional)'; margin-left: 3px; color: #259dff; } label.required:after { content: '*'; margin-left: 3px; color: #259dff; } label.error { color: #e20000; } .form-errors, .form-horizontal .form-errors { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; background-color: #ffe2e2; margin: 5px 0; padding: 5px 0; border: 1px solid #ffafaf; } .field-errors { margin: -0.5em 0 0.5em 15px; font-size: 12px; } .form-errors, .form-horizontal .form-errors, .field-errors { color: #e20000; } .form-errors li, .form-horizontal .form-errors li, .field-errors li { margin: 2px 4px; position: relative; } .field-errors li:before { font-family: "Lyfeicons"; position: absolute; left: -14px; display: block; } .field-wrapper, .form-actions { position: relative; overflow: hidden; } .form-actions { margin-top: 1em; } .form-actions .button { margin-bottom: 0; } select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .immutable { display: inline-block; vertical-align: middle; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-box-shadow: inset 0 1px 2px 0px rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 1px 2px 0px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px 0px rgba(0, 0, 0, 0.1); width: 100%; height: 2.38462em; padding: 0.30769em; margin: 0 0 0.69231em; border: 1px solid #bbbbbb; color: #555555; line-height: 1.61538em; } select.append, textarea.append, input[type="text"].append, input[type="password"].append, input[type="datetime"].append, input[type="datetime-local"].append, input[type="date"].append, input[type="month"].append, input[type="time"].append, input[type="week"].append, input[type="number"].append, input[type="email"].append, input[type="url"].append, input[type="search"].append, input[type="tel"].append, input[type="color"].append, .immutable.append { border-left: none; } select.prepend, textarea.prepend, input[type="text"].prepend, input[type="password"].prepend, input[type="datetime"].prepend, input[type="datetime-local"].prepend, input[type="date"].prepend, input[type="month"].prepend, input[type="time"].prepend, input[type="week"].prepend, input[type="number"].prepend, input[type="email"].prepend, input[type="url"].prepend, input[type="search"].prepend, input[type="tel"].prepend, input[type="color"].prepend, .immutable.prepend { border-right: none; } .input_container { height: auto; } textarea { height: auto; resize: vertical; } input[type="radio"], input[type="checkbox"] { float: left; margin: 4px 7px 0 0; line-height: 21px; cursor: pointer; } input[type="file"], input[type="image"], input[type="submit"], input[type="reset"], input[type="button"], input[type="radio"], input[type="checkbox"] { width: auto; } select { -webkit-border-radius: 0; border-radius: 0; background-color: white; line-height: 31px; height: 31px; } select[multiple], select[size] { height: auto; } textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .input_container, .immutable { background-color: white; -webkit-border-radius: 0px; border-radius: 0px; -webkit-transition: border linear, box-shadow linear; -webkit-transition-delay: 0.2s, 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; } textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .input_container:focus, .immutable:focus { border-color: #8fc717; outline: 0; outline: thin dotted \9; /* IE6-9 */ -webkit-box-shadow: inset 0 1px 2px 0px #cff186; -moz-box-shadow: inset 0 1px 2px 0px #cff186; box-shadow: inset 0 1px 2px 0px #cff186; } textarea.active_container, input[type="text"].active_container, input[type="password"].active_container, input[type="datetime"].active_container, input[type="datetime-local"].active_container, input[type="date"].active_container, input[type="month"].active_container, input[type="time"].active_container, input[type="week"].active_container, input[type="number"].active_container, input[type="email"].active_container, input[type="url"].active_container, input[type="search"].active_container, input[type="tel"].active_container, input[type="color"].active_container, .input_container.active_container, .immutable.active_container { border-color: #8fc717; outline: 0; outline: thin dotted \9; /* IE6-9 */ -webkit-box-shadow: inset 0 1px 2px 0 #cff186; -moz-box-shadow: inset 0 1px 2px 0 #cff186; box-shadow: inset 0 1px 2px 0 #cff186; } textarea.error, input[type="text"].error, input[type="password"].error, input[type="datetime"].error, input[type="datetime-local"].error, input[type="date"].error, input[type="month"].error, input[type="time"].error, input[type="week"].error, input[type="number"].error, input[type="email"].error, input[type="url"].error, input[type="search"].error, input[type="tel"].error, input[type="color"].error, .input_container.error, .immutable.error { border-color: #e20000; outline: 0; outline: thin dotted \9; /* IE6-9 */ -webkit-box-shadow: inset 0 1px 2px 0px #ff7c7c; -moz-box-shadow: inset 0 1px 2px 0px #ff7c7c; box-shadow: inset 0 1px 2px 0px #ff7c7c; } .immutable { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: text; border-color: #e6e6e6; -webkit-box-shadow: inset 0 1px 2px white; -moz-box-shadow: inset 0 1px 2px white; box-shadow: inset 0 1px 2px white; } input[class*="col-"], select[class*="col-"], textarea[class*="col-"], label[class*="col-"], .snippet[class*="col-"], .immutable[class*="col-"] { float: none; margin-left: 0; margin-right: 0; } input[class*="col-"].no-alpha, select[class*="col-"].no-alpha, textarea[class*="col-"].no-alpha, label[class*="col-"].no-alpha, .snippet[class*="col-"].no-alpha, .immutable[class*="col-"].no-alpha { margin-left: 1%; } input[class*="col-"].no-omega, select[class*="col-"].no-omega, textarea[class*="col-"].no-omega, label[class*="col-"].no-omega, .snippet[class*="col-"].no-omega, .immutable[class*="col-"].no-omega { margin-right: 1%; } .append label[class*="col-"], .append input[class*="col-"], .append select[class*="col-"], .append .snippet[class*="col-"], .append .immutable[class*="col-"], .prepend label[class*="col-"], .prepend input[class*="col-"], .prepend select[class*="col-"], .prepend .snippet[class*="col-"], .prepend .immutable[class*="col-"] { display: inline-block; vertical-align: middle; } .append label, .prepend label { margin: 0 0 0.69231em; } .append { /* use .companion to extend append behaviour to other elements */ } .append .add-on, .append .button, .append .companion { margin-left: -1px; } .append .button { margin-right: 0; } .prepend .add-on, .prepend .button, .prepend .companion { margin-right: -1px; } .add-on { display: inline-block; vertical-align: middle; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75); text-align: center; background-color: #dddddd; line-height: 1.61538em; height: 2.38462em; width: auto; min-width: 16px; padding: 0.30769em; border: 1px solid #bbbbbb; } .disabled, *[disabled] { opacity: 0.65; -webkit-touch-callout: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; cursor: not-allowed; } .form-search input, .form-search textarea, .form-search select, .form-search .help-inline, .form-search .immutable, .form-search .prepend, .form-search .append, .form-inline input, .form-inline textarea, .form-inline select, .form-inline .help-inline, .form-inline .immutable, .form-inline .prepend, .form-inline .append, .form-horizontal input, .form-horizontal textarea, .form-horizontal select, .form-horizontal .help-inline, .form-horizontal .immutable, .form-horizontal .prepend, .form-horizontal .append { display: inline-block; vertical-align: middle; margin-bottom: 0; vertical-align: middle; } .form-horizontal .form-errors { margin-left: 155px; } .form-horizontal .form-row, .form-horizontal .form-errors { margin-bottom: 20px; } .form-horizontal .field-label { float: left; padding-top: 5px; text-align: right; width: 135px; } .form-horizontal .field-wrapper, .form-horizontal .form-actions { margin-left: 155px; } .form-horizontal .field-wrapper.pad, .form-horizontal .pad.form-actions { padding-top: 6px; } .form-horizontal .field-wrapper .field-help, .form-horizontal .form-actions .field-help { top: 0; } .form-horizontal .append, .form-horizontal .prepend { width: 100%; } .tab-bar { position: relative; border-bottom: 1px solid #dddddd; z-index: 2; } .tab-item { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: border-color 0.3s ease; -webkit-transition-delay: 0.1s; -moz-transition: border-color 0.3s ease 0.1s; transition: border-color 0.3s ease 0.1s; float: left; display: block; text-align: center; height: 25px; line-height: 25px; vertical-align: baseline; border-bottom: 1px solid #dddddd; /* shift the items 1px to sit on tabbar's border */ margin-bottom: -1px; } .tab-item a { padding: 0 1em; color: #333333; -webkit-transition: color 0.2s ease; -webkit-transition-delay: 0.1s; -moz-transition: color 0.2s ease 0.1s; transition: color 0.2s ease 0.1s; } .tab-item:hover { border-bottom: 3px solid #8fc717; } .tab-item:hover a, .tab-item:hover a:hover { color: #8fc717; } .tab-item.live { font-weight: bold; border-bottom: 5px solid #80b314; -webkit-transition: border-width 0.3s ease; -webkit-transition-delay: 0.1s; -moz-transition: border-width 0.3s ease 0.1s; transition: border-width 0.3s ease 0.1s; } .tab-item.live a { color: #80b314; } .tab-item.live:hover { border-bottom-color: #a1e119; } .tab-item.live:hover a, .tab-item.live:hover a:hover { color: #a1e119; } .tab-content { position: relative; z-index: 1; overflow: hidden; } .button { display: inline-block; vertical-align: middle; -webkit-touch-callout: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; text-decoration: none !important; outline: none; cursor: pointer; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: background 0.2s ease, color 0.1s ease, border 0.6s ease; -webkit-transition-delay: 0.1s, 0.1s, 0.1s; -moz-transition: background 0.2s ease 0.1s, color 0.1s ease 0.1s, border 0.6s ease 0.1s; transition: background 0.2s ease 0.1s, color 0.1s ease 0.1s, border 0.6s ease 0.1s; font-size: 14px; line-height: 29px; height: 31px; text-align: center; padding: 0 1.53846em; margin: 0 10px 0 0; border-width: 1px; border-style: solid; -webkit-border-radius: 0px; border-radius: 0px; color: #555555; background-color: #eeeeee; border-color: #d4d4d4; } .button [class^="icon-"], .button [class*="icon-"] { margin-left: -0.2em; } .button.icon { /* smallest, icon-holder should be square */ padding: 0 7px; min-width: 31px; } .button.icon [class^="icon-"], .button.icon [class*="icon-"] { margin: 0; } .button.inline { /* medium, inline */ margin: 0 5px; height: 26px; line-height: 26px; padding: 0 8px; } .button.titan { /* gigantic, block */ font-size: 21px; height: 54px; line-height: 54px; padding: 0 27px; } .button.round { /* round buttons */ width: 8em; height: 8em; line-height: 1.5em; font-size: 1.5em; -webkit-border-radius: 4em; border-radius: 4em; } .button:hover, .button.hover { text-decoration: none; color: #222222; background-color: #dddddd; } .button:active, .button.active { text-decoration: none; color: #222222; background-color: #d0d0d0; border-color: #c8c8c8; } .button.important, .button.primary:hover, .button.primary.hover { color: white; background-color: #8fc717; border-color: #6e9912; } .button.important:hover, .button.important.hover, .button.primary:active, .button.primary.active { color: white; background-color: #6e9912; border-color: #4d6c0c; } .button.important:active, .button.important.active { color: white; background-color: #5d820f; border-color: #3d550a; } .button.accent, .button.info:hover, .button.info.hover { color: white; background-color: #259dff; border-color: #0085f1; } .button.accent:hover, .button.accent.hover, .button.info:active, .button.info.active { color: white; background-color: #0085f1; border-color: #0069be; } .button.accent:active, .button.accent.active { color: white; background-color: #0077d7; border-color: #005ba4; } .button.hazard, .button.alert:hover, .button.alert.hover { color: white; background-color: #e20000; border-color: #af0000; } .button.hazard:hover, .button.hazard.hover, .button.alert:active, .button.alert.active { color: white; background-color: #af0000; border-color: #7c0000; } .button.hazard:active, .button.hazard.active { color: white; background-color: #960000; border-color: #620000; } .button.disabled, .button[disabled] { opacity: 0.95; cursor: default !important; color: #bbbbbb !important; background-color: #fbfbfb !important; border-color: #d4d4d4 !important; } .button:focus { outline: 3px solid rgba(218, 145, 0, 0.5); outline-offset: -3px; } .button-group { display: inline-block; vertical-align: middle; white-space: nowrap; font-size: 0; } .button-group .button { margin: 0; } .button-group .button:nth-of-type(n+2) { border-left-width: 0; } .table { border-collapse: collapse; margin: 2em 0; width: 100%; /* cell sizes for table cells */ /* * constrain the width of long values * which can potentially destroy a layout */ /* table types */ /* condensed */ /* spaced out */ /* tables suited for lists */ /* alternating stripes */ /* with row highlights */ /* without borders */ /* reset for grid column classes */ } .table .cell-1 { width: 10%; } .table .cell-2 { width: 20%; } .table .cell-3 { width: 30%; } .table .cell-4 { width: 40%; } .table .cell-5 { width: 50%; } .table .cell-6 { width: 60%; } .table .cell-7 { width: 70%; } .table .cell-8 { width: 80%; } .table .cell-9 { width: 90%; } .table .cell-10 { width: 100%; } .table thead { background-color: white; } .table th { color: #999999; font-size: 14px; border: 1px solid #dddddd; padding: 6px 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; text-align: left; } .table tbody { background-color: white; } .table td { vertical-align: top; padding: 4px 8px; border: 1px solid #dddddd; } .table .constraint { max-width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .table .list-unstyled > li, .table .nav > li, .table .form-errors > li, .table .field-errors > li { padding-bottom: 0em; } .table tfoot { background-color: white; } .table tfoot td { text-align: center; } .table.condensed th, .table.condensed td { padding: 2px 4px; } .table.expanded th, .table.expanded td { padding: 10.5px 21px; } .table.listing > thead > tr > th { border: none; font-size: 16px; } .table.listing > tbody > tr { border-bottom: 1px solid #dddddd; } .table.listing > tbody > tr > td { border: none; } .table.striped tr:nth-child(2n) { background-color: #eeeeee; } .table.highlight > tbody > tr:hover { background-color: #f1f9ff; color: #004d8b; border-bottom: 1px solid #259dff; } .table.borderless th { font-size: 1.23077em; } .table.borderless td, .table.borderless th { border: none; } .table.fixed { table-layout: fixed; } .table.shrunk { width: auto; } .table table[class*='col-'] { display: table; } .footer { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: relative; margin-top: -50px; height: 50px; padding: 13px 0; border-top: 1px solid #80b314; background-color: white; z-index: 700; } .footer .nav { text-align: center; } .footer .nav li { padding-left: 20px; padding-right: 20px; color: #555555; } .footer .nav li a { color: #999999; } .footer .nav li a:hover { color: #80b314; } .media { margin: 10px; overflow: hidden; zoom: 1; } .media .content { /* use overflow for clearing floats and creating new layout context */ overflow: hidden; zoom: 1; } .media .image { /* you can float the image to either left or right */ float: left; margin-right: 10px; } .media .image img { display: block; } .media .image.right { margin-right: 0; margin-left: 10px; } .as-button { -webkit-touch-callout: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; text-decoration: none !important; outline: none; cursor: pointer; } .tag { position: relative; font-size: 12px; color: white; background-color: #71b1e6; border: 1px solid rgba(0, 0, 0, 0.3); padding: 0.1em 0.4em 0; margin: 0.1em 0.7em 0.2em 0; opacity: 0.8; display: inline-block; vertical-align: middle; -webkit-touch-callout: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; text-decoration: none !important; outline: none; cursor: pointer; } .tag:hover { opacity: 1; } hr { height: 0px; margin: 5px auto; border: none; border-bottom: 1px solid #eeeeee; } hr.dark { border-bottom-color: #555555; } hr.dotted { border-bottom-style: dotted; } hr.fat { margin: 20px auto; border-bottom-width: 5px; } .snippet { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; display: inline-block; vertical-align: middle; max-width: 400px; padding: 0.2em 0.5em; border: 1px dashed #80b314; overflow: hidden; text-overflow: ellipsis; font-weight: 700; } .snippet:hover { background-color: #8fc717; color: white; -webkit-transition: color 0.4s ease, background-color 0.4s ease; -webkit-transition-delay: 0.1s, 0.1s; -moz-transition: color 0.4s ease 0.1s, background-color 0.4s ease 0.1s; transition: color 0.4s ease 0.1s, background-color 0.4s ease 0.1s; } .tooltip { display: none; position: absolute; background-color: white; font-size: 0.85em; color: #777777; padding: 2px 10px; border: 1px solid #dddddd; z-index: 9999; -webkit-box-shadow: 0 0 4px -1px #dddddd; -moz-box-shadow: 0 0 4px -1px #dddddd; box-shadow: 0 0 4px -1px #dddddd; } .tooltip:before, .tooltip:after { display: block; content: ''; position: absolute; width: 0; height: 0; border: 5px solid transparent; left: 50%; margin-left: -5px; z-index: 2; } .tooltip:after { border-width: 7px; margin-left: -7px; z-index: 1; } .tooltip.north:before, .tooltip.north:after { top: -5px; border-top: 0; } .tooltip.north:before { border-bottom-color: white; } .tooltip.north:after { top: -7px; border-bottom-color: #dddddd; } .tooltip.south:before, .tooltip.south:after { bottom: -5px; border-bottom: 0; } .tooltip.south:before { border-top-color: white; } .tooltip.south:after { bottom: -7px; border-top-color: #dddddd; } .tooltip.east:before, .tooltip.east:after { right: 10px; left: auto; margin-left: 0; } .tooltip.east:after { margin-right: -2px; } .tooltip.west:before, .tooltip.west:after { left: 10px; margin-left: 0; } .tooltip.west:after { margin-left: -2px; } .tooltip.type-alert { background-color: #e20000; color: white; border-color: #af0000; -webkit-box-shadow: 0 0 4px -1px rgba(226, 0, 0, 0.5); -moz-box-shadow: 0 0 4px -1px rgba(226, 0, 0, 0.5); box-shadow: 0 0 4px -1px rgba(226, 0, 0, 0.5); } .tooltip.type-alert.north:before { border-bottom-color: #e20000; } .tooltip.type-alert.north:after { border-bottom-color: #af0000; } .tooltip.type-alert.south:before { border-top-color: #e20000; } .tooltip.type-alert.south:after { border-top-color: #af0000; } .tooltip.type-info { background-color: #259dff; color: white; border-color: #0085f1; -webkit-box-shadow: 0 0 4px -1px rgba(37, 157, 255, 0.5); -moz-box-shadow: 0 0 4px -1px rgba(37, 157, 255, 0.5); box-shadow: 0 0 4px -1px rgba(37, 157, 255, 0.5); } .tooltip.type-info.north:before { border-bottom-color: #259dff; } .tooltip.type-info.north:after { border-bottom-color: #0085f1; } .tooltip.type-info.south:before { border-top-color: #259dff; } .tooltip.type-info.south:after { border-top-color: #0085f1; } .tooltip.type-prime { background-color: #8fc717; color: white; border-color: #80b314; -webkit-box-shadow: 0 0 4px -1px rgba(143, 199, 23, 0.5); -moz-box-shadow: 0 0 4px -1px rgba(143, 199, 23, 0.5); box-shadow: 0 0 4px -1px rgba(143, 199, 23, 0.5); } .tooltip.type-prime.north:before { border-bottom-color: #8fc717; } .tooltip.type-prime.north:after { border-bottom-color: #80b314; } .tooltip.type-prime.south:before { border-top-color: #8fc717; } .tooltip.type-prime.south:after { border-top-color: #80b314; }
CyrusSUEN/cdnjs
ajax/libs/aegis/1.2.3/aegis.css
CSS
mit
46,154
/*! * MotaJS v0.3.5 * http://motapc97.github.io/motajs/ * * Released under the MIT license * http://opensource.org/licenses/MIT * * Project * https://github.com/motapc97/MotaJS/ * * Date: 2014-12-29T16:00Z *//*! Used http://css2sass.herokuapp.com/ to convert CSS into SASS *//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible;text-transform:none}select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input::-moz-focus-inner{border:0;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
tkirda/cdnjs
ajax/libs/motajs/0.3.5/mota.min.css
CSS
mit
2,376
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){function d(a){a=a.attributes;return"application/x-shockwave-flash"==a.type||f.test(a.src||"")}function e(a,b){return a.createFakeParserElement(b,"cke_flash","flash",!0)}var f=/\.swf(?:$|\?)/i;CKEDITOR.plugins.add("flash",{requires:"dialog,fakeobjects",lang:"af,ar,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn",icons:"flash", hidpi:!0,onLoad:function(){CKEDITOR.addCss("img.cke_flash{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(a){var b="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(a,"flash","properties")&&(b+=";object[align]; embed[allowscriptaccess,quality,scale,wmode]"); CKEDITOR.dialog.isTabEnabled(a,"flash","advanced")&&(b+=";object[id]{*}; embed[bgcolor]{*}(*)");a.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:b,requiredContent:"embed"}));a.ui.addButton&&a.ui.addButton("Flash",{label:a.lang.common.flash,command:"flash",toolbar:"insert,20"});CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js");a.addMenuItems&&a.addMenuItems({flash:{label:a.lang.flash.properties,command:"flash",group:"flash"}});a.on("doubleclick",function(a){var b=a.data.element; b.is("img")&&"flash"==b.data("cke-real-element-type")&&(a.data.dialog="flash")});a.contextMenu&&a.contextMenu.addListener(function(a){if(a&&a.is("img")&&!a.isReadOnly()&&"flash"==a.data("cke-real-element-type"))return{flash:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){var b=a.dataProcessor;(b=b&&b.dataFilter)&&b.addRules({elements:{"cke:object":function(b){var c=b.attributes;if(!(c.classid&&String(c.classid).toLowerCase()||d(b))){for(c=0;c<b.children.length;c++)if("cke:embed"==b.children[c].name){if(!d(b.children[c]))break; return e(a,b)}return null}return e(a,b)},"cke:embed":function(b){return d(b)?e(a,b):null}}},5)}})})();CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1});
extend1994/cdnjs
ajax/libs/ckeditor/4.5.9/plugins/flash/plugin.js
JavaScript
mit
2,444
(function() { var Connector, PROTOCOL_6, PROTOCOL_7, Parser, Version, _ref; _ref = require('./protocol'), Parser = _ref.Parser, PROTOCOL_6 = _ref.PROTOCOL_6, PROTOCOL_7 = _ref.PROTOCOL_7; Version = '2.2.2'; exports.Connector = Connector = (function() { function Connector(options, WebSocket, Timer, handlers) { this.options = options; this.WebSocket = WebSocket; this.Timer = Timer; this.handlers = handlers; this._uri = "ws" + (this.options.https ? "s" : "") + "://" + this.options.host + ":" + this.options.port + "/livereload"; this._nextDelay = this.options.mindelay; this._connectionDesired = false; this.protocol = 0; this.protocolParser = new Parser({ connected: (function(_this) { return function(protocol) { _this.protocol = protocol; _this._handshakeTimeout.stop(); _this._nextDelay = _this.options.mindelay; _this._disconnectionReason = 'broken'; return _this.handlers.connected(protocol); }; })(this), error: (function(_this) { return function(e) { _this.handlers.error(e); return _this._closeOnError(); }; })(this), message: (function(_this) { return function(message) { return _this.handlers.message(message); }; })(this) }); this._handshakeTimeout = new Timer((function(_this) { return function() { if (!_this._isSocketConnected()) { return; } _this._disconnectionReason = 'handshake-timeout'; return _this.socket.close(); }; })(this)); this._reconnectTimer = new Timer((function(_this) { return function() { if (!_this._connectionDesired) { return; } return _this.connect(); }; })(this)); this.connect(); } Connector.prototype._isSocketConnected = function() { return this.socket && this.socket.readyState === this.WebSocket.OPEN; }; Connector.prototype.connect = function() { this._connectionDesired = true; if (this._isSocketConnected()) { return; } this._reconnectTimer.stop(); this._disconnectionReason = 'cannot-connect'; this.protocolParser.reset(); this.handlers.connecting(); this.socket = new this.WebSocket(this._uri); this.socket.onopen = (function(_this) { return function(e) { return _this._onopen(e); }; })(this); this.socket.onclose = (function(_this) { return function(e) { return _this._onclose(e); }; })(this); this.socket.onmessage = (function(_this) { return function(e) { return _this._onmessage(e); }; })(this); return this.socket.onerror = (function(_this) { return function(e) { return _this._onerror(e); }; })(this); }; Connector.prototype.disconnect = function() { this._connectionDesired = false; this._reconnectTimer.stop(); if (!this._isSocketConnected()) { return; } this._disconnectionReason = 'manual'; return this.socket.close(); }; Connector.prototype._scheduleReconnection = function() { if (!this._connectionDesired) { return; } if (!this._reconnectTimer.running) { this._reconnectTimer.start(this._nextDelay); return this._nextDelay = Math.min(this.options.maxdelay, this._nextDelay * 2); } }; Connector.prototype.sendCommand = function(command) { if (this.protocol == null) { return; } return this._sendCommand(command); }; Connector.prototype._sendCommand = function(command) { return this.socket.send(JSON.stringify(command)); }; Connector.prototype._closeOnError = function() { this._handshakeTimeout.stop(); this._disconnectionReason = 'error'; return this.socket.close(); }; Connector.prototype._onopen = function(e) { var hello; this.handlers.socketConnected(); this._disconnectionReason = 'handshake-failed'; hello = { command: 'hello', protocols: [PROTOCOL_6, PROTOCOL_7] }; hello.ver = Version; if (this.options.ext) { hello.ext = this.options.ext; } if (this.options.extver) { hello.extver = this.options.extver; } if (this.options.snipver) { hello.snipver = this.options.snipver; } this._sendCommand(hello); return this._handshakeTimeout.start(this.options.handshake_timeout); }; Connector.prototype._onclose = function(e) { this.protocol = 0; this.handlers.disconnected(this._disconnectionReason, this._nextDelay); return this._scheduleReconnection(); }; Connector.prototype._onerror = function(e) {}; Connector.prototype._onmessage = function(e) { return this.protocolParser.process(e.data); }; return Connector; })(); }).call(this);
thenem/ts-euchre
node_modules/livereload-js/lib/connector.js
JavaScript
mit
5,148
<section> <h2 id="data-adapters-select-tag"> Can Select2 be used with a <code>&lt;select&gt;</code> tag? </h2> <p> Select2 was designed to be a replacement for the standard <code>&lt;select&gt;</code> boxes that are displayed by the browser, so by default it supports all options and operations that are available in a standard select box, but with added flexibility. There is no special configuration required to make Select2 work with a <code>&lt;select&gt;</code> tag. </p> <h3> Does Select2 support nesting options? </h3> <p> A standard <code>&lt;select&gt;</code> box can display nested options by wrapping them with in an <code>&lt;optgroup&gt;</code> tag. </p> {% highlight html linenos %} <select> <optgroup label="Group Name"> <option>Nested option</option> </optgroup> </select> {% endhighlight %} <h3> How many levels of nesting can there be? </h3> <p> Only a single level of nesting is allowed per the HTML specification. If you nest an <code>&lt;optgroup&gt;</code> within another <code>&lt;optgroup&gt;</code>, Select2 will not be able to detect the extra level of nesting and errors may be triggered as a result. </p> <h3> Can <code>&lt;optgroup&gt;</code> tags be made selectable? </h3> <p> No. This is a limitation of the HTML specification and is not a limitation that Select2 can overcome. You can emulate grouping by using an <code>&lt;option&gt;</code> instead of an <code>&lt;optgroup&gt;</code> and <a href="http://stackoverflow.com/q/30820215/359284#30948247">changing the style by using CSS</a>, but this is not recommended as it is not fully accessible. </p> <h3> How are <code>&lt;option&gt;</code> and <code>&lt;optgroup&gt;</code> tags serialized into data objects? </h3> <p> Select2 will convert the <code>&lt;option&gt;</code> tag into a data object based on the following rules. </p> {% highlight js linenos %} { "id": "value attribute" || "option text", "text": "label attribute" || "option text", "element": HTMLOptionElement } {% endhighlight %} <p> And <code>&lt;optgroup&gt;</code> tags will be converted into data objects using the following rules </p> {% highlight js linenos %} { "text": "label attribute", "children": [ option data object, ... ], "elment": HTMLOptGroupElement } {% endhighlight %} </section>
adsofmelk/art
public/adminLTE-2.4/bower_components/select2/docs/_includes/options/data/select.html
HTML
mit
2,370
/*! * async * https://github.com/caolan/async * * Copyright 2010-2014 Caolan McMahon * Released under the MIT license */ (function () { var async = {}; function noop() {} function identity(v) { return v; } function toBool(v) { return !!v; } function notId(v) { return !v; } // global on the server, window in the browser var previous_async; // Establish the root object, `window` (`self`) in the browser, `global` // on the server, or `this` in some virtual machines. We use `self` // instead of `window` for `WebWorker` support. var root = typeof self === 'object' && self.self === self && self || typeof global === 'object' && global.global === global && global || this; if (root != null) { previous_async = root.async; } async.noConflict = function () { root.async = previous_async; return async; }; function only_once(fn) { return function() { if (fn === null) throw new Error("Callback was already called."); fn.apply(this, arguments); fn = null; }; } function _once(fn) { return function() { if (fn === null) return; fn.apply(this, arguments); fn = null; }; } //// cross-browser compatiblity functions //// var _toString = Object.prototype.toString; var _isArray = Array.isArray || function (obj) { return _toString.call(obj) === '[object Array]'; }; function _isArrayLike(arr) { return _isArray(arr) || ( // has a positive integer length property typeof arr.length === "number" && arr.length >= 0 && arr.length % 1 === 0 ); } function _each(coll, iterator) { return _isArrayLike(coll) ? _arrayEach(coll, iterator) : _forEachOf(coll, iterator); } function _arrayEach(arr, iterator) { var index = -1, length = arr.length; while (++index < length) { iterator(arr[index], index, arr); } } function _map(arr, iterator) { var index = -1, length = arr.length, result = Array(length); while (++index < length) { result[index] = iterator(arr[index], index, arr); } return result; } function _range(count) { return _map(Array(count), function (v, i) { return i; }); } function _reduce(arr, iterator, memo) { _arrayEach(arr, function (x, i, a) { memo = iterator(memo, x, i, a); }); return memo; } function _forEachOf(object, iterator) { _arrayEach(_keys(object), function (key) { iterator(object[key], key); }); } function _indexOf(arr, item) { for (var i = 0; i < arr.length; i++) { if (arr[i] === item) return i; } return -1; } var _keys = Object.keys || function (obj) { var keys = []; for (var k in obj) { if (obj.hasOwnProperty(k)) { keys.push(k); } } return keys; }; function _keyIterator(coll) { var i = -1; var len; var keys; if (_isArrayLike(coll)) { len = coll.length; return function next() { i++; return i < len ? i : null; }; } else { keys = _keys(coll); len = keys.length; return function next() { i++; return i < len ? keys[i] : null; }; } } // Similar to ES6's rest param (http://ariya.ofilabs.com/2013/03/es6-and-rest-parameter.html) // This accumulates the arguments passed into an array, after a given index. // From underscore.js (https://github.com/jashkenas/underscore/pull/2140). function _restParam(func, startIndex) { startIndex = startIndex == null ? func.length - 1 : +startIndex; return function() { var length = Math.max(arguments.length - startIndex, 0); var rest = Array(length); for (var index = 0; index < length; index++) { rest[index] = arguments[index + startIndex]; } switch (startIndex) { case 0: return func.call(this, rest); case 1: return func.call(this, arguments[0], rest); case 2: return func.call(this, arguments[0], arguments[1], rest); } // Currently unused but handle cases outside of the switch statement: // var args = Array(startIndex + 1); // for (index = 0; index < startIndex; index++) { // args[index] = arguments[index]; // } // args[startIndex] = rest; // return func.apply(this, args); }; } function _withoutIndex(iterator) { return function (value, index, callback) { return iterator(value, callback); }; } //// exported async module functions //// //// nextTick implementation with browser-compatible fallback //// // capture the global reference to guard against fakeTimer mocks var _setImmediate = typeof setImmediate === 'function' && setImmediate; var _delay = _setImmediate ? function(fn) { // not a direct alias for IE10 compatibility _setImmediate(fn); } : function(fn) { setTimeout(fn, 0); }; if (typeof process === 'object' && typeof process.nextTick === 'function') { async.nextTick = process.nextTick; } else { async.nextTick = _delay; } async.setImmediate = _setImmediate ? _delay : async.nextTick; async.forEach = async.each = function (arr, iterator, callback) { return async.eachOf(arr, _withoutIndex(iterator), callback); }; async.forEachSeries = async.eachSeries = function (arr, iterator, callback) { return async.eachOfSeries(arr, _withoutIndex(iterator), callback); }; async.forEachLimit = async.eachLimit = function (arr, limit, iterator, callback) { return _eachOfLimit(limit)(arr, _withoutIndex(iterator), callback); }; async.forEachOf = async.eachOf = function (object, iterator, callback) { callback = _once(callback || noop); object = object || []; var size = _isArrayLike(object) ? object.length : _keys(object).length; var completed = 0; if (!size) { return callback(null); } _each(object, function (value, key) { iterator(object[key], key, only_once(done)); }); function done(err) { if (err) { callback(err); } else { completed += 1; if (completed >= size) { callback(null); } } } }; async.forEachOfSeries = async.eachOfSeries = function (obj, iterator, callback) { callback = _once(callback || noop); obj = obj || []; var nextKey = _keyIterator(obj); var key = nextKey(); function iterate() { var sync = true; if (key === null) { return callback(null); } iterator(obj[key], key, only_once(function (err) { if (err) { callback(err); } else { key = nextKey(); if (key === null) { return callback(null); } else { if (sync) { async.nextTick(iterate); } else { iterate(); } } } })); sync = false; } iterate(); }; async.forEachOfLimit = async.eachOfLimit = function (obj, limit, iterator, callback) { _eachOfLimit(limit)(obj, iterator, callback); }; function _eachOfLimit(limit) { return function (obj, iterator, callback) { callback = _once(callback || noop); obj = obj || []; var nextKey = _keyIterator(obj); if (limit <= 0) { return callback(null); } var done = false; var running = 0; var errored = false; (function replenish () { if (done && running <= 0) { return callback(null); } while (running < limit && !errored) { var key = nextKey(); if (key === null) { done = true; if (running <= 0) { callback(null); } return; } running += 1; iterator(obj[key], key, only_once(function (err) { running -= 1; if (err) { callback(err); errored = true; } else { replenish(); } })); } })(); }; } function doParallel(fn) { return function (obj, iterator, callback) { return fn(async.eachOf, obj, iterator, callback); }; } function doParallelLimit(fn) { return function (obj, limit, iterator, callback) { return fn(_eachOfLimit(limit), obj, iterator, callback); }; } function doSeries(fn) { return function (obj, iterator, callback) { return fn(async.eachOfSeries, obj, iterator, callback); }; } function _asyncMap(eachfn, arr, iterator, callback) { callback = _once(callback || noop); var results = []; eachfn(arr, function (value, index, callback) { iterator(value, function (err, v) { results[index] = v; callback(err); }); }, function (err) { callback(err, results); }); } async.map = doParallel(_asyncMap); async.mapSeries = doSeries(_asyncMap); async.mapLimit = doParallelLimit(_asyncMap); // reduce only has a series version, as doing reduce in parallel won't // work in many situations. async.inject = async.foldl = async.reduce = function (arr, memo, iterator, callback) { async.eachOfSeries(arr, function (x, i, callback) { iterator(memo, x, function (err, v) { memo = v; callback(err); }); }, function (err) { callback(err || null, memo); }); }; async.foldr = async.reduceRight = function (arr, memo, iterator, callback) { var reversed = _map(arr, identity).reverse(); async.reduce(reversed, memo, iterator, callback); }; function _filter(eachfn, arr, iterator, callback) { var results = []; eachfn(arr, function (x, index, callback) { iterator(x, function (v) { if (v) { results.push({index: index, value: x}); } callback(); }); }, function () { callback(_map(results.sort(function (a, b) { return a.index - b.index; }), function (x) { return x.value; })); }); } async.select = async.filter = doParallel(_filter); async.selectLimit = async.filterLimit = doParallelLimit(_filter); async.selectSeries = async.filterSeries = doSeries(_filter); function _reject(eachfn, arr, iterator, callback) { _filter(eachfn, arr, function(value, cb) { iterator(value, function(v) { cb(!v); }); }, callback); } async.reject = doParallel(_reject); async.rejectLimit = doParallelLimit(_reject); async.rejectSeries = doSeries(_reject); function _createTester(eachfn, check, getResult) { return function(arr, limit, iterator, cb) { function done() { if (cb) cb(getResult(false, void 0)); } function iteratee(x, _, callback) { if (!cb) return callback(); iterator(x, function (v) { if (cb && check(v)) { cb(getResult(true, x)); cb = iterator = false; } callback(); }); } if (arguments.length > 3) { eachfn(arr, limit, iteratee, done); } else { cb = iterator; iterator = limit; eachfn(arr, iteratee, done); } }; } async.any = async.some = _createTester(async.eachOf, toBool, identity); async.someLimit = _createTester(async.eachOfLimit, toBool, identity); async.all = async.every = _createTester(async.eachOf, notId, notId); async.everyLimit = _createTester(async.eachOfLimit, notId, notId); function _findGetResult(v, x) { return x; } async.detect = _createTester(async.eachOf, identity, _findGetResult); async.detectSeries = _createTester(async.eachOfSeries, identity, _findGetResult); async.sortBy = function (arr, iterator, callback) { async.map(arr, function (x, callback) { iterator(x, function (err, criteria) { if (err) { callback(err); } else { callback(null, {value: x, criteria: criteria}); } }); }, function (err, results) { if (err) { return callback(err); } else { callback(null, _map(results.sort(comparator), function (x) { return x.value; })); } }); function comparator(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; } }; async.auto = function (tasks, callback) { callback = _once(callback || noop); var keys = _keys(tasks); var remainingTasks = keys.length; if (!remainingTasks) { return callback(null); } var results = {}; var listeners = []; function addListener(fn) { listeners.unshift(fn); } function removeListener(fn) { var idx = _indexOf(listeners, fn); if (idx >= 0) listeners.splice(idx, 1); } function taskComplete() { remainingTasks--; _arrayEach(listeners.slice(0), function (fn) { fn(); }); } addListener(function () { if (!remainingTasks) { callback(null, results); } }); _arrayEach(keys, function (k) { var task = _isArray(tasks[k]) ? tasks[k]: [tasks[k]]; var taskCallback = _restParam(function(err, args) { if (args.length <= 1) { args = args[0]; } if (err) { var safeResults = {}; _forEachOf(results, function(val, rkey) { safeResults[rkey] = val; }); safeResults[k] = args; callback(err, safeResults); } else { results[k] = args; async.setImmediate(taskComplete); } }); var requires = task.slice(0, task.length - 1); // prevent dead-locks var len = requires.length; var dep; while (len--) { if (!(dep = tasks[requires[len]])) { throw new Error('Has inexistant dependency'); } if (_isArray(dep) && _indexOf(dep, k) >= 0) { throw new Error('Has cyclic dependencies'); } } function ready() { return _reduce(requires, function (a, x) { return (a && results.hasOwnProperty(x)); }, true) && !results.hasOwnProperty(k); } if (ready()) { task[task.length - 1](taskCallback, results); } else { addListener(listener); } function listener() { if (ready()) { removeListener(listener); task[task.length - 1](taskCallback, results); } } }); }; async.retry = function(times, task, callback) { var DEFAULT_TIMES = 5; var DEFAULT_INTERVAL = 0; var attempts = []; var opts = { times: DEFAULT_TIMES, interval: DEFAULT_INTERVAL }; function parseTimes(acc, t){ if(typeof t === 'number'){ acc.times = parseInt(t, 10) || DEFAULT_TIMES; } else if(typeof t === 'object'){ acc.times = parseInt(t.times, 10) || DEFAULT_TIMES; acc.interval = parseInt(t.interval, 10) || DEFAULT_INTERVAL; } else { throw new Error('Unsupported argument type for \'times\': ' + typeof(t)); } } var length = arguments.length; if (length < 1 || length > 3) { throw new Error('Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)'); } else if (length <= 2 && typeof times === 'function') { callback = task; task = times; } if (typeof times !== 'function') { parseTimes(opts, times); } opts.callback = callback; opts.task = task; function wrappedTask(wrappedCallback, wrappedResults) { function retryAttempt(task, finalAttempt) { return function(seriesCallback) { task(function(err, result){ seriesCallback(!err || finalAttempt, {err: err, result: result}); }, wrappedResults); }; } function retryInterval(interval){ return function(seriesCallback){ setTimeout(function(){ seriesCallback(null); }, interval); }; } while (opts.times) { var finalAttempt = !(opts.times-=1); attempts.push(retryAttempt(opts.task, finalAttempt)); if(!finalAttempt && opts.interval > 0){ attempts.push(retryInterval(opts.interval)); } } async.series(attempts, function(done, data){ data = data[data.length - 1]; (wrappedCallback || opts.callback)(data.err, data.result); }); } // If a callback is passed, run this as a controll flow return opts.callback ? wrappedTask() : wrappedTask; }; async.waterfall = function (tasks, callback) { callback = _once(callback || noop); if (!_isArray(tasks)) { var err = new Error('First argument to waterfall must be an array of functions'); return callback(err); } if (!tasks.length) { return callback(); } function wrapIterator(iterator) { return _restParam(function (err, args) { if (err) { callback.apply(null, [err].concat(args)); } else { var next = iterator.next(); if (next) { args.push(wrapIterator(next)); } else { args.push(callback); } ensureAsync(iterator).apply(null, args); } }); } wrapIterator(async.iterator(tasks))(); }; function _parallel(eachfn, tasks, callback) { callback = callback || noop; var results = _isArrayLike(tasks) ? [] : {}; eachfn(tasks, function (task, key, callback) { task(_restParam(function (err, args) { if (args.length <= 1) { args = args[0]; } results[key] = args; callback(err); })); }, function (err) { callback(err, results); }); } async.parallel = function (tasks, callback) { _parallel(async.eachOf, tasks, callback); }; async.parallelLimit = function(tasks, limit, callback) { _parallel(_eachOfLimit(limit), tasks, callback); }; async.series = function(tasks, callback) { _parallel(async.eachOfSeries, tasks, callback); }; async.iterator = function (tasks) { function makeCallback(index) { function fn() { if (tasks.length) { tasks[index].apply(null, arguments); } return fn.next(); } fn.next = function () { return (index < tasks.length - 1) ? makeCallback(index + 1): null; }; return fn; } return makeCallback(0); }; async.apply = _restParam(function (fn, args) { return _restParam(function (callArgs) { return fn.apply( null, args.concat(callArgs) ); }); }); function _concat(eachfn, arr, fn, callback) { var result = []; eachfn(arr, function (x, index, cb) { fn(x, function (err, y) { result = result.concat(y || []); cb(err); }); }, function (err) { callback(err, result); }); } async.concat = doParallel(_concat); async.concatSeries = doSeries(_concat); async.whilst = function (test, iterator, callback) { callback = callback || noop; if (test()) { var next = _restParam(function(err, args) { if (err) { callback(err); } else if (test.apply(this, args)) { iterator(next); } else { callback(null); } }); iterator(next); } else { callback(null); } }; async.doWhilst = function (iterator, test, callback) { var calls = 0; return async.whilst(function() { return ++calls <= 1 || test.apply(this, arguments); }, iterator, callback); }; async.until = function (test, iterator, callback) { return async.whilst(function() { return !test.apply(this, arguments); }, iterator, callback); }; async.doUntil = function (iterator, test, callback) { return async.doWhilst(iterator, function() { return !test.apply(this, arguments); }, callback); }; async.during = function (test, iterator, callback) { callback = callback || noop; var next = _restParam(function(err, args) { if (err) { callback(err); } else { args.push(check); test.apply(this, args); } }); var check = function(err, truth) { if (err) { callback(err); } else if (truth) { iterator(next); } else { callback(null); } }; test(check); }; async.doDuring = function (iterator, test, callback) { var calls = 0; async.during(function(next) { if (calls++ < 1) { next(null, true); } else { test.apply(this, arguments); } }, iterator, callback); }; function _queue(worker, concurrency, payload) { if (concurrency == null) { concurrency = 1; } else if(concurrency === 0) { throw new Error('Concurrency must not be zero'); } function _insert(q, data, pos, callback) { if (callback != null && typeof callback !== "function") { throw new Error("task callback must be a function"); } q.started = true; if (!_isArray(data)) { data = [data]; } if(data.length === 0 && q.idle()) { // call drain immediately if there are no tasks return async.setImmediate(function() { q.drain(); }); } _arrayEach(data, function(task) { var item = { data: task, callback: callback || noop }; if (pos) { q.tasks.unshift(item); } else { q.tasks.push(item); } if (q.tasks.length === q.concurrency) { q.saturated(); } }); async.setImmediate(q.process); } function _next(q, tasks) { return function(){ workers -= 1; var args = arguments; _arrayEach(tasks, function (task) { task.callback.apply(task, args); }); if (q.tasks.length + workers === 0) { q.drain(); } q.process(); }; } var workers = 0; var q = { tasks: [], concurrency: concurrency, payload: payload, saturated: noop, empty: noop, drain: noop, started: false, paused: false, push: function (data, callback) { _insert(q, data, false, callback); }, kill: function () { q.drain = noop; q.tasks = []; }, unshift: function (data, callback) { _insert(q, data, true, callback); }, process: function () { if (!q.paused && workers < q.concurrency && q.tasks.length) { while(workers < q.concurrency && q.tasks.length){ var tasks = q.payload ? q.tasks.splice(0, q.payload) : q.tasks.splice(0, q.tasks.length); var data = _map(tasks, function (task) { return task.data; }); if (q.tasks.length === 0) { q.empty(); } workers += 1; var cb = only_once(_next(q, tasks)); worker(data, cb); } } }, length: function () { return q.tasks.length; }, running: function () { return workers; }, idle: function() { return q.tasks.length + workers === 0; }, pause: function () { q.paused = true; }, resume: function () { if (q.paused === false) { return; } q.paused = false; var resumeCount = Math.min(q.concurrency, q.tasks.length); // Need to call q.process once per concurrent // worker to preserve full concurrency after pause for (var w = 1; w <= resumeCount; w++) { async.setImmediate(q.process); } } }; return q; } async.queue = function (worker, concurrency) { var q = _queue(function (items, cb) { worker(items[0], cb); }, concurrency, 1); return q; }; async.priorityQueue = function (worker, concurrency) { function _compareTasks(a, b){ return a.priority - b.priority; } function _binarySearch(sequence, item, compare) { var beg = -1, end = sequence.length - 1; while (beg < end) { var mid = beg + ((end - beg + 1) >>> 1); if (compare(item, sequence[mid]) >= 0) { beg = mid; } else { end = mid - 1; } } return beg; } function _insert(q, data, priority, callback) { if (callback != null && typeof callback !== "function") { throw new Error("task callback must be a function"); } q.started = true; if (!_isArray(data)) { data = [data]; } if(data.length === 0) { // call drain immediately if there are no tasks return async.setImmediate(function() { q.drain(); }); } _arrayEach(data, function(task) { var item = { data: task, priority: priority, callback: typeof callback === 'function' ? callback : noop }; q.tasks.splice(_binarySearch(q.tasks, item, _compareTasks) + 1, 0, item); if (q.tasks.length === q.concurrency) { q.saturated(); } async.setImmediate(q.process); }); } // Start with a normal queue var q = async.queue(worker, concurrency); // Override push to accept second parameter representing priority q.push = function (data, priority, callback) { _insert(q, data, priority, callback); }; // Remove unshift function delete q.unshift; return q; }; async.cargo = function (worker, payload) { return _queue(worker, 1, payload); }; function _console_fn(name) { return _restParam(function (fn, args) { fn.apply(null, args.concat([_restParam(function (err, args) { if (typeof console !== 'undefined') { if (err) { if (console.error) { console.error(err); } } else if (console[name]) { _arrayEach(args, function (x) { console[name](x); }); } } })])); }); } async.log = _console_fn('log'); async.dir = _console_fn('dir'); /*async.info = _console_fn('info'); async.warn = _console_fn('warn'); async.error = _console_fn('error');*/ async.memoize = function (fn, hasher) { var memo = {}; var queues = {}; hasher = hasher || identity; var memoized = _restParam(function memoized(args) { var callback = args.pop(); var key = hasher.apply(null, args); if (key in memo) { async.nextTick(function () { callback.apply(null, memo[key]); }); } else if (key in queues) { queues[key].push(callback); } else { queues[key] = [callback]; fn.apply(null, args.concat([_restParam(function (args) { memo[key] = args; var q = queues[key]; delete queues[key]; for (var i = 0, l = q.length; i < l; i++) { q[i].apply(null, args); } })])); } }); memoized.memo = memo; memoized.unmemoized = fn; return memoized; }; async.unmemoize = function (fn) { return function () { return (fn.unmemoized || fn).apply(null, arguments); }; }; function _times(mapper) { return function (count, iterator, callback) { mapper(_range(count), iterator, callback); }; } async.times = _times(async.map); async.timesSeries = _times(async.mapSeries); async.timesLimit = function (count, limit, iterator, callback) { return async.mapLimit(_range(count), limit, iterator, callback); }; async.seq = function (/* functions... */) { var fns = arguments; return _restParam(function (args) { var that = this; var callback = args[args.length - 1]; if (typeof callback == 'function') { args.pop(); } else { callback = noop; } async.reduce(fns, args, function (newargs, fn, cb) { fn.apply(that, newargs.concat([_restParam(function (err, nextargs) { cb(err, nextargs); })])); }, function (err, results) { callback.apply(that, [err].concat(results)); }); }); }; async.compose = function (/* functions... */) { return async.seq.apply(null, Array.prototype.reverse.call(arguments)); }; function _applyEach(eachfn) { return _restParam(function(fns, args) { var go = _restParam(function(args) { var that = this; var callback = args.pop(); return eachfn(fns, function (fn, _, cb) { fn.apply(that, args.concat([cb])); }, callback); }); if (args.length) { return go.apply(this, args); } else { return go; } }); } async.applyEach = _applyEach(async.eachOf); async.applyEachSeries = _applyEach(async.eachOfSeries); async.forever = function (fn, callback) { var done = only_once(callback || noop); var task = ensureAsync(fn); function next(err) { if (err) { return done(err); } task(next); } next(); }; function ensureAsync(fn) { return _restParam(function (args) { var callback = args.pop(); args.push(function () { var innerArgs = arguments; if (sync) { async.setImmediate(function () { callback.apply(null, innerArgs); }); } else { callback.apply(null, innerArgs); } }); var sync = true; fn.apply(this, args); sync = false; }); } async.ensureAsync = ensureAsync; async.constant = _restParam(function(values) { var args = [null].concat(values); return function (callback) { return callback.apply(this, args); }; }); async.wrapSync = async.asyncify = function asyncify(func) { return _restParam(function (args) { var callback = args.pop(); var result; try { result = func.apply(this, args); } catch (e) { return callback(e); } // if result is Promise object if (typeof result !== 'undefined' && typeof result.then === "function") { result.then(function(value) { callback(null, value); }).catch(function(err) { callback(err.message ? err : new Error(err)); }); } else { callback(null, result); } }); }; // Node.js if (typeof module !== 'undefined' && module.exports) { module.exports = async; } // AMD / RequireJS else if (typeof define !== 'undefined' && define.amd) { define([], function () { return async; }); } // included directly via <script> tag else { root.async = async; } }());
sashberd/cdnjs
ajax/libs/async/1.4.0/async.js
JavaScript
mit
37,057
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Tests\Acl\Domain; class AuditLoggerTest extends \PHPUnit_Framework_TestCase { /** * @dataProvider getTestLogData */ public function testLogIfNeeded($granting, $audit) { $logger = $this->getLogger(); $ace = $this->getEntry(); if (true === $granting) { $ace ->expects($this->once()) ->method('isAuditSuccess') ->will($this->returnValue($audit)) ; $ace ->expects($this->never()) ->method('isAuditFailure') ; } else { $ace ->expects($this->never()) ->method('isAuditSuccess') ; $ace ->expects($this->once()) ->method('isAuditFailure') ->will($this->returnValue($audit)) ; } if (true === $audit) { $logger ->expects($this->once()) ->method('doLog') ->with($this->equalTo($granting), $this->equalTo($ace)) ; } else { $logger ->expects($this->never()) ->method('doLog') ; } $logger->logIfNeeded($granting, $ace); } public function getTestLogData() { return array( array(true, false), array(true, true), array(false, false), array(false, true), ); } protected function getEntry() { return $this->getMock('Symfony\Component\Security\Acl\Model\AuditableEntryInterface'); } protected function getLogger() { return $this->getMockForAbstractClass('Symfony\Component\Security\Acl\Domain\AuditLogger'); } }
tmpBen/symfony
vendor/symfony/symfony/src/Symfony/Component/Security/Tests/Acl/Domain/AuditLoggerTest.php
PHP
mit
2,066
/******************************************************************** * Kalendae, a framework agnostic javascript date picker * * Copyright(c) 2013 Jarvis Badgley (chipersoft@gmail.com) * * http://github.com/ChiperSoft/Kalendae * * Version 0.4.1 * ********************************************************************/ (function(){var q,h,k=function(a,b){if("function"===typeof document.addEventListener||d.isIE8()){var c=!1;try{c=a instanceof Element}catch(j){c=!!a&&1===c.nodeType}c||"string"===typeof a||(b=a);var e=this,f=e.classes,g=e.settings=d.merge(e.defaults,{attachTo:a},b||{}),c=e.container=d.make("div",{"class":f.container}),k=e.calendars=[],r=h().day(g.weekStart),l,n=[],p,m,q;p=[];var t;m=0;l=g.months;d.isIE8()&&d.addClassName(c,"ie8");for(m=7;m--;)n.push(r.format(g.columnHeaderFormat)),r.add("days",1); v(e);if("object"===typeof g.subscribe)for(m in g.subscribe)g.subscribe.hasOwnProperty(m)&&e.subscribe(m,g.subscribe[m]);e._sel=[];g.selected&&e.setSelected(g.selected,!1);l=g.viewStartDate?h(g.viewStartDate,g.format):0<e._sel.length?h(e._sel[0]):h();e.viewStartDate=l.date(1);if((l={past:g.months-1,"today-past":g.months-1,any:2<g.months?Math.floor(g.months/2):0,"today-future":0,future:0}[this.settings.direction])&&h().month()==h(e.viewStartDate).month())e.viewStartDate=h(e.viewStartDate).subtract({M:l}).date(1); if("function"===typeof g.blackout)e.blackout=g.blackout;else if(g.blackout){var u=s(g.blackout,g.parseSplitDelimiter,g.format);e.blackout=function(a){a=h(a).yearDay();if(1>a||!e._sel)return!1;for(var c=u.length;c--;)if(u[c].yearDay()===a)return!0;return!1}}else e.blackout=function(){return!1};e.direction=e.directions[g.direction]?e.directions[g.direction]:e.directions.any;for(l=Math.max(g.months,1);l--;){p=d.make("div",{"class":f.calendar},c);p.setAttribute("data-cal-index",l);1<g.months&&(l==Math.max(g.months- 1,1)?d.addClassName(p,f.monthFirst):0===l?d.addClassName(p,f.monthLast):d.addClassName(p,f.monthMiddle));m=d.make("div",{"class":f.title},p);g.useYearNav||d.addClassName(m,f.disableYearNav);d.make("a",{"class":f.previousYear},m);d.make("a",{"class":f.previousMonth},m);d.make("a",{"class":f.nextYear},m);d.make("a",{"class":f.nextMonth},m);r=d.make("span",{"class":f.caption},m);q=d.make("div",{"class":f.header},p);m=0;do t=d.make("span",{},q),t.innerHTML=n[m];while(7>++m);q=d.make("div",{"class":f.days}, p);m=0;for(p=[];42>m++;)p.push(d.make("span",{},q));k.push({caption:r,days:p});l&&d.make("div",{"class":f.monthSeparator},c)}e.draw();d.addEvent(c,"mousedown",function(a,c){var b;if(d.hasClassName(c,f.nextMonth))!e.disableNext&&!1!==e.publish("view-changed",e,["next-month"])&&(e.viewStartDate.add("months",1),e.draw());else if(d.hasClassName(c,f.previousMonth))!e.disablePreviousMonth&&!1!==e.publish("view-changed",e,["previous-month"])&&(e.viewStartDate.subtract("months",1),e.draw());else if(d.hasClassName(c, f.nextYear))!e.disableNext&&!1!==e.publish("view-changed",e,["next-year"])&&(e.viewStartDate.add("years",1),e.draw());else if(d.hasClassName(c,f.previousYear))!e.disablePreviousMonth&&!1!==e.publish("view-changed",e,["previous-year"])&&(e.viewStartDate.subtract("years",1),e.draw());else if(d.hasClassName(c.parentNode,f.days)&&d.hasClassName(c,f.dayActive)&&(b=c.getAttribute("data-date")))if(b=h(b,g.dayAttributeFormat).hours(12),!1!==e.publish("date-clicked",e,[b]))switch(g.mode){case "multiple":e.addSelected(b)|| e.removeSelected(b);break;case "range":e.addSelected(b);break;default:e.addSelected(b)}return!1});(g.attachTo=d.$(g.attachTo))&&g.attachTo.appendChild(c)}};k.prototype={defaults:{attachTo:null,months:1,weekStart:0,direction:"any",directionScrolling:!0,viewStartDate:null,blackout:null,selected:null,mode:"single",dayOutOfMonthClickable:!1,format:null,subscribe:null,columnHeaderFormat:"dd",titleFormat:"MMMM, YYYY",dayNumberFormat:"D",dayAttributeFormat:"YYYY-MM-DD",parseSplitDelimiter:/,\s*|\s+-\s+/, rangeDelimiter:" - ",multipleDelimiter:", ",useYearNav:!0,dateClassMap:{}},classes:{container:"kalendae",calendar:"k-calendar",monthFirst:"k-first-month",monthMiddle:"k-middle-month",monthLast:"k-last-month",title:"k-title",previousMonth:"k-btn-previous-month",nextMonth:"k-btn-next-month",previousYear:"k-btn-previous-year",nextYear:"k-btn-next-year",caption:"k-caption",header:"k-header",days:"k-days",dayOutOfMonth:"k-out-of-month",dayInMonth:"k-in-month",dayActive:"k-active",daySelected:"k-selected", dayInRange:"k-range",dayToday:"k-today",monthSeparator:"k-separator",disablePreviousMonth:"k-disable-previous-month-btn",disableNextMonth:"k-disable-next-month-btn",disablePreviousYear:"k-disable-previous-year-btn",disableNextYear:"k-disable-next-year-btn",disableYearNav:"k-disable-year-nav"},disablePreviousMonth:!1,disableNextMonth:!1,disablePreviousYear:!1,disableNextYear:!1,directions:{past:function(a){return h(a).yearDay()>=q.yearDay()},"today-past":function(a){return h(a).yearDay()>q.yearDay()}, any:function(){return!1},"today-future":function(a){return h(a).yearDay()<q.yearDay()},future:function(a){return h(a).yearDay()<=q.yearDay()}},getSelectedAsDates:function(){for(var a=[],b=0,c=this._sel.length;b<c;b++)a.push(this._sel[b].toDate());return a},getSelectedAsText:function(a){for(var b=[],c=0,d=this._sel.length;c<d;c++)b.push(this._sel[c].format(a||this.settings.format||"YYYY-MM-DD"));return b},getSelectedRaw:function(){for(var a=[],b=0,c=this._sel.length;b<c;b++)a.push(h(this._sel[b])); return a},getSelected:function(a){a=this.getSelectedAsText(a);switch(this.settings.mode){case "range":return a.splice(2),a.join(this.settings.rangeDelimiter);case "multiple":return a.join(this.settings.multipleDelimiter);default:return a[0]}},isSelected:function(a){a=h(a).yearDay();if(1>a||!this._sel||1>this._sel.length)return!1;switch(this.settings.mode){case "range":var b=this._sel[0]?this._sel[0].yearDay():0,c=this._sel[1]?this._sel[1].yearDay():0;return b===a||c===a?1:!b||!c?0:a>b&&a<c||b<c&& a<b&&a>c?-1:!1;case "multiple":for(b=this._sel.length;b--;)if(this._sel[b].yearDay()===a)return!0;return!1;default:return this._sel[0]&&this._sel[0].yearDay()===a}},setSelected:function(a,b){var c,d=s(a,this.settings.parseSplitDelimiter,this.settings.format),e=s(this.getSelected(),this.settings.parseSplitDelimiter,this.settings.format);for(c=e.length;c--;)this.removeSelected(e[c],b);for(c=d.length;c--;)this.addSelected(d[c],b);!1!==b&&this.draw()},addSelected:function(a,b){a=h(a,this.settings.format).hours(12); this.settings.dayOutOfMonthClickable&&"range"!==this.settings.mode&&this.makeSelectedDateVisible(a);switch(this.settings.mode){case "multiple":if(this.isSelected(a))return!1;this._sel.push(a);break;case "range":1!==this._sel.length?this._sel=[a]:a.yearDay()>this._sel[0].yearDay()?this._sel[1]=a:this._sel=[a,this._sel[0]];break;default:this._sel=[a]}this._sel.sort(function(a,b){return a.yearDay()-b.yearDay()});this.publish("change",this,[a]);!1!==b&&this.draw();return!0},makeSelectedDateVisible:function(a){outOfViewMonth= h(a).date("1").diff(this.viewStartDate,"months");0>outOfViewMonth?this.viewStartDate.subtract("months",1):0<outOfViewMonth&&outOfViewMonth>=this.settings.months&&this.viewStartDate.add("months",1)},removeSelected:function(a,b){a=h(a,this.settings.format).hours(12);for(var c=this._sel.length;c--;)if(this._sel[c].yearDay()===a.yearDay())return this._sel.splice(c,1),this.publish("change",this,[a]),!1!==b&&this.draw(),!0;return!1},draw:function(){var a=h(this.viewStartDate).hours(12),b,c=this.classes, j,e,f,g=0,k,r=0,l,n=this.settings;k=this.calendars.length;do{b=h(a).date(1);b.day(b.day()<this.settings.weekStart?this.settings.weekStart-7:this.settings.weekStart);j=this.calendars[g];j.caption.innerHTML=a.format(this.settings.titleFormat);r=0;do e=j.days[r],f=[],(l=this.isSelected(b))&&f.push({"-1":c.dayInRange,1:c.daySelected,"true":c.daySelected}[l]),b.month()!=a.month()?f.push(c.dayOutOfMonth):f.push(c.dayInMonth),(!this.blackout(b)&&!(this.direction(b)||b.month()!=a.month()&&!1===n.dayOutOfMonthClickable)|| 0<l)&&f.push(c.dayActive),b.yearDay()===q.yearDay()&&f.push(c.dayToday),l=b.format(this.settings.dayAttributeFormat),n.dateClassMap[l]&&f.push(n.dateClassMap[l]),e.innerHTML=b.format(n.dayNumberFormat),e.className=f.join(" "),e.setAttribute("data-date",l),b.add("days",1);while(42>++r);a.add("months",1)}while(++g<k);if(n.directionScrolling){if("today-past"===n.direction||"past"===n.direction)b=a.add({m:1}).diff(h(),"months",!0),0>=b?(this.disableNextMonth=!1,d.removeClassName(this.container,c.disableNextMonth)): (this.disableNextMonth=!0,d.addClassName(this.container,c.disableNextMonth));else if("today-future"===n.direction||"future"===n.direction)b=a.subtract({m:1}).diff(h(),"months",!0),b>n.months?(this.disablePreviousMonth=!1,d.removeClassName(this.container,c.disablePreviousMonth)):(this.disablePreviousMonth=!0,d.addClassName(this.container,c.disablePreviousMonth));if("today-past"===n.direction||"past"===n.direction)b=a.add({m:12}).diff(h(),"months",!0),-11>=b?(this.disableNextYear=!1,d.removeClassName(this.container, c.disableNextYear)):(this.disableNextYear=!0,d.addClassName(this.container,c.disableNextYear));else if("today-future"===n.direction||"future"===n.direction)b=a.subtract({m:12}).diff(h(),"months",!0),b>11+n.months?(this.disablePreviousYear=!1,d.removeClassName(this.container,c.disablePreviousYear)):(this.disablePreviousYear=!0,d.addClassName(this.container,c.disablePreviousYear))}}};var s=function(a,b,c){var j=[];"string"===typeof a?a=a.split(b):d.isArray(a)||(a=[a]);b=a.length;var e=0;do a[e]&&j.push(h(a[e], c).hours(12));while(++e<b);return j};window.Kalendae=k;var d=k.util={isIE8:function(){return!(!/msie 8./i.test(navigator.appVersion)||/opera/i.test(navigator.userAgent)||!window.ActiveXObject||!XDomainRequest||window.msPerformance)},$:function(a){return"string"==typeof a?document.getElementById(a):a},$$:function(a){return document.querySelectorAll(a)},make:function(a,b,c){var d;a=document.createElement(a);if(b)for(d in b)b.hasOwnProperty(d)&&a.setAttribute(d,b[d]);c&&c.appendChild(a);return a},isVisible:function(a){return 0< a.offsetWidth||0<a.offsetHeight},getStyle:function(a,b){var c;a.currentStyle?c=a.currentStyle[b]:window.getComputedStyle&&(c=window.getComputedStyle(a,null)[b]);return c},domReady:function(a){/in/.test(document.readyState)?setTimeout(function(){d.domReady(a)},9):a()},addEvent:function(a,b,c){var d=function(b){b=b||window.event;var d=c.apply(a,[b,b.target||b.srcElement]);!1===d&&(b.preventDefault?b.preventDefault():(b.returnValue=!1,b.cancelBubble=!0));return d};a.attachEvent?a.attachEvent("on"+b, d):a.addEventListener(b,d,!1);return d},removeEvent:function(a,b,c){a.detachEvent?a.detachEvent("on"+b,c):a.removeEventListener(b,c,!1)},hasClassName:function(a,b){if(!(a=d.$(a)))return!1;var c=a.className;return 0<c.length&&(c==b||RegExp("(^|\\s)"+b+"(\\s|$)").test(c))},addClassName:function(a,b){if((a=d.$(a))&&!d.hasClassName(a,b))a.className+=(a.className?" ":"")+b},removeClassName:function(a,b){if(a=d.$(a))a.className=d.trimString(a.className.replace(RegExp("(^|\\s+)"+b+"(\\s+|$)")," "))},isFixed:function(a){do if("fixed"=== d.getStyle(a,"position"))return!0;while(a=a.offsetParent);return!1},scrollContainer:function(a){do{var b=d.getStyle(a,"overflow");if("auto"===b||"scroll"===b)return a}while((a=a.parentNode)&&a!=window.document.body);return null},getPosition:function(a,b){var c=a.offsetLeft,d=a.offsetTop,e={};if(!b)for(;a=a.offsetParent;)c+=a.offsetLeft,d+=a.offsetTop;e[0]=e.left=c;e[1]=e.top=d;return e},getHeight:function(a){return a.offsetHeight||a.scrollHeight},getWidth:function(a){return a.offsetWidth||a.scrollWidth}, trimString:function(a){return a.replace(/^\s+/,"").replace(/\s+$/,"")},merge:function(){for(var a=!0===arguments[0],b={},c=a?1:0;c<arguments.length;c++){var d=b,e=arguments[c];if("object"===typeof e){var f=void 0;for(f in e)e.hasOwnProperty(f)&&(a&&"object"===typeof d[f]&&"object"===typeof e[f]?_update(d[f],e[f]):d[f]=e[f])}}return b},isArray:function(a){return"[object Array]"==Object.prototype.toString.call(a)}};"function"===typeof document.addEventListener&&k.util.domReady(function(){for(var a= d.$$(".auto-kal"),b=a.length,c,j;b--;)c=a[b],j=c.getAttribute("data-kal"),j=null==j||""==j?{}:(new Function("return {"+j+"};"))(),"INPUT"===c.tagName?new k.Input(c,j):new k(d.merge(j,{attachTo:c}))});k.Input=function(a,b){if("function"===typeof document.addEventListener||d.isIE8()){var c=this.input=d.$(a),j,e;if(!c||"INPUT"!==c.tagName)throw"First argument for Kalendae.Input must be an <input> element or a valid element id.";var f=this,g=f.classes;e=f.settings=d.merge(f.defaults,b);e.attachTo=window.document.body; e.selected?j=!0:e.selected=c.value;k.call(f,e);e.closeButton&&(e=d.make("a",{"class":g.closeButton},f.container),d.addEvent(e,"click",function(){c.blur()}));j&&(c.value=f.getSelected());j=f.container;var h=!1;j.style.display="none";d.addClassName(j,g.positioned);d.addEvent(j,"mousedown",function(){h=!0});d.addEvent(window.document,"mousedown",function(){h=!1});d.addEvent(c,"focus",function(){f.setSelected(this.value);f.show()});d.addEvent(c,"blur",function(){h&&d.isIE8()?(h=!1,c.focus()):f.hide()}); d.addEvent(c,"keyup",function(){f.setSelected(this.value)});(g=d.scrollContainer(c))&&d.addEvent(g,"scroll",function(){c.blur()});f.subscribe("change",function(){c.value=f.getSelected()})}};k.Input.prototype=d.merge(k.prototype,{defaults:d.merge(k.prototype.defaults,{format:"MM/DD/YYYY",side:"bottom",closeButton:!0,offsetLeft:0,offsetTop:0}),classes:d.merge(k.prototype.classes,{positioned:"k-floating",closeButton:"k-btn-close"}),show:function(){var a=this.container,b=a.style,c=this.input,j=d.getPosition(c), e=d.scrollContainer(c),e=e?e.scrollTop:0,f=this.settings;b.display="";switch(f.side){case "left":b.left=j.left-d.getWidth(a)+f.offsetLeft+"px";b.top=j.top+f.offsetTop-e+"px";break;case "right":b.left=j.left+d.getWidth(c)+"px";b.top=j.top+f.offsetTop-e+"px";break;case "top":b.left=j.left+f.offsetLeft+"px";b.top=j.top-d.getHeight(a)+f.offsetTop-e+"px";break;default:b.left=j.left+f.offsetLeft+"px",b.top=j.top+d.getHeight(c)+f.offsetTop-e+"px"}b.position=d.isFixed(c)?"fixed":"absolute";this.publish("show", this)},hide:function(){this.container.style.display="none";this.publish("hide",this)}});var v=function(a){a||(a=this);var b=a.c_||{};a.publish=function(a,d,e){for(var f=(a=b[a])?a.length:0,g;f--;)if(g=a[f].apply(d,e||[]),"boolean"===typeof g)return g};a.subscribe=function(a,d,e){b[a]||(b[a]=[]);e?b[a].push(d):b[a].unshift(d);return[a,d]};a.unsubscribe=function(a){var d=b[a[0]];a=a[1];for(var e=d?d.length:0;e--;)d[e]===a&&d.splice(e,1)}};if(!k.moment)if(window.moment)k.moment=window.moment;else throw"Kalendae requires moment.js. You must use kalendae.standalone.js if moment is not available on the page."; h=k.moment;h.fn.stripTime=function(){this._d=new Date(864E5*Math.floor(this._d.valueOf()/864E5));return this};h.fn.yearDay=function(a){var b=Math.floor(this._d/864E5);return"undefined"===typeof a?b:this.add({d:a-b})};q=k.moment().stripTime();if("undefined"!==typeof jQuery&&("function"===typeof document.addEventListener||d.isIE8()))jQuery.fn.kalendae=function(a){this.each(function(b,c){"INPUT"===c.tagName?$(c).data("kalendae",new k.Input(c,a)):$(c).data("kalendae",new k($.extend({},{attachTo:c},a)))}); return this}})();
Amomo/cdnjs
ajax/libs/Kalendae/0.4.1/kalendae.min.js
JavaScript
mit
15,395
/** * The reveal.js markdown plugin. Handles parsing of * markdown inside of presentations as well as loading * of external markdown documents. */ (function( root, factory ) { if( typeof exports === 'object' ) { module.exports = factory( require( './marked' ) ); } else { // Browser globals (root is window) root.RevealMarkdown = factory( root.marked ); root.RevealMarkdown.initialize(); } }( this, function( marked ) { if( typeof marked === 'undefined' ) { throw 'The reveal.js Markdown plugin requires marked to be loaded'; } if( typeof hljs !== 'undefined' ) { marked.setOptions({ highlight: function( lang, code ) { return hljs.highlightAuto( lang, code ).value; } }); } var DEFAULT_SLIDE_SEPARATOR = '^\n---\n$', DEFAULT_NOTES_SEPARATOR = 'note:', DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$', DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$'; /** * Retrieves the markdown contents of a slide section * element. Normalizes leading tabs/whitespace. */ function getMarkdownFromSlide( section ) { var template = section.querySelector( 'script' ); // strip leading whitespace so it isn't evaluated as code var text = ( template || section ).textContent; var leadingWs = text.match( /^\n?(\s*)/ )[1].length, leadingTabs = text.match( /^\n?(\t*)/ )[1].length; if( leadingTabs > 0 ) { text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' ); } else if( leadingWs > 1 ) { text = text.replace( new RegExp('\\n? {' + leadingWs + '}'), '\n' ); } return text; } /** * Given a markdown slide section element, this will * return all arguments that aren't related to markdown * parsing. Used to forward any other user-defined arguments * to the output markdown slide. */ function getForwardedAttributes( section ) { var attributes = section.attributes; var result = []; for( var i = 0, len = attributes.length; i < len; i++ ) { var name = attributes[i].name, value = attributes[i].value; // disregard attributes that are used for markdown loading/parsing if( /data\-(markdown|separator|vertical|notes)/gi.test( name ) ) continue; if( value ) { result.push( name + '=' + value ); } else { result.push( name ); } } return result.join( ' ' ); } /** * Inspects the given options and fills out default * values for what's not defined. */ function getSlidifyOptions( options ) { options = options || {}; options.separator = options.separator || DEFAULT_SLIDE_SEPARATOR; options.notesSeparator = options.notesSeparator || DEFAULT_NOTES_SEPARATOR; options.attributes = options.attributes || ''; return options; } /** * Helper function for constructing a markdown slide. */ function createMarkdownSlide( content, options ) { options = getSlidifyOptions( options ); var notesMatch = content.split( new RegExp( options.notesSeparator, 'mgi' ) ); if( notesMatch.length === 2 ) { content = notesMatch[0] + '<aside class="notes" data-markdown>' + notesMatch[1].trim() + '</aside>'; } return '<script type="text/template">' + content + '</script>'; } /** * Parses a data string into multiple slides based * on the passed in separator arguments. */ function slidify( markdown, options ) { options = getSlidifyOptions( options ); var separatorRegex = new RegExp( options.separator + ( options.verticalSeparator ? '|' + options.verticalSeparator : '' ), 'mg' ), horizontalSeparatorRegex = new RegExp( options.separator ); var matches, lastIndex = 0, isHorizontal, wasHorizontal = true, content, sectionStack = []; // iterate until all blocks between separators are stacked up while( matches = separatorRegex.exec( markdown ) ) { notes = null; // determine direction (horizontal by default) isHorizontal = horizontalSeparatorRegex.test( matches[0] ); if( !isHorizontal && wasHorizontal ) { // create vertical stack sectionStack.push( [] ); } // pluck slide content from markdown input content = markdown.substring( lastIndex, matches.index ); if( isHorizontal && wasHorizontal ) { // add to horizontal stack sectionStack.push( content ); } else { // add to vertical stack sectionStack[sectionStack.length-1].push( content ); } lastIndex = separatorRegex.lastIndex; wasHorizontal = isHorizontal; } // add the remaining slide ( wasHorizontal ? sectionStack : sectionStack[sectionStack.length-1] ).push( markdown.substring( lastIndex ) ); var markdownSections = ''; // flatten the hierarchical stack, and insert <section data-markdown> tags for( var i = 0, len = sectionStack.length; i < len; i++ ) { // vertical if( sectionStack[i] instanceof Array ) { markdownSections += '<section '+ options.attributes +'>'; sectionStack[i].forEach( function( child ) { markdownSections += '<section data-markdown>' + createMarkdownSlide( child, options ) + '</section>'; } ); markdownSections += '</section>'; } else { markdownSections += '<section '+ options.attributes +' data-markdown>' + createMarkdownSlide( sectionStack[i], options ) + '</section>'; } } return markdownSections; } /** * Parses any current data-markdown slides, splits * multi-slide markdown into separate sections and * handles loading of external markdown. */ function processSlides() { var sections = document.querySelectorAll( '[data-markdown]'), section; for( var i = 0, len = sections.length; i < len; i++ ) { section = sections[i]; if( section.getAttribute( 'data-markdown' ).length ) { var xhr = new XMLHttpRequest(), url = section.getAttribute( 'data-markdown' ); datacharset = section.getAttribute( 'data-charset' ); // see https://developer.mozilla.org/en-US/docs/Web/API/element.getAttribute#Notes if( datacharset != null && datacharset != '' ) { xhr.overrideMimeType( 'text/html; charset=' + datacharset ); } xhr.onreadystatechange = function() { if( xhr.readyState === 4 ) { // file protocol yields status code 0 (useful for local debug, mobile applications etc.) if ( ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 0 ) { section.outerHTML = slidify( xhr.responseText, { separator: section.getAttribute( 'data-separator' ), verticalSeparator: section.getAttribute( 'data-separator-vertical' ), notesSeparator: section.getAttribute( 'data-separator-notes' ), attributes: getForwardedAttributes( section ) }); } else { section.outerHTML = '<section data-state="alert">' + 'ERROR: The attempt to fetch ' + url + ' failed with HTTP status ' + xhr.status + '.' + 'Check your browser\'s JavaScript console for more details.' + '<p>Remember that you need to serve the presentation HTML from a HTTP server.</p>' + '</section>'; } } }; xhr.open( 'GET', url, false ); try { xhr.send(); } catch ( e ) { alert( 'Failed to get the Markdown file ' + url + '. Make sure that the presentation and the file are served by a HTTP server and the file can be found there. ' + e ); } } else if( section.getAttribute( 'data-separator' ) || section.getAttribute( 'data-separator-vertical' ) || section.getAttribute( 'data-separator-notes' ) ) { section.outerHTML = slidify( getMarkdownFromSlide( section ), { separator: section.getAttribute( 'data-separator' ), verticalSeparator: section.getAttribute( 'data-separator-vertical' ), notesSeparator: section.getAttribute( 'data-separator-notes' ), attributes: getForwardedAttributes( section ) }); } else { section.innerHTML = createMarkdownSlide( getMarkdownFromSlide( section ) ); } } } /** * Check if a node value has the attributes pattern. * If yes, extract it and add that value as one or several attributes * the the terget element. * * You need Cache Killer on Chrome to see the effect on any FOM transformation * directly on refresh (F5) * http://stackoverflow.com/questions/5690269/disabling-chrome-cache-for-website-development/7000899#answer-11786277 */ function addAttributeInElement( node, elementTarget, separator ) { var mardownClassesInElementsRegex = new RegExp( separator, 'mg' ); var mardownClassRegex = new RegExp( "([^\"= ]+?)=\"([^\"=]+?)\"", 'mg' ); var nodeValue = node.nodeValue; if( matches = mardownClassesInElementsRegex.exec( nodeValue ) ) { var classes = matches[1]; nodeValue = nodeValue.substring( 0, matches.index ) + nodeValue.substring( mardownClassesInElementsRegex.lastIndex ); node.nodeValue = nodeValue; while( matchesClass = mardownClassRegex.exec( classes ) ) { elementTarget.setAttribute( matchesClass[1], matchesClass[2] ); } return true; } return false; } /** * Add attributes to the parent element of a text node, * or the element of an attribute node. */ function addAttributes( section, element, previousElement, separatorElementAttributes, separatorSectionAttributes ) { if ( element != null && element.childNodes != undefined && element.childNodes.length > 0 ) { previousParentElement = element; for( var i = 0; i < element.childNodes.length; i++ ) { childElement = element.childNodes[i]; if ( i > 0 ) { j = i - 1; while ( j >= 0 ) { aPreviousChildElement = element.childNodes[j]; if ( typeof aPreviousChildElement.setAttribute == 'function' && aPreviousChildElement.tagName != "BR" ) { previousParentElement = aPreviousChildElement; break; } j = j - 1; } } parentSection = section; if( childElement.nodeName == "section" ) { parentSection = childElement ; previousParentElement = childElement ; } if ( typeof childElement.setAttribute == 'function' || childElement.nodeType == Node.COMMENT_NODE ) { addAttributes( parentSection, childElement, previousParentElement, separatorElementAttributes, separatorSectionAttributes ); } } } if ( element.nodeType == Node.COMMENT_NODE ) { if ( addAttributeInElement( element, previousElement, separatorElementAttributes ) == false ) { addAttributeInElement( element, section, separatorSectionAttributes ); } } } /** * Converts any current data-markdown slides in the * DOM to HTML. */ function convertSlides() { var sections = document.querySelectorAll( '[data-markdown]'); for( var i = 0, len = sections.length; i < len; i++ ) { var section = sections[i]; // Only parse the same slide once if( !section.getAttribute( 'data-markdown-parsed' ) ) { section.setAttribute( 'data-markdown-parsed', true ) var notes = section.querySelector( 'aside.notes' ); var markdown = getMarkdownFromSlide( section ); section.innerHTML = marked( markdown ); addAttributes( section, section, null, section.getAttribute( 'data-element-attributes' ) || section.parentNode.getAttribute( 'data-element-attributes' ) || DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR, section.getAttribute( 'data-attributes' ) || section.parentNode.getAttribute( 'data-attributes' ) || DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR); // If there were notes, we need to re-add them after // having overwritten the section's HTML if( notes ) { section.appendChild( notes ); } } } } // API return { initialize: function() { processSlides(); convertSlides(); }, // TODO: Do these belong in the API? processSlides: processSlides, convertSlides: convertSlides, slidify: slidify }; }));
kshaffer/whatisDH
plugin/markdown/markdown.js
JavaScript
mit
11,747
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "SA", "CH" ], "DAY": [ "Ch\u1ee7 Nh\u1eadt", "Th\u1ee9 Hai", "Th\u1ee9 Ba", "Th\u1ee9 T\u01b0", "Th\u1ee9 N\u0103m", "Th\u1ee9 S\u00e1u", "Th\u1ee9 B\u1ea3y" ], "MONTH": [ "th\u00e1ng 1", "th\u00e1ng 2", "th\u00e1ng 3", "th\u00e1ng 4", "th\u00e1ng 5", "th\u00e1ng 6", "th\u00e1ng 7", "th\u00e1ng 8", "th\u00e1ng 9", "th\u00e1ng 10", "th\u00e1ng 11", "th\u00e1ng 12" ], "SHORTDAY": [ "CN", "Th 2", "Th 3", "Th 4", "Th 5", "Th 6", "Th 7" ], "SHORTMONTH": [ "thg 1", "thg 2", "thg 3", "thg 4", "thg 5", "thg 6", "thg 7", "thg 8", "thg 9", "thg 10", "thg 11", "thg 12" ], "fullDate": "EEEE, 'ng\u00e0y' dd MMMM 'n\u0103m' y", "longDate": "'Ng\u00e0y' dd 'th\u00e1ng' MM 'n\u0103m' y", "medium": "dd-MM-y HH:mm:ss", "mediumDate": "dd-MM-y", "mediumTime": "HH:mm:ss", "short": "dd/MM/y HH:mm", "shortDate": "dd/MM/y", "shortTime": "HH:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ab", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "vi-vn", "pluralCat": function (n, opt_precision) { return PLURAL_CATEGORY.OTHER;} }); }]);
prosenjit-itobuz/cdnjs
ajax/libs/angular.js/1.2.26/i18n/angular-locale_vi-vn.js
JavaScript
mit
2,070
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], "MONTH": [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], "SHORTDAY": [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], "SHORTMONTH": [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], "fullDate": "EEEE, MMMM d, y", "longDate": "MMMM d, y", "medium": "MMM d, y h:mm:ss a", "mediumDate": "MMM d, y", "mediumTime": "h:mm:ss a", "short": "M/d/yy h:mm a", "shortDate": "M/d/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "$", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "en-bs", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
froala/cdnjs
ajax/libs/angular.js/1.2.27/i18n/angular-locale_en-bs.js
JavaScript
mit
2,281
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], "MONTH": [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], "SHORTDAY": [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], "SHORTMONTH": [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], "fullDate": "EEEE, MMMM d, y", "longDate": "MMMM d, y", "medium": "MMM d, y h:mm:ss a", "mediumDate": "MMM d, y", "mediumTime": "h:mm:ss a", "short": "M/d/yy h:mm a", "shortDate": "M/d/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "$", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "en-ky", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
JohnKim/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_en-ky.js
JavaScript
mit
2,281
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "a. m.", "p. m." ], "DAY": [ "domingo", "lunes", "martes", "mi\u00e9rcoles", "jueves", "viernes", "s\u00e1bado" ], "MONTH": [ "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ], "SHORTDAY": [ "dom.", "lun.", "mar.", "mi\u00e9.", "jue.", "vie.", "s\u00e1b." ], "SHORTMONTH": [ "ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic." ], "fullDate": "EEEE, d 'de' MMMM 'de' y", "longDate": "d 'de' MMMM 'de' y", "medium": "d/M/y H:mm:ss", "mediumDate": "d/M/y", "mediumTime": "H:mm:ss", "short": "d/M/yy H:mm", "shortDate": "d/M/yy", "shortTime": "H:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": ".", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "es", "pluralCat": function (n, opt_precision) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
sts11vcd71/AngularSharp
AngularSharp.SampleWeb/Scripts/AngularJs/i18n/angular-locale_es.js
JavaScript
mit
1,949
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], "MONTH": [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], "SHORTDAY": [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], "SHORTMONTH": [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], "fullDate": "EEEE, MMMM d, y", "longDate": "MMMM d, y", "medium": "MMM d, y h:mm:ss a", "mediumDate": "MMM d, y", "mediumTime": "h:mm:ss a", "short": "M/d/yy h:mm a", "shortDate": "M/d/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "MOP", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "en-mo", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
eduardo-costa/cdnjs
ajax/libs/angular.js/1.2.26/i18n/angular-locale_en-mo.js
JavaScript
mit
2,283
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_precision) { var v = opt_precision; if (undefined === v) { v = Math.min(getDecimals(n), 3); } var base = Math.pow(10, v); var f = ((n * base) | 0) % base; return {v: v, f: f}; } $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], "MONTH": [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], "SHORTDAY": [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], "SHORTMONTH": [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], "fullDate": "EEEE, MMMM d, y", "longDate": "MMMM d, y", "medium": "MMM d, y h:mm:ss a", "mediumDate": "MMM d, y", "mediumTime": "h:mm:ss a", "short": "M/d/yy h:mm a", "shortDate": "M/d/yy", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20b1", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "\u00a4-", "negSuf": "", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "en-ph", "pluralCat": function (n, opt_precision) { var i = n | 0; var vf = getVF(n, opt_precision); if (i == 1 && vf.v == 0) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
kalkidanf/cdnjs
ajax/libs/angular.js/1.3.0/i18n/angular-locale_en-ph.js
JavaScript
mit
2,286
YUI.add('node-screen', function (Y, NAME) { /** * Extended Node interface for managing regions and screen positioning. * Adds support for positioning elements and normalizes window size and scroll detection. * @module node * @submodule node-screen */ // these are all "safe" returns, no wrapping required Y.each([ /** * Returns the inner width of the viewport (exludes scrollbar). * @config winWidth * @for Node * @type {Int} */ 'winWidth', /** * Returns the inner height of the viewport (exludes scrollbar). * @config winHeight * @type {Int} */ 'winHeight', /** * Document width * @config docWidth * @type {Int} */ 'docWidth', /** * Document height * @config docHeight * @type {Int} */ 'docHeight', /** * Pixel distance the page has been scrolled horizontally * @config docScrollX * @type {Int} */ 'docScrollX', /** * Pixel distance the page has been scrolled vertically * @config docScrollY * @type {Int} */ 'docScrollY' ], function(name) { Y.Node.ATTRS[name] = { getter: function() { var args = Array.prototype.slice.call(arguments); args.unshift(Y.Node.getDOMNode(this)); return Y.DOM[name].apply(this, args); } }; } ); Y.Node.ATTRS.scrollLeft = { getter: function() { var node = Y.Node.getDOMNode(this); return ('scrollLeft' in node) ? node.scrollLeft : Y.DOM.docScrollX(node); }, setter: function(val) { var node = Y.Node.getDOMNode(this); if (node) { if ('scrollLeft' in node) { node.scrollLeft = val; } else if (node.document || node.nodeType === 9) { Y.DOM._getWin(node).scrollTo(val, Y.DOM.docScrollY(node)); // scroll window if win or doc } } else { } } }; Y.Node.ATTRS.scrollTop = { getter: function() { var node = Y.Node.getDOMNode(this); return ('scrollTop' in node) ? node.scrollTop : Y.DOM.docScrollY(node); }, setter: function(val) { var node = Y.Node.getDOMNode(this); if (node) { if ('scrollTop' in node) { node.scrollTop = val; } else if (node.document || node.nodeType === 9) { Y.DOM._getWin(node).scrollTo(Y.DOM.docScrollX(node), val); // scroll window if win or doc } } else { } } }; Y.Node.importMethod(Y.DOM, [ /** * Gets the current position of the node in page coordinates. * @method getXY * @for Node * @return {Array} The XY position of the node */ 'getXY', /** * Set the position of the node in page coordinates, regardless of how the node is positioned. * @method setXY * @param {Array} xy Contains X & Y values for new position (coordinates are page-based) * @chainable */ 'setXY', /** * Gets the current position of the node in page coordinates. * @method getX * @return {Int} The X position of the node */ 'getX', /** * Set the position of the node in page coordinates, regardless of how the node is positioned. * @method setX * @param {Int} x X value for new position (coordinates are page-based) * @chainable */ 'setX', /** * Gets the current position of the node in page coordinates. * @method getY * @return {Int} The Y position of the node */ 'getY', /** * Set the position of the node in page coordinates, regardless of how the node is positioned. * @method setY * @param {Int} y Y value for new position (coordinates are page-based) * @chainable */ 'setY', /** * Swaps the XY position of this node with another node. * @method swapXY * @param {Node | HTMLElement} otherNode The node to swap with. * @chainable */ 'swapXY' ]); /** * @module node * @submodule node-screen */ /** * Returns a region object for the node * @config region * @for Node * @type Node */ Y.Node.ATTRS.region = { getter: function() { var node = this.getDOMNode(), region; if (node && !node.tagName) { if (node.nodeType === 9) { // document node = node.documentElement; } } if (Y.DOM.isWindow(node)) { region = Y.DOM.viewportRegion(node); } else { region = Y.DOM.region(node); } return region; } }; /** * Returns a region object for the node's viewport * @config viewportRegion * @type Node */ Y.Node.ATTRS.viewportRegion = { getter: function() { return Y.DOM.viewportRegion(Y.Node.getDOMNode(this)); } }; Y.Node.importMethod(Y.DOM, 'inViewportRegion'); // these need special treatment to extract 2nd node arg /** * Compares the intersection of the node with another node or region * @method intersect * @for Node * @param {Node|Object} node2 The node or region to compare with. * @param {Object} altRegion An alternate region to use (rather than this node's). * @return {Object} An object representing the intersection of the regions. */ Y.Node.prototype.intersect = function(node2, altRegion) { var node1 = Y.Node.getDOMNode(this); if (Y.instanceOf(node2, Y.Node)) { // might be a region object node2 = Y.Node.getDOMNode(node2); } return Y.DOM.intersect(node1, node2, altRegion); }; /** * Determines whether or not the node is within the giving region. * @method inRegion * @param {Node|Object} node2 The node or region to compare with. * @param {Boolean} all Whether or not all of the node must be in the region. * @param {Object} altRegion An alternate region to use (rather than this node's). * @return {Object} An object representing the intersection of the regions. */ Y.Node.prototype.inRegion = function(node2, all, altRegion) { var node1 = Y.Node.getDOMNode(this); if (Y.instanceOf(node2, Y.Node)) { // might be a region object node2 = Y.Node.getDOMNode(node2); } return Y.DOM.inRegion(node1, node2, all, altRegion); }; }, '@VERSION@', {"requires": ["dom-screen", "node-base"]});
kpdecker/cdnjs
ajax/libs/yui/3.10.0/node-screen/node-screen.js
JavaScript
mit
6,171
// Web analytics by Piwik - http://piwik.org // Copyleft 2007, All rights reversed. var _pk_use_title_as_name = 0; var _pk_install_tracker = 1; var _pk_tracker_pause = 500; var _pk_download_extensions = "7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip"; // Beginning script function _pk_plug_normal(_pk_pl) { if (_pk_tm.indexOf(_pk_pl) != -1 && (navigator.mimeTypes[_pk_pl].enabledPlugin != null)) return '1'; return '0'; } function _pk_plug_ie(_pk_pl) { pk_found = false; document.write('<SCR' + 'IPT LANGUAGE=VBScript>\n on error resume next \n pk_found = IsObject(CreateObject("' + _pk_pl + '")) </SCR' + 'IPT>\n'); if (pk_found) return '1'; return '0'; } var _pk_jav = '0'; if(navigator.javaEnabled()) _pk_jav='1'; var _pk_agent = navigator.userAgent.toLowerCase(); var _pk_moz = (navigator.appName.indexOf("Netscape") != -1); var _pk_ie = (_pk_agent.indexOf("msie") != -1); var _pk_win = ((_pk_agent.indexOf("win") != -1) || (_pk_agent.indexOf("32bit") != -1)); var _pk_cookie = (navigator.cookieEnabled)? '1' : '0'; if((typeof (navigator.cookieEnabled) == "undefined") && (_pk_cookie == '0')) { document.cookie="_pk_testcookie" _pk_cookie=(document.cookie.indexOf("_pk_testcookie")!=-1)? '1' : '0'; } var _pk_dir='0',_pk_fla='0',_pk_pdf='0',_pk_qt = '0',_pk_rea = '0',_pk_wma='0'; if (_pk_win && _pk_ie){ _pk_dir = _pk_plug_ie("SWCtl.SWCtl.1"); _pk_fla = _pk_plug_ie("ShockwaveFlash.ShockwaveFlash.1"); if (_pk_plug_ie("PDF.PdfCtrl.1") == '1' || _pk_plug_ie('PDF.PdfCtrl.5') == '1' || _pk_plug_ie('PDF.PdfCtrl.6') == '1') _pk_pdf = '1'; _pk_qt = _pk_plug_ie("Quicktime.Quicktime"); // Old : "QuickTimeCheckObject.QuickTimeCheck.1" _pk_rea = _pk_plug_ie("rmocx.RealPlayer G2 Control.1"); _pk_wma = _pk_plug_ie("wmplayer.ocx"); // Old : "MediaPlayer.MediaPlayer.1" } else { var _pk_tm = ''; for (var i=0; i < navigator.mimeTypes.length; i++) _pk_tm += navigator.mimeTypes[i].type.toLowerCase(); _pk_dir = _pk_plug_normal("application/x-director"); _pk_fla = _pk_plug_normal("application/x-shockwave-flash"); _pk_pdf = _pk_plug_normal("application/pdf"); _pk_qt = _pk_plug_normal("video/quicktime"); _pk_rea = _pk_plug_normal("audio/x-pn-realaudio-plugin"); _pk_wma = _pk_plug_normal("application/x-mplayer2"); } var _pk_rtu = ''; try { _pk_rtu = top.document.referrer; } catch(e1) { if(parent){ try{ _pk_rtu = parent.document.referrer; } catch(e2) { _pk_rtu=''; } } } if(_pk_rtu == '') { _pk_rtu = document.referrer; } function _pk_escape(_pk_str){ if(typeof(encodeURIComponent) == 'function') { return encodeURIComponent(_pk_str); } else { return escape(_pk_str); } } var _pk_title = ''; if (document.title && document.title!="") _pk_title = _pk_escape(document.title); var _pk_called; function _pk_getUrlLog( _pk_action_name, _pk_site, _pk_pkurl, _pk_custom_vars ) { var _pk_custom_vars_str = ''; if(typeof _pk_custom_vars == "undefined"){ _pk_custom_vars = false; } if (_pk_custom_vars) { for (var i in _pk_custom_vars){ if (!Array.prototype[i]){ _pk_custom_vars_str = _pk_custom_vars_str + '&vars['+ escape(i) + ']' + "=" + escape(_pk_custom_vars[i]); } } } var _pk_url = document.location.href; var _pk_da = new Date(); var _pk_src = _pk_pkurl +'?url='+_pk_escape(document.location.href) +'&action_name='+_pk_escape(_pk_action_name) +'&idsite='+_pk_site +'&res='+screen.width+'x'+screen.height +'&h='+_pk_da.getHours()+'&m='+_pk_da.getMinutes()+'&s='+_pk_da.getSeconds() +'&fla='+_pk_fla+'&dir='+_pk_dir+'&qt='+_pk_qt+'&realp='+_pk_rea+'&pdf='+_pk_pdf +'&wma='+_pk_wma+'&java='+_pk_jav+'&cookie='+_pk_cookie +'&title='+_pk_title +'&urlref='+_pk_escape(_pk_rtu) +_pk_custom_vars_str; return _pk_src; } function piwik_log( _pk_action_name, _pk_site, _pk_pkurl, _pk_custom_vars ) { if(_pk_called && (!_pk_action_name || _pk_action_name=="")) return; var _pk_src = _pk_getUrlLog(_pk_action_name, _pk_site, _pk_pkurl, _pk_custom_vars ); document.writeln('<img src="'+_pk_src+'" alt="" style="border:0" />'); if(!_pk_action_name || _pk_action_name=="") _pk_called=1; _pk_init_tracker(_pk_site, _pk_pkurl); } function _pk_add_event(elm, evType, fn, useCapture) { if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true; } else if (elm.attachEvent) { var r = elm.attachEvent('on' + evType, fn); return r; } else { elm['on' + evType] = fn; } } var _pk_tracker_site, _pk_tracker_url; function _pk_init_tracker(_pk_site, _pk_pkurl) { if( typeof(piwik_install_tracker) != "undefined" ) _pk_install_tracker = piwik_install_tracker; if( typeof(piwik_tracker_pause) != "undefined" ) _pk_tracker_pause = piwik_tracker_pause; if( typeof(piwik_download_extensions) != "undefined" ) _pk_download_extensions = piwik_download_extensions; _pk_hosts_alias = ( typeof(piwik_hosts_alias) != "undefined" ? piwik_hosts_alias : new Array()) _pk_hosts_alias.push(window.location.hostname); if( !_pk_install_tracker ) return; _pk_tracker_site = _pk_site; _pk_tracker_url = _pk_pkurl; if (document.getElementsByTagName) { linksElements = document.getElementsByTagName('a') for (var i = 0; i < linksElements.length; i++) { if( linksElements[i].className != 'piwik_ignore' ) _pk_add_event(linksElements[i], 'mousedown', _pk_click, false); } } } function _pk_dummy() { return true; } function _pk_pause(_pk_time_msec) { var _pk_now = new Date(); var _pk_expire = _pk_now.getTime() + _pk_time_msec; while(_pk_now.getTime() < _pk_expire) _pk_now = new Date(); } // _pk_type only 'download' and 'link' types supported function piwik_track(url, _pk_site, _pk_url, _pk_type) { var _pk_image = new Image(); _pk_image.onLoad = function() { _pk_dummy(); }; _pk_image.src = _pk_url + '?idsite=' + _pk_site + '&' + _pk_type + '=' + escape(url) + '&rand=' + Math.random() + '&redirect=0'; _pk_pause(_pk_tracker_pause); } function _pk_is_site_hostname(_pk_hostname) { for(i = 0; i < _pk_hosts_alias.length; i++) if( _pk_hostname == _pk_hosts_alias[i] ) return true; return false; } function _pk_click(e) { var source; if (typeof e == 'undefined') var e = window.event; if (typeof e.target != 'undefined') source = e.target; else if (typeof e.srcElement != 'undefined') source = e.srcElement; else return true; while( source.tagName != "A" ) source = source.parentNode; if( typeof source.href == 'undefined' ) return true; var _pk_download = new RegExp('\\.(' + _pk_download_extensions + ')$', 'i'); var _pk_link_type; var _pk_not_site_hostname = !_pk_is_site_hostname(source.hostname); if( source.className == "piwik_download" ) _pk_link_type = 'download'; else if( source.className == "piwik_link" ) { _pk_link_type = 'link'; _pk_not_site_hostname = 1; } else _pk_link_type = (_pk_download.test(source.href) ? 'download' : 'link'); if( _pk_not_site_hostname || _pk_link_type == 'download' ) piwik_track(source.href, _pk_tracker_site, _pk_tracker_url, _pk_link_type); return true; }
stefanocudini/cdnjs
ajax/libs/piwik/0.2.25/piwik.js
JavaScript
mit
7,081
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (require, exports, module) { exports.GREATEST_LOWER_BOUND = 1; exports.LEAST_UPPER_BOUND = 2; /** * Recursive implementation of binary search. * * @param aLow Indices here and lower do not contain the needle. * @param aHigh Indices here and higher do not contain the needle. * @param aNeedle The element being searched for. * @param aHaystack The non-empty array being searched. * @param aCompare Function which takes two elements and returns -1, 0, or 1. * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the * closest element that is smaller than or greater than the one we are * searching for, respectively, if the exact element cannot be found. */ function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { // This function terminates when one of the following is true: // // 1. We find the exact element we are looking for. // // 2. We did not find the exact element, but we can return the index of // the next-closest element. // // 3. We did not find the exact element, and there is no next-closest // element than the one we are searching for, so we return -1. var mid = Math.floor((aHigh - aLow) / 2) + aLow; var cmp = aCompare(aNeedle, aHaystack[mid], true); if (cmp === 0) { // Found the element we are looking for. return mid; } else if (cmp > 0) { // Our needle is greater than aHaystack[mid]. if (aHigh - mid > 1) { // The element is in the upper half. return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); } // The exact needle element was not found in this haystack. Determine if // we are in termination case (3) or (2) and return the appropriate thing. if (aBias == exports.LEAST_UPPER_BOUND) { return aHigh < aHaystack.length ? aHigh : -1; } else { return mid; } } else { // Our needle is less than aHaystack[mid]. if (mid - aLow > 1) { // The element is in the lower half. return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); } // we are in termination case (3) or (2) and return the appropriate thing. if (aBias == exports.LEAST_UPPER_BOUND) { return mid; } else { return aLow < 0 ? -1 : aLow; } } } /** * This is an implementation of binary search which will always try and return * the index of the closest element if there is no exact hit. This is because * mappings between original and generated line/col pairs are single points, * and there is an implicit region between each of them, so a miss just means * that you aren't on the very start of a region. * * @param aNeedle The element you are looking for. * @param aHaystack The array that is being searched. * @param aCompare A function which takes the needle and an element in the * array and returns -1, 0, or 1 depending on whether the needle is less * than, equal to, or greater than the element, respectively. * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the * closest element that is smaller than or greater than the one we are * searching for, respectively, if the exact element cannot be found. * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'. */ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { if (aHaystack.length === 0) { return -1; } var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare, aBias || exports.GREATEST_LOWER_BOUND); if (index < 0) { return -1; } // We have found either the exact element, or the next-closest element than // the one we are searching for. However, there may be more than one such // element. Make sure we always return the smallest of these. while (index - 1 >= 0) { if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { break; } --index; } return index; }; });
WebDerekh/blackfriday-horze
node_modules/grunt-contrib-cssmin/node_modules/clean-css/node_modules/source-map/lib/source-map/binary-search.js
JavaScript
mit
4,586
webshims.validityMessages['zh-CN'] = { "typeMismatch": { "email": "请输入电子邮件地址。", "url": "请输入一个 URL。" }, "badInput": { "number": "值无效。", "date": "值无效。", "time": "值无效。", "range": "值无效。", "datetime-local": "值无效。" }, "tooLong": "值无效。", "patternMismatch": "请匹配要求的格式: {%title}。", "valueMissing": { "defaultMessage": "请填写此字段。", "checkbox": "若要继续,请检选此检查框。", "select": "请选择列表中的一项。", "radio": "请选择一个选项。" }, "rangeUnderflow": { "defaultMessage": "值无效。", "date": "值无效。", "time": "值无效。", "datetime-local": "值无效。" }, "rangeOverflow": { "defaultMessage": "值无效。", "date": "值无效。", "time": "值无效。", "datetime-local": "值无效。" }, "stepMismatch": "值无效。" }; webshims.formcfg['zh-CN'] = { numberFormat: { ".": ".", ",": "," }, numberSigns: '.', dateSigns: '-', timeSigns: ":. ", dFormat: "-", patterns: { d: "yy-mm-dd" }, date: { closeText: '关闭', prevText: '&#x3C;上月', nextText: '下月&#x3E;', currentText: '今天', monthNames: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], monthNamesShort: ['一月','二月','三月','四月','五月','六月', '七月','八月','九月','十月','十一月','十二月'], dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], dayNamesMin: ['日','一','二','三','四','五','六'], weekHeader: '周', firstDay: 1, isRTL: false, showMonthAfterYear: true, yearSuffix: '年' } };
chrillep/cdnjs
ajax/libs/webshim/1.14.4/dev/shims/i18n/formcfg-ch-CN.js
JavaScript
mit
1,842
require "spec_helper" describe Mongoid::Persistence::Atomic::Sets do let(:collection) do stub end before do person.stubs(:collection).returns(collection) end after do person.unstub(:collection) end describe "#set" do let(:reloaded) do person.reload end context "when setting a field with a value" do let(:person) do Person.new(:age => 100) end before do collection.expects(:update).with( person.atomic_selector, { "$set" => { "age" => 2 } }, { :safe => false } ) end let!(:set) do person.set(:age, 2) end it "sets the provided value" do person.age.should == 2 end it "returns the new value" do set.should == 2 end it "resets the dirty attributes" do person.changes["age"].should be_nil end end context "when setting a nil field" do let(:person) do Person.new end before do collection.expects(:update).with( person.atomic_selector, { "$set" => { "score" => 2 } }, { :safe => false } ) end let!(:set) do person.set(:score, 2) end it "sets the value to the provided number" do person.score.should == 2 end it "returns the new value" do set.should == 2 end it "resets the dirty attributes" do person.changes["score"].should be_nil end end context "when setting a non existant field" do let(:person) do Person.new end before do collection.expects(:update).with( person.atomic_selector, { "$set" => { "high_score" => 5 } }, { :safe => false } ) end let!(:set) do person.set(:high_score, 5) end it "sets the value to the provided number" do person.high_score.should == 5 end it "returns the new value" do set.should == 5 end it "resets the dirty attributes" do person.changes["high_score"].should be_nil end end end end
mitijain123/mongoid
spec/unit/mongoid/persistence/atomic/sets_spec.rb
Ruby
mit
2,120
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // // File: HotHeap.cpp // // // Class code:MetaData::HotHeap represents a hot heap in MetaData hot stream. // // ====================================================================================== #include "external.h" #include "hotheap.h" #include "hotdataformat.h" #include <utilcode.h> namespace MetaData { // -------------------------------------------------------------------------------------- // // Initializes hot heap from its header and data. // Provides limited debug-only validation of the structure. // __checkReturn HRESULT HotHeap::Initialize( struct HotHeapHeader *pHotHeapHeader, DataBuffer hotHeapData) { _ASSERTE(hotHeapData.GetDataPointerBehind() == reinterpret_cast<BYTE *>(pHotHeapHeader)); UINT32 nMaximumNegativeOffset = hotHeapData.GetSize(); if (pHotHeapHeader->m_nIndexTableStart_NegativeOffset > nMaximumNegativeOffset) { m_pHotHeapHeader = NULL; Debug_ReportError("Invalid hot heap header format - invalid index table offset."); return METADATA_E_INVALID_FORMAT; } if ((pHotHeapHeader->m_nIndexTableStart_NegativeOffset % 4) != 0) { m_pHotHeapHeader = NULL; Debug_ReportError("Invalid hot heap header format - index table offset is not aligned."); return METADATA_E_INVALID_FORMAT; } if (pHotHeapHeader->m_nValueOffsetTableStart_NegativeOffset > nMaximumNegativeOffset) { m_pHotHeapHeader = NULL; Debug_ReportError("Invalid hot heap header format - invalid value offset table offset."); return METADATA_E_INVALID_FORMAT; } if ((pHotHeapHeader->m_nValueOffsetTableStart_NegativeOffset % 4) != 0) { m_pHotHeapHeader = NULL; Debug_ReportError("Invalid hot heap header format - value offset table offset is not aligned."); return METADATA_E_INVALID_FORMAT; } // Index table has to be behind value offset table if (pHotHeapHeader->m_nValueOffsetTableStart_NegativeOffset < pHotHeapHeader->m_nIndexTableStart_NegativeOffset) { m_pHotHeapHeader = NULL; Debug_ReportError("Invalid hot heap header format - value offset table doesn't start before index table."); return METADATA_E_INVALID_FORMAT; } if (pHotHeapHeader->m_nValueHeapStart_NegativeOffset > nMaximumNegativeOffset) { m_pHotHeapHeader = NULL; Debug_ReportError("Invalid hot heap header format - invalid value heap offset."); return METADATA_E_INVALID_FORMAT; } m_pHotHeapHeader = pHotHeapHeader; return S_OK; } // HotHeap::Initialize #ifdef _DEBUG_METADATA // -------------------------------------------------------------------------------------- // // Validates hot heap structure (extension of code:Initialize checks). // __checkReturn HRESULT HotHeap::Debug_Validate() { // Additional verification, more strict checks than in code:Initialize S_UINT32 nValueOffsetTableStart = S_UINT32(2) * S_UINT32(m_pHotHeapHeader->m_nIndexTableStart_NegativeOffset); if (nValueOffsetTableStart.IsOverflow() || (nValueOffsetTableStart.Value() != m_pHotHeapHeader->m_nValueOffsetTableStart_NegativeOffset)) { Debug_ReportError("Invalid hot heap header format."); return METADATA_E_INVALID_FORMAT; } if (m_pHotHeapHeader->m_nValueHeapStart_NegativeOffset <= m_pHotHeapHeader->m_nValueOffsetTableStart_NegativeOffset) { Debug_ReportError("Invalid hot heap header format."); return METADATA_E_INVALID_FORMAT; } // Already validated against underflow in code:Initialize BYTE *pIndexTableStart = reinterpret_cast<BYTE *>(m_pHotHeapHeader) - m_pHotHeapHeader->m_nIndexTableStart_NegativeOffset; UINT32 *rgIndexTable = reinterpret_cast<UINT32 *>(pIndexTableStart); // Already validated against underflow in code:Initialize BYTE *pValueOffsetTableStart = reinterpret_cast<BYTE *>(m_pHotHeapHeader) - m_pHotHeapHeader->m_nValueOffsetTableStart_NegativeOffset; UINT32 *rgValueOffsetTable = reinterpret_cast<UINT32 *>(pValueOffsetTableStart); // Already validated against underflow in code:Initialize BYTE *pValueHeapStart = reinterpret_cast<BYTE *>(m_pHotHeapHeader) - m_pHotHeapHeader->m_nValueHeapStart_NegativeOffset; DataBuffer valueHeap( pValueHeapStart, m_pHotHeapHeader->m_nValueHeapStart_NegativeOffset - m_pHotHeapHeader->m_nValueOffsetTableStart_NegativeOffset); // Already validated for % 4 == 0 in code:Initialize UINT32 cIndexTableCount = m_pHotHeapHeader->m_nIndexTableStart_NegativeOffset / 4; UINT32 nPreviousValue = 0; for (UINT32 nIndex = 0; nIndex < cIndexTableCount; nIndex++) { if (nPreviousValue >= rgIndexTable[nIndex]) { Debug_ReportError("Invalid hot heap header format."); return METADATA_E_INVALID_FORMAT; } UINT32 nValueOffset = rgValueOffsetTable[nIndex]; if (nValueOffset >= valueHeap.GetSize()) { Debug_ReportError("Invalid hot heap header format."); return METADATA_E_INVALID_FORMAT; } // TODO: Verify item (depends if it is string, blob, guid or user string) } return S_OK; } // HotHeap::Debug_Validate #endif //_DEBUG_METADATA // -------------------------------------------------------------------------------------- // // Gets stored data at index. // Returns S_FALSE if data index is not stored in hot heap. // __checkReturn HRESULT HotHeap::GetData( UINT32 nDataIndex, __in DataBlob *pData) { // Already validated against underflow in code:Initialize BYTE *pIndexTableStart = reinterpret_cast<BYTE *>(m_pHotHeapHeader) - m_pHotHeapHeader->m_nIndexTableStart_NegativeOffset; // Already validated against underflow in code:Initialize BYTE *pValueOffsetTableStart = reinterpret_cast<BYTE *>(m_pHotHeapHeader) - m_pHotHeapHeader->m_nValueOffsetTableStart_NegativeOffset; // Already validated against underflow in code:Initialize BYTE *pValueHeapStart = reinterpret_cast<BYTE *>(m_pHotHeapHeader) - m_pHotHeapHeader->m_nValueHeapStart_NegativeOffset; const UINT32 *pnFoundDataIndex = BinarySearch<UINT32>( reinterpret_cast<UINT32 *>(pIndexTableStart), m_pHotHeapHeader->m_nIndexTableStart_NegativeOffset / sizeof(UINT32), nDataIndex); if (pnFoundDataIndex == NULL) { // Index is not stored in hot data return S_FALSE; } _ASSERTE(((UINT32 *)pIndexTableStart <= pnFoundDataIndex) && (pnFoundDataIndex + 1 <= (UINT32 *)m_pHotHeapHeader)); // Index of found data index in the index table (note: it is not offset, but really index) UINT32 nIndexOfFoundDataIndex = (UINT32)(pnFoundDataIndex - (UINT32 *)pIndexTableStart); // Value offset contains positive offset to the ValueHeap start // Already validated against overflow in code:Initialize UINT32 nValueOffset_PositiveOffset = reinterpret_cast<UINT32 *>(pValueOffsetTableStart)[nIndexOfFoundDataIndex]; if (nValueOffset_PositiveOffset >= m_pHotHeapHeader->m_nValueHeapStart_NegativeOffset) { pData->Clear(); Debug_ReportError("Invalid hot data format - value offset reaches behind the hot heap data."); return METADATA_E_INVALID_FORMAT; } pData->Init( pValueHeapStart + nValueOffset_PositiveOffset, m_pHotHeapHeader->m_nValueHeapStart_NegativeOffset - nValueOffset_PositiveOffset); return S_OK; } // HotHeap::GetData }; // namespace MetaData
dkorolev/coreclr
src/md/hotdata/hotheap.cpp
C++
mit
7,731
/***************************************************************************/ /* */ /* gxvtrak.c */ /* */ /* TrueTypeGX/AAT trak table validation (body). */ /* */ /* Copyright 2004-2017 by */ /* suzuki toshiya, Masatake YAMATO, Red Hat K.K., */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ /* modified, and distributed under the terms of the FreeType project */ /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ /* this file you indicate that you have read the license and */ /* understand and accept it fully. */ /* */ /***************************************************************************/ /***************************************************************************/ /* */ /* gxvalid is derived from both gxlayout module and otvalid module. */ /* Development of gxlayout is supported by the Information-technology */ /* Promotion Agency(IPA), Japan. */ /* */ /***************************************************************************/ #include "gxvalid.h" #include "gxvcommn.h" /*************************************************************************/ /* */ /* The macro FT_COMPONENT is used in trace mode. It is an implicit */ /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */ /* messages during execution. */ /* */ #undef FT_COMPONENT #define FT_COMPONENT trace_gxvtrak /*************************************************************************/ /*************************************************************************/ /***** *****/ /***** Data and Types *****/ /***** *****/ /*************************************************************************/ /*************************************************************************/ /* * referred track table format specification: * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6trak.html * last update was 1996. * ---------------------------------------------- * [MINIMUM HEADER]: GXV_TRAK_SIZE_MIN * version (fixed: 32bit) = 0x00010000 * format (uint16: 16bit) = 0 is only defined (1996) * horizOffset (uint16: 16bit) * vertOffset (uint16: 16bit) * reserved (uint16: 16bit) = 0 * ---------------------------------------------- * [VARIABLE BODY]: * horizData * header ( 2 + 2 + 4 * trackTable + nTracks * ( 4 + 2 + 2 ) * sizeTable + nSizes * 4 ) * ---------------------------------------------- * vertData * header ( 2 + 2 + 4 * trackTable + nTracks * ( 4 + 2 + 2 ) * sizeTable + nSizes * 4 ) * ---------------------------------------------- */ typedef struct GXV_trak_DataRec_ { FT_UShort trackValueOffset_min; FT_UShort trackValueOffset_max; } GXV_trak_DataRec, *GXV_trak_Data; #define GXV_TRAK_DATA( FIELD ) GXV_TABLE_DATA( trak, FIELD ) /*************************************************************************/ /*************************************************************************/ /***** *****/ /***** UTILITY FUNCTIONS *****/ /***** *****/ /*************************************************************************/ /*************************************************************************/ static void gxv_trak_trackTable_validate( FT_Bytes table, FT_Bytes limit, FT_UShort nTracks, GXV_Validator gxvalid ) { FT_Bytes p = table; FT_Fixed track, t; FT_UShort nameIndex; FT_UShort offset; FT_UShort i, j; GXV_NAME_ENTER( "trackTable" ); GXV_TRAK_DATA( trackValueOffset_min ) = 0xFFFFU; GXV_TRAK_DATA( trackValueOffset_max ) = 0x0000; GXV_LIMIT_CHECK( nTracks * ( 4 + 2 + 2 ) ); for ( i = 0; i < nTracks; i++ ) { p = table + i * ( 4 + 2 + 2 ); track = FT_NEXT_LONG( p ); nameIndex = FT_NEXT_USHORT( p ); offset = FT_NEXT_USHORT( p ); if ( offset < GXV_TRAK_DATA( trackValueOffset_min ) ) GXV_TRAK_DATA( trackValueOffset_min ) = offset; if ( offset > GXV_TRAK_DATA( trackValueOffset_max ) ) GXV_TRAK_DATA( trackValueOffset_max ) = offset; gxv_sfntName_validate( nameIndex, 256, 32767, gxvalid ); for ( j = i; j < nTracks; j++ ) { p = table + j * ( 4 + 2 + 2 ); t = FT_NEXT_LONG( p ); if ( t == track ) GXV_TRACE(( "duplicated entries found for track value 0x%x\n", track )); } } gxvalid->subtable_length = (FT_ULong)( p - table ); GXV_EXIT; } static void gxv_trak_trackData_validate( FT_Bytes table, FT_Bytes limit, GXV_Validator gxvalid ) { FT_Bytes p = table; FT_UShort nTracks; FT_UShort nSizes; FT_ULong sizeTableOffset; GXV_ODTECT( 4, odtect ); GXV_ODTECT_INIT( odtect ); GXV_NAME_ENTER( "trackData" ); /* read the header of trackData */ GXV_LIMIT_CHECK( 2 + 2 + 4 ); nTracks = FT_NEXT_USHORT( p ); nSizes = FT_NEXT_USHORT( p ); sizeTableOffset = FT_NEXT_ULONG( p ); gxv_odtect_add_range( table, (FT_ULong)( p - table ), "trackData header", odtect ); /* validate trackTable */ gxv_trak_trackTable_validate( p, limit, nTracks, gxvalid ); gxv_odtect_add_range( p, gxvalid->subtable_length, "trackTable", odtect ); /* sizeTable is array of FT_Fixed, don't check contents */ p = gxvalid->root->base + sizeTableOffset; GXV_LIMIT_CHECK( nSizes * 4 ); gxv_odtect_add_range( p, nSizes * 4, "sizeTable", odtect ); /* validate trackValueOffet */ p = gxvalid->root->base + GXV_TRAK_DATA( trackValueOffset_min ); if ( limit - p < nTracks * nSizes * 2 ) GXV_TRACE(( "too short trackValue array\n" )); p = gxvalid->root->base + GXV_TRAK_DATA( trackValueOffset_max ); GXV_LIMIT_CHECK( nSizes * 2 ); gxv_odtect_add_range( gxvalid->root->base + GXV_TRAK_DATA( trackValueOffset_min ), GXV_TRAK_DATA( trackValueOffset_max ) - GXV_TRAK_DATA( trackValueOffset_min ) + nSizes * 2, "trackValue array", odtect ); gxv_odtect_validate( odtect, gxvalid ); GXV_EXIT; } /*************************************************************************/ /*************************************************************************/ /***** *****/ /***** trak TABLE *****/ /***** *****/ /*************************************************************************/ /*************************************************************************/ FT_LOCAL_DEF( void ) gxv_trak_validate( FT_Bytes table, FT_Face face, FT_Validator ftvalid ) { FT_Bytes p = table; FT_Bytes limit = 0; GXV_ValidatorRec gxvalidrec; GXV_Validator gxvalid = &gxvalidrec; GXV_trak_DataRec trakrec; GXV_trak_Data trak = &trakrec; FT_ULong version; FT_UShort format; FT_UShort horizOffset; FT_UShort vertOffset; FT_UShort reserved; GXV_ODTECT( 3, odtect ); GXV_ODTECT_INIT( odtect ); gxvalid->root = ftvalid; gxvalid->table_data = trak; gxvalid->face = face; limit = gxvalid->root->limit; FT_TRACE3(( "validating `trak' table\n" )); GXV_INIT; GXV_LIMIT_CHECK( 4 + 2 + 2 + 2 + 2 ); version = FT_NEXT_ULONG( p ); format = FT_NEXT_USHORT( p ); horizOffset = FT_NEXT_USHORT( p ); vertOffset = FT_NEXT_USHORT( p ); reserved = FT_NEXT_USHORT( p ); GXV_TRACE(( " (version = 0x%08x)\n", version )); GXV_TRACE(( " (format = 0x%04x)\n", format )); GXV_TRACE(( " (horizOffset = 0x%04x)\n", horizOffset )); GXV_TRACE(( " (vertOffset = 0x%04x)\n", vertOffset )); GXV_TRACE(( " (reserved = 0x%04x)\n", reserved )); /* Version 1.0 (always:1996) */ if ( version != 0x00010000UL ) FT_INVALID_FORMAT; /* format 0 (always:1996) */ if ( format != 0x0000 ) FT_INVALID_FORMAT; GXV_32BIT_ALIGNMENT_VALIDATE( horizOffset ); GXV_32BIT_ALIGNMENT_VALIDATE( vertOffset ); /* Reserved Fixed Value (always) */ if ( reserved != 0x0000 ) FT_INVALID_DATA; /* validate trackData */ if ( 0 < horizOffset ) { gxv_trak_trackData_validate( table + horizOffset, limit, gxvalid ); gxv_odtect_add_range( table + horizOffset, gxvalid->subtable_length, "horizJustData", odtect ); } if ( 0 < vertOffset ) { gxv_trak_trackData_validate( table + vertOffset, limit, gxvalid ); gxv_odtect_add_range( table + vertOffset, gxvalid->subtable_length, "vertJustData", odtect ); } gxv_odtect_validate( odtect, gxvalid ); FT_TRACE4(( "\n" )); } /* END */
zicklag/godot
thirdparty/freetype/src/gxvalid/gxvtrak.c
C
mit
10,782
/***************************************************************************/ /* */ /* ftstream.c */ /* */ /* I/O stream support (body). */ /* */ /* Copyright 2000-2017 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ /* modified, and distributed under the terms of the FreeType project */ /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ /* this file you indicate that you have read the license and */ /* understand and accept it fully. */ /* */ /***************************************************************************/ #include <ft2build.h> #include FT_INTERNAL_STREAM_H #include FT_INTERNAL_DEBUG_H /*************************************************************************/ /* */ /* The macro FT_COMPONENT is used in trace mode. It is an implicit */ /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */ /* messages during execution. */ /* */ #undef FT_COMPONENT #define FT_COMPONENT trace_stream FT_BASE_DEF( void ) FT_Stream_OpenMemory( FT_Stream stream, const FT_Byte* base, FT_ULong size ) { stream->base = (FT_Byte*) base; stream->size = size; stream->pos = 0; stream->cursor = NULL; stream->read = NULL; stream->close = NULL; } FT_BASE_DEF( void ) FT_Stream_Close( FT_Stream stream ) { if ( stream && stream->close ) stream->close( stream ); } FT_BASE_DEF( FT_Error ) FT_Stream_Seek( FT_Stream stream, FT_ULong pos ) { FT_Error error = FT_Err_Ok; if ( stream->read ) { if ( stream->read( stream, pos, 0, 0 ) ) { FT_ERROR(( "FT_Stream_Seek:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", pos, stream->size )); error = FT_THROW( Invalid_Stream_Operation ); } } /* note that seeking to the first position after the file is valid */ else if ( pos > stream->size ) { FT_ERROR(( "FT_Stream_Seek:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", pos, stream->size )); error = FT_THROW( Invalid_Stream_Operation ); } if ( !error ) stream->pos = pos; return error; } FT_BASE_DEF( FT_Error ) FT_Stream_Skip( FT_Stream stream, FT_Long distance ) { if ( distance < 0 ) return FT_THROW( Invalid_Stream_Operation ); return FT_Stream_Seek( stream, stream->pos + (FT_ULong)distance ); } FT_BASE_DEF( FT_ULong ) FT_Stream_Pos( FT_Stream stream ) { return stream->pos; } FT_BASE_DEF( FT_Error ) FT_Stream_Read( FT_Stream stream, FT_Byte* buffer, FT_ULong count ) { return FT_Stream_ReadAt( stream, stream->pos, buffer, count ); } FT_BASE_DEF( FT_Error ) FT_Stream_ReadAt( FT_Stream stream, FT_ULong pos, FT_Byte* buffer, FT_ULong count ) { FT_Error error = FT_Err_Ok; FT_ULong read_bytes; if ( pos >= stream->size ) { FT_ERROR(( "FT_Stream_ReadAt:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", pos, stream->size )); return FT_THROW( Invalid_Stream_Operation ); } if ( stream->read ) read_bytes = stream->read( stream, pos, buffer, count ); else { read_bytes = stream->size - pos; if ( read_bytes > count ) read_bytes = count; FT_MEM_COPY( buffer, stream->base + pos, read_bytes ); } stream->pos = pos + read_bytes; if ( read_bytes < count ) { FT_ERROR(( "FT_Stream_ReadAt:" " invalid read; expected %lu bytes, got %lu\n", count, read_bytes )); error = FT_THROW( Invalid_Stream_Operation ); } return error; } FT_BASE_DEF( FT_ULong ) FT_Stream_TryRead( FT_Stream stream, FT_Byte* buffer, FT_ULong count ) { FT_ULong read_bytes = 0; if ( stream->pos >= stream->size ) goto Exit; if ( stream->read ) read_bytes = stream->read( stream, stream->pos, buffer, count ); else { read_bytes = stream->size - stream->pos; if ( read_bytes > count ) read_bytes = count; FT_MEM_COPY( buffer, stream->base + stream->pos, read_bytes ); } stream->pos += read_bytes; Exit: return read_bytes; } FT_BASE_DEF( FT_Error ) FT_Stream_ExtractFrame( FT_Stream stream, FT_ULong count, FT_Byte** pbytes ) { FT_Error error; error = FT_Stream_EnterFrame( stream, count ); if ( !error ) { *pbytes = (FT_Byte*)stream->cursor; /* equivalent to FT_Stream_ExitFrame(), with no memory block release */ stream->cursor = NULL; stream->limit = NULL; } return error; } FT_BASE_DEF( void ) FT_Stream_ReleaseFrame( FT_Stream stream, FT_Byte** pbytes ) { if ( stream && stream->read ) { FT_Memory memory = stream->memory; #ifdef FT_DEBUG_MEMORY ft_mem_free( memory, *pbytes ); *pbytes = NULL; #else FT_FREE( *pbytes ); #endif } *pbytes = NULL; } FT_BASE_DEF( FT_Error ) FT_Stream_EnterFrame( FT_Stream stream, FT_ULong count ) { FT_Error error = FT_Err_Ok; FT_ULong read_bytes; /* check for nested frame access */ FT_ASSERT( stream && stream->cursor == 0 ); if ( stream->read ) { /* allocate the frame in memory */ FT_Memory memory = stream->memory; /* simple sanity check */ if ( count > stream->size ) { FT_ERROR(( "FT_Stream_EnterFrame:" " frame size (%lu) larger than stream size (%lu)\n", count, stream->size )); error = FT_THROW( Invalid_Stream_Operation ); goto Exit; } #ifdef FT_DEBUG_MEMORY /* assume _ft_debug_file and _ft_debug_lineno are already set */ stream->base = (unsigned char*)ft_mem_qalloc( memory, (FT_Long)count, &error ); if ( error ) goto Exit; #else if ( FT_QALLOC( stream->base, count ) ) goto Exit; #endif /* read it */ read_bytes = stream->read( stream, stream->pos, stream->base, count ); if ( read_bytes < count ) { FT_ERROR(( "FT_Stream_EnterFrame:" " invalid read; expected %lu bytes, got %lu\n", count, read_bytes )); FT_FREE( stream->base ); error = FT_THROW( Invalid_Stream_Operation ); } stream->cursor = stream->base; stream->limit = stream->cursor + count; stream->pos += read_bytes; } else { /* check current and new position */ if ( stream->pos >= stream->size || stream->size - stream->pos < count ) { FT_ERROR(( "FT_Stream_EnterFrame:" " invalid i/o; pos = 0x%lx, count = %lu, size = 0x%lx\n", stream->pos, count, stream->size )); error = FT_THROW( Invalid_Stream_Operation ); goto Exit; } /* set cursor */ stream->cursor = stream->base + stream->pos; stream->limit = stream->cursor + count; stream->pos += count; } Exit: return error; } FT_BASE_DEF( void ) FT_Stream_ExitFrame( FT_Stream stream ) { /* IMPORTANT: The assertion stream->cursor != 0 was removed, given */ /* that it is possible to access a frame of length 0 in */ /* some weird fonts (usually, when accessing an array of */ /* 0 records, like in some strange kern tables). */ /* */ /* In this case, the loader code handles the 0-length table */ /* gracefully; however, stream.cursor is really set to 0 by the */ /* FT_Stream_EnterFrame() call, and this is not an error. */ /* */ FT_ASSERT( stream ); if ( stream->read ) { FT_Memory memory = stream->memory; #ifdef FT_DEBUG_MEMORY ft_mem_free( memory, stream->base ); stream->base = NULL; #else FT_FREE( stream->base ); #endif } stream->cursor = NULL; stream->limit = NULL; } FT_BASE_DEF( FT_Char ) FT_Stream_GetChar( FT_Stream stream ) { FT_Char result; FT_ASSERT( stream && stream->cursor ); result = 0; if ( stream->cursor < stream->limit ) result = (FT_Char)*stream->cursor++; return result; } FT_BASE_DEF( FT_UShort ) FT_Stream_GetUShort( FT_Stream stream ) { FT_Byte* p; FT_UShort result; FT_ASSERT( stream && stream->cursor ); result = 0; p = stream->cursor; if ( p + 1 < stream->limit ) result = FT_NEXT_USHORT( p ); stream->cursor = p; return result; } FT_BASE_DEF( FT_UShort ) FT_Stream_GetUShortLE( FT_Stream stream ) { FT_Byte* p; FT_UShort result; FT_ASSERT( stream && stream->cursor ); result = 0; p = stream->cursor; if ( p + 1 < stream->limit ) result = FT_NEXT_USHORT_LE( p ); stream->cursor = p; return result; } FT_BASE_DEF( FT_ULong ) FT_Stream_GetUOffset( FT_Stream stream ) { FT_Byte* p; FT_ULong result; FT_ASSERT( stream && stream->cursor ); result = 0; p = stream->cursor; if ( p + 2 < stream->limit ) result = FT_NEXT_UOFF3( p ); stream->cursor = p; return result; } FT_BASE_DEF( FT_ULong ) FT_Stream_GetULong( FT_Stream stream ) { FT_Byte* p; FT_ULong result; FT_ASSERT( stream && stream->cursor ); result = 0; p = stream->cursor; if ( p + 3 < stream->limit ) result = FT_NEXT_ULONG( p ); stream->cursor = p; return result; } FT_BASE_DEF( FT_ULong ) FT_Stream_GetULongLE( FT_Stream stream ) { FT_Byte* p; FT_ULong result; FT_ASSERT( stream && stream->cursor ); result = 0; p = stream->cursor; if ( p + 3 < stream->limit ) result = FT_NEXT_ULONG_LE( p ); stream->cursor = p; return result; } FT_BASE_DEF( FT_Char ) FT_Stream_ReadChar( FT_Stream stream, FT_Error* error ) { FT_Byte result = 0; FT_ASSERT( stream ); *error = FT_Err_Ok; if ( stream->read ) { if ( stream->read( stream, stream->pos, &result, 1L ) != 1L ) goto Fail; } else { if ( stream->pos < stream->size ) result = stream->base[stream->pos]; else goto Fail; } stream->pos++; return (FT_Char)result; Fail: *error = FT_THROW( Invalid_Stream_Operation ); FT_ERROR(( "FT_Stream_ReadChar:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", stream->pos, stream->size )); return 0; } FT_BASE_DEF( FT_UShort ) FT_Stream_ReadUShort( FT_Stream stream, FT_Error* error ) { FT_Byte reads[2]; FT_Byte* p = 0; FT_UShort result = 0; FT_ASSERT( stream ); *error = FT_Err_Ok; if ( stream->pos + 1 < stream->size ) { if ( stream->read ) { if ( stream->read( stream, stream->pos, reads, 2L ) != 2L ) goto Fail; p = reads; } else p = stream->base + stream->pos; if ( p ) result = FT_NEXT_USHORT( p ); } else goto Fail; stream->pos += 2; return result; Fail: *error = FT_THROW( Invalid_Stream_Operation ); FT_ERROR(( "FT_Stream_ReadUShort:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", stream->pos, stream->size )); return 0; } FT_BASE_DEF( FT_UShort ) FT_Stream_ReadUShortLE( FT_Stream stream, FT_Error* error ) { FT_Byte reads[2]; FT_Byte* p = 0; FT_UShort result = 0; FT_ASSERT( stream ); *error = FT_Err_Ok; if ( stream->pos + 1 < stream->size ) { if ( stream->read ) { if ( stream->read( stream, stream->pos, reads, 2L ) != 2L ) goto Fail; p = reads; } else p = stream->base + stream->pos; if ( p ) result = FT_NEXT_USHORT_LE( p ); } else goto Fail; stream->pos += 2; return result; Fail: *error = FT_THROW( Invalid_Stream_Operation ); FT_ERROR(( "FT_Stream_ReadUShortLE:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", stream->pos, stream->size )); return 0; } FT_BASE_DEF( FT_ULong ) FT_Stream_ReadUOffset( FT_Stream stream, FT_Error* error ) { FT_Byte reads[3]; FT_Byte* p = 0; FT_ULong result = 0; FT_ASSERT( stream ); *error = FT_Err_Ok; if ( stream->pos + 2 < stream->size ) { if ( stream->read ) { if (stream->read( stream, stream->pos, reads, 3L ) != 3L ) goto Fail; p = reads; } else p = stream->base + stream->pos; if ( p ) result = FT_NEXT_UOFF3( p ); } else goto Fail; stream->pos += 3; return result; Fail: *error = FT_THROW( Invalid_Stream_Operation ); FT_ERROR(( "FT_Stream_ReadUOffset:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", stream->pos, stream->size )); return 0; } FT_BASE_DEF( FT_ULong ) FT_Stream_ReadULong( FT_Stream stream, FT_Error* error ) { FT_Byte reads[4]; FT_Byte* p = 0; FT_ULong result = 0; FT_ASSERT( stream ); *error = FT_Err_Ok; if ( stream->pos + 3 < stream->size ) { if ( stream->read ) { if ( stream->read( stream, stream->pos, reads, 4L ) != 4L ) goto Fail; p = reads; } else p = stream->base + stream->pos; if ( p ) result = FT_NEXT_ULONG( p ); } else goto Fail; stream->pos += 4; return result; Fail: *error = FT_THROW( Invalid_Stream_Operation ); FT_ERROR(( "FT_Stream_ReadULong:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", stream->pos, stream->size )); return 0; } FT_BASE_DEF( FT_ULong ) FT_Stream_ReadULongLE( FT_Stream stream, FT_Error* error ) { FT_Byte reads[4]; FT_Byte* p = 0; FT_ULong result = 0; FT_ASSERT( stream ); *error = FT_Err_Ok; if ( stream->pos + 3 < stream->size ) { if ( stream->read ) { if ( stream->read( stream, stream->pos, reads, 4L ) != 4L ) goto Fail; p = reads; } else p = stream->base + stream->pos; if ( p ) result = FT_NEXT_ULONG_LE( p ); } else goto Fail; stream->pos += 4; return result; Fail: *error = FT_THROW( Invalid_Stream_Operation ); FT_ERROR(( "FT_Stream_ReadULongLE:" " invalid i/o; pos = 0x%lx, size = 0x%lx\n", stream->pos, stream->size )); return 0; } FT_BASE_DEF( FT_Error ) FT_Stream_ReadFields( FT_Stream stream, const FT_Frame_Field* fields, void* structure ) { FT_Error error; FT_Bool frame_accessed = 0; FT_Byte* cursor; if ( !fields ) return FT_THROW( Invalid_Argument ); if ( !stream ) return FT_THROW( Invalid_Stream_Handle ); cursor = stream->cursor; error = FT_Err_Ok; do { FT_ULong value; FT_Int sign_shift; FT_Byte* p; switch ( fields->value ) { case ft_frame_start: /* access a new frame */ error = FT_Stream_EnterFrame( stream, fields->offset ); if ( error ) goto Exit; frame_accessed = 1; cursor = stream->cursor; fields++; continue; /* loop! */ case ft_frame_bytes: /* read a byte sequence */ case ft_frame_skip: /* skip some bytes */ { FT_UInt len = fields->size; if ( cursor + len > stream->limit ) { error = FT_THROW( Invalid_Stream_Operation ); goto Exit; } if ( fields->value == ft_frame_bytes ) { p = (FT_Byte*)structure + fields->offset; FT_MEM_COPY( p, cursor, len ); } cursor += len; fields++; continue; } case ft_frame_byte: case ft_frame_schar: /* read a single byte */ value = FT_NEXT_BYTE( cursor ); sign_shift = 24; break; case ft_frame_short_be: case ft_frame_ushort_be: /* read a 2-byte big-endian short */ value = FT_NEXT_USHORT( cursor ); sign_shift = 16; break; case ft_frame_short_le: case ft_frame_ushort_le: /* read a 2-byte little-endian short */ value = FT_NEXT_USHORT_LE( cursor ); sign_shift = 16; break; case ft_frame_long_be: case ft_frame_ulong_be: /* read a 4-byte big-endian long */ value = FT_NEXT_ULONG( cursor ); sign_shift = 0; break; case ft_frame_long_le: case ft_frame_ulong_le: /* read a 4-byte little-endian long */ value = FT_NEXT_ULONG_LE( cursor ); sign_shift = 0; break; case ft_frame_off3_be: case ft_frame_uoff3_be: /* read a 3-byte big-endian long */ value = FT_NEXT_UOFF3( cursor ); sign_shift = 8; break; case ft_frame_off3_le: case ft_frame_uoff3_le: /* read a 3-byte little-endian long */ value = FT_NEXT_UOFF3_LE( cursor ); sign_shift = 8; break; default: /* otherwise, exit the loop */ stream->cursor = cursor; goto Exit; } /* now, compute the signed value is necessary */ if ( fields->value & FT_FRAME_OP_SIGNED ) value = (FT_ULong)( (FT_Int32)( value << sign_shift ) >> sign_shift ); /* finally, store the value in the object */ p = (FT_Byte*)structure + fields->offset; switch ( fields->size ) { case ( 8 / FT_CHAR_BIT ): *(FT_Byte*)p = (FT_Byte)value; break; case ( 16 / FT_CHAR_BIT ): *(FT_UShort*)p = (FT_UShort)value; break; case ( 32 / FT_CHAR_BIT ): *(FT_UInt32*)p = (FT_UInt32)value; break; default: /* for 64-bit systems */ *(FT_ULong*)p = (FT_ULong)value; } /* go to next field */ fields++; } while ( 1 ); Exit: /* close the frame if it was opened by this read */ if ( frame_accessed ) FT_Stream_ExitFrame( stream ); return error; } /* END */
orefkov/Urho3D
Source/ThirdParty/FreeType/src/base/ftstream.c
C
mit
20,189
/* * webui popover plugin - v1.2.0 * A lightWeight popover plugin with jquery ,enchance the popover plugin of bootstrap with some awesome new features. It works well with bootstrap ,but bootstrap is not necessary! * https://github.com/sandywalker/webui-popover * * Made by Sandy Duan * Under MIT License */ ; (function($, window, document, undefined) { 'use strict'; // Create the defaults once var pluginName = 'webuiPopover'; var pluginClass = 'webui-popover'; var pluginType = 'webui.popover'; var defaults = { placement: 'auto', width: 'auto', height: 'auto', trigger: 'click', //hover,click,sticky,manual style: '', delay: { show: null, hide: null }, async: { before: null, //function(that, xhr){} success: null //function(that, xhr){} }, cache: true, multi: false, arrow: true, title: '', content: '', closeable: false, padding: true, url: '', type: 'html', animation: null, template: '<div class="webui-popover">' + '<div class="arrow"></div>' + '<div class="webui-popover-inner">' + '<a href="#" class="close">x</a>' + '<h3 class="webui-popover-title"></h3>' + '<div class="webui-popover-content"><i class="icon-refresh"></i> <p>&nbsp;</p></div>' + '</div>' + '</div>', backdrop: false, dismissible: true, onShow: null, onHide: null, abortXHR: true, autoHide: false, offsetTop: 0, offsetLeft: 0 }; var popovers = []; var backdrop = $('<div class="webui-popover-backdrop"></div>'); var _globalIdSeed = 0; var _isBodyEventHandled = false; var _offsetOut = -2000; // the value offset out of the screen var $document = $(document); var toNumber = function(numeric, fallback) { return isNaN(numeric) ? (fallback || 0) : Number(numeric); }; // The actual plugin constructor function WebuiPopover(element, options) { this.$element = $(element); if (options) { if ($.type(options.delay) === 'string' || $.type(options.delay) === 'number') { options.delay = { show: options.delay, hide: options.delay }; // bc break fix } } this.options = $.extend({}, defaults, options); this._defaults = defaults; this._name = pluginName; this._targetclick = false; this.init(); popovers.push(this.$element); } WebuiPopover.prototype = { //init webui popover init: function() { //init the event handlers if (this.getTrigger() === 'click') { this.$element.off('click touchend').on('click touchend', $.proxy(this.toggle, this)); } else if (this.getTrigger() === 'hover') { this.$element .off('mouseenter mouseleave click') .on('mouseenter', $.proxy(this.mouseenterHandler, this)) .on('mouseleave', $.proxy(this.mouseleaveHandler, this)); } this._poped = false; this._inited = true; this._opened = false; this._idSeed = _globalIdSeed; if (this.options.backdrop) { backdrop.appendTo(document.body).hide(); } _globalIdSeed++; if (this.getTrigger() === 'sticky') { this.show(); } }, /* api methods and actions */ destroy: function() { var index = -1; for (var i = 0; i < popovers.length; i++) { if (popovers[i] === this.$element) { index = i; break; } } popovers.splice(index, 1); this.hide(); this.$element.data('plugin_' + pluginName, null); if (this.getTrigger() === 'click') { this.$element.off('click'); } else if (this.getTrigger() === 'hover') { this.$element.off('mouseenter mouseleave'); } if (this.$target) { this.$target.remove(); } }, /* param: force boolean value, if value is true then force hide the popover param: event dom event, */ hide: function(force, event) { if (!force && this.getTrigger() === 'sticky') { return; } if (!this._opened) { return; } if (event) { event.preventDefault(); event.stopPropagation(); } if (this.xhr && this.options.abortXHR === true) { this.xhr.abort(); this.xhr = null; } var e = $.Event('hide.' + pluginType); this.$element.trigger(e, [this.$target]); if (this.$target) { this.$target.removeClass('in').addClass(this.getHideAnimation()); var that = this; setTimeout(function() { that.$target.hide(); }, 300); } if (this.options.backdrop) { backdrop.hide(); } this._opened = false; this.$element.trigger('hidden.' + pluginType, [this.$target]); if (this.options.onHide) { this.options.onHide(this.$target); } }, resetAutoHide: function() { var that = this; var autoHide = that.getAutoHide(); if (autoHide) { if (that.autoHideHandler) { clearTimeout(that.autoHideHandler); } that.autoHideHandler = setTimeout(function() { that.hide(); }, autoHide); } }, toggle: function(e) { if (e) { e.preventDefault(); e.stopPropagation(); } this[this.getTarget().hasClass('in') ? 'hide' : 'show'](); }, hideAll: function() { for (var i = 0; i < popovers.length; i++) { popovers[i].webuiPopover('hide'); } $document.trigger('hiddenAll.' + pluginType); }, /*core method ,show popover */ show: function() { var $target = this.getTarget().removeClass().addClass(pluginClass).addClass(this._customTargetClass); if (!this.options.multi) { this.hideAll(); } if (this._opened) { return; } // use cache by default, if not cache setted , reInit the contents if (!this.getCache() || !this._poped || this.content === '') { this.content = ''; this.setTitle(this.getTitle()); if (!this.options.closeable) { $target.find('.close').off('click').remove(); } if (!this.isAsync()) { this.setContent(this.getContent()); } else { this.setContentASync(this.options.content); } $target.show(); } this.displayContent(); if (this.options.onShow) { this.options.onShow($target); } this.bindBodyEvents(); if (this.options.backdrop) { backdrop.show(); } this._opened = true; this.resetAutoHide(); }, displayContent: function() { var //element postion elementPos = this.getElementPosition(), //target postion $target = this.getTarget().removeClass().addClass(pluginClass).addClass(this._customTargetClass), //target content $targetContent = this.getContentElement(), //target Width targetWidth = $target[0].offsetWidth, //target Height targetHeight = $target[0].offsetHeight, //placement placement = 'bottom', e = $.Event('show.' + pluginType); //if (this.hasContent()){ this.$element.trigger(e, [$target]); //} if (this.options.width !== 'auto') { $target.width(this.options.width); } if (this.options.height !== 'auto') { $targetContent.height(this.options.height); } if (this.options.style) { this.$target.addClass(pluginClass + '-' + this.options.style); } //init the popover and insert into the document body if (!this.options.arrow) { $target.find('.arrow').remove(); } $target.detach().css({ top: _offsetOut, left: _offsetOut, display: 'block' }); if (this.getAnimation()) { $target.addClass(this.getAnimation()); } $target.appendTo(document.body); placement = this.getPlacement(elementPos); //This line is just for compatible with knockout custom binding this.$element.trigger('added.' + pluginType); this.initTargetEvents(); if (!this.options.padding) { if (this.options.height !== 'auto') { $targetContent.css('height', $targetContent.outerHeight()); } this.$target.addClass('webui-no-padding'); } targetWidth = $target[0].offsetWidth; targetHeight = $target[0].offsetHeight; var postionInfo = this.getTargetPositin(elementPos, placement, targetWidth, targetHeight); this.$target.css(postionInfo.position).addClass(placement).addClass('in'); if (this.options.type === 'iframe') { var $iframe = $target.find('iframe'); $iframe.width($target.width()).height($iframe.parent().height()); } if (!this.options.arrow) { this.$target.css({ 'margin': 0 }); } if (this.options.arrow) { var $arrow = this.$target.find('.arrow'); $arrow.removeAttr('style'); if (postionInfo.arrowOffset) { //hide the arrow if offset is negative if (postionInfo.arrowOffset.left === -1 || postionInfo.arrowOffset.top === -1) { $arrow.hide(); } else { $arrow.css(postionInfo.arrowOffset); } } } this._poped = true; this.$element.trigger('shown.' + pluginType, [this.$target]); }, isTargetLoaded: function() { return this.getTarget().find('i.glyphicon-refresh').length === 0; }, /*getter setters */ getTriggerElement: function() { return this.$element; }, getTarget: function() { if (!this.$target) { var id = pluginName + this._idSeed; this.$target = $(this.options.template) .attr('id', id) .data('trigger-element', this.getTriggerElement()); this._customTargetClass = this.$target.attr('class') !== pluginClass ? this.$target.attr('class') : null; this.getTriggerElement().attr('data-target', id); } return this.$target; }, getTitleElement: function() { return this.getTarget().find('.' + pluginClass + '-title'); }, getContentElement: function() { if (!this.$contentElement) { this.$contentElement = this.getTarget().find('.' + pluginClass + '-content'); console.log(this.$contentElement); this.$contentElement.show(); } return this.$contentElement; }, getTitle: function() { return this.$element.attr('data-title') || this.options.title || this.$element.attr('title'); }, getUrl: function() { return this.$element.attr('data-url') || this.options.url; }, getAutoHide: function() { return this.$element.attr('data-auto-hide') || this.options.autoHide; }, getOffsetTop: function() { return toNumber(this.$element.attr('data-offset-top')) || this.options.offsetTop; }, getOffsetLeft: function() { return toNumber(this.$element.attr('data-offset-left')) || this.options.offsetLeft; }, getCache: function() { var dataAttr = this.$element.attr('data-cache'); if (typeof(dataAttr) !== 'undefined') { switch (dataAttr.toLowerCase()) { case 'true': case 'yes': case '1': return true; case 'false': case 'no': case '0': return false; } } return this.options.cache; }, getTrigger: function() { return this.$element.attr('data-trigger') || this.options.trigger; }, getDelayShow: function() { var dataAttr = this.$element.attr('data-delay-show'); if (typeof(dataAttr) !== 'undefined') { return dataAttr; } return this.options.delay.show === 0 ? 0 : this.options.delay.show || 100; }, getHideDelay: function() { var dataAttr = this.$element.attr('data-delay-hide'); if (typeof(dataAttr) !== 'undefined') { return dataAttr; } return this.options.delay.hide === 0 ? 0 : this.options.delay.hide || 100; }, getAnimation: function() { var dataAttr = this.$element.attr('data-animation'); return dataAttr || this.options.animation; }, getHideAnimation: function() { var ani = this.getAnimation(); return ani ? ani + '-out' : 'out'; }, setTitle: function(title) { var $titleEl = this.getTitleElement(); if (title) { $titleEl.html(title); } else { $titleEl.remove(); } }, hasContent: function() { return this.getContent(); }, getContent: function() { if (this.getUrl()) { switch (this.options.type) { case 'iframe': this.content = $('<iframe frameborder="0"></iframe>').attr('src', this.getUrl()); break; case 'html': try { this.content = $(this.getUrl()); if (!this.content.is(':visible')) { this.content.show(); } } catch (error) { throw new Error('Unable to get popover content. Invalid selector specified.'); } break; } } else if (!this.content) { var content = ''; if ($.isFunction(this.options.content)) { content = this.options.content.apply(this.$element[0], [this]); } else { content = this.options.content; } this.content = this.$element.attr('data-content') || content; if (!this.content) { var $next = this.$element.next(); if ($next && $next.hasClass(pluginClass + '-content')) { this.content = $next; } } } return this.content; }, setContent: function(content) { var $target = this.getTarget(); var $ct = this.getContentElement(); if (typeof content === 'string') { $ct.html(content); } else if (content instanceof jQuery) { content.removeClass(pluginClass + '-content'); $ct.html(''); content.appendTo($ct); } this.$target = $target; }, isAsync: function() { return this.options.type === 'async'; }, setContentASync: function(content) { var that = this; if (this.xhr) { return; } this.xhr = $.ajax({ url: this.getUrl(), type: 'GET', cache: this.getCache(), beforeSend: function(xhr) { if (that.options.async.before) { that.options.async.before(that, xhr); } }, success: function(data) { that.bindBodyEvents(); if (content && $.isFunction(content)) { that.content = content.apply(that.$element[0], [data]); } else { that.content = data; } that.setContent(that.content); var $targetContent = that.getContentElement(); $targetContent.removeAttr('style'); that.displayContent(); if (that.options.async.success) { that.options.async.success(that, data); } }, complete: function() { that.xhr = null; } }); }, bindBodyEvents: function() { if (this.options.dismissible && this.getTrigger() === 'click' && !_isBodyEventHandled) { $document.off('keyup.webui-popover').on('keyup.webui-popover', $.proxy(this.escapeHandler, this)); $document.off('click.webui-popover touchend.webui-popover').on('click.webui-popover touchend.webui-popover', $.proxy(this.bodyClickHandler, this)); } }, /* event handlers */ mouseenterHandler: function() { var self = this; if (self._timeout) { clearTimeout(self._timeout); } self._enterTimeout = setTimeout(function() { if (!self.getTarget().is(':visible')) { self.show(); } }, this.getDelayShow()); }, mouseleaveHandler: function() { var self = this; clearTimeout(self._enterTimeout); //key point, set the _timeout then use clearTimeout when mouse leave self._timeout = setTimeout(function() { self.hide(); }, this.getHideDelay()); }, escapeHandler: function(e) { if (e.keyCode === 27) { this.hideAll(); } }, bodyClickHandler: function() { _isBodyEventHandled = true; if (this.getTrigger() === 'click') { if (this._targetclick) { this._targetclick = false; } else { this.hideAll(); } } }, targetClickHandler: function() { this._targetclick = true; }, //reset and init the target events; initTargetEvents: function() { if (this.getTrigger() === 'hover') { this.$target .off('mouseenter mouseleave') .on('mouseenter', $.proxy(this.mouseenterHandler, this)) .on('mouseleave', $.proxy(this.mouseleaveHandler, this)); } this.$target.find('.close').off('click').on('click', $.proxy(this.hide, this, true)); this.$target.off('click.webui-popover').on('click.webui-popover', $.proxy(this.targetClickHandler, this)); }, /* utils methods */ //caculate placement of the popover getPlacement: function(pos) { var placement, de = document.documentElement, db = document.body, clientWidth = de.clientWidth, clientHeight = de.clientHeight, scrollTop = Math.max(db.scrollTop, de.scrollTop), scrollLeft = Math.max(db.scrollLeft, de.scrollLeft), pageX = Math.max(0, pos.left - scrollLeft), pageY = Math.max(0, pos.top - scrollTop); //arrowSize = 20; //if placement equals auto,caculate the placement by element information; if (typeof(this.options.placement) === 'function') { placement = this.options.placement.call(this, this.getTarget()[0], this.$element[0]); } else { placement = this.$element.data('placement') || this.options.placement; } var isH = placement === 'horizontal'; var isV = placement === 'vertical'; var detect = placement === 'auto' || isH || isV; if (detect) { if (pageX < clientWidth / 3) { if (pageY < clientHeight / 3) { placement = isH ? 'right-bottom' : 'bottom-right'; } else if (pageY < clientHeight * 2 / 3) { if (isV) { placement = pageY <= clientHeight / 2 ? 'bottom-right' : 'top-right'; } else { placement = 'right'; } } else { placement = isH ? 'right-top' : 'top-right'; } //placement= pageY>targetHeight+arrowSize?'top-right':'bottom-right'; } else if (pageX < clientWidth * 2 / 3) { if (pageY < clientHeight / 3) { if (isH) { placement = pageX <= clientWidth / 2 ? 'right-bottom' : 'left-bottom'; } else { placement = 'bottom'; } } else if (pageY < clientHeight * 2 / 3) { if (isH) { placement = pageX <= clientWidth / 2 ? 'right' : 'left'; } else { placement = pageY <= clientHeight / 2 ? 'bottom' : 'top'; } } else { if (isH) { placement = pageX <= clientWidth / 2 ? 'right-top' : 'left-top'; } else { placement = 'top'; } } } else { //placement = pageY>targetHeight+arrowSize?'top-left':'bottom-left'; if (pageY < clientHeight / 3) { placement = isH ? 'left-bottom' : 'bottom-left'; } else if (pageY < clientHeight * 2 / 3) { if (isV) { placement = pageY <= clientHeight / 2 ? 'bottom-left' : 'top-left'; } else { placement = 'left'; } } else { placement = isH ? 'left-top' : 'top-left'; } } } else if (placement === 'auto-top') { if (pageX < clientWidth / 3) { placement = 'top-right'; } else if (pageX < clientWidth * 2 / 3) { placement = 'top'; } else { placement = 'top-left'; } } else if (placement === 'auto-bottom') { if (pageX < clientWidth / 3) { placement = 'bottom-right'; } else if (pageX < clientWidth * 2 / 3) { placement = 'bottom'; } else { placement = 'bottom-left'; } } else if (placement === 'auto-left') { if (pageY < clientHeight / 3) { placement = 'left-top'; } else if (pageY < clientHeight * 2 / 3) { placement = 'left'; } else { placement = 'left-bottom'; } } else if (placement === 'auto-right') { if (pageY < clientHeight / 3) { placement = 'right-top'; } else if (pageY < clientHeight * 2 / 3) { placement = 'right'; } else { placement = 'right-bottom'; } } return placement; }, getElementPosition: function() { return $.extend({}, this.$element.offset(), { width: this.$element[0].offsetWidth, height: this.$element[0].offsetHeight }); }, getTargetPositin: function(elementPos, placement, targetWidth, targetHeight) { var pos = elementPos, de = document.documentElement, db = document.body, clientWidth = de.clientWidth, clientHeight = de.clientHeight, elementW = this.$element.outerWidth(), elementH = this.$element.outerHeight(), scrollTop = Math.max(db.scrollTop, de.scrollTop), scrollLeft = Math.max(db.scrollLeft, de.scrollLeft), position = {}, arrowOffset = null, arrowSize = this.options.arrow ? 20 : 0, padding = 10, fixedW = elementW < arrowSize + padding ? arrowSize : 0, fixedH = elementH < arrowSize + padding ? arrowSize : 0, refix = 0, pageH = clientHeight + scrollTop, pageW = clientWidth + scrollLeft; var validLeft = pos.left + pos.width / 2 - fixedW > 0; var validRight = pos.left + pos.width / 2 + fixedW < pageW; var validTop = pos.top + pos.height / 2 - fixedH > 0; var validBottom = pos.top + pos.height / 2 + fixedH < pageH; switch (placement) { case 'bottom': position = { top: pos.top + pos.height, left: pos.left + pos.width / 2 - targetWidth / 2 }; break; case 'top': position = { top: pos.top - targetHeight, left: pos.left + pos.width / 2 - targetWidth / 2 }; break; case 'left': position = { top: pos.top + pos.height / 2 - targetHeight / 2, left: pos.left - targetWidth }; break; case 'right': position = { top: pos.top + pos.height / 2 - targetHeight / 2, left: pos.left + pos.width }; break; case 'top-right': position = { top: pos.top - targetHeight, left: validLeft ? pos.left - fixedW : padding }; arrowOffset = { left: validLeft ? Math.min(elementW, targetWidth) / 2 + fixedW : _offsetOut }; break; case 'top-left': refix = validRight ? fixedW : -padding; position = { top: pos.top - targetHeight, left: pos.left - targetWidth + pos.width + refix }; arrowOffset = { left: validRight ? targetWidth - Math.min(elementW, targetWidth) / 2 - fixedW : _offsetOut }; break; case 'bottom-right': position = { top: pos.top + pos.height, left: validLeft ? pos.left - fixedW : padding }; arrowOffset = { left: validLeft ? Math.min(elementW, targetWidth) / 2 + fixedW : _offsetOut }; break; case 'bottom-left': refix = validRight ? fixedW : -padding; position = { top: pos.top + pos.height, left: pos.left - targetWidth + pos.width + refix }; arrowOffset = { left: validRight ? targetWidth - Math.min(elementW, targetWidth) / 2 - fixedW : _offsetOut }; break; case 'right-top': refix = validBottom ? fixedH : -padding; position = { top: pos.top - targetHeight + pos.height + refix, left: pos.left + pos.width }; arrowOffset = { top: validBottom ? targetHeight - Math.min(elementH, targetHeight) / 2 - fixedH : _offsetOut }; break; case 'right-bottom': position = { top: validTop ? pos.top - fixedH : padding, left: pos.left + pos.width }; arrowOffset = { top: validTop ? Math.min(elementH, targetHeight) / 2 + fixedH : _offsetOut }; break; case 'left-top': refix = validBottom ? fixedH : -padding; position = { top: pos.top - targetHeight + pos.height + refix, left: pos.left - targetWidth }; arrowOffset = { top: validBottom ? targetHeight - Math.min(elementH, targetHeight) / 2 - fixedH : _offsetOut }; break; case 'left-bottom': position = { top: validTop ? pos.top - fixedH : padding, left: pos.left - targetWidth }; arrowOffset = { top: validTop ? Math.min(elementH, targetHeight) / 2 + fixedH : _offsetOut }; break; } position.top += this.getOffsetTop(); position.left += this.getOffsetLeft(); return { position: position, arrowOffset: arrowOffset }; } }; $.fn[pluginName] = function(options, noInit) { var results = []; var $result = this.each(function() { var webuiPopover = $.data(this, 'plugin_' + pluginName); if (!webuiPopover) { if (!options) { webuiPopover = new WebuiPopover(this, null); } else if (typeof options === 'string') { if (options !== 'destroy') { if (!noInit) { webuiPopover = new WebuiPopover(this, null); results.push(webuiPopover[options]()); } } } else if (typeof options === 'object') { webuiPopover = new WebuiPopover(this, options); } $.data(this, 'plugin_' + pluginName, webuiPopover); } else { if (options === 'destroy') { webuiPopover.destroy(); } else if (typeof options === 'string') { results.push(webuiPopover[options]()); } } }); return (results.length) ? results : $result; }; })(jQuery, window, document);
honestree/cdnjs
ajax/libs/webui-popover/1.2.1/jquery.webui-popover.js
JavaScript
mit
33,080
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.CycleDOM = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ },{}],2:[function(require,module,exports){ 'use strict'; var isValidString = function isValidString(param) { return typeof param === 'string' && param.length > 0; }; var startsWith = function startsWith(string, start) { return string.indexOf(start) === 0; }; var isSelector = function isSelector(param) { return isValidString(param) && (startsWith(param, '.') || startsWith(param, '#')); }; var node = function node(h) { return function (tagName) { return function (first) { for (var _len = arguments.length, rest = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { rest[_key - 1] = arguments[_key]; } if (isSelector(first)) { return h.apply(undefined, [tagName + first].concat(rest)); } else { return h.apply(undefined, [tagName, first].concat(rest)); } }; }; }; var TAG_NAMES = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link', 'map', 'mark', 'menu', 'meta', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'p', 'param', 'pre', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'sup', 'table', 'tbody', 'td', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'u', 'ul', 'video']; module.exports = function (h) { var exported = { TAG_NAMES: TAG_NAMES, isSelector: isSelector }; var appliedNode = node(h); TAG_NAMES.forEach(function (n) { exported[n] = appliedNode(n); }); return exported; }; },{}],3:[function(require,module,exports){ 'use strict'; var proto = Element.prototype; var vendor = proto.matches || proto.matchesSelector || proto.webkitMatchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector; module.exports = match; /** * Match `el` to `selector`. * * @param {Element} el * @param {String} selector * @return {Boolean} * @api public */ function match(el, selector) { if (vendor) return vendor.call(el, selector); var nodes = el.parentNode.querySelectorAll(selector); for (var i = 0; i < nodes.length; i++) { if (nodes[i] == el) return true; } return false; } },{}],4:[function(require,module,exports){ /** * index.js * * A client-side DOM to vdom parser based on DOMParser API */ 'use strict'; var VNode = require('virtual-dom/vnode/vnode'); var VText = require('virtual-dom/vnode/vtext'); var domParser = new DOMParser(); var propertyMap = require('./property-map'); var namespaceMap = require('./namespace-map'); var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; module.exports = parser; /** * DOM/html string to vdom parser * * @param Mixed el DOM element or html string * @param String attr Attribute name that contains vdom key * @return Object VNode or VText */ function parser(el, attr) { // empty input fallback to empty text node if (!el) { return createNode(document.createTextNode('')); } if (typeof el === 'string') { var doc = domParser.parseFromString(el, 'text/html'); // most tags default to body if (doc.body.firstChild) { el = doc.body.firstChild; // some tags, like script and style, default to head } else if (doc.head.firstChild && (doc.head.firstChild.tagName !== 'TITLE' || doc.title)) { el = doc.head.firstChild; // special case for html comment, cdata, doctype } else if (doc.firstChild && doc.firstChild.tagName !== 'HTML') { el = doc.firstChild; // other element, such as whitespace, or html/body/head tag, fallback to empty text node } else { el = document.createTextNode(''); } } if (typeof el !== 'object' || !el || !el.nodeType) { throw new Error('invalid dom node', el); } return createNode(el, attr); } /** * Create vdom from dom node * * @param Object el DOM element * @param String attr Attribute name that contains vdom key * @return Object VNode or VText */ function createNode(el, attr) { // html comment is not currently supported by virtual-dom if (el.nodeType === 3) { return createVirtualTextNode(el); // cdata or doctype is not currently supported by virtual-dom } else if (el.nodeType === 1 || el.nodeType === 9) { return createVirtualDomNode(el, attr); } // default to empty text node return new VText(''); } /** * Create vtext from dom node * * @param Object el Text node * @return Object VText */ function createVirtualTextNode(el) { return new VText(el.nodeValue); } /** * Create vnode from dom node * * @param Object el DOM element * @param String attr Attribute name that contains vdom key * @return Object VNode */ function createVirtualDomNode(el, attr) { var ns = el.namespaceURI !== HTML_NAMESPACE ? el.namespaceURI : null; var key = attr && el.getAttribute(attr) ? el.getAttribute(attr) : null; return new VNode( el.tagName , createProperties(el) , createChildren(el, attr) , key , ns ); } /** * Recursively create vdom * * @param Object el Parent element * @param String attr Attribute name that contains vdom key * @return Array Child vnode or vtext */ function createChildren(el, attr) { var children = []; for (var i = 0; i < el.childNodes.length; i++) { children.push(createNode(el.childNodes[i], attr)); }; return children; } /** * Create properties from dom node * * @param Object el DOM element * @return Object Node properties and attributes */ function createProperties(el) { var properties = {}; if (!el.hasAttributes()) { return properties; } var ns; if (el.namespaceURI && el.namespaceURI !== HTML_NAMESPACE) { ns = el.namespaceURI; } var attr; for (var i = 0; i < el.attributes.length; i++) { if (ns) { attr = createPropertyNS(el.attributes[i]); } else { attr = createProperty(el.attributes[i]); } // special case, namespaced attribute, use properties.foobar if (attr.ns) { properties[attr.name] = { namespace: attr.ns , value: attr.value }; // special case, use properties.attributes.foobar } else if (attr.isAttr) { // init attributes object only when necessary if (!properties.attributes) { properties.attributes = {} } properties.attributes[attr.name] = attr.value; // default case, use properties.foobar } else { properties[attr.name] = attr.value; } }; return properties; } /** * Create property from dom attribute * * @param Object attr DOM attribute * @return Object Normalized attribute */ function createProperty(attr) { var name, value, isAttr; // using a map to find the correct case of property name if (propertyMap[attr.name]) { name = propertyMap[attr.name]; } else { name = attr.name; } // special cases for style attribute, we default to properties.style if (name === 'style') { var style = {}; attr.value.split(';').forEach(function (s) { var pos = s.indexOf(':'); if (pos < 0) { return; } style[s.substr(0, pos).trim()] = s.substr(pos + 1).trim(); }); value = style; // special cases for data attribute, we default to properties.attributes.data } else if (name.indexOf('data-') === 0) { value = attr.value; isAttr = true; } else { value = attr.value; } return { name: name , value: value , isAttr: isAttr || false }; } /** * Create namespaced property from dom attribute * * @param Object attr DOM attribute * @return Object Normalized attribute */ function createPropertyNS(attr) { var name, value; return { name: attr.name , value: attr.value , ns: namespaceMap[attr.name] || '' }; } },{"./namespace-map":5,"./property-map":6,"virtual-dom/vnode/vnode":47,"virtual-dom/vnode/vtext":49}],5:[function(require,module,exports){ /** * namespace-map.js * * Necessary to map svg attributes back to their namespace */ 'use strict'; // extracted from https://github.com/Matt-Esch/virtual-dom/blob/master/virtual-hyperscript/svg-attribute-namespace.js var DEFAULT_NAMESPACE = null; var EV_NAMESPACE = 'http://www.w3.org/2001/xml-events'; var XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink'; var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'; var namespaces = { 'about': DEFAULT_NAMESPACE , 'accent-height': DEFAULT_NAMESPACE , 'accumulate': DEFAULT_NAMESPACE , 'additive': DEFAULT_NAMESPACE , 'alignment-baseline': DEFAULT_NAMESPACE , 'alphabetic': DEFAULT_NAMESPACE , 'amplitude': DEFAULT_NAMESPACE , 'arabic-form': DEFAULT_NAMESPACE , 'ascent': DEFAULT_NAMESPACE , 'attributeName': DEFAULT_NAMESPACE , 'attributeType': DEFAULT_NAMESPACE , 'azimuth': DEFAULT_NAMESPACE , 'bandwidth': DEFAULT_NAMESPACE , 'baseFrequency': DEFAULT_NAMESPACE , 'baseProfile': DEFAULT_NAMESPACE , 'baseline-shift': DEFAULT_NAMESPACE , 'bbox': DEFAULT_NAMESPACE , 'begin': DEFAULT_NAMESPACE , 'bias': DEFAULT_NAMESPACE , 'by': DEFAULT_NAMESPACE , 'calcMode': DEFAULT_NAMESPACE , 'cap-height': DEFAULT_NAMESPACE , 'class': DEFAULT_NAMESPACE , 'clip': DEFAULT_NAMESPACE , 'clip-path': DEFAULT_NAMESPACE , 'clip-rule': DEFAULT_NAMESPACE , 'clipPathUnits': DEFAULT_NAMESPACE , 'color': DEFAULT_NAMESPACE , 'color-interpolation': DEFAULT_NAMESPACE , 'color-interpolation-filters': DEFAULT_NAMESPACE , 'color-profile': DEFAULT_NAMESPACE , 'color-rendering': DEFAULT_NAMESPACE , 'content': DEFAULT_NAMESPACE , 'contentScriptType': DEFAULT_NAMESPACE , 'contentStyleType': DEFAULT_NAMESPACE , 'cursor': DEFAULT_NAMESPACE , 'cx': DEFAULT_NAMESPACE , 'cy': DEFAULT_NAMESPACE , 'd': DEFAULT_NAMESPACE , 'datatype': DEFAULT_NAMESPACE , 'defaultAction': DEFAULT_NAMESPACE , 'descent': DEFAULT_NAMESPACE , 'diffuseConstant': DEFAULT_NAMESPACE , 'direction': DEFAULT_NAMESPACE , 'display': DEFAULT_NAMESPACE , 'divisor': DEFAULT_NAMESPACE , 'dominant-baseline': DEFAULT_NAMESPACE , 'dur': DEFAULT_NAMESPACE , 'dx': DEFAULT_NAMESPACE , 'dy': DEFAULT_NAMESPACE , 'edgeMode': DEFAULT_NAMESPACE , 'editable': DEFAULT_NAMESPACE , 'elevation': DEFAULT_NAMESPACE , 'enable-background': DEFAULT_NAMESPACE , 'end': DEFAULT_NAMESPACE , 'ev:event': EV_NAMESPACE , 'event': DEFAULT_NAMESPACE , 'exponent': DEFAULT_NAMESPACE , 'externalResourcesRequired': DEFAULT_NAMESPACE , 'fill': DEFAULT_NAMESPACE , 'fill-opacity': DEFAULT_NAMESPACE , 'fill-rule': DEFAULT_NAMESPACE , 'filter': DEFAULT_NAMESPACE , 'filterRes': DEFAULT_NAMESPACE , 'filterUnits': DEFAULT_NAMESPACE , 'flood-color': DEFAULT_NAMESPACE , 'flood-opacity': DEFAULT_NAMESPACE , 'focusHighlight': DEFAULT_NAMESPACE , 'focusable': DEFAULT_NAMESPACE , 'font-family': DEFAULT_NAMESPACE , 'font-size': DEFAULT_NAMESPACE , 'font-size-adjust': DEFAULT_NAMESPACE , 'font-stretch': DEFAULT_NAMESPACE , 'font-style': DEFAULT_NAMESPACE , 'font-variant': DEFAULT_NAMESPACE , 'font-weight': DEFAULT_NAMESPACE , 'format': DEFAULT_NAMESPACE , 'from': DEFAULT_NAMESPACE , 'fx': DEFAULT_NAMESPACE , 'fy': DEFAULT_NAMESPACE , 'g1': DEFAULT_NAMESPACE , 'g2': DEFAULT_NAMESPACE , 'glyph-name': DEFAULT_NAMESPACE , 'glyph-orientation-horizontal': DEFAULT_NAMESPACE , 'glyph-orientation-vertical': DEFAULT_NAMESPACE , 'glyphRef': DEFAULT_NAMESPACE , 'gradientTransform': DEFAULT_NAMESPACE , 'gradientUnits': DEFAULT_NAMESPACE , 'handler': DEFAULT_NAMESPACE , 'hanging': DEFAULT_NAMESPACE , 'height': DEFAULT_NAMESPACE , 'horiz-adv-x': DEFAULT_NAMESPACE , 'horiz-origin-x': DEFAULT_NAMESPACE , 'horiz-origin-y': DEFAULT_NAMESPACE , 'id': DEFAULT_NAMESPACE , 'ideographic': DEFAULT_NAMESPACE , 'image-rendering': DEFAULT_NAMESPACE , 'in': DEFAULT_NAMESPACE , 'in2': DEFAULT_NAMESPACE , 'initialVisibility': DEFAULT_NAMESPACE , 'intercept': DEFAULT_NAMESPACE , 'k': DEFAULT_NAMESPACE , 'k1': DEFAULT_NAMESPACE , 'k2': DEFAULT_NAMESPACE , 'k3': DEFAULT_NAMESPACE , 'k4': DEFAULT_NAMESPACE , 'kernelMatrix': DEFAULT_NAMESPACE , 'kernelUnitLength': DEFAULT_NAMESPACE , 'kerning': DEFAULT_NAMESPACE , 'keyPoints': DEFAULT_NAMESPACE , 'keySplines': DEFAULT_NAMESPACE , 'keyTimes': DEFAULT_NAMESPACE , 'lang': DEFAULT_NAMESPACE , 'lengthAdjust': DEFAULT_NAMESPACE , 'letter-spacing': DEFAULT_NAMESPACE , 'lighting-color': DEFAULT_NAMESPACE , 'limitingConeAngle': DEFAULT_NAMESPACE , 'local': DEFAULT_NAMESPACE , 'marker-end': DEFAULT_NAMESPACE , 'marker-mid': DEFAULT_NAMESPACE , 'marker-start': DEFAULT_NAMESPACE , 'markerHeight': DEFAULT_NAMESPACE , 'markerUnits': DEFAULT_NAMESPACE , 'markerWidth': DEFAULT_NAMESPACE , 'mask': DEFAULT_NAMESPACE , 'maskContentUnits': DEFAULT_NAMESPACE , 'maskUnits': DEFAULT_NAMESPACE , 'mathematical': DEFAULT_NAMESPACE , 'max': DEFAULT_NAMESPACE , 'media': DEFAULT_NAMESPACE , 'mediaCharacterEncoding': DEFAULT_NAMESPACE , 'mediaContentEncodings': DEFAULT_NAMESPACE , 'mediaSize': DEFAULT_NAMESPACE , 'mediaTime': DEFAULT_NAMESPACE , 'method': DEFAULT_NAMESPACE , 'min': DEFAULT_NAMESPACE , 'mode': DEFAULT_NAMESPACE , 'name': DEFAULT_NAMESPACE , 'nav-down': DEFAULT_NAMESPACE , 'nav-down-left': DEFAULT_NAMESPACE , 'nav-down-right': DEFAULT_NAMESPACE , 'nav-left': DEFAULT_NAMESPACE , 'nav-next': DEFAULT_NAMESPACE , 'nav-prev': DEFAULT_NAMESPACE , 'nav-right': DEFAULT_NAMESPACE , 'nav-up': DEFAULT_NAMESPACE , 'nav-up-left': DEFAULT_NAMESPACE , 'nav-up-right': DEFAULT_NAMESPACE , 'numOctaves': DEFAULT_NAMESPACE , 'observer': DEFAULT_NAMESPACE , 'offset': DEFAULT_NAMESPACE , 'opacity': DEFAULT_NAMESPACE , 'operator': DEFAULT_NAMESPACE , 'order': DEFAULT_NAMESPACE , 'orient': DEFAULT_NAMESPACE , 'orientation': DEFAULT_NAMESPACE , 'origin': DEFAULT_NAMESPACE , 'overflow': DEFAULT_NAMESPACE , 'overlay': DEFAULT_NAMESPACE , 'overline-position': DEFAULT_NAMESPACE , 'overline-thickness': DEFAULT_NAMESPACE , 'panose-1': DEFAULT_NAMESPACE , 'path': DEFAULT_NAMESPACE , 'pathLength': DEFAULT_NAMESPACE , 'patternContentUnits': DEFAULT_NAMESPACE , 'patternTransform': DEFAULT_NAMESPACE , 'patternUnits': DEFAULT_NAMESPACE , 'phase': DEFAULT_NAMESPACE , 'playbackOrder': DEFAULT_NAMESPACE , 'pointer-events': DEFAULT_NAMESPACE , 'points': DEFAULT_NAMESPACE , 'pointsAtX': DEFAULT_NAMESPACE , 'pointsAtY': DEFAULT_NAMESPACE , 'pointsAtZ': DEFAULT_NAMESPACE , 'preserveAlpha': DEFAULT_NAMESPACE , 'preserveAspectRatio': DEFAULT_NAMESPACE , 'primitiveUnits': DEFAULT_NAMESPACE , 'propagate': DEFAULT_NAMESPACE , 'property': DEFAULT_NAMESPACE , 'r': DEFAULT_NAMESPACE , 'radius': DEFAULT_NAMESPACE , 'refX': DEFAULT_NAMESPACE , 'refY': DEFAULT_NAMESPACE , 'rel': DEFAULT_NAMESPACE , 'rendering-intent': DEFAULT_NAMESPACE , 'repeatCount': DEFAULT_NAMESPACE , 'repeatDur': DEFAULT_NAMESPACE , 'requiredExtensions': DEFAULT_NAMESPACE , 'requiredFeatures': DEFAULT_NAMESPACE , 'requiredFonts': DEFAULT_NAMESPACE , 'requiredFormats': DEFAULT_NAMESPACE , 'resource': DEFAULT_NAMESPACE , 'restart': DEFAULT_NAMESPACE , 'result': DEFAULT_NAMESPACE , 'rev': DEFAULT_NAMESPACE , 'role': DEFAULT_NAMESPACE , 'rotate': DEFAULT_NAMESPACE , 'rx': DEFAULT_NAMESPACE , 'ry': DEFAULT_NAMESPACE , 'scale': DEFAULT_NAMESPACE , 'seed': DEFAULT_NAMESPACE , 'shape-rendering': DEFAULT_NAMESPACE , 'slope': DEFAULT_NAMESPACE , 'snapshotTime': DEFAULT_NAMESPACE , 'spacing': DEFAULT_NAMESPACE , 'specularConstant': DEFAULT_NAMESPACE , 'specularExponent': DEFAULT_NAMESPACE , 'spreadMethod': DEFAULT_NAMESPACE , 'startOffset': DEFAULT_NAMESPACE , 'stdDeviation': DEFAULT_NAMESPACE , 'stemh': DEFAULT_NAMESPACE , 'stemv': DEFAULT_NAMESPACE , 'stitchTiles': DEFAULT_NAMESPACE , 'stop-color': DEFAULT_NAMESPACE , 'stop-opacity': DEFAULT_NAMESPACE , 'strikethrough-position': DEFAULT_NAMESPACE , 'strikethrough-thickness': DEFAULT_NAMESPACE , 'string': DEFAULT_NAMESPACE , 'stroke': DEFAULT_NAMESPACE , 'stroke-dasharray': DEFAULT_NAMESPACE , 'stroke-dashoffset': DEFAULT_NAMESPACE , 'stroke-linecap': DEFAULT_NAMESPACE , 'stroke-linejoin': DEFAULT_NAMESPACE , 'stroke-miterlimit': DEFAULT_NAMESPACE , 'stroke-opacity': DEFAULT_NAMESPACE , 'stroke-width': DEFAULT_NAMESPACE , 'surfaceScale': DEFAULT_NAMESPACE , 'syncBehavior': DEFAULT_NAMESPACE , 'syncBehaviorDefault': DEFAULT_NAMESPACE , 'syncMaster': DEFAULT_NAMESPACE , 'syncTolerance': DEFAULT_NAMESPACE , 'syncToleranceDefault': DEFAULT_NAMESPACE , 'systemLanguage': DEFAULT_NAMESPACE , 'tableValues': DEFAULT_NAMESPACE , 'target': DEFAULT_NAMESPACE , 'targetX': DEFAULT_NAMESPACE , 'targetY': DEFAULT_NAMESPACE , 'text-anchor': DEFAULT_NAMESPACE , 'text-decoration': DEFAULT_NAMESPACE , 'text-rendering': DEFAULT_NAMESPACE , 'textLength': DEFAULT_NAMESPACE , 'timelineBegin': DEFAULT_NAMESPACE , 'title': DEFAULT_NAMESPACE , 'to': DEFAULT_NAMESPACE , 'transform': DEFAULT_NAMESPACE , 'transformBehavior': DEFAULT_NAMESPACE , 'type': DEFAULT_NAMESPACE , 'typeof': DEFAULT_NAMESPACE , 'u1': DEFAULT_NAMESPACE , 'u2': DEFAULT_NAMESPACE , 'underline-position': DEFAULT_NAMESPACE , 'underline-thickness': DEFAULT_NAMESPACE , 'unicode': DEFAULT_NAMESPACE , 'unicode-bidi': DEFAULT_NAMESPACE , 'unicode-range': DEFAULT_NAMESPACE , 'units-per-em': DEFAULT_NAMESPACE , 'v-alphabetic': DEFAULT_NAMESPACE , 'v-hanging': DEFAULT_NAMESPACE , 'v-ideographic': DEFAULT_NAMESPACE , 'v-mathematical': DEFAULT_NAMESPACE , 'values': DEFAULT_NAMESPACE , 'version': DEFAULT_NAMESPACE , 'vert-adv-y': DEFAULT_NAMESPACE , 'vert-origin-x': DEFAULT_NAMESPACE , 'vert-origin-y': DEFAULT_NAMESPACE , 'viewBox': DEFAULT_NAMESPACE , 'viewTarget': DEFAULT_NAMESPACE , 'visibility': DEFAULT_NAMESPACE , 'width': DEFAULT_NAMESPACE , 'widths': DEFAULT_NAMESPACE , 'word-spacing': DEFAULT_NAMESPACE , 'writing-mode': DEFAULT_NAMESPACE , 'x': DEFAULT_NAMESPACE , 'x-height': DEFAULT_NAMESPACE , 'x1': DEFAULT_NAMESPACE , 'x2': DEFAULT_NAMESPACE , 'xChannelSelector': DEFAULT_NAMESPACE , 'xlink:actuate': XLINK_NAMESPACE , 'xlink:arcrole': XLINK_NAMESPACE , 'xlink:href': XLINK_NAMESPACE , 'xlink:role': XLINK_NAMESPACE , 'xlink:show': XLINK_NAMESPACE , 'xlink:title': XLINK_NAMESPACE , 'xlink:type': XLINK_NAMESPACE , 'xml:base': XML_NAMESPACE , 'xml:id': XML_NAMESPACE , 'xml:lang': XML_NAMESPACE , 'xml:space': XML_NAMESPACE , 'y': DEFAULT_NAMESPACE , 'y1': DEFAULT_NAMESPACE , 'y2': DEFAULT_NAMESPACE , 'yChannelSelector': DEFAULT_NAMESPACE , 'z': DEFAULT_NAMESPACE , 'zoomAndPan': DEFAULT_NAMESPACE }; module.exports = namespaces; },{}],6:[function(require,module,exports){ /** * property-map.js * * Necessary to map dom attributes back to vdom properties */ 'use strict'; // invert of https://www.npmjs.com/package/html-attributes var properties = { 'abbr': 'abbr' , 'accept': 'accept' , 'accept-charset': 'acceptCharset' , 'accesskey': 'accessKey' , 'action': 'action' , 'allowfullscreen': 'allowFullScreen' , 'allowtransparency': 'allowTransparency' , 'alt': 'alt' , 'async': 'async' , 'autocomplete': 'autoComplete' , 'autofocus': 'autoFocus' , 'autoplay': 'autoPlay' , 'cellpadding': 'cellPadding' , 'cellspacing': 'cellSpacing' , 'challenge': 'challenge' , 'charset': 'charset' , 'checked': 'checked' , 'cite': 'cite' , 'class': 'className' , 'cols': 'cols' , 'colspan': 'colSpan' , 'command': 'command' , 'content': 'content' , 'contenteditable': 'contentEditable' , 'contextmenu': 'contextMenu' , 'controls': 'controls' , 'coords': 'coords' , 'crossorigin': 'crossOrigin' , 'data': 'data' , 'datetime': 'dateTime' , 'default': 'default' , 'defer': 'defer' , 'dir': 'dir' , 'disabled': 'disabled' , 'download': 'download' , 'draggable': 'draggable' , 'dropzone': 'dropzone' , 'enctype': 'encType' , 'for': 'htmlFor' , 'form': 'form' , 'formaction': 'formAction' , 'formenctype': 'formEncType' , 'formmethod': 'formMethod' , 'formnovalidate': 'formNoValidate' , 'formtarget': 'formTarget' , 'frameBorder': 'frameBorder' , 'headers': 'headers' , 'height': 'height' , 'hidden': 'hidden' , 'high': 'high' , 'href': 'href' , 'hreflang': 'hrefLang' , 'http-equiv': 'httpEquiv' , 'icon': 'icon' , 'id': 'id' , 'inputmode': 'inputMode' , 'ismap': 'isMap' , 'itemid': 'itemId' , 'itemprop': 'itemProp' , 'itemref': 'itemRef' , 'itemscope': 'itemScope' , 'itemtype': 'itemType' , 'kind': 'kind' , 'label': 'label' , 'lang': 'lang' , 'list': 'list' , 'loop': 'loop' , 'manifest': 'manifest' , 'max': 'max' , 'maxlength': 'maxLength' , 'media': 'media' , 'mediagroup': 'mediaGroup' , 'method': 'method' , 'min': 'min' , 'minlength': 'minLength' , 'multiple': 'multiple' , 'muted': 'muted' , 'name': 'name' , 'novalidate': 'noValidate' , 'open': 'open' , 'optimum': 'optimum' , 'pattern': 'pattern' , 'ping': 'ping' , 'placeholder': 'placeholder' , 'poster': 'poster' , 'preload': 'preload' , 'radiogroup': 'radioGroup' , 'readonly': 'readOnly' , 'rel': 'rel' , 'required': 'required' , 'role': 'role' , 'rows': 'rows' , 'rowspan': 'rowSpan' , 'sandbox': 'sandbox' , 'scope': 'scope' , 'scoped': 'scoped' , 'scrolling': 'scrolling' , 'seamless': 'seamless' , 'selected': 'selected' , 'shape': 'shape' , 'size': 'size' , 'sizes': 'sizes' , 'sortable': 'sortable' , 'span': 'span' , 'spellcheck': 'spellCheck' , 'src': 'src' , 'srcdoc': 'srcDoc' , 'srcset': 'srcSet' , 'start': 'start' , 'step': 'step' , 'style': 'style' , 'tabindex': 'tabIndex' , 'target': 'target' , 'title': 'title' , 'translate': 'translate' , 'type': 'type' , 'typemustmatch': 'typeMustMatch' , 'usemap': 'useMap' , 'value': 'value' , 'width': 'width' , 'wmode': 'wmode' , 'wrap': 'wrap' }; module.exports = properties; },{}],7:[function(require,module,exports){ var escape = require('escape-html'); var propConfig = require('./property-config'); var types = propConfig.attributeTypes; var properties = propConfig.properties; var attributeNames = propConfig.attributeNames; var prefixAttribute = memoizeString(function (name) { return escape(name) + '="'; }); module.exports = createAttribute; /** * Create attribute string. * * @param {String} name The name of the property or attribute * @param {*} value The value * @param {Boolean} [isAttribute] Denotes whether `name` is an attribute. * @return {?String} Attribute string || null if not a valid property or custom attribute. */ function createAttribute(name, value, isAttribute) { if (properties.hasOwnProperty(name)) { if (shouldSkip(name, value)) return ''; name = (attributeNames[name] || name).toLowerCase(); var attrType = properties[name]; // for BOOLEAN `value` only has to be truthy // for OVERLOADED_BOOLEAN `value` has to be === true if ((attrType === types.BOOLEAN) || (attrType === types.OVERLOADED_BOOLEAN && value === true)) { return escape(name); } return prefixAttribute(name) + escape(value) + '"'; } else if (isAttribute) { if (value == null) return ''; return prefixAttribute(name) + escape(value) + '"'; } // return null if `name` is neither a valid property nor an attribute return null; } /** * Should skip false boolean attributes. */ function shouldSkip(name, value) { var attrType = properties[name]; return value == null || (attrType === types.BOOLEAN && !value) || (attrType === types.OVERLOADED_BOOLEAN && value === false); } /** * Memoizes the return value of a function that accepts one string argument. * * @param {function} callback * @return {function} */ function memoizeString(callback) { var cache = {}; return function(string) { if (cache.hasOwnProperty(string)) { return cache[string]; } else { return cache[string] = callback.call(this, string); } }; } },{"./property-config":17,"escape-html":9}],8:[function(require,module,exports){ var escape = require('escape-html'); var extend = require('xtend'); var isVNode = require('virtual-dom/vnode/is-vnode'); var isVText = require('virtual-dom/vnode/is-vtext'); var isThunk = require('virtual-dom/vnode/is-thunk'); var isWidget = require('virtual-dom/vnode/is-widget'); var softHook = require('virtual-dom/virtual-hyperscript/hooks/soft-set-hook'); var attrHook = require('virtual-dom/virtual-hyperscript/hooks/attribute-hook'); var paramCase = require('param-case'); var createAttribute = require('./create-attribute'); var voidElements = require('./void-elements'); module.exports = toHTML; function toHTML(node, parent) { if (!node) return ''; if (isThunk(node)) { node = node.render(); } if (isWidget(node) && node.render) { node = node.render(); } if (isVNode(node)) { return openTag(node) + tagContent(node) + closeTag(node); } else if (isVText(node)) { if (parent && parent.tagName.toLowerCase() === 'script') return String(node.text); return escape(String(node.text)); } return ''; } function openTag(node) { var props = node.properties; var ret = '<' + node.tagName.toLowerCase(); for (var name in props) { var value = props[name]; if (value == null) continue; if (name == 'attributes') { value = extend({}, value); for (var attrProp in value) { ret += ' ' + createAttribute(attrProp, value[attrProp], true); } continue; } if (name == 'style') { var css = ''; value = extend({}, value); for (var styleProp in value) { css += paramCase(styleProp) + ': ' + value[styleProp] + '; '; } value = css.trim(); } if (value instanceof softHook || value instanceof attrHook) { ret += ' ' + createAttribute(name, value.value, true); continue; } var attr = createAttribute(name, value); if (attr) ret += ' ' + attr; } return ret + '>'; } function tagContent(node) { var innerHTML = node.properties.innerHTML; if (innerHTML != null) return innerHTML; else { var ret = ''; if (node.children && node.children.length) { for (var i = 0, l = node.children.length; i<l; i++) { var child = node.children[i]; ret += toHTML(child, node); } } return ret; } } function closeTag(node) { var tag = node.tagName.toLowerCase(); return voidElements[tag] ? '' : '</' + tag + '>'; } },{"./create-attribute":7,"./void-elements":18,"escape-html":9,"param-case":15,"virtual-dom/virtual-hyperscript/hooks/attribute-hook":33,"virtual-dom/virtual-hyperscript/hooks/soft-set-hook":35,"virtual-dom/vnode/is-thunk":41,"virtual-dom/vnode/is-vnode":43,"virtual-dom/vnode/is-vtext":44,"virtual-dom/vnode/is-widget":45,"xtend":16}],9:[function(require,module,exports){ /*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */ 'use strict'; /** * Module variables. * @private */ var matchHtmlRegExp = /["'&<>]/; /** * Module exports. * @public */ module.exports = escapeHtml; /** * Escape special characters in the given string of html. * * @param {string} string The string to escape for inserting into HTML * @return {string} * @public */ function escapeHtml(string) { var str = '' + string; var match = matchHtmlRegExp.exec(str); if (!match) { return str; } var escape; var html = ''; var index = 0; var lastIndex = 0; for (index = match.index; index < str.length; index++) { switch (str.charCodeAt(index)) { case 34: // " escape = '&quot;'; break; case 38: // & escape = '&amp;'; break; case 39: // ' escape = '&#39;'; break; case 60: // < escape = '&lt;'; break; case 62: // > escape = '&gt;'; break; default: continue; } if (lastIndex !== index) { html += str.substring(lastIndex, index); } lastIndex = index + 1; html += escape; } return lastIndex !== index ? html + str.substring(lastIndex, index) : html; } },{}],10:[function(require,module,exports){ /** * Special language-specific overrides. * * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt * * @type {Object} */ var LANGUAGES = { tr: { regexp: /\u0130|\u0049|\u0049\u0307/g, map: { '\u0130': '\u0069', '\u0049': '\u0131', '\u0049\u0307': '\u0069' } }, az: { regexp: /[\u0130]/g, map: { '\u0130': '\u0069', '\u0049': '\u0131', '\u0049\u0307': '\u0069' } }, lt: { regexp: /[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g, map: { '\u0049': '\u0069\u0307', '\u004A': '\u006A\u0307', '\u012E': '\u012F\u0307', '\u00CC': '\u0069\u0307\u0300', '\u00CD': '\u0069\u0307\u0301', '\u0128': '\u0069\u0307\u0303' } } } /** * Lowercase a string. * * @param {String} str * @return {String} */ module.exports = function (str, locale) { var lang = LANGUAGES[locale] str = str == null ? '' : String(str) if (lang) { str = str.replace(lang.regexp, function (m) { return lang.map[m] }) } return str.toLowerCase() } },{}],11:[function(require,module,exports){ var lowerCase = require('lower-case') var NON_WORD_REGEXP = require('./vendor/non-word-regexp') var CAMEL_CASE_REGEXP = require('./vendor/camel-case-regexp') var TRAILING_DIGIT_REGEXP = require('./vendor/trailing-digit-regexp') /** * Sentence case a string. * * @param {String} str * @param {String} locale * @param {String} replacement * @return {String} */ module.exports = function (str, locale, replacement) { if (str == null) { return '' } replacement = replacement || ' ' function replace (match, index, string) { if (index === 0 || index === (string.length - match.length)) { return '' } return replacement } str = String(str) // Support camel case ("camelCase" -> "camel Case"). .replace(CAMEL_CASE_REGEXP, '$1 $2') // Support digit groups ("test2012" -> "test 2012"). .replace(TRAILING_DIGIT_REGEXP, '$1 $2') // Remove all non-word characters and replace with a single space. .replace(NON_WORD_REGEXP, replace) // Lower case the entire string. return lowerCase(str, locale) } },{"./vendor/camel-case-regexp":12,"./vendor/non-word-regexp":13,"./vendor/trailing-digit-regexp":14,"lower-case":10}],12:[function(require,module,exports){ module.exports = /([\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\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64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])([\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1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\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g },{}],13:[function(require,module,exports){ module.exports = /[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g },{}],14:[function(require,module,exports){ module.exports = /([\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([^\u0030-\u0039\u00B2\u00B3\u00B9\u00BC-\u00BE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])/g },{}],15:[function(require,module,exports){ var sentenceCase = require('sentence-case'); /** * Param case a string. * * @param {String} string * @param {String} [locale] * @return {String} */ module.exports = function (string, locale) { return sentenceCase(string, locale, '-'); }; },{"sentence-case":11}],16:[function(require,module,exports){ module.exports = extend var hasOwnProperty = Object.prototype.hasOwnProperty; function extend() { var target = {} for (var i = 0; i < arguments.length; i++) { var source = arguments[i] for (var key in source) { if (hasOwnProperty.call(source, key)) { target[key] = source[key] } } } return target } },{}],17:[function(require,module,exports){ /** * Attribute types. */ var types = { BOOLEAN: 1, OVERLOADED_BOOLEAN: 2 }; /** * Properties. * * Taken from https://github.com/facebook/react/blob/847357e42e5267b04dd6e297219eaa125ab2f9f4/src/browser/ui/dom/HTMLDOMPropertyConfig.js * */ var properties = { /** * Standard Properties */ accept: true, acceptCharset: true, accessKey: true, action: true, allowFullScreen: types.BOOLEAN, allowTransparency: true, alt: true, async: types.BOOLEAN, autocomplete: true, autofocus: types.BOOLEAN, autoplay: types.BOOLEAN, cellPadding: true, cellSpacing: true, charset: true, checked: types.BOOLEAN, classID: true, className: true, cols: true, colSpan: true, content: true, contentEditable: true, contextMenu: true, controls: types.BOOLEAN, coords: true, crossOrigin: true, data: true, // For `<object />` acts as `src`. dateTime: true, defer: types.BOOLEAN, dir: true, disabled: types.BOOLEAN, download: types.OVERLOADED_BOOLEAN, draggable: true, enctype: true, form: true, formAction: true, formEncType: true, formMethod: true, formNoValidate: types.BOOLEAN, formTarget: true, frameBorder: true, headers: true, height: true, hidden: types.BOOLEAN, href: true, hreflang: true, htmlFor: true, httpEquiv: true, icon: true, id: true, label: true, lang: true, list: true, loop: types.BOOLEAN, manifest: true, marginHeight: true, marginWidth: true, max: true, maxLength: true, media: true, mediaGroup: true, method: true, min: true, multiple: types.BOOLEAN, muted: types.BOOLEAN, name: true, noValidate: types.BOOLEAN, open: true, pattern: true, placeholder: true, poster: true, preload: true, radiogroup: true, readOnly: types.BOOLEAN, rel: true, required: types.BOOLEAN, role: true, rows: true, rowSpan: true, sandbox: true, scope: true, scrolling: true, seamless: types.BOOLEAN, selected: types.BOOLEAN, shape: true, size: true, sizes: true, span: true, spellcheck: true, src: true, srcdoc: true, srcset: true, start: true, step: true, style: true, tabIndex: true, target: true, title: true, type: true, useMap: true, value: true, width: true, wmode: true, /** * Non-standard Properties */ // autoCapitalize and autoCorrect are supported in Mobile Safari for // keyboard hints. autocapitalize: true, autocorrect: true, // itemProp, itemScope, itemType are for Microdata support. See // http://schema.org/docs/gs.html itemProp: true, itemScope: types.BOOLEAN, itemType: true, // property is supported for OpenGraph in meta tags. property: true }; /** * Properties to attributes mapping. * * The ones not here are simply converted to lower case. */ var attributeNames = { acceptCharset: 'accept-charset', className: 'class', htmlFor: 'for', httpEquiv: 'http-equiv' }; /** * Exports. */ module.exports = { attributeTypes: types, properties: properties, attributeNames: attributeNames }; },{}],18:[function(require,module,exports){ /** * Void elements. * * https://github.com/facebook/react/blob/v0.12.0/src/browser/ui/ReactDOMComponent.js#L99 */ module.exports = { 'area': true, 'base': true, 'br': true, 'col': true, 'embed': true, 'hr': true, 'img': true, 'input': true, 'keygen': true, 'link': true, 'meta': true, 'param': true, 'source': true, 'track': true, 'wbr': true }; },{}],19:[function(require,module,exports){ var diff = require("./vtree/diff.js") module.exports = diff },{"./vtree/diff.js":51}],20:[function(require,module,exports){ /*! * Cross-Browser Split 1.1.1 * Copyright 2007-2012 Steven Levithan <stevenlevithan.com> * Available under the MIT License * ECMAScript compliant, uniform cross-browser split method */ /** * Splits a string into an array of strings using a regex or string separator. Matches of the * separator are not included in the result array. However, if `separator` is a regex that contains * capturing groups, backreferences are spliced into the result each time `separator` is matched. * Fixes browser bugs compared to the native `String.prototype.split` and can be used reliably * cross-browser. * @param {String} str String to split. * @param {RegExp|String} separator Regex or string to use for separating the string. * @param {Number} [limit] Maximum number of items to include in the result array. * @returns {Array} Array of substrings. * @example * * // Basic use * split('a b c d', ' '); * // -> ['a', 'b', 'c', 'd'] * * // With limit * split('a b c d', ' ', 2); * // -> ['a', 'b'] * * // Backreferences in result array * split('..word1 word2..', /([a-z]+)(\d+)/i); * // -> ['..', 'word', '1', ' ', 'word', '2', '..'] */ module.exports = (function split(undef) { var nativeSplit = String.prototype.split, compliantExecNpcg = /()??/.exec("")[1] === undef, // NPCG: nonparticipating capturing group self; self = function(str, separator, limit) { // If `separator` is not a regex, use `nativeSplit` if (Object.prototype.toString.call(separator) !== "[object RegExp]") { return nativeSplit.call(str, separator, limit); } var output = [], flags = (separator.ignoreCase ? "i" : "") + (separator.multiline ? "m" : "") + (separator.extended ? "x" : "") + // Proposed for ES6 (separator.sticky ? "y" : ""), // Firefox 3+ lastLastIndex = 0, // Make `global` and avoid `lastIndex` issues by working with a copy separator = new RegExp(separator.source, flags + "g"), separator2, match, lastIndex, lastLength; str += ""; // Type-convert if (!compliantExecNpcg) { // Doesn't need flags gy, but they don't hurt separator2 = new RegExp("^" + separator.source + "$(?!\\s)", flags); } /* Values for `limit`, per the spec: * If undefined: 4294967295 // Math.pow(2, 32) - 1 * If 0, Infinity, or NaN: 0 * If positive number: limit = Math.floor(limit); if (limit > 4294967295) limit -= 4294967296; * If negative number: 4294967296 - Math.floor(Math.abs(limit)) * If other: Type-convert, then use the above rules */ limit = limit === undef ? -1 >>> 0 : // Math.pow(2, 32) - 1 limit >>> 0; // ToUint32(limit) while (match = separator.exec(str)) { // `separator.lastIndex` is not reliable cross-browser lastIndex = match.index + match[0].length; if (lastIndex > lastLastIndex) { output.push(str.slice(lastLastIndex, match.index)); // Fix browsers whose `exec` methods don't consistently return `undefined` for // nonparticipating capturing groups if (!compliantExecNpcg && match.length > 1) { match[0].replace(separator2, function() { for (var i = 1; i < arguments.length - 2; i++) { if (arguments[i] === undef) { match[i] = undef; } } }); } if (match.length > 1 && match.index < str.length) { Array.prototype.push.apply(output, match.slice(1)); } lastLength = match[0].length; lastLastIndex = lastIndex; if (output.length >= limit) { break; } } if (separator.lastIndex === match.index) { separator.lastIndex++; // Avoid an infinite loop } } if (lastLastIndex === str.length) { if (lastLength || !separator.test("")) { output.push(""); } } else { output.push(str.slice(lastLastIndex)); } return output.length > limit ? output.slice(0, limit) : output; }; return self; })(); },{}],21:[function(require,module,exports){ 'use strict'; var OneVersionConstraint = require('individual/one-version'); var MY_VERSION = '7'; OneVersionConstraint('ev-store', MY_VERSION); var hashKey = '__EV_STORE_KEY@' + MY_VERSION; module.exports = EvStore; function EvStore(elem) { var hash = elem[hashKey]; if (!hash) { hash = elem[hashKey] = {}; } return hash; } },{"individual/one-version":23}],22:[function(require,module,exports){ (function (global){ 'use strict'; /*global window, global*/ var root = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {}; module.exports = Individual; function Individual(key, value) { if (key in root) { return root[key]; } root[key] = value; return value; } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],23:[function(require,module,exports){ 'use strict'; var Individual = require('./index.js'); module.exports = OneVersion; function OneVersion(moduleName, version, defaultValue) { var key = '__INDIVIDUAL_ONE_VERSION_' + moduleName; var enforceKey = key + '_ENFORCE_SINGLETON'; var versionValue = Individual(enforceKey, version); if (versionValue !== version) { throw new Error('Can only have one copy of ' + moduleName + '.\n' + 'You already have version ' + versionValue + ' installed.\n' + 'This means you cannot install version ' + version); } return Individual(key, defaultValue); } },{"./index.js":22}],24:[function(require,module,exports){ (function (global){ var topLevel = typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : {} var minDoc = require('min-document'); if (typeof document !== 'undefined') { module.exports = document; } else { var doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4']; if (!doccy) { doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc; } module.exports = doccy; } }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"min-document":1}],25:[function(require,module,exports){ "use strict"; module.exports = function isObject(x) { return typeof x === "object" && x !== null; }; },{}],26:[function(require,module,exports){ var patch = require("./vdom/patch.js") module.exports = patch },{"./vdom/patch.js":31}],27:[function(require,module,exports){ var isObject = require("is-object") var isHook = require("../vnode/is-vhook.js") module.exports = applyProperties function applyProperties(node, props, previous) { for (var propName in props) { var propValue = props[propName] if (propValue === undefined) { removeProperty(node, propName, propValue, previous); } else if (isHook(propValue)) { removeProperty(node, propName, propValue, previous) if (propValue.hook) { propValue.hook(node, propName, previous ? previous[propName] : undefined) } } else { if (isObject(propValue)) { patchObject(node, props, previous, propName, propValue); } else { node[propName] = propValue } } } } function removeProperty(node, propName, propValue, previous) { if (previous) { var previousValue = previous[propName] if (!isHook(previousValue)) { if (propName === "attributes") { for (var attrName in previousValue) { node.removeAttribute(attrName) } } else if (propName === "style") { for (var i in previousValue) { node.style[i] = "" } } else if (typeof previousValue === "string") { node[propName] = "" } else { node[propName] = null } } else if (previousValue.unhook) { previousValue.unhook(node, propName, propValue) } } } function patchObject(node, props, previous, propName, propValue) { var previousValue = previous ? previous[propName] : undefined // Set attributes if (propName === "attributes") { for (var attrName in propValue) { var attrValue = propValue[attrName] if (attrValue === undefined) { node.removeAttribute(attrName) } else { node.setAttribute(attrName, attrValue) } } return } if(previousValue && isObject(previousValue) && getPrototype(previousValue) !== getPrototype(propValue)) { node[propName] = propValue return } if (!isObject(node[propName])) { node[propName] = {} } var replacer = propName === "style" ? "" : undefined for (var k in propValue) { var value = propValue[k] node[propName][k] = (value === undefined) ? replacer : value } } function getPrototype(value) { if (Object.getPrototypeOf) { return Object.getPrototypeOf(value) } else if (value.__proto__) { return value.__proto__ } else if (value.constructor) { return value.constructor.prototype } } },{"../vnode/is-vhook.js":42,"is-object":25}],28:[function(require,module,exports){ var document = require("global/document") var applyProperties = require("./apply-properties") var isVNode = require("../vnode/is-vnode.js") var isVText = require("../vnode/is-vtext.js") var isWidget = require("../vnode/is-widget.js") var handleThunk = require("../vnode/handle-thunk.js") module.exports = createElement function createElement(vnode, opts) { var doc = opts ? opts.document || document : document var warn = opts ? opts.warn : null vnode = handleThunk(vnode).a if (isWidget(vnode)) { return vnode.init() } else if (isVText(vnode)) { return doc.createTextNode(vnode.text) } else if (!isVNode(vnode)) { if (warn) { warn("Item is not a valid virtual dom node", vnode) } return null } var node = (vnode.namespace === null) ? doc.createElement(vnode.tagName) : doc.createElementNS(vnode.namespace, vnode.tagName) var props = vnode.properties applyProperties(node, props) var children = vnode.children for (var i = 0; i < children.length; i++) { var childNode = createElement(children[i], opts) if (childNode) { node.appendChild(childNode) } } return node } },{"../vnode/handle-thunk.js":40,"../vnode/is-vnode.js":43,"../vnode/is-vtext.js":44,"../vnode/is-widget.js":45,"./apply-properties":27,"global/document":24}],29:[function(require,module,exports){ // Maps a virtual DOM tree onto a real DOM tree in an efficient manner. // We don't want to read all of the DOM nodes in the tree so we use // the in-order tree indexing to eliminate recursion down certain branches. // We only recurse into a DOM node if we know that it contains a child of // interest. var noChild = {} module.exports = domIndex function domIndex(rootNode, tree, indices, nodes) { if (!indices || indices.length === 0) { return {} } else { indices.sort(ascending) return recurse(rootNode, tree, indices, nodes, 0) } } function recurse(rootNode, tree, indices, nodes, rootIndex) { nodes = nodes || {} if (rootNode) { if (indexInRange(indices, rootIndex, rootIndex)) { nodes[rootIndex] = rootNode } var vChildren = tree.children if (vChildren) { var childNodes = rootNode.childNodes for (var i = 0; i < tree.children.length; i++) { rootIndex += 1 var vChild = vChildren[i] || noChild var nextIndex = rootIndex + (vChild.count || 0) // skip recursion down the tree if there are no nodes down here if (indexInRange(indices, rootIndex, nextIndex)) { recurse(childNodes[i], vChild, indices, nodes, rootIndex) } rootIndex = nextIndex } } } return nodes } // Binary search for an index in the interval [left, right] function indexInRange(indices, left, right) { if (indices.length === 0) { return false } var minIndex = 0 var maxIndex = indices.length - 1 var currentIndex var currentItem while (minIndex <= maxIndex) { currentIndex = ((maxIndex + minIndex) / 2) >> 0 currentItem = indices[currentIndex] if (minIndex === maxIndex) { return currentItem >= left && currentItem <= right } else if (currentItem < left) { minIndex = currentIndex + 1 } else if (currentItem > right) { maxIndex = currentIndex - 1 } else { return true } } return false; } function ascending(a, b) { return a > b ? 1 : -1 } },{}],30:[function(require,module,exports){ var applyProperties = require("./apply-properties") var isWidget = require("../vnode/is-widget.js") var VPatch = require("../vnode/vpatch.js") var updateWidget = require("./update-widget") module.exports = applyPatch function applyPatch(vpatch, domNode, renderOptions) { var type = vpatch.type var vNode = vpatch.vNode var patch = vpatch.patch switch (type) { case VPatch.REMOVE: return removeNode(domNode, vNode) case VPatch.INSERT: return insertNode(domNode, patch, renderOptions) case VPatch.VTEXT: return stringPatch(domNode, vNode, patch, renderOptions) case VPatch.WIDGET: return widgetPatch(domNode, vNode, patch, renderOptions) case VPatch.VNODE: return vNodePatch(domNode, vNode, patch, renderOptions) case VPatch.ORDER: reorderChildren(domNode, patch) return domNode case VPatch.PROPS: applyProperties(domNode, patch, vNode.properties) return domNode case VPatch.THUNK: return replaceRoot(domNode, renderOptions.patch(domNode, patch, renderOptions)) default: return domNode } } function removeNode(domNode, vNode) { var parentNode = domNode.parentNode if (parentNode) { parentNode.removeChild(domNode) } destroyWidget(domNode, vNode); return null } function insertNode(parentNode, vNode, renderOptions) { var newNode = renderOptions.render(vNode, renderOptions) if (parentNode) { parentNode.appendChild(newNode) } return parentNode } function stringPatch(domNode, leftVNode, vText, renderOptions) { var newNode if (domNode.nodeType === 3) { domNode.replaceData(0, domNode.length, vText.text) newNode = domNode } else { var parentNode = domNode.parentNode newNode = renderOptions.render(vText, renderOptions) if (parentNode && newNode !== domNode) { parentNode.replaceChild(newNode, domNode) } } return newNode } function widgetPatch(domNode, leftVNode, widget, renderOptions) { var updating = updateWidget(leftVNode, widget) var newNode if (updating) { newNode = widget.update(leftVNode, domNode) || domNode } else { newNode = renderOptions.render(widget, renderOptions) } var parentNode = domNode.parentNode if (parentNode && newNode !== domNode) { parentNode.replaceChild(newNode, domNode) } if (!updating) { destroyWidget(domNode, leftVNode) } return newNode } function vNodePatch(domNode, leftVNode, vNode, renderOptions) { var parentNode = domNode.parentNode var newNode = renderOptions.render(vNode, renderOptions) if (parentNode && newNode !== domNode) { parentNode.replaceChild(newNode, domNode) } return newNode } function destroyWidget(domNode, w) { if (typeof w.destroy === "function" && isWidget(w)) { w.destroy(domNode) } } function reorderChildren(domNode, moves) { var childNodes = domNode.childNodes var keyMap = {} var node var remove var insert for (var i = 0; i < moves.removes.length; i++) { remove = moves.removes[i] node = childNodes[remove.from] if (remove.key) { keyMap[remove.key] = node } domNode.removeChild(node) } var length = childNodes.length for (var j = 0; j < moves.inserts.length; j++) { insert = moves.inserts[j] node = keyMap[insert.key] // this is the weirdest bug i've ever seen in webkit domNode.insertBefore(node, insert.to >= length++ ? null : childNodes[insert.to]) } } function replaceRoot(oldRoot, newRoot) { if (oldRoot && newRoot && oldRoot !== newRoot && oldRoot.parentNode) { oldRoot.parentNode.replaceChild(newRoot, oldRoot) } return newRoot; } },{"../vnode/is-widget.js":45,"../vnode/vpatch.js":48,"./apply-properties":27,"./update-widget":32}],31:[function(require,module,exports){ var document = require("global/document") var isArray = require("x-is-array") var render = require("./create-element") var domIndex = require("./dom-index") var patchOp = require("./patch-op") module.exports = patch function patch(rootNode, patches, renderOptions) { renderOptions = renderOptions || {} renderOptions.patch = renderOptions.patch && renderOptions.patch !== patch ? renderOptions.patch : patchRecursive renderOptions.render = renderOptions.render || render return renderOptions.patch(rootNode, patches, renderOptions) } function patchRecursive(rootNode, patches, renderOptions) { var indices = patchIndices(patches) if (indices.length === 0) { return rootNode } var index = domIndex(rootNode, patches.a, indices) var ownerDocument = rootNode.ownerDocument if (!renderOptions.document && ownerDocument !== document) { renderOptions.document = ownerDocument } for (var i = 0; i < indices.length; i++) { var nodeIndex = indices[i] rootNode = applyPatch(rootNode, index[nodeIndex], patches[nodeIndex], renderOptions) } return rootNode } function applyPatch(rootNode, domNode, patchList, renderOptions) { if (!domNode) { return rootNode } var newNode if (isArray(patchList)) { for (var i = 0; i < patchList.length; i++) { newNode = patchOp(patchList[i], domNode, renderOptions) if (domNode === rootNode) { rootNode = newNode } } } else { newNode = patchOp(patchList, domNode, renderOptions) if (domNode === rootNode) { rootNode = newNode } } return rootNode } function patchIndices(patches) { var indices = [] for (var key in patches) { if (key !== "a") { indices.push(Number(key)) } } return indices } },{"./create-element":28,"./dom-index":29,"./patch-op":30,"global/document":24,"x-is-array":52}],32:[function(require,module,exports){ var isWidget = require("../vnode/is-widget.js") module.exports = updateWidget function updateWidget(a, b) { if (isWidget(a) && isWidget(b)) { if ("name" in a && "name" in b) { return a.id === b.id } else { return a.init === b.init } } return false } },{"../vnode/is-widget.js":45}],33:[function(require,module,exports){ 'use strict'; module.exports = AttributeHook; function AttributeHook(namespace, value) { if (!(this instanceof AttributeHook)) { return new AttributeHook(namespace, value); } this.namespace = namespace; this.value = value; } AttributeHook.prototype.hook = function (node, prop, prev) { if (prev && prev.type === 'AttributeHook' && prev.value === this.value && prev.namespace === this.namespace) { return; } node.setAttributeNS(this.namespace, prop, this.value); }; AttributeHook.prototype.unhook = function (node, prop, next) { if (next && next.type === 'AttributeHook' && next.namespace === this.namespace) { return; } var colonPosition = prop.indexOf(':'); var localName = colonPosition > -1 ? prop.substr(colonPosition + 1) : prop; node.removeAttributeNS(this.namespace, localName); }; AttributeHook.prototype.type = 'AttributeHook'; },{}],34:[function(require,module,exports){ 'use strict'; var EvStore = require('ev-store'); module.exports = EvHook; function EvHook(value) { if (!(this instanceof EvHook)) { return new EvHook(value); } this.value = value; } EvHook.prototype.hook = function (node, propertyName) { var es = EvStore(node); var propName = propertyName.substr(3); es[propName] = this.value; }; EvHook.prototype.unhook = function(node, propertyName) { var es = EvStore(node); var propName = propertyName.substr(3); es[propName] = undefined; }; },{"ev-store":21}],35:[function(require,module,exports){ 'use strict'; module.exports = SoftSetHook; function SoftSetHook(value) { if (!(this instanceof SoftSetHook)) { return new SoftSetHook(value); } this.value = value; } SoftSetHook.prototype.hook = function (node, propertyName) { if (node[propertyName] !== this.value) { node[propertyName] = this.value; } }; },{}],36:[function(require,module,exports){ 'use strict'; var isArray = require('x-is-array'); var VNode = require('../vnode/vnode.js'); var VText = require('../vnode/vtext.js'); var isVNode = require('../vnode/is-vnode'); var isVText = require('../vnode/is-vtext'); var isWidget = require('../vnode/is-widget'); var isHook = require('../vnode/is-vhook'); var isVThunk = require('../vnode/is-thunk'); var parseTag = require('./parse-tag.js'); var softSetHook = require('./hooks/soft-set-hook.js'); var evHook = require('./hooks/ev-hook.js'); module.exports = h; function h(tagName, properties, children) { var childNodes = []; var tag, props, key, namespace; if (!children && isChildren(properties)) { children = properties; props = {}; } props = props || properties || {}; tag = parseTag(tagName, props); // support keys if (props.hasOwnProperty('key')) { key = props.key; props.key = undefined; } // support namespace if (props.hasOwnProperty('namespace')) { namespace = props.namespace; props.namespace = undefined; } // fix cursor bug if (tag === 'INPUT' && !namespace && props.hasOwnProperty('value') && props.value !== undefined && !isHook(props.value) ) { props.value = softSetHook(props.value); } transformProperties(props); if (children !== undefined && children !== null) { addChild(children, childNodes, tag, props); } return new VNode(tag, props, childNodes, key, namespace); } function addChild(c, childNodes, tag, props) { if (typeof c === 'string') { childNodes.push(new VText(c)); } else if (typeof c === 'number') { childNodes.push(new VText(String(c))); } else if (isChild(c)) { childNodes.push(c); } else if (isArray(c)) { for (var i = 0; i < c.length; i++) { addChild(c[i], childNodes, tag, props); } } else if (c === null || c === undefined) { return; } else { throw UnexpectedVirtualElement({ foreignObject: c, parentVnode: { tagName: tag, properties: props } }); } } function transformProperties(props) { for (var propName in props) { if (props.hasOwnProperty(propName)) { var value = props[propName]; if (isHook(value)) { continue; } if (propName.substr(0, 3) === 'ev-') { // add ev-foo support props[propName] = evHook(value); } } } } function isChild(x) { return isVNode(x) || isVText(x) || isWidget(x) || isVThunk(x); } function isChildren(x) { return typeof x === 'string' || isArray(x) || isChild(x); } function UnexpectedVirtualElement(data) { var err = new Error(); err.type = 'virtual-hyperscript.unexpected.virtual-element'; err.message = 'Unexpected virtual child passed to h().\n' + 'Expected a VNode / Vthunk / VWidget / string but:\n' + 'got:\n' + errorString(data.foreignObject) + '.\n' + 'The parent vnode is:\n' + errorString(data.parentVnode) '\n' + 'Suggested fix: change your `h(..., [ ... ])` callsite.'; err.foreignObject = data.foreignObject; err.parentVnode = data.parentVnode; return err; } function errorString(obj) { try { return JSON.stringify(obj, null, ' '); } catch (e) { return String(obj); } } },{"../vnode/is-thunk":41,"../vnode/is-vhook":42,"../vnode/is-vnode":43,"../vnode/is-vtext":44,"../vnode/is-widget":45,"../vnode/vnode.js":47,"../vnode/vtext.js":49,"./hooks/ev-hook.js":34,"./hooks/soft-set-hook.js":35,"./parse-tag.js":37,"x-is-array":52}],37:[function(require,module,exports){ 'use strict'; var split = require('browser-split'); var classIdSplit = /([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/; var notClassId = /^\.|#/; module.exports = parseTag; function parseTag(tag, props) { if (!tag) { return 'DIV'; } var noId = !(props.hasOwnProperty('id')); var tagParts = split(tag, classIdSplit); var tagName = null; if (notClassId.test(tagParts[1])) { tagName = 'DIV'; } var classes, part, type, i; for (i = 0; i < tagParts.length; i++) { part = tagParts[i]; if (!part) { continue; } type = part.charAt(0); if (!tagName) { tagName = part; } else if (type === '.') { classes = classes || []; classes.push(part.substring(1, part.length)); } else if (type === '#' && noId) { props.id = part.substring(1, part.length); } } if (classes) { if (props.className) { classes.push(props.className); } props.className = classes.join(' '); } return props.namespace ? tagName : tagName.toUpperCase(); } },{"browser-split":20}],38:[function(require,module,exports){ 'use strict'; var DEFAULT_NAMESPACE = null; var EV_NAMESPACE = 'http://www.w3.org/2001/xml-events'; var XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink'; var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'; // http://www.w3.org/TR/SVGTiny12/attributeTable.html // http://www.w3.org/TR/SVG/attindex.html var SVG_PROPERTIES = { 'about': DEFAULT_NAMESPACE, 'accent-height': DEFAULT_NAMESPACE, 'accumulate': DEFAULT_NAMESPACE, 'additive': DEFAULT_NAMESPACE, 'alignment-baseline': DEFAULT_NAMESPACE, 'alphabetic': DEFAULT_NAMESPACE, 'amplitude': DEFAULT_NAMESPACE, 'arabic-form': DEFAULT_NAMESPACE, 'ascent': DEFAULT_NAMESPACE, 'attributeName': DEFAULT_NAMESPACE, 'attributeType': DEFAULT_NAMESPACE, 'azimuth': DEFAULT_NAMESPACE, 'bandwidth': DEFAULT_NAMESPACE, 'baseFrequency': DEFAULT_NAMESPACE, 'baseProfile': DEFAULT_NAMESPACE, 'baseline-shift': DEFAULT_NAMESPACE, 'bbox': DEFAULT_NAMESPACE, 'begin': DEFAULT_NAMESPACE, 'bias': DEFAULT_NAMESPACE, 'by': DEFAULT_NAMESPACE, 'calcMode': DEFAULT_NAMESPACE, 'cap-height': DEFAULT_NAMESPACE, 'class': DEFAULT_NAMESPACE, 'clip': DEFAULT_NAMESPACE, 'clip-path': DEFAULT_NAMESPACE, 'clip-rule': DEFAULT_NAMESPACE, 'clipPathUnits': DEFAULT_NAMESPACE, 'color': DEFAULT_NAMESPACE, 'color-interpolation': DEFAULT_NAMESPACE, 'color-interpolation-filters': DEFAULT_NAMESPACE, 'color-profile': DEFAULT_NAMESPACE, 'color-rendering': DEFAULT_NAMESPACE, 'content': DEFAULT_NAMESPACE, 'contentScriptType': DEFAULT_NAMESPACE, 'contentStyleType': DEFAULT_NAMESPACE, 'cursor': DEFAULT_NAMESPACE, 'cx': DEFAULT_NAMESPACE, 'cy': DEFAULT_NAMESPACE, 'd': DEFAULT_NAMESPACE, 'datatype': DEFAULT_NAMESPACE, 'defaultAction': DEFAULT_NAMESPACE, 'descent': DEFAULT_NAMESPACE, 'diffuseConstant': DEFAULT_NAMESPACE, 'direction': DEFAULT_NAMESPACE, 'display': DEFAULT_NAMESPACE, 'divisor': DEFAULT_NAMESPACE, 'dominant-baseline': DEFAULT_NAMESPACE, 'dur': DEFAULT_NAMESPACE, 'dx': DEFAULT_NAMESPACE, 'dy': DEFAULT_NAMESPACE, 'edgeMode': DEFAULT_NAMESPACE, 'editable': DEFAULT_NAMESPACE, 'elevation': DEFAULT_NAMESPACE, 'enable-background': DEFAULT_NAMESPACE, 'end': DEFAULT_NAMESPACE, 'ev:event': EV_NAMESPACE, 'event': DEFAULT_NAMESPACE, 'exponent': DEFAULT_NAMESPACE, 'externalResourcesRequired': DEFAULT_NAMESPACE, 'fill': DEFAULT_NAMESPACE, 'fill-opacity': DEFAULT_NAMESPACE, 'fill-rule': DEFAULT_NAMESPACE, 'filter': DEFAULT_NAMESPACE, 'filterRes': DEFAULT_NAMESPACE, 'filterUnits': DEFAULT_NAMESPACE, 'flood-color': DEFAULT_NAMESPACE, 'flood-opacity': DEFAULT_NAMESPACE, 'focusHighlight': DEFAULT_NAMESPACE, 'focusable': DEFAULT_NAMESPACE, 'font-family': DEFAULT_NAMESPACE, 'font-size': DEFAULT_NAMESPACE, 'font-size-adjust': DEFAULT_NAMESPACE, 'font-stretch': DEFAULT_NAMESPACE, 'font-style': DEFAULT_NAMESPACE, 'font-variant': DEFAULT_NAMESPACE, 'font-weight': DEFAULT_NAMESPACE, 'format': DEFAULT_NAMESPACE, 'from': DEFAULT_NAMESPACE, 'fx': DEFAULT_NAMESPACE, 'fy': DEFAULT_NAMESPACE, 'g1': DEFAULT_NAMESPACE, 'g2': DEFAULT_NAMESPACE, 'glyph-name': DEFAULT_NAMESPACE, 'glyph-orientation-horizontal': DEFAULT_NAMESPACE, 'glyph-orientation-vertical': DEFAULT_NAMESPACE, 'glyphRef': DEFAULT_NAMESPACE, 'gradientTransform': DEFAULT_NAMESPACE, 'gradientUnits': DEFAULT_NAMESPACE, 'handler': DEFAULT_NAMESPACE, 'hanging': DEFAULT_NAMESPACE, 'height': DEFAULT_NAMESPACE, 'horiz-adv-x': DEFAULT_NAMESPACE, 'horiz-origin-x': DEFAULT_NAMESPACE, 'horiz-origin-y': DEFAULT_NAMESPACE, 'id': DEFAULT_NAMESPACE, 'ideographic': DEFAULT_NAMESPACE, 'image-rendering': DEFAULT_NAMESPACE, 'in': DEFAULT_NAMESPACE, 'in2': DEFAULT_NAMESPACE, 'initialVisibility': DEFAULT_NAMESPACE, 'intercept': DEFAULT_NAMESPACE, 'k': DEFAULT_NAMESPACE, 'k1': DEFAULT_NAMESPACE, 'k2': DEFAULT_NAMESPACE, 'k3': DEFAULT_NAMESPACE, 'k4': DEFAULT_NAMESPACE, 'kernelMatrix': DEFAULT_NAMESPACE, 'kernelUnitLength': DEFAULT_NAMESPACE, 'kerning': DEFAULT_NAMESPACE, 'keyPoints': DEFAULT_NAMESPACE, 'keySplines': DEFAULT_NAMESPACE, 'keyTimes': DEFAULT_NAMESPACE, 'lang': DEFAULT_NAMESPACE, 'lengthAdjust': DEFAULT_NAMESPACE, 'letter-spacing': DEFAULT_NAMESPACE, 'lighting-color': DEFAULT_NAMESPACE, 'limitingConeAngle': DEFAULT_NAMESPACE, 'local': DEFAULT_NAMESPACE, 'marker-end': DEFAULT_NAMESPACE, 'marker-mid': DEFAULT_NAMESPACE, 'marker-start': DEFAULT_NAMESPACE, 'markerHeight': DEFAULT_NAMESPACE, 'markerUnits': DEFAULT_NAMESPACE, 'markerWidth': DEFAULT_NAMESPACE, 'mask': DEFAULT_NAMESPACE, 'maskContentUnits': DEFAULT_NAMESPACE, 'maskUnits': DEFAULT_NAMESPACE, 'mathematical': DEFAULT_NAMESPACE, 'max': DEFAULT_NAMESPACE, 'media': DEFAULT_NAMESPACE, 'mediaCharacterEncoding': DEFAULT_NAMESPACE, 'mediaContentEncodings': DEFAULT_NAMESPACE, 'mediaSize': DEFAULT_NAMESPACE, 'mediaTime': DEFAULT_NAMESPACE, 'method': DEFAULT_NAMESPACE, 'min': DEFAULT_NAMESPACE, 'mode': DEFAULT_NAMESPACE, 'name': DEFAULT_NAMESPACE, 'nav-down': DEFAULT_NAMESPACE, 'nav-down-left': DEFAULT_NAMESPACE, 'nav-down-right': DEFAULT_NAMESPACE, 'nav-left': DEFAULT_NAMESPACE, 'nav-next': DEFAULT_NAMESPACE, 'nav-prev': DEFAULT_NAMESPACE, 'nav-right': DEFAULT_NAMESPACE, 'nav-up': DEFAULT_NAMESPACE, 'nav-up-left': DEFAULT_NAMESPACE, 'nav-up-right': DEFAULT_NAMESPACE, 'numOctaves': DEFAULT_NAMESPACE, 'observer': DEFAULT_NAMESPACE, 'offset': DEFAULT_NAMESPACE, 'opacity': DEFAULT_NAMESPACE, 'operator': DEFAULT_NAMESPACE, 'order': DEFAULT_NAMESPACE, 'orient': DEFAULT_NAMESPACE, 'orientation': DEFAULT_NAMESPACE, 'origin': DEFAULT_NAMESPACE, 'overflow': DEFAULT_NAMESPACE, 'overlay': DEFAULT_NAMESPACE, 'overline-position': DEFAULT_NAMESPACE, 'overline-thickness': DEFAULT_NAMESPACE, 'panose-1': DEFAULT_NAMESPACE, 'path': DEFAULT_NAMESPACE, 'pathLength': DEFAULT_NAMESPACE, 'patternContentUnits': DEFAULT_NAMESPACE, 'patternTransform': DEFAULT_NAMESPACE, 'patternUnits': DEFAULT_NAMESPACE, 'phase': DEFAULT_NAMESPACE, 'playbackOrder': DEFAULT_NAMESPACE, 'pointer-events': DEFAULT_NAMESPACE, 'points': DEFAULT_NAMESPACE, 'pointsAtX': DEFAULT_NAMESPACE, 'pointsAtY': DEFAULT_NAMESPACE, 'pointsAtZ': DEFAULT_NAMESPACE, 'preserveAlpha': DEFAULT_NAMESPACE, 'preserveAspectRatio': DEFAULT_NAMESPACE, 'primitiveUnits': DEFAULT_NAMESPACE, 'propagate': DEFAULT_NAMESPACE, 'property': DEFAULT_NAMESPACE, 'r': DEFAULT_NAMESPACE, 'radius': DEFAULT_NAMESPACE, 'refX': DEFAULT_NAMESPACE, 'refY': DEFAULT_NAMESPACE, 'rel': DEFAULT_NAMESPACE, 'rendering-intent': DEFAULT_NAMESPACE, 'repeatCount': DEFAULT_NAMESPACE, 'repeatDur': DEFAULT_NAMESPACE, 'requiredExtensions': DEFAULT_NAMESPACE, 'requiredFeatures': DEFAULT_NAMESPACE, 'requiredFonts': DEFAULT_NAMESPACE, 'requiredFormats': DEFAULT_NAMESPACE, 'resource': DEFAULT_NAMESPACE, 'restart': DEFAULT_NAMESPACE, 'result': DEFAULT_NAMESPACE, 'rev': DEFAULT_NAMESPACE, 'role': DEFAULT_NAMESPACE, 'rotate': DEFAULT_NAMESPACE, 'rx': DEFAULT_NAMESPACE, 'ry': DEFAULT_NAMESPACE, 'scale': DEFAULT_NAMESPACE, 'seed': DEFAULT_NAMESPACE, 'shape-rendering': DEFAULT_NAMESPACE, 'slope': DEFAULT_NAMESPACE, 'snapshotTime': DEFAULT_NAMESPACE, 'spacing': DEFAULT_NAMESPACE, 'specularConstant': DEFAULT_NAMESPACE, 'specularExponent': DEFAULT_NAMESPACE, 'spreadMethod': DEFAULT_NAMESPACE, 'startOffset': DEFAULT_NAMESPACE, 'stdDeviation': DEFAULT_NAMESPACE, 'stemh': DEFAULT_NAMESPACE, 'stemv': DEFAULT_NAMESPACE, 'stitchTiles': DEFAULT_NAMESPACE, 'stop-color': DEFAULT_NAMESPACE, 'stop-opacity': DEFAULT_NAMESPACE, 'strikethrough-position': DEFAULT_NAMESPACE, 'strikethrough-thickness': DEFAULT_NAMESPACE, 'string': DEFAULT_NAMESPACE, 'stroke': DEFAULT_NAMESPACE, 'stroke-dasharray': DEFAULT_NAMESPACE, 'stroke-dashoffset': DEFAULT_NAMESPACE, 'stroke-linecap': DEFAULT_NAMESPACE, 'stroke-linejoin': DEFAULT_NAMESPACE, 'stroke-miterlimit': DEFAULT_NAMESPACE, 'stroke-opacity': DEFAULT_NAMESPACE, 'stroke-width': DEFAULT_NAMESPACE, 'surfaceScale': DEFAULT_NAMESPACE, 'syncBehavior': DEFAULT_NAMESPACE, 'syncBehaviorDefault': DEFAULT_NAMESPACE, 'syncMaster': DEFAULT_NAMESPACE, 'syncTolerance': DEFAULT_NAMESPACE, 'syncToleranceDefault': DEFAULT_NAMESPACE, 'systemLanguage': DEFAULT_NAMESPACE, 'tableValues': DEFAULT_NAMESPACE, 'target': DEFAULT_NAMESPACE, 'targetX': DEFAULT_NAMESPACE, 'targetY': DEFAULT_NAMESPACE, 'text-anchor': DEFAULT_NAMESPACE, 'text-decoration': DEFAULT_NAMESPACE, 'text-rendering': DEFAULT_NAMESPACE, 'textLength': DEFAULT_NAMESPACE, 'timelineBegin': DEFAULT_NAMESPACE, 'title': DEFAULT_NAMESPACE, 'to': DEFAULT_NAMESPACE, 'transform': DEFAULT_NAMESPACE, 'transformBehavior': DEFAULT_NAMESPACE, 'type': DEFAULT_NAMESPACE, 'typeof': DEFAULT_NAMESPACE, 'u1': DEFAULT_NAMESPACE, 'u2': DEFAULT_NAMESPACE, 'underline-position': DEFAULT_NAMESPACE, 'underline-thickness': DEFAULT_NAMESPACE, 'unicode': DEFAULT_NAMESPACE, 'unicode-bidi': DEFAULT_NAMESPACE, 'unicode-range': DEFAULT_NAMESPACE, 'units-per-em': DEFAULT_NAMESPACE, 'v-alphabetic': DEFAULT_NAMESPACE, 'v-hanging': DEFAULT_NAMESPACE, 'v-ideographic': DEFAULT_NAMESPACE, 'v-mathematical': DEFAULT_NAMESPACE, 'values': DEFAULT_NAMESPACE, 'version': DEFAULT_NAMESPACE, 'vert-adv-y': DEFAULT_NAMESPACE, 'vert-origin-x': DEFAULT_NAMESPACE, 'vert-origin-y': DEFAULT_NAMESPACE, 'viewBox': DEFAULT_NAMESPACE, 'viewTarget': DEFAULT_NAMESPACE, 'visibility': DEFAULT_NAMESPACE, 'width': DEFAULT_NAMESPACE, 'widths': DEFAULT_NAMESPACE, 'word-spacing': DEFAULT_NAMESPACE, 'writing-mode': DEFAULT_NAMESPACE, 'x': DEFAULT_NAMESPACE, 'x-height': DEFAULT_NAMESPACE, 'x1': DEFAULT_NAMESPACE, 'x2': DEFAULT_NAMESPACE, 'xChannelSelector': DEFAULT_NAMESPACE, 'xlink:actuate': XLINK_NAMESPACE, 'xlink:arcrole': XLINK_NAMESPACE, 'xlink:href': XLINK_NAMESPACE, 'xlink:role': XLINK_NAMESPACE, 'xlink:show': XLINK_NAMESPACE, 'xlink:title': XLINK_NAMESPACE, 'xlink:type': XLINK_NAMESPACE, 'xml:base': XML_NAMESPACE, 'xml:id': XML_NAMESPACE, 'xml:lang': XML_NAMESPACE, 'xml:space': XML_NAMESPACE, 'y': DEFAULT_NAMESPACE, 'y1': DEFAULT_NAMESPACE, 'y2': DEFAULT_NAMESPACE, 'yChannelSelector': DEFAULT_NAMESPACE, 'z': DEFAULT_NAMESPACE, 'zoomAndPan': DEFAULT_NAMESPACE }; module.exports = SVGAttributeNamespace; function SVGAttributeNamespace(value) { if (SVG_PROPERTIES.hasOwnProperty(value)) { return SVG_PROPERTIES[value]; } } },{}],39:[function(require,module,exports){ 'use strict'; var isArray = require('x-is-array'); var h = require('./index.js'); var SVGAttributeNamespace = require('./svg-attribute-namespace'); var attributeHook = require('./hooks/attribute-hook'); var SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; module.exports = svg; function svg(tagName, properties, children) { if (!children && isChildren(properties)) { children = properties; properties = {}; } properties = properties || {}; // set namespace for svg properties.namespace = SVG_NAMESPACE; var attributes = properties.attributes || (properties.attributes = {}); for (var key in properties) { if (!properties.hasOwnProperty(key)) { continue; } var namespace = SVGAttributeNamespace(key); if (namespace === undefined) { // not a svg attribute continue; } var value = properties[key]; if (typeof value !== 'string' && typeof value !== 'number' && typeof value !== 'boolean' ) { continue; } if (namespace !== null) { // namespaced attribute properties[key] = attributeHook(namespace, value); continue; } attributes[key] = value properties[key] = undefined } return h(tagName, properties, children); } function isChildren(x) { return typeof x === 'string' || isArray(x); } },{"./hooks/attribute-hook":33,"./index.js":36,"./svg-attribute-namespace":38,"x-is-array":52}],40:[function(require,module,exports){ var isVNode = require("./is-vnode") var isVText = require("./is-vtext") var isWidget = require("./is-widget") var isThunk = require("./is-thunk") module.exports = handleThunk function handleThunk(a, b) { var renderedA = a var renderedB = b if (isThunk(b)) { renderedB = renderThunk(b, a) } if (isThunk(a)) { renderedA = renderThunk(a, null) } return { a: renderedA, b: renderedB } } function renderThunk(thunk, previous) { var renderedThunk = thunk.vnode if (!renderedThunk) { renderedThunk = thunk.vnode = thunk.render(previous) } if (!(isVNode(renderedThunk) || isVText(renderedThunk) || isWidget(renderedThunk))) { throw new Error("thunk did not return a valid node"); } return renderedThunk } },{"./is-thunk":41,"./is-vnode":43,"./is-vtext":44,"./is-widget":45}],41:[function(require,module,exports){ module.exports = isThunk function isThunk(t) { return t && t.type === "Thunk" } },{}],42:[function(require,module,exports){ module.exports = isHook function isHook(hook) { return hook && (typeof hook.hook === "function" && !hook.hasOwnProperty("hook") || typeof hook.unhook === "function" && !hook.hasOwnProperty("unhook")) } },{}],43:[function(require,module,exports){ var version = require("./version") module.exports = isVirtualNode function isVirtualNode(x) { return x && x.type === "VirtualNode" && x.version === version } },{"./version":46}],44:[function(require,module,exports){ var version = require("./version") module.exports = isVirtualText function isVirtualText(x) { return x && x.type === "VirtualText" && x.version === version } },{"./version":46}],45:[function(require,module,exports){ module.exports = isWidget function isWidget(w) { return w && w.type === "Widget" } },{}],46:[function(require,module,exports){ module.exports = "2" },{}],47:[function(require,module,exports){ var version = require("./version") var isVNode = require("./is-vnode") var isWidget = require("./is-widget") var isThunk = require("./is-thunk") var isVHook = require("./is-vhook") module.exports = VirtualNode var noProperties = {} var noChildren = [] function VirtualNode(tagName, properties, children, key, namespace) { this.tagName = tagName this.properties = properties || noProperties this.children = children || noChildren this.key = key != null ? String(key) : undefined this.namespace = (typeof namespace === "string") ? namespace : null var count = (children && children.length) || 0 var descendants = 0 var hasWidgets = false var hasThunks = false var descendantHooks = false var hooks for (var propName in properties) { if (properties.hasOwnProperty(propName)) { var property = properties[propName] if (isVHook(property) && property.unhook) { if (!hooks) { hooks = {} } hooks[propName] = property } } } for (var i = 0; i < count; i++) { var child = children[i] if (isVNode(child)) { descendants += child.count || 0 if (!hasWidgets && child.hasWidgets) { hasWidgets = true } if (!hasThunks && child.hasThunks) { hasThunks = true } if (!descendantHooks && (child.hooks || child.descendantHooks)) { descendantHooks = true } } else if (!hasWidgets && isWidget(child)) { if (typeof child.destroy === "function") { hasWidgets = true } } else if (!hasThunks && isThunk(child)) { hasThunks = true; } } this.count = count + descendants this.hasWidgets = hasWidgets this.hasThunks = hasThunks this.hooks = hooks this.descendantHooks = descendantHooks } VirtualNode.prototype.version = version VirtualNode.prototype.type = "VirtualNode" },{"./is-thunk":41,"./is-vhook":42,"./is-vnode":43,"./is-widget":45,"./version":46}],48:[function(require,module,exports){ var version = require("./version") VirtualPatch.NONE = 0 VirtualPatch.VTEXT = 1 VirtualPatch.VNODE = 2 VirtualPatch.WIDGET = 3 VirtualPatch.PROPS = 4 VirtualPatch.ORDER = 5 VirtualPatch.INSERT = 6 VirtualPatch.REMOVE = 7 VirtualPatch.THUNK = 8 module.exports = VirtualPatch function VirtualPatch(type, vNode, patch) { this.type = Number(type) this.vNode = vNode this.patch = patch } VirtualPatch.prototype.version = version VirtualPatch.prototype.type = "VirtualPatch" },{"./version":46}],49:[function(require,module,exports){ var version = require("./version") module.exports = VirtualText function VirtualText(text) { this.text = String(text) } VirtualText.prototype.version = version VirtualText.prototype.type = "VirtualText" },{"./version":46}],50:[function(require,module,exports){ var isObject = require("is-object") var isHook = require("../vnode/is-vhook") module.exports = diffProps function diffProps(a, b) { var diff for (var aKey in a) { if (!(aKey in b)) { diff = diff || {} diff[aKey] = undefined } var aValue = a[aKey] var bValue = b[aKey] if (aValue === bValue) { continue } else if (isObject(aValue) && isObject(bValue)) { if (getPrototype(bValue) !== getPrototype(aValue)) { diff = diff || {} diff[aKey] = bValue } else if (isHook(bValue)) { diff = diff || {} diff[aKey] = bValue } else { var objectDiff = diffProps(aValue, bValue) if (objectDiff) { diff = diff || {} diff[aKey] = objectDiff } } } else { diff = diff || {} diff[aKey] = bValue } } for (var bKey in b) { if (!(bKey in a)) { diff = diff || {} diff[bKey] = b[bKey] } } return diff } function getPrototype(value) { if (Object.getPrototypeOf) { return Object.getPrototypeOf(value) } else if (value.__proto__) { return value.__proto__ } else if (value.constructor) { return value.constructor.prototype } } },{"../vnode/is-vhook":42,"is-object":25}],51:[function(require,module,exports){ var isArray = require("x-is-array") var VPatch = require("../vnode/vpatch") var isVNode = require("../vnode/is-vnode") var isVText = require("../vnode/is-vtext") var isWidget = require("../vnode/is-widget") var isThunk = require("../vnode/is-thunk") var handleThunk = require("../vnode/handle-thunk") var diffProps = require("./diff-props") module.exports = diff function diff(a, b) { var patch = { a: a } walk(a, b, patch, 0) return patch } function walk(a, b, patch, index) { if (a === b) { return } var apply = patch[index] var applyClear = false if (isThunk(a) || isThunk(b)) { thunks(a, b, patch, index) } else if (b == null) { // If a is a widget we will add a remove patch for it // Otherwise any child widgets/hooks must be destroyed. // This prevents adding two remove patches for a widget. if (!isWidget(a)) { clearState(a, patch, index) apply = patch[index] } apply = appendPatch(apply, new VPatch(VPatch.REMOVE, a, b)) } else if (isVNode(b)) { if (isVNode(a)) { if (a.tagName === b.tagName && a.namespace === b.namespace && a.key === b.key) { var propsPatch = diffProps(a.properties, b.properties) if (propsPatch) { apply = appendPatch(apply, new VPatch(VPatch.PROPS, a, propsPatch)) } apply = diffChildren(a, b, patch, apply, index) } else { apply = appendPatch(apply, new VPatch(VPatch.VNODE, a, b)) applyClear = true } } else { apply = appendPatch(apply, new VPatch(VPatch.VNODE, a, b)) applyClear = true } } else if (isVText(b)) { if (!isVText(a)) { apply = appendPatch(apply, new VPatch(VPatch.VTEXT, a, b)) applyClear = true } else if (a.text !== b.text) { apply = appendPatch(apply, new VPatch(VPatch.VTEXT, a, b)) } } else if (isWidget(b)) { if (!isWidget(a)) { applyClear = true } apply = appendPatch(apply, new VPatch(VPatch.WIDGET, a, b)) } if (apply) { patch[index] = apply } if (applyClear) { clearState(a, patch, index) } } function diffChildren(a, b, patch, apply, index) { var aChildren = a.children var orderedSet = reorder(aChildren, b.children) var bChildren = orderedSet.children var aLen = aChildren.length var bLen = bChildren.length var len = aLen > bLen ? aLen : bLen for (var i = 0; i < len; i++) { var leftNode = aChildren[i] var rightNode = bChildren[i] index += 1 if (!leftNode) { if (rightNode) { // Excess nodes in b need to be added apply = appendPatch(apply, new VPatch(VPatch.INSERT, null, rightNode)) } } else { walk(leftNode, rightNode, patch, index) } if (isVNode(leftNode) && leftNode.count) { index += leftNode.count } } if (orderedSet.moves) { // Reorder nodes last apply = appendPatch(apply, new VPatch( VPatch.ORDER, a, orderedSet.moves )) } return apply } function clearState(vNode, patch, index) { // TODO: Make this a single walk, not two unhook(vNode, patch, index) destroyWidgets(vNode, patch, index) } // Patch records for all destroyed widgets must be added because we need // a DOM node reference for the destroy function function destroyWidgets(vNode, patch, index) { if (isWidget(vNode)) { if (typeof vNode.destroy === "function") { patch[index] = appendPatch( patch[index], new VPatch(VPatch.REMOVE, vNode, null) ) } } else if (isVNode(vNode) && (vNode.hasWidgets || vNode.hasThunks)) { var children = vNode.children var len = children.length for (var i = 0; i < len; i++) { var child = children[i] index += 1 destroyWidgets(child, patch, index) if (isVNode(child) && child.count) { index += child.count } } } else if (isThunk(vNode)) { thunks(vNode, null, patch, index) } } // Create a sub-patch for thunks function thunks(a, b, patch, index) { var nodes = handleThunk(a, b) var thunkPatch = diff(nodes.a, nodes.b) if (hasPatches(thunkPatch)) { patch[index] = new VPatch(VPatch.THUNK, null, thunkPatch) } } function hasPatches(patch) { for (var index in patch) { if (index !== "a") { return true } } return false } // Execute hooks when two nodes are identical function unhook(vNode, patch, index) { if (isVNode(vNode)) { if (vNode.hooks) { patch[index] = appendPatch( patch[index], new VPatch( VPatch.PROPS, vNode, undefinedKeys(vNode.hooks) ) ) } if (vNode.descendantHooks || vNode.hasThunks) { var children = vNode.children var len = children.length for (var i = 0; i < len; i++) { var child = children[i] index += 1 unhook(child, patch, index) if (isVNode(child) && child.count) { index += child.count } } } } else if (isThunk(vNode)) { thunks(vNode, null, patch, index) } } function undefinedKeys(obj) { var result = {} for (var key in obj) { result[key] = undefined } return result } // List diff, naive left to right reordering function reorder(aChildren, bChildren) { // O(M) time, O(M) memory var bChildIndex = keyIndex(bChildren) var bKeys = bChildIndex.keys var bFree = bChildIndex.free if (bFree.length === bChildren.length) { return { children: bChildren, moves: null } } // O(N) time, O(N) memory var aChildIndex = keyIndex(aChildren) var aKeys = aChildIndex.keys var aFree = aChildIndex.free if (aFree.length === aChildren.length) { return { children: bChildren, moves: null } } // O(MAX(N, M)) memory var newChildren = [] var freeIndex = 0 var freeCount = bFree.length var deletedItems = 0 // Iterate through a and match a node in b // O(N) time, for (var i = 0 ; i < aChildren.length; i++) { var aItem = aChildren[i] var itemIndex if (aItem.key) { if (bKeys.hasOwnProperty(aItem.key)) { // Match up the old keys itemIndex = bKeys[aItem.key] newChildren.push(bChildren[itemIndex]) } else { // Remove old keyed items itemIndex = i - deletedItems++ newChildren.push(null) } } else { // Match the item in a with the next free item in b if (freeIndex < freeCount) { itemIndex = bFree[freeIndex++] newChildren.push(bChildren[itemIndex]) } else { // There are no free items in b to match with // the free items in a, so the extra free nodes // are deleted. itemIndex = i - deletedItems++ newChildren.push(null) } } } var lastFreeIndex = freeIndex >= bFree.length ? bChildren.length : bFree[freeIndex] // Iterate through b and append any new keys // O(M) time for (var j = 0; j < bChildren.length; j++) { var newItem = bChildren[j] if (newItem.key) { if (!aKeys.hasOwnProperty(newItem.key)) { // Add any new keyed items // We are adding new items to the end and then sorting them // in place. In future we should insert new items in place. newChildren.push(newItem) } } else if (j >= lastFreeIndex) { // Add any leftover non-keyed items newChildren.push(newItem) } } var simulate = newChildren.slice() var simulateIndex = 0 var removes = [] var inserts = [] var simulateItem for (var k = 0; k < bChildren.length;) { var wantedItem = bChildren[k] simulateItem = simulate[simulateIndex] // remove items while (simulateItem === null && simulate.length) { removes.push(remove(simulate, simulateIndex, null)) simulateItem = simulate[simulateIndex] } if (!simulateItem || simulateItem.key !== wantedItem.key) { // if we need a key in this position... if (wantedItem.key) { if (simulateItem && simulateItem.key) { // if an insert doesn't put this key in place, it needs to move if (bKeys[simulateItem.key] !== k + 1) { removes.push(remove(simulate, simulateIndex, simulateItem.key)) simulateItem = simulate[simulateIndex] // if the remove didn't put the wanted item in place, we need to insert it if (!simulateItem || simulateItem.key !== wantedItem.key) { inserts.push({key: wantedItem.key, to: k}) } // items are matching, so skip ahead else { simulateIndex++ } } else { inserts.push({key: wantedItem.key, to: k}) } } else { inserts.push({key: wantedItem.key, to: k}) } k++ } // a key in simulate has no matching wanted key, remove it else if (simulateItem && simulateItem.key) { removes.push(remove(simulate, simulateIndex, simulateItem.key)) } } else { simulateIndex++ k++ } } // remove all the remaining nodes from simulate while(simulateIndex < simulate.length) { simulateItem = simulate[simulateIndex] removes.push(remove(simulate, simulateIndex, simulateItem && simulateItem.key)) } // If the only moves we have are deletes then we can just // let the delete patch remove these items. if (removes.length === deletedItems && !inserts.length) { return { children: newChildren, moves: null } } return { children: newChildren, moves: { removes: removes, inserts: inserts } } } function remove(arr, index, key) { arr.splice(index, 1) return { from: index, key: key } } function keyIndex(children) { var keys = {} var free = [] var length = children.length for (var i = 0; i < length; i++) { var child = children[i] if (child.key) { keys[child.key] = i } else { free.push(i) } } return { keys: keys, // A hash of key name to index free: free // An array of unkeyed item indices } } function appendPatch(apply, patch) { if (apply) { if (isArray(apply)) { apply.push(patch) } else { apply = [apply, patch] } return apply } else { return patch } } },{"../vnode/handle-thunk":40,"../vnode/is-thunk":41,"../vnode/is-vnode":43,"../vnode/is-vtext":44,"../vnode/is-widget":45,"../vnode/vpatch":48,"./diff-props":50,"x-is-array":52}],52:[function(require,module,exports){ var nativeIsArray = Array.isArray var toString = Object.prototype.toString module.exports = nativeIsArray || isArray function isArray(obj) { return toString.call(obj) === "[object Array]" } },{}],53:[function(require,module,exports){ "use strict"; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var svg = require("virtual-dom/virtual-hyperscript/svg"); var _require = require("./render-dom"); var makeDOMDriver = _require.makeDOMDriver; var _require2 = require("./render-html"); var makeHTMLDriver = _require2.makeHTMLDriver; var mockDOMSource = require("./mock-dom-source"); var h = require("./virtual-hyperscript"); var hh = require("hyperscript-helpers")(h); var CycleDOM = _extends({ /** * A factory for the DOM driver function. Takes a `container` to define the * target on the existing DOM which this driver will operate on. The output * ("source") of this driver is a collection of Observables queried with: * `DOMSource.select(selector).events(eventType)` returns an Observable of * events of `eventType` happening on the element determined by `selector`. * Just `DOMSource.select(selector).observable` returns an Observable of the * DOM element matched by the given selector. Also, * `DOMSource.select(':root').observable` returns an Observable of DOM element * corresponding to the root (or container) of the app on the DOM. The * `events()` function also allows you to specify the `useCapture` parameter * of the event listener. That is, the full function signature is * `events(eventType, useCapture)` where `useCapture` is by default `false`. * * @param {(String|HTMLElement)} container the DOM selector for the element * (or the element itself) to contain the rendering of the VTrees. * @return {Function} the DOM driver function. The function expects an * Observable of VTree as input, and outputs the source object for this * driver, containing functions `select()` and `dispose()` that can be used * for debugging and testing. * @function makeDOMDriver */ makeDOMDriver: makeDOMDriver, /** * A factory for the HTML driver function. * * @return {Function} the HTML driver function. The function expects an * Observable of Virtual DOM elements as input, and outputs an Observable of * strings as the HTML renderization of the virtual DOM elements. * @function makeHTMLDriver */ makeHTMLDriver: makeHTMLDriver, /** * A shortcut to [virtual-hyperscript]( * https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript). * This is a helper for creating VTrees in Views. * @name h */ h: h }, hh, { /** * An adapter around virtual-hyperscript `h()` to allow JSX to be used easily * with Babel. Place the [Babel configuration comment]( * http://babeljs.io/docs/advanced/transformers/other/react/) `@jsx hJSX` at * the top of the ES6 file, make sure you import `hJSX` with * `import {hJSX} from '@cycle/dom'`, and then you can use JSX to create * VTrees. * @name hJSX */ hJSX: function hJSX(tag, attrs) { for (var _len = arguments.length, children = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { children[_key - 2] = arguments[_key]; } return h(tag, attrs, children); }, /** * A shortcut to the svg hyperscript function. * @name svg */ svg: svg, /** * A testing utility which aids in creating a queryable collection of * Observables. Call mockDOMSource giving it an object specifying selectors, * eventTypes and their Observables, and get as output an object following the * same format as the DOM Driver's source. Example: * * ```js * const userEvents = mockDOMSource({ * '.foo': { * 'click': Rx.Observable.just({target: {}}), * 'mouseover': Rx.Observable.just({target: {}}) * }, * '.bar': { * 'scroll': Rx.Observable.just({target: {}}) * } * }); * * // Usage * const click$ = userEvents.select('.foo').events('click'); * ``` * * @param {Object} mockedSelectors an object where keys are selector strings * and values are objects. Those nested objects have eventType strings as keys * and values are Observables you created. * @return {Object} fake DOM source object, containing a function `select()` * which can be used just like the DOM Driver's source. Call * `select(selector).events(eventType)` on the source object to get the * Observable you defined in the input of `mockDOMSource`. * @function mockDOMSource */ mockDOMSource: mockDOMSource }); module.exports = CycleDOM; /** * Shortcuts to * [hyperscript-helpers](https://github.com/ohanhi/hyperscript-helpers). * This is a helper for writing virtual-hyperscript. Create virtual DOM * elements with `div('.wrapper', [ h1('Header') ])` instead of * `h('div.wrapper', [ h('h1', 'Header') ])`. * @name hyperscript-helpers */ },{"./mock-dom-source":55,"./render-dom":56,"./render-html":57,"./virtual-hyperscript":59,"hyperscript-helpers":2,"virtual-dom/virtual-hyperscript/svg":39}],54:[function(require,module,exports){ (function (global){ "use strict"; var Rx = (typeof window !== "undefined" ? window['Rx'] : typeof global !== "undefined" ? global['Rx'] : null); var disposableCreate = Rx.Disposable.create; var CompositeDisposable = Rx.CompositeDisposable; var AnonymousObservable = Rx.AnonymousObservable; function createListener(_ref) { var element = _ref.element; var eventName = _ref.eventName; var handler = _ref.handler; var useCapture = _ref.useCapture; if (element.addEventListener) { element.addEventListener(eventName, handler, useCapture); return disposableCreate(function removeEventListener() { element.removeEventListener(eventName, handler, useCapture); }); } throw new Error("No listener found"); } function createEventListener(_ref2) { var element = _ref2.element; var eventName = _ref2.eventName; var handler = _ref2.handler; var useCapture = _ref2.useCapture; var disposables = new CompositeDisposable(); if (Array.isArray(element)) { for (var i = 0, len = element.length; i < len; i++) { disposables.add(createEventListener({ element: element[i], eventName: eventName, handler: handler, useCapture: useCapture })); } } else if (element) { disposables.add(createListener({ element: element, eventName: eventName, handler: handler, useCapture: useCapture })); } return disposables; } function fromEvent(element, eventName) { var useCapture = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; return new AnonymousObservable(function subscribe(observer) { return createEventListener({ element: element, eventName: eventName, handler: function handler() { observer.onNext(arguments[0]); }, useCapture: useCapture }); }).share(); } module.exports = fromEvent; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],55:[function(require,module,exports){ (function (global){ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _rx = (typeof window !== "undefined" ? window['Rx'] : typeof global !== "undefined" ? global['Rx'] : null); var _rx2 = _interopRequireDefault(_rx); var emptyStream = _rx2['default'].Observable.empty(); function getEventsStreamForSelector(mockedEventTypes) { return function getEventsStream(eventType) { for (var key in mockedEventTypes) { if (mockedEventTypes.hasOwnProperty(key) && key === eventType) { return mockedEventTypes[key]; } } return emptyStream; }; } function mockDOMSource() { var mockedSelectors = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; return { select: function select(selector) { for (var key in mockedSelectors) { if (mockedSelectors.hasOwnProperty(key) && key === selector) { return { observable: emptyStream, events: getEventsStreamForSelector(mockedSelectors[key]) }; } } return { observable: emptyStream, events: function events() { return emptyStream; } }; } }; } exports['default'] = mockDOMSource; module.exports = exports['default']; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],56:[function(require,module,exports){ (function (global){ "use strict"; var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; })(); var Rx = (typeof window !== "undefined" ? window['Rx'] : typeof global !== "undefined" ? global['Rx'] : null); var fromEvent = require("./fromevent"); var VDOM = { h: require("./virtual-hyperscript"), diff: require("virtual-dom/diff"), patch: require("virtual-dom/patch"), parse: typeof window !== "undefined" ? require("vdom-parser") : function () {} }; var _require = require("./transposition"); var transposeVTree = _require.transposeVTree; var matchesSelector = undefined; // Try-catch to prevent unnecessary import of DOM-specifics in Node.js env: try { matchesSelector = require("matches-selector"); } catch (err) { matchesSelector = function () {}; } function isElement(obj) { return typeof HTMLElement === "object" ? obj instanceof HTMLElement || obj instanceof DocumentFragment : //DOM2 obj && typeof obj === "object" && obj !== null && (obj.nodeType === 1 || obj.nodeType === 11) && typeof obj.nodeName === "string"; } function wrapTopLevelVTree(vtree, rootElem) { var _vtree$properties$id = vtree.properties.id; var vtreeId = _vtree$properties$id === undefined ? "" : _vtree$properties$id; var _vtree$properties$className = vtree.properties.className; var vtreeClass = _vtree$properties$className === undefined ? "" : _vtree$properties$className; var sameId = vtreeId === rootElem.id; var sameClass = vtreeClass === rootElem.className; var sameTagName = vtree.tagName.toUpperCase() === rootElem.tagName; if (sameId && sameClass && sameTagName) { return vtree; } var attrs = {}; if (rootElem.id) { attrs.id = rootElem.id; } if (rootElem.className) { attrs.className = rootElem.className; } return VDOM.h(rootElem.tagName, attrs, [vtree]); } function makeDiffAndPatchToElement$(rootElem) { return function diffAndPatchToElement$(_ref) { var _ref2 = _slicedToArray(_ref, 2); var oldVTree = _ref2[0]; var newVTree = _ref2[1]; if (typeof newVTree === "undefined") { return Rx.Observable.empty(); } var prevVTree = wrapTopLevelVTree(oldVTree, rootElem); var nextVTree = wrapTopLevelVTree(newVTree, rootElem); /* eslint-disable */ rootElem = VDOM.patch(rootElem, VDOM.diff(prevVTree, nextVTree)); /* eslint-enable */ return Rx.Observable.just(rootElem); }; } function renderRawRootElem$(vtree$, domContainer) { var diffAndPatchToElement$ = makeDiffAndPatchToElement$(domContainer); return vtree$.flatMapLatest(transposeVTree).startWith(VDOM.parse(domContainer)).pairwise().flatMap(diffAndPatchToElement$); } function isolateSource(source, scope) { return source.select(".cycle-scope-" + scope); } function isolateSink(sink, scope) { return sink.map(function (vtree) { var c = (vtree.properties.className + " cycle-scope-" + scope).trim(); vtree.properties.className = c; return vtree; }); } function makeIsStrictlyInRootScope(rootList, namespace) { var classIsForeign = function classIsForeign(c) { var matched = c.match(/cycle-scope-(\S+)/); return matched && namespace.indexOf("." + c) === -1; }; return function isStrictlyInRootScope(leaf) { for (var el = leaf.parentElement; el !== null; el = el.parentElement) { if (rootList.indexOf(el) >= 0) { return true; } var classList = el.classList || el.className.split(" "); if (Array.prototype.some.call(classList, classIsForeign)) { return false; } } return true; }; } function makeEventsSelector(element$) { return function events(eventName) { var useCapture = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; if (typeof eventName !== "string") { throw new Error("DOM driver's events() expects argument to be a " + "string representing the event type to listen for."); } return element$.flatMapLatest(function (elements) { if (elements.length === 0) { return Rx.Observable.empty(); } return fromEvent(elements, eventName, useCapture); }).share(); }; } function makeElementSelector(rootEl$) { return function select(selector) { if (typeof selector !== "string") { throw new Error("DOM driver's select() expects the argument to be a " + "string as a CSS selector"); } var namespace = this.namespace; var scopedSelector = (namespace.join(" ") + " " + selector).trim(); var element$ = selector.trim() === ":root" ? rootEl$ : rootEl$.map(function (x) { var array = Array.isArray(x) ? x : [x]; return array.map(function (element) { if (matchesSelector(element, scopedSelector)) { return [element]; } else { var nodeList = element.querySelectorAll(scopedSelector); return Array.prototype.slice.call(nodeList); } }).reduce(function (prev, curr) { return prev.concat(curr); }, []).filter(makeIsStrictlyInRootScope(array, namespace)); }); return { observable: element$, namespace: namespace.concat(selector), select: makeElementSelector(element$), events: makeEventsSelector(element$), isolateSource: isolateSource, isolateSink: isolateSink }; }; } function validateDOMSink(vtree$) { if (!vtree$ || typeof vtree$.subscribe !== "function") { throw new Error("The DOM driver function expects as input an " + "Observable of virtual DOM elements"); } } function makeDOMDriver(container) { // Find and prepare the container var domContainer = typeof container === "string" ? document.querySelector(container) : container; // Check pre-conditions if (typeof container === "string" && domContainer === null) { throw new Error("Cannot render into unknown element `" + container + "`"); } else if (!isElement(domContainer)) { throw new Error("Given container is not a DOM element neither a selector " + "string."); } return function domDriver(vtree$) { validateDOMSink(vtree$); var rootElem$ = renderRawRootElem$(vtree$, domContainer).startWith(domContainer).replay(null, 1); var disposable = rootElem$.connect(); return { namespace: [], select: makeElementSelector(rootElem$), dispose: disposable.dispose.bind(disposable), isolateSource: isolateSource, isolateSink: isolateSink }; }; } module.exports = { isElement: isElement, wrapTopLevelVTree: wrapTopLevelVTree, makeDiffAndPatchToElement$: makeDiffAndPatchToElement$, renderRawRootElem$: renderRawRootElem$, validateDOMSink: validateDOMSink, makeDOMDriver: makeDOMDriver }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./fromevent":54,"./transposition":58,"./virtual-hyperscript":59,"matches-selector":3,"vdom-parser":4,"virtual-dom/diff":19,"virtual-dom/patch":26}],57:[function(require,module,exports){ (function (global){ "use strict"; var Rx = (typeof window !== "undefined" ? window['Rx'] : typeof global !== "undefined" ? global['Rx'] : null); var toHTML = require("vdom-to-html"); var _require = require("./transposition"); var transposeVTree = _require.transposeVTree; function makeBogusSelect() { return function select() { return { observable: Rx.Observable.empty(), events: function events() { return Rx.Observable.empty(); } }; }; } function makeHTMLDriver() { return function htmlDriver(vtree$) { var output$ = vtree$.flatMapLatest(transposeVTree).last().map(toHTML); output$.select = makeBogusSelect(); return output$; }; } module.exports = { makeBogusSelect: makeBogusSelect, makeHTMLDriver: makeHTMLDriver }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./transposition":58,"vdom-to-html":8}],58:[function(require,module,exports){ (function (global){ "use strict"; var Rx = (typeof window !== "undefined" ? window['Rx'] : typeof global !== "undefined" ? global['Rx'] : null); var VirtualNode = require("virtual-dom/vnode/vnode"); /** * Converts a tree of VirtualNode|Observable<VirtualNode> into * Observable<VirtualNode>. */ function transposeVTree(vtree) { if (typeof vtree.subscribe === "function") { return vtree.flatMap(transposeVTree); } else if (vtree.type === "VirtualText") { return Rx.Observable.just(vtree); } else if (vtree.type === "VirtualNode" && Array.isArray(vtree.children) && vtree.children.length > 0) { return Rx.Observable.combineLatest(vtree.children.map(transposeVTree), function () { for (var _len = arguments.length, arr = Array(_len), _key = 0; _key < _len; _key++) { arr[_key] = arguments[_key]; } return new VirtualNode(vtree.tagName, vtree.properties, arr, vtree.key, vtree.namespace); }); } else if (vtree.type === "VirtualNode" || vtree.type === "Widget" || vtree.type === "Thunk") { return Rx.Observable.just(vtree); } else { throw new Error("Unhandled case in transposeVTree()"); } } module.exports = { transposeVTree: transposeVTree }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"virtual-dom/vnode/vnode":47}],59:[function(require,module,exports){ /* eslint-disable */ 'use strict'; var isArray = require('x-is-array'); var VNode = require('virtual-dom/vnode/vnode.js'); var VText = require('virtual-dom/vnode/vtext.js'); var isVNode = require('virtual-dom/vnode/is-vnode'); var isVText = require('virtual-dom/vnode/is-vtext'); var isWidget = require('virtual-dom/vnode/is-widget'); var isHook = require('virtual-dom/vnode/is-vhook'); var isVThunk = require('virtual-dom/vnode/is-thunk'); var parseTag = require('virtual-dom/virtual-hyperscript/parse-tag.js'); var softSetHook = require('virtual-dom/virtual-hyperscript/hooks/soft-set-hook.js'); var evHook = require('virtual-dom/virtual-hyperscript/hooks/ev-hook.js'); module.exports = h; function h(tagName, properties, children) { var childNodes = []; var tag, props, key, namespace; if (!children && isChildren(properties)) { children = properties; props = {}; } props = props || properties || {}; tag = parseTag(tagName, props); // support keys if (props.hasOwnProperty('key')) { key = props.key; props.key = undefined; } // support namespace if (props.hasOwnProperty('namespace')) { namespace = props.namespace; props.namespace = undefined; } // fix cursor bug if (tag === 'INPUT' && !namespace && props.hasOwnProperty('value') && props.value !== undefined && !isHook(props.value)) { props.value = softSetHook(props.value); } transformProperties(props); if (children !== undefined && children !== null) { addChild(children, childNodes, tag, props); } return new VNode(tag, props, childNodes, key, namespace); } function addChild(c, childNodes, tag, props) { if (typeof c === 'string') { childNodes.push(new VText(c)); } else if (typeof c === 'number') { childNodes.push(new VText(String(c))); } else if (isChild(c)) { childNodes.push(c); } else if (isArray(c)) { for (var i = 0; i < c.length; i++) { addChild(c[i], childNodes, tag, props); } } else if (c === null || c === undefined) { return; } else { throw UnexpectedVirtualElement({ foreignObject: c, parentVnode: { tagName: tag, properties: props } }); } } function transformProperties(props) { for (var propName in props) { if (props.hasOwnProperty(propName)) { var value = props[propName]; if (isHook(value)) { continue; } if (propName.substr(0, 3) === 'ev-') { // add ev-foo support props[propName] = evHook(value); } } } } // START Cycle.js-specific code >>>>>>>> function isObservable(x) { return x && typeof x.subscribe === 'function'; } function isChild(x) { return isVNode(x) || isVText(x) || isObservable(x) || isWidget(x) || isVThunk(x); } // END Cycle.js-specific code <<<<<<<<<< function isChildren(x) { return typeof x === 'string' || isArray(x) || isChild(x); } function UnexpectedVirtualElement(data) { var err = new Error(); err.type = 'virtual-hyperscript.unexpected.virtual-element'; err.message = 'Unexpected virtual child passed to h().\n' + 'Expected a VNode / Vthunk / VWidget / string but:\n' + 'got:\n' + errorString(data.foreignObject) + '.\n' + 'The parent vnode is:\n' + errorString(data.parentVnode); '\n' + 'Suggested fix: change your `h(..., [ ... ])` callsite.'; err.foreignObject = data.foreignObject; err.parentVnode = data.parentVnode; return err; } function errorString(obj) { try { return JSON.stringify(obj, null, ' '); } catch (e) { return String(obj); } } /* eslint-enable */ },{"virtual-dom/virtual-hyperscript/hooks/ev-hook.js":34,"virtual-dom/virtual-hyperscript/hooks/soft-set-hook.js":35,"virtual-dom/virtual-hyperscript/parse-tag.js":37,"virtual-dom/vnode/is-thunk":41,"virtual-dom/vnode/is-vhook":42,"virtual-dom/vnode/is-vnode":43,"virtual-dom/vnode/is-vtext":44,"virtual-dom/vnode/is-widget":45,"virtual-dom/vnode/vnode.js":47,"virtual-dom/vnode/vtext.js":49,"x-is-array":52}]},{},[53])(53) });
him2him2/cdnjs
ajax/libs/cyclejs-dom/8.0.0-rc3/cycle-dom.js
JavaScript
mit
132,474
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // Just the subset of functionality from the MscorlibBinder necessary for exceptions. #include "common.h" #include "frameworkexceptionloader.h" struct ExceptionLocationData { LPCUTF8 Namespace; LPCUTF8 Name; LPCUTF8 AssemblySimpleName; LPCUTF8 PublicKeyToken; }; static const ExceptionLocationData g_ExceptionLocationData[] = { #define DEFINE_EXCEPTION(ns, reKind, bHRformessage, ...) #define DEFINE_EXCEPTION_HR_WINRT_ONLY(ns, reKind, ...) #define DEFINE_EXCEPTION_IN_OTHER_FX_ASSEMBLY(ns, reKind, assemblySimpleName, publicKeyToken, bHRformessage, ...) { ns, PTR_CSTR((TADDR) # reKind), assemblySimpleName, publicKeyToken }, #include "rexcep.h" {NULL, NULL, NULL, NULL} // On Silverlight, this table may be empty. This dummy entry allows us to compile. }; // Note that some assemblies, like System.Runtime.WindowsRuntime, might not be installed on pre-Windows 8 machines. // This may return null. MethodTable* FrameworkExceptionLoader::GetException(RuntimeExceptionKind kind) { CONTRACTL { THROWS; GC_TRIGGERS; PRECONDITION(kind > kLastExceptionInMscorlib); PRECONDITION(kind - (kLastExceptionInMscorlib + 1) < COUNTOF(g_ExceptionLocationData) - 1); } CONTRACTL_END; // This is for loading rarely-used exception objects in arbitrary appdomains. // The loader should do caching - let's not create a multi-appdomain cache of these exception types here. // Note that some assemblies, like System.Runtime.WindowsRuntime, might not be installed on pre-Windows 8 machines. int index = kind - (kLastExceptionInMscorlib + 1); ExceptionLocationData exData = g_ExceptionLocationData[index]; _ASSERTE(exData.Name != NULL && exData.AssemblySimpleName != NULL && exData.PublicKeyToken != NULL); // Was the exception defined in mscorlib instead? StackSString assemblyQualifiedName; _ASSERTE(exData.Namespace != NULL); // If we need to support stuff in a global namespace, fix this. assemblyQualifiedName.SetUTF8(exData.Namespace); assemblyQualifiedName.AppendUTF8("."); assemblyQualifiedName.AppendUTF8(exData.Name); assemblyQualifiedName.AppendUTF8(", "); assemblyQualifiedName.AppendUTF8(exData.AssemblySimpleName); assemblyQualifiedName.AppendUTF8(", PublicKeyToken="); assemblyQualifiedName.AppendUTF8(exData.PublicKeyToken); assemblyQualifiedName.AppendUTF8(", Version="); assemblyQualifiedName.AppendUTF8(VER_ASSEMBLYVERSION_STR); assemblyQualifiedName.AppendUTF8(", Culture=neutral"); MethodTable* pMT = NULL; // Loading will either succeed or throw a FileLoadException. Catch & swallow that exception. EX_TRY { pMT = TypeName::GetTypeFromAsmQualifiedName(assemblyQualifiedName.GetUnicode(), FALSE).GetMethodTable(); // Since this type is from another assembly, we must ensure that assembly has been sufficiently loaded. pMT->EnsureActive(); } EX_CATCH { Exception *ex = GET_EXCEPTION(); // Let non-file-not-found execeptions propagate if (EEFileLoadException::GetFileLoadKind(ex->GetHR()) != kFileNotFoundException) EX_RETHROW; // Return COMException if we can't load the assembly we expect. pMT = MscorlibBinder::GetException(kCOMException); } EX_END_CATCH(RethrowTerminalExceptions); return pMT; } void FrameworkExceptionLoader::GetExceptionName(RuntimeExceptionKind kind, SString & exceptionName) { CONTRACTL { THROWS; GC_NOTRIGGER; MODE_ANY; PRECONDITION(kind > kLastExceptionInMscorlib); PRECONDITION(kind - (kLastExceptionInMscorlib + 1) < COUNTOF(g_ExceptionLocationData) - 1); } CONTRACTL_END; exceptionName.SetUTF8(g_ExceptionLocationData[kind].Namespace); exceptionName.AppendUTF8("."); exceptionName.AppendUTF8(g_ExceptionLocationData[kind].Name); }
matthubin/coreclr
src/vm/frameworkexceptionloader.cpp
C++
mit
4,056
<?php namespace Illuminate\Database\Console\Seeds; use Illuminate\Foundation\Composer; use Illuminate\Filesystem\Filesystem; use Illuminate\Console\GeneratorCommand; class SeederMakeCommand extends GeneratorCommand { /** * The console command name. * * @var string */ protected $name = 'make:seeder'; /** * The console command description. * * @var string */ protected $description = 'Create a new seeder class'; /** * The type of class being generated. * * @var string */ protected $type = 'Seeder'; /** * The Composer instance. * * @var \Illuminate\Foundation\Composer */ protected $composer; /** * Create a new command instance. * * @param \Illuminate\Filesystem\Filesystem $files * @param \Illuminate\Foundation\Composer $composer * @return void */ public function __construct(Filesystem $files, Composer $composer) { parent::__construct($files); $this->composer = $composer; } /** * Execute the console command. * * @return void */ public function fire() { parent::fire(); $this->composer->dumpAutoloads(); } /** * Get the stub file for the generator. * * @return string */ protected function getStub() { return __DIR__.'/stubs/seeder.stub'; } /** * Get the destination class path. * * @param string $name * @return string */ protected function getPath($name) { return $this->laravel->databasePath().'/seeds/'.$name.'.php'; } /** * Parse the name and format according to the root namespace. * * @param string $name * @return string */ protected function parseName($name) { return $name; } }
kuzoncby/CRUD-Laravel-5-Message-Board
vendor/laravel/framework/src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php
PHP
mit
1,885
/* TimelineJS - ver. 2.30.0 - 2014-02-20 Copyright (c) 2012-2013 Northwestern University a project of the Northwestern University Knight Lab, originally created by Zach Wise https://github.com/NUKnightLab/TimelineJS This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* Czech LANGUAGE ================================================== */typeof VMM!="undefined"&&(VMM.Language={lang:"cz",api:{wikipedia:"cs"},date:{month:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"],month_abbr:["Led","Úno","Bře","Dub","Kvě","Čen","Čec","Srp","Zář","Říj","Lis","Pro"],day:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],day_abbr:["Ne","Po","Út","St","Čt","Pá","So"]},dateformats:{year:"yyyy",month_short:"mmm",month:"mmmm yyyy",full_short:"d. mmm ",full:"d. mmmm yyyy",time_short:"HH:MM:SS",time_no_seconds_short:"HH:MM",time_no_seconds_small_date:"HH:MM'<br/><small>'d. mmmm yyyy'</small>'",full_long:"dddd d. mmm yyyy 'v' HH:MM",full_long_small_date:"HH:MM'<br/><small>dddd d. mmm yyyy'</small>'"},messages:{loading_timeline:"Načítám časovou osu... ",return_to_title:"Zpět na začátek",expand_timeline:"Rozbalit časovou osu",contract_timeline:"Sbalit časovou osu",wikipedia:"Zdroj: otevřená encyklopedie Wikipedia",loading_content:"Nahrávám obsah",loading:"Nahrávám"}});
kitcambridge/cdnjs
ajax/libs/timelinejs/2.30.0/js/locale/cz.js
JavaScript
mit
1,551
// (c) ammap.com | SVG (in JSON format) map of Estonia - Low // areas: {id:"EE-84"},{id:"EE-65"},{id:"EE-44"},{id:"EE-78"},{id:"EE-51"},{id:"EE-86"},{id:"EE-67"},{id:"EE-59"},{id:"EE-39"},{id:"EE-57"},{id:"EE-82"},{id:"EE-49"},{id:"EE-70"},{id:"EE-74"},{id:"EE-37"} AmCharts.maps.estoniaLow={ "svg": { "defs": { "amcharts:ammap": { "projection":"mercator", "leftLongitude":"21.770501", "topLatitude":"59.668926", "rightLongitude":"28.208948", "bottomLatitude":"57.509646" } }, "g":{ "path":[ { "id":"EE-84", "title":"Viljandimaa", "d":"M381.36,580.29L381.71,584.57L380.3,587.25L382.45,587.63L382.99,591.22L381.98,592.97L380.36,593L378.51,594.53L379.28,595.95L386.22,597.08L391.39,595.99L398.09,598.84L398.89,601.08L397.97,602.55L399.13,603.19L399.11,605.02L400.08,604.8L401.87,606.51L404.14,604.84L404.58,611.14L409.79,615.62L410.92,614.71L416.03,620.19L416.03,620.19L417.42,622.22L417.52,625.02L420.1,631.88L418.47,631.61L417.14,632.66L415.85,635.88L406.76,645.57L409,682.87L409,682.87L404.69,682.93L403.94,684.42L400.26,685.35L400.2,686.42L398.76,687.32L395.08,687.16L394.66,683.79L392.92,680.61L389.95,678.66L387.82,678.67L389.25,681.94L386.12,683.47L386.23,685.19L386.77,685.92L387.9,683.73L388.42,687.16L386.86,687.12L387.1,688.25L385.11,689.01L385.2,690.17L383.72,689.9L383.26,691.48L382.53,691L380.94,692.59L377.79,692.37L378.79,693.63L372.99,700.61L371.6,699.05L365.87,699.05L365.09,700.06L367.27,705.33L363.79,712.46L363.79,712.46L362.34,709.78L360.4,711.76L359.75,709.83L356.79,710.92L355.98,710.39L356.69,708.35L353.33,709.14L349.43,705.78L351.5,704.12L350.22,702.38L346.21,699.66L341.94,699.45L339.18,694.36L334.93,690.06L332.32,693.52L336.24,699.05L335.89,705.74L334.34,706.48L331.87,705.87L329.01,701.74L330.57,701.31L329.51,700.38L328.57,700.9L327.95,697.68L328.86,695.62L327.91,696.1L326.8,693.25L327.47,690.69L326.32,689.63L324.9,690.15L325.24,691.41L317.37,691.12L317.02,693.13L314.87,693.18L311.51,697.76L311.51,697.76L310.46,696.48L309.97,692.72L308.54,691.94L309.51,688.63L313.35,686.48L312.42,685.13L312.67,683.45L316.57,683.5L317.54,684.74L318,683.56L319.03,683.57L319.43,684.76L320.04,681.73L317.2,679.59L317.25,678.01L318.53,678.23L319.08,677.2L318.36,674.53L319.11,673.81L319.85,675.06L320.48,678.66L321.71,677.47L320.94,674.36L322.61,673.75L322.95,671.92L321.59,671.92L321.65,670.91L323.43,669.78L326.11,670.3L328.24,668.2L330.02,670.57L330.04,669.22L331.43,668.43L331.47,664.93L330.11,661.15L332.97,659.53L332.15,655.2L323.94,653.85L321.59,648.6L320,647.63L316.85,649.13L316.29,646.8L315.6,647.58L310.99,645.95L305.38,647.2L304.55,643.46L306.03,633.65L305.75,628.66L307,629.31L308.74,626.98L308.21,618.07L310.06,617.01L310.46,614.4L314.02,613.9L314.9,611.95L318.81,611.28L321.22,608.45L322.39,609.6L323.78,608.54L323.74,605.51L325.34,604.46L324.98,603L330.55,601.84L329.18,600.79L328.61,595.28L327.28,595.61L327.59,593.28L330.67,591.68L330.67,591.68L331.53,593.1L335.64,593.64L336.69,594.84L340.14,593.82L341.02,595.64L342.71,595.79L345.06,594.5L350.64,595.7L351.92,594.7L351.45,593.6L353.87,593.59L356.3,590.88L357.69,592.97L358.91,592.06L357.95,591.13L359.63,589.82L362.95,590.51L365.02,588.2L368.35,587.74L369.79,584.32L375.13,583.9L380.08,581.8z" }, { "id":"EE-65", "title":"Põlvamaa", "d":"M461.4,683.34L464.6,682.28L464.4,680.59L466.04,678.87L464.54,678.03L464.74,677.11L466.16,677.36L464.33,674.8L464.77,672.3L468.32,673.16L471.97,670.86L473.06,673.07L472.33,675.32L473.51,674.13L474.56,674.88L474.87,673.82L477.66,672.19L479.55,672.08L480.66,673.5L480.54,672.21L484.33,669.17L484.95,664.53L487.46,660.61L488.26,660.34L489.26,661.88L489.43,664.42L490.82,662.33L492.57,662.8L493.29,661.7L495.2,662.1L495.41,664.6L497.94,663.83L498.82,662.55L499.54,663.99L501.15,662.42L501.59,657.83L504.2,658.77L505.4,661.09L509.75,660.01L510.27,657.02L511.38,657.13L513.24,659.56L520.01,659.62L520.33,660.7L523.73,661.09L522.95,664.93L530.4,666.49L530.95,665.63L534.28,667.88L536.67,667.34L537.81,670.09L547.38,671.27L547.38,671.27L554.12,683.43L557.45,687.29L554.92,695.53L556.12,703.67L559.57,705.81L559.09,701.63L562.88,704.1L563.4,706.81L561.65,709.82L562.28,712.1L559.73,713.14L562.22,716.85L562.16,718.44L565.33,719.14L565.1,720.95L563.39,721.7L564.34,722.68L566.72,721.72L570,723.95L572.11,722.99L574.31,723.34L574.86,724.79L574.05,725.61L574.46,729.72L572.39,731.84L572.66,733.41L572.01,733L570.79,734.76L569.33,734.44L567.48,735.53L564.38,732.59L562.16,734.58L556.44,733.53L549.21,734.97L549.21,734.97L544.98,735.29L539.31,733.75L534.79,734.01L532.93,734.53L530.55,737.7L530.21,736.34L529.17,736.72L528.19,735.33L526.64,735.19L526.25,733L523.17,732.87L524.83,727.32L525.95,727.71L528.84,724.66L529.06,723.26L526.27,721.97L526.59,720.06L525.51,720.01L525.11,723.38L522.06,721.51L519.93,722.02L517.21,720.33L517.36,719.56L514.66,720.12L514,718.17L512.2,718.76L510.27,714.39L508.48,714.59L507.85,712.78L505.17,715.5L503.78,714.5L502.3,716.35L505.28,721.86L502.07,721.22L502.04,720.47L497.17,720.42L496.8,719.56L496.28,720.33L494.63,719.35L494.26,715.67L487.37,719.8L487.37,718.19L486.4,718.17L483.75,718.98L482.25,718.4L479.08,720.1L477.7,717.71L475.67,717.71L473.99,719.12L473.45,717.6L471.46,717.48L469.3,715.62L466.87,717.32L464.51,717.42L464.03,716.57L461.18,717.53L458.98,715.71L459.26,714.76L457.05,714.91L456.94,713.09L456.05,712.87L456.05,712.87L457.94,707.14L456.14,704.42L458.24,701.29L458.38,698.34L457.39,697.93L457.81,695.08L456.62,695.62L456.34,693.09L458.61,689.49L459.93,683.82z" }, { "id":"EE-44", "title":"Ida-Virumaa", "d":"M474.77,430.98l12.47,9.79l4.96,2.03l9.65,0.67l16.3,-1.92l14.81,-0.6l14.9,3.71l0.76,0.99l4.92,1.42l13.75,-0.22l1.88,2.57l4.5,1.19l5.16,-1.47l5.14,0.22l1.93,-0.99l5.52,-4.69l4.67,-7.46l0.64,1.36l4.33,2.16l2.61,2.72l1.5,3.52l5.66,4.38l1.02,2.42l-0.06,3.66l-3.65,5.41l-3.77,8.11l-6.77,-0.04l-6.7,3.12l-2.64,0.33l-4.79,5.19l-2.01,11.09l-2.31,4.47l-5.54,6.56l0.42,3.06l-1.99,2.88l0.26,4.02l-1.58,1.84l-0.65,5.14l-2,0.9l-0.73,9.03l-27.25,26.82l0,0l-11.41,-4.23l-13.1,-1.76l-23.25,-0.11l-1.53,-0.62l-1.12,-2.58l-2.37,-1.67l-5.36,-0.82l-0.54,1.71l-7.33,1.3l-1.81,-4.62l0.54,-3.73l-1.4,-1.05l0.9,-2.17l-2.57,-1.82l-0.28,-1.6l0,0l2.42,-2.15l4.59,-0.81l1.82,-2.5l-0.19,-5.43l1.99,-1.82l-1.29,-1.49l0.96,-15.23l1.12,0.54l2.72,-3.25l3.51,-0.41l0.41,-1.35l1.29,1.89l1.98,-0.09l0.67,-5.15l1.1,-0.06l-0.45,-3.03l-1.81,-0.57l1.02,-2.07l-1.09,-2.48l-7.76,-4.07l0.68,-0.91l-0.65,-5.19l-8.08,4.47l-0.84,-4.97l-1.01,0.06l0.77,-4.25l-0.65,-0.85l2.15,-2.3l1.11,-4.27l0.91,0.22l0.46,-1.75l1.8,0.47l0.83,-1.69l-3.95,-2.21l-3.45,0.5l-1.1,-1.49l-1.29,1.15l-1.22,-0.87l5.02,-4.69l-2.39,-4.93l2.64,-1.23l1.26,1.66l2.16,0.37l-0.69,-10.32l-2.56,-5.15l0.01,-1.85l0,0L474.77,430.98z" }, { "id":"EE-78", "title":"Tartumaa", "d":"M535.5,580.58L549.8,639.15L543.57,650.48L543.81,664.44L547.38,671.27L547.38,671.27L537.81,670.09L536.67,667.34L534.28,667.88L530.95,665.63L530.4,666.49L522.95,664.93L523.73,661.09L520.33,660.7L520.01,659.62L513.24,659.56L511.38,657.13L510.27,657.02L509.75,660.01L505.4,661.09L504.2,658.77L501.59,657.83L501.15,662.42L499.54,663.99L498.82,662.55L497.94,663.83L495.41,664.6L495.2,662.1L493.29,661.7L492.57,662.8L490.82,662.33L489.43,664.42L489.26,661.88L488.26,660.34L487.46,660.61L484.95,664.53L484.33,669.17L480.54,672.21L480.66,673.5L479.55,672.08L477.66,672.19L474.87,673.82L474.56,674.88L473.51,674.13L472.33,675.32L473.06,673.07L471.97,670.86L468.32,673.16L464.77,672.3L464.33,674.8L466.16,677.36L464.74,677.11L464.54,678.03L466.04,678.87L464.4,680.59L464.6,682.28L461.4,683.34L461.4,683.34L461.17,682.34L459.38,682.59L459.36,680.16L456.26,679.05L456.22,676.95L455.16,676.02L448.99,675.91L448.04,677.6L446.26,677.81L443.77,679.73L442.76,678.98L441.62,679.52L440.7,674.88L439.64,675.48L437.29,674.31L433.59,681.53L429.4,680.67L428.12,684.85L416.55,684L416.1,682.8L414.02,683.36L413.43,684.63L412.86,683.09L410.86,683.79L409,682.87L409,682.87L406.76,645.57L415.85,635.88L417.14,632.66L418.47,631.61L420.1,631.88L417.52,625.02L417.42,622.22L416.03,620.19L416.03,620.19L415.94,618.61L416.89,618.28L417.86,615.29L419.86,617.38L421.46,616.2L423.16,617.23L431.39,611.07L433.86,610.32L434.68,608.67L438.17,609.98L438.58,612.66L440.22,613.61L439.68,612.48L440.77,609.49L442.27,608.31L445.77,608.16L448.61,609.7L449.33,608.76L448.23,608.07L449.4,607.04L453.69,606.55L451.62,608.71L454.16,609.96L455.7,608.45L460.06,612.19L463.98,610.01L463.09,609L463.21,607.04L465.46,603.82L464.81,602.53L469.68,607.22L472.23,605.86L472.41,604.22L473.95,605.22L475.59,603.97L477.73,604.6L478.86,603.17L480.95,602.88L480.53,601.35L482.95,601.19L484,590.86L490.49,592.88L493.42,595.61L494.1,594.73L495.37,595.62L495.78,594.1L497.65,596.04L497.75,597.52L499.96,598.02L500.11,595.77L498.66,592.84L499.35,591.48L498.75,590.35L497.33,590.69L497.21,589.49L501.18,588.51L502.82,586.54L504.4,587.4L505.35,585.25L504.75,583.85L534.09,574.49L534.09,574.49z" }, { "id":"EE-51", "title":"Järvamaa", "d":"M338.88,524.71L340.12,521.47L341.16,521.1L342.77,522.39L345.28,519.56L346.19,512.67L344.14,509.43L346.93,506.94L348.4,507.51L350.74,511.14L353.45,505.35L349.33,502.9L350.82,499.39L349.87,497.41L355.15,490.53L357.54,484.3L355.25,478.22L351.93,474.18L355.14,474.11L357.96,475.31L362.54,473.13L368.01,476.65L369.39,475.78L369.37,473.02L372.03,472.98L374,471.16L378.22,471.44L381.25,468.84L391.11,470.4L393.86,473.61L393.86,473.61L394.22,475.2L392.87,475.65L392.9,476.95L395.64,477.24L395.16,482.52L397.01,481.67L398.93,482.95L397.95,485.17L396.45,485.87L397.27,487.15L396.27,488.57L398.19,488.59L399.87,490.26L401.53,488.94L402.81,489.3L403.71,493.66L401.06,495.77L400.01,501.01L398.41,500.9L397.03,502.38L396.02,508.82L393.91,511.31L394.79,513.11L395.7,511.45L397.12,513.31L398.43,511.29L401.42,514.31L404.69,513.55L405.66,514.14L406.88,515.47L407.95,520.26L410.48,521.05L411,523.55L415.41,526.15L414.94,528.59L416.27,532.21L417.54,532.71L417.05,535.96L418.1,538.25L416.54,542.27L417.11,543.89L417.11,543.89L417.06,545.5L415.74,544.86L413.26,548.76L414.21,549.49L414.76,553.19L406.87,554.18L404.89,555.26L403.74,554.64L402.8,557.73L399.67,557.26L397.99,558.89L399.35,563.31L399.22,566.56L395.45,569.27L394.59,566.86L392.31,565.3L390.78,565.51L391.03,567.77L389.32,569.67L386.19,569.45L386.91,573.07L384.08,574.96L383.89,576.11L382.82,575.86L381.36,580.29L381.36,580.29L380.08,581.8L375.13,583.9L369.79,584.32L368.35,587.74L365.02,588.2L362.95,590.51L359.63,589.82L357.95,591.13L358.91,592.06L357.69,592.97L356.3,590.88L353.87,593.59L351.45,593.6L351.92,594.7L350.64,595.7L345.06,594.5L342.71,595.79L341.02,595.64L340.14,593.82L336.69,594.84L335.64,593.64L331.53,593.1L330.67,591.68L330.67,591.68L331.79,590.77L336.34,577.48L331.76,574.95L326.39,574.11L326.39,574.11L327.62,567.22L329.19,566.33L325.74,560.13L326.35,558.83L328.34,559.47L329.77,556.45L331.9,554.88L331.19,553.82L333.64,549L332.34,547.29L331.1,547.35L329.66,545.02L331.69,540.66L335.99,538.09L336.86,531.44L334.5,527.82z" }, { "id":"EE-86", "title":"Võrumaa", "d":"M456.05,712.87L456.94,713.09L457.05,714.91L459.26,714.76L458.98,715.71L461.18,717.53L464.03,716.57L464.51,717.42L466.87,717.32L469.3,715.62L471.46,717.48L473.45,717.6L473.99,719.12L475.67,717.71L477.7,717.71L479.08,720.1L482.25,718.4L483.75,718.98L486.4,718.17L487.37,718.19L487.37,719.8L494.26,715.67L494.63,719.35L496.28,720.33L496.8,719.56L497.17,720.42L502.04,720.47L502.07,721.22L505.28,721.86L502.3,716.35L503.78,714.5L505.17,715.5L507.85,712.78L508.48,714.59L510.27,714.39L512.2,718.76L514,718.17L514.66,720.12L517.36,719.56L517.21,720.33L519.93,722.02L522.06,721.51L525.11,723.38L525.51,720.01L526.59,720.06L526.27,721.97L529.06,723.26L528.84,724.66L525.95,727.71L524.83,727.32L523.17,732.87L526.25,733L526.64,735.19L528.19,735.33L529.17,736.72L530.21,736.34L530.55,737.7L532.93,734.53L534.79,734.01L539.31,733.75L544.98,735.29L549.21,734.97L549.21,734.97L550.2,735.37L549.76,736.82L549.01,736.77L549.84,738.09L548.03,739.49L548.13,742.02L544.31,742.82L545.97,745.11L545.53,746.89L547.42,748.45L546.01,749.53L547.59,749.64L547.51,751.22L549,752.46L547.32,753.38L546.96,756.79L545.62,756.31L544.56,757.27L544.08,754.11L541.59,756.88L539.84,755.56L538.2,756.91L538.07,758.6L536.57,758.62L532.75,764.55L533.8,766.46L533.48,768.18L535.31,769.95L534.35,772.82L535.84,773.74L533.42,776.27L530.83,776.67L528.02,780L530.59,790.43L523.9,786.95L522.25,785.03L520.11,785.31L518.93,784.25L515.92,784.66L508.97,782.98L505.32,780.19L501.59,779.36L500.65,778.69L501.34,776.6L500.13,775.28L496.75,775.21L495.16,773.88L494.25,775.36L492.2,775.79L491.54,774.57L492.44,772.68L490.1,770.36L488.44,770.31L484.38,773.38L483.85,777.42L481.57,779.17L478.48,779.32L477.74,780.83L476.94,780.77L476.01,783.09L474.2,782.81L475.54,780.53L472.16,778.51L471.67,781.64L469.7,781.96L468.56,781.15L468.46,782.01L466.31,782.19L465.89,783L466.71,783.65L464.11,784.02L460.6,788.6L460.57,791.97L458.28,790.68L457.92,786.81L455.85,788.6L455.37,791.51L449.75,789.35L446.87,780.37L446.87,780.37L448.53,777.54L444.97,777.22L445.38,776.43L446.63,776.94L449.52,771.6L444.2,767.14L450.16,759.47L449.72,757.2L448.66,757.09L448.68,755.32L446.94,756.4L446.91,754.59L444.92,751.82L445.26,750.63L447.45,750.42L449.16,749L448.05,745.8L449.31,745.38L449.36,743.3L447.42,742.37L443.89,744.04L443.67,742.05L441.65,739.99L442.98,737.8L441.44,733.37L443.61,731.33L441.98,728.87L439.8,728.76L437.4,727.12L439.42,726.37L439.99,724L441.7,722.45L441.38,719.19L439.82,717.9L440.88,715.73L443.12,716.73L445.31,715.5L448.2,715.99L448.31,714.21L449.5,713.21L450.87,714z" }, { "id":"EE-67", "title":"Pärnumaa", "d":"M212.46,677.33l1.91,0.56l-1.32,6.41l-1.59,2.74l-1.93,0.66l-1.69,-3.78l0.9,-5.78L212.46,677.33zM225.55,664.82l-1.4,3.02l-2.14,0.61l0.42,-1.74l1.03,0.25l2.7,-3.94L225.55,664.82zM224.81,578.72l5.23,4.5l4.5,-1.57l14.24,5.1l2.91,-3.02l4.12,-1.62l1.31,-1.64l0.91,-4.54l3.72,-2.14l1.74,-2.17l3.93,3.03l-1.59,1.59l0.44,1.61l2.71,-0.4l5.87,-3.21l2.42,-4.75l2.41,1.13l1.53,-0.6l4.17,2.76l2.44,-0.8l0.67,0.84l1.58,-0.4l1.47,-2.25l2.73,-1.73l5.25,4.26l-0.96,7.99l1.32,4.81l0.83,0.29l1.36,-0.64l0.73,-3.39l3.59,-4.92l1.34,0.29l1.62,-1.19l0.9,1.24l1.72,-0.46l1.83,-2.65l-0.52,-0.68l8.53,1.84l4.61,-1.13l0,0l5.36,0.84l4.59,2.54l-4.56,13.28l-1.12,0.91l0,0l-3.07,1.6l-0.31,2.33l1.33,-0.33l0.57,5.51l1.38,1.06l-5.57,1.16l0.36,1.45l-1.6,1.05l0.05,3.03l-1.4,1.05l-1.17,-1.14l-2.41,2.83l-3.91,0.67l-0.88,1.94l-3.56,0.51l-0.4,2.61l-1.85,1.05l0.53,8.91l-1.74,2.33l-1.25,-0.65l0.28,4.99l-1.48,9.81l0.83,3.74l5.61,-1.25l4.61,1.62l0.69,-0.78l0.56,2.33l3.14,-1.5l1.6,0.97l2.35,5.25l8.2,1.35l0.83,4.32l-2.87,1.62l1.37,3.78l-0.04,3.51l-1.39,0.79l-0.02,1.35l-1.77,-2.37l-2.13,2.1l-2.68,-0.52l-1.78,1.13l-0.06,1.01h1.36l-0.34,1.83l-1.67,0.61l0.77,3.11l-1.23,1.19l-0.63,-3.59l-0.74,-1.26l-0.75,0.72l0.72,2.68l-0.55,1.02l-1.28,-0.22l-0.06,1.58l2.85,2.14l-0.62,3.03l-0.4,-1.18l-1.02,-0.02l-0.47,1.18l-0.97,-1.24l-3.9,-0.05l-0.25,1.69l0.93,1.35l-3.84,2.15l-0.97,3.32l1.43,0.77l0.48,3.76l1.05,1.29l0,0l-3.44,4.6l-5.34,0.38l-9.83,6.51l-1.66,0.45l-2.12,-3.11l-6.26,1.39l-0.09,3.16l-2.68,0.61l-2.07,2.54l-1.72,-2.12l-2.35,0.21l-2.5,3.13l-3.59,-3.5l-4.04,2.93l-1.86,-0.16l-1.17,2.77l-4.57,1.09l-1.52,2.59l1.35,0.78l-0.67,1.55l0.65,3.14l-4.45,2.46l-0.69,-1.09l-4.74,-0.46l0.39,-3.56l2.54,-5.08l0.17,-4.89l1.53,-4.96l1.57,-3.79l2.22,-1.73l3.4,-11.33v-3.39l-1.38,-1.99l1.15,-2.81l-0.31,-2.35l0.8,-0.2l-1.05,-1.96l0.65,-1.15l-1.22,-4.45l-1.28,0.23l1.87,-6.11l-0.89,-0.99l1.52,-1.58l0.37,-2.63l-1.47,-1.75l8.03,-5.6l2.4,-2.77l0.86,-4.9l-0.6,-2.27l-4.5,-6.37l-4.15,-1.26l-1.17,-1.64l-5.82,-0.9l-9.88,1.41l-1.75,2.91l-0.2,6.86l-2.48,7.54l0.66,1.21l-6.96,1.24l-1.45,1.01l-1.06,-1.12l-1.76,3.12l-3.07,2.23l-0.44,2.2l-0.32,-1.96l-3.79,-2.02l-5.89,-12.54l-1.27,0.23l0.29,4.27l-1.2,-2.52l-0.74,-0.49l0.08,1.37l-2.77,-3.95l-1.35,1.05l-2.36,-1.7l-0.87,3l-2.47,-1.51l-3.75,-6.73l-1.53,2.19l0.55,1.57l-1,0.23l-1.68,-1.46l-0.66,0.56l-2.16,-2.35l-0.43,3.88l-1.23,-0.51l-1.33,-2.13l0.53,-2.26l-2.61,-4.44l-3.63,-10.96l1.35,-6.45l-1.02,-1.69l0.99,-1.6l-1.14,-1.81l0.55,-2.88l-0.98,0.47l-0.3,-1.12l-0.69,2.2l-1.29,0.47l0.13,-0.85l-1.12,0.24l-2.56,-3.45l-0.41,0.44l0,0l1.72,-2.31l2.38,1.6l1.41,-1.47l2.46,-0.44l1.62,0.16l2.99,2.51l1.11,-1.4l2.05,0.8l0.83,-1.36l2.91,-0.96l0.59,-1.62l3.47,1.27l0.88,-1.05l3.1,0.35l1.57,1.09l-0.04,-2.45l-4.25,-7.23l-0.19,-0.87l1.48,-0.91l-2.24,-4.64l0.65,-0.38l2.21,1.89l-0.21,0.91l5.28,3.08l1.24,-2.97l2.84,-1.42l-1.02,-8.52l1.85,-1.06l1.15,2.02l3.36,0.68l-0.33,-0.82l4.91,-0.8L224.81,578.72z" }, { "id":"EE-59", "title":"Lääne-Virumaa", "d":"M399.15,406.23l1.11,-0.43l1.26,1.29l-1.11,1.18l1.47,0.02l0.17,1.65l2.34,-1.5l0.31,-1.37l1.51,0.94l1.54,-1.09l-1.02,2.19l1.67,2.08l3.56,1.22l-1.47,0.58l1.09,2.25l16.27,-0.09l5.37,5.52l3.5,-0.24l1.01,1.16l5.91,1.1l-0.18,0.97l3.03,1.16l1.01,2l2.78,2.02l0.46,-0.6l-1.2,-0.88l4.22,-0.65l0.56,0.88l2.33,-0.82l1.65,-3.08l-1.94,-2.13l1.75,0.45l0.8,-0.2l0.88,-0.65l1.81,1.25l2.31,-0.02l1.68,1.83l2.13,0.09l2.35,1.42l0.55,1.83l2.2,-0.65l0.58,1.48l-0.66,0.88l1.61,1.81l0,0l-0.01,1.85l2.56,5.15l0.69,10.32l-2.16,-0.37l-1.26,-1.66l-2.64,1.23l2.39,4.93l-5.02,4.69l1.22,0.87l1.29,-1.15l1.1,1.49l3.46,-0.5l3.95,2.21l-0.83,1.69l-1.8,-0.46l-0.45,1.75l-0.91,-0.22l-1.11,4.27l-2.14,2.3l0.65,0.85l-0.77,4.25l1.01,-0.06l0.85,4.97l8.08,-4.47l0.65,5.19l-0.68,0.91l7.77,4.07l1.09,2.48l-1.02,2.07l1.81,0.57l0.46,3.03l-1.1,0.06l-0.66,5.16l-1.98,0.09l-1.29,-1.88l-0.41,1.35l-3.51,0.41l-2.71,3.25l-1.12,-0.53l-0.96,15.23l1.29,1.49l-1.99,1.82l0.19,5.43l-1.82,2.5l-4.59,0.81l-2.42,2.15l0,0l-1.98,-0.86l-11.89,6.25l-2.15,-0.11l0.16,-1.84l-1.19,-0.75l-3.8,0.68l0.19,0.99l-1.73,0.81l0.29,2.02l-1.78,0.31l0.84,3.14l-1.62,1.16l0.16,1.65l-2.53,0.51l-1.16,1.74l-4.37,-0.73l-2.82,-4.57l0.82,-0.51l-0.61,-2.33l-4.1,0.68l-0.69,1.3l-1.64,-0.51l-0.31,2.7l-2.09,0.73l-8.3,0.81l0,0l-0.57,-1.61l1.56,-4.02l-1.04,-2.29l0.48,-3.25l-1.26,-0.5l-1.34,-3.62l0.48,-2.44l-4.41,-2.59l-0.51,-2.5l-2.53,-0.79l-1.07,-4.79l-1.22,-1.33l-0.97,-0.59l-3.27,0.76l-2.99,-3.02l-1.31,2.03l-1.42,-1.86l-0.9,1.66l-0.88,-1.81l2.11,-2.49l1.02,-6.44l1.38,-1.48l1.6,0.11l1.05,-5.25l2.65,-2.11l-0.9,-4.36l-1.27,-0.35l-1.66,1.31l-1.68,-1.66l-1.92,-0.02l1,-1.42l-0.82,-1.28l1.51,-0.7l0.98,-2.22l-1.93,-1.28l-1.84,0.85l0.48,-5.28l-2.73,-0.3l-0.04,-1.3l1.35,-0.44l-0.35,-1.59l0,0l4,-1.26l-1.59,-6.03l-0.28,-7.5l-0.69,-2.88l-4.11,-7.18l1.16,-4.49l-1.44,-1.08l-0.24,-1.51l-3.16,-0.13l-1.48,-11.47l-1.24,-3.12l-1.6,-0.45l-0.31,-2.91l3.39,-1.4l0.9,-1.57l-1.01,-1.53l0,0l3.75,-1.74l-0.28,-9.74l1.02,1.61l3.39,-0.17l1.01,3.02l-1.25,1.82l0.55,1.97l3.09,0.71l1.83,-0.84l0.8,-2.66L399.15,406.23z" }, { "id":"EE-39", "title":"Hiiumaa", "d":"M122.62,564.57l-0.64,2.01l-1.17,-1.74l0.94,-1.46L122.62,564.57zM116.44,557.46l0.48,1.67l1.53,0.62l-0.12,2.71l-0.48,-2.01l-2.14,-1.92L116.44,557.46zM105.08,555.55l1.74,1.23l-1.76,1.3l1.23,4.23l-1.63,0.62l0.13,-0.79h-1.35l-0.75,0.84l0.48,1.04l-1.78,-0.58l-1.22,2.27l0.55,1.21l-1.82,-0.97l-1.64,-0.33l-0.3,-3.29l0.67,-0.49l1.61,-1.24l0.36,-3.44l2,0.35l1.53,0.11L105.08,555.55zM123.87,555.19l0.88,1.59l-1.08,2.69l-0.88,-0.99l1.3,-1.12l-1.05,-2.14L123.87,555.19zM129.34,553.54l1.52,1.65l-1.8,0.79L128,553.69l0.83,-0.69L129.34,553.54zM117.41,535.94l3.67,2.42l0.48,2.2l-1.1,1.82l-1.96,-2.26l-0.03,-2.59L117.41,535.94zM78.79,507.67l2.5,1.16l3.47,-1.16l3.83,2.82l-1.06,5.01l0.7,4.53l1.52,2.25l2.4,0.63l1.78,-0.86l7.53,2.7l0.79,-1.65l2.2,1.12l0.96,2.96l1.29,1.01l1.36,-1.34l0.28,1.32l1.28,0.15l2.29,-1.27l-1.14,1.89l2.47,2.79l-1.76,0.46l0.42,2.37l2.91,4.54l2.54,0.31l2.15,3.08l0.68,2.38l-0.57,0.9l2.33,2.44l-0.1,1.45l2.15,3.94l-4.08,2.42l-0.51,-4.08l-2.06,1.83l-1.49,-1.7l-2.44,-0.82l-1.39,1.43l1.31,2.14l-0.36,0.86l-1.9,-0.81l-1.24,-2.71l-0.43,4.54l-1.27,-1.59l-3.82,-1.28l-0.08,1.54l-2.9,0.99l-0.57,-0.77l-2.55,1.45l-0.08,0.91l-0.85,-1.21l-1.47,0.16l0.2,1.98l-1.45,-1.26l-1,2.19l0.88,0.35l0.4,1.96l-2.78,-2.83l-1.89,5.38l1.45,1l-4.3,8.27l-1.45,5.16l-9.55,1.97l-3.51,-1.37l-0.74,0.53l-4.21,-2.61l0.44,-1.31l-0.74,-0.78l-0.87,-0.97l3.22,-0.24l0.77,-1.28l-2.06,-1.88l-0.27,-1.64l-2.04,-0.2l1.69,-1.39l0.08,-2.78l-3.38,-2.36l1.71,-2.01l-0.43,-1.52v-0.68l-0.86,-0.49l0.91,-2.67l-0.36,-2.64l-1.85,-2.29l-0.68,-2.89l-3.06,-3.72l-2.95,-1.3l-3.52,0.77l-0.59,1.56l-1.17,0.31l-2.31,-1.76l-2.35,1.91l-8.26,0.09l-3.09,-2.27l-0.38,-2.33l-7.03,-2.7l-0.77,0.5l-1.37,-1.54l1.11,-1.87l-0.74,-0.6l4.07,-1.1l1.76,1.21l2.61,-0.26l6.82,1.52l3.23,-0.33l3.44,-2.19l2,0.7l1.53,-0.97l5.9,2.96l2.06,-0.33l2.51,-3.64l-0.83,-2.54l1.02,-0.02l1.6,1.95l1.11,-0.35l-0.23,-1.41l0.65,1.05l1.19,-0.35l-2.87,-3.9l-0.1,-1.82l3.03,0.24l1.62,2.37l1.41,-1.05l-1.86,-1.07l1.37,-1.77l-1.29,-0.61l0.01,-1.27l-0.49,-0.92l-0.28,-1.58l1.42,-0.42l4.35,1.75l0.48,-1.6l-0.93,-1.14l3.65,0.37l0.97,-1.01l0.4,-10.19L78.79,507.67z" }, { "id":"EE-57", "title":"Läänemaa", "d":"M159.57,554.42l3.16,1.7l-0.22,1.67l-1.36,-0.09l-0.35,0.9l-1.53,-1.43l-0.64,-2.31L159.57,554.42zM136.01,516.3l5.32,0.9l-0.32,1.25l1.01,0.02l0.82,1.86l1.17,-1.78l0.86,1.1l1.44,-2.47l0.83,1.66l1.6,-1.69l1.74,2.63l1.06,0.18l0.45,2.39l2.23,2.72l-1.18,3.37l-2.46,-1.62l-1.72,0.4l-0.65,1.99l-1.46,-0.77l-0.61,-0.2l-1.44,0.53l0.28,2.46l2.05,0.66l-2.37,-0.11l-2.92,-3.45l-3.55,-1.58l0.21,3.9l-3.04,-1.82l0.19,2.5l-1.41,-0.04l-1.02,-0.07l-1.4,-2.89l1.8,-0.28l0.02,-1.21l-1.24,-0.33l-1.51,-3.03l-1.26,-0.4l-1.16,-3.9l1.24,-2.76l1.6,0.48l1.79,-2.25L136.01,516.3zM180.18,477.98l1.17,2.28l2.07,1.24l3.33,-1.56l0,0l0.15,5.72h4.72l0.07,5.94l4.72,-0.15l1.03,2.96l2.13,-0.28l4.27,5.8l0.44,-1.13l2.08,0.11l1.21,-1.03l8.2,0.76l8.01,3.86l0.22,1.46l-1.72,1.51l0.79,1.72l-0.83,0.3l5.77,6.32l-7.45,7.37l0.58,4.51l0,0l-2.17,3.77l1.35,4.23l2.42,3.78l2.31,1.1l-0.67,4.81l2.23,0.4l-0.75,2.2l1.52,1.05l-0.52,1.58l1.99,1.32l-0.5,1.47l1.22,-0.55l0.98,1.67l-0.56,2.33l-4.17,-0.66l-0.67,0.6l0.48,1.39l-1.38,3.11l1.6,2.09l2.06,0.06l0.13,1.04l-2.77,0.57l-3.42,3.93l-2.07,0.37l-0.28,1.75l1.3,1.22l2.23,-0.69l1.23,1.72l2.37,-2.47l0.89,1.26l0.74,1.79l-3.43,6.83l0,0l-3.75,3.68l-4.91,0.8l0.33,0.82l-3.36,-0.67l-1.15,-2.02l-1.85,1.06l1.02,8.52l-2.84,1.42l-1.24,2.97l-5.28,-3.07l0.21,-0.91l-2.21,-1.89l-0.65,0.38l2.24,4.64l-1.48,0.91l0.19,0.87l4.25,7.23l0.04,2.45l-1.57,-1.09l-3.1,-0.34l-0.88,1.05l-3.47,-1.27l-0.59,1.62l-2.91,0.96l-0.83,1.36l-2.05,-0.8l-1.11,1.4l-2.99,-2.5l-1.62,-0.16l-2.46,0.44l-1.41,1.47l-2.38,-1.6l-1.72,2.31l0,0l-1.36,-0.49l0.73,-1.27l-1.2,-0.73l-1.38,0.84l0.65,-2.49l-1.48,-1.13l1.72,-3.18l-1.9,0.02l-0.65,-2.38l-1.11,0.4l1.37,1.91l-1.22,2.38l1.16,0.67l-0.63,2.16l-0.85,0.49l0.02,-2.29l-1.67,-0.4l-1.64,1.02l-0.98,-1.91l1.99,-0.85l0.68,-3.47l1.15,0.04l-0.28,-0.84l-1.23,0.18l0.43,-3.02L165,587.07l0.65,-3.31l-0.97,-0.49l0.51,-1.22l-0.71,-1.19l-0.84,-0.15l2.71,-0.67l-0.17,-2.73l1.73,1.37l3.63,-0.8l0.79,-1l-4.65,-2.41l0.64,-1.7l-1.1,-0.95l1.79,-0.27l3.81,2.34l1.5,-0.13l4.01,-1.48l1.73,0.77l0.61,-0.58l-1.2,-0.2l0.41,-1.84l1.02,0.55l0.59,-0.99l1.28,0.62l0.68,-0.73l3.56,2.08l0.74,-0.73l1.31,1.06l-0.37,1.04l0.9,0.71l2.03,0.93l1.68,-1.77l1.32,0.6l0.5,-3.76l-1.47,-0.15l0.42,-1.02l-2.69,-0.33l-1.23,-3.47l1.13,-1.72l-2.37,1.26l-2.44,-2.36l-3.73,2.65l-6.34,-2.05l-3.58,0.99l-2.69,2.16l-3.77,-1.33l-6.85,2.21l1.68,-2.5l-0.77,-2.27l1.98,0.33l-0.59,-0.44l0.63,-1.41l0.74,0.44l0.84,-0.88l-1.03,-1.1l0.14,-2.64l1.05,1.12l-0.63,0.04l0.41,1.32l2.04,1.15l2.2,-2.12l-1.04,-0.77l-0.17,-3.33l-1.87,-2.12l-2.8,-4.71l-3.08,-2.66l0.15,-0.7l0.85,0.77l0.09,-2.71l-1.37,0.57l-1.36,-0.64l0.8,-3.76l-0.64,-3.41l1.43,0.7l1.24,-1.06l1.91,2.09l3.41,-2.09l1.82,0.55l-1.27,-4.08l3.53,3.25l2.19,-1.41l1.35,0.39l1.56,-1.89l-0.61,-1.65l0.35,-1.03l1,0.94l1.14,-0.73l2.83,2.43l0.75,-4.01l-1.94,-1.42l0.67,-0.75l-2.74,-1.51l-1.36,0.06l-0.84,0.15l-1.37,0.17l-0.07,-1.05l-1.13,0.33l-0.27,4.6l0.73,0.63l-0.66,1.45l-1.66,-0.68l0.02,0.97l-4.32,-2.79l-3.31,0.88l-4.61,-4.56l-1.75,-4.38l0.67,-0.48l2.89,1.71l0.72,-1.64l-0.71,-1.29l1.02,-0.86l-2.29,-0.31l0.64,-6.47l4.18,0.77l2.76,-4.17l3.1,0.77l-1.54,-5.26l0.65,-2.22l-1.15,-0.96l-0.79,-5.43l-1.86,-1.46l-0.62,-2.92l0.5,-3.59l1.92,-0.98l0.07,-2.44l2.6,2.2l3.73,-0.07L180.18,477.98zM151.82,467.6l3.13,1l1.96,1.84l1.1,1.78l-1.53,0.02l-1.18,-1.13l-2.14,-0.3L151.82,467.6z" }, { "id":"EE-82", "title":"Valgamaa", "d":"M409,682.87L410.86,683.79L412.86,683.09L413.43,684.63L414.02,683.36L416.1,682.8L416.55,684L428.12,684.85L429.4,680.67L433.59,681.53L437.29,674.31L439.64,675.48L440.7,674.88L441.62,679.52L442.76,678.98L443.77,679.73L446.26,677.81L448.04,677.6L448.99,675.91L455.16,676.02L456.22,676.95L456.26,679.05L459.36,680.16L459.38,682.59L461.17,682.34L461.4,683.34L461.4,683.34L459.93,683.82L458.61,689.49L456.34,693.09L456.62,695.62L457.81,695.08L457.39,697.93L458.38,698.34L458.24,701.29L456.14,704.42L457.94,707.14L456.05,712.87L456.05,712.87L450.87,714L449.5,713.21L448.31,714.21L448.2,715.99L445.31,715.5L443.12,716.73L440.88,715.73L439.82,717.9L441.38,719.19L441.7,722.45L439.99,724L439.42,726.37L437.4,727.12L439.8,728.76L441.98,728.87L443.61,731.33L441.44,733.37L442.98,737.8L441.65,739.99L443.67,742.05L443.89,744.04L447.42,742.37L449.36,743.3L449.31,745.38L448.05,745.8L449.16,749L447.45,750.42L445.26,750.63L444.92,751.82L446.91,754.59L446.94,756.4L448.68,755.32L448.66,757.09L449.72,757.2L450.16,759.47L444.2,767.14L449.52,771.6L446.63,776.94L445.38,776.43L444.97,777.22L448.53,777.54L446.87,780.37L446.87,780.37L442.17,781.06L435.12,778.97L433.32,779.78L431.83,777.31L429.66,777.5L428.43,776.37L425.72,772.73L425.95,769.49L424.58,767.62L425.38,767.17L425.19,765.77L422.82,764.53L422.53,762.04L419.58,760.67L421.41,756.03L420.75,754.93L416.04,752.82L415.17,749.64L409.78,746.83L407.72,747.54L405.88,745.96L404.24,746.62L404.45,742.96L407.29,735.42L407.61,732.11L404.48,732.29L402.39,729.95L398.72,732.55L395.86,731.25L391.62,732.07L390.54,728.87L389.02,730.4L385.08,729.35L381.25,720.78L377.35,718.81L374.36,722.17L372.17,722.1L371.88,720.71L368.85,720.03L367.31,717.12L362.84,715.03L363.79,712.46L363.79,712.46L367.27,705.33L365.09,700.06L365.87,699.05L371.6,699.05L372.99,700.61L378.79,693.63L377.79,692.37L380.94,692.59L382.53,691L383.26,691.48L383.72,689.9L385.2,690.17L385.11,689.01L387.1,688.25L386.86,687.12L388.42,687.16L387.9,683.73L386.77,685.92L386.23,685.19L386.12,683.47L389.25,681.94L387.82,678.67L389.95,678.66L392.92,680.61L394.66,683.79L395.08,687.16L398.76,687.32L400.2,686.42L400.26,685.35L403.94,684.42L404.69,682.93z" }, { "id":"EE-49", "title":"Jõgevamaa", "d":"M417.11,543.89L425.41,543.08L427.49,542.34L427.81,539.65L429.45,540.16L430.14,538.86L434.24,538.18L434.85,540.51L434.03,541.02L436.85,545.59L441.22,546.32L442.38,544.58L444.91,544.07L444.75,542.42L446.37,541.26L445.54,538.12L447.32,537.81L447.03,535.79L448.76,534.98L448.57,533.99L452.36,533.31L453.55,534.07L453.39,535.9L455.54,536.01L467.44,529.77L469.42,530.63L469.42,530.63L469.71,532.23L472.28,534.05L471.38,536.22L472.77,537.26L472.23,540.99L474.04,545.61L481.37,544.31L481.91,542.6L487.27,543.43L489.65,545.1L490.77,547.68L492.3,548.3L515.54,548.41L528.64,550.17L540.05,554.4L540.05,554.4L531.56,562.62L534.09,574.49L534.09,574.49L504.75,583.85L505.35,585.25L504.4,587.4L502.82,586.54L501.18,588.51L497.21,589.49L497.33,590.69L498.75,590.35L499.35,591.48L498.66,592.84L500.11,595.77L499.96,598.02L497.75,597.52L497.65,596.04L495.78,594.1L495.37,595.62L494.1,594.73L493.42,595.61L490.49,592.88L484,590.86L482.95,601.19L480.53,601.35L480.95,602.88L478.86,603.17L477.73,604.6L475.59,603.97L473.95,605.22L472.41,604.22L472.23,605.86L469.68,607.22L464.81,602.53L465.46,603.82L463.21,607.04L463.09,609L463.98,610.01L460.06,612.19L455.7,608.45L454.16,609.96L451.62,608.71L453.69,606.55L449.4,607.04L448.23,608.07L449.33,608.76L448.61,609.7L445.77,608.16L442.27,608.31L440.77,609.49L439.68,612.48L440.22,613.61L438.58,612.66L438.17,609.98L434.68,608.67L433.86,610.32L431.39,611.07L423.16,617.23L421.46,616.2L419.86,617.38L417.86,615.29L416.89,618.28L415.94,618.61L416.03,620.19L416.03,620.19L410.92,614.71L409.79,615.62L404.58,611.14L404.14,604.84L401.87,606.51L400.08,604.8L399.11,605.02L399.13,603.19L397.97,602.55L398.89,601.08L398.09,598.84L391.39,595.99L386.22,597.08L379.28,595.95L378.51,594.53L380.36,593L381.98,592.97L382.99,591.22L382.45,587.63L380.3,587.25L381.71,584.57L381.36,580.29L381.36,580.29L382.82,575.86L383.89,576.11L384.08,574.96L386.91,573.07L386.19,569.45L389.32,569.67L391.03,567.77L390.78,565.51L392.31,565.3L394.59,566.86L395.45,569.27L399.22,566.56L399.35,563.31L397.99,558.89L399.67,557.26L402.8,557.73L403.74,554.64L404.89,555.26L406.87,554.18L414.76,553.19L414.21,549.49L413.26,548.76L415.74,544.86L417.06,545.5z" }, { "id":"EE-70", "title":"Raplamaa", "d":"M221.13,525.69L222.39,525.37L222.15,524.05L224.19,523.02L226.88,518.64L228.49,519.85L231.29,517.42L233.66,520.55L238,519.21L239,521.47L240.55,522.15L240.16,519.43L242.09,518.66L241.34,516.59L243.23,513.74L243.95,514.29L245.38,513.28L245.69,514.03L247.43,513.08L246.62,510.16L245.01,510.35L246.2,509.35L245.93,506.7L248.11,507.86L248.46,507.03L254.62,506.86L259.17,505.18L266.49,506.4L266.5,500.94L265.13,501.05L263.54,498.7L267.02,497.54L265.18,495.1L266.22,488.39L268.95,488.93L273.67,483.23L276.5,483.63L277.77,482.93L280.11,484.67L281.12,482.63L282.95,485.04L284.72,485.17L286.04,487.37L287.1,487.48L287.61,482.73L291.36,482.8L294.56,481.69L297.25,482.35L298.78,481.73L298.07,488.74L298.23,490.07L299.95,489.7L300.04,495.01L303.58,496.97L305.82,496.54L307.08,497.97L308.23,497.26L312.82,504.52L317.01,506.05L320.3,505.44L321.04,506.86L322.11,506.42L326.34,508.19L324.58,510.83L326.59,514.05L325.45,514.66L326.24,517.05L329.36,517.61L328.56,518.71L332.86,519.45L332.31,520.81L335.08,522.39L335.13,524.18L338.88,524.71L338.88,524.71L334.5,527.82L336.86,531.44L335.99,538.09L331.69,540.66L329.66,545.02L331.1,547.35L332.34,547.29L333.64,549L331.19,553.82L331.9,554.88L329.77,556.45L328.34,559.47L326.35,558.83L325.74,560.13L329.19,566.33L327.62,567.22L326.39,574.11L326.39,574.11L321.78,575.24L313.25,573.4L313.77,574.07L311.94,576.72L310.22,577.17L309.32,575.93L307.69,577.12L306.36,576.83L302.77,581.75L302.04,585.14L300.68,585.78L299.85,585.48L298.54,580.67L299.49,572.68L294.24,568.43L291.51,570.16L290.04,572.41L288.46,572.81L287.8,571.97L285.36,572.77L281.19,570.02L279.66,570.62L277.25,569.49L274.83,574.23L268.97,577.45L266.26,577.85L265.83,576.24L267.42,574.65L263.49,571.62L261.75,573.8L258.03,575.93L257.12,580.47L255.81,582.11L251.69,583.74L248.78,586.76L234.54,581.66L230.04,583.23L224.81,578.72L224.81,578.72L228.24,571.9L227.5,570.11L226.6,568.85L224.23,571.31L223,569.6L220.77,570.29L219.47,569.07L219.75,567.31L221.82,566.95L225.24,563.02L228.01,562.45L227.88,561.41L225.82,561.35L224.22,559.27L225.6,556.16L225.11,554.77L225.79,554.16L229.96,554.82L230.52,552.5L229.54,550.83L228.32,551.38L228.83,549.92L226.83,548.6L227.35,547.02L225.84,545.98L226.59,543.77L224.35,543.37L225.03,538.56L222.72,537.46L220.3,533.68L218.95,529.45z" }, { "id":"EE-74", "title":"Saaremaa", "d":"M139.59,736.84l3.47,2.94l0.17,4.76l-2.26,-0.41l-1.86,-1.79l-1.32,0.84l-0.27,-3.84l1.08,-0.84l-0.63,-0.41l0.52,-1.31l0.87,-0.62L139.59,736.84zM70.31,673.21l0.95,1.19l1.06,0.66l0.3,0.94l-0.46,1.51l1.28,1.19l-3.14,4.68l-1.15,-3.79l-1.4,0.65L70.31,673.21zM76.97,667.16l2.51,1.35l-0.79,1.74l-0.13,-0.88l-1.36,0.34l0.39,-1.49l-1.27,0.02L76.97,667.16zM3.19,645.21l1.56,0.78l-2.47,0.45l-0.1,-1.06l-1.35,-0.11l0.74,-1.25L3.19,645.21zM14.02,634.81l0.67,1.77l-2.33,0.72l-0.71,-0.9l-1.92,1.99l-2.31,-0.43l-1.14,0.69l-2.18,-2.33l3.93,-1.79l3.32,1.48l-0.64,-1.9l1.43,1.08l1.52,-1.16L14.02,634.81zM152.99,610.34l1.43,2.72l-3.53,0.25l1.08,-2.97H152.99zM141.58,608.22l1.32,0.07l0.45,1.03l-1.33,2.29l-0.98,-1.31L141.58,608.22zM158.82,606.33l0.78,0.89l-2.24,0.93l0.37,-1.6L158.82,606.33zM158.38,590.02l0.63,-0.22l0.47,1.42l-1.06,1.2l-1.76,-1.2L158.38,590.02zM73.6,591.44l1.95,-1.51l1.4,0.69l5.46,9.68l4.39,0.58l1.61,-4.09l2.43,1.56l-0.08,2.29l3.09,1.22l2.18,-7.34l2.11,-2.13l4.6,1.82l3.04,-1.82l2.24,1.78h5.4l0.13,1.35l5.69,2.96l1.32,3.18l0.91,-0.73l1.98,1.15l0.68,1.73l1.68,-0.2l0.07,0.93l4.39,0.91l0.12,1.13l-0.83,0.29l0.06,1.16l-0.01,1.16l1.03,2.45l1.79,1.05l-0.62,0.84l3.28,-0.87l3.84,2.99l4.03,1.05l1.6,2.38l1.3,0.05l-0.18,1.63l0.8,0.18l-0.66,1.7l1.95,-0.13l0.85,0.98l-0.43,1.29l-1.16,0.09l-0.18,3.66l-1.33,-2.1l0.22,-1.76l-1.9,-0.78l0.35,-1.33l-0.04,-2.57l-1.18,-0.6l0.07,4.26l-1.06,0.6l0.31,-1.19l-3.87,0.04l1.83,2.84l1.52,-0.38l-0.99,1.36l1.42,0.13l-1.23,1.72l-2.48,-1.16l-0.83,-0.31l-0.19,-2.21l-1.08,1.18l0.4,-1.99l-0.93,-1.19l-0.27,-1.19l2.24,-0.45l0.22,-0.81l-2.67,-0.29l-1.28,-0.09l-0.59,1.61l-1.05,-0.04l0.71,-1.07l-0.77,-1.38l-1.47,3.24l1.11,3.01l-1.88,0.29l0.81,1.67l-0.99,0.56l-0.52,1.61l-1.52,1.09l-0.9,-0.81l0.41,-1.43l-2.76,-0.16l-0.53,2.55l0.62,3.15l0.75,0.16l0.36,2.78l-2.05,-0.92l-1.34,1.1l-0.68,-1.52l2.38,-0.52l-0.75,-0.94l-1.7,0.56l-1.05,2.1l0.86,0.58l-0.2,1.26l-0.96,0.63l0.84,1.41l-1.91,-0.32l-1.3,0.13l-1.99,-1.05l-1.78,-3.69l-1.21,0.29l-0.83,3.32l1.93,0.76l0.41,2.08l-2.05,0.22l0.1,2.22l-0.02,0.58l-0.76,1.16l-0.58,-0.36l0.33,1.82l-1.61,0.43l0.43,2.52l-3.33,0.58l-0.92,-0.45l-0.05,-1.41l-0.08,-1.21l-0.65,0.67l-1.3,-0.59l-0.32,1.88l0.93,0.81l-3.1,1.41l-0.33,4.34l-0.94,1.46l-1.21,-1.8l-4.55,-0.09l-2.3,-1.71l-2.84,0.99l-0.36,2.18l3.62,3.87l0.77,2.25l0.15,1.33l-1.6,1.33l-1.97,0.72l-2.98,-1.33l-1.91,-3.18l-1.4,3.31l-0.87,-3.6l0.54,-0.92l0.99,0.61l-0.64,-1.04l1.03,-0.43l-0.84,-1.08l-1.25,0.59l-1.08,-0.34l-0.9,0.88l0.3,2.52l-1.68,1.84l-0.8,-0.04l-0.36,-2.37l-2.86,2.99l-0.77,-0.25l-0.4,-6.12l-1.42,0.49l-1.96,6.89l-0.41,-1.15l-1.16,-0.02l0.48,-2.09l-1.08,-1.58l-1.02,0.51l0.16,-1.33l-0.73,-0.02l-1.35,0.86l-0.68,2.97l-1.91,1.3l-2.39,-0.13l-0.54,0.79l-1.4,-1.38l-2.57,0.27l-4.59,2.34l-3.37,3.06l-1.29,2.57l-0.37,4.53l1.23,3.39l-1.12,1.13l-0.51,6.35l-2.5,2.8l0.54,3.65l-4.16,7.52l1.82,5.31l-2.39,2.41L37,711.26l-2.14,2.07l-3.27,4.39l-1.65,0.61l-2.77,4.55l0.65,-2.5l-1.16,-0.2l-1.14,1.19l-1.08,-1.19l-1.72,-2.91l0.28,-1.94l-2.06,-1.73l-0.55,-4.41l1.68,-0.89l0.6,1.2l1.63,-1l0.14,-3.73l2.13,-0.79l-0.48,-3.02l1.86,-0.91l-0.48,-1.24l1.33,-1.27l0.55,-4.74l1.7,-1.97l1.49,-0.34l-0.2,-1.07l2.63,1.08l0.39,2.6l2.88,0.32l0.27,-5.48l2.67,-5.77l2.67,-1.9l-1.36,-3.46l-5.26,0.66l-1.01,-1.15l0.06,-1.85l-2.33,-0.7l-0.69,0.94l-0.32,-0.93l-0.98,0.16l0.1,-1.15l-2.16,-0.88l0.36,1.76l-1.6,-0.05l-0.89,-3.4l-1.32,-1.44l0.18,-1.2l0.57,-0.48l-2.15,-2.75l-0.44,-2.25l-2.56,-1.91l-0.71,0.43l0.69,2l-3.71,-0.09l-1.34,-1.44l-4.78,-1.01v-1.33l-1.45,-0.2l-0.95,-0.38l-1.56,-1.98l0.14,-1.17l-1.77,-0.2l1.16,-1.87l-1.57,-1.28l0.64,-2.13l1.15,-0.4l4.6,2.89l-0.3,-1.12l1.52,-0.88l-3.64,-5.5l0.01,-0.97l1.31,0.09l3.47,2.36l0.62,2.83l1.72,1.08l0.4,-0.72l0.59,-0.63l0.27,-1.03l-2.5,-5.4l0.45,-0.99l2.27,2l0.38,-0.81l2.08,2.49l1.24,-1.41l-0.38,-1.25l-1.5,-1.77l0.01,-1.68l1.28,0.27l3.02,0.89l-1.44,-2.11l-1.42,-0.47l0.19,-1.3l-0.94,-0.9l0.43,-0.58l-0.23,-0.85l-0.88,-0.49l-0.82,0.81l-0.46,-1.19l-1.32,-0.31l-0.08,-2.26l-1.18,-0.63l0.87,-1.1l-3.66,-4.38l-0.6,-3.37l-2.45,-0.81l-1.2,1.36l-2.29,-2.12l-0.22,-3.73l3.56,3.5l1.6,0.16l2.93,-2.05l-1.4,-2.66l0.75,-2.39l4.5,2.07l2.7,-0.62l1.54,0.62l3.78,7l2.7,8.64l2.74,0.45l1.09,-1.32l-0.63,-1.79l0.63,-8.44l1.82,-3.04l0.82,-0.49l1.38,1.2l0.27,-2.34l3.64,-1.34l0.14,-5.82l1.51,0.04l1.69,2l0.98,8.47l3.97,0.51l2.45,-6.31l-1.11,-3.54l-1.42,-0.05l-0.11,-5.5l2.58,0.98l4.57,-2.25l2.61,0.78l8.08,-1.47l5.56,-6.44L73.6,591.44zM119.37,588.51l1.21,0.13l1.1,3.62l-3.42,-0.93L119.37,588.51zM135.95,581.66l15.01,7.03l0.88,3.02l-1.76,1.86l0.13,1.8l4.33,6.33l1.42,4.2l-0.66,2.12l-3.21,2.09l-0.14,-1.03l-2.53,-0.4l-1.31,-3.58l-1.77,4.18l0.01,-2.6l-1.09,1.94l-1.53,-2.41l-1.59,-0.02l-2.52,5.01l-0.22,-1.11l-1.25,0.29l-0.01,-2.72l-0.64,0.69l0.22,-1.22l-0.8,0.38l-0.57,-1.38l-0.55,0.89l-1.17,-1.29l-0.6,-1.43l1.15,0.38l-0.28,-1.34l-0.65,0.38l-2.35,-3.05l-2.35,1.05l-4.01,-2.2l-1.58,-2.16l0.78,-2.91l-0.95,-1.04l1.25,0.11l1.72,-1.47l3.65,1.09l0.92,-1.36l-1.03,-4.57l0.53,-3.52l1.19,-1.35l1.06,0.69L135.95,581.66z" }, { "id":"EE-37", "title":"Harjumaa", "d":"M204.12,459.56l1.83,1.84l-1.94,-0.26l3.09,3.16l0.56,2.32l-1.33,1.52l-1.6,-0.65l-5.5,-7.91l3.84,-0.71L204.12,459.56zM212.17,459.41l1.05,6.11l-3.5,-0.11l-0.87,-3.44l-1.67,-2.12l-1.43,-0.2l2.45,-2.9L212.17,459.41zM326.91,416.65l2.03,-0.49l1.5,3.22l-1.43,-1.48l-1.39,0.24L326.91,416.65zM284.68,417.62l-1.44,-0.17l-0.78,-1.31l0.17,-1.05l2.15,-0.9l0.98,1.24L284.68,417.62zM260.93,411.22l2.35,4.44l2.23,8.23l-3.7,-0.22l-2.54,-1.98l-1.6,-3.5L260.93,411.22zM304.73,403.44l4.42,2.51l2.09,3.58l-0.93,1.44l-2.87,-1.91l-1.66,1.78l-0.65,-1.74l1.79,-0.99l0.35,-1.27l-2.83,-2.23L304.73,403.44zM373.66,399.57l1.12,-0.17l-0.5,1.43l1.06,1.78l1.17,-1.41l2.52,2.27l1.11,1.35l-0.84,0.84l0.36,1.56l2.23,1.33l-1.42,1.97l1.01,2.51l-0.43,4.42l5.08,1.63l0,0l1.01,1.53l-0.9,1.57l-3.39,1.4l0.31,2.92l1.6,0.45l1.24,3.12l1.48,11.47l3.16,0.13l0.24,1.51l1.44,1.08l-1.16,4.49l4.11,7.18l0.69,2.88l0.28,7.51l1.6,6.03l-4,1.26l0,0l-2.75,-3.21l-9.86,-1.56l-3.03,2.6l-4.22,-0.28l-1.96,1.82l-2.66,0.04l0.02,2.76l-1.39,0.87l-5.47,-3.52l-4.58,2.19l-2.82,-1.2l-3.21,0.07l3.32,4.04l2.29,6.08l-2.38,6.24l-5.29,6.88l0.95,1.98l-1.49,3.51l4.12,2.45l-2.7,5.79l-2.35,-3.63l-1.47,-0.57l-2.79,2.49l2.05,3.24l-0.9,6.89l-2.52,2.84l-1.6,-1.29l-1.04,0.37l-1.24,3.24l0,0l-3.75,-0.53l-0.05,-1.78l-2.77,-1.58l0.55,-1.36l-4.3,-0.74l0.81,-1.1l-3.12,-0.55l-0.79,-2.39l1.14,-0.61l-2.01,-3.23l1.76,-2.64l-4.22,-1.77l-1.07,0.44l-0.74,-1.42l-3.29,0.61l-4.19,-1.53l-4.59,-7.26l-1.15,0.7l-1.25,-1.42l-2.25,0.43l-3.53,-1.96l-0.09,-5.31l-1.72,0.37l-0.16,-1.33l0.71,-7.02l-1.53,0.63l-2.7,-0.67l-3.2,1.11l-3.75,-0.07l-0.51,4.76l-1.05,-0.11l-1.32,-2.2l-1.77,-0.13l-1.83,-2.41l-1.01,2.04l-2.33,-1.74l-1.27,0.7l-2.84,-0.41l-4.72,5.7l-2.72,-0.54l-1.04,6.71l1.84,2.44l-3.48,1.16l1.6,2.35l1.37,-0.11l-0.01,5.46l-7.32,-1.22l-4.56,1.68l-6.15,0.17l-0.35,0.83l-2.18,-1.16l0.27,2.66l-1.19,1l1.61,-0.18l0.81,2.91l-1.74,0.96l-0.31,-0.76l-1.43,1.01l-0.71,-0.55l-1.9,2.86l0.75,2.06l-1.93,0.77l0.39,2.72L239,521.47l-1,-2.26l-4.35,1.34l-2.36,-3.13l-2.8,2.43l-1.61,-1.22l-2.69,4.38l-2.04,1.03l0.24,1.33l-1.26,0.31l0,0l-0.58,-4.51l7.45,-7.37l-5.77,-6.32l0.83,-0.29l-0.79,-1.72l1.72,-1.51l-0.22,-1.46l-8.01,-3.86l-8.2,-0.76l-1.21,1.03l-2.08,-0.11l-0.44,1.13l-4.27,-5.8l-2.13,0.28l-1.03,-2.96l-4.72,0.15l-0.07,-5.94h-4.72l-0.15,-5.72l0,0l1.32,-2.85l-1.26,-1.41l0.04,-2.61l3.29,0.87l1.84,-2.82l3.5,-0.83l5.16,2.52l0.46,1.41l2.5,-2.13l4.11,1.8l2.01,-1.58l6.15,-2.13l0.89,1.08l0.66,-0.52l0.98,1.1l1.74,-0.11l-0.84,2l0.44,0.78l1.28,-0.44l3.1,-6.7l-2.03,-4.12l-5.32,-4.38l-1.02,-7.05l3.94,0.63l6.78,3.59l1.05,1.97l3.99,2.68l3.7,-0.56l0.69,-2.4l-1.55,-3.76l-4.95,-3.72l0.71,0.13l0.73,-1.88l1.05,0.17l-0.29,1.17l0.85,0.67l2.01,0.34l10.19,-5.62l1,-2.42l-0.23,-4.79l1.32,-1.03l-0.27,-1.02l9.84,0.84l2.94,3.9l4.62,2.13l3.12,-2.2l-0.44,-2.48l8.86,6.15l1.61,-1.62l0.27,-1.98l-2.98,-2.54l-0.6,-1.66l2.15,1.4l2.18,-0.07l0.49,-1.45l-1.1,-2.26l1.69,0.82l0.36,-1.72l0.66,2.02l1.41,0.82l-2.67,3.32l1.43,-0.71l0.91,1.31l0.48,-0.58l1.9,1.42l3.87,0.73l4.41,-7.68l-2.89,-3.71l0.61,-1.57l-0.95,-1.12l-0.65,0.41l-0.21,-10.26l0.43,1.5l2.27,0.54l0.79,1.42l1.78,-0.24l0.62,1.25l2.46,-0.35l1.22,1.85l-0.49,1.7l2.18,1.96L299,430.72l5.47,2.24l2.91,-1.14l0.21,-2.07l4.57,1.33l3.31,-1.23l0.86,2.39l1.23,0.97l1.02,-0.39l0.31,1.44l2.42,1.16l2.71,-4.55l-0.43,-1.62l-1.25,0.13l-1.94,-2.95l0.57,-3.2l4.17,3.25l1.26,3.75l3.83,-0.9l2.7,-3.62l0.25,3.33l4.63,2.65l2.24,0.58l2.11,-0.65l3.52,1.4l3.63,-0.67l1.8,-2l-0.35,-2.39l6.8,-0.52l2.51,-4.32l-2.52,-3.42l-0.42,-3.03l-3.02,-5.07l-0.01,-4.66l0.92,-1.89l-0.71,-1.56l2.54,0.92l-0.58,3.88l1.02,1.5l2.17,1.03l1.77,-1.14l0.92,2.55l2.53,0.26l1.33,3.87l5.07,2.88l3.37,-2.99l-0.6,-1.14l1.06,-3.14l-2.86,-3.17l-0.15,-3.15l1,-1.97l-2.05,-1.84l2.65,-1.65L373.66,399.57z" } ] } } };
rileyjshaw/cdnjs
ajax/libs/ammaps/3.10.0/maps/js/estoniaLow.js
JavaScript
mit
39,511
// (c) ammap.com | SVG (in JSON format) map of Costa Rica - High // areas: {id:"CR-A"},{id:"CR-C"},{id:"CR-G"},{id:"CR-H"},{id:"CR-L"},{id:"CR-LA"},{id:"CR-P"},{id:"CR-SJ"} AmCharts.maps.costaRicaHigh={ "svg": { "defs": { "amcharts:ammap": { "projection":"mercator", "leftLongitude":"-85.951112", "topLatitude":"11.216982", "rightLongitude":"-82.555690", "bottomLatitude":"8.032245" } }, "g":{ "path":[ { "id":"CR-A", "title":"Alajuela", "d":"M242.75,26.65L256.14,34.46L262.91,32.24L263.93,34.62L264.83,35.77L268.59,37.39L275.25,39.69L278.94,41.74L285.37,48.77L288.13,50.29L289.55,50.63L290.77,50.6L292.12,50.13L293.48,49.18L294.99,47.55L295.89,47.08L299.81,46.14L302.66,43.29L303.15,43.03L303.69,43.26L304.49,44.08L306.28,47.02L306.24,47.99L305.5,50.1L304.87,51.08L304.98,52.1L306.88,53.4L308.12,55.84L308.78,57.69L309.74,58.67L311.65,58.57L313.68,58.86L314.95,59.39L315.83,60.16L317.07,61.85L317.19,62.86L317.82,63.38L319.21,63.38L323.17,64.22L324.18,64.62L325.56,66.05L328.8,67.14L329.61,68.15L330.08,69.54L329.57,70.69L330.18,72.11L330.42,73.38L329.59,74.76L329.62,75.79L328.97,76.42L326.15,77.25L326.52,78.42L327.91,79.08L328.4,80.11L330.69,80.65L332.33,81.7L332.56,83.11L333.44,84.52L334.6,83.39L335.5,82.89L336.77,82.91L338.65,83.64L340.98,83.23L342.34,83.25L342.34,83.25L341,121.93L341.1,154.64L340.98,178.91L340.58,201.39L341.48,215.91L341.43,220.88L340.07,223.74L340.08,226.4L338.76,230.99L337.67,233.27L334.75,235.83L336.13,240.24L336.13,240.24L333.88,240.13L331.04,241.42L329.07,243.14L327.68,244.74L324.91,246.89L321.67,248.14L314.09,248.75L309.42,250.26L304.76,250.44L301.61,248.51L299,247.83L294.29,247.79L294.18,248.08L286.46,249.67L283.81,249.52L281.09,251.26L280.03,252.39L277.3,253.67L275.72,254.81L272.7,257.84L270.07,258.6L267.9,261.43L267.42,263L264.71,267.17L262.23,267.2L262.23,267.2L260.58,265.98L258.54,265.05L257.53,263.75L257.18,261.22L254.28,260.44L251.46,260.28L248.01,260.43L243.15,259.58L241.65,257.14L241.91,253.67L243.3,251.9L245.64,251.14L247.92,246.23L249.54,244.4L252.65,244.32L255.63,244.06L258.08,240.82L261.05,238.03L265.38,236.41L266.33,233.03L265.89,229.47L262.93,226.48L259.41,226.06L252.68,225.95L251.92,223.55L251.25,219.7L248.51,218.44L247.37,216.51L244.39,210.47L244.36,207.29L244.05,202.16L244.44,199.55L242.22,198.05L243.74,194.83L245.29,192.42L246.86,188.62L245.78,184.84L243.42,182.36L241.45,179.87L239.48,179.17L236.57,180.11L234.02,181.69L229.86,183.13L223.47,178.68L220.12,173.8L220.12,173.8L222.51,169.84L223.89,165.42L225.02,164.69L222.5,160.83L223.3,153.93L223.39,150.69L223.39,150.69L226.38,150.61L230.76,150.9L231.72,150.47L231.12,149.44L231.15,148.17L230.72,147.09L229.48,146.14L227.7,146.13L225.49,143.07L222.11,143.39L222.11,143.39L221.93,141.02L221.99,138.77L218.93,138.33L215.89,136.45L211.85,133.73L207.3,128.88L201.87,125.91L194.11,125.83L191.84,122.48L188.77,119.56L185.49,117.4L181.4,112.36L179.67,107.84L179.41,104.67L178.18,101.35L177.55,99.22L175.28,98.42L172.78,97.1L167.87,96.25L165.42,94.81L162.87,94.13L160.41,94.66L157.41,94.51L155.45,94.04L151.81,89.05L148.18,86.72L144.54,85.84L140.79,85.59L135.75,86.14L129.79,87.11L126.16,86.8L124.22,85.01L122.29,79.33L122.15,76.09L118.99,74.16L112.72,71.72L109.54,68.86L107.91,65.84L106.86,63.14L106.04,60.45L104.2,58.12L98.91,49.35L100.07,47.41L102.64,46.82L106.39,45.1L108.98,42.83L109.8,41.35L111.56,35.86L112.79,34.5L117.39,34.43L119.36,32.93L121.26,32.94L124.29,36.67L127.39,38.85L129.69,38.9L130.36,35.81L130.76,31.28L131.83,27.11L131.83,27.11L134.29,28.24L141.86,32.27L183.44,47.25L197.69,53.2L220.5,39.84L242.16,26.56z" }, { "id":"CR-C", "title":"Cartago", "d":"M383.02,205.77L407.86,219.06L413.7,222.37L426.72,227.84L446.23,237.12L478.03,237.29L503.33,237.12L502.17,238.88L499.61,240.1L498.69,242.21L498.75,244.34L496.06,244.88L496.17,249.08L496.96,253.04L498.37,256.35L498.42,260.73L498.06,262.07L499.54,265.89L495.9,269.97L488.47,280.27L485.95,283.11L483.78,285.87L481.91,289.1L481.74,293.83L480.53,297.9L476.43,301.81L472.88,304.51L462.43,314.13L463.7,316.23L465.05,319.65L465.4,322.23L465.07,324.95L465.76,327.06L466.69,330.77L466.69,330.77L462.44,328.81L456.21,323.5L453.53,322.42L449.94,321.54L445.21,318.61L443.23,317.69L440.97,315.04L438.59,314.18L436.53,314.47L435.12,315.66L434.02,317.77L430.96,319.76L428.58,318.61L424.63,319.58L422.37,319.01L421.51,316.9L418.69,316.81L417.29,315.92L416.46,313L417.04,310.51L415.26,310.73L412.51,309.61L410.2,308.98L408.04,307.95L405.15,307.33L402.69,305.5L401.64,302.82L401.66,299.18L400.82,297.71L397.58,297.16L396.62,297.71L394.54,297.42L393.03,296.65L390.14,293.79L388.43,294.65L387.44,294.15L386.83,292.84L384.79,291.52L382.77,291.34L382.05,290.27L382.29,288.36L382.15,285.42L377.33,283.3L375.05,279.79L373.26,275.11L371.84,275.72L366.75,278.8L364.33,278.93L361.02,279.71L357.91,279.51L355.87,278.47L356.74,276.65L356.44,274.01L357.58,273.75L361.16,271.98L364.88,269.16L366.87,268.07L367.4,266.39L370.11,262.33L371.12,261.15L371.99,259.45L372.81,257.7L372.83,256.14L371.88,255.07L369.98,255.01L366.83,255.44L367.1,252.61L369.92,250.63L372.32,247.79L372.53,244.78L373.84,244.06L382.09,242.97L384.92,243.52L388.35,242.85L390.32,241.18L391.94,239.41L393.68,239.94L395.08,240.54L398.5,239.46L399.38,237.7L398.04,234.91L397.49,231.58L397.35,228.41L395.95,225.5L392.95,222.76L389,221.25L386.88,219.46L384.68,209.94z" }, { "id":"CR-G", "title":"Guanacaste", "d":"M6.83,70.02l0.61,1.29l-0.98,0.17l-0.62,-0.67l-0.89,0.13l-0.31,-0.36l1.11,-0.26l0.4,-0.35L6.83,70.02zM82.02,10.49l20.19,7.42l10.88,-0.04l11.43,5.9l7.3,3.35l0,0l-1.06,4.17l-0.4,4.53l-0.67,3.09l-2.3,-0.05l-3.1,-2.17l-3.03,-3.74l-1.9,-0.01l-1.97,1.5l-4.6,0.07l-1.23,1.37l-1.75,5.49l-0.82,1.47l-2.59,2.27l-3.75,1.72l-2.57,0.59l-1.16,1.94l5.29,8.77l1.84,2.32l0.82,2.7l1.05,2.69l1.63,3.02l3.18,2.87l6.27,2.43l3.16,1.94l0.14,3.24l1.93,5.68l1.95,1.8l3.63,0.31l5.96,-0.97l5.05,-0.54l3.74,0.24l3.65,0.89l3.63,2.33l3.64,4.99l1.97,0.47l2.99,0.15l2.46,-0.53l2.55,0.68l2.45,1.44l4.91,0.85l2.51,1.32l2.26,0.81l0.63,2.12l1.24,3.32l0.26,3.17l1.73,4.52l4.1,5.04l3.28,2.17l3.06,2.92l2.27,3.35l7.76,0.08l5.43,2.97l4.55,4.85l4.04,2.72l3.04,1.88l3.06,0.44l-0.06,2.25l0.18,2.36l0,0l-2.61,1.11l-2.82,-0.15l-5.49,-5.46l-1.79,-2.61l-3.87,-2.96l-3.03,-1.71l-2.89,-0.44l-0.05,-1.79l0.26,-0.99l-0.71,-0.79l-0.91,0.49l-3.02,-1.36l-0.47,1.92l-1.94,0.69l-1.18,-1.01l-3,-0.32l-0.38,1.05l-1.09,0.15l-2.59,-0.16l5.06,4.43l3.52,2.74l1.74,0.36l-0.16,-1.73l2.31,0.4l2.31,2.6l3.26,1.64l3.18,0.61l2.43,0.68l2.75,1.95l0.39,3.86l4.39,0.69l4.36,1.84l3.32,1.59l0,0l-0.09,3.24l-0.8,6.9l2.52,3.86l-1.13,0.72l-1.38,4.43l-2.39,3.95l0,0l-3.18,-2.63l-4.35,-1.27l-3.41,1.59l-3.11,4.25l-1.03,4.42l-0.28,2.49l-3.33,8.87l1.05,6.91l-3.89,0.97l-4.16,3.81l0.73,3.79l-2.42,4.34l-2.53,0.07l-4.15,-2.49l-10.06,-4l-4.43,-2.42l-3.68,0.1l0.65,7.01l0,0l-1.89,-0.34l-0.39,-0.53l0.09,-0.49l-1.53,-1.79l-2.11,-1.62l0.23,-0.79l0.97,0.19l0.66,0.63l1.41,0.28l0.53,-0.3l0.23,-0.48l-0.48,-1.15l-1.2,0.47l-3.48,-1.23l-1.01,-0.81l-1.28,-0.23l-2.89,1.21l-1.17,1.49l-1.42,0.34l-0.53,-0.54l-0.88,-0.14l-0.7,-0.45l-1.37,0.16l-2.03,-1.08l-2.43,-0.38l-0.58,0.3l-1.68,-0.46l-1.14,-0.59l-1.46,-0.33l-1.5,-0.99l-1.58,-1.52l-0.38,-1.99l-1.13,-2.4l0.71,-0.39l0.41,-1.41l-0.21,-1.33l-1.22,-2l-1.45,-1.43l-0.13,-0.8l-1.19,-0.45l-1.1,-0.94l-2.86,-1.58l-1.85,-0.64l-0.79,-0.81l1.13,-2.2l-0.08,-0.89l-2.98,-3l-1.06,-0.32l-0.83,-0.76l-0.56,-1.42l-1.49,-1.34l-5.4,-0.14l-0.8,0.21l-1.03,0.96l-1.32,-0.99l-1.46,0.07l1.23,0.76l0.79,1.12l0.66,0.18l0.8,-0.57l1.46,0.37l2.4,-1.13l0.89,-0.03l1.72,0.72l1.49,1.61l1.13,1.83l2.42,1.53l0.48,0.93l-0.01,0.71l-0.68,1.81l0.21,1.51l0.57,0.67l2.12,0.46l1.58,0.9l4.04,3.45l0.51,2.4l-0.46,1.28l-0.11,2.65l0.51,1.91l-0.54,1.05l0.33,2.35l-0.23,0.48l-0.62,0.3l-0.14,0.88l1.32,5.15l2.22,3.69l-2.41,-2.19l-1.19,-0.19l-0.22,-0.31l-1.28,0.03l-0.66,-0.8l-3.68,0.85l-1.16,1.23l0.71,0.45l0.8,-1.1l1.06,0.05l0.7,0.89l-0.85,0.52l-0.63,0.83l0.22,0.44l0.53,-0.04l1.65,-1.44l0.09,-0.53l-0.35,-0.62l0.58,-0.17l0.75,0.49l2.39,0.07l1.01,0.67l0.39,0.93l-0.18,0.4l-1.11,0.21l1.19,0.72l0.22,0.62l-0.94,1.05l0.51,1.64l0.58,-0.57l2.15,2.23l1.36,0.99l4.23,1.77l0.97,0.9l0.56,1.77l1.1,0.5l1.52,2.32l2.07,1.08l1.1,0.01l0.67,-0.7l0.39,0.62l-0.19,1.81l-0.36,0.62l-0.66,-0.09l-1.05,-1.03l-1.95,-0.15l-0.97,-0.58l-1.14,-1.07l-0.78,-1.47l-0.94,0.88l-0.62,-0.14l-0.49,0.39l0.74,0.76l1.2,-0.12l1,1.82l0.84,0.19l0.61,1.07l1.33,-0.34l0.78,1.34l0.44,0.05l0.27,0.54l0,0l-0.87,1.21l-1.59,5.07l-2.24,2.25l-2.29,0.52l-3.63,-0.31l-1.06,1.13l-4.18,0.86l-2.79,0.88l-3.84,0.45l-3.03,2.91l0.02,2.89l2.05,1.56l4.11,0.93l3.64,0.48l4.47,1.55l4.41,7.9l4.16,0.58l-1.36,2.92l-1.6,2.7l-0.95,3.14l0.71,5.06l-2.23,4.91l-2.81,2.44l-2.49,3.35l0,0l-0.9,-0.95l-2.85,-2.19l-3.47,-1.8l-0.04,-0.75l0.53,-0.52l0.23,-0.88l-1.12,-2.97l-5.18,-4.03l-1.76,-0.99l-2.07,-0.68l-2.16,-0.33l-0.03,-0.97l-1.53,-1.3l-4.35,-2.65l-1.85,-0.33l-3.08,-1.49l-1.81,-0.55l-0.71,0.04l-0.54,1.1l-1.68,-0.19l-2.2,-0.91l-0.92,-0.98l-0.97,-0.5l-1.99,-0.33l-2.52,0.38l-0.59,1.63l-0.54,0.44l-0.8,-0.05l-3.52,-2.02l-0.34,-1.24l-0.61,-0.4l-1.91,1.22l-0.93,-0.14l-0.36,0.53l-0.48,-0.14l-0.16,-1.64l-1.93,-1.57l-0.8,-0.09l-1.73,0.87l-2.03,-0.02l-2.51,-0.95l-2.08,0.56l-1.14,-0.81l-2.07,-0.24l-1.76,-1.52l-1.73,0.34l-1.19,-0.28l-3.01,0.02l-0.7,-0.45l-0.21,-1.33l-0.97,-0.85l-1.41,-0.41l-1.24,0.08l-0.71,0.39l0.04,0.62l-0.31,0.48l-2.77,-1.39l0.4,-0.84l0.58,-0.26l0.27,-0.84l-0.42,-2.75l-0.78,-1.64l-1.36,-1.87l0.18,-0.71l-1.22,-2.4l-3.81,-4.76l-0.56,-1.24l-1.41,-1.29l-1.37,-0.76l-3.69,-3.83l-1.05,-1.51l-0.69,-2.62l-0.52,-0.89l-2.37,-2.06l-0.35,-0.84l-0.48,-0.18l-0.87,-1.42l-2.85,-3.61l-0.07,-1.99l-1.14,-1.25l-1.37,-5.81l-1.23,-1.52l-0.12,-1.37l-2.17,-4.8l-3.02,-4.1l0.14,-1.11l-0.47,-1.95l0.06,-1.77l-2.22,-4.89l-0.16,-1.95l0.59,-1.94l-1.08,-3.82l2.37,-2.15l0.89,-1.37l-0.78,-2.27l-1.05,-1.74l-1.58,-1.65l-0.61,-1.07l-0.93,-0.32l-0.44,-0.58l-0.49,0.22l-0.66,-0.67l-0.49,-0.05l-0.08,-0.62l0.72,-1.72l1.29,-0.92l0.66,-0.04l0.61,0.67l0.54,-0.92l0.8,0.09l0.45,-0.66l0.37,-1.55l0.67,-0.39l1.67,-3.4l0.58,-0.13l0.49,-0.57l0.63,-1.55l0.53,0.18l0.39,0.89l2.21,0.37l0.75,-0.39l0.72,-0.79l1.09,-3.89l-0.51,-2.57l1.24,0.14l0.48,0.93l1.16,-0.61l0.99,-1.5l0.19,-1.5l-0.66,-0.63l-0.38,-2.57l-1.46,-0.94l0.23,-0.53l-0.44,-0.36l-0.89,-0.14l-0.48,-0.49l-0.03,-1.6l-1.01,-1.07l0.76,-0.75l-0.57,-1.11l-1.37,-0.94l0.09,-0.4l2.97,-0.51l0.59,-1.1l0.8,-0.57l-0.08,-0.71l0.58,-0.79l-0.04,-0.35l1.16,-0.88l1.28,0.41l0.93,-0.17l0.48,1.16l1.19,1.03l1.29,-0.04l3.61,-3.03l2.22,-0.82l1.79,-1.71l0.13,0.4l0.79,0.54l0.8,-0.04l1.12,-1.45l-0.18,-0.4l0.18,-0.44l-0.74,-1.42l0.13,-0.31l2.04,-0.16l1.47,-0.65l0.54,-0.53l-0.34,-1.6l0.36,-0.53l1.5,0.15l0.45,-0.62l2.17,0.42l0.54,-0.44l0.41,-0.88l0.23,-1.5l1.33,0.23l0.37,-1.81l0.72,-0.66l1.11,-0.43l0.28,-1.55L61,113.13l-0.66,-0.67l-3.76,-1.32l-0.89,0.35l-1.34,1.19l-1.95,0.38l-0.02,2.22l-0.71,0.3l-0.45,1.33l-1.64,0.47l-0.4,0.66l-1.11,-0.41l-0.08,-0.4l1.69,-1l0.5,-1.59l-0.75,-0.54l0.63,-1.19l0.44,0.05l0.41,-0.66l0.97,0.05l0.72,-1.15l-0.13,-0.36l-0.84,-0.36l-0.8,0.04l0.81,-1.01l0.97,-0.08l0.59,-1.19l-0.48,-0.67l0.14,-0.4l1.42,0.37l2.18,-1.44l0.32,-0.75l-1.45,-6.84l-0.98,-2.62l0.48,-1.47l-0.25,-2l0.96,-3.14l0.1,-1.24l-1.27,-1.92l-2.16,-2.02l-0.88,-1.29l-0.91,-2.22l-2.71,0.24l-0.83,-1.03l-1.38,0.08l-0.66,-0.67l-0.75,-0.1l-1.69,0.3l-1.68,-1.08l-1.55,-0.01L38,78.43l-1.29,0.65l-1.17,1.72l-2.38,-1.44l-2.74,-0.86l-0.89,0.04l-0.35,-1.16l-0.52,-0.89L27.99,76l-0.35,-0.85l0.19,-1.37l2.83,0.6l0.14,-0.8l-1.18,-2.32l-2.49,0.69l-1.46,-0.1l-2.39,-1.04l-5.11,-0.12l-1.39,-3.44l-0.66,-0.54l-2.35,-0.69l-5.13,-2.22l-1.01,-0.85l-1.68,-0.63l-1.02,0.04l-0.71,0.53l-3.2,0.82L0,63.35l1.83,-1.1l2.53,-0.51l1.69,-0.87l0.67,-0.7l2.84,-0.42l1.16,-0.61l1.69,-0.21l0.58,-0.39l0.4,-0.75l2.27,-0.47l1.04,-2.08l-0.79,-0.98l-3.01,-1.62l2.09,-0.03l0.54,-0.31l5.32,0.98l0.71,-0.53l1.38,0.1l1.1,0.72l0.71,-0.17l1.23,1.3l0.08,0.62l-0.89,0.75l0.43,2l0.57,0.54l1.24,0.14l1.23,1.12l1.69,0.1l0.71,-0.44l0.18,-0.62l-0.22,-0.67l-1.5,-1.57l0.14,-0.49l0.98,0.01l0.77,-1.37l0.84,0.36l0.36,-0.58l1.78,-0.12l0.67,0.23l0.44,1.02l0.98,-0.79l1.73,0.24l0.63,-0.57l1.24,-0.03l1.02,0.32l0.66,0.58l0.45,-0.31l0.8,0.1l0.53,0.76l-0.23,0.84l0.88,0.72l0.97,0.14l0.45,-0.48l0.02,-1.91l1.25,-0.39l0.45,-0.79l-0.26,-0.71l-2.86,-1.49l0.44,-0.93l1.64,0.32l0.32,-0.97l0.76,-0.35l1.6,-0.08l0.72,-0.79l0.19,-1.37l-0.39,-0.89l-0.79,-0.67l-2.27,-1.17l-2.98,-3.5l-0.71,-0.41l-1.42,-0.14l-1.01,-0.76l-1.59,-0.68l-1.63,-2.01l1.48,-2.03l1.51,0.01l0.23,-0.44l-0.48,-0.71l0.09,-0.44l0.71,-0.44l1.2,0.19l0.45,-0.4l1.76,1.61l0.26,0.98l0.35,0.31l4.17,0.79l1.65,-0.48l1.03,-0.92l1.11,-0.39l0.59,-0.84l0.23,-0.84l-0.42,-3.25l-1.14,-1.21l-0.97,-0.36l-1.15,-1.16l-1.59,0.07l3.17,-5.72l3.21,-4.96l0.77,-1.75l6.64,-10.57l0.83,-1.56l0.61,-2.38l0.75,-0.63L65.01,0l8.28,1.27l1.45,0.39l1.44,1.42l3.68,4.73L81,9.83L82.02,10.49z" }, { "id":"CR-H", "title":"Heredia", "d":"M368.42,83.69L369.96,86.14L370.5,87.4L372.74,88.6L373.42,89.31L374.2,89.81L375.43,90.18L376.51,90.84L376.89,91.49L377.13,93.11L378.09,94.13L379.76,94.65L381.98,95.03L382.86,95.49L383.24,96.24L383.38,96.98L384.25,98.13L385.68,98.3L387.32,97.83L389.61,96.93L390.86,95.77L394.27,95.97L395.6,96.39L397.43,96.22L398.59,95L400.12,94.06L401.21,92.93L401.86,91.55L403.35,90.88L404.09,90.79L407.25,91.04L409.36,89.25L411.03,87.05L411.58,86.57L413.06,86.76L416.87,86.66L417.96,86.22L417.96,86.22L420.9,87.59L420.61,89.62L420.02,91.43L423.2,94.29L425.43,96.02L426.85,97.37L428.01,100L422.78,100.03L416.5,99.8L414.2,102L411.86,102.53L409.73,102.64L407.67,105.07L406.12,107.54L403.36,107.38L401.94,110.43L401.52,116.34L402.14,118L403.8,120.09L401.36,125.71L401.29,129.53L403.79,135.24L405.01,140.12L403.56,144.09L404.2,146.39L402.05,147.83L399.05,147.8L395.51,152.98L395.01,155.77L396.81,160.86L399.61,164.54L400.54,169.77L400.86,175.42L399.39,178.47L397.3,181.99L395.81,186.94L394.22,189.64L392.17,192.64L390.05,195.18L386.38,197.71L386.38,197.71L377.17,203.97L375.5,206.15L375.62,208.69L375.33,215.22L373.71,217.28L371.43,217.8L368.04,218.01L367.22,219.65L367.09,221.33L366.61,222.55L367.69,224.49L370.08,227.94L369.58,230.84L368.56,233.7L366.11,236.53L363.05,238.35L360.15,239.53L357.27,239.49L356.14,240.1L353.79,240.45L350.19,241.53L349.31,240.98L346.43,240.59L342.95,241.79L340.53,241.56L339.61,241.36L338.33,240.81L336.13,240.24L336.13,240.24L334.75,235.83L337.67,233.27L338.76,230.99L340.08,226.4L340.07,223.74L341.43,220.88L341.48,215.91L340.58,201.39L340.98,178.91L341.1,154.64L341,121.93L342.34,83.25L342.34,83.25L343.53,83.27L346.65,82.84L347.88,86.31L349.6,86.68L351.59,85.45L352.4,85.41L353.66,85.7L356.71,87.39L358.62,87.52L359.79,87.19L360.33,85.4L361.23,84.49L362.04,84.26L362.9,84.44L364.67,85.22L364.85,83.88L365.27,82.8L365.91,82.47L367.25,82.54z" }, { "id":"CR-L", "title":"Limón", "d":"M446.24,70.96L447.62,76.75L449.88,83.09L446.21,83.67L445.06,80.2L444.11,76.53L442.39,72.87L441.06,76.15L442.2,79.62L443.73,83.48L444.68,87.14L444.49,91L442.77,94.09L439.53,95.44L443.35,94.86L445.83,91.97L447.16,95.44L448.12,91.97L450.35,86.48L450.66,89.05L452.43,94.58L452.13,95.09L452.5,96.28L452.76,96.18L455.03,101.72L456.38,105.91L460.44,115.02L460.86,116.67L462.67,120.15L462.82,121.93L462.47,124.14L465.2,130.74L465.89,132.08L466.08,131.29L463.28,123.62L463.64,122.92L467.27,131.44L467.92,132.43L468.55,134.88L469.65,137.64L471.77,140.87L475.21,147.44L478.88,153.17L481.03,157.55L482.72,159.35L487.7,166.34L489.59,169.7L494.35,174.43L494.29,175.31L493.54,175.17L492.58,174.31L492.01,174.15L492.04,174.74L494.97,176.79L495.2,176.04L496.03,176.76L502.19,184.4L506.77,191.16L507.11,192.18L507.67,192.9L507.62,193.48L508.79,194.74L509.82,196.43L509.99,197.15L509.35,198.87L509.41,199.34L510.43,198.82L510.82,198.95L510.98,198.6L510.35,196.74L508.51,192.96L508.92,192.48L509.7,193.2L512.08,196.79L519.06,205.05L519.36,205.77L519.01,205.72L518.65,206.11L519.12,206.82L519.79,209.09L520.49,209.59L521.16,209.51L520.12,207.9L520.35,207.16L524.94,212.5L525.39,212.79L526.43,214.67L527.51,215.65L528.63,217.44L531.77,220.41L540.92,232.92L541.92,234.04L544.91,235.42L545.88,235.05L546.61,234.09L547.28,233.7L548.47,233.68L549.82,232.82L550.48,232.83L551.61,233.87L552.95,233.27L555.71,234.6L556.72,235.51L556.48,236.48L556.82,237.24L556.17,239.08L556.23,240.23L560.22,247.21L563.79,250.72L564.73,252.02L564.59,252.46L563.79,252.93L563.96,253.24L565.63,253.81L567.53,256.36L576.18,267.04L579.79,272.55L584.99,278.39L588.39,283.32L590.19,284.1L591.71,285.59L593.47,285.98L595.41,285.97L597.61,284.2L598.36,284.39L598.75,284.97L597.29,286.89L597.08,288.83L597.86,289.73L600.76,295.53L601.43,297.53L602.91,298.4L603.42,299.91L604.63,300.99L608.15,301.9L609.66,301.27L610.37,301.41L614.21,303.56L615.54,303.59L618.08,304.7L619.89,304.96L620.86,304.8L621.98,304.07L623.77,305.12L626.1,305.56L627.26,305.41L628.42,304.55L629.57,304.57L631.23,305.49L632.39,305.11L633.53,305.23L634.83,306.49L634.53,308.56L635.44,309.5L635.73,310.61L636.42,311.29L637.1,312.58L638.36,313.67L643.57,316.2L645.05,317.29L645.71,317.53L646.1,317.86L646.43,319.3L647.46,321.99L647.36,322.91L645.85,322.88L645.36,322.45L643.83,319.83L642.84,318.97L640.43,318.75L639.09,318.89L638.31,319.79L638.14,320.38L638.28,321.55L639.22,324.58L638.67,326.65L636.84,330.29L636.16,330.86L634.17,330.31L633.33,330.3L632.66,330.62L631.89,331.44L630.64,331.41L629.65,330.47L628.61,328.28L628.11,328.27L626.76,329.16L625.74,330.14L625.1,328.54L624.11,328.76L623.75,329.06L621.15,329.05L620.58,328.64L620.49,326.61L618.88,324.99L620.27,324.18L620.59,323.65L620.12,322.81L619.11,322.26L617.99,320.82L617.47,322.62L617.07,322.83L613.72,320.08L614.29,318.29L614.21,317.88L611.96,317.41L611.33,315.73L610.76,315.3L609.18,314.68L607.26,314.73L605.79,313.11L602.99,311.21L602.4,311.04L598.95,312.39L597.31,310.93L594.83,309.46L594.1,308.36L590.67,308.54L589.75,309.18L589.06,309.13L588.65,309.83L588.17,311.86L585.89,313.45L585.16,317.19L584.34,318.14L584.95,318.64L584.87,320.71L585.35,320.9L586.64,320.62L587.29,321.29L587.05,322.17L587.39,323.1L586.71,324.15L587.22,325.09L586.71,326.18L586.97,326.8L587.79,327.66L589.82,327.56L590.12,328.06L589.13,329.01L589.3,329.28L589.83,329.33L590.51,328.77L591.25,329.14L591.61,329.93L592.45,329.89L592.73,330.81L592.34,331.26L588.9,332.25L577.21,334.68L575.07,335.4L574.68,335.85L574.41,342L574.52,359.49L574.92,362.15L574.94,406.83L575.16,411.16L575.59,412.23L576.09,412.56L576.09,412.56L576.5,414.83L571.51,413.35L568.93,411.41L566.93,407.6L564.97,396.6L562.23,395.12L556.45,394.12L552.39,393.02L552.08,391.99L552.69,388.86L550.32,384.09L550.66,381.89L549.98,377.99L547.43,377.08L542.41,374.45L538.27,372.55L535.6,371.64L531.48,365.81L528.6,363.3L524.86,363.63L521.61,364.47L518.42,363.75L515.91,360.18L514.33,359.19L509.59,358.28L506.77,356.05L504.64,353.75L500.79,351.72L498.06,353L497.34,354L497.02,357.18L496.08,358.64L494,358.18L492.28,358.34L489.27,359.75L487.35,361.3L486.89,358.95L485.11,357.15L481.69,355.86L481.69,355.86L477.19,352.61L473.19,344.42L471.17,339.58L469.87,333.62L466.69,330.77L466.69,330.77L465.76,327.06L465.07,324.95L465.4,322.23L465.05,319.65L463.7,316.23L462.43,314.13L472.88,304.51L476.43,301.81L480.53,297.9L481.74,293.83L481.91,289.1L483.78,285.87L485.95,283.11L488.47,280.27L495.9,269.97L499.54,265.89L498.06,262.07L498.42,260.73L498.37,256.35L496.96,253.04L496.17,249.08L496.06,244.88L498.75,244.34L498.69,242.21L499.61,240.1L502.17,238.88L503.33,237.12L478.03,237.29L446.23,237.12L426.72,227.84L413.7,222.37L407.86,219.06L383.02,205.77L383.02,205.77L385.28,199.93L386.38,197.71L386.38,197.71L390.05,195.18L392.17,192.64L394.22,189.64L395.81,186.94L397.3,181.99L399.39,178.47L400.86,175.42L400.54,169.77L399.61,164.54L396.81,160.86L395.01,155.77L395.51,152.98L399.05,147.8L402.05,147.83L404.2,146.39L403.56,144.09L405.01,140.12L403.79,135.24L401.29,129.53L401.36,125.71L403.8,120.09L402.14,118L401.52,116.34L401.94,110.43L403.36,107.38L406.12,107.54L407.67,105.07L409.73,102.64L411.86,102.53L414.2,102L416.5,99.8L422.78,100.03L428.01,100L426.85,97.37L425.43,96.02L423.2,94.29L420.02,91.43L420.61,89.62L420.9,87.59L417.96,86.22L417.96,86.22L419.9,84.7L421.91,83.8L424.35,83.61L425.65,82.52L426.72,82.41L428.5,83.14L431.86,82.49L433.47,81.67L435.57,78.55L436.01,76.55L434.22,71.35L434.19,69.14L434.79,65.46L434.55,64.12L433.83,62.89L432.84,61.94L433.56,59L433.04,58.05L430.34,55.05L430.29,54.31L430.5,53.92L432.57,54.37L434.51,55.02L438.49,58.59L441.72,62.28z" }, { "id":"CR-LA", "title":"Laguna de Arenal", "d":"M222.11,143.39L225.49,143.07L227.7,146.13L229.48,146.14L230.72,147.09L231.15,148.17L231.12,149.44L231.72,150.47L230.76,150.9L226.38,150.61L223.39,150.69L223.39,150.69L220.07,149.11L215.71,147.26L211.33,146.58L210.94,142.71L208.18,140.77L205.75,140.08L202.57,139.47L199.31,137.83L197,135.23L194.69,134.83L194.85,136.56L193.11,136.21L189.59,133.47L184.53,129.04L187.12,129.2L188.21,129.06L188.59,128.01L191.59,128.33L192.76,129.34L194.7,128.65L195.17,126.73L198.19,128.09L199.1,127.6L199.81,128.39L199.55,129.38L199.6,131.17L202.48,131.62L205.52,133.32L209.39,136.28L211.18,138.89L216.67,144.35L219.49,144.5z" }, { "id":"CR-P", "title":"Puntarenas", "d":"M392.74,482.35l-1.1,0.11l-0.92,-0.41l-0.34,-0.67l0.5,-0.87l0.01,-0.88l3.74,0.19l0.13,0.31l-1.3,1.61L392.74,482.35zM443.73,440.51l-0.67,0.3l-0.35,-0.31l-0.69,-3.62l0.93,-0.47l0.66,0.32l0.81,1.86l-0.2,1.28L443.73,440.51zM443.13,433.72l-0.86,1.22l-0.75,-0.1l-0.43,-0.62l0.18,-2.77l-0.25,-6.7l-1.98,-5.67l0.93,-0.16l0.97,0.24l0.63,1.73l-0.01,0.75l1.28,2.97l-0.34,2.02l0.11,1.19l1.55,4.92l-0.23,0.61L443.13,433.72zM201.5,248.19l-3.67,0.18l-0.97,-0.58l-0.61,-0.89l0.14,-0.44l2.09,-0.73l0.09,-0.57l-0.39,-0.58l3.23,0.43l-0.2,2.21l0.65,0.76L201.5,248.19zM169.73,237.13l2.2,1.71l0.35,0.62l-3.58,-0.13l-1.16,1.05l-0.79,-0.32l-0.52,-1.2l-1.19,-0.81l0.01,-0.53l0.67,-0.39l1.55,0.06l0.4,-0.44L169.73,237.13zM181.31,236.38l2.92,1.09l1.99,0.24l0.96,0.85l0.76,-0.12l0.22,0.49l-0.54,0.44l-2.65,-0.25l-5.42,-1.79l-1.24,0.07l-0.13,-0.4l1.02,-0.43L181.31,236.38zM177.08,236.2l-0.49,0.39l-3.84,-0.97l-0.75,-0.54l0.18,-0.48L177.08,236.2zM159.97,240.03l0.79,0.72l1.81,0.24l1.33,-0.96l1.42,0.1l0.3,1.2l0.8,-0.17l0.25,1.11l0.8,-0.08l1.34,-1.62l0.98,-0.43l0.84,0.01l4.61,2.84l1.17,1.87l2.32,2.46l0.92,0.28l2.52,-0.33l2.65,0.43l0.8,-0.48l2.79,-0.14l1.98,0.91l1.9,0.42l1.54,1.17l1.76,0.64l0.52,0.67l-0.19,1.02l0.25,1.2l0.52,0.8l-0.45,0.83l-1.2,0.38l-1.48,1.71l-0.33,1.37l0.21,0.84l1.84,1.83l0.97,-0.03l0.34,0.84l-0.05,0.75l0.39,0.36l0.84,-0.12l0.79,0.94l-0.31,0.39l-1.5,-0.19l-2.01,1.88l-0.14,0.57l0.35,0.76l1.53,1.26l1.23,0.46l0.88,-0.08l0.36,-0.44l1.28,-0.12l0.89,-0.52l1.54,0.37l1.15,-0.16l2.6,0.69l0.08,0.4l-0.36,0.79l-2.13,0.82l-0.46,1.14l-1.99,0.07l-0.98,0.25l-0.31,0.39l-0.55,1.67l-0.63,0.74l-3.33,0.89l-0.23,0.44l0.52,1.02l-1.67,2.85l-0.46,1.5l-0.62,0.35l-1.81,-0.24l-0.45,0.44l-0.66,-0.18l-0.72,1.8l0.6,1.82l-0.01,1.02l-0.36,0.83l-1.2,0.61l-2.2,-0.64l-1.66,-1.52l-1.76,-0.77l-0.66,-0.67l-1.64,0.25l-1.16,0.92l-1.39,2.06l-0.33,1.46l0.21,1.11l2.38,0.96l0.8,0.73l0.12,0.65l-1.03,1.71l-1.56,1.04l-3.1,0.81l-0.93,0.52l-1.34,1.71l-2.62,0.99l-2.69,3.19l-1.68,4.18l-0.11,1.99l-2.42,7.44l-0.72,1.63l-2.75,0.9l-0.32,0.97l0.21,1.06l-0.27,0.3l-0.83,-1.02l-0.39,-1.15l-0.96,-0.67l-2.16,-0.46l-1.66,-1.74l-0.61,-1.33l-0.43,-5.57l-0.74,-0.93l-1.93,-1.39l-7.91,-8.7l-1.03,-3.41l-0.69,-1.33l-0.96,-0.94l-0.77,-2.17l-2.55,-3.06l0,0l2.49,-3.35l2.81,-2.44l2.23,-4.91l-0.71,-5.06l0.95,-3.14l1.6,-2.7l1.36,-2.92l-4.16,-0.58l-4.41,-7.9l-4.47,-1.55l-3.64,-0.48l-4.11,-0.93l-2.05,-1.56l-0.02,-2.89l3.03,-2.91l3.84,-0.45l2.79,-0.88l4.18,-0.86l1.06,-1.13l3.63,0.31l2.29,-0.52l2.24,-2.25l1.59,-5.07l0.87,-1.21l0,0l-0.27,0.48l0.92,1.12l1.67,0.77l3.86,3.45l2.25,0.51l0.3,1.24l0.61,0.76L159.97,240.03zM152.24,212.97l0.93,0.1l0.97,-0.25l2.25,1l2.39,0.51l0.66,0.45l0.76,-0.13l0.39,0.58l-0.36,0.75l-0.97,0.08l-1.54,-0.72l-0.76,0.44l-5.17,-0.94l-0.96,-1.21l-0.27,0.13l-0.18,0.53l0.74,1.16l0.88,0.45l1.11,0.06l0.48,0.76l0.58,-0.04l0.49,-0.57l0.62,0.32l0.66,-0.13l1.06,0.28l1,1.34l0.53,0.32l1.15,-0.21l1.2,-0.74l1.72,0.02l0.08,0.66l-0.5,0.88l-0.93,0.43l-0.05,0.4l-3.56,1.47l-0.97,-0.14l-4.04,0.84l-3.05,-0.25l-2.95,-1.49l-0.74,-0.76l-0.61,-0.94l-0.98,-3.68l-0.57,-0.8l0.54,-0.92l1.02,0.05l2.85,-1.34l1.99,0.2L152.24,212.97zM220.12,173.8l3.35,4.88l6.39,4.45l4.16,-1.44l2.55,-1.57l2.91,-0.95l1.98,0.7l1.96,2.49l2.37,2.48l1.08,3.78l-1.57,3.8l-1.55,2.41l-1.52,3.22l2.22,1.5l-0.39,2.61l0.31,5.13l0.03,3.18l2.98,6.04l1.14,1.93l2.74,1.25l0.67,3.85l0.76,2.41l6.73,0.11l3.52,0.42l2.96,2.98l0.44,3.57l-0.95,3.37l-4.33,1.62l-2.98,2.8l-2.45,3.24l-2.98,0.25l-3.1,0.08l-1.62,1.83l-2.29,4.91l-2.34,0.76l-1.39,1.77l-0.25,3.47l1.5,2.44l4.86,0.85l3.45,-0.15l2.82,0.16l2.9,0.79l0.35,2.53l1.01,1.3l2.04,0.93l1.64,1.23l0,0l-2.01,2.25l-0.11,2.54l3.28,-0.09l1.56,4.4l2.7,-0.07l1.26,2.04l-3.48,3.1l-4.61,-0.22l-1.3,0.84l-0.54,5.67l1.56,4.52l-0.45,4.57l0.93,2.51l4.5,4.84l0.1,3.63l0.95,3.38l2.61,3.16l1.34,0.54l3.54,1.06l5.98,-0.16l3.49,-0.67l3.21,-0.43l0.93,2.68l1.94,1.62l2.9,-3.25l2.28,-3l1.88,-2.82l-1.6,-3.82l1.43,-2.4l4.45,0.63l3.27,-0.43l6.03,-0.22l3.27,-2.4l4.5,2.82l5.34,1.87l3.16,-0.03l2.58,-0.19l4.14,2.14l6.04,-2.12l4.09,0.41l1.58,0.82l0.98,2.22l-0.7,6.01l2.22,3.4l2.21,0.75l3.75,-1.6l4.19,1.73l-0.51,6.65l0.33,3.85l3.37,1.35l2.58,4.03l3.38,1.7l3.76,2.84l0.33,1.66l1.46,2.9l2.92,-0.66l1.79,4.45l3.71,3.36l3.55,-0.67l1.21,-1.99l1.51,-1.54l3.07,0.67l0.61,3.33l2.25,4.78l2.6,2.75l2.17,1.56l2.07,0.12l2.27,0.97l-2.01,4.38l0.03,3.17l0.57,6.5l5.18,4.3l6.42,3.28l4.97,0.85l4.29,-5.19l6.39,4.49l3.55,5.95l2.27,5.24l2.11,3.69l3.6,1.11l4.6,2.12l3.16,4.35l9.02,3.73l2.52,1.89l4.07,-0.46l3.13,-1.47l1.85,-1.66l1.41,-3.09l0.07,-3.97l2.8,-2.84l1.56,-4.19l-0.27,-1.61l-1.17,-2.73l-4.03,0.05l-2.68,-1.14l-2,-1.73l0.14,-1.16l2.22,-3.11l0.41,-4.16l-0.26,-1.2l1.66,-2.46l2.26,-1.56l1.79,-1.78l2.83,-5.95l2.75,-2.72l1.76,-2.99l2.67,-3.59l0,0l3.43,1.29l1.77,1.8l0.46,2.35l1.92,-1.55l3.01,-1.41l1.72,-0.16l2.08,0.46l0.94,-1.47l0.32,-3.18l0.72,-1l2.73,-1.28l3.85,2.03l2.13,2.3l2.82,2.23l4.74,0.91l1.58,1l2.51,3.56l3.18,0.72l3.26,-0.83l3.73,-0.33l2.89,2.52l4.12,5.82l2.67,0.91l4.13,1.9l5.02,2.63l2.56,0.91l0.68,3.9l-0.34,2.2l2.37,4.78l-0.61,3.13l0.32,1.03l4.05,1.1l5.78,1l2.75,1.48l1.96,11.01l2,3.8l2.58,1.95l4.99,1.48l-0.41,-2.27l0,0l0.33,0.22l5.6,-3l1.22,-0.13l1.13,0.33l2.27,4.14l1.18,1.54l9.97,6.27l2.97,3.25l7.1,1.81l3.44,2.42l0.74,0.85l1.36,4.28l3.8,3.34l0.11,2.05l-0.33,1.13l-5.76,3.07l-1.34,2.63l-1.95,2.46l-1.23,0.73l-6.78,1.38l-1,0.44l-1.55,1.71l-1.38,0.5l-5.1,0.73l-1.38,0.5l-1.62,1.03l-2.25,2.54l-0.41,1.51l0.36,0.92l2.6,2.56l-0.02,0.91l-0.55,1.05l-0.92,0.67l-3.45,1.52l-0.27,2.27l-3.28,0.77l-1.08,0.81l0.64,1.59l-0.07,0.73l-0.64,0.89l-0.01,0.62l2.63,3.11l1.3,3.22l2.98,2.21l2.58,1.33l0.58,0.72l0.44,2.24l1.41,1.5l0.5,1.93l1.61,1.56l2.01,2.87l1.01,1.97l-0.14,1.41l-1.27,1.44l0.1,0.57l0.94,1.04l-0.1,3.39l1.14,2.57l0.03,1.21l-0.63,1.57l-1.55,1.41l-0.53,0.87l0.87,4.63l0.08,3.06l-0.87,3.94l-1.83,3.86l-2.15,3.01l-1.49,1.16l-2.23,1.09l-4.15,1.1l-1.92,0.02l-1.41,-0.42l-2.03,-0.1l-4.1,4.22l-4.46,5.34l-3.85,3.43l-4.63,2.57l-4.26,1.33l-1.31,0.65l-0.64,0.67l-0.25,1.12l0.14,1.42l1.31,2.12l3.54,1.09l0.89,0.58l4.39,3.53l1.37,2.12l0.73,0.07l2.73,-0.96l4.5,1.22l2.07,1.11l0.38,0.8l0.45,3.06l0.71,1.54l-0.34,5.81l3.01,1.75l1.5,1.55l0.37,4.07l-0.51,3.1l3.33,8.65l0.17,5.76l-1.07,5.45l-0.17,3.74l-0.21,-0.27l-1.27,-0.11l-0.7,-0.41l-2.17,-3.69l0.37,-1.22l-0.06,-1.71l0.27,-0.3l0.92,-0.12l0.63,-0.6l0.47,-1.44l0.16,-1.62l-0.43,-2.86l-1.76,-2.36l-0.41,-1.5l-1.2,-1.43l-0.38,-0.93l-0.35,-2.56l-2.49,-5.58l-6.81,-10.01l-3.58,-3.5l-3.62,-1.47l-10.02,-7.66l-9.53,-5.45l-2.59,-2.6l-1.87,-1.26l-1.41,-2.09l-0.26,-2.56l0.25,-1.71l0.87,-1.74l3.17,-2.67l2.09,-1.24l1.03,-1.17l0.45,-3.16l1.43,-1.51l0.54,-0.96l-0.07,-0.84l-1.75,-3.38l-1.84,-2.72l-5.31,-6.08l-0.95,-3.41l-0.94,-1.42l0.53,-0.08l0.91,0.59l0.63,1.9l0.78,0.63l0.66,-0.12l-0.25,-0.8l-0.56,-0.41l0.06,-0.88l0.62,-0.38l2.19,0.44l2.24,-2.34l1.55,0.29l0.01,-0.42l-0.76,-0.43l-1.19,-0.11l-3.11,1.66l-0.92,-0.02l-1.08,-0.94l-0.86,-1.47l-1.31,-0.46l-0.74,-0.63l-4.64,-6.29l-0.28,-1.46l1.55,-2.96l0.88,0.37l0.45,1.81l0.65,0.54l1.18,0.33l0.12,0.62l-0.86,1.26l0.82,0.94l-1.04,1.39l0.85,1.56l2.71,-1.58l1.03,-1.08l1.05,0.06l0.74,0.5l0.68,-0.96l-0.08,-0.53l-1.22,-0.59l-0.93,0.42l-0.39,-0.23l-0.45,-1.72l-3.71,-4.64l-1.79,-0.82l-0.99,-1.25l-0.89,0.6l-0.56,-0.58l-0.57,-0.05l-0.36,0.35l0.04,0.26l1.31,0.46l0.3,0.58l0.07,1.1l-0.41,0.83l-0.66,0.3l-0.66,-0.06l-0.65,-0.58l-1.89,-0.12l-1.13,-0.94l-0.93,0.38l-0.83,-0.19l-0.3,-0.31l0.41,-0.78l-0.17,-0.49l-0.74,-0.32l-2.68,-0.09l-1.01,2.32l-0.61,-0.19l-1.33,-2.18l-0.96,-2.96l-0.57,-0.27l-1.55,0.54l-2.76,-0.93l-1.06,0.11l-1.43,1.03l-2.5,-3.13l-0.79,-0.41l-1.32,-0.15l-0.65,-0.32l-0.38,-0.76l-1.14,-0.42l-0.44,-0.4l0.63,-0.78l-0.59,-1.77l0.55,-1.31l0.07,-1.32l1.11,-0.86l0.29,-1.84l-1.22,-0.64l-0.98,0.95l-0.62,-0.01l-0.43,-0.58l-1.1,-0.2l-1.21,-1.52l-0.83,-0.19l-0.45,0.57l-1.67,-0.51l-1.89,-0.16l-0.3,-0.18l-0.15,-1.5l-0.39,-0.27l-0.76,0.47l-0.06,0.79l-0.93,0.6l-0.19,1.1l-0.4,0.26l-0.84,-0.06l-0.12,-0.8l-0.43,-0.4l-0.67,0.34l-0.66,-0.1l-1.8,2.43l-1.74,1.12l-1.46,0.33l-1.05,-0.24l-0.33,-1.19l-2.86,-0.05l-1.53,-0.51l-1.14,0.03l-0.28,0.57l-0.58,0.34l-1.18,-0.2l-1.13,1.7l-0.25,1.93l0.42,1.06l0.7,0.32l0.85,-0.82l0.83,0.1l0.74,0.58l0.12,0.53l-0.82,1.53l0.52,0.54l0.67,-0.56l0.75,-0.03l1.17,0.86l1.43,1.61l1.48,1.04l1.45,2.71l-0.67,3.07l0.12,1.1l0.81,0.61l0.4,0.86l0.87,0.89l2.17,1.75l2.16,2.5l1.65,1.44l1.31,0.73l1.23,-0.02l1.47,1.48l2.6,-0.4l5.2,1.94l2.6,2.55l1.59,2.14l1.53,0.51l1.13,0.9l0.84,-0.47l0.19,-1.05l0.52,0.62l0.25,0.93l-1.06,7.77l0.6,1.02l3.37,3.8l-0.23,0.83l-0.68,0.91l-1.97,1.77l0.16,0.79l2.02,2.98l0.21,0.84l-1.57,4.15l0.65,2.96l-0.73,1.61l-2.05,1.33l-4.37,-1.53l-5.06,-2.42l-7.39,-2.5l-5.5,-2.51l-3.18,-1.95l-2.05,-0.74l-9.08,-1.82l-4.13,-0.25l-2.38,0.05l-4.19,0.68l-0.27,0.26l-1.22,-0.46l-1.99,0.58l-1.23,-0.2l-4.74,-3.46l-0.5,-1.81l-1.46,-1.92l-2.47,-2.28l-4.05,-2.35l-7.4,-8.26l-6.19,-6.39l-2.06,-0.61l-0.25,-0.66l-0.84,0.38l-0.72,0.74l-0.64,-1.02l-0.58,-2.39l-1.68,-2.53l0.06,-0.7l1.31,-2.4l0.42,-1.67l1.03,-1.35l1.37,-0.51l0.36,-0.61l0.46,-4.04l0.46,-1.09l2.1,-1.77l1.95,-0.67l5.77,-0.35l0.89,-0.34l0.67,-0.87l0.64,-1.79l-0.23,-2.2l0.64,-1.88l1.03,-1.22l1.33,-0.51l0.72,-0.96l-0.47,-0.62l-0.7,-0.1l-0.54,0.61l-0.4,0.04l-0.41,-2.08l0.02,-1.23l0.32,-0.79l0.45,-0.43l2.2,-0.1l1.73,-0.72l1.13,-1.88l1,0.63l0.05,-0.53l-1.03,-1.78l0.27,-0.21l2.74,-0.35l1.9,-0.58l1.53,0.55l1.52,-1.17l-0.42,-1.24l-0.35,-0.23l-0.8,0.43l-0.15,-1.72l-0.31,-0.01l-0.36,0.66l-0.42,1.53l-0.89,0.34l-3.04,-0.05l-1.97,-0.38l-0.66,2.63l-0.5,0.96l-1.6,1.08l-0.88,-0.1l-2.51,-2.68l4.79,-5.12l0.98,-0.47l0.72,-0.96l1.15,-0.38l1.07,-0.91l0.72,-1.22l2.04,-0.58l2.36,1.18l1.36,0.11l1.26,0.82l0.58,-0.34l-0.68,-1.24l-1.83,-1.4l-0.34,-0.97l0.41,-0.65l1,0.81l3.48,-0.08l1.11,-0.33l1.71,0.56l1.25,-0.68l0.12,0.53l-1.27,2.58l-0.71,2.81l-0.99,1.26l-0.88,0.34l-1.54,0.02l-1.11,0.69l-0.42,1.23l0.07,1.01l-0.45,0.83l-1.01,-0.19l-0.1,0.4l0.35,0.44l0.79,0.45l0.93,-0.29l0.66,0.1l0.63,-0.7l-0.15,-1.37l0.41,-0.74l1.5,-0.37l1.65,-1.07l1.24,-3.06l-0.06,-1.67l0.59,-1.27l0.75,-0.25l0.91,0.68l0.49,-0.08l2.14,-1.51l3.53,-0.51l0.54,-0.56l-0.34,-0.89l-0.79,-0.41l-0.32,0.61l-0.67,0.47l-2.55,0l-1.96,1.33l-0.52,-0.27l-0.08,-0.79l1.08,-1.26l-0.61,-0.5l-1.2,0.6l-0.92,-0.19l-1.29,1.08l-2.19,-0.7l-2.21,0.49l-1.4,-0.55l-0.95,-1.12l-0.79,-0.1l-0.8,0.47l-0.24,1.28l0.5,1.81l-0.18,0.39l-0.35,-0.01l-0.87,-0.72l-0.54,-1.95l-0.88,-0.19l-2.4,-1.54l-3.74,0.03l1.28,-2.84l0.16,-2.1l1.35,0.98l1.92,0.82l5.1,0.79l1.27,0.64l0.65,0.8l1.75,0.65l-0.49,-2.34l-1.18,-0.77l-0.38,-0.8l0.81,-1.26l0.71,-0.12l1.49,0.6l1.19,-0.07l0.19,-0.88l-0.52,-0.58l-1.63,-0.2l-1.37,0.2l-1.69,0.94l-0.77,1.62l-0.71,0.61l-3.23,-2.04l-0.58,0.17l-1.75,-0.6l-0.7,-0.54l-0.34,-1.11l0.14,-0.39l0.69,0.89l1.84,0.47l1.17,0.99l0.92,0.06l0.49,-0.48l-0.04,-0.53l-3.46,-0.98l-0.44,-0.32l-0.33,-1.24l-0.39,-0.27l-0.74,-0.23l-1.88,1.47l-0.71,0.08l-0.43,-0.36l-0.04,-0.57l0.5,-0.83l2.37,-2.03l0.55,-1.14l-0.21,-0.88l0.53,-3.12l-0.2,-1.63l-1.03,-1.96l0.06,-0.66l-0.62,-2.46l-0.82,-1.43l-0.03,-0.97l0.42,-1.32l0.67,-0.3l2.33,0.08l0.01,-0.35l-2.54,-0.88l-0.63,-1.86l0.16,-1.5l0.67,-0.47l0.01,-0.35l-0.96,-0.19l-0.51,-1.16l-1.32,-0.11l-0.74,-0.36l-1.64,-2.23l-1.53,-0.86l-0.81,0.87l-0.79,0.03l-1.2,-2.49l-2.53,-1.63l0.19,-0.75l-0.25,-0.71l-1.23,-0.42l-1.07,-1.91l-3.65,-3.29l-0.41,-1.6l-2.11,-1.41l-0.97,-1.64l-1.23,-1.15l-0.81,-0.33l-1.82,0.22l-0.85,0.55l-0.47,1.15l-0.44,-0.01l-0.96,-0.72l0.9,-1.22l-0.55,-1.73l-0.13,-2.96l-0.56,-1.02l-2.31,-2.07l-3.89,-2.27l-6.49,-2.7l-2.33,-0.26l-0.26,-0.35l0.51,-1.54l-0.65,-0.89l-1.18,-0.86l-1.77,-2.5l-5.15,-3.74l-1.74,-1.7l0.15,-1.06l-0.61,-0.45l-0.62,0.08l-0.54,0.61l-3.71,-2.7l-0.2,-1.19l-0.44,0.08l-0.36,0.7l-8.93,-4.94l-8.95,-3.84l-0.65,-0.98l0.86,-1.49l-0.52,-0.45l-0.63,0.48l-0.42,1.76l-0.71,-0.01l-1.32,-0.5l-2.76,-1.72l-2.02,-0.56l-2.85,-1.5l-5.37,-1.27l-0.84,0.21l-1.47,0.95l-0.54,-2.35l-0.48,-0.27l-0.53,0.26l-0.59,0.88l-1.1,-0.15l-0.84,0.39l-0.77,-1.78l-1.18,-1.21l-1.1,-0.55l-1.19,-0.11l-0.93,0.34l-0.79,-0.06l1.13,-1.57l1.06,0.28l0.32,-0.79l-0.98,-2.88l0.63,-1.09l-1.34,-1.78l-2.41,-1.27l-1.7,-1.79l-1.08,-1.6l-1.31,-0.9l-3.95,-1.34l-1.48,-1.52l-1.46,-2.89l-1,-0.99l-0.66,-0.23l-0.41,0.66l0.52,1.11l3.48,4.15l1.57,1.08l1.8,0.6l1.46,0.06l0.53,0.32l0.25,0.93l-0.32,0.44l-1.1,0.03l-2.16,-0.65l-0.35,-0.49l-3.07,-1.32l-2.27,-1.62l-1.47,-2.41l-2.29,-0.08l-1.93,-0.98l-1.2,0.22l0.65,0.74l0.57,0.23l3.05,0.53l0.61,0.45l-0.01,0.53l-0.53,0.17l-3.36,-1.01l-1.55,-0.02l-0.44,-0.4l-2.82,-0.21l-0.44,0.17l-1.71,-1.17l-0.75,-0.19l-0.61,-0.54l0.4,-0.48l-0.07,-1.06l-0.48,-0.18l-0.63,0.79l-1.24,0.07l-0.14,0.31l0.3,0.58l-0.27,0.13l-10.3,-2.39l-0.96,-0.85l-0.54,0.52l-2.2,-0.29l-0.84,-0.37l-0.34,-1.29l-0.7,-0.27l-0.76,0.74l-1.15,-0.06l-2.28,-1l-1.33,-0.06l-2.85,-1.14l-1.85,-0.29L279.8,326l-1.45,-0.55l-0.32,0.66l-8.19,1.39l-1.91,-2.23l-0.43,-0.89l1.03,-1.22l-0.43,-0.89l-2.04,0.72l-1.35,-1.21l-0.48,-0.1l0.09,0.67l0.76,0.78l-0.26,0.24l-1.66,-1.48l-0.3,-0.67l-0.8,-0.01l-2.32,-2.02l-4.65,-2.71l-0.66,-0.54l-1.52,-2.45l0.24,-1.37l-1.22,-1.3l-0.25,-0.93l-0.65,-0.94l-0.44,-0.05l-1.14,-0.99l-1.11,0.56l-0.61,-0.23l-1.62,-1.52l-0.3,-0.71l0.94,-0.83l0.27,-0.75l-0.08,-0.71l-1,-1.12l-1.19,-0.5l-2.04,0.55l-0.35,-0.4l-0.08,-0.62l1.34,-1.4l-0.25,-1.11l0.54,-0.88l-0.13,-0.58l-1.22,-0.94l0.43,-2.87l0.81,-0.92l0.67,-0.21l0.54,-0.83l0.14,-1.02l0.86,-1.71l2.19,-2.31l0.97,-0.21l0.54,-0.97l0.71,-0.52l1.14,-3.12l-1,-4.83l-0.84,-0.54l-3.03,-4.94l-2.79,-3.13l-0.52,-0.93l-1.79,-1.97l-2.15,-1.04l-1.14,-0.9l-0.35,-0.67l0.14,-0.35l0.57,0.09l0.36,-0.3l-1.21,-1.83l-5.21,-4.18l-0.04,-0.66l0.93,-0.56l1.17,-1.31l1.31,-2.11l-0.08,-0.62l-2.37,-1.8l-2.14,-2.28l-0.73,-1.95l0.33,-2.03l-0.39,-0.8l-0.66,-0.67l-1.06,-0.41l-2.7,-0.08l-2.47,-0.69l-2.7,0.37l-2.78,-0.25l-1.56,0.6h-3.85l-2.08,0.37l-0.66,-0.18l-0.39,-0.8l0.32,-0.53l1.2,-0.56l3.77,-0.75l-1.28,-0.28l-1.15,0.12l-3.13,-1.14l-1.97,-1.57l-5.36,-3.29l-1.62,-1.3l-3.16,-2.12l-0.97,-0.06l-0.44,-0.58l0.1,-0.88l-1.82,0.42l-2.53,-3.83l-1.1,-0.5l-0.84,0.21l-2.69,-0.83l-0.31,-0.45l0.36,-0.44l0.98,-0.39l0.88,0.01l-0.61,-0.98l-0.34,-1.6l-0.74,-1.03l-1.98,-1l-2.03,-0.29l-1.63,-0.77l-3.32,-3.75l-1.41,-1.21l-2.9,-1.31l-1.85,-1.21l-0.75,-0.1l-1.17,1.36l-0.53,0.17l-1.16,-0.62l0,0l-0.65,-7.01l3.68,-0.1l4.43,2.42l10.06,4l4.15,2.49l2.53,-0.07l2.42,-4.34l-0.73,-3.79l4.16,-3.81l3.89,-0.97l-1.05,-6.91l3.33,-8.87l0.28,-2.49l1.03,-4.42l3.11,-4.25l3.41,-1.59l4.35,1.27L220.12,173.8z" }, { "id":"CR-SJ", "title":"San José", "d":"M383.02,205.77L384.68,209.94L386.88,219.46L389,221.25L392.95,222.76L395.95,225.5L397.35,228.41L397.49,231.58L398.04,234.91L399.38,237.7L398.5,239.46L395.08,240.54L393.68,239.94L391.94,239.41L390.32,241.18L388.35,242.85L384.92,243.52L382.09,242.97L373.84,244.06L372.53,244.78L372.32,247.79L369.92,250.63L367.1,252.61L366.83,255.44L369.98,255.01L371.88,255.07L372.83,256.14L372.81,257.7L371.99,259.45L371.12,261.15L370.11,262.33L367.4,266.39L366.87,268.07L364.88,269.16L361.16,271.98L357.58,273.75L356.44,274.01L356.74,276.65L355.87,278.47L357.91,279.51L361.02,279.71L364.33,278.93L366.75,278.8L371.84,275.72L373.26,275.11L375.05,279.79L377.33,283.3L382.15,285.42L382.29,288.36L382.05,290.27L382.77,291.34L384.79,291.52L386.83,292.84L387.44,294.15L388.43,294.65L390.14,293.79L393.03,296.65L394.54,297.42L396.62,297.71L397.58,297.16L400.82,297.71L401.66,299.18L401.64,302.82L402.69,305.5L405.15,307.33L408.04,307.95L410.2,308.98L412.51,309.61L415.26,310.73L417.04,310.51L416.46,313L417.29,315.92L418.69,316.81L421.51,316.9L422.37,319.01L424.63,319.58L428.58,318.61L430.96,319.76L434.02,317.77L435.12,315.66L436.53,314.47L438.59,314.18L440.97,315.04L443.23,317.69L445.21,318.61L449.94,321.54L453.53,322.42L456.21,323.5L462.44,328.81L466.69,330.77L466.69,330.77L469.87,333.62L471.17,339.58L473.19,344.42L477.19,352.61L481.69,355.86L481.69,355.86L479.02,359.45L477.26,362.44L474.51,365.16L471.68,371.11L469.88,372.89L467.62,374.45L465.96,376.91L466.22,378.12L465.82,382.28L463.6,385.39L463.46,386.55L465.46,388.28L468.13,389.42L472.16,389.36L473.33,392.1L473.6,393.7L472.04,397.89L469.24,400.73L469.17,404.71L467.76,407.8L465.9,409.46L462.78,410.93L458.71,411.38L456.18,409.49L447.17,405.76L444,401.41L439.4,399.29L435.8,398.18L433.69,394.49L431.43,389.25L427.88,383.3L421.49,378.81L417.19,383.99L412.22,383.14L405.81,379.86L400.63,375.56L400.06,369.07L400.03,365.9L402.04,361.52L399.77,360.55L397.7,360.43L395.53,358.88L392.93,356.12L390.67,351.34L390.06,348.02L387,347.35L385.48,348.89L384.27,350.88L380.72,351.55L377.01,348.19L375.22,343.75L372.31,344.4L370.85,341.5L370.52,339.84L366.76,337L363.38,335.31L360.8,331.28L357.43,329.93L357.09,326.08L357.61,319.43L353.42,317.7L349.67,319.3L347.46,318.55L345.24,315.15L345.95,309.14L344.97,306.91L343.39,306.09L339.3,305.68L333.26,307.8L329.11,305.67L326.53,305.85L323.37,305.88L318.02,304.01L313.52,301.19L310.25,303.58L304.21,303.8L300.94,304.24L296.5,303.61L295.07,306.01L296.66,309.83L294.78,312.65L292.5,315.65L289.6,318.9L287.66,317.28L286.72,314.6L283.51,315.03L280.02,315.7L274.04,315.86L270.5,314.8L269.17,314.26L266.55,311.1L265.6,307.73L265.5,304.1L261,299.26L260.07,296.75L260.53,292.18L258.97,287.66L259.51,281.99L260.81,281.15L265.42,281.37L268.9,278.28L267.64,276.23L264.94,276.31L263.38,271.9L260.11,271.99L260.21,269.45L262.23,267.2L262.23,267.2L264.71,267.17L267.42,263L267.9,261.43L270.07,258.6L272.7,257.84L275.72,254.81L277.3,253.67L280.03,252.39L281.09,251.26L283.81,249.52L286.46,249.67L294.18,248.08L294.29,247.79L299,247.83L301.61,248.51L304.76,250.44L309.42,250.26L314.09,248.75L321.67,248.14L324.91,246.89L327.68,244.74L329.07,243.14L331.04,241.42L333.88,240.13L336.13,240.24L336.13,240.24L338.33,240.81L339.61,241.36L340.53,241.56L342.95,241.79L346.43,240.59L349.31,240.98L350.19,241.53L353.79,240.45L356.14,240.1L357.27,239.49L360.15,239.53L363.05,238.35L366.11,236.53L368.56,233.7L369.58,230.84L370.08,227.94L367.69,224.49L366.61,222.55L367.09,221.33L367.22,219.65L368.04,218.01L371.43,217.8L373.71,217.28L375.33,215.22L375.62,208.69L375.5,206.15L377.17,203.97L386.38,197.71L386.38,197.71L385.28,199.93z" } ] } } };
bsquochoaidownloadfolders/cdnjs
ajax/libs/ammaps/3.13.0/maps/js/costaRicaHigh.js
JavaScript
mit
38,862
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/ if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(j){var a="classList",f="prototype",m=(j.HTMLElement||j.Element)[f],b=Object,k=String[f].trim||function(){return this.replace(/^\s+|\s+$/g,"")},c=Array[f].indexOf||function(q){var p=0,o=this.length;for(;p<o;p++){if(p in this&&this[p]===q){return p}}return -1},n=function(o,p){this.name=o;this.code=DOMException[o];this.message=p},g=function(p,o){if(o===""){throw new n("SYNTAX_ERR","An invalid or illegal string was specified")}if(/\s/.test(o)){throw new n("INVALID_CHARACTER_ERR","String contains an invalid character")}return c.call(p,o)},d=function(s){var r=k.call(s.className),q=r?r.split(/\s+/):[],p=0,o=q.length;for(;p<o;p++){this.push(q[p])}this._updateClassName=function(){s.className=this.toString()}},e=d[f]=[],i=function(){return new d(this)};n[f]=Error[f];e.item=function(o){return this[o]||null};e.contains=function(o){o+="";return g(this,o)!==-1};e.add=function(o){o+="";if(g(this,o)===-1){this.push(o);this._updateClassName()}};e.remove=function(p){p+="";var o=g(this,p);if(o!==-1){this.splice(o,1);this._updateClassName()}};e.toggle=function(o){o+="";if(g(this,o)===-1){this.add(o)}else{this.remove(o)}};e.toString=function(){return this.join(" ")};if(b.defineProperty){var l={get:i,enumerable:true,configurable:true};try{b.defineProperty(m,a,l)}catch(h){if(h.number===-2146823252){l.enumerable=false;b.defineProperty(m,a,l)}}}else{if(b[f].__defineGetter__){m.__defineGetter__(a,i)}}}(self))};
aaqibrasheed/cdnjs
ajax/libs/reveal.js/2.6.1/lib/js/classList.js
JavaScript
mit
1,582
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <title>DataTables example - Ordering plug-ins (with type detection)</title> <link rel="stylesheet" type="text/css" href="../../media/css/jquery.dataTables.css"> <link rel="stylesheet" type="text/css" href="../resources/syntax/shCore.css"> <link rel="stylesheet" type="text/css" href="../resources/demo.css"> <style type="text/css" class="init"> </style> <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script> <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script> <script type="text/javascript" language="javascript" src="../resources/syntax/shCore.js"></script> <script type="text/javascript" language="javascript" src="../resources/demo.js"></script> <script type="text/javascript" language="javascript" class="init"> $.fn.dataTable.ext.type.detect.unshift( function ( d ) { return d === 'Low' || d === 'Medium' || d === 'High' ? 'salary-grade' : null; } ); $.fn.dataTable.ext.type.order['salary-grade-pre'] = function ( d ) { switch ( d ) { case 'Low': return 1; case 'Medium': return 2; case 'High': return 3; } return 0; }; $(document).ready(function() { $('#example').dataTable(); } ); </script> </head> <body class="dt-example"> <div class="container"> <section> <h1>DataTables example <span>Ordering plug-ins (with type detection)</span></h1> <div class="info"> <p>Although DataTables will automatically order data from a number of different data types using the built in methods, When dealing with more complex formatted data, it can be desirable to define the ordering order yourself. Using plug-in ordering functions, you have have DataTables sort data in any manner you wish.</p> <p>Formatted data of a particular kind can be automatically detected and a suitable ordering plug-in assigned to it by making use of DataTables' plug-in type detection abilities. For complete information about type detection and ordering plug-ins; creating them and their requirements, please refer to the plug-in development documentation.</p> <p>This example shows ordering with using an enumerated type.</p> <p>A wide variety of ready made ordering plug-ins can be found on <a href= "//datatables.net/plug-ins/sorting">the DataTables plug-ins page</a>.</p> </div> <table id="example" class="display" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Age</th> <th>Start date</th> <th>Salary</th> </tr> </thead> <tfoot> <tr> <th>Name</th> <th>Position</th> <th>Office</th> <th>Age</th> <th>Start date</th> <th>Salary</th> </tr> </tfoot> <tbody> <tr> <td>Tiger Nixon</td> <td>System Architect</td> <td>Edinburgh</td> <td>61</td> <td>2011/04/25</td> <td>Low</td> </tr> <tr> <td>Garrett Winters</td> <td>Accountant</td> <td>Tokyo</td> <td>63</td> <td>2011/07/25</td> <td>Low</td> </tr> <tr> <td>Ashton Cox</td> <td>Junior Technical Author</td> <td>San Francisco</td> <td>66</td> <td>2009/01/12</td> <td>Low</td> </tr> <tr> <td>Cedric Kelly</td> <td>Senior Javascript Developer</td> <td>Edinburgh</td> <td>22</td> <td>2012/03/29</td> <td>Medium</td> </tr> <tr> <td>Airi Satou</td> <td>Accountant</td> <td>Tokyo</td> <td>33</td> <td>2008/11/28</td> <td>Low</td> </tr> <tr> <td>Brielle Williamson</td> <td>Integration Specialist</td> <td>New York</td> <td>61</td> <td>2012/12/02</td> <td>Medium</td> </tr> <tr> <td>Herrod Chandler</td> <td>Sales Assistant</td> <td>San Francisco</td> <td>59</td> <td>2012/08/06</td> <td>Low</td> </tr> <tr> <td>Rhona Davidson</td> <td>Integration Specialist</td> <td>Tokyo</td> <td>55</td> <td>2010/10/14</td> <td>Low</td> </tr> <tr> <td>Colleen Hurst</td> <td>Javascript Developer</td> <td>San Francisco</td> <td>39</td> <td>2009/09/15</td> <td>Low</td> </tr> <tr> <td>Sonya Frost</td> <td>Software Engineer</td> <td>Edinburgh</td> <td>23</td> <td>2008/12/13</td> <td>Low</td> </tr> <tr> <td>Jena Gaines</td> <td>Office Manager</td> <td>London</td> <td>30</td> <td>2008/12/19</td> <td>Low</td> </tr> <tr> <td>Quinn Flynn</td> <td>Support Lead</td> <td>Edinburgh</td> <td>22</td> <td>2013/03/03</td> <td>Low</td> </tr> <tr> <td>Charde Marshall</td> <td>Regional Director</td> <td>San Francisco</td> <td>36</td> <td>2008/10/16</td> <td>Medium</td> </tr> <tr> <td>Haley Kennedy</td> <td>Senior Marketing Designer</td> <td>London</td> <td>43</td> <td>2012/12/18</td> <td>Low</td> </tr> <tr> <td>Tatyana Fitzpatrick</td> <td>Regional Director</td> <td>London</td> <td>19</td> <td>2010/03/17</td> <td>Medium</td> </tr> <tr> <td>Michael Silva</td> <td>Marketing Designer</td> <td>London</td> <td>66</td> <td>2012/11/27</td> <td>Low</td> </tr> <tr> <td>Paul Byrd</td> <td>Chief Financial Officer (CFO)</td> <td>New York</td> <td>64</td> <td>2010/06/09</td> <td>High</td> </tr> <tr> <td>Gloria Little</td> <td>Systems Administrator</td> <td>New York</td> <td>59</td> <td>2009/04/10</td> <td>Low</td> </tr> <tr> <td>Bradley Greer</td> <td>Software Engineer</td> <td>London</td> <td>41</td> <td>2012/10/13</td> <td>Low</td> </tr> <tr> <td>Dai Rios</td> <td>Personnel Lead</td> <td>Edinburgh</td> <td>35</td> <td>2012/09/26</td> <td>Low</td> </tr> <tr> <td>Jenette Caldwell</td> <td>Development Lead</td> <td>New York</td> <td>30</td> <td>2011/09/03</td> <td>Low</td> </tr> <tr> <td>Yuri Berry</td> <td>Chief Marketing Officer (CMO)</td> <td>New York</td> <td>40</td> <td>2009/06/25</td> <td>High</td> </tr> <tr> <td>Caesar Vance</td> <td>Pre-Sales Support</td> <td>New York</td> <td>21</td> <td>2011/12/12</td> <td>Low</td> </tr> <tr> <td>Doris Wilder</td> <td>Sales Assistant</td> <td>Sidney</td> <td>23</td> <td>2010/09/20</td> <td>Low</td> </tr> <tr> <td>Angelica Ramos</td> <td>Chief Executive Officer (CEO)</td> <td>London</td> <td>47</td> <td>2009/10/09</td> <td>High</td> </tr> <tr> <td>Gavin Joyce</td> <td>Developer</td> <td>Edinburgh</td> <td>42</td> <td>2010/12/22</td> <td>Low</td> </tr> <tr> <td>Jennifer Chang</td> <td>Regional Director</td> <td>Singapore</td> <td>28</td> <td>2010/11/14</td> <td>Medium</td> </tr> <tr> <td>Brenden Wagner</td> <td>Software Engineer</td> <td>San Francisco</td> <td>28</td> <td>2011/06/07</td> <td>Low</td> </tr> <tr> <td>Fiona Green</td> <td>Chief Operating Officer (COO)</td> <td>San Francisco</td> <td>48</td> <td>2010/03/11</td> <td>High</td> </tr> <tr> <td>Shou Itou</td> <td>Regional Marketing</td> <td>Tokyo</td> <td>20</td> <td>2011/08/14</td> <td>Low</td> </tr> <tr> <td>Michelle House</td> <td>Integration Specialist</td> <td>Sidney</td> <td>37</td> <td>2011/06/02</td> <td>Low</td> </tr> <tr> <td>Suki Burks</td> <td>Developer</td> <td>London</td> <td>53</td> <td>2009/10/22</td> <td>Low</td> </tr> <tr> <td>Prescott Bartlett</td> <td>Technical Author</td> <td>London</td> <td>27</td> <td>2011/05/07</td> <td>Low</td> </tr> <tr> <td>Gavin Cortez</td> <td>Team Leader</td> <td>San Francisco</td> <td>22</td> <td>2008/10/26</td> <td>Low</td> </tr> <tr> <td>Martena Mccray</td> <td>Post-Sales support</td> <td>Edinburgh</td> <td>46</td> <td>2011/03/09</td> <td>Low</td> </tr> <tr> <td>Unity Butler</td> <td>Marketing Designer</td> <td>San Francisco</td> <td>47</td> <td>2009/12/09</td> <td>Low</td> </tr> <tr> <td>Howard Hatfield</td> <td>Office Manager</td> <td>San Francisco</td> <td>51</td> <td>2008/12/16</td> <td>Low</td> </tr> <tr> <td>Hope Fuentes</td> <td>Secretary</td> <td>San Francisco</td> <td>41</td> <td>2010/02/12</td> <td>Low</td> </tr> <tr> <td>Vivian Harrell</td> <td>Financial Controller</td> <td>San Francisco</td> <td>62</td> <td>2009/02/14</td> <td>Medium</td> </tr> <tr> <td>Timothy Mooney</td> <td>Office Manager</td> <td>London</td> <td>37</td> <td>2008/12/11</td> <td>Low</td> </tr> <tr> <td>Jackson Bradshaw</td> <td>Director</td> <td>New York</td> <td>65</td> <td>2008/09/26</td> <td>Medium</td> </tr> <tr> <td>Olivia Liang</td> <td>Support Engineer</td> <td>Singapore</td> <td>64</td> <td>2011/02/03</td> <td>Low</td> </tr> <tr> <td>Bruno Nash</td> <td>Software Engineer</td> <td>London</td> <td>38</td> <td>2011/05/03</td> <td>Low</td> </tr> <tr> <td>Sakura Yamamoto</td> <td>Support Engineer</td> <td>Tokyo</td> <td>37</td> <td>2009/08/19</td> <td>Low</td> </tr> <tr> <td>Thor Walton</td> <td>Developer</td> <td>New York</td> <td>61</td> <td>2013/08/11</td> <td>Low</td> </tr> <tr> <td>Finn Camacho</td> <td>Support Engineer</td> <td>San Francisco</td> <td>47</td> <td>2009/07/07</td> <td>Low</td> </tr> <tr> <td>Serge Baldwin</td> <td>Data Coordinator</td> <td>Singapore</td> <td>64</td> <td>2012/04/09</td> <td>Low</td> </tr> <tr> <td>Zenaida Frank</td> <td>Software Engineer</td> <td>New York</td> <td>63</td> <td>2010/01/04</td> <td>Low</td> </tr> <tr> <td>Zorita Serrano</td> <td>Software Engineer</td> <td>San Francisco</td> <td>56</td> <td>2012/06/01</td> <td>Low</td> </tr> <tr> <td>Jennifer Acosta</td> <td>Junior Javascript Developer</td> <td>Edinburgh</td> <td>43</td> <td>2013/02/01</td> <td>Low</td> </tr> <tr> <td>Cara Stevens</td> <td>Sales Assistant</td> <td>New York</td> <td>46</td> <td>2011/12/06</td> <td>Low</td> </tr> <tr> <td>Hermione Butler</td> <td>Regional Director</td> <td>London</td> <td>47</td> <td>2011/03/21</td> <td>Medium</td> </tr> <tr> <td>Lael Greer</td> <td>Systems Administrator</td> <td>London</td> <td>21</td> <td>2009/02/27</td> <td>Low</td> </tr> <tr> <td>Jonas Alexander</td> <td>Developer</td> <td>San Francisco</td> <td>30</td> <td>2010/07/14</td> <td>Low</td> </tr> <tr> <td>Shad Decker</td> <td>Regional Director</td> <td>Edinburgh</td> <td>51</td> <td>2008/11/13</td> <td>Low</td> </tr> <tr> <td>Michael Bruce</td> <td>Javascript Developer</td> <td>Singapore</td> <td>29</td> <td>2011/06/27</td> <td>Low</td> </tr> <tr> <td>Donna Snider</td> <td>Customer Support</td> <td>New York</td> <td>27</td> <td>2011/01/25</td> <td>Low</td> </tr> </tbody> </table> <ul class="tabs"> <li class="active">Javascript</li> <li>HTML</li> <li>CSS</li> <li>Ajax</li> <li>Server-side script</li> </ul> <div class="tabs"> <div class="js"> <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline brush: js;">$.fn.dataTable.ext.type.detect.unshift( function ( d ) { return d === 'Low' || d === 'Medium' || d === 'High' ? 'salary-grade' : null; } ); $.fn.dataTable.ext.type.order['salary-grade-pre'] = function ( d ) { switch ( d ) { case 'Low': return 1; case 'Medium': return 2; case 'High': return 3; } return 0; }; $(document).ready(function() { $('#example').dataTable(); } );</code> <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p> <ul> <li><a href="../../media/js/jquery.js">../../media/js/jquery.js</a></li> <li><a href="../../media/js/jquery.dataTables.js">../../media/js/jquery.dataTables.js</a></li> </ul> </div> <div class="table"> <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p> </div> <div class="css"> <div> <p>This example uses a little bit of additional CSS beyond what is loaded from the library files (below), in order to correctly display the table. The additional CSS used is shown below:</p><code class="multiline brush: js;"></code> </div> <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p> <ul> <li><a href= "../../media/css/jquery.dataTables.css">../../media/css/jquery.dataTables.css</a></li> </ul> </div> <div class="ajax"> <p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is loaded.</p> </div> <div class="php"> <p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables documentation</a>.</p> </div> </div> </section> </div> <section> <div class="footer"> <div class="gradient"></div> <div class="liner"> <h2>Other examples</h2> <div class="toc"> <div class="toc-group"> <h3><a href="../basic_init/index.html">Basic initialisation</a></h3> <ul class="toc"> <li><a href="../basic_init/zero_configuration.html">Zero configuration</a></li> <li><a href="../basic_init/filter_only.html">Feature enable / disable</a></li> <li><a href="../basic_init/table_sorting.html">Default ordering (sorting)</a></li> <li><a href="../basic_init/multi_col_sort.html">Multi-column ordering</a></li> <li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li> <li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li> <li><a href="../basic_init/complex_header.html">Complex headers (rowspan and colspan)</a></li> <li><a href="../basic_init/dom.html">DOM positioning</a></li> <li><a href="../basic_init/flexible_width.html">Flexible table width</a></li> <li><a href="../basic_init/state_save.html">State saving</a></li> <li><a href="../basic_init/alt_pagination.html">Alternative pagination</a></li> <li><a href="../basic_init/scroll_y.html">Scroll - vertical</a></li> <li><a href="../basic_init/scroll_x.html">Scroll - horizontal</a></li> <li><a href="../basic_init/scroll_xy.html">Scroll - horizontal and vertical</a></li> <li><a href="../basic_init/scroll_y_theme.html">Scroll - vertical with jQuery UI ThemeRoller</a></li> <li><a href="../basic_init/comma-decimal.html">Language - Comma decimal place</a></li> <li><a href="../basic_init/language.html">Language options</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../advanced_init/index.html">Advanced initialisation</a></h3> <ul class="toc"> <li><a href="../advanced_init/events_live.html">DOM / jQuery events</a></li> <li><a href="../advanced_init/dt_events.html">DataTables events</a></li> <li><a href="../advanced_init/column_render.html">Column rendering</a></li> <li><a href="../advanced_init/length_menu.html">Page length options</a></li> <li><a href="../advanced_init/dom_multiple_elements.html">Multiple table control elements</a></li> <li><a href="../advanced_init/complex_header.html">Complex headers (rowspan / colspan)</a></li> <li><a href="../advanced_init/html5-data-attributes.html">HTML5 data-* attributes</a></li> <li><a href="../advanced_init/language_file.html">Language file</a></li> <li><a href="../advanced_init/defaults.html">Setting defaults</a></li> <li><a href="../advanced_init/row_callback.html">Row created callback</a></li> <li><a href="../advanced_init/row_grouping.html">Row grouping</a></li> <li><a href="../advanced_init/footer_callback.html">Footer callback</a></li> <li><a href="../advanced_init/dom_toolbar.html">Custom toolbar elements</a></li> <li><a href="../advanced_init/sort_direction_control.html">Order direction sequence control</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../styling/index.html">Styling</a></h3> <ul class="toc"> <li><a href="../styling/display.html">Base style</a></li> <li><a href="../styling/no-classes.html">Base style - no styling classes</a></li> <li><a href="../styling/row-border.html">Base style - row borders</a></li> <li><a href="../styling/cell-border.html">Base style - cell borders</a></li> <li><a href="../styling/hover.html">Base style - hover</a></li> <li><a href="../styling/order-column.html">Base style - order-column</a></li> <li><a href="../styling/stripe.html">Base style - stripe</a></li> <li><a href="../styling/jqueryUI.html">jQuery UI ThemeRoller</a></li> <li><a href="../styling/bootstrap.html">Bootstrap</a></li> <li><a href="../styling/foundation.html">Foundation</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../data_sources/index.html">Data sources</a></h3> <ul class="toc"> <li><a href="../data_sources/dom.html">HTML (DOM) sourced data</a></li> <li><a href="../data_sources/ajax.html">Ajax sourced data</a></li> <li><a href="../data_sources/js_array.html">Javascript sourced data</a></li> <li><a href="../data_sources/server_side.html">Server-side processing</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../api/index.html">API</a></h3> <ul class="toc"> <li><a href="../api/add_row.html">Add rows</a></li> <li><a href="../api/multi_filter.html">Individual column filtering (text inputs)</a></li> <li><a href="../api/multi_filter_select.html">Individual column filtering (select inputs)</a></li> <li><a href="../api/highlight.html">Highlighting rows and columns</a></li> <li><a href="../api/row_details.html">Child rows (show extra / detailed information)</a></li> <li><a href="../api/select_row.html">Row selection (multiple rows)</a></li> <li><a href="../api/select_single_row.html">Row selection and deletion (single row)</a></li> <li><a href="../api/form.html">Form inputs</a></li> <li><a href="../api/counter_columns.html">Index column</a></li> <li><a href="../api/show_hide.html">Show / hide columns dynamically</a></li> <li><a href="../api/api_in_init.html">Using API in callbacks</a></li> <li><a href="../api/tabs_and_scrolling.html">Scrolling and jQuery UI tabs</a></li> <li><a href="../api/regex.html">Filtering API (regular expressions)</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../ajax/index.html">Ajax</a></h3> <ul class="toc"> <li><a href="../ajax/simple.html">Ajax data source (arrays)</a></li> <li><a href="../ajax/objects.html">Ajax data source (objects)</a></li> <li><a href="../ajax/deep.html">Nested object data (objects)</a></li> <li><a href="../ajax/objects_subarrays.html">Nested object data (arrays)</a></li> <li><a href="../ajax/orthogonal-data.html">Orthogonal data</a></li> <li><a href="../ajax/null_data_source.html">Generated content for a column</a></li> <li><a href="../ajax/custom_data_property.html">Custom data source property</a></li> <li><a href="../ajax/custom_data_flat.html">Flat array data source</a></li> <li><a href="../ajax/defer_render.html">Deferred rendering for speed</a></li> </ul> </div> <div class="toc-group"> <h3><a href="../server_side/index.html">Server-side</a></h3> <ul class="toc"> <li><a href="../server_side/simple.html">Server-side processing</a></li> <li><a href="../server_side/custom_vars.html">Custom HTTP variables</a></li> <li><a href="../server_side/post.html">POST data</a></li> <li><a href="../server_side/ids.html">Automatic addition of row ID attributes</a></li> <li><a href="../server_side/object_data.html">Object data source</a></li> <li><a href="../server_side/row_details.html">Row details</a></li> <li><a href="../server_side/select_rows.html">Row selection</a></li> <li><a href="../server_side/jsonp.html">JSONP data source for remote domains</a></li> <li><a href="../server_side/defer_loading.html">Deferred loading of data</a></li> <li><a href="../server_side/pipeline.html">Pipelining data to reduce Ajax calls for paging</a></li> </ul> </div> <div class="toc-group"> <h3><a href="./index.html">Plug-ins</a></h3> <ul class="toc active"> <li><a href="./api.html">API plug-in methods</a></li> <li class="active"><a href="./sorting_auto.html">Ordering plug-ins (with type detection)</a></li> <li><a href="./sorting_manual.html">Ordering plug-ins (no type detection)</a></li> <li><a href="./range_filtering.html">Custom filtering - range search</a></li> <li><a href="./dom_sort.html">Live DOM ordering</a></li> </ul> </div> </div> <div class="epilogue"> <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br> Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p> <p class="copyright">DataTables designed and created by <a href= "http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2014<br> DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p> </div> </div> </div> </section> </body> </html>
niceguy-php/beyond
Public/Style/assets/global/plugins/datatables/examples/plug-ins/sorting_auto.html
HTML
mit
24,126
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*============================================================ ** ** Source: test.c ** ** Purpose: Test for SetLastError() function ** ** **=========================================================*/ /* Depends on GetLastError() */ #include <palsuite.h> int __cdecl main(int argc, char *argv[]) { /* Error value that we can set to test */ const unsigned int FAKE_ERROR = 5; const int NEGATIVE_ERROR = -1; /* * Initialize the PAL and return FAILURE if this fails */ if(0 != (PAL_Initialize(argc, argv))) { return FAIL; } /* Set error */ SetLastError(FAKE_ERROR); /* Check to make sure it returns the error value we just set */ if(GetLastError() != FAKE_ERROR) { Fail("ERROR: The last error should have been '%d' but the error " "returned was '%d'\n",FAKE_ERROR,GetLastError()); } /* Set the error to a negative */ SetLastError(NEGATIVE_ERROR); /* Check to make sure it returns the error value we just set */ if((signed)GetLastError() != NEGATIVE_ERROR) { Fail("ERROR: The last error should have been '%d' but the error " "returned was '%d'\n",NEGATIVE_ERROR,GetLastError()); } PAL_Terminate(); return PASS; }
chaos7theory/coreclr
src/pal/tests/palsuite/miscellaneous/SetLastError/test1/test.c
C
mit
1,442
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="html/html; charset=utf-8" /> <title>CCActionFollow Class Reference</title> <meta id="xcode-display" name="xcode-display" content="render"/> <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" /> <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" /> <meta name="generator" content="appledoc 2.2 (build 963)" /> </head> <body> <header id="top_header"> <div id="library" class="hideInXcode"> <h1><a id="libraryTitle" href="../index.html">Cocos2D </a></h1> <a id="developerHome" href="../index.html">3.2.0</a> </div> <div id="title" role="banner"> <h1 class="hideInXcode">CCActionFollow Class Reference</h1> </div> <ul id="headerButtons" role="toolbar"> <li id="toc_button"> <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button> </li> <li id="jumpto_button" role="navigation"> <select id="jumpTo"> <option value="top">Jump To&#133;</option> <option value="overview">Overview</option> <option value="tasks">Tasks</option> <option value="properties">Properties</option> <option value="//api/name/boundarySet">&nbsp;&nbsp;&nbsp;&nbsp;boundarySet</option> <option value="class_methods">Class Methods</option> <option value="//api/name/actionWithTarget:">&nbsp;&nbsp;&nbsp;&nbsp;+ actionWithTarget:</option> <option value="//api/name/actionWithTarget:worldBoundary:">&nbsp;&nbsp;&nbsp;&nbsp;+ actionWithTarget:worldBoundary:</option> <option value="instance_methods">Instance Methods</option> <option value="//api/name/initWithTarget:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithTarget:</option> <option value="//api/name/initWithTarget:worldBoundary:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithTarget:worldBoundary:</option> </select> </li> </ul> </header> <nav id="tocContainer" class="isShowingTOC"> <ul id="toc" role="tree"> <li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li> <li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul> <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessing the Follow Action Attributes">Accessing the Follow Action Attributes</a></span></li> <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating a CCActionFollow Object">Creating a CCActionFollow Object</a></span></li> <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Initializing a CCActionFollow Object">Initializing a CCActionFollow Object</a></span></li> </ul></li> <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul> <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/boundarySet">boundarySet</a></span></li> </ul></li> <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul> <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/actionWithTarget:">actionWithTarget:</a></span></li> <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/actionWithTarget:worldBoundary:">actionWithTarget:worldBoundary:</a></span></li> </ul></li> <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul> <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithTarget:">initWithTarget:</a></span></li> <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithTarget:worldBoundary:">initWithTarget:worldBoundary:</a></span></li> </ul></li> </ul> </nav> <article> <div id="contents" class="isShowingTOC" role="main"> <a title="CCActionFollow Class Reference" name="top"></a> <div class="main-navigation navigation-top"> <ul> <li><a href="../index.html">Index</a></li> <li><a href="../hierarchy.html">Hierarchy</a></li> </ul> </div> <div id="header"> <div class="section-header"> <h1 class="title title-header">CCActionFollow Class Reference</h1> </div> </div> <div id="container"> <div class="section section-specification"><table cellspacing="0"><tbody> <tr> <td class="specification-title">Inherits from</td> <td class="specification-value"><a href="../Classes/CCAction.html">CCAction</a> : NSObject</td> </tr><tr> <td class="specification-title">Conforms to</td> <td class="specification-value">NSCopying</td> </tr><tr> <td class="specification-title">Declared in</td> <td class="specification-value">CCAction.h</td> </tr> </tbody></table></div> <div class="section section-overview"> <a title="Overview" name="overview"></a> <h2 class="subtitle subtitle-overview">Overview</h2> <p>Creates an action which follows a node.</p> <p>Note: In stead of using CCCamera to follow a node, use this action.</p> <p>Example: [layer runAction: [CCFollow actionWithTarget:hero]];</p> </div> <div class="section section-tasks"> <a title="Tasks" name="tasks"></a> <h2 class="subtitle subtitle-tasks">Tasks</h2> <a title="Accessing the Follow Action Attributes" name="task_Accessing the Follow Action Attributes"></a> <h3 class="subsubtitle task-title">Accessing the Follow Action Attributes</h3> <ul class="task-list"> <li> <span class="tooltip"> <code><a href="#//api/name/boundarySet">&nbsp;&nbsp;boundarySet</a></code> </span> <span class="task-item-suffix">property</span> </li> </ul> <a title="Creating a CCActionFollow Object" name="task_Creating a CCActionFollow Object"></a> <h3 class="subsubtitle task-title">Creating a CCActionFollow Object</h3> <ul class="task-list"> <li> <span class="tooltip"> <code><a href="#//api/name/actionWithTarget:">+&nbsp;actionWithTarget:</a></code> </span> </li><li> <span class="tooltip"> <code><a href="#//api/name/actionWithTarget:worldBoundary:">+&nbsp;actionWithTarget:worldBoundary:</a></code> </span> </li> </ul> <a title="Initializing a CCActionFollow Object" name="task_Initializing a CCActionFollow Object"></a> <h3 class="subsubtitle task-title">Initializing a CCActionFollow Object</h3> <ul class="task-list"> <li> <span class="tooltip"> <code><a href="#//api/name/initWithTarget:">&ndash;&nbsp;initWithTarget:</a></code> </span> </li><li> <span class="tooltip"> <code><a href="#//api/name/initWithTarget:worldBoundary:">&ndash;&nbsp;initWithTarget:worldBoundary:</a></code> </span> </li> </ul> </div> <div class="section section-methods"> <a title="Properties" name="properties"></a> <h2 class="subtitle subtitle-methods">Properties</h2> <div class="section-method"> <a name="//api/name/boundarySet" title="boundarySet"></a> <h3 class="subsubtitle method-title">boundarySet</h3> <div class="method-subsection brief-description"> <p>Turns boundary behaviour on / off. If set to YES, movement will be clamped to boundaries.</p> </div> <div class="method-subsection method-declaration"><code>@property (nonatomic, readwrite) BOOL boundarySet</code></div> <div class="method-subsection declared-in-section"> <h4 class="method-subtitle">Declared In</h4> <code class="declared-in-ref">CCAction.h</code><br /> </div> </div> </div> <div class="section section-methods"> <a title="Class Methods" name="class_methods"></a> <h2 class="subtitle subtitle-methods">Class Methods</h2> <div class="section-method"> <a name="//api/name/actionWithTarget:" title="actionWithTarget:"></a> <h3 class="subsubtitle method-title">actionWithTarget:</h3> <div class="method-subsection brief-description"> <p>Creates a follow action with no boundaries.</p> </div> <div class="method-subsection method-declaration"><code>+ (id)actionWithTarget:(CCNode *)<em>followedNode</em></code></div> <div class="method-subsection arguments-section parameters"> <h4 class="method-subtitle parameter-title">Parameters</h4> <dl class="argument-def parameter-def"> <dt><em>followedNode</em></dt> <dd><p>Node to follow.</p></dd> </dl> </div> <div class="method-subsection return"> <h4 class="method-subtitle parameter-title">Return Value</h4> <p>The follow action object.</p> </div> <div class="method-subsection declared-in-section"> <h4 class="method-subtitle">Declared In</h4> <code class="declared-in-ref">CCAction.h</code><br /> </div> </div> <div class="section-method"> <a name="//api/name/actionWithTarget:worldBoundary:" title="actionWithTarget:worldBoundary:"></a> <h3 class="subsubtitle method-title">actionWithTarget:worldBoundary:</h3> <div class="method-subsection brief-description"> <p>Creates a follow action with boundaries.</p> </div> <div class="method-subsection method-declaration"><code>+ (id)actionWithTarget:(CCNode *)<em>followedNode</em> worldBoundary:(CGRect)<em>rect</em></code></div> <div class="method-subsection arguments-section parameters"> <h4 class="method-subtitle parameter-title">Parameters</h4> <dl class="argument-def parameter-def"> <dt><em>followedNode</em></dt> <dd><p>Node to follow.</p></dd> </dl> <dl class="argument-def parameter-def"> <dt><em>rect</em></dt> <dd><p>Boundary rect.</p></dd> </dl> </div> <div class="method-subsection return"> <h4 class="method-subtitle parameter-title">Return Value</h4> <p>The follow action object.</p> </div> <div class="method-subsection declared-in-section"> <h4 class="method-subtitle">Declared In</h4> <code class="declared-in-ref">CCAction.h</code><br /> </div> </div> </div> <div class="section section-methods"> <a title="Instance Methods" name="instance_methods"></a> <h2 class="subtitle subtitle-methods">Instance Methods</h2> <div class="section-method"> <a name="//api/name/initWithTarget:" title="initWithTarget:"></a> <h3 class="subsubtitle method-title">initWithTarget:</h3> <div class="method-subsection brief-description"> <p>Initalizes a follow action with no boundaries.</p> </div> <div class="method-subsection method-declaration"><code>- (id)initWithTarget:(CCNode *)<em>followedNode</em></code></div> <div class="method-subsection arguments-section parameters"> <h4 class="method-subtitle parameter-title">Parameters</h4> <dl class="argument-def parameter-def"> <dt><em>followedNode</em></dt> <dd><p>Node to follow.</p></dd> </dl> </div> <div class="method-subsection return"> <h4 class="method-subtitle parameter-title">Return Value</h4> <p>An initialized follow action object.</p> </div> <div class="method-subsection declared-in-section"> <h4 class="method-subtitle">Declared In</h4> <code class="declared-in-ref">CCAction.h</code><br /> </div> </div> <div class="section-method"> <a name="//api/name/initWithTarget:worldBoundary:" title="initWithTarget:worldBoundary:"></a> <h3 class="subsubtitle method-title">initWithTarget:worldBoundary:</h3> <div class="method-subsection brief-description"> <p>Initalizes a follow action with boundaries.</p> </div> <div class="method-subsection method-declaration"><code>- (id)initWithTarget:(CCNode *)<em>followedNode</em> worldBoundary:(CGRect)<em>rect</em></code></div> <div class="method-subsection arguments-section parameters"> <h4 class="method-subtitle parameter-title">Parameters</h4> <dl class="argument-def parameter-def"> <dt><em>followedNode</em></dt> <dd><p>Node to follow.</p></dd> </dl> <dl class="argument-def parameter-def"> <dt><em>rect</em></dt> <dd><p>Boundary rect.</p></dd> </dl> </div> <div class="method-subsection return"> <h4 class="method-subtitle parameter-title">Return Value</h4> <p>The initalized follow action object.</p> </div> <div class="method-subsection declared-in-section"> <h4 class="method-subtitle">Declared In</h4> <code class="declared-in-ref">CCAction.h</code><br /> </div> </div> </div> </div> <div class="main-navigation navigation-bottom"> <ul> <li><a href="../index.html">Index</a></li> <li><a href="../hierarchy.html">Hierarchy</a></li> </ul> </div> <div id="footer"> <hr /> <div class="footer-copyright"> <p><span class="copyright">&copy; 2014 3.2.0. All rights reserved. (Last updated: 2014-08-12)</span><br /> <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p> </div> </div> </div> </article> <script type="text/javascript"> function jumpToChange() { window.location.hash = this.options[this.selectedIndex].value; } function toggleTOC() { var contents = document.getElementById('contents'); var tocContainer = document.getElementById('tocContainer'); if (this.getAttribute('class') == 'open') { this.setAttribute('class', ''); contents.setAttribute('class', ''); tocContainer.setAttribute('class', ''); window.name = "hideTOC"; } else { this.setAttribute('class', 'open'); contents.setAttribute('class', 'isShowingTOC'); tocContainer.setAttribute('class', 'isShowingTOC'); window.name = ""; } return false; } function toggleTOCEntryChildren(e) { e.stopPropagation(); var currentClass = this.getAttribute('class'); if (currentClass == 'children') { this.setAttribute('class', 'children open'); } else if (currentClass == 'children open') { this.setAttribute('class', 'children'); } return false; } function tocEntryClick(e) { e.stopPropagation(); return true; } function init() { var selectElement = document.getElementById('jumpTo'); selectElement.addEventListener('change', jumpToChange, false); var tocButton = document.getElementById('table_of_contents'); tocButton.addEventListener('click', toggleTOC, false); var taskTreeItem = document.getElementById('task_treeitem'); if (taskTreeItem.getElementsByTagName('li').length > 0) { taskTreeItem.setAttribute('class', 'children'); taskTreeItem.firstChild.setAttribute('class', 'disclosure'); } var tocList = document.getElementById('toc'); var tocEntries = tocList.getElementsByTagName('li'); for (var i = 0; i < tocEntries.length; i++) { tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false); } var tocLinks = tocList.getElementsByTagName('a'); for (var i = 0; i < tocLinks.length; i++) { tocLinks[i].addEventListener('click', tocEntryClick, false); } if (window.name == "hideTOC") { toggleTOC.call(tocButton); } } window.onload = init; // If showing in Xcode, hide the TOC and Header if (navigator.userAgent.match(/xcode/i)) { document.getElementById("contents").className = "hideInXcode" document.getElementById("tocContainer").className = "hideInXcode" document.getElementById("top_header").className = "hideInXcode" } </script> </body> </html>
llahiru/CCPickerView
Demo/CCPickerViewExample.spritebuilder/Source/libs/cocos2d-iphone/api-docs/html/Classes/CCActionFollow.html
HTML
mit
16,271
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*===================================================================== ** ** Source: pal_try_leave_finally.c ** ** Purpose: Tests the PAL implementation of the PAL_TRY, PAL_LEAVE ** and PAL_FINALLY functions. ** ** **===================================================================*/ #include <palsuite.h> int __cdecl main(int argc, char *argv[]) { BOOL bTry = FALSE; BOOL bFinally = FALSE; BOOL bLeave = TRUE; if (0 != PAL_Initialize(argc, argv)) { return FAIL; } PAL_TRY { bTry = TRUE; /* indicate we hit the PAL_TRY block */ goto Done; bLeave = FALSE; /* indicate we stuck around */ Done: ; } PAL_FINALLY { bFinally = TRUE; /* indicate we hit the PAL_FINALLY block */ } PAL_ENDTRY; /* did we go where we were meant to go */ if (!bTry) { Trace("PAL_TRY_FINALLY: ERROR -> It appears the code in the PAL_TRY" " block was not executed.\n"); } if (!bLeave) { Trace("PAL_TRY_FINALLY: ERROR -> It appears code was executed after " "PAL_LEAVE was called. It should have jumped directly to the " "PAL_FINALLY block.\n"); } if (!bFinally) { Trace("PAL_TRY_FINALLY: ERROR -> It appears the code in the PAL_FINALLY" " block was not executed.\n"); } /* did we hit all the code blocks? */ if(!bTry || !bLeave || !bFinally) { Fail(""); } PAL_Terminate(); return PASS; }
GuilhermeSa/coreclr
src/pal/tests/palsuite/exception_handling/PAL_TRY_LEAVE_FINALLY/test1/PAL_TRY_LEAVE_FINALLY.c
C
mit
1,699
/*prettydiff.com api.topcoms: true, api.insize: 4, api.inchar: " ", api.vertical: true */ /*global __dirname, ace, csspretty, csvpretty, define, diffview, exports, global, jspretty, markuppretty, process, require, safeSort */ /* Execute in a NodeJS app: npm install prettydiff (local install) var prettydiff = require("prettydiff"), args = { source: "asdf", diff : "asdd", lang : "text" }, output = prettydiff.api(args); Execute on command line with NodeJS: npm install prettydiff -g (global install) prettydiff source:"c:\mydirectory\myfile.js" readmethod:"file" diff:"c:\myotherfile.js" Execute with WSH: cscript prettydiff.wsf /source:"myFile.xml" /mode:"beautify" Execute from JavaScript: var args = { source: "asdf", diff : "asdd", lang : "text" }, output = prettydiff(args); ******* license start ******* @source: http://prettydiff.com/prettydiff.js @documentation - English: http://prettydiff.com/documentation.xhtml @licstart The following is the entire license notice for Pretty Diff. This code may not be used or redistributed unless the following conditions are met: * Prettydiff created by Austin Cheney originally on 3 Mar 2009. http://prettydiff.com/ * The use of diffview.js and prettydiff.js must contain the following copyright: Copyright (c) 2007, Snowtide Informatics Systems, Inc. All rights reserved. - 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 the Snowtide Informatics Systems nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - used as diffview function http://prettydiff.com/lib/diffview.js * The code mentioned above has significantly expanded documentation in each of the respective function's external JS file as linked from the documentation page: http://prettydiff.com/documentation.php * In addition to the previously stated requirements any use of any component, aside from directly using the full files in their entirety, must restate the license mentioned at the top of each concerned file. If each and all these conditions are met use, extension, alteration, and redistribution of Pretty Diff and its required assets is unlimited and free without author permission. @licend The above is the entire license notice for Pretty Diff. ******* license end ******* Join the Pretty Diff mailing list at: https://groups.google.com/d/forum/pretty-diff Special thanks to: * Harry Whitfield for the numerous test cases provided against JSPretty. http://g6auc.me.uk/ * Andreas Greuel for contributing samples to test diffview.js https://plus.google.com/105958105635636993368/posts */ if (typeof require === "function" && typeof ace !== "object") { (function glib_prettydiff() { "use strict"; var localPath = (typeof process === "object" && typeof process.cwd === "function" && (process.cwd() === "/" || (/^([a-z]:\\)$/).test(process.cwd()) === true) && typeof __dirname === "string") ? __dirname : "."; if (global.csspretty === undefined) { global.csspretty = require(localPath + "/lib/csspretty.js").api; } if (global.csvpretty === undefined) { global.csvpretty = require(localPath + "/lib/csvpretty.js").api; } if (global.diffview === undefined) { global.diffview = require(localPath + "/lib/diffview.js").api; } if (global.jspretty === undefined) { global.jspretty = require(localPath + "/lib/jspretty.js").api; } if (global.markuppretty === undefined) { global.markuppretty = require(localPath + "/lib/markuppretty.js").api; } if (global.safeSort === undefined) { global.safeSort = require(localPath + "/lib/safeSort.js").api; } }()); } else { global.csspretty = csspretty; global.csvpretty = csvpretty; global.diffview = diffview; global.jspretty = jspretty; global.markuppretty = markuppretty; global.safeSort = safeSort; } var prettydiff = function prettydiff_(api) { "use strict"; var startTime = (typeof Date.now === "function") ? Date.now() : (function prettydiff__dateShim() { var dateItem = new Date(); return Date.parse(dateItem); }()), core = function core_(api) { var spacetest = (/^\s+$/g), apioutput = "", apidiffout = "", builder = {}, setlangmode = function core__langkey_setlangmode(input) { if (input === "css" || input === "less" || input === "scss") { return "css"; } if (input.indexOf("html") > -1 || input === "html" || input === "ejs" || input === "html_ruby" || input === "handlebars" || input === "swig" || input === "twig" || input === "php" || input === "dustjs") { return "html"; } if (input === "markup" || input === "jsp" || input === "xml" || input === "xhtml") { return "markup"; } if (input === "javascript" || input === "json" || input === "jsx") { return "javascript"; } if (input === "text") { return "text"; } if (input === "csv") { return "csv"; } if (input === "tss" || input === "titanium") { return "tss"; } return "javascript"; }, nameproper = function core__langkey_nameproper(input) { if (input === "javascript") { return "JavaScript"; } if (input === "text") { return "Plain Text"; } if (input === "jsx") { return "React JSX"; } if (input === "scss") { return "SCSS (Sass)"; } if (input === "ejs") { return "EJS Template"; } if (input === "handlebars") { return "Handlebars Template"; } if (input === "html_ruby") { return "ERB (Ruby) Template"; } if (input === "tss" || input === "titanium") { return "Titanium Stylesheets"; } if (input === "typescript") { return "TypeScript (not supported yet)"; } if (input === "twig") { return "HTML TWIG Template"; } if (input === "jsp") { return "JSTL (JSP)"; } if (input === "java") { return "Java (not supported yet)"; } return input.toUpperCase(); }, options = { //determines api source as necessary to make a decision about whether to supply //externally needed JS functions to reports accessibility : (api.accessibility === true || api.accessibility === "true"), api : (api.api === undefined || api.api.length === 0) ? "" : api.api, //braceline - should a new line pad the interior of blocks (curly braces) in //JavaScript braceline : (api.braceline === true || api.braceline === "true"), //bracepadding - should curly braces be padded with a space in JavaScript? bracepadding : (api.bracepadding === true || api.bracepadding === "true"), //indent - should JSPretty format JavaScript in the normal KNR style or push //curly braces onto a separate line like the "allman" style braces : (api.braces === "allman") ? "allman" : "knr", //comments - if comments should receive indentation or not comments : (api.comments === "noindent") ? "noindent" : ((api.comments === "nocomment") ? "nocomment" : "indent"), //commline - If in markup a newline should be forced above comments commline : (api.commline === true || api.commline === "true"), //conditional - should IE conditional comments be preserved during markup //minification conditional : (api.conditional === true || api.conditional === "true"), //content - should content be normalized during a diff operation content : (api.content === true || api.content === "true"), //context - should the diff report only include the differences, if so then //buffered by how many lines of code context : (api.context === "" || (/^(\s+)$/).test(api.context) || isNaN(api.context)) ? "" : Number(api.context), //correct - should JSPretty make some corrections for sloppy JS correct : (api.correct === true || api.correct === "true"), //crlf - if output should use \r\n (Windows compatible) for line termination crlf: (api.crlf === true || api.crlf === "true"), //cssinsertlines = if a new line should be forced between each css block cssinsertlines: (api.cssinsertlines === true || api.cssinsertlines === "true"), //csvchar - what character should be used as a separator csvchar : (typeof api.csvchar === "string" && api.csvchar.length > 0) ? api.csvchar : ",", //diff - source code to compare with diff : (typeof api.diff === "string" && api.diff.length > 0 && (/^(\s+)$/).test(api.diff) === false) ? api.diff : "", //diffcli - if operating from Node.js and set to true diff output will be //printed to stdout just like git diff diffcli : (api.diffcli === true || api.diffcli === "true"), //diffcomments - should comments be included in the diff operation diffcomments : (api.diffcomments === true || api.diffcomments === "true"), //difflabel - a text label to describe the diff code difflabel : (typeof api.difflabel === "string" && api.difflabel.length > 0) ? api.difflabel : "new", //diffview - should the diff report be a single column showing both sources //simultaneously "inline" or showing the sources in separate columns //"sidebyside" diffview : (api.diffview === "inline") ? "inline" : "sidebyside", //dustjs - support for this specific templating scheme dustjs : (api.dustjs === true || api.dustjs === "true"), //elseline - for the 'else' keyword onto a new line in JavaScript elseline : (api.elseline === true || api.elseline === "true"), //endcomma - if a trailing comma should be injected at the end of arrays and //object literals in JavaScript endcomma : (api.endcomma === true || api.endcomma === "true"), //force_indent - should markup beautification always force indentation even if //disruptive force_indent : (api.force_indent === true || api.force_indent === "true"), //html - should markup be presumed to be HTML with all the aloppiness HTML //allows html : (api.html === true || api.html === "true" || (typeof api.html === "string" && api.html === "html-yes")), //inchar - what character(s) should be used to create a single identation inchar : (typeof api.inchar === "string" && api.inchar.length > 0) ? api.inchar : " ", //inlevel - should indentation in JSPretty be buffered with additional //indentation? Useful when supplying code to sites accepting markdown inlevel : (isNaN(api.inlevel) || Number(api.inlevel) < 1) ? 0 : Number(api.inlevel), //insize - how many characters from api.inchar should constitute a single //indentation insize : (isNaN(api.insize)) ? 4 : Number(api.insize), //jsscope - do you want to enable the jsscope feature of JSPretty? This feature //will output formatted HTML instead of text code showing which variables are //declared at which functional depth jsscope : (api.jsscope === true || api.jsscope === "true") ? "report" : (api.jsscope !== "html" && api.jsscope !== "report") ? "none" : api.jsscope, //lang - which programming language will we be analyzing lang : (typeof api.lang === "string" && api.lang !== "auto") ? setlangmode(api.lang.toLowerCase()) : "auto", //langdefault - what language should lang value "auto" resort to when it cannot //determine the language langdefault : (typeof api.langdefault === "string") ? setlangmode(api.langdefault.toLowerCase()) : "text", //lineendcrlf - if the line terminator should be 'crlf' instead of 'lf' lineendcrlf: (api.lineendcrlf === true || api.lineendcrlf === "true"), //methodchain - if JavaScript method chains should be strung onto a single line //instead of indented methodchain : (api.methodchain === true || api.methodchain === "true"), //miniwrap - when language is JavaScript and mode is 'minify' if option 'jwrap' //should be applied to all code miniwrap : (api.miniwrap === true || api.miniwrap === "true"), //mode - is this a minify, beautify, or diff operation mode : (typeof api.mode === "string" && (api.mode === "minify" || api.mode === "beautify" || api.mode === "parse")) ? api.mode : "diff", //neverflatten - prevent flattening of destructured lists in JavaScript neverflatten: (api.neverflatten === true || api.neverflatten === "true"), //nocaseindent - if a 'case' should be indented to its parent 'switch' nocaseindent: (api.nocaseindent === true || api.nocaseindent === "true"), //noleadzero - in CSS removes and prevents a run of 0s from appearing //immediately before a value's decimal. noleadzero : (api.noleadzero === true || api.noleadzero === "true"), //objsort will alphabetize object keys in JavaScript objsort : (api.objsort === "all"), //preserve - should empty lines be preserved in beautify operations of JSPretty? preserve : (api.preserve === "all"), //quote - should all single quote characters be converted to double quote //characters during a diff operation to reduce the number of false positive //comparisons quote : (api.quote === true || api.quote === "true"), //quoteConvert - convert " to ' (or ' to ") of string literals or markup //attributes quoteConvert : (api.quoteConvert === "single" || api.quoteConvert === "double") ? api.quoteConvert : "none", //selectorlist - should comma separated CSS selector lists be on one line selectorlist: (api.selectorlist === true || api.selectorlist === "true"), //semicolon - should trailing semicolons be removed during a diff operation to //reduce the number of false positive comparisons semicolon : (api.semicolon === true || api.semicolon === "true"), //source - the source code in minify and beautify operations or "base" code in //operations source : (typeof api.source === "string" && api.source.length > 0 && (/^(\s+)$/).test(api.source) === false) ? api.source : "", //sourcelabel - a text label to describe the api.source code for the diff report sourcelabel : (typeof api.sourcelabel === "string" && api.sourcelabel.length > 0) ? api.sourcelabel : "base", //space - should JSPretty include a space between a function keyword and the //next adjacent opening parenthesis character in beautification operations space : (api.space !== false && api.space !== "false"), //spaceclose - If markup self-closing tags should end with " />" instead of "/>" spaceclose : (api.spaceclose === true || api.spaceclose === "true"), //style - should JavaScript and CSS code receive indentation if embedded inline //in markup style : (api.style === "noindent") ? "noindent" : "indent", //styleguide - preset of beautification options to bring a JavaScript sample //closer to conformance of a given style guide styleguide : (typeof api.styleguide === "string") ? api.styleguide : "", //tagmerge - Allows combining immediately adjacent start and end tags of the //same name into a single self-closing tag: <a href="home"></a> into //<a//href="home"/> tagmerge : (api.tagmerge === true || api.tagmerge === "true"), //sort markup child nodes alphabetically tagsort : (api.tagsort === true || api.tagsort === "true"), //textpreserve - Force the markup beautifier to retain text (white space and //all) exactly as provided. textpreserve : (api.textpreserve === true || api.textpreserve === "true"), //titanium - TSS document support via option, because this is a uniquely //modified form of JSON titanium : (api.titanium === true || api.titanium === "true"), //topcoms - should comments at the top of a JavaScript or CSS source be //preserved during minify operations topcoms : (api.topcoms === true || api.topcoms === "true"), //varword - should consecutive variables be merged into a comma separated list //or the opposite varword : (api.varword === "each" || api.varword === "list") ? api.varword : "none", //vertical - whether or not to vertically align lists of assigns in CSS and //JavaScript vertical : (api.vertical === "all"), //wrap - in markup beautification should text content wrap after the first //complete word up to a certain character length wrap : (isNaN(api.wrap) === true) ? 80 : Number(api.wrap) }, autoval = [], autostring = "", auto = function core__auto(a) { var b = [], c = 0, d = 0, join = "", flaga = false, flagb = false, output = function core__langkey_auto_output(langname) { if (langname === "unknown") { return [options.langdefault, setlangmode(options.langdefault), "unknown"]; } if (langname === "xhtml") { return ["xml", "html", "XHTML"]; } if (langname === "tss") { return ["tss", "tss", "Titanium Stylesheets"]; } return [langname, setlangmode(langname), nameproper(langname)]; }; if (a === null) { return; } if ((/(\s|;|\})((if)|(for)|(function\s*\w*))\s*\(/).test(a) === false && (/return\s*\w*\s*(;|\})/).test(a) === false && (a === undefined || (/^(\s*#(?!(!\/)))/).test(a) === true || (/\n\s*(\.|@)\w+(\(?|(\s*:))/).test(a) === true)) { if ((/\$[a-zA-Z]/).test(a) === true || (/\{\s*(\w|\.|\$|#)+\s*\{/).test(a) === true) { return output("scss"); } if ((/@[a-zA-Z]/).test(a) === true || (/\{\s*(\w|\.|@|#)+\s*\{/).test(a) === true) { return output("less"); } return output("css"); } b = a.replace(/\[[a-zA-Z][\w\-]*\=("|')?[a-zA-Z][\w\-]*("|')?\]/g, "") .split(""); c = b.length; if (((/^([\s\w\-]*<)/).test(a) === false || a.indexOf("<") < 0 || a.indexOf("function") < a.indexOf("<")) && (/(>[\s\w\-]*)$/).test(a) === false) { for (d = 1; d < c; d += 1) { if (flaga === false) { if (b[d] === "*" && b[d - 1] === "/") { b[d - 1] = ""; flaga = true; } else if (flagb === false && b[d] === "f" && d < c - 6 && b[d + 1] === "i" && b[d + 2] === "l" && b[d + 3] === "t" && b[d + 4] === "e" && b[d + 5] === "r" && b[d + 6] === ":") { flagb = true; } } else if (flaga === true && b[d] === "*" && d !== c - 1 && b[d + 1] === "/") { flaga = false; b[d] = ""; b[d + 1] = ""; } else if (flagb === true && b[d] === ";") { flagb = false; b[d] = ""; } if (flaga === true || flagb === true) { b[d] = ""; } } join = b.join(""); if ((/^(\s*(\{|\[))/).test(a) === true && (/((\]|\})\s*)$/).test(a) && a.indexOf(",") !== -1) { return output("json"); } if ((/((\}?(\(\))?\)*;?\s*)|([a-z0-9]("|')?\)*);?(\s*\})*)$/i).test(a) === true && ((/((var)|(let)|(const))\s+(\w|\$)+[a-zA-Z0-9]*/).test(a) === true || (/console\.log\(/).test(a) === true || (/document\.get/).test(a) === true || (/((\=|(\$\())\s*function)|(\s*function\s+(\w*\s+)?\()/).test(a) === true || a.indexOf("{") === -1 || (/^(\s*if\s+\()/).test(a) === true)) { if (a.indexOf("(") > -1 || a.indexOf("=") > -1 || (a.indexOf(";") > -1 && a.indexOf("{") > -1)) { if ((/:\s*((number)|(string))/).test(a) === true && (/((public)|(private))\s+/).test(a) === true) { return output("typescript"); } return output("javascript"); } return output("unknown"); } if (a.indexOf("{") !== -1 && (/^(\s*[\{\$\.#@a-z0-9])|^(\s*\/(\*|\/))|^(\s*\*\s*\{)/i).test(a) === true && (/^(\s*if\s*\()/).test(a) === false && (/\=\s*(\{|\[|\()/).test(join) === false && (((/(\+|-|\=|\?)\=/).test(join) === false || (/\/\/\s*\=+/).test(join) === true) || ((/\=+('|")?\)/).test(a) === true && (/;\s*base64/).test(a) === true)) && (/function(\s+\w+)*\s*\(/).test(join) === false) { if (((/:\s*((number)|(string))/).test(a) === true || (/this\.\w+\s*\=/).test(a) === true) && (/((public)|(private))\s+/).test(a) === true) { return output("typescript"); } if ((/((public)|(private))\s+(((static)?\s+(v|V)oid)|(class)|(final))/).test(a) === true) { return output("java"); } if ((/<[a-zA-Z]/).test(a) === true && (/<\/[a-zA-Z]/).test(a) === true && ((/\s?\{%/).test(a) === true || (/\{(\{|#)(?!(\{|#|\=))/).test(a) === true)) { return output("twig"); } if ((/^\s*($|@)/).test(a) === false && ((/:\s*(\{|\(|\[)/).test(a) === true || (/(\{|\s|;)render\s*\(\)\s*\{/).test(a) === true || (/^(\s*return;?\s*\{)/).test(a) === true) && (/(\};?\s*)$/).test(a) === true) { return output("javascript"); } if ((/\{\{#/).test(a) === true && (/\{\{\//).test(a) === true && (/<\w/).test(a) === true) { return output("handlebars"); } if ((/\{\s*(\w|\.|@|#)+\s*\{/).test(a) === true) { return output("less"); } if ((/\$(\w|-)/).test(a) === true) { return output("scss"); } if ((/(;|\{|:)\s*@\w/).test(a) === true) { return output("less"); } return output("css"); } if ((/"\s*:\s*\{/).test(a) === true) { return output("tss"); } return output("unknown"); } if ((((/(>[\w\s:]*)?<(\/|!)?[\w\s:\-\[]+/).test(a) === true || (/^(\s*<\?xml)/).test(a) === true) && ((/^([\s\w]*<)/).test(a) === true || (/(>[\s\w]*)$/).test(a) === true)) || ((/^(\s*<s((cript)|(tyle)))/i).test(a) === true && (/(<\/s((cript)|(tyle))>\s*)$/i).test(a) === true)) { if (((/\s*<!doctype\ html>/i).test(a) === true && (/\s*<html/i).test(a) === true) || ((/^(\s*<!DOCTYPE\s+((html)|(HTML))\s+PUBLIC\s+)/).test(a) === true && (/XHTML\s+1\.1/).test(a) === false && (/XHTML\s+1\.0\s+(S|s)((trict)|(TRICT))/).test(a) === false)) { if ((/<%\s*\}/).test(a) === true) { return output("ejs"); } if ((/<%\s*end/).test(a) === true) { return output("html_ruby"); } if ((/\{\{(#|\/|\{)/).test(a) === true) { return output("handlebars"); } if ((/\{\{end\}\}/).test(a) === true) { //place holder for Go lang templates return output("html"); } if ((/\s?\{%/).test(a) === true && (/\{(\{|#)(?!(\{|#|\=))/).test(a) === true) { return output("twig"); } if ((/<\?/).test(a) === true) { return output("php"); } if ((/<jsp:include\s/).test(a) === true || (/<c:((set)|(if))\s/).test(a) === true) { return output("jsp"); } if ((/\{(#|\?|\^|@|<|\+|~)/).test(a) === true && (/\{\//).test(a) === true) { return output("dustjs"); } return output("html"); } if ((/<jsp:include\s/).test(a) === true || (/<c:((set)|(if))\s/).test(a) === true) { return output("jsp"); } if ((/<%\s*\}/).test(a) === true) { return output("ejs"); } if ((/<%\s*end/).test(a) === true) { return output("html_ruby"); } if ((/\{\{(#|\/|\{)/).test(a) === true) { return output("handlebars"); } if ((/\{\{end\}\}/).test(a) === true) { //place holder for Go lang templates return output("xml"); } if ((/\s?\{%/).test(a) === true && (/\{\{(?!(\{|#|\=))/).test(a) === true) { return output("twig"); } if ((/<\?(?!(xml))/).test(a) === true) { return output("php"); } if ((/\{(#|\?|\^|@|<|\+|~)/).test(a) === true && (/\{\//).test(a) === true) { return output("dustjs"); } if ((/<jsp:include\s/).test(a) === true || (/<c:((set)|(if))\s/).test(a) === true) { return output("jsp"); } return output("xml"); } return output("unknown"); }, proctime = function core__proctime() { var minuteString = "", hourString = "", minutes = 0, hours = 0, elapsed = (typeof Date.now === "function") ? ((Date.now() - startTime) / 1000) : (function core__proctime_dateShim() { var dateitem = new Date(); return Date.parse(dateitem); }()), secondString = elapsed.toFixed(3), plural = function core__proctime_plural(x, y) { var a = ""; if (x !== 1) { a = x + y + "s "; } else { a = x + y + " "; } return a; }, minute = function core__proctime_minute() { minutes = parseInt((elapsed / 60), 10); minuteString = plural(minutes, " minute"); minutes = elapsed - (minutes * 60); secondString = (minutes === 1) ? "1 second" : minutes.toFixed(3) + " seconds"; }; if (elapsed >= 60 && elapsed < 3600) { minute(); } else if (elapsed >= 3600) { hours = parseInt((elapsed / 3600), 10); hourString = hours.toString(); elapsed = elapsed - (hours * 3600); hourString = plural(hours, " hour"); minute(); } else { secondString = plural(secondString, " second"); } return "<p><strong>Execution time:</strong> <em>" + hourString + minuteString + secondString + "</em></p>"; }, pdcomment = function core__pdcomment() { var comment = "", a = 0, b = options.source.length, c = options.source .indexOf("/*prettydiff.com") + 16, difftest = false, build = [], comma = -1, g = 0, sourceChar = [], quote = "", sind = options.source .indexOf("/*prettydiff.com"), dind = options.diff .indexOf("/*prettydiff.com"); if ((options.source.charAt(c - 17) === "\"" && options.source.charAt(c) === "\"") || (sind < 0 && dind < 0)) { return; } if (sind > -1 && (/^(\s*\{\s*"token"\s*:\s*\[)/).test(options.source) === true && (/\],\s*"types"\s*:\s*\[/).test(options.source) === true) { return; } if (sind < 0 && dind > -1 && (/^(\s*\{\s*"token"\s*:\s*\[)/).test(options.diff) === true && (/\],\s*"types"\s*:\s*\[/).test(options.diff) === true) { return; } if (c === 15 && typeof options.diff === "string") { c = options.diff .indexOf("/*prettydiff.com") + 16; difftest = true; } else if (c === 15) { return; } for (c; c < b; c += 1) { if (difftest === false) { if (options.source.charAt(c) === "*" && options.source.charAt(c + 1) === "/") { break; } sourceChar.push(options.source.charAt(c)); } else { if (options.diff.charAt(c) === "*" && options.diff.charAt(c + 1) === "/") { break; } sourceChar.push(options.diff.charAt(c)); } } comment = sourceChar.join("") .toLowerCase(); b = comment.length; for (c = 0; c < b; c += 1) { if ((typeof comment.charAt(c - 1) !== "string" || comment.charAt(c - 1) !== "\\") && (comment.charAt(c) === "\"" || comment.charAt(c) === "'")) { if (quote === "") { quote = comment.charAt(c); } else { quote = ""; } } if (quote === "") { if (comment.charAt(c) === ",") { g = comma + 1; comma = c; build.push(comment.substring(g, comma).replace(/^(\s*)/, "").replace(/(\s*)$/, "")); } } } g = comma + 1; comma = comment.length; build.push(comment.substring(g, comma).replace(/^(\s*)/, "").replace(/(\s*)$/, "")); quote = ""; b = build.length; sourceChar = []; for (c = 0; c < b; c += 1) { a = build[c].length; for (g = 0; g < a; g += 1) { if (build[c].indexOf(":") === -1) { build[c] = ""; break; } sourceChar = []; if ((typeof build[c].charAt(g - 1) !== "string" || build[c].charAt(g - 1) !== "\\") && (build[c].charAt(g) === "\"" || build[c].charAt(g) === "'")) { if (quote === "") { quote = build[c].charAt(g); } else { quote = ""; } } if (quote === "") { if (build[c].charAt(g) === ":") { sourceChar.push(build[c].substring(0, g).replace(/(\s*)$/, "")); sourceChar.push(build[c].substring(g + 1).replace(/^(\s*)/, "")); if (sourceChar[1].charAt(0) === sourceChar[1].charAt(sourceChar[1].length - 1) && sourceChar[1].charAt(sourceChar[1].length - 2) !== "\\" && (sourceChar[1].charAt(0) === "\"" || sourceChar[1].charAt(0) === "'")) { sourceChar[1] = sourceChar[1].substring(1, sourceChar[1].length - 1); } build[c] = sourceChar; break; } } } } for (c = 0; c < b; c += 1) { if (typeof build[c][1] === "string") { build[c][0] = build[c][0].replace("api.", ""); if (build[c][0] === "braces" || build[c][0] === "indent") { if (build[c][1] === "knr") { options.braces = "knr"; } else if (build[c][1] === "allman") { options.braces = "allman"; } } else if (build[c][0] === "comments") { if (build[c][1] === "indent") { options.comments = "indent"; } else if (build[c][1] === "noindent") { options.comments = "noindent"; } } else if (build[c][0] === "diffview") { if (build[c][1] === "sidebyside") { options.diffview = "sidebyside"; } else if (build[c][1] === "inline") { options.diffview = "inline"; } } else if (build[c][0] === "lang" || build[c][0] === "langdefault") { options[build[c][0]] = setlangmode(build[c][1]); } else if (build[c][0] === "mode") { if (build[c][1] === "beautify") { options.mode = "beautify"; } else if (build[c][1] === "minify") { options.mode = "minify"; } else if (build[c][1] === "diff") { options.mode = "diff"; } else if (build[c][1] === "parse") { options.mode = "parse"; } } else if (build[c][0] === "quoteConvert") { if (build[c][1] === "single") { options.quoteConvert = "single"; } else if (build[c][1] === "double") { options.quoteConvert = "double"; } else if (build[c][1] === "none") { options.quoteConvert = "none"; } } else if (build[c][0] === "style") { if (build[c][1] === "indent") { options.style = "indent"; } else if (build[c][1] === "noindent") { options.style = "noindent"; } } else if (build[c][0] === "varword") { if (build[c][1] === "each") { options.varword = "each"; } else if (build[c][1] === "list") { options.varword = "list"; } else if (build[c][1] === "none") { options.varword = "none"; } } else if (options[build[c][0]] !== undefined) { if (build[c][1] === "true") { options[build[c][0]] = true; } else if (build[c][1] === "false") { options[build[c][0]] = false; } else if (isNaN(build[c][1]) === false) { options[build[c][0]] = Number(build[c][1]); } else { options[build[c][0]] = build[c][1]; } } } } }; pdcomment(); if (api.preserve === true || api.preserve === "true") { options.preserve = true; } if (api.alphasort === true || api.alphasort === "true" || api.objsort === true || api.objsort === "true") { options.objsort = true; } if (api.indent === "allman") { options.braces = "allman"; } if (api.vertical === true || api.vertical === "true") { options.vertical = true; } if (options.source === "") { return ["Error: Source sample is missing.", ""]; } if (options.mode === "diff") { if (options.diff === "Diff sample is missing.") { return ["Error: Diff sample is missing.", ""]; } if (options.lang === "csv") { options.lang = "text"; } } if (options.lang === "auto") { autoval = auto(options.source); options.lang = autoval[1]; if (autoval[2] === "unknown") { autostring = "<p>Code type set to <strong>auto</strong>, but language could not be determined." + " Language defaulted to <em>" + autoval[0] + "</em>.</p>"; } else { autostring = "<p>Code type set to <strong>auto</strong>. Presumed language is <em>" + autoval[2] + "</em>.</p>"; } } else if (options.api === "dom") { autoval = [ options.lang, options.lang, options.lang ]; autostring = "<p>Code type is set to <strong>" + options.lang + "</strong>.</p>"; } else { options.lang = setlangmode(options.lang); autostring = "<p>Code type is set to <strong>" + options.lang + "</strong>.</p>"; } if (autoval[0] === "dustjs") { options.dustjs = true; } if (options.lang === "html") { options.html = true; options.lang = "markup"; } else if (options.lang === "tss" || options.lang === "titanium") { options.titanium = true; options.lang = "javscript"; } if (options.lang === "css") { if (api.objsort === "css" || api.objsort === "cssonly") { options.objsort = true; } if (api.preserve === "css" || api.preserve === "cssonly") { options.preserve = true; } if (api.vertical === "css" || api.vertical === "cssonly") { options.vertical = true; } } if (options.lang === "javascript" || options.lang === "js") { if (api.objsort === "js" || api.objsort === "jsonly") { options.objsort = true; } if (api.preserve === "js" || api.preserve === "jsonly") { options.preserve = true; } if (api.vertical === "js" || api.vertical === "jsonly") { options.vertical = true; } } if (options.mode === "minify") { if (options.lang === "css") { apioutput = global.csspretty(options); } else if (options.lang === "csv") { apioutput = global.csvpretty(options); } else if (options.lang === "markup") { apioutput = global.markuppretty(options); } else if (options.lang === "text") { apioutput = options.source; apidiffout = ""; } else { apioutput = global.jspretty(options); } return (function core__minifyReport() { var sizediff = function core__minifyReport_score() { var a = 0, lines = 0, source = options.source, sizeOld = source.length, windowsSize = 0, sizeNew = apioutput.length, sizeDifference = sizeOld - sizeNew, windowsDifference = 0, percent = ((sizeDifference / sizeOld) * 100), percentUnix = percent.toFixed(2) + "%", percentWindows = "", output = []; for (a = 0; a < sizeOld; a += 1) { if (source.charAt(a) === "\n" && (options.crlf === false || source.charAt(a - 1) === "\r")) { lines += 1; } } windowsSize = sizeOld + lines; windowsDifference = windowsSize - sizeNew; percent = ((windowsDifference / windowsSize) * 100); percentWindows = percent.toFixed(2) + "%"; if (global.report.indexOf("<p id='jserror'>") === 0) { output.push(global.report); } else if (global.report !== "") { output.push("<p><strong class='duplicate'>Duplicate id attribute values detected:</strong> " + global.report + "</p>"); } output.push("<div class='doc'><table class='analysis' summary='Minification efficiency report" + "'><caption>Minification efficiency report</caption><thead><tr><th colspan='2'>Ou" + "tput Size</th><th colspan='2'>Number of Lines From Input</th></tr></thead><tbody" + "><tr><td colspan='2'>"); output.push(sizeNew); output.push("</td><td colspan='2'>"); output.push(lines + 1); output.push("</td></tr><tr><th>Operating System</th><th>Input Size</th><th>Size Difference</t" + "h><th>Percentage of Decrease</th></tr><tr><th>Unix/Linux</th><td>"); output.push(sizeOld); output.push("</td><td>"); output.push(sizeDifference); output.push("</td><td>"); output.push(percentUnix); output.push("</td></tr><tr><th>Windows</th><td>"); output.push(windowsSize); output.push("</td><td>"); output.push(windowsDifference); output.push("</td><td>"); output.push(percentWindows); output.push("</td></tr></tbody></table></div>"); return output.join(""); }; if (global.jsxstatus === true) { autoval = [ "jsx", "javascript", "React JSX" ]; autostring = "<p>Code type set to <strong>auto</strong>. Presumed language is <em>React JSX</e" + "m>.</p>"; } return [ apioutput, autostring + proctime() + sizediff() ]; }()); } if (options.mode === "parse") { if (options.lang === "css") { apioutput = global.csspretty(options); } else if (options.lang === "csv") { apioutput = global.csvpretty(options); } else if (options.lang === "markup") { apioutput = global.markuppretty(options); autostring = autostring + global.report; } else if (options.lang === "text") { apioutput = options.source; apidiffout = ""; } else { apioutput = global.jspretty(options); } if (apidiffout === false) { apidiffout = ""; } if (global.jsxstatus === true) { autostring = "<p>Code type is presumed to be <em>React JSX</em>.</p>"; } if (apioutput.token !== undefined) { autostring = autostring + "<p>Total tokens: <strong>" + apioutput.token.length + "</strong></p>"; } return [ apioutput, autostring + proctime() ]; } if (options.mode === "beautify") { if (options.lang === "css") { apioutput = global.csspretty(options); apidiffout = global.report; } else if (options.lang === "csv") { apioutput = global.csvpretty(options); apidiffout = global.report; } else if (options.lang === "markup") { if (api.vertical === "jsonly") { options.vertical = "jsonly"; } apioutput = global.markuppretty(options); apidiffout = global.report; if (options.inchar !== "\t") { apioutput = apioutput.replace(/\r?\n[\t]*\u0020\/>/g, ""); } } else if (options.lang === "text") { apioutput = options.source; apidiffout = ""; } else { if (api.vertical === "jsonly") { options.vertical = "jsonly"; } apioutput = global.jspretty(options); apidiffout = global.report; } if (apidiffout === false) { apidiffout = ""; } if (global.jsxstatus === true) { autostring = "<p>Code type is presumed to be <em>React JSX</em>.</p>"; } if (options.api === "" && options.jsscope !== "none" && options.lang === "javascript") { builder.head = "<?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML " + "1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'><html xmlns='http://www." + "w3.org/1999/xhtml' xml:lang='en'><head><title>Pretty Diff - The difference tool<" + "/title><meta name='robots' content='index, follow'/> <meta name='DC.title' conte" + "nt='Pretty Diff - The difference tool'/> <link rel='canonical' href='http://pret" + "tydiff.com/' type='application/xhtml+xml'/><meta http-equiv='Content-Type' conte" + "nt='application/xhtml+xml;charset=UTF-8'/><meta http-equiv='Content-Style-Type' " + "content='text/css'/><style type='text/css'>"; builder.cssCore = "body{font-family:'Arial';font-size:10px;overflow-y:scroll;}#samples #dcolorSchem" + "e{position:relative;z-index:1000}#apireturn textarea{font-size:1.2em;height:50em" + ";width:100%}button{border-radius:.9em;display:block;font-weight:bold;width:100%}" + "div .button{text-align:center}div button{display:inline-block;font-weight:bold;m" + "argin:1em 0;padding:1em 2em}button:hover{cursor:pointer}#introduction{clear:both" + ";margin:0 0 0 5.6em;position:relative;top:-2.75em}#introduction ul{clear:both;he" + "ight:3em;margin:0 0 0 -5.5em;overflow:hidden;width:100em}#introduction li{clear:" + "none;display:block;float:left;font-size:1.4em;margin:0 4.95em -1em 0}#introducti" + "on li li{font-size:1em;margin-left:2em}#introduction .information,#webtool #intr" + "oduction h2{left:-90em;position:absolute;top:0;width:10em}#introduction h2{float" + ":none}#displayOps{float:right;font-size:1.5em;font-weight:bold;margin-right:1em;" + "width:22.5em}#displayOps.default{position:static}#displayOps.maximized{margin-bo" + "ttom:-2em;position:relative}#displayOps li{clear:none;display:block;float:left;l" + "ist-style:none;margin:2em 0 0;text-align:right;width:9em}h1{float:left;font-size" + ":2em;margin:0 .5em .5em 0}#hideOptions{margin-left:5em;padding:0}#title_text{bor" + "der-style:solid;border-width:.05em;display:block;float:left;font-size:1em;margin" + "-left:.55em;padding:.1em}h1 svg,h1 img{border-style:solid;border-width:.05em;flo" + "at:left;height:2em;width:2em}h1 span{font-size:.5em}h2,h3{background:#fff;border" + "-style:solid;border-width:.075em;display:inline-block;font-size:1.8em;font-weigh" + "t:bold;margin:0 .5em .5em 0;padding:0 .2em}#doc h3{margin-top:.5em}h3{font-size:" + "1.6em}h4{font-size:1.4em}fieldset{border-radius:.9em;clear:both;margin:3.5em 0 -" + "2em;padding:0 0 0 1em}legend{border-style:solid;border-width:.1em;font-size:1.2e" + "m;font-weight:bold;margin-left:-.25em}.button{margin:1em 0;text-align:center}.bu" + "tton button{display:block;font-size:2em;height:1.5em;margin:0 auto;padding:0;wid" + "th:50%}#diffreport{right:57.8em}#beaureport{right:38.8em}#minnreport{right:19.8e" + "m}#statreport{right:.8em}#statreport .body p,#statreport .body li,#statreport .b" + "ody h3{font-size:1.2em}#statreport .body h3{margin-top:0}#statreport .body ul{ma" + "rgin-top:1em}#reports{height:4em}#reports h2{display:none}.box{border-style:soli" + "d;border-width:0;left:auto;margin:0;padding:0;position:absolute;z-index:10}.box " + "button{border-radius:0;border-style:solid;border-width:.1em;display:block;float:" + "right;font-family:'Lucida Console','Trebuchet MS','Arial';height:1.75em;padding:" + "0;position:absolute;right:0;text-align:center;top:0;width:1.75em;z-index:7}.box " + "button.resize{border-width:.05em;cursor:se-resize;font-size:1.667em;font-weight:" + "normal;height:.8em;line-height:.5em;margin:-.85em 0 0;position:absolute;right:.0" + "5em;top:100%;width:.85em}.box button.minimize{margin:.35em 4em 0 0}.box button.m" + "aximize{margin:.35em 1.75em 0 0}.box button.save{margin:.35em 6.25em 0 0}.box .b" + "uttons{float:right;margin:0}.box h3.heading{cursor:pointer;float:left;font-size:" + "1em;height:3em;margin:0 0 -3.2em;position:relative;width:17em;z-index:6}.box h3." + "heading span{display:block;font-size:1.8em;padding:.25em 0 0 .5em}.box .body{cle" + "ar:both;height:20em;margin-top:-.1em;overflow:scroll;padding:4.25em 1em 1em;posi" + "tion:relative;right:0;top:0;width:75em;z-index:5}.options{border-radius:0 0 .9em" + " .9em;clear:both;margin-bottom:1em;padding:1em 1em 3.5em;width:auto}label{displa" + "y:inline;font-size:1.4em}ol li{font-size:1.4em;list-style-type:decimal}ol li li{" + "font-size:1em}body#doc ol li{font-size:1.1em}ul{margin:-1.4em 0 2em;padding:0}ul" + " li{list-style-type:none}li{clear:both;margin:1em 0 1em 3em}li h4{display:inline" + ";float:left;margin:.4em 0;text-align:left;width:14em}p{clear:both;font-size:1.2e" + "m;margin:0 0 1em}#option_comment{height:2.5em;margin-bottom:-1.5em;width:100%}.d" + "ifflabel{display:block;height:0}#beau-other-span,#diff-other-span{text-indent:-2" + "00em;width:0}.options p span{display:block;float:left;font-size:1.2em}#top{min-w" + "idth:80em}#top em{font-weight:bold}#update{clear:left;float:right;font-weight:bo" + "ld;padding:.5em;position:absolute;right:1em;top:11em}#announcement{height:2.5em;" + "margin:0 -5em -4.75em;width:27.5em}#textreport{width:100%}#options{float:left;ma" + "rgin:0;width:19em}#options label{width:auto}#options p{clear:both;font-size:1em;" + "margin:0;padding:0}#options p span{clear:both;float:none;height:2em;margin:0 0 0" + " 2em}#csvchar{width:11.8em}#language,#csvchar,#colorScheme{margin:0 0 1em 2em}#c" + "odeInput{margin-left:22.5em}#Beautify.wide p,#Beautify.tall p.file,#Minify.wide " + "p,#Minify.tall p.file{clear:none;float:none}#diffops p,#miniops p,#beauops p{cle" + "ar:both;font-size:1em;padding-top:1em}#options p strong,#diffops p strong,#minio" + "ps p strong,#beauops p strong,#options .label,#diffops .label,#miniops .label,#b" + "eauops .label{display:block;float:left;font-size:1.2em;font-weight:bold;margin-b" + "ottom:1em;width:17.5em}input[type='radio']{margin:0 .25em}input[type='file']{box" + "-shadow:none}select{border-style:inset;border-width:.1em;width:11.85em}.options " + "input,.options label{border-style:none;display:block;float:left}.options span la" + "bel{margin-left:.4em;white-space:nowrap;width:12em}.options p span label{font-si" + "ze:1em}#webtool .options input[type=text]{margin-right:1em;width:11.6em}#webtool" + " .options input[type=text],div input,textarea{border-style:inset;border-width:.1" + "em}textarea{display:inline-block;height:10em;margin:0}strong label{font-size:1em" + ";width:inherit}strong.new{background:#ff6;font-style:italic}#miniops span strong" + ",#diffops span strong,#beauops span strong{display:inline;float:none;font-size:1" + "em;width:auto}#Beautify .input label,#Beautify .output label,#Minify .input labe" + "l,#Minify .output label{display:block;font-size:1.05em;font-weight:bold}#beautyi" + "nput,#minifyinput,#baseText,#newText,#beautyoutput,#minifyoutput{font-size:1em}." + "clear{clear:both;display:block}.wide,.tall,#diffBase,#diffNew{border-radius:0 0 " + ".9em .9em;margin-bottom:1em}#diffBase,#diffNew{padding:1em}#diffBase p,#diffNew " + "p{clear:none;float:none}#diffBase.wide textarea,#diffNew.wide textarea{height:10" + ".1em}.wide,.tall{padding:1em 1.25em 0}#diff .addsource{cursor:pointer;margin-bot" + "tom:1em;padding:0}#diff .addsource input{display:block;float:left;margin:.5em .5" + "em -1.5em}#diff .addsource label{cursor:pointer;display:inline-block;font-size:1" + ".2em;padding:.5em .5em .5em 2em}.wide label{float:none;margin-right:0;width:100%" + "}.wide #beautyinput,.wide #minifyinput,.wide #beautyoutput,.wide #minifyoutput{h" + "eight:14.8em;margin:0;width:99.5%}.tall .input{clear:none;float:left}.tall .outp" + "ut{clear:none;float:right;margin-top:-2.4em}.tall .input,.tall .output{width:49%" + "}.tall .output label{text-align:right}.tall .input textarea{height:31.7em}.tall " + ".output textarea{height:34em}.tall textarea{margin:0 0 -.1em;width:100%}.tall #b" + "eautyinput,.tall #minifyinput{float:left}.tall #beautyoutput,.tall #minifyoutput" + "{float:right}.wide{width:auto}#diffBase.difftall,#diffNew.difftall{margin-bottom" + ":1.3em;padding:1em 1% .9em;width:47.5%}#diffBase.difftall{float:left}#diffNew.di" + "fftall{float:right}.file input,.labeltext input{display:inline-block;margin:0 .7" + "em 0 0;width:16em}.labeltext,.file{font-size:.9em;font-weight:bold;margin-bottom" + ":1em}.difftall textarea{height:30.6em;margin-bottom:.5em}#diffBase textarea,#dif" + "fNew textarea{width:99.5%}.input,.output{margin:0}#diffBase.wide,#diffNew.wide{p" + "adding:.8em 1em}#diffBase.wide{margin-bottom:1.2em}#diffoutput{width:100%}#diffo" + "utput p em,#diffoutput li em,.analysis .bad,.analysis .good{font-weight:bold}#di" + "ffoutput ul{font-size:1.2em;margin-top:1em}#diffoutput ul li{display:list-item;l" + "ist-style-type:disc}.analysis th{text-align:left}.analysis td{text-align:right}#" + "doc ul{margin-top:1em}#doc ul li{font-size:1.2em}body#doc ul li{font-size:1.1em}" + "#doc ol li span{display:block;margin-left:2em}.diff,.beautify{border-style:solid" + ";border-width:.2em;display:inline-block;font-family:'Courier New',Courier,'Lucid" + "a Console',monospace;margin:0 1em 1em 0;position:relative}.beautify .data em{dis" + "play:inline-block;font-style:normal;font-weight:bold;padding-top:.5em}.diff .ski" + "p{border-style:none none solid;border-width:0 0 .1em}.diff li,.diff p,.diff h3,." + "beautify li{font-size:1.1em}.diff .diff-left,.diff .diff-right{display:table-cel" + "l}.diff .diff-left{border-style:none none none solid;border-width:0 0 0 .1em}.di" + "ff .diff-right{border-style:none none none solid;border-width:0 0 0 .1em;margin-" + "left:-.1em;min-width:16.5em;right:0;top:0}.diff-right .data ol{min-width:16.5em}" + ".diff-right .data{border-style:none solid none none;border-width:0 .1em 0 0;widt" + "h:100%}.diff-right .data li{min-width:16.5em}.diff ol,.beautify ol{display:table" + "-cell;margin:0;padding:0}.diff li,.beautify li{border-style:none none solid;bord" + "er-width:0 0 .1em;display:block;line-height:1.2;list-style-type:none;margin:0;pa" + "dding-bottom:0;padding-right:.5em}.diff li{padding-top:.5em}.beautify .count li{" + "padding-top:.5em}@media screen and (-webkit-min-device-pixel-ratio:0) {.beautify" + " .count li{padding-top:.546em}}#doc .beautify .count li.fold{color:#900;cursor:p" + "ointer;font-weight:bold;padding-left:.5em}.diff .count,.beautify .count{border-s" + "tyle:solid;border-width:0 .1em 0 0;font-weight:normal;padding:0;text-align:right" + "}.diff .count li,.beautify .count li{padding-left:2em}.diff .data,.beautify .dat" + "a{text-align:left;white-space:pre}.diff .data li,.beautify .data li{letter-spaci" + "ng:.1em;padding-left:.5em;white-space:pre}#webtool .diff h3{border-style:none so" + "lid solid;border-width:0 .1em .2em;box-shadow:none;display:block;font-family:Ver" + "dana;margin:0 0 0 -.1em;padding:.2em 2em;text-align:left}.diff li em{font-style:" + "normal;margin:0 -.09em;padding:.05em 0}.diff p.author{border-style:solid;border-" + "width:.2em .1em .1em;margin:0;overflow:hidden;padding:.4em;text-align:right}#dco" + "lorScheme{float:right;margin:-2em 0 0 0}#dcolorScheme label{display:inline-block" + ";font-size:1em;margin-right:1em}body#doc{font-size:.8em;max-width:80em}#doc th{f" + "ont-weight:bold}#doc td span{display:block}#doc table,.box .body table{border-co" + "llapse:collapse;border-style:solid;border-width:.2em;clear:both}#doc table{font-" + "size:1.2em}body#doc table{font-size:1em}#doc td,#doc th{border-left-style:solid;" + "border-left-width:.1em;border-top-style:solid;border-top-width:.1em;padding:.5em" + "}#doc em,.box .body em{font-style:normal;font-weight:bold}#doc div{margin-bottom" + ":2em}#doc div div{clear:both;margin-bottom:1em}#doc h2{font-size:1.6em;margin:.5" + "em .5em .5em 0}#doc ol{clear:both}#doc_contents li{font-size:1.75em;margin:1em 0" + " 0}#doc_contents ol ol li{font-size:.75em;list-style:lower-alpha;margin:.5em 0 0" + "}#doc_contents ol{padding-bottom:1em}#doc #doc_contents ol ol{background-color:i" + "nherit;border-style:none;margin:.25em .3em 0 0;padding-bottom:0}#doc_contents a{" + "text-decoration:none}#diffoutput #thirdparties li{display:inline-block;list-styl" + "e-type:none}#thirdparties a{border-style:none;display:block;height:4em;text-deco" + "ration:none}button,fieldset,.box h3.heading,.box .body,.options,.diff .replace e" + "m,.diff .delete em,.diff .insert em,.wide,.tall,#diffBase,#diffNew,#doc div,#doc" + " div div,#doc ol,#option_comment,#update,#thirdparties img,#diffoutput #thirdpar" + "ties{border-style:solid;border-width:.1em}#apitest p{clear:both;padding-top:.75e" + "m}#apitest label,#apitest select,#apitest input,#apitest textarea{float:left}#ap" + "itest label{width:20em}#apitest select,#apitest input,#apitest textarea{width:30" + "em}#pdsamples{list-style-position:inside;margin:-12em 0 0 0;padding:0;position:r" + "elative;z-index:10}#pdsamples li{border-radius:1em;border-style:solid;border-wid" + "th:.1em;margin:0 0 3em;padding:1em}#pdsamples li div{border-radius:1em;border-st" + "yle:solid;border-width:.1em;margin:0;padding:1em}#pdsamples li p{display:inline-" + "block;font-size:1em;margin:0}#pdsamples li p a{display:block;margin:0 0 1em 2em}" + "#pdsamples li ul{margin:0 0 0 2em}#samples #pdsamples li li{background:none tran" + "sparent;border-style:none;display:list-item;list-style:disc outside;margin:0;pad" + "ding:.5em}#modalSave span{background:#000;display:block;left:0;opacity:.5;positi" + "on:absolute;top:0;z-index:9000}#modalSave p{background:#eee;color:#333;font-size" + ":3em;padding:1em;position:absolute;text-align:center;top:10em;width:25em;z-index" + ":9001}#modalSave p em{display:block;font-size:.75em;margin-top:1em}#modalSave p " + "strong{color:#c00;font-weight:bold}@media print{p,.options,#Beautify,#Minify,#di" + "ff,ul{display:none}div{width:100%}html td{font-size:.8em;white-space:normal}}"; builder.cssColor = "html .white,body.white{color:#333}body.white button{background:#eee;border-color" + ":#222;box-shadow:0 .1em .2em rgba(64,64,64,0.75);color:#666;text-shadow:.05em .0" + "5em .1em #ccc}.white button:hover,.white button:active{background:#999;color:#ee" + "e;text-shadow:.1em .1em .1em #333}.white a{color:#009}.white #title_text{border-" + "color:#fff;color:#333}.white #introduction h2{border-color:#999;color:#333}.whit" + "e h1 svg{background:#eee;border-color:#999;box-shadow:0 .1em .2em rgba(150,150,1" + "50,0.5)}.white h2,.white h3{background:#eee;border-color:#eee;box-shadow:none;pa" + "dding-left:0;text-shadow:none}.white fieldset{background:#ddd;border-color:#999}" + ".white legend{background:#fff;border-color:#999;color:#333;text-shadow:none}.whi" + "te .box{background:#666;border-color:#999;box-shadow:0 .4em .8em rgba(64,64,64,0" + ".75)}.white .box button{box-shadow:0 .1em .2em rgba(0,0,0,0.75);text-shadow:.1em" + " .1em .1em rgba(0,0,0,.5)}.white .box button.resize{background:#bbf;border-color" + ":#446;color:#446}.white .box button.resize:hover{background:#ddf;border-color:#2" + "28;color:#228}.white .box button.save{background:#d99;border-color:#300;color:#3" + "00}.white .box button.save:hover{background:#fcc;border-color:#822;color:#822}.w" + "hite .box button.minimize{background:#bbf;border-color:#006;color:#006}.white .b" + "ox button.minimize:hover{background:#eef;border-color:#228;color:#228}.white .bo" + "x button.maximize{background:#9c9;border-color:#030;color:#030}.white .box butto" + "n.maximize:hover{background:#cfc;border-color:#060;color:#060}.white .box h3.hea" + "ding{background:#ddd;border-color:#888;box-shadow:.2em .2em .4em #666}.white .bo" + "x h3.heading:hover{background:#333;color:#eee}.white .box .body{background:#eee;" + "border-color:#888;box-shadow:0 0 .4em rgba(64,64,64,0.75)}.white .options{backgr" + "ound:#eee;border-color:#999;box-shadow:0 .2em .4em rgba(64,64,64,0.5);text-shado" + "w:.05em .05em .1em #ccc}.white .options h2,.white #Beautify h2,.white #Minify h2" + ",.white #diffBase h2,.white #diffNew h2{background:#eee;border-color:#eee;box-sh" + "adow:none;text-shadow:none}.white #option_comment{background:#ddd;border-color:#" + "999}.white #top em{color:#00f}.white #update{background:#eee;border-color:#999;b" + "ox-shadow:0 .1em .2em rgba(64,64,64,0.5)}.white .wide,.white .tall,.white #diffB" + "ase,.white #diffNew{background:#eee;border-color:#999;box-shadow:0 .2em .4em rgb" + "a(64,64,64,0.5)}.white .file input,.white .labeltext input{border-color:#fff}#we" + "btool.white input.unchecked{background:#ccc;color:#666}.white .options input[typ" + "e=text],.white .options select{border-color:#999}.white #beautyoutput,.white #mi" + "nifyoutput{background:#ddd}.white #diffoutput p em,.white #diffoutput li em{colo" + "r:#c00}.white .analysis .bad{background-color:#ebb;color:#400}.white .analysis ." + "good{background-color:#cec;color:#040}.white #doc .analysis thead th,.white #doc" + " .analysis th[colspan]{background:#eef}.white div input{border-color:#999}.white" + " textarea{border-color:#999}.white textarea:hover{background:#eef8ff}.white .dif" + "f,.white .beautify,.white .diff ol,.white .beautify ol,.white .diff .diff-left,." + "white .diff .diff-right,.white h3,.white p.author{border-color:#999}.white .diff" + " .count li,.white .beautify .count li{background:#eed;border-color:#bbc;color:#8" + "86}.white .diff h3{background:#ddd;border-bottom-color:#bbc}.white .diff .empty{" + "background-color:#ddd;border-color:#ccc}.white .diff .replace{background-color:#" + "fea;border-color:#dd8}.white .diff .data .replace em{background-color:#ffd;borde" + "r-color:#963;color:#630}.white .diff .delete{background-color:#fbb;border-color:" + "#eaa}.white .diff .data .delete em{background-color:#fdd;border-color:#700;color" + ":#600}.white .diff .equal,.white .beautify .data li{background-color:#fff;border" + "-color:#eee}.white .beautify .data em.s1{color:#f66}.white .beautify .data em.s2" + "{color:#12f}.white .beautify .data em.s3{color:#090}.white .beautify .data em.s4" + "{color:#d6d}.white .beautify .data em.s5{color:#7cc}.white .beautify .data em.s6" + "{color:#c85}.white .beautify .data em.s7{color:#737}.white .beautify .data em.s8" + "{color:#6d0}.white .beautify .data em.s9{color:#dd0s}.white .beautify .data em.s" + "10{color:#893}.white .beautify .data em.s11{color:#b97}.white .beautify .data em" + ".s12{color:#bbb}.white .beautify .data em.s13{color:#cc3}.white .beautify .data " + "em.s14{color:#333}.white .beautify .data em.s15{color:#9d9}.white .beautify .dat" + "a em.s16{color:#880}.white .beautify .data .l0{background:#fff}.white .beautify " + ".data .l1{background:#fed}.white .beautify .data .l2{background:#def}.white .bea" + "utify .data .l3{background:#efe}.white .beautify .data .l4{background:#fef}.whit" + "e .beautify .data .l5{background:#eef}.white .beautify .data .l6{background:#fff" + "8cc}.white .beautify .data .l7{background:#ede}.white .beautify .data .l8{backgr" + "ound:#efc}.white .beautify .data .l9{background:#ffd}.white .beautify .data .l10" + "{background:#edc}.white .beautify .data .l11{background:#fdb}.white .beautify .d" + "ata .l12{background:#f8f8f8}.white .beautify .data .l13{background:#ffb}.white ." + "beautify .data .l14{background:#eec}.white .beautify .data .l15{background:#cfc}" + ".white .beautify .data .l16{background:#eea}.white .beautify .data .c0{backgroun" + "d:#ddd}.white .beautify .data li{color:#777}.white .diff .skip{background-color:" + "#efefef;border-color:#ddd}.white .diff .insert{background-color:#bfb;border-colo" + "r:#aea}.white .diff .data .insert em{background-color:#efc;border-color:#070;col" + "or:#050}.white .diff p.author{background:#efefef;border-top-color:#bbc}.white #d" + "oc table,.white .box .body table{background:#fff;border-color:#999}.white #doc s" + "trong,.white .box .body strong{color:#c00}.white .box .body em,.white .box .body" + " #doc em{color:#090}.white #thirdparties img,.white #diffoutput #thirdparties{bo" + "rder-color:#999}.white #thirdparties img{box-shadow:.2em .2em .4em #999}.white #" + "diffoutput #thirdparties{background:#eee}.white #doc div,#doc.white div{backgrou" + "nd:#ddd;border-color:#999}.white #doc ol,#doc.white ol{background:#eee;border-co" + "lor:#999}.white #doc div div,#doc.white div div{background:#eee;border-color:#99" + "9}.white #doc table,#doc.white table{background:#fff;border-color:#999}.white #d" + "oc th,#doc.white th{background:#ddd;border-left-color:#999;border-top-color:#999" + "}.white #doc tr:hover,#doc.white tr:hover{background:#ddd}#doc.white em{color:#0" + "60}.white #doc div:hover,#doc.white div:hover{background:#ccc}.white #doc div di" + "v:hover,#doc.white div div:hover,#doc.white div ol:hover{background:#fff}.white " + "#pdsamples li{background:#eee;border-color:#999}.white #pdsamples li div{backgro" + "und:#ddd;border-color:#999}.white #pdsamples li div a{color:#47a}.white #pdsampl" + "es li p a{color:#009}"; builder.cssExtra = "body{background:#eee}#doc p em{color:#090}"; builder.body = "</style></head><body id='webtool' class='"; builder.bodyColor = "white"; builder.title = "'><h1><a href='http://prettydiff.com/'>Pretty Diff - The difference tool</a></h1" + "><div class='doc'>"; builder.scriptOpen = "<script type='application/javascript'><![CDATA["; builder.scriptBody = "var pd={};pd.beaufold=function dom__beaufold(){'use strict';var self=this,title=" + "self.getAttribute('title').split('line '),min=Number(title[1].substr(0,title[1]." + "indexOf(' '))),max=Number(title[2]),a=0,b='',list=[self.parentNode.getElementsBy" + "TagName('li'),self.parentNode.nextSibling.getElementsByTagName('li')];if(self.in" + "nerHTML.charAt(0)==='-'){for(a=min;a<max;a+=1){list[0][a].style.display='none';l" + "ist[1][a].style.display='none';}self.innerHTML='+'+self.innerHTML.substr(1);}els" + "e{for(a=min;a<max;a+=1){list[0][a].style.display='block';list[1][a].style.displa" + "y='block';if(list[0][a].getAttribute('class')==='fold'&&list[0][a].innerHTML.cha" + "rAt(0)==='+'){b=list[0][a].getAttribute('title');b=b.substring(b.indexOf('to lin" + "e ')+1);a=Number(b)-1;}}self.innerHTML='-'+self.innerHTML.substr(1);}};(function" + "(){'use strict';var lists=document.getElementsByTagName('ol'),listslen=lists.len" + "gth,list=[],listlen=0,a=0,b=0;for(a=0;a<listslen;a+=1){if(lists[a].getAttribute(" + "'class')==='count'&&lists[a].parentNode.getAttribute('class')==='beautify'){list" + "=lists[a].getElementsByTagName('li');listlen=list.length;for(b=0;b<listlen;b+=1)" + "{if(list[b].getAttribute('class')==='fold'){list[b].onmousedown=pd.beaufold;}}}}" + "}());"; builder.scriptEnd = "]]></script>"; return [ builder.head + builder.cssCore + builder.cssColor + builder.cssExtra + builder.body + builder.bodyColor + builder.title + auto + proctime() + "</div>" + apidiffout + builder.scriptOpen + builder.scriptBody + builder.scriptEnd + "</body></html>", "" ]; } return [ apioutput, autostring + proctime() + apidiffout ]; } if (options.mode === "diff") { global.report = "diff"; options.vertical = false; options.jsscope = false; options.preserve = false; if (options.diffcomments === false) { options.comments = "nocomment"; } if (options.source === "" || options.diff === "") { return ["", ""]; } if (options.lang === "css") { apioutput = global.csspretty(options); options.source = options.diff; apidiffout = global.csspretty(options); } else if (options.lang === "csv") { apioutput = global.csvpretty(options); apidiffout = global.csvpretty(options); } else if (options.lang === "markup") { apioutput = global.markuppretty(options) .replace(/\r?\n[\t]*\ \/>/g, ""); options.source = options.diff; apidiffout = global.markuppretty(options) .replace(/\r?\n[\t]*\ \/>/g, ""); } else if (options.lang === "text") { apioutput = options.source; apidiffout = options.diff; } else { apioutput = global.jspretty(options); options.source = options.diff; apidiffout = global.jspretty(options); } if (options.quote === true) { apioutput = apioutput.replace(/'/g, "\""); apidiffout = apidiffout.replace(/'/g, "\""); } if (options.semicolon === true) { apioutput = apioutput.replace(/;\r\n/g, "\r\n").replace(/;\n/g, "\n"); apidiffout = apidiffout.replace(/;\r\n/g, "\r\n").replace(/;\n/g, "\n"); } if (options.sourcelabel === "" || spacetest.test(options.sourcelabel)) { options.sourcelabel = "Base Text"; } if (options.difflabel === "" || spacetest.test(options.difflabel)) { options.difflabel = "New Text"; } return (function core__diff() { var a = [], s = "s", t = "s"; options.diff = apidiffout; options.source = apioutput; if (options.diffcli === true) { return global.diffview(options); } if (apioutput === "Error: This does not appear to be JavaScript." || apidiffout === "Error: This does not appear to be JavaScript.") { a[1] = [ "<p><strong>Error:</strong> Please try using the option labeled <em>Plain Text (d" + "iff only)</em>. <span style='display:block'>The input does not appear to be mark" + "up, CSS, or JavaScript.</span></p>", 0, 0 ]; } else { if (options.lang === "text") { options.inchar = ""; } a[1] = global.diffview(options); if (a[1][2] === 1) { t = ""; if (a[1][1] === 0) { s = ""; } } } a[0] = "<p><strong>Number of differences:</strong> <em>" + (a[1][1] + a[1][2]) + "</em> difference" + s + " from <em>" + a[1][2] + "</em> line" + t + " of code.</p>"; if (global.jsxstatus === true) { autostring = "<p>Code type is presumed to be <em>React JSX</em>.</p>"; } if (options.api === "") { builder.head = "<?xml version='1.0' encoding='UTF-8' ?><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML " + "1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'><html xmlns='http://www." + "w3.org/1999/xhtml' xml:lang='en'><head><title>Pretty Diff - The difference tool<" + "/title><meta name='robots' content='index, follow'/> <meta name='DC.title' conte" + "nt='Pretty Diff - The difference tool'/> <link rel='canonical' href='http://pret" + "tydiff.com/' type='application/xhtml+xml'/><meta http-equiv='Content-Type' conte" + "nt='application/xhtml+xml;charset=UTF-8'/><meta http-equiv='Content-Style-Type' " + "content='text/css'/><style type='text/css'>"; builder.cssCore = "body{font-family:'Arial';font-size:10px;overflow-y:scroll;}#samples #dcolorSchem" + "e{position:relative;z-index:1000}#apireturn textarea{font-size:1.2em;height:50em" + ";width:100%}button{border-radius:.9em;display:block;font-weight:bold;width:100%}" + "div .button{text-align:center}div button{display:inline-block;font-weight:bold;m" + "argin:1em 0;padding:1em 2em}button:hover{cursor:pointer}#introduction{clear:both" + ";margin:0 0 0 5.6em;position:relative;top:-2.75em}#introduction ul{clear:both;he" + "ight:3em;margin:0 0 0 -5.5em;overflow:hidden;width:100em}#introduction li{clear:" + "none;display:block;float:left;font-size:1.4em;margin:0 4.95em -1em 0}#introducti" + "on li li{font-size:1em;margin-left:2em}#introduction .information,#webtool #intr" + "oduction h2{left:-90em;position:absolute;top:0;width:10em}#introduction h2{float" + ":none}#displayOps{float:right;font-size:1.5em;font-weight:bold;margin-right:1em;" + "width:22.5em}#displayOps.default{position:static}#displayOps.maximized{margin-bo" + "ttom:-2em;position:relative}#displayOps li{clear:none;display:block;float:left;l" + "ist-style:none;margin:2em 0 0;text-align:right;width:9em}h1{float:left;font-size" + ":2em;margin:0 .5em .5em 0}#hideOptions{margin-left:5em;padding:0}#title_text{bor" + "der-style:solid;border-width:.05em;display:block;float:left;font-size:1em;margin" + "-left:.55em;padding:.1em}h1 svg,h1 img{border-style:solid;border-width:.05em;flo" + "at:left;height:2em;width:2em}h1 span{font-size:.5em}h2,h3{background:#fff;border" + "-style:solid;border-width:.075em;display:inline-block;font-size:1.8em;font-weigh" + "t:bold;margin:0 .5em .5em 0;padding:0 .2em}#doc h3{margin-top:.5em}h3{font-size:" + "1.6em}h4{font-size:1.4em}fieldset{border-radius:.9em;clear:both;margin:3.5em 0 -" + "2em;padding:0 0 0 1em}legend{border-style:solid;border-width:.1em;font-size:1.2e" + "m;font-weight:bold;margin-left:-.25em}.button{margin:1em 0;text-align:center}.bu" + "tton button{display:block;font-size:2em;height:1.5em;margin:0 auto;padding:0;wid" + "th:50%}#diffreport{right:57.8em}#beaureport{right:38.8em}#minnreport{right:19.8e" + "m}#statreport{right:.8em}#statreport .body p,#statreport .body li,#statreport .b" + "ody h3{font-size:1.2em}#statreport .body h3{margin-top:0}#statreport .body ul{ma" + "rgin-top:1em}#reports{height:4em}#reports h2{display:none}.box{border-style:soli" + "d;border-width:0;left:auto;margin:0;padding:0;position:absolute;z-index:10}.box " + "button{border-radius:0;border-style:solid;border-width:.1em;display:block;float:" + "right;font-family:'Lucida Console','Trebuchet MS','Arial';height:1.75em;padding:" + "0;position:absolute;right:0;text-align:center;top:0;width:1.75em;z-index:7}.box " + "button.resize{border-width:.05em;cursor:se-resize;font-size:1.667em;font-weight:" + "normal;height:.8em;line-height:.5em;margin:-.85em 0 0;position:absolute;right:.0" + "5em;top:100%;width:.85em}.box button.minimize{margin:.35em 4em 0 0}.box button.m" + "aximize{margin:.35em 1.75em 0 0}.box button.save{margin:.35em 6.25em 0 0}.box .b" + "uttons{float:right;margin:0}.box h3.heading{cursor:pointer;float:left;font-size:" + "1em;height:3em;margin:0 0 -3.2em;position:relative;width:17em;z-index:6}.box h3." + "heading span{display:block;font-size:1.8em;padding:.25em 0 0 .5em}.box .body{cle" + "ar:both;height:20em;margin-top:-.1em;overflow:scroll;padding:4.25em 1em 1em;posi" + "tion:relative;right:0;top:0;width:75em;z-index:5}.options{border-radius:0 0 .9em" + " .9em;clear:both;margin-bottom:1em;padding:1em 1em 3.5em;width:auto}label{displa" + "y:inline;font-size:1.4em}ol li{font-size:1.4em;list-style-type:decimal}ol li li{" + "font-size:1em}body#doc ol li{font-size:1.1em}ul{margin:-1.4em 0 2em;padding:0}ul" + " li{list-style-type:none}li{clear:both;margin:1em 0 1em 3em}li h4{display:inline" + ";float:left;margin:.4em 0;text-align:left;width:14em}p{clear:both;font-size:1.2e" + "m;margin:0 0 1em}#option_comment{height:2.5em;margin-bottom:-1.5em;width:100%}.d" + "ifflabel{display:block;height:0}#beau-other-span,#diff-other-span{text-indent:-2" + "00em;width:0}.options p span{display:block;float:left;font-size:1.2em}#top{min-w" + "idth:80em}#top em{font-weight:bold}#update{clear:left;float:right;font-weight:bo" + "ld;padding:.5em;position:absolute;right:1em;top:11em}#announcement{height:2.5em;" + "margin:0 -5em -4.75em;width:27.5em}#textreport{width:100%}#options{float:left;ma" + "rgin:0;width:19em}#options label{width:auto}#options p{clear:both;font-size:1em;" + "margin:0;padding:0}#options p span{clear:both;float:none;height:2em;margin:0 0 0" + " 2em}#csvchar{width:11.8em}#language,#csvchar,#colorScheme{margin:0 0 1em 2em}#c" + "odeInput{margin-left:22.5em}#Beautify.wide p,#Beautify.tall p.file,#Minify.wide " + "p,#Minify.tall p.file{clear:none;float:none}#diffops p,#miniops p,#beauops p{cle" + "ar:both;font-size:1em;padding-top:1em}#options p strong,#diffops p strong,#minio" + "ps p strong,#beauops p strong,#options .label,#diffops .label,#miniops .label,#b" + "eauops .label{display:block;float:left;font-size:1.2em;font-weight:bold;margin-b" + "ottom:1em;width:17.5em}input[type='radio']{margin:0 .25em}input[type='file']{box" + "-shadow:none}select{border-style:inset;border-width:.1em;width:11.85em}.options " + "input,.options label{border-style:none;display:block;float:left}.options span la" + "bel{margin-left:.4em;white-space:nowrap;width:12em}.options p span label{font-si" + "ze:1em}#webtool .options input[type=text]{margin-right:1em;width:11.6em}#webtool" + " .options input[type=text],div input,textarea{border-style:inset;border-width:.1" + "em}textarea{display:inline-block;height:10em;margin:0}strong label{font-size:1em" + ";width:inherit}strong.new{background:#ff6;font-style:italic}#miniops span strong" + ",#diffops span strong,#beauops span strong{display:inline;float:none;font-size:1" + "em;width:auto}#Beautify .input label,#Beautify .output label,#Minify .input labe" + "l,#Minify .output label{display:block;font-size:1.05em;font-weight:bold}#beautyi" + "nput,#minifyinput,#baseText,#newText,#beautyoutput,#minifyoutput{font-size:1em}." + "clear{clear:both;display:block}.wide,.tall,#diffBase,#diffNew{border-radius:0 0 " + ".9em .9em;margin-bottom:1em}#diffBase,#diffNew{padding:1em}#diffBase p,#diffNew " + "p{clear:none;float:none}#diffBase.wide textarea,#diffNew.wide textarea{height:10" + ".1em}.wide,.tall{padding:1em 1.25em 0}#diff .addsource{cursor:pointer;margin-bot" + "tom:1em;padding:0}#diff .addsource input{display:block;float:left;margin:.5em .5" + "em -1.5em}#diff .addsource label{cursor:pointer;display:inline-block;font-size:1" + ".2em;padding:.5em .5em .5em 2em}.wide label{float:none;margin-right:0;width:100%" + "}.wide #beautyinput,.wide #minifyinput,.wide #beautyoutput,.wide #minifyoutput{h" + "eight:14.8em;margin:0;width:99.5%}.tall .input{clear:none;float:left}.tall .outp" + "ut{clear:none;float:right;margin-top:-2.4em}.tall .input,.tall .output{width:49%" + "}.tall .output label{text-align:right}.tall .input textarea{height:31.7em}.tall " + ".output textarea{height:34em}.tall textarea{margin:0 0 -.1em;width:100%}.tall #b" + "eautyinput,.tall #minifyinput{float:left}.tall #beautyoutput,.tall #minifyoutput" + "{float:right}.wide{width:auto}#diffBase.difftall,#diffNew.difftall{margin-bottom" + ":1.3em;padding:1em 1% .9em;width:47.5%}#diffBase.difftall{float:left}#diffNew.di" + "fftall{float:right}.file input,.labeltext input{display:inline-block;margin:0 .7" + "em 0 0;width:16em}.labeltext,.file{font-size:.9em;font-weight:bold;margin-bottom" + ":1em}.difftall textarea{height:30.6em;margin-bottom:.5em}#diffBase textarea,#dif" + "fNew textarea{width:99.5%}.input,.output{margin:0}#diffBase.wide,#diffNew.wide{p" + "adding:.8em 1em}#diffBase.wide{margin-bottom:1.2em}#diffoutput{width:100%}#diffo" + "utput p em,#diffoutput li em,.analysis .bad,.analysis .good{font-weight:bold}#di" + "ffoutput ul{font-size:1.2em;margin-top:1em}#diffoutput ul li{display:list-item;l" + "ist-style-type:disc}.analysis th{text-align:left}.analysis td{text-align:right}#" + "doc ul{margin-top:1em}#doc ul li{font-size:1.2em}body#doc ul li{font-size:1.1em}" + "#doc ol li span{display:block;margin-left:2em}.diff,.beautify{border-style:solid" + ";border-width:.2em;display:inline-block;font-family:'Courier New',Courier,'Lucid" + "a Console',monospace;margin:0 1em 1em 0;position:relative}.beautify .data em{dis" + "play:inline-block;font-style:normal;font-weight:bold;padding-top:.5em}.diff .ski" + "p{border-style:none none solid;border-width:0 0 .1em}.diff li,.diff p,.diff h3,." + "beautify li{font-size:1.1em}.diff .diff-left,.diff .diff-right{display:table-cel" + "l}.diff .diff-left{border-style:none none none solid;border-width:0 0 0 .1em}.di" + "ff .diff-right{border-style:none none none solid;border-width:0 0 0 .1em;margin-" + "left:-.1em;min-width:16.5em;right:0;top:0}.diff-right .data ol{min-width:16.5em}" + ".diff-right .data{border-style:none solid none none;border-width:0 .1em 0 0;widt" + "h:100%}.diff-right .data li{min-width:16.5em}.diff ol,.beautify ol{display:table" + "-cell;margin:0;padding:0}.diff li,.beautify li{border-style:none none solid;bord" + "er-width:0 0 .1em;display:block;line-height:1.2;list-style-type:none;margin:0;pa" + "dding-bottom:0;padding-right:.5em}.diff li{padding-top:.5em}.beautify .count li{" + "padding-top:.5em}@media screen and (-webkit-min-device-pixel-ratio:0) {.beautify" + " .count li{padding-top:.546em}}#doc .beautify .count li.fold{color:#900;cursor:p" + "ointer;font-weight:bold;padding-left:.5em}.diff .count,.beautify .count{border-s" + "tyle:solid;border-width:0 .1em 0 0;font-weight:normal;padding:0;text-align:right" + "}.diff .count li,.beautify .count li{padding-left:2em}.diff .data,.beautify .dat" + "a{text-align:left;white-space:pre}.diff .data li,.beautify .data li{letter-spaci" + "ng:.1em;padding-left:.5em;white-space:pre}#webtool .diff h3{border-style:none so" + "lid solid;border-width:0 .1em .2em;box-shadow:none;display:block;font-family:Ver" + "dana;margin:0 0 0 -.1em;padding:.2em 2em;text-align:left}.diff li em{font-style:" + "normal;margin:0 -.09em;padding:.05em 0}.diff p.author{border-style:solid;border-" + "width:.2em .1em .1em;margin:0;overflow:hidden;padding:.4em;text-align:right}#dco" + "lorScheme{float:right;margin:-2em 0 0 0}#dcolorScheme label{display:inline-block" + ";font-size:1em;margin-right:1em}body#doc{font-size:.8em;max-width:80em}#doc th{f" + "ont-weight:bold}#doc td span{display:block}#doc table,.box .body table{border-co" + "llapse:collapse;border-style:solid;border-width:.2em;clear:both}#doc table{font-" + "size:1.2em}body#doc table{font-size:1em}#doc td,#doc th{border-left-style:solid;" + "border-left-width:.1em;border-top-style:solid;border-top-width:.1em;padding:.5em" + "}#doc em,.box .body em{font-style:normal;font-weight:bold}#doc div{margin-bottom" + ":2em}#doc div div{clear:both;margin-bottom:1em}#doc h2{font-size:1.6em;margin:.5" + "em .5em .5em 0}#doc ol{clear:both}#doc_contents li{font-size:1.75em;margin:1em 0" + " 0}#doc_contents ol ol li{font-size:.75em;list-style:lower-alpha;margin:.5em 0 0" + "}#doc_contents ol{padding-bottom:1em}#doc #doc_contents ol ol{background-color:i" + "nherit;border-style:none;margin:.25em .3em 0 0;padding-bottom:0}#doc_contents a{" + "text-decoration:none}#diffoutput #thirdparties li{display:inline-block;list-styl" + "e-type:none}#thirdparties a{border-style:none;display:block;height:4em;text-deco" + "ration:none}button,fieldset,.box h3.heading,.box .body,.options,.diff .replace e" + "m,.diff .delete em,.diff .insert em,.wide,.tall,#diffBase,#diffNew,#doc div,#doc" + " div div,#doc ol,#option_comment,#update,#thirdparties img,#diffoutput #thirdpar" + "ties{border-style:solid;border-width:.1em}#apitest p{clear:both;padding-top:.75e" + "m}#apitest label,#apitest select,#apitest input,#apitest textarea{float:left}#ap" + "itest label{width:20em}#apitest select,#apitest input,#apitest textarea{width:30" + "em}#pdsamples{list-style-position:inside;margin:-12em 0 0 0;padding:0;position:r" + "elative;z-index:10}#pdsamples li{border-radius:1em;border-style:solid;border-wid" + "th:.1em;margin:0 0 3em;padding:1em}#pdsamples li div{border-radius:1em;border-st" + "yle:solid;border-width:.1em;margin:0;padding:1em}#pdsamples li p{display:inline-" + "block;font-size:1em;margin:0}#pdsamples li p a{display:block;margin:0 0 1em 2em}" + "#pdsamples li ul{margin:0 0 0 2em}#samples #pdsamples li li{background:none tran" + "sparent;border-style:none;display:list-item;list-style:disc outside;margin:0;pad" + "ding:.5em}#modalSave span{background:#000;display:block;left:0;opacity:.5;positi" + "on:absolute;top:0;z-index:9000}#modalSave p{background:#eee;color:#333;font-size" + ":3em;padding:1em;position:absolute;text-align:center;top:10em;width:25em;z-index" + ":9001}#modalSave p em{display:block;font-size:.75em;margin-top:1em}#modalSave p " + "strong{color:#c00;font-weight:bold}@media print{p,.options,#Beautify,#Minify,#di" + "ff,ul{display:none}div{width:100%}html td{font-size:.8em;white-space:normal}}"; builder.cssColor = "html .white,body.white{color:#333}body.white button{background:#eee;border-color" + ":#222;box-shadow:0 .1em .2em rgba(64,64,64,0.75);color:#666;text-shadow:.05em .0" + "5em .1em #ccc}.white button:hover,.white button:active{background:#999;color:#ee" + "e;text-shadow:.1em .1em .1em #333}.white a{color:#009}.white #title_text{border-" + "color:#fff;color:#333}.white #introduction h2{border-color:#999;color:#333}.whit" + "e h1 svg{background:#eee;border-color:#999;box-shadow:0 .1em .2em rgba(150,150,1" + "50,0.5)}.white h2,.white h3{background:#eee;border-color:#eee;box-shadow:none;pa" + "dding-left:0;text-shadow:none}.white fieldset{background:#ddd;border-color:#999}" + ".white legend{background:#fff;border-color:#999;color:#333;text-shadow:none}.whi" + "te .box{background:#666;border-color:#999;box-shadow:0 .4em .8em rgba(64,64,64,0" + ".75)}.white .box button{box-shadow:0 .1em .2em rgba(0,0,0,0.75);text-shadow:.1em" + " .1em .1em rgba(0,0,0,.5)}.white .box button.resize{background:#bbf;border-color" + ":#446;color:#446}.white .box button.resize:hover{background:#ddf;border-color:#2" + "28;color:#228}.white .box button.save{background:#d99;border-color:#300;color:#3" + "00}.white .box button.save:hover{background:#fcc;border-color:#822;color:#822}.w" + "hite .box button.minimize{background:#bbf;border-color:#006;color:#006}.white .b" + "ox button.minimize:hover{background:#eef;border-color:#228;color:#228}.white .bo" + "x button.maximize{background:#9c9;border-color:#030;color:#030}.white .box butto" + "n.maximize:hover{background:#cfc;border-color:#060;color:#060}.white .box h3.hea" + "ding{background:#ddd;border-color:#888;box-shadow:.2em .2em .4em #666}.white .bo" + "x h3.heading:hover{background:#333;color:#eee}.white .box .body{background:#eee;" + "border-color:#888;box-shadow:0 0 .4em rgba(64,64,64,0.75)}.white .options{backgr" + "ound:#eee;border-color:#999;box-shadow:0 .2em .4em rgba(64,64,64,0.5);text-shado" + "w:.05em .05em .1em #ccc}.white .options h2,.white #Beautify h2,.white #Minify h2" + ",.white #diffBase h2,.white #diffNew h2{background:#eee;border-color:#eee;box-sh" + "adow:none;text-shadow:none}.white #option_comment{background:#ddd;border-color:#" + "999}.white #top em{color:#00f}.white #update{background:#eee;border-color:#999;b" + "ox-shadow:0 .1em .2em rgba(64,64,64,0.5)}.white .wide,.white .tall,.white #diffB" + "ase,.white #diffNew{background:#eee;border-color:#999;box-shadow:0 .2em .4em rgb" + "a(64,64,64,0.5)}.white .file input,.white .labeltext input{border-color:#fff}#we" + "btool.white input.unchecked{background:#ccc;color:#666}.white .options input[typ" + "e=text],.white .options select{border-color:#999}.white #beautyoutput,.white #mi" + "nifyoutput{background:#ddd}.white #diffoutput p em,.white #diffoutput li em{colo" + "r:#c00}.white .analysis .bad{background-color:#ebb;color:#400}.white .analysis ." + "good{background-color:#cec;color:#040}.white #doc .analysis thead th,.white #doc" + " .analysis th[colspan]{background:#eef}.white div input{border-color:#999}.white" + " textarea{border-color:#999}.white textarea:hover{background:#eef8ff}.white .dif" + "f,.white .beautify,.white .diff ol,.white .beautify ol,.white .diff .diff-left,." + "white .diff .diff-right,.white h3,.white p.author{border-color:#999}.white .diff" + " .count li,.white .beautify .count li{background:#eed;border-color:#bbc;color:#8" + "86}.white .diff h3{background:#ddd;border-bottom-color:#bbc}.white .diff .empty{" + "background-color:#ddd;border-color:#ccc}.white .diff .replace{background-color:#" + "fea;border-color:#dd8}.white .diff .data .replace em{background-color:#ffd;borde" + "r-color:#963;color:#630}.white .diff .delete{background-color:#fbb;border-color:" + "#eaa}.white .diff .data .delete em{background-color:#fdd;border-color:#700;color" + ":#600}.white .diff .equal,.white .beautify .data li{background-color:#fff;border" + "-color:#eee}.white .beautify .data em.s1{color:#f66}.white .beautify .data em.s2" + "{color:#12f}.white .beautify .data em.s3{color:#090}.white .beautify .data em.s4" + "{color:#d6d}.white .beautify .data em.s5{color:#7cc}.white .beautify .data em.s6" + "{color:#c85}.white .beautify .data em.s7{color:#737}.white .beautify .data em.s8" + "{color:#6d0}.white .beautify .data em.s9{color:#dd0s}.white .beautify .data em.s" + "10{color:#893}.white .beautify .data em.s11{color:#b97}.white .beautify .data em" + ".s12{color:#bbb}.white .beautify .data em.s13{color:#cc3}.white .beautify .data " + "em.s14{color:#333}.white .beautify .data em.s15{color:#9d9}.white .beautify .dat" + "a em.s16{color:#880}.white .beautify .data .l0{background:#fff}.white .beautify " + ".data .l1{background:#fed}.white .beautify .data .l2{background:#def}.white .bea" + "utify .data .l3{background:#efe}.white .beautify .data .l4{background:#fef}.whit" + "e .beautify .data .l5{background:#eef}.white .beautify .data .l6{background:#fff" + "8cc}.white .beautify .data .l7{background:#ede}.white .beautify .data .l8{backgr" + "ound:#efc}.white .beautify .data .l9{background:#ffd}.white .beautify .data .l10" + "{background:#edc}.white .beautify .data .l11{background:#fdb}.white .beautify .d" + "ata .l12{background:#f8f8f8}.white .beautify .data .l13{background:#ffb}.white ." + "beautify .data .l14{background:#eec}.white .beautify .data .l15{background:#cfc}" + ".white .beautify .data .l16{background:#eea}.white .beautify .data .c0{backgroun" + "d:#ddd}.white .beautify .data li{color:#777}.white .diff .skip{background-color:" + "#efefef;border-color:#ddd}.white .diff .insert{background-color:#bfb;border-colo" + "r:#aea}.white .diff .data .insert em{background-color:#efc;border-color:#070;col" + "or:#050}.white .diff p.author{background:#efefef;border-top-color:#bbc}.white #d" + "oc table,.white .box .body table{background:#fff;border-color:#999}.white #doc s" + "trong,.white .box .body strong{color:#c00}.white .box .body em,.white .box .body" + " #doc em{color:#090}.white #thirdparties img,.white #diffoutput #thirdparties{bo" + "rder-color:#999}.white #thirdparties img{box-shadow:.2em .2em .4em #999}.white #" + "diffoutput #thirdparties{background:#eee}.white #doc div,#doc.white div{backgrou" + "nd:#ddd;border-color:#999}.white #doc ol,#doc.white ol{background:#eee;border-co" + "lor:#999}.white #doc div div,#doc.white div div{background:#eee;border-color:#99" + "9}.white #doc table,#doc.white table{background:#fff;border-color:#999}.white #d" + "oc th,#doc.white th{background:#ddd;border-left-color:#999;border-top-color:#999" + "}.white #doc tr:hover,#doc.white tr:hover{background:#ddd}#doc.white em{color:#0" + "60}.white #doc div:hover,#doc.white div:hover{background:#ccc}.white #doc div di" + "v:hover,#doc.white div div:hover,#doc.white div ol:hover{background:#fff}.white " + "#pdsamples li{background:#eee;border-color:#999}.white #pdsamples li div{backgro" + "und:#ddd;border-color:#999}.white #pdsamples li div a{color:#47a}.white #pdsampl" + "es li p a{color:#009}"; builder.cssExtra = "body{background:#eee}#doc p em{color:#090}"; builder.body = "</style></head><body id='webtool' class='"; builder.bodyColor = "white"; builder.title = "'><h1><a href='http://prettydiff.com/'>Pretty Diff - The difference tool</a></h1" + "><div class='doc'>"; builder.accessibility = "</div><p>Accessibility note. &lt;em&gt; tags in the output represent character d" + "ifferences per lines compared.</p>"; builder.scriptOpen = "<script type='application/javascript'><![CDATA[var pd={},d=document.getElementsB" + "yTagName('ol');"; builder.scriptBody = "(function(){var cells=d[0].getElemensByTagName('li'),len=cells.length,a=0;for(a=" + "0;a<len;a+=1){if(cells[a].getAttribute('class')==='fold'){cells[a].onmousedown=p" + "d.difffold;}}if(d.length>3){d[2].onmousedown=pd.colSliderGrab;d[2].ontouchstart=" + "pd.colSliderGrab;}}());pd.difffold=function dom__difffold(){var self=this,title=" + "self.getAttribute('title').split('line '),min=Number(title[1].substr(0,title[1]." + "indexOf(' '))),max=Number(title[2]),a=0,b=0,inner=self.innerHTML,lists=[],parent" + "=self.parentNode.parentNode,listnodes=(parent.getAttribute('class'==='diff'))?pa" + "rent.getElementsByTagName('ol'):parent.parentNode.getElementsByTagName('ol'),lis" + "tLen=listnodes.length;for(a=0;a<listLen;a+=1){lists.push(listnodes[a].getElement" + "sByTagName('li'));}if(lists.length>3){for(a=0;a<min;a+=1){if(lists[0][a].getAttr" + "ibute('class')==='empty'){min+=1;max+=1}}}max=(max>=lists[0].length)?lists[0].le" + "ngth:max;if(inner.charAt(0)===' - '){self.innerHTML='+'+inner.substr(1);for(a=mi" + "n;a<max;a+=1){for(b=0;b<listLen;b+=1){lists[b][a].style.display='none';}}}else{s" + "elf.innerHTML=' - '+inner.substr(1);for(a=min;a<max;a+=1){for(b=0;b<listLen;b+=1" + "){lists[b][a].style.display='block';}}}};pd.colSliderProperties=[d[0].clientWidt" + "h,d[1].clientWidth,d[2].parentNode.clientWidth,d[2].parentNode.parentNode.client" + "Width,d[2].parentNode.offsetLeft-d[2].parentNode.parentNode.offsetLeft,];pd.colS" + "liderGrab=function(){'use strict';var x=this,a=x.parentNode,b=a.parentNode,c=0,c" + "ounter=pd.colSliderProperties[0],data=pd.colSliderProperties[1],width=pd.colSlid" + "erProperties[2],total=pd.colSliderProperties[3],offset=(pd.colSliderProperties[4" + "]),min=0,max=data-1,status='ew',g=min+15,h=max-15,k=false,z=a.previousSibling,dr" + "op=function(g){x.style.cursor=status+'-resize';g=null;document.onmousemove=null;" + "document.onmouseup=null;},boxmove=function(f){f=f||window.event;c=offset-f.clien" + "tX;if(c>g&&c<h){k=true;}if(k===true&&c>h){a.style.width=((total-counter-2)/10)+'" + "em';status='e';}else if(k===true&&c<g){a.style.width=(width/10)+'em';status='w';" + "}else if(c<max&&c>min){a.style.width=((width+c)/10)+'em';status='ew';}document.o" + "nmouseup=drop;};if(typeof pd.o==='object'&&typeof pd.o.re==='object'){offset+=pd" + ".o.re.offsetLeft;offset-=pd.o.rf.scrollLeft;}else{c=(document.body.parentNode.sc" + "rollLeft>document.body.scrollLeft)?document.body.parentNode.scrollLeft:document." + "body.scrollLeft;offset-=c;}offset+=x.clientWidth;x.style.cursor='ew-resize';b.st" + "yle.width=(total/10)+'em';b.style.display='inline-block';if(z.nodeType!==1){do{z" + "=z.previousSibling;}while(z.nodeType!==1);}z.style.display='block';a.style.width" + "=(a.clientWidth/10)+'em';a.style.position='absolute';document.onmousemove=boxmov" + "e;document.onmousedown=null;};"; builder.scriptEnd = "]]></script>"; return [ builder.head + builder.cssCore + builder.cssColor + builder.cssExtra + builder.body + builder.bodyColor + builder.title + auto + proctime() + a[0] + builder.accessibility + a[1][0] + builder.scriptOpen + builder.scriptBody + builder.scriptEnd + "</body></html>", "" ]; } if (options.mode === "diff") { return [ a[1][0], autostring + proctime() + a[0] + " <p>Accessibility note. &lt;em&gt; tags in the output represent character differ" + "ences per lines compared.</p>" ]; } return [ a[1][0], autostring + proctime() + a[0] + " <p>Accessibility note. &lt;em&gt; tags in the output represent presentation for" + " variable coloring and scope.</p>" ]; }()); } }; return core(api); }; global.report = ""; global.edition = { addon : { ace: 150918 }, api : { dom : 151130, //dom.js nodeLocal: 151130, //node-local.js wsh : 151130 //prettydiff.wsf }, css : 151109, //diffview.css file csspretty : 151130, //csspretty lib csvpretty : 151130, //csvpretty lib diffview : 151130, //diffview lib documentation: 151130, //documentation.xhtml jspretty : 151130, //jspretty lib latest : 0, markuppretty : 151130, //markuppretty lib prettydiff : 151130, //this file safeSort : 151130, //safeSort lib version : "1.16.0", //version number webtool : 151130 //index.xhtml }; global.edition.latest = (function edition_latest() { "use strict"; return Math.max(global.edition.css, global.edition.csspretty, global.edition.csvpretty, global.edition.diffview, global.edition.documentation, global.edition.jspretty, global.edition.markuppretty, global.edition.prettydiff, global.edition.webtool, global.edition.api.dom, global.edition.api.nodeLocal, global.edition.api.wsh); }()); if (typeof exports === "object" || typeof exports === "function") { //commonjs and nodejs support exports.report = global.report; exports.edition = global.edition; exports.api = function commonjs(x) { "use strict"; return prettydiff(x); }; } else if ((typeof define === "object" || typeof define === "function") && (ace === undefined || ace.createEditSession === undefined)) { //requirejs support define(function requirejs(require, exports) { "use strict"; exports.report = global.report; exports.edition = global.edition; exports.api = function requirejs_export(x) { return prettydiff(x); }; //worthless if block to appease RequireJS and JSLint if (typeof require === "number") { return require; } return exports.api; }); }
hare1039/cdnjs
ajax/libs/prettydiff/1.16.0/prettydiff.js
JavaScript
mit
136,192
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){CKEDITOR.plugins.add("ajax",{requires:"xml"});CKEDITOR.ajax=function(){function g(){if(!CKEDITOR.env.ie||"file:"!=location.protocol)try{return new XMLHttpRequest}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(b){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}return null}function h(a){return 4==a.readyState&&(200<=a.status&&300>a.status||304==a.status||0===a.status||1223==a.status)}function k(a){return h(a)?a.responseText:null}function m(a){if(h(a)){var b= a.responseXML;return new CKEDITOR.xml(b&&b.firstChild?b:a.responseText)}return null}function l(a,b,e){var f=!!b,c=g();if(!c)return null;c.open("GET",a,f);f&&(c.onreadystatechange=function(){4==c.readyState&&(b(e(c)),c=null)});c.send(null);return f?"":e(c)}function n(a,b,e,f,c){var d=g();if(!d)return null;d.open("POST",a,!0);d.onreadystatechange=function(){4==d.readyState&&(f(c(d)),d=null)};d.setRequestHeader("Content-type",e||"application/x-www-form-urlencoded; charset\x3dUTF-8");d.send(b)}return{load:function(a, b){return l(a,b,k)},post:function(a,b,e,f){return n(a,b,e,f,k)},loadXml:function(a,b){return l(a,b,m)}}}()})();
wout/cdnjs
ajax/libs/ckeditor/4.5.11/plugins/ajax/plugin.js
JavaScript
mit
1,280
/* * # Semantic UI - 1.7.1 * https://github.com/Semantic-Org/Semantic-UI * http://www.semantic-ui.com/ * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Loader *******************************/ /* Standard Size */ .ui.loader { display: none; position: absolute; top: 50%; left: 50%; margin: 0px; text-align: center; z-index: 1000; -webkit-transform: translateX(-50%) translateY(-50%); -ms-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); } /* Static Shape */ .ui.loader:before { position: absolute; content: ''; top: 0%; left: 50%; width: 100%; height: 100%; border-radius: 500rem; border: 0.2em solid rgba(0, 0, 0, 0.1); } /* Active Shape */ .ui.loader:after { position: absolute; content: ''; top: 0%; left: 50%; width: 100%; height: 100%; -webkit-animation: loader 0.6s linear; animation: loader 0.6s linear; -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; border-radius: 500rem; border-color: #aaaaaa transparent transparent; border-style: solid; border-width: 0.2em; box-shadow: 0px 0px 0px 1px transparent; } /* Active Animation */ @-webkit-keyframes loader { from { -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loader { from { -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } /* Sizes */ .ui.loader:before, .ui.loader:after { width: 2.2585em; height: 2.2585em; margin: 0em 0em 0em -1.12925em; } .ui.mini.loader:before, .ui.mini.loader:after { width: 1.2857em; height: 1.2857em; margin: 0em 0em 0em -0.64285em; } .ui.small.loader:before, .ui.small.loader:after { width: 1.7142em; height: 1.7142em; margin: 0em 0em 0em -0.8571em; } .ui.large.loader:before, .ui.large.loader:after { width: 4.5714em; height: 4.5714em; margin: 0em 0em 0em -2.2857em; } /*------------------- Coupling --------------------*/ /* Show inside active dimmer */ .ui.dimmer .loader { display: block; } /* Black Dimmer */ .ui.dimmer .ui.loader { color: #ffffff; } .ui.dimmer .ui.loader:before { border-color: rgba(255, 255, 255, 0.15); } .ui.dimmer .ui.loader:after { border-color: #ffffff transparent transparent; } /* White Dimmer (Inverted) */ .ui.inverted.dimmer .ui.loader { color: rgba(0, 0, 0, 0.8); } .ui.inverted.dimmer .ui.loader:before { border-color: rgba(0, 0, 0, 0.1); } .ui.inverted.dimmer .ui.loader:after { border-color: #aaaaaa transparent transparent; } /******************************* Types *******************************/ /*------------------- Text --------------------*/ .ui.text.loader { width: auto !important; height: auto !important; text-align: center; font-style: normal; } /******************************* States *******************************/ .ui.indeterminate.loader:after { -webkit-animation-direction: reverse; animation-direction: reverse; -webkit-animation-duration: 1.2s; animation-duration: 1.2s; } .ui.loader.active, .ui.loader.visible { display: block; } .ui.loader.disabled, .ui.loader.hidden { display: none; } /******************************* Variations *******************************/ /*------------------- Sizes --------------------*/ /* Loader */ .ui.inverted.dimmer .ui.mini.loader, .ui.mini.loader { width: 1.2857em; height: 1.2857em; font-size: 0.7857em; } .ui.inverted.dimmer .ui.small.loader, .ui.small.loader { width: 1.7142em; height: 1.7142em; font-size: 0.9285em; } .ui.inverted.dimmer .ui.loader, .ui.loader { width: 2.2585em; height: 2.2585em; font-size: 1em; } .ui.inverted.dimmer .ui.loader.large, .ui.loader.large { width: 4.5714em; height: 4.5714em; font-size: 1.1428em; } /* Text Loader */ .ui.mini.text.loader { min-width: 1.2857em; padding-top: 1.9857em; } .ui.small.text.loader { min-width: 1.7142em; padding-top: 2.4142em; } .ui.text.loader { min-width: 2.2585em; padding-top: 2.9585em; } .ui.large.text.loader { min-width: 4.5714em; padding-top: 5.2714em; } /*------------------- Inverted --------------------*/ .ui.inverted.loader { color: #ffffff; } .ui.inverted.loader:before { border-color: rgba(255, 255, 255, 0.15); } .ui.inverted.loader:after { border-top-color: #ffffff; } /*------------------- Inline --------------------*/ .ui.inline.loader { position: relative; vertical-align: middle; margin: 0em; left: 0em; top: 0em; -webkit-transform: none; -ms-transform: none; transform: none; } .ui.inline.loader.active, .ui.inline.loader.visible { display: inline-block; } /******************************* Theme Overrides *******************************/ /******************************* Site Overrides *******************************/
gaearon/cdnjs
ajax/libs/semantic-ui/1.7.1/components/loader.css
CSS
mit
5,207
'use strict'; describe('$route', function() { var $httpBackend, element; beforeEach(module('ngRoute')); beforeEach(module(function() { return function(_$httpBackend_) { $httpBackend = _$httpBackend_; $httpBackend.when('GET', 'Chapter.html').respond('chapter'); $httpBackend.when('GET', 'test.html').respond('test'); $httpBackend.when('GET', 'foo.html').respond('foo'); $httpBackend.when('GET', 'baz.html').respond('baz'); $httpBackend.when('GET', 'bar.html').respond('bar'); $httpBackend.when('GET', 'http://example.com/trusted-template.html').respond('cross domain trusted template'); $httpBackend.when('GET', '404.html').respond('not found'); }; })); afterEach(function() { dealoc(element); }); it('should allow cancellation via $locationChangeStart via $routeChangeStart', function() { module(function($routeProvider) { $routeProvider.when('/Edit', { id: 'edit', template: 'Some edit functionality' }); $routeProvider.when('/Home', { id: 'home' }); }); module(provideLog); inject(function($route, $location, $rootScope, $compile, log) { $rootScope.$on('$routeChangeStart', function(event, next, current) { if (next.id === 'home' && current.scope.unsavedChanges) { event.preventDefault(); } }); element = $compile('<div><div ng-view></div></div>')($rootScope); $rootScope.$apply(function() { $location.path('/Edit'); }); $rootScope.$on('$routeChangeSuccess', log.fn('routeChangeSuccess')); $rootScope.$on('$locationChangeSuccess', log.fn('locationChangeSuccess')); // aborted route change $rootScope.$apply(function() { $route.current.scope.unsavedChanges = true; }); $rootScope.$apply(function() { $location.path('/Home'); }); expect($route.current.id).toBe('edit'); expect($location.path()).toBe('/Edit'); expect(log).toEqual([]); // successful route change $rootScope.$apply(function() { $route.current.scope.unsavedChanges = false; }); $rootScope.$apply(function() { $location.path('/Home'); }); expect($route.current.id).toBe('home'); expect($location.path()).toBe('/Home'); expect(log).toEqual(['locationChangeSuccess', 'routeChangeSuccess']); }); }); it('should allow redirects while handling $routeChangeStart', function() { module(function($routeProvider) { $routeProvider.when('/some', { id: 'some', template: 'Some functionality' }); $routeProvider.when('/redirect', { id: 'redirect' }); }); module(provideLog); inject(function($route, $location, $rootScope, $compile, log) { $rootScope.$on('$routeChangeStart', function(event, next, current) { if (next.id === 'some') { $location.path('/redirect'); } }); $compile('<div><div ng-view></div></div>')($rootScope); $rootScope.$on('$routeChangeStart', log.fn('routeChangeStart')); $rootScope.$on('$routeChangeError', log.fn('routeChangeError')); $rootScope.$on('$routeChangeSuccess', log.fn('routeChangeSuccess')); $rootScope.$apply(function() { $location.path('/some'); }); expect($route.current.id).toBe('redirect'); expect($location.path()).toBe('/redirect'); expect(log).toEqual(['routeChangeStart', 'routeChangeStart', 'routeChangeSuccess']); }); }); it('should route and fire change event', function() { var log = '', lastRoute, nextRoute; module(function($routeProvider) { $routeProvider.when('/Book/:book/Chapter/:chapter', {controller: angular.noop, templateUrl: 'Chapter.html'}); $routeProvider.when('/Blank', {}); }); inject(function($route, $location, $rootScope) { $rootScope.$on('$routeChangeStart', function(event, next, current) { log += 'before();'; expect(current).toBe($route.current); lastRoute = current; nextRoute = next; }); $rootScope.$on('$routeChangeSuccess', function(event, current, last) { log += 'after();'; expect(current).toBe($route.current); expect(lastRoute).toBe(last); expect(nextRoute).toBe(current); }); $location.path('/Book/Moby/Chapter/Intro').search('p=123'); $rootScope.$digest(); $httpBackend.flush(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({book:'Moby', chapter:'Intro', p:'123'}); log = ''; $location.path('/Blank').search('ignore'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({ignore:true}); log = ''; $location.path('/NONE'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current).toEqual(null); }); }); it('should route and fire change event when catch-all params are used', function() { var log = '', lastRoute, nextRoute; module(function($routeProvider) { $routeProvider.when('/Book1/:book/Chapter/:chapter/:highlight*/edit', {controller: angular.noop, templateUrl: 'Chapter.html'}); $routeProvider.when('/Book2/:book/:highlight*/Chapter/:chapter', {controller: angular.noop, templateUrl: 'Chapter.html'}); $routeProvider.when('/Blank', {}); }); inject(function($route, $location, $rootScope) { $rootScope.$on('$routeChangeStart', function(event, next, current) { log += 'before();'; expect(current).toBe($route.current); lastRoute = current; nextRoute = next; }); $rootScope.$on('$routeChangeSuccess', function(event, current, last) { log += 'after();'; expect(current).toBe($route.current); expect(lastRoute).toBe(last); expect(nextRoute).toBe(current); }); $location.path('/Book1/Moby/Chapter/Intro/one/edit').search('p=123'); $rootScope.$digest(); $httpBackend.flush(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({book:'Moby', chapter:'Intro', highlight:'one', p:'123'}); log = ''; $location.path('/Blank').search('ignore'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({ignore:true}); log = ''; $location.path('/Book1/Moby/Chapter/Intro/one/two/edit').search('p=123'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({book:'Moby', chapter:'Intro', highlight:'one/two', p:'123'}); log = ''; $location.path('/Book2/Moby/one/two/Chapter/Intro').search('p=123'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({book:'Moby', chapter:'Intro', highlight:'one/two', p:'123'}); log = ''; $location.path('/NONE'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current).toEqual(null); }); }); it('should route and fire change event correctly whenever the case insensitive flag is utilized', function() { var log = '', lastRoute, nextRoute; module(function($routeProvider) { $routeProvider.when('/Book1/:book/Chapter/:chapter/:highlight*/edit', {controller: angular.noop, templateUrl: 'Chapter.html', caseInsensitiveMatch: true}); $routeProvider.when('/Book2/:book/:highlight*/Chapter/:chapter', {controller: angular.noop, templateUrl: 'Chapter.html'}); $routeProvider.when('/Blank', {}); }); inject(function($route, $location, $rootScope) { $rootScope.$on('$routeChangeStart', function(event, next, current) { log += 'before();'; expect(current).toBe($route.current); lastRoute = current; nextRoute = next; }); $rootScope.$on('$routeChangeSuccess', function(event, current, last) { log += 'after();'; expect(current).toBe($route.current); expect(lastRoute).toBe(last); expect(nextRoute).toBe(current); }); $location.path('/Book1/Moby/Chapter/Intro/one/edit').search('p=123'); $rootScope.$digest(); $httpBackend.flush(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({book:'Moby', chapter:'Intro', highlight:'one', p:'123'}); log = ''; $location.path('/BOOK1/Moby/CHAPTER/Intro/one/EDIT').search('p=123'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({book:'Moby', chapter:'Intro', highlight:'one', p:'123'}); log = ''; $location.path('/Blank').search('ignore'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({ignore:true}); log = ''; $location.path('/BLANK'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current).toEqual(null); log = ''; $location.path('/Book2/Moby/one/two/Chapter/Intro').search('p=123'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current.params).toEqual({book:'Moby', chapter:'Intro', highlight:'one/two', p:'123'}); log = ''; $location.path('/BOOK2/Moby/one/two/CHAPTER/Intro').search('p=123'); $rootScope.$digest(); expect(log).toEqual('before();after();'); expect($route.current).toEqual(null); }); }); it('should allow configuring caseInsensitiveMatch on the route provider level', function() { module(function($routeProvider) { $routeProvider.caseInsensitiveMatch = true; $routeProvider.when('/Blank', {template: 'blank'}); $routeProvider.otherwise({template: 'other'}); }); inject(function($route, $location, $rootScope) { $location.path('/bLaNk'); $rootScope.$digest(); expect($route.current.template).toBe('blank'); }); }); it('should allow overriding provider\'s caseInsensitiveMatch setting on the route level', function() { module(function($routeProvider) { $routeProvider.caseInsensitiveMatch = true; $routeProvider.when('/Blank', {template: 'blank', caseInsensitiveMatch: false}); $routeProvider.otherwise({template: 'other'}); }); inject(function($route, $location, $rootScope) { $location.path('/bLaNk'); $rootScope.$digest(); expect($route.current.template).toBe('other'); }); }); it('should not change route when location is canceled', function() { module(function($routeProvider) { $routeProvider.when('/somePath', {template: 'some path'}); }); inject(function($route, $location, $rootScope, $log) { $rootScope.$on('$locationChangeStart', function(event) { $log.info('$locationChangeStart'); event.preventDefault(); }); $rootScope.$on('$beforeRouteChange', function(event) { throw new Error('Should not get here'); }); $location.path('/somePath'); $rootScope.$digest(); expect($log.info.logs.shift()).toEqual(['$locationChangeStart']); }); }); describe('should match a route that contains special chars in the path', function() { beforeEach(module(function($routeProvider) { $routeProvider.when('/$test.23/foo*(bar)/:baz', {templateUrl: 'test.html'}); })); it('matches the full path', inject(function($route, $location, $rootScope) { $location.path('/test'); $rootScope.$digest(); expect($route.current).toBeUndefined(); })); it('matches literal .', inject(function($route, $location, $rootScope) { $location.path('/$testX23/foo*(bar)/222'); $rootScope.$digest(); expect($route.current).toBeUndefined(); })); it('matches literal *', inject(function($route, $location, $rootScope) { $location.path('/$test.23/foooo(bar)/222'); $rootScope.$digest(); expect($route.current).toBeUndefined(); })); it('treats backslashes normally', inject(function($route, $location, $rootScope) { $location.path('/$test.23/foo*\\(bar)/222'); $rootScope.$digest(); expect($route.current).toBeUndefined(); })); it('matches a URL with special chars', inject(function($route, $location, $rootScope) { $location.path('/$test.23/foo*(bar)/~!@#$%^&*()_+=-`'); $rootScope.$digest(); expect($route.current).toBeDefined(); })); it("should use route params inherited from prototype chain", function() { function BaseRoute() {} BaseRoute.prototype.templateUrl = 'foo.html'; module(function($routeProvider) { $routeProvider.when('/foo', new BaseRoute()); }); inject(function($route, $location, $rootScope) { $location.path('/foo'); $rootScope.$digest(); expect($route.current.templateUrl).toBe('foo.html'); }); }); }); describe('should match a route that contains optional params in the path', function() { beforeEach(module(function($routeProvider) { $routeProvider.when('/test/:opt?/:baz/edit', {templateUrl: 'test.html'}); })); it('matches a URL with optional params', inject(function($route, $location, $rootScope) { $location.path('/test/optValue/bazValue/edit'); $rootScope.$digest(); expect($route.current).toBeDefined(); })); it('matches a URL without optional param', inject(function($route, $location, $rootScope) { $location.path('/test//bazValue/edit'); $rootScope.$digest(); expect($route.current).toBeDefined(); })); it('not match a URL with a required param', inject(function($route, $location, $rootScope) { $location.path('///edit'); $rootScope.$digest(); expect($route.current).not.toBeDefined(); })); }); it('should change route even when only search param changes', function() { module(function($routeProvider) { $routeProvider.when('/test', {templateUrl: 'test.html'}); }); inject(function($route, $location, $rootScope) { var callback = jasmine.createSpy('onRouteChange'); $rootScope.$on('$routeChangeStart', callback); $location.path('/test'); $rootScope.$digest(); callback.reset(); $location.search({any: true}); $rootScope.$digest(); expect(callback).toHaveBeenCalled(); }); }); it('should allow routes to be defined with just templates without controllers', function() { module(function($routeProvider) { $routeProvider.when('/foo', {templateUrl: 'foo.html'}); }); inject(function($route, $location, $rootScope) { var onChangeSpy = jasmine.createSpy('onChange'); $rootScope.$on('$routeChangeStart', onChangeSpy); expect($route.current).toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); $location.path('/foo'); $rootScope.$digest(); expect($route.current.templateUrl).toEqual('foo.html'); expect($route.current.controller).toBeUndefined(); expect(onChangeSpy).toHaveBeenCalled(); }); }); it('should chain whens and otherwise', function() { module(function($routeProvider) { $routeProvider.when('/foo', {templateUrl: 'foo.html'}). otherwise({templateUrl: 'bar.html'}). when('/baz', {templateUrl: 'baz.html'}); }); inject(function($route, $location, $rootScope) { $rootScope.$digest(); expect($route.current.templateUrl).toBe('bar.html'); $location.url('/baz'); $rootScope.$digest(); expect($route.current.templateUrl).toBe('baz.html'); }); }); it('should skip routes with incomplete params', function() { module(function($routeProvider) { $routeProvider .otherwise({template: 'other'}) .when('/pages/:page/:comment*', {template: 'comment'}) .when('/pages/:page', {template: 'page'}) .when('/pages', {template: 'index'}) .when('/foo/', {template: 'foo'}) .when('/foo/:bar', {template: 'bar'}) .when('/foo/:bar*/:baz', {template: 'baz'}); }); inject(function($route, $location, $rootScope) { $location.url('/pages/'); $rootScope.$digest(); expect($route.current.template).toBe('index'); $location.url('/pages/page/'); $rootScope.$digest(); expect($route.current.template).toBe('page'); $location.url('/pages/page/1/'); $rootScope.$digest(); expect($route.current.template).toBe('comment'); $location.url('/foo/'); $rootScope.$digest(); expect($route.current.template).toBe('foo'); $location.url('/foo/bar/'); $rootScope.$digest(); expect($route.current.template).toBe('bar'); $location.url('/foo/bar/baz/'); $rootScope.$digest(); expect($route.current.template).toBe('baz'); $location.url('/something/'); $rootScope.$digest(); expect($route.current.template).toBe('other'); }); }); describe('otherwise', function() { it('should handle unknown routes with "otherwise" route definition', function() { function NotFoundCtrl() {} module(function($routeProvider) { $routeProvider.when('/foo', {templateUrl: 'foo.html'}); $routeProvider.otherwise({templateUrl: '404.html', controller: NotFoundCtrl}); }); inject(function($route, $location, $rootScope) { var onChangeSpy = jasmine.createSpy('onChange'); $rootScope.$on('$routeChangeStart', onChangeSpy); expect($route.current).toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); $location.path('/unknownRoute'); $rootScope.$digest(); expect($route.current.templateUrl).toBe('404.html'); expect($route.current.controller).toBe(NotFoundCtrl); expect(onChangeSpy).toHaveBeenCalled(); onChangeSpy.reset(); $location.path('/foo'); $rootScope.$digest(); expect($route.current.templateUrl).toEqual('foo.html'); expect($route.current.controller).toBeUndefined(); expect(onChangeSpy).toHaveBeenCalled(); }); }); it('should update $route.current and $route.next when default route is matched', function() { module(function($routeProvider) { $routeProvider.when('/foo', {templateUrl: 'foo.html'}); $routeProvider.otherwise({templateUrl: '404.html'}); }); inject(function($route, $location, $rootScope) { var currentRoute, nextRoute, onChangeSpy = jasmine.createSpy('onChange').andCallFake(function(e, next) { currentRoute = $route.current; nextRoute = next; }); // init $rootScope.$on('$routeChangeStart', onChangeSpy); expect($route.current).toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); // match otherwise route $location.path('/unknownRoute'); $rootScope.$digest(); expect(currentRoute).toBeUndefined(); expect(nextRoute.templateUrl).toBe('404.html'); expect($route.current.templateUrl).toBe('404.html'); expect(onChangeSpy).toHaveBeenCalled(); onChangeSpy.reset(); // match regular route $location.path('/foo'); $rootScope.$digest(); expect(currentRoute.templateUrl).toBe('404.html'); expect(nextRoute.templateUrl).toBe('foo.html'); expect($route.current.templateUrl).toEqual('foo.html'); expect(onChangeSpy).toHaveBeenCalled(); onChangeSpy.reset(); // match otherwise route again $location.path('/anotherUnknownRoute'); $rootScope.$digest(); expect(currentRoute.templateUrl).toBe('foo.html'); expect(nextRoute.templateUrl).toBe('404.html'); expect($route.current.templateUrl).toEqual('404.html'); expect(onChangeSpy).toHaveBeenCalled(); }); }); it('should interpret a string as a redirect route', function() { module(function($routeProvider) { $routeProvider.when('/foo', {templateUrl: 'foo.html'}); $routeProvider.when('/baz', {templateUrl: 'baz.html'}); $routeProvider.otherwise('/foo'); }); inject(function($route, $location, $rootScope) { $location.path('/unknownRoute'); $rootScope.$digest(); expect($location.path()).toBe('/foo'); expect($route.current.templateUrl).toBe('foo.html'); }); }); }); describe('events', function() { it('should not fire $routeChangeStart/Success during bootstrap (if no route)', function() { var routeChangeSpy = jasmine.createSpy('route change'); module(function($routeProvider) { $routeProvider.when('/one', {}); // no otherwise defined }); inject(function($rootScope, $route, $location) { $rootScope.$on('$routeChangeStart', routeChangeSpy); $rootScope.$on('$routeChangeSuccess', routeChangeSpy); $rootScope.$digest(); expect(routeChangeSpy).not.toHaveBeenCalled(); $location.path('/no-route-here'); $rootScope.$digest(); expect(routeChangeSpy).not.toHaveBeenCalled(); $location.path('/one'); $rootScope.$digest(); expect(routeChangeSpy).toHaveBeenCalled(); }); }); it('should fire $routeChangeStart and resolve promises', function() { var deferA, deferB; module(function($provide, $routeProvider) { $provide.factory('b', function($q) { deferB = $q.defer(); return deferB.promise; }); $routeProvider.when('/path', { templateUrl: 'foo.html', resolve: { a: ['$q', function($q) { deferA = $q.defer(); return deferA.promise; }], b: 'b' } }); }); inject(function($location, $route, $rootScope, $httpBackend) { var log = ''; $httpBackend.expectGET('foo.html').respond('FOO'); $location.path('/path'); $rootScope.$digest(); expect(log).toEqual(''); $httpBackend.flush(); expect(log).toEqual(''); deferA.resolve(); $rootScope.$digest(); expect(log).toEqual(''); deferB.resolve(); $rootScope.$digest(); expect($route.current.locals.$template).toEqual('FOO'); }); }); it('should fire $routeChangeError event on resolution error', function() { var deferA; module(function($provide, $routeProvider) { $routeProvider.when('/path', { template: 'foo', resolve: { a: function($q) { deferA = $q.defer(); return deferA.promise; } } }); }); inject(function($location, $route, $rootScope) { var log = ''; $rootScope.$on('$routeChangeStart', function() { log += 'before();'; }); $rootScope.$on('$routeChangeError', function(e, n, l, reason) { log += 'failed(' + reason + ');'; }); $location.path('/path'); $rootScope.$digest(); expect(log).toEqual('before();'); deferA.reject('MyError'); $rootScope.$digest(); expect(log).toEqual('before();failed(MyError);'); }); }); it('should fetch templates', function() { module(function($routeProvider) { $routeProvider. when('/r1', { templateUrl: 'r1.html' }). when('/r2', { templateUrl: 'r2.html' }); }); inject(function($route, $httpBackend, $location, $rootScope) { var log = ''; $rootScope.$on('$routeChangeStart', function(e, next) { log += '$before(' + next.templateUrl + ');'; }); $rootScope.$on('$routeChangeSuccess', function(e, next) { log += '$after(' + next.templateUrl + ');'; }); $httpBackend.expectGET('r1.html').respond('R1'); $httpBackend.expectGET('r2.html').respond('R2'); $location.path('/r1'); $rootScope.$digest(); expect(log).toBe('$before(r1.html);'); $location.path('/r2'); $rootScope.$digest(); expect(log).toBe('$before(r1.html);$before(r2.html);'); $httpBackend.flush(); expect(log).toBe('$before(r1.html);$before(r2.html);$after(r2.html);'); expect(log).not.toContain('$after(r1.html);'); }); }); it('should NOT load cross domain templates by default', function() { module(function($routeProvider) { $routeProvider.when('/foo', { templateUrl: 'http://example.com/foo.html' }); }); inject(function($route, $location, $rootScope) { $location.path('/foo'); expect(function() { $rootScope.$digest(); }).toThrowMinErr('$sce', 'insecurl', 'Blocked loading resource from url not allowed by ' + '$sceDelegate policy. URL: http://example.com/foo.html'); }); }); it('should load cross domain templates that are trusted', function() { module(function($routeProvider, $sceDelegateProvider) { $routeProvider.when('/foo', { templateUrl: 'http://example.com/foo.html' }); $sceDelegateProvider.resourceUrlWhitelist([/^http:\/\/example\.com\/foo\.html$/]); }); inject(function($route, $location, $rootScope) { $httpBackend.whenGET('http://example.com/foo.html').respond('FOO BODY'); $location.path('/foo'); $rootScope.$digest(); $httpBackend.flush(); expect($route.current.locals.$template).toEqual('FOO BODY'); }); }); it('should not update $routeParams until $routeChangeSuccess', function() { module(function($routeProvider) { $routeProvider. when('/r1/:id', { templateUrl: 'r1.html' }). when('/r2/:id', { templateUrl: 'r2.html' }); }); inject(function($route, $httpBackend, $location, $rootScope, $routeParams) { var log = ''; $rootScope.$on('$routeChangeStart', function(e, next) { log += '$before' + angular.toJson($routeParams) + ';'; }); $rootScope.$on('$routeChangeSuccess', function(e, next) { log += '$after' + angular.toJson($routeParams) + ';'; }); $httpBackend.whenGET('r1.html').respond('R1'); $httpBackend.whenGET('r2.html').respond('R2'); $location.path('/r1/1'); $rootScope.$digest(); expect(log).toBe('$before{};'); $httpBackend.flush(); expect(log).toBe('$before{};$after{"id":"1"};'); log = ''; $location.path('/r2/2'); $rootScope.$digest(); expect(log).toBe('$before{"id":"1"};'); $httpBackend.flush(); expect(log).toBe('$before{"id":"1"};$after{"id":"2"};'); }); }); it('should drop in progress route change when new route change occurs', function() { module(function($routeProvider) { $routeProvider. when('/r1', { templateUrl: 'r1.html' }). when('/r2', { templateUrl: 'r2.html' }); }); inject(function($route, $httpBackend, $location, $rootScope) { var log = ''; $rootScope.$on('$routeChangeStart', function(e, next) { log += '$before(' + next.templateUrl + ');'; }); $rootScope.$on('$routeChangeSuccess', function(e, next) { log += '$after(' + next.templateUrl + ');'; }); $httpBackend.expectGET('r1.html').respond('R1'); $httpBackend.expectGET('r2.html').respond('R2'); $location.path('/r1'); $rootScope.$digest(); expect(log).toBe('$before(r1.html);'); $location.path('/r2'); $rootScope.$digest(); expect(log).toBe('$before(r1.html);$before(r2.html);'); $httpBackend.flush(); expect(log).toBe('$before(r1.html);$before(r2.html);$after(r2.html);'); expect(log).not.toContain('$after(r1.html);'); }); }); it('should throw an error when a template is not found', function() { module(function($routeProvider, $exceptionHandlerProvider) { $exceptionHandlerProvider.mode('log'); $routeProvider. when('/r1', { templateUrl: 'r1.html' }). when('/r2', { templateUrl: 'r2.html' }). when('/r3', { templateUrl: 'r3.html' }); }); inject(function($route, $httpBackend, $location, $rootScope, $exceptionHandler) { $httpBackend.expectGET('r1.html').respond(404, 'R1'); $location.path('/r1'); $rootScope.$digest(); $httpBackend.flush(); expect($exceptionHandler.errors.pop().message).toContain("[$compile:tpload] Failed to load template: r1.html"); $httpBackend.expectGET('r2.html').respond(''); $location.path('/r2'); $rootScope.$digest(); $httpBackend.flush(); expect($exceptionHandler.errors.length).toBe(0); $httpBackend.expectGET('r3.html').respond('abc'); $location.path('/r3'); $rootScope.$digest(); $httpBackend.flush(); expect($exceptionHandler.errors.length).toBe(0); }); }); it('should catch local factory errors', function() { var myError = new Error('MyError'); module(function($routeProvider, $exceptionHandlerProvider) { $exceptionHandlerProvider.mode('log'); $routeProvider.when('/locals', { resolve: { a: function($q) { throw myError; } } }); }); inject(function($location, $route, $rootScope, $exceptionHandler) { $location.path('/locals'); $rootScope.$digest(); expect($exceptionHandler.errors).toEqual([myError]); }); }); }); it('should match route with and without trailing slash', function() { module(function($routeProvider) { $routeProvider.when('/foo', {templateUrl: 'foo.html'}); $routeProvider.when('/bar/', {templateUrl: 'bar.html'}); }); inject(function($route, $location, $rootScope) { $location.path('/foo'); $rootScope.$digest(); expect($location.path()).toBe('/foo'); expect($route.current.templateUrl).toBe('foo.html'); $location.path('/foo/'); $rootScope.$digest(); expect($location.path()).toBe('/foo'); expect($route.current.templateUrl).toBe('foo.html'); $location.path('/bar'); $rootScope.$digest(); expect($location.path()).toBe('/bar/'); expect($route.current.templateUrl).toBe('bar.html'); $location.path('/bar/'); $rootScope.$digest(); expect($location.path()).toBe('/bar/'); expect($route.current.templateUrl).toBe('bar.html'); }); }); describe('redirection', function() { it('should support redirection via redirectTo property by updating $location', function() { module(function($routeProvider) { $routeProvider.when('/', {redirectTo: '/foo'}); $routeProvider.when('/foo', {templateUrl: 'foo.html'}); $routeProvider.when('/bar', {templateUrl: 'bar.html'}); $routeProvider.when('/baz', {redirectTo: '/bar'}); $routeProvider.otherwise({templateUrl: '404.html'}); }); inject(function($route, $location, $rootScope) { var onChangeSpy = jasmine.createSpy('onChange'); $rootScope.$on('$routeChangeStart', onChangeSpy); expect($route.current).toBeUndefined(); expect(onChangeSpy).not.toHaveBeenCalled(); $location.path('/'); $rootScope.$digest(); expect($location.path()).toBe('/foo'); expect($route.current.templateUrl).toBe('foo.html'); expect(onChangeSpy.callCount).toBe(2); onChangeSpy.reset(); $location.path('/baz'); $rootScope.$digest(); expect($location.path()).toBe('/bar'); expect($route.current.templateUrl).toBe('bar.html'); expect(onChangeSpy.callCount).toBe(2); }); }); it('should interpolate route vars in the redirected path from original path', function() { module(function($routeProvider) { $routeProvider.when('/foo/:id/foo/:subid/:extraId', {redirectTo: '/bar/:id/:subid/23'}); $routeProvider.when('/bar/:id/:subid/:subsubid', {templateUrl: 'bar.html'}); $routeProvider.when('/baz/:id/:path*', {redirectTo: '/path/:path/:id'}); $routeProvider.when('/path/:path*/:id', {templateUrl: 'foo.html'}); }); inject(function($route, $location, $rootScope) { $location.path('/foo/id1/foo/subid3/gah'); $rootScope.$digest(); expect($location.path()).toEqual('/bar/id1/subid3/23'); expect($location.search()).toEqual({extraId: 'gah'}); expect($route.current.templateUrl).toEqual('bar.html'); $location.path('/baz/1/foovalue/barvalue'); $rootScope.$digest(); expect($location.path()).toEqual('/path/foovalue/barvalue/1'); expect($route.current.templateUrl).toEqual('foo.html'); }); }); it('should interpolate route vars in the redirected path from original search', function() { module(function($routeProvider) { $routeProvider.when('/bar/:id/:subid/:subsubid', {templateUrl: 'bar.html'}); $routeProvider.when('/foo/:id/:extra', {redirectTo: '/bar/:id/:subid/99'}); }); inject(function($route, $location, $rootScope) { $location.path('/foo/id3/eId').search('subid=sid1&appended=true'); $rootScope.$digest(); expect($location.path()).toEqual('/bar/id3/sid1/99'); expect($location.search()).toEqual({appended: 'true', extra: 'eId'}); expect($route.current.templateUrl).toEqual('bar.html'); }); }); it('should properly interpolate optional and eager route vars ' + 'when redirecting from path with trailing slash', function() { module(function($routeProvider) { $routeProvider.when('/foo/:id?/:subid?', {templateUrl: 'foo.html'}); $routeProvider.when('/bar/:id*/:subid', {templateUrl: 'bar.html'}); }); inject(function($location, $rootScope, $route) { $location.path('/foo/id1/subid2/'); $rootScope.$digest(); expect($location.path()).toEqual('/foo/id1/subid2'); expect($route.current.templateUrl).toEqual('foo.html'); $location.path('/bar/id1/extra/subid2/'); $rootScope.$digest(); expect($location.path()).toEqual('/bar/id1/extra/subid2'); expect($route.current.templateUrl).toEqual('bar.html'); }); }); it('should allow custom redirectTo function to be used', function() { function customRedirectFn(routePathParams, path, search) { expect(routePathParams).toEqual({id: 'id3'}); expect(path).toEqual('/foo/id3'); expect(search).toEqual({ subid: 'sid1', appended: 'true' }); return '/custom'; } module(function($routeProvider) { $routeProvider.when('/bar/:id/:subid/:subsubid', {templateUrl: 'bar.html'}); $routeProvider.when('/foo/:id', {redirectTo: customRedirectFn}); }); inject(function($route, $location, $rootScope) { $location.path('/foo/id3').search('subid=sid1&appended=true'); $rootScope.$digest(); expect($location.path()).toEqual('/custom'); }); }); it('should replace the url when redirecting', function() { module(function($routeProvider) { $routeProvider.when('/bar/:id', {templateUrl: 'bar.html'}); $routeProvider.when('/foo/:id/:extra', {redirectTo: '/bar/:id'}); }); inject(function($browser, $route, $location, $rootScope) { var $browserUrl = spyOnlyCallsWithArgs($browser, 'url').andCallThrough(); $location.path('/foo/id3/eId'); $rootScope.$digest(); expect($location.path()).toEqual('/bar/id3'); expect($browserUrl.mostRecentCall.args) .toEqual(['http://server/#/bar/id3?extra=eId', true, null]); }); }); }); describe('reloadOnSearch', function() { it('should reload a route when reloadOnSearch is enabled and .search() changes', function() { var reloaded = jasmine.createSpy('route reload'); module(function($routeProvider) { $routeProvider.when('/foo', {controller: angular.noop}); }); inject(function($route, $location, $rootScope, $routeParams) { $rootScope.$on('$routeChangeStart', reloaded); $location.path('/foo'); $rootScope.$digest(); expect(reloaded).toHaveBeenCalled(); expect($routeParams).toEqual({}); reloaded.reset(); // trigger reload $location.search({foo: 'bar'}); $rootScope.$digest(); expect(reloaded).toHaveBeenCalled(); expect($routeParams).toEqual({foo:'bar'}); }); }); it('should not reload a route when reloadOnSearch is disabled and only .search() changes', function() { var routeChange = jasmine.createSpy('route change'), routeUpdate = jasmine.createSpy('route update'); module(function($routeProvider) { $routeProvider.when('/foo', {controller: angular.noop, reloadOnSearch: false}); }); inject(function($route, $location, $rootScope) { $rootScope.$on('$routeChangeStart', routeChange); $rootScope.$on('$routeChangeSuccess', routeChange); $rootScope.$on('$routeUpdate', routeUpdate); expect(routeChange).not.toHaveBeenCalled(); $location.path('/foo'); $rootScope.$digest(); expect(routeChange).toHaveBeenCalled(); expect(routeChange.callCount).toBe(2); expect(routeUpdate).not.toHaveBeenCalled(); routeChange.reset(); // don't trigger reload $location.search({foo: 'bar'}); $rootScope.$digest(); expect(routeChange).not.toHaveBeenCalled(); expect(routeUpdate).toHaveBeenCalled(); }); }); it('should reload reloadOnSearch route when url differs only in route path param', function() { var routeChange = jasmine.createSpy('route change'); module(function($routeProvider) { $routeProvider.when('/foo/:fooId', {controller: angular.noop, reloadOnSearch: false}); }); inject(function($route, $location, $rootScope) { $rootScope.$on('$routeChangeStart', routeChange); $rootScope.$on('$routeChangeSuccess', routeChange); expect(routeChange).not.toHaveBeenCalled(); $location.path('/foo/aaa'); $rootScope.$digest(); expect(routeChange).toHaveBeenCalled(); expect(routeChange.callCount).toBe(2); routeChange.reset(); $location.path('/foo/bbb'); $rootScope.$digest(); expect(routeChange).toHaveBeenCalled(); expect(routeChange.callCount).toBe(2); routeChange.reset(); $location.search({foo: 'bar'}); $rootScope.$digest(); expect(routeChange).not.toHaveBeenCalled(); }); }); it('should update params when reloadOnSearch is disabled and .search() changes', function() { var routeParamsWatcher = jasmine.createSpy('routeParamsWatcher'); module(function($routeProvider) { $routeProvider.when('/foo', {controller: angular.noop}); $routeProvider.when('/bar/:barId', {controller: angular.noop, reloadOnSearch: false}); }); inject(function($route, $location, $rootScope, $routeParams) { $rootScope.$watch(function() { return $routeParams; }, function(value) { routeParamsWatcher(value); }, true); expect(routeParamsWatcher).not.toHaveBeenCalled(); $location.path('/foo'); $rootScope.$digest(); expect(routeParamsWatcher).toHaveBeenCalledWith({}); routeParamsWatcher.reset(); // trigger reload $location.search({foo: 'bar'}); $rootScope.$digest(); expect(routeParamsWatcher).toHaveBeenCalledWith({foo: 'bar'}); routeParamsWatcher.reset(); $location.path('/bar/123').search({}); $rootScope.$digest(); expect(routeParamsWatcher).toHaveBeenCalledWith({barId: '123'}); routeParamsWatcher.reset(); // don't trigger reload $location.search({foo: 'bar'}); $rootScope.$digest(); expect(routeParamsWatcher).toHaveBeenCalledWith({barId: '123', foo: 'bar'}); }); }); it('should allow using a function as a template', function() { var customTemplateWatcher = jasmine.createSpy('customTemplateWatcher'); function customTemplateFn(routePathParams) { customTemplateWatcher(routePathParams); expect(routePathParams).toEqual({id: 'id3'}); return '<h1>' + routePathParams.id + '</h1>'; } module(function($routeProvider) { $routeProvider.when('/bar/:id/:subid/:subsubid', {templateUrl: 'bar.html'}); $routeProvider.when('/foo/:id', {template: customTemplateFn}); }); inject(function($route, $location, $rootScope) { $location.path('/foo/id3'); $rootScope.$digest(); expect(customTemplateWatcher).toHaveBeenCalledWith({id: 'id3'}); }); }); it('should allow using a function as a templateUrl', function() { var customTemplateUrlWatcher = jasmine.createSpy('customTemplateUrlWatcher'); function customTemplateUrlFn(routePathParams) { customTemplateUrlWatcher(routePathParams); expect(routePathParams).toEqual({id: 'id3'}); return 'foo.html'; } module(function($routeProvider) { $routeProvider.when('/bar/:id/:subid/:subsubid', {templateUrl: 'bar.html'}); $routeProvider.when('/foo/:id', {templateUrl: customTemplateUrlFn}); }); inject(function($route, $location, $rootScope) { $location.path('/foo/id3'); $rootScope.$digest(); expect(customTemplateUrlWatcher).toHaveBeenCalledWith({id: 'id3'}); expect($route.current.loadedTemplateUrl).toEqual('foo.html'); }); }); describe('reload', function() { it('should reload even if reloadOnSearch is false', function() { var routeChangeSpy = jasmine.createSpy('route change'); module(function($routeProvider) { $routeProvider.when('/bar/:barId', {controller: angular.noop, reloadOnSearch: false}); }); inject(function($route, $location, $rootScope, $routeParams) { $rootScope.$on('$routeChangeSuccess', routeChangeSpy); $location.path('/bar/123'); $rootScope.$digest(); expect($routeParams).toEqual({barId:'123'}); expect(routeChangeSpy).toHaveBeenCalledOnce(); routeChangeSpy.reset(); $location.path('/bar/123').search('a=b'); $rootScope.$digest(); expect($routeParams).toEqual({barId:'123', a:'b'}); expect(routeChangeSpy).not.toHaveBeenCalled(); $route.reload(); $rootScope.$digest(); expect($routeParams).toEqual({barId:'123', a:'b'}); expect(routeChangeSpy).toHaveBeenCalledOnce(); }); }); }); }); describe('update', function() { it('should support single-parameter route updating', function() { var routeChangeSpy = jasmine.createSpy('route change'); module(function($routeProvider) { $routeProvider.when('/bar/:barId', {controller: angular.noop}); }); inject(function($route, $routeParams, $location, $rootScope) { $rootScope.$on('$routeChangeSuccess', routeChangeSpy); $location.path('/bar/1'); $rootScope.$digest(); routeChangeSpy.reset(); $route.updateParams({barId: '2'}); $rootScope.$digest(); expect($routeParams).toEqual({barId: '2'}); expect(routeChangeSpy).toHaveBeenCalledOnce(); expect($location.path()).toEqual('/bar/2'); }); }); it('should support total multi-parameter route updating', function() { var routeChangeSpy = jasmine.createSpy('route change'); module(function($routeProvider) { $routeProvider.when('/bar/:barId/:fooId/:spamId/:eggId', {controller: angular.noop}); }); inject(function($route, $routeParams, $location, $rootScope) { $rootScope.$on('$routeChangeSuccess', routeChangeSpy); $location.path('/bar/1/2/3/4'); $rootScope.$digest(); routeChangeSpy.reset(); $route.updateParams({barId: '5', fooId: '6', spamId: '7', eggId: '8'}); $rootScope.$digest(); expect($routeParams).toEqual({barId: '5', fooId: '6', spamId: '7', eggId: '8'}); expect(routeChangeSpy).toHaveBeenCalledOnce(); expect($location.path()).toEqual('/bar/5/6/7/8'); }); }); it('should support partial multi-parameter route updating', function() { var routeChangeSpy = jasmine.createSpy('route change'); module(function($routeProvider) { $routeProvider.when('/bar/:barId/:fooId/:spamId/:eggId', {controller: angular.noop}); }); inject(function($route, $routeParams, $location, $rootScope) { $rootScope.$on('$routeChangeSuccess', routeChangeSpy); $location.path('/bar/1/2/3/4'); $rootScope.$digest(); routeChangeSpy.reset(); $route.updateParams({barId: '5', fooId: '6'}); $rootScope.$digest(); expect($routeParams).toEqual({barId: '5', fooId: '6', spamId: '3', eggId: '4'}); expect(routeChangeSpy).toHaveBeenCalledOnce(); expect($location.path()).toEqual('/bar/5/6/3/4'); }); }); it('should update query params when new properties are not in path', function() { var routeChangeSpy = jasmine.createSpy('route change'); module(function($routeProvider) { $routeProvider.when('/bar/:barId/:fooId/:spamId/', {controller: angular.noop}); }); inject(function($route, $routeParams, $location, $rootScope) { $rootScope.$on('$routeChangeSuccess', routeChangeSpy); $location.path('/bar/1/2/3'); $location.search({initial: 'true'}); $rootScope.$digest(); routeChangeSpy.reset(); $route.updateParams({barId: '5', fooId: '6', eggId: '4'}); $rootScope.$digest(); expect($routeParams).toEqual({barId: '5', fooId: '6', spamId: '3', eggId: '4', initial: 'true'}); expect(routeChangeSpy).toHaveBeenCalledOnce(); expect($location.path()).toEqual('/bar/5/6/3/'); expect($location.search()).toEqual({eggId: '4', initial: 'true'}); }); }); it('should not update query params when an optional property was previously not in path', function() { var routeChangeSpy = jasmine.createSpy('route change'); module(function($routeProvider) { $routeProvider.when('/bar/:barId/:fooId/:spamId/:eggId?', {controller: angular.noop}); }); inject(function($route, $routeParams, $location, $rootScope) { $rootScope.$on('$routeChangeSuccess', routeChangeSpy); $location.path('/bar/1/2/3'); $location.search({initial: 'true'}); $rootScope.$digest(); routeChangeSpy.reset(); $route.updateParams({barId: '5', fooId: '6', eggId: '4'}); $rootScope.$digest(); expect($routeParams).toEqual({barId: '5', fooId: '6', spamId: '3', eggId: '4', initial: 'true'}); expect(routeChangeSpy).toHaveBeenCalledOnce(); expect($location.path()).toEqual('/bar/5/6/3/4'); expect($location.search()).toEqual({initial: 'true'}); }); }); it('should complain if called without an existing route', inject(function($route) { expect($route.updateParams).toThrowMinErr('ngRoute', 'norout'); })); }); });
mwidmann/angular.js
test/ngRoute/routeSpec.js
JavaScript
mit
47,820
.picker__list{list-style:none;padding:.75em 0 4.2em;margin:0}.picker__list-item{border-bottom:1px solid #ddd;border-top:1px solid #ddd;margin-bottom:-1px;position:relative;background:#fff;padding:.75em 1.25em}@media (min-height:46.75em){.picker__list-item{padding:.5em 1em}}.picker__list-item:hover{cursor:pointer;color:#000;background:#b1dcfb;border-color:#0089ec;z-index:10}.picker__list-item--highlighted{border-color:#0089ec;z-index:10}.picker--focused .picker__list-item--highlighted,.picker__list-item--highlighted:hover{cursor:pointer;color:#000;background:#b1dcfb}.picker--focused .picker__list-item--selected,.picker__list-item--selected,.picker__list-item--selected:hover{background:#0089ec;color:#fff;z-index:10}.picker--focused .picker__list-item--disabled,.picker__list-item--disabled,.picker__list-item--disabled:hover{background:#f5f5f5;color:#ddd;cursor:default;border-color:#ddd;z-index:auto}.picker--time .picker__button--clear{display:block;width:80%;margin:1em auto 0;padding:1em 1.25em;background:0 0;border:0;font-weight:500;font-size:.67em;text-align:center;text-transform:uppercase;color:#666}.picker--time .picker__button--clear:focus,.picker--time .picker__button--clear:hover{background:#b1dcfb;background:#e20;border-color:#e20;cursor:pointer;color:#fff;outline:0}.picker--time .picker__button--clear:before{top:-.25em;color:#666;font-size:1.25em;font-weight:700}.picker--time .picker__button--clear:focus:before,.picker--time .picker__button--clear:hover:before{color:#fff}.picker--time .picker__frame{min-width:256px;max-width:320px}.picker--time .picker__box{font-size:1em;background:#f2f2f2;padding:0}@media (min-height:40.125em){.picker--time .picker__box{margin-bottom:5em}}
MMore/cdnjs
ajax/libs/pickadate.js/3.5.3/compressed/themes/default.time.css
CSS
mit
1,708
angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ "Sonto", "Msombuluko", "Lwesibili", "Lwesithathu", "uLwesine", "Lwesihlanu", "Mgqibelo" ], "MONTH": [ "Januwari", "Februwari", "Mashi", "Apreli", "Meyi", "Juni", "Julayi", "Agasti", "Septhemba", "Okthoba", "Novemba", "Disemba" ], "SHORTDAY": [ "Son", "Mso", "Bil", "Tha", "Sin", "Hla", "Mgq" ], "SHORTMONTH": [ "Jan", "Feb", "Mas", "Apr", "Mey", "Jun", "Jul", "Aga", "Sep", "Okt", "Nov", "Dis" ], "fullDate": "EEEE dd MMMM y", "longDate": "d MMMM y", "medium": "d MMM y h:mm:ss a", "mediumDate": "d MMM y", "mediumTime": "h:mm:ss a", "short": "yyyy-MM-dd h:mm a", "shortDate": "yyyy-MM-dd", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "R", "DECIMAL_SEP": ".", "GROUP_SEP": ",", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "macFrac": 0, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "macFrac": 0, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "(\u00a4", "negSuf": ")", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "zu", "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
holtkamp/cdnjs
ajax/libs/angular-i18n/1.2.0-rc.3/angular-locale_zu.js
JavaScript
mit
1,917
angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "enne keskp\u00e4eva", "p\u00e4rast keskp\u00e4eva" ], "DAY": [ "p\u00fchap\u00e4ev", "esmasp\u00e4ev", "teisip\u00e4ev", "kolmap\u00e4ev", "neljap\u00e4ev", "reede", "laup\u00e4ev" ], "MONTH": [ "jaanuar", "veebruar", "m\u00e4rts", "aprill", "mai", "juuni", "juuli", "august", "september", "oktoober", "november", "detsember" ], "SHORTDAY": [ "P", "E", "T", "K", "N", "R", "L" ], "SHORTMONTH": [ "jaan", "veebr", "m\u00e4rts", "apr", "mai", "juuni", "juuli", "aug", "sept", "okt", "nov", "dets" ], "fullDate": "EEEE, d. MMMM y", "longDate": "d. MMMM y", "medium": "dd.MM.yyyy H:mm.ss", "mediumDate": "dd.MM.yyyy", "mediumTime": "H:mm.ss", "short": "dd.MM.yy H:mm", "shortDate": "dd.MM.yy", "shortTime": "H:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "macFrac": 0, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 0, "lgSize": 0, "macFrac": 0, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "(", "negSuf": "\u00a4)", "posPre": "", "posSuf": "\u00a4" } ] }, "id": "et", "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
menuka94/cdnjs
ajax/libs/angular-i18n/1.2.0-rc.2/angular-locale_et.js
JavaScript
mit
2,002
angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "vm.", "nm." ], "DAY": [ "Sondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrydag", "Saterdag" ], "MONTH": [ "Januarie", "Februarie", "Maart", "April", "Mei", "Junie", "Julie", "Augustus", "September", "Oktober", "November", "Desember" ], "SHORTDAY": [ "So", "Ma", "Di", "Wo", "Do", "Vr", "Sa" ], "SHORTMONTH": [ "Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des" ], "fullDate": "EEEE dd MMMM y", "longDate": "dd MMMM y", "medium": "dd MMM y h:mm:ss a", "mediumDate": "dd MMM y", "mediumTime": "h:mm:ss a", "short": "yyyy-MM-dd h:mm a", "shortDate": "yyyy-MM-dd", "shortTime": "h:mm a" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "R", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "macFrac": 0, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "macFrac": 0, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "(\u00a4", "negSuf": ")", "posPre": "\u00a4", "posSuf": "" } ] }, "id": "af", "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} }); }]);
YayConnolly/age-forward
app/lib/angular/i18n/angular-locale_af.js
JavaScript
mit
1,912
angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "dopoludnia", "popoludn\u00ed" ], "DAY": [ "nede\u013ea", "pondelok", "utorok", "streda", "\u0161tvrtok", "piatok", "sobota" ], "MONTH": [ "janu\u00e1ra", "febru\u00e1ra", "marca", "apr\u00edla", "m\u00e1ja", "j\u00fana", "j\u00fala", "augusta", "septembra", "okt\u00f3bra", "novembra", "decembra" ], "SHORTDAY": [ "ne", "po", "ut", "st", "\u0161t", "pi", "so" ], "SHORTMONTH": [ "jan", "feb", "mar", "apr", "m\u00e1j", "j\u00fan", "j\u00fal", "aug", "sep", "okt", "nov", "dec" ], "fullDate": "EEEE, d. MMMM y", "longDate": "d. MMMM y", "medium": "d.M.yyyy H:mm:ss", "mediumDate": "d.M.yyyy", "mediumTime": "H:mm:ss", "short": "d.M.yyyy H:mm", "shortDate": "d.M.yyyy", "shortTime": "H:mm" }, "NUMBER_FORMATS": { "CURRENCY_SYM": "\u20ac", "DECIMAL_SEP": ",", "GROUP_SEP": "\u00a0", "PATTERNS": [ { "gSize": 3, "lgSize": 3, "macFrac": 0, "maxFrac": 3, "minFrac": 0, "minInt": 1, "negPre": "-", "negSuf": "", "posPre": "", "posSuf": "" }, { "gSize": 3, "lgSize": 3, "macFrac": 0, "maxFrac": 2, "minFrac": 2, "minInt": 1, "negPre": "-", "negSuf": "\u00a0\u00a4", "posPre": "", "posSuf": "\u00a0\u00a4" } ] }, "id": "sk-sk", "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } if (n == (n | 0) && n >= 2 && n <= 4) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;} }); }]);
sashberd/cdnjs
ajax/libs/angular-i18n/1.2.0-rc.2/angular-locale_sk-sk.js
JavaScript
mit
2,068
/** Bootstrap wysihtml5 editor. Based on [bootstrap-wysihtml5](https://github.com/jhollingworth/bootstrap-wysihtml5). You should include this input **manually** with dependent js and css files from `inputs-ext` directory. <link href="js/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css" rel="stylesheet" type="text/css"></link> <script src="js/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.min.js"></script> <script src="js/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.min.js"></script> <script src="js/inputs-ext/wysihtml5/wysihtml5.js"></script> **Note:** It's better to use fresh bootstrap-wysihtml5 from it's [master branch](https://github.com/jhollingworth/bootstrap-wysihtml5/tree/master/src) as there is update for correct image insertion. @class wysihtml5 @extends abstractinput @final @since 1.4.0 @example <div id="comments" data-type="wysihtml5" data-pk="1"><h2>awesome</h2> comment!</div> <script> $(function(){ $('#comments').editable({ url: '/post', title: 'Enter comments' }); }); </script> **/ (function ($) { var Wysihtml5 = function (options) { this.init('wysihtml5', options, Wysihtml5.defaults); //extend wysihtml5 manually as $.extend not recursive this.options.wysihtml5 = $.extend({}, Wysihtml5.defaults.wysihtml5, options.wysihtml5); }; $.fn.editableutils.inherit(Wysihtml5, $.fn.editabletypes.abstractinput); $.extend(Wysihtml5.prototype, { render: function () { var deferred = $.Deferred(), msieOld; //generate unique id as it required for wysihtml5 this.$input.attr('id', 'textarea_'+(new Date()).getTime()); this.setClass(); this.setAttr('placeholder'); //resolve deffered when widget loaded $.extend(this.options.wysihtml5, { events: { load: function() { deferred.resolve(); } } }); this.$input.wysihtml5(this.options.wysihtml5); /* In IE8 wysihtml5 iframe stays on the same line with buttons toolbar (inside popover). The only solution I found is to add <br>. If you fine better way, please send PR. */ msieOld = /msie\s*(8|7|6)/.test(navigator.userAgent.toLowerCase()); if(msieOld) { this.$input.before('<br><br>'); } return deferred.promise(); }, value2html: function(value, element) { $(element).html(value); }, html2value: function(html) { return html; }, value2input: function(value) { this.$input.data("wysihtml5").editor.setValue(value, true); }, activate: function() { this.$input.data("wysihtml5").editor.focus(); } }); Wysihtml5.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, { /** @property tpl @default <textarea></textarea> **/ tpl:'<textarea></textarea>', /** @property inputclass @default editable-wysihtml5 **/ inputclass: 'editable-wysihtml5', /** Placeholder attribute of input. Shown when input is empty. @property placeholder @type string @default null **/ placeholder: null, /** Wysihtml5 default options. See https://github.com/jhollingworth/bootstrap-wysihtml5#options @property wysihtml5 @type object @default {stylesheets: false} **/ wysihtml5: { stylesheets: false //see https://github.com/jhollingworth/bootstrap-wysihtml5/issues/183 } }); $.fn.editabletypes.wysihtml5 = Wysihtml5; }(window.jQuery));
itvsai/cdnjs
ajax/libs/x-editable/1.4.2/inputs-ext/wysihtml5/wysihtml5.js
JavaScript
mit
4,072
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Finder\Tests\Iterator; use Symfony\Component\Finder\Iterator\DepthRangeFilterIterator; class DepthRangeFilterIteratorTest extends RealIteratorTestCase { /** * @dataProvider getAcceptData */ public function testAccept($minDepth, $maxDepth, $expected) { $inner = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->toAbsolute(), \FilesystemIterator::SKIP_DOTS), \RecursiveIteratorIterator::SELF_FIRST); $iterator = new DepthRangeFilterIterator($inner, $minDepth, $maxDepth); $actual = array_keys(iterator_to_array($iterator)); sort($expected); sort($actual); $this->assertEquals($expected, $actual); } public function getAcceptData() { $lessThan1 = array( '.git', 'test.py', 'foo', 'test.php', 'toto', '.foo', '.bar', 'foo bar', ); $lessThanOrEqualTo1 = array( '.git', 'test.py', 'foo', 'foo/bar.tmp', 'test.php', 'toto', '.foo', '.foo/.bar', '.bar', 'foo bar', '.foo/bar', ); $graterThanOrEqualTo1 = array( 'foo/bar.tmp', '.foo/.bar', '.foo/bar', ); $equalTo1 = array( 'foo/bar.tmp', '.foo/.bar', '.foo/bar', ); return array( array(0, 0, $this->toAbsolute($lessThan1)), array(0, 1, $this->toAbsolute($lessThanOrEqualTo1)), array(2, PHP_INT_MAX, array()), array(1, PHP_INT_MAX, $this->toAbsolute($graterThanOrEqualTo1)), array(1, 1, $this->toAbsolute($equalTo1)), ); } }
azyzromanov/smile.rh
vendor/symfony/symfony/src/Symfony/Component/Finder/Tests/Iterator/DepthRangeFilterIteratorTest.php
PHP
mit
2,088
YUI.add('event-mousewheel', function(Y) { /** * Adds mousewheel event support * @module event * @submodule event-mousewheel */ var DOM_MOUSE_SCROLL = 'DOMMouseScroll', fixArgs = function(args) { var a = Y.Array(args, 0, true), target; if (Y.UA.gecko) { a[0] = DOM_MOUSE_SCROLL; target = Y.config.win; } else { target = Y.config.doc; } if (a.length < 3) { a[2] = target; } else { a.splice(2, 0, target); } return a; }; /** * Mousewheel event. This listener is automatically attached to the * correct target, so one should not be supplied. Mouse wheel * direction and velocity is stored in the 'mouseDelta' field. * @event mousewheel * @param type {string} 'mousewheel' * @param fn {function} the callback to execute * @param context optional context object * @param args 0..n additional arguments to provide to the listener. * @return {EventHandle} the detach handle * @for YUI */ Y.Env.evt.plugins.mousewheel = { on: function() { return Y.Event._attach(fixArgs(arguments)); }, detach: function() { return Y.Event.detach.apply(Y.Event, fixArgs(arguments)); } }; }, '@VERSION@' ,{requires:['node-base']});
tonytomov/cdnjs
ajax/libs/yui/3.2.0/event/event-mousewheel-debug.js
JavaScript
mit
1,293
YUI.add('tabview-base', function(Y) { var getClassName = Y.ClassNameManager.getClassName, TABVIEW = 'tabview', TAB = 'tab', CONTENT = 'content', PANEL = 'panel', SELECTED = 'selected', EMPTY_OBJ = {}, DOT = '.', _classNames = { tabview: getClassName(TABVIEW), tabviewPanel: getClassName(TABVIEW, PANEL), tabviewList: getClassName(TABVIEW, 'list'), tab: getClassName(TAB), tabLabel: getClassName(TAB, 'label'), tabPanel: getClassName(TAB, PANEL), selectedTab: getClassName(TAB, SELECTED), selectedPanel: getClassName(TAB, PANEL, SELECTED) }, _queries = { tabview: DOT + _classNames.tabview, tabviewList: '> ul', tab: '> ul > li', tabLabel: '> ul > li > a ', tabviewPanel: '> div', tabPanel: '> div > div', selectedTab: '> ul > ' + DOT + _classNames.selectedTab, selectedPanel: '> div ' + DOT + _classNames.selectedPanel }, TabviewBase = function(config) { this.init.apply(this, arguments); }; TabviewBase.NAME = 'tabviewBase'; TabviewBase._queries = _queries; TabviewBase._classNames = _classNames; Y.mix(TabviewBase.prototype, { init: function(config) { config = config || EMPTY_OBJ; this._node = config.host || Y.one(config.node); this.refresh(); }, initClassNames: function(index) { Y.Object.each(_queries, function(query, name) { // this === tabview._node if (_classNames[name]) { var result = this.all(query); if (index !== undefined) { result = result.item(index); } if (result) { result.addClass(_classNames[name]); } } }, this._node); this._node.addClass(_classNames.tabview); }, _select: function(index) { var node = this._node, oldItem = node.one(_queries.selectedTab), oldContent = node.one(_queries.selectedPanel), newItem = node.all(_queries.tab).item(index), newContent = node.all(_queries.tabPanel).item(index); if (oldItem) { oldItem.removeClass(_classNames.selectedTab); } if (oldContent) { oldContent.removeClass(_classNames.selectedPanel); } if (newItem) { newItem.addClass(_classNames.selectedTab); } if (newContent) { newContent.addClass(_classNames.selectedPanel); } }, initState: function() { var node = this._node, activeNode = node.one(_queries.selectedTab), activeIndex = activeNode ? node.all(_queries.tab).indexOf(activeNode) : 0; this._select(activeIndex); }, // collapse extra space between list-items _scrubTextNodes: function() { this._node.one(_queries.tabviewList).get('childNodes').each(function(node) { if (node.get('nodeType') === 3) { // text node node.remove(); } }); }, // base renderer only enlivens existing markup refresh: function() { this._scrubTextNodes(); this.initClassNames(); this.initState(); this.initEvents(); }, tabEventName: 'click', initEvents: function() { // TODO: detach prefix for delegate? // this._node.delegate('tabview|' + this.tabEventName), this._node.delegate(this.tabEventName, this.onTabEvent, _queries.tab, this ); }, onTabEvent: function(e) { e.preventDefault(); this._select(this._node.all(_queries.tab).indexOf(e.currentTarget)); }, destroy: function() { this._node.detach(this.tabEventName); } }); Y.TabviewBase = TabviewBase; }, '@VERSION@' ,{requires:['node-event-delegate', 'classnamemanager', 'skin-sam-tabview']});
luanlmd/cdnjs
ajax/libs/yui/3.4.0/tabview/tabview-base.js
JavaScript
mit
4,020
/*! formstone v0.8.38 [upload.css] 2016-02-04 | MIT License | formstone.it */ /** * @class * @name .fs-upload-element * @type element * @description Target elmement */ /** * @class * @name .fs-upload * @type element * @description Base widget class */ /** * @class * @name .fs-upload.fs-upload-dropping * @type modifier * @description Indicates dropping state */ /** * @class * @name .fs-upload.fs-upload-disabled * @type modifier * @description Indicates disabled state */ .fs-upload { overflow: hidden; /** * @class * @name .fs-upload-input * @type element * @description Masked Input */ /** * @class * @name .fs-upload-target * @type element * @description Drop target */ } .fs-upload, .fs-upload:after, .fs-upload:before, .fs-upload *, .fs-upload *:after, .fs-upload *:before { box-sizing: border-box; -webkit-transition: none; transition: none; -webkit-user-select: none !important; -moz-user-select: none !important; -ms-user-select: none !important; user-select: none !important; } .fs-upload-input { position: absolute; left: 100%; opacity: 0; } .no-opacity .fs-upload-input { left: -999px; } .fs-upload-target { background: #ffffff; border: 3px dashed #cccccc; border-radius: 3px; color: #666666; cursor: pointer; font-size: 14px; margin: 0; padding: 25px; text-align: center; -webkit-transition: background 0.15s linear, border 0.15s linear, color 0.15s linear, opacity 0.15s linear; transition: background 0.15s linear, border 0.15s linear, color 0.15s linear, opacity 0.15s linear; } .fs-upload-dropping .fs-upload-target, .no-touchevents .fs-upload:hover .fs-upload-target { background: #eeeeee; border-color: #999999; color: #333333; } .fs-upload-disabled .fs-upload-target, .no-touchevents .fs-upload-disabled:hover .fs-upload-target { background: #ffffff; border-color: #cccccc; color: #666666; cursor: default; cursor: not-allowed; } .fs-upload-disabled.fs-upload-dropping .fs-upload-target, .no-touchevents .fs-upload-disabled.fs-upload-dropping:hover .fs-upload-target { background: #ffc7c6; border-color: #ff6666; color: #ff0000; }
khorep/jsdelivr
files/formstone/0.8.38/css/upload.css
CSS
mit
2,250
html, body { padding: 0; margin: 0; height: 100%; } html, body, * { box-sizing: border-box; } article, aside, details, figcaption, figure, footer, header, nav, section { display: block; } audio, canvas, video { display: inline-block; } audio:not([controls]) { display: none; } a:hover, a:active, .tile:active { outline: 0; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { max-width: 100%; height: auto; vertical-align: middle; border: 0; } #map_canvas img, .google-maps img { max-width: none; } button, input, select, textarea { margin: 0; font-size: 100%; vertical-align: middle; } button, input { line-height: normal; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } label, select, button, input[type="button"], input[type="reset"], input[type="submit"], input[type="radio"], input[type="checkbox"] { cursor: pointer; } input[type="search"] { box-sizing: content-box; appearance: textfield; } input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; } textarea { overflow: auto; vertical-align: top; } input[type=text]::-ms-clear, input[type=email]::-ms-clear, input[type=url]::-ms-clear, input[type=tel]::-ms-clear, input[type=number]::-ms-clear, input[type=time]::-ms-clear { display: none; } input[type=password]::-ms-reveal { display: none; } * { border-collapse: collapse; } a { text-decoration: none; } @media print { a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100%; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } } .op-default { background-color: rgba(27, 161, 226, 0.7); } .op-black { background-color: rgba(0, 0, 0, 0.7) !important; } .op-white { background-color: rgba(255, 255, 255, 0.7) !important; } .op-lime { background-color: rgba(164, 196, 0, 0.7) !important; } .op-green { background-color: rgba(96, 169, 23, 0.7) !important; } .op-emerald { background-color: rgba(0, 138, 0, 0.7) !important; } .op-teal { background-color: rgba(0, 171, 169, 0.7) !important; } .op-cyan { background-color: rgba(27, 161, 226, 0.7) !important; } .op-cobalt { background-color: rgba(0, 80, 239, 0.7) !important; } .op-indigo { background-color: rgba(106, 0, 255, 0.7) !important; } .op-violet { background-color: rgba(170, 0, 255, 0.7) !important; } .op-pink { background-color: rgba(220, 79, 173, 0.7) !important; } .op-magenta { background-color: rgba(216, 0, 115, 0.7) !important; } .op-crimson { background-color: rgba(162, 0, 37, 0.7) !important; } .op-red { background-color: rgba(206, 53, 44, 0.7) !important; } .op-orange { background-color: rgba(250, 104, 0, 0.7) !important; } .op-amber { background-color: rgba(240, 163, 10, 0.7) !important; } .op-yellow { background-color: rgba(227, 200, 0, 0.7) !important; } .op-brown { background-color: rgba(130, 90, 44, 0.7) !important; } .op-olive { background-color: rgba(109, 135, 100, 0.7) !important; } .op-steel { background-color: rgba(100, 118, 135, 0.7) !important; } .op-mauve { background-color: rgba(118, 96, 138, 0.7) !important; } .op-taupe { background-color: rgba(135, 121, 78, 0.7) !important; } .op-gray { background-color: rgba(85, 85, 85, 0.7) !important; } .op-dark { background-color: rgba(51, 51, 51, 0.7) !important; } .op-darker { background-color: rgba(34, 34, 34, 0.7) !important; } .op-transparent { background-color: rgba(0, 0, 0, 0.7) !important; } .op-darkBrown { background-color: rgba(99, 54, 47, 0.7) !important; } .op-darkCrimson { background-color: rgba(100, 0, 36, 0.7) !important; } .op-darkMagenta { background-color: rgba(129, 0, 60, 0.7) !important; } .op-darkIndigo { background-color: rgba(75, 0, 150, 0.7) !important; } .op-darkCyan { background-color: rgba(27, 110, 174, 0.7) !important; } .op-darkCobalt { background-color: rgba(0, 53, 106, 0.7) !important; } .op-darkTeal { background-color: rgba(0, 64, 80, 0.7) !important; } .op-darkEmerald { background-color: rgba(0, 62, 0, 0.7) !important; } .op-darkGreen { background-color: rgba(18, 128, 35, 0.7) !important; } .op-darkOrange { background-color: rgba(191, 90, 21, 0.7) !important; } .op-darkRed { background-color: rgba(154, 22, 22, 0.7) !important; } .op-darkPink { background-color: rgba(154, 22, 90, 0.7) !important; } .op-darkViolet { background-color: rgba(87, 22, 154, 0.7) !important; } .op-darkBlue { background-color: rgba(22, 73, 154, 0.7) !important; } .op-lightBlue { background-color: rgba(67, 144, 223, 0.7) !important; } .op-lightRed { background-color: rgba(218, 90, 83, 0.7) !important; } .op-lightGreen { background-color: rgba(122, 214, 29, 0.7) !important; } .op-lighterBlue { background-color: rgba(0, 204, 255, 0.7) !important; } .op-lightTeal { background-color: rgba(69, 255, 253, 0.7) !important; } .op-lightOlive { background-color: rgba(120, 170, 28, 0.7) !important; } .op-lightOrange { background-color: rgba(255, 193, 148, 0.7) !important; } .op-lightPink { background-color: rgba(244, 114, 208, 0.7) !important; } .op-grayDark { background-color: rgba(51, 51, 51, 0.7) !important; } .op-grayDarker { background-color: rgba(34, 34, 34, 0.7) !important; } .op-grayLight { background-color: rgba(153, 153, 153, 0.7) !important; } .op-grayLighter { background-color: rgba(238, 238, 238, 0.7) !important; } .op-blue { background-color: rgba(0, 175, 240, 0.7) !important; } .bg-black { background: #000000 !important; } .bg-white { background: #ffffff !important; } .bg-lime { background: #a4c400 !important; } .bg-green { background: #60a917 !important; } .bg-emerald { background: #008a00 !important; } .bg-teal { background: #00aba9 !important; } .bg-cyan { background: #1ba1e2 !important; } .bg-cobalt { background: #0050ef !important; } .bg-indigo { background: #6a00ff !important; } .bg-violet { background: #aa00ff !important; } .bg-pink { background: #dc4fad !important; } .bg-magenta { background: #d80073 !important; } .bg-crimson { background: #a20025 !important; } .bg-red { background: #ce352c !important; } .bg-orange { background: #fa6800 !important; } .bg-amber { background: #f0a30a !important; } .bg-yellow { background: #e3c800 !important; } .bg-brown { background: #825a2c !important; } .bg-olive { background: #6d8764 !important; } .bg-steel { background: #647687 !important; } .bg-mauve { background: #76608a !important; } .bg-taupe { background: #87794e !important; } .bg-gray { background: #555555 !important; } .bg-dark { background: #333333 !important; } .bg-darker { background: #222222 !important; } .bg-transparent { background: transparent !important; } .bg-darkBrown { background: #63362f !important; } .bg-darkCrimson { background: #640024 !important; } .bg-darkMagenta { background: #81003c !important; } .bg-darkIndigo { background: #4b0096 !important; } .bg-darkCyan { background: #1b6eae !important; } .bg-darkCobalt { background: #00356a !important; } .bg-darkTeal { background: #004050 !important; } .bg-darkEmerald { background: #003e00 !important; } .bg-darkGreen { background: #128023 !important; } .bg-darkOrange { background: #bf5a15 !important; } .bg-darkRed { background: #9a1616 !important; } .bg-darkPink { background: #9a165a !important; } .bg-darkViolet { background: #57169a !important; } .bg-darkBlue { background: #16499a !important; } .bg-lightBlue { background: #4390df !important; } .bg-lightRed { background: #da5a53 !important; } .bg-lightGreen { background: #7ad61d !important; } .bg-lighterBlue { background: #00ccff !important; } .bg-lightTeal { background: #45fffd !important; } .bg-lightOlive { background: #78aa1c !important; } .bg-lightOrange { background: #ffc194 !important; } .bg-lightPink { background: #f472d0 !important; } .bg-grayDark { background: #333333 !important; } .bg-grayDarker { background: #222222 !important; } .bg-grayLight { background: #999999 !important; } .bg-grayLighter { background: #eeeeee !important; } .bg-blue { background: #00aff0 !important; } .fg-black { color: #000000 !important; } .fg-white { color: #ffffff !important; } .fg-lime { color: #a4c400 !important; } .fg-green { color: #60a917 !important; } .fg-emerald { color: #008a00 !important; } .fg-teal { color: #00aba9 !important; } .fg-cyan { color: #1ba1e2 !important; } .fg-cobalt { color: #0050ef !important; } .fg-indigo { color: #6a00ff !important; } .fg-violet { color: #aa00ff !important; } .fg-pink { color: #dc4fad !important; } .fg-magenta { color: #d80073 !important; } .fg-crimson { color: #a20025 !important; } .fg-red { color: #ce352c !important; } .fg-orange { color: #fa6800 !important; } .fg-amber { color: #f0a30a !important; } .fg-yellow { color: #e3c800 !important; } .fg-brown { color: #825a2c !important; } .fg-olive { color: #6d8764 !important; } .fg-steel { color: #647687 !important; } .fg-mauve { color: #76608a !important; } .fg-taupe { color: #87794e !important; } .fg-gray { color: #555555 !important; } .fg-dark { color: #333333 !important; } .fg-darker { color: #222222 !important; } .fg-transparent { color: transparent !important; } .fg-darkBrown { color: #63362f !important; } .fg-darkCrimson { color: #640024 !important; } .fg-darkMagenta { color: #81003c !important; } .fg-darkIndigo { color: #4b0096 !important; } .fg-darkCyan { color: #1b6eae !important; } .fg-darkCobalt { color: #00356a !important; } .fg-darkTeal { color: #004050 !important; } .fg-darkEmerald { color: #003e00 !important; } .fg-darkGreen { color: #128023 !important; } .fg-darkOrange { color: #bf5a15 !important; } .fg-darkRed { color: #9a1616 !important; } .fg-darkPink { color: #9a165a !important; } .fg-darkViolet { color: #57169a !important; } .fg-darkBlue { color: #16499a !important; } .fg-lightBlue { color: #4390df !important; } .fg-lighterBlue { color: #00ccff !important; } .fg-lightTeal { color: #45fffd !important; } .fg-lightOlive { color: #78aa1c !important; } .fg-lightOrange { color: #ffc194 !important; } .fg-lightPink { color: #f472d0 !important; } .fg-lightRed { color: #da5a53 !important; } .fg-lightGreen { color: #7ad61d !important; } .fg-grayDark { color: #333333 !important; } .fg-grayDarker { color: #222222 !important; } .fg-grayLight { color: #999999 !important; } .fg-grayLighter { color: #eeeeee !important; } .fg-blue { color: #00aff0 !important; } .ol-black { outline-color: #000000 !important; } .ol-white { outline-color: #ffffff !important; } .ol-lime { outline-color: #a4c400 !important; } .ol-green { outline-color: #60a917 !important; } .ol-emerald { outline-color: #008a00 !important; } .ol-teal { outline-color: #00aba9 !important; } .ol-cyan { outline-color: #1ba1e2 !important; } .ol-cobalt { outline-color: #0050ef !important; } .ol-indigo { outline-color: #6a00ff !important; } .ol-violet { outline-color: #aa00ff !important; } .ol-pink { outline-color: #dc4fad !important; } .ol-magenta { outline-color: #d80073 !important; } .ol-crimson { outline-color: #a20025 !important; } .ol-red { outline-color: #ce352c !important; } .ol-orange { outline-color: #fa6800 !important; } .ol-amber { outline-color: #f0a30a !important; } .ol-yellow { outline-color: #e3c800 !important; } .ol-brown { outline-color: #825a2c !important; } .ol-olive { outline-color: #6d8764 !important; } .ol-steel { outline-color: #647687 !important; } .ol-mauve { outline-color: #76608a !important; } .ol-taupe { outline-color: #87794e !important; } .ol-gray { outline-color: #555555 !important; } .ol-dark { outline-color: #333333 !important; } .ol-darker { outline-color: #222222 !important; } .ol-transparent { outline-color: transparent !important; } .ol-darkBrown { outline-color: #63362f !important; } .ol-darkCrimson { outline-color: #640024 !important; } .ol-darkMagenta { outline-color: #81003c !important; } .ol-darkIndigo { outline-color: #4b0096 !important; } .ol-darkCyan { outline-color: #1b6eae !important; } .ol-darkCobalt { outline-color: #00356a !important; } .ol-darkTeal { outline-color: #004050 !important; } .ol-darkEmerald { outline-color: #003e00 !important; } .ol-darkGreen { outline-color: #128023 !important; } .ol-darkOrange { outline-color: #bf5a15 !important; } .ol-darkRed { outline-color: #9a1616 !important; } .ol-darkPink { outline-color: #9a165a !important; } .ol-darkViolet { outline-color: #57169a !important; } .ol-darkBlue { outline-color: #16499a !important; } .ol-lightBlue { outline-color: #4390df !important; } .ol-lighterBlue { outline-color: #00ccff !important; } .ol-lightTeal { outline-color: #45fffd !important; } .ol-lightOlive { outline-color: #78aa1c !important; } .ol-lightOrange { outline-color: #ffc194 !important; } .ol-lightPink { outline-color: #f472d0 !important; } .ol-lightRed { outline-color: #da5a53 !important; } .ol-lightGreen { outline-color: #7ad61d !important; } .ol-grayDark { outline-color: #333333 !important; } .ol-grayDarker { outline-color: #222222 !important; } .ol-grayLight { outline-color: #999999 !important; } .ol-grayLighter { outline-color: #eeeeee !important; } .ol-blue { outline-color: #00aff0 !important; } .bd-black { border-color: #000000 !important; } .bd-white { border-color: #ffffff !important; } .bd-lime { border-color: #a4c400 !important; } .bd-green { border-color: #60a917 !important; } .bd-emerald { border-color: #008a00 !important; } .bd-teal { border-color: #00aba9 !important; } .bd-cyan { border-color: #1ba1e2 !important; } .bd-cobalt { border-color: #0050ef !important; } .bd-indigo { border-color: #6a00ff !important; } .bd-violet { border-color: #aa00ff !important; } .bd-pink { border-color: #dc4fad !important; } .bd-magenta { border-color: #d80073 !important; } .bd-crimson { border-color: #a20025 !important; } .bd-red { border-color: #ce352c !important; } .bd-orange { border-color: #fa6800 !important; } .bd-amber { border-color: #f0a30a !important; } .bd-yellow { border-color: #e3c800 !important; } .bd-brown { border-color: #825a2c !important; } .bd-olive { border-color: #6d8764 !important; } .bd-steel { border-color: #647687 !important; } .bd-mauve { border-color: #76608a !important; } .bd-taupe { border-color: #87794e !important; } .bd-gray { border-color: #555555 !important; } .bd-dark { border-color: #333333 !important; } .bd-darker { border-color: #222222 !important; } .bd-transparent { border-color: transparent !important; } .bd-darkBrown { border-color: #63362f !important; } .bd-darkCrimson { border-color: #640024 !important; } .bd-darkMagenta { border-color: #81003c !important; } .bd-darkIndigo { border-color: #4b0096 !important; } .bd-darkCyan { border-color: #1b6eae !important; } .bd-darkCobalt { border-color: #00356a !important; } .bd-darkTeal { border-color: #004050 !important; } .bd-darkEmerald { border-color: #003e00 !important; } .bd-darkGreen { border-color: #128023 !important; } .bd-darkOrange { border-color: #bf5a15 !important; } .bd-darkRed { border-color: #9a1616 !important; } .bd-darkPink { border-color: #9a165a !important; } .bd-darkViolet { border-color: #57169a !important; } .bd-darkBlue { border-color: #16499a !important; } .bd-lightBlue { border-color: #4390df !important; } .bd-lightTeal { border-color: #45fffd !important; } .bd-lightOlive { border-color: #78aa1c !important; } .bd-lightOrange { border-color: #ffc194 !important; } .bd-lightPink { border-color: #f472d0 !important; } .bd-lightRed { border-color: #da5a53 !important; } .bd-lightGreen { border-color: #7ad61d !important; } .bd-grayDark { border-color: #333333 !important; } .bd-grayDarker { border-color: #222222 !important; } .bd-grayLight { border-color: #999999 !important; } .bd-grayLighter { border-color: #eeeeee !important; } .bd-blue { border-color: #00aff0 !important; } .bg-hover-black:hover { background: #000000 !important; } .bg-hover-white:hover { background: #ffffff !important; } .bg-hover-lime:hover { background: #a4c400 !important; } .bg-hover-green:hover { background: #60a917 !important; } .bg-hover-emerald:hover { background: #008a00 !important; } .bg-hover-teal:hover { background: #00aba9 !important; } .bg-hover-cyan:hover { background: #1ba1e2 !important; } .bg-hover-cobalt:hover { background: #0050ef !important; } .bg-hover-indigo:hover { background: #6a00ff !important; } .bg-hover-violet:hover { background: #aa00ff !important; } .bg-hover-pink:hover { background: #dc4fad !important; } .bg-hover-magenta:hover { background: #d80073 !important; } .bg-hover-crimson:hover { background: #a20025 !important; } .bg-hover-red:hover { background: #ce352c !important; } .bg-hover-orange:hover { background: #fa6800 !important; } .bg-hover-amber:hover { background: #f0a30a !important; } .bg-hover-yellow:hover { background: #e3c800 !important; } .bg-hover-brown:hover { background: #825a2c !important; } .bg-hover-olive:hover { background: #6d8764 !important; } .bg-hover-steel:hover { background: #647687 !important; } .bg-hover-mauve:hover { background: #76608a !important; } .bg-hover-taupe:hover { background: #87794e !important; } .bg-hover-gray:hover { background: #555555 !important; } .bg-hover-dark:hover { background: #333333 !important; } .bg-hover-darker:hover { background: #222222 !important; } .bg-hover-transparent:hover { background: transparent !important; } .bg-hover-darkBrown:hover { background: #63362f !important; } .bg-hover-darkCrimson:hover { background: #640024 !important; } .bg-hover-darkMagenta:hover { background: #81003c !important; } .bg-hover-darkIndigo:hover { background: #4b0096 !important; } .bg-hover-darkCyan:hover { background: #1b6eae !important; } .bg-hover-darkCobalt:hover { background: #00356a !important; } .bg-hover-darkTeal:hover { background: #004050 !important; } .bg-hover-darkEmerald:hover { background: #003e00 !important; } .bg-hover-darkGreen:hover { background: #128023 !important; } .bg-hover-darkOrange:hover { background: #bf5a15 !important; } .bg-hover-darkRed:hover { background: #9a1616 !important; } .bg-hover-darkPink:hover { background: #9a165a !important; } .bg-hover-darkViolet:hover { background: #57169a !important; } .bg-hover-darkBlue:hover { background: #16499a !important; } .bg-hover-lightBlue:hover { background: #4390df !important; } .bg-hover-lightTeal:hover { background: #45fffd !important; } .bg-hover-lightOlive:hover { background: #78aa1c !important; } .bg-hover-lightOrange:hover { background: #ffc194 !important; } .bg-hover-lightPink:hover { background: #f472d0 !important; } .bg-hover-lightRed:hover { background: #da5a53 !important; } .bg-hover-lightGreen:hover { background: #7ad61d !important; } .bg-hover-grayDark:hover { background: #333333 !important; } .bg-hover-grayDarker:hover { background: #222222 !important; } .bg-hover-grayLight:hover { background: #999999 !important; } .bg-hover-grayLighter:hover { background: #eeeeee !important; } .bg-hover-blue:hover { background: #00aff0 !important; } .fg-hover-black:hover { color: #000000 !important; } .fg-hover-white:hover { color: #ffffff !important; } .fg-hover-lime:hover { color: #a4c400 !important; } .fg-hover-green:hover { color: #60a917 !important; } .fg-hover-emerald:hover { color: #008a00 !important; } .fg-hover-teal:hover { color: #00aba9 !important; } .fg-hover-cyan:hover { color: #1ba1e2 !important; } .fg-hover-cobalt:hover { color: #0050ef !important; } .fg-hover-indigo:hover { color: #6a00ff !important; } .fg-hover-violet:hover { color: #aa00ff !important; } .fg-hover-pink:hover { color: #dc4fad !important; } .fg-hover-magenta:hover { color: #d80073 !important; } .fg-hover-crimson:hover { color: #a20025 !important; } .fg-hover-red:hover { color: #ce352c !important; } .fg-hover-orange:hover { color: #fa6800 !important; } .fg-hover-amber:hover { color: #f0a30a !important; } .fg-hover-yellow:hover { color: #e3c800 !important; } .fg-hover-brown:hover { color: #825a2c !important; } .fg-hover-olive:hover { color: #6d8764 !important; } .fg-hover-steel:hover { color: #647687 !important; } .fg-hover-mauve:hover { color: #76608a !important; } .fg-hover-taupe:hover { color: #87794e !important; } .fg-hover-gray:hover { color: #555555 !important; } .fg-hover-dark:hover { color: #333333 !important; } .fg-hover-darker:hover { color: #222222 !important; } .fg-hover-transparent:hover { color: transparent !important; } .fg-hover-darkBrown:hover { color: #63362f !important; } .fg-hover-darkCrimson:hover { color: #640024 !important; } .fg-hover-darkMagenta:hover { color: #81003c !important; } .fg-hover-darkIndigo:hover { color: #4b0096 !important; } .fg-hover-darkCyan:hover { color: #1b6eae !important; } .fg-hover-darkCobalt:hover { color: #00356a !important; } .fg-hover-darkTeal:hover { color: #004050 !important; } .fg-hover-darkEmerald:hover { color: #003e00 !important; } .fg-hover-darkGreen:hover { color: #128023 !important; } .fg-hover-darkOrange:hover { color: #bf5a15 !important; } .fg-hover-darkRed:hover { color: #9a1616 !important; } .fg-hover-darkPink:hover { color: #9a165a !important; } .fg-hover-darkViolet:hover { color: #57169a !important; } .fg-hover-darkBlue:hover { color: #16499a !important; } .fg-hover-lightBlue:hover { color: #4390df !important; } .fg-hover-lightTeal:hover { color: #45fffd !important; } .fg-hover-lightOlive:hover { color: #78aa1c !important; } .fg-hover-lightOrange:hover { color: #ffc194 !important; } .fg-hover-lightPink:hover { color: #f472d0 !important; } .fg-hover-lightRed:hover { color: #da5a53 !important; } .fg-hover-lightGreen:hover { color: #7ad61d !important; } .fg-hover-grayDark:hover { color: #333333 !important; } .fg-hover-grayDarker:hover { color: #222222 !important; } .fg-hover-grayLight:hover { color: #999999 !important; } .fg-hover-grayLighter:hover { color: #eeeeee !important; } .fg-hover-blue:hover { color: #00aff0 !important; } .bg-active-black:active { background: #000000 !important; } .bg-active-white:active { background: #ffffff !important; } .bg-active-lime:active { background: #a4c400 !important; } .bg-active-green:active { background: #60a917 !important; } .bg-active-emerald:active { background: #008a00 !important; } .bg-active-teal:active { background: #00aba9 !important; } .bg-active-cyan:active { background: #1ba1e2 !important; } .bg-active-cobalt:active { background: #0050ef !important; } .bg-active-indigo:active { background: #6a00ff !important; } .bg-active-violet:active { background: #aa00ff !important; } .bg-active-pink:active { background: #dc4fad !important; } .bg-active-magenta:active { background: #d80073 !important; } .bg-active-crimson:active { background: #a20025 !important; } .bg-active-red:active { background: #ce352c !important; } .bg-active-orange:active { background: #fa6800 !important; } .bg-active-amber:active { background: #f0a30a !important; } .bg-active-yellow:active { background: #e3c800 !important; } .bg-active-brown:active { background: #825a2c !important; } .bg-active-olive:active { background: #6d8764 !important; } .bg-active-steel:active { background: #647687 !important; } .bg-active-mauve:active { background: #76608a !important; } .bg-active-taupe:active { background: #87794e !important; } .bg-active-gray:active { background: #555555 !important; } .bg-active-dark:active { background: #333333 !important; } .bg-active-darker:active { background: #222222 !important; } .bg-active-transparent:active { background: transparent !important; } .bg-active-darkBrown:active { background: #63362f !important; } .bg-active-darkCrimson:active { background: #640024 !important; } .bg-active-darkMagenta:active { background: #81003c !important; } .bg-active-darkIndigo:active { background: #4b0096 !important; } .bg-active-darkCyan:active { background: #1b6eae !important; } .bg-active-darkCobalt:active { background: #00356a !important; } .bg-active-darkTeal:active { background: #004050 !important; } .bg-active-darkEmerald:active { background: #003e00 !important; } .bg-active-darkGreen:active { background: #128023 !important; } .bg-active-darkOrange:active { background: #bf5a15 !important; } .bg-active-darkRed:active { background: #9a1616 !important; } .bg-active-darkPink:active { background: #9a165a !important; } .bg-active-darkViolet:active { background: #57169a !important; } .bg-active-darkBlue:active { background: #16499a !important; } .bg-active-lightBlue:active { background: #4390df !important; } .bg-active-lightTeal:active { background: #45fffd !important; } .bg-active-lightOlive:active { background: #78aa1c !important; } .bg-active-lightOrange:active { background: #ffc194 !important; } .bg-active-lightPink:active { background: #f472d0 !important; } .bg-active-lightRed:active { background: #da5a53 !important; } .bg-active-lightGreen:active { background: #7ad61d !important; } .bg-active-grayDark:active { background: #333333 !important; } .bg-active-grayDarker:active { background: #222222 !important; } .bg-active-grayLight:active { background: #999999 !important; } .bg-active-grayLighter:active { background: #eeeeee !important; } .bg-active-blue:active { background: #00aff0 !important; } .fg-active-black:active { color: #000000 !important; } .fg-active-white:active { color: #ffffff !important; } .fg-active-lime:active { color: #a4c400 !important; } .fg-active-green:active { color: #60a917 !important; } .fg-active-emerald:active { color: #008a00 !important; } .fg-active-teal:active { color: #00aba9 !important; } .fg-active-cyan:active { color: #1ba1e2 !important; } .fg-active-cobalt:active { color: #0050ef !important; } .fg-active-indigo:active { color: #6a00ff !important; } .fg-active-violet:active { color: #aa00ff !important; } .fg-active-pink:active { color: #dc4fad !important; } .fg-active-magenta:active { color: #d80073 !important; } .fg-active-crimson:active { color: #a20025 !important; } .fg-active-red:active { color: #ce352c !important; } .fg-active-orange:active { color: #fa6800 !important; } .fg-active-amber:active { color: #f0a30a !important; } .fg-active-yellow:active { color: #e3c800 !important; } .fg-active-brown:active { color: #825a2c !important; } .fg-active-olive:active { color: #6d8764 !important; } .fg-active-steel:active { color: #647687 !important; } .fg-active-mauve:active { color: #76608a !important; } .fg-active-taupe:active { color: #87794e !important; } .fg-active-gray:active { color: #555555 !important; } .fg-active-dark:active { color: #333333 !important; } .fg-active-darker:active { color: #222222 !important; } .fg-active-transparent:active { color: transparent !important; } .fg-active-darkBrown:active { color: #63362f !important; } .fg-active-darkCrimson:active { color: #640024 !important; } .fg-active-darkMagenta:active { color: #81003c !important; } .fg-active-darkIndigo:active { color: #4b0096 !important; } .fg-active-darkCyan:active { color: #1b6eae !important; } .fg-active-darkCobalt:active { color: #00356a !important; } .fg-active-darkTeal:active { color: #004050 !important; } .fg-active-darkEmerald:active { color: #003e00 !important; } .fg-active-darkGreen:active { color: #128023 !important; } .fg-active-darkOrange:active { color: #bf5a15 !important; } .fg-active-darkRed:active { color: #9a1616 !important; } .fg-active-darkPink:active { color: #9a165a !important; } .fg-active-darkViolet:active { color: #57169a !important; } .fg-active-darkBlue:active { color: #16499a !important; } .fg-active-lightBlue:active { color: #4390df !important; } .fg-active-lightTeal:active { color: #45fffd !important; } .fg-active-lightOlive:active { color: #78aa1c !important; } .fg-active-lightOrange:active { color: #ffc194 !important; } .fg-active-lightPink:active { color: #f472d0 !important; } .fg-active-lightRed:active { color: #da5a53 !important; } .fg-active-lightGreen:active { color: #7ad61d !important; } .fg-active-grayDark:active { color: #333333 !important; } .fg-active-grayDarker:active { color: #222222 !important; } .fg-active-grayLight:active { color: #999999 !important; } .fg-active-grayLighter:active { color: #eeeeee !important; } .fg-active-blue:active { color: #00aff0 !important; } .bg-focus-black:focus { background: #000000 !important; } .bg-focus-white:focus { background: #ffffff !important; } .bg-focus-lime:focus { background: #a4c400 !important; } .bg-focus-green:focus { background: #60a917 !important; } .bg-focus-emerald:focus { background: #008a00 !important; } .bg-focus-teal:focus { background: #00aba9 !important; } .bg-focus-cyan:focus { background: #1ba1e2 !important; } .bg-focus-cobalt:focus { background: #0050ef !important; } .bg-focus-indigo:focus { background: #6a00ff !important; } .bg-focus-violet:focus { background: #aa00ff !important; } .bg-focus-pink:focus { background: #dc4fad !important; } .bg-focus-magenta:focus { background: #d80073 !important; } .bg-focus-crimson:focus { background: #a20025 !important; } .bg-focus-red:focus { background: #ce352c !important; } .bg-focus-orange:focus { background: #fa6800 !important; } .bg-focus-amber:focus { background: #f0a30a !important; } .bg-focus-yellow:focus { background: #e3c800 !important; } .bg-focus-brown:focus { background: #825a2c !important; } .bg-focus-olive:focus { background: #6d8764 !important; } .bg-focus-steel:focus { background: #647687 !important; } .bg-focus-mauve:focus { background: #76608a !important; } .bg-focus-taupe:focus { background: #87794e !important; } .bg-focus-gray:focus { background: #555555 !important; } .bg-focus-dark:focus { background: #333333 !important; } .bg-focus-darker:focus { background: #222222 !important; } .bg-focus-transparent:focus { background: transparent !important; } .bg-focus-darkBrown:focus { background: #63362f !important; } .bg-focus-darkCrimson:focus { background: #640024 !important; } .bg-focus-darkMagenta:focus { background: #81003c !important; } .bg-focus-darkIndigo:focus { background: #4b0096 !important; } .bg-focus-darkCyan:focus { background: #1b6eae !important; } .bg-focus-darkCobalt:focus { background: #00356a !important; } .bg-focus-darkTeal:focus { background: #004050 !important; } .bg-focus-darkEmerald:focus { background: #003e00 !important; } .bg-focus-darkGreen:focus { background: #128023 !important; } .bg-focus-darkOrange:focus { background: #bf5a15 !important; } .bg-focus-darkRed:focus { background: #9a1616 !important; } .bg-focus-darkPink:focus { background: #9a165a !important; } .bg-focus-darkViolet:focus { background: #57169a !important; } .bg-focus-darkBlue:focus { background: #16499a !important; } .bg-focus-lightBlue:focus { background: #4390df !important; } .bg-focus-lightTeal:focus { background: #45fffd !important; } .bg-focus-lightOlive:focus { background: #78aa1c !important; } .bg-focus-lightOrange:focus { background: #ffc194 !important; } .bg-focus-lightPink:focus { background: #f472d0 !important; } .bg-focus-lightRed:focus { background: #da5a53 !important; } .bg-focus-lightGreen:focus { background: #7ad61d !important; } .bg-focus-grayDark:focus { background: #333333 !important; } .bg-focus-grayDarker:focus { background: #222222 !important; } .bg-focus-grayLight:focus { background: #999999 !important; } .bg-focus-grayLighter:focus { background: #eeeeee !important; } .bg-focus-blue:focus { background: #00aff0 !important; } .fg-focus-black:focus { color: #000000 !important; } .fg-focus-white:focus { color: #ffffff !important; } .fg-focus-lime:focus { color: #a4c400 !important; } .fg-focus-green:focus { color: #60a917 !important; } .fg-focus-emerald:focus { color: #008a00 !important; } .fg-focus-teal:focus { color: #00aba9 !important; } .fg-focus-cyan:focus { color: #1ba1e2 !important; } .fg-focus-cobalt:focus { color: #0050ef !important; } .fg-focus-indigo:focus { color: #6a00ff !important; } .fg-focus-violet:focus { color: #aa00ff !important; } .fg-focus-pink:focus { color: #dc4fad !important; } .fg-focus-magenta:focus { color: #d80073 !important; } .fg-focus-crimson:focus { color: #a20025 !important; } .fg-focus-red:focus { color: #ce352c !important; } .fg-focus-orange:focus { color: #fa6800 !important; } .fg-focus-amber:focus { color: #f0a30a !important; } .fg-focus-yellow:focus { color: #e3c800 !important; } .fg-focus-brown:focus { color: #825a2c !important; } .fg-focus-olive:focus { color: #6d8764 !important; } .fg-focus-steel:focus { color: #647687 !important; } .fg-focus-mauve:focus { color: #76608a !important; } .fg-focus-taupe:focus { color: #87794e !important; } .fg-focus-gray:focus { color: #555555 !important; } .fg-focus-dark:focus { color: #333333 !important; } .fg-focus-darker:focus { color: #222222 !important; } .fg-focus-transparent:focus { color: transparent !important; } .fg-focus-darkBrown:focus { color: #63362f !important; } .fg-focus-darkCrimson:focus { color: #640024 !important; } .fg-focus-darkMagenta:focus { color: #81003c !important; } .fg-focus-darkIndigo:focus { color: #4b0096 !important; } .fg-focus-darkCyan:focus { color: #1b6eae !important; } .fg-focus-darkCobalt:focus { color: #00356a !important; } .fg-focus-darkTeal:focus { color: #004050 !important; } .fg-focus-darkEmerald:focus { color: #003e00 !important; } .fg-focus-darkGreen:focus { color: #128023 !important; } .fg-focus-darkOrange:focus { color: #bf5a15 !important; } .fg-focus-darkRed:focus { color: #9a1616 !important; } .fg-focus-darkPink:focus { color: #9a165a !important; } .fg-focus-darkViolet:focus { color: #57169a !important; } .fg-focus-darkBlue:focus { color: #16499a !important; } .fg-focus-lightBlue:focus { color: #4390df !important; } .fg-focus-lightTeal:focus { color: #45fffd !important; } .fg-focus-lightOlive:focus { color: #78aa1c !important; } .fg-focus-lightOrange:focus { color: #ffc194 !important; } .fg-focus-lightPink:focus { color: #f472d0 !important; } .fg-focus-lightRed:focus { color: #da5a53 !important; } .fg-focus-lightGreen:focus { color: #7ad61d !important; } .fg-focus-grayDark:focus { color: #333333 !important; } .fg-focus-grayDarker:focus { color: #222222 !important; } .fg-focus-grayLight:focus { color: #999999 !important; } .fg-focus-grayLighter:focus { color: #eeeeee !important; } .fg-focus-blue:focus { color: #00aff0 !important; } .ribbed-black { background: #000000 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-white { background: #ffffff linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lime { background: #a4c400 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-green { background: #60a917 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-emerald { background: #008a00 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-teal { background: #00aba9 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-cyan { background: #1ba1e2 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-cobalt { background: #0050ef linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-indigo { background: #6a00ff linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-violet { background: #aa00ff linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-pink { background: #dc4fad linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-magenta { background: #d80073 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-crimson { background: #a20025 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-red { background: #ce352c linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-orange { background: #fa6800 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-amber { background: #f0a30a linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-yellow { background: #e3c800 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-brown { background: #825a2c linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-olive { background: #6d8764 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-steel { background: #647687 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-mauve { background: #76608a linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-taupe { background: #87794e linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-dark { background: #222222 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darker { background: #1d1d1d linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkBrown { background: #63362f linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkCrimson { background: #640024 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkMagenta { background: #81003c linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkIndigo { background: #4b0096 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkCyan { background: #1b6eae linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkCobalt { background: #00356a linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkTeal { background: #004050 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkEmerald { background: #003e00 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkGreen { background: #128023 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkOrange { background: #bf5a15 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkRed { background: #9a1616 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkPink { background: #9a165a linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkViolet { background: #57169a linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-darkBlue { background: #16499a linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lightBlue { background: #4390df linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lightTeal { background: #45fffd linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lightOlive { background: #78aa1c linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lightOrange { background: #ffc194 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lightPink { background: #f472d0 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lightRed { background: #da5a53 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lightGreen { background: #7ad61d linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-lighterBlue { background: #00ccff linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-grayed { background: #585858 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-grayDark { background: #333333 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-grayDarker { background: #222222 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-gray { background: #555555 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-grayLight { background: #999999 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-grayLighter { background: #eeeeee linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .ribbed-blue { background: #00aff0 linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .before-bg-black:before { background: #000000 !important; } .before-bg-white:before { background: #ffffff !important; } .before-bg-lime:before { background: #a4c400 !important; } .before-bg-green:before { background: #60a917 !important; } .before-bg-emerald:before { background: #008a00 !important; } .before-bg-teal:before { background: #00aba9 !important; } .before-bg-cyan:before { background: #1ba1e2 !important; } .before-bg-cobalt:before { background: #0050ef !important; } .before-bg-indigo:before { background: #6a00ff !important; } .before-bg-violet:before { background: #aa00ff !important; } .before-bg-pink:before { background: #dc4fad !important; } .before-bg-magenta:before { background: #d80073 !important; } .before-bg-crimson:before { background: #a20025 !important; } .before-bg-red:before { background: #ce352c !important; } .before-bg-orange:before { background: #fa6800 !important; } .before-bg-amber:before { background: #f0a30a !important; } .before-bg-yellow:before { background: #e3c800 !important; } .before-bg-brown:before { background: #825a2c !important; } .before-bg-olive:before { background: #6d8764 !important; } .before-bg-steel:before { background: #647687 !important; } .before-bg-mauve:before { background: #76608a !important; } .before-bg-taupe:before { background: #87794e !important; } .before-bg-gray:before { background: #555555 !important; } .before-bg-dark:before { background: #333333 !important; } .before-bg-darker:before { background: #222222 !important; } .before-bg-transparent:before { background: transparent !important; } .before-bg-darkBrown:before { background: #63362f !important; } .before-bg-darkCrimson:before { background: #640024 !important; } .before-bg-darkMagenta:before { background: #81003c !important; } .before-bg-darkIndigo:before { background: #4b0096 !important; } .before-bg-darkCyan:before { background: #1b6eae !important; } .before-bg-darkCobalt:before { background: #00356a !important; } .before-bg-darkTeal:before { background: #004050 !important; } .before-bg-darkEmerald:before { background: #003e00 !important; } .before-bg-darkGreen:before { background: #128023 !important; } .before-bg-darkOrange:before { background: #bf5a15 !important; } .before-bg-darkRed:before { background: #9a1616 !important; } .before-bg-darkPink:before { background: #9a165a !important; } .before-bg-darkViolet:before { background: #57169a !important; } .before-bg-darkBlue:before { background: #16499a !important; } .before-bg-lightBlue:before { background: #4390df !important; } .before-bg-lightRed:before { background: #da5a53 !important; } .before-bg-lightGreen:before { background: #7ad61d !important; } .before-bg-lighterBlue:before { background: #00ccff !important; } .before-bg-lightTeal:before { background: #45fffd !important; } .before-bg-lightOlive:before { background: #78aa1c !important; } .before-bg-lightOrange:before { background: #ffc194 !important; } .before-bg-lightPink:before { background: #f472d0 !important; } .before-bg-grayDark:before { background: #333333 !important; } .before-bg-grayDarker:before { background: #222222 !important; } .before-bg-grayLight:before { background: #999999 !important; } .before-bg-grayLighter:before { background: #eeeeee !important; } .before-bg-blue:before { background: #00aff0 !important; } .after-bg-black:after { background: #000000 !important; } .after-bg-white:after { background: #ffffff !important; } .after-bg-lime:after { background: #a4c400 !important; } .after-bg-green:after { background: #60a917 !important; } .after-bg-emerald:after { background: #008a00 !important; } .after-bg-teal:after { background: #00aba9 !important; } .after-bg-cyan:after { background: #1ba1e2 !important; } .after-bg-cobalt:after { background: #0050ef !important; } .after-bg-indigo:after { background: #6a00ff !important; } .after-bg-violet:after { background: #aa00ff !important; } .after-bg-pink:after { background: #dc4fad !important; } .after-bg-magenta:after { background: #d80073 !important; } .after-bg-crimson:after { background: #a20025 !important; } .after-bg-red:after { background: #ce352c !important; } .after-bg-orange:after { background: #fa6800 !important; } .after-bg-amber:after { background: #f0a30a !important; } .after-bg-yellow:after { background: #e3c800 !important; } .after-bg-brown:after { background: #825a2c !important; } .after-bg-olive:after { background: #6d8764 !important; } .after-bg-steel:after { background: #647687 !important; } .after-bg-mauve:after { background: #76608a !important; } .after-bg-taupe:after { background: #87794e !important; } .after-bg-gray:after { background: #555555 !important; } .after-bg-dark:after { background: #333333 !important; } .after-bg-darker:after { background: #222222 !important; } .after-bg-transparent:after { background: transparent !important; } .after-bg-darkBrown:after { background: #63362f !important; } .after-bg-darkCrimson:after { background: #640024 !important; } .after-bg-darkMagenta:after { background: #81003c !important; } .after-bg-darkIndigo:after { background: #4b0096 !important; } .after-bg-darkCyan:after { background: #1b6eae !important; } .after-bg-darkCobalt:after { background: #00356a !important; } .after-bg-darkTeal:after { background: #004050 !important; } .after-bg-darkEmerald:after { background: #003e00 !important; } .after-bg-darkGreen:after { background: #128023 !important; } .after-bg-darkOrange:after { background: #bf5a15 !important; } .after-bg-darkRed:after { background: #9a1616 !important; } .after-bg-darkPink:after { background: #9a165a !important; } .after-bg-darkViolet:after { background: #57169a !important; } .after-bg-darkBlue:after { background: #16499a !important; } .after-bg-lightBlue:after { background: #4390df !important; } .after-bg-lightRed:after { background: #da5a53 !important; } .after-bg-lightGreen:after { background: #7ad61d !important; } .after-bg-lighterBlue:after { background: #00ccff !important; } .after-bg-lightTeal:after { background: #45fffd !important; } .after-bg-lightOlive:after { background: #78aa1c !important; } .after-bg-lightOrange:after { background: #ffc194 !important; } .after-bg-lightPink:after { background: #f472d0 !important; } .after-bg-grayDark:after { background: #333333 !important; } .after-bg-grayDarker:after { background: #222222 !important; } .after-bg-grayLight:after { background: #999999 !important; } .after-bg-grayLighter:after { background: #eeeeee !important; } .after-bg-blue:after { background: #00aff0 !important; } .before-fg-black:before { color: #000000 !important; } .before-fg-white:before { color: #ffffff !important; } .before-fg-lime:before { color: #a4c400 !important; } .before-fg-green:before { color: #60a917 !important; } .before-fg-emerald:before { color: #008a00 !important; } .before-fg-teal:before { color: #00aba9 !important; } .before-fg-cyan:before { color: #1ba1e2 !important; } .before-fg-cobalt:before { color: #0050ef !important; } .before-fg-indigo:before { color: #6a00ff !important; } .before-fg-violet:before { color: #aa00ff !important; } .before-fg-pink:before { color: #dc4fad !important; } .before-fg-magenta:before { color: #d80073 !important; } .before-fg-crimson:before { color: #a20025 !important; } .before-fg-red:before { color: #ce352c !important; } .before-fg-orange:before { color: #fa6800 !important; } .before-fg-amber:before { color: #f0a30a !important; } .before-fg-yellow:before { color: #e3c800 !important; } .before-fg-brown:before { color: #825a2c !important; } .before-fg-olive:before { color: #6d8764 !important; } .before-fg-steel:before { color: #647687 !important; } .before-fg-mauve:before { color: #76608a !important; } .before-fg-taupe:before { color: #87794e !important; } .before-fg-gray:before { color: #555555 !important; } .before-fg-dark:before { color: #333333 !important; } .before-fg-darker:before { color: #222222 !important; } .before-fg-transparent:before { color: transparent !important; } .before-fg-darkBrown:before { color: #63362f !important; } .before-fg-darkCrimson:before { color: #640024 !important; } .before-fg-darkMagenta:before { color: #81003c !important; } .before-fg-darkIndigo:before { color: #4b0096 !important; } .before-fg-darkCyan:before { color: #1b6eae !important; } .before-fg-darkCobalt:before { color: #00356a !important; } .before-fg-darkTeal:before { color: #004050 !important; } .before-fg-darkEmerald:before { color: #003e00 !important; } .before-fg-darkGreen:before { color: #128023 !important; } .before-fg-darkOrange:before { color: #bf5a15 !important; } .before-fg-darkRed:before { color: #9a1616 !important; } .before-fg-darkPink:before { color: #9a165a !important; } .before-fg-darkViolet:before { color: #57169a !important; } .before-fg-darkBlue:before { color: #16499a !important; } .before-fg-lightBlue:before { color: #4390df !important; } .before-fg-lightRed:before { color: #da5a53 !important; } .before-fg-lightGreen:before { color: #7ad61d !important; } .before-fg-lighterBlue:before { color: #00ccff !important; } .before-fg-lightTeal:before { color: #45fffd !important; } .before-fg-lightOlive:before { color: #78aa1c !important; } .before-fg-lightOrange:before { color: #ffc194 !important; } .before-fg-lightPink:before { color: #f472d0 !important; } .before-fg-grayDark:before { color: #333333 !important; } .before-fg-grayDarker:before { color: #222222 !important; } .before-fg-grayLight:before { color: #999999 !important; } .before-fg-grayLighter:before { color: #eeeeee !important; } .before-fg-blue:before { color: #00aff0 !important; } .after-fg-black:after { color: #000000 !important; } .after-fg-white:after { color: #ffffff !important; } .after-fg-lime:after { color: #a4c400 !important; } .after-fg-green:after { color: #60a917 !important; } .after-fg-emerald:after { color: #008a00 !important; } .after-fg-teal:after { color: #00aba9 !important; } .after-fg-cyan:after { color: #1ba1e2 !important; } .after-fg-cobalt:after { color: #0050ef !important; } .after-fg-indigo:after { color: #6a00ff !important; } .after-fg-violet:after { color: #aa00ff !important; } .after-fg-pink:after { color: #dc4fad !important; } .after-fg-magenta:after { color: #d80073 !important; } .after-fg-crimson:after { color: #a20025 !important; } .after-fg-red:after { color: #ce352c !important; } .after-fg-orange:after { color: #fa6800 !important; } .after-fg-amber:after { color: #f0a30a !important; } .after-fg-yellow:after { color: #e3c800 !important; } .after-fg-brown:after { color: #825a2c !important; } .after-fg-olive:after { color: #6d8764 !important; } .after-fg-steel:after { color: #647687 !important; } .after-fg-mauve:after { color: #76608a !important; } .after-fg-taupe:after { color: #87794e !important; } .after-fg-gray:after { color: #555555 !important; } .after-fg-dark:after { color: #333333 !important; } .after-fg-darker:after { color: #222222 !important; } .after-fg-transparent:after { color: transparent !important; } .after-fg-darkBrown:after { color: #63362f !important; } .after-fg-darkCrimson:after { color: #640024 !important; } .after-fg-darkMagenta:after { color: #81003c !important; } .after-fg-darkIndigo:after { color: #4b0096 !important; } .after-fg-darkCyan:after { color: #1b6eae !important; } .after-fg-darkCobalt:after { color: #00356a !important; } .after-fg-darkTeal:after { color: #004050 !important; } .after-fg-darkEmerald:after { color: #003e00 !important; } .after-fg-darkGreen:after { color: #128023 !important; } .after-fg-darkOrange:after { color: #bf5a15 !important; } .after-fg-darkRed:after { color: #9a1616 !important; } .after-fg-darkPink:after { color: #9a165a !important; } .after-fg-darkViolet:after { color: #57169a !important; } .after-fg-darkBlue:after { color: #16499a !important; } .after-fg-lightBlue:after { color: #4390df !important; } .after-fg-lightRed:after { color: #da5a53 !important; } .after-fg-lightGreen:after { color: #7ad61d !important; } .after-fg-lighterBlue:after { color: #00ccff !important; } .after-fg-lightTeal:after { color: #45fffd !important; } .after-fg-lightOlive:after { color: #78aa1c !important; } .after-fg-lightOrange:after { color: #ffc194 !important; } .after-fg-lightPink:after { color: #f472d0 !important; } .after-fg-grayDark:after { color: #333333 !important; } .after-fg-grayDarker:after { color: #222222 !important; } .after-fg-grayLight:after { color: #999999 !important; } .after-fg-grayLighter:after { color: #eeeeee !important; } .after-fg-blue:after { color: #00aff0 !important; } @font-face { font-family: "PT Serif Caption"; font-style: normal; font-weight: 400; src: local("Cambria"), local("PT Serif Caption"), local("PTSerif-Caption"), url(https://themes.googleusercontent.com/static/fonts/ptserifcaption/v6/7xkFOeTxxO1GMC1suOUYWWhBabBbEjGd1iRmpyoZukE.woff) format('woff'); } @font-face { font-family: "Open Sans Light"; font-style: normal; font-weight: 300; src: local("Segoe UI Light"), local("Open Sans Light"), local("OpenSans-Light"), url(https://themes.googleusercontent.com/static/fonts/opensans/v8/DXI1ORHCpsQm3Vp6mXoaTZ1r3JsPcQLi8jytr04NNhU.woff) format('woff'); } @font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; src: local("Segoe UI"), local("Open Sans"), local("OpenSans"), url(https://themes.googleusercontent.com/static/fonts/opensans/v8/K88pR3goAWT7BTt32Z01mz8E0i7KZn-EPnyo3HZu7kw.woff) format('woff'); } @font-face { font-family: "Open Sans Bold"; font-style: normal; font-weight: 700; src: local("Segoe UI Bold"), local("Open Sans Bold"), local("OpenSans-Bold"), url(https://themes.googleusercontent.com/static/fonts/opensans/v8/k3k702ZOKiLJc3WVjuplzJ1r3JsPcQLi8jytr04NNhU.woff) format('woff'); } .dropdown-toggle { position: relative; cursor: pointer; } .dropdown-toggle:before { display: block; position: absolute; vertical-align: middle; color: transparent; font-size: 0; content: ""; height: 5px; width: 5px; background-color: transparent; border-left: 1px solid; border-bottom: 1px solid; border-color: #1d1d1d; top: 50%; left: 100%; margin-left: -1rem; margin-top: -0.1625rem; z-index: 2; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .dropdown-toggle.drop-marker-light:before { border-color: #ffffff; } *.dropdown-toggle { padding-right: 1.625rem; } .flush-list { padding: 0; margin: 0; list-style: none inside none; } .shadow { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); } .before-shadow:before { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); } .after-shadow:after { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); } .block-shadow { box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3); } .block-shadow-success { box-shadow: 0 0 25px 0 rgba(0, 128, 0, 0.7); } .block-shadow-error { box-shadow: 0 0 25px 0 rgba(128, 0, 0, 0.7); } .block-shadow-danger { box-shadow: 0 0 25px 0 rgba(128, 0, 0, 0.7); } .block-shadow-warning { box-shadow: 0 0 25px 0 rgba(255, 165, 0, 0.7); } .block-shadow-info { box-shadow: 0 0 25px 0 rgba(89, 205, 226, 0.7); } .block-shadow-impact { box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2); } .bottom-shadow { box-shadow: -1px 6px 6px -6px rgba(0, 0, 0, 0.35); } .text-shadow { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .before-text-shadow:before { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .after-text-shadow:after { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .no-shadow { box-shadow: none !important; } .full-size { width: 100% !important; } .block { display: block !important; } .inline-block { display: inline-block !important; } .no-display { display: none !important; } .no-margin { margin: 0 !important; } .no-margin-right { margin-right: 0 !important; } .no-margin-left { margin-left: 0 !important; } .no-margin-top { margin-top: 0 !important; } .no-margin-bottom { margin-bottom: 0 !important; } .no-padding { padding: 0 !important; } .no-padding-left { padding-left: 0 !important; } .no-padding-right { padding-right: 0 !important; } .no-padding-top { padding-top: 0 !important; } .no-padding-bottom { padding-bottom: 0 !important; } .no-float { float: none !important; } .no-visible { visibility: hidden !important; } .no-border { border: 0 !important; } .no-overflow { overflow: hidden !important; } .no-scroll { overflow: hidden !important; } .no-scroll-x { overflow-x: hidden !important; } .no-scroll-y { overflow-y: hidden !important; } .no-wrap { white-space: nowrap !important; } .no-border-left { border-left: none !important; } .no-border-right { border-right: none !important; } .no-border-top { border-top: none !important; } .no-border-bottom { border-bottom: none !important; } .transparent-border { border-color: transparent !important; } .place-right { float: right !important; } .place-left { float: left !important; } .clear-float:before, .clear-float:after { display: table; content: ""; } .clear-float:after { clear: both; } .clearfix:before, .clearfix:after { display: table; content: ""; } .clearfix:after { clear: both; } .no-user-select { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .no-appearance { -moz-appearance: none; -webkit-appearance: none; appearance: none; } .debug { border: 1px dashed red; } .example { padding: .625rem 1.825rem .625rem 2.5rem; border: 1px #ccc dashed; position: relative; margin: 0 0 .625rem 0; background-color: #ffffff; } .example:before, .example:after { display: table; content: ""; } .example:after { clear: both; } .example:before { position: absolute; content: attr(data-text); text-transform: lowercase; left: 1.5rem; top: 11.875rem; color: gray; display: block; font-size: 1rem; line-height: 1rem; height: 1rem; text-align: right; white-space: nowrap; direction: ltr; width: 12.5rem; -webkit-transform: rotate(-90deg); transform: rotate(-90deg); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; } .video-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; } .video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .padding10 { padding: 0.625rem; } .padding20 { padding: 1.25rem; } .padding30 { padding: 1.875rem; } .padding40 { padding: 2.5rem; } .padding50 { padding: 3.125rem; } .padding60 { padding: 3.75rem; } .padding70 { padding: 4.375rem; } .padding80 { padding: 5rem; } .padding90 { padding: 5.625rem; } .padding100 { padding: 6.25rem; } .padding5 { padding: 5px; } .margin5 { margin: 5px; } .margin10 { margin: 0.625rem; } .margin20 { margin: 1.25rem; } .margin30 { margin: 1.875rem; } .margin40 { margin: 2.5rem; } .margin50 { margin: 3.125rem; } .margin60 { margin: 3.75rem; } .margin70 { margin: 4.375rem; } .margin80 { margin: 5rem; } .margin90 { margin: 5.625rem; } .margin100 { margin: 6.25rem; } .opacity { opacity: .9; } .half-opacity { opacity: .5; } .hi-opacity { opacity: .2; } .element-selected { border: 4px #4390df solid; } .element-selected:after { position: absolute; display: block; border-top: 28px solid #4390df; border-left: 28px solid transparent; right: 0; content: ""; top: 0; z-index: 101; } .element-selected:before { position: absolute; display: block; content: ""; background-color: transparent; border-color: #ffffff; border-left: 2px solid; border-bottom: 2px solid; height: .25rem; width: .5rem; right: 0; top: 0; z-index: 102; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } /* Block function */ .set-border { border: 1px #d9d9d9 solid; } .set-border.medium-border { border-width: 8px; } .set-border.large-border { border-width: 16px; } /* transform functions */ .rotate45 { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .rotate90 { -webkit-transform: rotate(90deg); transform: rotate(90deg); } .rotate135 { -webkit-transform: rotate(135deg); transform: rotate(135deg); } .rotate180 { -webkit-transform: rotate(180deg); transform: rotate(180deg); } .rotate225 { -webkit-transform: rotate(225deg); transform: rotate(225deg); } .rotate270 { -webkit-transform: rotate(270deg); transform: rotate(270deg); } .rotate360 { -webkit-transform: rotate(360deg); transform: rotate(360deg); } .rotate-45 { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .rotate-90 { -webkit-transform: rotate(-90deg); transform: rotate(-90deg); } .rotate-135 { -webkit-transform: rotate(-135deg); transform: rotate(-135deg); } .rotate-180 { -webkit-transform: rotate(-180deg); transform: rotate(-180deg); } .rotate-225 { -webkit-transform: rotate(-225deg); transform: rotate(-225deg); } .rotate-270 { -webkit-transform: rotate(-270deg); transform: rotate(-270deg); } .rotate-360 { -webkit-transform: rotate(-360deg); transform: rotate(-360deg); } .rotateX45 { -webkit-transform: rotateX(45deg); transform: rotateX(45deg); } .rotateX90 { -webkit-transform: rotateX(90deg); transform: rotateX(90deg); } .rotateX135 { -webkit-transform: rotateX(135deg); transform: rotateX(135deg); } .rotateX180 { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .rotateX225 { -webkit-transform: rotateX(225deg); transform: rotateX(225deg); } .rotateX270 { -webkit-transform: rotateX(270deg); transform: rotateX(270deg); } .rotateX360 { -webkit-transform: rotateX(360deg); transform: rotateX(360deg); } .rotateX-45 { -webkit-transform: rotateX(-45deg); transform: rotateX(-45deg); } .rotateX-90 { -webkit-transform: rotateX(-90deg); transform: rotateX(-90deg); } .rotateX-135 { -webkit-transform: rotateX(-135deg); transform: rotateX(-135deg); } .rotateX-180 { -webkit-transform: rotateX(-180deg); transform: rotateX(-180deg); } .rotateX-225 { -webkit-transform: rotateX(-225deg); transform: rotateX(-225deg); } .rotateX-270 { -webkit-transform: rotateX(-270deg); transform: rotateX(-270deg); } .rotateX-360 { -webkit-transform: rotateX(-360deg); transform: rotateX(-360deg); } .rotateY45 { -webkit-transform: rotateY(45deg); transform: rotateY(45deg); } .rotateY90 { -webkit-transform: rotateY(90deg); transform: rotateY(90deg); } .rotateY135 { -webkit-transform: rotateY(135deg); transform: rotateY(135deg); } .rotateY180 { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .rotateY225 { -webkit-transform: rotateY(225deg); transform: rotateY(225deg); } .rotateY270 { -webkit-transform: rotateY(270deg); transform: rotateY(270deg); } .rotateY360 { -webkit-transform: rotateY(360deg); transform: rotateY(360deg); } .rotateY-45 { -webkit-transform: rotateY(-45deg); transform: rotateY(-45deg); } .rotateY-90 { -webkit-transform: rotateY(-90deg); transform: rotateY(-90deg); } .rotateY-135 { -webkit-transform: rotateY(-135deg); transform: rotateY(-135deg); } .rotateY-180 { -webkit-transform: rotateY(-180deg); transform: rotateY(-180deg); } .rotateY-225 { -webkit-transform: rotateY(-225deg); transform: rotateY(-225deg); } .rotateY-270 { -webkit-transform: rotateY(-270deg); transform: rotateY(-270deg); } .rotateY-360 { -webkit-transform: rotateY(-360deg); transform: rotateY(-360deg); } html { font-size: 100%; } body { font-family: "Segoe UI", "Open Sans", sans-serif, serif; font-size: 0.875rem; line-height: 1.1; font-weight: 400; font-style: normal; } #font .light { font-weight: 300; font-style: normal; } #font .normal { font-weight: 400; font-style: normal; } #font .bold { font-style: normal; font-weight: 700; } #font .italic { font-style: italic; } .leader { font: 400 2.25rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } .sub-leader { font: 500 1.875rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } .header { font: 500 1.5rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } .sub-header { font: 500 1.125rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } .alt-header { font: 500 1rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } .sub-alt-header { font: 500 0.875rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } .minor-header { font: 500 0.75rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } h1 { font: 400 2.25rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } h2 { font: 500 1.875rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } h3 { font: 500 1.5rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } h4 { font: 500 1.125rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } h5 { font: 500 0.875rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } h6 { font: 500 0.75rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; } h1, h2, h3, h4, h5, h6 { margin: .625rem 0; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small { font-weight: 400; font-size: .7em; line-height: 1; color: #777; } .text-light { font-weight: 300; font-style: normal; } .text-normal { font-weight: 400; font-style: normal; } .text-bold { font-style: normal; font-weight: 700; } .text-italic { font-style: italic; } .uppercase { text-transform: uppercase; } .lowercase { text-transform: lowercase; } .capital { text-transform: capitalize; } .align-left { text-align: left; } .align-right { text-align: right; } .align-center { text-align: center; } .align-justify { text-align: justify; } .v-align-top { vertical-align: top; } .v-align-bottom { vertical-align: bottom; } .v-align-baseline { vertical-align: baseline; } .v-align-middle { vertical-align: middle; } .v-align-sub { vertical-align: sub; } .v-align-super { vertical-align: super; } .v-align-top-text { vertical-align: text-top; } .v-align-bottom-text { vertical-align: text-bottom; } .text-dashed { border: 0; border-bottom: 1px gray dashed; display: inline; } .indent-paragraph:first-letter { margin-left: 2.5rem; } .text-secondary { font-size: 0.75rem; } .text-accent, .text-enlarged { font-size: 1.1rem; } .text-default { font-size: 0.875rem; } .text-small { font-size: 0.625rem; } .text-light { font-weight: 300; } .text-ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } abbr { text-decoration: none; border-bottom: 1px #999999 dotted; cursor: help; display: inline; } address { font-weight: 400; font-style: normal; margin: .625rem 0; } blockquote { margin: .625rem 0; padding: 0 0 0 .625rem; border-left: 0.25rem #999999 solid; } blockquote small { color: #999999; } blockquote small:before { content: "\2014 \00A0"; } blockquote.place-right { border: 0; border-right: 4px #999999 solid; padding-right: .625rem; text-align: right; } blockquote.place-right small:before { content: ""; } blockquote.place-right small:after { content: " \00A0 \2014"; } .unstyled-list { padding-left: 0; list-style: none; } .unstyled-list li ul, .unstyled-list li ol { list-style: none; padding-left: 1.5625rem; } .inline-list { list-style: none; padding-left: 0; } .inline-list li { display: inline-block; margin-right: .625rem; } .inline-list li:last-child { margin-right: 0; } ul, ol { margin-left: .3125rem; } ul li, ol li { line-height: 1.25rem; } ul li ul, ol li ul, ul li ol, ol li ol { padding-left: 1.5625rem; } dl dt, dl dd { line-height: 1.25rem; } dl dt { font-style: normal; font-weight: 700; } dl dd { margin-left: .9375rem; } dl.horizontal dt { float: left; width: 10rem; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } dl.horizontal dd { margin-left: 11.25rem; } a { color: #2086bf; } a:visited { color: #2086bf; } hr { border: 0; height: 2px; background-color: #88b9e3; } hr.thin { height: 1px; } hr.fat { height: 3px; } .tag { display: inline-block; line-height: 1.1; font-size: 80%; padding: 1px 4px 2px; background-color: #eeeeee; border-radius: 2px; color: #1d1d1d; vertical-align: middle; } .tag.success { background-color: #60a917; color: #ffffff; } .tag.alert { background-color: #ce352c; color: #ffffff; } .tag.info { background-color: #1ba1e2; color: #ffffff; } .tag.warning { background-color: #fa6800; color: #ffffff; } a.tag { text-decoration: underline; cursor: pointer; } .container { width: 960px; margin: 0 auto; } .fixed-top, .fixed-bottom { position: fixed; left: 0; right: 0; z-index: 1030; } .fixed-top { top: 0; bottom: auto; } .fixed-bottom { top: auto; bottom: 0; } .pos-abs { position: absolute !important; } .pos-rel { position: relative !important; } .pos-fix { position: fixed !important; } .grid { display: block; position: relative; margin: .625rem 0; } .grid:before, .grid:after { display: table; content: ""; } .grid:after { clear: both; } .grid .row { width: 100%; display: block; margin: 0 0 2.12765% 0; } .grid .row:before, .grid .row:after { display: table; content: ""; } .grid .row:after { clear: both; } .grid .row:last-child { margin-bottom: 0; } .grid .row > .cell { display: block; float: left; width: 100%; min-height: 10px; margin: 0 0 0 2.12765%; } .grid .row > .cell:first-child { margin-left: 0; } .grid .row.cells2 > .cell { width: 48.936175%; } .grid .row.cells2 > .cell.colspan2 { width: 100%; } .grid .row.cells2 > .cell.offset1 { margin-left: 51.063825%; } .grid .row.cells2 > .cell.offset2 { margin-left: 102.12765%; } .grid .row.cells3 > .cell { width: 31.9149%; } .grid .row.cells3 > .cell.colspan2 { width: 65.95745%; } .grid .row.cells3 > .cell.colspan3 { width: 100%; } .grid .row.cells3 > .cell.offset1 { margin-left: 34.04255%; } .grid .row.cells3 > .cell.offset2 { margin-left: 68.0851%; } .grid .row.cells3 > .cell.offset3 { margin-left: 102.12765%; } .grid .row.cells4 > .cell { width: 23.4042625%; } .grid .row.cells4 > .cell.colspan2 { width: 48.936175%; } .grid .row.cells4 > .cell.colspan3 { width: 74.4680875%; } .grid .row.cells4 > .cell.colspan4 { width: 100%; } .grid .row.cells4 > .cell.offset1 { margin-left: 25.5319125%; } .grid .row.cells4 > .cell.offset2 { margin-left: 51.063825%; } .grid .row.cells4 > .cell.offset3 { margin-left: 76.5957375%; } .grid .row.cells4 > .cell.offset4 { margin-left: 102.12765%; } .grid .row.cells5 > .cell { width: 18.29788%; } .grid .row.cells5 > .cell.colspan2 { width: 38.72341%; } .grid .row.cells5 > .cell.colspan3 { width: 59.14894%; } .grid .row.cells5 > .cell.colspan4 { width: 79.57447%; } .grid .row.cells5 > .cell.colspan5 { width: 100%; } .grid .row.cells5 > .cell.offset1 { margin-left: 20.42553%; } .grid .row.cells5 > .cell.offset2 { margin-left: 40.85106%; } .grid .row.cells5 > .cell.offset3 { margin-left: 61.27659%; } .grid .row.cells5 > .cell.offset4 { margin-left: 81.70212%; } .grid .row.cells5 > .cell.offset5 { margin-left: 102.12765%; } .grid .row.cells6 > .cell { width: 14.893625%; } .grid .row.cells6 > .cell.colspan2 { width: 31.9149%; } .grid .row.cells6 > .cell.colspan3 { width: 48.936175%; } .grid .row.cells6 > .cell.colspan4 { width: 65.95745%; } .grid .row.cells6 > .cell.colspan5 { width: 82.978725%; } .grid .row.cells6 > .cell.colspan6 { width: 100%; } .grid .row.cells6 > .cell.offset1 { margin-left: 17.021275%; } .grid .row.cells6 > .cell.offset2 { margin-left: 34.04255%; } .grid .row.cells6 > .cell.offset3 { margin-left: 51.063825%; } .grid .row.cells6 > .cell.offset4 { margin-left: 68.0851%; } .grid .row.cells6 > .cell.offset5 { margin-left: 85.106375%; } .grid .row.cells6 > .cell.offset6 { margin-left: 102.12765%; } .grid .row.cells7 > .cell { width: 12.46201429%; } .grid .row.cells7 > .cell.colspan2 { width: 27.05167857%; } .grid .row.cells7 > .cell.colspan3 { width: 41.64134286%; } .grid .row.cells7 > .cell.colspan4 { width: 56.23100714%; } .grid .row.cells7 > .cell.colspan5 { width: 70.82067143%; } .grid .row.cells7 > .cell.colspan6 { width: 85.41033571%; } .grid .row.cells7 > .cell.colspan7 { width: 100%; } .grid .row.cells7 > .cell.offset1 { margin-left: 14.58966429%; } .grid .row.cells7 > .cell.offset2 { margin-left: 29.17932857%; } .grid .row.cells7 > .cell.offset3 { margin-left: 43.76899286%; } .grid .row.cells7 > .cell.offset4 { margin-left: 58.35865714%; } .grid .row.cells7 > .cell.offset5 { margin-left: 72.94832143%; } .grid .row.cells7 > .cell.offset6 { margin-left: 87.53798571%; } .grid .row.cells7 > .cell.offset7 { margin-left: 102.12765%; } .grid .row.cells8 > .cell { width: 10.63830625%; } .grid .row.cells8 > .cell.colspan2 { width: 23.4042625%; } .grid .row.cells8 > .cell.colspan3 { width: 36.17021875%; } .grid .row.cells8 > .cell.colspan4 { width: 48.936175%; } .grid .row.cells8 > .cell.colspan5 { width: 61.70213125%; } .grid .row.cells8 > .cell.colspan6 { width: 74.4680875%; } .grid .row.cells8 > .cell.colspan7 { width: 87.23404375%; } .grid .row.cells8 > .cell.colspan8 { width: 100%; } .grid .row.cells8 > .cell.offset1 { margin-left: 12.76595625%; } .grid .row.cells8 > .cell.offset2 { margin-left: 25.5319125%; } .grid .row.cells8 > .cell.offset3 { margin-left: 38.29786875%; } .grid .row.cells8 > .cell.offset4 { margin-left: 51.063825%; } .grid .row.cells8 > .cell.offset5 { margin-left: 63.82978125%; } .grid .row.cells8 > .cell.offset6 { margin-left: 76.5957375%; } .grid .row.cells8 > .cell.offset7 { margin-left: 89.36169375%; } .grid .row.cells8 > .cell.offset8 { margin-left: 102.12765%; } .grid .row.cells9 > .cell { width: 9.21986667%; } .grid .row.cells9 > .cell.colspan2 { width: 20.56738333%; } .grid .row.cells9 > .cell.colspan3 { width: 31.9149%; } .grid .row.cells9 > .cell.colspan4 { width: 43.26241667%; } .grid .row.cells9 > .cell.colspan5 { width: 54.60993333%; } .grid .row.cells9 > .cell.colspan6 { width: 65.95745%; } .grid .row.cells9 > .cell.colspan7 { width: 77.30496667%; } .grid .row.cells9 > .cell.colspan8 { width: 88.65248333%; } .grid .row.cells9 > .cell.colspan9 { width: 100%; } .grid .row.cells9 > .cell.offset1 { margin-left: 11.34751667%; } .grid .row.cells9 > .cell.offset2 { margin-left: 22.69503333%; } .grid .row.cells9 > .cell.offset3 { margin-left: 34.04255%; } .grid .row.cells9 > .cell.offset4 { margin-left: 45.39006667%; } .grid .row.cells9 > .cell.offset5 { margin-left: 56.73758333%; } .grid .row.cells9 > .cell.offset6 { margin-left: 68.0851%; } .grid .row.cells9 > .cell.offset7 { margin-left: 79.43261667%; } .grid .row.cells9 > .cell.offset8 { margin-left: 90.78013333%; } .grid .row.cells9 > .cell.offset9 { margin-left: 102.12765%; } .grid .row.cells10 > .cell { width: 8.085115%; } .grid .row.cells10 > .cell.colspan2 { width: 18.29788%; } .grid .row.cells10 > .cell.colspan3 { width: 28.510645%; } .grid .row.cells10 > .cell.colspan4 { width: 38.72341%; } .grid .row.cells10 > .cell.colspan5 { width: 48.936175%; } .grid .row.cells10 > .cell.colspan6 { width: 59.14894%; } .grid .row.cells10 > .cell.colspan7 { width: 69.361705%; } .grid .row.cells10 > .cell.colspan8 { width: 79.57447%; } .grid .row.cells10 > .cell.colspan9 { width: 89.787235%; } .grid .row.cells10 > .cell.colspan10 { width: 100%; } .grid .row.cells10 > .cell.offset1 { margin-left: 10.212765%; } .grid .row.cells10 > .cell.offset2 { margin-left: 20.42553%; } .grid .row.cells10 > .cell.offset3 { margin-left: 30.638295%; } .grid .row.cells10 > .cell.offset4 { margin-left: 40.85106%; } .grid .row.cells10 > .cell.offset5 { margin-left: 51.063825%; } .grid .row.cells10 > .cell.offset6 { margin-left: 61.27659%; } .grid .row.cells10 > .cell.offset7 { margin-left: 71.489355%; } .grid .row.cells10 > .cell.offset8 { margin-left: 81.70212%; } .grid .row.cells10 > .cell.offset9 { margin-left: 91.914885%; } .grid .row.cells10 > .cell.offset10 { margin-left: 102.12765%; } .grid .row.cells11 > .cell { width: 7.15668182%; } .grid .row.cells11 > .cell.colspan2 { width: 16.44101364%; } .grid .row.cells11 > .cell.colspan3 { width: 25.72534545%; } .grid .row.cells11 > .cell.colspan4 { width: 35.00967727%; } .grid .row.cells11 > .cell.colspan5 { width: 44.29400909%; } .grid .row.cells11 > .cell.colspan6 { width: 53.57834091%; } .grid .row.cells11 > .cell.colspan7 { width: 62.86267273%; } .grid .row.cells11 > .cell.colspan8 { width: 72.14700455%; } .grid .row.cells11 > .cell.colspan9 { width: 81.43133636%; } .grid .row.cells11 > .cell.colspan10 { width: 90.71566818%; } .grid .row.cells11 > .cell.colspan11 { width: 100%; } .grid .row.cells11 > .cell.offset1 { margin-left: 9.28433182%; } .grid .row.cells11 > .cell.offset2 { margin-left: 18.56866364%; } .grid .row.cells11 > .cell.offset3 { margin-left: 27.85299545%; } .grid .row.cells11 > .cell.offset4 { margin-left: 37.13732727%; } .grid .row.cells11 > .cell.offset5 { margin-left: 46.42165909%; } .grid .row.cells11 > .cell.offset6 { margin-left: 55.70599091%; } .grid .row.cells11 > .cell.offset7 { margin-left: 64.99032273%; } .grid .row.cells11 > .cell.offset8 { margin-left: 74.27465455%; } .grid .row.cells11 > .cell.offset9 { margin-left: 83.55898636%; } .grid .row.cells11 > .cell.offset10 { margin-left: 92.84331818%; } .grid .row.cells11 > .cell.offset11 { margin-left: 102.12765%; } .grid .row.cells12 > .cell { width: 6.3829875%; } .grid .row.cells12 > .cell.colspan2 { width: 14.893625%; } .grid .row.cells12 > .cell.colspan3 { width: 23.4042625%; } .grid .row.cells12 > .cell.colspan4 { width: 31.9149%; } .grid .row.cells12 > .cell.colspan5 { width: 40.4255375%; } .grid .row.cells12 > .cell.colspan6 { width: 48.936175%; } .grid .row.cells12 > .cell.colspan7 { width: 57.4468125%; } .grid .row.cells12 > .cell.colspan8 { width: 65.95745%; } .grid .row.cells12 > .cell.colspan9 { width: 74.4680875%; } .grid .row.cells12 > .cell.colspan10 { width: 82.978725%; } .grid .row.cells12 > .cell.colspan11 { width: 91.4893625%; } .grid .row.cells12 > .cell.colspan12 { width: 100%; } .grid .row.cells12 > .cell.offset1 { margin-left: 8.5106375%; } .grid .row.cells12 > .cell.offset2 { margin-left: 17.021275%; } .grid .row.cells12 > .cell.offset3 { margin-left: 25.5319125%; } .grid .row.cells12 > .cell.offset4 { margin-left: 34.04255%; } .grid .row.cells12 > .cell.offset5 { margin-left: 42.5531875%; } .grid .row.cells12 > .cell.offset6 { margin-left: 51.063825%; } .grid .row.cells12 > .cell.offset7 { margin-left: 59.5744625%; } .grid .row.cells12 > .cell.offset8 { margin-left: 68.0851%; } .grid .row.cells12 > .cell.offset9 { margin-left: 76.5957375%; } .grid .row.cells12 > .cell.offset10 { margin-left: 85.106375%; } .grid .row.cells12 > .cell.offset11 { margin-left: 93.6170125%; } .grid .row.cells12 > .cell.offset12 { margin-left: 102.12765%; } .grid .row:empty { display: none; } .grid.condensed { display: block; position: relative; margin: .625rem 0; } .grid.condensed:before, .grid.condensed:after { display: table; content: ""; } .grid.condensed:after { clear: both; } .grid.condensed .row { width: 100%; display: block; margin: 0 0 0 0; } .grid.condensed .row:before, .grid.condensed .row:after { display: table; content: ""; } .grid.condensed .row:after { clear: both; } .grid.condensed .row:last-child { margin-bottom: 0; } .grid.condensed .row > .cell { display: block; float: left; width: 100%; min-height: 10px; margin: 0 0 0 0; } .grid.condensed .row > .cell:first-child { margin-left: 0; } .grid.condensed .row.cells2 > .cell { width: 50%; } .grid.condensed .row.cells2 > .cell.colspan2 { width: 100%; } .grid.condensed .row.cells2 > .cell.offset1 { margin-left: 50%; } .grid.condensed .row.cells2 > .cell.offset2 { margin-left: 100%; } .grid.condensed .row.cells3 > .cell { width: 33.33333333%; } .grid.condensed .row.cells3 > .cell.colspan2 { width: 66.66666667%; } .grid.condensed .row.cells3 > .cell.colspan3 { width: 100%; } .grid.condensed .row.cells3 > .cell.offset1 { margin-left: 33.33333333%; } .grid.condensed .row.cells3 > .cell.offset2 { margin-left: 66.66666667%; } .grid.condensed .row.cells3 > .cell.offset3 { margin-left: 100%; } .grid.condensed .row.cells4 > .cell { width: 25%; } .grid.condensed .row.cells4 > .cell.colspan2 { width: 50%; } .grid.condensed .row.cells4 > .cell.colspan3 { width: 75%; } .grid.condensed .row.cells4 > .cell.colspan4 { width: 100%; } .grid.condensed .row.cells4 > .cell.offset1 { margin-left: 25%; } .grid.condensed .row.cells4 > .cell.offset2 { margin-left: 50%; } .grid.condensed .row.cells4 > .cell.offset3 { margin-left: 75%; } .grid.condensed .row.cells4 > .cell.offset4 { margin-left: 100%; } .grid.condensed .row.cells5 > .cell { width: 20%; } .grid.condensed .row.cells5 > .cell.colspan2 { width: 40%; } .grid.condensed .row.cells5 > .cell.colspan3 { width: 60%; } .grid.condensed .row.cells5 > .cell.colspan4 { width: 80%; } .grid.condensed .row.cells5 > .cell.colspan5 { width: 100%; } .grid.condensed .row.cells5 > .cell.offset1 { margin-left: 20%; } .grid.condensed .row.cells5 > .cell.offset2 { margin-left: 40%; } .grid.condensed .row.cells5 > .cell.offset3 { margin-left: 60%; } .grid.condensed .row.cells5 > .cell.offset4 { margin-left: 80%; } .grid.condensed .row.cells5 > .cell.offset5 { margin-left: 100%; } .grid.condensed .row.cells6 > .cell { width: 16.66666667%; } .grid.condensed .row.cells6 > .cell.colspan2 { width: 33.33333333%; } .grid.condensed .row.cells6 > .cell.colspan3 { width: 50%; } .grid.condensed .row.cells6 > .cell.colspan4 { width: 66.66666667%; } .grid.condensed .row.cells6 > .cell.colspan5 { width: 83.33333333%; } .grid.condensed .row.cells6 > .cell.colspan6 { width: 100%; } .grid.condensed .row.cells6 > .cell.offset1 { margin-left: 16.66666667%; } .grid.condensed .row.cells6 > .cell.offset2 { margin-left: 33.33333333%; } .grid.condensed .row.cells6 > .cell.offset3 { margin-left: 50%; } .grid.condensed .row.cells6 > .cell.offset4 { margin-left: 66.66666667%; } .grid.condensed .row.cells6 > .cell.offset5 { margin-left: 83.33333333%; } .grid.condensed .row.cells6 > .cell.offset6 { margin-left: 100%; } .grid.condensed .row.cells7 > .cell { width: 14.28571429%; } .grid.condensed .row.cells7 > .cell.colspan2 { width: 28.57142857%; } .grid.condensed .row.cells7 > .cell.colspan3 { width: 42.85714286%; } .grid.condensed .row.cells7 > .cell.colspan4 { width: 57.14285714%; } .grid.condensed .row.cells7 > .cell.colspan5 { width: 71.42857143%; } .grid.condensed .row.cells7 > .cell.colspan6 { width: 85.71428571%; } .grid.condensed .row.cells7 > .cell.colspan7 { width: 100%; } .grid.condensed .row.cells7 > .cell.offset1 { margin-left: 14.28571429%; } .grid.condensed .row.cells7 > .cell.offset2 { margin-left: 28.57142857%; } .grid.condensed .row.cells7 > .cell.offset3 { margin-left: 42.85714286%; } .grid.condensed .row.cells7 > .cell.offset4 { margin-left: 57.14285714%; } .grid.condensed .row.cells7 > .cell.offset5 { margin-left: 71.42857143%; } .grid.condensed .row.cells7 > .cell.offset6 { margin-left: 85.71428571%; } .grid.condensed .row.cells7 > .cell.offset7 { margin-left: 100%; } .grid.condensed .row.cells8 > .cell { width: 12.5%; } .grid.condensed .row.cells8 > .cell.colspan2 { width: 25%; } .grid.condensed .row.cells8 > .cell.colspan3 { width: 37.5%; } .grid.condensed .row.cells8 > .cell.colspan4 { width: 50%; } .grid.condensed .row.cells8 > .cell.colspan5 { width: 62.5%; } .grid.condensed .row.cells8 > .cell.colspan6 { width: 75%; } .grid.condensed .row.cells8 > .cell.colspan7 { width: 87.5%; } .grid.condensed .row.cells8 > .cell.colspan8 { width: 100%; } .grid.condensed .row.cells8 > .cell.offset1 { margin-left: 12.5%; } .grid.condensed .row.cells8 > .cell.offset2 { margin-left: 25%; } .grid.condensed .row.cells8 > .cell.offset3 { margin-left: 37.5%; } .grid.condensed .row.cells8 > .cell.offset4 { margin-left: 50%; } .grid.condensed .row.cells8 > .cell.offset5 { margin-left: 62.5%; } .grid.condensed .row.cells8 > .cell.offset6 { margin-left: 75%; } .grid.condensed .row.cells8 > .cell.offset7 { margin-left: 87.5%; } .grid.condensed .row.cells8 > .cell.offset8 { margin-left: 100%; } .grid.condensed .row.cells9 > .cell { width: 11.11111111%; } .grid.condensed .row.cells9 > .cell.colspan2 { width: 22.22222222%; } .grid.condensed .row.cells9 > .cell.colspan3 { width: 33.33333333%; } .grid.condensed .row.cells9 > .cell.colspan4 { width: 44.44444444%; } .grid.condensed .row.cells9 > .cell.colspan5 { width: 55.55555556%; } .grid.condensed .row.cells9 > .cell.colspan6 { width: 66.66666667%; } .grid.condensed .row.cells9 > .cell.colspan7 { width: 77.77777778%; } .grid.condensed .row.cells9 > .cell.colspan8 { width: 88.88888889%; } .grid.condensed .row.cells9 > .cell.colspan9 { width: 100%; } .grid.condensed .row.cells9 > .cell.offset1 { margin-left: 11.11111111%; } .grid.condensed .row.cells9 > .cell.offset2 { margin-left: 22.22222222%; } .grid.condensed .row.cells9 > .cell.offset3 { margin-left: 33.33333333%; } .grid.condensed .row.cells9 > .cell.offset4 { margin-left: 44.44444444%; } .grid.condensed .row.cells9 > .cell.offset5 { margin-left: 55.55555556%; } .grid.condensed .row.cells9 > .cell.offset6 { margin-left: 66.66666667%; } .grid.condensed .row.cells9 > .cell.offset7 { margin-left: 77.77777778%; } .grid.condensed .row.cells9 > .cell.offset8 { margin-left: 88.88888889%; } .grid.condensed .row.cells9 > .cell.offset9 { margin-left: 100%; } .grid.condensed .row.cells10 > .cell { width: 10%; } .grid.condensed .row.cells10 > .cell.colspan2 { width: 20%; } .grid.condensed .row.cells10 > .cell.colspan3 { width: 30%; } .grid.condensed .row.cells10 > .cell.colspan4 { width: 40%; } .grid.condensed .row.cells10 > .cell.colspan5 { width: 50%; } .grid.condensed .row.cells10 > .cell.colspan6 { width: 60%; } .grid.condensed .row.cells10 > .cell.colspan7 { width: 70%; } .grid.condensed .row.cells10 > .cell.colspan8 { width: 80%; } .grid.condensed .row.cells10 > .cell.colspan9 { width: 90%; } .grid.condensed .row.cells10 > .cell.colspan10 { width: 100%; } .grid.condensed .row.cells10 > .cell.offset1 { margin-left: 10%; } .grid.condensed .row.cells10 > .cell.offset2 { margin-left: 20%; } .grid.condensed .row.cells10 > .cell.offset3 { margin-left: 30%; } .grid.condensed .row.cells10 > .cell.offset4 { margin-left: 40%; } .grid.condensed .row.cells10 > .cell.offset5 { margin-left: 50%; } .grid.condensed .row.cells10 > .cell.offset6 { margin-left: 60%; } .grid.condensed .row.cells10 > .cell.offset7 { margin-left: 70%; } .grid.condensed .row.cells10 > .cell.offset8 { margin-left: 80%; } .grid.condensed .row.cells10 > .cell.offset9 { margin-left: 90%; } .grid.condensed .row.cells10 > .cell.offset10 { margin-left: 100%; } .grid.condensed .row.cells11 > .cell { width: 9.09090909%; } .grid.condensed .row.cells11 > .cell.colspan2 { width: 18.18181818%; } .grid.condensed .row.cells11 > .cell.colspan3 { width: 27.27272727%; } .grid.condensed .row.cells11 > .cell.colspan4 { width: 36.36363636%; } .grid.condensed .row.cells11 > .cell.colspan5 { width: 45.45454545%; } .grid.condensed .row.cells11 > .cell.colspan6 { width: 54.54545455%; } .grid.condensed .row.cells11 > .cell.colspan7 { width: 63.63636364%; } .grid.condensed .row.cells11 > .cell.colspan8 { width: 72.72727273%; } .grid.condensed .row.cells11 > .cell.colspan9 { width: 81.81818182%; } .grid.condensed .row.cells11 > .cell.colspan10 { width: 90.90909091%; } .grid.condensed .row.cells11 > .cell.colspan11 { width: 100%; } .grid.condensed .row.cells11 > .cell.offset1 { margin-left: 9.09090909%; } .grid.condensed .row.cells11 > .cell.offset2 { margin-left: 18.18181818%; } .grid.condensed .row.cells11 > .cell.offset3 { margin-left: 27.27272727%; } .grid.condensed .row.cells11 > .cell.offset4 { margin-left: 36.36363636%; } .grid.condensed .row.cells11 > .cell.offset5 { margin-left: 45.45454545%; } .grid.condensed .row.cells11 > .cell.offset6 { margin-left: 54.54545455%; } .grid.condensed .row.cells11 > .cell.offset7 { margin-left: 63.63636364%; } .grid.condensed .row.cells11 > .cell.offset8 { margin-left: 72.72727273%; } .grid.condensed .row.cells11 > .cell.offset9 { margin-left: 81.81818182%; } .grid.condensed .row.cells11 > .cell.offset10 { margin-left: 90.90909091%; } .grid.condensed .row.cells11 > .cell.offset11 { margin-left: 100%; } .grid.condensed .row.cells12 > .cell { width: 8.33333333%; } .grid.condensed .row.cells12 > .cell.colspan2 { width: 16.66666667%; } .grid.condensed .row.cells12 > .cell.colspan3 { width: 25%; } .grid.condensed .row.cells12 > .cell.colspan4 { width: 33.33333333%; } .grid.condensed .row.cells12 > .cell.colspan5 { width: 41.66666667%; } .grid.condensed .row.cells12 > .cell.colspan6 { width: 50%; } .grid.condensed .row.cells12 > .cell.colspan7 { width: 58.33333333%; } .grid.condensed .row.cells12 > .cell.colspan8 { width: 66.66666667%; } .grid.condensed .row.cells12 > .cell.colspan9 { width: 75%; } .grid.condensed .row.cells12 > .cell.colspan10 { width: 83.33333333%; } .grid.condensed .row.cells12 > .cell.colspan11 { width: 91.66666667%; } .grid.condensed .row.cells12 > .cell.colspan12 { width: 100%; } .grid.condensed .row.cells12 > .cell.offset1 { margin-left: 8.33333333%; } .grid.condensed .row.cells12 > .cell.offset2 { margin-left: 16.66666667%; } .grid.condensed .row.cells12 > .cell.offset3 { margin-left: 25%; } .grid.condensed .row.cells12 > .cell.offset4 { margin-left: 33.33333333%; } .grid.condensed .row.cells12 > .cell.offset5 { margin-left: 41.66666667%; } .grid.condensed .row.cells12 > .cell.offset6 { margin-left: 50%; } .grid.condensed .row.cells12 > .cell.offset7 { margin-left: 58.33333333%; } .grid.condensed .row.cells12 > .cell.offset8 { margin-left: 66.66666667%; } .grid.condensed .row.cells12 > .cell.offset9 { margin-left: 75%; } .grid.condensed .row.cells12 > .cell.offset10 { margin-left: 83.33333333%; } .grid.condensed .row.cells12 > .cell.offset11 { margin-left: 91.66666667%; } .grid.condensed .row.cells12 > .cell.offset12 { margin-left: 100%; } .flex-grid { display: block; width: 100%; } .flex-grid .row { display: -webkit-flex; display: flex; } .flex-grid .row .cell { -webkit-flex: 0 0 8.33333333%; flex: 0 0 8.33333333%; } .flex-grid .row.cell-auto-size .cell { -webkit-flex: 1 1 auto; flex: 1 1 auto; } .flex-grid .row .cell.colspan2 { -webkit-flex: 0 0 16.66666666%; flex: 0 0 16.66666666%; } .flex-grid .row .cell.colspan3 { -webkit-flex: 0 0 24.99999999%; flex: 0 0 24.99999999%; } .flex-grid .row .cell.colspan4 { -webkit-flex: 0 0 33.33333332%; flex: 0 0 33.33333332%; } .flex-grid .row .cell.colspan5 { -webkit-flex: 0 0 41.66666665%; flex: 0 0 41.66666665%; } .flex-grid .row .cell.colspan6 { -webkit-flex: 0 0 49.99999998%; flex: 0 0 49.99999998%; } .flex-grid .row .cell.colspan7 { -webkit-flex: 0 0 58.33333331%; flex: 0 0 58.33333331%; } .flex-grid .row .cell.colspan8 { -webkit-flex: 0 0 66.66666664%; flex: 0 0 66.66666664%; } .flex-grid .row .cell.colspan9 { -webkit-flex: 0 0 74.99999997%; flex: 0 0 74.99999997%; } .flex-grid .row .cell.colspan10 { -webkit-flex: 0 0 83.3333333%; flex: 0 0 83.3333333%; } .flex-grid .row .cell.colspan11 { -webkit-flex: 0 0 91.66666663%; flex: 0 0 91.66666663%; } .flex-grid .row .cell.colspan12 { -webkit-flex: 0 0 99.99999996%; flex: 0 0 99.99999996%; } .flex-grid .row .cell.size1 { -webkit-flex: 0 0 8.33333333%; flex: 0 0 8.33333333%; } .flex-grid .row .cell.size2 { -webkit-flex: 0 0 16.66666666%; flex: 0 0 16.66666666%; } .flex-grid .row .cell.size3 { -webkit-flex: 0 0 24.99999999%; flex: 0 0 24.99999999%; } .flex-grid .row .cell.size4 { -webkit-flex: 0 0 33.33333332%; flex: 0 0 33.33333332%; } .flex-grid .row .cell.size5 { -webkit-flex: 0 0 41.66666665%; flex: 0 0 41.66666665%; } .flex-grid .row .cell.size6 { -webkit-flex: 0 0 49.99999998%; flex: 0 0 49.99999998%; } .flex-grid .row .cell.size7 { -webkit-flex: 0 0 58.33333331%; flex: 0 0 58.33333331%; } .flex-grid .row .cell.size8 { -webkit-flex: 0 0 66.66666664%; flex: 0 0 66.66666664%; } .flex-grid .row .cell.size9 { -webkit-flex: 0 0 74.99999997%; flex: 0 0 74.99999997%; } .flex-grid .row .cell.size10 { -webkit-flex: 0 0 83.3333333%; flex: 0 0 83.3333333%; } .flex-grid .row .cell.size11 { -webkit-flex: 0 0 91.66666663%; flex: 0 0 91.66666663%; } .flex-grid .row .cell.size12 { -webkit-flex: 0 0 99.99999996%; flex: 0 0 99.99999996%; } .flex-grid .row .cell.size-p10 { -webkit-flex: 0 0 10%; flex: 0 0 10%; } .flex-grid .row .cell.size-p20 { -webkit-flex: 0 0 20%; flex: 0 0 20%; } .flex-grid .row .cell.size-p30 { -webkit-flex: 0 0 30%; flex: 0 0 30%; } .flex-grid .row .cell.size-p40 { -webkit-flex: 0 0 40%; flex: 0 0 40%; } .flex-grid .row .cell.size-p50 { -webkit-flex: 0 0 50%; flex: 0 0 50%; } .flex-grid .row .cell.size-p60 { -webkit-flex: 0 0 60%; flex: 0 0 60%; } .flex-grid .row .cell.size-p70 { -webkit-flex: 0 0 70%; flex: 0 0 70%; } .flex-grid .row .cell.size-p80 { -webkit-flex: 0 0 80%; flex: 0 0 80%; } .flex-grid .row .cell.size-p90 { -webkit-flex: 0 0 90%; flex: 0 0 90%; } .flex-grid .row .cell.size-p100 { -webkit-flex: 0 0 100%; flex: 0 0 100%; } .flex-grid .row .cell.size-x100 { -webkit-flex: 0 0 100px; flex: 0 0 100px; } .flex-grid .row .cell.size-x200 { -webkit-flex: 0 0 200px; flex: 0 0 200px; } .flex-grid .row .cell.size-x300 { -webkit-flex: 0 0 300px; flex: 0 0 300px; } .flex-grid .row .cell.size-x400 { -webkit-flex: 0 0 400px; flex: 0 0 400px; } .flex-grid .row .cell.size-x500 { -webkit-flex: 0 0 500px; flex: 0 0 500px; } .flex-grid .row .cell.size-x600 { -webkit-flex: 0 0 600px; flex: 0 0 600px; } .flex-grid .row .cell.size-x700 { -webkit-flex: 0 0 700px; flex: 0 0 700px; } .flex-grid .row .cell.size-x800 { -webkit-flex: 0 0 800px; flex: 0 0 800px; } .flex-grid .row .cell.size-x900 { -webkit-flex: 0 0 900px; flex: 0 0 900px; } .flex-grid .row .cell.size-x1000 { -webkit-flex: 0 0 1000px; flex: 0 0 1000px; } .flex-grid .row .cell.auto-size { -webkit-flex: 1 auto; flex: 1 auto; } .table { width: 100%; margin: .625rem 0; } .table th, .table td { padding: 0.625rem; } .table thead { border-bottom: 4px solid #999999; } .table thead th, .table thead td { cursor: default; color: #52677a; border-color: transparent; text-align: left; font-style: normal; font-weight: 700; line-height: 100%; } .table tfoot { border-top: 4px solid #999999; } .table tfoot th, .table tfoot td { cursor: default; color: #52677a; border-color: transparent; text-align: left; font-style: normal; font-weight: 700; line-height: 100%; } .table tbody td { padding: 0.625rem 0.85rem; } .table .sortable-column { position: relative; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .table .sortable-column:after { position: absolute; content: ""; width: 1rem; height: 1rem; left: 100%; margin-left: -20px; top: 50%; margin-top: -0.5rem; color: inherit; font-size: 1rem; line-height: 1; } .table .sortable-column.sort-asc, .table .sortable-column.sort-desc { background-color: #eeeeee; } .table .sortable-column.sort-asc:after, .table .sortable-column.sort-desc:after { color: #1d1d1d; } .table .sortable-column.sort-asc:after { content: "\2191"; } .table .sortable-column.sort-desc:after { content: "\2193"; } .table.sortable-markers-on-left .sortable-column { padding-left: 30px; } .table.sortable-markers-on-left .sortable-column:before, .table.sortable-markers-on-left .sortable-column:after { left: 0; margin-left: 10px; } .table tr.selected td { background-color: rgba(28, 183, 236, 0.1); } .table td.selected { background-color: rgba(28, 183, 236, 0.3); } .table.striped tbody tr:nth-child(odd) { background: #eeeeee; } .table.hovered tbody tr:hover { background-color: rgba(28, 183, 236, 0.1); } .table.cell-hovered tbody td:hover { background-color: rgba(28, 183, 236, 0.3); } .table.border { border: 1px #999999 solid; } .table.bordered th, .table.bordered td { border: 1px #999999 solid; } .table.bordered thead tr:first-child th, .table.bordered thead tr:first-child td { border-top: none; } .table.bordered thead tr:first-child th:first-child, .table.bordered thead tr:first-child td:first-child { border-left: none; } .table.bordered thead tr:first-child th:last-child, .table.bordered thead tr:first-child td:last-child { border-right: none; } .table.bordered tbody tr:first-child td { border-top: none; } .table.bordered tbody tr td:first-child { border-left: none; } .table.bordered tbody tr td:last-child { border-right: none; } .table.bordered tbody tr:last-child td { border-bottom: none; } .table .condensed th, .table .condensed td { padding: .3125rem; } .table .super-condensed th, .table .super-condensed td { padding: .125rem; } .table tbody tr.error { background-color: #ce352c; color: #ffffff; } .table tbody tr.error:hover { background-color: #da5a53; } .table tbody tr.warning { background-color: #fa6800; color: #ffffff; } .table tbody tr.warning:hover { background-color: #ffc194; } .table tbody tr.success { background-color: #60a917; color: #ffffff; } .table tbody tr.success:hover { background-color: #7ad61d; } .table tbody tr.info { background-color: #1ba1e2; color: #ffffff; } .table tbody tr.info:hover { background-color: #59cde2; } .app-bar { display: block; width: 100%; position: relative; background-color: #0072c6; color: #ffffff; height: 3.125rem; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .app-bar:before, .app-bar:after { display: table; content: ""; } .app-bar:after { clear: both; } .app-bar .app-bar-element { line-height: 3.125rem; padding: 0 .625rem; font-size: 1rem; cursor: pointer; color: inherit; display: block; float: left; position: relative; vertical-align: middle; height: 3.125rem; } .app-bar .app-bar-element:hover, .app-bar .app-bar-element:active { background-color: #005696; } .app-bar .app-bar-element.branding { padding-left: 1rem; padding-right: 1rem; } .app-bar .app-bar-element .d-menu { top: 100%; border: 2px solid #005696; } .app-bar .app-bar-element .d-menu li:not(.disabled):hover { background-color: #eee; } .app-bar .app-bar-element .d-menu li:not(.disabled):hover > a { color: #1d1d1d; } .app-bar .app-bar-element .d-menu .d-menu { top: -0.625rem; left: 100%; } .app-bar .app-bar-element .d-menu .dropdown-toggle:before { border-color: #1d1d1d; } .app-bar .app-bar-divider { display: block; float: left; line-height: 3.125rem; height: 3.125rem; width: 1px; background-color: #4c9cd7; padding: 0; } .app-bar .dropdown-toggle:before { border-color: #ffffff; } .app-bar .app-bar-menu { display: block; float: left; margin: 0; padding: 0; } .app-bar .app-bar-menu > li, .app-bar .app-bar-menu > li > a { line-height: 3.125rem; padding: 0 .625rem; font-size: 1rem; cursor: pointer; color: inherit; display: block; float: left; position: relative; vertical-align: middle; height: 3.125rem; } .app-bar .app-bar-menu > li:hover, .app-bar .app-bar-menu > li > a:hover, .app-bar .app-bar-menu > li:active, .app-bar .app-bar-menu > li > a:active { background-color: #005696; } .app-bar .app-bar-menu > li.branding, .app-bar .app-bar-menu > li > a.branding { padding-left: 1rem; padding-right: 1rem; } .app-bar .app-bar-menu > li .d-menu, .app-bar .app-bar-menu > li > a .d-menu { top: 100%; border: 2px solid #005696; } .app-bar .app-bar-menu > li .d-menu li:not(.disabled):hover, .app-bar .app-bar-menu > li > a .d-menu li:not(.disabled):hover { background-color: #eee; } .app-bar .app-bar-menu > li .d-menu li:not(.disabled):hover > a, .app-bar .app-bar-menu > li > a .d-menu li:not(.disabled):hover > a { color: #1d1d1d; } .app-bar .app-bar-menu > li .d-menu .d-menu, .app-bar .app-bar-menu > li > a .d-menu .d-menu { top: -0.625rem; left: 100%; } .app-bar .app-bar-menu > li .d-menu .dropdown-toggle:before, .app-bar .app-bar-menu > li > a .d-menu .dropdown-toggle:before { border-color: #1d1d1d; } .app-bar .app-bar-menu > li:before, .app-bar .app-bar-menu > li > a:before, .app-bar .app-bar-menu > li:after, .app-bar .app-bar-menu > li > a:after { display: table; content: ""; } .app-bar .app-bar-menu > li:after, .app-bar .app-bar-menu > li > a:after { clear: both; } .app-bar .app-bar-menu > li > .input-control.text, .app-bar .app-bar-menu > li > a > .input-control.text, .app-bar .app-bar-menu > li > .input-control.password, .app-bar .app-bar-menu > li > a > .input-control.password { margin-top: .55rem; font-size: .875rem; line-height: 1.8rem; display: block; } .app-bar .app-bar-menu > li > .input-control.text input, .app-bar .app-bar-menu > li > a > .input-control.text input, .app-bar .app-bar-menu > li > .input-control.password input, .app-bar .app-bar-menu > li > a > .input-control.password input { border-color: transparent; } .app-bar .app-bar-menu > li > .button, .app-bar .app-bar-menu > li > a > .button { margin-top: -0.15rem; } .app-bar .app-bar-menu > li > .image-button, .app-bar .app-bar-menu > li > a > .image-button { margin: 0; background-color: transparent; color: #ffffff; font-size: inherit; } .app-bar .app-bar-menu > li > .image-button img.icon, .app-bar .app-bar-menu > li > a > .image-button img.icon { padding: 0; } .app-bar .app-bar-menu > li .dropdown-toggle:before, .app-bar .app-bar-menu > li > a .dropdown-toggle:before { transition: all 0.3s ease; } .app-bar .app-bar-menu > li .dropdown-toggle.active-toggle:before, .app-bar .app-bar-menu > li > a .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .app-bar .app-bar-menu > li .d-menu .dropdown-toggle.active-toggle:before, .app-bar .app-bar-menu > li > a .d-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .app-bar .app-bar-menu > li.dropdown-toggle, .app-bar .app-bar-menu > li > a.dropdown-toggle { padding-right: 1.5rem; } .app-bar .app-bar-menu > li.dropdown-toggle:before, .app-bar .app-bar-menu > li > a.dropdown-toggle:before { border-color: #ffffff; display: block; } .app-bar .app-bar-menu > li { padding: 0; } .app-bar .app-bar-menu > li .d-menu { top: 100%; border: 2px solid #005696; } .app-bar .app-bar-menu > li .d-menu li:not(.disabled):hover { background-color: #eee; } .app-bar .app-bar-menu > li .d-menu li:not(.disabled):hover > a { color: #1d1d1d; } .app-bar .app-bar-menu > li .d-menu .d-menu { top: -0.625rem; left: 100%; } .app-bar .app-bar-menu > li .d-menu .dropdown-toggle:before { border-color: #1d1d1d; } .app-bar .app-bar-menu.small-dropdown .d-menu li > a { font-size: .8em; padding: .325rem 1.2rem .325rem 1.8rem; } .app-bar .app-bar-pullbutton { float: right; } .app-bar .app-bar-pullbutton.automatic { display: none; float: right; color: #fff; cursor: pointer; font: 2rem sans-serif; height: 3.125rem; width: 3.125rem; line-height: 1.25rem; vertical-align: middle; text-align: center; margin: 0; } .app-bar .app-bar-pullbutton.automatic:before { content: "\2261"; position: absolute; top: .875rem; left: .875rem; } .app-bar .app-bar-drop-container { position: absolute; top: 100%; left: 0; margin-top: 10px; border: 2px solid #005696; background: #ffffff; } .app-bar .app-bar-drop-container:before { content: ''; position: absolute; background-color: #ffffff; width: 10px; height: 10px; border: 2px #005696 solid; top: 1px; left: 1rem; margin: -8px 0; border-bottom: none; border-right: none; -webkit-transform: rotate(45deg); transform: rotate(45deg); } .app-bar .app-bar-drop-container:before { z-index: 0; } .app-bar .app-bar-drop-container.place-right { right: 0; left: auto; } .app-bar .app-bar-drop-container.place-right:before { left: auto; right: 1rem; } .app-bar .app-bar-element:before, .app-bar .app-bar-element:after { display: table; content: ""; } .app-bar .app-bar-element:after { clear: both; } .app-bar .app-bar-element > .input-control.text, .app-bar .app-bar-element > .input-control.password { margin-top: .55rem; font-size: .875rem; line-height: 1.8rem; display: block; } .app-bar .app-bar-element > .input-control.text input, .app-bar .app-bar-element > .input-control.password input { border-color: transparent; } .app-bar .app-bar-element > .button { margin-top: -0.15rem; } .app-bar .app-bar-element > .image-button { margin: 0; background-color: transparent; color: #ffffff; font-size: inherit; } .app-bar .app-bar-element > .image-button img.icon { padding: 0; } .app-bar.drop-up .app-bar-drop-container { top: auto; bottom: 3.75rem; } .app-bar.drop-up .app-bar-drop-container:before { top: auto; bottom: 1px; -webkit-transform: rotate(225deg); transform: rotate(225deg); } .app-bar.drop-up .app-bar-menu > li > .d-menu { top: auto; bottom: 3.125rem; } .app-bar.drop-up .app-bar-element > .d-menu { top: auto; bottom: 3.125rem; } .app-bar.drop-up .app-bar-menu li .d-menu .d-menu, .app-bar.drop-up .app-bar-element .d-menu .d-menu { top: auto ; bottom: 0; } .app-bar .app-bar-element .dropdown-toggle:before, .app-bar .app-bar-menu .dropdown-toggle:before { transition: all 0.3s ease; } .app-bar .app-bar-element .dropdown-toggle.active-toggle:before, .app-bar .app-bar-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .app-bar .app-bar-element .d-menu .dropdown-toggle.active-toggle:before, .app-bar .app-bar-menu .d-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .app-bar.fixed-top, .app-bar.fixed-bottom { z-index: 1030; position: fixed; } .app-bar.fixed-top { top: 0; } .app-bar.fixed-bottom { bottom: 0; } .app-bar { overflow: visible; height: auto; } .app-bar .app-bar-pullbutton { line-height: 3.125rem; padding: 0 .625rem; font-size: 1rem; cursor: pointer; color: inherit; display: block; float: left; position: relative; vertical-align: middle; height: 3.125rem; float: right; } .app-bar .app-bar-pullbutton:hover, .app-bar .app-bar-pullbutton:active { background-color: #005696; } .app-bar .app-bar-pullbutton.branding { padding-left: 1rem; padding-right: 1rem; } .app-bar .app-bar-pullbutton .d-menu { top: 100%; border: 2px solid #005696; } .app-bar .app-bar-pullbutton .d-menu li:not(.disabled):hover { background-color: #eee; } .app-bar .app-bar-pullbutton .d-menu li:not(.disabled):hover > a { color: #1d1d1d; } .app-bar .app-bar-pullbutton .d-menu .d-menu { top: -0.625rem; left: 100%; } .app-bar .app-bar-pullbutton .d-menu .dropdown-toggle:before { border-color: #1d1d1d; } .app-bar .app-bar-pullbutton:before, .app-bar .app-bar-pullbutton:after { display: table; content: ""; } .app-bar .app-bar-pullbutton:after { clear: both; } .app-bar .app-bar-pullbutton > .input-control.text, .app-bar .app-bar-pullbutton > .input-control.password { margin-top: .55rem; font-size: .875rem; line-height: 1.8rem; display: block; } .app-bar .app-bar-pullbutton > .input-control.text input, .app-bar .app-bar-pullbutton > .input-control.password input { border-color: transparent; } .app-bar .app-bar-pullbutton > .button { margin-top: -0.15rem; } .app-bar .app-bar-pullbutton > .image-button { margin: 0; background-color: transparent; color: #ffffff; font-size: inherit; } .app-bar .app-bar-pullbutton > .image-button img.icon { padding: 0; } .app-bar .app-bar-pullbutton .dropdown-toggle:before { transition: all 0.3s ease; } .app-bar .app-bar-pullbutton .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .app-bar .app-bar-pullbutton .d-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .app-bar .app-bar-pullbutton { display: none; } .app-bar .app-bar-pullmenu { display: none; } .app-bar .app-bar-pullmenu.flexstyle-sidebar2 { position: absolute; right: 0; z-index: 1000; } .app-bar .app-bar-pullmenu.flexstyle-sidebar2 .app-bar-pullmenubar { float: right; } .app-bar .app-bar-pullmenu.flexstyle-sidebar2 .dropdown-toggle:before { border-color: #323232; } .app-bar .app-bar-pullmenu.flexstyle-sidebar2 .sidebar2 li:hover { background-color: #0072c6; } .app-bar .app-bar-pullmenu.flexstyle-sidebar2 .sidebar2 li .input-control { text-align: center; display: block; margin: 0.325rem; } .app-bar .app-bar-pullmenu.flexstyle-sidebar2 .sidebar2 li:hover a { background-color: #0072c6; } .app-bar .app-bar-pullmenu.flexstyle-sidebar2 .sidebar2 li li:not(:hover) { color: #1d1d1d; } .app-bar .app-bar-pullmenu.flexstyle-sidebar2 .sidebar2 li li:not(:hover) a { background-color: #ffffff; } .app-bar .app-bar-pullmenu .app-bar-menu { width: 100%; border-top: 1px solid #4c9cd7; position: relative; float: none; display: none; z-index: 1000 1; background-color: #005696; clear: both; } .app-bar .app-bar-pullmenu .app-bar-menu > li, .app-bar .app-bar-pullmenu .app-bar-menu > li > a { float: none; } .app-bar .app-bar-pullmenu .app-bar-menu > li { height: auto; } .app-bar .app-bar-pullmenu .app-bar-menu li:hover { background-color: #0072c6; } .app-bar .app-bar-pullmenu .app-bar-menu li:hover a { background-color: #0072c6; color: #ffffff; } .app-bar .app-bar-pullmenu .app-bar-menu .d-menu { border: 0; border-top: 1px solid #4c9cd7; clear: both; float: none; width: 100%; position: relative; left: 0; box-shadow: none; max-width: 100%; background-color: #005696; } .app-bar .app-bar-pullmenu .app-bar-menu .d-menu li { width: 100%; background-color: inherit; } .app-bar .app-bar-pullmenu .app-bar-menu .d-menu li a { padding-left: 20px; padding-right: 0; background-color: inherit; width: 100%; color: #ffffff; } .app-bar .app-bar-pullmenu .app-bar-menu .d-menu .dropdown-toggle:before { border-color: #ffffff; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .app-bar .app-bar-pullmenu .app-bar-menu .d-menu .divider { background-color: #4c9cd7; } .app-bar .app-bar-pullmenu .app-bar-menu .d-menu .d-menu { top: 0; left: 0; } .app-bar > .container { padding: 0 !important; } .h-menu li:hover > .dropdown-toggle:before, .v-menu li:hover > .dropdown-toggle:before, .d-menu li:hover > .dropdown-toggle:before, .m-menu li:hover > .dropdown-toggle:before { border-color: #ffffff; } .h-menu { text-align: left; display: block; height: auto; list-style: none inside none; margin: 0; padding: 0; background-color: #ffffff; border-collapse: separate; } .h-menu:before, .h-menu:after { display: table; content: ""; } .h-menu:after { clear: both; } .h-menu > li { display: block; float: left; position: relative; } .h-menu > li:hover { background-color: #59cde2; color: #ffffff; } .h-menu > li:hover > a { color: #ffffff; } .h-menu > li.no-hovered { background-color: inherit; color: inherit; } .h-menu > li:first-child { margin-left: 0; } .h-menu > li > a { display: block; float: left; position: relative; font-weight: normal; color: #727272; font-size: .875rem; outline: none; text-decoration: none; padding: 1.125rem 1.625rem; border: none; } .h-menu > li > a:hover { background-color: #59cde2; color: #ffffff; } .h-menu > li .input-control, .h-menu > li .button { margin-top: 10px; } .h-menu > li.active a { background-color: #59cde2; color: #ffffff; } .h-menu > li > .d-menu { left: 0; top: 100%; } .h-menu .dropdown-toggle:before { transition: all 0.3s ease; } .h-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .f-menu { text-align: left; display: block; height: auto; list-style: none inside none; margin: 0; padding: 0; background-color: #ffffff; border-collapse: separate; display: -webkit-flex; display: flex; } .f-menu li:hover > .dropdown-toggle:before { border-color: #ffffff; } .f-menu:before, .f-menu:after { display: table; content: ""; } .f-menu:after { clear: both; } .f-menu > li { display: block; float: left; position: relative; } .f-menu > li:hover { background-color: #59cde2; color: #ffffff; } .f-menu > li:hover > a { color: #ffffff; } .f-menu > li.no-hovered { background-color: inherit; color: inherit; } .f-menu > li:first-child { margin-left: 0; } .f-menu > li > a { display: block; float: left; position: relative; font-weight: normal; color: #727272; font-size: .875rem; outline: none; text-decoration: none; padding: 1.125rem 1.625rem; border: none; } .f-menu > li > a:hover { background-color: #59cde2; color: #ffffff; } .f-menu > li .input-control, .f-menu > li .button { margin-top: 10px; } .f-menu > li.active a { background-color: #59cde2; color: #ffffff; } .f-menu > li > .d-menu { left: 0; top: 100%; } .f-menu .dropdown-toggle:before { transition: all 0.3s ease; } .f-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .f-menu > li > .d-menu { left: auto; } .f-menu > li { text-align: center; -webkit-flex: 1 auto; flex: 1 auto; } .f-menu > li a { text-align: center; width: 100%; } .f-menu > li .d-menu { width: 100%; max-width: none; } .f-menu > li .d-menu li { width: 100%; } .f-menu > li .d-menu li a { width: 100%; min-width: 0; padding: .75rem 0; } .f-menu .d-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .v-menu { text-align: left; background: #ffffff; max-width: 15.625rem; list-style: none inside none; margin: 0; padding: 0; position: relative; width: auto; float: left; } .v-menu li { display: block; float: none; position: relative; } .v-menu li:before, .v-menu li:after { display: table; content: ""; } .v-menu li:after { clear: both; } .v-menu li a { color: #727272; font-size: .875rem; display: block; float: none; padding: .75rem 2rem .75rem 2.5rem; text-decoration: none; vertical-align: middle; position: relative; white-space: nowrap; min-width: 12.5rem; border: none; } .v-menu li a img, .v-menu li a .icon { position: absolute; left: .875rem; top: 50%; margin-top: -0.5625rem; color: #262626; max-height: 1.125rem; font-size: 1.125rem; display: inline-block; margin-right: .3125rem; vertical-align: middle; text-align: center; } .v-menu li.active { border-left: 2px solid; border-color: #1ba1e2; } .v-menu li.active > a { background-color: #59cde2; color: #ffffff; font-weight: bold; } .v-menu li:hover { text-decoration: none; background: #59cde2; } .v-menu li:hover > a, .v-menu li:hover .icon { color: #ffffff; } .v-menu .divider { padding: 0; height: 1px; margin: 0 1px; overflow: hidden; background-color: #f2f2f2; } .v-menu .divider:hover { background-color: #f2f2f2; } .v-menu.subdown .d-menu { min-width: 0; position: relative; width: 100%; left: 0 ; right: 0 ; top: 100%; box-shadow: none; } .v-menu .item-block { display: block; padding: .625rem; background-color: #eeeeee; } .v-menu .d-menu { left: 100%; top: -10%; } .v-menu .menu-title { background-color: #f6f7f8; font-size: 12px; line-height: 14px; padding: 4px 8px; border: 0; color: #646464; } .v-menu .menu-title:first-child { margin: 0; border-top-width: 0; } .v-menu .menu-title:first-child:hover { border-top-width: 0; } .v-menu .menu-title:hover { background-color: #f6f7f8; cursor: default; border: 0; } .v-menu .dropdown-toggle:before { -webkit-transform: rotate(-135deg); transform: rotate(-135deg); margin-top: -2px; } .v-menu .dropdown-toggle:before { transition: all 0.3s ease; } .v-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); transition: all 0.3s ease; } .v-menu.subdown .dropdown-toggle:before { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); margin-left: -1.25rem; } .v-menu.subdown .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); } .v-menu li.disabled a { color: #eeeeee; } .v-menu li.disabled:hover { background-color: inherit; cursor: default; border: 0; } .v-menu li.disabled:hover a { cursor: inherit; } .d-menu { text-align: left; background: #ffffff; max-width: 15.625rem; list-style: none inside none; margin: 0; padding: 0; position: relative; width: auto; float: left; border-collapse: separate; position: absolute; display: none; z-index: 1000; left: 0; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2); } .d-menu li:hover > .dropdown-toggle:before { border-color: #ffffff; } .d-menu li { display: block; float: none; position: relative; } .d-menu li:before, .d-menu li:after { display: table; content: ""; } .d-menu li:after { clear: both; } .d-menu li a { color: #727272; font-size: .875rem; display: block; float: none; padding: .75rem 2rem .75rem 2.5rem; text-decoration: none; vertical-align: middle; position: relative; white-space: nowrap; min-width: 12.5rem; border: none; } .d-menu li a img, .d-menu li a .icon { position: absolute; left: .875rem; top: 50%; margin-top: -0.5625rem; color: #262626; max-height: 1.125rem; font-size: 1.125rem; display: inline-block; margin-right: .3125rem; vertical-align: middle; text-align: center; } .d-menu li.active { border-left: 2px solid; border-color: #1ba1e2; } .d-menu li.active > a { background-color: #59cde2; color: #ffffff; font-weight: bold; } .d-menu li:hover { text-decoration: none; background: #59cde2; } .d-menu li:hover > a, .d-menu li:hover .icon { color: #ffffff; } .d-menu .divider { padding: 0; height: 1px; margin: 0 1px; overflow: hidden; background-color: #f2f2f2; } .d-menu .divider:hover { background-color: #f2f2f2; } .d-menu.subdown .d-menu { min-width: 0; position: relative; width: 100%; left: 0 ; right: 0 ; top: 100%; box-shadow: none; } .d-menu .item-block { display: block; padding: .625rem; background-color: #eeeeee; } .d-menu .d-menu { left: 100%; top: -10%; } .d-menu .menu-title { background-color: #f6f7f8; font-size: 12px; line-height: 14px; padding: 4px 8px; border: 0; color: #646464; } .d-menu .menu-title:first-child { margin: 0; border-top-width: 0; } .d-menu .menu-title:first-child:hover { border-top-width: 0; } .d-menu .menu-title:hover { background-color: #f6f7f8; cursor: default; border: 0; } .d-menu .dropdown-toggle:before { -webkit-transform: rotate(-135deg); transform: rotate(-135deg); margin-top: -2px; } .d-menu .dropdown-toggle:before { transition: all 0.3s ease; } .d-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); transition: all 0.3s ease; } .d-menu.subdown .dropdown-toggle:before { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); margin-left: -1.25rem; } .d-menu.subdown .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); } .d-menu li.disabled a { color: #eeeeee; } .d-menu li.disabled:hover { background-color: inherit; cursor: default; border: 0; } .d-menu li.disabled:hover a { cursor: inherit; } .d-menu.context li a { font-size: .75rem; padding: .3125rem 2rem .3125rem 2.5rem; } .d-menu.context li a .icon { margin-top: -0.4375rem; font-size: .825rem; color: inherit; } .d-menu.no-min-size li a { min-width: 0; } .d-menu.full-size li a { min-width: 0; width: 100%; } .d-menu .d-menu { left: 100%; top: -10%; } .d-menu.open { display: block ; } .d-menu.drop-left { left: -100%; } .d-menu.drop-up { top: auto; bottom: 0; } .d-menu.context li a { font-size: .75rem; padding: .3125rem 2rem .3125rem 2.5rem; } .d-menu.context li a .icon { margin-top: -0.4375rem; } .d-menu.place-right { left: auto ; right: 0; width: auto; } .h-menu, .v-menu, .d-menu { border-collapse: separate; } .m-menu { border-collapse: separate; text-align: left; display: block; height: auto ; position: relative; background-color: #ffffff; color: #1d1d1d; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2); list-style: none inside none; margin: 0; padding: 0; } .m-menu:before, .m-menu:after { display: table; content: ""; } .m-menu:after { clear: both; } .m-menu > li, .m-menu .m-menu-item { display: block; float: left; background-color: #ffffff; } .m-menu > li:hover, .m-menu .m-menu-item:hover { background-color: #59cde2; } .m-menu > li:hover > a, .m-menu .m-menu-item:hover > a { color: #ffffff; } .m-menu > li.no-hovered, .m-menu .m-menu-item.no-hovered { background-color: inherit; color: inherit; } .m-menu > li:first-child, .m-menu .m-menu-item:first-child { margin-left: 0; } .m-menu > li > a, .m-menu .m-menu-item > a { display: block; float: left; position: relative; font-weight: normal; color: inherit; font-size: .875rem; outline: none; text-decoration: none; padding: 1rem 1.625rem; border: none; } .m-menu > li > a:hover, .m-menu .m-menu-item > a:hover { background-color: inherit; } .m-menu > li > a.dropdown-toggle, .m-menu .m-menu-item > a.dropdown-toggle { padding: 1rem 1.625rem 1rem 1.125rem; } .m-menu > li.active-container, .m-menu .m-menu-item.active-container { background-color: #59cde2; } .m-menu > li.active-container a, .m-menu .m-menu-item.active-container a { color: #ffffff; } .m-menu > li.active-container a.dropdown-toggle:before, .m-menu .m-menu-item.active-container a.dropdown-toggle:before { border-color: #ffffff; } .m-menu > li .d-menu, .m-menu .m-menu-item .d-menu { left: 0; top: 100%; } .m-menu .m-menu-container { position: absolute; left: 0; right: 0; top: 100%; padding: .3125rem; font-size: .75rem; z-index: 1000; background-color: inherit; } .m-menu .m-menu-container li, .m-menu .m-menu-container a { color: #ffffff; } .m-menu .m-menu-container a { text-decoration: underline; } .m-menu .m-menu-container li:hover > a, .m-menu .m-menu-container li.active > a { text-decoration: none; } .m-menu .m-menu-container { display: none; } .m-menu .m-menu-container.open { display: block; } .m-menu > li .dropdown-toggle:before { transition: all 0.3s ease; } .m-menu > li .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .v-menu.context li a, .d-menu.context li a { font-size: .75rem; padding: .3125rem 2rem .3125rem 2.5rem; } .v-menu.context li a .icon, .d-menu.context li a .icon { margin-top: -0.4375rem; font-size: .825rem; color: inherit; } .v-menu.no-min-size li a, .d-menu.no-min-size li a { min-width: 0; } .v-menu.full-size li a, .d-menu.full-size li a { min-width: 0; width: 100%; } .horizontal-menu { display: block; width: 100%; color: #1d1d1d; position: relative; padding: 0; margin: 0; list-style: none inside none; } .horizontal-menu:before, .horizontal-menu:after { display: table; content: ""; } .horizontal-menu:after { clear: both; } .horizontal-menu > li { display: block; float: left; color: inherit; background-color: inherit; position: relative; } .horizontal-menu > li > a { position: relative; display: block; float: left; font-size: 1.4rem; color: inherit; background-color: inherit; padding: .625rem 1.625rem; line-height: 1.4rem; } .horizontal-menu > li > .d-menu { left: 0; top: 100%; } .horizontal-menu.compact > li > a { font-size: .9rem; line-height: .9rem; } .horizontal-menu .dropdown-toggle:before { transition: all 0.3s ease; } .horizontal-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .horizontal-menu .d-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .vertical-menu { display: block; width: 100%; color: #1d1d1d; padding: 0; margin: 0; list-style: none inside none; position: relative; width: auto; float: left; } .vertical-menu:before, .vertical-menu:after { display: table; content: ""; } .vertical-menu:after { clear: both; } .vertical-menu > li { display: block; float: left; color: inherit; background-color: inherit; position: relative; } .vertical-menu > li > a { position: relative; display: block; float: left; font-size: 1.4rem; color: inherit; background-color: inherit; padding: .625rem 1.625rem; line-height: 1.4rem; } .vertical-menu > li > .d-menu { left: 0; top: 100%; } .vertical-menu.compact > li > a { font-size: .9rem; line-height: .9rem; } .vertical-menu .dropdown-toggle:before { transition: all 0.3s ease; } .vertical-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .vertical-menu .d-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .vertical-menu > li > .d-menu { left: auto; } .vertical-menu > li { float: none; } .vertical-menu > li > a { float: none; } .vertical-menu > li > .d-menu { left: 100%; top: 0; } .vertical-menu.compact > li > a { padding-top: .325rem; padding-bottom: .325rem; } .vertical-menu .dropdown-toggle:before { margin-top: -2px; -webkit-transform: rotate(-135deg); transform: rotate(-135deg); } .vertical-menu .dropdown-toggle:before { transition: all 0.3s ease; } .vertical-menu .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); transition: all 0.3s ease; } .t-menu { list-style: none inside none; margin: 0; padding: 0; position: relative; width: auto; float: left; background-color: #ffffff; border-collapse: separate; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2); } .t-menu > li { position: relative; } .t-menu > li > a { display: block; padding: 1rem 1.2rem; border-bottom: 1px #eeeeee solid; position: relative; } .t-menu > li > a .icon { width: 1.5rem; height: 1.5rem; font-size: 1.5rem; } .t-menu > li:hover > a { background-color: #1ba1e2; color: #ffffff; } .t-menu > li:last-child a { border-bottom: 0; } .t-menu.compact > li > a { padding: .5rem .7rem; } .t-menu.compact > li > a .icon { width: 1rem; height: 1rem; font-size: 1rem; } .t-menu li .t-menu { position: absolute; left: 100%; margin-left: .3125rem ; top: 0; float: none; } .t-menu li .t-menu > li { float: left; display: block; } .t-menu li .t-menu > li > a { float: left; display: block; } .t-menu .t-menu.horizontal .t-menu { left: 0 ; top: 100% ; margin-top: .3125rem ; margin-left: 0 ; } .t-menu .dropdown-toggle:after { content: ""; background-color: transparent; position: absolute; left: auto; top: auto; bottom: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 8px 8px; border-color: transparent transparent #1ba1e2 transparent; -webkit-transform: rotate(0); transform: rotate(0); } .t-menu .dropdown-toggle:before { display: none; } .t-menu > li:hover > .dropdown-toggle:after { border-color: transparent transparent #1b6eae transparent; } .t-menu.horizontal { list-style: none inside none; margin: 0; padding: 0; position: relative; width: auto; float: left; background-color: #ffffff; border-collapse: separate; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2); } .t-menu.horizontal > li { position: relative; } .t-menu.horizontal > li > a { display: block; padding: 1rem 1.2rem; border-bottom: 1px #eeeeee solid; position: relative; } .t-menu.horizontal > li > a .icon { width: 1.5rem; height: 1.5rem; font-size: 1.5rem; } .t-menu.horizontal > li:hover > a { background-color: #1ba1e2; color: #ffffff; } .t-menu.horizontal > li:last-child a { border-bottom: 0; } .t-menu.horizontal.compact > li > a { padding: .5rem .7rem; } .t-menu.horizontal.compact > li > a .icon { width: 1rem; height: 1rem; font-size: 1rem; } .t-menu.horizontal li .t-menu { position: absolute; left: 100%; margin-left: .3125rem ; top: 0; float: none; } .t-menu.horizontal li .t-menu > li { float: left; display: block; } .t-menu.horizontal li .t-menu > li > a { float: left; display: block; } .t-menu.horizontal .t-menu.horizontal .t-menu { left: 0 ; top: 100% ; margin-top: .3125rem ; margin-left: 0 ; } .t-menu.horizontal .dropdown-toggle:after { content: ""; background-color: transparent; position: absolute; left: auto; top: auto; bottom: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 8px 8px; border-color: transparent transparent #1ba1e2 transparent; -webkit-transform: rotate(0); transform: rotate(0); } .t-menu.horizontal .dropdown-toggle:before { display: none; } .t-menu.horizontal > li:hover > .dropdown-toggle:after { border-color: transparent transparent #1b6eae transparent; } .t-menu.horizontal > li { display: block; float: left; } .t-menu.horizontal > li > a { display: block; float: left; border-right: 1px #eeeeee solid; border-bottom: 0; } .t-menu.horizontal > li:last-child > a { border-right: 0; } .t-menu.horizontal .t-menu:not(.horizontal) { left: 0; top: 100% ; margin-top: .3125rem ; margin-left: 0 ; } .t-menu.horizontal .t-menu:not(.horizontal) .t-menu.horizontal { left: 100% ; margin-left: .3125rem ; top: 0 ; float: left; } .horizontal-menu > li > .d-menu, .h-menu > li > .d-menu, .m-menu > li > .d-menu { left: auto; } [data-role="dropdown"]:not(.open), [data-role="dropdown"]:not(.keep-open) { display: none; position: absolute; z-index: 1000; } .button { padding: 0 1rem; height: 2.125rem; text-align: center; vertical-align: middle; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; } .button.default { background-color: #008287; color: #fff; } .button:hover { border-color: #787878; } .button:active { background: #eeeeee; color: #262626; box-shadow: none; } .button:focus { outline: 0; } .button:disabled, .button.disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } .button * { color: inherit; } .button *:hover { color: inherit; } .button.rounded { border-radius: .325rem; } .button > [class*=mif-] { vertical-align: middle; } .button.button-shadow { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3); } .button img { height: .875rem; vertical-align: middle; margin: 0; } .round-button, .cycle-button, .square-button { padding: 0 1rem; height: 2.125rem; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; width: 2.125rem; min-width: 2.125rem; padding: 0 ; border-radius: 50%; text-align: center; text-decoration: none; vertical-align: middle; } .round-button.default, .cycle-button.default, .square-button.default { background-color: #008287; color: #fff; } .round-button:hover, .cycle-button:hover, .square-button:hover { border-color: #787878; } .round-button:active, .cycle-button:active, .square-button:active { background: #eeeeee; color: #262626; box-shadow: none; } .round-button:focus, .cycle-button:focus, .square-button:focus { outline: 0; } .round-button:disabled, .cycle-button:disabled, .square-button:disabled, .round-button.disabled, .cycle-button.disabled, .square-button.disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } .round-button *, .cycle-button *, .square-button * { color: inherit; } .round-button *:hover, .cycle-button *:hover, .square-button *:hover { color: inherit; } .round-button.rounded, .cycle-button.rounded, .square-button.rounded { border-radius: .325rem; } .round-button > [class*=mif-], .cycle-button > [class*=mif-], .square-button > [class*=mif-] { vertical-align: middle; } .round-button img, .cycle-button img, .square-button img { height: .875rem; vertical-align: middle; margin: 0; } .round-button.loading-pulse, .cycle-button.loading-pulse, .square-button.loading-pulse { position: relative; padding: 0 1.325rem; } .round-button.loading-pulse:before, .cycle-button.loading-pulse:before, .square-button.loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } .round-button.loading-pulse.lighten:before, .cycle-button.loading-pulse.lighten:before, .square-button.loading-pulse.lighten:before { background-color: #fff; } .round-button.loading-cube, .cycle-button.loading-cube, .square-button.loading-cube { position: relative; padding: 0 1.325rem; } .round-button.loading-cube:before, .cycle-button.loading-cube:before, .square-button.loading-cube:before, .round-button.loading-cube:after, .cycle-button.loading-cube:after, .square-button.loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } .round-button.loading-cube:after, .cycle-button.loading-cube:after, .square-button.loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .round-button.loading-cube.lighten:before, .cycle-button.loading-cube.lighten:before, .square-button.loading-cube.lighten:before, .round-button.loading-cube.lighten:after, .cycle-button.loading-cube.lighten:after, .square-button.loading-cube.lighten:after { background-color: #fff; } .round-button.dropdown-toggle, .cycle-button.dropdown-toggle, .square-button.dropdown-toggle { padding-right: 1.625rem; } .round-button.dropdown-toggle.drop-marker-light:before, .cycle-button.dropdown-toggle.drop-marker-light:before, .square-button.dropdown-toggle.drop-marker-light:before, .round-button.dropdown-toggle.drop-marker-light:after, .cycle-button.dropdown-toggle.drop-marker-light:after, .square-button.dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } .round-button.primary, .cycle-button.primary, .square-button.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .round-button.primary:active, .cycle-button.primary:active, .square-button.primary:active { background: #1b6eae; color: #ffffff; } .round-button.success, .cycle-button.success, .square-button.success { background: #60a917; color: #ffffff; border-color: #60a917; } .round-button.success:active, .cycle-button.success:active, .square-button.success:active { background: #128023; color: #ffffff; } .round-button.danger, .cycle-button.danger, .square-button.danger, .round-button.alert, .cycle-button.alert, .square-button.alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } .round-button.danger:active, .cycle-button.danger:active, .square-button.danger:active, .round-button.alert:active, .cycle-button.alert:active, .square-button.alert:active { background: #9a1616; color: #ffffff; } .round-button.info, .cycle-button.info, .square-button.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .round-button.info:active, .cycle-button.info:active, .square-button.info:active { background: #1ba1e2; color: #ffffff; } .round-button.warning, .cycle-button.warning, .square-button.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .round-button.warning:active, .cycle-button.warning:active, .square-button.warning:active { background: #bf5a15; color: #ffffff; } .round-button.link, .cycle-button.link, .square-button.link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } .round-button.link:hover, .cycle-button.link:hover, .square-button.link:hover, .round-button.link:active, .cycle-button.link:active, .square-button.link:active { background: transparent; color: #114968; border-color: transparent; } .square-button { border-radius: 0; } a.button, a.round-button, a.square-button { color: inherit; } a.button:hover, a.round-button:hover, a.square-button:hover { text-decoration: none; } .button.loading-pulse { position: relative; padding: 0 1.325rem; } .button.loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } .button.loading-pulse.lighten:before { background-color: #fff; } .button.loading-cube { position: relative; padding: 0 1.325rem; } .button.loading-cube:before, .button.loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } .button.loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .button.loading-cube.lighten:before, .button.loading-cube.lighten:after { background-color: #fff; } .command-button { padding: 0 1rem; height: 2.125rem; text-align: center; vertical-align: middle; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; height: auto; text-align: left; font-size: 1.325rem; padding-left: 4rem; padding-top: 8px; padding-bottom: 4px; } .command-button.default { background-color: #008287; color: #fff; } .command-button:hover { border-color: #787878; } .command-button:active { background: #eeeeee; color: #262626; box-shadow: none; } .command-button:focus { outline: 0; } .command-button:disabled, .command-button.disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } .command-button * { color: inherit; } .command-button *:hover { color: inherit; } .command-button.rounded { border-radius: .325rem; } .command-button > [class*=mif-] { vertical-align: middle; } .command-button img { height: .875rem; vertical-align: middle; margin: 0; } .command-button.loading-pulse { position: relative; padding: 0 1.325rem; } .command-button.loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } .command-button.loading-pulse.lighten:before { background-color: #fff; } .command-button.loading-cube { position: relative; padding: 0 1.325rem; } .command-button.loading-cube:before, .command-button.loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } .command-button.loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .command-button.loading-cube.lighten:before, .command-button.loading-cube.lighten:after { background-color: #fff; } .command-button.dropdown-toggle { padding-right: 1.625rem; } .command-button.dropdown-toggle.drop-marker-light:before, .command-button.dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } .command-button.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .command-button.primary:active { background: #1b6eae; color: #ffffff; } .command-button.success { background: #60a917; color: #ffffff; border-color: #60a917; } .command-button.success:active { background: #128023; color: #ffffff; } .command-button.danger, .command-button.alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } .command-button.danger:active, .command-button.alert:active { background: #9a1616; color: #ffffff; } .command-button.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .command-button.info:active { background: #1ba1e2; color: #ffffff; } .command-button.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .command-button.warning:active { background: #bf5a15; color: #ffffff; } .command-button.link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } .command-button.link:hover, .command-button.link:active { background: transparent; color: #114968; border-color: transparent; } .command-button small { display: block; font-size: .8rem; line-height: 1.625rem; margin-top: -0.3125rem; } .command-button .icon { left: 1rem; top: 50%; margin-top: -1rem; position: absolute; font-size: 2rem; height: 2rem; width: 2rem; margin-right: .625rem; } .command-button.icon-right { padding-left: 1rem; padding-right: 4rem; } .command-button.icon-right .icon { left: auto; right: 0; } .image-button { padding: 0 1rem; height: 2.125rem; text-align: center; vertical-align: middle; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; border: 0; padding-left: 2.75rem; background-color: #eeeeee; } .image-button.default { background-color: #008287; color: #fff; } .image-button:hover { border-color: #787878; } .image-button:active { background: #eeeeee; color: #262626; box-shadow: none; } .image-button:focus { outline: 0; } .image-button:disabled, .image-button.disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } .image-button * { color: inherit; } .image-button *:hover { color: inherit; } .image-button.rounded { border-radius: .325rem; } .image-button > [class*=mif-] { vertical-align: middle; } .image-button img { height: .875rem; vertical-align: middle; margin: 0; } .image-button.loading-pulse { position: relative; padding: 0 1.325rem; } .image-button.loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } .image-button.loading-pulse.lighten:before { background-color: #fff; } .image-button.loading-cube { position: relative; padding: 0 1.325rem; } .image-button.loading-cube:before, .image-button.loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } .image-button.loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .image-button.loading-cube.lighten:before, .image-button.loading-cube.lighten:after { background-color: #fff; } .image-button.dropdown-toggle { padding-right: 1.625rem; } .image-button.dropdown-toggle.drop-marker-light:before, .image-button.dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } .image-button.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .image-button.primary:active { background: #1b6eae; color: #ffffff; } .image-button.success { background: #60a917; color: #ffffff; border-color: #60a917; } .image-button.success:active { background: #128023; color: #ffffff; } .image-button.danger, .image-button.alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } .image-button.danger:active, .image-button.alert:active { background: #9a1616; color: #ffffff; } .image-button.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .image-button.info:active { background: #1ba1e2; color: #ffffff; } .image-button.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .image-button.warning:active { background: #bf5a15; color: #ffffff; } .image-button.link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } .image-button.link:hover, .image-button.link:active { background: transparent; color: #114968; border-color: transparent; } .image-button:active { background-color: #e1e1e1; } .image-button .icon { position: absolute; left: 0; top: 0; height: 100%; width: 2.125rem; padding: .525rem; font-size: 1rem; background-color: #999999; text-align: center; vertical-align: middle; } .image-button img.icon { padding-top: .525rem; } .image-button.icon-right { padding-left: 1rem; padding-right: 2.75rem; } .image-button.icon-right .icon { right: 0; left: auto; } a.image-button { padding-top: 10px; } .image-button.small-button { padding-left: 2rem; padding-right: 1rem; padding-top: 0; } .image-button.small-button .icon { width: 1.625rem; font-size: .875rem; height: 100%; padding: .4rem; } .image-button.small-button.icon-right { padding-left: .625rem; padding-right: 2rem; } .shortcut-button { padding: 0 1rem; height: 2.125rem; vertical-align: middle; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; width: 5.75rem; height: 5.75rem; text-align: center; font-size: .75rem; } .shortcut-button.default { background-color: #008287; color: #fff; } .shortcut-button:hover { border-color: #787878; } .shortcut-button:active { background: #eeeeee; color: #262626; box-shadow: none; } .shortcut-button:focus { outline: 0; } .shortcut-button:disabled, .shortcut-button.disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } .shortcut-button * { color: inherit; } .shortcut-button *:hover { color: inherit; } .shortcut-button.rounded { border-radius: .325rem; } .shortcut-button > [class*=mif-] { vertical-align: middle; } .shortcut-button img { height: .875rem; vertical-align: middle; margin: 0; } .shortcut-button.loading-pulse { position: relative; padding: 0 1.325rem; } .shortcut-button.loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } .shortcut-button.loading-pulse.lighten:before { background-color: #fff; } .shortcut-button.loading-cube { position: relative; padding: 0 1.325rem; } .shortcut-button.loading-cube:before, .shortcut-button.loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } .shortcut-button.loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .shortcut-button.loading-cube.lighten:before, .shortcut-button.loading-cube.lighten:after { background-color: #fff; } .shortcut-button.dropdown-toggle { padding-right: 1.625rem; } .shortcut-button.dropdown-toggle.drop-marker-light:before, .shortcut-button.dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } .shortcut-button.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .shortcut-button.primary:active { background: #1b6eae; color: #ffffff; } .shortcut-button.success { background: #60a917; color: #ffffff; border-color: #60a917; } .shortcut-button.success:active { background: #128023; color: #ffffff; } .shortcut-button.danger, .shortcut-button.alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } .shortcut-button.danger:active, .shortcut-button.alert:active { background: #9a1616; color: #ffffff; } .shortcut-button.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .shortcut-button.info:active { background: #1ba1e2; color: #ffffff; } .shortcut-button.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .shortcut-button.warning:active { background: #bf5a15; color: #ffffff; } .shortcut-button.link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } .shortcut-button.link:hover, .shortcut-button.link:active { background: transparent; color: #114968; border-color: transparent; } .shortcut-button .icon, .shortcut-button .title { display: block; color: inherit; } .shortcut-button .icon { font-size: 1.7rem; height: 1.7rem; width: 1.7rem; margin: .875rem auto; } .shortcut-button .badge { color: inherit; position: absolute; top: 0; right: 0; font-size: .7rem; line-height: 1rem; padding: 0 .225rem; } a.shortcut-button { padding-top: 10px; } .button.dropdown-toggle { padding-right: 1.625rem; } .button.dropdown-toggle.drop-marker-light:before, .button.dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } .nav-button { width: 2rem; height: 2rem; background-size: 1rem 1rem; background: center center no-repeat; text-indent: -9999px; border: 0; display: inline-block; cursor: pointer; z-index: 2; position: relative; } .nav-button span { position: absolute; top: 1.2rem; left: .5rem; width: 1.2rem; height: 2px; margin: 0 0 0; background: #1d1d1d; -webkit-transform: rotate(0); transform: rotate(0); transition: all 0.3s linear; } .nav-button span:before, .nav-button span:after { content: ''; position: absolute; top: -0.5rem; right: 0; width: 1.2rem; height: 2px; background: #1d1d1d; -webkit-transform: rotate(0); transform: rotate(0); transition: all 0.3s linear; } .nav-button span:after { top: .5rem; } .nav-button.transform span { -webkit-transform: rotate(180deg); transform: rotate(180deg); background: #1d1d1d; } .nav-button.transform span:before, .nav-button.transform span:after { content: ''; top: -5px; right: 0; width: .75rem; -webkit-transform: rotate(45deg); transform: rotate(45deg); } .nav-button.transform span:after { top: 5px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .nav-button.light span { background-color: #ffffff; } .nav-button.light span:before, .nav-button.light span:after { background-color: #ffffff; } .group-of-buttons .button.active, .group-of-buttons .toolbar-button.active { background-color: #00ccff; color: #ffffff; } .group-of-buttons .button:active, .group-of-buttons .toolbar-button:active { background-color: #1ba1e2; color: #ffffff; } .split-button { display: inline-block; position: relative; } .split-button:before, .split-button:after { display: table; content: ""; } .split-button:after { clear: both; } .split-button .button, .split-button .split { display: block; float: left; } .split-button .split { padding: 0 1rem 0 .625rem; height: 2.125rem; text-align: center; vertical-align: middle ; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; outline: none; font-size: .875rem; line-height: 2.1rem; position: relative; margin: .15625rem 0; } .split-button .split:hover { background-color: #eeeeee; border-color: #787878; } .split-button .split-content { position: absolute; top: 100%; } .split.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .split.primary:active { background: #1b6eae; } .split.primary:hover { background: #59cde2; border-color: #59cde2; } .split.primary.dropdown-toggle:before { border-color: #ffffff; } .split.success { background: #60a917; color: #ffffff; border-color: #60a917; } .split.success:active { background: #128023; } .split.success:hover { background: #7ad61d; border-color: #7ad61d; } .split.success.dropdown-toggle:before { border-color: #ffffff; } .split.danger { background: #ce352c; color: #ffffff; border-color: #ce352c; } .split.danger:active { background: #9a1616; } .split.danger:hover { background: #da5a53; border-color: #da5a53; } .split.danger.dropdown-toggle:before { border-color: #ffffff; } .split.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .split.info:active { background: #1ba1e2; } .split.info:hover { background: #4390df; border-color: #4390df; } .split.info.dropdown-toggle:before { border-color: #ffffff; } .split.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .split.warning:active { background: #bf5a15; } .split.warning:hover { background: #ffc194; border-color: #ffc194; } .split.warning.dropdown-toggle:before { border-color: #ffffff; } .mini-button { font-size: .6rem; line-height: 1.3; padding: .2rem .625rem; height: 1.4rem; } .small-button { font-size: .7rem; line-height: 1.68rem; padding: 0 .625rem; height: 1.7rem; } .large-button { height: 2.55rem; font-size: 1.05rem; line-height: 2.52rem; } .big-button { height: 3.125rem; font-size: 1.2rem; line-height: 1; } .round-button.mini-button, .cycle-button.mini-button, .square-button.mini-button { width: 1.4rem; height: 1.4rem; font-size: .6rem; line-height: 1; padding: 0; min-width: 0; } .round-button.small-button, .cycle-button.small-button, .square-button.small-button { width: 1.7rem; height: 1.7rem; font-size: .7rem; line-height: 1.68rem; padding: 0; min-width: 0; } .round-button.large-button, .cycle-button.large-button, .square-button.large-button { font-size: 1.05rem; line-height: 1; width: 2.55rem; height: 2.55rem; } .round-button.big-button, .cycle-button.big-button, .square-button.big-button { font-size: 1.2rem; line-height: 1; width: 3.125rem; height: 3.125rem; } .button.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .button.primary:active { background: #1b6eae; color: #ffffff; } .button.success { background: #60a917; color: #ffffff; border-color: #60a917; } .button.success:active { background: #128023; color: #ffffff; } .button.danger, .button.alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } .button.danger:active, .button.alert:active { background: #9a1616; color: #ffffff; } .button.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .button.info:active { background: #1ba1e2; color: #ffffff; } .button.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .button.warning:active { background: #bf5a15; color: #ffffff; } .button.link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } .button.link:hover, .button.link:active { background: transparent; color: #114968; border-color: transparent; } a.button, span.button, div.button, a.round-button, span.round-button, div.round-button, a.cycle-button, span.cycle-button, div.cycle-button, a.square-button, span.square-button, div.square-button { padding-top: .53125rem; } a.button.big-button, span.button.big-button, div.button.big-button, a.round-button.big-button, span.round-button.big-button, div.round-button.big-button, a.cycle-button.big-button, span.cycle-button.big-button, div.cycle-button.big-button, a.square-button.big-button, span.square-button.big-button, div.square-button.big-button { padding-top: .78125rem; } .toolbar { position: relative; } .toolbar:before, .toolbar:after { display: table; content: ""; } .toolbar:after { clear: both; } .toolbar-section { position: relative; padding-left: .5725rem; margin: .125rem; float: left; width: auto; } .toolbar-section.no-divider:before { display: none; } .toolbar-section:before { position: absolute; content: ""; width: .325rem; height: 100%; left: 0; background-color: #eeeeee; cursor: move; } .toolbar .toolbar-button { padding: 0 1rem; height: 2.125rem; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; width: 2.125rem; min-width: 2.125rem; padding: 0 ; border-radius: 50%; text-align: center; text-decoration: none; vertical-align: middle; border-radius: 0; margin: 0; } .toolbar .toolbar-button.default { background-color: #008287; color: #fff; } .toolbar .toolbar-button:hover { border-color: #787878; } .toolbar .toolbar-button:active { background: #eeeeee; color: #262626; box-shadow: none; } .toolbar .toolbar-button:focus { outline: 0; } .toolbar .toolbar-button:disabled, .toolbar .toolbar-button.disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } .toolbar .toolbar-button * { color: inherit; } .toolbar .toolbar-button *:hover { color: inherit; } .toolbar .toolbar-button.rounded { border-radius: .325rem; } .toolbar .toolbar-button > [class*=mif-] { vertical-align: middle; } .toolbar .toolbar-button img { height: .875rem; vertical-align: middle; margin: 0; } .toolbar .toolbar-button.loading-pulse { position: relative; padding: 0 1.325rem; } .toolbar .toolbar-button.loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } .toolbar .toolbar-button.loading-pulse.lighten:before { background-color: #fff; } .toolbar .toolbar-button.loading-cube { position: relative; padding: 0 1.325rem; } .toolbar .toolbar-button.loading-cube:before, .toolbar .toolbar-button.loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } .toolbar .toolbar-button.loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .toolbar .toolbar-button.loading-cube.lighten:before, .toolbar .toolbar-button.loading-cube.lighten:after { background-color: #fff; } .toolbar .toolbar-button.dropdown-toggle { padding-right: 1.625rem; } .toolbar .toolbar-button.dropdown-toggle.drop-marker-light:before, .toolbar .toolbar-button.dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } .toolbar .toolbar-button.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .toolbar .toolbar-button.primary:active { background: #1b6eae; color: #ffffff; } .toolbar .toolbar-button.success { background: #60a917; color: #ffffff; border-color: #60a917; } .toolbar .toolbar-button.success:active { background: #128023; color: #ffffff; } .toolbar .toolbar-button.danger, .toolbar .toolbar-button.alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } .toolbar .toolbar-button.danger:active, .toolbar .toolbar-button.alert:active { background: #9a1616; color: #ffffff; } .toolbar .toolbar-button.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .toolbar .toolbar-button.info:active { background: #1ba1e2; color: #ffffff; } .toolbar .toolbar-button.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .toolbar .toolbar-button.warning:active { background: #bf5a15; color: #ffffff; } .toolbar .toolbar-button.link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } .toolbar .toolbar-button.link:hover, .toolbar .toolbar-button.link:active { background: transparent; color: #114968; border-color: transparent; } .toolbar .toolbar-button.mini-button { width: 1.4rem; height: 1.4rem; font-size: .6rem; line-height: 1; padding: 0; min-width: 0; } .toolbar .toolbar-button.small-button { width: 1.7rem; height: 1.7rem; font-size: .7rem; line-height: 1.68rem; padding: 0; min-width: 0; } .toolbar .toolbar-button.large-button { font-size: 1.05rem; line-height: 1; width: 2.55rem; height: 2.55rem; } .toolbar .toolbar-button.big-button { font-size: 1.2rem; line-height: 1; width: 3.125rem; height: 3.125rem; } .toolbar-group, .toolbar-section { display: inline-block; } .toolbar-group.condensed:before, .toolbar-section.condensed:before, .toolbar-group.condensed:after, .toolbar-section.condensed:after { display: table; content: ""; } .toolbar-group.condensed:after, .toolbar-section.condensed:after { clear: both; } .toolbar-group.condensed .button, .toolbar-section.condensed .button, .toolbar-group.condensed .toolbar-button, .toolbar-section.condensed .toolbar-button { display: block; float: left; } .toolbar-group-check .toolbar-button.checked { background-color: #59cde2; color: #ffffff; border-color: #59cde2; } .toolbar-group-radio .toolbar-button.checked { background-color: #59cde2; color: #ffffff; border-color: #59cde2; } .toolbar.rounded > .toolbar-button, .toolbar.rounded > .toolbar-section .toolbar-button { border-radius: .3125rem; } .toolbar.rounded .toolbar-section:before { border-radius: .3125rem; } .v-toolbar { position: relative; float: left; } .v-toolbar:before, .v-toolbar:after { display: table; content: ""; } .v-toolbar:after { clear: both; } .v-toolbar .toolbar-button { padding: 0 1rem; height: 2.125rem; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; width: 2.125rem; min-width: 2.125rem; padding: 0 ; border-radius: 50%; text-align: center; text-decoration: none; vertical-align: middle; border-radius: 0; margin: 0; } .v-toolbar .toolbar-button.default { background-color: #008287; color: #fff; } .v-toolbar .toolbar-button:hover { border-color: #787878; } .v-toolbar .toolbar-button:active { background: #eeeeee; color: #262626; box-shadow: none; } .v-toolbar .toolbar-button:focus { outline: 0; } .v-toolbar .toolbar-button:disabled, .v-toolbar .toolbar-button.disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } .v-toolbar .toolbar-button * { color: inherit; } .v-toolbar .toolbar-button *:hover { color: inherit; } .v-toolbar .toolbar-button.rounded { border-radius: .325rem; } .v-toolbar .toolbar-button > [class*=mif-] { vertical-align: middle; } .v-toolbar .toolbar-button img { height: .875rem; vertical-align: middle; margin: 0; } .v-toolbar .toolbar-button.loading-pulse { position: relative; padding: 0 1.325rem; } .v-toolbar .toolbar-button.loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } .v-toolbar .toolbar-button.loading-pulse.lighten:before { background-color: #fff; } .v-toolbar .toolbar-button.loading-cube { position: relative; padding: 0 1.325rem; } .v-toolbar .toolbar-button.loading-cube:before, .v-toolbar .toolbar-button.loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } .v-toolbar .toolbar-button.loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .v-toolbar .toolbar-button.loading-cube.lighten:before, .v-toolbar .toolbar-button.loading-cube.lighten:after { background-color: #fff; } .v-toolbar .toolbar-button.dropdown-toggle { padding-right: 1.625rem; } .v-toolbar .toolbar-button.dropdown-toggle.drop-marker-light:before, .v-toolbar .toolbar-button.dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } .v-toolbar .toolbar-button.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .v-toolbar .toolbar-button.primary:active { background: #1b6eae; color: #ffffff; } .v-toolbar .toolbar-button.success { background: #60a917; color: #ffffff; border-color: #60a917; } .v-toolbar .toolbar-button.success:active { background: #128023; color: #ffffff; } .v-toolbar .toolbar-button.danger, .v-toolbar .toolbar-button.alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } .v-toolbar .toolbar-button.danger:active, .v-toolbar .toolbar-button.alert:active { background: #9a1616; color: #ffffff; } .v-toolbar .toolbar-button.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .v-toolbar .toolbar-button.info:active { background: #1ba1e2; color: #ffffff; } .v-toolbar .toolbar-button.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .v-toolbar .toolbar-button.warning:active { background: #bf5a15; color: #ffffff; } .v-toolbar .toolbar-button.link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } .v-toolbar .toolbar-button.link:hover, .v-toolbar .toolbar-button.link:active { background: transparent; color: #114968; border-color: transparent; } .v-toolbar .toolbar-button.mini-button { width: 1.4rem; height: 1.4rem; font-size: .6rem; line-height: 1; padding: 0; min-width: 0; } .v-toolbar .toolbar-button.small-button { width: 1.7rem; height: 1.7rem; font-size: .7rem; line-height: 1.68rem; padding: 0; min-width: 0; } .v-toolbar .toolbar-button.large-button { font-size: 1.05rem; line-height: 1; width: 2.55rem; height: 2.55rem; } .v-toolbar .toolbar-button.big-button { font-size: 1.2rem; line-height: 1; width: 3.125rem; height: 3.125rem; } .v-toolbar.rounded > .toolbar-button, .v-toolbar.rounded > .toolbar-section .toolbar-button { border-radius: .3125rem; } .v-toolbar.rounded .toolbar-section:before { border-radius: .3125rem; } .v-toolbar .toolbar-section { padding-left: 0; padding-top: .5725rem; } .v-toolbar .toolbar-section:before { width: 100%; top: 0; height: .325rem; } .v-toolbar .toolbar-button { display: block; margin-bottom: .25rem; } .v-toolbar.no-divider .toolbar-section:before { display: none; } .pagination { display: block; margin: .625rem 0; } .pagination:before, .pagination:after { display: table; content: ""; } .pagination:after { clear: both; } .pagination > .item { display: block; float: left; margin-left: .0652rem; padding: 0.25rem .625rem; background-color: #ffffff; cursor: pointer; border: 1px #eeeeee solid; text-align: center; font-size: .875rem; color: #1d1d1d; } .pagination > .item:first-child { margin-left: 0 ; } .pagination > .item.current, .pagination > .item.active { background-color: #1ba1e2; border-color: #59cde2; color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .pagination > .item:hover { background-color: #75c7ee; border-color: #75c7ee; color: #ffffff; } .pagination > .item:disabled, .pagination > .item.disabled { cursor: default; background-color: #eeeeee; border-color: #eeeeee; color: #999999; } .pagination > .item.spaces { border: 0; cursor: default; color: #1d1d1d; } .pagination > .item.spaces:hover { background-color: inherit ; color: #1d1d1d; } .pagination.rounded > .item { border-radius: .3125rem; } .pagination.cycle > .item { width: 28px; height: 28px; border-radius: 50%; font-size: .7rem; padding: .4375rem 0; } .pagination.no-border > .item { border: 0; } .pagination.no-border > .item:hover { color: #59cde2; background-color: transparent ; } .pagination.no-border > .item:disabled, .pagination.no-border > .item.disabled { cursor: default; background-color: transparent; border-color: transparent; color: #999999; } .pagination.no-border > .item.current:hover, .pagination.no-border > .item.active:hover { background-color: #75c7ee; border-color: #75c7ee; color: #ffffff; } .breadcrumbs { padding: 0; margin: 0; list-style: none inside none; background-color: #ffffff; color: #999; padding: 1rem; } .breadcrumbs > li { display: inline-block; color: inherit; margin: 0 1rem 0 0; position: relative; vertical-align: middle; } .breadcrumbs > li:before, .breadcrumbs > li:after { display: block; position: absolute; vertical-align: middle; color: transparent; font-size: 0; content: ""; height: 1px; width: .375rem; background-color: #1d1d1d; top: 50%; left: 100%; margin-left: .5rem; } .breadcrumbs > li:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); margin-top: -0.125rem; } .breadcrumbs > li:after { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); margin-top: .125rem; } .breadcrumbs > li > a { color: inherit; display: inline-block; line-height: 1; } .breadcrumbs > li:last-child { color: #1d1d1d; font-weight: bolder; } .breadcrumbs > li:last-child a { cursor: default; } .breadcrumbs > li:last-child:before, .breadcrumbs > li:last-child:after { background-color: transparent; } .breadcrumbs > li:hover { color: #1d1d1d; } .breadcrumbs img, .breadcrumbs .icon { display: inline-block; line-height: .8; height: 1rem; width: 1rem; font-size: 1rem; vertical-align: -15%; } .breadcrumbs.dark { background-color: #393832; } .breadcrumbs.dark > li:hover, .breadcrumbs.dark > li:last-child { color: #ffffff; } .breadcrumbs.dark > li:before, .breadcrumbs.dark > li:after { background-color: #ffffff; } .breadcrumbs2 { margin: 0.625rem 0; padding: 0; list-style: none; overflow: hidden; width: 100%; } .breadcrumbs2 li { float: left; margin: 0 .2em 0 1em; } .breadcrumbs2 a { background: #d9d9d9; padding: .3em 1em; float: left; text-decoration: none; color: #2086bf; position: relative; } .breadcrumbs2 a:hover { background: #1ba1e2; color: #ffffff; } .breadcrumbs2 a:hover:before { border-color: #1ba1e2 #1ba1e2 #1ba1e2 transparent; } .breadcrumbs2 a:hover:after { border-left-color: #1ba1e2; } .breadcrumbs2 a:before { content: ""; position: absolute; top: 50%; margin-top: -1.5em; border-width: 1.5em 0 1.5em 1em; border-style: solid; border-color: #d9d9d9 #d9d9d9 #d9d9d9 transparent; left: -1em; margin-left: 1px; } .breadcrumbs2 a:after { content: ""; position: absolute; top: 50%; margin-top: -1.5em; border-top: 1.5em solid transparent; border-bottom: 1.5em solid transparent; border-left: 1em solid #d9d9d9; right: -1em; margin-right: 1px; } .breadcrumbs2 > li:first-child { margin-left: 0; } .breadcrumbs2 > li:first-child a:before { content: normal; } .breadcrumbs2 > li:last-child { background: none; } .breadcrumbs2 > li:last-child a { color: #1d1d1d; } .breadcrumbs2 > li:last-child:after, .breadcrumbs2 > li:last-child:before { content: normal; } .breadcrumbs2 > li:last-child:hover a { color: #ffffff; } .breadcrumbs2 .active, .breadcrumbs2 .active:hover { background: none; } .breadcrumbs2 .active a, .breadcrumbs2 .active:hover a { color: #1d1d1d; } .breadcrumbs2 .active:hover a { color: #ffffff; } .breadcrumbs2 .active:after, .breadcrumbs2 .active:before { content: normal; } .breadcrumbs2.small a { padding: .2em 1em; font-size: 11.9px; } .breadcrumbs2.mini a { padding: .1em 1em; font-size: 10.5px; } .breadcrumbs2 > li > a > [class*=mif] { vertical-align: -10%; } .input-control { display: inline-block; min-height: 2.125rem; height: 2.125rem; position: relative; vertical-align: middle; margin: .325rem 0; line-height: 1; } .input-control[data-role=select] { height: auto; } .input-control.text, .input-control.select, .input-control.file, .input-control.password, .input-control.number, .input-control.email, .input-control.tel { width: 10.875rem; } .input-control.text .button, .input-control.select .button, .input-control.file .button, .input-control.password .button, .input-control.number .button, .input-control.email .button, .input-control.tel .button { position: absolute; top: 0; right: 0; z-index: 2; margin: 0; } .input-control.text > label, .input-control.select > label, .input-control.file > label, .input-control.password > label, .input-control.number > label, .input-control.email > label, .input-control.tel > label, .input-control.text > .label, .input-control.select > .label, .input-control.file > .label, .input-control.password > .label, .input-control.number > .label, .input-control.email > .label, .input-control.tel > .label { position: absolute; left: 0; top: -1rem; font-size: .875rem; } .input-control.text > input:disabled + .button, .input-control.select > input:disabled + .button, .input-control.file > input:disabled + .button, .input-control.password > input:disabled + .button, .input-control.number > input:disabled + .button, .input-control.email > input:disabled + .button, .input-control.tel > input:disabled + .button { display: none; } .input-control.text .prepend-icon, .input-control.select .prepend-icon, .input-control.file .prepend-icon, .input-control.password .prepend-icon, .input-control.number .prepend-icon, .input-control.email .prepend-icon, .input-control.tel .prepend-icon { width: 24px; height: 24px; font-size: 24px; line-height: 1; position: absolute; top: 50%; margin-top: -12px; left: 4px; z-index: 2; color: #999999; } .input-control.text .prepend-icon ~ input, .input-control.select .prepend-icon ~ input, .input-control.file .prepend-icon ~ input, .input-control.password .prepend-icon ~ input, .input-control.number .prepend-icon ~ input, .input-control.email .prepend-icon ~ input, .input-control.tel .prepend-icon ~ input { padding-left: 30px; } .input-control input, .input-control textarea, .input-control select { -moz-appearance: none; -webkit-appearance: none; appearance: none; position: relative; border: 1px #d9d9d9 solid; width: 100%; height: 100%; padding: .3125rem; z-index: 0; } .input-control input:focus, .input-control textarea:focus, .input-control select:focus { outline: none; } .input-control input:disabled, .input-control textarea:disabled, .input-control select:disabled { background-color: #EBEBE4; } .input-control input:focus, .input-control textarea:focus, .input-control select:focus, .input-control input:hover, .input-control textarea:hover, .input-control select:hover { border-color: #787878; } .input-control textarea { position: relative; min-height: 6.25rem; font-family: "Segoe UI", "Open Sans", sans-serif, serif; } .input-control.textarea { height: auto; } .input-control.select { position: relative; } .input-control.select select { padding-right: 20px; } .input-control.rounded input, .input-control.rounded textarea, .input-control.rounded select { border-radius: 0.3125rem; } .input-control.big-input { height: 4.125rem; } .input-control.big-input input { font-size: 1.875rem; padding-left: 1.25rem ; } .input-control.big-input .button { height: 3.25rem; top: 50%; margin-top: -1.625rem; right: 0.3125rem; font-size: 1.125rem; font-weight: bold; padding-left: 1.875rem; padding-right: 1.875rem; } .input-control [class*=input-state-] { position: absolute; display: none; top: 50%; right: 8px; z-index: 3; font-size: 1rem; margin-top: -0.5rem; } .input-control.required input, .input-control.required textarea, .input-control.required select { border: 1px dashed #1ba1e2; } .input-control.required.neon input, .input-control.required.neon textarea, .input-control.required.neon select { box-shadow: 0 0 25px 0 rgba(89, 205, 226, 0.7); } .input-control.required .input-state-required { display: block; color: #1ba1e2; } .input-control.error input, .input-control.error textarea, .input-control.error select { border: 1px solid #ce352c; } .input-control.error.neon input, .input-control.error.neon textarea, .input-control.error.neon select { box-shadow: 0 0 25px 0 rgba(128, 0, 0, 0.7); } .input-control.error .input-state-error { display: block; color: #ce352c; } .input-control.warning input, .input-control.warning textarea, .input-control.warning select { border: 1px solid #e3c800; } .input-control.warning.neon input, .input-control.warning.neon textarea, .input-control.warning.neon select { box-shadow: 0 0 25px 0 rgba(255, 165, 0, 0.7); } .input-control.warning .input-state-warning { display: block; color: #e3c800; } .input-control.success input, .input-control.success textarea, .input-control.success select { border: 1px solid #60a917; } .input-control.success.neon input, .input-control.success.neon textarea, .input-control.success.neon select { box-shadow: 0 0 25px 0 rgba(0, 128, 0, 0.7); } .input-control.success .input-state-success { display: block; color: #60a917; } .input-control.info input, .input-control.info textarea, .input-control.info select { border: 1px solid #1ba1e2; } .input-control.info.neon input, .input-control.info.neon textarea, .input-control.info.neon select { box-shadow: 0 0 25px 0 rgba(89, 205, 226, 0.7); } .input-control.info .input-state-success { display: block; color: #1ba1e2; } input.error, select.error, textarea.error { border: 1px solid #ce352c; } input.warning, select.warning, textarea.warning { border: 1px solid #e3c800; } input.info, select.info, textarea.info { border: 1px solid #1ba1e2; } input.success, select.success, textarea.success { border: 1px solid #60a917; } input.required, select.required, textarea.required { border: 1px dashed #1ba1e2; } .input-control.file input[type=file] { position: absolute; opacity: 0; width: 0.0625rem; height: 0.0625rem; } .input-control.file input[type=file]:disabled ~ input[type=text], .input-control.file input[type=file]:disabled ~ .button { background-color: #EBEBE4; } .input-control.file:hover input[type=text], .input-control.file:hover button { border-color: #787878; } .input-control .button-group { position: absolute; right: 0; top: 0; margin: 0; padding: 0; z-index: 2; } .input-control .button-group:before, .input-control .button-group:after { display: table; content: ""; } .input-control .button-group:after { clear: both; } .input-control .button-group .button { position: relative; float: left; margin: 0; } .input-control > .helper-button, .input-control > .button-group > .helper-button { visibility: hidden; margin: 0; border: 0; height: 1.875rem; padding: 0 .6rem; z-index: 100; font-size: .75rem; } .input-control > .button.helper-button { margin: 2px 2px 0; } .input-control > .button-group > .button.helper-button { margin: 2px 0 ; } .input-control > .button-group > .button.helper-button:last-child { margin-right: 2px ; } .input-control input:focus ~ .helper-button, .input-control input:focus ~ .button-group > .helper-button { visibility: visible; } .input-control input ~ .helper-button:active, .input-control input ~ .button-group > .helper-button:active { visibility: visible; } .input-control input:disabled ~ .helper-button, .input-control input:disabled ~ .button-group > .helper-button { display: none ; } .input-control.modern { position: relative; width: 12.25rem; height: 3rem; display: inline-block; margin: .625rem 0; } .input-control.modern input { position: absolute; top: 1rem; left: 0; right: 0; bottom: .5rem; border: 0; border-bottom: 2px #DDDDDD solid; background-color: transparent; outline: none; font-size: 1rem; padding-bottom: .5rem; padding-left: 0; width: 100%; z-index: 2; height: 1.75rem; } .input-control.modern input:focus { border-bottom-color: #1d1d1d; } .input-control.modern .label, .input-control.modern .informer { position: absolute; display: block; z-index: 1; color: #1d1d1d; } .input-control.modern .label { opacity: 0; top: 16px; left: 0; transition: all 0.3s linear; } .input-control.modern .informer { opacity: 0; bottom: .75rem; color: #C8C8C8; font-size: .8rem; transition: all 0.3s linear; } .input-control.modern .placeholder { font-size: 1rem; color: #C8C8C8; position: absolute; top: 1.2rem; left: 0; z-index: 1; opacity: 1; transition: all 0.3s linear; } .input-control.modern .helper-button { top: 8px; } .input-control.modern.iconic { margin-left: 32px; } .input-control.modern.iconic .icon { width: 24px; height: 24px; font-size: 24px; line-height: 1; position: absolute; left: -28px; top: 50%; margin-top: -8px; display: block; opacity: .2; transition: all 0.3s linear; } .input-control.modern.iconic .icon img { width: 100%; max-width: 100%; height: 100%; max-height: 100%; } .input-control.modern.iconic.full-size { width: calc(100% - 32px) !important; } .input-control.modern input:focus ~ .label { opacity: 1; -webkit-transform: translateY(-18px); transform: translateY(-18px); transition: all 0.3s linear; } .input-control.modern input:focus ~ .placeholder { opacity: 0; -webkit-transform: translateX(200px); transform: translateX(200px); transition: all 0.3s linear; } .input-control.modern input:focus ~ .informer { opacity: 1; color: #1d1d1d; bottom: -0.75rem; transition: all 0.3s linear; } .input-control.modern input:focus ~ .icon { opacity: 1; transition: all 0.3s linear; } .input-control.modern.error input { border-bottom-color: #ce352c; } .input-control.modern.error .informer, .input-control.modern.error .label { color: #ce352c; } .input-control.modern.success input { border-bottom-color: #60a917; } .input-control.modern.success .informer, .input-control.modern.success .label { color: #60a917; } .input-control.modern.warning input { border-bottom-color: #e3c800; } .input-control.modern.warning .informer, .input-control.modern.warning .label { color: #e3c800; } .input-control.modern.info input { border-bottom-color: #1ba1e2; } .input-control.modern.info .informer, .input-control.modern.info .label { color: #1ba1e2; } .input-control.modern input:disabled { border-bottom-style: dotted; color: #BCBCBC; } .input-control.checkbox, .input-control.radio { line-height: 1.875rem; min-width: 1rem; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .input-control.checkbox input[type="checkbox"], .input-control.radio input[type="checkbox"], .input-control.checkbox input[type="radio"], .input-control.radio input[type="radio"] { position: absolute; opacity: 0; width: 0.0625rem; height: 0.0625rem; } .input-control.checkbox .caption, .input-control.radio .caption { margin: 0 .125rem; vertical-align: middle; } .input-control.checkbox .check, .input-control.radio .check { width: 1.625rem; height: 1.625rem; background-color: #ffffff; border: 1px #999999 solid; padding: 0; position: relative; display: inline-block; vertical-align: middle; } .input-control.checkbox.text-left .check, .input-control.radio.text-left .check { margin: 0 0 0 .3125rem; } .input-control.checkbox .check:focus, .input-control.radio .check:focus { border-color: #bcd9e2; } .input-control.checkbox .check:before, .input-control.radio .check:before { position: absolute; vertical-align: middle; color: transparent; font-size: 0; content: ""; height: .3125rem; width: .565rem; background-color: transparent; border-left: .1875rem solid; border-bottom: .1875rem solid; border-color: transparent; left: 50%; top: 50%; margin-left: -0.325rem; margin-top: -0.365rem; display: block; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); transition: all 0.2s linear; } .input-control.checkbox input[type=radio] ~ .check:before, .input-control.radio input[type=radio] ~ .check:before { border-color: transparent; } .input-control.checkbox input[type="checkbox"]:checked ~ .check:before, .input-control.radio input[type="checkbox"]:checked ~ .check:before, .input-control.checkbox input[type="radio"]:checked ~ .check:before, .input-control.radio input[type="radio"]:checked ~ .check:before { border-color: #555555; transition: all 0.2s linear; } .input-control.checkbox input[type="checkbox"]:disabled ~ .caption, .input-control.radio input[type="checkbox"]:disabled ~ .caption, .input-control.checkbox input[type="radio"]:disabled ~ .caption, .input-control.radio input[type="radio"]:disabled ~ .caption { color: #cacaca; cursor: default; } .input-control.checkbox input[type="checkbox"]:disabled ~ .check, .input-control.radio input[type="checkbox"]:disabled ~ .check, .input-control.checkbox input[type="radio"]:disabled ~ .check, .input-control.radio input[type="radio"]:disabled ~ .check { border-color: #cacaca; cursor: default; } .input-control.checkbox input[type="checkbox"]:disabled:checked ~ .check:before, .input-control.radio input[type="checkbox"]:disabled:checked ~ .check:before { border-color: #cacaca; } .input-control.checkbox input[type="radio"]:disabled:checked ~ .check:before, .input-control.radio input[type="radio"]:disabled:checked ~ .check:before { background-color: #cacaca; } .input-control.checkbox input[data-show="indeterminate"] ~ .check:before, .input-control.radio input[data-show="indeterminate"] ~ .check:before, .input-control.checkbox input[data-show="indeterminate"]:checked ~ .check:before, .input-control.radio input[data-show="indeterminate"]:checked ~ .check:before, .input-control.checkbox input.indeterminate:checked ~ .check:before, .input-control.radio input.indeterminate:checked ~ .check:before, .input-control.checkbox input[type="checkbox"]:indeterminate ~ .check:before, .input-control.radio input[type="checkbox"]:indeterminate ~ .check:before { display: none; } .input-control.checkbox input[data-show="indeterminate"] ~ .check:after, .input-control.radio input[data-show="indeterminate"] ~ .check:after, .input-control.checkbox input[data-show="indeterminate"]:checked ~ .check:after, .input-control.radio input[data-show="indeterminate"]:checked ~ .check:after, .input-control.checkbox input.indeterminate:checked ~ .check:after, .input-control.radio input.indeterminate:checked ~ .check:after, .input-control.checkbox input[type="checkbox"]:indeterminate ~ .check:after, .input-control.radio input[type="checkbox"]:indeterminate ~ .check:after { position: absolute; display: block; content: ""; background-color: #1d1d1d; height: .875rem; width: .875rem; left: 50%; top: 50%; margin-left: -0.4375rem; margin-top: -0.4375rem; } .input-control.checkbox input[data-show="indeterminate"]:not(:checked) ~ .check:after, .input-control.radio input[data-show="indeterminate"]:not(:checked) ~ .check:after { background-color: transparent; } .input-control.checkbox input[data-show="indeterminate"]:disabled ~ .check:after, .input-control.radio input[data-show="indeterminate"]:disabled ~ .check:after { background-color: #cacaca; } .input-control.radio .check { border: 1px #999999 solid; border-radius: 50%; } .input-control.radio .check:before { position: absolute; display: block; content: ""; background-color: #1d1d1d; height: .5624rem; width: .5624rem; left: 50%; top: 50%; margin-left: -0.375rem; margin-top: -0.375rem; -webkit-transform: rotate(0deg); transform: rotate(0deg); border-radius: 50%; } .input-control.radio input[type="radio"]:not(:checked) ~ .check:before { background-color: transparent; } .input-control.radio input[type="radio"]:disabled ~ .check:before { border-color: transparent; } .input-control.small-check .check { width: 1rem; height: 1rem; } .input-control.small-check .check:before { width: 6px; height: 3px; margin-left: -4px; margin-top: -4px; border-width: 2px; } .input-control.small-check.radio .check:before { height: .375rem; width: .375rem; left: 50%; top: 50%; margin-left: -0.25rem; margin-top: -0.25rem; } .input-control.small-check input[data-show="indeterminate"] ~ .check:after, .input-control.small-check input[data-show="indeterminate"]:checked ~ .check:after, .input-control.small-check input.indeterminate:checked ~ .check:after, .input-control.small-check input[type="checkbox"]:indeterminate ~ .check:after { height: .375rem; width: .375rem; left: 50%; top: 50%; margin-left: -0.1875rem; margin-top: -0.1875rem; } input[type="button"], input[type="reset"], input[type="submit"] { padding: 0 1rem; height: 2.125rem; text-align: center; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; vertical-align: middle; } input[type="button"].default, input[type="reset"].default, input[type="submit"].default { background-color: #008287; color: #fff; } input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover { border-color: #787878; } input[type="button"]:active, input[type="reset"]:active, input[type="submit"]:active { background: #eeeeee; color: #262626; box-shadow: none; } input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus { outline: 0; } input[type="button"]:disabled, input[type="reset"]:disabled, input[type="submit"]:disabled, input[type="button"].disabled, input[type="reset"].disabled, input[type="submit"].disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } input[type="button"] *, input[type="reset"] *, input[type="submit"] * { color: inherit; } input[type="button"] *:hover, input[type="reset"] *:hover, input[type="submit"] *:hover { color: inherit; } input[type="button"].rounded, input[type="reset"].rounded, input[type="submit"].rounded { border-radius: .325rem; } input[type="button"] > [class*=mif-], input[type="reset"] > [class*=mif-], input[type="submit"] > [class*=mif-] { vertical-align: middle; } input[type="button"] img, input[type="reset"] img, input[type="submit"] img { height: .875rem; vertical-align: middle; margin: 0; } input[type="button"].loading-pulse, input[type="reset"].loading-pulse, input[type="submit"].loading-pulse { position: relative; padding: 0 1.325rem; } input[type="button"].loading-pulse:before, input[type="reset"].loading-pulse:before, input[type="submit"].loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } input[type="button"].loading-pulse.lighten:before, input[type="reset"].loading-pulse.lighten:before, input[type="submit"].loading-pulse.lighten:before { background-color: #fff; } input[type="button"].loading-cube, input[type="reset"].loading-cube, input[type="submit"].loading-cube { position: relative; padding: 0 1.325rem; } input[type="button"].loading-cube:before, input[type="reset"].loading-cube:before, input[type="submit"].loading-cube:before, input[type="button"].loading-cube:after, input[type="reset"].loading-cube:after, input[type="submit"].loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } input[type="button"].loading-cube:after, input[type="reset"].loading-cube:after, input[type="submit"].loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } input[type="button"].loading-cube.lighten:before, input[type="reset"].loading-cube.lighten:before, input[type="submit"].loading-cube.lighten:before, input[type="button"].loading-cube.lighten:after, input[type="reset"].loading-cube.lighten:after, input[type="submit"].loading-cube.lighten:after { background-color: #fff; } input[type="button"].dropdown-toggle, input[type="reset"].dropdown-toggle, input[type="submit"].dropdown-toggle { padding-right: 1.625rem; } input[type="button"].dropdown-toggle.drop-marker-light:before, input[type="reset"].dropdown-toggle.drop-marker-light:before, input[type="submit"].dropdown-toggle.drop-marker-light:before, input[type="button"].dropdown-toggle.drop-marker-light:after, input[type="reset"].dropdown-toggle.drop-marker-light:after, input[type="submit"].dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } input[type="button"].primary, input[type="reset"].primary, input[type="submit"].primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } input[type="button"].primary:active, input[type="reset"].primary:active, input[type="submit"].primary:active { background: #1b6eae; color: #ffffff; } input[type="button"].success, input[type="reset"].success, input[type="submit"].success { background: #60a917; color: #ffffff; border-color: #60a917; } input[type="button"].success:active, input[type="reset"].success:active, input[type="submit"].success:active { background: #128023; color: #ffffff; } input[type="button"].danger, input[type="reset"].danger, input[type="submit"].danger, input[type="button"].alert, input[type="reset"].alert, input[type="submit"].alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } input[type="button"].danger:active, input[type="reset"].danger:active, input[type="submit"].danger:active, input[type="button"].alert:active, input[type="reset"].alert:active, input[type="submit"].alert:active { background: #9a1616; color: #ffffff; } input[type="button"].info, input[type="reset"].info, input[type="submit"].info { background: #59cde2; color: #ffffff; border-color: #59cde2; } input[type="button"].info:active, input[type="reset"].info:active, input[type="submit"].info:active { background: #1ba1e2; color: #ffffff; } input[type="button"].warning, input[type="reset"].warning, input[type="submit"].warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } input[type="button"].warning:active, input[type="reset"].warning:active, input[type="submit"].warning:active { background: #bf5a15; color: #ffffff; } input[type="button"].link, input[type="reset"].link, input[type="submit"].link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } input[type="button"].link:hover, input[type="reset"].link:hover, input[type="submit"].link:hover, input[type="button"].link:active, input[type="reset"].link:active, input[type="submit"].link:active { background: transparent; color: #114968; border-color: transparent; } .switch, .switch-original { display: inline-block; margin: 0 .625rem 0 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .switch input, .switch-original input { position: absolute; opacity: 0; width: 0.0625rem; height: 0.0625rem; } .switch .check, .switch-original .check, .switch .caption, .switch-original .caption { display: inline-block; vertical-align: middle; line-height: 18px; } .switch .check { width: 36px; height: 16px; background-color: #929292; border-radius: 8px; overflow: visible; position: relative; } .switch .check:before { position: absolute; display: block; content: ""; width: 22px; height: 22px; z-index: 2; margin-top: -4px; margin-left: -3px; border-radius: 50%; background-color: #ffffff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); } .switch input:checked ~ .check { background-color: #008287; } .switch input:not(:checked) ~ .check:before { background-color: #ffffff; transition: all 0.2s linear; } .switch input:checked ~ .check { background-color: #008287; } .switch input:checked ~ .check:before { -webkit-transform: translateX(22px); transform: translateX(22px); transition: all 0.2s linear; } .switch input:disabled ~ .check { background-color: #D5D5D5; } .switch input:disabled ~ .check:before { background-color: #BDBDBD; } .switch-original .caption { margin: 0 5px; } .switch-original .check { position: relative; height: 1.125rem; width: 2.8125rem; outline: 2px #a6a6a6 solid; border: 1px #fff solid; cursor: pointer; background: #A6A6A6; z-index: 1; display: inline-block; vertical-align: middle; } .switch-original .check:after { position: absolute; left: -1px; top: -1px; display: block; content: ""; height: 1rem; width: .5625rem; outline: 2px #333 solid; border: 1px #333 solid; cursor: pointer; background: #333; z-index: 2; transition: all 0.2s linear; } .switch-original input[type="checkbox"]:focus ~ .check { outline: 1px #999999 dotted; } .switch-original input[type="checkbox"]:checked ~ .check { background: #008287; } .switch-original input[type="checkbox"]:checked ~ .check:after { left: auto; -webkit-transform: translateX(2rem); transform: translateX(2rem); transition: all 0.2s linear; } .switch-original input[type="checkbox"]:disabled ~ .check { background-color: #e6e6e6; border-color: #ffffff; } .switch-original input[type="checkbox"]:disabled ~ .check:after { background-color: #8a8a8a; outline-color: #8a8a8a; border-color: #8a8a8a; } .progress, .progress-bar { display: block; position: relative; width: 100%; height: auto; margin: .625rem 0; background: #eeeeee; overflow: hidden; } .progress:before, .progress-bar:before, .progress:after, .progress-bar:after { display: table; content: ""; } .progress:after, .progress-bar:after { clear: both; } .progress .bar, .progress-bar .bar { position: relative; display: block; float: left; width: 0; background-color: #1ba1e2; z-index: 1; text-align: center; height: .625rem; line-height: .625rem; color: #ffffff; } .progress.small > .bar, .progress-bar.small > .bar { height: .3125rem; } .progress.large > .bar, .progress-bar.large > .bar { height: 1rem; } .progress.gradient-bar .bar, .progress-bar.gradient-bar .bar { background: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55); } .popover { display: block; min-width: 12.5rem; height: auto; position: relative; background-color: #eeeeee; padding: 1.25rem; } .popover * { color: inherit; } .popover.popover-shadow { box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4); } .popover:before { content: ""; width: .625rem; height: .625rem; display: block; position: absolute; background-color: inherit; left: -0.3125rem; top: 50%; margin-top: -0.3125rem; -webkit-transform: rotate(45deg); transform: rotate(45deg); } .popover.marker-on-top:before { top: 0; left: 50%; margin-left: -0.3125rem; } .popover.marker-on-right:before { top: 50%; margin-top: -0.3125rem; left: 100%; margin-left: -0.3125rem; } .popover.marker-on-bottom:before { top: 100%; margin-left: -0.3125rem; left: 50%; margin-top: -0.3125rem; } .overlay { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.5); z-index: 1049; } .overlay.transparent { background-color: rgba(255, 255, 255, 0); } .window { display: block; position: relative; height: auto; width: 100%; background-color: #ffffff; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3); } .window-caption { position: relative; background-color: #ffffff; padding: .4375rem .3125rem; border-bottom: 1px #e9e9e9 solid; border-top: 0; cursor: default; } .window-caption .window-caption-title { font-size: .875rem; font-style: normal; font-weight: 700; } .window-caption .window-caption-icon { margin-left: .3125rem; } .window-caption .window-caption-icon * { height: 1rem; width: 1rem; } .window-caption .window-caption-icon ~ .window-caption-title { padding-left: .3125rem; } .window-caption .btn-close, .window-caption .btn-min, .window-caption .btn-max { position: absolute; height: 1.5rem; width: 1.5rem; min-height: 1.5rem; text-align: center; vertical-align: middle; font-size: 1rem; font-weight: normal; padding: 0 0 .625rem 0; z-index: 3; outline: none; cursor: pointer; display: block; background-color: #ffffff; color: #777777; top: .25rem; right: .25rem; } .window-caption .btn-close:hover, .window-caption .btn-min:hover, .window-caption .btn-max:hover { background-color: #cde6f7; color: #2a8dd4; } .window-caption .btn-close:hover:after, .window-caption .btn-min:hover:after, .window-caption .btn-max:hover:after { border-color: #2a8dd4; } .window-caption .btn-close:active, .window-caption .btn-min:active, .window-caption .btn-max:active { background-color: #92c0e0; color: #ffffff; } .window-caption .btn-close:after, .window-caption .btn-min:after, .window-caption .btn-max:after { border-color: #777777; content: '\D7'; position: absolute; left: 50%; top: -2px; margin-left: -0.25em; } .window-caption .btn-min:after, .window-caption .btn-max:after { display: block; position: absolute; width: .625rem; height: .625rem; border: 0 #000 solid; border-bottom-width: 2px; content: ' '; bottom: .375rem; left: 50%; margin-left: -0.375rem; top: auto; } .window-caption .btn-max:after { height: .375rem; border: 1px #000 solid; border-top-width: 2px; } .window-caption .btn-max { right: 1.8125rem; } .window-caption .btn-min { right: 3.375rem; } .window-caption .btn-close:after { margin-top: .1875rem; margin-left: -0.3125rem; } .window-content { position: relative; width: 100%; height: auto; display: block; padding: .25rem; } .window.success { box-shadow: 0 0 25px 0 rgba(0, 128, 0, 0.7); } .window.success .window-caption { background-color: #60a917; color: #ffffff; } .window.error { box-shadow: 0 0 25px 0 rgba(128, 0, 0, 0.7); } .window.error .window-caption { background-color: #ce352c; color: #ffffff; } .window.warning { box-shadow: 0 0 25px 0 rgba(255, 165, 0, 0.7); } .window.warning .window-caption { background-color: #fa6800; color: #ffffff; } .simple-list, .numeric-list { list-style: none; counter-reset: li; padding-left: 0; margin-left: .625rem; color: #262626; } .simple-list li ul, .numeric-list li ul, .simple-list li ol, .numeric-list li ol { list-style: none; padding-left: 1.5625rem; } .simple-list li, .numeric-list li { position: relative; padding: 4px 12px; list-style: none; color: inherit; } .simple-list li:before, .numeric-list li:before { position: absolute; top: 50%; margin-top: -0.8rem; left: -0.625rem; color: #59cde2; font-size: 2rem; vertical-align: middle; width: 1.25rem; height: 1.25rem; line-height: 1.25rem; } .simple-list ul, .numeric-list ul { margin: 4px .5em 0; } .simple-list > li:before { content: "\2022"; } .simple-list ul li:before { content: "\00B7"; } .numeric-list > li { padding: 4px 12px 4px 18px; } .numeric-list > li:before { content: counter(li); counter-increment: li; font-size: .8rem ; color: #ffffff; background-color: #59cde2; border-radius: 50%; text-align: center; margin-top: -0.65rem; } .numeric-list.square-marker > li:before, .numeric-list.square-bullet > li:before { border-radius: 0; } .simple-list.large-bullet li, .numeric-list.large-bullet li { margin: 6px 0; padding-left: 2rem; } .simple-list.large-bullet li:before, .numeric-list.large-bullet li:before { line-height: 2rem; width: 2rem; height: 2rem; margin-top: -1rem; } .simple-list.large-bullet li { padding-left: 1rem; } .simple-list.large-bullet li:before { margin-top: -1.3rem; font-size: 3rem; } .simple-list.dark-bullet li:before { color: #1d1d1d; } .simple-list.alert-bullet li:before { color: #ce352c; } .simple-list.info-bullet li:before { color: #1ba1e2; } .simple-list.success-bullet li:before { color: #60a917; } .simple-list.warning-bullet li:before { color: #e3c800; } .simple-list.red-bullet li:before { color: #ce352c; } .simple-list.blue-bullet li:before { color: #1ba1e2; } .simple-list.green-bullet li:before { color: #60a917; } .simple-list.yellow-bullet li:before { color: #e3c800; } .numeric-list.dark-bullet li:before { background-color: #1d1d1d; } .numeric-list.alert-bullet li:before { background-color: #ce352c; } .numeric-list.info-bullet li:before { background-color: #1ba1e2; } .numeric-list.success-bullet li:before { background-color: #60a917; } .numeric-list.warning-bullet li:before { background-color: #e3c800; } .numeric-list.red-bullet li:before { background-color: #ce352c; } .numeric-list.blue-bullet li:before { background-color: #1ba1e2; } .numeric-list.green-bullet li:before { background-color: #60a917; } .numeric-list.yellow-bullet li:before { background-color: #e3c800; } .step-list { margin: 0 0 0 2rem; padding: 0; list-style-type: none; counter-reset: li; } .step-list > li { border-left: 1px #ccc solid; position: relative; padding: 0 .625rem; margin: .625rem; vertical-align: top; } .step-list > li:before { position: absolute; content: counter(li); counter-increment: li; font-size: 2rem; color: #999999; left: 0; top: .3125rem; margin-left: -1.5rem; } .image-container { display: inline-block; position: relative; vertical-align: middle; max-width: 100%; background-color: transparent; } .image-container .frame { background-color: #ffffff; position: relative; width: 100%; height: 100%; } .image-container img { display: block; width: 100%; height: 100%; } .image-container .image-overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; opacity: 0; overflow: hidden; font-size: .875rem; line-height: 1rem; padding: 1em 1.5em; background-color: rgba(27, 161, 226, 0.7); color: #ffffff; text-align: center; border-radius: inherit; transition: all 0.65s ease; } .image-container .image-overlay:hover { opacity: 1; } .image-container .image-overlay:hover:before, .image-container .image-overlay:hover:after { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } .image-container .image-overlay:before, .image-container .image-overlay:after { display: block; position: absolute; content: ""; border: 1px solid rgba(255, 255, 255, 0.7); top: 1em; bottom: 1em; left: 1em; right: 1em; opacity: 0; border-radius: inherit; -webkit-transform: scale(1.5); transform: scale(1.5); transition: all 0.65s ease; } .image-container .image-overlay:after { border-left: none; border-right: none; bottom: 1em; top: 1em; } .image-container .image-overlay:before { border-top: none; border-bottom: none; bottom: 1em; top: 1em; } .image-container.diamond { overflow: hidden; } .image-container.diamond .frame { -webkit-transform: rotate(45deg); transform: rotate(45deg); overflow: hidden; } .image-container.diamond .frame img, .image-container.diamond .frame .image-replacer { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .image-container.rounded img { border-radius: 0.3125rem; } .image-container.bordered .frame { border: 1px #eeeeee solid; padding: .5rem; } .image-container.polaroid .frame { border: 1px #eeeeee solid; padding: .5rem .5rem 2rem; } .image-container.handing { margin-top: 20px; } .image-container.handing .frame { border: 1px #eeeeee solid; position: relative; padding: .5rem; } .image-container.handing .frame:after { content: ""; position: absolute; width: .625rem; height: .625rem; background-color: #647687; border-radius: 50%; top: -20%; left: 50%; margin-left: -0.3125rem; z-index: 3; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); } .image-container.handing.image-format-hd .frame:after { top: -25%; } .image-container.handing.image-format-square .frame:after { top: -15%; } .image-container.handing:after { position: absolute; content: ""; background-color: transparent; border-top: 1px solid #eeeeee; -webkit-transform: rotate(-16deg); transform: rotate(-16deg); z-index: 2; top: 0; left: 0; width: 50%; height: 50%; -webkit-transform-origin: top left; transform-origin: top left; } .image-container.handing:before { position: absolute; content: ""; background-color: transparent; border-top: 1px solid #eeeeee; -webkit-transform: rotate(16deg); transform: rotate(16deg); z-index: 2; top: 0; right: 0; width: 50%; height: 50%; -webkit-transform-origin: top right; transform-origin: top right; } .image-container.handing.ani { -webkit-transform-origin: 50% -25px; transform-origin: 50% -25px; -webkit-animation: swinging 10s ease-in-out 0s infinite; animation: swinging 10s ease-in-out 0s infinite; } .image-container.handing.ani-hover:hover { -webkit-transform-origin: 50% -25px; transform-origin: 50% -25px; -webkit-animation: swinging 5s ease-in-out 0s; animation: swinging 5s ease-in-out 0s; } .ani-spin, .ani-hover-spin:hover { -webkit-animation: ani-spin 1.5s linear infinite; animation: ani-spin 1.5s linear infinite; } .ani-spin.ani-fast, .ani-hover-spin.ani-fast:hover { -webkit-animation: ani-spin 0.7s linear infinite; animation: ani-spin 0.7s linear infinite; } .ani-spin.ani-slow, .ani-hover-spin.ani-slow:hover { -webkit-animation: ani-spin 2.2s linear infinite; animation: ani-spin 2.2s linear infinite; } .ani-pulse, .ani-hover-pulse:hover { -webkit-animation: ani-pulse 1.7s infinite; animation: ani-pulse 1.7s infinite; } .ani-pulse.ani-fast, .ani-hover-pulse.ani-fast:hover { -webkit-animation: ani-pulse 1s infinite; animation: ani-pulse 1s infinite; } .ani-pulse.ani-slow, .ani-hover-pulse.ani-slow:hover { -webkit-animation: ani-pulse 3s infinite; animation: ani-pulse 3s infinite; } .ani-spanner, .ani-hover-spanner:hover { transform-origin-x: 90%; transform-origin-y: 35%; transform-origin-z: initial; -webkit-animation: ani-wrench 2.5s ease infinite; animation: ani-wrench 2.5s ease infinite; } .ani-spanner.ani-fast, .ani-hover-spanner.ani-fast:hover { -webkit-animation: ani-wrench 1.2s ease infinite; animation: ani-wrench 1.2s ease infinite; } .ani-spanner.ani-slow, .ani-hover-spanner.ani-slow:hover { -webkit-animation: ani-wrench 3.7s ease infinite; animation: ani-wrench 3.7s ease infinite; } .ani-ring, .ani-hover-ring:hover { transform-origin-x: 50%; transform-origin-y: 0px; transform-origin-z: initial; -webkit-animation: ani-ring 2s ease infinite; animation: ani-ring 2s ease infinite; } .ani-ring.ani-fast, .ani-hover-ring.ani-fast:hover { -webkit-animation: ani-ring 1s ease infinite; animation: ani-ring 1s ease infinite; } .ani-ring.ani-slow, .ani-hover-ring.ani-slow:hover { -webkit-animation: ani-ring 3s ease infinite; animation: ani-ring 3s ease infinite; } .ani-vertical, .ani-hover-vertical:hover { -webkit-animation: ani-vertical 2s ease infinite; animation: ani-vertical 2s ease infinite; } .ani-vertical.ani-fast, .ani-vertical.ani-fast:hover { -webkit-animation: ani-vertical 1s ease infinite; animation: ani-vertical 1s ease infinite; } .ani-vertical.ani-slow, .ani-hover-vertical.ani-slow:hover { -webkit-animation: ani-vertical 4s ease infinite; animation: ani-vertical 4s ease infinite; } .ani-horizontal, .ani-hover-horizontal:hover { -webkit-animation: ani-horizontal 2s ease infinite; animation: ani-horizontal 2s ease infinite; } .ani-horizontal.ani-fast, .ani-horizontal.ani-fast:hover { -webkit-animation: ani-horizontal 1s ease infinite; animation: ani-horizontal 1s ease infinite; } .ani-horizontal.ani-slow, .ani-horizontal.ani-slow:hover { -webkit-animation: ani-horizontal 3s ease infinite; animation: ani-horizontal 3s ease infinite; } .ani-flash, .ani-hover-flash:hover { -webkit-animation: ani-flash 2s ease infinite; animation: ani-flash 2s ease infinite; } .ani-flash.ani-fast, .ani-hover-flash.ani-fast:hover { -webkit-animation: ani-flash 1s ease infinite; animation: ani-flash 1s ease infinite; } .ani-flash.ani-slow, .ani-hover-flash.ani-slow:hover { -webkit-animation: ani-flash 3s ease infinite; animation: ani-flash 3s ease infinite; } .ani-bounce, .ani-hover-bounce:hover { -webkit-animation: ani-bounce 2s ease infinite; animation: ani-bounce 2s ease infinite; } .ani-bounce.ani-fast, .ani-hover-bounce.ani-fast:hover { -webkit-animation: ani-bounce 1s ease infinite; animation: ani-bounce 1s ease infinite; } .ani-bounce.ani-slow, .ani-hover-bounce.ani-slow:hover { -webkit-animation: ani-bounce 3s ease infinite; animation: ani-bounce 3s ease infinite; } .ani-float, .ani-hover-float:hover { -webkit-animation: ani-float 2s linear infinite; animation: ani-float 2s linear infinite; } .ani-float.ani-fast, .ani-hover-float.ani-fast:hover { -webkit-animation: ani-float 1s linear infinite; animation: ani-float 1s linear infinite; } .ani-float.ani-slow, .ani-hover-float.ani-slow:hover { -webkit-animation: ani-float 3s linear infinite; animation: ani-float 3s linear infinite; } .ani-heartbeat, .ani-hover-heartbeat:hover { -webkit-animation: ani-heartbeat 2s linear infinite; animation: ani-heartbeat 2s linear infinite; } .ani-heartbeat.ani-fast, .ani-hover-heartbeat.ani-fast:hover { -webkit-animation: ani-heartbeat 1s linear infinite; animation: ani-heartbeat 1s linear infinite; } .ani-heartbeat.ani-slow, .ani-hover-heartbeat.ani-slow:hover { -webkit-animation: ani-heartbeat 3s linear infinite; animation: ani-heartbeat 3s linear infinite; } .ani-shake, .ani-hover-shake:hover { -webkit-animation: ani-wrench 2.5s ease infinite; animation: ani-wrench 2.5s ease infinite; } .ani-shake.ani-fast, .ani-hover-shake.ani-fast:hover { -webkit-animation: ani-wrench 1.2s ease infinite; animation: ani-wrench 1.2s ease infinite; } .ani-shake.ani-slow, .ani-hover-shake.ani-slow:hover { -webkit-animation: ani-wrench 3.7s ease infinite; animation: ani-wrench 3.7s ease infinite; } .ani-shuttle, .ani-hover-shuttle:hover { -webkit-animation: ani-shuttle 2s linear infinite; animation: ani-shuttle 2s linear infinite; } .ani-shuttle.ani-fast, .ani-hover-shuttle.ani-fast:hover { -webkit-animation: ani-shuttle 1s linear infinite; animation: ani-shuttle 1s linear infinite; } .ani-shuttle.ani-slow, .ani-hover-shuttle.ani-slow:hover { -webkit-animation: ani-shuttle 3s linear infinite; animation: ani-shuttle 3s linear infinite; } .ani-pass, .ani-hover-pass:hover { -webkit-animation: ani-pass 2s linear infinite; animation: ani-pass 2s linear infinite; } .ani-pass.ani-fast, .ani-hover-pass.ani-fast:hover { -webkit-animation: ani-pass 1s linear infinite; animation: ani-pass 1s linear infinite; } .ani-pass.ani-slow, .ani-hover-pass.ani-slow:hover { -webkit-animation: ani-pass 3s linear infinite; animation: ani-pass 3s linear infinite; } .ani-ripple, .ani-hover-ripple:hover { -webkit-animation: ani-ripple 2s infinite linear; animation: ani-ripple 2s infinite linear; } .ani-ripple.ani-fast, .ani-hover-ripple.ani-fast:hover { -webkit-animation: ani-ripple 1s infinite linear; animation: ani-ripple 1s infinite linear; } .ani-ripple.ani-slow, .ani-hover-ripple.ani-slow:hover { -webkit-animation: ani-ripple 3s infinite linear; animation: ani-ripple 3s infinite linear; } @-webkit-keyframes swinging { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 5% { -webkit-transform: rotate(10deg); transform: rotate(10deg); } 10% { -webkit-transform: rotate(-9deg); transform: rotate(-9deg); } 15% { -webkit-transform: rotate(8deg); transform: rotate(8deg); } 20% { -webkit-transform: rotate(-7deg); transform: rotate(-7deg); } 25% { -webkit-transform: rotate(6deg); transform: rotate(6deg); } 30% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); } 35% { -webkit-transform: rotate(4deg); transform: rotate(4deg); } 40% { -webkit-transform: rotate(-3deg); transform: rotate(-3deg); } 45% { -webkit-transform: rotate(2deg); transform: rotate(2deg); } 50% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @keyframes swinging { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 5% { -webkit-transform: rotate(10deg); transform: rotate(10deg); } 10% { -webkit-transform: rotate(-9deg); transform: rotate(-9deg); } 15% { -webkit-transform: rotate(8deg); transform: rotate(8deg); } 20% { -webkit-transform: rotate(-7deg); transform: rotate(-7deg); } 25% { -webkit-transform: rotate(6deg); transform: rotate(6deg); } 30% { -webkit-transform: rotate(-5deg); transform: rotate(-5deg); } 35% { -webkit-transform: rotate(4deg); transform: rotate(4deg); } 40% { -webkit-transform: rotate(-3deg); transform: rotate(-3deg); } 45% { -webkit-transform: rotate(2deg); transform: rotate(2deg); } 50% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @-webkit-keyframes scaleout { 0% { -webkit-transform: scale(0); transform: scale(0); } 100% { -webkit-transform: scale(1); transform: scale(1); opacity: 0; } } @keyframes scaleout { 0% { -webkit-transform: scale(0); transform: scale(0); } 100% { -webkit-transform: scale(1); transform: scale(1); opacity: 0; } } @-webkit-keyframes cubemove { 25% { -webkit-transform: translateX(10px) rotate(-90deg); transform: translateX(10px) rotate(-90deg); } 50% { -webkit-transform: translateX(10px) translateY(10px) rotate(-179deg); transform: translateX(10px) translateY(10px) rotate(-179deg); } 50.1% { -webkit-transform: translateX(10px) translateY(10px) rotate(-180deg); transform: translateX(10px) translateY(10px) rotate(-180deg); } 75% { -webkit-transform: translateX(0px) translateY(10px) rotate(-270deg); transform: translateX(0px) translateY(10px) rotate(-270deg); } 100% { -webkit-transform: rotate(-360deg); transform: rotate(-360deg); } } @keyframes cubemove { 25% { -webkit-transform: translateX(10px) rotate(-90deg); transform: translateX(10px) rotate(-90deg); } 50% { -webkit-transform: translateX(10px) translateY(10px) rotate(-179deg); transform: translateX(10px) translateY(10px) rotate(-179deg); } 50.1% { -webkit-transform: translateX(10px) translateY(10px) rotate(-180deg); transform: translateX(10px) translateY(10px) rotate(-180deg); } 75% { -webkit-transform: translateX(0px) translateY(10px) rotate(-270deg); transform: translateX(0px) translateY(10px) rotate(-270deg); } 100% { -webkit-transform: rotate(-360deg); transform: rotate(-360deg); } } @-webkit-keyframes orbit { 0% { opacity: 1; -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; -webkit-transform: rotate(225deg); transform: rotate(225deg); } 7% { -webkit-transform: rotate(345deg); transform: rotate(345deg); -webkit-animation-timing-function: linear; animation-timing-function: linear; } 35% { -webkit-transform: rotate(495deg); transform: rotate(495deg); -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 42% { -webkit-transform: rotate(690deg); transform: rotate(690deg); -webkit-animation-timing-function: linear; animation-timing-function: linear; } 70% { opacity: 1; -webkit-transform: rotate(835deg); transform: rotate(835deg); -webkit-animation-timing-function: linear; animation-timing-function: linear; } 76% { opacity: 1; } 77% { -webkit-transform: rotate(955deg); transform: rotate(955deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 78% { -webkit-transform: rotate(955deg); transform: rotate(955deg); opacity: 0; } 100% { -webkit-transform: rotate(955deg); transform: rotate(955deg); opacity: 0; } } @keyframes orbit { 0% { opacity: 1; -webkit-animation-timing-function: ease-out; animation-timing-function: ease-out; -webkit-transform: rotate(225deg); transform: rotate(225deg); } 7% { -webkit-transform: rotate(345deg); transform: rotate(345deg); -webkit-animation-timing-function: linear; animation-timing-function: linear; } 35% { -webkit-transform: rotate(495deg); transform: rotate(495deg); -webkit-animation-timing-function: ease-in-out; animation-timing-function: ease-in-out; } 42% { -webkit-transform: rotate(690deg); transform: rotate(690deg); -webkit-animation-timing-function: linear; animation-timing-function: linear; } 70% { opacity: 1; -webkit-transform: rotate(835deg); transform: rotate(835deg); -webkit-animation-timing-function: linear; animation-timing-function: linear; } 76% { opacity: 1; } 77% { -webkit-transform: rotate(955deg); transform: rotate(955deg); -webkit-animation-timing-function: ease-in; animation-timing-function: ease-in; } 78% { -webkit-transform: rotate(955deg); transform: rotate(955deg); opacity: 0; } 100% { -webkit-transform: rotate(955deg); transform: rotate(955deg); opacity: 0; } } @-webkit-keyframes metro-slide { 0% { left: -50%; } 100% { left: 150%; } } @keyframes metro-slide { 0% { left: -50%; } 100% { left: 150%; } } @-webkit-keyframes metro-opacity { 0% { opacity: 0; } 50% { opacity: .5; } 100% { opacity: 1; } } @keyframes metro-opacity { 0% { opacity: 0; } 50% { opacity: .5; } 100% { opacity: 1; } } @-webkit-keyframes ani-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } @keyframes ani-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } @-webkit-keyframes ani-pulse { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } @keyframes ani-pulse { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } @-webkit-keyframes ani-wrench { 0% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 8% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 10% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 18% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 20% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 28% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 30% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 38% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 40% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 48% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 50% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 58% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 60% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 68% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 75% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @keyframes ani-wrench { 0% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 8% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 10% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 18% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 20% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 28% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 30% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 38% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 40% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 48% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 50% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 58% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 60% { -webkit-transform: rotate(-24deg); transform: rotate(-24deg); } 68% { -webkit-transform: rotate(24deg); transform: rotate(24deg); } 75% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @-webkit-keyframes ani-ring { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 2% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 4% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 6% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 8% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 10% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 12% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 14% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 18% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 20% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @keyframes ani-ring { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 2% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 4% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 6% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 8% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 10% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 12% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 14% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 18% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 20% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @-webkit-keyframes ani-vertical { 0% { -webkit-transform: translate(0, -3px); transform: translate(0, -3px); } 4% { -webkit-transform: translate(0, 3px); transform: translate(0, 3px); } 8% { -webkit-transform: translate(0, -3px); transform: translate(0, -3px); } 12% { -webkit-transform: translate(0, 3px); transform: translate(0, 3px); } 16% { -webkit-transform: translate(0, -3px); transform: translate(0, -3px); } 20% { -webkit-transform: translate(0, 3px); transform: translate(0, 3px); } 22% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } } @keyframes ani-vertical { 0% { -webkit-transform: translate(0, -3px); transform: translate(0, -3px); } 4% { -webkit-transform: translate(0, 3px); transform: translate(0, 3px); } 8% { -webkit-transform: translate(0, -3px); transform: translate(0, -3px); } 12% { -webkit-transform: translate(0, 3px); transform: translate(0, 3px); } 16% { -webkit-transform: translate(0, -3px); transform: translate(0, -3px); } 20% { -webkit-transform: translate(0, 3px); transform: translate(0, 3px); } 22% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } } @-webkit-keyframes ani-horizontal { 0% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } 6% { -webkit-transform: translate(5px, 0); transform: translate(5px, 0); } 12% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } 18% { -webkit-transform: translate(5px, 0); transform: translate(5px, 0); } 24% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } 30% { -webkit-transform: translate(5px, 0); transform: translate(5px, 0); } 36% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } } @keyframes ani-horizontal { 0% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } 6% { -webkit-transform: translate(5px, 0); transform: translate(5px, 0); } 12% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } 18% { -webkit-transform: translate(5px, 0); transform: translate(5px, 0); } 24% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } 30% { -webkit-transform: translate(5px, 0); transform: translate(5px, 0); } 36% { -webkit-transform: translate(0, 0); transform: translate(0, 0); } } @-webkit-keyframes ani-flash { 0%, 100%, 50% { opacity: 1; } 25%, 75% { opacity: 0; } } @keyframes ani-flash { 0%, 100%, 50% { opacity: 1; } 25%, 75% { opacity: 0; } } @-webkit-keyframes ani-bounce { 0%, 10%, 20%, 50%, 80% { -webkit-transform: translateY(0); transform: translateY(0); } 40% { -webkit-transform: translateY(-15px); transform: translateY(-15px); } 60% { -webkit-transform: translateY(-15px); transform: translateY(-15px); } } @keyframes ani-bounce { 0%, 10%, 20%, 50%, 80% { -webkit-transform: translateY(0); transform: translateY(0); } 40% { -webkit-transform: translateY(-15px); transform: translateY(-15px); } 60% { -webkit-transform: translateY(-15px); transform: translateY(-15px); } } @-webkit-keyframes ani-float { 0% { -webkit-transform: translateY(0); transform: translateY(0); } 50% { -webkit-transform: translateY(-6px); transform: translateY(-6px); } 100% { -webkit-transform: translateY(0); transform: translateY(0); } } @keyframes ani-float { 0% { -webkit-transform: translateY(0); transform: translateY(0); } 50% { -webkit-transform: translateY(-6px); transform: translateY(-6px); } 100% { -webkit-transform: translateY(0); transform: translateY(0); } } @-webkit-keyframes ani-heartbeat { 0% { -webkit-transform: scale(1.1); transform: scale(1.1); } 50% { -webkit-transform: scale(0.8); transform: scale(0.8); } 100% { -webkit-transform: scale(1.1); transform: scale(1.1); } } @keyframes ani-heartbeat { 0% { -webkit-transform: scale(1.1); transform: scale(1.1); } 50% { -webkit-transform: scale(0.8); transform: scale(0.8); } 100% { -webkit-transform: scale(1.1); transform: scale(1.1); } } @-webkit-keyframes ani-shuttle { 0% { -webkit-transform: scale(1); transform: scale(1); } 10%, 20% { -webkit-transform: scale(0.9) rotate(-8deg); transform: scale(0.9) rotate(-8deg); } 30%, 50%, 70% { -webkit-transform: scale(1.3) rotate(8deg); transform: scale(1.3) rotate(8deg); } 40%, 60% { -webkit-transform: scale(1.3) rotate(-8deg); transform: scale(1.3) rotate(-8deg); } 80% { -webkit-transform: scale(1) rotate(0); transform: scale(1) rotate(0); } } @keyframes ani-shuttle { 0% { -webkit-transform: scale(1); transform: scale(1); } 10%, 20% { -webkit-transform: scale(0.9) rotate(-8deg); transform: scale(0.9) rotate(-8deg); } 30%, 50%, 70% { -webkit-transform: scale(1.3) rotate(8deg); transform: scale(1.3) rotate(8deg); } 40%, 60% { -webkit-transform: scale(1.3) rotate(-8deg); transform: scale(1.3) rotate(-8deg); } 80% { -webkit-transform: scale(1) rotate(0); transform: scale(1) rotate(0); } } @-webkit-keyframes ani-pass { 0% { -webkit-transform: translateX(-50%); transform: translateX(-50%); opacity: 0; } 50% { -webkit-transform: translateX(0%); transform: translateX(0%); opacity: 1; } 100% { -webkit-transform: translateX(50%); transform: translateX(50%); opacity: 0; } } @keyframes ani-pass { 0% { -webkit-transform: translateX(-50%); transform: translateX(-50%); opacity: 0; } 50% { -webkit-transform: translateX(0%); transform: translateX(0%); opacity: 1; } 100% { -webkit-transform: translateX(50%); transform: translateX(50%); opacity: 0; } } @-webkit-keyframes ani-ripple { 0% { opacity: .6; } 50% { -webkit-transform: scale(1.8); transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } } @keyframes ani-ripple { 0% { opacity: .6; } 50% { -webkit-transform: scale(1.8); transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } } .calendar { min-width: 13.75rem; border: 1px #eeeeee solid; font-size: .75rem; padding: .3125rem; background-color: #ffffff; } .calendar .calendar-grid { margin: 0; padding: 0; } .calendar .calendar-row { margin: 0 0 .3125rem; width: 100%; } .calendar .calendar-row:before, .calendar .calendar-row:after { display: table; content: ""; } .calendar .calendar-row:after { clear: both; } .calendar .calendar-row:last-child { margin-bottom: 0; } .calendar .calendar-cell { width: 12.46201429%; margin: 0 0 0 2.12765%; display: block; float: left; } .calendar .calendar-cell:first-child { margin-left: 0; } .calendar .calendar-cell.sel-month { width: 41.64134286%; } .calendar .calendar-cell.sel-year { width: 48.936175%; } .calendar .calendar-cell.sel-plus, .calendar .calendar-cell.sel-minus { width: 23.4042625%; } .calendar .calendar-cell.month-cell, .calendar .calendar-cell.year-cell { width: 23.4042625%; } .calendar .calendar-actions .button { margin: .15625rem; } .calendar .day-of-week { padding: .3125rem; cursor: default; } .calendar a { display: block; padding: .3125rem 0; } .calendar a:hover { background-color: #75c7ee; color: #ffffff; border-radius: inherit; } .calendar .calendar-header { background-color: #59cde2; color: #ffffff; } .calendar .calendar-header a { color: #ffffff; padding: .325rem; } .calendar .calendar-header a:hover { background-color: #47b4e9; color: #ffffff; } .calendar .calendar-actions:before, .calendar .calendar-actions:after { display: table; content: ""; } .calendar .calendar-actions:after { clear: both; } .calendar .today a { background-color: #60a917; color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .calendar .day { border: 1px #bcd9e2 solid; text-align: center; } .calendar .day a { display: block; position: relative; text-align: center; } .calendar .month, .calendar .year { border: 1px #bcd9e2 solid; } .calendar .month a, .calendar .year a { padding-top: 1.3125rem; padding-bottom: 1.3125rem; } .calendar .empty { cursor: default; } .calendar .other-day { display: block; text-align: center; color: #999999; padding: .325rem; background-color: #eeeeee; border: 1px #bcd9e2 solid; } .calendar .exclude { background-color: #ce352c; } .calendar .exclude a { cursor: not-allowed; background-color: #ce352c; color: #ffffff; } .calendar .stored { background-color: #f472d0; } .calendar .stored a { cursor: pointer; background-color: #f472d0; color: #ffffff; } .calendar .selected { background-color: #59cde2; } .calendar .selected a { background-color: #59cde2; color: #ffffff; } .calendar.rounded button { border-radius: 0.3125rem; } .calendar.rounded .day, .calendar.rounded .month, .calendar.rounded .year, .calendar.rounded .other-day, .calendar.rounded .today, .calendar.rounded .calendar-header, .calendar.rounded .selected { border-radius: 0.3125rem; } .calendar.rounded .today a, .calendar.rounded .selected a, .calendar.rounded .exclude a { border-radius: 0.3125rem; } .calendar.rounded .calendar-header a:hover { border-radius: 0.3125rem; } .calendar.no-border .day, .calendar.no-border .month, .calendar.no-border .year, .calendar.no-border .other-day, .calendar.no-border .today, .calendar.no-border .calendar-header { border: 0; } .calendar.no-border .today a { border: 0; } .calendar-dropdown { border: 0; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3); } .stepper { margin: 10px 0; } .stepper:before, .stepper:after { display: table; content: ""; } .stepper:after { clear: both; } .stepper > ul { counter-reset: li; border-top: 1px #1d1d1d dotted; position: relative; padding: 0; margin: 30px 0; width: 100%; } .stepper > ul li { list-style: none; float: left; width: 2em; height: 2em; margin-top: -1em; position: absolute; left: 0; background: #666; cursor: pointer; font-size: .875rem; } .stepper > ul li:before { content: counter(li); counter-increment: li; position: absolute; box-sizing: border-box; padding: .3em 10px; color: #fff; font-weight: bold; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .9em; text-align: center; } .stepper > ul li:hover { background-color: #999999; } .stepper > ul li.current, .stepper > ul li.complete { transition: all 0.2s ease; } .stepper > ul li.current { background-color: #1ba1e2; } .stepper > ul li.current:hover { background-color: #00ccff; } .stepper > ul li.complete { background-color: #60a917; } .stepper > ul li.complete:hover { background-color: #7ad61d; } .stepper.cycle li { border-radius: 50%; } .stepper.diamond li { -webkit-transform: rotate(45deg); transform: rotate(45deg); } .stepper.diamond li:before { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .wizard .steps { margin: 10px 0; padding: 20px; border: 1px #eeeeee solid; position: relative; } .wizard .steps .step { position: relative; width: 100%; height: 100%; display: none; } .wizard .steps .step:first-child { display: block; } .wizard .actions .group-right { float: right; } .wizard .actions .group-left { float: left; } .wizard .actions button { padding: 0 1rem; height: 2.125rem; text-align: center; vertical-align: middle; background-color: #ffffff; border: 1px #d9d9d9 solid; color: #262626; cursor: pointer; display: inline-block; outline: none; font-size: .875rem; line-height: 1; margin: .15625rem 0; position: relative; margin-right: 2px; } .wizard .actions button.default { background-color: #008287; color: #fff; } .wizard .actions button:hover { border-color: #787878; } .wizard .actions button:active { background: #eeeeee; color: #262626; box-shadow: none; } .wizard .actions button:focus { outline: 0; } .wizard .actions button:disabled, .wizard .actions button.disabled { background-color: #eaeaea; color: #bebebe; cursor: default; border-color: transparent; } .wizard .actions button * { color: inherit; } .wizard .actions button *:hover { color: inherit; } .wizard .actions button.rounded { border-radius: .325rem; } .wizard .actions button > [class*=mif-] { vertical-align: middle; } .wizard .actions button img { height: .875rem; vertical-align: middle; margin: 0; } .wizard .actions button.loading-pulse { position: relative; padding: 0 1.325rem; } .wizard .actions button.loading-pulse:before { position: absolute; content: ""; left: 0; top: 50%; margin-top: -10px; width: 20px; height: 20px; background-color: #333; border-radius: 100%; -webkit-animation: scaleout 1s infinite ease-in-out; animation: scaleout 1s infinite ease-in-out; } .wizard .actions button.loading-pulse.lighten:before { background-color: #fff; } .wizard .actions button.loading-cube { position: relative; padding: 0 1.325rem; } .wizard .actions button.loading-cube:before, .wizard .actions button.loading-cube:after { content: ""; background-color: #333; width: 5px; height: 5px; position: absolute; top: 50%; left: 3px; margin-top: -8px; -webkit-animation: cubemove 1.8s infinite ease-in-out; animation: cubemove 1.8s infinite ease-in-out; } .wizard .actions button.loading-cube:after { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .wizard .actions button.loading-cube.lighten:before, .wizard .actions button.loading-cube.lighten:after { background-color: #fff; } .wizard .actions button.dropdown-toggle { padding-right: 1.625rem; } .wizard .actions button.dropdown-toggle.drop-marker-light:before, .wizard .actions button.dropdown-toggle.drop-marker-light:after { background-color: #ffffff; } .wizard .actions button.primary { background: #2086bf; color: #ffffff; border-color: #2086bf; } .wizard .actions button.primary:active { background: #1b6eae; color: #ffffff; } .wizard .actions button.success { background: #60a917; color: #ffffff; border-color: #60a917; } .wizard .actions button.success:active { background: #128023; color: #ffffff; } .wizard .actions button.danger, .wizard .actions button.alert { background: #ce352c; color: #ffffff; border-color: #ce352c; } .wizard .actions button.danger:active, .wizard .actions button.alert:active { background: #9a1616; color: #ffffff; } .wizard .actions button.info { background: #59cde2; color: #ffffff; border-color: #59cde2; } .wizard .actions button.info:active { background: #1ba1e2; color: #ffffff; } .wizard .actions button.warning { background: #fa6800; color: #ffffff; border-color: #fa6800; } .wizard .actions button.warning:active { background: #bf5a15; color: #ffffff; } .wizard .actions button.link { background: transparent; color: #2086bf; border-color: transparent; text-decoration: underline; } .wizard .actions button.link:hover, .wizard .actions button.link:active { background: transparent; color: #114968; border-color: transparent; } .wizard .actions button:last-child { margin-right: 0; } .wizard .actions button.btn-finish { background-color: #60a917; color: #ffffff; } .wizard .actions button:disabled { background-color: #6f6f6f; } .wizard2 { counter-reset: div; position: relative; width: 100%; } .wizard2:before, .wizard2:after { display: table; content: ""; } .wizard2:after { clear: both; } .wizard2 .step { width: auto; display: block; float: left; position: relative; z-index: 1; padding: 0 0 3rem; } .wizard2 .step:before { content: counter(div); counter-increment: div; position: absolute; font-size: .8rem; bottom: 20px; width: 24px; text-align: center; } .wizard2 .step.active { border: 0; } .wizard2 .step.active:before { visibility: hidden; } .wizard2 .step.prev { border-left: 24px solid #eeeeee; border-right: 1px solid #e6e6e6; width: 0 ; } .wizard2 .step.prev:before { left: 0 ; margin-left: -24px; color: #1d1d1d; } .wizard2 .step.next { border-left: 1px solid #e6e6e6; border-right: 24px solid #1ba1e2; width: 0; } .wizard2 .step.next:before { left: 100%; color: #ffffff; } .wizard2 .step.next + .next { border-color: #1891cb; } .wizard2 .step.next + .next + .next { border-color: #1681b4; } .wizard2 .step.next + .next + .next + .next { border-color: #13709e; } .wizard2 .step.next + .next + .next + .next + .next { border-color: #106087; } .wizard2 .step.next + .next + .next + .next + .next + .next { border-color: #0b4059; } .wizard2 .step.next + .next + .next + .next + .next + .next + .next { border-color: #082f43; } .wizard2 .step.next + .next + .next + .next + .next + .next + .next + .next { border-color: #051f2c; } .wizard2 .step.next + .next + .next + .next + .next + .next + .next + .next + .next { border-color: #030f15; } .wizard2 .step-content { width: auto; overflow: hidden; padding: .625rem; } .wizard2 .step.prev .step-content, .wizard2 .step.next .step-content { width: 0 ; padding: 0 ; } .wizard2 .action-bar { padding: 0 .625rem; position: absolute; bottom: 10px; text-align: right; z-index: 2; } .wizard2 .action-bar:before, .wizard2 .action-bar:after { display: table; content: ""; } .wizard2 .action-bar:after { clear: both; } .wizard2 .action-bar .button { margin: 0 .125rem; opacity: .6; } .wizard2 .action-bar .button:hover { opacity: 1; } .countdown { display: inline-block; font-weight: 700; font-size: 1rem; margin: .1em 0 1.2em; } .countdown .part { display: inline-block; position: relative; } .countdown .part.days:after, .countdown .part.hours:after, .countdown .part.minutes:after, .countdown .part.seconds:after { position: absolute; content: attr(data-day-text); text-align: center; top: 100%; left: 0; width: 100%; font-size: .6em; color: inherit; } .countdown .part.disabled .digit { opacity: .3; box-shadow: none; } .countdown .digit, .countdown .divider { display: inline-block; padding: .3125em .625em; background-color: #1ba1e2; color: #ffffff; cursor: default; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); transition: all 0.5s ease; } .countdown .digit, .countdown .divider { margin-left: 4px; } .countdown .divider { padding: .125em .25em; color: #1d1d1d; background-color: transparent; box-shadow: none; } .countdown.tick .divider { opacity: 0; } .countdown.labels-top { margin: 1.2em 0 .1em; } .countdown.labels-top .part.days:after, .countdown.labels-top .part.hours:after, .countdown.labels-top .part.minutes:after, .countdown.labels-top .part.seconds:after { top: 0; left: 0; margin-top: -1.5em; } .countdown.rounded .part .digit { border-radius: .5em; } .countdown .digit.scaleIn { transition: all 0.5s ease; -webkit-transform: scale(1.1); transform: scale(1.1); } .sidebar-container { background-color: #71b1d1; color: #ffffff; position: absolute; top: 0; left: 0; bottom: 0; overflow-x: hidden; overflow-y: scroll; } .sidebar { background-color: #71b1d1; color: #ffffff; position: relative; width: 100%; padding: 0; margin: 0; list-style: none inside none; } .sidebar li { display: block; background-color: inherit; color: inherit; position: relative; height: 52px; } .sidebar li a { display: block; background-color: inherit; color: inherit; padding: .625rem 1rem .625rem 3.75rem; position: relative; width: 100%; height: 100%; line-height: .875rem; } .sidebar li a .icon { width: 28px; height: 28px; font-size: 28px; line-height: 28px; vertical-align: middle; text-align: center; position: absolute; left: .625rem; top: .625rem; } .sidebar li a .title, .sidebar li a .counter { display: block; margin: 0; white-space: nowrap; } .sidebar li a .title { font-size: .6875rem; font-weight: bold; text-transform: uppercase; } .sidebar li a .counter { font-size: .7rem; font-weight: normal; } .sidebar li:hover { background-color: #7cc1de; } .sidebar li.active { background-color: #ffffff; color: #323232; } .sidebar { transition: all 0.2s ease; } .sidebar.compact { width: 52px; transition: all 0.2s ease; } .sidebar.compact a { padding-right: 0; padding-left: 0; width: 52px; } .sidebar.compact .title { display: none ; } .sidebar.compact .counter { position: absolute; top: 0; right: 4px; } .sidebar2 { text-align: left; background: #ffffff; max-width: 15.625rem; list-style: none inside none; margin: 0; padding: 0; position: relative; width: auto; float: left; border-collapse: separate; border: 1px #eeeeee solid; width: 100%; } .sidebar2 li:hover > .dropdown-toggle:before { border-color: #ffffff; } .sidebar2 li { display: block; float: none; position: relative; } .sidebar2 li:before, .sidebar2 li:after { display: table; content: ""; } .sidebar2 li:after { clear: both; } .sidebar2 li a { color: #727272; font-size: .875rem; display: block; float: none; padding: .75rem 2rem .75rem 2.5rem; text-decoration: none; vertical-align: middle; position: relative; white-space: nowrap; min-width: 12.5rem; border: none; } .sidebar2 li a img, .sidebar2 li a .icon { position: absolute; left: .875rem; top: 50%; margin-top: -0.5625rem; color: #262626; max-height: 1.125rem; font-size: 1.125rem; display: inline-block; margin-right: .3125rem; vertical-align: middle; text-align: center; } .sidebar2 li.active { border-left: 2px solid; border-color: #1ba1e2; } .sidebar2 li.active > a { background-color: #59cde2; color: #ffffff; font-weight: bold; } .sidebar2 li:hover { text-decoration: none; background: #59cde2; } .sidebar2 li:hover > a, .sidebar2 li:hover .icon { color: #ffffff; } .sidebar2 .divider { padding: 0; height: 1px; margin: 0 1px; overflow: hidden; background-color: #f2f2f2; } .sidebar2 .divider:hover { background-color: #f2f2f2; } .sidebar2.subdown .d-menu { min-width: 0; position: relative; width: 100%; left: 0 ; right: 0 ; top: 100%; box-shadow: none; } .sidebar2 .item-block { display: block; padding: .625rem; background-color: #eeeeee; } .sidebar2 .d-menu { left: 100%; top: -10%; } .sidebar2 .menu-title { background-color: #f6f7f8; font-size: 12px; line-height: 14px; padding: 4px 8px; border: 0; color: #646464; } .sidebar2 .menu-title:first-child { margin: 0; border-top-width: 0; } .sidebar2 .menu-title:first-child:hover { border-top-width: 0; } .sidebar2 .menu-title:hover { background-color: #f6f7f8; cursor: default; border: 0; } .sidebar2 .dropdown-toggle:before { -webkit-transform: rotate(-135deg); transform: rotate(-135deg); margin-top: -2px; } .sidebar2 .dropdown-toggle:before { transition: all 0.3s ease; } .sidebar2 .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(45deg); transform: rotate(45deg); transition: all 0.3s ease; } .sidebar2.subdown .dropdown-toggle:before { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); margin-left: -1.25rem; } .sidebar2.subdown .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); } .sidebar2 li.disabled a { color: #eeeeee; } .sidebar2 li.disabled:hover { background-color: inherit; cursor: default; border: 0; } .sidebar2 li.disabled:hover a { cursor: inherit; } .sidebar2.context li a { font-size: .75rem; padding: .3125rem 2rem .3125rem 2.5rem; } .sidebar2.context li a .icon { margin-top: -0.4375rem; font-size: .825rem; color: inherit; } .sidebar2.no-min-size li a { min-width: 0; } .sidebar2.full-size li a { min-width: 0; width: 100%; } .sidebar2 .d-menu { min-width: 0; position: relative; width: 100%; left: 0 ; right: 0 ; top: 100%; box-shadow: none; } .sidebar2 .dropdown-toggle:before { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); margin-left: -1.25rem; } .sidebar2 .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); } .sidebar2 li { border-top: 1px #eeeeee solid; cursor: default; } .sidebar2 li.stick { position: relative; } .sidebar2 li.stick:before { content: ""; position: absolute; width: 7px; height: 44px; left: -7px; text-indent: -9999px; border-top-left-radius: 5px; border-bottom-left-radius: 5px; background-color: inherit; } .sidebar2 li.disabled { background-color: inherit; } .sidebar2 li.disabled:hover { border-top: 1px #eeeeee solid; } .sidebar2 li a { background-color: #ffffff; color: #323232; white-space: normal; min-width: 0; } .sidebar2 li a .icon { color: inherit ; } .sidebar2 li.title { padding: 20px 20px 10px 20px; font-size: 24px; border: 0; } .sidebar2 li.title:hover { background-color: inherit; } .sidebar2 li:not(.title) + li.title { border-top: 1px #eeeeee solid; } .sidebar2 li.active { background-color: #71b1d1; border: none; } .sidebar2 li.active a { background-color: #71b1d1; color: #ffffff; } .sidebar2 li.active a .icon { color: inherit; } .sidebar2 li:hover a { background-color: #7cc1de; } .sidebar2 li.disabled:hover a { background-color: inherit; } .sidebar2 li li:not(:hover) { color: #1d1d1d; } .sidebar2 li li:not(:hover) a { background-color: #ffffff; } .sidebar2 .dropdown-toggle:before { transition: all 0.3s ease; } .sidebar2 .dropdown-toggle.active-toggle:before { -webkit-transform: rotate(135deg); transform: rotate(135deg); transition: all 0.3s ease; } .sidebar2.dark li { border-top: 1px #5c5c5c solid; } .sidebar2.dark li.title { background-color: #3D3D3D; color: #ffffff; } .sidebar2.dark li a { background-color: #3D3D3D; color: #ffffff; } .sidebar2.dark li a:hover { background-color: #262626; color: #ffffff; } .sidebar2.dark li:not(.title) + li.title, .sidebar2.dark li.disabled { border-top-color: #5c5c5c; } .sidebar2.dark li.disabled:hover { border-top-color: #5c5c5c ; } .sidebar2.dark li.disabled:hover a { background-color: #3D3D3D; } .sidebar2.dark li.disabled a { color: #999999; } .sidebar2.dark li.active a { background-color: #ce352c; } .sidebar2.dark .dropdown-toggle:before { border-color: #ffffff; } .sidebar2.dark .d-menu li a { background-color: #3D3D3D; color: #ffffff; } .sidebar2.dark .d-menu li a:hover { background-color: #262626; color: #ffffff; } .tabcontrol { overflow: hidden; position: relative; width: 100%; } .tabcontrol .tabs { width: 100%; margin: 0; padding: 0; list-style: none inside; border-bottom: 2px #1ba1e2 solid; white-space: nowrap; overflow: visible; } .tabcontrol .tabs:before, .tabcontrol .tabs:after { display: table; content: ""; } .tabcontrol .tabs:after { clear: both; } .tabcontrol .tabs li { display: block; float: left; position: relative; white-space: nowrap; } .tabcontrol .tabs li a { display: block; float: left; padding: 8px 24px; color: #1d1d1d; font-size: .6875rem; font-weight: bold; text-transform: uppercase; position: relative; white-space: nowrap; } .tabcontrol .tabs li:hover a { background-color: #eeeeee; } .tabcontrol .tabs li.active a { background-color: #1ba1e2; color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .tabcontrol .tabs li.disabled a { background: #eeeeee linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; color: #999999 !important; cursor: default; } .tabcontrol .tabs li.non-visible-tabs { display: block; float: right; } .tabcontrol .tabs li.non-visible-tabs:empty { display: none; } .tabcontrol .tabs li.non-visible-tabs.dropdown-toggle { height: 100% ; } .tabcontrol.tabs-bottom .tabs { border-bottom: none; border-top: 2px #1ba1e2 solid; } .tabcontrol.tabs-bottom .tabs li.disabled { top: 0; } .tabcontrol.tabs-bottom .tabs li:hover { top: 0; } .tabcontrol .frames { width: 100%; overflow: hidden; position: relative; } .tabcontrol .frames .frame { display: block; position: relative; width: 100%; padding: 20px; background-color: #999999; } .tabcontrol2 { overflow: hidden; position: relative; width: 100%; } .tabcontrol2 .tabs { width: 100%; margin: 0; padding: 0; list-style: none inside; border-bottom: 2px #1ba1e2 solid; white-space: nowrap; overflow: visible; } .tabcontrol2 .tabs:before, .tabcontrol2 .tabs:after { display: table; content: ""; } .tabcontrol2 .tabs:after { clear: both; } .tabcontrol2 .tabs li { display: block; float: left; position: relative; white-space: nowrap; } .tabcontrol2 .tabs li a { display: block; float: left; padding: 8px 24px; color: #1d1d1d; font-size: .6875rem; font-weight: bold; text-transform: uppercase; position: relative; white-space: nowrap; } .tabcontrol2 .tabs li:hover a { background-color: #eeeeee; } .tabcontrol2 .tabs li.active a { background-color: #1ba1e2; color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .tabcontrol2 .tabs li.disabled a { background: #eeeeee linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; color: #999999 !important; cursor: default; } .tabcontrol2 .tabs li.non-visible-tabs { display: block; float: right; } .tabcontrol2 .tabs li.non-visible-tabs:empty { display: none; } .tabcontrol2 .tabs li.non-visible-tabs.dropdown-toggle { height: 100% ; } .tabcontrol2.tabs-bottom .tabs { border-bottom: none; border-top: 2px #1ba1e2 solid; } .tabcontrol2.tabs-bottom .tabs li.disabled { top: 0; } .tabcontrol2.tabs-bottom .tabs li:hover { top: 0; } .tabcontrol2 .frames { width: 100%; overflow: hidden; position: relative; } .tabcontrol2 .frames .frame { display: block; position: relative; width: 100%; padding: 20px; background-color: #999999; } .tabcontrol2 .tabs { border-bottom: 0; vertical-align: bottom; z-index: 2; } .tabcontrol2 .tabs li { padding-top: 2px; overflow: visible; margin: 0 2px; } .tabcontrol2 .tabs li:after { content: ""; position: absolute; left: 0; top: 100%; width: 100%; background-color: #ffffff; height: 2px; z-index: 3; } .tabcontrol2 .tabs li:not(.active):after { background-color: #eeeeee; height: 1px; } .tabcontrol2 .tabs li:first-child { margin-left: 10px; } .tabcontrol2 .tabs li a { background-color: #eeeeee; padding-top: .3125rem; text-shadow: none ; } .tabcontrol2 .tabs li.active { padding-top: 0; padding-bottom: 0; } .tabcontrol2 .tabs li.active a { background-color: #ffffff; border: 1px #eeeeee solid; border-top: 2px #ce352c solid; border-bottom: 0; color: #1ba1e2; } .tabcontrol2 .tabs li.active:hover a { background-color: inherit; } .tabcontrol2 .tabs li:hover a { background-color: #e1e1e1; } .tabcontrol2.tabs-bottom .tabs { border-top: 0; } .tabcontrol2.tabs-bottom .tabs li { padding: 0; } .tabcontrol2.tabs-bottom .tabs li:after { top: -1px; background-color: #ffffff; } .tabcontrol2.tabs-bottom .tabs li.active { padding-bottom: 0; } .tabcontrol2.tabs-bottom .tabs li.active a { border: 1px #eeeeee solid; border-bottom: 2px #ce352c solid; border-top: 0; } .tabcontrol2.tabs-bottom .tabs li:not(.active) { margin-bottom: 0; } .tabcontrol2.tabs-bottom .tabs li:not(.active):after { background-color: #eeeeee; } .tabcontrol2 .frames { z-index: 1; border: 1px #eeeeee solid; } .tabcontrol2 .frames .frame { background-color: #ffffff; } .accordion > .frame { margin-top: 1px; } .accordion > .frame:first-child { margin-top: 0; } .accordion > .frame > .heading { display: block; padding: 8px 16px 8px 20px; background-color: #f6f6f6; cursor: pointer; font-size: .6875rem; text-transform: uppercase; font-weight: bold; position: relative; border: 1px #eeeeee solid; overflow: hidden; z-index: 2; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; transition: all 0.3s ease; } .accordion > .frame > .heading:before { position: absolute; display: block; left: 4px; top: 6px; content: ''; width: 0; height: 0; border-left: 6px solid transparent; border-top: 6px solid transparent; border-bottom: 6px solid black; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); transition: all 0.3s ease; } .accordion > .frame > .heading:hover { background-color: #eeeeee; } .accordion > .frame > .heading .icon { position: absolute; right: 0; top: 0; font-size: 3rem; width: 3rem; max-height: 3rem; opacity: .6; color: #999999; } .accordion > .frame.active > .heading { background-color: #1ba1e2; border-color: #1ba1e2; color: #ffffff; box-shadow: -1px 6px 6px -6px rgba(0, 0, 0, 0.35); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); transition: all 0.3s ease; } .accordion > .frame.active > .heading .icon { color: #ffffff; } .accordion > .frame.active > .heading:before { left: 8px; border-bottom-color: #ffffff; transition: all 0.3s ease; -webkit-transform: rotate(0deg); transform: rotate(0deg); -webkit-transform-origin: 50% 50%; transform-origin: 50% 50%; } .accordion > .frame.active > .content { display: block; } .accordion > .frame > .content { padding: .625rem; display: none; background-color: #ffffff; z-index: 1; } .accordion > .frame.disabled > .heading { cursor: default; background: #ffffff linear-gradient(-45deg, rgba(0, 0, 0, 0.15) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.15) 75%, transparent 75%, transparent) !important; background-size: 40px 40px !important; } .accordion.large-heading > .frame > .heading { font-size: 2rem; line-height: 1.1; font-weight: 300; padding-left: 32px; text-shadow: none; } .accordion.large-heading > .frame > .heading:before { top: 10px; border-left: 12px solid transparent; border-top: 12px solid transparent; border-bottom: 12px solid black; } .accordion.large-heading > .frame.active > .heading:before { border-bottom-color: #ffffff; } .carousel { display: block; width: 100%; position: relative; min-height: 100px; overflow: hidden; } .carousel .slide { top: 0; left: 0; position: absolute; display: block; width: 100%; height: 100%; min-height: 100%; } .carousel .slide:before, .carousel .slide:after { display: table; content: ""; } .carousel .slide:after { clear: both; } .carousel [class*="carousel-switch"], .carousel .carousel-bullets { position: absolute; display: block; z-index: 999; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .carousel .carousel-bullets { left: 0; right: 0; bottom: .625rem; text-align: center; } .carousel .carousel-bullets .carousel-bullet { display: inline-block; float: none; width: .625rem; height: .625rem; background-color: #ababab; box-shadow: none; border-radius: 50%; margin-right: .625rem; cursor: pointer; border: 1px #ffffff solid; } .carousel .carousel-bullets .carousel-bullet:last-child { margin-right: 0; } .carousel .carousel-bullets .carousel-bullet.bullet-on { background-color: #59cde2; } .carousel.square-bullets .carousel-bullet { border-radius: 0 ; } .carousel .carousel-switch-next, .carousel .carousel-switch-prev { width: auto; line-height: 4rem; height: 4rem; text-decoration: none; margin-top: -2rem; top: 50%; font-size: 4rem; font-weight: 300; color: #eeeeee; cursor: pointer; vertical-align: middle; padding: 0; } .carousel .carousel-switch-next:hover, .carousel .carousel-switch-prev:hover { color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .carousel .carousel-switch-next img, .carousel .carousel-switch-prev img { max-width: 64px; max-height: 64px; } .carousel .carousel-switch-next { right: 0; left: auto; } .carousel .carousel-switch-prev { left: 0; right: auto; } .panel { display: block; position: relative; background-color: #ffffff; } .panel > .heading, .panel > .content { display: block; position: relative; color: #1d1d1d; } .panel > .heading { padding: .625rem 0 ; color: #ffffff; background-color: #1ba1e2; cursor: default; vertical-align: middle; z-index: 2; height: 2.625rem; box-shadow: -1px 6px 6px -6px rgba(0, 0, 0, 0.35); font: 500 1.125rem/1.1 "Segoe UI", "Open Sans", sans-serif, serif; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .panel > .heading > .title { margin-left: .625rem; } .panel > .heading > .icon + .title { margin-left: 3.625rem; } .panel > .heading > .icon { position: absolute; background-color: #1b6eae; top: 0; left: 0; bottom: 0; vertical-align: middle; height: 2.625rem; width: 2.625rem; text-align: center; padding: .625rem; } .panel > .content { padding: .625rem; background-color: #e8f1f4; z-index: 1; font-size: 0.875rem; } .panel.collapsible > .heading { cursor: pointer; } .panel.collapsible > .heading:before { content: "\2212"; display: block; position: absolute; top: 50%; margin-top: -1.3rem; right: .625rem; color: inherit; vertical-align: middle; font-size: 2rem; } .panel.collapsed > .heading:before { content: "\002b"; } .panel.collapsed > .content { display: none; } .panel.alert > .heading, .panel.error > .heading, .panel.danger > .heading { background-color: #ce352c; } .panel.warning > .heading { background-color: #fa6800; } .panel.success > .heading { background-color: #60a917; } .rating { cursor: pointer; display: inline-block; } .rating:before, .rating:after { display: table; content: ""; } .rating:after { clear: both; } .rating .star { cursor: pointer; display: block; float: left; color: #555555; font-size: 20px; z-index: 1; position: relative; width: 20px; height: 24px; vertical-align: middle; line-height: 22px; } .rating .star:before, .rating .star:after { position: absolute; content: '\2605'; display: block; z-index: 2; top: 0 ; left: 0; vertical-align: middle; } .rating .star.on { color: gold; } .rating .star.on.half { color: #555555; } .rating .star.on.half:after { color: gold; } .rating .star.half:after { z-index: 3; width: 8px; overflow: hidden; } .rating.poor .star.on { color: #ce352c; } .rating.poor .star.on.half { color: #555555; } .rating.poor .star.on.half:after { color: #ce352c; } .rating.regular .star.on { color: gold; } .rating.regular .star.on.half { color: #555555; } .rating.regular .star.on.half:after { color: gold; } .rating.good .star.on { color: #60a917; } .rating.good .star.on.half { color: #555555; } .rating.good .star.on.half:after { color: #60a917; } .rating:not(.static) .star:hover { color: gold ; } .rating:not(.static) .star:hover.half, .rating:not(.static) .star:hover.on.half { color: gold; } .rating:not(.static) .star:hover.half:after, .rating:not(.static) .star:hover.on.half:after { color: gold; } .rating:not(.static):hover > .star, .rating:not(.static):hover > .star:after { color: gold ; } .rating:not(.static):hover > .star.half, .rating:not(.static):hover > .star:after.half, .rating:not(.static):hover > .star.on.half, .rating:not(.static):hover > .star:after.on.half { color: gold; } .rating:not(.static):hover > .star.half:after, .rating:not(.static):hover > .star:after.half:after, .rating:not(.static):hover > .star.on.half:after, .rating:not(.static):hover > .star:after.on.half:after { color: gold; } .rating:not(.static) .star:hover ~ .star, .rating:not(.static) .star:hover ~ .star:after { color: gray ; } .rating:not(.static) .star:hover ~ .star.half, .rating:not(.static) .star:hover ~ .star:after.half, .rating:not(.static) .star:hover ~ .star.on.half, .rating:not(.static) .star:hover ~ .star:after.on.half { color: gray; } .rating:not(.static) .star:hover ~ .star.half:after, .rating:not(.static) .star:hover ~ .star:after.half:after, .rating:not(.static) .star:hover ~ .star.on.half:after, .rating:not(.static) .star:hover ~ .star:after.on.half:after { color: gray; } .rating.small .star { width: 14px; height: 16px; font-size: 14px; line-height: 14px; } .rating.small .star.half:after { width: 6px; } .rating.large .star { width: 28px; height: 30px; font-size: 32px; line-height: 24px; } .rating.large .star.half:after { width: 13px; } .rating .score { display: block; font-size: .8rem; } .rating.small .score { font-size: .6rem; } .rating.large .score { font-size: 1rem; } .slider { height: 12px; width: auto; position: relative; background-color: #999999; margin-bottom: 10px; } .slider .marker { height: 12px; width: 12px; cursor: pointer; position: absolute; top: 0; left: 0; background-color: #1d1d1d; z-index: 2; } .slider .marker:focus, .slider .marker:active, .slider .markerhover { outline: 2px #ce352c solid; } .slider .complete { height: 100%; width: auto; background-color: #00aba9; z-index: 1; transition: background .3s ease; } .slider > .slider-hint { background-color: #ffffff; position: absolute; z-index: 3; border: 1px #ccc solid; padding: 2px 4px; top: -40px; min-width: 30px; text-align: center; font-size: 14px; display: none; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3); } .slider > .slider-hint:before { display: none; } .slider.permanent-hint > .slider-hint { display: block; } .slider.hint-bottom .slider-hint { top: 100%; margin-top: 5px; } .slider.vertical { height: 100px; width: 12px; float: left; margin-right: 10px; } .slider.vertical:last-child:first-child { margin-left: 0; } .slider.vertical .marker { left: 0 ; } .slider.vertical .complete { position: absolute; height: auto; width: 100% ; bottom: 0; left: 0; } .slider.vertical .slider-hint { left: 100%; margin-left: 5px; margin-top: 0; } .slider.vertical.hint-left .slider-hint { left: -40px; } .slider:hover .complete { background-color: #45fffd; } .slider:active .complete, .slider:active + .marker:active .complete { background-color: #45fffd; } .slider.place-left { margin-right: 20px; } .slider.place-right { margin-left: 20px; } .slider.large { height: 24px; } .slider.large .marker { width: 24px; height: 24px; } .slider.large .slider-hint { min-width: 30px; } .slider.large.vertical { width: 24px; height: 100px; } .tile-area { min-width: 100%; height: 100%; position: relative; padding: 120px 80px 0 0; overflow: hidden; } .tile-area:before, .tile-area:after { display: table; content: ""; } .tile-area:after { clear: both; } .tile-area .tile-area-title { position: fixed; top: 20px; left: 80px; font-weight: 300; font-size: 42px; line-height: 1.1; } .tile-group { margin-left: 80px; min-width: 80px; width: auto; float: left; display: block; padding-top: 40px; position: relative; } .tile-group.one { width: 160px; } .tile-group.two, .tile-group.double { width: 320px; } .tile-group.three, .tile-group.triple { width: 480px; } .tile-group.four, .tile-group.quadro { width: 640px; } .tile-group.five { width: 800px; } .tile-group.six { width: 960px; } .tile-group.seven { width: 1120px; } .tile-group .tile-group-title { color: #ffffff; font-size: 18px; line-height: 20px; position: absolute; top: 10px; left: 0; } .tile-container { width: 100%; height: auto; display: block; margin: 0; padding: 0; } .tile-container:before, .tile-container:after { display: table; content: ""; } .tile-container:after { clear: both; } .tile { width: 150px; height: 150px; display: block; float: left; margin: 5px; background-color: #eeeeee; box-shadow: inset 0 0 1px #FFFFCC; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .tile:hover { outline: #999999 solid 3px; } .tile:active { outline: 0; } .tile.no-outline { outline-color: transparent; } .tile.small-tile { width: 70px; height: 70px; } .tile.wide-tile { width: 310px; height: 150px; } .tile.wide-tile-v { height: 310px; width: 150px; } .tile.large-tile { width: 310px; height: 310px; } .tile.big-tile { width: 470px; height: 470px; } .tile.super-tile { width: 630px; height: 630px; } .tile-square { width: 150px; height: 150px; display: block; float: left; margin: 5px; background-color: #eeeeee; box-shadow: inset 0 0 1px #FFFFCC; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; overflow: visible; } .tile-square:hover { outline: #999999 solid 3px; } .tile-square:active { outline: 0; } .tile-square.no-outline { outline-color: transparent; } .tile-square.small-tile { width: 70px; height: 70px; } .tile-square.wide-tile { width: 310px; height: 150px; } .tile-square.wide-tile-v { height: 310px; width: 150px; } .tile-square.large-tile { width: 310px; height: 310px; } .tile-square.big-tile { width: 470px; height: 470px; } .tile-square.super-tile { width: 630px; height: 630px; } .tile-square .tile-content.flipVertical { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-square:hover .tile-content.flipVertical, .tile-square.hover .tile-content.flipVertical, .tile-square.flip .tile-content.flipVertical { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-square .tile-content.flipVertical { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-square .tile-content.flipVertical .slide, .tile-square .tile-content.flipVertical .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-square .tile-content.flipVertical .slide { z-index: 2; -webkit-transform: rotateY(0deg); transform: rotateY(0deg); } .tile-square .tile-content.flipVertical .slide-over { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-square .tile-content.flipHorizontal { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-square:hover .tile-content.flipHorizontal, .tile-square.hover .tile-content.flipHorizontal, .tile-square.flip .tile-content.flipHorizontal { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-square .tile-content.flipHorizontal { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-square .tile-content.flipHorizontal .slide, .tile-square .tile-content.flipHorizontal .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-square .tile-content.flipHorizontal .slide { z-index: 2; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); } .tile-square .tile-content.flipHorizontal .slide-over { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-square .tile-badge { position: absolute; bottom: 0; right: .625rem; padding: .25rem .625rem; z-index: 999; } .tile-square .tile-label { position: absolute; bottom: 0; left: .625rem; padding: .425rem .25rem; z-index: 999; } .tile-small { width: 150px; height: 150px; display: block; float: left; margin: 5px; background-color: #eeeeee; box-shadow: inset 0 0 1px #FFFFCC; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; overflow: visible; width: 70px; height: 70px; } .tile-small:hover { outline: #999999 solid 3px; } .tile-small:active { outline: 0; } .tile-small.no-outline { outline-color: transparent; } .tile-small.small-tile { width: 70px; height: 70px; } .tile-small.wide-tile { width: 310px; height: 150px; } .tile-small.wide-tile-v { height: 310px; width: 150px; } .tile-small.large-tile { width: 310px; height: 310px; } .tile-small.big-tile { width: 470px; height: 470px; } .tile-small.super-tile { width: 630px; height: 630px; } .tile-small .tile-content.flipVertical { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-small:hover .tile-content.flipVertical, .tile-small.hover .tile-content.flipVertical, .tile-small.flip .tile-content.flipVertical { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-small .tile-content.flipVertical { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-small .tile-content.flipVertical .slide, .tile-small .tile-content.flipVertical .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-small .tile-content.flipVertical .slide { z-index: 2; -webkit-transform: rotateY(0deg); transform: rotateY(0deg); } .tile-small .tile-content.flipVertical .slide-over { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-small .tile-content.flipHorizontal { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-small:hover .tile-content.flipHorizontal, .tile-small.hover .tile-content.flipHorizontal, .tile-small.flip .tile-content.flipHorizontal { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-small .tile-content.flipHorizontal { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-small .tile-content.flipHorizontal .slide, .tile-small .tile-content.flipHorizontal .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-small .tile-content.flipHorizontal .slide { z-index: 2; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); } .tile-small .tile-content.flipHorizontal .slide-over { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-small .tile-badge { position: absolute; bottom: 0; right: .625rem; padding: .25rem .625rem; z-index: 999; } .tile-small .tile-label { position: absolute; bottom: 0; left: .625rem; padding: .425rem .25rem; z-index: 999; } .tile-wide { width: 150px; display: block; float: left; margin: 5px; background-color: #eeeeee; box-shadow: inset 0 0 1px #FFFFCC; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; overflow: visible; width: 310px; height: 150px; } .tile-wide:hover { outline: #999999 solid 3px; } .tile-wide:active { outline: 0; } .tile-wide.no-outline { outline-color: transparent; } .tile-wide.small-tile { width: 70px; height: 70px; } .tile-wide.wide-tile { width: 310px; height: 150px; } .tile-wide.wide-tile-v { height: 310px; width: 150px; } .tile-wide.large-tile { width: 310px; height: 310px; } .tile-wide.big-tile { width: 470px; height: 470px; } .tile-wide.super-tile { width: 630px; height: 630px; } .tile-wide .tile-content.flipVertical { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-wide:hover .tile-content.flipVertical, .tile-wide.hover .tile-content.flipVertical, .tile-wide.flip .tile-content.flipVertical { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-wide .tile-content.flipVertical { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-wide .tile-content.flipVertical .slide, .tile-wide .tile-content.flipVertical .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-wide .tile-content.flipVertical .slide { z-index: 2; -webkit-transform: rotateY(0deg); transform: rotateY(0deg); } .tile-wide .tile-content.flipVertical .slide-over { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-wide .tile-content.flipHorizontal { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-wide:hover .tile-content.flipHorizontal, .tile-wide.hover .tile-content.flipHorizontal, .tile-wide.flip .tile-content.flipHorizontal { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-wide .tile-content.flipHorizontal { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-wide .tile-content.flipHorizontal .slide, .tile-wide .tile-content.flipHorizontal .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-wide .tile-content.flipHorizontal .slide { z-index: 2; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); } .tile-wide .tile-content.flipHorizontal .slide-over { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-wide .tile-badge { position: absolute; bottom: 0; right: .625rem; padding: .25rem .625rem; z-index: 999; } .tile-wide .tile-label { position: absolute; bottom: 0; left: .625rem; padding: .425rem .25rem; z-index: 999; } .tile-large { width: 150px; height: 150px; display: block; float: left; margin: 5px; background-color: #eeeeee; box-shadow: inset 0 0 1px #FFFFCC; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; overflow: visible; width: 310px; height: 310px; } .tile-large:hover { outline: #999999 solid 3px; } .tile-large:active { outline: 0; } .tile-large.no-outline { outline-color: transparent; } .tile-large.small-tile { width: 70px; height: 70px; } .tile-large.wide-tile { width: 310px; height: 150px; } .tile-large.wide-tile-v { height: 310px; width: 150px; } .tile-large.large-tile { width: 310px; height: 310px; } .tile-large.big-tile { width: 470px; height: 470px; } .tile-large.super-tile { width: 630px; height: 630px; } .tile-large .tile-content.flipVertical { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-large:hover .tile-content.flipVertical, .tile-large.hover .tile-content.flipVertical, .tile-large.flip .tile-content.flipVertical { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-large .tile-content.flipVertical { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-large .tile-content.flipVertical .slide, .tile-large .tile-content.flipVertical .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-large .tile-content.flipVertical .slide { z-index: 2; -webkit-transform: rotateY(0deg); transform: rotateY(0deg); } .tile-large .tile-content.flipVertical .slide-over { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-large .tile-content.flipHorizontal { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-large:hover .tile-content.flipHorizontal, .tile-large.hover .tile-content.flipHorizontal, .tile-large.flip .tile-content.flipHorizontal { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-large .tile-content.flipHorizontal { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-large .tile-content.flipHorizontal .slide, .tile-large .tile-content.flipHorizontal .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-large .tile-content.flipHorizontal .slide { z-index: 2; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); } .tile-large .tile-content.flipHorizontal .slide-over { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-large .tile-badge { position: absolute; bottom: 0; right: .625rem; padding: .25rem .625rem; z-index: 999; } .tile-large .tile-label { position: absolute; bottom: 0; left: .625rem; padding: .425rem .25rem; z-index: 999; } .tile-big { width: 150px; height: 150px; display: block; float: left; margin: 5px; background-color: #eeeeee; box-shadow: inset 0 0 1px #FFFFCC; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; overflow: visible; width: 470px; height: 470px; } .tile-big:hover { outline: #999999 solid 3px; } .tile-big:active { outline: 0; } .tile-big.no-outline { outline-color: transparent; } .tile-big.small-tile { width: 70px; height: 70px; } .tile-big.wide-tile { width: 310px; height: 150px; } .tile-big.wide-tile-v { height: 310px; width: 150px; } .tile-big.large-tile { width: 310px; height: 310px; } .tile-big.big-tile { width: 470px; height: 470px; } .tile-big.super-tile { width: 630px; height: 630px; } .tile-big .tile-content.flipVertical { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-big:hover .tile-content.flipVertical, .tile-big.hover .tile-content.flipVertical, .tile-big.flip .tile-content.flipVertical { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-big .tile-content.flipVertical { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-big .tile-content.flipVertical .slide, .tile-big .tile-content.flipVertical .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-big .tile-content.flipVertical .slide { z-index: 2; -webkit-transform: rotateY(0deg); transform: rotateY(0deg); } .tile-big .tile-content.flipVertical .slide-over { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-big .tile-content.flipHorizontal { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-big:hover .tile-content.flipHorizontal, .tile-big.hover .tile-content.flipHorizontal, .tile-big.flip .tile-content.flipHorizontal { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-big .tile-content.flipHorizontal { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-big .tile-content.flipHorizontal .slide, .tile-big .tile-content.flipHorizontal .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-big .tile-content.flipHorizontal .slide { z-index: 2; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); } .tile-big .tile-content.flipHorizontal .slide-over { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-big .tile-badge { position: absolute; bottom: 0; right: .625rem; padding: .25rem .625rem; z-index: 999; } .tile-big .tile-label { position: absolute; bottom: 0; left: .625rem; padding: .425rem .25rem; z-index: 999; } .tile-super { width: 150px; height: 150px; display: block; float: left; margin: 5px; background-color: #eeeeee; box-shadow: inset 0 0 1px #FFFFCC; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; overflow: visible; width: 630px; height: 630px; } .tile-super:hover { outline: #999999 solid 3px; } .tile-super:active { outline: 0; } .tile-super.no-outline { outline-color: transparent; } .tile-super.small-tile { width: 70px; height: 70px; } .tile-super.wide-tile { width: 310px; height: 150px; } .tile-super.wide-tile-v { height: 310px; width: 150px; } .tile-super.large-tile { width: 310px; height: 310px; } .tile-super.big-tile { width: 470px; height: 470px; } .tile-super.super-tile { width: 630px; height: 630px; } .tile-super .tile-content.flipVertical { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-super:hover .tile-content.flipVertical, .tile-super.hover .tile-content.flipVertical, .tile-super.flip .tile-content.flipVertical { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-super .tile-content.flipVertical { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-super .tile-content.flipVertical .slide, .tile-super .tile-content.flipVertical .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-super .tile-content.flipVertical .slide { z-index: 2; -webkit-transform: rotateY(0deg); transform: rotateY(0deg); } .tile-super .tile-content.flipVertical .slide-over { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-super .tile-content.flipHorizontal { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-super:hover .tile-content.flipHorizontal, .tile-super.hover .tile-content.flipHorizontal, .tile-super.flip .tile-content.flipHorizontal { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-super .tile-content.flipHorizontal { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-super .tile-content.flipHorizontal .slide, .tile-super .tile-content.flipHorizontal .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-super .tile-content.flipHorizontal .slide { z-index: 2; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); } .tile-super .tile-content.flipHorizontal .slide-over { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-super .tile-badge { position: absolute; bottom: 0; right: .625rem; padding: .25rem .625rem; z-index: 999; } .tile-super .tile-label { position: absolute; bottom: 0; left: .625rem; padding: .425rem .25rem; z-index: 999; } .tile-small-x { width: 70px; } .tile-square-x { width: 150px; } .tile-wide-x { width: 310px; } .tile-large-x { width: 310px; } .tile-big-x { width: 470px; } .tile-super-x { width: 630px; } .tile-small-y { height: 70px; } .tile-square-y { height: 150px; } .tile-wide-y { height: 310px; } .tile-large-y { height: 310px; } .tile-big-y { height: 470px; } .tile-super-y { height: 630px; } .tile-content { position: absolute; top: 0; left: 0; width: 100%; height: inherit; overflow: hidden; display: none; } .tile-content:first-child { display: block; } .tile-content .live-slide { position: absolute; height: 100%; width: 100%; top: 0; left: 0; display: none; overflow: hidden; } .tile-content .live-slide:nth-child(1) { display: block; } .tile-content.iconic .icon { position: absolute; width: 64px; height: 64px; font-size: 64px; top: 50%; margin-top: -40px; left: 50%; margin-left: -32px; text-align: center; } .tile-small .tile-content.iconic .icon { width: 32px; height: 32px; font-size: 32px; margin-left: -16px; margin-top: -16px; } .tile-content.image-set > img, .tile-content.image-set > .image-container { margin: 0; padding: 0; width: 25% ; height: 50% ; float: left; border: 1px #1e1e1e solid; } .tile-content.image-set > img:first-child, .tile-content.image-set > .image-container:first-child { width: 50% ; float: left; height: 100% ; } .tile-content.slide-up > .slide, .tile-content.slide-down > .slide, .tile-content.slide-up-2 > .slide, .tile-content.slide-down-2 > .slide, .tile-content.slide-left > .slide, .tile-content.slide-right > .slide, .tile-content.slide-left-2 > .slide, .tile-content.slide-right-2 > .slide, .tile-content.slide-up > .slide-over, .tile-content.slide-down > .slide-over, .tile-content.slide-up-2 > .slide-over, .tile-content.slide-down-2 > .slide-over, .tile-content.slide-left > .slide-over, .tile-content.slide-right > .slide-over, .tile-content.slide-left-2 > .slide-over, .tile-content.slide-right-2 > .slide-over { width: 100%; height: inherit; display: block; position: absolute; box-shadow: inset 0 0 1px #FFFFCC; } .tile-content.slide-up > .slide, .tile-content.slide-down > .slide, .tile-content.slide-up-2 > .slide, .tile-content.slide-down-2 > .slide, .tile-content.slide-left > .slide, .tile-content.slide-right > .slide, .tile-content.slide-left-2 > .slide, .tile-content.slide-right-2 > .slide { top: 0; z-index: 1; transition: all 0.3s ease; } .tile-content.slide-up:hover > .slide, .tile-content.slide-down:hover > .slide, .tile-content.slide-up-2:hover > .slide, .tile-content.slide-down-2:hover > .slide, .tile-content.slide-left:hover > .slide, .tile-content.slide-right:hover > .slide, .tile-content.slide-left-2:hover > .slide, .tile-content.slide-right-2:hover > .slide { -webkit-transform: scale(1.5); transform: scale(1.5); transition: all 0.6s ease; } .tile-content.slide-up > .slide-over { top: 100%; z-index: 2; height: 75%; transition: all 0.6s ease; } .tile-content.slide-up:hover > .slide-over { top: 25%; transition: all 0.3s ease; } .tile-content.slide-up-2 > .slide-over { top: 100%; z-index: 2; height: 100%; transition: all 0.3s ease; } .tile-content.slide-up-2:hover > .slide { -webkit-transform: scale(1); transform: scale(1); top: -100%; transition: all 0.4s ease; } .tile-content.slide-up-2:hover > .slide-over { top: 0; transition: all 0.4s ease; } .tile-content.slide-down > .slide-over { top: -100%; z-index: 2; height: 75%; transition: all 0.6s ease; } .tile-content.slide-down:hover > .slide-over { top: 0; transition: all 0.3s ease; } .tile-content.slide-down-2 > .slide-over { top: -100%; z-index: 2; height: 100%; transition: all 0.3s ease; } .tile-content.slide-down-2:hover > .slide { -webkit-transform: scale(1); transform: scale(1); top: 100%; transition: all 0.4s ease; } .tile-content.slide-down-2:hover > .slide-over { top: 0; transition: all 0.4s ease; } .tile-content.slide-left > .slide-over { left: -100%; z-index: 2; width: 75%; height: 100%; transition: all 0.6s ease; } .tile-content.slide-left:hover > .slide-over { left: 0; transition: all 0.3s ease; } .tile-content.slide-left-2 > .slide { left: 0; transition: all 0.3s ease; } .tile-content.slide-left-2 > .slide-over { left: -100%; z-index: 2; width: 100%; height: 100%; transition: all 0.3s ease; } .tile-content.slide-left-2:hover > .slide { -webkit-transform: scale(1); transform: scale(1); left: 100%; transition: all 0.4s ease; } .tile-content.slide-left-2:hover > .slide-over { left: 0; transition: all 0.4s ease; } .tile-content.slide-right > .slide-over { left: 100%; z-index: 2; width: 75%; height: 100%; transition: all 0.6s ease; } .tile-content.slide-right:hover > .slide-over { left: 25%; transition: all 0.3s ease; } .tile-content.slide-right-2 > .slide { left: 0; transition: all 0.3s ease; } .tile-content.slide-right-2 > .slide-over { left: 100%; z-index: 2; width: 100%; height: 100%; transition: all 0.3s ease; } .tile-content.slide-right-2:hover > .slide { -webkit-transform: scale(1); transform: scale(1); left: -100%; transition: all 0.4s ease; } .tile-content.slide-right-2:hover > .slide-over { left: 0; transition: all 0.4s ease; } .tile-content.zooming .slide { box-shadow: inset 0 0 1px #FFFFCC; width: 100%; height: 100%; display: block; position: relative; transition: all 0.6s ease; } .tile-content.zooming .slide:hover { -webkit-transform: scale(1.5); transform: scale(1.5); transition: all 0.6s ease; } .tile-content.zooming-out .slide { width: 100%; height: 100%; display: block; position: relative; -webkit-transform: scale(1.5); transform: scale(1.5); transition: all 0.6s ease; } .tile-content.zooming-out .slide:hover { -webkit-transform: scale(1); transform: scale(1); transition: all 0.6s ease; } .tile-small, .tile, .tile-square, .tile-wide, .tile-large, .tile-big, .tile-super { overflow: visible; } .tile-small .tile-content.flipVertical, .tile .tile-content.flipVertical, .tile-square .tile-content.flipVertical, .tile-wide .tile-content.flipVertical, .tile-large .tile-content.flipVertical, .tile-big .tile-content.flipVertical, .tile-super .tile-content.flipVertical { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-small:hover .tile-content.flipVertical, .tile:hover .tile-content.flipVertical, .tile-square:hover .tile-content.flipVertical, .tile-wide:hover .tile-content.flipVertical, .tile-large:hover .tile-content.flipVertical, .tile-big:hover .tile-content.flipVertical, .tile-super:hover .tile-content.flipVertical, .tile-small.hover .tile-content.flipVertical, .tile.hover .tile-content.flipVertical, .tile-square.hover .tile-content.flipVertical, .tile-wide.hover .tile-content.flipVertical, .tile-large.hover .tile-content.flipVertical, .tile-big.hover .tile-content.flipVertical, .tile-super.hover .tile-content.flipVertical, .tile-small.flip .tile-content.flipVertical, .tile.flip .tile-content.flipVertical, .tile-square.flip .tile-content.flipVertical, .tile-wide.flip .tile-content.flipVertical, .tile-large.flip .tile-content.flipVertical, .tile-big.flip .tile-content.flipVertical, .tile-super.flip .tile-content.flipVertical { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-small .tile-content.flipVertical, .tile .tile-content.flipVertical, .tile-square .tile-content.flipVertical, .tile-wide .tile-content.flipVertical, .tile-large .tile-content.flipVertical, .tile-big .tile-content.flipVertical, .tile-super .tile-content.flipVertical { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-small .tile-content.flipVertical .slide, .tile .tile-content.flipVertical .slide, .tile-square .tile-content.flipVertical .slide, .tile-wide .tile-content.flipVertical .slide, .tile-large .tile-content.flipVertical .slide, .tile-big .tile-content.flipVertical .slide, .tile-super .tile-content.flipVertical .slide, .tile-small .tile-content.flipVertical .slide-over, .tile .tile-content.flipVertical .slide-over, .tile-square .tile-content.flipVertical .slide-over, .tile-wide .tile-content.flipVertical .slide-over, .tile-large .tile-content.flipVertical .slide-over, .tile-big .tile-content.flipVertical .slide-over, .tile-super .tile-content.flipVertical .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-small .tile-content.flipVertical .slide, .tile .tile-content.flipVertical .slide, .tile-square .tile-content.flipVertical .slide, .tile-wide .tile-content.flipVertical .slide, .tile-large .tile-content.flipVertical .slide, .tile-big .tile-content.flipVertical .slide, .tile-super .tile-content.flipVertical .slide { z-index: 2; -webkit-transform: rotateY(0deg); transform: rotateY(0deg); } .tile-small .tile-content.flipVertical .slide-over, .tile .tile-content.flipVertical .slide-over, .tile-square .tile-content.flipVertical .slide-over, .tile-wide .tile-content.flipVertical .slide-over, .tile-large .tile-content.flipVertical .slide-over, .tile-big .tile-content.flipVertical .slide-over, .tile-super .tile-content.flipVertical .slide-over { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } .tile-small .tile-content.flipHorizontal, .tile .tile-content.flipHorizontal, .tile-square .tile-content.flipHorizontal, .tile-wide .tile-content.flipHorizontal, .tile-large .tile-content.flipHorizontal, .tile-big .tile-content.flipHorizontal, .tile-super .tile-content.flipHorizontal { -webkit-transform: perspective(1000px); transform: perspective(1000px); overflow: visible; } .tile-small:hover .tile-content.flipHorizontal, .tile:hover .tile-content.flipHorizontal, .tile-square:hover .tile-content.flipHorizontal, .tile-wide:hover .tile-content.flipHorizontal, .tile-large:hover .tile-content.flipHorizontal, .tile-big:hover .tile-content.flipHorizontal, .tile-super:hover .tile-content.flipHorizontal, .tile-small.hover .tile-content.flipHorizontal, .tile.hover .tile-content.flipHorizontal, .tile-square.hover .tile-content.flipHorizontal, .tile-wide.hover .tile-content.flipHorizontal, .tile-large.hover .tile-content.flipHorizontal, .tile-big.hover .tile-content.flipHorizontal, .tile-super.hover .tile-content.flipHorizontal, .tile-small.flip .tile-content.flipHorizontal, .tile.flip .tile-content.flipHorizontal, .tile-square.flip .tile-content.flipHorizontal, .tile-wide.flip .tile-content.flipHorizontal, .tile-large.flip .tile-content.flipHorizontal, .tile-big.flip .tile-content.flipHorizontal, .tile-super.flip .tile-content.flipHorizontal { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile-small .tile-content.flipHorizontal, .tile .tile-content.flipHorizontal, .tile-square .tile-content.flipHorizontal, .tile-wide .tile-content.flipHorizontal, .tile-large .tile-content.flipHorizontal, .tile-big .tile-content.flipHorizontal, .tile-super .tile-content.flipHorizontal { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transition: all 0.6s ease; } .tile-small .tile-content.flipHorizontal .slide, .tile .tile-content.flipHorizontal .slide, .tile-square .tile-content.flipHorizontal .slide, .tile-wide .tile-content.flipHorizontal .slide, .tile-large .tile-content.flipHorizontal .slide, .tile-big .tile-content.flipHorizontal .slide, .tile-super .tile-content.flipHorizontal .slide, .tile-small .tile-content.flipHorizontal .slide-over, .tile .tile-content.flipHorizontal .slide-over, .tile-square .tile-content.flipHorizontal .slide-over, .tile-wide .tile-content.flipHorizontal .slide-over, .tile-large .tile-content.flipHorizontal .slide-over, .tile-big .tile-content.flipHorizontal .slide-over, .tile-super .tile-content.flipHorizontal .slide-over { top: 0; left: 0; position: absolute; height: 100%; width: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .tile-small .tile-content.flipHorizontal .slide, .tile .tile-content.flipHorizontal .slide, .tile-square .tile-content.flipHorizontal .slide, .tile-wide .tile-content.flipHorizontal .slide, .tile-large .tile-content.flipHorizontal .slide, .tile-big .tile-content.flipHorizontal .slide, .tile-super .tile-content.flipHorizontal .slide { z-index: 2; -webkit-transform: rotateX(0deg); transform: rotateX(0deg); } .tile-small .tile-content.flipHorizontal .slide-over, .tile .tile-content.flipHorizontal .slide-over, .tile-square .tile-content.flipHorizontal .slide-over, .tile-wide .tile-content.flipHorizontal .slide-over, .tile-large .tile-content.flipHorizontal .slide-over, .tile-big .tile-content.flipHorizontal .slide-over, .tile-super .tile-content.flipHorizontal .slide-over { -webkit-transform: rotateX(180deg); transform: rotateX(180deg); } .tile .tile-badge { position: absolute; bottom: 0; right: .625rem; padding: .25rem .625rem; z-index: 999; } .tile .tile-label { position: absolute; bottom: 0; left: .625rem; padding: .425rem .25rem; z-index: 999; } .tile-content .image-container, .tile-content .carousel { box-shadow: inset 0 0 1px #FFFFCC; width: 100%; height: 100%; } [class*=tile-transform-] { transition: all 0.22s ease; } .tile-transform-right { -webkit-transform-origin: left 50%; transform-origin: left 50%; } .tile.tile-transform-right { -webkit-transform: perspective(500px) rotateY(0.138372rad) !important; transform: perspective(500px) rotateY(0.138372rad) !important; } .tile-wide.tile-transform-right { -webkit-transform: perspective(500px) rotateY(0.069186rad) !important; transform: perspective(500px) rotateY(0.069186rad) !important; } .tile-large.tile-transform-right { -webkit-transform: perspective(500px) rotateY(0.069186rad) !important; transform: perspective(500px) rotateY(0.069186rad) !important; } .tile-big.tile-transform-right { -webkit-transform: perspective(500px) rotateY(0.046124rad) !important; transform: perspective(500px) rotateY(0.046124rad) !important; } .tile-super.tile-transform-right { -webkit-transform: perspective(500px) rotateY(0.034593rad) !important; transform: perspective(500px) rotateY(0.034593rad) !important; } .tile-small.tile-transform-right { -webkit-transform: perspective(500px) rotateY(0.276744rad) !important; transform: perspective(500px) rotateY(0.276744rad) !important; } .tile-transform-left { -webkit-transform-origin: right 50%; transform-origin: right 50%; } .tile.tile-transform-left { -webkit-transform: perspective(500px) rotateY(-0.138372rad) !important; transform: perspective(500px) rotateY(-0.138372rad) !important; } .tile-wide.tile-transform-left { -webkit-transform: perspective(500px) rotateY(-0.069186rad) !important; transform: perspective(500px) rotateY(-0.069186rad) !important; } .tile-large.tile-transform-left { -webkit-transform: perspective(500px) rotateY(-0.069186rad) !important; transform: perspective(500px) rotateY(-0.069186rad) !important; } .tile-big.tile-transform-left { -webkit-transform: perspective(500px) rotateY(-0.046124rad) !important; transform: perspective(500px) rotateY(-0.046124rad) !important; } .tile-super.tile-transform-left { -webkit-transform: perspective(500px) rotateY(-0.034593rad) !important; transform: perspective(500px) rotateY(-0.034593rad) !important; } .tile-small.tile-transform-left { -webkit-transform: perspective(500px) rotateY(-0.276744rad) !important; transform: perspective(500px) rotateY(-0.276744rad) !important; } .tile-transform-top { -webkit-transform-origin: 50% bottom; transform-origin: 50% bottom; } .tile.tile-transform-top { -webkit-transform: perspective(500px) rotateX(0.138372rad) !important; transform: perspective(500px) rotateX(0.138372rad) !important; } .tile-wide.tile-transform-top { -webkit-transform: perspective(500px) rotateX(0.069186rad) !important; transform: perspective(500px) rotateX(0.069186rad) !important; } .tile-large.tile-transform-top { -webkit-transform: perspective(500px) rotateX(0.069186rad) !important; transform: perspective(500px) rotateX(0.069186rad) !important; } .tile-big.tile-transform-top { -webkit-transform: perspective(500px) rotateX(0.046124rad) !important; transform: perspective(500px) rotateX(0.046124rad) !important; } .tile-super.tile-transform-top { -webkit-transform: perspective(500px) rotateX(0.034593rad) !important; transform: perspective(500px) rotateX(0.034593rad) !important; } .tile-small.tile-transform-top { -webkit-transform: perspective(500px) rotateX(0.276744rad) !important; transform: perspective(500px) rotateX(0.276744rad) !important; } .tile-transform-bottom { -webkit-transform-origin: 50% top; transform-origin: 50% top; } .tile.tile-transform-bottom { -webkit-transform: perspective(500px) rotateX(-0.138372rad) !important; transform: perspective(500px) rotateX(-0.138372rad) !important; } .tile-wide.tile-transform-bottom { -webkit-transform: perspective(500px) rotateX(-0.069186rad) !important; transform: perspective(500px) rotateX(-0.069186rad) !important; } .tile-large.tile-transform-bottom { -webkit-transform: perspective(500px) rotateX(-0.069186rad) !important; transform: perspective(500px) rotateX(-0.069186rad) !important; } .tile-big.tile-transform-bottom { -webkit-transform: perspective(500px) rotateX(-0.046124rad) !important; transform: perspective(500px) rotateX(-0.046124rad) !important; } .tile-super.tile-transform-bottom { -webkit-transform: perspective(500px) rotateX(-0.034593rad) !important; transform: perspective(500px) rotateX(-0.034593rad) !important; } .tile-small.tile-transform-bottom { -webkit-transform: perspective(500px) rotateX(-0.276744rad) !important; transform: perspective(500px) rotateX(-0.276744rad) !important; } .tile-area-scheme-dark { background-color: #1d1d1d; } .tile-area-scheme-dark [class*=tile] { outline-color: #373737; } .tile-area-scheme-darkBrown { background-color: #63362f; } .tile-area-scheme-darkBrown [class*=tile] { outline-color: #86493f; } .tile-area-scheme-darkCrimson { background-color: #640024; } .tile-area-scheme-darkCrimson [class*=tile] { outline-color: #970036; } .tile-area-scheme-darkViolet { background-color: #57169a; } .tile-area-scheme-darkViolet [class*=tile] { outline-color: #701cc7; } .tile-area-scheme-darkMagenta { background-color: #81003c; } .tile-area-scheme-darkMagenta [class*=tile] { outline-color: #b40054; } .tile-area-scheme-darkCyan { background-color: #1b6eae; } .tile-area-scheme-darkCyan [class*=tile] { outline-color: #228ada; } .tile-area-scheme-darkCobalt { background-color: #00356a; } .tile-area-scheme-darkCobalt [class*=tile] { outline-color: #004e9d; } .tile-area-scheme-darkTeal { background-color: #004050; } .tile-area-scheme-darkTeal [class*=tile] { outline-color: #006983; } .tile-area-scheme-darkEmerald { background-color: #003e00; } .tile-area-scheme-darkEmerald [class*=tile] { outline-color: #007100; } .tile-area-scheme-darkGreen { background-color: #128023; } .tile-area-scheme-darkGreen [class*=tile] { outline-color: #18ad2f; } .tile-area-scheme-darkOrange { background-color: #bf5a15; } .tile-area-scheme-darkOrange [class*=tile] { outline-color: #e77120; } .tile-area-scheme-darkRed { background-color: #9a1616; } .tile-area-scheme-darkRed [class*=tile] { outline-color: #c71c1c; } .tile-area-scheme-darkPink { background-color: #9a165a; } .tile-area-scheme-darkPink [class*=tile] { outline-color: #c71c74; } .tile-area-scheme-darkIndigo { background-color: #4b0096; } .tile-area-scheme-darkIndigo [class*=tile] { outline-color: #6400c9; } .tile-area-scheme-darkBlue { background-color: #16499a; } .tile-area-scheme-darkBlue [class*=tile] { outline-color: #1c5ec7; } .tile-area-scheme-lightBlue { background-color: #4390df; } .tile-area-scheme-lightBlue [class*=tile] { outline-color: #6faae6; } .tile-area-scheme-lightTeal { background-color: #45fffd; } .tile-area-scheme-lightTeal [class*=tile] { outline-color: #78fffd; } .tile-area-scheme-lightOlive { background-color: #78aa1c; } .tile-area-scheme-lightOlive [class*=tile] { outline-color: #97d623; } .tile-area-scheme-lightOrange { background-color: #ffc194; } .tile-area-scheme-lightOrange [class*=tile] { outline-color: #ffdec7; } .tile-area-scheme-lightPink { background-color: #f472d0; } .tile-area-scheme-lightPink [class*=tile] { outline-color: #f8a1e0; } .tile-area-scheme-grayed { background-color: #585858; } .tile-area-scheme-grayed [class*=tile] { outline-color: #727272; } .treeview { margin: 0; padding: 0; display: block; font-size: .75rem; } .treeview ul { margin: 0; padding: 0; list-style: none; width: 100%; font-size: inherit; } .treeview li { font-size: inherit; padding: 2px 16px; cursor: pointer; position: relative; color: #555555; vertical-align: middle; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .treeview li.active > .leaf { font-weight: bold; } .treeview li.disabled { cursor: default; color: #999999; } .treeview li.disabled:hover > .leaf { color: #999999; } .treeview li .input-control { margin: 0 .3125rem 0 0; height: 1rem; line-height: .625rem; min-height: 0; } .treeview li .input-control .check { line-height: 1rem; } .treeview ul > li > .leaf:hover { color: #1d1d1d; } .treeview .leaf { vertical-align: middle; display: inline-block; color: inherit; } .treeview .leaf .icon { width: 1rem; height: 1rem; text-align: center; } .treeview .node-toggle { position: absolute; left: 0; top: 8px; width: 8px; height: 8px; } .treeview .node-toggle:before { position: absolute; display: block; left: 0; top: -3px; height: 0; content: ''; width: 0; border-left: 7px solid transparent; border-top: 7px solid transparent; border-bottom: 7px #1ba1e2 solid; } .treeview li:hover > .node-toggle:before { border-bottom-color: #1b6eae; } .treeview .node.collapsed > .node-toggle:before { left: -4px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); border-bottom-color: #999999; } .treeview .node.collapsed:hover > .node-toggle:before { border-bottom-color: #1b6eae; } .treeview .node.collapsed > ul { display: none; } .presenter { width: 100%; height: 200px; min-height: 200px; position: relative; display: block; } .scene { position: relative; width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; display: block; } .act { width: 100%; height: 100%; display: block; position: relative; padding: 10px ; } .act:before, .act:after { display: table; content: ""; } .act:after { clear: both; } .actor { position: absolute; margin-right: 10px; } .listview { display: block; width: 100%; height: auto; } .listview:before, .listview:after { display: table; content: ""; } .listview:after { clear: both; } .listview .list-group { display: block; width: 100%; height: auto; position: relative; } .listview .list-group:before, .listview .list-group:after { display: table; content: ""; } .listview .list-group:after { clear: both; } .listview .list-group .list-group-toggle { display: block; padding-left: 16px; cursor: pointer; position: relative; margin-top: 10px; } .listview .list-group .list-group-toggle:before { position: absolute; display: block; left: 0; top: -3px; height: 0; content: ''; width: 0; border-left: 7px solid transparent; border-top: 7px solid transparent; border-bottom: 7px #1ba1e2 solid; } .listview .list-group .list-group-content { display: block; width: 100%; height: auto; margin-top: 1rem; } .listview .list-group .list-group-content:before, .listview .list-group .list-group-content:after { display: table; content: ""; } .listview .list-group .list-group-content:after { clear: both; } .listview .list-group.collapsed > .list-group-toggle:before { left: -4px; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); border-bottom-color: #999999; } .listview .list-group.collapsed:hover > .list-group-toggle:before { border-bottom-color: #1b6eae; } .listview .list { display: block; width: 100%; padding: 8px 8px 4px 48px; border: 1px transparent solid; cursor: pointer; height: 50px; border-bottom-color: #eeeeee; position: relative; } .listview .list:last-child { border-bottom-color: transparent; } .listview .list .list-icon { position: absolute; left: 0; top: 0; margin: 8px; width: 32px; height: 32px; font-size: 32px; text-align: center; } .listview .list .list-data { display: block; margin: 4px 0; } .listview.list-type-icons .list { display: block; float: left; padding: 0; width: 105px; height: 116px; border-color: transparent; margin: .625rem; text-align: center; } .listview.list-type-icons .list .list-title { position: absolute; left: 0; right: 0; bottom: 4px; height: auto; text-align: center; } .listview.list-type-icons .list .list-icon { width: 80px; height: 80px; font-size: 80px; text-align: center; left: 50%; margin-left: -40px; } .listview.list-type-icons .list .list-data { display: none; } .listview.list-type-tiles .list { display: block; float: left; padding: 8px 8px 4px 48px; width: 250px; height: 52px; border-color: transparent; margin: .625rem; } .listview.list-type-tiles .list .list-title { margin-top: 8px; display: block; } .listview.list-type-tiles .list .list-icon { width: 48px; height: 48px; font-size: 48px; text-align: center; top: 0; left: 0; margin: 2px; } .listview.list-type-tiles .list .list-data { display: none; } .listview.list-type-listing .list { display: block; float: left; padding: 4px 2px 4px 24px; width: auto; height: auto; border-color: transparent; margin: 1px; } .listview.list-type-listing .list .list-title { display: block; } .listview.list-type-listing .list .list-icon { width: 20px; height: 20px; font-size: 20px; text-align: center; top: 0; left: 0; margin: 1px; } .listview.list-type-listing .list .list-data { display: none; } .listview .list.active { background-color: #d1e8ff; border-color: #64b4db; } .listview .list:hover { background-color: #e5f3fb; border-color: #64b4db; } .listview-outlook { display: block; width: 100%; height: auto; } .listview-outlook:before, .listview-outlook:after { display: table; content: ""; } .listview-outlook:after { clear: both; } .listview-outlook .list { display: block; width: 100%; border: 0; border-bottom: 1px #eeeeee solid; padding: 2px 0; color: #555555; margin-bottom: 0; background-color: transparent; } .listview-outlook .list .list-content { margin: 2px 0; padding: 2px 20px; font-size: 1rem; color: inherit; border-left: 3px transparent solid; } .listview-outlook .list .list-content .list-title, .listview-outlook .list .list-content .list-subtitle, .listview-outlook .list .list-content .list-remark { width: 100%; display: block; color: inherit; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .listview-outlook .list .list-content .list-title { line-height: 1; } .listview-outlook .list .list-content .list-subtitle { font-size: .75rem; line-height: 1.2; font-weight: 500; color: #0067cb; } .listview-outlook .list .list-content .list-remark { font-weight: normal; line-height: 1.2; font-size: .625rem; color: #999999; } .listview-outlook .list:hover { background-color: #eeeeee; outline: none; } .listview-outlook .list:hover .list-content { border-left: 3px transparent solid; } .listview-outlook .list.marked .list-content { border-left: 3px #1b6eae solid; } .listview-outlook .list:active, .listview-outlook .list:focus, .listview-outlook .list.active { background-color: #cde6f7; outline: 1px #999999 dotted; color: #555555; } .listview-outlook .list-group { display: block; position: relative; } .listview-outlook .list-group .list-group-toggle { display: block; margin-bottom: 2px; background-color: #f0f0f0; padding: 4px 20px 4px 24px; font-size: .875rem; font-weight: 500; color: #333333; cursor: pointer; } .listview-outlook .list-group .list-group-toggle:before { position: absolute; display: block; left: 10px; top: 2px; content: ''; width: 0; height: 0; border-left: 7px solid transparent; border-top: 7px solid transparent; border-bottom: 7px solid black; } .listview-outlook .list-group .list-group-content { display: block; } .listview-outlook .list-group.collapsed .list-group-toggle:before { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); margin-left: -4px; } .listview-outlook .list-group .list-group-toggle:hover:before { border-bottom-color: #0067cb; } .charm { display: block; position: fixed; z-index: 1060; background: #1d1d1d; color: #eeeeee; padding: .625rem; } .charm .charm-closer { position: absolute; height: 1rem; width: 1rem; text-align: center; vertical-align: middle; font-size: 1rem; font-weight: normal; padding: 0 0 .625rem 0; z-index: 3; outline: none; cursor: pointer; color: #777777; top: .25rem; right: .25rem; } .charm .charm-closer:after { content: '\D7'; position: absolute; left: 50%; top: 50%; margin-top: -0.65rem; margin-left: -0.35rem; } .charm .charm-closer:hover { color: #ffffff; } .charm .charm-closer:active { color: #ffffff; } .charm.right-side { width: auto; right: 0; top: 0; left: auto; bottom: 0; } .charm.left-side { width: auto; left: 0; top: 0; bottom: 0; } .charm.top-side { height: auto; left: 0; right: 0; top: 0; } .charm.bottom-side { height: auto; left: 0; right: 0; top: auto; bottom: 0; } .notify-container { position: fixed; top: 0; right: 0; width: auto; z-index: 1061; } .notify-container:before, .notify-container:after { display: table; content: ""; } .notify-container:after { clear: both; } .notify-container.position-left { left: 0; right: auto; } .notify-container.position-top { left: 0; right: 0; top: 0; height: auto; } .notify-container.position-top .notify { float: left; } .notify-container.position-bottom { left: 0; right: 0; bottom: 0; top: auto; height: auto; } .notify-container.position-bottom .notify { float: left; } .notify { display: block; margin: .3125rem; padding: .625rem; min-width: 200px; cursor: default; max-width: 300px; position: relative; } .notify .notify-icon { width: 32px; height: 32px; font-size: 32px; text-align: center; position: absolute; margin: -16px 10px; top: 50%; left: 0; } .notify .notify-icon ~ .notify-title, .notify .notify-icon ~ .notify-text { position: relative; margin-left: 42px; } .notify .notify-title, .notify .notify-text { display: block; margin-right: 20px; } .notify .notify-title { font-weight: 500; font-size: 1rem; } .notify .notify-text { font-size: .875rem; } .notify .notify-closer { position: absolute; height: 1rem; width: 1rem; text-align: center; vertical-align: middle; font-size: 1rem; font-weight: normal; padding: 0 0 .625rem 0; z-index: 3; outline: none; cursor: pointer; background-color: #ffffff; color: #777777; top: .25rem; right: .25rem; } .notify .notify-closer:after { border-color: #777777; content: '\D7'; position: absolute; left: 50%; top: 50%; margin-top: -0.65rem; margin-left: -0.35rem; } .notify .notify-closer:hover { background-color: #cde6f7; color: #ffffff; } .notify .notify-closer:active { background-color: #92c0e0; color: #ffffff; } .notify { background-color: #e5f3fb; color: #1d1d1d; } .notify.success { background-color: #60a917; color: #ffffff; } .notify.success .notify-closer { background-color: #60a917; color: #ffffff; } .notify.success .notify-closer:hover { background-color: #7ad61d; } .notify.success .notify-closer:active { background-color: #128023; } .notify.alert { background-color: #ce352c; color: #ffffff; } .notify.alert .notify-closer { background-color: #ce352c; color: #ffffff; } .notify.alert .notify-closer:hover { background-color: #da5a53; } .notify.alert .notify-closer:active { background-color: #9a1616; } .notify.warning { background-color: #fa6800; color: #ffffff; } .notify.warning .notify-closer { background-color: #fa6800; color: #ffffff; } .notify.warning .notify-closer:hover { background-color: #ffc194; } .notify.warning .notify-closer:active { background-color: #bf5a15; } .notify.info { background-color: #1ba1e2; color: #ffffff; } .notify.info .notify-closer { background-color: #1ba1e2; color: #ffffff; } .notify.info .notify-closer:hover { background-color: #59cde2; } .notify.info .notify-closer:active { background-color: #1b6eae; } p [data-hint] { border-bottom: 1px #373737 dotted; white-space: nowrap; } .hint { position: fixed; color: #1d1d1d; padding: 10px; font-size: 12px; width: auto; max-width: 220px; margin-top: 10px; z-index: 1030; display: none; border: 1px #eee solid; } .hint .hint-title, .hint .hint-text { color: inherit; text-align: left; } .hint .hint-title { font-size: 1.2em; font-weight: bold; } .hint:before { content: ''; position: absolute; background-color: inherit; width: 10px; height: 10px; border: 1px #eee solid; -webkit-transform: rotate(45deg); transform: rotate(45deg); } .hint:before { z-index: 2; } .hint.bottom:before { top: 1px; left: 5px; margin: -7px 0; border-bottom: none; border-right: none; } .hint.top:before { top: 100%; margin-top: -5px; left: 5px; border-top: none; border-left: none; } .hint.left:before { top: 5px; left: 100%; margin-left: -5px; border-bottom: none; border-left: none; } .hint.right:before { top: 5px; left: -9px; margin: 1px 0 0 3px; border-top: none; border-right: none; } .hint2 { position: fixed; color: #1d1d1d; padding: 10px; font-size: 12px; width: auto; max-width: 220px; margin-top: 10px; z-index: 1030; display: none; border: 1px #eee solid; } .hint2 .hint-title, .hint2 .hint-text { color: inherit; text-align: left; } .hint2 .hint-title { font-size: 1.2em; font-weight: bold; } .hint2:before { content: ''; position: absolute; background-color: inherit; width: 10px; height: 10px; border: 1px #eee solid; -webkit-transform: rotate(45deg); transform: rotate(45deg); } .hint2:before { z-index: 2; } .hint2.bottom:before { top: 1px; left: 5px; margin: -7px 0; border-bottom: none; border-right: none; } .hint2.top:before { top: 100%; margin-top: -5px; left: 5px; border-top: none; border-left: none; } .hint2.left:before { top: 5px; left: 100%; margin-left: -5px; border-bottom: none; border-left: none; } .hint2.right:before { top: 5px; left: -9px; margin: 1px 0 0 3px; border-top: none; border-right: none; } .hint2.no-border { border: none; } .hint2.no-border:before { border: none; } .hint2.no-border.right:before { left: -7px; } .hint2.bottom:before { top: 1px; left: 50%; margin: -7px 0 0 -5px; border-bottom: none; border-right: none; } .hint2.top:before { top: 100%; margin-top: -5px; left: 50%; margin-left: -5px; border-top: none; border-left: none; } .hint2.left:before { top: 50%; margin-top: -5px; left: 100%; margin-left: -5px; border-bottom: none; border-left: none; } .hint2.right:before { top: 50%; margin: -5px 0 0 3px; left: -9px; border-top: none; border-right: none; } .hint.no-border, .hint2.no-border { border: none; } .hint.no-border:before, .hint2.no-border:before { border: none; } .hint.no-border.right:before, .hint2.no-border.right:before { left: -7px; } .hint2.line { padding: 2px 4px; border: none; display: block; max-width: 100%; margin: -5px 0 4px 0; } .hint2.line:before { display: none; } .preloader-ring { position: relative; padding-top: 0.22rem; width: 32px; height: 32px; margin: .625rem; } .preloader-ring > .wrap { position: absolute; width: 30px; height: 30px; } .preloader-ring > .wrap > .circle { opacity: 0; width: 30px; height: 30px; -webkit-transform: rotate(225deg); transform: rotate(225deg); -webkit-animation: orbit 4000ms infinite; animation: orbit 4000ms infinite; } .preloader-ring > .wrap > .circle:after { position: absolute; content: ''; width: 4px; height: 4px; border-radius: 4px; background: #ffffff; } .preloader-ring > .wrap:nth-child(2) { -webkit-transform: rotate(-14deg); transform: rotate(-14deg); } .preloader-ring > .wrap:nth-child(2) > .circle { -webkit-animation-delay: 133.33333333ms; animation-delay: 133.33333333ms; } .preloader-ring > .wrap:nth-child(3) { -webkit-transform: rotate(-28deg); transform: rotate(-28deg); } .preloader-ring > .wrap:nth-child(3) > .circle { -webkit-animation-delay: 266.66666667ms; animation-delay: 266.66666667ms; } .preloader-ring > .wrap:nth-child(4) { -webkit-transform: rotate(-42deg); transform: rotate(-42deg); } .preloader-ring > .wrap:nth-child(4) > .circle { -webkit-animation-delay: 400ms; animation-delay: 400ms; } .preloader-ring > .wrap:nth-child(5) { -webkit-transform: rotate(-56deg); transform: rotate(-56deg); } .preloader-ring > .wrap:nth-child(5) > .circle { -webkit-animation-delay: 533.33333333ms; animation-delay: 533.33333333ms; } .preloader-ring.dark-style > .wrap > .circle:after { background-color: #555555; } .preloader-metro { width: 100%; height: 10px; background-color: transparent; overflow: hidden; } .preloader-metro > .circle { display: inline-block; position: absolute; width: 10px; height: 10px; background-color: #ffffff; opacity: 0; margin-left: 5px; -webkit-animation: metro-slide 3s cubic-bezier(0.1, 0.85, 0.9, 0.15) infinite, metro-opacity 2s ease-in-out infinite alternate; animation: metro-slide 3s cubic-bezier(0.1, 0.85, 0.9, 0.15) infinite, metro-opacity 2s ease-in-out infinite alternate; } .preloader-metro > .circle:nth-child(2) { -webkit-animation-delay: .8s; animation-delay: .8s; } .preloader-metro > .circle:nth-child(3) { -webkit-animation-delay: .7s; animation-delay: .7s; } .preloader-metro > .circle:nth-child(4) { -webkit-animation-delay: .6s; animation-delay: .6s; } .preloader-metro > .circle:nth-child(5) { -webkit-animation-delay: .5s; animation-delay: .5s; } .preloader-metro.dark-style > .circle { background-color: #555555; } .dialog-overlay { background-color: transparent; position: fixed; top: 0; left: 0; right: 0; bottom: 0; min-height: 100%; min-width: 100%; z-index: 1049; } .dialog { position: fixed; display: block; width: auto; height: auto; float: left; background-color: #ffffff; color: #1d1d1d; z-index: 1050; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3); } .dialog .dialog-close-button { position: absolute; height: 1.5rem; width: 1.5rem; min-height: 1.5rem; text-align: center; vertical-align: middle; font-size: 1rem; font-weight: normal; padding: .125rem 0 .625rem 0; z-index: 3; outline: none; cursor: pointer; background-color: #ffffff; color: #777777; top: .25rem; right: .25rem; } .dialog .dialog-close-button:hover { background-color: #cde6f7; color: #2a8dd4; } .dialog .dialog-close-button:hover:after { border-color: #2a8dd4; } .dialog .dialog-close-button:active { background-color: #92c0e0; color: #ffffff; } .dialog .dialog-close-button:after { border-color: #777777; content: '\D7'; line-height: 1; } .dialog.success { background-color: #60a917; color: #ffffff; } .dialog.success .dialog-close-button { background-color: #7ad61d; color: #ffffff; } .dialog.success .dialog-close-button:active { background-color: #128023; } .dialog.warning { background-color: #fa6800; color: #ffffff; } .dialog.warning .dialog-close-button { background-color: #ffc194; color: #ffffff; } .dialog.warning .dialog-close-button:active { background-color: #bf5a15; } .dialog.alert { background-color: #ce352c; color: #ffffff; } .dialog.alert .dialog-close-button { background-color: #da5a53; color: #ffffff; } .dialog.alert .dialog-close-button:active { background-color: #9a1616; } .dialog.info { background-color: #1ba1e2; color: #ffffff; } .dialog.info .dialog-close-button { background-color: #59cde2; color: #ffffff; } .dialog.info .dialog-close-button:active { background-color: #1b6eae; } .streamer { position: relative; display: block; width: 100%; overflow: hidden; } .streamer .streamer-toolbar .toolbar-button { display: block; float: left; width: .625rem; height: 1.5rem; } .streamer .streamer-toolbar .toolbar-button.active { background-color: #555555; color: #ffffff; } .streamer .meter { height: 25px; width: auto; list-style: none; margin: 0; padding: 0; display: block; overflow: hidden; } .streamer .meter li { display: block; float: left; width: 213px; padding: 2px 3px; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANUAAAAUCAYAAAAa9HiSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHlJREFUeNrs2csJgDAQQMFE7Gj77yA9+UNswOwewgwI3hYTngrpY4yjAb9FRH9u7qguLfuqmFP1PKutm/2Zu36b9wvMJSoQFYgKRAWICkQFq9qrBn0HY4neM4pl5lSyP75U4PcPRAWICkQFogJEBaICUQGigjynAAMAqEOFksZmC3MAAAAASUVORK5CYII=') top left repeat-x; } .streamer .meter li em { font-size: 10px; font-style: normal; } .streamer .streams { width: 142px; padding-top: 25px; position: absolute; left: 0; top: 0; z-index: 2; background-color: #ffffff; } .streamer .streams .streams-title { position: absolute; top: 0; } .streamer .streams .stream { position: relative; display: block; width: 100%; height: 75px; margin: 0 2px 2px 0; padding: 5px; color: #ffffff; cursor: pointer; } .streamer .streams .stream .stream-title { font-size: .75rem; line-height: 1; } .streamer .streams .stream .stream-number { position: absolute; left: 5px; bottom: 5px; font-size: .6875rem; line-height: 1; } .streamer .events { padding-left: 143px; overflow: hidden; height: 100%; min-height: 100%; overflow-x: scroll; } .streamer .events .double { width: 424px; } .streamer .events .triple { width: 637px; } .streamer .events .quadro { width: 850px; } .streamer .events .events-area { height: 100%; min-height: 100%; overflow: hidden; } .streamer .events .events-area:before, .streamer .events .events-area:after { display: table; content: ""; } .streamer .events .events-area:after { clear: both; } .streamer .events .events-grid { height: 100%; min-height: 100%; } .streamer .events .events-grid:before, .streamer .events .events-grid:after { display: table; content: ""; } .streamer .events .events-grid:after { clear: both; } .streamer .events .event-group { height: 460px; min-width: 211px; margin: 0 2px 2px 0; float: left; } .streamer .events .event-super { height: 100%; min-height: 100%; border: 1px #d9d9d9 solid; } .streamer .events .event-super.medium-border { border-width: 8px; } .streamer .events .event-super.large-border { border-width: 16px; } .streamer .events .event-stream { height: 75px; } .streamer .events .event-stream .event { min-width: 211px; height: 75px; float: left; display: block; margin: 0 2px 2px 0; cursor: pointer; position: relative; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border: 1px #d9d9d9 solid; } .streamer .events .event-stream .event.medium-border { border-width: 8px; } .streamer .events .event-stream .event.large-border { border-width: 16px; } .streamer .events .event-stream .event:last-child { margin-right: 0; } .streamer .events .event-stream .event.event-disable { opacity: .2; } .streamer .events .event-stream .event .event-content { width: 100%; height: 100%; padding: 0; margin: 0; position: absolute; left: 0; top: 0; overflow: hidden; display: none; } .streamer .events .event-stream .event .event-content:first-child { display: block; } .streamer .events .event-stream .event .event-content-logo { display: block; float: left; margin-right: 5px; padding: 3px; } .streamer .events .event-stream .event .event-content-logo .icon { position: relative; width: 39px; height: 39px; margin-bottom: 1px; } .streamer .events .event-stream .event .event-content-logo .icon img { width: 100%; height: 100%; } .streamer .events .event-stream .event .event-content-logo .time { position: relative; width: 39px; padding: 8px 4px; font-size: .75rem; color: #ffffff; line-height: 1; } .streamer .events .event-stream .event .event-content-data { display: block; padding: 0; margin: 0; position: relative; margin-left: 50px; } .streamer .events .event-stream .event .event-content-data .title { position: relative; font-size: .875rem; line-height: 1; margin: 3px 0 0; padding: 0; } .streamer .events .event-stream .event .event-content-data .subtitle { position: relative; font-size: .625rem; line-height: 1; margin: 0; padding: 0; margin-bottom: 10px; } .streamer .events .event-stream .event .event-content-data .remark { position: absolute; display: block; top: 36px; margin-right: 4px; font-size: .6875rem; line-height: 1; color: #999999; } .streamer .events .event-stream .event:hover { border-color: #999999; } .streamer .events .event-stream .event.selected { border: 4px #4390df solid; border-width: 1px; } .streamer .events .event-stream .event.selected:after { position: absolute; display: block; border-top: 28px solid #4390df; border-left: 28px solid transparent; right: 0; content: ""; top: 0; z-index: 101; } .streamer .events .event-stream .event.selected:before { position: absolute; display: block; content: ""; background-color: transparent; border-color: #ffffff; border-left: 2px solid; border-bottom: 2px solid; height: .25rem; width: .5rem; right: 0; top: 0; z-index: 102; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .streamer .events .event-stream .event.selected:before { right: 3px; top: 3px; color: #ffffff; } .streamer .events .event-stream .event.margin-one { margin-left: 213px; } .streamer .events .event-stream .event.margin-double { margin-left: 426px; } .streamer .events .event-stream .event.margin-triple { margin-left: 639px; } .streamer .events .event-stream .event.margin-quadro { margin-left: 852px; } .keypad { position: relative; width: 106px; padding: 1px; border: 1px #eeeeee solid; vertical-align: middle; background-color: #ffffff; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .keypad:before, .keypad:after { display: table; content: ""; } .keypad:after { clear: both; } .keypad .key { width: 32px; height: 32px; display: block; float: left; margin: 1px; border: 1px #eeeeee solid; vertical-align: middle; text-align: center; cursor: pointer; font-size: .875rem; line-height: 32px; } .keypad .key:hover { background-color: #eeeeee; } .keypad .key:active { background-color: #555555; color: #ffffff; } .keypad.shadow { box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3); } .fluent-menu .tabs-holder { list-style: none; position: relative; margin: 0; padding: 0; display: block; z-index: 2; } .fluent-menu .tabs-holder:before, .fluent-menu .tabs-holder:after { display: table; content: ""; } .fluent-menu .tabs-holder:after { clear: both; } .fluent-menu .tabs-holder li { display: block; float: left; margin-right: 5px; background-color: #ffffff; } .fluent-menu .tabs-holder li a { display: block; float: left; padding: .25rem 1rem; text-transform: uppercase; font-size: .8em; color: #444444; } .fluent-menu .tabs-holder li a:hover { color: #0072c6; } .fluent-menu .tabs-holder li:first-child { margin-left: 0; } .fluent-menu .tabs-holder li.active { border: 1px #d4d4d4 solid; border-bottom-color: #ffffff; } .fluent-menu .tabs-holder li.active a { color: #0072c6; } .fluent-menu .tabs-holder li.special { border: 1px #0072c6 solid; background-color: #0072c6; } .fluent-menu .tabs-holder li.special a { color: #ffffff; } .fluent-menu .tabs-holder li.special a:hover { color: #ffffff; } .fluent-menu .tabs-content { z-index: 1; position: relative; margin-top: -1px; border: 1px #d4d4d4 solid; background-color: #ffffff; height: 120px; } .fluent-menu .tabs-content .tab-panel { display: block; height: 100%; padding: 5px 0 2px; } .fluent-menu .tabs-content .tab-panel .tab-panel-group { height: 100%; position: relative; display: block; float: left; padding: 0 5px; border-right: 1px #d4d4d4 solid; } .fluent-menu .tabs-content .tab-panel .tab-panel-group:last-child { margin-right: 0; } .fluent-menu .tabs-content .tab-panel .tab-group-caption { font-size: 10px; margin: 2px 0 -2px; text-align: center; display: block; position: absolute; bottom: 0; right: 0; left: 0; white-space: nowrap; background: #eeeeee; } .fluent-menu .tabs-content .tab-panel .tab-content-segment { display: block; float: left; position: relative; } .fluent-menu .fluent-button, .fluent-menu .fluent-big-button, .fluent-menu .fluent-tool-button { background-color: #ffffff; padding: .3125rem; display: block; cursor: default; border: 0; outline: none; font-size: .8em; line-height: 1.2; vertical-align: middle; } .fluent-menu .fluent-button:hover, .fluent-menu .fluent-big-button:hover, .fluent-menu .fluent-tool-button:hover { background-color: #cde6f7; } .fluent-menu .fluent-button img, .fluent-menu .fluent-big-button img, .fluent-menu .fluent-tool-button img, .fluent-menu .fluent-button .icon, .fluent-menu .fluent-big-button .icon, .fluent-menu .fluent-tool-button .icon, .fluent-menu .fluent-button [class*=mif-], .fluent-menu .fluent-big-button [class*=mif-], .fluent-menu .fluent-tool-button [class*=mif-] { line-height: 1.2; display: block; float: left; margin-right: 5px; width: 16px; height: 16px; color: #444444; vertical-align: middle; } .fluent-menu .fluent-button .label, .fluent-menu .fluent-big-button .label, .fluent-menu .fluent-tool-button .label { display: inline-block; color: inherit; font: inherit; } .fluent-menu .fluent-button:active, .fluent-menu .fluent-big-button:active, .fluent-menu .fluent-tool-button:active { top: 0; left: 0; background-color: #75bae9; } .fluent-menu .fluent-button.dropdown-toggle:before, .fluent-menu .fluent-big-button.dropdown-toggle:before, .fluent-menu .fluent-tool-button.dropdown-toggle:before { margin-top: -0.3125rem; } .fluent-menu .fluent-big-button { padding: 7px 5px; text-align: center; white-space: normal; line-height: 12px; float: left; position: relative; } .fluent-menu .fluent-big-button img, .fluent-menu .fluent-big-button .icon, .fluent-menu .fluent-big-button [class*=mif-] { display: block; width: 40px; height: 40px; font-size: 40px; float: none; text-align: center; margin: 5px auto 5px; } .fluent-menu .fluent-big-button br { line-height: 4px; height: 4px; font-size: 4px; } .fluent-menu .fluent-tool-button { padding: 4px; } .fluent-menu .fluent-tool-button img, .fluent-menu .fluent-tool-button [class*="icon-"] { display: block; width: 16px; height: 16px; font-size: 16px; float: none; text-align: center; } .fluent-menu .fluent-tool-button img { margin-right: 0; } .fluent-menu .dropdown-toggle { padding-right: 24px; } .fluent-menu .d-menu { position: absolute; top: 100%; z-index: 100; } .fluent-menu .d-menu a { padding: 4px 24px; font-size: .8em; } .fluent-menu .d-menu a:hover { background-color: #cde6f7; color: #444444; } .select2-container { box-sizing: border-box; display: inline-block; margin: .3125rem 0; position: relative; vertical-align: middle; height: auto; } .select2-container .select2-selection--single { box-sizing: border-box; cursor: pointer; display: block; min-height: 2.125rem; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .select2-container .select2-selection--single .select2-selection__rendered { display: block; padding-left: 8px; padding-right: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .select2-container .select2-selection--multiple { box-sizing: border-box; cursor: pointer; display: block; min-height: 2.125rem; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; z-index: 998; } .select2-container .select2-selection--multiple .select2-selection__rendered { display: inline-block; overflow: hidden; padding-left: 8px; text-overflow: ellipsis; white-space: nowrap; } .select2-container .select2-container .select2-search--inline { float: left; } .select2-container .select2-container .select2-search--inline .select2-search__field { box-sizing: border-box; border: none; font-size: 100%; margin-top: 5px; } .select2-container .select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button { -webkit-appearance: none; } .select2-dropdown { background-color: white; border: 1px solid #aaa; border-radius: 0; box-sizing: border-box; display: block; position: absolute; left: -100000px; width: 100%; z-index: 1051; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2); } .select2-results { display: block; } .select2-results__options { list-style: none; margin: 0; padding: 0; } .select2-results__option { padding: 6px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .select2-results__option[aria-selected] { cursor: pointer; } .select2-container--open .select2-dropdown { left: 0; } .select2-search--dropdown { display: block; padding: 4px; } .select2-search--dropdown .select2-search__field { padding: 4px; width: 100%; box-sizing: border-box; } .select2-search--dropdown .select2-search__field::-webkit-search-cancel-button { -webkit-appearance: none; } .select2-search--dropdown.select2-search--hide { display: none; } .select2-close-mask { border: 0; margin: 0; padding: 0; display: block; position: fixed; left: 0; top: 0; min-height: 100%; min-width: 100%; height: auto; width: auto; opacity: 0; z-index: 2; background-color: #fff; filter: alpha(opacity=0); } .select2-container--default .select2-selection--single { background-color: #fff; border: 1px solid #aaa; } .select2-container--default .select2-selection--single .select2-selection__rendered { color: #444; line-height: 28px; } .select2-container--default .select2-selection--single .select2-selection__clear { cursor: pointer; float: right; font-weight: bold; } .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #999; } .select2-container--default .select2-selection--single .select2-selection__arrow { height: 26px; position: absolute; top: 1px; right: 1px; width: 20px; } .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #888 transparent transparent transparent; border-style: solid; border-width: 5px 4px 0 4px; height: 0; left: 50%; margin-left: -4px; margin-top: -2px; position: absolute; top: 50%; width: 0; } .select2-container--default.select2-container--disabled .select2-selection--single { background-color: #eee; cursor: default; } .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear { display: none; } .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent #888 transparent; border-width: 0 4px 5px 4px; } .select2-container--default .select2-selection--multiple { background-color: white; border: 1px solid #aaa; cursor: text; } .select2-container--default .select2-selection--multiple .select2-selection__rendered { box-sizing: border-box; list-style: none; margin: 0; padding: 0 5px; width: 100%; } .select2-container--default .select2-selection--multiple .select2-selection__placeholder { color: #999; margin-top: 5px; float: left; } .select2-container--default .select2-selection--multiple .select2-selection__clear { cursor: pointer; float: right; font-weight: bold; margin-top: 5px; margin-right: 10px; } .select2-container--default .select2-selection--multiple .select2-selection__choice { background-color: #eeeeee; border: 1px solid #999999; color: #1d1d1d; font-size: .875rem; cursor: default; float: left; margin-right: 5px; margin-top: 5px; padding: 0 5px; vertical-align: middle; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); } .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: #999; cursor: pointer; display: inline-block; margin-right: 2px; } .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { color: #333; } .select2-container--default.select2-container--focus .select2-selection--multiple { border: solid black 1px; outline: 0; } .select2-container--default.select2-container--focus .select2-selection--single { border: solid black 1px; outline: 0; } .select2-container--default.select2-container--disabled .select2-selection--multiple { background-color: #eee; cursor: default; } .select2-container--default.select2-container--disabled .select2-selection__choice__remove { display: none; } .select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid #aaa; } .select2-container--default .select2-search--inline .select2-search__field { background: transparent; border: none; outline: 0; } .select2-container--default .select2-results > .select2-results__options { max-height: 200px; overflow-y: auto; } .select2-container--default .select2-results__option[role=group] { padding: 0; } .select2-container--default .select2-results__option[aria-disabled=true] { color: #999; } .select2-container--default .select2-results__option[aria-selected=true] { background-color: #ddd; } .select2-container--default .select2-results__option .select2-results__option { padding-left: 1em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__group { padding-left: 0; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option { margin-left: -1em; padding-left: 2em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option { margin-left: -2em; padding-left: 3em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { margin-left: -3em; padding-left: 4em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { margin-left: -4em; padding-left: 5em; } .select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option { margin-left: -5em; padding-left: 6em; } .select2-container--default .select2-results__option--highlighted[aria-selected] { background-color: #5897fb; color: white; } .select2-container--default .select2-results__group { cursor: default; display: block; padding: 6px; } .select2-container input { outline: none; } .select2-container .select2-search.select2-search--inline input { margin-top: 7px; padding: 0; } .input-control .select2-container { margin: 0; } .input-control.required .select2-selection { border: 1px dashed #1ba1e2; } .input-control.error .select2-selection { border: 1px solid #ce352c; } .input-control.warning .select2-selection { border: 1px solid #e3c800; } .input-control.success .select2-selection { border: 1px solid #60a917; } .input-control.info .select2-selection { border: 1px solid #1ba1e2; } /* * Third-party plugin DataTables * Plugin home page: http://datatables.net/ */ .dataTable { width: 100%; margin: .625rem 0; clear: both; } .dataTable th, .dataTable td { padding: 0.625rem; } .dataTable thead { border-bottom: 4px solid #999999; } .dataTable thead th, .dataTable thead td { cursor: default; color: #52677a; border-color: transparent; text-align: left; font-style: normal; font-weight: 700; line-height: 100%; } .dataTable tfoot { border-top: 4px solid #999999; } .dataTable tfoot th, .dataTable tfoot td { cursor: default; color: #52677a; border-color: transparent; text-align: left; font-style: normal; font-weight: 700; line-height: 100%; } .dataTable tbody td { padding: 0.625rem 0.85rem; } .dataTable .sortable-column { position: relative; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .dataTable .sortable-column:after { position: absolute; content: ""; width: 1rem; height: 1rem; left: 100%; margin-left: -20px; top: 50%; margin-top: -0.5rem; color: inherit; font-size: 1rem; line-height: 1; } .dataTable .sortable-column.sort-asc, .dataTable .sortable-column.sort-desc { background-color: #eeeeee; } .dataTable .sortable-column.sort-asc:after, .dataTable .sortable-column.sort-desc:after { color: #1d1d1d; } .dataTable .sortable-column.sort-asc:after { content: "\2191"; } .dataTable .sortable-column.sort-desc:after { content: "\2193"; } .dataTable.sortable-markers-on-left .sortable-column { padding-left: 30px; } .dataTable.sortable-markers-on-left .sortable-column:before, .dataTable.sortable-markers-on-left .sortable-column:after { left: 0; margin-left: 10px; } .dataTable tr.selected td { background-color: rgba(28, 183, 236, 0.1); } .dataTable td.selected { background-color: rgba(28, 183, 236, 0.3); } .dataTable.striped tbody tr:nth-child(odd) { background: #eeeeee; } .dataTable.hovered tbody tr:hover { background-color: rgba(28, 183, 236, 0.1); } .dataTable.cell-hovered tbody td:hover { background-color: rgba(28, 183, 236, 0.3); } .dataTable.border { border: 1px #999999 solid; } .dataTable.bordered th, .dataTable.bordered td { border: 1px #999999 solid; } .dataTable.bordered thead tr:first-child th, .dataTable.bordered thead tr:first-child td { border-top: none; } .dataTable.bordered thead tr:first-child th:first-child, .dataTable.bordered thead tr:first-child td:first-child { border-left: none; } .dataTable.bordered thead tr:first-child th:last-child, .dataTable.bordered thead tr:first-child td:last-child { border-right: none; } .dataTable.bordered tbody tr:first-child td { border-top: none; } .dataTable.bordered tbody tr td:first-child { border-left: none; } .dataTable.bordered tbody tr td:last-child { border-right: none; } .dataTable.bordered tbody tr:last-child td { border-bottom: none; } .dataTable .condensed th, .dataTable .condensed td { padding: .3125rem; } .dataTable .super-condensed th, .dataTable .super-condensed td { padding: .125rem; } .dataTable tbody tr.error { background-color: #ce352c; color: #ffffff; } .dataTable tbody tr.error:hover { background-color: #da5a53; } .dataTable tbody tr.warning { background-color: #fa6800; color: #ffffff; } .dataTable tbody tr.warning:hover { background-color: #ffc194; } .dataTable tbody tr.success { background-color: #60a917; color: #ffffff; } .dataTable tbody tr.success:hover { background-color: #7ad61d; } .dataTable tbody tr.info { background-color: #1ba1e2; color: #ffffff; } .dataTable tbody tr.info:hover { background-color: #59cde2; } .dataTable .sorting { position: relative; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .dataTable .sorting:after { position: absolute; content: ""; width: 1rem; height: 1rem; left: 100%; margin-left: -20px; top: 50%; margin-top: -0.5rem; color: inherit; font-size: 1rem; line-height: 1; } .dataTable .sorting.sort-asc, .dataTable .sorting.sort-desc { background-color: #eeeeee; } .dataTable .sorting.sort-asc:after, .dataTable .sorting.sort-desc:after { color: #1d1d1d; } .dataTable .sorting.sort-asc:after { content: "\2191"; } .dataTable .sorting.sort-desc:after { content: "\2193"; } .dataTable .sorting_asc, .dataTable .sorting_desc { position: relative; } .dataTable .sorting_asc:after, .dataTable .sorting_desc:after { position: absolute; content: ""; width: 1rem; height: 1rem; left: 100%; margin-left: -20px; top: 50%; margin-top: -0.5rem; color: inherit; line-height: 1; font-size: 1.1rem; } .dataTable .sorting_asc { background-color: #eeeeee; } .dataTable .sorting_asc:after { color: #1d1d1d; } .dataTable .sorting_asc:after { content: "\2191"; } .dataTable .sorting_desc { background-color: #eeeeee; } .dataTable .sorting_desc:after { color: #1d1d1d; } .dataTable .sorting_desc:after { content: "\2193"; } .dataTables_paginate { display: block; margin: .625rem 0; float: left; width: 50%; margin: 0; } .dataTables_paginate:before, .dataTables_paginate:after { display: table; content: ""; } .dataTables_paginate:after { clear: both; } .dataTables_paginate > .item { display: block; float: left; margin-left: .0652rem; padding: 0.25rem .625rem; background-color: #ffffff; cursor: pointer; border: 1px #eeeeee solid; text-align: center; font-size: .875rem; color: #1d1d1d; } .dataTables_paginate > .item:first-child { margin-left: 0 ; } .dataTables_paginate > .item.current, .dataTables_paginate > .item.active { background-color: #1ba1e2; border-color: #59cde2; color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .dataTables_paginate > .item:hover { background-color: #75c7ee; border-color: #75c7ee; color: #ffffff; } .dataTables_paginate > .item:disabled, .dataTables_paginate > .item.disabled { cursor: default; background-color: #eeeeee; border-color: #eeeeee; color: #999999; } .dataTables_paginate > .item.spaces { border: 0; cursor: default; color: #1d1d1d; } .dataTables_paginate > .item.spaces:hover { background-color: inherit ; color: #1d1d1d; } .dataTables_paginate.rounded > .item { border-radius: .3125rem; } .dataTables_paginate.cycle > .item { width: 28px; height: 28px; border-radius: 50%; font-size: .7rem; padding: .4375rem 0; } .dataTables_paginate.no-border > .item { border: 0; } .dataTables_paginate.no-border > .item:hover { color: #59cde2; background-color: transparent ; } .dataTables_paginate.no-border > .item:disabled, .dataTables_paginate.no-border > .item.disabled { cursor: default; background-color: transparent; border-color: transparent; color: #999999; } .dataTables_paginate.no-border > .item.current:hover, .dataTables_paginate.no-border > .item.active:hover { background-color: #75c7ee; border-color: #75c7ee; color: #ffffff; } .dataTables_paginate .paginate_button { display: block; float: left; margin-left: .0652rem; padding: 0.25rem .625rem; background-color: #ffffff; cursor: pointer; border: 1px #eeeeee solid; text-align: center; font-size: .875rem; color: #1d1d1d; } .dataTables_paginate .paginate_button:first-child { margin-left: 0 ; } .dataTables_paginate .paginate_button.current, .dataTables_paginate .paginate_button.active { background-color: #1ba1e2; border-color: #59cde2; color: #ffffff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } .dataTables_paginate .paginate_button:hover { background-color: #75c7ee; border-color: #75c7ee; color: #ffffff; } .dataTables_paginate .paginate_button:disabled, .dataTables_paginate .paginate_button.disabled { cursor: default; background-color: #eeeeee; border-color: #eeeeee; color: #999999; } .dataTables_paginate .paginate_button.spaces { border: 0; cursor: default; color: #1d1d1d; } .dataTables_paginate .paginate_button.spaces:hover { background-color: inherit ; color: #1d1d1d; } .dataTables_info { padding: 5px; background-color: #eeeeee; font-size: .875rem; float: right; } .dataTables_length { display: block; float: left; margin: .625rem 0; } .dataTables_length select { -moz-appearance: none; -webkit-appearance: none; appearance: none; margin: 0 .125rem; padding: .3125rem; border: 1px #d9d9d9 solid; } .dataTables_length select:focus { outline: none; border-color: #1d1d1d; } .dataTables_filter { display: block; float: right; margin: .625rem 0; } .dataTables_filter label > input { margin: 0 0 0 .25rem; } .dataTables_filter input { -moz-appearance: none; -webkit-appearance: none; appearance: none; padding: .3125rem; border: 1px #d9d9d9 solid; } .dataTables_filter input:focus { outline: none; border-color: #1d1d1d; } .flexbox { display: -webkit-flex; display: flex; } .flex-dir-row { -webkit-flex-direction: row; flex-direction: row; } .flex-dir-row-reverse { -webkit-flex-direction: row-reverse; flex-direction: row-reverse; } .flex-dir-column { -webkit-flex-direction: column; flex-direction: column; } .flex-dir-column-reverse { -webkit-flex-direction: column-reverse; flex-direction: column-reverse; } .flex-wrap { -webkit-flex-wrap: wrap; flex-wrap: wrap; } .flex-wrap-reverse { -webkit-flex-wrap: wrap-reverse; flex-wrap: wrap-reverse; } .flex-no-wrap { -webkit-flex-wrap: nowrap; flex-wrap: nowrap; } .flex-just-start { -webkit-justify-content: flex-start; justify-content: flex-start; } .flex-just-end { -webkit-justify-content: flex-end; justify-content: flex-end; } .flex-just-center { -webkit-justify-content: center; justify-content: center; } .flex-just-sa { -webkit-justify-content: space-around; justify-content: space-around; } .flex-just-sb { -webkit-justify-content: space-between; justify-content: space-between; } .flex-align-stretch { -webkit-align-items: stretch; align-items: stretch; } .flex-align-start { -webkit-align-items: flex-start; align-items: flex-start; } .flex-align-end { -webkit-align-items: flex-end; align-items: flex-end; } .flex-align-center { -webkit-align-items: center; align-items: center; } .flex-align-base { -webkit-align-items: baseline; align-items: baseline; } .flex-content-stretch { -webkit-align-content: stretch; align-content: stretch; } .flex-content-start { -webkit-align-content: flex-start; align-content: flex-start; } .flex-content-end { -webkit-align-content: flex-end; align-content: flex-end; } .flex-content-center { -webkit-align-content: center; align-content: center; } .flex-content-sb { -webkit-align-content: space-between; align-content: space-between; } .flex-content-sa { -webkit-align-content: space-around; align-content: space-around; } .flex-self-auto { -webkit-align-self: auto; align-self: auto; } .flex-self-start { -webkit-align-self: flex-start; align-self: flex-start; } .flex-self-end { -webkit-align-self: flex-end; align-self: flex-end; } .flex-self-center { -webkit-align-self: center; align-self: center; } .flex-self-base { -webkit-align-self: baseline; align-self: baseline; } .flex-self-stretch { -webkit-align-self: stretch; align-self: stretch; } .no-shrink { -webkit-flex-shrink: 0 !important; flex-shrink: 0 !important; } .no-grow { -webkit-flex-grow: 0 !important; flex-grow: 0 !important; } .flex-size-auto { -webkit-flex: 1 auto; flex: 1 auto; } .flex-size1 { -webkit-flex-grow: 1; flex-grow: 1; } .flex-size2 { -webkit-flex-grow: 2; flex-grow: 2; } .flex-size3 { -webkit-flex-grow: 3; flex-grow: 3; } .flex-size4 { -webkit-flex-grow: 4; flex-grow: 4; } .flex-size5 { -webkit-flex-grow: 5; flex-grow: 5; } .flex-size6 { -webkit-flex-grow: 6; flex-grow: 6; } .flex-size7 { -webkit-flex-grow: 7; flex-grow: 7; } .flex-size8 { -webkit-flex-grow: 8; flex-grow: 8; } .flex-size9 { -webkit-flex-grow: 9; flex-grow: 9; } .flex-size10 { -webkit-flex-grow: 10; flex-grow: 10; } .flex-size11 { -webkit-flex-grow: 11; flex-grow: 11; } .flex-size12 { -webkit-flex-grow: 12; flex-grow: 12; } .flex-size-p10 { -webkit-flex: 0 0 10%; flex: 0 0 10%; } .flex-size-p20 { -webkit-flex: 0 0 20%; flex: 0 0 20%; } .flex-size-p30 { -webkit-flex: 0 0 30%; flex: 0 0 30%; } .flex-size-p40 { -webkit-flex: 0 0 40%; flex: 0 0 40%; } .flex-size-p50 { -webkit-flex: 0 0 50%; flex: 0 0 50%; } .flex-size-p60 { -webkit-flex: 0 0 60%; flex: 0 0 60%; } .flex-size-p70 { -webkit-flex: 0 0 70%; flex: 0 0 70%; } .flex-size-p80 { -webkit-flex: 0 0 80%; flex: 0 0 80%; } .flex-size-p90 { -webkit-flex: 0 0 90%; flex: 0 0 90%; } .flex-size-p100 { -webkit-flex: 0 0 100%; flex: 0 0 100%; } .flex-size-x100 { -webkit-flex: 0 0 100px; flex: 0 0 100px; } .flex-size-x200 { -webkit-flex: 0 0 200px; flex: 0 0 200px; } .flex-size-x300 { -webkit-flex: 0 0 300px; flex: 0 0 300px; } .flex-size-x400 { -webkit-flex: 0 0 400px; flex: 0 0 400px; } .flex-size-x500 { -webkit-flex: 0 0 500px; flex: 0 0 500px; } .flex-size-x600 { -webkit-flex: 0 0 600px; flex: 0 0 600px; } .flex-size-x700 { -webkit-flex: 0 0 700px; flex: 0 0 700px; } .flex-size-x800 { -webkit-flex: 0 0 800px; flex: 0 0 800px; } .flex-size-x900 { -webkit-flex: 0 0 900px; flex: 0 0 900px; } .flex-size-x1000 { -webkit-flex: 0 0 1000px; flex: 0 0 1000px; }
jdh8/cdnjs
ajax/libs/metro/3.0.8/css/metro.css
CSS
mit
382,954
/*! UIkit 2.24.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(UI) { "use strict"; var Animations; UI.component('switcher', { defaults: { connect : false, toggle : ">*", active : 0, animation : false, duration : 200, swiping : true }, animating: false, boot: function() { // init code UI.ready(function(context) { UI.$("[data-uk-switcher]", context).each(function() { var switcher = UI.$(this); if (!switcher.data("switcher")) { var obj = UI.switcher(switcher, UI.Utils.options(switcher.attr("data-uk-switcher"))); } }); }); }, init: function() { var $this = this; this.on("click.uikit.switcher", this.options.toggle, function(e) { e.preventDefault(); $this.show(this); }); if (this.options.connect) { this.connect = UI.$(this.options.connect); this.connect.find(".uk-active").removeClass(".uk-active"); // delegate switch commands within container content if (this.connect.length) { // Init ARIA for connect this.connect.children().attr('aria-hidden', 'true'); this.connect.on("click", '[data-uk-switcher-item]', function(e) { e.preventDefault(); var item = UI.$(this).attr('data-uk-switcher-item'); if ($this.index == item) return; switch(item) { case 'next': case 'previous': $this.show($this.index + (item=='next' ? 1:-1)); break; default: $this.show(parseInt(item, 10)); } }); if (this.options.swiping) { this.connect.on('swipeRight swipeLeft', function(e) { e.preventDefault(); if(!window.getSelection().toString()) { $this.show($this.index + (e.type == 'swipeLeft' ? 1 : -1)); } }); } } var toggles = this.find(this.options.toggle), active = toggles.filter(".uk-active"); if (active.length) { this.show(active, false); } else { if (this.options.active===false) return; active = toggles.eq(this.options.active); this.show(active.length ? active : toggles.eq(0), false); } // Init ARIA for toggles toggles.not(active).attr('aria-expanded', 'false'); active.attr('aria-expanded', 'true'); this.on('changed.uk.dom', function() { $this.connect = UI.$($this.options.connect); }); } }, show: function(tab, animate) { if (this.animating) { return; } if (isNaN(tab)) { tab = UI.$(tab); } else { var toggles = this.find(this.options.toggle); tab = tab < 0 ? toggles.length-1 : tab; tab = toggles.eq(toggles[tab] ? tab : 0); } var $this = this, toggles = this.find(this.options.toggle), active = UI.$(tab), animation = Animations[this.options.animation] || function(current, next) { if (!$this.options.animation) { return Animations.none.apply($this); } var anim = $this.options.animation.split(','); if (anim.length == 1) { anim[1] = anim[0]; } anim[0] = anim[0].trim(); anim[1] = anim[1].trim(); return coreAnimation.apply($this, [anim, current, next]); }; if (animate===false || !UI.support.animation) { animation = Animations.none; } if (active.hasClass("uk-disabled")) return; // Update ARIA for Toggles toggles.attr('aria-expanded', 'false'); active.attr('aria-expanded', 'true'); toggles.filter(".uk-active").removeClass("uk-active"); active.addClass("uk-active"); if (this.options.connect && this.connect.length) { this.index = this.find(this.options.toggle).index(active); if (this.index == -1 ) { this.index = 0; } this.connect.each(function() { var container = UI.$(this), children = UI.$(container.children()), current = UI.$(children.filter('.uk-active')), next = UI.$(children.eq($this.index)); $this.animating = true; animation.apply($this, [current, next]).then(function(){ current.removeClass("uk-active"); next.addClass("uk-active"); // Update ARIA for connect current.attr('aria-hidden', 'true'); next.attr('aria-hidden', 'false'); UI.Utils.checkDisplay(next, true); $this.animating = false; }); }); } this.trigger("show.uk.switcher", [active]); } }); Animations = { 'none': function() { var d = UI.$.Deferred(); d.resolve(); return d.promise(); }, 'fade': function(current, next) { return coreAnimation.apply(this, ['uk-animation-fade', current, next]); }, 'slide-bottom': function(current, next) { return coreAnimation.apply(this, ['uk-animation-slide-bottom', current, next]); }, 'slide-top': function(current, next) { return coreAnimation.apply(this, ['uk-animation-slide-top', current, next]); }, 'slide-vertical': function(current, next, dir) { var anim = ['uk-animation-slide-top', 'uk-animation-slide-bottom']; if (current && current.index() > next.index()) { anim.reverse(); } return coreAnimation.apply(this, [anim, current, next]); }, 'slide-left': function(current, next) { return coreAnimation.apply(this, ['uk-animation-slide-left', current, next]); }, 'slide-right': function(current, next) { return coreAnimation.apply(this, ['uk-animation-slide-right', current, next]); }, 'slide-horizontal': function(current, next, dir) { var anim = ['uk-animation-slide-right', 'uk-animation-slide-left']; if (current && current.index() > next.index()) { anim.reverse(); } return coreAnimation.apply(this, [anim, current, next]); }, 'scale': function(current, next) { return coreAnimation.apply(this, ['uk-animation-scale-up', current, next]); } }; UI.switcher.animations = Animations; // helpers function coreAnimation(cls, current, next) { var d = UI.$.Deferred(), clsIn = cls, clsOut = cls, release; if (next[0]===current[0]) { d.resolve(); return d.promise(); } if (typeof(cls) == 'object') { clsIn = cls[0]; clsOut = cls[1] || cls[0]; } UI.$body.css('overflow-x', 'hidden'); // fix scroll jumping in iOS release = function() { if (current) current.hide().removeClass('uk-active '+clsOut+' uk-animation-reverse'); next.addClass(clsIn).one(UI.support.animation.end, function() { next.removeClass(''+clsIn+'').css({opacity:'', display:''}); d.resolve(); UI.$body.css('overflow-x', ''); if (current) current.css({opacity:'', display:''}); }.bind(this)).show(); }; next.css('animation-duration', this.options.duration+'ms'); if (current && current.length) { current.css('animation-duration', this.options.duration+'ms'); current.css('display', 'none').addClass(clsOut+' uk-animation-reverse').one(UI.support.animation.end, function() { release(); }.bind(this)).css('display', ''); } else { next.addClass('uk-active'); release(); } return d.promise(); } })(UIkit);
redmunds/cdnjs
ajax/libs/uikit/2.24.0/js/core/switcher.js
JavaScript
mit
9,333