text
stringlengths 2
1.05M
|
|---|
import BaseView from 'js/view/base';
export default class NotFoundIndexView extends BaseView {
run(c) {
this._setMeta(c);
this._render(c);
console.log('#run done');
}
// private methods
_setMeta() {
$('title').text(`Page Not Found | ${this.siteName}`);
}
_render() {
$('#message').append(`
<h2>404</h2>
<h1>Page Not Found</h1>
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
<h3>Why am I seeing this?</h3>
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
`);
}
}
|
import initialState from './World.state';
import { Actions } from './World.actions';
export default (state = initialState, action) => {
switch (action.type) {
case Actions.TOGGLE_TRACKING: return { ...state, tracking: !state.tracking };
case Actions.TOGGLE_PAUSE: return { ...state, paused: !state.paused };
case Actions.RESET: return { ...state, id: action.payload.id };
default: return state;
}
};
|
/**
* Hilo
* Copyright 2015 alibaba.com
* Licensed under the MIT License
*/
/**
* @class View View is the base class of all display objects
* @mixes EventMixin
* @borrows EventMixin#on as #on
* @borrows EventMixin#off as #off
* @borrows EventMixin#fire as #fire
* @param {Object} properties The properties to create a view object, contains all writeable props of this class
* @module hilo/view/View
* @requires hilo/core/Hilo
* @requires hilo/core/Class
* @requires hilo/event/EventMixin
* @requires hilo/geom/Matrix
* @property {String} id The identifier for the view.
* @property {Number} x The position of the view on the x axis relative to the local coordinates of the parent, default value is 0.
* @property {Number} y The position of the view on the y axis relative to the local coordinates of the parent, default value is 0.
* @property {Number} width The width of the view, default value is 0.
* @property {Number} height The height of the view, default value is 0.
* @property {Number} alpha The opacity of the view, default value is 1.
* @property {Number} rotation The rotation of the view in angles, default value is 0.
* @property {Boolean} visible The visibility of the view. If false the vew will not be drawn, default value is true.
* @property {Number} pivotX Position of the center point on the x axis of the view, default value is 0.
* @property {Number} pivotY Position of the center point on the y axis of the view, default value is 0.
* @property {Number} scaleX The x axis scale factor of the view, default value is 1.
* @property {Number} scaleY The y axis scale factor of the view, default value is 1.
* @property {Boolean} pointerEnabled Is the view can receive DOM events, default value is true.
* @property {Object} background The background style to fill the view, can be css color, gradient or pattern of canvas
* @property {Graphics} mask Sets a mask for the view. A mask is an object that limits the visibility of an object to the shape of the mask applied to it. A regular mask must be a Hilo.Graphics object. This allows for much faster masking in canvas as it utilises shape clipping. To remove a mask, set this property to null.
* @property {Number} tint The tint applied to the view,default is 0xFFFFFF.Only support in WebGL mode.
* @property {String|Function} align The alignment of the view, the value must be one of Hilo.align enum.
* @property {Container} parent The parent view of this view, readonly!
* @property {Number} depth The z index of the view, readonly!
* @property {Drawable} drawable The drawable object of the view. Only for advanced develop.
* @property {Array} boundsArea The vertex points of the view, the points are relative to the center point. This is a example: [{x:10, y:10}, {x:20, y:20}].
*/
var View = (function(){
return Class.create(/** @lends View.prototype */{
Mixes: EventMixin,
constructor: function(properties){
properties = properties || {};
this.id = this.id || properties.id || Hilo.getUid("View");
Hilo.copy(this, properties, true);
},
tint:0xffffff,
id: null,
x: 0,
y: 0,
width: 0,
height: 0,
alpha: 1,
rotation: 0,
visible: true,
pivotX: 0,
pivotY: 0,
scaleX: 1,
scaleY: 1,
pointerEnabled: true,
background: null,
mask: null,
align: null,
drawable: null,
boundsArea: null,
parent: null,
depth: -1,
/**
* Get the stage object of the view. If the view doesn't add to any stage, null will be returned.
* @returns {Stage} The stage object of the view.
*/
getStage: function(){
var obj = this, parent;
while(parent = obj.parent) obj = parent;
//NOTE: don't use `instanceof` to prevent circular module requirement.
//But it's not a very reliable way to check it's a stage instance.
if(obj.canvas) return obj;
return null;
},
/**
* Get the scaled width of the view.
* @returns {Number} scaled width of the view.
*/
getScaledWidth: function(){
return this.width * this.scaleX;
},
/**
* Get the scaled height of the view.
* @returns {Number} scaled height of the view.
*/
getScaledHeight: function(){
return this.height * this.scaleY;
},
/**
* Add current view to a Contaner.
* @param {Container} container Container object.
* @param {Uint} index The index of the view in container.
* @returns {View} Current view.
*/
addTo: function(container, index){
if(typeof index === 'number') container.addChildAt(this, index);
else container.addChild(this);
return this;
},
/**
* Remove current view from it's parent container
* @returns {View} Current view.
*/
removeFromParent: function(){
var parent = this.parent;
if(parent) parent.removeChild(this);
return this;
},
/**
* Get the bounds of the view as a circumscribed rectangle and all vertex points relative to the coordinates of the stage.
* @returns {Array} The vertex points array, and the array contains the following properties:
* <ul>
* <li><b>x</b> - The position of the view on the x axis relative to the coordinates of the stage.</li>
* <li><b>y</b> - The position of the view on the y axis relative to the coordinates of the stage.</li>
* <li><b>width</b> - The width of circumscribed rectangle of the view.</li>
* <li><b>height</b> - The height of circumscribed rectangle of the view</li>
* </ul>
*/
getBounds: function(){
var w = this.width, h = this.height,
mtx = this.getConcatenatedMatrix(),
poly = this.boundsArea || [{x:0, y:0}, {x:w, y:0}, {x:w, y:h}, {x:0, y:h}],
vertexs = [], point, x, y, minX, maxX, minY, maxY;
for(var i = 0, len = poly.length; i < len; i++){
point = mtx.transformPoint(poly[i], true, true);
x = point.x;
y = point.y;
if(i == 0){
minX = maxX = x;
minY = maxY = y;
}else{
if(minX > x) minX = x;
else if(maxX < x) maxX = x;
if(minY > y) minY = y;
else if(maxY < y) maxY = y;
}
vertexs[i] = point;
}
vertexs.x = minX;
vertexs.y = minY;
vertexs.width = maxX - minX;
vertexs.height = maxY - minY;
return vertexs;
},
/**
* Get the matrix that can transform points from current view coordinates to the ancestor container coordinates.
* @param {View} ancestor The ancestor of current view, default value is the top container.
* @private
*/
getConcatenatedMatrix: function(ancestor){
var mtx = new Matrix(1, 0, 0, 1, 0, 0);
for(var o = this; o != ancestor && o.parent; o = o.parent){
var cos = 1, sin = 0,
rotation = o.rotation % 360,
pivotX = o.pivotX, pivotY = o.pivotY,
scaleX = o.scaleX, scaleY = o.scaleY;
if(rotation){
var r = rotation * Math.PI / 180;
cos = Math.cos(r);
sin = Math.sin(r);
}
if(pivotX != 0) mtx.tx -= pivotX;
if(pivotY != 0) mtx.ty -= pivotY;
mtx.concat(cos*scaleX, sin*scaleX, -sin*scaleY, cos*scaleY, o.x, o.y);
}
return mtx;
},
/**
* Determining whether a point is in the circumscribed rectangle of current view.
* @param {Number} x The x axis relative to the stage coordinates.
* @param {Number} y The y axis relative to the stage coordinates.
* @param {Boolean} usePolyCollision Is use polygon collision, default value is false.
* @returns {Boolean} the point is in the circumscribed rectangle of current view.
*/
hitTestPoint: function(x, y, usePolyCollision){
var bound = this.getBounds(),
hit = x >= bound.x && x <= bound.x + bound.width &&
y >= bound.y && y <= bound.y + bound.height;
if(hit && usePolyCollision){
hit = pointInPolygon(x, y, bound);
}
return hit;
},
/**
* Determining whether an object is in the circumscribed rectangle of current view.
* @param {View} object The object need to determining.
* @param {Boolean} usePolyCollision Is use polygon collision, default value is false.
*/
hitTestObject: function(object, usePolyCollision){
var b1 = this.getBounds(),
b2 = object.getBounds(),
hit = b1.x <= b2.x + b2.width && b2.x <= b1.x + b1.width &&
b1.y <= b2.y + b2.height && b2.y <= b1.y + b1.height;
if(hit && usePolyCollision){
hit = polygonCollision(b1, b2);
}
return !!hit;
},
/**
* The method to render current display object. Only for advanced develop.
* @param {Renderer} renderer Renderer object.
* @param {Number} delta The delta time of render.
* @protected
*/
_render: function(renderer, delta){
if((!this.onUpdate || this.onUpdate(delta) !== false) && renderer.startDraw(this)){
renderer.transform(this);
this.render(renderer, delta);
renderer.endDraw(this);
}
},
/**
* Mouse event
*/
_fireMouseEvent:function(e){
e.eventCurrentTarget = this;
this.fire(e);
// 处理mouseover事件 mouseover不需要阻止冒泡
// handle mouseover event, mouseover needn't stop propagation.
if(e.type == "mousemove"){
if(!this.__mouseOver){
this.__mouseOver = true;
var overEvent = Hilo.copy({}, e);
overEvent.type = "mouseover";
this.fire(overEvent);
}
}
else if(e.type == "mouseout"){
this.__mouseOver = false;
}
// 向上冒泡
// handle event propagation
var parent = this.parent;
if(!e._stopped && !e._stopPropagationed && parent){
if(e.type == "mouseout" || e.type == "touchout"){
if(!parent.hitTestPoint(e.stageX, e.stageY, true)){
parent._fireMouseEvent(e);
}
}
else{
parent._fireMouseEvent(e);
}
}
},
/**
* This method will call while the view need update(usually caused by ticker update). This method can return a Boolean value, if return false, the view will not be drawn.
* Limit: If you change the index in it's parent, it will not be drawn correct in current frame but next frame is correct.
* @type Function
* @default null
*/
onUpdate: null,
/**
* The render method of current view. The subclass can implement it's own render logic by rewrite this function.
* @param {Renderer} renderer Renderer object.
* @param {Number} delta The delta time of render.
*/
render: function(renderer, delta){
renderer.draw(this);
},
/**
* Get a string representing current view.
* @returns {String} string representing current view.
*/
toString: function(){
return Hilo.viewToString(this);
}
});
/**
* @private
*/
function pointInPolygon(x, y, poly){
var cross = 0, onBorder = false, minX, maxX, minY, maxY;
for(var i = 0, len = poly.length; i < len; i++){
var p1 = poly[i], p2 = poly[(i+1)%len];
if(p1.y == p2.y && y == p1.y){
p1.x > p2.x ? (minX = p2.x, maxX = p1.x) : (minX = p1.x, maxX = p2.x);
if(x >= minX && x <= maxX){
onBorder = true;
continue;
}
}
p1.y > p2.y ? (minY = p2.y, maxY = p1.y) : (minY = p1.y, maxY = p2.y);
if(y < minY || y > maxY) continue;
var nx = (y - p1.y)*(p2.x - p1.x) / (p2.y - p1.y) + p1.x;
if(nx > x) cross++;
else if(nx == x) onBorder = true;
//当射线和多边形相交
if(p1.x > x && p1.y == y){
var p0 = poly[(len+i-1)%len];
//当交点的两边在射线两旁
if(p0.y < y && p2.y > y || p0.y > y && p2.y < y){
cross ++;
}
}
}
return onBorder || (cross % 2 == 1);
}
/**
* @private
*/
function polygonCollision(poly1, poly2){
var result = doSATCheck(poly1, poly2, {overlap:-Infinity, normal:{x:0, y:0}});
if(result) return doSATCheck(poly2, poly1, result);
return false;
}
/**
* @private
*/
function doSATCheck(poly1, poly2, result){
var len1 = poly1.length, len2 = poly2.length,
currentPoint, nextPoint, distance,
min1, max1, min2, max2, dot, overlap, normal = {x:0, y:0};
for(var i = 0; i < len1; i++){
currentPoint = poly1[i];
nextPoint = poly1[(i < len1-1 ? i+1 : 0)];
normal.x = currentPoint.y - nextPoint.y;
normal.y = nextPoint.x - currentPoint.x;
distance = Math.sqrt(normal.x * normal.x + normal.y * normal.y);
normal.x /= distance;
normal.y /= distance;
min1 = max1 = poly1[0].x * normal.x + poly1[0].y * normal.y;
for(var j = 1; j < len1; j++){
dot = poly1[j].x * normal.x + poly1[j].y * normal.y;
if(dot > max1) max1 = dot;
else if(dot < min1) min1 = dot;
}
min2 = max2 = poly2[0].x * normal.x + poly2[0].y * normal.y;
for(j = 1; j < len2; j++){
dot = poly2[j].x * normal.x + poly2[j].y * normal.y;
if(dot > max2) max2 = dot;
else if(dot < min2) min2 = dot;
}
if(min1 < min2){
overlap = min2 - max1;
normal.x = -normal.x;
normal.y = -normal.y;
}else{
overlap = min1 - max2;
}
if(overlap >= 0){
return false;
}else if(overlap > result.overlap){
result.overlap = overlap;
result.normal.x = normal.x;
result.normal.y = normal.y;
}
}
return result;
}
})();
|
var searchData=
[
['default_947',['DEFAULT',['../class_clickable_character.html#a082ddbc94df1b44eb43edd477fbec3cea5b39c8b553c821e7cddc6da64b5bd2ee',1,'ClickableCharacter.DEFAULT()'],['../class_clickable_hex.html#aec287a75c6a2ff260226d82df58b56f3a5b39c8b553c821e7cddc6da64b5bd2ee',1,'ClickableHex.DEFAULT()']]],
['defense_948',['Defense',['../namespace_monsters.html#a3ca8544350a537a591692110c8c09e7aa4b088aaa68446b6ec08cdc385d03516d',1,'Monsters']]],
['double_5fattack_5f1_5fphase_949',['Double_Attack_1_Phase',['../namespace_game_logic.html#a09f4a33ac72feaf9113eec3f027e4392ab0800b1d63484697bb1ee939eddb09b4',1,'GameLogic']]],
['double_5fattack_5f2_5fphase_950',['Double_Attack_2_Phase',['../namespace_game_logic.html#a09f4a33ac72feaf9113eec3f027e4392a8e5a586dae267929a5225feb0c183700',1,'GameLogic']]]
];
|
export { default } from 'osf-components/components/registries/finalize-registration-modal/manager/component';
|
var json_MilwaukeePercentNonWhite_2 = {
"type": "FeatureCollection",
"name": "MilwaukeePercentNonWhite_2",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "NonWhte": 96.765 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937331, 43.076834 ], [ -87.937215, 43.082363 ], [ -87.934834, 43.082314 ], [ -87.934552, 43.08181 ], [ -87.932735, 43.077971 ], [ -87.929859, 43.077915 ], [ -87.926168, 43.077677 ], [ -87.92371, 43.077655 ], [ -87.92378, 43.074887 ], [ -87.92393, 43.074888 ], [ -87.931726, 43.074981 ], [ -87.931045, 43.073219 ], [ -87.934375, 43.073213 ], [ -87.937354, 43.075767 ], [ -87.937331, 43.076834 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 85.908 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.931726, 43.074981 ], [ -87.92393, 43.074888 ], [ -87.923988, 43.071206 ], [ -87.926758, 43.071226 ], [ -87.927547, 43.071226 ], [ -87.929232, 43.071243 ], [ -87.929199, 43.073189 ], [ -87.931045, 43.073219 ], [ -87.931726, 43.074981 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.217 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.909473, 43.074766 ], [ -87.905229, 43.074747 ], [ -87.905246, 43.072948 ], [ -87.905264, 43.07114 ], [ -87.909539, 43.071085 ], [ -87.909473, 43.074766 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 71.279 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.913984, 43.074793 ], [ -87.910997, 43.074775 ], [ -87.909473, 43.074766 ], [ -87.909539, 43.071085 ], [ -87.914023, 43.071124 ], [ -87.913984, 43.074793 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 27.415 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.905229, 43.074747 ], [ -87.905169, 43.07658 ], [ -87.901444, 43.076556 ], [ -87.897702, 43.076526 ], [ -87.897778, 43.072907 ], [ -87.899099, 43.072914 ], [ -87.905246, 43.072948 ], [ -87.905229, 43.074747 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 27.119 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.905246, 43.072948 ], [ -87.899099, 43.072914 ], [ -87.897778, 43.072907 ], [ -87.8978, 43.071159 ], [ -87.8978, 43.071092 ], [ -87.899112, 43.071101 ], [ -87.900323, 43.071108 ], [ -87.905264, 43.07114 ], [ -87.905246, 43.072948 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 9.319 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.891464, 43.074678 ], [ -87.887862, 43.074652 ], [ -87.882905, 43.074643 ], [ -87.882942, 43.072814 ], [ -87.891499, 43.072857 ], [ -87.891464, 43.074678 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 28.205 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.891499, 43.072857 ], [ -87.882942, 43.072814 ], [ -87.88297, 43.071001 ], [ -87.891519, 43.071074 ], [ -87.891499, 43.072857 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 78.062 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.909558, 43.069347 ], [ -87.909539, 43.071085 ], [ -87.905264, 43.07114 ], [ -87.9053, 43.067493 ], [ -87.909578, 43.067521 ], [ -87.909558, 43.069347 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942457, 43.067854 ], [ -87.937481, 43.067798 ], [ -87.937542, 43.064157 ], [ -87.94253, 43.064217 ], [ -87.942457, 43.067854 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 79.698 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952141, 43.105474 ], [ -87.950984, 43.10638 ], [ -87.950713, 43.109545 ], [ -87.946503, 43.1104 ], [ -87.946543, 43.108381 ], [ -87.946655, 43.104498 ], [ -87.94637, 43.103965 ], [ -87.945479, 43.102238 ], [ -87.951742, 43.102515 ], [ -87.952296, 43.104561 ], [ -87.952141, 43.105474 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.319 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.956735, 43.104132 ], [ -87.95658, 43.104613 ], [ -87.954669, 43.104608 ], [ -87.952296, 43.104561 ], [ -87.951742, 43.102515 ], [ -87.945479, 43.102238 ], [ -87.94372, 43.098933 ], [ -87.945351, 43.098957 ], [ -87.94577, 43.100821 ], [ -87.946757, 43.100834 ], [ -87.953009, 43.100854 ], [ -87.954414, 43.100617 ], [ -87.956558, 43.100761 ], [ -87.956812, 43.10076 ], [ -87.956735, 43.104132 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.084 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.960076, 43.111936 ], [ -87.956443, 43.11192 ], [ -87.954001, 43.111895 ], [ -87.949946, 43.111854 ], [ -87.946469, 43.111819 ], [ -87.946503, 43.1104 ], [ -87.950713, 43.109545 ], [ -87.950984, 43.10638 ], [ -87.952141, 43.105474 ], [ -87.952296, 43.104561 ], [ -87.954669, 43.104608 ], [ -87.95658, 43.104613 ], [ -87.956546, 43.106413 ], [ -87.957777, 43.106418 ], [ -87.95774, 43.108257 ], [ -87.956907, 43.108251 ], [ -87.96108, 43.111941 ], [ -87.960076, 43.111936 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.916 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.966815, 43.102572 ], [ -87.959173, 43.102567 ], [ -87.958329, 43.10076 ], [ -87.957575, 43.098946 ], [ -87.966911, 43.098951 ], [ -87.966815, 43.102572 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.88 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.96696, 43.097414 ], [ -87.966911, 43.098951 ], [ -87.957575, 43.098946 ], [ -87.956814, 43.09692 ], [ -87.956846, 43.096538 ], [ -87.958111, 43.096521 ], [ -87.959891, 43.096523 ], [ -87.961673, 43.096646 ], [ -87.966991, 43.09685 ], [ -87.96696, 43.097414 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.993 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.966797, 43.103403 ], [ -87.966527, 43.104621 ], [ -87.962731, 43.104618 ], [ -87.957875, 43.104615 ], [ -87.95658, 43.104613 ], [ -87.956735, 43.104132 ], [ -87.956812, 43.10076 ], [ -87.958329, 43.10076 ], [ -87.959173, 43.102567 ], [ -87.966815, 43.102572 ], [ -87.966797, 43.103403 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 52.91 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.905264, 43.07114 ], [ -87.900323, 43.071108 ], [ -87.900352, 43.067463 ], [ -87.9053, 43.067493 ], [ -87.905264, 43.07114 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 32.826 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.9053, 43.067493 ], [ -87.900352, 43.067463 ], [ -87.900402, 43.063821 ], [ -87.905342, 43.063853 ], [ -87.9053, 43.067493 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.88 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926081, 43.081672 ], [ -87.924846, 43.081662 ], [ -87.92238, 43.081642 ], [ -87.92247, 43.077643 ], [ -87.92371, 43.077655 ], [ -87.926168, 43.077677 ], [ -87.926081, 43.081672 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.6 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.92238, 43.081642 ], [ -87.920602, 43.081627 ], [ -87.918385, 43.081712 ], [ -87.916563, 43.079553 ], [ -87.915441, 43.077579 ], [ -87.91689, 43.077586 ], [ -87.92247, 43.077643 ], [ -87.92238, 43.081642 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.154 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.929767, 43.081718 ], [ -87.927302, 43.081674 ], [ -87.926081, 43.081672 ], [ -87.926168, 43.077677 ], [ -87.929859, 43.077915 ], [ -87.929767, 43.081718 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.6 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933429, 43.081789 ], [ -87.929767, 43.081718 ], [ -87.929859, 43.077915 ], [ -87.932735, 43.077971 ], [ -87.934552, 43.08181 ], [ -87.933429, 43.081789 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 27.706 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.901253, 43.082004 ], [ -87.897542, 43.081972 ], [ -87.897702, 43.076526 ], [ -87.901444, 43.076556 ], [ -87.901253, 43.082004 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 31.174 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.897778, 43.072907 ], [ -87.897702, 43.076526 ], [ -87.897542, 43.081972 ], [ -87.892183, 43.081905 ], [ -87.893271, 43.078015 ], [ -87.892684, 43.07413 ], [ -87.893204, 43.071095 ], [ -87.8978, 43.071159 ], [ -87.897778, 43.072907 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 33.379 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.904981, 43.080132 ], [ -87.904998, 43.082037 ], [ -87.901253, 43.082004 ], [ -87.901444, 43.076556 ], [ -87.905169, 43.07658 ], [ -87.904981, 43.080132 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 2.76 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.894717, 43.067408 ], [ -87.886722, 43.067387 ], [ -87.886783, 43.063733 ], [ -87.890616, 43.063761 ], [ -87.890473, 43.061348 ], [ -87.891631, 43.06015 ], [ -87.891914, 43.060152 ], [ -87.893645, 43.060166 ], [ -87.892928, 43.063321 ], [ -87.895049, 43.067923 ], [ -87.894717, 43.067408 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.507 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.890473, 43.061348 ], [ -87.890616, 43.063761 ], [ -87.886783, 43.063733 ], [ -87.883063, 43.063722 ], [ -87.883105, 43.060795 ], [ -87.883763, 43.060112 ], [ -87.891631, 43.06015 ], [ -87.890473, 43.061348 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 82.195 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.027709973251277, 43.09019666937936 ], [ -88.027707131886615, 43.090196674845238 ], [ -88.02769288411686, 43.091623350630279 ], [ -88.027691108371158, 43.092079280777725 ], [ -88.027662850957412, 43.094899204894254 ], [ -88.027660308353035, 43.095070568008445 ], [ -88.027641352582705, 43.096980007098367 ], [ -88.022524, 43.097036 ], [ -88.022233, 43.093013 ], [ -88.022657, 43.089826 ], [ -88.027714, 43.089761 ], [ -88.02771, 43.090194 ], [ -88.027709973251277, 43.09019666937936 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 76.174 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.022233, 43.093013 ], [ -88.022524, 43.097036 ], [ -88.017406, 43.097091 ], [ -88.016082, 43.097105 ], [ -88.015919, 43.094186 ], [ -88.016271, 43.089912 ], [ -88.017582, 43.089897 ], [ -88.022657, 43.089826 ], [ -88.022233, 43.093013 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.966 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.903341, 43.052986 ], [ -87.899495, 43.052966 ], [ -87.899654, 43.05053 ], [ -87.899675, 43.049329 ], [ -87.903454, 43.049353 ], [ -87.903341, 43.052986 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.163 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.903476, 43.048144 ], [ -87.903454, 43.049353 ], [ -87.899675, 43.049329 ], [ -87.89974, 43.0457 ], [ -87.903521, 43.045729 ], [ -87.903476, 43.048144 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.667 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964664, 43.059244 ], [ -87.957537, 43.059245 ], [ -87.95757, 43.056452 ], [ -87.964703, 43.056463 ], [ -87.964664, 43.059244 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.331 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.96462, 43.062441 ], [ -87.957493, 43.062451 ], [ -87.957537, 43.059245 ], [ -87.964664, 43.059244 ], [ -87.96462, 43.062441 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.011 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.95757, 43.056452 ], [ -87.951733, 43.056405 ], [ -87.951579, 43.053964 ], [ -87.952283, 43.051452 ], [ -87.95762, 43.051492 ], [ -87.95757, 43.056452 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.267 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.903276, 43.043827 ], [ -87.898253, 43.044118 ], [ -87.899417, 43.043094 ], [ -87.899201, 43.041184 ], [ -87.899478, 43.04041 ], [ -87.899837, 43.039188 ], [ -87.902766, 43.038964 ], [ -87.903276, 43.043827 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.065 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.93294, 43.040242 ], [ -87.932923, 43.041606 ], [ -87.93152, 43.041603 ], [ -87.927174, 43.041589 ], [ -87.92721, 43.038653 ], [ -87.932959, 43.038668 ], [ -87.93294, 43.040242 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 73.865 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.9832, 43.088928 ], [ -87.980912, 43.088061 ], [ -87.977099, 43.088018 ], [ -87.977211, 43.082567 ], [ -87.980974, 43.082606 ], [ -87.983294, 43.082629 ], [ -87.9832, 43.088928 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 78.871 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.989543, 43.088104 ], [ -87.985252, 43.088178 ], [ -87.9832, 43.088928 ], [ -87.983294, 43.082629 ], [ -87.987134, 43.082668 ], [ -87.989635, 43.082664 ], [ -87.989543, 43.088104 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.936 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937055, 43.089599 ], [ -87.93446, 43.089543 ], [ -87.934834, 43.082314 ], [ -87.937215, 43.082363 ], [ -87.937055, 43.089599 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.898 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933353, 43.084759 ], [ -87.932172, 43.084734 ], [ -87.932067, 43.089491 ], [ -87.929575, 43.089437 ], [ -87.929767, 43.081718 ], [ -87.933429, 43.081789 ], [ -87.933353, 43.084759 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.472 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.00302, 43.090006 ], [ -87.999448, 43.090013 ], [ -87.994602, 43.090033 ], [ -87.98952, 43.090031 ], [ -87.989543, 43.088104 ], [ -87.994638, 43.088092 ], [ -87.994666, 43.08626 ], [ -87.997897, 43.086243 ], [ -88.00024, 43.085142 ], [ -88.00415, 43.090011 ], [ -88.00302, 43.090006 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 82.597 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007235, 43.089993 ], [ -88.00415, 43.090011 ], [ -88.00024, 43.085142 ], [ -88.001867, 43.084459 ], [ -88.007298, 43.084448 ], [ -88.007235, 43.089993 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 21.514 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937202, 42.995695 ], [ -87.93514, 42.998663 ], [ -87.935538, 43.00297 ], [ -87.933369, 43.002934 ], [ -87.933538, 42.999273 ], [ -87.933568, 42.997712 ], [ -87.93358, 42.997208 ], [ -87.933608, 42.995632 ], [ -87.93577, 42.995665 ], [ -87.937202, 42.995695 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 37.319 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948171, 42.999564 ], [ -87.948192, 43.000803 ], [ -87.944533, 43.003112 ], [ -87.938251, 43.003014 ], [ -87.935538, 43.00297 ], [ -87.93514, 42.998663 ], [ -87.937202, 42.995695 ], [ -87.938386, 42.995716 ], [ -87.948205, 42.99589 ], [ -87.948171, 42.999564 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 41.778 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.969137, 42.988359 ], [ -87.967878, 42.989074 ], [ -87.960947, 42.993337 ], [ -87.958366, 42.994724 ], [ -87.958061, 42.994124 ], [ -87.958071, 42.992147 ], [ -87.958096, 42.988459 ], [ -87.960528, 42.988431 ], [ -87.962973, 42.988404 ], [ -87.967886, 42.98835 ], [ -87.969137, 42.988359 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 47.586 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977778, 42.992044 ], [ -87.967847, 42.992026 ], [ -87.967878, 42.989074 ], [ -87.969137, 42.988359 ], [ -87.977852, 42.98842 ], [ -87.977778, 42.992044 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.322 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977705, 42.995643 ], [ -87.971496, 42.995651 ], [ -87.971546, 42.993842 ], [ -87.967827, 42.99387 ], [ -87.967847, 42.992026 ], [ -87.977778, 42.992044 ], [ -87.977705, 42.995643 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 26.885 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987557269047556, 43.055414912131134 ], [ -87.987557263667043, 43.055418113558197 ], [ -87.987552025448551, 43.057119067302978 ], [ -87.9853, 43.05717 ], [ -87.978778, 43.057137 ], [ -87.978786, 43.055208 ], [ -87.987557269047556, 43.055414912131134 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.934 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987561366219595, 43.052966985630547 ], [ -87.987561379011964, 43.052969900391155 ], [ -87.987557269047556, 43.055414912131134 ], [ -87.978786, 43.055208 ], [ -87.978799, 43.052932 ], [ -87.987561366219595, 43.052966985630547 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.653 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987548287668247, 43.049986621476826 ], [ -87.987548302267484, 43.049989862576211 ], [ -87.987555414157498, 43.05161070688581 ], [ -87.987561366219595, 43.052966985630547 ], [ -87.978799, 43.052932 ], [ -87.978802, 43.051579 ], [ -87.978817, 43.049096 ], [ -87.987548287668247, 43.049986621476826 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.477 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967296, 43.07912 ], [ -87.957247, 43.079115 ], [ -87.95728, 43.077021 ], [ -87.967334, 43.076992 ], [ -87.967296, 43.07912 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 91.433 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.971938, 43.052666 ], [ -87.971946, 43.05294 ], [ -87.971918, 43.057102 ], [ -87.967004, 43.057493 ], [ -87.965052, 43.056464 ], [ -87.963639, 43.055586 ], [ -87.963679, 43.052374 ], [ -87.959973, 43.051505 ], [ -87.95762, 43.051492 ], [ -87.957631, 43.050119 ], [ -87.957642, 43.048717 ], [ -87.965413, 43.048783 ], [ -87.972078, 43.048809 ], [ -87.971938, 43.052666 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.568 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.995393547103234, 43.036062107251254 ], [ -87.995185101751233, 43.036073086456959 ], [ -87.995185965072451, 43.036524364862736 ], [ -87.994996672354574, 43.036521774672693 ], [ -87.994998555374295, 43.036320963429759 ], [ -87.994512307381385, 43.036320010120562 ], [ -87.994512954584209, 43.036660237046078 ], [ -87.993368395162037, 43.036657990915131 ], [ -87.993367469386257, 43.036168812983263 ], [ -87.993135793660173, 43.036181011850822 ], [ -87.99337, 43.036129 ], [ -87.995393547103234, 43.036062107251254 ] ] ], [ [ [ -87.991737275598453, 43.036491578832305 ], [ -87.991737780148668, 43.036764522591817 ], [ -87.991064510058905, 43.03676318581622 ], [ -87.991064764167803, 43.036900371015243 ], [ -87.989942643253684, 43.03689813702772 ], [ -87.989942628540106, 43.036890084094196 ], [ -87.991737275598453, 43.036491578832305 ] ] ], [ [ [ -87.989932126599143, 43.036349651639014 ], [ -87.989819544805385, 43.036355576214447 ], [ -87.989932, 43.036313 ], [ -87.989932126599143, 43.036349651639014 ] ] ], [ [ [ -87.988723861592504, 43.036770399651985 ], [ -87.988724335368786, 43.037032885849072 ], [ -87.98805105766715, 43.037031532858911 ], [ -87.988051038485835, 43.037020849029503 ], [ -87.988054, 43.037024 ], [ -87.988723861592504, 43.036770399651985 ] ] ], [ [ [ -87.987538567902135, 43.036475588162368 ], [ -87.987503969008529, 43.036477408156671 ], [ -87.987504913344409, 43.037002988056074 ], [ -87.98601302664855, 43.03700472553713 ], [ -87.985510128998627, 43.037005307109403 ], [ -87.987507, 43.036442 ], [ -87.987538567902135, 43.036475588162368 ] ] ], [ [ [ -87.985350984613376, 43.037050198991487 ], [ -87.985351147327421, 43.037142674278407 ], [ -87.985021806149334, 43.037143053643078 ], [ -87.985350984613376, 43.037050198991487 ] ] ], [ [ [ -87.984977506722942, 43.037190466690781 ], [ -87.984978381333192, 43.03769184716311 ], [ -87.984901965867564, 43.037691934599785 ], [ -87.984977506722942, 43.037190466690781 ] ] ], [ [ [ -87.984791794560053, 43.038401986997691 ], [ -87.984791800568971, 43.038405427065179 ], [ -87.984243168459301, 43.038406055168778 ], [ -87.984155629415284, 43.038790278501843 ], [ -87.984605440115047, 43.03878976021069 ], [ -87.984606763552051, 43.039228754468034 ], [ -87.984419736484085, 43.039228970932491 ], [ -87.984420975935038, 43.039640165248549 ], [ -87.984156346877754, 43.039640467044769 ], [ -87.984069388241494, 43.039649606551293 ], [ -87.98406946779123, 43.039676076539365 ], [ -87.984056, 43.038399 ], [ -87.984791794560053, 43.038401986997691 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.364 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967039, 43.093413 ], [ -87.966991, 43.09685 ], [ -87.961673, 43.096646 ], [ -87.962142, 43.089902 ], [ -87.967007, 43.089884 ], [ -87.967039, 43.093413 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.455 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.961673, 43.096646 ], [ -87.959891, 43.096523 ], [ -87.958111, 43.096521 ], [ -87.958299, 43.093479 ], [ -87.961352, 43.093473 ], [ -87.95836, 43.08992 ], [ -87.962142, 43.089902 ], [ -87.961673, 43.096646 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.469 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.92185, 43.089341 ], [ -87.917192, 43.089307 ], [ -87.917302, 43.085519 ], [ -87.917402, 43.082098 ], [ -87.918385, 43.081712 ], [ -87.920602, 43.081627 ], [ -87.920781, 43.084412 ], [ -87.921907, 43.086835 ], [ -87.92185, 43.089341 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.5 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.924613, 43.089363 ], [ -87.92185, 43.089341 ], [ -87.921907, 43.086835 ], [ -87.920781, 43.084412 ], [ -87.920602, 43.081627 ], [ -87.92238, 43.081642 ], [ -87.924846, 43.081662 ], [ -87.924613, 43.089363 ] ], [ [ -87.923595450695672, 43.081656633868988 ], [ -87.922334379850298, 43.081647196074705 ], [ -87.921187128925126, 43.081635015868073 ], [ -87.922349932093411, 43.081647699639788 ], [ -87.923595450695672, 43.081656633868988 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.649 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.027684, 43.085022 ], [ -88.023226, 43.083241 ], [ -88.02385, 43.082379 ], [ -88.023861, 43.080616 ], [ -88.023811, 43.076991 ], [ -88.024539, 43.076712 ], [ -88.027608, 43.076968 ], [ -88.027627, 43.078788 ], [ -88.027678, 43.084188 ], [ -88.027684, 43.085022 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 35.807 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.02385, 43.082379 ], [ -88.023226, 43.083241 ], [ -88.022619, 43.084263 ], [ -88.022631, 43.086091 ], [ -88.017566, 43.086156 ], [ -88.017547, 43.082506 ], [ -88.017532, 43.081206 ], [ -88.017526, 43.080658 ], [ -88.023861, 43.080616 ], [ -88.02385, 43.082379 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 30.198 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.027714, 43.089761 ], [ -88.022657, 43.089826 ], [ -88.017582, 43.089897 ], [ -88.017566, 43.086156 ], [ -88.022631, 43.086091 ], [ -88.022619, 43.084263 ], [ -88.023226, 43.083241 ], [ -88.027684, 43.085022 ], [ -88.027714, 43.089761 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 20.068 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.018574070775344, 43.067421300432152 ], [ -88.019693844469444, 43.067403034607565 ], [ -88.021098860151952, 43.067385994039356 ], [ -88.022478533800054, 43.067363768341622 ], [ -88.023740462027973, 43.067345386725478 ], [ -88.025002454421681, 43.067324836105811 ], [ -88.025007009604437, 43.067324765613471 ], [ -88.025034, 43.075093 ], [ -88.018813, 43.075186 ], [ -88.018574070775344, 43.067421300432152 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 29.775 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007427921240037, 43.069232918015203 ], [ -88.007433234276633, 43.068956055850919 ], [ -88.007440888923512, 43.06804802529016 ], [ -88.007439346447043, 43.06782304758876 ], [ -88.007440974118083, 43.06762219381315 ], [ -88.008010467555692, 43.067614283035496 ], [ -88.008010497643156, 43.06760638588635 ], [ -88.012036854036182, 43.06751712294858 ], [ -88.012445254075317, 43.067511434097071 ], [ -88.012451107336503, 43.067511352549161 ], [ -88.013703, 43.068862 ], [ -88.013677, 43.071603 ], [ -88.01366, 43.07525 ], [ -88.007383, 43.075321 ], [ -88.007413, 43.071676 ], [ -88.007426, 43.06947 ], [ -88.007427921240037, 43.069232918015203 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 8.7 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.012451107336503, 43.067511352549161 ], [ -88.01370853311704, 43.067493827091667 ], [ -88.014947040429519, 43.067476550944846 ], [ -88.016196770396803, 43.067459105348817 ], [ -88.017448853823154, 43.06744148463271 ], [ -88.018570227655218, 43.067421363102504 ], [ -88.018574070775344, 43.067421300432152 ], [ -88.018813, 43.075186 ], [ -88.017462, 43.075206 ], [ -88.014898, 43.075236 ], [ -88.01366, 43.07525 ], [ -88.013677, 43.071603 ], [ -88.013703, 43.068862 ], [ -88.012451107336503, 43.067511352549161 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.116 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.980206061574094, 42.967561487965391 ], [ -87.982693092532003, 42.96755442899989 ], [ -87.983253524988285, 42.967549498843972 ], [ -87.983279656749104, 42.966947295911659 ], [ -87.983259, 42.967559 ], [ -87.980206061574094, 42.967561487965391 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 6.764 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.972381630668906, 42.973901412652914 ], [ -87.972379490325167, 42.973395879200581 ], [ -87.97289282057605, 42.97339499983088 ], [ -87.972381630668906, 42.973901412652914 ] ] ], [ [ [ -87.973190322792533, 42.973100272937479 ], [ -87.973192735512825, 42.973002226325569 ], [ -87.973289277578886, 42.973002240485457 ], [ -87.973190322792533, 42.973100272937479 ] ] ], [ [ [ -87.973339712108015, 42.973002247850353 ], [ -87.973341894667314, 42.973002248168569 ], [ -87.973323285839669, 42.973759279527073 ], [ -87.973322552139678, 42.973906007361364 ], [ -87.973317, 42.973906 ], [ -87.973339712108015, 42.973002247850353 ] ] ], [ [ [ -87.974818008854612, 42.973907980321066 ], [ -87.974818350601339, 42.973890864635578 ], [ -87.974833, 42.973908 ], [ -87.974818008854612, 42.973907980321066 ] ] ], [ [ [ -87.974021247547327, 42.972685594815587 ], [ -87.974035080459473, 42.972143858361363 ], [ -87.974057103725656, 42.971281683011647 ], [ -87.974068460587006, 42.970836936050283 ], [ -87.974071919614431, 42.970836932754821 ], [ -87.974021247547327, 42.972685594815587 ] ] ], [ [ [ -87.977562905498729, 42.97083100183081 ], [ -87.97759522182541, 42.969776360203639 ], [ -87.977690818782449, 42.966656248253599 ], [ -87.978324239371403, 42.966653807047081 ], [ -87.978323552402259, 42.966676361357862 ], [ -87.977565, 42.970831 ], [ -87.977562905498729, 42.97083100183081 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.485 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.898175844414098, 43.08917558373107 ], [ -87.898121168885609, 43.089105099782678 ], [ -87.898223, 43.089175 ], [ -87.898175844414098, 43.08917558373107 ] ] ], [ [ [ -87.895180637666513, 43.087086513806099 ], [ -87.895151296901673, 43.087081290275819 ], [ -87.895118506896765, 43.087065809824836 ], [ -87.895096073369743, 43.087044141529717 ], [ -87.89500052843016, 43.086999874260599 ], [ -87.89495637779207, 43.086977809315371 ], [ -87.894902455878153, 43.086944938642013 ], [ -87.89483094102242, 43.086918118438334 ], [ -87.894752333642955, 43.086886912871087 ], [ -87.89466790083344, 43.086856664698793 ], [ -87.894609304438234, 43.086833267086966 ], [ -87.894548070828463, 43.086802382847203 ], [ -87.894484772635906, 43.086768859884252 ], [ -87.894428028724434, 43.08673381142718 ], [ -87.894326272028408, 43.086659682575196 ], [ -87.894230231359273, 43.086587781312524 ], [ -87.894180763319667, 43.086551803855976 ], [ -87.89410690476241, 43.086508998969613 ], [ -87.894034455084935, 43.086467285347872 ], [ -87.8939929988979, 43.086429936284603 ], [ -87.893952185785025, 43.086395185870487 ], [ -87.893928629631276, 43.086363935137491 ], [ -87.893903890906344, 43.086325231571621 ], [ -87.893883486501778, 43.086286599651103 ], [ -87.89382700168062, 43.08624412130456 ], [ -87.893815361713678, 43.086203531419144 ], [ -87.89381501136684, 43.086171650118303 ], [ -87.893740307462537, 43.086153266347672 ], [ -87.893695499521499, 43.086150309840633 ], [ -87.893667309818895, 43.086127476312832 ], [ -87.893608598466287, 43.08608027541711 ], [ -87.893505613463503, 43.08599974191015 ], [ -87.893433789197033, 43.085939975007285 ], [ -87.893386062440612, 43.085895534959967 ], [ -87.893317751313916, 43.085817770280876 ], [ -87.893295969385974, 43.085792635194835 ], [ -87.895180637666513, 43.087086513806099 ] ] ], [ [ [ -87.893242195782477, 43.085721392258598 ], [ -87.893218302895491, 43.085676741185885 ], [ -87.893195090832862, 43.085648224080934 ], [ -87.893129202402434, 43.085584316217243 ], [ -87.893091281373415, 43.085549613878293 ], [ -87.893042073291937, 43.085506204622199 ], [ -87.893002464450021, 43.085436409032226 ], [ -87.892976747691307, 43.085383873335758 ], [ -87.89294976643103, 43.085325994883299 ], [ -87.892933527759709, 43.085292757531981 ], [ -87.892885952274966, 43.085208643771132 ], [ -87.89285484507144, 43.085144316319486 ], [ -87.89282631087876, 43.08508960478963 ], [ -87.892812215532459, 43.085036217318653 ], [ -87.892802021821851, 43.084995655808413 ], [ -87.89276961753383, 43.084928633490421 ], [ -87.892745387910594, 43.084875061750274 ], [ -87.892711207149887, 43.084815991515029 ], [ -87.892677531921294, 43.08474205330851 ], [ -87.892631456138403, 43.084649827812747 ], [ -87.892631036919937, 43.084579021968608 ], [ -87.892616553113626, 43.084494817678106 ], [ -87.892589881639282, 43.084385947186966 ], [ -87.892565485616402, 43.084301094429868 ], [ -87.892530260275421, 43.08423031631218 ], [ -87.892468843339174, 43.084120807351908 ], [ -87.892411733169226, 43.08401244165411 ], [ -87.892354941772382, 43.083904814286974 ], [ -87.892308899068652, 43.083811525722425 ], [ -87.892253202947174, 43.08370424793474 ], [ -87.892219606217068, 43.08363179995176 ], [ -87.892177838467944, 43.083540717567459 ], [ -87.892149337711501, 43.083484939500316 ], [ -87.892108155888238, 43.083376868712115 ], [ -87.892071996394634, 43.083291199224576 ], [ -87.892033365504133, 43.083195353012194 ], [ -87.892012108198273, 43.083139710819665 ], [ -87.892000260148833, 43.08306298962767 ], [ -87.891980414036425, 43.083008435381714 ], [ -87.891938561062332, 43.082923308760925 ], [ -87.891901816300532, 43.082854627592972 ], [ -87.891857149655607, 43.082763486208172 ], [ -87.891813898691524, 43.082673439704365 ], [ -87.891775720265187, 43.082565920157691 ], [ -87.891747749620478, 43.082452783246417 ], [ -87.891720238501904, 43.082368332252727 ], [ -87.891714720864812, 43.08231829583837 ], [ -87.891720054830301, 43.082289708688727 ], [ -87.891702532894357, 43.082260337786529 ], [ -87.89169078525731, 43.082222932776538 ], [ -87.891691209560648, 43.082168755801078 ], [ -87.891692348050086, 43.082100038235943 ], [ -87.893242195782477, 43.085721392258598 ] ] ], [ [ [ -87.891630633768244, 43.081955827945421 ], [ -87.891622274258253, 43.081951831699712 ], [ -87.888882415168538, 43.081941623313057 ], [ -87.887657922952783, 43.081937052661132 ], [ -87.887658, 43.081934 ], [ -87.891626, 43.081945 ], [ -87.891630633768244, 43.081955827945421 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 29.138 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.887657922952783, 43.081937052661132 ], [ -87.887654890341352, 43.08193704132507 ], [ -87.886437029081677, 43.081935612056604 ], [ -87.885185918976561, 43.081934112581479 ], [ -87.885186, 43.081931 ], [ -87.887658, 43.081934 ], [ -87.887657922952783, 43.081937052661132 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.001 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.885185918976561, 43.081934112581479 ], [ -87.885184237195404, 43.081934110556631 ], [ -87.883965896908919, 43.081932637351926 ], [ -87.882699902723715, 43.081931654435671 ], [ -87.8827, 43.081928 ], [ -87.882757, 43.081928 ], [ -87.885186, 43.081931 ], [ -87.885185918976561, 43.081934112581479 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.085 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.009828686287179, 42.96992094957303 ], [ -88.013022697787378, 42.96987844397929 ], [ -88.014396820935488, 42.969865177896196 ], [ -88.013025, 42.969888 ], [ -88.009828686287179, 42.96992094957303 ] ] ], [ [ [ -88.014767713876509, 42.970043874316168 ], [ -88.014772851289635, 42.970319916790444 ], [ -88.014767282067126, 42.970322892107781 ], [ -88.014767713876509, 42.970043874316168 ] ] ], [ [ [ -88.014764098327049, 42.972380496556092 ], [ -88.014797746578481, 42.972380337590316 ], [ -88.014788013566601, 42.972796035162304 ], [ -88.014765979015934, 42.973736991039694 ], [ -88.014762, 42.973737 ], [ -88.014764098327049, 42.972380496556092 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.169 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.055475, 43.135978 ], [ -88.054993, 43.140111 ], [ -88.054871, 43.146986 ], [ -88.052726, 43.146975 ], [ -88.050378, 43.147549 ], [ -88.048862, 43.146524 ], [ -88.045143, 43.144571 ], [ -88.042383, 43.142963 ], [ -88.033218, 43.135957 ], [ -88.033655, 43.135331 ], [ -88.032611, 43.13398 ], [ -88.045273, 43.133874 ], [ -88.048903, 43.133795 ], [ -88.053696, 43.134183 ], [ -88.055244, 43.133971 ], [ -88.055475, 43.135978 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 26.367 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952581, 43.021908 ], [ -87.946403, 43.022274 ], [ -87.946408, 43.019085 ], [ -87.949107, 43.01907 ], [ -87.952583, 43.019054 ], [ -87.952581, 43.021908 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926758, 43.071226 ], [ -87.923988, 43.071206 ], [ -87.919795, 43.071175 ], [ -87.919819, 43.069425 ], [ -87.919843, 43.067597 ], [ -87.926822, 43.067655 ], [ -87.926758, 43.071226 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.7 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957537, 43.059245 ], [ -87.957493, 43.062451 ], [ -87.957466, 43.064263 ], [ -87.954062, 43.064253 ], [ -87.953085, 43.06061 ], [ -87.951204, 43.061009 ], [ -87.949965, 43.062445 ], [ -87.949946, 43.056393 ], [ -87.951733, 43.056405 ], [ -87.95757, 43.056452 ], [ -87.957537, 43.059245 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 62.81 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.005273, 43.148725 ], [ -87.985427, 43.148542 ], [ -87.985626, 43.141296 ], [ -87.985929, 43.135883 ], [ -87.984558, 43.133938 ], [ -87.985737, 43.133937 ], [ -87.991948, 43.13933 ], [ -88.00534, 43.14593 ], [ -88.005273, 43.148725 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 66.73 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.016622, 43.139339 ], [ -88.015562, 43.140443 ], [ -88.013217, 43.141312 ], [ -88.010507, 43.141415 ], [ -88.010722, 43.134122 ], [ -88.015615, 43.134106 ], [ -88.016622, 43.139339 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 34.574 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.909597885000437, 43.104522929425514 ], [ -87.909577181827203, 43.104522655078092 ], [ -87.908849856394923, 43.104032482186298 ], [ -87.907123938572184, 43.104011934898281 ], [ -87.907124, 43.104009 ], [ -87.90886, 43.10403 ], [ -87.909595, 43.104521 ], [ -87.909597885000437, 43.104522929425514 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.696 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.907123938572184, 43.104011934898281 ], [ -87.907088516998996, 43.104011512926768 ], [ -87.907102625052303, 43.103022612143754 ], [ -87.907104662237018, 43.102942603963264 ], [ -87.907124, 43.104009 ], [ -87.907123938572184, 43.104011934898281 ] ] ], [ [ [ -87.907103169920603, 43.102860306744994 ], [ -87.906988209682041, 43.102783556490721 ], [ -87.906992777844494, 43.102594722082912 ], [ -87.907014052944788, 43.101715195075371 ], [ -87.907047950039953, 43.100313899867558 ], [ -87.907057, 43.100314 ], [ -87.907103169920603, 43.102860306744994 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.25 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.032553, 42.980916 ], [ -88.027608, 42.980947 ], [ -88.017693, 42.981013 ], [ -88.017772, 42.977378 ], [ -88.032626, 42.977273 ], [ -88.032553, 42.980916 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.799 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017851942849404, 42.973732606154407 ], [ -88.019129014735739, 42.97372767526214 ], [ -88.024018666778005, 42.973708654753636 ], [ -88.027742983709487, 42.973694022429633 ], [ -88.029027050014633, 42.973685062953507 ], [ -88.030230394534044, 42.973676703373073 ], [ -88.031277741890051, 42.973669420819888 ], [ -88.035752939283384, 42.973641920511398 ], [ -88.037677259210099, 42.973632373906725 ], [ -88.03748982502546, 42.980922751743705 ], [ -88.036454, 42.981168 ], [ -88.032553, 42.980916 ], [ -88.032626, 42.977273 ], [ -88.017772, 42.977378 ], [ -88.017851942849404, 42.973732606154407 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 41.48 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.979101217935508, 42.982238430328344 ], [ -87.979424684142145, 42.982042721642379 ], [ -87.980134260044082, 42.98161338300114 ], [ -87.980134370052525, 42.981606606936239 ], [ -87.980137, 42.981605 ], [ -87.980859, 42.981154 ], [ -87.981866, 42.980554 ], [ -87.981877238472194, 42.980565650445591 ], [ -87.981871347511614, 42.980569278793823 ], [ -87.982240719451283, 42.980969753941586 ], [ -87.982571230062547, 42.980773282590604 ], [ -87.982862837211655, 42.980613852520783 ], [ -87.984172627863501, 42.980601633166906 ], [ -87.984181087131176, 42.980188735700537 ], [ -87.983966860719818, 42.980186897687354 ], [ -87.983970217854193, 42.980008401258672 ], [ -87.986008940777083, 42.978893687434912 ], [ -87.986018973078572, 42.978893625058845 ], [ -87.986019016189175, 42.978888178306143 ], [ -87.986023, 42.978886 ], [ -87.986031, 42.978053 ], [ -87.987943, 42.976894 ], [ -87.987886, 42.981155 ], [ -87.985417, 42.981154 ], [ -87.985385, 42.982961 ], [ -87.982916, 42.982962 ], [ -87.98288, 42.984789 ], [ -87.980394, 42.984791 ], [ -87.979101217935508, 42.982238430328344 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 22.743 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.992844454327965, 42.973861431437427 ], [ -87.992871803431996, 42.97386121334678 ], [ -87.993431181135307, 42.973509864750952 ], [ -87.994124007090974, 42.973074686019807 ], [ -87.997990812917877, 42.970642603016749 ], [ -87.998076694564475, 42.97058839024232 ], [ -87.997985, 42.973817 ], [ -87.997873, 42.980003 ], [ -87.9892, 42.98034 ], [ -87.989167, 42.981145 ], [ -87.987886, 42.981155 ], [ -87.987943, 42.976894 ], [ -87.992844454327965, 42.973861431437427 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977886997314698, 42.982986416897589 ], [ -87.977947006792519, 42.982949985089661 ], [ -87.979097473980602, 42.982240695543133 ], [ -87.979101217935508, 42.982238430328344 ], [ -87.980394, 42.984791 ], [ -87.98288, 42.984789 ], [ -87.982916, 42.982962 ], [ -87.985385, 42.982961 ], [ -87.990039, 42.982983 ], [ -87.992766, 42.982062 ], [ -87.991854, 42.984757 ], [ -87.990442, 42.985011 ], [ -87.990006, 42.9884 ], [ -87.987791, 42.988414 ], [ -87.977852, 42.98842 ], [ -87.977886997314698, 42.982986416897589 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 23.408 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.997854, 42.981081 ], [ -87.997838, 42.982019 ], [ -87.992766, 42.982062 ], [ -87.990039, 42.982983 ], [ -87.985385, 42.982961 ], [ -87.985417, 42.981154 ], [ -87.987886, 42.981155 ], [ -87.989167, 42.981145 ], [ -87.9892, 42.98034 ], [ -87.997873, 42.980003 ], [ -87.997854, 42.981081 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.947 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.978299882048177, 42.967566843939025 ], [ -87.978461087196933, 42.967562982775583 ], [ -87.979550314899413, 42.967563340174706 ], [ -87.980206061574094, 42.967561487965391 ], [ -87.983259, 42.967559 ], [ -87.983279656749104, 42.966947295911659 ], [ -87.983292828694189, 42.966643746665667 ], [ -87.983772773151756, 42.966642731468497 ], [ -87.985930227480196, 42.966638157302498 ], [ -87.986368043211812, 42.966635941393598 ], [ -87.988254026240696, 42.966633176716627 ], [ -87.988200955263594, 42.968034833244381 ], [ -87.988187992432131, 42.968377196169371 ], [ -87.988153363032751, 42.969291930811892 ], [ -87.988131018091067, 42.969881322270005 ], [ -87.98811666730775, 42.970264056569853 ], [ -87.987304964887642, 42.970277831694752 ], [ -87.986033167363118, 42.970280688721807 ], [ -87.985246971957082, 42.970282444611314 ], [ -87.984562954562691, 42.970283967133412 ], [ -87.984315103171312, 42.970297785459067 ], [ -87.983522930884291, 42.970341939344486 ], [ -87.983165, 42.970348 ], [ -87.978232, 42.969779 ], [ -87.978299882048177, 42.967566843939025 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.183 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.976823084519708, 42.975725040669097 ], [ -87.976817033392834, 42.975725027001097 ], [ -87.975605302756961, 42.975722285801368 ], [ -87.975605076732705, 42.97573597512072 ], [ -87.9756, 42.975736 ], [ -87.975577587334499, 42.97740086963055 ], [ -87.975557243553794, 42.978632963897013 ], [ -87.973677261787643, 42.978614880028061 ], [ -87.973705438803435, 42.978564437753448 ], [ -87.973731007373644, 42.978511731393979 ], [ -87.973764591518574, 42.978429222949948 ], [ -87.973789706780607, 42.978350244586444 ], [ -87.97380720918315, 42.978276533802365 ], [ -87.973815378773224, 42.978229999396952 ], [ -87.973825428273827, 42.978158910529523 ], [ -87.973821933167557, 42.977232911257381 ], [ -87.973817067030581, 42.977120193783037 ], [ -87.973796597520149, 42.977001899199443 ], [ -87.973770935757884, 42.9769140831635 ], [ -87.97372989056565, 42.97681333845334 ], [ -87.973677432671352, 42.976715791679524 ], [ -87.97357742508116, 42.976568450386537 ], [ -87.973467280131018, 42.976458853062994 ], [ -87.973312370191124, 42.976333723604263 ], [ -87.973502977600958, 42.976169386222388 ], [ -87.973454643967884, 42.976129808103622 ], [ -87.973576416141, 42.976024784374204 ], [ -87.97317370604118, 42.975695837815159 ], [ -87.973107758727437, 42.975749797838667 ], [ -87.972995765324598, 42.975849880381247 ], [ -87.972916057555409, 42.975928697331973 ], [ -87.972842130795499, 42.976008595167244 ], [ -87.972783122704314, 42.976077967890852 ], [ -87.972602650346971, 42.976019901266525 ], [ -87.972440622693199, 42.97597353304463 ], [ -87.972269696853104, 42.975932177544998 ], [ -87.972035653560965, 42.97588743397197 ], [ -87.971810767943936, 42.975856739306039 ], [ -87.971550503368206, 42.975835661637426 ], [ -87.971332724534861, 42.97582965865903 ], [ -87.971076456064878, 42.975836054206042 ], [ -87.970861219286306, 42.975852748823883 ], [ -87.970663344621428, 42.975877408920738 ], [ -87.970680077117933, 42.974999903139398 ], [ -87.970669544433065, 42.974999906216304 ], [ -87.97067, 42.974981 ], [ -87.970161, 42.974982 ], [ -87.970260393893824, 42.974487783292325 ], [ -87.970389969898335, 42.97448771262065 ], [ -87.970390386431163, 42.973907234067418 ], [ -87.970700906177143, 42.973907552599478 ], [ -87.972381660992852, 42.973908574755839 ], [ -87.972381630668906, 42.973901412652914 ], [ -87.97289282057605, 42.97339499983088 ], [ -87.973183082417279, 42.973394501573551 ], [ -87.973190322792533, 42.973100272937479 ], [ -87.973289277578886, 42.973002240485457 ], [ -87.973339712108015, 42.973002247850353 ], [ -87.973317, 42.973906 ], [ -87.973322552139678, 42.973906007361364 ], [ -87.973322527628568, 42.97391090918638 ], [ -87.974405697437703, 42.973911265913742 ], [ -87.974817956269916, 42.97391061391729 ], [ -87.974818008854612, 42.973907980321066 ], [ -87.974833, 42.973908 ], [ -87.976854, 42.973911 ], [ -87.976823084519708, 42.975725040669097 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 0.883 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.98811666730775, 42.970264056569853 ], [ -87.988116219411495, 42.970276001871071 ], [ -87.987304964887642, 42.970277831694752 ], [ -87.98811666730775, 42.970264056569853 ] ] ], [ [ [ -87.983522930884291, 42.970341939344486 ], [ -87.983180197369521, 42.97036104081549 ], [ -87.983122596309343, 42.972104262451715 ], [ -87.983068819265768, 42.973904966146364 ], [ -87.983048, 42.973905 ], [ -87.983165, 42.970348 ], [ -87.983522930884291, 42.970341939344486 ] ] ], [ [ [ -87.983586372731239, 42.979529736116071 ], [ -87.98358635792539, 42.979531143340481 ], [ -87.982704563320524, 42.980056079024564 ], [ -87.981877238472194, 42.980565650445591 ], [ -87.981866, 42.980554 ], [ -87.983576, 42.979536 ], [ -87.983586372731239, 42.979529736116071 ] ] ], [ [ [ -87.982571230062547, 42.980773282590604 ], [ -87.982588696769525, 42.980762899481597 ], [ -87.98245664163376, 42.980617638971893 ], [ -87.982862837211655, 42.980613852520783 ], [ -87.982571230062547, 42.980773282590604 ] ] ], [ [ [ -87.983970217854193, 42.980008401258672 ], [ -87.983973662693103, 42.979825241089294 ], [ -87.984188494415179, 42.979827105292273 ], [ -87.984189649432778, 42.979770858659627 ], [ -87.984356666398796, 42.979772307948309 ], [ -87.984370906021326, 42.979519439182525 ], [ -87.984704146538448, 42.979517724056521 ], [ -87.985437046977054, 42.979080397993016 ], [ -87.985439878273354, 42.978897224155013 ], [ -87.986008940777083, 42.978893687434912 ], [ -87.983970217854193, 42.980008401258672 ] ] ], [ [ [ -87.986019016189175, 42.978888178306143 ], [ -87.986025607492124, 42.97805541050991 ], [ -87.984956976737237, 42.978702102907654 ], [ -87.985024896615073, 42.973904625175827 ], [ -87.984469270977328, 42.973905703340165 ], [ -87.984460955199594, 42.973905712004537 ], [ -87.984461, 42.973902 ], [ -87.983954336277478, 42.973902976257989 ], [ -87.983967272587464, 42.973402182323916 ], [ -87.983731007377528, 42.973402501266328 ], [ -87.983775307556698, 42.972102846033529 ], [ -87.983815488520477, 42.97071650748461 ], [ -87.984382578704611, 42.970715344880219 ], [ -87.984389291254644, 42.970502044395083 ], [ -87.984437832994857, 42.970501579931685 ], [ -87.985040978733352, 42.970499767448452 ], [ -87.985038423728398, 42.97056835183804 ], [ -87.985572643494578, 42.970566480039899 ], [ -87.985574952493451, 42.970497899861904 ], [ -87.985629292356478, 42.970497707554031 ], [ -87.986825566830532, 42.97049351007076 ], [ -87.988108161096577, 42.970488993765102 ], [ -87.988145540091551, 42.970488863441972 ], [ -87.988158243150878, 42.970153079476695 ], [ -87.988213376403735, 42.970152474584332 ], [ -87.988223535567187, 42.969883894350822 ], [ -87.988223668902307, 42.969880369908957 ], [ -87.990531048098731, 42.970063155638499 ], [ -87.990719231423128, 42.970124980410205 ], [ -87.991239457664136, 42.970119264789346 ], [ -87.991384716692636, 42.970130769387559 ], [ -87.99138332127454, 42.970248381866881 ], [ -87.992763885256423, 42.970243160894313 ], [ -87.992708337658939, 42.971773327827712 ], [ -87.992696343493748, 42.972074008587398 ], [ -87.992696, 42.972074 ], [ -87.990091, 42.972079 ], [ -87.990056, 42.973881 ], [ -87.990056898751021, 42.973880992612521 ], [ -87.990056806009903, 42.973883626765002 ], [ -87.992844454327965, 42.973861431437427 ], [ -87.987943, 42.976894 ], [ -87.986031, 42.978053 ], [ -87.986023, 42.978886 ], [ -87.986019016189175, 42.978888178306143 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.781 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.905472, 42.983127 ], [ -87.904083, 42.98303 ], [ -87.903954, 42.9883 ], [ -87.899333, 42.988311 ], [ -87.89938, 42.982424 ], [ -87.899455, 42.978311 ], [ -87.899557, 42.973734 ], [ -87.900377, 42.973718 ], [ -87.905584, 42.973754 ], [ -87.905472, 42.983127 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.961 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.894050977328789, 42.966186595500325 ], [ -87.894051158928988, 42.966152492218349 ], [ -87.889615282859893, 42.964282301865616 ], [ -87.889628297270235, 42.963283962637753 ], [ -87.889637447786484, 42.962744729583342 ], [ -87.889641225374234, 42.962292232294431 ], [ -87.889681, 42.959241 ], [ -87.902151, 42.95923 ], [ -87.900903, 42.960973 ], [ -87.900903, 42.966472 ], [ -87.897123, 42.966466 ], [ -87.897132, 42.967489 ], [ -87.894059, 42.96619 ], [ -87.894050977328789, 42.966186595500325 ] ], [ [ -87.897113648737729, 42.966461349384588 ], [ -87.897113643930226, 42.966461349352421 ], [ -87.897117801927607, 42.967124196567482 ], [ -87.897113648737729, 42.966461349384588 ] ], [ [ -87.897119938661859, 42.967465212820755 ], [ -87.89589208486025, 42.966953105409196 ], [ -87.897119938689556, 42.96746521724036 ], [ -87.897119938661859, 42.967465212820755 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.259 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.001321217047547, 43.034172380729274 ], [ -88.001320844926596, 43.034120241397879 ], [ -88.000861103270324, 43.034113159176336 ], [ -88.000128513881037, 43.034111991650583 ], [ -87.997396, 43.034072 ], [ -87.997389, 43.032091 ], [ -88.00728, 43.032233 ], [ -88.007296, 43.035234 ], [ -88.00234, 43.035685 ], [ -88.001321217047547, 43.034172380729274 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 9.268 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007239997756884, 43.024083153653386 ], [ -88.007252967904378, 43.024082826077091 ], [ -88.008595996861516, 43.02406480568483 ], [ -88.008594346219553, 43.024186222149375 ], [ -88.013765604496655, 43.02404843065252 ], [ -88.017269531449571, 43.023950904793821 ], [ -88.017272986485324, 43.023950850095517 ], [ -88.017238, 43.03133 ], [ -88.016231, 43.031334 ], [ -88.016078, 43.036005 ], [ -88.011203662725151, 43.035161483236436 ], [ -88.011103908097425, 43.035141174956578 ], [ -88.010622575787494, 43.03504190350327 ], [ -88.010380131587183, 43.034992132978694 ], [ -88.009659353236785, 43.034975656620063 ], [ -88.008656159582813, 43.035085393857884 ], [ -88.00736023514456, 43.035229316159914 ], [ -88.007296, 43.035234 ], [ -88.00728, 43.032233 ], [ -88.007257, 43.028236 ], [ -88.007238, 43.02422 ], [ -88.007239997756884, 43.024083153653386 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 23.926 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.93786, 43.041606 ], [ -87.932923, 43.041606 ], [ -87.93294, 43.040242 ], [ -87.932959, 43.038668 ], [ -87.936658, 43.038678 ], [ -87.936642, 43.040248 ], [ -87.937971, 43.040241 ], [ -87.93786, 43.041606 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 61.267 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.932995, 43.022181 ], [ -87.925346, 43.022175 ], [ -87.925344, 43.023212 ], [ -87.922542, 43.023221 ], [ -87.922538, 43.021194 ], [ -87.926746, 43.021147 ], [ -87.932998, 43.021155 ], [ -87.932995, 43.022181 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 73.378 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.93304, 43.024228 ], [ -87.922532, 43.024221 ], [ -87.922542, 43.023221 ], [ -87.925344, 43.023212 ], [ -87.925346, 43.022175 ], [ -87.932995, 43.022181 ], [ -87.932992, 43.02299 ], [ -87.93304, 43.024228 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 76.923 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933002, 43.020138 ], [ -87.932998, 43.021155 ], [ -87.926746, 43.021147 ], [ -87.926753, 43.019102 ], [ -87.933005, 43.019095 ], [ -87.933002, 43.020138 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 72.603 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942244, 43.021129 ], [ -87.938092, 43.021188 ], [ -87.938095, 43.020175 ], [ -87.933002, 43.020138 ], [ -87.933005, 43.019095 ], [ -87.936814, 43.019102 ], [ -87.94225, 43.019095 ], [ -87.942244, 43.021129 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 62.465 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.938092, 43.021188 ], [ -87.938088, 43.022759 ], [ -87.932992, 43.02299 ], [ -87.932995, 43.022181 ], [ -87.932998, 43.021155 ], [ -87.933002, 43.020138 ], [ -87.938095, 43.020175 ], [ -87.938092, 43.021188 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 56.759 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.925734, 43.006467 ], [ -87.925659, 43.008293 ], [ -87.925602, 43.010159 ], [ -87.922778, 43.010163 ], [ -87.921368, 43.010121 ], [ -87.921406, 43.008295 ], [ -87.918658, 43.008294 ], [ -87.918698, 43.006473 ], [ -87.925734, 43.006452 ], [ -87.925734, 43.006467 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 65.376 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.925453, 43.01414 ], [ -87.922635, 43.014141 ], [ -87.919808, 43.014141 ], [ -87.918474, 43.014173 ], [ -87.918585, 43.011031 ], [ -87.922747, 43.011026 ], [ -87.922778, 43.010163 ], [ -87.925602, 43.010159 ], [ -87.925453, 43.01414 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 70.709 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933172, 43.008376 ], [ -87.925659, 43.008293 ], [ -87.925734, 43.006467 ], [ -87.929688, 43.006489 ], [ -87.933234, 43.006548 ], [ -87.933172, 43.008376 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 63.401 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933079, 43.010192 ], [ -87.925602, 43.010159 ], [ -87.925659, 43.008293 ], [ -87.933172, 43.008376 ], [ -87.933079, 43.010192 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.155 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.93358, 42.997208 ], [ -87.933568, 42.997712 ], [ -87.926148, 42.997636 ], [ -87.92619, 42.995549 ], [ -87.933608, 42.995632 ], [ -87.93358, 42.997208 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.164 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.995091266492821, 42.998844560708413 ], [ -87.995019448614698, 42.998844941047338 ], [ -87.995019431995914, 42.998845903704186 ], [ -87.993409, 42.998876 ], [ -87.990149509852387, 42.99887600876545 ], [ -87.990136199180256, 42.998875804088364 ], [ -87.99009973992743, 42.998876008179707 ], [ -87.989534, 42.998876 ], [ -87.989530557802325, 42.998875313839243 ], [ -87.989532398980799, 42.998769466732462 ], [ -87.989035985255782, 42.998772569146226 ], [ -87.988975831190572, 42.998764734196627 ], [ -87.988927, 42.998755 ], [ -87.988304619200463, 42.997835240379807 ], [ -87.98830594240269, 42.997771827063197 ], [ -87.988254360779578, 42.997760966687615 ], [ -87.988251, 42.997756 ], [ -87.987583, 42.997473 ], [ -87.989569, 42.996367 ], [ -87.990034, 42.99565 ], [ -87.995806, 42.995611 ], [ -87.995763, 42.998832 ], [ -87.995091266492821, 42.998844560708413 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 3.117 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.997542, 42.9956 ], [ -87.995806, 42.995611 ], [ -87.990034, 42.99565 ], [ -87.991628, 42.992427 ], [ -87.993912, 42.990555 ], [ -87.997677, 42.990355 ], [ -87.997542, 42.9956 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 1.527 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.002340014051811, 43.035686705191004 ], [ -88.001669868092378, 43.035723748071554 ], [ -88.001667437498298, 43.035362664931405 ], [ -88.001690906438114, 43.035247580242782 ], [ -88.001326556873579, 43.035245148739101 ], [ -88.001326023045408, 43.034845749661521 ], [ -88.001321217047547, 43.034172380729274 ], [ -88.00234, 43.035685 ], [ -88.002340014051811, 43.035686705191004 ] ] ], [ [ [ -88.000128513881037, 43.034111991650583 ], [ -87.999774277158309, 43.034111425422189 ], [ -87.998656865546167, 43.034102110488995 ], [ -87.997391982317225, 43.03407487203296 ], [ -87.997396, 43.034072 ], [ -88.000128513881037, 43.034111991650583 ] ] ], [ [ [ -87.996765421909643, 43.034522762582895 ], [ -87.996767980530507, 43.035145667560002 ], [ -87.996801635301438, 43.035186777978367 ], [ -87.996803035234748, 43.035527899624448 ], [ -87.996522511823244, 43.035528284320009 ], [ -87.996522344109238, 43.035487132702535 ], [ -87.995991391758011, 43.035487857567858 ], [ -87.995991074003371, 43.035411033342946 ], [ -87.995542062969491, 43.035411644643851 ], [ -87.99554235446432, 43.035525515211482 ], [ -87.995541, 43.035398 ], [ -87.996765421909643, 43.034522762582895 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 9.029 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007301016544858, 43.035235892471441 ], [ -88.007292840310981, 43.035236800451571 ], [ -88.006036700394048, 43.035376275444413 ], [ -88.004825222507506, 43.035510782451503 ], [ -88.004137310649241, 43.035587150283064 ], [ -88.003617991419858, 43.03561600907954 ], [ -88.002433124703401, 43.035681558107811 ], [ -88.002340014051811, 43.035686705191004 ], [ -88.00234, 43.035685 ], [ -88.007296, 43.035234 ], [ -88.007301016544858, 43.035235892471441 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 3.371 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.023626813342474, 43.035921023416229 ], [ -88.023608498965459, 43.034162914792063 ], [ -88.02363, 43.035921 ], [ -88.023626813342474, 43.035921023416229 ] ] ], [ [ [ -88.017255367967579, 43.031330704626868 ], [ -88.016231378127188, 43.031348790030137 ], [ -88.016229618149623, 43.031760343377847 ], [ -88.017313158626621, 43.031741200482905 ], [ -88.017309125519219, 43.032687309354323 ], [ -88.016129320804239, 43.036004370983072 ], [ -88.016078, 43.036005 ], [ -88.016231, 43.031334 ], [ -88.017238, 43.03133 ], [ -88.017255367967579, 43.031330704626868 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 42.782 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.893271, 43.078015 ], [ -87.892183, 43.081905 ], [ -87.891626, 43.081945 ], [ -87.887658, 43.081934 ], [ -87.890575, 43.081496 ], [ -87.891154, 43.079479 ], [ -87.891371, 43.077668 ], [ -87.887779, 43.077626 ], [ -87.887862, 43.074652 ], [ -87.891464, 43.074678 ], [ -87.891499, 43.072857 ], [ -87.891519, 43.071074 ], [ -87.893204, 43.071095 ], [ -87.892684, 43.07413 ], [ -87.893271, 43.078015 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.821 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.890575, 43.081496 ], [ -87.887658, 43.081934 ], [ -87.885186, 43.081931 ], [ -87.882757, 43.081928 ], [ -87.882832, 43.077652 ], [ -87.886546, 43.077661 ], [ -87.886501, 43.079466 ], [ -87.891154, 43.079479 ], [ -87.890575, 43.081496 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.93947, 43.089648 ], [ -87.938801, 43.089634 ], [ -87.937055, 43.089599 ], [ -87.937215, 43.082363 ], [ -87.939694, 43.08241 ], [ -87.93947, 43.089648 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.376 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.94574, 43.089776 ], [ -87.944721, 43.089755 ], [ -87.942007, 43.0897 ], [ -87.942154, 43.084647 ], [ -87.941103, 43.082437 ], [ -87.942195, 43.082458 ], [ -87.94369, 43.082486 ], [ -87.943652, 43.084678 ], [ -87.945855, 43.084724 ], [ -87.94574, 43.089776 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.604 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957194, 43.082523 ], [ -87.957146, 43.085958 ], [ -87.95709, 43.089917 ], [ -87.947007, 43.089802 ], [ -87.94574, 43.089776 ], [ -87.945855, 43.084724 ], [ -87.943652, 43.084678 ], [ -87.94369, 43.082486 ], [ -87.945897, 43.082538 ], [ -87.947137, 43.083506 ], [ -87.94718, 43.081147 ], [ -87.95331, 43.081139 ], [ -87.957216, 43.081127 ], [ -87.957194, 43.082523 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.627 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.037982558379127, 43.075427631126551 ], [ -88.037745576948581, 43.075510995461002 ], [ -88.037461945313893, 43.075512480503164 ], [ -88.037976, 43.075423 ], [ -88.037982558379127, 43.075427631126551 ] ] ], [ [ [ -88.035726906606243, 43.075814476404368 ], [ -88.035803772963092, 43.075957102179387 ], [ -88.035887107981836, 43.076090840889599 ], [ -88.034717214924385, 43.076513410017945 ], [ -88.034649019153335, 43.076405717854378 ], [ -88.03458469317556, 43.076290548626702 ], [ -88.034532934426878, 43.07618748166184 ], [ -88.034462211483429, 43.07603458724094 ], [ -88.035726906606243, 43.075814476404368 ] ] ], [ [ [ -88.033915391640576, 43.076129752388212 ], [ -88.033868390332927, 43.076140407337995 ], [ -88.033868, 43.076138 ], [ -88.033915391640576, 43.076129752388212 ] ] ], [ [ [ -88.033869804184604, 43.076149127120573 ], [ -88.033946860803368, 43.076317310449106 ], [ -88.033973256429547, 43.076369511665391 ], [ -88.034030044609949, 43.076474634936062 ], [ -88.034118366909766, 43.07662265689688 ], [ -88.03417138453797, 43.076704172575603 ], [ -88.034248061202007, 43.076814147062592 ], [ -88.034321219320887, 43.076911662591037 ], [ -88.034438575560046, 43.077055576777539 ], [ -88.034588784599165, 43.077221417020709 ], [ -88.034691268238433, 43.077324819614361 ], [ -88.034852443330578, 43.07747414363881 ], [ -88.035051387358749, 43.077640684113391 ], [ -88.034622478718262, 43.077950887933504 ], [ -88.034550771529069, 43.077889053451791 ], [ -88.034190101807013, 43.078124460871827 ], [ -88.033869804184604, 43.076149127120573 ] ] ], [ [ [ -88.035206589314612, 43.077786170389878 ], [ -88.035226716076835, 43.077771081860547 ], [ -88.035373616800811, 43.077871673050929 ], [ -88.035213, 43.077784 ], [ -88.035206589314612, 43.077786170389878 ] ] ], [ [ [ -88.035927334158742, 43.07817391726325 ], [ -88.036868944898075, 43.078414743124732 ], [ -88.036869393533394, 43.07868812315369 ], [ -88.035927334158742, 43.07817391726325 ] ] ], [ [ [ -88.036915941106201, 43.078694389461546 ], [ -88.037785008363073, 43.078689865768119 ], [ -88.037906132341732, 43.078693185669394 ], [ -88.037907593421821, 43.078813306400939 ], [ -88.036915941106201, 43.078694389461546 ] ] ], [ [ [ -88.038738212323395, 43.078924451484887 ], [ -88.038902536473529, 43.079559719714361 ], [ -88.038906124476142, 43.082329887378656 ], [ -88.038503805467215, 43.082332166469371 ], [ -88.038738212323395, 43.078924451484887 ] ] ], [ [ [ -88.039383841822826, 43.089646159957958 ], [ -88.039484931177455, 43.089685298644774 ], [ -88.04255902498079, 43.089680202678416 ], [ -88.043716403188498, 43.089678532112046 ], [ -88.045847672004513, 43.089671470529133 ], [ -88.04770158650777, 43.089673056668921 ], [ -88.047701394119002, 43.089723025438978 ], [ -88.043599, 43.089763 ], [ -88.039401, 43.089753 ], [ -88.039383841822826, 43.089646159957958 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.427 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.88338944702906, 42.980555409765536 ], [ -87.883487814909628, 42.98055650787019 ], [ -87.88339, 42.980556 ], [ -87.88338944702906, 42.980555409765536 ] ] ], [ [ [ -87.886715651434486, 42.980573220392607 ], [ -87.886716237935275, 42.980544143797417 ], [ -87.886873791743668, 42.980544939397902 ], [ -87.886873044019922, 42.980574032984009 ], [ -87.886715651434486, 42.980573220392607 ] ] ], [ [ [ -87.888802887607113, 42.980583978840656 ], [ -87.888812580676074, 42.980188419778315 ], [ -87.888807, 42.980584 ], [ -87.888802887607113, 42.980583978840656 ] ] ], [ [ [ -87.88881648982607, 42.979911322629547 ], [ -87.888822935241862, 42.979173768147866 ], [ -87.888829052073945, 42.978744294941919 ], [ -87.888266646258785, 42.978742586644771 ], [ -87.887069015256216, 42.978736091648898 ], [ -87.887073826703244, 42.97829564287705 ], [ -87.887089889352879, 42.976622665338731 ], [ -87.886455031152664, 42.976617422975593 ], [ -87.88645702417223, 42.976434446894316 ], [ -87.886460707834289, 42.976058505246435 ], [ -87.886476, 42.976436 ], [ -87.8871, 42.97662 ], [ -87.887077, 42.978733 ], [ -87.888833, 42.978741 ], [ -87.88881648982607, 42.979911322629547 ] ] ], [ [ [ -87.88636582162421, 42.973716066709265 ], [ -87.886313364816118, 42.97371570487504 ], [ -87.886327526597356, 42.972808894490164 ], [ -87.886329076990364, 42.97280890080237 ], [ -87.88636582162421, 42.973716066709265 ] ] ], [ [ [ -87.886506571137389, 42.971953147974048 ], [ -87.886506609889665, 42.971902940176712 ], [ -87.886517, 42.971903 ], [ -87.886506571137389, 42.971953147974048 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.683 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.886506609889665, 42.971902940176712 ], [ -87.886506610502408, 42.971902146293587 ], [ -87.886541784547589, 42.971902306275467 ], [ -87.886517, 42.971903 ], [ -87.886506609889665, 42.971902940176712 ] ] ], [ [ [ -87.889294204458579, 42.971825232006864 ], [ -87.889294647187924, 42.971769987809864 ], [ -87.8895358334306, 42.971773519790894 ], [ -87.890714530116838, 42.971771395215463 ], [ -87.89073, 42.971785 ], [ -87.889294204458579, 42.971825232006864 ] ] ], [ [ [ -87.890016468378235, 42.971157485505053 ], [ -87.88954552308364, 42.971156070277402 ], [ -87.88954877371107, 42.970751991730495 ], [ -87.889555678195237, 42.970752234887421 ], [ -87.890016468378235, 42.971157485505053 ] ] ], [ [ [ -87.890732836291718, 42.970774658711633 ], [ -87.890733081695444, 42.970743936926958 ], [ -87.891844817412917, 42.970786163112187 ], [ -87.892690511908867, 42.970817170676582 ], [ -87.890732836291718, 42.970774658711633 ] ] ], [ [ [ -87.892909043832958, 42.970830797817172 ], [ -87.892905038025035, 42.971448401745477 ], [ -87.892631522221237, 42.9714479503902 ], [ -87.892909043832958, 42.970830797817172 ] ] ], [ [ [ -87.891817707222614, 42.973257638265565 ], [ -87.891817574255398, 42.973276667746745 ], [ -87.891809, 42.973277 ], [ -87.891817707222614, 42.973257638265565 ] ] ], [ [ [ -87.894012673524827, 42.97188083892145 ], [ -87.89401266694108, 42.97186261809059 ], [ -87.894018386331268, 42.970899352682871 ], [ -87.894026313348249, 42.969861187402088 ], [ -87.894049532946582, 42.966457841424699 ], [ -87.894050977328789, 42.966186595500325 ], [ -87.894059, 42.96619 ], [ -87.894012673524827, 42.97188083892145 ] ] ], [ [ [ -87.889615282859893, 42.964282301865616 ], [ -87.889611383633536, 42.96428065780335 ], [ -87.889628297270235, 42.963283962637753 ], [ -87.889615282859893, 42.964282301865616 ] ] ], [ [ [ -87.889641225374234, 42.962292232294431 ], [ -87.889649624590504, 42.961286134371143 ], [ -87.889661871873045, 42.960333710103328 ], [ -87.889669323508159, 42.959764677195835 ], [ -87.88967649768928, 42.959240921015848 ], [ -87.889681, 42.959241 ], [ -87.889641225374234, 42.962292232294431 ] ] ], [ [ [ -87.883481246109213, 42.959132069529772 ], [ -87.883246177015749, 42.95913095851639 ], [ -87.883246199892611, 42.959127830467551 ], [ -87.88325, 42.959128 ], [ -87.883481246109213, 42.959132069529772 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 67.469 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.033218, 43.135957 ], [ -88.031645, 43.135918 ], [ -88.029762, 43.139186 ], [ -88.028391, 43.145311 ], [ -88.026154, 43.148619 ], [ -88.02519, 43.148634 ], [ -88.005273, 43.148725 ], [ -88.00534, 43.14593 ], [ -88.0054, 43.144226 ], [ -88.005481, 43.141443 ], [ -88.010507, 43.141415 ], [ -88.013217, 43.141312 ], [ -88.015562, 43.140443 ], [ -88.016508, 43.141373 ], [ -88.018536, 43.140354 ], [ -88.019483, 43.140281 ], [ -88.025332, 43.14133 ], [ -88.025439, 43.134061 ], [ -88.032611, 43.13398 ], [ -88.033655, 43.135331 ], [ -88.033218, 43.135957 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 41.567 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.050378, 43.147549 ], [ -88.048397, 43.148153 ], [ -88.046796, 43.148388 ], [ -88.026154, 43.148619 ], [ -88.028391, 43.145311 ], [ -88.029762, 43.139186 ], [ -88.031645, 43.135918 ], [ -88.033218, 43.135957 ], [ -88.042383, 43.142963 ], [ -88.045143, 43.144571 ], [ -88.048862, 43.146524 ], [ -88.050378, 43.147549 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.098 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.01579, 43.113531 ], [ -88.010989, 43.117189 ], [ -88.012959, 43.118358 ], [ -88.014043, 43.119563 ], [ -88.012062, 43.119567 ], [ -88.009781, 43.119571 ], [ -88.005997, 43.119525 ], [ -88.006052, 43.112279 ], [ -88.007546, 43.112273 ], [ -88.014612, 43.112242 ], [ -88.015804, 43.112236 ], [ -88.01579, 43.113531 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 78.589 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.985626, 43.141296 ], [ -87.964914, 43.141274 ], [ -87.955216, 43.134803 ], [ -87.956397, 43.13406 ], [ -87.984558, 43.133938 ], [ -87.985929, 43.135883 ], [ -87.985626, 43.141296 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.389 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.005895, 43.12953 ], [ -88.00567, 43.134149 ], [ -87.990847, 43.133987 ], [ -87.990887, 43.129518 ], [ -87.990945, 43.124857 ], [ -87.991096, 43.119406 ], [ -87.994773, 43.119467 ], [ -87.994638, 43.12674 ], [ -87.998445, 43.126787 ], [ -88.00213, 43.126826 ], [ -88.005955, 43.126868 ], [ -88.005895, 43.12953 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 73.362 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.00213, 43.126826 ], [ -87.998445, 43.126787 ], [ -87.998528, 43.11951 ], [ -88.001018, 43.119533 ], [ -88.002214, 43.119544 ], [ -88.00213, 43.126826 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 88.168 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.025884, 43.119515 ], [ -88.014043, 43.119563 ], [ -88.012959, 43.118358 ], [ -88.010989, 43.117189 ], [ -88.01579, 43.113531 ], [ -88.015804, 43.112236 ], [ -88.01693, 43.112237 ], [ -88.023158, 43.112244 ], [ -88.024609, 43.111587 ], [ -88.025934, 43.112576 ], [ -88.025884, 43.119515 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.521 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.973882, 43.108309 ], [ -87.971404, 43.108301 ], [ -87.971314, 43.111977 ], [ -87.968933, 43.111971 ], [ -87.966411, 43.111963 ], [ -87.966527, 43.104621 ], [ -87.970284, 43.104633 ], [ -87.973928, 43.104644 ], [ -87.973882, 43.108309 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.349 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.976407, 43.105186 ], [ -87.976319, 43.111991 ], [ -87.971314, 43.111977 ], [ -87.971404, 43.108301 ], [ -87.973882, 43.108309 ], [ -87.973928, 43.104644 ], [ -87.976542, 43.104653 ], [ -87.976407, 43.105186 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942862, 43.102847 ], [ -87.927655, 43.097959 ], [ -87.925141, 43.093715 ], [ -87.926948, 43.093775 ], [ -87.929418, 43.093823 ], [ -87.929306, 43.096793 ], [ -87.934209, 43.096904 ], [ -87.938283, 43.097217 ], [ -87.938212, 43.100378 ], [ -87.939387, 43.100755 ], [ -87.942879, 43.101875 ], [ -87.942862, 43.102847 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.565 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.939407, 43.091977 ], [ -87.939341, 43.094228 ], [ -87.934289, 43.094099 ], [ -87.93446, 43.089543 ], [ -87.937055, 43.089599 ], [ -87.938801, 43.089634 ], [ -87.940613, 43.092894 ], [ -87.939407, 43.091977 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.888 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.931933, 43.093873 ], [ -87.929418, 43.093823 ], [ -87.926948, 43.093775 ], [ -87.927095, 43.089382 ], [ -87.929575, 43.089437 ], [ -87.932067, 43.089491 ], [ -87.931933, 43.093873 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.772 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.939387, 43.100755 ], [ -87.938212, 43.100378 ], [ -87.938283, 43.097217 ], [ -87.934209, 43.096904 ], [ -87.934289, 43.094099 ], [ -87.939341, 43.094228 ], [ -87.939387, 43.100755 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.309 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007252967904378, 43.024082826077091 ], [ -88.008596213194181, 43.02404889286629 ], [ -88.008595996861516, 43.02406480568483 ], [ -88.007252967904378, 43.024082826077091 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.695 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.984387867877956, 42.999294672376102 ], [ -87.983249584380459, 42.999294947680085 ], [ -87.982921434525906, 42.999291328529345 ], [ -87.98259309258134, 42.999295099917958 ], [ -87.981615183517818, 42.999295324966255 ], [ -87.981325916274315, 42.99929782102344 ], [ -87.981036734472028, 42.999295456542498 ], [ -87.979171453207144, 42.999295848716372 ], [ -87.978742449163789, 42.99928833436767 ], [ -87.978395354164633, 42.999296003813242 ], [ -87.977644911004845, 42.999282186857592 ], [ -87.977645, 42.999278 ], [ -87.984387867877956, 42.999294672376102 ] ] ], [ [ [ -87.97762074862203, 43.000437738421198 ], [ -87.977627370650595, 43.001100044300628 ], [ -87.977589556847249, 43.002165904229493 ], [ -87.97762074862203, 43.000437738421198 ] ] ], [ [ [ -87.975957443506104, 43.003013675891246 ], [ -87.977565983349692, 43.003554599758864 ], [ -87.977564332423228, 43.003704563273885 ], [ -87.975957443506104, 43.003013675891246 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 0.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.988927142701968, 42.998758392591299 ], [ -87.988917029414552, 42.998757075347456 ], [ -87.988812324030917, 42.99874380461241 ], [ -87.988285585450583, 42.998747408177678 ], [ -87.988304619200463, 42.997835240379807 ], [ -87.988927, 42.998755 ], [ -87.988927142701968, 42.998758392591299 ] ] ], [ [ [ -87.988254360779578, 42.997760966687615 ], [ -87.98824902233001, 42.997759842689497 ], [ -87.987573384093906, 42.997763288365476 ], [ -87.987577974388927, 42.997514199140106 ], [ -87.987258477213715, 42.997512184796008 ], [ -87.986923862765693, 42.997535532522122 ], [ -87.986653936312422, 42.997581341507008 ], [ -87.98667, 42.997545 ], [ -87.987583, 42.997473 ], [ -87.988251, 42.997756 ], [ -87.988254360779578, 42.997760966687615 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.72 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.995763038011788, 42.998832004790231 ], [ -87.995752486686527, 42.998841056847468 ], [ -87.995091266492821, 42.998844560708413 ], [ -87.995763, 42.998832 ], [ -87.995763038011788, 42.998832004790231 ] ] ], [ [ [ -87.995019431995914, 42.998845903704186 ], [ -87.995018880575714, 42.998877845154894 ], [ -87.99446577849622, 42.998872888266682 ], [ -87.993408935313482, 42.998879530937536 ], [ -87.993409, 42.998876 ], [ -87.995019431995914, 42.998845903704186 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.744 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.976839, 43.09923 ], [ -87.97672, 43.103911 ], [ -87.976542, 43.104653 ], [ -87.973928, 43.104644 ], [ -87.970284, 43.104633 ], [ -87.970706, 43.097443 ], [ -87.96696, 43.097414 ], [ -87.966991, 43.09685 ], [ -87.972214, 43.09688 ], [ -87.973405, 43.097198 ], [ -87.976888, 43.097208 ], [ -87.976839, 43.09923 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.663 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.970284, 43.104633 ], [ -87.966527, 43.104621 ], [ -87.966797, 43.103403 ], [ -87.966815, 43.102572 ], [ -87.966911, 43.098951 ], [ -87.96696, 43.097414 ], [ -87.970706, 43.097443 ], [ -87.970284, 43.104633 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 67.749 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.986769, 43.097261 ], [ -87.986715, 43.100716 ], [ -87.981547, 43.0996 ], [ -87.976839, 43.09923 ], [ -87.976888, 43.097208 ], [ -87.985067, 43.097259 ], [ -87.986775, 43.096896 ], [ -87.986769, 43.097261 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.839 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.986676, 43.103687 ], [ -87.986478, 43.104699 ], [ -87.986487, 43.104713 ], [ -87.981359, 43.104677 ], [ -87.976542, 43.104653 ], [ -87.97672, 43.103911 ], [ -87.976839, 43.09923 ], [ -87.981547, 43.0996 ], [ -87.986715, 43.100716 ], [ -87.986676, 43.103687 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 91.564 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.993059, 43.104814 ], [ -87.989705, 43.104763 ], [ -87.986478, 43.104699 ], [ -87.986676, 43.103687 ], [ -87.986715, 43.100716 ], [ -87.986769, 43.097261 ], [ -87.987445, 43.097263 ], [ -87.995039, 43.103312 ], [ -87.993059, 43.104814 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.938 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.995648, 43.099163 ], [ -87.995564, 43.102662 ], [ -87.995039, 43.103312 ], [ -87.987445, 43.097263 ], [ -87.989362, 43.097262 ], [ -87.99445, 43.09726 ], [ -87.995683, 43.097259 ], [ -87.995648, 43.099163 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.075 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.000713, 43.104922 ], [ -87.995076, 43.104847 ], [ -87.993774, 43.104825 ], [ -87.993059, 43.104814 ], [ -87.995039, 43.103312 ], [ -87.995564, 43.102662 ], [ -87.995648, 43.099163 ], [ -88.000696, 43.099155 ], [ -88.000713, 43.104922 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.339 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007046, 43.099112 ], [ -88.00687, 43.10372 ], [ -88.00649, 43.104998 ], [ -88.003311, 43.104956 ], [ -88.00197, 43.100856 ], [ -88.003229, 43.100849 ], [ -88.003136, 43.097228 ], [ -88.007096, 43.097208 ], [ -88.007046, 43.099112 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 23.766 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.037029284827867, 43.09278384527277 ], [ -88.037084275742103, 43.092753026931817 ], [ -88.037092935628465, 43.091897664399852 ], [ -88.037095662740114, 43.091859695578826 ], [ -88.037693038191662, 43.09186041703925 ], [ -88.03769664950326, 43.091416356939568 ], [ -88.037098192472058, 43.091415635472856 ], [ -88.037098340565791, 43.090848297849874 ], [ -88.037062566220982, 43.090830016889811 ], [ -88.036670843873878, 43.090741465737061 ], [ -88.036616778310304, 43.090647792672634 ], [ -88.036146648840202, 43.090647476631794 ], [ -88.035798, 43.090204 ], [ -88.035788838618203, 43.090206830012434 ], [ -88.035386376485107, 43.090206337666764 ], [ -88.035384936769574, 43.090331597024353 ], [ -88.032699044347737, 43.091161231739029 ], [ -88.032703714790202, 43.090645104950063 ], [ -88.032713533556702, 43.090181568208379 ], [ -88.033017903744721, 43.090182342854092 ], [ -88.033020694557919, 43.089683735618273 ], [ -88.032823261293444, 43.089683594704603 ], [ -88.031588559951075, 43.08968035586264 ], [ -88.031579029958962, 43.090640651026376 ], [ -88.031468894883204, 43.090640511418414 ], [ -88.03145994782966, 43.091541902984886 ], [ -88.030851596596776, 43.091323246154069 ], [ -88.030863595323808, 43.090673239540266 ], [ -88.030246635415139, 43.090667528826472 ], [ -88.029636385949345, 43.09066950393813 ], [ -88.029636987505015, 43.090199153924154 ], [ -88.029020576171007, 43.09019414067383 ], [ -88.027717386200194, 43.090196655118859 ], [ -88.02771, 43.090194 ], [ -88.027714, 43.089761 ], [ -88.029032, 43.088718 ], [ -88.034855, 43.088648 ], [ -88.035391, 43.08975 ], [ -88.039401, 43.089753 ], [ -88.043599, 43.089763 ], [ -88.038203, 43.093225 ], [ -88.03698, 43.09347 ], [ -88.037029284827867, 43.09278384527277 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 25.058 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.908559, 43.048179 ], [ -87.903476, 43.048144 ], [ -87.903521, 43.045729 ], [ -87.907297, 43.045757 ], [ -87.907271, 43.04696 ], [ -87.908559, 43.048179 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.44 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.913335, 43.046211 ], [ -87.912725, 43.047558 ], [ -87.911528, 43.048645 ], [ -87.910171, 43.04936 ], [ -87.909187, 43.050046 ], [ -87.907711, 43.051607 ], [ -87.906669, 43.052764 ], [ -87.904358, 43.054504 ], [ -87.903341, 43.052986 ], [ -87.903454, 43.049353 ], [ -87.903476, 43.048144 ], [ -87.908559, 43.048179 ], [ -87.907271, 43.04696 ], [ -87.907297, 43.045757 ], [ -87.91338, 43.045702 ], [ -87.913335, 43.046211 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.382 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957642, 43.048717 ], [ -87.957631, 43.050119 ], [ -87.947757, 43.05005 ], [ -87.947767, 43.047281 ], [ -87.957653, 43.047274 ], [ -87.957642, 43.048717 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 38.358 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957653, 43.047274 ], [ -87.947767, 43.047281 ], [ -87.947773, 43.045874 ], [ -87.957664, 43.045887 ], [ -87.957653, 43.047274 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 55.019 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.950365, 43.038718 ], [ -87.947717, 43.0387 ], [ -87.942895, 43.03869 ], [ -87.941587, 43.038688 ], [ -87.939387, 43.038683 ], [ -87.937896, 43.038681 ], [ -87.937904, 43.037485 ], [ -87.941615, 43.037491 ], [ -87.950392, 43.037512 ], [ -87.950365, 43.038718 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 56.857 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.973322, 43.045687 ], [ -87.972078, 43.048809 ], [ -87.965413, 43.048783 ], [ -87.964961, 43.045286 ], [ -87.966937, 43.042931 ], [ -87.967357, 43.040457 ], [ -87.968849, 43.042014 ], [ -87.971576, 43.042595 ], [ -87.973194, 43.041646 ], [ -87.973322, 43.045687 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.603 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.999932411908546, 43.024170883562057 ], [ -87.99999717998314, 43.024171636024612 ], [ -87.999999115874658, 43.024171650075743 ], [ -88.000009, 43.024483 ], [ -87.999766, 43.030138 ], [ -88.007257, 43.028236 ], [ -88.00728, 43.032233 ], [ -87.997389, 43.032091 ], [ -87.997388, 43.030301 ], [ -87.997412, 43.02428 ], [ -87.999932411908546, 43.024170883562057 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 52.287 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.999999115874658, 43.024171650075743 ], [ -88.002391713457072, 43.024188991040589 ], [ -88.003796509171167, 43.024199144305079 ], [ -88.007236229052751, 43.024223947444199 ], [ -88.007236326956928, 43.024219988034922 ], [ -88.007238, 43.02422 ], [ -88.007257, 43.028236 ], [ -87.999766, 43.030138 ], [ -88.000009, 43.024483 ], [ -87.999999115874658, 43.024171650075743 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 51.471 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.950392, 43.037512 ], [ -87.941615, 43.037491 ], [ -87.937904, 43.037485 ], [ -87.937914, 43.03612 ], [ -87.944995, 43.036131 ], [ -87.944994, 43.035339 ], [ -87.944827, 43.034776 ], [ -87.946384, 43.034779 ], [ -87.947742, 43.034781 ], [ -87.950421, 43.034771 ], [ -87.950392, 43.037512 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 58.289 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.944036, 43.003408 ], [ -87.943046, 43.005305 ], [ -87.941982, 43.004633 ], [ -87.933296, 43.004724 ], [ -87.933369, 43.002934 ], [ -87.935538, 43.00297 ], [ -87.938251, 43.003014 ], [ -87.944533, 43.003112 ], [ -87.944036, 43.003408 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.525 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.906755, 42.995205 ], [ -87.904258, 42.995621 ], [ -87.900442, 42.995646 ], [ -87.900447, 42.993778 ], [ -87.899288, 42.99243 ], [ -87.899308, 42.991069 ], [ -87.896841, 42.99105 ], [ -87.896859, 42.989692 ], [ -87.896917, 42.988291 ], [ -87.899333, 42.988311 ], [ -87.903954, 42.9883 ], [ -87.904397, 42.988299 ], [ -87.904335, 42.991741 ], [ -87.906805, 42.991725 ], [ -87.906755, 42.995205 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 35.776 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.99740876725572, 43.02427991262919 ], [ -87.99740932777911, 43.024152225378884 ], [ -87.99863867173498, 43.024155845462083 ], [ -87.999932411908546, 43.024170883562057 ], [ -87.997412, 43.02428 ], [ -87.99740876725572, 43.02427991262919 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 34.378 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007236326956928, 43.024219988034922 ], [ -88.007239710271776, 43.024083160914138 ], [ -88.007239997756884, 43.024083153653386 ], [ -88.007238, 43.02422 ], [ -88.007236326956928, 43.024219988034922 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 39.906 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942885, 43.04024 ], [ -87.940495, 43.040247 ], [ -87.94048, 43.041614 ], [ -87.93786, 43.041606 ], [ -87.937971, 43.040241 ], [ -87.936642, 43.040248 ], [ -87.936658, 43.038678 ], [ -87.937896, 43.038681 ], [ -87.939387, 43.038683 ], [ -87.941587, 43.038688 ], [ -87.942895, 43.03869 ], [ -87.942885, 43.04024 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.602 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942876, 43.041621 ], [ -87.942853, 43.045859 ], [ -87.937811, 43.045844 ], [ -87.93786, 43.041606 ], [ -87.94048, 43.041614 ], [ -87.940495, 43.040247 ], [ -87.942885, 43.04024 ], [ -87.942876, 43.041621 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.662 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.968724, 43.071557 ], [ -87.967418, 43.071546 ], [ -87.964475, 43.071544 ], [ -87.964506, 43.069714 ], [ -87.964536, 43.067901 ], [ -87.964559, 43.066066 ], [ -87.967497, 43.066065 ], [ -87.96747, 43.0679 ], [ -87.968773, 43.067909 ], [ -87.968724, 43.071557 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 83.333 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.969907, 43.071567 ], [ -87.968724, 43.071557 ], [ -87.968773, 43.067909 ], [ -87.96747, 43.0679 ], [ -87.967497, 43.066065 ], [ -87.964559, 43.066066 ], [ -87.96459, 43.064256 ], [ -87.97001, 43.064265 ], [ -87.969907, 43.071567 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 96.193 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964475, 43.071544 ], [ -87.95736, 43.071558 ], [ -87.957386, 43.069726 ], [ -87.964506, 43.069714 ], [ -87.964475, 43.071544 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.83 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964536, 43.067901 ], [ -87.957412, 43.067904 ], [ -87.957439, 43.066074 ], [ -87.964559, 43.066066 ], [ -87.964536, 43.067901 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.217 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.92371, 43.077655 ], [ -87.92247, 43.077643 ], [ -87.91689, 43.077586 ], [ -87.916927, 43.074829 ], [ -87.92378, 43.074887 ], [ -87.92371, 43.077655 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.793 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.972428, 43.059261 ], [ -87.964664, 43.059244 ], [ -87.964703, 43.056463 ], [ -87.965052, 43.056464 ], [ -87.967004, 43.057493 ], [ -87.971918, 43.057102 ], [ -87.972436, 43.057106 ], [ -87.972428, 43.059261 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.276 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.972513, 43.060636 ], [ -87.968885, 43.06062 ], [ -87.968858, 43.062444 ], [ -87.96462, 43.062441 ], [ -87.964664, 43.059244 ], [ -87.972428, 43.059261 ], [ -87.972513, 43.060636 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 54.661 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.907725410130823, 43.097386087127362 ], [ -87.907687710407231, 43.098945324129616 ], [ -87.908125944152644, 43.099535889079895 ], [ -87.908766066866676, 43.100092110408198 ], [ -87.909933225029889, 43.100851380865663 ], [ -87.912804170882794, 43.101369822394965 ], [ -87.913869116180223, 43.101921173632149 ], [ -87.914486777693668, 43.102423550796509 ], [ -87.9148294602996, 43.102702271168361 ], [ -87.916065579357294, 43.103173667849433 ], [ -87.916872134446038, 43.103347893028854 ], [ -87.916852651741067, 43.104135360208787 ], [ -87.916920599943225, 43.104136227966109 ], [ -87.916946286020291, 43.104581909879627 ], [ -87.916945459035546, 43.104616765331194 ], [ -87.915646541539388, 43.104600234717722 ], [ -87.914485129423184, 43.104585438700724 ], [ -87.913249693295839, 43.104568217028792 ], [ -87.912018444206609, 43.104552201165369 ], [ -87.910409919160017, 43.104532991120927 ], [ -87.909595, 43.104521 ], [ -87.90886, 43.10403 ], [ -87.907124, 43.104009 ], [ -87.907104662237018, 43.102942603963264 ], [ -87.907106697732303, 43.102862661993058 ], [ -87.907103169920603, 43.102860306744994 ], [ -87.907057, 43.100314 ], [ -87.907048663839603, 43.100284395553601 ], [ -87.907074240067146, 43.099227259244159 ], [ -87.907089187802413, 43.098609222129042 ], [ -87.907050448433921, 43.098547642184137 ], [ -87.906636874348834, 43.098089251581406 ], [ -87.906611701725126, 43.098015687132467 ], [ -87.906556082264899, 43.097941566042785 ], [ -87.906425660353534, 43.097868098132665 ], [ -87.906350298863288, 43.097804164722049 ], [ -87.906348, 43.097796 ], [ -87.901101971586527, 43.095713783147033 ], [ -87.901079044498829, 43.095698510038297 ], [ -87.900968006585444, 43.095594418477546 ], [ -87.900932242412608, 43.093197249219251 ], [ -87.900934353451234, 43.093187990718889 ], [ -87.900941684147625, 43.093072938130476 ], [ -87.900895832766736, 43.092981679417178 ], [ -87.900897198975798, 43.092894521693999 ], [ -87.900905873827867, 43.092789403505833 ], [ -87.900910070424871, 43.092716406787595 ], [ -87.900908874045967, 43.092603675592315 ], [ -87.900913878155862, 43.092507162526331 ], [ -87.900899421635742, 43.092436296983067 ], [ -87.900877614495343, 43.092382639799908 ], [ -87.900873371026449, 43.092263219112617 ], [ -87.90083061192567, 43.092131143910358 ], [ -87.900765493219922, 43.092012698104874 ], [ -87.900659767474991, 43.091894323058 ], [ -87.900540639829629, 43.091779832934648 ], [ -87.900437695059694, 43.09167884950115 ], [ -87.900302761794407, 43.091574797034554 ], [ -87.900219922228274, 43.091497329843911 ], [ -87.899990431053837, 43.090954688989527 ], [ -87.899994787639997, 43.090867607127315 ], [ -87.899957380954959, 43.090731472283181 ], [ -87.899957702646503, 43.090623726420858 ], [ -87.899867671229387, 43.09054032126015 ], [ -87.899793822494033, 43.090489792169315 ], [ -87.89967, 43.090197 ], [ -87.899633000151084, 43.090170868077244 ], [ -87.899527331136511, 43.090032090165437 ], [ -87.899410887641409, 43.089930856525548 ], [ -87.899259096291033, 43.089776952001742 ], [ -87.898931599013153, 43.089575214083283 ], [ -87.898743832754192, 43.089459672357108 ], [ -87.898605223377174, 43.089413762178857 ], [ -87.898530893704802, 43.089392466327311 ], [ -87.898223, 43.089175 ], [ -87.898121168885609, 43.089105099782678 ], [ -87.898034619230415, 43.088993525501728 ], [ -87.897998709195619, 43.08896118635689 ], [ -87.897926264838034, 43.088914598663024 ], [ -87.897853978494851, 43.088863487012148 ], [ -87.89777957973169, 43.088813845800516 ], [ -87.897744073833721, 43.088787797390786 ], [ -87.897682255464019, 43.088737541150707 ], [ -87.897584567544939, 43.0886656244394 ], [ -87.89754591596855, 43.088598138273568 ], [ -87.897407863656937, 43.088483715198976 ], [ -87.89734819705285, 43.088433042241114 ], [ -87.897273728405239, 43.088365794672306 ], [ -87.897198352987104, 43.088282591190023 ], [ -87.897107625185058, 43.08822460443546 ], [ -87.897049282362602, 43.088193771588855 ], [ -87.896970916114469, 43.088128127679788 ], [ -87.896923694345148, 43.088068817807688 ], [ -87.896855842556221, 43.088019749816773 ], [ -87.896726519903211, 43.087988673501883 ], [ -87.896639369338104, 43.087953062426386 ], [ -87.896558373114118, 43.087906941838298 ], [ -87.896455700821051, 43.087859360378197 ], [ -87.896381858983389, 43.08783291499747 ], [ -87.896286460344527, 43.087784402613728 ], [ -87.896191027560491, 43.087736954753225 ], [ -87.896130080013123, 43.087697573656577 ], [ -87.896032918801495, 43.087616097011228 ], [ -87.895944905883511, 43.08753641045702 ], [ -87.895849005928596, 43.087460259139952 ], [ -87.895777506557735, 43.087390938397839 ], [ -87.895706831414159, 43.087339697292187 ], [ -87.895600507181214, 43.087271857718363 ], [ -87.895517667402174, 43.087237390714193 ], [ -87.895447707286849, 43.087207405667591 ], [ -87.895397984537865, 43.08717886013428 ], [ -87.895323646647327, 43.087149864419771 ], [ -87.895254697952765, 43.087107638288821 ], [ -87.89520457548582, 43.087090775444878 ], [ -87.895180637666513, 43.087086513806099 ], [ -87.893295969385974, 43.085792635194835 ], [ -87.893255053224578, 43.085745420241324 ], [ -87.893242195782477, 43.085721392258598 ], [ -87.891692348050086, 43.082100038235943 ], [ -87.891692546970887, 43.082088031657889 ], [ -87.891693113138686, 43.082029604929566 ], [ -87.891684622332107, 43.081981637034396 ], [ -87.891630633768244, 43.081955827945421 ], [ -87.891626, 43.081945 ], [ -87.892183, 43.081905 ], [ -87.897542, 43.081972 ], [ -87.901253, 43.082004 ], [ -87.904998, 43.082037 ], [ -87.90748, 43.082051 ], [ -87.907471, 43.082589 ], [ -87.907817, 43.091499 ], [ -87.907725410130823, 43.097386087127362 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.597 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.916995757999203, 43.092601690645274 ], [ -87.916999603062195, 43.092410627186872 ], [ -87.916533016401857, 43.091918641976434 ], [ -87.916517, 43.091895 ], [ -87.916525474105612, 43.09147311724189 ], [ -87.916535530231286, 43.091106435412456 ], [ -87.916545163027436, 43.090492892673751 ], [ -87.916559, 43.089804 ], [ -87.907883, 43.089746 ], [ -87.907882860832572, 43.08974969645341 ], [ -87.907880450847742, 43.089749680348135 ], [ -87.907877760630967, 43.089885163669337 ], [ -87.907817, 43.091499 ], [ -87.907471, 43.082589 ], [ -87.910191, 43.085451 ], [ -87.917302, 43.085519 ], [ -87.917192, 43.089307 ], [ -87.916998, 43.092605 ], [ -87.916995757999203, 43.092601690645274 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 72.29 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.974771, 43.08246 ], [ -87.974545, 43.082551 ], [ -87.970897, 43.082529 ], [ -87.971143, 43.071577 ], [ -87.972368, 43.071587 ], [ -87.974874, 43.071607 ], [ -87.974771, 43.08246 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 72.578 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977211, 43.082567 ], [ -87.97467, 43.082552 ], [ -87.974545, 43.082551 ], [ -87.974771, 43.08246 ], [ -87.974874, 43.071607 ], [ -87.977404, 43.071624 ], [ -87.977211, 43.082567 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.029 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957334, 43.073368 ], [ -87.95728, 43.077021 ], [ -87.957247, 43.079115 ], [ -87.957216, 43.081127 ], [ -87.95331, 43.081139 ], [ -87.952956, 43.075218 ], [ -87.952721, 43.071568 ], [ -87.953948, 43.071565 ], [ -87.95736, 43.071558 ], [ -87.957334, 43.073368 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.397 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952956, 43.075218 ], [ -87.947293, 43.07523 ], [ -87.947317, 43.073388 ], [ -87.947341, 43.071577 ], [ -87.949823, 43.071572 ], [ -87.952721, 43.071568 ], [ -87.952956, 43.075218 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 25.846 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.986187, 43.031443 ], [ -87.984953, 43.032233 ], [ -87.984527, 43.036618 ], [ -87.9762, 43.036813 ], [ -87.970953, 43.037445 ], [ -87.972123, 43.038765 ], [ -87.97532, 43.038783 ], [ -87.975322, 43.042596 ], [ -87.973194, 43.041646 ], [ -87.971576, 43.042595 ], [ -87.968849, 43.042014 ], [ -87.967357, 43.040457 ], [ -87.966393, 43.039587 ], [ -87.965171, 43.038816 ], [ -87.964944, 43.037818 ], [ -87.967155, 43.035412 ], [ -87.967244, 43.033097 ], [ -87.968416, 43.033058 ], [ -87.972819, 43.032496 ], [ -87.978184, 43.03087 ], [ -87.981747, 43.030402 ], [ -87.982604, 43.030517 ], [ -87.986577, 43.030502 ], [ -87.986187, 43.031443 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.398 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.98406946779123, 43.039676076539365 ], [ -87.984071183174933, 43.040246844006617 ], [ -87.984875721568287, 43.040245921875865 ], [ -87.98552998022565, 43.04024692519647 ], [ -87.986185900220121, 43.040244415474838 ], [ -87.987483967548044, 43.040242903622115 ], [ -87.987519667400193, 43.041530713881819 ], [ -87.987520567074085, 43.041693818877683 ], [ -87.987521068651205, 43.042016180517152 ], [ -87.987519509478332, 43.042194361377959 ], [ -87.978382, 43.04314 ], [ -87.975322, 43.042596 ], [ -87.97532, 43.038783 ], [ -87.972123, 43.038765 ], [ -87.970953, 43.037445 ], [ -87.9762, 43.036813 ], [ -87.984527, 43.036618 ], [ -87.984056, 43.038399 ], [ -87.98406946779123, 43.039676076539365 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.438 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.037296877559484, 43.06712725490533 ], [ -88.037392791336018, 43.06712561981368 ], [ -88.037397528066151, 43.067168842309592 ], [ -88.037296877559484, 43.06712725490533 ] ] ], [ [ [ -88.038409762501175, 43.06759101047453 ], [ -88.038822459847069, 43.067584976148474 ], [ -88.038836132545299, 43.0687920251344 ], [ -88.037494737501291, 43.068822115756028 ], [ -88.038409762501175, 43.06759101047453 ] ] ], [ [ [ -88.035428559905341, 43.073410447843457 ], [ -88.035446207808789, 43.073500149329256 ], [ -88.035485265244276, 43.073761609643846 ], [ -88.035511744868188, 43.074023775631815 ], [ -88.035512603045547, 43.074040438655935 ], [ -88.035428559905341, 43.073410447843457 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 3.831 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.887138, 42.992541 ], [ -87.883135, 42.994736 ], [ -87.878703, 42.992 ], [ -87.881476, 42.989319 ], [ -87.88152, 42.988144 ], [ -87.883435, 42.988165 ], [ -87.884149, 42.989508 ], [ -87.887606, 42.992182 ], [ -87.887138, 42.992541 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 1.866 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.882295836675723, 42.996207870128487 ], [ -87.882234140424558, 42.996134586039062 ], [ -87.882113229059513, 42.99601582347735 ], [ -87.882110314661659, 42.996013105560635 ], [ -87.881454343509247, 42.995324442008773 ], [ -87.881437327905658, 42.995297160384816 ], [ -87.88139050766415, 42.995257423665194 ], [ -87.881233939947194, 42.995093049578088 ], [ -87.881216451270888, 42.995074690060605 ], [ -87.881148760781954, 42.994966244494194 ], [ -87.881036460048705, 42.994826222724782 ], [ -87.880887579335948, 42.994623209807301 ], [ -87.880758296926899, 42.994418371688653 ], [ -87.880707064232837, 42.994379900037337 ], [ -87.880605669912399, 42.994272078735825 ], [ -87.88045668157298, 42.994067865835319 ], [ -87.880371289652871, 42.993981696243296 ], [ -87.88030250739628, 42.993929657453371 ], [ -87.880137604674644, 42.993790859260656 ], [ -87.880008640190226, 42.993710562978151 ], [ -87.879944740656654, 42.99364757643005 ], [ -87.879717304396664, 42.993493266377662 ], [ -87.879712092893882, 42.993495371135729 ], [ -87.879710976471799, 42.993494199045607 ], [ -87.878683, 42.992415 ], [ -87.872035337248178, 42.988503579341256 ], [ -87.872004117926735, 42.988437310155412 ], [ -87.8718352898413, 42.988349894940711 ], [ -87.871646320876209, 42.988260506773081 ], [ -87.87155690439937, 42.988222039695273 ], [ -87.871298024594495, 42.98806969679179 ], [ -87.878183, 42.988153 ], [ -87.879356, 42.988168 ], [ -87.88152, 42.988144 ], [ -87.881476, 42.989319 ], [ -87.878703, 42.992 ], [ -87.883135, 42.994736 ], [ -87.884367, 42.995831 ], [ -87.882756964317295, 42.996691964039485 ], [ -87.882295836675723, 42.996207870128487 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.834 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.900442, 42.995646 ], [ -87.896173, 42.995624 ], [ -87.895132, 42.995083 ], [ -87.893193, 42.99409 ], [ -87.893217, 42.992379 ], [ -87.899288, 42.99243 ], [ -87.900447, 42.993778 ], [ -87.900442, 42.995646 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.97 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.893254, 42.989667 ], [ -87.893217, 42.992379 ], [ -87.893193, 42.99409 ], [ -87.890386, 42.992691 ], [ -87.887606, 42.992182 ], [ -87.884149, 42.989508 ], [ -87.883435, 42.988165 ], [ -87.888587, 42.98822 ], [ -87.893273, 42.988261 ], [ -87.893254, 42.989667 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.386 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.888587, 42.98822 ], [ -87.883435, 42.988165 ], [ -87.881833, 42.985133 ], [ -87.884887, 42.98379 ], [ -87.882443, 42.980971 ], [ -87.883652, 42.98096 ], [ -87.886989, 42.985102 ], [ -87.888587, 42.98822 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.714 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.879662860708066, 42.980534282767813 ], [ -87.879709288708625, 42.980534482924007 ], [ -87.880217947812, 42.980539556505057 ], [ -87.880218377830133, 42.980498029351345 ], [ -87.882031411236696, 42.980508765367141 ], [ -87.881965843711214, 42.980433272439996 ], [ -87.882468869947331, 42.980203372813349 ], [ -87.882741786368399, 42.980556871666721 ], [ -87.883017044549447, 42.980558276460087 ], [ -87.883197744564256, 42.980553269627819 ], [ -87.883289797253852, 42.980554297264518 ], [ -87.883388813057977, 42.980555402688083 ], [ -87.88339, 42.980556 ], [ -87.883652, 42.98096 ], [ -87.882443, 42.980971 ], [ -87.884887, 42.98379 ], [ -87.881833, 42.985133 ], [ -87.879464, 42.985452 ], [ -87.879501, 42.984548 ], [ -87.879649, 42.980536 ], [ -87.879662860708066, 42.980534282767813 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.486 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.883435, 42.988165 ], [ -87.88152, 42.988144 ], [ -87.879356, 42.988168 ], [ -87.878183, 42.988153 ], [ -87.87707, 42.986622 ], [ -87.877154, 42.984515 ], [ -87.879501, 42.984548 ], [ -87.879464, 42.985452 ], [ -87.881833, 42.985133 ], [ -87.883435, 42.988165 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.546 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.02770141443898, 43.067280230356687 ], [ -88.028662352852237, 43.06725037386969 ], [ -88.02971013259355, 43.067240979281898 ], [ -88.030711817326846, 43.067223312331997 ], [ -88.032069991658787, 43.067203689271459 ], [ -88.035051911152706, 43.067154829764682 ], [ -88.035802711614267, 43.067148271822191 ], [ -88.02770141443898, 43.067280230356687 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.677 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007423371550075, 43.069470001189444 ], [ -88.007427921240037, 43.069232918015203 ], [ -88.007426, 43.06947 ], [ -88.007423371550075, 43.069470001189444 ] ] ], [ [ [ -88.007439346447043, 43.06782304758876 ], [ -88.00743796967609, 43.067622235540043 ], [ -88.007440974118083, 43.06762219381315 ], [ -88.007439346447043, 43.06782304758876 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 73.013 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.025332, 43.14133 ], [ -88.019483, 43.140281 ], [ -88.018536, 43.140354 ], [ -88.016508, 43.141373 ], [ -88.015562, 43.140443 ], [ -88.016622, 43.139339 ], [ -88.015615, 43.134106 ], [ -88.015654, 43.134105 ], [ -88.025439, 43.134061 ], [ -88.025332, 43.14133 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 72.826 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.984558, 43.133938 ], [ -87.956397, 43.13406 ], [ -87.955216, 43.134803 ], [ -87.953405, 43.135394 ], [ -87.952449, 43.131355 ], [ -87.95189, 43.126511 ], [ -87.956115, 43.126534 ], [ -87.95973, 43.126566 ], [ -87.962144, 43.126587 ], [ -87.962577, 43.131217 ], [ -87.965204, 43.12991 ], [ -87.967335, 43.129756 ], [ -87.967369, 43.126623 ], [ -87.966289, 43.124798 ], [ -87.967602, 43.119299 ], [ -87.976238, 43.119338 ], [ -87.980997, 43.119335 ], [ -87.98097, 43.129694 ], [ -87.985737, 43.133937 ], [ -87.984558, 43.133938 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 87.541 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.966289, 43.124798 ], [ -87.967369, 43.126623 ], [ -87.96333, 43.126598 ], [ -87.963495, 43.119196 ], [ -87.96627, 43.119293 ], [ -87.967602, 43.119299 ], [ -87.966289, 43.124798 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.205 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.962668, 43.108285 ], [ -87.961605, 43.108279 ], [ -87.96026, 43.106429 ], [ -87.957777, 43.106418 ], [ -87.956546, 43.106413 ], [ -87.95658, 43.104613 ], [ -87.957875, 43.104615 ], [ -87.962731, 43.104618 ], [ -87.962668, 43.108285 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 62.447 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.005997, 43.119525 ], [ -88.004081, 43.11946 ], [ -88.002214, 43.119544 ], [ -88.001018, 43.119533 ], [ -88.001989, 43.117651 ], [ -87.999659, 43.113994 ], [ -88.001943, 43.112672 ], [ -88.002553, 43.11232 ], [ -88.003529, 43.112218 ], [ -88.006052, 43.112279 ], [ -88.005997, 43.119525 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.29 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.997297, 43.119499 ], [ -87.994773, 43.119467 ], [ -87.991096, 43.119406 ], [ -87.991043, 43.116254 ], [ -87.991174, 43.112097 ], [ -87.993607, 43.112127 ], [ -87.994842, 43.112143 ], [ -87.996073, 43.112158 ], [ -87.996069, 43.114675 ], [ -87.997343, 43.116557 ], [ -87.997297, 43.119499 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 83.994 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.001018, 43.119533 ], [ -87.998528, 43.11951 ], [ -87.997297, 43.119499 ], [ -87.997343, 43.116557 ], [ -87.996069, 43.114675 ], [ -87.996073, 43.112158 ], [ -88.001452, 43.112246 ], [ -88.001943, 43.112672 ], [ -87.999659, 43.113994 ], [ -88.001989, 43.117651 ], [ -88.001018, 43.119533 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 81.329 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.981253, 43.112013 ], [ -87.976319, 43.111991 ], [ -87.976407, 43.105186 ], [ -87.976542, 43.104653 ], [ -87.981359, 43.104677 ], [ -87.981253, 43.112013 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.123 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.986308, 43.105665 ], [ -87.986191, 43.112036 ], [ -87.984953, 43.11203 ], [ -87.981253, 43.112013 ], [ -87.981359, 43.104677 ], [ -87.986487, 43.104713 ], [ -87.986308, 43.105665 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.075 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.037234831902779, 43.025160722109952 ], [ -88.037420842701977, 43.025165778539204 ], [ -88.037890714968285, 43.025188460160919 ], [ -88.038059729232586, 43.025200963110791 ], [ -88.038665505712743, 43.025258995373022 ], [ -88.039315635534734, 43.025334281708723 ], [ -88.039755761156258, 43.025388278573324 ], [ -88.040204858646348, 43.025450804131324 ], [ -88.040902720693524, 43.025563070935732 ], [ -88.041172385204661, 43.025608461523348 ], [ -88.041708072994993, 43.025699455932312 ], [ -88.041781268785499, 43.025714987658716 ], [ -88.041910906319032, 43.025742405648067 ], [ -88.042235527565339, 43.025814047264873 ], [ -88.037234831902779, 43.025160722109952 ] ] ], [ [ [ -88.042450648234151, 43.02586152227542 ], [ -88.042470497992582, 43.025865902897202 ], [ -88.04298477012324, 43.026006869874124 ], [ -88.043648376940141, 43.026203908852047 ], [ -88.044900937941975, 43.026650481400445 ], [ -88.045195482704102, 43.027930017842316 ], [ -88.045328622488697, 43.028508380561981 ], [ -88.045578496371334, 43.029593798294528 ], [ -88.04590439744311, 43.031009427434761 ], [ -88.045872, 43.03101 ], [ -88.044894, 43.026651 ], [ -88.042450648234151, 43.02586152227542 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 6.826 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.0306831399011, 43.025036066696032 ], [ -88.031610235384989, 43.02505184456485 ], [ -88.031855570394825, 43.025057950991325 ], [ -88.0306831399011, 43.025036066696032 ] ] ], [ [ [ -88.032515347571206, 43.0250702609369 ], [ -88.033785406801982, 43.025088827542618 ], [ -88.035381284052178, 43.02511776365975 ], [ -88.035398, 43.025124 ], [ -88.032515347571206, 43.0250702609369 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.691 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.998129219045637, 42.999045305980879 ], [ -87.998129201677941, 42.999046391937632 ], [ -87.997512436414283, 42.999050359576188 ], [ -87.997512444458863, 42.999049856591334 ], [ -87.998129219045637, 42.999045305980879 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.25 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007644964971576, 42.988276821160859 ], [ -88.007641329857279, 42.988276834251323 ], [ -88.00569998913619, 42.988291005326495 ], [ -88.005160494945159, 42.988296787957815 ], [ -88.003365142213198, 42.988310479739631 ], [ -88.002093896360122, 42.988320442282031 ], [ -88.002094, 42.988317 ], [ -88.007645, 42.988274 ], [ -88.007644964971576, 42.988276821160859 ] ] ], [ [ [ -88.001984332587767, 42.993234335822777 ], [ -88.001979777736196, 42.993752500746574 ], [ -88.001969253773794, 42.994130145010345 ], [ -88.001984332587767, 42.993234335822777 ] ] ], [ [ [ -88.001928602825942, 42.995656225346899 ], [ -88.001919883223806, 42.997383056455817 ], [ -88.0018992687028, 42.999013283600355 ], [ -88.00128188209483, 42.999017415745492 ], [ -88.001928602825942, 42.995656225346899 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.01 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017555930234238, 42.988240697210976 ], [ -88.017552120309034, 42.988240712008768 ], [ -88.015312482940089, 42.988249090409084 ], [ -88.012596790841144, 42.988258879772253 ], [ -88.009175556791959, 42.98827129906519 ], [ -88.007644964971576, 42.988276821160859 ], [ -88.007645, 42.988274 ], [ -88.0126, 42.988256 ], [ -88.017556, 42.988236 ], [ -88.017555930234238, 42.988240697210976 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 41.635 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942309, 43.011266 ], [ -87.940074, 43.010306 ], [ -87.933079, 43.010192 ], [ -87.933172, 43.008376 ], [ -87.942373, 43.008521 ], [ -87.942309, 43.011266 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.413 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947773, 43.045874 ], [ -87.942853, 43.045859 ], [ -87.942876, 43.041621 ], [ -87.947702, 43.041647 ], [ -87.947695, 43.043247 ], [ -87.947773, 43.045874 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 77.778 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947709, 43.04027 ], [ -87.947702, 43.041647 ], [ -87.942876, 43.041621 ], [ -87.942885, 43.04024 ], [ -87.942895, 43.03869 ], [ -87.947717, 43.0387 ], [ -87.947709, 43.04027 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 33.728 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942373, 43.008521 ], [ -87.933172, 43.008376 ], [ -87.933234, 43.006548 ], [ -87.94233, 43.006677 ], [ -87.94177, 43.007749 ], [ -87.942373, 43.008521 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 53.645 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957596, 43.014087 ], [ -87.955211, 43.014101 ], [ -87.952709, 43.014111 ], [ -87.952787, 43.01035 ], [ -87.952886, 43.006709 ], [ -87.957781, 43.006641 ], [ -87.957596, 43.014087 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 41.728 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.92619, 42.995549 ], [ -87.918909, 42.995609 ], [ -87.918931, 42.994685 ], [ -87.919003, 42.991958 ], [ -87.926276, 42.991938 ], [ -87.92619, 42.995549 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 53.65 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.924933254433725, 42.997637200834511 ], [ -87.924937720171513, 42.997445603618615 ], [ -87.924942485176899, 42.997404778733681 ], [ -87.924937123954933, 42.997441818884099 ], [ -87.92493324319679, 42.99763720084556 ], [ -87.918872, 42.997643 ], [ -87.918898, 42.996344 ], [ -87.918909, 42.995609 ], [ -87.92619, 42.995549 ], [ -87.926148, 42.997636 ], [ -87.924933254433725, 42.997637200834511 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.86 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.002093896360122, 42.988320442282031 ], [ -88.002067595015347, 42.988320648252177 ], [ -87.999890428608751, 42.988337684498688 ], [ -88.002067592568253, 42.988320651639832 ], [ -88.00205165380936, 42.98927775651012 ], [ -88.002031245355852, 42.990314472645366 ], [ -88.002030621374089, 42.990343006597932 ], [ -87.997677, 42.990355 ], [ -87.993912, 42.990555 ], [ -87.991628, 42.992427 ], [ -87.987708, 42.992044 ], [ -87.98777, 42.989341 ], [ -87.987791, 42.988414 ], [ -87.990006, 42.9884 ], [ -87.997729, 42.988352 ], [ -88.002094, 42.988317 ], [ -88.002093896360122, 42.988320442282031 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.495 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.990034, 42.99565 ], [ -87.982687, 42.995653 ], [ -87.982724, 42.993404 ], [ -87.982765, 42.991598 ], [ -87.985115, 42.992045 ], [ -87.986193, 42.989634 ], [ -87.98777, 42.989341 ], [ -87.987708, 42.992044 ], [ -87.991628, 42.992427 ], [ -87.990034, 42.99565 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 34.563 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.98777, 42.989341 ], [ -87.986193, 42.989634 ], [ -87.985115, 42.992045 ], [ -87.982765, 42.991598 ], [ -87.982724, 42.993404 ], [ -87.980785, 42.993693 ], [ -87.980121, 42.991909 ], [ -87.977778, 42.992044 ], [ -87.977852, 42.98842 ], [ -87.987791, 42.988414 ], [ -87.98777, 42.989341 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 26.022 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948191, 42.992282 ], [ -87.948205, 42.99589 ], [ -87.938386, 42.995716 ], [ -87.938439, 42.993422 ], [ -87.940236, 42.992188 ], [ -87.940455, 42.984801 ], [ -87.944617, 42.983998 ], [ -87.944629, 42.983041 ], [ -87.948233, 42.983113 ], [ -87.948191, 42.992282 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.11 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.940455, 42.984801 ], [ -87.940236, 42.992188 ], [ -87.938439, 42.993422 ], [ -87.938386, 42.995716 ], [ -87.937202, 42.995695 ], [ -87.93577, 42.995665 ], [ -87.933608, 42.995632 ], [ -87.933749, 42.992013 ], [ -87.933837, 42.988333 ], [ -87.933849, 42.984737 ], [ -87.933918, 42.981092 ], [ -87.940511, 42.98117 ], [ -87.940455, 42.984801 ] ], [ [ -87.938423026031444, 42.99336476599229 ], [ -87.934682502189787, 42.993620469724782 ], [ -87.934494301609845, 42.993635970699167 ], [ -87.938423026031444, 42.99336476599229 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.354 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942283, 42.981188 ], [ -87.940511, 42.98117 ], [ -87.933918, 42.981092 ], [ -87.933943, 42.977469 ], [ -87.942345, 42.977526 ], [ -87.942283, 42.981188 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 20.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942394, 42.97488 ], [ -87.942345, 42.977526 ], [ -87.933943, 42.977469 ], [ -87.933991, 42.973815 ], [ -87.94479, 42.973907 ], [ -87.942394, 42.97488 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 61.772 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.053696, 43.134183 ], [ -88.048903, 43.133795 ], [ -88.045273, 43.133874 ], [ -88.032611, 43.13398 ], [ -88.034613, 43.130546 ], [ -88.042027, 43.124629 ], [ -88.042814, 43.125197 ], [ -88.045425, 43.127118 ], [ -88.052188, 43.132245 ], [ -88.053696, 43.134183 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 69.854 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.056854, 43.126445 ], [ -88.055181, 43.13128 ], [ -88.055244, 43.133971 ], [ -88.053696, 43.134183 ], [ -88.052188, 43.132245 ], [ -88.045425, 43.127118 ], [ -88.042814, 43.125197 ], [ -88.055501, 43.124661 ], [ -88.055447, 43.126471 ], [ -88.056854, 43.126445 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.876 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946002114739983, 43.128188404842369 ], [ -87.945996654154825, 43.12817612753048 ], [ -87.946008865285606, 43.127731162266997 ], [ -87.946018490211344, 43.127533299460133 ], [ -87.946002114739983, 43.128188404842369 ] ] ], [ [ [ -87.946191802677149, 43.121365944719606 ], [ -87.946198616972623, 43.121131487105416 ], [ -87.946201, 43.121129 ], [ -87.946191802677149, 43.121365944719606 ] ] ], [ [ [ -87.940048790077313, 43.119028979555225 ], [ -87.94004892149934, 43.119032835161889 ], [ -87.937623642672534, 43.118991735714346 ], [ -87.937179063952939, 43.118985676031436 ], [ -87.936517352744943, 43.118974593446268 ], [ -87.934862884923646, 43.118943399835487 ], [ -87.934862, 43.11894 ], [ -87.936089, 43.118962 ], [ -87.940048790077313, 43.119028979555225 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.793 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946198616972623, 43.121131487105416 ], [ -87.946198713938884, 43.121128150804736 ], [ -87.946201, 43.121129 ], [ -87.946198616972623, 43.121131487105416 ] ] ], [ [ [ -87.945535529810911, 43.12088179713998 ], [ -87.945525317736383, 43.120881598231193 ], [ -87.945526401417368, 43.120848765441025 ], [ -87.945528, 43.120879 ], [ -87.945535529810911, 43.12088179713998 ] ] ], [ [ [ -87.945463111351614, 43.119651709966831 ], [ -87.945416757097533, 43.119650510579952 ], [ -87.945424414522336, 43.119354409889006 ], [ -87.945430371525106, 43.11912384692355 ], [ -87.944981189417547, 43.119116645432861 ], [ -87.944646606848863, 43.119110605476273 ], [ -87.944662350108516, 43.11856198968708 ], [ -87.943800914673787, 43.11854743092195 ], [ -87.943810331939858, 43.118218259532703 ], [ -87.945008792113697, 43.118238511270249 ], [ -87.945035551112539, 43.117305860677632 ], [ -87.945082284264487, 43.117306649992912 ], [ -87.945041, 43.117385 ], [ -87.945435, 43.11912 ], [ -87.945463111351614, 43.119651709966831 ] ] ], [ [ [ -87.946023208912251, 43.115520889061798 ], [ -87.946023490368944, 43.115511081486382 ], [ -87.945093884318496, 43.115495665373892 ], [ -87.943889268983568, 43.115475391574265 ], [ -87.943918797163633, 43.114447763187506 ], [ -87.943942429539959, 43.113625179958923 ], [ -87.943954410011187, 43.113208233275891 ], [ -87.943957905075948, 43.113208291758468 ], [ -87.943893, 43.115459 ], [ -87.94603, 43.115508 ], [ -87.946023208912251, 43.115520889061798 ] ] ], [ [ [ -87.944010287553837, 43.113209168256525 ], [ -87.944553466886177, 43.113218255674582 ], [ -87.944552486408796, 43.113252389792727 ], [ -87.944010287553837, 43.113209168256525 ] ] ], [ [ [ -87.945748444886846, 43.113347716649926 ], [ -87.945779685366617, 43.112259304144466 ], [ -87.945655446695923, 43.112263224950311 ], [ -87.945783, 43.112256 ], [ -87.945752, 43.113348 ], [ -87.945748444886846, 43.113347716649926 ] ] ], [ [ [ -87.945226234617692, 43.11228753558099 ], [ -87.945180308382149, 43.112296470963841 ], [ -87.945066266174138, 43.11231866365398 ], [ -87.944540378497294, 43.112371356658741 ], [ -87.943981237247129, 43.112362063373332 ], [ -87.943982, 43.112358 ], [ -87.945226234617692, 43.11228753558099 ] ] ], [ [ [ -87.943978265742416, 43.112377893309635 ], [ -87.94396087310507, 43.112983303875758 ], [ -87.943864921670126, 43.112981699162546 ], [ -87.943978265742416, 43.112377893309635 ] ] ], [ [ [ -87.943403379816644, 43.115436992935621 ], [ -87.943402519383369, 43.115466921618783 ], [ -87.941381618460795, 43.115432736064463 ], [ -87.939433659670414, 43.115399750860377 ], [ -87.93902457951944, 43.115564216642305 ], [ -87.938867305550502, 43.115390155059487 ], [ -87.938499775040498, 43.115383925140861 ], [ -87.938497, 43.115381 ], [ -87.943403379816644, 43.115436992935621 ] ] ], [ [ [ -87.940050998920512, 43.117021168614947 ], [ -87.940052775265187, 43.117023035998898 ], [ -87.940050995091511, 43.117028860715749 ], [ -87.940050998920512, 43.117021168614947 ] ] ], [ [ [ -87.940050666480957, 43.117689130500857 ], [ -87.94009408931187, 43.117749342917385 ], [ -87.940050609292115, 43.117804062835539 ], [ -87.940050666480957, 43.117689130500857 ] ] ], [ [ [ -87.940050370682101, 43.118283674117976 ], [ -87.940067930230697, 43.118377608762692 ], [ -87.940050273523596, 43.11847900044534 ], [ -87.940050370682101, 43.118283674117976 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 28.798 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.934862884923646, 43.118943399835487 ], [ -87.934834595360911, 43.118942866250997 ], [ -87.934185736769791, 43.118931188458191 ], [ -87.933790847809803, 43.117988653903154 ], [ -87.933736608479151, 43.117760466577778 ], [ -87.933143270174511, 43.115264311792842 ], [ -87.933251, 43.115266 ], [ -87.934862, 43.11894 ], [ -87.934862884923646, 43.118943399835487 ] ] ], [ [ [ -87.929561202181304, 43.11520812027171 ], [ -87.927331693772643, 43.115176852798655 ], [ -87.927330602804332, 43.115216395529494 ], [ -87.927326, 43.115173 ], [ -87.929561202181304, 43.11520812027171 ] ] ], [ [ [ -87.927463836990896, 43.116472506858528 ], [ -87.927769048863567, 43.116676566960024 ], [ -87.92776234666826, 43.116919552899802 ], [ -87.927738697294174, 43.117776782606256 ], [ -87.927710524117728, 43.118798087072832 ], [ -87.927463836990896, 43.116472506858528 ] ] ], [ [ [ -87.927710141122205, 43.118811970863128 ], [ -87.927710073235431, 43.118814431794128 ], [ -87.92665749501802, 43.118795466367182 ], [ -87.927710141122205, 43.118811970863128 ] ] ], [ [ [ -87.926248924773276, 43.118789057759784 ], [ -87.925281829872006, 43.118776673946343 ], [ -87.924124162219798, 43.118761841993013 ], [ -87.922965083716591, 43.118746981092926 ], [ -87.920883134432955, 43.118720254813852 ], [ -87.920880948641809, 43.118704722974798 ], [ -87.926248924773276, 43.118789057759784 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 1.373 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.882699902723715, 43.081931654435671 ], [ -87.882684643385119, 43.081931642502894 ], [ -87.880228881895164, 43.081928934417945 ], [ -87.877726152918882, 43.081924931850907 ], [ -87.876566341804065, 43.081924409398226 ], [ -87.875409643360555, 43.081923871493487 ], [ -87.874264175338169, 43.081923334388613 ], [ -87.872905383385657, 43.081923131857096 ], [ -87.872905, 43.081919 ], [ -87.875455, 43.081921 ], [ -87.8827, 43.081928 ], [ -87.882699902723715, 43.081931654435671 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 71.429 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957685, 43.041665 ], [ -87.955204, 43.041668 ], [ -87.955206, 43.040788 ], [ -87.952922, 43.041661 ], [ -87.947702, 43.041647 ], [ -87.947709, 43.04027 ], [ -87.957691, 43.040301 ], [ -87.957685, 43.041665 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 30.823 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987523682485062, 43.043691316418879 ], [ -87.987523696171138, 43.043700136969555 ], [ -87.987523987737362, 43.043886346683898 ], [ -87.987524752414501, 43.044219337605611 ], [ -87.987406759395171, 43.044284937350085 ], [ -87.987419654384411, 43.044372610747764 ], [ -87.987431115581487, 43.046578225708735 ], [ -87.987347, 43.044206 ], [ -87.987523682485062, 43.043691316418879 ] ] ], [ [ [ -87.987453322345743, 43.047204461747882 ], [ -87.987538455761509, 43.047803656157797 ], [ -87.987547749525461, 43.049867150573256 ], [ -87.987453322345743, 43.047204461747882 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 80.231 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957691, 43.040301 ], [ -87.947709, 43.04027 ], [ -87.947717, 43.0387 ], [ -87.950365, 43.038718 ], [ -87.953978, 43.038742 ], [ -87.957698, 43.038767 ], [ -87.957691, 43.040301 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.087 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.962718898593891, 43.012315537983781 ], [ -87.962717531251073, 43.012315557198207 ], [ -87.962719, 43.012312 ], [ -87.962718898593891, 43.012315537983781 ] ] ], [ [ [ -87.962715665711457, 43.01232007539268 ], [ -87.962689133761288, 43.013257159582608 ], [ -87.966551791190014, 43.013237792429003 ], [ -87.966700901920575, 43.014322168673296 ], [ -87.967507813375775, 43.014315486434384 ], [ -87.96748681163227, 43.01594330604626 ], [ -87.967495391969223, 43.016849019906239 ], [ -87.961855, 43.01688 ], [ -87.961854951369943, 43.016881393221183 ], [ -87.96182954743395, 43.016881497526256 ], [ -87.961796109746544, 43.017702123955054 ], [ -87.961776575909482, 43.018181543761102 ], [ -87.961743212457534, 43.0190002052233 ], [ -87.957717, 43.019022 ], [ -87.958823, 43.016911 ], [ -87.958832, 43.01408 ], [ -87.961996, 43.014063 ], [ -87.962715665711457, 43.01232007539268 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 64.66 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.955119, 43.019043 ], [ -87.952583, 43.019054 ], [ -87.952709, 43.014111 ], [ -87.955211, 43.014101 ], [ -87.955119, 43.019043 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 40.813 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.958823, 43.016911 ], [ -87.957717, 43.019022 ], [ -87.955119, 43.019043 ], [ -87.955211, 43.014101 ], [ -87.957596, 43.014087 ], [ -87.958832, 43.01408 ], [ -87.958823, 43.016911 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 57.654 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017547, 43.082506 ], [ -88.012434, 43.082565 ], [ -88.007319, 43.082623 ], [ -88.00736, 43.077925 ], [ -88.017532, 43.081206 ], [ -88.017547, 43.082506 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 44.382 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017532, 43.081206 ], [ -88.00736, 43.077925 ], [ -88.007383, 43.075321 ], [ -88.01366, 43.07525 ], [ -88.014898, 43.075236 ], [ -88.017462, 43.075206 ], [ -88.017526, 43.080658 ], [ -88.017532, 43.081206 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 96.953 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942195, 43.082458 ], [ -87.941103, 43.082437 ], [ -87.939694, 43.08241 ], [ -87.939775, 43.077688 ], [ -87.938756, 43.076879 ], [ -87.942278, 43.076936 ], [ -87.942195, 43.082458 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.595 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.94718, 43.081147 ], [ -87.947137, 43.083506 ], [ -87.945897, 43.082538 ], [ -87.944662, 43.081566 ], [ -87.944752, 43.076975 ], [ -87.947259, 43.077015 ], [ -87.94718, 43.081147 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.939694, 43.08241 ], [ -87.937215, 43.082363 ], [ -87.937331, 43.076834 ], [ -87.938756, 43.076879 ], [ -87.939775, 43.077688 ], [ -87.939694, 43.08241 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.758 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.970583283395115, 42.976103336725551 ], [ -87.970660217935119, 42.976103290455498 ], [ -87.970614528786058, 42.978512567382623 ], [ -87.970583283395115, 42.976103336725551 ] ] ], [ [ [ -87.970612377675337, 42.97862599715917 ], [ -87.970612324525604, 42.978628799783415 ], [ -87.969723656556411, 42.978625296708991 ], [ -87.970612377675337, 42.97862599715917 ] ] ], [ [ [ -87.967964532211994, 42.984725629013056 ], [ -87.967961505715678, 42.984887996922581 ], [ -87.967958856189767, 42.984979394690477 ], [ -87.967964532211994, 42.984725629013056 ] ] ], [ [ [ -87.967942281179901, 42.985720429119503 ], [ -87.968591434126424, 42.985718801089789 ], [ -87.968590474373784, 42.985765632750109 ], [ -87.967942, 42.985733 ], [ -87.967942281179901, 42.985720429119503 ] ] ], [ [ [ -87.97091821181067, 42.985882739371945 ], [ -87.971429939818378, 42.985572612845324 ], [ -87.971830224135473, 42.985928608945194 ], [ -87.97091821181067, 42.985882739371945 ] ] ], [ [ [ -87.971833632070513, 42.985931639795844 ], [ -87.971834406173471, 42.98593232824507 ], [ -87.96990409461398, 42.98709970151593 ], [ -87.969902, 42.987099 ], [ -87.971833632070513, 42.985931639795844 ] ] ], [ [ [ -87.970804757138438, 42.987401341106384 ], [ -87.97080761081574, 42.987266775664509 ], [ -87.971110489539143, 42.987083722111805 ], [ -87.971101649121394, 42.987500770558569 ], [ -87.970804757138438, 42.987401341106384 ] ] ], [ [ [ -87.971173038299241, 42.987524678709121 ], [ -87.971400493778589, 42.987525164232423 ], [ -87.97141337824975, 42.986900664528804 ], [ -87.971666560164849, 42.98674764833553 ], [ -87.971934728029126, 42.986586639677789 ], [ -87.972729236359143, 42.986106732022634 ], [ -87.972927654683176, 42.985984161208862 ], [ -87.974177929274276, 42.985225495359977 ], [ -87.975442780756325, 42.984466456813912 ], [ -87.97612235521899, 42.984058318915821 ], [ -87.975758334394669, 42.983731964171547 ], [ -87.975931715551127, 42.983627567543643 ], [ -87.975908017362158, 42.983606353384928 ], [ -87.975994706514129, 42.983554155825814 ], [ -87.976018404712832, 42.983575369966495 ], [ -87.976798607498438, 42.983105590625016 ], [ -87.977029775866413, 42.982966396339457 ], [ -87.977389518517953, 42.983288433867372 ], [ -87.977882434523124, 42.982989186969412 ], [ -87.972110756553619, 42.987017748349466 ], [ -87.971660853154759, 42.987016751941958 ], [ -87.971654078841382, 42.987336469158002 ], [ -87.971404, 42.987511 ], [ -87.971648087544608, 42.987619225858289 ], [ -87.971646729508635, 42.987683315722009 ], [ -87.971173038299241, 42.987524678709121 ] ] ], [ [ [ -87.980134370052525, 42.981606606936239 ], [ -87.980141669535016, 42.981156987523121 ], [ -87.980149878236389, 42.980675858769615 ], [ -87.981078751267475, 42.980682083911688 ], [ -87.980137, 42.981605 ], [ -87.980134370052525, 42.981606606936239 ] ] ], [ [ [ -87.981086920737866, 42.980674077678373 ], [ -87.981086925890139, 42.980673717312428 ], [ -87.981087, 42.980674 ], [ -87.981086920737866, 42.980674077678373 ] ] ], [ [ [ -87.979987043507549, 42.976477980969804 ], [ -87.979985988827664, 42.976477984642415 ], [ -87.979986, 42.976474 ], [ -87.979987043507549, 42.976477980969804 ] ] ], [ [ [ -87.978041768274522, 42.97754516559845 ], [ -87.97803997557493, 42.977545167748886 ], [ -87.978040020119252, 42.977542562080849 ], [ -87.978041768274522, 42.97754516559845 ] ] ], [ [ [ -87.975605076732705, 42.97573597512072 ], [ -87.975577587334499, 42.97740086963055 ], [ -87.9756, 42.975736 ], [ -87.975605076732705, 42.97573597512072 ] ] ], [ [ [ -87.975557243553794, 42.978632963897013 ], [ -87.975557185861092, 42.978636457948298 ], [ -87.973667650270599, 42.978632086470981 ], [ -87.973677261787643, 42.978614880028061 ], [ -87.975557243553794, 42.978632963897013 ] ] ], [ [ [ -87.970669544433065, 42.974999906216304 ], [ -87.970154124192277, 42.975000055601683 ], [ -87.970172850370815, 42.974487830956171 ], [ -87.970260393893824, 42.974487783292325 ], [ -87.970161, 42.974982 ], [ -87.97067, 42.974981 ], [ -87.970669544433065, 42.974999906216304 ] ] ], [ [ [ -87.972236531906532, 42.987880833932039 ], [ -87.972238122244605, 42.987880837307529 ], [ -87.972243, 42.987883 ], [ -87.972236531906532, 42.987880833932039 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 29.73 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949241927135859, 42.937619888081244 ], [ -87.951304701329178, 42.937621838880226 ], [ -87.952565947854239, 42.937624467816256 ], [ -87.955461893648589, 42.937628377893745 ], [ -87.955479776437784, 42.937628401797902 ], [ -87.955443, 42.938188 ], [ -87.954306, 42.941742 ], [ -87.953957, 42.943686 ], [ -87.949089, 42.943681 ], [ -87.949241927135859, 42.937619888081244 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 23.709 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.955479776437784, 42.937628401797902 ], [ -87.957859448932609, 42.937631557813042 ], [ -87.9591175579055, 42.937633208378493 ], [ -87.960341708123806, 42.937635147365484 ], [ -87.963084507954306, 42.937639438727594 ], [ -87.96406455357878, 42.937640953628652 ], [ -87.96404874467278, 42.938369130940387 ], [ -87.964425764186331, 42.938368083050129 ], [ -87.964658, 42.938846 ], [ -87.962722, 42.938766 ], [ -87.957869, 42.941592 ], [ -87.954306, 42.941742 ], [ -87.955443, 42.938188 ], [ -87.955479776437784, 42.937628401797902 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 1.528 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964598474896917, 42.941226700661069 ], [ -87.964562488864317, 42.942465573568718 ], [ -87.964517185120982, 42.943682707570098 ], [ -87.964497196957581, 42.944877143830965 ], [ -87.963303480181381, 42.943920476394389 ], [ -87.963324467452694, 42.943290060978903 ], [ -87.962756659412435, 42.943288622410627 ], [ -87.962760251029039, 42.943157606875808 ], [ -87.962366853329783, 42.943156615111562 ], [ -87.96228740170146, 42.943098458218444 ], [ -87.962281961842649, 42.943101778223813 ], [ -87.962276, 42.943097 ], [ -87.961755421841175, 42.943143063495413 ], [ -87.961688640698569, 42.943099572046236 ], [ -87.961604040012674, 42.943154689325752 ], [ -87.961468844343599, 42.943154345770679 ], [ -87.961468384146471, 42.943168461060807 ], [ -87.960219, 42.943279 ], [ -87.960218901193926, 42.943282153948125 ], [ -87.960215108197673, 42.943282144240094 ], [ -87.960202985543461, 42.943699831987999 ], [ -87.96016856479801, 42.944874999179376 ], [ -87.958058, 42.944871 ], [ -87.958043187338561, 42.944850823103017 ], [ -87.9580559884797, 42.94423153742202 ], [ -87.95758853624406, 42.944231517847605 ], [ -87.957191, 42.94369 ], [ -87.953957, 42.943686 ], [ -87.954306, 42.941742 ], [ -87.957869, 42.941592 ], [ -87.962722, 42.938766 ], [ -87.964658, 42.938846 ], [ -87.964598474896917, 42.941226700661069 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 67.442 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.99352278816977, 43.068034987884381 ], [ -87.993522770716183, 43.068038036663381 ], [ -87.993525481865461, 43.068038036084758 ], [ -87.993348, 43.069078 ], [ -87.992048, 43.07052 ], [ -87.988978, 43.068914 ], [ -87.988626, 43.069862 ], [ -87.978639, 43.069794 ], [ -87.978671, 43.067978 ], [ -87.99352278816977, 43.068034987884381 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 61.257 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.989066489747188, 43.06435666545336 ], [ -87.989197860818948, 43.064357089883543 ], [ -87.989176969962159, 43.066172976739132 ], [ -87.97869, 43.066124 ], [ -87.978711, 43.064303 ], [ -87.981902, 43.064323 ], [ -87.987504, 43.064376 ], [ -87.989066489747188, 43.06435666545336 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 78.271 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.989176969962159, 43.066172976739132 ], [ -87.989176732941772, 43.066193579033758 ], [ -87.989164414600054, 43.067619265442993 ], [ -87.989321582826278, 43.067619774312298 ], [ -87.989321691895782, 43.067609168325987 ], [ -87.990773398600226, 43.067580550038514 ], [ -87.990848846951323, 43.067580792616674 ], [ -87.992083769684641, 43.067584755261734 ], [ -87.992098052053279, 43.066186294992775 ], [ -87.992098756906856, 43.066185507160576 ], [ -87.993533349966185, 43.066190095324011 ], [ -87.99352278816977, 43.068034987884381 ], [ -87.978671, 43.067978 ], [ -87.97869, 43.066124 ], [ -87.989176969962159, 43.066172976739132 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.806 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.991988, 43.071679 ], [ -87.980935, 43.071656 ], [ -87.978606, 43.071635 ], [ -87.978639, 43.069794 ], [ -87.988626, 43.069862 ], [ -87.988978, 43.068914 ], [ -87.992048, 43.07052 ], [ -87.991988, 43.071679 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.364 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.974942, 43.067952 ], [ -87.974874, 43.071607 ], [ -87.972368, 43.071587 ], [ -87.972436, 43.066097 ], [ -87.974969, 43.066107 ], [ -87.974942, 43.067952 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 96.076 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977479, 43.06797 ], [ -87.974942, 43.067952 ], [ -87.974969, 43.066107 ], [ -87.972436, 43.066097 ], [ -87.972462, 43.064275 ], [ -87.974995, 43.064285 ], [ -87.97752, 43.064295 ], [ -87.977479, 43.06797 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.542 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.97869, 43.066124 ], [ -87.978671, 43.067978 ], [ -87.978639, 43.069794 ], [ -87.978606, 43.071635 ], [ -87.977404, 43.071624 ], [ -87.974874, 43.071607 ], [ -87.974942, 43.067952 ], [ -87.977479, 43.06797 ], [ -87.97752, 43.064295 ], [ -87.978711, 43.064303 ], [ -87.97869, 43.066124 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.679 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937481, 43.067798 ], [ -87.933249, 43.06774 ], [ -87.93255, 43.06773 ], [ -87.932608, 43.06408 ], [ -87.937542, 43.064157 ], [ -87.937481, 43.067798 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.525 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957386, 43.069726 ], [ -87.95736, 43.071558 ], [ -87.953948, 43.071565 ], [ -87.954, 43.067906 ], [ -87.957412, 43.067904 ], [ -87.957386, 43.069726 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.428 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987552025448551, 43.057119067302978 ], [ -87.987552015762788, 43.057122212635726 ], [ -87.98754664819289, 43.058866337989443 ], [ -87.987540984353885, 43.060706472651113 ], [ -87.987520796432264, 43.062537809533978 ], [ -87.987502719331815, 43.064351603269756 ], [ -87.987504265635124, 43.064351608285364 ], [ -87.987504, 43.064376 ], [ -87.981902, 43.064323 ], [ -87.981918, 43.062498 ], [ -87.985278, 43.06252 ], [ -87.985296, 43.060693 ], [ -87.9853, 43.05717 ], [ -87.987552025448551, 43.057119067302978 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 91.735 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.981934, 43.060678 ], [ -87.981918, 43.062498 ], [ -87.981902, 43.064323 ], [ -87.978711, 43.064303 ], [ -87.978752, 43.060663 ], [ -87.978768, 43.059294 ], [ -87.981931, 43.059308 ], [ -87.981934, 43.060678 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.554 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.978802, 43.051579 ], [ -87.972464, 43.051541 ], [ -87.972451, 43.052903 ], [ -87.971938, 43.052666 ], [ -87.972078, 43.048809 ], [ -87.973032, 43.048781 ], [ -87.978817, 43.049096 ], [ -87.978802, 43.051579 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 28.466 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.978799, 43.052932 ], [ -87.975936, 43.053082 ], [ -87.976151, 43.055195 ], [ -87.972275, 43.054956 ], [ -87.971946, 43.05294 ], [ -87.971938, 43.052666 ], [ -87.972451, 43.052903 ], [ -87.972464, 43.051541 ], [ -87.978802, 43.051579 ], [ -87.978799, 43.052932 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 66.829 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.909618, 43.063887 ], [ -87.905342, 43.063853 ], [ -87.90536, 43.062048 ], [ -87.905377, 43.060233 ], [ -87.909653, 43.060254 ], [ -87.909618, 43.063887 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 56.702 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.90968, 43.059073 ], [ -87.909653, 43.060254 ], [ -87.905377, 43.060233 ], [ -87.905338, 43.056453 ], [ -87.909721, 43.056454 ], [ -87.90968, 43.059073 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 29.538 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.905342, 43.063853 ], [ -87.900402, 43.063821 ], [ -87.897889, 43.063807 ], [ -87.89791, 43.062009 ], [ -87.90536, 43.062048 ], [ -87.905342, 43.063853 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 59.17 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.993525481865461, 43.068038036084758 ], [ -87.994809514168011, 43.068037754821859 ], [ -87.996195470364697, 43.068037435949471 ], [ -87.997426097159234, 43.068037142857271 ], [ -87.99742894346825, 43.068037150262775 ], [ -87.997371, 43.071266 ], [ -87.997298, 43.075364 ], [ -87.992382, 43.075363 ], [ -87.991511, 43.07461 ], [ -87.991988, 43.071679 ], [ -87.992048, 43.07052 ], [ -87.993348, 43.069078 ], [ -87.993525481865461, 43.068038036084758 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 6.265 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.86901283687655, 42.986556344872099 ], [ -87.869748580505586, 42.986113994213788 ], [ -87.869789, 42.986148 ], [ -87.86901283687655, 42.986556344872099 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.433 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.869748580505586, 42.986113994213788 ], [ -87.869759111819036, 42.98610766239905 ], [ -87.870131084200622, 42.985854910290954 ], [ -87.870909937638174, 42.986510557455887 ], [ -87.871084480986752, 42.986600754323597 ], [ -87.869789, 42.986148 ], [ -87.869748580505586, 42.986113994213788 ] ] ], [ [ [ -87.874513708545805, 42.98447967398517 ], [ -87.874513830731686, 42.984475757690724 ], [ -87.874555956664778, 42.982665199042984 ], [ -87.874595909643602, 42.980938275633129 ], [ -87.874639016128469, 42.980506886150941 ], [ -87.879348916735452, 42.980532928826612 ], [ -87.879662860708066, 42.980534282767813 ], [ -87.879649, 42.980536 ], [ -87.874698, 42.980511 ], [ -87.874599, 42.980935 ], [ -87.874516, 42.984478 ], [ -87.874513708545805, 42.98447967398517 ] ] ], [ [ [ -87.883388813057977, 42.980555402688083 ], [ -87.88338944702906, 42.980555409765536 ], [ -87.88339, 42.980556 ], [ -87.883388813057977, 42.980555402688083 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.305 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.882942, 43.072814 ], [ -87.872147, 43.07277 ], [ -87.872324, 43.070963 ], [ -87.88297, 43.071001 ], [ -87.882942, 43.072814 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.617 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.88297, 43.071001 ], [ -87.872324, 43.070963 ], [ -87.873406, 43.067317 ], [ -87.883022, 43.067365 ], [ -87.88297, 43.071001 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.524 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.900352, 43.067463 ], [ -87.900323, 43.071108 ], [ -87.899112, 43.071101 ], [ -87.8978, 43.071092 ], [ -87.897889, 43.063807 ], [ -87.900402, 43.063821 ], [ -87.900352, 43.067463 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949823, 43.071572 ], [ -87.947341, 43.071577 ], [ -87.942395, 43.071497 ], [ -87.942457, 43.067854 ], [ -87.949875, 43.067908 ], [ -87.949823, 43.071572 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.094 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.914305, 43.051192 ], [ -87.914224, 43.056476 ], [ -87.909721, 43.056454 ], [ -87.905338, 43.056453 ], [ -87.905236, 43.055327 ], [ -87.904358, 43.054504 ], [ -87.906669, 43.052764 ], [ -87.907711, 43.051607 ], [ -87.909187, 43.050046 ], [ -87.910171, 43.04936 ], [ -87.911528, 43.048645 ], [ -87.912725, 43.047558 ], [ -87.913335, 43.046211 ], [ -87.91338, 43.045702 ], [ -87.914412, 43.045699 ], [ -87.914305, 43.051192 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.327 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.065620411975175, 43.125426902996409 ], [ -88.065266889778655, 43.125422240555345 ], [ -88.065144211382261, 43.125420624684978 ], [ -88.065120107290085, 43.126342689467585 ], [ -88.064986805446438, 43.130114034957515 ], [ -88.065100803450633, 43.129989407024738 ], [ -88.065050594759413, 43.131397682610945 ], [ -88.064974057890581, 43.133544191579453 ], [ -88.064933500105298, 43.134778803569013 ], [ -88.0649077561323, 43.135562417507572 ], [ -88.064737188126159, 43.140754149592368 ], [ -88.064605529355063, 43.141291884430139 ], [ -88.064399319319236, 43.14796718453794 ], [ -88.064404400795752, 43.147967042519461 ], [ -88.064403, 43.147993 ], [ -88.05887, 43.14802 ], [ -88.054871, 43.146986 ], [ -88.054993, 43.140111 ], [ -88.055475, 43.135978 ], [ -88.055244, 43.133971 ], [ -88.055181, 43.13128 ], [ -88.056854, 43.126445 ], [ -88.056933, 43.124636 ], [ -88.065604, 43.124501 ], [ -88.065621, 43.125416 ], [ -88.065620411975175, 43.125426902996409 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 88.613 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.025675, 43.126161 ], [ -88.020941, 43.126959 ], [ -88.012062, 43.119567 ], [ -88.014043, 43.119563 ], [ -88.025884, 43.119515 ], [ -88.025675, 43.126161 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 76.218 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.015756, 43.127864 ], [ -88.015775, 43.126842 ], [ -88.010882, 43.126855 ], [ -88.010911, 43.123216 ], [ -88.010914, 43.120398 ], [ -88.009781, 43.119571 ], [ -88.012062, 43.119567 ], [ -88.020941, 43.126959 ], [ -88.015756, 43.127864 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 88.713 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.015756, 43.127864 ], [ -88.005895, 43.12953 ], [ -88.005955, 43.126868 ], [ -88.005997, 43.119525 ], [ -88.009781, 43.119571 ], [ -88.010914, 43.120398 ], [ -88.010911, 43.123216 ], [ -88.010882, 43.126855 ], [ -88.015775, 43.126842 ], [ -88.015756, 43.127864 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.075 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.956252, 43.119156 ], [ -87.952612, 43.119109 ], [ -87.950593, 43.119278 ], [ -87.949034, 43.11917 ], [ -87.94626, 43.119135 ], [ -87.946469, 43.111819 ], [ -87.949946, 43.111854 ], [ -87.954001, 43.111895 ], [ -87.953915, 43.11554 ], [ -87.956345, 43.115593 ], [ -87.956252, 43.119156 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.235 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.959997, 43.115606 ], [ -87.959907, 43.119184 ], [ -87.956252, 43.119156 ], [ -87.956345, 43.115593 ], [ -87.957629, 43.113772 ], [ -87.960036, 43.113784 ], [ -87.959997, 43.115606 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.305 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.936607, 43.106504 ], [ -87.931653, 43.106452 ], [ -87.930935, 43.103779 ], [ -87.928998, 43.100426 ], [ -87.934833, 43.100606 ], [ -87.935065, 43.101005 ], [ -87.936688, 43.101529 ], [ -87.936607, 43.106504 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.232 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946503, 43.1104 ], [ -87.946469, 43.111819 ], [ -87.942378, 43.112216 ], [ -87.939118, 43.111714 ], [ -87.939221, 43.1083 ], [ -87.941592, 43.108326 ], [ -87.946543, 43.108381 ], [ -87.946503, 43.1104 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.766 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.941592, 43.108326 ], [ -87.939221, 43.1083 ], [ -87.939118, 43.111714 ], [ -87.937004, 43.111667 ], [ -87.937037, 43.104383 ], [ -87.941646, 43.104438 ], [ -87.941592, 43.108326 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 81.818 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.024721, 43.101695 ], [ -88.024681, 43.104968 ], [ -88.018549, 43.104981 ], [ -88.017195, 43.104984 ], [ -88.017301, 43.100749 ], [ -88.021606, 43.100685 ], [ -88.024145, 43.099568 ], [ -88.025801, 43.101049 ], [ -88.024721, 43.101695 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.736 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.011794, 43.104987 ], [ -88.00649, 43.104998 ], [ -88.00687, 43.10372 ], [ -88.007046, 43.099112 ], [ -88.009555, 43.099147 ], [ -88.011293, 43.100828 ], [ -88.011886, 43.10157 ], [ -88.011794, 43.104987 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 73.19 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017346, 43.09925 ], [ -88.015013, 43.099284 ], [ -88.011293, 43.100828 ], [ -88.009555, 43.099147 ], [ -88.007046, 43.099112 ], [ -88.007096, 43.097208 ], [ -88.016082, 43.097105 ], [ -88.017406, 43.097091 ], [ -88.017346, 43.09925 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 70.813 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.024145, 43.099568 ], [ -88.021606, 43.100685 ], [ -88.017301, 43.100749 ], [ -88.017346, 43.09925 ], [ -88.017406, 43.097091 ], [ -88.022524, 43.097036 ], [ -88.023413, 43.098833 ], [ -88.024145, 43.099568 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 83.381 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007096, 43.097208 ], [ -88.003136, 43.097228 ], [ -88.00302, 43.090006 ], [ -88.00415, 43.090011 ], [ -88.007235, 43.089993 ], [ -88.007096, 43.097208 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.488 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.003136, 43.097228 ], [ -87.99945, 43.097246 ], [ -87.999448, 43.090013 ], [ -88.00302, 43.090006 ], [ -88.003136, 43.097228 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.065 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.99945, 43.097246 ], [ -87.995683, 43.097259 ], [ -87.99445, 43.09726 ], [ -87.994602, 43.090033 ], [ -87.999448, 43.090013 ], [ -87.99945, 43.097246 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.194 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.986775, 43.096896 ], [ -87.985067, 43.097259 ], [ -87.976888, 43.097208 ], [ -87.977058, 43.089958 ], [ -87.977099, 43.088018 ], [ -87.980912, 43.088061 ], [ -87.9832, 43.088928 ], [ -87.98692, 43.090043 ], [ -87.986775, 43.096896 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.007 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.973135, 43.084722 ], [ -87.968469, 43.087884 ], [ -87.968527, 43.089902 ], [ -87.967007, 43.089884 ], [ -87.967235, 43.082507 ], [ -87.970897, 43.082529 ], [ -87.971048, 43.083051 ], [ -87.973135, 43.084722 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 87.304 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.975837, 43.087819 ], [ -87.97349, 43.089922 ], [ -87.971146, 43.089922 ], [ -87.968527, 43.089902 ], [ -87.968469, 43.087884 ], [ -87.973135, 43.084722 ], [ -87.974608, 43.085867 ], [ -87.975866, 43.086185 ], [ -87.975837, 43.087819 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.428 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.899495, 43.052966 ], [ -87.898125, 43.052958 ], [ -87.893757, 43.052938 ], [ -87.892328, 43.052932 ], [ -87.896962, 43.048078 ], [ -87.896899, 43.050505 ], [ -87.899654, 43.05053 ], [ -87.899495, 43.052966 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 85.1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933005, 43.019095 ], [ -87.926753, 43.019102 ], [ -87.926759, 43.01704 ], [ -87.927939, 43.017039 ], [ -87.933285, 43.017014 ], [ -87.933005, 43.019095 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 63.937 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926753, 43.019102 ], [ -87.922531, 43.019106 ], [ -87.922525, 43.017041 ], [ -87.926759, 43.01704 ], [ -87.926753, 43.019102 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 78.59 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.927939, 43.017039 ], [ -87.926759, 43.01704 ], [ -87.922525, 43.017041 ], [ -87.922635, 43.014141 ], [ -87.925453, 43.01414 ], [ -87.928026, 43.014227 ], [ -87.927939, 43.017039 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 46.053 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.961743212457534, 43.0190002052233 ], [ -87.961743105419302, 43.019002831664828 ], [ -87.961709633109464, 43.019824287603356 ], [ -87.961676689934663, 43.020632637560048 ], [ -87.961646641765697, 43.021370049640851 ], [ -87.952581, 43.021908 ], [ -87.952583, 43.019054 ], [ -87.955119, 43.019043 ], [ -87.957717, 43.019022 ], [ -87.961743212457534, 43.0190002052233 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.859 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.002198, 42.981999 ], [ -88.001572, 42.984055 ], [ -88.002125, 42.986824 ], [ -88.002094, 42.988317 ], [ -87.997729, 42.988352 ], [ -87.997838, 42.982019 ], [ -87.997854, 42.981081 ], [ -87.999307, 42.981071 ], [ -88.00338, 42.981045 ], [ -88.002198, 42.981999 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.043 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007645, 42.988274 ], [ -88.002094, 42.988317 ], [ -88.002125, 42.986824 ], [ -88.001572, 42.984055 ], [ -88.002198, 42.981999 ], [ -88.00338, 42.981045 ], [ -88.006466, 42.981025 ], [ -88.00781, 42.981016 ], [ -88.007645, 42.988274 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 60.801 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.961646641765697, 43.021370049640851 ], [ -87.961645412372803, 43.021400219875424 ], [ -87.962331530287074, 43.02135694590276 ], [ -87.962294, 43.02343 ], [ -87.95386, 43.023718 ], [ -87.952643, 43.023837 ], [ -87.952581, 43.021908 ], [ -87.961646641765697, 43.021370049640851 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.743 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.992098052053279, 43.066186294992775 ], [ -87.992098060122132, 43.066185504927731 ], [ -87.992098756906856, 43.066185507160576 ], [ -87.992098052053279, 43.066186294992775 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 8.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.00185499002491, 43.068039931011079 ], [ -88.002429155093111, 43.068040159252597 ], [ -88.002408667840172, 43.069465025413948 ], [ -88.002397, 43.069465 ], [ -88.001855, 43.068046 ], [ -88.00185499002491, 43.068039931011079 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 34.395 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.96640922435985, 43.012261052188045 ], [ -87.966409472997285, 43.012263617047743 ], [ -87.962718898593891, 43.012315537983781 ], [ -87.962719, 43.012312 ], [ -87.96640922435985, 43.012261052188045 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.86 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977562761481934, 43.003847567903875 ], [ -87.97756272990506, 43.003850442558942 ], [ -87.977466025815275, 43.003826614217502 ], [ -87.974791578089864, 43.002919001728351 ], [ -87.968523566153138, 43.000799666715089 ], [ -87.968505778914519, 43.002490300658479 ], [ -87.968509, 43.000788 ], [ -87.977562761481934, 43.003847567903875 ] ] ], [ [ [ -87.968501446933672, 43.00290204292267 ], [ -87.968501409674332, 43.00290558431093 ], [ -87.968408612606581, 43.002903164365151 ], [ -87.968501446933672, 43.00290204292267 ] ] ], [ [ [ -87.96112360575917, 43.002990932641573 ], [ -87.961100709813735, 43.004757127426714 ], [ -87.960983446837858, 43.0098144857797 ], [ -87.960976, 43.009814 ], [ -87.961047, 43.006616 ], [ -87.961118, 43.002991 ], [ -87.96112360575917, 43.002990932641573 ] ] ], [ [ [ -87.961046988316696, 43.009818630762034 ], [ -87.962744919874183, 43.009795419643083 ], [ -87.962743483529493, 43.009929284459751 ], [ -87.961046988316696, 43.009818630762034 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.916 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967235, 43.082507 ], [ -87.96316, 43.082514 ], [ -87.957194, 43.082523 ], [ -87.957216, 43.081127 ], [ -87.957247, 43.079115 ], [ -87.967296, 43.07912 ], [ -87.967235, 43.082507 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.115 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967334, 43.076992 ], [ -87.95728, 43.077021 ], [ -87.957334, 43.073368 ], [ -87.960925, 43.073365 ], [ -87.960895, 43.075203 ], [ -87.967366, 43.075192 ], [ -87.967334, 43.076992 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 73.09 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957744, 43.032098 ], [ -87.957726, 43.034788 ], [ -87.954035, 43.034779 ], [ -87.950421, 43.034771 ], [ -87.947742, 43.034781 ], [ -87.947754, 43.034019 ], [ -87.947754, 43.03286 ], [ -87.951341, 43.031623 ], [ -87.952722, 43.031485 ], [ -87.957749, 43.031485 ], [ -87.957744, 43.032098 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 82.316 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.953978, 43.038742 ], [ -87.950365, 43.038718 ], [ -87.950392, 43.037512 ], [ -87.950421, 43.034771 ], [ -87.954035, 43.034779 ], [ -87.953978, 43.038742 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.393 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957698, 43.038767 ], [ -87.953978, 43.038742 ], [ -87.954035, 43.034779 ], [ -87.957726, 43.034788 ], [ -87.957698, 43.038767 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 36.949 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957678, 43.043336 ], [ -87.955199, 43.043261 ], [ -87.953353, 43.043257 ], [ -87.952892, 43.043257 ], [ -87.947695, 43.043247 ], [ -87.947702, 43.041647 ], [ -87.952922, 43.041661 ], [ -87.955206, 43.040788 ], [ -87.955204, 43.041668 ], [ -87.957685, 43.041665 ], [ -87.957678, 43.043336 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.166 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957664, 43.045887 ], [ -87.947773, 43.045874 ], [ -87.947695, 43.043247 ], [ -87.952892, 43.043257 ], [ -87.953353, 43.043257 ], [ -87.955199, 43.043261 ], [ -87.957678, 43.043336 ], [ -87.957664, 43.045887 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 27.223 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.950276, 43.016943 ], [ -87.949107, 43.01907 ], [ -87.946408, 43.019085 ], [ -87.946412, 43.01701 ], [ -87.945028, 43.017014 ], [ -87.945052, 43.014165 ], [ -87.947766, 43.014147 ], [ -87.950328, 43.01412 ], [ -87.950276, 43.016943 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 30.558 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952583, 43.019054 ], [ -87.949107, 43.01907 ], [ -87.950276, 43.016943 ], [ -87.950328, 43.01412 ], [ -87.952709, 43.014111 ], [ -87.952583, 43.019054 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 74.816 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.936817, 43.017036 ], [ -87.936814, 43.019102 ], [ -87.933005, 43.019095 ], [ -87.933285, 43.017014 ], [ -87.932965, 43.016482 ], [ -87.932999, 43.014246 ], [ -87.933006, 43.014012 ], [ -87.934536, 43.014035 ], [ -87.936489, 43.015145 ], [ -87.938121, 43.016012 ], [ -87.936817, 43.017036 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 66.818 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.940878, 43.016006 ], [ -87.938121, 43.016012 ], [ -87.936489, 43.015145 ], [ -87.938153, 43.013538 ], [ -87.938167, 43.012385 ], [ -87.940915, 43.012424 ], [ -87.940878, 43.016006 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 28.333 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933296, 43.004724 ], [ -87.933234, 43.006548 ], [ -87.929688, 43.006489 ], [ -87.929832, 43.002877 ], [ -87.933369, 43.002934 ], [ -87.933296, 43.004724 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 74.263 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933369, 43.002934 ], [ -87.929832, 43.002877 ], [ -87.929906, 42.999214 ], [ -87.933538, 42.999273 ], [ -87.933369, 43.002934 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 65.319 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.929832, 43.002877 ], [ -87.926039, 43.002846 ], [ -87.926075, 43.001264 ], [ -87.926117, 42.999201 ], [ -87.929906, 42.999214 ], [ -87.929832, 43.002877 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.939 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.992382, 43.075363 ], [ -87.987324, 43.075361 ], [ -87.987359, 43.073512 ], [ -87.980905, 43.073483 ], [ -87.980935, 43.071656 ], [ -87.991988, 43.071679 ], [ -87.991511, 43.07461 ], [ -87.992382, 43.075363 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 76.076 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987134, 43.082668 ], [ -87.983294, 43.082629 ], [ -87.980974, 43.082606 ], [ -87.980796, 43.079295 ], [ -87.987324, 43.075361 ], [ -87.987134, 43.082668 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 79.952 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987324, 43.075361 ], [ -87.980796, 43.079295 ], [ -87.980905, 43.073483 ], [ -87.987359, 43.073512 ], [ -87.987324, 43.075361 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.453 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.031463130825898, 43.035804951070119 ], [ -88.031481313611621, 43.038358911329809 ], [ -88.031481353558405, 43.03836452914652 ], [ -88.0219, 43.038918 ], [ -88.021893, 43.038511 ], [ -88.021859055315886, 43.035938192922281 ], [ -88.023626840559203, 43.035923635972097 ], [ -88.023626813342474, 43.035921023416229 ], [ -88.02363, 43.035921 ], [ -88.023608498965459, 43.034162914792063 ], [ -88.023603342351279, 43.033667865139016 ], [ -88.023583166039742, 43.031590091942071 ], [ -88.023583049914933, 43.031586851567397 ], [ -88.027365, 43.031494 ], [ -88.028666, 43.03321 ], [ -88.030977, 43.033244 ], [ -88.031383, 43.035465 ], [ -88.031463130825898, 43.035804951070119 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 49.306 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.922525, 43.017041 ], [ -87.922531, 43.019106 ], [ -87.919669, 43.019109 ], [ -87.919808, 43.014141 ], [ -87.922635, 43.014141 ], [ -87.922525, 43.017041 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 65.066 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.919669, 43.019109 ], [ -87.917281, 43.019079 ], [ -87.916331, 43.017279 ], [ -87.916234, 43.014158 ], [ -87.918474, 43.014173 ], [ -87.919808, 43.014141 ], [ -87.919669, 43.019109 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 45.627 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.916234, 43.014158 ], [ -87.911173, 43.014158 ], [ -87.911168, 43.013641 ], [ -87.90851, 43.008589 ], [ -87.90834, 43.008273 ], [ -87.90713, 43.006497 ], [ -87.908885, 43.006501 ], [ -87.916251, 43.006355 ], [ -87.916234, 43.014158 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 20.433 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.919159, 42.984701 ], [ -87.919128, 42.986517 ], [ -87.91905, 42.99015 ], [ -87.919003, 42.991958 ], [ -87.918931, 42.994685 ], [ -87.918909, 42.995609 ], [ -87.918898, 42.996344 ], [ -87.916926, 42.995163 ], [ -87.912491, 42.996923 ], [ -87.912282, 42.996519 ], [ -87.911118, 42.99416 ], [ -87.910911, 42.993741 ], [ -87.909327, 42.990693 ], [ -87.909319, 42.988284 ], [ -87.909411, 42.988123 ], [ -87.909482, 42.981038 ], [ -87.909512, 42.976513 ], [ -87.914482, 42.97651 ], [ -87.9156, 42.979233 ], [ -87.915579, 42.981049 ], [ -87.915757, 42.98231 ], [ -87.919228, 42.98161 ], [ -87.919159, 42.984701 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 35.277 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948593626058766, 42.966400801465724 ], [ -87.94858910647902, 42.966652440521031 ], [ -87.948547320456527, 42.968859213870196 ], [ -87.948451202869194, 42.973935656714517 ], [ -87.948333, 42.973935 ], [ -87.94479, 42.973907 ], [ -87.933991, 42.973815 ], [ -87.929114, 42.97377 ], [ -87.929168, 42.966537 ], [ -87.938932, 42.966603 ], [ -87.948471, 42.966648 ], [ -87.948593626058766, 42.966400801465724 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.579 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.934984, 42.952045 ], [ -87.929307, 42.95201 ], [ -87.929211, 42.959269 ], [ -87.926532, 42.959252 ], [ -87.919454, 42.959213 ], [ -87.90966, 42.959234 ], [ -87.909714, 42.947833 ], [ -87.911932, 42.947397 ], [ -87.920051, 42.94471 ], [ -87.929418, 42.944756 ], [ -87.935192, 42.944783 ], [ -87.934984, 42.952045 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.755 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.047699506784511, 43.090213225851045 ], [ -88.047699494892456, 43.090216314632031 ], [ -88.047665366782553, 43.090216318460335 ], [ -88.047699506784511, 43.090213225851045 ] ] ], [ [ [ -88.04265714729631, 43.098056003472145 ], [ -88.042657278525255, 43.098065260652902 ], [ -88.037639971212243, 43.098064995813886 ], [ -88.03764, 43.098062 ], [ -88.04265714729631, 43.098056003472145 ] ] ], [ [ [ -88.037579104746541, 43.10439909948979 ], [ -88.037593796623455, 43.104409839112648 ], [ -88.037579, 43.10441 ], [ -88.037579104746541, 43.10439909948979 ] ] ], [ [ [ -88.038194354005753, 43.104403307488489 ], [ -88.038195761174833, 43.104255969396384 ], [ -88.040783122672593, 43.104238974503495 ], [ -88.040781824199641, 43.104375130268267 ], [ -88.038194354005753, 43.104403307488489 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 25.419 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.04720347484097, 43.033943677516248 ], [ -88.047182379118325, 43.034125414716506 ], [ -88.047121431865861, 43.034588899921019 ], [ -88.047056541573269, 43.034972210832258 ], [ -88.04720347484097, 43.033943677516248 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 6.908 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.035531614426318, 43.07479664586473 ], [ -88.035538831250221, 43.075016359120667 ], [ -88.036475190799024, 43.075009940745936 ], [ -88.037703258477421, 43.075003560450611 ], [ -88.038369046272734, 43.075000016668099 ], [ -88.037976, 43.075423 ], [ -88.037461945313893, 43.075512480503164 ], [ -88.035615962924908, 43.075522128542381 ], [ -88.035667924031443, 43.075679238738111 ], [ -88.035724375199862, 43.07580977935914 ], [ -88.035726906606243, 43.075814476404368 ], [ -88.034462211483429, 43.07603458724094 ], [ -88.03445015509304, 43.076008522705663 ], [ -88.033915391640576, 43.076129752388212 ], [ -88.033868, 43.076138 ], [ -88.033868390332927, 43.076140407337995 ], [ -88.033866051927959, 43.076140937441529 ], [ -88.033869804184604, 43.076149127120573 ], [ -88.034190101807013, 43.078124460871827 ], [ -88.034182567477245, 43.078129378462023 ], [ -88.034261295527813, 43.078298819748113 ], [ -88.034484967593926, 43.078298017385315 ], [ -88.034787959669444, 43.078462850890809 ], [ -88.034791394387696, 43.078705423198315 ], [ -88.035496568986403, 43.078701793320199 ], [ -88.035493449254432, 43.07856941679384 ], [ -88.035477053989027, 43.078518699084526 ], [ -88.035449335476883, 43.07848655290352 ], [ -88.035417879722658, 43.078464975288433 ], [ -88.035040125433056, 43.078242055953957 ], [ -88.034808089675394, 43.078084913344298 ], [ -88.035206589314612, 43.077786170389878 ], [ -88.035213, 43.077784 ], [ -88.035373616800811, 43.077871673050929 ], [ -88.035385709307974, 43.077879953447564 ], [ -88.035481728726225, 43.077941596431188 ], [ -88.035652356845532, 43.078044069749033 ], [ -88.035783626245347, 43.078117218142417 ], [ -88.03585816951427, 43.07815622736863 ], [ -88.035927334158742, 43.07817391726325 ], [ -88.036869393533394, 43.07868812315369 ], [ -88.036869404214386, 43.078694631510487 ], [ -88.036870274261091, 43.078694626985353 ], [ -88.03664, 43.08048 ], [ -88.032146, 43.080523 ], [ -88.032513, 43.078716 ], [ -88.028921, 43.078736 ], [ -88.027627, 43.078788 ], [ -88.027608, 43.076968 ], [ -88.027588, 43.075054 ], [ -88.030074, 43.075041 ], [ -88.035531614426318, 43.07479664586473 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.618 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.037744001054534, 43.084109022341529 ], [ -88.037743986681335, 43.084111608413451 ], [ -88.038399054581504, 43.084113560602759 ], [ -88.038385078457139, 43.08515523750021 ], [ -88.037738188764905, 43.085154206859436 ], [ -88.037737579603572, 43.085263952544281 ], [ -88.038384321409552, 43.085261970290041 ], [ -88.038381869907141, 43.085703820666978 ], [ -88.037735135699279, 43.085702942010272 ], [ -88.037733917242448, 43.085922436797752 ], [ -88.038389004512865, 43.085924389072737 ], [ -88.038373416925339, 43.086801121655313 ], [ -88.037728996657279, 43.086800411672854 ], [ -88.037724037073502, 43.087729974831113 ], [ -88.038240608599708, 43.087732174252075 ], [ -88.038232463998824, 43.089200372002999 ], [ -88.039383841822826, 43.089646159957958 ], [ -88.039401, 43.089753 ], [ -88.035391, 43.08975 ], [ -88.034855, 43.088648 ], [ -88.035442, 43.087 ], [ -88.032218, 43.085722 ], [ -88.032199, 43.084143 ], [ -88.035462, 43.084126 ], [ -88.037744001054534, 43.084109022341529 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.708 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.036870274261091, 43.078694626985353 ], [ -88.036915941106201, 43.078694389461546 ], [ -88.037907593421821, 43.078813306400939 ], [ -88.037908192263785, 43.078862539141049 ], [ -88.038736189176205, 43.078916630021013 ], [ -88.038738212323395, 43.078924451484887 ], [ -88.038503805467215, 43.082332166469371 ], [ -88.038408937998256, 43.082332703676514 ], [ -88.0384044618975, 43.083139302881051 ], [ -88.038394815098883, 43.08378125840774 ], [ -88.037745816593798, 43.083782366222046 ], [ -88.037744001054534, 43.084109022341529 ], [ -88.035462, 43.084126 ], [ -88.032199, 43.084143 ], [ -88.032176, 43.082334 ], [ -88.032146, 43.080523 ], [ -88.03664, 43.08048 ], [ -88.036870274261091, 43.078694626985353 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 33.822 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.032146, 43.080523 ], [ -88.032176, 43.082334 ], [ -88.032199, 43.084143 ], [ -88.032218, 43.085722 ], [ -88.02973, 43.084735 ], [ -88.027678, 43.084188 ], [ -88.027627, 43.078788 ], [ -88.028921, 43.078736 ], [ -88.032513, 43.078716 ], [ -88.032146, 43.080523 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 71.635 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947855, 43.010417 ], [ -87.947837, 43.011344 ], [ -87.942309, 43.011266 ], [ -87.942373, 43.008521 ], [ -87.943754, 43.009254 ], [ -87.947861, 43.0093 ], [ -87.947855, 43.010417 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 28.977 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952787, 43.01035 ], [ -87.947855, 43.010417 ], [ -87.947861, 43.0093 ], [ -87.947931, 43.006759 ], [ -87.952886, 43.006709 ], [ -87.952787, 43.01035 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 53.691 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952709, 43.014111 ], [ -87.950328, 43.01412 ], [ -87.947766, 43.014147 ], [ -87.947837, 43.011344 ], [ -87.947855, 43.010417 ], [ -87.952787, 43.01035 ], [ -87.952709, 43.014111 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 74.516 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947861, 43.0093 ], [ -87.943754, 43.009254 ], [ -87.942373, 43.008521 ], [ -87.94177, 43.007749 ], [ -87.94233, 43.006677 ], [ -87.947931, 43.006759 ], [ -87.947861, 43.0093 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 44.928 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947766, 43.014147 ], [ -87.945052, 43.014165 ], [ -87.942279, 43.014172 ], [ -87.942297, 43.012444 ], [ -87.942309, 43.011266 ], [ -87.947837, 43.011344 ], [ -87.947766, 43.014147 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 40.839 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952955, 43.003101 ], [ -87.948059, 43.003167 ], [ -87.948192, 43.000803 ], [ -87.948171, 42.999564 ], [ -87.950587, 42.999361 ], [ -87.95296, 42.99947 ], [ -87.952955, 43.003101 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 50.105 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952921, 43.00488 ], [ -87.952886, 43.006709 ], [ -87.947931, 43.006759 ], [ -87.948059, 43.003167 ], [ -87.952955, 43.003101 ], [ -87.952921, 43.00488 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 37.945 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948059, 43.003167 ], [ -87.947931, 43.006759 ], [ -87.94233, 43.006677 ], [ -87.943046, 43.005305 ], [ -87.944036, 43.003408 ], [ -87.944533, 43.003112 ], [ -87.948192, 43.000803 ], [ -87.948059, 43.003167 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 54.884 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926075, 43.001264 ], [ -87.918807, 43.00126 ], [ -87.918845, 42.99917 ], [ -87.926117, 42.999201 ], [ -87.926075, 43.001264 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 52.115 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926039, 43.002846 ], [ -87.925734, 43.006452 ], [ -87.918698, 43.006473 ], [ -87.918798, 43.001784 ], [ -87.918807, 43.00126 ], [ -87.926075, 43.001264 ], [ -87.926039, 43.002846 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.905 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.906997292876824, 42.999257012836907 ], [ -87.907055190703829, 42.996004093931717 ], [ -87.907034676062992, 42.99672493610818 ], [ -87.906755, 42.995205 ], [ -87.909966, 42.995195 ], [ -87.910636, 42.995202 ], [ -87.909355, 42.998195 ], [ -87.909113, 42.999278 ], [ -87.906997292876824, 42.999257012836907 ] ] ], [ [ [ -87.907034161360954, 42.996743021522867 ], [ -87.907034076442287, 42.996746005364116 ], [ -87.907014641481467, 42.997923501458963 ], [ -87.906992624223349, 42.999257033013841 ], [ -87.905973, 42.999267 ], [ -87.905967, 42.996749 ], [ -87.907034161360954, 42.996743021522867 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 23.713 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.906932492258335, 43.002897541536143 ], [ -87.90696479107612, 43.001083007432122 ], [ -87.906966, 43.001083 ], [ -87.909001, 43.001427 ], [ -87.908968, 43.002883 ], [ -87.908806, 43.002884 ], [ -87.90554, 43.004529 ], [ -87.902724, 43.001109 ], [ -87.906962466665306, 43.001083021721904 ], [ -87.906962407905439, 43.001086578423525 ], [ -87.906932492258335, 43.002897541536143 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 30.716 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.90696479107612, 43.001083007432122 ], [ -87.906997292876824, 42.999257012836907 ], [ -87.909113, 42.999278 ], [ -87.909001, 43.001427 ], [ -87.906966, 43.001083 ], [ -87.90696479107612, 43.001083007432122 ] ] ], [ [ [ -87.906992624223349, 42.999257033013841 ], [ -87.90699256821047, 42.999260425540974 ], [ -87.906979141466536, 43.000073697184575 ], [ -87.906962466665306, 43.001083021721904 ], [ -87.902724, 43.001109 ], [ -87.901328, 42.999437 ], [ -87.904831, 42.998758 ], [ -87.905973, 42.999267 ], [ -87.906992624223349, 42.999257033013841 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 22.032 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.907034676062992, 42.99672493610818 ], [ -87.907034161360954, 42.996743021522867 ], [ -87.905967, 42.996749 ], [ -87.905973, 42.999267 ], [ -87.904831, 42.998758 ], [ -87.901328, 42.999437 ], [ -87.899761, 42.997611 ], [ -87.89671, 42.995927 ], [ -87.896173, 42.995624 ], [ -87.900442, 42.995646 ], [ -87.904258, 42.995621 ], [ -87.906755, 42.995205 ], [ -87.907034676062992, 42.99672493610818 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.407 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.88778597816821, 43.000597740384016 ], [ -87.887791215572378, 43.000591761771155 ], [ -87.887645755056681, 43.000481412768927 ], [ -87.88758492774646, 43.000506983398552 ], [ -87.887274375414719, 43.00071974954691 ], [ -87.886528427691232, 42.999977104534779 ], [ -87.886019091905709, 42.999466563029706 ], [ -87.885027450073508, 42.998472549157235 ], [ -87.884885341381747, 42.998335577244276 ], [ -87.884692843515651, 42.99817927786075 ], [ -87.884515751543631, 42.998054596850359 ], [ -87.884153080153837, 42.997830508486871 ], [ -87.883855924333531, 42.997692404225177 ], [ -87.883720338492765, 42.997655304771605 ], [ -87.883669448420349, 42.997649916191286 ], [ -87.883665575558695, 42.997645850058788 ], [ -87.882756964317295, 42.996691964039485 ], [ -87.884367, 42.995831 ], [ -87.885533, 42.997074 ], [ -87.890232, 42.994438 ], [ -87.891366, 42.995504 ], [ -87.895132, 42.995083 ], [ -87.896173, 42.995624 ], [ -87.89671, 42.995927 ], [ -87.891301, 42.998086 ], [ -87.88778597816821, 43.000597740384016 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 0.906 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.895132, 42.995083 ], [ -87.891366, 42.995504 ], [ -87.890232, 42.994438 ], [ -87.885533, 42.997074 ], [ -87.884367, 42.995831 ], [ -87.883135, 42.994736 ], [ -87.887138, 42.992541 ], [ -87.887606, 42.992182 ], [ -87.890386, 42.992691 ], [ -87.893193, 42.99409 ], [ -87.895132, 42.995083 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 32.88 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.959285797250999, 42.976394799361572 ], [ -87.960117283454508, 42.976392178577541 ], [ -87.960134447834861, 42.975197771973519 ], [ -87.964796249798042, 42.975189515056634 ], [ -87.96479647179693, 42.975182013678754 ], [ -87.964801, 42.975182 ], [ -87.964834917563294, 42.973911088994079 ], [ -87.966182453692667, 42.973908681898457 ], [ -87.967746532606071, 42.973905863227444 ], [ -87.967746582739963, 42.973903000721755 ], [ -87.967747, 42.973903 ], [ -87.968245868496865, 42.972709881306457 ], [ -87.968246013788999, 42.972709880988738 ], [ -87.968223836140069, 42.973904832908985 ], [ -87.968210372664728, 42.97441588401994 ], [ -87.968301866882598, 42.974418865608307 ], [ -87.968875933922064, 42.974419482781748 ], [ -87.968874107185144, 42.974488522699176 ], [ -87.969962580446406, 42.974487942654065 ], [ -87.969945561872365, 42.974958951889107 ], [ -87.969940864573147, 42.975082429031083 ], [ -87.970566717975061, 42.975082251233374 ], [ -87.970549879624215, 42.976103356799179 ], [ -87.970583283395115, 42.976103336725551 ], [ -87.970614528786058, 42.978512567382623 ], [ -87.970612377675337, 42.97862599715917 ], [ -87.969723656556411, 42.978625296708991 ], [ -87.968098101211382, 42.978618871012088 ], [ -87.968030585603486, 42.981181832995681 ], [ -87.967964532211994, 42.984725629013056 ], [ -87.967958856189767, 42.984979394690477 ], [ -87.96793737381779, 42.985720441412809 ], [ -87.967942281179901, 42.985720429119503 ], [ -87.967942, 42.985733 ], [ -87.967886, 42.98835 ], [ -87.962973, 42.988404 ], [ -87.963117, 42.98119 ], [ -87.95819, 42.9812 ], [ -87.958262, 42.97784 ], [ -87.959285797250999, 42.976394799361572 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 26.16 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.962973, 42.988404 ], [ -87.960528, 42.988431 ], [ -87.958096, 42.988459 ], [ -87.958133, 42.985722 ], [ -87.95819, 42.9812 ], [ -87.963117, 42.98119 ], [ -87.962973, 42.988404 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 76.026 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.052907565300458, 43.10430005697318 ], [ -88.054757128245981, 43.104289189905558 ], [ -88.058065614780503, 43.104275283819632 ], [ -88.059904624995269, 43.104259106290947 ], [ -88.061076328966763, 43.104253859156088 ], [ -88.06311257860321, 43.104240474114512 ], [ -88.064147987955749, 43.104237449500111 ], [ -88.066021547116449, 43.104221642259446 ], [ -88.066012259082598, 43.104731195198099 ], [ -88.065791725269833, 43.111991649447759 ], [ -88.065733078539679, 43.113487724175243 ], [ -88.06569724624822, 43.114404684979455 ], [ -88.065600087425125, 43.116891555786601 ], [ -88.055346, 43.117126 ], [ -88.053997, 43.117263 ], [ -88.048395, 43.119003 ], [ -88.046658, 43.119321 ], [ -88.0471, 43.117517 ], [ -88.051354, 43.114385 ], [ -88.052377, 43.11007 ], [ -88.051864, 43.107903 ], [ -88.05328, 43.106314 ], [ -88.052907565300458, 43.10430005697318 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 51.663 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.042168886189643, 43.104371384308912 ], [ -88.042178620559397, 43.104371350654489 ], [ -88.043410365781824, 43.104360259431189 ], [ -88.044648022311534, 43.10435066637163 ], [ -88.045925017981546, 43.104343930625326 ], [ -88.045934917279453, 43.104343863617018 ], [ -88.045825, 43.112135 ], [ -88.045756, 43.119371 ], [ -88.040828, 43.11941 ], [ -88.041121, 43.107868 ], [ -88.042134, 43.107861 ], [ -88.042168886189643, 43.104371384308912 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 76.923 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.027518954182142, 43.104450909442768 ], [ -88.029384097543044, 43.104441021693738 ], [ -88.037579, 43.10441 ], [ -88.037593796623455, 43.104409839112648 ], [ -88.037613730722782, 43.104424410741323 ], [ -88.038194188791365, 43.104420606314228 ], [ -88.038194354005753, 43.104403307488489 ], [ -88.040781824199641, 43.104375130268267 ], [ -88.040781814271327, 43.10437617133497 ], [ -88.042168886189643, 43.104371384308912 ], [ -88.042134, 43.107861 ], [ -88.041121, 43.107868 ], [ -88.040828, 43.11941 ], [ -88.036239, 43.119461 ], [ -88.034929, 43.119569 ], [ -88.025934, 43.112576 ], [ -88.026038, 43.107789 ], [ -88.0275, 43.105447 ], [ -88.027511, 43.104956 ], [ -88.027518954182142, 43.104450909442768 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 78.004 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.966937, 43.042931 ], [ -87.964961, 43.045286 ], [ -87.965413, 43.048783 ], [ -87.957642, 43.048717 ], [ -87.957653, 43.047274 ], [ -87.957664, 43.045887 ], [ -87.957678, 43.043336 ], [ -87.957685, 43.041665 ], [ -87.957691, 43.040301 ], [ -87.957698, 43.038767 ], [ -87.965171, 43.038816 ], [ -87.966393, 43.039587 ], [ -87.967357, 43.040457 ], [ -87.966937, 43.042931 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 62.91 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.978768, 43.059294 ], [ -87.978752, 43.060663 ], [ -87.974688, 43.060645 ], [ -87.972513, 43.060636 ], [ -87.972428, 43.059261 ], [ -87.972436, 43.057106 ], [ -87.978778, 43.057137 ], [ -87.978768, 43.059294 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 87.304 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.978711, 43.064303 ], [ -87.97752, 43.064295 ], [ -87.974995, 43.064285 ], [ -87.972462, 43.064275 ], [ -87.972513, 43.060636 ], [ -87.974688, 43.060645 ], [ -87.978752, 43.060663 ], [ -87.978711, 43.064303 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.467 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.904358, 43.054504 ], [ -87.901169, 43.056687 ], [ -87.898018, 43.05711 ], [ -87.896263, 43.05728 ], [ -87.898023, 43.056913 ], [ -87.898125, 43.052958 ], [ -87.899495, 43.052966 ], [ -87.903341, 43.052986 ], [ -87.904358, 43.054504 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.704 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.982464060265528, 43.024128751528259 ], [ -87.982595027863809, 43.024128489958365 ], [ -87.982855211218379, 43.024098111409685 ], [ -87.983085183239538, 43.024075565870746 ], [ -87.983413643116293, 43.024048896680426 ], [ -87.983784278570866, 43.024028953944921 ], [ -87.986381680907172, 43.024050796492055 ], [ -87.986508502458705, 43.024053274125109 ], [ -87.986524333396943, 43.024053613190915 ], [ -87.98542, 43.026726 ], [ -87.985249, 43.027787 ], [ -87.992433, 43.02781 ], [ -87.99243, 43.029624 ], [ -87.992428, 43.030532 ], [ -87.992406, 43.031412 ], [ -87.991043, 43.032096 ], [ -87.989914, 43.032096 ], [ -87.988299, 43.030937 ], [ -87.986187, 43.031443 ], [ -87.986577, 43.030502 ], [ -87.982604, 43.030517 ], [ -87.982464060265528, 43.024128751528259 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.786 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.956115, 43.126534 ], [ -87.95189, 43.126511 ], [ -87.951202, 43.122801 ], [ -87.95065, 43.120071 ], [ -87.950593, 43.119278 ], [ -87.952612, 43.119109 ], [ -87.956252, 43.119156 ], [ -87.956115, 43.126534 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.722 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.95973, 43.126566 ], [ -87.956115, 43.126534 ], [ -87.956252, 43.119156 ], [ -87.959907, 43.119184 ], [ -87.95973, 43.126566 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.019 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.990887, 43.129518 ], [ -87.985984, 43.129485 ], [ -87.985873, 43.128892 ], [ -87.985948, 43.124781 ], [ -87.990945, 43.124857 ], [ -87.990887, 43.129518 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.990945, 43.124857 ], [ -87.985948, 43.124781 ], [ -87.986022, 43.12253 ], [ -87.988329, 43.123015 ], [ -87.988337, 43.119361 ], [ -87.991096, 43.119406 ], [ -87.990945, 43.124857 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.484 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.015654, 43.134105 ], [ -88.015615, 43.134106 ], [ -88.010722, 43.134122 ], [ -88.00567, 43.134149 ], [ -88.005895, 43.12953 ], [ -88.015756, 43.127864 ], [ -88.015654, 43.134105 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.829 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.025439, 43.134061 ], [ -88.015654, 43.134105 ], [ -88.015756, 43.127864 ], [ -88.020941, 43.126959 ], [ -88.025675, 43.126161 ], [ -88.025439, 43.134061 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 68.018 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.991043, 43.116254 ], [ -87.986559, 43.116102 ], [ -87.984928, 43.115678 ], [ -87.984953, 43.11203 ], [ -87.986191, 43.112036 ], [ -87.990463, 43.112088 ], [ -87.991174, 43.112097 ], [ -87.991043, 43.116254 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.358 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.991096, 43.119406 ], [ -87.988337, 43.119361 ], [ -87.983613, 43.11933 ], [ -87.983685, 43.115676 ], [ -87.984928, 43.115678 ], [ -87.986559, 43.116102 ], [ -87.991043, 43.116254 ], [ -87.991096, 43.119406 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 64.91 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.047701394119002, 43.089723025438978 ], [ -88.047699506784511, 43.090213225851045 ], [ -88.047665366782553, 43.090216318460335 ], [ -88.04330745812338, 43.090216723663879 ], [ -88.043203912257155, 43.090304906948845 ], [ -88.04306183767801, 43.090419556712334 ], [ -88.042898053629784, 43.090539071524454 ], [ -88.042803404336425, 43.090602715885282 ], [ -88.04269976036872, 43.090664756086767 ], [ -88.042641729187778, 43.096968343043308 ], [ -88.04265714729631, 43.098056003472145 ], [ -88.03764, 43.098062 ], [ -88.037637218184386, 43.098061966625494 ], [ -88.037637814275115, 43.097999312599612 ], [ -88.032756237361653, 43.09800330340078 ], [ -88.030989286917531, 43.097982015514475 ], [ -88.030995709779802, 43.097649539584218 ], [ -88.030992395489122, 43.09764266942932 ], [ -88.031002975747128, 43.096825872330719 ], [ -88.031029645166342, 43.096811004914578 ], [ -88.034838265336489, 43.094672669072885 ], [ -88.035372342690692, 43.095183505118079 ], [ -88.036372060160971, 43.095181896643339 ], [ -88.03635705355434, 43.096911282643212 ], [ -88.036975799657426, 43.096910766956789 ], [ -88.036975899319557, 43.096896281214974 ], [ -88.03698, 43.096908 ], [ -88.036979999750969, 43.096360509180265 ], [ -88.037652538177667, 43.096359702136979 ], [ -88.037654555664716, 43.096126490432638 ], [ -88.036980299306293, 43.09612730119246 ], [ -88.03698695060173, 43.095386519680197 ], [ -88.037660957685375, 43.095385709858526 ], [ -88.037662749309334, 43.095178777591833 ], [ -88.037495240439114, 43.095180076877512 ], [ -88.036989811942234, 43.095180895731275 ], [ -88.036993279477429, 43.094117344998338 ], [ -88.037406627792322, 43.093883841458599 ], [ -88.037110199970172, 43.093604358015725 ], [ -88.03697999999747, 43.093474678433175 ], [ -88.03698, 43.09347 ], [ -88.038203, 43.093225 ], [ -88.043599, 43.089763 ], [ -88.047701394119002, 43.089723025438978 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.097 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.870691315426214, 43.081888068102835 ], [ -87.870631056330964, 43.081647456381951 ], [ -87.870583601683279, 43.081533947137657 ], [ -87.870417978584115, 43.08109695904384 ], [ -87.870338973779809, 43.080928162736981 ], [ -87.870209543959859, 43.080651836454756 ], [ -87.870217, 43.08056 ], [ -87.869939814990587, 43.080103511746238 ], [ -87.869534068071772, 43.079283129819196 ], [ -87.869535244724858, 43.079200736731408 ], [ -87.869716026103276, 43.079199982759931 ], [ -87.869653841493786, 43.079064981482105 ], [ -87.869118935173034, 43.078288612092756 ], [ -87.869023427518428, 43.078057388471052 ], [ -87.868950269041889, 43.0778421281153 ], [ -87.868880699538636, 43.077683770420265 ], [ -87.868856777675703, 43.077611571631572 ], [ -87.868818472579136, 43.077519935803302 ], [ -87.868756458324995, 43.07733550691507 ], [ -87.868691188472468, 43.077173594747975 ], [ -87.868648481756978, 43.077077474737258 ], [ -87.868588881241962, 43.076925129001076 ], [ -87.868504636054851, 43.076748872314596 ], [ -87.868385682146325, 43.076529166619316 ], [ -87.86835152981233, 43.076443634522121 ], [ -87.868312257133709, 43.076355899987618 ], [ -87.868284887088706, 43.076314715593796 ], [ -87.868265006819911, 43.076259456229643 ], [ -87.868226277558605, 43.076185741307235 ], [ -87.868187674629993, 43.076100082867434 ], [ -87.868151691941847, 43.076040418556552 ], [ -87.868121260533087, 43.076007849683855 ], [ -87.86810115951593, 43.075969331636649 ], [ -87.868084765276905, 43.075937856049109 ], [ -87.868033503634194, 43.075854265785971 ], [ -87.867967078335383, 43.07575760319336 ], [ -87.867894804235249, 43.075656549364375 ], [ -87.867858602595277, 43.075610897173327 ], [ -87.867812132230199, 43.075564127920366 ], [ -87.867763636139216, 43.075498081032734 ], [ -87.867718033858921, 43.075493660033324 ], [ -87.867672632994328, 43.075496078560363 ], [ -87.867627518511043, 43.075503772069553 ], [ -87.867531966063638, 43.075519693934787 ], [ -87.867479378970117, 43.075525468467021 ], [ -87.867441387298499, 43.075525382398297 ], [ -87.867398968091237, 43.075515507724518 ], [ -87.867362120079946, 43.075494103800935 ], [ -87.86732353524242, 43.075442927844371 ], [ -87.867315110074387, 43.075409549941007 ], [ -87.867338090560466, 43.075336909199841 ], [ -87.867348915404321, 43.075222115089844 ], [ -87.867344019684793, 43.075166911734414 ], [ -87.867335111311689, 43.075132226233649 ], [ -87.867274673175586, 43.075005586037982 ], [ -87.867241765724003, 43.074921128415419 ], [ -87.867226694705792, 43.074817655745264 ], [ -87.867226987783312, 43.074721569341875 ], [ -87.867237119742796, 43.074691094508161 ], [ -87.871986, 43.074625 ], [ -87.875625, 43.07463 ], [ -87.875455, 43.081921 ], [ -87.872905, 43.081919 ], [ -87.870691315426214, 43.081888068102835 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.605 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.884548570421458, 43.004818572940188 ], [ -87.887383606834035, 43.002786155036326 ], [ -87.887316367244438, 43.002737263785242 ], [ -87.887911621336428, 43.002306933724668 ], [ -87.887900096616704, 43.002298368127114 ], [ -87.887903722574393, 43.002295642622094 ], [ -87.888015, 43.002212 ], [ -87.88700740575517, 43.001154198800073 ], [ -87.887746952839692, 43.000642288617009 ], [ -87.88778597816821, 43.000597740384016 ], [ -87.891301, 42.998086 ], [ -87.89671, 42.995927 ], [ -87.899761, 42.997611 ], [ -87.901328, 42.999437 ], [ -87.902724, 43.001109 ], [ -87.90554, 43.004529 ], [ -87.90713, 43.006497 ], [ -87.90834, 43.008273 ], [ -87.907107, 43.008824 ], [ -87.90591, 43.010072 ], [ -87.903557, 43.014337 ], [ -87.902394, 43.017548 ], [ -87.903302, 43.019473 ], [ -87.904729, 43.022958 ], [ -87.902376, 43.025129 ], [ -87.90123, 43.024985 ], [ -87.898927, 43.025085 ], [ -87.89852987921229, 43.025112315793201 ], [ -87.898402062691886, 43.0245010006009 ], [ -87.89748, 43.020091 ], [ -87.891613, 43.007043 ], [ -87.887768, 43.008052 ], [ -87.884548570421458, 43.004818572940188 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 46.925 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949257387246632, 43.135731221434803 ], [ -87.948419520650717, 43.133787527471974 ], [ -87.948417983376885, 43.133783961063962 ], [ -87.948422, 43.133784 ], [ -87.949257387246632, 43.135731221434803 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.846 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948417983376885, 43.133783961063962 ], [ -87.948353120199911, 43.133633480925361 ], [ -87.948422, 43.133784 ], [ -87.948417983376885, 43.133783961063962 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 20.279 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.903495814634084, 42.961816955507892 ], [ -87.903485240806589, 42.966470585875356 ], [ -87.900903, 42.966472 ], [ -87.900903, 42.960973 ], [ -87.902151, 42.95923 ], [ -87.90966, 42.959234 ], [ -87.909608, 42.966467 ], [ -87.903485245580228, 42.966470585872692 ], [ -87.903495814634084, 42.961816955507892 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.977 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.958947, 42.995914 ], [ -87.958019, 43.000361 ], [ -87.955544, 42.999435 ], [ -87.955448, 42.996452 ], [ -87.952989, 42.997924 ], [ -87.95296, 42.99947 ], [ -87.950587, 42.999361 ], [ -87.948171, 42.999564 ], [ -87.948205, 42.99589 ], [ -87.948191, 42.992282 ], [ -87.958071, 42.992147 ], [ -87.958061, 42.994124 ], [ -87.958366, 42.994724 ], [ -87.958947, 42.995914 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 40.223 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933837, 42.988333 ], [ -87.931509, 42.9883 ], [ -87.931549, 42.986525 ], [ -87.926405, 42.986502 ], [ -87.926442, 42.984695 ], [ -87.928873, 42.984687 ], [ -87.933849, 42.984737 ], [ -87.933837, 42.988333 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 50.367 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933749, 42.992013 ], [ -87.926276, 42.991938 ], [ -87.926319, 42.99013 ], [ -87.931462, 42.990163 ], [ -87.931509, 42.9883 ], [ -87.933837, 42.988333 ], [ -87.933749, 42.992013 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 41.481 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.923944, 42.988274 ], [ -87.923899, 42.990137 ], [ -87.91905, 42.99015 ], [ -87.919128, 42.986517 ], [ -87.923996, 42.986507 ], [ -87.923944, 42.988274 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 44.149 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.931509, 42.9883 ], [ -87.931462, 42.990163 ], [ -87.926319, 42.99013 ], [ -87.926364, 42.988268 ], [ -87.926405, 42.986502 ], [ -87.931549, 42.986525 ], [ -87.931509, 42.9883 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 20.077 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926319, 42.99013 ], [ -87.926276, 42.991938 ], [ -87.919003, 42.991958 ], [ -87.91905, 42.99015 ], [ -87.923899, 42.990137 ], [ -87.923944, 42.988274 ], [ -87.926364, 42.988268 ], [ -87.926319, 42.99013 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 34.95 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926405, 42.986502 ], [ -87.926364, 42.988268 ], [ -87.923944, 42.988274 ], [ -87.923996, 42.986507 ], [ -87.919128, 42.986517 ], [ -87.919159, 42.984701 ], [ -87.926442, 42.984695 ], [ -87.926405, 42.986502 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.539 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.919363, 42.966488 ], [ -87.909608, 42.966467 ], [ -87.90966, 42.959234 ], [ -87.919454, 42.959213 ], [ -87.919363, 42.966488 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.725 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.929173, 42.965847 ], [ -87.929168, 42.966537 ], [ -87.929114, 42.97377 ], [ -87.919349, 42.973772 ], [ -87.919363, 42.966488 ], [ -87.919454, 42.959213 ], [ -87.926532, 42.959252 ], [ -87.929211, 42.959269 ], [ -87.929173, 42.965847 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 45.684 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948719225863329, 42.959407964100656 ], [ -87.948719148681405, 42.959411632554399 ], [ -87.94868274082117, 42.961439080529381 ], [ -87.948669952894576, 42.962030247512288 ], [ -87.948664161728956, 42.962473540002726 ], [ -87.948660661581698, 42.962668490943493 ], [ -87.948655589365032, 42.962950995405592 ], [ -87.948638921042061, 42.963979353440912 ], [ -87.948624339347461, 42.964826924561862 ], [ -87.94861195581143, 42.965380235298234 ], [ -87.948593626058766, 42.966400801465724 ], [ -87.948471, 42.966648 ], [ -87.938932, 42.966603 ], [ -87.93886, 42.959313 ], [ -87.943793, 42.959361 ], [ -87.948719225863329, 42.959407964100656 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 49.296 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.938932, 42.966603 ], [ -87.929168, 42.966537 ], [ -87.929173, 42.965847 ], [ -87.929211, 42.959269 ], [ -87.93886, 42.959313 ], [ -87.938932, 42.966603 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 8.566 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.006466, 42.981025 ], [ -88.00338, 42.981045 ], [ -87.999307, 42.981071 ], [ -87.997854, 42.981081 ], [ -87.997873, 42.980003 ], [ -87.997985, 42.973817 ], [ -87.999235, 42.97381 ], [ -87.999866, 42.975588 ], [ -88.004787, 42.976865 ], [ -88.006466, 42.981025 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 1.84 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.014396820935488, 42.969865177896196 ], [ -88.014764322121749, 42.969861627163255 ], [ -88.014767713876509, 42.970043874316168 ], [ -88.014767282067126, 42.970322892107781 ], [ -88.014684698853287, 42.970367011534741 ], [ -88.014688400144024, 42.971145987598661 ], [ -88.014695908119378, 42.971957065887651 ], [ -88.014636337113373, 42.971987113813427 ], [ -88.01464241903507, 42.972381071327817 ], [ -88.014764098327049, 42.972380496556092 ], [ -88.014762, 42.973737 ], [ -88.014765979015934, 42.973736991039694 ], [ -88.014765861940703, 42.973741990534165 ], [ -88.016299417683584, 42.97373718737942 ], [ -88.017848200300861, 42.973732620583789 ], [ -88.017851942849404, 42.973732606154407 ], [ -88.017772, 42.977378 ], [ -88.017693, 42.981013 ], [ -88.012749, 42.981015 ], [ -88.013025, 42.969888 ], [ -88.014396820935488, 42.969865177896196 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 22.832 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.928873, 42.984687 ], [ -87.926442, 42.984695 ], [ -87.919159, 42.984701 ], [ -87.919228, 42.98161 ], [ -87.919349, 42.973772 ], [ -87.929114, 42.97377 ], [ -87.928873, 42.984687 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.014 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933943, 42.977469 ], [ -87.933918, 42.981092 ], [ -87.933849, 42.984737 ], [ -87.928873, 42.984687 ], [ -87.929114, 42.97377 ], [ -87.933991, 42.973815 ], [ -87.933943, 42.977469 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.088 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.907047950039953, 43.100313899867558 ], [ -87.907048116973442, 43.100306998786202 ], [ -87.907048663839603, 43.100284395553601 ], [ -87.907057, 43.100314 ], [ -87.907047950039953, 43.100313899867558 ] ] ], [ [ [ -87.906350298863288, 43.097804164722049 ], [ -87.906344923347547, 43.097799604361228 ], [ -87.905747479431255, 43.097570559592874 ], [ -87.905656842035143, 43.097548585293872 ], [ -87.90559553639082, 43.097559639500197 ], [ -87.905510431556465, 43.097537768617094 ], [ -87.905404925806991, 43.097464756341765 ], [ -87.905314979410861, 43.097422489859362 ], [ -87.905169056112811, 43.097397468294808 ], [ -87.905000103925602, 43.097317198232048 ], [ -87.904873694521129, 43.097288473553434 ], [ -87.904741052446056, 43.097279938609368 ], [ -87.904587510226847, 43.097315691615592 ], [ -87.90431632270888, 43.097361632029944 ], [ -87.904185960941746, 43.09736735184498 ], [ -87.904122787623933, 43.097351975015606 ], [ -87.904093183177025, 43.09732706321337 ], [ -87.904108064131123, 43.09729687775198 ], [ -87.904156156466797, 43.097267307354201 ], [ -87.904187644294012, 43.097237427718717 ], [ -87.904111264958601, 43.097203530592914 ], [ -87.903992880082271, 43.097183076619814 ], [ -87.903868473372825, 43.097176723306433 ], [ -87.903796023723544, 43.097189603976048 ], [ -87.903723093909264, 43.097216689170672 ], [ -87.903637015934223, 43.097223224055149 ], [ -87.903552121114018, 43.097195262619465 ], [ -87.903487718904117, 43.097135193280998 ], [ -87.903456242906984, 43.09708384925753 ], [ -87.903376674458229, 43.097062075314383 ], [ -87.903219894291013, 43.097030759980477 ], [ -87.903113139042091, 43.096994273238629 ], [ -87.902943739122705, 43.096965505579931 ], [ -87.902853377445084, 43.096935411893142 ], [ -87.90273583143798, 43.096890603739702 ], [ -87.902618701082062, 43.096833618964752 ], [ -87.902482825769894, 43.096758014912176 ], [ -87.902347368605717, 43.096670235955109 ], [ -87.902200135324804, 43.096552720226654 ], [ -87.902139174767171, 43.096490164510769 ], [ -87.90199090583549, 43.096331375137495 ], [ -87.90190896355395, 43.09625802885332 ], [ -87.901804819331403, 43.096191704079217 ], [ -87.901716251399691, 43.096114520031229 ], [ -87.901602752979016, 43.096041336137802 ], [ -87.901536119568974, 43.096014097540206 ], [ -87.901400834814936, 43.095919951463138 ], [ -87.90126070310663, 43.095819523398625 ], [ -87.901101971586527, 43.095713783147033 ], [ -87.906348, 43.097796 ], [ -87.906350298863288, 43.097804164722049 ] ] ], [ [ [ -87.900968006585444, 43.095594418477546 ], [ -87.900964486847883, 43.095591118921462 ], [ -87.900829953586012, 43.095491568899199 ], [ -87.900724346775519, 43.095369484227234 ], [ -87.900614766487109, 43.095117276509363 ], [ -87.900600779298784, 43.094939642189658 ], [ -87.900584772627582, 43.094815493115348 ], [ -87.900585008394188, 43.094710217549775 ], [ -87.900564466941745, 43.094668966824997 ], [ -87.900514811972656, 43.094590022674836 ], [ -87.900511036913755, 43.094503253835356 ], [ -87.900527007000164, 43.094431712827983 ], [ -87.900539474024171, 43.094363822649996 ], [ -87.900573954554503, 43.094294659260328 ], [ -87.900583896199592, 43.094201952760372 ], [ -87.900607557016798, 43.094103305210162 ], [ -87.90064724263182, 43.094029723012078 ], [ -87.900702392487077, 43.093899452277348 ], [ -87.900745880659414, 43.093813557048101 ], [ -87.900788852188441, 43.093739567129745 ], [ -87.900817855969549, 43.093681891583557 ], [ -87.900826320829566, 43.093582963677314 ], [ -87.900858760828115, 43.093474570137218 ], [ -87.900870315079658, 43.093429563080889 ], [ -87.90090651287619, 43.09331009246916 ], [ -87.900932242412608, 43.093197249219251 ], [ -87.900968006585444, 43.095594418477546 ] ] ], [ [ [ -87.900219922228274, 43.091497329843911 ], [ -87.900186569118446, 43.091466139702639 ], [ -87.900107174741919, 43.09136806749305 ], [ -87.900086264351273, 43.091253246802019 ], [ -87.900017984048631, 43.091077349795718 ], [ -87.89998940176487, 43.090975262958509 ], [ -87.899990431053837, 43.090954688989527 ], [ -87.900219922228274, 43.091497329843911 ] ] ], [ [ [ -87.899793822494033, 43.090489792169315 ], [ -87.89976535298031, 43.090470312604147 ], [ -87.899703307162156, 43.090358933479742 ], [ -87.899659586100768, 43.090205783992197 ], [ -87.899633000151084, 43.090170868077244 ], [ -87.89967, 43.090197 ], [ -87.899793822494033, 43.090489792169315 ] ] ], [ [ [ -87.898530893704802, 43.089392466327311 ], [ -87.898500447698225, 43.089383743364117 ], [ -87.898433445068264, 43.089358370839847 ], [ -87.898384696373014, 43.089328293982533 ], [ -87.898312652174241, 43.08928223197826 ], [ -87.898254684174347, 43.089234800334033 ], [ -87.898176009781693, 43.089175796911363 ], [ -87.898175844414098, 43.08917558373107 ], [ -87.898223, 43.089175 ], [ -87.898530893704802, 43.089392466327311 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 28.79 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967746582739963, 42.973903000721755 ], [ -87.967754899328384, 42.973428144785075 ], [ -87.967311998818559, 42.973428507427798 ], [ -87.96732597429417, 42.972711889175322 ], [ -87.968245868496865, 42.972709881306457 ], [ -87.967747, 42.973903 ], [ -87.967746582739963, 42.973903000721755 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 28.014 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.031481353558405, 43.03836452914652 ], [ -88.031484329256401, 43.038783002239057 ], [ -88.027175455221993, 43.038797910612551 ], [ -88.025685039294459, 43.038836151384416 ], [ -88.021897395921712, 43.038933247573723 ], [ -88.021889501284221, 43.038513406787224 ], [ -88.021889470255346, 43.038511089883116 ], [ -88.021893, 43.038511 ], [ -88.0219, 43.038918 ], [ -88.031481353558405, 43.03836452914652 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.896 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937542, 43.064157 ], [ -87.932608, 43.06408 ], [ -87.932737, 43.056164 ], [ -87.937664, 43.056276 ], [ -87.937542, 43.064157 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.46 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926857, 43.063999 ], [ -87.919873, 43.063944 ], [ -87.919973, 43.058781 ], [ -87.918529, 43.056505 ], [ -87.926996, 43.05654 ], [ -87.926857, 43.063999 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.836 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.932608, 43.06408 ], [ -87.926857, 43.063999 ], [ -87.926996, 43.05654 ], [ -87.9315, 43.056598 ], [ -87.931521, 43.055313 ], [ -87.932737, 43.056164 ], [ -87.932608, 43.06408 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 63.268 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.914147, 43.06028 ], [ -87.911156, 43.060263 ], [ -87.911182, 43.059081 ], [ -87.90968, 43.059073 ], [ -87.909721, 43.056454 ], [ -87.914224, 43.056476 ], [ -87.914147, 43.06028 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 70.294 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.914108, 43.063922 ], [ -87.909618, 43.063887 ], [ -87.909653, 43.060254 ], [ -87.90968, 43.059073 ], [ -87.911182, 43.059081 ], [ -87.911156, 43.060263 ], [ -87.914147, 43.06028 ], [ -87.914108, 43.063922 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.993 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.03607134647423, 42.988117957564548 ], [ -88.034806704370482, 42.988130315866819 ], [ -88.03361739087039, 42.98814191851455 ], [ -88.032384962881991, 42.988153932920994 ], [ -88.032385, 42.988152 ], [ -88.03607134647423, 42.988117957564548 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.637 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.032384962881991, 42.988153932920994 ], [ -88.031026878611655, 42.9881671569227 ], [ -88.029062004453181, 42.988189763983947 ], [ -88.028697888072799, 42.988192502669328 ], [ -88.028698, 42.988187 ], [ -88.032385, 42.988152 ], [ -88.032384962881991, 42.988153932920994 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.461 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.028697888072799, 42.988192502669328 ], [ -88.027460264518879, 42.988201802739113 ], [ -88.024205609411027, 42.988214675414305 ], [ -88.022408972860092, 42.988221744956903 ], [ -88.017555930234238, 42.988240697210976 ], [ -88.017556, 42.988236 ], [ -88.027464, 42.988199 ], [ -88.028698, 42.988187 ], [ -88.028697888072799, 42.988192502669328 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 37.772 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.001929097177026, 42.995571105047468 ], [ -88.001929018370788, 42.995573932848572 ], [ -88.001928602825942, 42.995656225346899 ], [ -88.00128188209483, 42.999017415745492 ], [ -88.00127989210705, 42.999017429059023 ], [ -88.000048943565872, 42.999025653115908 ], [ -88.000051154587425, 42.998851292668299 ], [ -87.999074267288336, 42.998857595256581 ], [ -87.998132124003348, 42.998863666206532 ], [ -87.998129219045637, 42.999045305980879 ], [ -87.997512444458863, 42.999049856591334 ], [ -87.997516620831661, 42.998788729454418 ], [ -87.995800151420696, 42.998800164903265 ], [ -87.995763038011788, 42.998832004790231 ], [ -87.995763, 42.998832 ], [ -87.995806, 42.995611 ], [ -87.997542, 42.9956 ], [ -88.001929097177026, 42.995571105047468 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.183 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.008073874544451, 42.969944264481327 ], [ -88.009828686287179, 42.96992094957303 ], [ -88.013025, 42.969888 ], [ -88.012749, 42.981015 ], [ -88.00781, 42.981016 ], [ -88.008073874544451, 42.969944264481327 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.964 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.03748982502546, 42.980922751743705 ], [ -88.037489771719407, 42.98092482496439 ], [ -88.037460288176035, 42.981989169110904 ], [ -88.037437618934874, 42.982807453497465 ], [ -88.037290820820672, 42.98810603221542 ], [ -88.036219802360051, 42.988116505911165 ], [ -88.03607134647423, 42.988117957564548 ], [ -88.032385, 42.988152 ], [ -88.028698, 42.988187 ], [ -88.027464, 42.988199 ], [ -88.027608, 42.980947 ], [ -88.032553, 42.980916 ], [ -88.036454, 42.981168 ], [ -88.03748982502546, 42.980922751743705 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 34.172 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949915232472236, 42.981258092592817 ], [ -87.948357737435629, 42.981268314972191 ], [ -87.948253965988059, 42.98126699469023 ], [ -87.948254, 42.981264 ], [ -87.949919, 42.981255 ], [ -87.954046, 42.984714 ], [ -87.954943, 42.984071 ], [ -87.958133, 42.985722 ], [ -87.958096, 42.988459 ], [ -87.958071, 42.992147 ], [ -87.948191, 42.992282 ], [ -87.948233, 42.983113 ], [ -87.948253965970352, 42.981266996248884 ], [ -87.948357732708317, 42.981268316602169 ], [ -87.949915232472236, 42.981258092592817 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 47.76 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948451202869194, 42.973935656714517 ], [ -87.948451135735212, 42.973939202233844 ], [ -87.952532870339766, 42.973932154991161 ], [ -87.953306409945711, 42.973930827245482 ], [ -87.953884956621849, 42.973929809394804 ], [ -87.953868, 42.975028 ], [ -87.953870190251678, 42.975027976965606 ], [ -87.953870151521144, 42.975030371356809 ], [ -87.954318742569868, 42.975023258757226 ], [ -87.956053, 42.975005 ], [ -87.953204, 42.977156 ], [ -87.953204026601853, 42.977157570534352 ], [ -87.953200764917653, 42.977159982948734 ], [ -87.953204108537136, 42.977162407871639 ], [ -87.953264, 42.980698 ], [ -87.953265020318909, 42.980697937643932 ], [ -87.953264928507849, 42.980705030551093 ], [ -87.953264928392855, 42.980705032155875 ], [ -87.953873766877805, 42.980701678123175 ], [ -87.953874476435843, 42.98066068951848 ], [ -87.955423401794448, 42.980566009064361 ], [ -87.955719680891363, 42.980563968323537 ], [ -87.955718495461454, 42.980770705740483 ], [ -87.956331733374526, 42.980766508447253 ], [ -87.956336993100919, 42.980510154430263 ], [ -87.956930993238032, 42.980473834819655 ], [ -87.956957856554951, 42.980473649019622 ], [ -87.956957887581353, 42.98047219031502 ], [ -87.956961, 42.980472 ], [ -87.957285813035739, 42.979814906103151 ], [ -87.95759817288095, 42.979812698416069 ], [ -87.957604669241221, 42.979403128346902 ], [ -87.957611053790188, 42.979156932200226 ], [ -87.958243550836684, 42.977877325398417 ], [ -87.958216726471676, 42.979398884448727 ], [ -87.958187002099436, 42.981203410951004 ], [ -87.95817518765864, 42.982127242237119 ], [ -87.958158958505066, 42.982982137497508 ], [ -87.958175192442894, 42.982127238892382 ], [ -87.95818700688362, 42.981203407606287 ], [ -87.958216731255703, 42.979398881103997 ], [ -87.958243550954435, 42.977877325160208 ], [ -87.958262, 42.97784 ], [ -87.95819, 42.9812 ], [ -87.958133, 42.985722 ], [ -87.954943, 42.984071 ], [ -87.954046, 42.984714 ], [ -87.949919, 42.981255 ], [ -87.948254, 42.981264 ], [ -87.948333, 42.973935 ], [ -87.948451202869194, 42.973935656714517 ] ], [ [ -87.953226868958453, 42.981236271319396 ], [ -87.95300106444418, 42.981237759906598 ], [ -87.950992553962834, 42.981252279675331 ], [ -87.953001059716996, 42.981237761536782 ], [ -87.953226868721003, 42.98123627463395 ], [ -87.953226868958453, 42.981236271319396 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.261 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.940144721772157, 42.930308976516621 ], [ -87.940144607873265, 42.930312107633462 ], [ -87.944390801231606, 42.930341657014132 ], [ -87.947616017122215, 42.930363366865528 ], [ -87.949376938388241, 42.930375180154925 ], [ -87.949332925676003, 42.932677244544593 ], [ -87.949308538160736, 42.933952414956465 ], [ -87.949274617104905, 42.935917003981366 ], [ -87.949268118136089, 42.936255732783899 ], [ -87.949238529116599, 42.937614368293858 ], [ -87.947484, 42.936284 ], [ -87.936779, 42.936268 ], [ -87.935304, 42.937553 ], [ -87.93543, 42.930283 ], [ -87.940144721772157, 42.930308976516621 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 8.362 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.935192, 42.944783 ], [ -87.929418, 42.944756 ], [ -87.929521, 42.937522 ], [ -87.935304, 42.937553 ], [ -87.935192, 42.944783 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 8.512 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949238529116599, 42.937614368293858 ], [ -87.949238408975575, 42.937619884722295 ], [ -87.949241927135859, 42.937619888081244 ], [ -87.949089, 42.943681 ], [ -87.949088733595715, 42.943689489052282 ], [ -87.94908523077666, 42.943689485723979 ], [ -87.949047691567117, 42.944859976461132 ], [ -87.939245, 42.944806 ], [ -87.935192, 42.944783 ], [ -87.935304, 42.937553 ], [ -87.936779, 42.936268 ], [ -87.947484, 42.936284 ], [ -87.949238529116599, 42.937614368293858 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.309 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949274617104905, 42.935917003981366 ], [ -87.949271257194738, 42.93611159490758 ], [ -87.949268118136089, 42.936255732783899 ], [ -87.949274617104905, 42.935917003981366 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 61.606 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.042027, 43.124629 ], [ -88.034613, 43.130546 ], [ -88.032611, 43.13398 ], [ -88.025439, 43.134061 ], [ -88.025675, 43.126161 ], [ -88.040583, 43.123591 ], [ -88.042027, 43.124629 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.328 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.032924, 43.119468 ], [ -88.025884, 43.119515 ], [ -88.025934, 43.112576 ], [ -88.034929, 43.119569 ], [ -88.032924, 43.119468 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.193 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.040583, 43.123591 ], [ -88.025675, 43.126161 ], [ -88.025884, 43.119515 ], [ -88.032924, 43.119468 ], [ -88.034929, 43.119569 ], [ -88.040583, 43.123591 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.152 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949965, 43.062445 ], [ -87.949934, 43.064241 ], [ -87.946215, 43.064229 ], [ -87.946333, 43.056341 ], [ -87.947573, 43.056378 ], [ -87.949946, 43.056393 ], [ -87.949965, 43.062445 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 45.985 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957932, 43.00303 ], [ -87.956703, 43.004828 ], [ -87.952921, 43.00488 ], [ -87.952955, 43.003101 ], [ -87.95296, 42.99947 ], [ -87.952989, 42.997924 ], [ -87.955448, 42.996452 ], [ -87.955544, 42.999435 ], [ -87.958019, 43.000361 ], [ -87.957932, 43.00303 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 44.761 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.961047, 43.006616 ], [ -87.957781, 43.006641 ], [ -87.952886, 43.006709 ], [ -87.952921, 43.00488 ], [ -87.956703, 43.004828 ], [ -87.957932, 43.00303 ], [ -87.961118, 43.002991 ], [ -87.961047, 43.006616 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.829 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.919349, 42.973772 ], [ -87.90953, 42.973762 ], [ -87.909554, 42.970095 ], [ -87.909608, 42.966467 ], [ -87.919363, 42.966488 ], [ -87.919349, 42.973772 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 11.854 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.9989376526635, 42.970044901812926 ], [ -87.998953784216326, 42.970034718456155 ], [ -88.004924694683979, 42.969975586826202 ], [ -87.9989376526635, 42.970044901812926 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.129 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.90953, 42.973762 ], [ -87.905584, 42.973754 ], [ -87.900377, 42.973718 ], [ -87.899557, 42.973734 ], [ -87.899597, 42.969935 ], [ -87.899611, 42.968528 ], [ -87.902595, 42.970091 ], [ -87.909554, 42.970095 ], [ -87.90953, 42.973762 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.675 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.885701230730689, 42.942311261467559 ], [ -87.885650264879018, 42.942305475862192 ], [ -87.88784120849364, 42.930036951680073 ], [ -87.88784848525826, 42.930036942974738 ], [ -87.885701230730689, 42.942311261467559 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.459 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.903485240806589, 42.966470585875356 ], [ -87.903485230178802, 42.966475264213145 ], [ -87.90348523495723, 42.966475264209492 ], [ -87.903485245580228, 42.966470585872692 ], [ -87.909608, 42.966467 ], [ -87.909554, 42.970095 ], [ -87.902595, 42.970091 ], [ -87.899611, 42.968528 ], [ -87.899597, 42.969935 ], [ -87.898696, 42.969935 ], [ -87.897132, 42.967489 ], [ -87.897123, 42.966466 ], [ -87.900903, 42.966472 ], [ -87.903485240806589, 42.966470585875356 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.193 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.899675, 43.049329 ], [ -87.899654, 43.05053 ], [ -87.896899, 43.050505 ], [ -87.896962, 43.048078 ], [ -87.897008, 43.046261 ], [ -87.897562, 43.04568 ], [ -87.89974, 43.0457 ], [ -87.899675, 43.049329 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 33.14 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.91681, 43.027374 ], [ -87.906605, 43.027089 ], [ -87.90499, 43.027965 ], [ -87.90296, 43.025633 ], [ -87.902796, 43.025492 ], [ -87.902376, 43.025129 ], [ -87.904729, 43.022958 ], [ -87.903302, 43.019473 ], [ -87.907385, 43.019605 ], [ -87.907379, 43.020069 ], [ -87.909856, 43.019087 ], [ -87.916753, 43.019085 ], [ -87.91681, 43.027374 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 71.296 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.922542, 43.023221 ], [ -87.922532, 43.024221 ], [ -87.921394, 43.02632 ], [ -87.917382, 43.026687 ], [ -87.91681, 43.027374 ], [ -87.916753, 43.019085 ], [ -87.917281, 43.019079 ], [ -87.919669, 43.019109 ], [ -87.922531, 43.019106 ], [ -87.922538, 43.021194 ], [ -87.922542, 43.023221 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 42.641 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.918698, 43.006473 ], [ -87.916251, 43.006355 ], [ -87.908885, 43.006501 ], [ -87.90713, 43.006497 ], [ -87.90554, 43.004529 ], [ -87.908806, 43.002884 ], [ -87.908968, 43.002883 ], [ -87.909001, 43.001427 ], [ -87.909113, 42.999278 ], [ -87.909355, 42.998195 ], [ -87.910636, 42.995202 ], [ -87.911118, 42.99416 ], [ -87.912282, 42.996519 ], [ -87.912491, 42.996923 ], [ -87.91719, 43.001793 ], [ -87.918798, 43.001784 ], [ -87.918698, 43.006473 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 34.514 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.918872, 42.997643 ], [ -87.918845, 42.99917 ], [ -87.918807, 43.00126 ], [ -87.918798, 43.001784 ], [ -87.91719, 43.001793 ], [ -87.912491, 42.996923 ], [ -87.916926, 42.995163 ], [ -87.918898, 42.996344 ], [ -87.918872, 42.997643 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 58.488 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.962348842790675, 43.024137183712163 ], [ -87.962348937424366, 43.024167975311961 ], [ -87.963461781593011, 43.024166739803164 ], [ -87.965506973846018, 43.024163938855324 ], [ -87.966544320317425, 43.024162591194134 ], [ -87.96939579367249, 43.024157603756393 ], [ -87.969395264093421, 43.023835194284743 ], [ -87.969497755982616, 43.020906971523551 ], [ -87.969600141155041, 43.020693953778114 ], [ -87.970048116423811, 43.020621276513502 ], [ -87.971074062278575, 43.020420411035005 ], [ -87.974747983882011, 43.019765666340042 ], [ -87.974898684724351, 43.019739700797231 ], [ -87.976059521912347, 43.019542773096241 ], [ -87.977930844549519, 43.019198329296316 ], [ -87.978422319071285, 43.01911071637884 ], [ -87.979174295579853, 43.01897880849836 ], [ -87.980286773027672, 43.018782000616262 ], [ -87.982393034123163, 43.018392190271449 ], [ -87.9824, 43.020064 ], [ -87.982404120765182, 43.020325565444665 ], [ -87.982417721257903, 43.022922082218884 ], [ -87.982424501918544, 43.024128830505134 ], [ -87.982464060265528, 43.024128751528259 ], [ -87.982604, 43.030517 ], [ -87.981747, 43.030402 ], [ -87.978184, 43.03087 ], [ -87.972819, 43.032496 ], [ -87.968416, 43.033058 ], [ -87.967244, 43.033097 ], [ -87.965983, 43.031911 ], [ -87.964989, 43.031411 ], [ -87.957749, 43.031485 ], [ -87.952722, 43.031485 ], [ -87.951341, 43.031623 ], [ -87.947754, 43.03286 ], [ -87.947754, 43.034019 ], [ -87.947742, 43.034781 ], [ -87.946384, 43.034779 ], [ -87.944827, 43.034776 ], [ -87.932933, 43.034756 ], [ -87.928206, 43.034745 ], [ -87.923541, 43.034716 ], [ -87.920514, 43.035581 ], [ -87.918758, 43.035606 ], [ -87.918758, 43.034694 ], [ -87.918689, 43.033222 ], [ -87.918218, 43.027776 ], [ -87.917382, 43.026687 ], [ -87.921394, 43.02632 ], [ -87.922532, 43.024221 ], [ -87.93304, 43.024228 ], [ -87.942242, 43.0242 ], [ -87.948441, 43.024159 ], [ -87.952643, 43.023837 ], [ -87.95386, 43.023718 ], [ -87.962294, 43.02343 ], [ -87.962348842790675, 43.024137183712163 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.795 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.899417, 43.043094 ], [ -87.898253, 43.044118 ], [ -87.897562, 43.04568 ], [ -87.897008, 43.046261 ], [ -87.890195, 43.053367 ], [ -87.888061, 43.054071 ], [ -87.88639, 43.055617 ], [ -87.883075, 43.055586 ], [ -87.879366, 43.059405 ], [ -87.87744, 43.057575 ], [ -87.881685, 43.054333 ], [ -87.887474, 43.052967 ], [ -87.890127, 43.05105 ], [ -87.894683, 43.046206 ], [ -87.895599, 43.044932 ], [ -87.898488, 43.043049 ], [ -87.899417, 43.043094 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.08 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.88749, 43.05621 ], [ -87.883763, 43.060112 ], [ -87.880457, 43.060106 ], [ -87.879366, 43.059405 ], [ -87.883075, 43.055586 ], [ -87.88639, 43.055617 ], [ -87.88749, 43.05621 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.807 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.896962, 43.048078 ], [ -87.892328, 43.052932 ], [ -87.89132, 43.053979 ], [ -87.890195, 43.053367 ], [ -87.897008, 43.046261 ], [ -87.896962, 43.048078 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.029 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.89132, 43.053979 ], [ -87.889235, 43.056146 ], [ -87.88749, 43.05621 ], [ -87.88639, 43.055617 ], [ -87.888061, 43.054071 ], [ -87.890195, 43.053367 ], [ -87.89132, 43.053979 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": null }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.867237119742796, 43.074691094508161 ], [ -87.867238286493702, 43.07468758516135 ], [ -87.867221869263616, 43.074622106829167 ], [ -87.8671574381314, 43.074576623295279 ], [ -87.867125555748487, 43.074548389124665 ], [ -87.867103822591247, 43.074521743265365 ], [ -87.867074112122211, 43.074497858824003 ], [ -87.866978435896272, 43.074429494615465 ], [ -87.866902326030086, 43.074377716088357 ], [ -87.866483924091497, 43.074373834109409 ], [ -87.865570770640815, 43.074380333356686 ], [ -87.864062, 43.074328 ], [ -87.863817233137709, 43.070784627748161 ], [ -87.863978320091107, 43.070460169111463 ], [ -87.864813455209301, 43.069675853390059 ], [ -87.865379986776347, 43.069334229174864 ], [ -87.865847160964208, 43.068879421435518 ], [ -87.866337378744262, 43.068244596292018 ], [ -87.8663484465214, 43.068234201205854 ], [ -87.866424344278855, 43.0681694563742 ], [ -87.86643739259776, 43.068150661037947 ], [ -87.874767, 43.060326 ], [ -87.875468, 43.058507 ], [ -87.882339, 43.053099 ], [ -87.882208948967133, 43.052198983006065 ], [ -87.882212508759011, 43.052196867966657 ], [ -87.882243531383935, 43.052161491538122 ], [ -87.882256928391016, 43.052129979230585 ], [ -87.882276869792221, 43.052098545911186 ], [ -87.882287762975238, 43.052056723911917 ], [ -87.88229116926837, 43.052010426031195 ], [ -87.882286760534086, 43.051966293218726 ], [ -87.882274565280213, 43.051925259165685 ], [ -87.88224272658222, 43.051861111766755 ], [ -87.882174462687502, 43.051741997951616 ], [ -87.8821347735595, 43.051682193438701 ], [ -87.882134160357225, 43.051681396369077 ], [ -87.882125, 43.051618 ], [ -87.882583596724714, 43.051236601026766 ], [ -87.882782176140282, 43.051195952637912 ], [ -87.882748304981916, 43.051099617293552 ], [ -87.882795132256533, 43.051060672067962 ], [ -87.882890574612389, 43.051041471093498 ], [ -87.883617954748573, 43.051114360047571 ], [ -87.883748788167054, 43.051445091380153 ], [ -87.88479882169338, 43.051232681554424 ], [ -87.884802, 43.051233 ], [ -87.885420755140899, 43.051573871919651 ], [ -87.885450790928587, 43.051683641536734 ], [ -87.8855142974258, 43.051670366996973 ], [ -87.885568655917254, 43.051655349324008 ], [ -87.886311685805026, 43.052064672579938 ], [ -87.88669647305835, 43.052999439184106 ], [ -87.886803204725013, 43.053038862192551 ], [ -87.887080651309333, 43.052984698366515 ], [ -87.88714278620354, 43.052899017475887 ], [ -87.886779870143229, 43.051972469349522 ], [ -87.887380693500305, 43.051175937515261 ], [ -87.88748084336811, 43.051245473904622 ], [ -87.887669732281026, 43.051104308642977 ], [ -87.887511577352811, 43.051002417238905 ], [ -87.887555975622391, 43.050943555636529 ], [ -87.887690492912938, 43.050844630821999 ], [ -87.887640918588488, 43.050811852475377 ], [ -87.888471806071323, 43.048986623493555 ], [ -87.88939014378235, 43.048076510168805 ], [ -87.88898668998695, 43.047855510018778 ], [ -87.889895, 43.04586 ], [ -87.88797, 43.044822 ], [ -87.887966538898269, 43.044825411506757 ], [ -87.887966451743537, 43.044825363956392 ], [ -87.887156604672782, 43.04562372678496 ], [ -87.886299, 43.046469 ], [ -87.884067, 43.046311 ], [ -87.886027, 43.044222 ], [ -87.889599, 43.042745 ], [ -87.895, 43.042535 ], [ -87.895020316287003, 43.042478575522864 ], [ -87.895032828768677, 43.042478585257548 ], [ -87.895489241425835, 43.041596209168986 ], [ -87.895730129598121, 43.041130489643962 ], [ -87.896042235812246, 43.040413481278534 ], [ -87.896184853062763, 43.040033520288837 ], [ -87.896264962934097, 43.039820094883986 ], [ -87.896409423344736, 43.039342915165918 ], [ -87.896620537136798, 43.038489730628115 ], [ -87.896714998860418, 43.037821235551142 ], [ -87.896696763363096, 43.037822212778032 ], [ -87.896699, 43.037816 ], [ -87.894933, 43.0379 ], [ -87.894897215565194, 43.03734840327683 ], [ -87.895002233503689, 43.037347680798838 ], [ -87.895138799594179, 43.036743285535785 ], [ -87.895200270112767, 43.036703705963042 ], [ -87.896964627079996, 43.03660667012754 ], [ -87.896983789944699, 43.036605614572636 ], [ -87.897032616572929, 43.036384801750458 ], [ -87.897006398286294, 43.036354498378074 ], [ -87.89765827740014, 43.033102115859045 ], [ -87.898095757165763, 43.031243909126935 ], [ -87.898235397202001, 43.030531099917361 ], [ -87.898234577887266, 43.030296400603007 ], [ -87.898227571716973, 43.030261495307386 ], [ -87.898292, 43.02994 ], [ -87.898067954950463, 43.02978681270163 ], [ -87.897966095990952, 43.029623919343251 ], [ -87.897792240353596, 43.029424053232916 ], [ -87.897568404552842, 43.029234722812781 ], [ -87.897288217930637, 43.029061489514326 ], [ -87.89727322528762, 43.029065845387557 ], [ -87.897164615859992, 43.02909740258027 ], [ -87.897075368025043, 43.029108132311535 ], [ -87.896926, 43.029006 ], [ -87.89680275834634, 43.029134958234152 ], [ -87.896268261749611, 43.02915372419735 ], [ -87.896264809498788, 43.029154910809801 ], [ -87.896149069298289, 43.029194721501817 ], [ -87.896096611330847, 43.029328765346293 ], [ -87.895945961179194, 43.029485670717541 ], [ -87.895736171530245, 43.029662161635699 ], [ -87.895541596727597, 43.030009000385647 ], [ -87.895527072275087, 43.030431323910335 ], [ -87.895659097346481, 43.030882126857534 ], [ -87.895805591898593, 43.031058424212397 ], [ -87.895737, 43.034088 ], [ -87.894704498563257, 43.034133195720052 ], [ -87.894634051775398, 43.033794648052691 ], [ -87.89445073338409, 43.032961942019796 ], [ -87.894017165220319, 43.032215305001728 ], [ -87.893923875815034, 43.031755558104997 ], [ -87.8938869443747, 43.031485705721295 ], [ -87.893884031749707, 43.031464424956312 ], [ -87.893902191669866, 43.030936813569753 ], [ -87.8940091737649, 43.030394561159092 ], [ -87.894144104330053, 43.030066633149929 ], [ -87.894355124587875, 43.02983729682812 ], [ -87.894361363125853, 43.029656000357399 ], [ -87.894678734541955, 43.029415678936452 ], [ -87.894823289607416, 43.029321170263401 ], [ -87.895198431736617, 43.029198536481893 ], [ -87.895439405941801, 43.029125252541874 ], [ -87.895557704470292, 43.029023776202713 ], [ -87.895658578365797, 43.028915498247251 ], [ -87.895662140959132, 43.028811901197209 ], [ -87.895780587750835, 43.028706152694795 ], [ -87.895909852277441, 43.028708545427399 ], [ -87.895937864139512, 43.025918897505548 ], [ -87.895961327782942, 43.025853097561921 ], [ -87.895963657764995, 43.025853007785102 ], [ -87.898663, 43.025749 ], [ -87.89852987921229, 43.025112315793201 ], [ -87.898927, 43.025085 ], [ -87.900568, 43.031413 ], [ -87.900183, 43.035573 ], [ -87.898709, 43.037618 ], [ -87.89827, 43.040356 ], [ -87.899478, 43.04041 ], [ -87.899201, 43.041184 ], [ -87.899417, 43.043094 ], [ -87.898488, 43.043049 ], [ -87.895599, 43.044932 ], [ -87.894683, 43.046206 ], [ -87.890127, 43.05105 ], [ -87.887474, 43.052967 ], [ -87.881685, 43.054333 ], [ -87.87744, 43.057575 ], [ -87.879366, 43.059405 ], [ -87.878561, 43.06023 ], [ -87.876638, 43.060776 ], [ -87.875203, 43.062214 ], [ -87.873584, 43.063886 ], [ -87.87285, 43.065089 ], [ -87.873406, 43.067317 ], [ -87.872324, 43.070963 ], [ -87.872147, 43.07277 ], [ -87.871986, 43.074625 ], [ -87.867237119742796, 43.074691094508161 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.417 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.919819, 43.069425 ], [ -87.919795, 43.071175 ], [ -87.91697, 43.07115 ], [ -87.914023, 43.071124 ], [ -87.909539, 43.071085 ], [ -87.909558, 43.069347 ], [ -87.909578, 43.067521 ], [ -87.914062, 43.067553 ], [ -87.917011, 43.067574 ], [ -87.919843, 43.067597 ], [ -87.919819, 43.069425 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 87.531 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.919843, 43.067597 ], [ -87.917011, 43.067574 ], [ -87.914062, 43.067553 ], [ -87.914108, 43.063922 ], [ -87.919873, 43.063944 ], [ -87.919843, 43.067597 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 96.79 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942655, 43.056313 ], [ -87.937664, 43.056276 ], [ -87.937733, 43.051367 ], [ -87.942773, 43.051395 ], [ -87.942655, 43.056313 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.006 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947573, 43.056378 ], [ -87.946333, 43.056341 ], [ -87.942655, 43.056313 ], [ -87.942773, 43.051395 ], [ -87.946253, 43.051809 ], [ -87.947751, 43.051413 ], [ -87.947573, 43.056378 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 87.525 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926996, 43.05654 ], [ -87.918529, 43.056505 ], [ -87.914224, 43.056476 ], [ -87.914305, 43.051192 ], [ -87.922919, 43.051241 ], [ -87.924319, 43.050785 ], [ -87.924291, 43.052591 ], [ -87.927085, 43.052611 ], [ -87.926996, 43.05654 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.31 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947767, 43.047281 ], [ -87.947757, 43.05005 ], [ -87.947751, 43.051413 ], [ -87.946253, 43.051809 ], [ -87.942773, 43.051395 ], [ -87.942853, 43.045859 ], [ -87.947773, 43.045874 ], [ -87.947767, 43.047281 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.631 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933903, 43.051335 ], [ -87.927098, 43.051299 ], [ -87.927119, 43.045764 ], [ -87.931526, 43.045771 ], [ -87.934016, 43.045896 ], [ -87.933903, 43.051335 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.248 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937733, 43.051367 ], [ -87.933903, 43.051335 ], [ -87.934016, 43.045896 ], [ -87.937811, 43.045844 ], [ -87.937733, 43.051367 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 66.712 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.927119, 43.045764 ], [ -87.914412, 43.045699 ], [ -87.91338, 43.045702 ], [ -87.91328, 43.043324 ], [ -87.912522, 43.041706 ], [ -87.919024, 43.041499 ], [ -87.919035, 43.0402 ], [ -87.92167, 43.04021 ], [ -87.925849, 43.040215 ], [ -87.927174, 43.041589 ], [ -87.927119, 43.045764 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.506 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.928174, 43.036225 ], [ -87.926003, 43.036932 ], [ -87.925451, 43.038655 ], [ -87.92721, 43.038653 ], [ -87.927174, 43.041589 ], [ -87.925849, 43.040215 ], [ -87.92167, 43.04021 ], [ -87.921841, 43.037445 ], [ -87.920514, 43.035581 ], [ -87.923541, 43.034716 ], [ -87.928206, 43.034745 ], [ -87.928174, 43.036225 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 35.961 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.944995, 43.036131 ], [ -87.937914, 43.03612 ], [ -87.937904, 43.037485 ], [ -87.937896, 43.038681 ], [ -87.936658, 43.038678 ], [ -87.932959, 43.038668 ], [ -87.92721, 43.038653 ], [ -87.925451, 43.038655 ], [ -87.926003, 43.036932 ], [ -87.928174, 43.036225 ], [ -87.928206, 43.034745 ], [ -87.932933, 43.034756 ], [ -87.944827, 43.034776 ], [ -87.944994, 43.035339 ], [ -87.944995, 43.036131 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 55.214 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.012372, 43.084389 ], [ -88.009803, 43.084419 ], [ -88.009783, 43.086241 ], [ -88.012369, 43.086213 ], [ -88.012378, 43.089953 ], [ -88.007235, 43.089993 ], [ -88.007298, 43.084448 ], [ -88.007319, 43.082623 ], [ -88.012434, 43.082565 ], [ -88.012372, 43.084389 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 79.167 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.990463, 43.112088 ], [ -87.986191, 43.112036 ], [ -87.986308, 43.105665 ], [ -87.986487, 43.104713 ], [ -87.986478, 43.104699 ], [ -87.989705, 43.104763 ], [ -87.990664, 43.106385 ], [ -87.990463, 43.112088 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 91.217 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.963104, 43.085945 ], [ -87.962165, 43.085947 ], [ -87.957146, 43.085958 ], [ -87.957194, 43.082523 ], [ -87.96316, 43.082514 ], [ -87.963104, 43.085945 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.694 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967007, 43.089884 ], [ -87.962142, 43.089902 ], [ -87.962165, 43.085947 ], [ -87.963104, 43.085945 ], [ -87.96316, 43.082514 ], [ -87.967235, 43.082507 ], [ -87.967007, 43.089884 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 77.764 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.013573, 43.106896 ], [ -88.012539, 43.106915 ], [ -88.01196, 43.107081 ], [ -88.007422, 43.110285 ], [ -88.007546, 43.112273 ], [ -88.006052, 43.112279 ], [ -88.006111, 43.106263 ], [ -88.00649, 43.104998 ], [ -88.011794, 43.104987 ], [ -88.013591, 43.104989 ], [ -88.013573, 43.106896 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 89.869 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.0275, 43.105447 ], [ -88.026038, 43.107789 ], [ -88.026041, 43.106786 ], [ -88.022122, 43.106797 ], [ -88.021611, 43.109331 ], [ -88.017649, 43.106196 ], [ -88.018549, 43.104981 ], [ -88.024681, 43.104968 ], [ -88.027511, 43.104956 ], [ -88.0275, 43.105447 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 69.913 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.014612, 43.112242 ], [ -88.007546, 43.112273 ], [ -88.007422, 43.110285 ], [ -88.01196, 43.107081 ], [ -88.012539, 43.106915 ], [ -88.013573, 43.106896 ], [ -88.014782, 43.108627 ], [ -88.014612, 43.112242 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 81.129 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017649, 43.106196 ], [ -88.016974, 43.107086 ], [ -88.01693, 43.112237 ], [ -88.015804, 43.112236 ], [ -88.014612, 43.112242 ], [ -88.014782, 43.108627 ], [ -88.013573, 43.106896 ], [ -88.013591, 43.104989 ], [ -88.017195, 43.104984 ], [ -88.018549, 43.104981 ], [ -88.017649, 43.106196 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.471 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.976238, 43.119338 ], [ -87.967602, 43.119299 ], [ -87.96627, 43.119293 ], [ -87.964783, 43.115619 ], [ -87.959997, 43.115606 ], [ -87.960036, 43.113784 ], [ -87.960076, 43.111936 ], [ -87.96108, 43.111941 ], [ -87.963324, 43.11195 ], [ -87.966411, 43.111963 ], [ -87.968933, 43.111971 ], [ -87.968884, 43.115638 ], [ -87.976279, 43.115661 ], [ -87.976238, 43.119338 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.348 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.026038, 43.107789 ], [ -88.025934, 43.112576 ], [ -88.024609, 43.111587 ], [ -88.023158, 43.112244 ], [ -88.01693, 43.112237 ], [ -88.016974, 43.107086 ], [ -88.017649, 43.106196 ], [ -88.021611, 43.109331 ], [ -88.022122, 43.106797 ], [ -88.026041, 43.106786 ], [ -88.026038, 43.107789 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.282 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.96627, 43.119293 ], [ -87.963495, 43.119196 ], [ -87.959907, 43.119184 ], [ -87.959997, 43.115606 ], [ -87.964783, 43.115619 ], [ -87.96627, 43.119293 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.296 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.976279, 43.115661 ], [ -87.968884, 43.115638 ], [ -87.968933, 43.111971 ], [ -87.971314, 43.111977 ], [ -87.976319, 43.111991 ], [ -87.976279, 43.115661 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 73.232 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.945082284264487, 43.117306649992912 ], [ -87.945653258993389, 43.117316292119106 ], [ -87.945658453895504, 43.117135247187825 ], [ -87.945976725110341, 43.117140622988572 ], [ -87.946023208912251, 43.115520889061798 ], [ -87.94603, 43.115508 ], [ -87.943893, 43.115459 ], [ -87.943957905075948, 43.113208291758468 ], [ -87.944010287553837, 43.113209168256525 ], [ -87.944552486408796, 43.113252389792727 ], [ -87.944550236392615, 43.113330721246662 ], [ -87.945150747804149, 43.113340763310944 ], [ -87.945748357726146, 43.113350753274702 ], [ -87.945748444886846, 43.113347716649926 ], [ -87.945752, 43.113348 ], [ -87.945783, 43.112256 ], [ -87.945655446695923, 43.112263224950311 ], [ -87.945292283454677, 43.11227468511921 ], [ -87.945226234617692, 43.11228753558099 ], [ -87.943982, 43.112358 ], [ -87.943981237247129, 43.112362063373332 ], [ -87.943978721713449, 43.112362021557381 ], [ -87.943978265742416, 43.112377893309635 ], [ -87.943864921670126, 43.112981699162546 ], [ -87.943586457775027, 43.112977041614016 ], [ -87.943583738557393, 43.113071757617199 ], [ -87.943568027088389, 43.113618696663579 ], [ -87.943455706003746, 43.113616859665555 ], [ -87.943432145352219, 43.11443642179745 ], [ -87.943403379816644, 43.115436992935621 ], [ -87.938497, 43.115381 ], [ -87.938499775040498, 43.115383925140861 ], [ -87.938493526528845, 43.115383819213669 ], [ -87.940050998920512, 43.117021168614947 ], [ -87.940050995091511, 43.117028860715749 ], [ -87.93990916677609, 43.117492918501767 ], [ -87.940050666480957, 43.117689130500857 ], [ -87.940050609292115, 43.117804062835539 ], [ -87.939977836156146, 43.117895648098362 ], [ -87.940050370682101, 43.118283674117976 ], [ -87.940050273523596, 43.11847900044534 ], [ -87.940033355162839, 43.118576151953732 ], [ -87.940048790077313, 43.119028979555225 ], [ -87.936089, 43.118962 ], [ -87.935518, 43.118674 ], [ -87.934224, 43.117096 ], [ -87.933486, 43.113806 ], [ -87.932856, 43.111614 ], [ -87.937004, 43.111667 ], [ -87.939118, 43.111714 ], [ -87.942378, 43.112216 ], [ -87.946469, 43.111819 ], [ -87.94626, 43.119135 ], [ -87.945435, 43.11912 ], [ -87.945041, 43.117385 ], [ -87.945082284264487, 43.117306649992912 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 21.538 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933143270174511, 43.115264311792842 ], [ -87.933141828232124, 43.115258245326949 ], [ -87.929561202181304, 43.11520812027171 ], [ -87.927326, 43.115173 ], [ -87.927330602804332, 43.115216395529494 ], [ -87.92730388619718, 43.116184742264771 ], [ -87.927298987504102, 43.11636229003981 ], [ -87.927463836990896, 43.116472506858528 ], [ -87.927710524117728, 43.118798087072832 ], [ -87.927710141122205, 43.118811970863128 ], [ -87.92665749501802, 43.118795466367182 ], [ -87.926431813789733, 43.118791398764614 ], [ -87.926248924773276, 43.118789057759784 ], [ -87.920880948641809, 43.118704722974798 ], [ -87.920878028024504, 43.118683969580033 ], [ -87.920918349075947, 43.118615337561636 ], [ -87.920960329730747, 43.118566884231569 ], [ -87.921070098048105, 43.118445811355805 ], [ -87.921163124550077, 43.118347831634345 ], [ -87.921214255422939, 43.118288721502076 ], [ -87.921382308053069, 43.118112427119584 ], [ -87.92151128319901, 43.117944946059474 ], [ -87.921565636639187, 43.117871688164094 ], [ -87.921619781351126, 43.117808555520448 ], [ -87.921666831045414, 43.117732960026665 ], [ -87.921704572479825, 43.117681883483129 ], [ -87.921744177420152, 43.117611471321226 ], [ -87.921786844854694, 43.117534593328024 ], [ -87.921787530625807, 43.117533422360147 ], [ -87.923237640921741, 43.115751262246633 ], [ -87.92326946094488, 43.115721969164923 ], [ -87.923283793764639, 43.115694539227235 ], [ -87.923652, 43.115242 ], [ -87.923695817436482, 43.115074051674526 ], [ -87.923703249852224, 43.1150650657721 ], [ -87.923727981288891, 43.115010329213334 ], [ -87.923760371264578, 43.114941683696237 ], [ -87.923774660386769, 43.11489436763879 ], [ -87.923810972044464, 43.114847434362844 ], [ -87.923835815219675, 43.114788438916463 ], [ -87.923852174530239, 43.114715267549741 ], [ -87.923869734946408, 43.114654019114894 ], [ -87.923888846505292, 43.114589567266165 ], [ -87.923913731466854, 43.114529543362806 ], [ -87.923921126676333, 43.114463840053233 ], [ -87.923931513005101, 43.114396036825795 ], [ -87.923948332868804, 43.114335905283625 ], [ -87.923972078148026, 43.114261868556511 ], [ -87.923977994143939, 43.114197248092104 ], [ -87.923987529755465, 43.114166129044207 ], [ -87.924010567546858, 43.114122286544529 ], [ -87.924045415849761, 43.114075401990632 ], [ -87.924078154610328, 43.114023550785582 ], [ -87.924096620286704, 43.113956526125058 ], [ -87.924104032319832, 43.113890871141408 ], [ -87.924167337812591, 43.113693534991711 ], [ -87.924191507238291, 43.113632499658557 ], [ -87.924220909936906, 43.113567252530608 ], [ -87.924235693650019, 43.113499635815813 ], [ -87.924246034252093, 43.113434128569551 ], [ -87.92425035365288, 43.113375004089441 ], [ -87.92424863185542, 43.11332333409878 ], [ -87.924250062277125, 43.113199684169935 ], [ -87.924238060886339, 43.113086625115642 ], [ -87.924235255447428, 43.113018883211055 ], [ -87.924240690071116, 43.112882539019147 ], [ -87.924235059536571, 43.112750322571159 ], [ -87.924236222355034, 43.112641857092527 ], [ -87.924230193617618, 43.112527912043653 ], [ -87.924224332619559, 43.112467685927363 ], [ -87.924222715032556, 43.112413983438124 ], [ -87.924215455047573, 43.112350553284237 ], [ -87.924213196163421, 43.112322622377455 ], [ -87.924188118711726, 43.112265385604069 ], [ -87.924157590990276, 43.112157753944018 ], [ -87.924139694002946, 43.112105015355134 ], [ -87.9241114056573, 43.112054288044433 ], [ -87.924083250195309, 43.112012665276644 ], [ -87.924082, 43.112001 ], [ -87.923951041744729, 43.11172633630941 ], [ -87.923949255465558, 43.111718637214949 ], [ -87.923929583198614, 43.111673573232302 ], [ -87.923914523475531, 43.111621133354653 ], [ -87.923918248222677, 43.111587098604694 ], [ -87.923939515513524, 43.111498928600277 ], [ -87.923962311499295, 43.111473339790884 ], [ -87.92400208720035, 43.111423136749757 ], [ -87.924032106251062, 43.111386517937667 ], [ -87.924075328682832, 43.111355325381062 ], [ -87.924117069324026, 43.111325157289741 ], [ -87.924154246218094, 43.11130444496613 ], [ -87.924203191665541, 43.111285976487416 ], [ -87.924255236952206, 43.111256963711789 ], [ -87.924290834390007, 43.111242562440808 ], [ -87.924351666695514, 43.111215752823576 ], [ -87.924385768612254, 43.111201332830397 ], [ -87.924444942543929, 43.111185088582026 ], [ -87.924518936751653, 43.111159477741644 ], [ -87.924554406931748, 43.111149302383488 ], [ -87.924644560948707, 43.111118587923706 ], [ -87.924694742381277, 43.111104874396425 ], [ -87.924740515330924, 43.11108846458248 ], [ -87.924786270474542, 43.111070992630466 ], [ -87.924823167886828, 43.111055534232257 ], [ -87.924864509516908, 43.111034823848563 ], [ -87.924920578144182, 43.111006870443738 ], [ -87.924972210617284, 43.110977793218552 ], [ -87.925006163244078, 43.110954867382787 ], [ -87.925037105504529, 43.110938267727335 ], [ -87.925073963610373, 43.110914309024551 ], [ -87.925112298949074, 43.110887181558887 ], [ -87.925159501882192, 43.110849541155005 ], [ -87.925210939697962, 43.110826810465674 ], [ -87.925262319825521, 43.110808329314374 ], [ -87.925302008133556, 43.110786516555351 ], [ -87.925345992699391, 43.110773255864608 ], [ -87.925416426243189, 43.110743328947798 ], [ -87.925469885246628, 43.110729125912947 ], [ -87.925513827500964, 43.110715867818257 ], [ -87.925563626965399, 43.110700561982043 ], [ -87.925610526241655, 43.110683096835693 ], [ -87.925660324121267, 43.110666732564617 ], [ -87.92569689011539, 43.110659230458296 ], [ -87.925754645161859, 43.110661516232 ], [ -87.925792133699574, 43.110665117145849 ], [ -87.92586073554412, 43.110674453296539 ], [ -87.925972125618486, 43.11068928449972 ], [ -87.926020184256657, 43.110692016133562 ], [ -87.926063736807436, 43.110704240672867 ], [ -87.926126220247014, 43.11071670031717 ], [ -87.926175648369806, 43.110724750372746 ], [ -87.926241064000877, 43.110735115768691 ], [ -87.926287620895366, 43.110739946950687 ], [ -87.926331182665436, 43.110750039387206 ], [ -87.926385757756336, 43.110754963422039 ], [ -87.926492059627748, 43.110761606735004 ], [ -87.926540162219297, 43.110762217073884 ], [ -87.926593516220706, 43.110754413248912 ], [ -87.926655254836106, 43.110750462106246 ], [ -87.926717448641583, 43.110755384093501 ], [ -87.9267771119668, 43.110759740210455 ], [ -87.926902441013084, 43.110753981285534 ], [ -87.926965057375412, 43.110749001319533 ], [ -87.927035093780063, 43.110742075739893 ], [ -87.927103579653149, 43.110735097866929 ], [ -87.927163164460396, 43.110723753570305 ], [ -87.927224186793765, 43.110712409689214 ], [ -87.927293419625116, 43.110694935423815 ], [ -87.927351442948392, 43.110680339475671 ], [ -87.927412520352547, 43.110658464317893 ], [ -87.927472106761257, 43.110635471025844 ], [ -87.927537622815436, 43.110610431197024 ], [ -87.927598725919751, 43.110583168530887 ], [ -87.927636136078874, 43.110557599791079 ], [ -87.927680908876582, 43.110534192609798 ], [ -87.92773479358776, 43.110497264606977 ], [ -87.927790150730374, 43.110461860875162 ], [ -87.927899490143872, 43.110387679965605 ], [ -87.927948992814279, 43.110351478306079 ], [ -87.928010317473579, 43.110315320283398 ], [ -87.928077554650017, 43.110279137767542 ], [ -87.928131570935747, 43.110240663028868 ], [ -87.928191609603402, 43.110197956357815 ], [ -87.928266476364342, 43.110152118018242 ], [ -87.928320448267371, 43.110116603059957 ], [ -87.928378907896871, 43.110078960395455 ], [ -87.928425497186879, 43.110044355671064 ], [ -87.928488716883621, 43.109993924251576 ], [ -87.928541185672657, 43.109960335609003 ], [ -87.928591719413632, 43.10991607320215 ], [ -87.928648834957556, 43.109873935774324 ], [ -87.928716335757059, 43.109828637239559 ], [ -87.928770342303991, 43.109791738429458 ], [ -87.928823027951282, 43.109749461989892 ], [ -87.928883086338402, 43.109706144668358 ], [ -87.928943293370281, 43.10965691896596 ], [ -87.929001728909142, 43.109617820950064 ], [ -87.929054276047282, 43.10957865522699 ], [ -87.929120175471255, 43.109534234742014 ], [ -87.929190432247708, 43.10949090897158 ], [ -87.929277045268037, 43.109439144492221 ], [ -87.92933347442488, 43.109416061945915 ], [ -87.929384333023023, 43.109381114252301 ], [ -87.929427668811357, 43.109352532540157 ], [ -87.929485690330452, 43.109323010347325 ], [ -87.929548066197285, 43.109294603392826 ], [ -87.929592509156365, 43.109277841567931 ], [ -87.929615610353693, 43.109255449475079 ], [ -87.929665249193206, 43.109229545035191 ], [ -87.92975264834341, 43.109168581426168 ], [ -87.929804855791232, 43.109125041942868 ], [ -87.929835782669215, 43.109099252023455 ], [ -87.931384, 43.113181 ], [ -87.933486, 43.113806 ], [ -87.934224, 43.117096 ], [ -87.935518, 43.118674 ], [ -87.936089, 43.118962 ], [ -87.934862, 43.11894 ], [ -87.933251, 43.115266 ], [ -87.933143270174511, 43.115264311792842 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.307 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.976888, 43.097208 ], [ -87.973405, 43.097198 ], [ -87.972214, 43.09688 ], [ -87.972284, 43.093476 ], [ -87.974634, 43.09349 ], [ -87.974716, 43.089945 ], [ -87.977058, 43.089958 ], [ -87.976888, 43.097208 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.706 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.974634, 43.09349 ], [ -87.972284, 43.093476 ], [ -87.967039, 43.093413 ], [ -87.967007, 43.089884 ], [ -87.968527, 43.089902 ], [ -87.971146, 43.089922 ], [ -87.97349, 43.089922 ], [ -87.974716, 43.089945 ], [ -87.974634, 43.09349 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.972214, 43.09688 ], [ -87.966991, 43.09685 ], [ -87.967039, 43.093413 ], [ -87.972284, 43.093476 ], [ -87.972214, 43.09688 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.573 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.944594, 43.095117 ], [ -87.944707, 43.095626 ], [ -87.943936, 43.095104 ], [ -87.9419, 43.095459 ], [ -87.940613, 43.092894 ], [ -87.938801, 43.089634 ], [ -87.93947, 43.089648 ], [ -87.942007, 43.0897 ], [ -87.944721, 43.089755 ], [ -87.944594, 43.095117 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.314 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946873, 43.095161 ], [ -87.946827, 43.097061 ], [ -87.944707, 43.095626 ], [ -87.944594, 43.095117 ], [ -87.944721, 43.089755 ], [ -87.94574, 43.089776 ], [ -87.947007, 43.089802 ], [ -87.946873, 43.095161 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.12 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946757, 43.100834 ], [ -87.94577, 43.100821 ], [ -87.945351, 43.098957 ], [ -87.94372, 43.098933 ], [ -87.9419, 43.095459 ], [ -87.943936, 43.095104 ], [ -87.944707, 43.095626 ], [ -87.946827, 43.097061 ], [ -87.946757, 43.100834 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 3.743 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.899455, 42.978311 ], [ -87.894444, 42.97832 ], [ -87.894479, 42.976459 ], [ -87.894544, 42.973731 ], [ -87.899557, 42.973734 ], [ -87.899455, 42.978311 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.365 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.89938, 42.982424 ], [ -87.894421, 42.982401 ], [ -87.894378, 42.981025 ], [ -87.894444, 42.97832 ], [ -87.899455, 42.978311 ], [ -87.89938, 42.982424 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.258 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.899333, 42.988311 ], [ -87.896917, 42.988291 ], [ -87.894372, 42.98827 ], [ -87.894421, 42.982401 ], [ -87.89938, 42.982424 ], [ -87.899333, 42.988311 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.61 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.883487814909628, 42.98055650787019 ], [ -87.884531482362078, 42.980568153374143 ], [ -87.88671557349474, 42.980577084363404 ], [ -87.886715651434486, 42.980573220392607 ], [ -87.886873044019922, 42.980574032984009 ], [ -87.88687294514898, 42.9805778800052 ], [ -87.888802797813625, 42.98058764315747 ], [ -87.888802887607113, 42.980583978840656 ], [ -87.888807, 42.980584 ], [ -87.888812580676074, 42.980188419778315 ], [ -87.888814892887666, 42.980094061521811 ], [ -87.88881648982607, 42.979911322629547 ], [ -87.888833, 42.978741 ], [ -87.887077, 42.978733 ], [ -87.8871, 42.97662 ], [ -87.886476, 42.976436 ], [ -87.894479, 42.976459 ], [ -87.894444, 42.97832 ], [ -87.894378, 42.981025 ], [ -87.883652, 42.98096 ], [ -87.88339, 42.980556 ], [ -87.883487814909628, 42.98055650787019 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 21.332 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949047691567117, 42.944859976461132 ], [ -87.949047601803656, 42.944862775290552 ], [ -87.948977625031688, 42.947729531244633 ], [ -87.948914489411067, 42.950315788712381 ], [ -87.948870078087438, 42.952134983426042 ], [ -87.94393, 42.952114 ], [ -87.939079, 42.952072 ], [ -87.939245, 42.944806 ], [ -87.949047691567117, 42.944859976461132 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 21.462 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.943793, 42.959361 ], [ -87.93886, 42.959313 ], [ -87.939079, 42.952072 ], [ -87.94393, 42.952114 ], [ -87.943793, 42.959361 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.84 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947293, 43.07523 ], [ -87.937368, 43.075077 ], [ -87.937396, 43.073242 ], [ -87.947317, 43.073388 ], [ -87.947293, 43.07523 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947259, 43.077015 ], [ -87.944752, 43.076975 ], [ -87.942278, 43.076936 ], [ -87.938756, 43.076879 ], [ -87.937331, 43.076834 ], [ -87.937354, 43.075767 ], [ -87.937368, 43.075077 ], [ -87.947293, 43.07523 ], [ -87.947259, 43.077015 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 91.927 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.917402, 43.082098 ], [ -87.910799, 43.082067 ], [ -87.910924, 43.077559 ], [ -87.915441, 43.077579 ], [ -87.916563, 43.079553 ], [ -87.918385, 43.081712 ], [ -87.917402, 43.082098 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 96.36 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.910799, 43.082067 ], [ -87.90748, 43.082051 ], [ -87.907618, 43.077548 ], [ -87.910924, 43.077559 ], [ -87.910799, 43.082067 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.355 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.883028, 43.066091 ], [ -87.877878, 43.06607 ], [ -87.873584, 43.063886 ], [ -87.875203, 43.062214 ], [ -87.878126, 43.063706 ], [ -87.8781, 43.064896 ], [ -87.883045, 43.064915 ], [ -87.883028, 43.066091 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.351 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.883105, 43.060795 ], [ -87.883063, 43.063722 ], [ -87.883045, 43.064915 ], [ -87.8781, 43.064896 ], [ -87.878126, 43.063706 ], [ -87.875203, 43.062214 ], [ -87.876638, 43.060776 ], [ -87.878561, 43.06023 ], [ -87.879366, 43.059405 ], [ -87.880457, 43.060106 ], [ -87.883763, 43.060112 ], [ -87.883105, 43.060795 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.03 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.93255, 43.06773 ], [ -87.926822, 43.067655 ], [ -87.926857, 43.063999 ], [ -87.932608, 43.06408 ], [ -87.93255, 43.06773 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 23.867 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.989819544805385, 43.036355576214447 ], [ -87.988723217018148, 43.036413264215241 ], [ -87.988723861592504, 43.036770399651985 ], [ -87.988054, 43.037024 ], [ -87.988051038485835, 43.037020849029503 ], [ -87.988050011303244, 43.036448683640316 ], [ -87.987538567902135, 43.036475588162368 ], [ -87.987507, 43.036442 ], [ -87.985510128998627, 43.037005307109403 ], [ -87.985350905948536, 43.037005490781077 ], [ -87.985350984613376, 43.037050198991487 ], [ -87.985021806149334, 43.037143053643078 ], [ -87.984977424109104, 43.03714310469384 ], [ -87.984977506722942, 43.037190466690781 ], [ -87.984901965867564, 43.037691934599785 ], [ -87.984790554593118, 43.037692061988203 ], [ -87.984791794560053, 43.038401986997691 ], [ -87.984056, 43.038399 ], [ -87.984527, 43.036618 ], [ -87.984953, 43.032233 ], [ -87.986187, 43.031443 ], [ -87.988299, 43.030937 ], [ -87.989914, 43.032096 ], [ -87.989932, 43.036313 ], [ -87.989819544805385, 43.036355576214447 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 38.194 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017582, 43.089897 ], [ -88.016271, 43.089912 ], [ -88.012378, 43.089953 ], [ -88.012369, 43.086213 ], [ -88.009783, 43.086241 ], [ -88.009803, 43.084419 ], [ -88.012372, 43.084389 ], [ -88.012434, 43.082565 ], [ -88.017547, 43.082506 ], [ -88.017566, 43.086156 ], [ -88.017582, 43.089897 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 61.254 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952643, 43.023837 ], [ -87.948441, 43.024159 ], [ -87.942242, 43.0242 ], [ -87.94224, 43.022513 ], [ -87.943628, 43.022433 ], [ -87.946403, 43.022274 ], [ -87.952581, 43.021908 ], [ -87.952643, 43.023837 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 69.447 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946403, 43.022274 ], [ -87.943628, 43.022433 ], [ -87.94224, 43.022513 ], [ -87.942244, 43.021129 ], [ -87.94225, 43.019095 ], [ -87.943637, 43.019091 ], [ -87.946408, 43.019085 ], [ -87.946403, 43.022274 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.675 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.993731, 43.107138 ], [ -87.993607, 43.112127 ], [ -87.991174, 43.112097 ], [ -87.990463, 43.112088 ], [ -87.990664, 43.106385 ], [ -87.989705, 43.104763 ], [ -87.993059, 43.104814 ], [ -87.993774, 43.104825 ], [ -87.993731, 43.107138 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.206 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.001943, 43.112672 ], [ -88.001452, 43.112246 ], [ -87.996073, 43.112158 ], [ -87.994842, 43.112143 ], [ -87.993607, 43.112127 ], [ -87.993731, 43.107138 ], [ -87.993774, 43.104825 ], [ -87.995076, 43.104847 ], [ -87.996327, 43.105809 ], [ -87.998407, 43.108479 ], [ -88.002553, 43.11232 ], [ -88.001943, 43.112672 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 75.284 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.006111, 43.106263 ], [ -88.006052, 43.112279 ], [ -88.003529, 43.112218 ], [ -88.002553, 43.11232 ], [ -87.998407, 43.108479 ], [ -87.996327, 43.105809 ], [ -87.995076, 43.104847 ], [ -88.000713, 43.104922 ], [ -88.003311, 43.104956 ], [ -88.00649, 43.104998 ], [ -88.006111, 43.106263 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.159 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.997729, 42.988352 ], [ -87.990006, 42.9884 ], [ -87.990442, 42.985011 ], [ -87.991854, 42.984757 ], [ -87.992766, 42.982062 ], [ -87.997838, 42.982019 ], [ -87.997729, 42.988352 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.642 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.974818350601339, 42.973890864635578 ], [ -87.974820948310438, 42.97376076352127 ], [ -87.974840364328884, 42.973008930455215 ], [ -87.974844970735163, 42.97294054049646 ], [ -87.974014550363052, 42.972947873516745 ], [ -87.974021247547327, 42.972685594815587 ], [ -87.974071919614431, 42.970836932754821 ], [ -87.977562827305405, 42.970833553635153 ], [ -87.977562905498729, 42.97083100183081 ], [ -87.977565, 42.970831 ], [ -87.978323552402259, 42.966676361357862 ], [ -87.978296426887709, 42.967566926694047 ], [ -87.978299882048177, 42.967566843939025 ], [ -87.978232, 42.969779 ], [ -87.983165, 42.970348 ], [ -87.983048, 42.973905 ], [ -87.976854, 42.973911 ], [ -87.974833, 42.973908 ], [ -87.974818350601339, 42.973890864635578 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.364 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.909512, 42.976513 ], [ -87.909482, 42.981038 ], [ -87.909411, 42.988123 ], [ -87.909319, 42.988284 ], [ -87.904397, 42.988299 ], [ -87.903954, 42.9883 ], [ -87.904083, 42.98303 ], [ -87.905472, 42.983127 ], [ -87.905584, 42.973754 ], [ -87.90953, 42.973762 ], [ -87.909512, 42.976513 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 8.789 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.997391982317225, 43.03407487203296 ], [ -87.997388205872497, 43.034074790688642 ], [ -87.996763585476174, 43.034075651159966 ], [ -87.996765421909643, 43.034522762582895 ], [ -87.995541, 43.035398 ], [ -87.99554235446432, 43.035525515211482 ], [ -87.995543707892992, 43.03605419776472 ], [ -87.995393547103234, 43.036062107251254 ], [ -87.99337, 43.036129 ], [ -87.993135793660173, 43.036181011850822 ], [ -87.992185630918101, 43.03623103764437 ], [ -87.991736837671837, 43.036254664272434 ], [ -87.991737275598453, 43.036491578832305 ], [ -87.989942628540106, 43.036890084094196 ], [ -87.989941640250251, 43.036349150981493 ], [ -87.989932126599143, 43.036349651639014 ], [ -87.989932, 43.036313 ], [ -87.989914, 43.032096 ], [ -87.991043, 43.032096 ], [ -87.992406, 43.031412 ], [ -87.993353, 43.032096 ], [ -87.997389, 43.032091 ], [ -87.997396, 43.034072 ], [ -87.997391982317225, 43.03407487203296 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 47.345 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937811, 43.045844 ], [ -87.934016, 43.045896 ], [ -87.93401, 43.043221 ], [ -87.932923, 43.041606 ], [ -87.93786, 43.041606 ], [ -87.937811, 43.045844 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 64.659 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926746, 43.021147 ], [ -87.922538, 43.021194 ], [ -87.922531, 43.019106 ], [ -87.926753, 43.019102 ], [ -87.926746, 43.021147 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 78.313 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.94224, 43.022513 ], [ -87.942242, 43.0242 ], [ -87.93304, 43.024228 ], [ -87.932992, 43.02299 ], [ -87.938088, 43.022759 ], [ -87.938092, 43.021188 ], [ -87.942244, 43.021129 ], [ -87.94224, 43.022513 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.693 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.922747, 43.011026 ], [ -87.918585, 43.011031 ], [ -87.918658, 43.008294 ], [ -87.921406, 43.008295 ], [ -87.921368, 43.010121 ], [ -87.922778, 43.010163 ], [ -87.922747, 43.011026 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 76.581 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933057, 43.012331 ], [ -87.933006, 43.014012 ], [ -87.932999, 43.014246 ], [ -87.928026, 43.014227 ], [ -87.925453, 43.01414 ], [ -87.925602, 43.010159 ], [ -87.933079, 43.010192 ], [ -87.933057, 43.012331 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 20.302 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933608, 42.995632 ], [ -87.92619, 42.995549 ], [ -87.926276, 42.991938 ], [ -87.933749, 42.992013 ], [ -87.933608, 42.995632 ] ], [ [ -87.930032516363767, 42.993943805266419 ], [ -87.930028401685448, 42.994044658225775 ], [ -87.929979390576989, 42.995570235571549 ], [ -87.930032516363767, 42.993943805266419 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 53.869 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933538, 42.999273 ], [ -87.929906, 42.999214 ], [ -87.926117, 42.999201 ], [ -87.926148, 42.997636 ], [ -87.933568, 42.997712 ], [ -87.933538, 42.999273 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.737 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.002030621374089, 42.990343006597932 ], [ -88.001995718713388, 42.991939039992609 ], [ -88.001984332587767, 42.993234335822777 ], [ -88.001969253773794, 42.994130145010345 ], [ -88.001929097177026, 42.995571105047468 ], [ -87.997542, 42.9956 ], [ -87.997677, 42.990355 ], [ -88.002030621374089, 42.990343006597932 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 8.127 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.021889470255346, 43.038511089883116 ], [ -88.021855015947438, 43.035938226153462 ], [ -88.021859055315886, 43.035938192922281 ], [ -88.021893, 43.038511 ], [ -88.021889470255346, 43.038511089883116 ] ] ], [ [ [ -88.016129320804239, 43.036004370983072 ], [ -88.01612830191668, 43.036007235464467 ], [ -88.014316085422649, 43.03602701406205 ], [ -88.012917886752831, 43.035627924637005 ], [ -88.011374797736792, 43.035196323066614 ], [ -88.011203662725151, 43.035161483236436 ], [ -88.016078, 43.036005 ], [ -88.016129320804239, 43.036004370983072 ] ] ], [ [ [ -88.00736023514456, 43.035229316159914 ], [ -88.007301016544858, 43.035235892471441 ], [ -88.007296, 43.035234 ], [ -88.00736023514456, 43.035229316159914 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 8.929 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964497196957581, 42.944877143830965 ], [ -87.964497004554076, 42.944888641216743 ], [ -87.96388668449444, 42.944887165027026 ], [ -87.963271347278138, 42.944885665870878 ], [ -87.963303480181381, 42.943920476394389 ], [ -87.964497196957581, 42.944877143830965 ] ] ], [ [ [ -87.962281961842649, 42.943101778223813 ], [ -87.961977422087969, 42.943287641192462 ], [ -87.961755421841175, 42.943143063495413 ], [ -87.962276, 42.943097 ], [ -87.962281961842649, 42.943101778223813 ] ] ], [ [ [ -87.961468384146471, 42.943168461060807 ], [ -87.961464573717009, 42.943285335396375 ], [ -87.960218901193926, 42.943282153948125 ], [ -87.960219, 42.943279 ], [ -87.961468384146471, 42.943168461060807 ] ] ], [ [ [ -87.96016856479801, 42.944874999179376 ], [ -87.960168427352812, 42.944879691667637 ], [ -87.958932478832381, 42.944875029908999 ], [ -87.958042708347421, 42.944873995302181 ], [ -87.958043187338561, 42.944850823103017 ], [ -87.958058, 42.944871 ], [ -87.96016856479801, 42.944874999179376 ] ] ], [ [ [ -87.95758853624406, 42.944231517847605 ], [ -87.957173822141911, 42.944231498883369 ], [ -87.957184501793563, 42.943696397044633 ], [ -87.956813045586699, 42.943695489320682 ], [ -87.953836080274073, 42.943693901350365 ], [ -87.949088733595715, 42.943689489052282 ], [ -87.949089, 42.943681 ], [ -87.953957, 42.943686 ], [ -87.957191, 42.94369 ], [ -87.95758853624406, 42.944231517847605 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.079 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.891154, 43.079479 ], [ -87.886501, 43.079466 ], [ -87.886546, 43.077661 ], [ -87.882832, 43.077652 ], [ -87.882905, 43.074643 ], [ -87.887862, 43.074652 ], [ -87.887779, 43.077626 ], [ -87.891371, 43.077668 ], [ -87.891154, 43.079479 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.36 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942007, 43.0897 ], [ -87.93947, 43.089648 ], [ -87.939694, 43.08241 ], [ -87.941103, 43.082437 ], [ -87.942154, 43.084647 ], [ -87.942007, 43.0897 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 20.908 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.038369046272734, 43.075000016668099 ], [ -88.038385857009516, 43.074999927139601 ], [ -88.038384296628891, 43.075154967599872 ], [ -88.038290937761388, 43.075319149650866 ], [ -88.037982558379127, 43.075427631126551 ], [ -88.037976, 43.075423 ], [ -88.038369046272734, 43.075000016668099 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.629 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.005955, 43.126868 ], [ -88.00213, 43.126826 ], [ -88.002214, 43.119544 ], [ -88.004081, 43.11946 ], [ -88.005997, 43.119525 ], [ -88.005955, 43.126868 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.439 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.998445, 43.126787 ], [ -87.994638, 43.12674 ], [ -87.994773, 43.119467 ], [ -87.997297, 43.119499 ], [ -87.998528, 43.11951 ], [ -87.998445, 43.126787 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.878 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.963324, 43.11195 ], [ -87.96108, 43.111941 ], [ -87.956907, 43.108251 ], [ -87.95774, 43.108257 ], [ -87.957777, 43.106418 ], [ -87.96026, 43.106429 ], [ -87.961605, 43.108279 ], [ -87.963324, 43.11195 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 61.429 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926640684975581, 43.097119521004345 ], [ -87.926653854957138, 43.097119515263095 ], [ -87.925540103864222, 43.095175008459115 ], [ -87.925436292034647, 43.095174196571115 ], [ -87.925061, 43.094568 ], [ -87.922071, 43.094545 ], [ -87.922046800793467, 43.094548425802088 ], [ -87.921950782095323, 43.094547671890702 ], [ -87.918985957554341, 43.094524351027552 ], [ -87.918994991423318, 43.094614316278658 ], [ -87.919284481474676, 43.09482852846476 ], [ -87.919015047089658, 43.094826406401367 ], [ -87.919092690901792, 43.094883055172836 ], [ -87.919187377201141, 43.094950441377151 ], [ -87.91919069302989, 43.094952717032541 ], [ -87.917069, 43.095253 ], [ -87.919044, 43.094795 ], [ -87.916998, 43.092605 ], [ -87.917192, 43.089307 ], [ -87.92185, 43.089341 ], [ -87.924613, 43.089363 ], [ -87.927095, 43.089382 ], [ -87.926948, 43.093775 ], [ -87.925141, 43.093715 ], [ -87.927655, 43.097959 ], [ -87.927036, 43.097758 ], [ -87.926640684975581, 43.097119521004345 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.94637, 43.103965 ], [ -87.942862, 43.102847 ], [ -87.942879, 43.101875 ], [ -87.939387, 43.100755 ], [ -87.939341, 43.094228 ], [ -87.939407, 43.091977 ], [ -87.940613, 43.092894 ], [ -87.9419, 43.095459 ], [ -87.94372, 43.098933 ], [ -87.945479, 43.102238 ], [ -87.94637, 43.103965 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.085 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.934289, 43.094099 ], [ -87.934209, 43.096904 ], [ -87.929306, 43.096793 ], [ -87.929418, 43.093823 ], [ -87.931933, 43.093873 ], [ -87.932067, 43.089491 ], [ -87.93446, 43.089543 ], [ -87.934289, 43.094099 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.75 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.986653936312422, 42.997581341507008 ], [ -87.986593006900918, 42.997591681687496 ], [ -87.986494692973764, 42.997619169686111 ], [ -87.98667, 42.997545 ], [ -87.986653936312422, 42.997581341507008 ] ] ], [ [ [ -87.985654824566822, 42.997974498819204 ], [ -87.985433278187855, 42.998132865152158 ], [ -87.985309862820472, 42.998245937850655 ], [ -87.985448, 42.998062 ], [ -87.985654824566822, 42.997974498819204 ] ] ], [ [ [ -87.984929173421577, 42.998752841890926 ], [ -87.98474853955436, 42.999092660862047 ], [ -87.984604002066334, 42.999296727064134 ], [ -87.98453008794489, 42.999294637183262 ], [ -87.984522271030414, 42.999294639122176 ], [ -87.984929173421577, 42.998752841890926 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 2.034 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.993408935313482, 42.998879530937536 ], [ -87.993395210241701, 42.998879617140759 ], [ -87.992371115299221, 42.998886048991679 ], [ -87.991257092760762, 42.998893034543578 ], [ -87.990149509852387, 42.99887600876545 ], [ -87.993409, 42.998876 ], [ -87.993408935313482, 42.998879530937536 ] ] ], [ [ [ -87.99009973992743, 42.998876008179707 ], [ -87.989530490321712, 42.998879193214286 ], [ -87.989530557802325, 42.998875313839243 ], [ -87.989534, 42.998876 ], [ -87.99009973992743, 42.998876008179707 ] ] ], [ [ [ -87.988975831190572, 42.998764734196627 ], [ -87.988927142701968, 42.998758392591299 ], [ -87.988927, 42.998755 ], [ -87.988975831190572, 42.998764734196627 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 82.614 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.003311, 43.104956 ], [ -88.000713, 43.104922 ], [ -88.000696, 43.099155 ], [ -87.995648, 43.099163 ], [ -87.995683, 43.097259 ], [ -87.99945, 43.097246 ], [ -88.003136, 43.097228 ], [ -88.003229, 43.100849 ], [ -88.00197, 43.100856 ], [ -88.003311, 43.104956 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 9.413 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.893652, 43.056965 ], [ -87.891971, 43.057659 ], [ -87.889235, 43.056146 ], [ -87.89132, 43.053979 ], [ -87.892328, 43.052932 ], [ -87.893757, 43.052938 ], [ -87.893652, 43.056965 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.684 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.95762, 43.051492 ], [ -87.952283, 43.051452 ], [ -87.947751, 43.051413 ], [ -87.947757, 43.05005 ], [ -87.957631, 43.050119 ], [ -87.95762, 43.051492 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.337 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987519509478332, 43.042194361377959 ], [ -87.98751926259483, 43.042222575004608 ], [ -87.98752175316379, 43.042453835304677 ], [ -87.98752348634298, 43.043564902784496 ], [ -87.987523682485062, 43.043691316418879 ], [ -87.987347, 43.044206 ], [ -87.987431115581487, 43.046578225708735 ], [ -87.987433650568192, 43.047066004115393 ], [ -87.987453322345743, 43.047204461747882 ], [ -87.987547749525461, 43.049867150573256 ], [ -87.987548287668247, 43.049986621476826 ], [ -87.978817, 43.049096 ], [ -87.973032, 43.048781 ], [ -87.972078, 43.048809 ], [ -87.973322, 43.045687 ], [ -87.973194, 43.041646 ], [ -87.975322, 43.042596 ], [ -87.978382, 43.04314 ], [ -87.987519509478332, 43.042194361377959 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.23 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.99242258932675, 43.024179788842126 ], [ -87.99243948754453, 43.024180149891606 ], [ -87.996371631357334, 43.024263608136039 ], [ -87.997408740656994, 43.024285971835802 ], [ -87.99740876725572, 43.02427991262919 ], [ -87.997412, 43.02428 ], [ -87.997388, 43.030301 ], [ -87.997389, 43.032091 ], [ -87.993353, 43.032096 ], [ -87.992406, 43.031412 ], [ -87.992428, 43.030532 ], [ -87.99243, 43.029624 ], [ -87.992433, 43.02781 ], [ -87.992439, 43.024539 ], [ -87.99242258932675, 43.024179788842126 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.079 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.91338, 43.045702 ], [ -87.907297, 43.045757 ], [ -87.906527, 43.038731 ], [ -87.910171, 43.038632 ], [ -87.910462, 43.039364 ], [ -87.912522, 43.041706 ], [ -87.91328, 43.043324 ], [ -87.91338, 43.045702 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 38.223 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.94233, 43.006677 ], [ -87.933234, 43.006548 ], [ -87.933296, 43.004724 ], [ -87.941982, 43.004633 ], [ -87.943046, 43.005305 ], [ -87.94233, 43.006677 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 7.646 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.911118, 42.99416 ], [ -87.910636, 42.995202 ], [ -87.909966, 42.995195 ], [ -87.906755, 42.995205 ], [ -87.906805, 42.991725 ], [ -87.904335, 42.991741 ], [ -87.904397, 42.988299 ], [ -87.909319, 42.988284 ], [ -87.909327, 42.990693 ], [ -87.910911, 42.993741 ], [ -87.911118, 42.99416 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.569 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987483967548044, 43.040242903622115 ], [ -87.987512564207179, 43.040242870149946 ], [ -87.987519667400193, 43.041530713881819 ], [ -87.987483967548044, 43.040242903622115 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 81.779 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.927098, 43.051299 ], [ -87.927085, 43.052611 ], [ -87.924291, 43.052591 ], [ -87.924319, 43.050785 ], [ -87.922919, 43.051241 ], [ -87.914305, 43.051192 ], [ -87.914412, 43.045699 ], [ -87.927119, 43.045764 ], [ -87.927098, 43.051299 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 42.799 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007383, 43.075321 ], [ -88.00736, 43.077925 ], [ -88.001287, 43.075347 ], [ -87.997298, 43.075364 ], [ -87.997371, 43.071266 ], [ -88.001409, 43.070735 ], [ -88.002171, 43.071689 ], [ -88.007413, 43.071676 ], [ -88.007383, 43.075321 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 88.21 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.972436, 43.066097 ], [ -87.972368, 43.071587 ], [ -87.971143, 43.071577 ], [ -87.969907, 43.071567 ], [ -87.97001, 43.064265 ], [ -87.972462, 43.064275 ], [ -87.972436, 43.066097 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.33 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964506, 43.069714 ], [ -87.957386, 43.069726 ], [ -87.957412, 43.067904 ], [ -87.964536, 43.067901 ], [ -87.964506, 43.069714 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 93.688 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.92393, 43.074888 ], [ -87.92378, 43.074887 ], [ -87.916927, 43.074829 ], [ -87.91697, 43.07115 ], [ -87.919795, 43.071175 ], [ -87.923988, 43.071206 ], [ -87.92393, 43.074888 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.772 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.972462, 43.064275 ], [ -87.97001, 43.064265 ], [ -87.96459, 43.064256 ], [ -87.96462, 43.062441 ], [ -87.968858, 43.062444 ], [ -87.968885, 43.06062 ], [ -87.972513, 43.060636 ], [ -87.972462, 43.064275 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.16 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.917302, 43.085519 ], [ -87.910191, 43.085451 ], [ -87.907471, 43.082589 ], [ -87.90748, 43.082051 ], [ -87.910799, 43.082067 ], [ -87.917402, 43.082098 ], [ -87.917302, 43.085519 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 92.289 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.970897, 43.082529 ], [ -87.967235, 43.082507 ], [ -87.967296, 43.07912 ], [ -87.967334, 43.076992 ], [ -87.967366, 43.075192 ], [ -87.967418, 43.071546 ], [ -87.968724, 43.071557 ], [ -87.969907, 43.071567 ], [ -87.971143, 43.071577 ], [ -87.970897, 43.082529 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 96.976 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.95331, 43.081139 ], [ -87.94718, 43.081147 ], [ -87.947259, 43.077015 ], [ -87.947293, 43.07523 ], [ -87.952956, 43.075218 ], [ -87.95331, 43.081139 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 91.304 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964703, 43.056463 ], [ -87.95757, 43.056452 ], [ -87.95762, 43.051492 ], [ -87.959973, 43.051505 ], [ -87.963679, 43.052374 ], [ -87.963639, 43.055586 ], [ -87.965052, 43.056464 ], [ -87.964703, 43.056463 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 3.791 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.899288, 42.99243 ], [ -87.893217, 42.992379 ], [ -87.893254, 42.989667 ], [ -87.893273, 42.988261 ], [ -87.894372, 42.98827 ], [ -87.896917, 42.988291 ], [ -87.896859, 42.989692 ], [ -87.896841, 42.99105 ], [ -87.899308, 42.991069 ], [ -87.899288, 42.99243 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.073 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.871214575553509, 42.988020596047022 ], [ -87.873042826066879, 42.988047238151431 ], [ -87.871214572623913, 42.988020594323281 ], [ -87.870636188595284, 42.987680273952492 ], [ -87.868870982382433, 42.98664163068792 ], [ -87.86901283687655, 42.986556344872099 ], [ -87.869789, 42.986148 ], [ -87.871084480986752, 42.986600754323597 ], [ -87.871394375006886, 42.986760893568118 ], [ -87.874495936676112, 42.985049292940815 ], [ -87.874513708545805, 42.98447967398517 ], [ -87.874516, 42.984478 ], [ -87.877154, 42.984515 ], [ -87.87707, 42.986622 ], [ -87.878183, 42.988153 ], [ -87.871298024594495, 42.98806969679179 ], [ -87.871214575553509, 42.988020596047022 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.729 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.879501, 42.984548 ], [ -87.877154, 42.984515 ], [ -87.874516, 42.984478 ], [ -87.874599, 42.980935 ], [ -87.874698, 42.980511 ], [ -87.879649, 42.980536 ], [ -87.879501, 42.984548 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.125 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.008010497643156, 43.06760638588635 ], [ -88.008010624350064, 43.067573128764586 ], [ -88.009918815572703, 43.067546602995222 ], [ -88.012036854036182, 43.06751712294858 ], [ -88.008010497643156, 43.06760638588635 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.676 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967335, 43.129756 ], [ -87.965204, 43.12991 ], [ -87.962577, 43.131217 ], [ -87.962144, 43.126587 ], [ -87.96333, 43.126598 ], [ -87.967369, 43.126623 ], [ -87.967335, 43.129756 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 85.092 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.966411, 43.111963 ], [ -87.963324, 43.11195 ], [ -87.961605, 43.108279 ], [ -87.962668, 43.108285 ], [ -87.962731, 43.104618 ], [ -87.966527, 43.104621 ], [ -87.966411, 43.111963 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 29.245 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.035381284052178, 43.02511776365975 ], [ -88.036135824864886, 43.02513143707683 ], [ -88.036477749758504, 43.025137869961512 ], [ -88.037024219011656, 43.025154448182469 ], [ -88.035398, 43.025124 ], [ -88.035381284052178, 43.02511776365975 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 64.234 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942297, 43.012444 ], [ -87.940915, 43.012424 ], [ -87.938167, 43.012385 ], [ -87.933057, 43.012331 ], [ -87.933079, 43.010192 ], [ -87.940074, 43.010306 ], [ -87.942309, 43.011266 ], [ -87.942297, 43.012444 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 31.855 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.960983446837858, 43.0098144857797 ], [ -87.960983330557895, 43.009819500488213 ], [ -87.961046988316696, 43.009818630762034 ], [ -87.962743483529493, 43.009929284459751 ], [ -87.96274039508377, 43.010217121879627 ], [ -87.964081293494672, 43.010201485121129 ], [ -87.966324910890719, 43.010166306616547 ], [ -87.966318892991737, 43.010631717631973 ], [ -87.966324822900503, 43.011156332696729 ], [ -87.966339979752618, 43.011482041774777 ], [ -87.966355928090195, 43.011711260455591 ], [ -87.96640922435985, 43.012261052188045 ], [ -87.962719, 43.012312 ], [ -87.962717531251073, 43.012315557198207 ], [ -87.962715792943513, 43.01231558162555 ], [ -87.962715665711457, 43.01232007539268 ], [ -87.961996, 43.014063 ], [ -87.958832, 43.01408 ], [ -87.957596, 43.014087 ], [ -87.957781, 43.006641 ], [ -87.961047, 43.006616 ], [ -87.960976, 43.009814 ], [ -87.960983446837858, 43.0098144857797 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 52.275 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.924933178420829, 42.997640462072098 ], [ -87.924933254433725, 42.997637200834511 ], [ -87.926148, 42.997636 ], [ -87.926117, 42.999201 ], [ -87.918845, 42.99917 ], [ -87.918872, 42.997643 ], [ -87.92493324319679, 42.99763720084556 ], [ -87.924933178420829, 42.997640462072098 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 3.628 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.986494692973764, 42.997619169686111 ], [ -87.986258469392581, 42.997685215972908 ], [ -87.985938932791129, 42.997815094252758 ], [ -87.985676911239011, 42.997958710701582 ], [ -87.985654824566822, 42.997974498819204 ], [ -87.985448, 42.998062 ], [ -87.985309862820472, 42.998245937850655 ], [ -87.985252834136872, 42.998298187133635 ], [ -87.98508467938538, 42.99849659983785 ], [ -87.984981192200138, 42.998654980391962 ], [ -87.984929173421577, 42.998752841890926 ], [ -87.984522271030414, 42.999294639122176 ], [ -87.984387867877956, 42.999294672376102 ], [ -87.977645, 42.999278 ], [ -87.977272, 42.999088 ], [ -87.977705, 42.995643 ], [ -87.977778, 42.992044 ], [ -87.980121, 42.991909 ], [ -87.980785, 42.993693 ], [ -87.982724, 42.993404 ], [ -87.982687, 42.995653 ], [ -87.990034, 42.99565 ], [ -87.989569, 42.996367 ], [ -87.987583, 42.997473 ], [ -87.98667, 42.997545 ], [ -87.986494692973764, 42.997619169686111 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 31.649 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948253965988059, 42.98126699469023 ], [ -87.94702138831542, 42.98125130542806 ], [ -87.948253965970352, 42.981266996248884 ], [ -87.948233, 42.983113 ], [ -87.944629, 42.983041 ], [ -87.944617, 42.983998 ], [ -87.940455, 42.984801 ], [ -87.940511, 42.98117 ], [ -87.942283, 42.981188 ], [ -87.948254, 42.981264 ], [ -87.948253965988059, 42.98126699469023 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 41.588 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948254, 42.981264 ], [ -87.942283, 42.981188 ], [ -87.942345, 42.977526 ], [ -87.942394, 42.97488 ], [ -87.94479, 42.973907 ], [ -87.948333, 42.973935 ], [ -87.948254, 42.981264 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 25.647 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.921787530625807, 43.117533422360147 ], [ -87.921925184802035, 43.11729837412819 ], [ -87.921994572577901, 43.117168787672171 ], [ -87.92228383558394, 43.1168600536881 ], [ -87.922411361117582, 43.116722246345113 ], [ -87.922557731094045, 43.116538629807501 ], [ -87.922704713692909, 43.116369820798937 ], [ -87.922808204027689, 43.116215132922044 ], [ -87.922873721512318, 43.116113689271188 ], [ -87.92290284033767, 43.116061278307974 ], [ -87.922943883022953, 43.116000367535094 ], [ -87.922985863229229, 43.115962090614431 ], [ -87.923063518116336, 43.115903782690104 ], [ -87.923145793131454, 43.115835815871385 ], [ -87.923237640921741, 43.115751262246633 ], [ -87.921787530625807, 43.117533422360147 ] ] ], [ [ [ -87.923283793764639, 43.115694539227235 ], [ -87.923298607089478, 43.115666189678734 ], [ -87.923325023204754, 43.115600620683168 ], [ -87.923354133702276, 43.115545886891297 ], [ -87.923390908572159, 43.115476112143853 ], [ -87.923442104718362, 43.115418460309023 ], [ -87.923481650393114, 43.115356304157828 ], [ -87.923526928601106, 43.115300743404994 ], [ -87.923570768564716, 43.115244094606219 ], [ -87.923616214310982, 43.115181531427694 ], [ -87.923651181077659, 43.115128017638632 ], [ -87.923695817436482, 43.115074051674526 ], [ -87.923652, 43.115242 ], [ -87.923283793764639, 43.115694539227235 ] ] ], [ [ [ -87.924083250195309, 43.112012665276644 ], [ -87.924082893859364, 43.11201213849786 ], [ -87.924054407050718, 43.111967876099783 ], [ -87.924028938293759, 43.111919409544228 ], [ -87.924006454741658, 43.11186887726349 ], [ -87.923976885320087, 43.111804383244035 ], [ -87.923958690880468, 43.111759305051471 ], [ -87.923951041744729, 43.11172633630941 ], [ -87.924082, 43.112001 ], [ -87.924083250195309, 43.112012665276644 ] ] ], [ [ [ -87.93083049196963, 43.108102720532187 ], [ -87.930925629473023, 43.107955279581731 ], [ -87.930952, 43.107993 ], [ -87.93083049196963, 43.108102720532187 ] ] ], [ [ [ -87.929931014612862, 43.106787583141767 ], [ -87.929790401544992, 43.106763837673427 ], [ -87.929605355983313, 43.106742917143244 ], [ -87.929423633099731, 43.106739326779532 ], [ -87.929235514803651, 43.106731641904744 ], [ -87.929058432444123, 43.106707108762095 ], [ -87.928934859194513, 43.106697302565827 ], [ -87.928767135152924, 43.106671234198537 ], [ -87.928629392948963, 43.106652529673497 ], [ -87.928446763769898, 43.106620223632589 ], [ -87.928286472141281, 43.106590735635493 ], [ -87.928064041105642, 43.106528469998487 ], [ -87.927940128077452, 43.106483402878112 ], [ -87.927832071910657, 43.106442751405588 ], [ -87.927692706815236, 43.106388319976851 ], [ -87.927565340971299, 43.106324272811563 ], [ -87.927439382837719, 43.106264493165604 ], [ -87.92727775410836, 43.10616816690063 ], [ -87.927154934647461, 43.10610394131767 ], [ -87.927035474510191, 43.10602889294853 ], [ -87.926938532025346, 43.105966186474454 ], [ -87.926811756952461, 43.105886567046205 ], [ -87.926772178651277, 43.105864047604079 ], [ -87.92673173252895, 43.105837297750163 ], [ -87.926681929629694, 43.105802661843384 ], [ -87.926618085598733, 43.105770554135347 ], [ -87.926557356696847, 43.105725571189858 ], [ -87.926522644335989, 43.105700334002321 ], [ -87.926494588176183, 43.105670876536365 ], [ -87.926464260760866, 43.10564570891966 ], [ -87.926436785074245, 43.105624881596711 ], [ -87.926412357020979, 43.105596548569871 ], [ -87.926387911412263, 43.105569285589674 ], [ -87.926364981782001, 43.105538811660551 ], [ -87.92633626414711, 43.105503945641388 ], [ -87.926308920180475, 43.105474478801746 ], [ -87.926290392251474, 43.105442959787382 ], [ -87.926276205773718, 43.105414722407865 ], [ -87.926259151600235, 43.10538213413605 ], [ -87.926223336692175, 43.105333100432794 ], [ -87.926204771696987, 43.105303711179673 ], [ -87.92619214427387, 43.105268994193288 ], [ -87.926170942843513, 43.105221195896107 ], [ -87.926143897970789, 43.105172227612748 ], [ -87.926130034884309, 43.105123425744075 ], [ -87.926107331370318, 43.105077742523633 ], [ -87.926086309715089, 43.105018027583505 ], [ -87.926076557201824, 43.104986555213372 ], [ -87.926070500345872, 43.104952971699497 ], [ -87.926063641623699, 43.104923701377594 ], [ -87.926063065109048, 43.104867494608698 ], [ -87.926059100168473, 43.104840426336061 ], [ -87.926065507832476, 43.104805929239973 ], [ -87.926058782999021, 43.10476802290281 ], [ -87.92605729719881, 43.104732747300758 ], [ -87.926052489882281, 43.104703114682344 ], [ -87.92604724503785, 43.104664161508282 ], [ -87.92604769442606, 43.104653540867297 ], [ -87.926177, 43.105217 ], [ -87.929931014612862, 43.106787583141767 ] ] ], [ [ [ -87.925530125225251, 43.102398083158434 ], [ -87.925357570751842, 43.102289518333215 ], [ -87.925003096536912, 43.102146290435556 ], [ -87.925050921619459, 43.10031415540552 ], [ -87.925051960759518, 43.100314187251406 ], [ -87.925530125225251, 43.102398083158434 ] ] ], [ [ [ -87.928077664433033, 43.099540580852349 ], [ -87.92701839869477, 43.097737414423975 ], [ -87.926942920730781, 43.097608929366686 ], [ -87.925411291910081, 43.097120050264195 ], [ -87.926640684975581, 43.097119521004345 ], [ -87.927036, 43.097758 ], [ -87.928077664433033, 43.099540580852349 ] ] ], [ [ [ -87.925436292034647, 43.095174196571115 ], [ -87.925032022599225, 43.095171033976605 ], [ -87.925058484337356, 43.094572031766049 ], [ -87.922068455351734, 43.094548595816377 ], [ -87.922071, 43.094545 ], [ -87.925061, 43.094568 ], [ -87.925436292034647, 43.095174196571115 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 39.578 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.922068455351734, 43.094548595816377 ], [ -87.922046800793467, 43.094548425802088 ], [ -87.922071, 43.094545 ], [ -87.922068455351734, 43.094548595816377 ] ] ], [ [ [ -87.91919069302989, 43.094952717032541 ], [ -87.919348808711291, 43.095061231614913 ], [ -87.919509922621302, 43.095166928091807 ], [ -87.919686970175519, 43.095277788897675 ], [ -87.917065859341861, 43.095257124828294 ], [ -87.917075389972254, 43.094783666393788 ], [ -87.918977666868059, 43.094798673564675 ], [ -87.918813068975908, 43.094672849898643 ], [ -87.918603668133471, 43.094503454980149 ], [ -87.918371716525186, 43.094302287199689 ], [ -87.918136941431598, 43.094082213893238 ], [ -87.917910903589416, 43.093852239422141 ], [ -87.917576584547305, 43.093499737073913 ], [ -87.917111116373206, 43.09300894861736 ], [ -87.916990129426594, 43.092881376509069 ], [ -87.916995757999203, 43.092601690645274 ], [ -87.916998, 43.092605 ], [ -87.919044, 43.094795 ], [ -87.917069, 43.095253 ], [ -87.91919069302989, 43.094952717032541 ] ] ], [ [ [ -87.916533016401857, 43.091918641976434 ], [ -87.916513811013559, 43.091898390933991 ], [ -87.916525474105612, 43.09147311724189 ], [ -87.916517, 43.091895 ], [ -87.916533016401857, 43.091918641976434 ] ] ], [ [ [ -87.916545163027436, 43.090492892673751 ], [ -87.916555926474246, 43.089807328600536 ], [ -87.91430528043567, 43.089792437284501 ], [ -87.910544279220829, 43.089767450997115 ], [ -87.907882860832572, 43.08974969645341 ], [ -87.907883, 43.089746 ], [ -87.916559, 43.089804 ], [ -87.916545163027436, 43.090492892673751 ] ] ], [ [ [ -87.907877760630967, 43.089885163669337 ], [ -87.907845716197301, 43.091498942463609 ], [ -87.907744475682492, 43.096596753877741 ], [ -87.907730098444517, 43.097192177778119 ], [ -87.907725410130823, 43.097386087127362 ], [ -87.907817, 43.091499 ], [ -87.907877760630967, 43.089885163669337 ] ] ], [ [ [ -87.916920599943225, 43.104136227966109 ], [ -87.916956849287942, 43.10413669088507 ], [ -87.916946286020291, 43.104581909879627 ], [ -87.916920599943225, 43.104136227966109 ] ] ], [ [ [ -87.910409919160017, 43.104532991120927 ], [ -87.909872305595343, 43.104526565546898 ], [ -87.909597885000437, 43.104522929425514 ], [ -87.909595, 43.104521 ], [ -87.910409919160017, 43.104532991120927 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.832 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.872905383385657, 43.081923131857096 ], [ -87.872819310403003, 43.081923118484262 ], [ -87.870699741418875, 43.081921712535042 ], [ -87.870691315426214, 43.081888068102835 ], [ -87.872905, 43.081919 ], [ -87.872905383385657, 43.081923131857096 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937396, 43.073242 ], [ -87.937368, 43.075077 ], [ -87.937354, 43.075767 ], [ -87.934375, 43.073213 ], [ -87.931045, 43.073219 ], [ -87.929199, 43.073189 ], [ -87.929232, 43.071243 ], [ -87.931832, 43.071388 ], [ -87.9332, 43.071381 ], [ -87.937425, 43.071436 ], [ -87.937396, 43.073242 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 79.145 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.910924, 43.077559 ], [ -87.907618, 43.077548 ], [ -87.907647, 43.076596 ], [ -87.905169, 43.07658 ], [ -87.905229, 43.074747 ], [ -87.909473, 43.074766 ], [ -87.910997, 43.074775 ], [ -87.910924, 43.077559 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.634 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.916927, 43.074829 ], [ -87.91689, 43.077586 ], [ -87.915441, 43.077579 ], [ -87.910924, 43.077559 ], [ -87.910997, 43.074775 ], [ -87.913984, 43.074793 ], [ -87.914023, 43.071124 ], [ -87.91697, 43.07115 ], [ -87.916927, 43.074829 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 30.511 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.894843, 43.068606 ], [ -87.893204, 43.071095 ], [ -87.891519, 43.071074 ], [ -87.88297, 43.071001 ], [ -87.883022, 43.067365 ], [ -87.886722, 43.067387 ], [ -87.894717, 43.067408 ], [ -87.895049, 43.067923 ], [ -87.894843, 43.068606 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 62.424 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.909578, 43.067521 ], [ -87.9053, 43.067493 ], [ -87.905342, 43.063853 ], [ -87.909618, 43.063887 ], [ -87.909578, 43.067521 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.941 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942395, 43.071497 ], [ -87.937425, 43.071436 ], [ -87.937452, 43.069626 ], [ -87.937481, 43.067798 ], [ -87.942457, 43.067854 ], [ -87.942395, 43.071497 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 14.093 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.886722, 43.067387 ], [ -87.883022, 43.067365 ], [ -87.883028, 43.066091 ], [ -87.883045, 43.064915 ], [ -87.883063, 43.063722 ], [ -87.886783, 43.063733 ], [ -87.886722, 43.067387 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 76.268 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.015919, 43.094186 ], [ -88.016082, 43.097105 ], [ -88.007096, 43.097208 ], [ -88.007235, 43.089993 ], [ -88.012378, 43.089953 ], [ -88.016271, 43.089912 ], [ -88.015919, 43.094186 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.022 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.96459, 43.064256 ], [ -87.957466, 43.064263 ], [ -87.957493, 43.062451 ], [ -87.96462, 43.062441 ], [ -87.96459, 43.064256 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.949 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.951579, 43.053964 ], [ -87.951733, 43.056405 ], [ -87.949946, 43.056393 ], [ -87.947573, 43.056378 ], [ -87.947751, 43.051413 ], [ -87.952283, 43.051452 ], [ -87.951579, 43.053964 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.911 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.903521, 43.045729 ], [ -87.89974, 43.0457 ], [ -87.897562, 43.04568 ], [ -87.898253, 43.044118 ], [ -87.903276, 43.043827 ], [ -87.903521, 43.045729 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 63.55 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.934016, 43.045896 ], [ -87.931526, 43.045771 ], [ -87.927119, 43.045764 ], [ -87.927174, 43.041589 ], [ -87.93152, 43.041603 ], [ -87.932923, 43.041606 ], [ -87.93401, 43.043221 ], [ -87.934016, 43.045896 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.929575, 43.089437 ], [ -87.927095, 43.089382 ], [ -87.927302, 43.081674 ], [ -87.929767, 43.081718 ], [ -87.929575, 43.089437 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.978 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.934834, 43.082314 ], [ -87.93446, 43.089543 ], [ -87.932067, 43.089491 ], [ -87.932172, 43.084734 ], [ -87.933353, 43.084759 ], [ -87.933429, 43.081789 ], [ -87.934552, 43.08181 ], [ -87.934834, 43.082314 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.034 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.007319, 43.082623 ], [ -88.007298, 43.084448 ], [ -88.001867, 43.084459 ], [ -88.00024, 43.085142 ], [ -87.997897, 43.086243 ], [ -87.994666, 43.08626 ], [ -87.994638, 43.088092 ], [ -87.989543, 43.088104 ], [ -87.989635, 43.082664 ], [ -87.987134, 43.082668 ], [ -87.987324, 43.075361 ], [ -87.992382, 43.075363 ], [ -87.997298, 43.075364 ], [ -88.001287, 43.075347 ], [ -88.00736, 43.077925 ], [ -88.007319, 43.082623 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 52.178 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977619675393512, 43.000311684123524 ], [ -87.977619536452281, 43.000316499630259 ], [ -87.97762074862203, 43.000437738421198 ], [ -87.977589556847249, 43.002165904229493 ], [ -87.977563838398893, 43.002890815922143 ], [ -87.97699471701479, 43.002893081605258 ], [ -87.976594617522991, 43.002893971696913 ], [ -87.975608013944708, 43.002896164556844 ], [ -87.975957443506104, 43.003013675891246 ], [ -87.977564332423228, 43.003704563273885 ], [ -87.977564288635804, 43.003708540745819 ], [ -87.977562761481934, 43.003847567903875 ], [ -87.968509, 43.000788 ], [ -87.968505778914519, 43.002490300658479 ], [ -87.968501446933672, 43.00290204292267 ], [ -87.968408612606581, 43.002903164365151 ], [ -87.967709541759788, 43.002884931691398 ], [ -87.966505302738014, 43.00289635915464 ], [ -87.961670329103754, 43.00295859148396 ], [ -87.961123938836636, 43.002965238789749 ], [ -87.96112360575917, 43.002990932641573 ], [ -87.961118, 43.002991 ], [ -87.957932, 43.00303 ], [ -87.958019, 43.000361 ], [ -87.958947, 42.995914 ], [ -87.958366, 42.994724 ], [ -87.960947, 42.993337 ], [ -87.967878, 42.989074 ], [ -87.967847, 42.992026 ], [ -87.967827, 42.99387 ], [ -87.967784, 42.997438 ], [ -87.96941, 42.99712 ], [ -87.972762, 43.000218 ], [ -87.975377, 42.999424 ], [ -87.977619675393512, 43.000311684123524 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.648 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977644911004845, 42.999282186857592 ], [ -87.977637655146367, 42.999282053240641 ], [ -87.977632790479205, 42.999555844159353 ], [ -87.977628349359705, 42.999805560701205 ], [ -87.977626242686668, 43.000084070404164 ], [ -87.977619675393512, 43.000311684123524 ], [ -87.975377, 42.999424 ], [ -87.972762, 43.000218 ], [ -87.96941, 42.99712 ], [ -87.967784, 42.997438 ], [ -87.967827, 42.99387 ], [ -87.971546, 42.993842 ], [ -87.971496, 42.995651 ], [ -87.977705, 42.995643 ], [ -87.977272, 42.999088 ], [ -87.977645, 42.999278 ], [ -87.977644911004845, 42.999282186857592 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.67 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.961352, 43.093473 ], [ -87.958299, 43.093479 ], [ -87.958111, 43.096521 ], [ -87.956846, 43.096538 ], [ -87.956814, 43.09692 ], [ -87.957575, 43.098946 ], [ -87.958329, 43.10076 ], [ -87.956812, 43.10076 ], [ -87.956558, 43.100761 ], [ -87.954414, 43.100617 ], [ -87.953009, 43.100854 ], [ -87.95045, 43.099398 ], [ -87.950514, 43.09515 ], [ -87.946873, 43.095161 ], [ -87.947007, 43.089802 ], [ -87.95709, 43.089917 ], [ -87.95836, 43.08992 ], [ -87.961352, 43.093473 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.927095, 43.089382 ], [ -87.924613, 43.089363 ], [ -87.924846, 43.081662 ], [ -87.926081, 43.081672 ], [ -87.927302, 43.081674 ], [ -87.927095, 43.089382 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 22.983 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.027608, 43.076968 ], [ -88.024539, 43.076712 ], [ -88.023811, 43.076991 ], [ -88.023861, 43.080616 ], [ -88.017526, 43.080658 ], [ -88.017462, 43.075206 ], [ -88.018813, 43.075186 ], [ -88.025034, 43.075093 ], [ -88.027588, 43.075054 ], [ -88.027608, 43.076968 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.978 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.025007009604437, 43.067324765613471 ], [ -88.02626221949474, 43.067305334082185 ], [ -88.027521204351018, 43.067285828607226 ], [ -88.02770141443898, 43.067280230356687 ], [ -88.035802711614267, 43.067148271822191 ], [ -88.036338443569946, 43.067143589405106 ], [ -88.037296877559484, 43.06712725490533 ], [ -88.037397528066151, 43.067168842309592 ], [ -88.037445338396751, 43.067605106162667 ], [ -88.038409762501175, 43.06759101047453 ], [ -88.037494737501291, 43.068822115756028 ], [ -88.036861701444963, 43.068836310762549 ], [ -88.036739434922396, 43.0695477436837 ], [ -88.036697612164787, 43.069679974333525 ], [ -88.03664526868549, 43.069812104063416 ], [ -88.036559068603438, 43.069987850933082 ], [ -88.036422523414771, 43.070175459895559 ], [ -88.036299711111212, 43.070316011675949 ], [ -88.036196503686128, 43.070416384769388 ], [ -88.035777773695301, 43.070772892083035 ], [ -88.035643380823629, 43.070902260280278 ], [ -88.03552673254282, 43.071041142349152 ], [ -88.035432945698261, 43.07118175177763 ], [ -88.035370666226243, 43.071299896185572 ], [ -88.035291360991863, 43.071495351551107 ], [ -88.035207459717142, 43.071837897831251 ], [ -88.035188084562847, 43.072121639627191 ], [ -88.035210238039397, 43.072387237110213 ], [ -88.035231553309757, 43.072499949883031 ], [ -88.035328639666204, 43.072940411433336 ], [ -88.03539796243841, 43.073254925125518 ], [ -88.035428559905341, 43.073410447843457 ], [ -88.035512603045547, 43.074040438655935 ], [ -88.035526045889426, 43.074301453729319 ], [ -88.035531575771529, 43.074795469030107 ], [ -88.035531614426318, 43.07479664586473 ], [ -88.030074, 43.075041 ], [ -88.027588, 43.075054 ], [ -88.025034, 43.075093 ], [ -88.025007009604437, 43.067324765613471 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 21.771 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.882832, 43.077652 ], [ -87.882757, 43.081928 ], [ -87.8827, 43.081928 ], [ -87.875455, 43.081921 ], [ -87.875625, 43.07463 ], [ -87.882905, 43.074643 ], [ -87.882832, 43.077652 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 17.083 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.953884956621849, 42.973929809394804 ], [ -87.953887953637064, 42.973929804114476 ], [ -87.953870190251678, 42.975027976965606 ], [ -87.953868, 42.975028 ], [ -87.953884956621849, 42.973929809394804 ] ] ], [ [ [ -87.954318742569868, 42.975023258757226 ], [ -87.956074725389598, 42.974995399988231 ], [ -87.955959723916465, 42.975120974518099 ], [ -87.954752944236546, 42.976011924852664 ], [ -87.953204026601853, 42.977157570534352 ], [ -87.953204, 42.977156 ], [ -87.956053, 42.975005 ], [ -87.954318742569868, 42.975023258757226 ] ] ], [ [ [ -87.953204108537136, 42.977162407871639 ], [ -87.954127321623389, 42.977831946749809 ], [ -87.953919554247264, 42.97798637684501 ], [ -87.95391135035382, 42.978529560999831 ], [ -87.953301754557756, 42.978533151762363 ], [ -87.953281545819351, 42.979421243864756 ], [ -87.953265020318909, 42.980697937643932 ], [ -87.953264, 42.980698 ], [ -87.953204108537136, 42.977162407871639 ] ] ], [ [ [ -87.953874476435843, 42.98066068951848 ], [ -87.95388020230881, 42.980329925543977 ], [ -87.954497078957019, 42.980325647680914 ], [ -87.954494248418428, 42.980490157404454 ], [ -87.955105561809731, 42.980485937267673 ], [ -87.955103959900143, 42.980568208488897 ], [ -87.955423401794448, 42.980566009064361 ], [ -87.953874476435843, 42.98066068951848 ] ] ], [ [ [ -87.956336993100919, 42.980510154430263 ], [ -87.95633765411732, 42.980477937039801 ], [ -87.956930993238032, 42.980473834819655 ], [ -87.956336993100919, 42.980510154430263 ] ] ], [ [ [ -87.956957887581353, 42.98047219031502 ], [ -87.956972987347413, 42.979762270797828 ], [ -87.957082314370879, 42.979761494323327 ], [ -87.957081176221507, 42.979816351966562 ], [ -87.957285813035739, 42.979814906103151 ], [ -87.956961, 42.980472 ], [ -87.956957887581353, 42.98047219031502 ] ] ], [ [ [ -87.957611053790188, 42.979156932200226 ], [ -87.957645328237291, 42.977835244747055 ], [ -87.958244211313527, 42.977839860686586 ], [ -87.958243550836684, 42.977877325398417 ], [ -87.957611053790188, 42.979156932200226 ] ] ], [ [ [ -87.958244211313527, 42.977839860686586 ], [ -87.95826323014866, 42.97676123341946 ], [ -87.958266151629189, 42.976398004964437 ], [ -87.959285797250999, 42.976394799361572 ], [ -87.958262, 42.97784 ], [ -87.958243550954435, 42.977877325160208 ], [ -87.958244211313527, 42.977839860686586 ] ] ], [ [ [ -87.96479647179693, 42.975182013678754 ], [ -87.964834083479602, 42.973911090479099 ], [ -87.964834917563294, 42.973911088994079 ], [ -87.964801, 42.975182 ], [ -87.96479647179693, 42.975182013678754 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 65.539 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.010507, 43.141415 ], [ -88.005481, 43.141443 ], [ -88.00567, 43.134149 ], [ -88.010722, 43.134122 ], [ -88.010507, 43.141415 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 91.775 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.926822, 43.067655 ], [ -87.919843, 43.067597 ], [ -87.919873, 43.063944 ], [ -87.926857, 43.063999 ], [ -87.926822, 43.067655 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 23.192 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.891914, 43.060152 ], [ -87.891631, 43.06015 ], [ -87.883763, 43.060112 ], [ -87.88749, 43.05621 ], [ -87.889235, 43.056146 ], [ -87.891971, 43.057659 ], [ -87.891914, 43.060152 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 82.683 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.005481, 43.141443 ], [ -88.0054, 43.144226 ], [ -88.00534, 43.14593 ], [ -87.991948, 43.13933 ], [ -87.985737, 43.133937 ], [ -87.990847, 43.133987 ], [ -88.00567, 43.134149 ], [ -88.005481, 43.141443 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.497 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.031277741890051, 42.973669420819888 ], [ -88.031432642762084, 42.973668342929152 ], [ -88.032701102854162, 42.973659508947776 ], [ -88.033931430629849, 42.973650927257417 ], [ -88.035752939283384, 42.973641920511398 ], [ -88.031277741890051, 42.973669420819888 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.886 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.943614, 43.062738 ], [ -87.94253, 43.064217 ], [ -87.937542, 43.064157 ], [ -87.937664, 43.056276 ], [ -87.942655, 43.056313 ], [ -87.942548, 43.061714 ], [ -87.943614, 43.062738 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 81.646 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.919873, 43.063944 ], [ -87.914108, 43.063922 ], [ -87.914147, 43.06028 ], [ -87.914224, 43.056476 ], [ -87.918529, 43.056505 ], [ -87.919973, 43.058781 ], [ -87.919873, 43.063944 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.043 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.027464, 42.988199 ], [ -88.017556, 42.988236 ], [ -88.017693, 42.981013 ], [ -88.027608, 42.980947 ], [ -88.027464, 42.988199 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 10.105 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.88967649768928, 42.959240921015848 ], [ -87.889677591096401, 42.959161095743468 ], [ -87.887259648368669, 42.959149834683025 ], [ -87.885584855544238, 42.959141990380502 ], [ -87.883481246109213, 42.959132069529772 ], [ -87.88325, 42.959128 ], [ -87.883266, 42.956827 ], [ -87.885074375438919, 42.945961913166961 ], [ -87.885706033256341, 42.942311806645449 ], [ -87.885701230730689, 42.942311261467559 ], [ -87.88784848525826, 42.930036942974738 ], [ -87.887881133983598, 42.930036903910747 ], [ -87.888084386512347, 42.928874850497259 ], [ -87.888051824567185, 42.92887281106313 ], [ -87.889131405530549, 42.922691404110054 ], [ -87.890672994678326, 42.922698068853194 ], [ -87.890316989409811, 42.930038533848197 ], [ -87.891390473615516, 42.930042439914004 ], [ -87.930254, 42.930271 ], [ -87.93543, 42.930283 ], [ -87.935304, 42.937553 ], [ -87.929521, 42.937522 ], [ -87.929418, 42.944756 ], [ -87.920051, 42.94471 ], [ -87.911932, 42.947397 ], [ -87.909714, 42.947833 ], [ -87.90966, 42.959234 ], [ -87.902151, 42.95923 ], [ -87.889681, 42.959241 ], [ -87.88967649768928, 42.959240921015848 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 1.769 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964425764186331, 42.938368083050129 ], [ -87.964673227154336, 42.938367394575032 ], [ -87.964667543956296, 42.938848798540974 ], [ -87.964598474896917, 42.941226700661069 ], [ -87.964658, 42.938846 ], [ -87.964425764186331, 42.938368083050129 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 18.235 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.982393034123163, 43.018392190271449 ], [ -87.982393994915327, 43.018392012445595 ], [ -87.982402750838929, 43.020063994642754 ], [ -87.9824, 43.020064 ], [ -87.982393034123163, 43.018392190271449 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 0.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.982402750838929, 43.020063994642754 ], [ -87.982404120765182, 43.020325565444665 ], [ -87.9824, 43.020064 ], [ -87.982402750838929, 43.020063994642754 ] ] ], [ [ [ -87.983085183239538, 43.024075565870746 ], [ -87.983131145369839, 43.024071059869669 ], [ -87.9834082084339, 43.024049189094683 ], [ -87.983413643116293, 43.024048896680426 ], [ -87.983085183239538, 43.024075565870746 ] ] ], [ [ [ -87.983784278570866, 43.024028953944921 ], [ -87.983864885158866, 43.024024616595852 ], [ -87.9842426887394, 43.024015000895673 ], [ -87.984539148981412, 43.024014784219126 ], [ -87.986381680907172, 43.024050796492055 ], [ -87.983784278570866, 43.024028953944921 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.216 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.988223668902307, 42.969880369908957 ], [ -87.988234267870979, 42.969600206838443 ], [ -87.98959125674682, 42.969586166328718 ], [ -87.989763000068137, 42.969720561483719 ], [ -87.989938643056732, 42.969827967380482 ], [ -87.990102077536562, 42.969907874214982 ], [ -87.990263860266069, 42.969971711295869 ], [ -87.990510171664781, 42.970056296976466 ], [ -87.990531048098731, 42.970063155638499 ], [ -87.988223668902307, 42.969880369908957 ] ] ], [ [ [ -87.991239457664136, 42.970119264789346 ], [ -87.991384872149624, 42.970117666726722 ], [ -87.991384716692636, 42.970130769387559 ], [ -87.991239457664136, 42.970119264789346 ] ] ], [ [ [ -87.992763885256423, 42.970243160894313 ], [ -87.992769375498, 42.970243140098241 ], [ -87.992708337658939, 42.971773327827712 ], [ -87.992763885256423, 42.970243160894313 ] ] ], [ [ [ -87.992696343493748, 42.972074008587398 ], [ -87.992695749662403, 42.972088895238414 ], [ -87.990120983672682, 42.972108883519297 ], [ -87.990117801345335, 42.972151122697213 ], [ -87.990056898751021, 42.973880992612521 ], [ -87.990056, 42.973881 ], [ -87.990091, 42.972079 ], [ -87.992696, 42.972074 ], [ -87.992696343493748, 42.972074008587398 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.545 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.894004832835222, 42.973194817186908 ], [ -87.894013003298127, 42.972793171538271 ], [ -87.894012673524827, 42.97188083892145 ], [ -87.894059, 42.96619 ], [ -87.897132, 42.967489 ], [ -87.898696, 42.969935 ], [ -87.899597, 42.969935 ], [ -87.899557, 42.973734 ], [ -87.894544, 42.973731 ], [ -87.894004832835222, 42.973194817186908 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.633 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.918758, 43.034694 ], [ -87.9103, 43.03474 ], [ -87.909947, 43.036854 ], [ -87.910171, 43.038632 ], [ -87.906527, 43.038731 ], [ -87.902766, 43.038964 ], [ -87.899837, 43.039188 ], [ -87.899478, 43.04041 ], [ -87.89827, 43.040356 ], [ -87.898709, 43.037618 ], [ -87.900183, 43.035573 ], [ -87.900568, 43.031413 ], [ -87.898927, 43.025085 ], [ -87.90123, 43.024985 ], [ -87.902376, 43.025129 ], [ -87.902796, 43.025492 ], [ -87.90296, 43.025633 ], [ -87.90499, 43.027965 ], [ -87.906605, 43.027089 ], [ -87.91681, 43.027374 ], [ -87.917382, 43.026687 ], [ -87.918218, 43.027776 ], [ -87.918689, 43.033222 ], [ -87.918758, 43.034694 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.421 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.945897, 43.082538 ], [ -87.94369, 43.082486 ], [ -87.942195, 43.082458 ], [ -87.942278, 43.076936 ], [ -87.944752, 43.076975 ], [ -87.944662, 43.081566 ], [ -87.945897, 43.082538 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.15 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946215, 43.064229 ], [ -87.946087, 43.064733 ], [ -87.94253, 43.064217 ], [ -87.943614, 43.062738 ], [ -87.942548, 43.061714 ], [ -87.942655, 43.056313 ], [ -87.946333, 43.056341 ], [ -87.946215, 43.064229 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.095 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937452, 43.069626 ], [ -87.937425, 43.071436 ], [ -87.9332, 43.071381 ], [ -87.933224, 43.069571 ], [ -87.933249, 43.06774 ], [ -87.937481, 43.067798 ], [ -87.937452, 43.069626 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.717 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.957439, 43.066074 ], [ -87.957412, 43.067904 ], [ -87.954, 43.067906 ], [ -87.953948, 43.071565 ], [ -87.952721, 43.071568 ], [ -87.949823, 43.071572 ], [ -87.949875, 43.067908 ], [ -87.949934, 43.064241 ], [ -87.949965, 43.062445 ], [ -87.951204, 43.061009 ], [ -87.953085, 43.06061 ], [ -87.954062, 43.064253 ], [ -87.957466, 43.064263 ], [ -87.957439, 43.066074 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 37.166 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.985296, 43.060693 ], [ -87.985278, 43.06252 ], [ -87.981918, 43.062498 ], [ -87.981934, 43.060678 ], [ -87.981931, 43.059308 ], [ -87.978768, 43.059294 ], [ -87.978778, 43.057137 ], [ -87.9853, 43.05717 ], [ -87.985296, 43.060693 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 20.095 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.883246199892611, 42.959127830467551 ], [ -87.883266083832652, 42.956409031259341 ], [ -87.885074375438919, 42.945961913166961 ], [ -87.883266, 42.956827 ], [ -87.88325, 42.959128 ], [ -87.883246199892611, 42.959127830467551 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.221 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.978786, 43.055208 ], [ -87.978778, 43.057137 ], [ -87.972436, 43.057106 ], [ -87.971918, 43.057102 ], [ -87.971946, 43.05294 ], [ -87.972275, 43.054956 ], [ -87.976151, 43.055195 ], [ -87.975936, 43.053082 ], [ -87.978799, 43.052932 ], [ -87.978786, 43.055208 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 26.74 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.90536, 43.062048 ], [ -87.89791, 43.062009 ], [ -87.897931, 43.060203 ], [ -87.893645, 43.060166 ], [ -87.894715, 43.057959 ], [ -87.896263, 43.05728 ], [ -87.898018, 43.05711 ], [ -87.901169, 43.056687 ], [ -87.904358, 43.054504 ], [ -87.905236, 43.055327 ], [ -87.905338, 43.056453 ], [ -87.905377, 43.060233 ], [ -87.90536, 43.062048 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 9.652 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.99742894346825, 43.068037150262775 ], [ -87.998553870927367, 43.068040071546157 ], [ -87.999644473486711, 43.068042896301208 ], [ -88.000690501967142, 43.068045589586056 ], [ -88.001049738606909, 43.068043815731038 ], [ -88.001855, 43.068046 ], [ -88.002397, 43.069465 ], [ -88.002408667840172, 43.069465025413948 ], [ -88.002408622515148, 43.069468177694375 ], [ -88.002969514213703, 43.069467576720832 ], [ -88.004092112351145, 43.069470578121312 ], [ -88.005172113619736, 43.06947345634574 ], [ -88.006236141163313, 43.069476281141121 ], [ -88.00742331330828, 43.069473036148587 ], [ -88.007423371550075, 43.069470001189444 ], [ -88.007426, 43.06947 ], [ -88.007413, 43.071676 ], [ -88.002171, 43.071689 ], [ -88.001409, 43.070735 ], [ -87.997371, 43.071266 ], [ -87.99742894346825, 43.068037150262775 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 21.93 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.882905, 43.074643 ], [ -87.875625, 43.07463 ], [ -87.871986, 43.074625 ], [ -87.872147, 43.07277 ], [ -87.882942, 43.072814 ], [ -87.882905, 43.074643 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.901 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.89791, 43.062009 ], [ -87.897889, 43.063807 ], [ -87.8978, 43.071092 ], [ -87.8978, 43.071159 ], [ -87.893204, 43.071095 ], [ -87.894843, 43.068606 ], [ -87.895049, 43.067923 ], [ -87.892928, 43.063321 ], [ -87.893645, 43.060166 ], [ -87.897931, 43.060203 ], [ -87.89791, 43.062009 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.556 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.949875, 43.067908 ], [ -87.942457, 43.067854 ], [ -87.94253, 43.064217 ], [ -87.946087, 43.064733 ], [ -87.946215, 43.064229 ], [ -87.949934, 43.064241 ], [ -87.949875, 43.067908 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.377 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.960036, 43.113784 ], [ -87.957629, 43.113772 ], [ -87.956345, 43.115593 ], [ -87.953915, 43.11554 ], [ -87.954001, 43.111895 ], [ -87.956443, 43.11192 ], [ -87.960076, 43.111936 ], [ -87.960036, 43.113784 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 97.571 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.929835782669215, 43.109099252023455 ], [ -87.92983721036434, 43.109098061467968 ], [ -87.929947804415875, 43.108954763088995 ], [ -87.930053422009195, 43.108841486865806 ], [ -87.930345492415668, 43.108591265691636 ], [ -87.930475117220325, 43.108473998323348 ], [ -87.930604480676635, 43.108374251666703 ], [ -87.930771836359924, 43.108193622664352 ], [ -87.93083049196963, 43.108102720532187 ], [ -87.930952, 43.107993 ], [ -87.930925629473023, 43.107955279581731 ], [ -87.93093220983495, 43.107945081526061 ], [ -87.930958584116951, 43.107671227041394 ], [ -87.930886439213893, 43.107402137712043 ], [ -87.930706723155666, 43.107131727419322 ], [ -87.930429858897654, 43.106908634856538 ], [ -87.930232313338635, 43.106830199223893 ], [ -87.930011530093367, 43.106801179784533 ], [ -87.929931014612862, 43.106787583141767 ], [ -87.926177, 43.105217 ], [ -87.92604769442606, 43.104653540867297 ], [ -87.926049574387989, 43.104609110650891 ], [ -87.926052964273737, 43.104579997910875 ], [ -87.926054889200813, 43.104550868768989 ], [ -87.926062107372459, 43.104464615753535 ], [ -87.926065574277473, 43.104430128539605 ], [ -87.926060350314614, 43.104390146541242 ], [ -87.926052106794074, 43.104355533427579 ], [ -87.926059865050959, 43.104327594672768 ], [ -87.926062087139968, 43.104274945051408 ], [ -87.926058342545261, 43.104171707669643 ], [ -87.926065956860583, 43.103947325504265 ], [ -87.926058723408957, 43.103762290288003 ], [ -87.926069441744161, 43.103579235768827 ], [ -87.926059772887712, 43.103400225043615 ], [ -87.926030642135856, 43.103130596741188 ], [ -87.92596856003064, 43.102969329829222 ], [ -87.925898369207871, 43.102781498859905 ], [ -87.925856695455593, 43.102689109342052 ], [ -87.925766043336708, 43.10257354664153 ], [ -87.925550874612014, 43.102411137853224 ], [ -87.925530125225251, 43.102398083158434 ], [ -87.925051960759518, 43.100314187251406 ], [ -87.928595912835902, 43.100422741514791 ], [ -87.928077664433033, 43.099540580852349 ], [ -87.927036, 43.097758 ], [ -87.927655, 43.097959 ], [ -87.928998, 43.100426 ], [ -87.930935, 43.103779 ], [ -87.931653, 43.106452 ], [ -87.936607, 43.106504 ], [ -87.936688, 43.101529 ], [ -87.937037, 43.104383 ], [ -87.937004, 43.111667 ], [ -87.932856, 43.111614 ], [ -87.933486, 43.113806 ], [ -87.931384, 43.113181 ], [ -87.929835782669215, 43.109099252023455 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.619 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946543, 43.108381 ], [ -87.941592, 43.108326 ], [ -87.941646, 43.104438 ], [ -87.937037, 43.104383 ], [ -87.936688, 43.101529 ], [ -87.935065, 43.101005 ], [ -87.934833, 43.100606 ], [ -87.928998, 43.100426 ], [ -87.927655, 43.097959 ], [ -87.942862, 43.102847 ], [ -87.94637, 43.103965 ], [ -87.946655, 43.104498 ], [ -87.946543, 43.108381 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 68.454 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.027641352582705, 43.096980007098367 ], [ -88.027641309212896, 43.096984375790726 ], [ -88.027612683121149, 43.098600017192872 ], [ -88.027596911211162, 43.099555838747698 ], [ -88.027567794663213, 43.101320639891931 ], [ -88.02751614322132, 43.104450924321682 ], [ -88.027518954182142, 43.104450909442768 ], [ -88.027511, 43.104956 ], [ -88.024681, 43.104968 ], [ -88.024721, 43.101695 ], [ -88.025801, 43.101049 ], [ -88.024145, 43.099568 ], [ -88.023413, 43.098833 ], [ -88.022524, 43.097036 ], [ -88.027641352582705, 43.096980007098367 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 80.22 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017301, 43.100749 ], [ -88.017195, 43.104984 ], [ -88.013591, 43.104989 ], [ -88.011794, 43.104987 ], [ -88.011886, 43.10157 ], [ -88.011293, 43.100828 ], [ -88.015013, 43.099284 ], [ -88.017346, 43.09925 ], [ -88.017301, 43.100749 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.124 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.99445, 43.09726 ], [ -87.989362, 43.097262 ], [ -87.98952, 43.090031 ], [ -87.994602, 43.090033 ], [ -87.99445, 43.09726 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.17 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.98952, 43.090031 ], [ -87.989362, 43.097262 ], [ -87.987445, 43.097263 ], [ -87.986769, 43.097261 ], [ -87.986775, 43.096896 ], [ -87.98692, 43.090043 ], [ -87.9832, 43.088928 ], [ -87.985252, 43.088178 ], [ -87.989543, 43.088104 ], [ -87.98952, 43.090031 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 94.54 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.977099, 43.088018 ], [ -87.977058, 43.089958 ], [ -87.974716, 43.089945 ], [ -87.97349, 43.089922 ], [ -87.975837, 43.087819 ], [ -87.975866, 43.086185 ], [ -87.974608, 43.085867 ], [ -87.973135, 43.084722 ], [ -87.971048, 43.083051 ], [ -87.970897, 43.082529 ], [ -87.974545, 43.082551 ], [ -87.97467, 43.082552 ], [ -87.977211, 43.082567 ], [ -87.977099, 43.088018 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 56.047 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967155, 43.035412 ], [ -87.964944, 43.037818 ], [ -87.965171, 43.038816 ], [ -87.957698, 43.038767 ], [ -87.957726, 43.034788 ], [ -87.957744, 43.032098 ], [ -87.957749, 43.031485 ], [ -87.964989, 43.031411 ], [ -87.965983, 43.031911 ], [ -87.967244, 43.033097 ], [ -87.967155, 43.035412 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 73.112 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933285, 43.017014 ], [ -87.927939, 43.017039 ], [ -87.928026, 43.014227 ], [ -87.932999, 43.014246 ], [ -87.932965, 43.016482 ], [ -87.933285, 43.017014 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 19.055 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017556, 42.988236 ], [ -88.0126, 42.988256 ], [ -88.012749, 42.981015 ], [ -88.017693, 42.981013 ], [ -88.017556, 42.988236 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 4.086 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.0126, 42.988256 ], [ -88.007645, 42.988274 ], [ -88.00781, 42.981016 ], [ -88.012749, 42.981015 ], [ -88.0126, 42.988256 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.139 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.987504265635124, 43.064351608285364 ], [ -87.988636535380877, 43.064355275313439 ], [ -87.989066489747188, 43.06435666545336 ], [ -87.987504, 43.064376 ], [ -87.987504265635124, 43.064351608285364 ] ] ], [ [ [ -87.989321691895782, 43.067609168325987 ], [ -87.989322034272405, 43.067575875414299 ], [ -87.989726190718201, 43.067577177964885 ], [ -87.990773398600226, 43.067580550038514 ], [ -87.989321691895782, 43.067609168325987 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.766 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.001049738606909, 43.068043815731038 ], [ -88.001837111977409, 43.068039923857953 ], [ -88.00185499002491, 43.068039931011079 ], [ -88.001855, 43.068046 ], [ -88.001049738606909, 43.068043815731038 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 28.619 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967495391969223, 43.016849019906239 ], [ -87.967495424511199, 43.016852454836858 ], [ -87.966796308151331, 43.016855974916545 ], [ -87.966145105177645, 43.016859912423605 ], [ -87.964781049047119, 43.016867428754814 ], [ -87.963388303731278, 43.01687508704407 ], [ -87.961854951369943, 43.016881393221183 ], [ -87.961855, 43.01688 ], [ -87.967495391969223, 43.016849019906239 ] ] ], [ [ [ -87.962331530287074, 43.02135694590276 ], [ -87.962340261571768, 43.021356395187198 ], [ -87.962346670070815, 43.023434014326106 ], [ -87.962348091688511, 43.023892788271191 ], [ -87.962348842790675, 43.024137183712163 ], [ -87.962294, 43.02343 ], [ -87.962331530287074, 43.02135694590276 ] ] ], [ [ [ -87.969395264093421, 43.023835194284743 ], [ -87.969395184091042, 43.023786486656249 ], [ -87.969383530251022, 43.023415645677638 ], [ -87.96946447381444, 43.02097621649601 ], [ -87.969497755982616, 43.020906971523551 ], [ -87.969395264093421, 43.023835194284743 ] ] ], [ [ [ -87.971074062278575, 43.020420411035005 ], [ -87.971360493001896, 43.02036433013766 ], [ -87.972560223133669, 43.020140376213398 ], [ -87.973703731437965, 43.019945583526486 ], [ -87.974747983882011, 43.019765666340042 ], [ -87.971074062278575, 43.020420411035005 ] ] ], [ [ [ -87.977930844549519, 43.019198329296316 ], [ -87.978092829205195, 43.019168512078636 ], [ -87.978422319071285, 43.01911071637884 ], [ -87.977930844549519, 43.019198329296316 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 96.914 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.967366, 43.075192 ], [ -87.960895, 43.075203 ], [ -87.960925, 43.073365 ], [ -87.957334, 43.073368 ], [ -87.95736, 43.071558 ], [ -87.964475, 43.071544 ], [ -87.967418, 43.071546 ], [ -87.967366, 43.075192 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 62.17 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.946408, 43.019085 ], [ -87.943637, 43.019091 ], [ -87.94225, 43.019095 ], [ -87.942236, 43.017023 ], [ -87.942279, 43.014172 ], [ -87.945052, 43.014165 ], [ -87.945028, 43.017014 ], [ -87.946412, 43.01701 ], [ -87.946408, 43.019085 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 81.431 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942279, 43.014172 ], [ -87.942236, 43.017023 ], [ -87.94225, 43.019095 ], [ -87.936814, 43.019102 ], [ -87.936817, 43.017036 ], [ -87.938121, 43.016012 ], [ -87.940878, 43.016006 ], [ -87.940915, 43.012424 ], [ -87.942297, 43.012444 ], [ -87.942279, 43.014172 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 85.769 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.938153, 43.013538 ], [ -87.936489, 43.015145 ], [ -87.934536, 43.014035 ], [ -87.933006, 43.014012 ], [ -87.933057, 43.012331 ], [ -87.938167, 43.012385 ], [ -87.938153, 43.013538 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 49.156 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.929688, 43.006489 ], [ -87.925734, 43.006467 ], [ -87.925734, 43.006452 ], [ -87.926039, 43.002846 ], [ -87.929832, 43.002877 ], [ -87.929688, 43.006489 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 59.772 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.980974, 43.082606 ], [ -87.977211, 43.082567 ], [ -87.977404, 43.071624 ], [ -87.978606, 43.071635 ], [ -87.980935, 43.071656 ], [ -87.980905, 43.073483 ], [ -87.980796, 43.079295 ], [ -87.980974, 43.082606 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 22.52 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.017272986485324, 43.023950850095517 ], [ -88.023542156432868, 43.023851428002629 ], [ -88.025177, 43.024934 ], [ -88.025193993378622, 43.024934311157551 ], [ -88.025193994265877, 43.024934411113783 ], [ -88.026026114686744, 43.024953291423657 ], [ -88.027304292048285, 43.024975985203476 ], [ -88.028291696828717, 43.024993803304262 ], [ -88.029258766652489, 43.025012339324469 ], [ -88.029613606713269, 43.025018812588151 ], [ -88.03022863079434, 43.025028328838893 ], [ -88.0306831399011, 43.025036066696032 ], [ -88.031855570394825, 43.025057950991325 ], [ -88.032114784862401, 43.025064402306597 ], [ -88.032515347571206, 43.0250702609369 ], [ -88.035398, 43.025124 ], [ -88.037024219011656, 43.025154448182469 ], [ -88.037198391040761, 43.025159731483342 ], [ -88.037234831902779, 43.025160722109952 ], [ -88.042235527565339, 43.025814047264873 ], [ -88.042450648234151, 43.02586152227542 ], [ -88.044894, 43.026651 ], [ -88.045872, 43.03101 ], [ -88.04590439744311, 43.031009427434761 ], [ -88.045905318376541, 43.031013427631024 ], [ -88.047170252888691, 43.031010400386066 ], [ -88.047212220829849, 43.03386833154719 ], [ -88.04720347484097, 43.033943677516248 ], [ -88.047056541573269, 43.034972210832258 ], [ -88.047038161492424, 43.035080782261751 ], [ -88.042258, 43.034714 ], [ -88.042071427271125, 43.034726893097947 ], [ -88.03728395462177, 43.034975680807015 ], [ -88.036620739259433, 43.035010441799116 ], [ -88.034113685768503, 43.03514867254006 ], [ -88.033479335739543, 43.03520706213969 ], [ -88.031693304612133, 43.035443585708421 ], [ -88.031383, 43.035465 ], [ -88.030977, 43.033244 ], [ -88.028666, 43.03321 ], [ -88.027365, 43.031494 ], [ -88.023583049914933, 43.031586851567397 ], [ -88.023568407924742, 43.031178274493442 ], [ -88.01731736766466, 43.031329609312266 ], [ -88.017255367967579, 43.031330704626868 ], [ -88.017238, 43.03133 ], [ -88.017272986485324, 43.023950850095517 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 39.965 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.916753, 43.019085 ], [ -87.909856, 43.019087 ], [ -87.907379, 43.020069 ], [ -87.907385, 43.019605 ], [ -87.903302, 43.019473 ], [ -87.902394, 43.017548 ], [ -87.903557, 43.014337 ], [ -87.90591, 43.010072 ], [ -87.907107, 43.008824 ], [ -87.90834, 43.008273 ], [ -87.90851, 43.008589 ], [ -87.911168, 43.013641 ], [ -87.911173, 43.014158 ], [ -87.916234, 43.014158 ], [ -87.916331, 43.017279 ], [ -87.917281, 43.019079 ], [ -87.916753, 43.019085 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 74.481 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.918658, 43.008294 ], [ -87.918585, 43.011031 ], [ -87.918474, 43.014173 ], [ -87.916234, 43.014158 ], [ -87.916251, 43.006355 ], [ -87.918698, 43.006473 ], [ -87.918658, 43.008294 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 26.836 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.919228, 42.98161 ], [ -87.915757, 42.98231 ], [ -87.915579, 42.981049 ], [ -87.9156, 42.979233 ], [ -87.914482, 42.97651 ], [ -87.909512, 42.976513 ], [ -87.90953, 42.973762 ], [ -87.919349, 42.973772 ], [ -87.919228, 42.98161 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.678 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.939079, 42.952072 ], [ -87.93886, 42.959313 ], [ -87.929211, 42.959269 ], [ -87.929307, 42.95201 ], [ -87.934984, 42.952045 ], [ -87.935192, 42.944783 ], [ -87.939245, 42.944806 ], [ -87.939079, 42.952072 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 25.977 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.037639971212243, 43.098064995813886 ], [ -88.037637189366649, 43.098064995606002 ], [ -88.037637218184386, 43.098061966625494 ], [ -88.03764, 43.098062 ], [ -88.037639971212243, 43.098064995813886 ] ] ], [ [ [ -88.032756237361653, 43.09800330340078 ], [ -88.030988848750411, 43.098004696927568 ], [ -88.030989286917531, 43.097982015514475 ], [ -88.032756237361653, 43.09800330340078 ] ] ], [ [ [ -88.030992395489122, 43.09764266942932 ], [ -88.030657342289899, 43.096948132876541 ], [ -88.030704254817437, 43.096938536056754 ], [ -88.030756072639321, 43.096925694695308 ], [ -88.03079408162175, 43.096914701947746 ], [ -88.030857695192637, 43.096893110773635 ], [ -88.030915380246128, 43.096869760046381 ], [ -88.030977174804235, 43.096840255584205 ], [ -88.031002975747128, 43.096825872330719 ], [ -88.030992395489122, 43.09764266942932 ] ] ], [ [ [ -88.036975899319557, 43.096896281214974 ], [ -88.036979585448989, 43.096360509676202 ], [ -88.036979999750969, 43.096360509180265 ], [ -88.03698, 43.096908 ], [ -88.036975899319557, 43.096896281214974 ] ] ], [ [ [ -88.03697999999747, 43.093474678433175 ], [ -88.036975792706613, 43.093470487946476 ], [ -88.036843887332267, 43.093339118863582 ], [ -88.03654588244504, 43.093054754106582 ], [ -88.037029284827867, 43.09278384527277 ], [ -88.03698, 43.09347 ], [ -88.03697999999747, 43.093474678433175 ] ] ], [ [ [ -88.037092935628465, 43.091897664399852 ], [ -88.037093320061942, 43.091859692743384 ], [ -88.037095662740114, 43.091859695578826 ], [ -88.037092935628465, 43.091897664399852 ] ] ], [ [ [ -88.036146648840202, 43.090647476631794 ], [ -88.035790625190643, 43.09064723601233 ], [ -88.03579458662702, 43.090206837033918 ], [ -88.035788838618203, 43.090206830012434 ], [ -88.035798, 43.090204 ], [ -88.036146648840202, 43.090647476631794 ] ] ], [ [ [ -88.035384936769574, 43.090331597024353 ], [ -88.035381312067528, 43.090646956065378 ], [ -88.035377702561703, 43.090960602988488 ], [ -88.034714731286797, 43.090960422659556 ], [ -88.034709129173379, 43.09119588147653 ], [ -88.034095158884455, 43.091195157641934 ], [ -88.034048276915328, 43.091193625799612 ], [ -88.034037934138283, 43.091313119491858 ], [ -88.034037503079347, 43.091360723340586 ], [ -88.033564547745442, 43.091360137050295 ], [ -88.033371881603543, 43.091357005729336 ], [ -88.033371818251922, 43.091406477026062 ], [ -88.032696823490426, 43.091406657050477 ], [ -88.032699044347737, 43.091161231739029 ], [ -88.035384936769574, 43.090331597024353 ] ] ], [ [ [ -88.03145994782966, 43.091541902984886 ], [ -88.031459908640798, 43.091545851155139 ], [ -88.030847501677087, 43.091545078567577 ], [ -88.030851596596776, 43.091323246154069 ], [ -88.03145994782966, 43.091541902984886 ] ] ], [ [ [ -88.027717386200194, 43.090196655118859 ], [ -88.027709973251277, 43.09019666937936 ], [ -88.02771, 43.090194 ], [ -88.027717386200194, 43.090196655118859 ] ] ], [ [ [ -88.027691108371158, 43.092079280777725 ], [ -88.027686274118679, 43.093320545242427 ], [ -88.027662850957412, 43.094899204894254 ], [ -88.027691108371158, 43.092079280777725 ] ] ], [ [ [ -88.029384097543044, 43.104441021693738 ], [ -88.032626664667447, 43.104423759380886 ], [ -88.032629186350235, 43.104270094254275 ], [ -88.03690118906998, 43.104247212235549 ], [ -88.036899713022336, 43.104400871303312 ], [ -88.037576548552025, 43.104397230935227 ], [ -88.037579104746541, 43.10439909948979 ], [ -88.037579, 43.10441 ], [ -88.029384097543044, 43.104441021693738 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 13.027 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.047038161492424, 43.035080782261751 ], [ -88.047037615643973, 43.035084006591624 ], [ -88.042256939074889, 43.034717248650054 ], [ -88.042071427271125, 43.034726893097947 ], [ -88.042258, 43.034714 ], [ -88.047038161492424, 43.035080782261751 ] ] ], [ [ [ -88.031693304612133, 43.035443585708421 ], [ -88.031460777581387, 43.035474377013756 ], [ -88.031463130825898, 43.035804951070119 ], [ -88.031383, 43.035465 ], [ -88.031693304612133, 43.035443585708421 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.183 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.023542156432868, 43.023851428002629 ], [ -88.023601418583738, 43.023850486530833 ], [ -88.024288460388362, 43.023841229797959 ], [ -88.024292528364839, 43.024300245075082 ], [ -88.025188240398791, 43.024286186062277 ], [ -88.025193993378622, 43.024934311157551 ], [ -88.025177, 43.024934 ], [ -88.023542156432868, 43.023851428002629 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 31.689 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.034855, 43.088648 ], [ -88.029032, 43.088718 ], [ -88.027714, 43.089761 ], [ -88.027684, 43.085022 ], [ -88.027678, 43.084188 ], [ -88.02973, 43.084735 ], [ -88.032218, 43.085722 ], [ -88.035442, 43.087 ], [ -88.034855, 43.088648 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 16.216 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.968590474373784, 42.985765632750109 ], [ -87.968581763611311, 42.986190677387675 ], [ -87.969161070150008, 42.986189220109075 ], [ -87.969163486667725, 42.986071251451555 ], [ -87.96921915433613, 42.986071111077813 ], [ -87.970613189529672, 42.986067591850933 ], [ -87.97091821181067, 42.985882739371945 ], [ -87.971830224135473, 42.985928608945194 ], [ -87.971833632070513, 42.985931639795844 ], [ -87.969902, 42.987099 ], [ -87.96990409461398, 42.98709970151593 ], [ -87.969899155039485, 42.987102688670056 ], [ -87.970272619299934, 42.987435735716424 ], [ -87.970527128745402, 42.987436289527565 ], [ -87.970391131274923, 42.987518480367974 ], [ -87.970383529159676, 42.987876886228896 ], [ -87.97079465376666, 42.987877763904606 ], [ -87.970804757138438, 42.987401341106384 ], [ -87.971101649121394, 42.987500770558569 ], [ -87.971101145579382, 42.987524525153873 ], [ -87.971173038299241, 42.987524678709121 ], [ -87.971646729508635, 42.987683315722009 ], [ -87.971642570920608, 42.987879571709918 ], [ -87.972236531906532, 42.987880833932039 ], [ -87.972243, 42.987883 ], [ -87.972238122244605, 42.987880837307529 ], [ -87.972252798793875, 42.987880868457317 ], [ -87.972268956240256, 42.987018098296247 ], [ -87.972110756553619, 42.987017748349466 ], [ -87.977882434523124, 42.982989186969412 ], [ -87.977886997314698, 42.982986416897589 ], [ -87.977852, 42.98842 ], [ -87.969137, 42.988359 ], [ -87.967886, 42.98835 ], [ -87.967942, 42.985733 ], [ -87.968590474373784, 42.985765632750109 ] ] ], [ [ [ -87.971654078841382, 42.987336469158002 ], [ -87.971650069397569, 42.987525696028968 ], [ -87.971648087544608, 42.987619225858289 ], [ -87.971404, 42.987511 ], [ -87.971654078841382, 42.987336469158002 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.122 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.952610298369407, 43.143508020894949 ], [ -87.949257387246632, 43.135731221434803 ], [ -87.948422, 43.133784 ], [ -87.95176, 43.133826 ], [ -87.953405, 43.135394 ], [ -87.955216, 43.134803 ], [ -87.964914, 43.141274 ], [ -87.965704, 43.141805 ], [ -87.965482, 43.148584 ], [ -87.964238, 43.148575 ], [ -87.964344, 43.144926 ], [ -87.955503, 43.144981 ], [ -87.955141, 43.143531 ], [ -87.952610298369407, 43.143508020894949 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 50.942 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.045934917279453, 43.104343863617018 ], [ -88.049165522134217, 43.104321949914961 ], [ -88.05287998833883, 43.104300218774782 ], [ -88.052907565300458, 43.10430005697318 ], [ -88.05328, 43.106314 ], [ -88.051864, 43.107903 ], [ -88.052377, 43.11007 ], [ -88.051354, 43.114385 ], [ -88.0471, 43.117517 ], [ -88.046658, 43.119321 ], [ -88.045756, 43.119371 ], [ -88.045825, 43.112135 ], [ -88.045934917279453, 43.104343863617018 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 80.038 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948353120199911, 43.133633480925361 ], [ -87.94776304058098, 43.132264481804647 ], [ -87.946321758481346, 43.128907066909896 ], [ -87.946002114739983, 43.128188404842369 ], [ -87.946018490211344, 43.127533299460133 ], [ -87.946162446302566, 43.124573820585908 ], [ -87.946184243634406, 43.123731969356264 ], [ -87.946209351902382, 43.122761999968034 ], [ -87.946168467922206, 43.122168812434559 ], [ -87.946177983658501, 43.121841365146558 ], [ -87.946186636630046, 43.121543690661667 ], [ -87.946191802677149, 43.121365944719606 ], [ -87.946201, 43.121129 ], [ -87.946198713938884, 43.121128150804736 ], [ -87.946205494733178, 43.120894844590815 ], [ -87.945535529810911, 43.12088179713998 ], [ -87.945528, 43.120879 ], [ -87.945526401417368, 43.120848765441025 ], [ -87.945563364889935, 43.119728850275429 ], [ -87.945565986276804, 43.119654371722902 ], [ -87.945463111351614, 43.119651709966831 ], [ -87.945435, 43.11912 ], [ -87.94626, 43.119135 ], [ -87.949034, 43.11917 ], [ -87.950593, 43.119278 ], [ -87.95065, 43.120071 ], [ -87.951202, 43.122801 ], [ -87.95189, 43.126511 ], [ -87.952449, 43.131355 ], [ -87.953405, 43.135394 ], [ -87.95176, 43.133826 ], [ -87.948422, 43.133784 ], [ -87.948353120199911, 43.133633480925361 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 65.123 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -88.065600087425125, 43.116891555786601 ], [ -88.065596925828771, 43.116972477255011 ], [ -88.065513731607439, 43.119099397200912 ], [ -88.065464389198269, 43.12040214304163 ], [ -88.065586946936378, 43.120427169948847 ], [ -88.065589, 43.120677 ], [ -88.065604, 43.124501 ], [ -88.056933, 43.124636 ], [ -88.056854, 43.126445 ], [ -88.055447, 43.126471 ], [ -88.055501, 43.124661 ], [ -88.042814, 43.125197 ], [ -88.042027, 43.124629 ], [ -88.040583, 43.123591 ], [ -88.034929, 43.119569 ], [ -88.036239, 43.119461 ], [ -88.040828, 43.11941 ], [ -88.045756, 43.119371 ], [ -88.046658, 43.119321 ], [ -88.048395, 43.119003 ], [ -88.053997, 43.117263 ], [ -88.055346, 43.117126 ], [ -88.065600087425125, 43.116891555786601 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 25.171 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.898023, 43.056913 ], [ -87.896263, 43.05728 ], [ -87.894715, 43.057959 ], [ -87.893645, 43.060166 ], [ -87.891914, 43.060152 ], [ -87.891971, 43.057659 ], [ -87.893652, 43.056965 ], [ -87.893757, 43.052938 ], [ -87.898125, 43.052958 ], [ -87.898023, 43.056913 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 12.297 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.986524333396943, 43.024053613190915 ], [ -87.99242258932675, 43.024179788842126 ], [ -87.992439, 43.024539 ], [ -87.992433, 43.02781 ], [ -87.985249, 43.027787 ], [ -87.98542, 43.026726 ], [ -87.986524333396943, 43.024053613190915 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 84.725 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.96333, 43.126598 ], [ -87.962144, 43.126587 ], [ -87.95973, 43.126566 ], [ -87.959907, 43.119184 ], [ -87.963495, 43.119196 ], [ -87.96333, 43.126598 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 77.261 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.990847, 43.133987 ], [ -87.985737, 43.133937 ], [ -87.98097, 43.129694 ], [ -87.980997, 43.119335 ], [ -87.983613, 43.11933 ], [ -87.988337, 43.119361 ], [ -87.988329, 43.123015 ], [ -87.986022, 43.12253 ], [ -87.985948, 43.124781 ], [ -87.985873, 43.128892 ], [ -87.985984, 43.129485 ], [ -87.990887, 43.129518 ], [ -87.990847, 43.133987 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.028 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.983613, 43.11933 ], [ -87.980997, 43.119335 ], [ -87.976238, 43.119338 ], [ -87.976279, 43.115661 ], [ -87.983685, 43.115676 ], [ -87.983613, 43.11933 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 85.336 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.984928, 43.115678 ], [ -87.983685, 43.115676 ], [ -87.976279, 43.115661 ], [ -87.976319, 43.111991 ], [ -87.981253, 43.112013 ], [ -87.984953, 43.11203 ], [ -87.984928, 43.115678 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 26.61 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.907297, 43.045757 ], [ -87.903521, 43.045729 ], [ -87.903276, 43.043827 ], [ -87.902766, 43.038964 ], [ -87.906527, 43.038731 ], [ -87.907297, 43.045757 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 5.577 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.998076694564475, 42.97058839024232 ], [ -87.9989376526635, 42.970044901812926 ], [ -88.004924694683979, 42.969975586826202 ], [ -88.008070978439378, 42.96994430293752 ], [ -88.008073874544451, 42.969944264481327 ], [ -88.00781, 42.981016 ], [ -88.006466, 42.981025 ], [ -88.004787, 42.976865 ], [ -87.999866, 42.975588 ], [ -87.999235, 42.97381 ], [ -87.997985, 42.973817 ], [ -87.998076694564475, 42.97058839024232 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 90.575 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.914062, 43.067553 ], [ -87.909578, 43.067521 ], [ -87.909618, 43.063887 ], [ -87.914108, 43.063922 ], [ -87.914062, 43.067553 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 98.571 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.937664, 43.056276 ], [ -87.932737, 43.056164 ], [ -87.931521, 43.055313 ], [ -87.9315, 43.056598 ], [ -87.926996, 43.05654 ], [ -87.927085, 43.052611 ], [ -87.927098, 43.051299 ], [ -87.933903, 43.051335 ], [ -87.937733, 43.051367 ], [ -87.937664, 43.056276 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 86.445 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.942773, 43.051395 ], [ -87.937733, 43.051367 ], [ -87.937811, 43.045844 ], [ -87.942853, 43.045859 ], [ -87.942773, 43.051395 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 24.89 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.92167, 43.04021 ], [ -87.919035, 43.0402 ], [ -87.919024, 43.041499 ], [ -87.912522, 43.041706 ], [ -87.910462, 43.039364 ], [ -87.910171, 43.038632 ], [ -87.909947, 43.036854 ], [ -87.9103, 43.03474 ], [ -87.918758, 43.034694 ], [ -87.918758, 43.035606 ], [ -87.920514, 43.035581 ], [ -87.921841, 43.037445 ], [ -87.92167, 43.04021 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.962142, 43.089902 ], [ -87.95836, 43.08992 ], [ -87.95709, 43.089917 ], [ -87.957146, 43.085958 ], [ -87.962165, 43.085947 ], [ -87.962142, 43.089902 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 95.968 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.953009, 43.100854 ], [ -87.946757, 43.100834 ], [ -87.946827, 43.097061 ], [ -87.946873, 43.095161 ], [ -87.950514, 43.09515 ], [ -87.95045, 43.099398 ], [ -87.953009, 43.100854 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 15.711 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.886460707834289, 42.976058505246435 ], [ -87.886474834928862, 42.974616736738469 ], [ -87.886487933679931, 42.973716908915172 ], [ -87.88636582162421, 42.973716066709265 ], [ -87.886329076990364, 42.97280890080237 ], [ -87.886505910174279, 42.972809620616566 ], [ -87.886506571137389, 42.971953147974048 ], [ -87.886517, 42.971903 ], [ -87.886541784547589, 42.971902306275467 ], [ -87.887124014100834, 42.971904952855638 ], [ -87.888384903874424, 42.971910677209934 ], [ -87.888383989478783, 42.973269789100911 ], [ -87.889281466702187, 42.973279243719212 ], [ -87.88929349009689, 42.971914370756863 ], [ -87.889294204458579, 42.971825232006864 ], [ -87.89073, 42.971785 ], [ -87.890714530116838, 42.971771395215463 ], [ -87.890725381863263, 42.971771375599026 ], [ -87.89072896968996, 42.971159622943539 ], [ -87.890016468378235, 42.971157485505053 ], [ -87.889555678195237, 42.970752234887421 ], [ -87.890732684353353, 42.970793679684903 ], [ -87.890732836291718, 42.970774658711633 ], [ -87.892690511908867, 42.970817170676582 ], [ -87.892909080247733, 42.970825183508204 ], [ -87.892909043832958, 42.970830797817172 ], [ -87.892631522221237, 42.9714479503902 ], [ -87.891832355569207, 42.971446627861638 ], [ -87.891827502168937, 42.971858208771401 ], [ -87.891820975555405, 42.972789894533953 ], [ -87.891817707222614, 42.973257638265565 ], [ -87.891809, 42.973277 ], [ -87.891817574255398, 42.973276667746745 ], [ -87.891817477393914, 42.973290529989924 ], [ -87.894002972591878, 42.973286263057986 ], [ -87.894004832835222, 42.973194817186908 ], [ -87.894544, 42.973731 ], [ -87.894479, 42.976459 ], [ -87.886476, 42.976436 ], [ -87.886460707834289, 42.976058505246435 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 9.37 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.894421, 42.982401 ], [ -87.894372, 42.98827 ], [ -87.893273, 42.988261 ], [ -87.888587, 42.98822 ], [ -87.886989, 42.985102 ], [ -87.883652, 42.98096 ], [ -87.894378, 42.981025 ], [ -87.894421, 42.982401 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 2.126 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.948870078087438, 42.952134983426042 ], [ -87.948869478541312, 42.95215954180847 ], [ -87.948795032793612, 42.9557692588725 ], [ -87.948757581605051, 42.957584885671928 ], [ -87.948719225863329, 42.959407964100656 ], [ -87.943793, 42.959361 ], [ -87.94393, 42.952114 ], [ -87.948870078087438, 42.952134983426042 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 99.637 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.947317, 43.073388 ], [ -87.937396, 43.073242 ], [ -87.937425, 43.071436 ], [ -87.942395, 43.071497 ], [ -87.947341, 43.071577 ], [ -87.947317, 43.073388 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 70.727 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.907618, 43.077548 ], [ -87.90748, 43.082051 ], [ -87.904998, 43.082037 ], [ -87.904981, 43.080132 ], [ -87.905169, 43.07658 ], [ -87.907647, 43.076596 ], [ -87.907618, 43.077548 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 6.68 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.883022, 43.067365 ], [ -87.873406, 43.067317 ], [ -87.87285, 43.065089 ], [ -87.873584, 43.063886 ], [ -87.877878, 43.06607 ], [ -87.883028, 43.066091 ], [ -87.883022, 43.067365 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.933224, 43.069571 ], [ -87.9332, 43.071381 ], [ -87.931832, 43.071388 ], [ -87.929232, 43.071243 ], [ -87.927547, 43.071226 ], [ -87.926758, 43.071226 ], [ -87.926822, 43.067655 ], [ -87.93255, 43.06773 ], [ -87.933249, 43.06774 ], [ -87.933224, 43.069571 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 46.168 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.981078751267475, 42.980682083911688 ], [ -87.981086805498947, 42.980682137856732 ], [ -87.981086920737866, 42.980674077678373 ], [ -87.981087, 42.980674 ], [ -87.981086925890139, 42.980673717312428 ], [ -87.981102769503664, 42.979565557039507 ], [ -87.981135691228502, 42.977541475640329 ], [ -87.981139742683467, 42.977030363988561 ], [ -87.980532118478635, 42.977031274448457 ], [ -87.980541724661961, 42.976476048111238 ], [ -87.979987043507549, 42.976477980969804 ], [ -87.979986, 42.976474 ], [ -87.979985988827664, 42.976477984642415 ], [ -87.979948813501878, 42.976478114088202 ], [ -87.979944251244163, 42.976811033880267 ], [ -87.979906918130993, 42.976810786723249 ], [ -87.979896931359164, 42.977542703743119 ], [ -87.979328384011694, 42.977543614989784 ], [ -87.978041768274522, 42.97754516559845 ], [ -87.978040020119252, 42.977542562080849 ], [ -87.978071042454403, 42.975727852658601 ], [ -87.976823084519708, 42.975725040669097 ], [ -87.976854, 42.973911 ], [ -87.983048, 42.973905 ], [ -87.983068819265768, 42.973904966146364 ], [ -87.983068741680427, 42.973907564009011 ], [ -87.98365866374408, 42.973906681319122 ], [ -87.983635270253927, 42.975715578672968 ], [ -87.983607323072889, 42.977538498712519 ], [ -87.983586372731239, 42.979529736116071 ], [ -87.983576, 42.979536 ], [ -87.981866, 42.980554 ], [ -87.980859, 42.981154 ], [ -87.980137, 42.981605 ], [ -87.981078751267475, 42.980682083911688 ] ] ], [ [ [ -87.984460955199594, 42.973905712004537 ], [ -87.983954252000103, 42.973906238809128 ], [ -87.983954336277478, 42.973902976257989 ], [ -87.984461, 42.973902 ], [ -87.984460955199594, 42.973905712004537 ] ] ] ] } },
{ "type": "Feature", "properties": { "NonWhte": 100.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -87.964559, 43.066066 ], [ -87.957439, 43.066074 ], [ -87.957466, 43.064263 ], [ -87.96459, 43.064256 ], [ -87.964559, 43.066066 ] ] ] ] } }
]
}
|
export { default } from './action';
export { COMMAND_GENERATE } from './action';
|
import headers from './headers'
export {
headers,
}
|
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["fonts/free-solid-svg-icons-faFistRaised-js"],{
/***/ "./node_modules/@fortawesome/free-solid-svg-icons/faFistRaised.js":
/*!************************************************************************!*\
!*** ./node_modules/@fortawesome/free-solid-svg-icons/faFistRaised.js ***!
\************************************************************************/
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
var prefix = 'fas';
var iconName = 'fist-raised';
var width = 384;
var height = 512;
var ligatures = [];
var unicode = 'f6de';
var svgPathData = 'M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93h48.03zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.035 96.035 0 0 0 384 344.21l-.02-88.22zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9zM16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16zm95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16z';
exports.definition = {
prefix: prefix,
iconName: iconName,
icon: [
width,
height,
ligatures,
unicode,
svgPathData
]};
exports.faFistRaised = exports.definition;
exports.prefix = prefix;
exports.iconName = iconName;
exports.width = width;
exports.height = height;
exports.ligatures = ligatures;
exports.unicode = unicode;
exports.svgPathData = svgPathData;
/***/ })
}]);
|
"use strict";
var fx = require("framework");
var Class = fx.import("framework.Class");
var App = fx.import("framework.app.App");
var View = fx.import("framework.ui.view.View");
var CompositeView = fx.import("framework.ui.view.CompositeView");
var FlowLayout = fx.import("framework.ui.layout.FlowLayout");
var FlowLayoutParam = fx.import("framework.ui.layout.FlowLayoutParam");
var ScrollableView = fx.import("framework.ui.view.ScrollableView");
var Switch = fx.import("framework.ui.view.Switch");
Class.define("MyApp", App, {
onStart: function() {
var scrollableView = new ScrollableView();
scrollableView.width = this.window.width;
scrollableView.height = this.window.height;
var colors = ["#FF0000", "#00FF00", "#0000FF", "#FFFF00", "#00FFFF"];
var height = [80, 60, 130, 50, 100, 90, 30];
// code here to define layout style and set property values
this.flow = new FlowLayout();
this.flow.lineSpacing = 20;
this.flow.align = "left";
this.flow.valign = "middle";
this.flow.header = 30;// set the spacing of header
this.flow.defaultParam.itemSpacing = 10;
this.cv = new CompositeView();
this.cv.left = 0;
this.cv.top = 0;
this.cv.height = 300;
this.cv.width = 320;
this.cv.background = "rgb(128, 100, 162)";
this.cv.layout = this.flow;
scrollableView.addChild(this.cv);
var layoutparam = this.flow.getParamAtIndex(1);
layoutparam.itemSpacing = 20;
layoutparam = this.flow.getParamAtIndex(2);
layoutparam.itemSpacing = 30;
for (var i = 0; i < 5; i++) {
var view = new View();
view.background = colors[i % 5];
view.width = 80;
view.height = height[i];
this.cv.addChild(view);
}
this.window.addChild(scrollableView);
}
}, module);
|
'use strict';
/**
* Users controller for user profile relation operations.
*/
var route = require('koa-route'),
parse = require('co-body'),
mongo = require('../config/mongo');
// register koa routes
exports.init = function (app) {
app.use(route.post('/api/users', createUser));
};
/**
* Creates a new user.
*/
function *createUser() {
// todo: check user role === 'admin' when role system is ready
// we need to validate user body with node-validator here not to save junk data in the database..
var user = yield parse(this);
// get the latest userId+1 as the new user id
// this is exceptional to user creation as we want user ids to be sequential numbers and not standard mongo guids
user._id = yield mongo.getNextSequence('userId');
var results = yield mongo.users.insert(user);
this.status = 201;
this.body = {id: results[0]._id};
}
|
const express = require("express");
const router = express.Router();
var cors = require('cors');
const UserService = require("../../services/user");
const userService = new UserService();
var corsOptions = {
"origin": "*",
"methods": "POST",
"preflightContinue": false,
"optionsSuccessStatus": 204
};
router.post("/", cors(corsOptions), async function (req, res, next) {
const { body: user } = req;
try {
const createdUser = await userService.createUser({ user });
res.status(201).json({
data: createdUser,
message: "Usuario creado exitosamente"
});
} catch (err) {
next(err);
}
})
module.exports = router;
|
var setPrototypeOf = require('setprototypeof')
exports.init = function(app) {
return function expressInit(req,res, next) {
setPrototypeOf(res, app.response);
next();
}
};
|
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Compiler, Injectable, Injector } from '@angular/core';
import { NgModuleResolver } from '../index';
import { Map } from '../src/facade/collection';
export class MockNgModuleResolver extends NgModuleResolver {
constructor(_injector) {
super();
this._injector = _injector;
this._ngModules = new Map();
}
get _compiler() { return this._injector.get(Compiler); }
_clearCacheFor(component) { this._compiler.clearCacheFor(component); }
/**
* Overrides the {@link NgModuleMetadata} for a module.
*/
setNgModule(type, metadata) {
this._ngModules.set(type, metadata);
this._clearCacheFor(type);
}
/**
* Returns the {@link NgModuleMetadata} for a module:
* - Set the {@link NgModuleMetadata} to the overridden view when it exists or fallback to the
* default
* `NgModuleResolver`, see `setNgModule`.
*/
resolve(type, throwIfNotFound = true) {
var metadata = this._ngModules.get(type);
if (!metadata) {
metadata = super.resolve(type, throwIfNotFound);
}
return metadata;
}
}
/** @nocollapse */
MockNgModuleResolver.decorators = [
{ type: Injectable },
];
/** @nocollapse */
MockNgModuleResolver.ctorParameters = [
{ type: Injector, },
];
//# sourceMappingURL=ng_module_resolver_mock.js.map
|
import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { compose } from 'recompose';
// Components
import Button from 'components/Button';
import Textarea from '../components/Textarea';
// Styles
import styles from './Form.scss';
const QueryForm = ({
handleSubmit,
}) => (
<form
className={styles.Root}
onSubmit={handleSubmit}
>
<Field component={Textarea} name="query" />
<div className={styles.Actions}>
<div className={styles.Left}>
<Button
classNames={{
root: styles.Save,
icon: styles.SaveIcon,
}}
icon="far fa-bookmark"
/>
<Button
classNames={{
root: styles.Favorite,
icon: styles.FavoriteIcon,
}}
icon="far fa-star"
/>
</div>
<div className={styles.Right}>
<Button className={styles.Reset}>
Reset
</Button>
<Button className={styles.Run}>
Run Current
</Button>
</div>
</div>
</form>
);
export default compose(
reduxForm({
form: 'queryForm',
}),
)(QueryForm);
|
const { ObjectId } = require('mongoose').Types;
const { constructorBasicOneExtraFields } = require('../consts/migrations');
module.exports = {
async up(db, _) {
await db.collection('constructorbasics').updateOne(
{ _id: ObjectId('604e329bb17ecf65048afd6c') },
{
$set: constructorBasicOneExtraFields,
$unset: { material: '', color: '', default: '' },
}
);
},
async down(db, _) {
await db.collection('constructorbasics').updateOne(
{ _id: ObjectId('604e329bb17ecf65048afd6c') },
{
$set: { material: '', color: '', default: '' },
$unset: { constructorBasicOneExtraFields: 1 },
},
false,
true
);
},
};
|
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
|
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
'use strict';
function main(artifact) {
// [START aiplatform_v1_generated_MetadataService_QueryArtifactLineageSubgraph_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The resource name of the Artifact whose Lineage needs to be retrieved as a
* LineageSubgraph.
* Format:
* `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
* The request may error with FAILED_PRECONDITION if the number of Artifacts,
* the number of Executions, or the number of Events that would be returned
* for the Context exceeds 1000.
*/
// const artifact = 'abc123'
/**
* Specifies the size of the lineage graph in terms of number of hops from the
* specified artifact.
* Negative Value: INVALID_ARGUMENT error is returned
* 0: Only input artifact is returned.
* No value: Transitive closure is performed to return the complete graph.
*/
// const maxHops = 1234
/**
* Filter specifying the boolean condition for the Artifacts to satisfy in
* order to be part of the Lineage Subgraph.
* The syntax to define filter query is based on https://google.aip.dev/160.
* The supported set of filters include the following:
* * **Attribute filtering**:
* For example: `display_name = "test"`
* Supported fields include: `name`, `display_name`, `uri`, `state`,
* `schema_title`, `create_time`, and `update_time`.
* Time fields, such as `create_time` and `update_time`, require values
* specified in RFC-3339 format.
* For example: `create_time = "2020-11-19T11:30:00-04:00"`
* * **Metadata field**:
* To filter on metadata fields use traversal operation as follows:
* `metadata.<field_name>.<type_value>`.
* For example: `metadata.field_1.number_value = 10.0`
* Each of the above supported filter types can be combined together using
* logical operators (`AND` & `OR`).
* For example: `display_name = "test" AND metadata.field1.bool_value = true`.
*/
// const filter = 'abc123'
// Imports the Aiplatform library
const {MetadataServiceClient} = require('@google-cloud/aiplatform').v1;
// Instantiates a client
const aiplatformClient = new MetadataServiceClient();
async function queryArtifactLineageSubgraph() {
// Construct request
const request = {
artifact,
};
// Run request
const response = await aiplatformClient.queryArtifactLineageSubgraph(request);
console.log(response);
}
queryArtifactLineageSubgraph();
// [END aiplatform_v1_generated_MetadataService_QueryArtifactLineageSubgraph_async]
}
process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
});
main(...process.argv.slice(2));
|
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
jasmine: {
// you can add configuration options for Jasmine here
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/frontsimples'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
|
import React, { useState } from 'react'
import { AppBar, Tabs, Tab, makeStyles } from '@material-ui/core'
import { OrganizationsSection } from './components/OrganizationsSection'
import { MeasurementsSection } from './components/MeasurementsSection'
import { AdminUserSection } from './components/AdminUserSection'
import { TabPanel } from './components/tabPanel'
export const ManagementPage = () => {
const classes = useStyles()
const [value, setValue] = useState(0)
const handleChange = (event, newValue) => {
setValue(newValue)
}
return (
<div className={classes.root}>
<div className={classes.pageContainer}>
<AppBar className={classes.appBar} position="static" elevation={0}>
<Tabs
value={value}
onChange={handleChange}
classes={{ indicator: classes.indicator }}
>
<Tab label="Organizations" classes={{ root: classes.tabRoot }} />
<Tab label="Measurements" classes={{ root: classes.tabRoot }} />
<Tab label="Admin Users" classes={{ root: classes.tabRoot }} />
</Tabs>
</AppBar>
<TabPanel value={value} index={0}>
<OrganizationsSection />
</TabPanel>
<TabPanel value={value} index={1}>
<MeasurementsSection />
</TabPanel>
<TabPanel value={value} index={2}>
<AdminUserSection />
</TabPanel>
</div>
</div>
)
}
const useStyles = makeStyles((theme) => ({
root: {
margin: '0 -8px',
height: '100vh',
background:
'linear-gradient(180deg, #9bcbeb 7%, #ffffff 90%, rgba(255,255,255,0) 3%)',
},
pageContainer: {
backgroundColor: '#ffffff',
width: '80%',
height: '100vh',
marginLeft: 'auto',
marginRight: 'auto',
padding: '20px',
},
appBar: {
backgroundColor: '#ffffff',
color: theme.palette.primaryBlue,
borderBottom: `1px solid #d3d3d3`,
},
tabRoot: {
fontWeight: '900',
letterSpacing: '2px',
},
indicator: {
backgroundColor: theme.palette.primaryBlue,
height: '5px',
},
}))
|
(function() {
'use strict';
module.exports = function(gulp) {
gulp.task('default', ['help']);
};
}());
|
import * as types from '../mutation-types'
export default {
namespaced: true,
state: {
name: 'ARK',
rate: 1,
symbol: 'Ѧ',
lastConversion: {
to: 'USD',
timestamp: 1,
rate: 1
}
},
mutations: {
[types.SET_CURRENCY_NAME] (state, payload) {
state.name = payload.value
},
[types.SET_CURRENCY_RATE] (state, payload) {
state.rate = payload.value
},
[types.SET_CURRENCY_SYMBOL] (state, payload) {
state.symbol = payload.value
},
[types.SET_CURRENCY_LAST_CONVERSION] (state, payload) {
state.lastConversion = payload.value
}
},
actions: {
setName: ({ commit }, value) => {
localStorage.setItem('currencyName', value)
commit({
type: types.SET_CURRENCY_NAME,
value
})
},
setRate: ({ commit }, value) => {
localStorage.setItem('currencyRate', value)
commit({
type: types.SET_CURRENCY_RATE,
value
})
},
setSymbol: ({ commit }, value) => {
localStorage.setItem('currencySymbol', value)
commit({
type: types.SET_CURRENCY_SYMBOL,
value
})
},
setLastConversion: ({ commit }, value) => {
let rates = JSON.parse(localStorage.getItem(`rates_${value.to}`))
rates = rates || {}
rates[value.timestamp] = value.rate
localStorage.setItem(`rates_${value.to}`, JSON.stringify(rates))
commit({
type: types.SET_CURRENCY_LAST_CONVERSION,
value
})
}
},
getters: {
name: state => state.name,
rate: state => state.rate,
symbol: state => state.symbol,
lastConversion: state => state.lastConversion
}
}
|
var searchData=
[
['insert_5fclicked_0',['insert_clicked',['../classgomaengine_1_1_sound_component.html#a5e770e785dfed3dc5259dbe3c92f4c96',1,'gomaengine::SoundComponent']]],
['is_5fclicked_1',['is_clicked',['../classgomaengine_1_1_game_object.html#a22b648b13c2bb159647510adcdc6ef08',1,'gomaengine::GameObject']]]
];
|
const Pending = require('../../../Schemas/user_pending')
const { parseImg } = require('../../../Schemas/query')
const { ErrorHandler, dbCatch } = require('../../../error')
const asyncHandler = require('express-async-handler')
/**
* @api {post} /register_step2 registerStep2
* @apiName RegisterStep2
* @apiGroup Out/account
* @apiDescription 註冊,新增照片(供管理員檢視)
*
* @apiHeaderExample {json} config
{ "content-type": "multipart/form-data" }
*
* @apiparam {String} account 學號
* @apiparam {File} file 身分證明
*
* @apiSuccess (201) {String} - -
*
* @apiError (400) {String} description img not given
* @apiError (404) {String} description account not found
*
* @apiError (500) {String} description 資料庫錯誤
*/
const main = async (req, res) => {
if (!req.file) throw new ErrorHandler(400, 'img not given')
const { account } = req.body
const isPending = await Pending.exist({ account }).catch(dbCatch)
if (!isPending) throw new ErrorHandler(404, 'account not found')
await Pending.findOneAndUpdate(
{ account },
{ img: parseImg(req.file) },
{
useFindAndModify: false,
},
).catch(dbCatch)
return res.end()
}
const valid = require('../../../middleware/validation')
const rules = ['account']
module.exports = [valid(rules), asyncHandler(main)]
|
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import WindiCSS from 'vite-plugin-windicss'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [WindiCSS(), svelte()]
})
|
const notFoundMiddleware = (req, res) => {
res.status(404).send("Route does not exist");
};
export default notFoundMiddleware;
|
import { __rest } from "tslib";
import React from 'react';
export function Image(_a) {
var { sourceSet, source, crossOrigin } = _a, rest = __rest(_a, ["sourceSet", "source", "crossOrigin"]);
const finalSourceSet = sourceSet
? sourceSet
.map(({ source: subSource, descriptor }) => `${subSource} ${descriptor}`)
.join(',')
: null;
return finalSourceSet ? (
// eslint-disable-next-line jsx-a11y/alt-text
<img src={source} srcSet={finalSourceSet} crossOrigin={crossOrigin} {...rest}/>) : (
// eslint-disable-next-line jsx-a11y/alt-text
<img src={source} {...rest} crossOrigin={crossOrigin}/>);
}
|
/*
* 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.
*
*/
/* jshint sub:true */
var fs = require('fs');
var path = require('path');
var shelljs = require('shelljs');
var mungeutil = require('./ConfigChanges/munge-util');
var pluginMappernto = require('cordova-registry-mapper').newToOld;
var pluginMapperotn = require('cordova-registry-mapper').oldToNew;
function PlatformJson(filePath, platform, root) {
this.filePath = filePath;
this.platform = platform;
this.root = fix_munge(root || {});
}
PlatformJson.load = function(plugins_dir, platform) {
var filePath = path.join(plugins_dir, platform + '.json');
var root = null;
if (fs.existsSync(filePath)) {
root = JSON.parse(fs.readFileSync(filePath, 'utf-8'));
}
return new PlatformJson(filePath, platform, root);
};
PlatformJson.prototype.save = function() {
shelljs.mkdir('-p', path.dirname(this.filePath));
fs.writeFileSync(this.filePath, JSON.stringify(this.root, null, 4), 'utf-8');
};
/**
* Indicates whether the specified plugin is installed as a top-level (not as
* dependency to others)
* @method function
* @param {String} pluginId A plugin id to check for.
* @return {Boolean} true if plugin installed as top-level, otherwise false.
*/
PlatformJson.prototype.isPluginTopLevel = function(pluginId) {
var installedPlugins = this.root.installed_plugins;
return installedPlugins[pluginId] ||
installedPlugins[pluginMappernto[pluginId]] ||
installedPlugins[pluginMapperotn[pluginId]];
};
/**
* Indicates whether the specified plugin is installed as a dependency to other
* plugin.
* @method function
* @param {String} pluginId A plugin id to check for.
* @return {Boolean} true if plugin installed as a dependency, otherwise false.
*/
PlatformJson.prototype.isPluginDependent = function(pluginId) {
var dependentPlugins = this.root.dependent_plugins;
return dependentPlugins[pluginId] ||
dependentPlugins[pluginMappernto[pluginId]] ||
dependentPlugins[pluginMapperotn[pluginId]];
};
/**
* Indicates whether plugin is installed either as top-level or as dependency.
* @method function
* @param {String} pluginId A plugin id to check for.
* @return {Boolean} true if plugin installed, otherwise false.
*/
PlatformJson.prototype.isPluginInstalled = function(pluginId) {
return this.isPluginTopLevel(pluginId) ||
this.isPluginDependent(pluginId);
};
PlatformJson.prototype.addPlugin = function(pluginId, variables, isTopLevel) {
var pluginsList = isTopLevel ?
this.root.installed_plugins :
this.root.dependent_plugins;
pluginsList[pluginId] = variables;
return this;
};
PlatformJson.prototype.removePlugin = function(pluginId, isTopLevel) {
var pluginsList = isTopLevel ?
this.root.installed_plugins :
this.root.dependent_plugins;
delete pluginsList[pluginId];
return this;
};
PlatformJson.prototype.addInstalledPluginToPrepareQueue = function(pluginDirName, vars, is_top_level) {
this.root.prepare_queue.installed.push({'plugin':pluginDirName, 'vars':vars, 'topLevel':is_top_level});
};
PlatformJson.prototype.addUninstalledPluginToPrepareQueue = function(pluginId, is_top_level) {
this.root.prepare_queue.uninstalled.push({'plugin':pluginId, 'id':pluginId, 'topLevel':is_top_level});
};
/**
* Moves plugin, specified by id to top-level plugins. If plugin is top-level
* already, then does nothing.
* @method function
* @param {String} pluginId A plugin id to make top-level.
* @return {PlatformJson} PlatformJson instance.
*/
PlatformJson.prototype.makeTopLevel = function(pluginId) {
var plugin = this.root.dependent_plugins[pluginId];
if (plugin) {
delete this.root.dependent_plugins[pluginId];
this.root.installed_plugins[pluginId] = plugin;
}
return this;
};
// convert a munge from the old format ([file][parent][xml] = count) to the current one
function fix_munge(root) {
root.prepare_queue = root.prepare_queue || {installed:[], uninstalled:[]};
root.config_munge = root.config_munge || {files: {}};
root.installed_plugins = root.installed_plugins || {};
root.dependent_plugins = root.dependent_plugins || {};
var munge = root.config_munge;
if (!munge.files) {
var new_munge = { files: {} };
for (var file in munge) {
for (var selector in munge[file]) {
for (var xml_child in munge[file][selector]) {
var val = parseInt(munge[file][selector][xml_child]);
for (var i = 0; i < val; i++) {
mungeutil.deep_add(new_munge, [file, selector, { xml: xml_child, count: val }]);
}
}
}
}
root.config_munge = new_munge;
}
return root;
}
module.exports = PlatformJson;
|
Search.setIndex({docnames:["_site/index","index"],envversion:50,filenames:["_site/index.rst","index.rst"],objects:{"pcat.main":{init:[1,0,1,""]}},objnames:{"0":["py","function","Python function"]},objtypes:{"0":"py:function"},terms:{"2_i":[],"2_k":[],"2nd":[],"3rd":[],"3x8000":[],"4th":[],"9th":[],"boolean":[],"byte":[],"case":[0,1],"class":[0,1],"default":[0,1],"float":[0,1],"function":[0,1],"import":[],"int":[0,1],"long":[0,1],"new":[],"null":[],"return":[0,1],"short":[],"throw":[],"true":[0,1],"while":[0,1],And:[],Are:[],Eds:[],For:[0,1],Its:[],Not:[],One:[0,1],Such:[],The:[0,1],Then:[],There:[],These:[0,1],Use:[0,1],Uses:[],With:[],aa_milne_arr:[],aang:[],abbt:[],abl:[0,1],about:[],abov:[0,1],abramowitz:[],abs:[],absolut:[],academ:[],acceler:[0,1],accept:[0,1],access:[0,1],accomplish:[0,1],accord:[],account:[0,1],achiev:[0,1],acm:[],across:[0,1],act:[],actuari:[],adapt:[0,1],add:[0,1],adding:[],addit:[0,1],adjust:[0,1],admit:[0,1],aerodynam:[],affect:[0,1],after:[0,1],again:[],against:[],aggreg:[0,1],algorithm:[],alia:[],align:[],all:[0,1],allevi:[0,1],allow:[0,1],almost:[0,1],along:[0,1],alpha:[],alpha_i:[],alreadi:[0,1],also:[0,1],alter:[],altern:[],although:[0,1],alwai:[],american:[],amplitud:[0,1],analog:[],analogu:[],analys:[0,1],analysi:[0,1],angl:[],anglassc:[0,1],anglfact:[],angular:[0,1],ani:[0,1],anim:[0,1],annot:[0,1],anot:[0,1],anotcatl:[0,1],anoth:[0,1],anova:[],anstalt:[],answer:[],anywher:[],apj:[0,1],appear:[],append:[],appli:[],applic:[0,1],approach:[],appropri:[0,1],approx:[],approxim:[0,1],arang:[],arbitrari:[],arcsinh:[0,1],area:[],arg:[0,1],argument:[0,1],aris:[],around:[0,1],arr:[],arrai:[0,1],arrang:[],array_lik:[],asm:[],asnh:[0,1],asp:[],asscmetrtyp:[0,1],asscoci:[],assign:[0,1],associ:[0,1],assum:[0,1],assumpt:[],astrophys:[0,1],asymfluxprop:[],asymptot:[],atan:[0,1],attempt:[],attribut:[0,1],attributeerror:[],austria:[],autocorrel:[],auxillar:[],avail:[0,1],averag:[],avoid:[0,1],awai:[],axes:[0,1],axi:[0,1],axis_ratio:[],azimuth:[0,1],back:[0,1],background:[0,1],backward:[],bacp:[],bad:[],balanc:[0,1],ball:[],barh:[],base:[0,1],basel:[],bayesian:[0,1],becam:[],becaus:[0,1],becom:[0,1],been:[0,1],befor:[0,1],begin:[0,1],behavior:[0,1],behaviour:[],being:[],belief:[0,1],bell:[],below:[0,1],bernoulli:[],bessel:[],beta:[],better:[],between:[0,1],bgal:[],bgalcntr:[0,1],bgaldistsc:[0,1],bgalpopl:[0,1],bias:[],bigl:[],bigr:[],bin:[0,1],bindprio:[],binom:[],binomi:[],binomial_distribut:[],binomialdistribut:[],binsangltyp:[],binsenerful:[],binsoaxi:[],biodivers:[],bioscienc:[],biostatist:[],birkhaus:[],birth:[0,1],bit:[],black:[],blah:[],blood:[],bogden:[],bold:[],bomb:[],bool:[0,1],boolinitsetp:[],boolpropfluxdist:[],boolpropfluxdistbrek:[],born:[0,1],both:[0,1],bottl:[0,1],bound:[],boundari:[],bradford:[],breweri:[],bright:[0,1],brighton:[],bring:[0,1],broadcast:[],broaden:[],broken:[0,1],brownian:[],budget:[0,1],buffer:[],bufferedfilestorag:[],built:[0,1],burn:[0,1],buza:[],bypass:[0,1],byteord:[],c_val:[],cach:[],cached_gaussian:[],calcul:[0,1],call:[0,1],cam:[],cambridg:[],can:[0,1],car:[],cartesian:[0,1],cat:[],catalog:[0,1],cauchi:[],cauchy_distribut:[],cauchydistribut:[],cdfn_atan:[],cdfn_eerr:[],cdfn_fixp:[],cdfn_flux_brok:[],cdfn_flux_powr:[],cdfn_gau:[],cdfn_logt:[],cdfn_self:[],cdfnnormdiff:[],cdfnnormminm:[],cdotp:[],center:[0,1],centr:[],central:[],certain:[0,1],chain:[],chan:[0,1],chanc:[],chandra:[0,1],chang:[0,1],chapter:[],character:[0,1],characterist:[0,1],check:[0,1],chess:[],chhikara:[],chi:[],child:[0,1],children:[],chisquar:[],choic:[0,1],choos:[0,1],chosen:[0,1],christian:[],christoph:[],circl:[0,1],circular:[],cite:[],claim:[],classic:[],classif:[],clck:[],close:[],clue:[],cluster:[],cmap:[],cnfg:[],cnt:[],cntrpnt:[0,1],cntsbackfwhm:[],code:[],coin:[],collect:[],color:[],columbia:[],com:[],come:[],common:[0,1],commonli:[],commun:[0,1],compani:[],compar:[0,1],comparison:[],compat:[],competitor:[],complet:[0,1],complex:[0,1],compon:[],comput:[],computation:[0,1],condit:[0,1],configur:[0,1],confus:[0,1],conjug:[],consequ:[0,1],conserv:[0,1],consid:[],consist:[0,1],constant:[0,1],constrain:[0,1],constrast:[],construct:[0,1],consum:[0,1],contain:[0,1],content:[0,1],context:[0,1],continu:[0,1],contrast:[0,1],contribut:[0,1],control:[0,1],conveni:[0,1],convent:[0,1],converg:[0,1],convert:[],convolut:[0,1],coordin:[0,1],copi:[],corbet:[],corr_catl:[],correl:[0,1],cos:[],could:[],count:[0,1],cours:[],cov:[],covari:[0,1],cover:[],coverag:[],crc:[],creat:[0,1],criteria:[],criterion:[0,1],critic:[0,1],cross:[0,1],cube:[0,1],culver:[],cumu:[],cumul:[],current:[0,1],curv:[],curvatur:[0,1],curvdistmean:[],curvdiststdv:[],curvpopl:[0,1],cut:[],cutoff:[0,1],d_i:[],daili:[],dalgaard:[],dali:[],dark:[0,1],data:[],datapath:[],dataplot:[],dataset:[0,1],datatyp:[],david:[],daylan:[0,1],ddof:[],death:[0,1],decai:[],decemb:[],decreas:[0,1],def:[],defin:[0,1],definit:[],deflect:[0,1],deg2rad:[],deg:[],degener:[0,1],degre:[0,1],delet:[0,1],delhi:[],deliber:[],delta:[0,1],deltllikpopl:[0,1],demonstr:[],denomin:[],denot:[],densiti:[0,1],depend:[],deprec:[],deriv:[0,1],describ:[0,1],descript:[0,1],descriptor:[],design:[0,1],desir:[0,1],destruct:[],detail:[0,1],determin:[],determinist:[0,1],develop:[],deviat:[],dfden:[],dff:[],dfnum:[],diabet:[],diag:[0,1],diag_gdatmodi:[],diagmod:[0,1],diagnost:[],diagon:[0,1],dice:[],die:[],diff:[],differ:[0,1],diffus:[0,1],dimens:[0,1],dimension:[0,1],dir1:[],dir2:[],directli:[0,1],dirichlet:[],dirichlet_distribut:[],disabl:[0,1],disc:[0,1],discard:[0,1],discret:[],dispers:[],displai:[],distanc:[],distinct:[0,1],distribut:[],disturb:[],div898:[],diverg:[0,1],divers:[],divid:[0,1],divisor:[],document:[],doe:[0,1],doing:[],doubl:[],dover:[],down:[0,1],download:[0,1],draw:[0,1],draw_frambndr:[],drawn:[0,1],drill:[],driven:[],dsum:[],dtype:[],dublin:[],duda:[],due:[0,1],dure:[0,1],each:[0,1],eah:[],earli:[],earlier:[0,1],east:[],ecolog:[],econom:[],economi:[],economist:[],eda3663:[],eda3666:[],eda:[],edf:[],edit:[],edler:[],effect:[0,1],effici:[0,1],either:[0,1],electron:[],element:[],elementari:[],elemtyp:[0,1],ellipt:[],ellipt_angl:[],elo:[],elpsaxi:[],elsewher:[],emil:[],emiss:[0,1],emploi:[0,1],emptsamp:[0,1],end:[0,1],enerfact:[],energi:[0,1],engin:[],enlarg:[0,1],enough:[0,1],ensembl:[0,1],ensur:[0,1],entiti:[0,1],entri:[],enumer:[],environ:[0,1],epidemiolog:[],equal:[],equidistribut:[],equival:[],eras:[0,1],eric:[],error:[],estim:[0,1],etc:[],ethz:[],etyp:[],evalcirc:[0,1],evalu:[0,1],even:[0,1],evenli:[],event:[],eventu:[0,1],everi:[0,1],evid:[0,1],exactli:[],exampl:[0,1],exce:[],except:[],excess:[0,1],exchang:[0,1],exclud:[],exclus:[],execut:[0,1],exist:[0,1],exp:[],expect:[0,1],expens:[0,1],experi:[0,1],experiment:[0,1],explicitli:[0,1],explor:[],expon:[],exponenti:[0,1],exponential_distribut:[],expopopl:[0,1],exposur:[0,1],express:[],exprinfo:[0,1],exprtyp:[0,1],extens:[0,1],extrem:[],fact:[0,1],factor:[0,1],factpara:[],factthin:[0,1],fail:[0,1],failur:[],faint:[0,1],fair:[0,1],fals:[0,1],far:[],fast:[],fat:[],fatter:[],favor:[0,1],fdfmflux:[],feder:[],feedback:[0,1],ferm:[0,1],fermexpo_cmp0_ig:[],fermflux_cmp0_ig:[],fermi:[0,1],fide:[],field:[0,1],field_storag:[],fifth:[],figur:[],file:[0,1],filestorag:[],fill:[],filliben:[],financ:[],finish:[0,1],finit:[0,1],finkbein:[0,1],finl:[0,1],first:[0,1],fisher:[0,1],fit:[0,1],five:[],fix:[0,1],fixp:[],fixpunit:[],flag:[0,1],fled:[],flip:[],flood:[],floor:[0,1],fluctuat:[0,1],fluid:[],flux:[0,1],fluxdistbrek:[],fluxdistslop:[0,1],fluxdistsloplowr:[],fluxdistslopuppr:[],fluxdisttyp:[0,1],fluxfactplot:[],fluxpopl:[0,1],fluxunit:[],folder:[0,1],folk:[],follow:[0,1],forc:[0,1],forlag:[],form:[0,1],format:[0,1],former:[0,1],formula:[],found:[],four:[],frac:[],fracrand:[],fraction:[],fram:[0,1],frame:[0,1],framework:[0,1],franci:[],franlen:[],frechet:[],free:[0,1],freedom:[0,1],frequenc:[],frequent:[],from:[0,1],fudici:[0,1],fulfil:[],full:[],funcarri:[],funcobjt:[],funtion:[],furthermor:[0,1],futil:[0,1],fwhm:[],gaia:[0,1],gain:[0,1],galact:[0,1],galaxi:[0,1],gamc:[],gamma:[],gammadistribut:[],gamt:[],gang:[0,1],gangdistsc:[0,1],gau:[0,1],gauss:[],gauss_mat:[],gaussian:[0,1],gcol:[0,1],gdat:[0,1],gdatmodi:[],gdatmodiprev:[],gener:[],generalis:[],generalstaben:[],genextrem:[],genpareto:[],geometr:[],georg:[],german:[],get:[0,1],get_stat:[],gev:[0,1],gif:[0,1],gil:[0,1],gisset:[],github:[],give:[0,1],given:[0,1],glantz:[],global:[0,1],glucos:[],gmrb:[0,1],good:[],gov:[],grab:[],gradient:[],graph:[],gravit:[0,1],greater:[],group:[],guarante:[],guin:[],gumbel:[],gumbel_l:[],gumbel_r:[],had:[],hairless:[0,1],half:[0,1],hand:[],handbook:[],handlingar:[],happen:[],harmon:[],hart:[],harvard:[],has:[0,1],has_gauss:[],have:[0,1],hdf5:[0,1],heal:[0,1],healpix:[0,1],health:[],heavi:[0,1],heavier:[],heckert:[],height:[],henc:[],here:[],hereaft:[0,1],hierarch:[],high:[0,1],higher:[],highest:[],hill:[],hist:[],histogram:[],hold:[0,1],holla:[],horizont:[0,1],hour:[0,1],how:[0,1],howev:[0,1],hst:[0,1],htm:[],html:[],http:[],hubb:[0,1],hubbl:[0,1],hungari:[],hunt:[],hydrolog:[],hyperbol:[],hypergeom:[],hypergeometr:[],hypergeometric_distribut:[],hypergeometricdistribut:[],hyperparamet:[0,1],hypothes:[0,1],hypothesi:[0,1],i_0:[],icdf_atan:[],icdf_eerr:[],icdf_fixp:[],icdf_flux_brok:[],icdf_flux_powr:[],icdf_gau:[],icdf_logt:[],icdf_self:[],ident:[0,1],igal:[],ignor:[],iii:[],ill:[0,1],illustr:[0,1],imag:[0,1],implement:[0,1],impli:[],impos:[0,1],inappropri:[],includ:[0,1],inclus:[],increas:[0,1],independ:[0,1],index:[0,1],indic:[0,1],individu:[0,1],indx:[],indxenerful:[],indxenerincl:[0,1],indxenerplot:[],indxenertemp:[],indxenerthi:[],indxevttful:[],indxevttincl:[0,1],indxevttplot:[],indxpixltemp:[],indxpntsful:[],indxpoplplot:[],indxprocwork:[],indxsamp:[],ineffici:[],infer:[0,1],infin:[],infinit:[],influenc:[],info:[0,1],inform:[0,1],infti:[],ingeniorsvetenskapsakademien:[],init:[0,1],init_figr:[],initi:[],inpt:[0,1],input:[],insensit:[0,1],insid:[0,1],inspect:[0,1],instanc:[],instead:[],institut:[],instrument:[0,1],insur:[],int64:[],int_0:[],int_lik:[],intak:[],integ:[],integr:[],inter:[0,1],interact:[0,1],interest:[0,1],interfac:[],intermedi:[0,1],intern:[0,1],interpol:[0,1],interpret:[0,1],interv:[],introduc:[0,1],introductori:[],invari:[0,1],invers:[],irf:[0,1],isotflux:[],isotrop:[0,1],issu:[0,1],italian:[],item:[],iter:[],itl:[],its:[0,1],itself:[0,1],jame:[],jan:[],johnson:[],journal:[],juliu:[],jump:[0,1],june:[],just:[],kappa:[],kei:[],kernel:[0,1],keyerror:[],kill:[0,1],kingslei:[],kleiber:[],know:[],knowledg:[],known:[0,1],kotz:[],label:[],labl:[],lablback:[0,1],lablbgal:[0,1],labllgal:[0,1],labloutp:[],lam:[],lambda:[],land:[],languag:[],laplac:[],laplace_distribut:[],laplacedistribut:[],larg:[0,1],larger:[],largest:[],last:[],lat:[0,1],later:[0,1],latest:[0,1],latitud:[0,1],lausann:[],law:[0,1],ldot:[],lead:[],learn:[],least:[0,1],leav:[0,1],left:[],leftov:[],legend:[0,1],legth:[0,1],len:[0,1],length:[],lens:[0,1],lensmodel:[],lentner:[],leq:[],leroi:[],less:[0,1],let:[0,1],level:[0,1],levi:[],lgal:[],lgalcntr:[0,1],lgalpopl:[0,1],lght:[0,1],librari:[],lie:[],light:[0,1],like:[0,1],likelihood:[0,1],liketyp:[0,1],likewis:[],limit:[],limpert:[],line:[],linear:[0,1],linewidth:[],linguist:[],link:[],linspac:[],list:[0,1],listfeat:[],listllik:[],listpara:[],listsindhist:[],listspecbrgthist:[],listspechist:[],literatur:[],litografiska:[],load:[],loadvaripara:[],loc:[],local:[0,1],locat:[0,1],lock:[0,1],log:[0,1],logarithm:[],logist:[],logistic_distribut:[],logisticdistribut:[],loglikelihood:[0,1],lognorm:[],logser:[],logseri:[],logt:[0,1],lomax:[],longitud:[0,1],look:[0,1],lookup:[],lorentz:[],low:[0,1],lower:[],lowest:[],ltd:[],lunn:[],lying:[],mackai:[],made:[0,1],magnitud:[],mai:[0,1],main:[0,1],mainstream:[0,1],make:[0,1],make_anim:[],make_catllabl:[],make_cbar:[],makeanim:[0,1],makeplot:[0,1],mani:[0,1],manual:[],map:[0,1],marbl:[],margfactcomp:[0,1],margfactmodl:[],margin:[0,1],markovian:[0,1],martin:[],marvin:[],mass:[],massmodel:[],materi:[],math:[],mathemat:[],mathematician:[],mathtt:[],mathworld:[],matplotlib:[],matrix:[],matsumoto:[],matter:[0,1],max:[],maxima:[],maximum:[0,1],maxmangl:[0,1],maxmbacp:[],maxmbeinhost:[],maxmellphost:[],maxmflux:[0,1],maxmfluxbrek:[],maxmfluxdistbrek:[],maxmfluxdistslop:[],maxmfluxdistsloplowr:[],maxmfluxdistslopuppr:[],maxmfluxsour:[],maxmgamm:[],maxmgang:[],maxmmeanpnt:[],maxmnumbpnt:[],maxmpsff:[],maxmratisour:[],maxmsherhost:[],maxmsigm:[],maxmsinddistmean:[],maxmsinddiststdv:[],maxmsizesour:[],maxmvarb:[],mcgraw:[],mckai:[],mcmc:[0,1],mean:[0,1],meangamm:[],meanpara:[],meanpsff:[],meansigm:[],meanvalu:[],meanvarb:[],measur:[],mechan:[],median:[],meet:[],member:[0,1],memoryless:[0,1],mersenn:[],messag:[0,1],metamodel:[0,1],meter:[],method:[0,1],methodolog:[],metric:[0,1],metrika:[],mid:[],min:[],minflux:[],minim:[0,1],minm:[],minmbacp:[],minmbeinhost:[],minmellphost:[],minmflux:[0,1],minmfluxbrek:[],minmfluxdistbrek:[],minmfluxdistslop:[],minmfluxdistsloplowr:[],minmfluxdistslopuppr:[],minmfluxsour:[],minmgamm:[],minmmeanpnt:[],minmpara:[],minmpsff:[],minmratisour:[],minmsherhost:[],minmsigm:[],minmsind:[0,1],minmsinddistmean:[],minmsinddiststdv:[],minmsizesour:[],minmvarb:[],minu:[],misc:[],mise:[],mismodel:[0,1],miss:[],mix:[0,1],mixtur:[0,1],mock:[],mockanglhost:[],mockanglsour:[],mockbacp:[],mockbeinhost:[],mockbgalhost:[],mockbgalsour:[],mockellphost:[],mockfluxdistbrek:[],mockfluxdistslop:[],mockfluxdistsloplowr:[],mockfluxdistslopuppr:[],mockfluxdisttyp:[],mockfluxsour:[],mocklgalhost:[],mocklgalsour:[],mockmaxmflux:[],mockminmflux:[],mocknumbpnt:[],mockpsfntyp:[],mockratisour:[],mocksanghost:[],mocksherhost:[],mocksinddistmean:[],mocksinddiststdv:[],mocksizesour:[],mockspatdistslop:[],mockspatdisttyp:[],mockspectyp:[],mockstrgback:[],mockvarioaxi:[],mode:[0,1],model:[],modevalu:[],modifi:[],modl:[],modlbgal:[],modllgal:[],modlspec:[],modul:[],moivr:[],monitor:[0,1],more:[0,1],most:[0,1],motion:[],move:[0,1],mt19937:[],much:[],multi:[],multinomi:[],multinorm:[],multipl:[0,1],multipli:[],multivari:[],multivariate_norm:[],must:[0,1],n_e:[],name:[0,1],nameback:[],nameexpr:[0,1],nation:[],natur:[0,1],nbad:[],nc_val:[],ndarrai:[0,1],ndim:[],nearli:[0,1],necessari:[0,1],neck:[0,1],need:[0,1],neg:[],negative_binomi:[],negative_binomial_distribut:[],negativebinomialdistribut:[],neglig:[0,1],ngood:[],nine:[],nishimura:[],nist:[],nomin:[0,1],non:[0,1],nonc:[],noncentr:[],noncentral_chi:[],noncentral_chisquar:[],noncentral_f:[],noncentralf:[],none:[],noninteract:[0,1],nonneg:[],nonpersist:[0,1],nonrandom:[],norm:[],normal:[0,1],normal_distribut:[],normalis:[],normed_i:[],north:[],note:[0,1],now:[],nsamp:[],nsampl:[],nuisanc:[0,1],num:[],numbangl:[],numbburn:[0,1],numbdatasamp:[],number:[0,1],numbpntsmodi:[],numbpopl:[],numbproc:[0,1],numbsidecart:[],numbsideh:[],numbsidepntsprob:[],numbspatdim:[],numbswep:[0,1],numbswepplot:[0,1],numer:[],numpi:[0,1],oaxityp:[0,1],object:[0,1],observ:[0,1],obtain:[0,1],occam:[0,1],occup:[],occur:[],occurr:[],off:[0,1],offer:[0,1],often:[],oil:[],omit:[0,1],onc:[0,1],one:[0,1],ones:[0,1],ones_lik:[],onli:[0,1],onto:[0,1],open:[],oppos:[0,1],opti:[0,1],optim:[],option:[0,1],optiprop:[0,1],order:[0,1],org:[],orient:[],oscil:[],ostrowski:[],other:[0,1],otherwis:[],out:[0,1],outcom:[],outp:[0,1],output:[],output_:[],outsid:[0,1],over:[0,1],overal:[0,1],overplot:[0,1],own:[0,1],pack:[],packag:[],page:[],paper:[],papouli:[],para:[],parallel:[0,1],param:[],paramet:[0,1],parameter:[],parametr:[0,1],paraunit:[],parent:[0,1],pareto:[],pareto_distribut:[],parsimoni:[0,1],part:[0,1],particular:[0,1],particularli:[0,1],path:[0,1],pathbas:[0,1],pathdata:[0,1],pathfold:[],pathpcat:[],pattern:[],paul:[],pcat_data_path:[0,1],pdf:[],pdfn_flux_brok:[],pdfn_flux_powr:[],peak:[],peak_bright:[],peebl:[],penal:[0,1],peopl:[],per:[0,1],percent:[],percentag:[],perform:[],perftest:[],permut:[0,1],peter:[],peyton:[],philosophi:[],photon:[0,1],phy:[],pickl:[0,1],piec:[],piglet:[],pip:[0,1],pix:[],pixel:[0,1],pixltyp:[0,1],place:[],plane:[],platform:[],player:[],plot:[],plot_3fgl_thr:[],plot_brgt:[],plot_catlfram:[],plot_chro:[],plot_compfrac:[],plot_datacnt:[],plot_datacntshist:[],plot_defl:[],plot_errrcnt:[],plot_ev:[],plot_evidtest:[],plot_factoaxi:[],plot_fluxsind:[],plot_fwhm:[],plot_grap:[],plot_histcnt:[],plot_histsind:[],plot_histspec:[],plot_indxprox:[],plot_intr:[],plot_k:[],plot_modlcnt:[],plot_mosa:[],plot_pdfntotlflux:[],plot_pntsdiff:[],plot_pntsprob:[],plot_post:[],plot_psfn:[],plot_psfn_typ:[],plot_resicnt:[],plot_samp:[],plot_scatpixl:[],plot_scatspec:[],plotdiff:[],plotspec:[],plt:[],pntscntr:[],pntsflux:[],pntstype:[],poi:[0,1],point:[0,1],pointer:[0,1],poisson:[0,1],poisson_distribut:[],poisson_process:[],poissondistribut:[],polit:[],polynomi:[0,1],pooh:[],popul:[0,1],popular:[],portillo:[0,1],pos:[],posit:[0,1],possibl:[0,1],post:[0,1],posterior:[0,1],postpntsfluxmean:[],postprocess:[0,1],postspecmtch:[],potenti:[0,1],power:[0,1],powerlaw:[],powpdf:[],powr:[0,1],practic:[0,1],preceed:[0,1],precis:[],predetermin:[0,1],predict:[0,1],press:[],pretti:[],previous:[],primer:[],princip:[],principl:[],print:[],prio:[0,1],priofactdoff:[],prior:[],priotyp:[],probabilist:[0,1],probabl:[0,1],probbrd:[],problem:[0,1],probrand:[],probtran:[],process:[0,1],prod_:[],produc:[0,1],product:[],professor:[],profil:[0,1],progress:[0,1],prohibit:[0,1],project:[0,1],propbacp:[],propcomp:[],proper:[],properti:[0,1],prophypr:[],proplenp:[],proport:[],propos:[],proppsfp:[],proprietari:[],provid:[0,1],pseudo:[],pseudonym:[],pseudorandom:[],psf:[0,1],psfn:[],psfninfoprio:[],psfntype:[0,1],psfp:[],ptag:[],publish:[],pull:[],purpos:[0,1],put:[0,1],pval:[],pyplot:[],python:[0,1],quantiti:[0,1],quickli:[0,1],quiglei:[],rabbit:[],radial:[0,1],radispmr:[],radiu:[0,1],raindrop:[],rainfal:[],rainstorm:[],rais:[],raj:[],rammler:[],rand:[],randinit:[0,1],randint:[],randn:[],random:[],random_integ:[],random_sampl:[],randomli:[0,1],randomst:[],ranf:[],rang:[],rank:[],rate:[0,1],rather:[],ratio:[0,1],raww:[],rayleigh:[],rayleigh_distribut:[],razor:[0,1],reach:[],real:[],realiz:[0,1],reason:[0,1],recommend:[],recur:[0,1],red:[],reduc:[0,1],ref:[],refer:[0,1],refman2:[],regard:[0,1],region:[],regress:[0,1],regular:[],regulevi:[],reiss:[],reject:[],rel:[],relat:[],relationship:[],releas:[0,1],relev:[0,1],reli:[0,1],reliabl:[],remain:[0,1],repeat:[],repeatedli:[],replac:[],report:[0,1],repres:[0,1],represent:[],request:[],requir:[0,1],research:[],resembl:[],reshap:[],resourc:[],respect:[0,1],respons:[0,1],result:[0,1],retr_aang:[],retr_angldist:[],retr_angldistunit:[],retr_chandata:[],retr_chanpsfn:[],retr_cntsbackfwhm:[],retr_doubgau:[],retr_doubk:[],retr_eerrnorm:[],retr_elpsfrac:[],retr_factoaxi:[],retr_fermdata:[],retr_fermpsfn:[],retr_fluxbia:[],retr_fluxbrgt:[],retr_fluxlpri:[],retr_fluxlpribind:[],retr_gang:[],retr_gau:[],retr_gausk:[],retr_hubbpsfn:[],retr_imag:[],retr_imaglen:[],retr_indx:[],retr_indxoaxipnt:[],retr_indxpixl:[],retr_indxpntscomp:[],retr_indxsamp:[],retr_info:[],retr_jcbn:[],retr_levi:[],retr_lgalbg:[],retr_listpair:[],retr_llik:[],retr_lpri:[],retr_map:[],retr_mrkrsiz:[],retr_numbspep:[],retr_pntsflux:[],retr_probpoi:[],retr_prop:[],retr_psfn:[],retr_psfnwdth:[],retr_randunitpsfp:[],retr_rofi_flux:[],retr_rtag:[],retr_sampvarb:[],retr_scat:[],retr_sdsspsfn:[],retr_sigm:[],retr_singgau:[],retr_singk:[],retr_spec:[],retr_thisindxprop:[],retr_thismodlflux:[],retr_unit:[],retranglcosi:[],reveal:[0,1],rich:[],richard:[],riemann:[],right:[],rjmc:[],roi:[0,1],roll:[],rosin:[],rotat:[0,1],roughli:[0,1],routin:[0,1],royal:[],rtag:[0,1],rule:[],run:[0,1],rvs:[],rvsp:[],s11:[],s_t:[],sai:[],same:[0,1],samp:[0,1],sampl:[0,1],sampler:[0,1],sampvarb:[0,1],samuel:[],satisfi:[],satumap:[0,1],satur:[0,1],save:[0,1],scal:[],scalar:[],scaldevi:[],scale:[0,1],scalmap:[0,1],scat:[],scienc:[0,1],scipi:[],script:[0,1],sdss:[0,1],search:[0,1],second:[0,1],section3:[],section:[],sectoutp:[],see:[0,1],seed:[],seem:[],seen:[],select:[],self:[0,1],sematech:[],semidefinit:[],sens:[0,1],sensit:[],separ:[0,1],septemb:[],sequenc:[],seri:[0,1],serious:[0,1],serv:[0,1],set:[0,1],set_stat:[],setp_varbful:[],setpfinl:[],setpinit:[],setup:[0,1],sev:[],sever:[],shape:[],sharper:[],she:[],shear:[],shear_angl:[],shift:[],ship:[0,1],should:[0,1],show:[0,1],show_samp:[],shown:[0,1],shuffl:[],side:[0,1],sigc:[],sigma:[],sign:[],signal:[],signific:[0,1],sigt:[],sim30:[],sim:[],similar:[0,1],similari:[],similarli:[0,1],simplifi:[],simul:[0,1],simultan:[0,1],sinc:[0,1],sinddisttyp:[0,1],sindpopl:[0,1],singl:[0,1],situat:[],six:[],size:[0,1],slope:[0,1],slow:[0,1],small:[0,1],smaller:[0,1],smallest:[],snapshot:[0,1],softwar:[],solut:[0,1],some:[0,1],someth:[],sometim:[],soon:[],sort:[],sourc:[0,1],sourceforg:[],space:[0,1],spatdistcon:[0,1],spatdistslop:[],spatdisttyp:[0,1],spatial:[0,1],spawn:[0,1],spec:[],specfracev:[],speci:[],special:[],specif:[0,1],specifi:[],spectral:[0,1],spectrum:[0,1],spectyp:[0,1],speed:[],spep:[],spheric:[],spread:[0,1],springer:[],sps:[],sqrt:[],squar:[0,1],square_distribut:[],stack:[],stage:[0,1],stahel:[],standard:[0,1],standard_cauchi:[],standard_exponenti:[],standard_gamma:[],standard_norm:[],standard_t:[],stanton:[],star:[0,1],start:[0,1],stat:[],state:[],statist:[0,1],statu:[0,1],std:[],stdev:[],stdv:[],stdvback:[],stdvflux:[],stdvfluxdistslop:[],stdvgamm:[],stdvlbhl:[],stdvlbhlvari:[],stdvmeanpnt:[],stdvpara:[],stdvpropbacp:[],stdvprophypr:[],stdvproplenp:[],stdvproppsfp:[],stdvpsff:[],stdvsigm:[],stdvspep:[],stdvspmrsind:[],stdvvarb:[],stegun:[],step:[0,1],stephen:[],stochast:[],stock:[],stockholm:[],stork:[],str:[0,1],strength:[],stretch:[0,1],strg:[0,1],strganglunit:[0,1],strganglunittext:[],strgback:[0,1],strgbinsen:[0,1],strgcatl:[0,1],strgcntr:[],strgenerunit:[],strgexpo:[0,1],strgexpr:[],strgexprflux:[0,1],strgexprnam:[0,1],strgflux:[],strgfluxunit:[],strgfunctim:[],strgpara:[],strgplot:[],strgtype:[],strgxaxi:[],strgyaxi:[],strictli:[0,1],string:[0,1],strong:[0,1],structur:[0,1],student:[],studi:[0,1],subcommand:[],subfold:[0,1],subhalo:[0,1],subject:[0,1],submit:[],submodul:[],succeed:[],success:[],suffici:[0,1],sum:[0,1],sum_:[],suppl:[0,1],suppli:[],support:[],suppos:[],supr_fram:[],sure:[0,1],surprisingli:[],symmetr:[],system:[],systemat:[],tabl:[],tag:[0,1],tail:[0,1],take:[0,1],taken:[0,1],tansu:[],target:[0,1],task:[0,1],tdaylan:[],technic:[],technolog:[],telescop:[0,1],tempindx:[],templat:[0,1],temporari:[],temporarili:[0,1],ten:[],tend:[],term:[0,1],test:[],text:[0,1],than:[0,1],thei:[0,1],them:[0,1],theorem:[],theoret:[0,1],theori:[],therefor:[0,1],therein:[0,1],theta:[],thi:[0,1],thin:[0,1],third:[],thisangl:[],thisindxen:[],thisindxevtt:[],thisindxfixp:[],thisindxpopl:[],thoma:[],those:[0,1],thought:[],thousand:[],thread:[0,1],three:[0,1],threw:[],through:[0,1],tick:[],tight:[],tighter:[0,1],tilt:[],time:[0,1],tini:[],titl:[],togeth:[0,1],too:[0,1],top:[],topolog:[0,1],total:[0,1],traceback:[],tran:[],transdimension:[],translat:[],transpos:[],trial:[],triangular:[],triangular_distribut:[],truenumbpnt:[0,1],trueonli:[],truepsfntyp:[],truevarioaxi:[],truncat:[],tune:[0,1],tupl:[],turn:[0,1],tweedi:[],twice:[],twister:[],two:[0,1],txt:[0,1],type:[0,1],typic:[0,1],uint:[],ukrain:[],unbd:[],unbias:[],unbin:[],unbound:[],undefin:[],under:[0,1],underestim:[],underli:[0,1],understand:[],unfunct:[],unif:[0,1],uniform:[0,1],uniformli:[0,1],union:[0,1],uniqu:[0,1],unit:[0,1],uniti:[0,1],univ:[],univari:[],univers:[],unknown:[0,1],unless:[],unlik:[0,1],unsign:[],until:[],updt_samp:[],upper:[],urn:[],use:[0,1],used:[0,1],useful:[0,1],useless:[0,1],user:[0,1],using:[0,1],usrc:[],usual:[0,1],util:[0,1],valid:[0,1],valu:[0,1],valueerror:[],values2:[],vanish:[0,1],vari:[],variabl:[0,1],varianc:[0,1],variat:[0,1],varioaxi:[],variou:[0,1],vector:[0,1],veloc:[],verbos:[0,1],verbtyp:[0,1],veri:[0,1],verifi:[],verlag:[],version:[],vertic:[0,1],via:[0,1],vilfredo:[],visu:[],visual:[0,1],vmax:[],vmin:[],vol:[],volum:[0,1],von:[],vonmis:[],vsrc:[],wai:[0,1],wait:[],wald:[],wald_distribut:[],waloddi:[],want:[],wave:[],wealth:[],weapon:[],web:[],weib:[],weibul:[],weibull_distribut:[],weibull_max:[],weibull_min:[],weight:[],weisstein:[],well:[0,1],were:[],what:[0,1],when:[0,1],where:[0,1],wherea:[0,1],whether:[0,1],which:[0,1],white:[],who:[],whole:[0,1],whose:[0,1],wide:[],width:[],wiki:[],wikipedia:[],wild:[],wilei:[],william:[],wind:[],within:[0,1],without:[0,1],wolfram:[],women:[],word:[0,1],work:[0,1],worker:[0,1],world:[],would:[],wrap:[],writ:[],writabl:[],write:[0,1],written:[0,1],wrong:[],www:[],x022sz:[],x85:[],x_0:[],x_1:[],x_2:[],x_i:[],x_j:[],x_n:[],x_p:[],xa4:[],xbf:[],xgal:[],y_1:[],y_i:[],y_n:[],year:[],yet:[0,1],ygal:[],yield:[0,1],york:[],you:[0,1],zero:[0,1],zeta:[],zetac:[],zipf:[]},titles:["Welcome to PCAT’s documentation!","Welcome to PCAT’s documentation!"],titleterms:{"function":[],The:[],adapt:[],api:[0,1],autocorrel:[0,1],burn:[],chain:[0,1],cnfg:[],collect:[0,1],compon:[],content:[],data:[0,1],degeneraci:[0,1],diagnos:[],diagnost:[0,1],distribut:[0,1],document:[0,1],element:[0,1],featur:[0,1],foo:[],franlen:[],garbag:[0,1],gcol:[],gelman:[0,1],gener:[0,1],hei:[],hierarch:[0,1],ident:[],indic:[],initi:[0,1],input:[0,1],instal:[0,1],label:[0,1],main:[],mock:[0,1],model:[0,1],modul:[],optim:[0,1],output:[0,1],packag:[],pcat:[0,1],perform:[0,1],perftest:[],place:[0,1],plot:[0,1],prior:[0,1],project:[],propos:[0,1],rubin:[0,1],sampler:[],select:[0,1],setup:[],specifi:[0,1],state:[0,1],submodul:[],suppli:[0,1],tabl:[],test:[0,1],transdimension:[0,1],tutori:[0,1],usag:[],util:[],visu:[],welcom:[0,1]}})
|
/** When your routing table is too long, you can split it into small modules **/
import Layout from '@/layout'
// const componentsRouter = {
// path: '/components',
// component: Layout,
// redirect: 'noRedirect',
// name: 'ComponentDemo',
// meta: {
// title: 'Components',
// icon: 'component'
// },
// children: [
// ]
// }
// export default componentsRouter
|
(function(){var a=function(a){"use strict";a=a?a:{};var b={bgColor:"#d00",textColor:"#fff",fontFamily:"sans-serif",fontStyle:"bold",type:"circle",position:"down",animation:"slide",elementId:false};var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;o={};o.ff=typeof InstallTrigger!="undefined";o.chrome=!!window.chrome;o.opera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0;o.ie=false;o.safari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0;o.supported=o.chrome||o.ff||o.opera;var r=[];m=function(){};j=n=false;var s=function(){c=D(b,a);c.bgColor=C(c.bgColor);c.textColor=C(c.textColor);c.position=c.position.toLowerCase();c.animation=F.types[""+c.animation]?c.animation:b.animation;var j=c.position.indexOf("up")>-1;var k=c.position.indexOf("left")>-1;if(j||k){for(var l=0;l<F.types[""+c.animation].length;l++){var m=F.types[""+c.animation][l];if(j){if(m.y<.6){m.y=m.y-.4}else{m.y=m.y-2*m.y+(1-m.w)}}if(k){if(m.x<.6){m.x=m.x-.4}else{m.x=m.x-2*m.x+(1-m.h)}}F.types[""+c.animation][l]=m}}c.type=u[""+c.type]?c.type:b.type;try{d=B.getIcon();g=document.createElement("canvas");i=document.createElement("img");if(d.hasAttribute("href")){i.setAttribute("src",d.getAttribute("href"));i.onload=function(){e=i.height>0?i.height:32;f=i.width>0?i.width:32;g.height=e;g.width=f;h=g.getContext("2d");t.ready()}}else{i.setAttribute("src","");e=32;f=32;i.height=e;i.width=f;g.height=e;g.width=f;h=g.getContext("2d");t.ready()}}catch(a){throw"Error initializing favico. Message: "+a.message}};var t={};t.ready=function(){j=true;t.reset();m()};t.reset=function(){if(!j){return}r=[];k=false;h.clearRect(0,0,f,e);h.drawImage(i,0,0,f,e);B.setIcon(g);window.clearTimeout(p);window.clearTimeout(q)};t.start=function(){if(!j||l){return}var a=function(){k=r[0];l=false;if(r.length>0){r.shift();t.start()}else{}};if(r.length>0){l=true;var b=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach(function(a){if(a in r[0].options){c[a]=r[0].options[a]}});F.run(r[0].options,function(){a()},false)};if(k){F.run(k.options,function(){b()},true)}else{b()}}};var u={};var v=function(a){a.n=typeof a.n==="number"?Math.abs(a.n|0):a.n;a.x=f*a.x;a.y=e*a.y;a.w=f*a.w;a.h=e*a.h;a.len=(""+a.n).length;return a};u.circle=function(a){a=v(a);var b=false;if(a.len===2){a.x=a.x-a.w*.4;a.w=a.w*1.4;b=true}else if(a.len>=3){a.x=a.x-a.w*.65;a.w=a.w*1.65;b=true}h.clearRect(0,0,f,e);h.drawImage(i,0,0,f,e);h.beginPath();h.font=c.fontStyle+" "+Math.floor(a.h*(a.n>99?.85:1))+"px "+c.fontFamily;h.textAlign="center";if(b){h.moveTo(a.x+a.w/2,a.y);h.lineTo(a.x+a.w-a.h/2,a.y);h.quadraticCurveTo(a.x+a.w,a.y,a.x+a.w,a.y+a.h/2);h.lineTo(a.x+a.w,a.y+a.h-a.h/2);h.quadraticCurveTo(a.x+a.w,a.y+a.h,a.x+a.w-a.h/2,a.y+a.h);h.lineTo(a.x+a.h/2,a.y+a.h);h.quadraticCurveTo(a.x,a.y+a.h,a.x,a.y+a.h-a.h/2);h.lineTo(a.x,a.y+a.h/2);h.quadraticCurveTo(a.x,a.y,a.x+a.h/2,a.y)}else{h.arc(a.x+a.w/2,a.y+a.h/2,a.h/2,0,2*Math.PI)}h.fillStyle="rgba("+c.bgColor.r+","+c.bgColor.g+","+c.bgColor.b+","+a.o+")";h.fill();h.closePath();h.beginPath();h.stroke();h.fillStyle="rgba("+c.textColor.r+","+c.textColor.g+","+c.textColor.b+","+a.o+")";if(typeof a.n==="number"&&a.n>999){h.fillText((a.n>9999?9:Math.floor(a.n/1e3))+"k+",Math.floor(a.x+a.w/2),Math.floor(a.y+a.h-a.h*.2))}else{h.fillText(a.n,Math.floor(a.x+a.w/2),Math.floor(a.y+a.h-a.h*.15))}h.closePath()};u.rectangle=function(a){a=v(a);var b=false;if(a.len===2){a.x=a.x-a.w*.4;a.w=a.w*1.4;b=true}else if(a.len>=3){a.x=a.x-a.w*.65;a.w=a.w*1.65;b=true}h.clearRect(0,0,f,e);h.drawImage(i,0,0,f,e);h.beginPath();h.font=c.fontStyle+" "+Math.floor(a.h*(a.n>99?.9:1))+"px "+c.fontFamily;h.textAlign="center";h.fillStyle="rgba("+c.bgColor.r+","+c.bgColor.g+","+c.bgColor.b+","+a.o+")";h.fillRect(a.x,a.y,a.w,a.h);h.fillStyle="rgba("+c.textColor.r+","+c.textColor.g+","+c.textColor.b+","+a.o+")";if(typeof a.n==="number"&&a.n>999){h.fillText((a.n>9999?9:Math.floor(a.n/1e3))+"k+",Math.floor(a.x+a.w/2),Math.floor(a.y+a.h-a.h*.2))}else{h.fillText(a.n,Math.floor(a.x+a.w/2),Math.floor(a.y+a.h-a.h*.15))}h.closePath()};var w=function(a,b){b=(typeof b==="string"?{animation:b}:b)||{};m=function(){try{if(typeof a==="number"?a>0:a!==""){var c={type:"badge",options:{n:a}};if("animation"in b&&F.types[""+b.animation]){c.options.animation=""+b.animation}if("type"in b&&u[""+b.type]){c.options.type=""+b.type}["bgColor","textColor"].forEach(function(a){if(a in b){c.options[a]=C(b[a])}});["fontStyle","fontFamily"].forEach(function(a){if(a in b){c.options[a]=b[a]}});r.push(c);if(r.length>100){throw"Too many badges requests in queue."}t.start()}else{t.reset()}}catch(a){throw"Error setting badge. Message: "+a.message}};if(j){m()}};var x=function(a){m=function(){try{var b=a.width;var c=a.height;var d=document.createElement("img");var i=b/f<c/e?b/f:c/e;d.setAttribute("src",a.getAttribute("src"));d.height=c/i;d.width=b/i;h.clearRect(0,0,f,e);h.drawImage(d,0,0,f,e);B.setIcon(g)}catch(a){throw"Error setting image. Message: "+a.message}};if(j){m()}};var y=function(a){m=function(){try{if(a==="stop"){n=true;t.reset();n=false;return}a.addEventListener("play",function(){A(this)},false)}catch(a){throw"Error setting video. Message: "+a.message}};if(j){m()}};var z=function(a){if(!window.URL||!window.URL.createObjectURL){window.URL=window.URL||{};window.URL.createObjectURL=function(a){return a}}if(o.supported){var b=false;navigator.getUserMedia=navigator.getUserMedia||navigator.oGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia;m=function(){try{if(a==="stop"){n=true;t.reset();n=false;return}b=document.createElement("video");b.width=f;b.height=e;navigator.getUserMedia({video:true,audio:false},function(a){b.src=URL.createObjectURL(a);b.play();A(b)},function(){})}catch(a){throw"Error setting webcam. Message: "+a.message}};if(j){m()}}};function A(a){if(a.paused||a.ended||n){return false}try{h.clearRect(0,0,f,e);h.drawImage(a,0,0,f,e)}catch(a){}q=setTimeout(A,F.duration,a);B.setIcon(g)}var B={};B.getIcon=function(){var a=false;var b="";var d=function(){var a=document.getElementsByTagName("head")[0].getElementsByTagName("link");for(var b=a.length,c=b-1;c>=0;c--){if(/(^|\s)icon(\s|$)/i.test(a[c].getAttribute("rel"))){return a[c]}}return false};if(c.elementId){a=document.getElementById(c.elementId);a.setAttribute("href",a.getAttribute("src"))}else{a=d();if(a===false){a=document.createElement("link");a.setAttribute("rel","icon");document.getElementsByTagName("head")[0].appendChild(a)}}b=c.elementId?a.src:a.href;if(b.substr(0,5)!=="data:"&&b.indexOf(document.location.hostname)===-1){throw new Error("Error setting favicon. Favicon image is on different domain (Icon: "+b+", Domain: "+document.location.hostname+")")}a.setAttribute("type","image/png");return a};B.setIcon=function(a){var b=a.toDataURL("image/png");if(c.elementId){document.getElementById(c.elementId).setAttribute("src",b)}else{if(o.ff||o.opera){var e=d;d=document.createElement("link");if(o.opera){d.setAttribute("rel","icon")}d.setAttribute("rel","icon");d.setAttribute("type","image/png");document.getElementsByTagName("head")[0].appendChild(d);d.setAttribute("href",b);if(e.parentNode){e.parentNode.removeChild(e)}}else{d.setAttribute("href",b)}}};function C(a){var b=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(b,function(a,b,c,d){return b+b+c+c+d+d});var c=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return c?{r:parseInt(c[1],16),g:parseInt(c[2],16),b:parseInt(c[3],16)}:false}function D(a,b){var c={};var d;for(d in a){c[d]=a[d]}for(d in b){c[d]=b[d]}return c}function E(){return document.hidden||document.msHidden||document.webkitHidden||document.mozHidden}var F={};F.duration=40;F.types={};F.types.fade=[{x:.4,y:.4,w:.6,h:.6,o:0},{x:.4,y:.4,w:.6,h:.6,o:.1},{x:.4,y:.4,w:.6,h:.6,o:.2},{x:.4,y:.4,w:.6,h:.6,o:.3},{x:.4,y:.4,w:.6,h:.6,o:.4},{x:.4,y:.4,w:.6,h:.6,o:.5},{x:.4,y:.4,w:.6,h:.6,o:.6},{x:.4,y:.4,w:.6,h:.6,o:.7},{x:.4,y:.4,w:.6,h:.6,o:.8},{x:.4,y:.4,w:.6,h:.6,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}];F.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}];F.types.pop=[{x:1,y:1,w:0,h:0,o:1},{x:.9,y:.9,w:.1,h:.1,o:1},{x:.8,y:.8,w:.2,h:.2,o:1},{x:.7,y:.7,w:.3,h:.3,o:1},{x:.6,y:.6,w:.4,h:.4,o:1},{x:.5,y:.5,w:.5,h:.5,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}];F.types.popFade=[{x:.75,y:.75,w:0,h:0,o:0},{x:.65,y:.65,w:.1,h:.1,o:.2},{x:.6,y:.6,w:.2,h:.2,o:.4},{x:.55,y:.55,w:.3,h:.3,o:.6},{x:.5,y:.5,w:.4,h:.4,o:.8},{x:.45,y:.45,w:.5,h:.5,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}];F.types.slide=[{x:.4,y:1,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.8,w:.6,h:.6,o:1},{x:.4,y:.7,w:.6,h:.6,o:1},{x:.4,y:.6,w:.6,h:.6,o:1},{x:.4,y:.5,w:.6,h:.6,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}];F.run=function(a,b,d,e){var f=F.types[E()?"none":c.animation];if(d===true){e=typeof e!=="undefined"?e:f.length-1}else{e=typeof e!=="undefined"?e:0}b=b?b:function(){};if(e<f.length&&e>=0){u[c.type](D(a,f[e]));p=setTimeout(function(){if(d){e=e-1}else{e=e+1}F.run(a,b,d,e)},F.duration);B.setIcon(g)}else{b();return}};s();return{badge:w,video:y,image:x,webcam:z,reset:t.reset,browser:{supported:o.supported}}};if(typeof define!=="undefined"&&define.amd){define([],function(){return a})}else if(typeof module!=="undefined"&&module.exports){module.exports=a}else{this.Favico=a}})();(function(a,b){if(typeof define==="function"&&define.amd){define([],b)}else if(typeof exports==="object"){module.exports=b()}else{a.Handlebars=a.Handlebars||b()}})(this,function(){var a=function(){"use strict";var a;function b(a){this.string=a}b.prototype.toString=function(){return""+this.string};a=b;return a}();var b=function(a){"use strict";var b={};var c=a;var d={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var e=/[&<>"'`]/g;var f=/[&<>"'`]/;function g(a){return d[a]}function h(a){for(var b=1;b<arguments.length;b++){for(var c in arguments[b]){if(Object.prototype.hasOwnProperty.call(arguments[b],c)){a[c]=arguments[b][c]}}}return a}b.extend=h;var i=Object.prototype.toString;b.toString=i;var j=function(a){return typeof a==="function"};if(j(/x/)){j=function(a){return typeof a==="function"&&i.call(a)==="[object Function]"}}var j;b.isFunction=j;var k=Array.isArray||function(a){return a&&typeof a==="object"?i.call(a)==="[object Array]":false};b.isArray=k;function l(a){if(a instanceof c){return a.toString()}else if(a==null){return""}else if(!a){return a+""}a=""+a;if(!f.test(a)){return a}return a.replace(e,g)}b.escapeExpression=l;function m(a){if(!a&&a!==0){return true}else if(k(a)&&a.length===0){return true}else{return false}}b.isEmpty=m;function n(a,b){return(a?a+".":"")+b}b.appendContextPath=n;return b}(a);var c=function(){"use strict";var a;var b=["description","fileName","lineNumber","message","name","number","stack"];function c(a,c){var d;if(c&&c.firstLine){d=c.firstLine;a+=" - "+d+":"+c.firstColumn}var e=Error.prototype.constructor.call(this,a);for(var f=0;f<b.length;f++){this[b[f]]=e[b[f]]}if(d){this.lineNumber=d;this.column=c.firstColumn}}c.prototype=new Error;a=c;return a}();var d=function(a,b){"use strict";var c={};var d=a;var e=b;var f="2.0.0";c.VERSION=f;var g=6;c.COMPILER_REVISION=g;var h={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};c.REVISION_CHANGES=h;var i=d.isArray,j=d.isFunction,k=d.toString,l="[object Object]";function m(a,b){this.helpers=a||{};this.partials=b||{};n(this)}c.HandlebarsEnvironment=m;m.prototype={constructor:m,logger:o,log:p,registerHelper:function(a,b){if(k.call(a)===l){if(b){throw new e("Arg not supported with multiple helpers")}d.extend(this.helpers,a)}else{this.helpers[a]=b}},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){if(k.call(a)===l){d.extend(this.partials,a)}else{this.partials[a]=b}},unregisterPartial:function(a){delete this.partials[a]}};function n(a){a.registerHelper("helperMissing",function(){if(arguments.length===1){return undefined}else{throw new e("Missing helper: '"+arguments[arguments.length-1].name+"'")}});a.registerHelper("blockHelperMissing",function(b,c){var e=c.inverse,f=c.fn;if(b===true){return f(this)}else if(b===false||b==null){return e(this)}else if(i(b)){if(b.length>0){if(c.ids){c.ids=[c.name]}return a.helpers.each(b,c)}else{return e(this)}}else{if(c.data&&c.ids){var g=q(c.data);g.contextPath=d.appendContextPath(c.data.contextPath,c.name);c={data:g}}return f(b,c)}});a.registerHelper("each",function(a,b){if(!b){throw new e("Must pass iterator to #each")}var c=b.fn,f=b.inverse;var g=0,h="",k;var l;if(b.data&&b.ids){l=d.appendContextPath(b.data.contextPath,b.ids[0])+"."}if(j(a)){a=a.call(this)}if(b.data){k=q(b.data)}if(a&&typeof a==="object"){if(i(a)){for(var m=a.length;g<m;g++){if(k){k.index=g;k.first=g===0;k.last=g===a.length-1;if(l){k.contextPath=l+g}}h=h+c(a[g],{data:k})}}else{for(var n in a){if(a.hasOwnProperty(n)){if(k){k.key=n;k.index=g;k.first=g===0;if(l){k.contextPath=l+n}}h=h+c(a[n],{data:k});g++}}}}if(g===0){h=f(this)}return h});a.registerHelper("if",function(a,b){if(j(a)){a=a.call(this)}if(!b.hash.includeZero&&!a||d.isEmpty(a)){return b.inverse(this)}else{return b.fn(this)}});a.registerHelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})});a.registerHelper("with",function(a,b){if(j(a)){a=a.call(this)}var c=b.fn;if(!d.isEmpty(a)){if(b.data&&b.ids){var e=q(b.data);e.contextPath=d.appendContextPath(b.data.contextPath,b.ids[0]);b={data:e}}return c(a,b)}else{return b.inverse(this)}});a.registerHelper("log",function(b,c){var d=c.data&&c.data.level!=null?parseInt(c.data.level,10):1;a.log(d,b)});a.registerHelper("lookup",function(a,b){return a&&a[b]})}var o={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(o.level<=a){var c=o.methodMap[a];if(typeof console!=="undefined"&&console[c]){console[c].call(console,b)}}}};c.logger=o;var p=o.log;c.log=p;var q=function(a){var b=d.extend({},a);b._parent=a;return b};c.createFrame=q;return c}(b,c);var e=function(a,b,c){"use strict";var d={};var e=a;var f=b;var g=c.COMPILER_REVISION;var h=c.REVISION_CHANGES;var i=c.createFrame;function j(a){var b=a&&a[0]||1,c=g;if(b!==c){if(b<c){var d=h[c],e=h[b];throw new f("Template was precompiled with an older version of Handlebars than the current runtime. "+"Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}else{throw new f("Template was precompiled with a newer version of Handlebars than the current runtime. "+"Please update your runtime to a newer version ("+a[1]+").")}}}d.checkRevision=j;function k(a,b){if(!b){throw new f("No environment passed to template")}if(!a||!a.main){throw new f("Unknown template object: "+typeof a)}b.VM.checkRevision(a.compiler);var c=function(c,d,g,h,i,j,k,l,m){if(i){h=e.extend({},h,i)}var n=b.VM.invokePartial.call(this,c,g,h,j,k,l,m);if(n==null&&b.compile){var o={helpers:j,partials:k,data:l,depths:m};k[g]=b.compile(c,{data:l!==undefined,compat:a.compat},b);n=k[g](h,o)}if(n!=null){if(d){var p=n.split("\n");for(var q=0,r=p.length;q<r;q++){if(!p[q]&&q+1===r){break}p[q]=d+p[q]}n=p.join("\n")}return n}else{throw new f("The partial "+g+" could not be compiled when running in runtime-only mode")}};var d={lookup:function(a,b){var c=a.length;for(var d=0;d<c;d++){if(a[d]&&a[d][b]!=null){return a[d][b]}}},lambda:function(a,b){return typeof a==="function"?a.call(b):a},escapeExpression:e.escapeExpression,invokePartial:c,fn:function(b){return a[b]},programs:[],program:function(a,b,c){var d=this.programs[a],e=this.fn(a);if(b||c){d=l(this,a,e,b,c)}else if(!d){d=this.programs[a]=l(this,a,e)}return d},data:function(a,b){while(a&&b--){a=a._parent}return a},merge:function(a,b){var c=a||b;if(a&&b&&a!==b){c=e.extend({},b,a)}return c},noop:b.VM.noop,compilerInfo:a.compiler};var g=function(b,c){c=c||{};var e=c.data;g._setup(c);if(!c.partial&&a.useData){e=o(b,e)}var f;if(a.useDepths){f=c.depths?[b].concat(c.depths):[b]}return a.main.call(d,b,d.helpers,d.partials,e,f)};g.isTop=true;g._setup=function(c){if(!c.partial){d.helpers=d.merge(c.helpers,b.helpers);if(a.usePartial){d.partials=d.merge(c.partials,b.partials)}}else{d.helpers=c.helpers;d.partials=c.partials}};g._child=function(b,c,e){if(a.useDepths&&!e){throw new f("must pass parent depths")}return l(d,b,a[b],c,e)};return g}d.template=k;function l(a,b,c,d,e){var f=function(b,f){f=f||{};return c.call(a,b,a.helpers,a.partials,f.data||d,e&&[b].concat(e))};f.program=b;f.depth=e?e.length:0;return f}d.program=l;function m(a,b,c,d,e,g,h){var i={partial:true,helpers:d,partials:e,data:g,depths:h};if(a===undefined){throw new f("The partial "+b+" could not be found")}else if(a instanceof Function){return a(c,i)}}d.invokePartial=m;function n(){return""}d.noop=n;function o(a,b){if(!b||!("root"in b)){b=b?i(b):{};b.root=a}return b}return d}(b,c,d);var f=function(a,b,c,d,e){"use strict";var f;var g=a;var h=b;var i=c;var j=d;var k=e;var l=function(){var a=new g.HandlebarsEnvironment;j.extend(a,g);a.SafeString=h;a.Exception=i;a.Utils=j;a.escapeExpression=j.escapeExpression;a.VM=k;a.template=function(b){return k.template(b,a)};return a};var m=l();m.create=l;m["default"]=m;f=m;return f}(d,a,c,b,e);return f});var diff;Handlebars.registerHelper("diff",function(a,b){if(a!=diff){diff=a;return b.fn(this)}else{return b.inverse(this)}});Handlebars.registerHelper("equal",function(a,b,c){a=a.toString();b=b.toString();if(a==b){return c.fn(this)}else{return c.inverse(this)}});Handlebars.registerHelper("modes",function(a){var b={"~":"owner","&":"admin","@":"op","%":"half-op","+":"voice","":"normal"};return b[a]});Handlebars.registerHelper("parse",function(a){var b=wraplong(a);a=escape(a);a=colors(a);a=uri(a);if(b){return"<i class='wrap'>"+a+"</i>"}else{return a}});function wraplong(a){var b=false;var c=a.split(" ");for(var d in c){if(c[d].length>40){b=true}}return b}function escape(a){var b={"<":"<",">":">","'":"'"};return a.replace(/[<>']/g,function(a){return b[a]})}function uri(a){return URI.withinString(a,function(a,b,c,d){if(a.indexOf("javascript:")===0){return a}var e=a.split("<");a="<a href='"+e[0].replace(/^www/,"//www")+"' target='_blank'>"+e[0]+"</a>";if(e.length>1){a+="<"+e.slice(1).join("<")}return a})}var styleCheck_Re=/[\x00-\x1F]/,back_re=/^([0-9]{1,2})(,([0-9]{1,2}))?/,colourKey="",styleBreak="";function styleTemplate(a){return"<span class='"+a.style+"'>"+a.text+"</span>"}var styles=[["normal","\0",""],["underline",""],["bold",""],["italic",""]].map(function(a){var b=encodeURI(a[1]).replace("%","\\x");return{name:a[0],style:a[2]!=null?a[2]:"irc-"+a[0],key:a[1],keyregex:new RegExp(b+"(.*?)("+b+"|$)")}});function colors(a){if(!styleCheck_Re.test(a))return a;if(a.indexOf(styleBreak)>=0){return a.split(styleBreak).map(colors).join("")}var b=a;var c=b.split(colourKey);var d,e,f,g="";for(var h=0;h<c.length;h++){d=c[h];e=d.match(back_re);if(!e){g="";continue}f="irc-fg"+ +e[1];if(e[3]){g=" irc-bg"+ +e[3]}b=b.replace(colourKey+d,styleTemplate({style:f+g,text:d.slice(e[0].length)}))}styles.forEach(function(a){if(b.indexOf(a.key)<0)return;b=b.replace(a.keyregex,function(b,c){return styleTemplate({style:a.style,text:c})})});return b}Handlebars.registerHelper("stringcolor",function(a){return stringcolor(a)});Handlebars.registerHelper("tz",function(a){if(a){var b=moment.utc(a,"HH:mm:ss").toDate();return moment(b).format("HH:mm")}else{return""}});Handlebars.registerHelper("users",function(a){return a+" "+(a==1?"user":"users")});(function(a,b){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=a.document?b(a,true):function(a){if(!a.document){throw new Error("jQuery requires a window with a document")}return b(a)}}else{b(a)}})(typeof window!=="undefined"?window:this,function(a,b){var c=[];var d=c.slice;var e=c.concat;var f=c.push;var g=c.indexOf;var h={};var i=h.toString;var j=h.hasOwnProperty;var k={};var l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return a!=null?a<0?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);b.prevObject=this;b.context=this.context;return b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice};n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=false;if(typeof g==="boolean"){j=g;g=arguments[h]||{};h++}if(typeof g!=="object"&&!n.isFunction(g)){g={}}if(h===i){g=this;h--}for(;h<i;h++){if((a=arguments[h])!=null){for(b in a){c=g[b];d=a[b];if(g===d){continue}if(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))){if(e){e=false;f=c&&n.isArray(c)?c:[]}else{f=c&&n.isPlainObject(c)?c:{}}g[b]=n.extend(j,f,d)}else if(d!==undefined){g[b]=d}}}}return g};n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:true,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return n.type(a)==="function"},isArray:Array.isArray,isWindow:function(a){return a!=null&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){if(n.type(a)!=="object"||a.nodeType||n.isWindow(a)){return false}if(a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")){return false}return true},isEmptyObject:function(a){var b;for(b in a){return false}return true},type:function(a){if(a==null){return a+""}return typeof a==="object"||typeof a==="function"?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a);if(a){if(a.indexOf("use strict")===1){b=l.createElement("script");b.text=a;l.head.appendChild(b).parentNode.removeChild(b)}else{c(a)}}},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;e<f;e++){d=b.apply(a[e],c);if(d===false){break}}}else{for(e in a){d=b.apply(a[e],c);if(d===false){break}}}}else{if(g){for(;e<f;e++){d=b.call(a[e],e,a[e]);if(d===false){break}}}else{for(e in a){d=b.call(a[e],e,a[e]);if(d===false){break}}}}return a},trim:function(a){return a==null?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];if(a!=null){if(s(Object(a))){n.merge(c,typeof a==="string"?[a]:a)}else{f.call(c,a)}}return c},inArray:function(a,b,c){return b==null?-1:g.call(b,a,c)},merge:function(a,b){var c=+b.length,d=0,e=a.length;for(;d<c;d++){a[e++]=b[d]}a.length=e;return a},grep:function(a,b,c){var d,e=[],f=0,g=a.length,h=!c;for(;f<g;f++){d=!b(a[f],f);if(d!==h){e.push(a[f])}}return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h){for(;f<g;f++){d=b(a[f],f,c);if(d!=null){i.push(d)}}}else{for(f in a){d=b(a[f],f,c);if(d!=null){i.push(d)}}}return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;if(typeof b==="string"){c=a[b];b=a;a=c}if(!n.isFunction(a)){return undefined}e=d.call(arguments,2);f=function(){return a.apply(b||this,e.concat(d.call(arguments)))};f.guid=a.guid=a.guid||n.guid++;return f},now:Date.now,support:k});n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);if(c==="function"||n.isWindow(a)){return false}if(a.nodeType===1&&b){return true}return c==="array"||b===0||typeof b==="number"&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=fa(),z=fa(),A=fa(),B=function(a,b){if(a===b){l=true}return 0},C=typeof undefined,D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){var b=0,c=this.length;for(;b<c;b++){if(this[b]===a){return b}}return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|"+".*"+")\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,d&1023|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes);F[v.childNodes.length].nodeType}catch(a){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]){}a.length=c-1}}}function ea(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n){m(b)}b=b||n;d=d||[];if(!a||typeof a!=="string"){return d}if((k=b.nodeType)!==1&&k!==9){return[]}if(p&&!e){if(f=_.exec(a)){if(j=f[1]){if(k===9){h=b.getElementById(j);if(h&&h.parentNode){if(h.id===j){d.push(h);return d}}else{return d}}else{if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j){d.push(h);return d}}}else if(f[2]){I.apply(d,b.getElementsByTagName(a));return d}else if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName){I.apply(d,b.getElementsByClassName(j));return d}}if(c.qsa&&(!q||!q.test(a))){s=r=u;w=b;x=k===9&&a;if(k===1&&b.nodeName.toLowerCase()!=="object"){o=g(a);if(r=b.getAttribute("id")){s=r.replace(ba,"\\$&")}else{b.setAttribute("id",s)}s="[id='"+s+"'] ";l=o.length;while(l--){o[l]=s+pa(o[l])}w=aa.test(a)&&na(b.parentNode)||b;x=o.join(",")}if(x){try{I.apply(d,w.querySelectorAll(x));return d}catch(a){}finally{if(!r){b.removeAttribute("id")}}}}}return i(a.replace(R,"$1"),b,d,e)}function fa(){var a=[];function b(c,e){if(a.push(c+" ")>d.cacheLength){delete b[a.shift()]}return b[c+" "]=e}return b}function ga(a){a[u]=true;return a}function ha(a){var b=n.createElement("div");try{return!!a(b)}catch(a){return false}finally{if(b.parentNode){b.parentNode.removeChild(b)}b=null}}function ia(a,b){var c=a.split("|"),e=a.length;while(e--){d.attrHandle[c[e]]=b}}function ja(a,b){var c=b&&a,d=c&&a.nodeType===1&&b.nodeType===1&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d){return d}if(c){while(c=c.nextSibling){if(c===b){return-1}}}return a?1:-1}function ka(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function la(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function ma(a){return ga(function(b){b=+b;return ga(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--){if(c[e=f[g]]){c[e]=!(d[e]=c[e])}}})})}function na(a){return a&&typeof a.getElementsByTagName!==C&&a}c=ea.support={};f=ea.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":false};m=ea.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;if(e===n||e.nodeType!==9||!e.documentElement){return n}n=e;o=e.documentElement;p=!f(e);if(g&&g!==g.top){if(g.addEventListener){g.addEventListener("unload",function(){m()},false)}else if(g.attachEvent){g.attachEvent("onunload",function(){m()})}}c.attributes=ha(function(a){a.className="i";return!a.getAttribute("className")});c.getElementsByTagName=ha(function(a){a.appendChild(e.createComment(""));return!a.getElementsByTagName("*").length});c.getElementsByClassName=$.test(e.getElementsByClassName)&&ha(function(a){a.innerHTML="<div class='a'></div><div class='a i'></div>";a.firstChild.className="i";return a.getElementsByClassName("i").length===2});c.getById=ha(function(a){o.appendChild(a).id=u;return!e.getElementsByName||!e.getElementsByName(u).length});if(c.getById){d.find["ID"]=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}};d.filter["ID"]=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}}else{delete d.find["ID"];d.filter["ID"]=function(a){var b=a.replace(ca,da);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}}d.find["TAG"]=c.getElementsByTagName?function(a,b){if(typeof b.getElementsByTagName!==C){return b.getElementsByTagName(a)}}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if(a==="*"){while(c=f[e++]){if(c.nodeType===1){d.push(c)}}return d}return f};d.find["CLASS"]=c.getElementsByClassName&&function(a,b){if(typeof b.getElementsByClassName!==C&&p){return b.getElementsByClassName(a)}};r=[];q=[];if(c.qsa=$.test(e.querySelectorAll)){ha(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>";if(a.querySelectorAll("[msallowclip^='']").length){q.push("[*^$]="+M+"*(?:''|\"\")")}if(!a.querySelectorAll("[selected]").length){q.push("\\["+M+"*(?:value|"+L+")")}if(!a.querySelectorAll(":checked").length){q.push(":checked")}});ha(function(a){var b=e.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");if(a.querySelectorAll("[name=d]").length){q.push("name"+M+"*[*^$|!~]?=")}if(!a.querySelectorAll(":enabled").length){q.push(":enabled",":disabled")}a.querySelectorAll("*,:x");q.push(",.*:")})}if(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector)){ha(function(a){c.disconnectedMatch=s.call(a,"div");s.call(a,"[s!='']:x");r.push("!=",Q)})}q=q.length&&new RegExp(q.join("|"));r=r.length&&new RegExp(r.join("|"));b=$.test(o.compareDocumentPosition);t=b||$.test(o.contains)?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&(c.contains?c.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16))}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return true}}}return false};B=b?function(a,b){if(a===b){l=true;return 0}var d=!a.compareDocumentPosition-!b.compareDocumentPosition;if(d){return d}d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;if(d&1||!c.sortDetached&&b.compareDocumentPosition(a)===d){if(a===e||a.ownerDocument===v&&t(v,a)){return-1}if(b===e||b.ownerDocument===v&&t(v,b)){return 1}return k?K.call(k,a)-K.call(k,b):0}return d&4?-1:1}:function(a,b){if(a===b){l=true;return 0}var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g){return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0}else if(f===g){return ja(a,b)}c=a;while(c=c.parentNode){h.unshift(c)}c=b;while(c=c.parentNode){i.unshift(c)}while(h[d]===i[d]){d++}return d?ja(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0};return e};ea.matches=function(a,b){return ea(a,null,null,b)};ea.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n){m(a)}b=b.replace(U,"='$1']");if(c.matchesSelector&&p&&(!r||!r.test(b))&&(!q||!q.test(b))){try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&a.document.nodeType!==11){return d}}catch(a){}}return ea(b,n,null,[a]).length>0};ea.contains=function(a,b){if((a.ownerDocument||a)!==n){m(a)}return t(a,b)};ea.attr=function(a,b){if((a.ownerDocument||a)!==n){m(a)}var e=d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):undefined;return f!==undefined?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null};ea.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};ea.uniqueSort=function(a){var b,d=[],e=0,f=0;l=!c.detectDuplicates;k=!c.sortStable&&a.slice(0);a.sort(B);if(l){while(b=a[f++]){if(b===a[f]){e=d.push(f)}}while(e--){a.splice(d[e],1)}}k=null;return a};e=ea.getText=function(a){var b,c="",d=0,f=a.nodeType;if(!f){while(b=a[d++]){c+=e(b)}}else if(f===1||f===9||f===11){if(typeof a.textContent==="string"){return a.textContent}else{for(a=a.firstChild;a;a=a.nextSibling){c+=e(a)}}}else if(f===3||f===4){return a.nodeValue}return c};d=ea.selectors={cacheLength:50,createPseudo:ga,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(ca,da);a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da);if(a[2]==="~="){a[3]=" "+a[3]+" "}return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();if(a[1].slice(0,3)==="nth"){if(!a[3]){ea.error(a[0])}a[4]=+(a[4]?a[5]+(a[6]||1):2*(a[3]==="even"||a[3]==="odd"));a[5]=+(a[7]+a[8]||a[3]==="odd")}else if(a[3]){ea.error(a[0])}return a},PSEUDO:function(a){var b,c=!a[6]&&a[2];if(X["CHILD"].test(a[0])){return null}if(a[3]){a[2]=a[4]||a[5]||""}else if(c&&V.test(c)&&(b=g(c,true))&&(b=c.indexOf(")",c.length-b)-c.length)){a[0]=a[0].slice(0,b);a[2]=c.slice(0,b)}return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return a==="*"?function(){return true}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test(typeof a.className==="string"&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ea.attr(d,a);if(e==null){return b==="!="}if(!b){return true}e+="";return b==="="?e===c:b==="!="?e!==c:b==="^="?c&&e.indexOf(c)===0:b==="*="?c&&e.indexOf(c)>-1:b==="$="?c&&e.slice(-c.length)===c:b==="~="?(" "+e+" ").indexOf(c)>-1:b==="|="?e===c||e.slice(0,c.length+1)===c+"-":false}},CHILD:function(a,b,c,d,e){var f=a.slice(0,3)!=="nth",g=a.slice(-4)!=="last",h=b==="of-type";return d===1&&e===0?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p]){if(h?l.nodeName.toLowerCase()===r:l.nodeType===1){return false}}o=p=a==="only"&&!o&&"nextSibling"}return true}o=[g?q.firstChild:q.lastChild];if(g&&s){k=q[u]||(q[u]={});j=k[a]||[];n=j[0]===w&&j[1];m=j[0]===w&&j[2];l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if(l.nodeType===1&&++m&&l===b){k[a]=[w,n,m];break}}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w){m=j[1]}else{while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if((h?l.nodeName.toLowerCase()===r:l.nodeType===1)&&++m){if(s){(l[u]||(l[u]={}))[a]=[w,m]}if(l===b){break}}}}m-=e;return m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ea.error("unsupported pseudo: "+a);if(e[u]){return e(b)}if(e.length>1){c=[a,a,"",b];return d.setFilters.hasOwnProperty(a.toLowerCase())?ga(function(a,c){var d,f=e(a,b),g=f.length;while(g--){d=K.call(a,f[g]);a[d]=!(c[d]=f[g])}}):function(a){return e(a,0,c)}}return e}},pseudos:{not:ga(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ga(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--){if(f=g[h]){a[h]=!(b[h]=f)}}}):function(a,e,f){b[0]=a;d(b,null,f,c);return!c.pop()}}),has:ga(function(a){return function(b){return ea(a,b).length>0}}),contains:ga(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ga(function(a){if(!W.test(a||"")){ea.error("unsupported lang: "+a)}a=a.replace(ca,da).toLowerCase();return function(b){var c;do{if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang")){c=c.toLowerCase();return c===a||c.indexOf(a+"-")===0}}while((b=b.parentNode)&&b.nodeType===1);return false}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===false},disabled:function(a){return a.disabled===true},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){if(a.parentNode){a.parentNode.selectedIndex}return a.selected===true},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling){if(a.nodeType<6){return false}}return true},parent:function(a){return!d.pseudos["empty"](a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},text:function(a){var b;return a.nodeName.toLowerCase()==="input"&&a.type==="text"&&((b=a.getAttribute("type"))==null||b.toLowerCase()==="text")},first:ma(function(){return[0]}),last:ma(function(a,b){return[b-1]}),eq:ma(function(a,b,c){return[c<0?c+b:c]}),even:ma(function(a,b){var c=0;for(;c<b;c+=2){a.push(c)}return a}),odd:ma(function(a,b){var c=1;for(;c<b;c+=2){a.push(c)}return a}),lt:ma(function(a,b,c){var d=c<0?c+b:c;for(;--d>=0;){a.push(d)}return a}),gt:ma(function(a,b,c){var d=c<0?c+b:c;for(;++d<b;){a.push(d)}return a})}};d.pseudos["nth"]=d.pseudos["eq"];for(b in{radio:true,checkbox:true,file:true,password:true,image:true}){d.pseudos[b]=ka(b)}for(b in{submit:true,reset:true}){d.pseudos[b]=la(b)}function oa(){}oa.prototype=d.filters=d.pseudos;d.setFilters=new oa;g=ea.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k){return b?0:k.slice(0)}h=a;i=[];j=d.preFilter;while(h){if(!c||(e=S.exec(h))){if(e){h=h.slice(e[0].length)||h}i.push(f=[])}c=false;if(e=T.exec(h)){c=e.shift();f.push({value:c,type:e[0].replace(R," ")});h=h.slice(c.length)}for(g in d.filter){if((e=X[g].exec(h))&&(!j[g]||(e=j[g](e)))){c=e.shift();f.push({value:c,type:g,matches:e});h=h.slice(c.length)}}if(!c){break}}return b?h.length:h?ea.error(a):z(a,i).slice(0)};function pa(a){var b=0,c=a.length,d="";for(;b<c;b++){d+=a[b].value}return d}function qa(a,b,c){var d=b.dir,e=c&&d==="parentNode",f=x++;return b.first?function(b,c,f){while(b=b[d]){if(b.nodeType===1||e){return a(b,c,f)}}}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d]){if(b.nodeType===1||e){if(a(b,c,g)){return true}}}}else{while(b=b[d]){if(b.nodeType===1||e){i=b[u]||(b[u]={});if((h=i[d])&&h[0]===w&&h[1]===f){return j[2]=h[2]}else{i[d]=j;if(j[2]=a(b,c,g)){return true}}}}}}}function ra(a){return a.length>1?function(b,c,d){var e=a.length;while(e--){if(!a[e](b,c,d)){return false}}return true}:a[0]}function sa(a,b,c){var d=0,e=b.length;for(;d<e;d++){ea(a,b[d],c)}return c}function ta(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h<i;h++){if(f=a[h]){if(!c||c(f,d,e)){g.push(f);if(j){b.push(h)}}}}return g}function ua(a,b,c,d,e,f){if(d&&!d[u]){d=ua(d)}if(e&&!e[u]){e=ua(e,f)}return ga(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||sa(b||"*",h.nodeType?[h]:h,[]),q=a&&(f||!b)?ta(p,m,a,h,i):p,r=c?e||(f?a:o||d)?[]:g:q;if(c){c(q,r,h,i)}if(d){j=ta(r,n);d(j,[],h,i);k=j.length;while(k--){if(l=j[k]){r[n[k]]=!(q[n[k]]=l)}}}if(f){if(e||a){if(e){j=[];k=r.length;while(k--){if(l=r[k]){j.push(q[k]=l)}}e(null,r=[],j,i)}k=r.length;while(k--){if((l=r[k])&&(j=e?K.call(f,l):m[k])>-1){f[j]=!(g[j]=l)}}}}else{r=ta(r===g?r.splice(o,r.length):r);if(e){e(null,g,r,i)}else{I.apply(g,r)}}})}function va(a){var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=qa(function(a){return a===b},h,true),l=qa(function(a){return K.call(b,a)>-1},h,true),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];for(;i<f;i++){if(c=d.relative[a[i].type]){m=[qa(ra(m),c)]}else{c=d.filter[a[i].type].apply(null,a[i].matches);if(c[u]){e=++i;for(;e<f;e++){if(d.relative[a[e].type]){break}}return ua(i>1&&ra(m),i>1&&pa(a.slice(0,i-1).concat({value:a[i-2].type===" "?"*":""})).replace(R,"$1"),c,i<e&&va(a.slice(i,e)),e<f&&va(a=a.slice(e)),e<f&&pa(a))}m.push(c)}}return ra(m)}function wa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find["TAG"]("*",k),v=w+=t==null?1:Math.random()||.1,x=u.length;if(k){j=g!==n&&g}for(;q!==x&&(l=u[q])!=null;q++){if(e&&l){m=0;while(o=a[m++]){if(o(l,g,h)){i.push(l);break}}if(k){w=v}}if(c){if(l=!o&&l){p--}if(f){r.push(l)}}}p+=q;if(c&&q!==p){m=0;while(o=b[m++]){o(r,s,g,h)}if(f){if(p>0){while(q--){if(!(r[q]||s[q])){s[q]=G.call(i)}}}s=ta(s)}I.apply(i,s);if(k&&!f&&s.length>0&&p+b.length>1){ea.uniqueSort(i)}}if(k){w=v;j=t}return r};return c?ga(f):f}h=ea.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){if(!b){b=g(a)}c=b.length;while(c--){f=va(b[c]);if(f[u]){d.push(f)}else{e.push(f)}}f=A(a,wa(e,d));f.selector=a}return f};i=ea.select=function(a,b,e,f){var i,j,k,l,m,n=typeof a==="function"&&a,o=!f&&g(a=n.selector||a);e=e||[];if(o.length===1){j=o[0]=o[0].slice(0);if(j.length>2&&(k=j[0]).type==="ID"&&c.getById&&b.nodeType===9&&p&&d.relative[j[1].type]){b=(d.find["ID"](k.matches[0].replace(ca,da),b)||[])[0];if(!b){return e}else if(n){b=b.parentNode}a=a.slice(j.shift().value.length)}i=X["needsContext"].test(a)?0:j.length;while(i--){k=j[i];if(d.relative[l=k.type]){break}if(m=d.find[l]){if(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&na(b.parentNode)||b)){j.splice(i,1);a=f.length&&pa(j);if(!a){I.apply(e,f);return e}break}}}}(n||h(a,o))(f,b,!p,e,aa.test(a)&&na(b.parentNode)||b);return e};c.sortStable=u.split("").sort(B).join("")===u;c.detectDuplicates=!!l;m();c.sortDetached=ha(function(a){return a.compareDocumentPosition(n.createElement("div"))&1});if(!ha(function(a){a.innerHTML="<a href='#'></a>";return a.firstChild.getAttribute("href")==="#"})){ia("type|href|height|width",function(a,b,c){if(!c){return a.getAttribute(b,b.toLowerCase()==="type"?1:2)}})}if(!c.attributes||!ha(function(a){a.innerHTML="<input/>";a.firstChild.setAttribute("value","");return a.firstChild.getAttribute("value")===""})){ia("value",function(a,b,c){if(!c&&a.nodeName.toLowerCase()==="input"){return a.defaultValue}})}if(!ha(function(a){return a.getAttribute("disabled")==null})){ia(L,function(a,b,c){var d;if(!c){return a[b]===true?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}})}return ea}(a);n.find=t;n.expr=t.selectors;n.expr[":"]=n.expr.pseudos;n.unique=t.uniqueSort;n.text=t.getText;n.isXMLDoc=t.isXML;n.contains=t.contains;var u=n.expr.match.needsContext;var v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;var w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b)){return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c})}if(b.nodeType){return n.grep(a,function(a){return a===b!==c})}if(typeof b==="string"){if(w.test(b)){return n.filter(b,a,c)}b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];if(c){a=":not("+a+")"}return b.length===1&&d.nodeType===1?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return a.nodeType===1}))};n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if(typeof a!=="string"){return this.pushStack(n(a).filter(function(){for(b=0;b<c;b++){if(n.contains(e[b],this)){return true}}}))}for(b=0;b<c;b++){n.find(a,e[b],d)}d=this.pushStack(c>1?n.unique(d):d);d.selector=this.selector?this.selector+" "+a:a;return d},filter:function(a){return this.pushStack(x(this,a||[],false))},not:function(a){return this.pushStack(x(this,a||[],true))},is:function(a){return!!x(this,typeof a==="string"&&u.test(a)?n(a):a||[],false).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a){return this}if(typeof a==="string"){if(a[0]==="<"&&a[a.length-1]===">"&&a.length>=3){c=[null,a,null]}else{c=z.exec(a)}if(c&&(c[1]||!b)){if(c[1]){b=b instanceof n?b[0]:b;n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,true));if(v.test(c[1])&&n.isPlainObject(b)){for(c in b){if(n.isFunction(this[c])){this[c](b[c])}else{this.attr(c,b[c])}}}return this}else{d=l.getElementById(c[2]);if(d&&d.parentNode){this.length=1;this[0]=d}this.context=l;this.selector=a;return this}}else if(!b||b.jquery){return(b||y).find(a)}else{return this.constructor(b).find(a)}}else if(a.nodeType){this.context=this[0]=a;this.length=1;return this}else if(n.isFunction(a)){return typeof y.ready!=="undefined"?y.ready(a):a(n)}if(a.selector!==undefined){this.selector=a.selector;this.context=a.context}return n.makeArray(a,this)};A.prototype=n.fn;y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:true,contents:true,next:true,prev:true};n.extend({dir:function(a,b,c){var d=[],e=c!==undefined;while((a=a[b])&&a.nodeType!==9){if(a.nodeType===1){if(e&&n(a).is(c)){break}d.push(a)}}return d},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling){if(a.nodeType===1&&a!==b){c.push(a)}}return c}});n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){var a=0;for(;a<c;a++){if(n.contains(this,b[a])){return true}}})},closest:function(a,b){var c,d=0,e=this.length,f=[],g=u.test(a)||typeof a!=="string"?n(a,b||this.context):0;for(;d<e;d++){for(c=this[d];c&&c!==b;c=c.parentNode){if(c.nodeType<11&&(g?g.index(c)>-1:c.nodeType===1&&n.find.matchesSelector(c,a))){f.push(c);break}}}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){if(!a){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}if(typeof a==="string"){return g.call(n(a),this[0])}return g.call(this,a.jquery?a[0]:a)},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&a.nodeType!==1){}return a}n.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);if(a.slice(-5)!=="Until"){d=c}if(d&&typeof d==="string"){e=n.filter(d,e)}if(this.length>1){if(!C[a]){n.unique(e)}if(B.test(a)){e.reverse()}}return this.pushStack(e)}});var E=/\S+/g;var F={};function G(a){var b=F[a]={};n.each(a.match(E)||[],function(a,c){b[c]=true});return b}n.Callbacks=function(a){a=typeof a==="string"?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){b=a.memory&&l;c=true;g=e||0;e=0;f=h.length;d=true;for(;h&&g<f;g++){if(h[g].apply(l[0],l[1])===false&&a.stopOnFalse){b=false;break}}d=false;if(h){if(i){if(i.length){j(i.shift())}}else if(b){h=[]}else{k.disable()}}},k={add:function(){if(h){var c=h.length;(function b(c){n.each(c,function(c,d){var e=n.type(d);if(e==="function"){if(!a.unique||!k.has(d)){h.push(d)}}else if(d&&d.length&&e!=="string"){b(d)}})})(arguments);if(d){f=h.length}else if(b){e=c;j(b)}}return this},remove:function(){if(h){n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1){h.splice(c,1);if(d){if(c<=f){f--}if(c<=g){g--}}}})}return this},has:function(a){return a?n.inArray(a,h)>-1:!!(h&&h.length)},empty:function(){h=[];f=0;return this},disable:function(){h=i=b=undefined;return this},disabled:function(){return!h},lock:function(){i=undefined;if(!b){k.disable()}return this},locked:function(){return!i},fireWith:function(a,b){if(h&&(!c||i)){b=b||[];b=[a,b.slice?b.slice():b];if(d){i.push(b)}else{j(b)}}return this},fire:function(){k.fireWith(this,arguments);return this},fired:function(){return!!c}};return k};n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){e.done(arguments).fail(arguments);return this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);if(a&&n.isFunction(a.promise)){a.promise().done(c.resolve).fail(c.reject).progress(c.notify)}else{c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)}})});a=null}).promise()},promise:function(a){return a!=null?n.extend(a,d):d}},e={};d.pipe=d.then;n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add;if(h){g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock)}e[f[0]]=function(){e[f[0]+"With"](this===e?d:this,arguments);return this};e[f[0]+"With"]=g.fireWith});d.promise(e);if(a){a.call(e,e)}return e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=e!==1||a&&n.isFunction(a.promise)?e:0,g=f===1?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this;c[a]=arguments.length>1?d.call(arguments):e;if(c===i){g.notifyWith(b,c)}else if(!--f){g.resolveWith(b,c)}}},i,j,k;if(e>1){i=new Array(e);j=new Array(e);k=new Array(e);for(;b<e;b++){if(c[b]&&n.isFunction(c[b].promise)){c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i))}else{--f}}}if(!f){g.resolveWith(k,c)}return g.promise()}});var H;n.fn.ready=function(a){n.ready.promise().done(a);return this};n.extend({isReady:false,readyWait:1,holdReady:function(a){if(a){n.readyWait++}else{n.ready(true)}},ready:function(a){if(a===true?--n.readyWait:n.isReady){return}n.isReady=true;if(a!==true&&--n.readyWait>0){return}H.resolveWith(l,[n]);if(n.fn.triggerHandler){n(l).triggerHandler("ready");n(l).off("ready")}}});function I(){l.removeEventListener("DOMContentLoaded",I,false);a.removeEventListener("load",I,false);n.ready()}n.ready.promise=function(b){if(!H){H=n.Deferred();if(l.readyState==="complete"){setTimeout(n.ready)}else{l.addEventListener("DOMContentLoaded",I,false);a.addEventListener("load",I,false)}}return H.promise(b)};n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=c==null;if(n.type(c)==="object"){e=true;for(h in c){n.access(a,b,h,c[h],true,f,g)}}else if(d!==undefined){e=true;if(!n.isFunction(d)){g=true}if(j){if(g){b.call(a,d);b=null}else{j=b;b=function(a,b,c){return j.call(n(a),c)}}}if(b){for(;h<i;h++){b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)))}}}return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return a.nodeType===1||a.nodeType===9||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}});this.expando=n.expando+Math.random()}K.uid=1;K.accepts=n.acceptData;K.prototype={key:function(a){if(!K.accepts(a)){return 0}var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c};Object.defineProperties(a,b)}catch(d){b[this.expando]=c;n.extend(a,b)}}if(!this.cache[c]){this.cache[c]={}}return c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if(typeof b==="string"){f[b]=c}else{if(n.isEmptyObject(f)){n.extend(this.cache[e],b)}else{for(d in b){f[d]=b[d]}}}return f},get:function(a,b){var c=this.cache[this.key(a)];return b===undefined?c:c[b]},access:function(a,b,c){var d;if(b===undefined||b&&typeof b==="string"&&c===undefined){d=this.get(a,b);return d!==undefined?d:this.get(a,n.camelCase(b))}this.set(a,b,c);return c!==undefined?c:b},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(b===undefined){this.cache[f]={}}else{if(n.isArray(b)){d=b.concat(b.map(n.camelCase))}else{e=n.camelCase(b);if(b in g){d=[b,e]}else{d=e;d=d in g?[d]:d.match(E)||[]}}c=d.length;while(c--){delete g[d[c]]}}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){if(a[this.expando]){delete this.cache[a[this.expando]]}}};var L=new K;var M=new K;var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(c===undefined&&a.nodeType===1){d="data-"+b.replace(O,"-$1").toLowerCase();c=a.getAttribute(d);if(typeof c==="string"){try{c=c==="true"?true:c==="false"?false:c==="null"?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(a){}M.set(a,b,c)}else{c=undefined}}return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}});n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(a===undefined){if(this.length){e=M.get(f);if(f.nodeType===1&&!L.get(f,"hasDataAttrs")){c=g.length;while(c--){if(g[c]){d=g[c].name;if(d.indexOf("data-")===0){d=n.camelCase(d.slice(5));P(f,d,e[d])}}}L.set(f,"hasDataAttrs",true)}}return e}if(typeof a==="object"){return this.each(function(){M.set(this,a)})}return J(this,function(b){var c,d=n.camelCase(a);if(f&&b===undefined){c=M.get(f,a);if(c!==undefined){return c}c=M.get(f,d);if(c!==undefined){return c}c=P(f,d,undefined);if(c!==undefined){return c}return}this.each(function(){var c=M.get(this,d);M.set(this,d,b);if(a.indexOf("-")!==-1&&c!==undefined){M.set(this,a,b)}})},null,b,arguments.length>1,null,true)},removeData:function(a){return this.each(function(){M.remove(this,a)})}});n.extend({queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue";d=L.get(a,b);if(c){if(!d||n.isArray(c)){d=L.access(a,b,n.makeArray(c))}else{d.push(c)}}return d||[]}},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};if(e==="inprogress"){e=c.shift();d--}if(e){if(b==="fx"){c.unshift("inprogress")}delete f.stop;e.call(a,g,f)}if(!d&&f){f.empty.fire()}},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}});n.fn.extend({queue:function(a,b){var c=2;if(typeof a!=="string"){b=a;a="fx";c--}if(arguments.length<c){return n.queue(this[0],a)}return b===undefined?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a);if(a==="fx"&&c[0]!=="inprogress"){n.dequeue(this,a)}})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){if(!--d){e.resolveWith(f,[f])}};if(typeof a!=="string"){b=a;a=undefined}a=a||"fx";while(g--){c=L.get(f[g],a+"queueHooks");if(c&&c.empty){d++;c.empty.add(h)}}h();return e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var R=["Top","Right","Bottom","Left"];var S=function(a,b){a=b||a;return n.css(a,"display")==="none"||!n.contains(a.ownerDocument,a)};var T=/^(?:checkbox|radio)$/i;(function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio");c.setAttribute("checked","checked");c.setAttribute("name","t");b.appendChild(c);k.checkClone=b.cloneNode(true).cloneNode(true).lastChild.checked;b.innerHTML="<textarea>x</textarea>";k.noCloneChecked=!!b.cloneNode(true).lastChild.defaultValue})();var U=typeof undefined;k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return true}function $(){return false}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(!r){return}if(c.handler){f=c;c=f.handler;e=f.selector}if(!c.guid){c.guid=n.guid++}if(!(i=r.events)){i=r.events={}}if(!(g=r.handle)){g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):undefined}}b=(b||"").match(E)||[""];j=b.length;while(j--){h=Y.exec(b[j])||[];o=q=h[1];p=(h[2]||"").split(".").sort();if(!o){continue}l=n.event.special[o]||{};o=(e?l.delegateType:l.bindType)||o;l=n.event.special[o]||{};k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f);if(!(m=i[o])){m=i[o]=[];m.delegateCount=0;if(!l.setup||l.setup.call(a,d,p,g)===false){if(a.addEventListener){a.addEventListener(o,g,false)}}}if(l.add){l.add.call(a,k);if(!k.handler.guid){k.handler.guid=c.guid}}if(e){m.splice(m.delegateCount++,0,k)}else{m.push(k)}n.event.global[o]=true}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(!r||!(i=r.events)){return}b=(b||"").match(E)||[""];j=b.length;while(j--){h=Y.exec(b[j])||[];o=q=h[1];p=(h[2]||"").split(".").sort();if(!o){for(o in i){n.event.remove(a,o+b[j],c,d,true)}continue}l=n.event.special[o]||{};o=(d?l.delegateType:l.bindType)||o;m=i[o]||[];h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)");g=f=m.length;while(f--){k=m[f];if((e||q===k.origType)&&(!c||c.guid===k.guid)&&(!h||h.test(k.namespace))&&(!d||d===k.selector||d==="**"&&k.selector)){m.splice(f,1);if(k.selector){m.delegateCount--}if(l.remove){l.remove.call(a,k)}}}if(g&&!m.length){if(!l.teardown||l.teardown.call(a,p,r.handle)===false){n.removeEvent(a,o,r.handle)}delete i[o]}}if(n.isEmptyObject(i)){delete r.handle;L.remove(a,"events")}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];g=h=d=d||l;if(d.nodeType===3||d.nodeType===8){return}if(X.test(q+n.event.triggered)){return}if(q.indexOf(".")>=0){r=q.split(".");q=r.shift();r.sort()}k=q.indexOf(":")<0&&"on"+q;b=b[n.expando]?b:new n.Event(q,typeof b==="object"&&b);b.isTrigger=e?2:3;b.namespace=r.join(".");b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;b.result=undefined;if(!b.target){b.target=d}c=c==null?[b]:n.makeArray(c,[b]);o=n.event.special[q]||{};if(!e&&o.trigger&&o.trigger.apply(d,c)===false){return}if(!e&&!o.noBubble&&!n.isWindow(d)){i=o.delegateType||q;if(!X.test(i+q)){g=g.parentNode}for(;g;g=g.parentNode){p.push(g);h=g}if(h===(d.ownerDocument||l)){p.push(h.defaultView||h.parentWindow||a)}}f=0;while((g=p[f++])&&!b.isPropagationStopped()){b.type=f>1?i:o.bindType||q;m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle");if(m){m.apply(g,c)}m=k&&g[k];if(m&&m.apply&&n.acceptData(g)){b.result=m.apply(g,c);if(b.result===false){b.preventDefault()}}}b.type=q;if(!e&&!b.isDefaultPrevented()){if((!o._default||o._default.apply(p.pop(),c)===false)&&n.acceptData(d)){if(k&&n.isFunction(d[q])&&!n.isWindow(d)){h=d[k];if(h){d[k]=null}n.event.triggered=q;d[q]();n.event.triggered=undefined;if(h){d[k]=h}}}}return b.result},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};i[0]=a;a.delegateTarget=this;if(k.preDispatch&&k.preDispatch.call(this,a)===false){return}h=n.event.handlers.call(this,a,j);b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem;c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped()){if(!a.namespace_re||a.namespace_re.test(g.namespace)){a.handleObj=g;a.data=g.data;e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i);if(e!==undefined){if((a.result=e)===false){a.preventDefault();a.stopPropagation()}}}}}if(k.postDispatch){k.postDispatch.call(this,a)}return a.result},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||a.type!=="click")){for(;i!==this;i=i.parentNode||this){if(i.disabled!==true||a.type!=="click"){d=[];for(c=0;c<h;c++){f=b[c];e=f.selector+" ";if(d[e]===undefined){d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length}if(d[e]){d.push(f)}}if(d.length){g.push({elem:i,handlers:d})}}}}if(h<b.length){g.push({elem:this,handlers:b.slice(h)})}return g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){if(a.which==null){a.which=b.charCode!=null?b.charCode:b.keyCode}return a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;if(a.pageX==null&&b.clientX!=null){c=a.target.ownerDocument||l;d=c.documentElement;e=c.body;a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0);a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)}if(!a.which&&f!==undefined){a.which=f&1?1:f&2?3:f&4?2:0}return a}},fix:function(a){if(a[n.expando]){return a}var b,c,d,e=a.type,f=a,g=this.fixHooks[e];if(!g){this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}}d=g.props?this.props.concat(g.props):this.props;a=new n.Event(f);b=d.length;while(b--){c=d[b];a[c]=f[c]}if(!a.target){a.target=l}if(a.target.nodeType===3){a.target=a.target.parentNode}return g.filter?g.filter(a,f):a},special:{load:{noBubble:true},focus:{trigger:function(){if(this!==_()&&this.focus){this.focus();return false}},delegateType:"focusin"},blur:{trigger:function(){if(this===_()&&this.blur){this.blur();return false}},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&n.nodeName(this,"input")){this.click();return false}},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){if(a.result!==undefined&&a.originalEvent){a.originalEvent.returnValue=a.result}}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:true,originalEvent:{}});if(d){n.event.trigger(e,null,b)}else{n.event.dispatch.call(b,e)}if(e.isDefaultPrevented()){c.preventDefault()}}};n.removeEvent=function(a,b,c){if(a.removeEventListener){a.removeEventListener(b,c,false)}};n.Event=function(a,b){if(!(this instanceof n.Event)){return new n.Event(a,b)}if(a&&a.type){this.originalEvent=a;this.type=a.type;this.isDefaultPrevented=a.defaultPrevented||a.defaultPrevented===undefined&&a.returnValue===false?Z:$}else{this.type=a}if(b){n.extend(this,b)}this.timeStamp=a&&a.timeStamp||n.now();this[n.expando]=true};n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z;if(a&&a.preventDefault){a.preventDefault()}},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z;if(a&&a.stopPropagation){a.stopPropagation()}},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z;if(a&&a.stopImmediatePropagation){a.stopImmediatePropagation()}this.stopPropagation()}};n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;if(!e||e!==d&&!n.contains(d,e)){a.type=f.origType;c=f.handler.apply(this,arguments);a.type=b}return c}}});if(!k.focusinBubbles){n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),true)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);if(!e){d.addEventListener(a,c,true)}L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;if(!e){d.removeEventListener(a,c,true);L.remove(d,b)}else{L.access(d,b,e)}}}})}n.fn.extend({on:function(a,b,c,d,e){var f,g;if(typeof a==="object"){if(typeof b!=="string"){c=c||b;b=undefined}for(g in a){this.on(g,b,c,a[g],e)}return this}if(c==null&&d==null){d=b;c=b=undefined}else if(d==null){if(typeof b==="string"){d=c;c=undefined}else{d=c;c=b;b=undefined}}if(d===false){d=$}else if(!d){return this}if(e===1){f=d;d=function(a){n().off(a);return f.apply(this,arguments)};d.guid=f.guid||(f.guid=n.guid++)}return this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj){d=a.handleObj;n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler);return this}if(typeof a==="object"){for(e in a){this.off(e,b,a[e])}return this}if(b===false||typeof b==="function"){c=b;b=undefined}if(c===false){c=$}return this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c){return n.event.trigger(a,b,c,true)}}});var aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ba=/<([\w:]+)/,ca=/<|&#?\w+;/,da=/<(?:script|style|link)/i,ea=/checked\s*(?:[^=]|=\s*.checked.)/i,fa=/^$|\/(?:java|ecma)script/i,ga=/^true\/(.*)/,ha=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ia={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ia.optgroup=ia.option;ia.tbody=ia.tfoot=ia.colgroup=ia.caption=ia.thead;ia.th=ia.td;function ja(a,b){return n.nodeName(a,"table")&&n.nodeName(b.nodeType!==11?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function ka(a){a.type=(a.getAttribute("type")!==null)+"/"+a.type;return a}function la(a){var b=ga.exec(a.type);if(b){a.type=b[1]}else{a.removeAttribute("type")}return a}function ma(a,b){var c=0,d=a.length;for(;c<d;c++){L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}}function na(a,b){var c,d,e,f,g,h,i,j;if(b.nodeType!==1){return}if(L.hasData(a)){f=L.access(a);g=L.set(b,f);j=f.events;if(j){delete g.handle;g.events={};for(e in j){for(c=0,d=j[e].length;c<d;c++){n.event.add(b,e,j[e][c])}}}}if(M.hasData(a)){h=M.access(a);i=n.extend({},h);M.set(b,i)}}function oa(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return b===undefined||b&&n.nodeName(a,b)?n.merge([a],c):c}function pa(a,b){var c=b.nodeName.toLowerCase();if(c==="input"&&T.test(a.type)){b.checked=a.checked}else if(c==="input"||c==="textarea"){b.defaultValue=a.defaultValue}}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(true),i=n.contains(a.ownerDocument,a);if(!k.noCloneChecked&&(a.nodeType===1||a.nodeType===11)&&!n.isXMLDoc(a)){g=oa(h);f=oa(a);for(d=0,e=f.length;d<e;d++){pa(f[d],g[d])}}if(b){if(c){f=f||oa(a);g=g||oa(h);for(d=0,e=f.length;d<e;d++){na(f[d],g[d])}}else{na(a,h)}}g=oa(h,"script");if(g.length>0){ma(g,!i&&oa(a,"script"))}return h},buildFragment:function(a,b,c,d){var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;for(;m<o;m++){e=a[m];if(e||e===0){if(n.type(e)==="object"){n.merge(l,e.nodeType?[e]:e)}else if(!ca.test(e)){l.push(b.createTextNode(e))}else{f=f||k.appendChild(b.createElement("div"));g=(ba.exec(e)||["",""])[1].toLowerCase();h=ia[g]||ia._default;f.innerHTML=h[1]+e.replace(aa,"<$1></$2>")+h[2];j=h[0];while(j--){f=f.lastChild}n.merge(l,f.childNodes);f=k.firstChild;f.textContent=""}}}k.textContent="";m=0;while(e=l[m++]){if(d&&n.inArray(e,d)!==-1){continue}i=n.contains(e.ownerDocument,e);f=oa(k.appendChild(e),"script");if(i){ma(f)}if(c){j=0;while(e=f[j++]){if(fa.test(e.type||"")){c.push(e)}}}}return k},cleanData:function(a){var b,c,d,e,f=n.event.special,g=0;for(;(c=a[g])!==undefined;g++){if(n.acceptData(c)){e=c[L.expando];if(e&&(b=L.cache[e])){if(b.events){for(d in b.events){if(f[d]){n.event.remove(c,d)}else{n.removeEvent(c,d,b.handle)}}}if(L.cache[e]){delete L.cache[e]}}}delete M.cache[c[M.expando]]}}});n.fn.extend({text:function(a){return J(this,function(a){return a===undefined?n.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=a}})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=ja(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=ja(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){if(this.parentNode){this.parentNode.insertBefore(a,this)}})},after:function(){return this.domManip(arguments,function(a){if(this.parentNode){this.parentNode.insertBefore(a,this.nextSibling)}})},remove:function(a,b){var c,d=a?n.filter(a,this):this,e=0;for(;(c=d[e])!=null;e++){if(!b&&c.nodeType===1){n.cleanData(oa(c))}if(c.parentNode){if(b&&n.contains(c.ownerDocument,c)){ma(oa(c,"script"))}c.parentNode.removeChild(c)}}return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){if(a.nodeType===1){n.cleanData(oa(a,false));a.textContent=""}}return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(a===undefined&&b.nodeType===1){return b.innerHTML}if(typeof a==="string"&&!da.test(a)&&!ia[(ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(aa,"<$1></$2>");try{for(;c<d;c++){b=this[c]||{};if(b.nodeType===1){n.cleanData(oa(b,false));b.innerHTML=a}}b=0}catch(a){}}if(b){this.empty().append(a)}},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];this.domManip(arguments,function(b){a=this.parentNode;n.cleanData(oa(this));if(a){a.replaceChild(b,this)}});return a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,true)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&typeof p==="string"&&!k.checkClone&&ea.test(p)){return this.each(function(c){var d=m.eq(c);if(q){a[0]=p.call(this,c,d.html())}d.domManip(a,b)})}if(l){c=n.buildFragment(a,this[0].ownerDocument,false,this);d=c.firstChild;if(c.childNodes.length===1){c=d}if(d){f=n.map(oa(c,"script"),ka);g=f.length;for(;j<l;j++){h=c;if(j!==o){h=n.clone(h,true,true);if(g){n.merge(f,oa(h,"script"))}}b.call(this[j],h,j)}if(g){i=f[f.length-1].ownerDocument;n.map(f,la);for(j=0;j<g;j++){h=f[j];if(fa.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)){if(h.src){if(n._evalUrl){n._evalUrl(h.src)}}else{n.globalEval(h.textContent.replace(ha,""))}}}}}}return this}});n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){var c,d=[],e=n(a),g=e.length-1,h=0;for(;h<=g;h++){c=h===g?this:this.clone(true);n(e[h])[b](c);f.apply(d,c.get())}return this.pushStack(d)}});var qa,ra={};function sa(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");e.detach();return f}function ta(a){var b=l,c=ra[a];if(!c){c=sa(a,b);if(c==="none"||!c){qa=(qa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement);b=qa[0].contentDocument;b.write();b.close();c=sa(a,b);qa.detach()}ra[a]=c}return c}var ua=/^margin/;var va=new RegExp("^("+Q+")(?!px)[a-z%]+$","i");var wa=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};function xa(a,b,c){var d,e,f,g,h=a.style;c=c||wa(a);if(c){g=c.getPropertyValue(b)||c[b]}if(c){if(g===""&&!n.contains(a.ownerDocument,a)){g=n.style(a,b)}if(va.test(g)&&ua.test(b)){d=h.width;e=h.minWidth;f=h.maxWidth;h.minWidth=h.maxWidth=h.width=g;g=c.width;h.width=d;h.minWidth=e;h.maxWidth=f}}return g!==undefined?g+"":g}function ya(a,b){return{get:function(){if(a()){delete this.get;return}return(this.get=b).apply(this,arguments)}}}(function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(!f.style){return}f.style.backgroundClip="content-box";f.cloneNode(true).style.backgroundClip="";k.clearCloneStyle=f.style.backgroundClip==="content-box";e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;"+"position:absolute";e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;"+"box-sizing:border-box;display:block;margin-top:1%;top:1%;"+"border:1px;padding:1px;width:4px;position:absolute";f.innerHTML="";d.appendChild(e);var g=a.getComputedStyle(f,null);b=g.top!=="1%";c=g.width==="4px";d.removeChild(e)}if(a.getComputedStyle){n.extend(k,{pixelPosition:function(){g();return b},boxSizingReliable:function(){if(c==null){g()}return c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;"+"box-sizing:content-box;display:block;margin:0;border:0;padding:0";c.style.marginRight=c.style.width="0";f.style.width="1px";d.appendChild(e);b=!parseFloat(a.getComputedStyle(c,null).marginRight);d.removeChild(e);return b}})}})();n.swap=function(a,b,c,d){var e,f,g={};for(f in b){g[f]=a.style[f];a.style[f]=b[f]}e=c.apply(a,d||[]);for(f in b){a.style[f]=g[f]}return e};var za=/^(none|table(?!-c[ea]).+)/,Aa=new RegExp("^("+Q+")(.*)$","i"),Ba=new RegExp("^([+-])=("+Q+")","i"),Ca={position:"absolute",visibility:"hidden",display:"block"},Da={letterSpacing:"0",fontWeight:"400"},Ea=["Webkit","O","Moz","ms"];function Fa(a,b){if(b in a){return b}var c=b[0].toUpperCase()+b.slice(1),d=b,e=Ea.length;while(e--){b=Ea[e]+c;if(b in a){return b}}return d}function Ga(a,b,c){var d=Aa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Ha(a,b,c,d,e){var f=c===(d?"border":"content")?4:b==="width"?1:0,g=0;for(;f<4;f+=2){if(c==="margin"){g+=n.css(a,c+R[f],true,e)}if(d){if(c==="content"){g-=n.css(a,"padding"+R[f],true,e)}if(c!=="margin"){g-=n.css(a,"border"+R[f]+"Width",true,e)}}else{g+=n.css(a,"padding"+R[f],true,e);if(c!=="padding"){g+=n.css(a,"border"+R[f]+"Width",true,e)}}}return g}function Ia(a,b,c){var d=true,e=b==="width"?a.offsetWidth:a.offsetHeight,f=wa(a),g=n.css(a,"boxSizing",false,f)==="border-box";if(e<=0||e==null){e=xa(a,b,f);if(e<0||e==null){e=a.style[b]}if(va.test(e)){return e}d=g&&(k.boxSizingReliable()||e===a.style[b]);e=parseFloat(e)||0}return e+Ha(a,b,c||(g?"border":"content"),d,f)+"px"}function Ja(a,b){var c,d,e,f=[],g=0,h=a.length;for(;g<h;g++){d=a[g];if(!d.style){continue}f[g]=L.get(d,"olddisplay");c=d.style.display;if(b){if(!f[g]&&c==="none"){d.style.display=""}if(d.style.display===""&&S(d)){f[g]=L.access(d,"olddisplay",ta(d.nodeName))}}else{e=S(d);if(c!=="none"||!e){L.set(d,"olddisplay",e?c:n.css(d,"display"))}}}for(g=0;g<h;g++){d=a[g];if(!d.style){continue}if(!b||d.style.display==="none"||d.style.display===""){d.style.display=b?f[g]||"":"none"}}return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xa(a,"opacity");return c===""?"1":c}}}},cssNumber:{columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{float:"cssFloat"},style:function(a,b,c,d){if(!a||a.nodeType===3||a.nodeType===8||!a.style){return}var e,f,g,h=n.camelCase(b),i=a.style;b=n.cssProps[h]||(n.cssProps[h]=Fa(i,h));g=n.cssHooks[b]||n.cssHooks[h];if(c!==undefined){f=typeof c;if(f==="string"&&(e=Ba.exec(c))){c=(e[1]+1)*e[2]+parseFloat(n.css(a,b));f="number"}if(c==null||c!==c){return}if(f==="number"&&!n.cssNumber[h]){c+="px"}if(!k.clearCloneStyle&&c===""&&b.indexOf("background")===0){i[b]="inherit"}if(!g||!("set"in g)||(c=g.set(a,c,d))!==undefined){i[b]=c}}else{if(g&&"get"in g&&(e=g.get(a,false,d))!==undefined){return e}return i[b]}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);b=n.cssProps[h]||(n.cssProps[h]=Fa(a.style,h));g=n.cssHooks[b]||n.cssHooks[h];if(g&&"get"in g){e=g.get(a,true,c)}if(e===undefined){e=xa(a,b,d)}if(e==="normal"&&b in Da){e=Da[b]}if(c===""||c){f=parseFloat(e);return c===true||n.isNumeric(f)?f||0:e}return e}});n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){if(c){return za.test(n.css(a,"display"))&&a.offsetWidth===0?n.swap(a,Ca,function(){return Ia(a,b,d)}):Ia(a,b,d)}},set:function(a,c,d){var e=d&&wa(a);return Ga(a,c,d?Ha(a,b,d,n.css(a,"boxSizing",false,e)==="border-box",e):0)}}});n.cssHooks.marginRight=ya(k.reliableMarginRight,function(a,b){if(b){return n.swap(a,{display:"inline-block"},xa,[a,"marginRight"])}});n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){var d=0,e={},f=typeof c==="string"?c.split(" "):[c];for(;d<4;d++){e[a+R[d]+b]=f[d]||f[d-2]||f[0]}return e}};if(!ua.test(a)){n.cssHooks[a+b].set=Ga}});n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){d=wa(a);e=b.length;for(;g<e;g++){f[b[g]]=n.css(a,b[g],false,d)}return f}return c!==undefined?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Ja(this,true)},hide:function(){return Ja(this)},toggle:function(a){if(typeof a==="boolean"){return a?this.show():this.hide()}return this.each(function(){if(S(this)){n(this).show()}else{n(this).hide()}})}});function Ka(a,b,c,d,e){return new Ka.prototype.init(a,b,c,d,e)}n.Tween=Ka;Ka.prototype={constructor:Ka,init:function(a,b,c,d,e,f){this.elem=a;this.prop=c;this.easing=e||"swing";this.options=b;this.start=this.now=this.cur();this.end=d;this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ka.propHooks[this.prop];return a&&a.get?a.get(this):Ka.propHooks._default.get(this)},run:function(a){var b,c=Ka.propHooks[this.prop];if(this.options.duration){this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration)}else{this.pos=b=a}this.now=(this.end-this.start)*b+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(c&&c.set){c.set(this)}else{Ka.propHooks._default.set(this)}return this}};Ka.prototype.init.prototype=Ka.prototype;Ka.propHooks={_default:{get:function(a){var b;if(a.elem[a.prop]!=null&&(!a.elem.style||a.elem.style[a.prop]==null)){return a.elem[a.prop]}b=n.css(a.elem,a.prop,"");return!b||b==="auto"?0:b},set:function(a){if(n.fx.step[a.prop]){n.fx.step[a.prop](a)}else if(a.elem.style&&(a.elem.style[n.cssProps[a.prop]]!=null||n.cssHooks[a.prop])){n.style(a.elem,a.prop,a.now+a.unit)}else{a.elem[a.prop]=a.now}}}};Ka.propHooks.scrollTop=Ka.propHooks.scrollLeft={set:function(a){if(a.elem.nodeType&&a.elem.parentNode){a.elem[a.prop]=a.now}}};n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}};n.fx=Ka.prototype.init;n.fx.step={};var La,Ma,Na=/^(?:toggle|show|hide)$/,Oa=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pa=/queueHooks$/,Qa=[Va],Ra={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=Oa.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||f!=="px"&&+d)&&Oa.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3];e=e||[];g=+d||1;do{h=h||".5";g=g/h;n.style(c.elem,a,g+f)}while(h!==(h=c.cur()/d)&&h!==1&&--i)}if(e){g=c.start=+g||+d||0;c.unit=f;c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]}return c}]};function Sa(){setTimeout(function(){La=undefined});return La=n.now()}function Ta(a,b){var c,d=0,e={height:a};b=b?1:0;for(;d<4;d+=2-b){c=R[d];e["margin"+c]=e["padding"+c]=a}if(b){e.opacity=e.width=a}return e}function Ua(a,b,c){var d,e=(Ra[b]||[]).concat(Ra["*"]),f=0,g=e.length;for(;f<g;f++){if(d=e[f].call(c,b,a)){return d}}}function Va(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");if(!c.queue){h=n._queueHooks(a,"fx");if(h.unqueued==null){h.unqueued=0;i=h.empty.fire;h.empty.fire=function(){if(!h.unqueued){i()}}}h.unqueued++;l.always(function(){l.always(function(){h.unqueued--;if(!n.queue(a,"fx").length){h.empty.fire()}})})}if(a.nodeType===1&&("height"in b||"width"in b)){c.overflow=[o.overflow,o.overflowX,o.overflowY];j=n.css(a,"display");k=j==="none"?L.get(a,"olddisplay")||ta(a.nodeName):j;if(k==="inline"&&n.css(a,"float")==="none"){o.display="inline-block"}}if(c.overflow){o.overflow="hidden";l.always(function(){o.overflow=c.overflow[0];o.overflowX=c.overflow[1];o.overflowY=c.overflow[2]})}for(d in b){e=b[d];if(Na.exec(e)){delete b[d];f=f||e==="toggle";if(e===(p?"hide":"show")){if(e==="show"&&q&&q[d]!==undefined){p=true}else{continue}}m[d]=q&&q[d]||n.style(a,d)}else{j=undefined}}if(!n.isEmptyObject(m)){if(q){if("hidden"in q){p=q.hidden}}else{q=L.access(a,"fxshow",{})}if(f){q.hidden=!p}if(p){n(a).show()}else{l.done(function(){n(a).hide()})}l.done(function(){var b;L.remove(a,"fxshow");for(b in m){n.style(a,b,m[b])}});for(d in m){g=Ua(p?q[d]:0,d,l);if(!(d in q)){q[d]=g.start;if(p){g.end=g.start;g.start=d==="width"||d==="height"?1:0}}}}else if((j==="none"?ta(a.nodeName):j)==="inline"){o.display=j}}function Wa(a,b){var c,d,e,f,g;for(c in a){d=n.camelCase(c);e=b[d];f=a[c];if(n.isArray(f)){e=f[1];f=a[c]=f[0]}if(c!==d){a[d]=f;delete a[c]}g=n.cssHooks[d];if(g&&"expand"in g){f=g.expand(f);delete a[d];for(c in f){if(!(c in a)){a[c]=f[c];b[c]=e}}}else{b[d]=e}}}function Xa(a,b,c){var d,e,f=0,g=Qa.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e){return false}var b=La||Sa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;for(;g<i;g++){j.tweens[g].run(f)}h.notifyWith(a,[j,f,c]);if(f<1&&i){return c}else{h.resolveWith(a,[j]);return false}},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(true,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:La||Sa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);j.tweens.push(d);return d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e){return this}e=true;for(;c<d;c++){j.tweens[c].run(1)}if(b){h.resolveWith(a,[j,b])}else{h.rejectWith(a,[j,b])}return this}}),k=j.props;Wa(k,j.opts.specialEasing);for(;f<g;f++){d=Qa[f].call(j,a,k,j.opts);if(d){return d}}n.map(k,Ua,j);if(n.isFunction(j.opts.start)){j.opts.start.call(a,j)}n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue}));return j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xa,{tweener:function(a,b){if(n.isFunction(a)){b=a;a=["*"]}else{a=a.split(" ")}var c,d=0,e=a.length;for(;d<e;d++){c=a[d];Ra[c]=Ra[c]||[];Ra[c].unshift(b)}},prefilter:function(a,b){if(b){Qa.unshift(a)}else{Qa.push(a)}}});n.speed=function(a,b,c){var d=a&&typeof a==="object"?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};d.duration=n.fx.off?0:typeof d.duration==="number"?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default;if(d.queue==null||d.queue===true){d.queue="fx"}d.old=d.complete;d.complete=function(){if(n.isFunction(d.old)){d.old.call(this)}if(d.queue){n.dequeue(this,d.queue)}};return d};n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xa(this,n.extend({},a),f);if(e||L.get(this,"finish")){b.stop(true)}};g.finish=g;return e||f.queue===false?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop;b(c)};if(typeof a!=="string"){c=b;b=a;a=undefined}if(b&&a!==false){this.queue(a||"fx",[])}return this.each(function(){var b=true,e=a!=null&&a+"queueHooks",f=n.timers,g=L.get(this);if(e){if(g[e]&&g[e].stop){d(g[e])}}else{for(e in g){if(g[e]&&g[e].stop&&Pa.test(e)){d(g[e])}}}for(e=f.length;e--;){if(f[e].elem===this&&(a==null||f[e].queue===a)){f[e].anim.stop(c);b=false;f.splice(e,1)}}if(b||!c){n.dequeue(this,a)}})},finish:function(a){if(a!==false){a=a||"fx"}return this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;c.finish=true;n.queue(this,a,[]);if(e&&e.stop){e.stop.call(this,true)}for(b=f.length;b--;){if(f[b].elem===this&&f[b].queue===a){f[b].anim.stop(true);f.splice(b,1)}}for(b=0;b<g;b++){if(d[b]&&d[b].finish){d[b].finish.call(this)}}delete c.finish})}});n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return a==null||typeof a==="boolean"?c.apply(this,arguments):this.animate(Ta(b,true),a,d,e)}});n.each({slideDown:Ta("show"),slideUp:Ta("hide"),slideToggle:Ta("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}});n.timers=[];n.fx.tick=function(){var a,b=0,c=n.timers;La=n.now();for(;b<c.length;b++){a=c[b];if(!a()&&c[b]===a){c.splice(b--,1)}}if(!c.length){n.fx.stop()}La=undefined};n.fx.timer=function(a){n.timers.push(a);if(a()){n.fx.start()}else{n.timers.pop()}};n.fx.interval=13;n.fx.start=function(){if(!Ma){Ma=setInterval(n.fx.tick,n.fx.interval)}};n.fx.stop=function(){clearInterval(Ma);Ma=null};n.fx.speeds={slow:600,fast:200,_default:400};n.fn.delay=function(a,b){a=n.fx?n.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})};(function(){var a=l.createElement("input"),b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox";k.checkOn=a.value!=="";k.optSelected=c.selected;b.disabled=true;k.optDisabled=!c.disabled;a=l.createElement("input");a.value="t";a.type="radio";k.radioValue=a.value==="t"})();var Ya,Za,$a=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}});n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(!a||f===3||f===8||f===2){return}if(typeof a.getAttribute===U){return n.prop(a,b,c)}if(f!==1||!n.isXMLDoc(a)){b=b.toLowerCase();d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Za:Ya)}if(c!==undefined){if(c===null){n.removeAttr(a,b)}else if(d&&"set"in d&&(e=d.set(a,c,b))!==undefined){return e}else{a.setAttribute(b,c+"");return c}}else if(d&&"get"in d&&(e=d.get(a,b))!==null){return e}else{e=n.find.attr(a,b);return e==null?undefined:e}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&a.nodeType===1){while(c=f[e++]){d=n.propFix[c]||c;if(n.expr.match.bool.test(c)){a[d]=false}a.removeAttribute(c)}}},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&b==="radio"&&n.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b);if(c){a.value=c}return b}}}}});Za={set:function(a,b,c){if(b===false){n.removeAttr(a,c)}else{a.setAttribute(c,c)}return c}};n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$a[b]||n.find.attr;$a[b]=function(a,b,d){var e,f;if(!d){f=$a[b];$a[b]=e;e=c(a,b,d)!=null?b.toLowerCase():null;$a[b]=f}return e}});var _a=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}});n.extend({propFix:{for:"htmlFor",class:"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(!a||g===3||g===8||g===2){return}f=g!==1||!n.isXMLDoc(a);if(f){b=n.propFix[b]||b;e=n.propHooks[b]}if(c!==undefined){return e&&"set"in e&&(d=e.set(a,c,b))!==undefined?d:a[b]=c}else{return e&&"get"in e&&(d=e.get(a,b))!==null?d:a[b]}},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||_a.test(a.nodeName)||a.href?a.tabIndex:-1}}}});if(!k.optSelected){n.propHooks.selected={get:function(a){var b=a.parentNode;if(b&&b.parentNode){b.parentNode.selectedIndex}return null}}}n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ab=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=typeof a==="string"&&a,i=0,j=this.length;if(n.isFunction(a)){return this.each(function(b){n(this).addClass(a.call(this,b,this.className))})}if(h){b=(a||"").match(E)||[];for(;i<j;i++){c=this[i];d=c.nodeType===1&&(c.className?(" "+c.className+" ").replace(ab," "):" ");if(d){f=0;while(e=b[f++]){if(d.indexOf(" "+e+" ")<0){d+=e+" "}}g=n.trim(d);if(c.className!==g){c.className=g}}}}return this},removeClass:function(a){var b,c,d,e,f,g,h=arguments.length===0||typeof a==="string"&&a,i=0,j=this.length;if(n.isFunction(a)){return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))})}if(h){b=(a||"").match(E)||[];for(;i<j;i++){c=this[i];d=c.nodeType===1&&(c.className?(" "+c.className+" ").replace(ab," "):"");if(d){f=0;while(e=b[f++]){while(d.indexOf(" "+e+" ")>=0){d=d.replace(" "+e+" "," ")}}g=a?n.trim(d):"";if(c.className!==g){c.className=g}}}}return this},toggleClass:function(a,b){var c=typeof a;if(typeof b==="boolean"&&c==="string"){return b?this.addClass(a):this.removeClass(a)}if(n.isFunction(a)){return this.each(function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)})}return this.each(function(){if(c==="string"){var b,d=0,e=n(this),f=a.match(E)||[];while(b=f[d++]){if(e.hasClass(b)){e.removeClass(b)}else{e.addClass(b)}}}else if(c===U||c==="boolean"){if(this.className){L.set(this,"__className__",this.className)}this.className=this.className||a===false?"":L.get(this,"__className__")||""}})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++){if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(ab," ").indexOf(b)>=0){return true}}return false}});var bb=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];if(!arguments.length){if(e){b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()];if(b&&"get"in b&&(c=b.get(e,"value"))!==undefined){return c}c=e.value;return typeof c==="string"?c.replace(bb,""):c==null?"":c}return}d=n.isFunction(a);return this.each(function(c){var e;if(this.nodeType!==1){return}if(d){e=a.call(this,c,n(this).val())}else{e=a}if(e==null){e=""}else if(typeof e==="number"){e+=""}else if(n.isArray(e)){e=n.map(e,function(a){return a==null?"":a+""})}b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()];if(!b||!("set"in b)||b.set(this,e,"value")===undefined){this.value=e}})}});n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return b!=null?b:n.trim(n.text(a))}},select:{get:function(a){var b,c,d=a.options,e=a.selectedIndex,f=a.type==="select-one"||e<0,g=f?null:[],h=f?e+1:d.length,i=e<0?h:f?e:0;for(;i<h;i++){c=d[i];if((c.selected||i===e)&&(k.optDisabled?!c.disabled:c.getAttribute("disabled")===null)&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){b=n(c).val();if(f){return b}g.push(b)}}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--){d=e[g];if(d.selected=n.inArray(d.value,f)>=0){c=true}}if(!c){a.selectedIndex=-1}return f}}}});n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){if(n.isArray(b)){return a.checked=n.inArray(n(a).val(),b)>=0}}};if(!k.checkOn){n.valHooks[this].get=function(a){return a.getAttribute("value")===null?"on":a.value}}});n.each(("blur focus focusin focusout load resize scroll unload click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup error contextmenu").split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}});n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length===1?this.off(a,"**"):this.off(b,a||"**",c)}});var cb=n.now();var db=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")};n.parseXML=function(a){var b,c;if(!a||typeof a!=="string"){return null}try{c=new DOMParser;b=c.parseFromString(a,"text/xml")}catch(a){b=undefined}if(!b||b.getElementsByTagName("parsererror").length){n.error("Invalid XML: "+a)}return b};var eb,fb,gb=/#.*$/,hb=/([?&])_=[^&]*/,ib=/^(.*?):[ \t]*([^\r\n]*)$/gm,jb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kb=/^(?:GET|HEAD)$/,lb=/^\/\//,mb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,nb={},ob={},pb="*/".concat("*");try{fb=location.href}catch(a){fb=l.createElement("a");fb.href="";fb=fb.href}eb=mb.exec(fb.toLowerCase())||[];function qb(a){return function(b,c){if(typeof b!=="string"){c=b;b="*"}var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c)){while(d=f[e++]){if(d[0]==="+"){d=d.slice(1)||"*";(a[d]=a[d]||[]).unshift(c)}else{(a[d]=a[d]||[]).push(c)}}}}}function rb(a,b,c,d){var e={},f=a===ob;function g(h){var i;e[h]=true;n.each(a[h]||[],function(a,h){var j=h(b,c,d);if(typeof j==="string"&&!f&&!e[j]){b.dataTypes.unshift(j);g(j);return false}else if(f){return!(i=j)}});return i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function sb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b){if(b[c]!==undefined){(e[c]?a:d||(d={}))[c]=b[c]}}if(d){n.extend(true,a,d)}return a}function tb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while(i[0]==="*"){i.shift();if(d===undefined){d=a.mimeType||b.getResponseHeader("Content-Type")}}if(d){for(e in h){if(h[e]&&h[e].test(d)){i.unshift(e);break}}}if(i[0]in c){f=i[0]}else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}if(!g){g=e}}f=f||g}if(f){if(f!==i[0]){i.unshift(f)}return c[f]}}function ub(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1]){for(g in a.converters){j[g.toLowerCase()]=a.converters[g]}}f=k.shift();while(f){if(a.responseFields[f]){c[a.responseFields[f]]=b}if(!i&&d&&a.dataFilter){b=a.dataFilter(b,a.dataType)}i=f;f=k.shift();if(f){if(f==="*"){f=i}else if(i!=="*"&&i!==f){g=j[i+" "+f]||j["* "+f];if(!g){for(e in j){h=e.split(" ");if(h[1]===f){g=j[i+" "+h[0]]||j["* "+h[0]];if(g){if(g===true){g=j[e]}else if(j[e]!==true){f=h[0];k.unshift(h[1])}break}}}}if(g!==true){if(g&&a["throws"]){b=g(b)}else{try{b=g(b)}catch(a){return{state:"parsererror",error:g?a:"No conversion from "+i+" to "+f}}}}}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fb,type:"GET",isLocal:jb.test(eb[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(a,b){return b?sb(sb(a,n.ajaxSettings),b):sb(n.ajaxSettings,a)},ajaxPrefilter:qb(nb),ajaxTransport:qb(ob),ajax:function(a,b){if(typeof a==="object"){b=a;a=undefined}b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(t===2){if(!f){f={};while(b=ib.exec(e)){f[b[1].toLowerCase()]=b[2]}}b=f[a.toLowerCase()]}return b==null?null:b},getAllResponseHeaders:function(){return t===2?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();if(!t){a=s[c]=s[c]||a;r[a]=b}return this},overrideMimeType:function(a){if(!t){k.mimeType=a}return this},statusCode:function(a){var b;if(a){if(t<2){for(b in a){q[b]=[q[b],a[b]]}}else{v.always(a[v.status])}}return this},abort:function(a){var b=a||u;if(c){c.abort(b)}w(0,b);return this}};o.promise(v).complete=p.add;v.success=v.done;v.error=v.fail;k.url=((a||k.url||fb)+"").replace(gb,"").replace(lb,eb[1]+"//");k.type=b.method||b.type||k.method||k.type;k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""];if(k.crossDomain==null){h=mb.exec(k.url.toLowerCase());k.crossDomain=!!(h&&(h[1]!==eb[1]||h[2]!==eb[2]||(h[3]||(h[1]==="http:"?"80":"443"))!==(eb[3]||(eb[1]==="http:"?"80":"443"))))}if(k.data&&k.processData&&typeof k.data!=="string"){k.data=n.param(k.data,k.traditional)}rb(nb,k,b,v);if(t===2){return v}i=k.global;if(i&&n.active++===0){n.event.trigger("ajaxStart")}k.type=k.type.toUpperCase();k.hasContent=!kb.test(k.type);d=k.url;if(!k.hasContent){if(k.data){d=k.url+=(db.test(d)?"&":"?")+k.data;delete k.data}if(k.cache===false){k.url=hb.test(d)?d.replace(hb,"$1_="+cb++):d+(db.test(d)?"&":"?")+"_="+cb++}}if(k.ifModified){if(n.lastModified[d]){v.setRequestHeader("If-Modified-Since",n.lastModified[d])}if(n.etag[d]){v.setRequestHeader("If-None-Match",n.etag[d])}}if(k.data&&k.hasContent&&k.contentType!==false||b.contentType){v.setRequestHeader("Content-Type",k.contentType)}v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+(k.dataTypes[0]!=="*"?", "+pb+"; q=0.01":""):k.accepts["*"]);for(j in k.headers){v.setRequestHeader(j,k.headers[j])}if(k.beforeSend&&(k.beforeSend.call(l,v,k)===false||t===2)){return v.abort()}u="abort";for(j in{success:1,error:1,complete:1}){v[j](k[j])}c=rb(ob,k,b,v);if(!c){w(-1,"No Transport")}else{v.readyState=1;if(i){m.trigger("ajaxSend",[v,k])}if(k.async&&k.timeout>0){g=setTimeout(function(){v.abort("timeout")},k.timeout)}try{t=1;c.send(r,w)}catch(a){if(t<2){w(-1,a)}else{throw a}}}function w(a,b,f,h){var j,r,s,u,w,x=b;if(t===2){return}t=2;if(g){clearTimeout(g)}c=undefined;e=h||"";v.readyState=a>0?4:0;j=a>=200&&a<300||a===304;if(f){u=tb(k,v,f)}u=ub(k,u,v,j);if(j){if(k.ifModified){w=v.getResponseHeader("Last-Modified");if(w){n.lastModified[d]=w}w=v.getResponseHeader("etag");if(w){n.etag[d]=w}}if(a===204||k.type==="HEAD"){x="nocontent"}else if(a===304){x="notmodified"}else{x=u.state;r=u.data;s=u.error;j=!s}}else{s=x;if(a||!x){x="error";if(a<0){a=0}}}v.status=a;v.statusText=(b||x)+"";if(j){o.resolveWith(l,[r,x,v])}else{o.rejectWith(l,[v,x,s])}v.statusCode(q);q=undefined;if(i){m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s])}p.fireWith(l,[v,x]);if(i){m.trigger("ajaxComplete",[v,k]);if(!--n.active){n.event.trigger("ajaxStop")}}}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,undefined,b,"script")}});n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){if(n.isFunction(c)){e=e||d;d=c;c=undefined}return n.ajax({url:a,type:b,dataType:e,data:c,success:d})}});n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}});n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:false,global:false,throws:true})};n.fn.extend({wrapAll:function(a){var b;if(n.isFunction(a)){return this.each(function(b){n(this).wrapAll(a.call(this,b))})}if(this[0]){b=n(a,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){b.insertBefore(this[0])}b.map(function(){var a=this;while(a.firstElementChild){a=a.firstElementChild}return a}).append(this)}return this},wrapInner:function(a){if(n.isFunction(a)){return this.each(function(b){n(this).wrapInner(a.call(this,b))})}return this.each(function(){var b=n(this),c=b.contents();if(c.length){c.wrapAll(a)}else{b.append(a)}})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){if(!n.nodeName(this,"body")){n(this).replaceWith(this.childNodes)}}).end()}});n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0};n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var vb=/%20/g,wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(n.isArray(b)){n.each(b,function(b,e){if(c||wb.test(a)){d(a,e)}else{Ab(a+"["+(typeof e==="object"?b:"")+"]",e,c,d)}})}else if(!c&&n.type(b)==="object"){for(e in b){Ab(a+"["+e+"]",b[e],c,d)}}else{d(a,b)}}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():b==null?"":b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(b===undefined){b=n.ajaxSettings&&n.ajaxSettings.traditional}if(n.isArray(a)||a.jquery&&!n.isPlainObject(a)){n.each(a,function(){e(this.name,this.value)})}else{for(c in a){Ab(c,a[c],b,e)}}return d.join("&").replace(vb,"+")};n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return c==null?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}});n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Bb=0,Cb={},Db={0:200,1223:204},Eb=n.ajaxSettings.xhr();if(a.ActiveXObject){n(a).on("unload",function(){for(var a in Cb){Cb[a]()}})}k.cors=!!Eb&&"withCredentials"in Eb;k.ajax=Eb=!!Eb;n.ajaxTransport(function(a){var b;if(k.cors||Eb&&!a.crossDomain){return{send:function(c,d){var e,f=a.xhr(),g=++Bb;f.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields){for(e in a.xhrFields){f[e]=a.xhrFields[e]}}if(a.mimeType&&f.overrideMimeType){f.overrideMimeType(a.mimeType)}if(!a.crossDomain&&!c["X-Requested-With"]){c["X-Requested-With"]="XMLHttpRequest"}for(e in c){f.setRequestHeader(e,c[e])}b=function(a){return function(){if(b){delete Cb[g];b=f.onload=f.onerror=null;if(a==="abort"){f.abort()}else if(a==="error"){d(f.status,f.statusText)}else{d(Db[f.status]||f.status,f.statusText,typeof f.responseText==="string"?{text:f.responseText}:undefined,f.getAllResponseHeaders())}}}};f.onload=b();f.onerror=b("error");b=Cb[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(a){if(b){throw a}}},abort:function(){if(b){b()}}}}});n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){n.globalEval(a);return a}}});n.ajaxPrefilter("script",function(a){if(a.cache===undefined){a.cache=false}if(a.crossDomain){a.type="GET"}});n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:true,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove();c=null;if(a){e(a.type==="error"?404:200,a.type)}});l.head.appendChild(b[0])},abort:function(){if(c){c()}}}}});var Fb=[],Gb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Fb.pop()||n.expando+"_"+cb++;this[a]=true;return a}});n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==false&&(Gb.test(b.url)?"url":typeof b.data==="string"&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gb.test(b.data)&&"data");if(h||b.dataTypes[0]==="jsonp"){e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback;if(h){b[h]=b[h].replace(Gb,"$1"+e)}else if(b.jsonp!==false){b.url+=(db.test(b.url)?"&":"?")+b.jsonp+"="+e}b.converters["script json"]=function(){if(!g){n.error(e+" was not called")}return g[0]};b.dataTypes[0]="json";f=a[e];a[e]=function(){g=arguments};d.always(function(){a[e]=f;if(b[e]){b.jsonpCallback=c.jsonpCallback;Fb.push(e)}if(g&&n.isFunction(f)){f(g[0])}g=f=undefined});return"script"}});n.parseHTML=function(a,b,c){if(!a||typeof a!=="string"){return null}if(typeof b==="boolean"){c=b;b=false}b=b||l;var d=v.exec(a),e=!c&&[];if(d){return[b.createElement(d[1])]}d=n.buildFragment([a],b,e);if(e&&e.length){n(e).remove()}return n.merge([],d.childNodes)};var Hb=n.fn.load;n.fn.load=function(a,b,c){if(typeof a!=="string"&&Hb){return Hb.apply(this,arguments)}var d,e,f,g=this,h=a.indexOf(" ");if(h>=0){d=n.trim(a.slice(h));a=a.slice(0,h)}if(n.isFunction(b)){c=b;b=undefined}else if(b&&typeof b==="object"){e="POST"}if(g.length>0){n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments;g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])})}return this};n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Ib=a.document.documentElement;function Jb(a){return n.isWindow(a)?a:a.nodeType===9&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};if(k==="static"){a.style.position="relative"}h=l.offset();f=n.css(a,"top");i=n.css(a,"left");j=(k==="absolute"||k==="fixed")&&(f+i).indexOf("auto")>-1;if(j){d=l.position();g=d.top;e=d.left}else{g=parseFloat(f)||0;e=parseFloat(i)||0}if(n.isFunction(b)){b=b.call(a,c,h)}if(b.top!=null){m.top=b.top-h.top+g}if(b.left!=null){m.left=b.left-h.left+e}if("using"in b){b.using.call(a,m)}else{l.css(m)}}};n.fn.extend({offset:function(a){if(arguments.length){return a===undefined?this:this.each(function(b){n.offset.setOffset(this,a,b)})}var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(!f){return}b=f.documentElement;if(!n.contains(b,d)){return e}if(typeof d.getBoundingClientRect!==U){e=d.getBoundingClientRect()}c=Jb(f);return{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}},position:function(){if(!this[0]){return}var a,b,c=this[0],d={top:0,left:0};if(n.css(c,"position")==="fixed"){b=c.getBoundingClientRect()}else{a=this.offsetParent();b=this.offset();if(!n.nodeName(a[0],"html")){d=a.offset()}d.top+=n.css(a[0],"borderTopWidth",true);d.left+=n.css(a[0],"borderLeftWidth",true)}return{top:b.top-d.top-n.css(c,"marginTop",true),left:b.left-d.left-n.css(c,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||Ib;while(a&&(!n.nodeName(a,"html")&&n.css(a,"position")==="static")){a=a.offsetParent}return a||Ib})}});n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Jb(b);if(f===undefined){return g?g[c]:b[e]}if(g){g.scrollTo(!d?f:a.pageXOffset,d?f:a.pageYOffset)}else{b[e]=f}},b,e,arguments.length,null)}});n.each(["top","left"],function(a,b){n.cssHooks[b]=ya(k.pixelPosition,function(a,c){if(c){c=xa(a,b);return va.test(c)?n(a).position()[b]+"px":c}})});n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||typeof d!=="boolean"),g=c||(d===true||e===true?"margin":"border");return J(this,function(b,c,d){var e;if(n.isWindow(b)){return b.document.documentElement["client"+a]}if(b.nodeType===9){e=b.documentElement;return Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])}return d===undefined?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:undefined,f,null)}})});n.fn.size=function(){return this.length};n.fn.andSelf=n.fn.addBack;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return n})}var Kb=a.jQuery,Lb=a.$;n.noConflict=function(b){if(a.$===n){a.$=Lb}if(b&&a.jQuery===n){a.jQuery=Kb}return n};if(typeof b===U){a.jQuery=a.$=n}return n});if(typeof jQuery==="undefined"){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",a,b)};b.VERSION="3.2.0";b.DEFAULTS={animation:true,placement:"top",selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:false,container:false,viewport:{selector:"body",padding:0}};b.prototype.init=function(b,c,d){this.enabled=true;this.type=b;this.$element=a(c);this.options=this.getOptions(d);this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport);var e=this.options.trigger.split(" ");for(var f=e.length;f--;){var g=e[f];if(g=="click"){this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this))}else if(g!="manual"){var h=g=="hover"?"mouseenter":"focusin";var i=g=="hover"?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this));this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};b.prototype.getDefaults=function(){return b.DEFAULTS};b.prototype.getOptions=function(b){b=a.extend({},this.getDefaults(),this.$element.data(),b);if(b.delay&&typeof b.delay=="number"){b.delay={show:b.delay,hide:b.delay}}return b};b.prototype.getDelegateOptions=function(){var b={};var c=this.getDefaults();this._options&&a.each(this._options,function(a,d){if(c[a]!=d)b[a]=d});return b};b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(!c){c=new this.constructor(b.currentTarget,this.getDelegateOptions());a(b.currentTarget).data("bs."+this.type,c)}clearTimeout(c.timeout);c.hoverState="in";if(!c.options.delay||!c.options.delay.show)return c.show();c.timeout=setTimeout(function(){if(c.hoverState=="in")c.show()},c.options.delay.show)};b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(!c){c=new this.constructor(b.currentTarget,this.getDelegateOptions());a(b.currentTarget).data("bs."+this.type,c)}clearTimeout(c.timeout);c.hoverState="out";if(!c.options.delay||!c.options.delay.hide)return c.hide();c.timeout=setTimeout(function(){if(c.hoverState=="out")c.hide()},c.options.delay.hide)};b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var c=a.contains(document.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!c)return;var d=this;var e=this.tip();var f=this.getUID(this.type);this.setContent();e.attr("id",f);this.$element.attr("aria-describedby",f);if(this.options.animation)e.addClass("fade");var g=typeof this.options.placement=="function"?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement;var h=/\s?auto?\s?/i;var i=h.test(g);if(i)g=g.replace(h,"")||"top";e.detach().css({top:0,left:0,display:"block"}).addClass(g).data("bs."+this.type,this);this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element);var j=this.getPosition();var k=e[0].offsetWidth;var l=e[0].offsetHeight;if(i){var m=g;var n=this.$element.parent();var o=this.getPosition(n);g=g=="bottom"&&j.top+j.height+l-o.scroll>o.height?"top":g=="top"&&j.top-o.scroll-l<0?"bottom":g=="right"&&j.right+k>o.width?"left":g=="left"&&j.left-k<o.left?"right":g;e.removeClass(m).addClass(g)}var p=this.getCalculatedOffset(g,j,k,l);this.applyPlacement(p,g);var q=function(){d.$element.trigger("shown.bs."+d.type);d.hoverState=null};a.support.transition&&this.$tip.hasClass("fade")?e.one("bsTransitionEnd",q).emulateTransitionEnd(150):q()}};b.prototype.applyPlacement=function(b,c){var d=this.tip();var e=d[0].offsetWidth;var f=d[0].offsetHeight;var g=parseInt(d.css("margin-top"),10);var h=parseInt(d.css("margin-left"),10);if(isNaN(g))g=0;if(isNaN(h))h=0;b.top=b.top+g;b.left=b.left+h;a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0);d.addClass("in");var i=d[0].offsetWidth;var j=d[0].offsetHeight;if(c=="top"&&j!=f){b.top=b.top+f-j}var k=this.getViewportAdjustedDelta(c,b,i,j);if(k.left)b.left+=k.left;else b.top+=k.top;var l=k.left?k.left*2-e+i:k.top*2-f+j;var m=k.left?"left":"top";var n=k.left?"offsetWidth":"offsetHeight";d.offset(b);this.replaceArrow(l,d[0][n],m)};b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")};b.prototype.setContent=function(){var a=this.tip();var b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b);a.removeClass("fade in top bottom left right")};b.prototype.hide=function(){var b=this;var c=this.tip();var d=a.Event("hide.bs."+this.type);this.$element.removeAttr("aria-describedby");function e(){if(b.hoverState!="in")c.detach();b.$element.trigger("hidden.bs."+b.type)}this.$element.trigger(d);if(d.isDefaultPrevented())return;c.removeClass("in");a.support.transition&&this.$tip.hasClass("fade")?c.one("bsTransitionEnd",e).emulateTransitionEnd(150):e();this.hoverState=null;return this};b.prototype.fixTitle=function(){var a=this.$element;if(a.attr("title")||typeof a.attr("data-original-title")!="string"){a.attr("data-original-title",a.attr("title")||"").attr("title","")}};b.prototype.hasContent=function(){return this.getTitle()};b.prototype.getPosition=function(b){b=b||this.$element;var c=b[0];var d=c.tagName=="BODY";return a.extend({},typeof c.getBoundingClientRect=="function"?c.getBoundingClientRect():null,{scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop(),width:d?a(window).width():b.outerWidth(),height:d?a(window).height():b.outerHeight()},d?{top:0,left:0}:b.offset())};b.prototype.getCalculatedOffset=function(a,b,c,d){return a=="bottom"?{top:b.top+b.height,left:b.left+b.width/2-c/2}:a=="top"?{top:b.top-d,left:b.left+b.width/2-c/2}:a=="left"?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}};b.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0;var g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll;var i=b.top+f-g.scroll+d;if(h<g.top){e.top=g.top-h}else if(i>g.top+g.height){e.top=g.top+g.height-i}}else{var j=b.left-f;var k=b.left+f+c;if(j<g.left){e.left=g.left-j}else if(k>g.width){e.left=g.left+g.width-k}}return e};b.prototype.getTitle=function(){var a;var b=this.$element;var c=this.options;a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title);return a};b.prototype.getUID=function(a){do{a+=~~(Math.random()*1e6)}while(document.getElementById(a));return a};b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)};b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};b.prototype.validate=function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}};b.prototype.enable=function(){this.enabled=true};b.prototype.disable=function(){this.enabled=false};b.prototype.toggleEnabled=function(){this.enabled=!this.enabled};b.prototype.toggle=function(b){var c=this;if(b){c=a(b.currentTarget).data("bs."+this.type);if(!c){c=new this.constructor(b.currentTarget,this.getDelegateOptions());a(b.currentTarget).data("bs."+this.type,c)}}c.tip().hasClass("in")?c.leave(c):c.enter(c)};b.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};function c(c){return this.each(function(){var d=a(this);var e=d.data("bs.tooltip");var f=typeof c=="object"&&c;if(!e&&c=="destroy")return;if(!e)d.data("bs.tooltip",e=new b(this,f));if(typeof c=="string")e[c]()})}var d=a.fn.tooltip;a.fn.tooltip=c;a.fn.tooltip.Constructor=b;a.fn.tooltip.noConflict=function(){a.fn.tooltip=d;return this}}(jQuery);+function(a){"use strict";function b(){var a=document.createElement("bootstrap");var b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b){if(a.style[c]!==undefined){return{end:b[c]}}}return false}a.fn.emulateTransitionEnd=function(b){var c=false;var d=this;a(this).one("bsTransitionEnd",function(){c=true});var e=function(){if(!c)a(d).trigger(a.support.transition.end)};setTimeout(e,b);return this};a(function(){a.support.transition=b();if(!a.support.transition)return;a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}}})}(jQuery);(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else if(typeof exports==="object"){a(require("jquery"))}else{a(jQuery)}})(function(a){var b=/\+/g;function c(a){return h.raw?a:encodeURIComponent(a)}function d(a){return h.raw?a:decodeURIComponent(a)}function e(a){return c(h.json?JSON.stringify(a):String(a))}function f(a){if(a.indexOf('"')===0){a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{a=decodeURIComponent(a.replace(b," "));return h.json?JSON.parse(a):a}catch(a){}}function g(b,c){var d=h.raw?b:f(b);return a.isFunction(c)?c(d):d}var h=a.cookie=function(b,f,i){if(f!==undefined&&!a.isFunction(f)){i=a.extend({},h.defaults,i);if(typeof i.expires==="number"){var j=i.expires,k=i.expires=new Date;k.setTime(+k+j*864e5)}return document.cookie=[c(b),"=",e(f),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}var l=b?undefined:{};var m=document.cookie?document.cookie.split("; "):[];for(var n=0,o=m.length;n<o;n++){var p=m[n].split("=");var q=d(p.shift());var r=p.join("=");if(b&&b===q){l=g(r,f);break}if(!b&&(r=g(r))!==undefined){l[q]=r}}return l};h.defaults={};a.removeCookie=function(b,c){if(a.cookie(b)===undefined){return false}a.cookie(b,"",a.extend({},c,{expires:-1}));return!a.cookie(b)}});(function(a){a.inputhistory={};a.inputhistory.defaultOptions={history:[],preventSubmit:false};a.fn.history=a.fn.inputhistory=function(b){b=a.extend(a.inputhistory.defaultOptions,b);var c=this;if(c.size()>1){return c.each(function(){a(this).history(b)})}var d=b.history;d.push("");var e=0;c.on("keydown",function(a){var f=a.which;switch(f){case 13:if(c.val()!=""){e=d.length;d[e-1]=c.val();d.push("");if(d[e-1]==d[e-2]){d.splice(-2,1);e--}}if(!b.preventSubmit){c.parents("form").eq(0).submit()}c.val("");break;case 38:case 40:if(a.ctrlKey||a.metaKey){break}d[e]=c.val();if(f==38&&e!=0){e--}else if(f==40&&e<d.length-1){e++}c.val(d[e]);break;default:return}a.preventDefault()});return this}})(jQuery);(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}})(function(a){a.ui=a.ui||{};a.extend(a.ui,{version:"1.11.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});a.fn.extend({scrollParent:function(b){var c=this.css("position"),d=c==="absolute",e=b?/(auto|scroll|hidden)/:/(auto|scroll)/,f=this.parents().filter(function(){var b=a(this);if(d&&b.css("position")==="static"){return false}return e.test(b.css("overflow")+b.css("overflow-y")+b.css("overflow-x"))}).eq(0);return c==="fixed"||!f.length?a(this[0].ownerDocument||document):f},uniqueId:function(){var a=0;return function(){return this.each(function(){if(!this.id){this.id="ui-id-"+ ++a}})}}(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\d+$/.test(this.id)){a(this).removeAttr("id")}})}});function b(b,d){var e,f,g,h=b.nodeName.toLowerCase();if("area"===h){e=b.parentNode;f=e.name;if(!b.href||!f||e.nodeName.toLowerCase()!=="map"){return false}g=a("img[usemap='#"+f+"']")[0];return!!g&&c(g)}return(/input|select|textarea|button|object/.test(h)?!b.disabled:"a"===h?b.href||d:d)&&c(b)}function c(b){return a.expr.filters.visible(b)&&!a(b).parents().addBack().filter(function(){return a.css(this,"visibility")==="hidden"}).length}a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(c){return b(c,!isNaN(a.attr(c,"tabindex")))},tabbable:function(c){var d=a.attr(c,"tabindex"),e=isNaN(d);return(e||d>=0)&&b(c,!e)}});if(!a("<a>").outerWidth(1).jquery){a.each(["Width","Height"],function(b,c){var d=c==="Width"?["Left","Right"]:["Top","Bottom"],e=c.toLowerCase(),f={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function g(b,c,e,f){a.each(d,function(){c-=parseFloat(a.css(b,"padding"+this))||0;if(e){c-=parseFloat(a.css(b,"border"+this+"Width"))||0}if(f){c-=parseFloat(a.css(b,"margin"+this))||0}});return c}a.fn["inner"+c]=function(b){if(b===undefined){return f["inner"+c].call(this)}return this.each(function(){a(this).css(e,g(this,b)+"px")})};a.fn["outer"+c]=function(b,d){if(typeof b!=="number"){return f["outer"+c].call(this,b)}return this.each(function(){a(this).css(e,g(this,b,true,d)+"px")})}})}if(!a.fn.addBack){a.fn.addBack=function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}if(a("<a>").data("a-b","a").removeData("a-b").data("a-b")){a.fn.removeData=function(b){return function(c){if(arguments.length){return b.call(this,a.camelCase(c))}else{return b.call(this)}}}(a.fn.removeData)}a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());a.fn.extend({focus:function(b){return function(c,d){return typeof c==="number"?this.each(function(){var b=this;setTimeout(function(){a(b).focus();if(d){d.call(b)}},c)}):b.apply(this,arguments)}}(a.fn.focus),disableSelection:function(){var a="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(a+".ui-disableSelection",function(a){a.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(b){if(b!==undefined){return this.css("zIndex",b)}if(this.length){var c=a(this[0]),d,e;while(c.length&&c[0]!==document){d=c.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){e=parseInt(c.css("zIndex"),10);if(!isNaN(e)&&e!==0){return e}}c=c.parent()}}return 0}});a.ui.plugin={add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d){f.plugins[e]=f.plugins[e]||[];f.plugins[e].push([c,d[e]])}},call:function(a,b,c,d){var e,f=a.plugins[b];if(!f){return}if(!d&&(!a.element[0].parentNode||a.element[0].parentNode.nodeType===11)){return}for(e=0;e<f.length;e++){if(a.options[f[e][0]]){f[e][1].apply(a.element,c)}}}};var d=0,e=Array.prototype.slice;a.cleanData=function(b){return function(c){var d,e,f;for(f=0;(e=c[f])!=null;f++){try{d=a._data(e,"events");if(d&&d.remove){a(e).triggerHandler("remove")}}catch(a){}}b(c)}}(a.cleanData);a.widget=function(b,c,d){var e,f,g,h,i={},j=b.split(".")[0];b=b.split(".")[1];e=j+"-"+b;if(!d){d=c;c=a.Widget}a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)};a[j]=a[j]||{};f=a[j][b];g=a[j][b]=function(a,b){if(!this._createWidget){return new g(a,b)}if(arguments.length){this._createWidget(a,b)}};a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]});h=new c;h.options=a.widget.extend({},h.options);a.each(d,function(b,d){if(!a.isFunction(d)){i[b]=d;return}i[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},e=function(a){return c.prototype[b].apply(this,a)};return function(){var b=this._super,c=this._superApply,f;this._super=a;this._superApply=e;f=d.apply(this,arguments);this._super=b;this._superApply=c;return f}}()});g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix||b:b},i,{constructor:g,namespace:j,widgetName:b,widgetFullName:e});if(f){a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)});delete f._childConstructors}else{c._childConstructors.push(g)}a.widget.bridge(b,g);return g};a.widget.extend=function(b){var c=e.call(arguments,1),d=0,f=c.length,g,h;for(;d<f;d++){for(g in c[d]){h=c[d][g];if(c[d].hasOwnProperty(g)&&h!==undefined){if(a.isPlainObject(h)){b[g]=a.isPlainObject(b[g])?a.widget.extend({},b[g],h):a.widget.extend({},h)}else{b[g]=h}}}}return b};a.widget.bridge=function(b,c){var d=c.prototype.widgetFullName||b;a.fn[b]=function(f){var g=typeof f==="string",h=e.call(arguments,1),i=this;f=!g&&h.length?a.widget.extend.apply(null,[f].concat(h)):f;if(g){this.each(function(){var c,e=a.data(this,d);if(f==="instance"){i=e;return false}if(!e){return a.error("cannot call methods on "+b+" prior to initialization; "+"attempted to call method '"+f+"'")}if(!a.isFunction(e[f])||f.charAt(0)==="_"){return a.error("no such method '"+f+"' for "+b+" widget instance")}c=e[f].apply(e,h);if(c!==e&&c!==undefined){i=c&&c.jquery?i.pushStack(c.get()):c;return false}})}else{this.each(function(){var b=a.data(this,d);if(b){b.option(f||{});if(b._init){b._init()}}else{a.data(this,d,new c(f,this))}})}return i}};a.Widget=function(){};a.Widget._childConstructors=[];a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(b,c){c=a(c||this.defaultElement||this)[0];this.element=a(c);this.uuid=d++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=a.widget.extend({},this.options,this._getCreateOptions(),b);this.bindings=a();this.hoverable=a();this.focusable=a();if(c!==this){a.data(c,this.widgetFullName,this);this._on(true,this.element,{remove:function(a){if(a.target===c){this.destroy()}}});this.document=a(c.style?c.ownerDocument:c.document||c);this.window=a(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(b,c){var d=b,e,f,g;if(arguments.length===0){return a.widget.extend({},this.options)}if(typeof b==="string"){d={};e=b.split(".");b=e.shift();if(e.length){f=d[b]=a.widget.extend({},this.options[b]);for(g=0;g<e.length-1;g++){f[e[g]]=f[e[g]]||{};f=f[e[g]]}b=e.pop();if(arguments.length===1){return f[b]===undefined?null:f[b]}f[b]=c}else{if(arguments.length===1){return this.options[b]===undefined?null:this.options[b]}d[b]=c}}this._setOptions(d);return this},_setOptions:function(a){var b;for(b in a){this._setOption(b,a[b])}return this},_setOption:function(a,b){this.options[a]=b;if(a==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled",!!b);if(b){this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")}}return this},enable:function(){return this._setOptions({disabled:false})},disable:function(){return this._setOptions({disabled:true})},_on:function(b,c,d){var e,f=this;if(typeof b!=="boolean"){d=c;c=b;b=false}if(!d){d=c;c=this.element;e=this.widget()}else{c=e=a(c);this.bindings=this.bindings.add(c)}a.each(d,function(d,g){function h(){if(!b&&(f.options.disabled===true||a(this).hasClass("ui-state-disabled"))){return}return(typeof g==="string"?f[g]:g).apply(f,arguments)}if(typeof g!=="string"){h.guid=g.guid=g.guid||h.guid||a.guid++}var i=d.match(/^([\w:-]*)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];if(k){e.delegate(k,j,h)}else{c.bind(j,h)}})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;a.unbind(b).undelegate(b)},_delay:function(a,b){function c(){return(typeof a==="string"?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b);this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b);this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];d=d||{};c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();c.target=this.element[0];f=c.originalEvent;if(f){for(e in f){if(!(e in c)){c[e]=f[e]}}}this.element.trigger(c,d);return!(a.isFunction(g)&&g.apply(this.element[0],[c].concat(d))===false||c.isDefaultPrevented())}};a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){if(typeof e==="string"){e={effect:e}}var g,h=!e?b:e===true||typeof e==="number"?c:e.effect||c;e=e||{};if(typeof e==="number"){e={duration:e}}g=!a.isEmptyObject(e);e.complete=f;if(e.delay){d.delay(e.delay)}if(g&&a.effects&&a.effects.effect[h]){d[b](e)}else if(h!==b&&d[h]){d[h](e.duration,e.easing,f)}else{d.queue(function(c){a(this)[b]();if(f){f.call(d[0])}c()})}}});var f=a.widget;var g=false;a(document).mouseup(function(){g=false});var h=a.widget("ui.mouse",{version:"1.11.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(true===a.data(c.target,b.widgetName+".preventClickEvent")){a.removeData(c.target,b.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);if(this._mouseMoveDelegate){this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(b){if(g){return}this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var c=this,d=b.which===1,e=typeof this.options.cancel==="string"&&b.target.nodeName?a(b.target).closest(this.options.cancel).length:false;if(!d||e||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}if(true===a.data(b.target,this.widgetName+".preventClickEvent")){a.removeData(b.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();g=true;return true},_mouseMove:function(b){if(a.ui.ie&&(!document.documentMode||document.documentMode<9)&&!b.button){return this._mouseUp(b)}else if(!b.which){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false;this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)}return!this._mouseStarted},_mouseUp:function(b){this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(b.target===this._mouseDownEvent.target){a.data(b.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(b)}g=false;return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}});a.widget("ui.draggable",a.ui.mouse,{version:"1.11.1",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"}if(this.options.addClasses){this.element.addClass("ui-draggable")}if(this.options.disabled){this.element.addClass("ui-draggable-disabled")}this._setHandleClassName();this._mouseInit()},_setOption:function(a,b){this._super(a,b);if(a==="handle"){this._removeHandleClassName();this._setHandleClassName()}},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=true;return}this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(b){var c=this.document[0],d=this.options;try{if(c.activeElement&&c.activeElement.nodeName.toLowerCase()!=="body"){a(c.activeElement).blur()}}catch(a){}if(this.helper||d.disabled||a(b.target).closest(".ui-resizable-handle").length>0){return false}this.handle=this._getHandle(b);if(!this.handle){return false}a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")});return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent(true);this.offsetParent=this.helper.offsetParent();this.offsetParentCssPosition=this.offsetParent.css("position");this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.scroll=false;a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(b,false);this.originalPageX=b.pageX;this.originalPageY=b.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);this._setContainment();if(this._trigger("start",b)===false){this._clear();return false}this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this._mouseDrag(b,true);if(a.ui.ddmanager){a.ui.ddmanager.dragStart(this,b)}return true},_mouseDrag:function(b,c){if(this.offsetParentCssPosition==="fixed"){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(b,true);this.positionAbs=this._convertPositionTo("absolute");if(!c){var d=this._uiHash();if(this._trigger("drag",b,d)===false){this._mouseUp({});return false}this.position=d.position}this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(b){var c=this,d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,b)}if(this.dropped){d=this.dropped;this.dropped=false}if(this.options.revert==="invalid"&&!d||this.options.revert==="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(c._trigger("stop",b)!==false){c._clear()}})}else{if(this._trigger("stop",b)!==false){this._clear()}}return false},_mouseUp:function(b){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});if(a.ui.ddmanager){a.ui.ddmanager.dragStop(this,b)}this.element.focus();return a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(b){return this.options.handle?!!a(b.target).closest(this.element.find(this.options.handle)).length:true},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper==="clone"?this.element.clone().removeAttr("id"):this.element;if(!d.parents("body").length){d.appendTo(c.appendTo==="parent"?this.element[0].parentNode:c.appendTo)}if(d[0]!==this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))){d.css("position","absolute")}return d},_adjustOffsetFromHelper:function(b){if(typeof b==="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left"in b){this.offset.click.left=b.left+this.margins.left}if("right"in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top"in b){this.offset.click.top=b.top+this.margins.top}if("bottom"in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_isRootNode:function(a){return/(html|body)/i.test(a.tagName)||a===this.document[0]},_getParentOffset:function(){var b=this.offsetParent.offset(),c=this.document[0];if(this.cssPosition==="absolute"&&this.scrollParent[0]!==c&&a.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this._isRootNode(this.offsetParent[0])){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative"){return{top:0,left:0}}var a=this.element.position(),b=this._isRootNode(this.scrollParent[0]);return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+(!b?this.scrollParent.scrollTop():0),left:a.left-(parseInt(this.helper.css("left"),10)||0)+(!b?this.scrollParent.scrollLeft():0)}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options,f=this.document[0];this.relativeContainer=null;if(!e.containment){this.containment=null;return}if(e.containment==="window"){this.containment=[a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,a(window).scrollLeft()+a(window).width()-this.helperProportions.width-this.margins.left,a(window).scrollTop()+(a(window).height()||f.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(e.containment==="document"){this.containment=[0,0,a(f).width()-this.helperProportions.width-this.margins.left,(a(f).height()||f.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(e.containment.constructor===Array){this.containment=e.containment;return}if(e.containment==="parent"){e.containment=this.helper[0].parentNode}c=a(e.containment);d=c[0];if(!d){return}b=c.css("overflow")!=="hidden";this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(b?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(b?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relativeContainer=c},_convertPositionTo:function(a,b){if(!b){b=this.position}var c=a==="absolute"?1:-1,d=this._isRootNode(this.scrollParent[0]);return{top:b.top+this.offset.relative.top*c+this.offset.parent.top*c-(this.cssPosition==="fixed"?-this.offset.scroll.top:d?0:this.offset.scroll.top)*c,left:b.left+this.offset.relative.left*c+this.offset.parent.left*c-(this.cssPosition==="fixed"?-this.offset.scroll.left:d?0:this.offset.scroll.left)*c}},_generatePosition:function(a,b){var c,d,e,f,g=this.options,h=this._isRootNode(this.scrollParent[0]),i=a.pageX,j=a.pageY;if(!h||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}}if(b){if(this.containment){if(this.relativeContainer){d=this.relativeContainer.offset();c=[this.containment[0]+d.left,this.containment[1]+d.top,this.containment[2]+d.left,this.containment[3]+d.top]}else{c=this.containment}if(a.pageX-this.offset.click.left<c[0]){i=c[0]+this.offset.click.left}if(a.pageY-this.offset.click.top<c[1]){j=c[1]+this.offset.click.top}if(a.pageX-this.offset.click.left>c[2]){i=c[2]+this.offset.click.left}if(a.pageY-this.offset.click.top>c[3]){j=c[3]+this.offset.click.top}}if(g.grid){e=g.grid[1]?this.originalPageY+Math.round((j-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY;j=c?e-this.offset.click.top>=c[1]||e-this.offset.click.top>c[3]?e:e-this.offset.click.top>=c[1]?e-g.grid[1]:e+g.grid[1]:e;f=g.grid[0]?this.originalPageX+Math.round((i-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX;i=c?f-this.offset.click.left>=c[0]||f-this.offset.click.left>c[2]?f:f-this.offset.click.left>=c[0]?f-g.grid[0]:f+g.grid[0]:f}if(g.axis==="y"){i=this.originalPageX}if(g.axis==="x"){j=this.originalPageY}}return{top:j-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:h?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false;if(this.destroyOnClear){this.destroy()}},_trigger:function(b,c,d){d=d||this._uiHash();a.ui.plugin.call(this,b,[c,d,this],true);if(b==="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c,d){var e=d.options,f=a.extend({},c,{item:d.element});d.sortables=[];a(e.connectToSortable).each(function(){var c=a(this).sortable("instance");if(c&&!c.options.disabled){d.sortables.push({instance:c,shouldRevert:c.options.revert});c.refreshPositions();c._trigger("activate",b,f)}})},stop:function(b,c,d){var e=a.extend({},c,{item:d.element});a.each(d.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;d.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=this.shouldRevert}this.instance._mouseStop(b);this.instance.options.helper=this.instance.options._helper;if(d.options.helper==="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",b,e)}})},drag:function(b,c,d){var e=this;a.each(d.sortables,function(){var f=false,g=this;this.instance.positionAbs=d.positionAbs;this.instance.helperProportions=d.helperProportions;this.instance.offset.click=d.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){f=true;a.each(d.sortables,function(){this.instance.positionAbs=d.positionAbs;this.instance.helperProportions=d.helperProportions;this.instance.offset.click=d.offset.click;if(this!==g&&this.instance._intersectsWith(this.instance.containerCache)&&a.contains(g.instance.element[0],this.instance.element[0])){f=false}return f})}if(f){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return c.helper[0]};b.target=this.instance.currentItem[0];this.instance._mouseCapture(b,true);this.instance._mouseStart(b,true,true);this.instance.offset.click.top=d.offset.click.top;this.instance.offset.click.left=d.offset.click.left;this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top;d._trigger("toSortable",b);d.dropped=this.instance.element;d.currentItem=d.element;this.instance.fromOutside=d}if(this.instance.currentItem){this.instance._mouseDrag(b)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",b,this.instance._uiHash(this.instance));this.instance._mouseStop(b,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}d._trigger("fromSortable",b);d.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(b,c,d){var e=a("body"),f=d.options;if(e.css("cursor")){f._cursor=e.css("cursor")}e.css("cursor",f.cursor)},stop:function(b,c,d){var e=d.options;if(e._cursor){a("body").css("cursor",e._cursor)}}});a.ui.plugin.add("draggable","opacity",{start:function(b,c,d){var e=a(c.helper),f=d.options;if(e.css("opacity")){f._opacity=e.css("opacity")}e.css("opacity",f.opacity)},stop:function(b,c,d){var e=d.options;if(e._opacity){a(c.helper).css("opacity",e._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(a,b,c){if(!c.scrollParentNotHidden){c.scrollParentNotHidden=c.helper.scrollParent(false)}if(c.scrollParentNotHidden[0]!==c.document[0]&&c.scrollParentNotHidden[0].tagName!=="HTML"){c.overflowOffset=c.scrollParentNotHidden.offset()}},drag:function(b,c,d){var e=d.options,f=false,g=d.scrollParentNotHidden[0],h=d.document[0];if(g!==h&&g.tagName!=="HTML"){if(!e.axis||e.axis!=="x"){if(d.overflowOffset.top+g.offsetHeight-b.pageY<e.scrollSensitivity){g.scrollTop=f=g.scrollTop+e.scrollSpeed}else if(b.pageY-d.overflowOffset.top<e.scrollSensitivity){g.scrollTop=f=g.scrollTop-e.scrollSpeed}}if(!e.axis||e.axis!=="y"){if(d.overflowOffset.left+g.offsetWidth-b.pageX<e.scrollSensitivity){g.scrollLeft=f=g.scrollLeft+e.scrollSpeed}else if(b.pageX-d.overflowOffset.left<e.scrollSensitivity){g.scrollLeft=f=g.scrollLeft-e.scrollSpeed}}}else{if(!e.axis||e.axis!=="x"){if(b.pageY-a(h).scrollTop()<e.scrollSensitivity){f=a(h).scrollTop(a(h).scrollTop()-e.scrollSpeed)}else if(a(window).height()-(b.pageY-a(h).scrollTop())<e.scrollSensitivity){f=a(h).scrollTop(a(h).scrollTop()+e.scrollSpeed)}}if(!e.axis||e.axis!=="y"){if(b.pageX-a(h).scrollLeft()<e.scrollSensitivity){f=a(h).scrollLeft(a(h).scrollLeft()-e.scrollSpeed)}else if(a(window).width()-(b.pageX-a(h).scrollLeft())<e.scrollSensitivity){f=a(h).scrollLeft(a(h).scrollLeft()+e.scrollSpeed)}}}if(f!==false&&a.ui.ddmanager&&!e.dropBehaviour){a.ui.ddmanager.prepareOffsets(d,b)}}});a.ui.plugin.add("draggable","snap",{start:function(b,c,d){var e=d.options;d.snapElements=[];a(e.snap.constructor!==String?e.snap.items||":data(ui-draggable)":e.snap).each(function(){var b=a(this),c=b.offset();if(this!==d.element[0]){d.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:c.top,left:c.left})}})},drag:function(b,c,d){var e,f,g,h,i,j,k,l,m,n,o=d.options,p=o.snapTolerance,q=c.offset.left,r=q+d.helperProportions.width,s=c.offset.top,t=s+d.helperProportions.height;for(m=d.snapElements.length-1;m>=0;m--){i=d.snapElements[m].left;j=i+d.snapElements[m].width;k=d.snapElements[m].top;l=k+d.snapElements[m].height;if(r<i-p||q>j+p||t<k-p||s>l+p||!a.contains(d.snapElements[m].item.ownerDocument,d.snapElements[m].item)){if(d.snapElements[m].snapping){d.options.snap.release&&d.options.snap.release.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[m].item}))}d.snapElements[m].snapping=false;continue}if(o.snapMode!=="inner"){e=Math.abs(k-t)<=p;f=Math.abs(l-s)<=p;g=Math.abs(i-r)<=p;h=Math.abs(j-q)<=p;if(e){c.position.top=d._convertPositionTo("relative",{top:k-d.helperProportions.height,left:0}).top-d.margins.top}if(f){c.position.top=d._convertPositionTo("relative",{top:l,left:0}).top-d.margins.top}if(g){c.position.left=d._convertPositionTo("relative",{top:0,left:i-d.helperProportions.width}).left-d.margins.left}if(h){c.position.left=d._convertPositionTo("relative",{top:0,left:j}).left-d.margins.left}}n=e||f||g||h;if(o.snapMode!=="outer"){e=Math.abs(k-s)<=p;f=Math.abs(l-t)<=p;g=Math.abs(i-q)<=p;h=Math.abs(j-r)<=p;if(e){c.position.top=d._convertPositionTo("relative",{top:k,left:0}).top-d.margins.top}if(f){c.position.top=d._convertPositionTo("relative",{top:l-d.helperProportions.height,left:0}).top-d.margins.top}if(g){c.position.left=d._convertPositionTo("relative",{top:0,left:i}).left-d.margins.left}if(h){c.position.left=d._convertPositionTo("relative",{top:0,left:j-d.helperProportions.width}).left-d.margins.left}}if(!d.snapElements[m].snapping&&(e||f||g||h||n)){d.options.snap.snap&&d.options.snap.snap.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[m].item}))}d.snapElements[m].snapping=e||f||g||h||n}}});a.ui.plugin.add("draggable","stack",{start:function(b,c,d){var e,f=d.options,g=a.makeArray(a(f.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(!g.length){return}e=parseInt(a(g[0]).css("zIndex"),10)||0;a(g).each(function(b){a(this).css("zIndex",e+b)});this.css("zIndex",e+g.length)}});a.ui.plugin.add("draggable","zIndex",{start:function(b,c,d){var e=a(c.helper),f=d.options;if(e.css("zIndex")){f._zIndex=e.css("zIndex")}e.css("zIndex",f.zIndex)},stop:function(b,c,d){var e=d.options;if(e._zIndex){a(c.helper).css("zIndex",e._zIndex)}}});var i=a.ui.draggable;a.widget("ui.resizable",a.ui.mouse,{version:"1.11.1",widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(a){return parseInt(a,10)||0},_isNumber:function(a){return!isNaN(parseInt(a,10))},_hasScroll:function(b,c){if(a(b).css("overflow")==="hidden"){return false}var d=c&&c==="left"?"scrollLeft":"scrollTop",e=false;if(b[d]>0){return true}b[d]=1;e=b[d]>0;b[d]=0;return e},_create:function(){var b,c,d,e,f,g=this,h=this.options;this.element.addClass("ui-resizable");a.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){this.element.wrap(a("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=h.handles||(!a(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}b=this.handles.split(",");this.handles={};for(c=0;c<b.length;c++){d=a.trim(b[c]);f="ui-resizable-"+d;e=a("<div class='ui-resizable-handle "+f+"'></div>");e.css({zIndex:h.zIndex});if("se"===d){e.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[d]=".ui-resizable-"+d;this.element.append(e)}}this._renderAxis=function(b){var c,d,e,f;b=b||this.element;for(c in this.handles){if(this.handles[c].constructor===String){this.handles[c]=this.element.children(this.handles[c]).first().show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){d=a(this.handles[c],this.element);f=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth();e=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");b.css(e,f);this._proportionallyResize()}if(!a(this.handles[c]).length){continue}}};this._renderAxis(this.element);this._handles=a(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!g.resizing){if(this.className){e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}g.axis=e&&e[1]?e[1]:"se"}});if(h.autoHide){this._handles.hide();a(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(h.disabled){return}a(this).removeClass("ui-resizable-autohide");g._handles.show()}).mouseleave(function(){if(h.disabled){return}if(!g.resizing){a(this).addClass("ui-resizable-autohide");g._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var b,c=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){c(this.element);b=this.element;this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")}).insertAfter(b);b.remove()}this.originalElement.css("resize",this.originalResizeStyle);c(this.originalElement);return this},_mouseCapture:function(b){var c,d,e=false;for(c in this.handles){d=a(this.handles[c])[0];if(d===b.target||a.contains(d,b.target)){e=true}}return!this.options.disabled&&e},_mouseStart:function(b){var c,d,e,f=this.options,g=this.element;this.resizing=true;this._renderProxy();c=this._num(this.helper.css("left"));d=this._num(this.helper.css("top"));if(f.containment){c+=a(f.containment).scrollLeft()||0;d+=a(f.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:c,top:d};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:g.width(),height:g.height()};this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()};this.originalPosition={left:c,top:d};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof f.aspectRatio==="number"?f.aspectRatio:this.originalSize.width/this.originalSize.height||1;e=a(".ui-resizable-"+this.axis).css("cursor");a("body").css("cursor",e==="auto"?this.axis+"-resize":e);g.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var c,d,e=this.originalMousePosition,f=this.axis,g=b.pageX-e.left||0,h=b.pageY-e.top||0,i=this._change[f];this._updatePrevProperties();if(!i){return false}c=i.apply(this,[b,g,h]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey){c=this._updateRatio(c,b)}c=this._respectSize(c,b);this._updateCache(c);this._propagate("resize",b);d=this._applyChanges();if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!a.isEmptyObject(d)){this._updatePrevProperties();this._trigger("resize",b,this.ui());this._applyChanges()}return false},_mouseStop:function(b){this.resizing=false;var c,d,e,f,g,h,i,j=this.options,k=this;if(this._helper){c=this._proportionallyResizeElements;d=c.length&&/textarea/i.test(c[0].nodeName);e=d&&this._hasScroll(c[0],"left")?0:k.sizeDiff.height;f=d?0:k.sizeDiff.width;g={width:k.helper.width()-f,height:k.helper.height()-e};h=parseInt(k.element.css("left"),10)+(k.position.left-k.originalPosition.left)||null;i=parseInt(k.element.css("top"),10)+(k.position.top-k.originalPosition.top)||null;if(!j.animate){this.element.css(a.extend(g,{top:i,left:h}))}k.helper.height(k.size.height);k.helper.width(k.size.width);if(this._helper&&!j.animate){this._proportionallyResize()}}a("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);if(this._helper){this.helper.remove()}return false},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var a={};if(this.position.top!==this.prevPosition.top){a.top=this.position.top+"px"}if(this.position.left!==this.prevPosition.left){a.left=this.position.left+"px"}if(this.size.width!==this.prevSize.width){a.width=this.size.width+"px"}if(this.size.height!==this.prevSize.height){a.height=this.size.height+"px"}this.helper.css(a);return a},_updateVirtualBoundaries:function(a){var b,c,d,e,f,g=this.options;f={minWidth:this._isNumber(g.minWidth)?g.minWidth:0,maxWidth:this._isNumber(g.maxWidth)?g.maxWidth:Infinity,minHeight:this._isNumber(g.minHeight)?g.minHeight:0,maxHeight:this._isNumber(g.maxHeight)?g.maxHeight:Infinity};if(this._aspectRatio||a){b=f.minHeight*this.aspectRatio;d=f.minWidth/this.aspectRatio;c=f.maxHeight*this.aspectRatio;e=f.maxWidth/this.aspectRatio;if(b>f.minWidth){f.minWidth=b}if(d>f.minHeight){f.minHeight=d}if(c<f.maxWidth){f.maxWidth=c}if(e<f.maxHeight){f.maxHeight=e}}this._vBoundaries=f},_updateCache:function(a){this.offset=this.helper.offset();if(this._isNumber(a.left)){this.position.left=a.left}if(this._isNumber(a.top)){this.position.top=a.top}if(this._isNumber(a.height)){this.size.height=a.height}if(this._isNumber(a.width)){this.size.width=a.width}},_updateRatio:function(a){var b=this.position,c=this.size,d=this.axis;if(this._isNumber(a.height)){a.width=a.height*this.aspectRatio}else if(this._isNumber(a.width)){a.height=a.width/this.aspectRatio}if(d==="sw"){a.left=b.left+(c.width-a.width);a.top=null}if(d==="nw"){a.top=b.top+(c.height-a.height);a.left=b.left+(c.width-a.width)}return a},_respectSize:function(a){var b=this._vBoundaries,c=this.axis,d=this._isNumber(a.width)&&b.maxWidth&&b.maxWidth<a.width,e=this._isNumber(a.height)&&b.maxHeight&&b.maxHeight<a.height,f=this._isNumber(a.width)&&b.minWidth&&b.minWidth>a.width,g=this._isNumber(a.height)&&b.minHeight&&b.minHeight>a.height,h=this.originalPosition.left+this.originalSize.width,i=this.position.top+this.size.height,j=/sw|nw|w/.test(c),k=/nw|ne|n/.test(c);if(f){a.width=b.minWidth}if(g){a.height=b.minHeight}if(d){a.width=b.maxWidth}if(e){a.height=b.maxHeight}if(f&&j){a.left=h-b.minWidth}if(d&&j){a.left=h-b.maxWidth}if(g&&k){a.top=i-b.minHeight}if(e&&k){a.top=i-b.maxHeight}if(!a.width&&!a.height&&!a.left&&a.top){a.top=null}else if(!a.width&&!a.height&&!a.top&&a.left){a.left=null}return a},_getPaddingPlusBorderDimensions:function(a){var b=0,c=[],d=[a.css("borderTopWidth"),a.css("borderRightWidth"),a.css("borderBottomWidth"),a.css("borderLeftWidth")],e=[a.css("paddingTop"),a.css("paddingRight"),a.css("paddingBottom"),a.css("paddingLeft")];for(;b<4;b++){c[b]=parseInt(d[b],10)||0;c[b]+=parseInt(e[b],10)||0}return{height:c[0]+c[2],width:c[1]+c[3]}},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var a,b=0,c=this.helper||this.element;for(;b<this._proportionallyResizeElements.length;b++){a=this._proportionallyResizeElements[b];if(!this.outerDimensions){this.outerDimensions=this._getPaddingPlusBorderDimensions(a)}a.css({height:c.height()-this.outerDimensions.height||0,width:c.width()-this.outerDimensions.width||0})}},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset();if(this._helper){this.helper=this.helper||a("<div style='overflow:hidden;'></div>");this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++c.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){var c=this.originalSize,d=this.originalPosition;return{left:d.left+b,width:c.width-b}},n:function(a,b,c){var d=this.originalSize,e=this.originalPosition;return{top:e.top+c,height:d.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]);b!=="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).resizable("instance"),d=c.options,e=c._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&c._hasScroll(e[0],"left")?0:c.sizeDiff.height,h=f?0:c.sizeDiff.width,i={width:c.size.width-h,height:c.size.height-g},j=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,k=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(i,k&&j?{top:k,left:j}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};if(e&&e.length){a(e[0]).css({width:d.width,height:d.height})}c._updateCache(d);c._propagate("resize",b)}})}});a.ui.plugin.add("resizable","containment",{start:function(){var b,c,d,e,f,g,h,i=a(this).resizable("instance"),j=i.options,k=i.element,l=j.containment,m=l instanceof a?l.get(0):/parent/.test(l)?k.parent().get(0):l;if(!m){return}i.containerElement=a(m);if(/document/.test(l)||l===document){i.containerOffset={left:0,top:0};i.containerPosition={left:0,top:0};i.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight}}else{b=a(m);c=[];a(["Top","Right","Left","Bottom"]).each(function(a,d){c[a]=i._num(b.css("padding"+d))});i.containerOffset=b.offset();i.containerPosition=b.position();i.containerSize={height:b.innerHeight()-c[3],width:b.innerWidth()-c[1]};d=i.containerOffset;e=i.containerSize.height;f=i.containerSize.width;g=i._hasScroll(m,"left")?m.scrollWidth:f;h=i._hasScroll(m)?m.scrollHeight:e;i.parentData={element:m,left:d.left,top:d.top,width:g,height:h}}},resize:function(b){var c,d,e,f,g=a(this).resizable("instance"),h=g.options,i=g.containerOffset,j=g.position,k=g._aspectRatio||b.shiftKey,l={top:0,left:0},m=g.containerElement,n=true;if(m[0]!==document&&/static/.test(m.css("position"))){l=i}if(j.left<(g._helper?i.left:0)){g.size.width=g.size.width+(g._helper?g.position.left-i.left:g.position.left-l.left);if(k){g.size.height=g.size.width/g.aspectRatio;n=false}g.position.left=h.helper?i.left:0}if(j.top<(g._helper?i.top:0)){g.size.height=g.size.height+(g._helper?g.position.top-i.top:g.position.top);if(k){g.size.width=g.size.height*g.aspectRatio;n=false}g.position.top=g._helper?i.top:0}e=g.containerElement.get(0)===g.element.parent().get(0);f=/relative|absolute/.test(g.containerElement.css("position"));if(e&&f){g.offset.left=g.parentData.left+g.position.left;g.offset.top=g.parentData.top+g.position.top}else{g.offset.left=g.element.offset().left;g.offset.top=g.element.offset().top}c=Math.abs(g.sizeDiff.width+(g._helper?g.offset.left-l.left:g.offset.left-i.left));d=Math.abs(g.sizeDiff.height+(g._helper?g.offset.top-l.top:g.offset.top-i.top));if(c+g.size.width>=g.parentData.width){g.size.width=g.parentData.width-c;if(k){g.size.height=g.size.width/g.aspectRatio;n=false}}if(d+g.size.height>=g.parentData.height){g.size.height=g.parentData.height-d;if(k){g.size.width=g.size.height*g.aspectRatio;n=false}}if(!n){g.position.left=g.prevPosition.left;g.position.top=g.prevPosition.top;g.size.width=g.prevSize.width;g.size.height=g.prevSize.height}},stop:function(){var b=a(this).resizable("instance"),c=b.options,d=b.containerOffset,e=b.containerPosition,f=b.containerElement,g=a(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width,j=g.outerHeight()-b.sizeDiff.height;if(b._helper&&!c.animate&&/relative/.test(f.css("position"))){a(this).css({left:h.left-e.left-d.left,width:i,height:j})}if(b._helper&&!c.animate&&/static/.test(f.css("position"))){a(this).css({left:h.left-e.left-d.left,width:i,height:j})}}});a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).resizable("instance"),c=b.options,d=function(b){a(b).each(function(){var b=a(this);b.data("ui-resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};if(typeof c.alsoResize==="object"&&!c.alsoResize.parentNode){if(c.alsoResize.length){c.alsoResize=c.alsoResize[0];d(c.alsoResize)}else{a.each(c.alsoResize,function(a){d(a)})}}else{d(c.alsoResize)}},resize:function(b,c){var d=a(this).resizable("instance"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("ui-resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);if(c&&c>=0){f[b]=c||null}});b.css(f)})};if(typeof e.alsoResize==="object"&&!e.alsoResize.nodeType){a.each(e.alsoResize,function(a,b){i(a,b)})}else{i(e.alsoResize)}},stop:function(){a(this).removeData("resizable-alsoresize")}});a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).resizable("instance"),c=b.options,d=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof c.ghost==="string"?c.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).resizable("instance");if(b.ghost){b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})}},stop:function(){var b=a(this).resizable("instance");if(b.ghost&&b.helper){b.helper.get(0).removeChild(b.ghost.get(0))}}});a.ui.plugin.add("resizable","grid",{resize:function(){var b,c=a(this).resizable("instance"),d=c.options,e=c.size,f=c.originalSize,g=c.originalPosition,h=c.axis,i=typeof d.grid==="number"?[d.grid,d.grid]:d.grid,j=i[0]||1,k=i[1]||1,l=Math.round((e.width-f.width)/j)*j,m=Math.round((e.height-f.height)/k)*k,n=f.width+l,o=f.height+m,p=d.maxWidth&&d.maxWidth<n,q=d.maxHeight&&d.maxHeight<o,r=d.minWidth&&d.minWidth>n,s=d.minHeight&&d.minHeight>o;d.grid=i;if(r){n+=j}if(s){o+=k}if(p){n-=j}if(q){o-=k}if(/^(se|s|e)$/.test(h)){c.size.width=n;c.size.height=o}else if(/^(ne)$/.test(h)){c.size.width=n;c.size.height=o;c.position.top=g.top-m}else if(/^(sw)$/.test(h)){c.size.width=n;c.size.height=o;c.position.left=g.left-l}else{if(o-k<=0||n-j<=0){b=c._getPaddingPlusBorderDimensions(this)}if(o-k>0){c.size.height=o;c.position.top=g.top-m}else{o=k-b.height;c.size.height=o;c.position.top=g.top+f.height-o}if(n-j>0){c.size.width=n;c.position.left=g.left-l}else{n=k-b.height;c.size.width=n;c.position.left=g.left+f.width-n}}}});var j=a.ui.resizable;var k=a.widget("ui.sortable",a.ui.mouse,{version:"1.11.1",widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(a,b,c){return a>=b&&a<b+c},_isFloating:function(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?a.axis==="x"||this._isFloating(this.items[0].item):false;this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=true},_setOption:function(a,b){this._super(a,b);if(a==="handle"){this._setHandleClassName()}},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle");a.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--){this.items[a].item.removeData(this.widgetName+"-item")}return this},_mouseCapture:function(b,c){var d=null,e=false,f=this;if(this.reverting){return false}if(this.options.disabled||this.options.type==="static"){return false}this._refreshItems(b);a(b.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")===f){d=a(this);return false}});if(a.data(b.target,f.widgetName+"-item")===f){d=a(b.target)}if(!d){return false}if(this.options.handle&&!c){a(this.options.handle,d).find("*").addBack().each(function(){if(this===b.target){e=true}});if(!e){return false}}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(b,c,d){var e,f,g=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(b);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(g.containment){this._setContainment()}if(g.cursor&&g.cursor!=="auto"){f=this.document.find("body");this.storedCursor=f.css("cursor");f.css("cursor",g.cursor);this.storedStylesheet=a("<style>*{ cursor: "+g.cursor+" !important; }</style>").appendTo(f)}if(g.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",g.opacity)}if(g.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",g.zIndex)}if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",b,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!d){for(e=this.containers.length-1;e>=0;e--){this.containers[e]._trigger("activate",b,this._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(b);return true},_mouseDrag:function(b){var c,d,e,f,g=this.options,h=false;this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<g.scrollSensitivity){this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop+g.scrollSpeed}else if(b.pageY-this.overflowOffset.top<g.scrollSensitivity){this.scrollParent[0].scrollTop=h=this.scrollParent[0].scrollTop-g.scrollSpeed}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<g.scrollSensitivity){this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft+g.scrollSpeed}else if(b.pageX-this.overflowOffset.left<g.scrollSensitivity){this.scrollParent[0].scrollLeft=h=this.scrollParent[0].scrollLeft-g.scrollSpeed}}else{if(b.pageY-a(document).scrollTop()<g.scrollSensitivity){h=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else if(a(window).height()-(b.pageY-a(document).scrollTop())<g.scrollSensitivity){h=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}if(b.pageX-a(document).scrollLeft()<g.scrollSensitivity){h=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else if(a(window).width()-(b.pageX-a(document).scrollLeft())<g.scrollSensitivity){h=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}if(h!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!=="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!=="x"){this.helper[0].style.top=this.position.top+"px"}for(c=this.items.length-1;c>=0;c--){d=this.items[c];e=d.item[0];f=this._intersectsWithPointer(d);if(!f){continue}if(d.instance!==this.currentContainer){continue}if(e!==this.currentItem[0]&&this.placeholder[f===1?"next":"prev"]()[0]!==e&&!a.contains(this.placeholder[0],e)&&(this.options.type==="semi-dynamic"?!a.contains(this.element[0],e):true)){this.direction=f===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(d)){this._rearrange(b,d)}else{break}this._trigger("change",b,this._uiHash());break}}this._contactContainers(b);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}this._trigger("sort",b,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(b,c){if(!b){return}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,b)}if(this.options.revert){var d=this,e=this.placeholder.offset(),f=this.options.axis,g={};if(!f||f==="x"){g.left=e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)}if(!f||f==="y"){g.top=e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)}this.reverting=true;a(this.helper).animate(g,parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else{this._clear(b,c)}return false},cancel:function(){if(this.dragging){this._mouseUp({target:null});if(this.options.helper==="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,this._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,this._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];b=b||{};a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[\-=_](.+)/);if(c){d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}});if(!d.length&&b.key){d.push(b.key+"=")}return d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];b=b||{};c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")});return d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l=this.options.axis==="x"||d+j>h&&d+j<i,m=this.options.axis==="y"||b+k>f&&b+k<g,n=l&&m;if(this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]){return n}else{return f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i}},_intersectsWithPointer:function(a){var b=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height),c=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width),d=b&&c,e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();if(!d){return false}return this.floating?f&&f==="right"||e==="down"?2:1:e&&(e==="down"?2:1)},_intersectsWithSides:function(a){var b=this._isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height),c=this._isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width),d=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();if(this.floating&&e){return e==="right"&&c||e==="left"&&!c}else{return d&&(d==="down"&&b||d==="up"&&!b)}},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!==0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!==0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this._setHandleClassName();this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c,d,e,f,g=[],h=[],i=this._connectWith();if(i&&b){for(c=i.length-1;c>=0;c--){e=a(i[c]);for(d=e.length-1;d>=0;d--){f=a.data(e[d],this.widgetFullName);if(f&&f!==this&&!f.options.disabled){h.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),f])}}}}h.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function j(){g.push(this)}for(c=h.length-1;c>=0;c--){h[c][0].each(j)}return a(g)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c<b.length;c++){if(b[c]===a.item[0]){return false}}return true})},_refreshItems:function(b){this.items=[];this.containers=[this];var c,d,e,f,g,h,i,j,k=this.items,l=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],m=this._connectWith();if(m&&this.ready){for(c=m.length-1;c>=0;c--){e=a(m[c]);for(d=e.length-1;d>=0;d--){f=a.data(e[d],this.widgetFullName);if(f&&f!==this&&!f.options.disabled){l.push([a.isFunction(f.options.items)?f.options.items.call(f.element[0],b,{item:this.currentItem}):a(f.options.items,f.element),f]);this.containers.push(f)}}}}for(c=l.length-1;c>=0;c--){g=l[c][1];h=l[c][0];for(d=0,j=h.length;d<j;d++){i=a(h[d]);i.data(this.widgetName+"-item",g);k.push({item:i,instance:g,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}var c,d,e,f;for(c=this.items.length-1;c>=0;c--){d=this.items[c];if(d.instance!==this.currentContainer&&this.currentContainer&&d.item[0]!==this.currentItem[0]){continue}e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item;if(!b){d.width=e.outerWidth();d.height=e.outerHeight()}f=e.offset();d.left=f.left;d.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(c=this.containers.length-1;c>=0;c--){f=this.containers[c].element.offset();this.containers[c].containerCache.left=f.left;this.containers[c].containerCache.top=f.top;this.containers[c].containerCache.width=this.containers[c].element.outerWidth();this.containers[c].containerCache.height=this.containers[c].element.outerHeight()}}return this},_createPlaceholder:function(b){b=b||this;var c,d=b.options;if(!d.placeholder||d.placeholder.constructor===String){c=d.placeholder;d.placeholder={element:function(){var d=b.currentItem[0].nodeName.toLowerCase(),e=a("<"+d+">",b.document[0]).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");if(d==="tr"){b.currentItem.children().each(function(){a("<td> </td>",b.document[0]).attr("colspan",a(this).attr("colspan")||1).appendTo(e)})}else if(d==="img"){e.attr("src",b.currentItem.attr("src"))}if(!c){e.css("visibility","hidden")}return e},update:function(a,e){if(c&&!d.forcePlaceholderSize){return}if(!e.height()){e.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10))}if(!e.width()){e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=a(d.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);d.placeholder.update(b,b.placeholder)},_contactContainers:function(b){var c,d,e,f,g,h,i,j,k,l,m=null,n=null;for(c=this.containers.length-1;c>=0;c--){if(a.contains(this.currentItem[0],this.containers[c].element[0])){continue}if(this._intersectsWith(this.containers[c].containerCache)){if(m&&a.contains(this.containers[c].element[0],m.element[0])){continue}m=this.containers[c];n=c}else{if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",b,this._uiHash(this));this.containers[c].containerCache.over=0}}}if(!m){return}if(this.containers.length===1){if(!this.containers[n].containerCache.over){this.containers[n]._trigger("over",b,this._uiHash(this));this.containers[n].containerCache.over=1}}else{e=1e4;f=null;k=m.floating||this._isFloating(this.currentItem);g=k?"left":"top";h=k?"width":"height";l=k?"clientX":"clientY";for(d=this.items.length-1;d>=0;d--){if(!a.contains(this.containers[n].element[0],this.items[d].item[0])){continue}if(this.items[d].item[0]===this.currentItem[0]){continue}i=this.items[d].item.offset()[g];j=false;if(b[l]-i>this.items[d][h]/2){j=true}if(Math.abs(b[l]-i)<e){e=Math.abs(b[l]-i);f=this.items[d];this.direction=j?"up":"down"}}if(!f&&!this.options.dropOnEmpty){return}if(this.currentContainer===this.containers[n]){return}f?this._rearrange(b,f,null,true):this._rearrange(b,null,this.containers[n].element,true);this._trigger("change",b,this._uiHash());this.containers[n]._trigger("change",b,this._uiHash(this));this.currentContainer=this.containers[n];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[n]._trigger("over",b,this._uiHash(this));this.containers[n].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):c.helper==="clone"?this.currentItem.clone():this.currentItem;if(!d.parents("body").length){a(c.appendTo!=="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0])}if(d[0]===this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(!d[0].style.width||c.forceHelperSize){d.width(this.currentItem.width())}if(!d[0].style.height||c.forceHelperSize){d.height(this.currentItem.height())}return d},_adjustOffsetFromHelper:function(b){if(typeof b==="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left"in b){this.offset.click.left=b.left+this.margins.left}if("right"in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top"in b){this.offset.click.top=b.top+this.margins.top}if("bottom"in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&a.ui.ie){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b,c,d,e=this.options;if(e.containment==="parent"){e.containment=this.helper[0].parentNode}if(e.containment==="document"||e.containment==="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment==="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(e.containment)){b=a(e.containment)[0];c=a(e.containment).offset();d=a(b).css("overflow")!=="hidden";this.containment=[c.left+(parseInt(a(b).css("borderLeftWidth"),10)||0)+(parseInt(a(b).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(a(b).css("borderTopWidth"),10)||0)+(parseInt(a(b).css("paddingTop"),10)||0)-this.margins.top,c.left+(d?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(a(b).css("borderLeftWidth"),10)||0)-(parseInt(a(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(d?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(a(b).css("borderTopWidth"),10)||0)-(parseInt(a(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,c){if(!c){c=this.position}var d=b==="absolute"?1:-1,e=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*d}},_generatePosition:function(b){var c,d,e=this.options,f=b.pageX,g=b.pageY,h=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&a.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=/(html|body)/i.test(h[0].tagName);if(this.cssPosition==="relative"&&!(this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}if(this.originalPosition){if(this.containment){if(b.pageX-this.offset.click.left<this.containment[0]){f=this.containment[0]+this.offset.click.left}if(b.pageY-this.offset.click.top<this.containment[1]){g=this.containment[1]+this.offset.click.top}if(b.pageX-this.offset.click.left>this.containment[2]){f=this.containment[2]+this.offset.click.left}if(b.pageY-this.offset.click.top>this.containment[3]){g=this.containment[3]+this.offset.click.top}}if(e.grid){c=this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1];g=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-e.grid[1]:c+e.grid[1]:c;d=this.originalPageX+Math.round((f-this.originalPageX)/e.grid[0])*e.grid[0];f=this.containment?d-this.offset.click.left>=this.containment[0]&&d-this.offset.click.left<=this.containment[2]?d:d-this.offset.click.left>=this.containment[0]?d-e.grid[0]:d+e.grid[0]:d}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():i?0:h.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():i?0:h.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){if(e===this.counter){this.refreshPositions(!d)}})},_clear:function(a,b){this.reverting=false;var c,d=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(c in this._storedCSS){if(this._storedCSS[c]==="auto"||this._storedCSS[c]==="static"){this._storedCSS[c]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!b){d.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!b){d.push(function(a){this._trigger("update",a,this._uiHash())})}if(this!==this.currentContainer){if(!b){d.push(function(a){this._trigger("remove",a,this._uiHash())});d.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer));d.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer))}}function e(a,b,c){return function(d){c._trigger(a,d,b._uiHash(b))}}for(c=this.containers.length-1;c>=0;c--){if(!b){d.push(e("deactivate",this,this.containers[c]))}if(this.containers[c].containerCache.over){d.push(e("out",this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",a,this._uiHash());for(c=0;c<d.length;c++){d[c].call(this,a)}this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return false}if(!b){this._trigger("beforeStop",a,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!==this.currentItem[0]){this.helper.remove()}this.helper=null;if(!b){for(c=0;c<d.length;c++){d[c].call(this,a)}this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}})});(function(a,b,c){var d={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},e={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},f={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},g={option:"alt",command:"meta",return:"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h,i={},j={},k={},l,m=false,n=false,o=false;for(var p=1;p<20;++p){d[111+p]="f"+p}for(p=0;p<=9;++p){d[p+96]=p}function q(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false);return}a.attachEvent("on"+b,c)}function r(a){if(a.type=="keypress"){var b=String.fromCharCode(a.which);if(!a.shiftKey){b=b.toLowerCase()}return b}if(d[a.which]){return d[a.which]}if(e[a.which]){return e[a.which]}return String.fromCharCode(a.which).toLowerCase()}function s(a,b){return a.sort().join(",")===b.sort().join(",")}function t(a){a=a||{};var b=false,c;for(c in k){if(a[c]){b=true;continue}k[c]=0}if(!b){o=false}}function u(a,b,c,d,e,f){var g,h,j=[],l=c.type;if(!i[a]){return[]}if(l=="keyup"&&B(a)){b=[a]}for(g=0;g<i[a].length;++g){h=i[a][g];if(!d&&h.seq&&k[h.seq]!=h.level){continue}if(l!=h.action){continue}if(l=="keypress"&&!c.metaKey&&!c.ctrlKey||s(b,h.modifiers)){var m=!d&&h.combo==e;var n=d&&h.seq==d&&h.level==f;if(m||n){i[a].splice(g,1)}j.push(h)}}return j}function v(a){var b=[];if(a.shiftKey){b.push("shift")}if(a.altKey){b.push("alt")}if(a.ctrlKey){b.push("ctrl")}if(a.metaKey){b.push("meta")}return b}function w(a){if(a.preventDefault){a.preventDefault();return}a.returnValue=false}function x(a){if(a.stopPropagation){a.stopPropagation();return}a.cancelBubble=true}function y(a,b,c,d){if(K.stopCallback(b,b.target||b.srcElement,c,d)){return}if(a(b,c)===false){w(b);x(b)}}function z(a,b,c){var d=u(a,b,c),e,f={},g=0,h=false;for(e=0;e<d.length;++e){if(d[e].seq){g=Math.max(g,d[e].level)}}for(e=0;e<d.length;++e){if(d[e].seq){if(d[e].level!=g){continue}h=true;f[d[e].seq]=1;y(d[e].callback,c,d[e].combo,d[e].seq);continue}if(!h){y(d[e].callback,c,d[e].combo)}}var i=c.type=="keypress"&&n;if(c.type==o&&!B(a)&&!i){t(f)}n=h&&c.type=="keydown"}function A(a){if(typeof a.which!=="number"){a.which=a.keyCode}var b=r(a);if(!b){return}if(a.type=="keyup"&&m===b){m=false;return}K.handleKey(b,v(a),a)}function B(a){return a=="shift"||a=="ctrl"||a=="alt"||a=="meta"}function C(){clearTimeout(l);l=setTimeout(t,1e3)}function D(){if(!h){h={};for(var a in d){if(a>95&&a<112){continue}if(d.hasOwnProperty(a)){h[d[a]]=a}}}return h}function E(a,b,c){if(!c){c=D()[a]?"keydown":"keypress"}if(c=="keypress"&&b.length){c="keydown"}return c}function F(a,b,c,d){k[a]=0;function e(b){return function(){o=b;++k[a];C()}}function f(b){y(c,b,a);if(d!=="keyup"){m=r(b)}setTimeout(t,10)}for(var g=0;g<b.length;++g){var h=g+1===b.length;var i=h?f:e(d||H(b[g+1]).action);I(b[g],i,d,a,g)}}function G(a){if(a==="+"){return["+"]}return a.split("+")}function H(a,b){var c,d,e,h=[];c=G(a);for(e=0;e<c.length;++e){d=c[e];if(g[d]){d=g[d]}if(b&&b!="keypress"&&f[d]){d=f[d];h.push("shift")}if(B(d)){h.push(d)}}b=E(d,h,b);return{key:d,modifiers:h,action:b}}function I(a,b,c,d,e){j[a+":"+c]=b;a=a.replace(/\s+/g," ");var f=a.split(" "),g;if(f.length>1){F(a,f,b,c);return}g=H(a,c);i[g.key]=i[g.key]||[];u(g.key,g.modifiers,{type:g.action},d,a,e);i[g.key][d?"unshift":"push"]({callback:b,modifiers:g.modifiers,action:g.action,seq:d,level:e,combo:a})}function J(a,b,c){for(var d=0;d<a.length;++d){I(a[d],b,c)}}q(b,"keypress",A);q(b,"keydown",A);q(b,"keyup",A);var K={bind:function(a,b,c){a=a instanceof Array?a:[a];J(a,b,c);return this},unbind:function(a,b){return K.bind(a,function(){},b)},trigger:function(a,b){if(j[a+":"+b]){j[a+":"+b]({},a)}return this},reset:function(){i={};j={};return this},stopCallback:function(a,b){if((" "+b.className+" ").indexOf(" mousetrap ")>-1){return false}return b.tagName=="INPUT"||b.tagName=="SELECT"||b.tagName=="TEXTAREA"||b.isContentEditable},handleKey:z};a.Mousetrap=K;if(typeof define==="function"&&define.amd){define(K)}})(window,document);(function(a){a.fn.sticky=function(){if(this.size()>1){return this.each(function(){a(this).sticky(options)})}var c=false;var d=this;this.unbind(".sticky");this.on("beforeAppend.sticky",function(){c=b.call(d)});this.on("afterAppend.sticky",function(){if(c){d.scrollBottom()}});var e=this.css("overflow-y");if(e=="visible"){e="auto"}this.css({"overflow-y":e});a(window).unbind(".sticky");a(window).on("resize.sticky",function(){d.scrollBottom()});this.scrollBottom();return this};a.fn.scrollBottom=function(){return this.each(function(){a(this).animate({scrollTop:this.scrollHeight},0)})};a.fn.isScrollBottom=b;function b(){if(this.scrollTop()+this.outerHeight()+1>=this.prop("scrollHeight")){return true}else{return false}}var c=a.fn.append;a.fn.append=function(){this.trigger("beforeAppend");c.apply(this,arguments).trigger("afterAppend");return this}})(jQuery);(function(a){var b={backspace:8,tab:9,up:38,down:40};a.tabcomplete={};a.tabcomplete.defaultOptions={after:"",arrowKeys:false,caseSensitive:false,hint:"placeholder",minLength:1};a.fn.tab=a.fn.tabcomplete=function(f,g){if(this.length>1){return this.each(function(){a(this).tabcomplete(f,g)})}var h=this.prop("tagName");if(h!="INPUT"&&h!="TEXTAREA"){return}g=a.extend(a.tabcomplete.defaultOptions,g);this.unbind(".tabcomplete");this.prev(".hint").remove();var i=this;var j=false;var k=-1;var l=[];var m="";var n=a.noop;switch(g.hint){case"placeholder":n=d;break;case"select":n=e;break}this.on("input.tabcomplete",function(){var b=i.val();var d=b.split(/ |\n/).pop();k=-1;m="";l=[];if(i[0].selectionStart==b.length&&d.length){if(typeof f==="function"){l=f(d)}else{l=c(d,f,g.caseSensitive)}if(g.after){l=a.map(l,function(a){return a+g.after})}}i.trigger("match",l.length);if(g.hint){if(!(g.hint=="select"&&j)&&d.length>=g.minLength){n.call(i,l[0])}else{n.call(i,"")}}if(j){j=false}});this.on("keydown.tabcomplete",function(a){var c=a.which;if(c==b.tab||g.arrowKeys&&(c==b.up||c==b.down)){a.preventDefault();if(c!=b.up){k++}else{if(k==-1)return;if(k==0){k=l.length-1}else{k--}}var d=l[k%l.length];if(!d){return}var e=i.val();m=m||e.split(/ |\n/).pop();if(m.length<g.minLength){return}var f=e.substr(0,i[0].selectionStart-m.length)+d;i.val(f);if(g.hint=="select"){i[0].selectionStart=f.length}m=d;i.trigger("tabcomplete",m);if(g.hint){n.call(i,"")}}else if(a.which==b.backspace){j=true;k=-1;m=""}});if(g.hint){n.call(this,"")}return this};function c(b,c,d){return a.grep(c,function(a){if(d){return!a.indexOf(b)}else{return!a.toLowerCase().indexOf(b.toLowerCase())}})}function d(b){var c=this;var d=c.prev(".hint");c.css({backgroundColor:"transparent",position:"relative"});if(!d.length){c.wrap(a("<div>").css({position:"relative",height:c.css("height")}));d=c.clone().attr("tabindex",-1).removeAttr("id name placeholder").addClass("hint").insertBefore(c);d.css({position:"absolute"})}var e="";if(typeof b!=="undefined"){var f=c.val();e=f+b.substr(f.split(/ |\n/).pop().length)}d.val(e)}function e(a){var b=this;var c=b.val();if(a){b.val(c+a.substr(c.split(/ |\n/).pop().length));b[0].selectionStart=c.length}}})(jQuery);(function(a){var b="TrackpadScrollEmulator";function c(c,d){var e=c;var f=a(c);var g;var h=f.find(".tse-content");var i;var j;var k;var l;var m=7/8;var n="vert";var o="scrollTop";var p="height";var q="top";d=a.extend({},a.fn[b].defaults,d);function r(){if(f.hasClass("horizontal")){n="horiz";o="scrollLeft";p="width";q="left"}f.prepend('<div class="tse-scrollbar"><div class="drag-handle"></div></div>');i=f.find(".tse-scrollbar");j=f.find(".drag-handle");if(d.wrapContent){h.wrap('<div class="tse-scroll-content" />')}g=f.find(".tse-scroll-content");B();if(d.autoHide){f.on("mouseenter",y)}j.on("mousedown",s);i.on("mousedown",v);g.on("scroll",w);x();a(window).on("resize",function(){D()});if(!d.autoHide){z()}}function s(b){b.preventDefault();var c=a(this);c.trigger("startDrag");var d=b.pageY;if(n==="horiz"){d=b.pageX}k=d-j.offset()[q];a(document).on("mousemove",t);a(document).on("mouseup",function(){u.call(c)})}function t(a){a.preventDefault();var b=a.pageY;if(n==="horiz"){b=a.pageX}var c=b-i.offset()[q]-k;var d=c/i[p]();var e=d*h[p]();g[o](e)}function u(){a(this).trigger("endDrag");a(document).off("mousemove",t);a(document).off("mouseup",u)}function v(a){if(a.target===j[0]){return}var b=m*g[p]();var c=n==="vert"?a.originalEvent.layerY:a.originalEvent.layerX;var d=j.position()[q];var e=c<d?g[o]()-b:g[o]()+b;g[o](e)}function w(a){y()}function x(){var a=h[p]();var b=g[o]();var c=i[p]();var d=c/a;var e=Math.round(d*b)+2;var f=Math.floor(d*(c-2))-2;if(c<a){if(n==="vert"){j.css({top:e,height:f})}else{j.css({left:e,width:f})}i.show()}else{i.hide()}}function y(){x();z()}function z(){j.addClass("visible");if(!d.autoHide){return}if(typeof l==="number"){window.clearTimeout(l)}l=window.setTimeout(function(){A()},1e3)}function A(){j.removeClass("visible");if(typeof l==="number"){window.clearTimeout(l)}}function B(){if(n==="vert"){g.width(f.width()+C());g.height(f.height())}else{g.width(f.width());g.height(f.height()+C());h.height(f.height())}}function C(){var b=a('<div class="scrollbar-width-tester" style="width:50px;height:50px;overflow-y:scroll;position:absolute;top:-200px;left:-200px;"><div style="height:100px;"></div>');a("body").append(b);var c=a(b).innerWidth();var d=a("div",b).innerWidth();b.remove();if(c===d&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1){return 17}return c-d}function D(){B();x()}function E(a,b){if(b){d[a]=b}else{return d[a]}}function F(){h.insertBefore(i);i.remove();g.remove();h.css({height:f.height()+"px","overflow-y":"scroll"});G("onDestroy");f.removeData("plugin_"+b)}function G(a){if(d[a]!==undefined){d[a].call(e)}}r();return{option:E,destroy:F,recalculate:D}}a.fn[b]=function(d){if(typeof arguments[0]==="string"){var e=arguments[0];var f=Array.prototype.slice.call(arguments,1);var g;this.each(function(){if(a.data(this,"plugin_"+b)&&typeof a.data(this,"plugin_"+b)[e]==="function"){g=a.data(this,"plugin_"+b)[e].apply(this,f)}else{throw new Error("Method "+e+" does not exist on jQuery."+b)}});if(g!==undefined){return g}else{return this}}else if(typeof d==="object"||!d){return this.each(function(){if(!a.data(this,"plugin_"+b)){a.data(this,"plugin_"+b,new c(this,d))}})}};a.fn[b].defaults={onInit:function(){},onDestroy:function(){},wrapContent:true,autoHide:true}})(jQuery);(function(a){var b,c="2.7.0",d=typeof global!=="undefined"?global:this,e,f=Math.round,g,h=0,i=1,j=2,k=3,l=4,m=5,n=6,o={},p={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_tzm:null,_isUTC:null,_offset:null,_pf:null,_lang:null},q=typeof module!=="undefined"&&module.exports,r=/^\/?Date\((\-?\d+)/i,s=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,t=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,u=/(\[[^\[]*\])|(\\)?(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,v=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,w=/\d\d?/,x=/\d{1,3}/,y=/\d{1,4}/,z=/[+\-]?\d{1,6}/,A=/\d+/,B=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,C=/Z|[\+\-]\d\d:?\d\d/gi,D=/T/i,E=/[\+\-]?\d+(\.\d{1,3})?/,F=/\d{1,2}/,G=/\d/,H=/\d\d/,I=/\d{3}/,J=/\d{4}/,K=/[+-]?\d{6}/,L=/[+-]?\d+/,M=/^\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)?)?$/,N="YYYY-MM-DDTHH:mm:ssZ",O=[["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}/]],P=[["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/]],Q=/([\+\-]|\d\d)/gi,R="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),S={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},T={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"},U={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},V={},W={s:45,m:45,h:22,dd:25,dm:45,dy:345},X="DDD w W M D d".split(" "),Y="M D H h m s w W".split(" "),Z={M:function(){return this.month()+1},MMM:function(a){return this.lang().monthsShort(this,a)},MMMM:function(a){return this.lang().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.lang().weekdaysMin(this,a)},ddd:function(a){return this.lang().weekdaysShort(this,a)},dddd:function(a){return this.lang().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return ka(this.year()%100,2)},YYYY:function(){return ka(this.year(),4)},YYYYY:function(){return ka(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+ka(Math.abs(a),6)},gg:function(){return ka(this.weekYear()%100,2)},gggg:function(){return ka(this.weekYear(),4)},ggggg:function(){return ka(this.weekYear(),5)},GG:function(){return ka(this.isoWeekYear()%100,2)},GGGG:function(){return ka(this.isoWeekYear(),4)},GGGGG:function(){return ka(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 sa(this.milliseconds()/100)},SS:function(){return ka(sa(this.milliseconds()/10),2)},SSS:function(){return ka(this.milliseconds(),3)},SSSS:function(){return ka(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-"}return b+ka(sa(a/60),2)+":"+ka(sa(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-"}return b+ka(sa(a/60),2)+ka(sa(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},$=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];function _(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 aa(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false}}function ba(a,c){var d=true;function e(){if(b.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+a)}}return ha(function(){if(d){e();d=false}return c.apply(this,arguments)},c)}function ca(a,b){return function(c){return ka(a.call(this,c),b)}}function da(a,b){return function(c){return this.lang().ordinal(a.call(this,c),b)}}while(X.length){g=X.pop();Z[g+"o"]=da(Z[g],g)}while(Y.length){g=Y.pop();Z[g+g]=ca(Z[g],2)}Z.DDDD=ca(Z.DDD,3);function ea(){}function fa(a){xa(a);ha(this,a)}function ga(a){var b=qa(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+j*1e3+i*6e4+h*36e5;this._days=+g+f*7;this._months=+e+d*3+c*12;this._data={};this._bubble()}function ha(a,b){for(var c in b){if(b.hasOwnProperty(c)){a[c]=b[c]}}if(b.hasOwnProperty("toString")){a.toString=b.toString}if(b.hasOwnProperty("valueOf")){a.valueOf=b.valueOf}return a}function ia(a){var b={},c;for(c in a){if(a.hasOwnProperty(c)&&p.hasOwnProperty(c)){b[c]=a[c]}}return b}function ja(a){if(a<0){return Math.ceil(a)}else{return Math.floor(a)}}function ka(a,b,c){var d=""+Math.abs(a),e=a>=0;while(d.length<b){d="0"+d}return(e?c?"+":"":"-")+d}function la(a,c,d,e){var f=c._milliseconds,g=c._days,h=c._months;e=e==null?true:e;if(f){a._d.setTime(+a._d+f*d)}if(g){fb(a,"Date",eb(a,"Date")+g*d)}if(h){db(a,eb(a,"Month")+h*d)}if(e){b.updateOffset(a,g||h)}}function ma(a){return Object.prototype.toString.call(a)==="[object Array]"}function na(a){return Object.prototype.toString.call(a)==="[object Date]"||a instanceof Date}function oa(a,b,c){var d=Math.min(a.length,b.length),e=Math.abs(a.length-b.length),f=0,g;for(g=0;g<d;g++){if(c&&a[g]!==b[g]||!c&&sa(a[g])!==sa(b[g])){f++}}return f+e}function pa(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=T[a]||U[b]||b}return a}function qa(a){var b={},c,d;for(d in a){if(a.hasOwnProperty(d)){c=pa(d);if(c){b[c]=a[d]}}}return b}function ra(c){var d,e;if(c.indexOf("week")===0){d=7;e="day"}else if(c.indexOf("month")===0){d=12;e="month"}else{return}b[c]=function(f,g){var h,i,j=b.fn._lang[c],k=[];if(typeof f==="number"){g=f;f=a}i=function(a){var c=b().utc().set(e,a);return j.call(b.fn._lang,c,f||"")};if(g!=null){return i(g)}else{for(h=0;h<d;h++){k.push(i(h))}return k}}}function sa(a){var b=+a,c=0;if(b!==0&&isFinite(b)){if(b>=0){c=Math.floor(b)}else{c=Math.ceil(b)}}return c}function ta(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function ua(a,c,d){return _a(b([a,11,31+c-d]),c,d).week}function va(a){return wa(a)?366:365}function wa(a){return a%4===0&&a%100!==0||a%400===0}function xa(a){var b;if(a._a&&a._pf.overflow===-2){b=a._a[i]<0||a._a[i]>11?i:a._a[j]<1||a._a[j]>ta(a._a[h],a._a[i])?j:a._a[k]<0||a._a[k]>23?k:a._a[l]<0||a._a[l]>59?l:a._a[m]<0||a._a[m]>59?m:a._a[n]<0||a._a[n]>999?n:-1;if(a._pf._overflowDayOfYear&&(b<h||b>j)){b=j}a._pf.overflow=b}}function ya(a){if(a._isValid==null){a._isValid=!isNaN(a._d.getTime())&&a._pf.overflow<0&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated;if(a._strict){a._isValid=a._isValid&&a._pf.charsLeftOver===0&&a._pf.unusedTokens.length===0}}return a._isValid}function za(a){return a?a.toLowerCase().replace("_","-"):a}function Aa(a,c){return c._isUTC?b(a).zone(c._offset||0):b(a).local()}ha(ea.prototype,{set:function(a){var b,c;for(c in a){b=a[c];if(typeof b==="function"){this[c]=b}else{this["_"+c]=b}}},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var c,d,e;if(!this._monthsParse){this._monthsParse=[]}for(c=0;c<12;c++){if(!this._monthsParse[c]){d=b.utc([2e3,c]);e="^"+this.months(d,"")+"|^"+this.monthsShort(d,"");this._monthsParse[c]=new RegExp(e.replace(".",""),"i")}if(this._monthsParse[c].test(a)){return c}}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var c,d,e;if(!this._weekdaysParse){this._weekdaysParse=[]}for(c=0;c<7;c++){if(!this._weekdaysParse[c]){d=b([2e3,1]).day(c);e="^"+this.weekdays(d,"")+"|^"+this.weekdaysShort(d,"")+"|^"+this.weekdaysMin(d,"");this._weekdaysParse[c]=new RegExp(e.replace(".",""),"i")}if(this._weekdaysParse[c].test(a)){return c}}},_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(a){var b=this._longDateFormat[a];if(!b&&this._longDateFormat[a.toUpperCase()]){b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)});this._longDateFormat[a]=b}return b},isPM:function(a){return(a+"").toLowerCase().charAt(0)==="p"},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){if(a>11){return c?"pm":"PM"}else{return c?"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(a,b){var c=this._calendar[a];return typeof c==="function"?c.apply(b):c},_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(a,b,c,d){var e=this._relativeTime[c];return typeof e==="function"?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return typeof c==="function"?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",preparse:function(a){return a},postformat:function(a){return a},week:function(a){return _a(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}});function Ba(a,b){b.abbr=a;if(!o[a]){o[a]=new ea}o[a].set(b);return o[a]}function Ca(a){delete o[a]}function Da(a){var c=0,d,e,f,g,h=function(a){if(!o[a]&&q){try{require("./lang/"+a)}catch(a){}}return o[a]};if(!a){return b.fn._lang}if(!ma(a)){e=h(a);if(e){return e}a=[a]}while(c<a.length){g=za(a[c]).split("-");d=g.length;f=za(a[c+1]);f=f?f.split("-"):null;while(d>0){e=h(g.slice(0,d).join("-"));if(e){return e}if(f&&f.length>=d&&oa(g,f,true)>=d-1){break}d--}c++}return b.fn._lang}function Ea(a){if(a.match(/\[[\s\S]/)){return a.replace(/^\[|\]$/g,"")}return a.replace(/\\/g,"")}function Fa(a){var b=a.match(u),c,d;for(c=0,d=b.length;c<d;c++){if(Z[b[c]]){b[c]=Z[b[c]]}else{b[c]=Ea(b[c])}}return function(e){var f="";for(c=0;c<d;c++){f+=b[c]instanceof Function?b[c].call(e,a):b[c]}return f}}function Ga(a,b){if(!a.isValid()){return a.lang().invalidDate()}b=Ha(b,a.lang());if(!V[b]){V[b]=Fa(b)}return V[b](a)}function Ha(a,b){var c=5;function d(a){return b.longDateFormat(a)||a}v.lastIndex=0;while(c>=0&&v.test(a)){a=a.replace(v,d);v.lastIndex=0;c-=1}return a}function Ia(a,b){var c,d=b._strict;switch(a){case"Q":return G;case"DDDD":return I;case"YYYY":case"GGGG":case"gggg":return d?J:y;case"Y":case"G":case"g":return L;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?K:z;case"S":if(d){return G}case"SS":if(d){return H}case"SSS":if(d){return I}case"DDD":return x;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return B;case"a":case"A":return Da(b._l)._meridiemParse;case"X":return E;case"Z":case"ZZ":return C;case"T":return D;case"SSSS":return A;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?H:w;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return w;case"Do":return F;default:c=new RegExp(Ra(Qa(a.replace("\\","")),"i"));return c}}function Ja(a){a=a||"";var b=a.match(C)||[],c=b[b.length-1]||[],d=(c+"").match(Q)||["-",0,0],e=+(d[1]*60)+sa(d[2]);return d[0]==="+"?-e:e}function Ka(a,c,d){var e,f=d._a;switch(a){case"Q":if(c!=null){f[i]=(sa(c)-1)*3}break;case"M":case"MM":if(c!=null){f[i]=sa(c)-1}break;case"MMM":case"MMMM":e=Da(d._l).monthsParse(c);if(e!=null){f[i]=e}else{d._pf.invalidMonth=c}break;case"D":case"DD":if(c!=null){f[j]=sa(c)}break;case"Do":if(c!=null){f[j]=sa(parseInt(c,10))}break;case"DDD":case"DDDD":if(c!=null){d._dayOfYear=sa(c)}break;case"YY":f[h]=b.parseTwoDigitYear(c);break;case"YYYY":case"YYYYY":case"YYYYYY":f[h]=sa(c);break;case"a":case"A":d._isPm=Da(d._l).isPM(c);break;case"H":case"HH":case"h":case"hh":f[k]=sa(c);break;case"m":case"mm":f[l]=sa(c);break;case"s":case"ss":f[m]=sa(c);break;case"S":case"SS":case"SSS":case"SSSS":f[n]=sa(("0."+c)*1e3);break;case"X":d._d=new Date(parseFloat(c)*1e3);break;case"Z":case"ZZ":d._useUTC=true;d._tzm=Ja(c);break;case"dd":case"ddd":case"dddd":e=Da(d._l).weekdaysParse(c);if(e!=null){d._w=d._w||{};d._w["d"]=e}else{d._pf.invalidWeekday=c}break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2);if(c){d._w=d._w||{};d._w[a]=sa(c)}break;case"gg":case"GG":d._w=d._w||{};d._w[a]=b.parseTwoDigitYear(c)}}function La(a){var c,d,e,f,g,i,j,k;c=a._w;if(c.GG!=null||c.W!=null||c.E!=null){g=1;i=4;d=_(c.GG,a._a[h],_a(b(),1,4).year);e=_(c.W,1);f=_(c.E,1)}else{k=Da(a._l);g=k._week.dow;i=k._week.doy;d=_(c.gg,a._a[h],_a(b(),g,i).year);e=_(c.w,1);if(c.d!=null){f=c.d;if(f<g){++e}}else if(c.e!=null){f=c.e+g}else{f=g}}j=ab(d,e,f,i,g);a._a[h]=j.year;a._dayOfYear=j.dayOfYear}function Ma(a){var b,c,d=[],e,f;if(a._d){return}e=Oa(a);if(a._w&&a._a[j]==null&&a._a[i]==null){La(a)}if(a._dayOfYear){f=_(a._a[h],e[h]);if(a._dayOfYear>va(f)){a._pf._overflowDayOfYear=true}c=Xa(f,0,a._dayOfYear);a._a[i]=c.getUTCMonth();a._a[j]=c.getUTCDate()}for(b=0;b<3&&a._a[b]==null;++b){a._a[b]=d[b]=e[b]}for(;b<7;b++){a._a[b]=d[b]=a._a[b]==null?b===2?1:0:a._a[b]}a._d=(a._useUTC?Xa:Wa).apply(null,d);if(a._tzm!=null){a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm)}}function Na(a){var b;if(a._d){return}b=qa(a._i);a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond];Ma(a)}function Oa(a){var b=new Date;if(a._useUTC){return[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]}else{return[b.getFullYear(),b.getMonth(),b.getDate()]}}function Pa(a){if(a._f===b.ISO_8601){Ta(a);return}a._a=[];a._pf.empty=true;var c=Da(a._l),d=""+a._i,e,f,g,h,i,j=d.length,l=0;g=Ha(a._f,c).match(u)||[];for(e=0;e<g.length;e++){h=g[e];f=(d.match(Ia(h,a))||[])[0];if(f){i=d.substr(0,d.indexOf(f));if(i.length>0){a._pf.unusedInput.push(i)}d=d.slice(d.indexOf(f)+f.length);l+=f.length}if(Z[h]){if(f){a._pf.empty=false}else{a._pf.unusedTokens.push(h)}Ka(h,f,a)}else if(a._strict&&!f){a._pf.unusedTokens.push(h)}}a._pf.charsLeftOver=j-l;if(d.length>0){a._pf.unusedInput.push(d)}if(a._isPm&&a._a[k]<12){a._a[k]+=12}if(a._isPm===false&&a._a[k]===12){a._a[k]=0}Ma(a);xa(a)}function Qa(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function Ra(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Sa(a){var b,c,d,e,f;if(a._f.length===0){a._pf.invalidFormat=true;a._d=new Date(NaN);return}for(e=0;e<a._f.length;e++){f=0;b=ha({},a);b._pf=aa();b._f=a._f[e];Pa(b);if(!ya(b)){continue}f+=b._pf.charsLeftOver;f+=b._pf.unusedTokens.length*10;b._pf.score=f;if(d==null||f<d){d=f;c=b}}ha(a,c||b)}function Ta(a){var b,c,d=a._i,e=M.exec(d);if(e){a._pf.iso=true;for(b=0,c=O.length;b<c;b++){if(O[b][1].exec(d)){a._f=O[b][0]+(e[6]||" ");break}}for(b=0,c=P.length;b<c;b++){if(P[b][1].exec(d)){a._f+=P[b][0];break}}if(d.match(C)){a._f+="Z"}Pa(a)}else{a._isValid=false}}function Ua(a){Ta(a);if(a._isValid===false){delete a._isValid;b.createFromInputFallback(a)}}function Va(c){var d=c._i,e=r.exec(d);if(d===a){c._d=new Date}else if(e){c._d=new Date(+e[1])}else if(typeof d==="string"){Ua(c)}else if(ma(d)){c._a=d.slice(0);Ma(c)}else if(na(d)){c._d=new Date(+d)}else if(typeof d==="object"){Na(c)}else if(typeof d==="number"){c._d=new Date(d)}else{b.createFromInputFallback(c)}}function Wa(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);if(a<1970){h.setFullYear(a)}return h}function Xa(a){var b=new Date(Date.UTC.apply(null,arguments));if(a<1970){b.setUTCFullYear(a)}return b}function Ya(a,b){if(typeof a==="string"){if(!isNaN(a)){a=parseInt(a,10)}else{a=b.weekdaysParse(a);if(typeof a!=="number"){return null}}}return a}function Za(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function $a(a,b,c){var d=f(Math.abs(a)/1e3),e=f(d/60),g=f(e/60),h=f(g/24),i=f(h/365),j=d<W.s&&["s",d]||e===1&&["m"]||e<W.m&&["mm",e]||g===1&&["h"]||g<W.h&&["hh",g]||h===1&&["d"]||h<=W.dd&&["dd",h]||h<=W.dm&&["M"]||h<W.dy&&["MM",f(h/30)]||i===1&&["y"]||["yy",i];j[2]=b;j[3]=a>0;j[4]=c;return Za.apply({},j)}function _a(a,c,d){var e=d-c,f=d-a.day(),g;if(f>e){f-=7}if(f<e-7){f+=7}g=b(a).add("d",f);return{week:Math.ceil(g.dayOfYear()/7),year:g.year()}}function ab(a,b,c,d,e){var f=Xa(a,0,1).getUTCDay(),g,h;f=f===0?7:f;c=c!=null?c:e;g=e-f+(f>d?7:0)-(f<e?7:0);h=7*(b-1)+(c-e)+g+1;return{year:h>0?a:a-1,dayOfYear:h>0?h:va(a-1)+h}}function bb(c){var d=c._i,e=c._f;if(d===null||e===a&&d===""){return b.invalid({nullInput:true})}if(typeof d==="string"){c._i=d=Da().preparse(d)}if(b.isMoment(d)){c=ia(d);c._d=new Date(+d._d)}else if(e){if(ma(e)){Sa(c)}else{Pa(c)}}else{Va(c)}return new fa(c)}b=function(b,c,d,e){var f;if(typeof d==="boolean"){e=d;d=a}f={};f._isAMomentObject=true;f._i=b;f._f=c;f._l=d;f._strict=e;f._isUTC=false;f._pf=aa();return bb(f)};b.suppressDeprecationWarnings=false;b.createFromInputFallback=ba("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(a){a._d=new Date(a._i)});function cb(a,c){var d,e;if(c.length===1&&ma(c[0])){c=c[0]}if(!c.length){return b()}d=c[0];for(e=1;e<c.length;++e){if(c[e][a](d)){d=c[e]}}return d}b.min=function(){var a=[].slice.call(arguments,0);return cb("isBefore",a)};b.max=function(){var a=[].slice.call(arguments,0);return cb("isAfter",a)};b.utc=function(b,c,d,e){var f;if(typeof d==="boolean"){e=d;d=a}f={};f._isAMomentObject=true;f._useUTC=true;f._isUTC=true;f._l=d;f._i=b;f._f=c;f._strict=e;f._pf=aa();return bb(f).utc()};b.unix=function(a){return b(a*1e3)};b.duration=function(a,c){var d=a,e=null,f,g,h;if(b.isDuration(a)){d={ms:a._milliseconds,d:a._days,M:a._months}}else if(typeof a==="number"){d={};if(c){d[c]=a}else{d.milliseconds=a}}else if(!!(e=s.exec(a))){f=e[1]==="-"?-1:1;d={y:0,d:sa(e[j])*f,h:sa(e[k])*f,m:sa(e[l])*f,s:sa(e[m])*f,ms:sa(e[n])*f}}else if(!!(e=t.exec(a))){f=e[1]==="-"?-1:1;h=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*f};d={y:h(e[2]),M:h(e[3]),d:h(e[4]),h:h(e[5]),m:h(e[6]),s:h(e[7]),w:h(e[8])}}g=new ga(d);if(b.isDuration(a)&&a.hasOwnProperty("_lang")){g._lang=a._lang}return g};b.version=c;b.defaultFormat=N;b.ISO_8601=function(){};b.momentProperties=p;b.updateOffset=function(){};b.relativeTimeThreshold=function(b,c){if(W[b]===a){return false}W[b]=c;return true};b.lang=function(a,c){var d;if(!a){return b.fn._lang._abbr}if(c){Ba(za(a),c)}else if(c===null){Ca(a);a="en"}else if(!o[a]){Da(a)}d=b.duration.fn._lang=b.fn._lang=Da(a);return d._abbr};b.langData=function(a){if(a&&a._lang&&a._lang._abbr){a=a._lang._abbr}return Da(a)};b.isMoment=function(a){return a instanceof fa||a!=null&&a.hasOwnProperty("_isAMomentObject")};b.isDuration=function(a){return a instanceof ga};for(g=$.length-1;g>=0;--g){ra($[g])}b.normalizeUnits=function(a){return pa(a)};b.invalid=function(a){var c=b.utc(NaN);if(a!=null){ha(c._pf,a)}else{c._pf.userInvalidated=true}return c};b.parseZone=function(){return b.apply(null,arguments).parseZone()};b.parseTwoDigitYear=function(a){return sa(a)+(sa(a)>68?1900:2e3)};ha(b.fn=fa.prototype,{clone:function(){return b(this)},valueOf:function(){return+this._d+(this._offset||0)*6e4},unix:function(){return Math.floor(+this/1e3)},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 a=b(this).utc();if(0<a.year()&&a.year()<=9999){return Ga(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}else{return Ga(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return ya(this)},isDSTShifted:function(){if(this._a){return this.isValid()&&oa(this._a,(this._isUTC?b.utc(this._a):b(this._a)).toArray())>0}return false},parsingFlags:function(){return ha({},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(a){var c=Ga(this,a||b.defaultFormat);return this.lang().postformat(c)},add:function(a,c){var d;if(typeof a==="string"&&typeof c==="string"){d=b.duration(isNaN(+c)?+a:+c,isNaN(+c)?c:a)}else if(typeof a==="string"){d=b.duration(+c,a)}else{d=b.duration(a,c)}la(this,d,1);return this},subtract:function(a,c){var d;if(typeof a==="string"&&typeof c==="string"){d=b.duration(isNaN(+c)?+a:+c,isNaN(+c)?c:a)}else if(typeof a==="string"){d=b.duration(+c,a)}else{d=b.duration(a,c)}la(this,d,-1);return this},diff:function(a,c,d){var e=Aa(a,this),f=(this.zone()-e.zone())*6e4,g,h;c=pa(c);if(c==="year"||c==="month"){g=(this.daysInMonth()+e.daysInMonth())*432e5;h=(this.year()-e.year())*12+(this.month()-e.month());h+=(this-b(this).startOf("month")-(e-b(e).startOf("month")))/g;h-=(this.zone()-b(this).startOf("month").zone()-(e.zone()-b(e).startOf("month").zone()))*6e4/g;if(c==="year"){h=h/12}}else{g=this-e;h=c==="second"?g/1e3:c==="minute"?g/6e4:c==="hour"?g/36e5:c==="day"?(g-f)/864e5:c==="week"?(g-f)/6048e5:g}return d?h:ja(h)},from:function(a,c){return b.duration(this.diff(a)).lang(this.lang()._abbr).humanize(!c)},fromNow:function(a){return this.from(b(),a)},calendar:function(a){var c=a||b(),d=Aa(c,this).startOf("day"),e=this.diff(d,"days",true),f=e<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse";return this.format(this.lang().calendar(f,this))},isLeapYear:function(){return wa(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();if(a!=null){a=Ya(a,this.lang());return this.add({d:a-b})}else{return b}},month:gb("Month",true),startOf:function(a){a=pa(a);switch(a){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}if(a==="week"){this.weekday(0)}else if(a==="isoWeek"){this.isoWeekday(1)}if(a==="quarter"){this.month(Math.floor(this.month()/3)*3)}return this},endOf:function(a){a=pa(a);return this.startOf(a).add(a==="isoWeek"?"week":a,1).subtract("ms",1)},isAfter:function(a,c){c=typeof c!=="undefined"?c:"millisecond";return+this.clone().startOf(c)>+b(a).startOf(c)},isBefore:function(a,c){c=typeof c!=="undefined"?c:"millisecond";return+this.clone().startOf(c)<+b(a).startOf(c)},isSame:function(a,b){b=b||"ms";return+this.clone().startOf(b)===+Aa(a,this).startOf(b)},min:ba("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){a=b.apply(null,arguments);return a<this?this:a}),max:ba("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){a=b.apply(null,arguments);return a>this?this:a}),zone:function(a,c){var d=this._offset||0;if(a!=null){if(typeof a==="string"){a=Ja(a)}if(Math.abs(a)<16){a=a*60}this._offset=a;this._isUTC=true;if(d!==a){if(!c||this._changeInProgress){la(this,b.duration(d-a,"m"),1,false)}else if(!this._changeInProgress){this._changeInProgress=true;b.updateOffset(this,true);this._changeInProgress=null}}}else{return this._isUTC?d: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(a){if(!a){a=0}else{a=b(a).zone()}return(this.zone()-a)%60===0},daysInMonth:function(){return ta(this.year(),this.month())},dayOfYear:function(a){var c=f((b(this).startOf("day")-b(this).startOf("year"))/864e5)+1;return a==null?c:this.add("d",a-c)},quarter:function(a){return a==null?Math.ceil((this.month()+1)/3):this.month((a-1)*3+this.month()%3)},weekYear:function(a){var b=_a(this,this.lang()._week.dow,this.lang()._week.doy).year;return a==null?b:this.add("y",a-b)},isoWeekYear:function(a){var b=_a(this,1,4).year;return a==null?b:this.add("y",a-b)},week:function(a){var b=this.lang().week(this);return a==null?b:this.add("d",(a-b)*7)},isoWeek:function(a){var b=_a(this,1,4).week;return a==null?b:this.add("d",(a-b)*7)},weekday:function(a){var b=(this.day()+7-this.lang()._week.dow)%7;return a==null?b:this.add("d",a-b)},isoWeekday:function(a){return a==null?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return ua(this.year(),1,4)},weeksInYear:function(){var a=this._lang._week;return ua(this.year(),a.dow,a.doy)},get:function(a){a=pa(a);return this[a]()},set:function(a,b){a=pa(a);if(typeof this[a]==="function"){this[a](b)}return this},lang:function(b){if(b===a){return this._lang}else{this._lang=Da(b);return this}}});function db(a,b){var c;if(typeof b==="string"){b=a.lang().monthsParse(b);if(typeof b!=="number"){return a}}c=Math.min(a.date(),ta(a.year(),b));a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c);return a}function eb(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function fb(a,b,c){if(b==="Month"){return db(a,c)}else{return a._d["set"+(a._isUTC?"UTC":"")+b](c)}}function gb(a,c){return function(d){if(d!=null){fb(this,a,d);b.updateOffset(this,c);return this}else{return eb(this,a)}}}b.fn.millisecond=b.fn.milliseconds=gb("Milliseconds",false);b.fn.second=b.fn.seconds=gb("Seconds",false);b.fn.minute=b.fn.minutes=gb("Minutes",false);b.fn.hour=b.fn.hours=gb("Hours",true);b.fn.date=gb("Date",true);b.fn.dates=ba("dates accessor is deprecated. Use date instead.",gb("Date",true));b.fn.year=gb("FullYear",true);b.fn.years=ba("years accessor is deprecated. Use year instead.",gb("FullYear",true));b.fn.days=b.fn.day;b.fn.months=b.fn.month;b.fn.weeks=b.fn.week;b.fn.isoWeeks=b.fn.isoWeek;b.fn.quarters=b.fn.quarter;b.fn.toJSON=b.fn.toISOString;ha(b.duration.fn=ga.prototype,{_bubble:function(){var a=this._milliseconds,b=this._days,c=this._months,d=this._data,e,f,g,h;d.milliseconds=a%1e3;e=ja(a/1e3);d.seconds=e%60;f=ja(e/60);d.minutes=f%60;g=ja(f/60);d.hours=g%24;b+=ja(g/24);d.days=b%30;c+=ja(b/30);d.months=c%12;h=ja(c/12);d.years=h},weeks:function(){return ja(this.days()/7)},valueOf:function(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+sa(this._months/12)*31536e6},humanize:function(a){var b=+this,c=$a(b,!a,this.lang());if(a){c=this.lang().pastFuture(b,c)}return this.lang().postformat(c)},add:function(a,c){var d=b.duration(a,c);this._milliseconds+=d._milliseconds;this._days+=d._days;this._months+=d._months;this._bubble();return this},subtract:function(a,c){var d=b.duration(a,c);this._milliseconds-=d._milliseconds;this._days-=d._days;this._months-=d._months;this._bubble();return this},get:function(a){a=pa(a);return this[a.toLowerCase()+"s"]()},as:function(a){a=pa(a);return this["as"+a.charAt(0).toUpperCase()+a.slice(1)+"s"]()},lang:b.fn.lang,toIsoString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);if(!this.asSeconds()){return"P0D"}return(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":"")}});function hb(a){b.duration.fn[a]=function(){return this._data[a]}}function ib(a,c){b.duration.fn["as"+a]=function(){return+this/c}}for(g in S){if(S.hasOwnProperty(g)){ib(g,S[g]);hb(g.toLowerCase())}}ib("Weeks",6048e5);b.duration.fn.asMonths=function(){return(+this-this.years()*31536e6)/2592e6+this.years()*12};b.lang("en",{ordinal:function(a){var b=a%10,c=sa(a%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th";return a+c}});function jb(a){if(typeof ender!=="undefined"){return}e=d.moment;if(a){d.moment=ba("Accessing Moment through the global scope is "+"deprecated, and will be removed in an upcoming "+"release.",b)}else{d.moment=b}}if(q){module.exports=b}else if(typeof define==="function"&&define.amd){define("moment",function(a,c,f){if(f.config&&f.config()&&f.config().noGlobal===true){d.moment=e}return b});jb(true)}else{jb()}}).call(this);(function(a,b){var c="granted",d="denied",e="unknown";var f=[],g,h=0;function i(a){if(f.length===0){f=[b.title]}f.push(a);if(!g){g=setInterval(function(){if(f.indexOf(b.title)===-1){f[0]=b.title}b.title=f[++h%f.length]},1e3)}}function j(){if(f.length===0){return}if("external"in a&&"msSiteModeClearIconOverlay"in a.external){a.external.msSiteModeClearIconOverlay()}clearInterval(g);g=false;b.title=f[0];f=[]}function k(a,b,c){if(b.match(" ")){var d=b.split(" ");for(var e=0;e<d.length;e++){k(a,d[e],c)}}if(a.addEventListener){a.removeEventListener(b,c,false);a.addEventListener(b,c,false)}else{a.detachEvent("on"+b,c);a.attachEvent("on"+b,c)}}function l(){if("external"in a&&"msIsSiteMode"in a.external){return a.external.msIsSiteMode()?c:e}else if("webkitNotifications"in a){return a.webkitNotifications.checkPermission()===0?c:d}else if("mozNotification"in a.navigator){return c}else{return e}}function m(){a.Notification.permission=l();return a.Notification.permission}if(!Object(a.Notification).permission){k(a,"focus scroll click",j);a.Notification=function(b,c){if(!(this instanceof a.Notification)){return new a.Notification(b,c)}var d,e=this;c=c||{};this.body=c.body||"";this.icon=c.icon||"";this.lang=c.lang||"";this.tag=c.tag||"";this.close=function(){j();if(Object(d).close){d.close()}e.onclose()};this.onclick=function(){};this.onclose=function(){};i(b);if("external"in a&&"msIsSiteMode"in a.external){if(a.external.msIsSiteMode()){a.external.msSiteModeActivate();if(this.icon){a.external.msSiteModeSetIconOverlay(this.icon,b)}}}else if("webkitNotifications"in a){if(a.webkitNotifications.checkPermission()===0){d=a.webkitNotifications.createNotification(this.icon,b,this.body);d.show();d.onclick=function(){e.onclick();a.focus();setTimeout(function(){d.cancel()},1e3)}}}else if("mozNotification"in a.navigator){var f=a.navigator.mozNotification.createNotification(b,this.body,this.icon);f.show()}};a.Notification.requestPermission=function(b){b=b||function(){};if("external"in a&&"msIsSiteMode"in a.external){try{if(!a.external.msIsSiteMode()){a.external.msAddSiteMode();b(e)}}catch(a){}b(m())}else if("webkitNotifications"in a){a.webkitNotifications.requestPermission(function(){b(m())})}else{b(m())}};m()}})(window,document);!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.io=a():"undefined"!=typeof global?global.io=a():"undefined"!=typeof self&&(self.io=a())}(function(){var a,b,c;return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}var f=typeof require=="function"&&require;for(var g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){b.exports=a("./lib/")},{"./lib/":2}],2:[function(a,b,c){var d=a("./url");var e=a("socket.io-parser");var f=a("./manager");var g=a("debug")("socket.io-client");b.exports=c=i;var h=c.managers={};function i(a,b){if(typeof a=="object"){b=a;a=undefined}b=b||{};var c=d(a);var e=c.source;var i=c.id;var j;if(b.forceNew||b["force new connection"]||false===b.multiplex){g("ignoring socket cache for %s",e);j=f(e,b)}else{if(!h[i]){g("new io instance for %s",e);h[i]=f(e,b)}j=h[i]}return j.socket(c.path)}c.protocol=e.protocol;c.connect=i;c.Manager=a("./manager");c.Socket=a("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:9,"socket.io-parser":40}],3:[function(a,b,c){var d=a("./url");var e=a("engine.io-client");var f=a("./socket");var g=a("component-emitter");var h=a("socket.io-parser");var i=a("./on");var j=a("component-bind");var k=a("object-component");var l=a("debug")("socket.io-client:manager");b.exports=m;function m(a,b){if(!(this instanceof m))return new m(a,b);if(a&&"object"==typeof a){b=a;a=undefined}b=b||{};b.path=b.path||"/socket.io";this.nsps={};this.subs=[];this.opts=b;this.reconnection(b.reconnection!==false);this.reconnectionAttempts(b.reconnectionAttempts||Infinity);this.reconnectionDelay(b.reconnectionDelay||1e3);this.reconnectionDelayMax(b.reconnectionDelayMax||5e3);this.timeout(null==b.timeout?2e4:b.timeout);this.readyState="closed";this.uri=a;this.connected=0;this.attempts=0;this.encoding=false;this.packetBuffer=[];this.encoder=new h.Encoder;this.decoder=new h.Decoder;this.open()}m.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var a in this.nsps){this.nsps[a].emit.apply(this.nsps[a],arguments)}};g(m.prototype);m.prototype.reconnection=function(a){if(!arguments.length)return this._reconnection;this._reconnection=!!a;return this};m.prototype.reconnectionAttempts=function(a){if(!arguments.length)return this._reconnectionAttempts;this._reconnectionAttempts=a;return this};m.prototype.reconnectionDelay=function(a){if(!arguments.length)return this._reconnectionDelay;this._reconnectionDelay=a;return this};m.prototype.reconnectionDelayMax=function(a){if(!arguments.length)return this._reconnectionDelayMax;this._reconnectionDelayMax=a;return this};m.prototype.timeout=function(a){if(!arguments.length)return this._timeout;this._timeout=a;return this};m.prototype.maybeReconnectOnOpen=function(){if(!this.openReconnect&&!this.reconnecting&&this._reconnection){this.openReconnect=true;this.reconnect()}};m.prototype.open=m.prototype.connect=function(a){l("readyState %s",this.readyState);if(~this.readyState.indexOf("open"))return this;l("opening %s",this.uri);this.engine=e(this.uri,this.opts);var b=this.engine;var c=this;this.readyState="opening";var d=i(b,"open",function(){c.onopen();a&&a()});var f=i(b,"error",function(b){l("connect_error");c.cleanup();c.readyState="closed";c.emitAll("connect_error",b);if(a){var d=new Error("Connection error");d.data=b;a(d)}c.maybeReconnectOnOpen()});if(false!==this._timeout){var g=this._timeout;l("connect attempt will timeout after %d",g);var h=setTimeout(function(){l("connect attempt timed out after %d",g);d.destroy();b.close();b.emit("error","timeout");c.emitAll("connect_timeout",g)},g);this.subs.push({destroy:function(){clearTimeout(h)}})}this.subs.push(d);this.subs.push(f);return this};m.prototype.onopen=function(){l("open");this.cleanup();this.readyState="open";this.emit("open");var a=this.engine;this.subs.push(i(a,"data",j(this,"ondata")));this.subs.push(i(this.decoder,"decoded",j(this,"ondecoded")));this.subs.push(i(a,"error",j(this,"onerror")));this.subs.push(i(a,"close",j(this,"onclose")))};m.prototype.ondata=function(a){this.decoder.add(a)};m.prototype.ondecoded=function(a){this.emit("packet",a)};m.prototype.onerror=function(a){l("error",a);this.emitAll("error",a)};m.prototype.socket=function(a){var b=this.nsps[a];if(!b){b=new f(this,a);this.nsps[a]=b;var c=this;b.on("connect",function(){c.connected++})}return b};m.prototype.destroy=function(a){--this.connected||this.close()};m.prototype.packet=function(a){l("writing packet %j",a);var b=this;if(!b.encoding){b.encoding=true;this.encoder.encode(a,function(a){for(var c=0;c<a.length;c++){b.engine.write(a[c])}b.encoding=false;b.processPacketQueue()})}else{b.packetBuffer.push(a)}};m.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var a=this.packetBuffer.shift();this.packet(a)}};m.prototype.cleanup=function(){var a;while(a=this.subs.shift())a.destroy();this.packetBuffer=[];this.encoding=false;this.decoder.destroy()};m.prototype.close=m.prototype.disconnect=function(){this.skipReconnect=true;this.engine.close()};m.prototype.onclose=function(a){l("close");this.cleanup();this.readyState="closed";this.emit("close",a);if(this._reconnection&&!this.skipReconnect){this.reconnect()}};m.prototype.reconnect=function(){if(this.reconnecting)return this;var a=this;this.attempts++;if(this.attempts>this._reconnectionAttempts){l("reconnect failed");this.emitAll("reconnect_failed");this.reconnecting=false}else{var b=this.attempts*this.reconnectionDelay();b=Math.min(b,this.reconnectionDelayMax());l("will wait %dms before reconnect attempt",b);this.reconnecting=true;var c=setTimeout(function(){l("attempting reconnect");a.emitAll("reconnect_attempt",a.attempts);a.emitAll("reconnecting",a.attempts);a.open(function(b){if(b){l("reconnect attempt error");a.reconnecting=false;a.reconnect();a.emitAll("reconnect_error",b.data)}else{l("reconnect success");a.onreconnect()}})},b);this.subs.push({destroy:function(){clearTimeout(c)}})}};m.prototype.onreconnect=function(){var a=this.attempts;this.attempts=0;this.reconnecting=false;this.emitAll("reconnect",a)}},{"./on":4,"./socket":5,"./url":6,"component-bind":7,"component-emitter":8,debug:9,"engine.io-client":11,"object-component":37,"socket.io-parser":40}],4:[function(a,b,c){b.exports=d;function d(a,b,c){a.on(b,c);return{destroy:function(){a.removeListener(b,c)}}}},{}],5:[function(a,b,c){var d=a("socket.io-parser");var e=a("component-emitter");var f=a("to-array");var g=a("./on");var h=a("component-bind");var i=a("debug")("socket.io-client:socket");var j=a("has-binary-data");var k=a("indexof");b.exports=c=n;var l={connect:1,connect_error:1,connect_timeout:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1};var m=e.prototype.emit;function n(a,b){this.io=a;this.nsp=b;this.json=this;this.ids=0;this.acks={};this.open();this.receiveBuffer=[];this.sendBuffer=[];this.connected=false;this.disconnected=true;this.subEvents()}e(n.prototype);n.prototype.subEvents=function(){var a=this.io;this.subs=[g(a,"open",h(this,"onopen")),g(a,"packet",h(this,"onpacket")),g(a,"close",h(this,"onclose"))]};n.prototype.open=n.prototype.connect=function(){if(this.connected)return this;this.io.open();if("open"==this.io.readyState)this.onopen();return this};n.prototype.send=function(){var a=f(arguments);a.unshift("message");this.emit.apply(this,a);return this};n.prototype.emit=function(a){if(l.hasOwnProperty(a)){m.apply(this,arguments);return this}var b=f(arguments);var c=d.EVENT;if(j(b)){c=d.BINARY_EVENT}var e={type:c,data:b};if("function"==typeof b[b.length-1]){i("emitting packet with ack id %d",this.ids);this.acks[this.ids]=b.pop();e.id=this.ids++}if(this.connected){this.packet(e)}else{this.sendBuffer.push(e)}return this};n.prototype.packet=function(a){a.nsp=this.nsp;this.io.packet(a)};n.prototype.onopen=function(){i("transport is open - connecting");if("/"!=this.nsp){this.packet({type:d.CONNECT})}};n.prototype.onclose=function(a){i("close (%s)",a);this.connected=false;this.disconnected=true;this.emit("disconnect",a)};n.prototype.onpacket=function(a){if(a.nsp!=this.nsp)return;switch(a.type){case d.CONNECT:this.onconnect();break;case d.EVENT:this.onevent(a);break;case d.BINARY_EVENT:this.onevent(a);break;case d.ACK:this.onack(a);break;case d.BINARY_ACK:this.onack(a);break;case d.DISCONNECT:this.ondisconnect();break;case d.ERROR:this.emit("error",a.data);break}};n.prototype.onevent=function(a){var b=a.data||[];i("emitting event %j",b);if(null!=a.id){i("attaching ack callback to event");b.push(this.ack(a.id))}if(this.connected){m.apply(this,b)}else{this.receiveBuffer.push(b)}};n.prototype.ack=function(a){var b=this;var c=false;return function(){if(c)return;c=true;var e=f(arguments);i("sending ack %j",e);var g=j(e)?d.BINARY_ACK:d.ACK;b.packet({type:g,id:a,data:e})}};n.prototype.onack=function(a){i("calling ack %s with %j",a.id,a.data);var b=this.acks[a.id];b.apply(this,a.data);delete this.acks[a.id]};n.prototype.onconnect=function(){this.connected=true;this.disconnected=false;this.emit("connect");this.emitBuffered()};n.prototype.emitBuffered=function(){var a;for(a=0;a<this.receiveBuffer.length;a++){m.apply(this,this.receiveBuffer[a])}this.receiveBuffer=[];for(a=0;a<this.sendBuffer.length;a++){this.packet(this.sendBuffer[a])}this.sendBuffer=[]};n.prototype.ondisconnect=function(){i("server disconnect (%s)",this.nsp);this.destroy();this.onclose("io server disconnect")};n.prototype.destroy=function(){for(var a=0;a<this.subs.length;a++){this.subs[a].destroy()}this.io.destroy(this)};n.prototype.close=n.prototype.disconnect=function(){if(!this.connected)return this;i("performing disconnect (%s)",this.nsp);this.packet({type:d.DISCONNECT});this.destroy();this.onclose("io client disconnect");return this}},{"./on":4,"component-bind":7,"component-emitter":8,debug:9,"has-binary-data":32,indexof:36,"socket.io-parser":40,"to-array":43}],6:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("parseuri");var f=a("debug")("socket.io-client:url");b.exports=g;function g(a,b){var c=a;var b=b||d.location;if(null==a)a=b.protocol+"//"+b.hostname;if("string"==typeof a){if("/"==a.charAt(0)){if("undefined"!=typeof b){a=b.hostname+a}}if(!/^(https?|wss?):\/\//.test(a)){f("protocol-less url %s",a);if("undefined"!=typeof b){a=b.protocol+"//"+a}else{a="https://"+a}}f("parse %s",a);c=e(a)}if(!c.port){if(/^(http|ws)$/.test(c.protocol)){c.port="80"}else if(/^(http|ws)s$/.test(c.protocol)){c.port="443"}}c.path=c.path||"/";c.id=c.protocol+"://"+c.host+":"+c.port;c.href=c.protocol+"://"+c.host+(b&&b.port==c.port?"":":"+c.port);return c}},{debug:9,parseuri:38}],7:[function(a,b,c){var d=[].slice;b.exports=function(a,b){if("string"==typeof b)b=a[b];if("function"!=typeof b)throw new Error("bind() requires a function");var c=d.call(arguments,2);return function(){return b.apply(a,c.concat(d.call(arguments)))}}},{}],8:[function(a,b,c){b.exports=d;function d(a){if(a)return e(a)}function e(a){for(var b in d.prototype){a[b]=d.prototype[b]}return a}d.prototype.on=d.prototype.addEventListener=function(a,b){this._callbacks=this._callbacks||{};(this._callbacks[a]=this._callbacks[a]||[]).push(b);return this};d.prototype.once=function(a,b){var c=this;this._callbacks=this._callbacks||{};function d(){c.off(a,d);b.apply(this,arguments)}d.fn=b;this.on(a,d);return this};d.prototype.off=d.prototype.removeListener=d.prototype.removeAllListeners=d.prototype.removeEventListener=function(a,b){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var c=this._callbacks[a];if(!c)return this;if(1==arguments.length){delete this._callbacks[a];return this}var d;for(var e=0;e<c.length;e++){d=c[e];if(d===b||d.fn===b){c.splice(e,1);break}}return this};d.prototype.emit=function(a){this._callbacks=this._callbacks||{};var b=[].slice.call(arguments,1),c=this._callbacks[a];if(c){c=c.slice(0);for(var d=0,e=c.length;d<e;++d){c[d].apply(this,b)}}return this};d.prototype.listeners=function(a){this._callbacks=this._callbacks||{};return this._callbacks[a]||[]};d.prototype.hasListeners=function(a){return!!this.listeners(a).length}},{}],9:[function(a,b,c){b.exports=d;function d(a){if(!d.enabled(a))return function(){};return function(b){b=e(b);var c=new Date;var f=c-(d[a]||c);d[a]=c;b=a+" "+b+" +"+d.humanize(f);window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}}d.names=[];d.skips=[];d.enable=function(a){try{localStorage.debug=a}catch(a){}var b=(a||"").split(/[\s,]+/),c=b.length;for(var e=0;e<c;e++){a=b[e].replace("*",".*?");if(a[0]==="-"){d.skips.push(new RegExp("^"+a.substr(1)+"$"))}else{d.names.push(new RegExp("^"+a+"$"))}}};d.disable=function(){d.enable("")};d.humanize=function(a){var b=1e3,c=60*1e3,d=60*c;if(a>=d)return(a/d).toFixed(1)+"h";if(a>=c)return(a/c).toFixed(1)+"m";if(a>=b)return(a/b|0)+"s";return a+"ms"};d.enabled=function(a){for(var b=0,c=d.skips.length;b<c;b++){if(d.skips[b].test(a)){return false}}for(var b=0,c=d.names.length;b<c;b++){if(d.names[b].test(a)){return true}}return false};function e(a){if(a instanceof Error)return a.stack||a.message;return a}try{if(window.localStorage)d.enable(localStorage.debug)}catch(a){}},{}],10:[function(a,b,c){var d=a("indexof");b.exports=e;function e(a){if(a)return f(a)}function f(a){for(var b in e.prototype){a[b]=e.prototype[b]}return a}e.prototype.on=function(a,b){this._callbacks=this._callbacks||{};(this._callbacks[a]=this._callbacks[a]||[]).push(b);return this};e.prototype.once=function(a,b){var c=this;this._callbacks=this._callbacks||{};function d(){c.off(a,d);b.apply(this,arguments)}b._off=d;this.on(a,d);return this};e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=function(a,b){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var c=this._callbacks[a];if(!c)return this;if(1==arguments.length){delete this._callbacks[a];return this}var e=d(c,b._off||b);if(~e)c.splice(e,1);return this};e.prototype.emit=function(a){this._callbacks=this._callbacks||{};var b=[].slice.call(arguments,1),c=this._callbacks[a];if(c){c=c.slice(0);for(var d=0,e=c.length;d<e;++d){c[d].apply(this,b)}}return this};e.prototype.listeners=function(a){this._callbacks=this._callbacks||{};return this._callbacks[a]||[]};e.prototype.hasListeners=function(a){return!!this.listeners(a).length}},{indexof:36}],11:[function(a,b,c){b.exports=a("./lib/")},{"./lib/":12}],12:[function(a,b,c){b.exports=a("./socket");b.exports.parser=a("engine.io-parser")},{"./socket":13,"engine.io-parser":22}],13:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("./transports");var f=a("component-emitter");var g=a("debug")("engine.io-client:socket");var h=a("indexof");var i=a("engine.io-parser");var j=a("parseuri");var k=a("parsejson");var l=a("parseqs");b.exports=n;function m(){}function n(a,b){if(!(this instanceof n))return new n(a,b);b=b||{};if(a&&"object"==typeof a){b=a;a=null}if(a){a=j(a);b.host=a.host;b.secure=a.protocol=="https"||a.protocol=="wss";b.port=a.port;if(a.query)b.query=a.query}this.secure=null!=b.secure?b.secure:d.location&&"https:"==location.protocol;if(b.host){var c=b.host.split(":");b.hostname=c.shift();if(c.length)b.port=c.pop()}this.agent=b.agent||false;this.hostname=b.hostname||(d.location?location.hostname:"localhost");this.port=b.port||(d.location&&location.port?location.port:this.secure?443:80);this.query=b.query||{};if("string"==typeof this.query)this.query=l.decode(this.query);this.upgrade=false!==b.upgrade;this.path=(b.path||"/engine.io").replace(/\/$/,"")+"/";this.forceJSONP=!!b.forceJSONP;this.forceBase64=!!b.forceBase64;this.timestampParam=b.timestampParam||"t";this.timestampRequests=b.timestampRequests;this.transports=b.transports||["polling","websocket"];this.readyState="";this.writeBuffer=[];this.callbackBuffer=[];this.policyPort=b.policyPort||843;this.rememberUpgrade=b.rememberUpgrade||false;this.open();this.binaryType=null;this.onlyBinaryUpgrades=b.onlyBinaryUpgrades}n.priorWebsocketSuccess=false;f(n.prototype);n.protocol=i.protocol;n.Socket=n;n.Transport=a("./transport");n.transports=a("./transports");n.parser=a("engine.io-parser");n.prototype.createTransport=function(a){g('creating transport "%s"',a);var b=o(this.query);b.EIO=i.protocol;b.transport=a;if(this.id)b.sid=this.id;var c=new e[a]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:b,forceJSONP:this.forceJSONP,forceBase64:this.forceBase64,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this});return c};function o(a){var b={};for(var c in a){if(a.hasOwnProperty(c)){b[c]=a[c]}}return b}n.prototype.open=function(){var a;if(this.rememberUpgrade&&n.priorWebsocketSuccess&&this.transports.indexOf("websocket")!=-1){a="websocket"}else{a=this.transports[0]}this.readyState="opening";var a=this.createTransport(a);a.open();this.setTransport(a)};n.prototype.setTransport=function(a){g("setting transport %s",a.name);var b=this;if(this.transport){g("clearing existing transport %s",this.transport.name);this.transport.removeAllListeners()}this.transport=a;a.on("drain",function(){b.onDrain()}).on("packet",function(a){b.onPacket(a)}).on("error",function(a){b.onError(a)}).on("close",function(){b.onClose("transport close")})};n.prototype.probe=function(a){g('probing transport "%s"',a);var b=this.createTransport(a,{probe:1}),c=false,d=this;n.priorWebsocketSuccess=false;function e(){if(d.onlyBinaryUpgrades){var e=!this.supportsBinary&&d.transport.supportsBinary;c=c||e}if(c)return;g('probe transport "%s" opened',a);b.send([{type:"ping",data:"probe"}]);b.once("packet",function(e){if(c)return;if("pong"==e.type&&"probe"==e.data){g('probe transport "%s" pong',a);d.upgrading=true;d.emit("upgrading",b);n.priorWebsocketSuccess="websocket"==b.name;g('pausing current transport "%s"',d.transport.name);d.transport.pause(function(){if(c)return;if("closed"==d.readyState||"closing"==d.readyState){return}g("changing transport and sending upgrade packet");l();d.setTransport(b);b.send([{type:"upgrade"}]);d.emit("upgrade",b);b=null;d.upgrading=false;d.flush()})}else{g('probe transport "%s" failed',a);var f=new Error("probe error");f.transport=b.name;d.emit("upgradeError",f)}})}function f(){if(c)return;c=true;l();b.close();b=null}function h(c){var e=new Error("probe error: "+c);e.transport=b.name;f();g('probe transport "%s" failed because of error: %s',a,c);d.emit("upgradeError",e)}function i(){h("transport closed")}function j(){h("socket closed")}function k(a){if(b&&a.name!=b.name){g('"%s" works - aborting "%s"',a.name,b.name);f()}}function l(){b.removeListener("open",e);b.removeListener("error",h);b.removeListener("close",i);d.removeListener("close",j);d.removeListener("upgrading",k)}b.once("open",e);b.once("error",h);b.once("close",i);this.once("close",j);this.once("upgrading",k);b.open()};n.prototype.onOpen=function(){g("socket open");this.readyState="open";n.priorWebsocketSuccess="websocket"==this.transport.name;this.emit("open");this.flush();if("open"==this.readyState&&this.upgrade&&this.transport.pause){g("starting upgrade probes");for(var a=0,b=this.upgrades.length;a<b;a++){this.probe(this.upgrades[a])}}};n.prototype.onPacket=function(a){if("opening"==this.readyState||"open"==this.readyState){g('socket receive: type "%s", data "%s"',a.type,a.data);this.emit("packet",a);this.emit("heartbeat");switch(a.type){case"open":this.onHandshake(k(a.data));break;case"pong":this.setPing();break;case"error":var b=new Error("server error");b.code=a.data;this.emit("error",b);break;case"message":this.emit("data",a.data);this.emit("message",a.data);break}}else{g('packet received with socket readyState "%s"',this.readyState)}};n.prototype.onHandshake=function(a){this.emit("handshake",a);this.id=a.sid;this.transport.query.sid=a.sid;this.upgrades=this.filterUpgrades(a.upgrades);this.pingInterval=a.pingInterval;this.pingTimeout=a.pingTimeout;this.onOpen();if("closed"==this.readyState)return;this.setPing();this.removeListener("heartbeat",this.onHeartbeat);this.on("heartbeat",this.onHeartbeat)};n.prototype.onHeartbeat=function(a){clearTimeout(this.pingTimeoutTimer);var b=this;b.pingTimeoutTimer=setTimeout(function(){if("closed"==b.readyState)return;b.onClose("ping timeout")},a||b.pingInterval+b.pingTimeout)};n.prototype.setPing=function(){var a=this;clearTimeout(a.pingIntervalTimer);a.pingIntervalTimer=setTimeout(function(){g("writing ping packet - expecting pong within %sms",a.pingTimeout);a.ping();a.onHeartbeat(a.pingTimeout)},a.pingInterval)};n.prototype.ping=function(){this.sendPacket("ping")};n.prototype.onDrain=function(){for(var a=0;a<this.prevBufferLen;a++){if(this.callbackBuffer[a]){this.callbackBuffer[a]()}}this.writeBuffer.splice(0,this.prevBufferLen);this.callbackBuffer.splice(0,this.prevBufferLen);this.prevBufferLen=0;if(this.writeBuffer.length==0){this.emit("drain")}else{this.flush()}};n.prototype.flush=function(){if("closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){g("flushing %d packets in socket",this.writeBuffer.length);this.transport.send(this.writeBuffer);this.prevBufferLen=this.writeBuffer.length;this.emit("flush")}};n.prototype.write=n.prototype.send=function(a,b){this.sendPacket("message",a,b);return this};n.prototype.sendPacket=function(a,b,c){var d={type:a,data:b};this.emit("packetCreate",d);this.writeBuffer.push(d);this.callbackBuffer.push(c);this.flush()};n.prototype.close=function(){if("opening"==this.readyState||"open"==this.readyState){this.onClose("forced close");g("socket closing - telling transport to close");this.transport.close()}return this};n.prototype.onError=function(a){g("socket error %j",a);n.priorWebsocketSuccess=false;this.emit("error",a);this.onClose("transport error",a)};n.prototype.onClose=function(a,b){if("opening"==this.readyState||"open"==this.readyState){g('socket close with reason: "%s"',a);var c=this;clearTimeout(this.pingIntervalTimer);clearTimeout(this.pingTimeoutTimer);setTimeout(function(){c.writeBuffer=[];c.callbackBuffer=[];c.prevBufferLen=0},0);this.transport.removeAllListeners("close");this.transport.close();this.transport.removeAllListeners();this.readyState="closed";this.id=null;this.emit("close",a,b)}};n.prototype.filterUpgrades=function(a){var b=[];for(var c=0,d=a.length;c<d;c++){if(~h(this.transports,a[c]))b.push(a[c])}return b}},{"./transport":14,"./transports":15,"component-emitter":8,debug:9,"engine.io-parser":22,indexof:36,parsejson:29,parseqs:30,parseuri:38}],14:[function(a,b,c){var d=a("engine.io-parser");var e=a("component-emitter");b.exports=f;function f(a){this.path=a.path;this.hostname=a.hostname;this.port=a.port;this.secure=a.secure;this.query=a.query;this.timestampParam=a.timestampParam;this.timestampRequests=a.timestampRequests;this.readyState="";this.agent=a.agent||false;this.socket=a.socket}e(f.prototype);f.timestamps=0;f.prototype.onError=function(a,b){var c=new Error(a);c.type="TransportError";c.description=b;this.emit("error",c);return this};f.prototype.open=function(){if("closed"==this.readyState||""==this.readyState){this.readyState="opening";this.doOpen()}return this};f.prototype.close=function(){if("opening"==this.readyState||"open"==this.readyState){this.doClose();this.onClose()}return this};f.prototype.send=function(a){if("open"==this.readyState){this.write(a)}else{throw new Error("Transport not open")}};f.prototype.onOpen=function(){this.readyState="open";this.writable=true;this.emit("open")};f.prototype.onData=function(a){try{var b=d.decodePacket(a,this.socket.binaryType);this.onPacket(b)}catch(b){b.data=a;this.onError("parser decode error",b)}};f.prototype.onPacket=function(a){this.emit("packet",a)};f.prototype.onClose=function(){this.readyState="closed";this.emit("close")}},{"component-emitter":8,"engine.io-parser":22}],15:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("xmlhttprequest");var f=a("./polling-xhr");var g=a("./polling-jsonp");var h=a("./websocket");c.polling=i;c.websocket=h;function i(a){var b;var c=false;if(d.location){var h="https:"==location.protocol;var i=location.port;if(!i){i=h?443:80}c=a.hostname!=location.hostname||i!=a.port}a.xdomain=c;b=new e(a);if("open"in b&&!a.forceJSONP){return new f(a)}else{return new g(a)}}},{"./polling-jsonp":16,"./polling-xhr":17,"./websocket":19,xmlhttprequest:20}],16:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("./polling");var f=a("component-inherit");b.exports=l;var g=/\n/g;var h=/\\n/g;var i;var j=0;function k(){}function l(a){e.call(this,a);this.query=this.query||{};if(!i){if(!d.___eio)d.___eio=[];i=d.___eio}this.index=i.length;var b=this;i.push(function(a){b.onData(a)});this.query.j=this.index;if(d.document&&d.addEventListener){d.addEventListener("beforeunload",function(){if(b.script)b.script.onerror=k})}}f(l,e);l.prototype.supportsBinary=false;l.prototype.doClose=function(){if(this.script){this.script.parentNode.removeChild(this.script);this.script=null}if(this.form){this.form.parentNode.removeChild(this.form);this.form=null}e.prototype.doClose.call(this)};l.prototype.doPoll=function(){var a=this;var b=document.createElement("script");if(this.script){this.script.parentNode.removeChild(this.script);this.script=null}b.async=true;b.src=this.uri();b.onerror=function(b){a.onError("jsonp poll error",b)};var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c);this.script=b;var d="undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent);if(d){setTimeout(function(){var a=document.createElement("iframe");document.body.appendChild(a);document.body.removeChild(a)},100)}};l.prototype.doWrite=function(a,b){var c=this;if(!this.form){var d=document.createElement("form");var e=document.createElement("textarea");var f=this.iframeId="eio_iframe_"+this.index;var i;d.className="socketio";d.style.position="absolute";d.style.top="-1000px";d.style.left="-1000px";d.target=f;d.method="POST";d.setAttribute("accept-charset","utf-8");e.name="d";d.appendChild(e);document.body.appendChild(d);this.form=d;this.area=e}this.form.action=this.uri();function j(){k();b()}function k(){if(c.iframe){try{c.form.removeChild(c.iframe)}catch(a){c.onError("jsonp polling iframe removal error",a)}}try{var a='<iframe src="javascript:0" name="'+c.iframeId+'">';i=document.createElement(a)}catch(a){i=document.createElement("iframe");i.name=c.iframeId;i.src="javascript:0"}i.id=c.iframeId;c.form.appendChild(i);c.iframe=i}k();a=a.replace(h,"\\\n");this.area.value=a.replace(g,"\\n");try{this.form.submit()}catch(a){}if(this.iframe.attachEvent){this.iframe.onreadystatechange=function(){if(c.iframe.readyState=="complete"){j()}}}else{this.iframe.onload=j}}},{"./polling":18,"component-inherit":21}],17:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("xmlhttprequest");var f=a("./polling");var g=a("component-emitter");var h=a("component-inherit");var i=a("debug")("engine.io-client:polling-xhr");b.exports=k;b.exports.Request=l;function j(){}function k(a){f.call(this,a);if(d.location){var b="https:"==location.protocol;var c=location.port;if(!c){c=b?443:80}this.xd=a.hostname!=d.location.hostname||c!=a.port}}h(k,f);k.prototype.supportsBinary=true;k.prototype.request=function(a){a=a||{};a.uri=this.uri();a.xd=this.xd;a.agent=this.agent||false;a.supportsBinary=this.supportsBinary;return new l(a)};k.prototype.doWrite=function(a,b){var c=typeof a!=="string"&&a!==undefined;var d=this.request({method:"POST",data:a,isBinary:c});var e=this;d.on("success",b);d.on("error",function(a){e.onError("xhr post error",a)});this.sendXhr=d};k.prototype.doPoll=function(){i("xhr poll");var a=this.request();var b=this;a.on("data",function(a){b.onData(a)});a.on("error",function(a){b.onError("xhr poll error",a)});this.pollXhr=a};function l(a){this.method=a.method||"GET";this.uri=a.uri;this.xd=!!a.xd;this.async=false!==a.async;this.data=undefined!=a.data?a.data:null;this.agent=a.agent;this.create(a.isBinary,a.supportsBinary)}g(l.prototype);l.prototype.create=function(a,b){var c=this.xhr=new e({agent:this.agent,xdomain:this.xd});var f=this;try{i("xhr open %s: %s",this.method,this.uri);c.open(this.method,this.uri,this.async);if(b){c.responseType="arraybuffer"}if("POST"==this.method){try{if(a){c.setRequestHeader("Content-type","application/octet-stream")}else{c.setRequestHeader("Content-type","text/plain;charset=UTF-8")}}catch(a){}}if("withCredentials"in c){c.withCredentials=true}c.onreadystatechange=function(){var a;try{if(4!=c.readyState)return;if(200==c.status||1223==c.status){var d=c.getResponseHeader("Content-Type");if(d==="application/octet-stream"){a=c.response}else{if(!b){a=c.responseText}else{a="ok"}}}else{setTimeout(function(){f.onError(c.status)},0)}}catch(a){f.onError(a)}if(null!=a){f.onData(a)}};i("xhr data %s",this.data);c.send(this.data)}catch(a){setTimeout(function(){f.onError(a)},0);return}if(d.document){this.index=l.requestsCount++;l.requests[this.index]=this}};l.prototype.onSuccess=function(){this.emit("success");this.cleanup()};l.prototype.onData=function(a){this.emit("data",a);this.onSuccess()};l.prototype.onError=function(a){this.emit("error",a);this.cleanup()};l.prototype.cleanup=function(){if("undefined"==typeof this.xhr||null===this.xhr){return}this.xhr.onreadystatechange=j;try{this.xhr.abort()}catch(a){}if(d.document){delete l.requests[this.index]}this.xhr=null};l.prototype.abort=function(){this.cleanup()};if(d.document){l.requestsCount=0;l.requests={};if(d.attachEvent){d.attachEvent("onunload",m)}else if(d.addEventListener){d.addEventListener("beforeunload",m)}}function m(){for(var a in l.requests){if(l.requests.hasOwnProperty(a)){l.requests[a].abort()}}}},{"./polling":18,"component-emitter":8,"component-inherit":21,debug:9,xmlhttprequest:20}],18:[function(a,b,c){var d=a("../transport");var e=a("parseqs");var f=a("engine.io-parser");var g=a("component-inherit");var h=a("debug")("engine.io-client:polling");b.exports=j;var i=function(){var b=a("xmlhttprequest");var c=new b({agent:this.agent,xdomain:false});return null!=c.responseType}();function j(a){var b=a&&a.forceBase64;if(!i||b){this.supportsBinary=false}d.call(this,a)}g(j,d);j.prototype.name="polling";j.prototype.doOpen=function(){this.poll()};j.prototype.pause=function(a){var b=0;var c=this;this.readyState="pausing";function d(){h("paused");c.readyState="paused";a()}if(this.polling||!this.writable){var e=0;if(this.polling){h("we are currently polling - waiting to pause");e++;this.once("pollComplete",function(){h("pre-pause polling complete");--e||d()})}if(!this.writable){h("we are currently writing - waiting to pause");e++;this.once("drain",function(){h("pre-pause writing complete");--e||d()})}}else{d()}};j.prototype.poll=function(){h("polling");this.polling=true;this.doPoll();this.emit("poll")};j.prototype.onData=function(a){var b=this;h("polling got data %s",a);var c=function(a,c,d){if("opening"==b.readyState){b.onOpen()}if("close"==a.type){b.onClose();return false}b.onPacket(a)};f.decodePayload(a,this.socket.binaryType,c);if("closed"!=this.readyState){this.polling=false;this.emit("pollComplete");if("open"==this.readyState){this.poll()}else{h('ignoring poll - transport state "%s"',this.readyState)}}};j.prototype.doClose=function(){var a=this;function b(){h("writing close packet");a.write([{type:"close"}])}if("open"==this.readyState){h("transport open - closing");b()}else{h("transport not open - deferring close");this.once("open",b)}};j.prototype.write=function(a){var b=this;this.writable=false;var c=function(){b.writable=true;b.emit("drain")};var b=this;f.encodePayload(a,this.supportsBinary,function(a){b.doWrite(a,c)})};j.prototype.uri=function(){var a=this.query||{};var b=this.secure?"https":"http";var c="";if(false!==this.timestampRequests){a[this.timestampParam]=+new Date+"-"+d.timestamps++}if(!this.supportsBinary&&!a.sid){a.b64=1}a=e.encode(a);if(this.port&&("https"==b&&this.port!=443||"http"==b&&this.port!=80)){c=":"+this.port}if(a.length){a="?"+a}return b+"://"+this.hostname+c+this.path+a}},{"../transport":14,"component-inherit":21,debug:9,"engine.io-parser":22,parseqs:30,xmlhttprequest:20}],19:[function(a,b,c){var d=a("../transport");var e=a("engine.io-parser");var f=a("parseqs");var g=a("component-inherit");var h=a("debug")("engine.io-client:websocket");var i=a("ws");b.exports=j;function j(a){var b=a&&a.forceBase64;if(b){this.supportsBinary=false}d.call(this,a)}g(j,d);j.prototype.name="websocket";j.prototype.supportsBinary=true;j.prototype.doOpen=function(){if(!this.check()){return}var a=this;var b=this.uri();var c=void 0;var d={agent:this.agent};this.ws=new i(b,c,d);if(this.ws.binaryType===undefined){this.supportsBinary=false}this.ws.binaryType="arraybuffer";this.addEventListeners()};j.prototype.addEventListeners=function(){var a=this;this.ws.onopen=function(){a.onOpen()};this.ws.onclose=function(){a.onClose()};this.ws.onmessage=function(b){a.onData(b.data)};this.ws.onerror=function(b){a.onError("websocket error",b)}};if("undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)){j.prototype.onData=function(a){var b=this;setTimeout(function(){d.prototype.onData.call(b,a)},0)}}j.prototype.write=function(a){var b=this;this.writable=false;for(var c=0,d=a.length;c<d;c++){e.encodePacket(a[c],this.supportsBinary,function(a){try{b.ws.send(a)}catch(a){h("websocket closed before onclose event")}})}function f(){b.writable=true;b.emit("drain")}setTimeout(f,0)};j.prototype.onClose=function(){d.prototype.onClose.call(this)};j.prototype.doClose=function(){if(typeof this.ws!=="undefined"){this.ws.close()}};j.prototype.uri=function(){var a=this.query||{};var b=this.secure?"wss":"ws";var c="";if(this.port&&("wss"==b&&this.port!=443||"ws"==b&&this.port!=80)){c=":"+this.port}if(this.timestampRequests){a[this.timestampParam]=+new Date}if(!this.supportsBinary){a.b64=1}a=f.encode(a);if(a.length){a="?"+a}return b+"://"+this.hostname+c+this.path+a};j.prototype.check=function(){return!!i&&!("__initialize"in i&&this.name===j.prototype.name)}},{"../transport":14,"component-inherit":21,debug:9,"engine.io-parser":22,parseqs:30,ws:31}],20:[function(a,b,c){var d=a("has-cors");b.exports=function(a){var b=a.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!b||d)){return new XMLHttpRequest}}catch(a){}if(!b){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}}},{"has-cors":34}],21:[function(a,b,c){b.exports=function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}},{}],22:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("./keys");var f=a("arraybuffer.slice");var g=a("base64-arraybuffer");var h=a("after");var i=a("utf8");var j=navigator.userAgent.match(/Android/i);c.protocol=2;var k=c.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6};var l=e(k);var m={type:"error",data:"parser error"};var n=a("blob");c.encodePacket=function(a,b,c){if(typeof b=="function"){c=b;b=false}var e=a.data===undefined?undefined:a.data.buffer||a.data;if(d.ArrayBuffer&&e instanceof ArrayBuffer){return o(a,b,c)}else if(n&&e instanceof d.Blob){return q(a,b,c)}var f=k[a.type];if(undefined!==a.data){f+=i.encode(String(a.data))}return c(""+f)};function o(a,b,d){if(!b){return c.encodeBase64Packet(a,d)}var e=a.data;var f=new Uint8Array(e);var g=new Uint8Array(1+e.byteLength);g[0]=k[a.type];for(var h=0;h<f.length;h++){g[h+1]=f[h]}return d(g.buffer)}function p(a,b,d){if(!b){return c.encodeBase64Packet(a,d)}var e=new FileReader;e.onload=function(){a.data=e.result;c.encodePacket(a,b,d)};return e.readAsArrayBuffer(a.data)}function q(a,b,d){if(!b){return c.encodeBase64Packet(a,d)}if(j){return p(a,b,d)}var e=new Uint8Array(1);e[0]=k[a.type];var f=new n([e.buffer,a.data]);return d(f)}c.encodeBase64Packet=function(a,b){var e="b"+c.packets[a.type];if(n&&a.data instanceof n){var f=new FileReader;f.onload=function(){var a=f.result.split(",")[1];b(e+a)};return f.readAsDataURL(a.data)}var g;try{g=String.fromCharCode.apply(null,new Uint8Array(a.data))}catch(b){var h=new Uint8Array(a.data);var i=new Array(h.length);for(var j=0;j<h.length;j++){i[j]=h[j]}g=String.fromCharCode.apply(null,i)}e+=d.btoa(g);return b(e)};c.decodePacket=function(a,b){if(typeof a=="string"||a===undefined){if(a.charAt(0)=="b"){return c.decodeBase64Packet(a.substr(1),b)}a=i.decode(a);var d=a.charAt(0);if(Number(d)!=d||!l[d]){return m}if(a.length>1){return{type:l[d],data:a.substring(1)}}else{return{type:l[d]}}}var e=new Uint8Array(a);var d=e[0];var g=f(a,1);if(n&&b==="blob"){g=new n([g])}return{type:l[d],data:g}};c.decodeBase64Packet=function(a,b){var c=l[a.charAt(0)];if(!d.ArrayBuffer){return{type:c,data:{base64:true,data:a.substr(1)}}}var e=g.decode(a.substr(1));if(b==="blob"&&n){e=new n([e])}return{type:c,data:e}};c.encodePayload=function(a,b,d){if(typeof b=="function"){d=b;b=null}if(b){if(n&&!j){return c.encodePayloadAsBlob(a,d)}return c.encodePayloadAsArrayBuffer(a,d)}if(!a.length){return d("0:")}function e(a){return a.length+":"+a}function f(a,d){c.encodePacket(a,b,function(a){d(null,e(a))})}r(a,f,function(a,b){return d(b.join(""))})};function r(a,b,c){var d=new Array(a.length);var e=h(a.length,c);var f=function(a,c,e){b(c,function(b,c){d[a]=c;e(b,d)})};for(var g=0;g<a.length;g++){f(g,a[g],e)}}c.decodePayload=function(a,b,d){if(typeof a!="string"){return c.decodePayloadAsBinary(a,b,d)}if(typeof b==="function"){d=b;b=null}var e;if(a==""){return d(m,0,1)}var f="",g,h;for(var i=0,j=a.length;i<j;i++){var k=a.charAt(i);if(":"!=k){f+=k}else{if(""==f||f!=(g=Number(f))){return d(m,0,1)}h=a.substr(i+1,g);if(f!=h.length){return d(m,0,1)}if(h.length){e=c.decodePacket(h,b);if(m.type==e.type&&m.data==e.data){return d(m,0,1)}var l=d(e,i+g,j);if(false===l)return}i+=g;f=""}}if(f!=""){return d(m,0,1)}};c.encodePayloadAsArrayBuffer=function(a,b){if(!a.length){return b(new ArrayBuffer(0))}function d(a,b){c.encodePacket(a,true,function(a){return b(null,a)})}r(a,d,function(a,c){var d=c.reduce(function(a,b){var c;if(typeof b==="string"){c=b.length}else{c=b.byteLength}return a+c.toString().length+c+2},0);var e=new Uint8Array(d);var f=0;c.forEach(function(a){var b=typeof a==="string";var c=a;if(b){var d=new Uint8Array(a.length);for(var g=0;g<a.length;g++){d[g]=a.charCodeAt(g)}c=d.buffer}if(b){e[f++]=0}else{e[f++]=1}var h=c.byteLength.toString();for(var g=0;g<h.length;g++){e[f++]=parseInt(h[g])}e[f++]=255;var d=new Uint8Array(c);for(var g=0;g<d.length;g++){e[f++]=d[g]}});return b(e.buffer)})};c.encodePayloadAsBlob=function(a,b){function d(a,b){c.encodePacket(a,true,function(a){var c=new Uint8Array(1);c[0]=1;if(typeof a==="string"){var d=new Uint8Array(a.length);for(var e=0;e<a.length;e++){d[e]=a.charCodeAt(e)}a=d.buffer;c[0]=0}var f=a instanceof ArrayBuffer?a.byteLength:a.size;var g=f.toString();var h=new Uint8Array(g.length+1);for(var e=0;e<g.length;e++){h[e]=parseInt(g[e])}h[g.length]=255;if(n){var i=new n([c.buffer,h.buffer,a]);b(null,i)}})}r(a,d,function(a,c){return b(new n(c))})};c.decodePayloadAsBinary=function(a,b,d){if(typeof b==="function"){d=b;b=null}var e=a;var g=[];while(e.byteLength>0){var h=new Uint8Array(e);var i=h[0]===0;var j="";for(var k=1;;k++){if(h[k]==255)break;j+=h[k]}e=f(e,2+j.length);j=parseInt(j);var l=f(e,0,j);if(i){try{l=String.fromCharCode.apply(null,new Uint8Array(l))}catch(a){var m=new Uint8Array(l);l="";for(var k=0;k<m.length;k++){l+=String.fromCharCode(m[k])}}}g.push(l);e=f(e,j)}var n=g.length;g.forEach(function(a,e){d(c.decodePacket(a,b),e,n)})}},{"./keys":23,after:24,"arraybuffer.slice":25,"base64-arraybuffer":26,blob:27,utf8:28}],23:[function(a,b,c){b.exports=Object.keys||function a(b){var c=[];var d=Object.prototype.hasOwnProperty;for(var e in b){if(d.call(b,e)){c.push(e)}}return c}},{}],24:[function(a,b,c){b.exports=d;function d(a,b,c){var d=false;c=c||e;f.count=a;return a===0?b():f;function f(a,e){if(f.count<=0){throw new Error("after called too many times")}--f.count;if(a){d=true;b(a);b=c}else if(f.count===0&&!d){b(null,e)}}}function e(){}},{}],25:[function(a,b,c){b.exports=function(a,b,c){var d=a.byteLength;b=b||0;c=c||d;if(a.slice){return a.slice(b,c)}if(b<0){b+=d}if(c<0){c+=d}if(c>d){c=d}if(b>=d||b>=c||d===0){return new ArrayBuffer(0)}var e=new Uint8Array(a);var f=new Uint8Array(c-b);for(var g=b,h=0;g<c;g++,h++){f[h]=e[g]}return f.buffer}},{}],26:[function(a,b,c){(function(a){"use strict";c.encode=function(b){var c=new Uint8Array(b),d,e=c.length,f="";for(d=0;d<e;d+=3){f+=a[c[d]>>2];f+=a[(c[d]&3)<<4|c[d+1]>>4];f+=a[(c[d+1]&15)<<2|c[d+2]>>6];f+=a[c[d+2]&63]}if(e%3===2){f=f.substring(0,f.length-1)+"="}else if(e%3===1){f=f.substring(0,f.length-2)+"=="}return f};c.decode=function(b){var c=b.length*.75,d=b.length,e,f=0,g,h,i,j;if(b[b.length-1]==="="){c--;if(b[b.length-2]==="="){c--}}var k=new ArrayBuffer(c),l=new Uint8Array(k);for(e=0;e<d;e+=4){g=a.indexOf(b[e]);h=a.indexOf(b[e+1]);i=a.indexOf(b[e+2]);j=a.indexOf(b[e+3]);l[f++]=g<<2|h>>4;l[f++]=(h&15)<<4|i>>2;l[f++]=(i&3)<<6|j&63}return k}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},{}],27:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=d.BlobBuilder||d.WebKitBlobBuilder||d.MSBlobBuilder||d.MozBlobBuilder;var f=function(){try{var a=new Blob(["hi"]);return a.size==2}catch(a){return false}}();var g=e&&e.prototype.append&&e.prototype.getBlob;function h(a,b){b=b||{};var c=new e;for(var d=0;d<a.length;d++){c.append(a[d])}return b.type?c.getBlob(b.type):c.getBlob()}b.exports=function(){if(f){return d.Blob}else if(g){return h}else{return undefined}}()},{}],28:[function(b,c,d){var e=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};(function(b){var f=typeof d=="object"&&d;var g=typeof c=="object"&&c&&c.exports==f&&c;var h=typeof e=="object"&&e;if(h.global===h||h.window===h){b=h}var i=String.fromCharCode;function j(a){var b=[];var c=0;var d=a.length;var e;var f;while(c<d){e=a.charCodeAt(c++);if(e>=55296&&e<=56319&&c<d){f=a.charCodeAt(c++);if((f&64512)==56320){b.push(((e&1023)<<10)+(f&1023)+65536)}else{b.push(e);c--}}else{b.push(e)}}return b}function k(a){var b=a.length;var c=-1;var d;var e="";while(++c<b){d=a[c];if(d>65535){d-=65536;e+=i(d>>>10&1023|55296);d=56320|d&1023}e+=i(d)}return e}function l(a,b){return i(a>>b&63|128)}function m(a){if((a&4294967168)==0){return i(a)}var b="";if((a&4294965248)==0){b=i(a>>6&31|192)}else if((a&4294901760)==0){b=i(a>>12&15|224);b+=l(a,6)}else if((a&4292870144)==0){b=i(a>>18&7|240);b+=l(a,12);b+=l(a,6)}b+=i(a&63|128);return b}function n(a){var b=j(a);var c=b.length;var d=-1;var e;var f="";while(++d<c){e=b[d];f+=m(e)}return f}function o(){if(s>=r){throw Error("Invalid byte index")}var a=q[s]&255;s++;if((a&192)==128){return a&63}throw Error("Invalid continuation byte")}function p(){var a;var b;var c;var d;var e;if(s>r){throw Error("Invalid byte index")}if(s==r){return false}a=q[s]&255;s++;if((a&128)==0){return a}if((a&224)==192){var b=o();e=(a&31)<<6|b;if(e>=128){return e}else{throw Error("Invalid continuation byte")}}if((a&240)==224){b=o();c=o();e=(a&15)<<12|b<<6|c;if(e>=2048){return e}else{throw Error("Invalid continuation byte")}}if((a&248)==240){b=o();c=o();d=o();e=(a&15)<<18|b<<12|c<<6|d;if(e>=65536&&e<=1114111){return e}}throw Error("Invalid UTF-8 detected")}var q;var r;var s;function t(a){q=j(a);r=q.length;s=0;var b=[];var c;while((c=p())!==false){b.push(c)}return k(b)}var u={version:"2.0.0",encode:n,decode:t};if(typeof a=="function"&&typeof a.amd=="object"&&a.amd){a(function(){return u})}else if(f&&!f.nodeType){if(g){g.exports=u}else{var v={};var w=v.hasOwnProperty;for(var x in u){w.call(u,x)&&(f[x]=u[x])}}}else{b.utf8=u}})(this)},{}],29:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=/^[\],:{}\s]*$/;var f=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g;var g=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g;var h=/(?:^|:|,)(?:\s*\[)+/g;var i=/^\s+/;var j=/\s+$/;b.exports=function a(b){if("string"!=typeof b||!b){return null}b=b.replace(i,"").replace(j,"");if(d.JSON&&JSON.parse){return JSON.parse(b)}if(e.test(b.replace(f,"@").replace(g,"]").replace(h,""))){return new Function("return "+b)()}}},{}],30:[function(a,b,c){c.encode=function(a){var b="";for(var c in a){if(a.hasOwnProperty(c)){if(b.length)b+="&";b+=encodeURIComponent(c)+"="+encodeURIComponent(a[c])}}return b};c.decode=function(a){var b={};var c=a.split("&");for(var d=0,e=c.length;d<e;d++){var f=c[d].split("=");b[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return b}},{}],31:[function(a,b,c){var d=function(){return this}();var e=d.WebSocket||d.MozWebSocket;b.exports=e?f:null;function f(a,b,c){var d;if(b){d=new e(a,b)}else{d=new e(a)}return d}if(e)f.prototype=e.prototype},{}],32:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("isarray");b.exports=f;function f(a){function b(a){if(!a)return false;if(d.Buffer&&Buffer.isBuffer(a)||d.ArrayBuffer&&a instanceof ArrayBuffer||d.Blob&&a instanceof Blob||d.File&&a instanceof File){return true}if(e(a)){for(var c=0;c<a.length;c++){if(b(a[c])){return true}}}else if(a&&"object"==typeof a){if(a.toJSON){a=a.toJSON()}for(var f in a){if(b(a[f])){return true}}}return false}return b(a)}},{isarray:33}],33:[function(a,b,c){b.exports=Array.isArray||function(a){return Object.prototype.toString.call(a)=="[object Array]"}},{}],34:[function(a,b,c){var d=a("global");try{b.exports="XMLHttpRequest"in d&&"withCredentials"in new d.XMLHttpRequest}catch(a){b.exports=false}},{global:35}],35:[function(a,b,c){b.exports=function(){return this}()},{}],36:[function(a,b,c){var d=[].indexOf;b.exports=function(a,b){if(d)return a.indexOf(b);for(var c=0;c<a.length;++c){if(a[c]===b)return c}return-1}},{}],37:[function(a,b,c){var d=Object.prototype.hasOwnProperty;c.keys=Object.keys||function(a){var b=[];for(var c in a){if(d.call(a,c)){b.push(c)}}return b};c.values=function(a){var b=[];for(var c in a){if(d.call(a,c)){b.push(a[c])}}return b};c.merge=function(a,b){for(var c in b){if(d.call(b,c)){a[c]=b[c]}}return a};c.length=function(a){return c.keys(a).length};c.isEmpty=function(a){return 0==c.length(a)}},{}],38:[function(a,b,c){var d=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;var e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];b.exports=function a(b){var c=d.exec(b||""),f={},g=14;while(g--){f[e[g]]=c[g]||""}return f}},{}],39:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("isarray");c.deconstructPacket=function(a){var b=[];var c=a.data;function f(a){if(!a)return a;if(d.Buffer&&Buffer.isBuffer(a)||d.ArrayBuffer&&a instanceof ArrayBuffer){var c={_placeholder:true,num:b.length};b.push(a);return c}else if(e(a)){var g=new Array(a.length);for(var h=0;h<a.length;h++){g[h]=f(a[h])}return g}else if("object"==typeof a&&!(a instanceof Date)){var g={};for(var i in a){g[i]=f(a[i])}return g}return a}var g=a;g.data=f(c);g.attachments=b.length;return{packet:g,buffers:b}};c.reconstructPacket=function(a,b){var c=0;function d(a){if(a&&a._placeholder){var c=b[a.num];return c}else if(e(a)){for(var f=0;f<a.length;f++){a[f]=d(a[f])}return a}else if(a&&"object"==typeof a){for(var g in a){a[g]=d(a[g])}return a}return a}a.data=d(a.data);a.attachments=undefined;return a};c.removeBlobs=function(a,b){function c(a,i,j){if(!a)return a;if(d.Blob&&a instanceof Blob||d.File&&a instanceof File){g++;var k=new FileReader;k.onload=function(){if(j){j[i]=this.result}else{h=this.result}if(!--g){b(h)}};k.readAsArrayBuffer(a)}if(e(a)){for(var l=0;l<a.length;l++){c(a[l],l,a)}}else if(a&&"object"==typeof a&&!f(a)){for(var m in a){c(a[m],m,a)}}}var g=0;var h=a;c(h);if(!g){b(h)}};function f(a){return d.Buffer&&Buffer.isBuffer(a)||d.ArrayBuffer&&a instanceof ArrayBuffer}},{isarray:41}],40:[function(a,b,c){var d=typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var e=a("debug")("socket.io-parser");var f=a("json3");var g=a("isarray");var h=a("emitter");var i=a("./binary");c.protocol=3;c.types=["CONNECT","DISCONNECT","EVENT","BINARY_EVENT","ACK","BINARY_ACK","ERROR"];c.CONNECT=0;c.DISCONNECT=1;c.EVENT=2;c.ACK=3;c.ERROR=4;c.BINARY_EVENT=5;c.BINARY_ACK=6;c.Encoder=j;function j(){}j.prototype.encode=function(a,b){e("encoding packet %j",a);if(c.BINARY_EVENT==a.type||c.BINARY_ACK==a.type){l(a,b)}else{var d=k(a);b([d])}};function k(a){var b="";var d=false;b+=a.type;if(c.BINARY_EVENT==a.type||c.BINARY_ACK==a.type){b+=a.attachments;b+="-"}if(a.nsp&&"/"!=a.nsp){d=true;b+=a.nsp}if(null!=a.id){if(d){b+=",";d=false}b+=a.id}if(null!=a.data){if(d)b+=",";b+=f.stringify(a.data)}e("encoded %j as %s",a,b);return b}function l(a,b){function c(a){var c=i.deconstructPacket(a);var d=k(c.packet);var e=c.buffers;e.unshift(d);b(e)}i.removeBlobs(a,c)}c.Decoder=m;function m(){this.reconstructor=null}h(m.prototype);m.prototype.add=function(a){var b;if("string"==typeof a){b=n(a);if(c.BINARY_EVENT==b.type||c.BINARY_ACK==b.type){this.reconstructor=new o(b);if(this.reconstructor.reconPack.attachments==0){this.emit("decoded",b)}}else{this.emit("decoded",b)}}else if(d.Buffer&&Buffer.isBuffer(a)||d.ArrayBuffer&&a instanceof ArrayBuffer||a.base64){if(!this.reconstructor){throw new Error("got binary data when not reconstructing a packet")}else{b=this.reconstructor.takeBinaryData(a);if(b){this.reconstructor=null;this.emit("decoded",b)}}}else{throw new Error("Unknown type: "+a)}};function n(a){var b={};var d=0;b.type=Number(a.charAt(0));if(null==c.types[b.type])return p();if(c.BINARY_EVENT==b.type||c.BINARY_ACK==b.type){b.attachments="";while(a.charAt(++d)!="-"){b.attachments+=a.charAt(d)}b.attachments=Number(b.attachments)}if("/"==a.charAt(d+1)){b.nsp="";while(++d){var g=a.charAt(d);if(","==g)break;b.nsp+=g;if(d+1==a.length)break}}else{b.nsp="/"}var h=a.charAt(d+1);if(""!=h&&Number(h)==h){b.id="";while(++d){var g=a.charAt(d);if(null==g||Number(g)!=g){--d;break}b.id+=a.charAt(d);if(d+1==a.length)break}b.id=Number(b.id)}if(a.charAt(++d)){try{b.data=f.parse(a.substr(d))}catch(a){return p()}}e("decoded %s as %j",a,b);return b}m.prototype.destroy=function(){if(this.reconstructor){this.reconstructor.finishedReconstruction()}};function o(a){this.reconPack=a;this.buffers=[]}o.prototype.takeBinaryData=function(a){this.buffers.push(a);if(this.buffers.length==this.reconPack.attachments){var b=i.reconstructPacket(this.reconPack,this.buffers);this.finishedReconstruction();return b}return null};o.prototype.finishedReconstruction=function(){this.reconPack=null;this.buffers=[]};function p(a){return{type:c.ERROR,data:"parser error"}}},{"./binary":39,debug:9,emitter:10,isarray:41,json3:42}],41:[function(a,b,c){b.exports=a(33)},{}],42:[function(b,c,d){(function(b){var c={}.toString,e,f,g;var h=typeof a==="function"&&a.amd;var i=typeof JSON=="object"&&JSON;var j=typeof d=="object"&&d&&!d.nodeType&&d;if(j&&i){j.stringify=i.stringify;j.parse=i.parse}else{j=b.JSON=i||{}}var k=new Date(-0xc782b5b800cec);try{k=k.getUTCFullYear()==-109252&&k.getUTCMonth()===0&&k.getUTCDate()===1&&k.getUTCHours()==10&&k.getUTCMinutes()==37&&k.getUTCSeconds()==6&&k.getUTCMilliseconds()==708}catch(a){}function l(a){if(l[a]!==g){return l[a]}var b;if(a=="bug-string-char-index"){b="a"[0]!="a"}else if(a=="json"){b=l("json-stringify")&&l("json-parse")}else{var d,e='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if(a=="json-stringify"){var f=j.stringify,h=typeof f=="function"&&k;if(h){(d=function(){return 1}).toJSON=d;try{h=f(0)==="0"&&f(new Number)==="0"&&f(new String)=='""'&&f(c)===g&&f(g)===g&&f()===g&&f(d)==="1"&&f([d])=="[1]"&&f([g])=="[null]"&&f(null)=="null"&&f([g,c,null])=="[null,null,null]"&&f({a:[d,true,false,null,"\0\b\n\f\r\t"]})==e&&f(null,d)==="1"&&f([1,2],null,1)=="[\n 1,\n 2\n]"&&f(new Date(-864e13))=='"-271821-04-20T00:00:00.000Z"'&&f(new Date(864e13))=='"+275760-09-13T00:00:00.000Z"'&&f(new Date(-621987552e5))=='"-000001-01-01T00:00:00.000Z"'&&f(new Date(-1))=='"1969-12-31T23:59:59.999Z"'}catch(a){h=false}}b=h}if(a=="json-parse"){var i=j.parse;if(typeof i=="function"){try{if(i("0")===0&&!i(false)){d=i(e);var m=d["a"].length==5&&d["a"][0]===1;if(m){try{m=!i('"\t"')}catch(a){}if(m){try{m=i("01")!==1}catch(a){}}if(m){try{m=i("1.")!==1}catch(a){}}}}}catch(a){m=false}}b=m}}return l[a]=!!b}if(!l("json")){var m="[object Function]";var n="[object Date]";var o="[object Number]";var p="[object String]";var q="[object Array]";var r="[object Boolean]";var s=l("bug-string-char-index");if(!k){var t=Math.floor;var u=[0,31,59,90,120,151,181,212,243,273,304,334];var v=function(a,b){return u[b]+365*(a-1970)+t((a-1969+(b=+(b>1)))/4)-t((a-1901+b)/100)+t((a-1601+b)/400)}}if(!(e={}.hasOwnProperty)){e=function(a){var b={},d;if((b.__proto__=null,b.__proto__={toString:1},b).toString!=c){e=function(a){var b=this.__proto__,c=a in(this.__proto__=null,this);this.__proto__=b;return c}}else{d=b.constructor;e=function(a){var b=(this.constructor||d).prototype;return a in this&&!(a in b&&this[a]===b[a])}}b=null;return e.call(this,a)}}var w={boolean:1,number:1,string:1,undefined:1};var x=function(a,b){var c=typeof a[b];return c=="object"?!!a[b]:!w[c]};f=function(a,b){var d=0,g,h,i;(g=function(){this.valueOf=0}).prototype.valueOf=0;h=new g;for(i in h){if(e.call(h,i)){d++}}g=h=null;if(!d){h=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];f=function(a,b){var d=c.call(a)==m,f,g;var i=!d&&typeof a.constructor!="function"&&x(a,"hasOwnProperty")?a.hasOwnProperty:e;for(f in a){if(!(d&&f=="prototype")&&i.call(a,f)){b(f)}}for(g=h.length;f=h[--g];i.call(a,f)&&b(f));}}else if(d==2){f=function(a,b){var d={},f=c.call(a)==m,g;for(g in a){if(!(f&&g=="prototype")&&!e.call(d,g)&&(d[g]=1)&&e.call(a,g)){b(g)}}}}else{f=function(a,b){var d=c.call(a)==m,f,g;for(f in a){if(!(d&&f=="prototype")&&e.call(a,f)&&!(g=f==="constructor")){b(f)}}if(g||e.call(a,f="constructor")){b(f)}}}return f(a,b)};if(!l("json-stringify")){var y={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"};var z="000000";var A=function(a,b){return(z+(b||0)).slice(-a)};var B="\\u00";var C=function(a){var b='"',c=0,d=a.length,e=d>10&&s,f;if(e){f=a.split("")}for(;c<d;c++){var g=a.charCodeAt(c);switch(g){case 8:case 9:case 10:case 12:case 13:case 34:case 92:b+=y[g];break;default:if(g<32){b+=B+A(2,g.toString(16));break}b+=e?f[c]:s?a.charAt(c):a[c]}}return b+'"'};var D=function(a,b,d,h,i,j,k){var l,m,s,u,w,x,y,z,B,E,F,G,H,I,J,K;try{l=b[a]}catch(a){}if(typeof l=="object"&&l){m=c.call(l);if(m==n&&!e.call(l,"toJSON")){if(l>-1/0&&l<1/0){if(v){w=t(l/864e5);for(s=t(w/365.2425)+1970-1;v(s+1,0)<=w;s++);for(u=t((w-v(s,0))/30.42);v(s,u+1)<=w;u++);w=1+w-v(s,u);x=(l%864e5+864e5)%864e5;y=t(x/36e5)%24;z=t(x/6e4)%60;B=t(x/1e3)%60;E=x%1e3}else{s=l.getUTCFullYear();u=l.getUTCMonth();w=l.getUTCDate();y=l.getUTCHours();z=l.getUTCMinutes();B=l.getUTCSeconds();E=l.getUTCMilliseconds()}l=(s<=0||s>=1e4?(s<0?"-":"+")+A(6,s<0?-s:s):A(4,s))+"-"+A(2,u+1)+"-"+A(2,w)+"T"+A(2,y)+":"+A(2,z)+":"+A(2,B)+"."+A(3,E)+"Z"}else{l=null}}else if(typeof l.toJSON=="function"&&(m!=o&&m!=p&&m!=q||e.call(l,"toJSON"))){l=l.toJSON(a)}}if(d){l=d.call(b,a,l)}if(l===null){return"null"}m=c.call(l);if(m==r){return""+l}else if(m==o){return l>-1/0&&l<1/0?""+l:"null"}else if(m==p){return C(""+l)}if(typeof l=="object"){for(I=k.length;I--;){if(k[I]===l){throw TypeError()}}k.push(l);F=[];J=j;j+=i;if(m==q){for(H=0,I=l.length;H<I;H++){G=D(H,l,d,h,i,j,k);F.push(G===g?"null":G)}K=F.length?i?"[\n"+j+F.join(",\n"+j)+"\n"+J+"]":"["+F.join(",")+"]":"[]"}else{f(h||l,function(a){var b=D(a,l,d,h,i,j,k);if(b!==g){F.push(C(a)+":"+(i?" ":"")+b)}});K=F.length?i?"{\n"+j+F.join(",\n"+j)+"\n"+J+"}":"{"+F.join(",")+"}":"{}"}k.pop();return K}};j.stringify=function(a,b,d){var e,f,g,h;if(typeof b=="function"||typeof b=="object"&&b){if((h=c.call(b))==m){f=b}else if(h==q){g={};for(var i=0,j=b.length,k;i<j;k=b[i++],(h=c.call(k),h==p||h==o)&&(g[k]=1));}}if(d){if((h=c.call(d))==o){if((d-=d%1)>0){for(e="",d>10&&(d=10);e.length<d;e+=" ");}}else if(h==p){e=d.length<=10?d:d.slice(0,10)}}return D("",(k={},k[""]=a,k),f,g,e,"",[])}}if(!l("json-parse")){var E=String.fromCharCode;var F={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"};var G,H;var I=function(){G=H=null;throw SyntaxError()};var J=function(){var a=H,b=a.length,c,d,e,f,g;while(G<b){g=a.charCodeAt(G);switch(g){case 9:case 10:case 13:case 32:G++;break;case 123:case 125:case 91:case 93:case 58:case 44:c=s?a.charAt(G):a[G];G++;return c;case 34:for(c="@",G++;G<b;){g=a.charCodeAt(G);if(g<32){I()}else if(g==92){g=a.charCodeAt(++G);switch(g){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:c+=F[g];G++;break;case 117:d=++G;for(e=G+4;G<e;G++){g=a.charCodeAt(G);if(!(g>=48&&g<=57||g>=97&&g<=102||g>=65&&g<=70)){I()}}c+=E("0x"+a.slice(d,G));break;default:I()}}else{if(g==34){break}g=a.charCodeAt(G);d=G;while(g>=32&&g!=92&&g!=34){g=a.charCodeAt(++G)}c+=a.slice(d,G)}}if(a.charCodeAt(G)==34){G++;return c}I();default:d=G;if(g==45){f=true;g=a.charCodeAt(++G)}if(g>=48&&g<=57){if(g==48&&(g=a.charCodeAt(G+1),g>=48&&g<=57)){I()}f=false;for(;G<b&&(g=a.charCodeAt(G),g>=48&&g<=57);G++);if(a.charCodeAt(G)==46){e=++G;for(;e<b&&(g=a.charCodeAt(e),g>=48&&g<=57);e++);if(e==G){I()}G=e}g=a.charCodeAt(G);if(g==101||g==69){g=a.charCodeAt(++G);if(g==43||g==45){G++}for(e=G;e<b&&(g=a.charCodeAt(e),g>=48&&g<=57);e++);if(e==G){I()}G=e}return+a.slice(d,G)}if(f){I()}if(a.slice(G,G+4)=="true"){G+=4;return true}else if(a.slice(G,G+5)=="false"){G+=5;return false}else if(a.slice(G,G+4)=="null"){G+=4;return null}I()}}return"$"};var K=function(a){var b,c;if(a=="$"){I()}if(typeof a=="string"){if((s?a.charAt(0):a[0])=="@"){return a.slice(1)}if(a=="["){b=[];for(;;c||(c=true)){a=J();if(a=="]"){break}if(c){if(a==","){a=J();if(a=="]"){I()}}else{I()}}if(a==","){I()}b.push(K(a))}return b}else if(a=="{"){b={};for(;;c||(c=true)){a=J();if(a=="}"){break}if(c){if(a==","){a=J();if(a=="}"){I()}}else{I()}}if(a==","||typeof a!="string"||(s?a.charAt(0):a[0])!="@"||J()!=":"){I()}b[a.slice(1)]=K(J())}return b}I()}return a};var L=function(a,b,c){var d=M(a,b,c);if(d===g){delete a[b]}else{a[b]=d}};var M=function(a,b,d){var e=a[b],g;if(typeof e=="object"&&e){if(c.call(e)==q){for(g=e.length;g--;){L(e,g,d)}}else{f(e,function(a){L(e,a,d)})}}return d.call(a,b,e)};j.parse=function(a,b){var d,e;G=0;H=""+a;d=K(J());if(J()!="$"){I()}G=H=null;return b&&c.call(b)==m?M((e={},e[""]=d,e),"",b):d}}}if(h){a(function(){return j})}})(this)},{}],43:[function(a,b,c){b.exports=d;function d(a,b){var c=[];b=b||0;for(var d=b||0;d<a.length;d++){c[d-b]=a[d]}return c}},{}]},{},[1])(1)});String.prototype.contains=function(){var a=arguments;for(var b in a){var c=a[b];if(typeof c==="string"&&this.indexOf(c)>-1){return true}}return false};(function(a){a.stringcolor=function(a){return"#"+stringcolor(a)};a.fn.stringcolor=function(b,c){if(!b||!c){throw new Error("$(selector).string_to_color() takes 2 arguments")}return this.each(function(){var d=[].concat(b);var e=a(this);a.map(d,function(b){e.css(b,a.stringcolor(c))})})}})(jQuery);function string_to_color(a){var b=function(a){var b=0;for(var c=0;c<a.length;c++){b=a.charCodeAt(c)+((b<<5)-b)}return b};var c=function(a,b){var c=parseInt(a,16),d=Math.round(2.55*b),e=(c>>16)+d,f=(c>>8&255)+d,g=(c&255)+d;return(16777216+(e<255?e<1?0:e:255)*65536+(f<255?f<1?0:f:255)*256+(g<255?g<1?0:g:255)).toString(16).slice(1)};var d=function(a){var b=(a>>24&255).toString(16)+(a>>16&255).toString(16)+(a>>8&255).toString(16)+(a&255).toString(16);return b};return c(d(b(a)),-10)}var cache={};function stringcolor(a){return cache[a]=cache[a]||string_to_color(a)}(function(a,b){"use strict";if(typeof exports==="object"){module.exports=b(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains"))}else if(typeof define==="function"&&define.amd){define(["./punycode","./IPv6","./SecondLevelDomains"],b)}else{a.URI=b(a.punycode,a.IPv6,a.SecondLevelDomains,a)}})(this,function(a,b,c,d){"use strict";var e=d&&d.URI;function f(a,b){if(!(this instanceof f)){return new f(a,b)}if(a===undefined){if(typeof location!=="undefined"){a=location.href+""}else{a=""}}this.href(a);if(b!==undefined){return this.absoluteTo(b)}return this}f.version="1.14.1";var g=f.prototype;var h=Object.prototype.hasOwnProperty;function i(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function j(a){if(a===undefined){return"Undefined"}return String(Object.prototype.toString.call(a)).slice(8,-1)}function k(a){return j(a)==="Array"}function l(a,b){var c={};var d,e;if(k(b)){for(d=0,e=b.length;d<e;d++){c[b[d]]=true}}else{c[b]=true}for(d=0,e=a.length;d<e;d++){if(c[a[d]]!==undefined){a.splice(d,1);e--;d--}}return a}function m(a,b){var c,d;if(k(b)){for(c=0,d=b.length;c<d;c++){if(!m(a,b[c])){return false}}return true}var e=j(b);for(c=0,d=a.length;c<d;c++){if(e==="RegExp"){if(typeof a[c]==="string"&&a[c].match(b)){return true}}else if(a[c]===b){return true}}return false}function n(a,b){if(!k(a)||!k(b)){return false}if(a.length!==b.length){return false}a.sort();b.sort();for(var c=0,d=a.length;c<d;c++){if(a[c]!==b[c]){return false}}return true}f._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:f.duplicateQueryParameters,escapeQuerySpace:f.escapeQuerySpace}};f.duplicateQueryParameters=false;f.escapeQuerySpace=true;f.protocol_expression=/^[a-z][a-z0-9.+-]*$/i;f.idn_expression=/[^a-z0-9\.-]/i;f.punycode_expression=/(xn--)/i;f.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;f.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;f.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi;f.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/};f.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"};f.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/;f.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"};f.getDomAttribute=function(a){if(!a||!a.nodeName){return undefined}var b=a.nodeName.toLowerCase();if(b==="input"&&a.type!=="image"){return undefined}return f.domAttributes[b]};function o(a){return escape(a)}function p(a){return encodeURIComponent(a).replace(/[!'()*]/g,o).replace(/\*/g,"%2A")}f.encode=p;f.decode=decodeURIComponent;f.iso8859=function(){f.encode=escape;f.decode=unescape};f.unicode=function(){f.encode=p;f.decode=decodeURIComponent};f.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}}};f.encodeQuery=function(a,b){var c=f.encode(a+"");if(b===undefined){b=f.escapeQuerySpace}return b?c.replace(/%20/g,"+"):c};f.decodeQuery=function(a,b){a+="";if(b===undefined){b=f.escapeQuerySpace}try{return f.decode(b?a.replace(/\+/g,"%20"):a)}catch(b){return a}};f.recodePath=function(a){var b=(a+"").split("/");for(var c=0,d=b.length;c<d;c++){b[c]=f.encodePathSegment(f.decode(b[c]))}return b.join("/")};f.decodePath=function(a){var b=(a+"").split("/");for(var c=0,d=b.length;c<d;c++){b[c]=f.decodePathSegment(b[c])}return b.join("/")};var q={encode:"encode",decode:"decode"};var r;var s=function(a,b){return function(c){try{return f[b](c+"").replace(f.characters[a][b].expression,function(c){return f.characters[a][b].map[c]})}catch(a){return c}}};for(r in q){f[r+"PathSegment"]=s("pathname",q[r])}f.encodeReserved=s("reserved","encode");f.parse=function(a,b){var c;if(!b){b={}}c=a.indexOf("#");if(c>-1){b.fragment=a.substring(c+1)||null;a=a.substring(0,c)}c=a.indexOf("?");if(c>-1){b.query=a.substring(c+1)||null;a=a.substring(0,c)}if(a.substring(0,2)==="//"){b.protocol=null;a=a.substring(2);a=f.parseAuthority(a,b)}else{c=a.indexOf(":");if(c>-1){b.protocol=a.substring(0,c)||null;if(b.protocol&&!b.protocol.match(f.protocol_expression)){b.protocol=undefined}else if(a.substring(c+1,c+3)==="//"){a=a.substring(c+3);a=f.parseAuthority(a,b)}else{a=a.substring(c+1);b.urn=true}}}b.path=a;return b};f.parseHost=function(a,b){var c=a.indexOf("/");var d;var e;if(c===-1){c=a.length}if(a.charAt(0)==="["){d=a.indexOf("]");b.hostname=a.substring(1,d)||null;b.port=a.substring(d+2,c)||null;if(b.port==="/"){b.port=null}}else if(a.indexOf(":")!==a.lastIndexOf(":")){b.hostname=a.substring(0,c)||null;b.port=null}else{e=a.substring(0,c).split(":");b.hostname=e[0]||null;b.port=e[1]||null}if(b.hostname&&a.substring(c).charAt(0)!=="/"){c++;a="/"+a}return a.substring(c)||"/"};f.parseAuthority=function(a,b){a=f.parseUserinfo(a,b);return f.parseHost(a,b)};f.parseUserinfo=function(a,b){var c=a.indexOf("/");var d=a.lastIndexOf("@",c>-1?c:a.length-1);var e;if(d>-1&&(c===-1||d<c)){e=a.substring(0,d).split(":");b.username=e[0]?f.decode(e[0]):null;e.shift();b.password=e[0]?f.decode(e.join(":")):null;a=a.substring(d+1)}else{b.username=null;b.password=null}return a};f.parseQuery=function(a,b){if(!a){return{}}a=a.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"");if(!a){return{}}var c={};var d=a.split("&");var e=d.length;var g,i,j;for(var k=0;k<e;k++){g=d[k].split("=");i=f.decodeQuery(g.shift(),b);j=g.length?f.decodeQuery(g.join("="),b):null;if(h.call(c,i)){if(typeof c[i]==="string"){c[i]=[c[i]]}c[i].push(j)}else{c[i]=j}}return c};f.build=function(a){var b="";if(a.protocol){b+=a.protocol+":"}if(!a.urn&&(b||a.hostname)){b+="//"}b+=f.buildAuthority(a)||"";if(typeof a.path==="string"){if(a.path.charAt(0)!=="/"&&typeof a.hostname==="string"){b+="/"}b+=a.path}if(typeof a.query==="string"&&a.query){b+="?"+a.query}if(typeof a.fragment==="string"&&a.fragment){b+="#"+a.fragment}return b};f.buildHost=function(a){var b="";if(!a.hostname){return""}else if(f.ip6_expression.test(a.hostname)){b+="["+a.hostname+"]"}else{b+=a.hostname}if(a.port){b+=":"+a.port}return b};f.buildAuthority=function(a){return f.buildUserinfo(a)+f.buildHost(a)};f.buildUserinfo=function(a){var b="";if(a.username){b+=f.encode(a.username);if(a.password){b+=":"+f.encode(a.password)}b+="@"}return b};f.buildQuery=function(a,b,c){var d="";var e,g,i,j;for(g in a){if(h.call(a,g)&&g){if(k(a[g])){e={};for(i=0,j=a[g].length;i<j;i++){if(a[g][i]!==undefined&&e[a[g][i]+""]===undefined){d+="&"+f.buildQueryParameter(g,a[g][i],c);if(b!==true){e[a[g][i]+""]=true}}}}else if(a[g]!==undefined){d+="&"+f.buildQueryParameter(g,a[g],c)}}}return d.substring(1)};f.buildQueryParameter=function(a,b,c){return f.encodeQuery(a,c)+(b!==null?"="+f.encodeQuery(b,c):"")};f.addQuery=function(a,b,c){if(typeof b==="object"){for(var d in b){if(h.call(b,d)){f.addQuery(a,d,b[d])}}}else if(typeof b==="string"){if(a[b]===undefined){a[b]=c;return}else if(typeof a[b]==="string"){a[b]=[a[b]]}if(!k(c)){c=[c]}a[b]=(a[b]||[]).concat(c)}else{throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")}};f.removeQuery=function(a,b,c){var d,e,g;if(k(b)){for(d=0,e=b.length;d<e;d++){a[b[d]]=undefined}}else if(typeof b==="object"){for(g in b){if(h.call(b,g)){f.removeQuery(a,g,b[g])}}}else if(typeof b==="string"){if(c!==undefined){if(a[b]===c){a[b]=undefined}else if(k(a[b])){a[b]=l(a[b],c)}}else{a[b]=undefined}}else{throw new TypeError("URI.addQuery() accepts an object, string as the first parameter")}};f.hasQuery=function(a,b,c,d){if(typeof b==="object"){for(var e in b){if(h.call(b,e)){if(!f.hasQuery(a,e,b[e])){return false}}}return true}else if(typeof b!=="string"){throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter")}switch(j(c)){case"Undefined":return b in a;case"Boolean":var g=Boolean(k(a[b])?a[b].length:a[b]);return c===g;case"Function":return!!c(a[b],b,a);case"Array":if(!k(a[b])){return false}var i=d?m:n;return i(a[b],c);case"RegExp":if(!k(a[b])){return Boolean(a[b]&&a[b].match(c))}if(!d){return false}return m(a[b],c);case"Number":c=String(c);case"String":if(!k(a[b])){return a[b]===c}if(!d){return false}return m(a[b],c);default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}};f.commonPath=function(a,b){var c=Math.min(a.length,b.length);var d;for(d=0;d<c;d++){if(a.charAt(d)!==b.charAt(d)){d--;break}}if(d<1){return a.charAt(0)===b.charAt(0)&&a.charAt(0)==="/"?"/":""}if(a.charAt(d)!=="/"||b.charAt(d)!=="/"){d=a.substring(0,d).lastIndexOf("/")}return a.substring(0,d+1)};f.withinString=function(a,b,c){c||(c={});var d=c.start||f.findUri.start;var e=c.end||f.findUri.end;var g=c.trim||f.findUri.trim;var h=/[a-z0-9-]=["']?$/i;d.lastIndex=0;while(true){var i=d.exec(a);if(!i){break}var j=i.index;if(c.ignoreHtml){var k=a.slice(Math.max(j-3,0),j);if(k&&h.test(k)){continue}}var l=j+a.slice(j).search(e);var m=a.slice(j,l).replace(g,"");if(c.ignore&&c.ignore.test(m)){continue}l=j+m.length;var n=b(m,j,l,a);a=a.slice(0,j)+n+a.slice(l);d.lastIndex=j+n.length}d.lastIndex=0;return a};f.ensureValidHostname=function(b){if(b.match(f.invalid_hostname_characters)){if(!a){throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available')}if(a.toASCII(b).match(f.invalid_hostname_characters)){throw new TypeError('Hostname "'+b+'" contains characters other than [A-Z0-9.-]')}}};f.noConflict=function(a){if(a){var b={URI:this.noConflict()};if(d.URITemplate&&typeof d.URITemplate.noConflict==="function"){b.URITemplate=d.URITemplate.noConflict()}if(d.IPv6&&typeof d.IPv6.noConflict==="function"){b.IPv6=d.IPv6.noConflict()}if(d.SecondLevelDomains&&typeof d.SecondLevelDomains.noConflict==="function"){b.SecondLevelDomains=d.SecondLevelDomains.noConflict()}return b}else if(d.URI===this){d.URI=e}return this};g.build=function(a){if(a===true){this._deferred_build=true}else if(a===undefined||this._deferred_build){this._string=f.build(this._parts);this._deferred_build=false}return this};g.clone=function(){return new f(this)};g.valueOf=g.toString=function(){return this.build(false)._string};function t(a){return function(b,c){if(b===undefined){return this._parts[a]||""}else{this._parts[a]=b||null;this.build(!c);return this}}}function u(a,b){return function(c,d){if(c===undefined){return this._parts[a]||""}else{if(c!==null){c=c+"";if(c.charAt(0)===b){c=c.substring(1)}}this._parts[a]=c;this.build(!d);return this}}}g.protocol=t("protocol");g.username=t("username");g.password=t("password");g.hostname=t("hostname");g.port=t("port");g.query=u("query","?");g.fragment=u("fragment","#");g.search=function(a,b){var c=this.query(a,b);return typeof c==="string"&&c.length?"?"+c:c};g.hash=function(a,b){var c=this.fragment(a,b);return typeof c==="string"&&c.length?"#"+c:c};g.pathname=function(a,b){if(a===undefined||a===true){var c=this._parts.path||(this._parts.hostname?"/":"");return a?f.decodePath(c):c}else{this._parts.path=a?f.recodePath(a):"/";this.build(!b);return this}};g.path=g.pathname;g.href=function(a,b){var c;if(a===undefined){return this.toString()}this._string="";this._parts=f._parts();var d=a instanceof f;var e=typeof a==="object"&&(a.hostname||a.path||a.pathname);if(a.nodeName){var g=f.getDomAttribute(a);a=a[g]||"";e=false}if(!d&&e&&a.pathname!==undefined){a=a.toString()}if(typeof a==="string"||a instanceof String){this._parts=f.parse(String(a),this._parts)}else if(d||e){var i=d?a._parts:a;for(c in i){if(h.call(this._parts,c)){this._parts[c]=i[c]}}}else{throw new TypeError("invalid input")}this.build(!b);return this};g.is=function(a){var b=false;var d=false;var e=false;var g=false;var h=false;var i=false;var j=false;var k=!this._parts.urn;if(this._parts.hostname){k=false;d=f.ip4_expression.test(this._parts.hostname);e=f.ip6_expression.test(this._parts.hostname);b=d||e;g=!b;h=g&&c&&c.has(this._parts.hostname);i=g&&f.idn_expression.test(this._parts.hostname);j=g&&f.punycode_expression.test(this._parts.hostname)}switch(a.toLowerCase()){case"relative":return k;case"absolute":return!k;case"domain":case"name":return g;case"sld":return h;case"ip":return b;case"ip4":case"ipv4":case"inet4":return d;case"ip6":case"ipv6":case"inet6":return e;case"idn":return i;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return j}return null};var v=g.protocol;var w=g.port;var x=g.hostname;g.protocol=function(a,b){if(a!==undefined){if(a){a=a.replace(/:(\/\/)?$/,"");if(!a.match(f.protocol_expression)){throw new TypeError('Protocol "'+a+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]")}}}return v.call(this,a,b)};g.scheme=g.protocol;g.port=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a!==undefined){if(a===0){a=null}if(a){a+="";if(a.charAt(0)===":"){a=a.substring(1)}if(a.match(/[^0-9]/)){throw new TypeError('Port "'+a+'" contains characters other than [0-9]')}}}return w.call(this,a,b)};g.hostname=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a!==undefined){var c={};f.parseHost(a,c);a=c.hostname}return x.call(this,a,b)};g.host=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a===undefined){return this._parts.hostname?f.buildHost(this._parts):""}else{f.parseHost(a,this._parts);this.build(!b);return this}};g.authority=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a===undefined){return this._parts.hostname?f.buildAuthority(this._parts):""}else{f.parseAuthority(a,this._parts);this.build(!b);return this}};g.userinfo=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a===undefined){if(!this._parts.username){return""}var c=f.buildUserinfo(this._parts);return c.substring(0,c.length-1)}else{if(a[a.length-1]!=="@"){a+="@"}f.parseUserinfo(a,this._parts);this.build(!b);return this}};g.resource=function(a,b){var c;if(a===undefined){return this.path()+this.search()+this.hash()}c=f.parse(a);this._parts.path=c.path;this._parts.query=c.query;this._parts.fragment=c.fragment;this.build(!b);return this};g.subdomain=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a===undefined){if(!this._parts.hostname||this.is("IP")){return""}var c=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,c)||""}else{var d=this._parts.hostname.length-this.domain().length;var e=this._parts.hostname.substring(0,d);var g=new RegExp("^"+i(e));if(a&&a.charAt(a.length-1)!=="."){a+="."}if(a){f.ensureValidHostname(a)}this._parts.hostname=this._parts.hostname.replace(g,a);this.build(!b);return this}};g.domain=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(typeof a==="boolean"){b=a;a=undefined}if(a===undefined){if(!this._parts.hostname||this.is("IP")){return""}var c=this._parts.hostname.match(/\./g);if(c&&c.length<2){return this._parts.hostname}var d=this._parts.hostname.length-this.tld(b).length-1;d=this._parts.hostname.lastIndexOf(".",d-1)+1;return this._parts.hostname.substring(d)||""}else{if(!a){throw new TypeError("cannot set domain empty")}f.ensureValidHostname(a);if(!this._parts.hostname||this.is("IP")){this._parts.hostname=a}else{var e=new RegExp(i(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(e,a)}this.build(!b);return this}};g.tld=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(typeof a==="boolean"){b=a;a=undefined}if(a===undefined){if(!this._parts.hostname||this.is("IP")){return""}var d=this._parts.hostname.lastIndexOf(".");var e=this._parts.hostname.substring(d+1);if(b!==true&&c&&c.list[e.toLowerCase()]){return c.get(this._parts.hostname)||e}return e}else{var f;if(!a){throw new TypeError("cannot set TLD empty")}else if(a.match(/[^a-zA-Z0-9-]/)){if(c&&c.is(a)){f=new RegExp(i(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(f,a)}else{throw new TypeError('TLD "'+a+'" contains characters other than [A-Z0-9]')}}else if(!this._parts.hostname||this.is("IP")){throw new ReferenceError("cannot set TLD on non-domain host")}else{f=new RegExp(i(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(f,a)}this.build(!b);return this}};g.directory=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a===undefined||a===true){if(!this._parts.path&&!this._parts.hostname){return""}if(this._parts.path==="/"){return"/"}var c=this._parts.path.length-this.filename().length-1;var d=this._parts.path.substring(0,c)||(this._parts.hostname?"/":"");return a?f.decodePath(d):d}else{var e=this._parts.path.length-this.filename().length;var g=this._parts.path.substring(0,e);var h=new RegExp("^"+i(g));if(!this.is("relative")){if(!a){a="/"}if(a.charAt(0)!=="/"){a="/"+a}}if(a&&a.charAt(a.length-1)!=="/"){a+="/"}a=f.recodePath(a);this._parts.path=this._parts.path.replace(h,a);this.build(!b);return this}};g.filename=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a===undefined||a===true){if(!this._parts.path||this._parts.path==="/"){return""}var c=this._parts.path.lastIndexOf("/");var d=this._parts.path.substring(c+1);return a?f.decodePathSegment(d):d}else{var e=false;if(a.charAt(0)==="/"){a=a.substring(1)}if(a.match(/\.?\//)){e=true}var g=new RegExp(i(this.filename())+"$");a=f.recodePath(a);this._parts.path=this._parts.path.replace(g,a);if(e){this.normalizePath(b)}else{this.build(!b)}return this}};g.suffix=function(a,b){if(this._parts.urn){return a===undefined?"":this}if(a===undefined||a===true){if(!this._parts.path||this._parts.path==="/"){return""}var c=this.filename();var d=c.lastIndexOf(".");var e,g;if(d===-1){return""}e=c.substring(d+1);g=/^[a-z0-9%]+$/i.test(e)?e:"";return a?f.decodePathSegment(g):g}else{if(a.charAt(0)==="."){a=a.substring(1)}var h=this.suffix();var j;if(!h){if(!a){return this}this._parts.path+="."+f.recodePath(a)}else if(!a){j=new RegExp(i("."+h)+"$")}else{j=new RegExp(i(h)+"$")}if(j){a=f.recodePath(a);this._parts.path=this._parts.path.replace(j,a)}this.build(!b);return this}};g.segment=function(a,b,c){var d=this._parts.urn?":":"/";var e=this.path();var f=e.substring(0,1)==="/";var g=e.split(d);if(a!==undefined&&typeof a!=="number"){c=b;b=a;a=undefined}if(a!==undefined&&typeof a!=="number"){throw new Error('Bad segment "'+a+'", must be 0-based integer')}if(f){g.shift()}if(a<0){a=Math.max(g.length+a,0)}if(b===undefined){return a===undefined?g:g[a]}else if(a===null||g[a]===undefined){if(k(b)){g=[];for(var h=0,i=b.length;h<i;h++){if(!b[h].length&&(!g.length||!g[g.length-1].length)){continue}if(g.length&&!g[g.length-1].length){g.pop()}g.push(b[h])}}else if(b||typeof b==="string"){if(g[g.length-1]===""){g[g.length-1]=b}else{g.push(b)}}}else{if(b){g[a]=b}else{g.splice(a,1)}}if(f){g.unshift("")}return this.path(g.join(d),c)};g.segmentCoded=function(a,b,c){var d,e,g;if(typeof a!=="number"){c=b;b=a;a=undefined}if(b===undefined){d=this.segment(a,b,c);if(!k(d)){d=d!==undefined?f.decode(d):undefined}else{for(e=0,g=d.length;e<g;e++){d[e]=f.decode(d[e])}}return d}if(!k(b)){b=typeof b==="string"||b instanceof String?f.encode(b):b}else{for(e=0,g=b.length;e<g;e++){b[e]=f.decode(b[e])}}return this.segment(a,b,c)};var y=g.query;g.query=function(a,b){if(a===true){return f.parseQuery(this._parts.query,this._parts.escapeQuerySpace)}else if(typeof a==="function"){var c=f.parseQuery(this._parts.query,this._parts.escapeQuerySpace);var d=a.call(this,c);this._parts.query=f.buildQuery(d||c,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!b);return this}else if(a!==undefined&&typeof a!=="string"){this._parts.query=f.buildQuery(a,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!b);return this}else{return y.call(this,a,b)}};g.setQuery=function(a,b,c){var d=f.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof a==="string"||a instanceof String){d[a]=b!==undefined?b:null}else if(typeof a==="object"){for(var e in a){if(h.call(a,e)){d[e]=a[e]}}}else{throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")}this._parts.query=f.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);if(typeof a!=="string"){c=b}this.build(!c);return this};g.addQuery=function(a,b,c){var d=f.parseQuery(this._parts.query,this._parts.escapeQuerySpace);f.addQuery(d,a,b===undefined?null:b);this._parts.query=f.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);if(typeof a!=="string"){c=b}this.build(!c);return this};g.removeQuery=function(a,b,c){var d=f.parseQuery(this._parts.query,this._parts.escapeQuerySpace);f.removeQuery(d,a,b);this._parts.query=f.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);if(typeof a!=="string"){c=b}this.build(!c);return this};g.hasQuery=function(a,b,c){var d=f.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return f.hasQuery(d,a,b,c)};g.setSearch=g.setQuery;g.addSearch=g.addQuery;g.removeSearch=g.removeQuery;g.hasSearch=g.hasQuery;g.normalize=function(){if(this._parts.urn){return this.normalizeProtocol(false).normalizeQuery(false).normalizeFragment(false).build()}return this.normalizeProtocol(false).normalizeHostname(false).normalizePort(false).normalizePath(false).normalizeQuery(false).normalizeFragment(false).build()};g.normalizeProtocol=function(a){if(typeof this._parts.protocol==="string"){this._parts.protocol=this._parts.protocol.toLowerCase();this.build(!a)}return this};g.normalizeHostname=function(c){if(this._parts.hostname){if(this.is("IDN")&&a){this._parts.hostname=a.toASCII(this._parts.hostname)}else if(this.is("IPv6")&&b){this._parts.hostname=b.best(this._parts.hostname)}this._parts.hostname=this._parts.hostname.toLowerCase();this.build(!c)}return this};g.normalizePort=function(a){if(typeof this._parts.protocol==="string"&&this._parts.port===f.defaultPorts[this._parts.protocol]){this._parts.port=null;this.build(!a)}return this};g.normalizePath=function(a){if(this._parts.urn){return this}if(!this._parts.path||this._parts.path==="/"){return this}var b;var c=this._parts.path;var d="";var e,g;if(c.charAt(0)!=="/"){b=true;c="/"+c}c=c.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/");if(b){d=c.substring(1).match(/^(\.\.\/)+/)||"";if(d){d=d[0]}}while(true){e=c.indexOf("/..");if(e===-1){break}else if(e===0){c=c.substring(3);continue}g=c.substring(0,e).lastIndexOf("/");if(g===-1){g=e}c=c.substring(0,g)+c.substring(e+3)}if(b&&this.is("relative")){c=d+c.substring(1)}c=f.recodePath(c);this._parts.path=c;this.build(!a);return this};g.normalizePathname=g.normalizePath;g.normalizeQuery=function(a){if(typeof this._parts.query==="string"){if(!this._parts.query.length){this._parts.query=null}else{this.query(f.parseQuery(this._parts.query,this._parts.escapeQuerySpace))}this.build(!a)}return this};g.normalizeFragment=function(a){if(!this._parts.fragment){this._parts.fragment=null;this.build(!a)}return this};g.normalizeSearch=g.normalizeQuery;g.normalizeHash=g.normalizeFragment;g.iso8859=function(){var a=f.encode;var b=f.decode;f.encode=escape;f.decode=decodeURIComponent;this.normalize();f.encode=a;f.decode=b;return this};g.unicode=function(){var a=f.encode;var b=f.decode;f.encode=p;f.decode=unescape;this.normalize();f.encode=a;f.decode=b;return this};g.readable=function(){var b=this.clone();b.username("").password("").normalize();var c="";if(b._parts.protocol){c+=b._parts.protocol+"://"}if(b._parts.hostname){if(b.is("punycode")&&a){c+=a.toUnicode(b._parts.hostname);if(b._parts.port){c+=":"+b._parts.port}}else{c+=b.host()}}if(b._parts.hostname&&b._parts.path&&b._parts.path.charAt(0)!=="/"){c+="/"}c+=b.path(true);if(b._parts.query){var d="";for(var e=0,g=b._parts.query.split("&"),h=g.length;e<h;e++){var i=(g[e]||"").split("=");d+="&"+f.decodeQuery(i[0],this._parts.escapeQuerySpace).replace(/&/g,"%26");if(i[1]!==undefined){d+="="+f.decodeQuery(i[1],this._parts.escapeQuerySpace).replace(/&/g,"%26")}}c+="?"+d.substring(1)}c+=f.decodeQuery(b.hash(),true);return c};g.absoluteTo=function(a){var b=this.clone();var c=["protocol","username","password","hostname","port"];var d,e,g;if(this._parts.urn){throw new Error("URNs do not have any generally defined hierarchical components")}if(!(a instanceof f)){a=new f(a)}if(!b._parts.protocol){b._parts.protocol=a._parts.protocol}if(this._parts.hostname){return b}for(e=0;g=c[e];e++){b._parts[g]=a._parts[g]}if(!b._parts.path){b._parts.path=a._parts.path;if(!b._parts.query){b._parts.query=a._parts.query}}else if(b._parts.path.substring(-2)===".."){b._parts.path+="/"}if(b.path().charAt(0)!=="/"){d=a.directory();b._parts.path=(d?d+"/":"")+b._parts.path;b.normalizePath()}b.build();return b};g.relativeTo=function(a){var b=this.clone().normalize();var c,d,e,g,h;if(b._parts.urn){throw new Error("URNs do not have any generally defined hierarchical components")}a=new f(a).normalize();c=b._parts;d=a._parts;g=b.path();h=a.path();if(g.charAt(0)!=="/"){throw new Error("URI is already relative")}if(h.charAt(0)!=="/"){throw new Error("Cannot calculate a URI relative to another relative URI")}if(c.protocol===d.protocol){c.protocol=null}if(c.username!==d.username||c.password!==d.password){return b.build()}if(c.protocol!==null||c.username!==null||c.password!==null){return b.build()}if(c.hostname===d.hostname&&c.port===d.port){c.hostname=null;c.port=null}else{return b.build()}if(g===h){c.path="";return b.build()}e=f.commonPath(b.path(),a.path());if(!e){return b.build()}var i=d.path.substring(e.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");c.path=i+c.path.substring(e.length);return b.build()};g.equals=function(a){var b=this.clone();var c=new f(a);var d={};var e={};var g={};var i,j,l;b.normalize();c.normalize();if(b.toString()===c.toString()){return true}i=b.query();j=c.query();b.query("");c.query("");if(b.toString()!==c.toString()){return false}if(i.length!==j.length){return false}d=f.parseQuery(i,this._parts.escapeQuerySpace);e=f.parseQuery(j,this._parts.escapeQuerySpace);for(l in d){if(h.call(d,l)){if(!k(d[l])){if(d[l]!==e[l]){return false}}else if(!n(d[l],e[l])){return false}g[l]=true}}for(l in e){if(h.call(e,l)){if(!g[l]){return false}}}return true};g.duplicateQueryParameters=function(a){this._parts.duplicateQueryParameters=!!a;return this};g.escapeQuerySpace=function(a){this._parts.escapeQuerySpace=!!a;return this};return f});
|
(function(){var m=Math,mround=function(r){return r>>0;},vendor=(/webkit/i).test(navigator.appVersion)?'webkit':(/firefox/i).test(navigator.userAgent)?'Moz':'opera'in window?'O':'',isAndroid=(/android/gi).test(navigator.appVersion),isIDevice=(/iphone|ipad/gi).test(navigator.appVersion),isPlaybook=(/playbook/gi).test(navigator.appVersion),isTouchPad=(/hp-tablet/gi).test(navigator.appVersion),has3d='WebKitCSSMatrix'in window&&'m11'in new WebKitCSSMatrix(),hasTouch='ontouchstart'in window&&!isTouchPad,hasTransform=vendor+'Transform'in document.documentElement.style,hasTransitionEnd=isIDevice||isPlaybook,nextFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){return setTimeout(callback,1);}})(),cancelFrame=(function(){return window.cancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout})(),RESIZE_EV='onorientationchange'in window?'orientationchange':'resize',START_EV=hasTouch?'touchstart':'mousedown',MOVE_EV=hasTouch?'touchmove':'mousemove',END_EV=hasTouch?'touchend':'mouseup',CANCEL_EV=hasTouch?'touchcancel':'mouseup',WHEEL_EV=vendor=='Moz'?'DOMMouseScroll':'mousewheel',trnOpen='translate'+(has3d?'3d(':'('),trnClose=has3d?',0)':')',iScroll=function(el,options){var that=this,doc=document,i;that.wrapper=typeof el=='object'?el:doc.getElementById(el);that.wrapper.style.overflow='hidden';that.scroller=that.wrapper.children[0];that.options={hScroll:true,vScroll:true,x:0,y:0,bounce:true,bounceLock:false,momentum:true,lockDirection:true,useTransform:true,useTransition:false,topOffset:0,checkDOMChanges:false,hScrollbar:true,vScrollbar:true,fixedScrollbar:isAndroid,hideScrollbar:isIDevice,fadeScrollbar:isIDevice&&has3d,scrollbarClass:'',zoom:false,zoomMin:1,zoomMax:4,doubleTapZoom:2,wheelAction:'scroll',snap:false,snapThreshold:1,onRefresh:null,onBeforeScrollStart:function(e){e.preventDefault();},onScrollStart:null,onBeforeScrollMove:null,onScrollMove:null,onBeforeScrollEnd:null,onScrollEnd:null,onTouchEnd:null,onDestroy:null,onZoomStart:null,onZoom:null,onZoomEnd:null};for(i in options)that.options[i]=options[i];that.x=that.options.x;that.y=that.options.y;that.options.useTransform=hasTransform?that.options.useTransform:false;that.options.hScrollbar=that.options.hScroll&&that.options.hScrollbar;that.options.vScrollbar=that.options.vScroll&&that.options.vScrollbar;that.options.zoom=that.options.useTransform&&that.options.zoom;that.options.useTransition=hasTransitionEnd&&that.options.useTransition;if(that.options.zoom&&isAndroid){trnOpen='translate(';trnClose=')';}
that.scroller.style[vendor+'TransitionProperty']=that.options.useTransform?'-'+vendor.toLowerCase()+'-transform':'top left';that.scroller.style[vendor+'TransitionDuration']='0';that.scroller.style[vendor+'TransformOrigin']='0 0';if(that.options.useTransition)that.scroller.style[vendor+'TransitionTimingFunction']='cubic-bezier(0.33,0.66,0.66,1)';if(that.options.useTransform)that.scroller.style[vendor+'Transform']=trnOpen+that.x+'px,'+that.y+'px'+trnClose;else that.scroller.style.cssText+=';position:absolute;top:'+that.y+'px;left:'+that.x+'px';if(that.options.useTransition)that.options.fixedScrollbar=true;that.refresh();that._bind(RESIZE_EV,window);that._bind(START_EV);if(!hasTouch){that._bind('mouseout',that.wrapper);if(that.options.wheelAction!='none')
that._bind(WHEEL_EV);}
if(that.options.checkDOMChanges)that.checkDOMTime=setInterval(function(){that._checkDOMChanges();},500);};iScroll.prototype={enabled:true,x:0,y:0,steps:[],scale:1,currPageX:0,currPageY:0,pagesX:[],pagesY:[],aniTime:null,wheelZoomCount:0,handleEvent:function(e){var that=this;switch(e.type){case START_EV:if(!hasTouch&&e.button!==0)return;that._start(e);break;case MOVE_EV:that._move(e);break;case END_EV:case CANCEL_EV:that._end(e);break;case RESIZE_EV:that._resize();break;case WHEEL_EV:that._wheel(e);break;case'mouseout':that._mouseout(e);break;case'webkitTransitionEnd':that._transitionEnd(e);break;}},_checkDOMChanges:function(){if(this.moved||this.zoomed||this.animating||(this.scrollerW==this.scroller.offsetWidth*this.scale&&this.scrollerH==this.scroller.offsetHeight*this.scale))return;this.refresh();},_scrollbar:function(dir){var that=this,doc=document,bar;if(!that[dir+'Scrollbar']){if(that[dir+'ScrollbarWrapper']){if(hasTransform)that[dir+'ScrollbarIndicator'].style[vendor+'Transform']='';that[dir+'ScrollbarWrapper'].parentNode.removeChild(that[dir+'ScrollbarWrapper']);that[dir+'ScrollbarWrapper']=null;that[dir+'ScrollbarIndicator']=null;}
return;}
if(!that[dir+'ScrollbarWrapper']){bar=doc.createElement('div');if(that.options.scrollbarClass)bar.className=that.options.scrollbarClass+dir.toUpperCase();else bar.style.cssText='position:absolute;z-index:100;'+(dir=='h'?'height:7px;bottom:1px;left:2px;right:'+(that.vScrollbar?'7':'2')+'px':'width:7px;bottom:'+(that.hScrollbar?'7':'2')+'px;top:2px;right:1px');bar.style.cssText+=';pointer-events:none;-'+vendor+'-transition-property:opacity;-'+vendor+'-transition-duration:'+(that.options.fadeScrollbar?'350ms':'0')+';overflow:hidden;opacity:'+(that.options.hideScrollbar?'0':'1');that.wrapper.appendChild(bar);that[dir+'ScrollbarWrapper']=bar;bar=doc.createElement('div');if(!that.options.scrollbarClass){bar.style.cssText='position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);-'+vendor+'-background-clip:padding-box;-'+vendor+'-box-sizing:border-box;'+(dir=='h'?'height:100%':'width:100%')+';-'+vendor+'-border-radius:3px;border-radius:3px';}
bar.style.cssText+=';pointer-events:none;-'+vendor+'-transition-property:-'+vendor+'-transform;-'+vendor+'-transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);-'+vendor+'-transition-duration:0;-'+vendor+'-transform:'+trnOpen+'0,0'+trnClose;if(that.options.useTransition)bar.style.cssText+=';-'+vendor+'-transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)';that[dir+'ScrollbarWrapper'].appendChild(bar);that[dir+'ScrollbarIndicator']=bar;}
if(dir=='h'){that.hScrollbarSize=that.hScrollbarWrapper.clientWidth;that.hScrollbarIndicatorSize=m.max(mround(that.hScrollbarSize*that.hScrollbarSize/that.scrollerW),8);that.hScrollbarIndicator.style.width=that.hScrollbarIndicatorSize+'px';that.hScrollbarMaxScroll=that.hScrollbarSize-that.hScrollbarIndicatorSize;that.hScrollbarProp=that.hScrollbarMaxScroll/that.maxScrollX;}else{that.vScrollbarSize=that.vScrollbarWrapper.clientHeight;that.vScrollbarIndicatorSize=m.max(mround(that.vScrollbarSize*that.vScrollbarSize/that.scrollerH),8);that.vScrollbarIndicator.style.height=that.vScrollbarIndicatorSize+'px';that.vScrollbarMaxScroll=that.vScrollbarSize-that.vScrollbarIndicatorSize;that.vScrollbarProp=that.vScrollbarMaxScroll/that.maxScrollY;}
that._scrollbarPos(dir,true);},_resize:function(){var that=this;setTimeout(function(){that.refresh();},isAndroid?200:0);},_pos:function(x,y){x=this.hScroll?x:0;y=this.vScroll?y:0;if(this.options.useTransform){this.scroller.style[vendor+'Transform']=trnOpen+x+'px,'+y+'px'+trnClose+' scale('+this.scale+')';}else{x=mround(x);y=mround(y);this.scroller.style.left=x+'px';this.scroller.style.top=y+'px';}
this.x=x;this.y=y;this._scrollbarPos('h');this._scrollbarPos('v');},_scrollbarPos:function(dir,hidden){var that=this,pos=dir=='h'?that.x:that.y,size;if(!that[dir+'Scrollbar'])return;pos=that[dir+'ScrollbarProp']*pos;if(pos<0){if(!that.options.fixedScrollbar){size=that[dir+'ScrollbarIndicatorSize']+mround(pos*3);if(size<8)size=8;that[dir+'ScrollbarIndicator'].style[dir=='h'?'width':'height']=size+'px';}
pos=0;}else if(pos>that[dir+'ScrollbarMaxScroll']){if(!that.options.fixedScrollbar){size=that[dir+'ScrollbarIndicatorSize']-mround((pos-that[dir+'ScrollbarMaxScroll'])*3);if(size<8)size=8;that[dir+'ScrollbarIndicator'].style[dir=='h'?'width':'height']=size+'px';pos=that[dir+'ScrollbarMaxScroll']+(that[dir+'ScrollbarIndicatorSize']-size);}else{pos=that[dir+'ScrollbarMaxScroll'];}}
that[dir+'ScrollbarWrapper'].style[vendor+'TransitionDelay']='0';that[dir+'ScrollbarWrapper'].style.opacity=hidden&&that.options.hideScrollbar?'0':'1';that[dir+'ScrollbarIndicator'].style[vendor+'Transform']=trnOpen+(dir=='h'?pos+'px,0':'0,'+pos+'px')+trnClose;},_start:function(e){var that=this,point=hasTouch?e.touches[0]:e,matrix,x,y,c1,c2;if(!that.enabled)return;if(that.options.onBeforeScrollStart)that.options.onBeforeScrollStart.call(that,e);if(that.options.useTransition||that.options.zoom)that._transitionTime(0);that.moved=false;that.animating=false;that.zoomed=false;that.distX=0;that.distY=0;that.absDistX=0;that.absDistY=0;that.dirX=0;that.dirY=0;if(that.options.zoom&&hasTouch&&e.touches.length>1){c1=m.abs(e.touches[0].pageX-e.touches[1].pageX);c2=m.abs(e.touches[0].pageY-e.touches[1].pageY);that.touchesDistStart=m.sqrt(c1*c1+c2*c2);that.originX=m.abs(e.touches[0].pageX+e.touches[1].pageX-that.wrapperOffsetLeft*2)/2-that.x;that.originY=m.abs(e.touches[0].pageY+e.touches[1].pageY-that.wrapperOffsetTop*2)/2-that.y;if(that.options.onZoomStart)that.options.onZoomStart.call(that,e);}
if(that.options.momentum){if(that.options.useTransform){matrix=getComputedStyle(that.scroller,null)[vendor+'Transform'].replace(/[^0-9-.,]/g,'').split(',');x=matrix[4]*1;y=matrix[5]*1;}else{x=getComputedStyle(that.scroller,null).left.replace(/[^0-9-]/g,'')*1;y=getComputedStyle(that.scroller,null).top.replace(/[^0-9-]/g,'')*1;}
if(x!=that.x||y!=that.y){if(that.options.useTransition)that._unbind('webkitTransitionEnd');else cancelFrame(that.aniTime);that.steps=[];that._pos(x,y);}}
that.absStartX=that.x;that.absStartY=that.y;that.startX=that.x;that.startY=that.y;that.pointX=point.pageX;that.pointY=point.pageY;that.startTime=e.timeStamp||Date.now();if(that.options.onScrollStart)that.options.onScrollStart.call(that,e);that._bind(MOVE_EV);that._bind(END_EV);that._bind(CANCEL_EV);},_move:function(e){var that=this,point=hasTouch?e.touches[0]:e,deltaX=point.pageX-that.pointX,deltaY=point.pageY-that.pointY,newX=that.x+deltaX,newY=that.y+deltaY,c1,c2,scale,timestamp=e.timeStamp||Date.now();if(that.options.onBeforeScrollMove)that.options.onBeforeScrollMove.call(that,e);if(that.options.zoom&&hasTouch&&e.touches.length>1){c1=m.abs(e.touches[0].pageX-e.touches[1].pageX);c2=m.abs(e.touches[0].pageY-e.touches[1].pageY);that.touchesDist=m.sqrt(c1*c1+c2*c2);that.zoomed=true;scale=1/that.touchesDistStart*that.touchesDist*this.scale;if(scale<that.options.zoomMin)scale=0.5*that.options.zoomMin*Math.pow(2.0,scale/that.options.zoomMin);else if(scale>that.options.zoomMax)scale=2.0*that.options.zoomMax*Math.pow(0.5,that.options.zoomMax/scale);that.lastScale=scale/this.scale;newX=this.originX-this.originX*that.lastScale+this.x,newY=this.originY-this.originY*that.lastScale+this.y;this.scroller.style[vendor+'Transform']=trnOpen+newX+'px,'+newY+'px'+trnClose+' scale('+scale+')';if(that.options.onZoom)that.options.onZoom.call(that,e);return;}
that.pointX=point.pageX;that.pointY=point.pageY;if(newX>0||newX<that.maxScrollX){newX=that.options.bounce?that.x+(deltaX/2):newX>=0||that.maxScrollX>=0?0:that.maxScrollX;}
if(newY>that.minScrollY||newY<that.maxScrollY){newY=that.options.bounce?that.y+(deltaY/2):newY>=that.minScrollY||that.maxScrollY>=0?that.minScrollY:that.maxScrollY;}
if(that.absDistX<6&&that.absDistY<6){that.distX+=deltaX;that.distY+=deltaY;that.absDistX=m.abs(that.distX);that.absDistY=m.abs(that.distY);return;}
if(that.options.lockDirection){if(that.absDistX>that.absDistY+5){newY=that.y;deltaY=0;}else if(that.absDistY>that.absDistX+5){newX=that.x;deltaX=0;}}
that.moved=true;that._pos(newX,newY);that.dirX=deltaX>0?-1:deltaX<0?1:0;that.dirY=deltaY>0?-1:deltaY<0?1:0;if(timestamp-that.startTime>300){that.startTime=timestamp;that.startX=that.x;that.startY=that.y;}
if(that.options.onScrollMove)that.options.onScrollMove.call(that,e);},_end:function(e){if(hasTouch&&e.touches.length!=0)return;var that=this,point=hasTouch?e.changedTouches[0]:e,target,ev,momentumX={dist:0,time:0},momentumY={dist:0,time:0},duration=(e.timeStamp||Date.now())-that.startTime,newPosX=that.x,newPosY=that.y,distX,distY,newDuration,snap,scale;that._unbind(MOVE_EV);that._unbind(END_EV);that._unbind(CANCEL_EV);if(that.options.onBeforeScrollEnd)that.options.onBeforeScrollEnd.call(that,e);if(that.zoomed){scale=that.scale*that.lastScale;scale=Math.max(that.options.zoomMin,scale);scale=Math.min(that.options.zoomMax,scale);that.lastScale=scale/that.scale;that.scale=scale;that.x=that.originX-that.originX*that.lastScale+that.x;that.y=that.originY-that.originY*that.lastScale+that.y;that.scroller.style[vendor+'TransitionDuration']='200ms';that.scroller.style[vendor+'Transform']=trnOpen+that.x+'px,'+that.y+'px'+trnClose+' scale('+that.scale+')';that.zoomed=false;that.refresh();if(that.options.onZoomEnd)that.options.onZoomEnd.call(that,e);return;}
if(!that.moved){if(hasTouch){if(that.doubleTapTimer&&that.options.zoom){clearTimeout(that.doubleTapTimer);that.doubleTapTimer=null;if(that.options.onZoomStart)that.options.onZoomStart.call(that,e);that.zoom(that.pointX,that.pointY,that.scale==1?that.options.doubleTapZoom:1);if(that.options.onZoomEnd){setTimeout(function(){that.options.onZoomEnd.call(that,e);},200);}}else{that.doubleTapTimer=setTimeout(function(){that.doubleTapTimer=null;target=point.target;while(target.nodeType!=1)target=target.parentNode;if(target.tagName!='SELECT'&&target.tagName!='INPUT'&&target.tagName!='TEXTAREA'){ev=document.createEvent('MouseEvents');ev.initMouseEvent('click',true,true,e.view,1,point.screenX,point.screenY,point.clientX,point.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null);ev._fake=true;target.dispatchEvent(ev);}},that.options.zoom?250:0);}}
that._resetPos(200);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e);return;}
if(duration<300&&that.options.momentum){momentumX=newPosX?that._momentum(newPosX-that.startX,duration,-that.x,that.scrollerW-that.wrapperW+that.x,that.options.bounce?that.wrapperW:0):momentumX;momentumY=newPosY?that._momentum(newPosY-that.startY,duration,-that.y,(that.maxScrollY<0?that.scrollerH-that.wrapperH+that.y-that.minScrollY:0),that.options.bounce?that.wrapperH:0):momentumY;newPosX=that.x+momentumX.dist;newPosY=that.y+momentumY.dist;if((that.x>0&&newPosX>0)||(that.x<that.maxScrollX&&newPosX<that.maxScrollX))momentumX={dist:0,time:0};if((that.y>that.minScrollY&&newPosY>that.minScrollY)||(that.y<that.maxScrollY&&newPosY<that.maxScrollY))momentumY={dist:0,time:0};}
if(momentumX.dist||momentumY.dist){newDuration=m.max(m.max(momentumX.time,momentumY.time),10);if(that.options.snap){distX=newPosX-that.absStartX;distY=newPosY-that.absStartY;if(m.abs(distX)<that.options.snapThreshold&&m.abs(distY)<that.options.snapThreshold){that.scrollTo(that.absStartX,that.absStartY,200);}
else{snap=that._snap(newPosX,newPosY);newPosX=snap.x;newPosY=snap.y;newDuration=m.max(snap.time,newDuration);}}
that.scrollTo(mround(newPosX),mround(newPosY),newDuration);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e);return;}
if(that.options.snap){distX=newPosX-that.absStartX;distY=newPosY-that.absStartY;if(m.abs(distX)<that.options.snapThreshold&&m.abs(distY)<that.options.snapThreshold)that.scrollTo(that.absStartX,that.absStartY,200);else{snap=that._snap(that.x,that.y);if(snap.x!=that.x||snap.y!=that.y)that.scrollTo(snap.x,snap.y,snap.time);}
if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e);return;}
that._resetPos(200);if(that.options.onTouchEnd)that.options.onTouchEnd.call(that,e);},_resetPos:function(time){var that=this,resetX=that.x>=0?0:that.x<that.maxScrollX?that.maxScrollX:that.x,resetY=that.y>=that.minScrollY||that.maxScrollY>0?that.minScrollY:that.y<that.maxScrollY?that.maxScrollY:that.y;if(resetX==that.x&&resetY==that.y){if(that.moved){that.moved=false;if(that.options.onScrollEnd)that.options.onScrollEnd.call(that);}
if(that.hScrollbar&&that.options.hideScrollbar){if(vendor=='webkit')that.hScrollbarWrapper.style[vendor+'TransitionDelay']='300ms';that.hScrollbarWrapper.style.opacity='0';}
if(that.vScrollbar&&that.options.hideScrollbar){if(vendor=='webkit')that.vScrollbarWrapper.style[vendor+'TransitionDelay']='300ms';that.vScrollbarWrapper.style.opacity='0';}
return;}
that.scrollTo(resetX,resetY,time||0);},_wheel:function(e){var that=this,wheelDeltaX,wheelDeltaY,deltaX,deltaY,deltaScale;if('wheelDeltaX'in e){wheelDeltaX=e.wheelDeltaX/12;wheelDeltaY=e.wheelDeltaY/12;}else if('detail'in e){wheelDeltaX=wheelDeltaY=-e.detail*3;}else{wheelDeltaX=wheelDeltaY=-e.wheelDelta;}
if(that.options.wheelAction=='zoom'){deltaScale=that.scale*Math.pow(2,1/3*(wheelDeltaY?wheelDeltaY/Math.abs(wheelDeltaY):0));if(deltaScale<that.options.zoomMin)deltaScale=that.options.zoomMin;if(deltaScale>that.options.zoomMax)deltaScale=that.options.zoomMax;if(deltaScale!=that.scale){if(!that.wheelZoomCount&&that.options.onZoomStart)that.options.onZoomStart.call(that,e);that.wheelZoomCount++;that.zoom(e.pageX,e.pageY,deltaScale,400);setTimeout(function(){that.wheelZoomCount--;if(!that.wheelZoomCount&&that.options.onZoomEnd)that.options.onZoomEnd.call(that,e);},400);}
return;}
deltaX=that.x+wheelDeltaX;deltaY=that.y+wheelDeltaY;if(deltaX>0)deltaX=0;else if(deltaX<that.maxScrollX)deltaX=that.maxScrollX;if(deltaY>that.minScrollY)deltaY=that.minScrollY;else if(deltaY<that.maxScrollY)deltaY=that.maxScrollY;that.scrollTo(deltaX,deltaY,0);},_mouseout:function(e){var t=e.relatedTarget;if(!t){this._end(e);return;}
while(t=t.parentNode)if(t==this.wrapper)return;this._end(e);},_transitionEnd:function(e){var that=this;if(e.target!=that.scroller)return;that._unbind('webkitTransitionEnd');that._startAni();},_startAni:function(){var that=this,startX=that.x,startY=that.y,startTime=Date.now(),step,easeOut,animate;if(that.animating)return;if(!that.steps.length){that._resetPos(400);return;}
step=that.steps.shift();if(step.x==startX&&step.y==startY)step.time=0;that.animating=true;that.moved=true;if(that.options.useTransition){that._transitionTime(step.time);that._pos(step.x,step.y);that.animating=false;if(step.time)that._bind('webkitTransitionEnd');else that._resetPos(0);return;}
animate=function(){var now=Date.now(),newX,newY;if(now>=startTime+step.time){that._pos(step.x,step.y);that.animating=false;if(that.options.onAnimationEnd)that.options.onAnimationEnd.call(that);that._startAni();return;}
now=(now-startTime)/step.time-1;easeOut=m.sqrt(1-now*now);newX=(step.x-startX)*easeOut+startX;newY=(step.y-startY)*easeOut+startY;that._pos(newX,newY);if(that.animating)that.aniTime=nextFrame(animate);};animate();},_transitionTime:function(time){time+='ms';this.scroller.style[vendor+'TransitionDuration']=time;if(this.hScrollbar)this.hScrollbarIndicator.style[vendor+'TransitionDuration']=time;if(this.vScrollbar)this.vScrollbarIndicator.style[vendor+'TransitionDuration']=time;},_momentum:function(dist,time,maxDistUpper,maxDistLower,size){var deceleration=0.0006,speed=m.abs(dist)/time,newDist=(speed*speed)/(2*deceleration),newTime=0,outsideDist=0;if(dist>0&&newDist>maxDistUpper){outsideDist=size/(6/(newDist/speed*deceleration));maxDistUpper=maxDistUpper+outsideDist;speed=speed*maxDistUpper/newDist;newDist=maxDistUpper;}else if(dist<0&&newDist>maxDistLower){outsideDist=size/(6/(newDist/speed*deceleration));maxDistLower=maxDistLower+outsideDist;speed=speed*maxDistLower/newDist;newDist=maxDistLower;}
newDist=newDist*(dist<0?-1:1);newTime=speed/deceleration;return{dist:newDist,time:mround(newTime)};},_offset:function(el){var left=-el.offsetLeft,top=-el.offsetTop;while(el=el.offsetParent){left-=el.offsetLeft;top-=el.offsetTop;}
if(el!=this.wrapper){left*=this.scale;top*=this.scale;}
return{left:left,top:top};},_snap:function(x,y){var that=this,i,l,page,time,sizeX,sizeY;page=that.pagesX.length-1;for(i=0,l=that.pagesX.length;i<l;i++){if(x>=that.pagesX[i]){page=i;break;}}
if(page==that.currPageX&&page>0&&that.dirX<0)page--;x=that.pagesX[page];sizeX=m.abs(x-that.pagesX[that.currPageX]);sizeX=sizeX?m.abs(that.x-x)/sizeX*500:0;that.currPageX=page;page=that.pagesY.length-1;for(i=0;i<page;i++){if(y>=that.pagesY[i]){page=i;break;}}
if(page==that.currPageY&&page>0&&that.dirY<0)page--;y=that.pagesY[page];sizeY=m.abs(y-that.pagesY[that.currPageY]);sizeY=sizeY?m.abs(that.y-y)/sizeY*500:0;that.currPageY=page;time=mround(m.max(sizeX,sizeY))||200;return{x:x,y:y,time:time};},_bind:function(type,el,bubble){(el||this.scroller).addEventListener(type,this,!!bubble);},_unbind:function(type,el,bubble){(el||this.scroller).removeEventListener(type,this,!!bubble);},destroy:function(){var that=this;that.scroller.style[vendor+'Transform']='';that.hScrollbar=false;that.vScrollbar=false;that._scrollbar('h');that._scrollbar('v');that._unbind(RESIZE_EV,window);that._unbind(START_EV);that._unbind(MOVE_EV);that._unbind(END_EV);that._unbind(CANCEL_EV);if(!that.options.hasTouch){that._unbind('mouseout',that.wrapper);that._unbind(WHEEL_EV);}
if(that.options.useTransition)that._unbind('webkitTransitionEnd');if(that.options.checkDOMChanges)clearInterval(that.checkDOMTime);if(that.options.onDestroy)that.options.onDestroy.call(that);},refresh:function(){var that=this,offset,i,l,els,pos=0,page=0;if(that.scale<that.options.zoomMin)that.scale=that.options.zoomMin;that.wrapperW=that.wrapper.clientWidth||1;that.wrapperH=that.wrapper.clientHeight||1;that.minScrollY=-that.options.topOffset||0;that.scrollerW=mround(that.scroller.offsetWidth*that.scale);that.scrollerH=mround((that.scroller.offsetHeight+that.minScrollY)*that.scale);that.maxScrollX=that.wrapperW-that.scrollerW;that.maxScrollY=that.wrapperH-that.scrollerH+that.minScrollY;that.dirX=0;that.dirY=0;if(that.options.onRefresh)that.options.onRefresh.call(that);that.hScroll=that.options.hScroll&&that.maxScrollX<0;that.vScroll=that.options.vScroll&&(!that.options.bounceLock&&!that.hScroll||that.scrollerH>that.wrapperH);that.hScrollbar=that.hScroll&&that.options.hScrollbar;that.vScrollbar=that.vScroll&&that.options.vScrollbar&&that.scrollerH>that.wrapperH;offset=that._offset(that.wrapper);that.wrapperOffsetLeft=-offset.left;that.wrapperOffsetTop=-offset.top;if(typeof that.options.snap=='string'){that.pagesX=[];that.pagesY=[];els=that.scroller.querySelectorAll(that.options.snap);for(i=0,l=els.length;i<l;i++){pos=that._offset(els[i]);pos.left+=that.wrapperOffsetLeft;pos.top+=that.wrapperOffsetTop;that.pagesX[i]=pos.left<that.maxScrollX?that.maxScrollX:pos.left*that.scale;that.pagesY[i]=pos.top<that.maxScrollY?that.maxScrollY:pos.top*that.scale;}}else if(that.options.snap){that.pagesX=[];while(pos>=that.maxScrollX){that.pagesX[page]=pos;pos=pos-that.wrapperW;page++;}
if(that.maxScrollX%that.wrapperW)that.pagesX[that.pagesX.length]=that.maxScrollX-that.pagesX[that.pagesX.length-1]+that.pagesX[that.pagesX.length-1];pos=0;page=0;that.pagesY=[];while(pos>=that.maxScrollY){that.pagesY[page]=pos;pos=pos-that.wrapperH;page++;}
if(that.maxScrollY%that.wrapperH)that.pagesY[that.pagesY.length]=that.maxScrollY-that.pagesY[that.pagesY.length-1]+that.pagesY[that.pagesY.length-1];}
that._scrollbar('h');that._scrollbar('v');if(!that.zoomed){that.scroller.style[vendor+'TransitionDuration']='0';that._resetPos(200);}},scrollTo:function(x,y,time,relative){var that=this,step=x,i,l;that.stop();if(!step.length)step=[{x:x,y:y,time:time,relative:relative}];for(i=0,l=step.length;i<l;i++){if(step[i].relative){step[i].x=that.x-step[i].x;step[i].y=that.y-step[i].y;}
that.steps.push({x:step[i].x,y:step[i].y,time:step[i].time||0});}
that._startAni();},scrollToElement:function(el,time){var that=this,pos;el=el.nodeType?el:that.scroller.querySelector(el);if(!el)return;pos=that._offset(el);pos.left+=that.wrapperOffsetLeft;pos.top+=that.wrapperOffsetTop;pos.left=pos.left>0?0:pos.left<that.maxScrollX?that.maxScrollX:pos.left;pos.top=pos.top>that.minScrollY?that.minScrollY:pos.top<that.maxScrollY?that.maxScrollY:pos.top;time=time===undefined?m.max(m.abs(pos.left)*2,m.abs(pos.top)*2):time;that.scrollTo(pos.left,pos.top,time);},scrollToPage:function(pageX,pageY,time){var that=this,x,y;time=time===undefined?400:time;if(that.options.onScrollStart)that.options.onScrollStart.call(that);if(that.options.snap){pageX=pageX=='next'?that.currPageX+1:pageX=='prev'?that.currPageX-1:pageX;pageY=pageY=='next'?that.currPageY+1:pageY=='prev'?that.currPageY-1:pageY;pageX=pageX<0?0:pageX>that.pagesX.length-1?that.pagesX.length-1:pageX;pageY=pageY<0?0:pageY>that.pagesY.length-1?that.pagesY.length-1:pageY;that.currPageX=pageX;that.currPageY=pageY;x=that.pagesX[pageX];y=that.pagesY[pageY];}else{x=-that.wrapperW*pageX;y=-that.wrapperH*pageY;if(x<that.maxScrollX)x=that.maxScrollX;if(y<that.maxScrollY)y=that.maxScrollY;}
that.scrollTo(x,y,time);},disable:function(){this.stop();this._resetPos(0);this.enabled=false;this._unbind(MOVE_EV);this._unbind(END_EV);this._unbind(CANCEL_EV);},enable:function(){this.enabled=true;},stop:function(){if(this.options.useTransition)this._unbind('webkitTransitionEnd');else cancelFrame(this.aniTime);this.steps=[];this.moved=false;this.animating=false;},zoom:function(x,y,scale,time){var that=this,relScale=scale/that.scale;if(!that.options.useTransform)return;that.zoomed=true;time=time===undefined?200:time;x=x-that.wrapperOffsetLeft-that.x;y=y-that.wrapperOffsetTop-that.y;that.x=x-x*relScale+that.x;that.y=y-y*relScale+that.y;that.scale=scale;that.refresh();that.x=that.x>0?0:that.x<that.maxScrollX?that.maxScrollX:that.x;that.y=that.y>that.minScrollY?that.minScrollY:that.y<that.maxScrollY?that.maxScrollY:that.y;that.scroller.style[vendor+'TransitionDuration']=time+'ms';that.scroller.style[vendor+'Transform']=trnOpen+that.x+'px,'+that.y+'px'+trnClose+' scale('+scale+')';that.zoomed=false;},isReady:function(){return!this.moved&&!this.zoomed&&!this.animating;}};if(typeof exports!=='undefined')exports.iScroll=iScroll;else window.iScroll=iScroll;})();
|
var glossary = [
// runes
{
"name": "dot",
"symbol": ".",
"usage": "Nock",
"link": "/docs/reference/hoon-expressions/rune/dot/",
"desc": "Runes used for carrying out Nock operations in Hoon."
},
{
"name": "dotket",
"symbol": ".^",
"usage": "Nock",
"link": "/docs/reference/hoon-expressions/rune/dot/#dotket",
"desc": "<code>[%dtkt p=spec q=hoon]</code>: load from the Arvo namespace with a fake Nock instruction: 'Nock <code>12</code>''."
},
{
"name": "dotlus",
"symbol": ".+",
"usage": "Nock",
"link": "/docs/reference/hoon-expressions/rune/dot/#dotlus",
"desc": "<code>[%dtls p=hoon]</code>: increment an atom with Nock <code>4</code>."
},
{
"name": "dottar",
"symbol": ".*",
"usage": "Nock",
"link": "/docs/reference/hoon-expressions/rune/dot/#dottar",
"desc": "<code>[%dttr p=hoon q=hoon]</code>: evaluate with Nock <code>2</code>."
},
{
"name": "dottis",
"symbol": ".=",
"usage": "Nock",
"link": "/docs/reference/hoon-expressions/rune/dot/#dottis",
"desc": "<code>[%dtts p=hoon q=hoon]</code>: test for equality with Nock <code>5</code>."
},
{
"name": "dotwut",
"symbol": ".?",
"usage": "Nock",
"link": "/docs/reference/hoon-expressions/rune/dot/#dotwut",
"desc": "<code>[%dtwt p=hoon]</code>: test for cell or atom with Nock <code>3</code>."
},
{
"name": "zap",
"symbol": "!",
"usage": "wild",
"link": "/docs/reference/hoon-expressions/rune/zap/",
"desc": "Wildcard category. Expressions that don't fit anywhere else go here."
},
{
"name": "zapgar",
"symbol": "!>",
"usage": "wild",
"link": "/docs/reference/hoon-expressions/rune/zap/#zapgar",
"desc": "<code>[%zpgr p=hoon]</code>: wrap a noun in its type."
},
{
"name": "zapgal",
"symbol": "!<",
"usage": "wild",
"link": "/docs/reference/hoon-expressions/rune/zap/#zapgal",
"desc": "<code>[%zpld p=spec q=hoon]</code>: extracts typed value from a vase."
},
{
"name": "zapcol",
"symbol": "!:",
"usage": "wild",
"link": "/docs/reference/hoon-expressions/rune/zap/#zapcol",
"desc": "<code>[%dbug p=hoon]</code>: turn on stack trace"
},
{
"name": "zapdot",
"symbol": "!.",
"usage": "wild",
"link": "/docs/reference/hoon-expressions/rune/zap/#zapdot",
"desc": "Turn off stack trace for a subexpression <code>p</code>"
},
{
"name": "zaptis",
"symbol": "!=",
"usage": "wild",
"link": "/docs/reference/hoon-expressions/rune/zap/#zaptis",
"desc": "<code>[%zpts p=hoon]</code>: make the Nock formula for a Hoon expression."
},
{
"name": "zapwut",
"symbol": "!?",
"usage": "wild",
"link": "/docs/reference/hoon-expressions/rune/zap/#zapwut",
"desc": "<code>[%zpwt p=@ q=hoon]</code>: restrict Hoon version."
},
{
"name": "zapzap",
"symbol": "!!",
"usage": "wild",
"link": "/docs/reference/hoon-expressions/rune/zap/#zapzap",
"desc": "<code>[%zpzp ~]</code>: crash."
},
{
"name": "tis",
"symbol": "=",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/",
"desc": "Runes used to modify the subject."
},
{
"name": "tisgar",
"symbol": "=>",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tisgar",
"desc": "<code>[%tsgr p=hoon q=hoon]</code>: compose two expressions."
},
{
"name": "tisbar",
"symbol": "=|",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tisbar",
"desc": "<code>[%tsbr p=spec q=hoon]</code>: combine a default type value with the subject."
},
{
"name": "tiscol",
"symbol": "=:",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tiscol",
"desc": "<code>[%tscl p=(list (pair wing hoon)) q=hoon]</code>: change multiple legs in the subject."
},
{
"name": "tiscom",
"symbol": "=,",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tiscom",
"desc": "<code>[%tscm p=hoon q=hoon]</code>: expose namespace"
},
{
"name": "tisdot",
"symbol": "=.",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tisdot",
"desc": "<code>[%tsdt p=wing q=hoon r=hoon]</code>: change one leg in the subject."
},
{
"name": "tishep",
"symbol": "=-",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tishep",
"desc": "<code>[%tshp p=hoon q=hoon]</code>: combine a new noun with the subject, inverted."
},
{
"name": "tisket",
"symbol": "=^",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tisket",
"desc": "<code>[%tskt p=skin q=wing r=hoon s=hoon]</code>: pin the head of a pair; change"
},
{
"name": "tisgal",
"symbol": "=<",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tisgal",
"desc": "<code>[%tsgl p=hoon q=hoon]</code>: compose two expressions, inverted."
},
{
"name": "tislus",
"symbol": "=+",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tislus",
"desc": "<code>[%tsls p=hoon q=hoon]</code>: combine a new noun with the subject."
},
{
"name": "tismic",
"symbol": "=;",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tismic",
"desc": "<code>[%tssm p=skin q=hoon r=hoon]</code>: combine a named noun with the subject, possibly with type annotation; inverted order."
},
{
"name": "tisfas",
"symbol": "=/",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tisfas",
"desc": "<code>[%tsfs p=skin q=hoon r=hoon]</code>: combine a named noun with the subject, possibly with type annotation."
},
{
"name": "tissig",
"symbol": "=~",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tissig",
"desc": "<code>[%tssg p=(list hoon)]</code>: compose many expressions."
},
{
"name": "tistar",
"symbol": "=*",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tistar",
"desc": "<code>[%tstr p=term q=hoon r=hoon]</code>: define an alias."
},
{
"name": "tiswut",
"symbol": "=?",
"usage": "Subject Modification",
"link": "/docs/reference/hoon-expressions/rune/tis/#tiswut",
"desc": "<code>[$tswt p=wing q=hoon r=hoon s=hoon]</code>: conditionally change one leg in the subject."
},
{
"name": "wut",
"symbol": "?",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/",
"desc": "Runes used for branching on conditionals."
},
{
"name": "wutgar",
"symbol": "?>",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutgar",
"desc": "<code>[%wtbn p=hoon q=hoon]</code>: positive assertion."
},
{
"name": "wutbar",
"symbol": "?|",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutbar",
"desc": "<code>[%wtbr p=(list hoon)]</code>: logical OR."
},
{
"name": "wutcol",
"symbol": "?:",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutcol",
"desc": "<code>[%wtcl p=hoon q=hoon r=hoon]</code>: branch on a boolean test."
},
{
"name": "wutdot",
"symbol": "?.",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutdot",
"desc": "<code>[%wtdt p=hoon q=hoon r=hoon]</code>: branch on a boolean test, inverted."
},
{
"name": "wuthep",
"symbol": "?-",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wuthep",
"desc": "<code>[%wthp p=wing q=(list (pair spec value))]</code>: switch against a union, with no default."
},
{
"name": "wutket",
"symbol": "?^",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutket",
"desc": "<code>[%wtkt p=wing q=hoon r=hoon]</code>: branch on whether a wing"
},
{
"name": "wutgal",
"symbol": "?<",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutgal",
"desc": "<code>[%wtgl p=hoon q=hoon]</code>: negative assertion."
},
{
"name": "wutlus",
"symbol": "?+",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutlus",
"desc": "<code>[%wtls p=wing q=hoon r=(list (pair spec hoon))]</code>: switch against"
},
{
"name": "wutpam",
"symbol": "?&",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutpam",
"desc": "<code>[%wtpd p=(list hoon)]</code>: logical AND."
},
{
"name": "wutsig",
"symbol": "?~",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutsig",
"desc": "<code>[%wtsg p=wing q=hoon r=hoon]</code>: branch on whether a wing of the subject is null."
},
{
"name": "wuttis",
"symbol": "?=",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wuttis",
"desc": "<code>[%wtts p=spec q=wing]</code>: test pattern match."
},
{
"name": "wutpat",
"symbol": "?@",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutpat",
"desc": "<code>[%wtpt p=wing q=hoon r=hoon]</code>: branch on whether a wing of the subject is an atom."
},
{
"name": "wutzap",
"symbol": "?!",
"usage": "Conditionals",
"link": "/docs/reference/hoon-expressions/rune/wut/#wutzap",
"desc": "<code>[%wtzp p=hoon]</code>: logical NOT."
},
{
"name": "bar",
"symbol": "|",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/",
"desc": "Runes used to produce cores."
},
{
"name": "barbuc",
"symbol": "|$",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barbuc",
"desc": "Declare a wet gate mold builder."
},
{
"name": "barcab",
"symbol": "|_",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barcab",
"desc": "Produce a **door** (a core with a sample)."
},
{
"name": "barcen",
"symbol": "|%",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barcen",
"desc": "Produce a core, <code>[battery payload]</code>."
},
{
"name": "barcol",
"symbol": "|:",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barcol",
"desc": "Produce a gate with a custom sample."
},
{
"name": "bardot",
"symbol": "|.",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#bardot",
"desc": "Produce a trap (a core with one arm <code>$</code>)."
},
{
"name": "barhep",
"symbol": "|-",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barhep",
"desc": "Produce a trap (a core with one arm <code>$</code>) and evaluate it."
},
{
"name": "barket",
"symbol": "|^",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barket",
"desc": "Produce a core whose battery includes a <code>$</code> arm and compute the latter."
},
{
"name": "barsig",
"symbol": "|~",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barsig",
"desc": "Produce an iron gate."
},
{
"name": "bartar",
"symbol": "|*",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#bartar",
"desc": "Produce a wet gate (one-armed core with sample)."
},
{
"name": "bartis",
"symbol": "|=",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#bartis",
"desc": "Produce a gate (a one-armed core with a sample)."
},
{
"name": "barpat",
"symbol": "|@",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barpat",
"desc": "Produce a 'wet' core <code>[battery payload]</code>."
},
{
"name": "barwut",
"symbol": "|?",
"usage": "Cores",
"link": "/docs/reference/hoon-expressions/rune/bar/#barwut",
"desc": "Produce a lead trap."
},
{
"name": "lus",
"symbol": "+",
"usage": "Arms",
"link": "/docs/reference/hoon-expressions/rune/lus/",
"desc": "Runes used to define arms in a core."
},
{
"name": "lusbar",
"symbol": "+|",
"usage": "Arms",
"link": "/docs/reference/hoon-expressions/rune/lus/#lusbar",
"desc": "Chapter label."
},
{
"name": "lusbuc",
"symbol": "+$",
"usage": "Arms",
"link": "/docs/reference/hoon-expressions/rune/lus/#lusbuc",
"desc": "Produce a structure arm (type definition)."
},
{
"name": "luslus",
"symbol": "++",
"usage": "Arms",
"link": "/docs/reference/hoon-expressions/rune/lus/#luslus",
"desc": "Produce a normal arm."
},
{
"name": "lustar",
"symbol": "+*",
"usage": "Arms",
"link": "/docs/reference/hoon-expressions/rune/lus/#lustar",
"desc": "Produce a type constructor arm."
},
{
"name": "col",
"symbol": ":",
"usage": "Cells",
"link": "/docs/reference/hoon-expressions/rune/col/",
"desc": "Runes used to produce cells, which are pairs of nouns."
},
{
"name": "colcab",
"symbol": ":_",
"usage": "Cells",
"link": "/docs/reference/hoon-expressions/rune/col/#colcab",
"desc": "<code>[%clcb p=hoon q=hoon]</code>; construct a cell, inverted."
},
{
"name": "colcol",
"symbol": "::",
"usage": "Cells",
"link": "/docs/reference/hoon-expressions/rune/col/#colcol",
"desc": "Code comment."
},
{
"name": "colhep",
"symbol": ":-",
"usage": "Cells",
"link": "/docs/reference/hoon-expressions/rune/col/#colhep",
"desc": "<code>[%clhp p=hoon q=hoon]</code>: construct a cell (2-tuple)."
},
{
"name": "colket",
"symbol": ":^",
"usage": "Cells",
"link": "/docs/reference/hoon-expressions/rune/col/#colket",
"desc": "<code>[%clkt p=hoon q=hoon r=hoon s=hoon]</code>: construct a quadruple (4-tuple)."
},
{
"name": "collus",
"symbol": ":+",
"usage": "Cells",
"link": "/docs/reference/hoon-expressions/rune/col/#collus",
"desc": "<code>[%clls p=hoon q=hoon r=hoon]</code>: construct a triple (3-tuple)."
},
{
"name": "colsig",
"symbol": ":~",
"usage": "Cells",
"link": "/docs/reference/hoon-expressions/rune/col/#colsig",
"desc": "<code>[%clsg p=(list hoon)]</code>: construct a null-terminated list."
},
{
"name": "coltar",
"symbol": ":*",
"usage": "Cells",
"link": "/docs/reference/hoon-expressions/rune/col/#coltar",
"desc": "<code>[%cltr p=(list hoon)]</code>: construct an n-tuple."
},
{
"name": "cen",
"symbol": "%",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/",
"desc": "Runes used for making function calls in Hoon."
},
{
"name": "cencab",
"symbol": "%_",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#cencab",
"desc": "Resolve a wing with changes, preserving type."
},
{
"name": "cencol",
"symbol": "%:",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#cencol",
"desc": "Call a gate with many arguments."
},
{
"name": "cendot",
"symbol": "%.",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#cendot",
"desc": "Call a gate (function), inverted."
},
{
"name": "cenhep",
"symbol": "%-",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#cenhep",
"desc": "Call a gate (function)."
},
{
"name": "cenket",
"symbol": "%^",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#cenket",
"desc": "Call gate with triple sample."
},
{
"name": "cenlus",
"symbol": "%+",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#cenlus",
"desc": "Call gate with a cell sample."
},
{
"name": "censig",
"symbol": "%~",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#censig",
"desc": "Evaluate an arm in a door."
},
{
"name": "centar",
"symbol": "%*",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#centar",
"desc": "Evaluate an expression, then resolve a wing with changes."
},
{
"name": "centis",
"symbol": "%=",
"usage": "Calls",
"link": "/docs/reference/hoon-expressions/rune/cen/#centis",
"desc": "Resolve a wing with changes."
},
{
"name": "ket",
"symbol": "^",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/",
"desc": "Runes that let us adjust types without violating type constraints."
},
{
"name": "ketbar",
"symbol": "^|",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#ketbar",
"desc": "<code>[%ktbr p=hoon]</code>: convert a gold core to an iron core (contravariant)."
},
{
"name": "ketcol",
"symbol": "^:",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#ketcol",
"desc": "<code>[%ktcl p=spec]</code>: 'factory' gate for type <code>p</code>."
},
{
"name": "ketdot",
"symbol": "^.",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#ketdot",
"desc": "<code>[%ktdt p=hoon q=hoon]</code>: typecast on value produced by passing <code>q</code> to <code>p</code>."
},
{
"name": "kethep",
"symbol": "^-",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#kethep",
"desc": "<code>[%kthp p=spec q=hoon]</code>: typecast by explicit type label."
},
{
"name": "ketlus",
"symbol": "^+",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#ketlus",
"desc": "<code>[%ktls p=hoon q=hoon]</code>: typecast by inferred type."
},
{
"name": "ketpam",
"symbol": "^&",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#ketpam",
"desc": "<code>[%ktpd p=hoon]</code>: convert a core to a zinc core (covariant)."
},
{
"name": "ketsig",
"symbol": "^~",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#ketsig",
"desc": "<code>[%ktsg p=hoon]</code>: fold constant at compile time."
},
{
"name": "kettar",
"symbol": "^*",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#kettar",
"desc": "<code>[%kttr p=spec]</code>: Produce example type value."
},
{
"name": "kettis",
"symbol": "^=",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#kettis",
"desc": "<code>[%ktts p=skin q=hoon]</code>: Bind name to a value."
},
{
"name": "ketwut",
"symbol": "^?",
"usage": "Casts",
"link": "/docs/reference/hoon-expressions/rune/ket/#ketwut",
"desc": "<code>[%ktwt p=hoon]</code>: convert any core to a lead core (bivariant)."
},
{
"name": "buc",
"symbol": "$",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/",
"desc": "Runes used for defining custom types."
},
{
"name": "bucbar",
"symbol": "$|",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#bucbar",
"desc": "<code>[%bsbr p=spec q=hoon]</code>: structure that satisfies a validator."
},
{
"name": "buccab",
"symbol": "$_",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#buccab",
"desc": "<code>[%bscb p=hoon]</code>: structure that normalizes to an example."
},
{
"name": "buccen",
"symbol": "$%",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#buccen",
"desc": "<code>[%bscn p=(list spec)]</code>: structure which recognizes a union tagged by head atom."
},
{
"name": "buccol",
"symbol": "$:",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#buccol",
"desc": "<code>[%bscl p=(list spec)]</code>: form a cell type."
},
{
"name": "bucgal",
"symbol": "$<",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#bucgal",
"desc": "<code>[%bsld p=spec q=spec]</code>: restrict a mold by excluding some given mold."
},
{
"name": "bucgar",
"symbol": "$>",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#bucgar",
"desc": "<code>[%bshp p=spec q=spec]</code>: filter a mold to obtain a new mold."
},
{
"name": "buchep",
"symbol": "$-",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#buchep",
"desc": "<code>[%bshp p=spec q=spec]</code>: structure that normalizes to an example gate."
},
{
"name": "bucket",
"symbol": "$^",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#bucket",
"desc": "<code>[%bskt p=spec q=spec]</code>: structure which normalizes a union tagged by head depth (cell)."
},
{
"name": "bucsig",
"symbol": "$~",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#bucsig",
"desc": "<code>[%bssg p=hoon q=spec]</code>: define a custom type default value"
},
{
"name": "bucpam",
"symbol": "$&",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#bucpam",
"desc": "<code>[%bspd p=spec q=hoon]</code>: repair a value of a tagged union type"
},
{
"name": "bucpat",
"symbol": "$@",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#bucpat",
"desc": "<code>[%bsvt p=spec q=spec]</code>: structure which normalizes a union tagged by head depth (atom)."
},
{
"name": "buctis",
"symbol": "$=",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#buctis",
"desc": "<code>[%bsts p=skin q=spec]</code>: structure which wraps a face around another structure."
},
{
"name": "bucwut",
"symbol": "$?",
"usage": "Structures",
"link": "/docs/reference/hoon-expressions/rune/buc/#bucwut",
"desc": "<code>[%bswt p=(list spec)]</code>: form a type from a union of other types."
},
{
"name": "mic",
"symbol": ";",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/",
"desc": "Miscellaneous useful macros."
},
{
"name": "miccol",
"symbol": ";:",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/#miccol",
"desc": "<code>[%mccl p=hoon q=(list hoon)]</code>: call a binary function as an n-ary function."
},
{
"name": "micgal",
"symbol": ";<",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/#micgal",
"desc": "<code>[%mcgl p=spec q=hoon r=hoon s=hoon]</code>: monadic do notation."
},
{
"name": "miclus",
"symbol": ";+",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/#miclus",
"desc": "make a single XML node (Sail)"
},
{
"name": "micmic",
"symbol": ";;",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/#micmic",
"desc": "<code>[%mcmc p=spec q=hoon]</code>: normalize with a mold, asserting fixpoint."
},
{
"name": "micfas",
"symbol": ";/",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/#micfas",
"desc": "<code>[%mcnt p=hoon]</code>: tape as XML element."
},
{
"name": "micsig",
"symbol": ";~",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/#micsig",
"desc": "<code>[%mcsg p=hoon q=(list hoon)]</code>: glue a pipeline together with a"
},
{
"name": "mictar",
"symbol": ";*",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/#mictar",
"desc": "Make a list of XML nodes from complex Hoon expression (Sail)."
},
{
"name": "mictis",
"symbol": ";=",
"usage": "Make",
"link": "/docs/reference/hoon-expressions/rune/mic/#mictis",
"desc": "Make a list of XML nodes (Sail)."
},
{
"name": "sig",
"symbol": "~",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/",
"desc": "Runes that use Nock <code>11</code> to pass non-semantic info to the interpreter."
},
{
"name": "siggar",
"symbol": "~>",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#siggar",
"desc": "<code>[%sgbn p=$@(term [p=term q=hoon]) q=hoon]</code>: raw hint, applied"
},
{
"name": "sigbar",
"symbol": "~|",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigbar",
"desc": "<code>[%sgbr p=hoon q=hoon]</code>: tracing printf."
},
{
"name": "sigbuc",
"symbol": "~$",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigbuc",
"desc": "<code>[%sgbs p=term q=hoon]</code>: profiling hit counter."
},
{
"name": "sigcab",
"symbol": "~_",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigcab",
"desc": "<code>[%sgcb p=hoon q=hoon]</code>: user-formatted tracing printf."
},
{
"name": "sigcen",
"symbol": "~%",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigcen",
"desc": "<code>[%sgcn p=term q=wing r=(list [term hoon]) s=hoon]</code>: jet registration."
},
{
"name": "siggal",
"symbol": "~<",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#siggal",
"desc": "<code>[%sgld p=$@(term [p=term q=hoon]) q=hoon]</code>: raw hint, applied to product."
},
{
"name": "siglus",
"symbol": "~+",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#siglus",
"desc": "<code>[%sgls p=hoon]</code>: cache a computation."
},
{
"name": "sigfas",
"symbol": "~/",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigfas",
"desc": "<code>[%sgnt p=term q=hoon]</code>: jet registration for gate with"
},
{
"name": "sigpam",
"symbol": "~&",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigpam",
"desc": "<code>[%sgpd p=hoon q=hoon]</code>: debugging printf."
},
{
"name": "sigtis",
"symbol": "~=",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigtis",
"desc": "<code>[%sgts p=hoon q=hoon]</code>: detect duplicate."
},
{
"name": "sigwut",
"symbol": "~?",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigwut",
"desc": "<code>[%sgwt p=hoon q=hoon r=hoon]</code>: conditional debug printf."
},
{
"name": "sigzap",
"symbol": "~!",
"usage": "Hints",
"link": "/docs/reference/hoon-expressions/rune/sig/#sigzap",
"desc": "<code>[%sgzp p=hoon q=hoon]</code>: print type on compilation fail."
},
{
"name": "terminators",
"symbol": "--,",
"usage": "Terminators",
"link": "/docs/reference/hoon-expressions/rune/terminators/",
"desc": "Runes used to terminate expressions."
},
{
"name": "hephep",
"symbol": "--",
"usage": "Terminators",
"link": "/docs/reference/hoon-expressions/rune/terminators/#hephep",
"desc": "The <code>--</code> rune is used to indicate the end of a core expression."
},
{
"name": "tistis",
"symbol": "==",
"usage": "Terminators",
"link": "/docs/reference/hoon-expressions/rune/terminators/#tistis",
"desc": "The <code>==</code> rune is used to indicate the end of a 'jogging' or 'running' series of Hoon expressions."
},
{
"name": "fas",
"symbol": "/",
"usage": "Ford",
"link": "/docs/arvo/ford/#ford-runes",
"desc": "Runes specific to Ford, not considered to be Hoon runes."
},
{
"name": "faslus",
"symbol": "/+",
"usage": "Ford",
"link": "/docs/arvo/ford/#ford-runes",
"desc": "Ford rune. Import from <code>lib/</code>"
},
{
"name": "fashep",
"symbol": "/-",
"usage": "Ford",
"link": "/docs/arvo/ford/#ford-runes",
"desc": "Ford rune. Import from <code>sur/</code>"
},
{
"name": "fastis",
"symbol": "/=",
"usage": "Ford",
"link": "/docs/arvo/ford/#ford-runes",
"desc": "Ford rune. Wrap a face around an included horn."
},
{
"name": "fastar",
"symbol": "/*",
"usage": "Ford",
"link": "/docs/arvo/ford/#ford-runes",
"desc": "Ford rune. Import file, convert to mark, and wrap a face."
},
// glossary starts here
{
"name": "ames",
"symbol": "",
"usage": "Arvo",
"link": "/docs/glossary/ames/",
"desc": "The name of the Urbit network and the vane that communicates over it."
},
{
"name": "aqua",
"symbol": "",
"usage": "Arvo",
"link": "/docs/glossary/aqua/",
"desc": "A virtualization tool whose primary purpose is testing and development."
},
{
"name": "arm",
"symbol": "",
"usage": "arm",
"link": "/docs/glossary/arm/",
"desc": "A Hoon expression encoded as a noun. Part of a core."
},
{
"name": "arvo",
"symbol": "",
"usage": "Arvo",
"link": "/docs/glossary/arvo/",
"desc": "The Urbit operating system and kernel."
},
{
"name": "atom",
"symbol": "",
"usage": "hoon-nock",
"link": "/docs/glossary/atom/",
"desc": "The most basic data type in Hoon and Nock, a non-negative integer of any size."
},
{
"name": "azimuth",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/azimuth/",
"desc": "Urbit's identity layer, built as a suite of smart contracts on the Ethereum blockchain."
},
{
"name": "behn",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/behn/",
"desc": "Timing vane of Arvo. Allows for applications to schedule events."
},
{
"name": "battery",
"symbol": "",
"usage": "battery",
"link": "/docs/glossary/battery/",
"desc": "A collection of Hoon expressions stored at the head of a core."
},
{
"name": "bridge",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/bridge/",
"desc": "A client made for interacting with Azimuth."
},
{
"name": "censure",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/censure/",
"desc": "Allows stars and galaxies to assign negative reputation information to other points of equal or lower rank."
},
{
"name": "ceremony",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/ceremony/",
"desc": "The event that transferred custody of Azimuth identities from a centralized ledger to the Ethereum blockchain."
},
{
"name": "chat",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/chat/",
"desc": "An application that handles communication between ships."
},
{
"name": "claims",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/claims/",
"desc": "Allows Urbit identities to make publicly visible assertions about their owner."
},
{
"name": "clay",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/clay/",
"desc": "The filesystem and typed revision-control vane of Arvo."
},
{
"name": "comet",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/comet/",
"desc": "A type of ship on the Urbit network."
},
{
"name": "core",
"symbol": "",
"usage": "core",
"link": "/docs/glossary/core/",
"desc": "A cell of battery and payload."
},
{
"name": "delegated sending",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/delegated-sending/",
"desc": "A method by which a star can distribute planets, assigning them to a delegated planet."
},
{
"name": "desk",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/desk/",
"desc": "A revision-controlled branch of the Clay filesystem."
},
{
"name": "dill",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/dill/",
"desc": "The terminal-driver vane of Arvo."
},
{
"name": "document vote",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/docvote/",
"desc": "A voting action taken by the Galactic Senate over Azimuth."
},
{
"name": "door",
"symbol": "",
"usage": "door",
"link": "/docs/glossary/door/",
"desc": "A core the payload of which is a cell of sample and context."
},
{
"name": "ecliptic",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/ecliptic/",
"desc": "A contract that sets the rules for what is and is not possible on Azimuth."
},
{
"name": "event log",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/eventlog/",
"desc": "A totally ordered list of every single Arvo event a ship has undergone. A ship's state is a pure function of its event log."
},
{
"name": "eyre",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/eyre/",
"desc": "The web-server vane of Arvo. Handles all HTTP messages."
},
{
"name": "ford",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/ford/",
"desc": "The build-system vane of Arvo."
},
{
"name": "galaxy",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/galaxy/",
"desc": "8-bit Urbit addresses, sitting at the top of the identity hierarchy, that vote on network changes and act as infrastructural nodes."
},
{
"name": "gall",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/gall/",
"desc": "The application-management vane of Arvo. Userspace applications are stopped, started, and sandboxed by Gall."
},
{
"name": "gate",
"symbol": "",
"usage": "gate",
"link": "/docs/glossary/gate/",
"desc": "A core with one arm named $. The Hoon equivalent of a function."
},
{
"name": "hall",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/hall/",
"desc": "The former messaging protocol for Arvo, no longer in use."
},
{
"name": "hd wallet",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/hdwallet",
"desc": "A system of related Ethereum addresses that store and manage an Urbit identity, each a proxy with different permissions over its management."
},
{
"name": "hoon",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/hoon/",
"desc": "A strict, higher-order typed functional programming language that compiles to Nock."
},
{
"name": "invite tree",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/invitetree/",
"desc": "The state stored by the delegated sending contract, recording who gave a planet to whom under a specific star."
},
{
"name": "jacque",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/jacque/",
"desc": "A Nock interpreter written in Java, in active development as a worker process for Vere."
},
{
"name": "keyfile",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/keyfile/",
"desc": "A piece of information used to associate a ship with an Urbit identity."
},
{
"name": "landscape",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/landscape/",
"desc": "A front-end user interface for Urbit."
},
{
"name": "mark",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/mark/",
"desc": "A file type in the Clay filesystem."
},
{
"name": "modulo",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/modulo/",
"desc": "The name of the home screen interface for Urbit within Landscape."
},
{
"name": "moon",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/moon/",
"desc": "A kind of ship on the Arvo network, issued by planets."
},
{
"name": "nock",
"symbol": "",
"usage": "hoon-nock",
"link": "/docs/glossary/nock/",
"desc": "A purely functional typeless programming language, and Urbit's lowest-level language."
},
{
"name": "noun",
"symbol": "",
"usage": "hoon-nock",
"link": "/docs/glossary/noun/",
"desc": "An atom or a cell. The basic data structure in Nock."
},
{
"name": "OTA",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/ota-updates/",
"desc": "Ships have the ability to upgrade themselves over the air. They receive updates from a sponsor star or galaxy."
},
{
"name": "payload",
"symbol": "",
"usage": "payload",
"link": "/docs/glossary/payload/",
"desc": "The set of data needed to run computations in a core."
},
{
"name": "pH",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/ph/",
"desc": "A Gall app that is a framework for fleet testing using Aqua."
},
{
"name": "pier",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/pier/",
"desc": "The stored state of an Urbit ship on disk."
},
{
"name": "pill",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/pill/",
"desc": "A bootstrap sequence to launch an Urbit ship for the first time."
},
{
"name": "planet",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/planet/",
"desc": "An Urbit identity at the bottom of the identity hierarchy. Issued by stars."
},
{
"name": "proxies",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/proxies/",
"desc": "Ethereum addresses in the Urbit HD Wallet that have limited powers."
},
{
"name": "replay",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/replay/",
"desc": "How Vere computes the state of a ship's Arvo instance from an event log."
},
{
"name": "sail",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/sailudon",
"desc": "A domain specific language for Hoon. Expresses XML data structures to render webpages."
},
{
"name": "trap",
"symbol": "",
"usage": "trap",
"link": "/docs/glossary/trap/",
"desc": "A core with one arm named $ and no sample."
},
{
"name": "udon",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/sailudon",
"desc": "A domain specific language for Hoon. Similar to Markdown."
},
{
"name": "senate",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/senate/",
"desc": "The body of all galaxies that govern Azimuth by majority vote."
},
{
"name": "ship",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/ship/",
"desc": "An instance of an Urbit computer that is a peer on the network."
},
{
"name": "arvo.network",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/shiparvonetwork/",
"desc": "A way to connect to a ship via HTTP, using DNS lookup."
},
{
"name": "star",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/star/",
"desc": "An Urbit identity sitting between stars and galaxies in the identity hierarchy. Infrastructural nodes for child planets."
},
{
"name": "sync",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/sync/",
"desc": "<code>|sync</code> sets up synchronization between two Clay desks."
},
{
"name": "talk",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/talk/",
"desc": "Urbit's first user application, sending messages between ships. No longer used, and replaced by Chat."
},
{
"name": "vane",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/vane/",
"desc": "An Arvo kernel module that performs essential system operations."
},
{
"name": "vere",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/vere/",
"desc": "The Nock runtime environment and Urbit virtual machine, running on Unix."
},
{
"name": "vote",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/voting/",
"desc": "Voting is a power available to galaxies in their capacities as members of the Galactic Senate."
},
{
"name": "wallet generator",
"symbol": "",
"usage": "azimuth",
"link": "/docs/glossary/wallet-generator/",
"desc": "Generates an Urbit HD wallet."
},
{
"name": "iris",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/iris/",
"desc": "The server-side HTTP vane of Arvo. Its client-facing counterpart is Eyre."
},
{
"name": "jael",
"symbol": "",
"usage": "arvo",
"link": "/docs/glossary/jael/",
"desc": "Security and encryption vane of Arvo."
}, //standard library
{
"name": "Primitive parser engine",
"symbol": "ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Absolute value",
"symbol": "abs:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#abs-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Absolute value (signed integer)",
"symbol": "abs:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#abs-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Compiler alias",
"symbol": "abel",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#abel",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse space",
"symbol": "ace",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#ace",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add",
"symbol": "add",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#add",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add (floating point)",
"symbol": "add:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#add-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add (with exact/rounded flag)",
"symbol": "add:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#add-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Prepend to list",
"symbol": "add:ja",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2j/#add-ja",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add (double-precision float)",
"symbol": "add:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#add-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add (half-precision float)",
"symbol": "add:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#add-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add (single-precision float)",
"symbol": "add:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#add-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add (quad-precision float)",
"symbol": "add:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#add-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Top-level atom parser engine",
"symbol": "ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse alphabetic characters",
"symbol": "alf",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#alf",
"desc": "Used in the Hoon standard library."
}, {
"name": "Logical AND (map and wet gate)",
"symbol": "all:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#all-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Logical AND (set and wet gate)",
"symbol": "all:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#all-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse alphanumeric characters",
"symbol": "aln",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#aln",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse alphanumeric characters and -",
"symbol": "alp",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#alp",
"desc": "Used in the Hoon standard library."
}, {
"name": "Logical OR (map and wet gate)",
"symbol": "any:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#any-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Logical OR (set and gate)",
"symbol": "any:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#any-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Alphabetical order",
"symbol": "aor",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2f/#aor",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 0 or rule",
"symbol": "ape:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#ape-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Check correctness (map)",
"symbol": "apt:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#apt-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Check correctness (set)",
"symbol": "apt:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#apt-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#at",
"desc": "Used in the Hoon standard library."
}, {
"name": "'Type' of atom",
"symbol": "aura",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#aura",
"desc": "Used in the Hoon standard library."
}, {
"name": "Nock axis",
"symbol": "axis",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#axis",
"desc": "Used in the Hoon standard library."
}, {
"name": "Balance queue",
"symbol": "bal:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#bal-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse | (bar)",
"symbol": "bar",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#bar",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse \\ (bas)",
"symbol": "bas",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#bas",
"desc": "Used in the Hoon standard library."
}, {
"name": "Base type",
"symbol": "base",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#base",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parser modifier (LSB-ordered list as atom of base)",
"symbol": "bass",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#bass",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parses binary number",
"symbol": "bay:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#bay-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Boolean",
"symbol": "bean",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#bean",
"desc": "Used in the Hoon standard library."
}, {
"name": "Tape builder",
"symbol": "beer",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#beer",
"desc": "Used in the Hoon standard library."
}, {
"name": "XML interpolation cases",
"symbol": "beet",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#beet",
"desc": "Used in the Hoon standard library."
}, {
"name": "Conditional composer",
"symbol": "bend",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#bend",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse hep and lus axis syntax",
"symbol": "bet",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#bet",
"desc": "Used in the Hoon standard library."
}, {
"name": "Binary exponent",
"symbol": "bex",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#bex",
"desc": "Used in the Hoon standard library."
}, {
"name": "Converts from fn to @r",
"symbol": "bif:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#bif-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Bifurcate map",
"symbol": "bif:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#bif-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Bifurcate set",
"symbol": "bif:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#bif-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unit as argument",
"symbol": "biff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#biff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Binary to atom",
"symbol": "bin",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#bin",
"desc": "Used in the Hoon standard library."
}, {
"name": "Non-unit function to unit, producing unit",
"symbol": "bind",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#bind",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse IPv6",
"symbol": "bip:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#bip-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "fn to @r with rounding",
"symbol": "bit:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#bit-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "fn to double-precision binary float",
"symbol": "bit:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#bit-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "fn to half-precision float",
"symbol": "bit:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#bit-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "fn to single-precision float",
"symbol": "bit:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#bit-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "fn to quad-precision float",
"symbol": "bit:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#bit-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse hex pair",
"symbol": "bix:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#bix-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse odor-atom pair",
"symbol": "bisk:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#bisk-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Blocksize",
"symbol": "bloq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#bloq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Replace null",
"symbol": "bond",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#bond",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parser modifier: LSB",
"symbol": "boss",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#boss",
"desc": "Used in the Hoon standard library."
}, {
"name": "Group unit values into pair",
"symbol": "both",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#both",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse $ (buc)",
"symbol": "buc",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#buc",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse binary digit",
"symbol": "but",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#but",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse _ (cab)",
"symbol": "cab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#cab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Assemble",
"symbol": "can",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#can",
"desc": "Used in the Hoon standard library."
}, {
"name": "Tree head",
"symbol": "cap",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1b/#cap",
"desc": "Used in the Hoon standard library."
}, {
"name": "To lowercase",
"symbol": "cass",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#cass",
"desc": "Used in the Hoon standard library."
}, {
"name": "Concatenate",
"symbol": "cat",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#cat",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse % (cen)",
"symbol": "cen",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#cen",
"desc": "Used in the Hoon standard library."
}, {
"name": "Days in a century",
"symbol": "cet:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#cet-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Character",
"symbol": "char",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#char",
"desc": "Used in the Hoon standard library."
}, {
"name": "Jet hint information",
"symbol": "chum",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#chum",
"desc": "Used in the Hoon standard library."
}, {
"name": "Octal digit",
"symbol": "cit",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#cit",
"desc": "Used in the Hoon standard library."
}, {
"name": "Apply function to two units",
"symbol": "clap",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#clap",
"desc": "Used in the Hoon standard library."
}, {
"name": "Compare (signed integer)",
"symbol": "cmp:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#cmp-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Literal rendering engine",
"symbol": "co",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4k/#co",
"desc": "Used in the Hoon standard library."
}, {
"name": "Tuple of core information",
"symbol": "coil",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#coil",
"desc": "Used in the Hoon standard library."
}, {
"name": "Noun-literal syntax cases",
"symbol": "coin",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#coin",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse : (col)",
"symbol": "col",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#col",
"desc": "Used in the Hoon standard library."
}, {
"name": "Replace with constant",
"symbol": "cold",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#cold",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse , (com)",
"symbol": "com",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#com",
"desc": "Used in the Hoon standard library."
}, {
"name": "Arbitrary compose",
"symbol": "comp",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#comp",
"desc": "Used in the Hoon standard library."
}, {
"name": "Binary OR",
"symbol": "con",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2d/#con",
"desc": "Used in the Hoon standard library."
}, {
"name": "Apply gate",
"symbol": "cook",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#cook",
"desc": "Used in the Hoon standard library."
}, {
"name": "UTF-8 text",
"symbol": "cord",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#cord",
"desc": "Used in the Hoon standard library."
}, {
"name": "Compose forward",
"symbol": "cork",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#cork",
"desc": "Used in the Hoon standard library."
}, {
"name": "Compose backward",
"symbol": "corl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#corl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Tape to cord",
"symbol": "crip",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#crip",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse @da, @dr, @p, @t",
"symbol": "crub:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#crub-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unpack atom to noun",
"symbol": "cue",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2p/#cue",
"desc": "Used in the Hoon standard library."
}, {
"name": "Right-curry a gate",
"symbol": "curr",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#curr",
"desc": "Used in the Hoon standard library."
}, {
"name": "Curry left a gate",
"symbol": "cury",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#cury",
"desc": "Used in the Hoon standard library."
}, {
"name": "To uppercase",
"symbol": "cuss",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#cuss",
"desc": "Used in the Hoon standard library."
}, {
"name": "Slice",
"symbol": "cut",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#cut",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render decimal",
"symbol": "d:ne",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#d-ne",
"desc": "Used in the Hoon standard library."
}, {
"name": "Point in time",
"symbol": "date",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#date",
"desc": "Used in the Hoon standard library."
}, {
"name": "Seconds in day",
"symbol": "day:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#day-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decrement",
"symbol": "dec",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#dec",
"desc": "Used in the Hoon standard library."
}, {
"name": "Difference (map)",
"symbol": "def:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#def-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Delete (map)",
"symbol": "del:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#del-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Delete (set)",
"symbol": "del:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#del-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Delete (jug)",
"symbol": "del:ju",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2j/#del-ju",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decimal to atom",
"symbol": "dem",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#dem",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse decmal with dots",
"symbol": "dem:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#dem-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Denormalizes (floating point)",
"symbol": "den:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#den-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Difference as patch (map)",
"symbol": "dep:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#dep-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Maximum depth (queue)",
"symbol": "dep:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#dep-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Difference between atoms (modular basis)",
"symbol": "dif:fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#dif-fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtraction (modular base)",
"symbol": "dif:fo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#dif-fo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Difference (set)",
"symbol": "dif:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#dif-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtraction (signed integer)",
"symbol": "dif:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#dif-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Address of key (map)",
"symbol": "dig:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#dig-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Address of a in set",
"symbol": "dig:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#dig-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse decimal number",
"symbol": "dim:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#dim-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Aura-atom pair",
"symbol": "dime",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#dime",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "din:re",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#din-re",
"desc": "Used in the Hoon standard library."
}, {
"name": "Binary AND (atoms)",
"symbol": "dis",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2d/#dis",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decimal digit",
"symbol": "dit",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#dit",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide",
"symbol": "div",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#div",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide (IEEE float)",
"symbol": "div:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#div-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide (signed and unsigned integer cell)",
"symbol": "div:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#div-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Double precision float",
"symbol": "div:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#div-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide (half-precision float)",
"symbol": "div:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#div-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide (single-precision float)",
"symbol": "div:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#div-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide (quad-precision float)",
"symbol": "div:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#div-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Optional gap",
"symbol": "dog",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#dog",
"desc": "Used in the Hoon standard library."
}, {
"name": "@p separator",
"symbol": "doh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#doh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse double quote",
"symbol": "doq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#doq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Numeric order",
"symbol": "dor",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2f/#dor",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse period",
"symbol": "dot",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#dot",
"desc": "Used in the Hoon standard library."
}, {
"name": "@r to decimal float",
"symbol": "drg:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#drg-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Get printable decimal (signed and unsigned integer cell)",
"symbol": "drg:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#drg-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "@rd to decimal float",
"symbol": "drg:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#drg-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "@rh to decimal float",
"symbol": "drg:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#drg-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "@rs to decimal float",
"symbol": "drg:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#drg-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "@rq to decimal float",
"symbol": "drg:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#drg-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unit to list",
"symbol": "drop",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#drop",
"desc": "Used in the Hoon standard library."
}, {
"name": "Modulus (signed integer)",
"symbol": "dul:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#dul-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse decimal with leading zero",
"symbol": "dum:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#dum-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "-- to ~",
"symbol": "dun",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#dun",
"desc": "Used in the Hoon standard library."
}, {
"name": "== to ~",
"symbol": "duz",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#duz",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide (with remainder)",
"symbol": "dvr",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#dvr",
"desc": "Used in the Hoon standard library."
}, {
"name": "Exact add",
"symbol": "ead:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#ead-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold of fork between two types",
"symbol": "each",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#each",
"desc": "Used in the Hoon standard library."
}, {
"name": "Always parse",
"symbol": "easy",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#easy",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parsing location metadata",
"symbol": "edge",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#edge",
"desc": "Used in the Hoon standard library."
}, {
"name": "Extended Euclidean algorithm",
"symbol": "egcd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#egcd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Minimum exponent",
"symbol": "emn:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#emn-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Exact multiply",
"symbol": "emu:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#emu-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Maximum exponent",
"symbol": "emx:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#emx-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Tail",
"symbol": "end",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#end",
"desc": "Used in the Hoon standard library."
}, {
"name": "Equals (IEEE float)",
"symbol": "equ:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#equ-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Equals (signed and unsigned integer cell)",
"symbol": "equ:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#equ-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Equals (double-precision float)",
"symbol": "equ:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#equ-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Equals (half-precision float)",
"symbol": "equ:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#equ-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Equals (single-precision float)",
"symbol": "equ:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#equ-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Equals (quad-precision float)",
"symbol": "equ:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#equ-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Leap-year period",
"symbol": "era:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#era-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Get exponent (IEEE float)",
"symbol": "exp:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#exp-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Exponent (modular base)",
"symbol": "exp:fo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#exp-fo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Exponent (@rd)",
"symbol": "exp:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#exp-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Exponent (half-precision float)",
"symbol": "exp:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#exp-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Exponent (@rs)",
"symbol": "exp:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#exp-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Exponent (quad-precision float)",
"symbol": "exp:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#exp-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Never parse",
"symbol": "fail",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#fail",
"desc": "Used in the Hoon standard library."
}, {
"name": "Give unit a default value",
"symbol": "fall",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#fall",
"desc": "Used in the Hoon standard library."
}, {
"name": "All indices in list",
"symbol": "fand",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#fand",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse / (fas)",
"symbol": "fas",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#fas",
"desc": "Used in the Hoon standard library."
}, {
"name": "Modulo bloq",
"symbol": "fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse @p",
"symbol": "fed:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#fed-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Conceal structure v2",
"symbol": "feen:ob",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#feen-ob",
"desc": "Used in the Hoon standard library."
}, {
"name": "Restore structure v2",
"symbol": "fend:ob",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#fend-ob",
"desc": "Used in the Hoon standard library."
}, {
"name": "Feistel-like cipher",
"symbol": "fice:ob",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#fice-ob",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fill bloqstream",
"symbol": "fil",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#fil",
"desc": "Used in the Hoon standard library."
}, {
"name": "First index in list",
"symbol": "find",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#find",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fit on one line test",
"symbol": "fit:re",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#fit-re",
"desc": "Used in the Hoon standard library."
}, {
"name": "Flip sign",
"symbol": "fli:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#fli-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reverse list",
"symbol": "flop",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#flop",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fused multiply-add (IEEE float)",
"symbol": "fma:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#fma-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fused multiply-add",
"symbol": "fma:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#fma-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fused multiply-add (@rd)",
"symbol": "fma:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#fma-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fused multiply-add (half-precision float)",
"symbol": "fma:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#fma-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fused multiply-add (single-precision float)",
"symbol": "fma:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#fma-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fused multiply-add (quad-precision float)",
"symbol": "fma:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#fma-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "FNV scrambler",
"symbol": "fnv",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2e/#fnv",
"desc": "Used in the Hoon standard library."
}, {
"name": "Modulo prime",
"symbol": "fo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#fo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Cases of arms by variance model",
"symbol": "foot",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#foot",
"desc": "Used in the Hoon standard library."
}, {
"name": "@rs to @rh",
"symbol": "fos:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#fos-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide (modular base)",
"symbol": "fra:fo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#fra-fo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Divide (signed integer)",
"symbol": "fra:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#fra-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse to end",
"symbol": "full",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#full",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add to tape",
"symbol": "funk",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#funk",
"desc": "Used in the Hoon standard library."
}, {
"name": "New line or ''",
"symbol": "gah",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#gah",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse < (gal)",
"symbol": "gal",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#gal",
"desc": "Used in the Hoon standard library."
}, {
"name": "Plural whitespace",
"symbol": "gap",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#gap",
"desc": "Used in the Hoon standard library."
}, {
"name": "End of line",
"symbol": "gaq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#gaq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse > (gar)",
"symbol": "gar",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#gar",
"desc": "Used in the Hoon standard library."
}, {
"name": "Concatenate (map)",
"symbol": "gas:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#gas-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Concatenate (set)",
"symbol": "gas:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#gas-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Push list into queue",
"symbol": "gas:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#gas-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Function",
"symbol": "gate",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#gate",
"desc": "Used in the Hoon standard library."
}, {
"name": "Classic whitespace",
"symbol": "gaw",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#gaw",
"desc": "Used in the Hoon standard library."
}, {
"name": "Optional gap",
"symbol": "gay",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#gay",
"desc": "Used in the Hoon standard library."
}, {
"name": "Grab unit value",
"symbol": "get:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#get-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Grab value by key",
"symbol": "get:ja",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2j/#get-ja",
"desc": "Used in the Hoon standard library."
}, {
"name": "Retrieve set",
"symbol": "get:ju",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2j/#get-ju",
"desc": "Used in the Hoon standard library."
}, {
"name": "Head-tail pair",
"symbol": "get:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#get-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Skip delimiter",
"symbol": "glue",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#glue",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse long numbers",
"symbol": "gon",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#gon",
"desc": "Used in the Hoon standard library."
}, {
"name": "Hash order",
"symbol": "gor",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2f/#gor",
"desc": "Used in the Hoon standard library."
}, {
"name": "Assert for value (map)",
"symbol": "got:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#got-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decimal float to @r",
"symbol": "grd:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#grd-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decimal to float",
"symbol": "grd:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#grd-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decimal float to @rd",
"symbol": "grd:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#grd-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decimal float to @rh",
"symbol": "grd:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#grd-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decimal float to @rs",
"symbol": "grd:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#grd-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Decimal float to @rq",
"symbol": "grd:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#grd-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than / equal",
"symbol": "gte",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#gte",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than / equal (IEEE float)",
"symbol": "gte:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gte-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than / equal (producing flag)",
"symbol": "gte:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gte-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than / equal (double-precision float)",
"symbol": "gte:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gte-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than / equal (half-precision float)",
"symbol": "gte:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gte-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than / equal (single-precision float)",
"symbol": "gte:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gte-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than / equal (quad-precision float)",
"symbol": "gte:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gte-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than",
"symbol": "gth",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#gth",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than (IEEE float)",
"symbol": "gth:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gth-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than (producing flag)",
"symbol": "gth:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gth-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than (double-precision float)",
"symbol": "gth:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gth-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than (half-precision float)",
"symbol": "gth:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gth-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than (single-precision float)",
"symbol": "gth:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gth-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Greater than (quad-precision float)",
"symbol": "gth:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#gth-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Axis syntax < or >",
"symbol": "gul",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#gul",
"desc": "Used in the Hoon standard library."
}, {
"name": "List from range",
"symbol": "gulf",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#gulf",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parsing line and column",
"symbol": "hair",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#hair",
"desc": "Used in the Hoon standard library."
}, {
"name": "Force remold",
"symbol": "hard",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#hard",
"desc": "Used in the Hoon standard library."
}, {
"name": "Key existence check (map)",
"symbol": "has:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#has-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Key existence check (set)",
"symbol": "has:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#has-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Check contents (jug)",
"symbol": "has:ju",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2j/#has-ju",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse # (hax)",
"symbol": "hax",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#hax",
"desc": "Used in the Hoon standard library."
}, {
"name": "Get head of cell",
"symbol": "head",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#head",
"desc": "Used in the Hoon standard library."
}, {
"name": "Place-based apply",
"symbol": "here",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#here",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse - (hep)",
"symbol": "hep",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#hep",
"desc": "Used in the Hoon standard library."
}, {
"name": "Hexadecimal to atom",
"symbol": "hex",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#hex",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse hexadecimal number",
"symbol": "hex:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#hex-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse phonetic pair",
"symbol": "hif:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#hif-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse single uppercase letter",
"symbol": "hig",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#hig",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse single hexadecimal digit",
"symbol": "hit",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#hit",
"desc": "Used in the Hoon standard library."
}, {
"name": "Homogenize list",
"symbol": "homo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#homo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Horizontal hash order",
"symbol": "hor",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2f/#hor",
"desc": "Used in the Hoon standard library."
}, {
"name": "Seconds in hour",
"symbol": "hor:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#hor-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse two phonetic pairs",
"symbol": "huf:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#huf-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 8 phonetic bytes",
"symbol": "hyf:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#hyf-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Integer binary logarithm",
"symbol": "ibl:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#ibl-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Infix",
"symbol": "ifix",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#ifix",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse suffix",
"symbol": "ind:po",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4a/#ind-po",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse prefix",
"symbol": "ins:po",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4a/#ins-po",
"desc": "Used in the Hoon standard library."
}, {
"name": "Intersection (map)",
"symbol": "int:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#int-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Intersection (set)",
"symbol": "int:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#int-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Inverse order of modular field",
"symbol": "inv:fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#inv-fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Inverse",
"symbol": "inv:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#inv-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Inverse (signed modulus)",
"symbol": "inv:fo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#inv-fo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Indentation block",
"symbol": "iny",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#iny",
"desc": "Used in the Hoon standard library."
}, {
"name": "Jar engine",
"symbol": "ja",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2j/#ja",
"desc": "Used in the Hoon standard library."
}, {
"name": "Pack noun to atom",
"symbol": "jam",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2p/#jam",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (jar)",
"symbol": "jar",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2o/#jar",
"desc": "Used in the Hoon standard library."
}, {
"name": "Maximum 64-bit timestamp",
"symbol": "jes:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#jes-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Match a cord",
"symbol": "jest",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#jest",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add separator between list elements",
"symbol": "join",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#join",
"desc": "Used in the Hoon standard library."
}, {
"name": "Jug operations",
"symbol": "ju",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2j/#ju",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (jug)",
"symbol": "jug",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2o/#jug",
"desc": "Used in the Hoon standard library."
}, {
"name": "Match a single character",
"symbol": "just",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#just",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse { (kel)",
"symbol": "kel",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#kel",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse } (ker)",
"symbol": "ker",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#ker",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ^ (ket)",
"symbol": "ket",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#ket",
"desc": "Used in the Hoon standard library."
}, {
"name": "Recursive parsers",
"symbol": "knee",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#knee",
"desc": "Used in the Hoon standard library."
}, {
"name": "Atom type of ASCII characters",
"symbol": "knot",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#knot",
"desc": "Used in the Hoon standard library."
}, {
"name": "Further trace",
"symbol": "last",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4d/#last",
"desc": "Used in the Hoon standard library."
}, {
"name": "Construct list from null-terminated noun",
"symbol": "le:nl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#le-nl",
"desc": "Used in the Hoon standard library."
}, {
"name": "List length",
"symbol": "lent",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#lent",
"desc": "Used in the Hoon standard library."
}, {
"name": "Logical AND on list",
"symbol": "levy",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#levy",
"desc": "Used in the Hoon standard library."
}, {
"name": "Maximum",
"symbol": "lfe:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lfe-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Largest normal float",
"symbol": "lfn:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lfn-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Logical OR on list",
"symbol": "lien",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#lien",
"desc": "Used in the Hoon standard library."
}, {
"name": "Curried bind",
"symbol": "lift",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#lift",
"desc": "Used in the Hoon standard library."
}, {
"name": "Generic edge",
"symbol": "like",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#like",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reference into subject by name/axis",
"symbol": "limb",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#limb",
"desc": "Used in the Hoon standard library."
}, {
"name": "Construct list from null-terminated tuple",
"symbol": "limo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#limo",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "line",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#line",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse IPv4 address",
"symbol": "lip:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#lip-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold constructor (list)",
"symbol": "list",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#list",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (face on mold)",
"symbol": "lone",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#lone",
"desc": "Used in the Hoon standard library."
}, {
"name": "Leg order",
"symbol": "lor",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2f/#lor",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse lowercase letter",
"symbol": "low",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#low",
"desc": "Used in the Hoon standard library."
}, {
"name": "Left-shift",
"symbol": "lsh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#lsh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than / equal (atom)",
"symbol": "lte",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#lte",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than / equal (IEEE float)",
"symbol": "lte:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lte-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than / equal (producing flag)",
"symbol": "lte:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lte-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than / equal (double-precision float)",
"symbol": "lte:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lte-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than / equal (half-precision float)",
"symbol": "lte:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lte-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than / equal (single-precision float)",
"symbol": "lte:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lte-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than / equal (quad-precision float)",
"symbol": "lte:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lte-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than (atom)",
"symbol": "lth",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#lth",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than (IEEE float)",
"symbol": "lth:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lth-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than (signed and unsigned integer cell)",
"symbol": "lth:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lth-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than (double-precision float)",
"symbol": "lth:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lth-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than (half-precision float)",
"symbol": "lth:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lth-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than (single-precision float)",
"symbol": "lth:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lth-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Less than (quad-precision float)",
"symbol": "lth:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lth-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Central rounding mechanism",
"symbol": "lug:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#lug-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse + (lus)",
"symbol": "lus",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#lus",
"desc": "Used in the Hoon standard library."
}, {
"name": "Detect new line",
"symbol": "lust",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4d/#lust",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse unless",
"symbol": "less",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#less",
"desc": "Used in the Hoon standard library."
}, {
"name": "List from raw noun",
"symbol": "ly",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#ly",
"desc": "Used in the Hoon standard library."
}, {
"name": "Initialize ff (rd core)",
"symbol": "ma:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#ma-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Initialize ff (rh core)",
"symbol": "ma:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#ma-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Initialize ff (rs core)",
"symbol": "ma:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#ma-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Initialize ff (rq core)",
"symbol": "ma:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#ma-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Nock subject to unit",
"symbol": "mack",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4n/#mack",
"desc": "Used in the Hoon standard library."
}, {
"name": "Map from list",
"symbol": "malt",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2l/#malt",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (map)",
"symbol": "map",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2o/#map",
"desc": "Used in the Hoon standard library."
}, {
"name": "Assert and add (map)",
"symbol": "mar:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#mar-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Address within head/tail",
"symbol": "mas",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1b/#mas",
"desc": "Used in the Hoon standard library."
}, {
"name": "Match character",
"symbol": "mask",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#mask",
"desc": "Used in the Hoon standard library."
}, {
"name": "Length-encode",
"symbol": "mat",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2p/#mat",
"desc": "Used in the Hoon standard library."
}, {
"name": "Choose",
"symbol": "mate",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#mate",
"desc": "Used in the Hoon standard library."
}, {
"name": "Maximum",
"symbol": "max",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#max",
"desc": "Used in the Hoon standard library."
}, {
"name": "Minimum exponent of ff",
"symbol": "me:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#me-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Crash and printf",
"symbol": "mean",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#mean",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse hexabyte",
"symbol": "mes",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#mes",
"desc": "Used in the Hoon standard library."
}, {
"name": "Escape special characters",
"symbol": "mesc",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#mesc",
"desc": "Used in the Hoon standard library."
}, {
"name": "Measure",
"symbol": "met",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#met",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "metl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#metl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Minimum (atom)",
"symbol": "min",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#min",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mock (virtual Nock) interpreter",
"symbol": "mink",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4n/#mink",
"desc": "Used in the Hoon standard library."
}, {
"name": "Seconds in minute",
"symbol": "mit:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#mit-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Binary XOR (atom)",
"symbol": "mix",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2d/#mix",
"desc": "Used in the Hoon standard library."
}, {
"name": "Compute formula on subject with hint",
"symbol": "mock",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4n/#mock",
"desc": "Used in the Hoon standard library."
}, {
"name": "Modulus (atom)",
"symbol": "mod",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#mod",
"desc": "Used in the Hoon standard library."
}, {
"name": "Days in month",
"symbol": "moh:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#moh-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Map from pair list",
"symbol": "molt",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2l/#molt",
"desc": "Used in the Hoon standard library."
}, {
"name": "Slam gate with sample",
"symbol": "mong",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4n/#mong",
"desc": "Used in the Hoon standard library."
}, {
"name": "Intelligently render crash annotation",
"symbol": "mook",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4n/#mook",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse list with delimiter",
"symbol": "more",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#more",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse list of at least one match",
"symbol": "most",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#most",
"desc": "Used in the Hoon standard library."
}, {
"name": "Days in months of leap-year",
"symbol": "moy:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#moy-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Core used to scramble 16-bit atoms",
"symbol": "mu",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#mu",
"desc": "Used in the Hoon standard library."
}, {
"name": "FNV-1a scrambler",
"symbol": "mug",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2e/#mug",
"desc": "Used in the Hoon standard library."
}, {
"name": "Standard MurmurHash3",
"symbol": "muk",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2e/#muk",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiply (atom)",
"symbol": "mul",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#mul",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiply (IEEE float)",
"symbol": "mul:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#mul-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiply (signed and unsigned integer cell)",
"symbol": "mul:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#mul-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiply (double-precision float)",
"symbol": "mul:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#mul-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiply (quad-precision float)",
"symbol": "mul:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#mul-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiply (single-precision float)",
"symbol": "mul:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#mul-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiply (quad-precision float)",
"symbol": "mul:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#mul-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Typed virtual",
"symbol": "mule",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4n/#mule",
"desc": "Used in the Hoon standard library."
}, {
"name": "Untyped virtual",
"symbol": "mute",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4n/#mute",
"desc": "Used in the Hoon standard library."
}, {
"name": "31-bit MurmurHash3 scrambler",
"symbol": "mum",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2e/#mum",
"desc": "Used in the Hoon standard library."
}, {
"name": "Maybe transform",
"symbol": "murn",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#murn",
"desc": "Used in the Hoon standard library."
}, {
"name": "Map from raw noun",
"symbol": "my",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#my",
"desc": "Used in the Hoon standard library."
}, {
"name": "Construct map from null-terminated noun",
"symbol": "my:nl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#my-nl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Location, remainder of parsed text",
"symbol": "nail",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#nail",
"desc": "Used in the Hoon standard library."
}, {
"name": "Remove head of queue",
"symbol": "nap:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#nap-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Digit rendering engine",
"symbol": "ne",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#ne",
"desc": "Used in the Hoon standard library."
}, {
"name": "Require float",
"symbol": "ned:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#ned-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unwrap unit",
"symbol": "need",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#need",
"desc": "Used in the Hoon standard library."
}, {
"name": "Flip endianness",
"symbol": "net:fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#net-fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Atom to @s",
"symbol": "new:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#new-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Consume character",
"symbol": "next",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#next",
"desc": "Used in the Hoon standard library."
}, {
"name": "Remove root of queue",
"symbol": "nip:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#nip-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse letters and -",
"symbol": "nix",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#nix",
"desc": "Used in the Hoon standard library."
}, {
"name": "Noun to container operations",
"symbol": "nl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#nl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Virtual machine (see Nock)",
"symbol": "nock",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#nock",
"desc": "Used in the Hoon standard library."
}, {
"name": "Binary NOT (atom)",
"symbol": "not",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2d/#not",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "noun",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#noun",
"desc": "Used in the Hoon standard library."
}, {
"name": "Top-level coin parser",
"symbol": "nuck:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#nuck-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse numeric character",
"symbol": "nud",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#nud",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "null",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#null",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse coin literal with escapes",
"symbol": "nusk:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#nusk-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reversible scrambling v2",
"symbol": "ob",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#ob",
"desc": "Used in the Hoon standard library."
}, {
"name": "Container arm for SHA-256 powered RNG",
"symbol": "og",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#og",
"desc": "Used in the Hoon standard library."
}, {
"name": "Sign and absolute value",
"symbol": "old:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#old-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Remove from list",
"symbol": "oust",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#oust",
"desc": "Used in the Hoon standard library."
}, {
"name": "Maximum integer value",
"symbol": "out:fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#out-fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Initialize fl from ff core",
"symbol": "pa:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#pa-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold of pair of types",
"symbol": "pair",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#pair",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse & (pam)",
"symbol": "pam",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#pam",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse @ (pat)",
"symbol": "pat",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#pat",
"desc": "Used in the Hoon standard library."
}, {
"name": "Filesystem path",
"symbol": "path",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#path",
"desc": "Used in the Hoon standard library."
}, {
"name": "Address within address",
"symbol": "peg",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1b/#peg",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ( (pel)",
"symbol": "pel",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#pel",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ) (per)",
"symbol": "per",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#per",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parses dime/tiple without standard prefixes",
"symbol": "perd:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#perd-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse <=5 in base 32",
"symbol": "pev:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#pev-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse <= 5 in base 64",
"symbol": "pew:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#pew-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Discard first rule",
"symbol": "pfix",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#pfix",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parsing range",
"symbol": "pint",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#pint",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 5 digits in base 32",
"symbol": "piv:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#piv-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 5 digits in base 64",
"symbol": "piw:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#piw-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse to tuple",
"symbol": "plug",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#plug",
"desc": "Used in the Hoon standard library."
}, {
"name": "List of at least one match",
"symbol": "plus",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#plus",
"desc": "Used in the Hoon standard library."
}, {
"name": "Phonetic base",
"symbol": "po",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4a/#po",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator of faceless list",
"symbol": "pole",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#pole",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "port",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#port",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse options",
"symbol": "pose",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#pose",
"desc": "Used in the Hoon standard library."
}, {
"name": "Computes a to the power of b",
"symbol": "pow",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2g/#pow",
"desc": "Used in the Hoon standard library."
}, {
"name": "Force precision of 2 or greater (floating point)",
"symbol": "prc:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#prc-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse any printable character",
"symbol": "prn",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#prn",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiplies b and c modulo a",
"symbol": "pro:fo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#pro-fo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Multiply to signed integer",
"symbol": "pro:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#pro-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add key-value pair (map)",
"symbol": "put:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#put-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Put b in a (set)",
"symbol": "put:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#put-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add key-set pair (jar)",
"symbol": "put:ju",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2j/#put-ju",
"desc": "Used in the Hoon standard library."
}, {
"name": "Insert into queue",
"symbol": "put:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#put-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Seconds in 4 years",
"symbol": "qad:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#qad-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse <=4 binary digits",
"symbol": "qeb:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#qeb-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (queue)",
"symbol": "qeu",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2o/#qeu",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse <=4 hexadecimal digits",
"symbol": "qex:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#qex-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 4 binary digits",
"symbol": "qib:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#qib-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse character to cord atom",
"symbol": "qit",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#qit",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 4 hexadecimal digits",
"symbol": "qix:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#qix-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (tuple of list and type)",
"symbol": "quip",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#quip",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse cord",
"symbol": "qut",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#qut",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "r:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#r-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "Random in range",
"symbol": "rad:og",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#rad-og",
"desc": "Used in the Hoon standard library."
}, {
"name": "Random continuation",
"symbol": "rads:og",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#rads-og",
"desc": "Used in the Hoon standard library."
}, {
"name": "Key list",
"symbol": "raku:ob",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#raku-ob",
"desc": "Used in the Hoon standard library."
}, {
"name": "Flatten tank to tape",
"symbol": "ram:re",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#ram-re",
"desc": "Used in the Hoon standard library."
}, {
"name": "Assemble non-zero",
"symbol": "rap",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#rap",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse or crash",
"symbol": "rash",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4g/#rash",
"desc": "Used in the Hoon standard library."
}, {
"name": "Various roundings (floating point)",
"symbol": "rau:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#rau-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Random bits",
"symbol": "raw:og",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#raw-og",
"desc": "Used in the Hoon standard library."
}, {
"name": "Random bits continuation",
"symbol": "raws:og",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#raws-og",
"desc": "Used in the Hoon standard library."
}, {
"name": "Pretty-printing engine (tank)",
"symbol": "re",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#re",
"desc": "Used in the Hoon standard library."
}, {
"name": "Prepend and render atom as tape",
"symbol": "rear:co",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4k/#rear-co",
"desc": "Used in the Hoon standard library."
}, {
"name": "Replicate (list)",
"symbol": "reap",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#reap",
"desc": "Used in the Hoon standard library."
}, {
"name": "Right fold (list)",
"symbol": "reel",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#reel",
"desc": "Used in the Hoon standard library."
}, {
"name": "Remainder (signed integer)",
"symbol": "rem:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#rem-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render coin lot as tape",
"symbol": "rend:co",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4k/#rend-co",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render coin lot as span",
"symbol": "rent:co",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4k/#rent-co",
"desc": "Used in the Hoon standard library."
}, {
"name": "Assemble single",
"symbol": "rep",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#rep",
"desc": "Used in the Hoon standard library."
}, {
"name": "Replace by product (map)",
"symbol": "rep:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#rep-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Accumulate elements (set)",
"symbol": "rep:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#rep-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rf:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rf-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "Replace values with accumulator (map)",
"symbol": "rib:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#rib-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Wrap tape in / (tank)",
"symbol": "rig:re",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#rig-re",
"desc": "Used in the Hoon standard library."
}, {
"name": "Disassemble",
"symbol": "rip",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#rip",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rn:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rn-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "Roll left",
"symbol": "rol:fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#rol-fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Left fold (list)",
"symbol": "roll",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#roll",
"desc": "Used in the Hoon standard library."
}, {
"name": "Roll right",
"symbol": "ror:fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#ror-fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Round to nearest float with 113-bit significand",
"symbol": "rou:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#rou-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse dime float",
"symbol": "royl:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#royl-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "royl-cell:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#royl-cell-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Right-shift",
"symbol": "rsh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#rsh",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rt:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rt-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rta:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rta-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rtam:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rtam-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "Length-decode",
"symbol": "rub",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2p/#rub",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rub:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rub-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rud:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rud-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parsing rule (match this with _)",
"symbol": "rule",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#rule",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rum:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rum-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "Transform values (map)",
"symbol": "run:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#run-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Apply gate to set",
"symbol": "run:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#run-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reverse single Feistel-like",
"symbol": "rund:ob",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#rund-ob",
"desc": "Used in the Hoon standard library."
}, {
"name": "Prepend n times",
"symbol": "runt",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#runt",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rup:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rup-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse or null",
"symbol": "rush",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4g/#rush",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse tape or null",
"symbol": "rust",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4g/#rust",
"desc": "Used in the Hoon standard library."
}, {
"name": "Transform nodes (map)",
"symbol": "rut:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#rut-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "ruv:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#ruv-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "rux:at",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#rux-at",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reverse Feistel-like cipher",
"symbol": "rynd:ob",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#rynd-ob",
"desc": "Used in the Hoon standard library."
}, {
"name": "Identity (produces same value)",
"symbol": "same",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#same",
"desc": "Used in the Hoon standard library."
}, {
"name": "Signed integer to @r",
"symbol": "san:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#san-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Signed integer to float",
"symbol": "san:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#san-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unsigned integer to @rd",
"symbol": "san:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#san-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Signed integer to @rh",
"symbol": "san:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#san-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Signed integer to @rs",
"symbol": "san:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#san-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Signed integer to @rq",
"symbol": "san:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#san-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Soft-cast by odor",
"symbol": "sand",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#sand",
"desc": "Used in the Hoon standard library."
}, {
"name": "Check odor validity",
"symbol": "sane",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#sane",
"desc": "Used in the Hoon standard library."
}, {
"name": "Sign bit",
"symbol": "sb:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sb-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Prefix (produce front of list)",
"symbol": "scag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#scag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse tape or crash",
"symbol": "scan",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4g/#scan",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render dime as cord",
"symbol": "scot",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#scot",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render dime as tape",
"symbol": "scow",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#scow",
"desc": "Used in the Hoon standard library."
}, {
"name": "Convert from IEEE float to fn",
"symbol": "sea:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sea-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Convert from double-precision binary float to fn",
"symbol": "sea:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sea-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Convert from half-precision float to fn",
"symbol": "sea:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sea-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Convert from single-precision float to fn",
"symbol": "sea:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sea-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Convert from quad-precision float to fn",
"symbol": "sea:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sea-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Conditional cook",
"symbol": "sear",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#sear",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 1",
"symbol": "seb:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#seb-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse non-zero decimal digit",
"symbol": "sed:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sed-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse [ (sel)",
"symbol": "sel",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#sel",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ; (sem)",
"symbol": "sem",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#sem",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ] (ser)",
"symbol": "ser",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#ser",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (set)",
"symbol": "set",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2o/#set",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse non-zero base 32 digit",
"symbol": "sev:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sev-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse non-zero base 64 digit",
"symbol": "sew:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sew-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse nonzero hexadecimal digit",
"symbol": "sex:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sex-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Discard second rule",
"symbol": "sfix",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#sfix",
"desc": "Used in the Hoon standard library."
}, {
"name": "Double SHA-256",
"symbol": "shad",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shad",
"desc": "Used in the Hoon standard library."
}, {
"name": "Half SHA-256",
"symbol": "shaf",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shaf",
"desc": "Used in the Hoon standard library."
}, {
"name": "SHA-512 with length",
"symbol": "shal",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shal",
"desc": "Used in the Hoon standard library."
}, {
"name": "128-bit noun hash",
"symbol": "sham",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#sham",
"desc": "Used in the Hoon standard library."
}, {
"name": "SHA-1",
"symbol": "shan",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shan",
"desc": "Used in the Hoon standard library."
}, {
"name": "Salted hash",
"symbol": "shas",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shas",
"desc": "Used in the Hoon standard library."
}, {
"name": "Hash to nbits",
"symbol": "shaw",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shaw",
"desc": "Used in the Hoon standard library."
}, {
"name": "SHA-256",
"symbol": "shax",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shax",
"desc": "Used in the Hoon standard library."
}, {
"name": "SHA-256 with length",
"symbol": "shay",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shay",
"desc": "Used in the Hoon standard library."
}, {
"name": "SHA-512",
"symbol": "shaz",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3d/#shaz",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "shep",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#shep",
"desc": "Used in the Hoon standard library."
}, {
"name": "Shift power",
"symbol": "shf:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#shf-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Match character within range",
"symbol": "shim",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#shim",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "shop",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#shop",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "show",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#show",
"desc": "Used in the Hoon standard library."
}, {
"name": "Signed integer",
"symbol": "si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Construct set from null-terminated noun",
"symbol": "si:nl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#si-nl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse binary digit",
"symbol": "sib:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sib-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse decimal digit",
"symbol": "sid:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sid-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ~ (sig)",
"symbol": "sig",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#sig",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce sign of IEEE float",
"symbol": "sig:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sig-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce sign of @rd",
"symbol": "sig:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sig-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce sign of half-precision float",
"symbol": "sig:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sig-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce sign of @rs",
"symbol": "sig:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sig-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce sign of quad-precision float",
"symbol": "sig:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sig-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce set from list",
"symbol": "silt",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2l/#silt",
"desc": "Used in the Hoon standard library."
}, {
"name": "First and second",
"symbol": "simu",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4e/#simu",
"desc": "Used in the Hoon standard library."
}, {
"name": "Enforce modulo",
"symbol": "sit:fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#sit-fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce remainder of b modulo a",
"symbol": "sit:fo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#sit-fo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse a base 32 digit",
"symbol": "siv:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#siv-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse a base 64 digit",
"symbol": "siw:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#siw-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse a hexadecimal digit",
"symbol": "six:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#six-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Separate list into two lists from slammed elments",
"symbol": "skid",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#skid",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce list of elements from boolean gate",
"symbol": "skim",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#skim",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce list of elements failing boolean gate",
"symbol": "skip",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#skip",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce all elements from index in list",
"symbol": "slag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#slag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Curried slaw",
"symbol": "slat",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#slat",
"desc": "Used in the Hoon standard library."
}, {
"name": "Demand: parse cord with input odor",
"symbol": "slav",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#slav",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse cord to input odor",
"symbol": "slaw",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#slaw",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse cord to coin",
"symbol": "slay",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#slay",
"desc": "Used in the Hoon standard library."
}, {
"name": "Deify printf",
"symbol": "slog",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#slog",
"desc": "Used in the Hoon standard library."
}, {
"name": "Use gate to parse delimited list",
"symbol": "slug",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#slug",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render path as tank",
"symbol": "smyt",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#smyt",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce element at specific index (list)",
"symbol": "snag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#snag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce element from list at specific null-terminated noun",
"symbol": "snag:nl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#snag-nl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Append noun to list",
"symbol": "snoc",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#snoc",
"desc": "Used in the Hoon standard library."
}, {
"name": "Coin parser engine",
"symbol": "so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Maybe remold",
"symbol": "soft",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#soft",
"desc": "Used in the Hoon standard library."
}, {
"name": "Wrap value in unit",
"symbol": "some",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2a/#some",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ' (soq)",
"symbol": "soq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#soq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Quicksort (list)",
"symbol": "sort",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#sort",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse base 32 letter",
"symbol": "sov:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sov-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse base 64 letter/symbol",
"symbol": "sow:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sow-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse hexadecimal letter",
"symbol": "sox:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#sox-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse triple single-quote",
"symbol": "soz",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#soz",
"desc": "Used in the Hoon standard library."
}, {
"name": "ASCII atom",
"symbol": "span",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#span",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render path as cord",
"symbol": "spat",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#spat",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce smallest denormalized float",
"symbol": "spd:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#spd-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Gate to list (with state)",
"symbol": "spin",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#spin",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce smallest normal float",
"symbol": "spn:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#spn-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Stack trace line",
"symbol": "spot",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#spot",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render path as tape",
"symbol": "spud",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#spud",
"desc": "Used in the Hoon standard library."
}, {
"name": "Gate to list (with state)",
"symbol": "spun",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#spun",
"desc": "Used in the Hoon standard library."
}, {
"name": "Compute square root with remainder",
"symbol": "sqt",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2g/#sqt",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce square root of IEEE float",
"symbol": "sqt:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sqt-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce square root from signed and unsigned integer cell",
"symbol": "sqt:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sqt-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce square root of double-precision float",
"symbol": "sqt:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sqt-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce square root of half-precision float",
"symbol": "sqt:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sqt-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce square root of single-precision float",
"symbol": "sqt:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sqt-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce square root of quad-precision float",
"symbol": "sqt:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sqt-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse cord to path",
"symbol": "stab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4m/#stab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add label",
"symbol": "stag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#stag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce list of matches",
"symbol": "star",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#star",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add faces to range-parser pairs in list",
"symbol": "stet",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#stet",
"desc": "Used in the Hoon standard library."
}, {
"name": "Switch by first",
"symbol": "stew",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#stew",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse repeatedly",
"symbol": "stir",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#stir",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse several times",
"symbol": "stun",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4f/#stun",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtract",
"symbol": "sub",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1a/#sub",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtract from IEEE float",
"symbol": "sub:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sub-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtract from signed and unsigned integer cells",
"symbol": "sub:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sub-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtract from double-precision float",
"symbol": "sub:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sub-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtract from half-precision float",
"symbol": "sub:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sub-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtract from single-precision float",
"symbol": "sub:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sub-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtract from quad-precision float",
"symbol": "sub:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sub-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Sum two numbers in modular field",
"symbol": "sum:fe",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#sum-fe",
"desc": "Used in the Hoon standard library."
}, {
"name": "Modular sum",
"symbol": "sum:fo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#sum-fo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Addition (signed integer)",
"symbol": "sum:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#sum-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unsigned integer to IEEE float",
"symbol": "sun:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sun-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unsigned integer to float",
"symbol": "sun:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sun-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unsigned integer to double-precision float",
"symbol": "sun:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sun-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unsigned integer to half-precision float",
"symbol": "sun:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sun-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unsigned integer to single-precision float",
"symbol": "sun:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sun-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unsigned integer to quad-precision float",
"symbol": "sun:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#sun-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "@u to @s",
"symbol": "sun:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#sun-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Infix (list)",
"symbol": "swag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#swag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reverse block order",
"symbol": "swp",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#swp",
"desc": "Used in the Hoon standard library."
}, {
"name": "Switch rounding mode of floating point",
"symbol": "swr:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#swr-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce set from null-terminated noun",
"symbol": "sy",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#sy",
"desc": "Used in the Hoon standard library."
}, {
"name": "Term",
"symbol": "sym",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#sym",
"desc": "Used in the Hoon standard library."
}, {
"name": "Get sign",
"symbol": "syn:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#syn-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Sign test",
"symbol": "syn:si",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3a/#syn-si",
"desc": "Used in the Hoon standard library."
}, {
"name": "Get tail of cell",
"symbol": "tail",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#tail",
"desc": "Used in the Hoon standard library."
}, {
"name": "Queue to list",
"symbol": "tap:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#tap-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse * (tar)",
"symbol": "tar",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#tar",
"desc": "Used in the Hoon standard library."
}, {
"name": "Generic print structure",
"symbol": "tang",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#tang",
"desc": "Used in the Hoon standard library."
}, {
"name": "Pretty-printing structure",
"symbol": "tank",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#tank",
"desc": "Used in the Hoon standard library."
}, {
"name": "Listify pairs",
"symbol": "tap:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#tap-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Flatten set into list",
"symbol": "tap:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#tap-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "List of characters",
"symbol": "tape",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#tape",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parsed time",
"symbol": "tarp",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#tarp",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse signed dime",
"symbol": "tash:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#tash-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ` (tec)",
"symbol": "tec",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#tec",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse decimal number with <= 3 digits",
"symbol": "ted:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#ted-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "UTF-8 length",
"symbol": "teff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#teff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reverse Feistel-like cipher",
"symbol": "teil:ob",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#teil-ob",
"desc": "Used in the Hoon standard library."
}, {
"name": "Hoon constant",
"symbol": "term",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#term",
"desc": "Used in the Hoon standard library."
}, {
"name": "Test for equality",
"symbol": "test",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2n/#test",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 3 decimal digits",
"symbol": "tid:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#tid-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "(Undocumented)",
"symbol": "tiki",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#tiki",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse 3 lowercase letters",
"symbol": "til:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#til-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Leading phonetic byte",
"symbol": "tip:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#tip-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Trailing phonetic syllable",
"symbol": "tiq:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#tiq-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse = (tis)",
"symbol": "tis",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#tis",
"desc": "Used in the Hoon standard library."
}, {
"name": "Queue operations",
"symbol": "to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fetch suffix",
"symbol": "tod:po",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4a/#tod-po",
"desc": "Used in the Hoon standard library."
}, {
"name": "Tree of faces",
"symbol": "toga",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#toga",
"desc": "Used in the Hoon standard library."
}, {
"name": "Round IEEE float to nearest signed integer",
"symbol": "toi:ff",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#toi-ff",
"desc": "Used in the Hoon standard library."
}, {
"name": "Round float to nearest signed integer",
"symbol": "toi:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#toi-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Round double-precision float to nearest signed integer",
"symbol": "toi:rd",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#toi-rd",
"desc": "Used in the Hoon standard library."
}, {
"name": "Round half-precision float to nearest signed integer",
"symbol": "toi:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#toi-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Round single-precision float to nearest signed integer",
"symbol": "toi:rs",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#toi-rs",
"desc": "Used in the Hoon standard library."
}, {
"name": "Round quad-precision float to nearest signed integer",
"symbol": "toi:rq",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#toi-rq",
"desc": "Used in the Hoon standard library."
}, {
"name": "Round unsigned and signed integer to float",
"symbol": "toj:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#toj-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Nock result (error report)",
"symbol": "tone",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#tone",
"desc": "Used in the Hoon standard library."
}, {
"name": "Nock result (stack trace)",
"symbol": "toon",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#toon",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce head of queue",
"symbol": "top:to",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2k/#top-to",
"desc": "Used in the Hoon standard library."
}, {
"name": "Fetch prefix",
"symbol": "tos:po",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4a/#tos-po",
"desc": "Used in the Hoon standard library."
}, {
"name": "Convert half-precision float to single-precision float",
"symbol": "tos:rh",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#tos-rh",
"desc": "Used in the Hoon standard library."
}, {
"name": "Core with one arm $",
"symbol": "trap",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#trap",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (tree)",
"symbol": "tree",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#tree",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (tuple of three types)",
"symbol": "trel",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#trel",
"desc": "Used in the Hoon standard library."
}, {
"name": "Tape split",
"symbol": "trim",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#trim",
"desc": "Used in the Hoon standard library."
}, {
"name": "Cord to tape",
"symbol": "trip",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#trip",
"desc": "Used in the Hoon standard library."
}, {
"name": "UTF-8 to UTF-32 tape",
"symbol": "tuba",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#tuba",
"desc": "Used in the Hoon standard library."
}, {
"name": "UTF-32 to UTF-8 tape",
"symbol": "tufa",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#tufa",
"desc": "Used in the Hoon standard library."
}, {
"name": "XML template tree",
"symbol": "tuna",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#tuna",
"desc": "Used in the Hoon standard library."
}, {
"name": "UTF-32 to UTF-8 text",
"symbol": "tuft",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#tuft",
"desc": "Used in the Hoon standard library."
}, {
"name": "UTF-8 to UTF-32 cord",
"symbol": "turf",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#turf",
"desc": "Used in the Hoon standard library."
}, {
"name": "Gate to list",
"symbol": "turn",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#turn",
"desc": "Used in the Hoon standard library."
}, {
"name": "List of expressions",
"symbol": "tusk",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#tusk",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse coins without ~ prefix",
"symbol": "twid:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#twid-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "List of 'maybe' hoons",
"symbol": "tyke",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#tyke",
"desc": "Used in the Hoon standard library."
}, {
"name": "Pointer for type",
"symbol": "typo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#typo",
"desc": "Used in the Hoon standard library."
}, {
"name": "List, term hoon",
"symbol": "tyre",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#tyre",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reversible scrambling",
"symbol": "un",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#un",
"desc": "Used in the Hoon standard library."
}, {
"name": "Union (map between keys of two lists)",
"symbol": "uni:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#uni-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Change representation to odd",
"symbol": "uni:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#uni-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Union (sets)",
"symbol": "uni:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#uni-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Mold generator (maybe)",
"symbol": "unit",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/1c/#unit",
"desc": "Used in the Hoon standard library."
}, {
"name": "Turn (with key) (map)",
"symbol": "urn:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#urn-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse span characters",
"symbol": "urs:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#urs-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse non-_ span",
"symbol": "urt:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#urt-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render base 32",
"symbol": "v:ne",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#v-ne",
"desc": "Used in the Hoon standard library."
}, {
"name": "Typed data",
"symbol": "vase",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#vase",
"desc": "Used in the Hoon standard library."
}, {
"name": "Axis syntax parser",
"symbol": "ven",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#ven",
"desc": "Used in the Hoon standard library."
}, {
"name": "Convert during reboot",
"symbol": "vise",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#vise",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse base 64 digit",
"symbol": "vit",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#vit",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse base 32 digit with dot separators",
"symbol": "viz:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#viz-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Vertical order",
"symbol": "vor",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2f/#vor",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse bas, soq, or bix",
"symbol": "voy:ab",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#voy-ab",
"desc": "Used in the Hoon standard library."
}, {
"name": "Comments to null",
"symbol": "vul",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4i/#vul",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse base 32 string",
"symbol": "vum:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#vum-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render base 64 digit",
"symbol": "w:ne",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#w-ne",
"desc": "Used in the Hoon standard library."
}, {
"name": "Coin format encode",
"symbol": "wack",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#wack",
"desc": "Used in the Hoon standard library."
}, {
"name": "List of cords",
"symbol": "wain",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#wain",
"desc": "Used in the Hoon standard library."
}, {
"name": "List of list of characters",
"symbol": "wall",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2q/#wall",
"desc": "Used in the Hoon standard library."
}, {
"name": "Concatenate two lists",
"symbol": "weld",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#weld",
"desc": "Used in the Hoon standard library."
}, {
"name": "Concatenate null-terminated nouns",
"symbol": "weld:nl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2m/#weld-nl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Perfect concatenate (lists)",
"symbol": "welp",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#welp",
"desc": "Used in the Hoon standard library."
}, {
"name": "Coin format decode",
"symbol": "wick",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#wick",
"desc": "Used in the Hoon standard library."
}, {
"name": "win - render tape",
"symbol": "wig:re",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#wig-re",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render at indent",
"symbol": "win:re",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4c/#win-re",
"desc": "Used in the Hoon standard library."
}, {
"name": "Address in subject",
"symbol": "wing",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4o/#wing",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse base 64 number",
"symbol": "wiz:ag",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#wiz-ag",
"desc": "Used in the Hoon standard library."
}, {
"name": "Unescape cord",
"symbol": "woad",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#woad",
"desc": "Used in the Hoon standard library."
}, {
"name": "Escape cord",
"symbol": "wood",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4b/#wood",
"desc": "Used in the Hoon standard library."
}, {
"name": "Product from edge",
"symbol": "wonk",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3g/#wonk",
"desc": "Used in the Hoon standard library."
}, {
"name": "Restore structure",
"symbol": "wred:un",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#wred-un",
"desc": "Used in the Hoon standard library."
}, {
"name": "Conceal structure",
"symbol": "wren:un",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#wren-un",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ? (wut)",
"symbol": "wut",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#wut",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce depth of tree map",
"symbol": "wyt:by",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2i/#wyt-by",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce number of elements in set",
"symbol": "wyt:in",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2h/#wyt-in",
"desc": "Used in the Hoon standard library."
}, {
"name": "Render hexadecimal digit as atom of ASCII byte value",
"symbol": "x:ne",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#x-ne",
"desc": "Used in the Hoon standard library."
}, {
"name": "Binary logarithm",
"symbol": "xeb",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2c/#xeb",
"desc": "Used in the Hoon standard library."
}, {
"name": "Expand signed and unsigned integer cell",
"symbol": "xpd:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#xpd-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Time since beginning of time",
"symbol": "yall",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#yall",
"desc": "Used in the Hoon standard library."
}, {
"name": "Days since beginning of time",
"symbol": "yawn",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#yawn",
"desc": "Used in the Hoon standard library."
}, {
"name": "Date to @d",
"symbol": "year",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#year",
"desc": "Used in the Hoon standard library."
}, {
"name": "Tarp from atomic date",
"symbol": "yell",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#yell",
"desc": "Used in the Hoon standard library."
}, {
"name": "Determine if leap-week",
"symbol": "yelp",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#yelp",
"desc": "Used in the Hoon standard library."
}, {
"name": "Seconds in year",
"symbol": "yer:yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#yer-yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Time constants core",
"symbol": "yo",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#yo",
"desc": "Used in the Hoon standard library."
}, {
"name": "Date from atomic date",
"symbol": "yore",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#yore",
"desc": "Used in the Hoon standard library."
}, {
"name": "Daily time to time atom",
"symbol": "yule",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3c/#yule",
"desc": "Used in the Hoon standard library."
}, {
"name": "Look up in 255 sub box",
"symbol": "zaft:un",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#zaft-un",
"desc": "Used in the Hoon standard library."
}, {
"name": "Add bottom into top",
"symbol": "zag:mu",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#zag-mu",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse ! (zap)",
"symbol": "zap",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4h/#zap",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reverse look up in 255 sub box",
"symbol": "zart:un",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#zart-un",
"desc": "Used in the Hoon standard library."
}, {
"name": "Produce zero as float",
"symbol": "zer:fl",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3b/#zer-fl",
"desc": "Used in the Hoon standard library."
}, {
"name": "Subtract bottom from top",
"symbol": "zig:mu",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#zig-mu",
"desc": "Used in the Hoon standard library."
}, {
"name": "Turn lists into single list by promoting elements from sublists",
"symbol": "zing",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/2b/#zing",
"desc": "Used in the Hoon standard library."
}, {
"name": "Concatenate into atom",
"symbol": "zug:mu",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4j/#zug-mu",
"desc": "Used in the Hoon standard library."
}, {
"name": "Parse prefixed dimes from IP, loobean, or floating point",
"symbol": "zust:so",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/4l/#zust-so",
"desc": "Used in the Hoon standard library."
}, {
"name": "Lookup byte in 256 sub box",
"symbol": "zyft:un",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#zyft-un",
"desc": "Used in the Hoon standard library."
}, {
"name": "Reverse lookup byte in 256 sub box",
"symbol": "zyrt:un",
"usage": "stdlib",
"link": "https://urbit.org/docs/reference/library/3f/#zyrt-un",
"desc": "Used in the Hoon standard library."
}
]
|
'use strict';
const fs = require('fs');
const sysPath = require('path');
const isBinaryPath = require('is-binary-path');
const { promisify } = require('util');
const open = promisify(fs.open);
const stat = promisify(fs.stat);
const lstat = promisify(fs.lstat);
const close = promisify(fs.close);
const fsrealpath = promisify(fs.realpath);
const statMethods = { lstat, stat };
/**
* @typedef {String} Path
*/
// fs_watch helpers
// object to hold per-process fs_watch instances
// (may be shared across chokidar FSWatcher instances)
/**
* @typedef {Object} FsWatchContainer
* @property {Set} listeners
* @property {Set} errHandlers
* @property {Set} rawEmitters
* @property {fs.FSWatcher=} watcher
* @property {Boolean=} watcherUnusable
*/
/**
* @type {Map<String,FsWatchContainer>}
*/
const FsWatchInstances = new Map();
const emptyFn = () => {};
const FUNCTIONS = ['listeners', 'errHandlers', 'rawEmitters'];
/**
* Instantiates the fs_watch interface
* @param {String} path to be watched
* @param {Object} options to be passed to fs_watch
* @param {Function} listener main event handler
* @param {Function} errHandler emits info about errors
* @param {Function} emitRaw emits raw event data
* @returns {fs.FSWatcher} new fsevents instance
*/
function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
const handleEvent = (rawEvent, evPath) => {
listener(path);
emitRaw(rawEvent, evPath, {watchedPath: path});
// emit based on events occurring for files from a directory's watcher in
// case the file's watcher misses it (and rely on throttling to de-dupe)
if (evPath && path !== evPath) {
fsWatchBroadcast(
sysPath.resolve(path, evPath), 'listeners', sysPath.join(path, evPath)
);
}
};
try {
return fs.watch(path, options, handleEvent);
} catch (error) {
errHandler(error);
}
}
/**
* Helper for passing fs_watch event data to a collection of listeners
* @param {Path} fullPath absolute path bound to fs_watch instance
* @param {String} type listener type
* @param {*=} val1 arguments to be passed to listeners
* @param {*=} val2
* @param {*=} val3
*/
const fsWatchBroadcast = (fullPath, type, val1, val2, val3) => {
const cont = FsWatchInstances.get(fullPath);
if (!cont) return;
cont[type].forEach((listener) => {
listener(val1, val2, val3);
});
};
/**
* Instantiates the fs_watch interface or binds listeners
* to an existing one covering the same file system entry
* @param {String} path
* @param {String} fullPath absolute path
* @param {Object} options to be passed to fs_watch
* @param {Object} handlers container for event listener functions
*/
const setFsWatchListener = (path, fullPath, options, handlers) => {
const listener = handlers.listener;
const errHandler = handlers.errHandler;
const rawEmitter = handlers.rawEmitter;
let cont = FsWatchInstances.get(fullPath);
/** @type {fs.FSWatcher=} */
let watcher;
if (!options.persistent) {
watcher = createFsWatchInstance(
path, options, listener, errHandler, rawEmitter
);
return watcher.close.bind(watcher);
}
if (cont) {
cont.listeners.add(listener);
cont.errHandlers.add(errHandler);
cont.rawEmitters.add(rawEmitter);
} else {
watcher = createFsWatchInstance(
path,
options,
fsWatchBroadcast.bind(null, fullPath, 'listeners'),
errHandler, // no need to use broadcast here
fsWatchBroadcast.bind(null, fullPath, 'rawEmitters')
);
if (!watcher) return;
const broadcastErr = fsWatchBroadcast.bind(null, fullPath, 'errHandlers');
watcher.on('error', async (error) => {
cont.watcherUnusable = true; // documented since Node 10.4.1
// Workaround for https://github.com/joyent/node/issues/4337
if (process.platform === 'win32' && error.code === 'EPERM') {
try {
const fd = await open(path, 'r');
await close(fd);
broadcastErr(error);
} catch (err) {}
} else {
broadcastErr(error);
}
});
cont = {
listeners: new Set([listener]),
errHandlers: new Set([errHandler]),
rawEmitters: new Set([rawEmitter]),
watcher: watcher
};
FsWatchInstances.set(fullPath, cont);
}
// const index = cont.listeners.indexOf(listener);
// removes this instance's listeners and closes the underlying fs_watch
// instance if there are no more listeners left
return () => {
cont.listeners.delete(listener);
cont.errHandlers.delete(errHandler);
cont.rawEmitters.delete(rawEmitter);
if (!cont.listeners.size) {
// Check to protect against issue gh-730.
// if (cont.watcherUnusable) {
cont.watcher.close();
// }
FsWatchInstances.delete(fullPath);
FUNCTIONS.forEach(key => {
const set = cont[key];
set.clear();
Object.freeze(set);
});
cont.watcher = null;
Object.freeze(cont);
}
};
};
// fs_watchFile helpers
// object to hold per-process fs_watchFile instances
// (may be shared across chokidar FSWatcher instances)
const FsWatchFileInstances = new Map();
/**
* Instantiates the fs_watchFile interface or binds listeners
* to an existing one covering the same file system entry
* @param {String} path to be watched
* @param {String} fullPath absolute path
* @param {Object} options options to be passed to fs_watchFile
* @param {Object} handlers container for event listener functions
* @returns {Function} closer
*/
const setFsWatchFileListener = (path, fullPath, options, handlers) => {
const listener = handlers.listener;
const rawEmitter = handlers.rawEmitter;
let cont = FsWatchFileInstances.get(fullPath);
let listeners = new Set();
let rawEmitters = new Set();
const copts = cont && cont.options;
if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
// "Upgrade" the watcher to persistence or a quicker interval.
// This creates some unlikely edge case issues if the user mixes
// settings in a very weird way, but solving for those cases
// doesn't seem worthwhile for the added complexity.
listeners = cont.listeners;
rawEmitters = cont.rawEmitters;
fs.unwatchFile(fullPath);
cont = null;
}
if (cont) {
cont.listeners.add(listener);
cont.rawEmitters.add(rawEmitter);
} else {
listeners.add(listener);
rawEmitters.add(rawEmitter);
cont = {
listeners: listeners,
rawEmitters: rawEmitters,
options: options,
watcher: fs.watchFile(fullPath, options, (curr, prev) => {
cont.rawEmitters.forEach((rawEmitter) => {
rawEmitter('change', fullPath, {curr: curr, prev: prev});
});
const currmtime = curr.mtimeMs;
if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {
cont.listeners.forEach((listener) => listener(path, curr));
}
})
};
FsWatchFileInstances.set(fullPath, cont);
}
// const index = cont.listeners.indexOf(listener);
// Removes this instance's listeners and closes the underlying fs_watchFile
// instance if there are no more listeners left.
return () => {
cont.listeners.delete(listener);
cont.rawEmitters.delete(rawEmitter);
if (!cont.listeners.size) {
FsWatchFileInstances.delete(fullPath);
fs.unwatchFile(fullPath);
cont.options = cont.watcher = null;
Object.freeze(cont);
Object.freeze(cont.listeners);
}
};
};
/**
* @mixin
*/
class NodeFsHandler {
/**
* @param {import("../index").FSWatcher} fsW
*/
constructor(fsW) {
this.fsw = fsW;
this._boundHandleError = (error) => fsW._handleError(error);
}
/**
* Watch file for changes with fs_watchFile or fs_watch.
* @param {String} path to file or dir
* @param {Function} listener on fs change
* @returns {Function} closer for the watcher instance
*/
_watchWithNodeFs(path, listener) {
const opts = this.fsw.options;
const directory = sysPath.dirname(path);
const basename = sysPath.basename(path);
const parent = this.fsw._getWatchedDir(directory);
parent.add(basename);
const absolutePath = sysPath.resolve(path);
const options = {persistent: opts.persistent};
if (!listener) listener = emptyFn;
let closer;
if (opts.usePolling) {
options.interval = opts.enableBinaryInterval && isBinaryPath(basename) ?
opts.binaryInterval : opts.interval;
closer = setFsWatchFileListener(path, absolutePath, options, {
listener: listener,
rawEmitter: this.fsw._emitRaw
});
} else {
closer = setFsWatchListener(path, absolutePath, options, {
listener: listener,
errHandler: this._boundHandleError,
rawEmitter: this.fsw._emitRaw
});
}
return closer;
}
/**
* Watch a file and emit add event if warranted.
* @param {Path} file Path
* @param {fs.Stats} stats result of fs_stat
* @param {Boolean} initialAdd was the file added at watch instantiation?
* @returns {Function} closer for the watcher instance
*/
_handleFile(file, stats, initialAdd) {
if (this.fsw.closed) {
return;
}
const dirname = sysPath.dirname(file);
const basename = sysPath.basename(file);
const parent = this.fsw._getWatchedDir(dirname);
// stats is always present
let prevStats = stats;
// if the file is already being watched, do nothing
if (parent.has(basename)) return;
// kick off the watcher
const closer = this._watchWithNodeFs(file, async (path, newStats) => {
if (!this.fsw._throttle('watch', file, 5)) return;
if (!newStats || newStats && newStats.mtimeMs === 0) {
try {
const newStats = await stat(file);
if (this.fsw.closed) {
return;
}
// Check that change event was not fired because of changed only accessTime.
const at = newStats.atimeMs;
const mt = newStats.mtimeMs;
if (!at || at <= mt || mt !== prevStats.mtimeMs) {
this.fsw._emit('change', file, newStats);
}
prevStats = newStats;
} catch (error) {
// Fix issues where mtime is null but file is still present
this.fsw._remove(dirname, basename);
}
// add is about to be emitted if file not already tracked in parent
} else if (parent.has(basename)) {
// Check that change event was not fired because of changed only accessTime.
const at = newStats.atimeMs;
const mt = newStats.mtimeMs;
if (!at || at <= mt || mt !== prevStats.mtimeMs) {
this.fsw._emit('change', file, newStats);
}
prevStats = newStats;
}
});
// emit an add event if we're supposed to
if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {
if (!this.fsw._throttle('add', file, 0)) return;
this.fsw._emit('add', file, stats);
}
return closer;
}
/**
* Handle symlinks encountered while reading a dir.
* @param {Object} entry returned by readdirp
* @param {String} directory path of dir being read
* @param {String} path of this item
* @param {String} item basename of this item
* @returns {Promise<Boolean>} true if no more processing is needed for this entry.
*/
async _handleSymlink(entry, directory, path, item) {
if (this.fsw.closed) {
return;
}
const full = entry.fullPath;
const dir = this.fsw._getWatchedDir(directory);
if (!this.fsw.options.followSymlinks) {
// watch symlink directly (don't follow) and detect changes
this.fsw._incrReadyCount();
const linkPath = await fsrealpath(path);
if (dir.has(item)) {
if (this.fsw._symlinkPaths.get(full) !== linkPath) {
this.fsw._symlinkPaths.set(full, linkPath);
this.fsw._emit('change', path, entry.stats);
}
} else {
dir.add(item);
this.fsw._symlinkPaths.set(full, linkPath);
this.fsw._emit('add', path, entry.stats);
}
this.fsw._emitReady();
return true;
}
// don't follow the same symlink more than once
if (this.fsw._symlinkPaths.has(full)) {
return true;
} else {
this.fsw._symlinkPaths.set(full, true);
}
}
_handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
// Normalize the directory name on Windows
directory = sysPath.join(directory, '');
if (!wh.hasGlob) {
// throttler = this.fsw._throttle('readdir', directory, 1000);
// if (!throttler) return;
}
const previous = this.fsw._getWatchedDir(wh.path);
const current = new Set();
const stream = this.fsw._readdirp(directory, {
fileFilter: entry => wh.filterPath(entry),
directoryFilter: entry => wh.filterDir(entry),
depth: 0,
}).on('data', async (entry) => {
if (this.fsw.closed) {
return;
}
const item = entry.path;
let path = sysPath.join(directory, item);
current.add(item);
if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path, item))
return;
// Files that present in current directory snapshot
// but absent in previous are added to watch list and
// emit `add` event.
if (item === target || !target && !previous.has(item)) {
this.fsw._incrReadyCount();
// ensure relativeness of path is preserved in case of watcher reuse
path = sysPath.join(dir, sysPath.relative(dir, path));
this._addToNodeFs(path, initialAdd, wh, depth + 1);
}
}).on('error', this._boundHandleError);
return new Promise(res =>
stream
.on('end', () => {
const wasThrottled = throttler ? throttler.clear() : false;
res();
// Files that absent in current directory snapshot
// but present in previous emit `remove` event
// and are removed from @watched[directory].
previous.getChildren().filter((item) =>
item !== directory &&
!current.has(item) &&
// in case of intersecting globs;
// a path may have been filtered out of this readdir, but
// shouldn't be removed because it matches a different glob
(!wh.hasGlob || wh.filterPath({
fullPath: sysPath.resolve(directory, item)
}))
).forEach((item) => {
this.fsw._remove(directory, item);
});
// one more time for any missed in case changes came in extremely quickly
if (wasThrottled) this._handleRead(directory, false, wh, target, dir, depth, throttler);
})
);
}
/**
* Read directory to add / remove files from `@watched` list and re-read it on change.
* @param {String} dir fs path
* @param {fs.Stats} stats
* @param {Boolean} initialAdd
* @param {Number} depth relative to user-supplied path
* @param {String} target child path targetted for watch
* @param {Object} wh Common watch helpers for this path
* @param {String} realpath
* @returns {Promise<Function>} closer for the watcher instance.
*/
async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) {
const parentDir = this.fsw._getWatchedDir(sysPath.dirname(dir));
const tracked = parentDir.has(sysPath.basename(dir));
if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) {
if (!wh.hasGlob || wh.globFilter(dir)) this.fsw._emit('addDir', dir, stats);
}
// ensure dir is tracked (harmless if redundant)
parentDir.add(sysPath.basename(dir));
this.fsw._getWatchedDir(dir);
let throttler;
let closer;
const oDepth = this.fsw.options.depth;
if ((oDepth == null || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath)) {
if (!target) {
await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler);
}
closer = this._watchWithNodeFs(dir, (dirPath, stats) => {
// if current directory is removed, do nothing
if (stats && stats.mtimeMs === 0) return;
this._handleRead(dirPath, false, wh, target, dir, depth, throttler);
});
}
return closer;
}
/**
* Handle added file, directory, or glob pattern.
* Delegates call to _handleFile / _handleDir after checks.
* @param {String} path to file or ir
* @param {Boolean} initialAdd was the file added at watch instantiation?
* @param {Object} priorWh depth relative to user-supplied path
* @param {Number} depth Child path actually targetted for watch
* @param {String=} target Child path actually targeted for watch
* @returns {Promise}
*/
async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
const ready = this.fsw._emitReady;
if (this.fsw._isIgnored(path) || this.fsw.closed) {
ready();
return false;
}
let wh = this.fsw._getWatchHelpers(path, depth);
if (!wh.hasGlob && priorWh) {
wh.hasGlob = priorWh.hasGlob;
wh.globFilter = priorWh.globFilter;
wh.filterPath = entry => priorWh.filterPath(entry);
wh.filterDir = entry => priorWh.filterDir(entry);
}
// evaluate what is at the path we're being asked to watch
try {
const stats = await statMethods[wh.statMethod](wh.watchPath);
if (this.fsw.closed) {
return;
}
if (this.fsw._isIgnored(wh.watchPath, stats)) {
ready();
return false;
}
const follow = this.fsw.options.followSymlinks && !path.includes("*") && !path.includes("{");
let closer;
if (stats.isDirectory()) {
const targetPath = follow ? await fsrealpath(path) : path;
closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
// preserve this symlink's target path
if (path !== targetPath && targetPath !== undefined) {
this.fsw._symlinkPaths.set(targetPath, true);
}
} else if (stats.isSymbolicLink()) {
const targetPath = follow ? await fsrealpath(path) : path;
const parent = sysPath.dirname(wh.watchPath);
this.fsw._getWatchedDir(parent).add(wh.watchPath);
this.fsw._emit('add', wh.watchPath, stats);
closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath);
// preserve this symlink's target path
if (targetPath !== undefined) {
this.fsw._symlinkPaths.set(sysPath.resolve(path), targetPath);
}
} else {
closer = this._handleFile(wh.watchPath, stats, initialAdd);
}
ready();
this.fsw._addPathCloser(path, closer);
return false;
} catch (error) {
if (this.fsw._handleError(error)) {
ready();
return path;
}
}
}
}
module.exports = NodeFsHandler;
|
const merge = require("webpack-merge");
const path = require("path");
const sharedConfig = {
watch: true,
mode: "development",
module: {
rules: [
{
test: /(\.ts|\.tsx|\.jsx)/,
exclude: /node_modules/,
use: [
{
loader: "babel-loader",
options: {
presets: [
["babel-preset-env", {
"targets": {
"browsers": [
"last 2 versions",
"IE >= 11"
]
},
"useBuiltIns": true
}], "babel-preset-react", "babel-preset-flow"],
plugins: [
"transform-object-rest-spread",
"react-hot-loader/babel"
]
}
},
"ts-loader",
]
},
]
},
resolve: {
extensions: ['.js', '.tsx', '.ts', '.jsx']
},
stats: { modules: false }, /* This changes the run webpack output */
};
const clientConfig = merge(sharedConfig, {
entry: {
"main-client": [
"babel-polyfill",
"core-js",
"./ClientApp/boot-client.tsx"
]
},
output: {
path: path.join(__dirname,"/wwwroot/js"),
// Key for hot module replacement (below). Corresponds to the
// WebpackDevMiddlewareOptions.HotModuleReplacementEndpoint option directory
publicPath: "/wwwroot/"
},
devtool: "eval-source-map",
});
const serverBundleConfig = merge(sharedConfig, {
entry: {
"main-server": [
"babel-polyfill",
"core-js",
"./ClientApp/boot-server.tsx"
]
},
output: {
libraryTarget: "commonjs",
path: path.join(__dirname, "./Server")
},
target: "node",
devtool: "inline-source-map"
});
module.exports = (env) => {
return [clientConfig, serverBundleConfig];
};
|
import React from 'react';
import PropTypes from 'prop-types';
import { Tooltip, TooltipPosition } from '@patternfly/react-core';
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
import { useRouteDetail } from '../../hooks/useRouter';
import { ProductViewContext } from './productViewContext';
import { PageLayout, PageColumns, PageHeader, PageSection, PageToolbar } from '../pageLayout/pageLayout';
import { RHSM_API_PATH_ID_TYPES, RHSM_API_QUERY_TYPES } from '../../types/rhsmApiTypes';
import { apiQueries, storeHooks } from '../../redux';
import GraphCard from '../graphCard/graphCard.deprecated';
import { SelectPosition } from '../form/select';
import { ToolbarFieldUom } from '../toolbar/toolbarFieldUom';
import { ToolbarFieldGranularity } from '../toolbar/toolbarFieldGranularity';
import { ToolbarFieldRangedMonthly } from '../toolbar/toolbarFieldRangedMonthly';
import { Toolbar } from '../toolbar/toolbar';
import InventoryList from '../inventoryCard/inventoryList.deprecated';
import InventoryCardSubscriptions from '../inventoryCardSubscriptions/inventoryCardSubscriptions';
import InventoryTabs, { InventoryTab } from '../inventoryTabs/inventoryTabs';
import { translate } from '../i18n/i18n';
import { helpers } from '../../common';
/**
* An OpenShift Container Platform encompassing view.
*
* @param {object} props
* @param {Function} props.t
* @param {Function} props.useRouteDetail
* @returns {Node}
*/
const ProductViewOpenShiftContainer = ({ t, useRouteDetail: useAliasRouteDetail }) => {
const { productParameter: viewProductLabel, productConfig } = useAliasRouteDetail();
const uomValue = storeHooks.reactRedux.useSelector(
({ view }) => view.query?.[productConfig[0].viewId]?.[RHSM_API_QUERY_TYPES.UOM],
null
);
const renderProduct = (config, updatedUomValue) => {
const {
productContextFilterUom,
query = {},
graphTallyQuery = {},
inventoryHostsQuery = {},
inventorySubscriptionsQuery = {},
initialGuestsFilters = [],
initialInventoryFilters = [],
initialInventorySettings = {},
initialSubscriptionsInventoryFilters,
productId,
viewId
} = config;
if (!productId || !viewId) {
return null;
}
const { graphTallyQuery: initialGraphTallyQuery, inventoryHostsQuery: initialInventoryHostsQuery } =
apiQueries.parseRhsmQuery(query, { graphTallyQuery, inventoryHostsQuery, inventorySubscriptionsQuery });
let inventoryFilters = initialInventoryFilters;
let uomFilter;
if (productContextFilterUom) {
uomFilter = updatedUomValue || query[RHSM_API_QUERY_TYPES.UOM];
const filter = ({ id, isOptional }) => {
if (!isOptional) {
return true;
}
return new RegExp(uomFilter, 'i').test(id);
};
inventoryFilters = initialInventoryFilters.filter(filter);
}
const graphCardTitle = (
<React.Fragment>
{t('curiosity-graph.cardHeading', { context: productId })}
<Tooltip
content={<p>{t('curiosity-graph.cardHeadingDescription', { context: productId })}</p>}
position={TooltipPosition.top}
enableFlip={false}
distance={5}
entryDelay={100}
exitDelay={0}
>
<sup className="curiosity-icon__info">
<InfoCircleIcon />
</sup>
</Tooltip>
</React.Fragment>
);
return (
<ProductViewContext.Provider value={config} key={`product_${productId}_${uomFilter}`}>
<PageToolbar>
<Toolbar />
</PageToolbar>
<PageSection>
<GraphCard
key={`graph_${productId}`}
query={initialGraphTallyQuery}
productId={productId}
viewId={viewId}
cardTitle={graphCardTitle}
>
{productId === RHSM_API_PATH_ID_TYPES.OPENSHIFT && uomFilter && (
<ToolbarFieldUom position={SelectPosition.right} />
)}
{productId === RHSM_API_PATH_ID_TYPES.OPENSHIFT && (
<ToolbarFieldGranularity position={SelectPosition.right} />
)}
{productId === RHSM_API_PATH_ID_TYPES.OPENSHIFT_METRICS && (
<ToolbarFieldRangedMonthly position={SelectPosition.right} />
)}
</GraphCard>
</PageSection>
<PageSection>
<InventoryTabs key={`inventory_${productId}`} productId={productId}>
<InventoryTab
key={`inventory_hosts_${productId}`}
title={t('curiosity-inventory.tabHosts', { context: ['noInstances', productId] })}
>
<InventoryList
key={`inv_${productId}`}
filterGuestsData={initialGuestsFilters}
filterInventoryData={inventoryFilters}
productId={productId}
settings={initialInventorySettings}
query={initialInventoryHostsQuery}
viewId={viewId}
/>
</InventoryTab>
{!helpers.UI_DISABLED_TABLE_SUBSCRIPTIONS && initialSubscriptionsInventoryFilters && (
<InventoryTab
key={`inventory_subs_${productId}`}
title={t('curiosity-inventory.tabSubscriptions', { context: productId })}
>
<InventoryCardSubscriptions />
</InventoryTab>
)}
</InventoryTabs>
</PageSection>
</ProductViewContext.Provider>
);
};
return (
<PageLayout>
<PageHeader productLabel={viewProductLabel}>
{t(`curiosity-view.title`, { appName: helpers.UI_DISPLAY_NAME, context: viewProductLabel })}
</PageHeader>
<PageColumns>{productConfig.map(config => renderProduct(config, uomValue))}</PageColumns>
</PageLayout>
);
};
/**
* Prop types.
*
* @type {{t: Function, useRouteDetail: Function}}
*/
ProductViewOpenShiftContainer.propTypes = {
t: PropTypes.func,
useRouteDetail: PropTypes.func
};
/**
* Default props.
*
* @type {{t: Function, useRouteDetail: Function}}
*/
ProductViewOpenShiftContainer.defaultProps = {
t: translate,
useRouteDetail
};
export { ProductViewOpenShiftContainer as default, ProductViewOpenShiftContainer };
|
var express = require('express');
var router = express.Router();
var bodyParser = require('body-parser');
router.use(bodyParser.urlencoded({ extended: true }));
router.use(bodyParser.json());
var User = require('./User');
router.post('/', function (req, res) {
User.create({
userid : req.body.userid,
name : req.body.name,
password : req.body.password,
location : req.body.location,
dob : req.body.dob
},
function (err, user) {
if (err) return res.status(500).send("There was a problem adding the information to the database.");
res.status(200).send(user.userid);
});
});
router.post('/authenticate', function (req, res) {
User.authenticate(req.body.userid, req.body.password, function(err, result) {
if(err) {
console.err(err);
}
if(result) {
res.status(200).send(req.body.userid);
}
else {
res.status(404).send('User not authenticated!');
}
});
});
router.get('/', function (req, res) {
User.details({}).then(users => {
res.status(200).send(users);
})
.catch(err => {
res.status(500).send("There was a problem finding the users.");
});
});
module.exports = router;
|
var map = require('map-stream')
, zmq = require('zmq')
, client = zmq.socket('sub')
, port = GLOBAL.pjconfig.acceptor.port
, address = GLOBAL.pjconfig.acceptor.address
, service = GLOBAL.pjconfig.acceptor.subscribe;
/**
* dispatcher
* @returns {Stream}
*/
module.exports = function () {
var stream = map(function (data, fn) {
fn(null, data);
});
client.connect("tcp://" + address + ":" + port);
client.subscribe(service);
client.on('message', function (data) {
stream.write(data);
});
return stream;
};
|
Clazz.declarePackage("java.util.regex");
Clazz.declareInterface(java.util.regex,"MatchResult");
|
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1H([\'e\',\'B\',\'1Q/4/I\'],3(e,B,I){6 1V={12:\'\',Z:\'\',10:\'\',11:\'\',Y:\'\',1O:\'\',16:\'\',15:\'\',1j:\'\',1p:\'18\'};6 2={m:1,J:{},c:0,z:1,X:1U};2.1E=3(){$(\'.r-M\').M({1I:e.H(\'1c/M\'),C:u,1L:\'1A 1A-1G\',1R:e.H(\'1c/M/C\')});$(\'.d-1k\').n(3(){6 d=$(a);7(d.G(\'c\')){s}6 f=d.f();6 K=$(\'#1P\').V(\'1m:1f-1v\');6 F=$(\'#1M\').V(\'1m:1f-1v\');6 5={1N:$(\'#1K\').13(),18:$(\'#18\').13(),K:K.h>0?K.5(\'1l\'):\'\',F:F.h>0?F.5(\'1l\'):\'\'};d.G(\'c\',1).f(\'正在处理...\');e.N(\'y/17/1T\',{1S:5},3(w){7(w.1n==0){d.W(\'c\').f(f);S.R.q(w.b.1d);s}1e.1g=e.H(\'y\')},u,u)})};2.1W=3(){$(\'#14\').1D(3(){6 $a=$(a);7($a.v(\'p\')){$(\'#1r\').q()}t{$(\'#1r\').x()}});$(\'.k\').1C();$(\'.1F 1J\').n(3(){$(\'.k\').o(\'O\');6 9=$(a);9.2b().2h("1x");9.2g("1x");$(\'.4-j-l\').f(\'\');2.J={11:9.5(\'11\')||\'\',10:9.5(\'10\')||\'\',Z:9.5(\'Z\')||\'\',Y:9.5(\'Y\')||\'\',12:$(\'#12\').13(),16:9.5(\'16\')||\'\',15:9.5(\'15\')||\'\',2f:0,1j:"",1p:""};2.m=1,2.c=0;2.E()});$(\'.d-1k\').n(3(){6 d=$(a);7(d.G(\'c\')){s}6 f=d.f();6 A=[];$(".4-i").1s(3(){A.2d($(a).5(\'8\'))});7(A.h<=0&&$(\'#14\').v(\'p\')){S.R.q(\'请选择商品!\');s}6 5={2e:$(\'#14\').v(\'p\')?1:0,2i:$(\'#2j\').v(\'p\')?1:0,A:A};d.G(\'c\',1).f(\'正在处理...\');e.N(\'y/17/2o\',5,3(w){7(w.1n==0){d.W(\'c\').f(f);S.R.q(w.b.1d);s}1e.1g=e.H(\'y\')},u,u)});2.19();$(\'.k\').o({1i:3(){2.E()}});7(2.m==1){2.E()}};2.E=3(){7(2.c==0){2.J.m=2.m;e.N(\'4/2p\',2.J,3(Q){6 b=Q.b;7(b.U<=0){$(\'.4-j-l\').x();$(\'.1z\').q();$(\'.k\').o(\'c\')}t{$(\'.4-j-l\').q();$(\'.1z\').x();$(\'.k\').o(\'O\');7(b.j.h<=0||b.j.h<b.1o){$(\'.k\').o(\'c\');2.c=1}t{2.m++}}e.B(\'.4-j-l\',\'2m\',b,2.m>1);2.L()})}};2.L=3(){$(\'.k\').1C();$(".r-m").W(\'2n\');$(\'.4-j-l .4-9\').1s(3(){6 8=$(a).5(\'8\');7($(".4-i[5-8=\'"+8+"\']").h>0){$(a).V(\':2k\').v(\'p\',u)}});$(\'.4-j-l .r-1X\').n(3(){6 $a=$(a),p=$a.v(\'p\');6 8=$a.D(\'.4-9\').5(\'8\');7(p){7($(".4-i[5-8=\'"+8+"\']").h<=0){6 9=$(a).D(\'.4-9\');6 1y=B(\'2l\',{g:{2c:8,1h:9.5(\'1h\'),1u:9.5(\'1u\'),1t:9.5(\'1t\')}});$(".4-i-l").22(1y)}}t{7($(".4-i[5-8=\'"+8+"\']").h>0){$(".4-i[5-8=\'"+8+"\']").C()}}7($(".4-i").h>0){$(\'.4-i-l\').q();2.19()}t{$(\'.4-i-l\').x()}});$(\'.23\').21(\'n\').n(3(){6 8=$(a).D(\'.r-4-9\').5(\'8\');I.20({8:8,U:1})})};2.19=3(){$(\'.4-i-l .d-1Y\').n(3(){$(a).D(\'.4-i\').C()})};2.O=3(T){2.1B=T;7(1Z(1w.1b)!==\'24\'){I.25(1w.1b)}2.L();$(\'.r-P\').o({1i:3(){2.1a()}});$(\'.d-2a\').n(3(){$(\'#1q\').29(28).n(3(){$(\'#1q\').x()})});7(2.z==1){2.1a()}};2.1a=3(){7(2.X){s}e.N(\'y/17/26\',{m:2.z,T:2.1B},3(Q){6 b=Q.b;7(b.U<=0){$(\'#k\').x().$(\'.r-P\').o(\'c\')}t{$(\'#k\').q();$(\'.r-P\').o(\'O\');7(b.j.h<=0||b.j.h<b.1o){$(\'.r-P\').o(\'c\');2.X=u}t{2.z++}}e.B(\'#k\',\'27\',b,2.z>1);2.L()})};s 2});',62,150,'||modal|function|goods|data|var|if|goodsid|item|this|result|stop|btn|core|html||length|selected|list|container|group|page|click|infinite|checked|show|fui|return|else|true|prop|pjson|hide|commission|indexPage|goodsids|tpl|remove|closest|getList|img|attr|getUrl|picker|params|logo|bindEvents|uploader|json|init|content|ret|toast|FoxUI|mid|total|find|removeAttr|indexStop|isdiscount|isrecommand|ishot|isnew|keywords|val|openselect|cate|istime|myshop|desc|bindSelectedEvents|getIndexList|cartcount|util|message|location|first|href|title|onLoading|order|submit|filename|li|status|pagesize|by|cover|divselect|each|thumb|marketprice|child|window|on|itemHTML|empty|icon|indexMid|lazyload|change|initSet|menu|roundclose|define|uploadUrl|nav|shopname|removeIcon|imageImg|name|issendfree|imageLogo|biz|removeUrl|shopdata|set|false|defaults|initSelect|switch|delete|typeof|open|unbind|prepend|buy|undefined|changeCartcount|get_goods|tpl_commission_myshop_goods_list|200|fadeIn|favorite|siblings|id|push|selectgoods|nocommission|addClass|removeClass|selectcategory|opencategory|checkbox|tpl_commission_goods_item|tpl_commission_goods_select|style|select|query'.split('|'),0,{}))
|
function BrowserslistError (message) {
this.name = 'BrowserslistError'
this.message = message || ''
this.browserslist = true
if (Error.captureStackTrace) {
Error.captureStackTrace(this, BrowserslistError)
}
}
BrowserslistError.prototype = Error.prototype
module.exports = BrowserslistError
|
var data = require("../data.json");
var today = new Date().toLocaleDateString(undefined, {
day:'numeric',
month: 'numeric',
year: 'numeric'
})
exports.addLog = function(request, response) {
// Your code goes here
json = {'task': request.query.inputLog,'description': today};
console.log(json);
data.logList.push(json);
}
|
import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { CollectiveCategory } from '../constants/collectives';
const TranslatedTags = defineMessages({
[CollectiveCategory.ASSOCIATION]: {
id: 'Tags.ASSOCIATION',
defaultMessage: 'Association',
},
[CollectiveCategory.COLLECTIVE]: {
id: 'Tags.COLLECTIVE',
defaultMessage: 'Collective',
},
[CollectiveCategory.CONFERENCE]: {
id: 'Tags.CONFERENCE',
defaultMessage: 'Conference',
},
[CollectiveCategory.COOPERATIVE]: {
id: 'Tags.COOPERATIVE',
defaultMessage: 'Cooperative',
},
[CollectiveCategory.OPEN_SOURCE]: {
id: 'Tags.OPEN_SOURCE',
defaultMessage: 'Open source',
},
[CollectiveCategory.MEDIA]: {
id: 'Tags.MEDIA',
defaultMessage: 'Media',
},
[CollectiveCategory.MEETUP]: {
id: 'Tags.MEETUP',
defaultMessage: 'Meetup',
},
[CollectiveCategory.MOVEMENT]: {
id: 'Tags.MOVEMENT',
defaultMessage: 'Movement',
},
[CollectiveCategory.POLITICS]: {
id: 'Tags.POLITICS',
defaultMessage: 'Politics',
},
[CollectiveCategory.TECH_MEETUP]: {
id: 'Tags.TECH_MEETUP',
defaultMessage: 'Tech meetup',
},
[CollectiveCategory.US_NONPROFIT]: {
id: 'Tags.US_NONPROFIT',
defaultMessage: 'US nonprofit',
},
});
/** Translates a list of tags */
class I18nCollectiveTags extends React.Component {
static propTypes = {
/** A tag or a list of tags */
tags: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]).isRequired,
/** A function used to render the tag */
children: PropTypes.func.isRequired,
/** Ignore tags if translation is missing */
ignoreUntranslated: PropTypes.bool,
/** @ignore */
intl: PropTypes.object,
};
static defaultProps = {
ignoreUntranslated: false,
/** Default renderer, will render a string list */
children: tags => {
return tags.map((tag, index, translatedTags) => {
if (index === translatedTags.length - 1) {
return tag.value;
} else {
return `${tag.value}, `;
}
});
},
};
render() {
const { intl, children, tags, ignoreUntranslated } = this.props;
const tagsToTranslate = typeof tags === 'string' ? [tags] : tags;
const processedTags = tagsToTranslate.map(tag => {
if (TranslatedTags[tag]) {
return { value: intl.formatMessage(TranslatedTags[tag]), isTranslated: true };
} else {
return { value: tag, isTranslated: false };
}
});
return children(ignoreUntranslated ? processedTags.filter(t => t.isTranslated) : processedTags);
}
}
export default injectIntl(I18nCollectiveTags);
|
import metarule from '../metarule';
import Advice from '../../Advice';
// 2.3 Use Neo4j with an LDAP Auth Provider
// Description:
// Configuring Neo4j to use an LDAP Auth provider offloads management of
// federated users to the LDAP service. The LDAP service facilities are used
// for administration.
//
// Rationale:
// An LDAP auth provider provides stronger user management (disable users,
// password changes, password complexity, etc.) than available with Neo4j
// native users. It also streamlines the user management across a cluster, as
// Neo4j does not centralize management of native users.
//
// Remediation:
// The authentication mechanism should be implemented before anyone accesses
// the Neo4j Server.
export default (pkg) =>
metarule.forConfigOption(pkg, 'dbms.security.auth_provider', (addr, authProvider, node) => {
if (authProvider !== 'ldap') {
return Advice.info({
addr,
finding: 'You are not using an LDAP auth provider.',
advice: `Consider using an LDAP provider.
An LDAP auth provider provides stronger user management (disable users,
password changes, password complexity, etc.) than available with Neo4j
native users. It also streamlines the user management across a cluster, as
Neo4j does not centralize management of native users.
`,
});
}
return Advice.pass({
addr, finding: 'You are using the LDAP auth provider. Good!',
});
});
|
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'image', 'is', {
alt: 'Baklægur texti',
border: 'Rammi',
btnUpload: 'Hlaða upp',
button2Img: 'Do you want to transform the selected image button on a simple image?', // MISSING
hSpace: 'Vinstri bil',
img2Button: 'Do you want to transform the selected image on a image button?', // MISSING
infoTab: 'Almennt',
linkTab: 'Stikla',
lockRatio: 'Festa stærðarhlutfall',
menu: 'Eigindi myndar',
resetSize: 'Reikna stærð',
title: 'Eigindi myndar',
titleButton: 'Eigindi myndahnapps',
upload: 'Hlaða upp',
urlMissing: 'Image source URL is missing.', // MISSING
vSpace: 'Hægri bil',
validateBorder: 'Border must be a whole number.', // MISSING
validateHSpace: 'HSpace must be a whole number.', // MISSING
validateVSpace: 'VSpace must be a whole number.' // MISSING
} );
|
const require_import = require('../src/InfluxDBClient')
let client
beforeEach(() => {
client = new require_import.InfluxDBClient()
UrlFetchApp = jest.fn()
UrlFetchApp.fetch = jest.fn()
let httpResponse = jest.fn()
httpResponse.getContentText = jest.fn()
httpResponse.getResponseCode = jest.fn()
httpResponse.getResponseCode.mockReturnValue(200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
Utilities = jest.fn()
Utilities.parseCsv = jest.fn()
Logger = jest.fn()
Logger.log = jest.fn()
})
describe('get buckets', () => {
test('success', () => {
// noinspection JSConsecutiveCommasInArrayLiteral
const csv = [
[, 'result', 'table', '_value'],
[, '_result', 0, 'HEALTH'],
[, '_result', 0, '_monitoring'],
[, '_result', 0, '_tasks'],
[, '_result', 0, 'github'],
[, , ,],
]
Utilities.parseCsv.mockReturnValue(csv)
let configParams = {}
configParams.INFLUXDB_URL = 'http://localhost:8086'
configParams.INFLUXDB_TOKEN = 'my-token'
configParams.INFLUXDB_ORG = 'my-org'
let buckets = client.getBuckets(configParams)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/vnd.flux',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `buckets() |> rename(columns: {"name": "_value"}) |> keep(columns: ["_value"]) |> sort(columns: ["_value"], desc: false)`,
})
expect(buckets).toHaveLength(4)
expect(buckets).toEqual(['HEALTH', '_monitoring', '_tasks', 'github'])
})
})
describe('get measurements', () => {
test('success', () => {
// noinspection JSConsecutiveCommasInArrayLiteral
const csv = [
[, 'result', 'table', '_value'],
[, '_result', 0, 'circleci'],
[, '_result', 0, 'github_repository'],
[, , ,],
]
Utilities.parseCsv.mockReturnValue(csv)
let configParams = {}
configParams.INFLUXDB_URL = 'http://localhost:8086'
configParams.INFLUXDB_TOKEN = 'my-token'
configParams.INFLUXDB_ORG = 'my-org'
configParams.INFLUXDB_BUCKET = 'my-bucket'
let buckets = client.getMeasurements(configParams)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/vnd.flux',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `import "influxdata/influxdb/v1"
v1.tagValues(
bucket: "my-bucket",
tag: "_measurement",
predicate: (r) => true,
start: duration(v: uint(v: 1970-01-01) - uint(v: now()))
)`,
})
expect(buckets).toHaveLength(2)
expect(buckets).toEqual(['circleci', 'github_repository'])
})
})
describe('get fields', () => {
let configParams = {}
configParams.INFLUXDB_URL = 'http://localhost:8086'
configParams.INFLUXDB_TOKEN = 'my-token'
configParams.INFLUXDB_ORG = 'my-org'
configParams.INFLUXDB_BUCKET = 'my-bucket'
configParams.INFLUXDB_MEASUREMENT = 'circleci'
beforeEach(() => {
Utilities.parseCsv.mockImplementation(rows => {
return rows.split('\n').map(row => row.trim().split(','))
})
})
test('success', () => {
const fs = require('fs')
const csv = fs.readFileSync(__dirname + '/schema1.csv', 'utf8')
let httpResponse = prepareResponse(csv, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
let fields = client.getFields(configParams)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":\"import \\"influxdata/influxdb/v1\\" bucket = \\"my-bucket\\" measurement = \\"circleci\\" start_range = duration(v: uint(v: 1970-01-01) - uint(v: now())) v1.tagKeys( bucket: bucket, predicate: (r) => r._measurement == measurement, start: start_range ) |> filter(fn: (r) => r._value != \\"_start\\" and r._value != \\"_stop\\" and r._value != \\"_measurement\\" and r._value != \\"_field\\") |> yield(name: \\"tags\\") from(bucket: bucket) |> range(start: start_range) |> filter(fn: (r) => r[\\"_measurement\\"] == measurement) |> keep(fn: (column) => column == \\"_field\\" or column == \\"_value\\") |> unique(column: \\"_field\\") |> yield(name: \\"fields\\")", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
expect(fields).toHaveLength(11)
expect(fields[0]).toEqual({
dataType: 'STRING',
label: 'measurement',
name: '_measurement',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[1]).toEqual({
dataType: 'STRING',
label: 'host',
name: 'host',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[2]).toEqual({
dataType: 'STRING',
label: 'reponame',
name: 'reponame',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[3]).toEqual({
dataType: 'STRING',
label: 'vcs_url',
name: 'vcs_url',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[4]).toEqual({
dataType: 'BOOLEAN',
label: 'fieldBool',
name: 'fieldBool',
semantics: {
conceptType: 'METRIC',
isReaggregatable: false,
},
})
expect(fields[5]).toEqual({
dataType: 'NUMBER',
label: 'fieldFloat',
name: 'fieldFloat',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[6]).toEqual({
dataType: 'NUMBER',
label: 'fieldInteger',
name: 'fieldInteger',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[7]).toEqual({
dataType: 'STRING',
label: 'fieldString',
name: 'fieldString',
semantics: {
conceptType: 'METRIC',
isReaggregatable: false,
},
})
expect(fields[8]).toEqual({
dataType: 'NUMBER',
label: 'fieldUInteger',
name: 'fieldUInteger',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[9]).toEqual({
dataType: 'STRING',
label: 'fieldDate',
name: 'fieldDate',
semantics: {
conceptType: 'METRIC',
isReaggregatable: false,
semanticGroup: 'DATETIME',
semanticType: 'YEAR_MONTH_DAY_SECOND',
},
})
expect(fields[10]).toEqual({
dataType: 'STRING',
defaultAggregationType: 'NONE',
label: 'time',
name: '_time',
semantics: {
conceptType: 'DIMENSION',
isReaggregatable: false,
semanticGroup: 'DATETIME',
semanticType: 'YEAR_MONTH_DAY_SECOND',
},
})
})
test('replace spaces in name', () => {
const fs = require('fs')
const csv = fs.readFileSync(__dirname + '/schema2.csv', 'utf8')
let httpResponse = prepareResponse(csv, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
let names = client.getFields(configParams).map(function (field) {
return field.name
})
expect(names).toHaveLength(13)
expect(names).toEqual([
'_measurement',
'Entity',
'ISO__space__code',
'7__minus__day__space__smoothed__space__daily__space__change',
'7__minus__day__space__smoothed__space__daily__space__change__space__per__space__thousand',
'Cumulative__space__total',
'Cumulative__space__total__space__per__space__thousand',
'Daily__space__change__space__in__space__cumulative__space__total',
'Daily__space__change__space__in__space__cumulative__space__total__space__per__space__thousand',
'Notes',
'Source__space__URL',
'Source__space__label',
'_time',
])
})
test('COVID-19 template', () => {
const fs = require('fs')
const csv = fs.readFileSync(__dirname + '/schema3.csv', 'utf8')
let httpResponse = prepareResponse(csv, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
let fields = client.getFields(configParams)
expect(fields).toHaveLength(7)
expect(fields[0]).toEqual({
dataType: 'STRING',
label: 'measurement',
name: '_measurement',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[1]).toEqual({
dataType: 'STRING',
label: 'location',
name: 'location',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[2]).toEqual({
dataType: 'NUMBER',
label: 'RecoveredChange',
name: 'RecoveredChange',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[3]).toEqual({
dataType: 'NUMBER',
label: 'new_cases',
name: 'new_cases',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[4]).toEqual({
dataType: 'NUMBER',
label: 'new_deaths',
name: 'new_deaths',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[5]).toEqual({
dataType: 'NUMBER',
label: 'population',
name: 'population',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[6]).toEqual({
dataType: 'STRING',
defaultAggregationType: 'NONE',
label: 'time',
name: '_time',
semantics: {
conceptType: 'DIMENSION',
isReaggregatable: false,
semanticGroup: 'DATETIME',
semanticType: 'YEAR_MONTH_DAY_SECOND',
},
})
})
test('Large Schema', () => {
const fs = require('fs')
const csv = fs.readFileSync(__dirname + '/schema4.csv', 'utf8')
let httpResponse = prepareResponse(csv, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
let fields = client.getFields(configParams)
// cat schema4.csv | grep -v "^#" | grep -v "^[[:space:]]*$" | grep -v "^,result" | wc -l
expect(fields).toHaveLength(1087 + 2)
expect(fields[0]).toEqual({
dataType: 'STRING',
label: 'measurement',
name: '_measurement',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[1]).toEqual({
dataType: 'STRING',
label: 'Cycle_Number',
name: 'Cycle_Number',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[2]).toEqual({
dataType: 'STRING',
label: 'Device',
name: 'Device',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[3]).toEqual({
dataType: 'STRING',
label: 'EWONTime',
name: 'EWONTime',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[4]).toEqual({
dataType: 'STRING',
label: 'Location',
name: 'Location',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[5]).toEqual({
dataType: 'STRING',
label: 'TimeStamp',
name: 'TimeStamp',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[6]).toEqual({
dataType: 'STRING',
label: 'host',
name: 'host',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[7]).toEqual({
dataType: 'STRING',
label: 'method',
name: 'method',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[8]).toEqual({
dataType: 'STRING',
label: 'upload',
name: 'upload',
semantics: {
conceptType: 'DIMENSION',
},
})
expect(fields[108]).toEqual({
dataType: 'NUMBER',
label: '1.Application.Global_Variables.Tag98',
name: '1.Application.Global_Variables.Tag98',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[208]).toEqual({
dataType: 'NUMBER',
label: 'LC600.MainProgram.VslPressBar',
name: 'LC600.MainProgram.VslPressBar',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[308]).toEqual({
dataType: 'BOOLEAN',
label: 'MainProgram.ipflagDoorOpenFull',
name: 'MainProgram.ipflagDoorOpenFull',
semantics: {
conceptType: 'METRIC',
isReaggregatable: false,
},
})
expect(fields[408]).toEqual({
dataType: 'BOOLEAN',
label: 'PLC.DB41.pbSampleAck',
name: 'PLC.DB41.pbSampleAck',
semantics: {
conceptType: 'METRIC',
isReaggregatable: false,
},
})
expect(fields[508]).toEqual({
dataType: 'NUMBER',
label: 'PLC.DB43.ChemChemAdditionSecs',
name: 'PLC.DB43.ChemChemAdditionSecs',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[608]).toEqual({
dataType: 'NUMBER',
label: 'PLC.DB43.spTimeTo250',
name: 'PLC.DB43.spTimeTo250',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[708]).toEqual({
dataType: 'NUMBER',
label: 'PLC.DB55.stDrainTemp_C',
name: 'PLC.DB55.stDrainTemp_C',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[808]).toEqual({
dataType: 'BOOLEAN',
label: 'PLC.audAlarm',
name: 'PLC.audAlarm',
semantics: {
conceptType: 'METRIC',
isReaggregatable: false,
},
})
expect(fields[908]).toEqual({
dataType: 'NUMBER',
label: 'PLC.ptxRecircDisch',
name: 'PLC.ptxRecircDisch',
semantics: {
conceptType: 'METRIC',
isReaggregatable: true,
semanticGroup: 'NUMBER',
},
})
expect(fields[1008]).toEqual({
dataType: 'BOOLEAN',
label: 'S7-1200.crNotOverPressure',
name: 'S7__minus__1200.crNotOverPressure',
semantics: {
conceptType: 'METRIC',
isReaggregatable: false,
},
})
expect(fields[1088]).toEqual({
dataType: 'STRING',
defaultAggregationType: 'NONE',
label: 'time',
name: '_time',
semantics: {
conceptType: 'DIMENSION',
isReaggregatable: false,
semanticGroup: 'DATETIME',
semanticType: 'YEAR_MONTH_DAY_SECOND',
},
})
})
test('Response with Error', () => {
const fs = require('fs')
const csv = fs.readFileSync(__dirname + '/schemaError.csv', 'utf8')
let httpResponse = prepareResponse(csv, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
expect(() => client.getFields(configParams)).toThrow(
'panic: unreachable cursor type: <nil>'
)
})
})
describe('get data', () => {
let configParams
let fields = [
{name: 'host', dataType: 'STRING'},
{name: 'reponame', dataType: 'STRING'},
{name: 'vcs_url', dataType: 'STRING'},
{name: 'author_email', dataType: 'STRING'},
{name: 'author_name', dataType: 'STRING'},
{name: 'build_num', dataType: 'NUMBER'},
{name: 'build_time_millis', dataType: 'NUMBER'},
{name: 'failed', dataType: 'BOOLEAN'},
{name: 'lifecycle', dataType: 'STRING'},
{name: 'parallel', dataType: 'NUMBER'},
{name: 'previous_build_num', dataType: 'NUMBER'},
{name: 'previous_build_time_millis', dataType: 'NUMBER'},
{name: 'status', dataType: 'STRING'},
{name: 'user_id', dataType: 'NUMBER'},
]
beforeEach(() => {
const fs = require('fs')
const csv = fs.readFileSync(__dirname + '/data.csv', 'utf8')
let httpResponse = prepareResponse(csv, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
configParams = {}
configParams.INFLUXDB_URL = 'http://localhost:8086'
configParams.INFLUXDB_TOKEN = 'my-token'
configParams.INFLUXDB_ORG = 'my-org'
configParams.INFLUXDB_BUCKET = 'my-bucket'
configParams.INFLUXDB_MEASUREMENT = 'circleci'
Utilities.parseCsv.mockImplementation(rows => {
return rows.split('\n').map(row => row.trim().split(','))
})
})
test('success', () => {
let rows = client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
fields
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
expect(rows).toHaveLength(19)
rows.forEach(row => expect(row.values).toHaveLength(14))
expect(rows[0].values).toEqual([
undefined,
'influxdb-client-csharp',
'https://github.com/influxdata/influxdb-client-csharp',
undefined,
undefined,
789,
179493,
false,
'finished',
1,
788,
185724,
'success',
undefined,
])
expect(rows[3].values).toEqual([
undefined,
'influxdb-client-java',
'https://github.com/influxdata/influxdb-client-java',
undefined,
undefined,
1344,
479751,
false,
'finished',
1,
1343,
512297,
'success',
undefined,
])
expect(rows[9].values).toEqual([
undefined,
'influxdb-client-js',
'https://github.com/influxdata/influxdb-client-js',
'tom.hol@example.com',
'Tom Hol',
278,
39448,
false,
'finished',
1,
277,
45805,
'success',
16321466,
])
expect(rows[13].values).toEqual([
undefined,
'influxdb-client-php',
'https://github.com/influxdata/influxdb-client-php',
undefined,
undefined,
547,
105698,
false,
'finished',
1,
546,
115977,
'success',
undefined,
])
expect(rows[16].values).toEqual([
undefined,
'influxdb-client-python',
'https://github.com/influxdata/influxdb-client-python',
undefined,
undefined,
750,
165210,
false,
'finished',
1,
749,
136741,
'success',
undefined,
])
})
test('specified fields', () => {
let rows = client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
[
{name: 'reponame', dataType: 'STRING'},
{name: 'build_num', dataType: 'NUMBER'},
{name: 'user_id', dataType: 'NUMBER'},
{name: 'failed', dataType: 'BOOLEAN'},
{name: 'build_time_millis', dataType: 'NUMBER'},
]
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
expect(rows).toHaveLength(19)
rows.forEach(row => expect(row.values).toHaveLength(5))
expect(rows[0].values).toEqual([
'influxdb-client-csharp',
789,
undefined,
false,
179493,
])
expect(rows[1].values).toEqual([
'influxdb-client-csharp',
790,
undefined,
false,
192074,
])
expect(rows[2].values).toEqual([
'influxdb-client-csharp',
791,
undefined,
false,
190784,
])
expect(rows[3].values).toEqual([
'influxdb-client-java',
1344,
undefined,
false,
479751,
])
expect(rows[4].values).toEqual([
'influxdb-client-java',
1343,
undefined,
false,
512297,
])
expect(rows[5].values).toEqual([
'influxdb-client-java',
1345,
undefined,
false,
461743,
])
expect(rows[6].values).toEqual([
'influxdb-client-java',
1346,
undefined,
false,
483059,
])
expect(rows[7].values).toEqual([
'influxdb-client-java',
1348,
undefined,
false,
607334,
])
expect(rows[8].values).toEqual([
'influxdb-client-java',
1347,
undefined,
false,
674736,
])
expect(rows[9].values).toEqual([
'influxdb-client-js',
278,
16321466,
false,
39448,
])
expect(rows[10].values).toEqual([
'influxdb-client-js',
277,
16321466,
true,
45805,
])
expect(rows[11].values).toEqual([
'influxdb-client-js',
280,
16321466,
false,
56233,
])
expect(rows[12].values).toEqual([
'influxdb-client-js',
279,
16321466,
false,
68051,
])
expect(rows[13].values).toEqual([
'influxdb-client-php',
547,
undefined,
false,
105698,
])
expect(rows[14].values).toEqual([
'influxdb-client-php',
548,
undefined,
false,
178583,
])
expect(rows[15].values).toEqual([
'influxdb-client-php',
549,
undefined,
false,
66060,
])
expect(rows[16].values).toEqual([
'influxdb-client-python',
750,
undefined,
false,
165210,
])
expect(rows[17].values).toEqual([
'influxdb-client-python',
751,
undefined,
false,
123904,
])
expect(rows[18].values).toEqual([
'influxdb-client-python',
752,
undefined,
false,
126864,
])
})
test('not exists in table columns', () => {
let rows = client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
[
{name: 'reponame', dataType: 'STRING'},
{name: 'build_num', dataType: 'NUMBER'},
{name: 'user_id', dataType: 'NUMBER'},
{name: 'failed', dataType: 'BOOLEAN'},
{name: 'build_time_millis', dataType: 'NUMBER'},
{name: 'not_exists_name', dataType: 'NUMBER'},
]
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
expect(rows).toHaveLength(19)
rows.forEach(row => expect(row.values).toHaveLength(6))
expect(rows[0].values).toEqual([
'influxdb-client-csharp',
789,
undefined,
false,
179493,
undefined,
])
})
test('parse_timestamp', () => {
let rows = client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
[
{
name: '_time',
dataType: 'STRING',
semantics: {
semanticGroup: require_import.TIMESTAMP_SEMANTICS_GROUP,
},
},
{
name: '_start',
dataType: 'STRING',
semantics: {
semanticGroup: require_import.TIMESTAMP_SEMANTICS_GROUP,
},
},
{
name: '_stop',
dataType: 'STRING',
semantics: {
semanticGroup: require_import.TIMESTAMP_SEMANTICS_GROUP,
},
},
]
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
expect(rows).toHaveLength(19)
rows.forEach(row => expect(row.values).toHaveLength(3))
expect(rows[0].values).toEqual([
'20200530000505',
'20200529082924',
'20200605082924',
])
})
test('sampleExtraction', () => {
client.getData(
configParams,
{sampleExtraction: true},
{startDate: '2020-04-20', endDate: '2020-05-20'},
fields
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") |> limit(n:10) ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
})
test('without data range', () => {
client.getData(configParams, {sampleExtraction: false}, {}, fields)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: time(v: 1), stop: now()) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
})
test('empty result', () => {
let httpResponse = prepareResponse('', 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
let rows = client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
fields
)
expect(rows).toHaveLength(0)
})
test('Aggregation - NONE', () => {
configParams.INFLUXDB_AGGREGATION = 'NONE'
client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
fields
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
})
test('Aggregation - LAST', () => {
configParams.INFLUXDB_AGGREGATION = 'LAST'
client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
fields
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") |> sort(columns: [\\"_time\\"], desc: true) |> limit(n:1) ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
})
test('Aggregation - LAST with sampleExtraction', () => {
configParams.INFLUXDB_AGGREGATION = 'LAST'
client.getData(
configParams,
{sampleExtraction: true},
{startDate: '2020-04-20', endDate: '2020-05-20'},
fields
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") |> limit(n:10) ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
})
test('spaces in fields names', () => {
const response = `#group,false,false,false,false,false,false,false,false,false,false,false
#datatype,string,long,long,double,long,double,long,double,string,string,string
#default,_result,,,,,,,,,,
,result,table,7-day smoothed daily change,7-day smoothed daily change per thousand,Cumulative total,Cumulative total per thousand,Daily change in cumulative total,Daily change in cumulative total per thousand,Notes,Source URL,Source label
,,0,52349,0.158,14022,1.156,9314,0.064,"Turkish Minister for Health said 7286 tests were conducted on 25th March, so we can subtract that from 26th March figure. This is consistent with Wikipedia",https://covid-19-schweiz.bagapps.ch/de-3.html,COVID Tracking Project
`
let httpResponse = prepareResponse(response, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
let rows = client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
[
{
name: '7__minus__day__space__smoothed__space__daily__space__change',
dataType: 'NUMBER',
},
{
name: 'Cumulative__space__total__space__per__space__thousand',
dataType: 'NUMBER',
},
]
)
expect(UrlFetchApp.fetch.mock.calls.length).toBe(1)
expect(UrlFetchApp.fetch.mock.calls[0][0]).toBe(
'http://localhost:8086/api/v2/query?org=my-org'
)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":"from(bucket: \\"my-bucket\\") |> range(start: 2020-04-20T00:00:00Z, stop: 2020-05-20T23:59:59Z) |> filter(fn: (r) => r[\\"_measurement\\"] == \\"circleci\\") |> pivot(rowKey:[\\"_time\\"], columnKey: [\\"_field\\"], valueColumn: \\"_value\\") ", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
expect(rows).toHaveLength(1)
rows.forEach(row => expect(row.values).toHaveLength(2))
expect(rows[0].values).toEqual([52349, 1.156])
})
test('error in response', () => {
const fs = require('fs')
const csv = fs.readFileSync(__dirname + '/dataError.csv', 'utf8')
let httpResponse = prepareResponse(csv, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
expect(() =>
client.getData(
configParams,
{sampleExtraction: false},
{startDate: '2020-04-20', endDate: '2020-05-20'},
fields
)
).toThrow('panic: unreachable cursor type: <nil>')
})
})
describe('build URL', () => {
test('value', () => {
let configParams = {}
configParams.INFLUXDB_URL = 'http://localhost:8086'
configParams.INFLUXDB_ORG = 'my-org'
let url = client._buildURL(configParams)
expect(url).toEqual('http://localhost:8086/api/v2/query?org=my-org')
})
test('slash at the end', () => {
let configParams = {}
configParams.INFLUXDB_URL = 'http://localhost:8086/'
configParams.INFLUXDB_ORG = 'my-org'
let url = client._buildURL(configParams)
expect(url).toEqual('http://localhost:8086/api/v2/query?org=my-org')
})
test('escaped org', () => {
let configParams = {}
configParams.INFLUXDB_URL = 'http://localhost:8086'
configParams.INFLUXDB_ORG = 'my org'
let url = client._buildURL(configParams)
expect(url).toEqual('http://localhost:8086/api/v2/query?org=my%20org')
})
})
describe('extractSchema', () => {
beforeEach(() => {
Utilities.parseCsv.mockImplementation(rows => {
return rows.split('\n').map(row => row.trim().split(','))
})
})
test('without comment', () => {
let textContent = `,result,table,_value
,,0,_internal/monitor
,,0,telegraf/autogen
`
let values = client._extractSchema(textContent)
expect(values).toHaveLength(2)
expect(values).toEqual(['_internal/monitor', 'telegraf/autogen'])
})
test('with comment', () => {
let textContent = `#group,false,false,false
#default,_result,,
,result,table,_value
,,0,_internal/monitor
,,0,telegraf/autogen`
let values = client._extractSchema(textContent)
expect(values).toHaveLength(2)
expect(values).toEqual(['_internal/monitor', 'telegraf/autogen'])
})
})
describe('schema query', () => {
let configParams = {}
configParams.INFLUXDB_URL = 'http://localhost:8086'
configParams.INFLUXDB_TOKEN = 'my-token'
configParams.INFLUXDB_ORG = 'my-org'
configParams.INFLUXDB_BUCKET = 'my-bucket'
configParams.INFLUXDB_MEASUREMENT = 'circleci'
beforeEach(() => {
Utilities.parseCsv.mockImplementation(rows => {
return rows.split('\n').map(row => row.trim().split(','))
})
const fs = require('fs')
const csv = fs.readFileSync(__dirname + '/schema1.csv', 'utf8')
let httpResponse = prepareResponse(csv, 200)
UrlFetchApp.fetch.mockReturnValue(httpResponse)
})
test('default', () => {
validatePayload('duration(v: uint(v: 1970-01-01) - uint(v: now()))')
})
test('defined_start_range', () => {
configParams.INFLUXDB_SCHEMA_RANGE = '-6h'
validatePayload('-6h')
})
test('empty_string', () => {
configParams.INFLUXDB_SCHEMA_RANGE = ''
validatePayload('duration(v: uint(v: 1970-01-01) - uint(v: now()))')
})
function validatePayload(expectedRange) {
client.getFields(configParams)
expect(UrlFetchApp.fetch.mock.calls[0][1]).toStrictEqual({
contentType: 'application/json',
headers: {
Accept: 'application/csv',
Authorization: 'Token my-token',
'User-Agent': 'influxdb-gds-connector',
},
method: 'post',
muteHttpExceptions: true,
payload: `{"query":\"import \\"influxdata/influxdb/v1\\" bucket = \\"my-bucket\\" measurement = \\"circleci\\" start_range = ${expectedRange} v1.tagKeys( bucket: bucket, predicate: (r) => r._measurement == measurement, start: start_range ) |> filter(fn: (r) => r._value != \\"_start\\" and r._value != \\"_stop\\" and r._value != \\"_measurement\\" and r._value != \\"_field\\") |> yield(name: \\"tags\\") from(bucket: bucket) |> range(start: start_range) |> filter(fn: (r) => r[\\"_measurement\\"] == measurement) |> keep(fn: (column) => column == \\"_field\\" or column == \\"_value\\") |> unique(column: \\"_field\\") |> yield(name: \\"fields\\")", "type":"flux", "dialect":{"header":true,"delimiter":",","annotations":["datatype","group","default"],"commentPrefix":"#","dateTimeFormat":"RFC3339"}}`,
})
}
})
describe('contentTextOrThrowUserError', () => {
test('success', () => {
let response = client._contentTextOrThrowUserError(
prepareResponse('OK', 200)
)
expect(response).toEqual('OK')
})
test('error body', () => {
let response = prepareResponse('error body', 500)
expect(() => client._contentTextOrThrowUserError(response)).toThrow(
'error body'
)
})
test('from header', () => {
let response = prepareResponse('error body', 500, {
'x-InfluxDB-error': 'header error',
})
expect(() => client._contentTextOrThrowUserError(response)).toThrow(
'header error'
)
})
test('debug text', () => {
let response = prepareResponse('error body', 500, {
'x-InfluxDB-error': 'header error',
})
try {
client._contentTextOrThrowUserError(response, 'from() |> ')
fail()
} catch (e) {
expect(e.debugText).toEqual(
JSON.stringify(
{
responseCode: 500,
headers: {'x-InfluxDB-error': 'header error'},
contentText: 'error body',
payload: 'from() |> ',
},
null,
4
)
)
expect(e.fluxQuery).toEqual('from() |> ')
}
})
test('contentMessage', () => {
let response = prepareResponse(
'{"code":"not found","message":"organization name \\"my-org\\" not found"}',
500,
{
'x-InfluxDB-error': 'header error',
'Content-Type': 'application/json; charset=utf-8',
}
)
try {
client._contentTextOrThrowUserError(response, 'from() |> ')
fail()
} catch (e) {
expect(e.contentMessage).toEqual('organization name "my-org" not found')
}
})
test('flux query json', () => {
let response = prepareResponse('error body', 500, {
'x-InfluxDB-error': 'header error',
})
try {
client._contentTextOrThrowUserError(
response,
`{"query":"from(bucket: \\"my-bucket\\")"}`,
'application/json'
)
fail()
} catch (e) {
expect(e.fluxQuery).toEqual('from(bucket: "my-bucket")')
}
})
})
function prepareResponse(contentText, responseCode, headers) {
let httpResponse = jest.fn()
httpResponse.getContentText = jest.fn()
httpResponse.getContentText.mockReturnValue(contentText)
httpResponse.getResponseCode = jest.fn()
httpResponse.getResponseCode.mockReturnValue(responseCode)
httpResponse.getHeaders = jest.fn()
httpResponse.getHeaders.mockReturnValue(headers)
return httpResponse
}
|
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ({
/***/ "./node_modules/axios/index.js":
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__("./node_modules/axios/lib/axios.js");
/***/ }),
/***/ "./node_modules/axios/lib/adapters/xhr.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
var settle = __webpack_require__("./node_modules/axios/lib/core/settle.js");
var buildURL = __webpack_require__("./node_modules/axios/lib/helpers/buildURL.js");
var parseHeaders = __webpack_require__("./node_modules/axios/lib/helpers/parseHeaders.js");
var isURLSameOrigin = __webpack_require__("./node_modules/axios/lib/helpers/isURLSameOrigin.js");
var createError = __webpack_require__("./node_modules/axios/lib/core/createError.js");
var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__("./node_modules/axios/lib/helpers/btoa.js");
module.exports = function xhrAdapter(config) {
return new Promise(function dispatchXhrRequest(resolve, reject) {
var requestData = config.data;
var requestHeaders = config.headers;
if (utils.isFormData(requestData)) {
delete requestHeaders['Content-Type']; // Let the browser set it
}
var request = new XMLHttpRequest();
var loadEvent = 'onreadystatechange';
var xDomain = false;
// For IE 8/9 CORS support
// Only supports POST and GET calls and doesn't returns the response headers.
// DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
if ("development" !== 'test' &&
typeof window !== 'undefined' &&
window.XDomainRequest && !('withCredentials' in request) &&
!isURLSameOrigin(config.url)) {
request = new window.XDomainRequest();
loadEvent = 'onload';
xDomain = true;
request.onprogress = function handleProgress() {};
request.ontimeout = function handleTimeout() {};
}
// HTTP basic authentication
if (config.auth) {
var username = config.auth.username || '';
var password = config.auth.password || '';
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
}
request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);
// Set the request timeout in MS
request.timeout = config.timeout;
// Listen for ready state
request[loadEvent] = function handleLoad() {
if (!request || (request.readyState !== 4 && !xDomain)) {
return;
}
// The request errored out and we didn't get a response, this will be
// handled by onerror instead
// With one exception: request that using file: protocol, most browsers
// will return status as 0 even though it's a successful request
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
return;
}
// Prepare the response
var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
var response = {
data: responseData,
// IE sends 1223 instead of 204 (https://github.com/mzabriskie/axios/issues/201)
status: request.status === 1223 ? 204 : request.status,
statusText: request.status === 1223 ? 'No Content' : request.statusText,
headers: responseHeaders,
config: config,
request: request
};
settle(resolve, reject, response);
// Clean up request
request = null;
};
// Handle low level network errors
request.onerror = function handleError() {
// Real errors are hidden from us by the browser
// onerror should only fire if it's a network error
reject(createError('Network Error', config, null, request));
// Clean up request
request = null;
};
// Handle timeout
request.ontimeout = function handleTimeout() {
reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',
request));
// Clean up request
request = null;
};
// Add xsrf header
// This is only done if running in a standard browser environment.
// Specifically not if we're in a web worker, or react-native.
if (utils.isStandardBrowserEnv()) {
var cookies = __webpack_require__("./node_modules/axios/lib/helpers/cookies.js");
// Add xsrf header
var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
cookies.read(config.xsrfCookieName) :
undefined;
if (xsrfValue) {
requestHeaders[config.xsrfHeaderName] = xsrfValue;
}
}
// Add headers to the request
if ('setRequestHeader' in request) {
utils.forEach(requestHeaders, function setRequestHeader(val, key) {
if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
// Remove Content-Type if data is undefined
delete requestHeaders[key];
} else {
// Otherwise add header to the request
request.setRequestHeader(key, val);
}
});
}
// Add withCredentials to request if needed
if (config.withCredentials) {
request.withCredentials = true;
}
// Add responseType to request if needed
if (config.responseType) {
try {
request.responseType = config.responseType;
} catch (e) {
// Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
// But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
if (config.responseType !== 'json') {
throw e;
}
}
}
// Handle progress if needed
if (typeof config.onDownloadProgress === 'function') {
request.addEventListener('progress', config.onDownloadProgress);
}
// Not all browsers support upload events
if (typeof config.onUploadProgress === 'function' && request.upload) {
request.upload.addEventListener('progress', config.onUploadProgress);
}
if (config.cancelToken) {
// Handle cancellation
config.cancelToken.promise.then(function onCanceled(cancel) {
if (!request) {
return;
}
request.abort();
reject(cancel);
// Clean up request
request = null;
});
}
if (requestData === undefined) {
requestData = null;
}
// Send the request
request.send(requestData);
});
};
/***/ }),
/***/ "./node_modules/axios/lib/axios.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
var bind = __webpack_require__("./node_modules/axios/lib/helpers/bind.js");
var Axios = __webpack_require__("./node_modules/axios/lib/core/Axios.js");
var defaults = __webpack_require__("./node_modules/axios/lib/defaults.js");
/**
* Create an instance of Axios
*
* @param {Object} defaultConfig The default config for the instance
* @return {Axios} A new instance of Axios
*/
function createInstance(defaultConfig) {
var context = new Axios(defaultConfig);
var instance = bind(Axios.prototype.request, context);
// Copy axios.prototype to instance
utils.extend(instance, Axios.prototype, context);
// Copy context to instance
utils.extend(instance, context);
return instance;
}
// Create the default instance to be exported
var axios = createInstance(defaults);
// Expose Axios class to allow class inheritance
axios.Axios = Axios;
// Factory for creating new instances
axios.create = function create(instanceConfig) {
return createInstance(utils.merge(defaults, instanceConfig));
};
// Expose Cancel & CancelToken
axios.Cancel = __webpack_require__("./node_modules/axios/lib/cancel/Cancel.js");
axios.CancelToken = __webpack_require__("./node_modules/axios/lib/cancel/CancelToken.js");
axios.isCancel = __webpack_require__("./node_modules/axios/lib/cancel/isCancel.js");
// Expose all/spread
axios.all = function all(promises) {
return Promise.all(promises);
};
axios.spread = __webpack_require__("./node_modules/axios/lib/helpers/spread.js");
module.exports = axios;
// Allow use of default import syntax in TypeScript
module.exports.default = axios;
/***/ }),
/***/ "./node_modules/axios/lib/cancel/Cancel.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* A `Cancel` is an object that is thrown when an operation is canceled.
*
* @class
* @param {string=} message The message.
*/
function Cancel(message) {
this.message = message;
}
Cancel.prototype.toString = function toString() {
return 'Cancel' + (this.message ? ': ' + this.message : '');
};
Cancel.prototype.__CANCEL__ = true;
module.exports = Cancel;
/***/ }),
/***/ "./node_modules/axios/lib/cancel/CancelToken.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var Cancel = __webpack_require__("./node_modules/axios/lib/cancel/Cancel.js");
/**
* A `CancelToken` is an object that can be used to request cancellation of an operation.
*
* @class
* @param {Function} executor The executor function.
*/
function CancelToken(executor) {
if (typeof executor !== 'function') {
throw new TypeError('executor must be a function.');
}
var resolvePromise;
this.promise = new Promise(function promiseExecutor(resolve) {
resolvePromise = resolve;
});
var token = this;
executor(function cancel(message) {
if (token.reason) {
// Cancellation has already been requested
return;
}
token.reason = new Cancel(message);
resolvePromise(token.reason);
});
}
/**
* Throws a `Cancel` if cancellation has been requested.
*/
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
if (this.reason) {
throw this.reason;
}
};
/**
* Returns an object that contains a new `CancelToken` and a function that, when called,
* cancels the `CancelToken`.
*/
CancelToken.source = function source() {
var cancel;
var token = new CancelToken(function executor(c) {
cancel = c;
});
return {
token: token,
cancel: cancel
};
};
module.exports = CancelToken;
/***/ }),
/***/ "./node_modules/axios/lib/cancel/isCancel.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = function isCancel(value) {
return !!(value && value.__CANCEL__);
};
/***/ }),
/***/ "./node_modules/axios/lib/core/Axios.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var defaults = __webpack_require__("./node_modules/axios/lib/defaults.js");
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
var InterceptorManager = __webpack_require__("./node_modules/axios/lib/core/InterceptorManager.js");
var dispatchRequest = __webpack_require__("./node_modules/axios/lib/core/dispatchRequest.js");
var isAbsoluteURL = __webpack_require__("./node_modules/axios/lib/helpers/isAbsoluteURL.js");
var combineURLs = __webpack_require__("./node_modules/axios/lib/helpers/combineURLs.js");
/**
* Create a new instance of Axios
*
* @param {Object} instanceConfig The default config for the instance
*/
function Axios(instanceConfig) {
this.defaults = instanceConfig;
this.interceptors = {
request: new InterceptorManager(),
response: new InterceptorManager()
};
}
/**
* Dispatch a request
*
* @param {Object} config The config specific for this request (merged with this.defaults)
*/
Axios.prototype.request = function request(config) {
/*eslint no-param-reassign:0*/
// Allow for axios('example/url'[, config]) a la fetch API
if (typeof config === 'string') {
config = utils.merge({
url: arguments[0]
}, arguments[1]);
}
config = utils.merge(defaults, this.defaults, { method: 'get' }, config);
config.method = config.method.toLowerCase();
// Support baseURL config
if (config.baseURL && !isAbsoluteURL(config.url)) {
config.url = combineURLs(config.baseURL, config.url);
}
// Hook up interceptors middleware
var chain = [dispatchRequest, undefined];
var promise = Promise.resolve(config);
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
chain.unshift(interceptor.fulfilled, interceptor.rejected);
});
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
chain.push(interceptor.fulfilled, interceptor.rejected);
});
while (chain.length) {
promise = promise.then(chain.shift(), chain.shift());
}
return promise;
};
// Provide aliases for supported request methods
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
/*eslint func-names:0*/
Axios.prototype[method] = function(url, config) {
return this.request(utils.merge(config || {}, {
method: method,
url: url
}));
};
});
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
/*eslint func-names:0*/
Axios.prototype[method] = function(url, data, config) {
return this.request(utils.merge(config || {}, {
method: method,
url: url,
data: data
}));
};
});
module.exports = Axios;
/***/ }),
/***/ "./node_modules/axios/lib/core/InterceptorManager.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
function InterceptorManager() {
this.handlers = [];
}
/**
* Add a new interceptor to the stack
*
* @param {Function} fulfilled The function to handle `then` for a `Promise`
* @param {Function} rejected The function to handle `reject` for a `Promise`
*
* @return {Number} An ID used to remove interceptor later
*/
InterceptorManager.prototype.use = function use(fulfilled, rejected) {
this.handlers.push({
fulfilled: fulfilled,
rejected: rejected
});
return this.handlers.length - 1;
};
/**
* Remove an interceptor from the stack
*
* @param {Number} id The ID that was returned by `use`
*/
InterceptorManager.prototype.eject = function eject(id) {
if (this.handlers[id]) {
this.handlers[id] = null;
}
};
/**
* Iterate over all the registered interceptors
*
* This method is particularly useful for skipping over any
* interceptors that may have become `null` calling `eject`.
*
* @param {Function} fn The function to call for each interceptor
*/
InterceptorManager.prototype.forEach = function forEach(fn) {
utils.forEach(this.handlers, function forEachHandler(h) {
if (h !== null) {
fn(h);
}
});
};
module.exports = InterceptorManager;
/***/ }),
/***/ "./node_modules/axios/lib/core/createError.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var enhanceError = __webpack_require__("./node_modules/axios/lib/core/enhanceError.js");
/**
* Create an Error with the specified message, config, error code, request and response.
*
* @param {string} message The error message.
* @param {Object} config The config.
* @param {string} [code] The error code (for example, 'ECONNABORTED').
* @param {Object} [request] The request.
* @param {Object} [response] The response.
* @returns {Error} The created error.
*/
module.exports = function createError(message, config, code, request, response) {
var error = new Error(message);
return enhanceError(error, config, code, request, response);
};
/***/ }),
/***/ "./node_modules/axios/lib/core/dispatchRequest.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
var transformData = __webpack_require__("./node_modules/axios/lib/core/transformData.js");
var isCancel = __webpack_require__("./node_modules/axios/lib/cancel/isCancel.js");
var defaults = __webpack_require__("./node_modules/axios/lib/defaults.js");
/**
* Throws a `Cancel` if cancellation has been requested.
*/
function throwIfCancellationRequested(config) {
if (config.cancelToken) {
config.cancelToken.throwIfRequested();
}
}
/**
* Dispatch a request to the server using the configured adapter.
*
* @param {object} config The config that is to be used for the request
* @returns {Promise} The Promise to be fulfilled
*/
module.exports = function dispatchRequest(config) {
throwIfCancellationRequested(config);
// Ensure headers exist
config.headers = config.headers || {};
// Transform request data
config.data = transformData(
config.data,
config.headers,
config.transformRequest
);
// Flatten headers
config.headers = utils.merge(
config.headers.common || {},
config.headers[config.method] || {},
config.headers || {}
);
utils.forEach(
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
function cleanHeaderConfig(method) {
delete config.headers[method];
}
);
var adapter = config.adapter || defaults.adapter;
return adapter(config).then(function onAdapterResolution(response) {
throwIfCancellationRequested(config);
// Transform response data
response.data = transformData(
response.data,
response.headers,
config.transformResponse
);
return response;
}, function onAdapterRejection(reason) {
if (!isCancel(reason)) {
throwIfCancellationRequested(config);
// Transform response data
if (reason && reason.response) {
reason.response.data = transformData(
reason.response.data,
reason.response.headers,
config.transformResponse
);
}
}
return Promise.reject(reason);
});
};
/***/ }),
/***/ "./node_modules/axios/lib/core/enhanceError.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Update an Error with the specified config, error code, and response.
*
* @param {Error} error The error to update.
* @param {Object} config The config.
* @param {string} [code] The error code (for example, 'ECONNABORTED').
* @param {Object} [request] The request.
* @param {Object} [response] The response.
* @returns {Error} The error.
*/
module.exports = function enhanceError(error, config, code, request, response) {
error.config = config;
if (code) {
error.code = code;
}
error.request = request;
error.response = response;
return error;
};
/***/ }),
/***/ "./node_modules/axios/lib/core/settle.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var createError = __webpack_require__("./node_modules/axios/lib/core/createError.js");
/**
* Resolve or reject a Promise based on response status.
*
* @param {Function} resolve A function that resolves the promise.
* @param {Function} reject A function that rejects the promise.
* @param {object} response The response.
*/
module.exports = function settle(resolve, reject, response) {
var validateStatus = response.config.validateStatus;
// Note: status is not exposed by XDomainRequest
if (!response.status || !validateStatus || validateStatus(response.status)) {
resolve(response);
} else {
reject(createError(
'Request failed with status code ' + response.status,
response.config,
null,
response.request,
response
));
}
};
/***/ }),
/***/ "./node_modules/axios/lib/core/transformData.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
/**
* Transform the data for a request or a response
*
* @param {Object|String} data The data to be transformed
* @param {Array} headers The headers for the request or response
* @param {Array|Function} fns A single function or Array of functions
* @returns {*} The resulting transformed data
*/
module.exports = function transformData(data, headers, fns) {
/*eslint no-param-reassign:0*/
utils.forEach(fns, function transform(fn) {
data = fn(data, headers);
});
return data;
};
/***/ }),
/***/ "./node_modules/axios/lib/defaults.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(process) {
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
var normalizeHeaderName = __webpack_require__("./node_modules/axios/lib/helpers/normalizeHeaderName.js");
var DEFAULT_CONTENT_TYPE = {
'Content-Type': 'application/x-www-form-urlencoded'
};
function setContentTypeIfUnset(headers, value) {
if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
headers['Content-Type'] = value;
}
}
function getDefaultAdapter() {
var adapter;
if (typeof XMLHttpRequest !== 'undefined') {
// For browsers use XHR adapter
adapter = __webpack_require__("./node_modules/axios/lib/adapters/xhr.js");
} else if (typeof process !== 'undefined') {
// For node use HTTP adapter
adapter = __webpack_require__("./node_modules/axios/lib/adapters/xhr.js");
}
return adapter;
}
var defaults = {
adapter: getDefaultAdapter(),
transformRequest: [function transformRequest(data, headers) {
normalizeHeaderName(headers, 'Content-Type');
if (utils.isFormData(data) ||
utils.isArrayBuffer(data) ||
utils.isBuffer(data) ||
utils.isStream(data) ||
utils.isFile(data) ||
utils.isBlob(data)
) {
return data;
}
if (utils.isArrayBufferView(data)) {
return data.buffer;
}
if (utils.isURLSearchParams(data)) {
setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
return data.toString();
}
if (utils.isObject(data)) {
setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
return JSON.stringify(data);
}
return data;
}],
transformResponse: [function transformResponse(data) {
/*eslint no-param-reassign:0*/
if (typeof data === 'string') {
try {
data = JSON.parse(data);
} catch (e) { /* Ignore */ }
}
return data;
}],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: function validateStatus(status) {
return status >= 200 && status < 300;
}
};
defaults.headers = {
common: {
'Accept': 'application/json, text/plain, */*'
}
};
utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
defaults.headers[method] = {};
});
utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
});
module.exports = defaults;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/process/browser.js")))
/***/ }),
/***/ "./node_modules/axios/lib/helpers/bind.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = function bind(fn, thisArg) {
return function wrap() {
var args = new Array(arguments.length);
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i];
}
return fn.apply(thisArg, args);
};
};
/***/ }),
/***/ "./node_modules/axios/lib/helpers/btoa.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
function E() {
this.message = 'String contains an invalid character';
}
E.prototype = new Error;
E.prototype.code = 5;
E.prototype.name = 'InvalidCharacterError';
function btoa(input) {
var str = String(input);
var output = '';
for (
// initialize result and counter
var block, charCode, idx = 0, map = chars;
// if the next str index does not exist:
// change the mapping table to "="
// check if d has no fractional digits
str.charAt(idx | 0) || (map = '=', idx % 1);
// "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
output += map.charAt(63 & block >> 8 - idx % 1 * 8)
) {
charCode = str.charCodeAt(idx += 3 / 4);
if (charCode > 0xFF) {
throw new E();
}
block = block << 8 | charCode;
}
return output;
}
module.exports = btoa;
/***/ }),
/***/ "./node_modules/axios/lib/helpers/buildURL.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
function encode(val) {
return encodeURIComponent(val).
replace(/%40/gi, '@').
replace(/%3A/gi, ':').
replace(/%24/g, '$').
replace(/%2C/gi, ',').
replace(/%20/g, '+').
replace(/%5B/gi, '[').
replace(/%5D/gi, ']');
}
/**
* Build a URL by appending params to the end
*
* @param {string} url The base of the url (e.g., http://www.google.com)
* @param {object} [params] The params to be appended
* @returns {string} The formatted url
*/
module.exports = function buildURL(url, params, paramsSerializer) {
/*eslint no-param-reassign:0*/
if (!params) {
return url;
}
var serializedParams;
if (paramsSerializer) {
serializedParams = paramsSerializer(params);
} else if (utils.isURLSearchParams(params)) {
serializedParams = params.toString();
} else {
var parts = [];
utils.forEach(params, function serialize(val, key) {
if (val === null || typeof val === 'undefined') {
return;
}
if (utils.isArray(val)) {
key = key + '[]';
}
if (!utils.isArray(val)) {
val = [val];
}
utils.forEach(val, function parseValue(v) {
if (utils.isDate(v)) {
v = v.toISOString();
} else if (utils.isObject(v)) {
v = JSON.stringify(v);
}
parts.push(encode(key) + '=' + encode(v));
});
});
serializedParams = parts.join('&');
}
if (serializedParams) {
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
}
return url;
};
/***/ }),
/***/ "./node_modules/axios/lib/helpers/combineURLs.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Creates a new URL by combining the specified URLs
*
* @param {string} baseURL The base URL
* @param {string} relativeURL The relative URL
* @returns {string} The combined URL
*/
module.exports = function combineURLs(baseURL, relativeURL) {
return relativeURL
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
: baseURL;
};
/***/ }),
/***/ "./node_modules/axios/lib/helpers/cookies.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
module.exports = (
utils.isStandardBrowserEnv() ?
// Standard browser envs support document.cookie
(function standardBrowserEnv() {
return {
write: function write(name, value, expires, path, domain, secure) {
var cookie = [];
cookie.push(name + '=' + encodeURIComponent(value));
if (utils.isNumber(expires)) {
cookie.push('expires=' + new Date(expires).toGMTString());
}
if (utils.isString(path)) {
cookie.push('path=' + path);
}
if (utils.isString(domain)) {
cookie.push('domain=' + domain);
}
if (secure === true) {
cookie.push('secure');
}
document.cookie = cookie.join('; ');
},
read: function read(name) {
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
return (match ? decodeURIComponent(match[3]) : null);
},
remove: function remove(name) {
this.write(name, '', Date.now() - 86400000);
}
};
})() :
// Non standard browser env (web workers, react-native) lack needed support.
(function nonStandardBrowserEnv() {
return {
write: function write() {},
read: function read() { return null; },
remove: function remove() {}
};
})()
);
/***/ }),
/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Determines whether the specified URL is absolute
*
* @param {string} url The URL to test
* @returns {boolean} True if the specified URL is absolute, otherwise false
*/
module.exports = function isAbsoluteURL(url) {
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
// by any combination of letters, digits, plus, period, or hyphen.
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
};
/***/ }),
/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
module.exports = (
utils.isStandardBrowserEnv() ?
// Standard browser envs have full support of the APIs needed to test
// whether the request URL is of the same origin as current location.
(function standardBrowserEnv() {
var msie = /(msie|trident)/i.test(navigator.userAgent);
var urlParsingNode = document.createElement('a');
var originURL;
/**
* Parse a URL to discover it's components
*
* @param {String} url The URL to be parsed
* @returns {Object}
*/
function resolveURL(url) {
var href = url;
if (msie) {
// IE needs attribute set twice to normalize properties
urlParsingNode.setAttribute('href', href);
href = urlParsingNode.href;
}
urlParsingNode.setAttribute('href', href);
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
return {
href: urlParsingNode.href,
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
host: urlParsingNode.host,
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
hostname: urlParsingNode.hostname,
port: urlParsingNode.port,
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
urlParsingNode.pathname :
'/' + urlParsingNode.pathname
};
}
originURL = resolveURL(window.location.href);
/**
* Determine if a URL shares the same origin as the current location
*
* @param {String} requestURL The URL to test
* @returns {boolean} True if URL shares the same origin, otherwise false
*/
return function isURLSameOrigin(requestURL) {
var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
return (parsed.protocol === originURL.protocol &&
parsed.host === originURL.host);
};
})() :
// Non standard browser envs (web workers, react-native) lack needed support.
(function nonStandardBrowserEnv() {
return function isURLSameOrigin() {
return true;
};
})()
);
/***/ }),
/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
module.exports = function normalizeHeaderName(headers, normalizedName) {
utils.forEach(headers, function processHeader(value, name) {
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
headers[normalizedName] = value;
delete headers[name];
}
});
};
/***/ }),
/***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
/**
* Parse headers into an object
*
* ```
* Date: Wed, 27 Aug 2014 08:58:49 GMT
* Content-Type: application/json
* Connection: keep-alive
* Transfer-Encoding: chunked
* ```
*
* @param {String} headers Headers needing to be parsed
* @returns {Object} Headers parsed into an object
*/
module.exports = function parseHeaders(headers) {
var parsed = {};
var key;
var val;
var i;
if (!headers) { return parsed; }
utils.forEach(headers.split('\n'), function parser(line) {
i = line.indexOf(':');
key = utils.trim(line.substr(0, i)).toLowerCase();
val = utils.trim(line.substr(i + 1));
if (key) {
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
}
});
return parsed;
};
/***/ }),
/***/ "./node_modules/axios/lib/helpers/spread.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Syntactic sugar for invoking a function and expanding an array for arguments.
*
* Common use case would be to use `Function.prototype.apply`.
*
* ```js
* function f(x, y, z) {}
* var args = [1, 2, 3];
* f.apply(null, args);
* ```
*
* With `spread` this example can be re-written.
*
* ```js
* spread(function(x, y, z) {})([1, 2, 3]);
* ```
*
* @param {Function} callback
* @returns {Function}
*/
module.exports = function spread(callback) {
return function wrap(arr) {
return callback.apply(null, arr);
};
};
/***/ }),
/***/ "./node_modules/axios/lib/utils.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var bind = __webpack_require__("./node_modules/axios/lib/helpers/bind.js");
var isBuffer = __webpack_require__("./node_modules/is-buffer/index.js");
/*global toString:true*/
// utils is a library of generic helper functions non-specific to axios
var toString = Object.prototype.toString;
/**
* Determine if a value is an Array
*
* @param {Object} val The value to test
* @returns {boolean} True if value is an Array, otherwise false
*/
function isArray(val) {
return toString.call(val) === '[object Array]';
}
/**
* Determine if a value is an ArrayBuffer
*
* @param {Object} val The value to test
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
*/
function isArrayBuffer(val) {
return toString.call(val) === '[object ArrayBuffer]';
}
/**
* Determine if a value is a FormData
*
* @param {Object} val The value to test
* @returns {boolean} True if value is an FormData, otherwise false
*/
function isFormData(val) {
return (typeof FormData !== 'undefined') && (val instanceof FormData);
}
/**
* Determine if a value is a view on an ArrayBuffer
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
*/
function isArrayBufferView(val) {
var result;
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
result = ArrayBuffer.isView(val);
} else {
result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
}
return result;
}
/**
* Determine if a value is a String
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a String, otherwise false
*/
function isString(val) {
return typeof val === 'string';
}
/**
* Determine if a value is a Number
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a Number, otherwise false
*/
function isNumber(val) {
return typeof val === 'number';
}
/**
* Determine if a value is undefined
*
* @param {Object} val The value to test
* @returns {boolean} True if the value is undefined, otherwise false
*/
function isUndefined(val) {
return typeof val === 'undefined';
}
/**
* Determine if a value is an Object
*
* @param {Object} val The value to test
* @returns {boolean} True if value is an Object, otherwise false
*/
function isObject(val) {
return val !== null && typeof val === 'object';
}
/**
* Determine if a value is a Date
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a Date, otherwise false
*/
function isDate(val) {
return toString.call(val) === '[object Date]';
}
/**
* Determine if a value is a File
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a File, otherwise false
*/
function isFile(val) {
return toString.call(val) === '[object File]';
}
/**
* Determine if a value is a Blob
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a Blob, otherwise false
*/
function isBlob(val) {
return toString.call(val) === '[object Blob]';
}
/**
* Determine if a value is a Function
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a Function, otherwise false
*/
function isFunction(val) {
return toString.call(val) === '[object Function]';
}
/**
* Determine if a value is a Stream
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a Stream, otherwise false
*/
function isStream(val) {
return isObject(val) && isFunction(val.pipe);
}
/**
* Determine if a value is a URLSearchParams object
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
*/
function isURLSearchParams(val) {
return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
}
/**
* Trim excess whitespace off the beginning and end of a string
*
* @param {String} str The String to trim
* @returns {String} The String freed of excess whitespace
*/
function trim(str) {
return str.replace(/^\s*/, '').replace(/\s*$/, '');
}
/**
* Determine if we're running in a standard browser environment
*
* This allows axios to run in a web worker, and react-native.
* Both environments support XMLHttpRequest, but not fully standard globals.
*
* web workers:
* typeof window -> undefined
* typeof document -> undefined
*
* react-native:
* navigator.product -> 'ReactNative'
*/
function isStandardBrowserEnv() {
if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
return false;
}
return (
typeof window !== 'undefined' &&
typeof document !== 'undefined'
);
}
/**
* Iterate over an Array or an Object invoking a function for each item.
*
* If `obj` is an Array callback will be called passing
* the value, index, and complete array for each item.
*
* If 'obj' is an Object callback will be called passing
* the value, key, and complete object for each property.
*
* @param {Object|Array} obj The object to iterate
* @param {Function} fn The callback to invoke for each item
*/
function forEach(obj, fn) {
// Don't bother if no value provided
if (obj === null || typeof obj === 'undefined') {
return;
}
// Force an array if not already something iterable
if (typeof obj !== 'object' && !isArray(obj)) {
/*eslint no-param-reassign:0*/
obj = [obj];
}
if (isArray(obj)) {
// Iterate over array values
for (var i = 0, l = obj.length; i < l; i++) {
fn.call(null, obj[i], i, obj);
}
} else {
// Iterate over object keys
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
fn.call(null, obj[key], key, obj);
}
}
}
}
/**
* Accepts varargs expecting each argument to be an object, then
* immutably merges the properties of each object and returns result.
*
* When multiple objects contain the same key the later object in
* the arguments list will take precedence.
*
* Example:
*
* ```js
* var result = merge({foo: 123}, {foo: 456});
* console.log(result.foo); // outputs 456
* ```
*
* @param {Object} obj1 Object to merge
* @returns {Object} Result of all merge properties
*/
function merge(/* obj1, obj2, obj3, ... */) {
var result = {};
function assignValue(val, key) {
if (typeof result[key] === 'object' && typeof val === 'object') {
result[key] = merge(result[key], val);
} else {
result[key] = val;
}
}
for (var i = 0, l = arguments.length; i < l; i++) {
forEach(arguments[i], assignValue);
}
return result;
}
/**
* Extends object a by mutably adding to it the properties of object b.
*
* @param {Object} a The object to be extended
* @param {Object} b The object to copy properties from
* @param {Object} thisArg The object to bind function to
* @return {Object} The resulting value of object a
*/
function extend(a, b, thisArg) {
forEach(b, function assignValue(val, key) {
if (thisArg && typeof val === 'function') {
a[key] = bind(val, thisArg);
} else {
a[key] = val;
}
});
return a;
}
module.exports = {
isArray: isArray,
isArrayBuffer: isArrayBuffer,
isBuffer: isBuffer,
isFormData: isFormData,
isArrayBufferView: isArrayBufferView,
isString: isString,
isNumber: isNumber,
isObject: isObject,
isUndefined: isUndefined,
isDate: isDate,
isFile: isFile,
isBlob: isBlob,
isFunction: isFunction,
isStream: isStream,
isURLSearchParams: isURLSearchParams,
isStandardBrowserEnv: isStandardBrowserEnv,
forEach: forEach,
merge: merge,
extend: extend,
trim: trim
};
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?{\"cacheDirectory\":true,\"presets\":[[\"env\",{\"modules\":false,\"targets\":{\"browsers\":[\"> 2%\"],\"uglify\":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/App.vue":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__("./node_modules/vue/dist/vue.common.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__("./node_modules/axios/index.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
data: function data() {
return {
filtersearch: '',
model: [],
getItemsApi: '/riv-admin/getitems'
};
},
beforeMount: function beforeMount() {
this.fetchItems();
},
watch: {
'$route': 'fetchItems'
},
computed: {
filterItems: function filterItems() {
var vm = this;
return vm.model.filter(function (item) {
return item.itemName.toLowerCase().match(vm.filtersearch.toLowerCase());
});
}
},
methods: {
fetchItems: function fetchItems() {
var vm = this;
__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(this.getItemsApi).then(function (response) {
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.set(vm.$data, 'model', response.data);
console.log(response.data);
}).catch(function (error) {
console.log(error);
});
}
}
});
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js?{\"cacheDirectory\":true,\"presets\":[[\"env\",{\"modules\":false,\"targets\":{\"browsers\":[\"> 2%\"],\"uglify\":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/views/edit.vue":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__("./node_modules/vue/dist/vue.common.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__("./node_modules/axios/index.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
data: function data() {
return {
model: {
items: []
},
errors: {},
updateApi: '/riv-admin/getitems/' + this.$route.params.id,
updateMethod: 'put'
};
},
beforeMount: function beforeMount() {
this.fetchData();
},
watch: {
'$route': 'fetchData'
},
methods: {
fetchData: function fetchData() {
var vm = this;
__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get('/riv-admin/getitems/' + this.$route.params.id).then(function (response) {
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.set(vm.$data, 'model', response.data.model);
console.log(response.data.model);
}).catch(function (error) {
console.log(response.data.model);
});
}
}
});
/***/ }),
/***/ "./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-660cdc14\",\"scoped\":false,\"hasInlineConfig\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./resources/assets/js/App.vue":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")();
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);
/***/ }),
/***/ "./node_modules/css-loader/lib/css-base.js":
/***/ (function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
var list = [];
// return the list of modules as css string
list.toString = function toString() {
var result = [];
for(var i = 0; i < this.length; i++) {
var item = this[i];
if(item[2]) {
result.push("@media " + item[2] + "{" + item[1] + "}");
} else {
result.push(item[1]);
}
}
return result.join("");
};
// import a list of modules into the list
list.i = function(modules, mediaQuery) {
if(typeof modules === "string")
modules = [[null, modules, ""]];
var alreadyImportedModules = {};
for(var i = 0; i < this.length; i++) {
var id = this[i][0];
if(typeof id === "number")
alreadyImportedModules[id] = true;
}
for(i = 0; i < modules.length; i++) {
var item = modules[i];
// skip already imported module
// this implementation is not 100% perfect for weird media query combinations
// when a module is imported multiple times with different media queries.
// I hope this will never occur (Hey this way we have smaller bundles)
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
if(mediaQuery && !item[2]) {
item[2] = mediaQuery;
} else if(mediaQuery) {
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
}
list.push(item);
}
}
};
return list;
};
/***/ }),
/***/ "./node_modules/is-buffer/index.js":
/***/ (function(module, exports) {
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
// The _isBuffer check is for Safari 5-7 support, because it's missing
// Object.prototype.constructor. Remove this eventually
module.exports = function (obj) {
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
}
function isBuffer (obj) {
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
}
// For Node v0.10 support. Remove this eventually.
function isSlowBuffer (obj) {
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
}
/***/ }),
/***/ "./node_modules/process/browser.js":
/***/ (function(module, exports) {
// shim for using process in browser
var process = module.exports = {};
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout;
var cachedClearTimeout;
function defaultSetTimout() {
throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
throw new Error('clearTimeout has not been defined');
}
(function () {
try {
if (typeof setTimeout === 'function') {
cachedSetTimeout = setTimeout;
} else {
cachedSetTimeout = defaultSetTimout;
}
} catch (e) {
cachedSetTimeout = defaultSetTimout;
}
try {
if (typeof clearTimeout === 'function') {
cachedClearTimeout = clearTimeout;
} else {
cachedClearTimeout = defaultClearTimeout;
}
} catch (e) {
cachedClearTimeout = defaultClearTimeout;
}
} ())
function runTimeout(fun) {
if (cachedSetTimeout === setTimeout) {
//normal enviroments in sane situations
return setTimeout(fun, 0);
}
// if setTimeout wasn't available but was latter defined
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
cachedSetTimeout = setTimeout;
return setTimeout(fun, 0);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedSetTimeout(fun, 0);
} catch(e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout.call(null, fun, 0);
} catch(e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return cachedSetTimeout.call(this, fun, 0);
}
}
}
function runClearTimeout(marker) {
if (cachedClearTimeout === clearTimeout) {
//normal enviroments in sane situations
return clearTimeout(marker);
}
// if clearTimeout wasn't available but was latter defined
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
cachedClearTimeout = clearTimeout;
return clearTimeout(marker);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedClearTimeout(marker);
} catch (e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout.call(null, marker);
} catch (e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout.call(this, marker);
}
}
}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;
function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
} else {
queueIndex = -1;
}
if (queue.length) {
drainQueue();
}
}
function drainQueue() {
if (draining) {
return;
}
var timeout = runTimeout(cleanUpNextTick);
draining = true;
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
while (++queueIndex < len) {
if (currentQueue) {
currentQueue[queueIndex].run();
}
}
queueIndex = -1;
len = queue.length;
}
currentQueue = null;
draining = false;
runClearTimeout(timeout);
}
process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
runTimeout(drainQueue);
}
};
// v8 likes predictible objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
}
Item.prototype.run = function () {
this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {}
process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;
process.listeners = function (name) { return [] }
process.binding = function (name) {
throw new Error('process.binding is not supported');
};
process.cwd = function () { return '/' };
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };
/***/ }),
/***/ "./node_modules/vue-loader/lib/component-normalizer.js":
/***/ (function(module, exports) {
// this module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle
module.exports = function normalizeComponent (
rawScriptExports,
compiledTemplate,
scopeId,
cssModules
) {
var esModule
var scriptExports = rawScriptExports = rawScriptExports || {}
// ES6 modules interop
var type = typeof rawScriptExports.default
if (type === 'object' || type === 'function') {
esModule = rawScriptExports
scriptExports = rawScriptExports.default
}
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports.options
: scriptExports
// render functions
if (compiledTemplate) {
options.render = compiledTemplate.render
options.staticRenderFns = compiledTemplate.staticRenderFns
}
// scopedId
if (scopeId) {
options._scopeId = scopeId
}
// inject cssModules
if (cssModules) {
var computed = Object.create(options.computed || null)
Object.keys(cssModules).forEach(function (key) {
var module = cssModules[key]
computed[key] = function () { return module }
})
options.computed = computed
}
return {
esModule: esModule,
exports: scriptExports,
options: options
}
}
/***/ }),
/***/ "./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-0f9f85a6\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/views/edit.vue":
/***/ (function(module, exports, __webpack_require__) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', [_c('div', {
staticClass: "panel panel-default"
}, [_c('div', {
staticClass: "col-md-4",
attrs: {
"-md-4": ""
}
}, [_c('div', {
staticClass: "panel-heading"
}, [_c('span', {
staticClass: "panel-title"
}, [_vm._v("Edit " + _vm._s(_vm.model.name))])])])]), _vm._v(" "), _c('div', {
staticClass: "panel-body"
}, [_c('div', {
staticClass: "row"
}, [_c('form', {
staticClass: "form",
on: {
"submit": function($event) {
$event.preventDefault();
_vm.save($event)
}
}
}, [_c('div', {
staticClass: "col-sm-4"
}, [_c('div', {
staticClass: "form-group"
}, [_c('label', {
attrs: {
"for": "itemName"
}
}, [_vm._v("Item Name")]), _vm._v(" "), _c('input', {
directives: [{
name: "model",
rawName: "v-model",
value: (_vm.model.itemName),
expression: "model.itemName"
}],
staticClass: "form-control",
attrs: {
"type": "text",
"name": "itemName"
},
domProps: {
"value": (_vm.model.itemName)
},
on: {
"input": function($event) {
if ($event.target.composing) { return; }
_vm.model.itemName = $event.target.value
}
}
}), _vm._v(" "), (_vm.errors.itemName) ? _c('small', {
staticClass: "text-danger"
}, [_vm._v(_vm._s(_vm.errors.itemName[0]))]) : _vm._e()])]), _vm._v(" "), _c('div', {
staticClass: "col-sm-4"
}, [_c('div', {
staticClass: "form-group"
}, [_c('label', {
attrs: {
"for": "itemSrp"
}
}, [_vm._v("Item Srp")]), _vm._v(" "), _c('input', {
directives: [{
name: "model",
rawName: "v-model",
value: (_vm.model.itemSrp),
expression: "model.itemSrp"
}],
staticClass: "form-control",
attrs: {
"type": "text",
"name": "itemSrp"
},
domProps: {
"value": (_vm.model.itemSrp)
},
on: {
"input": function($event) {
if ($event.target.composing) { return; }
_vm.model.itemSrp = $event.target.value
}
}
}), _vm._v(" "), (_vm.errors.itemSrp) ? _c('small', {
staticClass: "text-danger"
}, [_vm._v(_vm._s(_vm.errors.itemSrp[0]))]) : _vm._e()])]), _vm._v(" "), _c('div', {
staticClass: "col-sm-4"
}, [_c('div', {
staticClass: "form-group"
}, [_c('label', {
attrs: {
"for": "itemQuantity"
}
}, [_vm._v("Item Quantity")]), _vm._v(" "), _c('input', {
directives: [{
name: "model",
rawName: "v-model",
value: (_vm.model.itemQuantity),
expression: "model.itemQuantity"
}],
staticClass: "form-control",
attrs: {
"type": "text",
"name": "itemQuantity"
},
domProps: {
"value": (_vm.model.itemQuantity)
},
on: {
"input": function($event) {
if ($event.target.composing) { return; }
_vm.model.itemQuantity = $event.target.value
}
}
}), _vm._v(" "), (_vm.errors.itemQuantity) ? _c('small', {
staticClass: "text-danger"
}, [_vm._v(_vm._s(_vm.errors.itemQuantity[0]))]) : _vm._e()])]), _vm._v(" "), _c('div', {
staticClass: "col-sm-4"
}, [_c('div', {
staticClass: "form-group"
}, [_c('label', {
attrs: {
"for": "itemImage"
}
}, [_vm._v("Item Image")]), _vm._v(" "), _c('input', {
directives: [{
name: "model",
rawName: "v-model",
value: (_vm.model.itemImagePath),
expression: "model.itemImagePath"
}],
staticClass: "form-control",
attrs: {
"type": "text",
"name": "itemImagePath"
},
domProps: {
"value": (_vm.model.itemImagePath)
},
on: {
"input": function($event) {
if ($event.target.composing) { return; }
_vm.model.itemImagePath = $event.target.value
}
}
}), _vm._v(" "), (_vm.errors.itemImagePath) ? _c('small', {
staticClass: "text-danger"
}, [_vm._v(_vm._s(_vm.errors.itemImagePath[0]))]) : _vm._e()])]), _vm._v(" "), _c('button', {
attrs: {
"type": "button",
"name": "button"
}
}, [_vm._v("Update")])])])])])
},staticRenderFns: []}
module.exports.render._withStripped = true
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api").rerender("data-v-0f9f85a6", module.exports)
}
}
/***/ }),
/***/ "./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-660cdc14\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/App.vue":
/***/ (function(module, exports, __webpack_require__) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', [_c('div', {
staticClass: "col-md-9"
}, [_c('div', {
staticClass: "panel panel-default"
}, [_vm._m(0), _vm._v(" "), _c('div', {
staticClass: "panel-body"
}, [_c('div', {
staticClass: "col-md-2-sm-2"
}, [_c('input', {
directives: [{
name: "model",
rawName: "v-model",
value: (_vm.filtersearch),
expression: "filtersearch"
}],
staticClass: "form-control",
attrs: {
"type": "text",
"list": "searchitem",
"placeholder": "Search for..."
},
domProps: {
"value": (_vm.filtersearch)
},
on: {
"input": function($event) {
if ($event.target.composing) { return; }
_vm.filtersearch = $event.target.value
}
}
})]), _vm._v(" "), _c('br'), _vm._v(" "), _c('table', {
staticClass: "table table-striped table-bordered"
}, [_vm._m(1), _vm._v(" "), _c('tbody', _vm._l((_vm.filterItems), function(item) {
return _c('tr', [_c('td', [_vm._v(_vm._s(item.id))]), _vm._v(" "), _c('td', [_vm._v(_vm._s(item.itemName))]), _vm._v(" "), _c('td', [_vm._v("₱" + _vm._s(item.itemSrp))]), _vm._v(" "), _c('td', [_vm._v("₱" + _vm._s(item.itemOriginalPrice))]), _vm._v(" "), _c('td', [_vm._v(_vm._s(item.itemDiscount) + "%")]), _vm._v(" "), _c('td', [_vm._v("₱" + _vm._s(item.itemTotalDiscount))]), _vm._v(" "), _c('td', [_vm._v(_vm._s(item.itemQuantity))]), _vm._v(" "), _c('td', [_vm._v("Sale")]), _vm._v(" "), _c('td', [_vm._v(_vm._s(item.created_at))]), _vm._v(" "), _c('td', [_vm._v(_vm._s(item.updated_at))]), _vm._v(" "), _c('td', [_c('button', {
staticClass: "btn btn-warning btn-xs",
attrs: {
"type": "button"
},
on: {
"click": function($event) {
_vm.$router.push('/getitems/' + item.id)
}
}
}, [_c('span', {
staticClass: "glyphicon glyphicon-edit"
})])])])
}))])])])]), _vm._v(" "), _c('router-view')], 1)
},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', {
staticClass: "panel-heading main-color-bg"
}, [_c('h3', {
staticClass: "panel-title"
}, [_vm._v("Welcome!")])])
},function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('tbody', [_c('tr', [_c('th', [_vm._v("ID")]), _vm._v(" "), _c('th', [_vm._v("Item Name")]), _vm._v(" "), _c('th', [_vm._v("SRP")]), _vm._v(" "), _c('th', [_vm._v("Original Price")]), _vm._v(" "), _c('th', [_vm._v("Discount")]), _vm._v(" "), _c('th', [_vm._v("Total Discount")]), _vm._v(" "), _c('th', [_vm._v("Item's Left")]), _vm._v(" "), _c('th', [_vm._v("Sale")]), _vm._v(" "), _c('th', [_vm._v("Date Registered")]), _vm._v(" "), _c('th', [_vm._v("Date Updated")]), _vm._v(" "), _c('th', [_vm._v("Action")])])])
}]}
module.exports.render._withStripped = true
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api").rerender("data-v-660cdc14", module.exports)
}
}
/***/ }),
/***/ "./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-6bc7d82e\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/views/test.vue":
/***/ (function(module, exports, __webpack_require__) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('h2', [_vm._v("test")])
},staticRenderFns: []}
module.exports.render._withStripped = true
if (false) {
module.hot.accept()
if (module.hot.data) {
require("vue-hot-reload-api").rerender("data-v-6bc7d82e", module.exports)
}
}
/***/ }),
/***/ "./node_modules/vue-router/dist/vue-router.esm.js":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/**
* vue-router v2.7.0
* (c) 2017 Evan You
* @license MIT
*/
/* */
function assert (condition, message) {
if (!condition) {
throw new Error(("[vue-router] " + message))
}
}
function warn (condition, message) {
if ("development" !== 'production' && !condition) {
typeof console !== 'undefined' && console.warn(("[vue-router] " + message));
}
}
function isError (err) {
return Object.prototype.toString.call(err).indexOf('Error') > -1
}
var View = {
name: 'router-view',
functional: true,
props: {
name: {
type: String,
default: 'default'
}
},
render: function render (_, ref) {
var props = ref.props;
var children = ref.children;
var parent = ref.parent;
var data = ref.data;
data.routerView = true;
// directly use parent context's createElement() function
// so that components rendered by router-view can resolve named slots
var h = parent.$createElement;
var name = props.name;
var route = parent.$route;
var cache = parent._routerViewCache || (parent._routerViewCache = {});
// determine current view depth, also check to see if the tree
// has been toggled inactive but kept-alive.
var depth = 0;
var inactive = false;
while (parent && parent._routerRoot !== parent) {
if (parent.$vnode && parent.$vnode.data.routerView) {
depth++;
}
if (parent._inactive) {
inactive = true;
}
parent = parent.$parent;
}
data.routerViewDepth = depth;
// render previous view if the tree is inactive and kept-alive
if (inactive) {
return h(cache[name], data, children)
}
var matched = route.matched[depth];
// render empty node if no matched route
if (!matched) {
cache[name] = null;
return h()
}
var component = cache[name] = matched.components[name];
// attach instance registration hook
// this will be called in the instance's injected lifecycle hooks
data.registerRouteInstance = function (vm, val) {
// val could be undefined for unregistration
var current = matched.instances[name];
if (
(val && current !== vm) ||
(!val && current === vm)
) {
matched.instances[name] = val;
}
}
// also regiseter instance in prepatch hook
// in case the same component instance is reused across different routes
;(data.hook || (data.hook = {})).prepatch = function (_, vnode) {
matched.instances[name] = vnode.componentInstance;
};
// resolve props
data.props = resolveProps(route, matched.props && matched.props[name]);
return h(component, data, children)
}
};
function resolveProps (route, config) {
switch (typeof config) {
case 'undefined':
return
case 'object':
return config
case 'function':
return config(route)
case 'boolean':
return config ? route.params : undefined
default:
if (true) {
warn(
false,
"props in \"" + (route.path) + "\" is a " + (typeof config) + ", " +
"expecting an object, function or boolean."
);
}
}
}
/* */
var encodeReserveRE = /[!'()*]/g;
var encodeReserveReplacer = function (c) { return '%' + c.charCodeAt(0).toString(16); };
var commaRE = /%2C/g;
// fixed encodeURIComponent which is more conformant to RFC3986:
// - escapes [!'()*]
// - preserve commas
var encode = function (str) { return encodeURIComponent(str)
.replace(encodeReserveRE, encodeReserveReplacer)
.replace(commaRE, ','); };
var decode = decodeURIComponent;
function resolveQuery (
query,
extraQuery,
_parseQuery
) {
if ( extraQuery === void 0 ) extraQuery = {};
var parse = _parseQuery || parseQuery;
var parsedQuery;
try {
parsedQuery = parse(query || '');
} catch (e) {
"development" !== 'production' && warn(false, e.message);
parsedQuery = {};
}
for (var key in extraQuery) {
var val = extraQuery[key];
parsedQuery[key] = Array.isArray(val) ? val.slice() : val;
}
return parsedQuery
}
function parseQuery (query) {
var res = {};
query = query.trim().replace(/^(\?|#|&)/, '');
if (!query) {
return res
}
query.split('&').forEach(function (param) {
var parts = param.replace(/\+/g, ' ').split('=');
var key = decode(parts.shift());
var val = parts.length > 0
? decode(parts.join('='))
: null;
if (res[key] === undefined) {
res[key] = val;
} else if (Array.isArray(res[key])) {
res[key].push(val);
} else {
res[key] = [res[key], val];
}
});
return res
}
function stringifyQuery (obj) {
var res = obj ? Object.keys(obj).map(function (key) {
var val = obj[key];
if (val === undefined) {
return ''
}
if (val === null) {
return encode(key)
}
if (Array.isArray(val)) {
var result = [];
val.forEach(function (val2) {
if (val2 === undefined) {
return
}
if (val2 === null) {
result.push(encode(key));
} else {
result.push(encode(key) + '=' + encode(val2));
}
});
return result.join('&')
}
return encode(key) + '=' + encode(val)
}).filter(function (x) { return x.length > 0; }).join('&') : null;
return res ? ("?" + res) : ''
}
/* */
var trailingSlashRE = /\/?$/;
function createRoute (
record,
location,
redirectedFrom,
router
) {
var stringifyQuery$$1 = router && router.options.stringifyQuery;
var route = {
name: location.name || (record && record.name),
meta: (record && record.meta) || {},
path: location.path || '/',
hash: location.hash || '',
query: location.query || {},
params: location.params || {},
fullPath: getFullPath(location, stringifyQuery$$1),
matched: record ? formatMatch(record) : []
};
if (redirectedFrom) {
route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery$$1);
}
return Object.freeze(route)
}
// the starting route that represents the initial state
var START = createRoute(null, {
path: '/'
});
function formatMatch (record) {
var res = [];
while (record) {
res.unshift(record);
record = record.parent;
}
return res
}
function getFullPath (
ref,
_stringifyQuery
) {
var path = ref.path;
var query = ref.query; if ( query === void 0 ) query = {};
var hash = ref.hash; if ( hash === void 0 ) hash = '';
var stringify = _stringifyQuery || stringifyQuery;
return (path || '/') + stringify(query) + hash
}
function isSameRoute (a, b) {
if (b === START) {
return a === b
} else if (!b) {
return false
} else if (a.path && b.path) {
return (
a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') &&
a.hash === b.hash &&
isObjectEqual(a.query, b.query)
)
} else if (a.name && b.name) {
return (
a.name === b.name &&
a.hash === b.hash &&
isObjectEqual(a.query, b.query) &&
isObjectEqual(a.params, b.params)
)
} else {
return false
}
}
function isObjectEqual (a, b) {
if ( a === void 0 ) a = {};
if ( b === void 0 ) b = {};
var aKeys = Object.keys(a);
var bKeys = Object.keys(b);
if (aKeys.length !== bKeys.length) {
return false
}
return aKeys.every(function (key) {
var aVal = a[key];
var bVal = b[key];
// check nested equality
if (typeof aVal === 'object' && typeof bVal === 'object') {
return isObjectEqual(aVal, bVal)
}
return String(aVal) === String(bVal)
})
}
function isIncludedRoute (current, target) {
return (
current.path.replace(trailingSlashRE, '/').indexOf(
target.path.replace(trailingSlashRE, '/')
) === 0 &&
(!target.hash || current.hash === target.hash) &&
queryIncludes(current.query, target.query)
)
}
function queryIncludes (current, target) {
for (var key in target) {
if (!(key in current)) {
return false
}
}
return true
}
/* */
// work around weird flow bug
var toTypes = [String, Object];
var eventTypes = [String, Array];
var Link = {
name: 'router-link',
props: {
to: {
type: toTypes,
required: true
},
tag: {
type: String,
default: 'a'
},
exact: Boolean,
append: Boolean,
replace: Boolean,
activeClass: String,
exactActiveClass: String,
event: {
type: eventTypes,
default: 'click'
}
},
render: function render (h) {
var this$1 = this;
var router = this.$router;
var current = this.$route;
var ref = router.resolve(this.to, current, this.append);
var location = ref.location;
var route = ref.route;
var href = ref.href;
var classes = {};
var globalActiveClass = router.options.linkActiveClass;
var globalExactActiveClass = router.options.linkExactActiveClass;
// Support global empty active class
var activeClassFallback = globalActiveClass == null
? 'router-link-active'
: globalActiveClass;
var exactActiveClassFallback = globalExactActiveClass == null
? 'router-link-exact-active'
: globalExactActiveClass;
var activeClass = this.activeClass == null
? activeClassFallback
: this.activeClass;
var exactActiveClass = this.exactActiveClass == null
? exactActiveClassFallback
: this.exactActiveClass;
var compareTarget = location.path
? createRoute(null, location, null, router)
: route;
classes[exactActiveClass] = isSameRoute(current, compareTarget);
classes[activeClass] = this.exact
? classes[exactActiveClass]
: isIncludedRoute(current, compareTarget);
var handler = function (e) {
if (guardEvent(e)) {
if (this$1.replace) {
router.replace(location);
} else {
router.push(location);
}
}
};
var on = { click: guardEvent };
if (Array.isArray(this.event)) {
this.event.forEach(function (e) { on[e] = handler; });
} else {
on[this.event] = handler;
}
var data = {
class: classes
};
if (this.tag === 'a') {
data.on = on;
data.attrs = { href: href };
} else {
// find the first <a> child and apply listener and href
var a = findAnchor(this.$slots.default);
if (a) {
// in case the <a> is a static node
a.isStatic = false;
var extend = _Vue.util.extend;
var aData = a.data = extend({}, a.data);
aData.on = on;
var aAttrs = a.data.attrs = extend({}, a.data.attrs);
aAttrs.href = href;
} else {
// doesn't have <a> child, apply listener to self
data.on = on;
}
}
return h(this.tag, data, this.$slots.default)
}
};
function guardEvent (e) {
// don't redirect with control keys
if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) { return }
// don't redirect when preventDefault called
if (e.defaultPrevented) { return }
// don't redirect on right click
if (e.button !== undefined && e.button !== 0) { return }
// don't redirect if `target="_blank"`
if (e.currentTarget && e.currentTarget.getAttribute) {
var target = e.currentTarget.getAttribute('target');
if (/\b_blank\b/i.test(target)) { return }
}
// this may be a Weex event which doesn't have this method
if (e.preventDefault) {
e.preventDefault();
}
return true
}
function findAnchor (children) {
if (children) {
var child;
for (var i = 0; i < children.length; i++) {
child = children[i];
if (child.tag === 'a') {
return child
}
if (child.children && (child = findAnchor(child.children))) {
return child
}
}
}
}
var _Vue;
function install (Vue) {
if (install.installed) { return }
install.installed = true;
_Vue = Vue;
var isDef = function (v) { return v !== undefined; };
var registerInstance = function (vm, callVal) {
var i = vm.$options._parentVnode;
if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {
i(vm, callVal);
}
};
Vue.mixin({
beforeCreate: function beforeCreate () {
if (isDef(this.$options.router)) {
this._routerRoot = this;
this._router = this.$options.router;
this._router.init(this);
Vue.util.defineReactive(this, '_route', this._router.history.current);
} else {
this._routerRoot = (this.$parent && this.$parent._routerRoot) || this;
}
registerInstance(this, this);
},
destroyed: function destroyed () {
registerInstance(this);
}
});
Object.defineProperty(Vue.prototype, '$router', {
get: function get () { return this._routerRoot._router }
});
Object.defineProperty(Vue.prototype, '$route', {
get: function get () { return this._routerRoot._route }
});
Vue.component('router-view', View);
Vue.component('router-link', Link);
var strats = Vue.config.optionMergeStrategies;
// use the same hook merging strategy for route hooks
strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;
}
/* */
var inBrowser = typeof window !== 'undefined';
/* */
function resolvePath (
relative,
base,
append
) {
var firstChar = relative.charAt(0);
if (firstChar === '/') {
return relative
}
if (firstChar === '?' || firstChar === '#') {
return base + relative
}
var stack = base.split('/');
// remove trailing segment if:
// - not appending
// - appending to trailing slash (last segment is empty)
if (!append || !stack[stack.length - 1]) {
stack.pop();
}
// resolve relative path
var segments = relative.replace(/^\//, '').split('/');
for (var i = 0; i < segments.length; i++) {
var segment = segments[i];
if (segment === '..') {
stack.pop();
} else if (segment !== '.') {
stack.push(segment);
}
}
// ensure leading slash
if (stack[0] !== '') {
stack.unshift('');
}
return stack.join('/')
}
function parsePath (path) {
var hash = '';
var query = '';
var hashIndex = path.indexOf('#');
if (hashIndex >= 0) {
hash = path.slice(hashIndex);
path = path.slice(0, hashIndex);
}
var queryIndex = path.indexOf('?');
if (queryIndex >= 0) {
query = path.slice(queryIndex + 1);
path = path.slice(0, queryIndex);
}
return {
path: path,
query: query,
hash: hash
}
}
function cleanPath (path) {
return path.replace(/\/\//g, '/')
}
var index$1 = Array.isArray || function (arr) {
return Object.prototype.toString.call(arr) == '[object Array]';
};
/**
* Expose `pathToRegexp`.
*/
var index = pathToRegexp;
var parse_1 = parse;
var compile_1 = compile;
var tokensToFunction_1 = tokensToFunction;
var tokensToRegExp_1 = tokensToRegExp;
/**
* The main path matching regexp utility.
*
* @type {RegExp}
*/
var PATH_REGEXP = new RegExp([
// Match escaped characters that would otherwise appear in future matches.
// This allows the user to escape special characters that won't transform.
'(\\\\.)',
// Match Express-style parameters and un-named parameters with a prefix
// and optional suffixes. Matches appear as:
//
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
].join('|'), 'g');
/**
* Parse a string for the raw tokens.
*
* @param {string} str
* @param {Object=} options
* @return {!Array}
*/
function parse (str, options) {
var tokens = [];
var key = 0;
var index = 0;
var path = '';
var defaultDelimiter = options && options.delimiter || '/';
var res;
while ((res = PATH_REGEXP.exec(str)) != null) {
var m = res[0];
var escaped = res[1];
var offset = res.index;
path += str.slice(index, offset);
index = offset + m.length;
// Ignore already escaped sequences.
if (escaped) {
path += escaped[1];
continue
}
var next = str[index];
var prefix = res[2];
var name = res[3];
var capture = res[4];
var group = res[5];
var modifier = res[6];
var asterisk = res[7];
// Push the current path onto the tokens.
if (path) {
tokens.push(path);
path = '';
}
var partial = prefix != null && next != null && next !== prefix;
var repeat = modifier === '+' || modifier === '*';
var optional = modifier === '?' || modifier === '*';
var delimiter = res[2] || defaultDelimiter;
var pattern = capture || group;
tokens.push({
name: name || key++,
prefix: prefix || '',
delimiter: delimiter,
optional: optional,
repeat: repeat,
partial: partial,
asterisk: !!asterisk,
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
});
}
// Match any characters still remaining.
if (index < str.length) {
path += str.substr(index);
}
// If the path exists, push it onto the end.
if (path) {
tokens.push(path);
}
return tokens
}
/**
* Compile a string to a template function for the path.
*
* @param {string} str
* @param {Object=} options
* @return {!function(Object=, Object=)}
*/
function compile (str, options) {
return tokensToFunction(parse(str, options))
}
/**
* Prettier encoding of URI path segments.
*
* @param {string}
* @return {string}
*/
function encodeURIComponentPretty (str) {
return encodeURI(str).replace(/[\/?#]/g, function (c) {
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
})
}
/**
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
*
* @param {string}
* @return {string}
*/
function encodeAsterisk (str) {
return encodeURI(str).replace(/[?#]/g, function (c) {
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
})
}
/**
* Expose a method for transforming tokens into the path function.
*/
function tokensToFunction (tokens) {
// Compile all the tokens into regexps.
var matches = new Array(tokens.length);
// Compile all the patterns before compilation.
for (var i = 0; i < tokens.length; i++) {
if (typeof tokens[i] === 'object') {
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$');
}
}
return function (obj, opts) {
var path = '';
var data = obj || {};
var options = opts || {};
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i];
if (typeof token === 'string') {
path += token;
continue
}
var value = data[token.name];
var segment;
if (value == null) {
if (token.optional) {
// Prepend partial segment prefixes.
if (token.partial) {
path += token.prefix;
}
continue
} else {
throw new TypeError('Expected "' + token.name + '" to be defined')
}
}
if (index$1(value)) {
if (!token.repeat) {
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
}
if (value.length === 0) {
if (token.optional) {
continue
} else {
throw new TypeError('Expected "' + token.name + '" to not be empty')
}
}
for (var j = 0; j < value.length; j++) {
segment = encode(value[j]);
if (!matches[i].test(segment)) {
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
}
path += (j === 0 ? token.prefix : token.delimiter) + segment;
}
continue
}
segment = token.asterisk ? encodeAsterisk(value) : encode(value);
if (!matches[i].test(segment)) {
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
}
path += token.prefix + segment;
}
return path
}
}
/**
* Escape a regular expression string.
*
* @param {string} str
* @return {string}
*/
function escapeString (str) {
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
}
/**
* Escape the capturing group by escaping special characters and meaning.
*
* @param {string} group
* @return {string}
*/
function escapeGroup (group) {
return group.replace(/([=!:$\/()])/g, '\\$1')
}
/**
* Attach the keys as a property of the regexp.
*
* @param {!RegExp} re
* @param {Array} keys
* @return {!RegExp}
*/
function attachKeys (re, keys) {
re.keys = keys;
return re
}
/**
* Get the flags for a regexp from the options.
*
* @param {Object} options
* @return {string}
*/
function flags (options) {
return options.sensitive ? '' : 'i'
}
/**
* Pull out keys from a regexp.
*
* @param {!RegExp} path
* @param {!Array} keys
* @return {!RegExp}
*/
function regexpToRegexp (path, keys) {
// Use a negative lookahead to match only capturing groups.
var groups = path.source.match(/\((?!\?)/g);
if (groups) {
for (var i = 0; i < groups.length; i++) {
keys.push({
name: i,
prefix: null,
delimiter: null,
optional: false,
repeat: false,
partial: false,
asterisk: false,
pattern: null
});
}
}
return attachKeys(path, keys)
}
/**
* Transform an array into a regexp.
*
* @param {!Array} path
* @param {Array} keys
* @param {!Object} options
* @return {!RegExp}
*/
function arrayToRegexp (path, keys, options) {
var parts = [];
for (var i = 0; i < path.length; i++) {
parts.push(pathToRegexp(path[i], keys, options).source);
}
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));
return attachKeys(regexp, keys)
}
/**
* Create a path regexp from string input.
*
* @param {string} path
* @param {!Array} keys
* @param {!Object} options
* @return {!RegExp}
*/
function stringToRegexp (path, keys, options) {
return tokensToRegExp(parse(path, options), keys, options)
}
/**
* Expose a function for taking tokens and returning a RegExp.
*
* @param {!Array} tokens
* @param {(Array|Object)=} keys
* @param {Object=} options
* @return {!RegExp}
*/
function tokensToRegExp (tokens, keys, options) {
if (!index$1(keys)) {
options = /** @type {!Object} */ (keys || options);
keys = [];
}
options = options || {};
var strict = options.strict;
var end = options.end !== false;
var route = '';
// Iterate over the tokens and create our regexp string.
for (var i = 0; i < tokens.length; i++) {
var token = tokens[i];
if (typeof token === 'string') {
route += escapeString(token);
} else {
var prefix = escapeString(token.prefix);
var capture = '(?:' + token.pattern + ')';
keys.push(token);
if (token.repeat) {
capture += '(?:' + prefix + capture + ')*';
}
if (token.optional) {
if (!token.partial) {
capture = '(?:' + prefix + '(' + capture + '))?';
} else {
capture = prefix + '(' + capture + ')?';
}
} else {
capture = prefix + '(' + capture + ')';
}
route += capture;
}
}
var delimiter = escapeString(options.delimiter || '/');
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
// In non-strict mode we allow a slash at the end of match. If the path to
// match already ends with a slash, we remove it for consistency. The slash
// is valid at the end of a path match, not in the middle. This is important
// in non-ending mode, where "/test/" shouldn't match "/test//route".
if (!strict) {
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';
}
if (end) {
route += '$';
} else {
// In non-ending mode, we need the capturing groups to match as much as
// possible by using a positive lookahead to the end or next path segment.
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';
}
return attachKeys(new RegExp('^' + route, flags(options)), keys)
}
/**
* Normalize the given path string, returning a regular expression.
*
* An empty array can be passed in for the keys, which will hold the
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
*
* @param {(string|RegExp|Array)} path
* @param {(Array|Object)=} keys
* @param {Object=} options
* @return {!RegExp}
*/
function pathToRegexp (path, keys, options) {
if (!index$1(keys)) {
options = /** @type {!Object} */ (keys || options);
keys = [];
}
options = options || {};
if (path instanceof RegExp) {
return regexpToRegexp(path, /** @type {!Array} */ (keys))
}
if (index$1(path)) {
return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
}
return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
}
index.parse = parse_1;
index.compile = compile_1;
index.tokensToFunction = tokensToFunction_1;
index.tokensToRegExp = tokensToRegExp_1;
/* */
var regexpCompileCache = Object.create(null);
function fillParams (
path,
params,
routeMsg
) {
try {
var filler =
regexpCompileCache[path] ||
(regexpCompileCache[path] = index.compile(path));
return filler(params || {}, { pretty: true })
} catch (e) {
if (true) {
warn(false, ("missing param for " + routeMsg + ": " + (e.message)));
}
return ''
}
}
/* */
function createRouteMap (
routes,
oldPathList,
oldPathMap,
oldNameMap
) {
// the path list is used to control path matching priority
var pathList = oldPathList || [];
var pathMap = oldPathMap || Object.create(null);
var nameMap = oldNameMap || Object.create(null);
routes.forEach(function (route) {
addRouteRecord(pathList, pathMap, nameMap, route);
});
// ensure wildcard routes are always at the end
for (var i = 0, l = pathList.length; i < l; i++) {
if (pathList[i] === '*') {
pathList.push(pathList.splice(i, 1)[0]);
l--;
i--;
}
}
return {
pathList: pathList,
pathMap: pathMap,
nameMap: nameMap
}
}
function addRouteRecord (
pathList,
pathMap,
nameMap,
route,
parent,
matchAs
) {
var path = route.path;
var name = route.name;
if (true) {
assert(path != null, "\"path\" is required in a route configuration.");
assert(
typeof route.component !== 'string',
"route config \"component\" for path: " + (String(path || name)) + " cannot be a " +
"string id. Use an actual component instead."
);
}
var normalizedPath = normalizePath(path, parent);
var pathToRegexpOptions = route.pathToRegexpOptions || {};
if (typeof route.caseSensitive === 'boolean') {
pathToRegexpOptions.sensitive = route.caseSensitive;
}
var record = {
path: normalizedPath,
regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),
components: route.components || { default: route.component },
instances: {},
name: name,
parent: parent,
matchAs: matchAs,
redirect: route.redirect,
beforeEnter: route.beforeEnter,
meta: route.meta || {},
props: route.props == null
? {}
: route.components
? route.props
: { default: route.props }
};
if (route.children) {
// Warn if route is named, does not redirect and has a default child route.
// If users navigate to this route by name, the default child will
// not be rendered (GH Issue #629)
if (true) {
if (route.name && !route.redirect && route.children.some(function (child) { return /^\/?$/.test(child.path); })) {
warn(
false,
"Named Route '" + (route.name) + "' has a default child route. " +
"When navigating to this named route (:to=\"{name: '" + (route.name) + "'\"), " +
"the default child route will not be rendered. Remove the name from " +
"this route and use the name of the default child route for named " +
"links instead."
);
}
}
route.children.forEach(function (child) {
var childMatchAs = matchAs
? cleanPath((matchAs + "/" + (child.path)))
: undefined;
addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);
});
}
if (route.alias !== undefined) {
var aliases = Array.isArray(route.alias)
? route.alias
: [route.alias];
aliases.forEach(function (alias) {
var aliasRoute = {
path: alias,
children: route.children
};
addRouteRecord(
pathList,
pathMap,
nameMap,
aliasRoute,
parent,
record.path || '/' // matchAs
);
});
}
if (!pathMap[record.path]) {
pathList.push(record.path);
pathMap[record.path] = record;
}
if (name) {
if (!nameMap[name]) {
nameMap[name] = record;
} else if ("development" !== 'production' && !matchAs) {
warn(
false,
"Duplicate named routes definition: " +
"{ name: \"" + name + "\", path: \"" + (record.path) + "\" }"
);
}
}
}
function compileRouteRegex (path, pathToRegexpOptions) {
var regex = index(path, [], pathToRegexpOptions);
if (true) {
var keys = {};
regex.keys.forEach(function (key) {
warn(!keys[key.name], ("Duplicate param keys in route with path: \"" + path + "\""));
keys[key.name] = true;
});
}
return regex
}
function normalizePath (path, parent) {
path = path.replace(/\/$/, '');
if (path[0] === '/') { return path }
if (parent == null) { return path }
return cleanPath(((parent.path) + "/" + path))
}
/* */
function normalizeLocation (
raw,
current,
append,
router
) {
var next = typeof raw === 'string' ? { path: raw } : raw;
// named target
if (next.name || next._normalized) {
return next
}
// relative params
if (!next.path && next.params && current) {
next = assign({}, next);
next._normalized = true;
var params = assign(assign({}, current.params), next.params);
if (current.name) {
next.name = current.name;
next.params = params;
} else if (current.matched.length) {
var rawPath = current.matched[current.matched.length - 1].path;
next.path = fillParams(rawPath, params, ("path " + (current.path)));
} else if (true) {
warn(false, "relative params navigation requires a current route.");
}
return next
}
var parsedPath = parsePath(next.path || '');
var basePath = (current && current.path) || '/';
var path = parsedPath.path
? resolvePath(parsedPath.path, basePath, append || next.append)
: basePath;
var query = resolveQuery(
parsedPath.query,
next.query,
router && router.options.parseQuery
);
var hash = next.hash || parsedPath.hash;
if (hash && hash.charAt(0) !== '#') {
hash = "#" + hash;
}
return {
_normalized: true,
path: path,
query: query,
hash: hash
}
}
function assign (a, b) {
for (var key in b) {
a[key] = b[key];
}
return a
}
/* */
function createMatcher (
routes,
router
) {
var ref = createRouteMap(routes);
var pathList = ref.pathList;
var pathMap = ref.pathMap;
var nameMap = ref.nameMap;
function addRoutes (routes) {
createRouteMap(routes, pathList, pathMap, nameMap);
}
function match (
raw,
currentRoute,
redirectedFrom
) {
var location = normalizeLocation(raw, currentRoute, false, router);
var name = location.name;
if (name) {
var record = nameMap[name];
if (true) {
warn(record, ("Route with name '" + name + "' does not exist"));
}
if (!record) { return _createRoute(null, location) }
var paramNames = record.regex.keys
.filter(function (key) { return !key.optional; })
.map(function (key) { return key.name; });
if (typeof location.params !== 'object') {
location.params = {};
}
if (currentRoute && typeof currentRoute.params === 'object') {
for (var key in currentRoute.params) {
if (!(key in location.params) && paramNames.indexOf(key) > -1) {
location.params[key] = currentRoute.params[key];
}
}
}
if (record) {
location.path = fillParams(record.path, location.params, ("named route \"" + name + "\""));
return _createRoute(record, location, redirectedFrom)
}
} else if (location.path) {
location.params = {};
for (var i = 0; i < pathList.length; i++) {
var path = pathList[i];
var record$1 = pathMap[path];
if (matchRoute(record$1.regex, location.path, location.params)) {
return _createRoute(record$1, location, redirectedFrom)
}
}
}
// no match
return _createRoute(null, location)
}
function redirect (
record,
location
) {
var originalRedirect = record.redirect;
var redirect = typeof originalRedirect === 'function'
? originalRedirect(createRoute(record, location, null, router))
: originalRedirect;
if (typeof redirect === 'string') {
redirect = { path: redirect };
}
if (!redirect || typeof redirect !== 'object') {
if (true) {
warn(
false, ("invalid redirect option: " + (JSON.stringify(redirect)))
);
}
return _createRoute(null, location)
}
var re = redirect;
var name = re.name;
var path = re.path;
var query = location.query;
var hash = location.hash;
var params = location.params;
query = re.hasOwnProperty('query') ? re.query : query;
hash = re.hasOwnProperty('hash') ? re.hash : hash;
params = re.hasOwnProperty('params') ? re.params : params;
if (name) {
// resolved named direct
var targetRecord = nameMap[name];
if (true) {
assert(targetRecord, ("redirect failed: named route \"" + name + "\" not found."));
}
return match({
_normalized: true,
name: name,
query: query,
hash: hash,
params: params
}, undefined, location)
} else if (path) {
// 1. resolve relative redirect
var rawPath = resolveRecordPath(path, record);
// 2. resolve params
var resolvedPath = fillParams(rawPath, params, ("redirect route with path \"" + rawPath + "\""));
// 3. rematch with existing query and hash
return match({
_normalized: true,
path: resolvedPath,
query: query,
hash: hash
}, undefined, location)
} else {
if (true) {
warn(false, ("invalid redirect option: " + (JSON.stringify(redirect))));
}
return _createRoute(null, location)
}
}
function alias (
record,
location,
matchAs
) {
var aliasedPath = fillParams(matchAs, location.params, ("aliased route with path \"" + matchAs + "\""));
var aliasedMatch = match({
_normalized: true,
path: aliasedPath
});
if (aliasedMatch) {
var matched = aliasedMatch.matched;
var aliasedRecord = matched[matched.length - 1];
location.params = aliasedMatch.params;
return _createRoute(aliasedRecord, location)
}
return _createRoute(null, location)
}
function _createRoute (
record,
location,
redirectedFrom
) {
if (record && record.redirect) {
return redirect(record, redirectedFrom || location)
}
if (record && record.matchAs) {
return alias(record, location, record.matchAs)
}
return createRoute(record, location, redirectedFrom, router)
}
return {
match: match,
addRoutes: addRoutes
}
}
function matchRoute (
regex,
path,
params
) {
var m = path.match(regex);
if (!m) {
return false
} else if (!params) {
return true
}
for (var i = 1, len = m.length; i < len; ++i) {
var key = regex.keys[i - 1];
var val = typeof m[i] === 'string' ? decodeURIComponent(m[i]) : m[i];
if (key) {
params[key.name] = val;
}
}
return true
}
function resolveRecordPath (path, record) {
return resolvePath(path, record.parent ? record.parent.path : '/', true)
}
/* */
var positionStore = Object.create(null);
function setupScroll () {
window.addEventListener('popstate', function (e) {
saveScrollPosition();
if (e.state && e.state.key) {
setStateKey(e.state.key);
}
});
}
function handleScroll (
router,
to,
from,
isPop
) {
if (!router.app) {
return
}
var behavior = router.options.scrollBehavior;
if (!behavior) {
return
}
if (true) {
assert(typeof behavior === 'function', "scrollBehavior must be a function");
}
// wait until re-render finishes before scrolling
router.app.$nextTick(function () {
var position = getScrollPosition();
var shouldScroll = behavior(to, from, isPop ? position : null);
if (!shouldScroll) {
return
}
var isObject = typeof shouldScroll === 'object';
if (isObject && typeof shouldScroll.selector === 'string') {
var el = document.querySelector(shouldScroll.selector);
if (el) {
var offset = shouldScroll.offset && typeof shouldScroll.offset === 'object' ? shouldScroll.offset : {};
offset = normalizeOffset(offset);
position = getElementPosition(el, offset);
} else if (isValidPosition(shouldScroll)) {
position = normalizePosition(shouldScroll);
}
} else if (isObject && isValidPosition(shouldScroll)) {
position = normalizePosition(shouldScroll);
}
if (position) {
window.scrollTo(position.x, position.y);
}
});
}
function saveScrollPosition () {
var key = getStateKey();
if (key) {
positionStore[key] = {
x: window.pageXOffset,
y: window.pageYOffset
};
}
}
function getScrollPosition () {
var key = getStateKey();
if (key) {
return positionStore[key]
}
}
function getElementPosition (el, offset) {
var docEl = document.documentElement;
var docRect = docEl.getBoundingClientRect();
var elRect = el.getBoundingClientRect();
return {
x: elRect.left - docRect.left - offset.x,
y: elRect.top - docRect.top - offset.y
}
}
function isValidPosition (obj) {
return isNumber(obj.x) || isNumber(obj.y)
}
function normalizePosition (obj) {
return {
x: isNumber(obj.x) ? obj.x : window.pageXOffset,
y: isNumber(obj.y) ? obj.y : window.pageYOffset
}
}
function normalizeOffset (obj) {
return {
x: isNumber(obj.x) ? obj.x : 0,
y: isNumber(obj.y) ? obj.y : 0
}
}
function isNumber (v) {
return typeof v === 'number'
}
/* */
var supportsPushState = inBrowser && (function () {
var ua = window.navigator.userAgent;
if (
(ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&
ua.indexOf('Mobile Safari') !== -1 &&
ua.indexOf('Chrome') === -1 &&
ua.indexOf('Windows Phone') === -1
) {
return false
}
return window.history && 'pushState' in window.history
})();
// use User Timing api (if present) for more accurate key precision
var Time = inBrowser && window.performance && window.performance.now
? window.performance
: Date;
var _key = genKey();
function genKey () {
return Time.now().toFixed(3)
}
function getStateKey () {
return _key
}
function setStateKey (key) {
_key = key;
}
function pushState (url, replace) {
saveScrollPosition();
// try...catch the pushState call to get around Safari
// DOM Exception 18 where it limits to 100 pushState calls
var history = window.history;
try {
if (replace) {
history.replaceState({ key: _key }, '', url);
} else {
_key = genKey();
history.pushState({ key: _key }, '', url);
}
} catch (e) {
window.location[replace ? 'replace' : 'assign'](url);
}
}
function replaceState (url) {
pushState(url, true);
}
/* */
function runQueue (queue, fn, cb) {
var step = function (index) {
if (index >= queue.length) {
cb();
} else {
if (queue[index]) {
fn(queue[index], function () {
step(index + 1);
});
} else {
step(index + 1);
}
}
};
step(0);
}
/* */
function resolveAsyncComponents (matched) {
return function (to, from, next) {
var hasAsync = false;
var pending = 0;
var error = null;
flatMapComponents(matched, function (def, _, match, key) {
// if it's a function and doesn't have cid attached,
// assume it's an async component resolve function.
// we are not using Vue's default async resolving mechanism because
// we want to halt the navigation until the incoming component has been
// resolved.
if (typeof def === 'function' && def.cid === undefined) {
hasAsync = true;
pending++;
var resolve = once(function (resolvedDef) {
if (resolvedDef.__esModule && resolvedDef.default) {
resolvedDef = resolvedDef.default;
}
// save resolved on async factory in case it's used elsewhere
def.resolved = typeof resolvedDef === 'function'
? resolvedDef
: _Vue.extend(resolvedDef);
match.components[key] = resolvedDef;
pending--;
if (pending <= 0) {
next();
}
});
var reject = once(function (reason) {
var msg = "Failed to resolve async component " + key + ": " + reason;
"development" !== 'production' && warn(false, msg);
if (!error) {
error = isError(reason)
? reason
: new Error(msg);
next(error);
}
});
var res;
try {
res = def(resolve, reject);
} catch (e) {
reject(e);
}
if (res) {
if (typeof res.then === 'function') {
res.then(resolve, reject);
} else {
// new syntax in Vue 2.3
var comp = res.component;
if (comp && typeof comp.then === 'function') {
comp.then(resolve, reject);
}
}
}
}
});
if (!hasAsync) { next(); }
}
}
function flatMapComponents (
matched,
fn
) {
return flatten(matched.map(function (m) {
return Object.keys(m.components).map(function (key) { return fn(
m.components[key],
m.instances[key],
m, key
); })
}))
}
function flatten (arr) {
return Array.prototype.concat.apply([], arr)
}
// in Webpack 2, require.ensure now also returns a Promise
// so the resolve/reject functions may get called an extra time
// if the user uses an arrow function shorthand that happens to
// return that Promise.
function once (fn) {
var called = false;
return function () {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
if (called) { return }
called = true;
return fn.apply(this, args)
}
}
/* */
var History = function History (router, base) {
this.router = router;
this.base = normalizeBase(base);
// start with a route object that stands for "nowhere"
this.current = START;
this.pending = null;
this.ready = false;
this.readyCbs = [];
this.readyErrorCbs = [];
this.errorCbs = [];
};
History.prototype.listen = function listen (cb) {
this.cb = cb;
};
History.prototype.onReady = function onReady (cb, errorCb) {
if (this.ready) {
cb();
} else {
this.readyCbs.push(cb);
if (errorCb) {
this.readyErrorCbs.push(errorCb);
}
}
};
History.prototype.onError = function onError (errorCb) {
this.errorCbs.push(errorCb);
};
History.prototype.transitionTo = function transitionTo (location, onComplete, onAbort) {
var this$1 = this;
var route = this.router.match(location, this.current);
this.confirmTransition(route, function () {
this$1.updateRoute(route);
onComplete && onComplete(route);
this$1.ensureURL();
// fire ready cbs once
if (!this$1.ready) {
this$1.ready = true;
this$1.readyCbs.forEach(function (cb) { cb(route); });
}
}, function (err) {
if (onAbort) {
onAbort(err);
}
if (err && !this$1.ready) {
this$1.ready = true;
this$1.readyErrorCbs.forEach(function (cb) { cb(err); });
}
});
};
History.prototype.confirmTransition = function confirmTransition (route, onComplete, onAbort) {
var this$1 = this;
var current = this.current;
var abort = function (err) {
if (isError(err)) {
if (this$1.errorCbs.length) {
this$1.errorCbs.forEach(function (cb) { cb(err); });
} else {
warn(false, 'uncaught error during route navigation:');
console.error(err);
}
}
onAbort && onAbort(err);
};
if (
isSameRoute(route, current) &&
// in the case the route map has been dynamically appended to
route.matched.length === current.matched.length
) {
this.ensureURL();
return abort()
}
var ref = resolveQueue(this.current.matched, route.matched);
var updated = ref.updated;
var deactivated = ref.deactivated;
var activated = ref.activated;
var queue = [].concat(
// in-component leave guards
extractLeaveGuards(deactivated),
// global before hooks
this.router.beforeHooks,
// in-component update hooks
extractUpdateHooks(updated),
// in-config enter guards
activated.map(function (m) { return m.beforeEnter; }),
// async components
resolveAsyncComponents(activated)
);
this.pending = route;
var iterator = function (hook, next) {
if (this$1.pending !== route) {
return abort()
}
try {
hook(route, current, function (to) {
if (to === false || isError(to)) {
// next(false) -> abort navigation, ensure current URL
this$1.ensureURL(true);
abort(to);
} else if (
typeof to === 'string' ||
(typeof to === 'object' && (
typeof to.path === 'string' ||
typeof to.name === 'string'
))
) {
// next('/') or next({ path: '/' }) -> redirect
abort();
if (typeof to === 'object' && to.replace) {
this$1.replace(to);
} else {
this$1.push(to);
}
} else {
// confirm transition and pass on the value
next(to);
}
});
} catch (e) {
abort(e);
}
};
runQueue(queue, iterator, function () {
var postEnterCbs = [];
var isValid = function () { return this$1.current === route; };
// wait until async components are resolved before
// extracting in-component enter guards
var enterGuards = extractEnterGuards(activated, postEnterCbs, isValid);
var queue = enterGuards.concat(this$1.router.resolveHooks);
runQueue(queue, iterator, function () {
if (this$1.pending !== route) {
return abort()
}
this$1.pending = null;
onComplete(route);
if (this$1.router.app) {
this$1.router.app.$nextTick(function () {
postEnterCbs.forEach(function (cb) { cb(); });
});
}
});
});
};
History.prototype.updateRoute = function updateRoute (route) {
var prev = this.current;
this.current = route;
this.cb && this.cb(route);
this.router.afterHooks.forEach(function (hook) {
hook && hook(route, prev);
});
};
function normalizeBase (base) {
if (!base) {
if (inBrowser) {
// respect <base> tag
var baseEl = document.querySelector('base');
base = (baseEl && baseEl.getAttribute('href')) || '/';
// strip full URL origin
base = base.replace(/^https?:\/\/[^\/]+/, '');
} else {
base = '/';
}
}
// make sure there's the starting slash
if (base.charAt(0) !== '/') {
base = '/' + base;
}
// remove trailing slash
return base.replace(/\/$/, '')
}
function resolveQueue (
current,
next
) {
var i;
var max = Math.max(current.length, next.length);
for (i = 0; i < max; i++) {
if (current[i] !== next[i]) {
break
}
}
return {
updated: next.slice(0, i),
activated: next.slice(i),
deactivated: current.slice(i)
}
}
function extractGuards (
records,
name,
bind,
reverse
) {
var guards = flatMapComponents(records, function (def, instance, match, key) {
var guard = extractGuard(def, name);
if (guard) {
return Array.isArray(guard)
? guard.map(function (guard) { return bind(guard, instance, match, key); })
: bind(guard, instance, match, key)
}
});
return flatten(reverse ? guards.reverse() : guards)
}
function extractGuard (
def,
key
) {
if (typeof def !== 'function') {
// extend now so that global mixins are applied.
def = _Vue.extend(def);
}
return def.options[key]
}
function extractLeaveGuards (deactivated) {
return extractGuards(deactivated, 'beforeRouteLeave', bindGuard, true)
}
function extractUpdateHooks (updated) {
return extractGuards(updated, 'beforeRouteUpdate', bindGuard)
}
function bindGuard (guard, instance) {
if (instance) {
return function boundRouteGuard () {
return guard.apply(instance, arguments)
}
}
}
function extractEnterGuards (
activated,
cbs,
isValid
) {
return extractGuards(activated, 'beforeRouteEnter', function (guard, _, match, key) {
return bindEnterGuard(guard, match, key, cbs, isValid)
})
}
function bindEnterGuard (
guard,
match,
key,
cbs,
isValid
) {
return function routeEnterGuard (to, from, next) {
return guard(to, from, function (cb) {
next(cb);
if (typeof cb === 'function') {
cbs.push(function () {
// #750
// if a router-view is wrapped with an out-in transition,
// the instance may not have been registered at this time.
// we will need to poll for registration until current route
// is no longer valid.
poll(cb, match.instances, key, isValid);
});
}
})
}
}
function poll (
cb, // somehow flow cannot infer this is a function
instances,
key,
isValid
) {
if (instances[key]) {
cb(instances[key]);
} else if (isValid()) {
setTimeout(function () {
poll(cb, instances, key, isValid);
}, 16);
}
}
/* */
var HTML5History = (function (History$$1) {
function HTML5History (router, base) {
var this$1 = this;
History$$1.call(this, router, base);
var expectScroll = router.options.scrollBehavior;
if (expectScroll) {
setupScroll();
}
window.addEventListener('popstate', function (e) {
var current = this$1.current;
this$1.transitionTo(getLocation(this$1.base), function (route) {
if (expectScroll) {
handleScroll(router, route, current, true);
}
});
});
}
if ( History$$1 ) HTML5History.__proto__ = History$$1;
HTML5History.prototype = Object.create( History$$1 && History$$1.prototype );
HTML5History.prototype.constructor = HTML5History;
HTML5History.prototype.go = function go (n) {
window.history.go(n);
};
HTML5History.prototype.push = function push (location, onComplete, onAbort) {
var this$1 = this;
var ref = this;
var fromRoute = ref.current;
this.transitionTo(location, function (route) {
pushState(cleanPath(this$1.base + route.fullPath));
handleScroll(this$1.router, route, fromRoute, false);
onComplete && onComplete(route);
}, onAbort);
};
HTML5History.prototype.replace = function replace (location, onComplete, onAbort) {
var this$1 = this;
var ref = this;
var fromRoute = ref.current;
this.transitionTo(location, function (route) {
replaceState(cleanPath(this$1.base + route.fullPath));
handleScroll(this$1.router, route, fromRoute, false);
onComplete && onComplete(route);
}, onAbort);
};
HTML5History.prototype.ensureURL = function ensureURL (push) {
if (getLocation(this.base) !== this.current.fullPath) {
var current = cleanPath(this.base + this.current.fullPath);
push ? pushState(current) : replaceState(current);
}
};
HTML5History.prototype.getCurrentLocation = function getCurrentLocation () {
return getLocation(this.base)
};
return HTML5History;
}(History));
function getLocation (base) {
var path = window.location.pathname;
if (base && path.indexOf(base) === 0) {
path = path.slice(base.length);
}
return (path || '/') + window.location.search + window.location.hash
}
/* */
var HashHistory = (function (History$$1) {
function HashHistory (router, base, fallback) {
History$$1.call(this, router, base);
// check history fallback deeplinking
if (fallback && checkFallback(this.base)) {
return
}
ensureSlash();
}
if ( History$$1 ) HashHistory.__proto__ = History$$1;
HashHistory.prototype = Object.create( History$$1 && History$$1.prototype );
HashHistory.prototype.constructor = HashHistory;
// this is delayed until the app mounts
// to avoid the hashchange listener being fired too early
HashHistory.prototype.setupListeners = function setupListeners () {
var this$1 = this;
window.addEventListener('hashchange', function () {
if (!ensureSlash()) {
return
}
this$1.transitionTo(getHash(), function (route) {
replaceHash(route.fullPath);
});
});
};
HashHistory.prototype.push = function push (location, onComplete, onAbort) {
this.transitionTo(location, function (route) {
pushHash(route.fullPath);
onComplete && onComplete(route);
}, onAbort);
};
HashHistory.prototype.replace = function replace (location, onComplete, onAbort) {
this.transitionTo(location, function (route) {
replaceHash(route.fullPath);
onComplete && onComplete(route);
}, onAbort);
};
HashHistory.prototype.go = function go (n) {
window.history.go(n);
};
HashHistory.prototype.ensureURL = function ensureURL (push) {
var current = this.current.fullPath;
if (getHash() !== current) {
push ? pushHash(current) : replaceHash(current);
}
};
HashHistory.prototype.getCurrentLocation = function getCurrentLocation () {
return getHash()
};
return HashHistory;
}(History));
function checkFallback (base) {
var location = getLocation(base);
if (!/^\/#/.test(location)) {
window.location.replace(
cleanPath(base + '/#' + location)
);
return true
}
}
function ensureSlash () {
var path = getHash();
if (path.charAt(0) === '/') {
return true
}
replaceHash('/' + path);
return false
}
function getHash () {
// We can't use window.location.hash here because it's not
// consistent across browsers - Firefox will pre-decode it!
var href = window.location.href;
var index = href.indexOf('#');
return index === -1 ? '' : href.slice(index + 1)
}
function pushHash (path) {
window.location.hash = path;
}
function replaceHash (path) {
var href = window.location.href;
var i = href.indexOf('#');
var base = i >= 0 ? href.slice(0, i) : href;
window.location.replace((base + "#" + path));
}
/* */
var AbstractHistory = (function (History$$1) {
function AbstractHistory (router, base) {
History$$1.call(this, router, base);
this.stack = [];
this.index = -1;
}
if ( History$$1 ) AbstractHistory.__proto__ = History$$1;
AbstractHistory.prototype = Object.create( History$$1 && History$$1.prototype );
AbstractHistory.prototype.constructor = AbstractHistory;
AbstractHistory.prototype.push = function push (location, onComplete, onAbort) {
var this$1 = this;
this.transitionTo(location, function (route) {
this$1.stack = this$1.stack.slice(0, this$1.index + 1).concat(route);
this$1.index++;
onComplete && onComplete(route);
}, onAbort);
};
AbstractHistory.prototype.replace = function replace (location, onComplete, onAbort) {
var this$1 = this;
this.transitionTo(location, function (route) {
this$1.stack = this$1.stack.slice(0, this$1.index).concat(route);
onComplete && onComplete(route);
}, onAbort);
};
AbstractHistory.prototype.go = function go (n) {
var this$1 = this;
var targetIndex = this.index + n;
if (targetIndex < 0 || targetIndex >= this.stack.length) {
return
}
var route = this.stack[targetIndex];
this.confirmTransition(route, function () {
this$1.index = targetIndex;
this$1.updateRoute(route);
});
};
AbstractHistory.prototype.getCurrentLocation = function getCurrentLocation () {
var current = this.stack[this.stack.length - 1];
return current ? current.fullPath : '/'
};
AbstractHistory.prototype.ensureURL = function ensureURL () {
// noop
};
return AbstractHistory;
}(History));
/* */
var VueRouter = function VueRouter (options) {
if ( options === void 0 ) options = {};
this.app = null;
this.apps = [];
this.options = options;
this.beforeHooks = [];
this.resolveHooks = [];
this.afterHooks = [];
this.matcher = createMatcher(options.routes || [], this);
var mode = options.mode || 'hash';
this.fallback = mode === 'history' && !supportsPushState && options.fallback !== false;
if (this.fallback) {
mode = 'hash';
}
if (!inBrowser) {
mode = 'abstract';
}
this.mode = mode;
switch (mode) {
case 'history':
this.history = new HTML5History(this, options.base);
break
case 'hash':
this.history = new HashHistory(this, options.base, this.fallback);
break
case 'abstract':
this.history = new AbstractHistory(this, options.base);
break
default:
if (true) {
assert(false, ("invalid mode: " + mode));
}
}
};
var prototypeAccessors = { currentRoute: {} };
VueRouter.prototype.match = function match (
raw,
current,
redirectedFrom
) {
return this.matcher.match(raw, current, redirectedFrom)
};
prototypeAccessors.currentRoute.get = function () {
return this.history && this.history.current
};
VueRouter.prototype.init = function init (app /* Vue component instance */) {
var this$1 = this;
"development" !== 'production' && assert(
install.installed,
"not installed. Make sure to call `Vue.use(VueRouter)` " +
"before creating root instance."
);
this.apps.push(app);
// main app already initialized.
if (this.app) {
return
}
this.app = app;
var history = this.history;
if (history instanceof HTML5History) {
history.transitionTo(history.getCurrentLocation());
} else if (history instanceof HashHistory) {
var setupHashListener = function () {
history.setupListeners();
};
history.transitionTo(
history.getCurrentLocation(),
setupHashListener,
setupHashListener
);
}
history.listen(function (route) {
this$1.apps.forEach(function (app) {
app._route = route;
});
});
};
VueRouter.prototype.beforeEach = function beforeEach (fn) {
return registerHook(this.beforeHooks, fn)
};
VueRouter.prototype.beforeResolve = function beforeResolve (fn) {
return registerHook(this.resolveHooks, fn)
};
VueRouter.prototype.afterEach = function afterEach (fn) {
return registerHook(this.afterHooks, fn)
};
VueRouter.prototype.onReady = function onReady (cb, errorCb) {
this.history.onReady(cb, errorCb);
};
VueRouter.prototype.onError = function onError (errorCb) {
this.history.onError(errorCb);
};
VueRouter.prototype.push = function push (location, onComplete, onAbort) {
this.history.push(location, onComplete, onAbort);
};
VueRouter.prototype.replace = function replace (location, onComplete, onAbort) {
this.history.replace(location, onComplete, onAbort);
};
VueRouter.prototype.go = function go (n) {
this.history.go(n);
};
VueRouter.prototype.back = function back () {
this.go(-1);
};
VueRouter.prototype.forward = function forward () {
this.go(1);
};
VueRouter.prototype.getMatchedComponents = function getMatchedComponents (to) {
var route = to
? to.matched
? to
: this.resolve(to).route
: this.currentRoute;
if (!route) {
return []
}
return [].concat.apply([], route.matched.map(function (m) {
return Object.keys(m.components).map(function (key) {
return m.components[key]
})
}))
};
VueRouter.prototype.resolve = function resolve (
to,
current,
append
) {
var location = normalizeLocation(
to,
current || this.history.current,
append,
this
);
var route = this.match(location, current);
var fullPath = route.redirectedFrom || route.fullPath;
var base = this.history.base;
var href = createHref(base, fullPath, this.mode);
return {
location: location,
route: route,
href: href,
// for backwards compat
normalizedTo: location,
resolved: route
}
};
VueRouter.prototype.addRoutes = function addRoutes (routes) {
this.matcher.addRoutes(routes);
if (this.history.current !== START) {
this.history.transitionTo(this.history.getCurrentLocation());
}
};
Object.defineProperties( VueRouter.prototype, prototypeAccessors );
function registerHook (list, fn) {
list.push(fn);
return function () {
var i = list.indexOf(fn);
if (i > -1) { list.splice(i, 1); }
}
}
function createHref (base, fullPath, mode) {
var path = mode === 'hash' ? '#' + fullPath : fullPath;
return base ? cleanPath(base + '/' + path) : path
}
VueRouter.install = install;
VueRouter.version = '2.7.0';
if (inBrowser && window.Vue) {
window.Vue.use(VueRouter);
}
/* harmony default export */ __webpack_exports__["a"] = (VueRouter);
/***/ }),
/***/ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-660cdc14\",\"scoped\":false,\"hasInlineConfig\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./resources/assets/js/App.vue":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-660cdc14\",\"scoped\":false,\"hasInlineConfig\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./resources/assets/js/App.vue");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__("./node_modules/vue-style-loader/lib/addStylesClient.js")("3086dd91", content, false);
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../node_modules/css-loader/index.js!../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-660cdc14\",\"scoped\":false,\"hasInlineConfig\":true}!../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./App.vue", function() {
var newContent = require("!!../../../node_modules/css-loader/index.js!../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-660cdc14\",\"scoped\":false,\"hasInlineConfig\":true}!../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./App.vue");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "./node_modules/vue-style-loader/lib/addStylesClient.js":
/***/ (function(module, exports, __webpack_require__) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
Modified by Evan You @yyx990803
*/
var hasDocument = typeof document !== 'undefined'
if (typeof DEBUG !== 'undefined' && DEBUG) {
if (!hasDocument) {
throw new Error(
'vue-style-loader cannot be used in a non-browser environment. ' +
"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
) }
}
var listToStyles = __webpack_require__("./node_modules/vue-style-loader/lib/listToStyles.js")
/*
type StyleObject = {
id: number;
parts: Array<StyleObjectPart>
}
type StyleObjectPart = {
css: string;
media: string;
sourceMap: ?string
}
*/
var stylesInDom = {/*
[id: number]: {
id: number,
refs: number,
parts: Array<(obj?: StyleObjectPart) => void>
}
*/}
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
var singletonElement = null
var singletonCounter = 0
var isProduction = false
var noop = function () {}
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
// tags it will allow on a page
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
module.exports = function (parentId, list, _isProduction) {
isProduction = _isProduction
var styles = listToStyles(parentId, list)
addStylesToDom(styles)
return function update (newList) {
var mayRemove = []
for (var i = 0; i < styles.length; i++) {
var item = styles[i]
var domStyle = stylesInDom[item.id]
domStyle.refs--
mayRemove.push(domStyle)
}
if (newList) {
styles = listToStyles(parentId, newList)
addStylesToDom(styles)
} else {
styles = []
}
for (var i = 0; i < mayRemove.length; i++) {
var domStyle = mayRemove[i]
if (domStyle.refs === 0) {
for (var j = 0; j < domStyle.parts.length; j++) {
domStyle.parts[j]()
}
delete stylesInDom[domStyle.id]
}
}
}
}
function addStylesToDom (styles /* Array<StyleObject> */) {
for (var i = 0; i < styles.length; i++) {
var item = styles[i]
var domStyle = stylesInDom[item.id]
if (domStyle) {
domStyle.refs++
for (var j = 0; j < domStyle.parts.length; j++) {
domStyle.parts[j](item.parts[j])
}
for (; j < item.parts.length; j++) {
domStyle.parts.push(addStyle(item.parts[j]))
}
if (domStyle.parts.length > item.parts.length) {
domStyle.parts.length = item.parts.length
}
} else {
var parts = []
for (var j = 0; j < item.parts.length; j++) {
parts.push(addStyle(item.parts[j]))
}
stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
}
}
}
function createStyleElement () {
var styleElement = document.createElement('style')
styleElement.type = 'text/css'
head.appendChild(styleElement)
return styleElement
}
function addStyle (obj /* StyleObjectPart */) {
var update, remove
var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]')
if (styleElement) {
if (isProduction) {
// has SSR styles and in production mode.
// simply do nothing.
return noop
} else {
// has SSR styles but in dev mode.
// for some reason Chrome can't handle source map in server-rendered
// style tags - source maps in <style> only works if the style tag is
// created and inserted dynamically. So we remove the server rendered
// styles and inject new ones.
styleElement.parentNode.removeChild(styleElement)
}
}
if (isOldIE) {
// use singleton mode for IE9.
var styleIndex = singletonCounter++
styleElement = singletonElement || (singletonElement = createStyleElement())
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
} else {
// use multi-style-tag mode in all other cases
styleElement = createStyleElement()
update = applyToTag.bind(null, styleElement)
remove = function () {
styleElement.parentNode.removeChild(styleElement)
}
}
update(obj)
return function updateStyle (newObj /* StyleObjectPart */) {
if (newObj) {
if (newObj.css === obj.css &&
newObj.media === obj.media &&
newObj.sourceMap === obj.sourceMap) {
return
}
update(obj = newObj)
} else {
remove()
}
}
}
var replaceText = (function () {
var textStore = []
return function (index, replacement) {
textStore[index] = replacement
return textStore.filter(Boolean).join('\n')
}
})()
function applyToSingletonTag (styleElement, index, remove, obj) {
var css = remove ? '' : obj.css
if (styleElement.styleSheet) {
styleElement.styleSheet.cssText = replaceText(index, css)
} else {
var cssNode = document.createTextNode(css)
var childNodes = styleElement.childNodes
if (childNodes[index]) styleElement.removeChild(childNodes[index])
if (childNodes.length) {
styleElement.insertBefore(cssNode, childNodes[index])
} else {
styleElement.appendChild(cssNode)
}
}
}
function applyToTag (styleElement, obj) {
var css = obj.css
var media = obj.media
var sourceMap = obj.sourceMap
if (media) {
styleElement.setAttribute('media', media)
}
if (sourceMap) {
// https://developer.chrome.com/devtools/docs/javascript-debugging
// this makes source maps inside style tags work properly in Chrome
css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
// http://stackoverflow.com/a/26603875
css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
}
if (styleElement.styleSheet) {
styleElement.styleSheet.cssText = css
} else {
while (styleElement.firstChild) {
styleElement.removeChild(styleElement.firstChild)
}
styleElement.appendChild(document.createTextNode(css))
}
}
/***/ }),
/***/ "./node_modules/vue-style-loader/lib/listToStyles.js":
/***/ (function(module, exports) {
/**
* Translates the list format produced by css-loader into something
* easier to manipulate.
*/
module.exports = function listToStyles (parentId, list) {
var styles = []
var newStyles = {}
for (var i = 0; i < list.length; i++) {
var item = list[i]
var id = item[0]
var css = item[1]
var media = item[2]
var sourceMap = item[3]
var part = {
id: parentId + ':' + i,
css: css,
media: media,
sourceMap: sourceMap
}
if (!newStyles[id]) {
styles.push(newStyles[id] = { id: id, parts: [part] })
} else {
newStyles[id].parts.push(part)
}
}
return styles
}
/***/ }),
/***/ "./node_modules/vue/dist/vue.common.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(global) {/*!
* Vue.js v2.4.2
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
/* */
// these helpers produces better vm code in JS engines due to their
// explicitness and function inlining
function isUndef (v) {
return v === undefined || v === null
}
function isDef (v) {
return v !== undefined && v !== null
}
function isTrue (v) {
return v === true
}
function isFalse (v) {
return v === false
}
/**
* Check if value is primitive
*/
function isPrimitive (value) {
return (
typeof value === 'string' ||
typeof value === 'number' ||
typeof value === 'boolean'
)
}
/**
* Quick object check - this is primarily used to tell
* Objects from primitive values when we know the value
* is a JSON-compliant type.
*/
function isObject (obj) {
return obj !== null && typeof obj === 'object'
}
var _toString = Object.prototype.toString;
/**
* Strict object type check. Only returns true
* for plain JavaScript objects.
*/
function isPlainObject (obj) {
return _toString.call(obj) === '[object Object]'
}
function isRegExp (v) {
return _toString.call(v) === '[object RegExp]'
}
/**
* Check if val is a valid array index.
*/
function isValidArrayIndex (val) {
var n = parseFloat(val);
return n >= 0 && Math.floor(n) === n && isFinite(val)
}
/**
* Convert a value to a string that is actually rendered.
*/
function toString (val) {
return val == null
? ''
: typeof val === 'object'
? JSON.stringify(val, null, 2)
: String(val)
}
/**
* Convert a input value to a number for persistence.
* If the conversion fails, return original string.
*/
function toNumber (val) {
var n = parseFloat(val);
return isNaN(n) ? val : n
}
/**
* Make a map and return a function for checking if a key
* is in that map.
*/
function makeMap (
str,
expectsLowerCase
) {
var map = Object.create(null);
var list = str.split(',');
for (var i = 0; i < list.length; i++) {
map[list[i]] = true;
}
return expectsLowerCase
? function (val) { return map[val.toLowerCase()]; }
: function (val) { return map[val]; }
}
/**
* Check if a tag is a built-in tag.
*/
var isBuiltInTag = makeMap('slot,component', true);
/**
* Check if a attribute is a reserved attribute.
*/
var isReservedAttribute = makeMap('key,ref,slot,is');
/**
* Remove an item from an array
*/
function remove (arr, item) {
if (arr.length) {
var index = arr.indexOf(item);
if (index > -1) {
return arr.splice(index, 1)
}
}
}
/**
* Check whether the object has the property.
*/
var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn (obj, key) {
return hasOwnProperty.call(obj, key)
}
/**
* Create a cached version of a pure function.
*/
function cached (fn) {
var cache = Object.create(null);
return (function cachedFn (str) {
var hit = cache[str];
return hit || (cache[str] = fn(str))
})
}
/**
* Camelize a hyphen-delimited string.
*/
var camelizeRE = /-(\w)/g;
var camelize = cached(function (str) {
return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
});
/**
* Capitalize a string.
*/
var capitalize = cached(function (str) {
return str.charAt(0).toUpperCase() + str.slice(1)
});
/**
* Hyphenate a camelCase string.
*/
var hyphenateRE = /([^-])([A-Z])/g;
var hyphenate = cached(function (str) {
return str
.replace(hyphenateRE, '$1-$2')
.replace(hyphenateRE, '$1-$2')
.toLowerCase()
});
/**
* Simple bind, faster than native
*/
function bind (fn, ctx) {
function boundFn (a) {
var l = arguments.length;
return l
? l > 1
? fn.apply(ctx, arguments)
: fn.call(ctx, a)
: fn.call(ctx)
}
// record original fn length
boundFn._length = fn.length;
return boundFn
}
/**
* Convert an Array-like object to a real Array.
*/
function toArray (list, start) {
start = start || 0;
var i = list.length - start;
var ret = new Array(i);
while (i--) {
ret[i] = list[i + start];
}
return ret
}
/**
* Mix properties into target object.
*/
function extend (to, _from) {
for (var key in _from) {
to[key] = _from[key];
}
return to
}
/**
* Merge an Array of Objects into a single Object.
*/
function toObject (arr) {
var res = {};
for (var i = 0; i < arr.length; i++) {
if (arr[i]) {
extend(res, arr[i]);
}
}
return res
}
/**
* Perform no operation.
* Stubbing args to make Flow happy without leaving useless transpiled code
* with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)
*/
function noop (a, b, c) {}
/**
* Always return false.
*/
var no = function (a, b, c) { return false; };
/**
* Return same value
*/
var identity = function (_) { return _; };
/**
* Generate a static keys string from compiler modules.
*/
function genStaticKeys (modules) {
return modules.reduce(function (keys, m) {
return keys.concat(m.staticKeys || [])
}, []).join(',')
}
/**
* Check if two values are loosely equal - that is,
* if they are plain objects, do they have the same shape?
*/
function looseEqual (a, b) {
if (a === b) { return true }
var isObjectA = isObject(a);
var isObjectB = isObject(b);
if (isObjectA && isObjectB) {
try {
var isArrayA = Array.isArray(a);
var isArrayB = Array.isArray(b);
if (isArrayA && isArrayB) {
return a.length === b.length && a.every(function (e, i) {
return looseEqual(e, b[i])
})
} else if (!isArrayA && !isArrayB) {
var keysA = Object.keys(a);
var keysB = Object.keys(b);
return keysA.length === keysB.length && keysA.every(function (key) {
return looseEqual(a[key], b[key])
})
} else {
/* istanbul ignore next */
return false
}
} catch (e) {
/* istanbul ignore next */
return false
}
} else if (!isObjectA && !isObjectB) {
return String(a) === String(b)
} else {
return false
}
}
function looseIndexOf (arr, val) {
for (var i = 0; i < arr.length; i++) {
if (looseEqual(arr[i], val)) { return i }
}
return -1
}
/**
* Ensure a function is called only once.
*/
function once (fn) {
var called = false;
return function () {
if (!called) {
called = true;
fn.apply(this, arguments);
}
}
}
var SSR_ATTR = 'data-server-rendered';
var ASSET_TYPES = [
'component',
'directive',
'filter'
];
var LIFECYCLE_HOOKS = [
'beforeCreate',
'created',
'beforeMount',
'mounted',
'beforeUpdate',
'updated',
'beforeDestroy',
'destroyed',
'activated',
'deactivated'
];
/* */
var config = ({
/**
* Option merge strategies (used in core/util/options)
*/
optionMergeStrategies: Object.create(null),
/**
* Whether to suppress warnings.
*/
silent: false,
/**
* Show production mode tip message on boot?
*/
productionTip: "development" !== 'production',
/**
* Whether to enable devtools
*/
devtools: "development" !== 'production',
/**
* Whether to record perf
*/
performance: false,
/**
* Error handler for watcher errors
*/
errorHandler: null,
/**
* Warn handler for watcher warns
*/
warnHandler: null,
/**
* Ignore certain custom elements
*/
ignoredElements: [],
/**
* Custom user key aliases for v-on
*/
keyCodes: Object.create(null),
/**
* Check if a tag is reserved so that it cannot be registered as a
* component. This is platform-dependent and may be overwritten.
*/
isReservedTag: no,
/**
* Check if an attribute is reserved so that it cannot be used as a component
* prop. This is platform-dependent and may be overwritten.
*/
isReservedAttr: no,
/**
* Check if a tag is an unknown element.
* Platform-dependent.
*/
isUnknownElement: no,
/**
* Get the namespace of an element
*/
getTagNamespace: noop,
/**
* Parse the real tag name for the specific platform.
*/
parsePlatformTagName: identity,
/**
* Check if an attribute must be bound using property, e.g. value
* Platform-dependent.
*/
mustUseProp: no,
/**
* Exposed for legacy reasons
*/
_lifecycleHooks: LIFECYCLE_HOOKS
});
/* */
var emptyObject = Object.freeze({});
/**
* Check if a string starts with $ or _
*/
function isReserved (str) {
var c = (str + '').charCodeAt(0);
return c === 0x24 || c === 0x5F
}
/**
* Define a property.
*/
function def (obj, key, val, enumerable) {
Object.defineProperty(obj, key, {
value: val,
enumerable: !!enumerable,
writable: true,
configurable: true
});
}
/**
* Parse simple path.
*/
var bailRE = /[^\w.$]/;
function parsePath (path) {
if (bailRE.test(path)) {
return
}
var segments = path.split('.');
return function (obj) {
for (var i = 0; i < segments.length; i++) {
if (!obj) { return }
obj = obj[segments[i]];
}
return obj
}
}
/* */
var warn = noop;
var tip = noop;
var formatComponentName = (null); // work around flow check
if (true) {
var hasConsole = typeof console !== 'undefined';
var classifyRE = /(?:^|[-_])(\w)/g;
var classify = function (str) { return str
.replace(classifyRE, function (c) { return c.toUpperCase(); })
.replace(/[-_]/g, ''); };
warn = function (msg, vm) {
var trace = vm ? generateComponentTrace(vm) : '';
if (config.warnHandler) {
config.warnHandler.call(null, msg, vm, trace);
} else if (hasConsole && (!config.silent)) {
console.error(("[Vue warn]: " + msg + trace));
}
};
tip = function (msg, vm) {
if (hasConsole && (!config.silent)) {
console.warn("[Vue tip]: " + msg + (
vm ? generateComponentTrace(vm) : ''
));
}
};
formatComponentName = function (vm, includeFile) {
if (vm.$root === vm) {
return '<Root>'
}
var name = typeof vm === 'string'
? vm
: typeof vm === 'function' && vm.options
? vm.options.name
: vm._isVue
? vm.$options.name || vm.$options._componentTag
: vm.name;
var file = vm._isVue && vm.$options.__file;
if (!name && file) {
var match = file.match(/([^/\\]+)\.vue$/);
name = match && match[1];
}
return (
(name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
(file && includeFile !== false ? (" at " + file) : '')
)
};
var repeat = function (str, n) {
var res = '';
while (n) {
if (n % 2 === 1) { res += str; }
if (n > 1) { str += str; }
n >>= 1;
}
return res
};
var generateComponentTrace = function (vm) {
if (vm._isVue && vm.$parent) {
var tree = [];
var currentRecursiveSequence = 0;
while (vm) {
if (tree.length > 0) {
var last = tree[tree.length - 1];
if (last.constructor === vm.constructor) {
currentRecursiveSequence++;
vm = vm.$parent;
continue
} else if (currentRecursiveSequence > 0) {
tree[tree.length - 1] = [last, currentRecursiveSequence];
currentRecursiveSequence = 0;
}
}
tree.push(vm);
vm = vm.$parent;
}
return '\n\nfound in\n\n' + tree
.map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
: formatComponentName(vm))); })
.join('\n')
} else {
return ("\n\n(found in " + (formatComponentName(vm)) + ")")
}
};
}
/* */
function handleError (err, vm, info) {
if (config.errorHandler) {
config.errorHandler.call(null, err, vm, info);
} else {
if (true) {
warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
}
/* istanbul ignore else */
if (inBrowser && typeof console !== 'undefined') {
console.error(err);
} else {
throw err
}
}
}
/* */
/* globals MutationObserver */
// can we use __proto__?
var hasProto = '__proto__' in {};
// Browser environment sniffing
var inBrowser = typeof window !== 'undefined';
var UA = inBrowser && window.navigator.userAgent.toLowerCase();
var isIE = UA && /msie|trident/.test(UA);
var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
var isEdge = UA && UA.indexOf('edge/') > 0;
var isAndroid = UA && UA.indexOf('android') > 0;
var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
// Firefix has a "watch" function on Object.prototype...
var nativeWatch = ({}).watch;
var supportsPassive = false;
if (inBrowser) {
try {
var opts = {};
Object.defineProperty(opts, 'passive', ({
get: function get () {
/* istanbul ignore next */
supportsPassive = true;
}
})); // https://github.com/facebook/flow/issues/285
window.addEventListener('test-passive', null, opts);
} catch (e) {}
}
// this needs to be lazy-evaled because vue may be required before
// vue-server-renderer can set VUE_ENV
var _isServer;
var isServerRendering = function () {
if (_isServer === undefined) {
/* istanbul ignore if */
if (!inBrowser && typeof global !== 'undefined') {
// detect presence of vue-server-renderer and avoid
// Webpack shimming the process
_isServer = global['process'].env.VUE_ENV === 'server';
} else {
_isServer = false;
}
}
return _isServer
};
// detect devtools
var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
/* istanbul ignore next */
function isNative (Ctor) {
return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
}
var hasSymbol =
typeof Symbol !== 'undefined' && isNative(Symbol) &&
typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
/**
* Defer a task to execute it asynchronously.
*/
var nextTick = (function () {
var callbacks = [];
var pending = false;
var timerFunc;
function nextTickHandler () {
pending = false;
var copies = callbacks.slice(0);
callbacks.length = 0;
for (var i = 0; i < copies.length; i++) {
copies[i]();
}
}
// the nextTick behavior leverages the microtask queue, which can be accessed
// via either native Promise.then or MutationObserver.
// MutationObserver has wider support, however it is seriously bugged in
// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
// completely stops working after triggering a few times... so, if native
// Promise is available, we will use it:
/* istanbul ignore if */
if (typeof Promise !== 'undefined' && isNative(Promise)) {
var p = Promise.resolve();
var logError = function (err) { console.error(err); };
timerFunc = function () {
p.then(nextTickHandler).catch(logError);
// in problematic UIWebViews, Promise.then doesn't completely break, but
// it can get stuck in a weird state where callbacks are pushed into the
// microtask queue but the queue isn't being flushed, until the browser
// needs to do some other work, e.g. handle a timer. Therefore we can
// "force" the microtask queue to be flushed by adding an empty timer.
if (isIOS) { setTimeout(noop); }
};
} else if (typeof MutationObserver !== 'undefined' && (
isNative(MutationObserver) ||
// PhantomJS and iOS 7.x
MutationObserver.toString() === '[object MutationObserverConstructor]'
)) {
// use MutationObserver where native Promise is not available,
// e.g. PhantomJS IE11, iOS7, Android 4.4
var counter = 1;
var observer = new MutationObserver(nextTickHandler);
var textNode = document.createTextNode(String(counter));
observer.observe(textNode, {
characterData: true
});
timerFunc = function () {
counter = (counter + 1) % 2;
textNode.data = String(counter);
};
} else {
// fallback to setTimeout
/* istanbul ignore next */
timerFunc = function () {
setTimeout(nextTickHandler, 0);
};
}
return function queueNextTick (cb, ctx) {
var _resolve;
callbacks.push(function () {
if (cb) {
try {
cb.call(ctx);
} catch (e) {
handleError(e, ctx, 'nextTick');
}
} else if (_resolve) {
_resolve(ctx);
}
});
if (!pending) {
pending = true;
timerFunc();
}
if (!cb && typeof Promise !== 'undefined') {
return new Promise(function (resolve, reject) {
_resolve = resolve;
})
}
}
})();
var _Set;
/* istanbul ignore if */
if (typeof Set !== 'undefined' && isNative(Set)) {
// use native Set when available.
_Set = Set;
} else {
// a non-standard Set polyfill that only works with primitive keys.
_Set = (function () {
function Set () {
this.set = Object.create(null);
}
Set.prototype.has = function has (key) {
return this.set[key] === true
};
Set.prototype.add = function add (key) {
this.set[key] = true;
};
Set.prototype.clear = function clear () {
this.set = Object.create(null);
};
return Set;
}());
}
/* */
var uid = 0;
/**
* A dep is an observable that can have multiple
* directives subscribing to it.
*/
var Dep = function Dep () {
this.id = uid++;
this.subs = [];
};
Dep.prototype.addSub = function addSub (sub) {
this.subs.push(sub);
};
Dep.prototype.removeSub = function removeSub (sub) {
remove(this.subs, sub);
};
Dep.prototype.depend = function depend () {
if (Dep.target) {
Dep.target.addDep(this);
}
};
Dep.prototype.notify = function notify () {
// stabilize the subscriber list first
var subs = this.subs.slice();
for (var i = 0, l = subs.length; i < l; i++) {
subs[i].update();
}
};
// the current target watcher being evaluated.
// this is globally unique because there could be only one
// watcher being evaluated at any time.
Dep.target = null;
var targetStack = [];
function pushTarget (_target) {
if (Dep.target) { targetStack.push(Dep.target); }
Dep.target = _target;
}
function popTarget () {
Dep.target = targetStack.pop();
}
/*
* not type checking this file because flow doesn't play well with
* dynamically accessing methods on Array prototype
*/
var arrayProto = Array.prototype;
var arrayMethods = Object.create(arrayProto);[
'push',
'pop',
'shift',
'unshift',
'splice',
'sort',
'reverse'
]
.forEach(function (method) {
// cache original method
var original = arrayProto[method];
def(arrayMethods, method, function mutator () {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
var result = original.apply(this, args);
var ob = this.__ob__;
var inserted;
switch (method) {
case 'push':
case 'unshift':
inserted = args;
break
case 'splice':
inserted = args.slice(2);
break
}
if (inserted) { ob.observeArray(inserted); }
// notify change
ob.dep.notify();
return result
});
});
/* */
var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
/**
* By default, when a reactive property is set, the new value is
* also converted to become reactive. However when passing down props,
* we don't want to force conversion because the value may be a nested value
* under a frozen data structure. Converting it would defeat the optimization.
*/
var observerState = {
shouldConvert: true
};
/**
* Observer class that are attached to each observed
* object. Once attached, the observer converts target
* object's property keys into getter/setters that
* collect dependencies and dispatches updates.
*/
var Observer = function Observer (value) {
this.value = value;
this.dep = new Dep();
this.vmCount = 0;
def(value, '__ob__', this);
if (Array.isArray(value)) {
var augment = hasProto
? protoAugment
: copyAugment;
augment(value, arrayMethods, arrayKeys);
this.observeArray(value);
} else {
this.walk(value);
}
};
/**
* Walk through each property and convert them into
* getter/setters. This method should only be called when
* value type is Object.
*/
Observer.prototype.walk = function walk (obj) {
var keys = Object.keys(obj);
for (var i = 0; i < keys.length; i++) {
defineReactive$$1(obj, keys[i], obj[keys[i]]);
}
};
/**
* Observe a list of Array items.
*/
Observer.prototype.observeArray = function observeArray (items) {
for (var i = 0, l = items.length; i < l; i++) {
observe(items[i]);
}
};
// helpers
/**
* Augment an target Object or Array by intercepting
* the prototype chain using __proto__
*/
function protoAugment (target, src, keys) {
/* eslint-disable no-proto */
target.__proto__ = src;
/* eslint-enable no-proto */
}
/**
* Augment an target Object or Array by defining
* hidden properties.
*/
/* istanbul ignore next */
function copyAugment (target, src, keys) {
for (var i = 0, l = keys.length; i < l; i++) {
var key = keys[i];
def(target, key, src[key]);
}
}
/**
* Attempt to create an observer instance for a value,
* returns the new observer if successfully observed,
* or the existing observer if the value already has one.
*/
function observe (value, asRootData) {
if (!isObject(value)) {
return
}
var ob;
if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
ob = value.__ob__;
} else if (
observerState.shouldConvert &&
!isServerRendering() &&
(Array.isArray(value) || isPlainObject(value)) &&
Object.isExtensible(value) &&
!value._isVue
) {
ob = new Observer(value);
}
if (asRootData && ob) {
ob.vmCount++;
}
return ob
}
/**
* Define a reactive property on an Object.
*/
function defineReactive$$1 (
obj,
key,
val,
customSetter,
shallow
) {
var dep = new Dep();
var property = Object.getOwnPropertyDescriptor(obj, key);
if (property && property.configurable === false) {
return
}
// cater for pre-defined getter/setters
var getter = property && property.get;
var setter = property && property.set;
var childOb = !shallow && observe(val);
Object.defineProperty(obj, key, {
enumerable: true,
configurable: true,
get: function reactiveGetter () {
var value = getter ? getter.call(obj) : val;
if (Dep.target) {
dep.depend();
if (childOb) {
childOb.dep.depend();
}
if (Array.isArray(value)) {
dependArray(value);
}
}
return value
},
set: function reactiveSetter (newVal) {
var value = getter ? getter.call(obj) : val;
/* eslint-disable no-self-compare */
if (newVal === value || (newVal !== newVal && value !== value)) {
return
}
/* eslint-enable no-self-compare */
if ("development" !== 'production' && customSetter) {
customSetter();
}
if (setter) {
setter.call(obj, newVal);
} else {
val = newVal;
}
childOb = !shallow && observe(newVal);
dep.notify();
}
});
}
/**
* Set a property on an object. Adds the new property and
* triggers change notification if the property doesn't
* already exist.
*/
function set (target, key, val) {
if (Array.isArray(target) && isValidArrayIndex(key)) {
target.length = Math.max(target.length, key);
target.splice(key, 1, val);
return val
}
if (hasOwn(target, key)) {
target[key] = val;
return val
}
var ob = (target).__ob__;
if (target._isVue || (ob && ob.vmCount)) {
"development" !== 'production' && warn(
'Avoid adding reactive properties to a Vue instance or its root $data ' +
'at runtime - declare it upfront in the data option.'
);
return val
}
if (!ob) {
target[key] = val;
return val
}
defineReactive$$1(ob.value, key, val);
ob.dep.notify();
return val
}
/**
* Delete a property and trigger change if necessary.
*/
function del (target, key) {
if (Array.isArray(target) && isValidArrayIndex(key)) {
target.splice(key, 1);
return
}
var ob = (target).__ob__;
if (target._isVue || (ob && ob.vmCount)) {
"development" !== 'production' && warn(
'Avoid deleting properties on a Vue instance or its root $data ' +
'- just set it to null.'
);
return
}
if (!hasOwn(target, key)) {
return
}
delete target[key];
if (!ob) {
return
}
ob.dep.notify();
}
/**
* Collect dependencies on array elements when the array is touched, since
* we cannot intercept array element access like property getters.
*/
function dependArray (value) {
for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
e = value[i];
e && e.__ob__ && e.__ob__.dep.depend();
if (Array.isArray(e)) {
dependArray(e);
}
}
}
/* */
/**
* Option overwriting strategies are functions that handle
* how to merge a parent option value and a child option
* value into the final value.
*/
var strats = config.optionMergeStrategies;
/**
* Options with restrictions
*/
if (true) {
strats.el = strats.propsData = function (parent, child, vm, key) {
if (!vm) {
warn(
"option \"" + key + "\" can only be used during instance " +
'creation with the `new` keyword.'
);
}
return defaultStrat(parent, child)
};
}
/**
* Helper that recursively merges two data objects together.
*/
function mergeData (to, from) {
if (!from) { return to }
var key, toVal, fromVal;
var keys = Object.keys(from);
for (var i = 0; i < keys.length; i++) {
key = keys[i];
toVal = to[key];
fromVal = from[key];
if (!hasOwn(to, key)) {
set(to, key, fromVal);
} else if (isPlainObject(toVal) && isPlainObject(fromVal)) {
mergeData(toVal, fromVal);
}
}
return to
}
/**
* Data
*/
function mergeDataOrFn (
parentVal,
childVal,
vm
) {
if (!vm) {
// in a Vue.extend merge, both should be functions
if (!childVal) {
return parentVal
}
if (!parentVal) {
return childVal
}
// when parentVal & childVal are both present,
// we need to return a function that returns the
// merged result of both functions... no need to
// check if parentVal is a function here because
// it has to be a function to pass previous merges.
return function mergedDataFn () {
return mergeData(
typeof childVal === 'function' ? childVal.call(this) : childVal,
typeof parentVal === 'function' ? parentVal.call(this) : parentVal
)
}
} else if (parentVal || childVal) {
return function mergedInstanceDataFn () {
// instance merge
var instanceData = typeof childVal === 'function'
? childVal.call(vm)
: childVal;
var defaultData = typeof parentVal === 'function'
? parentVal.call(vm)
: undefined;
if (instanceData) {
return mergeData(instanceData, defaultData)
} else {
return defaultData
}
}
}
}
strats.data = function (
parentVal,
childVal,
vm
) {
if (!vm) {
if (childVal && typeof childVal !== 'function') {
"development" !== 'production' && warn(
'The "data" option should be a function ' +
'that returns a per-instance value in component ' +
'definitions.',
vm
);
return parentVal
}
return mergeDataOrFn.call(this, parentVal, childVal)
}
return mergeDataOrFn(parentVal, childVal, vm)
};
/**
* Hooks and props are merged as arrays.
*/
function mergeHook (
parentVal,
childVal
) {
return childVal
? parentVal
? parentVal.concat(childVal)
: Array.isArray(childVal)
? childVal
: [childVal]
: parentVal
}
LIFECYCLE_HOOKS.forEach(function (hook) {
strats[hook] = mergeHook;
});
/**
* Assets
*
* When a vm is present (instance creation), we need to do
* a three-way merge between constructor options, instance
* options and parent options.
*/
function mergeAssets (parentVal, childVal) {
var res = Object.create(parentVal || null);
return childVal
? extend(res, childVal)
: res
}
ASSET_TYPES.forEach(function (type) {
strats[type + 's'] = mergeAssets;
});
/**
* Watchers.
*
* Watchers hashes should not overwrite one
* another, so we merge them as arrays.
*/
strats.watch = function (parentVal, childVal) {
// work around Firefox's Object.prototype.watch...
if (parentVal === nativeWatch) { parentVal = undefined; }
if (childVal === nativeWatch) { childVal = undefined; }
/* istanbul ignore if */
if (!childVal) { return Object.create(parentVal || null) }
if (!parentVal) { return childVal }
var ret = {};
extend(ret, parentVal);
for (var key in childVal) {
var parent = ret[key];
var child = childVal[key];
if (parent && !Array.isArray(parent)) {
parent = [parent];
}
ret[key] = parent
? parent.concat(child)
: Array.isArray(child) ? child : [child];
}
return ret
};
/**
* Other object hashes.
*/
strats.props =
strats.methods =
strats.inject =
strats.computed = function (parentVal, childVal) {
if (!parentVal) { return childVal }
var ret = Object.create(null);
extend(ret, parentVal);
if (childVal) { extend(ret, childVal); }
return ret
};
strats.provide = mergeDataOrFn;
/**
* Default strategy.
*/
var defaultStrat = function (parentVal, childVal) {
return childVal === undefined
? parentVal
: childVal
};
/**
* Validate component names
*/
function checkComponents (options) {
for (var key in options.components) {
var lower = key.toLowerCase();
if (isBuiltInTag(lower) || config.isReservedTag(lower)) {
warn(
'Do not use built-in or reserved HTML elements as component ' +
'id: ' + key
);
}
}
}
/**
* Ensure all props option syntax are normalized into the
* Object-based format.
*/
function normalizeProps (options) {
var props = options.props;
if (!props) { return }
var res = {};
var i, val, name;
if (Array.isArray(props)) {
i = props.length;
while (i--) {
val = props[i];
if (typeof val === 'string') {
name = camelize(val);
res[name] = { type: null };
} else if (true) {
warn('props must be strings when using array syntax.');
}
}
} else if (isPlainObject(props)) {
for (var key in props) {
val = props[key];
name = camelize(key);
res[name] = isPlainObject(val)
? val
: { type: val };
}
}
options.props = res;
}
/**
* Normalize all injections into Object-based format
*/
function normalizeInject (options) {
var inject = options.inject;
if (Array.isArray(inject)) {
var normalized = options.inject = {};
for (var i = 0; i < inject.length; i++) {
normalized[inject[i]] = inject[i];
}
}
}
/**
* Normalize raw function directives into object format.
*/
function normalizeDirectives (options) {
var dirs = options.directives;
if (dirs) {
for (var key in dirs) {
var def = dirs[key];
if (typeof def === 'function') {
dirs[key] = { bind: def, update: def };
}
}
}
}
/**
* Merge two option objects into a new one.
* Core utility used in both instantiation and inheritance.
*/
function mergeOptions (
parent,
child,
vm
) {
if (true) {
checkComponents(child);
}
if (typeof child === 'function') {
child = child.options;
}
normalizeProps(child);
normalizeInject(child);
normalizeDirectives(child);
var extendsFrom = child.extends;
if (extendsFrom) {
parent = mergeOptions(parent, extendsFrom, vm);
}
if (child.mixins) {
for (var i = 0, l = child.mixins.length; i < l; i++) {
parent = mergeOptions(parent, child.mixins[i], vm);
}
}
var options = {};
var key;
for (key in parent) {
mergeField(key);
}
for (key in child) {
if (!hasOwn(parent, key)) {
mergeField(key);
}
}
function mergeField (key) {
var strat = strats[key] || defaultStrat;
options[key] = strat(parent[key], child[key], vm, key);
}
return options
}
/**
* Resolve an asset.
* This function is used because child instances need access
* to assets defined in its ancestor chain.
*/
function resolveAsset (
options,
type,
id,
warnMissing
) {
/* istanbul ignore if */
if (typeof id !== 'string') {
return
}
var assets = options[type];
// check local registration variations first
if (hasOwn(assets, id)) { return assets[id] }
var camelizedId = camelize(id);
if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
var PascalCaseId = capitalize(camelizedId);
if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
// fallback to prototype chain
var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
if ("development" !== 'production' && warnMissing && !res) {
warn(
'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
options
);
}
return res
}
/* */
function validateProp (
key,
propOptions,
propsData,
vm
) {
var prop = propOptions[key];
var absent = !hasOwn(propsData, key);
var value = propsData[key];
// handle boolean props
if (isType(Boolean, prop.type)) {
if (absent && !hasOwn(prop, 'default')) {
value = false;
} else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) {
value = true;
}
}
// check default value
if (value === undefined) {
value = getPropDefaultValue(vm, prop, key);
// since the default value is a fresh copy,
// make sure to observe it.
var prevShouldConvert = observerState.shouldConvert;
observerState.shouldConvert = true;
observe(value);
observerState.shouldConvert = prevShouldConvert;
}
if (true) {
assertProp(prop, key, value, vm, absent);
}
return value
}
/**
* Get the default value of a prop.
*/
function getPropDefaultValue (vm, prop, key) {
// no default, return undefined
if (!hasOwn(prop, 'default')) {
return undefined
}
var def = prop.default;
// warn against non-factory defaults for Object & Array
if ("development" !== 'production' && isObject(def)) {
warn(
'Invalid default value for prop "' + key + '": ' +
'Props with type Object/Array must use a factory function ' +
'to return the default value.',
vm
);
}
// the raw prop value was also undefined from previous render,
// return previous default value to avoid unnecessary watcher trigger
if (vm && vm.$options.propsData &&
vm.$options.propsData[key] === undefined &&
vm._props[key] !== undefined
) {
return vm._props[key]
}
// call factory function for non-Function types
// a value is Function if its prototype is function even across different execution context
return typeof def === 'function' && getType(prop.type) !== 'Function'
? def.call(vm)
: def
}
/**
* Assert whether a prop is valid.
*/
function assertProp (
prop,
name,
value,
vm,
absent
) {
if (prop.required && absent) {
warn(
'Missing required prop: "' + name + '"',
vm
);
return
}
if (value == null && !prop.required) {
return
}
var type = prop.type;
var valid = !type || type === true;
var expectedTypes = [];
if (type) {
if (!Array.isArray(type)) {
type = [type];
}
for (var i = 0; i < type.length && !valid; i++) {
var assertedType = assertType(value, type[i]);
expectedTypes.push(assertedType.expectedType || '');
valid = assertedType.valid;
}
}
if (!valid) {
warn(
'Invalid prop: type check failed for prop "' + name + '".' +
' Expected ' + expectedTypes.map(capitalize).join(', ') +
', got ' + Object.prototype.toString.call(value).slice(8, -1) + '.',
vm
);
return
}
var validator = prop.validator;
if (validator) {
if (!validator(value)) {
warn(
'Invalid prop: custom validator check failed for prop "' + name + '".',
vm
);
}
}
}
var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
function assertType (value, type) {
var valid;
var expectedType = getType(type);
if (simpleCheckRE.test(expectedType)) {
valid = typeof value === expectedType.toLowerCase();
} else if (expectedType === 'Object') {
valid = isPlainObject(value);
} else if (expectedType === 'Array') {
valid = Array.isArray(value);
} else {
valid = value instanceof type;
}
return {
valid: valid,
expectedType: expectedType
}
}
/**
* Use function string name to check built-in types,
* because a simple equality check will fail when running
* across different vms / iframes.
*/
function getType (fn) {
var match = fn && fn.toString().match(/^\s*function (\w+)/);
return match ? match[1] : ''
}
function isType (type, fn) {
if (!Array.isArray(fn)) {
return getType(fn) === getType(type)
}
for (var i = 0, len = fn.length; i < len; i++) {
if (getType(fn[i]) === getType(type)) {
return true
}
}
/* istanbul ignore next */
return false
}
/* */
var mark;
var measure;
if (true) {
var perf = inBrowser && window.performance;
/* istanbul ignore if */
if (
perf &&
perf.mark &&
perf.measure &&
perf.clearMarks &&
perf.clearMeasures
) {
mark = function (tag) { return perf.mark(tag); };
measure = function (name, startTag, endTag) {
perf.measure(name, startTag, endTag);
perf.clearMarks(startTag);
perf.clearMarks(endTag);
perf.clearMeasures(name);
};
}
}
/* not type checking this file because flow doesn't play well with Proxy */
var initProxy;
if (true) {
var allowedGlobals = makeMap(
'Infinity,undefined,NaN,isFinite,isNaN,' +
'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
'require' // for Webpack/Browserify
);
var warnNonPresent = function (target, key) {
warn(
"Property or method \"" + key + "\" is not defined on the instance but " +
"referenced during render. Make sure to declare reactive data " +
"properties in the data option.",
target
);
};
var hasProxy =
typeof Proxy !== 'undefined' &&
Proxy.toString().match(/native code/);
if (hasProxy) {
var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta');
config.keyCodes = new Proxy(config.keyCodes, {
set: function set (target, key, value) {
if (isBuiltInModifier(key)) {
warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
return false
} else {
target[key] = value;
return true
}
}
});
}
var hasHandler = {
has: function has (target, key) {
var has = key in target;
var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
if (!has && !isAllowed) {
warnNonPresent(target, key);
}
return has || !isAllowed
}
};
var getHandler = {
get: function get (target, key) {
if (typeof key === 'string' && !(key in target)) {
warnNonPresent(target, key);
}
return target[key]
}
};
initProxy = function initProxy (vm) {
if (hasProxy) {
// determine which proxy handler to use
var options = vm.$options;
var handlers = options.render && options.render._withStripped
? getHandler
: hasHandler;
vm._renderProxy = new Proxy(vm, handlers);
} else {
vm._renderProxy = vm;
}
};
}
/* */
var VNode = function VNode (
tag,
data,
children,
text,
elm,
context,
componentOptions,
asyncFactory
) {
this.tag = tag;
this.data = data;
this.children = children;
this.text = text;
this.elm = elm;
this.ns = undefined;
this.context = context;
this.functionalContext = undefined;
this.key = data && data.key;
this.componentOptions = componentOptions;
this.componentInstance = undefined;
this.parent = undefined;
this.raw = false;
this.isStatic = false;
this.isRootInsert = true;
this.isComment = false;
this.isCloned = false;
this.isOnce = false;
this.asyncFactory = asyncFactory;
this.asyncMeta = undefined;
this.isAsyncPlaceholder = false;
};
var prototypeAccessors = { child: {} };
// DEPRECATED: alias for componentInstance for backwards compat.
/* istanbul ignore next */
prototypeAccessors.child.get = function () {
return this.componentInstance
};
Object.defineProperties( VNode.prototype, prototypeAccessors );
var createEmptyVNode = function (text) {
if ( text === void 0 ) text = '';
var node = new VNode();
node.text = text;
node.isComment = true;
return node
};
function createTextVNode (val) {
return new VNode(undefined, undefined, undefined, String(val))
}
// optimized shallow clone
// used for static nodes and slot nodes because they may be reused across
// multiple renders, cloning them avoids errors when DOM manipulations rely
// on their elm reference.
function cloneVNode (vnode) {
var cloned = new VNode(
vnode.tag,
vnode.data,
vnode.children,
vnode.text,
vnode.elm,
vnode.context,
vnode.componentOptions,
vnode.asyncFactory
);
cloned.ns = vnode.ns;
cloned.isStatic = vnode.isStatic;
cloned.key = vnode.key;
cloned.isComment = vnode.isComment;
cloned.isCloned = true;
return cloned
}
function cloneVNodes (vnodes) {
var len = vnodes.length;
var res = new Array(len);
for (var i = 0; i < len; i++) {
res[i] = cloneVNode(vnodes[i]);
}
return res
}
/* */
var normalizeEvent = cached(function (name) {
var passive = name.charAt(0) === '&';
name = passive ? name.slice(1) : name;
var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
name = once$$1 ? name.slice(1) : name;
var capture = name.charAt(0) === '!';
name = capture ? name.slice(1) : name;
return {
name: name,
once: once$$1,
capture: capture,
passive: passive
}
});
function createFnInvoker (fns) {
function invoker () {
var arguments$1 = arguments;
var fns = invoker.fns;
if (Array.isArray(fns)) {
var cloned = fns.slice();
for (var i = 0; i < cloned.length; i++) {
cloned[i].apply(null, arguments$1);
}
} else {
// return handler return value for single handlers
return fns.apply(null, arguments)
}
}
invoker.fns = fns;
return invoker
}
function updateListeners (
on,
oldOn,
add,
remove$$1,
vm
) {
var name, cur, old, event;
for (name in on) {
cur = on[name];
old = oldOn[name];
event = normalizeEvent(name);
if (isUndef(cur)) {
"development" !== 'production' && warn(
"Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
vm
);
} else if (isUndef(old)) {
if (isUndef(cur.fns)) {
cur = on[name] = createFnInvoker(cur);
}
add(event.name, cur, event.once, event.capture, event.passive);
} else if (cur !== old) {
old.fns = cur;
on[name] = old;
}
}
for (name in oldOn) {
if (isUndef(on[name])) {
event = normalizeEvent(name);
remove$$1(event.name, oldOn[name], event.capture);
}
}
}
/* */
function mergeVNodeHook (def, hookKey, hook) {
var invoker;
var oldHook = def[hookKey];
function wrappedHook () {
hook.apply(this, arguments);
// important: remove merged hook to ensure it's called only once
// and prevent memory leak
remove(invoker.fns, wrappedHook);
}
if (isUndef(oldHook)) {
// no existing hook
invoker = createFnInvoker([wrappedHook]);
} else {
/* istanbul ignore if */
if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {
// already a merged invoker
invoker = oldHook;
invoker.fns.push(wrappedHook);
} else {
// existing plain hook
invoker = createFnInvoker([oldHook, wrappedHook]);
}
}
invoker.merged = true;
def[hookKey] = invoker;
}
/* */
function extractPropsFromVNodeData (
data,
Ctor,
tag
) {
// we are only extracting raw values here.
// validation and default values are handled in the child
// component itself.
var propOptions = Ctor.options.props;
if (isUndef(propOptions)) {
return
}
var res = {};
var attrs = data.attrs;
var props = data.props;
if (isDef(attrs) || isDef(props)) {
for (var key in propOptions) {
var altKey = hyphenate(key);
if (true) {
var keyInLowerCase = key.toLowerCase();
if (
key !== keyInLowerCase &&
attrs && hasOwn(attrs, keyInLowerCase)
) {
tip(
"Prop \"" + keyInLowerCase + "\" is passed to component " +
(formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
" \"" + key + "\". " +
"Note that HTML attributes are case-insensitive and camelCased " +
"props need to use their kebab-case equivalents when using in-DOM " +
"templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
);
}
}
checkProp(res, props, key, altKey, true) ||
checkProp(res, attrs, key, altKey, false);
}
}
return res
}
function checkProp (
res,
hash,
key,
altKey,
preserve
) {
if (isDef(hash)) {
if (hasOwn(hash, key)) {
res[key] = hash[key];
if (!preserve) {
delete hash[key];
}
return true
} else if (hasOwn(hash, altKey)) {
res[key] = hash[altKey];
if (!preserve) {
delete hash[altKey];
}
return true
}
}
return false
}
/* */
// The template compiler attempts to minimize the need for normalization by
// statically analyzing the template at compile time.
//
// For plain HTML markup, normalization can be completely skipped because the
// generated render function is guaranteed to return Array<VNode>. There are
// two cases where extra normalization is needed:
// 1. When the children contains components - because a functional component
// may return an Array instead of a single root. In this case, just a simple
// normalization is needed - if any child is an Array, we flatten the whole
// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
// because functional components already normalize their own children.
function simpleNormalizeChildren (children) {
for (var i = 0; i < children.length; i++) {
if (Array.isArray(children[i])) {
return Array.prototype.concat.apply([], children)
}
}
return children
}
// 2. When the children contains constructs that always generated nested Arrays,
// e.g. <template>, <slot>, v-for, or when the children is provided by user
// with hand-written render functions / JSX. In such cases a full normalization
// is needed to cater to all possible types of children values.
function normalizeChildren (children) {
return isPrimitive(children)
? [createTextVNode(children)]
: Array.isArray(children)
? normalizeArrayChildren(children)
: undefined
}
function isTextNode (node) {
return isDef(node) && isDef(node.text) && isFalse(node.isComment)
}
function normalizeArrayChildren (children, nestedIndex) {
var res = [];
var i, c, last;
for (i = 0; i < children.length; i++) {
c = children[i];
if (isUndef(c) || typeof c === 'boolean') { continue }
last = res[res.length - 1];
// nested
if (Array.isArray(c)) {
res.push.apply(res, normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i)));
} else if (isPrimitive(c)) {
if (isTextNode(last)) {
// merge adjacent text nodes
// this is necessary for SSR hydration because text nodes are
// essentially merged when rendered to HTML strings
(last).text += String(c);
} else if (c !== '') {
// convert primitive to vnode
res.push(createTextVNode(c));
}
} else {
if (isTextNode(c) && isTextNode(last)) {
// merge adjacent text nodes
res[res.length - 1] = createTextVNode(last.text + c.text);
} else {
// default key for nested array children (likely generated by v-for)
if (isTrue(children._isVList) &&
isDef(c.tag) &&
isUndef(c.key) &&
isDef(nestedIndex)) {
c.key = "__vlist" + nestedIndex + "_" + i + "__";
}
res.push(c);
}
}
}
return res
}
/* */
function ensureCtor (comp, base) {
if (comp.__esModule && comp.default) {
comp = comp.default;
}
return isObject(comp)
? base.extend(comp)
: comp
}
function createAsyncPlaceholder (
factory,
data,
context,
children,
tag
) {
var node = createEmptyVNode();
node.asyncFactory = factory;
node.asyncMeta = { data: data, context: context, children: children, tag: tag };
return node
}
function resolveAsyncComponent (
factory,
baseCtor,
context
) {
if (isTrue(factory.error) && isDef(factory.errorComp)) {
return factory.errorComp
}
if (isDef(factory.resolved)) {
return factory.resolved
}
if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
return factory.loadingComp
}
if (isDef(factory.contexts)) {
// already pending
factory.contexts.push(context);
} else {
var contexts = factory.contexts = [context];
var sync = true;
var forceRender = function () {
for (var i = 0, l = contexts.length; i < l; i++) {
contexts[i].$forceUpdate();
}
};
var resolve = once(function (res) {
// cache resolved
factory.resolved = ensureCtor(res, baseCtor);
// invoke callbacks only if this is not a synchronous resolve
// (async resolves are shimmed as synchronous during SSR)
if (!sync) {
forceRender();
}
});
var reject = once(function (reason) {
"development" !== 'production' && warn(
"Failed to resolve async component: " + (String(factory)) +
(reason ? ("\nReason: " + reason) : '')
);
if (isDef(factory.errorComp)) {
factory.error = true;
forceRender();
}
});
var res = factory(resolve, reject);
if (isObject(res)) {
if (typeof res.then === 'function') {
// () => Promise
if (isUndef(factory.resolved)) {
res.then(resolve, reject);
}
} else if (isDef(res.component) && typeof res.component.then === 'function') {
res.component.then(resolve, reject);
if (isDef(res.error)) {
factory.errorComp = ensureCtor(res.error, baseCtor);
}
if (isDef(res.loading)) {
factory.loadingComp = ensureCtor(res.loading, baseCtor);
if (res.delay === 0) {
factory.loading = true;
} else {
setTimeout(function () {
if (isUndef(factory.resolved) && isUndef(factory.error)) {
factory.loading = true;
forceRender();
}
}, res.delay || 200);
}
}
if (isDef(res.timeout)) {
setTimeout(function () {
if (isUndef(factory.resolved)) {
reject(
true
? ("timeout (" + (res.timeout) + "ms)")
: null
);
}
}, res.timeout);
}
}
}
sync = false;
// return in case resolved synchronously
return factory.loading
? factory.loadingComp
: factory.resolved
}
}
/* */
function getFirstComponentChild (children) {
if (Array.isArray(children)) {
for (var i = 0; i < children.length; i++) {
var c = children[i];
if (isDef(c) && isDef(c.componentOptions)) {
return c
}
}
}
}
/* */
/* */
function initEvents (vm) {
vm._events = Object.create(null);
vm._hasHookEvent = false;
// init parent attached events
var listeners = vm.$options._parentListeners;
if (listeners) {
updateComponentListeners(vm, listeners);
}
}
var target;
function add (event, fn, once$$1) {
if (once$$1) {
target.$once(event, fn);
} else {
target.$on(event, fn);
}
}
function remove$1 (event, fn) {
target.$off(event, fn);
}
function updateComponentListeners (
vm,
listeners,
oldListeners
) {
target = vm;
updateListeners(listeners, oldListeners || {}, add, remove$1, vm);
}
function eventsMixin (Vue) {
var hookRE = /^hook:/;
Vue.prototype.$on = function (event, fn) {
var this$1 = this;
var vm = this;
if (Array.isArray(event)) {
for (var i = 0, l = event.length; i < l; i++) {
this$1.$on(event[i], fn);
}
} else {
(vm._events[event] || (vm._events[event] = [])).push(fn);
// optimize hook:event cost by using a boolean flag marked at registration
// instead of a hash lookup
if (hookRE.test(event)) {
vm._hasHookEvent = true;
}
}
return vm
};
Vue.prototype.$once = function (event, fn) {
var vm = this;
function on () {
vm.$off(event, on);
fn.apply(vm, arguments);
}
on.fn = fn;
vm.$on(event, on);
return vm
};
Vue.prototype.$off = function (event, fn) {
var this$1 = this;
var vm = this;
// all
if (!arguments.length) {
vm._events = Object.create(null);
return vm
}
// array of events
if (Array.isArray(event)) {
for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
this$1.$off(event[i$1], fn);
}
return vm
}
// specific event
var cbs = vm._events[event];
if (!cbs) {
return vm
}
if (arguments.length === 1) {
vm._events[event] = null;
return vm
}
// specific handler
var cb;
var i = cbs.length;
while (i--) {
cb = cbs[i];
if (cb === fn || cb.fn === fn) {
cbs.splice(i, 1);
break
}
}
return vm
};
Vue.prototype.$emit = function (event) {
var vm = this;
if (true) {
var lowerCaseEvent = event.toLowerCase();
if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
tip(
"Event \"" + lowerCaseEvent + "\" is emitted in component " +
(formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
"Note that HTML attributes are case-insensitive and you cannot use " +
"v-on to listen to camelCase events when using in-DOM templates. " +
"You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
);
}
}
var cbs = vm._events[event];
if (cbs) {
cbs = cbs.length > 1 ? toArray(cbs) : cbs;
var args = toArray(arguments, 1);
for (var i = 0, l = cbs.length; i < l; i++) {
try {
cbs[i].apply(vm, args);
} catch (e) {
handleError(e, vm, ("event handler for \"" + event + "\""));
}
}
}
return vm
};
}
/* */
/**
* Runtime helper for resolving raw children VNodes into a slot object.
*/
function resolveSlots (
children,
context
) {
var slots = {};
if (!children) {
return slots
}
var defaultSlot = [];
for (var i = 0, l = children.length; i < l; i++) {
var child = children[i];
// named slots should only be respected if the vnode was rendered in the
// same context.
if ((child.context === context || child.functionalContext === context) &&
child.data && child.data.slot != null
) {
var name = child.data.slot;
var slot = (slots[name] || (slots[name] = []));
if (child.tag === 'template') {
slot.push.apply(slot, child.children);
} else {
slot.push(child);
}
} else {
defaultSlot.push(child);
}
}
// ignore whitespace
if (!defaultSlot.every(isWhitespace)) {
slots.default = defaultSlot;
}
return slots
}
function isWhitespace (node) {
return node.isComment || node.text === ' '
}
function resolveScopedSlots (
fns, // see flow/vnode
res
) {
res = res || {};
for (var i = 0; i < fns.length; i++) {
if (Array.isArray(fns[i])) {
resolveScopedSlots(fns[i], res);
} else {
res[fns[i].key] = fns[i].fn;
}
}
return res
}
/* */
var activeInstance = null;
var isUpdatingChildComponent = false;
function initLifecycle (vm) {
var options = vm.$options;
// locate first non-abstract parent
var parent = options.parent;
if (parent && !options.abstract) {
while (parent.$options.abstract && parent.$parent) {
parent = parent.$parent;
}
parent.$children.push(vm);
}
vm.$parent = parent;
vm.$root = parent ? parent.$root : vm;
vm.$children = [];
vm.$refs = {};
vm._watcher = null;
vm._inactive = null;
vm._directInactive = false;
vm._isMounted = false;
vm._isDestroyed = false;
vm._isBeingDestroyed = false;
}
function lifecycleMixin (Vue) {
Vue.prototype._update = function (vnode, hydrating) {
var vm = this;
if (vm._isMounted) {
callHook(vm, 'beforeUpdate');
}
var prevEl = vm.$el;
var prevVnode = vm._vnode;
var prevActiveInstance = activeInstance;
activeInstance = vm;
vm._vnode = vnode;
// Vue.prototype.__patch__ is injected in entry points
// based on the rendering backend used.
if (!prevVnode) {
// initial render
vm.$el = vm.__patch__(
vm.$el, vnode, hydrating, false /* removeOnly */,
vm.$options._parentElm,
vm.$options._refElm
);
// no need for the ref nodes after initial patch
// this prevents keeping a detached DOM tree in memory (#5851)
vm.$options._parentElm = vm.$options._refElm = null;
} else {
// updates
vm.$el = vm.__patch__(prevVnode, vnode);
}
activeInstance = prevActiveInstance;
// update __vue__ reference
if (prevEl) {
prevEl.__vue__ = null;
}
if (vm.$el) {
vm.$el.__vue__ = vm;
}
// if parent is an HOC, update its $el as well
if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
vm.$parent.$el = vm.$el;
}
// updated hook is called by the scheduler to ensure that children are
// updated in a parent's updated hook.
};
Vue.prototype.$forceUpdate = function () {
var vm = this;
if (vm._watcher) {
vm._watcher.update();
}
};
Vue.prototype.$destroy = function () {
var vm = this;
if (vm._isBeingDestroyed) {
return
}
callHook(vm, 'beforeDestroy');
vm._isBeingDestroyed = true;
// remove self from parent
var parent = vm.$parent;
if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
remove(parent.$children, vm);
}
// teardown watchers
if (vm._watcher) {
vm._watcher.teardown();
}
var i = vm._watchers.length;
while (i--) {
vm._watchers[i].teardown();
}
// remove reference from data ob
// frozen object may not have observer.
if (vm._data.__ob__) {
vm._data.__ob__.vmCount--;
}
// call the last hook...
vm._isDestroyed = true;
// invoke destroy hooks on current rendered tree
vm.__patch__(vm._vnode, null);
// fire destroyed hook
callHook(vm, 'destroyed');
// turn off all instance listeners.
vm.$off();
// remove __vue__ reference
if (vm.$el) {
vm.$el.__vue__ = null;
}
};
}
function mountComponent (
vm,
el,
hydrating
) {
vm.$el = el;
if (!vm.$options.render) {
vm.$options.render = createEmptyVNode;
if (true) {
/* istanbul ignore if */
if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
vm.$options.el || el) {
warn(
'You are using the runtime-only build of Vue where the template ' +
'compiler is not available. Either pre-compile the templates into ' +
'render functions, or use the compiler-included build.',
vm
);
} else {
warn(
'Failed to mount component: template or render function not defined.',
vm
);
}
}
}
callHook(vm, 'beforeMount');
var updateComponent;
/* istanbul ignore if */
if ("development" !== 'production' && config.performance && mark) {
updateComponent = function () {
var name = vm._name;
var id = vm._uid;
var startTag = "vue-perf-start:" + id;
var endTag = "vue-perf-end:" + id;
mark(startTag);
var vnode = vm._render();
mark(endTag);
measure((name + " render"), startTag, endTag);
mark(startTag);
vm._update(vnode, hydrating);
mark(endTag);
measure((name + " patch"), startTag, endTag);
};
} else {
updateComponent = function () {
vm._update(vm._render(), hydrating);
};
}
vm._watcher = new Watcher(vm, updateComponent, noop);
hydrating = false;
// manually mounted instance, call mounted on self
// mounted is called for render-created child components in its inserted hook
if (vm.$vnode == null) {
vm._isMounted = true;
callHook(vm, 'mounted');
}
return vm
}
function updateChildComponent (
vm,
propsData,
listeners,
parentVnode,
renderChildren
) {
if (true) {
isUpdatingChildComponent = true;
}
// determine whether component has slot children
// we need to do this before overwriting $options._renderChildren
var hasChildren = !!(
renderChildren || // has new static slots
vm.$options._renderChildren || // has old static slots
parentVnode.data.scopedSlots || // has new scoped slots
vm.$scopedSlots !== emptyObject // has old scoped slots
);
vm.$options._parentVnode = parentVnode;
vm.$vnode = parentVnode; // update vm's placeholder node without re-render
if (vm._vnode) { // update child tree's parent
vm._vnode.parent = parentVnode;
}
vm.$options._renderChildren = renderChildren;
// update $attrs and $listensers hash
// these are also reactive so they may trigger child update if the child
// used them during render
vm.$attrs = parentVnode.data && parentVnode.data.attrs;
vm.$listeners = listeners;
// update props
if (propsData && vm.$options.props) {
observerState.shouldConvert = false;
var props = vm._props;
var propKeys = vm.$options._propKeys || [];
for (var i = 0; i < propKeys.length; i++) {
var key = propKeys[i];
props[key] = validateProp(key, vm.$options.props, propsData, vm);
}
observerState.shouldConvert = true;
// keep a copy of raw propsData
vm.$options.propsData = propsData;
}
// update listeners
if (listeners) {
var oldListeners = vm.$options._parentListeners;
vm.$options._parentListeners = listeners;
updateComponentListeners(vm, listeners, oldListeners);
}
// resolve slots + force update if has children
if (hasChildren) {
vm.$slots = resolveSlots(renderChildren, parentVnode.context);
vm.$forceUpdate();
}
if (true) {
isUpdatingChildComponent = false;
}
}
function isInInactiveTree (vm) {
while (vm && (vm = vm.$parent)) {
if (vm._inactive) { return true }
}
return false
}
function activateChildComponent (vm, direct) {
if (direct) {
vm._directInactive = false;
if (isInInactiveTree(vm)) {
return
}
} else if (vm._directInactive) {
return
}
if (vm._inactive || vm._inactive === null) {
vm._inactive = false;
for (var i = 0; i < vm.$children.length; i++) {
activateChildComponent(vm.$children[i]);
}
callHook(vm, 'activated');
}
}
function deactivateChildComponent (vm, direct) {
if (direct) {
vm._directInactive = true;
if (isInInactiveTree(vm)) {
return
}
}
if (!vm._inactive) {
vm._inactive = true;
for (var i = 0; i < vm.$children.length; i++) {
deactivateChildComponent(vm.$children[i]);
}
callHook(vm, 'deactivated');
}
}
function callHook (vm, hook) {
var handlers = vm.$options[hook];
if (handlers) {
for (var i = 0, j = handlers.length; i < j; i++) {
try {
handlers[i].call(vm);
} catch (e) {
handleError(e, vm, (hook + " hook"));
}
}
}
if (vm._hasHookEvent) {
vm.$emit('hook:' + hook);
}
}
/* */
var MAX_UPDATE_COUNT = 100;
var queue = [];
var activatedChildren = [];
var has = {};
var circular = {};
var waiting = false;
var flushing = false;
var index = 0;
/**
* Reset the scheduler's state.
*/
function resetSchedulerState () {
index = queue.length = activatedChildren.length = 0;
has = {};
if (true) {
circular = {};
}
waiting = flushing = false;
}
/**
* Flush both queues and run the watchers.
*/
function flushSchedulerQueue () {
flushing = true;
var watcher, id;
// Sort queue before flush.
// This ensures that:
// 1. Components are updated from parent to child. (because parent is always
// created before the child)
// 2. A component's user watchers are run before its render watcher (because
// user watchers are created before the render watcher)
// 3. If a component is destroyed during a parent component's watcher run,
// its watchers can be skipped.
queue.sort(function (a, b) { return a.id - b.id; });
// do not cache length because more watchers might be pushed
// as we run existing watchers
for (index = 0; index < queue.length; index++) {
watcher = queue[index];
id = watcher.id;
has[id] = null;
watcher.run();
// in dev build, check and stop circular updates.
if ("development" !== 'production' && has[id] != null) {
circular[id] = (circular[id] || 0) + 1;
if (circular[id] > MAX_UPDATE_COUNT) {
warn(
'You may have an infinite update loop ' + (
watcher.user
? ("in watcher with expression \"" + (watcher.expression) + "\"")
: "in a component render function."
),
watcher.vm
);
break
}
}
}
// keep copies of post queues before resetting state
var activatedQueue = activatedChildren.slice();
var updatedQueue = queue.slice();
resetSchedulerState();
// call component updated and activated hooks
callActivatedHooks(activatedQueue);
callUpdatedHooks(updatedQueue);
// devtool hook
/* istanbul ignore if */
if (devtools && config.devtools) {
devtools.emit('flush');
}
}
function callUpdatedHooks (queue) {
var i = queue.length;
while (i--) {
var watcher = queue[i];
var vm = watcher.vm;
if (vm._watcher === watcher && vm._isMounted) {
callHook(vm, 'updated');
}
}
}
/**
* Queue a kept-alive component that was activated during patch.
* The queue will be processed after the entire tree has been patched.
*/
function queueActivatedComponent (vm) {
// setting _inactive to false here so that a render function can
// rely on checking whether it's in an inactive tree (e.g. router-view)
vm._inactive = false;
activatedChildren.push(vm);
}
function callActivatedHooks (queue) {
for (var i = 0; i < queue.length; i++) {
queue[i]._inactive = true;
activateChildComponent(queue[i], true /* true */);
}
}
/**
* Push a watcher into the watcher queue.
* Jobs with duplicate IDs will be skipped unless it's
* pushed when the queue is being flushed.
*/
function queueWatcher (watcher) {
var id = watcher.id;
if (has[id] == null) {
has[id] = true;
if (!flushing) {
queue.push(watcher);
} else {
// if already flushing, splice the watcher based on its id
// if already past its id, it will be run next immediately.
var i = queue.length - 1;
while (i > index && queue[i].id > watcher.id) {
i--;
}
queue.splice(i + 1, 0, watcher);
}
// queue the flush
if (!waiting) {
waiting = true;
nextTick(flushSchedulerQueue);
}
}
}
/* */
var uid$2 = 0;
/**
* A watcher parses an expression, collects dependencies,
* and fires callback when the expression value changes.
* This is used for both the $watch() api and directives.
*/
var Watcher = function Watcher (
vm,
expOrFn,
cb,
options
) {
this.vm = vm;
vm._watchers.push(this);
// options
if (options) {
this.deep = !!options.deep;
this.user = !!options.user;
this.lazy = !!options.lazy;
this.sync = !!options.sync;
} else {
this.deep = this.user = this.lazy = this.sync = false;
}
this.cb = cb;
this.id = ++uid$2; // uid for batching
this.active = true;
this.dirty = this.lazy; // for lazy watchers
this.deps = [];
this.newDeps = [];
this.depIds = new _Set();
this.newDepIds = new _Set();
this.expression = true
? expOrFn.toString()
: '';
// parse expression for getter
if (typeof expOrFn === 'function') {
this.getter = expOrFn;
} else {
this.getter = parsePath(expOrFn);
if (!this.getter) {
this.getter = function () {};
"development" !== 'production' && warn(
"Failed watching path: \"" + expOrFn + "\" " +
'Watcher only accepts simple dot-delimited paths. ' +
'For full control, use a function instead.',
vm
);
}
}
this.value = this.lazy
? undefined
: this.get();
};
/**
* Evaluate the getter, and re-collect dependencies.
*/
Watcher.prototype.get = function get () {
pushTarget(this);
var value;
var vm = this.vm;
try {
value = this.getter.call(vm, vm);
} catch (e) {
if (this.user) {
handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
} else {
throw e
}
} finally {
// "touch" every property so they are all tracked as
// dependencies for deep watching
if (this.deep) {
traverse(value);
}
popTarget();
this.cleanupDeps();
}
return value
};
/**
* Add a dependency to this directive.
*/
Watcher.prototype.addDep = function addDep (dep) {
var id = dep.id;
if (!this.newDepIds.has(id)) {
this.newDepIds.add(id);
this.newDeps.push(dep);
if (!this.depIds.has(id)) {
dep.addSub(this);
}
}
};
/**
* Clean up for dependency collection.
*/
Watcher.prototype.cleanupDeps = function cleanupDeps () {
var this$1 = this;
var i = this.deps.length;
while (i--) {
var dep = this$1.deps[i];
if (!this$1.newDepIds.has(dep.id)) {
dep.removeSub(this$1);
}
}
var tmp = this.depIds;
this.depIds = this.newDepIds;
this.newDepIds = tmp;
this.newDepIds.clear();
tmp = this.deps;
this.deps = this.newDeps;
this.newDeps = tmp;
this.newDeps.length = 0;
};
/**
* Subscriber interface.
* Will be called when a dependency changes.
*/
Watcher.prototype.update = function update () {
/* istanbul ignore else */
if (this.lazy) {
this.dirty = true;
} else if (this.sync) {
this.run();
} else {
queueWatcher(this);
}
};
/**
* Scheduler job interface.
* Will be called by the scheduler.
*/
Watcher.prototype.run = function run () {
if (this.active) {
var value = this.get();
if (
value !== this.value ||
// Deep watchers and watchers on Object/Arrays should fire even
// when the value is the same, because the value may
// have mutated.
isObject(value) ||
this.deep
) {
// set new value
var oldValue = this.value;
this.value = value;
if (this.user) {
try {
this.cb.call(this.vm, value, oldValue);
} catch (e) {
handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
}
} else {
this.cb.call(this.vm, value, oldValue);
}
}
}
};
/**
* Evaluate the value of the watcher.
* This only gets called for lazy watchers.
*/
Watcher.prototype.evaluate = function evaluate () {
this.value = this.get();
this.dirty = false;
};
/**
* Depend on all deps collected by this watcher.
*/
Watcher.prototype.depend = function depend () {
var this$1 = this;
var i = this.deps.length;
while (i--) {
this$1.deps[i].depend();
}
};
/**
* Remove self from all dependencies' subscriber list.
*/
Watcher.prototype.teardown = function teardown () {
var this$1 = this;
if (this.active) {
// remove self from vm's watcher list
// this is a somewhat expensive operation so we skip it
// if the vm is being destroyed.
if (!this.vm._isBeingDestroyed) {
remove(this.vm._watchers, this);
}
var i = this.deps.length;
while (i--) {
this$1.deps[i].removeSub(this$1);
}
this.active = false;
}
};
/**
* Recursively traverse an object to evoke all converted
* getters, so that every nested property inside the object
* is collected as a "deep" dependency.
*/
var seenObjects = new _Set();
function traverse (val) {
seenObjects.clear();
_traverse(val, seenObjects);
}
function _traverse (val, seen) {
var i, keys;
var isA = Array.isArray(val);
if ((!isA && !isObject(val)) || !Object.isExtensible(val)) {
return
}
if (val.__ob__) {
var depId = val.__ob__.dep.id;
if (seen.has(depId)) {
return
}
seen.add(depId);
}
if (isA) {
i = val.length;
while (i--) { _traverse(val[i], seen); }
} else {
keys = Object.keys(val);
i = keys.length;
while (i--) { _traverse(val[keys[i]], seen); }
}
}
/* */
var sharedPropertyDefinition = {
enumerable: true,
configurable: true,
get: noop,
set: noop
};
function proxy (target, sourceKey, key) {
sharedPropertyDefinition.get = function proxyGetter () {
return this[sourceKey][key]
};
sharedPropertyDefinition.set = function proxySetter (val) {
this[sourceKey][key] = val;
};
Object.defineProperty(target, key, sharedPropertyDefinition);
}
function initState (vm) {
vm._watchers = [];
var opts = vm.$options;
if (opts.props) { initProps(vm, opts.props); }
if (opts.methods) { initMethods(vm, opts.methods); }
if (opts.data) {
initData(vm);
} else {
observe(vm._data = {}, true /* asRootData */);
}
if (opts.computed) { initComputed(vm, opts.computed); }
if (opts.watch && opts.watch !== nativeWatch) {
initWatch(vm, opts.watch);
}
}
function checkOptionType (vm, name) {
var option = vm.$options[name];
if (!isPlainObject(option)) {
warn(
("component option \"" + name + "\" should be an object."),
vm
);
}
}
function initProps (vm, propsOptions) {
var propsData = vm.$options.propsData || {};
var props = vm._props = {};
// cache prop keys so that future props updates can iterate using Array
// instead of dynamic object key enumeration.
var keys = vm.$options._propKeys = [];
var isRoot = !vm.$parent;
// root instance props should be converted
observerState.shouldConvert = isRoot;
var loop = function ( key ) {
keys.push(key);
var value = validateProp(key, propsOptions, propsData, vm);
/* istanbul ignore else */
if (true) {
if (isReservedAttribute(key) || config.isReservedAttr(key)) {
warn(
("\"" + key + "\" is a reserved attribute and cannot be used as component prop."),
vm
);
}
defineReactive$$1(props, key, value, function () {
if (vm.$parent && !isUpdatingChildComponent) {
warn(
"Avoid mutating a prop directly since the value will be " +
"overwritten whenever the parent component re-renders. " +
"Instead, use a data or computed property based on the prop's " +
"value. Prop being mutated: \"" + key + "\"",
vm
);
}
});
} else {
defineReactive$$1(props, key, value);
}
// static props are already proxied on the component's prototype
// during Vue.extend(). We only need to proxy props defined at
// instantiation here.
if (!(key in vm)) {
proxy(vm, "_props", key);
}
};
for (var key in propsOptions) loop( key );
observerState.shouldConvert = true;
}
function initData (vm) {
var data = vm.$options.data;
data = vm._data = typeof data === 'function'
? getData(data, vm)
: data || {};
if (!isPlainObject(data)) {
data = {};
"development" !== 'production' && warn(
'data functions should return an object:\n' +
'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
vm
);
}
// proxy data on instance
var keys = Object.keys(data);
var props = vm.$options.props;
var methods = vm.$options.methods;
var i = keys.length;
while (i--) {
var key = keys[i];
if (true) {
if (methods && hasOwn(methods, key)) {
warn(
("method \"" + key + "\" has already been defined as a data property."),
vm
);
}
}
if (props && hasOwn(props, key)) {
"development" !== 'production' && warn(
"The data property \"" + key + "\" is already declared as a prop. " +
"Use prop default value instead.",
vm
);
} else if (!isReserved(key)) {
proxy(vm, "_data", key);
}
}
// observe data
observe(data, true /* asRootData */);
}
function getData (data, vm) {
try {
return data.call(vm)
} catch (e) {
handleError(e, vm, "data()");
return {}
}
}
var computedWatcherOptions = { lazy: true };
function initComputed (vm, computed) {
"development" !== 'production' && checkOptionType(vm, 'computed');
var watchers = vm._computedWatchers = Object.create(null);
for (var key in computed) {
var userDef = computed[key];
var getter = typeof userDef === 'function' ? userDef : userDef.get;
if ("development" !== 'production' && getter == null) {
warn(
("Getter is missing for computed property \"" + key + "\"."),
vm
);
}
// create internal watcher for the computed property.
watchers[key] = new Watcher(vm, getter || noop, noop, computedWatcherOptions);
// component-defined computed properties are already defined on the
// component prototype. We only need to define computed properties defined
// at instantiation here.
if (!(key in vm)) {
defineComputed(vm, key, userDef);
} else if (true) {
if (key in vm.$data) {
warn(("The computed property \"" + key + "\" is already defined in data."), vm);
} else if (vm.$options.props && key in vm.$options.props) {
warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
}
}
}
}
function defineComputed (target, key, userDef) {
if (typeof userDef === 'function') {
sharedPropertyDefinition.get = createComputedGetter(key);
sharedPropertyDefinition.set = noop;
} else {
sharedPropertyDefinition.get = userDef.get
? userDef.cache !== false
? createComputedGetter(key)
: userDef.get
: noop;
sharedPropertyDefinition.set = userDef.set
? userDef.set
: noop;
}
if ("development" !== 'production' &&
sharedPropertyDefinition.set === noop) {
sharedPropertyDefinition.set = function () {
warn(
("Computed property \"" + key + "\" was assigned to but it has no setter."),
this
);
};
}
Object.defineProperty(target, key, sharedPropertyDefinition);
}
function createComputedGetter (key) {
return function computedGetter () {
var watcher = this._computedWatchers && this._computedWatchers[key];
if (watcher) {
if (watcher.dirty) {
watcher.evaluate();
}
if (Dep.target) {
watcher.depend();
}
return watcher.value
}
}
}
function initMethods (vm, methods) {
"development" !== 'production' && checkOptionType(vm, 'methods');
var props = vm.$options.props;
for (var key in methods) {
vm[key] = methods[key] == null ? noop : bind(methods[key], vm);
if (true) {
if (methods[key] == null) {
warn(
"method \"" + key + "\" has an undefined value in the component definition. " +
"Did you reference the function correctly?",
vm
);
}
if (props && hasOwn(props, key)) {
warn(
("method \"" + key + "\" has already been defined as a prop."),
vm
);
}
}
}
}
function initWatch (vm, watch) {
"development" !== 'production' && checkOptionType(vm, 'watch');
for (var key in watch) {
var handler = watch[key];
if (Array.isArray(handler)) {
for (var i = 0; i < handler.length; i++) {
createWatcher(vm, key, handler[i]);
}
} else {
createWatcher(vm, key, handler);
}
}
}
function createWatcher (
vm,
keyOrFn,
handler,
options
) {
if (isPlainObject(handler)) {
options = handler;
handler = handler.handler;
}
if (typeof handler === 'string') {
handler = vm[handler];
}
return vm.$watch(keyOrFn, handler, options)
}
function stateMixin (Vue) {
// flow somehow has problems with directly declared definition object
// when using Object.defineProperty, so we have to procedurally build up
// the object here.
var dataDef = {};
dataDef.get = function () { return this._data };
var propsDef = {};
propsDef.get = function () { return this._props };
if (true) {
dataDef.set = function (newData) {
warn(
'Avoid replacing instance root $data. ' +
'Use nested data properties instead.',
this
);
};
propsDef.set = function () {
warn("$props is readonly.", this);
};
}
Object.defineProperty(Vue.prototype, '$data', dataDef);
Object.defineProperty(Vue.prototype, '$props', propsDef);
Vue.prototype.$set = set;
Vue.prototype.$delete = del;
Vue.prototype.$watch = function (
expOrFn,
cb,
options
) {
var vm = this;
if (isPlainObject(cb)) {
return createWatcher(vm, expOrFn, cb, options)
}
options = options || {};
options.user = true;
var watcher = new Watcher(vm, expOrFn, cb, options);
if (options.immediate) {
cb.call(vm, watcher.value);
}
return function unwatchFn () {
watcher.teardown();
}
};
}
/* */
function initProvide (vm) {
var provide = vm.$options.provide;
if (provide) {
vm._provided = typeof provide === 'function'
? provide.call(vm)
: provide;
}
}
function initInjections (vm) {
var result = resolveInject(vm.$options.inject, vm);
if (result) {
observerState.shouldConvert = false;
Object.keys(result).forEach(function (key) {
/* istanbul ignore else */
if (true) {
defineReactive$$1(vm, key, result[key], function () {
warn(
"Avoid mutating an injected value directly since the changes will be " +
"overwritten whenever the provided component re-renders. " +
"injection being mutated: \"" + key + "\"",
vm
);
});
} else {
defineReactive$$1(vm, key, result[key]);
}
});
observerState.shouldConvert = true;
}
}
function resolveInject (inject, vm) {
if (inject) {
// inject is :any because flow is not smart enough to figure out cached
var result = Object.create(null);
var keys = hasSymbol
? Reflect.ownKeys(inject)
: Object.keys(inject);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var provideKey = inject[key];
var source = vm;
while (source) {
if (source._provided && provideKey in source._provided) {
result[key] = source._provided[provideKey];
break
}
source = source.$parent;
}
if ("development" !== 'production' && !source) {
warn(("Injection \"" + key + "\" not found"), vm);
}
}
return result
}
}
/* */
function createFunctionalComponent (
Ctor,
propsData,
data,
context,
children
) {
var props = {};
var propOptions = Ctor.options.props;
if (isDef(propOptions)) {
for (var key in propOptions) {
props[key] = validateProp(key, propOptions, propsData || {});
}
} else {
if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
if (isDef(data.props)) { mergeProps(props, data.props); }
}
// ensure the createElement function in functional components
// gets a unique context - this is necessary for correct named slot check
var _context = Object.create(context);
var h = function (a, b, c, d) { return createElement(_context, a, b, c, d, true); };
var vnode = Ctor.options.render.call(null, h, {
data: data,
props: props,
children: children,
parent: context,
listeners: data.on || {},
injections: resolveInject(Ctor.options.inject, context),
slots: function () { return resolveSlots(children, context); }
});
if (vnode instanceof VNode) {
vnode.functionalContext = context;
vnode.functionalOptions = Ctor.options;
if (data.slot) {
(vnode.data || (vnode.data = {})).slot = data.slot;
}
}
return vnode
}
function mergeProps (to, from) {
for (var key in from) {
to[camelize(key)] = from[key];
}
}
/* */
// hooks to be invoked on component VNodes during patch
var componentVNodeHooks = {
init: function init (
vnode,
hydrating,
parentElm,
refElm
) {
if (!vnode.componentInstance || vnode.componentInstance._isDestroyed) {
var child = vnode.componentInstance = createComponentInstanceForVnode(
vnode,
activeInstance,
parentElm,
refElm
);
child.$mount(hydrating ? vnode.elm : undefined, hydrating);
} else if (vnode.data.keepAlive) {
// kept-alive components, treat as a patch
var mountedNode = vnode; // work around flow
componentVNodeHooks.prepatch(mountedNode, mountedNode);
}
},
prepatch: function prepatch (oldVnode, vnode) {
var options = vnode.componentOptions;
var child = vnode.componentInstance = oldVnode.componentInstance;
updateChildComponent(
child,
options.propsData, // updated props
options.listeners, // updated listeners
vnode, // new parent vnode
options.children // new children
);
},
insert: function insert (vnode) {
var context = vnode.context;
var componentInstance = vnode.componentInstance;
if (!componentInstance._isMounted) {
componentInstance._isMounted = true;
callHook(componentInstance, 'mounted');
}
if (vnode.data.keepAlive) {
if (context._isMounted) {
// vue-router#1212
// During updates, a kept-alive component's child components may
// change, so directly walking the tree here may call activated hooks
// on incorrect children. Instead we push them into a queue which will
// be processed after the whole patch process ended.
queueActivatedComponent(componentInstance);
} else {
activateChildComponent(componentInstance, true /* direct */);
}
}
},
destroy: function destroy (vnode) {
var componentInstance = vnode.componentInstance;
if (!componentInstance._isDestroyed) {
if (!vnode.data.keepAlive) {
componentInstance.$destroy();
} else {
deactivateChildComponent(componentInstance, true /* direct */);
}
}
}
};
var hooksToMerge = Object.keys(componentVNodeHooks);
function createComponent (
Ctor,
data,
context,
children,
tag
) {
if (isUndef(Ctor)) {
return
}
var baseCtor = context.$options._base;
// plain options object: turn it into a constructor
if (isObject(Ctor)) {
Ctor = baseCtor.extend(Ctor);
}
// if at this stage it's not a constructor or an async component factory,
// reject.
if (typeof Ctor !== 'function') {
if (true) {
warn(("Invalid Component definition: " + (String(Ctor))), context);
}
return
}
// async component
var asyncFactory;
if (isUndef(Ctor.cid)) {
asyncFactory = Ctor;
Ctor = resolveAsyncComponent(asyncFactory, baseCtor, context);
if (Ctor === undefined) {
// return a placeholder node for async component, which is rendered
// as a comment node but preserves all the raw information for the node.
// the information will be used for async server-rendering and hydration.
return createAsyncPlaceholder(
asyncFactory,
data,
context,
children,
tag
)
}
}
data = data || {};
// resolve constructor options in case global mixins are applied after
// component constructor creation
resolveConstructorOptions(Ctor);
// transform component v-model data into props & events
if (isDef(data.model)) {
transformModel(Ctor.options, data);
}
// extract props
var propsData = extractPropsFromVNodeData(data, Ctor, tag);
// functional component
if (isTrue(Ctor.options.functional)) {
return createFunctionalComponent(Ctor, propsData, data, context, children)
}
// extract listeners, since these needs to be treated as
// child component listeners instead of DOM listeners
var listeners = data.on;
// replace with listeners with .native modifier
// so it gets processed during parent component patch.
data.on = data.nativeOn;
if (isTrue(Ctor.options.abstract)) {
// abstract components do not keep anything
// other than props & listeners & slot
// work around flow
var slot = data.slot;
data = {};
if (slot) {
data.slot = slot;
}
}
// merge component management hooks onto the placeholder node
mergeHooks(data);
// return a placeholder vnode
var name = Ctor.options.name || tag;
var vnode = new VNode(
("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
data, undefined, undefined, undefined, context,
{ Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
asyncFactory
);
return vnode
}
function createComponentInstanceForVnode (
vnode, // we know it's MountedComponentVNode but flow doesn't
parent, // activeInstance in lifecycle state
parentElm,
refElm
) {
var vnodeComponentOptions = vnode.componentOptions;
var options = {
_isComponent: true,
parent: parent,
propsData: vnodeComponentOptions.propsData,
_componentTag: vnodeComponentOptions.tag,
_parentVnode: vnode,
_parentListeners: vnodeComponentOptions.listeners,
_renderChildren: vnodeComponentOptions.children,
_parentElm: parentElm || null,
_refElm: refElm || null
};
// check inline-template render functions
var inlineTemplate = vnode.data.inlineTemplate;
if (isDef(inlineTemplate)) {
options.render = inlineTemplate.render;
options.staticRenderFns = inlineTemplate.staticRenderFns;
}
return new vnodeComponentOptions.Ctor(options)
}
function mergeHooks (data) {
if (!data.hook) {
data.hook = {};
}
for (var i = 0; i < hooksToMerge.length; i++) {
var key = hooksToMerge[i];
var fromParent = data.hook[key];
var ours = componentVNodeHooks[key];
data.hook[key] = fromParent ? mergeHook$1(ours, fromParent) : ours;
}
}
function mergeHook$1 (one, two) {
return function (a, b, c, d) {
one(a, b, c, d);
two(a, b, c, d);
}
}
// transform component v-model info (value and callback) into
// prop and event handler respectively.
function transformModel (options, data) {
var prop = (options.model && options.model.prop) || 'value';
var event = (options.model && options.model.event) || 'input';(data.props || (data.props = {}))[prop] = data.model.value;
var on = data.on || (data.on = {});
if (isDef(on[event])) {
on[event] = [data.model.callback].concat(on[event]);
} else {
on[event] = data.model.callback;
}
}
/* */
var SIMPLE_NORMALIZE = 1;
var ALWAYS_NORMALIZE = 2;
// wrapper function for providing a more flexible interface
// without getting yelled at by flow
function createElement (
context,
tag,
data,
children,
normalizationType,
alwaysNormalize
) {
if (Array.isArray(data) || isPrimitive(data)) {
normalizationType = children;
children = data;
data = undefined;
}
if (isTrue(alwaysNormalize)) {
normalizationType = ALWAYS_NORMALIZE;
}
return _createElement(context, tag, data, children, normalizationType)
}
function _createElement (
context,
tag,
data,
children,
normalizationType
) {
if (isDef(data) && isDef((data).__ob__)) {
"development" !== 'production' && warn(
"Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
'Always create fresh vnode data objects in each render!',
context
);
return createEmptyVNode()
}
// object syntax in v-bind
if (isDef(data) && isDef(data.is)) {
tag = data.is;
}
if (!tag) {
// in case of component :is set to falsy value
return createEmptyVNode()
}
// warn against non-primitive key
if ("development" !== 'production' &&
isDef(data) && isDef(data.key) && !isPrimitive(data.key)
) {
warn(
'Avoid using non-primitive value as key, ' +
'use string/number value instead.',
context
);
}
// support single function children as default scoped slot
if (Array.isArray(children) &&
typeof children[0] === 'function'
) {
data = data || {};
data.scopedSlots = { default: children[0] };
children.length = 0;
}
if (normalizationType === ALWAYS_NORMALIZE) {
children = normalizeChildren(children);
} else if (normalizationType === SIMPLE_NORMALIZE) {
children = simpleNormalizeChildren(children);
}
var vnode, ns;
if (typeof tag === 'string') {
var Ctor;
ns = config.getTagNamespace(tag);
if (config.isReservedTag(tag)) {
// platform built-in elements
vnode = new VNode(
config.parsePlatformTagName(tag), data, children,
undefined, undefined, context
);
} else if (isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
// component
vnode = createComponent(Ctor, data, context, children, tag);
} else {
// unknown or unlisted namespaced elements
// check at runtime because it may get assigned a namespace when its
// parent normalizes children
vnode = new VNode(
tag, data, children,
undefined, undefined, context
);
}
} else {
// direct component options / constructor
vnode = createComponent(tag, data, context, children);
}
if (isDef(vnode)) {
if (ns) { applyNS(vnode, ns); }
return vnode
} else {
return createEmptyVNode()
}
}
function applyNS (vnode, ns) {
vnode.ns = ns;
if (vnode.tag === 'foreignObject') {
// use default namespace inside foreignObject
return
}
if (isDef(vnode.children)) {
for (var i = 0, l = vnode.children.length; i < l; i++) {
var child = vnode.children[i];
if (isDef(child.tag) && isUndef(child.ns)) {
applyNS(child, ns);
}
}
}
}
/* */
/**
* Runtime helper for rendering v-for lists.
*/
function renderList (
val,
render
) {
var ret, i, l, keys, key;
if (Array.isArray(val) || typeof val === 'string') {
ret = new Array(val.length);
for (i = 0, l = val.length; i < l; i++) {
ret[i] = render(val[i], i);
}
} else if (typeof val === 'number') {
ret = new Array(val);
for (i = 0; i < val; i++) {
ret[i] = render(i + 1, i);
}
} else if (isObject(val)) {
keys = Object.keys(val);
ret = new Array(keys.length);
for (i = 0, l = keys.length; i < l; i++) {
key = keys[i];
ret[i] = render(val[key], key, i);
}
}
if (isDef(ret)) {
(ret)._isVList = true;
}
return ret
}
/* */
/**
* Runtime helper for rendering <slot>
*/
function renderSlot (
name,
fallback,
props,
bindObject
) {
var scopedSlotFn = this.$scopedSlots[name];
if (scopedSlotFn) { // scoped slot
props = props || {};
if (bindObject) {
props = extend(extend({}, bindObject), props);
}
return scopedSlotFn(props) || fallback
} else {
var slotNodes = this.$slots[name];
// warn duplicate slot usage
if (slotNodes && "development" !== 'production') {
slotNodes._rendered && warn(
"Duplicate presence of slot \"" + name + "\" found in the same render tree " +
"- this will likely cause render errors.",
this
);
slotNodes._rendered = true;
}
return slotNodes || fallback
}
}
/* */
/**
* Runtime helper for resolving filters
*/
function resolveFilter (id) {
return resolveAsset(this.$options, 'filters', id, true) || identity
}
/* */
/**
* Runtime helper for checking keyCodes from config.
*/
function checkKeyCodes (
eventKeyCode,
key,
builtInAlias
) {
var keyCodes = config.keyCodes[key] || builtInAlias;
if (Array.isArray(keyCodes)) {
return keyCodes.indexOf(eventKeyCode) === -1
} else {
return keyCodes !== eventKeyCode
}
}
/* */
/**
* Runtime helper for merging v-bind="object" into a VNode's data.
*/
function bindObjectProps (
data,
tag,
value,
asProp,
isSync
) {
if (value) {
if (!isObject(value)) {
"development" !== 'production' && warn(
'v-bind without argument expects an Object or Array value',
this
);
} else {
if (Array.isArray(value)) {
value = toObject(value);
}
var hash;
var loop = function ( key ) {
if (
key === 'class' ||
key === 'style' ||
isReservedAttribute(key)
) {
hash = data;
} else {
var type = data.attrs && data.attrs.type;
hash = asProp || config.mustUseProp(tag, type, key)
? data.domProps || (data.domProps = {})
: data.attrs || (data.attrs = {});
}
if (!(key in hash)) {
hash[key] = value[key];
if (isSync) {
var on = data.on || (data.on = {});
on[("update:" + key)] = function ($event) {
value[key] = $event;
};
}
}
};
for (var key in value) loop( key );
}
}
return data
}
/* */
/**
* Runtime helper for rendering static trees.
*/
function renderStatic (
index,
isInFor
) {
var tree = this._staticTrees[index];
// if has already-rendered static tree and not inside v-for,
// we can reuse the same tree by doing a shallow clone.
if (tree && !isInFor) {
return Array.isArray(tree)
? cloneVNodes(tree)
: cloneVNode(tree)
}
// otherwise, render a fresh tree.
tree = this._staticTrees[index] =
this.$options.staticRenderFns[index].call(this._renderProxy);
markStatic(tree, ("__static__" + index), false);
return tree
}
/**
* Runtime helper for v-once.
* Effectively it means marking the node as static with a unique key.
*/
function markOnce (
tree,
index,
key
) {
markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
return tree
}
function markStatic (
tree,
key,
isOnce
) {
if (Array.isArray(tree)) {
for (var i = 0; i < tree.length; i++) {
if (tree[i] && typeof tree[i] !== 'string') {
markStaticNode(tree[i], (key + "_" + i), isOnce);
}
}
} else {
markStaticNode(tree, key, isOnce);
}
}
function markStaticNode (node, key, isOnce) {
node.isStatic = true;
node.key = key;
node.isOnce = isOnce;
}
/* */
function bindObjectListeners (data, value) {
if (value) {
if (!isPlainObject(value)) {
"development" !== 'production' && warn(
'v-on without argument expects an Object value',
this
);
} else {
var on = data.on = data.on ? extend({}, data.on) : {};
for (var key in value) {
var existing = on[key];
var ours = value[key];
on[key] = existing ? [].concat(ours, existing) : ours;
}
}
}
return data
}
/* */
function initRender (vm) {
vm._vnode = null; // the root of the child tree
vm._staticTrees = null;
var parentVnode = vm.$vnode = vm.$options._parentVnode; // the placeholder node in parent tree
var renderContext = parentVnode && parentVnode.context;
vm.$slots = resolveSlots(vm.$options._renderChildren, renderContext);
vm.$scopedSlots = emptyObject;
// bind the createElement fn to this instance
// so that we get proper render context inside it.
// args order: tag, data, children, normalizationType, alwaysNormalize
// internal version is used by render functions compiled from templates
vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
// normalization is always applied for the public version, used in
// user-written render functions.
vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
// $attrs & $listeners are exposed for easier HOC creation.
// they need to be reactive so that HOCs using them are always updated
var parentData = parentVnode && parentVnode.data;
/* istanbul ignore else */
if (true) {
defineReactive$$1(vm, '$attrs', parentData && parentData.attrs, function () {
!isUpdatingChildComponent && warn("$attrs is readonly.", vm);
}, true);
defineReactive$$1(vm, '$listeners', vm.$options._parentListeners, function () {
!isUpdatingChildComponent && warn("$listeners is readonly.", vm);
}, true);
} else {
defineReactive$$1(vm, '$attrs', parentData && parentData.attrs, null, true);
defineReactive$$1(vm, '$listeners', vm.$options._parentListeners, null, true);
}
}
function renderMixin (Vue) {
Vue.prototype.$nextTick = function (fn) {
return nextTick(fn, this)
};
Vue.prototype._render = function () {
var vm = this;
var ref = vm.$options;
var render = ref.render;
var staticRenderFns = ref.staticRenderFns;
var _parentVnode = ref._parentVnode;
if (vm._isMounted) {
// clone slot nodes on re-renders
for (var key in vm.$slots) {
vm.$slots[key] = cloneVNodes(vm.$slots[key]);
}
}
vm.$scopedSlots = (_parentVnode && _parentVnode.data.scopedSlots) || emptyObject;
if (staticRenderFns && !vm._staticTrees) {
vm._staticTrees = [];
}
// set parent vnode. this allows render functions to have access
// to the data on the placeholder node.
vm.$vnode = _parentVnode;
// render self
var vnode;
try {
vnode = render.call(vm._renderProxy, vm.$createElement);
} catch (e) {
handleError(e, vm, "render function");
// return error render result,
// or previous vnode to prevent render error causing blank component
/* istanbul ignore else */
if (true) {
vnode = vm.$options.renderError
? vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e)
: vm._vnode;
} else {
vnode = vm._vnode;
}
}
// return empty vnode in case the render function errored out
if (!(vnode instanceof VNode)) {
if ("development" !== 'production' && Array.isArray(vnode)) {
warn(
'Multiple root nodes returned from render function. Render function ' +
'should return a single root node.',
vm
);
}
vnode = createEmptyVNode();
}
// set parent
vnode.parent = _parentVnode;
return vnode
};
// internal render helpers.
// these are exposed on the instance prototype to reduce generated render
// code size.
Vue.prototype._o = markOnce;
Vue.prototype._n = toNumber;
Vue.prototype._s = toString;
Vue.prototype._l = renderList;
Vue.prototype._t = renderSlot;
Vue.prototype._q = looseEqual;
Vue.prototype._i = looseIndexOf;
Vue.prototype._m = renderStatic;
Vue.prototype._f = resolveFilter;
Vue.prototype._k = checkKeyCodes;
Vue.prototype._b = bindObjectProps;
Vue.prototype._v = createTextVNode;
Vue.prototype._e = createEmptyVNode;
Vue.prototype._u = resolveScopedSlots;
Vue.prototype._g = bindObjectListeners;
}
/* */
var uid$1 = 0;
function initMixin (Vue) {
Vue.prototype._init = function (options) {
var vm = this;
// a uid
vm._uid = uid$1++;
var startTag, endTag;
/* istanbul ignore if */
if ("development" !== 'production' && config.performance && mark) {
startTag = "vue-perf-init:" + (vm._uid);
endTag = "vue-perf-end:" + (vm._uid);
mark(startTag);
}
// a flag to avoid this being observed
vm._isVue = true;
// merge options
if (options && options._isComponent) {
// optimize internal component instantiation
// since dynamic options merging is pretty slow, and none of the
// internal component options needs special treatment.
initInternalComponent(vm, options);
} else {
vm.$options = mergeOptions(
resolveConstructorOptions(vm.constructor),
options || {},
vm
);
}
/* istanbul ignore else */
if (true) {
initProxy(vm);
} else {
vm._renderProxy = vm;
}
// expose real self
vm._self = vm;
initLifecycle(vm);
initEvents(vm);
initRender(vm);
callHook(vm, 'beforeCreate');
initInjections(vm); // resolve injections before data/props
initState(vm);
initProvide(vm); // resolve provide after data/props
callHook(vm, 'created');
/* istanbul ignore if */
if ("development" !== 'production' && config.performance && mark) {
vm._name = formatComponentName(vm, false);
mark(endTag);
measure(((vm._name) + " init"), startTag, endTag);
}
if (vm.$options.el) {
vm.$mount(vm.$options.el);
}
};
}
function initInternalComponent (vm, options) {
var opts = vm.$options = Object.create(vm.constructor.options);
// doing this because it's faster than dynamic enumeration.
opts.parent = options.parent;
opts.propsData = options.propsData;
opts._parentVnode = options._parentVnode;
opts._parentListeners = options._parentListeners;
opts._renderChildren = options._renderChildren;
opts._componentTag = options._componentTag;
opts._parentElm = options._parentElm;
opts._refElm = options._refElm;
if (options.render) {
opts.render = options.render;
opts.staticRenderFns = options.staticRenderFns;
}
}
function resolveConstructorOptions (Ctor) {
var options = Ctor.options;
if (Ctor.super) {
var superOptions = resolveConstructorOptions(Ctor.super);
var cachedSuperOptions = Ctor.superOptions;
if (superOptions !== cachedSuperOptions) {
// super option changed,
// need to resolve new options.
Ctor.superOptions = superOptions;
// check if there are any late-modified/attached options (#4976)
var modifiedOptions = resolveModifiedOptions(Ctor);
// update base extend options
if (modifiedOptions) {
extend(Ctor.extendOptions, modifiedOptions);
}
options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
if (options.name) {
options.components[options.name] = Ctor;
}
}
}
return options
}
function resolveModifiedOptions (Ctor) {
var modified;
var latest = Ctor.options;
var extended = Ctor.extendOptions;
var sealed = Ctor.sealedOptions;
for (var key in latest) {
if (latest[key] !== sealed[key]) {
if (!modified) { modified = {}; }
modified[key] = dedupe(latest[key], extended[key], sealed[key]);
}
}
return modified
}
function dedupe (latest, extended, sealed) {
// compare latest and sealed to ensure lifecycle hooks won't be duplicated
// between merges
if (Array.isArray(latest)) {
var res = [];
sealed = Array.isArray(sealed) ? sealed : [sealed];
extended = Array.isArray(extended) ? extended : [extended];
for (var i = 0; i < latest.length; i++) {
// push original options and not sealed options to exclude duplicated options
if (extended.indexOf(latest[i]) >= 0 || sealed.indexOf(latest[i]) < 0) {
res.push(latest[i]);
}
}
return res
} else {
return latest
}
}
function Vue$3 (options) {
if ("development" !== 'production' &&
!(this instanceof Vue$3)
) {
warn('Vue is a constructor and should be called with the `new` keyword');
}
this._init(options);
}
initMixin(Vue$3);
stateMixin(Vue$3);
eventsMixin(Vue$3);
lifecycleMixin(Vue$3);
renderMixin(Vue$3);
/* */
function initUse (Vue) {
Vue.use = function (plugin) {
var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
if (installedPlugins.indexOf(plugin) > -1) {
return this
}
// additional parameters
var args = toArray(arguments, 1);
args.unshift(this);
if (typeof plugin.install === 'function') {
plugin.install.apply(plugin, args);
} else if (typeof plugin === 'function') {
plugin.apply(null, args);
}
installedPlugins.push(plugin);
return this
};
}
/* */
function initMixin$1 (Vue) {
Vue.mixin = function (mixin) {
this.options = mergeOptions(this.options, mixin);
return this
};
}
/* */
function initExtend (Vue) {
/**
* Each instance constructor, including Vue, has a unique
* cid. This enables us to create wrapped "child
* constructors" for prototypal inheritance and cache them.
*/
Vue.cid = 0;
var cid = 1;
/**
* Class inheritance
*/
Vue.extend = function (extendOptions) {
extendOptions = extendOptions || {};
var Super = this;
var SuperId = Super.cid;
var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
if (cachedCtors[SuperId]) {
return cachedCtors[SuperId]
}
var name = extendOptions.name || Super.options.name;
if (true) {
if (!/^[a-zA-Z][\w-]*$/.test(name)) {
warn(
'Invalid component name: "' + name + '". Component names ' +
'can only contain alphanumeric characters and the hyphen, ' +
'and must start with a letter.'
);
}
}
var Sub = function VueComponent (options) {
this._init(options);
};
Sub.prototype = Object.create(Super.prototype);
Sub.prototype.constructor = Sub;
Sub.cid = cid++;
Sub.options = mergeOptions(
Super.options,
extendOptions
);
Sub['super'] = Super;
// For props and computed properties, we define the proxy getters on
// the Vue instances at extension time, on the extended prototype. This
// avoids Object.defineProperty calls for each instance created.
if (Sub.options.props) {
initProps$1(Sub);
}
if (Sub.options.computed) {
initComputed$1(Sub);
}
// allow further extension/mixin/plugin usage
Sub.extend = Super.extend;
Sub.mixin = Super.mixin;
Sub.use = Super.use;
// create asset registers, so extended classes
// can have their private assets too.
ASSET_TYPES.forEach(function (type) {
Sub[type] = Super[type];
});
// enable recursive self-lookup
if (name) {
Sub.options.components[name] = Sub;
}
// keep a reference to the super options at extension time.
// later at instantiation we can check if Super's options have
// been updated.
Sub.superOptions = Super.options;
Sub.extendOptions = extendOptions;
Sub.sealedOptions = extend({}, Sub.options);
// cache constructor
cachedCtors[SuperId] = Sub;
return Sub
};
}
function initProps$1 (Comp) {
var props = Comp.options.props;
for (var key in props) {
proxy(Comp.prototype, "_props", key);
}
}
function initComputed$1 (Comp) {
var computed = Comp.options.computed;
for (var key in computed) {
defineComputed(Comp.prototype, key, computed[key]);
}
}
/* */
function initAssetRegisters (Vue) {
/**
* Create asset registration methods.
*/
ASSET_TYPES.forEach(function (type) {
Vue[type] = function (
id,
definition
) {
if (!definition) {
return this.options[type + 's'][id]
} else {
/* istanbul ignore if */
if (true) {
if (type === 'component' && config.isReservedTag(id)) {
warn(
'Do not use built-in or reserved HTML elements as component ' +
'id: ' + id
);
}
}
if (type === 'component' && isPlainObject(definition)) {
definition.name = definition.name || id;
definition = this.options._base.extend(definition);
}
if (type === 'directive' && typeof definition === 'function') {
definition = { bind: definition, update: definition };
}
this.options[type + 's'][id] = definition;
return definition
}
};
});
}
/* */
var patternTypes = [String, RegExp, Array];
function getComponentName (opts) {
return opts && (opts.Ctor.options.name || opts.tag)
}
function matches (pattern, name) {
if (Array.isArray(pattern)) {
return pattern.indexOf(name) > -1
} else if (typeof pattern === 'string') {
return pattern.split(',').indexOf(name) > -1
} else if (isRegExp(pattern)) {
return pattern.test(name)
}
/* istanbul ignore next */
return false
}
function pruneCache (cache, current, filter) {
for (var key in cache) {
var cachedNode = cache[key];
if (cachedNode) {
var name = getComponentName(cachedNode.componentOptions);
if (name && !filter(name)) {
if (cachedNode !== current) {
pruneCacheEntry(cachedNode);
}
cache[key] = null;
}
}
}
}
function pruneCacheEntry (vnode) {
if (vnode) {
vnode.componentInstance.$destroy();
}
}
var KeepAlive = {
name: 'keep-alive',
abstract: true,
props: {
include: patternTypes,
exclude: patternTypes
},
created: function created () {
this.cache = Object.create(null);
},
destroyed: function destroyed () {
var this$1 = this;
for (var key in this$1.cache) {
pruneCacheEntry(this$1.cache[key]);
}
},
watch: {
include: function include (val) {
pruneCache(this.cache, this._vnode, function (name) { return matches(val, name); });
},
exclude: function exclude (val) {
pruneCache(this.cache, this._vnode, function (name) { return !matches(val, name); });
}
},
render: function render () {
var vnode = getFirstComponentChild(this.$slots.default);
var componentOptions = vnode && vnode.componentOptions;
if (componentOptions) {
// check pattern
var name = getComponentName(componentOptions);
if (name && (
(this.include && !matches(this.include, name)) ||
(this.exclude && matches(this.exclude, name))
)) {
return vnode
}
var key = vnode.key == null
// same constructor may get registered as different local components
// so cid alone is not enough (#3269)
? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
: vnode.key;
if (this.cache[key]) {
vnode.componentInstance = this.cache[key].componentInstance;
} else {
this.cache[key] = vnode;
}
vnode.data.keepAlive = true;
}
return vnode
}
};
var builtInComponents = {
KeepAlive: KeepAlive
};
/* */
function initGlobalAPI (Vue) {
// config
var configDef = {};
configDef.get = function () { return config; };
if (true) {
configDef.set = function () {
warn(
'Do not replace the Vue.config object, set individual fields instead.'
);
};
}
Object.defineProperty(Vue, 'config', configDef);
// exposed util methods.
// NOTE: these are not considered part of the public API - avoid relying on
// them unless you are aware of the risk.
Vue.util = {
warn: warn,
extend: extend,
mergeOptions: mergeOptions,
defineReactive: defineReactive$$1
};
Vue.set = set;
Vue.delete = del;
Vue.nextTick = nextTick;
Vue.options = Object.create(null);
ASSET_TYPES.forEach(function (type) {
Vue.options[type + 's'] = Object.create(null);
});
// this is used to identify the "base" constructor to extend all plain-object
// components with in Weex's multi-instance scenarios.
Vue.options._base = Vue;
extend(Vue.options.components, builtInComponents);
initUse(Vue);
initMixin$1(Vue);
initExtend(Vue);
initAssetRegisters(Vue);
}
initGlobalAPI(Vue$3);
Object.defineProperty(Vue$3.prototype, '$isServer', {
get: isServerRendering
});
Object.defineProperty(Vue$3.prototype, '$ssrContext', {
get: function get () {
/* istanbul ignore next */
return this.$vnode && this.$vnode.ssrContext
}
});
Vue$3.version = '2.4.2';
/* */
// these are reserved for web because they are directly compiled away
// during template compilation
var isReservedAttr = makeMap('style,class');
// attributes that should be using props for binding
var acceptValue = makeMap('input,textarea,option,select');
var mustUseProp = function (tag, type, attr) {
return (
(attr === 'value' && acceptValue(tag)) && type !== 'button' ||
(attr === 'selected' && tag === 'option') ||
(attr === 'checked' && tag === 'input') ||
(attr === 'muted' && tag === 'video')
)
};
var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
var isBooleanAttr = makeMap(
'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
'required,reversed,scoped,seamless,selected,sortable,translate,' +
'truespeed,typemustmatch,visible'
);
var xlinkNS = 'http://www.w3.org/1999/xlink';
var isXlink = function (name) {
return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'
};
var getXlinkProp = function (name) {
return isXlink(name) ? name.slice(6, name.length) : ''
};
var isFalsyAttrValue = function (val) {
return val == null || val === false
};
/* */
function genClassForVnode (vnode) {
var data = vnode.data;
var parentNode = vnode;
var childNode = vnode;
while (isDef(childNode.componentInstance)) {
childNode = childNode.componentInstance._vnode;
if (childNode.data) {
data = mergeClassData(childNode.data, data);
}
}
while (isDef(parentNode = parentNode.parent)) {
if (parentNode.data) {
data = mergeClassData(data, parentNode.data);
}
}
return renderClass(data.staticClass, data.class)
}
function mergeClassData (child, parent) {
return {
staticClass: concat(child.staticClass, parent.staticClass),
class: isDef(child.class)
? [child.class, parent.class]
: parent.class
}
}
function renderClass (
staticClass,
dynamicClass
) {
if (isDef(staticClass) || isDef(dynamicClass)) {
return concat(staticClass, stringifyClass(dynamicClass))
}
/* istanbul ignore next */
return ''
}
function concat (a, b) {
return a ? b ? (a + ' ' + b) : a : (b || '')
}
function stringifyClass (value) {
if (Array.isArray(value)) {
return stringifyArray(value)
}
if (isObject(value)) {
return stringifyObject(value)
}
if (typeof value === 'string') {
return value
}
/* istanbul ignore next */
return ''
}
function stringifyArray (value) {
var res = '';
var stringified;
for (var i = 0, l = value.length; i < l; i++) {
if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
if (res) { res += ' '; }
res += stringified;
}
}
return res
}
function stringifyObject (value) {
var res = '';
for (var key in value) {
if (value[key]) {
if (res) { res += ' '; }
res += key;
}
}
return res
}
/* */
var namespaceMap = {
svg: 'http://www.w3.org/2000/svg',
math: 'http://www.w3.org/1998/Math/MathML'
};
var isHTMLTag = makeMap(
'html,body,base,head,link,meta,style,title,' +
'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
'embed,object,param,source,canvas,script,noscript,del,ins,' +
'caption,col,colgroup,table,thead,tbody,td,th,tr,' +
'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +
'output,progress,select,textarea,' +
'details,dialog,menu,menuitem,summary,' +
'content,element,shadow,template,blockquote,iframe,tfoot'
);
// this map is intentionally selective, only covering SVG elements that may
// contain child elements.
var isSVG = makeMap(
'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
true
);
var isPreTag = function (tag) { return tag === 'pre'; };
var isReservedTag = function (tag) {
return isHTMLTag(tag) || isSVG(tag)
};
function getTagNamespace (tag) {
if (isSVG(tag)) {
return 'svg'
}
// basic support for MathML
// note it doesn't support other MathML elements being component roots
if (tag === 'math') {
return 'math'
}
}
var unknownElementCache = Object.create(null);
function isUnknownElement (tag) {
/* istanbul ignore if */
if (!inBrowser) {
return true
}
if (isReservedTag(tag)) {
return false
}
tag = tag.toLowerCase();
/* istanbul ignore if */
if (unknownElementCache[tag] != null) {
return unknownElementCache[tag]
}
var el = document.createElement(tag);
if (tag.indexOf('-') > -1) {
// http://stackoverflow.com/a/28210364/1070244
return (unknownElementCache[tag] = (
el.constructor === window.HTMLUnknownElement ||
el.constructor === window.HTMLElement
))
} else {
return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))
}
}
/* */
/**
* Query an element selector if it's not an element already.
*/
function query (el) {
if (typeof el === 'string') {
var selected = document.querySelector(el);
if (!selected) {
"development" !== 'production' && warn(
'Cannot find element: ' + el
);
return document.createElement('div')
}
return selected
} else {
return el
}
}
/* */
function createElement$1 (tagName, vnode) {
var elm = document.createElement(tagName);
if (tagName !== 'select') {
return elm
}
// false or null will remove the attribute but undefined will not
if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
elm.setAttribute('multiple', 'multiple');
}
return elm
}
function createElementNS (namespace, tagName) {
return document.createElementNS(namespaceMap[namespace], tagName)
}
function createTextNode (text) {
return document.createTextNode(text)
}
function createComment (text) {
return document.createComment(text)
}
function insertBefore (parentNode, newNode, referenceNode) {
parentNode.insertBefore(newNode, referenceNode);
}
function removeChild (node, child) {
node.removeChild(child);
}
function appendChild (node, child) {
node.appendChild(child);
}
function parentNode (node) {
return node.parentNode
}
function nextSibling (node) {
return node.nextSibling
}
function tagName (node) {
return node.tagName
}
function setTextContent (node, text) {
node.textContent = text;
}
function setAttribute (node, key, val) {
node.setAttribute(key, val);
}
var nodeOps = Object.freeze({
createElement: createElement$1,
createElementNS: createElementNS,
createTextNode: createTextNode,
createComment: createComment,
insertBefore: insertBefore,
removeChild: removeChild,
appendChild: appendChild,
parentNode: parentNode,
nextSibling: nextSibling,
tagName: tagName,
setTextContent: setTextContent,
setAttribute: setAttribute
});
/* */
var ref = {
create: function create (_, vnode) {
registerRef(vnode);
},
update: function update (oldVnode, vnode) {
if (oldVnode.data.ref !== vnode.data.ref) {
registerRef(oldVnode, true);
registerRef(vnode);
}
},
destroy: function destroy (vnode) {
registerRef(vnode, true);
}
};
function registerRef (vnode, isRemoval) {
var key = vnode.data.ref;
if (!key) { return }
var vm = vnode.context;
var ref = vnode.componentInstance || vnode.elm;
var refs = vm.$refs;
if (isRemoval) {
if (Array.isArray(refs[key])) {
remove(refs[key], ref);
} else if (refs[key] === ref) {
refs[key] = undefined;
}
} else {
if (vnode.data.refInFor) {
if (!Array.isArray(refs[key])) {
refs[key] = [ref];
} else if (refs[key].indexOf(ref) < 0) {
// $flow-disable-line
refs[key].push(ref);
}
} else {
refs[key] = ref;
}
}
}
/**
* Virtual DOM patching algorithm based on Snabbdom by
* Simon Friis Vindum (@paldepind)
* Licensed under the MIT License
* https://github.com/paldepind/snabbdom/blob/master/LICENSE
*
* modified by Evan You (@yyx990803)
*
/*
* Not type-checking this because this file is perf-critical and the cost
* of making flow understand it is not worth it.
*/
var emptyNode = new VNode('', {}, []);
var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
function sameVnode (a, b) {
return (
a.key === b.key && (
(
a.tag === b.tag &&
a.isComment === b.isComment &&
isDef(a.data) === isDef(b.data) &&
sameInputType(a, b)
) || (
isTrue(a.isAsyncPlaceholder) &&
a.asyncFactory === b.asyncFactory &&
isUndef(b.asyncFactory.error)
)
)
)
}
// Some browsers do not support dynamically changing type for <input>
// so they need to be treated as different nodes
function sameInputType (a, b) {
if (a.tag !== 'input') { return true }
var i;
var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;
var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;
return typeA === typeB
}
function createKeyToOldIdx (children, beginIdx, endIdx) {
var i, key;
var map = {};
for (i = beginIdx; i <= endIdx; ++i) {
key = children[i].key;
if (isDef(key)) { map[key] = i; }
}
return map
}
function createPatchFunction (backend) {
var i, j;
var cbs = {};
var modules = backend.modules;
var nodeOps = backend.nodeOps;
for (i = 0; i < hooks.length; ++i) {
cbs[hooks[i]] = [];
for (j = 0; j < modules.length; ++j) {
if (isDef(modules[j][hooks[i]])) {
cbs[hooks[i]].push(modules[j][hooks[i]]);
}
}
}
function emptyNodeAt (elm) {
return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
}
function createRmCb (childElm, listeners) {
function remove$$1 () {
if (--remove$$1.listeners === 0) {
removeNode(childElm);
}
}
remove$$1.listeners = listeners;
return remove$$1
}
function removeNode (el) {
var parent = nodeOps.parentNode(el);
// element may have already been removed due to v-html / v-text
if (isDef(parent)) {
nodeOps.removeChild(parent, el);
}
}
var inPre = 0;
function createElm (vnode, insertedVnodeQueue, parentElm, refElm, nested) {
vnode.isRootInsert = !nested; // for transition enter check
if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {
return
}
var data = vnode.data;
var children = vnode.children;
var tag = vnode.tag;
if (isDef(tag)) {
if (true) {
if (data && data.pre) {
inPre++;
}
if (
!inPre &&
!vnode.ns &&
!(config.ignoredElements.length && config.ignoredElements.indexOf(tag) > -1) &&
config.isUnknownElement(tag)
) {
warn(
'Unknown custom element: <' + tag + '> - did you ' +
'register the component correctly? For recursive components, ' +
'make sure to provide the "name" option.',
vnode.context
);
}
}
vnode.elm = vnode.ns
? nodeOps.createElementNS(vnode.ns, tag)
: nodeOps.createElement(tag, vnode);
setScope(vnode);
/* istanbul ignore if */
{
createChildren(vnode, children, insertedVnodeQueue);
if (isDef(data)) {
invokeCreateHooks(vnode, insertedVnodeQueue);
}
insert(parentElm, vnode.elm, refElm);
}
if ("development" !== 'production' && data && data.pre) {
inPre--;
}
} else if (isTrue(vnode.isComment)) {
vnode.elm = nodeOps.createComment(vnode.text);
insert(parentElm, vnode.elm, refElm);
} else {
vnode.elm = nodeOps.createTextNode(vnode.text);
insert(parentElm, vnode.elm, refElm);
}
}
function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
var i = vnode.data;
if (isDef(i)) {
var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;
if (isDef(i = i.hook) && isDef(i = i.init)) {
i(vnode, false /* hydrating */, parentElm, refElm);
}
// after calling the init hook, if the vnode is a child component
// it should've created a child instance and mounted it. the child
// component also has set the placeholder vnode's elm.
// in that case we can just return the element and be done.
if (isDef(vnode.componentInstance)) {
initComponent(vnode, insertedVnodeQueue);
if (isTrue(isReactivated)) {
reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);
}
return true
}
}
}
function initComponent (vnode, insertedVnodeQueue) {
if (isDef(vnode.data.pendingInsert)) {
insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
vnode.data.pendingInsert = null;
}
vnode.elm = vnode.componentInstance.$el;
if (isPatchable(vnode)) {
invokeCreateHooks(vnode, insertedVnodeQueue);
setScope(vnode);
} else {
// empty component root.
// skip all element-related modules except for ref (#3455)
registerRef(vnode);
// make sure to invoke the insert hook
insertedVnodeQueue.push(vnode);
}
}
function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
var i;
// hack for #4339: a reactivated component with inner transition
// does not trigger because the inner node's created hooks are not called
// again. It's not ideal to involve module-specific logic in here but
// there doesn't seem to be a better way to do it.
var innerNode = vnode;
while (innerNode.componentInstance) {
innerNode = innerNode.componentInstance._vnode;
if (isDef(i = innerNode.data) && isDef(i = i.transition)) {
for (i = 0; i < cbs.activate.length; ++i) {
cbs.activate[i](emptyNode, innerNode);
}
insertedVnodeQueue.push(innerNode);
break
}
}
// unlike a newly created component,
// a reactivated keep-alive component doesn't insert itself
insert(parentElm, vnode.elm, refElm);
}
function insert (parent, elm, ref$$1) {
if (isDef(parent)) {
if (isDef(ref$$1)) {
if (ref$$1.parentNode === parent) {
nodeOps.insertBefore(parent, elm, ref$$1);
}
} else {
nodeOps.appendChild(parent, elm);
}
}
}
function createChildren (vnode, children, insertedVnodeQueue) {
if (Array.isArray(children)) {
for (var i = 0; i < children.length; ++i) {
createElm(children[i], insertedVnodeQueue, vnode.elm, null, true);
}
} else if (isPrimitive(vnode.text)) {
nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(vnode.text));
}
}
function isPatchable (vnode) {
while (vnode.componentInstance) {
vnode = vnode.componentInstance._vnode;
}
return isDef(vnode.tag)
}
function invokeCreateHooks (vnode, insertedVnodeQueue) {
for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
cbs.create[i$1](emptyNode, vnode);
}
i = vnode.data.hook; // Reuse variable
if (isDef(i)) {
if (isDef(i.create)) { i.create(emptyNode, vnode); }
if (isDef(i.insert)) { insertedVnodeQueue.push(vnode); }
}
}
// set scope id attribute for scoped CSS.
// this is implemented as a special case to avoid the overhead
// of going through the normal attribute patching process.
function setScope (vnode) {
var i;
var ancestor = vnode;
while (ancestor) {
if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {
nodeOps.setAttribute(vnode.elm, i, '');
}
ancestor = ancestor.parent;
}
// for slot content they should also get the scopeId from the host instance.
if (isDef(i = activeInstance) &&
i !== vnode.context &&
isDef(i = i.$options._scopeId)
) {
nodeOps.setAttribute(vnode.elm, i, '');
}
}
function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {
for (; startIdx <= endIdx; ++startIdx) {
createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm);
}
}
function invokeDestroyHook (vnode) {
var i, j;
var data = vnode.data;
if (isDef(data)) {
if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }
for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }
}
if (isDef(i = vnode.children)) {
for (j = 0; j < vnode.children.length; ++j) {
invokeDestroyHook(vnode.children[j]);
}
}
}
function removeVnodes (parentElm, vnodes, startIdx, endIdx) {
for (; startIdx <= endIdx; ++startIdx) {
var ch = vnodes[startIdx];
if (isDef(ch)) {
if (isDef(ch.tag)) {
removeAndInvokeRemoveHook(ch);
invokeDestroyHook(ch);
} else { // Text node
removeNode(ch.elm);
}
}
}
}
function removeAndInvokeRemoveHook (vnode, rm) {
if (isDef(rm) || isDef(vnode.data)) {
var i;
var listeners = cbs.remove.length + 1;
if (isDef(rm)) {
// we have a recursively passed down rm callback
// increase the listeners count
rm.listeners += listeners;
} else {
// directly removing
rm = createRmCb(vnode.elm, listeners);
}
// recursively invoke hooks on child component root node
if (isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data)) {
removeAndInvokeRemoveHook(i, rm);
}
for (i = 0; i < cbs.remove.length; ++i) {
cbs.remove[i](vnode, rm);
}
if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {
i(vnode, rm);
} else {
rm();
}
} else {
removeNode(vnode.elm);
}
}
function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {
var oldStartIdx = 0;
var newStartIdx = 0;
var oldEndIdx = oldCh.length - 1;
var oldStartVnode = oldCh[0];
var oldEndVnode = oldCh[oldEndIdx];
var newEndIdx = newCh.length - 1;
var newStartVnode = newCh[0];
var newEndVnode = newCh[newEndIdx];
var oldKeyToIdx, idxInOld, elmToMove, refElm;
// removeOnly is a special flag used only by <transition-group>
// to ensure removed elements stay in correct relative positions
// during leaving transitions
var canMove = !removeOnly;
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
if (isUndef(oldStartVnode)) {
oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left
} else if (isUndef(oldEndVnode)) {
oldEndVnode = oldCh[--oldEndIdx];
} else if (sameVnode(oldStartVnode, newStartVnode)) {
patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue);
oldStartVnode = oldCh[++oldStartIdx];
newStartVnode = newCh[++newStartIdx];
} else if (sameVnode(oldEndVnode, newEndVnode)) {
patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue);
oldEndVnode = oldCh[--oldEndIdx];
newEndVnode = newCh[--newEndIdx];
} else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right
patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue);
canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));
oldStartVnode = oldCh[++oldStartIdx];
newEndVnode = newCh[--newEndIdx];
} else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left
patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue);
canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
oldEndVnode = oldCh[--oldEndIdx];
newStartVnode = newCh[++newStartIdx];
} else {
if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }
idxInOld = isDef(newStartVnode.key) ? oldKeyToIdx[newStartVnode.key] : null;
if (isUndef(idxInOld)) { // New element
createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);
newStartVnode = newCh[++newStartIdx];
} else {
elmToMove = oldCh[idxInOld];
/* istanbul ignore if */
if ("development" !== 'production' && !elmToMove) {
warn(
'It seems there are duplicate keys that is causing an update error. ' +
'Make sure each v-for item has a unique key.'
);
}
if (sameVnode(elmToMove, newStartVnode)) {
patchVnode(elmToMove, newStartVnode, insertedVnodeQueue);
oldCh[idxInOld] = undefined;
canMove && nodeOps.insertBefore(parentElm, elmToMove.elm, oldStartVnode.elm);
newStartVnode = newCh[++newStartIdx];
} else {
// same key but different element. treat as new element
createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);
newStartVnode = newCh[++newStartIdx];
}
}
}
}
if (oldStartIdx > oldEndIdx) {
refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;
addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
} else if (newStartIdx > newEndIdx) {
removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);
}
}
function patchVnode (oldVnode, vnode, insertedVnodeQueue, removeOnly) {
if (oldVnode === vnode) {
return
}
var elm = vnode.elm = oldVnode.elm;
if (isTrue(oldVnode.isAsyncPlaceholder)) {
if (isDef(vnode.asyncFactory.resolved)) {
hydrate(oldVnode.elm, vnode, insertedVnodeQueue);
} else {
vnode.isAsyncPlaceholder = true;
}
return
}
// reuse element for static trees.
// note we only do this if the vnode is cloned -
// if the new node is not cloned it means the render functions have been
// reset by the hot-reload-api and we need to do a proper re-render.
if (isTrue(vnode.isStatic) &&
isTrue(oldVnode.isStatic) &&
vnode.key === oldVnode.key &&
(isTrue(vnode.isCloned) || isTrue(vnode.isOnce))
) {
vnode.componentInstance = oldVnode.componentInstance;
return
}
var i;
var data = vnode.data;
if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {
i(oldVnode, vnode);
}
var oldCh = oldVnode.children;
var ch = vnode.children;
if (isDef(data) && isPatchable(vnode)) {
for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }
if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }
}
if (isUndef(vnode.text)) {
if (isDef(oldCh) && isDef(ch)) {
if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }
} else if (isDef(ch)) {
if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }
addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
} else if (isDef(oldCh)) {
removeVnodes(elm, oldCh, 0, oldCh.length - 1);
} else if (isDef(oldVnode.text)) {
nodeOps.setTextContent(elm, '');
}
} else if (oldVnode.text !== vnode.text) {
nodeOps.setTextContent(elm, vnode.text);
}
if (isDef(data)) {
if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }
}
}
function invokeInsertHook (vnode, queue, initial) {
// delay insert hooks for component root nodes, invoke them after the
// element is really inserted
if (isTrue(initial) && isDef(vnode.parent)) {
vnode.parent.data.pendingInsert = queue;
} else {
for (var i = 0; i < queue.length; ++i) {
queue[i].data.hook.insert(queue[i]);
}
}
}
var bailed = false;
// list of modules that can skip create hook during hydration because they
// are already rendered on the client or has no need for initialization
var isRenderedModule = makeMap('attrs,style,class,staticClass,staticStyle,key');
// Note: this is a browser-only function so we can assume elms are DOM nodes.
function hydrate (elm, vnode, insertedVnodeQueue) {
if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {
vnode.elm = elm;
vnode.isAsyncPlaceholder = true;
return true
}
if (true) {
if (!assertNodeMatch(elm, vnode)) {
return false
}
}
vnode.elm = elm;
var tag = vnode.tag;
var data = vnode.data;
var children = vnode.children;
if (isDef(data)) {
if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }
if (isDef(i = vnode.componentInstance)) {
// child component. it should have hydrated its own tree.
initComponent(vnode, insertedVnodeQueue);
return true
}
}
if (isDef(tag)) {
if (isDef(children)) {
// empty element, allow client to pick up and populate children
if (!elm.hasChildNodes()) {
createChildren(vnode, children, insertedVnodeQueue);
} else {
var childrenMatch = true;
var childNode = elm.firstChild;
for (var i$1 = 0; i$1 < children.length; i$1++) {
if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue)) {
childrenMatch = false;
break
}
childNode = childNode.nextSibling;
}
// if childNode is not null, it means the actual childNodes list is
// longer than the virtual children list.
if (!childrenMatch || childNode) {
if ("development" !== 'production' &&
typeof console !== 'undefined' &&
!bailed
) {
bailed = true;
console.warn('Parent: ', elm);
console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);
}
return false
}
}
}
if (isDef(data)) {
for (var key in data) {
if (!isRenderedModule(key)) {
invokeCreateHooks(vnode, insertedVnodeQueue);
break
}
}
}
} else if (elm.data !== vnode.text) {
elm.data = vnode.text;
}
return true
}
function assertNodeMatch (node, vnode) {
if (isDef(vnode.tag)) {
return (
vnode.tag.indexOf('vue-component') === 0 ||
vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
)
} else {
return node.nodeType === (vnode.isComment ? 8 : 3)
}
}
return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {
if (isUndef(vnode)) {
if (isDef(oldVnode)) { invokeDestroyHook(oldVnode); }
return
}
var isInitialPatch = false;
var insertedVnodeQueue = [];
if (isUndef(oldVnode)) {
// empty mount (likely as component), create new root element
isInitialPatch = true;
createElm(vnode, insertedVnodeQueue, parentElm, refElm);
} else {
var isRealElement = isDef(oldVnode.nodeType);
if (!isRealElement && sameVnode(oldVnode, vnode)) {
// patch existing root node
patchVnode(oldVnode, vnode, insertedVnodeQueue, removeOnly);
} else {
if (isRealElement) {
// mounting to a real element
// check if this is server-rendered content and if we can perform
// a successful hydration.
if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {
oldVnode.removeAttribute(SSR_ATTR);
hydrating = true;
}
if (isTrue(hydrating)) {
if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {
invokeInsertHook(vnode, insertedVnodeQueue, true);
return oldVnode
} else if (true) {
warn(
'The client-side rendered virtual DOM tree is not matching ' +
'server-rendered content. This is likely caused by incorrect ' +
'HTML markup, for example nesting block-level elements inside ' +
'<p>, or missing <tbody>. Bailing hydration and performing ' +
'full client-side render.'
);
}
}
// either not server-rendered, or hydration failed.
// create an empty node and replace it
oldVnode = emptyNodeAt(oldVnode);
}
// replacing existing element
var oldElm = oldVnode.elm;
var parentElm$1 = nodeOps.parentNode(oldElm);
createElm(
vnode,
insertedVnodeQueue,
// extremely rare edge case: do not insert if old element is in a
// leaving transition. Only happens when combining transition +
// keep-alive + HOCs. (#4590)
oldElm._leaveCb ? null : parentElm$1,
nodeOps.nextSibling(oldElm)
);
if (isDef(vnode.parent)) {
// component root element replaced.
// update parent placeholder node element, recursively
var ancestor = vnode.parent;
while (ancestor) {
ancestor.elm = vnode.elm;
ancestor = ancestor.parent;
}
if (isPatchable(vnode)) {
for (var i = 0; i < cbs.create.length; ++i) {
cbs.create[i](emptyNode, vnode.parent);
}
}
}
if (isDef(parentElm$1)) {
removeVnodes(parentElm$1, [oldVnode], 0, 0);
} else if (isDef(oldVnode.tag)) {
invokeDestroyHook(oldVnode);
}
}
}
invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);
return vnode.elm
}
}
/* */
var directives = {
create: updateDirectives,
update: updateDirectives,
destroy: function unbindDirectives (vnode) {
updateDirectives(vnode, emptyNode);
}
};
function updateDirectives (oldVnode, vnode) {
if (oldVnode.data.directives || vnode.data.directives) {
_update(oldVnode, vnode);
}
}
function _update (oldVnode, vnode) {
var isCreate = oldVnode === emptyNode;
var isDestroy = vnode === emptyNode;
var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);
var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);
var dirsWithInsert = [];
var dirsWithPostpatch = [];
var key, oldDir, dir;
for (key in newDirs) {
oldDir = oldDirs[key];
dir = newDirs[key];
if (!oldDir) {
// new directive, bind
callHook$1(dir, 'bind', vnode, oldVnode);
if (dir.def && dir.def.inserted) {
dirsWithInsert.push(dir);
}
} else {
// existing directive, update
dir.oldValue = oldDir.value;
callHook$1(dir, 'update', vnode, oldVnode);
if (dir.def && dir.def.componentUpdated) {
dirsWithPostpatch.push(dir);
}
}
}
if (dirsWithInsert.length) {
var callInsert = function () {
for (var i = 0; i < dirsWithInsert.length; i++) {
callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);
}
};
if (isCreate) {
mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'insert', callInsert);
} else {
callInsert();
}
}
if (dirsWithPostpatch.length) {
mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'postpatch', function () {
for (var i = 0; i < dirsWithPostpatch.length; i++) {
callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);
}
});
}
if (!isCreate) {
for (key in oldDirs) {
if (!newDirs[key]) {
// no longer present, unbind
callHook$1(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);
}
}
}
}
var emptyModifiers = Object.create(null);
function normalizeDirectives$1 (
dirs,
vm
) {
var res = Object.create(null);
if (!dirs) {
return res
}
var i, dir;
for (i = 0; i < dirs.length; i++) {
dir = dirs[i];
if (!dir.modifiers) {
dir.modifiers = emptyModifiers;
}
res[getRawDirName(dir)] = dir;
dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);
}
return res
}
function getRawDirName (dir) {
return dir.rawName || ((dir.name) + "." + (Object.keys(dir.modifiers || {}).join('.')))
}
function callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {
var fn = dir.def && dir.def[hook];
if (fn) {
try {
fn(vnode.elm, dir, vnode, oldVnode, isDestroy);
} catch (e) {
handleError(e, vnode.context, ("directive " + (dir.name) + " " + hook + " hook"));
}
}
}
var baseModules = [
ref,
directives
];
/* */
function updateAttrs (oldVnode, vnode) {
var opts = vnode.componentOptions;
if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {
return
}
if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {
return
}
var key, cur, old;
var elm = vnode.elm;
var oldAttrs = oldVnode.data.attrs || {};
var attrs = vnode.data.attrs || {};
// clone observed objects, as the user probably wants to mutate it
if (isDef(attrs.__ob__)) {
attrs = vnode.data.attrs = extend({}, attrs);
}
for (key in attrs) {
cur = attrs[key];
old = oldAttrs[key];
if (old !== cur) {
setAttr(elm, key, cur);
}
}
// #4391: in IE9, setting type can reset value for input[type=radio]
/* istanbul ignore if */
if (isIE9 && attrs.value !== oldAttrs.value) {
setAttr(elm, 'value', attrs.value);
}
for (key in oldAttrs) {
if (isUndef(attrs[key])) {
if (isXlink(key)) {
elm.removeAttributeNS(xlinkNS, getXlinkProp(key));
} else if (!isEnumeratedAttr(key)) {
elm.removeAttribute(key);
}
}
}
}
function setAttr (el, key, value) {
if (isBooleanAttr(key)) {
// set attribute for blank value
// e.g. <option disabled>Select one</option>
if (isFalsyAttrValue(value)) {
el.removeAttribute(key);
} else {
el.setAttribute(key, key);
}
} else if (isEnumeratedAttr(key)) {
el.setAttribute(key, isFalsyAttrValue(value) || value === 'false' ? 'false' : 'true');
} else if (isXlink(key)) {
if (isFalsyAttrValue(value)) {
el.removeAttributeNS(xlinkNS, getXlinkProp(key));
} else {
el.setAttributeNS(xlinkNS, key, value);
}
} else {
if (isFalsyAttrValue(value)) {
el.removeAttribute(key);
} else {
el.setAttribute(key, value);
}
}
}
var attrs = {
create: updateAttrs,
update: updateAttrs
};
/* */
function updateClass (oldVnode, vnode) {
var el = vnode.elm;
var data = vnode.data;
var oldData = oldVnode.data;
if (
isUndef(data.staticClass) &&
isUndef(data.class) && (
isUndef(oldData) || (
isUndef(oldData.staticClass) &&
isUndef(oldData.class)
)
)
) {
return
}
var cls = genClassForVnode(vnode);
// handle transition classes
var transitionClass = el._transitionClasses;
if (isDef(transitionClass)) {
cls = concat(cls, stringifyClass(transitionClass));
}
// set the class
if (cls !== el._prevClass) {
el.setAttribute('class', cls);
el._prevClass = cls;
}
}
var klass = {
create: updateClass,
update: updateClass
};
/* */
var validDivisionCharRE = /[\w).+\-_$\]]/;
function parseFilters (exp) {
var inSingle = false;
var inDouble = false;
var inTemplateString = false;
var inRegex = false;
var curly = 0;
var square = 0;
var paren = 0;
var lastFilterIndex = 0;
var c, prev, i, expression, filters;
for (i = 0; i < exp.length; i++) {
prev = c;
c = exp.charCodeAt(i);
if (inSingle) {
if (c === 0x27 && prev !== 0x5C) { inSingle = false; }
} else if (inDouble) {
if (c === 0x22 && prev !== 0x5C) { inDouble = false; }
} else if (inTemplateString) {
if (c === 0x60 && prev !== 0x5C) { inTemplateString = false; }
} else if (inRegex) {
if (c === 0x2f && prev !== 0x5C) { inRegex = false; }
} else if (
c === 0x7C && // pipe
exp.charCodeAt(i + 1) !== 0x7C &&
exp.charCodeAt(i - 1) !== 0x7C &&
!curly && !square && !paren
) {
if (expression === undefined) {
// first filter, end of expression
lastFilterIndex = i + 1;
expression = exp.slice(0, i).trim();
} else {
pushFilter();
}
} else {
switch (c) {
case 0x22: inDouble = true; break // "
case 0x27: inSingle = true; break // '
case 0x60: inTemplateString = true; break // `
case 0x28: paren++; break // (
case 0x29: paren--; break // )
case 0x5B: square++; break // [
case 0x5D: square--; break // ]
case 0x7B: curly++; break // {
case 0x7D: curly--; break // }
}
if (c === 0x2f) { // /
var j = i - 1;
var p = (void 0);
// find first non-whitespace prev char
for (; j >= 0; j--) {
p = exp.charAt(j);
if (p !== ' ') { break }
}
if (!p || !validDivisionCharRE.test(p)) {
inRegex = true;
}
}
}
}
if (expression === undefined) {
expression = exp.slice(0, i).trim();
} else if (lastFilterIndex !== 0) {
pushFilter();
}
function pushFilter () {
(filters || (filters = [])).push(exp.slice(lastFilterIndex, i).trim());
lastFilterIndex = i + 1;
}
if (filters) {
for (i = 0; i < filters.length; i++) {
expression = wrapFilter(expression, filters[i]);
}
}
return expression
}
function wrapFilter (exp, filter) {
var i = filter.indexOf('(');
if (i < 0) {
// _f: resolveFilter
return ("_f(\"" + filter + "\")(" + exp + ")")
} else {
var name = filter.slice(0, i);
var args = filter.slice(i + 1);
return ("_f(\"" + name + "\")(" + exp + "," + args)
}
}
/* */
function baseWarn (msg) {
console.error(("[Vue compiler]: " + msg));
}
function pluckModuleFunction (
modules,
key
) {
return modules
? modules.map(function (m) { return m[key]; }).filter(function (_) { return _; })
: []
}
function addProp (el, name, value) {
(el.props || (el.props = [])).push({ name: name, value: value });
}
function addAttr (el, name, value) {
(el.attrs || (el.attrs = [])).push({ name: name, value: value });
}
function addDirective (
el,
name,
rawName,
value,
arg,
modifiers
) {
(el.directives || (el.directives = [])).push({ name: name, rawName: rawName, value: value, arg: arg, modifiers: modifiers });
}
function addHandler (
el,
name,
value,
modifiers,
important,
warn
) {
// warn prevent and passive modifier
/* istanbul ignore if */
if (
"development" !== 'production' && warn &&
modifiers && modifiers.prevent && modifiers.passive
) {
warn(
'passive and prevent can\'t be used together. ' +
'Passive handler can\'t prevent default event.'
);
}
// check capture modifier
if (modifiers && modifiers.capture) {
delete modifiers.capture;
name = '!' + name; // mark the event as captured
}
if (modifiers && modifiers.once) {
delete modifiers.once;
name = '~' + name; // mark the event as once
}
/* istanbul ignore if */
if (modifiers && modifiers.passive) {
delete modifiers.passive;
name = '&' + name; // mark the event as passive
}
var events;
if (modifiers && modifiers.native) {
delete modifiers.native;
events = el.nativeEvents || (el.nativeEvents = {});
} else {
events = el.events || (el.events = {});
}
var newHandler = { value: value, modifiers: modifiers };
var handlers = events[name];
/* istanbul ignore if */
if (Array.isArray(handlers)) {
important ? handlers.unshift(newHandler) : handlers.push(newHandler);
} else if (handlers) {
events[name] = important ? [newHandler, handlers] : [handlers, newHandler];
} else {
events[name] = newHandler;
}
}
function getBindingAttr (
el,
name,
getStatic
) {
var dynamicValue =
getAndRemoveAttr(el, ':' + name) ||
getAndRemoveAttr(el, 'v-bind:' + name);
if (dynamicValue != null) {
return parseFilters(dynamicValue)
} else if (getStatic !== false) {
var staticValue = getAndRemoveAttr(el, name);
if (staticValue != null) {
return JSON.stringify(staticValue)
}
}
}
function getAndRemoveAttr (el, name) {
var val;
if ((val = el.attrsMap[name]) != null) {
var list = el.attrsList;
for (var i = 0, l = list.length; i < l; i++) {
if (list[i].name === name) {
list.splice(i, 1);
break
}
}
}
return val
}
/* */
/**
* Cross-platform code generation for component v-model
*/
function genComponentModel (
el,
value,
modifiers
) {
var ref = modifiers || {};
var number = ref.number;
var trim = ref.trim;
var baseValueExpression = '$$v';
var valueExpression = baseValueExpression;
if (trim) {
valueExpression =
"(typeof " + baseValueExpression + " === 'string'" +
"? " + baseValueExpression + ".trim()" +
": " + baseValueExpression + ")";
}
if (number) {
valueExpression = "_n(" + valueExpression + ")";
}
var assignment = genAssignmentCode(value, valueExpression);
el.model = {
value: ("(" + value + ")"),
expression: ("\"" + value + "\""),
callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
};
}
/**
* Cross-platform codegen helper for generating v-model value assignment code.
*/
function genAssignmentCode (
value,
assignment
) {
var modelRs = parseModel(value);
if (modelRs.idx === null) {
return (value + "=" + assignment)
} else {
return ("$set(" + (modelRs.exp) + ", " + (modelRs.idx) + ", " + assignment + ")")
}
}
/**
* parse directive model to do the array update transform. a[idx] = val => $$a.splice($$idx, 1, val)
*
* for loop possible cases:
*
* - test
* - test[idx]
* - test[test1[idx]]
* - test["a"][idx]
* - xxx.test[a[a].test1[idx]]
* - test.xxx.a["asa"][test1[idx]]
*
*/
var len;
var str;
var chr;
var index$1;
var expressionPos;
var expressionEndPos;
function parseModel (val) {
str = val;
len = str.length;
index$1 = expressionPos = expressionEndPos = 0;
if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {
return {
exp: val,
idx: null
}
}
while (!eof()) {
chr = next();
/* istanbul ignore if */
if (isStringStart(chr)) {
parseString(chr);
} else if (chr === 0x5B) {
parseBracket(chr);
}
}
return {
exp: val.substring(0, expressionPos),
idx: val.substring(expressionPos + 1, expressionEndPos)
}
}
function next () {
return str.charCodeAt(++index$1)
}
function eof () {
return index$1 >= len
}
function isStringStart (chr) {
return chr === 0x22 || chr === 0x27
}
function parseBracket (chr) {
var inBracket = 1;
expressionPos = index$1;
while (!eof()) {
chr = next();
if (isStringStart(chr)) {
parseString(chr);
continue
}
if (chr === 0x5B) { inBracket++; }
if (chr === 0x5D) { inBracket--; }
if (inBracket === 0) {
expressionEndPos = index$1;
break
}
}
}
function parseString (chr) {
var stringQuote = chr;
while (!eof()) {
chr = next();
if (chr === stringQuote) {
break
}
}
}
/* */
var warn$1;
// in some cases, the event used has to be determined at runtime
// so we used some reserved tokens during compile.
var RANGE_TOKEN = '__r';
var CHECKBOX_RADIO_TOKEN = '__c';
function model (
el,
dir,
_warn
) {
warn$1 = _warn;
var value = dir.value;
var modifiers = dir.modifiers;
var tag = el.tag;
var type = el.attrsMap.type;
if (true) {
var dynamicType = el.attrsMap['v-bind:type'] || el.attrsMap[':type'];
if (tag === 'input' && dynamicType) {
warn$1(
"<input :type=\"" + dynamicType + "\" v-model=\"" + value + "\">:\n" +
"v-model does not support dynamic input types. Use v-if branches instead."
);
}
// inputs with type="file" are read only and setting the input's
// value will throw an error.
if (tag === 'input' && type === 'file') {
warn$1(
"<" + (el.tag) + " v-model=\"" + value + "\" type=\"file\">:\n" +
"File inputs are read only. Use a v-on:change listener instead."
);
}
}
if (el.component) {
genComponentModel(el, value, modifiers);
// component v-model doesn't need extra runtime
return false
} else if (tag === 'select') {
genSelect(el, value, modifiers);
} else if (tag === 'input' && type === 'checkbox') {
genCheckboxModel(el, value, modifiers);
} else if (tag === 'input' && type === 'radio') {
genRadioModel(el, value, modifiers);
} else if (tag === 'input' || tag === 'textarea') {
genDefaultModel(el, value, modifiers);
} else if (!config.isReservedTag(tag)) {
genComponentModel(el, value, modifiers);
// component v-model doesn't need extra runtime
return false
} else if (true) {
warn$1(
"<" + (el.tag) + " v-model=\"" + value + "\">: " +
"v-model is not supported on this element type. " +
'If you are working with contenteditable, it\'s recommended to ' +
'wrap a library dedicated for that purpose inside a custom component.'
);
}
// ensure runtime directive metadata
return true
}
function genCheckboxModel (
el,
value,
modifiers
) {
var number = modifiers && modifiers.number;
var valueBinding = getBindingAttr(el, 'value') || 'null';
var trueValueBinding = getBindingAttr(el, 'true-value') || 'true';
var falseValueBinding = getBindingAttr(el, 'false-value') || 'false';
addProp(el, 'checked',
"Array.isArray(" + value + ")" +
"?_i(" + value + "," + valueBinding + ")>-1" + (
trueValueBinding === 'true'
? (":(" + value + ")")
: (":_q(" + value + "," + trueValueBinding + ")")
)
);
addHandler(el, CHECKBOX_RADIO_TOKEN,
"var $$a=" + value + "," +
'$$el=$event.target,' +
"$$c=$$el.checked?(" + trueValueBinding + "):(" + falseValueBinding + ");" +
'if(Array.isArray($$a)){' +
"var $$v=" + (number ? '_n(' + valueBinding + ')' : valueBinding) + "," +
'$$i=_i($$a,$$v);' +
"if($$el.checked){$$i<0&&(" + value + "=$$a.concat($$v))}" +
"else{$$i>-1&&(" + value + "=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}" +
"}else{" + (genAssignmentCode(value, '$$c')) + "}",
null, true
);
}
function genRadioModel (
el,
value,
modifiers
) {
var number = modifiers && modifiers.number;
var valueBinding = getBindingAttr(el, 'value') || 'null';
valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding;
addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")"));
addHandler(el, CHECKBOX_RADIO_TOKEN, genAssignmentCode(value, valueBinding), null, true);
}
function genSelect (
el,
value,
modifiers
) {
var number = modifiers && modifiers.number;
var selectedVal = "Array.prototype.filter" +
".call($event.target.options,function(o){return o.selected})" +
".map(function(o){var val = \"_value\" in o ? o._value : o.value;" +
"return " + (number ? '_n(val)' : 'val') + "})";
var assignment = '$event.target.multiple ? $$selectedVal : $$selectedVal[0]';
var code = "var $$selectedVal = " + selectedVal + ";";
code = code + " " + (genAssignmentCode(value, assignment));
addHandler(el, 'change', code, null, true);
}
function genDefaultModel (
el,
value,
modifiers
) {
var type = el.attrsMap.type;
var ref = modifiers || {};
var lazy = ref.lazy;
var number = ref.number;
var trim = ref.trim;
var needCompositionGuard = !lazy && type !== 'range';
var event = lazy
? 'change'
: type === 'range'
? RANGE_TOKEN
: 'input';
var valueExpression = '$event.target.value';
if (trim) {
valueExpression = "$event.target.value.trim()";
}
if (number) {
valueExpression = "_n(" + valueExpression + ")";
}
var code = genAssignmentCode(value, valueExpression);
if (needCompositionGuard) {
code = "if($event.target.composing)return;" + code;
}
addProp(el, 'value', ("(" + value + ")"));
addHandler(el, event, code, null, true);
if (trim || number) {
addHandler(el, 'blur', '$forceUpdate()');
}
}
/* */
// normalize v-model event tokens that can only be determined at runtime.
// it's important to place the event as the first in the array because
// the whole point is ensuring the v-model callback gets called before
// user-attached handlers.
function normalizeEvents (on) {
var event;
/* istanbul ignore if */
if (isDef(on[RANGE_TOKEN])) {
// IE input[type=range] only supports `change` event
event = isIE ? 'change' : 'input';
on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
delete on[RANGE_TOKEN];
}
if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
// Chrome fires microtasks in between click/change, leads to #4521
event = isChrome ? 'click' : 'change';
on[event] = [].concat(on[CHECKBOX_RADIO_TOKEN], on[event] || []);
delete on[CHECKBOX_RADIO_TOKEN];
}
}
var target$1;
function add$1 (
event,
handler,
once$$1,
capture,
passive
) {
if (once$$1) {
var oldHandler = handler;
var _target = target$1; // save current target element in closure
handler = function (ev) {
var res = arguments.length === 1
? oldHandler(ev)
: oldHandler.apply(null, arguments);
if (res !== null) {
remove$2(event, handler, capture, _target);
}
};
}
target$1.addEventListener(
event,
handler,
supportsPassive
? { capture: capture, passive: passive }
: capture
);
}
function remove$2 (
event,
handler,
capture,
_target
) {
(_target || target$1).removeEventListener(event, handler, capture);
}
function updateDOMListeners (oldVnode, vnode) {
if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {
return
}
var on = vnode.data.on || {};
var oldOn = oldVnode.data.on || {};
target$1 = vnode.elm;
normalizeEvents(on);
updateListeners(on, oldOn, add$1, remove$2, vnode.context);
}
var events = {
create: updateDOMListeners,
update: updateDOMListeners
};
/* */
function updateDOMProps (oldVnode, vnode) {
if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {
return
}
var key, cur;
var elm = vnode.elm;
var oldProps = oldVnode.data.domProps || {};
var props = vnode.data.domProps || {};
// clone observed objects, as the user probably wants to mutate it
if (isDef(props.__ob__)) {
props = vnode.data.domProps = extend({}, props);
}
for (key in oldProps) {
if (isUndef(props[key])) {
elm[key] = '';
}
}
for (key in props) {
cur = props[key];
// ignore children if the node has textContent or innerHTML,
// as these will throw away existing DOM nodes and cause removal errors
// on subsequent patches (#3360)
if (key === 'textContent' || key === 'innerHTML') {
if (vnode.children) { vnode.children.length = 0; }
if (cur === oldProps[key]) { continue }
}
if (key === 'value') {
// store value as _value as well since
// non-string values will be stringified
elm._value = cur;
// avoid resetting cursor position when value is the same
var strCur = isUndef(cur) ? '' : String(cur);
if (shouldUpdateValue(elm, vnode, strCur)) {
elm.value = strCur;
}
} else {
elm[key] = cur;
}
}
}
// check platforms/web/util/attrs.js acceptValue
function shouldUpdateValue (
elm,
vnode,
checkVal
) {
return (!elm.composing && (
vnode.tag === 'option' ||
isDirty(elm, checkVal) ||
isInputChanged(elm, checkVal)
))
}
function isDirty (elm, checkVal) {
// return true when textbox (.number and .trim) loses focus and its value is
// not equal to the updated value
var notInFocus = true;
// #6157
// work around IE bug when accessing document.activeElement in an iframe
try { notInFocus = document.activeElement !== elm; } catch (e) {}
return notInFocus && elm.value !== checkVal
}
function isInputChanged (elm, newVal) {
var value = elm.value;
var modifiers = elm._vModifiers; // injected by v-model runtime
if (isDef(modifiers) && modifiers.number) {
return toNumber(value) !== toNumber(newVal)
}
if (isDef(modifiers) && modifiers.trim) {
return value.trim() !== newVal.trim()
}
return value !== newVal
}
var domProps = {
create: updateDOMProps,
update: updateDOMProps
};
/* */
var parseStyleText = cached(function (cssText) {
var res = {};
var listDelimiter = /;(?![^(]*\))/g;
var propertyDelimiter = /:(.+)/;
cssText.split(listDelimiter).forEach(function (item) {
if (item) {
var tmp = item.split(propertyDelimiter);
tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
}
});
return res
});
// merge static and dynamic style data on the same vnode
function normalizeStyleData (data) {
var style = normalizeStyleBinding(data.style);
// static style is pre-processed into an object during compilation
// and is always a fresh object, so it's safe to merge into it
return data.staticStyle
? extend(data.staticStyle, style)
: style
}
// normalize possible array / string values into Object
function normalizeStyleBinding (bindingStyle) {
if (Array.isArray(bindingStyle)) {
return toObject(bindingStyle)
}
if (typeof bindingStyle === 'string') {
return parseStyleText(bindingStyle)
}
return bindingStyle
}
/**
* parent component style should be after child's
* so that parent component's style could override it
*/
function getStyle (vnode, checkChild) {
var res = {};
var styleData;
if (checkChild) {
var childNode = vnode;
while (childNode.componentInstance) {
childNode = childNode.componentInstance._vnode;
if (childNode.data && (styleData = normalizeStyleData(childNode.data))) {
extend(res, styleData);
}
}
}
if ((styleData = normalizeStyleData(vnode.data))) {
extend(res, styleData);
}
var parentNode = vnode;
while ((parentNode = parentNode.parent)) {
if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {
extend(res, styleData);
}
}
return res
}
/* */
var cssVarRE = /^--/;
var importantRE = /\s*!important$/;
var setProp = function (el, name, val) {
/* istanbul ignore if */
if (cssVarRE.test(name)) {
el.style.setProperty(name, val);
} else if (importantRE.test(val)) {
el.style.setProperty(name, val.replace(importantRE, ''), 'important');
} else {
var normalizedName = normalize(name);
if (Array.isArray(val)) {
// Support values array created by autoprefixer, e.g.
// {display: ["-webkit-box", "-ms-flexbox", "flex"]}
// Set them one by one, and the browser will only set those it can recognize
for (var i = 0, len = val.length; i < len; i++) {
el.style[normalizedName] = val[i];
}
} else {
el.style[normalizedName] = val;
}
}
};
var vendorNames = ['Webkit', 'Moz', 'ms'];
var emptyStyle;
var normalize = cached(function (prop) {
emptyStyle = emptyStyle || document.createElement('div').style;
prop = camelize(prop);
if (prop !== 'filter' && (prop in emptyStyle)) {
return prop
}
var capName = prop.charAt(0).toUpperCase() + prop.slice(1);
for (var i = 0; i < vendorNames.length; i++) {
var name = vendorNames[i] + capName;
if (name in emptyStyle) {
return name
}
}
});
function updateStyle (oldVnode, vnode) {
var data = vnode.data;
var oldData = oldVnode.data;
if (isUndef(data.staticStyle) && isUndef(data.style) &&
isUndef(oldData.staticStyle) && isUndef(oldData.style)
) {
return
}
var cur, name;
var el = vnode.elm;
var oldStaticStyle = oldData.staticStyle;
var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};
// if static style exists, stylebinding already merged into it when doing normalizeStyleData
var oldStyle = oldStaticStyle || oldStyleBinding;
var style = normalizeStyleBinding(vnode.data.style) || {};
// store normalized style under a different key for next diff
// make sure to clone it if it's reactive, since the user likley wants
// to mutate it.
vnode.data.normalizedStyle = isDef(style.__ob__)
? extend({}, style)
: style;
var newStyle = getStyle(vnode, true);
for (name in oldStyle) {
if (isUndef(newStyle[name])) {
setProp(el, name, '');
}
}
for (name in newStyle) {
cur = newStyle[name];
if (cur !== oldStyle[name]) {
// ie9 setting to null has no effect, must use empty string
setProp(el, name, cur == null ? '' : cur);
}
}
}
var style = {
create: updateStyle,
update: updateStyle
};
/* */
/**
* Add class with compatibility for SVG since classList is not supported on
* SVG elements in IE
*/
function addClass (el, cls) {
/* istanbul ignore if */
if (!cls || !(cls = cls.trim())) {
return
}
/* istanbul ignore else */
if (el.classList) {
if (cls.indexOf(' ') > -1) {
cls.split(/\s+/).forEach(function (c) { return el.classList.add(c); });
} else {
el.classList.add(cls);
}
} else {
var cur = " " + (el.getAttribute('class') || '') + " ";
if (cur.indexOf(' ' + cls + ' ') < 0) {
el.setAttribute('class', (cur + cls).trim());
}
}
}
/**
* Remove class with compatibility for SVG since classList is not supported on
* SVG elements in IE
*/
function removeClass (el, cls) {
/* istanbul ignore if */
if (!cls || !(cls = cls.trim())) {
return
}
/* istanbul ignore else */
if (el.classList) {
if (cls.indexOf(' ') > -1) {
cls.split(/\s+/).forEach(function (c) { return el.classList.remove(c); });
} else {
el.classList.remove(cls);
}
if (!el.classList.length) {
el.removeAttribute('class');
}
} else {
var cur = " " + (el.getAttribute('class') || '') + " ";
var tar = ' ' + cls + ' ';
while (cur.indexOf(tar) >= 0) {
cur = cur.replace(tar, ' ');
}
cur = cur.trim();
if (cur) {
el.setAttribute('class', cur);
} else {
el.removeAttribute('class');
}
}
}
/* */
function resolveTransition (def$$1) {
if (!def$$1) {
return
}
/* istanbul ignore else */
if (typeof def$$1 === 'object') {
var res = {};
if (def$$1.css !== false) {
extend(res, autoCssTransition(def$$1.name || 'v'));
}
extend(res, def$$1);
return res
} else if (typeof def$$1 === 'string') {
return autoCssTransition(def$$1)
}
}
var autoCssTransition = cached(function (name) {
return {
enterClass: (name + "-enter"),
enterToClass: (name + "-enter-to"),
enterActiveClass: (name + "-enter-active"),
leaveClass: (name + "-leave"),
leaveToClass: (name + "-leave-to"),
leaveActiveClass: (name + "-leave-active")
}
});
var hasTransition = inBrowser && !isIE9;
var TRANSITION = 'transition';
var ANIMATION = 'animation';
// Transition property/event sniffing
var transitionProp = 'transition';
var transitionEndEvent = 'transitionend';
var animationProp = 'animation';
var animationEndEvent = 'animationend';
if (hasTransition) {
/* istanbul ignore if */
if (window.ontransitionend === undefined &&
window.onwebkittransitionend !== undefined
) {
transitionProp = 'WebkitTransition';
transitionEndEvent = 'webkitTransitionEnd';
}
if (window.onanimationend === undefined &&
window.onwebkitanimationend !== undefined
) {
animationProp = 'WebkitAnimation';
animationEndEvent = 'webkitAnimationEnd';
}
}
// binding to window is necessary to make hot reload work in IE in strict mode
var raf = inBrowser && window.requestAnimationFrame
? window.requestAnimationFrame.bind(window)
: setTimeout;
function nextFrame (fn) {
raf(function () {
raf(fn);
});
}
function addTransitionClass (el, cls) {
var transitionClasses = el._transitionClasses || (el._transitionClasses = []);
if (transitionClasses.indexOf(cls) < 0) {
transitionClasses.push(cls);
addClass(el, cls);
}
}
function removeTransitionClass (el, cls) {
if (el._transitionClasses) {
remove(el._transitionClasses, cls);
}
removeClass(el, cls);
}
function whenTransitionEnds (
el,
expectedType,
cb
) {
var ref = getTransitionInfo(el, expectedType);
var type = ref.type;
var timeout = ref.timeout;
var propCount = ref.propCount;
if (!type) { return cb() }
var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;
var ended = 0;
var end = function () {
el.removeEventListener(event, onEnd);
cb();
};
var onEnd = function (e) {
if (e.target === el) {
if (++ended >= propCount) {
end();
}
}
};
setTimeout(function () {
if (ended < propCount) {
end();
}
}, timeout + 1);
el.addEventListener(event, onEnd);
}
var transformRE = /\b(transform|all)(,|$)/;
function getTransitionInfo (el, expectedType) {
var styles = window.getComputedStyle(el);
var transitionDelays = styles[transitionProp + 'Delay'].split(', ');
var transitionDurations = styles[transitionProp + 'Duration'].split(', ');
var transitionTimeout = getTimeout(transitionDelays, transitionDurations);
var animationDelays = styles[animationProp + 'Delay'].split(', ');
var animationDurations = styles[animationProp + 'Duration'].split(', ');
var animationTimeout = getTimeout(animationDelays, animationDurations);
var type;
var timeout = 0;
var propCount = 0;
/* istanbul ignore if */
if (expectedType === TRANSITION) {
if (transitionTimeout > 0) {
type = TRANSITION;
timeout = transitionTimeout;
propCount = transitionDurations.length;
}
} else if (expectedType === ANIMATION) {
if (animationTimeout > 0) {
type = ANIMATION;
timeout = animationTimeout;
propCount = animationDurations.length;
}
} else {
timeout = Math.max(transitionTimeout, animationTimeout);
type = timeout > 0
? transitionTimeout > animationTimeout
? TRANSITION
: ANIMATION
: null;
propCount = type
? type === TRANSITION
? transitionDurations.length
: animationDurations.length
: 0;
}
var hasTransform =
type === TRANSITION &&
transformRE.test(styles[transitionProp + 'Property']);
return {
type: type,
timeout: timeout,
propCount: propCount,
hasTransform: hasTransform
}
}
function getTimeout (delays, durations) {
/* istanbul ignore next */
while (delays.length < durations.length) {
delays = delays.concat(delays);
}
return Math.max.apply(null, durations.map(function (d, i) {
return toMs(d) + toMs(delays[i])
}))
}
function toMs (s) {
return Number(s.slice(0, -1)) * 1000
}
/* */
function enter (vnode, toggleDisplay) {
var el = vnode.elm;
// call leave callback now
if (isDef(el._leaveCb)) {
el._leaveCb.cancelled = true;
el._leaveCb();
}
var data = resolveTransition(vnode.data.transition);
if (isUndef(data)) {
return
}
/* istanbul ignore if */
if (isDef(el._enterCb) || el.nodeType !== 1) {
return
}
var css = data.css;
var type = data.type;
var enterClass = data.enterClass;
var enterToClass = data.enterToClass;
var enterActiveClass = data.enterActiveClass;
var appearClass = data.appearClass;
var appearToClass = data.appearToClass;
var appearActiveClass = data.appearActiveClass;
var beforeEnter = data.beforeEnter;
var enter = data.enter;
var afterEnter = data.afterEnter;
var enterCancelled = data.enterCancelled;
var beforeAppear = data.beforeAppear;
var appear = data.appear;
var afterAppear = data.afterAppear;
var appearCancelled = data.appearCancelled;
var duration = data.duration;
// activeInstance will always be the <transition> component managing this
// transition. One edge case to check is when the <transition> is placed
// as the root node of a child component. In that case we need to check
// <transition>'s parent for appear check.
var context = activeInstance;
var transitionNode = activeInstance.$vnode;
while (transitionNode && transitionNode.parent) {
transitionNode = transitionNode.parent;
context = transitionNode.context;
}
var isAppear = !context._isMounted || !vnode.isRootInsert;
if (isAppear && !appear && appear !== '') {
return
}
var startClass = isAppear && appearClass
? appearClass
: enterClass;
var activeClass = isAppear && appearActiveClass
? appearActiveClass
: enterActiveClass;
var toClass = isAppear && appearToClass
? appearToClass
: enterToClass;
var beforeEnterHook = isAppear
? (beforeAppear || beforeEnter)
: beforeEnter;
var enterHook = isAppear
? (typeof appear === 'function' ? appear : enter)
: enter;
var afterEnterHook = isAppear
? (afterAppear || afterEnter)
: afterEnter;
var enterCancelledHook = isAppear
? (appearCancelled || enterCancelled)
: enterCancelled;
var explicitEnterDuration = toNumber(
isObject(duration)
? duration.enter
: duration
);
if ("development" !== 'production' && explicitEnterDuration != null) {
checkDuration(explicitEnterDuration, 'enter', vnode);
}
var expectsCSS = css !== false && !isIE9;
var userWantsControl = getHookArgumentsLength(enterHook);
var cb = el._enterCb = once(function () {
if (expectsCSS) {
removeTransitionClass(el, toClass);
removeTransitionClass(el, activeClass);
}
if (cb.cancelled) {
if (expectsCSS) {
removeTransitionClass(el, startClass);
}
enterCancelledHook && enterCancelledHook(el);
} else {
afterEnterHook && afterEnterHook(el);
}
el._enterCb = null;
});
if (!vnode.data.show) {
// remove pending leave element on enter by injecting an insert hook
mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'insert', function () {
var parent = el.parentNode;
var pendingNode = parent && parent._pending && parent._pending[vnode.key];
if (pendingNode &&
pendingNode.tag === vnode.tag &&
pendingNode.elm._leaveCb
) {
pendingNode.elm._leaveCb();
}
enterHook && enterHook(el, cb);
});
}
// start enter transition
beforeEnterHook && beforeEnterHook(el);
if (expectsCSS) {
addTransitionClass(el, startClass);
addTransitionClass(el, activeClass);
nextFrame(function () {
addTransitionClass(el, toClass);
removeTransitionClass(el, startClass);
if (!cb.cancelled && !userWantsControl) {
if (isValidDuration(explicitEnterDuration)) {
setTimeout(cb, explicitEnterDuration);
} else {
whenTransitionEnds(el, type, cb);
}
}
});
}
if (vnode.data.show) {
toggleDisplay && toggleDisplay();
enterHook && enterHook(el, cb);
}
if (!expectsCSS && !userWantsControl) {
cb();
}
}
function leave (vnode, rm) {
var el = vnode.elm;
// call enter callback now
if (isDef(el._enterCb)) {
el._enterCb.cancelled = true;
el._enterCb();
}
var data = resolveTransition(vnode.data.transition);
if (isUndef(data)) {
return rm()
}
/* istanbul ignore if */
if (isDef(el._leaveCb) || el.nodeType !== 1) {
return
}
var css = data.css;
var type = data.type;
var leaveClass = data.leaveClass;
var leaveToClass = data.leaveToClass;
var leaveActiveClass = data.leaveActiveClass;
var beforeLeave = data.beforeLeave;
var leave = data.leave;
var afterLeave = data.afterLeave;
var leaveCancelled = data.leaveCancelled;
var delayLeave = data.delayLeave;
var duration = data.duration;
var expectsCSS = css !== false && !isIE9;
var userWantsControl = getHookArgumentsLength(leave);
var explicitLeaveDuration = toNumber(
isObject(duration)
? duration.leave
: duration
);
if ("development" !== 'production' && isDef(explicitLeaveDuration)) {
checkDuration(explicitLeaveDuration, 'leave', vnode);
}
var cb = el._leaveCb = once(function () {
if (el.parentNode && el.parentNode._pending) {
el.parentNode._pending[vnode.key] = null;
}
if (expectsCSS) {
removeTransitionClass(el, leaveToClass);
removeTransitionClass(el, leaveActiveClass);
}
if (cb.cancelled) {
if (expectsCSS) {
removeTransitionClass(el, leaveClass);
}
leaveCancelled && leaveCancelled(el);
} else {
rm();
afterLeave && afterLeave(el);
}
el._leaveCb = null;
});
if (delayLeave) {
delayLeave(performLeave);
} else {
performLeave();
}
function performLeave () {
// the delayed leave may have already been cancelled
if (cb.cancelled) {
return
}
// record leaving element
if (!vnode.data.show) {
(el.parentNode._pending || (el.parentNode._pending = {}))[(vnode.key)] = vnode;
}
beforeLeave && beforeLeave(el);
if (expectsCSS) {
addTransitionClass(el, leaveClass);
addTransitionClass(el, leaveActiveClass);
nextFrame(function () {
addTransitionClass(el, leaveToClass);
removeTransitionClass(el, leaveClass);
if (!cb.cancelled && !userWantsControl) {
if (isValidDuration(explicitLeaveDuration)) {
setTimeout(cb, explicitLeaveDuration);
} else {
whenTransitionEnds(el, type, cb);
}
}
});
}
leave && leave(el, cb);
if (!expectsCSS && !userWantsControl) {
cb();
}
}
}
// only used in dev mode
function checkDuration (val, name, vnode) {
if (typeof val !== 'number') {
warn(
"<transition> explicit " + name + " duration is not a valid number - " +
"got " + (JSON.stringify(val)) + ".",
vnode.context
);
} else if (isNaN(val)) {
warn(
"<transition> explicit " + name + " duration is NaN - " +
'the duration expression might be incorrect.',
vnode.context
);
}
}
function isValidDuration (val) {
return typeof val === 'number' && !isNaN(val)
}
/**
* Normalize a transition hook's argument length. The hook may be:
* - a merged hook (invoker) with the original in .fns
* - a wrapped component method (check ._length)
* - a plain function (.length)
*/
function getHookArgumentsLength (fn) {
if (isUndef(fn)) {
return false
}
var invokerFns = fn.fns;
if (isDef(invokerFns)) {
// invoker
return getHookArgumentsLength(
Array.isArray(invokerFns)
? invokerFns[0]
: invokerFns
)
} else {
return (fn._length || fn.length) > 1
}
}
function _enter (_, vnode) {
if (vnode.data.show !== true) {
enter(vnode);
}
}
var transition = inBrowser ? {
create: _enter,
activate: _enter,
remove: function remove$$1 (vnode, rm) {
/* istanbul ignore else */
if (vnode.data.show !== true) {
leave(vnode, rm);
} else {
rm();
}
}
} : {};
var platformModules = [
attrs,
klass,
events,
domProps,
style,
transition
];
/* */
// the directive module should be applied last, after all
// built-in modules have been applied.
var modules = platformModules.concat(baseModules);
var patch = createPatchFunction({ nodeOps: nodeOps, modules: modules });
/**
* Not type checking this file because flow doesn't like attaching
* properties to Elements.
*/
var isTextInputType = makeMap('text,number,password,search,email,tel,url');
/* istanbul ignore if */
if (isIE9) {
// http://www.matts411.com/post/internet-explorer-9-oninput/
document.addEventListener('selectionchange', function () {
var el = document.activeElement;
if (el && el.vmodel) {
trigger(el, 'input');
}
});
}
var model$1 = {
inserted: function inserted (el, binding, vnode) {
if (vnode.tag === 'select') {
var cb = function () {
setSelected(el, binding, vnode.context);
};
cb();
/* istanbul ignore if */
if (isIE || isEdge) {
setTimeout(cb, 0);
}
el._vOptions = [].map.call(el.options, getValue);
} else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
el._vModifiers = binding.modifiers;
if (!binding.modifiers.lazy) {
// Safari < 10.2 & UIWebView doesn't fire compositionend when
// switching focus before confirming composition choice
// this also fixes the issue where some browsers e.g. iOS Chrome
// fires "change" instead of "input" on autocomplete.
el.addEventListener('change', onCompositionEnd);
if (!isAndroid) {
el.addEventListener('compositionstart', onCompositionStart);
el.addEventListener('compositionend', onCompositionEnd);
}
/* istanbul ignore if */
if (isIE9) {
el.vmodel = true;
}
}
}
},
componentUpdated: function componentUpdated (el, binding, vnode) {
if (vnode.tag === 'select') {
setSelected(el, binding, vnode.context);
// in case the options rendered by v-for have changed,
// it's possible that the value is out-of-sync with the rendered options.
// detect such cases and filter out values that no longer has a matching
// option in the DOM.
var prevOptions = el._vOptions;
var curOptions = el._vOptions = [].map.call(el.options, getValue);
if (curOptions.some(function (o, i) { return !looseEqual(o, prevOptions[i]); })) {
trigger(el, 'change');
}
}
}
};
function setSelected (el, binding, vm) {
var value = binding.value;
var isMultiple = el.multiple;
if (isMultiple && !Array.isArray(value)) {
"development" !== 'production' && warn(
"<select multiple v-model=\"" + (binding.expression) + "\"> " +
"expects an Array value for its binding, but got " + (Object.prototype.toString.call(value).slice(8, -1)),
vm
);
return
}
var selected, option;
for (var i = 0, l = el.options.length; i < l; i++) {
option = el.options[i];
if (isMultiple) {
selected = looseIndexOf(value, getValue(option)) > -1;
if (option.selected !== selected) {
option.selected = selected;
}
} else {
if (looseEqual(getValue(option), value)) {
if (el.selectedIndex !== i) {
el.selectedIndex = i;
}
return
}
}
}
if (!isMultiple) {
el.selectedIndex = -1;
}
}
function getValue (option) {
return '_value' in option
? option._value
: option.value
}
function onCompositionStart (e) {
e.target.composing = true;
}
function onCompositionEnd (e) {
// prevent triggering an input event for no reason
if (!e.target.composing) { return }
e.target.composing = false;
trigger(e.target, 'input');
}
function trigger (el, type) {
var e = document.createEvent('HTMLEvents');
e.initEvent(type, true, true);
el.dispatchEvent(e);
}
/* */
// recursively search for possible transition defined inside the component root
function locateNode (vnode) {
return vnode.componentInstance && (!vnode.data || !vnode.data.transition)
? locateNode(vnode.componentInstance._vnode)
: vnode
}
var show = {
bind: function bind (el, ref, vnode) {
var value = ref.value;
vnode = locateNode(vnode);
var transition$$1 = vnode.data && vnode.data.transition;
var originalDisplay = el.__vOriginalDisplay =
el.style.display === 'none' ? '' : el.style.display;
if (value && transition$$1) {
vnode.data.show = true;
enter(vnode, function () {
el.style.display = originalDisplay;
});
} else {
el.style.display = value ? originalDisplay : 'none';
}
},
update: function update (el, ref, vnode) {
var value = ref.value;
var oldValue = ref.oldValue;
/* istanbul ignore if */
if (value === oldValue) { return }
vnode = locateNode(vnode);
var transition$$1 = vnode.data && vnode.data.transition;
if (transition$$1) {
vnode.data.show = true;
if (value) {
enter(vnode, function () {
el.style.display = el.__vOriginalDisplay;
});
} else {
leave(vnode, function () {
el.style.display = 'none';
});
}
} else {
el.style.display = value ? el.__vOriginalDisplay : 'none';
}
},
unbind: function unbind (
el,
binding,
vnode,
oldVnode,
isDestroy
) {
if (!isDestroy) {
el.style.display = el.__vOriginalDisplay;
}
}
};
var platformDirectives = {
model: model$1,
show: show
};
/* */
// Provides transition support for a single element/component.
// supports transition mode (out-in / in-out)
var transitionProps = {
name: String,
appear: Boolean,
css: Boolean,
mode: String,
type: String,
enterClass: String,
leaveClass: String,
enterToClass: String,
leaveToClass: String,
enterActiveClass: String,
leaveActiveClass: String,
appearClass: String,
appearActiveClass: String,
appearToClass: String,
duration: [Number, String, Object]
};
// in case the child is also an abstract component, e.g. <keep-alive>
// we want to recursively retrieve the real component to be rendered
function getRealChild (vnode) {
var compOptions = vnode && vnode.componentOptions;
if (compOptions && compOptions.Ctor.options.abstract) {
return getRealChild(getFirstComponentChild(compOptions.children))
} else {
return vnode
}
}
function extractTransitionData (comp) {
var data = {};
var options = comp.$options;
// props
for (var key in options.propsData) {
data[key] = comp[key];
}
// events.
// extract listeners and pass them directly to the transition methods
var listeners = options._parentListeners;
for (var key$1 in listeners) {
data[camelize(key$1)] = listeners[key$1];
}
return data
}
function placeholder (h, rawChild) {
if (/\d-keep-alive$/.test(rawChild.tag)) {
return h('keep-alive', {
props: rawChild.componentOptions.propsData
})
}
}
function hasParentTransition (vnode) {
while ((vnode = vnode.parent)) {
if (vnode.data.transition) {
return true
}
}
}
function isSameChild (child, oldChild) {
return oldChild.key === child.key && oldChild.tag === child.tag
}
function isAsyncPlaceholder (node) {
return node.isComment && node.asyncFactory
}
var Transition = {
name: 'transition',
props: transitionProps,
abstract: true,
render: function render (h) {
var this$1 = this;
var children = this.$options._renderChildren;
if (!children) {
return
}
// filter out text nodes (possible whitespaces)
children = children.filter(function (c) { return c.tag || isAsyncPlaceholder(c); });
/* istanbul ignore if */
if (!children.length) {
return
}
// warn multiple elements
if ("development" !== 'production' && children.length > 1) {
warn(
'<transition> can only be used on a single element. Use ' +
'<transition-group> for lists.',
this.$parent
);
}
var mode = this.mode;
// warn invalid mode
if ("development" !== 'production' &&
mode && mode !== 'in-out' && mode !== 'out-in'
) {
warn(
'invalid <transition> mode: ' + mode,
this.$parent
);
}
var rawChild = children[0];
// if this is a component root node and the component's
// parent container node also has transition, skip.
if (hasParentTransition(this.$vnode)) {
return rawChild
}
// apply transition data to child
// use getRealChild() to ignore abstract components e.g. keep-alive
var child = getRealChild(rawChild);
/* istanbul ignore if */
if (!child) {
return rawChild
}
if (this._leaving) {
return placeholder(h, rawChild)
}
// ensure a key that is unique to the vnode type and to this transition
// component instance. This key will be used to remove pending leaving nodes
// during entering.
var id = "__transition-" + (this._uid) + "-";
child.key = child.key == null
? child.isComment
? id + 'comment'
: id + child.tag
: isPrimitive(child.key)
? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
: child.key;
var data = (child.data || (child.data = {})).transition = extractTransitionData(this);
var oldRawChild = this._vnode;
var oldChild = getRealChild(oldRawChild);
// mark v-show
// so that the transition module can hand over the control to the directive
if (child.data.directives && child.data.directives.some(function (d) { return d.name === 'show'; })) {
child.data.show = true;
}
if (
oldChild &&
oldChild.data &&
!isSameChild(child, oldChild) &&
!isAsyncPlaceholder(oldChild)
) {
// replace old child transition data with fresh one
// important for dynamic transitions!
var oldData = oldChild && (oldChild.data.transition = extend({}, data));
// handle transition mode
if (mode === 'out-in') {
// return placeholder node and queue update when leave finishes
this._leaving = true;
mergeVNodeHook(oldData, 'afterLeave', function () {
this$1._leaving = false;
this$1.$forceUpdate();
});
return placeholder(h, rawChild)
} else if (mode === 'in-out') {
if (isAsyncPlaceholder(child)) {
return oldRawChild
}
var delayedLeave;
var performLeave = function () { delayedLeave(); };
mergeVNodeHook(data, 'afterEnter', performLeave);
mergeVNodeHook(data, 'enterCancelled', performLeave);
mergeVNodeHook(oldData, 'delayLeave', function (leave) { delayedLeave = leave; });
}
}
return rawChild
}
};
/* */
// Provides transition support for list items.
// supports move transitions using the FLIP technique.
// Because the vdom's children update algorithm is "unstable" - i.e.
// it doesn't guarantee the relative positioning of removed elements,
// we force transition-group to update its children into two passes:
// in the first pass, we remove all nodes that need to be removed,
// triggering their leaving transition; in the second pass, we insert/move
// into the final desired state. This way in the second pass removed
// nodes will remain where they should be.
var props = extend({
tag: String,
moveClass: String
}, transitionProps);
delete props.mode;
var TransitionGroup = {
props: props,
render: function render (h) {
var tag = this.tag || this.$vnode.data.tag || 'span';
var map = Object.create(null);
var prevChildren = this.prevChildren = this.children;
var rawChildren = this.$slots.default || [];
var children = this.children = [];
var transitionData = extractTransitionData(this);
for (var i = 0; i < rawChildren.length; i++) {
var c = rawChildren[i];
if (c.tag) {
if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {
children.push(c);
map[c.key] = c
;(c.data || (c.data = {})).transition = transitionData;
} else if (true) {
var opts = c.componentOptions;
var name = opts ? (opts.Ctor.options.name || opts.tag || '') : c.tag;
warn(("<transition-group> children must be keyed: <" + name + ">"));
}
}
}
if (prevChildren) {
var kept = [];
var removed = [];
for (var i$1 = 0; i$1 < prevChildren.length; i$1++) {
var c$1 = prevChildren[i$1];
c$1.data.transition = transitionData;
c$1.data.pos = c$1.elm.getBoundingClientRect();
if (map[c$1.key]) {
kept.push(c$1);
} else {
removed.push(c$1);
}
}
this.kept = h(tag, null, kept);
this.removed = removed;
}
return h(tag, null, children)
},
beforeUpdate: function beforeUpdate () {
// force removing pass
this.__patch__(
this._vnode,
this.kept,
false, // hydrating
true // removeOnly (!important, avoids unnecessary moves)
);
this._vnode = this.kept;
},
updated: function updated () {
var children = this.prevChildren;
var moveClass = this.moveClass || ((this.name || 'v') + '-move');
if (!children.length || !this.hasMove(children[0].elm, moveClass)) {
return
}
// we divide the work into three loops to avoid mixing DOM reads and writes
// in each iteration - which helps prevent layout thrashing.
children.forEach(callPendingCbs);
children.forEach(recordPosition);
children.forEach(applyTranslation);
// force reflow to put everything in position
var body = document.body;
var f = body.offsetHeight; // eslint-disable-line
children.forEach(function (c) {
if (c.data.moved) {
var el = c.elm;
var s = el.style;
addTransitionClass(el, moveClass);
s.transform = s.WebkitTransform = s.transitionDuration = '';
el.addEventListener(transitionEndEvent, el._moveCb = function cb (e) {
if (!e || /transform$/.test(e.propertyName)) {
el.removeEventListener(transitionEndEvent, cb);
el._moveCb = null;
removeTransitionClass(el, moveClass);
}
});
}
});
},
methods: {
hasMove: function hasMove (el, moveClass) {
/* istanbul ignore if */
if (!hasTransition) {
return false
}
/* istanbul ignore if */
if (this._hasMove) {
return this._hasMove
}
// Detect whether an element with the move class applied has
// CSS transitions. Since the element may be inside an entering
// transition at this very moment, we make a clone of it and remove
// all other transition classes applied to ensure only the move class
// is applied.
var clone = el.cloneNode();
if (el._transitionClasses) {
el._transitionClasses.forEach(function (cls) { removeClass(clone, cls); });
}
addClass(clone, moveClass);
clone.style.display = 'none';
this.$el.appendChild(clone);
var info = getTransitionInfo(clone);
this.$el.removeChild(clone);
return (this._hasMove = info.hasTransform)
}
}
};
function callPendingCbs (c) {
/* istanbul ignore if */
if (c.elm._moveCb) {
c.elm._moveCb();
}
/* istanbul ignore if */
if (c.elm._enterCb) {
c.elm._enterCb();
}
}
function recordPosition (c) {
c.data.newPos = c.elm.getBoundingClientRect();
}
function applyTranslation (c) {
var oldPos = c.data.pos;
var newPos = c.data.newPos;
var dx = oldPos.left - newPos.left;
var dy = oldPos.top - newPos.top;
if (dx || dy) {
c.data.moved = true;
var s = c.elm.style;
s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)";
s.transitionDuration = '0s';
}
}
var platformComponents = {
Transition: Transition,
TransitionGroup: TransitionGroup
};
/* */
// install platform specific utils
Vue$3.config.mustUseProp = mustUseProp;
Vue$3.config.isReservedTag = isReservedTag;
Vue$3.config.isReservedAttr = isReservedAttr;
Vue$3.config.getTagNamespace = getTagNamespace;
Vue$3.config.isUnknownElement = isUnknownElement;
// install platform runtime directives & components
extend(Vue$3.options.directives, platformDirectives);
extend(Vue$3.options.components, platformComponents);
// install platform patch function
Vue$3.prototype.__patch__ = inBrowser ? patch : noop;
// public mount method
Vue$3.prototype.$mount = function (
el,
hydrating
) {
el = el && inBrowser ? query(el) : undefined;
return mountComponent(this, el, hydrating)
};
// devtools global hook
/* istanbul ignore next */
setTimeout(function () {
if (config.devtools) {
if (devtools) {
devtools.emit('init', Vue$3);
} else if ("development" !== 'production' && isChrome) {
console[console.info ? 'info' : 'log'](
'Download the Vue Devtools extension for a better development experience:\n' +
'https://github.com/vuejs/vue-devtools'
);
}
}
if ("development" !== 'production' &&
config.productionTip !== false &&
inBrowser && typeof console !== 'undefined'
) {
console[console.info ? 'info' : 'log'](
"You are running Vue in development mode.\n" +
"Make sure to turn on production mode when deploying for production.\n" +
"See more tips at https://vuejs.org/guide/deployment.html"
);
}
}, 0);
/* */
// check whether current browser encodes a char inside attribute values
function shouldDecode (content, encoded) {
var div = document.createElement('div');
div.innerHTML = "<div a=\"" + content + "\"/>";
return div.innerHTML.indexOf(encoded) > 0
}
// #3663
// IE encodes newlines inside attribute values while other browsers don't
var shouldDecodeNewlines = inBrowser ? shouldDecode('\n', ' ') : false;
/* */
var defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g;
var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
var buildRegex = cached(function (delimiters) {
var open = delimiters[0].replace(regexEscapeRE, '\\$&');
var close = delimiters[1].replace(regexEscapeRE, '\\$&');
return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
});
function parseText (
text,
delimiters
) {
var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;
if (!tagRE.test(text)) {
return
}
var tokens = [];
var lastIndex = tagRE.lastIndex = 0;
var match, index;
while ((match = tagRE.exec(text))) {
index = match.index;
// push text token
if (index > lastIndex) {
tokens.push(JSON.stringify(text.slice(lastIndex, index)));
}
// tag token
var exp = parseFilters(match[1].trim());
tokens.push(("_s(" + exp + ")"));
lastIndex = index + match[0].length;
}
if (lastIndex < text.length) {
tokens.push(JSON.stringify(text.slice(lastIndex)));
}
return tokens.join('+')
}
/* */
function transformNode (el, options) {
var warn = options.warn || baseWarn;
var staticClass = getAndRemoveAttr(el, 'class');
if ("development" !== 'production' && staticClass) {
var expression = parseText(staticClass, options.delimiters);
if (expression) {
warn(
"class=\"" + staticClass + "\": " +
'Interpolation inside attributes has been removed. ' +
'Use v-bind or the colon shorthand instead. For example, ' +
'instead of <div class="{{ val }}">, use <div :class="val">.'
);
}
}
if (staticClass) {
el.staticClass = JSON.stringify(staticClass);
}
var classBinding = getBindingAttr(el, 'class', false /* getStatic */);
if (classBinding) {
el.classBinding = classBinding;
}
}
function genData (el) {
var data = '';
if (el.staticClass) {
data += "staticClass:" + (el.staticClass) + ",";
}
if (el.classBinding) {
data += "class:" + (el.classBinding) + ",";
}
return data
}
var klass$1 = {
staticKeys: ['staticClass'],
transformNode: transformNode,
genData: genData
};
/* */
function transformNode$1 (el, options) {
var warn = options.warn || baseWarn;
var staticStyle = getAndRemoveAttr(el, 'style');
if (staticStyle) {
/* istanbul ignore if */
if (true) {
var expression = parseText(staticStyle, options.delimiters);
if (expression) {
warn(
"style=\"" + staticStyle + "\": " +
'Interpolation inside attributes has been removed. ' +
'Use v-bind or the colon shorthand instead. For example, ' +
'instead of <div style="{{ val }}">, use <div :style="val">.'
);
}
}
el.staticStyle = JSON.stringify(parseStyleText(staticStyle));
}
var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);
if (styleBinding) {
el.styleBinding = styleBinding;
}
}
function genData$1 (el) {
var data = '';
if (el.staticStyle) {
data += "staticStyle:" + (el.staticStyle) + ",";
}
if (el.styleBinding) {
data += "style:(" + (el.styleBinding) + "),";
}
return data
}
var style$1 = {
staticKeys: ['staticStyle'],
transformNode: transformNode$1,
genData: genData$1
};
var modules$1 = [
klass$1,
style$1
];
/* */
function text (el, dir) {
if (dir.value) {
addProp(el, 'textContent', ("_s(" + (dir.value) + ")"));
}
}
/* */
function html (el, dir) {
if (dir.value) {
addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"));
}
}
var directives$1 = {
model: model,
text: text,
html: html
};
/* */
var isUnaryTag = makeMap(
'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
'link,meta,param,source,track,wbr'
);
// Elements that you can, intentionally, leave open
// (and which close themselves)
var canBeLeftOpenTag = makeMap(
'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
);
// HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
// Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content
var isNonPhrasingTag = makeMap(
'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +
'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +
'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +
'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +
'title,tr,track'
);
/* */
var baseOptions = {
expectHTML: true,
modules: modules$1,
directives: directives$1,
isPreTag: isPreTag,
isUnaryTag: isUnaryTag,
mustUseProp: mustUseProp,
canBeLeftOpenTag: canBeLeftOpenTag,
isReservedTag: isReservedTag,
getTagNamespace: getTagNamespace,
staticKeys: genStaticKeys(modules$1)
};
/* */
var decoder;
var he = {
decode: function decode (html) {
decoder = decoder || document.createElement('div');
decoder.innerHTML = html;
return decoder.textContent
}
};
/**
* Not type-checking this file because it's mostly vendor code.
*/
/*!
* HTML Parser By John Resig (ejohn.org)
* Modified by Juriy "kangax" Zaytsev
* Original code by Erik Arvidsson, Mozilla Public License
* http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
*/
// Regular Expressions for parsing tags and attributes
var singleAttrIdentifier = /([^\s"'<>/=]+)/;
var singleAttrAssign = /(?:=)/;
var singleAttrValues = [
// attr value double quotes
/"([^"]*)"+/.source,
// attr value, single quotes
/'([^']*)'+/.source,
// attr value, no quotes
/([^\s"'=<>`]+)/.source
];
var attribute = new RegExp(
'^\\s*' + singleAttrIdentifier.source +
'(?:\\s*(' + singleAttrAssign.source + ')' +
'\\s*(?:' + singleAttrValues.join('|') + '))?'
);
// could use https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-QName
// but for Vue templates we can enforce a simple charset
var ncname = '[a-zA-Z_][\\w\\-\\.]*';
var qnameCapture = '((?:' + ncname + '\\:)?' + ncname + ')';
var startTagOpen = new RegExp('^<' + qnameCapture);
var startTagClose = /^\s*(\/?)>/;
var endTag = new RegExp('^<\\/' + qnameCapture + '[^>]*>');
var doctype = /^<!DOCTYPE [^>]+>/i;
var comment = /^<!--/;
var conditionalComment = /^<!\[/;
var IS_REGEX_CAPTURING_BROKEN = false;
'x'.replace(/x(.)?/g, function (m, g) {
IS_REGEX_CAPTURING_BROKEN = g === '';
});
// Special Elements (can contain anything)
var isPlainTextElement = makeMap('script,style,textarea', true);
var reCache = {};
var decodingMap = {
'<': '<',
'>': '>',
'"': '"',
'&': '&',
' ': '\n'
};
var encodedAttr = /&(?:lt|gt|quot|amp);/g;
var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10);/g;
// #5992
var isIgnoreNewlineTag = makeMap('pre,textarea', true);
var shouldIgnoreFirstNewline = function (tag, html) { return tag && isIgnoreNewlineTag(tag) && html[0] === '\n'; };
function decodeAttr (value, shouldDecodeNewlines) {
var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;
return value.replace(re, function (match) { return decodingMap[match]; })
}
function parseHTML (html, options) {
var stack = [];
var expectHTML = options.expectHTML;
var isUnaryTag$$1 = options.isUnaryTag || no;
var canBeLeftOpenTag$$1 = options.canBeLeftOpenTag || no;
var index = 0;
var last, lastTag;
while (html) {
last = html;
// Make sure we're not in a plaintext content element like script/style
if (!lastTag || !isPlainTextElement(lastTag)) {
var textEnd = html.indexOf('<');
if (textEnd === 0) {
// Comment:
if (comment.test(html)) {
var commentEnd = html.indexOf('-->');
if (commentEnd >= 0) {
if (options.shouldKeepComment) {
options.comment(html.substring(4, commentEnd));
}
advance(commentEnd + 3);
continue
}
}
// http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment
if (conditionalComment.test(html)) {
var conditionalEnd = html.indexOf(']>');
if (conditionalEnd >= 0) {
advance(conditionalEnd + 2);
continue
}
}
// Doctype:
var doctypeMatch = html.match(doctype);
if (doctypeMatch) {
advance(doctypeMatch[0].length);
continue
}
// End tag:
var endTagMatch = html.match(endTag);
if (endTagMatch) {
var curIndex = index;
advance(endTagMatch[0].length);
parseEndTag(endTagMatch[1], curIndex, index);
continue
}
// Start tag:
var startTagMatch = parseStartTag();
if (startTagMatch) {
handleStartTag(startTagMatch);
if (shouldIgnoreFirstNewline(lastTag, html)) {
advance(1);
}
continue
}
}
var text = (void 0), rest = (void 0), next = (void 0);
if (textEnd >= 0) {
rest = html.slice(textEnd);
while (
!endTag.test(rest) &&
!startTagOpen.test(rest) &&
!comment.test(rest) &&
!conditionalComment.test(rest)
) {
// < in plain text, be forgiving and treat it as text
next = rest.indexOf('<', 1);
if (next < 0) { break }
textEnd += next;
rest = html.slice(textEnd);
}
text = html.substring(0, textEnd);
advance(textEnd);
}
if (textEnd < 0) {
text = html;
html = '';
}
if (options.chars && text) {
options.chars(text);
}
} else {
var endTagLength = 0;
var stackedTag = lastTag.toLowerCase();
var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)(</' + stackedTag + '[^>]*>)', 'i'));
var rest$1 = html.replace(reStackedTag, function (all, text, endTag) {
endTagLength = endTag.length;
if (!isPlainTextElement(stackedTag) && stackedTag !== 'noscript') {
text = text
.replace(/<!--([\s\S]*?)-->/g, '$1')
.replace(/<!\[CDATA\[([\s\S]*?)]]>/g, '$1');
}
if (shouldIgnoreFirstNewline(stackedTag, text)) {
text = text.slice(1);
}
if (options.chars) {
options.chars(text);
}
return ''
});
index += html.length - rest$1.length;
html = rest$1;
parseEndTag(stackedTag, index - endTagLength, index);
}
if (html === last) {
options.chars && options.chars(html);
if ("development" !== 'production' && !stack.length && options.warn) {
options.warn(("Mal-formatted tag at end of template: \"" + html + "\""));
}
break
}
}
// Clean up any remaining tags
parseEndTag();
function advance (n) {
index += n;
html = html.substring(n);
}
function parseStartTag () {
var start = html.match(startTagOpen);
if (start) {
var match = {
tagName: start[1],
attrs: [],
start: index
};
advance(start[0].length);
var end, attr;
while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {
advance(attr[0].length);
match.attrs.push(attr);
}
if (end) {
match.unarySlash = end[1];
advance(end[0].length);
match.end = index;
return match
}
}
}
function handleStartTag (match) {
var tagName = match.tagName;
var unarySlash = match.unarySlash;
if (expectHTML) {
if (lastTag === 'p' && isNonPhrasingTag(tagName)) {
parseEndTag(lastTag);
}
if (canBeLeftOpenTag$$1(tagName) && lastTag === tagName) {
parseEndTag(tagName);
}
}
var unary = isUnaryTag$$1(tagName) || !!unarySlash;
var l = match.attrs.length;
var attrs = new Array(l);
for (var i = 0; i < l; i++) {
var args = match.attrs[i];
// hackish work around FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=369778
if (IS_REGEX_CAPTURING_BROKEN && args[0].indexOf('""') === -1) {
if (args[3] === '') { delete args[3]; }
if (args[4] === '') { delete args[4]; }
if (args[5] === '') { delete args[5]; }
}
var value = args[3] || args[4] || args[5] || '';
attrs[i] = {
name: args[1],
value: decodeAttr(
value,
options.shouldDecodeNewlines
)
};
}
if (!unary) {
stack.push({ tag: tagName, lowerCasedTag: tagName.toLowerCase(), attrs: attrs });
lastTag = tagName;
}
if (options.start) {
options.start(tagName, attrs, unary, match.start, match.end);
}
}
function parseEndTag (tagName, start, end) {
var pos, lowerCasedTagName;
if (start == null) { start = index; }
if (end == null) { end = index; }
if (tagName) {
lowerCasedTagName = tagName.toLowerCase();
}
// Find the closest opened tag of the same type
if (tagName) {
for (pos = stack.length - 1; pos >= 0; pos--) {
if (stack[pos].lowerCasedTag === lowerCasedTagName) {
break
}
}
} else {
// If no tag name is provided, clean shop
pos = 0;
}
if (pos >= 0) {
// Close all the open elements, up the stack
for (var i = stack.length - 1; i >= pos; i--) {
if ("development" !== 'production' &&
(i > pos || !tagName) &&
options.warn
) {
options.warn(
("tag <" + (stack[i].tag) + "> has no matching end tag.")
);
}
if (options.end) {
options.end(stack[i].tag, start, end);
}
}
// Remove the open elements from the stack
stack.length = pos;
lastTag = pos && stack[pos - 1].tag;
} else if (lowerCasedTagName === 'br') {
if (options.start) {
options.start(tagName, [], true, start, end);
}
} else if (lowerCasedTagName === 'p') {
if (options.start) {
options.start(tagName, [], false, start, end);
}
if (options.end) {
options.end(tagName, start, end);
}
}
}
}
/* */
var onRE = /^@|^v-on:/;
var dirRE = /^v-|^@|^:/;
var forAliasRE = /(.*?)\s+(?:in|of)\s+(.*)/;
var forIteratorRE = /\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/;
var argRE = /:(.*)$/;
var bindRE = /^:|^v-bind:/;
var modifierRE = /\.[^.]+/g;
var decodeHTMLCached = cached(he.decode);
// configurable state
var warn$2;
var delimiters;
var transforms;
var preTransforms;
var postTransforms;
var platformIsPreTag;
var platformMustUseProp;
var platformGetTagNamespace;
/**
* Convert HTML string to AST.
*/
function parse (
template,
options
) {
warn$2 = options.warn || baseWarn;
platformIsPreTag = options.isPreTag || no;
platformMustUseProp = options.mustUseProp || no;
platformGetTagNamespace = options.getTagNamespace || no;
transforms = pluckModuleFunction(options.modules, 'transformNode');
preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');
postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');
delimiters = options.delimiters;
var stack = [];
var preserveWhitespace = options.preserveWhitespace !== false;
var root;
var currentParent;
var inVPre = false;
var inPre = false;
var warned = false;
function warnOnce (msg) {
if (!warned) {
warned = true;
warn$2(msg);
}
}
function endPre (element) {
// check pre state
if (element.pre) {
inVPre = false;
}
if (platformIsPreTag(element.tag)) {
inPre = false;
}
}
parseHTML(template, {
warn: warn$2,
expectHTML: options.expectHTML,
isUnaryTag: options.isUnaryTag,
canBeLeftOpenTag: options.canBeLeftOpenTag,
shouldDecodeNewlines: options.shouldDecodeNewlines,
shouldKeepComment: options.comments,
start: function start (tag, attrs, unary) {
// check namespace.
// inherit parent ns if there is one
var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
// handle IE svg bug
/* istanbul ignore if */
if (isIE && ns === 'svg') {
attrs = guardIESVGBug(attrs);
}
var element = {
type: 1,
tag: tag,
attrsList: attrs,
attrsMap: makeAttrsMap(attrs),
parent: currentParent,
children: []
};
if (ns) {
element.ns = ns;
}
if (isForbiddenTag(element) && !isServerRendering()) {
element.forbidden = true;
"development" !== 'production' && warn$2(
'Templates should only be responsible for mapping the state to the ' +
'UI. Avoid placing tags with side-effects in your templates, such as ' +
"<" + tag + ">" + ', as they will not be parsed.'
);
}
// apply pre-transforms
for (var i = 0; i < preTransforms.length; i++) {
preTransforms[i](element, options);
}
if (!inVPre) {
processPre(element);
if (element.pre) {
inVPre = true;
}
}
if (platformIsPreTag(element.tag)) {
inPre = true;
}
if (inVPre) {
processRawAttrs(element);
} else {
processFor(element);
processIf(element);
processOnce(element);
processKey(element);
// determine whether this is a plain element after
// removing structural attributes
element.plain = !element.key && !attrs.length;
processRef(element);
processSlot(element);
processComponent(element);
for (var i$1 = 0; i$1 < transforms.length; i$1++) {
transforms[i$1](element, options);
}
processAttrs(element);
}
function checkRootConstraints (el) {
if (true) {
if (el.tag === 'slot' || el.tag === 'template') {
warnOnce(
"Cannot use <" + (el.tag) + "> as component root element because it may " +
'contain multiple nodes.'
);
}
if (el.attrsMap.hasOwnProperty('v-for')) {
warnOnce(
'Cannot use v-for on stateful component root element because ' +
'it renders multiple elements.'
);
}
}
}
// tree management
if (!root) {
root = element;
checkRootConstraints(root);
} else if (!stack.length) {
// allow root elements with v-if, v-else-if and v-else
if (root.if && (element.elseif || element.else)) {
checkRootConstraints(element);
addIfCondition(root, {
exp: element.elseif,
block: element
});
} else if (true) {
warnOnce(
"Component template should contain exactly one root element. " +
"If you are using v-if on multiple elements, " +
"use v-else-if to chain them instead."
);
}
}
if (currentParent && !element.forbidden) {
if (element.elseif || element.else) {
processIfConditions(element, currentParent);
} else if (element.slotScope) { // scoped slot
currentParent.plain = false;
var name = element.slotTarget || '"default"';(currentParent.scopedSlots || (currentParent.scopedSlots = {}))[name] = element;
} else {
currentParent.children.push(element);
element.parent = currentParent;
}
}
if (!unary) {
currentParent = element;
stack.push(element);
} else {
endPre(element);
}
// apply post-transforms
for (var i$2 = 0; i$2 < postTransforms.length; i$2++) {
postTransforms[i$2](element, options);
}
},
end: function end () {
// remove trailing whitespace
var element = stack[stack.length - 1];
var lastNode = element.children[element.children.length - 1];
if (lastNode && lastNode.type === 3 && lastNode.text === ' ' && !inPre) {
element.children.pop();
}
// pop stack
stack.length -= 1;
currentParent = stack[stack.length - 1];
endPre(element);
},
chars: function chars (text) {
if (!currentParent) {
if (true) {
if (text === template) {
warnOnce(
'Component template requires a root element, rather than just text.'
);
} else if ((text = text.trim())) {
warnOnce(
("text \"" + text + "\" outside root element will be ignored.")
);
}
}
return
}
// IE textarea placeholder bug
/* istanbul ignore if */
if (isIE &&
currentParent.tag === 'textarea' &&
currentParent.attrsMap.placeholder === text
) {
return
}
var children = currentParent.children;
text = inPre || text.trim()
? isTextTag(currentParent) ? text : decodeHTMLCached(text)
// only preserve whitespace if its not right after a starting tag
: preserveWhitespace && children.length ? ' ' : '';
if (text) {
var expression;
if (!inVPre && text !== ' ' && (expression = parseText(text, delimiters))) {
children.push({
type: 2,
expression: expression,
text: text
});
} else if (text !== ' ' || !children.length || children[children.length - 1].text !== ' ') {
children.push({
type: 3,
text: text
});
}
}
},
comment: function comment (text) {
currentParent.children.push({
type: 3,
text: text,
isComment: true
});
}
});
return root
}
function processPre (el) {
if (getAndRemoveAttr(el, 'v-pre') != null) {
el.pre = true;
}
}
function processRawAttrs (el) {
var l = el.attrsList.length;
if (l) {
var attrs = el.attrs = new Array(l);
for (var i = 0; i < l; i++) {
attrs[i] = {
name: el.attrsList[i].name,
value: JSON.stringify(el.attrsList[i].value)
};
}
} else if (!el.pre) {
// non root node in pre blocks with no attributes
el.plain = true;
}
}
function processKey (el) {
var exp = getBindingAttr(el, 'key');
if (exp) {
if ("development" !== 'production' && el.tag === 'template') {
warn$2("<template> cannot be keyed. Place the key on real elements instead.");
}
el.key = exp;
}
}
function processRef (el) {
var ref = getBindingAttr(el, 'ref');
if (ref) {
el.ref = ref;
el.refInFor = checkInFor(el);
}
}
function processFor (el) {
var exp;
if ((exp = getAndRemoveAttr(el, 'v-for'))) {
var inMatch = exp.match(forAliasRE);
if (!inMatch) {
"development" !== 'production' && warn$2(
("Invalid v-for expression: " + exp)
);
return
}
el.for = inMatch[2].trim();
var alias = inMatch[1].trim();
var iteratorMatch = alias.match(forIteratorRE);
if (iteratorMatch) {
el.alias = iteratorMatch[1].trim();
el.iterator1 = iteratorMatch[2].trim();
if (iteratorMatch[3]) {
el.iterator2 = iteratorMatch[3].trim();
}
} else {
el.alias = alias;
}
}
}
function processIf (el) {
var exp = getAndRemoveAttr(el, 'v-if');
if (exp) {
el.if = exp;
addIfCondition(el, {
exp: exp,
block: el
});
} else {
if (getAndRemoveAttr(el, 'v-else') != null) {
el.else = true;
}
var elseif = getAndRemoveAttr(el, 'v-else-if');
if (elseif) {
el.elseif = elseif;
}
}
}
function processIfConditions (el, parent) {
var prev = findPrevElement(parent.children);
if (prev && prev.if) {
addIfCondition(prev, {
exp: el.elseif,
block: el
});
} else if (true) {
warn$2(
"v-" + (el.elseif ? ('else-if="' + el.elseif + '"') : 'else') + " " +
"used on element <" + (el.tag) + "> without corresponding v-if."
);
}
}
function findPrevElement (children) {
var i = children.length;
while (i--) {
if (children[i].type === 1) {
return children[i]
} else {
if ("development" !== 'production' && children[i].text !== ' ') {
warn$2(
"text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " +
"will be ignored."
);
}
children.pop();
}
}
}
function addIfCondition (el, condition) {
if (!el.ifConditions) {
el.ifConditions = [];
}
el.ifConditions.push(condition);
}
function processOnce (el) {
var once$$1 = getAndRemoveAttr(el, 'v-once');
if (once$$1 != null) {
el.once = true;
}
}
function processSlot (el) {
if (el.tag === 'slot') {
el.slotName = getBindingAttr(el, 'name');
if ("development" !== 'production' && el.key) {
warn$2(
"`key` does not work on <slot> because slots are abstract outlets " +
"and can possibly expand into multiple elements. " +
"Use the key on a wrapping element instead."
);
}
} else {
var slotTarget = getBindingAttr(el, 'slot');
if (slotTarget) {
el.slotTarget = slotTarget === '""' ? '"default"' : slotTarget;
}
if (el.tag === 'template') {
el.slotScope = getAndRemoveAttr(el, 'scope');
}
}
}
function processComponent (el) {
var binding;
if ((binding = getBindingAttr(el, 'is'))) {
el.component = binding;
}
if (getAndRemoveAttr(el, 'inline-template') != null) {
el.inlineTemplate = true;
}
}
function processAttrs (el) {
var list = el.attrsList;
var i, l, name, rawName, value, modifiers, isProp;
for (i = 0, l = list.length; i < l; i++) {
name = rawName = list[i].name;
value = list[i].value;
if (dirRE.test(name)) {
// mark element as dynamic
el.hasBindings = true;
// modifiers
modifiers = parseModifiers(name);
if (modifiers) {
name = name.replace(modifierRE, '');
}
if (bindRE.test(name)) { // v-bind
name = name.replace(bindRE, '');
value = parseFilters(value);
isProp = false;
if (modifiers) {
if (modifiers.prop) {
isProp = true;
name = camelize(name);
if (name === 'innerHtml') { name = 'innerHTML'; }
}
if (modifiers.camel) {
name = camelize(name);
}
if (modifiers.sync) {
addHandler(
el,
("update:" + (camelize(name))),
genAssignmentCode(value, "$event")
);
}
}
if (isProp || (
!el.component && platformMustUseProp(el.tag, el.attrsMap.type, name)
)) {
addProp(el, name, value);
} else {
addAttr(el, name, value);
}
} else if (onRE.test(name)) { // v-on
name = name.replace(onRE, '');
addHandler(el, name, value, modifiers, false, warn$2);
} else { // normal directives
name = name.replace(dirRE, '');
// parse arg
var argMatch = name.match(argRE);
var arg = argMatch && argMatch[1];
if (arg) {
name = name.slice(0, -(arg.length + 1));
}
addDirective(el, name, rawName, value, arg, modifiers);
if ("development" !== 'production' && name === 'model') {
checkForAliasModel(el, value);
}
}
} else {
// literal attribute
if (true) {
var expression = parseText(value, delimiters);
if (expression) {
warn$2(
name + "=\"" + value + "\": " +
'Interpolation inside attributes has been removed. ' +
'Use v-bind or the colon shorthand instead. For example, ' +
'instead of <div id="{{ val }}">, use <div :id="val">.'
);
}
}
addAttr(el, name, JSON.stringify(value));
}
}
}
function checkInFor (el) {
var parent = el;
while (parent) {
if (parent.for !== undefined) {
return true
}
parent = parent.parent;
}
return false
}
function parseModifiers (name) {
var match = name.match(modifierRE);
if (match) {
var ret = {};
match.forEach(function (m) { ret[m.slice(1)] = true; });
return ret
}
}
function makeAttrsMap (attrs) {
var map = {};
for (var i = 0, l = attrs.length; i < l; i++) {
if (
"development" !== 'production' &&
map[attrs[i].name] && !isIE && !isEdge
) {
warn$2('duplicate attribute: ' + attrs[i].name);
}
map[attrs[i].name] = attrs[i].value;
}
return map
}
// for script (e.g. type="x/template") or style, do not decode content
function isTextTag (el) {
return el.tag === 'script' || el.tag === 'style'
}
function isForbiddenTag (el) {
return (
el.tag === 'style' ||
(el.tag === 'script' && (
!el.attrsMap.type ||
el.attrsMap.type === 'text/javascript'
))
)
}
var ieNSBug = /^xmlns:NS\d+/;
var ieNSPrefix = /^NS\d+:/;
/* istanbul ignore next */
function guardIESVGBug (attrs) {
var res = [];
for (var i = 0; i < attrs.length; i++) {
var attr = attrs[i];
if (!ieNSBug.test(attr.name)) {
attr.name = attr.name.replace(ieNSPrefix, '');
res.push(attr);
}
}
return res
}
function checkForAliasModel (el, value) {
var _el = el;
while (_el) {
if (_el.for && _el.alias === value) {
warn$2(
"<" + (el.tag) + " v-model=\"" + value + "\">: " +
"You are binding v-model directly to a v-for iteration alias. " +
"This will not be able to modify the v-for source array because " +
"writing to the alias is like modifying a function local variable. " +
"Consider using an array of objects and use v-model on an object property instead."
);
}
_el = _el.parent;
}
}
/* */
var isStaticKey;
var isPlatformReservedTag;
var genStaticKeysCached = cached(genStaticKeys$1);
/**
* Goal of the optimizer: walk the generated template AST tree
* and detect sub-trees that are purely static, i.e. parts of
* the DOM that never needs to change.
*
* Once we detect these sub-trees, we can:
*
* 1. Hoist them into constants, so that we no longer need to
* create fresh nodes for them on each re-render;
* 2. Completely skip them in the patching process.
*/
function optimize (root, options) {
if (!root) { return }
isStaticKey = genStaticKeysCached(options.staticKeys || '');
isPlatformReservedTag = options.isReservedTag || no;
// first pass: mark all non-static nodes.
markStatic$1(root);
// second pass: mark static roots.
markStaticRoots(root, false);
}
function genStaticKeys$1 (keys) {
return makeMap(
'type,tag,attrsList,attrsMap,plain,parent,children,attrs' +
(keys ? ',' + keys : '')
)
}
function markStatic$1 (node) {
node.static = isStatic(node);
if (node.type === 1) {
// do not make component slot content static. this avoids
// 1. components not able to mutate slot nodes
// 2. static slot content fails for hot-reloading
if (
!isPlatformReservedTag(node.tag) &&
node.tag !== 'slot' &&
node.attrsMap['inline-template'] == null
) {
return
}
for (var i = 0, l = node.children.length; i < l; i++) {
var child = node.children[i];
markStatic$1(child);
if (!child.static) {
node.static = false;
}
}
if (node.ifConditions) {
for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
var block = node.ifConditions[i$1].block;
markStatic$1(block);
if (!block.static) {
node.static = false;
}
}
}
}
}
function markStaticRoots (node, isInFor) {
if (node.type === 1) {
if (node.static || node.once) {
node.staticInFor = isInFor;
}
// For a node to qualify as a static root, it should have children that
// are not just static text. Otherwise the cost of hoisting out will
// outweigh the benefits and it's better off to just always render it fresh.
if (node.static && node.children.length && !(
node.children.length === 1 &&
node.children[0].type === 3
)) {
node.staticRoot = true;
return
} else {
node.staticRoot = false;
}
if (node.children) {
for (var i = 0, l = node.children.length; i < l; i++) {
markStaticRoots(node.children[i], isInFor || !!node.for);
}
}
if (node.ifConditions) {
for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
markStaticRoots(node.ifConditions[i$1].block, isInFor);
}
}
}
}
function isStatic (node) {
if (node.type === 2) { // expression
return false
}
if (node.type === 3) { // text
return true
}
return !!(node.pre || (
!node.hasBindings && // no dynamic bindings
!node.if && !node.for && // not v-if or v-for or v-else
!isBuiltInTag(node.tag) && // not a built-in
isPlatformReservedTag(node.tag) && // not a component
!isDirectChildOfTemplateFor(node) &&
Object.keys(node).every(isStaticKey)
))
}
function isDirectChildOfTemplateFor (node) {
while (node.parent) {
node = node.parent;
if (node.tag !== 'template') {
return false
}
if (node.for) {
return true
}
}
return false
}
/* */
var fnExpRE = /^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/;
var simplePathRE = /^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/;
// keyCode aliases
var keyCodes = {
esc: 27,
tab: 9,
enter: 13,
space: 32,
up: 38,
left: 37,
right: 39,
down: 40,
'delete': [8, 46]
};
// #4868: modifiers that prevent the execution of the listener
// need to explicitly return null so that we can determine whether to remove
// the listener for .once
var genGuard = function (condition) { return ("if(" + condition + ")return null;"); };
var modifierCode = {
stop: '$event.stopPropagation();',
prevent: '$event.preventDefault();',
self: genGuard("$event.target !== $event.currentTarget"),
ctrl: genGuard("!$event.ctrlKey"),
shift: genGuard("!$event.shiftKey"),
alt: genGuard("!$event.altKey"),
meta: genGuard("!$event.metaKey"),
left: genGuard("'button' in $event && $event.button !== 0"),
middle: genGuard("'button' in $event && $event.button !== 1"),
right: genGuard("'button' in $event && $event.button !== 2")
};
function genHandlers (
events,
isNative,
warn
) {
var res = isNative ? 'nativeOn:{' : 'on:{';
for (var name in events) {
var handler = events[name];
// #5330: warn click.right, since right clicks do not actually fire click events.
if ("development" !== 'production' &&
name === 'click' &&
handler && handler.modifiers && handler.modifiers.right
) {
warn(
"Use \"contextmenu\" instead of \"click.right\" since right clicks " +
"do not actually fire \"click\" events."
);
}
res += "\"" + name + "\":" + (genHandler(name, handler)) + ",";
}
return res.slice(0, -1) + '}'
}
function genHandler (
name,
handler
) {
if (!handler) {
return 'function(){}'
}
if (Array.isArray(handler)) {
return ("[" + (handler.map(function (handler) { return genHandler(name, handler); }).join(',')) + "]")
}
var isMethodPath = simplePathRE.test(handler.value);
var isFunctionExpression = fnExpRE.test(handler.value);
if (!handler.modifiers) {
return isMethodPath || isFunctionExpression
? handler.value
: ("function($event){" + (handler.value) + "}") // inline statement
} else {
var code = '';
var genModifierCode = '';
var keys = [];
for (var key in handler.modifiers) {
if (modifierCode[key]) {
genModifierCode += modifierCode[key];
// left/right
if (keyCodes[key]) {
keys.push(key);
}
} else {
keys.push(key);
}
}
if (keys.length) {
code += genKeyFilter(keys);
}
// Make sure modifiers like prevent and stop get executed after key filtering
if (genModifierCode) {
code += genModifierCode;
}
var handlerCode = isMethodPath
? handler.value + '($event)'
: isFunctionExpression
? ("(" + (handler.value) + ")($event)")
: handler.value;
return ("function($event){" + code + handlerCode + "}")
}
}
function genKeyFilter (keys) {
return ("if(!('button' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
}
function genFilterCode (key) {
var keyVal = parseInt(key, 10);
if (keyVal) {
return ("$event.keyCode!==" + keyVal)
}
var alias = keyCodes[key];
return ("_k($event.keyCode," + (JSON.stringify(key)) + (alias ? ',' + JSON.stringify(alias) : '') + ")")
}
/* */
function on (el, dir) {
if ("development" !== 'production' && dir.modifiers) {
warn("v-on without argument does not support modifiers.");
}
el.wrapListeners = function (code) { return ("_g(" + code + "," + (dir.value) + ")"); };
}
/* */
function bind$1 (el, dir) {
el.wrapData = function (code) {
return ("_b(" + code + ",'" + (el.tag) + "'," + (dir.value) + "," + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + ")")
};
}
/* */
var baseDirectives = {
on: on,
bind: bind$1,
cloak: noop
};
/* */
var CodegenState = function CodegenState (options) {
this.options = options;
this.warn = options.warn || baseWarn;
this.transforms = pluckModuleFunction(options.modules, 'transformCode');
this.dataGenFns = pluckModuleFunction(options.modules, 'genData');
this.directives = extend(extend({}, baseDirectives), options.directives);
var isReservedTag = options.isReservedTag || no;
this.maybeComponent = function (el) { return !isReservedTag(el.tag); };
this.onceId = 0;
this.staticRenderFns = [];
};
function generate (
ast,
options
) {
var state = new CodegenState(options);
var code = ast ? genElement(ast, state) : '_c("div")';
return {
render: ("with(this){return " + code + "}"),
staticRenderFns: state.staticRenderFns
}
}
function genElement (el, state) {
if (el.staticRoot && !el.staticProcessed) {
return genStatic(el, state)
} else if (el.once && !el.onceProcessed) {
return genOnce(el, state)
} else if (el.for && !el.forProcessed) {
return genFor(el, state)
} else if (el.if && !el.ifProcessed) {
return genIf(el, state)
} else if (el.tag === 'template' && !el.slotTarget) {
return genChildren(el, state) || 'void 0'
} else if (el.tag === 'slot') {
return genSlot(el, state)
} else {
// component or element
var code;
if (el.component) {
code = genComponent(el.component, el, state);
} else {
var data = el.plain ? undefined : genData$2(el, state);
var children = el.inlineTemplate ? null : genChildren(el, state, true);
code = "_c('" + (el.tag) + "'" + (data ? ("," + data) : '') + (children ? ("," + children) : '') + ")";
}
// module transforms
for (var i = 0; i < state.transforms.length; i++) {
code = state.transforms[i](el, code);
}
return code
}
}
// hoist static sub-trees out
function genStatic (el, state) {
el.staticProcessed = true;
state.staticRenderFns.push(("with(this){return " + (genElement(el, state)) + "}"));
return ("_m(" + (state.staticRenderFns.length - 1) + (el.staticInFor ? ',true' : '') + ")")
}
// v-once
function genOnce (el, state) {
el.onceProcessed = true;
if (el.if && !el.ifProcessed) {
return genIf(el, state)
} else if (el.staticInFor) {
var key = '';
var parent = el.parent;
while (parent) {
if (parent.for) {
key = parent.key;
break
}
parent = parent.parent;
}
if (!key) {
"development" !== 'production' && state.warn(
"v-once can only be used inside v-for that is keyed. "
);
return genElement(el, state)
}
return ("_o(" + (genElement(el, state)) + "," + (state.onceId++) + (key ? ("," + key) : "") + ")")
} else {
return genStatic(el, state)
}
}
function genIf (
el,
state,
altGen,
altEmpty
) {
el.ifProcessed = true; // avoid recursion
return genIfConditions(el.ifConditions.slice(), state, altGen, altEmpty)
}
function genIfConditions (
conditions,
state,
altGen,
altEmpty
) {
if (!conditions.length) {
return altEmpty || '_e()'
}
var condition = conditions.shift();
if (condition.exp) {
return ("(" + (condition.exp) + ")?" + (genTernaryExp(condition.block)) + ":" + (genIfConditions(conditions, state, altGen, altEmpty)))
} else {
return ("" + (genTernaryExp(condition.block)))
}
// v-if with v-once should generate code like (a)?_m(0):_m(1)
function genTernaryExp (el) {
return altGen
? altGen(el, state)
: el.once
? genOnce(el, state)
: genElement(el, state)
}
}
function genFor (
el,
state,
altGen,
altHelper
) {
var exp = el.for;
var alias = el.alias;
var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
if ("development" !== 'production' &&
state.maybeComponent(el) &&
el.tag !== 'slot' &&
el.tag !== 'template' &&
!el.key
) {
state.warn(
"<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
"v-for should have explicit keys. " +
"See https://vuejs.org/guide/list.html#key for more info.",
true /* tip */
);
}
el.forProcessed = true; // avoid recursion
return (altHelper || '_l') + "((" + exp + ")," +
"function(" + alias + iterator1 + iterator2 + "){" +
"return " + ((altGen || genElement)(el, state)) +
'})'
}
function genData$2 (el, state) {
var data = '{';
// directives first.
// directives may mutate the el's other properties before they are generated.
var dirs = genDirectives(el, state);
if (dirs) { data += dirs + ','; }
// key
if (el.key) {
data += "key:" + (el.key) + ",";
}
// ref
if (el.ref) {
data += "ref:" + (el.ref) + ",";
}
if (el.refInFor) {
data += "refInFor:true,";
}
// pre
if (el.pre) {
data += "pre:true,";
}
// record original tag name for components using "is" attribute
if (el.component) {
data += "tag:\"" + (el.tag) + "\",";
}
// module data generation functions
for (var i = 0; i < state.dataGenFns.length; i++) {
data += state.dataGenFns[i](el);
}
// attributes
if (el.attrs) {
data += "attrs:{" + (genProps(el.attrs)) + "},";
}
// DOM props
if (el.props) {
data += "domProps:{" + (genProps(el.props)) + "},";
}
// event handlers
if (el.events) {
data += (genHandlers(el.events, false, state.warn)) + ",";
}
if (el.nativeEvents) {
data += (genHandlers(el.nativeEvents, true, state.warn)) + ",";
}
// slot target
if (el.slotTarget) {
data += "slot:" + (el.slotTarget) + ",";
}
// scoped slots
if (el.scopedSlots) {
data += (genScopedSlots(el.scopedSlots, state)) + ",";
}
// component v-model
if (el.model) {
data += "model:{value:" + (el.model.value) + ",callback:" + (el.model.callback) + ",expression:" + (el.model.expression) + "},";
}
// inline-template
if (el.inlineTemplate) {
var inlineTemplate = genInlineTemplate(el, state);
if (inlineTemplate) {
data += inlineTemplate + ",";
}
}
data = data.replace(/,$/, '') + '}';
// v-bind data wrap
if (el.wrapData) {
data = el.wrapData(data);
}
// v-on data wrap
if (el.wrapListeners) {
data = el.wrapListeners(data);
}
return data
}
function genDirectives (el, state) {
var dirs = el.directives;
if (!dirs) { return }
var res = 'directives:[';
var hasRuntime = false;
var i, l, dir, needRuntime;
for (i = 0, l = dirs.length; i < l; i++) {
dir = dirs[i];
needRuntime = true;
var gen = state.directives[dir.name];
if (gen) {
// compile-time directive that manipulates AST.
// returns true if it also needs a runtime counterpart.
needRuntime = !!gen(el, dir, state.warn);
}
if (needRuntime) {
hasRuntime = true;
res += "{name:\"" + (dir.name) + "\",rawName:\"" + (dir.rawName) + "\"" + (dir.value ? (",value:(" + (dir.value) + "),expression:" + (JSON.stringify(dir.value))) : '') + (dir.arg ? (",arg:\"" + (dir.arg) + "\"") : '') + (dir.modifiers ? (",modifiers:" + (JSON.stringify(dir.modifiers))) : '') + "},";
}
}
if (hasRuntime) {
return res.slice(0, -1) + ']'
}
}
function genInlineTemplate (el, state) {
var ast = el.children[0];
if ("development" !== 'production' && (
el.children.length > 1 || ast.type !== 1
)) {
state.warn('Inline-template components must have exactly one child element.');
}
if (ast.type === 1) {
var inlineRenderFns = generate(ast, state.options);
return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
}
}
function genScopedSlots (
slots,
state
) {
return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) {
return genScopedSlot(key, slots[key], state)
}).join(',')) + "])")
}
function genScopedSlot (
key,
el,
state
) {
if (el.for && !el.forProcessed) {
return genForScopedSlot(key, el, state)
}
return "{key:" + key + ",fn:function(" + (String(el.attrsMap.scope)) + "){" +
"return " + (el.tag === 'template'
? genChildren(el, state) || 'void 0'
: genElement(el, state)) + "}}"
}
function genForScopedSlot (
key,
el,
state
) {
var exp = el.for;
var alias = el.alias;
var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
el.forProcessed = true; // avoid recursion
return "_l((" + exp + ")," +
"function(" + alias + iterator1 + iterator2 + "){" +
"return " + (genScopedSlot(key, el, state)) +
'})'
}
function genChildren (
el,
state,
checkSkip,
altGenElement,
altGenNode
) {
var children = el.children;
if (children.length) {
var el$1 = children[0];
// optimize single v-for
if (children.length === 1 &&
el$1.for &&
el$1.tag !== 'template' &&
el$1.tag !== 'slot'
) {
return (altGenElement || genElement)(el$1, state)
}
var normalizationType = checkSkip
? getNormalizationType(children, state.maybeComponent)
: 0;
var gen = altGenNode || genNode;
return ("[" + (children.map(function (c) { return gen(c, state); }).join(',')) + "]" + (normalizationType ? ("," + normalizationType) : ''))
}
}
// determine the normalization needed for the children array.
// 0: no normalization needed
// 1: simple normalization needed (possible 1-level deep nested array)
// 2: full normalization needed
function getNormalizationType (
children,
maybeComponent
) {
var res = 0;
for (var i = 0; i < children.length; i++) {
var el = children[i];
if (el.type !== 1) {
continue
}
if (needsNormalization(el) ||
(el.ifConditions && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) {
res = 2;
break
}
if (maybeComponent(el) ||
(el.ifConditions && el.ifConditions.some(function (c) { return maybeComponent(c.block); }))) {
res = 1;
}
}
return res
}
function needsNormalization (el) {
return el.for !== undefined || el.tag === 'template' || el.tag === 'slot'
}
function genNode (node, state) {
if (node.type === 1) {
return genElement(node, state)
} if (node.type === 3 && node.isComment) {
return genComment(node)
} else {
return genText(node)
}
}
function genText (text) {
return ("_v(" + (text.type === 2
? text.expression // no need for () because already wrapped in _s()
: transformSpecialNewlines(JSON.stringify(text.text))) + ")")
}
function genComment (comment) {
return ("_e(" + (JSON.stringify(comment.text)) + ")")
}
function genSlot (el, state) {
var slotName = el.slotName || '"default"';
var children = genChildren(el, state);
var res = "_t(" + slotName + (children ? ("," + children) : '');
var attrs = el.attrs && ("{" + (el.attrs.map(function (a) { return ((camelize(a.name)) + ":" + (a.value)); }).join(',')) + "}");
var bind$$1 = el.attrsMap['v-bind'];
if ((attrs || bind$$1) && !children) {
res += ",null";
}
if (attrs) {
res += "," + attrs;
}
if (bind$$1) {
res += (attrs ? '' : ',null') + "," + bind$$1;
}
return res + ')'
}
// componentName is el.component, take it as argument to shun flow's pessimistic refinement
function genComponent (
componentName,
el,
state
) {
var children = el.inlineTemplate ? null : genChildren(el, state, true);
return ("_c(" + componentName + "," + (genData$2(el, state)) + (children ? ("," + children) : '') + ")")
}
function genProps (props) {
var res = '';
for (var i = 0; i < props.length; i++) {
var prop = props[i];
res += "\"" + (prop.name) + "\":" + (transformSpecialNewlines(prop.value)) + ",";
}
return res.slice(0, -1)
}
// #3895, #4268
function transformSpecialNewlines (text) {
return text
.replace(/\u2028/g, '\\u2028')
.replace(/\u2029/g, '\\u2029')
}
/* */
// these keywords should not appear inside expressions, but operators like
// typeof, instanceof and in are allowed
var prohibitedKeywordRE = new RegExp('\\b' + (
'do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
'super,throw,while,yield,delete,export,import,return,switch,default,' +
'extends,finally,continue,debugger,function,arguments'
).split(',').join('\\b|\\b') + '\\b');
// these unary operators should not be used as property/method names
var unaryOperatorsRE = new RegExp('\\b' + (
'delete,typeof,void'
).split(',').join('\\s*\\([^\\)]*\\)|\\b') + '\\s*\\([^\\)]*\\)');
// check valid identifier for v-for
var identRE = /[A-Za-z_$][\w$]*/;
// strip strings in expressions
var stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
// detect problematic expressions in a template
function detectErrors (ast) {
var errors = [];
if (ast) {
checkNode(ast, errors);
}
return errors
}
function checkNode (node, errors) {
if (node.type === 1) {
for (var name in node.attrsMap) {
if (dirRE.test(name)) {
var value = node.attrsMap[name];
if (value) {
if (name === 'v-for') {
checkFor(node, ("v-for=\"" + value + "\""), errors);
} else if (onRE.test(name)) {
checkEvent(value, (name + "=\"" + value + "\""), errors);
} else {
checkExpression(value, (name + "=\"" + value + "\""), errors);
}
}
}
}
if (node.children) {
for (var i = 0; i < node.children.length; i++) {
checkNode(node.children[i], errors);
}
}
} else if (node.type === 2) {
checkExpression(node.expression, node.text, errors);
}
}
function checkEvent (exp, text, errors) {
var stipped = exp.replace(stripStringRE, '');
var keywordMatch = stipped.match(unaryOperatorsRE);
if (keywordMatch && stipped.charAt(keywordMatch.index - 1) !== '$') {
errors.push(
"avoid using JavaScript unary operator as property name: " +
"\"" + (keywordMatch[0]) + "\" in expression " + (text.trim())
);
}
checkExpression(exp, text, errors);
}
function checkFor (node, text, errors) {
checkExpression(node.for || '', text, errors);
checkIdentifier(node.alias, 'v-for alias', text, errors);
checkIdentifier(node.iterator1, 'v-for iterator', text, errors);
checkIdentifier(node.iterator2, 'v-for iterator', text, errors);
}
function checkIdentifier (ident, type, text, errors) {
if (typeof ident === 'string' && !identRE.test(ident)) {
errors.push(("invalid " + type + " \"" + ident + "\" in expression: " + (text.trim())));
}
}
function checkExpression (exp, text, errors) {
try {
new Function(("return " + exp));
} catch (e) {
var keywordMatch = exp.replace(stripStringRE, '').match(prohibitedKeywordRE);
if (keywordMatch) {
errors.push(
"avoid using JavaScript keyword as property name: " +
"\"" + (keywordMatch[0]) + "\" in expression " + (text.trim())
);
} else {
errors.push(("invalid expression: " + (text.trim())));
}
}
}
/* */
function createFunction (code, errors) {
try {
return new Function(code)
} catch (err) {
errors.push({ err: err, code: code });
return noop
}
}
function createCompileToFunctionFn (compile) {
var cache = Object.create(null);
return function compileToFunctions (
template,
options,
vm
) {
options = options || {};
/* istanbul ignore if */
if (true) {
// detect possible CSP restriction
try {
new Function('return 1');
} catch (e) {
if (e.toString().match(/unsafe-eval|CSP/)) {
warn(
'It seems you are using the standalone build of Vue.js in an ' +
'environment with Content Security Policy that prohibits unsafe-eval. ' +
'The template compiler cannot work in this environment. Consider ' +
'relaxing the policy to allow unsafe-eval or pre-compiling your ' +
'templates into render functions.'
);
}
}
}
// check cache
var key = options.delimiters
? String(options.delimiters) + template
: template;
if (cache[key]) {
return cache[key]
}
// compile
var compiled = compile(template, options);
// check compilation errors/tips
if (true) {
if (compiled.errors && compiled.errors.length) {
warn(
"Error compiling template:\n\n" + template + "\n\n" +
compiled.errors.map(function (e) { return ("- " + e); }).join('\n') + '\n',
vm
);
}
if (compiled.tips && compiled.tips.length) {
compiled.tips.forEach(function (msg) { return tip(msg, vm); });
}
}
// turn code into functions
var res = {};
var fnGenErrors = [];
res.render = createFunction(compiled.render, fnGenErrors);
res.staticRenderFns = compiled.staticRenderFns.map(function (code) {
return createFunction(code, fnGenErrors)
});
// check function generation errors.
// this should only happen if there is a bug in the compiler itself.
// mostly for codegen development use
/* istanbul ignore if */
if (true) {
if ((!compiled.errors || !compiled.errors.length) && fnGenErrors.length) {
warn(
"Failed to generate render function:\n\n" +
fnGenErrors.map(function (ref) {
var err = ref.err;
var code = ref.code;
return ((err.toString()) + " in\n\n" + code + "\n");
}).join('\n'),
vm
);
}
}
return (cache[key] = res)
}
}
/* */
function createCompilerCreator (baseCompile) {
return function createCompiler (baseOptions) {
function compile (
template,
options
) {
var finalOptions = Object.create(baseOptions);
var errors = [];
var tips = [];
finalOptions.warn = function (msg, tip) {
(tip ? tips : errors).push(msg);
};
if (options) {
// merge custom modules
if (options.modules) {
finalOptions.modules =
(baseOptions.modules || []).concat(options.modules);
}
// merge custom directives
if (options.directives) {
finalOptions.directives = extend(
Object.create(baseOptions.directives),
options.directives
);
}
// copy other options
for (var key in options) {
if (key !== 'modules' && key !== 'directives') {
finalOptions[key] = options[key];
}
}
}
var compiled = baseCompile(template, finalOptions);
if (true) {
errors.push.apply(errors, detectErrors(compiled.ast));
}
compiled.errors = errors;
compiled.tips = tips;
return compiled
}
return {
compile: compile,
compileToFunctions: createCompileToFunctionFn(compile)
}
}
}
/* */
// `createCompilerCreator` allows creating compilers that use alternative
// parser/optimizer/codegen, e.g the SSR optimizing compiler.
// Here we just export a default compiler using the default parts.
var createCompiler = createCompilerCreator(function baseCompile (
template,
options
) {
var ast = parse(template.trim(), options);
optimize(ast, options);
var code = generate(ast, options);
return {
ast: ast,
render: code.render,
staticRenderFns: code.staticRenderFns
}
});
/* */
var ref$1 = createCompiler(baseOptions);
var compileToFunctions = ref$1.compileToFunctions;
/* */
var idToTemplate = cached(function (id) {
var el = query(id);
return el && el.innerHTML
});
var mount = Vue$3.prototype.$mount;
Vue$3.prototype.$mount = function (
el,
hydrating
) {
el = el && query(el);
/* istanbul ignore if */
if (el === document.body || el === document.documentElement) {
"development" !== 'production' && warn(
"Do not mount Vue to <html> or <body> - mount to normal elements instead."
);
return this
}
var options = this.$options;
// resolve template/el and convert to render function
if (!options.render) {
var template = options.template;
if (template) {
if (typeof template === 'string') {
if (template.charAt(0) === '#') {
template = idToTemplate(template);
/* istanbul ignore if */
if ("development" !== 'production' && !template) {
warn(
("Template element not found or is empty: " + (options.template)),
this
);
}
}
} else if (template.nodeType) {
template = template.innerHTML;
} else {
if (true) {
warn('invalid template option:' + template, this);
}
return this
}
} else if (el) {
template = getOuterHTML(el);
}
if (template) {
/* istanbul ignore if */
if ("development" !== 'production' && config.performance && mark) {
mark('compile');
}
var ref = compileToFunctions(template, {
shouldDecodeNewlines: shouldDecodeNewlines,
delimiters: options.delimiters,
comments: options.comments
}, this);
var render = ref.render;
var staticRenderFns = ref.staticRenderFns;
options.render = render;
options.staticRenderFns = staticRenderFns;
/* istanbul ignore if */
if ("development" !== 'production' && config.performance && mark) {
mark('compile end');
measure(((this._name) + " compile"), 'compile', 'compile end');
}
}
}
return mount.call(this, el, hydrating)
};
/**
* Get outerHTML of elements, taking care
* of SVG elements in IE as well.
*/
function getOuterHTML (el) {
if (el.outerHTML) {
return el.outerHTML
} else {
var container = document.createElement('div');
container.appendChild(el.cloneNode(true));
return container.innerHTML
}
}
Vue$3.compile = compileToFunctions;
module.exports = Vue$3;
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/webpack/buildin/global.js")))
/***/ }),
/***/ "./node_modules/webpack/buildin/global.js":
/***/ (function(module, exports) {
var g;
// This works in non-strict mode
g = (function() {
return this;
})();
try {
// This works if eval is allowed (see CSP)
g = g || Function("return this")() || (1,eval)("this");
} catch(e) {
// This works if the window reference is available
if(typeof window === "object")
g = window;
}
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
module.exports = g;
/***/ }),
/***/ "./resources/assets/js/App.vue":
/***/ (function(module, exports, __webpack_require__) {
/* styles */
__webpack_require__("./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-660cdc14\",\"scoped\":false,\"hasInlineConfig\":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./resources/assets/js/App.vue")
var Component = __webpack_require__("./node_modules/vue-loader/lib/component-normalizer.js")(
/* script */
__webpack_require__("./node_modules/babel-loader/lib/index.js?{\"cacheDirectory\":true,\"presets\":[[\"env\",{\"modules\":false,\"targets\":{\"browsers\":[\"> 2%\"],\"uglify\":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/App.vue"),
/* template */
__webpack_require__("./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-660cdc14\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/App.vue"),
/* scopeId */
null,
/* cssModules */
null
)
Component.options.__file = "F:\\bpo\\cn\\concrete\\rivproject\\resources\\assets\\js\\App.vue"
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
if (Component.options.functional) {console.error("[vue-loader] App.vue: functional components are not supported with templates, they should use render functions.")}
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-660cdc14", Component.options)
} else {
hotAPI.reload("data-v-660cdc14", Component.options)
}
})()}
module.exports = Component.exports
/***/ }),
/***/ "./resources/assets/js/app.js":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__("./node_modules/vue/dist/vue.common.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__App_vue__ = __webpack_require__("./resources/assets/js/App.vue");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__App_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__App_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__router__ = __webpack_require__("./resources/assets/js/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_axios__ = __webpack_require__("./node_modules/axios/index.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_axios__);
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.component('example', __webpack_require__("./resources/assets/js/App.vue"));
var vue = new __WEBPACK_IMPORTED_MODULE_0_vue___default.a({
el: '#app',
components: { App: __WEBPACK_IMPORTED_MODULE_1__App_vue___default.a },
router: __WEBPACK_IMPORTED_MODULE_2__router__["a" /* default */],
data: function data() {
return {
getuserscount: {
userscount: []
},
getclientscount: {
clientscount: []
},
getitemscount: {
itemscount: []
},
getCartTotalItems: {
cartTotalItems: []
},
getSumReports: {
sumReports: []
},
url: '/riv-admin/getcount',
cartTotalItemsUrl: '/riv-admin/fetchCart',
sumReportsUrl: '/riv-admin/SaleReportsCount'
};
},
beforeMount: function beforeMount() {
this.fetchData(), this.fetchCartTotal();
this.fetchSummRepData();
},
watch: {
'$route': 'fetchData'
},
methods: {
fetchData: function fetchData() {
var vm = this;
__WEBPACK_IMPORTED_MODULE_3_axios___default.a.get(vm.url).then(function (response) {
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.set(vm.$data, 'getuserscount', response.data.users);
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.set(vm.$data, 'getclientscount', response.data.clients);
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.set(vm.$data, 'getitemscount', response.data.items);
console.log(response.data.users);
console.log(response.data.clients);
console.log(response.data.items);
}).catch(function (error) {
console.log(error);
});
},
fetchCartTotal: function fetchCartTotal() {
var vm = this;
__WEBPACK_IMPORTED_MODULE_3_axios___default.a.get(vm.cartTotalItemsUrl).then(function (response) {
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.set(vm.$data, 'getCartTotalItems', response.data);
console.log(response.data);
}).catch(function (error) {
console.log(error);
});
},
fetchSummRepData: function fetchSummRepData() {
var vm = this;
__WEBPACK_IMPORTED_MODULE_3_axios___default.a.get(vm.sumReportsUrl).then(function (response) {
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.set(vm.$data, 'getSumReports', response.data);
console.log(response.data);
}).catch(function (error) {
console.log(error);
});
}
}
});
/***/ }),
/***/ "./resources/assets/js/router.js":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__("./node_modules/vue/dist/vue.common.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue_router__ = __webpack_require__("./node_modules/vue-router/dist/vue-router.esm.js");
__WEBPACK_IMPORTED_MODULE_0_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_1_vue_router__["a" /* default */]);
var Foo = { template: '<div>foo</div>' };
var router = new __WEBPACK_IMPORTED_MODULE_1_vue_router__["a" /* default */]({
routes: [{ path: '/', component: __webpack_require__("./resources/assets/js/App.vue") }, { path: '/getitems/:id', component: __webpack_require__("./resources/assets/js/views/edit.vue") }, { path: '/test/', component: __webpack_require__("./resources/assets/js/views/test.vue") }, { path: '/foo', component: Foo }]
});
/* harmony default export */ __webpack_exports__["a"] = (router);
/***/ }),
/***/ "./resources/assets/js/views/edit.vue":
/***/ (function(module, exports, __webpack_require__) {
var Component = __webpack_require__("./node_modules/vue-loader/lib/component-normalizer.js")(
/* script */
__webpack_require__("./node_modules/babel-loader/lib/index.js?{\"cacheDirectory\":true,\"presets\":[[\"env\",{\"modules\":false,\"targets\":{\"browsers\":[\"> 2%\"],\"uglify\":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/views/edit.vue"),
/* template */
__webpack_require__("./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-0f9f85a6\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/views/edit.vue"),
/* scopeId */
null,
/* cssModules */
null
)
Component.options.__file = "F:\\bpo\\cn\\concrete\\rivproject\\resources\\assets\\js\\views\\edit.vue"
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
if (Component.options.functional) {console.error("[vue-loader] edit.vue: functional components are not supported with templates, they should use render functions.")}
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-0f9f85a6", Component.options)
} else {
hotAPI.reload("data-v-0f9f85a6", Component.options)
}
})()}
module.exports = Component.exports
/***/ }),
/***/ "./resources/assets/js/views/test.vue":
/***/ (function(module, exports, __webpack_require__) {
var Component = __webpack_require__("./node_modules/vue-loader/lib/component-normalizer.js")(
/* script */
null,
/* template */
__webpack_require__("./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-6bc7d82e\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/views/test.vue"),
/* scopeId */
null,
/* cssModules */
null
)
Component.options.__file = "F:\\bpo\\cn\\concrete\\rivproject\\resources\\assets\\js\\views\\test.vue"
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
if (Component.options.functional) {console.error("[vue-loader] test.vue: functional components are not supported with templates, they should use render functions.")}
/* hot reload */
if (false) {(function () {
var hotAPI = require("vue-hot-reload-api")
hotAPI.install(require("vue"), false)
if (!hotAPI.compatible) return
module.hot.accept()
if (!module.hot.data) {
hotAPI.createRecord("data-v-6bc7d82e", Component.options)
} else {
hotAPI.reload("data-v-6bc7d82e", Component.options)
}
})()}
module.exports = Component.exports
/***/ }),
/***/ "./resources/assets/sass/app.scss":
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 0:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__("./resources/assets/js/app.js");
module.exports = __webpack_require__("./resources/assets/sass/app.scss");
/***/ })
/******/ });
|
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const Dependency = require("../Dependency");
const { UsageState } = require("../ExportsInfo");
const HarmonyLinkingError = require("../HarmonyLinkingError");
const InitFragment = require("../InitFragment");
const RuntimeGlobals = require("../RuntimeGlobals");
const Template = require("../Template");
const { countIterable } = require("../util/IterableHelpers");
const { first, combine } = require("../util/SetHelpers");
const makeSerializable = require("../util/makeSerializable");
const propertyAccess = require("../util/propertyAccess");
const HarmonyExportInitFragment = require("./HarmonyExportInitFragment");
const HarmonyImportDependency = require("./HarmonyImportDependency");
const processExportInfo = require("./processExportInfo");
/** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */
/** @typedef {import("../ChunkGraph")} ChunkGraph */
/** @typedef {import("../Dependency").ExportsSpec} ExportsSpec */
/** @typedef {import("../Dependency").ReferencedExport} ReferencedExport */
/** @typedef {import("../Dependency").UpdateHashContext} UpdateHashContext */
/** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */
/** @typedef {import("../ExportsInfo")} ExportsInfo */
/** @typedef {import("../ExportsInfo").ExportInfo} ExportInfo */
/** @typedef {import("../Module")} Module */
/** @typedef {import("../ModuleGraph")} ModuleGraph */
/** @typedef {import("../ModuleGraphConnection")} ModuleGraphConnection */
/** @typedef {import("../ModuleGraphConnection").ConnectionState} ConnectionState */
/** @typedef {import("../RuntimeTemplate")} RuntimeTemplate */
/** @typedef {import("../WebpackError")} WebpackError */
/** @typedef {import("../util/Hash")} Hash */
/** @typedef {import("../util/runtime").RuntimeSpec} RuntimeSpec */
/** @typedef {"missing"|"unused"|"empty-star"|"reexport-dynamic-default"|"reexport-named-default"|"reexport-namespace-object"|"reexport-fake-namespace-object"|"reexport-undefined"|"normal-reexport"|"dynamic-reexport"} ExportModeType */
const idsSymbol = Symbol("HarmonyExportImportedSpecifierDependency.ids");
class NormalReexportItem {
/**
* @param {string} name export name
* @param {string[]} ids reexported ids from other module
* @param {ExportInfo} exportInfo export info from other module
* @param {boolean} checked true, if it should be checked at runtime if this export exists
* @param {boolean} hidden true, if it is hidden behind another active export in the same module
*/
constructor(name, ids, exportInfo, checked, hidden) {
this.name = name;
this.ids = ids;
this.exportInfo = exportInfo;
this.checked = checked;
this.hidden = hidden;
}
}
class ExportMode {
/**
* @param {ExportModeType} type type of the mode
*/
constructor(type) {
/** @type {ExportModeType} */
this.type = type;
// for "normal-reexport":
/** @type {NormalReexportItem[] | null} */
this.items = null;
// for "reexport-named-default" | "reexport-fake-namespace-object" | "reexport-namespace-object"
/** @type {string|null} */
this.name = null;
/** @type {ExportInfo | null} */
this.partialNamespaceExportInfo = null;
// for "dynamic-reexport":
/** @type {Set<string> | null} */
this.ignored = null;
// for "dynamic-reexport" | "empty-star":
/** @type {Set<string> | null} */
this.hidden = null;
// for "missing":
/** @type {string | null} */
this.userRequest = null;
// for "reexport-fake-namespace-object":
/** @type {number} */
this.fakeType = 0;
}
}
const determineExportAssignments = (
moduleGraph,
dependencies,
additionalDependency
) => {
const names = new Set();
const dependencyIndices = [];
if (additionalDependency) {
dependencies = dependencies.concat(additionalDependency);
}
for (const dep of dependencies) {
const i = dependencyIndices.length;
dependencyIndices[i] = names.size;
const otherImportedModule = moduleGraph.getModule(dep);
if (otherImportedModule) {
const exportsInfo = moduleGraph.getExportsInfo(otherImportedModule);
for (const exportInfo of exportsInfo.exports) {
if (
exportInfo.provided === true &&
exportInfo.name !== "default" &&
!names.has(exportInfo.name)
) {
names.add(exportInfo.name);
dependencyIndices[i] = names.size;
}
}
}
}
dependencyIndices.push(names.size);
return { names: Array.from(names), dependencyIndices };
};
const findDependencyForName = (
{ names, dependencyIndices },
name,
dependencies
) => {
const dependenciesIt = dependencies[Symbol.iterator]();
const dependencyIndicesIt = dependencyIndices[Symbol.iterator]();
let dependenciesItResult = dependenciesIt.next();
let dependencyIndicesItResult = dependencyIndicesIt.next();
if (dependencyIndicesItResult.done) return;
for (let i = 0; i < names.length; i++) {
while (i >= dependencyIndicesItResult.value) {
dependenciesItResult = dependenciesIt.next();
dependencyIndicesItResult = dependencyIndicesIt.next();
if (dependencyIndicesItResult.done) return;
}
if (names[i] === name) return dependenciesItResult.value;
}
return undefined;
};
class HarmonyExportImportedSpecifierDependency extends HarmonyImportDependency {
/**
* @param {string} request the request string
* @param {number} sourceOrder the order in the original source file
* @param {string[]} ids the requested export name of the imported module
* @param {string | null} name the export name of for this module
* @param {Set<string>} activeExports other named exports in the module
* @param {ReadonlyArray<HarmonyExportImportedSpecifierDependency> | Iterable<HarmonyExportImportedSpecifierDependency>} otherStarExports other star exports in the module before this import
* @param {boolean} strictExportPresence when true, missing exports in the imported module lead to errors instead of warnings
* @param {HarmonyStarExportsList} allStarExports all star exports in the module
* @param {Record<string, any>=} assertions import assertions
*/
constructor(
request,
sourceOrder,
ids,
name,
activeExports,
otherStarExports,
strictExportPresence,
allStarExports,
assertions
) {
super(request, sourceOrder, assertions);
this.ids = ids;
this.name = name;
this.activeExports = activeExports;
this.otherStarExports = otherStarExports;
this.strictExportPresence = strictExportPresence;
this.allStarExports = allStarExports;
this._getMode = this._getMode.bind(this);
}
// TODO webpack 6 remove
get id() {
throw new Error("id was renamed to ids and type changed to string[]");
}
// TODO webpack 6 remove
getId() {
throw new Error("id was renamed to ids and type changed to string[]");
}
// TODO webpack 6 remove
setId() {
throw new Error("id was renamed to ids and type changed to string[]");
}
get type() {
return "harmony export imported specifier";
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @returns {string[]} the imported id
*/
getIds(moduleGraph) {
return moduleGraph.getMeta(this)[idsSymbol] || this.ids;
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @param {string[]} ids the imported ids
* @returns {void}
*/
setIds(moduleGraph, ids) {
moduleGraph.getMeta(this)[idsSymbol] = ids;
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @param {RuntimeSpec} runtime the runtime
* @returns {ExportMode} the export mode
*/
getMode(moduleGraph, runtime) {
return moduleGraph.cached(this._getMode, runtime);
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @param {RuntimeSpec} runtime the runtime
* @returns {ExportMode} the export mode
*/
_getMode(moduleGraph, runtime) {
const name = this.name;
const ids = this.getIds(moduleGraph);
const parentModule = moduleGraph.getParentModule(this);
const importedModule = moduleGraph.getModule(this);
const exportsInfo = moduleGraph.getExportsInfo(parentModule);
if (!importedModule) {
const mode = new ExportMode("missing");
mode.userRequest = this.userRequest;
return mode;
}
if (
name
? exportsInfo.getUsed(name, runtime) === UsageState.Unused
: exportsInfo.isUsed(runtime) === false
) {
const mode = new ExportMode("unused");
mode.name = name || "*";
return mode;
}
const importedExportsType = importedModule.getExportsType(
moduleGraph,
parentModule.buildMeta.strictHarmonyModule
);
// Special handling for reexporting the default export
// from non-namespace modules
if (name && ids.length > 0 && ids[0] === "default") {
switch (importedExportsType) {
case "dynamic": {
const mode = new ExportMode("reexport-dynamic-default");
mode.name = name;
return mode;
}
case "default-only":
case "default-with-named": {
const exportInfo = exportsInfo.getReadOnlyExportInfo(name);
const mode = new ExportMode("reexport-named-default");
mode.name = name;
mode.partialNamespaceExportInfo = exportInfo;
return mode;
}
}
}
// reexporting with a fixed name
if (name) {
let mode;
const exportInfo = exportsInfo.getReadOnlyExportInfo(name);
if (ids.length > 0) {
// export { name as name }
switch (importedExportsType) {
case "default-only":
mode = new ExportMode("reexport-undefined");
mode.name = name;
break;
default:
mode = new ExportMode("normal-reexport");
mode.items = [
new NormalReexportItem(name, ids, exportInfo, false, false)
];
break;
}
} else {
// export * as name
switch (importedExportsType) {
case "default-only":
mode = new ExportMode("reexport-fake-namespace-object");
mode.name = name;
mode.partialNamespaceExportInfo = exportInfo;
mode.fakeType = 0;
break;
case "default-with-named":
mode = new ExportMode("reexport-fake-namespace-object");
mode.name = name;
mode.partialNamespaceExportInfo = exportInfo;
mode.fakeType = 2;
break;
case "dynamic":
default:
mode = new ExportMode("reexport-namespace-object");
mode.name = name;
mode.partialNamespaceExportInfo = exportInfo;
}
}
return mode;
}
// Star reexporting
const { ignoredExports, exports, checked, hidden } = this.getStarReexports(
moduleGraph,
runtime,
exportsInfo,
importedModule
);
if (!exports) {
// We have too few info about the modules
// Delegate the logic to the runtime code
const mode = new ExportMode("dynamic-reexport");
mode.ignored = ignoredExports;
mode.hidden = hidden;
return mode;
}
if (exports.size === 0) {
const mode = new ExportMode("empty-star");
mode.hidden = hidden;
return mode;
}
const mode = new ExportMode("normal-reexport");
mode.items = Array.from(
exports,
exportName =>
new NormalReexportItem(
exportName,
[exportName],
exportsInfo.getReadOnlyExportInfo(exportName),
checked.has(exportName),
false
)
);
if (hidden !== undefined) {
for (const exportName of hidden) {
mode.items.push(
new NormalReexportItem(
exportName,
[exportName],
exportsInfo.getReadOnlyExportInfo(exportName),
false,
true
)
);
}
}
return mode;
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @param {RuntimeSpec} runtime the runtime
* @param {ExportsInfo} exportsInfo exports info about the current module (optional)
* @param {Module} importedModule the imported module (optional)
* @returns {{exports?: Set<string>, checked?: Set<string>, ignoredExports: Set<string>, hidden?: Set<string>}} information
*/
getStarReexports(
moduleGraph,
runtime,
exportsInfo = moduleGraph.getExportsInfo(moduleGraph.getParentModule(this)),
importedModule = moduleGraph.getModule(this)
) {
const importedExportsInfo = moduleGraph.getExportsInfo(importedModule);
const noExtraExports =
importedExportsInfo.otherExportsInfo.provided === false;
const noExtraImports =
exportsInfo.otherExportsInfo.getUsed(runtime) === UsageState.Unused;
const ignoredExports = new Set(["default", ...this.activeExports]);
let hiddenExports = undefined;
const otherStarExports =
this._discoverActiveExportsFromOtherStarExports(moduleGraph);
if (otherStarExports !== undefined) {
hiddenExports = new Set();
for (let i = 0; i < otherStarExports.namesSlice; i++) {
hiddenExports.add(otherStarExports.names[i]);
}
for (const e of ignoredExports) hiddenExports.delete(e);
}
if (!noExtraExports && !noExtraImports) {
return {
ignoredExports,
hidden: hiddenExports
};
}
/** @type {Set<string>} */
const exports = new Set();
/** @type {Set<string>} */
const checked = new Set();
/** @type {Set<string>} */
const hidden = hiddenExports !== undefined ? new Set() : undefined;
if (noExtraImports) {
for (const exportInfo of exportsInfo.orderedExports) {
const name = exportInfo.name;
if (ignoredExports.has(name)) continue;
if (exportInfo.getUsed(runtime) === UsageState.Unused) continue;
const importedExportInfo =
importedExportsInfo.getReadOnlyExportInfo(name);
if (importedExportInfo.provided === false) continue;
if (hiddenExports !== undefined && hiddenExports.has(name)) {
hidden.add(name);
continue;
}
exports.add(name);
if (importedExportInfo.provided === true) continue;
checked.add(name);
}
} else if (noExtraExports) {
for (const importedExportInfo of importedExportsInfo.orderedExports) {
const name = importedExportInfo.name;
if (ignoredExports.has(name)) continue;
if (importedExportInfo.provided === false) continue;
const exportInfo = exportsInfo.getReadOnlyExportInfo(name);
if (exportInfo.getUsed(runtime) === UsageState.Unused) continue;
if (hiddenExports !== undefined && hiddenExports.has(name)) {
hidden.add(name);
continue;
}
exports.add(name);
if (importedExportInfo.provided === true) continue;
checked.add(name);
}
}
return { ignoredExports, exports, checked, hidden };
}
/**
* @param {ModuleGraph} moduleGraph module graph
* @returns {null | false | function(ModuleGraphConnection, RuntimeSpec): ConnectionState} function to determine if the connection is active
*/
getCondition(moduleGraph) {
return (connection, runtime) => {
const mode = this.getMode(moduleGraph, runtime);
return mode.type !== "unused" && mode.type !== "empty-star";
};
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @returns {ConnectionState} how this dependency connects the module to referencing modules
*/
getModuleEvaluationSideEffectsState(moduleGraph) {
return false;
}
/**
* Returns list of exports referenced by this dependency
* @param {ModuleGraph} moduleGraph module graph
* @param {RuntimeSpec} runtime the runtime for which the module is analysed
* @returns {(string[] | ReferencedExport)[]} referenced exports
*/
getReferencedExports(moduleGraph, runtime) {
const mode = this.getMode(moduleGraph, runtime);
switch (mode.type) {
case "missing":
case "unused":
case "empty-star":
case "reexport-undefined":
return Dependency.NO_EXPORTS_REFERENCED;
case "reexport-dynamic-default":
return Dependency.EXPORTS_OBJECT_REFERENCED;
case "reexport-named-default": {
if (!mode.partialNamespaceExportInfo)
return Dependency.EXPORTS_OBJECT_REFERENCED;
/** @type {string[][]} */
const referencedExports = [];
processExportInfo(
runtime,
referencedExports,
[],
/** @type {ExportInfo} */ (mode.partialNamespaceExportInfo)
);
return referencedExports;
}
case "reexport-namespace-object":
case "reexport-fake-namespace-object": {
if (!mode.partialNamespaceExportInfo)
return Dependency.EXPORTS_OBJECT_REFERENCED;
/** @type {string[][]} */
const referencedExports = [];
processExportInfo(
runtime,
referencedExports,
[],
/** @type {ExportInfo} */ (mode.partialNamespaceExportInfo),
mode.type === "reexport-fake-namespace-object"
);
return referencedExports;
}
case "dynamic-reexport":
return Dependency.EXPORTS_OBJECT_REFERENCED;
case "normal-reexport": {
const referencedExports = [];
for (const { ids, exportInfo, hidden } of mode.items) {
if (hidden) continue;
processExportInfo(runtime, referencedExports, ids, exportInfo, false);
}
return referencedExports;
}
default:
throw new Error(`Unknown mode ${mode.type}`);
}
}
/**
* @param {ModuleGraph} moduleGraph the module graph
* @returns {{ names: string[], namesSlice: number, dependencyIndices: number[], dependencyIndex: number } | undefined} exported names and their origin dependency
*/
_discoverActiveExportsFromOtherStarExports(moduleGraph) {
if (!this.otherStarExports) return undefined;
const i =
"length" in this.otherStarExports
? this.otherStarExports.length
: countIterable(this.otherStarExports);
if (i === 0) return undefined;
if (this.allStarExports) {
const { names, dependencyIndices } = moduleGraph.cached(
determineExportAssignments,
this.allStarExports.dependencies
);
return {
names,
namesSlice: dependencyIndices[i - 1],
dependencyIndices,
dependencyIndex: i
};
}
const { names, dependencyIndices } = moduleGraph.cached(
determineExportAssignments,
this.otherStarExports,
this
);
return {
names,
namesSlice: dependencyIndices[i - 1],
dependencyIndices,
dependencyIndex: i
};
}
/**
* Returns the exported names
* @param {ModuleGraph} moduleGraph module graph
* @returns {ExportsSpec | undefined} export names
*/
getExports(moduleGraph) {
const mode = this.getMode(moduleGraph, undefined);
switch (mode.type) {
case "missing":
return undefined;
case "dynamic-reexport": {
const from = moduleGraph.getConnection(this);
return {
exports: true,
from,
canMangle: false,
excludeExports: mode.hidden
? combine(mode.ignored, mode.hidden)
: mode.ignored,
hideExports: mode.hidden,
dependencies: [from.module]
};
}
case "empty-star":
return {
exports: [],
hideExports: mode.hidden,
dependencies: [moduleGraph.getModule(this)]
};
// falls through
case "normal-reexport": {
const from = moduleGraph.getConnection(this);
return {
exports: Array.from(mode.items, item => ({
name: item.name,
from,
export: item.ids,
hidden: item.hidden
})),
priority: 1,
dependencies: [from.module]
};
}
case "reexport-dynamic-default": {
{
const from = moduleGraph.getConnection(this);
return {
exports: [
{
name: mode.name,
from,
export: ["default"]
}
],
priority: 1,
dependencies: [from.module]
};
}
}
case "reexport-undefined":
return {
exports: [mode.name],
dependencies: [moduleGraph.getModule(this)]
};
case "reexport-fake-namespace-object": {
const from = moduleGraph.getConnection(this);
return {
exports: [
{
name: mode.name,
from,
export: null,
exports: [
{
name: "default",
canMangle: false,
from,
export: null
}
]
}
],
priority: 1,
dependencies: [from.module]
};
}
case "reexport-namespace-object": {
const from = moduleGraph.getConnection(this);
return {
exports: [
{
name: mode.name,
from,
export: null
}
],
priority: 1,
dependencies: [from.module]
};
}
case "reexport-named-default": {
const from = moduleGraph.getConnection(this);
return {
exports: [
{
name: mode.name,
from,
export: ["default"]
}
],
priority: 1,
dependencies: [from.module]
};
}
default:
throw new Error(`Unknown mode ${mode.type}`);
}
}
/**
* Returns warnings
* @param {ModuleGraph} moduleGraph module graph
* @returns {WebpackError[]} warnings
*/
getWarnings(moduleGraph) {
if (
this.strictExportPresence ||
moduleGraph.getParentModule(this).buildMeta.strictHarmonyModule
) {
return null;
}
return this._getErrors(moduleGraph);
}
/**
* Returns errors
* @param {ModuleGraph} moduleGraph module graph
* @returns {WebpackError[]} errors
*/
getErrors(moduleGraph) {
if (
this.strictExportPresence ||
moduleGraph.getParentModule(this).buildMeta.strictHarmonyModule
) {
return this._getErrors(moduleGraph);
}
return null;
}
/**
* @param {ModuleGraph} moduleGraph module graph
* @returns {WebpackError[] | undefined} errors
*/
_getErrors(moduleGraph) {
const ids = this.getIds(moduleGraph);
let errors = this.getLinkingErrors(
moduleGraph,
ids,
`(reexported as '${this.name}')`
);
if (ids.length === 0 && this.name === null) {
const potentialConflicts =
this._discoverActiveExportsFromOtherStarExports(moduleGraph);
if (potentialConflicts && potentialConflicts.namesSlice > 0) {
const ownNames = new Set(
potentialConflicts.names.slice(
potentialConflicts.namesSlice,
potentialConflicts.dependencyIndices[
potentialConflicts.dependencyIndex
]
)
);
const importedModule = moduleGraph.getModule(this);
if (importedModule) {
const exportsInfo = moduleGraph.getExportsInfo(importedModule);
const conflicts = new Map();
for (const exportInfo of exportsInfo.orderedExports) {
if (exportInfo.provided !== true) continue;
if (exportInfo.name === "default") continue;
if (this.activeExports.has(exportInfo.name)) continue;
if (ownNames.has(exportInfo.name)) continue;
const conflictingDependency = findDependencyForName(
potentialConflicts,
exportInfo.name,
this.allStarExports
? this.allStarExports.dependencies
: [...this.otherStarExports, this]
);
if (!conflictingDependency) continue;
const target = exportInfo.getTerminalBinding(moduleGraph);
if (!target) continue;
const conflictingModule = moduleGraph.getModule(
conflictingDependency
);
if (conflictingModule === importedModule) continue;
const conflictingExportInfo = moduleGraph.getExportInfo(
conflictingModule,
exportInfo.name
);
const conflictingTarget =
conflictingExportInfo.getTerminalBinding(moduleGraph);
if (!conflictingTarget) continue;
if (target === conflictingTarget) continue;
const list = conflicts.get(conflictingDependency.request);
if (list === undefined) {
conflicts.set(conflictingDependency.request, [exportInfo.name]);
} else {
list.push(exportInfo.name);
}
}
for (const [request, exports] of conflicts) {
if (!errors) errors = [];
errors.push(
new HarmonyLinkingError(
`The requested module '${
this.request
}' contains conflicting star exports for the ${
exports.length > 1 ? "names" : "name"
} ${exports
.map(e => `'${e}'`)
.join(", ")} with the previous requested module '${request}'`
)
);
}
}
}
}
return errors;
}
serialize(context) {
const { write, setCircularReference } = context;
setCircularReference(this);
write(this.ids);
write(this.name);
write(this.activeExports);
write(this.otherStarExports);
write(this.strictExportPresence);
write(this.allStarExports);
super.serialize(context);
}
deserialize(context) {
const { read, setCircularReference } = context;
setCircularReference(this);
this.ids = read();
this.name = read();
this.activeExports = read();
this.otherStarExports = read();
this.strictExportPresence = read();
this.allStarExports = read();
super.deserialize(context);
}
}
makeSerializable(
HarmonyExportImportedSpecifierDependency,
"webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency"
);
module.exports = HarmonyExportImportedSpecifierDependency;
HarmonyExportImportedSpecifierDependency.Template = class HarmonyExportImportedSpecifierDependencyTemplate extends (
HarmonyImportDependency.Template
) {
/**
* @param {Dependency} dependency the dependency for which the template should be applied
* @param {ReplaceSource} source the current replace source which can be modified
* @param {DependencyTemplateContext} templateContext the context object
* @returns {void}
*/
apply(dependency, source, templateContext) {
const { moduleGraph, runtime, concatenationScope } = templateContext;
const dep = /** @type {HarmonyExportImportedSpecifierDependency} */ (
dependency
);
const mode = dep.getMode(moduleGraph, runtime);
if (concatenationScope) {
switch (mode.type) {
case "reexport-undefined":
concatenationScope.registerRawExport(
mode.name,
"/* reexport non-default export from non-harmony */ undefined"
);
}
return;
}
if (mode.type !== "unused" && mode.type !== "empty-star") {
super.apply(dependency, source, templateContext);
this._addExportFragments(
templateContext.initFragments,
dep,
mode,
templateContext.module,
moduleGraph,
runtime,
templateContext.runtimeTemplate,
templateContext.runtimeRequirements
);
}
}
/**
* @param {InitFragment[]} initFragments target array for init fragments
* @param {HarmonyExportImportedSpecifierDependency} dep dependency
* @param {ExportMode} mode the export mode
* @param {Module} module the current module
* @param {ModuleGraph} moduleGraph the module graph
* @param {RuntimeSpec} runtime the runtime
* @param {RuntimeTemplate} runtimeTemplate the runtime template
* @param {Set<string>} runtimeRequirements runtime requirements
* @returns {void}
*/
_addExportFragments(
initFragments,
dep,
mode,
module,
moduleGraph,
runtime,
runtimeTemplate,
runtimeRequirements
) {
const importedModule = moduleGraph.getModule(dep);
const importVar = dep.getImportVar(moduleGraph);
switch (mode.type) {
case "missing":
case "empty-star":
initFragments.push(
new InitFragment(
"/* empty/unused harmony star reexport */\n",
InitFragment.STAGE_HARMONY_EXPORTS,
1
)
);
break;
case "unused":
initFragments.push(
new InitFragment(
`${Template.toNormalComment(
`unused harmony reexport ${mode.name}`
)}\n`,
InitFragment.STAGE_HARMONY_EXPORTS,
1
)
);
break;
case "reexport-dynamic-default":
initFragments.push(
this.getReexportFragment(
module,
"reexport default from dynamic",
moduleGraph.getExportsInfo(module).getUsedName(mode.name, runtime),
importVar,
null,
runtimeRequirements
)
);
break;
case "reexport-fake-namespace-object":
initFragments.push(
...this.getReexportFakeNamespaceObjectFragments(
module,
moduleGraph.getExportsInfo(module).getUsedName(mode.name, runtime),
importVar,
mode.fakeType,
runtimeRequirements
)
);
break;
case "reexport-undefined":
initFragments.push(
this.getReexportFragment(
module,
"reexport non-default export from non-harmony",
moduleGraph.getExportsInfo(module).getUsedName(mode.name, runtime),
"undefined",
"",
runtimeRequirements
)
);
break;
case "reexport-named-default":
initFragments.push(
this.getReexportFragment(
module,
"reexport default export from named module",
moduleGraph.getExportsInfo(module).getUsedName(mode.name, runtime),
importVar,
"",
runtimeRequirements
)
);
break;
case "reexport-namespace-object":
initFragments.push(
this.getReexportFragment(
module,
"reexport module object",
moduleGraph.getExportsInfo(module).getUsedName(mode.name, runtime),
importVar,
"",
runtimeRequirements
)
);
break;
case "normal-reexport":
for (const { name, ids, checked, hidden } of mode.items) {
if (hidden) continue;
if (checked) {
initFragments.push(
new InitFragment(
"/* harmony reexport (checked) */ " +
this.getConditionalReexportStatement(
module,
name,
importVar,
ids,
runtimeRequirements
),
InitFragment.STAGE_HARMONY_IMPORTS,
dep.sourceOrder
)
);
} else {
initFragments.push(
this.getReexportFragment(
module,
"reexport safe",
moduleGraph.getExportsInfo(module).getUsedName(name, runtime),
importVar,
moduleGraph
.getExportsInfo(importedModule)
.getUsedName(ids, runtime),
runtimeRequirements
)
);
}
}
break;
case "dynamic-reexport": {
const ignored = mode.hidden
? combine(mode.ignored, mode.hidden)
: mode.ignored;
const modern =
runtimeTemplate.supportsConst() &&
runtimeTemplate.supportsArrowFunction();
let content =
"/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};\n" +
`/* harmony reexport (unknown) */ for(${
modern ? "const" : "var"
} __WEBPACK_IMPORT_KEY__ in ${importVar}) `;
// Filter out exports which are defined by other exports
// and filter out default export because it cannot be reexported with *
if (ignored.size > 1) {
content +=
"if(" +
JSON.stringify(Array.from(ignored)) +
".indexOf(__WEBPACK_IMPORT_KEY__) < 0) ";
} else if (ignored.size === 1) {
content += `if(__WEBPACK_IMPORT_KEY__ !== ${JSON.stringify(
first(ignored)
)}) `;
}
content += `__WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = `;
if (modern) {
content += `() => ${importVar}[__WEBPACK_IMPORT_KEY__]`;
} else {
content += `function(key) { return ${importVar}[key]; }.bind(0, __WEBPACK_IMPORT_KEY__)`;
}
runtimeRequirements.add(RuntimeGlobals.exports);
runtimeRequirements.add(RuntimeGlobals.definePropertyGetters);
const exportsName = module.exportsArgument;
initFragments.push(
new InitFragment(
`${content}\n/* harmony reexport (unknown) */ ${RuntimeGlobals.definePropertyGetters}(${exportsName}, __WEBPACK_REEXPORT_OBJECT__);\n`,
InitFragment.STAGE_HARMONY_IMPORTS,
dep.sourceOrder
)
);
break;
}
default:
throw new Error(`Unknown mode ${mode.type}`);
}
}
getReexportFragment(
module,
comment,
key,
name,
valueKey,
runtimeRequirements
) {
const returnValue = this.getReturnValue(name, valueKey);
runtimeRequirements.add(RuntimeGlobals.exports);
runtimeRequirements.add(RuntimeGlobals.definePropertyGetters);
const map = new Map();
map.set(key, `/* ${comment} */ ${returnValue}`);
return new HarmonyExportInitFragment(module.exportsArgument, map);
}
getReexportFakeNamespaceObjectFragments(
module,
key,
name,
fakeType,
runtimeRequirements
) {
runtimeRequirements.add(RuntimeGlobals.exports);
runtimeRequirements.add(RuntimeGlobals.definePropertyGetters);
runtimeRequirements.add(RuntimeGlobals.createFakeNamespaceObject);
const map = new Map();
map.set(
key,
`/* reexport fake namespace object from non-harmony */ ${name}_namespace_cache || (${name}_namespace_cache = ${
RuntimeGlobals.createFakeNamespaceObject
}(${name}${fakeType ? `, ${fakeType}` : ""}))`
);
return [
new InitFragment(
`var ${name}_namespace_cache;\n`,
InitFragment.STAGE_CONSTANTS,
-1,
`${name}_namespace_cache`
),
new HarmonyExportInitFragment(module.exportsArgument, map)
];
}
getConditionalReexportStatement(
module,
key,
name,
valueKey,
runtimeRequirements
) {
if (valueKey === false) {
return "/* unused export */\n";
}
const exportsName = module.exportsArgument;
const returnValue = this.getReturnValue(name, valueKey);
runtimeRequirements.add(RuntimeGlobals.exports);
runtimeRequirements.add(RuntimeGlobals.definePropertyGetters);
runtimeRequirements.add(RuntimeGlobals.hasOwnProperty);
return `if(${RuntimeGlobals.hasOwnProperty}(${name}, ${JSON.stringify(
valueKey[0]
)})) ${
RuntimeGlobals.definePropertyGetters
}(${exportsName}, { ${JSON.stringify(
key
)}: function() { return ${returnValue}; } });\n`;
}
getReturnValue(name, valueKey) {
if (valueKey === null) {
return `${name}_default.a`;
}
if (valueKey === "") {
return name;
}
if (valueKey === false) {
return "/* unused export */ undefined";
}
return `${name}${propertyAccess(valueKey)}`;
}
};
class HarmonyStarExportsList {
constructor() {
/** @type {HarmonyExportImportedSpecifierDependency[]} */
this.dependencies = [];
}
/**
* @param {HarmonyExportImportedSpecifierDependency} dep dependency
* @returns {void}
*/
push(dep) {
this.dependencies.push(dep);
}
slice() {
return this.dependencies.slice();
}
serialize({ write, setCircularReference }) {
setCircularReference(this);
write(this.dependencies);
}
deserialize({ read, setCircularReference }) {
setCircularReference(this);
this.dependencies = read();
}
}
makeSerializable(
HarmonyStarExportsList,
"webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency",
"HarmonyStarExportsList"
);
module.exports.HarmonyStarExportsList = HarmonyStarExportsList;
|
import Vuex from 'vuex'
import Vue from 'vue'
import { createStore } from '../../src'
Vue.use(Vuex)
describe('Store->create', () => {
it('create twice', () => {
expect(Vuex.Store.prototype.reset).toBe(undefined)
// first
createStore(Vuex.Store)
var firstReset = Vuex.Store.prototype.reset
// second
createStore(Vuex.Store, { })
expect(Vuex.Store.prototype.reset).toEqual(firstReset)
})
})
|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
define(["require", "exports", "vs/workbench/api/common/extHost.protocol", "../common/extHostCustomers", "vs/platform/url/common/url", "vs/workbench/services/extensions/browser/extensionUrlHandler", "vs/platform/extensions/common/extensions"], function (require, exports, extHost_protocol_1, extHostCustomers_1, url_1, extensionUrlHandler_1, extensions_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class ExtensionUrlHandler {
constructor(proxy, handle, extensionId) {
this.proxy = proxy;
this.handle = handle;
this.extensionId = extensionId;
}
handleURL(uri, options) {
if (!extensions_1.ExtensionIdentifier.equals(this.extensionId, uri.authority)) {
return Promise.resolve(false);
}
return Promise.resolve(this.proxy.$handleExternalUri(this.handle, uri)).then(() => true);
}
}
let MainThreadUrls = class MainThreadUrls {
constructor(context, urlService, extensionUrlHandler) {
this.urlService = urlService;
this.extensionUrlHandler = extensionUrlHandler;
this.handlers = new Map();
this.proxy = context.getProxy(extHost_protocol_1.ExtHostContext.ExtHostUrls);
}
$registerUriHandler(handle, extensionId) {
const handler = new ExtensionUrlHandler(this.proxy, handle, extensionId);
const disposable = this.urlService.registerHandler(handler);
this.handlers.set(handle, { extensionId, disposable });
this.extensionUrlHandler.registerExtensionHandler(extensionId, handler);
return Promise.resolve(undefined);
}
$unregisterUriHandler(handle) {
const tuple = this.handlers.get(handle);
if (!tuple) {
return Promise.resolve(undefined);
}
const { extensionId, disposable } = tuple;
this.extensionUrlHandler.unregisterExtensionHandler(extensionId);
this.handlers.delete(handle);
disposable.dispose();
return Promise.resolve(undefined);
}
async $createAppUri(uri) {
return this.urlService.create(uri);
}
async $proposedCreateAppUri(extensionId, options) {
const payload = options && options.payload ? options.payload : Object.create(null);
// we define the authority to be the extension ID to ensure
// that the Uri gets routed back to the extension properly.
payload.authority = extensionId.value;
return this.urlService.create(payload);
}
dispose() {
this.handlers.forEach(({ disposable }) => disposable.dispose());
this.handlers.clear();
}
};
MainThreadUrls = __decorate([
extHostCustomers_1.extHostNamedCustomer(extHost_protocol_1.MainContext.MainThreadUrls),
__param(1, url_1.IURLService),
__param(2, extensionUrlHandler_1.IExtensionUrlHandler)
], MainThreadUrls);
exports.MainThreadUrls = MainThreadUrls;
});
//# sourceMappingURL=mainThreadUrls.js.map
|
const inquirer = require("inquirer");
const table = require("console-table-printer");
module.exports = {
deleteEmployee: function (connection, start) {
connection.query("SELECT * FROM employee", function (err, employeeData) {
var allEmployees = employeeData.map(
(employee) => employee.first_name + " " + employee.last_name
);
inquirer
.prompt([
{
name: "employee",
type: "list",
message: "Select the employee to delete?",
choices: allEmployees,
},
])
.then((response) => {
var employeeObj = employeeData.find(
(employees) =>
employees.first_name + " " + employees.last_name ===
response.employee
);
connection.query(
"DELETE FROM employee WHERE id=?",
[employeeObj.id],
function (err) {
if (err) throw err;
console.log(
"---------------------------------------------------------"
);
console.log("Employee Deleted!");
console.log(
"---------------------------------------------------------"
);
start();
}
);
});
});
},
deleteRole: function (connection, start) {
connection.query("SELECT * FROM role", function (err, roleData) {
var allRoles = roleData.map((role) => role.title);
inquirer
.prompt([
{
name: "title",
type: "list",
message: "Select the role to be deleted?",
choices: allRoles,
},
])
.then((response) => {
var roleObj = roleData.find((role) => role.title === response.title);
connection.query(
"DELETE FROM role WHERE id=?",
[roleObj.id],
function (err) {
if (err) throw err;
console.log(
"---------------------------------------------------------"
);
console.log("Role Deleted!");
console.log(
"---------------------------------------------------------"
);
start();
}
);
});
});
},
deleteDept: function (connection, start) {
connection.query("SELECT * FROM department", function (err, deptData) {
var allDept = deptData.map((department) => department.name);
inquirer
.prompt([
{
name: "dept",
type: "list",
message: "Select the department to be deleted?",
choices: allDept,
},
])
.then((response) => {
var deptObj = deptData.find((dept) => dept.name === response.dept);
connection.query(
"DELETE FROM department WHERE id=?",
[deptObj.id],
function (err) {
if (err) throw err;
console.log(
"---------------------------------------------------------"
);
console.log("Department Deleted!");
console.log(
"---------------------------------------------------------"
);
start();
}
);
});
});
},
};
|
class tpccom_inksettings_1 {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
GetLifetimeService() {
}
// type GetType()
GetType() {
}
// System.Object InitializeLifetimeService()
InitializeLifetimeService() {
}
// string ToString()
ToString() {
}
}
module.exports = tpccom_inksettings_1;
|
/*
Atividade: Crie uma calculadora
Atividade I: Crie operações matemática para a calculadora.
O controlador deve ser capaz de:
( ) Multiplicar;
( ) Dividir;
( ) Somar;
( ) Subtrair.
Obs.: Crie um módulo chamado operações.js contendo as funções de callback.
Atividade II: Crie uma função para resetar a calculadora.
( ) A função deve ser capaz de zerar o valor acumulado.
( ) Crie a documentação da função utilizando JavaDoc.
Atividade Bônus: Crie uma função para guardar as operações matemáticas
( ) A função deve guardar cada operação matemática e retornar as operações acumuladas.
( ) Imprima na tela as operações matemáticas realizada com o resultado final.
( ) Crie a documentação da função utilizando JavaDoc.
Exemplo: 2 * 2 + 3 / 4 - 1 = 0.75
*/
const Calculadora = require('./modulos/calculadora');
const app = new Calculadora();
console.log('Resultado:');
console.log('Zerando a calculadora:');
console.log('Operações:');
console.log('Operações = resultado:');
|
/* eslint-disable react/jsx-curly-newline */
import React, { useState, useEffect, useReducer } from 'react';
import PropTypes from 'prop-types';
import { makeStyles } from '@material-ui/core/styles';
import KeyboardReturnIcon from '@material-ui/icons/KeyboardReturn';
import { useHistory } from 'react-router-dom';
import Modal from '@material-ui/core/Modal';
import { Backdrop, Typography, InputLabel } from '@material-ui/core';
import Tooltip from '@material-ui/core/Tooltip';
import { useMatomo } from '@datapunt/matomo-tracker-react';
import Fade from '@material-ui/core/Fade';
import styled, { css } from 'styled-components';
import useMediaQuery from '@material-ui/core/useMediaQuery';
import TextFieldComponent from '../../../../components/FormFields/TextField';
import ButtonComponent from '../../../../components/FormFields/ActionButton';
import infoIcon from '../../../../assets/info.svg';
import removeIcon from '../../../../assets/close.svg';
import ComponentError from '../../../../errorBoundaries/ComponentError/component-error';
import ApproleIcon from '../../../../assets/icon-approle.svg';
import leftArrowIcon from '../../../../assets/left-arrow.svg';
import mediaBreakpoints from '../../../../breakpoints';
import SnackbarComponent from '../../../../components/Snackbar';
import { useStateValue } from '../../../../contexts/globalState';
import BackdropLoader from '../../../../components/Loaders/BackdropLoader';
import apiService from '../apiService';
import {
GlobalModalWrapper,
RequiredCircle,
RequiredText,
TitleThree,
} from '../../../../styles/GlobalStyles';
import { resolveConfig } from 'prettier';
import { reject } from 'lodash';
const { small } = mediaBreakpoints;
const StyledModal = styled(Modal)`
@-moz-document url-prefix() {
.MuiBackdrop-root {
position: absolute;
height: 115rem;
}
}
`;
const HeaderWrapper = styled.div`
display: flex;
align-items: center;
${small} {
margin-top: 1rem;
}
`;
const LeftIcon = styled.img`
display: none;
${small} {
display: block;
margin-right: 1.4rem;
margin-top: 0.3rem;
}
`;
const IconDescriptionWrapper = styled.div`
display: flex;
align-items: center;
margin-bottom: 0.5rem;
position: relative;
margin-top: 3.2rem;
`;
const SafeIcon = styled.img`
height: 5.7rem;
width: 5rem;
margin-right: 2rem;
`;
const extraCss = css`
${small} {
font-size: 1.3rem;
}
`;
const CreateSafeForm = styled.form`
display: flex;
flex-direction: column;
margin-top: 2.8rem;
`;
const InputFieldLabelWrapper = styled.div`
margin-bottom: 2rem;
position: ${(props) => (props.postion ? 'relative' : '')};
.MuiSelect-icon {
top: auto;
color: #000;
}
`;
const CancelSaveWrapper = styled.div`
display: flex;
justify-content: flex-end;
${small} {
margin-top: 5.3rem;
}
button {
${small} {
height: 4.5rem;
}
}
`;
const CancelButton = styled.div`
margin-right: 0.8rem;
${small} {
margin-right: 1rem;
width: 100%;
}
`;
const InputLabelWrap = styled.div`
display: flex;
justify-content: space-between;
`;
const InfoIcon = styled('img')``;
const RequiredInfo = styled.div`
display: flex;
align-items: center;
justify-content: flex-end;
`;
const Span = styled('span')`
font-size: 1.3rem;
color: #29bd51;
`;
const InputLabelWithInfo = styled(InputLabel)`
cursor: pointer;
`;
const InputEndWrap = styled.div`
display: flex;
`;
const EndingBox = styled.div`
background-color: ${(props) =>
props.theme.customColor.primary.backgroundColor};
color: ${(props) => props.theme.customColor.primary.color};
width: ${(props) => props.width};
display: flex;
align-items: center;
height: 5rem;
`;
const ReturnIcon = styled.span`
margin-left: auto;
margin-right: 1rem;
margin-top: 0.5rem;
cursor: pointer;
`;
const ArrayList = styled.div`
display: flex;
flex-wrap: wrap;
margin-top: 1rem;
`;
const RemoveIcon = styled.img`
width: 1.5rem;
margin-left: 1rem;
cursor: pointer;
`;
const EachItem = styled.div`
background-color: #454c5e;
padding: 1rem;
display: flex;
align-items: center;
margin: 0.3rem 0.5rem 0.3rem 0;
`;
const Name = styled.span`
font-size: 1.4rem;
`;
const useStyles = makeStyles((theme) => ({
modal: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
overflowY: 'auto',
padding: '10rem 0',
[theme.breakpoints.down('xs')]: {
alignItems: 'unset',
justifyContent: 'unset',
padding: '0',
height: '100%',
},
},
}));
const useTooltipStyles = makeStyles((theme) => ({
arrow: {
color: theme.palette.common.white,
},
tooltip: {
backgroundColor: theme.palette.common.white,
color: theme.palette.common.black,
fontSize: theme.typography.subtitle2.fontSize,
},
}));
const CreateAppRole = (props) => {
const { refresh } = props;
const classes = useStyles();
const tooltipClasses = useTooltipStyles();
const [open, setOpen] = useState(true);
const [responseType, setResponseType] = useState(null);
const isMobileScreen = useMediaQuery(small);
const [appRoleError, setApproleError] = useState(null);
const [editApprole, setEditApprole] = useState(false);
const [allAppRoles, setAllAppRoles] = useState([]);
const [nameAvailable, setNameAvailable] = useState(true);
const [status, setStatus] = useState({});
const history = useHistory();
const [stateVal] = useStateValue();
const { trackPageView, trackEvent } = useMatomo();
const [sharedToArray, setSharedToArray] = useState([]);
const [sharedTo, setSharedTo] = useState('');
const [sharedToError, setSharedToError] = useState(false);
const [sharedToErrorMessage, setSharedToErrorMessage] = useState('');
const [canEditSharedTo, setCanEditSharedTo] = useState(true);
const admin = Boolean(stateVal.isAdmin);
const initialState = {
roleName: '',
maxTokenTtl: '',
tokenTtl: '',
sectetIdNumUses: '',
tokenNumUses: '',
secretIdTtl: '',
tokenPolicies: '',
};
// eslint-disable-next-line consistent-return
const reducer = (state, { field, type, value, payload }) => {
switch (type) {
case 'INPUT_FORM_FIELDS':
return { ...state, [field]: value };
case 'UPDATE_FORM_FIELDS':
return { ...state, ...payload };
default:
break;
}
};
const [state, dispatch] = useReducer(reducer, initialState);
const onChange = (e) => {
dispatch({
type: 'INPUT_FORM_FIELDS',
field: e?.target?.name,
value: e?.target?.value,
});
};
const {
roleName,
maxTokenTtl,
tokenTtl,
sectetIdNumUses,
tokenNumUses,
secretIdTtl,
tokenPolicies,
} = state;
useEffect(() => {
setStatus({ status: 'loading' });
apiService
.getAppRole()
.then((res) => {
setStatus({});
const appRolesArr = [];
if (res?.data?.keys) {
res.data.keys.map((item) => {
const appObj = {
name: item,
admin,
};
return appRolesArr.push(appObj);
});
}
setAllAppRoles([...appRolesArr]);
})
.catch(() => {
setStatus({});
});
}, [admin]);
useEffect(() => {
if (history.location.pathname === '/vault-app-roles/edit-vault-app-role' &&
history.location.state.appRoleDetails.isEdit) {
validateCanUpdateSharedTo().then((res) => {
setCanEditSharedTo(res);
})
}
}, [canEditSharedTo]);
const handleClose = () => {
setOpen(false);
history.goBack();
};
/**
* @function validateRoleName
* @description To check the existing rolenames
* @param {*} e event of input handler
*/
const validateRoleName = (name) => {
const itemExits = allAppRoles?.filter((approle) => approle.name === name);
if (itemExits?.length) {
setApproleError({
error: true,
message: 'This approle name already exists, Please take another name.',
});
setNameAvailable(false);
return;
}
if (name.length < 3 || !name.match(/^[A-Za-z0-9_]*?[a-z0-9]$/i)) {
setApproleError({ error: true, message: 'Please enter valid role name' });
setNameAvailable(false);
return;
}
setApproleError({ error: false });
setNameAvailable(true);
};
const validateCanUpdateSharedTo = () => {
return new Promise((resolve, reject) =>
apiService
.getIsAppRoleOwner(history.location.state.appRoleDetails.name)
.then((res) => {
resolve(res.data);
})
.catch((err) => {
if (err.response && err.response.data?.errors[0]) {
setStatus({ status: 'failed', message: err.response.data.errors[0] });
}
setResponseType(-1);
reject(err.data);
})
);
};
const onRoleNameChange = (e) => {
setApproleError(false);
validateRoleName(e.target.value);
onChange(e);
};
const onInputNumberChange = (e) => {
const re = /^[0-9\b]+$/;
if (e.target.value <= 999999999) {
if (e?.target?.value === '' || re.test(e?.target?.value)) {
onChange(e);
}
}
};
const onAddSharedToEnterClicked = (e) => {
if (e.keyCode === 13 && e?.target?.value && !sharedToError) {
e.preventDefault();
const val = `${e.target.value}`;
if (!checkSharedToAlreadyIncluded(val)) {
setSharedToArray((prev) => [...prev, val.toLowerCase()]);
setSharedTo('');
setSharedToError(false);
setSharedToErrorMessage('');
}
}
};
const onAddSharedToKeyClicked = () => {
if (sharedTo && !sharedToError) {
if (!checkSharedToAlreadyIncluded(sharedTo)) {
setSharedToArray((prev) => [...prev, sharedTo.toLowerCase()]);
setSharedTo('');
setSharedToError(false);
setSharedToErrorMessage('');
}
}
};
const checkSharedToAlreadyIncluded = (val) => {
let alreadyContains = false;
if (sharedToArray?.includes(val)) {
setSharedToError(true);
setSharedToErrorMessage('Name already added!');
alreadyContains = true;
}
return alreadyContains;
};
const onSharedToChange = (e) => {
setSharedTo(e.target.value);
const { value } = e.target;
if (value && !validateSharedTo(value)) {
setSharedToError(true);
setSharedToErrorMessage(
'Shared to name can have alphanumeric, . and - characters only, and it should not start or end with special characters(-.)'
);
} else {
setSharedToError(false);
setSharedToErrorMessage('');
}
};
const validateSharedTo = (text) => {
if (text) {
const res = /^[a-z0-9]+$/i;
return (
res.test(text)
);
}
return null;
};
const onRemoveClicked = (sharedTo) => {
if (canEditSharedTo) {
const array = sharedToArray.filter((item) => item !== sharedTo);
setSharedToArray([...array]);
}
};
const splitString = (val) => {
return val.split('_').slice('2').join('_');
};
useEffect(() => {
if (
history.location.pathname === '/vault-app-roles/edit-vault-app-role' &&
history.location.state.appRoleDetails.isEdit
) {
setEditApprole(true);
setResponseType(0);
setAllAppRoles([...history.location.state.appRoleDetails.allAppRoles]);
apiService
.fetchAppRoleDetails(history.location.state.appRoleDetails.name)
.then((res) => {
setResponseType(null);
if (res?.data?.data) {
const array = [];
if (
res?.data?.data?.token_policies &&
res?.data?.data?.token_policies?.length > 0
) {
res.data.data.token_policies.map((item) => {
const str = splitString(item);
return array.push(str);
});
}
if (res.data.data.shared_to != null) {
setSharedToArray(res.data.data.shared_to);
} else {
setSharedToArray([]);
}
dispatch({
type: 'UPDATE_FORM_FIELDS',
payload: {
roleName: history.location.state.appRoleDetails.name,
maxTokenTtl: res.data.data.token_max_ttl,
tokenTtl: res.data.data.token_ttl,
sectetIdNumUses: res.data.data.secret_id_num_uses,
tokenNumUses: res.data.data.token_num_uses,
secretIdTtl: res.data.data.secret_id_ttl,
sharedToArray: res.data.data.shared_to,
tokenPolicies: array.join(','),
},
});
}
})
.catch((err) => {
if (err.response && err.response.data?.errors[0]) {
setStatus({ message: err.response.data.errors[0] });
}
setResponseType(-1);
});
}
}, [history]);
const constructPayload = () => {
const data = {
role_name: roleName,
secret_id_num_uses: sectetIdNumUses,
secret_id_ttl: secretIdTtl,
token_max_ttl: maxTokenTtl,
token_num_uses: tokenNumUses,
token_ttl: tokenTtl,
shared_to: sharedToArray,
};
return data;
};
const onEditApprole = () => {
const payload = constructPayload();
setResponseType(0);
apiService
.updateAppRole(payload)
.then(async (res) => {
if (res) {
setResponseType(1);
setStatus({ status: 'success', message: res.data.messages[0] });
await refresh();
setTimeout(() => {
setOpen(false);
history.goBack();
}, 1000);
}
})
.catch((err) => {
if (err.response && err.response.data?.errors[0]) {
setStatus({ status: 'failed', message: err.response.data.errors[0] });
}
setResponseType(-1);
});
};
useEffect(() => {
trackPageView();
return () => {
trackPageView();
};
}, [trackPageView]);
const onCreateApprole = () => {
const payload = constructPayload();
setResponseType(0);
apiService
.createAppRole(payload)
.then(async (res) => {
if (res) {
setResponseType(1);
trackEvent({
category: 'vault-approle-creation',
action: 'click-event',
});
setStatus({ status: 'success', message: res.data.messages[0] });
await refresh();
setTimeout(() => {
setOpen(false);
history.goBack();
}, 1000);
}
})
.catch((err) => {
if (err.response && err.response.data?.errors[0]) {
setStatus({ status: 'failed', message: err.response.data.errors[0] });
}
setResponseType(-1);
});
};
const onToastClose = (reason) => {
if (reason === 'clickaway') {
return;
}
setResponseType(null);
setStatus({});
};
const renderReturnSymbol = () => {
if (canEditSharedTo) {
return (
<EndingBox width="17rem">
<ReturnIcon onClick={() => onAddSharedToKeyClicked()}>
<KeyboardReturnIcon />
</ReturnIcon>
</EndingBox>
)
}
return null;
}
const getDisabledState = () => {
return (
roleName === '' ||
maxTokenTtl === '' ||
tokenTtl === '' ||
sectetIdNumUses === '' ||
tokenNumUses === '' ||
secretIdTtl === '' ||
appRoleError?.error
);
};
return (
<ComponentError>
<StyledModal
aria-labelledby="transition-modal-title"
aria-describedby="transition-modal-description"
className={classes.modal}
open={open}
onClose={() => handleClose()}
closeAfterTransition
BackdropComponent={Backdrop}
BackdropProps={{
timeout: 500,
}}
>
<Fade in={open}>
<GlobalModalWrapper>
{responseType === 0 && <BackdropLoader />}
<HeaderWrapper>
<LeftIcon
src={leftArrowIcon}
alt="go-back"
onClick={() => handleClose()}
/>
<Typography variant="h5">
{editApprole ? 'Edit AppRole' : 'Create AppRole'}
</Typography>
</HeaderWrapper>
<IconDescriptionWrapper>
<SafeIcon src={ApproleIcon} alt="app-role-icon" />
<TitleThree lineHeight="1.8rem" extraCss={extraCss} color="#ccc">
Approles’s operate a lot like safes, but they put the
application at the logical unit for sharing.
</TitleThree>
</IconDescriptionWrapper>
<CreateSafeForm>
<RequiredInfo>
<RequiredCircle />
<RequiredText>Required</RequiredText>
</RequiredInfo>
<InputFieldLabelWrapper>
<InputLabelWrap>
<InputLabel>
Role Name
<RequiredCircle margin="0.5rem" />
</InputLabel>
<InfoIcon src={infoIcon} alt="info-icon-role-name" />
</InputLabelWrap>
<TextFieldComponent
value={roleName}
placeholder="Role name - enter minimum 3 characters"
fullWidth
readOnly={!!editApprole}
characterLimit={50}
name="roleName"
onChange={(e) => onRoleNameChange(e)}
error={appRoleError?.error}
helperText={appRoleError?.message || ''}
/>
{roleName && nameAvailable && !editApprole && (
<Span>Role Name Available!</Span>
)}
</InputFieldLabelWrapper>
<Tooltip
classes={tooltipClasses}
arrow
title="Duration in seconds after which the issued token can no longer be renewed"
placement="top"
>
<InputFieldLabelWrapper postion>
<InputLabelWrap>
<InputLabelWithInfo>
Token Max TTL
<RequiredCircle margin="0.5rem" />
</InputLabelWithInfo>
<InfoIcon src={infoIcon} alt="info-icon" />
</InputLabelWrap>
<TextFieldComponent
value={maxTokenTtl}
placeholder="Token Max TTL"
fullWidth
name="maxTokenTtl"
onChange={(e) => onInputNumberChange(e)}
/>
</InputFieldLabelWrapper>
</Tooltip>
<Tooltip
classes={tooltipClasses}
arrow
title="Duration in seconds to set as a TTL for issued tokens and at renewal time"
placement="top"
>
<InputFieldLabelWrapper>
<InputLabelWrap>
<InputLabelWithInfo>
Token TTL
<RequiredCircle margin="0.5rem" />
</InputLabelWithInfo>
<InfoIcon src={infoIcon} alt="info-icon-token" />
</InputLabelWrap>
<TextFieldComponent
value={tokenTtl}
placeholder="Token_TTL"
fullWidth
name="tokenTtl"
onChange={(e) => onInputNumberChange(e)}
/>
</InputFieldLabelWrapper>
</Tooltip>
<Tooltip
classes={tooltipClasses}
arrow
title="Number of times the secretID can be used to fetch a token from this approle"
placement="top"
>
<InputFieldLabelWrapper>
<InputLabelWrap>
<InputLabelWithInfo>
Secret ID Number Uses
<RequiredCircle margin="0.5rem" />
</InputLabelWithInfo>
<InfoIcon src={infoIcon} alt="info-icon-sec" />
</InputLabelWrap>
<TextFieldComponent
value={sectetIdNumUses}
placeholder="secret_Id_Num_Uses"
fullWidth
name="sectetIdNumUses"
onChange={(e) => onInputNumberChange(e)}
/>
</InputFieldLabelWrapper>
</Tooltip>
<Tooltip
classes={tooltipClasses}
arrow
title="Number of times the issued token can be used"
placement="top"
>
<InputFieldLabelWrapper>
<InputLabelWrap>
<InputLabelWithInfo>
Token Number Uses
<RequiredCircle margin="0.5rem" />
</InputLabelWithInfo>
<InfoIcon src={infoIcon} alt="info-icon-token-uses" />
</InputLabelWrap>
<TextFieldComponent
value={tokenNumUses}
placeholder="token_num_uses"
fullWidth
name="tokenNumUses"
onChange={(e) => onInputNumberChange(e)}
/>
</InputFieldLabelWrapper>
</Tooltip>
<Tooltip
classes={tooltipClasses}
arrow
title="Duration in seconds after which the issued secretID expires"
placement="top"
>
<InputFieldLabelWrapper>
<InputLabelWrap>
<InputLabelWithInfo>
Secret ID TTL
<RequiredCircle margin="0.5rem" />
</InputLabelWithInfo>
<InfoIcon src={infoIcon} alt="info-icon-secret-id" />
</InputLabelWrap>
<TextFieldComponent
value={secretIdTtl}
placeholder="secret_id_ttl"
fullWidth
name="secretIdTtl"
onChange={(e) => onInputNumberChange(e)}
/>
</InputFieldLabelWrapper>
</Tooltip>
<Tooltip
classes={tooltipClasses}
arrow
title="Users this approle will be shared with. These users will have access to read from the approle, as well as delete keys"
placement="top"
>
<InputFieldLabelWrapper>
<InputLabelWrap>
<InputLabelWithInfo>Shared To</InputLabelWithInfo>
<InfoIcon src={infoIcon} alt="info-icon-token-uses" />
</InputLabelWrap>
<InputEndWrap>
<TextFieldComponent
value={sharedTo}
placeholder="shared_to"
fullWidth
name="sharedTo"
readOnly={!canEditSharedTo}
onChange={(e) => {
onSharedToChange(e);
}}
error={sharedToError}
helperText={sharedToError ? sharedToErrorMessage : ''}
onKeyDown={(e) => onAddSharedToEnterClicked(e)}
/>
{renderReturnSymbol()}
</InputEndWrap>
<ArrayList>
{sharedToArray.map((item) => {
return (
<EachItem key={item}>
<Name>{item}</Name>
{canEditSharedTo ?
<RemoveIcon
src={removeIcon}
alt="remove"
onClick={() => onRemoveClicked(item)}
/> : null}
</EachItem>
);
})}
</ArrayList>
</InputFieldLabelWrapper>
</Tooltip>
{tokenPolicies && (
<Tooltip
classes={tooltipClasses}
arrow
title="List of permission allowed for this approle to access secrets and passwords"
placement="top"
>
<InputFieldLabelWrapper>
<InputLabelWrap>
<InputLabelWithInfo>Permissions</InputLabelWithInfo>
<InfoIcon src={infoIcon} alt="info-icon-secret-id" />
</InputLabelWrap>
<TextFieldComponent
value={tokenPolicies}
placeholder=""
fullWidth
readOnly
name="tokenPolicies"
/>
</InputFieldLabelWrapper>
</Tooltip>
)}
</CreateSafeForm>
<CancelSaveWrapper>
<CancelButton>
<ButtonComponent
label="Cancel"
color="primary"
onClick={() => handleClose()}
width={isMobileScreen ? '100%' : ''}
/>
</CancelButton>
<ButtonComponent
label={!editApprole ? 'Create' : 'Update'}
color="secondary"
icon={!editApprole ? 'add' : ''}
disabled={getDisabledState()}
onClick={() =>
!editApprole ? onCreateApprole() : onEditApprole()
}
width={isMobileScreen ? '100%' : ''}
/>
</CancelSaveWrapper>
{status.status === 'failed' && (
<SnackbarComponent
open
onClose={() => onToastClose()}
severity="error"
icon="error"
message={status.message || 'Something went wrong!'}
/>
)}
{status.status === 'success' && (
<SnackbarComponent
open
onClose={() => onToastClose()}
message={
status.message || 'Approle has been created successfully '
}
/>
)}
</GlobalModalWrapper>
</Fade>
</StyledModal>
</ComponentError>
);
};
CreateAppRole.propTypes = { refresh: PropTypes.func };
CreateAppRole.defaultProps = { refresh: () => {} };
export default CreateAppRole;
|
(function ($, window, document, undefined) {
"use strict";
var pluginName = 'countDown';
var defaults = {
css_class: 'countdown',
always_show_days: false,
with_labels: true,
with_seconds: true,
with_separators: true,
label_dd: 'hari',
label_hh: 'jam',
label_mm: 'menit',
label_ss: 'detik',
separator: ':',
separator_days: ','
};
function CountDown(element, options) {
this.element = $(element);
this.options = $.extend({}, defaults, options);
this._defaults = defaults;
this._name = pluginName;
this.init();
}
$.extend(CountDown.prototype, {
init: function () {
if (this.element.children().length) {
return;
}
if (this.element.attr('datetime')) { // Try to parse the datetime attribute first.
this.endDate = this.parseEndDate(this.element.attr('datetime'));
}
if (this.endDate === undefined) { // Fallback on the text content.
this.endDate = this.parseEndDate(this.element.text());
}
if (this.endDate === undefined) { // Unable to parse a date.
return;
}
if (this.element.is('time')) {
this.timeElement = this.element;
} else {
this.timeElement = $('<time></time>');
this.element.html(this.timeElement);
}
this.markup();
this.setTimeoutDelay = this.sToMs(1);
this.daysVisible = true;
this.timeElement.bind('time.elapsed', this.options.onTimeElapsed);
this.timeElement.bind('time.tick', this.options.onTick);
this.doCountDown();
},
parseEndDate: function (str) {
var d;
d = this.parseDuration(str);
if (d instanceof Date) {
return d;
}
d = this.parseDateTime(str);
if (d instanceof Date) {
return d;
}
d = this.parseHumanReadableDuration(str);
if (d instanceof Date) {
return d;
}
// Try to parse a string representation of a date.
// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date/parse
d = Date.parse(str);
if (!isNaN(d)) {
return new Date(d);
}
},
parseDuration: function (str) {
var timeArray = str.match(/^P(?:(\d+)D)?T?(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)(?:\.(\d{1,3}))?S)?$/);
if (timeArray) {
var d, dd, hh, mm, ss, ms;
dd = timeArray[1] ? this.dToMs(timeArray[1]) : 0;
hh = timeArray[2] ? this.hToMs(timeArray[2]) : 0;
mm = timeArray[3] ? this.mToMs(timeArray[3]) : 0;
ss = timeArray[4] ? this.sToMs(timeArray[4]) : 0;
ms = timeArray[5] ? parseInt(timeArray[5], 10) : 0;
d = new Date();
d.setTime(d.getTime() + dd + hh + mm + ss + ms);
return d;
}
},
parseDateTime: function (str) {
var timeArray = str.match(
/^(\d{4,})-(\d{2})-(\d{2})[T\s](\d{2}):(\d{2})(?:\:(\d{2}))?(?:\.(\d{1,3}))?([Z\+\-\:\d]+)?$/);
if (timeArray) {
var offset = timeArray[8] ? timeArray[8].match(/^([\+\-])?(\d{2}):?(\d{2})$/) : undefined;
// Time difference between UTC and the given time zone in milliseconds.
var utcOffset = 0;
if (offset) {
utcOffset = this.hToMs(offset[2]) + this.mToMs(offset[3]);
utcOffset = (offset[1] === '-') ? utcOffset : -utcOffset;
}
var d, yy, mo, dd, hh, mm, ss, ms;
yy = timeArray[1];
mo = timeArray[2] - 1;
dd = timeArray[3];
hh = timeArray[4] || 0;
mm = timeArray[5] || 0;
ss = timeArray[6] || 0;
ms = timeArray[7] || 0;
d = new Date(Date.UTC(yy, mo, dd, hh, mm, ss, ms));
d.setTime(d.getTime() + utcOffset);
return d;
}
},
parseHumanReadableDuration: function (str) {
var timeArray = str.match(/^(?:(\d+).+\s)?(\d+)[h:]\s?(\d+)[m:]?\s?(\d+)?[s]?(?:\.(\d{1,3}))?$/);
if (timeArray) {
var d, dd, hh, mm, ss, ms;
d = new Date();
dd = timeArray[1] ? this.dToMs(timeArray[1]) : 0;
hh = timeArray[2] ? this.hToMs(timeArray[2]) : 0;
mm = timeArray[3] ? this.mToMs(timeArray[3]) : 0;
ss = timeArray[4] ? this.sToMs(timeArray[4]) : 0;
ms = timeArray[5] ? parseInt(timeArray[5], 10) : 0;
d.setTime(d.getTime() + dd + hh + mm + ss + ms);
return d;
}
},
// Convert seconds to milliseconds.
sToMs: function (s) {
return parseInt(s, 10) * 1000;
},
// Convert minutes to milliseconds.
mToMs: function (m) {
return parseInt(m, 10) * 60 * 1000;
},
// Convert hours to milliseconds.
hToMs: function (h) {
return parseInt(h, 10) * 60 * 60 * 1000;
},
// Convert days to milliseconds.
dToMs: function (d) {
return parseInt(d, 10) * 24 * 60 * 60 * 1000;
},
// Extract seconds (0-59) from the given timedelta expressed in milliseconds.
// A timedelta represents a duration, the difference between two dates or times.
msToS: function (ms) {
return parseInt((ms / 1000) % 60, 10);
},
// Extract minutes (0-59) from the given timedelta expressed in milliseconds.
msToM: function (ms) {
return parseInt((ms / 1000 / 60) % 60, 10);
},
// Extract hours (0-23) from the given timedelta expressed in milliseconds.
msToH: function (ms) {
return parseInt((ms / 1000 / 60 / 60) % 24, 10);
},
// Extract the number of days from the given timedelta expressed in milliseconds.
msToD: function (ms) {
return parseInt((ms / 1000 / 60 / 60 / 24), 10);
},
markup: function () {
// Prepare the HTML content of the <time> element.
var html = [
'<span class="item item-dd">',
'<span class="dd"></span>',
'<span class="label label-dd">', this.options.label_dd, '</span>',
'</span>',
'<span class="separator separator-dd">', this.options.separator_days, '</span>',
'<span class="item item-hh">',
'<span class="hh-1"></span>',
'<span class="hh-2"></span>',
'<span class="label label-hh">', this.options.label_hh, '</span>',
'</span>',
'<span class="separator">', this.options.separator, '</span>',
'<span class="item item-mm">',
'<span class="mm-1"></span>',
'<span class="mm-2"></span>',
'<span class="label label-mm">', this.options.label_mm, '</span>',
'</span>',
'<span class="separator">', this.options.separator, '</span>',
'<span class="item item-ss">',
'<span class="ss-1"></span>',
'<span class="ss-2"></span>',
'<span class="label label-ss">', this.options.label_ss, '</span>',
'</span>'
];
this.timeElement.html(html.join(''));
// Customize HTML according to options.
if (!this.options.with_labels) {
this.timeElement.find('.label').remove();
}
if (!this.options.with_separators) {
this.timeElement.find('.separator').remove();
}
if (!this.options.with_seconds) {
this.timeElement.find('.item-ss').remove();
this.timeElement.find('.separator').last().remove();
}
// Cache elements.
this.item_dd = this.timeElement.find('.item-dd');
this.separator_dd = this.timeElement.find('.separator-dd');
this.remaining_dd = this.timeElement.find('.dd');
this.remaining_hh1 = this.timeElement.find('.hh-1');
this.remaining_hh2 = this.timeElement.find('.hh-2');
this.remaining_mm1 = this.timeElement.find('.mm-1');
this.remaining_mm2 = this.timeElement.find('.mm-2');
this.remaining_ss1 = this.timeElement.find('.ss-1');
this.remaining_ss2 = this.timeElement.find('.ss-2');
// Set the css class of the <time> element.
this.timeElement.addClass(this.options.css_class);
},
doCountDown: function () {
// Calculate the difference between the two dates in milliseconds.
var ms = this.endDate.getTime() - new Date().getTime();
// Extract seconds, minutes, hours and days from the timedelta expressed in milliseconds.
var ss = this.msToS(ms);
var mm = this.msToM(ms);
var hh = this.msToH(ms);
var dd = this.msToD(ms);
// Prevent display of negative values.
if (ms <= 0) {
ss = mm = hh = dd = 0;
}
// Update display.
this.displayRemainingTime({
'ss': ss < 10 ? '0' + ss.toString() : ss.toString(),
'mm': mm < 10 ? '0' + mm.toString() : mm.toString(),
'hh': hh < 10 ? '0' + hh.toString() : hh.toString(),
'dd': dd.toString()
});
// If seconds are hidden, stop the counter as soon as there is no minute left.
if (!this.options.with_seconds && dd === 0 && mm === 0 && hh === 0) {
ss = 0;
}
if (dd === 0 && mm === 0 && hh === 0 && ss === 0) {
return this.timeElement.trigger('time.elapsed');
}
// Reload it.
var self = this;
window.setTimeout(function () { self.doCountDown(); }, self.setTimeoutDelay);
return this.timeElement.trigger('time.tick', ms);
},
// @param remaining: an object literal containing a string representation of days, hours, minutes and
// seconds remaining. e.g. { dd: "600", hh: "03", mm: "59", ss: "11" }
displayRemainingTime: function (remaining) {
// Format the datetime attribute of the <time> element to an ISO 8601 duration.
// https://html.spec.whatwg.org/multipage/semantics.html#datetime-value
// i.e.: <time datetime="P2DT00H00M30S">2 00:00:00</time>
var attr = [];
attr.push('P');
if (remaining.dd !== '0') {
attr.push(remaining.dd, 'D');
}
attr.push('T', remaining.hh, 'H', remaining.mm, 'M');
if (this.options.with_seconds) {
attr.push(remaining.ss, 'S');
}
this.timeElement.attr('datetime', attr.join(''));
// Remove days if necessary.
if (this.daysVisible && !this.options.always_show_days && remaining.dd === '0') {
this.item_dd.remove();
this.separator_dd.remove();
this.daysVisible = false;
}
// Update countdown values.
this.remaining_dd.text(remaining.dd);
this.remaining_hh1.text(remaining.hh[0]);
this.remaining_hh2.text(remaining.hh[1]);
this.remaining_mm1.text(remaining.mm[0]);
this.remaining_mm2.text(remaining.mm[1]);
this.remaining_ss1.text(remaining.ss[0]);
this.remaining_ss2.text(remaining.ss[1]);
}
});
$.fn[pluginName] = function (options) {
var args = arguments;
// If the first parameter is an object (options) or was omitted, instantiate a new plugin instance.
if (options === undefined || typeof options === 'object') {
return this.each(function () {
if (!$.data(this, 'plugin_' + pluginName)) {
$.data(this, 'plugin_' + pluginName, new CountDown(this, options));
}
});
}
// Allow any public function (i.e. a function whose name isn't 'init' or doesn't start with an underscore)
// to be called via the jQuery plugin, e.g. $(element).countDown('functionName', arg1, arg2).
else if (typeof options === 'string' && options[0] !== '_' && options !== 'init') {
// Cache the method call to make it possible to return a value.
var returns;
this.each(function () {
var instance = $.data(this, 'plugin_' + pluginName);
// Tests that there's already a plugin instance and checks that the requested public method exists.
if (instance instanceof CountDown && typeof instance[options] === 'function') {
// Call the method of our plugin instance, and pass it the supplied arguments.
returns = instance[options].apply(instance, Array.prototype.slice.call(args, 1));
}
// Allow instances to be destroyed via the 'destroy' method.
if (options === 'destroy') {
$.data(this, 'plugin_' + pluginName, null);
}
});
// If the earlier cached method gives a value back return the value,
// otherwise return this to preserve chainability.
return returns !== undefined ? returns : this;
}
};
})(window.jQuery, window, document);
|
$(document).ready(function() {
//Timepicker
$('.timepicker').timepicker({
showInputs: false,
minuteStep: 5,
showMeridian: false
})
//Date picker
$('#datepicker').datepicker({
autoclose: true,
orientation: 'bottom',
format: 'yyyy/mm/dd',
})
});
|
import { createGlobalStyle } from 'styled-components';
import { colors } from './colors';
import { fonts, weights, sizes } from './typography';
/**
* Creates the global files for this app
*/
export const GlobalStyles = createGlobalStyle`
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-size: ${sizes.normal}
letter-spacing: 0.5px;
font-family: ${fonts.PRIMARY};
background-color: ${colors.bg};
}
h1 {
font-family: ${fonts.PRIMARY};
font-weight: ${weights.bold};
size: ${sizes.big};
color: ${colors.green}
}
h2 {
font-family: ${fonts.PRIMARY};
font-weight: ${weights.light};
size: ${sizes.medium};
color: ${colors.green}
}
h4 {
font-family: ${fonts.PRIMARY};
font-weight: ${weights.light};
size: ${sizes.medium};
color: ${colors.lightGrey}
}
`;
|
'use strict';
angular.module('modalExercise', [
'ngRoute',
'ngTouch',
'ngAnimate',
'ui.bootstrap',
'modalExercise.productList',
'modalExercise.version'
]).
config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) {
$locationProvider.hashPrefix('!');
$routeProvider.otherwise({redirectTo: '/productList'});
}]);
|
var docs = require("../../index.js"),
fs = require('fs'),
rimraf = require('rimraf').sync,
firstProcess = process.cwd();
describe("Test docsBuilder", function(){
afterEach(function(){
process.chdir(firstProcess);
if (fs.existsSync("./docs/")){
rimraf("./docs/");
}
});
it("should be defined", function() {
expect(docs).toBeDefined();
});
it("should build documentation", function() {
process.chdir(__dirname);
docs("../SomeLibraryTest/**/**.js", { dest: "../../docs/" } );
expect(fs.existsSync("../../docs/")).toBe(true);
expect(fs.existsSync("../../docs/css")).toBe(true);
expect(fs.existsSync("../../docs/css/img")).toBe(true);
expect(fs.existsSync("../../docs/fonts")).toBe(true);
expect(fs.existsSync("../../docs/mds")).toBe(true);
expect(fs.existsSync("../../docs/mds/SomeLibrary.chart.SomeChart.html")).toBe(true);
expect(fs.existsSync("../../docs/mds/SomeLibrary.data.SocketsClient.html")).toBe(true);
expect(fs.existsSync("../../docs/mds/SomeLibrary.html")).toBe(true);
expect(fs.existsSync("../../docs/mds/SomeLibrary.Interface.html")).toBe(true);
expect(fs.existsSync("../../docs/mds/SomeLibrary.Object.html")).toBe(true);
expect(fs.existsSync("../../docs/mds/SomeLibrary.ObjectSingleton.html")).toBe(true);
expect(fs.existsSync("../../docs/index.html")).toBe(true);
});
})
|
/**
* Flickr available licenses
*
* Flickr available licenses used to filter photos by license
*
* @export array
*/
export default [
{ id: "0", label: "All Rights Reserved", checked: false },
{ id: "4", label: "Attribution License", checked: false },
{ id: "6", label: "Attribution-NoDerivs License", checked: false },
{ id: "3", label: "Attribution-NonCommercial-NoDerivs License", checked: false },
{ id: "2", label: "Attribution-NonCommercial License", checked: false },
{ id: "1", label: "Attribution-NonCommercial-ShareAlike License", checked: false },
{ id: "5", label: "Attribution-ShareAlike License", checked: false },
{ id: "7", label: "No known copyright restrictions", checked: false },
{ id: "8", label: "United States Government Work", checked: false },
{ id: "9", label: "Public Domain Dedication (CC0)", checked: false },
{ id: "10", label: "Public Domain Mark", checked: false }
];
|
/* eslint-env qunit */
import window from 'global/window';
import Component from '../../src/js/component.js';
import * as Dom from '../../src/js/utils/dom.js';
import DomData from '../../src/js/utils/dom-data';
import * as Events from '../../src/js/utils/events.js';
import * as Obj from '../../src/js/utils/obj';
import * as browser from '../../src/js/utils/browser.js';
import document from 'global/document';
import sinon from 'sinon';
import TestHelpers from './test-helpers.js';
class TestComponent1 extends Component {}
class TestComponent2 extends Component {}
class TestComponent3 extends Component {}
class TestComponent4 extends Component {}
TestComponent1.prototype.options_ = {
children: [
'testComponent2',
'testComponent3'
]
};
QUnit.module('Component', {
before() {
Component.registerComponent('TestComponent1', TestComponent1);
Component.registerComponent('TestComponent2', TestComponent2);
Component.registerComponent('TestComponent3', TestComponent3);
Component.registerComponent('TestComponent4', TestComponent4);
},
beforeEach() {
this.clock = sinon.useFakeTimers();
this.player = TestHelpers.makePlayer();
},
afterEach() {
this.player.dispose();
this.clock.restore();
},
after() {
delete Component.components_.TestComponent1;
delete Component.components_.TestComponent2;
delete Component.components_.TestComponent3;
delete Component.components_.TestComponent4;
}
});
QUnit.test('registerComponent() throws with bad arguments', function(assert) {
assert.throws(
function() {
Component.registerComponent(null);
},
new Error('Illegal component name, "null"; must be a non-empty string.'),
'component names must be non-empty strings'
);
assert.throws(
function() {
Component.registerComponent('');
},
new Error('Illegal component name, ""; must be a non-empty string.'),
'component names must be non-empty strings'
);
assert.throws(
function() {
Component.registerComponent('TestComponent5', function() {});
},
new Error('Illegal component, "TestComponent5"; must be a Component subclass.'),
'components must be subclasses of Component'
);
assert.throws(
function() {
const Tech = Component.getComponent('Tech');
class DummyTech extends Tech {}
Component.registerComponent('TestComponent5', DummyTech);
},
new Error('Illegal component, "TestComponent5"; techs must be registered using Tech.registerTech().'),
'components must be subclasses of Component'
);
});
QUnit.test('should create an element', function(assert) {
const comp = new Component(this.player, {});
assert.ok(comp.el().nodeName);
comp.dispose();
});
QUnit.test('should add a child component', function(assert) {
const comp = new Component(this.player);
const child = comp.addChild('component');
assert.ok(comp.children().length === 1);
assert.ok(comp.children()[0] === child);
assert.ok(comp.el().childNodes[0] === child.el());
assert.ok(comp.getChild('component') === child);
assert.ok(comp.getChildById(child.id()) === child);
comp.dispose();
});
QUnit.test('should add a child component to an index', function(assert) {
const comp = new Component(this.player);
const child = comp.addChild('component');
assert.ok(comp.children().length === 1);
assert.ok(comp.children()[0] === child);
const child0 = comp.addChild('component', {}, 0);
assert.ok(comp.children().length === 2);
assert.ok(comp.children()[0] === child0);
assert.ok(comp.children()[1] === child);
const child1 = comp.addChild('component', {}, '2');
assert.ok(comp.children().length === 3);
assert.ok(comp.children()[2] === child1);
const child2 = comp.addChild('component', {}, undefined);
assert.ok(comp.children().length === 4);
assert.ok(comp.children()[3] === child2);
const child3 = comp.addChild('component', {}, -1);
assert.ok(comp.children().length === 5);
assert.ok(comp.children()[3] === child3);
assert.ok(comp.children()[4] === child2);
comp.dispose();
});
QUnit.test('should insert element relative to the element of the component to insert before', function(assert) {
// for legibility of the test itself:
/* eslint-disable no-unused-vars */
const comp = new Component(this.player);
const child0 = comp.addChild('component', {el: Dom.createEl('div', {}, {class: 'c0'})});
const child1 = comp.addChild('component', {createEl: false});
const child2 = comp.addChild('component', {el: Dom.createEl('div', {}, {class: 'c2'})});
const child3 = comp.addChild('component', {el: Dom.createEl('div', {}, {class: 'c3'})});
const child4 = comp.addChild('component', {el: Dom.createEl('div', {}, {class: 'c4'})}, comp.children_.indexOf(child2));
assert.ok(child2.el_.previousSibling === child4.el_, 'addChild should insert el before its next sibling\'s element');
/* eslint-enable no-unused-vars */
});
QUnit.test('should allow for children that are elements', function(assert) {
// for legibility of the test itself:
/* eslint-disable no-unused-vars */
const comp = new Component(this.player);
const testEl = Dom.createEl('div');
// Add element as video el gets added to player
comp.el().appendChild(testEl);
comp.children_.unshift(testEl);
const child1 = comp.addChild('component', {el: Dom.createEl('div', {}, {class: 'c1'})});
const child2 = comp.addChild('component', {el: Dom.createEl('div', {}, {class: 'c4'})}, 0);
assert.ok(child2.el_.nextSibling === testEl, 'addChild should insert el before a sibling that is an element');
/* eslint-enable no-unused-vars */
});
QUnit.test('addChild should throw if the child does not exist', function(assert) {
const comp = new Component(this.player);
assert.throws(function() {
comp.addChild('non-existent-child');
}, new Error('Component Non-existent-child does not exist'), 'addChild threw');
comp.dispose();
});
QUnit.test('addChild with instance should allow getting child correctly', function(assert) {
const comp = new Component(this.player);
const comp2 = new Component(this.player);
comp2.name = function() {
return 'foo';
};
comp.addChild(comp2);
assert.ok(comp.getChild('foo'), 'we can get child with camelCase');
assert.ok(comp.getChild('Foo'), 'we can get child with TitleCase');
comp.dispose();
});
QUnit.test('should add a child component with title case name', function(assert) {
const comp = new Component(this.player);
const child = comp.addChild('Component');
assert.ok(comp.children().length === 1);
assert.ok(comp.children()[0] === child);
assert.ok(comp.el().childNodes[0] === child.el());
assert.ok(comp.getChild('Component') === child);
assert.ok(comp.getChildById(child.id()) === child);
comp.dispose();
});
QUnit.test('should init child components from options', function(assert) {
const comp = new Component(this.player, {
children: {
component: {}
}
});
assert.ok(comp.children().length === 1);
assert.ok(comp.el().childNodes.length === 1);
comp.dispose();
});
QUnit.test('should init child components from simple children array', function(assert) {
const comp = new Component(this.player, {
children: [
'component',
'component',
'component'
]
});
assert.ok(comp.children().length === 3);
assert.ok(comp.el().childNodes.length === 3);
comp.dispose();
});
QUnit.test('should init child components from children array of objects', function(assert) {
const comp = new Component(this.player, {
children: [
{ name: 'component' },
{ name: 'component' },
{ name: 'component' }
]
});
assert.ok(comp.children().length === 3);
assert.ok(comp.el().childNodes.length === 3);
comp.dispose();
});
QUnit.test('should do a deep merge of child options', function(assert) {
// Create a default option for component
const oldOptions = Component.prototype.options_;
Component.prototype.options_ = {
example: {
childOne: { foo: 'bar', asdf: 'fdsa' },
childTwo: {},
childThree: {}
}
};
const comp = new Component(this.player, {
example: {
childOne: { foo: 'baz', abc: '123' },
childThree: false,
childFour: {}
}
});
const mergedOptions = comp.options_;
const children = mergedOptions.example;
assert.strictEqual(children.childOne.foo, 'baz', 'value three levels deep overridden');
assert.strictEqual(children.childOne.asdf, 'fdsa', 'value three levels deep maintained');
assert.strictEqual(children.childOne.abc, '123', 'value three levels deep added');
assert.ok(children.childTwo, 'object two levels deep maintained');
assert.strictEqual(children.childThree, false, 'object two levels deep removed');
assert.ok(children.childFour, 'object two levels deep added');
assert.strictEqual(
Component.prototype.options_.example.childOne.foo,
'bar',
'prototype options were not overridden'
);
// Reset default component options
Component.prototype.options_ = oldOptions;
comp.dispose();
});
QUnit.test('should init child components from component options', function(assert) {
const player = TestHelpers.makePlayer();
const testComp = new TestComponent1(player, {
testComponent2: false,
testComponent4: {}
});
assert.ok(!testComp.childNameIndex_.TestComponent2, 'we do not have testComponent2');
assert.ok(testComp.childNameIndex_.TestComponent4, 'we have a testComponent4');
player.dispose();
testComp.dispose();
});
QUnit.test('should allows setting child options at the parent options level', function(assert) {
let parent;
// using children array
let options = {
children: [
'component',
'nullComponent'
],
// parent-level option for child
component: {
foo: true
},
nullComponent: false
};
try {
parent = new Component(this.player, options);
} catch (err) {
assert.ok(false, 'Child with `false` option was initialized');
}
assert.equal(parent.children()[0].options_.foo, true, 'child options set when children array is used');
assert.equal(parent.children().length, 1, 'we should only have one child');
parent.dispose();
// using children object
options = {
children: {
component: {
foo: false
},
nullComponent: {}
},
// parent-level option for child
component: {
foo: true
},
nullComponent: false
};
try {
parent = new Component(this.player, options);
} catch (err) {
assert.ok(false, 'Child with `false` option was initialized');
}
assert.equal(parent.children()[0].options_.foo, true, 'child options set when children object is used');
assert.equal(parent.children().length, 1, 'we should only have one child');
parent.dispose();
});
QUnit.test('should dispose of component and children', function(assert) {
const comp = new Component(this.player);
// Add a child
const child = comp.addChild('Component');
assert.ok(comp.children().length === 1);
assert.notOk(comp.isDisposed(), 'the component reports that it is not disposed');
// Add a listener
comp.on('click', function() {
return true;
});
const el = comp.el();
const data = DomData.get(el);
let hasDisposed = false;
let bubbles = null;
comp.on('dispose', function(event) {
hasDisposed = true;
bubbles = event.bubbles;
});
comp.dispose();
child.dispose();
assert.ok(hasDisposed, 'component fired dispose event');
assert.ok(bubbles === false, 'dispose event does not bubble');
assert.ok(!comp.children(), 'component children were deleted');
assert.ok(!comp.el(), 'component element was deleted');
assert.ok(!child.children(), 'child children were deleted');
assert.ok(!child.el(), 'child element was deleted');
assert.ok(!DomData.has(el), 'listener data nulled');
assert.ok(
!Object.getOwnPropertyNames(data).length,
'original listener data object was emptied'
);
assert.ok(comp.isDisposed(), 'the component reports that it is disposed');
});
QUnit.test('should add and remove event listeners to element', function(assert) {
const comp = new Component(this.player, {});
// No need to make this async because we're triggering events inline.
// We're going to trigger the event after removing the listener,
// So if we get extra asserts that's a problem.
assert.expect(2);
const testListener = function() {
assert.ok(true, 'fired event once');
assert.ok(this === comp, 'listener has the component as context');
};
comp.on('test-event', testListener);
comp.trigger('test-event');
comp.off('test-event', testListener);
comp.trigger('test-event');
comp.dispose();
});
QUnit.test('should trigger a listener once using one()', function(assert) {
const comp = new Component(this.player, {});
assert.expect(1);
const testListener = function() {
assert.ok(true, 'fired event once');
};
comp.one('test-event', testListener);
comp.trigger('test-event');
comp.trigger('test-event');
comp.dispose();
});
QUnit.test('should be possible to pass data when you trigger an event', function(assert) {
const comp = new Component(this.player, {});
const data1 = 'Data1';
const data2 = {txt: 'Data2'};
assert.expect(3);
const testListener = function(evt, hash) {
assert.ok(true, 'fired event once');
assert.deepEqual(hash.d1, data1);
assert.deepEqual(hash.d2, data2);
};
comp.one('test-event', testListener);
comp.trigger('test-event', {d1: data1, d2: data2});
comp.trigger('test-event');
comp.dispose();
});
QUnit.test('should add listeners to other components and remove them', function(assert) {
const player = this.player;
const comp1 = new Component(player);
const comp2 = new Component(player);
let listenerFired = 0;
const testListener = function() {
assert.equal(this, comp1, 'listener has the first component as context');
listenerFired++;
};
comp1.on(comp2, 'test-event', testListener);
comp2.trigger('test-event');
assert.equal(listenerFired, 1, 'listener was fired once');
listenerFired = 0;
comp1.off(comp2, 'test-event', testListener);
comp2.trigger('test-event');
assert.equal(listenerFired, 0, 'listener was not fired after being removed');
// this component is disposed first
listenerFired = 0;
comp1.on(comp2, 'test-event', testListener);
comp1.dispose();
comp2.trigger('test-event');
assert.equal(listenerFired, 0, 'listener was removed when this component was disposed first');
comp1.off = function() {
throw new Error('Comp1 off called');
};
comp2.dispose();
assert.ok(true, 'this component removed dispose listeners from other component');
});
QUnit.test('should add listeners to other components and remove when them other component is disposed', function(assert) {
const player = this.player;
const comp1 = new Component(player);
const comp2 = new Component(player);
const testListener = function() {
assert.equal(this, comp1, 'listener has the first component as context');
};
comp1.on(comp2, 'test-event', testListener);
comp2.dispose();
comp2.off = function() {
throw new Error('Comp2 off called');
};
comp1.dispose();
assert.ok(true, 'this component removed dispose listener from this component that referenced other component');
});
QUnit.test('should add listeners to other components that are fired once', function(assert) {
const player = this.player;
const comp1 = new Component(player);
const comp2 = new Component(player);
let listenerFired = 0;
const testListener = function() {
assert.equal(this, comp1, 'listener has the first component as context');
listenerFired++;
};
comp1.one(comp2, 'test-event', testListener);
comp2.trigger('test-event');
assert.equal(listenerFired, 1, 'listener was executed once');
comp2.trigger('test-event');
assert.equal(listenerFired, 1, 'listener was executed only once');
comp1.dispose();
comp2.dispose();
});
QUnit.test('should add listeners to other element and remove them', function(assert) {
const player = this.player;
const comp1 = new Component(player);
const el = document.createElement('div');
let listenerFired = 0;
const testListener = function() {
assert.equal(this, comp1, 'listener has the first component as context');
listenerFired++;
};
comp1.on(el, 'test-event', testListener);
Events.trigger(el, 'test-event');
assert.equal(listenerFired, 1, 'listener was fired once');
listenerFired = 0;
comp1.off(el, 'test-event', testListener);
Events.trigger(el, 'test-event');
assert.equal(listenerFired, 0, 'listener was not fired after being removed from other element');
// this component is disposed first
listenerFired = 0;
comp1.on(el, 'test-event', testListener);
comp1.dispose();
Events.trigger(el, 'test-event');
assert.equal(listenerFired, 0, 'listener was removed when this component was disposed first');
comp1.off = function() {
throw new Error('Comp1 off called');
};
try {
Events.trigger(el, 'dispose');
} catch (e) {
assert.ok(false, 'listener was not removed from other element');
}
Events.trigger(el, 'dispose');
assert.ok(true, 'this component removed dispose listeners from other element');
comp1.dispose();
});
QUnit.test('should add listeners to other components that are fired once', function(assert) {
const player = this.player;
const comp1 = new Component(player);
const el = document.createElement('div');
let listenerFired = 0;
const testListener = function() {
assert.equal(this, comp1, 'listener has the first component as context');
listenerFired++;
};
comp1.one(el, 'test-event', testListener);
Events.trigger(el, 'test-event');
assert.equal(listenerFired, 1, 'listener was executed once');
Events.trigger(el, 'test-event');
assert.equal(listenerFired, 1, 'listener was executed only once');
comp1.dispose();
});
QUnit.test('should trigger a listener when ready', function(assert) {
let initListenerFired;
let methodListenerFired;
let syncListenerFired;
const comp = new Component(this.player, {}, function() {
initListenerFired = true;
});
comp.ready(function() {
methodListenerFired = true;
});
comp.triggerReady();
comp.ready(function() {
syncListenerFired = true;
}, true);
assert.ok(!initListenerFired, 'init listener should NOT fire synchronously');
assert.ok(!methodListenerFired, 'method listener should NOT fire synchronously');
assert.ok(syncListenerFired, 'sync listener SHOULD fire synchronously if after ready');
this.clock.tick(1);
assert.ok(initListenerFired, 'init listener should fire asynchronously');
assert.ok(methodListenerFired, 'method listener should fire asynchronously');
// Listeners should only be fired once and then removed
initListenerFired = false;
methodListenerFired = false;
syncListenerFired = false;
comp.triggerReady();
this.clock.tick(1);
assert.ok(!initListenerFired, 'init listener should be removed');
assert.ok(!methodListenerFired, 'method listener should be removed');
assert.ok(!syncListenerFired, 'sync listener should be removed');
comp.dispose();
});
QUnit.test('should not retrigger a listener when the listener calls triggerReady', function(assert) {
let timesCalled = 0;
let selfTriggered = false;
const comp = new Component(this.player, {});
const readyListener = function() {
timesCalled++;
// Don't bother calling again if we have
// already failed
if (!selfTriggered) {
selfTriggered = true;
comp.triggerReady();
}
};
comp.ready(readyListener);
comp.triggerReady();
this.clock.tick(100);
assert.equal(timesCalled, 1, 'triggerReady from inside a ready handler does not result in an infinite loop');
comp.dispose();
});
QUnit.test('should add and remove a CSS class', function(assert) {
const comp = new Component(this.player, {});
comp.addClass('test-class');
assert.ok(comp.el().className.indexOf('test-class') !== -1);
comp.removeClass('test-class');
assert.ok(comp.el().className.indexOf('test-class') === -1);
comp.toggleClass('test-class');
assert.ok(comp.el().className.indexOf('test-class') !== -1);
comp.toggleClass('test-class');
assert.ok(comp.el().className.indexOf('test-class') === -1);
comp.dispose();
});
QUnit.test('should add CSS class passed in options', function(assert) {
const comp = new Component(this.player, {className: 'class1 class2'});
assert.ok(comp.el().className.indexOf('class1') !== -1, 'first of multiple classes added');
assert.ok(comp.el().className.indexOf('class2') !== -1, 'second of multiple classes added');
comp.dispose();
const comp2 = new Component(this.player, {className: 'class1'});
assert.ok(comp2.el().className.indexOf('class1') !== -1, 'singe class added');
comp2.dispose();
});
QUnit.test('should show and hide an element', function(assert) {
const comp = new Component(this.player, {});
comp.hide();
assert.ok(comp.hasClass('vjs-hidden') === true);
comp.show();
assert.ok(comp.hasClass('vjs-hidden') === false);
comp.dispose();
});
QUnit.test('dimension() should treat NaN and null as zero', function(assert) {
let newWidth;
const width = 300;
const height = 150;
const comp = new Component(this.player, {});
// set component dimension
comp.dimensions(width, height);
newWidth = comp.dimension('width', null);
assert.notEqual(newWidth, width, 'new width and old width are not the same');
assert.equal(newWidth, undefined, 'we set a value, so, return value is undefined');
assert.equal(comp.width(), 0, 'the new width is zero');
const newHeight = comp.dimension('height', NaN);
assert.notEqual(newHeight, height, 'new height and old height are not the same');
assert.equal(newHeight, undefined, 'we set a value, so, return value is undefined');
assert.equal(comp.height(), 0, 'the new height is zero');
comp.width(width);
newWidth = comp.dimension('width', undefined);
assert.equal(newWidth, width, 'we did not set the width with undefined');
comp.dispose();
});
QUnit.test('should change the width and height of a component', function(assert) {
const container = document.createElement('div');
const comp = new Component(this.player, {});
const el = comp.el();
const fixture = document.getElementById('qunit-fixture');
fixture.appendChild(container);
container.appendChild(el);
// Container of el needs dimensions or the component won't have dimensions
container.style.width = '1000px';
container.style.height = '1000px';
comp.width('50%');
comp.height('123px');
assert.ok(comp.width() === 500, 'percent values working');
const compStyle = TestHelpers.getComputedStyle(el, 'width');
assert.ok(compStyle === comp.width() + 'px', 'matches computed style');
assert.ok(comp.height() === 123, 'px values working');
comp.width(321);
assert.ok(comp.width() === 321, 'integer values working');
comp.width('auto');
comp.height('auto');
assert.ok(comp.width() === 1000, 'forced width was removed');
assert.ok(comp.height() === 0, 'forced height was removed');
comp.dispose();
});
QUnit.test('should get the computed dimensions', function(assert) {
const container = document.createElement('div');
const comp = new Component(this.player, {});
const el = comp.el();
const fixture = document.getElementById('qunit-fixture');
const computedWidth = '500px';
const computedHeight = '500px';
fixture.appendChild(container);
container.appendChild(el);
// Container of el needs dimensions or the component won't have dimensions
container.style.width = '1000px';
container.style.height = '1000px';
comp.width('50%');
comp.height('50%');
assert.equal(comp.currentWidth() + 'px', computedWidth, 'matches computed width');
assert.equal(comp.currentHeight() + 'px', computedHeight, 'matches computed height');
assert.equal(comp.currentDimension('width') + 'px', computedWidth, 'matches computed width');
assert.equal(comp.currentDimension('height') + 'px', computedHeight, 'matches computed height');
assert.equal(comp.currentDimensions().width + 'px', computedWidth, 'matches computed width');
assert.equal(comp.currentDimensions().height + 'px', computedHeight, 'matches computed width');
comp.dispose();
});
QUnit.test('should use a defined content el for appending children', function(assert) {
class CompWithContent extends Component {
createEl() {
// Create the main component element
const el = Dom.createEl('div');
// Create the element where children will be appended
this.contentEl_ = Dom.createEl('div', { id: 'contentEl' });
el.appendChild(this.contentEl_);
return el;
}
}
const comp = new CompWithContent(this.player);
const child = comp.addChild('component');
assert.ok(comp.children().length === 1);
assert.ok(comp.el().childNodes[0].id === 'contentEl');
assert.ok(comp.el().childNodes[0].childNodes[0] === child.el());
comp.removeChild(child);
assert.ok(comp.children().length === 0, 'Length should now be zero');
assert.ok(comp.el().childNodes[0].id === 'contentEl', 'Content El should still exist');
assert.ok(
comp.el().childNodes[0].childNodes[0] !== child.el(),
'Child el should be removed.'
);
child.dispose();
comp.dispose();
});
QUnit.test('should emit a tap event', function(assert) {
const comp = new Component(this.player);
let singleTouch = {};
const origTouch = browser.TOUCH_ENABLED;
assert.expect(3);
// Fake touch support. Real touch support isn't needed for this test.
browser.stub_TOUCH_ENABLED(true);
comp.emitTapEvents();
comp.on('tap', function() {
assert.ok(true, 'Tap event emitted');
});
// A touchstart followed by touchend should trigger a tap
Events.trigger(comp.el(), {type: 'touchstart', touches: [{}]});
comp.trigger('touchend');
// A touchmove with a lot of movement should not trigger a tap
Events.trigger(comp.el(), {type: 'touchstart', touches: [
{ pageX: 0, pageY: 0 }
]});
Events.trigger(comp.el(), {type: 'touchmove', touches: [
{ pageX: 100, pageY: 100 }
]});
comp.trigger('touchend');
// A touchmove with not much movement should still allow a tap
Events.trigger(comp.el(), {type: 'touchstart', touches: [
{ pageX: 0, pageY: 0 }
]});
Events.trigger(comp.el(), {type: 'touchmove', touches: [
{ pageX: 7, pageY: 7 }
]});
comp.trigger('touchend');
// A touchmove with a lot of movement by modifying the exisiting touch object
// should not trigger a tap
singleTouch = { pageX: 0, pageY: 0 };
Events.trigger(comp.el(), {type: 'touchstart', touches: [singleTouch]});
singleTouch.pageX = 100;
singleTouch.pageY = 100;
Events.trigger(comp.el(), {type: 'touchmove', touches: [singleTouch]});
comp.trigger('touchend');
// A touchmove with not much movement by modifying the exisiting touch object
// should still allow a tap
singleTouch = { pageX: 0, pageY: 0 };
Events.trigger(comp.el(), {type: 'touchstart', touches: [singleTouch]});
singleTouch.pageX = 7;
singleTouch.pageY = 7;
Events.trigger(comp.el(), {type: 'touchmove', touches: [singleTouch]});
comp.trigger('touchend');
// Reset to orignial value
browser.stub_TOUCH_ENABLED(origTouch);
comp.dispose();
});
QUnit.test('should provide timeout methods that automatically get cleared on component disposal', function(assert) {
const comp = new Component(this.player);
let timeoutsFired = 0;
const timeoutToClear = comp.setTimeout(function() {
timeoutsFired++;
assert.ok(false, 'Timeout should have been manually cleared');
}, 500);
assert.expect(4);
comp.setTimeout(function() {
timeoutsFired++;
assert.equal(this, comp, 'Timeout fn has the component as its context');
assert.ok(true, 'Timeout created and fired.');
}, 100);
comp.setTimeout(function() {
timeoutsFired++;
assert.ok(false, 'Timeout should have been disposed');
}, 1000);
this.clock.tick(100);
assert.ok(timeoutsFired === 1, 'One timeout should have fired by this point');
comp.clearTimeout(timeoutToClear);
this.clock.tick(500);
comp.dispose();
this.clock.tick(1000);
assert.ok(timeoutsFired === 1, 'One timeout should have fired overall');
});
QUnit.test('should provide interval methods that automatically get cleared on component disposal', function(assert) {
const comp = new Component(this.player);
let intervalsFired = 0;
const interval = comp.setInterval(function() {
intervalsFired++;
assert.equal(this, comp, 'Interval fn has the component as its context');
assert.ok(true, 'Interval created and fired.');
}, 100);
assert.expect(13);
comp.setInterval(function() {
intervalsFired++;
assert.ok(false, 'Interval should have been disposed');
}, 1200);
this.clock.tick(500);
assert.ok(intervalsFired === 5, 'Component interval fired 5 times');
comp.clearInterval(interval);
this.clock.tick(600);
assert.ok(intervalsFired === 5, 'Interval was manually cleared');
comp.dispose();
this.clock.tick(1200);
assert.ok(intervalsFired === 5, 'Interval was cleared when component was disposed');
});
QUnit.test('should provide a requestAnimationFrame method that is cleared on disposal', function(assert) {
const comp = new Component(this.player);
const oldRAF = window.requestAnimationFrame;
const oldCAF = window.cancelAnimationFrame;
// Stub the window.*AnimationFrame methods with window.setTimeout methods
// so we can control when the callbacks are called via sinon's timer stubs.
window.requestAnimationFrame = (fn) => window.setTimeout(fn, 1);
window.cancelAnimationFrame = (id) => window.clearTimeout(id);
// Make sure the component thinks it supports rAF.
comp.supportsRaf_ = true;
const spyRAF = sinon.spy();
comp.requestNamedAnimationFrame('testing', spyRAF);
assert.strictEqual(spyRAF.callCount, 0, 'rAF callback was not called immediately');
this.clock.tick(1);
assert.strictEqual(spyRAF.callCount, 1, 'rAF callback was called after a "repaint"');
this.clock.tick(1);
assert.strictEqual(spyRAF.callCount, 1, 'rAF callback was not called after a second "repaint"');
comp.cancelNamedAnimationFrame(comp.requestNamedAnimationFrame('testing', spyRAF));
this.clock.tick(1);
assert.strictEqual(spyRAF.callCount, 1, 'second rAF callback was not called because it was cancelled');
comp.requestNamedAnimationFrame('testing', spyRAF);
comp.dispose();
this.clock.tick(1);
assert.strictEqual(spyRAF.callCount, 1, 'third rAF callback was not called because the component was disposed');
window.requestAnimationFrame = oldRAF;
window.cancelAnimationFrame = oldCAF;
});
QUnit.test('should provide a requestNamedAnimationFrame method that is cleared on disposal', function(assert) {
const comp = new Component(this.player);
const oldRAF = window.requestAnimationFrame;
const oldCAF = window.cancelAnimationFrame;
// Stub the window.*AnimationFrame methods with window.setTimeout methods
// so we can control when the callbacks are called via sinon's timer stubs.
window.requestAnimationFrame = (fn) => window.setTimeout(fn, 1);
window.cancelAnimationFrame = (id) => window.clearTimeout(id);
// Make sure the component thinks it supports rAF.
comp.supportsRaf_ = true;
const spyRAF = sinon.spy();
comp.requestNamedAnimationFrame('testing', spyRAF);
assert.strictEqual(spyRAF.callCount, 0, 'rAF callback was not called immediately');
this.clock.tick(1);
assert.strictEqual(spyRAF.callCount, 1, 'rAF callback was called after a "repaint"');
this.clock.tick(1);
assert.strictEqual(spyRAF.callCount, 1, 'rAF callback was not called after a second "repaint"');
comp.cancelNamedAnimationFrame(comp.requestNamedAnimationFrame('testing', spyRAF));
this.clock.tick(1);
assert.strictEqual(spyRAF.callCount, 1, 'second rAF callback was not called because it was cancelled');
comp.requestNamedAnimationFrame('testing', spyRAF);
comp.dispose();
this.clock.tick(1);
assert.strictEqual(spyRAF.callCount, 1, 'third rAF callback was not called because the component was disposed');
window.requestAnimationFrame = oldRAF;
window.cancelAnimationFrame = oldCAF;
});
QUnit.test('requestAnimationFrame falls back to timers if rAF not supported', function(assert) {
const comp = new Component(this.player);
const oldRAF = window.requestAnimationFrame;
const oldCAF = window.cancelAnimationFrame;
// Stub the window.*AnimationFrame methods with window.setTimeout methods
// so we can control when the callbacks are called via sinon's timer stubs.
const rAF = window.requestAnimationFrame = sinon.spy();
const cAF = window.cancelAnimationFrame = sinon.spy();
// Make sure the component thinks it does not support rAF.
comp.supportsRaf_ = false;
sinon.spy(comp, 'setTimeout');
sinon.spy(comp, 'clearTimeout');
comp.cancelAnimationFrame(comp.requestAnimationFrame(() => {}));
assert.strictEqual(rAF.callCount, 0, 'window.requestAnimationFrame was not called');
assert.strictEqual(cAF.callCount, 0, 'window.cancelAnimationFrame was not called');
assert.strictEqual(comp.setTimeout.callCount, 1, 'Component#setTimeout was called');
assert.strictEqual(comp.clearTimeout.callCount, 1, 'Component#clearTimeout was called');
comp.dispose();
window.requestAnimationFrame = oldRAF;
window.cancelAnimationFrame = oldCAF;
});
QUnit.test('setTimeout should remove dispose handler on trigger', function(assert) {
const comp = new Component(this.player);
comp.setTimeout(() => {}, 1);
assert.equal(comp.setTimeoutIds_.size, 1, 'we removed our dispose handle');
this.clock.tick(1);
assert.equal(comp.setTimeoutIds_.size, 0, 'we removed our dispose handle');
comp.dispose();
});
QUnit.test('requestNamedAnimationFrame should remove dispose handler on trigger', function(assert) {
const comp = new Component(this.player);
const oldRAF = window.requestAnimationFrame;
const oldCAF = window.cancelAnimationFrame;
// Stub the window.*AnimationFrame methods with window.setTimeout methods
// so we can control when the callbacks are called via sinon's timer stubs.
window.requestAnimationFrame = (fn) => window.setTimeout(fn, 1);
window.cancelAnimationFrame = (id) => window.clearTimeout(id);
// Make sure the component thinks it supports rAF.
comp.supportsRaf_ = true;
const spyRAF = sinon.spy();
comp.requestNamedAnimationFrame('testFrame', spyRAF);
assert.equal(comp.rafIds_.size, 1, 'we got a new raf dispose handler');
assert.equal(comp.namedRafs_.size, 1, 'we got a new named raf dispose handler');
this.clock.tick(1);
assert.equal(comp.rafIds_.size, 0, 'we removed our raf dispose handle');
assert.equal(comp.namedRafs_.size, 0, 'we removed our named raf dispose handle');
comp.dispose();
window.requestAnimationFrame = oldRAF;
window.cancelAnimationFrame = oldCAF;
});
QUnit.test('requestAnimationFrame should remove dispose handler on trigger', function(assert) {
const comp = new Component(this.player);
const oldRAF = window.requestAnimationFrame;
const oldCAF = window.cancelAnimationFrame;
// Stub the window.*AnimationFrame methods with window.setTimeout methods
// so we can control when the callbacks are called via sinon's timer stubs.
window.requestAnimationFrame = (fn) => window.setTimeout(fn, 1);
window.cancelAnimationFrame = (id) => window.clearTimeout(id);
// Make sure the component thinks it supports rAF.
comp.supportsRaf_ = true;
const spyRAF = sinon.spy();
comp.requestAnimationFrame(spyRAF);
assert.equal(comp.rafIds_.size, 1, 'we got a new dispose handler');
this.clock.tick(1);
assert.equal(comp.rafIds_.size, 0, 'we removed our dispose handle');
comp.dispose();
window.requestAnimationFrame = oldRAF;
window.cancelAnimationFrame = oldCAF;
});
QUnit.test('setTimeout should be canceled on dispose', function(assert) {
const comp = new Component(this.player);
let called = false;
let clearId;
const setId = comp.setTimeout(() => {
called = true;
}, 1);
const clearTimeout = comp.clearTimeout;
comp.clearTimeout = (id) => {
clearId = id;
return clearTimeout.call(comp, id);
};
assert.equal(comp.setTimeoutIds_.size, 1, 'we added a timeout id');
comp.dispose();
assert.equal(comp.setTimeoutIds_.size, 0, 'we removed our timeout id');
assert.equal(clearId, setId, 'clearTimeout was called');
this.clock.tick(1);
assert.equal(called, false, 'setTimeout was never called');
});
QUnit.test('requestAnimationFrame should be canceled on dispose', function(assert) {
const comp = new Component(this.player);
let called = false;
let clearId;
const setId = comp.requestAnimationFrame(() => {
called = true;
});
const cancelAnimationFrame = comp.cancelAnimationFrame;
comp.cancelAnimationFrame = (id) => {
clearId = id;
return cancelAnimationFrame.call(comp, id);
};
assert.equal(comp.rafIds_.size, 1, 'we added a raf id');
comp.dispose();
assert.equal(comp.rafIds_.size, 0, 'we removed a raf id');
assert.equal(clearId, setId, 'clearAnimationFrame was called');
this.clock.tick(1);
assert.equal(called, false, 'requestAnimationFrame was never called');
});
QUnit.test('setInterval should be canceled on dispose', function(assert) {
const comp = new Component(this.player);
let called = false;
let clearId;
const setId = comp.setInterval(() => {
called = true;
});
const clearInterval = comp.clearInterval;
comp.clearInterval = (id) => {
clearId = id;
return clearInterval.call(comp, id);
};
assert.equal(comp.setIntervalIds_.size, 1, 'we added an interval id');
comp.dispose();
assert.equal(comp.setIntervalIds_.size, 0, 'we removed a raf id');
assert.equal(clearId, setId, 'clearInterval was called');
this.clock.tick(1);
assert.equal(called, false, 'setInterval was never called');
});
QUnit.test('requestNamedAnimationFrame should be canceled on dispose', function(assert) {
const comp = new Component(this.player);
let called = false;
let clearName;
const setName = comp.requestNamedAnimationFrame('testing', () => {
called = true;
});
const cancelNamedAnimationFrame = comp.cancelNamedAnimationFrame;
comp.cancelNamedAnimationFrame = (name) => {
clearName = name;
return cancelNamedAnimationFrame.call(comp, name);
};
assert.equal(comp.namedRafs_.size, 1, 'we added a named raf');
assert.equal(comp.rafIds_.size, 1, 'we added a raf id');
comp.dispose();
assert.equal(comp.namedRafs_.size, 0, 'we removed a named raf');
assert.equal(comp.rafIds_.size, 0, 'we removed a raf id');
assert.equal(clearName, setName, 'cancelNamedAnimationFrame was called');
this.clock.tick(1);
assert.equal(called, false, 'requestNamedAnimationFrame was never called');
});
QUnit.test('requestNamedAnimationFrame should only allow one raf of a specific name at a time', function(assert) {
const comp = new Component(this.player);
const calls = {
one: 0,
two: 0,
three: 0
};
const cancelNames = [];
const name = 'testing';
const handlerOne = () => {
assert.equal(comp.namedRafs_.size, 1, 'named raf still exists while function runs');
assert.equal(comp.rafIds_.size, 0, 'raf id does not exist during run');
calls.one++;
};
const handlerTwo = () => {
assert.equal(comp.namedRafs_.size, 1, 'named raf still exists while function runs');
assert.equal(comp.rafIds_.size, 0, 'raf id does not exist during run');
calls.two++;
};
const handlerThree = () => {
assert.equal(comp.namedRafs_.size, 1, 'named raf still exists while function runs');
assert.equal(comp.rafIds_.size, 0, 'raf id does not exist during run');
calls.three++;
};
const oldRAF = window.requestAnimationFrame;
const oldCAF = window.cancelAnimationFrame;
// Make sure the component thinks it supports rAF.
comp.supportsRaf_ = true;
// Stub the window.*AnimationFrame methods with window.setTimeout methods
// so we can control when the callbacks are called via sinon's timer stubs.
window.requestAnimationFrame = (fn) => window.setTimeout(fn, 1);
window.cancelAnimationFrame = (id) => window.clearTimeout(id);
const cancelNamedAnimationFrame = comp.cancelNamedAnimationFrame;
comp.cancelNamedAnimationFrame = (_name) => {
cancelNames.push(_name);
return cancelNamedAnimationFrame.call(comp, _name);
};
comp.requestNamedAnimationFrame(name, handlerOne);
assert.equal(comp.namedRafs_.size, 1, 'we added a named raf');
assert.equal(comp.rafIds_.size, 1, 'we added a raf id');
comp.requestNamedAnimationFrame(name, handlerTwo);
assert.deepEqual(cancelNames, [], 'no named cancels');
assert.equal(comp.namedRafs_.size, 1, 'still only one named raf');
assert.equal(comp.rafIds_.size, 1, 'still only one raf id');
this.clock.tick(1);
assert.equal(comp.namedRafs_.size, 0, 'we removed a named raf');
assert.equal(comp.rafIds_.size, 0, 'we removed a raf id');
assert.deepEqual(calls, {
one: 1,
two: 0,
three: 0
}, 'only handlerOne was called');
comp.requestNamedAnimationFrame(name, handlerOne);
comp.requestNamedAnimationFrame(name, handlerTwo);
comp.requestNamedAnimationFrame(name, handlerThree);
assert.deepEqual(cancelNames, [], 'no named cancels for testing');
assert.equal(comp.namedRafs_.size, 1, 'only added one named raf');
assert.equal(comp.rafIds_.size, 1, 'only added one named raf');
this.clock.tick(1);
assert.equal(comp.namedRafs_.size, 0, 'we removed a named raf');
assert.equal(comp.rafIds_.size, 0, 'we removed a raf id');
assert.deepEqual(calls, {
one: 2,
two: 0,
three: 0
}, 'only the handlerOne called');
window.requestAnimationFrame = oldRAF;
window.cancelAnimationFrame = oldCAF;
});
QUnit.test('$ and $$ functions', function(assert) {
const comp = new Component(this.player);
const contentEl = document.createElement('div');
const children = [
document.createElement('div'),
document.createElement('div')
];
comp.contentEl_ = contentEl;
children.forEach(child => contentEl.appendChild(child));
assert.strictEqual(comp.$('div'), children[0], '$ defaults to contentEl as scope');
assert.strictEqual(comp.$$('div').length, children.length, '$$ defaults to contentEl as scope');
comp.dispose();
});
QUnit.test('should use the stateful mixin', function(assert) {
const comp = new Component(this.player, {});
assert.ok(Obj.isPlain(comp.state), '`state` is a plain object');
assert.strictEqual(Object.prototype.toString.call(comp.setState), '[object Function]', '`setState` is a function');
comp.setState({foo: 'bar'});
assert.strictEqual(comp.state.foo, 'bar', 'the component passes a basic stateful test');
comp.dispose();
});
QUnit.test('should remove child when the child moves to the other parent', function(assert) {
const parentComponent1 = new Component(this.player, {});
const parentComponent2 = new Component(this.player, {});
const childComponent = new Component(this.player, {});
parentComponent1.addChild(childComponent);
assert.strictEqual(parentComponent1.children().length, 1, 'the children number of `parentComponent1` is 1');
assert.strictEqual(parentComponent1.children()[0], childComponent, 'the first child of `parentComponent1` is `childComponent`');
assert.strictEqual(parentComponent1.el().childNodes[0], childComponent.el(), '`parentComponent1` contains the DOM element of `childComponent`');
parentComponent2.addChild(childComponent);
assert.strictEqual(parentComponent1.children().length, 0, 'the children number of `parentComponent1` is 0');
assert.strictEqual(parentComponent1.el().childNodes.length, 0, 'the length of `childNodes` of `parentComponent1` is 0');
assert.strictEqual(parentComponent2.children().length, 1, 'the children number of `parentComponent2` is 1');
assert.strictEqual(parentComponent2.children()[0], childComponent, 'the first child of `parentComponent2` is `childComponent`');
assert.strictEqual(parentComponent2.el().childNodes.length, 1, 'the length of `childNodes` of `parentComponent2` is 1');
assert.strictEqual(parentComponent2.el().childNodes[0], childComponent.el(), '`parentComponent2` contains the DOM element of `childComponent`');
parentComponent1.dispose();
parentComponent2.dispose();
childComponent.dispose();
});
QUnit.test('getDescendant should work as expected', function(assert) {
const comp = new Component(this.player, {name: 'component'});
const descendant1 = new Component(this.player, {name: 'descendant1'});
const descendant2 = new Component(this.player, {name: 'descendant2'});
const descendant3 = new Component(this.player, {name: 'descendant3'});
comp.addChild(descendant1);
descendant1.addChild(descendant2);
descendant2.addChild(descendant3);
assert.equal(comp.getDescendant('descendant1', 'descendant2', 'descendant3'), descendant3, 'can pass as args');
assert.equal(comp.getDescendant(['descendant1', 'descendant2', 'descendant3']), descendant3, 'can pass as array');
assert.equal(comp.getDescendant('descendant1'), descendant1, 'can pass as single string');
assert.equal(comp.getDescendant(), comp, 'no args returns base component');
assert.notOk(comp.getDescendant('descendant5'), 'undefined descendant returned');
assert.notOk(comp.getDescendant('descendant1', 'descendant5'), 'undefined descendant returned');
assert.notOk(comp.getDescendant(['descendant1', 'descendant5']), 'undefined descendant returned');
comp.dispose();
});
QUnit.test('ready queue should not run after dispose', function(assert) {
let option = false;
let callback = false;
const comp = new Component(this.player, {name: 'component'}, () => {
option = true;
});
comp.ready(() => {
callback = true;
});
comp.dispose();
comp.triggerReady();
// TODO: improve this error. It is a variant of:
// "Cannot read property 'parentNode' of null"
//
// but on some browsers such as IE 11 and safari 9 other errors are thrown,
// I think any error at all works for our purposes here.
assert.throws(() => this.clock.tick(1), /.*/, 'throws trigger error');
assert.notOk(option, 'ready option not run');
assert.notOk(callback, 'ready callback not run');
});
|
'use strict'
var baraa = 'hello'
console.log(baraa);
console.log(baraa);
var baraa = 'hello'
*// is declaerated is the same thing
*// use console .log brfore the varible or after
or
var baraa;
console.log(baraa);
hero = 'hello';
let baraa 'hello';
let baraa;
var x =10;
var x =3;
let user = 'baraa';
if(true);{
console.log(user);
}
if(true){
const lastname= 'arnous';
}
console.log(lastname);
console.log(hello baraa);
/* refrence errors not defined value*/
let arr [1,2,3,4,5,6];
arr.length = 99*99;
range error();
/* syntax error some think not understanding in java*/
lrt x = 10;
/* Tybe error
|
/**
* OscilloscopeConnectionTest.c - for LibTiePie 0.7+
*
* This example performs a connection test.
*
* Find more information on http://www.tiepie.com/LibTiePie .
*/
"use strict";
const libtiepie = require('libtiepie');
const sleep = require('sleep');
// Enable network search:
libtiepie.api.NetSetAutoDetectEnabled(true);
// Update device list:
libtiepie.api.LstUpdate();
// Try to open an oscilloscope with block measurement support:
var scp = libtiepie.const.TPDEVICEHANDLE_INVALID;
for(let index = 0; index < libtiepie.api.LstGetCount(); index++)
{
if(libtiepie.api.LstDevCanOpen(libtiepie.const.IDKIND_INDEX, index, libtiepie.const.DEVICETYPE_OSCILLOSCOPE))
{
scp = libtiepie.api.LstOpenOscilloscope(libtiepie.const.IDKIND_INDEX, index);
// Check for valid handle and block measurement support:
if(scp != libtiepie.const.TPDEVICEHANDLE_INVALID && libtiepie.api.ScpHasConnectionTest(scp))
{
break;
}
else
{
scp = libtiepie.const.TPDEVICEHANDLE_INVALID;
}
}
}
if(scp != libtiepie.const.TPDEVICEHANDLE_INVALID)
{
// Get the number of channels:
const channelCount = libtiepie.api.ScpGetChannelCount(scp);
// Enable all channels that support connection testing:
for(let ch = 0; ch < channelCount; ch++)
{
let b = libtiepie.api.ScpChHasConnectionTest(scp, ch);
libtiepie.api.ScpChSetEnabled(scp, ch, b);
}
// Start connection test on current active channels:
libtiepie.api.ScpStartConnectionTest(scp);
// Wait for connection test to complete:
while(!libtiepie.api.ScpIsConnectionTestCompleted(scp) && !libtiepie.api.ObjIsRemoved(scp))
{
sleep.msleep(10); // 10 ms delay, to save CPU time.
}
// Get data:
const data = libtiepie.api.ScpGetConnectionTestData(scp, channelCount);
// Print results:
console.log('Connection test result:');
for(let ch = 0; ch < channelCount; ch++)
{
console.log('Ch' + (ch + 1).toString() + ' = ' + data[ch].toString());
}
// Close oscilloscope:
libtiepie.api.ObjClose(scp);
}
else
{
console.error('No oscilloscope available with connection test support!');
process.exitCode = 1;
}
|
export const cisWifiSignalLock2 = ["512 512"," <defs> <style> .cls-1{fill:currentColor} </style> </defs> <path d='M317.9556,229.7471a255.88,255.88,0,0,0-188.4822,25.8393l-78.241-111.74A389.8461,389.8461,0,0,1,256,86.1279q18.6263,0,37,1.7393V39.7024q-18.4278-1.5531-37-1.5745A439.8435,439.8435,0,0,0,8,114.7007V165.79L228.0122,480h55.9756l142.54-203.5686a119.8654,119.8654,0,0,1-108.5722-46.6843Z' class='cls-1'/> <path d='M471.9355,104V75.5273a60.25,60.25,0,0,0-120.5,0V104h-22v53.1484a84,84,0,0,0,168,0V104Zm-36-2h-48.5V75.5273a24.25,24.25,0,0,1,48.5,0Z' class='cls-1'/>"]
|
var data=[['19960626',3.335],
['19960627',4.113],
['19960628',3.721],
['19960701',3.562],
['19960702',3.622],
['19960703',3.609],
['19960704',3.769],
['19960705',3.692],
['19960708',3.575],
['19960709',3.609],
['19960710',3.573],
['19960711',3.447],
['19960712',3.445],
['19960715',3.367],
['19960716',3.416],
['19960717',3.359],
['19960718',3.366],
['19960719',3.387],
['19960722',3.461],
['19960723',3.416],
['19960724',3.675],
['19960725',3.625],
['19960726',3.661],
['19960729',3.675],
['19960730',3.627],
['19960731',3.552],
['19960801',3.546],
['19960802',3.594],
['19960805',3.607],
['19960806',3.651],
['19960807',3.627],
['19960808',3.610],
['19960809',3.513],
['19960812',3.638],
['19960813',3.636],
['19960814',3.653],
['19960815',3.870],
['19960816',4.113],
['19960819',4.324],
['19960820',4.529],
['19960821',4.376],
['19960822',4.349],
['19960823',4.439],
['19960826',4.446],
['19960827',4.422],
['19960828',4.422],
['19960829',4.423],
['19960830',4.454],
['19960902',4.430],
['19960903',4.723],
['19960904',4.819],
['19960905',4.840],
['19960906',4.933],
['19960909',5.069],
['19960910',4.900],
['19960911',4.923],
['19960912',4.868],
['19960913',4.941],
['19960916',5.148],
['19960917',5.197],
['19960918',5.165],
['19960919',5.213],
['19960923',5.541],
['19960924',5.565],
['19960925',5.582],
['19960926',5.703],
['19960927',5.622],
['19961003',5.586],
['19961004',5.554],
['19961007',5.525],
['19961008',5.457],
['19961009',5.330],
['19961010',5.492],
['19961011',5.330],
['19961014',5.363],
['19961015',5.333],
['19961016',5.486],
['19961017',5.489],
['19961018',5.327],
['19961021',5.330],
['19961022',5.239],
['19961023',5.288],
['19961024',5.307],
['19961025',5.570],
['19961028',5.476],
['19961029',5.411],
['19961030',5.200],
['19961031',5.233],
['19961101',5.174],
['19961104',5.314],
['19961105',5.200],
['19961106',5.129],
['19961107',5.152],
['19961108',5.165],
['19961111',5.165],
['19961112',5.152],
['19961113',5.119],
['19961114',5.259],
['19961115',5.184],
['19961118',5.369],
['19961119',5.492],
['19961120',5.359],
['19961121',5.122],
['19961122',5.097],
['19961125',5.191],
['19961126',5.184],
['19961127',5.226],
['19961128',5.291],
['19961129',5.366],
['19961202',5.726],
['19961203',5.671],
['19961204',5.707],
['19961205',5.801],
['19961206',6.141],
['19961209',6.936],
['19961210',6.732],
['19961211',6.823],
['19961212',6.271],
['19961213',5.849],
['19961216',5.327],
['19961217',4.856],
['19961218',5.278],
['19961219',5.168],
['19961220',5.178],
['19961223',5.285],
['19961224',5.122],
['19961225',5.233],
['19961226',5.265],
['19961227',5.249],
['19961230',5.314],
['19961231',5.217],
['19970102',5.213],
['19970103',5.135],
['19970106',5.022],
['19970107',5.084],
['19970108',5.038],
['19970109',5.087],
['19970110',5.119],
['19970113',5.129],
['19970114',5.171],
['19970115',5.200],
['19970116',5.135],
['19970117',5.148],
['19970120',5.122],
['19970121',5.116],
['19970122',5.233],
['19970123',5.327],
['19970124',5.285],
['19970127',5.356],
['19970128',5.372],
['19970129',5.330],
['19970130',5.311],
['19970131',5.333],
['19970217',5.291],
['19970218',4.827],
['19970219',5.129],
['19970220',5.015],
['19970221',5.200],
['19970224',5.330],
['19970225',5.531],
['19970226',5.561],
['19970227',5.479],
['19970228',5.479],
['19970303',5.616],
['19970304',5.525],
['19970305',5.453],
['19970306',5.505],
['19970307',5.499],
['19970310',5.622],
['19970311',6.005],
['19970312',5.875],
['19970313',5.687],
['19970314',5.768],
['19970317',5.784],
['19970318',5.882],
['19970319',5.817],
['19970320',5.655],
['19970321',5.768],
['19970324',5.752],
['19970325',5.801],
['19970326',5.768],
['19970327',5.781],
['19970328',5.720],
['19970331',5.862],
['19970401',5.817],
['19970402',5.749],
['19970403',5.843],
['19970404',5.937],
['19970407',6.268],
['19970408',5.930],
['19970409',5.979],
['19970410',5.947],
['19970411',5.856],
['19970414',5.827],
['19970415',5.810],
['19970416',5.924],
['19970417',5.437],
['19970418',5.346],
['19970421',5.265],
['19970422',5.415],
['19970423',5.363],
['19970424',5.262],
['19970425',5.129],
['19970428',5.032],
['19970429',5.168],
['19970430',5.220],
['19970505',5.226],
['19970506',5.174],
['19970507',5.509],
['19970508',5.187],
['19970509',5.243],
['19970512',5.298],
['19970513',5.411],
['19970514',5.119],
['19970515',5.200],
['19970516',4.805],
['19970519',4.915],
['19970520',4.915],
['19970521',4.811],
['19970522',4.392],
['19970523',4.321],
['19970526',4.207],
['19970527',4.324],
['19970528',4.331],
['19970529',4.227],
['19970530',4.341],
['19970602',4.487],
['19970603',4.616],
['19970604',4.519],
['19970605',4.558],
['19970606',4.237],
['19970609',4.276],
['19970610',4.113],
['19970611',4.123],
['19970612',4.120],
['19970613',4.227],
['19970616',4.195],
['19970617',4.117],
['19970618',4.045],
['19970619',4.019],
['19970620',4.130],
['19970623',4.032],
['19970624',4.159],
['19970625',4.104],
['19970626',4.010],
['19970627',3.854],
['19970702',3.627],
['19970703',3.513],
['19970704',3.487],
['19970707',3.403],
['19970708',3.383],
['19970709',3.474],
['19970710',3.481],
['19970711',3.536],
['19970714',3.828],
['19970715',4.143],
['19970716',4.023],
['19970717',4.003],
['19970718',4.032],
['19970721',4.061],
['19970722',4.130],
['19970723',4.195],
['19970724',4.065],
['19970725',3.987],
['19970728',3.844],
['19970729',3.789],
['19970730',3.928],
['19970731',3.945],
['19970801',3.922],
['19970804',4.032],
['19970805',4.078],
['19970806',3.948],
['19970807',4.016],
['19970808',4.000],
['19970811',3.935],
['19970812',3.873],
['19970813',3.756],
['19970814',3.633],
['19970815',3.591],
['19970818',3.513],
['19970819',3.549],
['19970820',3.627],
['19970821',3.643],
['19970822',3.614],
['19970825',3.598],
['19970826',3.630],
['19970827',3.740],
['19970828',3.805],
['19970829',3.750],
['19970901',3.773],
['19970902',3.773],
['19970903',3.773],
['19970904',3.896],
['19970905',3.857],
['19970908',3.818],
['19970909',3.773],
['19970910',3.838],
['19970911',3.766],
['19970912',3.669],
['19970915',3.546],
['19970916',3.594],
['19970917',3.565],
['19970918',3.585],
['19970919',3.604],
['19970922',3.439],
['19970923',3.286],
['19970924',3.435],
['19970925',3.429],
['19970926',3.383],
['19970929',3.312],
['19970930',3.348],
['19971006',3.296],
['19971007',3.348],
['19971008',3.435],
['19971009',3.387],
['19971010',3.416],
['19971013',3.448],
['19971014',3.416],
['19971015',3.432],
['19971016',3.481],
['19971017',3.591],
['19971020',3.529],
['19971021',3.546],
['19971022',3.481],
['19971023',3.451],
['19971024',3.507],
['19971027',3.633],
['19971028',3.487],
['19971029',3.477],
['19971030',3.448],
['19971031',3.432],
['19971103',3.416],
['19971104',3.585],
['19971105',3.546],
['19971106',3.546],
['19971107',3.555],
['19971110',3.500],
['19971111',3.607],
['19971112',3.675],
['19971113',3.659],
['19971114',3.627],
['19971117',3.588],
['19971118',3.627],
['19971119',3.568],
['19971120',3.520],
['19971121',3.468],
['19971124',3.390],
['19971125',3.367],
['19971126',3.422],
['19971127',3.357],
['19971128',3.383],
['19971201',3.387],
['19971202',3.383],
['19971203',3.348],
['19971204',3.377],
['19971205',3.367],
['19971208',3.380],
['19971209',3.383],
['19971210',3.416],
['19971211',3.400],
['19971212',3.406],
['19971215',3.464],
['19971216',3.481],
['19971217',3.383],
['19971218',3.374],
['19971219',3.422],
['19971222',3.377],
['19971223',3.448],
['19971224',3.559],
['19971225',3.529],
['19971226',3.523],
['19971229',3.507],
['19971230',3.464],
['19971231',3.484],
['19980105',3.526],
['19980106',3.513],
['19980107',3.565],
['19980108',3.529],
['19980109',3.598],
['19980112',3.562],
['19980113',3.377],
['19980114',3.432],
['19980115',3.458],
['19980116',3.500],
['19980119',3.497],
['19980120',3.455],
['19980121',3.468],
['19980122',3.516],
['19980123',3.510],
['19980209',3.581],
['19980210',3.598],
['19980211',3.740],
['19980212',3.692],
['19980213',3.756],
['19980216',3.786],
['19980217',3.763],
['19980218',3.675],
['19980219',3.708],
['19980220',3.636],
['19980223',3.568],
['19980224',3.578],
['19980225',3.510],
['19980226',3.546],
['19980227',3.529],
['19980302',3.448],
['19980303',3.481],
['19980304',3.539],
['19980305',3.533],
['19980306',3.542],
['19980309',3.484],
['19980310',3.497],
['19980311',3.461],
['19980312',3.426],
['19980313',3.432],
['19980316',3.374],
['19980317',3.422],
['19980318',3.393],
['19980319',3.367],
['19980320',3.387],
['19980323',3.344],
['19980324',3.348],
['19980325',3.367],
['19980326',3.325],
['19980327',3.396],
['19980330',3.458],
['19980331',3.393],
['19980401',3.364],
['19980402',3.409],
['19980403',3.507],
['19980406',3.542],
['19980407',3.562],
['19980408',3.552],
['19980409',3.562],
['19980410',3.542],
['19980413',3.500],
['19980414',3.500],
['19980415',3.533],
['19980416',3.484],
['19980417',3.422],
['19980420',3.429],
['19980421',3.458],
['19980422',3.578],
['19980423',3.552],
['19980424',3.507],
['19980427',3.481],
['19980428',3.594],
['19980429',3.559],
['19980430',3.675],
['19980505',3.747],
['19980506',3.708],
['19980507',3.598],
['19980508',3.799],
['19980511',4.117],
['19980512',4.032],
['19980513',4.071],
['19980514',3.967],
['19980515',3.902],
['19980518',3.948],
['19980519',3.857],
['19980520',3.877],
['19980521',3.967],
['19980522',3.954],
['19980525',4.039],
['19980526',4.032],
['19980527',4.016],
['19980528',3.987],
['19980529',4.036],
['19980601',4.156],
['19980602',4.113],
['19980603',4.104],
['19980604',4.000],
['19980605',3.967],
['19980608',3.977],
['19980609',3.825],
['19980610',3.740],
['19980611',3.769],
['19980612',3.847],
['19980615',3.870],
['19980616',3.808],
['19980617',3.799],
['19980618',3.844],
['19980619',3.890],
['19980622',3.974],
['19980623',3.899],
['19980624',3.854],
['19980625',3.782],
['19980626',3.799],
['19980629',3.756],
['19980630',3.675],
['19980701',3.630],
['19980702',3.633],
['19980703',3.675],
['19980706',3.617],
['19980707',3.610],
['19980708',3.679],
['19980709',3.630],
['19980710',3.675],
['19980713',3.799],
['19980714',3.734],
['19980715',3.763],
['19980716',3.860],
['19980717',3.808],
['19980720',3.731],
['19980721',3.792],
['19980722',3.857],
['19980723',3.909],
['19980724',3.886],
['19980727',3.902],
['19980728',3.805],
['19980729',3.718],
['19980730',3.786],
['19980731',3.750],
['19980803',3.701],
['19980804',3.643],
['19980805',3.669],
['19980806',3.669],
['19980807',3.636],
['19980810',3.490],
['19980811',3.205],
['19980812',3.218],
['19980813',3.156],
['19980814',3.091],
['19980817',2.845],
['19980818',2.806],
['19980819',2.897],
['19980820',2.981],
['19980821',2.997],
['19980824',2.975],
['19980825',2.932],
['19980826',2.971],
['19980827',2.923],
['19980828',2.851],
['19980901',2.923],
['19980902',2.880],
['19980903',2.906],
['19980904',2.958],
['19980907',3.020],
['19980908',2.968],
['19980909',3.007],
['19980910',3.069],
['19980911',3.182],
['19980914',3.429],
['19980915',3.344],
['19980916',3.338],
['19980917',3.215],
['19980918',3.124],
['19980921',3.215],
['19980922',3.211],
['19980923',3.205],
['19980924',3.156],
['19980925',3.211],
['19980928',3.280],
['19980929',3.221],
['19980930',3.247],
['19981005',3.270],
['19981006',3.205],
['19981007',3.163],
['19981008',3.205],
['19981009',3.254],
['19981012',3.341],
['19981013',3.335],
['19981014',3.318],
['19981015',3.338],
['19981016',3.341],
['19981019',3.432],
['19981020',3.370],
['19981021',3.221],
['19981022',3.257],
['19981023',3.221],
['19981026',3.166],
['19981027',3.182],
['19981028',3.254],
['19981029',3.189],
['19981030',3.221],
['19981102',3.205],
['19981103',3.344],
['19981104',3.344],
['19981105',3.380],
['19981106',3.364],
['19981109',3.413],
['19981110',3.361],
['19981111',3.348],
['19981112',3.325],
['19981113',3.419],
['19981116',3.536],
['19981117',3.542],
['19981118',3.477],
['19981119',3.471],
['19981120',3.494],
['19981123',3.516],
['19981124',3.481],
['19981125',3.338],
['19981126',3.312],
['19981127',3.328],
['19981130',3.445],
['19981201',3.481],
['19981202',3.594],
['19981203',3.562],
['19981204',3.497],
['19981207',3.562],
['19981208',3.546],
['19981209',3.529],
['19981210',3.432],
['19981211',3.529],
['19981214',3.627],
['19981215',3.529],
['19981216',3.549],
['19981217',3.494],
['19981218',3.585],
['19981222',3.649],
['19981223',3.591],
['19981224',3.598],
['19981225',3.640],
['19981228',3.594],
['19981229',3.513],
['19981230',3.578],
['19981231',3.610],
['19990104',3.546],
['19990105',3.549],
['19990106',3.649],
['19990107',3.711],
['19990108',3.747],
['19990111',3.682],
['19990112',3.672],
['19990113',3.598],
['19990114',3.747],
['19990115',3.838],
['19990118',3.792],
['19990119',3.977],
['19990120',3.877],
['19990121',3.938],
['19990122',4.006],
['19990125',3.902],
['19990126',3.847],
['19990127',3.893],
['19990128',3.834],
['19990129',3.873],
['19990201',3.744],
['19990202',3.695],
['19990203',3.575],
['19990204',3.610],
['19990205',3.464],
['19990208',3.276],
['19990209',3.351],
['19990301',3.387],
['19990302',3.448],
['19990303',3.685],
['19990304',3.685],
['19990305',3.714],
['19990308',3.834],
['19990309',3.867],
['19990310',3.864],
['19990311',3.873],
['19990312',3.935],
['19990315',3.951],
['19990316',3.987],
['19990317',3.890],
['19990318',3.877],
['19990319',4.201],
['19990322',4.224],
['19990323',4.169],
['19990324',4.068],
['19990325',4.045],
['19990326',4.074],
['19990329',4.149],
['19990330',4.039],
['19990331',4.013],
['19990401',4.178],
['19990402',4.091],
['19990405',4.188],
['19990406',4.104],
['19990407',4.084],
['19990408',4.253],
['19990409',4.616],
['19990412',4.798],
['19990413',4.600],
['19990414',4.626],
['19990415',4.827],
['19990416',4.795],
['19990419',4.568],
['19990420',4.646],
['19990421',4.454],
['19990422',4.282],
['19990423',4.311],
['19990426',4.032],
['19990427',4.100],
['19990428',4.149],
['19990429',4.282],
['19990430',4.230],
['19990504',4.412],
['19990505',4.483],
['19990506',4.577],
['19990507',4.529],
['19990510',4.292],
['19990511',4.659],
['19990512',4.938],
['19990513',5.019],
['19990514',4.944],
['19990517',4.889],
['19990518',4.882],
['19990519',5.025],
['19990520',5.103],
['19990521',5.145],
['19990524',5.596],
['19990525',5.963],
['19990526',6.466],
['19990527',6.450],
['19990528',7.034],
['19990531',7.498],
['19990601',7.426],
['19990602',7.919],
['19990603',7.679],
['19990604',7.634],
['19990607',7.585],
['19990608',8.283],
['19990609',9.049],
['19990610',9.159],
['19990611',9.483],
['19990614',9.087],
['19990615',8.705],
['19990616',8.731],
['19990617',9.542],
['19990621',9.574],
['19990622',9.629],
['19990625',9.159],
['19990628',8.997],
['19990629',9.188],
['19990630',8.890],
['19990701',8.396],
['19990702',8.893],
['19990705',8.666],
['19990706',8.575],
['19990707',8.705],
['19990708',8.756],
['19990709',8.763],
['19990712',9.282],
['19990713',8.899],
['19990714',8.773],
['19990715',8.740],
['19990716',8.867],
['19990719',8.724],
['19990720',8.769],
['19990721',9.003],
['19990722',8.737],
['19990723',8.802],
['19990726',8.769],
['19990727',8.607],
['19990728',8.594],
['19990729',8.559],
['19990730',8.769],
['19990802',8.993],
['19990803',8.990],
['19990804',8.987],
['19990805',8.802],
['19990806',9.613],
['19990809',9.996],
['19990810',9.581],
['19990811',9.347],
['19990812',9.366],
['19990813',9.224],
['19990816',9.272],
['19990817',9.159],
['19990818',9.094],
['19990819',9.217],
['19990820',9.029],
['19990823',9.023],
['19990824',8.893],
['19990825',9.094],
['19990826',9.175],
['19990827',8.941],
['19990830',9.139],
['19990831',9.324],
['19990901',9.324],
['19990902',9.613],
['19990903',9.873],
['19990907',10.035],
['19990908',9.967],
['19990909',10.872],
['19990910',10.551],
['19990913',11.067],
['19990914',11.437],
['19990915',11.235],
['19990916',11.008],
['19990917',11.268],
['19990920',10.976],
['19990921',10.814],
['19990922',10.878],
['19990923',10.749],
['19990924',10.794],
['19990927',10.866],
['19990928',10.781],
['19990929',10.781],
['19990930',10.522],
['19991008',10.457],
['19991011',10.353],
['19991012',10.385],
['19991013',10.320],
['19991014',10.593],
['19991015',10.554],
['19991018',10.288],
['19991019',10.204],
['19991020',10.353],
['19991021',10.327],
['19991022',10.891],
['19991025',10.878],
['19991026',11.164],
['19991027',11.495],
['19991028',11.158],
['19991029',10.470],
['19991101',10.288],
['19991102',10.561],
['19991103',10.463],
['19991104',10.515],
['19991105',10.548],
['19991108',10.522],
['19991109',10.359],
['19991110',10.359],
['19991111',10.418],
['19991112',10.463],
['19991115',10.450],
['19991116',10.307],
['19991117',10.450],
['19991118',10.554],
['19991119',10.294],
['19991122',10.333],
['19991123',10.340],
['19991124',10.424],
['19991125',10.359],
['19991126',10.327],
['19991129',10.210],
['19991130',9.996],
['19991201',10.035],
['19991202',10.002],
['19991203',10.028],
['19991206',9.899],
['19991207',10.359],
['19991208',10.152],
['19991209',10.184],
['19991210',10.035],
['19991213',9.905],
['19991214',9.840],
['19991215',10.333],
['19991216',10.165],
['19991217',10.197],
['19991221',10.035],
['19991222',10.067],
['19991223',10.035],
['19991224',10.015],
['19991227',10.028],
['19991228',10.028],
['19991229',10.093],
['19991230',10.204],
['20000104',10.457],
['20000105',10.476],
['20000106',10.541],
['20000107',11.398],
['20000110',12.163],
['20000111',11.566],
['20000112',10.995],
['20000113',10.684],
['20000114',10.742],
['20000117',10.716],
['20000118',10.671],
['20000119',10.736],
['20000120',11.132],
['20000121',11.553],
['20000124',11.683],
['20000125',11.540],
['20000126',11.644],
['20000127',11.774],
['20000128',11.826],
['20000214',12.949],
['20000215',12.825],
['20000216',12.111],
['20000217',11.787],
['20000218',12.111],
['20000221',12.403],
['20000222',12.034],
['20000223',12.222],
['20000224',12.598],
['20000225',12.319],
['20000228',13.461],
['20000229',13.396],
['20000301',13.851],
['20000302',13.669],
['20000303',14.759],
['20000306',13.344],
['20000307',13.409],
['20000308',13.604],
['20000309',13.267],
['20000310',13.072],
['20000313',13.137],
['20000314',12.631],
['20000315',12.631],
['20000316',12.176],
['20000317',12.923],
['20000320',12.923],
['20000321',12.851],
['20000322',12.936],
['20000323',12.955],
['20000324',12.695],
['20000327',12.572],
['20000328',12.605],
['20000329',12.793],
['20000330',12.793],
['20000331',12.910],
['20000403',13.559],
['20000404',13.020],
['20000405',12.890],
['20000406',12.624],
['20000407',12.806],
['20000410',12.721],
['20000411',12.553],
['20000412',12.358],
['20000413',12.631],
['20000414',12.540],
['20000417',12.533],
['20000418',12.663],
['20000419',12.566],
['20000420',12.605],
['20000421',12.728],
['20000424',12.501],
['20000425',12.287],
['20000426',12.455],
['20000427',12.566],
['20000508',12.306],
['20000509',12.241],
['20000510',12.073],
['20000511',12.034],
['20000512',11.949],
['20000515',11.982],
['20000516',12.034],
['20000517',11.995],
['20000518',12.222],
['20000519',12.274],
['20000522',12.371],
['20000523',12.306],
['20000524',12.306],
['20000525',12.747],
['20000526',12.689],
['20000529',13.137],
['20000530',12.773],
['20000531',12.812],
['20000601',13.046],
['20000602',12.975],
['20000605',13.344],
['20000606',14.175],
['20000607',13.701],
['20000608',13.799],
['20000609',13.993],
['20000612',15.097],
['20000613',14.577],
['20000614',13.526],
['20000615',12.695],
['20000616',12.306],
['20000619',12.423],
['20000620',12.248],
['20000621',12.553],
['20000622',12.553],
['20000623',13.604],
['20000626',12.235],
['20000627',11.586],
['20000628',11.504],
['20000629',11.287],
['20000630',11.437],
['20000703',11.511],
['20000704',11.481],
['20000705',11.511],
['20000706',11.384],
['20000707',11.720],
['20000710',11.907],
['20000711',12.146],
['20000712',12.407],
['20000713',12.280],
['20000714',12.317],
['20000717',11.959],
['20000718',12.108],
['20000719',12.295],
['20000720',12.153],
['20000721',12.138],
['20000724',12.146],
['20000725',11.802],
['20000726',11.959],
['20000727',11.660],
['20000728',12.131],
['20000731',12.168],
['20000801',12.198],
['20000802',11.832],
['20000803',11.735],
['20000804',11.847],
['20000807',11.660],
['20000808',11.690],
['20000809',11.451],
['20000810',11.481],
['20000811',11.653],
['20000814',11.735],
['20000815',11.660],
['20000816',11.429],
['20000817',11.496],
['20000818',11.683],
['20000821',11.795],
['20000822',11.459],
['20000823',11.623],
['20000824',11.519],
['20000825',11.511],
['20000828',11.213],
['20000829',11.362],
['20000830',11.153],
['20000831',11.160],
['20000901',11.153],
['20000904',11.437],
['20000905',11.190],
['20000906',11.101],
['20000907',11.138],
['20000908',10.937],
['20000911',10.989],
['20000912',11.019],
['20000913',11.138],
['20000914',11.146],
['20000915',11.034],
['20000918',10.877],
['20000919',10.922],
['20000920',10.951],
['20000921',10.929],
['20000922',10.914],
['20000925',10.825],
['20000926',11.108],
['20000927',11.101],
['20000928',10.877],
['20000929',10.840],
['20001009',10.840],
['20001010',11.086],
['20001011',11.123],
['20001012',11.272],
['20001013',11.399],
['20001016',11.496],
['20001017',11.496],
['20001018',11.489],
['20001019',11.332],
['20001020',11.407],
['20001023',11.340],
['20001024',11.049],
['20001025',11.138],
['20001026',11.004],
['20001027',10.877],
['20001030',10.757],
['20001031',10.616],
['20001101',10.541],
['20001102',10.541],
['20001103',10.586],
['20001106',10.541],
['20001107',10.541],
['20001108',10.541],
['20001109',10.608],
['20001110',10.541],
['20001113',10.608],
['20001114',10.541],
['20001115',10.563],
['20001116',10.578],
['20001117',10.810],
['20001120',10.713],
['20001121',10.541],
['20001122',10.623],
['20001123',10.549],
['20001124',10.049],
['20001127',9.728],
['20001128',9.974],
['20001129',9.810],
['20001130',9.735],
['20001201',9.750],
['20001204',9.690],
['20001205',9.414],
['20001206',9.586],
['20001207',9.354],
['20001208',9.235],
['20001211',8.966],
['20001212',9.116],
['20001213',9.549],
['20001214',9.429],
['20001215',9.265],
['20001218',9.153],
['20001219',9.257],
['20001220',9.213],
['20001221',9.347],
['20001222',9.175],
['20001225',9.056],
['20001226',9.123],
['20001227',9.071],
['20001228',9.071],
['20001229',9.213],
['20010102',9.362],
['20010103',9.429],
['20010104',9.295],
['20010105',9.235],
['20010108',9.063],
['20010109',9.123],
['20010110',9.220],
['20010111',9.354],
['20010112',9.399],
['20010115',9.123],
['20010116',9.198],
['20010117',9.310],
['20010118',9.272],
['20010119',9.340],
['20010205',9.168],
['20010206',9.078],
['20010207',9.086],
['20010208',8.675],
['20010209',8.735],
['20010212',8.466],
['20010213',8.519],
['20010214',8.451],
['20010215',8.354],
['20010216',8.272],
['20010219',8.369],
['20010220',8.340],
['20010221',8.026],
['20010222',7.772],
['20010223',7.877],
['20010226',8.108],
['20010227',8.056],
['20010228',8.250],
['20010301',8.257],
['20010302',8.369],
['20010305',8.272],
['20010306',8.198],
['20010307',8.198],
['20010308',8.377],
['20010309',8.414],
['20010312',8.369],
['20010313',8.235],
['20010314',8.414],
['20010315',8.429],
['20010316',8.735],
['20010319',8.899],
['20010320',8.825],
['20010321',8.869],
['20010322',8.951],
['20010323',8.728],
['20010326',8.817],
['20010327',8.951],
['20010328',9.123],
['20010329',9.108],
['20010330',9.078],
['20010402',9.086],
['20010403',9.183],
['20010404',9.093],
['20010405',9.138],
['20010406',9.011],
['20010409',9.004],
['20010410',9.093],
['20010411',8.989],
['20010412',9.041],
['20010413',9.183],
['20010416',9.243],
['20010417',9.362],
['20010418',9.340],
['20010419',9.265],
['20010420',9.265],
['20010423',9.108],
['20010424',9.093],
['20010425',8.869],
['20010426',8.787],
['20010427',8.728],
['20010430',8.660],
['20010508',8.862],
['20010509',8.802],
['20010510',9.019],
['20010511',9.153],
['20010515',9.325],
['20010516',9.257],
['20010517',9.131],
['20010518',9.175],
['20010521',9.041],
['20010522',9.190],
['20010523',9.108],
['20010524',9.034],
['20010525',9.093],
['20010528',8.966],
['20010529',9.093],
['20010530',9.757],
['20010531',9.705],
['20010601',9.578],
['20010604',9.608],
['20010605',9.459],
['20010606',9.549],
['20010607',9.422],
['20010608',9.332],
['20010611',9.272],
['20010612',9.422],
['20010613',9.392],
['20010614',9.272],
['20010615',9.220],
['20010618',9.019],
['20010619',9.093],
['20010620',8.951],
['20010621',9.034],
['20010622',9.123],
['20010625',9.146],
['20010626',8.825],
['20010627',8.757],
['20010628',8.720],
['20010629',8.653],
['20010702',8.466],
['20010703',8.619],
['20010704',8.582],
['20010705',8.470],
['20010706',8.351],
['20010709',8.179],
['20010710',8.366],
['20010711',8.381],
['20010712',8.269],
['20010713',8.299],
['20010716',8.134],
['20010717',8.060],
['20010718',8.194],
['20010719',8.231],
['20010720',8.291],
['20010723',8.455],
['20010724',8.328],
['20010725',8.134],
['20010727',8.731],
['20010730',8.149],
['20010731',7.866],
['20010801',8.164],
['20010802',8.164],
['20010803',8.112],
['20010806',7.672],
['20010807',7.791],
['20010808',7.761],
['20010809',7.888],
['20010810',8.037],
['20010813',7.978],
['20010814',7.881],
['20010815',7.828],
['20010816',7.724],
['20010817',7.754],
['20010820',7.746],
['20010821',7.769],
['20010822',8.030],
['20010823',8.052],
['20010824',7.843],
['20010827',7.769],
['20010828',7.858],
['20010829',7.858],
['20010830',7.761],
['20010831',7.754],
['20010903',7.627],
['20010904',7.776],
['20010905',7.851],
['20010906',7.746],
['20010907',7.575],
['20010910',7.649],
['20010911',7.590],
['20010912',7.425],
['20010913',7.418],
['20010914',7.187],
['20010917',6.530],
['20010918',6.366],
['20010919',6.403],
['20010920',6.403],
['20010921',6.358],
['20010924',6.284],
['20010925',6.328],
['20010926',6.224],
['20010927',6.231],
['20010928',6.022],
['20011008',5.776],
['20011009',5.896],
['20011010',5.746],
['20011011',5.597],
['20011012',5.918],
['20011015',5.784],
['20011017',5.597],
['20011018',5.485],
['20011019',5.396],
['20011022',5.187],
['20011023',5.709],
['20011024',6.112],
['20011025',5.821],
['20011026',5.828],
['20011029',5.843],
['20011030',5.799],
['20011031',5.746],
['20011101',5.851],
['20011102',5.791],
['20011105',5.664],
['20011106',5.612],
['20011107',5.299],
['20011108',5.291],
['20011109',5.358],
['20011112',5.381],
['20011113',5.381],
['20011114',5.381],
['20011115',5.418],
['20011116',5.507],
['20011119',5.567],
['20011120',5.754],
['20011121',5.746],
['20011122',5.903],
['20011123',5.955],
['20011126',5.963],
['20011127',5.970],
['20011128',6.082],
['20011129',6.112],
['20011130',6.321],
['20011203',6.500],
['20011204',6.530],
['20011205',6.336],
['20011206',6.328],
['20011207',6.366],
['20011210',6.463],
['20011211',6.358],
['20011212',6.172],
['20011213',5.985],
['20011214',5.866],
['20011217',5.888],
['20011218',6.030],
['20011219',5.940],
['20011220',5.769],
['20011221',5.821],
['20011224',5.642],
['20011225',5.672],
['20011226',5.776],
['20011227',5.724],
['20011228',5.731],
['20011231',5.724],
['20020104',5.604],
['20020107',5.463],
['20020108',5.448],
['20020109',5.358],
['20020110',5.396],
['20020111',5.276],
['20020114',5.127],
['20020115',4.933],
['20020116',4.948],
['20020117',4.552],
['20020118',4.545],
['20020121',4.097],
['20020122',4.104],
['20020123',4.515],
['20020124',4.627],
['20020125',4.590],
['20020128',4.179],
['20020129',4.358],
['20020130',4.493],
['20020131',4.791],
['20020201',4.709],
['20020204',4.858],
['20020205',4.948],
['20020206',4.739],
['20020207',5.097],
['20020208',5.127],
['20020225',5.157],
['20020226',5.127],
['20020227',5.030],
['20020228',4.940],
['20020301',4.746],
['20020304',4.858],
['20020305',5.000],
['20020306',5.119],
['20020307',5.358],
['20020308',5.493],
['20020311',5.784],
['20020312',5.552],
['20020313',5.373],
['20020314',5.560],
['20020315',5.657],
['20020318',6.104],
['20020319',6.313],
['20020320',6.567],
['20020321',6.500],
['20020322',6.455],
['20020325',6.843],
['20020326',6.754],
['20020327',6.701],
['20020328',6.627],
['20020329',6.545],
['20020401',6.500],
['20020402',6.343],
['20020403',6.455],
['20020404',6.679],
['20020405',6.627],
['20020408',6.701],
['20020409',6.664],
['20020410',6.709],
['20020411',6.545],
['20020412',6.410],
['20020415',6.336],
['20020416',6.396],
['20020417',6.343],
['20020418',6.269],
['20020419',6.179],
['20020422',6.075],
['20020423',6.037],
['20020424',6.030],
['20020425',6.112],
['20020426',6.187],
['20020429',6.381],
['20020430',6.306],
['20020508',6.149],
['20020509',6.082],
['20020510',6.104],
['20020513',6.007],
['20020514',6.000],
['20020515',5.970],
['20020516',5.649],
['20020517',5.716],
['20020520',5.664],
['20020522',5.791],
['20020523',6.104],
['20020524',6.284],
['20020527',6.157],
['20020528',6.119],
['20020529',5.851],
['20020530',5.858],
['20020531',5.746],
['20020603',5.582],
['20020604',5.619],
['20020605',5.433],
['20020606',5.739],
['20020607',5.918],
['20020610',5.791],
['20020611',5.851],
['20020612',5.754],
['20020613',5.649],
['20020614',5.530],
['20020617',5.537],
['20020618',5.672],
['20020619',5.657],
['20020620',5.709],
['20020621',5.978],
['20020624',6.575],
['20020625',6.552],
['20020626',6.597],
['20020627',6.604],
['20020701',6.403],
['20020702',6.567],
['20020703',6.724],
['20020704',6.545],
['20020705',6.604],
['20020708',6.627],
['20020709',6.463],
['20020710',6.351],
['20020711',6.321],
['20020712',6.351],
['20020715',6.194],
['20020716',6.164],
['20020717',6.269],
['20020718',6.313],
['20020719',6.321],
['20020722',6.194],
['20020723',6.149],
['20020724',6.134],
['20020725',6.142],
['20020726',6.127],
['20020729',6.224],
['20020730',6.201],
['20020731',6.112],
['20020801',6.045],
['20020802',6.045],
['20020805',5.978],
['20020806',6.060],
['20020807',6.052],
['20020808',6.007],
['20020809',5.978],
['20020812',5.933],
['20020813',5.948],
['20020814',6.000],
['20020815',5.933],
['20020816',5.948],
['20020819',5.925],
['20020820',6.007],
['20020821',6.007],
['20020822',6.082],
['20020823',6.067],
['20020826',5.925],
['20020827',5.903],
['20020828',5.918],
['20020829',5.896],
['20020830',5.821],
['20020902',5.784],
['20020903',5.851],
['20020904',5.873],
['20020905',5.769],
['20020906',5.769],
['20020909',5.746],
['20020910',5.709],
['20020911',5.761],
['20020912',5.806],
['20020913',5.769],
['20020916',5.672],
['20020917',5.642],
['20020918',5.545],
['20020919',5.649],
['20020920',5.597],
['20020923',5.560],
['20020924',5.522],
['20020925',5.515],
['20020926',5.507],
['20020927',5.470],
['20021008',5.448],
['20021009',5.366],
['20021010',5.358],
['20021011',5.358],
['20021014',5.373],
['20021015',5.321],
['20021016',5.373],
['20021017',5.239],
['20021018',5.254],
['20021021',5.276],
['20021022',5.373],
['20021023',5.425],
['20021024',5.373],
['20021025',5.261],
['20021028',5.284],
['20021029',5.246],
['20021030',5.254],
['20021031',5.231],
['20021101',5.149],
['20021104',5.164],
['20021105',5.321],
['20021106',5.269],
['20021107',5.299],
['20021108',5.164],
['20021111',5.112],
['20021112',4.918],
['20021113',4.888],
['20021114',4.799],
['20021115',4.776],
['20021118',4.746],
['20021119',4.828],
['20021120',4.687],
['20021121',4.552],
['20021122',4.582],
['20021125',4.567],
['20021126',4.470],
['20021127',4.567],
['20021128',4.642],
['20021129',4.836],
['20021202',4.612],
['20021203',4.672],
['20021204',4.657],
['20021205',4.672],
['20021206',4.679],
['20021209',4.597],
['20021210',4.507],
['20021211',4.537],
['20021212',4.552],
['20021213',4.627],
['20021216',4.627],
['20021217',4.672],
['20021218',4.649],
['20021219',4.627],
['20021220',4.664],
['20021223',4.761],
['20021224',4.731],
['20021225',4.701],
['20021226',4.493],
['20021227',4.493],
['20021230',4.515],
['20030102',4.313],
['20030103',4.328],
['20030106',4.381],
['20030107',4.388],
['20030108',4.500],
['20030109',4.575],
['20030110',4.560],
['20030113',4.567],
['20030114',4.776],
['20030115',4.761],
['20030116',4.813],
['20030117',4.739],
['20030120',4.769],
['20030121',4.761],
['20030122',4.910],
['20030123',4.843],
['20030124',4.910],
['20030127',4.993],
['20030128',4.925],
['20030129',4.843],
['20030210',4.731],
['20030211',4.776],
['20030212',4.866],
['20030213',4.985],
['20030214',5.045],
['20030217',5.030],
['20030218',5.075],
['20030219',5.097],
['20030220',5.201],
['20030221',5.075],
['20030224',5.112],
['20030225',5.231],
['20030226',5.351],
['20030227',5.306],
['20030228',5.246],
['20030303',5.410],
['20030304',5.366],
['20030305',5.306],
['20030306',5.269],
['20030307',5.194],
['20030310',5.216],
['20030311',5.224],
['20030312',5.299],
['20030313',5.291],
['20030314',5.239],
['20030317',5.224],
['20030318',5.216],
['20030319',5.284],
['20030320',5.231],
['20030321',5.261],
['20030324',5.209],
['20030325',5.164],
['20030326',5.157],
['20030327',5.261],
['20030328',5.328],
['20030331',5.336],
['20030401',5.373],
['20030402',5.328],
['20030403',5.313],
['20030404',5.321],
['20030407',5.209],
['20030408',5.090],
['20030409',5.119],
['20030410',5.067],
['20030411',5.000],
['20030414',5.090],
['20030415',5.045],
['20030416',5.097],
['20030417',5.164],
['20030418',5.209],
['20030421',5.097],
['20030422',5.022],
['20030423',4.993],
['20030424',4.866],
['20030425',4.619],
['20030428',4.649],
['20030429',4.537],
['20030430',4.582],
['20030512',4.612],
['20030513',4.396],
['20030514',4.836],
['20030515',4.896],
['20030516',4.806],
['20030519',4.813],
['20030520',4.709],
['20030521',4.799],
['20030522',4.746],
['20030523',4.761],
['20030526',4.776],
['20030527',4.746],
['20030528',4.799],
['20030529',4.903],
['20030530',4.873],
['20030602',4.925],
['20030603',4.828],
['20030604',4.731],
['20030605',4.739],
['20030606',4.716],
['20030609',4.627],
['20030610',4.642],
['20030611',4.679],
['20030612',4.627],
['20030613',4.634],
['20030616',4.672],
['20030617',4.634],
['20030618',4.627],
['20030619',4.552],
['20030620',4.545],
['20030623',4.493],
['20030624',4.500],
['20030625',4.537],
['20030626',4.485],
['20030627',4.381],
['20030701',4.313],
['20030702',4.269],
['20030703',4.276],
['20030704',4.291],
['20030707',4.313],
['20030708',4.299],
['20030709',4.313],
['20030710',4.351],
['20030711',4.328],
['20030714',4.396],
['20030715',4.351],
['20030716',4.291],
['20030717',4.381],
['20030718',4.328],
['20030721',4.246],
['20030722',4.254],
['20030723',4.254],
['20030724',4.231],
['20030725',4.179],
['20030728',4.157],
['20030729',4.306],
['20030730',4.261],
['20030731',4.276],
['20030801',4.291],
['20030804',4.291],
['20030805',4.291],
['20030806',4.276],
['20030807',4.269],
['20030808',4.246],
['20030811',4.231],
['20030812',4.284],
['20030813',4.299],
['20030814',4.216],
['20030815',4.187],
['20030818',4.164],
['20030819',4.201],
['20030820',4.149],
['20030821',4.134],
['20030822',4.119],
['20030825',4.097],
['20030826',4.142],
['20030827',4.134],
['20030828',4.082],
['20030829',4.112],
['20030901',4.157],
['20030902',4.127],
['20030903',4.127],
['20030904',4.090],
['20030905',4.097],
['20030908',4.015],
['20030909',4.000],
['20030910',4.000],
['20030911',4.000],
['20030912',3.963],
['20030915',3.896],
['20030916',3.933],
['20030917',3.873],
['20030918',3.813],
['20030919',3.821],
['20030922',3.754],
['20030923',3.791],
['20030924',3.821],
['20030925',3.784],
['20030926',3.776],
['20030929',3.799],
['20030930',3.910],
['20031008',3.903],
['20031009',4.022],
['20031010',4.082],
['20031013',4.000],
['20031014',3.955],
['20031015',3.918],
['20031016',3.791],
['20031017',3.724],
['20031020',3.687],
['20031021',3.776],
['20031022',4.157],
['20031023',4.022],
['20031024',4.127],
['20031027',4.022],
['20031028',4.187],
['20031029',4.142],
['20031030',4.022],
['20031031',3.978],
['20031103',4.052],
['20031104',4.112],
['20031105',4.022],
['20031106',4.246],
['20031107',4.060],
['20031110',4.216],
['20031111',4.254],
['20031112',4.164],
['20031113',4.179],
['20031114',4.157],
['20031117',4.134],
['20031118',3.933],
['20031119',4.022],
['20031120',4.157],
['20031121',4.179],
['20031124',4.291],
['20031125',4.351],
['20031126',4.470],
['20031127',4.276],
['20031128',4.254],
['20031201',4.366],
['20031202',4.321],
['20031203',4.254],
['20031204',4.299],
['20031205',4.321],
['20031208',4.254],
['20031209',4.269],
['20031210',4.373],
['20031211',4.313],
['20031212',4.246],
['20031215',4.179],
['20031216',4.201],
['20031217',4.134],
['20031218',4.067],
['20031219',3.873],
['20031222',4.022],
['20031223',3.985],
['20031224',4.097],
['20031225',3.993],
['20031226',3.993],
['20031229',3.985],
['20031230',4.007],
['20031231',4.007],
['20040102',3.978],
['20040105',3.881],
['20040106',3.933],
['20040107',4.015],
['20040108',4.104],
['20040109',4.045],
['20040112',4.082],
['20040113',4.127],
['20040114',4.261],
['20040115',4.433],
['20040116',4.597],
['20040129',4.724],
['20040130',4.582],
['20040202',4.612],
['20040203',4.701],
['20040204',4.731],
['20040205',4.903],
['20040206',4.843],
['20040209',4.881],
['20040210',4.910],
['20040211',4.813],
['20040212',4.746],
['20040213',4.701],
['20040216',4.784],
['20040217',4.813],
['20040218',4.776],
['20040219',4.918],
['20040223',5.410],
['20040224',5.299],
['20040225',5.164],
['20040226',5.119],
['20040227',5.388],
['20040301',5.388],
['20040302',5.313],
['20040303',5.284],
['20040304',5.201],
['20040305',5.119],
['20040308',5.045],
['20040309',5.015],
['20040310',5.127],
['20040311',5.216],
['20040312',5.149],
['20040315',5.299],
['20040316',5.321],
['20040317',5.261],
['20040318',5.164],
['20040319',5.231],
['20040322',5.187],
['20040323',5.112],
['20040324',5.284],
['20040325',5.231],
['20040326',5.216],
['20040329',5.231],
['20040330',5.336],
['20040331',5.433],
['20040401',5.440],
['20040402',5.440],
['20040405',5.366],
['20040406',5.403],
['20040407',5.448],
['20040408',5.590],
['20040409',5.455],
['20040412',5.507],
['20040413',5.836],
['20040414',5.754],
['20040415',5.664],
['20040416',5.493],
['20040419',5.455],
['20040420',5.351],
['20040421',5.381],
['20040422',5.522],
['20040423',5.351],
['20040426',5.321],
['20040427',5.291],
['20040428',5.254],
['20040429',5.299],
['20040430',5.321],
['20040510',5.104],
['20040511',5.000],
['20040512',5.104],
['20040513',5.119],
['20040514',4.993],
['20040517',4.910],
['20040518',4.851],
['20040519',4.925],
['20040520',4.866],
['20040521',4.851],
['20040524',4.821],
['20040525',4.582],
['20040526',4.627],
['20040527',4.672],
['20040528',4.612],
['20040531',4.634],
['20040601',4.769],
['20040602',4.821],
['20040603',4.716],
['20040604',4.687],
['20040607',4.582],
['20040608',4.515],
['20040609',4.388],
['20040610',4.276],
['20040611',4.291],
['20040614',4.164],
['20040615',4.194],
['20040616',4.224],
['20040617',4.157],
['20040618',4.104],
['20040621',4.142],
['20040622',4.149],
['20040623',4.119],
['20040624',4.104],
['20040625',4.090],
['20040628',4.000],
['20040629',4.127],
['20040701',4.216],
['20040702',4.179],
['20040705',4.246],
['20040706',4.239],
['20040707',4.157],
['20040708',4.075],
['20040709',3.970],
['20040712',3.813],
['20040713',3.866],
['20040714',3.821],
['20040715',3.851],
['20040716',4.007],
['20040719',4.015],
['20040720',4.015],
['20040721',3.993],
['20040722',3.828],
['20040723',3.955],
['20040726',4.030],
['20040727',4.022],
['20040728',4.030],
['20040729',4.067],
['20040730',3.955],
['20040802',3.925],
['20040803',3.828],
['20040804',3.940],
['20040805',3.866],
['20040806',3.866],
['20040809',3.866],
['20040810',3.903],
['20040811',3.828],
['20040812',3.813],
['20040813',3.776],
['20040816',3.799],
['20040817',3.806],
['20040818',3.806],
['20040819',3.776],
['20040820',3.642],
['20040823',3.590],
['20040824',3.769],
['20040825',3.836],
['20040826',3.761],
['20040827',3.724],
['20040830',3.679],
['20040831',3.761],
['20040901',3.664],
['20040902',3.769],
['20040903',3.739],
['20040906',3.724],
['20040907',3.746],
['20040908',3.679],
['20040909',3.679],
['20040910',3.694],
['20040913',3.612],
['20040914',3.716],
['20040915',3.881],
['20040916',3.896],
['20040917',4.037],
['20040920',4.269],
['20040921',4.201],
['20040922',4.284],
['20040923',4.373],
['20040924',4.149],
['20040927',4.179],
['20040928',4.209],
['20040929',4.082],
['20040930',4.060],
['20041008',4.149],
['20041011',4.246],
['20041012',4.224],
['20041013',4.343],
['20041014',4.082],
['20041015',3.993],
['20041018',3.851],
['20041019',3.851],
['20041020',3.731],
['20041021',3.455],
['20041022',3.515],
['20041025',3.381],
['20041026',3.425],
['20041027',3.537],
['20041028',3.530],
['20041029',3.418],
['20041101',3.328],
['20041102',3.418],
['20041103',3.493],
['20041104',3.485],
['20041105',3.433],
['20041108',3.433],
['20041109',3.396],
['20041110',3.522],
['20041111',3.470],
['20041112',3.530],
['20041115',3.604],
['20041116',3.590],
['20041117',3.537],
['20041118',3.567],
['20041119',3.709],
['20041122',3.754],
['20041123',3.739],
['20041124',3.664],
['20041125',3.612],
['20041126',3.657],
['20041129',3.582],
['20041130',3.590],
['20041201',3.575],
['20041202',3.619],
['20041203',3.627],
['20041206',3.627],
['20041207',3.567],
['20041208',3.597],
['20041209',3.649],
['20041210',3.537],
['20041213',3.515],
['20041214',3.470],
['20041215',3.463],
['20041216',3.433],
['20041217',3.366],
['20041220',3.366],
['20041221',3.388],
['20041222',3.478],
['20041223',3.381],
['20041224',3.373],
['20041228',3.172],
['20041229',3.209],
['20041230',3.119],
['20041231',3.142],
['20050104',3.037],
['20050105',3.075],
['20050106',3.045],
['20050107',3.067],
['20050110',3.104],
['20050111',3.119],
['20050112',3.134],
['20050113',3.164],
['20050114',3.075],
['20050117',2.940],
['20050118',2.978],
['20050119',2.940],
['20050120',2.903],
['20050121',3.022],
['20050124',3.209],
['20050125',3.194],
['20050126',3.134],
['20050127',3.037],
['20050128',3.157],
['20050131',2.948],
['20050201',2.985],
['20050202',3.149],
['20050203',3.127],
['20050204',3.187],
['20050216',3.224],
['20050217',3.216],
['20050218',3.134],
['20050221',3.201],
['20050222',3.261],
['20050223',3.299],
['20050224',3.336],
['20050225',3.291],
['20050228',3.261],
['20050301',3.358],
['20050302',3.306],
['20050303',3.276],
['20050304',3.194],
['20050307',3.246],
['20050308',3.313],
['20050309',3.284],
['20050310',3.306],
['20050311',3.321],
['20050314',3.246],
['20050315',3.119],
['20050316',3.216],
['20050317',3.224],
['20050318',3.045],
['20050321',2.993],
['20050322',2.903],
['20050323',2.896],
['20050324',2.925],
['20050325',3.007],
['20050328',2.970],
['20050329',2.985],
['20050330',2.888],
['20050331',2.888],
['20050401',3.000],
['20050404',2.978],
['20050405',2.866],
['20050406',2.873],
['20050407',2.910],
['20050408',2.940],
['20050411',2.948],
['20050412',2.843],
['20050413',2.918],
['20050414',2.836],
['20050415',2.761],
['20050418',2.701],
['20050419',2.731],
['20050420',2.567],
['20050421',2.313],
['20050422',2.328],
['20050425',2.194],
['20050426',2.276],
['20050427',2.239],
['20050428',2.313],
['20050429',2.313],
['20050509',2.201],
['20050510',2.216],
['20050511',2.209],
['20050512',2.187],
['20050513',2.216],
['20050516',2.216],
['20050517',2.231],
['20050518',2.261],
['20050519',2.246],
['20050520',2.209],
['20050523',2.104],
['20050524',2.142],
['20050525',2.172],
['20050526',2.187],
['20050527',2.179],
['20050530',2.209],
['20050531',2.187],
['20050601',2.134],
['20050602',2.134],
['20050603',2.127],
['20050606',2.149],
['20050607',2.134],
['20050608',2.284],
['20050609',2.284],
['20050610',2.254],
['20050613',2.254],
['20050614',2.284],
['20050615',2.179],
['20050616',2.164],
['20050617',2.127],
['20050620',2.179],
['20050621',2.396],
['20050622',2.351],
['20050623',2.306],
['20050624',2.313],
['20050627',2.336],
['20050629',2.246],
['20050630',2.134],
['20050701',2.052],
['20050704',1.873],
['20050705',1.896],
['20050706',1.881],
['20050707',1.881],
['20050708',1.716],
['20050711',1.679],
['20050712',1.746],
['20050713',1.694],
['20050714',1.612],
['20050715',1.582],
['20050718',1.597],
['20050719',1.590],
['20050720',1.590],
['20050721',1.642],
['20050722',1.687],
['20050725',1.649],
['20050726',1.679],
['20050727',1.746],
['20050728',1.784],
['20050729',1.746],
['20050801',1.754],
['20050802',1.784],
['20050803',1.799],
['20050804',1.776],
['20050805',1.843],
['20050808',1.896],
['20050809',1.940],
['20050810',1.955],
['20050811',2.052],
['20050812',1.918],
['20050815',1.955],
['20050816',1.963],
['20050817',2.000],
['20050818',1.940],
['20050819',1.866],
['20050822',1.888],
['20050823',1.873],
['20050824',1.940],
['20050825',1.970],
['20050826',2.015],
['20050829',1.985],
['20050830',2.000],
['20050831',2.201],
['20050901',2.209],
['20050902',2.187],
['20050905',2.201],
['20050906',2.276],
['20050907',2.321],
['20050908',2.239],
['20050909',2.187],
['20050912',2.164],
['20050913',2.209],
['20050914',2.276],
['20050915',2.284],
['20050916',2.246],
['20050919',2.313],
['20050920',2.358],
['20050921',2.239],
['20050922',2.104],
['20050923',2.037],
['20050926',2.037],
['20050927',1.948],
['20050928',1.925],
['20050929',1.978],
['20050930',1.963],
['20051010',1.888],
['20051011',1.955],
['20051012',2.037],
['20051013',1.963],
['20051014',1.978],
['20051017',2.097],
['20051018',2.090],
['20051019',2.045],
['20051020',2.037],
['20051021',2.052],
['20051024',2.104],
['20051025',2.015],
['20051026',1.896],
['20051027',1.821],
['20051028',1.739],
['20051031',1.799],
['20051101',1.821],
['20051102',1.896],
['20051103',1.851],
['20051104',1.881],
['20051107',1.873],
['20051108',1.881],
['20051109',1.873],
['20051110',1.761],
['20051111',1.784],
['20051114',1.791],
['20051115',1.799],
['20051116',1.799],
['20051117',1.806],
['20051118',1.851],
['20051121',1.858],
['20051122',1.784],
['20051123',1.813],
['20051124',1.813],
['20051125',1.836],
['20051128',1.813],
['20051129',1.776],
['20051130',1.791],
['20051201',1.791],
['20051202',1.746],
['20051205',1.657],
['20051206',1.672],
['20051207',1.687],
['20051208',1.657],
['20051209',1.679],
['20051212',1.694],
['20051213',1.694],
['20051214',1.731],
['20051215',1.716],
['20051216',1.739],
['20051219',1.731],
['20051220',1.739],
['20051221',1.724],
['20051222',1.716],
['20051223',1.746],
['20051226',1.806],
['20051227',1.784],
['20051228',1.791],
['20051229',1.821],
['20051230',1.851],
['20060104',1.828],
['20060105',1.836],
['20060106',1.843],
['20060109',1.851],
['20060110',1.843],
['20060111',1.799],
['20060112',1.836],
['20060113',1.910],
['20060116',1.873],
['20060117',1.851],
['20060118',1.888],
['20060119',1.940],
['20060120',1.896],
['20060123',1.888],
['20060124',1.970],
['20060125',1.813],
['20060206',1.881],
['20060207',2.067],
['20060208',2.201],
['20060209',2.104],
['20060210',2.112],
['20060213',2.052],
['20060214',2.075],
['20060215',2.142],
['20060216',2.201],
['20060217',2.187],
['20060220',2.090],
['20060221',2.082],
['20060222',2.127],
['20060223',2.104],
['20060224',2.067],
['20060227',2.060],
['20060228',2.045],
['20060301',2.060],
['20060302',1.993],
['20060303',1.963],
['20060306',1.963],
['20060307',1.888],
['20060308',1.896],
['20060309',1.866],
['20060310',1.873],
['20060313',1.925],
['20060314',1.903],
['20060315',1.903],
['20060316',1.948],
['20060317',1.948],
['20060320',1.978],
['20060321',1.985],
['20060322',2.000],
['20060323',2.201],
['20060324',2.104],
['20060327',2.075],
['20060328',2.045],
['20060329',2.060],
['20060330',1.985],
['20060331',1.970],
['20060403',1.978],
['20060404',2.075],
['20060405',2.037],
['20060406',2.022],
['20060407',2.060],
['20060420',2.119],
['20060421',2.067],
['20060424',2.090],
['20061117',1.950],
['20061121',2.040],
['20061122',1.980],
['20061123',2.030],
['20061124',2.040],
['20061127',2.050],
['20061128',2.040],
['20061129',2.030],
['20061130',2.090],
['20061201',2.050],
['20061204',2.060],
['20061205',2.130],
['20061206',2.090],
['20061207',2.300],
['20061208',2.250],
['20061211',2.270],
['20061212',2.230],
['20061213',2.180],
['20061214',2.230],
['20061215',2.200],
['20061218',2.140],
['20061219',2.120],
['20061220',2.170],
['20061221',2.160],
['20061222',2.170],
['20061225',2.180],
['20061226',2.110],
['20061227',2.040],
['20061228',1.970],
['20061229',1.980],
['20070104',1.960],
['20070105',2.010],
['20070108',2.080],
['20070109',2.140],
['20070110',2.170],
['20070111',2.240],
['20070112',2.140],
['20070115',2.250],
['20070116',2.420],
['20070117',2.510],
['20070118',2.550],
['20070119',2.530],
['20070122',2.660],
['20070123',2.620],
['20070124',2.680],
['20070125',2.560],
['20070126',2.500],
['20070129',2.570],
['20070130',2.540],
['20070131',2.440],
['20070201',2.420],
['20070202',2.390],
['20070205',2.410],
['20070206',2.480],
['20070207',2.500],
['20070208',2.550],
['20070209',2.570],
['20070212',2.630],
['20070213',2.660],
['20070214',2.930],
['20070215',3.220],
['20070216',3.390],
['20070226',3.730],
['20070227',3.450],
['20070228',3.800],
['20070301',4.110],
['20070302',3.920],
['20070305',3.730],
['20070306',3.640],
['20070307',3.730],
['20070308',3.980],
['20070309',3.910],
['20070313',4.300],
['20070314',4.730],
['20070315',4.860],
['20070316',4.440],
['20070319',4.410],
['20070320',4.730],
['20070321',4.680],
['20070322',4.650],
['20070323',4.800],
['20070326',5.080],
['20070327',5.220],
['20070328',5.100],
['20070329',4.930],
['20070330',5.040],
['20070402',5.200],
['20070403',5.100],
['20070404',5.040],
['20070405',5.100],
['20070406',5.050],
['20070409',5.000],
['20070410',5.500],
['20070412',5.300],
['20070413',5.020],
['20070417',5.380],
['20070418',5.730],
['20070419',5.690],
['20070420',5.910],
['20070423',6.200],
['20070424',6.110],
['20070425',5.900],
['20070426',5.770],
['20070427',5.360],
['20070710',5.090],
['20070711',4.840],
['20070712',4.600],
['20070713',4.370],
['20070716',4.150],
['20070717',3.940],
['20070718',3.740],
['20070719',3.790],
['20070720',3.860],
['20070723',3.940],
['20070724',3.870],
['20070725',3.940],
['20070726',4.140],
['20070727',4.220],
['20070730',4.230],
['20070731',4.140],
['20070801',3.930],
['20070802',3.920],
['20070803',3.850],
['20070806',3.900],
['20070807',3.890],
['20070808',3.920],
['20070809',4.120],
['20070810',4.330],
['20070813',4.170],
['20070814',4.380],
['20070815',4.360],
['20070816',4.420],
['20070817',4.340],
['20070820',4.460],
['20070821',4.680],
['20070822',4.910],
['20070823',4.960],
['20070824',4.930],
['20070827',5.000],
['20070828',4.760],
['20070829',4.540],
['20070830',4.770],
['20070831',5.010],
['20070903',5.260],
['20070904',5.350],
['20070905',5.620],
['20070906',5.900],
['20070907',6.200],
['20070910',6.040],
['20070911',5.740],
['20070913',6.030],
['20070914',6.330],
['20070917',6.650],
['20070918',6.980],
['20070919',6.700],
['20070920',6.650],
['20070921',6.700],
['20070924',6.370],
['20070925',6.050],
['20070926',5.930],
['20070927',6.010],
['20070928',6.310],
['20071008',6.000],
['20071009',6.150],
['20071010',5.920],
['20071011',5.630],
['20071012',5.450],
['20071015',5.280],
['20071016',5.540],
['20071017',5.600],
['20071018',5.330],
['20071019',5.450],
['20071022',5.380],
['20071023',5.510],
['20071024',5.240],
['20071025',4.980],
['20071026',4.730],
['20071029',4.640],
['20071030',4.850],
['20071031',5.090],
['20071101',4.990],
['20071102',5.000],
['20071105',5.150],
['20071106',5.090],
['20071107',4.930],
['20071108',5.180],
['20071109',5.440],
['20071112',5.170],
['20071113',5.000],
['20071114',5.110],
['20071115',5.070],
['20071116',4.990],
['20071119',5.030],
['20071120',5.160],
['20080102',5.420],
['20080103',5.690],
['20080104',5.970],
['20080107',6.270],
['20080108',6.580],
['20080109',6.910],
['20080110',7.260],
['20080111',7.620],
['20080115',8.000],
['20080116',8.400],
['20080117',8.820],
['20080118',9.260],
['20080121',9.720],
['20080122',9.230],
['20080123',9.280],
['20080124',9.740],
['20080125',10.230],
['20080128',10.370],
['20080129',9.980],
['20080130',9.480],
['20080131',9.520],
['20080204',9.770],
['20080205',9.280],
['20080213',8.820],
['20080214',9.260],
['20080215',9.270],
['20080218',9.220],
['20080219',9.170],
['20080220',9.070],
['20080221',9.520],
['20080222',10.000],
['20080226',9.500],
['20080227',9.270],
['20080228',8.980],
['20080229',8.950],
['20080303',9.000],
['20080304',9.100],
['20080305',8.940],
['20080306',8.930],
['20080307',8.900],
['20080310',8.940],
['20080311',9.040],
['20080312',9.380],
['20080313',8.910],
['20080314',8.460],
['20080317',8.040],
['20080318',7.640],
['20080319',7.260],
['20080320',7.500],
['20080321',7.490],
['20080324',7.120],
['20080325',7.290],
['20080326',6.960],
['20080327',6.610],
['20080328',6.410],
['20080331',6.730],
['20080401',7.070],
['20080402',7.420],
['20080403',7.790],
['20080407',8.180],
['20080409',8.590],
['20080410',8.160],
['20080411',8.410],
['20080414',7.990],
['20080415',7.650],
['20080416',7.270],
['20080417',7.630],
['20080418',7.310],
['20080421',7.360],
['20080423',7.580],
['20080425',7.960],
['20080428',7.560],
['20080429',7.180],
['20080430',7.200],
['20080505',7.130],
['20080506',7.490],
['20080507',7.650],
['20080508',7.470],
['20080509',7.170],
['20080512',7.000],
['20080513',6.860],
['20080514',7.040],
['20080515',7.090],
['20080516',6.760],
['20080519',6.740],
['20080520',6.400],
['20080521',6.250],
['20080522',6.300],
['20080523',6.170],
['20080526',5.870],
['20080527',6.160],
['20080528',6.380],
['20080529',6.150],
['20080530',6.460],
['20080602',6.780],
['20080702',6.440],
['20080703',6.120],
['20080704',5.810],
['20080707',5.710],
['20080708',5.640],
['20080709',5.920],
['20080710',6.220],
['20080711',6.530],
['20080714',6.550],
['20080715',6.220],
['20080716',5.910],
['20080717',5.720],
['20080718',5.930],
['20080721',6.140],
['20080722',6.050],
['20080723',6.050],
['20080724',6.110],
['20080725',5.860],
['20080728',5.900],
['20080729',6.060],
['20080730',5.890],
['20080731',5.650],
['20080801',5.630],
['20080804',5.540],
['20080805',5.260],
['20080806',5.050],
['20080807',4.920],
['20080808',4.670],
['20080811',4.440],
['20080812',4.220],
['20080813',4.020],
['20080814',4.040],
['20080815',4.240],
['20080818',4.030],
['20080819',3.930],
['20080820',4.130],
['20080821',4.000],
['20080822',3.850],
['20080825',3.920],
['20080826',3.720],
['20080827',3.530],
['20080828',3.360],
['20080829',3.500],
['20080901',3.330],
['20080902',3.190],
['20080903',3.220],
['20080904',3.270],
['20080905',3.110],
['20080908',3.270],
['20080909',3.430],
['20080910',3.320],
['20080911',3.170],
['20080912',3.230],
['20080916',3.070],
['20080917',2.930],
['20080918',2.820],
['20080919',2.960],
['20080922',3.090],
['20080923',2.940],
['20080924',2.870],
['20080925',3.010],
['20080926',3.020],
['20081006',2.870],
['20081007',2.750],
['20081008',2.630],
['20081009',2.580],
['20081010',2.450],
['20081013',2.370],
['20081014',2.290],
['20081015',2.180],
['20081016',2.070],
['20081017',2.000],
['20081020',2.060],
['20081021',2.060],
['20081022',2.020],
['20081023',1.980],
['20081024',1.990],
['20081027',1.890],
['20081028',1.810],
['20081029',1.800],
['20081030',1.790],
['20081031',1.880],
['20081103',1.860],
['20081104',1.830],
['20081105',1.910],
['20081106',1.810],
['20081107',1.870],
['20081110',1.950],
['20081111',1.910],
['20081112',1.930],
['20081113',2.030],
['20081114',2.090],
['20081117',2.190],
['20081118',2.080],
['20081119',2.180],
['20081120',2.200],
['20081121',2.160],
['20081124',2.060],
['20081125',1.990],
['20081126',2.090],
['20081127',2.080],
['20081128',2.090],
['20081201',2.100],
['20081202',2.130],
['20081203',2.240],
['20081204',2.220],
['20081205',2.260],
['20081208',2.370],
['20081209',2.490],
['20081210',2.610],
['20081211',2.720],
['20081212',2.580],
['20081215',2.450],
['20081216',2.430],
['20081217',2.450],
['20081218',2.520],
['20081219',2.570],
['20081222',2.500],
['20081223',2.390],
['20081224',2.310],
['20081225',2.340],
['20081226',2.460],
['20081229',2.500],
['20081230',2.380],
['20081231',2.280],
['20090105',2.310],
['20090106',2.410],
['20090107',2.420],
['20090108',2.320],
['20090109',2.410],
['20090112',2.510],
['20090113',2.450],
['20090114',2.500],
['20090115',2.500],
['20090116',2.530],
['20090119',2.660],
['20090120',2.640],
['20090121',2.590],
['20090122',2.650],
['20090123',2.650],
['20090202',2.780],
['20090203',2.850],
['20090204',2.870],
['20090205',3.010],
['20090206',3.160],
['20090209',3.230],
['20090210',3.300],
['20090211',3.360],
['20090212',3.290],
['20090213',3.350],
['20090216',3.520],
['20090217',3.690],
['20090218',3.510],
['20090219',3.330],
['20090220',3.500],
['20090223',3.550],
['20090224',3.370],
['20090225',3.260],
['20090226',3.140],
['20090227',3.020],
['20090302',3.010],
['20090303',2.960],
['20090304',3.110],
['20090305',3.150],
['20090306',3.310],
['20090309',3.160],
['20090310',3.220],
['20090311',3.140],
['20090312',3.160],
['20090313',3.230],
['20090316',3.250],
['20090317',3.290],
['20090318',3.310],
['20090319',3.380],
['20090320',3.390],
['20090323',3.530],
['20090325',3.710],
['20090326',3.900],
['20090327',4.080],
['20090330',3.980],
['20090331',3.930],
['20090401',4.110],
['20090402',4.000],
['20090403',3.900],
['20090407',3.820],
['20090408',3.860],
['20090409',3.920],
['20090410',4.120],
['20090413',4.330],
['20090414',4.550],
['20090415',4.330],
['20090416',4.490],
['20090417',4.390],
['20090420',4.440],
['20090421',4.660],
['20090422',4.490],
['20090423',4.510],
['20090424',4.470],
['20090427',4.250],
['20090428',4.100],
['20090429',4.240],
['20090430',4.270],
['20090504',4.480],
['20090505',4.560],
['20090506',4.680],
['20090507',4.490],
['20090508',4.710],
['20090511',4.740],
['20090512',4.980],
['20090513',5.000],
['20090514',5.150],
['20090515',5.190],
['20090518',5.230],
['20090519',5.070],
['20090520',5.060],
['20090521',4.860],
['20090522',4.860],
['20090525',4.980],
['20090526',5.160],
['20090527',5.410],
['20090601',5.610],
['20090602',5.520],
['20090603',5.520],
['20090604',5.430],
['20090605',5.450],
['20090608',5.410],
['20090609',5.430],
['20090610',5.520],
['20090611',5.540],
['20090612',5.340],
['20090615',5.340],
['20090616',5.380],
['20090617',5.310],
['20090618',5.320],
['20090619',5.130],
['20090622',5.180],
['20090623',5.320],
['20090624',5.230],
['20090625',5.180],
['20090626',5.140],
['20090629',5.230],
['20090630',5.240],
['20090701',5.330],
['20090702',5.400],
['20090703',5.550],
['20090706',5.470],
['20090707',5.730],
['20090708',5.780],
['20090709',6.070],
['20090710',6.310],
['20090713',6.240],
['20090714',6.550],
['20090715',6.880],
['20090716',6.950],
['20090717',7.150],
['20090720',7.490],
['20090721',7.120],
['20090722',6.760],
['20090723',6.480],
['20090724',6.290],
['20090727',6.420],
['20090728',6.670],
['20090729',6.340],
['20090730',6.120],
['20090731',6.300],
['20090803',6.300],
['20090804',6.450],
['20090805',6.300],
['20090806',6.100],
['20090807',6.010],
['20090810',6.020],
['20090811',6.060],
['20090812',5.760],
['20090813',5.470],
['20090814',5.210],
['20090817',4.950],
['20090818',4.840],
['20090819',5.010],
['20090820',5.130],
['20090821',5.150],
['20090824',5.190],
['20090825',5.030],
['20090826',5.190],
['20090827',5.450],
['20090828',5.380],
['20090831',5.110],
['20090901',4.860],
['20090902',4.990],
['20090903',5.110],
['20090904',5.120],
['20090907',5.230],
['20090908',5.260],
['20090909',5.260],
['20090910',5.270],
['20090911',5.320],
['20090914',5.430],
['20090915',5.620],
['20090916',5.520],
['20090917',5.630],
['20090918',5.530],
['20090921',5.510],
['20090922',5.310],
['20090923',5.090],
['20090924',5.090],
['20090925',5.040],
['20090928',4.790],
['20090929',4.600],
['20090930',4.730],
['20091009',4.960],
['20091012',4.940],
['20091013',5.020],
['20091014',5.120],
['20091015',5.120],
['20091016',5.080],
['20091019',5.190],
['20091020',5.340],
['20091021',5.270],
['20091022',5.220],
['20091023',5.280],
['20091026',5.250],
['20091027',5.140],
['20091028',5.130],
['20091029',4.950],
['20091030',5.200],
['20091102',5.460],
['20091103',5.730],
['20091104',5.980],
['20091105',6.140],
['20091106',6.000],
['20091109',5.900],
['20091110',5.970],
['20091111',6.000],
['20091112',6.090],
['20091113',6.390],
['20091116',6.390],
['20091117',6.420],
['20091118',6.340],
['20091119',6.420],
['20091120',6.500],
['20091123',6.700],
['20091124',6.370],
['20091125',6.330],
['20091126',6.020],
['20091127',5.790],
['20091130',6.010],
['20091201',6.080],
['20091202',6.130],
['20091203',6.040],
['20091204',5.900],
['20091207',6.040],
['20091208',6.340],
['20091209',6.380],
['20091210',6.440],
['20091211',6.370],
['20091214',6.180],
['20091215',6.140],
['20091216',6.040],
['20091217',5.820],
['20091218',5.590],
['20091221',5.730],
['20091222',5.750],
['20091223',5.730],
['20091224',5.840],
['20091225',5.880],
['20091228',5.950],
['20091229',6.250],
['20091230',6.200],
['20091231',6.250],
['20100104',6.260],
['20100105',6.260],
['20100106',6.190],
['20100107',6.150],
['20100108',6.190],
['20100111',6.240],
['20100112',6.290],
['20100113',6.110],
['20100114',6.090],
['20100115',6.270],
['20100118',6.580],
['20100119',6.850],
['20100120',6.690],
['20100121',6.910],
['20100122',6.850],
['20100125',6.890],
['20100126',6.890],
['20100127',6.840],
['20100128',6.840],
['20100129',6.910],
['20100201',7.120],
['20100202',7.010],
['20100203',7.140],
['20100204',7.100],
['20100205',6.820],
['20100208',6.980],
['20100209',6.780],
['20100210',6.850],
['20100211',6.900],
['20100212',6.900],
['20100222',7.070],
['20100223',7.420],
['20100224',7.450],
['20100225',7.560],
['20100226',7.620],
['20100301',7.530],
['20100302',7.460],
['20100303',7.500],
['20100304',7.350],
['20100305',7.370],
['20100308',7.380],
['20100309',7.600],
['20100310',7.500],
['20100311',7.450],
['20100312',7.350],
['20100315',7.110],
['20100316',7.070],
['20100317',7.040],
['20100318',6.910],
['20100319',6.930],
['20100322',6.910],
['20100323',7.150],
['20100324',7.040],
['20100325',7.070],
['20100326',7.110],
['20100329',7.130],
['20100331',7.080],
['20100401',7.280],
['20100402',7.210],
['20100406',6.930],
['20100407',6.910],
['20100408',6.800],
['20100409',6.890],
['20100412',6.710],
['20100413',6.850],
['20100414',6.810],
['20100415',6.910],
['20100416',6.770],
['20100419',6.430],
['20100421',6.530],
['20100422',6.670],
['20100423',6.520],
['20100426',6.410],
['20100427',6.120],
['20100428',6.140],
['20100429',6.440],
['20100528',6.120],
['20100531',6.140],
['20100601',5.830],
['20100602',5.850],
['20100603',5.980],
['20100604',6.020],
['20100607',5.720],
['20100608',5.440],
['20100609',5.420],
['20100610',5.340],
['20100611',5.370],
['20100617',5.100],
['20100618',4.980],
['20100621',5.120],
['20100622',5.110],
['20100623',4.950],
['20100624',5.010],
['20100625',4.900],
['20100628',4.660],
['20100629',4.430],
['20100630',4.210],
['20100701',4.000],
['20100702',4.080],
['20100705',3.990],
['20100706',4.190],
['20100707',4.200],
['20100708',4.240],
['20100709',4.320],
['20100712',4.540],
['20100713',4.540],
['20100714',4.540],
['20100715',4.760],
['20100716',4.680],
['20100719',4.720],
['20100720',4.800],
['20100721',4.750],
['20100722',4.770],
['20100723',4.860],
['20100726',5.010],
['20100727',5.030],
['20100728',5.090],
['20100729',5.010],
['20100730',4.960],
['20100802',5.070],
['20100803',5.170],
['20100804',5.150],
['20100805',5.220],
['20100806',5.260],
['20100809',5.520],
['20100810',5.440],
['20100811',5.530],
['20100812',5.500],
['20100813',5.700],
['20100816',5.740],
['20100817',5.770],
['20100818',5.480],
['20100819',5.450],
['20100820',5.340],
['20100823',5.380],
['20100824',5.420],
['20100825',5.410],
['20100826',5.490],
['20100827',5.680],
['20100830',5.700],
['20100831',5.700],
['20100901',5.510],
['20100902',5.530],
['20100903',5.530],
['20100906',5.460],
['20100907',5.490],
['20100908',5.400],
['20100909',5.220],
['20100910',5.270],
['20100913',5.300],
['20100914',5.570],
['20100915',5.530],
['20100916',5.300],
['20100917',5.330],
['20100920',5.270],
['20100921',5.360],
['20100927',5.420],
['20100928',5.290],
['20100929',5.190],
['20100930',5.280],
['20101008',5.390],
['20101011',5.430],
['20101012',5.320],
['20101013',5.410],
['20101014',5.150],
['20101015',5.140],
['20101018',5.000],
['20101019',5.060],
['20101020',5.310],
['20101021',5.310],
['20101022',5.430],
['20101025',5.540],
['20101026',5.440],
['20101027',5.410],
['20101028',5.400],
['20101029',5.470],
['20101101',5.450],
['20101102',5.520],
['20101103',5.750],
['20101104',5.750],
['20101105',6.020],
['20101108',6.320],
['20101109',6.230],
['20101110',6.360],
['20101111',6.220],
['20101112',5.910],
['20101115',5.770],
['20101116',5.490],
['20101117',5.460],
['20101118',5.550],
['20101119',5.630],
['20101122',5.910],
['20101123',6.210],
['20101124',6.420],
['20101130',6.110],
['20101201',6.420],
['20101202',6.390],
['20101203',6.590],
['20101207',6.920],
['20101208',7.270],
['20101209',7.030],
['20101210',6.790],
['20101213',7.130],
['20101214',7.290],
['20101215',7.340],
['20101216',7.500],
['20101217',7.510],
['20101220',7.230],
['20101221',7.590],
['20101222',7.480],
['20101223',7.170],
['20101224',7.060],
['20101227',6.790],
['20101228',6.450],
['20101229',6.520],
['20101230',6.850],
['20101231',6.960],
['20110104',6.970],
['20110105',7.020],
['20110106',6.910],
['20110107',6.930],
['20110110',6.900],
['20110111',6.730],
['20110112',6.800],
['20110113',6.820],
['20110114',7.160],
['20110117',7.220],
['20110118',7.000],
['20110119',7.000],
['20110120',6.780],
['20110121',6.840],
['20110124',6.890],
['20110125',6.690],
['20110126',6.710],
['20110127',6.550],
['20110128',6.600],
['20110131',6.750],
['20110201',6.790],
['20110209',6.910],
['20110210',6.930],
['20110211',6.990],
['20110214',6.950],
['20110215',7.050],
['20110216',7.080],
['20110217',6.980],
['20110218',6.900],
['20110221',7.090],
['20110222',7.120],
['20110223',7.320],
['20110224',7.200],
['20110225',7.300],
['20110228',7.310],
['20110301',7.460],
['20110302',7.770],
['20110303',7.460],
['20110304',7.830],
['20110307',7.850],
['20110308',8.120],
['20110309',8.130],
['20110310',8.000],
['20110311',7.840],
['20110314',7.750],
['20110315',7.680],
['20110316',7.900],
['20110317',7.830],
['20110318',7.840],
['20110321',7.870],
['20110322',7.880],
['20110323',8.060],
['20110324',7.960],
['20110325',7.930],
['20110328',7.800],
['20110329',7.490],
['20110330',7.660],
['20110331',7.450],
['20110401',7.650],
['20110406',7.770],
['20110407',8.070],
['20110408',8.020],
['20110411',8.140],
['20110412',7.960],
['20110413',8.360],
['20110414',8.780],
['20110415',9.080],
['20110418',9.140],
['20110419',8.800],
['20110420',8.360],
['20110421',7.970],
['20110422',7.790],
['20110425',7.840],
['20110426',7.450],
['20110427',7.240],
['20110428',7.220],
['20110429',7.450],
['20110503',7.500],
['20110506',7.530],
['20110509',7.440],
['20110510',7.500],
['20110511',7.510],
['20110512',7.300],
['20110513',7.350],
['20110516',7.720],
['20110517',7.670],
['20110518',7.740],
['20110519',7.610],
['20110520',7.910],
['20110523',7.510],
['20110524',7.520],
['20110525',7.260],
['20110526',7.360],
['20110527',7.040],
['20110530',6.900],
['20110531',7.000],
['20110601',7.150],
['20110602',6.910],
['20110603',7.040],
['20110607',7.110],
['20110609',7.060],
['20110610',7.150],
['20110613',7.150],
['20110614',7.220],
['20110615',7.150],
['20110616',7.120],
['20110617',7.060],
['20110620',6.710],
['20110621',6.710],
['20110622',6.750],
['20110623',6.820],
['20110624',6.930],
['20110627',7.130],
['20110628',7.100],
['20110629',7.000],
['20110630',7.040],
['20110701',7.080],
['20110704',7.170],
['20110705',7.240],
['20110706',7.170],
['20110707',7.130],
['20110708',7.180],
['20110711',7.540],
['20110712',7.660],
['20110713',7.780],
['20110714',7.800],
['20110715',8.010],
['20110718',8.050],
['20110719',7.830],
['20110720',7.920],
['20110721',8.060],
['20110722',8.210],
['20110725',7.810],
['20110726',7.700],
['20110727',7.770],
['20110728',8.140],
['20110729',8.040],
['20110801',7.950],
['20110802',7.820],
['20110803',7.760],
['20110804',7.970],
['20110805',7.710],
['20110808',7.320],
['20110809',7.210],
['20110810',7.240],
['20110811',7.280],
['20110812',7.350],
['20110815',7.390],
['20110816',7.320],
['20110817',7.180],
['20110818',7.040],
['20110819',7.030],
['20110822',6.960],
['20110823',7.140],
['20110824',7.130],
['20110825',7.200],
['20110826',7.190],
['20110829',7.070],
['20110830',7.110],
['20110831',7.070],
['20110901',7.160],
['20110902',7.110],
['20110905',6.910],
['20110906',6.940],
['20110907',7.010],
['20110908',6.950],
['20110909',7.010],
['20110913',6.910],
['20110914',6.960],
['20110915',6.970],
['20110916',7.010],
['20110919',6.870],
['20110920',7.210],
['20110921',7.380],
['20110922',7.230],
['20110923',7.100],
['20110926',7.010],
['20110927',7.140],
['20110928',7.050],
['20110929',6.710],
['20110930',6.740],
['20111010',6.730],
['20111011',6.610],
['20111012',6.740],
['20111013',6.730],
['20111014',6.830],
['20111017',6.880],
['20111018',6.620],
['20111019',6.660],
['20111020',6.330],
['20111021',6.210],
['20111024',6.130],
['20111115',6.440],
['20111116',6.760],
['20111117',7.100],
['20111118',7.460],
['20111121',7.090],
['20111122',7.040],
['20111123',6.900],
['20111124',6.950],
['20111125',6.670],
['20111128',6.620],
['20111129',6.730],
['20111130',6.520],
['20111201',6.850],
['20111205',6.510],
['20111206',6.270],
['20111207',6.330],
['20111208',6.300],
['20111209',6.260],
['20111212',6.310],
['20111213',6.010],
['20111214',5.710],
['20111215',5.420],
['20111216',5.350],
['20111219',5.160],
['20111220',5.300],
['20111221',5.180],
['20111222',5.020],
['20111223',5.080],
['20111226',5.130],
['20111227',5.030],
['20111228',4.780],
['20111229',4.540],
['20111230',4.570],
['20120104',4.670],
['20120105',4.440],
['20120106',4.470],
['20120109',4.610],
['20120110',4.700],
['20120111',4.700],
['20120112',4.700],
['20120113',4.540],
['20120116',4.370],
['20120117',4.590],
['20120118',4.520],
['20120119',4.640],
['20120120',4.770],
['20120130',4.780],
['20120131',4.900],
['20120201',4.930],
['20120202',4.950],
['20120203',5.010],
['20120206',5.100],
['20120207',4.880],
['20120208',4.980],
['20120209',4.980],
['20120210',5.030],
['20120213',5.060],
['20120214',5.310],
['20120215',5.380],
['20120216',5.340],
['20120217',5.290],
['20120220',5.550],
['20120221',5.540],
['20120222',5.650],
['20120223',5.930],
['20120224',6.050],
['20120227',6.120],
['20120228',6.070],
['20120229',6.140],
['20120301',6.090],
['20120302',6.150],
['20120305',6.070],
['20120306',5.830],
['20120307',6.080],
['20120308',6.160],
['20120309',6.100],
['20120312',6.150],
['20120313',6.120],
['20120314',6.030],
['20120315',5.890],
['20120316',5.970],
['20120319',6.050],
['20120320',5.920],
['20120321',5.900],
['20120322',5.910],
['20120323',5.910],
['20120327',5.770],
['20120328',5.480],
['20120329',5.310],
['20120330',5.290],
['20120405',5.550],
['20120406',5.610],
['20120409',5.560],
['20120410',5.550],
['20120411',5.590],
['20120412',5.660],
['20120413',5.710],
['20120416',5.720],
['20120417',5.590],
['20120418',5.630],
['20120419',5.640],
['20120420',5.710],
['20120423',5.560],
['20120424',5.280],
['20120425',5.290],
['20120426',5.200],
['20120427',5.040],
['20120502',4.790],
['20120503',4.910],
['20120504',5.000],
['20120507',5.250],
['20120509',5.170],
['20120510',5.120],
['20120511',5.080],
['20120514',5.010],
['20120515',4.940],
['20120516',4.780],
['20120517',4.960],
['20120518',4.870],
['20120521',4.820],
['20120522',4.890],
['20120523',5.130],
['20120524',5.150],
['20120525',4.990],
['20120528',5.050],
['20120529',5.080],
['20120530',5.090],
['20120531',5.130],
['20120601',5.150],
['20120604',4.930],
['20120605',4.980],
['20120606',4.920],
['20120607',4.880],
['20120608',4.920],
['20120611',4.990],
['20120612',5.040],
['20120613',5.070],
['20120614',5.050],
['20120615',5.030],
['20120618',5.140],
['20120619',5.140],
['20120620',5.080],
['20120621',4.980],
['20120625',4.790],
['20120626',4.790],
['20120627',4.780],
['20120628',4.730],
['20120629',4.790],
['20120702',4.750],
['20120703',4.750],
['20120704',4.730],
['20120705',4.490],
['20120706',4.530],
['20120709',4.440],
['20120710',4.360],
['20120711',4.360],
['20120712',4.400],
['20120713',4.400],
['20120716',4.180],
['20120717',4.360],
['20120718',4.350],
['20120719',4.470],
['20120720',4.520],
['20120723',4.480],
['20120724',4.510],
['20120725',4.450],
['20120726',4.510],
['20120727',4.500],
['20120730',4.280],
['20120731',4.070],
['20120801',3.950],
['20120802',4.150],
['20120803',4.180],
['20120806',4.220],
['20120807',4.430],
['20120808',4.560],
['20120809',4.750],
['20120810',4.740],
['20120813',4.680],
['20120814',4.600],
['20120815',4.650],
['20120816',4.560],
['20120817',4.490],
['20120820',4.500],
['20120821',4.550],
['20120822',4.680],
['20120823',4.840],
['20120824',4.680],
['20120827',4.860],
['20120828',4.790],
['20120829',4.700],
['20120830',4.600],
['20120831',4.790],
['20120903',4.770],
['20120904',5.010],
['20120905',4.910],
['20120906',4.910],
['20120907',5.000],
['20120910',4.990],
['20120911',5.140],
['20120912',5.110],
['20120913',5.060],
['20120914',5.010],
['20120917',5.050],
['20120918',5.080],
['20120919',5.070],
['20120920',4.820],
['20120921',4.680],
['20120924',4.600],
['20120925',4.610],
['20120926',4.540],
['20120927',4.670],
['20120928',4.810],
['20121008',4.870],
['20121009',5.070],
['20121010',5.050],
['20121011',5.010],
['20121012',4.990],
['20121015',5.060],
['20121016',5.020],
['20121017',5.020],
['20121018',5.080],
['20121019',5.330],
['20121022',5.120],
['20121023',5.000],
['20121024',5.030],
['20121113',4.990],
['20121114',4.740],
['20121115',4.750],
['20121116',4.660],
['20121119',4.680],
['20121120',4.600],
['20121121',4.580],
['20121122',4.470],
['20121123',4.520],
['20121126',4.430],
['20121127',4.210],
['20121128',4.110],
['20121129',4.060],
['20121130',4.130],
['20121203',3.940],
['20121204',4.020],
['20121205',4.140],
['20121206',4.140],
['20121207',4.210],
['20121210',4.250],
['20121211',4.210],
['20121212',4.210],
['20121213',4.160],
['20121214',4.360],
['20121217',4.370],
['20121218',4.400],
['20121219',4.370],
['20121220',4.320],
['20121221',4.360],
['20121224',4.580],
['20121225',4.650],
['20121226',4.780],
['20121227',4.800],
['20121228',5.040],
['20121231',5.290],
['20130104',5.480],
['20130107',5.750],
['20130108',5.730],
['20130109',5.800],
['20130110',5.700],
['20130111',5.740],
['20130114',6.000],
['20130115',6.070],
['20130116',6.200],
['20130117',6.110],
['20130118',6.400],
['20130121',6.710],
['20130122',6.950],
['20130123',6.610],
['20130124',6.820],
['20130131',6.410],
['20130201',6.140],
['20130204',5.780],
['20130205',5.790],
['20130206',5.810],
['20130207',5.730],
['20130208',5.770],
['20130218',6.030],
['20130219',5.890],
['20130220',5.870],
['20130221',5.600],
['20130222',5.660],
['20130225',5.660],
['20130226',5.460],
['20130227',5.450],
['20130228',5.630],
['20130301',5.990],
['20130304',5.710],
['20130305',5.910],
['20130306',5.970],
['20130307',5.810],
['20130308',5.850],
['20130311',5.780],
['20130312',5.490],
['20130313',5.520],
['20130314',5.530],
['20130315',5.630],
['20130318',5.450],
['20130319',5.610],
['20130320',5.780],
['20130321',5.930],
['20130322',5.950],
['20130325',5.960],
['20130326',6.140],
['20130327',5.940],
['20130328',5.560],
['20130329',5.560],
['20130401',5.580],
['20130402',5.470],
['20130403',5.340],
['20130408',5.210],
['20130409',5.310],
['20130410',5.420],
['20130411',5.420],
['20130412',5.300],
['20130415',5.330],
['20130416',5.450],
['20130417',5.410],
['20130418',5.390],
['20130419',5.460],
['20130422',5.130],
['20130423',5.070],
['20130424',5.090],
['20130425',4.950],
['20130426',4.870],
['20130502',4.780],
['20130503',4.910],
['20130506',4.920],
['20130507',4.950],
['20130508',4.930],
['20130509',4.870],
['20130510',4.930],
['20130513',4.950],
['20130514',4.840],
['20130515',4.890],
['20130516',4.950],
['20130517',5.120],
['20130520',5.130],
['20130521',5.100],
['20130522',5.190],
['20130523',5.060],
['20130524',5.120],
['20130527',5.090],
['20130528',5.260],
['20130529',5.430],
['20130530',5.370],
['20130531',5.300],
['20130603',5.210],
['20130604',5.080],
['20130605',5.100],
['20130606',4.930],
['20130607',4.840],
['20130613',4.600],
['20130614',4.660],
['20130617',4.610],
['20130618',4.620],
['20130619',4.560],
['20130620',4.350],
['20130621',4.270],
['20130624',3.930],
['20130625',3.940],
['20130626',3.930],
['20130627',3.800],
['20130628',3.840],
['20130701',3.940],
['20130702',3.900],
['20130703',3.900],
['20130704',4.030],
['20130705',4.010],
['20130708',3.970],
['20130709',4.370],
['20130710',4.710],
['20130711',4.620],
['20130712',4.520],
['20130715',4.580],
['20130716',4.510],
['20130717',4.390],
['20130718',4.240],
['20130719',4.180],
['20130722',4.200],
['20130723',4.300],
['20130724',4.310],
['20130725',4.270],
['20130726',4.300],
['20130729',4.150],
['20130730',4.170],
['20130731',4.060],
['20130801',4.120],
['20130802',4.150],
['20130805',4.180],
['20130806',4.280],
['20130807',4.230],
['20130808',4.390],
['20130809',4.300],
['20130812',4.350],
['20130813',4.400],
['20130814',4.330],
['20130815',4.270],
['20130816',4.230],
['20130819',4.250],
['20130820',4.200],
['20130821',4.240],
['20130822',4.200],
['20130823',4.120],
['20130826',4.220],
['20130827',4.270],
['20130828',4.340],
['20130829',4.280],
['20130830',4.250],
['20130902',4.410],
['20130903',4.390],
['20130904',4.350],
['20130905',4.330],
['20130906',4.480],
['20130909',4.500],
['20130910',4.590],
['20130911',4.500],
['20130912',4.420],
['20130913',4.500],
['20130916',4.380],
['20130917',4.230],
['20130918',4.250],
['20130923',4.350],
['20130924',4.320],
['20130925',4.480],
['20130926',4.450],
['20130927',4.450],
['20130930',4.470],
['20131008',4.430],
['20131009',4.690],
['20131010',4.660],
['20131011',4.810],
['20131014',4.910],
['20131015',4.910],
['20131016',4.880],
['20131017',4.880],
['20131018',4.800],
['20131021',4.980],
['20131022',5.010],
['20131023',5.040],
['20131024',4.990],
['20131025',5.020],
['20131028',5.180],
['20131029',5.130],
['20131030',5.120],
['20131031',4.930],
['20131101',4.960],
['20131104',4.980],
['20131105',4.970],
['20131106',4.870],
['20131107',4.980],
['20131108',4.960],
['20131111',4.950],
['20131112',4.950],
['20131113',4.950],
['20131114',5.010],
['20131115',5.380],
['20131118',5.480],
['20131119',5.460],
['20131120',5.570],
['20131121',5.580],
['20131122',5.550],
['20131125',5.500],
['20131126',5.670],
['20131127',5.630],
['20131128',5.590],
['20131129',5.530],
['20131202',5.430],
['20131203',5.570],
['20131204',5.650],
['20131205',5.630],
['20131206',5.590],
['20131209',5.560],
['20131210',5.520],
['20131211',5.460],
['20131212',5.470],
['20131213',5.480],
['20131216',5.460],
['20131217',5.440],
['20131218',5.660],
['20131219',5.570],
['20131220',5.290],
['20131223',5.270],
['20131224',4.930],
['20131225',4.730],
['20131226',4.650],
['20131227',4.810],
['20131230',4.760],
['20131231',4.790],
['20140102',4.640],
['20140103',4.410],
['20140106',4.210],
['20140107',4.240],
['20140108',4.220],
['20140109',4.080],
['20140110',3.940],
['20140113',3.950],
['20140114',4.070],
['20140115',4.080],
['20140116',4.020],
['20140117',3.960],
['20140120',3.850],
['20140121',3.910],
['20140122',4.020],
['20140123',4.010],
['20140124',4.060],
['20140127',3.940],
['20140128',4.030],
['20140129',4.040],
['20140130',3.940],
['20140207',3.960],
['20140210',4.060],
['20140211',4.120],
['20140212',4.180],
['20140213',4.100],
['20140214',4.130],
['20140217',4.160],
['20140218',4.370],
['20140219',4.390],
['20140220',4.370],
['20140221',4.240],
['20140224',4.110],
['20140225',3.920],
['20140226',3.970],
['20140227',3.920],
['20140228',3.970],
['20140303',4.030],
['20140304',4.040],
['20140305',4.030],
['20140306',4.000],
['20140307',3.930],
['20140310',3.750],
['20140311',3.760],
['20140312',4.140],
['20140313',4.270],
['20140314',4.110],
['20140317',4.110],
['20140318',4.040],
['20140319',4.440],
['20140320',4.380],
['20140321',4.410],
['20140324',4.850],
['20140325',5.230],
['20140326',5.050],
['20140327',4.940],
['20140328',4.750],
['20140331',4.570],
['20140401',4.770],
['20140402',4.820],
['20140403',4.560],
['20140404',4.550],
['20140408',4.440],
['20140409',4.480],
['20140410',4.440],
['20140411',4.440],
['20140414',4.510],
['20140415',4.350],
['20140416',4.330],
['20140417',4.260],
['20140418',4.290],
['20140421',4.270],
['20140422',4.160],
['20140423',4.090],
['20140424',3.960],
['20140425',3.930],
['20140428',3.870],
['20140429',3.940],
['20140430',3.990],
['20140505',4.000],
['20140506',4.010],
['20140507',3.930],
['20140508',3.980],
['20140509',3.900],
['20140512',4.100],
['20140513',4.080],
['20140514',4.040],
['20140515',3.950],
['20140516',3.940],
['20140519',3.890],
['20140520',3.920],
['20140521',3.990],
['20140522',4.040],
['20140523',4.040],
['20140526',4.020],
['20140527',3.960],
['20140528',3.980],
['20140529',3.900],
['20140530',3.980],
['20140603',3.990],
['20140604',3.930],
['20140605',3.940],
['20140606',3.950],
['20140609',3.910],
['20140610',3.930],
['20140611',3.970],
['20140612',3.980],
['20140613',3.990],
['20140616',4.000],
['20140617',3.950],
['20140618',3.920],
['20140619',3.830],
['20140620',3.870],
['20140623',3.840],
['20140624',3.880],
['20140625',3.900],
['20140626',3.910],
['20140627',3.930],
['20140630',3.960],
['20140701',3.980],
['20140702',4.000],
['20140703',4.010],
['20140704',4.090],
['20140707',4.020],
['20140708',4.020],
['20140709',3.980],
['20140710',4.020],
['20140711',4.060],
['20140714',4.180],
['20140715',4.370],
['20140716',4.390],
['20140717',4.440],
['20140718',4.360],
['20140721',4.370],
['20140722',4.410],
['20140723',4.380],
['20140724',4.380],
['20140725',4.730],
['20140728',4.640],
['20140729',4.590],
['20140730',4.610],
['20140731',4.630],
['20140801',4.570],
['20140804',4.620],
['20140805',4.600],
['20140806',4.590],
['20140807',4.530],
['20140808',4.570],
['20140811',5.010],
['20140812',5.410],
['20140813',5.310],
['20140814',5.220],
['20140815',5.360],
['20140818',5.240],
['20140819',5.140],
['20140820',5.170],
['20140821',5.090],
['20140822',5.110],
['20140825',5.130],
['20140826',5.110],
['20140827',5.120],
['20140828',5.150],
['20140829',5.230],
['20140901',5.240],
['20140902',5.190],
['20140903',5.250],
['20140904',5.190],
['20140905',5.120],
['20140909',5.060],
['20140910',5.180],
['20140911',5.100],
['20140912',5.170],
['20140915',5.200],
['20140916',5.240],
['20140917',5.170],
['20140918',5.170],
['20140919',5.190],
['20140922',5.150],
['20140923',5.160],
['20140924',5.190],
['20140925',5.210],
['20140926',5.210],
['20140929',5.310],
['20140930',5.610],
['20141008',5.560],
['20141009',5.520],
['20141010',5.420],
['20141013',5.720],
['20141014',5.590],
['20141015',5.610],
['20141016',5.390],
['20141017',5.200],
['20141020',5.220],
['20141021',5.260],
['20141022',5.120],
['20141023',4.890],
['20141024',4.950],
['20141027',5.000],
['20141028',5.180],
['20141029',5.210],
['20141030',5.190],
['20141031',5.240],
['20141103',5.480],
['20141104',5.470],
['20141105',5.440],
['20141106',5.500],
['20141107',5.400],
['20141110',5.390],
['20141111',5.200],
['20141112',5.200],
['20141113',5.120],
['20141114',5.120],
['20141117',5.220],
['20141118',5.140],
['20141119',5.170],
['20141120',5.150],
['20141121',5.240],
['20141124',5.370],
['20141125',5.370],
['20141126',5.360],
['20141127',5.400],
['20141128',5.300],
['20141201',5.350],
['20141202',5.390],
['20141203',5.320],
['20141204',5.380],
['20141205',5.080],
['20141208',5.090],
['20141209',4.970],
['20141210',5.040],
['20141211',5.150],
['20141212',5.150],
['20141215',5.160],
['20141216',5.110],
['20141217',5.160],
['20141218',5.080],
['20141219',5.040],
['20141222',4.690],
['20141223',4.680],
['20141224',4.750],
['20141225',4.830],
['20141226',4.800],
['20141229',4.690],
['20141230',4.540],
['20141231',4.610],
['20150105',4.860],
['20150106',4.850],
['20150107',5.080],
['20150108',5.050],
['20150109',5.000],
['20150112',4.840],
['20150113',4.820],
['20150114',5.300],
['20150115',5.490],
['20150116',5.440],
['20150119',5.190],
['20150120',5.360],
['20150121',5.430],
['20150122',5.350],
['20150123',5.610],
['20150126',5.610],
['20150127',5.510],
['20150128',5.540],
['20150129',5.540],
['20150130',5.160],
['20150202',5.030],
['20150203',5.130],
['20150204',5.090],
['20150205',5.030],
['20150206',5.020],
['20150209',5.080],
['20150210',5.030],
['20150211',5.040],
['20150212',5.020],
['20150213',5.110],
['20150216',5.260],
['20150217',5.270],
['20150225',5.290],
['20150226',5.480],
['20150227',5.550],
['20150302',5.550],
['20150303',5.420],
['20150304',5.510],
['20150305',5.580],
['20150306',5.930],
['20150309',5.950],
['20150310',6.000],
['20150311',6.270],
['20150312',6.110],
['20150313',6.070],
['20150316',6.340],
['20150317',6.370],
['20150318',6.580],
['20150319',6.620],
['20150320',7.000],
['20150323',7.150],
['20150324',7.010],
['20150325',7.020],
['20150326',6.860],
['20150327',6.900],
['20150720',6.560],
['20150721',6.230],
['20150722',5.920],
['20150723',6.150],
['20150724',5.840],
['20150727',5.550],
['20150728',5.270],
['20150729',5.170],
['20150730',5.290],
['20150731',5.070],
['20150803',4.860],
['20150804',5.090],
['20150805',4.990],
['20150806',4.930],
['20150807',5.180],
['20150810',5.440],
['20150811',5.410],
['20150812',5.420],
['20150813',5.530],
['20150814',5.800],
['20150817',5.900],
['20150818',5.610],
['20150819',5.500],
['20150820',5.400],
['20150821',5.130],
['20150824',4.870],
['20150825',4.630],
['20150826',4.400],
['20150827',4.280],
['20150828',4.490],
['20150831',4.270],
['20150901',4.260],
['20150902',4.090],
['20150907',4.180],
['20150908',4.340],
['20150909',4.440],
['20150910',4.450],
['20150911',4.480],
['20150914',4.260],
['20150915',4.050],
['20150916',4.240],
['20150917',4.090],
['20150918',4.120],
['20150921',4.290],
['20150922',4.290],
['20150923',4.380],
['20150924',4.390],
['20150925',4.170],
['20150928',4.250],
['20150929',4.380],
['20150930',4.390],
['20151008',4.470],
['20151009',4.580],
['20151012',4.740],
['20151013',4.780],
['20151014',4.660],
['20151015',4.780],
['20151016',4.820],
['20151019',4.850],
['20151020',4.970],
['20151021',4.820],
['20151022',5.040],
['20151023',5.140],
['20151026',5.220],
['20151027',5.270],
['20151028',5.260],
['20151029',5.240],
['20151030',5.470],
['20151102',5.480],
['20151103',5.570],
['20151104',5.850],
['20151105',5.800],
['20151106',5.950],
['20151109',6.130],
['20151110',6.440],
['20151111',6.750],
['20151112',6.420],
['20151113',6.130],
['20151116',6.440],
['20151117',6.520],
['20151118',6.690],
['20151119',6.750],
['20151120',6.850],
['20151123',7.190],
['20151124',7.550],
['20151125',7.540],
['20151126',7.540],
['20151127',7.160],
['20151130',6.940],
['20151201',6.940],
['20151202',7.120],
['20151203',7.380],
['20151204',7.540],
['20151207',7.620],
['20151208',7.240],
['20151209',6.970],
['20151210',6.930],
['20151211',7.060],
['20151214',7.200],
['20151215',7.000],
['20151216',7.060],
['20151217',7.170],
['20151218',7.190],
['20151221',7.220],
['20151222',7.260],
['20151223',7.200],
['20151224',7.100],
['20151225',7.460],
['20151228',7.830],
['20151229',7.990],
['20151230',8.390],
['20151231',8.810],
['20160104',8.370],
['20160105',7.950],
['20160106',8.350],
['20160107',7.930],
['20160108',8.330],
['20160111',7.910],
['20160112',7.510],
['20160113',7.130],
['20160114',6.780],
['20160115',6.500],
['20160118',6.750],
['20160119',7.090],
['20160120',7.390],
['20160121',7.020],
['20160122',7.310],
['20160125',7.670],
['20160126',7.290],
['20160127',6.930],
['20160128',6.580],
['20160129',6.330],
['20160201',6.650],
['20160202',6.980],
['20160203',7.120],
['20160205',6.650],
['20160215',6.040],
['20160216',6.290],
['20160217',6.270],
['20160218',6.210],
['20160219',6.340],
['20160222',6.970],
['20160223',6.960],
['20160224',6.900],
['20160225',6.210],
['20160226',6.080],
['20160229',5.470],
['20160301',5.600],
['20160302',5.780],
['20160303',5.850],
['20160304',5.770],
['20160307',5.920],
['20160308',5.910],
['20160309',5.740],
['20160310',5.690],
['20160311',6.000],
['20160314',6.140],
['20160315',6.040],
['20160316',5.850],
['20160317',6.030],
['20160318',6.190],
['20160321',6.270],
['20160322',6.160],
['20160323',6.210],
['20160324',6.060],
['20160325',6.120],
['20160328',6.450],
['20160329',6.180],
['20160330',6.360],
['20160331',6.340],
['20160401',6.510],
['20160405',7.150],
['20160406',7.110],
['20160407',7.050],
['20160408',7.040],
['20160411',7.060],
['20160412',7.370],
['20160413',7.360],
['20160414',7.410],
['20160415',7.360],
['20160418',7.360],
['20160419',7.380],
['20160420',6.920],
['20160421',6.880],
['20160422',7.010],
['20160425',6.900],
['20160426',7.080],
['20160427',7.290],
['20160428',7.110],
['20160429',7.180],
['20160503',7.380],
['20160504',7.350],
['20160505',7.340],
['20160506',7.220],
['20160509',6.540],
['20160510',6.390],
['20160511',6.290],
['20160512',6.180],
['20160513',6.240],
['20160516',6.310],
['20160517',6.340],
['20160518',6.040],
['20160519',6.090],
['20160520',6.160],
['20160523',6.200],
['20160524',6.210],
['20160525',6.160],
['20160526',6.210],
['20160527',6.180],
['20160530',6.100],
['20160531',6.320],
['20160601',6.390],
['20160602',6.370],
['20160603',6.420],
['20160606',7.060],
['20160607',6.980],
['20160608',6.940],
['20160613',6.480],
['20160614',6.480],
['20160615',6.660],
['20160616',6.810],
['20160617',7.220],
['20160620',7.020],
['20160621',6.960],
['20160622',7.110],
['20160623',6.980],
['20160624',6.880],
['20160627',7.320],
['20160628',7.300],
['20160629',7.300],
['20160630',7.430],
['20160701',7.220],
['20160704',7.330],
['20160705',7.320],
['20160706',7.230],
['20160707',7.240],
['20160708',7.350],
['20160711',7.270],
['20160712',7.280],
['20160713',7.390],
['20160714',7.450],
['20160715',7.470],
['20160718',7.250],
['20160719',7.330],
['20160720',7.700],
['20160721',7.600],
['20160722',7.810],
['20160725',8.000],
['20160726',8.020],
['20160727',7.380],
['20160728',7.220],
['20160729',7.200],
['20160801',6.980],
['20160802',7.050],
['20160803',7.150],
['20160804',7.160],
['20160805',7.070],
['20160808',7.220],
['20160809',7.260],
['20160810',7.170],
['20160811',7.070],
['20160812',7.380],
['20160815',7.470],
['20160816',7.520],
['20160817',7.600],
['20160818',7.500],
['20160819',7.650],
['20160822',7.510],
['20160823',7.440],
['20160824',7.590],
['20160825',7.520],
['20160826',7.630],
['20160829',7.660],
['20160830',7.790],
['20160831',7.570],
['20160901',7.520],
['20160902',7.510],
['20160905',7.590],
['20160906',7.740],
['20160907',7.750],
['20160908',7.940],
['20160909',7.930],
['20160912',7.490],
['20160913',7.560],
['20160914',7.600],
['20160919',7.620],
['20160920',7.500],
['20160921',7.410],
['20160922',7.470],
['20160923',8.220],
['20160926',8.090],
['20160927',8.680],
['20160928',8.340],
['20160929',8.290],
['20160930',8.270],
['20161010',8.540],
['20161011',8.510],
['20161012',8.630],
['20161013',8.650],
['20161014',8.480],
['20161017',8.350],
['20161018',8.460],
['20161019',9.310],
['20161020',9.330],
['20161021',9.190],
['20161024',9.250],
['20161025',9.540],
['20161026',9.320],
['20161027',9.340],
['20161028',9.340],
['20161031',9.150],
['20161101',9.310],
['20161102',8.990],
['20161103',9.050],
['20161104',8.750],
['20161107',8.770],
['20161108',8.860],
['20161109',8.780],
['20161110',8.910],
['20161111',8.930],
['20161114',9.000],
['20161115',9.330],
['20161116',9.170],
['20161117',9.090],
['20161118',8.900],
['20161121',8.790],
['20161122',8.940],
['20161123',8.890],
['20161124',8.690],
['20161125',8.780],
['20161128',8.770],
['20161129',8.720],
['20161130',9.080],
['20161201',9.120],
['20161202',8.790],
['20161205',8.590],
['20161206',8.680],
['20161207',8.730],
['20161208',9.100],
['20161209',9.070],
['20161212',9.980],
['20161213',10.980],
['20161214',12.080],
['20161215',13.290],
['20161220',11.960],
['20161221',11.420],
['20161222',11.990],
['20161223',11.150],
['20161226',11.790],
['20161227',12.970],
['20161228',13.000],
['20161229',13.100],
['20161230',11.790],
['20170103',12.090],
['20170104',12.620],
['20170105',12.770],
['20170106',12.820],
['20170109',13.620],
['20170110',13.270],
['20170111',12.450],
['20170112',11.800],
['20170113',11.400],
['20170116',10.400],
['20170117',10.740],
['20170118',10.660],
['20170119',10.810],
['20170120',10.970],
['20170123',10.820],
['20170124',10.460],
['20170125',10.630],
['20170126',10.150],
['20170203',10.190],
['20170206',10.410],
['20170207',10.940],
['20170208',11.150],
['20170209',11.060],
['20170210',10.900],
['20170213',11.680],
['20170214',11.850],
['20170215',11.470],
['20170216',11.490],
['20170217',11.010],
['20170220',11.140],
['20170221',11.210],
['20170222',11.680],
['20170223',11.710],
['20170224',11.720],
['20170227',11.280],
['20170228',11.550],
['20170301',11.720],
['20170302',11.470],
['20170303',11.800],
['20170306',11.980],
['20170307',11.960],
['20170308',11.690],
['20170309',11.470],
['20170310',11.110],
['20170313',10.850],
['20170314',10.840],
['20170315',10.590],
['20170316',10.710],
['20170317',10.650],
['20170320',10.460],
['20170321',10.740],
['20170322',10.720],
['20170323',10.570],
['20170324',10.470],
['20170327',10.880],
['20170328',10.700],
['20170329',10.830],
['20170330',10.760],
['20170331',11.480],
['20170405',12.630],
['20170406',12.660],
['20170407',12.970],
['20170410',13.620],
['20170411',13.720],
['20170412',12.350],
['20170413',12.500],
['20170414',12.870],
['20170417',11.900],
['20170418',11.830],
['20170419',11.050],
['20170420',10.960],
['20170421',10.790],
['20170424',9.970],
['20170425',10.160],
['20170426',10.430],
['20170427',10.290],
['20170428',10.570],
['20170502',11.040],
['20170503',11.020],
['20170504',11.200],
['20170505',10.970],
['20170508',10.070],
['20170509',10.500],
['20170510',10.120],
['20170511',10.350],
['20170512',10.710],
['20170515',10.640],
['20170516',11.070],
['20170517',11.930],
['20170518',11.280],
['20170519',11.660],
['20170522',11.330],
['20170523',10.400],
['20170524',10.680],
['20170525',10.760],
['20170526',11.430],
['20170531',11.320],
['20170601',10.500],
['20170602',10.850],
['20170605',11.160],
['20170606',10.850],
['20170607',11.320],
['20170608',11.380],
['20170609',11.190],
['20170612',11.480],
['20170613',11.560],
['20170614',11.360],
['20170615',11.220],
['20170616',11.030],
['20170619',10.880],
['20170620',10.970],
['20170621',10.980],
['20170622',10.440],
['20170623',10.520],
['20170626',10.580],
['20170627',10.530],
['20170628',10.520],
['20170629',10.530],
['20170630',10.360],
['20170703',10.550],
['20170704',10.610],
['20170705',10.630],
['20170706',10.530],
['20170707',10.460],
['20170710',10.190],
['20170711',10.020],
['20170712',10.100],
['20170713',9.970],
['20170714',9.990],
['20170717',9.090],
['20170718',9.140],
['20170719',9.210],
['20170720',9.410],
['20170721',9.270],
['20170724',9.160],
['20170725',9.060],
['20170726',9.410],
['20170727',9.460],
['20170728',9.280],
['20170731',9.450],
['20170801',10.400],
['20170802',11.030],
['20170803',10.860],
['20170804',10.600],
['20170807',10.650],
['20170808',10.940],
['20170809',10.870],
['20170810',10.570],
['20170811',10.430],
['20170814',10.650],
['20170815',10.750],
['20170816',10.750],
['20170817',10.780],
['20170818',10.920],
['20170821',10.820],
['20170822',10.540],
['20170823',10.730],
['20170824',10.290],
['20170825',10.350],
['20170828',10.380],
['20170829',10.410],
['20170830',10.440],
['20170831',10.380],
['20170901',10.380],
['20170904',10.680],
['20170905',10.530],
['20170906',10.500],
['20170907',10.250],
['20170908',10.120],
['20170911',10.180],
['20170912',10.150],
['20170913',10.280],
['20170914',10.490],
['20170915',10.150],
['20170918',10.160],
['20170919',10.010],
['20170920',10.060],
['20170921',9.910],
['20170922',9.730],
['20170925',9.450],
['20170926',9.720],
['20170927',9.630],
['20170928',9.540],
['20170929',9.590],
['20171009',9.680],
['20171010',9.760],
['20171011',9.800],
['20171012',9.730],
['20171013',9.790],
['20171016',9.550],
['20171017',9.600],
['20171018',9.350],
['20171019',8.910],
['20171020',9.060],
['20171023',9.160],
['20171024',9.040],
['20171025',9.060],
['20171026',9.120],
['20171027',9.010],
['20171030',8.720],
['20171031',8.790],
['20171101',8.750],
['20171102',8.480],
['20171103',8.280],
['20171106',8.290],
['20171107',8.390],
['20171108',8.390],
['20171109',8.400],
['20171110',8.270],
['20171113',8.440],
['20171114',8.430],
['20171115',8.240],
['20171116',8.050],
['20171117',7.360],
['20171120',7.050],
['20171121',6.880],
['20171122',6.980],
['20171123',6.750],
['20171124',6.690],
['20171127',6.710],
['20171128',6.810],
['20171129',6.980],
['20171130',7.200],
['20171201',7.190],
['20171204',7.910],
['20171205',8.170],
['20171206',8.330],
['20171207',8.030],
['20171208',8.040],
['20171211',7.980],
['20171212',7.810],
['20171213',7.930],
['20171214',7.750],
['20171215',7.860],
['20171218',8.030],
['20171219',8.060],
['20171220',7.860],
['20171221',7.390],
['20171222',7.290],
['20171225',6.960],
['20171226',7.000],
['20171227',7.010],
['20171228',6.990],
['20171229',7.210],
['20180102',7.580],
['20180103',7.800],
['20180104',7.670],
['20180105',7.600],
['20180108',7.580],
['20180109',7.390],
['20180110',7.230],
['20180111',7.290],
['20180112',7.140],
['20180115',7.020],
['20180116',7.110],
['20180117',7.270],
['20180118',7.310],
['20180119',7.200],
['20180122',7.380],
['20180123',7.340],
['20180124',7.290],
['20180125',7.540],
['20180126',7.450],
['20180129',7.590],
['20180130',7.460],
['20180131',7.150],
['20180201',6.450],
['20180202',6.290],
['20180205',6.350],
['20180206',5.740],
['20180207',5.860],
['20180208',6.020],
['20180209',5.970],
['20180212',6.040],
['20180213',6.260],
['20180214',6.160],
['20180222',6.310],
['20180223',6.380],
['20180226',6.460],
['20180227',6.350],
['20180228',6.340],
['20180301',6.360],
['20180302',6.450],
['20180305',6.340],
['20180306',6.410],
['20180307',6.270],
['20180308',6.570],
['20180309',6.580],
['20180312',6.790],
['20180313',6.630],
['20180314',6.750],
['20180315',6.640],
['20180316',6.570],
['20180319',6.560],
['20180320',6.570],
['20180321',6.430],
['20180322',6.270],
['20180323',5.710],
['20180326',5.840],
['20180327',5.990],
['20180328',6.010],
['20180329',6.090],
['20180330',6.150],
['20180402',6.090],
['20180403',5.930],
['20180404',6.010],
['20180409',6.120],
['20180410',6.180],
['20180411',6.190],
['20180412',6.290],
['20180413',6.320],
['20180416',6.410],
['20180417',6.250],
['20180418',6.410],
['20180419',6.370],
['20180420',6.140],
['20180423',6.220],
['20180424',6.350],
['20180425',6.310],
['20180426',5.930],
['20180427',5.940],
['20180502',5.960],
['20180503',5.890],
['20180504',5.800],
['20180507',5.980],
['20180508',5.960],
['20180509',6.110],
['20180510',6.530],
['20180511',6.280],
['20180514',6.130],
['20180515',6.180],
['20180516',6.170],
['20180517',6.390],
['20180518',6.470],
['20180521',6.550],
['20180522',6.490],
['20180523',6.240],
['20180524',6.140],
['20180525',6.140],
['20180528',6.060],
['20180529',6.010],
['20180530',5.590],
['20180531',5.700],
['20180601',5.600],
['20180604',5.510],
['20180605',5.580],
['20180606',5.590],
['20180607',5.590],
['20180608',5.360],
['20180611',5.190],
['20180612',5.240],
['20180613',5.110],
['20180614',5.030],
['20180615',4.720],
['20180619',4.250],
['20180620',4.230],
['20180621',4.160],
['20180622',4.290],
['20180625',4.280],
['20180626',4.320],
['20180627',4.230],
['20180628',4.190],
['20180629',4.330],
['20180702',4.760],
['20180703',4.680],
['20180704',4.590],
['20180705',4.580],
['20180706',4.580],
['20180709',4.680],
['20180710',4.650],
['20180711',4.380],
['20180712',4.480],
['20180713',4.450],
['20180716',4.470],
['20180717',4.600],
['20180718',4.540],
['20180719',4.400],
['20180720',4.440],
['20180723',4.490],
['20180724',4.600],
['20180725',4.700],
['20180726',4.760],
['20180727',4.840],
['20180730',4.830],
['20180731',4.720],
['20180801',4.760],
['20180802',4.710],
['20180803',5.180],
['20180806',5.700],
['20180807',6.270],
['20180808',6.050],
['20180809',6.080],
['20180810',5.570],
['20180813',5.470],
['20180814',5.720],
['20180815',5.530],
['20180816',5.280],
['20180817',5.090],
['20180820',5.290],
['20180821',5.370],
['20180822',5.660],
['20180823',5.640],
['20180824',5.410],
['20180827',5.510],
['20180828',5.440],
['20180829',5.470],
['20180830',5.230],
['20180831',5.140],
['20180903',5.170],
['20180904',5.280],
['20180905',5.190],
['20180906',5.090],
['20180907',5.180],
['20180910',5.300],
['20180911',5.560],
['20180912',5.390],
['20180913',5.470],
['20180914',5.200],
['20180917',5.100],
['20180918',5.240],
['20180919',5.270],
['20180920',5.360],
['20180921',5.370],
['20180925',5.470],
['20180926',5.410],
['20180927',5.200],
['20180928',5.200],
['20181008',5.160],
['20181009',5.600],
['20181010',5.600],
['20181011',5.980],
['20181012',5.780],
['20181015',5.610],
['20181016',5.840],
['20181017',5.860],
['20181018',5.270],
['20181019',5.030],
['20181022',5.230],
['20181023',5.060],
['20181024',4.940],
['20181025',4.820],
['20181026',4.910],
['20181029',4.710],
['20181030',4.700],
['20181031',4.770],
['20181101',4.830],
['20181102',4.960],
['20181105',5.010],
['20181106',4.910],
['20181107',4.850],
['20181108',4.910],
['20181109',4.810],
['20181112',4.950],
['20181113',5.050],
['20181114',5.050],
['20181115',5.090],
['20181116',5.140],
['20181119',5.360],
['20181120',5.100],
['20181121',5.070],
['20181122',5.080],
['20181123',4.770],
['20181126',4.770],
['20181127',4.800],
['20181128',4.840],
['20181129',4.690],
['20181130',4.740],
['20181203',4.860],
['20181204',5.110],
['20181205',5.030],
['20181206',4.920],
['20181207',4.990],
['20181210',4.840],
['20181211',4.870],
['20181212',4.920],
['20181213',4.930],
['20181214',4.750],
['20181217',4.810],
['20181218',4.750],
['20181219',4.650],
['20181220',4.710],
['20181221',4.700],
['20181224',4.790],
['20181225',4.700],
['20181226',4.690],
['20181227',4.650],
['20181228',4.560],
['20190102',4.580],
['20190103',4.480],
['20190104',4.580],
['20190107',4.670],
['20190108',4.690],
['20190109',4.690],
['20190110',4.690],
['20190111',4.710],
['20190114',4.620],
['20190115',4.760],
['20190116',4.740],
['20190117',4.640],
['20190118',4.820],
['20190121',5.010],
['20190122',4.930],
['20190123',5.000],
['20190124',4.890],
['20190125',4.740],
['20190128',4.690],
['20190129',4.790],
['20190130',4.610],
['20190131',4.500],
['20190201',4.580],
['20190211',4.750],
['20190212',4.810],
['20190213',4.860],
['20190214',4.850],
['20190215',4.850],
['20190218',4.960],
['20190219',4.930],
['20190220',4.960],
['20190221',4.900],
['20190222',4.970],
['20190225',5.180],
['20190226',5.160],
['20190227',5.490],
['20190228',5.380],
['20190301',5.320],
['20190304',5.450],
['20190305',5.520],
['20190306',5.600],
['20190307',5.650],
['20190308',5.220],
['20190311',5.580],
['20190312',5.670],
['20190313',5.460],
['20190314',5.600],
['20190315',5.830],
['20190318',5.880],
['20190319',5.840],
['20190320',6.420],
['20190321',7.060],
['20190322',7.770],
['20190325',7.560],
['20190326',6.840],
['20190327',7.080],
['20190328',6.590],
['20190329',6.690],
['20190401',6.970],
['20190402',7.060],
['20190403',7.110],
['20190404',7.430],
['20190408',7.520],
['20190409',7.080],
['20190410',7.060],
['20190411',6.830],
['20190412',6.730],
['20190415',6.800],
['20190416',6.970],
['20190417',7.190],
['20190418',7.050],
['20190419',6.980],
['20190422',6.800],
['20190423',6.730],
['20190424',6.970],
['20190425',6.540],
['20190426',6.560],
['20190429',6.080],
['20190430',6.180],
['20190506',5.710],
['20190507',5.760],
['20190508',5.830],
['20190509',5.690],
['20190510',5.870],
['20190513',5.870],
['20190514',5.830],
['20190515',5.970],
['20190516',6.110],
['20190517',5.810],
['20190520',5.660],
['20190521',5.730],
['20190522',5.550],
['20190523',5.430],
['20190524',5.390],
['20190527',5.590],
['20190528',5.600],
['20190529',5.630],
['20190530',5.900],
['20190531',5.810],
['20190603',5.670],
['20190604',5.480],
['20190605',5.480],
['20190606',5.380],
['20190610',5.470],
['20190611',5.670],
['20190612',5.590],
['20190613',5.680],
['20190614',5.440],
['20190617',5.560],
['20190618',5.700],
['20190619',5.700],
['20190620',5.770],
['20190621',5.820]];
var source='wstock.net';
|
/* eslint-disable linebreak-style */
import 'bootstrap/dist/css/bootstrap.min.css';
import './style.css';
import 'bootstrap';
import { format } from 'date-fns';
import DOM from './dom';
import Project from './project';
import App from './app-logic';
import ToDo from './todo';
if (App.getProject('Default') == null) {
const defaultProject = Project('Default');
App.addProject(defaultProject);
App.setLastSelectedProject(defaultProject);
}
// Load Projects into project selection bar
DOM.loadProjectOptions(App.getAllProjects());
DOM.selectProject(App.getLastSelectedProject());
// Load Tasks into to-do list
DOM.loadTaskItems(App.getProject(DOM.currentProjectTitle()).getAllTasks());
// set minimum value for date select in new task adding form
DOM.dueDateMin(format(Date.now(), 'yyyy-MM-dd'));
// Add listener for Project select
const s = document.getElementById('p-select');
s.addEventListener('change', () => {
const project = App.getProject(DOM.currentProjectTitle());
App.setLastSelectedProject(project);
window.location.reload();
});
// Add listener for the create project button
document.getElementById('project-btn').onclick = DOM.addProjectBtnAction.bind(DOM, (title) => {
if (App.getProject(title)) return false;
const newProject = Project(title);
App.addProject(newProject);
DOM.addProjectOption(newProject);
return true;
});
// Add listener for the add new task form
document.getElementById('addTaskForm').addEventListener('submit', event => {
event.preventDefault();
if (document.getElementById('request').value === 'create') {
DOM.addTaskBtnAction((title, description, dueDate, priority) => {
const currentProject = App.getProject(DOM.currentProjectTitle());
if (currentProject.find(title)) return false;
const id = currentProject.last() ? currentProject.last().id + 1 : 0;
const toDo = ToDo(id, title, description, format(dueDate, 'yyyy-MM-dd'), priority);
App.addTodo(currentProject, toDo);
DOM.addTaskItem(toDo);
return true;
});
} else {
DOM.editTaskBtnAction((id, title, description, dueDate, priority) => {
const toDo = ToDo(id, title, description, format(dueDate, 'yyyy-MM-dd'), priority);
const currentProject = App.getProject(DOM.currentProjectTitle());
App.editTodo(currentProject, id, toDo);
window.location.reload();
});
}
});
// Add listeners for expand buttons on todos
const btns = Array.from(document.getElementsByClassName('btn-expand'));
let prev;
btns.forEach(btn => {
btn.onclick = () => {
if (btn.innerText === 'Show details') {
if (prev) prev.innerText = 'Show details';
btn.innerText = 'Hide details';
prev = btn;
} else {
btn.innerText = 'Show details';
}
};
});
// Add listener for delete task button
const dButtons = Array.from(document.getElementsByClassName('btn-delete'));
dButtons.forEach(btn => {
btn.onclick = () => {
App.deleteTodo(App.getProject(DOM.currentProjectTitle()), btn.getAttribute('data-task-id'));
DOM.deleteTask(btn.getAttribute('data-task-id'));
};
});
// Add listener for edit task button
const eButtons = Array.from(document.getElementsByClassName('btn-edit'));
eButtons.forEach(btn => {
const task = App.getProject(DOM.currentProjectTitle()).getTask(btn.getAttribute('data-task-id'));
btn.onclick = () => DOM.editTaskBtnPrepare(task);
});
|
(function () {
'use strict'
document.querySelector('[data-bs-toggle="offcanvas"]').addEventListener('click', function () {
document.querySelector('.offcanvas-collapse').classList.toggle('open')
})
})()
|
module.exports = {
collectCoverageFrom: [
'app/**/*.{js,jsx}',
'!app/**/*.test.{js,jsx}',
'!app/*/RbGenerated*/*.{js,jsx}',
'!app/app.js',
'!app/components/ScrollToTop/*.js',
'!app/components/ErrorBoundary/*.js',
'!app/global-styles.js',
'!app/*/*/Loadable.{js,jsx}',
'!**/loadable.js',
'!**/apiUtils.js',
'!**/testUtils.js',
'!**/stories/**',
'!**/themes/index.js'
],
testEnvironment: 'jsdom',
coverageThreshold: {
global: {
statements: 50,
branches: 50,
functions: 50,
lines: 50
}
},
moduleDirectories: ['node_modules', 'app'],
moduleNameMapper: {
'@app(.*)$': '<rootDir>/app/$1',
'@(containers|components|services|utils|themes|translations)(.*)$': '<rootDir>/app/$1/$2',
'.*\\.(css|less|styl|scss|sass)$': '<rootDir>/internals/mocks/cssModule.js',
'.*\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/internals/mocks/image.js'
},
setupFilesAfterEnv: [
'<rootDir>/jest.setup.js',
'<rootDir>/internals/testing/test-bundler.js',
'react-testing-library/cleanup-after-each'
],
setupFiles: ['raf/polyfill'],
testRegex: 'tests/.*\\.test\\.js$',
snapshotSerializers: []
};
|
var _ = require('@sailshq/lodash');
// This module establishes `apos.db`, the mongodb driver connection object.
//
// ## Options
//
// ### `uri`
//
// The MongoDB connection URI. See the [MongoDB URI documentation](https://docs.mongodb.com/manual/reference/connection-string/).
//
// ### `connect`
//
// If present, this object is passed on as options to MongoDB's "connect" method,
// along with the uri. See the [MongoDB connect settings documentation](http://mongodb.github.io/node-mongodb-native/2.2/reference/connecting/connection-settings/).
//
// By default, Apostrophe sets options to retry lost connections forever, however
// you can override this via the `connect` object if you want to.
//
// ### `user`, `host`, `port`, `name`, `password`
//
// These options are used only if `uri` is not present.
//
// ### `db`
//
// An existing MongoDB connection object. If present, a new
// connection instance is created that reuses the same sockets,
// and `uri`, `host`, `connect`, etc. are ignored.
//
// ## Command line tasks
//
// ### `apostrophe-db:reset`
//
// Drops ALL collections in the database (including those not created by
// Apostrophe), then invokes the `dbReset` method of every module that
// has one. These methods may optionally take a callback.
//
// Note that `apos.db` is the mongodb connection object, not this module.
// You shouldn't need to talk to this module after startup, but you can
// access it as `apos.modules['apostrophe-db']` if you wish.
//
// If you need to change the way MongoDB connections are made,
// override `connectToMongo` in `lib/modules/apostrophe-db/index.js`
// in your project.
var mongo = require('mongodb');
var async = require('async');
module.exports = {
afterConstruct: function(self, callback) {
return async.series([
self.connectToMongo,
self.earlyResetTask
], function(err) {
if (err) {
return callback(err);
}
self.keepalive();
self.bcPatch();
return callback(null);
});
},
construct: function(self, options) {
// Open the database connection. Always use MongoClient with its
// sensible defaults. Build a URI if we need to, so we can call it
// in a consistent way.
//
// One default we override: if the connection is lost, we keep
// attempting to reconnect forever. This is the most sensible behavior
// for a persistent process that requires MongoDB in order to operate.
self.connectToMongo = function(callback) {
if (self.options.db) {
// Reuse a single connection http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html#db
self.apos.db = self.options.db.db(options.name || self.apos.shortName);
self.connectionReused = true;
return callback(null);
}
var Logger;
if (process.env.APOS_MONGODB_LOG_LEVEL) {
Logger = require('mongodb').Logger;
// Set debug level
Logger.setLevel(process.env.APOS_MONGODB_LOG_LEVEL);
}
var uri = 'mongodb://';
var baseOptions = {
autoReconnect: true,
// retry forever
reconnectTries: Number.MAX_VALUE,
reconnectInterval: 1000
};
if (process.env.APOS_MONGODB_URI) {
uri = process.env.APOS_MONGODB_URI;
} else if (options.uri) {
uri = options.uri;
} else {
if (options.user) {
uri += options.user + ':' + options.password + '@';
}
if (!options.host) {
options.host = 'localhost';
}
if (!options.port) {
options.port = 27017;
}
if (!options.name) {
options.name = self.apos.shortName;
}
uri += options.host + ':' + options.port + '/' + options.name;
}
if (uri.match(/^mongodb\+srv/)) {
return callback(new Error('You are attempting to use a mongodb+srv URI, which is only\n' +
'supported by the MongoDB 3.6+ driver. Apostrophe 2.x core\n' +
'ships with the MongoDB 2.x driver. You have two choices:\n\n' +
'1. Use the older type of URI to connect to your replica set.\n' +
'MongoDB Atlas provides both URIs.\n\n' +
'2. Install the apostrophe-db-mongo-3-driver module which supports the new URI.\n'));
}
// If a comma separated host list appears, it's a replica set or sharded
// cluster. In either case, the autoReconnect feature is undesirable and
// will actually cause problems, per the MongoDB team:
//
// https://github.com/apostrophecms/apostrophe/issues/1508
if (multiple(uri)) {
delete baseOptions.autoReconnect;
delete baseOptions.reconnectTries;
delete baseOptions.reconnectInterval;
}
var connectOptions = _.assign(baseOptions, self.options.connect || {});
return mongo.MongoClient.connect(uri, connectOptions, function (err, dbArg) {
self.apos.db = dbArg;
if (err) {
self.apos.utils.error('ERROR: There was an issue connecting to the database. Is it running?');
}
return callback(err);
});
function multiple(uri) {
// "Why don't we use a URL parser?" Because MongoDB has historically
// supported some URL structures that might confuse one, like more than
// one : in the host field.
if (uri.match(/^mongodb\+srv/)) {
return true;
}
var matches = uri.match(/\/\/([^/]+)/);
if (!matches) {
return false;
}
var host = decodeURIComponent(matches[1]);
return !!host.match(/,/);
}
};
// Query the server status every 10 seconds just to prevent
// the mongodb module version 2.1.19+ or better from allowing
// the connection to time out... with no error messages or clues
// that we need to reconnect it... because apparently that's
// a feature now. -Tom
self.keepalive = function() {
self.keepaliveCollection = self.apos.db.collection('aposKeepalive');
self.keepaliveInterval = setInterval(function() {
// We don't actually care about the result.
return self.keepaliveCollection.findOne(function(err, dummy) {
if (err) {
self.apos.utils.error(err);
}
});
}, 10000);
};
// Remove ALL collections from the database as part of the
// `apostrophe-db:reset` task. Then Apostrophe carries out the usual
// reinitialization of collection indexes and creation of parked pages, etc.
//
// PLEASE NOTE: this will drop collections UNRELATED to apostrophe.
// If that is a concern for you, drop Apostrophe's collections yourself
// and start up your app, which will recreate them.
self.earlyResetTask = function(callback) {
// if reset task is being run, destroy the collections
// we have to do this now before all the modules try to recreate them
// - Tom & Sam
if (self.apos.argv._[0] === 'apostrophe-db:reset') {
return self.dropAllCollections(callback);
}
return setImmediate(callback);
};
// Makes a `findWithProjection` method available on all collections,
// which is just an alias for `find` because the MongoDB 2.x driver
// already allows a projection as the second argument. This is useful
// because the `apostrophe-db-mongo-3-driver` module provides the
// same method while allowing you to use the newer MongoDB 3.x driver.
// All existing Apostrophe code that directly calls MongoDB's `find()`
// is being migrated to use `findWithProjection` for forwards and
// backwards compatibility.
self.bcPatch = function() {
// Strategy: obtain an actual collection object, don't assume
// the mongo driver we `require`d is the same as the one that might
// have been injected by multisite etc. Then find and patch its
// prototype object.
//
// `aposKeepalive` is a reasonable collection name for this purpose
// since it is the only collection directly referenced in this module.
// it doesn't really matter, we just want access to the right prototype.
var prototype = Object.getPrototypeOf(self.apos.db.collection('aposKeepalive'));
prototype.findWithProjection = prototype.find;
};
self.apos.tasks.add('apostrophe-db', 'reset',
'Usage: node app apostrophe-db:reset\n\n' +
'This destroys ALL of your content. EVERYTHING in your database.\n',
function(apos, argv, callback) {
return self.resetFromTask(callback);
}
);
self.resetFromTask = function(callback) {
var argv = self.apos.argv;
if (argv._.length !== 1) {
return callback('Incorrect number of arguments.');
}
// let other modules run their own tasks now that db has been reset
return self.callAllAndEmit('dbReset', 'reset', callback);
};
self.dropAllCollections = function(callback) {
return self.apos.db.collections(function(err, collections) {
if (err) {
return callback(err);
}
// drop the collections
return async.eachSeries(collections, function(collection, callback) {
if (!collection.collectionName.match(/^system\./)) {
return collection.drop(callback);
}
return setImmediate(callback);
}, callback);
});
};
// Invoked by `callAll` when `apos.destroy` is called.
// Closes the database connection and the keepalive
// interval timer.
self.apostropheDestroy = function(callback) {
if (self.keepaliveInterval) {
clearInterval(self.keepaliveInterval);
}
if (!self.apos.db) {
return setImmediate(callback);
}
if (self.connectionReused) {
// If we close our db object, which is reusing a connection
// shared by someone else, they will lose their connection
// too, resulting in unexpected "topology destroyed" errors.
// This responsibility should fall to the parent
return callback(null);
}
return self.apos.db.close(false, callback);
};
}
};
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
// Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js
// declare global: coffeelint
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use strict";
CodeMirror.registerHelper("lint", "coffeescript", function(text) {
var found = [];
if (!window.coffeelint) {
if (window.console) {
window.console.error("Error: window.coffeelint not defined, CodeMirror CoffeeScript linting cannot run.");
}
return found;
}
var parseError = function(err) {
var loc = err.lineNumber;
found.push({from: CodeMirror.Pos(loc-1, 0),
to: CodeMirror.Pos(loc, 0),
severity: err.level,
message: err.message});
};
try {
var res = coffeelint.lint(text);
for(var i = 0; i < res.length; i++) {
parseError(res[i]);
}
} catch(e) {
found.push({from: CodeMirror.Pos(e.location.first_line, 0),
to: CodeMirror.Pos(e.location.last_line, e.location.last_column),
severity: 'error',
message: e.message});
}
return found;
});
});
|
/*!
* Select2 4.0.1
* https://select2.github.io
*
* Released under the MIT license
* https://github.com/select2/select2/blob/master/LICENSE.md
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['../../../oclazyload/examples/example2/js/jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function (jQuery) {
// This is needed so we can catch the AMD loader configuration and use it
// The inner file should be wrapped (by `banner.start.js`) in a function that
// returns the AMD loader references.
var S2 =
(function () {
// Restore the Select2 AMD loader so it can be used
// Needed mostly in the language files, where the loader is not inserted
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
var S2 = jQuery.fn.select2.amd;
}
var S2;(function () { if (!S2 || !S2.requirejs) {
if (!S2) { S2 = {}; } else { require = S2; }
/**
* @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/almond for details
*/
//Going sloppy to avoid 'use strict' string cost, but strict practices should
//be followed.
/*jslint sloppy: true */
/*global setTimeout: false */
var requirejs, require, define;
(function (undef) {
var main, req, makeMap, handlers,
defined = {},
waiting = {},
config = {},
defining = {},
hasOwn = Object.prototype.hasOwnProperty,
aps = [].slice,
jsSuffixRegExp = /\.js$/;
function hasProp(obj, prop) {
return hasOwn.call(obj, prop);
}
/**
* Given a relative module name, like ./something, normalize it to
* a real name that can be mapped to a path.
* @param {String} name the relative name
* @param {String} baseName a real name that the name arg is relative
* to.
* @returns {String} normalized name
*/
function normalize(name, baseName) {
var nameParts, nameSegment, mapValue, foundMap, lastIndex,
foundI, foundStarMap, starI, i, j, part,
baseParts = baseName && baseName.split("/"),
map = config.map,
starMap = (map && map['*']) || {};
//Adjust any relative paths.
if (name && name.charAt(0) === ".") {
//If have a base name, try to normalize against it,
//otherwise, assume it is a top-level require that will
//be relative to baseUrl in the end.
if (baseName) {
name = name.split('/');
lastIndex = name.length - 1;
// Node .js allowance:
if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {
name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
}
//Lop off the last part of baseParts, so that . matches the
//"directory" and not name of the baseName's module. For instance,
//baseName of "one/two/three", maps to "one/two/three.js", but we
//want the directory, "one/two" for this normalization.
name = baseParts.slice(0, baseParts.length - 1).concat(name);
//start trimDots
for (i = 0; i < name.length; i += 1) {
part = name[i];
if (part === ".") {
name.splice(i, 1);
i -= 1;
} else if (part === "..") {
if (i === 1 && (name[2] === '..' || name[0] === '..')) {
//End of the line. Keep at least one non-dot
//path segment at the front so it can be mapped
//correctly to disk. Otherwise, there is likely
//no path mapping for a path starting with '..'.
//This can still fail, but catches the most reasonable
//uses of ..
break;
} else if (i > 0) {
name.splice(i - 1, 2);
i -= 2;
}
}
}
//end trimDots
name = name.join("/");
} else if (name.indexOf('./') === 0) {
// No baseName, so this is ID is resolved relative
// to baseUrl, pull off the leading dot.
name = name.substring(2);
}
}
//Apply map config if available.
if ((baseParts || starMap) && map) {
nameParts = name.split('/');
for (i = nameParts.length; i > 0; i -= 1) {
nameSegment = nameParts.slice(0, i).join("/");
if (baseParts) {
//Find the longest baseName segment match in the config.
//So, do joins on the biggest to smallest lengths of baseParts.
for (j = baseParts.length; j > 0; j -= 1) {
mapValue = map[baseParts.slice(0, j).join('/')];
//baseName segment has config, find if it has one for
//this name.
if (mapValue) {
mapValue = mapValue[nameSegment];
if (mapValue) {
//Match, update name to the new value.
foundMap = mapValue;
foundI = i;
break;
}
}
}
}
if (foundMap) {
break;
}
//Check for a star map match, but just hold on to it,
//if there is a shorter segment match later in a matching
//config, then favor over this star map.
if (!foundStarMap && starMap && starMap[nameSegment]) {
foundStarMap = starMap[nameSegment];
starI = i;
}
}
if (!foundMap && foundStarMap) {
foundMap = foundStarMap;
foundI = starI;
}
if (foundMap) {
nameParts.splice(0, foundI, foundMap);
name = nameParts.join('/');
}
}
return name;
}
function makeRequire(relName, forceSync) {
return function () {
//A version of a require function that passes a moduleName
//value for items that may need to
//look up paths relative to the moduleName
var args = aps.call(arguments, 0);
//If first arg is not require('string'), and there is only
//one arg, it is the array form without a callback. Insert
//a null so that the following concat is correct.
if (typeof args[0] !== 'string' && args.length === 1) {
args.push(null);
}
return req.apply(undef, args.concat([relName, forceSync]));
};
}
function makeNormalize(relName) {
return function (name) {
return normalize(name, relName);
};
}
function makeLoad(depName) {
return function (value) {
defined[depName] = value;
};
}
function callDep(name) {
if (hasProp(waiting, name)) {
var args = waiting[name];
delete waiting[name];
defining[name] = true;
main.apply(undef, args);
}
if (!hasProp(defined, name) && !hasProp(defining, name)) {
throw new Error('No ' + name);
}
return defined[name];
}
//Turns a plugin!resource to [plugin, resource]
//with the plugin being undefined if the name
//did not have a plugin prefix.
function splitPrefix(name) {
var prefix,
index = name ? name.indexOf('!') : -1;
if (index > -1) {
prefix = name.substring(0, index);
name = name.substring(index + 1, name.length);
}
return [prefix, name];
}
/**
* Makes a name map, normalizing the name, and using a plugin
* for normalization if necessary. Grabs a ref to plugin
* too, as an optimization.
*/
makeMap = function (name, relName) {
var plugin,
parts = splitPrefix(name),
prefix = parts[0];
name = parts[1];
if (prefix) {
prefix = normalize(prefix, relName);
plugin = callDep(prefix);
}
//Normalize according
if (prefix) {
if (plugin && plugin.normalize) {
name = plugin.normalize(name, makeNormalize(relName));
} else {
name = normalize(name, relName);
}
} else {
name = normalize(name, relName);
parts = splitPrefix(name);
prefix = parts[0];
name = parts[1];
if (prefix) {
plugin = callDep(prefix);
}
}
//Using ridiculous property names for space reasons
return {
f: prefix ? prefix + '!' + name : name, //fullName
n: name,
pr: prefix,
p: plugin
};
};
function makeConfig(name) {
return function () {
return (config && config.config && config.config[name]) || {};
};
}
handlers = {
require: function (name) {
return makeRequire(name);
},
exports: function (name) {
var e = defined[name];
if (typeof e !== 'undefined') {
return e;
} else {
return (defined[name] = {});
}
},
module: function (name) {
return {
id: name,
uri: '',
exports: defined[name],
config: makeConfig(name)
};
}
};
main = function (name, deps, callback, relName) {
var cjsModule, depName, ret, map, i,
args = [],
callbackType = typeof callback,
usingExports;
//Use name if no relName
relName = relName || name;
//Call the callback to define the module, if necessary.
if (callbackType === 'undefined' || callbackType === 'function') {
//Pull out the defined dependencies and pass the ordered
//values to the callback.
//Default to [require, exports, module] if no deps
deps = !deps.length && callback.length ? ['require', 'exports', 'module'] : deps;
for (i = 0; i < deps.length; i += 1) {
map = makeMap(deps[i], relName);
depName = map.f;
//Fast path CommonJS standard dependencies.
if (depName === "require") {
args[i] = handlers.require(name);
} else if (depName === "exports") {
//CommonJS module spec 1.1
args[i] = handlers.exports(name);
usingExports = true;
} else if (depName === "module") {
//CommonJS module spec 1.1
cjsModule = args[i] = handlers.module(name);
} else if (hasProp(defined, depName) ||
hasProp(waiting, depName) ||
hasProp(defining, depName)) {
args[i] = callDep(depName);
} else if (map.p) {
map.p.load(map.n, makeRequire(relName, true), makeLoad(depName), {});
args[i] = defined[depName];
} else {
throw new Error(name + ' missing ' + depName);
}
}
ret = callback ? callback.apply(defined[name], args) : undefined;
if (name) {
//If setting exports via "module" is in play,
//favor that over return value and exports. After that,
//favor a non-undefined return value over exports use.
if (cjsModule && cjsModule.exports !== undef &&
cjsModule.exports !== defined[name]) {
defined[name] = cjsModule.exports;
} else if (ret !== undef || !usingExports) {
//Use the return value from the function.
defined[name] = ret;
}
}
} else if (name) {
//May just be an object definition for the module. Only
//worry about defining if have a module name.
defined[name] = callback;
}
};
requirejs = require = req = function (deps, callback, relName, forceSync, alt) {
if (typeof deps === "string") {
if (handlers[deps]) {
//callback in this case is really relName
return handlers[deps](callback);
}
//Just return the module wanted. In this scenario, the
//deps arg is the module name, and second arg (if passed)
//is just the relName.
//Normalize module name, if it contains . or ..
return callDep(makeMap(deps, callback).f);
} else if (!deps.splice) {
//deps is a config object, not an array.
config = deps;
if (config.deps) {
req(config.deps, config.callback);
}
if (!callback) {
return;
}
if (callback.splice) {
//callback is an array, which means it is a dependency list.
//Adjust args if there are dependencies
deps = callback;
callback = relName;
relName = null;
} else {
deps = undef;
}
}
//Support require(['a'])
callback = callback || function () {};
//If relName is a function, it is an errback handler,
//so remove it.
if (typeof relName === 'function') {
relName = forceSync;
forceSync = alt;
}
//Simulate async callback;
if (forceSync) {
main(undef, deps, callback, relName);
} else {
//Using a non-zero value because of concern for what old browsers
//do, and latest browsers "upgrade" to 4 if lower value is used:
//http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout:
//If want a value immediately, use require('id') instead -- something
//that works in almond on the global level, but not guaranteed and
//unlikely to work in other AMD implementations.
setTimeout(function () {
main(undef, deps, callback, relName);
}, 4);
}
return req;
};
/**
* Just drops the config on the floor, but returns req in case
* the config return value is used.
*/
req.config = function (cfg) {
return req(cfg);
};
/**
* Expose module registry for debugging and tooling
*/
requirejs._defined = defined;
define = function (name, deps, callback) {
if (typeof name !== 'string') {
throw new Error('See almond README: incorrect module build, no module name');
}
//This module may not have dependencies
if (!deps.splice) {
//deps is not an array, so probably means
//an object literal or factory function for
//the value. Adjust args.
callback = deps;
deps = [];
}
if (!hasProp(defined, name) && !hasProp(waiting, name)) {
waiting[name] = [name, deps, callback];
}
};
define.amd = {
jQuery: true
};
}());
S2.requirejs = requirejs;S2.require = require;S2.define = define;
}
}());
S2.define("almond", function(){});
/* global jQuery:false, $:false */
S2.define('jquery',[],function () {
var _$ = jQuery || $;
if (_$ == null && console && console.error) {
console.error(
'Select2: An instance of jQuery or a jQuery-compatible library was not ' +
'found. Make sure that you are including jQuery before Select2 on your ' +
'web page.'
);
}
return _$;
});
S2.define('select2/utils',[
'jquery'
], function ($) {
var Utils = {};
Utils.Extend = function (ChildClass, SuperClass) {
var __hasProp = {}.hasOwnProperty;
function BaseConstructor () {
this.constructor = ChildClass;
}
for (var key in SuperClass) {
if (__hasProp.call(SuperClass, key)) {
ChildClass[key] = SuperClass[key];
}
}
BaseConstructor.prototype = SuperClass.prototype;
ChildClass.prototype = new BaseConstructor();
ChildClass.__super__ = SuperClass.prototype;
return ChildClass;
};
function getMethods (theClass) {
var proto = theClass.prototype;
var methods = [];
for (var methodName in proto) {
var m = proto[methodName];
if (typeof m !== 'function') {
continue;
}
if (methodName === 'constructor') {
continue;
}
methods.push(methodName);
}
return methods;
}
Utils.Decorate = function (SuperClass, DecoratorClass) {
var decoratedMethods = getMethods(DecoratorClass);
var superMethods = getMethods(SuperClass);
function DecoratedClass () {
var unshift = Array.prototype.unshift;
var argCount = DecoratorClass.prototype.constructor.length;
var calledConstructor = SuperClass.prototype.constructor;
if (argCount > 0) {
unshift.call(arguments, SuperClass.prototype.constructor);
calledConstructor = DecoratorClass.prototype.constructor;
}
calledConstructor.apply(this, arguments);
}
DecoratorClass.displayName = SuperClass.displayName;
function ctr () {
this.constructor = DecoratedClass;
}
DecoratedClass.prototype = new ctr();
for (var m = 0; m < superMethods.length; m++) {
var superMethod = superMethods[m];
DecoratedClass.prototype[superMethod] =
SuperClass.prototype[superMethod];
}
var calledMethod = function (methodName) {
// Stub out the original method if it's not decorating an actual method
var originalMethod = function () {};
if (methodName in DecoratedClass.prototype) {
originalMethod = DecoratedClass.prototype[methodName];
}
var decoratedMethod = DecoratorClass.prototype[methodName];
return function () {
var unshift = Array.prototype.unshift;
unshift.call(arguments, originalMethod);
return decoratedMethod.apply(this, arguments);
};
};
for (var d = 0; d < decoratedMethods.length; d++) {
var decoratedMethod = decoratedMethods[d];
DecoratedClass.prototype[decoratedMethod] = calledMethod(decoratedMethod);
}
return DecoratedClass;
};
var Observable = function () {
this.listeners = {};
};
Observable.prototype.on = function (event, callback) {
this.listeners = this.listeners || {};
if (event in this.listeners) {
this.listeners[event].push(callback);
} else {
this.listeners[event] = [callback];
}
};
Observable.prototype.trigger = function (event) {
var slice = Array.prototype.slice;
this.listeners = this.listeners || {};
if (event in this.listeners) {
this.invoke(this.listeners[event], slice.call(arguments, 1));
}
if ('*' in this.listeners) {
this.invoke(this.listeners['*'], arguments);
}
};
Observable.prototype.invoke = function (listeners, params) {
for (var i = 0, len = listeners.length; i < len; i++) {
listeners[i].apply(this, params);
}
};
Utils.Observable = Observable;
Utils.generateChars = function (length) {
var chars = '';
for (var i = 0; i < length; i++) {
var randomChar = Math.floor(Math.random() * 36);
chars += randomChar.toString(36);
}
return chars;
};
Utils.bind = function (func, context) {
return function () {
func.apply(context, arguments);
};
};
Utils._convertData = function (data) {
for (var originalKey in data) {
var keys = originalKey.split('-');
var dataLevel = data;
if (keys.length === 1) {
continue;
}
for (var k = 0; k < keys.length; k++) {
var key = keys[k];
// Lowercase the first letter
// By default, dash-separated becomes camelCase
key = key.substring(0, 1).toLowerCase() + key.substring(1);
if (!(key in dataLevel)) {
dataLevel[key] = {};
}
if (k == keys.length - 1) {
dataLevel[key] = data[originalKey];
}
dataLevel = dataLevel[key];
}
delete data[originalKey];
}
return data;
};
Utils.hasScroll = function (index, el) {
// Adapted from the function created by @ShadowScripter
// and adapted by @BillBarry on the Stack Exchange Code Review website.
// The original code can be found at
// http://codereview.stackexchange.com/q/13338
// and was designed to be used with the Sizzle selector engine.
var $el = $(el);
var overflowX = el.style.overflowX;
var overflowY = el.style.overflowY;
//Check both x and y declarations
if (overflowX === overflowY &&
(overflowY === 'hidden' || overflowY === 'visible')) {
return false;
}
if (overflowX === 'scroll' || overflowY === 'scroll') {
return true;
}
return ($el.innerHeight() < el.scrollHeight ||
$el.innerWidth() < el.scrollWidth);
};
Utils.escapeMarkup = function (markup) {
var replaceMap = {
'\\': '\',
'&': '&',
'<': '<',
'>': '>',
'"': '"',
'\'': ''',
'/': '/'
};
// Do not try to escape the markup if it's not a string
if (typeof markup !== 'string') {
return markup;
}
return String(markup).replace(/[&<>"'\/\\]/g, function (match) {
return replaceMap[match];
});
};
// Append an array of jQuery nodes to a given element.
Utils.appendMany = function ($element, $nodes) {
// jQuery 1.7.x does not support $.fn.append() with an array
// Fall back to a jQuery object collection using $.fn.add()
if ($.fn.jquery.substr(0, 3) === '1.7') {
var $jqNodes = $();
$.map($nodes, function (node) {
$jqNodes = $jqNodes.add(node);
});
$nodes = $jqNodes;
}
$element.append($nodes);
};
return Utils;
});
S2.define('select2/results',[
'jquery',
'./utils'
], function ($, Utils) {
function Results ($element, options, dataAdapter) {
this.$element = $element;
this.data = dataAdapter;
this.options = options;
Results.__super__.constructor.call(this);
}
Utils.Extend(Results, Utils.Observable);
Results.prototype.render = function () {
var $results = $(
'<ul class="select2-results__options" role="tree"></ul>'
);
if (this.options.get('multiple')) {
$results.attr('aria-multiselectable', 'true');
}
this.$results = $results;
return $results;
};
Results.prototype.clear = function () {
this.$results.empty();
};
Results.prototype.displayMessage = function (params) {
var escapeMarkup = this.options.get('escapeMarkup');
this.clear();
this.hideLoading();
var $message = $(
'<li role="treeitem" aria-live="assertive"' +
' class="select2-results__option"></li>'
);
var message = this.options.get('translations').get(params.message);
$message.append(
escapeMarkup(
message(params.args)
)
);
$message[0].className += ' select2-results__message';
this.$results.append($message);
};
Results.prototype.hideMessages = function () {
this.$results.find('.select2-results__message').remove();
};
Results.prototype.append = function (data) {
this.hideLoading();
var $options = [];
if (data.results == null || data.results.length === 0) {
if (this.$results.children().length === 0) {
this.trigger('results:message', {
message: 'noResults'
});
}
return;
}
data.results = this.sort(data.results);
for (var d = 0; d < data.results.length; d++) {
var item = data.results[d];
var $option = this.option(item);
$options.push($option);
}
this.$results.append($options);
};
Results.prototype.position = function ($results, $dropdown) {
var $resultsContainer = $dropdown.find('.select2-results');
$resultsContainer.append($results);
};
Results.prototype.sort = function (data) {
var sorter = this.options.get('sorter');
return sorter(data);
};
Results.prototype.setClasses = function () {
var self = this;
this.data.current(function (selected) {
var selectedIds = $.map(selected, function (s) {
return s.id.toString();
});
var $options = self.$results
.find('.select2-results__option[aria-selected]');
$options.each(function () {
var $option = $(this);
var item = $.data(this, 'data');
// id needs to be converted to a string when comparing
var id = '' + item.id;
if ((item.element != null && item.element.selected) ||
(item.element == null && $.inArray(id, selectedIds) > -1)) {
$option.attr('aria-selected', 'true');
} else {
$option.attr('aria-selected', 'false');
}
});
var $selected = $options.filter('[aria-selected=true]');
// Check if there are any selected options
if ($selected.length > 0) {
// If there are selected options, highlight the first
$selected.first().trigger('mouseenter');
} else {
// If there are no selected options, highlight the first option
// in the dropdown
$options.first().trigger('mouseenter');
}
});
};
Results.prototype.showLoading = function (params) {
this.hideLoading();
var loadingMore = this.options.get('translations').get('searching');
var loading = {
disabled: true,
loading: true,
text: loadingMore(params)
};
var $loading = this.option(loading);
$loading.className += ' loading-results';
this.$results.prepend($loading);
};
Results.prototype.hideLoading = function () {
this.$results.find('.loading-results').remove();
};
Results.prototype.option = function (data) {
var option = document.createElement('li');
option.className = 'select2-results__option';
var attrs = {
'role': 'treeitem',
'aria-selected': 'false'
};
if (data.disabled) {
delete attrs['aria-selected'];
attrs['aria-disabled'] = 'true';
}
if (data.id == null) {
delete attrs['aria-selected'];
}
if (data._resultId != null) {
option.id = data._resultId;
}
if (data.title) {
option.title = data.title;
}
if (data.children) {
attrs.role = 'group';
attrs['aria-label'] = data.text;
delete attrs['aria-selected'];
}
for (var attr in attrs) {
var val = attrs[attr];
option.setAttribute(attr, val);
}
if (data.children) {
var $option = $(option);
var label = document.createElement('strong');
label.className = 'select2-results__group';
var $label = $(label);
this.template(data, label);
var $children = [];
for (var c = 0; c < data.children.length; c++) {
var child = data.children[c];
var $child = this.option(child);
$children.push($child);
}
var $childrenContainer = $('<ul></ul>', {
'class': 'select2-results__options select2-results__options--nested'
});
$childrenContainer.append($children);
$option.append(label);
$option.append($childrenContainer);
} else {
this.template(data, option);
}
$.data(option, 'data', data);
return option;
};
Results.prototype.bind = function (container, $container) {
var self = this;
var id = container.id + '-results';
this.$results.attr('id', id);
container.on('results:all', function (params) {
self.clear();
self.append(params.data);
if (container.isOpen()) {
self.setClasses();
}
});
container.on('results:append', function (params) {
self.append(params.data);
if (container.isOpen()) {
self.setClasses();
}
});
container.on('query', function (params) {
self.hideMessages();
self.showLoading(params);
});
container.on('select', function () {
if (!container.isOpen()) {
return;
}
self.setClasses();
});
container.on('unselect', function () {
if (!container.isOpen()) {
return;
}
self.setClasses();
});
container.on('open', function () {
// When the dropdown is open, aria-expended="true"
self.$results.attr('aria-expanded', 'true');
self.$results.attr('aria-hidden', 'false');
self.setClasses();
self.ensureHighlightVisible();
});
container.on('close', function () {
// When the dropdown is closed, aria-expended="false"
self.$results.attr('aria-expanded', 'false');
self.$results.attr('aria-hidden', 'true');
self.$results.removeAttr('aria-activedescendant');
});
container.on('results:toggle', function () {
var $highlighted = self.getHighlightedResults();
if ($highlighted.length === 0) {
return;
}
$highlighted.trigger('mouseup');
});
container.on('results:select', function () {
var $highlighted = self.getHighlightedResults();
if ($highlighted.length === 0) {
return;
}
var data = $highlighted.data('data');
if ($highlighted.attr('aria-selected') == 'true') {
self.trigger('close', {});
} else {
self.trigger('select', {
data: data
});
}
});
container.on('results:previous', function () {
var $highlighted = self.getHighlightedResults();
var $options = self.$results.find('[aria-selected]');
var currentIndex = $options.index($highlighted);
// If we are already at te top, don't move further
if (currentIndex === 0) {
return;
}
var nextIndex = currentIndex - 1;
// If none are highlighted, highlight the first
if ($highlighted.length === 0) {
nextIndex = 0;
}
var $next = $options.eq(nextIndex);
$next.trigger('mouseenter');
var currentOffset = self.$results.offset().top;
var nextTop = $next.offset().top;
var nextOffset = self.$results.scrollTop() + (nextTop - currentOffset);
if (nextIndex === 0) {
self.$results.scrollTop(0);
} else if (nextTop - currentOffset < 0) {
self.$results.scrollTop(nextOffset);
}
});
container.on('results:next', function () {
var $highlighted = self.getHighlightedResults();
var $options = self.$results.find('[aria-selected]');
var currentIndex = $options.index($highlighted);
var nextIndex = currentIndex + 1;
// If we are at the last option, stay there
if (nextIndex >= $options.length) {
return;
}
var $next = $options.eq(nextIndex);
$next.trigger('mouseenter');
var currentOffset = self.$results.offset().top +
self.$results.outerHeight(false);
var nextBottom = $next.offset().top + $next.outerHeight(false);
var nextOffset = self.$results.scrollTop() + nextBottom - currentOffset;
if (nextIndex === 0) {
self.$results.scrollTop(0);
} else if (nextBottom > currentOffset) {
self.$results.scrollTop(nextOffset);
}
});
container.on('results:focus', function (params) {
params.element.addClass('select2-results__option--highlighted');
});
container.on('results:message', function (params) {
self.displayMessage(params);
});
if ($.fn.mousewheel) {
this.$results.on('mousewheel', function (e) {
var top = self.$results.scrollTop();
var bottom = (
self.$results.get(0).scrollHeight -
self.$results.scrollTop() +
e.deltaY
);
var isAtTop = e.deltaY > 0 && top - e.deltaY <= 0;
var isAtBottom = e.deltaY < 0 && bottom <= self.$results.height();
if (isAtTop) {
self.$results.scrollTop(0);
e.preventDefault();
e.stopPropagation();
} else if (isAtBottom) {
self.$results.scrollTop(
self.$results.get(0).scrollHeight - self.$results.height()
);
e.preventDefault();
e.stopPropagation();
}
});
}
this.$results.on('mouseup', '.select2-results__option[aria-selected]',
function (evt) {
var $this = $(this);
var data = $this.data('data');
if ($this.attr('aria-selected') === 'true') {
if (self.options.get('multiple')) {
self.trigger('unselect', {
originalEvent: evt,
data: data
});
} else {
self.trigger('close', {});
}
return;
}
self.trigger('select', {
originalEvent: evt,
data: data
});
});
this.$results.on('mouseenter', '.select2-results__option[aria-selected]',
function (evt) {
var data = $(this).data('data');
self.getHighlightedResults()
.removeClass('select2-results__option--highlighted');
self.trigger('results:focus', {
data: data,
element: $(this)
});
});
};
Results.prototype.getHighlightedResults = function () {
var $highlighted = this.$results
.find('.select2-results__option--highlighted');
return $highlighted;
};
Results.prototype.destroy = function () {
this.$results.remove();
};
Results.prototype.ensureHighlightVisible = function () {
var $highlighted = this.getHighlightedResults();
if ($highlighted.length === 0) {
return;
}
var $options = this.$results.find('[aria-selected]');
var currentIndex = $options.index($highlighted);
var currentOffset = this.$results.offset().top;
var nextTop = $highlighted.offset().top;
var nextOffset = this.$results.scrollTop() + (nextTop - currentOffset);
var offsetDelta = nextTop - currentOffset;
nextOffset -= $highlighted.outerHeight(false) * 2;
if (currentIndex <= 2) {
this.$results.scrollTop(0);
} else if (offsetDelta > this.$results.outerHeight() || offsetDelta < 0) {
this.$results.scrollTop(nextOffset);
}
};
Results.prototype.template = function (result, container) {
var template = this.options.get('templateResult');
var escapeMarkup = this.options.get('escapeMarkup');
var content = template(result, container);
if (content == null) {
container.style.display = 'none';
} else if (typeof content === 'string') {
container.innerHTML = escapeMarkup(content);
} else {
$(container).append(content);
}
};
return Results;
});
S2.define('select2/keys',[
], function () {
var KEYS = {
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
SHIFT: 16,
CTRL: 17,
ALT: 18,
ESC: 27,
SPACE: 32,
PAGE_UP: 33,
PAGE_DOWN: 34,
END: 35,
HOME: 36,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
DELETE: 46
};
return KEYS;
});
S2.define('select2/selection/base',[
'jquery',
'../utils',
'../keys'
], function ($, Utils, KEYS) {
function BaseSelection ($element, options) {
this.$element = $element;
this.options = options;
BaseSelection.__super__.constructor.call(this);
}
Utils.Extend(BaseSelection, Utils.Observable);
BaseSelection.prototype.render = function () {
var $selection = $(
'<span class="select2-selection" role="combobox" ' +
' aria-haspopup="true" aria-expanded="false">' +
'</span>'
);
this._tabindex = 0;
if (this.$element.data('old-tabindex') != null) {
this._tabindex = this.$element.data('old-tabindex');
} else if (this.$element.attr('tabindex') != null) {
this._tabindex = this.$element.attr('tabindex');
}
$selection.attr('title', this.$element.attr('title'));
$selection.attr('tabindex', this._tabindex);
this.$selection = $selection;
return $selection;
};
BaseSelection.prototype.bind = function (container, $container) {
var self = this;
var id = container.id + '-container';
var resultsId = container.id + '-results';
this.container = container;
this.$selection.on('focus', function (evt) {
self.trigger('focus', evt);
});
this.$selection.on('blur', function (evt) {
self._handleBlur(evt);
});
this.$selection.on('keydown', function (evt) {
self.trigger('keypress', evt);
if (evt.which === KEYS.SPACE) {
evt.preventDefault();
}
});
container.on('results:focus', function (params) {
self.$selection.attr('aria-activedescendant', params.data._resultId);
});
container.on('selection:update', function (params) {
self.update(params.data);
});
container.on('open', function () {
// When the dropdown is open, aria-expanded="true"
self.$selection.attr('aria-expanded', 'true');
self.$selection.attr('aria-owns', resultsId);
self._attachCloseHandler(container);
});
container.on('close', function () {
// When the dropdown is closed, aria-expanded="false"
self.$selection.attr('aria-expanded', 'false');
self.$selection.removeAttr('aria-activedescendant');
self.$selection.removeAttr('aria-owns');
self.$selection.focus();
self._detachCloseHandler(container);
});
container.on('enable', function () {
self.$selection.attr('tabindex', self._tabindex);
});
container.on('disable', function () {
self.$selection.attr('tabindex', '-1');
});
};
BaseSelection.prototype._handleBlur = function (evt) {
var self = this;
// This needs to be delayed as the active element is the body when the tab
// key is pressed, possibly along with others.
window.setTimeout(function () {
// Don't trigger `blur` if the focus is still in the selection
if (
(document.activeElement == self.$selection[0]) ||
($.contains(self.$selection[0], document.activeElement))
) {
return;
}
self.trigger('blur', evt);
}, 1);
};
BaseSelection.prototype._attachCloseHandler = function (container) {
var self = this;
$(document.body).on('mousedown.select2.' + container.id, function (e) {
var $target = $(e.target);
var $select = $target.closest('.select2');
var $all = $('.select2.select2-container--open');
$all.each(function () {
var $this = $(this);
if (this == $select[0]) {
return;
}
var $element = $this.data('element');
$element.select2('close');
});
});
};
BaseSelection.prototype._detachCloseHandler = function (container) {
$(document.body).off('mousedown.select2.' + container.id);
};
BaseSelection.prototype.position = function ($selection, $container) {
var $selectionContainer = $container.find('.selection');
$selectionContainer.append($selection);
};
BaseSelection.prototype.destroy = function () {
this._detachCloseHandler(this.container);
};
BaseSelection.prototype.update = function (data) {
throw new Error('The `update` method must be defined in child classes.');
};
return BaseSelection;
});
S2.define('select2/selection/single',[
'jquery',
'./base',
'../utils',
'../keys'
], function ($, BaseSelection, Utils, KEYS) {
function SingleSelection () {
SingleSelection.__super__.constructor.apply(this, arguments);
}
Utils.Extend(SingleSelection, BaseSelection);
SingleSelection.prototype.render = function () {
var $selection = SingleSelection.__super__.render.call(this);
$selection.addClass('select2-selection--single');
$selection.html(
'<span class="select2-selection__rendered"></span>' +
'<span class="select2-selection__arrow" role="presentation">' +
'<b role="presentation"></b>' +
'</span>'
);
return $selection;
};
SingleSelection.prototype.bind = function (container, $container) {
var self = this;
SingleSelection.__super__.bind.apply(this, arguments);
var id = container.id + '-container';
this.$selection.find('.select2-selection__rendered').attr('id', id);
this.$selection.attr('aria-labelledby', id);
this.$selection.on('mousedown', function (evt) {
// Only respond to left clicks
if (evt.which !== 1) {
return;
}
self.trigger('toggle', {
originalEvent: evt
});
});
this.$selection.on('focus', function (evt) {
// User focuses on the container
});
this.$selection.on('blur', function (evt) {
// User exits the container
});
container.on('selection:update', function (params) {
self.update(params.data);
});
};
SingleSelection.prototype.clear = function () {
this.$selection.find('.select2-selection__rendered').empty();
};
SingleSelection.prototype.display = function (data, container) {
var template = this.options.get('templateSelection');
var escapeMarkup = this.options.get('escapeMarkup');
return escapeMarkup(template(data, container));
};
SingleSelection.prototype.selectionContainer = function () {
return $('<span></span>');
};
SingleSelection.prototype.update = function (data) {
if (data.length === 0) {
this.clear();
return;
}
var selection = data[0];
var $rendered = this.$selection.find('.select2-selection__rendered');
var formatted = this.display(selection, $rendered);
$rendered.empty().append(formatted);
$rendered.prop('title', selection.title || selection.text);
};
return SingleSelection;
});
S2.define('select2/selection/multiple',[
'jquery',
'./base',
'../utils'
], function ($, BaseSelection, Utils) {
function MultipleSelection ($element, options) {
MultipleSelection.__super__.constructor.apply(this, arguments);
}
Utils.Extend(MultipleSelection, BaseSelection);
MultipleSelection.prototype.render = function () {
var $selection = MultipleSelection.__super__.render.call(this);
$selection.addClass('select2-selection--multiple');
$selection.html(
'<ul class="select2-selection__rendered"></ul>'
);
return $selection;
};
MultipleSelection.prototype.bind = function (container, $container) {
var self = this;
MultipleSelection.__super__.bind.apply(this, arguments);
this.$selection.on('click', function (evt) {
self.trigger('toggle', {
originalEvent: evt
});
});
this.$selection.on(
'click',
'.select2-selection__choice__remove',
function (evt) {
// Ignore the event if it is disabled
if (self.options.get('disabled')) {
return;
}
var $remove = $(this);
var $selection = $remove.parent();
var data = $selection.data('data');
self.trigger('unselect', {
originalEvent: evt,
data: data
});
}
);
};
MultipleSelection.prototype.clear = function () {
this.$selection.find('.select2-selection__rendered').empty();
};
MultipleSelection.prototype.display = function (data, container) {
var template = this.options.get('templateSelection');
var escapeMarkup = this.options.get('escapeMarkup');
return escapeMarkup(template(data, container));
};
MultipleSelection.prototype.selectionContainer = function () {
var $container = $(
'<li class="select2-selection__choice">' +
'<span class="select2-selection__choice__remove" role="presentation">' +
'×' +
'</span>' +
'</li>'
);
return $container;
};
MultipleSelection.prototype.update = function (data) {
this.clear();
if (data.length === 0) {
return;
}
var $selections = [];
for (var d = 0; d < data.length; d++) {
var selection = data[d];
var $selection = this.selectionContainer();
var formatted = this.display(selection, $selection);
$selection.append(formatted);
$selection.prop('title', selection.title || selection.text);
$selection.data('data', selection);
$selections.push($selection);
}
var $rendered = this.$selection.find('.select2-selection__rendered');
Utils.appendMany($rendered, $selections);
};
return MultipleSelection;
});
S2.define('select2/selection/placeholder',[
'../utils'
], function (Utils) {
function Placeholder (decorated, $element, options) {
this.placeholder = this.normalizePlaceholder(options.get('placeholder'));
decorated.call(this, $element, options);
}
Placeholder.prototype.normalizePlaceholder = function (_, placeholder) {
if (typeof placeholder === 'string') {
placeholder = {
id: '',
text: placeholder
};
}
return placeholder;
};
Placeholder.prototype.createPlaceholder = function (decorated, placeholder) {
var $placeholder = this.selectionContainer();
$placeholder.html(this.display(placeholder));
$placeholder.addClass('select2-selection__placeholder')
.removeClass('select2-selection__choice');
return $placeholder;
};
Placeholder.prototype.update = function (decorated, data) {
var singlePlaceholder = (
data.length == 1 && data[0].id != this.placeholder.id
);
var multipleSelections = data.length > 1;
if (multipleSelections || singlePlaceholder) {
return decorated.call(this, data);
}
this.clear();
var $placeholder = this.createPlaceholder(this.placeholder);
this.$selection.find('.select2-selection__rendered').append($placeholder);
};
return Placeholder;
});
S2.define('select2/selection/allowClear',[
'jquery',
'../keys'
], function ($, KEYS) {
function AllowClear () { }
AllowClear.prototype.bind = function (decorated, container, $container) {
var self = this;
decorated.call(this, container, $container);
if (this.placeholder == null) {
if (this.options.get('debug') && window.console && console.error) {
console.error(
'Select2: The `allowClear` option should be used in combination ' +
'with the `placeholder` option.'
);
}
}
this.$selection.on('mousedown', '.select2-selection__clear',
function (evt) {
self._handleClear(evt);
});
container.on('keypress', function (evt) {
self._handleKeyboardClear(evt, container);
});
};
AllowClear.prototype._handleClear = function (_, evt) {
// Ignore the event if it is disabled
if (this.options.get('disabled')) {
return;
}
var $clear = this.$selection.find('.select2-selection__clear');
// Ignore the event if nothing has been selected
if ($clear.length === 0) {
return;
}
evt.stopPropagation();
var data = $clear.data('data');
for (var d = 0; d < data.length; d++) {
var unselectData = {
data: data[d]
};
// Trigger the `unselect` event, so people can prevent it from being
// cleared.
this.trigger('unselect', unselectData);
// If the event was prevented, don't clear it out.
if (unselectData.prevented) {
return;
}
}
this.$element.val(this.placeholder.id).trigger('change');
this.trigger('toggle', {});
};
AllowClear.prototype._handleKeyboardClear = function (_, evt, container) {
if (container.isOpen()) {
return;
}
if (evt.which == KEYS.DELETE || evt.which == KEYS.BACKSPACE) {
this._handleClear(evt);
}
};
AllowClear.prototype.update = function (decorated, data) {
decorated.call(this, data);
if (this.$selection.find('.select2-selection__placeholder').length > 0 ||
data.length === 0) {
return;
}
var $remove = $(
'<span class="select2-selection__clear">' +
'×' +
'</span>'
);
$remove.data('data', data);
this.$selection.find('.select2-selection__rendered').prepend($remove);
};
return AllowClear;
});
S2.define('select2/selection/search',[
'jquery',
'../utils',
'../keys'
], function ($, Utils, KEYS) {
function Search (decorated, $element, options) {
decorated.call(this, $element, options);
}
Search.prototype.render = function (decorated) {
var $search = $(
'<li class="select2-search select2-search--inline">' +
'<input class="select2-search__field" type="search" tabindex="-1"' +
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
' spellcheck="false" role="textbox" aria-autocomplete="list" />' +
'</li>'
);
this.$searchContainer = $search;
this.$search = $search.find('input');
var $rendered = decorated.call(this);
this._transferTabIndex();
return $rendered;
};
Search.prototype.bind = function (decorated, container, $container) {
var self = this;
decorated.call(this, container, $container);
container.on('open', function () {
self.$search.trigger('focus');
});
container.on('close', function () {
self.$search.val('');
self.$search.removeAttr('aria-activedescendant');
self.$search.trigger('focus');
});
container.on('enable', function () {
self.$search.prop('disabled', false);
self._transferTabIndex();
});
container.on('disable', function () {
self.$search.prop('disabled', true);
});
container.on('focus', function (evt) {
self.$search.trigger('focus');
});
container.on('results:focus', function (params) {
self.$search.attr('aria-activedescendant', params.id);
});
this.$selection.on('focusin', '.select2-search--inline', function (evt) {
self.trigger('focus', evt);
});
this.$selection.on('focusout', '.select2-search--inline', function (evt) {
self._handleBlur(evt);
});
this.$selection.on('keydown', '.select2-search--inline', function (evt) {
evt.stopPropagation();
self.trigger('keypress', evt);
self._keyUpPrevented = evt.isDefaultPrevented();
var key = evt.which;
if (key === KEYS.BACKSPACE && self.$search.val() === '') {
var $previousChoice = self.$searchContainer
.prev('.select2-selection__choice');
if ($previousChoice.length > 0) {
var item = $previousChoice.data('data');
self.searchRemoveChoice(item);
evt.preventDefault();
}
}
});
// Try to detect the IE version should the `documentMode` property that
// is stored on the document. This is only implemented in IE and is
// slightly cleaner than doing a user agent check.
// This property is not available in Edge, but Edge also doesn't have
// this bug.
var msie = document.documentMode;
var disableInputEvents = msie && msie <= 11;
// Workaround for browsers which do not support the `input` event
// This will prevent double-triggering of events for browsers which support
// both the `keyup` and `input` events.
this.$selection.on(
'input.searchcheck',
'.select2-search--inline',
function (evt) {
// IE will trigger the `input` event when a placeholder is used on a
// search box. To get around this issue, we are forced to ignore all
// `input` events in IE and keep using `keyup`.
if (disableInputEvents) {
self.$selection.off('input.search input.searchcheck');
return;
}
// Unbind the duplicated `keyup` event
self.$selection.off('keyup.search');
}
);
this.$selection.on(
'keyup.search input.search',
'.select2-search--inline',
function (evt) {
// IE will trigger the `input` event when a placeholder is used on a
// search box. To get around this issue, we are forced to ignore all
// `input` events in IE and keep using `keyup`.
if (disableInputEvents && evt.type === 'input') {
self.$selection.off('input.search input.searchcheck');
return;
}
var key = evt.which;
// We can freely ignore events from modifier keys
if (key == KEYS.SHIFT || key == KEYS.CTRL || key == KEYS.ALT) {
return;
}
// Tabbing will be handled during the `keydown` phase
if (key == KEYS.TAB) {
return;
}
self.handleSearch(evt);
}
);
};
/**
* This method will transfer the tabindex attribute from the rendered
* selection to the search box. This allows for the search box to be used as
* the primary focus instead of the selection container.
*
* @private
*/
Search.prototype._transferTabIndex = function (decorated) {
this.$search.attr('tabindex', this.$selection.attr('tabindex'));
this.$selection.attr('tabindex', '-1');
};
Search.prototype.createPlaceholder = function (decorated, placeholder) {
this.$search.attr('placeholder', placeholder.text);
};
Search.prototype.update = function (decorated, data) {
var searchHadFocus = this.$search[0] == document.activeElement;
this.$search.attr('placeholder', '');
decorated.call(this, data);
this.$selection.find('.select2-selection__rendered')
.append(this.$searchContainer);
this.resizeSearch();
if (searchHadFocus) {
this.$search.focus();
}
};
Search.prototype.handleSearch = function () {
this.resizeSearch();
if (!this._keyUpPrevented) {
var input = this.$search.val();
this.trigger('query', {
term: input
});
}
this._keyUpPrevented = false;
};
Search.prototype.searchRemoveChoice = function (decorated, item) {
this.trigger('unselect', {
data: item
});
this.$search.val(item.text);
this.handleSearch();
};
Search.prototype.resizeSearch = function () {
this.$search.css('width', '25px');
var width = '';
if (this.$search.attr('placeholder') !== '') {
width = this.$selection.find('.select2-selection__rendered').innerWidth();
} else {
var minimumWidth = this.$search.val().length + 1;
width = (minimumWidth * 0.75) + 'em';
}
this.$search.css('width', width);
};
return Search;
});
S2.define('select2/selection/eventRelay',[
'jquery'
], function ($) {
function EventRelay () { }
EventRelay.prototype.bind = function (decorated, container, $container) {
var self = this;
var relayEvents = [
'open', 'opening',
'close', 'closing',
'select', 'selecting',
'unselect', 'unselecting'
];
var preventableEvents = ['opening', 'closing', 'selecting', 'unselecting'];
decorated.call(this, container, $container);
container.on('*', function (name, params) {
// Ignore events that should not be relayed
if ($.inArray(name, relayEvents) === -1) {
return;
}
// The parameters should always be an object
params = params || {};
// Generate the jQuery event for the Select2 event
var evt = $.Event('select2:' + name, {
params: params
});
self.$element.trigger(evt);
// Only handle preventable events if it was one
if ($.inArray(name, preventableEvents) === -1) {
return;
}
params.prevented = evt.isDefaultPrevented();
});
};
return EventRelay;
});
S2.define('select2/translation',[
'jquery',
'require'
], function ($, require) {
function Translation (dict) {
this.dict = dict || {};
}
Translation.prototype.all = function () {
return this.dict;
};
Translation.prototype.get = function (key) {
return this.dict[key];
};
Translation.prototype.extend = function (translation) {
this.dict = $.extend({}, translation.all(), this.dict);
};
// Static functions
Translation._cache = {};
Translation.loadPath = function (path) {
if (!(path in Translation._cache)) {
var translations = require(path);
Translation._cache[path] = translations;
}
return new Translation(Translation._cache[path]);
};
return Translation;
});
S2.define('select2/diacritics',[
], function () {
var diacritics = {
'\u24B6': 'A',
'\uFF21': 'A',
'\u00C0': 'A',
'\u00C1': 'A',
'\u00C2': 'A',
'\u1EA6': 'A',
'\u1EA4': 'A',
'\u1EAA': 'A',
'\u1EA8': 'A',
'\u00C3': 'A',
'\u0100': 'A',
'\u0102': 'A',
'\u1EB0': 'A',
'\u1EAE': 'A',
'\u1EB4': 'A',
'\u1EB2': 'A',
'\u0226': 'A',
'\u01E0': 'A',
'\u00C4': 'A',
'\u01DE': 'A',
'\u1EA2': 'A',
'\u00C5': 'A',
'\u01FA': 'A',
'\u01CD': 'A',
'\u0200': 'A',
'\u0202': 'A',
'\u1EA0': 'A',
'\u1EAC': 'A',
'\u1EB6': 'A',
'\u1E00': 'A',
'\u0104': 'A',
'\u023A': 'A',
'\u2C6F': 'A',
'\uA732': 'AA',
'\u00C6': 'AE',
'\u01FC': 'AE',
'\u01E2': 'AE',
'\uA734': 'AO',
'\uA736': 'AU',
'\uA738': 'AV',
'\uA73A': 'AV',
'\uA73C': 'AY',
'\u24B7': 'B',
'\uFF22': 'B',
'\u1E02': 'B',
'\u1E04': 'B',
'\u1E06': 'B',
'\u0243': 'B',
'\u0182': 'B',
'\u0181': 'B',
'\u24B8': 'C',
'\uFF23': 'C',
'\u0106': 'C',
'\u0108': 'C',
'\u010A': 'C',
'\u010C': 'C',
'\u00C7': 'C',
'\u1E08': 'C',
'\u0187': 'C',
'\u023B': 'C',
'\uA73E': 'C',
'\u24B9': 'D',
'\uFF24': 'D',
'\u1E0A': 'D',
'\u010E': 'D',
'\u1E0C': 'D',
'\u1E10': 'D',
'\u1E12': 'D',
'\u1E0E': 'D',
'\u0110': 'D',
'\u018B': 'D',
'\u018A': 'D',
'\u0189': 'D',
'\uA779': 'D',
'\u01F1': 'DZ',
'\u01C4': 'DZ',
'\u01F2': 'Dz',
'\u01C5': 'Dz',
'\u24BA': 'E',
'\uFF25': 'E',
'\u00C8': 'E',
'\u00C9': 'E',
'\u00CA': 'E',
'\u1EC0': 'E',
'\u1EBE': 'E',
'\u1EC4': 'E',
'\u1EC2': 'E',
'\u1EBC': 'E',
'\u0112': 'E',
'\u1E14': 'E',
'\u1E16': 'E',
'\u0114': 'E',
'\u0116': 'E',
'\u00CB': 'E',
'\u1EBA': 'E',
'\u011A': 'E',
'\u0204': 'E',
'\u0206': 'E',
'\u1EB8': 'E',
'\u1EC6': 'E',
'\u0228': 'E',
'\u1E1C': 'E',
'\u0118': 'E',
'\u1E18': 'E',
'\u1E1A': 'E',
'\u0190': 'E',
'\u018E': 'E',
'\u24BB': 'F',
'\uFF26': 'F',
'\u1E1E': 'F',
'\u0191': 'F',
'\uA77B': 'F',
'\u24BC': 'G',
'\uFF27': 'G',
'\u01F4': 'G',
'\u011C': 'G',
'\u1E20': 'G',
'\u011E': 'G',
'\u0120': 'G',
'\u01E6': 'G',
'\u0122': 'G',
'\u01E4': 'G',
'\u0193': 'G',
'\uA7A0': 'G',
'\uA77D': 'G',
'\uA77E': 'G',
'\u24BD': 'H',
'\uFF28': 'H',
'\u0124': 'H',
'\u1E22': 'H',
'\u1E26': 'H',
'\u021E': 'H',
'\u1E24': 'H',
'\u1E28': 'H',
'\u1E2A': 'H',
'\u0126': 'H',
'\u2C67': 'H',
'\u2C75': 'H',
'\uA78D': 'H',
'\u24BE': 'I',
'\uFF29': 'I',
'\u00CC': 'I',
'\u00CD': 'I',
'\u00CE': 'I',
'\u0128': 'I',
'\u012A': 'I',
'\u012C': 'I',
'\u0130': 'I',
'\u00CF': 'I',
'\u1E2E': 'I',
'\u1EC8': 'I',
'\u01CF': 'I',
'\u0208': 'I',
'\u020A': 'I',
'\u1ECA': 'I',
'\u012E': 'I',
'\u1E2C': 'I',
'\u0197': 'I',
'\u24BF': 'J',
'\uFF2A': 'J',
'\u0134': 'J',
'\u0248': 'J',
'\u24C0': 'K',
'\uFF2B': 'K',
'\u1E30': 'K',
'\u01E8': 'K',
'\u1E32': 'K',
'\u0136': 'K',
'\u1E34': 'K',
'\u0198': 'K',
'\u2C69': 'K',
'\uA740': 'K',
'\uA742': 'K',
'\uA744': 'K',
'\uA7A2': 'K',
'\u24C1': 'L',
'\uFF2C': 'L',
'\u013F': 'L',
'\u0139': 'L',
'\u013D': 'L',
'\u1E36': 'L',
'\u1E38': 'L',
'\u013B': 'L',
'\u1E3C': 'L',
'\u1E3A': 'L',
'\u0141': 'L',
'\u023D': 'L',
'\u2C62': 'L',
'\u2C60': 'L',
'\uA748': 'L',
'\uA746': 'L',
'\uA780': 'L',
'\u01C7': 'LJ',
'\u01C8': 'Lj',
'\u24C2': 'M',
'\uFF2D': 'M',
'\u1E3E': 'M',
'\u1E40': 'M',
'\u1E42': 'M',
'\u2C6E': 'M',
'\u019C': 'M',
'\u24C3': 'N',
'\uFF2E': 'N',
'\u01F8': 'N',
'\u0143': 'N',
'\u00D1': 'N',
'\u1E44': 'N',
'\u0147': 'N',
'\u1E46': 'N',
'\u0145': 'N',
'\u1E4A': 'N',
'\u1E48': 'N',
'\u0220': 'N',
'\u019D': 'N',
'\uA790': 'N',
'\uA7A4': 'N',
'\u01CA': 'NJ',
'\u01CB': 'Nj',
'\u24C4': 'O',
'\uFF2F': 'O',
'\u00D2': 'O',
'\u00D3': 'O',
'\u00D4': 'O',
'\u1ED2': 'O',
'\u1ED0': 'O',
'\u1ED6': 'O',
'\u1ED4': 'O',
'\u00D5': 'O',
'\u1E4C': 'O',
'\u022C': 'O',
'\u1E4E': 'O',
'\u014C': 'O',
'\u1E50': 'O',
'\u1E52': 'O',
'\u014E': 'O',
'\u022E': 'O',
'\u0230': 'O',
'\u00D6': 'O',
'\u022A': 'O',
'\u1ECE': 'O',
'\u0150': 'O',
'\u01D1': 'O',
'\u020C': 'O',
'\u020E': 'O',
'\u01A0': 'O',
'\u1EDC': 'O',
'\u1EDA': 'O',
'\u1EE0': 'O',
'\u1EDE': 'O',
'\u1EE2': 'O',
'\u1ECC': 'O',
'\u1ED8': 'O',
'\u01EA': 'O',
'\u01EC': 'O',
'\u00D8': 'O',
'\u01FE': 'O',
'\u0186': 'O',
'\u019F': 'O',
'\uA74A': 'O',
'\uA74C': 'O',
'\u01A2': 'OI',
'\uA74E': 'OO',
'\u0222': 'OU',
'\u24C5': 'P',
'\uFF30': 'P',
'\u1E54': 'P',
'\u1E56': 'P',
'\u01A4': 'P',
'\u2C63': 'P',
'\uA750': 'P',
'\uA752': 'P',
'\uA754': 'P',
'\u24C6': 'Q',
'\uFF31': 'Q',
'\uA756': 'Q',
'\uA758': 'Q',
'\u024A': 'Q',
'\u24C7': 'R',
'\uFF32': 'R',
'\u0154': 'R',
'\u1E58': 'R',
'\u0158': 'R',
'\u0210': 'R',
'\u0212': 'R',
'\u1E5A': 'R',
'\u1E5C': 'R',
'\u0156': 'R',
'\u1E5E': 'R',
'\u024C': 'R',
'\u2C64': 'R',
'\uA75A': 'R',
'\uA7A6': 'R',
'\uA782': 'R',
'\u24C8': 'S',
'\uFF33': 'S',
'\u1E9E': 'S',
'\u015A': 'S',
'\u1E64': 'S',
'\u015C': 'S',
'\u1E60': 'S',
'\u0160': 'S',
'\u1E66': 'S',
'\u1E62': 'S',
'\u1E68': 'S',
'\u0218': 'S',
'\u015E': 'S',
'\u2C7E': 'S',
'\uA7A8': 'S',
'\uA784': 'S',
'\u24C9': 'T',
'\uFF34': 'T',
'\u1E6A': 'T',
'\u0164': 'T',
'\u1E6C': 'T',
'\u021A': 'T',
'\u0162': 'T',
'\u1E70': 'T',
'\u1E6E': 'T',
'\u0166': 'T',
'\u01AC': 'T',
'\u01AE': 'T',
'\u023E': 'T',
'\uA786': 'T',
'\uA728': 'TZ',
'\u24CA': 'U',
'\uFF35': 'U',
'\u00D9': 'U',
'\u00DA': 'U',
'\u00DB': 'U',
'\u0168': 'U',
'\u1E78': 'U',
'\u016A': 'U',
'\u1E7A': 'U',
'\u016C': 'U',
'\u00DC': 'U',
'\u01DB': 'U',
'\u01D7': 'U',
'\u01D5': 'U',
'\u01D9': 'U',
'\u1EE6': 'U',
'\u016E': 'U',
'\u0170': 'U',
'\u01D3': 'U',
'\u0214': 'U',
'\u0216': 'U',
'\u01AF': 'U',
'\u1EEA': 'U',
'\u1EE8': 'U',
'\u1EEE': 'U',
'\u1EEC': 'U',
'\u1EF0': 'U',
'\u1EE4': 'U',
'\u1E72': 'U',
'\u0172': 'U',
'\u1E76': 'U',
'\u1E74': 'U',
'\u0244': 'U',
'\u24CB': 'V',
'\uFF36': 'V',
'\u1E7C': 'V',
'\u1E7E': 'V',
'\u01B2': 'V',
'\uA75E': 'V',
'\u0245': 'V',
'\uA760': 'VY',
'\u24CC': 'W',
'\uFF37': 'W',
'\u1E80': 'W',
'\u1E82': 'W',
'\u0174': 'W',
'\u1E86': 'W',
'\u1E84': 'W',
'\u1E88': 'W',
'\u2C72': 'W',
'\u24CD': 'X',
'\uFF38': 'X',
'\u1E8A': 'X',
'\u1E8C': 'X',
'\u24CE': 'Y',
'\uFF39': 'Y',
'\u1EF2': 'Y',
'\u00DD': 'Y',
'\u0176': 'Y',
'\u1EF8': 'Y',
'\u0232': 'Y',
'\u1E8E': 'Y',
'\u0178': 'Y',
'\u1EF6': 'Y',
'\u1EF4': 'Y',
'\u01B3': 'Y',
'\u024E': 'Y',
'\u1EFE': 'Y',
'\u24CF': 'Z',
'\uFF3A': 'Z',
'\u0179': 'Z',
'\u1E90': 'Z',
'\u017B': 'Z',
'\u017D': 'Z',
'\u1E92': 'Z',
'\u1E94': 'Z',
'\u01B5': 'Z',
'\u0224': 'Z',
'\u2C7F': 'Z',
'\u2C6B': 'Z',
'\uA762': 'Z',
'\u24D0': 'a',
'\uFF41': 'a',
'\u1E9A': 'a',
'\u00E0': 'a',
'\u00E1': 'a',
'\u00E2': 'a',
'\u1EA7': 'a',
'\u1EA5': 'a',
'\u1EAB': 'a',
'\u1EA9': 'a',
'\u00E3': 'a',
'\u0101': 'a',
'\u0103': 'a',
'\u1EB1': 'a',
'\u1EAF': 'a',
'\u1EB5': 'a',
'\u1EB3': 'a',
'\u0227': 'a',
'\u01E1': 'a',
'\u00E4': 'a',
'\u01DF': 'a',
'\u1EA3': 'a',
'\u00E5': 'a',
'\u01FB': 'a',
'\u01CE': 'a',
'\u0201': 'a',
'\u0203': 'a',
'\u1EA1': 'a',
'\u1EAD': 'a',
'\u1EB7': 'a',
'\u1E01': 'a',
'\u0105': 'a',
'\u2C65': 'a',
'\u0250': 'a',
'\uA733': 'aa',
'\u00E6': 'ae',
'\u01FD': 'ae',
'\u01E3': 'ae',
'\uA735': 'ao',
'\uA737': 'au',
'\uA739': 'av',
'\uA73B': 'av',
'\uA73D': 'ay',
'\u24D1': 'b',
'\uFF42': 'b',
'\u1E03': 'b',
'\u1E05': 'b',
'\u1E07': 'b',
'\u0180': 'b',
'\u0183': 'b',
'\u0253': 'b',
'\u24D2': 'c',
'\uFF43': 'c',
'\u0107': 'c',
'\u0109': 'c',
'\u010B': 'c',
'\u010D': 'c',
'\u00E7': 'c',
'\u1E09': 'c',
'\u0188': 'c',
'\u023C': 'c',
'\uA73F': 'c',
'\u2184': 'c',
'\u24D3': 'd',
'\uFF44': 'd',
'\u1E0B': 'd',
'\u010F': 'd',
'\u1E0D': 'd',
'\u1E11': 'd',
'\u1E13': 'd',
'\u1E0F': 'd',
'\u0111': 'd',
'\u018C': 'd',
'\u0256': 'd',
'\u0257': 'd',
'\uA77A': 'd',
'\u01F3': 'dz',
'\u01C6': 'dz',
'\u24D4': 'e',
'\uFF45': 'e',
'\u00E8': 'e',
'\u00E9': 'e',
'\u00EA': 'e',
'\u1EC1': 'e',
'\u1EBF': 'e',
'\u1EC5': 'e',
'\u1EC3': 'e',
'\u1EBD': 'e',
'\u0113': 'e',
'\u1E15': 'e',
'\u1E17': 'e',
'\u0115': 'e',
'\u0117': 'e',
'\u00EB': 'e',
'\u1EBB': 'e',
'\u011B': 'e',
'\u0205': 'e',
'\u0207': 'e',
'\u1EB9': 'e',
'\u1EC7': 'e',
'\u0229': 'e',
'\u1E1D': 'e',
'\u0119': 'e',
'\u1E19': 'e',
'\u1E1B': 'e',
'\u0247': 'e',
'\u025B': 'e',
'\u01DD': 'e',
'\u24D5': 'f',
'\uFF46': 'f',
'\u1E1F': 'f',
'\u0192': 'f',
'\uA77C': 'f',
'\u24D6': 'g',
'\uFF47': 'g',
'\u01F5': 'g',
'\u011D': 'g',
'\u1E21': 'g',
'\u011F': 'g',
'\u0121': 'g',
'\u01E7': 'g',
'\u0123': 'g',
'\u01E5': 'g',
'\u0260': 'g',
'\uA7A1': 'g',
'\u1D79': 'g',
'\uA77F': 'g',
'\u24D7': 'h',
'\uFF48': 'h',
'\u0125': 'h',
'\u1E23': 'h',
'\u1E27': 'h',
'\u021F': 'h',
'\u1E25': 'h',
'\u1E29': 'h',
'\u1E2B': 'h',
'\u1E96': 'h',
'\u0127': 'h',
'\u2C68': 'h',
'\u2C76': 'h',
'\u0265': 'h',
'\u0195': 'hv',
'\u24D8': 'i',
'\uFF49': 'i',
'\u00EC': 'i',
'\u00ED': 'i',
'\u00EE': 'i',
'\u0129': 'i',
'\u012B': 'i',
'\u012D': 'i',
'\u00EF': 'i',
'\u1E2F': 'i',
'\u1EC9': 'i',
'\u01D0': 'i',
'\u0209': 'i',
'\u020B': 'i',
'\u1ECB': 'i',
'\u012F': 'i',
'\u1E2D': 'i',
'\u0268': 'i',
'\u0131': 'i',
'\u24D9': 'j',
'\uFF4A': 'j',
'\u0135': 'j',
'\u01F0': 'j',
'\u0249': 'j',
'\u24DA': 'k',
'\uFF4B': 'k',
'\u1E31': 'k',
'\u01E9': 'k',
'\u1E33': 'k',
'\u0137': 'k',
'\u1E35': 'k',
'\u0199': 'k',
'\u2C6A': 'k',
'\uA741': 'k',
'\uA743': 'k',
'\uA745': 'k',
'\uA7A3': 'k',
'\u24DB': 'l',
'\uFF4C': 'l',
'\u0140': 'l',
'\u013A': 'l',
'\u013E': 'l',
'\u1E37': 'l',
'\u1E39': 'l',
'\u013C': 'l',
'\u1E3D': 'l',
'\u1E3B': 'l',
'\u017F': 'l',
'\u0142': 'l',
'\u019A': 'l',
'\u026B': 'l',
'\u2C61': 'l',
'\uA749': 'l',
'\uA781': 'l',
'\uA747': 'l',
'\u01C9': 'lj',
'\u24DC': 'm',
'\uFF4D': 'm',
'\u1E3F': 'm',
'\u1E41': 'm',
'\u1E43': 'm',
'\u0271': 'm',
'\u026F': 'm',
'\u24DD': 'n',
'\uFF4E': 'n',
'\u01F9': 'n',
'\u0144': 'n',
'\u00F1': 'n',
'\u1E45': 'n',
'\u0148': 'n',
'\u1E47': 'n',
'\u0146': 'n',
'\u1E4B': 'n',
'\u1E49': 'n',
'\u019E': 'n',
'\u0272': 'n',
'\u0149': 'n',
'\uA791': 'n',
'\uA7A5': 'n',
'\u01CC': 'nj',
'\u24DE': 'o',
'\uFF4F': 'o',
'\u00F2': 'o',
'\u00F3': 'o',
'\u00F4': 'o',
'\u1ED3': 'o',
'\u1ED1': 'o',
'\u1ED7': 'o',
'\u1ED5': 'o',
'\u00F5': 'o',
'\u1E4D': 'o',
'\u022D': 'o',
'\u1E4F': 'o',
'\u014D': 'o',
'\u1E51': 'o',
'\u1E53': 'o',
'\u014F': 'o',
'\u022F': 'o',
'\u0231': 'o',
'\u00F6': 'o',
'\u022B': 'o',
'\u1ECF': 'o',
'\u0151': 'o',
'\u01D2': 'o',
'\u020D': 'o',
'\u020F': 'o',
'\u01A1': 'o',
'\u1EDD': 'o',
'\u1EDB': 'o',
'\u1EE1': 'o',
'\u1EDF': 'o',
'\u1EE3': 'o',
'\u1ECD': 'o',
'\u1ED9': 'o',
'\u01EB': 'o',
'\u01ED': 'o',
'\u00F8': 'o',
'\u01FF': 'o',
'\u0254': 'o',
'\uA74B': 'o',
'\uA74D': 'o',
'\u0275': 'o',
'\u01A3': 'oi',
'\u0223': 'ou',
'\uA74F': 'oo',
'\u24DF': 'p',
'\uFF50': 'p',
'\u1E55': 'p',
'\u1E57': 'p',
'\u01A5': 'p',
'\u1D7D': 'p',
'\uA751': 'p',
'\uA753': 'p',
'\uA755': 'p',
'\u24E0': 'q',
'\uFF51': 'q',
'\u024B': 'q',
'\uA757': 'q',
'\uA759': 'q',
'\u24E1': 'r',
'\uFF52': 'r',
'\u0155': 'r',
'\u1E59': 'r',
'\u0159': 'r',
'\u0211': 'r',
'\u0213': 'r',
'\u1E5B': 'r',
'\u1E5D': 'r',
'\u0157': 'r',
'\u1E5F': 'r',
'\u024D': 'r',
'\u027D': 'r',
'\uA75B': 'r',
'\uA7A7': 'r',
'\uA783': 'r',
'\u24E2': 's',
'\uFF53': 's',
'\u00DF': 's',
'\u015B': 's',
'\u1E65': 's',
'\u015D': 's',
'\u1E61': 's',
'\u0161': 's',
'\u1E67': 's',
'\u1E63': 's',
'\u1E69': 's',
'\u0219': 's',
'\u015F': 's',
'\u023F': 's',
'\uA7A9': 's',
'\uA785': 's',
'\u1E9B': 's',
'\u24E3': 't',
'\uFF54': 't',
'\u1E6B': 't',
'\u1E97': 't',
'\u0165': 't',
'\u1E6D': 't',
'\u021B': 't',
'\u0163': 't',
'\u1E71': 't',
'\u1E6F': 't',
'\u0167': 't',
'\u01AD': 't',
'\u0288': 't',
'\u2C66': 't',
'\uA787': 't',
'\uA729': 'tz',
'\u24E4': 'u',
'\uFF55': 'u',
'\u00F9': 'u',
'\u00FA': 'u',
'\u00FB': 'u',
'\u0169': 'u',
'\u1E79': 'u',
'\u016B': 'u',
'\u1E7B': 'u',
'\u016D': 'u',
'\u00FC': 'u',
'\u01DC': 'u',
'\u01D8': 'u',
'\u01D6': 'u',
'\u01DA': 'u',
'\u1EE7': 'u',
'\u016F': 'u',
'\u0171': 'u',
'\u01D4': 'u',
'\u0215': 'u',
'\u0217': 'u',
'\u01B0': 'u',
'\u1EEB': 'u',
'\u1EE9': 'u',
'\u1EEF': 'u',
'\u1EED': 'u',
'\u1EF1': 'u',
'\u1EE5': 'u',
'\u1E73': 'u',
'\u0173': 'u',
'\u1E77': 'u',
'\u1E75': 'u',
'\u0289': 'u',
'\u24E5': 'v',
'\uFF56': 'v',
'\u1E7D': 'v',
'\u1E7F': 'v',
'\u028B': 'v',
'\uA75F': 'v',
'\u028C': 'v',
'\uA761': 'vy',
'\u24E6': 'w',
'\uFF57': 'w',
'\u1E81': 'w',
'\u1E83': 'w',
'\u0175': 'w',
'\u1E87': 'w',
'\u1E85': 'w',
'\u1E98': 'w',
'\u1E89': 'w',
'\u2C73': 'w',
'\u24E7': 'x',
'\uFF58': 'x',
'\u1E8B': 'x',
'\u1E8D': 'x',
'\u24E8': 'y',
'\uFF59': 'y',
'\u1EF3': 'y',
'\u00FD': 'y',
'\u0177': 'y',
'\u1EF9': 'y',
'\u0233': 'y',
'\u1E8F': 'y',
'\u00FF': 'y',
'\u1EF7': 'y',
'\u1E99': 'y',
'\u1EF5': 'y',
'\u01B4': 'y',
'\u024F': 'y',
'\u1EFF': 'y',
'\u24E9': 'z',
'\uFF5A': 'z',
'\u017A': 'z',
'\u1E91': 'z',
'\u017C': 'z',
'\u017E': 'z',
'\u1E93': 'z',
'\u1E95': 'z',
'\u01B6': 'z',
'\u0225': 'z',
'\u0240': 'z',
'\u2C6C': 'z',
'\uA763': 'z',
'\u0386': '\u0391',
'\u0388': '\u0395',
'\u0389': '\u0397',
'\u038A': '\u0399',
'\u03AA': '\u0399',
'\u038C': '\u039F',
'\u038E': '\u03A5',
'\u03AB': '\u03A5',
'\u038F': '\u03A9',
'\u03AC': '\u03B1',
'\u03AD': '\u03B5',
'\u03AE': '\u03B7',
'\u03AF': '\u03B9',
'\u03CA': '\u03B9',
'\u0390': '\u03B9',
'\u03CC': '\u03BF',
'\u03CD': '\u03C5',
'\u03CB': '\u03C5',
'\u03B0': '\u03C5',
'\u03C9': '\u03C9',
'\u03C2': '\u03C3'
};
return diacritics;
});
S2.define('select2/data/base',[
'../utils'
], function (Utils) {
function BaseAdapter ($element, options) {
BaseAdapter.__super__.constructor.call(this);
}
Utils.Extend(BaseAdapter, Utils.Observable);
BaseAdapter.prototype.current = function (callback) {
throw new Error('The `current` method must be defined in child classes.');
};
BaseAdapter.prototype.query = function (params, callback) {
throw new Error('The `query` method must be defined in child classes.');
};
BaseAdapter.prototype.bind = function (container, $container) {
// Can be implemented in subclasses
};
BaseAdapter.prototype.destroy = function () {
// Can be implemented in subclasses
};
BaseAdapter.prototype.generateResultId = function (container, data) {
var id = container.id + '-result-';
id += Utils.generateChars(4);
if (data.id != null) {
id += '-' + data.id.toString();
} else {
id += '-' + Utils.generateChars(4);
}
return id;
};
return BaseAdapter;
});
S2.define('select2/data/select',[
'./base',
'../utils',
'jquery'
], function (BaseAdapter, Utils, $) {
function SelectAdapter ($element, options) {
this.$element = $element;
this.options = options;
SelectAdapter.__super__.constructor.call(this);
}
Utils.Extend(SelectAdapter, BaseAdapter);
SelectAdapter.prototype.current = function (callback) {
var data = [];
var self = this;
this.$element.find(':selected').each(function () {
var $option = $(this);
var option = self.item($option);
data.push(option);
});
callback(data);
};
SelectAdapter.prototype.select = function (data) {
var self = this;
data.selected = true;
// If data.element is a DOM node, use it instead
if ($(data.element).is('option')) {
data.element.selected = true;
this.$element.trigger('change');
return;
}
if (this.$element.prop('multiple')) {
this.current(function (currentData) {
var val = [];
data = [data];
data.push.apply(data, currentData);
for (var d = 0; d < data.length; d++) {
var id = data[d].id;
if ($.inArray(id, val) === -1) {
val.push(id);
}
}
self.$element.val(val);
self.$element.trigger('change');
});
} else {
var val = data.id;
this.$element.val(val);
this.$element.trigger('change');
}
};
SelectAdapter.prototype.unselect = function (data) {
var self = this;
if (!this.$element.prop('multiple')) {
return;
}
data.selected = false;
if ($(data.element).is('option')) {
data.element.selected = false;
this.$element.trigger('change');
return;
}
this.current(function (currentData) {
var val = [];
for (var d = 0; d < currentData.length; d++) {
var id = currentData[d].id;
if (id !== data.id && $.inArray(id, val) === -1) {
val.push(id);
}
}
self.$element.val(val);
self.$element.trigger('change');
});
};
SelectAdapter.prototype.bind = function (container, $container) {
var self = this;
this.container = container;
container.on('select', function (params) {
self.select(params.data);
});
container.on('unselect', function (params) {
self.unselect(params.data);
});
};
SelectAdapter.prototype.destroy = function () {
// Remove anything added to child elements
this.$element.find('*').each(function () {
// Remove any custom data set by Select2
$.removeData(this, 'data');
});
};
SelectAdapter.prototype.query = function (params, callback) {
var data = [];
var self = this;
var $options = this.$element.children();
$options.each(function () {
var $option = $(this);
if (!$option.is('option') && !$option.is('optgroup')) {
return;
}
var option = self.item($option);
var matches = self.matches(params, option);
if (matches !== null) {
data.push(matches);
}
});
callback({
results: data
});
};
SelectAdapter.prototype.addOptions = function ($options) {
Utils.appendMany(this.$element, $options);
};
SelectAdapter.prototype.option = function (data) {
var option;
if (data.children) {
option = document.createElement('optgroup');
option.label = data.text;
} else {
option = document.createElement('option');
if (option.textContent !== undefined) {
option.textContent = data.text;
} else {
option.innerText = data.text;
}
}
if (data.id) {
option.value = data.id;
}
if (data.disabled) {
option.disabled = true;
}
if (data.selected) {
option.selected = true;
}
if (data.title) {
option.title = data.title;
}
var $option = $(option);
var normalizedData = this._normalizeItem(data);
normalizedData.element = option;
// Override the option's data with the combined data
$.data(option, 'data', normalizedData);
return $option;
};
SelectAdapter.prototype.item = function ($option) {
var data = {};
data = $.data($option[0], 'data');
if (data != null) {
return data;
}
if ($option.is('option')) {
data = {
id: $option.val(),
text: $option.text(),
disabled: $option.prop('disabled'),
selected: $option.prop('selected'),
title: $option.prop('title')
};
} else if ($option.is('optgroup')) {
data = {
text: $option.prop('label'),
children: [],
title: $option.prop('title')
};
var $children = $option.children('option');
var children = [];
for (var c = 0; c < $children.length; c++) {
var $child = $($children[c]);
var child = this.item($child);
children.push(child);
}
data.children = children;
}
data = this._normalizeItem(data);
data.element = $option[0];
$.data($option[0], 'data', data);
return data;
};
SelectAdapter.prototype._normalizeItem = function (item) {
if (!$.isPlainObject(item)) {
item = {
id: item,
text: item
};
}
item = $.extend({}, {
text: ''
}, item);
var defaults = {
selected: false,
disabled: false
};
if (item.id != null) {
item.id = item.id.toString();
}
if (item.text != null) {
item.text = item.text.toString();
}
if (item._resultId == null && item.id && this.container != null) {
item._resultId = this.generateResultId(this.container, item);
}
return $.extend({}, defaults, item);
};
SelectAdapter.prototype.matches = function (params, data) {
var matcher = this.options.get('matcher');
return matcher(params, data);
};
return SelectAdapter;
});
S2.define('select2/data/array',[
'./select',
'../utils',
'jquery'
], function (SelectAdapter, Utils, $) {
function ArrayAdapter ($element, options) {
var data = options.get('data') || [];
ArrayAdapter.__super__.constructor.call(this, $element, options);
this.addOptions(this.convertToOptions(data));
}
Utils.Extend(ArrayAdapter, SelectAdapter);
ArrayAdapter.prototype.select = function (data) {
var $option = this.$element.find('option').filter(function (i, elm) {
return elm.value == data.id.toString();
});
if ($option.length === 0) {
$option = this.option(data);
this.addOptions($option);
}
ArrayAdapter.__super__.select.call(this, data);
};
ArrayAdapter.prototype.convertToOptions = function (data) {
var self = this;
var $existing = this.$element.find('option');
var existingIds = $existing.map(function () {
return self.item($(this)).id;
}).get();
var $options = [];
// Filter out all items except for the one passed in the argument
function onlyItem (item) {
return function () {
return $(this).val() == item.id;
};
}
for (var d = 0; d < data.length; d++) {
var item = this._normalizeItem(data[d]);
// Skip items which were pre-loaded, only merge the data
if ($.inArray(item.id, existingIds) >= 0) {
var $existingOption = $existing.filter(onlyItem(item));
var existingData = this.item($existingOption);
var newData = $.extend(true, {}, existingData, item);
var $newOption = this.option(newData);
$existingOption.replaceWith($newOption);
continue;
}
var $option = this.option(item);
if (item.children) {
var $children = this.convertToOptions(item.children);
Utils.appendMany($option, $children);
}
$options.push($option);
}
return $options;
};
return ArrayAdapter;
});
S2.define('select2/data/ajax',[
'./array',
'../utils',
'jquery'
], function (ArrayAdapter, Utils, $) {
function AjaxAdapter ($element, options) {
this.ajaxOptions = this._applyDefaults(options.get('ajax'));
if (this.ajaxOptions.processResults != null) {
this.processResults = this.ajaxOptions.processResults;
}
AjaxAdapter.__super__.constructor.call(this, $element, options);
}
Utils.Extend(AjaxAdapter, ArrayAdapter);
AjaxAdapter.prototype._applyDefaults = function (options) {
var defaults = {
data: function (params) {
return $.extend({}, params, {
q: params.term
});
},
transport: function (params, success, failure) {
var $request = $.ajax(params);
$request.then(success);
$request.fail(failure);
return $request;
}
};
return $.extend({}, defaults, options, true);
};
AjaxAdapter.prototype.processResults = function (results) {
return results;
};
AjaxAdapter.prototype.query = function (params, callback) {
var matches = [];
var self = this;
if (this._request != null) {
// JSONP requests cannot always be aborted
if ($.isFunction(this._request.abort)) {
this._request.abort();
}
this._request = null;
}
var options = $.extend({
type: 'GET'
}, this.ajaxOptions);
if (typeof options.url === 'function') {
options.url = options.url.call(this.$element, params);
}
if (typeof options.data === 'function') {
options.data = options.data.call(this.$element, params);
}
function request () {
var $request = options.transport(options, function (data) {
var results = self.processResults(data, params);
if (self.options.get('debug') && window.console && console.error) {
// Check to make sure that the response included a `results` key.
if (!results || !results.results || !$.isArray(results.results)) {
console.error(
'Select2: The AJAX results did not return an array in the ' +
'`results` key of the response.'
);
}
}
callback(results);
}, function () {
// TODO: Handle AJAX errors
});
self._request = $request;
}
if (this.ajaxOptions.delay && params.term !== '') {
if (this._queryTimeout) {
window.clearTimeout(this._queryTimeout);
}
this._queryTimeout = window.setTimeout(request, this.ajaxOptions.delay);
} else {
request();
}
};
return AjaxAdapter;
});
S2.define('select2/data/tags',[
'jquery'
], function ($) {
function Tags (decorated, $element, options) {
var tags = options.get('tags');
var createTag = options.get('createTag');
if (createTag !== undefined) {
this.createTag = createTag;
}
decorated.call(this, $element, options);
if ($.isArray(tags)) {
for (var t = 0; t < tags.length; t++) {
var tag = tags[t];
var item = this._normalizeItem(tag);
var $option = this.option(item);
this.$element.append($option);
}
}
}
Tags.prototype.query = function (decorated, params, callback) {
var self = this;
this._removeOldTags();
if (params.term == null || params.page != null) {
decorated.call(this, params, callback);
return;
}
function wrapper (obj, child) {
var data = obj.results;
for (var i = 0; i < data.length; i++) {
var option = data[i];
var checkChildren = (
option.children != null &&
!wrapper({
results: option.children
}, true)
);
var checkText = option.text === params.term;
if (checkText || checkChildren) {
if (child) {
return false;
}
obj.data = data;
callback(obj);
return;
}
}
if (child) {
return true;
}
var tag = self.createTag(params);
if (tag != null) {
var $option = self.option(tag);
$option.attr('data-select2-tag', true);
self.addOptions([$option]);
self.insertTag(data, tag);
}
obj.results = data;
callback(obj);
}
decorated.call(this, params, wrapper);
};
Tags.prototype.createTag = function (decorated, params) {
var term = $.trim(params.term);
if (term === '') {
return null;
}
return {
id: term,
text: term
};
};
Tags.prototype.insertTag = function (_, data, tag) {
data.unshift(tag);
};
Tags.prototype._removeOldTags = function (_) {
var tag = this._lastTag;
var $options = this.$element.find('option[data-select2-tag]');
$options.each(function () {
if (this.selected) {
return;
}
$(this).remove();
});
};
return Tags;
});
S2.define('select2/data/tokenizer',[
'jquery'
], function ($) {
function Tokenizer (decorated, $element, options) {
var tokenizer = options.get('tokenizer');
if (tokenizer !== undefined) {
this.tokenizer = tokenizer;
}
decorated.call(this, $element, options);
}
Tokenizer.prototype.bind = function (decorated, container, $container) {
decorated.call(this, container, $container);
this.$search = container.dropdown.$search || container.selection.$search ||
$container.find('.select2-search__field');
};
Tokenizer.prototype.query = function (decorated, params, callback) {
var self = this;
function select (data) {
self.trigger('select', {
data: data
});
}
params.term = params.term || '';
var tokenData = this.tokenizer(params, this.options, select);
if (tokenData.term !== params.term) {
// Replace the search term if we have the search box
if (this.$search.length) {
this.$search.val(tokenData.term);
this.$search.focus();
}
params.term = tokenData.term;
}
decorated.call(this, params, callback);
};
Tokenizer.prototype.tokenizer = function (_, params, options, callback) {
var separators = options.get('tokenSeparators') || [];
var term = params.term;
var i = 0;
var createTag = this.createTag || function (params) {
return {
id: params.term,
text: params.term
};
};
while (i < term.length) {
var termChar = term[i];
if ($.inArray(termChar, separators) === -1) {
i++;
continue;
}
var part = term.substr(0, i);
var partParams = $.extend({}, params, {
term: part
});
var data = createTag(partParams);
if (data == null) {
i++;
continue;
}
callback(data);
// Reset the term to not include the tokenized portion
term = term.substr(i + 1) || '';
i = 0;
}
return {
term: term
};
};
return Tokenizer;
});
S2.define('select2/data/minimumInputLength',[
], function () {
function MinimumInputLength (decorated, $e, options) {
this.minimumInputLength = options.get('minimumInputLength');
decorated.call(this, $e, options);
}
MinimumInputLength.prototype.query = function (decorated, params, callback) {
params.term = params.term || '';
if (params.term.length < this.minimumInputLength) {
this.trigger('results:message', {
message: 'inputTooShort',
args: {
minimum: this.minimumInputLength,
input: params.term,
params: params
}
});
return;
}
decorated.call(this, params, callback);
};
return MinimumInputLength;
});
S2.define('select2/data/maximumInputLength',[
], function () {
function MaximumInputLength (decorated, $e, options) {
this.maximumInputLength = options.get('maximumInputLength');
decorated.call(this, $e, options);
}
MaximumInputLength.prototype.query = function (decorated, params, callback) {
params.term = params.term || '';
if (this.maximumInputLength > 0 &&
params.term.length > this.maximumInputLength) {
this.trigger('results:message', {
message: 'inputTooLong',
args: {
maximum: this.maximumInputLength,
input: params.term,
params: params
}
});
return;
}
decorated.call(this, params, callback);
};
return MaximumInputLength;
});
S2.define('select2/data/maximumSelectionLength',[
], function (){
function MaximumSelectionLength (decorated, $e, options) {
this.maximumSelectionLength = options.get('maximumSelectionLength');
decorated.call(this, $e, options);
}
MaximumSelectionLength.prototype.query =
function (decorated, params, callback) {
var self = this;
this.current(function (currentData) {
var count = currentData != null ? currentData.length : 0;
if (self.maximumSelectionLength > 0 &&
count >= self.maximumSelectionLength) {
self.trigger('results:message', {
message: 'maximumSelected',
args: {
maximum: self.maximumSelectionLength
}
});
return;
}
decorated.call(self, params, callback);
});
};
return MaximumSelectionLength;
});
S2.define('select2/dropdown',[
'jquery',
'./utils'
], function ($, Utils) {
function Dropdown ($element, options) {
this.$element = $element;
this.options = options;
Dropdown.__super__.constructor.call(this);
}
Utils.Extend(Dropdown, Utils.Observable);
Dropdown.prototype.render = function () {
var $dropdown = $(
'<span class="select2-dropdown">' +
'<span class="select2-results"></span>' +
'</span>'
);
$dropdown.attr('dir', this.options.get('dir'));
this.$dropdown = $dropdown;
return $dropdown;
};
Dropdown.prototype.bind = function () {
// Should be implemented in subclasses
};
Dropdown.prototype.position = function ($dropdown, $container) {
// Should be implmented in subclasses
};
Dropdown.prototype.destroy = function () {
// Remove the dropdown from the DOM
this.$dropdown.remove();
};
return Dropdown;
});
S2.define('select2/dropdown/search',[
'jquery',
'../utils'
], function ($, Utils) {
function Search () { }
Search.prototype.render = function (decorated) {
var $rendered = decorated.call(this);
var $search = $(
'<span class="select2-search select2-search--dropdown">' +
'<input class="select2-search__field" type="search" tabindex="-1"' +
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
' spellcheck="false" role="textbox" />' +
'</span>'
);
this.$searchContainer = $search;
this.$search = $search.find('input');
$rendered.prepend($search);
return $rendered;
};
Search.prototype.bind = function (decorated, container, $container) {
var self = this;
decorated.call(this, container, $container);
this.$search.on('keydown', function (evt) {
self.trigger('keypress', evt);
self._keyUpPrevented = evt.isDefaultPrevented();
});
// Workaround for browsers which do not support the `input` event
// This will prevent double-triggering of events for browsers which support
// both the `keyup` and `input` events.
this.$search.on('input', function (evt) {
// Unbind the duplicated `keyup` event
$(this).off('keyup');
});
this.$search.on('keyup input', function (evt) {
self.handleSearch(evt);
});
container.on('open', function () {
self.$search.attr('tabindex', 0);
self.$search.focus();
window.setTimeout(function () {
self.$search.focus();
}, 0);
});
container.on('close', function () {
self.$search.attr('tabindex', -1);
self.$search.val('');
});
container.on('results:all', function (params) {
if (params.query.term == null || params.query.term === '') {
var showSearch = self.showSearch(params);
if (showSearch) {
self.$searchContainer.removeClass('select2-search--hide');
} else {
self.$searchContainer.addClass('select2-search--hide');
}
}
});
};
Search.prototype.handleSearch = function (evt) {
if (!this._keyUpPrevented) {
var input = this.$search.val();
this.trigger('query', {
term: input
});
}
this._keyUpPrevented = false;
};
Search.prototype.showSearch = function (_, params) {
return true;
};
return Search;
});
S2.define('select2/dropdown/hidePlaceholder',[
], function () {
function HidePlaceholder (decorated, $element, options, dataAdapter) {
this.placeholder = this.normalizePlaceholder(options.get('placeholder'));
decorated.call(this, $element, options, dataAdapter);
}
HidePlaceholder.prototype.append = function (decorated, data) {
data.results = this.removePlaceholder(data.results);
decorated.call(this, data);
};
HidePlaceholder.prototype.normalizePlaceholder = function (_, placeholder) {
if (typeof placeholder === 'string') {
placeholder = {
id: '',
text: placeholder
};
}
return placeholder;
};
HidePlaceholder.prototype.removePlaceholder = function (_, data) {
var modifiedData = data.slice(0);
for (var d = data.length - 1; d >= 0; d--) {
var item = data[d];
if (this.placeholder.id === item.id) {
modifiedData.splice(d, 1);
}
}
return modifiedData;
};
return HidePlaceholder;
});
S2.define('select2/dropdown/infiniteScroll',[
'jquery'
], function ($) {
function InfiniteScroll (decorated, $element, options, dataAdapter) {
this.lastParams = {};
decorated.call(this, $element, options, dataAdapter);
this.$loadingMore = this.createLoadingMore();
this.loading = false;
}
InfiniteScroll.prototype.append = function (decorated, data) {
this.$loadingMore.remove();
this.loading = false;
decorated.call(this, data);
if (this.showLoadingMore(data)) {
this.$results.append(this.$loadingMore);
}
};
InfiniteScroll.prototype.bind = function (decorated, container, $container) {
var self = this;
decorated.call(this, container, $container);
container.on('query', function (params) {
self.lastParams = params;
self.loading = true;
});
container.on('query:append', function (params) {
self.lastParams = params;
self.loading = true;
});
this.$results.on('scroll', function () {
var isLoadMoreVisible = $.contains(
document.documentElement,
self.$loadingMore[0]
);
if (self.loading || !isLoadMoreVisible) {
return;
}
var currentOffset = self.$results.offset().top +
self.$results.outerHeight(false);
var loadingMoreOffset = self.$loadingMore.offset().top +
self.$loadingMore.outerHeight(false);
if (currentOffset + 50 >= loadingMoreOffset) {
self.loadMore();
}
});
};
InfiniteScroll.prototype.loadMore = function () {
this.loading = true;
var params = $.extend({}, {page: 1}, this.lastParams);
params.page++;
this.trigger('query:append', params);
};
InfiniteScroll.prototype.showLoadingMore = function (_, data) {
return data.pagination && data.pagination.more;
};
InfiniteScroll.prototype.createLoadingMore = function () {
var $option = $(
'<li ' +
'class="select2-results__option select2-results__option--load-more"' +
'role="treeitem" aria-disabled="true"></li>'
);
var message = this.options.get('translations').get('loadingMore');
$option.html(message(this.lastParams));
return $option;
};
return InfiniteScroll;
});
S2.define('select2/dropdown/attachBody',[
'jquery',
'../utils'
], function ($, Utils) {
function AttachBody (decorated, $element, options) {
this.$dropdownParent = options.get('dropdownParent') || $(document.body);
decorated.call(this, $element, options);
}
AttachBody.prototype.bind = function (decorated, container, $container) {
var self = this;
var setupResultsEvents = false;
decorated.call(this, container, $container);
container.on('open', function () {
self._showDropdown();
self._attachPositioningHandler(container);
if (!setupResultsEvents) {
setupResultsEvents = true;
container.on('results:all', function () {
self._positionDropdown();
self._resizeDropdown();
});
container.on('results:append', function () {
self._positionDropdown();
self._resizeDropdown();
});
}
});
container.on('close', function () {
self._hideDropdown();
self._detachPositioningHandler(container);
});
this.$dropdownContainer.on('mousedown', function (evt) {
evt.stopPropagation();
});
};
AttachBody.prototype.destroy = function (decorated) {
decorated.call(this);
this.$dropdownContainer.remove();
};
AttachBody.prototype.position = function (decorated, $dropdown, $container) {
// Clone all of the container classes
$dropdown.attr('class', $container.attr('class'));
$dropdown.removeClass('select2');
$dropdown.addClass('select2-container--open');
$dropdown.css({
position: 'absolute',
top: -999999
});
this.$container = $container;
};
AttachBody.prototype.render = function (decorated) {
var $container = $('<span></span>');
var $dropdown = decorated.call(this);
$container.append($dropdown);
this.$dropdownContainer = $container;
return $container;
};
AttachBody.prototype._hideDropdown = function (decorated) {
this.$dropdownContainer.detach();
};
AttachBody.prototype._attachPositioningHandler =
function (decorated, container) {
var self = this;
var scrollEvent = 'scroll.select2.' + container.id;
var resizeEvent = 'resize.select2.' + container.id;
var orientationEvent = 'orientationchange.select2.' + container.id;
var $watchers = this.$container.parents().filter(Utils.hasScroll);
$watchers.each(function () {
$(this).data('select2-scroll-position', {
x: $(this).scrollLeft(),
y: $(this).scrollTop()
});
});
$watchers.on(scrollEvent, function (ev) {
var position = $(this).data('select2-scroll-position');
$(this).scrollTop(position.y);
});
$(window).on(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent,
function (e) {
self._positionDropdown();
self._resizeDropdown();
});
};
AttachBody.prototype._detachPositioningHandler =
function (decorated, container) {
var scrollEvent = 'scroll.select2.' + container.id;
var resizeEvent = 'resize.select2.' + container.id;
var orientationEvent = 'orientationchange.select2.' + container.id;
var $watchers = this.$container.parents().filter(Utils.hasScroll);
$watchers.off(scrollEvent);
$(window).off(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent);
};
AttachBody.prototype._positionDropdown = function () {
var $window = $(window);
var isCurrentlyAbove = this.$dropdown.hasClass('select2-dropdown--above');
var isCurrentlyBelow = this.$dropdown.hasClass('select2-dropdown--below');
var newDirection = null;
var position = this.$container.position();
var offset = this.$container.offset();
offset.bottom = offset.top + this.$container.outerHeight(false);
var container = {
height: this.$container.outerHeight(false)
};
container.top = offset.top;
container.bottom = offset.top + container.height;
var dropdown = {
height: this.$dropdown.outerHeight(false)
};
var viewport = {
top: $window.scrollTop(),
bottom: $window.scrollTop() + $window.height()
};
var enoughRoomAbove = viewport.top < (offset.top - dropdown.height);
var enoughRoomBelow = viewport.bottom > (offset.bottom + dropdown.height);
var css = {
left: offset.left,
top: container.bottom
};
// Fix positioning with static parents
if (this.$dropdownParent[0].style.position !== 'static') {
var parentOffset = this.$dropdownParent.offset();
css.top -= parentOffset.top;
css.left -= parentOffset.left;
}
if (!isCurrentlyAbove && !isCurrentlyBelow) {
newDirection = 'below';
}
if (!enoughRoomBelow && enoughRoomAbove && !isCurrentlyAbove) {
newDirection = 'above';
} else if (!enoughRoomAbove && enoughRoomBelow && isCurrentlyAbove) {
newDirection = 'below';
}
if (newDirection == 'above' ||
(isCurrentlyAbove && newDirection !== 'below')) {
css.top = container.top - dropdown.height;
}
if (newDirection != null) {
this.$dropdown
.removeClass('select2-dropdown--below select2-dropdown--above')
.addClass('select2-dropdown--' + newDirection);
this.$container
.removeClass('select2-container--below select2-container--above')
.addClass('select2-container--' + newDirection);
}
this.$dropdownContainer.css(css);
};
AttachBody.prototype._resizeDropdown = function () {
var css = {
width: this.$container.outerWidth(false) + 'px'
};
if (this.options.get('dropdownAutoWidth')) {
css.minWidth = css.width;
css.width = 'auto';
}
this.$dropdown.css(css);
};
AttachBody.prototype._showDropdown = function (decorated) {
this.$dropdownContainer.appendTo(this.$dropdownParent);
this._positionDropdown();
this._resizeDropdown();
};
return AttachBody;
});
S2.define('select2/dropdown/minimumResultsForSearch',[
], function () {
function countResults (data) {
var count = 0;
for (var d = 0; d < data.length; d++) {
var item = data[d];
if (item.children) {
count += countResults(item.children);
} else {
count++;
}
}
return count;
}
function MinimumResultsForSearch (decorated, $element, options, dataAdapter) {
this.minimumResultsForSearch = options.get('minimumResultsForSearch');
if (this.minimumResultsForSearch < 0) {
this.minimumResultsForSearch = Infinity;
}
decorated.call(this, $element, options, dataAdapter);
}
MinimumResultsForSearch.prototype.showSearch = function (decorated, params) {
if (countResults(params.data.results) < this.minimumResultsForSearch) {
return false;
}
return decorated.call(this, params);
};
return MinimumResultsForSearch;
});
S2.define('select2/dropdown/selectOnClose',[
], function () {
function SelectOnClose () { }
SelectOnClose.prototype.bind = function (decorated, container, $container) {
var self = this;
decorated.call(this, container, $container);
container.on('close', function () {
self._handleSelectOnClose();
});
};
SelectOnClose.prototype._handleSelectOnClose = function () {
var $highlightedResults = this.getHighlightedResults();
// Only select highlighted results
if ($highlightedResults.length < 1) {
return;
}
var data = $highlightedResults.data('data');
// Don't re-select already selected resulte
if (
(data.element != null && data.element.selected) ||
(data.element == null && data.selected)
) {
return;
}
this.trigger('select', {
data: data
});
};
return SelectOnClose;
});
S2.define('select2/dropdown/closeOnSelect',[
], function () {
function CloseOnSelect () { }
CloseOnSelect.prototype.bind = function (decorated, container, $container) {
var self = this;
decorated.call(this, container, $container);
container.on('select', function (evt) {
self._selectTriggered(evt);
});
container.on('unselect', function (evt) {
self._selectTriggered(evt);
});
};
CloseOnSelect.prototype._selectTriggered = function (_, evt) {
var originalEvent = evt.originalEvent;
// Don't close if the control key is being held
if (originalEvent && originalEvent.ctrlKey) {
return;
}
this.trigger('close', {});
};
return CloseOnSelect;
});
S2.define('select2/i18n/en',[],function () {
// English
return {
errorLoading: function () {
return 'The results could not be loaded.';
},
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;
var message = 'Please delete ' + overChars + ' character';
if (overChars != 1) {
message += 's';
}
return message;
},
inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length;
var message = 'Please enter ' + remainingChars + ' or more characters';
return message;
},
loadingMore: function () {
return 'Loading more results…';
},
maximumSelected: function (args) {
var message = 'You can only select ' + args.maximum + ' item';
if (args.maximum != 1) {
message += 's';
}
return message;
},
noResults: function () {
return 'No results found';
},
searching: function () {
return 'Searching…';
}
};
});
S2.define('select2/defaults',[
'jquery',
'require',
'./results',
'./selection/single',
'./selection/multiple',
'./selection/placeholder',
'./selection/allowClear',
'./selection/search',
'./selection/eventRelay',
'./utils',
'./translation',
'./diacritics',
'./data/select',
'./data/array',
'./data/ajax',
'./data/tags',
'./data/tokenizer',
'./data/minimumInputLength',
'./data/maximumInputLength',
'./data/maximumSelectionLength',
'./dropdown',
'./dropdown/search',
'./dropdown/hidePlaceholder',
'./dropdown/infiniteScroll',
'./dropdown/attachBody',
'./dropdown/minimumResultsForSearch',
'./dropdown/selectOnClose',
'./dropdown/closeOnSelect',
'./i18n/en'
], function ($, require,
ResultsList,
SingleSelection, MultipleSelection, Placeholder, AllowClear,
SelectionSearch, EventRelay,
Utils, Translation, DIACRITICS,
SelectData, ArrayData, AjaxData, Tags, Tokenizer,
MinimumInputLength, MaximumInputLength, MaximumSelectionLength,
Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll,
AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect,
EnglishTranslation) {
function Defaults () {
this.reset();
}
Defaults.prototype.apply = function (options) {
options = $.extend({}, this.defaults, options);
if (options.dataAdapter == null) {
if (options.ajax != null) {
options.dataAdapter = AjaxData;
} else if (options.data != null) {
options.dataAdapter = ArrayData;
} else {
options.dataAdapter = SelectData;
}
if (options.minimumInputLength > 0) {
options.dataAdapter = Utils.Decorate(
options.dataAdapter,
MinimumInputLength
);
}
if (options.maximumInputLength > 0) {
options.dataAdapter = Utils.Decorate(
options.dataAdapter,
MaximumInputLength
);
}
if (options.maximumSelectionLength > 0) {
options.dataAdapter = Utils.Decorate(
options.dataAdapter,
MaximumSelectionLength
);
}
if (options.tags) {
options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
}
if (options.tokenSeparators != null || options.tokenizer != null) {
options.dataAdapter = Utils.Decorate(
options.dataAdapter,
Tokenizer
);
}
if (options.query != null) {
var Query = require(options.amdBase + 'compat/query');
options.dataAdapter = Utils.Decorate(
options.dataAdapter,
Query
);
}
if (options.initSelection != null) {
var InitSelection = require(options.amdBase + 'compat/initSelection');
options.dataAdapter = Utils.Decorate(
options.dataAdapter,
InitSelection
);
}
}
if (options.resultsAdapter == null) {
options.resultsAdapter = ResultsList;
if (options.ajax != null) {
options.resultsAdapter = Utils.Decorate(
options.resultsAdapter,
InfiniteScroll
);
}
if (options.placeholder != null) {
options.resultsAdapter = Utils.Decorate(
options.resultsAdapter,
HidePlaceholder
);
}
if (options.selectOnClose) {
options.resultsAdapter = Utils.Decorate(
options.resultsAdapter,
SelectOnClose
);
}
}
if (options.dropdownAdapter == null) {
if (options.multiple) {
options.dropdownAdapter = Dropdown;
} else {
var SearchableDropdown = Utils.Decorate(Dropdown, DropdownSearch);
options.dropdownAdapter = SearchableDropdown;
}
if (options.minimumResultsForSearch !== 0) {
options.dropdownAdapter = Utils.Decorate(
options.dropdownAdapter,
MinimumResultsForSearch
);
}
if (options.closeOnSelect) {
options.dropdownAdapter = Utils.Decorate(
options.dropdownAdapter,
CloseOnSelect
);
}
if (
options.dropdownCssClass != null ||
options.dropdownCss != null ||
options.adaptDropdownCssClass != null
) {
var DropdownCSS = require(options.amdBase + 'compat/dropdownCss');
options.dropdownAdapter = Utils.Decorate(
options.dropdownAdapter,
DropdownCSS
);
}
options.dropdownAdapter = Utils.Decorate(
options.dropdownAdapter,
AttachBody
);
}
if (options.selectionAdapter == null) {
if (options.multiple) {
options.selectionAdapter = MultipleSelection;
} else {
options.selectionAdapter = SingleSelection;
}
// Add the placeholder mixin if a placeholder was specified
if (options.placeholder != null) {
options.selectionAdapter = Utils.Decorate(
options.selectionAdapter,
Placeholder
);
}
if (options.allowClear) {
options.selectionAdapter = Utils.Decorate(
options.selectionAdapter,
AllowClear
);
}
if (options.multiple) {
options.selectionAdapter = Utils.Decorate(
options.selectionAdapter,
SelectionSearch
);
}
if (
options.containerCssClass != null ||
options.containerCss != null ||
options.adaptContainerCssClass != null
) {
var ContainerCSS = require(options.amdBase + 'compat/containerCss');
options.selectionAdapter = Utils.Decorate(
options.selectionAdapter,
ContainerCSS
);
}
options.selectionAdapter = Utils.Decorate(
options.selectionAdapter,
EventRelay
);
}
if (typeof options.language === 'string') {
// Check if the language is specified with a region
if (options.language.indexOf('-') > 0) {
// Extract the region information if it is included
var languageParts = options.language.split('-');
var baseLanguage = languageParts[0];
options.language = [options.language, baseLanguage];
} else {
options.language = [options.language];
}
}
if ($.isArray(options.language)) {
var languages = new Translation();
options.language.push('en');
var languageNames = options.language;
for (var l = 0; l < languageNames.length; l++) {
var name = languageNames[l];
var language = {};
try {
// Try to load it with the original name
language = Translation.loadPath(name);
} catch (e) {
try {
// If we couldn't load it, check if it wasn't the full path
name = this.defaults.amdLanguageBase + name;
language = Translation.loadPath(name);
} catch (ex) {
// The translation could not be loaded at all. Sometimes this is
// because of a configuration problem, other times this can be
// because of how Select2 helps load all possible translation files.
if (options.debug && window.console && console.warn) {
console.warn(
'Select2: The language file for "' + name + '" could not be ' +
'automatically loaded. A fallback will be used instead.'
);
}
continue;
}
}
languages.extend(language);
}
options.translations = languages;
} else {
var baseTranslation = Translation.loadPath(
this.defaults.amdLanguageBase + 'en'
);
var customTranslation = new Translation(options.language);
customTranslation.extend(baseTranslation);
options.translations = customTranslation;
}
return options;
};
Defaults.prototype.reset = function () {
function stripDiacritics (text) {
// Used 'uni range + named function' from http://jsperf.com/diacritics/18
function match(a) {
return DIACRITICS[a] || a;
}
return text.replace(/[^\u0000-\u007E]/g, match);
}
function matcher (params, data) {
// Always return the object if there is nothing to compare
if ($.trim(params.term) === '') {
return data;
}
// Do a recursive check for options with children
if (data.children && data.children.length > 0) {
// Clone the data object if there are children
// This is required as we modify the object to remove any non-matches
var match = $.extend(true, {}, data);
// Check each child of the option
for (var c = data.children.length - 1; c >= 0; c--) {
var child = data.children[c];
var matches = matcher(params, child);
// If there wasn't a match, remove the object in the array
if (matches == null) {
match.children.splice(c, 1);
}
}
// If any children matched, return the new object
if (match.children.length > 0) {
return match;
}
// If there were no matching children, check just the plain object
return matcher(params, match);
}
var original = stripDiacritics(data.text).toUpperCase();
var term = stripDiacritics(params.term).toUpperCase();
// Check if the text contains the term
if (original.indexOf(term) > -1) {
return data;
}
// If it doesn't contain the term, don't return anything
return null;
}
this.defaults = {
amdBase: './',
amdLanguageBase: './i18n/',
closeOnSelect: true,
debug: false,
dropdownAutoWidth: false,
escapeMarkup: Utils.escapeMarkup,
language: EnglishTranslation,
matcher: matcher,
minimumInputLength: 0,
maximumInputLength: 0,
maximumSelectionLength: 0,
minimumResultsForSearch: 0,
selectOnClose: false,
sorter: function (data) {
return data;
},
templateResult: function (result) {
return result.text;
},
templateSelection: function (selection) {
return selection.text;
},
theme: 'default',
width: 'resolve'
};
};
Defaults.prototype.set = function (key, value) {
var camelKey = $.camelCase(key);
var data = {};
data[camelKey] = value;
var convertedData = Utils._convertData(data);
$.extend(this.defaults, convertedData);
};
var defaults = new Defaults();
return defaults;
});
S2.define('select2/options',[
'require',
'jquery',
'./defaults',
'./utils'
], function (require, $, Defaults, Utils) {
function Options (options, $element) {
this.options = options;
if ($element != null) {
this.fromElement($element);
}
this.options = Defaults.apply(this.options);
if ($element && $element.is('input')) {
var InputCompat = require(this.get('amdBase') + 'compat/inputData');
this.options.dataAdapter = Utils.Decorate(
this.options.dataAdapter,
InputCompat
);
}
}
Options.prototype.fromElement = function ($e) {
var excludedData = ['select2'];
if (this.options.multiple == null) {
this.options.multiple = $e.prop('multiple');
}
if (this.options.disabled == null) {
this.options.disabled = $e.prop('disabled');
}
if (this.options.language == null) {
if ($e.prop('lang')) {
this.options.language = $e.prop('lang').toLowerCase();
} else if ($e.closest('[lang]').prop('lang')) {
this.options.language = $e.closest('[lang]').prop('lang');
}
}
if (this.options.dir == null) {
if ($e.prop('dir')) {
this.options.dir = $e.prop('dir');
} else if ($e.closest('[dir]').prop('dir')) {
this.options.dir = $e.closest('[dir]').prop('dir');
} else {
this.options.dir = 'ltr';
}
}
$e.prop('disabled', this.options.disabled);
$e.prop('multiple', this.options.multiple);
if ($e.data('select2Tags')) {
if (this.options.debug && window.console && console.warn) {
console.warn(
'Select2: The `data-select2-tags` attribute has been changed to ' +
'use the `data-data` and `data-tags="true"` attributes and will be ' +
'removed in future versions of Select2.'
);
}
$e.data('data', $e.data('select2Tags'));
$e.data('tags', true);
}
if ($e.data('ajaxUrl')) {
if (this.options.debug && window.console && console.warn) {
console.warn(
'Select2: The `data-ajax-url` attribute has been changed to ' +
'`data-ajax--url` and support for the old attribute will be removed' +
' in future versions of Select2.'
);
}
$e.attr('ajax--url', $e.data('ajaxUrl'));
$e.data('ajax--url', $e.data('ajaxUrl'));
}
var dataset = {};
// Prefer the element's `dataset` attribute if it exists
// jQuery 1.x does not correctly handle data attributes with multiple dashes
if ($.fn.jquery && $.fn.jquery.substr(0, 2) == '1.' && $e[0].dataset) {
dataset = $.extend(true, {}, $e[0].dataset, $e.data());
} else {
dataset = $e.data();
}
var data = $.extend(true, {}, dataset);
data = Utils._convertData(data);
for (var key in data) {
if ($.inArray(key, excludedData) > -1) {
continue;
}
if ($.isPlainObject(this.options[key])) {
$.extend(this.options[key], data[key]);
} else {
this.options[key] = data[key];
}
}
return this;
};
Options.prototype.get = function (key) {
return this.options[key];
};
Options.prototype.set = function (key, val) {
this.options[key] = val;
};
return Options;
});
S2.define('select2/core',[
'jquery',
'./options',
'./utils',
'./keys'
], function ($, Options, Utils, KEYS) {
var Select2 = function ($element, options) {
if ($element.data('select2') != null) {
$element.data('select2').destroy();
}
this.$element = $element;
this.id = this._generateId($element);
options = options || {};
this.options = new Options(options, $element);
Select2.__super__.constructor.call(this);
// Set up the tabindex
var tabindex = $element.attr('tabindex') || 0;
$element.data('old-tabindex', tabindex);
$element.attr('tabindex', '-1');
// Set up containers and adapters
var DataAdapter = this.options.get('dataAdapter');
this.dataAdapter = new DataAdapter($element, this.options);
var $container = this.render();
this._placeContainer($container);
var SelectionAdapter = this.options.get('selectionAdapter');
this.selection = new SelectionAdapter($element, this.options);
this.$selection = this.selection.render();
this.selection.position(this.$selection, $container);
var DropdownAdapter = this.options.get('dropdownAdapter');
this.dropdown = new DropdownAdapter($element, this.options);
this.$dropdown = this.dropdown.render();
this.dropdown.position(this.$dropdown, $container);
var ResultsAdapter = this.options.get('resultsAdapter');
this.results = new ResultsAdapter($element, this.options, this.dataAdapter);
this.$results = this.results.render();
this.results.position(this.$results, this.$dropdown);
// Bind events
var self = this;
// Bind the container to all of the adapters
this._bindAdapters();
// Register any DOM event handlers
this._registerDomEvents();
// Register any internal event handlers
this._registerDataEvents();
this._registerSelectionEvents();
this._registerDropdownEvents();
this._registerResultsEvents();
this._registerEvents();
// Set the initial state
this.dataAdapter.current(function (initialData) {
self.trigger('selection:update', {
data: initialData
});
});
// Hide the original select
$element.addClass('select2-hidden-accessible');
$element.attr('aria-hidden', 'true');
// Synchronize any monitored attributes
this._syncAttributes();
$element.data('select2', this);
};
Utils.Extend(Select2, Utils.Observable);
Select2.prototype._generateId = function ($element) {
var id = '';
if ($element.attr('id') != null) {
id = $element.attr('id');
} else if ($element.attr('name') != null) {
id = $element.attr('name') + '-' + Utils.generateChars(2);
} else {
id = Utils.generateChars(4);
}
id = 'select2-' + id;
return id;
};
Select2.prototype._placeContainer = function ($container) {
$container.insertAfter(this.$element);
var width = this._resolveWidth(this.$element, this.options.get('width'));
if (width != null) {
$container.css('width', width);
}
};
Select2.prototype._resolveWidth = function ($element, method) {
var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;
if (method == 'resolve') {
var styleWidth = this._resolveWidth($element, 'style');
if (styleWidth != null) {
return styleWidth;
}
return this._resolveWidth($element, 'element');
}
if (method == 'element') {
var elementWidth = $element.outerWidth(false);
if (elementWidth <= 0) {
return 'auto';
}
return elementWidth + 'px';
}
if (method == 'style') {
var style = $element.attr('style');
if (typeof(style) !== 'string') {
return null;
}
var attrs = style.split(';');
for (var i = 0, l = attrs.length; i < l; i = i + 1) {
var attr = attrs[i].replace(/\s/g, '');
var matches = attr.match(WIDTH);
if (matches !== null && matches.length >= 1) {
return matches[1];
}
}
return null;
}
return method;
};
Select2.prototype._bindAdapters = function () {
this.dataAdapter.bind(this, this.$container);
this.selection.bind(this, this.$container);
this.dropdown.bind(this, this.$container);
this.results.bind(this, this.$container);
};
Select2.prototype._registerDomEvents = function () {
var self = this;
this.$element.on('change.select2', function () {
self.dataAdapter.current(function (data) {
self.trigger('selection:update', {
data: data
});
});
});
this._sync = Utils.bind(this._syncAttributes, this);
if (this.$element[0].attachEvent) {
this.$element[0].attachEvent('onpropertychange', this._sync);
}
var observer = window.MutationObserver ||
window.WebKitMutationObserver ||
window.MozMutationObserver
;
if (observer != null) {
this._observer = new observer(function (mutations) {
$.each(mutations, self._sync);
});
this._observer.observe(this.$element[0], {
attributes: true,
subtree: false
});
} else if (this.$element[0].addEventListener) {
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
}
};
Select2.prototype._registerDataEvents = function () {
var self = this;
this.dataAdapter.on('*', function (name, params) {
self.trigger(name, params);
});
};
Select2.prototype._registerSelectionEvents = function () {
var self = this;
var nonRelayEvents = ['toggle', 'focus'];
this.selection.on('toggle', function () {
self.toggleDropdown();
});
this.selection.on('focus', function (params) {
self.focus(params);
});
this.selection.on('*', function (name, params) {
if ($.inArray(name, nonRelayEvents) !== -1) {
return;
}
self.trigger(name, params);
});
};
Select2.prototype._registerDropdownEvents = function () {
var self = this;
this.dropdown.on('*', function (name, params) {
self.trigger(name, params);
});
};
Select2.prototype._registerResultsEvents = function () {
var self = this;
this.results.on('*', function (name, params) {
self.trigger(name, params);
});
};
Select2.prototype._registerEvents = function () {
var self = this;
this.on('open', function () {
self.$container.addClass('select2-container--open');
});
this.on('close', function () {
self.$container.removeClass('select2-container--open');
});
this.on('enable', function () {
self.$container.removeClass('select2-container--disabled');
});
this.on('disable', function () {
self.$container.addClass('select2-container--disabled');
});
this.on('blur', function () {
self.$container.removeClass('select2-container--focus');
});
this.on('query', function (params) {
if (!self.isOpen()) {
self.trigger('open', {});
}
this.dataAdapter.query(params, function (data) {
self.trigger('results:all', {
data: data,
query: params
});
});
});
this.on('query:append', function (params) {
this.dataAdapter.query(params, function (data) {
self.trigger('results:append', {
data: data,
query: params
});
});
});
this.on('keypress', function (evt) {
var key = evt.which;
if (self.isOpen()) {
if (key === KEYS.ESC || key === KEYS.TAB ||
(key === KEYS.UP && evt.altKey)) {
self.close();
evt.preventDefault();
} else if (key === KEYS.ENTER) {
self.trigger('results:select', {});
evt.preventDefault();
} else if ((key === KEYS.SPACE && evt.ctrlKey)) {
self.trigger('results:toggle', {});
evt.preventDefault();
} else if (key === KEYS.UP) {
self.trigger('results:previous', {});
evt.preventDefault();
} else if (key === KEYS.DOWN) {
self.trigger('results:next', {});
evt.preventDefault();
}
} else {
if (key === KEYS.ENTER || key === KEYS.SPACE ||
(key === KEYS.DOWN && evt.altKey)) {
self.open();
evt.preventDefault();
}
}
});
};
Select2.prototype._syncAttributes = function () {
this.options.set('disabled', this.$element.prop('disabled'));
if (this.options.get('disabled')) {
if (this.isOpen()) {
this.close();
}
this.trigger('disable', {});
} else {
this.trigger('enable', {});
}
};
/**
* Override the trigger method to automatically trigger pre-events when
* there are events that can be prevented.
*/
Select2.prototype.trigger = function (name, args) {
var actualTrigger = Select2.__super__.trigger;
var preTriggerMap = {
'open': 'opening',
'close': 'closing',
'select': 'selecting',
'unselect': 'unselecting'
};
if (args === undefined) {
args = {};
}
if (name in preTriggerMap) {
var preTriggerName = preTriggerMap[name];
var preTriggerArgs = {
prevented: false,
name: name,
args: args
};
actualTrigger.call(this, preTriggerName, preTriggerArgs);
if (preTriggerArgs.prevented) {
args.prevented = true;
return;
}
}
actualTrigger.call(this, name, args);
};
Select2.prototype.toggleDropdown = function () {
if (this.options.get('disabled')) {
return;
}
if (this.isOpen()) {
this.close();
} else {
this.open();
}
};
Select2.prototype.open = function () {
if (this.isOpen()) {
return;
}
this.trigger('query', {});
};
Select2.prototype.close = function () {
if (!this.isOpen()) {
return;
}
this.trigger('close', {});
};
Select2.prototype.isOpen = function () {
return this.$container.hasClass('select2-container--open');
};
Select2.prototype.hasFocus = function () {
return this.$container.hasClass('select2-container--focus');
};
Select2.prototype.focus = function (data) {
// No need to re-trigger focus events if we are already focused
if (this.hasFocus()) {
return;
}
this.$container.addClass('select2-container--focus');
this.trigger('focus', {});
};
Select2.prototype.enable = function (args) {
if (this.options.get('debug') && window.console && console.warn) {
console.warn(
'Select2: The `select2("enable")` method has been deprecated and will' +
' be removed in later Select2 versions. Use $element.prop("disabled")' +
' instead.'
);
}
if (args == null || args.length === 0) {
args = [true];
}
var disabled = !args[0];
this.$element.prop('disabled', disabled);
};
Select2.prototype.data = function () {
if (this.options.get('debug') &&
arguments.length > 0 && window.console && console.warn) {
console.warn(
'Select2: Data can no longer be set using `select2("data")`. You ' +
'should consider setting the value instead using `$element.val()`.'
);
}
var data = [];
this.dataAdapter.current(function (currentData) {
data = currentData;
});
return data;
};
Select2.prototype.val = function (args) {
if (this.options.get('debug') && window.console && console.warn) {
console.warn(
'Select2: The `select2("val")` method has been deprecated and will be' +
' removed in later Select2 versions. Use $element.val() instead.'
);
}
if (args == null || args.length === 0) {
return this.$element.val();
}
var newVal = args[0];
if ($.isArray(newVal)) {
newVal = $.map(newVal, function (obj) {
return obj.toString();
});
}
this.$element.val(newVal).trigger('change');
};
Select2.prototype.destroy = function () {
this.$container.remove();
if (this.$element[0].detachEvent) {
this.$element[0].detachEvent('onpropertychange', this._sync);
}
if (this._observer != null) {
this._observer.disconnect();
this._observer = null;
} else if (this.$element[0].removeEventListener) {
this.$element[0]
.removeEventListener('DOMAttrModified', this._sync, false);
}
this._sync = null;
this.$element.off('.select2');
this.$element.attr('tabindex', this.$element.data('old-tabindex'));
this.$element.removeClass('select2-hidden-accessible');
this.$element.attr('aria-hidden', 'false');
this.$element.removeData('select2');
this.dataAdapter.destroy();
this.selection.destroy();
this.dropdown.destroy();
this.results.destroy();
this.dataAdapter = null;
this.selection = null;
this.dropdown = null;
this.results = null;
};
Select2.prototype.render = function () {
var $container = $(
'<span class="select2 select2-container">' +
'<span class="selection"></span>' +
'<span class="dropdown-wrapper" aria-hidden="true"></span>' +
'</span>'
);
$container.attr('dir', this.options.get('dir'));
this.$container = $container;
this.$container.addClass('select2-container--' + this.options.get('theme'));
$container.data('element', this.$element);
return $container;
};
return Select2;
});
S2.define('jquery-mousewheel',[
'jquery'
], function ($) {
// Used to shim jQuery.mousewheel for non-full builds.
return $;
});
S2.define('jquery.select2',[
'jquery',
'jquery-mousewheel',
'./select2/core',
'./select2/defaults'
], function ($, _, Select2, Defaults) {
if ($.fn.select2 == null) {
// All methods that should return the element
var thisMethods = ['open', 'close', 'destroy'];
$.fn.select2 = function (options) {
options = options || {};
if (typeof options === 'object') {
this.each(function () {
var instanceOptions = $.extend(true, {}, options);
var instance = new Select2($(this), instanceOptions);
});
return this;
} else if (typeof options === 'string') {
var ret;
this.each(function () {
var instance = $(this).data('select2');
if (instance == null && window.console && console.error) {
console.error(
'The select2(\'' + options + '\') method was called on an ' +
'element that is not using Select2.'
);
}
var args = Array.prototype.slice.call(arguments, 1);
ret = instance[options].apply(instance, args);
});
// Check if we should be returning `this`
if ($.inArray(options, thisMethods) > -1) {
return this;
}
return ret;
} else {
throw new Error('Invalid arguments for Select2: ' + options);
}
};
}
if ($.fn.select2.defaults == null) {
$.fn.select2.defaults = Defaults;
}
return Select2;
});
// Return the AMD loader configuration so it can be used outside of this file
return {
define: S2.define,
require: S2.require
};
}());
// Autoload the jQuery bindings
// We know that all of the modules exist above this, so we're safe
var select2 = S2.require('jquery.select2');
// Hold the AMD module references on the jQuery function that was just loaded
// This allows Select2 to use the internal loader outside of this file, such
// as in the language files.
jQuery.fn.select2.amd = S2;
// Return the Select2 instance for anyone who is importing it.
return select2;
}));
|
import gql from "graphql-tag";
export default gql(`
query {
listEventsPublic(limit: 1000) {
items {
id
name
where
when
description
comments {
items {
commentId
}
}
}
}
}`);
|
const Folder = require('lib/models/Folder');
const BaseModel = require('lib/BaseModel');
let shared = {};
function folderHasChildren_(folders, folderId) {
for (let i = 0; i < folders.length; i++) {
let folder = folders[i];
if (folder.parent_id === folderId) return true;
}
return false;
}
function folderIsVisible(folders, folderId, collapsedFolderIds) {
if (!collapsedFolderIds || !collapsedFolderIds.length) return true;
while (true) {
let folder = BaseModel.byId(folders, folderId);
if (!folder) throw new Error(`No folder with id ${folder.id}`);
if (!folder.parent_id) return true;
if (collapsedFolderIds.indexOf(folder.parent_id) >= 0) return false;
folderId = folder.parent_id;
}
}
function renderFoldersRecursive_(props, renderItem, items, parentId, depth, order) {
const folders = props.folders;
for (let i = 0; i < folders.length; i++) {
let folder = folders[i];
if (!Folder.idsEqual(folder.parent_id, parentId)) continue;
if (!folderIsVisible(props.folders, folder.id, props.collapsedFolderIds)) continue;
const hasChildren = folderHasChildren_(folders, folder.id);
order.push(folder.id);
items.push(renderItem(folder, props.selectedFolderId == folder.id && props.notesParentType == 'Folder', hasChildren, depth));
if (hasChildren) {
const result = renderFoldersRecursive_(props, renderItem, items, folder.id, depth + 1, order);
items = result.items;
order = result.order;
}
}
return {
items: items,
order: order,
};
}
shared.renderFolders = function(props, renderItem) {
return renderFoldersRecursive_(props, renderItem, [], '', 0, []);
};
shared.renderTags = function(props, renderItem) {
let tags = props.tags.slice();
tags.sort((a, b) => {
return a.title < b.title ? -1 : +1;
});
let tagItems = [];
const order = [];
for (let i = 0; i < tags.length; i++) {
const tag = tags[i];
order.push(tag.id);
tagItems.push(renderItem(tag, props.selectedTagId == tag.id && props.notesParentType == 'Tag'));
}
return {
items: tagItems,
order: order,
};
};
// shared.renderSearches = function(props, renderItem) {
// let searches = props.searches.slice();
// let searchItems = [];
// const order = [];
// for (let i = 0; i < searches.length; i++) {
// const search = searches[i];
// order.push(search.id);
// searchItems.push(renderItem(search, props.selectedSearchId == search.id && props.notesParentType == 'Search'));
// }
// return {
// items: searchItems,
// order: order,
// };
// }
shared.synchronize_press = async function(comp) {
const { reg } = require('lib/registry.js');
const action = comp.props.syncStarted ? 'cancel' : 'start';
if (!(await reg.syncTarget().isAuthenticated())) {
if (reg.syncTarget().authRouteName()) {
comp.props.dispatch({
type: 'NAV_GO',
routeName: reg.syncTarget().authRouteName(),
});
return 'auth';
}
reg.logger().info('Not authentified with sync target - please check your credential.');
return 'error';
}
let sync = null;
try {
sync = await reg.syncTarget().synchronizer();
} catch (error) {
reg.logger().info('Could not acquire synchroniser:');
reg.logger().info(error);
return 'error';
}
if (action == 'cancel') {
sync.cancel();
return 'cancel';
} else {
reg.scheduleSync(0);
return 'sync';
}
};
module.exports = shared;
|
/**
* Copyright 2017 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.
*/
module.exports = async (webdriver, token) => {
console.log('Deleting token: ', token);
await webdriver.wait(() => {
return webdriver.executeScript(() => {
return !!window.__test;
});
});
return webdriver.executeScript(token => {
return window.__test.triggerDeleteToken(token);
});
};
|
/*
* jQuery Touch Optimized Sliders "R"Us
* Drag addon
*
* Copyright (c) Fred Heusschen
* www.frebsite.nl
*/
!function(e){if("function"==typeof Hammer){var n,s,t,i,r,a="tosrus",o="drag",d=!1;e[a].prototype["_addon_"+o]=function(){d||(n=e[a]._c,s=e[a]._d,t=e[a]._e,i=e[a]._f,r=e[a]._g,d=!0);var l=this;if(this.opts[o]&&"slide"==this.opts.effect){if(Hammer.VERSION<2)return e[a].deprecated("Older version of the Hammer library","version 2 or newer"),void 0;if(this.nodes.$slides.length>1){var f=0,p=!1,h=!1,c=new Hammer(this.nodes.$wrpr[0]);c.on("panstart panleft panright panend swipeleft swiperight",function(e){e.preventDefault()}).on("panstart",function(){l.nodes.$sldr.addClass(n.noanimation)}).on("panleft panright",function(e){switch(f=e.deltaX,h=!1,e.direction){case 2:p="left";break;case 4:p="right";break;default:p=!1}("left"==p&&l.slides.index+l.slides.visible>=l.slides.total||"right"==p&&0==l.slides.index)&&(f/=2.5),l.nodes.$sldr.css("margin-left",Math.round(f))}).on("swipeleft swiperight",function(){h=!0}).on("panend",function(){if(l.nodes.$sldr.removeClass(n.noanimation).addClass(n.fastanimation),i.transitionend(l.nodes.$sldr,function(){l.nodes.$sldr.removeClass(n.fastanimation)},l.conf.transitionDuration/2),l.nodes.$sldr.css("margin-left",0),"left"==p||"right"==p){if(h)var e=l.slides.visible;else var s=l.nodes.$slides.first().width(),e=Math.floor((Math.abs(f)+s/2)/s);e>0&&l.nodes.$wrpr.trigger(t["left"==p?"next":"prev"],[e])}p=!1})}}},e[a].defaults[o]=e[a].support.touch,e[a].addons.push(o)}}(jQuery);
|
/* global JXPSchema ObjectId Mixed */
// const shared = require("../libs/shared");
const TouchbaseTransactionalSchema = new JXPSchema({
name: String,
touchbase_transactional_id: String,
data_fn: Mixed,
bcc: String,
},
{
perms: {
admin: "crud",
owner: "crud",
user: "",
all: ""
}
});
// TouchbaseTransactionalSchema.post("save", shared.datasource_post_save);
const TouchbaseTransactional = JXPSchema.model('touchbasetransactional', TouchbaseTransactionalSchema);
module.exports = TouchbaseTransactional;
|
import { connect } from 'react-redux';
import Table from '../components/Table';
const mapStateToProps = (state, ownProps) => {
return {
cards: ownProps.cards,
hand: ownProps.hand
};
};
const ContainerTable = connect(
mapStateToProps
)(Table);
export default ContainerTable;
|
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-882b0ed1.js';
import React from 'react';
import '@carbon/icon-helpers';
import 'prop-types';
var _circle, _path, _path2;
var VirtualColumnKey32 = /*#__PURE__*/React.forwardRef(function VirtualColumnKey32(_ref, ref) {
var children = _ref.children,
rest = _objectWithoutProperties(_ref, ["children"]);
return /*#__PURE__*/React.createElement(Icon, _extends({
width: 32,
height: 32,
viewBox: "0 0 32 32",
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor",
ref: ref
}, rest), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
cx: "24.5",
cy: "9.5",
r: "1.5"
})), _path || (_path = /*#__PURE__*/React.createElement("path", {
d: "M17.4143,22H12V16.5857l6.03-6.03A5.3518,5.3518,0,0,1,18,10a6,6,0,1,1,6,6,5.3583,5.3583,0,0,1-.5559-.03ZM14,20h2.5857l6.1706-6.1709.5174.0957A3.935,3.935,0,0,0,24,14a4.0507,4.0507,0,1,0-3.925-3.2729l.0952.5166L14,17.4143Z"
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
d: "M28,18v8H10V6h4V4H4A2.0025,2.0025,0,0,0,2,6V26a2.0025,2.0025,0,0,0,2,2H28a2.0025,2.0025,0,0,0,2-2V18ZM4,6H8V26H4Z"
})), children);
});
export default VirtualColumnKey32;
|
import auth from '@react-native-firebase/auth';
import firestore from '@react-native-firebase/firestore';
export async function signUp(username,email, pass, name,phone) {
await auth().createUserWithEmailAndPassword( email, pass).catch((error) => {
throw error
});
const currentUser = auth().currentUser;
const db = firestore();
await db.collection("users").add({
uid: currentUser.uid,
username: username,
email: currentUser.email,
name: name,
phone: phone
}).catch((error) => {
throw error
})
}
export async function logIn(mail, pass) {
await auth().signInWithEmailAndPassword(mail, pass).catch(() => {
throw ('email or password is incorrect!')
});
}
export async function loggingOut() {
await auth().signOut().catch(() => {
throw ('Unknown error occurred')
});
}
|
export { default as BottomHud } from './BottomHud';
export { default as Defeat } from './Defeat';
export { default as Leaderboard } from './Leaderboard';
export { default as Menu } from './Menu';
export { default as MusicButton } from './MusicButton';
export { default as PauseMenu } from './PauseMenu';
export { default as RightHud } from './RightHud';
export { default as Toggle } from './Toggle';
export { default as TopHud } from './TopHud';
export { default as Victory } from './Victory';
|
const Queue = require('../src/structures/Queue');
test('check default queue content', () => {
const testQueue = new Queue();
const EMPTY_ARRAY = [];
expect(testQueue._elements).toStrictEqual(EMPTY_ARRAY);
});
test('check strict sequence of added items', () => {
const rightSequence = ['milk', 'apple', 'meat'];
const testQueue = new Queue();
testQueue.enqueue('milk');
testQueue.enqueue('apple');
testQueue.enqueue('meat');
expect(testQueue._elements).toEqual(rightSequence);
});
|
'use strict';
require('./suggestion.service');
require('./suggestionList.html');
angular.module('suggestionModule').directive('suggestionList', [
'suggestionService',
function (suggestionService) {
return {
template: require('./suggestionList.html'), //TODO this is a big change!
controller: function($scope){
suggestionService.loadSuggestions().then(function(result){
$scope.list = result;
}).catch(function(err){
console.log('Houston, we have a ' + err);
});
}
};
}
]
);
|
var interface_nakama_1_1_i_client =
[
[ "AddFriendsAsync", "interface_nakama_1_1_i_client.html#a1815cb121e4a5d378a6d80f1415b056d", null ],
[ "AddGroupUsersAsync", "interface_nakama_1_1_i_client.html#ae1ff844c653602abf4c72666e98cf6d8", null ],
[ "AuthenticateAppleAsync", "interface_nakama_1_1_i_client.html#a9f7db1234ceb74e537acbfe25ef175d3", null ],
[ "AuthenticateCustomAsync", "interface_nakama_1_1_i_client.html#a0e75bce69475415529fbc674601a6c80", null ],
[ "AuthenticateDeviceAsync", "interface_nakama_1_1_i_client.html#a670ca2094276364e01bbc3fe7476d065", null ],
[ "AuthenticateEmailAsync", "interface_nakama_1_1_i_client.html#a51720ba109ecdf4a20c9b6af32c0f8aa", null ],
[ "AuthenticateFacebookAsync", "interface_nakama_1_1_i_client.html#a4437d418a4c0080fff802abc1f4516f2", null ],
[ "AuthenticateGameCenterAsync", "interface_nakama_1_1_i_client.html#a6454e1ad395994f5f1cf9cdca87c5de7", null ],
[ "AuthenticateGoogleAsync", "interface_nakama_1_1_i_client.html#afc3fdd46d4e5fa605430bbc921774145", null ],
[ "AuthenticateSteamAsync", "interface_nakama_1_1_i_client.html#a6a5efdaf01352a34fa1c040a77724a4b", null ],
[ "BanGroupUsersAsync", "interface_nakama_1_1_i_client.html#a8dae8de2510955e4d2c43dcd543c87ba", null ],
[ "BlockFriendsAsync", "interface_nakama_1_1_i_client.html#a21d2b0f57b728e97cbed9eed63413430", null ],
[ "CreateGroupAsync", "interface_nakama_1_1_i_client.html#a8bb22966ab8a6223cf9dd089868e75c9", null ],
[ "DeleteFriendsAsync", "interface_nakama_1_1_i_client.html#acefaabfce2e7bbdfcf135f4fbeca902e", null ],
[ "DeleteGroupAsync", "interface_nakama_1_1_i_client.html#ab2114d6f25d7fb5a7f7f5602cb0d2ac4", null ],
[ "DeleteLeaderboardRecordAsync", "interface_nakama_1_1_i_client.html#a590937f3205d5bd3432d4ed486950d1d", null ],
[ "DeleteNotificationsAsync", "interface_nakama_1_1_i_client.html#ad5fc12555b24c9f1fc7ae6c2ae6d53f1", null ],
[ "DeleteStorageObjectsAsync", "interface_nakama_1_1_i_client.html#a4edc7a2ce2a3dfda87d7fdaee7af6dd3", null ],
[ "DemoteGroupUsersAsync", "interface_nakama_1_1_i_client.html#aa1f0dd2441aa60debd8004bf708cc4fa", null ],
[ "EventAsync", "interface_nakama_1_1_i_client.html#a1a0b04eae451f3a16f06a9978cf69df0", null ],
[ "GetAccountAsync", "interface_nakama_1_1_i_client.html#a151c9a24a8933a426f1d5e2bb15656f3", null ],
[ "GetUsersAsync", "interface_nakama_1_1_i_client.html#ad19aacd8fbcb583b1f55e76768f93895", null ],
[ "ImportFacebookFriendsAsync", "interface_nakama_1_1_i_client.html#a29a7affc444c26547a80814f9763ba5e", null ],
[ "ImportSteamFriendsAsync", "interface_nakama_1_1_i_client.html#a57423e6a17218cf3f5c9769ac17318d4", null ],
[ "JoinGroupAsync", "interface_nakama_1_1_i_client.html#a3c7b90ccbc4bea477ed742beba5f0b61", null ],
[ "JoinTournamentAsync", "interface_nakama_1_1_i_client.html#a6a3c90ca5dfa8f8b3cbf1490efbec343", null ],
[ "KickGroupUsersAsync", "interface_nakama_1_1_i_client.html#a984fa00bdf9b43484e1c34d11bf4194e", null ],
[ "LeaveGroupAsync", "interface_nakama_1_1_i_client.html#a6324304319ca2555ef9330d5d4546b6b", null ],
[ "LinkAppleAsync", "interface_nakama_1_1_i_client.html#afaec41f2c17728ae506f11337a1e0c72", null ],
[ "LinkCustomAsync", "interface_nakama_1_1_i_client.html#a55cc8954faf55a0e67f5b1f0c885ee5a", null ],
[ "LinkDeviceAsync", "interface_nakama_1_1_i_client.html#a5b9ece24a873bc225d7c6432437447fa", null ],
[ "LinkEmailAsync", "interface_nakama_1_1_i_client.html#ab6e5ef8de682e238621fc68bb3f4b3f1", null ],
[ "LinkFacebookAsync", "interface_nakama_1_1_i_client.html#a648a1ec8f18ad5e8f9dd624a55d3e6cd", null ],
[ "LinkGameCenterAsync", "interface_nakama_1_1_i_client.html#a559153832aea87e26982bcdef1385aee", null ],
[ "LinkGoogleAsync", "interface_nakama_1_1_i_client.html#ae7b35e1cc0cc6e5630043e8ce5fd6f84", null ],
[ "LinkSteamAsync", "interface_nakama_1_1_i_client.html#afd81565158d7f5c03ad496e83bf81f1e", null ],
[ "ListChannelMessagesAsync", "interface_nakama_1_1_i_client.html#af2bbfcacd055503e64f4a3873c465093", null ],
[ "ListChannelMessagesAsync", "interface_nakama_1_1_i_client.html#a3368af90cb6bb6cd14cbb3bdcc6ba1e1", null ],
[ "ListFriendsAsync", "interface_nakama_1_1_i_client.html#aa01903eb347e9448a7843342aeb303df", null ],
[ "ListGroupsAsync", "interface_nakama_1_1_i_client.html#a50601c675840a46dab4a2b7d66aaf0f4", null ],
[ "ListGroupUsersAsync", "interface_nakama_1_1_i_client.html#a62519c9fc01c5018369ab31b51ec73a0", null ],
[ "ListLeaderboardRecordsAroundOwnerAsync", "interface_nakama_1_1_i_client.html#af26b5ac70bb8f16b8cbdf970ae77b18b", null ],
[ "ListLeaderboardRecordsAsync", "interface_nakama_1_1_i_client.html#a83608cb36850fdf9276da610d78e38d2", null ],
[ "ListMatchesAsync", "interface_nakama_1_1_i_client.html#ae59a00780ebea658dab2de284555a7b1", null ],
[ "ListNotificationsAsync", "interface_nakama_1_1_i_client.html#a6b3a1646ab9aef473f40c03148f2de6e", null ],
[ "ListStorageObjects", "interface_nakama_1_1_i_client.html#adcff742ecba6cd3302d8851ddf51d27f", null ],
[ "ListStorageObjectsAsync", "interface_nakama_1_1_i_client.html#a5e9ac28ec3af7ca5c446c7b913abacd1", null ],
[ "ListTournamentRecordsAroundOwnerAsync", "interface_nakama_1_1_i_client.html#a4cd1f9fc064aaa8142ee339ad743ecb4", null ],
[ "ListTournamentRecordsAsync", "interface_nakama_1_1_i_client.html#a23c0a895b2f2e18f6a384d57e7935f0d", null ],
[ "ListTournamentsAsync", "interface_nakama_1_1_i_client.html#acdc5f321818f4a95a2d62ad71f8c48c7", null ],
[ "ListUserGroupsAsync", "interface_nakama_1_1_i_client.html#a15fb03ca2ba4456e4158789ba8025949", null ],
[ "ListUserGroupsAsync", "interface_nakama_1_1_i_client.html#a2cdb1088fe3e684d21369323188f7d15", null ],
[ "ListUsersStorageObjectsAsync", "interface_nakama_1_1_i_client.html#a4ecb2059bea7765f4fbf88b2941cb611", null ],
[ "PromoteGroupUsersAsync", "interface_nakama_1_1_i_client.html#a5a5acafab122b628c672ab6807dae893", null ],
[ "ReadStorageObjectsAsync", "interface_nakama_1_1_i_client.html#ab9ca8eabd24431fad9a05c455dea2aef", null ],
[ "RpcAsync", "interface_nakama_1_1_i_client.html#add1b9258761edbf26e6ebd90271ba308", null ],
[ "RpcAsync", "interface_nakama_1_1_i_client.html#a299ae3e87478ab92459926aa61a081d3", null ],
[ "RpcAsync", "interface_nakama_1_1_i_client.html#a7e529a0bd6bfc20339d8b838761cd15c", null ],
[ "SessionLogoutAsync", "interface_nakama_1_1_i_client.html#aa8e54144eb16b48e59dda1b46145825a", null ],
[ "SessionLogoutAsync", "interface_nakama_1_1_i_client.html#a9708657747aad008863734e01f4e72a8", null ],
[ "SessionRefreshAsync", "interface_nakama_1_1_i_client.html#afd468d40084cd5ce415f54eee0f5b506", null ],
[ "UnlinkAppleAsync", "interface_nakama_1_1_i_client.html#a6bb69062f44659db5a6f0bf903004425", null ],
[ "UnlinkCustomAsync", "interface_nakama_1_1_i_client.html#a27dff5db1c695572d313ead0f371f715", null ],
[ "UnlinkDeviceAsync", "interface_nakama_1_1_i_client.html#a663cdc44154082ec8c965a566b1cf0fa", null ],
[ "UnlinkEmailAsync", "interface_nakama_1_1_i_client.html#a2a88e3b4ea378a447d1b3a5c7b31fb52", null ],
[ "UnlinkFacebookAsync", "interface_nakama_1_1_i_client.html#af6200bcc19b24c63a08ac9b82a668e34", null ],
[ "UnlinkGameCenterAsync", "interface_nakama_1_1_i_client.html#a37ae49ffb290acd4153dd7085545a4d6", null ],
[ "UnlinkGoogleAsync", "interface_nakama_1_1_i_client.html#a764e2357b0cda0b6bce27f5435495d18", null ],
[ "UnlinkSteamAsync", "interface_nakama_1_1_i_client.html#a6efdfd43e64ace3d23dde1c5bc624e52", null ],
[ "UpdateAccountAsync", "interface_nakama_1_1_i_client.html#a83d623b77e803b56927540a8456161d4", null ],
[ "UpdateGroupAsync", "interface_nakama_1_1_i_client.html#a95cb4afb4f9bdeb60ad4ae10274d7db8", null ],
[ "ValidatePurchaseAppleAsync", "interface_nakama_1_1_i_client.html#ae376a9ec8ccbfc247cbcbc4f51779513", null ],
[ "ValidatePurchaseGoogleAsync", "interface_nakama_1_1_i_client.html#afa510aeae1fda786a9a10f11fb8799bb", null ],
[ "ValidatePurchaseHuaweiAsync", "interface_nakama_1_1_i_client.html#aecdb81548851eddfce1162b3f45ad5c3", null ],
[ "WriteLeaderboardRecordAsync", "interface_nakama_1_1_i_client.html#a4b18f4368af39580c9594d98de5fb5c7", null ],
[ "WriteStorageObjectsAsync", "interface_nakama_1_1_i_client.html#a221fe848375a5c13a36599124410b847", null ],
[ "WriteTournamentRecordAsync", "interface_nakama_1_1_i_client.html#af4bfd829554ae4caa72859070f73ef3f", null ],
[ "AutoRefreshSession", "interface_nakama_1_1_i_client.html#a65ce1849bf8c639c0d11853be12f22f8", null ],
[ "GlobalRetryConfiguration", "interface_nakama_1_1_i_client.html#ad86bc2c00a137d35243e977086a00ffa", null ],
[ "Host", "interface_nakama_1_1_i_client.html#a93e9759631f1a3106dc4ec47477f3eb8", null ],
[ "Port", "interface_nakama_1_1_i_client.html#ad5d7b98d99d381d0340e7d8e90a54d26", null ],
[ "RetryJitterSeed", "interface_nakama_1_1_i_client.html#a05ffa9f78afcaf4190639133a0aabe8a", null ],
[ "Scheme", "interface_nakama_1_1_i_client.html#a5ce30e2720c3b831e249bf19452eb340", null ],
[ "ServerKey", "interface_nakama_1_1_i_client.html#a6b13274c171e19e07f26ea5334f8ab23", null ],
[ "Timeout", "interface_nakama_1_1_i_client.html#aadcfb5308770d73098d9ba66534074af", null ]
];
|
import ParsedDay from "./helpers/parsed-day/parsed-day.js"
import ParsedMonth from "./helpers/parsed-month/parsed-month.js"
export default class UpdateAriaLabel {
constructor(month, day, year, content) {
/**
* see comments in ../../update.js (Update) class-file
* helper classes: UpdateAriaLabel (this), UpdateInnerHTML (../update-inner-html/update-inner-html.js)
**/
this.month = month
this.day = day
this.year = year
this.content = content
this.parsedYear = this.year
this.parsedContent = this.content
const parsedDay = new ParsedDay(this.day, this.month, this.year)
this.parsedDay = parsedDay.parsed
const parsedMonth = new ParsedMonth(this.month)
this.parsedMonth = parsedMonth.parsed
this.parsed = `On the ${this.parsedDay} of ${this.parsedMonth} in ${this.parsedYear}: ${this.parsedContent}`
}
}
|
const express = require('express');
const { celebrate, Segments, Joi } = require('celebrate');
const ONGController = require('./controllers/ONGController');
const IncidentController = require('./controllers/IncidentController');
const ProfileController = require('./controllers/ProfileController');
const SessionController = require('./controllers/SessionController');
const routes = express.Router();
routes.get('/ongs', ONGController.index);
routes.post(
'/ongs',
celebrate({
[Segments.BODY]: Joi.object().keys({
name: Joi.string().required(),
email: Joi.string().required().email(),
whatsapp: Joi.number()
.required()
.integer()
.min(10000000000)
.max(99999999999),
city: Joi.string().required(),
uf: Joi.string().required().length(2),
}),
}),
ONGController.store,
);
routes.get(
'/incidents',
celebrate({
[Segments.QUERY]: Joi.object().keys({
page: Joi.number(),
}),
}),
IncidentController.index,
);
routes.post(
'/incidents',
celebrate({
[Segments.HEADERS]: Joi.object({
authorization: Joi.string().required().length(8),
}).unknown(),
[Segments.BODY]: Joi.object().keys({
title: Joi.string().required(),
description: Joi.string().required(),
value: Joi.number().required(),
}),
}),
IncidentController.store,
);
routes.delete(
'/incidents/:id',
celebrate({
[Segments.PARAMS]: Joi.object().keys({
id: Joi.number().required(),
}),
}),
IncidentController.delete,
);
routes.get(
'/profile',
celebrate({
[Segments.HEADERS]: Joi.object({
authorization: Joi.string().required().length(8),
}).unknown(),
}),
ProfileController.index,
);
routes.post(
'/sessions',
celebrate({
[Segments.BODY]: Joi.object({
id: Joi.string().required().length(8),
}),
}),
SessionController.store,
);
module.exports = routes;
|
export const layersEditable16 = "M13.423 8.208l.734-.734 1.866 1.05-8 4.5-8-4.5L5.6 5.386l-.65 1.513-2.887 1.624 5.96 3.353 3.01-1.693.371-.16a1.983 1.983 0 0 0 .545-.355l2.034-1.145zm-5.4 6.668l-6.98-3.926-1.02.573 7.915 4.452a.175.175 0 0 0 .171 0l7.914-4.452-1.02-.573zm-1.99-5.422l.285-.667 1.47-3.43L12.84.307a.965.965 0 0 1 1.385.03l1.414 1.414a.965.965 0 0 1 .03 1.384l-1.446 1.443-3.607 3.609-3.014 1.292-1.082.464a.371.371 0 0 1-.488-.488zM12.21 2.35l1.415 1.414 1.09-1.09a.306.306 0 0 0 0-.434l-.98-.98a.306.306 0 0 0-.434 0zM8.495 6.065L9.91 7.479l3.008-3.008-1.414-1.414zm-.924 2.338l1.294-.554-.74-.74z";
|
const fs = require("fs");
const path = require("path");
const config = require("./config.json"); // 設定檔
const pokaLog = require("./log") // 可愛控制台輸出
const playlist = fs.existsSync("./playlist.json") ? require("./playlist.json") : []; // 歌單
const router = require("express").Router();
const bodyParser = require("body-parser");
const db = require("./db/db.js");
const lyricdb = require("./db/lyric.js");
if (config.PokaPlayer.debug) {
router.use(require('cors')({
credentials: true,
origin: 'http://localhost:8080'
}))
}
function verifyPassword(password) {
}
router.use(db.session);
router.use(bodyParser.json());
router.use(bodyParser.urlencoded({
extended: true
}));
let moduleList = {};
fs.readdir(__dirname + "/dataModule", (err, files) => {
if (err) return console.error(err);
files.forEach(async file => {
if (path.extname(file) == ".js" && !file.match(/^._/)) {
let uri = __dirname + "/dataModule/" + file,
_module = require(uri);
let moduleData = {
name: _module.name,
active: Object.keys(_module),
js: uri
};
let enabled = moduleData.active.indexOf("onLoaded") > -1 && _module.enabled ?
await _module.onLoaded() :
true;
if (enabled && _module.enabled) moduleList[moduleData.name] = moduleData;
}
});
});
// 首頁
router.get("/", (req, res) => {
res.send("PokaPlayer API");
});
// 先在這裡蹦蹦蹦再轉交給其他好朋友
router.use((req, res, next) => {
if (req.session.user) {
if (req.method.toUpperCase() === "GET") {
res.header("Cache-Control", "max-age=7200") //快取 2hr
}
next();
} else {
res.status(403).send("Permission Denied Desu");
}
});
// router
router.use("/playlist", require("./router/playlist"));
router.use("/v2", require("./router/index"));
//-----------------------------> 首頁
// 取得想推薦的東西(?
router.get("/home/", async (req, res) => {
//http://localhost:3000/pokaapi/home
let resData = [];
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("getHome") > -1) {
try {
let results = (await y.getHome(req.session.user)) || null;
let isNotEmpty = (...x) => {
let r = false
x.forEach(v => {
if (v && v.length > 0) r = true
})
return r
}
if (results) {
for (result of results) {
if (isNotEmpty(result.playlists, result.songs, result.albums, result.artists, result.composers))
resData.push(result)
}
}
} catch (e) {
showError(x.name, e)
}
}
}
return res.json(resData);
});
//-----------------------------> 釘選好朋油
router.post("/addPin/", async (req, res) => {
//http://localhost:3000/pokaapi/addPin/?moduleName=DSM&type=album&id={%22album%22:%22%E4%B8%96%E7%95%8C%E3%81%AE%E6%9E%9C%E3%81%A6%E3%81%AB%E5%90%9B%E3%81%8C%E3%81%84%E3%81%A6%E3%82%82%22,%22album_artist%22:%22%E5%96%9C%E5%A4%9A%E4%BF%AE%E5%B9%B3%22}&name=%E4%B8%96%E7%95%8C%E3%81%AE%E6%9E%9C%E3%81%A6%E3%81%AB%E5%90%9B%E3%81%8C%E3%81%84%E3%81%A6%E3%82%82
//[{"type":"album","criteria":{"album":"世界の果てに君がいても","album_artist":"喜多修平"},"name":"世界の果てに君がいても"}]
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("addPin") == -1)
return res.send("disabled");
try {
res.json(await _module.addPin(req.query.type, req.query.id, req.query.name));
} catch (e) {
showError(moduleList[moduleName].name, e)
return res.send("disabled");
}
});
router.post("/unPin/", async (req, res) => {
//http://localhost:3000/pokaapi/unPin/?moduleName=DSM&type=album&id={%22album%22:%22%E4%B8%96%E7%95%8C%E3%81%AE%E6%9E%9C%E3%81%A6%E3%81%AB%E5%90%9B%E3%81%8C%E3%81%84%E3%81%A6%E3%82%82%22,%22album_artist%22:%22%E5%96%9C%E5%A4%9A%E4%BF%AE%E5%B9%B3%22}&name=%E4%B8%96%E7%95%8C%E3%81%AE%E6%9E%9C%E3%81%A6%E3%81%AB%E5%90%9B%E3%81%8C%E3%81%84%E3%81%A6%E3%82%82
//[{"type":"album","criteria":{"album":"世界の果てに君がいても","album_artist":"喜多修平"},"name":"世界の果てに君がいても"}]
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("unPin") == -1)
return res.send("disabled");
try {
res.json(await _module.unPin(req.query.type, req.query.id, req.query.name));
} catch (e) {
showError(moduleList[moduleName].name, e)
return res.send("disabled");
}
});
router.post("/isPinned/", async (req, res) => {
//http://localhost:3000/pokaapi/isPinned/?moduleName=DSM&type=album&id={%22album%22:%22%E4%B8%96%E7%95%8C%E3%81%AE%E6%9E%9C%E3%81%A6%E3%81%AB%E5%90%9B%E3%81%8C%E3%81%84%E3%81%A6%E3%82%82%22,%22album_artist%22:%22%E5%96%9C%E5%A4%9A%E4%BF%AE%E5%B9%B3%22}&name=%E4%B8%96%E7%95%8C%E3%81%AE%E6%9E%9C%E3%81%A6%E3%81%AB%E5%90%9B%E3%81%8C%E3%81%84%E3%81%A6%E3%82%82
//[{"type":"album","criteria":{"album":"世界の果てに君がいても","album_artist":"喜多修平"},"name":"世界の果てに君がいても"}]
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("isPinned") == -1)
return res.send("disabled");
try {
res.json(await _module.isPinned(req.query.type, req.query.id, req.query.name));
} catch (e) {
showError(moduleList[moduleName].name, e)
return res.send("disabled");
}
});
//-----------------------------> 資料夾
// 取得資料夾清單(根目錄)
router.get("/folders/", async (req, res) => {
//http://localhost:3000/pokaapi/folders
let folders = {
folders: [],
songs: []
};
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("getFolders") > -1) {
try {
let folderList = (await y.getFolders()) || null;
if (folderList) {
for (i = 0; i < folderList.folders.length; i++)
folders.folders.push(folderList.folders[i]);
for (i = 0; i < folderList.songs.length; i++)
folders.songs.push(folderList.songs[i]);
}
} catch (e) {
showError(x.name, e)
}
}
}
res.json(folders);
});
// 透過取得資料夾內檔案清單
router.get("/folderFiles/", async (req, res) => {
//http://localhost:3000/pokaapi/folderFiles/?moduleName=DSM&id=dir_636
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getFolderFiles") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let resData = {
folders: [],
songs: []
};
try {
let info = await _module.getFolderFiles(req.query.id);
for (i = 0; i < info.folders.length; i++) resData.folders.push(info.folders[i]);
for (i = 0; i < info.songs.length; i++) resData.songs.push(info.songs[i]);
} catch (e) {
showError(moduleName, e)
}
return res.json(resData);
});
//-----------------------------> 搜尋
// 搜尋
router.get("/search/", async (req, res) => {
//http://localhost:3000/pokaapi/search/?keyword=a
let resData = {
folders: [],
songs: [],
albums: [],
songs: [],
artists: [],
composers: [],
playlists: []
};
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("search") > -1) {
try {
let result = (await y.search(req.query.keyword)) || null;
if (result) {
if (result.folders)
for (i = 0; i < result.folders.length; i++)
resData.folders.push(result.folders[i]);
if (result.songs)
for (i = 0; i < result.songs.length; i++)
resData.songs.push(result.songs[i]);
if (result.albums)
for (i = 0; i < result.albums.length; i++)
resData.albums.push(result.albums[i]);
if (result.artists)
for (i = 0; i < result.artists.length; i++)
resData.artists.push(result.artists[i]);
if (result.composers)
for (i = 0; i < result.composers.length; i++)
resData.composers.push(result.composers[i]);
if (result.playlists)
for (i = 0; i < result.playlists.length; i++)
resData.playlists.push(result.playlists[i]);
}
} catch (e) {
showError(x.name, e)
}
}
}
return res.json(resData);
});
//-----------------------------> 專輯
// 取得專輯清單
router.get("/albums/", async (req, res) => {
//http://localhost:3000/pokaapi/albums
let albums = {
albums: []
};
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("getAlbums") > -1) {
try {
let albumList = (await y.getAlbums()) || null;
if (albumList) {
for (i = 0; i < albumList.albums.length; i++)
albums.albums.push(albumList.albums[i]);
}
} catch (e) {
showError(x.name, e)
}
}
}
res.json(albums);
});
// 取得專輯歌曲
router.get("/albumSongs/", async (req, res) => {
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getAlbumSongs") == -1)
return res.status(501).send("The required module is currently unavailable :(");
//http://localhost:3000/pokaapi/albumSongs/?moduleName=DSM&data={%22album_name%22:%22%E2%8A%BF%22,%22artist_name%22:%22Perfume%22,%22album_artist_name%22:%22Perfume%22}
// -> {"album_name":"⊿","artist_name":"Perfume","album_artist_name":"Perfume"}
let albumSongs;
try {
albumSongs = await _module.getAlbumSongs(req.query.data);
} catch (e) {
albumSongs = {
songs: []
};
showError(moduleName, e)
}
return res.json(albumSongs);
});
// 取得專輯資料
router.get("/album/", async (req, res) => {
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getAlbum") == -1)
return res.status(501).send("The required module is currently unavailable :(");
//http://localhost:3000/pokaapi/album/?moduleName=Netease2&id=34841226
// -> Album + Songs
let album;
try {
album = await _module.getAlbum(req.query.id);
} catch (e) {
showError(x.name, e)
}
return res.json(album);
});
//-----------------------------> 播放清單
// 取得播放清單的清單
router.get("/playlists/", async (req, res) => {
//http://localhost:3000/pokaapi/playlists
let r = {
playlists: []
};
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("getPlaylists") > -1) {
try {
let list = (await y.getPlaylists(req.session.user)) || null;
if (list) {
for (i = 0; i < list.playlists.length; i++) r.playlists.push(list.playlists[i]);
}
} catch (e) {
showError(x.name, e)
}
}
}
res.json(r);
});
// 取得播放清單資料夾
router.post("/playlists/", async (req, res) => {
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getPlaylists") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let r;
try {
r = await _module.getPlaylists(req.body.playlists, req.session.user);
} catch (e) {
showError(moduleName, e)
}
return res.json(r || null);
});
// 取得播放清單的歌曲
router.get("/playlistSongs/", async (req, res) => {
//http://localhost:3000/pokaapi/playlistSongs/?moduleName=DSM&id=playlist_shared_normal/15
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getPlaylistSongs") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let r;
try {
r = await _module.getPlaylistSongs(req.query.id, req.session.user);
} catch (e) {
showError(moduleName, e)
}
return res.json(r || null);
});
// 取得可加入的播放清單
router.get("/userPlaylists/", async (req, res) => {
//http://localhost:3000/pokaapi/userPlaylists/?moduleName=netease2
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getUserPlaylists") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let r;
try {
r = await _module.getUserPlaylists();
} catch (e) {
showError(moduleName, e)
}
return res.json(r || null);
});
//-----------------------------> 演出者
// 取得演出者資料
router.get("/artist/", async (req, res) => {
//http://localhost:3000/pokaapi/artist/?moduleName=Netease2&id=19859
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getArtist") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let r;
try {
r = await _module.getArtist(req.query.id);
} catch (e) {
showError(moduleName, e)
}
return res.json(r || null);
});
// 取得演出者清單
router.get("/artists/", async (req, res) => {
//http://localhost:3000/pokaapi/artists
let r = {
artists: []
};
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("getArtists") > -1) {
try {
let list = (await y.getArtists()) || null;
if (list) {
for (i = 0; i < list.artists.length; i++) r.artists.push(list.artists[i]);
}
} catch (e) {
showError(x.name, e)
}
}
}
res.json(r);
});
// 取得演出者的專輯
router.get("/artistAlbums/", async (req, res) => {
//http://localhost:3000/pokaapi/artistAlbums/?moduleName=DSM&id=ひいらぎ
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getArtistAlbums") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let r;
try {
r = await _module.getArtistAlbums(req.query.id);
} catch (e) {
showError(moduleName, e)
}
return res.json(r);
});
//-----------------------------> 作曲者
router.get("/composer/", async (req, res) => {
//http://localhost:3000/pokaapi/composers/?moduleName=DSN&id=19859
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getComposer") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let r;
try {
r = await _module.getComposer(req.query.id);
} catch (e) {
showError(moduleName, e)
}
return res.json(r || null);
});
// 取得作曲者清單
router.get("/composers/", async (req, res) => {
//http://localhost:3000/pokaapi/composers
let r = {
composers: []
};
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("getComposers") > -1) {
try {
let list = (await y.getComposers()) || null;
if (list) {
for (i = 0; i < list.composers.length; i++) r.composers.push(list.composers[i]);
}
} catch (e) {
showError(x.name, e)
}
}
}
res.json(r);
});
// 取得作曲者的專輯
router.get("/composerAlbums/", async (req, res) => {
//http://localhost:3000/pokaapi/composerAlbums/?moduleName=DSM&id=飛内将大
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getComposerAlbums") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let r;
try {
r = await _module.getComposerAlbums(req.query.id);
} catch (e) {
showError(moduleName, e)
}
return res.json(r || {
albums: []
});
});
//-----------------------------> 歌曲
// 取得歌曲串流
router.get("/song/", async (req, res) => {
// http://localhost:3000/pokaapi/song/?moduleName=DSM&songRes=original&songId=music_758 //這首 Chrome 會出錯
// http://localhost:3000/pokaapi/song/?moduleName=DSM&songRes=original&songId=music_941
// -> getSong(req, "original", "music_758")
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module) return res.status(501).send("The required module is currently unavailable :(");
let song = await _module.getSong(req, req.query.songRes, req.query.songId, res);
if (typeof song == "string") return res.redirect(song);
else {
return song
.on("response", response => {
//針對 Audio 寫入 Header 避免 Chrome 時間軸不能跳
res.writeHead(206, {
"Accept-Ranges": response.headers["accept-ranges"] ?
response.headers["accept-ranges"] : "",
"Content-Length": response.headers["content-length"] ?
response.headers["content-length"] : "",
"Content-Range": response.headers["content-range"] ?
response.headers["content-range"] : "",
"Content-Type": response.headers["content-type"] ?
response.headers["content-type"] : ""
});
})
.pipe(res);
}
});
//- 評等
router
.get("/ratingSong/", async (req, res) => { // 戳戳看能不能用
//http://localhost:3000/pokaapi/ratingSong/?moduleName=DSM
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("ratingSong") == -1)
return res.status(501).send("The required module is currently unavailable :(");
return res.json(true)
})
.post("/ratingSong/", async (req, res) => {
/*
req.body: {
moduleName: "Netease2",
songId: [songId <int>],
rating: 0-5
}
*/
let moduleName = req.body.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("ratingSong") == -1)
return res.status(501).send("The required module is currently unavailable :(");
return res.json(await _module.ratingSong(req.body.songId, req.body.rating))
})
//-----------------------------> 封面
// 取得封面
router.get("/cover/", async (req, res) => {
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getCover") == -1)
return res.status(501).send("The required module is currently unavailable :(");
//http://localhost:3000/pokaapi/cover/?moduleName=DSM&data={%22type%22:%22artist%22,%22info%22:%22%E3%82%8D%E3%82%93%22}
// -> {"type":"artist","info":"ろん"}
//http://localhost:3000/pokaapi/cover/?moduleName=DSM&data={%22type%22:%22album%22,%22info%22:{%22album_name%22:%22%E6%AE%BF%E5%A0%82%E2%85%A2%22,%22artist_name%22:%22%E7%BA%AF%E7%99%BD,%20Digger%20feat.%20%E4%B9%90%E6%AD%A3%E7%BB%AB,%20%E6%B4%9B%E5%A4%A9%E4%BE%9D%22,%22album_artist_name%22:%22Various%20Artists%22}}
// -> {"type":"album","info":{"album_name":"殿堂Ⅲ","artist_name":"纯白, Digger feat. 乐正绫, 洛天依","album_artist_name":"Various Artists"}}
let cover = await _module.getCover(req.query.data);
return cover.pipe(res);
});
router.get("/req/", async (req, res) => {
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("req") == -1)
return res.status(501).send("The required module is currently unavailable :(");
//http://localhost:3000/pokaapi/req/?moduleName=Netease2&data=http%3A%2F%2Fp3.music.126.net%2FJB1yLZyVMPsbbSlSkfJdRw%3D%3D%2F6630055116648156.jpg
// -> Image
let cover = await _module.req(req.query.data);
return cover ? cover.pipe(res) : false;
});
//-----------------------------> 歌詞
// 搜尋歌詞
router.get("/searchLyrics/", async (req, res) => {
//http://localhost:3000/pokaapi/searchLyrics/?keyword=a
let resData = {
lyrics: []
};
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("searchLyrics") > -1) {
try {
let result = (await y.searchLyrics(req.query.keyword)) || null;
if (result && result.lyrics)
for (i = 0; i < result.lyrics.length; i++)
resData.lyrics.push(result.lyrics[i]);
} catch (e) {
showError(x.name, e)
}
}
}
return res.json(resData);
});
router.post("/lyric/", async (req, res) => {
let {
title,
artist,
songId,
source,
lyric
} = req.body
res.json(await lyricdb.saveLyric({
title,
artist,
songId,
source,
lyric
}))
})
router.get("/lyric/", async (req, res) => {
//http://localhost:3000/pokaapi/lyric/?moduleName=DSM&id=music_1801
let moduleName = req.query.moduleName;
let lyric = ``;
try {
lyric = await lyricdb.getLyric({
songId: req.query.id,
source: moduleName
});
if (!lyric) {
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!(!_module || moduleList[moduleName].active.indexOf("getLyric") == -1))
lyric = await _module.getLyric(req.query.id);
}
} catch (e) {
showError(moduleName, e)
}
return res.json({
lyrics: [{
source: req.query.moduleName,
id: req.query.id,
lyric: lyric
}]
});
});
//-----------------------------> 加入清單
router.get("/getUserPlaylists", async (req, res) => {
//http://localhost:3000/pokaapi/getUserPlaylists/?moduleName=Netease2
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("getUserPlaylists") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let result;
try {
result = await _module.getUserPlaylists()
} catch (e) {
result = false
showError(moduleName, e)
}
return res.json(result);
})
//-----------------------------> 清單動作
router
.get("/playlistOperation", async (req, res) => {
// http://localhost:3000/pokaapi/playlistOperation/
/*
------->>>>>req.query: {
moduleName: "Netease2",
songIds: [songId <int>],
playlistId <int>
}
*/
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("playlistOperation") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let result;
try {
result = await _module.playlistOperation("in")(JSON.parse(req.query.songIds), req.query.playlistId)
} catch (e) {
result = false
showError(moduleName, e)
}
res.header("Cache-Control", "max-age=0") //快取 0
return res.json(result);
})
.post("/playlistOperation", async (req, res) => {
// http://localhost:3000/pokaapi/playlistOperation/
/*
req.body: {
moduleName: "Netease2",
songIds: [songId <int>],
playlistId <int>
}
*/
let moduleName = req.body.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("playlistOperation") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let result;
try {
result = await _module.playlistOperation("add")(req.body.songIds, req.body.playlistId)
} catch (e) {
result = false
showError(moduleName, e)
}
return res.json(result);
})
.delete("/playlistOperation", async (req, res) => {
// http://localhost:3000/pokaapi/playlistOperation/
/*
req.query: {
moduleName: "Netease2",
songIds: [songId <int>],
playlistId <int>
}
*/
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("playlistOperation") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let result;
try {
result = await _module.playlistOperation("delete")(JSON.parse(req.query.songIds), req.query.playlistId)
} catch (e) {
result = false
showError(moduleName, e)
}
res.header("Cache-Control", "max-age=0") //快取 0
return res.json(result);
})
//-----------------------------> 喜歡
router.get('/canLike', async (req, res) => {
//http://localhost:3000/pokaapi/canLike/?moduleName=Netease2
let moduleName = req.query.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("like") == -1)
return res.status(501).send("The required module is currently unavailable :(");
return res.json(true)
})
.post('/isLiked', async (req, res) => {
//POST http://localhost:3000/pokaapi/isLiked/
/*
req.query: {
moduleName: "Netease2",
songId: songId
}
*/
let moduleName = req.body.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("isLiked") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let result;
try {
result = await _module.isLiked(req.body.songId)
} catch (e) {
result = false
showError(moduleName, e)
}
return res.json(result);
})
.post('/like', async (req, res) => {
//POST http://localhost:3000/pokaapi/like/
/*
req.query: {
moduleName: "Netease2",
songId: songId
}
*/
let moduleName = req.body.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("like") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let result;
try {
result = await _module.like(req.body.songId, true)
} catch (e) {
result = false
showError(moduleName, e)
}
return res.json(result);
})
.post('/disLike', async (req, res) => {
//POST http://localhost:3000/pokaapi/disLike/
/*
req.query: {
moduleName: "Netease2",
songId: songId
}
*/
let moduleName = req.body.moduleName;
let _module = moduleName in moduleList ? require(moduleList[moduleName].js) : null;
// 沒這東西
if (!_module || moduleList[moduleName].active.indexOf("like") == -1)
return res.status(501).send("The required module is currently unavailable :(");
let result;
try {
result = await _module.like(req.body.songId, false)
} catch (e) {
result = false
showError(moduleName, e)
}
return res.json(result);
})
//-----------------------------> 隨機
// 隨機歌曲
router.get("/randomSongs/", async (req, res) => {
//http://localhost:3000/pokaapi/randomSongs/
let resData = {
songs: []
};
for (var i in Object.keys(moduleList)) {
let x = moduleList[Object.keys(moduleList)[i]];
let y = require(x.js);
if (x.active.indexOf("getRandomSongs") > -1) {
try {
let result = (await y.getRandomSongs(req.query.keyword)) || null;
if (result && result.songs)
for (i = 0; i < result.songs.length; i++) resData.songs.push(result.songs[i]);
} catch (e) {
showError(x.name, e)
}
}
}
return res.json(resData);
});
router.use((req, res, next) => {
res.status(404).send("PokaPlayer API - 404");
});
let logFile = fs.createWriteStream('poka.log', {
flags: 'a'
});
function showError(moduleName = false, error) {
pokaLog.logDMErr(moduleName || '?', '發生了錯誤,請查看 poka.log 檔案')
logFile.write(`[${new Date()}][${error}]${error}\n`);
}
module.exports = router;
|
/*! UIkit 2.26.4 | 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.uk.switcher", this.options.toggle, function(e) {
e.preventDefault();
$this.show(this);
});
if (this.options.connect) {
this.connect = UI.$(this.options.connect);
this.connect.children().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');
}
},
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() {
setTimeout(function () {
next.removeClass(''+clsIn+'').css({opacity:'', display:''});
}, 0);
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);
|
/*! elementor-pro - v3.6.0 - 31-01-2022 */
(self["webpackChunkelementor_pro"] = self["webpackChunkelementor_pro"] || []).push([["woocommerce-menu-cart"],{
/***/ "../modules/woocommerce/assets/js/frontend/handlers/menu-cart.js":
/*!***********************************************************************!*\
!*** ../modules/woocommerce/assets/js/frontend/handlers/menu-cart.js ***!
\***********************************************************************/
/***/ ((__unused_webpack_module, exports) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.default = void 0;
class _default extends elementorModules.frontend.handlers.Base {
getDefaultSettings() {
return {
selectors: {
container: '.elementor-menu-cart__container',
main: '.elementor-menu-cart__main',
toggle: '.elementor-menu-cart__toggle',
toggleButton: '#elementor-menu-cart__toggle_button',
toggleWrapper: '.elementor-menu-cart__toggle_wrapper',
closeButton: '.elementor-menu-cart__close-button',
productList: '.elementor-menu-cart__products'
},
classes: {
isShown: 'elementor-menu-cart--shown'
}
};
}
getDefaultElements() {
const selectors = this.getSettings('selectors');
return {
$container: this.$element.find(selectors.container),
$main: this.$element.find(selectors.main),
$toggleWrapper: this.$element.find(selectors.toggleWrapper),
$closeButton: this.$element.find(selectors.closeButton)
};
}
toggleCart() {
if (!this.isCartOpen) {
this.showCart();
} else {
this.hideCart();
}
}
showCart() {
if (this.isCartOpen) {
return;
}
const classes = this.getSettings('classes'),
selectors = this.getSettings('selectors');
this.isCartOpen = true;
this.$element.addClass(classes.isShown);
this.$element.find(selectors.toggleButton).attr('aria-expanded', true);
this.elements.$main.attr('aria-hidden', false);
this.elements.$container.attr('aria-hidden', false);
}
hideCart() {
if (!this.isCartOpen) {
return;
}
const classes = this.getSettings('classes'),
selectors = this.getSettings('selectors');
this.isCartOpen = false;
this.$element.removeClass(classes.isShown);
this.$element.find(selectors.toggleButton).attr('aria-expanded', false);
this.elements.$main.attr('aria-hidden', true);
this.elements.$container.attr('aria-hidden', true);
}
automaticallyOpenCart() {
const settings = this.getElementSettings();
if ('yes' === settings.automatically_open_cart) {
this.showCart();
}
}
bindEvents() {
const menuCart = elementorProFrontend.config.woocommerce.menu_cart,
noQueryParams = -1 === menuCart.cart_page_url.indexOf('?'),
currentUrl = noQueryParams ? window.location.origin + window.location.pathname : window.location.href,
cartUrl = menuCart.cart_page_url,
isCart = menuCart.cart_page_url === currentUrl,
isCheckout = menuCart.checkout_page_url === currentUrl,
selectors = this.getSettings('selectors'),
settings = this.getElementSettings(),
classes = this.getSettings('classes'); // If on cart page or checkout page don't open cart, rather stay on, or go to cart page, and bail from init.
if (isCart && isCheckout) {
this.$element.find(selectors.toggleButton).attr('href', cartUrl);
return;
} // Cache cart open state.
this.isCartOpen = this.$element.hasClass(classes.isShown);
if ('mouseover' === settings.open_cart) {
// Enable opening of mini-cart and side-cart by hover (include click so we can `preventDefault()` page-top jump on click).
this.elements.$toggleWrapper.on('mouseover click', selectors.toggleButton, event => {
event.preventDefault();
this.showCart();
}); // Close Cart on mouseleave.
this.elements.$toggleWrapper.on('mouseleave', () => this.hideCart());
} else {
// Enable opening of mini-cart and side-cart by click.
this.elements.$toggleWrapper.on('click', selectors.toggleButton, event => {
event.preventDefault();
this.toggleCart();
});
} // Listen for clicks outside to close any open cart.
elementorFrontend.elements.$document.on('click', event => {
if (!this.isCartOpen) {
return;
}
const $target = jQuery(event.target); // Don't close if this is click on the main panel or toggle button.
if ($target.closest(this.elements.$main).length || $target.closest(selectors.toggle).length) {
return;
}
this.hideCart();
});
this.elements.$closeButton.on('click', event => {
event.preventDefault();
this.hideCart();
});
elementorFrontend.elements.$document.on('keyup', event => {
const ESC_KEY = 27;
if (ESC_KEY === event.keyCode) {
this.hideCart();
}
}); // Option to open cart on add to cart.
elementorFrontend.elements.$body.on('added_to_cart', () => this.automaticallyOpenCart()); // Govern the height of the mini-cart dropdown.
elementorFrontend.addListenerOnce(this.getUniqueHandlerID() + '_window_resize_dropdown', 'resize', () => this.governDropdownHeight());
elementorFrontend.elements.$body.on('wc_fragments_loaded wc_fragments_refreshed', () => this.governDropdownHeight());
}
unbindEvents() {
elementorFrontend.removeListeners(this.getUniqueHandlerID() + '_window_resize_dropdown', 'resize');
}
onInit() {
super.onInit();
/**
* When the page is reloaded after an item is added to cart, and the user activated the
* "Automatically Open Cart" option, the cart should open to show the updated contents.
*/
if (elementorProFrontend.config.woocommerce.productAddedToCart) {
this.automaticallyOpenCart();
} // Govern the height of the mini-cart dropdown.
this.governDropdownHeight();
}
governDropdownHeight() {
const settings = this.getElementSettings(),
selectors = this.getSettings('selectors'); // Only do this for mini-cart.
if ('mini-cart' !== settings.cart_type) {
return;
} // Elements need to be re-instantiated every time as WooCommerce reloads the toggle button
// and cart contents in our widget when the cart changes e.g. adding products to the cart.
const $productList = this.$element.find(selectors.productList),
$toggle = this.$element.find(selectors.toggle); // Make sure required elements exist.
if (!$productList.length || !$toggle.length) {
return;
} // Remove max-height of productList so we can take new measurements.
this.$element.find(selectors.productList).css('max-height', ''); // Calculate what the height of the productList should be based on elements above, below and it's vertical position.
const windowHeight = document.documentElement.clientHeight,
toggleHeight = $toggle.height() + parseInt(this.elements.$main.css('margin-top')),
toggleTopPosition = $toggle[0].getBoundingClientRect().top,
productListHeight = $productList.height(),
dropdownWithoutViewportHeight = this.elements.$main.prop('scrollHeight') - productListHeight,
extraBottomSpacing = 30,
maxViewportHeight = windowHeight - toggleTopPosition - toggleHeight - dropdownWithoutViewportHeight - extraBottomSpacing,
optimalViewportHeight = Math.max(120, maxViewportHeight); // Apply max-height to the productList.
$productList.css('max-height', optimalViewportHeight);
}
}
exports.default = _default;
/***/ })
}]);
//# sourceMappingURL=woocommerce-menu-cart.1a59bef6cb1d56bbd703.bundle.js.map
|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
* @emails oncall+relay
*/
// flowlint ambiguous-object-type:error
'use strict';
const RelayNetwork = require('../../network/RelayNetwork');
const RelayObservable = require('../../network/RelayObservable');
const {getFragment, getRequest, graphql} = require('../../query/GraphQLTag');
const RelayModernEnvironment = require('../RelayModernEnvironment');
const {
createOperationDescriptor,
} = require('../RelayModernOperationDescriptor');
const {createReaderSelector} = require('../RelayModernSelector');
const RelayModernStore = require('../RelayModernStore');
const RelayRecordSource = require('../RelayRecordSource');
const {disallowWarnings} = require('relay-test-utils-internal');
disallowWarnings();
describe('execute()', () => {
let callbacks;
const commentID = 'comment-id';
let CommentFragment;
let CommentQuery;
let complete;
let CommentCreateSubscription;
let environment;
let error;
let fetchFn;
let subscribeFn;
let operation;
let queryOperation;
let source;
let store;
let dataSource;
let variables;
let queryVariables;
beforeEach(() => {
CommentCreateSubscription = getRequest(graphql`
subscription RelayModernEnvironmentExecuteSubscriptionTestCommentCreateSubscription(
$input: CommentCreateSubscriptionInput!
) {
commentCreateSubscribe(input: $input) {
comment {
id
body {
text
}
}
}
}
`);
CommentFragment = getFragment(graphql`
fragment RelayModernEnvironmentExecuteSubscriptionTestCommentFragment on Comment {
id
body {
text
}
}
`);
CommentQuery = getRequest(graphql`
query RelayModernEnvironmentExecuteSubscriptionTestCommentQuery(
$id: ID!
) {
node(id: $id) {
id
...RelayModernEnvironmentExecuteSubscriptionTestCommentFragment
}
}
`);
variables = {
input: {
clientMutationId: '0',
feedbackId: '1',
},
};
queryVariables = {
id: commentID,
};
operation = createOperationDescriptor(CommentCreateSubscription, variables);
queryOperation = createOperationDescriptor(CommentQuery, queryVariables);
fetchFn = jest.fn((_query, _variables, _cacheConfig) =>
RelayObservable.create(sink => {}),
);
subscribeFn = jest.fn((_query, _variables, _cacheConfig) =>
RelayObservable.create(sink => {
dataSource = sink;
}),
);
source = RelayRecordSource.create();
store = new RelayModernStore(source);
environment = new RelayModernEnvironment({
network: RelayNetwork.create(fetchFn, subscribeFn),
store,
});
complete = jest.fn();
error = jest.fn();
callbacks = {complete, error};
});
it('fetches the subscription with the provided subscribe function', () => {
environment.executeSubscription({operation}).subscribe({});
expect(subscribeFn.mock.calls.length).toBe(1);
expect(subscribeFn.mock.calls[0][0]).toEqual(
CommentCreateSubscription.params,
);
expect(subscribeFn.mock.calls[0][1]).toEqual(variables);
});
it('commits the server payload and runs the updater, subscription not marked in flight in operation tracker', () => {
const selector = createReaderSelector(
CommentFragment,
commentID,
{},
queryOperation.request,
);
const snapshot = environment.lookup(selector);
const callback = jest.fn();
environment.subscribe(snapshot, callback);
environment
.executeSubscription({
operation,
updater: _store => {
const comment = _store.get(commentID);
if (!comment) {
throw new Error('Expected comment to be in the store');
}
const body = comment.getLinkedRecord('body');
if (!body) {
throw new Error('Expected comment to have a body');
}
const bodyValue: string = (body.getValue('text'): $FlowFixMe);
if (bodyValue == null) {
throw new Error('Expected comment body to have text');
}
body.setValue(bodyValue.toUpperCase(), 'text');
},
})
.subscribe(callbacks);
callback.mockClear();
dataSource.next({
data: {
commentCreateSubscribe: {
comment: {
id: commentID,
body: {
text: 'Gave Relay', // server data is lowercase
},
},
},
},
});
expect(complete).not.toBeCalled();
expect(error).not.toBeCalled();
expect(callback.mock.calls.length).toBe(1);
expect(callback.mock.calls[0][0].data).toEqual({
id: commentID,
body: {
text: 'GAVE RELAY', // converted to uppercase by updater
},
});
// The Subscription affecting the query should not be marked as in flight
// since it has no incremental payloads
expect(
environment
.getOperationTracker()
.getPendingOperationsAffectingOwner(queryOperation.request),
).toBe(null);
});
it('does not commit the server payload if disposed', () => {
const selector = createReaderSelector(
CommentFragment,
commentID,
{},
queryOperation.request,
);
const snapshot = environment.lookup(selector);
const callback = jest.fn();
environment.subscribe(snapshot, callback);
const subscription = environment
.executeSubscription({
operation,
updater: _store => {
const comment = _store.get(commentID);
if (!comment) {
throw new Error('Expected comment to be in the store');
}
const body = comment.getLinkedRecord('body');
if (!body) {
throw new Error('Expected comment to have a body');
}
const bodyValue: string = (body.getValue('text'): $FlowFixMe);
if (bodyValue == null) {
throw new Error('Expected comment body to have text');
}
body.setValue(bodyValue.toUpperCase(), 'text');
},
})
.subscribe(callbacks);
subscription.unsubscribe();
callback.mockClear();
dataSource.next({
data: {
commentCreateSubscribe: {
comment: {
id: commentID,
body: {
text: 'Gave Relay',
},
},
},
},
});
dataSource.complete();
expect(complete).not.toBeCalled();
expect(error).not.toBeCalled();
expect(callback).toBeCalledTimes(0);
// The Subscription affecting the query should not be marked as in flight
// since it was disposed
expect(
environment
.getOperationTracker()
.getPendingOperationsAffectingOwner(queryOperation.request),
).toBe(null);
});
});
|
/**
* bootbox.js v4.2.0
*
* http://bootboxjs.com/license.txt
*/
!function(a,b){"use strict";"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof exports?module.exports=b(require("jquery")):a.bootbox=b(a.jQuery)}(this,function a(b,c){"use strict";function d(a){var b=q[o.locale];return b?b[a]:q.en[a]}function e(a,c,d){a.stopPropagation(),a.preventDefault();var e=b.isFunction(d)&&d(a)===!1;e||c.modal("hide")}function f(a){var b,c=0;for(b in a)c++;return c}function g(a,c){var d=0;b.each(a,function(a,b){c(a,b,d++)})}function h(a){var c,d;if("object"!=typeof a)throw new Error("Please supply an object of options");if(!a.message)throw new Error("Please specify a message");return a=b.extend({},o,a),a.buttons||(a.buttons={}),a.backdrop=a.backdrop?"static":!1,c=a.buttons,d=f(c),g(c,function(a,e,f){if(b.isFunction(e)&&(e=c[a]={callback:e}),"object"!==b.type(e))throw new Error("button with key "+a+" must be an object");e.label||(e.label=a),e.className||(e.className=2>=d&&f===d-1?"btn-primary":"btn-default")}),a}function i(a,b){var c=a.length,d={};if(1>c||c>2)throw new Error("Invalid argument length");return 2===c||"string"==typeof a[0]?(d[b[0]]=a[0],d[b[1]]=a[1]):d=a[0],d}function j(a,c,d){return b.extend(!0,{},a,i(c,d))}function k(a,b,c,d){var e={className:"bootbox-"+a,buttons:l.apply(null,b)};return m(j(e,d,c),b)}function l(){for(var a={},b=0,c=arguments.length;c>b;b++){var e=arguments[b],f=e.toLowerCase(),g=e.toUpperCase();a[f]={label:d(g)}}return a}function m(a,b){var d={};return g(b,function(a,b){d[b]=!0}),g(a.buttons,function(a){if(d[a]===c)throw new Error("button key "+a+" is not allowed (options are "+b.join("\n")+")")}),a}var n={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>×</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},o={locale:"en",backdrop:!0,animate:!0,className:null,closeButton:!0,show:!0,container:"body"},p={};p.alert=function(){var a;if(a=k("alert",["ok"],["message","callback"],arguments),a.callback&&!b.isFunction(a.callback))throw new Error("alert requires callback property to be a function when provided");return a.buttons.ok.callback=a.onEscape=function(){return b.isFunction(a.callback)?a.callback():!0},p.dialog(a)},p.confirm=function(){var a;if(a=k("confirm",["cancel","confirm"],["message","callback"],arguments),a.buttons.cancel.callback=a.onEscape=function(){return a.callback(!1)},a.buttons.confirm.callback=function(){return a.callback(!0)},!b.isFunction(a.callback))throw new Error("confirm requires a callback");return p.dialog(a)},p.prompt=function(){var a,d,e,f,h,i,k;f=b(n.form),d={className:"bootbox-prompt",buttons:l("cancel","confirm"),value:"",inputType:"text"},a=m(j(d,arguments,["title","callback"]),["cancel","confirm"]),i=a.show===c?!0:a.show;var o=["date","time","number"],q=document.createElement("input");if(q.setAttribute("type",a.inputType),o[a.inputType]&&(a.inputType=q.type),a.message=f,a.buttons.cancel.callback=a.onEscape=function(){return a.callback(null)},a.buttons.confirm.callback=function(){var c;switch(a.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":c=h.val();break;case"checkbox":var d=h.find("input:checked");c=[],g(d,function(a,d){c.push(b(d).val())})}return a.callback(c)},a.show=!1,!a.title)throw new Error("prompt requires a title");if(!b.isFunction(a.callback))throw new Error("prompt requires a callback");if(!n.inputs[a.inputType])throw new Error("invalid prompt type");switch(h=b(n.inputs[a.inputType]),a.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":h.val(a.value);break;case"select":var r={};if(k=a.inputOptions||[],!k.length)throw new Error("prompt with select requires options");g(k,function(a,d){var e=h;if(d.value===c||d.text===c)throw new Error("given options in wrong format");d.group&&(r[d.group]||(r[d.group]=b("<optgroup/>").attr("label",d.group)),e=r[d.group]),e.append("<option value='"+d.value+"'>"+d.text+"</option>")}),g(r,function(a,b){h.append(b)}),h.val(a.value);break;case"checkbox":var s=b.isArray(a.value)?a.value:[a.value];if(k=a.inputOptions||[],!k.length)throw new Error("prompt with checkbox requires options");if(!k[0].value||!k[0].text)throw new Error("given options in wrong format");h=b("<div/>"),g(k,function(c,d){var e=b(n.inputs[a.inputType]);e.find("input").attr("value",d.value),e.find("label").append(d.text),g(s,function(a,b){b===d.value&&e.find("input").prop("checked",!0)}),h.append(e)})}return a.placeholder&&h.attr("placeholder",a.placeholder),a.pattern&&h.attr("pattern",a.pattern),f.append(h),f.on("submit",function(a){a.preventDefault(),e.find(".btn-primary").click()}),e=p.dialog(a),e.off("shown.bs.modal"),e.on("shown.bs.modal",function(){h.focus()}),i===!0&&e.modal("show"),e},p.dialog=function(a){a=h(a);var c=b(n.dialog),d=c.find(".modal-body"),f=a.buttons,i="",j={onEscape:a.onEscape};if(g(f,function(a,b){i+="<button data-bb-handler='"+a+"' type='button' class='btn "+b.className+"'>"+b.label+"</button>",j[a]=b.callback}),d.find(".bootbox-body").html(a.message),a.animate===!0&&c.addClass("fade"),a.className&&c.addClass(a.className),a.title&&d.before(n.header),a.closeButton){var k=b(n.closeButton);a.title?c.find(".modal-header").prepend(k):k.css("margin-top","-10px").prependTo(d)}return a.title&&c.find(".modal-title").html(a.title),i.length&&(d.after(n.footer),c.find(".modal-footer").html(i)),c.on("hidden.bs.modal",function(a){a.target===this&&c.remove()}),c.on("shown.bs.modal",function(){c.find(".btn-primary:first").focus()}),c.on("escape.close.bb",function(a){j.onEscape&&e(a,c,j.onEscape)}),c.on("click",".modal-footer button",function(a){var d=b(this).data("bb-handler");e(a,c,j[d])}),c.on("click",".bootbox-close-button",function(a){e(a,c,j.onEscape)}),c.on("keyup",function(a){27===a.which&&c.trigger("escape.close.bb")}),b(a.container).append(c),c.modal({backdrop:a.backdrop,keyboard:!1,show:!1}),a.show&&c.modal("show"),c},p.setDefaults=function(){var a={};2===arguments.length?a[arguments[0]]=arguments[1]:a=arguments[0],b.extend(o,a)},p.hideAll=function(){b(".bootbox").modal("hide")};var q={br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"讗讬砖谠专",CANCEL:"讘讬讟谠诇",CONFIRM:"讗讬砖谠专"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},lt:{OK:"Gerai",CANCEL:"At拧aukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprin腻t"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierd藕"},ru:{OK:"OK",CANCEL:"袨褌屑械薪邪",CONFIRM:"袩褉懈屑械薪懈褌褜"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},tr:{OK:"Tamam",CANCEL:"陌ptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"鍙栨秷",CONFIRM:"纭"},zh_TW:{OK:"OK",CANCEL:"鍙栨秷",CONFIRM:"纰鸿獚"}};return p.init=function(c){return a(c||b)},p});
|
const Discord = require('discord.js');
module.exports.run = (client, message, args) => {
//code starts here
const msg = client.snipes.get(message.channel.id);
if(!msg) return message.channel.send("No recently deleted messages!")
const embed = new Discord.MessageEmbed()
.setAuthor(`Deleted by ${msg.author.tag}`, msg.author.displayAvatarURL())
.setColor("ORANGE")
.setDescription(`CONTENT: \n${msg.content}`)
if (msg.image) embed.setImage(msg.image);
return message.author.send(embed)
}
module.exports.help = {
name: "snipe",
description: "View a recently deleted message!",
category: "moderation"
}
module.exports.requirements = {
userPerms: ["MANAGE_MESSAGES"],
clientPerms: [],
ownerOnly: false
}
module.exports.limits = {
rateLimit: 3,
cooldown: 6e4
}
|
var position = require('./')
var test = require('tape')
var src = [
'lorem',
'ipsum',
'dolor',
'samet'
].join('\n')
test('file-position', function(t) {
var get = position(src)
t.equal(get(2, 0), src.indexOf('dolor'))
t.equal(get(3, 1), src.indexOf('amet'))
t.equal(get(1, 4), src.indexOf('m\ndolor'))
t.equal(get(3), src.indexOf('samet'))
t.equal(get(), 0)
t.end()
})
|
import { Flex, Heading, Divider, Stack, Text, Link } from "@chakra-ui/react";
import { ArrowSquareOut } from "phosphor-react";
// export default function Item({ date, description, link }) {
// return (
// <Box my={3}>
// <Text mb={1} fontSize="sm" color="trueGray.500">
// {date}
// </Text>
// <Box>
// <Text>
// {description}
// </Text>
// </Box>
// </Box>
// );
// }
export default function Item({ role, company, date, description, link }) {
return (
<Stack spacing={4}>
<Heading fontSize="xl" fontWeight="bold">
{role}
</Heading>
<Flex alignItems="center" justifyContent="space-between">
{link ? (
<Link
href={link}
isExternal
fontSize="md"
color="trueGray.400"
display="flex"
alignItems="center"
justifyContent="center"
sx={{
gap: 3,
}}
data-splitbee-event={company}
data-splitbee-event-type="Work"
>
{company}
<ArrowSquareOut />
</Link>
) : (
<Text fontSize="md" color="trueGray.400">
{company}
</Text>
)}
<Text fontSize="md" color="trueGray.400">
{date}
</Text>
</Flex>
{description ? <Text>{description}</Text> : ""}
<Divider />
</Stack>
);
}
|
import React from "react";
import "./CountryPage.css";
import { useHistory } from "react-router-dom";
import foodData from "./../data/food.json";
import Navbar from "./Navbar";
export default function CountryPage({
countrySelected,
SetSelectedDish,
updateFavorites,
favorites,
}) {
// on click, change the dish selected to = {dish}
const onDishClick = (event) => {
const dishElement = event.target.outerText;
SetSelectedDish(dishElement);
};
const history = useHistory();
return (
<div className="country-page-container">
<h1>{countrySelected}</h1>
<h2>Local delicacies in {countrySelected}:</h2>
<div className="dish-list">
{foodData.map((val) => {
if (countrySelected === val.country) {
return val.dish.map((dish) => {
return (
<div className="dish-item-container">
<div className="dish-item" onClick={onDishClick}>
<div
className="food"
onClick={() => history.push("/dishinfo")}
>
<svg
width="24"
height="24"
xmlns="http://www.w3.org/2000/svg"
fill-rule="evenodd"
clip-rule="evenodd"
>
<path d="M12-.006c6.623 0 12 5.377 12 12s-5.377 12-12 12-12-5.377-12-12 5.377-12 12-12zm5.999 19.999c2.429-1.825 4.001-4.73 4.001-7.999 0-5.519-4.481-10-10-10s-10 4.481-10 10c0 3.701 2.015 6.936 5.008 8.665v-4.023c0-.576-.36-.765-1.147-1.395-.581-.466-.981-1.194-.907-1.935.209-2.114.718-6.312.718-6.312h.5v5h.836l.186-5h.506l.144 5h.836l.201-5h.469l.166 5h.835v-5h.458s.562 4.171.793 6.292c.081.751-.341 1.493-.935 1.963-.791.626-1.151.806-1.151 1.391v5.042c.794.204 1.626.312 2.484.312 1.229 0 2.407-.222 3.496-.629v-3.371s-.977-.003-2.056 0c.668-5.83 2.586-11 3.883-11 .373 0 .67.297.673.709.005.802.004 7.091.003 12.29z" />
</svg>
<h3>{dish}</h3>
</div>
<div
className="favorites-selector"
onClick={() => {
updateFavorites(dish);
}}
>
{favorites.includes(dish) ? (
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
>
<path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z" />
</svg>
) : (
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
>
<path d="M12 5.173l2.335 4.817 5.305.732-3.861 3.71.942 5.27-4.721-2.524-4.721 2.525.942-5.27-3.861-3.71 5.305-.733 2.335-4.817zm0-4.586l-3.668 7.568-8.332 1.151 6.064 5.828-1.48 8.279 7.416-3.967 7.416 3.966-1.48-8.279 6.064-5.827-8.332-1.15-3.668-7.569z" />
</svg>
)}
</div>
</div>
</div>
);
});
}
})}
</div>
<Navbar />
</div>
);
}
|
import Vuex from 'vuex';
import { VueI18n } from '@justeat/f-globalisation';
import { shallowMount, createLocalVue } from '@vue/test-utils';
import CheckoutFormField from '../CheckoutFormField.vue';
import { i18n, createStore } from './helpers/setup';
import { VALIDATIONS } from '../../constants';
const localVue = createLocalVue();
localVue.use(VueI18n);
localVue.use(Vuex);
const $v = {
[VALIDATIONS.customer]: {
mobileNumber: {
$dirty: false,
mobileNumber: false
},
firstName: {
$dirty: false
},
lastName: {
$dirty: false
},
email: {
$dirty: false,
email: false,
$touch: jest.fn()
}
},
[VALIDATIONS.address]: {
locality: {
$dirty: false,
required: true
},
line1: {
$dirty: false,
required: false
},
city: {
$dirty: false,
required: false
},
administrativeArea: {
$dirty: false,
required: true
},
postcode: {
$dirty: false,
required: true,
isValidPostcode: false
}
},
[VALIDATIONS.dineIn]: {
tableIdentifier: {
$dirty: false
}
}
};
describe('CheckoutFormField', () => {
const propsData = {
fieldName: 'firstName',
fieldType: 'customer'
};
it('should be defined', () => {
// Arrange
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData,
provide: () => ({
$v
})
});
// Assert
expect(wrapper.exists()).toBe(true);
});
describe('computed ::', () => {
describe('translations ::', () => {
it('should return translations from with id names', () => {
// Arrange & Act
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData,
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.translations).toMatchSnapshot();
});
});
describe('errorType ::', () => {
let hasErrorSpy;
let hasRequiredErrorSpy;
beforeEach(() => {
hasErrorSpy = jest.spyOn(CheckoutFormField.computed, 'hasError');
hasRequiredErrorSpy = jest.spyOn(CheckoutFormField.computed, 'hasRequiredError');
});
afterEach(() => {
jest.clearAllMocks();
});
it.each([
[false, true, null],
[false, false, null],
[true, false, 'invalid'],
[true, true, 'required']
])('when `hasError` is %s and `hasRequiredError` is %s, should return %s', (hasError, hasRequiredError, expected) => {
// Arrange
hasErrorSpy.mockReturnValue(hasError);
hasRequiredErrorSpy.mockReturnValue(hasRequiredError);
// Act
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData,
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.errorType).toEqual(expected);
});
});
describe('hasInvalidError ::', () => {
let hasInvalidErrorMessageSpy;
let isEmptySpy;
let validationsSpy;
beforeEach(() => {
hasInvalidErrorMessageSpy = jest.spyOn(CheckoutFormField.computed, 'hasInvalidErrorMessage');
isEmptySpy = jest.spyOn(CheckoutFormField.computed, 'isEmpty');
validationsSpy = jest.spyOn(CheckoutFormField.computed, 'validations');
});
afterEach(() => {
jest.clearAllMocks();
});
describe('when validations for field invalid error is true ::', () => {
beforeEach(() => {
validationsSpy.mockReturnValue({
email: {
email: true
}
});
});
it.each([
[true, true, false],
[true, false, false],
[false, true, false],
[false, false, false]
])('when `hasInvalidErrorMessage` is %s and `isEmpty` is %s should return %s', (hasInvalidErrorMessage, isEmpty, expected) => {
// Arrange
hasInvalidErrorMessageSpy.mockReturnValue(hasInvalidErrorMessage);
isEmptySpy.mockReturnValue(isEmpty);
// Act
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData: {
...propsData,
fieldName: 'email'
},
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.hasInvalidError).toEqual(expected);
});
});
describe('when validations for field invalid error is false ::', () => {
beforeEach(() => {
validationsSpy.mockReturnValue({
email: {
email: false
}
});
});
it('should return false', () => {
// Act
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData: {
...propsData,
fieldName: 'email'
},
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.hasInvalidError).toEqual(false);
});
});
});
describe('hasError ::', () => {
let hasValidationMessagesSpy;
beforeEach(() => {
hasValidationMessagesSpy = jest.spyOn(CheckoutFormField.computed, 'hasValidationMessages');
});
afterEach(() => {
jest.restoreAllMocks();
});
describe('when `hasValidationMessages` is true', () => {
let wrapper;
beforeEach(() => {
hasValidationMessagesSpy.mockReturnValue(true);
});
afterEach(() => {
jest.clearAllMocks();
});
it.each([
[true, true, true],
[true, false, true],
[true, true, false],
[false, false, false]
])('should return %s when `hasRequiredError` is %s and `hasInvalidError` is %s', (expected, hasRequiredError, hasInvalidError) => {
// Arrange & Act
jest.spyOn(CheckoutFormField.computed, 'hasRequiredError').mockReturnValue(hasRequiredError);
jest.spyOn(CheckoutFormField.computed, 'hasInvalidError').mockReturnValue(hasInvalidError);
wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData,
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.hasError).toEqual(expected);
});
});
describe('when `hasValidationMessages` is false', () => {
afterEach(() => {
jest.clearAllMocks();
});
it('should return false', () => {
// Arrange & Act
hasValidationMessagesSpy.mockReturnValue(false);
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData,
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.hasError).toEqual(false);
});
});
});
describe('hasValidationMessages ::', () => {
const translations = {};
const validationMessages = {
invalid: 'Invalid message'
};
afterEach(() => {
jest.clearAllMocks();
});
it('should return false if `translations` do not have `validationMessages', () => {
// Arrange & Act
jest.spyOn(CheckoutFormField.computed, 'translations').mockReturnValue(translations);
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData,
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.hasValidationMessages).toEqual(false);
});
it('should return false if `translations` do not have `validationMessages', () => {
// Arrange & Act
translations.validationMessages = validationMessages;
jest.spyOn(CheckoutFormField.computed, 'translations').mockReturnValue(translations);
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData,
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.hasValidationMessages).toEqual(true);
});
});
describe('kebabCase ::', () => {
it.each([
['firstName', 'customer', 'first-name'],
['lastName', 'customer', 'last-name'],
['email', 'customer', 'email'],
['line1', 'address', 'line-1'],
['city', 'address', 'city'],
['tableIdentifier', 'dineIn', 'table-identifier']
])('should convert `fieldName` value to kebab case', (fieldName, fieldType, expected) => {
// Arrange & Act
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData: {
fieldName,
fieldType
},
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.kebabCase).toEqual(expected);
});
});
describe('formattedMobileNumberForScreenReader ::', () => {
it('should return the mobile number with spaces after every character', () => {
const expectedMobileNumber = '+ 4 4 7 1 1 1 1 1 1 1 1 1';
// Act
const wrapper = shallowMount(CheckoutFormField, {
store: createStore(),
i18n,
localVue,
propsData: {
fieldName: 'mobileNumber',
fieldType: 'customer'
},
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.formattedMobileNumberForScreenReader).toEqual(expectedMobileNumber);
});
});
describe('groupedProps ::', () => {
it('should return props for grouped form fields', () => {
// Arrange & Act
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData,
provide: () => ({
$v
})
});
// Assert
expect(wrapper.vm.groupedProps).toMatchSnapshot();
});
});
});
describe('methods ::', () => {
describe('formFieldBlur ::', () => {
afterEach(() => {
jest.clearAllMocks();
});
it('should call `touch` for validation', () => {
// Arrange
const fieldName = 'email';
const touchSpy = jest.spyOn($v[VALIDATIONS.customer].email, '$touch');
const wrapper = shallowMount(CheckoutFormField, {
i18n,
store: createStore(),
localVue,
propsData: {
...propsData,
fieldName
},
provide: () => ({
$v
})
});
// Act
wrapper.vm.formFieldBlur(fieldName);
// Assert
expect(touchSpy).toHaveBeenCalled();
});
});
});
});
|
'use strict';
function Search(menu) {
this.menu = menu;
this.$search = document.getElementById('menu-search');
this.$searchBox = document.getElementById('menu-search-box');
this.$searchResults = document.getElementById('menu-search-results');
this.loadBiblio();
document.addEventListener('keydown', this.documentKeydown.bind(this));
this.$searchBox.addEventListener(
'keydown',
debounce(this.searchBoxKeydown.bind(this), { stopPropagation: true })
);
this.$searchBox.addEventListener(
'keyup',
debounce(this.searchBoxKeyup.bind(this), { stopPropagation: true })
);
// Perform an initial search if the box is not empty.
if (this.$searchBox.value) {
this.search(this.$searchBox.value);
}
}
Search.prototype.loadBiblio = function () {
if (typeof biblio === 'undefined') {
console.error('could not find biblio');
this.biblio = { refToClause: {}, entries: [] };
} else {
this.biblio = biblio;
this.biblio.clauses = this.biblio.entries.filter(e => e.type === 'clause');
this.biblio.byId = this.biblio.entries.reduce((map, entry) => {
map[entry.id] = entry;
return map;
}, {});
let refParentClause = Object.create(null);
this.biblio.refParentClause = refParentClause;
let refsByClause = this.biblio.refsByClause;
Object.keys(refsByClause).forEach(clause => {
refsByClause[clause].forEach(ref => {
refParentClause[ref] = clause;
});
});
}
};
Search.prototype.documentKeydown = function (e) {
if (e.keyCode === 191) {
e.preventDefault();
e.stopPropagation();
this.triggerSearch();
}
};
Search.prototype.searchBoxKeydown = function (e) {
e.stopPropagation();
e.preventDefault();
if (e.keyCode === 191 && e.target.value.length === 0) {
e.preventDefault();
} else if (e.keyCode === 13) {
e.preventDefault();
this.selectResult();
}
};
Search.prototype.searchBoxKeyup = function (e) {
if (e.keyCode === 13 || e.keyCode === 9) {
return;
}
this.search(e.target.value);
};
Search.prototype.triggerSearch = function () {
if (this.menu.isVisible()) {
this._closeAfterSearch = false;
} else {
this._closeAfterSearch = true;
this.menu.show();
}
this.$searchBox.focus();
this.$searchBox.select();
};
// bit 12 - Set if the result starts with searchString
// bits 8-11: 8 - number of chunks multiplied by 2 if cases match, otherwise 1.
// bits 1-7: 127 - length of the entry
// General scheme: prefer case sensitive matches with fewer chunks, and otherwise
// prefer shorter matches.
function relevance(result) {
let relevance = 0;
relevance = Math.max(0, 8 - result.match.chunks) << 7;
if (result.match.caseMatch) {
relevance *= 2;
}
if (result.match.prefix) {
relevance += 2048;
}
relevance += Math.max(0, 255 - result.key.length);
return relevance;
}
Search.prototype.search = function (searchString) {
if (searchString === '') {
this.displayResults([]);
this.hideSearch();
return;
} else {
this.showSearch();
}
if (searchString.length === 1) {
this.displayResults([]);
return;
}
let results;
if (/^[\d.]*$/.test(searchString)) {
results = this.biblio.clauses
.filter(clause => clause.number.substring(0, searchString.length) === searchString)
.map(clause => ({ entry: clause }));
} else {
results = [];
for (let i = 0; i < this.biblio.entries.length; i++) {
let entry = this.biblio.entries[i];
let key = getKey(entry);
if (!key) {
// biblio entries without a key aren't searchable
continue;
}
let match = fuzzysearch(searchString, key);
if (match) {
results.push({ key, entry, match });
}
}
results.forEach(result => {
result.relevance = relevance(result, searchString);
});
results = results.sort((a, b) => b.relevance - a.relevance);
}
if (results.length > 50) {
results = results.slice(0, 50);
}
this.displayResults(results);
};
Search.prototype.hideSearch = function () {
this.$search.classList.remove('active');
};
Search.prototype.showSearch = function () {
this.$search.classList.add('active');
};
Search.prototype.selectResult = function () {
let $first = this.$searchResults.querySelector('li:first-child a');
if ($first) {
document.location = $first.getAttribute('href');
}
this.$searchBox.value = '';
this.$searchBox.blur();
this.displayResults([]);
this.hideSearch();
if (this._closeAfterSearch) {
this.menu.hide();
}
};
Search.prototype.displayResults = function (results) {
if (results.length > 0) {
this.$searchResults.classList.remove('no-results');
let html = '<ul>';
results.forEach(result => {
let key = result.key;
let entry = result.entry;
let id = entry.id;
let cssClass = '';
let text = '';
if (entry.type === 'clause') {
let number = entry.number ? entry.number + ' ' : '';
text = number + key;
cssClass = 'clause';
id = entry.id;
} else if (entry.type === 'production') {
text = key;
cssClass = 'prod';
id = entry.id;
} else if (entry.type === 'op') {
text = key;
cssClass = 'op';
id = entry.id || entry.refId;
} else if (entry.type === 'term') {
text = key;
cssClass = 'term';
id = entry.id || entry.refId;
}
if (text) {
// prettier-ignore
html += `<li class=menu-search-result-${cssClass}><a href="${makeLinkToId(id)}">${text}</a></li>`;
}
});
html += '</ul>';
this.$searchResults.innerHTML = html;
} else {
this.$searchResults.innerHTML = '';
this.$searchResults.classList.add('no-results');
}
};
function getKey(item) {
if (item.key) {
return item.key;
}
switch (item.type) {
case 'clause':
return item.title || item.titleHTML;
case 'production':
return item.name;
case 'op':
return item.aoid;
case 'term':
return item.term;
case 'table':
case 'figure':
case 'example':
case 'note':
return item.caption;
case 'step':
return item.id;
default:
throw new Error("Can't get key for " + item.type);
}
}
function Menu() {
this.$toggle = document.getElementById('menu-toggle');
this.$menu = document.getElementById('menu');
this.$toc = document.querySelector('menu-toc > ol');
this.$pins = document.querySelector('#menu-pins');
this.$pinList = document.getElementById('menu-pins-list');
this.$toc = document.querySelector('#menu-toc > ol');
this.$specContainer = document.getElementById('spec-container');
this.search = new Search(this);
this._pinnedIds = {};
this.loadPinEntries();
// toggle menu
this.$toggle.addEventListener('click', this.toggle.bind(this));
// keydown events for pinned clauses
document.addEventListener('keydown', this.documentKeydown.bind(this));
// toc expansion
let tocItems = this.$menu.querySelectorAll('#menu-toc li');
for (let i = 0; i < tocItems.length; i++) {
let $item = tocItems[i];
$item.addEventListener('click', event => {
$item.classList.toggle('active');
event.stopPropagation();
});
}
// close toc on toc item selection
let tocLinks = this.$menu.querySelectorAll('#menu-toc li > a');
for (let i = 0; i < tocLinks.length; i++) {
let $link = tocLinks[i];
$link.addEventListener('click', event => {
this.toggle();
event.stopPropagation();
});
}
// update active clause on scroll
window.addEventListener('scroll', debounce(this.updateActiveClause.bind(this)));
this.updateActiveClause();
// prevent menu scrolling from scrolling the body
this.$toc.addEventListener('wheel', e => {
let target = e.currentTarget;
let offTop = e.deltaY < 0 && target.scrollTop === 0;
if (offTop) {
e.preventDefault();
}
let offBottom = e.deltaY > 0 && target.offsetHeight + target.scrollTop >= target.scrollHeight;
if (offBottom) {
e.preventDefault();
}
});
}
Menu.prototype.documentKeydown = function (e) {
e.stopPropagation();
if (e.keyCode === 80) {
this.togglePinEntry();
} else if (e.keyCode > 48 && e.keyCode < 58) {
this.selectPin(e.keyCode - 49);
}
};
Menu.prototype.updateActiveClause = function () {
this.setActiveClause(findActiveClause(this.$specContainer));
};
Menu.prototype.setActiveClause = function (clause) {
this.$activeClause = clause;
this.revealInToc(this.$activeClause);
};
Menu.prototype.revealInToc = function (path) {
let current = this.$toc.querySelectorAll('li.revealed');
for (let i = 0; i < current.length; i++) {
current[i].classList.remove('revealed');
current[i].classList.remove('revealed-leaf');
}
current = this.$toc;
let index = 0;
outer: while (index < path.length) {
let children = current.children;
for (let i = 0; i < children.length; i++) {
if ('#' + path[index].id === children[i].children[1].hash) {
children[i].classList.add('revealed');
if (index === path.length - 1) {
children[i].classList.add('revealed-leaf');
let rect = children[i].getBoundingClientRect();
// this.$toc.getBoundingClientRect().top;
let tocRect = this.$toc.getBoundingClientRect();
if (rect.top + 10 > tocRect.bottom) {
this.$toc.scrollTop =
this.$toc.scrollTop + (rect.top - tocRect.bottom) + (rect.bottom - rect.top);
} else if (rect.top < tocRect.top) {
this.$toc.scrollTop = this.$toc.scrollTop - (tocRect.top - rect.top);
}
}
current = children[i].querySelector('ol');
index++;
continue outer;
}
}
console.log('could not find location in table of contents', path);
break;
}
};
function findActiveClause(root, path) {
let clauses = getChildClauses(root);
path = path || [];
for (let $clause of clauses) {
let rect = $clause.getBoundingClientRect();
let $header = $clause.querySelector('h1');
let marginTop = Math.max(
parseInt(getComputedStyle($clause)['margin-top']),
parseInt(getComputedStyle($header)['margin-top'])
);
if (rect.top - marginTop <= 1 && rect.bottom > 0) {
return findActiveClause($clause, path.concat($clause)) || path;
}
}
return path;
}
function* getChildClauses(root) {
for (let el of root.children) {
switch (el.nodeName) {
// descend into <emu-import>
case 'EMU-IMPORT':
yield* getChildClauses(el);
break;
// accept <emu-clause>, <emu-intro>, and <emu-annex>
case 'EMU-CLAUSE':
case 'EMU-INTRO':
case 'EMU-ANNEX':
yield el;
}
}
}
Menu.prototype.toggle = function () {
this.$menu.classList.toggle('active');
};
Menu.prototype.show = function () {
this.$menu.classList.add('active');
};
Menu.prototype.hide = function () {
this.$menu.classList.remove('active');
};
Menu.prototype.isVisible = function () {
return this.$menu.classList.contains('active');
};
Menu.prototype.showPins = function () {
this.$pins.classList.add('active');
};
Menu.prototype.hidePins = function () {
this.$pins.classList.remove('active');
};
Menu.prototype.addPinEntry = function (id) {
let entry = this.search.biblio.byId[id];
if (!entry) {
// id was deleted after pin (or something) so remove it
delete this._pinnedIds[id];
this.persistPinEntries();
return;
}
if (entry.type === 'clause') {
let prefix;
if (entry.number) {
prefix = entry.number + ' ';
} else {
prefix = '';
}
// prettier-ignore
this.$pinList.innerHTML += `<li><a href="${makeLinkToId(entry.id)}">${prefix}${entry.titleHTML}</a></li>`;
} else {
this.$pinList.innerHTML += `<li><a href="${makeLinkToId(entry.id)}">${getKey(entry)}</a></li>`;
}
if (Object.keys(this._pinnedIds).length === 0) {
this.showPins();
}
this._pinnedIds[id] = true;
this.persistPinEntries();
};
Menu.prototype.removePinEntry = function (id) {
let item = this.$pinList.querySelector(`a[href="${makeLinkToId(id)}"]`).parentNode;
this.$pinList.removeChild(item);
delete this._pinnedIds[id];
if (Object.keys(this._pinnedIds).length === 0) {
this.hidePins();
}
this.persistPinEntries();
};
Menu.prototype.persistPinEntries = function () {
try {
if (!window.localStorage) return;
} catch (e) {
return;
}
localStorage.pinEntries = JSON.stringify(Object.keys(this._pinnedIds));
};
Menu.prototype.loadPinEntries = function () {
try {
if (!window.localStorage) return;
} catch (e) {
return;
}
let pinsString = window.localStorage.pinEntries;
if (!pinsString) return;
let pins = JSON.parse(pinsString);
for (let i = 0; i < pins.length; i++) {
this.addPinEntry(pins[i]);
}
};
Menu.prototype.togglePinEntry = function (id) {
if (!id) {
id = this.$activeClause[this.$activeClause.length - 1].id;
}
if (this._pinnedIds[id]) {
this.removePinEntry(id);
} else {
this.addPinEntry(id);
}
};
Menu.prototype.selectPin = function (num) {
document.location = this.$pinList.children[num].children[0].href;
};
let menu;
document.addEventListener('DOMContentLoaded', init);
function debounce(fn, opts) {
opts = opts || {};
let timeout;
return function (e) {
if (opts.stopPropagation) {
e.stopPropagation();
}
let args = arguments;
if (timeout) {
clearTimeout(timeout);
}
timeout = setTimeout(() => {
timeout = null;
fn.apply(this, args);
}, 150);
};
}
let CLAUSE_NODES = ['EMU-CLAUSE', 'EMU-INTRO', 'EMU-ANNEX'];
function findContainer($elem) {
let parentClause = $elem.parentNode;
while (parentClause && CLAUSE_NODES.indexOf(parentClause.nodeName) === -1) {
parentClause = parentClause.parentNode;
}
return parentClause;
}
function findLocalReferences(parentClause, name) {
let vars = parentClause.querySelectorAll('var');
let references = [];
for (let i = 0; i < vars.length; i++) {
let $var = vars[i];
if ($var.innerHTML === name) {
references.push($var);
}
}
return references;
}
let REFERENCED_CLASSES = Array.from({ length: 7 }, (x, i) => `referenced${i}`);
function chooseHighlightIndex(parentClause) {
let counts = REFERENCED_CLASSES.map($class => parentClause.getElementsByClassName($class).length);
// Find the earliest index with the lowest count.
let minCount = Infinity;
let index = null;
for (let i = 0; i < counts.length; i++) {
if (counts[i] < minCount) {
minCount = counts[i];
index = i;
}
}
return index;
}
function toggleFindLocalReferences($elem) {
let parentClause = findContainer($elem);
let references = findLocalReferences(parentClause, $elem.innerHTML);
if ($elem.classList.contains('referenced')) {
references.forEach($reference => {
$reference.classList.remove('referenced', ...REFERENCED_CLASSES);
});
} else {
let index = chooseHighlightIndex(parentClause);
references.forEach($reference => {
$reference.classList.add('referenced', `referenced${index}`);
});
}
}
function installFindLocalReferences() {
document.addEventListener('click', e => {
if (e.target.nodeName === 'VAR') {
toggleFindLocalReferences(e.target);
}
});
}
document.addEventListener('DOMContentLoaded', installFindLocalReferences);
// The following license applies to the fuzzysearch function
// The MIT License (MIT)
// Copyright © 2015 Nicolas Bevacqua
// Copyright © 2016 Brian Terlson
// 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.
function fuzzysearch(searchString, haystack, caseInsensitive) {
let tlen = haystack.length;
let qlen = searchString.length;
let chunks = 1;
let finding = false;
if (qlen > tlen) {
return false;
}
if (qlen === tlen) {
if (searchString === haystack) {
return { caseMatch: true, chunks: 1, prefix: true };
} else if (searchString.toLowerCase() === haystack.toLowerCase()) {
return { caseMatch: false, chunks: 1, prefix: true };
} else {
return false;
}
}
let j = 0;
outer: for (let i = 0; i < qlen; i++) {
let nch = searchString[i];
while (j < tlen) {
let targetChar = haystack[j++];
if (targetChar === nch) {
finding = true;
continue outer;
}
if (finding) {
chunks++;
finding = false;
}
}
if (caseInsensitive) {
return false;
}
return fuzzysearch(searchString.toLowerCase(), haystack.toLowerCase(), true);
}
return { caseMatch: !caseInsensitive, chunks, prefix: j <= qlen };
}
let referencePane = {
init() {
this.$container = document.createElement('div');
this.$container.setAttribute('id', 'references-pane-container');
let $spacer = document.createElement('div');
$spacer.setAttribute('id', 'references-pane-spacer');
this.$pane = document.createElement('div');
this.$pane.setAttribute('id', 'references-pane');
this.$container.appendChild($spacer);
this.$container.appendChild(this.$pane);
this.$header = document.createElement('div');
this.$header.classList.add('menu-pane-header');
this.$headerText = document.createElement('span');
this.$header.appendChild(this.$headerText);
this.$headerRefId = document.createElement('a');
this.$header.appendChild(this.$headerRefId);
this.$closeButton = document.createElement('span');
this.$closeButton.setAttribute('id', 'references-pane-close');
this.$closeButton.addEventListener('click', () => {
this.deactivate();
});
this.$header.appendChild(this.$closeButton);
this.$pane.appendChild(this.$header);
let tableContainer = document.createElement('div');
tableContainer.setAttribute('id', 'references-pane-table-container');
this.$table = document.createElement('table');
this.$table.setAttribute('id', 'references-pane-table');
this.$tableBody = this.$table.createTBody();
tableContainer.appendChild(this.$table);
this.$pane.appendChild(tableContainer);
menu.$specContainer.appendChild(this.$container);
},
activate() {
this.$container.classList.add('active');
},
deactivate() {
this.$container.classList.remove('active');
this.state = null;
},
showReferencesFor(entry) {
this.activate();
this.state = { type: 'ref', id: entry.id };
this.$headerText.textContent = 'References to ';
let newBody = document.createElement('tbody');
let previousId;
let previousCell;
let dupCount = 0;
this.$headerRefId.textContent = '#' + entry.id;
this.$headerRefId.setAttribute('href', makeLinkToId(entry.id));
this.$headerRefId.style.display = 'inline';
(entry.referencingIds || [])
.map(id => {
let cid = menu.search.biblio.refParentClause[id];
let clause = menu.search.biblio.byId[cid];
if (clause == null) {
throw new Error('could not find clause for id ' + cid);
}
return { id, clause };
})
.sort((a, b) => sortByClauseNumber(a.clause, b.clause))
.forEach(record => {
if (previousId === record.clause.id) {
previousCell.innerHTML += ` (<a href="${makeLinkToId(record.id)}">${dupCount + 2}</a>)`;
dupCount++;
} else {
let row = newBody.insertRow();
let cell = row.insertCell();
cell.innerHTML = record.clause.number;
cell = row.insertCell();
cell.innerHTML = `<a href="${makeLinkToId(record.id)}">${record.clause.titleHTML}</a>`;
previousCell = cell;
previousId = record.clause.id;
dupCount = 0;
}
}, this);
this.$table.removeChild(this.$tableBody);
this.$tableBody = newBody;
this.$table.appendChild(this.$tableBody);
},
showSDOs(sdos, alternativeId) {
let rhs = document.getElementById(alternativeId);
let parentName = rhs.parentNode.getAttribute('name');
let colons = rhs.parentNode.querySelector('emu-geq');
rhs = rhs.cloneNode(true);
rhs.querySelectorAll('emu-params,emu-constraints').forEach(e => {
e.remove();
});
rhs.querySelectorAll('[id]').forEach(e => {
e.removeAttribute('id');
});
rhs.querySelectorAll('a').forEach(e => {
e.parentNode.replaceChild(document.createTextNode(e.textContent), e);
});
// prettier-ignore
this.$headerText.innerHTML = `Syntax-Directed Operations for<br><a href="${makeLinkToId(alternativeId)}" class="menu-pane-header-production"><emu-nt>${parentName}</emu-nt> ${colons.outerHTML} </a>`;
this.$headerText.querySelector('a').append(rhs);
this.showSDOsBody(sdos, alternativeId);
},
showSDOsBody(sdos, alternativeId) {
this.activate();
this.state = { type: 'sdo', id: alternativeId, html: this.$headerText.innerHTML };
this.$headerRefId.style.display = 'none';
let newBody = document.createElement('tbody');
Object.keys(sdos).forEach(sdoName => {
let pair = sdos[sdoName];
let clause = pair.clause;
let ids = pair.ids;
let first = ids[0];
let row = newBody.insertRow();
let cell = row.insertCell();
cell.innerHTML = clause;
cell = row.insertCell();
let html = '<a href="' + makeLinkToId(first) + '">' + sdoName + '</a>';
for (let i = 1; i < ids.length; ++i) {
html += ' (<a href="' + makeLinkToId(ids[i]) + '">' + (i + 1) + '</a>)';
}
cell.innerHTML = html;
});
this.$table.removeChild(this.$tableBody);
this.$tableBody = newBody;
this.$table.appendChild(this.$tableBody);
},
};
let Toolbox = {
init() {
this.$outer = document.createElement('div');
this.$outer.classList.add('toolbox-container');
this.$container = document.createElement('div');
this.$container.classList.add('toolbox');
this.$outer.appendChild(this.$container);
this.$permalink = document.createElement('a');
this.$permalink.textContent = 'Permalink';
this.$pinLink = document.createElement('a');
this.$pinLink.textContent = 'Pin';
this.$pinLink.setAttribute('href', '#');
this.$pinLink.addEventListener('click', e => {
e.preventDefault();
e.stopPropagation();
menu.togglePinEntry(this.entry.id);
});
this.$refsLink = document.createElement('a');
this.$refsLink.setAttribute('href', '#');
this.$refsLink.addEventListener('click', e => {
e.preventDefault();
e.stopPropagation();
referencePane.showReferencesFor(this.entry);
});
this.$container.appendChild(this.$permalink);
this.$container.appendChild(this.$pinLink);
this.$container.appendChild(this.$refsLink);
document.body.appendChild(this.$outer);
},
activate(el, entry, target) {
if (el === this._activeEl) return;
sdoBox.deactivate();
this.active = true;
this.entry = entry;
this.$outer.classList.add('active');
this.top = el.offsetTop - this.$outer.offsetHeight;
this.left = el.offsetLeft - 10;
this.$outer.setAttribute('style', 'left: ' + this.left + 'px; top: ' + this.top + 'px');
this.updatePermalink();
this.updateReferences();
this._activeEl = el;
if (this.top < document.body.scrollTop && el === target) {
// don't scroll unless it's a small thing (< 200px)
this.$outer.scrollIntoView();
}
},
updatePermalink() {
this.$permalink.setAttribute('href', makeLinkToId(this.entry.id));
},
updateReferences() {
this.$refsLink.textContent = `References (${(this.entry.referencingIds || []).length})`;
},
activateIfMouseOver(e) {
let ref = this.findReferenceUnder(e.target);
if (ref && (!this.active || e.pageY > this._activeEl.offsetTop)) {
let entry = menu.search.biblio.byId[ref.id];
this.activate(ref.element, entry, e.target);
} else if (
this.active &&
(e.pageY < this.top || e.pageY > this._activeEl.offsetTop + this._activeEl.offsetHeight)
) {
this.deactivate();
}
},
findReferenceUnder(el) {
while (el) {
let parent = el.parentNode;
if (el.nodeName === 'EMU-RHS' || el.nodeName === 'EMU-PRODUCTION') {
return null;
}
if (
el.nodeName === 'H1' &&
parent.nodeName.match(/EMU-CLAUSE|EMU-ANNEX|EMU-INTRO/) &&
parent.id
) {
return { element: el, id: parent.id };
} else if (el.nodeName === 'EMU-NT') {
if (
parent.nodeName === 'EMU-PRODUCTION' &&
parent.id &&
parent.id[0] !== '_' &&
parent.firstElementChild === el
) {
// return the LHS non-terminal element
return { element: el, id: parent.id };
}
return null;
} else if (
el.nodeName.match(/EMU-(?!CLAUSE|XREF|ANNEX|INTRO)|DFN/) &&
el.id &&
el.id[0] !== '_'
) {
if (
el.nodeName === 'EMU-FIGURE' ||
el.nodeName === 'EMU-TABLE' ||
el.nodeName === 'EMU-EXAMPLE'
) {
// return the figcaption element
return { element: el.children[0].children[0], id: el.id };
} else {
return { element: el, id: el.id };
}
}
el = parent;
}
},
deactivate() {
this.$outer.classList.remove('active');
this._activeEl = null;
this.active = false;
},
};
function sortByClauseNumber(clause1, clause2) {
let c1c = clause1.number.split('.');
let c2c = clause2.number.split('.');
for (let i = 0; i < c1c.length; i++) {
if (i >= c2c.length) {
return 1;
}
let c1 = c1c[i];
let c2 = c2c[i];
let c1cn = Number(c1);
let c2cn = Number(c2);
if (Number.isNaN(c1cn) && Number.isNaN(c2cn)) {
if (c1 > c2) {
return 1;
} else if (c1 < c2) {
return -1;
}
} else if (!Number.isNaN(c1cn) && Number.isNaN(c2cn)) {
return -1;
} else if (Number.isNaN(c1cn) && !Number.isNaN(c2cn)) {
return 1;
} else if (c1cn > c2cn) {
return 1;
} else if (c1cn < c2cn) {
return -1;
}
}
if (c1c.length === c2c.length) {
return 0;
}
return -1;
}
function makeLinkToId(id) {
let hash = '#' + id;
if (typeof idToSection === 'undefined' || !idToSection[id]) {
return hash;
}
let targetSec = idToSection[id];
return (targetSec === 'index' ? './' : targetSec + '.html') + hash;
}
function doShortcut(e) {
if (!(e.target instanceof HTMLElement)) {
return;
}
let target = e.target;
let name = target.nodeName.toLowerCase();
if (name === 'textarea' || name === 'input' || name === 'select' || target.isContentEditable) {
return;
}
if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) {
return;
}
if (e.key === 'm' && usesMultipage) {
let pathParts = location.pathname.split('/');
let hash = location.hash;
if (pathParts[pathParts.length - 2] === 'multipage') {
if (hash === '') {
let sectionName = pathParts[pathParts.length - 1];
if (sectionName.endsWith('.html')) {
sectionName = sectionName.slice(0, -5);
}
if (idToSection['sec-' + sectionName] !== undefined) {
hash = '#sec-' + sectionName;
}
}
location = pathParts.slice(0, -2).join('/') + '/' + hash;
} else {
location = 'multipage/' + hash;
}
} else if (e.key === 'u') {
document.documentElement.classList.toggle('show-ao-annotations');
}
}
function init() {
menu = new Menu();
let $container = document.getElementById('spec-container');
$container.addEventListener(
'mouseover',
debounce(e => {
Toolbox.activateIfMouseOver(e);
})
);
document.addEventListener(
'keydown',
debounce(e => {
if (e.code === 'Escape' && Toolbox.active) {
Toolbox.deactivate();
}
})
);
}
document.addEventListener('keypress', doShortcut);
document.addEventListener('DOMContentLoaded', () => {
Toolbox.init();
referencePane.init();
});
|
import React, { Fragment, Component } from 'react';
import {Row,Col,Card,Empty,Button,Modal} from 'antd'
import {connect} from 'dva'
import {WellHeader,WellHandovers} from '@/components/Well/Tables'
import WellStat from '@/components/Well/Statistics'
import WellForm from '@/components/Well/Forms/WellDetail'
const WellDetail = connect(({wellregister}) => {
const {wellHeader,selectedWell} = wellregister
const filtered = wellHeader.filter(({well}) => well===selectedWell)
if(filtered.length>0) {
return filtered[0]
}
return {}
})(WellStat)
@connect(({wellregister,loading}) => ({
register: wellregister,
loadingWellHeader: loading.effects['wellregister/fetchHeaders'],
loadingHandover: loading.effects['wellregister/getHandOver']
}))
class WellRegister extends Component {
constructor(props) {
super(props)
this.onTabChange = this.onTabChange.bind(this)
this.showWellForm = this.showWellForm.bind(this)
}
state={
modalVisible: false,
detailTabKey:'well-detail'
}
componentDidMount() {
const {register, dispatch} = this.props
if(register.wellHeader.length===0) {
dispatch({type:'wellregister/fetchHeaders'})
}
}
onTabChange(key,type) {
console.log(key,type)
this.setState(null)
}
showWellForm() {
this.setState({modalVisible:true})
}
render() {
const {register,loadingWellHeader,loadingHandover,dispatch} = this.props
const {modalVisible} = this.state
const tabList = [{
key:'well-detail',
tab:'Details'
},{
key:'drilling-completion',
tab:'Drilling & Completion'
},{
key:'handover',
tab:'Handover Data'
}]
const {detailTabKey} = this.state
return (
<Fragment>
<Row gutter={16}>
<Col span={12}>
<Card
title='Well List'
extra={<Button type='primary' icon='plus' onClick={this.showWellForm} />}
bodyStyle={{padding:3}}
>
<WellHeader
data={register.wellHeader}
loading={loadingWellHeader}
selectedWell={[register.selectedWell]}
onRowSelect={
well => {
console.log('after setting well locally')
dispatch({type:'wellregister/selectWell',payload:well[0]})
}
}
/>
</Card>
</Col>
<Col span={12}>
<Card
tabList={tabList}
activeTabKey={detailTabKey}
onTabChange={key => this.setState({detailTabKey:key})}
>
{
detailTabKey==='well-detail' ? <WellDetail /> : null
}
{
detailTabKey==='handover'? <WellHandovers
data={register.handOverRecords}
loading={loadingHandover}
/> : null
}
{
detailTabKey==='drilling-completion'? <Empty /> : null
}
</Card>
</Col>
</Row>
<Modal
title='Well Form'
visible={modalVisible}
centered
onOk={(e) => {
e.preventDefault()
this.setState({modalVisible:false})
}}
onCancel={(e) => {
e.preventDefault()
this.setState({modalVisible:false})
}}
>
<WellForm />
</Modal>
</Fragment>
)
}
}
export default WellRegister
|
"use strict";
(function (albumbImageSize) {
albumbImageSize[albumbImageSize["LARGE"] = "large"] = "LARGE";
albumbImageSize[albumbImageSize["MEDIUM"] = "medium"] = "MEDIUM";
albumbImageSize[albumbImageSize["SMALL"] = "small"] = "SMALL";
})(exports.albumbImageSize || (exports.albumbImageSize = {}));
var albumbImageSize = exports.albumbImageSize;
//# sourceMappingURL=music.interface.js.map
|
/* Fill the screen with the X character by printing a single string */
var stdin = process.stdin;
stdin.setRawMode(true);
var stdout = process.stdout;
var readline = require('readline');
readline.cursorTo(stdout, 0, 0);
readline.clearScreenDown(stdout);
var total = stdout.columns * stdout.rows;
var microtime = require('microtime');
var i = 0;
var str = new Array(total + 1).join('X');
var now = microtime.now();
stdout.write(str);
var ellapsed = microtime.now() - now;
stdout.write('' + ellapsed + 'us\n');
/* 70us ~ 100us (about 300x faster...) */
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.