text
stringlengths
2
1.05M
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/3.38/esri/copyright.txt for details. //>>built define("esri/dijit/analysis/nls/lv/AddMergingAttributes",{rename:"P\u0101rsaukt",match:"Atbilst\u012bba",operation:"Darb\u012bba"});
if (typeof define !== 'function') { var define = require('amdefine')(module); } define(function() { function Multi(geomArr) { this._geomType = 'multi'; this._geoms = geomArr; } Multi.prototype.containsPoint = function(x, y) { for(var i = 0; i < this._geoms.length; i++) { if(this._geoms[i].containsPoint(x, y)) { return true; } } return false; }; Multi.prototype.isOverlapping = function(geom) { if(!geom) { return false; } else if(geom._geomType === 'triangle' || geom._geomType === 'rect') { var widestOverlap = false; for(var i = 0; i < this._geoms.length; i++) { var overlap = this._geoms[i].isOverlapping(geom); if(overlap) { if(!widestOverlap) { widestOverlap = overlap; } else { if(overlap.left < widestOverlap.left) { widestOverlap.left = overlap.left; } if(overlap.right > widestOverlap.right) { widestOverlap.right = overlap.right; } if(overlap.top < widestOverlap.top) { widestOverlap.top = overlap.top; } if(overlap.bottom > widestOverlap.bottom) { widestOverlap.bottom = overlap.bottom; } } } } return widestOverlap; } else { throw new Error("Unsure how to find overlap between multi and '" + geom._geomType + "'"); } }; Multi.prototype.render = function(ctx, camera, color) { for(var i = 0; i < this._geoms.length; i++) { this._geoms[i].render(ctx, camera, color); } }; return Multi; }); //SILVER star status!
import * as firebase from "firebase"; const firebaseConfig = { apiKey: process.env.FIREBASE_API_KEY, authDomain: process.env.FIREBASE_AUTH_DOMAIN, databaseURL: process.env.FIREBASE_DATABASE_URL, projectId: process.env.FIREBASE_PROJECT_ID, storageBucket: process.env.FIREBASE_STORAGEBUCKET, messagingSenderId: process.env.FIREBASE_MESSAGING_SENDER_ID, // appId: process.env.FIREBASE_APP_ID }; firebase.initializeApp(firebaseConfig); const database = firebase.database(); const googleAuthProvider = new firebase.auth.GoogleAuthProvider(); const facebookAuthProvider = new firebase.auth.FacebookAuthProvider(); const githubAuthProvider = new firebase.auth.GithubAuthProvider(); export { firebase, googleAuthProvider, facebookAuthProvider, githubAuthProvider, database as default }; // //child_removed // database.ref("expenses").on("child_removed", (snapshot) => { // console.log(snapshot.key, snapshot.val()); // }); // //child_changed // database.ref("expenses").on("child_changed", (snapshot) => { // console.log(snapshot.key, snapshot.val()); // }); // //child_added // database.ref("expenses").on("child_added", (snapshot) => { // console.log(snapshot.key, snapshot.val()); // }); // database.ref("expenses") // .on("value", (snapshot) => { // const expenses = []; // snapshot.forEach((childSnapshot) => { // expenses.push({ // id: childSnapshot.key, // ...childSnapshot.val() // }); // }); // console.log(expenses); // }); // database.ref("expenses").push({ // decription: "green shoes", // note: "specifically shoes to run", // amount: 800, // createdAt: 5000 // }); // database.ref().on("value", (snapshot) => { // const data = snapshot.val(); // console.log(`${data.name} is a ${data.job.title} at ${data.job.company}`); // }); // database.ref("location/city") // .once("value") // .then((snapshot) => { // const val = snapshot.val(); // console.log(val); // }) // .catch((e) => { // console.log("Error fetching data", e); // }); // database.ref().set({ // name: "Daniel Perez", // age: 21, // stressLevel: 6, // job: { // title: "Software developer", // company: "Google" // }, // location: { // city: "Mérida", // country: "Yucatán" // } // }).then(() => { // console.log("Data is saved"); // }).catch((e) => { // console.log("This failed", e); // }); // database.ref().update({ // stressLevel: 9, // "job/company": "Amazon", // "location/city": "Progreso" // }); // database.ref() // .remove() // .then(() => { // console.log("Data was removed"); // }).catch((e) => { // console.log("Did not remove data"); // });
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ const activeEnv = process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || "development" console.log(`Using environment config: '${activeEnv}'`) require("dotenv").config({ path: `.env.${activeEnv}`, }) module.exports = { plugins: [`gatsby-plugin-styled-components`], }
({define:typeof define!=='undefined'?define:function(deps, factory){module.exports = factory(exports);}}). define([], function(){ return contains; function contains(array, item){ for(var i = 0, l = array.length; i < l; i++){ if(array[i] === item){ return true; } } } });
/* scrollorama - The jQuery plugin for doing cool scrolly stuff by John Polacek (@johnpolacek) Dual licensed under MIT and GPL. */ (function($) { $.scrollorama = function(options) { var scrollorama = this, blocks = [], browserPrefix = '', ieVersion = '', onBlockChange = function() {}, latestKnownScrollY = 0, ticking = false, requestAnimFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function( callback ){ window.setTimeout(callback, 1000 / 60); }, defaults = {offset:0, enablePin: true}; scrollorama.settings = $.extend({}, defaults, options); scrollorama.blockIndex = 0; if (options.blocks === undefined) { alert('ERROR: Must assign blocks class selector to scrollorama plugin'); } // PRIVATE FUNCTIONS function init() { var i, block, didScroll, marginTop = false; if (typeof scrollorama.settings.blocks === 'string') { scrollorama.settings.blocks = $(scrollorama.settings.blocks); } // set browser prefix if ($.browser.mozilla) { browserPrefix = '-moz-'; } if ($.browser.webkit) { browserPrefix = '-webkit-'; } if ($.browser.opera) { browserPrefix = '-o-'; } if ($.browser.msie) { browserPrefix = '-ms-'; ieVersion = parseInt($.browser.version, 10); } // create blocks array to contain animation props $('body').css('position','relative'); for (i=0; i<scrollorama.settings.blocks.length; i++) { block = scrollorama.settings.blocks.eq(i); marginTop = block.css('margin-top'); blocks.push({ block: block, top: block.offset().top - (!Boolean(marginTop) ? parseInt(marginTop, 10) : 0), pin: 0, animations:[] }); } // convert block elements to absolute position /* if (scrollorama.settings.enablePin.toString() === 'true') { for (i=0; i<blocks.length; i++) { blocks[i].block .css('position', 'absolute') .css('top', blocks[i].top); } } */ // create scroll-wrap div only once if ($("#scroll-wrap").length === 0) { $('body').prepend('<div id="scroll-wrap"></div>'); } latestKnownScrollY = 0; ticking = false; $(window).on( 'scroll.scrollorama', onScroll ); } function onScroll() { latestKnownScrollY = window.scrollY; requestTick(); } function requestTick() { if(!ticking) { requestAnimFrame(function(){ onScrollorama(); update(); }); } ticking = true; } function update() { // reset the tick so we can // capture the next onScroll ticking = false; } function onScrollorama() { var scrollTop = $(window).scrollTop(), currBlockIndex = getCurrBlockIndex(scrollTop), i, j, anim, startAnimPos, endAnimPos, animPercent, animVal; // update all animations for (i=0; i<blocks.length; i++) { // go through the animations for each block if (blocks[i].animations.length) { for (j=0; j<blocks[i].animations.length; j++) { anim = blocks[i].animations[j]; // if above current block, settings should be at start value if (i > currBlockIndex) { if (currBlockIndex !== i-1 && anim.baseline !== 'bottom') { setProperty(anim.element, anim.property, anim.startVal); } if (blocks[i].pin) { blocks[i].block .css('position', 'absolute') .css('top', blocks[i].top); } } // if below current block, settings should be at end value // unless on an element that gets animated when it hits the bottom of the viewport else if (i < currBlockIndex) { setProperty(anim.element, anim.property, anim.endVal); if (blocks[i].pin) { blocks[i].block .css('position', 'absolute') .css('top', (blocks[i].top + blocks[i].pin)); } } // otherwise, set values per scroll position if (i === currBlockIndex || (currBlockIndex === i-1 && anim.baseline === 'bottom')) { // if block gets pinned, set position fixed if (blocks[i].pin && currBlockIndex === i) { blocks[i].block .css('position', 'fixed') .css('top', 0); } // set start and end animation positions startAnimPos = blocks[i].top + anim.delay; if (anim.baseline === 'bottom') { startAnimPos -= $(window).height(); } endAnimPos = startAnimPos + anim.duration; // if scroll is before start of animation, set to start value if (scrollTop < startAnimPos) { setProperty(anim.element, anim.property, anim.startVal); } // if scroll is after end of animation, set to end value else if (scrollTop > endAnimPos) { setProperty(anim.element, anim.property, anim.endVal); if (blocks[i].pin) { blocks[i].block .css('position', 'absolute') .css('top', (blocks[i].top + blocks[i].pin)); } } // otherwise, set value based on scroll else { // calculate percent to animate animPercent = (scrollTop - startAnimPos) / anim.duration; // account for easing if there is any if ( anim.easing && $.isFunction( $.easing[anim.easing] ) ) { animPercent = $.easing[anim.easing]( animPercent, animPercent*1000, 0, 1, 1000 ); } // then multiply the percent by the value range and calculate the new value animVal = anim.startVal + (animPercent * (anim.endVal - anim.startVal)); setProperty(anim.element, anim.property, animVal); } } } } } // update blockIndex and trigger event if changed if (scrollorama.blockIndex !== currBlockIndex) { scrollorama.blockIndex = currBlockIndex; onBlockChange(); } } function getCurrBlockIndex(scrollTop) { var currBlockIndex = 0, i; for (i=0; i<blocks.length; i++) { // check if block is in view if (blocks[i].top <= scrollTop - scrollorama.settings.offset) { currBlockIndex = i; } } return currBlockIndex; } function setProperty(target, prop, val) { var scaleCSS, currentPosition; if (prop === 'rotate' || prop === 'zoom' || prop === 'scale') { if (prop === 'rotate') { target.css(browserPrefix+'transform', 'rotate('+val+'deg)'); } else if (prop === 'zoom' || prop === 'scale') { scaleCSS = 'scale('+val+')'; if (browserPrefix !== '-ms-') { target.css(browserPrefix+'transform', scaleCSS); } else { target.css('zoom', scaleCSS); } } } else if(prop === 'background-position-x' || prop === 'background-position-y' ) { currentPosition = target.css('background-position').split(' '); if(prop === 'background-position-x') { target.css('background-position',val+'px '+currentPosition[1]); } if(prop === 'background-position-y') { target.css('background-position', currentPosition[0]+' '+val+'px'); } } else if(prop === 'text-shadow' ) { target.css(prop,'0px 0px '+val+'px #ffffff'); } else { target.css(prop, val); } } // PUBLIC FUNCTIONS scrollorama.animate = function(target) { var targetIndex, targetBlock, anim, offset, i, j; /* target = animation target arguments = array of animation parameters anim = object that contains all animation params (created from arguments) offset = positioning helper for pinning animation parameters: delay = amount of scrolling (in pixels) before animation starts duration = amount of scrolling (in pixels) over which the animation occurs property = css property being animated start = start value of the property end = end value of the property pin = pin block during animation duration (applies to all animations within block) baseline = top (default, when block reaches top of viewport) or bottom (when block first comies into view) easing = just like jquery's easing functions */ // if string, convert to DOM object if (typeof target === 'string') { target = $(target); } // find block of target for (i=0; i<blocks.length; i++) { if (blocks[i].block.has(target).length) { targetBlock = blocks[i]; targetIndex = i; } } // add each animation to the blocks animations array from function arguments for (i=1; i<arguments.length; i++) { anim = arguments[i]; // for top/left/right/bottom, set relative positioning if static if (anim.property === 'top' || anim.property === 'left' || anim.property === 'bottom' || anim.property === 'right' ) { if (target.css('position') === 'static') { target.css('position','relative'); } // set anim.start, anim.end defaults cssValue = parseInt(target.css(anim.property),10); if (anim.start === undefined) { anim.start = isNaN(cssValue) ? 0 : cssValue; } else if (anim.end === undefined) { anim.end = isNaN(cssValue) ? 0 : cssValue; } } // set anim.start/anim.end defaults for rotate, zoom/scale, letter-spacing if (anim.property === 'rotate') { if (anim.start === undefined) { anim.start = 0; } if (anim.end === undefined) { anim.end = 0; } } else if (anim.property === 'zoom' || anim.property === 'scale' ) { if (anim.start === undefined) { anim.start = 1; } if (anim.end === undefined) { anim.end = 1; } } else if (anim.property === 'letter-spacing' && target.css(anim.property)) { if (anim.start === undefined) { anim.start = 1; } if (anim.end === undefined) { anim.end = 1; } } // convert background-position property for use on IE8 and lower if (ieVersion && ieVersion < 9 && (anim.property == 'background-position-x' || anim.property == 'background-position-y')) { if (anim.property === 'background-position-x') { anim.property = 'backgroundPositionX'; } else { anim.property = 'backgroundPositionY'; } } if (anim.baseline === undefined) { if (anim.pin || targetBlock.pin || targetIndex === 0) { anim.baseline = 'top'; } else { anim.baseline = 'bottom'; } } if (anim.delay === undefined) { anim.delay = 0; } targetBlock.animations.push({ element: target, delay: anim.delay, duration: anim.duration, property: anim.property, startVal: anim.start !== undefined ? typeof(anim.start) == 'function' ? anim.start() : anim.start : parseInt(target.css(anim.property),10), // if undefined, use current css value endVal: anim.end !== undefined ? typeof(anim.end) == 'function' ? anim.end() : anim.end : parseInt(target.css(anim.property),10), // if undefined, use current css value baseline: anim.baseline !== undefined ? anim.baseline : 'bottom', easing: anim.easing }); if (anim.pin) { if (targetBlock.pin < anim.duration + anim.delay) { offset = anim.duration + anim.delay - targetBlock.pin; targetBlock.pin += offset; // adjust positions of blocks below target block for (j=targetIndex+1; j<blocks.length; j++) { blocks[j].top += offset; blocks[j].block.css('top', blocks[j].top); } } } } onScrollorama(); }; // function for passing blockChange event callback scrollorama.onBlockChange = function(f) { onBlockChange = f; }; // function for getting an array of scrollpoints // (top of each animation block and animation element scroll start point) scrollorama.getScrollpoints = function() { var scrollpoints = [],i,j,anim; for (i=0; i<blocks.length; i++) { scrollpoints.push(blocks[i].top); // go through the animations for each block if (blocks[i].animations.length && blocks[i].pin > 0) { for (j=0; j<blocks[i].animations.length; j++) { anim = blocks[i].animations[j]; scrollpoints.push(blocks[i].top + anim.delay + anim.duration); } } } // make sure scrollpoints are in numeric order scrollpoints.sort(function(a,b) {return a - b;}); return scrollpoints; }; // Remove scrollorama scrollorama.destroy = function () { // Remove animations for (i=0; i<blocks.length; i++) { // Remove CSS rules blocks[i].block.css({ top: '', position: '' }); // Remove scrolloroma-specific attributes delete blocks[i].animations; delete blocks[i].top; delete blocks[i].pin; } // Unbind the window scroll event $(window).off('scroll.scrollorama'); $('#scroll-wrap').remove(); // Remove the scrolloroma object delete scrollorama; }; // INIT init(); return scrollorama; }; // // Easing functions from jQuery UI // $.extend($.easing, { def: 'easeOutQuad', swing: function (x, t, b, c, d) { //alert($.easing.default); return $.easing[$.easing.def](x, t, b, c, d); }, easeInQuad: function (x, t, b, c, d) { return c*(t/=d)*t + b; }, easeOutQuad: function (x, t, b, c, d) { return -c *(t/=d)*(t-2) + b; }, easeInOutQuad: function (x, t, b, c, d) { if ((t/=d/2) < 1) { return c/2*t*t + b; } return -c/2 * ((--t)*(t-2) - 1) + b; }, easeInCubic: function (x, t, b, c, d) { return c*(t/=d)*t*t + b; }, easeOutCubic: function (x, t, b, c, d) { return c*((t=t/d-1)*t*t + 1) + b; }, easeInOutCubic: function (x, t, b, c, d) { if ((t/=d/2) < 1) { return c/2*t*t*t + b; } return c/2*((t-=2)*t*t + 2) + b; }, easeInQuart: function (x, t, b, c, d) { return c*(t/=d)*t*t*t + b; }, easeOutQuart: function (x, t, b, c, d) { return -c * ((t=t/d-1)*t*t*t - 1) + b; }, easeInOutQuart: function (x, t, b, c, d) { if ((t/=d/2) < 1) { return c/2*t*t*t*t + b; } return -c/2 * ((t-=2)*t*t*t - 2) + b; }, easeInQuint: function (x, t, b, c, d) { return c*(t/=d)*t*t*t*t + b; }, easeOutQuint: function (x, t, b, c, d) { return c*((t=t/d-1)*t*t*t*t + 1) + b; }, easeInOutQuint: function (x, t, b, c, d) { if ((t/=d/2) < 1) { return c/2*t*t*t*t*t + b; } return c/2*((t-=2)*t*t*t*t + 2) + b; }, easeInSine: function (x, t, b, c, d) { return -c * Math.cos(t/d * (Math.PI/2)) + c + b; }, easeOutSine: function (x, t, b, c, d) { return c * Math.sin(t/d * (Math.PI/2)) + b; }, easeInOutSine: function (x, t, b, c, d) { return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; }, easeInExpo: function (x, t, b, c, d) { return (t===0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; }, easeOutExpo: function (x, t, b, c, d) { return (t===d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; }, easeInOutExpo: function (x, t, b, c, d) { if (t===0) { return b; } if (t===d) { return b+c; } if ((t/=d/2) < 1) { return c/2 * Math.pow(2, 10 * (t - 1)) + b; } return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; }, easeInCirc: function (x, t, b, c, d) { return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; }, easeOutCirc: function (x, t, b, c, d) { return c * Math.sqrt(1 - (t=t/d-1)*t) + b; }, easeInOutCirc: function (x, t, b, c, d) { if ((t/=d/2) < 1) { return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; } return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; }, easeInElastic: function (x, t, b, c, d) { var s=1.70158,p=0,a=c; if (t===0) { return b; } if ((t/=d)===1) { return b+c; } if (!p) { p=d*0.3; } if (a < Math.abs(c)) { a=c; s=p/4; } else{ s = p/(2*Math.PI) * Math.asin (c/a); } return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; }, easeOutElastic: function (x, t, b, c, d) { var s=1.70158,p=0,a=c; if (t===0) { return b; } if ((t/=d)===1) { return b+c; } if (!p) { p=d*0.3; } if (a < Math.abs(c)) { a=c; s=p/4; } else { s = p/(2*Math.PI) * Math.asin (c/a); } return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; }, easeInOutElastic: function (x, t, b, c, d) { var s=1.70158,p=0,a=c; if (t===0) { return b; } if ((t/=d/2)===2) { return b+c; } if (!p) { p=d*(0.3*1.5); } if (a < Math.abs(c)) { a=c; s=p/4; } else { s = p/(2*Math.PI) * Math.asin (c/a); } if (t < 1) { return -0.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; } return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*0.5 + c + b; }, easeInBack: function (x, t, b, c, d, s) { if (s === undefined) { s = 1.70158; } return c*(t/=d)*t*((s+1)*t - s) + b; }, easeOutBack: function (x, t, b, c, d, s) { if (s === undefined) { s = 1.70158; } return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; }, easeInOutBack: function (x, t, b, c, d, s) { if (s === undefined) { s = 1.70158; } if ((t/=d/2) < 1) { return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; } return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; }, easeInBounce: function (x, t, b, c, d) { return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b; }, easeOutBounce: function (x, t, b, c, d) { if ((t/=d) < (1/2.75)) { return c*(7.5625*t*t) + b; } else if (t < (2/2.75)) { return c*(7.5625*(t-=(1.5/2.75))*t + 0.75) + b; } else if (t < (2.5/2.75)) { return c*(7.5625*(t-=(2.25/2.75))*t + 0.9375) + b; } else { return c*(7.5625*(t-=(2.625/2.75))*t + 0.984375) + b; } }, easeInOutBounce: function (x, t, b, c, d) { if (t < d/2) { return $.easing.easeInBounce (x, t*2, 0, c, d) * 0.5 + b; } return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * 0.5 + c*0.5 + b; } }); })(jQuery);
"use strict"; var d3 = require("d3"); var _ = require("underscore"); // Build a legend in the given div showing the top-level categories. // Div must be a jQuery selector. The div will be emptied. exports.makeViz = function(categories, div) { // Copy skeleton from the template. div.empty(); div.append($("#legend_template").children().clone()); // V is the visualization object that we will return. var V = {}; V.numCols = 4; // Build the data for the visualization. // We display the top-level categories, ordered by their id. V.topLevelCategs = _.sortBy(categories.root.children, function(category) { return category.id; }); _.each(V.topLevelCategs, function(category, index) { category.row = Math.floor(index / V.numCols); category.col = index % V.numCols; }); // Dimensions. V.div = d3.select(div[0]); V.width = 730; V.numRows = Math.ceil(V.topLevelCategs.length / V.numCols); V.rowHeight = 25; V.height = V.numRows * V.rowHeight; // Scales. V.x = d3.scale.linear() .domain([0, V.numCols]) .range([0, V.width]); V.y = d3.scale.linear() .domain([0, V.numRows]) .range([0, V.height]); // Init svg. V.svg = V.div.select("svg") .attr("width", V.width) .attr("height", V.height) .append("g"); // Each category becomes a <g> element. V.categories = V.svg.selectAll(".category") .data(V.topLevelCategs) .enter().append("g") .attr("class", "category") .attr("transform", function(d) { return "translate(" + V.x(d.col) + ", " + V.y(d.row) + ")"; }); // Inside that <g> element we add a colored circle and text. V.svg.selectAll(".category") .append("circle") .attr("cx", V.rowHeight / 2) .attr("cy", V.rowHeight / 2) .attr("r", V.rowHeight / 2 - 2) .attr("fill", function(d) { return d.color; }); V.svg.selectAll(".category") .append("text") .attr("x", V.rowHeight + 5) .attr("y", V.rowHeight / 2 + 5) .text(function(d) { return d.name; }); return V; };
// @flow import React, { Component, PropTypes } from 'react'; export default class App extends Component { static propTypes = { children: PropTypes.element.isRequired, }; render() { return ( <div> {this.props.children} </div> ); } }
module.exports = { preset: 'ts-jest', testEnvironment: 'node', rootDir: "src", coverageDirectory: "../coverage", };
var searchData= [ ['value_5ftype',['value_type',['../classlua_1_1_valset.html#a110ac4f055f3ef20cc6537e4a7736ac1',1,'lua::Valset']]] ];
define({ /* This is an auto generated file and any modifications to it may result in corruption of the action sequence. */ /** onClick defined for flxBack **/ AS_FlexContainer_c16b07fb0c9b4aeb9c6374a231976144: function AS_FlexContainer_c16b07fb0c9b4aeb9c6374a231976144(eventobject) { var self = this; var ntf = new kony.mvc.Navigation("frmKeyFrameAnimations"); ntf.navigate(); }, /** onClick defined for ButtonRound **/ AS_Button_b121a05d7bbd4464bd0d688f34f6ee28: function AS_Button_b121a05d7bbd4464bd0d688f34f6ee28(eventobject) { var self = this; this.startAnimation(); }, /** onClick defined for btnKnowledgeFramework **/ AS_Button_h70159a674f34933974c6e601b2d0880: function AS_Button_h70159a674f34933974c6e601b2d0880(eventobject) { var self = this; this.showKnowledgeFrameWork(); } });
$(function() { //图片延迟加载 try { $(".lazy").lazyload( { threshold: 100, effect: "fadeIn", skip_invisible: false }); }catch(e){} /*header dropdown*/ $('.dropdown').hover(function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); }); /*nav menu*/ $('#nav-menu .menu > li').hover(function() { $('.children').stop(true,true).hide(); $('.nav-dropdown').removeClass('navhover'); $(this).find('.children').delay(200).animate({ opacity:'show', height:'show' },200); $(this).find('.nav-dropdown').delay(200).addClass('navhover'); }, function() { $('.children').stop(true,true).hide(); $('.nav-dropdown').removeClass('navhover'); }); //锚点滚轮事件 var array = new Array(); try { $(".sider-nav ul li").each(function(index) { array[index] = $(this).attr("class"); }); }catch(e){} /*sider-nav scroll*/ $(window).scroll(function() { try { var oHotTop = $("#index_jrrm").offset().top; var oHotLeft = $("#index_jrrm").offset().left; var scrTop = $(window).scrollTop() || document.documentElement.scrollTop; scrTop >= oHotTop ? $(".sider-nav").addClass("Jfix").css("left",oHotLeft - 100 + "px") : $(".sider-nav").removeClass("Jfix").css("left","-100px"); var length = array.length; for(var i=0; i<length; i++) { var curTop = $("#"+array[i]).offset().top-50; var curLeft = $("#"+array[i]).offset().left; var nextTop = 10000; try { nextTop = $("#"+array[i+1]).offset().top; } catch(e){} if(scrTop >= curTop && scrTop < nextTop) { $(".sider-nav").addClass('Jfix').css("left",curLeft - 100 + "px"); $(".sider-nav ul li").eq(i).addClass('current').siblings().removeClass('current'); } } }catch(e){} }); $('.sider-nav ul li').click(function() { $(this).addClass('current').siblings().removeClass('current'); }); }); function anchorPage(id) { var top = $("#"+id).offset().top; var left = $("#"+id).offset().left; $(".sider-nav").addClass('Jfix').css("left",left - 100 + "px"); $("html,body").animate({scrollTop: top},500); }
var S = require('sanctuary'); var Maybe = require('./shared/Maybe'); var R = require('..'); var eq = require('./shared/eq'); var as = [[1], [3, 4]]; var bs = [[1, 2], [3]]; var cs = [[1, 2], [3, 4]]; describe('commuteMap', function() { var plus10map = R.map(function(x) { return x + 10; }); it('"pivots" a list (list of functors => functor of a list) and applies a transformation', function() { eq(R.commuteMap(plus10map, R.of, as), [[11, 13], [11, 14]]); eq(R.commuteMap(plus10map, R.of, bs), [[11, 13], [12, 13]]); eq(R.commuteMap(plus10map, R.of, cs), [[11, 13], [11, 14], [12, 13], [12, 14]]); }); it('works on Algebraic Data Types such as "Maybe"', function() { eq(R.commuteMap(plus10map, Maybe, [Maybe(3), Maybe(4), Maybe(5)]), Maybe([13, 14, 15])); }); it('traverses left to right', function() { eq(R.commuteMap(R.identity, S.Either.of, [S.Right(1), S.Right(2)]), S.Right([1, 2])); eq(R.commuteMap(R.identity, S.Either.of, [S.Right(1), S.Left('XXX')]), S.Left('XXX')); eq(R.commuteMap(R.identity, S.Either.of, [S.Left('XXX'), S.Right(1)]), S.Left('XXX')); eq(R.commuteMap(R.identity, S.Either.of, [S.Left('XXX'), S.Left('YYY')]), S.Left('XXX')); }); it('is curried', function() { var cmtPlus10 = R.commuteMap(plus10map); eq(typeof cmtPlus10, 'function'); var cmtmArr = cmtPlus10(R.of); eq(typeof cmtmArr, 'function'); eq(cmtmArr(as), [[11, 13], [11, 14]]); eq(cmtmArr(bs), [[11, 13], [12, 13]]); eq(cmtmArr(cs), [[11, 13], [11, 14], [12, 13], [12, 14]]); }); });
// Application Boot Directive import angular from 'angular' import ngRedux from 'ng-redux' // Css Loaders import '../style/app.css' import '../../node_modules/angular-material/angular-material.css' import '../../node_modules/angular-material-data-table/dist/md-data-table.min.css' // Import External Dependencies import '../../node_modules/@uirouter/angularjs/release/angular-ui-router.min.js' import '../../node_modules/angular-aria/angular-aria.js' import '../../node_modules/angular-animate/angular-animate.js' import '../../node_modules/angular-material/angular-material.js' import '../../node_modules/angularfire/dist/angularfire.min.js' import '../../node_modules/angular-material-data-table/dist/md-data-table.min.js' import '../../bower_components/angular-toArrayFilter/toArrayFilter.js' // start: Stores and actions // end: Stores and Actions // Import Internal Dependencies import appBoot from './app-boot.js' import config from './config.js' // Configuration (UiRouter/Cyrpto) import AppDirective from './app.directive.js' // Root Directive import AppCtrl from './app.ctrl.js' // Root Controller import FirebaseService from './services/firebase-service.js' import CryptoService from './services/crypto-service.js' import CartodbService from './services/cartodb-service.js' // start: import app controllers import LoginCtrl from './components/login/LoginCtrl.js' // start: import admin controllers import AdminCtrl from './back-office/admin/AdminCtrl.js' import AppSettingsCtrl from './back-office/application-settings/AppSettingsCtrl.js' import FilterSettingsCtrl from './back-office/filter-settings/FilterSettingsCtrl.js' import FlashDataSettingsCtrl from './back-office/flashdata-settings/FlashDataSettingsCtrl.js' import GeographySettingsCtrl from './back-office/geography-settings/GeographySettingsCtrl.js' import OverlaySettingsCtrl from './back-office/overlay-settings/OverlaySettingsCtrl.js' import ReportSettingsCtrl from './back-office/report-settings/ReportSettingsCtrl.js' import UserSettingsCtrl from './back-office/user-settings/UserSettingsCtrl.js' import AdminHomeCtrl from './back-office/admin-home/AdminHomeCtrl.js' // start: import App controllers import DashboardCtrl from './components/dashboard/DashboardCtrl.js' // end: import admin controllers const MODULE_NAME = 'app' angular.module(MODULE_NAME, ['ui.router', 'ngMaterial', 'firebase', 'md.data.table', 'angular-toArrayFilter', ngRedux]) .service('$firebaseService', ['$http', '$rootScope', FirebaseService]) .service('$cryptoService', [CryptoService]) .service('$cartodbService', [CartodbService]) .run(['$rootScope', '$mdDialog', '$mdToast', '$firebaseService', appBoot]) .config(['$stateProvider', '$urlRouterProvider', '$mdThemingProvider', '$ngReduxProvider', config]) // Directives Register .directive('app', [AppDirective]) // Controllers Register .controller('AppCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', AppCtrl]) .controller('LoginCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', '$firebaseService', '$ngRedux', LoginCtrl]) // start: admin controllers signatures .controller('AdminCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', '$mdSidenav', '$ngRedux', AdminCtrl]) .controller('AppSettingsCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', AppSettingsCtrl]) .controller('FilterSettingsCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', '$ngRedux', FilterSettingsCtrl]) .controller('FlashDataSettingsCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', '$firebaseService', '$ngRedux', FlashDataSettingsCtrl]) .controller('GeographySettingsCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', '$firebaseService', '$ngRedux', GeographySettingsCtrl]) .controller('OverlaySettingsCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', '$firebaseService', '$ngRedux', OverlaySettingsCtrl]) .controller('ReportSettingsCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', ReportSettingsCtrl]) .controller('UserSettingsCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', '$firebaseService', '$cryptoService', '$ngRedux', UserSettingsCtrl]) .controller('AdminHomeCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', AdminHomeCtrl]) // end: admin controllers signatures // start: App controllers signatures .controller('DashboardCtrl', ['$scope', '$rootScope', '$state', '$location', '$http', DashboardCtrl]) // end: App controllers signatures export default MODULE_NAME
'use strict'; const test = require('tape'); const proxyquire = require('proxyquire'); test('export test', (t) => { const cli = require('../bin/cli'); t.equal(typeof cli, 'function', 'cli should be a function'); t.end(); }); test('default goal', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({}); }, '../lib/goals/resource': (config) => { t.pass('should be here for the default goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.pass('should be here for the default goal'); return Promise.resolve(); }, '../lib/goals/apply-resources': (config) => { t.pass('should be here for the default goal'); return Promise.resolve(); } }); cli({ cmd: 'deploy' }).then(() => { t.end(); }); }); test('default goal - with namespace', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({ namespace: { create: true } }); }, '../lib/goals/resource': (config) => { t.pass('should be here for the default goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.pass('should be here for the default goal'); return Promise.resolve(); }, '../lib/namespace': { create: (config) => { t.pass('should be here for the default goal'); return Promise.resolve(); } }, '../lib/goals/apply-resources': (config) => { t.pass('should be here for the default goal'); return Promise.resolve(); } }); cli({ cmd: 'deploy' }).then(() => { t.end(); }); }); test('resource goal', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({}); }, '../lib/goals/resource': (config) => { t.pass('should be here for the resource goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.fail('should not be here for the resource goal'); return Promise.resolve(); }, '../lib/goals/apply-resources': (config) => { t.fail('should not be here for the resource goal'); return Promise.resolve(); } }); cli({ cmd: 'resource' }).then(() => { t.end(); }); }); test('apply-resource goal', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({}); }, '../lib/goals/resource': (config) => { t.pass('should be here for the apply-resource goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.fail('should not be here for the apply-resource goal'); return Promise.resolve(); }, '../lib/goals/apply-resources': (config) => { t.pass('should be here for the apply-resource goal'); return Promise.resolve(); } }); cli({ cmd: 'apply-resource' }).then(() => { t.end(); }); }); test('no goal', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({}); }, '../lib/goals/resource': (config) => { t.fail('should not be here for the no goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.fail('should not be here for the no goal'); return Promise.resolve(); }, '../lib/goals/apply-resources': (config) => { t.fail('should not be here for the no goal'); return Promise.resolve(); } }); cli({}).catch((err) => { t.equal(err.message, 'Unexpected command: undefined', 'should have this error message'); t.end(); }); }); test('undeploy goal', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({}); }, '../lib/goals/resource': (config) => { t.fail('should not be here for the undeploy goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.fail('should not be here for the undeploy goal'); return Promise.resolve(); }, '../lib/goals/apply-resources': (config) => { t.fail('should not be here for the undeploy goal'); return Promise.resolve(); }, '../lib/goals/undeploy': (config) => { t.pass('should be here for the undeploy goal'); return Promise.resolve(); } }); cli({ cmd: 'undeploy' }).then(() => { t.end(); }); }); test('undeploy goal - with namespace', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({ namespace: { remove: true } }); }, '../lib/goals/resource': (config) => { t.fail('should not be here for the undeploy goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.fail('should not be here for the undeploy goal'); return Promise.resolve(); }, '../lib/goals/apply-resources': (config) => { t.fail('should not be here for the undeploy goal'); return Promise.resolve(); }, '../lib/namespace': { remove: (config) => { t.pass('should be here for the undeploy goal'); return Promise.resolve(); } }, '../lib/goals/undeploy': (config) => { t.pass('should be here for the undeploy goal'); return Promise.resolve(); } }); cli({ cmd: 'undeploy' }).then(() => { t.end(); }); }); test('build goal', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({}); }, '../lib/goals/resource': (config) => { t.fail('should not be here for the build goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.pass('should be here for the build goal'); return Promise.resolve(); }, '../lib/goals/apply-resources': (config) => { t.fail('should not be here for the build goal'); return Promise.resolve(); }, '../lib/goals/undeploy': (config) => { t.fail('should not be here for the build goal'); return Promise.resolve(); } }); cli({ cmd: 'build' }).then(() => { t.end(); }); }); test('build goal - with namespace', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.resolve({ namespace: { create: true } }); }, '../lib/goals/resource': (config) => { t.fail('should not be here for the build goal'); return Promise.resolve(); }, '../lib/goals/build': (config) => { t.pass('should be here for the build goal'); return Promise.resolve(); }, '../lib/namespace': { create: (config) => { t.pass('should be here for the build goal'); return Promise.resolve(); } }, '../lib/goals/apply-resources': (config) => { t.fail('should not be here for the build goal'); return Promise.resolve(); }, '../lib/goals/undeploy': (config) => { t.fail('should not be here for the build goal'); return Promise.resolve(); } }); cli({ cmd: 'build' }).then(() => { t.end(); }); }); test('error', (t) => { const cli = proxyquire('../bin/cli', { '../lib/nodeshift-config': () => { return Promise.reject(new Error('error')); } }); cli({ cmd: 'build' }).catch((err) => { t.equal(err.message, 'error', 'should have an error message'); t.end(); }); });
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation and/or * other materials provided with the distribution. * * Neither the name of Dash Industry Forum nor the names of its * contributors may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ import Constants from '../constants/Constants'; import EventBus from '../../core/EventBus'; import Events from '../../core/events/Events'; import FactoryMaker from '../../core/FactoryMaker'; import InitCache from '../utils/InitCache'; import SourceBufferSink from '../SourceBufferSink'; import TextController from '../../streaming/text/TextController'; import DashJSError from '../../streaming/vo/DashJSError'; import Errors from '../../core/errors/Errors'; const BUFFER_CONTROLLER_TYPE = 'NotFragmentedTextBufferController'; function NotFragmentedTextBufferController(config) { config = config || {}; const context = this.context; const eventBus = EventBus(context).getInstance(); const textController = TextController(context).getInstance(); const errHandler = config.errHandler; const streamInfo = config.streamInfo; const type = config.type; const mimeType = config.mimeType; const fragmentModel = config.fragmentModel; let instance, isBufferingCompleted, initialized, mediaSource, buffer, initCache; function setup() { initialized = false; mediaSource = null; isBufferingCompleted = false; eventBus.on(Events.DATA_UPDATE_COMPLETED, onDataUpdateCompleted, instance); eventBus.on(Events.INIT_FRAGMENT_LOADED, onInitFragmentLoaded, instance); } function getBufferControllerType() { return BUFFER_CONTROLLER_TYPE; } function initialize(source) { setMediaSource(source); initCache = InitCache(context).getInstance(); } function createBuffer(mediaInfoArr) { const mediaInfo = mediaInfoArr[0]; try { buffer = SourceBufferSink(context).create(mediaSource, mediaInfo); if (!initialized) { const textBuffer = buffer.getBuffer(); if (textBuffer.hasOwnProperty(Constants.INITIALIZE)) { textBuffer.initialize(mimeType, streamInfo, mediaInfoArr, fragmentModel); } initialized = true; } return buffer; } catch (e) { if (mediaInfo && ((mediaInfo.isText) || (mediaInfo.codec.indexOf('codecs="stpp') !== -1) || (mediaInfo.codec.indexOf('codecs="wvtt') !== -1))) { try { buffer = textController.getTextSourceBuffer(); } catch (e) { errHandler.error(new DashJSError(Errors.MEDIASOURCE_TYPE_UNSUPPORTED_CODE, Errors.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE + type + ' : ' + e.message)); } } else { errHandler.error(new DashJSError(Errors.MEDIASOURCE_TYPE_UNSUPPORTED_CODE, Errors.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE + type)); } } } function getType() { return type; } function getBuffer() { return buffer; } function setMediaSource(value) { mediaSource = value; } function getMediaSource() { return mediaSource; } function getIsPruningInProgress() { return false; } function dischargePreBuffer() { } function setSeekStartTime() { //Unused - TODO Remove need for stub function } function getBufferLevel() { return 0; } function getIsBufferingCompleted() { return isBufferingCompleted; } function reset(errored) { eventBus.off(Events.DATA_UPDATE_COMPLETED, onDataUpdateCompleted, instance); eventBus.off(Events.INIT_FRAGMENT_LOADED, onInitFragmentLoaded, instance); if (!errored && buffer) { buffer.abort(); buffer.reset(); buffer = null; } } function onDataUpdateCompleted(e) { if (e.sender.getStreamId() !== streamInfo.id || e.sender.getType() !== type || e.error) return; if (initCache.extract(streamInfo.id, e.currentRepresentation.id) !== null) { return; } // Representation has changed, clear buffer isBufferingCompleted = false; // // Text data file is contained in initialization segment eventBus.trigger(Events.INIT_FRAGMENT_NEEDED, { sender: instance, streamId: streamInfo.id, mediaType: type, representationId: e.currentRepresentation.id }); } function appendInitSegment(representationId) { // If text data file already in cache then no need to append it again return initCache.extract(streamInfo.id, representationId) !== null; } function onInitFragmentLoaded(e) { if (e.chunk.streamId !== streamInfo.id || e.chunk.mediaInfo.type !== type || (!e.chunk.bytes)) return; initCache.save(e.chunk); buffer.append(e.chunk); isBufferingCompleted = true; eventBus.trigger(Events.STREAM_COMPLETED, { request: e.request }); } function getRangeAt() { return null; } function updateTimestampOffset(MSETimeOffset) { if (buffer.timestampOffset !== MSETimeOffset && !isNaN(MSETimeOffset)) { buffer.timestampOffset = MSETimeOffset; } } instance = { getBufferControllerType: getBufferControllerType, initialize: initialize, createBuffer: createBuffer, getType: getType, setSeekStartTime: setSeekStartTime, getBuffer: getBuffer, getBufferLevel: getBufferLevel, setMediaSource: setMediaSource, getMediaSource: getMediaSource, getIsBufferingCompleted: getIsBufferingCompleted, getIsPruningInProgress: getIsPruningInProgress, dischargePreBuffer: dischargePreBuffer, appendInitSegment: appendInitSegment, getRangeAt: getRangeAt, reset: reset, updateTimestampOffset: updateTimestampOffset }; setup(); return instance; } NotFragmentedTextBufferController.__dashjs_factory_name = BUFFER_CONTROLLER_TYPE; export default FactoryMaker.getClassFactory(NotFragmentedTextBufferController);
/*! * use <https://github.com/jonschlinkert/use> * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ 'use strict'; var utils = require('./utils'); module.exports = function base(app, opts) { if (!utils.isObject(app) && typeof app !== 'function') { throw new TypeError('use: expect `app` be an object or function'); } if (!utils.isObject(opts)) { opts = {}; } var prop = utils.isString(opts.prop) ? opts.prop : 'fns'; if (!utils.isArray(app[prop])) { utils.define(app, prop, []); } /** * Define a plugin function to be passed to use. The only * parameter exposed to the plugin is `app`, the object or function. * passed to `use(app)`. `app` is also exposed as `this` in plugins. * * Additionally, **if a plugin returns a function, the function will * be pushed onto the `fns` array**, allowing the plugin to be * called at a later point by the `run` method. * * ```js * var use = require('use'); * * // define a plugin * function foo(app) { * // do stuff * } * * var app = function(){}; * use(app); * * // register plugins * app.use(foo); * app.use(bar); * app.use(baz); * ``` * @name .use * @param {Function} `fn` plugin function to call * @api public */ utils.define(app, 'use', use); /** * Run all plugins on `fns`. Any plugin that returns a function * when called by `use` is pushed onto the `fns` array. * * ```js * var config = {}; * app.run(config); * ``` * @name .run * @param {Object} `value` Object to be modified by plugins. * @return {Object} Returns the object passed to `run` * @api public */ utils.define(app, 'run', function(val) { if (!utils.isObject(val)) return; decorate(val); var self = this || app; var fns = self[prop]; var len = fns.length; var idx = -1; while (++idx < len) { val.use(fns[idx]); } return val; }); /** * Call plugin `fn`. If a function is returned push it into the * `fns` array to be called by the `run` method. */ function use(fn, options) { if (typeof fn !== 'function') { throw new TypeError('.use expects `fn` be a function'); } var self = this || app; if (typeof opts.fn === 'function') { opts.fn.call(self, self, options); } var plugin = fn.call(self, self); if (typeof plugin === 'function') { var fns = self[prop]; fns.push(plugin); } return self; } /** * Ensure the `.use` method exists on `val` */ function decorate(val) { if (!val.use || !val.run) { base(val); } } return app; };
/* @generated */ // prettier-ignore if (Intl.NumberFormat && typeof Intl.NumberFormat.__addLocaleData === 'function') { Intl.NumberFormat.__addLocaleData({"data":{"ff-Latn-GM":{"units":{"degree":{"displayName":"deg","long":{"other":{"symbol":["°"],"pattern":"{0}{1}"}},"short":{"other":{"symbol":["°"],"pattern":"{0}{1}"}},"narrow":{"other":{"symbol":["°"],"pattern":"{0}{1}"}}},"acre":{"displayName":"acre","long":{"other":{"symbol":["ac"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["ac"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["ac"],"pattern":"{0} {1}"}}},"hectare":{"displayName":"hectare","long":{"other":{"symbol":["ha"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["ha"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["ha"],"pattern":"{0} {1}"}}},"percent":{"displayName":"%","long":{"other":{"symbol":["%"],"pattern":"{0}{1}"}},"short":{"other":{"symbol":["%"],"pattern":"{0}{1}"}},"narrow":{"other":{"symbol":["%"],"pattern":"{0}{1}"}}},"bit":{"displayName":"bit","long":{"other":{"symbol":["bit"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["bit"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["bit"],"pattern":"{0} {1}"}}},"byte":{"displayName":"byte","long":{"other":{"symbol":["byte"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["byte"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["byte"],"pattern":"{0} {1}"}}},"gigabit":{"displayName":"Gb","long":{"other":{"symbol":["Gb"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["Gb"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["Gb"],"pattern":"{0} {1}"}}},"gigabyte":{"displayName":"GB","long":{"other":{"symbol":["GB"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["GB"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["GB"],"pattern":"{0} {1}"}}},"kilobit":{"displayName":"kb","long":{"other":{"symbol":["kb"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["kb"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["kb"],"pattern":"{0} {1}"}}},"kilobyte":{"displayName":"kB","long":{"other":{"symbol":["kB"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["kB"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["kB"],"pattern":"{0} {1}"}}},"megabit":{"displayName":"Mb","long":{"other":{"symbol":["Mb"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["Mb"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["Mb"],"pattern":"{0} {1}"}}},"megabyte":{"displayName":"MB","long":{"other":{"symbol":["MB"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["MB"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["MB"],"pattern":"{0} {1}"}}},"petabyte":{"displayName":"PB","long":{"other":{"symbol":["PB"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["PB"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["PB"],"pattern":"{0} {1}"}}},"terabit":{"displayName":"Tb","long":{"other":{"symbol":["Tb"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["Tb"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["Tb"],"pattern":"{0} {1}"}}},"terabyte":{"displayName":"TB","long":{"other":{"symbol":["TB"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["TB"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["TB"],"pattern":"{0} {1}"}}},"day":{"displayName":"day","long":{"other":{"symbol":["d"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["d"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["d"],"pattern":"{0} {1}"}}},"hour":{"displayName":"hr","long":{"other":{"symbol":["h"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["h"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["h"],"pattern":"{0} {1}"}}},"millisecond":{"displayName":"ms","long":{"other":{"symbol":["ms"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["ms"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["ms"],"pattern":"{0} {1}"}}},"minute":{"displayName":"min","long":{"other":{"symbol":["min"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["min"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["min"],"pattern":"{0} {1}"}}},"month":{"displayName":"mon","long":{"other":{"symbol":["m"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["m"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["m"],"pattern":"{0} {1}"}}},"second":{"displayName":"sec","long":{"other":{"symbol":["s"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["s"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["s"],"pattern":"{0} {1}"}}},"week":{"displayName":"wk","long":{"other":{"symbol":["w"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["w"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["w"],"pattern":"{0} {1}"}}},"year":{"displayName":"yr","long":{"other":{"symbol":["y"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["y"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["y"],"pattern":"{0} {1}"}}},"centimeter":{"displayName":"cm","long":{"other":{"symbol":["cm"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["cm"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["cm"],"pattern":"{0} {1}"}}},"foot":{"displayName":"ft","long":{"other":{"symbol":["ft"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["ft"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["ft"],"pattern":"{0} {1}"}}},"inch":{"displayName":"in","long":{"other":{"symbol":["in"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["in"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["in"],"pattern":"{0} {1}"}}},"kilometer":{"displayName":"km","long":{"other":{"symbol":["km"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["km"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["km"],"pattern":"{0} {1}"}}},"meter":{"displayName":"meter","long":{"other":{"symbol":["m"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["m"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["m"],"pattern":"{0} {1}"}}},"mile-scandinavian":{"displayName":"smi","long":{"other":{"symbol":["smi"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["smi"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["smi"],"pattern":"{0} {1}"}}},"mile":{"displayName":"mi","long":{"other":{"symbol":["mi"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["mi"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["mi"],"pattern":"{0} {1}"}}},"millimeter":{"displayName":"mm","long":{"other":{"symbol":["mm"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["mm"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["mm"],"pattern":"{0} {1}"}}},"yard":{"displayName":"yd","long":{"other":{"symbol":["yd"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["yd"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["yd"],"pattern":"{0} {1}"}}},"gram":{"displayName":"gram","long":{"other":{"symbol":["g"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["g"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["g"],"pattern":"{0} {1}"}}},"kilogram":{"displayName":"kg","long":{"other":{"symbol":["kg"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["kg"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["kg"],"pattern":"{0} {1}"}}},"ounce":{"displayName":"oz","long":{"other":{"symbol":["oz"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["oz"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["oz"],"pattern":"{0} {1}"}}},"pound":{"displayName":"lb","long":{"other":{"symbol":["lb"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["lb"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["lb"],"pattern":"{0} {1}"}}},"stone":{"displayName":"st","long":{"other":{"symbol":["st"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["st"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["st"],"pattern":"{0} {1}"}}},"celsius":{"displayName":"°C","long":{"other":{"symbol":["°C"],"pattern":"{0}{1}"}},"short":{"other":{"symbol":["°C"],"pattern":"{0}{1}"}},"narrow":{"other":{"symbol":["°C"],"pattern":"{0}{1}"}}},"fahrenheit":{"displayName":"°F","long":{"other":{"symbol":["°F"],"pattern":"{0}{1}"}},"short":{"other":{"symbol":["°F"],"pattern":"{0}{1}"}},"narrow":{"other":{"symbol":["°F"],"pattern":"{0}{1}"}}},"fluid-ounce":{"displayName":"US fl oz","long":{"other":{"symbol":["fl oz US"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["fl oz US"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["fl oz US"],"pattern":"{0} {1}"}}},"gallon":{"displayName":"US gal","long":{"other":{"symbol":["gal US"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["gal US"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["gal US"],"pattern":"{0} {1}"}}},"liter":{"displayName":"liter","long":{"other":{"symbol":["l"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["l"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["l"],"pattern":"{0} {1}"}}},"milliliter":{"displayName":"mL","long":{"other":{"symbol":["mL"],"pattern":"{0} {1}"}},"short":{"other":{"symbol":["mL"],"pattern":"{0} {1}"}},"narrow":{"other":{"symbol":["mL"],"pattern":"{0} {1}"}}}},"currencies":{"ADP":{"displayName":{"other":"ADP"},"symbol":"ADP","narrow":"ADP"},"AED":{"displayName":{"other":"Dirham Emiraati Araab Dentuɗi"},"symbol":"AED","narrow":"AED"},"AFA":{"displayName":{"other":"AFA"},"symbol":"AFA","narrow":"AFA"},"AFN":{"displayName":{"other":"AFN"},"symbol":"AFN","narrow":"AFN"},"ALK":{"displayName":{"other":"ALK"},"symbol":"ALK","narrow":"ALK"},"ALL":{"displayName":{"other":"ALL"},"symbol":"ALL","narrow":"ALL"},"AMD":{"displayName":{"other":"AMD"},"symbol":"AMD","narrow":"AMD"},"ANG":{"displayName":{"other":"ANG"},"symbol":"ANG","narrow":"ANG"},"AOA":{"displayName":{"other":"Kwansaa Anngolaa"},"symbol":"AOA","narrow":"Kz"},"AOK":{"displayName":{"other":"AOK"},"symbol":"AOK","narrow":"AOK"},"AON":{"displayName":{"other":"AON"},"symbol":"AON","narrow":"AON"},"AOR":{"displayName":{"other":"AOR"},"symbol":"AOR","narrow":"AOR"},"ARA":{"displayName":{"other":"ARA"},"symbol":"ARA","narrow":"ARA"},"ARL":{"displayName":{"other":"ARL"},"symbol":"ARL","narrow":"ARL"},"ARM":{"displayName":{"other":"ARM"},"symbol":"ARM","narrow":"ARM"},"ARP":{"displayName":{"other":"ARP"},"symbol":"ARP","narrow":"ARP"},"ARS":{"displayName":{"other":"ARS"},"symbol":"ARS","narrow":"$"},"ATS":{"displayName":{"other":"ATS"},"symbol":"ATS","narrow":"ATS"},"AUD":{"displayName":{"other":"Dolaar Ostaraalii"},"symbol":"A$","narrow":"$"},"AWG":{"displayName":{"other":"AWG"},"symbol":"AWG","narrow":"AWG"},"AZM":{"displayName":{"other":"AZM"},"symbol":"AZM","narrow":"AZM"},"AZN":{"displayName":{"other":"AZN"},"symbol":"AZN","narrow":"AZN"},"BAD":{"displayName":{"other":"BAD"},"symbol":"BAD","narrow":"BAD"},"BAM":{"displayName":{"other":"BAM"},"symbol":"BAM","narrow":"KM"},"BAN":{"displayName":{"other":"BAN"},"symbol":"BAN","narrow":"BAN"},"BBD":{"displayName":{"other":"BBD"},"symbol":"BBD","narrow":"$"},"BDT":{"displayName":{"other":"BDT"},"symbol":"BDT","narrow":"৳"},"BEC":{"displayName":{"other":"BEC"},"symbol":"BEC","narrow":"BEC"},"BEF":{"displayName":{"other":"BEF"},"symbol":"BEF","narrow":"BEF"},"BEL":{"displayName":{"other":"BEL"},"symbol":"BEL","narrow":"BEL"},"BGL":{"displayName":{"other":"BGL"},"symbol":"BGL","narrow":"BGL"},"BGM":{"displayName":{"other":"BGM"},"symbol":"BGM","narrow":"BGM"},"BGN":{"displayName":{"other":"BGN"},"symbol":"BGN","narrow":"BGN"},"BGO":{"displayName":{"other":"BGO"},"symbol":"BGO","narrow":"BGO"},"BHD":{"displayName":{"other":"Dinaar Bahrayn"},"symbol":"BHD","narrow":"BHD"},"BIF":{"displayName":{"other":"Mbuuɗu Burunndi"},"symbol":"BIF","narrow":"BIF"},"BMD":{"displayName":{"other":"BMD"},"symbol":"BMD","narrow":"$"},"BND":{"displayName":{"other":"BND"},"symbol":"BND","narrow":"$"},"BOB":{"displayName":{"other":"BOB"},"symbol":"BOB","narrow":"Bs"},"BOL":{"displayName":{"other":"BOL"},"symbol":"BOL","narrow":"BOL"},"BOP":{"displayName":{"other":"BOP"},"symbol":"BOP","narrow":"BOP"},"BOV":{"displayName":{"other":"BOV"},"symbol":"BOV","narrow":"BOV"},"BRB":{"displayName":{"other":"BRB"},"symbol":"BRB","narrow":"BRB"},"BRC":{"displayName":{"other":"BRC"},"symbol":"BRC","narrow":"BRC"},"BRE":{"displayName":{"other":"BRE"},"symbol":"BRE","narrow":"BRE"},"BRL":{"displayName":{"other":"BRL"},"symbol":"R$","narrow":"R$"},"BRN":{"displayName":{"other":"BRN"},"symbol":"BRN","narrow":"BRN"},"BRR":{"displayName":{"other":"BRR"},"symbol":"BRR","narrow":"BRR"},"BRZ":{"displayName":{"other":"BRZ"},"symbol":"BRZ","narrow":"BRZ"},"BSD":{"displayName":{"other":"BSD"},"symbol":"BSD","narrow":"$"},"BTN":{"displayName":{"other":"BTN"},"symbol":"BTN","narrow":"BTN"},"BUK":{"displayName":{"other":"BUK"},"symbol":"BUK","narrow":"BUK"},"BWP":{"displayName":{"other":"Pulaa Botwanaa"},"symbol":"BWP","narrow":"P"},"BYB":{"displayName":{"other":"BYB"},"symbol":"BYB","narrow":"BYB"},"BYN":{"displayName":{"other":"BYN"},"symbol":"BYN","narrow":"р."},"BYR":{"displayName":{"other":"BYR"},"symbol":"BYR","narrow":"BYR"},"BZD":{"displayName":{"other":"BZD"},"symbol":"BZD","narrow":"$"},"CAD":{"displayName":{"other":"Dolaar Kandaaa"},"symbol":"CA$","narrow":"$"},"CDF":{"displayName":{"other":"Faraa Konngo"},"symbol":"CDF","narrow":"CDF"},"CHE":{"displayName":{"other":"CHE"},"symbol":"CHE","narrow":"CHE"},"CHF":{"displayName":{"other":"Faraa Suwiis"},"symbol":"CHF","narrow":"CHF"},"CHW":{"displayName":{"other":"CHW"},"symbol":"CHW","narrow":"CHW"},"CLE":{"displayName":{"other":"CLE"},"symbol":"CLE","narrow":"CLE"},"CLF":{"displayName":{"other":"CLF"},"symbol":"CLF","narrow":"CLF"},"CLP":{"displayName":{"other":"CLP"},"symbol":"CLP","narrow":"$"},"CNH":{"displayName":{"other":"CNH"},"symbol":"CNH","narrow":"CNH"},"CNX":{"displayName":{"other":"CNX"},"symbol":"CNX","narrow":"CNX"},"CNY":{"displayName":{"other":"Yuam Siin"},"symbol":"CN¥","narrow":"¥"},"COP":{"displayName":{"other":"COP"},"symbol":"COP","narrow":"$"},"COU":{"displayName":{"other":"COU"},"symbol":"COU","narrow":"COU"},"CRC":{"displayName":{"other":"CRC"},"symbol":"CRC","narrow":"₡"},"CSD":{"displayName":{"other":"CSD"},"symbol":"CSD","narrow":"CSD"},"CSK":{"displayName":{"other":"CSK"},"symbol":"CSK","narrow":"CSK"},"CUC":{"displayName":{"other":"CUC"},"symbol":"CUC","narrow":"$"},"CUP":{"displayName":{"other":"CUP"},"symbol":"CUP","narrow":"$"},"CVE":{"displayName":{"other":"Eskudoo Kap Weer"},"symbol":"CVE","narrow":"CVE"},"CYP":{"displayName":{"other":"CYP"},"symbol":"CYP","narrow":"CYP"},"CZK":{"displayName":{"other":"CZK"},"symbol":"CZK","narrow":"Kč"},"DDM":{"displayName":{"other":"DDM"},"symbol":"DDM","narrow":"DDM"},"DEM":{"displayName":{"other":"DEM"},"symbol":"DEM","narrow":"DEM"},"DJF":{"displayName":{"other":"Faraa Jibutii"},"symbol":"DJF","narrow":"DJF"},"DKK":{"displayName":{"other":"DKK"},"symbol":"DKK","narrow":"kr"},"DOP":{"displayName":{"other":"DOP"},"symbol":"DOP","narrow":"$"},"DZD":{"displayName":{"other":"Dinaar Alaseri"},"symbol":"DZD","narrow":"DZD"},"ECS":{"displayName":{"other":"ECS"},"symbol":"ECS","narrow":"ECS"},"ECV":{"displayName":{"other":"ECV"},"symbol":"ECV","narrow":"ECV"},"EEK":{"displayName":{"other":"EEK"},"symbol":"EEK","narrow":"EEK"},"EGP":{"displayName":{"other":"Liibar Ejipt"},"symbol":"EGP","narrow":"E£"},"ERN":{"displayName":{"other":"Nafka Eriteree"},"symbol":"ERN","narrow":"ERN"},"ESA":{"displayName":{"other":"ESA"},"symbol":"ESA","narrow":"ESA"},"ESB":{"displayName":{"other":"ESB"},"symbol":"ESB","narrow":"ESB"},"ESP":{"displayName":{"other":"ESP"},"symbol":"ESP","narrow":"₧"},"ETB":{"displayName":{"other":"Biir Ecoppi"},"symbol":"ETB","narrow":"ETB"},"EUR":{"displayName":{"other":"Oroo"},"symbol":"€","narrow":"€"},"FIM":{"displayName":{"other":"FIM"},"symbol":"FIM","narrow":"FIM"},"FJD":{"displayName":{"other":"FJD"},"symbol":"FJD","narrow":"$"},"FKP":{"displayName":{"other":"FKP"},"symbol":"FKP","narrow":"£"},"FRF":{"displayName":{"other":"FRF"},"symbol":"FRF","narrow":"FRF"},"GBP":{"displayName":{"other":"Liibar Sterling"},"symbol":"£","narrow":"£"},"GEK":{"displayName":{"other":"GEK"},"symbol":"GEK","narrow":"GEK"},"GEL":{"displayName":{"other":"GEL"},"symbol":"GEL","narrow":"₾"},"GHC":{"displayName":{"other":"Sedi Ganaa"},"symbol":"GHC","narrow":"GHC"},"GHS":{"displayName":{"other":"GHS"},"symbol":"GHS","narrow":"GHS"},"GIP":{"displayName":{"other":"GIP"},"symbol":"GIP","narrow":"£"},"GMD":{"displayName":{"other":"Dalasi Gammbi"},"symbol":"D","narrow":"D"},"GNF":{"displayName":{"other":"GNF"},"symbol":"GNF","narrow":"FG"},"GNS":{"displayName":{"other":"Faraa Gine"},"symbol":"GNS","narrow":"GNS"},"GQE":{"displayName":{"other":"GQE"},"symbol":"GQE","narrow":"GQE"},"GRD":{"displayName":{"other":"GRD"},"symbol":"GRD","narrow":"GRD"},"GTQ":{"displayName":{"other":"GTQ"},"symbol":"GTQ","narrow":"Q"},"GWE":{"displayName":{"other":"GWE"},"symbol":"GWE","narrow":"GWE"},"GWP":{"displayName":{"other":"GWP"},"symbol":"GWP","narrow":"GWP"},"GYD":{"displayName":{"other":"GYD"},"symbol":"GYD","narrow":"$"},"HKD":{"displayName":{"other":"HKD"},"symbol":"HK$","narrow":"$"},"HNL":{"displayName":{"other":"HNL"},"symbol":"HNL","narrow":"L"},"HRD":{"displayName":{"other":"HRD"},"symbol":"HRD","narrow":"HRD"},"HRK":{"displayName":{"other":"HRK"},"symbol":"HRK","narrow":"kn"},"HTG":{"displayName":{"other":"HTG"},"symbol":"HTG","narrow":"HTG"},"HUF":{"displayName":{"other":"HUF"},"symbol":"HUF","narrow":"Ft"},"IDR":{"displayName":{"other":"IDR"},"symbol":"IDR","narrow":"Rp"},"IEP":{"displayName":{"other":"IEP"},"symbol":"IEP","narrow":"IEP"},"ILP":{"displayName":{"other":"ILP"},"symbol":"ILP","narrow":"ILP"},"ILR":{"displayName":{"other":"ILR"},"symbol":"ILR","narrow":"ILR"},"ILS":{"displayName":{"other":"ILS"},"symbol":"₪","narrow":"₪"},"INR":{"displayName":{"other":"Rupii Enndo"},"symbol":"₹","narrow":"₹"},"IQD":{"displayName":{"other":"IQD"},"symbol":"IQD","narrow":"IQD"},"IRR":{"displayName":{"other":"IRR"},"symbol":"IRR","narrow":"IRR"},"ISJ":{"displayName":{"other":"ISJ"},"symbol":"ISJ","narrow":"ISJ"},"ISK":{"displayName":{"other":"ISK"},"symbol":"ISK","narrow":"kr"},"ITL":{"displayName":{"other":"ITL"},"symbol":"ITL","narrow":"ITL"},"JMD":{"displayName":{"other":"JMD"},"symbol":"JMD","narrow":"$"},"JOD":{"displayName":{"other":"JOD"},"symbol":"JOD","narrow":"JOD"},"JPY":{"displayName":{"other":"Yen Sapoo"},"symbol":"JP¥","narrow":"¥"},"KES":{"displayName":{"other":"Siling Keñaa"},"symbol":"KES","narrow":"KES"},"KGS":{"displayName":{"other":"KGS"},"symbol":"KGS","narrow":"KGS"},"KHR":{"displayName":{"other":"KHR"},"symbol":"KHR","narrow":"៛"},"KMF":{"displayName":{"other":"Faraa Komoor"},"symbol":"KMF","narrow":"CF"},"KPW":{"displayName":{"other":"KPW"},"symbol":"KPW","narrow":"₩"},"KRH":{"displayName":{"other":"KRH"},"symbol":"KRH","narrow":"KRH"},"KRO":{"displayName":{"other":"KRO"},"symbol":"KRO","narrow":"KRO"},"KRW":{"displayName":{"other":"KRW"},"symbol":"₩","narrow":"₩"},"KWD":{"displayName":{"other":"KWD"},"symbol":"KWD","narrow":"KWD"},"KYD":{"displayName":{"other":"KYD"},"symbol":"KYD","narrow":"$"},"KZT":{"displayName":{"other":"KZT"},"symbol":"KZT","narrow":"₸"},"LAK":{"displayName":{"other":"LAK"},"symbol":"LAK","narrow":"₭"},"LBP":{"displayName":{"other":"LBP"},"symbol":"LBP","narrow":"L£"},"LKR":{"displayName":{"other":"LKR"},"symbol":"LKR","narrow":"Rs"},"LRD":{"displayName":{"other":"Dolaar Liberiyaa"},"symbol":"LRD","narrow":"$"},"LSL":{"displayName":{"other":"Loti Lesotoo"},"symbol":"LSL","narrow":"LSL"},"LTL":{"displayName":{"other":"LTL"},"symbol":"LTL","narrow":"Lt"},"LTT":{"displayName":{"other":"LTT"},"symbol":"LTT","narrow":"LTT"},"LUC":{"displayName":{"other":"LUC"},"symbol":"LUC","narrow":"LUC"},"LUF":{"displayName":{"other":"LUF"},"symbol":"LUF","narrow":"LUF"},"LUL":{"displayName":{"other":"LUL"},"symbol":"LUL","narrow":"LUL"},"LVL":{"displayName":{"other":"LVL"},"symbol":"LVL","narrow":"Ls"},"LVR":{"displayName":{"other":"LVR"},"symbol":"LVR","narrow":"LVR"},"LYD":{"displayName":{"other":"Dinaar Libi"},"symbol":"LYD","narrow":"LYD"},"MAD":{"displayName":{"other":"Diraham Maruk"},"symbol":"MAD","narrow":"MAD"},"MAF":{"displayName":{"other":"MAF"},"symbol":"MAF","narrow":"MAF"},"MCF":{"displayName":{"other":"MCF"},"symbol":"MCF","narrow":"MCF"},"MDC":{"displayName":{"other":"MDC"},"symbol":"MDC","narrow":"MDC"},"MDL":{"displayName":{"other":"MDL"},"symbol":"MDL","narrow":"MDL"},"MGA":{"displayName":{"other":"Ariyari Madagaskaar"},"symbol":"MGA","narrow":"Ar"},"MGF":{"displayName":{"other":"MGF"},"symbol":"MGF","narrow":"MGF"},"MKD":{"displayName":{"other":"MKD"},"symbol":"MKD","narrow":"MKD"},"MKN":{"displayName":{"other":"MKN"},"symbol":"MKN","narrow":"MKN"},"MLF":{"displayName":{"other":"MLF"},"symbol":"MLF","narrow":"MLF"},"MMK":{"displayName":{"other":"MMK"},"symbol":"MMK","narrow":"K"},"MNT":{"displayName":{"other":"MNT"},"symbol":"MNT","narrow":"₮"},"MOP":{"displayName":{"other":"MOP"},"symbol":"MOP","narrow":"MOP"},"MRO":{"displayName":{"other":"Ugiyya Muritani (1973–2017)"},"symbol":"MRO","narrow":"MRO"},"MRU":{"displayName":{"other":"Ugiyya Muritani"},"symbol":"MRU","narrow":"MRU"},"MTL":{"displayName":{"other":"MTL"},"symbol":"MTL","narrow":"MTL"},"MTP":{"displayName":{"other":"MTP"},"symbol":"MTP","narrow":"MTP"},"MUR":{"displayName":{"other":"Rupii Moriis"},"symbol":"MUR","narrow":"Rs"},"MVP":{"displayName":{"other":"MVP"},"symbol":"MVP","narrow":"MVP"},"MVR":{"displayName":{"other":"MVR"},"symbol":"MVR","narrow":"MVR"},"MWK":{"displayName":{"other":"Kuwacca Malaawi"},"symbol":"MWK","narrow":"MWK"},"MXN":{"displayName":{"other":"MXN"},"symbol":"MX$","narrow":"$"},"MXP":{"displayName":{"other":"MXP"},"symbol":"MXP","narrow":"MXP"},"MXV":{"displayName":{"other":"MXV"},"symbol":"MXV","narrow":"MXV"},"MYR":{"displayName":{"other":"MYR"},"symbol":"MYR","narrow":"RM"},"MZE":{"displayName":{"other":"MZE"},"symbol":"MZE","narrow":"MZE"},"MZM":{"displayName":{"other":"Metikal Mosammbik"},"symbol":"MZM","narrow":"MZM"},"MZN":{"displayName":{"other":"MZN"},"symbol":"MZN","narrow":"MZN"},"NAD":{"displayName":{"other":"Dolaar Namibii"},"symbol":"NAD","narrow":"$"},"NGN":{"displayName":{"other":"Nayraa Nijeriyaa"},"symbol":"NGN","narrow":"₦"},"NIC":{"displayName":{"other":"NIC"},"symbol":"NIC","narrow":"NIC"},"NIO":{"displayName":{"other":"NIO"},"symbol":"NIO","narrow":"C$"},"NLG":{"displayName":{"other":"NLG"},"symbol":"NLG","narrow":"NLG"},"NOK":{"displayName":{"other":"NOK"},"symbol":"NOK","narrow":"kr"},"NPR":{"displayName":{"other":"NPR"},"symbol":"NPR","narrow":"Rs"},"NZD":{"displayName":{"other":"NZD"},"symbol":"NZ$","narrow":"$"},"OMR":{"displayName":{"other":"OMR"},"symbol":"OMR","narrow":"OMR"},"PAB":{"displayName":{"other":"PAB"},"symbol":"PAB","narrow":"PAB"},"PEI":{"displayName":{"other":"PEI"},"symbol":"PEI","narrow":"PEI"},"PEN":{"displayName":{"other":"PEN"},"symbol":"PEN","narrow":"PEN"},"PES":{"displayName":{"other":"PES"},"symbol":"PES","narrow":"PES"},"PGK":{"displayName":{"other":"PGK"},"symbol":"PGK","narrow":"PGK"},"PHP":{"displayName":{"other":"PHP"},"symbol":"PHP","narrow":"₱"},"PKR":{"displayName":{"other":"PKR"},"symbol":"PKR","narrow":"Rs"},"PLN":{"displayName":{"other":"PLN"},"symbol":"PLN","narrow":"zł"},"PLZ":{"displayName":{"other":"PLZ"},"symbol":"PLZ","narrow":"PLZ"},"PTE":{"displayName":{"other":"PTE"},"symbol":"PTE","narrow":"PTE"},"PYG":{"displayName":{"other":"PYG"},"symbol":"PYG","narrow":"₲"},"QAR":{"displayName":{"other":"QAR"},"symbol":"QAR","narrow":"QAR"},"RHD":{"displayName":{"other":"RHD"},"symbol":"RHD","narrow":"RHD"},"ROL":{"displayName":{"other":"ROL"},"symbol":"ROL","narrow":"ROL"},"RON":{"displayName":{"other":"RON"},"symbol":"RON","narrow":"lei"},"RSD":{"displayName":{"other":"RSD"},"symbol":"RSD","narrow":"RSD"},"RUB":{"displayName":{"other":"RUB"},"symbol":"RUB","narrow":"₽"},"RUR":{"displayName":{"other":"RUR"},"symbol":"RUR","narrow":"р."},"RWF":{"displayName":{"other":"Faraa Ruwanndaa"},"symbol":"RWF","narrow":"RF"},"SAR":{"displayName":{"other":"Riyaal Arabi Sawdit"},"symbol":"SAR","narrow":"SAR"},"SBD":{"displayName":{"other":"SBD"},"symbol":"SBD","narrow":"$"},"SCR":{"displayName":{"other":"Rupii Seysel"},"symbol":"SCR","narrow":"SCR"},"SDD":{"displayName":{"other":"SDD"},"symbol":"SDD","narrow":"SDD"},"SDG":{"displayName":{"other":"Liibar Sudaan"},"symbol":"SDG","narrow":"SDG"},"SDP":{"displayName":{"other":"SDP"},"symbol":"SDP","narrow":"SDP"},"SEK":{"displayName":{"other":"SEK"},"symbol":"SEK","narrow":"kr"},"SGD":{"displayName":{"other":"SGD"},"symbol":"SGD","narrow":"$"},"SHP":{"displayName":{"other":"Liibar Sent Helen"},"symbol":"SHP","narrow":"£"},"SIT":{"displayName":{"other":"SIT"},"symbol":"SIT","narrow":"SIT"},"SKK":{"displayName":{"other":"SKK"},"symbol":"SKK","narrow":"SKK"},"SLL":{"displayName":{"other":"Lewoon Seraa Liyon"},"symbol":"SLL","narrow":"SLL"},"SOS":{"displayName":{"other":"Siling Soomali"},"symbol":"SOS","narrow":"SOS"},"SRD":{"displayName":{"other":"SRD"},"symbol":"SRD","narrow":"$"},"SRG":{"displayName":{"other":"SRG"},"symbol":"SRG","narrow":"SRG"},"SSP":{"displayName":{"other":"SSP"},"symbol":"SSP","narrow":"£"},"STD":{"displayName":{"other":"Dobra Sawo Tome e Prensipe (1977–2017)"},"symbol":"STD","narrow":"STD"},"STN":{"displayName":{"other":"Dobra Sawo Tome e Prensipe"},"symbol":"STN","narrow":"Db"},"SUR":{"displayName":{"other":"SUR"},"symbol":"SUR","narrow":"SUR"},"SVC":{"displayName":{"other":"SVC"},"symbol":"SVC","narrow":"SVC"},"SYP":{"displayName":{"other":"SYP"},"symbol":"SYP","narrow":"£"},"SZL":{"displayName":{"other":"Lilangeni Swaasilannda"},"symbol":"SZL","narrow":"SZL"},"THB":{"displayName":{"other":"THB"},"symbol":"THB","narrow":"฿"},"TJR":{"displayName":{"other":"TJR"},"symbol":"TJR","narrow":"TJR"},"TJS":{"displayName":{"other":"TJS"},"symbol":"TJS","narrow":"TJS"},"TMM":{"displayName":{"other":"TMM"},"symbol":"TMM","narrow":"TMM"},"TMT":{"displayName":{"other":"TMT"},"symbol":"TMT","narrow":"TMT"},"TND":{"displayName":{"other":"Dinaar Tunisii"},"symbol":"TND","narrow":"TND"},"TOP":{"displayName":{"other":"TOP"},"symbol":"TOP","narrow":"T$"},"TPE":{"displayName":{"other":"TPE"},"symbol":"TPE","narrow":"TPE"},"TRL":{"displayName":{"other":"TRL"},"symbol":"TRL","narrow":"TRL"},"TRY":{"displayName":{"other":"TRY"},"symbol":"TRY","narrow":"₺"},"TTD":{"displayName":{"other":"TTD"},"symbol":"TTD","narrow":"$"},"TWD":{"displayName":{"other":"TWD"},"symbol":"NT$","narrow":"$"},"TZS":{"displayName":{"other":"Siling Tansanii"},"symbol":"TZS","narrow":"TZS"},"UAH":{"displayName":{"other":"UAH"},"symbol":"UAH","narrow":"₴"},"UAK":{"displayName":{"other":"UAK"},"symbol":"UAK","narrow":"UAK"},"UGS":{"displayName":{"other":"UGS"},"symbol":"UGS","narrow":"UGS"},"UGX":{"displayName":{"other":"Siling Uganndaa"},"symbol":"UGX","narrow":"UGX"},"USD":{"displayName":{"other":"Dolaar Dowlaaji Dentuɗi"},"symbol":"US$","narrow":"$"},"USN":{"displayName":{"other":"USN"},"symbol":"USN","narrow":"USN"},"USS":{"displayName":{"other":"USS"},"symbol":"USS","narrow":"USS"},"UYI":{"displayName":{"other":"UYI"},"symbol":"UYI","narrow":"UYI"},"UYP":{"displayName":{"other":"UYP"},"symbol":"UYP","narrow":"UYP"},"UYU":{"displayName":{"other":"UYU"},"symbol":"UYU","narrow":"$"},"UYW":{"displayName":{"other":"UYW"},"symbol":"UYW","narrow":"UYW"},"UZS":{"displayName":{"other":"UZS"},"symbol":"UZS","narrow":"UZS"},"VEB":{"displayName":{"other":"VEB"},"symbol":"VEB","narrow":"VEB"},"VEF":{"displayName":{"other":"VEF"},"symbol":"VEF","narrow":"Bs"},"VES":{"displayName":{"other":"VES"},"symbol":"VES","narrow":"VES"},"VND":{"displayName":{"other":"VND"},"symbol":"₫","narrow":"₫"},"VNN":{"displayName":{"other":"VNN"},"symbol":"VNN","narrow":"VNN"},"VUV":{"displayName":{"other":"VUV"},"symbol":"VUV","narrow":"VUV"},"WST":{"displayName":{"other":"WST"},"symbol":"WST","narrow":"WST"},"XAF":{"displayName":{"other":"Mbuuɗi Seefaa BEAC"},"symbol":"FCFA","narrow":"FCFA"},"XAG":{"displayName":{"other":"XAG"},"symbol":"XAG","narrow":"XAG"},"XAU":{"displayName":{"other":"XAU"},"symbol":"XAU","narrow":"XAU"},"XBA":{"displayName":{"other":"XBA"},"symbol":"XBA","narrow":"XBA"},"XBB":{"displayName":{"other":"XBB"},"symbol":"XBB","narrow":"XBB"},"XBC":{"displayName":{"other":"XBC"},"symbol":"XBC","narrow":"XBC"},"XBD":{"displayName":{"other":"XBD"},"symbol":"XBD","narrow":"XBD"},"XCD":{"displayName":{"other":"XCD"},"symbol":"EC$","narrow":"$"},"XDR":{"displayName":{"other":"XDR"},"symbol":"XDR","narrow":"XDR"},"XEU":{"displayName":{"other":"XEU"},"symbol":"XEU","narrow":"XEU"},"XFO":{"displayName":{"other":"XFO"},"symbol":"XFO","narrow":"XFO"},"XFU":{"displayName":{"other":"XFU"},"symbol":"XFU","narrow":"XFU"},"XOF":{"displayName":{"other":"Mbuuɗu Seefaa BCEAO"},"symbol":"CFA","narrow":"CFA"},"XPD":{"displayName":{"other":"XPD"},"symbol":"XPD","narrow":"XPD"},"XPF":{"displayName":{"other":"XPF"},"symbol":"CFPF","narrow":"CFPF"},"XPT":{"displayName":{"other":"XPT"},"symbol":"XPT","narrow":"XPT"},"XRE":{"displayName":{"other":"XRE"},"symbol":"XRE","narrow":"XRE"},"XSU":{"displayName":{"other":"XSU"},"symbol":"XSU","narrow":"XSU"},"XTS":{"displayName":{"other":"XTS"},"symbol":"XTS","narrow":"XTS"},"XUA":{"displayName":{"other":"XUA"},"symbol":"XUA","narrow":"XUA"},"XXX":{"displayName":{"other":"XXX"},"symbol":"¤","narrow":"¤"},"YDD":{"displayName":{"other":"YDD"},"symbol":"YDD","narrow":"YDD"},"YER":{"displayName":{"other":"YER"},"symbol":"YER","narrow":"YER"},"YUD":{"displayName":{"other":"YUD"},"symbol":"YUD","narrow":"YUD"},"YUM":{"displayName":{"other":"YUM"},"symbol":"YUM","narrow":"YUM"},"YUN":{"displayName":{"other":"YUN"},"symbol":"YUN","narrow":"YUN"},"YUR":{"displayName":{"other":"YUR"},"symbol":"YUR","narrow":"YUR"},"ZAL":{"displayName":{"other":"ZAL"},"symbol":"ZAL","narrow":"ZAL"},"ZAR":{"displayName":{"other":"Rannda Afrik Bŋ Worgo"},"symbol":"ZAR","narrow":"R"},"ZMK":{"displayName":{"other":"Kuwacca Sammbi (1968–2012)"},"symbol":"ZMK","narrow":"ZMK"},"ZMW":{"displayName":{"other":"Kuwacca Sammbi"},"symbol":"ZMW","narrow":"ZK"},"ZRN":{"displayName":{"other":"ZRN"},"symbol":"ZRN","narrow":"ZRN"},"ZRZ":{"displayName":{"other":"ZRZ"},"symbol":"ZRZ","narrow":"ZRZ"},"ZWD":{"displayName":{"other":"Dolaar Simbaabuwe"},"symbol":"ZWD","narrow":"ZWD"},"ZWL":{"displayName":{"other":"ZWL"},"symbol":"ZWL","narrow":"ZWL"},"ZWR":{"displayName":{"other":"ZWR"},"symbol":"ZWR","narrow":"ZWR"}},"numbers":{"nu":["latn"],"symbols":{"latn":{"decimal":",","group":" ","list":";","percentSign":"%","plusSign":"+","minusSign":"-","exponential":"E","superscriptingExponent":"×","perMille":"‰","infinity":"∞","nan":"NaN","timeSeparator":":"}},"percent":{"latn":"#,##0%"},"decimal":{"latn":{"long":{"1000":{"other":"0K"},"10000":{"other":"00K"},"100000":{"other":"000K"},"1000000":{"other":"0M"},"10000000":{"other":"00M"},"100000000":{"other":"000M"},"1000000000":{"other":"0G"},"10000000000":{"other":"00G"},"100000000000":{"other":"000G"},"1000000000000":{"other":"0T"},"10000000000000":{"other":"00T"},"100000000000000":{"other":"000T"}},"short":{"1000":{"other":"0K"},"10000":{"other":"00K"},"100000":{"other":"000K"},"1000000":{"other":"0M"},"10000000":{"other":"00M"},"100000000":{"other":"000M"},"1000000000":{"other":"0G"},"10000000000":{"other":"00G"},"100000000000":{"other":"000G"},"1000000000000":{"other":"0T"},"10000000000000":{"other":"00T"},"100000000000000":{"other":"000T"}}}},"currency":{"latn":{"currencySpacing":{"beforeInsertBetween":" ","afterInsertBetween":" "},"standard":"#,##0.00 ¤","accounting":"#,##0.00 ¤","unitPattern":"{0} {1}","short":{"1000":{"other":"¤ 0K"},"10000":{"other":"¤ 00K"},"100000":{"other":"¤ 000K"},"1000000":{"other":"¤ 0M"},"10000000":{"other":"¤ 00M"},"100000000":{"other":"¤ 000M"},"1000000000":{"other":"¤ 0G"},"10000000000":{"other":"¤ 00G"},"100000000000":{"other":"¤ 000G"},"1000000000000":{"other":"¤ 0T"},"10000000000000":{"other":"¤ 00T"},"100000000000000":{"other":"¤ 000T"}}}}},"nu":["latn"]}},"availableLocales":["ff-Latn-GM"],"aliases":{},"parentLocales":{}}) }
const Polyhedral = require("../lib/index"); describe("Polyhedral", () => { it("returns this", () => { const instance = {}; expect(Polyhedral.bind(instance)()).toBe(instance); }); it.each(["plus", "minus", "roll", "rollEach", "sample", "stringify"])( "binds %s", fn => { const polyhedral = Polyhedral(); expect(polyhedral[fn]).toBeDefined(); expect(polyhedral[fn].prototype).toBeUndefined(); } ); });
import React from 'react'; import { StyleSheet, SafeAreaView, ScrollView} from 'react-native'; import PreservationHeader from '../PreservationHeader' import {connect} from 'react-redux'; import TagInfoModule from '../../../Modules/TagInfoView' import Icon from 'react-native-vector-icons/Ionicons' import NavigationHeader from '../../../components/NavigationHeader'; class TagInfoView extends React.PureComponent { static navigationOptions = ({ navigation }) => { return { tabBarOptions: {adaptive: false}, tabBarLabel: 'Tag Info', tabBarIcon: ({ focused, horizontal, tintColor }) => { return ( <Icon name="ios-alert" size={25} color={tintColor} /> ); }, }; }; constructor(props) { super(props); } render() { return ( <SafeAreaView style={styles.container}> <NavigationHeader navigation={this.props.navigation} title="Tag info" /> <PreservationHeader item={this.props.checklistInfo} /> <ScrollView style={{ flex: 1 }}> {this.props.checklistInfo && (<TagInfoModule tagId={this.props.checklistInfo.TagId} />)} </ScrollView> </SafeAreaView> ) } } const styles = StyleSheet.create({ container: { flex: 1 } }) const mapStateToProps = state => ({ checklistInfo: state.Data.checklistInfo, }); TagInfoView.defaultProps = { checklistInfo: {} } export default connect( mapStateToProps, null )(TagInfoView);
#!/usr/bin/env node const commander = require('commander'); const Config = require('../src/config'); const collect = require('../src/collect'); const { InitCommand } = require('../src/commands'); const { LogService } = require('../src/services'); const command = `${Config.COMMAND} init`; const program = new commander.Command(command) .usage('[options]') .option( '-p, --path [projectPath]', 'Specify path to your project directory.', '.', ) .option( '-t, --template [templateName]', 'Specify sample template to use.', ) .on('--help', () => { [ '', '', ' Examples:', '', ` $ ${command}`, ` $ ${command} -t sample-api`, ` $ ${command} -t sample-frontend -p /www/example/project`, '', ].forEach(message => LogService.info(message)); }) .parse(process.argv); collect(async () => new InitCommand(program.opts()).execute());
'use babel' import fs from "fs"; class FM { write (file, data) { fs.writeFile(`./${file}`, data, {flag: "a"}, (err) => { if (err) this.error(err); });; } writeFile (file, data) { fs.writeFile(`./${file}`, data, (err) => { if (err) this.error(err); }); } getTests () { return fs.readdirSync("./tests"); } } export default new FM();
/* //! version : 3.1.3 ========================================================= bootstrap-datetimepicker.js https://github.com/Eonasdan/bootstrap-datetimepicker ========================================================= The MIT License (MIT) Copyright (c) 2014 Jonathan Peterson 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 (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // AMD is used - Register as an anonymous module. define(['jquery', 'moment'], factory); } else if (typeof exports === 'object') { factory(require('jquery'), require('moment')); } else { // Neither AMD or CommonJS used. Use global variables. if (!jQuery) { throw new Error('bootstrap-datetimepicker requires jQuery to be loaded first'); } if (!moment) { throw new Error('bootstrap-datetimepicker requires moment.js to be loaded first'); } factory(root.jQuery, moment); } }(this, function ($, moment) { 'use strict'; if (typeof moment === 'undefined') { throw new Error('momentjs is required'); } var dpgId = 0, DateTimePicker = function (element, options) { var defaults = $.fn.datetimepicker.defaults, icons = { time: 'glyphicon glyphicon-time', date: 'glyphicon glyphicon-calendar', up: 'glyphicon glyphicon-chevron-up', down: 'glyphicon glyphicon-chevron-down' }, picker = this, errored = false, dDate, init = function () { var icon = false, localeData, rInterval; picker.options = $.extend({}, defaults, options); picker.options.icons = $.extend({}, icons, picker.options.icons); picker.element = $(element); dataToOptions(); if (!(picker.options.pickTime || picker.options.pickDate)) { throw new Error('Must choose at least one picker'); } picker.id = dpgId++; moment.locale(picker.options.language); picker.date = moment(); picker.unset = false; picker.isInput = picker.element.is('input'); picker.component = false; if (picker.element.hasClass('input-group')) { if (picker.element.find('.datepickerbutton').size() === 0) {//in case there is more then one 'input-group-addon' Issue #48 picker.component = picker.element.find('[class^="input-group-"]'); } else { picker.component = picker.element.find('.datepickerbutton'); } } picker.format = picker.options.format; localeData = moment().localeData(); if (!picker.format) { picker.format = (picker.options.pickDate ? localeData.longDateFormat('L') : ''); if (picker.options.pickDate && picker.options.pickTime) { picker.format += ' '; } picker.format += (picker.options.pickTime ? localeData.longDateFormat('LT') : ''); if (picker.options.useSeconds) { if (localeData.longDateFormat('LT').indexOf(' A') !== -1) { picker.format = picker.format.split(' A')[0] + ':ss A'; } else { picker.format += ':ss'; } } } picker.use24hours = (picker.format.toLowerCase().indexOf('a') < 0 && picker.format.indexOf('h') < 0); if (picker.component) { icon = picker.component.find('span'); } if (picker.options.pickTime) { if (icon) { icon.addClass(picker.options.icons.time); } } if (picker.options.pickDate) { if (icon) { icon.removeClass(picker.options.icons.time); icon.addClass(picker.options.icons.date); } } picker.options.widgetParent = typeof picker.options.widgetParent === 'string' && picker.options.widgetParent || picker.element.parents().filter(function () { return 'scroll' === $(this).css('overflow-y'); }).get(0) || 'body'; picker.widget = $(getTemplate()).appendTo(picker.options.widgetParent); picker.minViewMode = picker.options.minViewMode || 0; if (typeof picker.minViewMode === 'string') { switch (picker.minViewMode) { case 'months': picker.minViewMode = 1; break; case 'years': picker.minViewMode = 2; break; default: picker.minViewMode = 0; break; } } picker.viewMode = picker.options.viewMode || 0; if (typeof picker.viewMode === 'string') { switch (picker.viewMode) { case 'months': picker.viewMode = 1; break; case 'years': picker.viewMode = 2; break; default: picker.viewMode = 0; break; } } picker.viewMode = Math.max(picker.viewMode, picker.minViewMode); picker.options.disabledDates = indexGivenDates(picker.options.disabledDates); picker.options.enabledDates = indexGivenDates(picker.options.enabledDates); picker.startViewMode = picker.viewMode; picker.setMinDate(picker.options.minDate); picker.setMaxDate(picker.options.maxDate); fillDow(); fillMonths(); fillHours(); fillMinutes(); fillSeconds(); update(); showMode(); if (!getPickerInput().prop('disabled')) { attachDatePickerEvents(); } if (picker.options.defaultDate !== '' && getPickerInput().val() === '') { picker.setValue(picker.options.defaultDate); } if (picker.options.minuteStepping !== 1) { rInterval = picker.options.minuteStepping; picker.date.minutes((Math.round(picker.date.minutes() / rInterval) * rInterval) % 60).seconds(0); } }, getPickerInput = function () { var input; if (picker.isInput) { return picker.element; } input = picker.element.find('.datepickerinput'); if (input.size() === 0) { input = picker.element.find('input'); } else if (!input.is('input')) { throw new Error('CSS class "datepickerinput" cannot be applied to non input element'); } return input; }, dataToOptions = function () { var eData; if (picker.element.is('input')) { eData = picker.element.data(); } else { eData = picker.element.find('input').data(); } if (eData.dateFormat !== undefined) { picker.options.format = eData.dateFormat; } if (eData.datePickdate !== undefined) { picker.options.pickDate = eData.datePickdate; } if (eData.datePicktime !== undefined) { picker.options.pickTime = eData.datePicktime; } if (eData.dateUseminutes !== undefined) { picker.options.useMinutes = eData.dateUseminutes; } if (eData.dateUseseconds !== undefined) { picker.options.useSeconds = eData.dateUseseconds; } if (eData.dateUsecurrent !== undefined) { picker.options.useCurrent = eData.dateUsecurrent; } if (eData.calendarWeeks !== undefined) { picker.options.calendarWeeks = eData.calendarWeeks; } if (eData.dateMinutestepping !== undefined) { picker.options.minuteStepping = eData.dateMinutestepping; } if (eData.dateMindate !== undefined) { picker.options.minDate = eData.dateMindate; } if (eData.dateMaxdate !== undefined) { picker.options.maxDate = eData.dateMaxdate; } if (eData.dateShowtoday !== undefined) { picker.options.showToday = eData.dateShowtoday; } if (eData.dateCollapse !== undefined) { picker.options.collapse = eData.dateCollapse; } if (eData.dateLanguage !== undefined) { picker.options.language = eData.dateLanguage; } if (eData.dateDefaultdate !== undefined) { picker.options.defaultDate = eData.dateDefaultdate; } if (eData.dateDisableddates !== undefined) { picker.options.disabledDates = eData.dateDisableddates; } if (eData.dateEnableddates !== undefined) { picker.options.enabledDates = eData.dateEnableddates; } if (eData.dateIcons !== undefined) { picker.options.icons = eData.dateIcons; } if (eData.dateUsestrict !== undefined) { picker.options.useStrict = eData.dateUsestrict; } if (eData.dateDirection !== undefined) { picker.options.direction = eData.dateDirection; } if (eData.dateSidebyside !== undefined) { picker.options.sideBySide = eData.dateSidebyside; } if (eData.dateDaysofweekdisabled !== undefined) { picker.options.daysOfWeekDisabled = eData.dateDaysofweekdisabled; } }, place = function () { var position = 'absolute', offset = picker.component ? picker.component.offset() : picker.element.offset(), $window = $(window), placePosition; picker.width = picker.component ? picker.component.outerWidth() : picker.element.outerWidth(); offset.top = offset.top + picker.element.outerHeight(); if (picker.options.direction === 'up') { placePosition = 'top'; } else if (picker.options.direction === 'bottom') { placePosition = 'bottom'; } else if (picker.options.direction === 'auto') { if (offset.top + picker.widget.height() > $window.height() + $window.scrollTop() && picker.widget.height() + picker.element.outerHeight() < offset.top) { placePosition = 'top'; } else { placePosition = 'bottom'; } } if (placePosition === 'top') { offset.top = offset.top - picker.element.outerHeight() - picker.widget.height() - 13; picker.widget.addClass('top').removeClass('bottom'); } else { offset.top += 1; picker.widget.addClass('bottom').removeClass('top'); } if (picker.options.width !== undefined) { picker.widget.width(picker.options.width); } if (picker.options.orientation === 'left') { picker.widget.addClass('left-oriented'); offset.left = offset.left - picker.widget.width() + 20; } if (isInFixed()) { position = 'fixed'; offset.top -= $window.scrollTop(); offset.left -= $window.scrollLeft(); } if ($window.width() < offset.left + picker.widget.outerWidth()) { offset.right = $window.width() - offset.left - picker.width; offset.left = 'auto'; picker.widget.addClass('pull-right'); } else { offset.right = 'auto'; picker.widget.removeClass('pull-right'); } if (placePosition === 'top') { picker.widget.css({ position: position, bottom: 'auto', top: offset.top, left: offset.left, right: offset.right }); } else { picker.widget.css({ position: position, top: offset.top, bottom: 'auto', left: offset.left, right: offset.right }); } }, notifyChange = function (oldDate, eventType) { if (moment(picker.date).isSame(moment(oldDate)) && !errored) { return; } errored = false; picker.element.trigger({ type: 'dp.change', date: moment(picker.date), oldDate: moment(oldDate) }); if (eventType !== 'change') { picker.element.change(); } }, notifyError = function (date) { errored = true; picker.element.trigger({ type: 'dp.error', date: moment(date, picker.format, picker.options.useStrict) }); }, update = function (newDate) { moment.locale(picker.options.language); var dateStr = newDate; if (!dateStr) { dateStr = getPickerInput().val(); if (dateStr) { picker.date = moment(dateStr, picker.format, picker.options.useStrict); } if (!picker.date) { picker.date = moment(); } } picker.viewDate = moment(picker.date).startOf('month'); fillDate(); fillTime(); }, fillDow = function () { moment.locale(picker.options.language); var html = $('<tr>'), weekdaysMin = moment.weekdaysMin(), i; if (picker.options.calendarWeeks === true) { html.append('<th class="cw">#</th>'); } if (moment().localeData()._week.dow === 0) { // starts on Sunday for (i = 0; i < 7; i++) { html.append('<th class="dow">' + weekdaysMin[i] + '</th>'); } } else { for (i = 1; i < 8; i++) { if (i === 7) { html.append('<th class="dow">' + weekdaysMin[0] + '</th>'); } else { html.append('<th class="dow">' + weekdaysMin[i] + '</th>'); } } } picker.widget.find('.datepicker-days thead').append(html); }, fillMonths = function () { moment.locale(picker.options.language); var html = '', i, monthsShort = moment.monthsShort(); for (i = 0; i < 12; i++) { html += '<span class="month">' + monthsShort[i] + '</span>'; } picker.widget.find('.datepicker-months td').append(html); }, fillDate = function () { if (!picker.options.pickDate) { return; } moment.locale(picker.options.language); var year = picker.viewDate.year(), month = picker.viewDate.month(), startYear = picker.options.minDate.year(), startMonth = picker.options.minDate.month(), endYear = picker.options.maxDate.year(), endMonth = picker.options.maxDate.month(), currentDate, prevMonth, nextMonth, html = [], row, clsName, i, days, yearCont, currentYear, months = moment.months(); picker.widget.find('.datepicker-days').find('.disabled').removeClass('disabled'); picker.widget.find('.datepicker-months').find('.disabled').removeClass('disabled'); picker.widget.find('.datepicker-years').find('.disabled').removeClass('disabled'); picker.widget.find('.datepicker-days th:eq(1)').text( months[month] + ' ' + year); prevMonth = moment(picker.viewDate, picker.format, picker.options.useStrict).subtract(1, 'months'); days = prevMonth.daysInMonth(); prevMonth.date(days).startOf('week'); if ((year === startYear && month <= startMonth) || year < startYear) { picker.widget.find('.datepicker-days th:eq(0)').addClass('disabled'); } if ((year === endYear && month >= endMonth) || year > endYear) { picker.widget.find('.datepicker-days th:eq(2)').addClass('disabled'); } nextMonth = moment(prevMonth).add(42, 'd'); while (prevMonth.isBefore(nextMonth)) { if (prevMonth.weekday() === moment().startOf('week').weekday()) { row = $('<tr>'); html.push(row); if (picker.options.calendarWeeks === true) { row.append('<td class="cw">' + prevMonth.week() + '</td>'); } } clsName = ''; if (prevMonth.year() < year || (prevMonth.year() === year && prevMonth.month() < month)) { clsName += ' old'; } else if (prevMonth.year() > year || (prevMonth.year() === year && prevMonth.month() > month)) { clsName += ' new'; } if (prevMonth.isSame(moment({y: picker.date.year(), M: picker.date.month(), d: picker.date.date()}))) { clsName += ' active'; } if (isInDisableDates(prevMonth, 'day') || !isInEnableDates(prevMonth)) { clsName += ' disabled'; } if (picker.options.showToday === true) { if (prevMonth.isSame(moment(), 'day')) { clsName += ' today'; } } if (picker.options.daysOfWeekDisabled) { for (i = 0; i < picker.options.daysOfWeekDisabled.length; i++) { if (prevMonth.day() === picker.options.daysOfWeekDisabled[i]) { clsName += ' disabled'; break; } } } row.append('<td class="day' + clsName + '">' + prevMonth.date() + '</td>'); currentDate = prevMonth.date(); prevMonth.add(1, 'd'); if (currentDate === prevMonth.date()) { prevMonth.add(1, 'd'); } } picker.widget.find('.datepicker-days tbody').empty().append(html); currentYear = picker.date.year(); months = picker.widget.find('.datepicker-months').find('th:eq(1)').text(year).end().find('span').removeClass('active'); if (currentYear === year) { months.eq(picker.date.month()).addClass('active'); } if (year - 1 < startYear) { picker.widget.find('.datepicker-months th:eq(0)').addClass('disabled'); } if (year + 1 > endYear) { picker.widget.find('.datepicker-months th:eq(2)').addClass('disabled'); } for (i = 0; i < 12; i++) { if ((year === startYear && startMonth > i) || (year < startYear)) { $(months[i]).addClass('disabled'); } else if ((year === endYear && endMonth < i) || (year > endYear)) { $(months[i]).addClass('disabled'); } } html = ''; year = parseInt(year / 10, 10) * 10; yearCont = picker.widget.find('.datepicker-years').find( 'th:eq(1)').text(year + '-' + (year + 9)).parents('table').find('td'); picker.widget.find('.datepicker-years').find('th').removeClass('disabled'); if (startYear > year) { picker.widget.find('.datepicker-years').find('th:eq(0)').addClass('disabled'); } if (endYear < year + 9) { picker.widget.find('.datepicker-years').find('th:eq(2)').addClass('disabled'); } year -= 1; for (i = -1; i < 11; i++) { html += '<span class="year' + (i === -1 || i === 10 ? ' old' : '') + (currentYear === year ? ' active' : '') + ((year < startYear || year > endYear) ? ' disabled' : '') + '">' + year + '</span>'; year += 1; } yearCont.html(html); }, fillHours = function () { moment.locale(picker.options.language); var table = picker.widget.find('.timepicker .timepicker-hours table'), html = '', current, i, j; table.parent().hide(); if (picker.use24hours) { current = 0; for (i = 0; i < 6; i += 1) { html += '<tr>'; for (j = 0; j < 4; j += 1) { html += '<td class="hour">' + padLeft(current.toString()) + '</td>'; current++; } html += '</tr>'; } } else { current = 1; for (i = 0; i < 3; i += 1) { html += '<tr>'; for (j = 0; j < 4; j += 1) { html += '<td class="hour">' + padLeft(current.toString()) + '</td>'; current++; } html += '</tr>'; } } table.html(html); }, fillMinutes = function () { var table = picker.widget.find('.timepicker .timepicker-minutes table'), html = '', current = 0, i, j, step = picker.options.minuteStepping; table.parent().hide(); if (step === 1) { step = 5; } for (i = 0; i < Math.ceil(60 / step / 4) ; i++) { html += '<tr>'; for (j = 0; j < 4; j += 1) { if (current < 60) { html += '<td class="minute">' + padLeft(current.toString()) + '</td>'; current += step; } else { html += '<td></td>'; } } html += '</tr>'; } table.html(html); }, fillSeconds = function () { var table = picker.widget.find('.timepicker .timepicker-seconds table'), html = '', current = 0, i, j; table.parent().hide(); for (i = 0; i < 3; i++) { html += '<tr>'; for (j = 0; j < 4; j += 1) { html += '<td class="second">' + padLeft(current.toString()) + '</td>'; current += 5; } html += '</tr>'; } table.html(html); }, fillTime = function () { if (!picker.date) { return; } var timeComponents = picker.widget.find('.timepicker span[data-time-component]'), hour = picker.date.hours(), period = picker.date.format('A'); if (!picker.use24hours) { if (hour === 0) { hour = 12; } else if (hour !== 12) { hour = hour % 12; } picker.widget.find('.timepicker [data-action=togglePeriod]').text(period); } timeComponents.filter('[data-time-component=hours]').text(padLeft(hour)); timeComponents.filter('[data-time-component=minutes]').text(padLeft(picker.date.minutes())); timeComponents.filter('[data-time-component=seconds]').text(padLeft(picker.date.second())); }, click = function (e) { e.stopPropagation(); e.preventDefault(); picker.unset = false; var target = $(e.target).closest('span, td, th'), month, year, step, day, oldDate = moment(picker.date); if (target.length === 1) { if (!target.is('.disabled')) { switch (target[0].nodeName.toLowerCase()) { case 'th': switch (target[0].className) { case 'picker-switch': showMode(1); break; case 'prev': case 'next': step = dpGlobal.modes[picker.viewMode].navStep; if (target[0].className === 'prev') { step = step * -1; } picker.viewDate.add(step, dpGlobal.modes[picker.viewMode].navFnc); fillDate(); break; } break; case 'span': if (target.is('.month')) { month = target.parent().find('span').index(target); picker.viewDate.month(month); } else { year = parseInt(target.text(), 10) || 0; picker.viewDate.year(year); } if (picker.viewMode === picker.minViewMode) { picker.date = moment({ y: picker.viewDate.year(), M: picker.viewDate.month(), d: picker.viewDate.date(), h: picker.date.hours(), m: picker.date.minutes(), s: picker.date.seconds() }); set(); notifyChange(oldDate, e.type); } showMode(-1); fillDate(); break; case 'td': if (target.is('.day')) { day = parseInt(target.text(), 10) || 1; month = picker.viewDate.month(); year = picker.viewDate.year(); if (target.is('.old')) { if (month === 0) { month = 11; year -= 1; } else { month -= 1; } } else if (target.is('.new')) { if (month === 11) { month = 0; year += 1; } else { month += 1; } } picker.date = moment({ y: year, M: month, d: day, h: picker.date.hours(), m: picker.date.minutes(), s: picker.date.seconds() } ); picker.viewDate = moment({ y: year, M: month, d: Math.min(28, day) }); fillDate(); set(); notifyChange(oldDate, e.type); } break; } } } }, actions = { incrementHours: function () { checkDate('add', 'hours', 1); }, incrementMinutes: function () { checkDate('add', 'minutes', picker.options.minuteStepping); }, incrementSeconds: function () { checkDate('add', 'seconds', 1); }, decrementHours: function () { checkDate('subtract', 'hours', 1); }, decrementMinutes: function () { checkDate('subtract', 'minutes', picker.options.minuteStepping); }, decrementSeconds: function () { checkDate('subtract', 'seconds', 1); }, togglePeriod: function () { var hour = picker.date.hours(); if (hour >= 12) { hour -= 12; } else { hour += 12; } picker.date.hours(hour); }, showPicker: function () { picker.widget.find('.timepicker > div:not(.timepicker-picker)').hide(); picker.widget.find('.timepicker .timepicker-picker').show(); }, showHours: function () { picker.widget.find('.timepicker .timepicker-picker').hide(); picker.widget.find('.timepicker .timepicker-hours').show(); }, showMinutes: function () { picker.widget.find('.timepicker .timepicker-picker').hide(); picker.widget.find('.timepicker .timepicker-minutes').show(); }, showSeconds: function () { picker.widget.find('.timepicker .timepicker-picker').hide(); picker.widget.find('.timepicker .timepicker-seconds').show(); }, selectHour: function (e) { var hour = parseInt($(e.target).text(), 10); if (!picker.use24hours) { if (picker.date.hours() >= 12) { if (hour !== 12) { hour += 12; } } else { if (hour === 12) { hour = 0; } } } picker.date.hours(hour); actions.showPicker.call(picker); }, selectMinute: function (e) { picker.date.minutes(parseInt($(e.target).text(), 10)); actions.showPicker.call(picker); }, selectSecond: function (e) { picker.date.seconds(parseInt($(e.target).text(), 10)); actions.showPicker.call(picker); } }, doAction = function (e) { var oldDate = moment(picker.date), action = $(e.currentTarget).data('action'), rv = actions[action].apply(picker, arguments); stopEvent(e); if (!picker.date) { picker.date = moment({y: 1970}); } set(); fillTime(); notifyChange(oldDate, e.type); return rv; }, stopEvent = function (e) { e.stopPropagation(); e.preventDefault(); }, keydown = function (e) { if (e.keyCode === 27) { // allow escape to hide picker picker.hide(); } }, change = function (e) { moment.locale(picker.options.language); var input = $(e.target), oldDate = moment(picker.date), newDate = moment(input.val(), picker.format, picker.options.useStrict); if (newDate.isValid() && !isInDisableDates(newDate) && isInEnableDates(newDate)) { update(); picker.setValue(newDate); notifyChange(oldDate, e.type); set(); } else { picker.viewDate = oldDate; picker.unset = true; notifyChange(oldDate, e.type); notifyError(newDate); } }, showMode = function (dir) { if (dir) { picker.viewMode = Math.max(picker.minViewMode, Math.min(2, picker.viewMode + dir)); } picker.widget.find('.datepicker > div').hide().filter('.datepicker-' + dpGlobal.modes[picker.viewMode].clsName).show(); }, attachDatePickerEvents = function () { var $this, $parent, expanded, closed, collapseData; picker.widget.on('click', '.datepicker *', $.proxy(click, this)); // this handles date picker clicks picker.widget.on('click', '[data-action]', $.proxy(doAction, this)); // this handles time picker clicks picker.widget.on('mousedown', $.proxy(stopEvent, this)); picker.element.on('keydown', $.proxy(keydown, this)); if (picker.options.pickDate && picker.options.pickTime) { picker.widget.on('click.togglePicker', '.accordion-toggle', function (e) { e.stopPropagation(); $this = $(this); $parent = $this.closest('ul'); expanded = $parent.find('.in'); closed = $parent.find('.collapse:not(.in)'); if (expanded && expanded.length) { collapseData = expanded.data('collapse'); if (collapseData && collapseData.transitioning) { return; } expanded.collapse('hide'); closed.collapse('show'); $this.find('span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date); if (picker.component) { picker.component.find('span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date); } } }); } if (picker.isInput) { picker.element.on({ 'click': $.proxy(picker.show, this), 'focus': $.proxy(picker.show, this), 'change': $.proxy(change, this), 'blur': $.proxy(picker.hide, this) }); } else { picker.element.on({ 'change': $.proxy(change, this) }, 'input'); if (picker.component) { picker.component.on('click', $.proxy(picker.show, this)); picker.component.on('mousedown', $.proxy(stopEvent, this)); } else { picker.element.on('click', $.proxy(picker.show, this)); } } }, attachDatePickerGlobalEvents = function () { $(window).on( 'resize.datetimepicker' + picker.id, $.proxy(place, this)); if (!picker.isInput) { $(document).on( 'mousedown.datetimepicker' + picker.id, $.proxy(picker.hide, this)); } }, detachDatePickerEvents = function () { picker.widget.off('click', '.datepicker *', picker.click); picker.widget.off('click', '[data-action]'); picker.widget.off('mousedown', picker.stopEvent); if (picker.options.pickDate && picker.options.pickTime) { picker.widget.off('click.togglePicker'); } if (picker.isInput) { picker.element.off({ 'focus': picker.show, 'change': change, 'click': picker.show, 'blur' : picker.hide }); } else { picker.element.off({ 'change': change }, 'input'); if (picker.component) { picker.component.off('click', picker.show); picker.component.off('mousedown', picker.stopEvent); } else { picker.element.off('click', picker.show); } } }, detachDatePickerGlobalEvents = function () { $(window).off('resize.datetimepicker' + picker.id); if (!picker.isInput) { $(document).off('mousedown.datetimepicker' + picker.id); } }, isInFixed = function () { if (picker.element) { var parents = picker.element.parents(), inFixed = false, i; for (i = 0; i < parents.length; i++) { if ($(parents[i]).css('position') === 'fixed') { inFixed = true; break; } } return inFixed; } else { return false; } }, set = function () { moment.locale(picker.options.language); var formatted = ''; if (!picker.unset) { formatted = moment(picker.date).format(picker.format); } getPickerInput().val(formatted); picker.element.data('date', formatted); if (!picker.options.pickTime) { picker.hide(); } }, checkDate = function (direction, unit, amount) { moment.locale(picker.options.language); var newDate; if (direction === 'add') { newDate = moment(picker.date); if (newDate.hours() === 23) { newDate.add(amount, unit); } newDate.add(amount, unit); } else { newDate = moment(picker.date).subtract(amount, unit); } if (isInDisableDates(moment(newDate.subtract(amount, unit))) || isInDisableDates(newDate)) { notifyError(newDate.format(picker.format)); return; } if (direction === 'add') { picker.date.add(amount, unit); } else { picker.date.subtract(amount, unit); } picker.unset = false; }, isInDisableDates = function (date, timeUnit) { moment.locale(picker.options.language); var maxDate = moment(picker.options.maxDate, picker.format, picker.options.useStrict), minDate = moment(picker.options.minDate, picker.format, picker.options.useStrict); if (timeUnit) { maxDate = maxDate.endOf(timeUnit); minDate = minDate.startOf(timeUnit); } if (date.isAfter(maxDate) || date.isBefore(minDate)) { return true; } if (picker.options.disabledDates === false) { return false; } return picker.options.disabledDates[date.format('YYYY-MM-DD')] === true; }, isInEnableDates = function (date) { moment.locale(picker.options.language); if (picker.options.enabledDates === false) { return true; } return picker.options.enabledDates[date.format('YYYY-MM-DD')] === true; }, indexGivenDates = function (givenDatesArray) { // Store given enabledDates and disabledDates as keys. // This way we can check their existence in O(1) time instead of looping through whole array. // (for example: picker.options.enabledDates['2014-02-27'] === true) var givenDatesIndexed = {}, givenDatesCount = 0, i; for (i = 0; i < givenDatesArray.length; i++) { if (moment.isMoment(givenDatesArray[i]) || givenDatesArray[i] instanceof Date) { dDate = moment(givenDatesArray[i]); } else { dDate = moment(givenDatesArray[i], picker.format, picker.options.useStrict); } if (dDate.isValid()) { givenDatesIndexed[dDate.format('YYYY-MM-DD')] = true; givenDatesCount++; } } if (givenDatesCount > 0) { return givenDatesIndexed; } return false; }, padLeft = function (string) { string = string.toString(); if (string.length >= 2) { return string; } return '0' + string; }, getTemplate = function () { var headTemplate = '<thead>' + '<tr>' + '<th class="prev">&lsaquo;</th><th colspan="' + (picker.options.calendarWeeks ? '6' : '5') + '" class="picker-switch"></th><th class="next">&rsaquo;</th>' + '</tr>' + '</thead>', contTemplate = '<tbody><tr><td colspan="' + (picker.options.calendarWeeks ? '8' : '7') + '"></td></tr></tbody>', template = '<div class="datepicker-days">' + '<table class="table-condensed">' + headTemplate + '<tbody></tbody></table>' + '</div>' + '<div class="datepicker-months">' + '<table class="table-condensed">' + headTemplate + contTemplate + '</table>' + '</div>' + '<div class="datepicker-years">' + '<table class="table-condensed">' + headTemplate + contTemplate + '</table>' + '</div>', ret = ''; if (picker.options.pickDate && picker.options.pickTime) { ret = '<div class="bootstrap-datetimepicker-widget' + (picker.options.sideBySide ? ' timepicker-sbs' : '') + (picker.use24hours ? ' usetwentyfour' : '') + ' dropdown-menu" style="z-index:99999 !important;">'; if (picker.options.sideBySide) { ret += '<div class="row">' + '<div class="col-sm-6 datepicker">' + template + '</div>' + '<div class="col-sm-6 timepicker">' + tpGlobal.getTemplate() + '</div>' + '</div>'; } else { ret += '<ul class="list-unstyled">' + '<li' + (picker.options.collapse ? ' class="collapse in"' : '') + '>' + '<div class="datepicker">' + template + '</div>' + '</li>' + '<li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="' + picker.options.icons.time + '"></span></a></li>' + '<li' + (picker.options.collapse ? ' class="collapse"' : '') + '>' + '<div class="timepicker">' + tpGlobal.getTemplate() + '</div>' + '</li>' + '</ul>'; } ret += '</div>'; return ret; } if (picker.options.pickTime) { return ( '<div class="bootstrap-datetimepicker-widget dropdown-menu">' + '<div class="timepicker">' + tpGlobal.getTemplate() + '</div>' + '</div>' ); } return ( '<div class="bootstrap-datetimepicker-widget dropdown-menu">' + '<div class="datepicker">' + template + '</div>' + '</div>' ); }, dpGlobal = { modes: [ { clsName: 'days', navFnc: 'month', navStep: 1 }, { clsName: 'months', navFnc: 'year', navStep: 1 }, { clsName: 'years', navFnc: 'year', navStep: 10 } ] }, tpGlobal = { hourTemplate: '<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>', minuteTemplate: '<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>', secondTemplate: '<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>' }; tpGlobal.getTemplate = function () { return ( '<div class="timepicker-picker">' + '<table class="table-condensed">' + '<tr>' + '<td><a href="#" class="btn" data-action="incrementHours"><span class="' + picker.options.icons.up + '"></span></a></td>' + '<td class="separator"></td>' + '<td>' + (picker.options.useMinutes ? '<a href="#" class="btn" data-action="incrementMinutes"><span class="' + picker.options.icons.up + '"></span></a>' : '') + '</td>' + (picker.options.useSeconds ? '<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="' + picker.options.icons.up + '"></span></a></td>' : '') + (picker.use24hours ? '' : '<td class="separator"></td>') + '</tr>' + '<tr>' + '<td>' + tpGlobal.hourTemplate + '</td> ' + '<td class="separator">:</td>' + '<td>' + (picker.options.useMinutes ? tpGlobal.minuteTemplate : '<span class="timepicker-minute">00</span>') + '</td> ' + (picker.options.useSeconds ? '<td class="separator">:</td><td>' + tpGlobal.secondTemplate + '</td>' : '') + (picker.use24hours ? '' : '<td class="separator"></td>' + '<td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>') + '</tr>' + '<tr>' + '<td><a href="#" class="btn" data-action="decrementHours"><span class="' + picker.options.icons.down + '"></span></a></td>' + '<td class="separator"></td>' + '<td>' + (picker.options.useMinutes ? '<a href="#" class="btn" data-action="decrementMinutes"><span class="' + picker.options.icons.down + '"></span></a>' : '') + '</td>' + (picker.options.useSeconds ? '<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="' + picker.options.icons.down + '"></span></a></td>' : '') + (picker.use24hours ? '' : '<td class="separator"></td>') + '</tr>' + '</table>' + '</div>' + '<div class="timepicker-hours" data-action="selectHour">' + '<table class="table-condensed"></table>' + '</div>' + '<div class="timepicker-minutes" data-action="selectMinute">' + '<table class="table-condensed"></table>' + '</div>' + (picker.options.useSeconds ? '<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>' : '') ); }; picker.destroy = function () { detachDatePickerEvents(); detachDatePickerGlobalEvents(); picker.widget.remove(); picker.element.removeData('DateTimePicker'); if (picker.component) { picker.component.removeData('DateTimePicker'); } }; picker.show = function (e) { if (getPickerInput().prop('disabled')) { return; } if (picker.options.useCurrent) { if (getPickerInput().val() === '') { if (picker.options.minuteStepping !== 1) { var mDate = moment(), rInterval = picker.options.minuteStepping; mDate.minutes((Math.round(mDate.minutes() / rInterval) * rInterval) % 60).seconds(0); picker.setValue(mDate.format(picker.format)); } else { picker.setValue(moment().format(picker.format)); } notifyChange('', e.type); } } // if this is a click event on the input field and picker is already open don't hide it if (e && e.type === 'click' && picker.isInput && picker.widget.hasClass('picker-open')) { return; } if (picker.widget.hasClass('picker-open')) { picker.widget.hide(); picker.widget.removeClass('picker-open'); } else { picker.widget.show(); picker.widget.addClass('picker-open'); } picker.height = picker.component ? picker.component.outerHeight() : picker.element.outerHeight(); place(); picker.element.trigger({ type: 'dp.show', date: moment(picker.date) }); attachDatePickerGlobalEvents(); if (e) { stopEvent(e); } }; picker.disable = function () { var input = getPickerInput(); if (input.prop('disabled')) { return; } input.prop('disabled', true); detachDatePickerEvents(); }; picker.enable = function () { var input = getPickerInput(); if (!input.prop('disabled')) { return; } input.prop('disabled', false); attachDatePickerEvents(); }; picker.hide = function () { // Ignore event if in the middle of a picker transition var collapse = picker.widget.find('.collapse'), i, collapseData; for (i = 0; i < collapse.length; i++) { collapseData = collapse.eq(i).data('collapse'); if (collapseData && collapseData.transitioning) { return; } } picker.widget.hide(); picker.widget.removeClass('picker-open'); picker.viewMode = picker.startViewMode; showMode(); picker.element.trigger({ type: 'dp.hide', date: moment(picker.date) }); detachDatePickerGlobalEvents(); }; picker.setValue = function (newDate) { moment.locale(picker.options.language); if (!newDate) { picker.unset = true; set(); } else { picker.unset = false; } if (!moment.isMoment(newDate)) { newDate = (newDate instanceof Date) ? moment(newDate) : moment(newDate, picker.format, picker.options.useStrict); } else { newDate = newDate.locale(picker.options.language); } if (newDate.isValid()) { picker.date = newDate; set(); picker.viewDate = moment({y: picker.date.year(), M: picker.date.month()}); fillDate(); fillTime(); } else { notifyError(newDate); } }; picker.getDate = function () { if (picker.unset) { return null; } return moment(picker.date); }; picker.setDate = function (date) { var oldDate = moment(picker.date); if (!date) { picker.setValue(null); } else { picker.setValue(date); } notifyChange(oldDate, 'function'); }; picker.setDisabledDates = function (dates) { picker.options.disabledDates = indexGivenDates(dates); if (picker.viewDate) { update(); } }; picker.setEnabledDates = function (dates) { picker.options.enabledDates = indexGivenDates(dates); if (picker.viewDate) { update(); } }; picker.setMaxDate = function (date) { if (date === undefined) { return; } if (moment.isMoment(date) || date instanceof Date) { picker.options.maxDate = moment(date); } else { picker.options.maxDate = moment(date, picker.format, picker.options.useStrict); } if (picker.viewDate) { update(); } }; picker.setMinDate = function (date) { if (date === undefined) { return; } if (moment.isMoment(date) || date instanceof Date) { picker.options.minDate = moment(date); } else { picker.options.minDate = moment(date, picker.format, picker.options.useStrict); } if (picker.viewDate) { update(); } }; init(); }; $.fn.datetimepicker = function (options) { return this.each(function () { var $this = $(this), data = $this.data('DateTimePicker'); if (!data) { $this.data('DateTimePicker', new DateTimePicker(this, options)); } }); }; $.fn.datetimepicker.defaults = { format: false, pickDate: true, pickTime: true, useMinutes: true, useSeconds: false, useCurrent: true, calendarWeeks: false, minuteStepping: 1, minDate: moment({y: 1900}), maxDate: moment().add(100, 'y'), showToday: true, collapse: true, language: moment.locale(), defaultDate: '', disabledDates: false, enabledDates: false, icons: {}, useStrict: false, direction: 'auto', sideBySide: false, daysOfWeekDisabled: [], widgetParent: false }; }));
'use strict'; var _ = require('lodash'); var Address = require('./address'); var Base58Check = require('./encoding/base58check'); var BN = require('./crypto/bn'); var JSUtil = require('./util/js'); var Networks = require('./networks'); var Point = require('./crypto/point'); var PublicKey = require('./publickey'); var Random = require('./crypto/random'); var $ = require('./util/preconditions'); /** * Instantiate a PrivateKey from a BN, Buffer and WIF. * * @example * ```javascript * // generate a new random key * var key = PrivateKey(); * * // get the associated address * var address = key.toAddress(); * * // encode into wallet export format * var exported = key.toWIF(); * * // instantiate from the exported (and saved) private key * var imported = PrivateKey.fromWIF(exported); * ``` * * @param {string} data - The encoded data in various formats * @param {Network|string=} network - a {@link Network} object, or a string with the network name * @returns {PrivateKey} A new valid instance of an PrivateKey * @constructor */ function PrivateKey(data, network) { /* jshint maxstatements: 20 */ /* jshint maxcomplexity: 8 */ if (!(this instanceof PrivateKey)) { return new PrivateKey(data, network); } if (data instanceof PrivateKey) { return data; } var info = this._classifyArguments(data, network); // validation if (!info.bn || info.bn.cmp(new BN(0)) === 0){ throw new TypeError('Number can not be equal to zero, undefined, null or false'); } if (!info.bn.lt(Point.getN())) { throw new TypeError('Number must be less than N'); } if (typeof(info.network) === 'undefined') { throw new TypeError('Must specify the network ("main" or "testnet")'); } JSUtil.defineImmutable(this, { bn: info.bn, compressed: info.compressed, network: info.network }); Object.defineProperty(this, 'publicKey', { configurable: false, enumerable: true, get: this.toPublicKey.bind(this) }); return this; }; /** * Internal helper to instantiate PrivateKey internal `info` object from * different kinds of arguments passed to the constructor. * * @param {*} data * @param {Network|string=} network - a {@link Network} object, or a string with the network name * @return {Object} */ PrivateKey.prototype._classifyArguments = function(data, network) { /* jshint maxcomplexity: 10 */ var info = { compressed: true, network: network ? Networks.get(network) : Networks.defaultNetwork }; // detect type of data if (_.isUndefined(data) || _.isNull(data)){ info.bn = PrivateKey._getRandomBN(); } else if (data instanceof BN) { info.bn = data; } else if (data instanceof Buffer || data instanceof Uint8Array) { info = PrivateKey._transformBuffer(data, network); } else if (data.bn && data.network){ info = PrivateKey._transformObject(data); } else if (!network && Networks.get(data)) { info.bn = PrivateKey._getRandomBN(); info.network = Networks.get(data); } else if (typeof(data) === 'string'){ if (JSUtil.isHexa(data)) { info.bn = new BN(new Buffer(data, 'hex')); } else { info = PrivateKey._transformWIF(data, network); } } else { throw new TypeError('First argument is an unrecognized data type.'); } return info; }; /** * Internal function to get a random Big Number (BN) * * @returns {BN} A new randomly generated BN * @private */ PrivateKey._getRandomBN = function(){ var condition; var bn; do { var privbuf = Random.getRandomBuffer(32); bn = BN.fromBuffer(privbuf); condition = bn.lt(Point.getN()); } while (!condition); return bn; }; /** * Internal function to transform a WIF Buffer into a private key * * @param {Buffer} buf - An WIF string * @param {Network|string=} network - a {@link Network} object, or a string with the network name * @returns {Object} An object with keys: bn, network and compressed * @private */ PrivateKey._transformBuffer = function(buf, network) { var info = {}; if (buf.length === 32) { return PrivateKey._transformBNBuffer(buf, network); } info.network = Networks.get(buf[0], 'privatekey'); if (!info.network) { throw new Error('Invalid network'); } if (network && info.network !== Networks.get(network)) { throw new TypeError('Private key network mismatch'); } if (buf.length === 1 + 32 + 1 && buf[1 + 32 + 1 - 1] === 1) { info.compressed = true; } else if (buf.length === 1 + 32) { info.compressed = false; } else { throw new Error('Length of buffer must be 33 (uncompressed) or 34 (compressed)'); } info.bn = BN.fromBuffer(buf.slice(1, 32 + 1)); return info; }; /** * Internal function to transform a BN buffer into a private key * * @param {Buffer} buf * @param {Network|string=} network - a {@link Network} object, or a string with the network name * @returns {object} an Object with keys: bn, network, and compressed * @private */ PrivateKey._transformBNBuffer = function(buf, network) { var info = {}; info.network = Networks.get(network) || Networks.defaultNetwork; info.bn = BN.fromBuffer(buf); info.compressed = false; return info; }; /** * Internal function to transform a WIF string into a private key * * @param {string} buf - An WIF string * @returns {Object} An object with keys: bn, network and compressed * @private */ PrivateKey._transformWIF = function(str, network) { return PrivateKey._transformBuffer(Base58Check.decode(str), network); }; /** * Instantiate a PrivateKey from a Buffer with the DER or WIF representation * * @param {Buffer} arg * @param {Network} network * @return {PrivateKey} */ PrivateKey.fromBuffer = function(arg, network) { return new PrivateKey(arg, network); }; /** * Internal function to transform a JSON string on plain object into a private key * return this. * * @param {string} json - A JSON string or plain object * @returns {Object} An object with keys: bn, network and compressed * @private */ PrivateKey._transformObject = function(json) { var bn = new BN(json.bn, 'hex'); var network = Networks.get(json.network); return { bn: bn, network: network, compressed: json.compressed }; }; /** * Instantiate a PrivateKey from a WIF string * * @param {string} str - The WIF encoded private key string * @returns {PrivateKey} A new valid instance of PrivateKey */ PrivateKey.fromString = PrivateKey.fromWIF = function(str) { $.checkArgument(_.isString(str), 'First argument is expected to be a string.'); return new PrivateKey(str); }; /** * Instantiate a PrivateKey from a plain JavaScript object * * @param {Object} obj - The output from privateKey.toObject() */ PrivateKey.fromObject = function(obj) { $.checkArgument(_.isObject(obj), 'First argument is expected to be an object.'); return new PrivateKey(obj); }; /** * Instantiate a PrivateKey from random bytes * * @param {string=} network - Either "livenet" or "testnet" * @returns {PrivateKey} A new valid instance of PrivateKey */ PrivateKey.fromRandom = function(network) { var bn = PrivateKey._getRandomBN(); return new PrivateKey(bn, network); }; /** * Check if there would be any errors when initializing a PrivateKey * * @param {string} data - The encoded data in various formats * @param {string=} network - Either "livenet" or "testnet" * @returns {null|Error} An error if exists */ PrivateKey.getValidationError = function(data, network) { var error; try { /* jshint nonew: false */ new PrivateKey(data, network); } catch (e) { error = e; } return error; }; /** * Check if the parameters are valid * * @param {string} data - The encoded data in various formats * @param {string=} network - Either "livenet" or "testnet" * @returns {Boolean} If the private key is would be valid */ PrivateKey.isValid = function(data, network){ if (!data) { return false; } return !PrivateKey.getValidationError(data, network); }; /** * Will output the PrivateKey encoded as hex string * * @returns {string} */ PrivateKey.prototype.toString = function() { return this.toBuffer().toString('hex'); }; /** * Will output the PrivateKey to a WIF string * * @returns {string} A WIP representation of the private key */ PrivateKey.prototype.toWIF = function() { var network = this.network; var compressed = this.compressed; var buf; if (compressed) { buf = Buffer.concat([new Buffer([network.privatekey]), this.bn.toBuffer({size: 32}), new Buffer([0x01])]); } else { buf = Buffer.concat([new Buffer([network.privatekey]), this.bn.toBuffer({size: 32})]); } return Base58Check.encode(buf); }; /** * Will return the private key as a BN instance * * @returns {BN} A BN instance of the private key */ PrivateKey.prototype.toBigNumber = function(){ return this.bn; }; /** * Will return the private key as a BN buffer * * @returns {Buffer} A buffer of the private key */ PrivateKey.prototype.toBuffer = function(){ return this.bn.toBuffer(); }; /** * Will return the corresponding public key * * @returns {PublicKey} A public key generated from the private key */ PrivateKey.prototype.toPublicKey = function(){ if (!this._pubkey) { this._pubkey = PublicKey.fromPrivateKey(this); } return this._pubkey; }; /** * Will return an address for the private key * @param {Network=} network - optional parameter specifying * the desired network for the address * * @returns {Address} An address generated from the private key */ PrivateKey.prototype.toAddress = function(network) { var pubkey = this.toPublicKey(); return Address.fromPublicKey(pubkey, network || this.network); }; /** * @returns {Object} A plain object representation */ PrivateKey.prototype.toObject = PrivateKey.prototype.toJSON = function toObject() { return { bn: this.bn.toString('hex'), compressed: this.compressed, network: this.network.toString() }; }; /** * Will return a string formatted for the console * * @returns {string} Private key */ PrivateKey.prototype.inspect = function() { var uncompressed = !this.compressed ? ', uncompressed' : ''; return '<PrivateKey: ' + this.toString() + ', network: ' + this.network + uncompressed + '>'; }; module.exports = PrivateKey;
import PropTypes from 'prop-types'; import React from 'react'; import ReactDataTable from '../data-table'; import MessageHandler from '../../../message.ts'; import ThemeHandler from '../../../theme.ts'; const Container = ({ serviceApi, serviceEndpointPath, action }) => { // eslint-disable-next-line no-unused-vars const themeHandler = new ThemeHandler(); const messageHandler = new MessageHandler(); const openServiceApiUrl = () => { messageHandler.postMessage({ command: 'open-service-api-url' }); }; const importFile = async () => { return messageHandler.postMessage({ command: 'import-file' }); }; const exportFile = async (fileContents, fileType) => { return messageHandler.postMessage({ command: 'export-file', args: { fileContents, fileType } }); }; const receiveData = async () => { return messageHandler.postMessage({ command: 'receive-data' }); }; const sendData = async (data) => { return messageHandler.postMessage({ command: 'send-data', args: { data } }); }; return ( <div className="main-container"> <ReactDataTable openServiceApiUrl={openServiceApiUrl} importFile={importFile} exportFile={exportFile} receiveData={receiveData} sendData={sendData} serviceApi={serviceApi} serviceEndpointPath={serviceEndpointPath} action={action} initialData={[]} /> </div> ); }; Container.propTypes = { serviceApi: PropTypes.object.isRequired, serviceEndpointPath: PropTypes.string.isRequired, action: PropTypes.string.isRequired }; export default Container;
const common = require('./webpack.config.common.js'); const createApp = common.createApp; module.exports = [ createApp('viewer', 'molstar') ];
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-mouseenter', function (Y, NAME) { /** * <p>Adds subscription and delegation support for mouseenter and mouseleave * events. Unlike mouseover and mouseout, these events aren't fired from child * elements of a subscribed node.</p> * * <p>This avoids receiving three mouseover notifications from a setup like</p> * * <pre><code>div#container > p > a[href]</code></pre> * * <p>where</p> * * <pre><code>Y.one('#container').on('mouseover', callback)</code></pre> * * <p>When the mouse moves over the link, one mouseover event is fired from * #container, then when the mouse moves over the p, another mouseover event is * fired and bubbles to #container, causing a second notification, and finally * when the mouse moves over the link, a third mouseover event is fired and * bubbles to #container for a third notification.</p> * * <p>By contrast, using mouseenter instead of mouseover, the callback would be * executed only once when the mouse moves over #container.</p> * * @module event * @submodule event-mouseenter */ var domEventProxies = Y.Env.evt.dom_wrappers, contains = Y.DOM.contains, toArray = Y.Array, noop = function () {}, config = { proxyType: "mouseover", relProperty: "fromElement", _notify: function (e, property, notifier) { var el = this._node, related = e.relatedTarget || e[property]; if (el !== related && !contains(el, related)) { notifier.fire(new Y.DOMEventFacade(e, el, domEventProxies['event:' + Y.stamp(el) + e.type])); } }, on: function (node, sub, notifier) { var el = Y.Node.getDOMNode(node), args = [ this.proxyType, this._notify, el, null, this.relProperty, notifier]; sub.handle = Y.Event._attach(args, { facade: false }); // node.on(this.proxyType, notify, null, notifier); }, detach: function (node, sub) { sub.handle.detach(); }, delegate: function (node, sub, notifier, filter) { var el = Y.Node.getDOMNode(node), args = [ this.proxyType, noop, el, null, notifier ]; sub.handle = Y.Event._attach(args, { facade: false }); sub.handle.sub.filter = filter; sub.handle.sub.relProperty = this.relProperty; sub.handle.sub._notify = this._filterNotify; }, _filterNotify: function (thisObj, args, ce) { args = args.slice(); if (this.args) { args.push.apply(args, this.args); } var currentTarget = Y.delegate._applyFilter(this.filter, args, ce), related = args[0].relatedTarget || args[0][this.relProperty], e, i, len, ret, ct; if (currentTarget) { currentTarget = toArray(currentTarget); for (i = 0, len = currentTarget.length && (!e || !e.stopped); i < len; ++i) { ct = currentTarget[0]; if (!contains(ct, related)) { if (!e) { e = new Y.DOMEventFacade(args[0], ct, ce); e.container = Y.one(ce.el); } e.currentTarget = Y.one(ct); // TODO: where is notifier? args? this.notifier? ret = args[1].fire(e); if (ret === false) { break; } } } } return ret; }, detachDelegate: function (node, sub) { sub.handle.detach(); } }; Y.Event.define("mouseenter", config, true); Y.Event.define("mouseleave", Y.merge(config, { proxyType: "mouseout", relProperty: "toElement" }), true); }, '3.17.0', {"requires": ["event-synthetic"]});
"use strict"; var electron = require('electron'); // Module to control application life. var app = electron.app; // Module to create native browser window. var BrowserWindow = electron.BrowserWindow; // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScript object is garbage collected. var win; function createWindow() { // Create the browser window. win = new BrowserWindow({ width: 800, height: 600 }); //get rid of the default electron menubar win.setMenu(null); // and load the index.html of the app. win.loadURL("file://" + __dirname + "/index.html"); // Open the DevTools. //win.webContents.openDevTools(); // Emitted when the window is closed. win.on('closed', function () { // Dereference the window object, usually you would store windows // in an array if your app supports multi windows, this is the time // when you should delete the corresponding element. win = null; }); } // This method will be called when Electron has finished // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. app.on('ready', createWindow); // Quit when all windows are closed. app.on('window-all-closed', function () { // On OS X it is common for applications and their menu bar // to stay active until the user quits explicitly with Cmd + Q if (process.platform !== 'darwin') { app.quit(); } }); app.on('activate', function () { // On OS X it's common to re-create a window in the app when the // dock icon is clicked and there are no other windows open. if (win === null) { createWindow(); } }); // In this file you can include the rest of your app's specific main process // code. You can also put them in separate files and require them here. electron.ipcMain.on('show-console', function (e) { //console.log("show-consolle called"); win.webContents.openDevTools(); }); electron.ipcMain.on('quit', function () { console.log("quit request"); app.quit(); }); //# sourceMappingURL=app.js.map
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{4054:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.icon=void 0,n(9),n(5),n(6),n(7);var r=function(e){return e&&e.__esModule?e:{default:e}}(n(0));function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t){if(null==e)return{};var n,r,l=function(e,t){if(null==e)return{};var n,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var a=function(e){var t=e.title,n=o(e,["title"]);return r.default.createElement("svg",l({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},n),r.default.createElement("title",null,t),r.default.createElement("path",{d:"M11.276 29l.594 2H0l7.621-14.29.811 2.73L3.333 29h7.943zM28.92 31l-4.987-16.598A16 16 0 008.688 3l1.8 6H8.4L6 1h2.607a18 18 0 0117.241 12.828L31 31h-2.08z"}),r.default.createElement("path",{className:"euiIcon__fillSecondary",d:"M12.037 14.02L16.492 29h6.827l-2.333-7.849a10 10 0 00-8.949-7.13zM9.35 12h2.05a12 12 0 0111.503 8.581L26 31H15L9.35 12z"}))},i=a;t.icon=i,a.__docgenInfo={description:"",methods:[],displayName:"EuiIconAppCode"}}}]); //# sourceMappingURL=icon.app_code-js.min.js.map
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=434)}({434:function(e,t,r){"use strict";r.r(t);r(435)},435:function(e,t,r){}});
Clazz.declarePackage ("JS"); Clazz.load (["JU.M4"], "JS.SymmetryOperation", ["java.lang.Float", "JU.Matrix", "$.P3", "$.PT", "$.SB", "$.V3", "JU.Logger", "$.Parser"], function () { c$ = Clazz.decorateAsClass (function () { this.xyzOriginal = null; this.xyz = null; this.doNormalize = true; this.isFinalized = false; this.opId = 0; this.centering = null; this.atomTest = null; this.myLabels = null; this.modDim = 0; this.linearRotTrans = null; this.rsvs = null; this.isBio = false; this.sigma = null; this.index = 0; this.subsystemCode = null; this.timeReversal = 0; this.unCentered = false; this.isCenteringOp = false; this.magOp = 3.4028235E38; Clazz.instantialize (this, arguments); }, JS, "SymmetryOperation", JU.M4); Clazz.defineMethod (c$, "setSigma", function (subsystemCode, sigma) { this.subsystemCode = subsystemCode; this.sigma = sigma; }, "~S,JU.Matrix"); Clazz.overrideConstructor (c$, function (op, atoms, atomIndex, countOrId, doNormalize) { this.doNormalize = doNormalize; if (op == null) { this.opId = countOrId; return; }this.xyzOriginal = op.xyzOriginal; this.xyz = op.xyz; this.opId = op.opId; this.modDim = op.modDim; this.myLabels = op.myLabels; this.index = op.index; this.linearRotTrans = op.linearRotTrans; this.sigma = op.sigma; this.subsystemCode = op.subsystemCode; this.timeReversal = op.timeReversal; this.setMatrix (false); if (!op.isFinalized) this.doFinalize (); if (doNormalize && this.sigma == null) this.setOffset (atoms, atomIndex, countOrId); }, "JS.SymmetryOperation,~A,~N,~N,~B"); Clazz.defineMethod (c$, "setGamma", function (isReverse) { var n = 3 + this.modDim; var a = (this.rsvs = new JU.Matrix (null, n + 1, n + 1)).getArray (); var t = Clazz.newDoubleArray (n, 0); var pt = 0; for (var i = 0; i < n; i++) { for (var j = 0; j < n; j++) a[i][j] = this.linearRotTrans[pt++]; t[i] = (isReverse ? -1 : 1) * this.linearRotTrans[pt++]; } a[n][n] = 1; if (isReverse) this.rsvs = this.rsvs.inverse (); for (var i = 0; i < n; i++) a[i][n] = t[i]; a = this.rsvs.getSubmatrix (0, 0, 3, 3).getArray (); for (var i = 0; i < 3; i++) for (var j = 0; j < 4; j++) this.setElement (i, j, (j < 3 ? a[i][j] : t[i])); this.setElement (3, 3, 1); }, "~B"); Clazz.defineMethod (c$, "doFinalize", function () { this.m03 /= 12; this.m13 /= 12; this.m23 /= 12; if (this.modDim > 0) { var a = this.rsvs.getArray (); for (var i = a.length - 1; --i >= 0; ) a[i][3 + this.modDim] /= 12; }this.isFinalized = true; }); Clazz.defineMethod (c$, "getXyz", function (normalized) { return (normalized && this.modDim == 0 || this.xyzOriginal == null ? this.xyz : this.xyzOriginal); }, "~B"); Clazz.defineMethod (c$, "newPoint", function (atom1, atom2, x, y, z) { this.rotTrans2 (atom1, atom2); atom2.add3 (x, y, z); }, "JU.P3,JU.P3,~N,~N,~N"); Clazz.defineMethod (c$, "dumpInfo", function () { return "\n" + this.xyz + "\ninternal matrix representation:\n" + this.toString (); }); c$.dumpSeitz = Clazz.defineMethod (c$, "dumpSeitz", function (s, isCanonical) { var sb = new JU.SB (); var r = Clazz.newFloatArray (4, 0); for (var i = 0; i < 3; i++) { s.getRow (i, r); sb.append ("[\t"); for (var j = 0; j < 3; j++) sb.appendI (Clazz.floatToInt (r[j])).append ("\t"); sb.append (JS.SymmetryOperation.twelfthsOf (isCanonical ? (Clazz.floatToInt (r[3]) + 12) % 12 : Clazz.floatToInt (r[3]))).append ("\t]\n"); } return sb.toString (); }, "JU.M4,~B"); Clazz.defineMethod (c$, "setMatrixFromXYZ", function (xyz, modDim, allowScaling) { if (xyz == null) return false; this.xyzOriginal = xyz; xyz = xyz.toLowerCase (); this.setModDim (modDim); var isReverse = (xyz.startsWith ("!")); if (isReverse) xyz = xyz.substring (1); if (xyz.indexOf ("xyz matrix:") == 0) { this.xyz = xyz; JU.Parser.parseStringInfestedFloatArray (xyz, null, this.linearRotTrans); return this.setFromMatrix (null, isReverse); }if (xyz.indexOf ("[[") == 0) { xyz = xyz.$replace ('[', ' ').$replace (']', ' ').$replace (',', ' '); JU.Parser.parseStringInfestedFloatArray (xyz, null, this.linearRotTrans); for (var i = this.linearRotTrans.length; --i >= 0; ) if (Float.isNaN (this.linearRotTrans[i])) return false; this.setMatrix (isReverse); this.isFinalized = true; this.isBio = (xyz.indexOf ("bio") >= 0); this.xyz = (this.isBio ? this.toString () : JS.SymmetryOperation.getXYZFromMatrix (this, false, false, false)); return true; }if (modDim == 0 && xyz.indexOf ("x4") >= 0) { for (var i = 14; --i >= 4; ) { if (xyz.indexOf ("x" + i) >= 0) { this.setModDim (i - 3); break; }} }if (xyz.endsWith ("m")) { this.timeReversal = (xyz.indexOf ("-m") >= 0 ? -1 : 1); allowScaling = true; }var strOut = JS.SymmetryOperation.getMatrixFromString (this, xyz, this.linearRotTrans, allowScaling); if (strOut == null) return false; this.setMatrix (isReverse); this.xyz = (isReverse ? JS.SymmetryOperation.getXYZFromMatrix (this, true, false, false) : strOut); if (this.timeReversal != 0) this.xyz += (this.timeReversal == 1 ? ",m" : ",-m"); if (JU.Logger.debugging) JU.Logger.debug ("" + this); return true; }, "~S,~N,~B"); Clazz.defineMethod (c$, "setModDim", function (dim) { var n = (dim + 4) * (dim + 4); this.modDim = dim; if (dim > 0) this.myLabels = JS.SymmetryOperation.labelsXn; this.linearRotTrans = Clazz.newFloatArray (n, 0); }, "~N"); Clazz.defineMethod (c$, "setMatrix", function (isReverse) { if (this.linearRotTrans.length > 16) { this.setGamma (isReverse); } else { this.setA (this.linearRotTrans); if (isReverse) { var p3 = JU.P3.new3 (this.m03, this.m13, this.m23); this.invertM (this); this.rotate (p3); p3.scale (-1); this.setTranslation (p3); }}}, "~B"); Clazz.defineMethod (c$, "setFromMatrix", function (offset, isReverse) { var v = 0; var pt = 0; this.myLabels = (this.modDim == 0 ? JS.SymmetryOperation.labelsXYZ : JS.SymmetryOperation.labelsXn); var rowPt = 0; var n = 3 + this.modDim; for (var i = 0; rowPt < n; i++) { if (Float.isNaN (this.linearRotTrans[i])) return false; v = this.linearRotTrans[i]; if (Math.abs (v) < 0.00001) v = 0; var isTrans = ((i + 1) % (n + 1) == 0); if (isTrans) { if (offset != null) { v /= 12; if (pt < offset.length) v += offset[pt++]; }v = JS.SymmetryOperation.normalizeTwelfths ((v < 0 ? -1 : 1) * Math.abs (v * 12) / 12, this.doNormalize); rowPt++; }this.linearRotTrans[i] = v; } this.linearRotTrans[this.linearRotTrans.length - 1] = 1; this.setMatrix (isReverse); this.isFinalized = (offset == null); this.xyz = JS.SymmetryOperation.getXYZFromMatrix (this, true, false, false); return true; }, "~A,~B"); c$.getMatrixFromString = Clazz.defineMethod (c$, "getMatrixFromString", function (op, xyz, linearRotTrans, allowScaling) { var isDenominator = false; var isDecimal = false; var isNegative = false; var modDim = (op == null ? 0 : op.modDim); var nRows = 4 + modDim; var doNormalize = (op != null && op.doNormalize); var dimOffset = (modDim > 0 ? 3 : 0); linearRotTrans[linearRotTrans.length - 1] = 1; var transPt = xyz.indexOf (';') + 1; if (transPt != 0) { allowScaling = true; if (transPt == xyz.length) xyz += "0,0,0"; }var rotPt = -1; var myLabels = (op == null || modDim == 0 ? null : op.myLabels); if (myLabels == null) myLabels = JS.SymmetryOperation.labelsXYZ; xyz = xyz.toLowerCase () + ","; if (modDim > 0) xyz = JS.SymmetryOperation.replaceXn (xyz, modDim + 3); var xpt = 0; var tpt0 = 0; var rowPt = 0; var ch; var iValue = 0; var decimalMultiplier = 1; var strT = ""; var strOut = ""; for (var i = 0; i < xyz.length; i++) { switch (ch = xyz.charAt (i)) { case ';': break; case '\'': case ' ': case '{': case '}': case '!': continue; case '-': isNegative = true; continue; case '+': isNegative = false; continue; case '/': isDenominator = true; continue; case 'x': case 'y': case 'z': case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': tpt0 = rowPt * nRows; var ipt = (ch >= 'x' ? ch.charCodeAt (0) - 120 : ch.charCodeAt (0) - 97 + dimOffset); xpt = tpt0 + ipt; var val = (isNegative ? -1 : 1); if (allowScaling && iValue != 0) { linearRotTrans[xpt] = iValue; val = Clazz.floatToInt (iValue); iValue = 0; } else { linearRotTrans[xpt] = val; }strT += JS.SymmetryOperation.plusMinus (strT, val, myLabels[ipt]); break; case ',': if (transPt != 0) { if (transPt > 0) { rotPt = i; i = transPt - 1; transPt = -i; iValue = 0; continue; }transPt = i + 1; i = rotPt; }iValue = JS.SymmetryOperation.normalizeTwelfths (iValue, doNormalize); linearRotTrans[tpt0 + nRows - 1] = iValue; strT += JS.SymmetryOperation.xyzFraction (iValue, false, true); strOut += (strOut === "" ? "" : ",") + strT; if (rowPt == nRows - 2) return strOut; iValue = 0; strT = ""; if (rowPt++ > 2 && modDim == 0) { JU.Logger.warn ("Symmetry Operation? " + xyz); return null; }break; case '.': isDecimal = true; decimalMultiplier = 1; continue; case '0': if (!isDecimal && (isDenominator || !allowScaling)) continue; default: var ich = ch.charCodeAt (0) - 48; if (isDecimal && ich >= 0 && ich <= 9) { decimalMultiplier /= 10; if (iValue < 0) isNegative = true; iValue += decimalMultiplier * ich * (isNegative ? -1 : 1); continue; }if (ich >= 0 && ich <= 9) { if (isDenominator) { if (iValue == 0) { linearRotTrans[xpt] /= ich; } else { iValue /= ich; }} else { iValue = iValue * 10 + (isNegative ? -1 : 1) * ich; isNegative = false; }} else { JU.Logger.warn ("symmetry character?" + ch); }} isDecimal = isDenominator = isNegative = false; } return null; }, "JS.SymmetryOperation,~S,~A,~B"); c$.replaceXn = Clazz.defineMethod (c$, "replaceXn", function (xyz, n) { for (var i = n; --i >= 0; ) xyz = JU.PT.rep (xyz, JS.SymmetryOperation.labelsXn[i], JS.SymmetryOperation.labelsXnSub[i]); return xyz; }, "~S,~N"); c$.xyzFraction = Clazz.defineMethod (c$, "xyzFraction", function (n12ths, allPositive, halfOrLess) { var n = n12ths; if (allPositive) { while (n < 0) n += 12; } else if (halfOrLess) { while (n > 6) n -= 12; while (n < -6.0) n += 12; }var s = JS.SymmetryOperation.twelfthsOf (n); return (s.charAt (0) == '0' ? "" : n > 0 ? "+" + s : s); }, "~N,~B,~B"); c$.twelfthsOf = Clazz.defineMethod (c$, "twelfthsOf", function (n12ths) { var str = ""; if (n12ths < 0) { n12ths = -n12ths; str = "-"; }var m = 12; var n = Math.round (n12ths); if (Math.abs (n - n12ths) > 0.01) { var f = n12ths / 12; var max = 20; for (m = 5; m < max; m++) { var fm = f * m; n = Math.round (fm); if (Math.abs (n - fm) < 0.01) break; } if (m == max) return str + f; } else { if (n == 12) return str + "1"; if (n < 12) return str + JS.SymmetryOperation.twelfths[n % 12]; switch (n % 12) { case 0: return "" + Clazz.doubleToInt (n / 12); case 2: case 10: m = 6; break; case 3: case 9: m = 4; break; case 4: case 8: m = 3; break; case 6: m = 2; break; default: break; } n = (Clazz.doubleToInt (n * m / 12)); }return str + n + "/" + m; }, "~N"); c$.plusMinus = Clazz.defineMethod (c$, "plusMinus", function (strT, x, sx) { return (x == 0 ? "" : (x < 0 ? "-" : strT.length == 0 ? "" : "+") + (x == 1 || x == -1 ? "" : "" + Clazz.floatToInt (Math.abs (x))) + sx); }, "~S,~N,~S"); c$.normalizeTwelfths = Clazz.defineMethod (c$, "normalizeTwelfths", function (iValue, doNormalize) { iValue *= 12; if (doNormalize) { while (iValue > 6) iValue -= 12; while (iValue <= -6) iValue += 12; }return iValue; }, "~N,~B"); c$.getXYZFromMatrix = Clazz.defineMethod (c$, "getXYZFromMatrix", function (mat, is12ths, allPositive, halfOrLess) { var str = ""; var op = (Clazz.instanceOf (mat, JS.SymmetryOperation) ? mat : null); if (op != null && op.modDim > 0) return JS.SymmetryOperation.getXYZFromRsVs (op.rsvs.getRotation (), op.rsvs.getTranslation (), is12ths); var row = Clazz.newFloatArray (4, 0); for (var i = 0; i < 3; i++) { var lpt = (i < 3 ? 0 : 3); mat.getRow (i, row); var term = ""; for (var j = 0; j < 3; j++) if (row[j] != 0) term += JS.SymmetryOperation.plusMinus (term, row[j], JS.SymmetryOperation.labelsXYZ[j + lpt]); term += JS.SymmetryOperation.xyzFraction ((is12ths ? row[3] : row[3] * 12), allPositive, halfOrLess); str += "," + term; } return str.substring (1); }, "JU.M4,~B,~B,~B"); Clazz.defineMethod (c$, "setOffset", function (atoms, atomIndex, count) { var i1 = atomIndex; var i2 = i1 + count; var x = 0; var y = 0; var z = 0; if (this.atomTest == null) this.atomTest = new JU.P3 (); for (var i = i1; i < i2; i++) { this.newPoint (atoms[i], this.atomTest, 0, 0, 0); x += this.atomTest.x; y += this.atomTest.y; z += this.atomTest.z; } while (x < -0.001 || x >= count + 0.001) { this.m03 += (x < 0 ? 1 : -1); x += (x < 0 ? count : -count); } while (y < -0.001 || y >= count + 0.001) { this.m13 += (y < 0 ? 1 : -1); y += (y < 0 ? count : -count); } while (z < -0.001 || z >= count + 0.001) { this.m23 += (z < 0 ? 1 : -1); z += (z < 0 ? count : -count); } }, "~A,~N,~N"); Clazz.defineMethod (c$, "rotateAxes", function (vectors, unitcell, ptTemp, mTemp) { var vRot = new Array (3); this.getRotationScale (mTemp); for (var i = vectors.length; --i >= 0; ) { ptTemp.setT (vectors[i]); unitcell.toFractional (ptTemp, true); mTemp.rotate (ptTemp); unitcell.toCartesian (ptTemp, true); vRot[i] = JU.V3.newV (ptTemp); } return vRot; }, "~A,JS.UnitCell,JU.P3,JU.M3"); c$.fcoord = Clazz.defineMethod (c$, "fcoord", function (p) { return JS.SymmetryOperation.fc (p.x) + " " + JS.SymmetryOperation.fc (p.y) + " " + JS.SymmetryOperation.fc (p.z); }, "JU.T3"); c$.fc = Clazz.defineMethod (c$, "fc", function (x) { var xabs = Math.abs (x); var x24 = Clazz.floatToInt (JS.SymmetryOperation.approxF (xabs * 24)); var m = (x < 0 ? "-" : ""); if (x24 % 8 != 0) return m + JS.SymmetryOperation.twelfthsOf (x24 >> 1); return (x24 == 0 ? "0" : x24 == 24 ? m + "1" : m + (Clazz.doubleToInt (x24 / 8)) + "/3"); }, "~N"); c$.approxF = Clazz.defineMethod (c$, "approxF", function (f) { return JU.PT.approx (f, 100); }, "~N"); c$.normalizeTranslation = Clazz.defineMethod (c$, "normalizeTranslation", function (operation) { operation.m03 = (Clazz.floatToInt (operation.m03) + 12) % 12; operation.m13 = (Clazz.floatToInt (operation.m13) + 12) % 12; operation.m23 = (Clazz.floatToInt (operation.m23) + 12) % 12; }, "JU.M4"); c$.getXYZFromRsVs = Clazz.defineMethod (c$, "getXYZFromRsVs", function (rs, vs, is12ths) { var ra = rs.getArray (); var va = vs.getArray (); var d = ra.length; var s = ""; for (var i = 0; i < d; i++) { s += ","; for (var j = 0; j < d; j++) { var r = ra[i][j]; if (r != 0) { s += (r < 0 ? "-" : s.endsWith (",") ? "" : "+") + (Math.abs (r) == 1 ? "" : "" + Clazz.doubleToInt (Math.abs (r))) + "x" + (j + 1); }} s += JS.SymmetryOperation.xyzFraction (Clazz.doubleToInt (va[i][0] * (is12ths ? 1 : 12)), false, true); } return JU.PT.rep (s.substring (1), ",+", ","); }, "JU.Matrix,JU.Matrix,~B"); Clazz.defineMethod (c$, "toString", function () { return (this.rsvs == null ? Clazz.superCall (this, JS.SymmetryOperation, "toString", []) : Clazz.superCall (this, JS.SymmetryOperation, "toString", []) + " " + this.rsvs.toString ()); }); Clazz.defineMethod (c$, "getSpinOp", function () { if (this.magOp == 3.4028235E38) this.magOp = this.determinant3 () * this.timeReversal; return this.magOp; }); Clazz.defineMethod (c$, "setTimeReversal", function (magRev) { this.timeReversal = magRev; if (this.xyz.indexOf ("m") >= 0) this.xyz = this.xyz.substring (0, this.xyz.indexOf ("m")); this.xyz += (magRev == 1 ? ",m" : magRev == -1 ? ",-m" : ""); }, "~N"); c$.getPrettyMatrix = Clazz.defineMethod (c$, "getPrettyMatrix", function (sb, m4) { sb.append ("[ "); var row = Clazz.newFloatArray (4, 0); for (var i = 0; i < 3; i++) { m4.getRow (i, row); sb.append ("[ ").appendI (Clazz.floatToInt (row[0])).appendC (' ').appendI (Clazz.floatToInt (row[1])).appendC (' ').appendI (Clazz.floatToInt (row[2])).appendC (' '); sb.append (JS.SymmetryOperation.twelfthsOf (row[3] * 12)).append (" ]"); } return sb.append (" ]").toString (); }, "JU.SB,JU.M4"); Clazz.defineMethod (c$, "setCentering", function (c, isFinal) { if (this.centering == null && !this.unCentered) { if (this.modDim == 0 && this.index > 1 && this.m00 == 1 && this.m11 == 1 && this.m22 == 1 && this.m01 == 0 && this.m02 == 0 && this.m10 == 0 && this.m12 == 0 && this.m20 == 0 && this.m21 == 0) { this.centering = JU.V3.new3 (this.m03, this.m13, this.m23); if (this.centering.lengthSquared () == 0) { this.unCentered = true; this.centering = null; } else if (!isFinal) this.centering.scale (0.083333336); this.isCenteringOp = true; } else { this.centering = c; }}return this.centering; }, "JU.V3,~B"); Clazz.defineStatics (c$, "twelfths", ["0", "1/12", "1/6", "1/4", "1/3", "5/12", "1/2", "7/12", "2/3", "3/4", "5/6", "11/12"]); c$.labelsXYZ = c$.prototype.labelsXYZ = ["x", "y", "z"]; c$.labelsXn = c$.prototype.labelsXn = ["x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13"]; c$.labelsXnSub = c$.prototype.labelsXnSub = ["x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j"]; });
/** * dojox - A version of dojox.js framework that ported to running on skylarkjs. * @author Hudaokeji, Inc. * @version v0.9.0 * @link https://github.com/skylark-integration/dojox/ * @license MIT */ define(["dojo/_base/lang","dojo/on","dijit/registry","dojo/date/stamp"],function(e,t,i,o){var n=[];return{init:function(){this.opener;var i=t(this.selDate1,"click",e.hitch(this,function(){this.datePicker2.set("value",date),this.opener.show(this.selDate1,["below-centered","above-centered","after","before"])}));n.push(i),i=t(this.save,"click",e.hitch(this,function(){this.opener.hide(!0),date=this.selDate1.value=this.datePicker2.get("value")})),n.push(i),i=t(this.cancel,"click",e.hitch(this,function(){this.opener.hide(!1)})),n.push(i),date=o.toISOString(new Date,{selector:"date"})},beforeActivate:function(){},destroy:function(){for(var e=n.pop();e;)e.remove(),e=n.pop()}}}); //# sourceMappingURL=../../../../sourcemaps/app/tests/domOrderByConstraint/date/date.js.map
'use strict'; import {PIPELINE_CONFIG_PROVIDER} from 'core/pipeline/config/pipelineConfigProvider'; const angular = require('angular'); module.exports = angular.module('spinnaker.core.pipeline.stage.resizeAsgStage', [ PIPELINE_CONFIG_PROVIDER, ]) .config(function(pipelineConfigProvider) { pipelineConfigProvider.registerStage({ useBaseProvider: true, key: 'resizeServerGroup', label: 'Resize Server Group', description: 'Resizes a server group', strategy: true, }); });
'use strict'; var _ = require( 'lodash' ), validator = require( 'validator' ), moment = require( 'moment' ), routeUtils = require( '../route-utils' ), Envelope = require( '../envelope' ), User = require( '../models/user' ), AccessToken = require( '../models/token' ), envelope; exports = module.exports = function UserRoutes( auth , router ) { router.get( '/me' , auth.requireUser , function( req , res , next ) { // console.log( 'foofoofoofoofoofoofoofoo' ); // curl -v http://localhost:3000/v1/me?access_token=[token] envelope = new Envelope(); User.findOneAsync({ 'email': req.user.email }) .then( function ( user ) { envelope.success( 200 , user ); return res.json( envelope ); }) .catch( function ( e ) { envelope.error( 401 , { 'details': [ 'The server returned an error finding current user.' , e.message ], 'append': true }); return res.json( envelope ); }); return; }); router.post( '/signup' , function( req , res ) { var userName = validator.trim( req.body.userName ), firstName = validator.trim( req.body.firstName ), lastName = validator.trim( req.body.lastName ), email = validator.normalizeEmail( validator.trim( req.body.email ) ), password = req.body.password, errDetails = [], user; envelope = new Envelope(); // if( !firstName ) { // errDetails.push( 'first name is missing.' ); // } // if( !lastName ) { // errDetails.push( 'last name is missing.' ); // } if( !req.body.email ) { errDetails.push( 'email is missing.' ); } if( !validator.isEmail( email ) ) { errDetails.push( 'email is not a valid email.' ); } if( !password ) { errDetails.push( 'password is missing.' ); } if( errDetails.length > 0 ) { // we have errors! envelope.error( 400 , { 'details': errDetails, 'append': true }); res.json( envelope ); return; } // check for existing user User.findOneAsync({ 'email': email }) .then( function ( usr ) { if( usr ){ envelope.error( 400 , { 'details': 'A user with that email exists.', 'append': true }); res.json( envelope ); return; } // curl -d "userName=Test&firstName=Test&lastName=User&email=test%40example.com&password=password" http://127.0.0.1:3000/v1/signup auth.hashPassword( req.body.password ) .then( function ( hash ) { return User.createAsync({ 'userName': userName, 'firstName': firstName, 'lastName': lastName, 'email': email, 'password': hash }); }) .then( function ( usr ) { // cache closure user = usr; return AccessToken.createToken({ 'client': { id: 'Shoptology.wut.wut' }, 'user': user, 'scope': null }); }) .then( function ( token ) { envelope.success( 200 , { user: user, token: token }); return res.json( envelope ); }) .catch( function( e ) { envelope.error( 401 , { 'details': [ 'Could not create account.' , e.message ], 'append': true }); res.json( envelope ); }); }) .catch( function ( e ) { envelope.error( 401 , { 'details': [ 'The server returned an error checking for existing user with signup data.' , e.message ], 'append': true }); return res.json( envelope ); }); }); router.post( '/login' , function( req , res ) { var valid = false, email = validator.normalizeEmail( validator.trim( req.body.email ) ), password = req.body.password, errDetails; envelope = new Envelope(); valid = ( validator.isEmail( email ) && password ) ? true : false; if( !valid ) { errDetails = []; if( !validator.isEmail( email ) ) { errDetails.push( 'email is not a valid email.' ); } if( !req.body.email ) { errDetails.push( 'email is missing.' ); } if( !password ) { errDetails.push( 'password is missing.' ); } envelope.error( 400 , { 'details': errDetails, 'append': true }); res.json( envelope ); return; } auth.exchangePassword( { id: 'Shoptology.wut.wut' }, email, password, null ) .then( function ( obj ) { if ( !obj.token ) { envelope.error( 401 , { 'details': 'No token provided', 'append': true }); return res.json( envelope ); } // password was successfully exchanged, create a succes // envelope and return that bad boy to the calling view envelope.success( 200 , { token: obj.token }); // send response res.json( envelope ); // front end can proceed, in parallel we're gonna update the // user's last visit time to be now... bc they just logged in. obj.user.lastVisitTime = Date.now(); obj.user.saveAsync() .spread( function ( savedUser , numAffected ) { if( numAffected < 1 ){ throw new Error( 'Error updating User\'s lastVisitTime.' ); } }) .catch( function( err ) { throw new Error( 'Error updating User\'s lastVisitTime.' ); }); // now bail. return; }) .catch( function( e ) { var code = 500; if( e.statusCode ) { code = e.statusCode; } if( code !== 401 ){ log.info( e ); } envelope.error( code , { 'details': 'The server returned an error exchanging a password for a token.', 'append': false }); res.json( envelope ); }); // curl -d "email=test%40example.com&password=password" http://127.0.0.1:3000/v1/login }); router.post( '/updatePassword' , auth.requireUser , function( req , res ) { var password = req.body.password, errDetails = [], saltedPW; envelope = new Envelope(); // if( !validator.isMongoId( userId ) ) { // errDetails.push( 'UserId is not a valid Mongo Id.' ); // } if( !password ) { errDetails.push( 'password is missing.' ); } if( errDetails.length > 0 ) { // we have errors! envelope.error( 400 , { 'details': errDetails, 'append': true }); res.json( envelope ); return; } auth.hashPassword( password ) .then( function ( hash ) { saltedPW = hash; return User.findOneAsync({ '_id': req.user._id }); }) .then( function ( usr ) { usr.password = saltedPW; usr.saveAsync() .spread( function( savedUser , numAffected ) { if( numAffected < 1 ){ throw new Error( 'Error updating User\'s password.' ); } envelope.success( 200 , savedUser ); res.json( envelope ); }) .catch( function( err ) { throw new Error( 'Error updating User\'s password.' ); }); }) .catch( function( e ) { var code = 500; if( e.statusCode ) { code = e.statusCode; } if( code !== 401 ){ log.info( e ); } envelope.error( code , { 'details': 'The server returned an error updating User\'s password.', 'append': false }); res.json( envelope ); }); }); router.get( '/users' , auth.requireUser , function( req , res ) { envelope = new Envelope(); User.findAsync({}) .then( function ( users ) { envelope.success( 200 , users ); res.json( envelope ); return; }) .catch( function ( err ) { envelope.error( 500 , { 'details': 'The server returned an error finding all users.', 'append': true }); res.json( envelope ); return; }); }); router.get( '/users/:userId' , auth.requireUser , function( req , res ) { var userId = req.params.userId; envelope = new Envelope(); if( !userId ){ // no userId present, return error envelope envelope.error( 400 , { 'details': 'Missing User Id.', 'append': true }); res.json( envelope ); return; } User.findOneAsync({ '_id': userId }) .then( function ( user ) { envelope.success( 200 , user ); res.json( envelope ); return; }) .catch( function ( err ) { envelope.error( 500 , { 'details': 'The server returned an error finding a user matching supplied id.', 'append': true }); res.json( envelope ); return; }); }); router.post( '/users/update' , auth.requireUser , function( req , res ) { var username = validator.trim( req.body.userName ), firstName = validator.trim( req.body.firstName ), lastName = validator.trim( req.body.lastName ), email = validator.normalizeEmail( validator.trim( req.body.email ) ), group = validator.trim( req.body.group ), birthday = validator.trim( req.body.birthday ), preferences = req.body.preferences, user = req.user, queryObj = {}, valid; envelope = new Envelope(); // append username to query object if( username ) { queryObj.username = username; } // append firstName to query object if( firstName ) { queryObj.firstName = firstName; } // append lastName to query object if( lastName ) { queryObj.lastName = lastName; } // append email to query object if( validator.isEmail( email ) ) { queryObj.email = email; } // append group to query object if( group ) { queryObj.group = group; } // append birthday to query object if( birthday ) { queryObj.birthday = moment( birthday ).toDate(); } // append preferences to query object if( preferences ) { _( preferences ).each( function ( pref , idx ) { valid = routeUtils.validatePrefs( pref ); if( !valid ){ envelope.error( 500 , { 'details': 'Invalid notifications setting.', 'append': true }); res.json( envelope ); return false; } } , this ); if( !valid ) { return; } queryObj.preferences = preferences; } if( Object.getOwnPropertyNames( queryObj ).length === 0 ){ // after parsing, no valid query present... // send error envelope and bail envelope.error( 400 , { 'details': 'Missing update parameters.', 'append': true }); res.json( envelope ); return; } User.updateAsync( { '_id': user._id }, queryObj ) .spread( function ( numAffected , response ) { var updatedExisting = response.updatedExisting || ''; if( updatedExisting === '' ){ updatedExisting = false; } if( ( updatedExisting ) && ( numAffected > 0 ) ){ return User.findOneAsync({ 'email': email || user.email }); } envelope.error( 500 , { 'details': 'No Users updated.' }); res.json( envelope ); return; }) .then( function ( user ) { envelope.success( 200 , user ); return res.json( envelope ); }) .catch( function ( err ) { envelope.error( 500 , { 'details': 'The server returned an error updating user with supplied arguments.' }); res.json( envelope ); return; }); return; }); };
import React, { Component } from "react"; import actuatorImage from "../../../../images/actuator.png"; import PropTypes from "prop-types"; import Card from "@material-ui/core/Card"; import CardActions from "@material-ui/core/CardActions"; import EditIcon from "@material-ui/icons/Edit"; import DeleteIcon from "@material-ui/icons/Delete"; import ActuatorForm from "./ActuatorForm"; import TextField from "@material-ui/core/TextField"; import Grid from "@material-ui/core/Grid"; import Paper from "@material-ui/core/Paper"; import locale from "react-json-editor-ajrm/locale/en"; import JSONInput from "react-json-editor-ajrm"; import Button from "@material-ui/core/Button"; import { Link } from "react-router"; import FormControlLabel from "@material-ui/core/FormControlLabel"; import Switch from "@material-ui/core/Switch"; const styles = { container: { width: "100%" }, body: { width: undefined, display: "flex" }, outerBox: { width: "100%", minWidth: "250px" }, contentBox: { width: undefined, flex: 1 }, warningBox: { width: "100%" } }; const colors = { default: "black", background: "white", background_warning: "black", number: "black", string: "red", keys_whiteSpace: "black", primitive: "black" }; export default class ActuatorCard extends Component { constructor(props) { super(props); this.state = { modalEdit: false, modalActuate: false, actu: this.props.actuator ? this.props.actuator : defaultActu, valid: true, validNumber: true }; } componentWillMount() { this.updateValue(); } updateValue() { var actu = this.state.actu; if (this.state.actu.actuator_value_type == "bool") { actu["value"] = Boolean(this.state.actu.value); } else if (this.state.actu.actuator_value_type == "number") { actu["value"] = isNaN(this.state.actu.value) ? 0 : Number(this.state.actu.value); } else if (this.state.actu.actuator_value_type == "string") { actu["value"] = String(this.state.actu.value) || ""; } this.setState({ actu: actu }); } updateValueType(valueType) { var actu = this.state.actu; actu["actuator_value_type"] = valueType; this.setState({ actu: actu }); } submitActuator(m) { this.props.updateActuatorName(this.props.deviceId, m.id, m.name); this.props.updateActuatorKind(this.props.deviceId, m.id, m.actuator_kind); this.props.updateActuatorValueType( this.props.deviceId, m.id, m.actuator_value_type ); this.updateValueType(m.actuator_value_type); this.updateValue(); } submitValue() { if ( this.state.actu.actuator_value_type === "number" && isNaN(this.state.actu.value) ) { this.setState({ validNumber: false }); } else { this.setState({ validNumber: true }); this.props.updateActuatorValue( this.props.deviceId, this.state.actu.id, JSON.stringify(this.state.actu.value) ); } } onActuateClick() { this.props.updateActuatorValue( this.props.deviceId, this.state.actu.id, "null" ); } handleChange = formData => { var actu = this.state.actu; actu["value"] = formData.target.value; this.setState({ actu: actu }); }; handleSwitchChange = event => { var actu = this.state.actu; actu.value = Boolean(event.target.checked); this.setState({ actu: actu }); this.submitValue(); }; handleJSONInputChange = data => { var actu = this.state.actu; actu["value"] = data.jsObject; this.setState({ actu: actu }); this.setState({ valid: !data.error }); }; render() { const { classes } = this.props; let actu = this.props.actuator; const sampleObject = { key: "value" }; const sampleArray = ["one", "two"]; return ( <Card className={"card "}> <ActuatorForm modalOpen={this.state.modalEdit} handleClose={() => { this.setState({ modalEdit: false }); }} onSubmit={a => { this.submitActuator(a); this.setState({ modalEdit: false }); }} isEdit={true} actuator={JSON.parse(JSON.stringify(actu))} /> <div className="TypographyDiv"> <pre className="Typography"> {" "} {actu.name ? actu.name : "(" + actu.id + ")"}{" "} </pre> <div className="cardTitleIcons"> {this.props.permission.scopes.includes("devices:update") ? ( <EditIcon onClick={() => this.setState({ modalEdit: true })} /> ) : null} {this.props.permission.scopes.includes("devices:update") ? ( <DeleteIcon onClick={() => { if (window.confirm("Delete actuator?")) this.props.deleteActuator(this.props.deviceId, actu.id); }} /> ) : null} </div> </div> <div className="cardContent"> {this.props.isDetails ? ( <div> <div className="sensIcon"> <img src={actuatorImage} height="75" /> </div> {this.props.permission.scopes.includes("devices:update") ? ( <CardActions> <Grid container spacing={24} justify="flex-end" direction="row" > <Grid item xs={12}> {this.state.actu.actuator_value_type == "string" ? ( <TextField id="stringValue" name="stringValue" label="Value" fullWidth value={this.state.actu.value} onChange={this.handleChange} helperText="Provide a string" /> ) : ( "" )} {this.state.actu.actuator_value_type == "number" ? ( <TextField error={!this.state.validNumber} id="numberValue" name="numberValue" label="Value" fullWidth value={this.state.actu.value} onChange={this.handleChange} helperText={ this.state.validNumber ? "Provide a number" : "Please enter a number value" } /> ) : ( "" )} {this.state.actu.actuator_value_type == "bool" ? ( <FormControlLabel control={ <Switch id="boolValue" name="boolValue" checked={this.state.actu.value} onChange={this.handleSwitchChange} value={this.state.actu.value} color="primary" /> } label="Actuator Value" /> ) : ( "" )} {this.state.actu.actuator_value_type == "null" ? ( <Button variant="contained" onTouchTap={() => { this.onActuateClick(); }} > Actuate </Button> ) : ( "" )} {this.state.actu.actuator_value_type == "object" ? ( <Paper> <div style={{ maxWidth: "100%", maxHeight: "100%" }}> <JSONInput id="objectValue" name="objectValue" placeholder={sampleObject} onChange={this.handleJSONInputChange} theme="light_mitsuketa_tribute" locale={locale} colors={colors} height="150px" style={styles} /> </div> </Paper> ) : ( "" )} {this.state.actu.actuator_value_type == "array" ? ( <Paper> <div style={{ maxWidth: "100%", maxHeight: "100%" }}> <JSONInput id="arrayValue" name="arrayValue" placeholder={sampleArray} onChange={this.handleJSONInputChange} theme="light_mitsuketa_tribute" locale={locale} colors={colors} height="150px" style={styles} /> </div> </Paper> ) : ( "" )} </Grid> {this.state.actu.actuator_value_type != "null" && this.state.actu.actuator_value_type != "bool" && ( <Grid item xs={12} container justify="flex-end" direction="row" > <Button variant="contained" size="small" color="primary" disabled={!this.state.valid} onTouchTap={() => { this.submitValue(); }} > Submit </Button> </Grid> )} </Grid> </CardActions> ) : null} </div> ) : null} {!this.props.isDetails ? ( <Link to={"/devices/" + this.props.deviceId + "/actuators/" + actu.id} > <div className="actuIcon"> <img src={actuatorImage} height="75" title={"Go to actuator details"} /> </div> </Link> ) : null} </div> </Card> ); } static propTypes = { actu: PropTypes.object, //Should be a Waziup.Actuator isEditable: PropTypes.bool, isDetails: PropTypes.bool, updateActuator: PropTypes.func, updateActuatorName: PropTypes.func, updateActuatorKind: PropTypes.func, updateActuatorValue: PropTypes.func, updateActuatorValueType: PropTypes.func, deleteActuator: PropTypes.func, deviceId: PropTypes.string.isRequired, permission: PropTypes.object.isRequired }; }
import React, { Component } from 'react'; import { View, Text, Image, TouchableOpacity, TextInput, ScrollView, DeviceEventEmitter, InteractionManager } from 'react-native'; import styles from '../../../css/styles'; import Config from '../../../config/config'; import ScreenInit from '../../../config/screenInit'; import ModalAddress from '../../common/modal-address'; import UIToast from '../../common/ui-toast'; import Loading from '../../common/ui-loading'; export default class SellerAddrAdd extends Component { constructor(props) { super(props); let _params = this.props.navigation.state.params; this.state = { id: (_params && _params.id) || '', username: '', tel: '', addr: '', addrObj: '', detail: '' }; } componentDidMount() { InteractionManager.runAfterInteractions(() => { ScreenInit.checkLogin(this); this.listener_select = DeviceEventEmitter.addListener('addressSelect', (result) => { this.setState({ addr: result.province + result.city + result.county + result.town + result.village, addrObj: result }); }); if(this.state.id !== '') { this.setState({loadingVisible: true}); fetch(Config.PHPAPI + `api/mapp/shop/addr-edit?id=${this.state.id}&token=${token}`, { method: 'GET' }) .then(response => response.json()) .then(data => { this.setState({loadingVisible: false}); if(data.error_code == 0) { let _data = data.data; this.setState({ username: _data.recevier, tel: _data.mobile, addr: _data.province_name + _data.city_name + _data.district_name + _data.town_name + _data.village_name, detail: _data.addr, addrObj: { key: 0, province: _data.province_name, province_id: _data.province, city: _data.city_name, city_id: _data.city, county: _data.district_name, county_id: _data.district, town: _data.town_name, town_id: _data.town, village: _data.village_name, village_id: _data.village } }); } }) .catch((error) => { this.setState({loadingVisible: false}); }); } }); } componentWillUnmount() { this.backTimer && clearTimeout(this.backTimer); this.listener_select && this.listener_select.remove(); } render() { return ( <View style={styles.common.flexv}> <ScrollView style={styles.saddr.add}> <View style={[styles.common.flex, styles.saddr.group, styles.common.flexCenterv]}> <Text style={styles.saddr.addLabel}>收货人姓名:</Text> <View style={styles.saddr.addAbsolute}> <TextInput underlineColorAndroid='transparent' onChangeText={(text) => this.setState({username: text})} value={this.state.username} style={[styles.common.flex, styles.saddr.input]}/> </View> </View> <View style={[styles.common.flex, styles.saddr.group, styles.common.flexCenterv]}> <Text style={styles.saddr.addLabel}>收货人手机号:</Text> <View style={styles.saddr.addAbsolute}> <TextInput underlineColorAndroid='transparent' onChangeText={(text) => this.setState({tel: text})} value={this.state.tel} style={[styles.common.flex, styles.saddr.input]}/> </View> </View> <TouchableOpacity activeOpacity={.8} style={[styles.common.flex, styles.saddr.group, styles.common.flexCenterv]} onPress={this._openAddressPanel}> <Text style={styles.saddr.addLabel}>所在地区:</Text> <View style={[styles.saddr.addAbsolute, styles.common.flexCenterv]}> <Text style={[styles.common.flex, styles.saddr.input]} numberOfLines={1}>{this.state.addr}</Text> <Image source={require('../../../images/icon-arb.png')} style={styles.shome.arrowRight}/> </View> </TouchableOpacity> <View style={[styles.common.flex, styles.saddr.group, styles.common.flexCenterv]}> <Text style={styles.saddr.addLabel}>详细地址:</Text> <View style={styles.saddr.addAbsolute}> <TextInput underlineColorAndroid='transparent' onChangeText={(text) => this.setState({detail: text})} value={this.state.detail} style={[styles.common.flex, styles.saddr.input]}/> </View> </View> </ScrollView> <View style={[styles.saddr.footer, styles.saddr.addFooter]}> <TouchableOpacity activeOpacity={.8} onPress={this._addNewOne}> <Text style={styles.saddr.footerBtn}>保存</Text> </TouchableOpacity> </View> <ModalAddress keys={0}></ModalAddress> <Loading visible={this.state.loadingVisible}></Loading> </View> ); } _openAddressPanel = () => { if(this.state.id != '') { let _addr = this.state.addrObj; DeviceEventEmitter.emit('addressShow', {keys: 0, init: { province_id: _addr.province_id, city_id: _addr.city_id, county_id: _addr.county_id, town_id: _addr.town_id, village_id: _addr.village_id }}); } else { DeviceEventEmitter.emit('addressShow', {keys: 0}); } } _addNewOne = () => { if(this.state.username == '') { UIToast('请填写收货人姓名'); } else if(this.state.tel == '') { UIToast('请填写收货人手机号'); } else if(!this.state.addrObj.province_id) { UIToast('请填写所在地区'); } else if(this.state.detail == '') { UIToast('请填写详细地址'); } else { let _addr = this.state.addrObj; let _url = this.state.id !== '' ? 'api/mapp/shop/addr-update' : 'api/mapp/shop/addr-add'; fetch(Config.PHPAPI + _url, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: `${this.state.id !== '' ? 'addr_id' : 'id'}=${this.state.id}&region=${_addr.province_id},${_addr.city_id},${_addr.county_id},${_addr.town_id},${_addr.village_id}&recevier=${this.state.username}&addr=${this.state.detail}&mobile=${this.state.tel}&token=${token}` }) .then((response) => response.json()) .then((data) => { if(data.error_code == 0) { UIToast('操作成功'); DeviceEventEmitter.emit('addressListAddOne'); this.backTimer = setTimeout(() => { this.props.navigation.goBack(); }, 2000); } else { UIToast(data.msg); } }) .catch((error) => { UIToast('操作失败,请检查网络'); }); } } }
exports.run = async (client,message, args) =>{ const Discord = require("discord.js"); const async = require("async_hooks") // Most of this command is identical to kick, except that here we'll only let admins do it. // In the real world mods could ban too, but this is just an example, right? ;) if(!message.member.roles.some(r=>["Dev"].includes(r.name)) ) return message.reply("Sorry, you don't have permissions to use this!"); let member = message.mentions.members.first(); if(!member) return message.reply("Please mention a valid member of this server"); if(!member.bannable) return message.reply("I cannot ban this user! Do they have a higher role? Do I have ban permissions?"); let reason = args.slice(1).join(' '); if(!reason) reason = "No reason provided"; await member.ban(reason) .catch(error => message.reply(`Sorry ${message.author} I couldn't ban because of : ${error}`)); message.reply(`${member.user.tag} has been banned by ${message.author.tag} because: ${reason}`); }
import React from 'react'; import { render, fireEvent } from '@testing-library/react'; import { DateTime } from 'luxon'; import { dateToStr } from '../components/DatePicker'; import ForexRateEndDateOption from '../components/ForexRateEndDateOption'; describe('<ForexRateEndDateOption />', () => { it('should render without crashing', () => { const rendered = render(<ForexRateEndDateOption initialDate={DateTime.utc()} />); expect(rendered).toBeTruthy(); }); it('should have a commit button', async () => { const { findByText } = render(<ForexRateEndDateOption initialDate={DateTime.utc()} />); const element = await findByText('Commit'); expect(element).toBeDefined(); }); it('should disable the date picker input given the 1 Day option', async () => { const { findByLabelText } = render(<ForexRateEndDateOption />); const endDateForOneDay = await findByLabelText('End Date'); const expected = true; const actual = endDateForOneDay.disabled; expect(actual).toEqual(expected); }); it('should display the correct title, "1 Day", given the 1 Day option', async () => { const { findByText } = render(<ForexRateEndDateOption />); const element = await findByText('1 Day'); expect(element).toBeDefined(); }); it('should display the right end date given the 1 Day option', async () => { const tomorrow830amUTC = DateTime.utc() .plus({ days: 1 }) .set({ hour: 8, minute: 30, second: 0, millisecond: 0, }); const { findByLabelText } = render(<ForexRateEndDateOption />); const endDateForOneDay = await findByLabelText('End Date'); const expected = dateToStr(tomorrow830amUTC); const actual = endDateForOneDay.value; expect(actual).toEqual(expected); }); it('should enable the date picker input given the Weekend option', async () => { const { findByLabelText } = render(<ForexRateEndDateOption weekend />); const endDateForWeekend = await findByLabelText('End Date'); const expected = false; const actual = endDateForWeekend.disabled; expect(actual).toEqual(expected); }); it('should display the correct title, "Weekend", given the Weekend option', async () => { const { findByText } = render(<ForexRateEndDateOption weekend />); const element = await findByText('Weekend'); expect(element).toBeDefined(); }); it('should display the right initial end date given the Weekend option', async () => { const monday830amUTC = DateTime.utc() .plus({ days: 3 }) .set({ hour: 8, minute: 30, second: 0, millisecond: 0, }); const { findByLabelText } = render(<ForexRateEndDateOption weekend />); const endDateForOneDay = await findByLabelText('End Date'); const expected = dateToStr(monday830amUTC); const actual = endDateForOneDay.value; expect(actual).toEqual(expected); }); it('should run the onCommit function when the commit button is pressed', async () => { const onCommitMock = jest.fn(); const { findByText } = render(<ForexRateEndDateOption onCommit={onCommitMock} />); const commitButton = await findByText('Commit'); fireEvent.click(commitButton); expect(onCommitMock).toHaveBeenCalled(); }); });
/*global define*/ define([ '../Core/defaultValue', '../Core/defined', '../Core/defineProperties', '../Core/DeveloperError', '../Core/Event', './createDynamicPropertyDescriptor' ], function( defaultValue, defined, defineProperties, DeveloperError, Event, createDynamicPropertyDescriptor) { "use strict"; /** * An optionally time-dynamic cone. * * @alias DynamicCone * @constructor */ var DynamicCone = function() { this._minimumClockAngle = undefined; this._minimumClockAngleSubscription = undefined; this._maximumClockAngle = undefined; this._maximumClockAngleSubscription = undefined; this._innerHalfAngle = undefined; this._innerHalfAngleSubscription = undefined; this._outerHalfAngle = undefined; this._outerHalfAngleSubscription = undefined; this._capMaterial = undefined; this._capMaterialSubscription = undefined; this._innerMaterial = undefined; this._innerMaterialSubscription = undefined; this._outerMaterial = undefined; this._outerMaterialSubscription = undefined; this._silhouetteMaterial = undefined; this._silhouetteMaterialSubscription = undefined; this._intersectionColor = undefined; this._intersectionColorSubscription = undefined; this._intersectionWidth = undefined; this._intersectionWidthSubscription = undefined; this._showIntersection = undefined; this._showIntersectionSubscription = undefined; this._radius = undefined; this._radiusSubscription = undefined; this._show = undefined; this._showSubscription = undefined; this._definitionChanged = new Event(); }; defineProperties(DynamicCone.prototype, { /** * Gets the event that is raised whenever a new property is assigned. * @memberof DynamicCone.prototype * * @type {Event} * @readonly */ definitionChanged : { get : function() { return this._definitionChanged; } }, /** * Gets or sets the numeric {@link Property} specifying the the cone's minimum clock angle. * @memberof DynamicCone.prototype * @type {Property} */ minimumClockAngle : createDynamicPropertyDescriptor('minimumClockAngle'), /** * Gets or sets the numeric {@link Property} specifying the the cone's maximum clock angle. * @memberof DynamicCone.prototype * @type {Property} */ maximumClockAngle : createDynamicPropertyDescriptor('maximumClockAngle'), /** * Gets or sets the numeric {@link Property} specifying the the cone's inner half-angle. * @memberof DynamicCone.prototype * @type {Property} */ innerHalfAngle : createDynamicPropertyDescriptor('innerHalfAngle'), /** * Gets or sets the numeric {@link Property} specifying the the cone's outer half-angle. * @memberof DynamicCone.prototype * @type {Property} */ outerHalfAngle : createDynamicPropertyDescriptor('outerHalfAngle'), /** * Gets or sets the {@link MaterialProperty} specifying the the cone's cap material. * @memberof DynamicCone.prototype * @type {MaterialProperty} */ capMaterial : createDynamicPropertyDescriptor('capMaterial'), /** * Gets or sets the {@link MaterialProperty} specifying the the cone's inner material. * @memberof DynamicCone.prototype * @type {MaterialProperty} */ innerMaterial : createDynamicPropertyDescriptor('innerMaterial'), /** * Gets or sets the {@link MaterialProperty} specifying the the cone's outer material. * @memberof DynamicCone.prototype * @type {MaterialProperty} */ outerMaterial : createDynamicPropertyDescriptor('outerMaterial'), /** * Gets or sets the {@link MaterialProperty} specifying the the cone's silhouette material. * @memberof DynamicCone.prototype * @type {MaterialProperty} */ silhouetteMaterial : createDynamicPropertyDescriptor('silhouetteMaterial'), /** * Gets or sets the {@link Color} {@link Property} specifying the color of the line formed by the intersection of the cone and other central bodies. * @memberof DynamicCone.prototype * @type {Property} */ intersectionColor : createDynamicPropertyDescriptor('intersectionColor'), /** * Gets or sets the numeric {@link Property} specifying the width of the line formed by the intersection of the cone and other central bodies. * @memberof DynamicCone.prototype * @type {Property} */ intersectionWidth : createDynamicPropertyDescriptor('intersectionWidth'), /** * Gets or sets the boolean {@link Property} specifying the visibility of the line formed by the intersection of the cone and other central bodies. * @memberof DynamicCone.prototype * @type {Property} */ showIntersection : createDynamicPropertyDescriptor('showIntersection'), /** * Gets or sets the numeric {@link Property} specifying the radius of the cone's projection. * @memberof DynamicCone.prototype * @type {Property} */ radius : createDynamicPropertyDescriptor('radius'), /** * Gets or sets the boolean {@link Property} specifying the visibility of the cone. * @memberof DynamicCone.prototype * @type {Property} */ show : createDynamicPropertyDescriptor('show') }); /** * Duplicates a DynamicCone instance. * * @param {DynamicCone} [result] The object onto which to store the result. * @returns {DynamicCone} The modified result parameter or a new instance if one was not provided. */ DynamicCone.prototype.clone = function(result) { if (!defined(result)) { result = new DynamicCone(); } result.show = this.show; result.innerHalfAngle = this.innerHalfAngle; result.outerHalfAngle = this.outerHalfAngle; result.minimumClockAngle = this.minimumClockAngle; result.maximumClockAngle = this.maximumClockAngle; result.radius = this.radius; result.showIntersection = this.showIntersection; result.intersectionColor = this.intersectionColor; result.intersectionWidth = this.intersectionWidth; result.capMaterial = this.capMaterial; result.innerMaterial = this.innerMaterial; result.outerMaterial = this.outerMaterial; result.silhouetteMaterial = this.silhouetteMaterial; return result; }; /** * Assigns each unassigned property on this object to the value * of the same property on the provided source object. * * @param {DynamicCone} source The object to be merged into this object. */ DynamicCone.prototype.merge = function(source) { //>>includeStart('debug', pragmas.debug); if (!defined(source)) { throw new DeveloperError('source is required.'); } //>>includeEnd('debug'); this.show = defaultValue(this.show, source.show); this.innerHalfAngle = defaultValue(this.innerHalfAngle, source.innerHalfAngle); this.outerHalfAngle = defaultValue(this.outerHalfAngle, source.outerHalfAngle); this.minimumClockAngle = defaultValue(this.minimumClockAngle, source.minimumClockAngle); this.maximumClockAngle = defaultValue(this.maximumClockAngle, source.maximumClockAngle); this.radius = defaultValue(this.radius, source.radius); this.showIntersection = defaultValue(this.showIntersection, source.showIntersection); this.intersectionColor = defaultValue(this.intersectionColor, source.intersectionColor); this.intersectionWidth = defaultValue(this.intersectionWidth, source.intersectionWidth); this.capMaterial = defaultValue(this.capMaterial, source.capMaterial); this.innerMaterial = defaultValue(this.innerMaterial, source.innerMaterial); this.outerMaterial = defaultValue(this.outerMaterial, source.outerMaterial); this.silhouetteMaterial = defaultValue(this.silhouetteMaterial, source.silhouetteMaterial); }; return DynamicCone; });
import React from "react"; import { navigate } from "gatsby"; import Seo from "../components/seo"; import CrossButton from "../components/crossButton"; import Layout from "../components/layout"; import styled from "styled-components"; const FaqContainer = styled.section` display: flex; flex-direction: row; overflow-y: hidden; font-family: "Montserrat", sans-serif; font-style: normal; font-size: 19px; line-height: 23px; font-weight: 500; color: var(--secondary-color); padding-right: 41px; & .text { padding-left: 24px; max-width: 828px; padding-top: 3.2em; } & .mb { margin: 0; padding: 0; margin-bottom: 0.26em; } & .aside { display: flex; flex-direction: column; flex-wrap: wrap; justify-content: flex-start; align-items: center; width: 100%; max-width: 496px; font-family: "Montserrat", sans-serif; font-style: normal; font-weight: 900; font-size: 550px; line-height: 1; text-transform: uppercase; color: var(--secondary-color); } & .aside__letter:first-child { line-height: 0.9; margin-bottom: 20px; @media (max-width: 780px) { margin-bottom: 0; line-height: 9px; } } & a { font-weight: 900; font-size: 19px; color: var(--sucess-color); text-transform: uppercase; @media (max-width: 780px) { font-size: 11px; line-height: 14px; } } & .simple { font-family: "Montserrat", sans-serif; font-weight: 500; text-transform: none; text-decoration: underline; color: #fff; } @media (max-width: 780px) { flex-direction: column; font-size: 11px; padding-right: 14px; line-height: 14px; & .aside { max-width: 100%; align-items: center; justify-content: center; font-size: 125px; flex-direction: row; flex-wrap: nowrap; } } & .mobile_only { display: none; } & .desktop_only { display: flex; } & .track { @media (max-width: 940px) { display: none; } } @media (max-width: 780px) { & .mobile_only { display: block; } & .desktop_only { display: none; } } `; const Text = styled.p` font-family: "Montserrat", sans-serif; font-size: 19px; line-height: 23px; margin: 0; padding: 0; margin-bottom: 1.57em; @media (max-width: 780px) { font-weight: 500; font-size: 11px; line-height: 120%; } `; const DownloadLink = styled.div` min-width: 118px; display: inline-block; & .mb { background: blue; margin-bottom: 20px; } @media (max-width: 780px) { min-width: 40px; } `; const Heading = styled.h3` font-family: "Montserrat", sans-serif; font-style: normal; font-weight: 900; font-size: 19px; line-height: 23px; color: var(--secondary-color); margin: 0; padding: 0; text-transform: uppercase; margin-bottom: 0.26em; @media (max-width: 780px) { font-size: 11px; line-height: 14px; font-weight: 900; } `; const Accent = styled.span` text-transform: uppercase; font-weight: 900; `; const Header2 = styled.h2` margin-left: 0; padding-left: 0; font-family: "Montserrat", sans-serif; font-style: normal; font-weight: 900; font-size: 96px; line-height: 87%; text-transform: uppercase; @media (max-width: 780px) { font-size: 121px; line-height: 97px; } `; const goToHomePage = () => { navigate("/"); }; const FaqPage = () => { return ( <Layout> <CrossButton action={goToHomePage} /> <Seo title="Camp" /> <FaqContainer id="faq" style={{ marginBottom: "2em" }}> <div className="aside desktop_only"> <span className="aside__letter">Л</span> <span className="aside__letter">А</span> <span className="aside__letter">Г</span> <span className="aside__letter">Е</span> <span className="aside__letter">Р</span> <span className="aside__letter">Ь</span> </div> <div className="text"> <Header2 className="mobile_only"> ЛА- <br /> ГЕРЬ </Header2> <Heading style={{ marginBottom: "1.57em", paddingRight: "80px" }}> Ждем всех на берегу озера Тихое (Приозерсий район, Ленинградская область) с 16 по 18 июля. Гонка – 17 июля, старт в 10:30 утра. </Heading> <Text> <a href="https://goo.gl/maps/eEUUcUgRDZqnYQiLA" target="blank" style={{ display: "inline-block" }} > Координаты главной поляны </a> </Text> <Heading style={{ marginBottom: "1.2em" }}>Как добраться?</Heading> <Heading style={{ marginBottom: "1.2em" }}>На электричке:</Heading> <Heading>СОСНОВО.</Heading> <Text> От Финляндского вокзала едем до станции Сосново, оттуда 35 км по приятному асфальту до поляны. </Text> <Heading> <a href="https://goo.gl/maps/GrpVb8ktDVv98e6x8" target="blank" style={{ display: "inline-block" }} > Маршрут от станции до поляны </a> </Heading> <Heading style={{ marginBottom: "1.2em" }}> <a href="https://www.tutu.ru/spb/rasp.php?st1=20600&st2=47605&date=16.07.2021" target="blank" style={{ display: "inline-block" }} > Расписание электричек на пятницу </a> </Heading> <Heading>Лосево.</Heading> <Text> От Финляндского вокзала едем до станции Лосево, оттуда 25 км по приятному асфальту до поляны. </Text> <Heading> <a href="https://goo.gl/maps/gcXQzwu9i3mhNJLY7" target="blank" style={{ display: "inline-block" }} > Маршрут от станции до поляны </a> </Heading> <Heading style={{ marginBottom: "1.2em" }}> <a href="https://www.tutu.ru/spb/rasp.php?st1=20600&st2=47905&date=16.07.2021" target="blank" style={{ display: "inline-block" }} > Расписание электричек на пятницу </a> </Heading> <Heading>Обратите внимание!</Heading> <Text> Если вы планируете приехать на электричке в день гонки (17 июля), то вам подходит единственный поезд N6505 «Финляндский вокзал – Сосново» в 6:16 утра. На более поздней электричке вы однозначно не успеете к старту! </Text> <Text> Возле станции Сосново можно взять такси и доехать до съезда на о. Тихое (оттуда до лагеря примерно 500 метров), а может даже и до самой поляны. Как договоритесь с водителем. </Text> <Heading>На автомобиле:</Heading> <Text> До лагеря можно добраться двумя способами. Первый: по трассе «Сортавала». Не доезжая до Вуоксы, уходим налево на Брусничное шоссе. Съезд с асфальта будет примерно напротив самого озера. Обратите внимание! В пятницу вечером на этом маршруте могут быть пробки. Второй способ: трасса «Скандинавия». </Text> <Text> <Heading>Магазин, еда и кофе:</Heading> Ближайший к лагерю продуктовый магазин{" "} <a href="https://goo.gl/maps/iPhFxvuQi5wZSPyo9" target="blank" style={{ display: "inline-block" }} > {" "} «Магнит» </a>{" "} находится в пос. Красноозерное, до него около 10 км. </Text> <Text> На поляне в дни кэмпа будет возможность заказать еду (опция платная). В меню – кукуруза, лепешка с курицей и баклажанами на гриле, онигирадзу, хумус, бриошь с яичным салатом. К финишу гонки будет готово табуле из булгура. Все это – от команды Василия Баканова. </Text> <Text> Проект Hood отвечает за веганский пикник в лагере. Сможете попробовать хот-доги, воки и сэндвичи. </Text> <Text> Кофейный десант в составе кооператива{" "} <a href=" https://www.instagram.com/virage_cooperative/" target="blank" style={{ display: "inline-block" }} > {" "} «Вираж» </a>{" "} и московского велосипедного кафе{" "} <a href="https://instagram.com/rebellion____clubhouse" target="blank" style={{ display: "inline-block" }} > {" "} Rébellion Clubhouse </a>{" "} будет заваривать фильтр и альтернативу, так же в меню колдбрю, эспрессо-бейсд кофе и сладости. </Text> <Text> Передвижной бар{" "} <a href="https://www.instagram.com/stoy.bar" target="blank" style={{ display: "inline-block" }} > Støy! Craft Bar </a>{" "} организует святое место, где будут разливаться пиво и сидр. </Text> <Text> <a href="https://instagram.com/laboratorio_distilita" target="blank" style={{ display: "inline-block" }} > Laboratorio Distilita </a>{" "} откроют на поляне домашний бар с крепкими напитками и вином. Обратите внимание! На поляне плохо ловит интернет, поэтому берите с собой наличные. </Text> <Heading> Обратите внимание! На поляне плохо ловит интернет, поэтому берите с собой наличные. </Heading> <br /> <Heading>Ремонт и мастерские:</Heading> <Text>За ремонтом велосипедов будут следить две мастерские:</Text> <Heading> <a href="https://velomedik.ru" target="blank" style={{ display: "inline-block" }} > Веломедик </a> </Heading> <Heading> <a href="https://www.alienbike.ru" target="blank" style={{ display: "inline-block" }} > Alien Bike </a> </Heading> <br /> <Text> На поляне будет зона, где вы сможете самостоятельно помыть свой велосипед до и после гонки. Ориентир – желтый керхер. </Text> <Heading>Чил-зоны:</Heading> <Text> Мы позаботились о вашем досуге и организуем на поляне игровую зону с разными активностями, где вы найдете волейбол, фрисби, бадминтон, мультидиск и может быть даже бильярд. </Text> <Text> Команда{" "} <a href="https://silavetra.com/" target="blank" style={{ display: "inline-block" }} > «Сила Ветра» </a>{" "} привезет на озеро сапборды, арендовать их можно будет бесплатно. На озере вас также ждет secret place, увидите на месте. </Text> <Text> Тем, кто хочет открыть для себя что-то новое, советуем заглянуть на площадку экспериментального звука. Здесь можно поиграть на легендарных советских и японских аналоговых синтезаторах. </Text> <Heading>Огненный вопрос:</Heading> <Text> Разводить костры можно в специально отведенных для этого местах. Либо используйте мангал. Не оставляйте после себя марсианские пейзажи. Если хотите подогреть еду рядом с палаткой – воспользуйтесь горелкой. </Text> <Heading>Мусорный вопрос:</Heading> <Text> Поляна должна остаться после нас такой же чистой, как и до нас. Увезите с собой весь мусор. По возможности не используйте стеклянные бутылки, сминайте банки перед тем как выбросить в мусорный мешок. Используйте одноразовую бумажную посуду. Бычки кидайте в костер. Организаторы со своей стороны приложили максимум усилий, чтобы минимизировать количество пластика и другого мусора, сделайте то же самое. </Text> <Text> Главное правило работает так: берите столько упаковок еды и алкоголя, сколько способны отвезти обратно. Мусор – это не обязанность кого-то абстрактного, а личная ответственность каждого из вас! </Text> <Text> Ближайшее место, куда вы можете отвезти мусор, находится в пос. Красноозерное, мусорные баки за магазином «Магнит». </Text> <Heading>Гигиенические вопросы:</Heading> <Text> В лагере будет три санитарных зоны класса люкс, с огороженными туалетами и туалетной бумагой. Смывайте за собой и следите за чистотой в этих сакральных местах. </Text> <Text> Мыться, как и всегда, предстоит в озере. Но помните о природе, используйте натуральные средства, чтобы меньше загрязнять воду. </Text> <Heading>Очень важный вопрос:</Heading> <Text> Как и в прошлом году, в лагере будет введен режим тишины, в полночь с 16 на 17 июля. Это значит, что никаких шумных посиделок, песен, криков и ора после этого момента. Уважайте соседей, дайте возможность выспаться окружающим и приберегите силы на утро. Кутить будем на следующий день. </Text> <Text> Люди, нарушающие правило тишины, могут быть отстранены от участия в гонке. </Text> <Heading>Парковка:</Heading> <Text> Не разрешается ставить автомобили рядом с палатками на основной поляне. Для стоянки машин мы разметим парковочную зону на ограниченное количество мест. Расстояние до лагеря – около 500 м, будьте готовы прогуляться до своего любимого транспортного средства. </Text> <Header2>line — up</Header2> <Heading>16 июля</Heading> <Text> 15:00 – Начало регистрации <br /> 15:00 – Начало работы фуд-корта <br /> 15:00 – Открытие основных зон отдыха <br /> 21:00 – Приветственное слово <br /> 23:00 – Конец регистрации (на этот день) <br /> 00:00 – ОТБОЙ <br /> </Text> <Heading>17 июля</Heading> <Text> 7:00 – Подъем <br /> 7:00 – Продолжение регистрации <br /> 9:00 – Брифинг <br /> 9:30 – Окончание регистрации <br /> 10:00 – Построение в стартовом окне <br /> 10:30 – Старт гонки <br /> 20:30 – Закрытие финишного окна <br /> 21:00 – Награждение </Text> <Heading>Party</Heading> <Text> 22:00 – R.A.W.S. <br /> 23:20 – ТРОЯР <br /> 23:50 – Renks (Cool music) <br /> Solid Angle (More cool music) <br /> E.Gest (Liquid Drum & Base) <br /> Feela sport (old but gold) <br /> </Text> <Heading>18 июля</Heading> <Text> 10:00 – Возобновление работы фуд-корта <br /> 10:00 – Музыкальное сопровождение от сонных диджеев <br /> после 15:00 – сборы, отъезд и скупая слеза в память о прошедшем уикенде </Text> <Heading style={{ marginBottom: "2.2em" }}> с конца июля’21 по лето’22 – воспоминания </Heading> <Header2> Трек <span className="desktop_only track">трассы</span> </Header2> <Heading> <span style={{ minWidth: "100px", display: "inline-block" }}> <a href="https://www.komoot.com/tour/416560949" target="blank" style={{ display: "inline-block", color: "white" }} > 170км </a> </span> <a href="gpx/21_reverse_big.gpx" target="blank" style={{ marginLeft: "1.2em" }} download > скачать </a> </Heading> <Heading style={{ marginBottom: "1.2em" }}> <span style={{ minWidth: "100px", display: "inline-block" }}> <a href="https://www.komoot.com/tour/416566840" target="blank" style={{ display: "inline-block", color: "white" }} > 90км </a> </span> <a href="gpx/21_reverse_small.gpx" target="blank" style={{ marginLeft: "1.2em" }} download > скачать </a> </Heading> <Heading>В сухих цифрах:</Heading> <Text> 17 июля в 9:00 на основной поляне проведем брифинг. Рекомендуем не пропускать, расскажем про трассу и актуальные новости по старту. </Text> <Text> СТАРТ ГОНКИ общий для обеих дистанций, будет находиться в 100 м от главной поляны. </Text> <Text> Для тех, кто не понял: в 10:30 утра общий старт. Старт общий! Для обеих дистанций! В 10:30! В 100 м от поляны! Все вместе! Еще есть вопросы по старту? </Text> <Text> Любые вопросы по перерегистрации (как участников, так и выбора трассы и дисциплины) должны быть решены и зафиксированы в зоне регистрации до 9:00 17 июля. </Text> <Text> Борьба за места происходит только внутри выбранной дисциплины. </Text> <Text> Если вы зарегистрировались на большой круг, но решили проехать малый, то мы просто зафиксируем ваше время. </Text> <Text> Для малой дистанции всего два призовых места, для нее и для него. </Text> <Text> На всех маршрутах вас ждут быстрые грунтовые дороги, техничные песчаные участки, изматывающие подъемы и захватывающие каменистые спуски. Сосновый лес иногда будет сменяться поселками. На укатанных лесных дорогах можно будет хорошо разглядеть не только облако оводов, быстро летящих за вами, но и лужи, броды, заброшенные ангары аэропорта и даже старую финскую железную дорогу. </Text> <Text> Если пройдет сильный дождь, трасса может сильно преобразиться, наше описание станет бессмысленным, а ваше приключение – беспощадным. </Text> <Text> Финиш обеих дистанций прямо у нашего лагеря, не нужно никуда идти, можно сразу валиться на землю. </Text> <Text> На трассе организованы три пункта питания для большого круга и два – для малого. Здесь вы можете пополнить запас воды во флягах и углеводов в теле. На всех пунктах питания есть аптечки, насосы и ремнаборы с камерами для ваших велосипедов. </Text> <Text> <Accent>Для большого круга:</Accent> <br /> <Accent>1 пункт питания</Accent> – 55 км маршрута <br /> <Accent>2 пункт питания</Accent> – 116 км маршрута <br /> <Accent>3 пункт питания</Accent> – 142 км маршрута <br /> </Text> <Text> <Accent>Для Малого круга:</Accent> <br /> <Accent>1 пункт питания</Accent> – 56 км маршрута <br /> <Accent>2 пункт питания</Accent> – 82 км маршрута </Text> <Text> Трасса в нескольких местах пересекает автодороги. Пожалуйста, сбавляйте скорость, смотрите по сторонам и выезжайте на дорогу с осторожностью. Будьте внимательны на закрытых поворотах, грунтовые и лесные дороги не лишены машин. </Text> <Text> Некоторые крутые спуски могут оканчиваться песком, камнями и узким проездом, будьте аккуратны. </Text> <Text> Если с вами случилось что-то серьезное, и вы не можете добраться до цивилизации, звоните нам. Но, пожалуйста, не надо этого делать, если вы просто устали. Наши номера будут написаны на карте в стартовом пакете. </Text> <Text> Если вы пробились и не взяли с собой запасную камеру, поздравляем. Идите пешком до ближайшего пункта питания, возможно, там вам помогут. Дальнейшее попадание в лагерь – теперь уже ваша забота и ваша личная ответственность. Мы вас, конечно, не бросим, но забрать сможем по мере возможностей. </Text> </div> </FaqContainer> </Layout> ); }; export default FaqPage;
const DrawCard = require('../../../drawcard.js'); class Astapor extends DrawCard { setupCardAbilities(ability) { this.action({ title: 'Kneel to give character -STR', condition: () => this.game.currentChallenge, cost: ability.costs.kneelSelf(), target: { activePromptTitle: 'Select a character', cardCondition: card => ( card.location === 'play area' && card.getType() === 'character' && this.game.currentChallenge.isParticipating(card)) }, handler: context => { this.untilEndOfChallenge(ability => ({ match: context.target, effect: ability.effects.modifyStrength(-this.tokens['gold']) })); this.game.addMessage('{0} uses {1} to give {2} -{3} STR until the end of the challenge', context.player, this, context.target, this.tokens['gold']); } }); } } Astapor.code = '06054'; module.exports = Astapor;
"use strict"; exports.__esModule = true; exports.c_toolbar = { ".pf-c-toolbar": { "c_toolbar_PaddingTop": { "name": "--pf-c-toolbar--PaddingTop", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar_PaddingRight": { "name": "--pf-c-toolbar--PaddingRight", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar_PaddingBottom": { "name": "--pf-c-toolbar--PaddingBottom", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar_PaddingLeft": { "name": "--pf-c-toolbar--PaddingLeft", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar_md_PaddingRight": { "name": "--pf-c-toolbar--md--PaddingRight", "value": "1.5rem", "values": [ "--pf-global--spacer--lg", "$pf-global--spacer--lg", "pf-size-prem(24px)", "1.5rem" ] }, "c_toolbar_md_PaddingLeft": { "name": "--pf-c-toolbar--md--PaddingLeft", "value": "1.5rem", "values": [ "--pf-global--spacer--lg", "$pf-global--spacer--lg", "pf-size-prem(24px)", "1.5rem" ] }, "c_toolbar_child_MarginLeft": { "name": "--pf-c-toolbar--child--MarginLeft", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar__bulk_select_MarginRight": { "name": "--pf-c-toolbar__bulk-select--MarginRight", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar__filter_MarginTop": { "name": "--pf-c-toolbar__filter--MarginTop", "value": "calc(1rem + 1rem)", "values": [ "calc(--pf-c-toolbar--PaddingBottom + --pf-global--spacer--md)", "calc(--pf-global--spacer--md + $pf-global--spacer--md)", "calc($pf-global--spacer--md + $pf-global--spacer--md)", "calc(pf-size-prem(16px) + pf-size-prem(16px))", "calc(1rem + 1rem)" ] }, "c_toolbar__filter_MarginLeft": { "name": "--pf-c-toolbar__filter--MarginLeft", "value": "0" }, "c_toolbar__filter_toggle_MarginLeft": { "name": "--pf-c-toolbar__filter-toggle--MarginLeft", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar__filter_toggle_m_expanded_Color": { "name": "--pf-c-toolbar__filter-toggle--m-expanded--Color", "value": "#151515", "values": [ "--pf-global--Color--100", "$pf-global--Color--100", "$pf-color-black-900", "#151515" ] }, "c_toolbar__sort_MarginLeft": { "name": "--pf-c-toolbar__sort--MarginLeft", "value": "0.5rem", "values": [ "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] }, "c_toolbar__action_group_child_MarginLeft": { "name": "--pf-c-toolbar__action-group--child--MarginLeft", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar__sort_action_group_MarginLeft": { "name": "--pf-c-toolbar__sort--action-group--MarginLeft", "value": "0.5rem", "values": [ "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] }, "c_toolbar__filter_action_group_MarginLeft": { "name": "--pf-c-toolbar__filter--action-group--MarginLeft", "value": "2rem", "values": [ "--pf-global--spacer--xl", "$pf-global--spacer--xl", "pf-size-prem(32px)", "2rem" ] }, "c_toolbar__action_list_MarginLeft": { "name": "--pf-c-toolbar__action-list--MarginLeft", "value": "0.5rem", "values": [ "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] }, "c_toolbar__sort_action_list_MarginLeft": { "name": "--pf-c-toolbar__sort--action-list--MarginLeft", "value": "0.5rem", "values": [ "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] }, "c_toolbar__total_items_FontSize": { "name": "--pf-c-toolbar__total-items--FontSize", "value": "0.875rem", "values": [ "--pf-global--FontSize--sm", "$pf-global--FontSize--sm", "pf-font-prem(14px)", "0.875rem" ] }, "c_toolbar__filter_list_MarginTop": { "name": "--pf-c-toolbar__filter-list--MarginTop", "value": "1rem", "values": [ "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] }, "c_toolbar__filter_list_c_button_MarginLeft": { "name": "--pf-c-toolbar__filter-list--c-button--MarginLeft", "value": "0.5rem", "values": [ "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] } }, ".pf-c-toolbar__filter-toggle": { "c_toolbar_child_MarginLeft": { "name": "--pf-c-toolbar--child--MarginLeft", "value": "1rem", "values": [ "--pf-c-toolbar__filter-toggle--MarginLeft", "--pf-global--spacer--md", "$pf-global--spacer--md", "pf-size-prem(16px)", "1rem" ] } }, ".pf-c-toolbar__filter + .pf-c-toolbar__action-group": { "c_toolbar_child_MarginLeft": { "name": "--pf-c-toolbar--child--MarginLeft", "value": "2rem", "values": [ "--pf-c-toolbar__filter--action-group--MarginLeft", "--pf-global--spacer--xl", "$pf-global--spacer--xl", "pf-size-prem(32px)", "2rem" ] } }, ".pf-c-toolbar__sort": { "c_toolbar_child_MarginLeft": { "name": "--pf-c-toolbar--child--MarginLeft", "value": "0.5rem", "values": [ "--pf-c-toolbar__sort--MarginLeft", "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] } }, ".pf-c-toolbar__sort + .pf-c-toolbar__action-group": { "c_toolbar_child_MarginLeft": { "name": "--pf-c-toolbar--child--MarginLeft", "value": "0.5rem", "values": [ "--pf-c-toolbar__sort--action-group--MarginLeft", "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] } }, ".pf-c-toolbar__sort + .pf-c-toolbar__action-list": { "c_toolbar_child_MarginLeft": { "name": "--pf-c-toolbar--child--MarginLeft", "value": "0.5rem", "values": [ "--pf-c-toolbar__sort--action-list--MarginLeft", "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] } }, ".pf-c-toolbar__action-list": { "c_toolbar_child_MarginLeft": { "name": "--pf-c-toolbar--child--MarginLeft", "value": "0.5rem", "values": [ "--pf-c-toolbar__action-list--MarginLeft", "--pf-global--spacer--sm", "$pf-global--spacer--sm", "pf-size-prem(8px)", "0.5rem" ] } } }; exports["default"] = exports.c_toolbar;
toCamelCase = (str) => { return str.replace(/[_-]\w/gi, (ch) => ch[1].toUpperCase()); }; module.exports = toCamelCase;
function validate(container_id){var final_flag=[];var final_answer;$(container_id+' .input-group').each(function(k3,v3){if($(this).children('input').length!=0) {method='text';} else if($(this).children('select').length!=0) {method='select';} else if($(this).children('textarea').length!=0) {method='textarea';} else{method=null;valid_type='nullable';} if(method=='text') {input_val=$(this).children('input').val();valid_type=$(this).find('input').data('validate');} else if(method=='select') {input_val=$(this).children('select').val();valid_type1=$(this).children('select').data('validate');valid_type=valid_type1=='nullable'?'nullable':'select_spcl';idropdown=$(this).children('select').attr('idropdown');} var current_flag=false;if(valid_type=='text'){current_flag=input_val.length>1?true:false}else if(valid_type=='number'){var no=/^\d+$/;current_flag=no.test(input_val);}else if(valid_type=='nospace'){var no=/^[a-zA-Z0-9-_@.]+$/;current_flag=no.test(input_val);}else if(valid_type=='nullable'){current_flag=true;}else if(valid_type=='email'){var rx=/^[A-Za-z0-9_\-\.]+@[A-Za-z0-9_\-\.]+?\.[A-Za-z0-9_\-\.]{2,8}$/;current_flag=rx.test(input_val);}else if(valid_type=='password'){current_flag=input_val.length>0?true:false;}else if(valid_type=='contact'){inp=parseInt(input_val,10);current_flag=inp<9999999999&&inp>1000000000?true:false;}else if(valid_type=='select_spcl'){current_flag=input_val==0||input_val==''?false:true;} if(!current_flag){$(this).removeClass('success').addClass('error');if(valid_type=='select_spcl') {$(this).children('.icontainer').removeClass('select2_theme').addClass('select2_red');$('.'+idropdown).removeClass('select2_theme').addClass('select2_red');}}else{$(this).removeClass('error').addClass('success');if(valid_type=='select_spcl') {$(this).children('.icontainer').removeClass('select2_theme select2_red').addClass('select2_green');$('.'+idropdown).removeClass('select2_theme select2_red').addClass('select2_green');}} final_flag.push(current_flag);if(k3==$(container_id+' .input-group').length-1){final_answer=true;$.each(final_flag,function(k2,v2){if(!v2){final_answer=false;}});yff=$('.pt-wrapper').outerHeight();y_h=$(container_id).outerHeight();if(yff<y_h) {$('.pt-wrapper').css('height',y_h);}}});return final_answer;}
import React from "react"; import { Flex, Box, Text, Stack, Link } from "@chakra-ui/core"; import { ArrowRight } from "react-feather"; import { Link as BrowserLink } from "react-router-dom"; export default function Home() { return ( <Stack m="6" spacing="6"> <PageLink url="/launches">Browse SpaceX Launches</PageLink> <PageLink url="/launch-pads">Browse SpaceX Launch Pads</PageLink> </Stack> ); } function PageLink({ url, children, ...rest }) { return ( <Link as={BrowserLink} to={url} {...rest}> <Flex justifyContent="space-between" p="6" boxShadow="md" borderWidth="1px" rounded="lg" > <Text fontSize="lg">{children}</Text> <Box as={ArrowRight} /> </Flex> </Link> ); }
/* istanbul ignore file */ export default function defaultScenario(server) { function createProvider(name, packages = []) { let provider = server.create('provider', { packagesTotal: packages.length, name }); packages.forEach((pkg) => { server.create('package', 'withTitles', { ...pkg, provider }); }); } let customProvider = server.create('provider', { name: 'Atlanta A&T Library', packagesSelected: 1, packagesTotal: 1 }); let customPackage = server.create('package', { provider: customProvider, name: 'Atlanta A&T Drumming Books', contentType: 'AggregatedFullText', isSelected: true, isCustom: true, selectedCount: 1, titleCount: 1 }); let customTitle = server.create('title', { name: 'Single, Double, and Triple Paradiddles', isTitleCustom: true, isPeerReviewed: false, isSelected: true, description: '', edition: '' }); server.create('resource', { package: customPackage, title: customTitle }); createProvider('Economist Intelligence Unit', [ { name: 'Business Briefings', contentType: 'AggregatedFullText', titleCount: 9 }, { name: 'Country Reports & Profiles (EIU)', contentType: 'AggregatedFullText', titleCount: 3 }, { name: 'EIU CityData', contentType: 'OnlineReference', titleCount: 1 }, { name: 'EIU Complete Country Coverage', contentType: 'OnlineReference', titleCount: 1 }, { name: 'EIU: Country Reports Archive (DFG Nationallizenz)', contentType: 'AggregatedFullText', titleCount: 2 } ]); createProvider('Edinburgh University Press', [ { name: 'Digimap Ordnance Survey', contentType: 'OnlineReference', titleCount: 1 }, { name: 'EdinburchUniversityPress', contentType: 'EJournal', titleCount: 2 }, { name: 'EdinburghUniversityPress (NESLi2)', contentType: 'EJournal', titleCount: 3 }, { name: 'Edinburgh University Press (SHEDL)', contentType: 'EJournal', titleCount: 2 }, { name: 'Edinburgh University Press Complete Collection (JISC)', contentType: 'EJournal', titleCount: 6 }, { name: 'Edinburgh University Press Complete Collection (SHEDL)', contentType: 'EJournal', titleCount: 3 } ]); server.createList('provider', 5, 'withPackagesAndTitles', { get packagesTotal() { return Math.floor(Math.random() * 10) + 1; } }); }
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; this.onInputChange = this.onInputChange.bind(this); this.onFormSubmit = this.onFormSubmit.bind(this); } onInputChange(event) { const value = event.target.value; this.setState({ term: value }); } onFormSubmit(event) { event.preventDefault(); //We need to go and fetch weather data this.props.fetchWeather(this.state.term); this.setState({ term: '' }); } render() { return ( <form className="input-group" onSubmit={ this.onFormSubmit }> <input placeholder="Example: Pasig City, Ph" className="form-control" value={ this.state.term } onChange={ this.onInputChange } /> <span className="input-group-btn"> <button type="submit" className="btn btn-secondary" onClick={ this.onFormSubmit } > Submit </button> </span> </form> ); } } function mapDispatchToProps(dispatch) { return bindActionCreators({ fetchWeather }, dispatch); } export default connect(null, mapDispatchToProps)(SearchBar);
import { useState, useEffect } from 'react' import { useSelector, shallowEqual } from 'react-redux' import _ from 'lodash' import moment from 'moment' import AssetSelect from './asset-select' import TimelyTransactions from './charts/timely-transactions' import TimelyVolume from './charts/timely-volume' import TransactionsByChain from './charts/transactions-by-chain' import TVLByChain from './charts/tvl-by-chain' import NetworkGraph from './network-graph' import TransfersTable from './transfers-table' import Widget from '../widget' import { crosschainTxs } from '../../lib/api/opensearch' import { getChain, chain_manager } from '../../lib/object/chain' import { getDenom, denomer } from '../../lib/object/denom' import { currency } from '../../lib/object/currency' import { numberFormat } from '../../lib/utils' export default function Crosschain() { const { chains, cosmos_chains, assets, denoms, tvl } = useSelector(state => ({ chains: state.chains, cosmos_chains: state.cosmos_chains, assets: state.assets, denoms: state.denoms, tvl: state.tvl }), shallowEqual) const { chains_data } = { ...chains } const { cosmos_chains_data } = { ...cosmos_chains } const { assets_data } = { ...assets } const { denoms_data } = { ...denoms } const { tvl_data } = { ...tvl } const [assetSelect, setAssetSelect] = useState(null) const [chartData, setChartData] = useState(null) const [timeFocus, setTimeFocus] = useState(moment().utc().startOf('day').valueOf()) const [transfersData, setTransfersData] = useState(null) const [crosschainTVLData, setCrosschainTVLData] = useState(null) const staging = process.env.NEXT_PUBLIC_SITE_URL?.includes('staging') const axelarChain = getChain('axelarnet', cosmos_chains_data) useEffect(() => { const controller = new AbortController() const getData = async () => { if (chains_data && cosmos_chains_data && denoms_data) { let response, data if (!controller.signal.aborted) { response = await crosschainTxs({ aggs: { from_chains: { terms: { field: 'send.sender_chain.keyword', size: 10000 }, aggs: { to_chains: { terms: { field: 'send.recipient_chain.keyword', size: 10000 }, aggs: { assets: { terms: { field: 'send.denom.keyword', size: 10000 }, aggs: { amounts: { sum: { field: 'send.amount', }, }, avg_amounts: { avg: { field: 'send.amount', }, }, max_amounts: { max: { field: 'send.amount', }, }, since: { min: { field: 'send.created_at.ms', }, }, }, }, }, }, }, }, }, }) } data = _.orderBy(response?.data?.map(t => { const asset = getDenom(t?.asset, denoms_data) return { ...t, from_chain: getChain(t?.from_chain, chains_data) || getChain(t?.from_chain, cosmos_chains_data), to_chain: getChain(t?.to_chain, chains_data) || getChain(t?.to_chain, cosmos_chains_data), asset, amount: denomer.amount(t?.amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), avg_amount: denomer.amount(t?.avg_amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), max_amount: denomer.amount(t?.max_amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), } }).map(t => { const price = t?.asset?.token_data?.[currency] || 0 return { ...t, value: (price * t.amount) || 0, avg_value: (price * t.avg_amount) || 0, max_value: (price * t.max_amount) || 0, } }), ['tx'], ['desc']).filter(t => assets_data?.findIndex(a => a?.id === t?.asset?.id && (!a.is_staging || staging)) > -1) let _data = [], ng_data = [] for (let i = 0; i < data.length; i++) { const transfer = data[i] if (transfer?.from_chain?.id !== axelarChain?.id && transfer?.to_chain?.id !== axelarChain?.id) { const from_transfer = _.cloneDeep(transfer) from_transfer.to_chain = axelarChain from_transfer.id = `${from_transfer.from_chain?.id}_${from_transfer.to_chain?.id}_${from_transfer.asset?.id}` ng_data.push(from_transfer) const to_transfer = _.cloneDeep(transfer) to_transfer.from_chain = axelarChain to_transfer.id = `${to_transfer.from_chain?.id}_${to_transfer.to_chain?.id}_${to_transfer.asset?.id}` ng_data.push(to_transfer) transfer.id = `${transfer.from_chain?.id}_${transfer.to_chain?.id}_${transfer.asset?.id}` _data.push(transfer) } else { transfer.id = `${transfer.from_chain?.id}_${transfer.to_chain?.id}_${transfer.asset?.id}` ng_data.push(transfer) _data.push(transfer) } } _data = Object.entries(_.groupBy(_data, 'id')).map(([key, value]) => { return { id: key, ..._.head(value), tx: _.sumBy(value, 'tx'), amount: _.sumBy(value, 'amount'), value: _.sumBy(value, 'value'), avg_amount: _.sumBy(value, 'amount') / _.sumBy(value, 'tx'), avg_value: _.sumBy(value, 'value') / _.sumBy(value, 'tx'), max_amount: _.maxBy(value, 'max_amount')?.max_amount, max_value: _.maxBy(value, 'max_value')?.max_value, since: _.minBy(value, 'since')?.since, } }) data = _.orderBy(_data, ['tx'], ['desc']) ng_data = Object.entries(_.groupBy(ng_data, 'id')).map(([key, value]) => { return { id: key, ..._.head(value), tx: _.sumBy(value, 'tx'), amount: _.sumBy(value, 'amount'), value: _.sumBy(value, 'value'), avg_amount: _.sumBy(value, 'amount') / _.sumBy(value, 'tx'), avg_value: _.sumBy(value, 'value') / _.sumBy(value, 'tx'), max_amount: _.maxBy(value, 'max_amount')?.max_amount, max_value: _.maxBy(value, 'max_value')?.max_value, since: _.minBy(value, 'since')?.since, } }) ng_data = _.orderBy(ng_data, ['tx'], ['desc']) setTransfersData({ data, ng_data }) } } getData() const interval = setInterval(() => getData(), 30 * 1000) return () => { controller?.abort() clearInterval(interval) } }, [chains_data, cosmos_chains_data, denoms_data]) useEffect(() => { const controller = new AbortController() const getData = async () => { if (chains_data && cosmos_chains_data && denoms_data) { const today = moment().utc().startOf('day') const daily_time_range = 30 const day_ms = 24 * 60 * 60 * 1000 let response, data if (!controller.signal.aborted) { response = await crosschainTxs({ aggs: { assets: { terms: { field: 'send.denom.keyword', size: 10000 }, aggs: { to_chains: { terms: { field: 'send.recipient_chain.keyword', size: 10000 }, aggs: { amounts: { sum: { field: 'send.amount', }, }, avg_amounts: { avg: { field: 'send.amount', }, }, max_amounts: { max: { field: 'send.amount', }, }, times: { terms: { field: 'send.created_at.day', size: 10000 }, aggs: { amounts: { sum: { field: 'send.amount', }, }, }, }, }, }, }, }, }, query: { range: { 'send.created_at.ms': { gte: moment(today).subtract(daily_time_range, 'days').valueOf() } } }, }) } data = _.orderBy(response?.data?.map(t => { const asset = getDenom(t?.asset, denoms_data) return { ...t, to_chain: getChain(t?.to_chain, chains_data) || getChain(t?.to_chain, cosmos_chains_data), asset, amount: denomer.amount(t?.amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), avg_amount: denomer.amount(t?.avg_amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), max_amount: denomer.amount(t?.max_amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), times: t?.times?.map(time => { return { ...time, amount: denomer.amount(time?.amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), avg_amount: denomer.amount(time?.avg_amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), max_amount: denomer.amount(time?.max_amount, asset?.id, assets_data, chain_manager.chain_id(t?.from_chain, chains_data)), } }), } }).map(t => { const price = t?.asset?.token_data?.[currency] || 0 return { ...t, value: (price * t.amount) || 0, avg_value: (price * t.avg_amount) || 0, max_value: (price * t.max_amount) || 0, times: t?.times?.map(time => { return { ...time, value: (price * time.amount) || 0, avg_value: (price * time.avg_amount) || 0, max_value: (price * time.max_amount) || 0, } }), } }), ['tx'], ['desc']).filter(t => assets_data?.findIndex(a => a?.id === t?.asset?.id && (!a.is_staging || staging)) > -1) let _data = [] for (let i = 0; i < data.length; i++) { const transfer = data[i] transfer.id = `${transfer.asset?.id}_${transfer.to_chain?.id}` _data.push(transfer) } _data = Object.entries(_.groupBy(_data, 'id')).map(([key, value]) => { return { id: key, ..._.head(value), tx: _.sumBy(value, 'tx'), amount: _.sumBy(value, 'amount'), value: _.sumBy(value, 'value'), avg_amount: _.sumBy(value, 'amount') / _.sumBy(value, 'tx'), avg_value: _.sumBy(value, 'value') / _.sumBy(value, 'tx'), max_amount: _.maxBy(value, 'max_amount')?.max_amount, max_value: _.maxBy(value, 'max_value')?.max_value, since: _.minBy(value, 'since')?.since, times: Object.entries(_.groupBy(value?.flatMap(v => v.times || []) || [], 'time')).map(([_key, _value]) => { return { time: Number(_key), tx: _.sumBy(_value, 'tx'), amount: _.sumBy(_value, 'amount'), value: _.sumBy(_value, 'value'), avg_amount: _.sumBy(_value, 'amount') / _.sumBy(_value, 'tx'), avg_value: _.sumBy(_value, 'value') / _.sumBy(_value, 'tx'), max_amount: _.maxBy(_value, 'max_amount')?.max_amount, max_value: _.maxBy(_value, 'max_value')?.max_value, } }), } }) data = _data data = Object.entries(_.groupBy(_.orderBy(data.map(t => { const times = [] for (let time = moment(today).subtract(daily_time_range, 'days').valueOf(); time <= today.valueOf(); time += day_ms) { const time_data = t.times?.find(_t => _t.time === time) || { time, tx: 0, amount: 0, value: 0, avg_amount: 0, avg_value: 0 } times.push(time_data) } return { ...t, times, } }), ['tx'], ['desc']), 'asset.id')).map(([key, value]) => { return { id: key, asset: _.head(value)?.asset, times: Object.entries(_.groupBy(value?.flatMap(v => v.times || []) || [], 'time')).map(([_key, _value]) => { return { time: Number(_key), tx: _.sumBy(_value, 'tx'), amount: _.sumBy(_value, 'amount'), value: _.sumBy(_value, 'value'), avg_amount: _.sumBy(_value, 'amount') / _.sumBy(_value, 'tx'), avg_value: _.sumBy(_value, 'value') / _.sumBy(_value, 'tx'), max_amount: _.maxBy(_value, 'max_amount')?.max_amount, max_value: _.maxBy(_value, 'max_value')?.max_value, } }), data: value, } }) setChartData({ data }) } } getData() const interval = setInterval(() => getData(), 30 * 1000) return () => { controller?.abort() clearInterval(interval) } }, [chains_data && cosmos_chains_data && denoms_data]) useEffect(() => { if (!assetSelect && chartData?.data?.[0]?.id) { setAssetSelect(chartData.data[0].id) } }, [assetSelect, chartData]) useEffect(() => { if (tvl_data) { const data = Object.entries(tvl_data).map(([key, value]) => { const chain = chains_data?.find(c => c?.id === _.head(key.split('_'))) const asset = assets_data?.find(a => a?.contracts?.findIndex(c => c?.chain_id === chain?.chain_id && c.contract_address === _.last(key.split('_'))) > -1) const denom = denoms_data?.find(d => d?.id === asset?.id) const amount = value const price = denom?.token_data?.[currency] || 0 const _value = (price * amount) || 0 return { chain, asset, denom, amount, value: _value, } }) setCrosschainTVLData({ data, updated_at: moment().valueOf() }) } }, [denoms_data, tvl_data]) return ( <div className="max-w-full mx-auto"> <div className="mb-4"> {assetSelect ? <div className="flex justify-start"> <AssetSelect assets={chartData?.data} assetSelect={assetSelect} setAssetSelect={a => setAssetSelect(a)} /> </div> : <div className="skeleton w-28 h-7 mb-3 ml-auto" /> } <div className="w-full grid grid-flow-row grid-cols-1 sm:grid-cols-2 gap-4 mt-2"> <Widget title={<span className="text-black dark:text-white text-base font-semibold">Transactions</span>} description={<span className="text-gray-400 dark:text-gray-500 text-xs font-normal">Number of transactions by day</span>} right={[assetSelect && chartData?.data?.find(t => t?.id === assetSelect)?.times?.find(t => t.time === timeFocus)].filter(t => t).map((t, i) => ( <div key={i} className="min-w-max text-right space-y-1"> <div className="flex items-center justify-end space-x-1.5"> <span className="font-mono text-base font-semibold"> {typeof t.tx === 'number' ? numberFormat(t.tx, '0,0') : '- '} </span> <span className="text-gray-400 dark:text-gray-600 text-base">TXs</span> </div> <div className="text-gray-400 dark:text-gray-500 text-2xs font-medium">{moment(t.time).utc().format('MMM, D YYYY [(UTC)]')}</div> </div> ))} contentClassName="items-start" className="shadow border-0 pb-0 px-2 sm:px-4" > <TimelyTransactions txsData={chartData?.data?.find(t => t?.id === assetSelect)} setTimeFocus={t => setTimeFocus(t)} /> </Widget> <Widget title={<span className="text-black dark:text-white text-base font-semibold">Volume</span>} description={<span className="text-gray-400 dark:text-gray-500 text-xs font-normal">Transfer volume by day</span>} right={[assetSelect && chartData?.data?.find(t => t?.id === assetSelect)?.times?.find(t => t.time === timeFocus)].filter(t => t).map((t, i) => ( <div key={i} className="min-w-max text-right space-y-1"> <div className="flex items-center justify-end space-x-1.5"> <span className="font-mono text-base font-semibold"> {typeof t.amount === 'number' ? numberFormat(t.amount, '0,0.00000000') : '- '} </span> <span className="text-gray-400 dark:text-gray-600 text-base">{chartData.data.find(_t => _t?.id === assetSelect)?.asset?.symbol}</span> </div> <div className="text-gray-400 dark:text-gray-500 text-2xs font-medium">{moment(t.time).utc().format('MMM, D YYYY [(UTC)]')}</div> </div> ))} contentClassName="items-start" className="shadow border-0 pb-0 px-2 sm:px-4" > <TimelyVolume volumeData={chartData?.data?.find(t => t?.id === assetSelect)} setTimeFocus={t => setTimeFocus(t)} /> </Widget> <Widget title={<span className="text-black dark:text-white text-base font-semibold">Transactions</span>} description={<span className="text-gray-400 dark:text-gray-500 text-xs font-normal">Number of transactions by destination chain</span>} right={[assetSelect && chartData?.data?.find(t => t?.id === assetSelect)].filter(t => t).map((t, i) => ( <div key={i} className="min-w-max text-right space-y-0.5"> <div className="flex items-center justify-end space-x-1.5"> <span className="font-mono text-base font-semibold"> {typeof _.sumBy(t.data, 'tx') === 'number' ? numberFormat(_.sumBy(t.data, 'tx'), '0,0') : '- '} </span> <span className="text-gray-400 dark:text-gray-600 text-base">TXs</span> </div> <div className="text-gray-400 dark:text-gray-500 text-xs font-medium">{t.data?.length || 0} Chains</div> </div> ))} className="shadow border-0 pb-0 px-2 sm:px-4" > <TransactionsByChain txsData={chartData?.data?.find(t => t?.id === assetSelect)} /> </Widget> <Widget title={<span className="text-black dark:text-white text-base font-semibold">TVL</span>} description={<span className="text-gray-400 dark:text-gray-500 text-xs font-normal">Total Value Locked on Axelar Network</span>} right={assetSelect && crosschainTVLData?.updated_at && ( <div className="min-w-max text-right space-y-1.5 -mt-0.5"> <div className="flex items-center justify-end space-x-1.5"> <span className="font-mono text-base font-semibold"> {typeof _.sumBy(crosschainTVLData.data?.filter(d => d?.asset?.id === assetSelect), 'amount') === 'number' ? numberFormat(_.sumBy(crosschainTVLData.data?.filter(d => d?.asset?.id === assetSelect), 'amount'), '0,0.00000000') : '- '} </span> <span className="text-gray-400 dark:text-gray-600 text-base">{crosschainTVLData.data?.find(_t => _t?.asset?.id === assetSelect)?.asset?.symbol}</span> </div> <div className="text-gray-400 dark:text-gray-500 text-2xs font-medium">{moment(crosschainTVLData.updated_at).format('MMM, D YYYY h:mm:ss A')}</div> </div> )} className="shadow border-0 pb-0 px-2 sm:px-4" > <TVLByChain tvlData={crosschainTVLData?.data?.filter(d => d?.asset?.id === assetSelect)} /> </Widget> </div> </div> <Widget title={<span className="text-black dark:text-white text-base font-semibold">Traffics</span>} description={<span className="text-gray-400 dark:text-gray-500 text-xs font-normal">Cross-chain on Axelar Network</span>} className="shadow border-0 my-6 px-4 sm:py-4" > <NetworkGraph data={transfersData?.ng_data} /> </Widget> <TransfersTable data={transfersData} /> </div> ) }
var app = new Vue({ el: '#invoice', data: { isProcessing: false, form: {}, errors: {} }, created: function () { Vue.set(this.$data, 'form', _form); }, methods: { addLine: function() { this.form.products.push({hsn_code:'', name: '', price: 0, qty: 1}); }, remove: function(product) { this.form.products.$remove(product); }, create: function() { // var base_url = '{!! url() !!}'; // console.log(base_url); $("#loader-wrapper").show(); // var input = $('#invoiceno'); // input.trigger('change'); // $('#hsn').trigger('change'); this.isProcessing = true; this.$http.post('http://paltani.com/invoease/public/invoices', this.form) .then(function(response) { if(response.data.created) { $("#loader-wrapper").hide(); window.location.href = 'http://paltani.com/invoease/public/invoices'; } }) .catch(function(response) { $("#loader-wrapper").hide(); this.isProcessing = false; Vue.set(this.$data, 'errors', response.data); }) }, update: function() { $("#loader-wrapper").show(); this.isProcessing = true; this.$http.put('http://paltani.com/invoease/public/invoices/' + this.form.invoice_id, this.form) .then(function(response) { window.location.href = 'http://paltani.com/invoease/public/invoices'; }) .catch(function(response) { $("#loader-wrapper").hide(); this.isProcessing = false; Vue.set(this.$data, 'errors', response.data); }) } } , computed: { subTotalofproduct: function() { return this.form.products.reduce(function(carry, product) { return carry + (parseFloat(product.qty) * parseFloat(product.price)); }, 0); }, subTotal: function() { return this.subTotalofproduct + parseFloat(this.form.other) + parseFloat(this.form.insurcharges) + parseFloat(this.form.fcharges) + parseFloat(this.form.lpcharges) ; }, grandTotal: function(){ if(this.form.tax){ var total= this.subTotal + parseFloat(18.00)*this.subTotal/100 ; } else{ var total= this.subTotal; } return total.toFixed(2); } } })
import { formatISO, fromUnixTime, formatDistanceToNow, format, getUnixTime, parseISO } from "date-fns"; // two options for observed_on_string in uploader are: // 2020-03-01 00:00 or 2021-03-24T14:40:25 // this is using the second format // https://github.com/inaturalist/inaturalist/blob/b12f16099fc8ad0c0961900d644507f6952bec66/spec/controllers/observation_controller_api_spec.rb#L161 const formatDateAndTime = timestamp => { const date = fromUnixTime( timestamp ); const formattedISODate = formatISO( date ); const stripTimeZone = formattedISODate.split( "-" ).slice( 0, -1 ); return stripTimeZone.join( "-" ); }; const createObservedOnStringForUpload = ( date ) => formatDateAndTime( getUnixTime( date || new Date( ) ) ); const displayDateTimeObsEdit = ( date ) => format( new Date( date ), "PPpp" ); const timeAgo = pastTime => formatDistanceToNow( new Date( pastTime ) ); const formatObsListTime = ( date ) => { const dateTime = "M/d/yy HH:mm a"; if ( typeof date === "string" ) { return format( parseISO( date ), dateTime ); } return format( date, dateTime ); }; export { formatDateAndTime, timeAgo, formatObsListTime, createObservedOnStringForUpload, displayDateTimeObsEdit };
'use strict'; var mongoose = require('mongoose'); var Schema = mongoose.Schema; var uuid = require('uuid-v4'); var loginTokenSchema = new Schema({ email: {type: String, required: true } , series: {type: String, required: true } , token: {type: String, required: true } , ip: { type: String, required: true } , created: { type: Date, required: true } , userAgent: {} , location: {} }); //Indexes loginTokenSchema.index({ email: 1, series: 1, token: 1 }); loginTokenSchema .virtual('id') .get(function() { return this._id.toHexString(); }); loginTokenSchema .virtual('cookieValue') .get(function() { return JSON.stringify( { email: this.email, series: this.series, token: this.token}); }); loginTokenSchema.pre('save', function(next) { // Automatically create the token this.token = uuid(); this.created = new Date(); next(); }); /** * LoginToken model * @type {Model} */ module.exports = mongoose.model('LoginToken', loginTokenSchema);
const isPalindrome = function isPalindrome(text) { }; module.exports = isPalindrome;
#pragma strict private var anim : Animator; public var grabPoint : Transform; public var grabRadius : float = 0.2; private var legs : GameObject; public var ClawDown : AudioClip; public var ClawGrab : AudioClip; public var ClawUp : AudioClip; private var sfx : AudioSource; function Awake () { anim = GetComponent.<Animator>(); sfx = GetComponent.<AudioSource>(); } function Update () { if (Input.GetButtonDown("A")) { if (!anim.GetCurrentAnimatorStateInfo(0).IsName("Base Layer.ClawDrop")) { anim.SetTrigger("FireClaw"); sfx.clip = ClawDown; sfx.Play(); } } } public function Grab() { var hit : Collider2D = Physics2D.OverlapCircle(grabPoint.position, grabRadius, LayerMask.GetMask("Legs")); sfx.clip = ClawGrab; sfx.Play(); Invoke("ClawReturnSound", 0.25); if (hit && hit.CompareTag("Legs")) { legs = hit.gameObject; legs.transform.parent = transform; legs.GetComponent.<LegsControl>().enabled = false; Destroy(legs.GetComponent.<Rigidbody2D>()); } } function ClawReturnSound() { sfx.clip = ClawUp; sfx.Play(); } public function CheckIfGotLegs() { if (legs) { PlayerPrefs.SetFloat("Legs", legs.GetComponent.<LegsControl>().speed); Application.LoadLevel("FlipTheSwitch_Scene"); } }
function applySearchTargetsTab(context, searchContext, urlTo) { if (searchContext !== undefined) { var resultMap = {}; $('#search-query').typeahead({ remote: { url: context + '/' + searchContext + '/filterbyjson/%QUERY', filter: function(items) { var searchResults = []; for (var i = 0; i < items.length; i++) { var item = items[i]; var label = item.name; if (label === undefined) { label = item.title; } var urls = ""; var fieldUrls = item.fieldUrls; for (var x = 0; x < fieldUrls.length; x++) { urls += fieldUrls[x].url + " "; } searchResults[i] = { value: label, url: item.url, field_url: urls, id: item.id }; } return searchResults; } }, template: '<p><strong>{{value}}</strong></p><p>{{field_url}}</p>', engine: Hogan }).on('typeahead:selected', function(event, datum) { //console.log("contextTo: " + urlTo + " " + datum.id); if (datum.field_url !== undefined) { $(this).val(datum.field_url); } if (urlTo !== undefined) { window.location.href = context + "/" + urlTo + "/" + datum.id + "&tabStatus=overview"; } else { window.location.href = context + "/" + searchContext + "/" + datum.id; } }); } } function scopeCheck(context) { var idle_timeout, SCOPE_URI = context + '/api/scope/', MIN_TEXT_LENGTH = 4, // minimum length annotation must have before being allowed to the doScope server TRIGGER_CHARS = ". ,;", // characters that force an doScope lookup IDLE_THRESHOLD = 2000; // doScope is also done after IDLE_THRESHOLD milliseconds of key idleness addButton = $('#addentry') searchButton = $('#search') // Does the Scope lookup var doScope = function(text) { $.ajax({ url: SCOPE_URI + text, dataType: 'json', success: function(data) { if (data) { addButton.css('background-color','green'); searchButton.css('background-color', 'green'); //console.log("success " + data); } else { addButton.css('background-color','red'); searchButton.css('background-color', 'red'); //console.log("success " + data); } }, error: function(jqXHR, textStatus, errorThrown) { addButton.css('background-color','red'); searchButton.css('background-color', 'red'); //console.log("error " + jqXHR.status + " " + textStatus + " " + errorThrown); } }); }; // Restarts the keyboard-idleness timeout var restartIdleTimeout = function(text) { if (idle_timeout) { window.clearTimeout(idle_timeout); } idle_timeout = window.setTimeout(function() { doScope(text); }, IDLE_THRESHOLD); }; $("#search-query").keyup(function() { var text = $(this).val(); if (text.length > MIN_TEXT_LENGTH) { restartIdleTimeout(text); if (TRIGGER_CHARS.indexOf(text[text.length - 1]) > -1) doScope(text); } }); } function licenceCheck(context) { var idle_timeout, LICENCE_URI = context + '/api/licence/', MIN_TEXT_LENGTH = 4, // minimum length annotation must have before being allowed to the doLicence server TRIGGER_CHARS = ". ,;", // characters that force an doScope lookup IDLE_THRESHOLD = 2000; // doLicence is also done after IDLE_THRESHOLD milliseconds of key idleness saveButton = $('#save') // Does the Licence lookup var doLicence = function(text) { $.ajax({ url: LICENCE_URI + text, dataType: 'json', success: function(data) { if (data) { saveButton.css('background-color','red'); //console.log("success " + data); } else { saveButton.css('background-color','green'); //console.log("success " + data); } }, error: function(jqXHR, textStatus, errorThrown) { saveButton.css('background-color','red'); //console.log("error " + jqXHR.status + " " + textStatus + " " + errorThrown); } }); }; // Restarts the keyboard-idleness timeout var restartIdleTimeout = function(text) { if (idle_timeout) { window.clearTimeout(idle_timeout); } idle_timeout = window.setTimeout(function() { doLicence(text); }, IDLE_THRESHOLD); }; $("#search-query").keyup(function() { var text = $(this).val(); if (text.length > MIN_TEXT_LENGTH) { restartIdleTimeout(text); if (TRIGGER_CHARS.indexOf(text[text.length - 1]) > -1) doLicence(text); } }); } function licenceHigherLevelCheck(context) { var idle_timeout, LICENCE_URI = context + '/api/licencelevel/', MIN_TEXT_LENGTH = 4, // minimum length annotation must have before being allowed to the doLicence server TRIGGER_CHARS = ". ,", // characters that force an doScope lookup IDLE_THRESHOLD = 2000; // doLicence is also done after IDLE_THRESHOLD milliseconds of key idleness saveButton = $('#save') // Does the Licence lookup var doLicence = function(text) { $.ajax({ url: LICENCE_URI + text, dataType: 'json', success: function(data) { if (data) { saveButton.css('background-color','yellow'); //console.log("success " + data); } else { saveButton.css('background-color','green'); //console.log("success " + data); } }, error: function(jqXHR, textStatus, errorThrown) { saveButton.css('background-color','yellow'); //console.log("error " + jqXHR.status + " " + textStatus + " " + errorThrown); } }); }; // Restarts the keyboard-idleness timeout var restartIdleTimeout = function(text) { if (idle_timeout) { window.clearTimeout(idle_timeout); } idle_timeout = window.setTimeout(function() { doLicence(text); }, IDLE_THRESHOLD); }; $("#search-query").keyup(function() { var text = $(this).val(); if (text.length > MIN_TEXT_LENGTH) { restartIdleTimeout(text); if (TRIGGER_CHARS.indexOf(text[text.length - 1]) > -1) doLicence(text); } }); } function licencePromptHigherLevel(context) { var idle_timeout, LICENCE_URI = context + 'api/licenceprompthigherlevel/', MIN_TEXT_LENGTH = 4, // minimum length annotation must have before being allowed to the doLicence server TRIGGER_CHARS = ". ,", // characters that force an doScope lookup IDLE_THRESHOLD = 2000; // doLicence is also done after IDLE_THRESHOLD milliseconds of key idleness saveButton = $('#filter') // Does the Licence lookup var doLicence = function(text) { $.ajax({ url: LICENCE_URI + text, dataType: 'json', success: function(data) { if (data) { saveButton.css('color','yellow'); // saveButton.css('background-color','yellow'); //console.log("success " + data); } else { saveButton.css('color','green'); // saveButton.css('background-color','green'); //console.log("success " + data); } }, error: function(jqXHR, textStatus, errorThrown) { saveButton.css('background-color','green'); //console.log("error " + jqXHR.status + " " + textStatus + " " + errorThrown); } }); }; // Restarts the keyboard-idleness timeout var restartIdleTimeout = function(text) { if (idle_timeout) { window.clearTimeout(idle_timeout); } idle_timeout = window.setTimeout(function() { doLicence(text); }, IDLE_THRESHOLD); }; $("#search-query").keyup(function() { var text = $(this).val(); if (text.length > MIN_TEXT_LENGTH) { restartIdleTimeout(text); if (TRIGGER_CHARS.indexOf(text[text.length - 1]) > -1) doLicence(text); } }); } function applySearch(context, searchContext, urlTo) { if (searchContext !== undefined) { var resultMap = {}; $('#search-query').typeahead({ remote: { url: context + "/" + searchContext + '/filterbyjson/%QUERY', filter: function(items) { var searchResults = []; for (var i = 0; i < items.length; i++) { var item = items[i]; var label = item.name; if (label === undefined) { label = item.title; } var urls = ""; var fieldUrls = item.fieldUrls; if (searchContext == 'instances') { fieldUrls = item.target.fieldUrls; } if (fieldUrls != null && (searchContext == 'instances' || searchContext == 'targets')) { for (var x = 0; x < fieldUrls.length; x++) { urls += fieldUrls[x].url + " "; } searchResults[i] = { value: label, url: item.url, field_url: urls, id: item.id }; } else { searchResults[i] = { value: label, url: item.url, id: item.id }; } } return searchResults; } }, template: '<p><strong>{{value}}</strong></p><p>{{field_url}}</p>', engine: Hogan }).on('typeahead:selected', function(event, datum) { //console.log("contextTo: " + urlTo); if (datum.field_url !== undefined) { $(this).val(datum.field_url); } if (urlTo !== undefined) { window.location.href = context + "/" + urlTo + "/" + datum.id; } else { window.location.href = context + "/" + searchContext + "/" + datum.id; } }); } } function applySearchExt(context, searchContext, urlTo) { if (searchContext !== undefined) { var resultMap = {}; $('#search-query').typeahead({ remote: { url: context + "/" + searchContext + '/filterbyjson/%QUERY', filter: function(items) { var searchResults = []; for (var i = 0; i < items.length; i++) { var item = items[i]; var label = item.name; if (label === undefined) { label = item.title; } searchResults[i] = { value: label, url: item.url, field_url: item.field_url, id: item.id }; } return searchResults; } }, template: '<p><strong>{{value}}</strong></p><p>{{field_url}}</p>', engine: Hogan }).on('typeahead:selected', function(event, datum) { //console.log("contextTo: " + urlTo); if (datum.field_url !== undefined) { $(this).val(datum.field_url); } if (urlTo !== undefined) { window.location.href = context + "/" + urlTo + "/" + datum.id; } else { window.location.href = context + "/" + searchContext + "/" + datum.id; } }); } } function showTree(data, id, key) { showTree(data, id, key, 3); } function showTree(data, id, key, sm) { var selectionMode = parseInt(sm); $(id).dynatree({ checkbox: true, selectMode: selectionMode, autoCollapse:false, activeVisible: true, children: data, onSelect: function(select, node) { //console.log("showTree : onSelect" ); // Get a list of all selected nodes, and convert to a key array: var selKeys = $.map(node.tree.getSelectedNodes(), function(node){ return node.data.key; }); document.getElementById(key).value = selKeys.join(","); //console.log("test: " + document.getElementById(key).value); // Get a list of all selected TOP nodes var selRootNodes = node.tree.getSelectedNodes(true); // ... and convert to a key array: var selRootKeys = $.map(selRootNodes, function(node){ return node.data.key; }); if((selRootKeys && selRootKeys.length)) { $('#savebutton').removeClass('disabled'); } else{ $('#savebutton').addClass('disabled'); } }, onCustomRender: function(node) { return "<a href=" + node.data.url + ">" + node.data.title + "</a>"; }, onPostInit: function(isReloading, isError) { var tree = $(id).dynatree('getTree'); var selKeys = $.map(tree.getSelectedNodes(), function(node){ node.makeVisible(); }); if((selKeys && selKeys.length)) { $('#savebutton').removeClass('disabled'); } else{ $('#savebutton').addClass('disabled'); } }, }); } function showTreeSelect(data, id, key) { var t = false; $(id).dynatree({ checkbox: false, selectMode: 3, children: data, onActivate: function(node) { if( node.data.url ){ // use href to change the current frame: window.location.href = node.data.url; } }, onCustomRender: function(node) { //node.data.addClass = "fancytree-plain"; return "<a href=" + node.data.url + ">" + node.data.title + "</a>"; }, onSelect: function(select, node) { console.log("showTreeSelect : onSelect, expand = " + select + ", node = " + node ); // Get a list of all selected nodes, and convert to a key array: var selKeys = $.map(node.tree.getSelectedNodes(), function(node){ return node.data.key; }); // Get a list of all selected TOP nodes var selRootNodes = node.tree.getSelectedNodes(true); // ... and convert to a key array: var selRootKeys = $.map(selRootNodes, function(node){ return node.data.key; }); }, onQueryExpand: function(expand, node) { //console.log("showTreeSelect : onQueryExpand, expand = " + expand + ", node = " + node ); if ($(node.span).hasClass("customClassBold")){ node.data.addClass = 'customClassBold'; node.visit(function(childNode){ childNode.data.addClass = 'customClassBold'; }); } else if ($(node.span).hasClass("customClassGray")) { node.data.addClass = 'customClassGray'; node.visit(function(childNode){ childNode.data.addClass = 'customClassGray'; }); } else if ($(node.span).hasClass("customClassDefault")) { node.data.addClass = 'customClassDefault'; node.visit(function(childNode){ childNode.data.addClass = 'customClassDefault'; }); } } }); } function showTreeParent(data, id, key) { $(id).dynatree({ checkbox: true, // Override class name for checkbox icon: classNames: {checkbox: "dynatree-radio"}, selectMode: 1, children: data, onPostInit: function(dtnode) { var tree = $(id).dynatree('getTree'); var selKeys = $.map(tree.getSelectedNodes(), function(node){ node.makeVisible(); }); if((selKeys && selKeys.length)) { $('#savebutton').removeClass('disabled'); } else{ $('#savebutton').addClass('disabled'); } }, onSelect: function(select, node) { console.log("showTreeParent : onSelect" ); var collectionareastreeselection = $("#collectionAreasTree").dynatree("getTree").getSelectedNodes(); var selKeys = $.map(node.tree.getSelectedNodes(), function(node){ return node.data.key; }); document.getElementById(key).value = selKeys; if (selKeys.length > 0){ //keys from TreeParent and keys from TreeCollectionAreas $('#collectionAreasTree').dynatree('disable'); $('#savebutton').removeClass('disabled'); } else { $('#collectionAreasTree').dynatree('enable'); if (collectionareastreeselection.length < 1 ) { $('#savebutton').addClass('disabled'); } } } // The following options are only required, if we have more than one tree on one page: // initId: "treeData", /* cookieId: "dynatree-Cb1", idPrefix: "dynatree-Cb1-" */ }); } function showTreeCollectionAreas(data, id, key) { var tree = $("#collectionTree").dynatree("getTree"); var tmp; $(id).dynatree({ checkbox: true, // Override class name for checkbox icon: classNames: {checkbox: "dynatree-radio"}, selectMode: 1, children: data, onSelect: function (isSelected, node) { var collections_ids = $.map(node.tree.getSelectedNodes(), function(node){ return node.data.collections_ids; }); if((tmp && tmp.length || collections_ids && collections_ids.length)){ $("#collectionTree").dynatree("getRoot").visit(function(node){ //----------------- ALL CHILDREN ------------------ $(node.span) .removeClass('customClassDefault') .removeClass('customClassGray') .removeClass('customClassBold') .addClass('customClassGray') }); } if((tmp && tmp.length)) // CHECK IF PREVIOUS SELECTION EXISTS AND SET IT TO DEFAULT { $.each( tmp, function( index, value ){ tree.getNodeByKey(value.toString()).select(false); var span = jQuery(tree.getNodeByKey(value.toString()).span); $(span) .removeClass('customClassDefault') .removeClass('customClassGray') .removeClass('customClassBold') .addClass('customClassGray') //on change make GRAY - the previous active ones }); } else //CASE WHEN COLLECTION_IDS NOT NULL { $('#savebutton').addClass('disabled'); } if((collections_ids && collections_ids.length)){ $.each( collections_ids, function( index, value ){ //console.log("each( collections_id [index] = " + collections_ids[index]); ptnode = tree.getNodeByKey(value.toString()); ptnode.select(true); //activates onSelect 'showTreeSelect' // -------------- HIGHLIGHT PARENT NODE WITH CHILDREN -------------- $(ptnode.span) .removeClass('customClassDefault') .removeClass('customClassGray') .removeClass('customClassBold') .addClass('customClassBold') ptnode.visit(function(childNode){ $(childNode.span) .removeClass('customClassDefault') .removeClass('customClassGray') .removeClass('customClassBold') .addClass('customClassBold') }); }); $('#collectionCountInArea').text('Top Collection count in selected area: ' + collections_ids.length); } tmp=collections_ids; if((tmp && tmp.length&&collections_ids && collections_ids.length)){ } else{ //---------- FOR ENTIRE TREE !!! ---------------- $("#collectionTree").dynatree("getRoot").visit(function(nodechild){ $(nodechild.span) .removeClass('customClassDefault') .removeClass('customClassGray') .removeClass('customClassBold') }); $('#collectionCountInArea').text(''); } } }); } function targetDateTime() { $('#start-date-time').datetimepicker( { dateFormat: "dd-mm-yy" } ); $('#end-date-time').datetimepicker( { dateFormat: "dd-mm-yy" } ); $("#crawlFrequency").change(function(event) { var frequency = $(this).val(); event.preventDefault(); if (frequency != 'DOMAINCRAWL') { //console.log('selected: ' + frequency); var d = new Date(); // for now var datetext = (d.getDate()+1) + "-" + (d.getMonth()+1) + "-" + d.getFullYear() + " 09:00"; $('#start-date-time').val(datetext); $('#start-date-time').attr('readonly','readonly'); } else { $("#start-date-time").val(''); } }); }
// This code will go away in later versions of Meteor, this is just a "polyfill" // until the next release of Meteor maybe 1.0.3? // if (typeof DDPCommon === 'undefined') { DDPCommon = {}; DDPCommon.MethodInvocation = function (options) { var self = this; // true if we're running not the actual method, but a stub (that is, // if we're on a client (which may be a browser, or in the future a // server connecting to another server) and presently running a // simulation of a server-side method for latency compensation // purposes). not currently true except in a client such as a browser, // since there's usually no point in running stubs unless you have a // zero-latency connection to the user. /** * @summary Access inside a method invocation. Boolean value, true if this invocation is a stub. * @locus Anywhere * @name isSimulation * @memberOf MethodInvocation * @instance * @type {Boolean} */ this.isSimulation = options.isSimulation; // call this function to allow other method invocations (from the // same client) to continue running without waiting for this one to // complete. this._unblock = options.unblock || function () {}; this._calledUnblock = false; // current user id /** * @summary The id of the user that made this method call, or `null` if no user was logged in. * @locus Anywhere * @name userId * @memberOf MethodInvocation * @instance */ this.userId = options.userId; // sets current user id in all appropriate server contexts and // reruns subscriptions this._setUserId = options.setUserId || function () {}; // On the server, the connection this method call came in on. /** * @summary Access inside a method invocation. The [connection](#meteor_onconnection) that this method was received on. `null` if the method is not associated with a connection, eg. a server initiated method call. * @locus Server * @name connection * @memberOf MethodInvocation * @instance */ this.connection = options.connection; // The seed for randomStream value generation this.randomSeed = options.randomSeed; // This is set by RandomStream.get; and holds the random stream state this.randomStream = null; }; _.extend(DDPCommon.MethodInvocation.prototype, { /** * @summary Call inside a method invocation. Allow subsequent method from this client to begin running in a new fiber. * @locus Server * @memberOf MethodInvocation * @instance */ unblock: function () { var self = this; self._calledUnblock = true; self._unblock(); }, /** * @summary Set the logged in user. * @locus Server * @memberOf MethodInvocation * @instance * @param {String | null} userId The value that should be returned by `userId` on this connection. */ setUserId: function (userId) { var self = this; if (self._calledUnblock) throw new Error("Can't call setUserId in a method after calling unblock"); self.userId = userId; // self._setUserId(userId); } }); }
const express = require('express'); let router = express.Router(); const authenticateOwner = require('../middlewares/authenticateOwner'); const visitsController = require('../controllers/VisitsController'); const placesController = require('../controllers/PlacesController'); const jwtMiddleware = require('express-jwt'); const secrets = require('../config/secrets'); router.route('/:id/visits') .get(placesController.find,visitsController.index) .post(placesController.find,visitsController.create); router.route('/:id/visits/:visit_id') .delete(visitsController.find, authenticateOwner, visitsController.destroy); module.exports = router;
import { isBlock, isVoid, hasVoid, isMeaningfulWhenBlank, hasMeaningfulWhenBlank } from './utilities' export default function Node (node, options) { node.isBlock = isBlock(node) node.isCode = node.nodeName === 'CODE' || node.parentNode.isCode node.isBlank = isBlank(node) node.flankingWhitespace = flankingWhitespace(node, options) return node } function isBlank (node) { return ( !isVoid(node) && !isMeaningfulWhenBlank(node) && /^\s*$/i.test(node.textContent) && !node.textContent.startsWith('\u2003') && // added by wizweishijun, for markdown safe space char !hasVoid(node) && !hasMeaningfulWhenBlank(node) ) } function flankingWhitespace (node, options) { if (node.isBlock || (options.preformattedCode && node.isCode)) { return { leading: '', trailing: '' } } var edges = edgeWhitespace(node.textContent) // abandon leading ASCII WS if left-flanked by ASCII WS if (edges.leadingAscii && isFlankedByWhitespace('left', node, options)) { edges.leading = edges.leadingNonAscii } // abandon trailing ASCII WS if right-flanked by ASCII WS if (edges.trailingAscii && isFlankedByWhitespace('right', node, options)) { edges.trailing = edges.trailingNonAscii } return { leading: edges.leading, trailing: edges.trailing } } function edgeWhitespace (string) { var m = string.match(/^(([ \t\r\n]*)(\s*))[\s\S]*?((\s*?)([ \t\r\n]*))$/) return { leading: m[1], // whole string for whitespace-only strings leadingAscii: m[2], leadingNonAscii: m[3], trailing: m[4], // empty for whitespace-only strings trailingNonAscii: m[5], trailingAscii: m[6] } } function isFlankedByWhitespace (side, node, options) { var sibling var regExp var isFlanked if (side === 'left') { sibling = node.previousSibling regExp = / $/ } else { sibling = node.nextSibling regExp = /^ / } if (sibling) { if (sibling.nodeType === 3) { isFlanked = regExp.test(sibling.nodeValue) } else if (options.preformattedCode && sibling.nodeName === 'CODE') { isFlanked = false } else if (sibling.nodeType === 1 && !isBlock(sibling)) { isFlanked = regExp.test(sibling.textContent) } } return isFlanked }
/* * * jQuery Editables 1.0.1 * * Date: Aug 11 2012 * Source: www.tectual.com.au, www.arashkarimzadeh.com * Author: Arash Karimzadeh (arash@tectual.com.au) * * Copyright (c) 2012 Tectual Pty. Ltd. * http://www.opensource.org/licenses/mit-license.php * */ (function($){ $.fn.editables = function(options){ var opts = $.extend( {}, $.fn.editables.options, options ); if(!$.isArray(opts.freezeOn)) opts.freezeOn = [opts.freezeOn]; if(!$.isArray(opts.editOn)) opts.editOn = [opts.editOn]; $('[data-type=editable]', this).each( function(){ var $this = $(this); var fn = function(ev){ var t = $($this.data('for')); if(opts.beforeFreeze.call(t, $this, ev)==false) return; t.hide(); $this.show(); t.trigger('onFreeze'); }; var evs= {}; $.each( opts.freezeOn, function(){ evs[this] = fn; } ); $($this.data('for')).hide().bind('onFreeze', opts.onFreeze).bind(evs); var fn = function(ev){ var t = $($this.data('for')); if(opts.beforeEdit.call($this, t, ev)==false) return; $this.hide(); t.show().focus(); $this.trigger('onEdit'); } var evs = {}; $.each( opts.editOn, function(){ evs[this] = fn; } ); $this.bind('onEdit', opts.onEdit).bind(evs); } ); return this; } $.fn.editables.options = { editOn: 'click', /* Event, Array[Events]: All jquery events */ beforeEdit: $.noop, /* Function: It is called before conversion, you can stop it by returning false */ onEdit: $.noop, /* Function: This function bind to editable item as event */ freezeOn: 'blur', /* Event, Array[Events]: All jquery events */ beforeFreeze: $.noop, /* Function: It is called before conversion, you can stop it by returning false */ onFreeze: $.noop /* Function: This function bind to edit field as event */ } })(jQuery);
import BackgroundTimer from 'react-native-background-timer' import React, { Component } from 'react'; import Icon from 'react-native-vector-icons/FontAwesome'; import {TouchableOpacity, Platform, Alert, Text, View, TextInput, Button, StyleSheet, TouchableHighlightBase} from 'react-native'; import {Picker, Image,CustomImage, TouchableHighlight} from 'react-native'; import styles from './Styles' import { AnimatedCircularProgress } from 'react-native-circular-progress'; import Sound from 'react-native-sound'; import { scale, verticalScale, moderateScale } from 'react-native-size-matters'; export default class StartButton extends Component{ constructor(props){ super(props); this.state = {beginningCount: 0, endCount: this.props.bellNumber.ending, endBellPlaying: false, middleBellNumber: this.props.timeToMil(this.props.bellNumber.middle,this.props.middleBellLengthType)} } startTimer = () => { this.props.setMeditation(true) this.props.setHasStarted(); // this.setState({middleBellNumber: // this.props.timeToMil(this.props.bellNumber.middle,this.props.middleBellLengthType), // beginningCount:this.props.bellNumber.beginning, endCount: this.props.bellNumber.ending}) BackgroundTimer.runBackgroundTimer(() => { if (this.props.meditationLength <= 0){ if ((this.props.bellNumber.ending-this.props.bellsStruck.ending) > 0){ const endingsound = new Sound(this.props.selectedBell.ending, null, (error) => { if (error) { console.log(JSON.stringify(error)) } endingsound.play(); this.props.setBellsStruck(this.props.bellsStruck.ending+1, 'ending') // this.setState({endCount: this.state.endCount-1, endBellPlaying: true}) }) } // BackgroundTimer.stopBackgroundTimer() if(this.props.meditating){ this.props.resetTimer() } this.props.setMeditation(false) // BackgroundTimer.stopBackgroundTimer(); // () => BackgroundTimer.stopBackgroundTimer(); return BackgroundTimer.stopBackgroundTimer(); }else{ if(this.props.meditationLength % 1000 == 0){ if (this.props.selectedBell.beginning!=undefined && (this.props.bellNumber.beginning-this.props.bellsStruck.beginning) > 0 && this.props.meditationLength % 10000 == 0){ const beginningsound = new Sound(this.props.selectedBell.beginning, null, (error) => { if (error) { console.log(JSON.stringify(error)) } beginningsound.play(); this.props.setBellsStruck(this.props.bellsStruck.beginning+1, 'beginning') }) } if (this.props.selectedBell.ending!=undefined && this.props.meditationLength <= ((this.props.bellNumber.ending-1)*10000) && (this.props.bellNumber.ending-this.props.bellsStruck.ending) > 0 && this.props.meditationLength % 10000 == 0){ // this.setState({endBellPlaying:true}) const endingsound = new Sound(this.props.selectedBell.ending, null, (error) => { if (error) { console.log(JSON.stringify(error)) } endingsound.play(); this.props.setBellsStruck(this.props.bellsStruck.ending+1, 'ending') // this.setState({endCount: this.state.endCount-1, endBellPlaying: true}) }) } if (this.props.selectedBell.middle!=undefined && this.props.meditationLength % this.props.bellNumber.middle == 0 && (this.props.selectedBell.beginning==undefined || this.props.bellNumber.beginning-this.props.bellsStruck.beginning == 0) && // (this.props.bellNumber.ending-this.props.bellsStruck.ending) == 0 ) (this.props.meditationLength > ((this.props.bellNumber.ending-1)*10000))){ // console.log(22) const middlesound = new Sound(this.props.selectedBell.middle, null, (error) => { if (error) { console.log(JSON.stringify(error)) } middlesound.play(); }); } this.props.setTimeFromLength(this.props.meditationLength)} this.props.setMeditationLength(this.props.meditationLength - 100) } }, 100) } meditationButton = () => { if (!this.props.meditating){ return( <TouchableOpacity onPress={ (this.props.meditationLength > 0 && !(this.props.meditating)) ? () => {BackgroundTimer.stopBackgroundTimer(); this.startTimer();} : () => ((this.props.meditating) ? Alert.alert('Press pause to stop the timer.') : Alert.alert('Please tap the clock and enter a meditation length.'))} title="Start"> <Image style={styles.startButton} source={require('./meditation_icon.png')} /> </TouchableOpacity> ); }else return( <Icon.Button name="pause" color={'black'} size={scale(35)} style={styles.pauseButton} backgroundColor="transparent" underlayColor="transparent" onPress={() => {BackgroundTimer.stopBackgroundTimer();this.props.setMeditation(false)}}> </Icon.Button> ); } getFill = () => { var timeProportion = Math.ceil(100*this.props.meditationLength/this.props.fullMeditationLength); if (timeProportion==Infinity || isNaN(timeProportion)){ return 100 }else{ return(100*this.props.meditationLength/this.props.fullMeditationLength) } } render(){ return( <AnimatedCircularProgress size={scale(170)} width={scale(3)} fill={this.getFill()} tintColor="#00e0ff" backgroundColor="#3d5875" style={styles.circularProgressBar}> { (fill) => { return this.meditationButton()} } </AnimatedCircularProgress> ); } }
function previewImages() { var preview = document.querySelector('#preview'); if (this.files) { [].forEach.call(this.files, readAndPreview); } function readAndPreview(file) { // Make sure `file.name` matches our extensions criteria if (!/\.(jpe?g|png|gif)$/i.test(file.name)) { return alert(file.name + " is not an image"); } // else... var reader = new FileReader(); reader.addEventListener("load", function() { var image = new Image(); image.height = 100; image.title = file.name; image.src = this.result; preview.appendChild(image); }); reader.readAsDataURL(file); } } document.querySelector('#file-input').addEventListener("change", previewImages);
document.getElementById('contact-btn').addEventListener('click', ()=>{ alert('Contact page javascript working'); });
import React from "react"; import { createDrawerNavigator } from "react-navigation-drawer"; import { HeaderButtons, Item } from "react-navigation-header-buttons"; import HeaderButton from "./HeaderButton"; import NavegacaoBottomTab from "./NavegacaoBottomTab"; import AvaliacaoScreen from "./Avaliacao"; import ConfiguracaoScreen from "./Configuracao"; import InfoScreen from "./Info"; import { createStackNavigator } from "react-navigation-stack"; function menuBack(headerTitle) { return navigationData => { return { headerTitle: headerTitle, headerLeft: () => ( <HeaderButtons HeaderButtonComponent={HeaderButton}> <Item title="Menu" iconName="arrow-back" iconSize={25} onPress={() => { navigationData.navigation.navigate({ routeName: "Home" }); }} /> </HeaderButtons> ) }; }; } const drawer = { Home: { screen: NavegacaoBottomTab }, Avaliacao: { screen: createStackNavigator({ Avaliacao: { screen: AvaliacaoScreen, navigationOptions: menuBack("Avaliação") } }), navigationOptions: { drawerLabel: "Avaliação" } }, Configuracao: { screen: createStackNavigator({ Configuracao: { screen: ConfiguracaoScreen, navigationOptions: menuBack("Configuração") } }), navigationOptions: { drawerLabel: "Configuração" } }, Info: { screen: createStackNavigator({ Info: { screen: InfoScreen, navigationOptions: menuBack("Informações") } }), navigationOptions: { drawerLabel: "Informações" } } }; export default createDrawerNavigator(drawer);
import hasInterface from '../../../../hasInterface'; import Collection from '../../../../java/util/Collection'; import OrientedCoordinateArray from './OrientedCoordinateArray'; import extend from '../../../../extend'; import SegmentString from './SegmentString'; import CoordinateArrays from '../geom/CoordinateArrays'; import TreeMap from '../../../../java/util/TreeMap'; export default function SegmentStringDissolver() { this.merger = null; this.ocaMap = new TreeMap(); if (arguments.length === 0) { SegmentStringDissolver.call(this, null); } else if (arguments.length === 1) { let merger = arguments[0]; this.merger = merger; } } extend(SegmentStringDissolver.prototype, { findMatching: function (oca, segString) { var matchSS = this.ocaMap.get(oca); return matchSS; }, getDissolved: function () { return this.ocaMap.values(); }, dissolve: function () { if (hasInterface(arguments[0], Collection)) { let segStrings = arguments[0]; for (var i = segStrings.iterator(); i.hasNext(); ) { this.dissolve(i.next()); } } else if (hasInterface(arguments[0], SegmentString)) { let segString = arguments[0]; var oca = new OrientedCoordinateArray(segString.getCoordinates()); var existing = this.findMatching(oca, segString); if (existing === null) { this.add(oca, segString); } else { if (this.merger !== null) { var isSameOrientation = CoordinateArrays.equals(existing.getCoordinates(), segString.getCoordinates()); this.merger.merge(existing, segString, isSameOrientation); } } } }, add: function (oca, segString) { this.ocaMap.put(oca, segString); }, interfaces_: function () { return []; }, getClass: function () { return SegmentStringDissolver; } }); function SegmentStringMerger() {} SegmentStringDissolver.SegmentStringMerger = SegmentStringMerger;
// note: this will require a install of the rollup utility to process // our plugin code import babel from 'rollup-plugin-babel'; import commonjs from 'rollup-plugin-commonjs'; export default { input: 'src/index.js', plugins: [ babel({ externalHelpers: false, exclude : 'node_modules/**' }), commonjs() ], output: [ { file: 'dist/vuex-i18n.es.js', format: 'es' }, { file: 'dist/vuex-i18n.cjs.js', format: 'cjs' }, { file: 'dist/vuex-i18n.umd.js', format: 'umd', name: 'vuexI18n' } ] };
define(["mvc/dataset/states","mvc/collection/collection-li","mvc/collection/collection-view","mvc/base-mvc","utils/localization"],function(a,b,c,d,e){"use strict";var f=b.DCListItemView,g=f.extend({className:f.prototype.className+" history-content",_setUpListeners:function(){f.prototype._setUpListeners.call(this),this.listenTo(this.model,{"change:populated change:visible":function(){this.render()}})},_getFoldoutPanelClass:function(){switch(this.model.get("collection_type")){case"list":return c.ListCollectionView;case"paired":return c.PairCollectionView;case"list:paired":return c.ListOfPairsCollectionView}throw new TypeError("Uknown collection_type: "+this.model.get("collection_type"))},_swapNewRender:function(b){f.prototype._swapNewRender.call(this,b);var c=this.model.get("populated")?a.OK:a.RUNNING;return this.$el.addClass("state-"+c),this.$el},toString:function(){var a=this.model?this.model+"":"(no model)";return"HDCAListItemView("+a+")"}});return g.prototype.templates=function(){var a=_.extend({},f.prototype.templates.warnings,{hidden:d.wrapTemplate(["<% if( !collection.visible ){ %>",'<div class="hidden-msg warningmessagesmall">',e("This collection has been hidden"),"</div>","<% } %>"],"collection")}),b=d.wrapTemplate(['<div class="title-bar clear" tabindex="0">','<span class="state-icon"></span>','<div class="title">','<span class="hid"><%- collection.hid %></span> ','<span class="name"><%- collection.name %></span>',"</div>",'<div class="subtitle"></div>',"</div>"],"collection");return _.extend({},f.prototype.templates,{warnings:a,titleBar:b})}(),{HDCAListItemView:g}}); //# sourceMappingURL=../../../maps/mvc/history/hdca-li.js.map
process.env.BENCHMARK_FOLDER = 'scripts/run-benchmarks/benchmarks/benchmark_results' import { createBenchmark, scanFolder } from 'helpers-fn' import { parse, resolve } from 'path' import { mapAsyncLimit } from 'rambdax' const benchmarksDir = resolve(__dirname, '../../source/benchmarks') async function getAllBenchmarks(){ const files = await scanFolder({ folder : benchmarksDir }) return files .filter(filePath => !filePath.includes('benchmark_results')) .map(filePath => parse(filePath).name) } export async function runSingleBenchmark(singleMethod){ console.time(`run.${ singleMethod }.benchmark`) const methodsWithBenchmarks = await getAllBenchmarks() if (!methodsWithBenchmarks.includes(singleMethod)){ throw new Error('this method has no benchmark') } const required = require(`${ benchmarksDir }/${ singleMethod }.js`) await createBenchmark({ [ singleMethod ] : required }) console.timeEnd(`run.${ singleMethod }.benchmark`) } export async function runAllBenchmarks(){ console.time('run.all.benchmarks') const methodsWithBenchmarks = await getAllBenchmarks() const iterable = async singleMethod => { const required = require(`${ benchmarksDir }/${ singleMethod }.js`) createBenchmark({ [ singleMethod ] : required }) } await mapAsyncLimit( iterable, 5, methodsWithBenchmarks ) console.timeEnd('run.all.benchmarks') }
export default { appName: 'Help Scout Challenge', appWelcomeMessage: 'Check out some books.', toggleNav: 'Toggle Navigation', books: 'Books', destroy: '(D)estroy', edit: 'Edit', cancel: 'Cancel', ok: 'OK', submit: 'Submit', back: 'Back', confirmBookDestroyTitle: 'Confirm Book Destruction', confirmBookDestroyMessage: 'Are you sure you want to destroy this book?', bookDestroyedTitle: 'It\'s gone!', bookDestroyedMessage: 'That book will bother you no more.', // pages layout: { title: 'Books', createBtn: '(A)dd a Book', }, tools: { showThumbnails: 'Show Thumbnails', showList: 'Show List', dateAdded: 'Date Added', }, create: { title: 'Add a Book', createBtn: 'Create', requiredFieldError: 'This field is required.', addField: 'add a field', fieldNamePlaceholder: 'Field Name', customField: 'Custom Field', }, // book attributes book: { title: 'Title', author: 'Author', year: 'Year', description: 'Description', image: 'Image', }, };
import React from 'react'; export default function Caption(props) { const { caption } = props; return ( <div className='caption'> {caption} </div> ); }
function formatResponse(id, result, error) { return { id, result, error, jsonrpc: "2.0" } } module.exports = formatResponse
const InitialState = { cartVisible: false, order: [], totalCost: 0, totalItems: 0, view: 'categories', payment: false, activeCategory: undefined, activeProduct: undefined, } const updateItem = (cartItem = {}, product, diff) => { const { id = product.id, title = product.title, price = product.price, quantity = product.quantity, rest = product.quantity, total = 0, inCart = 0, } = cartItem; return { id, title, price, quantity, rest: rest - diff, total: +(total + (price * diff)).toFixed(2), inCart: inCart + +diff, } } const updateOrderItems = (items, item, id) => { if (id === -1) { return [ ...items, item ] } if (item.inCart === 0) { return [ ...items.slice(0, id), ...items.slice(id + 1), ] } return [ ...items.slice(0, id), item, ...items.slice(id + 1), ] } const updateTotals = (order) => { let newTotalCost = 0, newTotalItems = 0; order.forEach(item => { newTotalCost = +(newTotalCost + item.total).toFixed(2); newTotalItems = newTotalItems + item.inCart; }) return { newTotalCost, newTotalItems } } const updateOrder = (state, action) => { const { order } = state; const { productItem, diff } = action; const inCartIdx = order.findIndex(prod => prod.id === productItem.id); const inCartProduct = order[inCartIdx]; const newCartItem = updateItem(inCartProduct, productItem, diff); const newOrder = updateOrderItems(order, newCartItem, inCartIdx); const { newTotalCost, newTotalItems } = updateTotals(newOrder); return state = { ...state, order: newOrder, totalCost: newTotalCost, totalItems: newTotalItems, }; } const reduser = (state = InitialState, action) => { console.log(action); switch (action.type) { case 'TO_MAIN_PAGE': return state = { ...state, view: 'categories', cartVisible: false, activeCategory: undefined, activeProduct: undefined, } case 'CART_TOGGLE': return state = { ...state, cartVisible: !state.cartVisible, } case 'CATEGORY_SELECTED': return state = { ...state, view: 'items', cartVisible: false, activeCategory: action.categoryItem, activeProduct: undefined, } case 'PRDOUCT_SELECTED': return state = { ...state, view: 'product', cartVisible: false, activeProduct: action.productItem, } case 'PRODUCT_ADDED_TO_CART': return updateOrder(state, action); case 'PRODUCT_REMOVED_FROM_CART': return updateOrder(state, action); case 'PRODUCT_DELETED_FROM_CART': return updateOrder(state, action); case 'START_PAYMENT': return { ...state, cartVisible: false, payment: 'progress', } case 'DONE_PAYMENT': return { ...state, payment: 'done', } case 'CLOSE_ORDER_LIST': return InitialState; default: return state; } } export default reduser;
"use strict"; let Promise; if (process.env.Q_PROMISE) Promise = require('q').Promise; else Promise = require('promise'); const redis = require('redis'); const Redlock = require('redlock'); const redisClient = redis.createClient(6379, 'localhost'); const options = { delayMs: 100, maxStaleRetries: 2 }; const watchdog = require('../index'); const should = require('should'); var redlockConfig = { // the expected clock drift; for more details // see http://redis.io/topics/distlock driftFactor: 0.01, // the max number of times Redlock will attempt // to lock a resource before erroring retryCount: 3, // the time in ms between attempts retryDelay: 100 }; const testTimeoutMs = 30000; // 30sec const denodeify = function (fn) { return new Promise((resolve, reject) => fn((err, res) => { if (err) reject(err); else resolve(res); })); }; function deleteRedisKey(key) { return denodeify(redisClient.del.bind(redisClient, key)); } function stopAndReleaseWatchdog() { return watchdog.stop() .then(() => watchdog.release()); } describe("single", function () { before(function () { // previous test process could be killed without free of redis key "a" return deleteRedisKey("a") .then(() => deleteRedisKey("redlock_list")); }); beforeEach(function () { watchdog.init(redisClient, Promise, options); }); afterEach(function () { return stopAndReleaseWatchdog() .then(() => deleteRedisKey("a")); }); it("without any redlock - watchdog should check empty redlock_list without an error", function() { this.timeout(testTimeoutMs); return new Promise((resolve) => { watchdog.start(); setTimeout(() => resolve(), 1000); }); }); it("with local heartbeat - watchdog should not remove it", function () { this.timeout(testTimeoutMs); let redlock = new Redlock([redisClient], redlockConfig); return redlock.lock('a', testTimeoutMs) .then(() => { return new Promise((resolve, reject) => { watchdog.listen('removeStaled', (key) => reject(new Error("lock " + key + " should not be removed"))); watchdog.addHeartbeat("a"); watchdog.start(); setTimeout(() => resolve(), 1000); }); }); }); it("not send heartbeat - watchdog should remove redlock", function () { this.timeout(testTimeoutMs); // add redlock (not add heartbeat) // check if redis key exists // run watchdog and wait until removeKey listener will fired // check if redis key not exists let redlock = new Redlock([redisClient], redlockConfig); return redlock.lock('a', testTimeoutMs) // allocate resource during test working time .then(() => denodeify((redisClient.get.bind(redisClient, 'a')))) .then((res) => { should(res).be.ok(); // add key "a" to redlock_list; not append it to local "heartbeat" // it may do other process in real system // @see watchdog.setHeartbeat return denodeify(redisClient.hset.bind(redisClient, "redlock_list", "a", "0")) }) .then(() => { return new Promise((resolve, reject) => { let to; watchdog.listen('removeStaled', (key) => { key.should.be.equal('a'); to && clearTimeout(to); resolve(); }); // start without heartbeat of "a" watchdog.start(); to = setTimeout(reject.bind(null, Error('key "a" not removed')), 1000); }); }) .then(() => denodeify((redisClient.get.bind(redisClient, 'a')))) .then((res) => should(res).be.null()); }); });
export const wkt_terminated = "POLYGON((3652 2330,3652 2332,3652 2334,3652 2336,3654 2338,3652 2340,3652 2342,3652 2344,3652 2346,3654 2348,3654 2350,3654 2352,3656 2354,3658 2356,3660 2358,3662 2360,3664 2360,3666 2360,3668 2360,3670 2360,3672 2362,3674 2362,3676 2362,3678 2362,3680 2362,3682 2362,3684 2362,3686 2364,3688 2364,3690 2364,3692 2366,3694 2366,3696 2366,3698 2366,3700 2366,3702 2366,3704 2366,3706 2366,3708 2366,3710 2366,3712 2366,3714 2366,3716 2368,3718 2370,3720 2372,3720 2374,3720 2376,3720 2378,3718 2380,3720 2382,3720 2384,3720 2386,3720 2388,3720 2390,3720 2392,3718 2394,3720 2396,3720 2398,3720 2400,3720 2402,3720 2404,3720 2406,3720 2408,3720 2410,3718 2412,3716 2414,3716 2416,3716 2418,3716 2420,3716 2422,3716 2424,3716 2426,3716 2428,3716 2430,3716 2432,3716 2434,3716 2436,3716 2438,3716 2440,3716 2442,3716 2444,3716 2446,3716 2448,3716 2450,3716 2452,3716 2454,3714 2456,3712 2458,3712 2460,3712 2462,3712 2464,3712 2466,3712 2468,3712 2470,3712 2472,3714 2474,3716 2476,3718 2478,3718 2480,3716 2482,3714 2484,3714 2486,3714 2488,3716 2490,3716 2492,3716 2494,3716 2496,3716 2498,3714 2500,3714 2502,3714 2504,3714 2506,3714 2508,3712 2510,3712 2512,3712 2514,3712 2516,3712 2518,3712 2520,3712 2522,3710 2524,3708 2526,3706 2528,3704 2530,3702 2528,3700 2526,3698 2526,3696 2526,3694 2526,3692 2524,3690 2524,3692 2526,3692 2528,3692 2530,3692 2532,3694 2534,3694 2536,3694 2538,3694 2540,3696 2542,3696 2544,3698 2546,3700 2548,3700 2550,3700 2552,3702 2554,3704 2556,3702 2558,3700 2560,3698 2562,3696 2564,3696 2566,3696 2568,3694 2570,3694 2572,3696 2574,3696 2576,3698 2578,3698 2580,3700 2582,3702 2584,3702 2586,3704 2588,3704 2590,3706 2592,3706 2594,3706 2596,3706 2598,3706 2600,3706 2602,3706 2604,3706 2606,3708 2608,3708 2610,3708 2612,3708 2614,3708 2616,3708 2618,3708 2620,3708 2622,3708 2624,3706 2626,3706 2628,3706 2630,3706 2632,3708 2634,3708 2636,3708 2638,3708 2640,3708 2642,3708 2644,3706 2646,3706 2648,3706 2650,3706 2652,3706 2654,3706 2656,3706 2658,3708 2660,3710 2662,3712 2664,3712 2666,3712 2668,3712 2670,3712 2672,3712 2674,3712 2676,3712 2678,3712 2680,3710 2682,3710 2684,3710 2686,3712 2686,3714 2686,3716 2686,3718 2686,3720 2688,3722 2690,3724 2692,3726 2694,3726 2696,3724 2698,3722 2700,3722 2702,3722 2704,3724 2706,3726 2708,3728 2710,3730 2712,3730 2714,3730 2716,3730 2718,3730 2720,3732 2722,3732 2724,3732 2726,3734 2728,3736 2730,3736 2732,3736 2734,3736 2736,3738 2738,3738 2740,3738 2742,3738 2744,3738 2746,3736 2748,3736 2750,3736 2752,3736 2754,3734 2756,3734 2758,3734 2760,3734 2762,3734 2764,3734 2766,3734 2768,3734 2770,3734 2772,3734 2774,3732 2776,3730 2778,3730 2780,3732 2782,3732 2784,3734 2786,3734 2788,3734 2790,3734 2792,3734 2794,3734 2796,3732 2798,3732 2800,3730 2802,3730 2804,3730 2806,3730 2808,3730 2810,3730 2812,3730 2814,3732 2816,3732 2818,3732 2820,3734 2822,3736 2822,3738 2824,3740 2826,3742 2828,3742 2830,3742 2832,3742 2834,3742 2836,3742 2838,3742 2840,3740 2842,3740 2844,3740 2846,3742 2848,3742 2850,3740 2852,3738 2854,3736 2856,3734 2856,3732 2856,3732 2858,3732 2860,3732 2862,3732 2864,3732 2866,3732 2868,3732 2870,3732 2872,3732 2874,3732 2876,3732 2878,3732 2880,3734 2882,3736 2882,3738 2882,3740 2882,3742 2882,3744 2882,3746 2884,3748 2884,3750 2884,3752 2882,3754 2882,3756 2882,3758 2882,3760 2882,3762 2884,3764 2884,3766 2884,3768 2884,3770 2882,3772 2882,3774 2882,3776 2880,3778 2880,3780 2880,3782 2880,3784 2880,3786 2878,3788 2876,3790 2874,3792 2874,3794 2874,3796 2874,3798 2874,3800 2874,3802 2874,3804 2874,3806 2874,3808 2874,3810 2876,3812 2878,3814 2880,3816 2882,3816 2884,3816 2886,3818 2888,3820 2888,3822 2888,3824 2890,3826 2890,3828 2890,3830 2890,3832 2890,3834 2888,3836 2886,3838 2884,3840 2884,3842 2886,3844 2886,3846 2884,3848 2882,3850 2884,3852 2884,3854 2886,3856 2886,3858 2886,3860 2886,3862 2886,3864 2886,3866 2884,3868 2884,3870 2884,3872 2884,3874 2884,3876 2884,3878 2884,3880 2884,3882 2886,3884 2886,3886 2888,3888 2890,3890 2892,3892 2892,3894 2894,3896 2896,3898 2896,3900 2898,3902 2898,3904 2896,3906 2896,3908 2896,3910 2898,3912 2898,3914 2898,3916 2898,3918 2896,3920 2898,3922 2898,3924 2898,3926 2898,3928 2900,3930 2900,3932 2902,3934 2902,3936 2902,3938 2902,3940 2902,3942 2902,3944 2902,3946 2902,3948 2902,3950 2902,3952 2900,3954 2898,3956 2896,3958 2896,3960 2896,3962 2894,3964 2894,3966 2896,3968 2896,3970 2896,3972 2896,3974 2896,3976 2896,3978 2898,3980 2898,3982 2896,3984 2896,3986 2896,3988 2898,3990 2900,3992 2902,3994 2902,3996 2902,3998 2902,4000 2900,4002 2902,4004 2902,4006 2902,4008 2900,4010 2900,4012 2900,4014 2900,4016 2900,4018 2902,4020 2904,4022 2906,4022 2908,4022 2910,4024 2910,4026 2910,4028 2910,4030 2908,4032 2906,4034 2906,4036 2904,4038 2904,4040 2906,4042 2908,4044 2908,4046 2908,4048 2908,4050 2910,4052 2912,4054 2914,4054 2916,4056 2918,4058 2920,4058 2922,4058 2924,4060 2926,4058 2928,4058 2930,4060 2930,4062 2932,4064 2932,4066 2932,4068 2930,4070 2930,4072 2932,4074 2932,4076 2932,4078 2932,4080 2932,4082 2932,4084 2932,4086 2932,4088 2932,4088 2930,4090 2928,4092 2926,4094 2924,4096 2924,4098 2924,4100 2924,4102 2926,4104 2928,4106 2930,4106 2932,4106 2934,4108 2936,4110 2936,4112 2936,4114 2934,4116 2932,4118 2932,4120 2932,4122 2932,4124 2934,4126 2934,4128 2936,4130 2936,4132 2936,4134 2936,4136 2934,4138 2932,4140 2930,4142 2928,4144 2928,4146 2930,4148 2932,4150 2934,4152 2936,4154 2936,4156 2938,4158 2938,4160 2938,4162 2940,4164 2940,4166 2940,4168 2940,4170 2940,4172 2940,4174 2940,4176 2942,4178 2942,4180 2942,4182 2942,4184 2942,4186 2942,4188 2942,4190 2942,4192 2942,4194 2942,4196 2944,4198 2944,4200 2942,4202 2942,4204 2942,4206 2942,4208 2942,4210 2942,4212 2940,4214 2938,4216 2938,4218 2938,4220 2938,4222 2938,4224 2940,4226 2940,4228 2938,4230 2938,4232 2938,4234 2938,4236 2938,4238 2938,4240 2936,4242 2934,4244 2932,4246 2932,4248 2932,4250 2932,4252 2932,4254 2932,4256 2932,4258 2932,4260 2932,4262 2932,4264 2932,4266 2932,4268 2932,4270 2932,4272 2932,4274 2932,4276 2932,4278 2934,4280 2932,4282 2932,4284 2934,4286 2934,4288 2936,4290 2936,4292 2934,4294 2934,4296 2934,4298 2934,4300 2934,4302 2934,4304 2934,4306 2934,4308 2934,4310 2936,4312 2936,4314 2938,4316 2938,4318 2938,4320 2938,4322 2938,4324 2940,4326 2940,4328 2940,4330 2940,4332 2942,4334 2942,4336 2942,4336 2940,4338 2938,4338 2936,4338 2934,4340 2932,4342 2930,4344 2928,4344 2926,4344 2924,4344 2922,4344 2920,4344 2918,4344 2916,4346 2914,4348 2912,4348 2910,4348 2908,4350 2906,4350 2904,4348 2902,4346 2900,4346 2898,4346 2896,4346 2894,4346 2892,4346 2890,4346 2888,4346 2886,4348 2884,4348 2882,4348 2880,4348 2878,4348 2876,4350 2874,4350 2872,4350 2870,4352 2868,4354 2866,4354 2864,4352 2862,4352 2860,4350 2858,4350 2856,4350 2854,4350 2852,4350 2850,4350 2848,4348 2846,4348 2844,4350 2842,4352 2840,4354 2838,4356 2836,4356 2834,4358 2832,4358 2830,4360 2828,4360 2826,4360 2824,4360 2822,4360 2820,4360 2818,4358 2816,4356 2814,4354 2812,4352 2810,4354 2808,4354 2806,4356 2804,4356 2802,4356 2800,4354 2798,4354 2796,4354 2794,4354 2792,4354 2790,4354 2788,4356 2786,4356 2784,4356 2782,4356 2780,4356 2778,4356 2776,4356 2774,4356 2772,4356 2770,4356 2768,4356 2766,4356 2764,4356 2762,4356 2760,4356 2758,4354 2756,4354 2754,4354 2752,4354 2750,4354 2748,4354 2746,4354 2744,4354 2742,4354 2740,4354 2738,4354 2736,4354 2734,4356 2732,4356 2730,4356 2728,4356 2726,4356 2724,4356 2722,4356 2720,4356 2718,4356 2716,4356 2714,4356 2712,4356 2710,4356 2708,4356 2706,4356 2704,4356 2702,4356 2700,4356 2698,4356 2696,4354 2694,4354 2692,4354 2690,4354 2688,4354 2686,4354 2684,4354 2682,4354 2680,4352 2680,4350 2680,4348 2678,4346 2676,4344 2674,4344 2672,4344 2670,4344 2668,4346 2666,4346 2664,4346 2662,4348 2660,4350 2658,4352 2656,4354 2656,4354 2654,4356 2652,4358 2650,4358 2648,4358 2646,4358 2644,4360 2642,4360 2640,4358 2638,4358 2636,4360 2634,4362 2632,4362 2630,4362 2628,4362 2626,4362 2624,4360 2622,4360 2620,4360 2618,4360 2616,4360 2614,4360 2612,4362 2610,4364 2608,4364 2606,4364 2604,4366 2602,4366 2600,4366 2598,4366 2596,4366 2594,4366 2592,4366 2590,4366 2588,4366 2586,4366 2584,4366 2582,4366 2580,4364 2578,4364 2576,4364 2574,4364 2572,4362 2570,4362 2568,4362 2566,4362 2564,4362 2562,4362 2560,4362 2558,4362 2556,4362 2554,4362 2552,4362 2550,4362 2548,4362 2546,4364 2544,4364 2542,4364 2540,4364 2538,4364 2536,4364 2534,4364 2532,4364 2530,4364 2528,4364 2526,4364 2524,4366 2522,4368 2520,4370 2518,4370 2516,4370 2514,4370 2512,4370 2510,4370 2508,4370 2506,4368 2504,4368 2502,4368 2500,4368 2498,4368 2496,4368 2494,4368 2492,4368 2490,4368 2488,4370 2486,4372 2484,4374 2482,4376 2480,4376 2478,4376 2476,4378 2474,4378 2472,4378 2470,4378 2468,4378 2466,4378 2464,4376 2462,4374 2460,4374 2458,4374 2456,4376 2454,4376 2452,4376 2450,4376 2448,4374 2446,4374 2444,4374 2442,4374 2440,4374 2438,4376 2436,4376 2434,4376 2432,4374 2430,4374 2428,4374 2426,4374 2424,4376 2422,4376 2420,4376 2418,4376 2416,4376 2414,4376 2412,4376 2410,4376 2408,4376 2406,4376 2404,4376 2402,4376 2400,4376 2398,4376 2396,4376 2394,4374 2392,4374 2390,4376 2388,4376 2386,4376 2384,4376 2382,4376 2380,4376 2378,4376 2376,4378 2374,4378 2372,4380 2370,4380 2368,4380 2366,4380 2364,4380 2362,4378 2360,4378 2358,4378 2356,4378 2354,4378 2352,4378 2350,4378 2348,4378 2346,4378 2344,4378 2342,4378 2340,4378 2338,4378 2336,4378 2334,4378 2332,4378 2330,4378 2328,4380 2326,4380 2324,4380 2322,4380 2320,4380 2318,4382 2316,4382 2314,4382 2312,4382 2310,4382 2308,4382 2306,4382 2304,4382 2302,4382 2300,4380 2298,4380 2296,4380 2294,4380 2292,4380 2290,4380 2288,4380 2286,4380 2284,4380 2282,4380 2280,4380 2278,4380 2276,4380 2274,4380 2272,4380 2270,4380 2268,4378 2266,4378 2264,4376 2262,4374 2260,4372 2258,4372 2256,4374 2254,4374 2252,4374 2250,4374 2248,4374 2246,4374 2244,4374 2242,4374 2240,4374 2238,4374 2236,4374 2234,4374 2232,4374 2230,4374 2228,4374 2226,4376 2224,4378 2222,4378 2220,4378 2218,4378 2216,4378 2214,4378 2212,4378 2210,4380 2208,4382 2206,4384 2204,4384 2202,4384 2200,4384 2198,4384 2196,4386 2194,4386 2192,4386 2190,4386 2188,4386 2186,4386 2184,4386 2182,4386 2180,4384 2178,4384 2176,4382 2174,4380 2172,4380 2170,4378 2168,4378 2166,4378 2164,4378 2162,4378 2160,4378 2158,4378 2156,4378 2154,4378 2152,4376 2150,4376 2148,4374 2148,4372 2146,4370 2144,4368 2144,4366 2142,4364 2140,4362 2140,4360 2140,4358 2138,4356 2136,4354 2134,4352 2132,4352 2130,4352 2128,4350 2126,4348 2124,4348 2122,4348 2120,4348 2118,4348 2116,4348 2114,4348 2112,4348 2110,4348 2108,4346 2106,4346 2104,4346 2102,4344 2102,4342 2102,4340 2102,4338 2100,4336 2098,4334 2096,4334 2094,4334 2092,4334 2090,4334 2088,4334 2086,4334 2084,4332 2082,4332 2080,4330 2078,4328 2076,4326 2074,4326 2072,4326 2070,4326 2068,4324 2066,4322 2066,4320 2066,4318 2066,4316 2066,4314 2066,4312 2064,4310 2064,4308 2064,4306 2064,4304 2064,4302 2064,4300 2064,4298 2064,4296 2064,4296 2066,4296 2068,4296 2070,4296 2072,4294 2074,4292 2076,4290 2078,4288 2080,4286 2082,4284 2080,4282 2078,4280 2076,4280 2074,4280 2072,4280 2070,4278 2070,4276 2070,4274 2070,4272 2070,4270 2070,4268 2070,4266 2070,4264 2070,4262 2070,4260 2072,4258 2070,4256 2070,4254 2072,4252 2070,4250 2068,4248 2068,4246 2068,4244 2068,4242 2066,4240 2066,4238 2066,4236 2066,4234 2066,4232 2066,4230 2068,4228 2068,4226 2068,4224 2068,4222 2070,4220 2072,4218 2072,4216 2074,4214 2076,4214 2078,4214 2080,4214 2082,4214 2084,4214 2086,4214 2088,4214 2090,4214 2092,4214 2094,4214 2096,4212 2098,4212 2100,4210 2102,4210 2104,4208 2106,4206 2108,4204 2110,4202 2110,4200 2112,4198 2114,4196 2114,4194 2114,4192 2116,4190 2116,4188 2116,4186 2116,4184 2118,4182 2120,4180 2120,4178 2120,4176 2120,4174 2120,4172 2120,4170 2120,4168 2118,4166 2118,4164 2118,4162 2116,4160 2116,4158 2116,4156 2116,4154 2116,4152 2116,4150 2118,4148 2120,4148 2122,4148 2124,4148 2126,4148 2128,4148 2130,4148 2132,4146 2134,4144 2136,4142 2138,4140 2138,4138 2138,4136 2138,4134 2140,4132 2142,4130 2144,4128 2144,4126 2144,4124 2144,4122 2144,4120 2144,4118 2142,4116 2144,4114 2146,4112 2148,4110 2150,4108 2152,4106 2152,4104 2150,4102 2148,4100 2146,4098 2144,4100 2142,4102 2140,4102 2138,4102 2136,4102 2134,4102 2132,4102 2130,4102 2128,4102 2126,4100 2124,4098 2122,4096 2120,4094 2118,4092 2116,4090 2114,4090 2112,4090 2110,4090 2108,4090 2106,4088 2104,4088 2102,4088 2100,4086 2098,4086 2096,4084 2094,4082 2094,4080 2094,4078 2094,4076 2094,4074 2092,4072 2090,4070 2090,4068 2090,4066 2092,4064 2094,4062 2094,4060 2094,4058 2096,4056 2098,4054 2096,4052 2094,4050 2092,4048 2092,4046 2092,4044 2090,4042 2090,4040 2088,4038 2088,4036 2088,4034 2088,4032 2088,4030 2090,4028 2092,4026 2092,4024 2092,4022 2092,4020 2092,4018 2090,4016 2090,4014 2090,4012 2088,4010 2088,4008 2088,4006 2088,4004 2088,4002 2090,4000 2092,3998 2094,3996 2094,3994 2094,3992 2094,3990 2096,3988 2094,3986 2092,3984 2092,3982 2092,3980 2092,3978 2092,3976 2092,3974 2092,3972 2092,3970 2092,3968 2092,3966 2092,3964 2092,3962 2090,3960 2088,3958 2086,3956 2084,3954 2082,3952 2082,3950 2082,3948 2082,3946 2082,3944 2082,3942 2082,3940 2082,3938 2082,3936 2082,3934 2082,3932 2082,3930 2084,3928 2084,3926 2084,3924 2084,3922 2084,3920 2084,3918 2086,3916 2084,3914 2082,3912 2082,3910 2082,3908 2082,3906 2080,3904 2078,3902 2078,3900 2078,3898 2078,3896 2078,3894 2078,3892 2078,3890 2078,3888 2078,3886 2078,3884 2078,3882 2078,3880 2078,3878 2078,3876 2078,3874 2078,3872 2078,3870 2076,3868 2076,3866 2076,3864 2076,3862 2078,3860 2078,3858 2078,3856 2076,3854 2076,3852 2076,3850 2074,3848 2074,3846 2074,3844 2076,3842 2078,3840 2080,3838 2080,3836 2080,3834 2080,3832 2082,3830 2082,3828 2084,3826 2086,3824 2088,3822 2088,3820 2088,3818 2088,3816 2088,3814 2088,3812 2088,3810 2088,3810 2090,3808 2092,3806 2094,3806 2096,3804 2098,3804 2100,3802 2102,3802 2104,3802 2106,3802 2108,3802 2110,3804 2112,3806 2114,3806 2116,3806 2118,3806 2120,3806 2122,3804 2124,3804 2126,3804 2128,3804 2130,3804 2132,3804 2134,3804 2136,3804 2138,3802 2140,3802 2142,3802 2144,3804 2146,3804 2148,3804 2150,3804 2152,3804 2154,3804 2156,3804 2158,3802 2160,3802 2162,3802 2164,3800 2166,3798 2168,3796 2170,3796 2172,3794 2174,3792 2176,3790 2178,3788 2180,3786 2182,3784 2182,3782 2184,3780 2186,3778 2188,3776 2188,3776 2190,3776 2192,3776 2194,3774 2196,3772 2198,3772 2200,3772 2202,3772 2204,3770 2206,3768 2208,3766 2210,3766 2212,3764 2214,3762 2216,3760 2218,3760 2220,3758 2222,3758 2224,3756 2226,3754 2228,3752 2230,3750 2230,3748 2232,3746 2232,3744 2230,3742 2228,3740 2228,3738 2230,3736 2230,3734 2230,3732 2230,3730 2230,3728 2230,3726 2230,3724 2232,3722 2232,3720 2232,3718 2232,3716 2230,3714 2228,3712 2228,3710 2228,3708 2228,3706 2230,3704 2230,3702 2230,3700 2232,3698 2232,3696 2232,3694 2232,3692 2232,3690 2232,3688 2232,3686 2232,3684 2232,3682 2232,3680 2232,3678 2234,3676 2236,3674 2238,3674 2240,3674 2242,3674 2244,3674 2246,3674 2248,3674 2250,3674 2252,3674 2254,3674 2256,3674 2258,3674 2260,3674 2262,3676 2264,3676 2266,3676 2268,3678 2270,3678 2272,3678 2274,3678 2276,3678 2278,3676 2280,3676 2282,3678 2284,3680 2286,3682 2286,3684 2286,3686 2288,3688 2290,3690 2290,3692 2288,3694 2286,3696 2286,3698 2286,3700 2286,3702 2286,3704 2288,3706 2290,3708 2292,3710 2294,3710 2296,3710 2298,3710 2300,3710 2302,3712 2304,3712 2306,3714 2308,3716 2310,3718 2312,3718 2314,3716 2316,3716 2318,3714 2320,3712 2322,3710 2324,3708 2326,3706 2328,3704 2330,3702 2330,3700 2330,3698 2330,3696 2330,3694 2330,3692 2330,3690 2330,3688 2330,3686 2330,3684 2330,3682 2332,3680 2332,3678 2332,3676 2332,3674 2330,3672 2330,3670 2330,3668 2330,3666 2330,3664 2330,3662 2330,3660 2330,3658 2328,3656 2328,3654 2328,3652 2330),(4064 2566,4066 2566,4066 2564,4068 2564,4068 2562,4070 2562,4072 2562,4074 2562,4076 2562,4078 2562,4078 2560,4080 2560,4080 2558,4082 2558,4082 2556,4082 2554,4082 2552,4082 2550,4082 2548,4084 2548,4084 2546,4086 2546,4086 2544,4088 2544,4090 2544,4092 2544,4094 2544,4094 2542,4096 2542,4098 2542,4100 2542,4102 2542,4102 2540,4104 2540,4106 2540,4106 2542,4108 2542,4108 2544,4110 2544,4108 2544,4108 2546,4106 2546,4106 2548,4106 2550,4108 2550,4110 2550,4110 2552,4112 2552,4112 2554,4114 2554,4114 2556,4116 2556,4116 2558,4114 2558,4114 2560,4112 2560,4112 2562,4110 2562,4110 2564,4108 2564,4106 2564,4106 2566,4106 2568,4104 2568,4104 2570,4102 2570,4102 2572,4100 2572,4100 2574,4098 2574,4096 2574,4094 2574,4092 2574,4090 2574,4088 2574,4086 2574,4084 2574,4082 2574,4080 2574,4078 2574,4076 2574,4074 2574,4072 2574,4070 2574,4070 2572,4068 2572,4068 2570,4066 2570,4066 2568,4064 2568,4064 2566),(4074 2318,4076 2318,4076 2316,4076 2314,4078 2314,4078 2312,4080 2312,4080 2310,4082 2310,4084 2310,4086 2310,4088 2310,4088 2308,4090 2308,4092 2308,4094 2308,4096 2308,4098 2308,4100 2308,4102 2308,4104 2308,4106 2308,4108 2308,4110 2308,4112 2308,4114 2308,4116 2308,4116 2310,4118 2310,4118 2312,4120 2312,4120 2314,4118 2314,4118 2316,4116 2316,4116 2318,4116 2320,4116 2322,4116 2324,4116 2326,4118 2326,4118 2328,4118 2330,4116 2330,4116 2332,4114 2332,4114 2334,4112 2334,4110 2334,4108 2334,4106 2334,4104 2334,4102 2334,4100 2334,4098 2334,4096 2334,4094 2334,4092 2334,4090 2334,4088 2334,4086 2334,4084 2334,4084 2332,4082 2332,4082 2330,4080 2330,4080 2328,4078 2328,4078 2326,4076 2326,4076 2324,4076 2322,4076 2320,4076 2318,4074 2318),(4106 2518,4108 2518,4108 2516,4108 2514,4108 2512,4110 2512,4110 2510,4110 2508,4110 2506,4110 2504,4110 2502,4110 2500,4110 2498,4110 2496,4110 2494,4112 2494,4112 2492,4114 2492,4114 2490,4116 2490,4116 2488,4116 2486,4116 2484,4118 2484,4118 2482,4120 2482,4120 2480,4122 2480,4124 2480,4124 2478,4124 2480,4126 2480,4126 2482,4128 2482,4128 2484,4128 2486,4128 2488,4128 2490,4128 2492,4128 2494,4128 2496,4130 2496,4130 2498,4132 2498,4132 2500,4134 2500,4134 2502,4132 2502,4132 2504,4132 2506,4132 2508,4134 2508,4134 2510,4134 2512,4134 2514,4134 2516,4134 2518,4132 2518,4132 2520,4130 2520,4130 2522,4128 2522,4126 2522,4126 2524,4124 2524,4124 2522,4122 2522,4120 2522,4118 2522,4116 2522,4114 2522,4112 2522,4110 2522,4110 2520,4108 2520,4108 2518,4106 2518),(4120 2262,4122 2262,4122 2260,4124 2260,4124 2258,4126 2258,4126 2256,4126 2254,4126 2252,4126 2250,4124 2250,4126 2250,4126 2248,4128 2248,4128 2246,4130 2246,4132 2246,4134 2246,4136 2246,4138 2246,4138 2248,4140 2248,4140 2250,4142 2250,4142 2252,4142 2254,4142 2256,4142 2258,4142 2260,4142 2262,4142 2264,4142 2266,4140 2266,4140 2268,4140 2270,4138 2270,4138 2272,4136 2272,4136 2274,4134 2274,4132 2274,4132 2276,4132 2278,4132 2280,4132 2282,4132 2284,4132 2286,4132 2288,4130 2288,4130 2290,4128 2290,4128 2292,4128 2290,4126 2290,4126 2288,4124 2288,4124 2286,4124 2284,4124 2282,4124 2280,4124 2278,4124 2276,4124 2274,4124 2272,4124 2270,4122 2270,4122 2268,4120 2268,4120 2266,4120 2264,4120 2262))" export const wkt_unterminated = "POLYGON((3652 2330,3652 2332,3652 2334,3652 2336,3654 2338,3652 2340,3652 2342,3652 2344,3652 2346,3654 2348,3654 2350,3654 2352,3656 2354,3658 2356,3660 2358,3662 2360,3664 2360,3666 2360,3668 2360,3670 2360,3672 2362,3674 2362,3676 2362,3678 2362,3680 2362,3682 2362,3684 2362,3686 2364,3688 2364,3690 2364,3692 2366,3694 2366,3696 2366,3698 2366,3700 2366,3702 2366,3704 2366,3706 2366,3708 2366,3710 2366,3712 2366,3714 2366,3716 2368,3718 2370,3720 2372,3720 2374,3720 2376,3720 2378,3718 2380,3720 2382,3720 2384,3720 2386,3720 2388,3720 2390,3720 2392,3718 2394,3720 2396,3720 2398,3720 2400,3720 2402,3720 2404,3720 2406,3720 2408,3720 2410,3718 2412,3716 2414,3716 2416,3716 2418,3716 2420,3716 2422,3716 2424,3716 2426,3716 2428,3716 2430,3716 2432,3716 2434,3716 2436,3716 2438,3716 2440,3716 2442,3716 2444,3716 2446,3716 2448,3716 2450,3716 2452,3716 2454,3714 2456,3712 2458,3712 2460,3712 2462,3712 2464,3712 2466,3712 2468,3712 2470,3712 2472,3714 2474,3716 2476,3718 2478,3718 2480,3716 2482,3714 2484,3714 2486,3714 2488,3716 2490,3716 2492,3716 2494,3716 2496,3716 2498,3714 2500,3714 2502,3714 2504,3714 2506,3714 2508,3712 2510,3712 2512,3712 2514,3712 2516,3712 2518,3712 2520,3712 2522,3710 2524,3708 2526,3706 2528,3704 2530,3702 2528,3700 2526,3698 2526,3696 2526,3694 2526,3692 2524,3690 2524,3692 2526,3692 2528,3692 2530,3692 2532,3694 2534,3694 2536,3694 2538,3694 2540,3696 2542,3696 2544,3698 2546,3700 2548,3700 2550,3700 2552,3702 2554,3704 2556,3702 2558,3700 2560,3698 2562,3696 2564,3696 2566,3696 2568,3694 2570,3694 2572,3696 2574,3696 2576,3698 2578,3698 2580,3700 2582,3702 2584,3702 2586,3704 2588,3704 2590,3706 2592,3706 2594,3706 2596,3706 2598,3706 2600,3706 2602,3706 2604,3706 2606,3708 2608,3708 2610,3708 2612,3708 2614,3708 2616,3708 2618,3708 2620,3708 2622,3708 2624,3706 2626,3706 2628,3706 2630,3706 2632,3708 2634,3708 2636,3708 2638,3708 2640,3708 2642,3708 2644,3706 2646,3706 2648,3706 2650,3706 2652,3706 2654,3706 2656,3706 2658,3708 2660,3710 2662,3712 2664,3712 2666,3712 2668,3712 2670,3712 2672,3712 2674,3712 2676,3712 2678,3712 2680,3710 2682,3710 2684,3710 2686,3712 2686,3714 2686,3716 2686,3718 2686,3720 2688,3722 2690,3724 2692,3726 2694,3726 2696,3724 2698,3722 2700,3722 2702,3722 2704,3724 2706,3726 2708,3728 2710,3730 2712,3730 2714,3730 2716,3730 2718,3730 2720,3732 2722,3732 2724,3732 2726,3734 2728,3736 2730,3736 2732,3736 2734,3736 2736,3738 2738,3738 2740,3738 2742,3738 2744,3738 2746,3736 2748,3736 2750,3736 2752,3736 2754,3734 2756,3734 2758,3734 2760,3734 2762,3734 2764,3734 2766,3734 2768,3734 2770,3734 2772,3734 2774,3732 2776,3730 2778,3730 2780,3732 2782,3732 2784,3734 2786,3734 2788,3734 2790,3734 2792,3734 2794,3734 2796,3732 2798,3732 2800,3730 2802,3730 2804,3730 2806,3730 2808,3730 2810,3730 2812,3730 2814,3732 2816,3732 2818,3732 2820,3734 2822,3736 2822,3738 2824,3740 2826,3742 2828,3742 2830,3742 2832,3742 2834,3742 2836,3742 2838,3742 2840,3740 2842,3740 2844,3740 2846,3742 2848,3742 2850,3740 2852,3738 2854,3736 2856,3734 2856,3732 2856,3732 2858,3732 2860,3732 2862,3732 2864,3732 2866,3732 2868,3732 2870,3732 2872,3732 2874,3732 2876,3732 2878,3732 2880,3734 2882,3736 2882,3738 2882,3740 2882,3742 2882,3744 2882,3746 2884,3748 2884,3750 2884,3752 2882,3754 2882,3756 2882,3758 2882,3760 2882,3762 2884,3764 2884,3766 2884,3768 2884,3770 2882,3772 2882,3774 2882,3776 2880,3778 2880,3780 2880,3782 2880,3784 2880,3786 2878,3788 2876,3790 2874,3792 2874,3794 2874,3796 2874,3798 2874,3800 2874,3802 2874,3804 2874,3806 2874,3808 2874,3810 2876,3812 2878,3814 2880,3816 2882,3816 2884,3816 2886,3818 2888,3820 2888,3822 2888,3824 2890,3826 2890,3828 2890,3830 2890,3832 2890,3834 2888,3836 2886,3838 2884,3840 2884,3842 2886,3844 2886,3846 2884,3848 2882,3850 2884,3852 2884,3854 2886,3856 2886,3858 2886,3860 2886,3862 2886,3864 2886,3866 2884,3868 2884,3870 2884,3872 2884,3874 2884,3876 2884,3878 2884,3880 2884,3882 2886,3884 2886,3886 2888,3888 2890,3890 2892,3892 2892,3894 2894,3896 2896,3898 2896,3900 2898,3902 2898,3904 2896,3906 2896,3908 2896,3910 2898,3912 2898,3914 2898,3916 2898,3918 2896,3920 2898,3922 2898,3924 2898,3926 2898,3928 2900,3930 2900,3932 2902,3934 2902,3936 2902,3938 2902,3940 2902,3942 2902,3944 2902,3946 2902,3948 2902,3950 2902,3952 2900,3954 2898,3956 2896,3958 2896,3960 2896,3962 2894,3964 2894,3966 2896,3968 2896,3970 2896,3972 2896,3974 2896,3976 2896,3978 2898,3980 2898,3982 2896,3984 2896,3986 2896,3988 2898,3990 2900,3992 2902,3994 2902,3996 2902,3998 2902,4000 2900,4002 2902,4004 2902,4006 2902,4008 2900,4010 2900,4012 2900,4014 2900,4016 2900,4018 2902,4020 2904,4022 2906,4022 2908,4022 2910,4024 2910,4026 2910,4028 2910,4030 2908,4032 2906,4034 2906,4036 2904,4038 2904,4040 2906,4042 2908,4044 2908,4046 2908,4048 2908,4050 2910,4052 2912,4054 2914,4054 2916,4056 2918,4058 2920,4058 2922,4058 2924,4060 2926,4058 2928,4058 2930,4060 2930,4062 2932,4064 2932,4066 2932,4068 2930,4070 2930,4072 2932,4074 2932,4076 2932,4078 2932,4080 2932,4082 2932,4084 2932,4086 2932,4088 2932,4088 2930,4090 2928,4092 2926,4094 2924,4096 2924,4098 2924,4100 2924,4102 2926,4104 2928,4106 2930,4106 2932,4106 2934,4108 2936,4110 2936,4112 2936,4114 2934,4116 2932,4118 2932,4120 2932,4122 2932,4124 2934,4126 2934,4128 2936,4130 2936,4132 2936,4134 2936,4136 2934,4138 2932,4140 2930,4142 2928,4144 2928,4146 2930,4148 2932,4150 2934,4152 2936,4154 2936,4156 2938,4158 2938,4160 2938,4162 2940,4164 2940,4166 2940,4168 2940,4170 2940,4172 2940,4174 2940,4176 2942,4178 2942,4180 2942,4182 2942,4184 2942,4186 2942,4188 2942,4190 2942,4192 2942,4194 2942,4196 2944,4198 2944,4200 2942,4202 2942,4204 2942,4206 2942,4208 2942,4210 2942,4212 2940,4214 2938,4216 2938,4218 2938,4220 2938,4222 2938,4224 2940,4226 2940,4228 2938,4230 2938,4232 2938,4234 2938,4236 2938,4238 2938,4240 2936,4242 2934,4244 2932,4246 2932,4248 2932,4250 2932,4252 2932,4254 2932,4256 2932,4258 2932,4260 2932,4262 2932,4264 2932,4266 2932,4268 2932,4270 2932,4272 2932,4274 2932,4276 2932,4278 2934,4280 2932,4282 2932,4284 2934,4286 2934,4288 2936,4290 2936,4292 2934,4294 2934,4296 2934,4298 2934,4300 2934,4302 2934,4304 2934,4306 2934,4308 2934,4310 2936,4312 2936,4314 2938,4316 2938,4318 2938,4320 2938,4322 2938,4324 2940,4326 2940,4328 2940,4330 2940,4332 2942,4334 2942,4336 2942,4336 2940,4338 2938,4338 2936,4338 2934,4340 2932,4342 2930,4344 2928,4344 2926,4344 2924,4344 2922,4344 2920,4344 2918,4344 2916,4346 2914,4348 2912,4348 2910,4348 2908,4350 2906,4350 2904,4348 2902,4346 2900,4346 2898,4346 2896,4346 2894,4346 2892,4346 2890,4346 2888,4346 2886,4348 2884,4348 2882,4348 2880,4348 2878,4348 2876,4350 2874,4350 2872,4350 2870,4352 2868,4354 2866,4354 2864,4352 2862,4352 2860,4350 2858,4350 2856,4350 2854,4350 2852,4350 2850,4350 2848,4348 2846,4348 2844,4350 2842,4352 2840,4354 2838,4356 2836,4356 2834,4358 2832,4358 2830,4360 2828,4360 2826,4360 2824,4360 2822,4360 2820,4360 2818,4358 2816,4356 2814,4354 2812,4352 2810,4354 2808,4354 2806,4356 2804,4356 2802,4356 2800,4354 2798,4354 2796,4354 2794,4354 2792,4354 2790,4354 2788,4356 2786,4356 2784,4356 2782,4356 2780,4356 2778,4356 2776,4356 2774,4356 2772,4356 2770,4356 2768,4356 2766,4356 2764,4356 2762,4356 2760,4356 2758,4354 2756,4354 2754,4354 2752,4354 2750,4354 2748,4354 2746,4354 2744,4354 2742,4354 2740,4354 2738,4354 2736,4354 2734,4356 2732,4356 2730,4356 2728,4356 2726,4356 2724,4356 2722,4356 2720,4356 2718,4356 2716,4356 2714,4356 2712,4356 2710,4356 2708,4356 2706,4356 2704,4356 2702,4356 2700,4356 2698,4356 2696,4354 2694,4354 2692,4354 2690,4354 2688,4354 2686,4354 2684,4354 2682,4354 2680,4352 2680,4350 2680,4348 2678,4346 2676,4344 2674,4344 2672,4344 2670,4344 2668,4346 2666,4346 2664,4346 2662,4348 2660,4350 2658,4352 2656,4354 2656,4354 2654,4356 2652,4358 2650,4358 2648,4358 2646,4358 2644,4360 2642,4360 2640,4358 2638,4358 2636,4360 2634,4362 2632,4362 2630,4362 2628,4362 2626,4362 2624,4360 2622,4360 2620,4360 2618,4360 2616,4360 2614,4360 2612,4362 2610,4364 2608,4364 2606,4364 2604,4366 2602,4366 2600,4366 2598,4366 2596,4366 2594,4366 2592,4366 2590,4366 2588,4366 2586,4366 2584,4366 2582,4366 2580,4364 2578,4364 2576,4364 2574,4364 2572,4362 2570,4362 2568,4362 2566,4362 2564,4362 2562,4362 2560,4362 2558,4362 2556,4362 2554,4362 2552,4362 2550,4362 2548,4362 2546,4364 2544,4364 2542,4364 2540,4364 2538,4364 2536,4364 2534,4364 2532,4364 2530,4364 2528,4364 2526,4364 2524,4366 2522,4368 2520,4370 2518,4370 2516,4370 2514,4370 2512,4370 2510,4370 2508,4370 2506,4368 2504,4368 2502,4368 2500,4368 2498,4368 2496,4368 2494,4368 2492,4368 2490,4368 2488,4370 2486,4372 2484,4374 2482,4376 2480,4376 2478,4376 2476,4378 2474,4378 2472,4378 2470,4378 2468,4378 2466,4378 2464,4376 2462,4374 2460,4374 2458,4374 2456,4376 2454,4376 2452,4376 2450,4376 2448,4374 2446,4374 2444,4374 2442,4374 2440,4374 2438,4376 2436,4376 2434,4376 2432,4374 2430,4374 2428,4374 2426,4374 2424,4376 2422,4376 2420,4376 2418,4376 2416,4376 2414,4376 2412,4376 2410,4376 2408,4376 2406,4376 2404,4376 2402,4376 2400,4376 2398,4376 2396,4376 2394,4374 2392,4374 2390,4376 2388,4376 2386,4376 2384,4376 2382,4376 2380,4376 2378,4376 2376,4378 2374,4378 2372,4380 2370,4380 2368,4380 2366,4380 2364,4380 2362,4378 2360,4378 2358,4378 2356,4378 2354,4378 2352,4378 2350,4378 2348,4378 2346,4378 2344,4378 2342,4378 2340,4378 2338,4378 2336,4378 2334,4378 2332,4378 2330,4378 2328,4380 2326,4380 2324,4380 2322,4380 2320,4380 2318,4382 2316,4382 2314,4382 2312,4382 2310,4382 2308,4382 2306,4382 2304,4382 2302,4382 2300,4380 2298,4380 2296,4380 2294,4380 2292,4380 2290,4380 2288,4380 2286,4380 2284,4380 2282,4380 2280,4380 2278,4380 2276,4380 2274,4380 2272,4380 2270,4380 2268,4378 2266,4378 2264,4376 2262,4374 2260,4372 2258,4372 2256,4374 2254,4374 2252,4374 2250,4374 2248,4374 2246,4374 2244,4374 2242,4374 2240,4374 2238,4374 2236,4374 2234,4374 2232,4374 2230,4374 2228,4374 2226,4376 2224,4378 2222,4378 2220,4378 2218,4378 2216,4378 2214,4378 2212,4378 2210,4380 2208,4382 2206,4384 2204,4384 2202,4384 2200,4384 2198,4384 2196,4386 2194,4386 2192,4386 2190,4386 2188,4386 2186,4386 2184,4386 2182,4386 2180,4384 2178,4384 2176,4382 2174,4380 2172,4380 2170,4378 2168,4378 2166,4378 2164,4378 2162,4378 2160,4378 2158,4378 2156,4378 2154,4378 2152,4376 2150,4376 2148,4374 2148,4372 2146,4370 2144,4368 2144,4366 2142,4364 2140,4362 2140,4360 2140,4358 2138,4356 2136,4354 2134,4352 2132,4352 2130,4352 2128,4350 2126,4348 2124,4348 2122,4348 2120,4348 2118,4348 2116,4348 2114,4348 2112,4348 2110,4348 2108,4346 2106,4346 2104,4346 2102,4344 2102,4342 2102,4340 2102,4338 2100,4336 2098,4334 2096,4334 2094,4334 2092,4334 2090,4334 2088,4334 2086,4334 2084,4332 2082,4332 2080,4330 2078,4328 2076,4326 2074,4326 2072,4326 2070,4326 2068,4324 2066,4322 2066,4320 2066,4318 2066,4316 2066,4314 2066,4312 2064,4310 2064,4308 2064,4306 2064,4304 2064,4302 2064,4300 2064,4298 2064,4296 2064,4296 2066,4296 2068,4296 2070,4296 2072,4294 2074,4292 2076,4290 2078,4288 2080,4286 2082,4284 2080,4282 2078,4280 2076,4280 2074,4280 2072,4280 2070,4278 2070,4276 2070,4274 2070,4272 2070,4270 2070,4268 2070,4266 2070,4264 2070,4262 2070,4260 2072,4258 2070,4256 2070,4254 2072,4252 2070,4250 2068,4248 2068,4246 2068,4244 2068,4242 2066,4240 2066,4238 2066,4236 2066,4234 2066,4232 2066,4230 2068,4228 2068,4226 2068,4224 2068,4222 2070,4220 2072,4218 2072,4216 2074,4214 2076,4214 2078,4214 2080,4214 2082,4214 2084,4214 2086,4214 2088,4214 2090,4214 2092,4214 2094,4214 2096,4212 2098,4212 2100,4210 2102,4210 2104,4208 2106,4206 2108,4204 2110,4202 2110,4200 2112,4198 2114,4196 2114,4194 2114,4192 2116,4190 2116,4188 2116,4186 2116,4184 2118,4182 2120,4180 2120,4178 2120,4176 2120,4174 2120,4172 2120,4170 2120,4168 2118,4166 2118,4164 2118,4162 2116,4160 2116,4158 2116,4156 2116,4154 2116,4152 2116,4150 2118,4148 2120,4148 2122,4148 2124,4148 2126,4148 2128,4148 2130,4148 2132,4146 2134,4144 2136,4142 2138,4140 2138,4138 2138,4136 2138,4134 2140,4132 2142,4130 2144,4128 2144,4126 2144,4124 2144,4122 2144,4120 2144,4118 2142,4116 2144,4114 2146,4112 2148,4110 2150,4108 2152,4106 2152,4104 2150,4102 2148,4100 2146,4098 2144,4100 2142,4102 2140,4102 2138,4102 2136,4102 2134,4102 2132,4102 2130,4102 2128,4102 2126,4100 2124,4098 2122,4096 2120,4094 2118,4092 2116,4090 2114,4090 2112,4090 2110,4090 2108,4090 2106,4088 2104,4088 2102,4088 2100,4086 2098,4086 2096,4084 2094,4082 2094,4080 2094,4078 2094,4076 2094,4074 2092,4072 2090,4070 2090,4068 2090,4066 2092,4064 2094,4062 2094,4060 2094,4058 2096,4056 2098,4054 2096,4052 2094,4050 2092,4048 2092,4046 2092,4044 2090,4042 2090,4040 2088,4038 2088,4036 2088,4034 2088,4032 2088,4030 2090,4028 2092,4026 2092,4024 2092,4022 2092,4020 2092,4018 2090,4016 2090,4014 2090,4012 2088,4010 2088,4008 2088,4006 2088,4004 2088,4002 2090,4000 2092,3998 2094,3996 2094,3994 2094,3992 2094,3990 2096,3988 2094,3986 2092,3984 2092,3982 2092,3980 2092,3978 2092,3976 2092,3974 2092,3972 2092,3970 2092,3968 2092,3966 2092,3964 2092,3962 2090,3960 2088,3958 2086,3956 2084,3954 2082,3952 2082,3950 2082,3948 2082,3946 2082,3944 2082,3942 2082,3940 2082,3938 2082,3936 2082,3934 2082,3932 2082,3930 2084,3928 2084,3926 2084,3924 2084,3922 2084,3920 2084,3918 2086,3916 2084,3914 2082,3912 2082,3910 2082,3908 2082,3906 2080,3904 2078,3902 2078,3900 2078,3898 2078,3896 2078,3894 2078,3892 2078,3890 2078,3888 2078,3886 2078,3884 2078,3882 2078,3880 2078,3878 2078,3876 2078,3874 2078,3872 2078,3870 2076,3868 2076,3866 2076,3864 2076,3862 2078,3860 2078,3858 2078,3856 2076,3854 2076,3852 2076,3850 2074,3848 2074,3846 2074,3844 2076,3842 2078,3840 2080,3838 2080,3836 2080,3834 2080,3832 2082,3830 2082,3828 2084,3826 2086,3824 2088,3822 2088,3820 2088,3818 2088,3816 2088,3814 2088,3812 2088,3810 2088,3810 2090,3808 2092,3806 2094,3806 2096,3804 2098,3804 2100,3802 2102,3802 2104,3802 2106,3802 2108,3802 2110,3804 2112,3806 2114,3806 2116,3806 2118,3806 2120,3806 2122,3804 2124,3804 2126,3804 2128,3804 2130,3804 2132,3804 2134,3804 2136,3804 2138,3802 2140,3802 2142,3802 2144,3804 2146,3804 2148,3804 2150,3804 2152,3804 2154,3804 2156,3804 2158,3802 2160,3802 2162,3802 2164,3800 2166,3798 2168,3796 2170,3796 2172,3794 2174,3792 2176,3790 2178,3788 2180,3786 2182,3784 2182,3782 2184,3780 2186,3778 2188,3776 2188,3776 2190,3776 2192,3776 2194,3774 2196,3772 2198,3772 2200,3772 2202,3772 2204,3770 2206,3768 2208,3766 2210,3766 2212,3764 2214,3762 2216,3760 2218,3760 2220,3758 2222,3758 2224,3756 2226,3754 2228,3752 2230,3750 2230,3748 2232,3746 2232,3744 2230,3742 2228,3740 2228,3738 2230,3736 2230,3734 2230,3732 2230,3730 2230,3728 2230,3726 2230,3724 2232,3722 2232,3720 2232,3718 2232,3716 2230,3714 2228,3712 2228,3710 2228,3708 2228,3706 2230,3704 2230,3702 2230,3700 2232,3698 2232,3696 2232,3694 2232,3692 2232,3690 2232,3688 2232,3686 2232,3684 2232,3682 2232,3680 2232,3678 2234,3676 2236,3674 2238,3674 2240,3674 2242,3674 2244,3674 2246,3674 2248,3674 2250,3674 2252,3674 2254,3674 2256,3674 2258,3674 2260,3674 2262,3676 2264,3676 2266,3676 2268,3678 2270,3678 2272,3678 2274,3678 2276,3678 2278,3676 2280,3676 2282,3678 2284,3680 2286,3682 2286,3684 2286,3686 2288,3688 2290,3690 2290,3692 2288,3694 2286,3696 2286,3698 2286,3700 2286,3702 2286,3704 2288,3706 2290,3708 2292,3710 2294,3710 2296,3710 2298,3710 2300,3710 2302,3712 2304,3712 2306,3714 2308,3716 2310,3718 2312,3718 2314,3716 2316,3716 2318,3714 2320,3712 2322,3710 2324,3708 2326,3706 2328,3704 2330,3702 2330,3700 2330,3698 2330,3696 2330,3694 2330,3692 2330,3690 2330,3688 2330,3686 2330,3684 2330,3682 2332,3680 2332,3678 2332,3676 2332,3674 2330,3672 2330,3670 2330,3668 2330,3666 2330,3664 2330,3662 2330,3660 2330,3658 2328,3656 2328,3654 2328),(4064 2566,4066 2566,4066 2564,4068 2564,4068 2562,4070 2562,4072 2562,4074 2562,4076 2562,4078 2562,4078 2560,4080 2560,4080 2558,4082 2558,4082 2556,4082 2554,4082 2552,4082 2550,4082 2548,4084 2548,4084 2546,4086 2546,4086 2544,4088 2544,4090 2544,4092 2544,4094 2544,4094 2542,4096 2542,4098 2542,4100 2542,4102 2542,4102 2540,4104 2540,4106 2540,4106 2542,4108 2542,4108 2544,4110 2544,4108 2544,4108 2546,4106 2546,4106 2548,4106 2550,4108 2550,4110 2550,4110 2552,4112 2552,4112 2554,4114 2554,4114 2556,4116 2556,4116 2558,4114 2558,4114 2560,4112 2560,4112 2562,4110 2562,4110 2564,4108 2564,4106 2564,4106 2566,4106 2568,4104 2568,4104 2570,4102 2570,4102 2572,4100 2572,4100 2574,4098 2574,4096 2574,4094 2574,4092 2574,4090 2574,4088 2574,4086 2574,4084 2574,4082 2574,4080 2574,4078 2574,4076 2574,4074 2574,4072 2574,4070 2574,4070 2572,4068 2572,4068 2570,4066 2570,4066 2568,4064 2568),(4074 2318,4076 2318,4076 2316,4076 2314,4078 2314,4078 2312,4080 2312,4080 2310,4082 2310,4084 2310,4086 2310,4088 2310,4088 2308,4090 2308,4092 2308,4094 2308,4096 2308,4098 2308,4100 2308,4102 2308,4104 2308,4106 2308,4108 2308,4110 2308,4112 2308,4114 2308,4116 2308,4116 2310,4118 2310,4118 2312,4120 2312,4120 2314,4118 2314,4118 2316,4116 2316,4116 2318,4116 2320,4116 2322,4116 2324,4116 2326,4118 2326,4118 2328,4118 2330,4116 2330,4116 2332,4114 2332,4114 2334,4112 2334,4110 2334,4108 2334,4106 2334,4104 2334,4102 2334,4100 2334,4098 2334,4096 2334,4094 2334,4092 2334,4090 2334,4088 2334,4086 2334,4084 2334,4084 2332,4082 2332,4082 2330,4080 2330,4080 2328,4078 2328,4078 2326,4076 2326,4076 2324,4076 2322,4076 2320,4076 2318),(4106 2518,4108 2518,4108 2516,4108 2514,4108 2512,4110 2512,4110 2510,4110 2508,4110 2506,4110 2504,4110 2502,4110 2500,4110 2498,4110 2496,4110 2494,4112 2494,4112 2492,4114 2492,4114 2490,4116 2490,4116 2488,4116 2486,4116 2484,4118 2484,4118 2482,4120 2482,4120 2480,4122 2480,4124 2480,4124 2478,4124 2480,4126 2480,4126 2482,4128 2482,4128 2484,4128 2486,4128 2488,4128 2490,4128 2492,4128 2494,4128 2496,4130 2496,4130 2498,4132 2498,4132 2500,4134 2500,4134 2502,4132 2502,4132 2504,4132 2506,4132 2508,4134 2508,4134 2510,4134 2512,4134 2514,4134 2516,4134 2518,4132 2518,4132 2520,4130 2520,4130 2522,4128 2522,4126 2522,4126 2524,4124 2524,4124 2522,4122 2522,4120 2522,4118 2522,4116 2522,4114 2522,4112 2522,4110 2522,4110 2520,4108 2520,4108 2518),(4120 2262,4122 2262,4122 2260,4124 2260,4124 2258,4126 2258,4126 2256,4126 2254,4126 2252,4126 2250,4124 2250,4126 2250,4126 2248,4128 2248,4128 2246,4130 2246,4132 2246,4134 2246,4136 2246,4138 2246,4138 2248,4140 2248,4140 2250,4142 2250,4142 2252,4142 2254,4142 2256,4142 2258,4142 2260,4142 2262,4142 2264,4142 2266,4140 2266,4140 2268,4140 2270,4138 2270,4138 2272,4136 2272,4136 2274,4134 2274,4132 2274,4132 2276,4132 2278,4132 2280,4132 2282,4132 2284,4132 2286,4132 2288,4130 2288,4130 2290,4128 2290,4128 2292,4128 2290,4126 2290,4126 2288,4124 2288,4124 2286,4124 2284,4124 2282,4124 2280,4124 2278,4124 2276,4124 2274,4124 2272,4124 2270,4122 2270,4122 2268,4120 2268,4120 2266,4120 2264))" export const svg_terminated = "M3652 2330L3652 2332L3652 2334L3652 2336L3654 2338L3652 2340L3652 2342L3652 2344L3652 2346L3654 2348L3654 2350L3654 2352L3656 2354L3658 2356L3660 2358L3662 2360L3664 2360L3666 2360L3668 2360L3670 2360L3672 2362L3674 2362L3676 2362L3678 2362L3680 2362L3682 2362L3684 2362L3686 2364L3688 2364L3690 2364L3692 2366L3694 2366L3696 2366L3698 2366L3700 2366L3702 2366L3704 2366L3706 2366L3708 2366L3710 2366L3712 2366L3714 2366L3716 2368L3718 2370L3720 2372L3720 2374L3720 2376L3720 2378L3718 2380L3720 2382L3720 2384L3720 2386L3720 2388L3720 2390L3720 2392L3718 2394L3720 2396L3720 2398L3720 2400L3720 2402L3720 2404L3720 2406L3720 2408L3720 2410L3718 2412L3716 2414L3716 2416L3716 2418L3716 2420L3716 2422L3716 2424L3716 2426L3716 2428L3716 2430L3716 2432L3716 2434L3716 2436L3716 2438L3716 2440L3716 2442L3716 2444L3716 2446L3716 2448L3716 2450L3716 2452L3716 2454L3714 2456L3712 2458L3712 2460L3712 2462L3712 2464L3712 2466L3712 2468L3712 2470L3712 2472L3714 2474L3716 2476L3718 2478L3718 2480L3716 2482L3714 2484L3714 2486L3714 2488L3716 2490L3716 2492L3716 2494L3716 2496L3716 2498L3714 2500L3714 2502L3714 2504L3714 2506L3714 2508L3712 2510L3712 2512L3712 2514L3712 2516L3712 2518L3712 2520L3712 2522L3710 2524L3708 2526L3706 2528L3704 2530L3702 2528L3700 2526L3698 2526L3696 2526L3694 2526L3692 2524L3690 2524L3692 2526L3692 2528L3692 2530L3692 2532L3694 2534L3694 2536L3694 2538L3694 2540L3696 2542L3696 2544L3698 2546L3700 2548L3700 2550L3700 2552L3702 2554L3704 2556L3702 2558L3700 2560L3698 2562L3696 2564L3696 2566L3696 2568L3694 2570L3694 2572L3696 2574L3696 2576L3698 2578L3698 2580L3700 2582L3702 2584L3702 2586L3704 2588L3704 2590L3706 2592L3706 2594L3706 2596L3706 2598L3706 2600L3706 2602L3706 2604L3706 2606L3708 2608L3708 2610L3708 2612L3708 2614L3708 2616L3708 2618L3708 2620L3708 2622L3708 2624L3706 2626L3706 2628L3706 2630L3706 2632L3708 2634L3708 2636L3708 2638L3708 2640L3708 2642L3708 2644L3706 2646L3706 2648L3706 2650L3706 2652L3706 2654L3706 2656L3706 2658L3708 2660L3710 2662L3712 2664L3712 2666L3712 2668L3712 2670L3712 2672L3712 2674L3712 2676L3712 2678L3712 2680L3710 2682L3710 2684L3710 2686L3712 2686L3714 2686L3716 2686L3718 2686L3720 2688L3722 2690L3724 2692L3726 2694L3726 2696L3724 2698L3722 2700L3722 2702L3722 2704L3724 2706L3726 2708L3728 2710L3730 2712L3730 2714L3730 2716L3730 2718L3730 2720L3732 2722L3732 2724L3732 2726L3734 2728L3736 2730L3736 2732L3736 2734L3736 2736L3738 2738L3738 2740L3738 2742L3738 2744L3738 2746L3736 2748L3736 2750L3736 2752L3736 2754L3734 2756L3734 2758L3734 2760L3734 2762L3734 2764L3734 2766L3734 2768L3734 2770L3734 2772L3734 2774L3732 2776L3730 2778L3730 2780L3732 2782L3732 2784L3734 2786L3734 2788L3734 2790L3734 2792L3734 2794L3734 2796L3732 2798L3732 2800L3730 2802L3730 2804L3730 2806L3730 2808L3730 2810L3730 2812L3730 2814L3732 2816L3732 2818L3732 2820L3734 2822L3736 2822L3738 2824L3740 2826L3742 2828L3742 2830L3742 2832L3742 2834L3742 2836L3742 2838L3742 2840L3740 2842L3740 2844L3740 2846L3742 2848L3742 2850L3740 2852L3738 2854L3736 2856L3734 2856L3732 2856L3732 2858L3732 2860L3732 2862L3732 2864L3732 2866L3732 2868L3732 2870L3732 2872L3732 2874L3732 2876L3732 2878L3732 2880L3734 2882L3736 2882L3738 2882L3740 2882L3742 2882L3744 2882L3746 2884L3748 2884L3750 2884L3752 2882L3754 2882L3756 2882L3758 2882L3760 2882L3762 2884L3764 2884L3766 2884L3768 2884L3770 2882L3772 2882L3774 2882L3776 2880L3778 2880L3780 2880L3782 2880L3784 2880L3786 2878L3788 2876L3790 2874L3792 2874L3794 2874L3796 2874L3798 2874L3800 2874L3802 2874L3804 2874L3806 2874L3808 2874L3810 2876L3812 2878L3814 2880L3816 2882L3816 2884L3816 2886L3818 2888L3820 2888L3822 2888L3824 2890L3826 2890L3828 2890L3830 2890L3832 2890L3834 2888L3836 2886L3838 2884L3840 2884L3842 2886L3844 2886L3846 2884L3848 2882L3850 2884L3852 2884L3854 2886L3856 2886L3858 2886L3860 2886L3862 2886L3864 2886L3866 2884L3868 2884L3870 2884L3872 2884L3874 2884L3876 2884L3878 2884L3880 2884L3882 2886L3884 2886L3886 2888L3888 2890L3890 2892L3892 2892L3894 2894L3896 2896L3898 2896L3900 2898L3902 2898L3904 2896L3906 2896L3908 2896L3910 2898L3912 2898L3914 2898L3916 2898L3918 2896L3920 2898L3922 2898L3924 2898L3926 2898L3928 2900L3930 2900L3932 2902L3934 2902L3936 2902L3938 2902L3940 2902L3942 2902L3944 2902L3946 2902L3948 2902L3950 2902L3952 2900L3954 2898L3956 2896L3958 2896L3960 2896L3962 2894L3964 2894L3966 2896L3968 2896L3970 2896L3972 2896L3974 2896L3976 2896L3978 2898L3980 2898L3982 2896L3984 2896L3986 2896L3988 2898L3990 2900L3992 2902L3994 2902L3996 2902L3998 2902L4000 2900L4002 2902L4004 2902L4006 2902L4008 2900L4010 2900L4012 2900L4014 2900L4016 2900L4018 2902L4020 2904L4022 2906L4022 2908L4022 2910L4024 2910L4026 2910L4028 2910L4030 2908L4032 2906L4034 2906L4036 2904L4038 2904L4040 2906L4042 2908L4044 2908L4046 2908L4048 2908L4050 2910L4052 2912L4054 2914L4054 2916L4056 2918L4058 2920L4058 2922L4058 2924L4060 2926L4058 2928L4058 2930L4060 2930L4062 2932L4064 2932L4066 2932L4068 2930L4070 2930L4072 2932L4074 2932L4076 2932L4078 2932L4080 2932L4082 2932L4084 2932L4086 2932L4088 2932L4088 2930L4090 2928L4092 2926L4094 2924L4096 2924L4098 2924L4100 2924L4102 2926L4104 2928L4106 2930L4106 2932L4106 2934L4108 2936L4110 2936L4112 2936L4114 2934L4116 2932L4118 2932L4120 2932L4122 2932L4124 2934L4126 2934L4128 2936L4130 2936L4132 2936L4134 2936L4136 2934L4138 2932L4140 2930L4142 2928L4144 2928L4146 2930L4148 2932L4150 2934L4152 2936L4154 2936L4156 2938L4158 2938L4160 2938L4162 2940L4164 2940L4166 2940L4168 2940L4170 2940L4172 2940L4174 2940L4176 2942L4178 2942L4180 2942L4182 2942L4184 2942L4186 2942L4188 2942L4190 2942L4192 2942L4194 2942L4196 2944L4198 2944L4200 2942L4202 2942L4204 2942L4206 2942L4208 2942L4210 2942L4212 2940L4214 2938L4216 2938L4218 2938L4220 2938L4222 2938L4224 2940L4226 2940L4228 2938L4230 2938L4232 2938L4234 2938L4236 2938L4238 2938L4240 2936L4242 2934L4244 2932L4246 2932L4248 2932L4250 2932L4252 2932L4254 2932L4256 2932L4258 2932L4260 2932L4262 2932L4264 2932L4266 2932L4268 2932L4270 2932L4272 2932L4274 2932L4276 2932L4278 2934L4280 2932L4282 2932L4284 2934L4286 2934L4288 2936L4290 2936L4292 2934L4294 2934L4296 2934L4298 2934L4300 2934L4302 2934L4304 2934L4306 2934L4308 2934L4310 2936L4312 2936L4314 2938L4316 2938L4318 2938L4320 2938L4322 2938L4324 2940L4326 2940L4328 2940L4330 2940L4332 2942L4334 2942L4336 2942L4336 2940L4338 2938L4338 2936L4338 2934L4340 2932L4342 2930L4344 2928L4344 2926L4344 2924L4344 2922L4344 2920L4344 2918L4344 2916L4346 2914L4348 2912L4348 2910L4348 2908L4350 2906L4350 2904L4348 2902L4346 2900L4346 2898L4346 2896L4346 2894L4346 2892L4346 2890L4346 2888L4346 2886L4348 2884L4348 2882L4348 2880L4348 2878L4348 2876L4350 2874L4350 2872L4350 2870L4352 2868L4354 2866L4354 2864L4352 2862L4352 2860L4350 2858L4350 2856L4350 2854L4350 2852L4350 2850L4350 2848L4348 2846L4348 2844L4350 2842L4352 2840L4354 2838L4356 2836L4356 2834L4358 2832L4358 2830L4360 2828L4360 2826L4360 2824L4360 2822L4360 2820L4360 2818L4358 2816L4356 2814L4354 2812L4352 2810L4354 2808L4354 2806L4356 2804L4356 2802L4356 2800L4354 2798L4354 2796L4354 2794L4354 2792L4354 2790L4354 2788L4356 2786L4356 2784L4356 2782L4356 2780L4356 2778L4356 2776L4356 2774L4356 2772L4356 2770L4356 2768L4356 2766L4356 2764L4356 2762L4356 2760L4356 2758L4354 2756L4354 2754L4354 2752L4354 2750L4354 2748L4354 2746L4354 2744L4354 2742L4354 2740L4354 2738L4354 2736L4354 2734L4356 2732L4356 2730L4356 2728L4356 2726L4356 2724L4356 2722L4356 2720L4356 2718L4356 2716L4356 2714L4356 2712L4356 2710L4356 2708L4356 2706L4356 2704L4356 2702L4356 2700L4356 2698L4356 2696L4354 2694L4354 2692L4354 2690L4354 2688L4354 2686L4354 2684L4354 2682L4354 2680L4352 2680L4350 2680L4348 2678L4346 2676L4344 2674L4344 2672L4344 2670L4344 2668L4346 2666L4346 2664L4346 2662L4348 2660L4350 2658L4352 2656L4354 2656L4354 2654L4356 2652L4358 2650L4358 2648L4358 2646L4358 2644L4360 2642L4360 2640L4358 2638L4358 2636L4360 2634L4362 2632L4362 2630L4362 2628L4362 2626L4362 2624L4360 2622L4360 2620L4360 2618L4360 2616L4360 2614L4360 2612L4362 2610L4364 2608L4364 2606L4364 2604L4366 2602L4366 2600L4366 2598L4366 2596L4366 2594L4366 2592L4366 2590L4366 2588L4366 2586L4366 2584L4366 2582L4366 2580L4364 2578L4364 2576L4364 2574L4364 2572L4362 2570L4362 2568L4362 2566L4362 2564L4362 2562L4362 2560L4362 2558L4362 2556L4362 2554L4362 2552L4362 2550L4362 2548L4362 2546L4364 2544L4364 2542L4364 2540L4364 2538L4364 2536L4364 2534L4364 2532L4364 2530L4364 2528L4364 2526L4364 2524L4366 2522L4368 2520L4370 2518L4370 2516L4370 2514L4370 2512L4370 2510L4370 2508L4370 2506L4368 2504L4368 2502L4368 2500L4368 2498L4368 2496L4368 2494L4368 2492L4368 2490L4368 2488L4370 2486L4372 2484L4374 2482L4376 2480L4376 2478L4376 2476L4378 2474L4378 2472L4378 2470L4378 2468L4378 2466L4378 2464L4376 2462L4374 2460L4374 2458L4374 2456L4376 2454L4376 2452L4376 2450L4376 2448L4374 2446L4374 2444L4374 2442L4374 2440L4374 2438L4376 2436L4376 2434L4376 2432L4374 2430L4374 2428L4374 2426L4374 2424L4376 2422L4376 2420L4376 2418L4376 2416L4376 2414L4376 2412L4376 2410L4376 2408L4376 2406L4376 2404L4376 2402L4376 2400L4376 2398L4376 2396L4376 2394L4374 2392L4374 2390L4376 2388L4376 2386L4376 2384L4376 2382L4376 2380L4376 2378L4376 2376L4378 2374L4378 2372L4380 2370L4380 2368L4380 2366L4380 2364L4380 2362L4378 2360L4378 2358L4378 2356L4378 2354L4378 2352L4378 2350L4378 2348L4378 2346L4378 2344L4378 2342L4378 2340L4378 2338L4378 2336L4378 2334L4378 2332L4378 2330L4378 2328L4380 2326L4380 2324L4380 2322L4380 2320L4380 2318L4382 2316L4382 2314L4382 2312L4382 2310L4382 2308L4382 2306L4382 2304L4382 2302L4382 2300L4380 2298L4380 2296L4380 2294L4380 2292L4380 2290L4380 2288L4380 2286L4380 2284L4380 2282L4380 2280L4380 2278L4380 2276L4380 2274L4380 2272L4380 2270L4380 2268L4378 2266L4378 2264L4376 2262L4374 2260L4372 2258L4372 2256L4374 2254L4374 2252L4374 2250L4374 2248L4374 2246L4374 2244L4374 2242L4374 2240L4374 2238L4374 2236L4374 2234L4374 2232L4374 2230L4374 2228L4374 2226L4376 2224L4378 2222L4378 2220L4378 2218L4378 2216L4378 2214L4378 2212L4378 2210L4380 2208L4382 2206L4384 2204L4384 2202L4384 2200L4384 2198L4384 2196L4386 2194L4386 2192L4386 2190L4386 2188L4386 2186L4386 2184L4386 2182L4386 2180L4384 2178L4384 2176L4382 2174L4380 2172L4380 2170L4378 2168L4378 2166L4378 2164L4378 2162L4378 2160L4378 2158L4378 2156L4378 2154L4378 2152L4376 2150L4376 2148L4374 2148L4372 2146L4370 2144L4368 2144L4366 2142L4364 2140L4362 2140L4360 2140L4358 2138L4356 2136L4354 2134L4352 2132L4352 2130L4352 2128L4350 2126L4348 2124L4348 2122L4348 2120L4348 2118L4348 2116L4348 2114L4348 2112L4348 2110L4348 2108L4346 2106L4346 2104L4346 2102L4344 2102L4342 2102L4340 2102L4338 2100L4336 2098L4334 2096L4334 2094L4334 2092L4334 2090L4334 2088L4334 2086L4334 2084L4332 2082L4332 2080L4330 2078L4328 2076L4326 2074L4326 2072L4326 2070L4326 2068L4324 2066L4322 2066L4320 2066L4318 2066L4316 2066L4314 2066L4312 2064L4310 2064L4308 2064L4306 2064L4304 2064L4302 2064L4300 2064L4298 2064L4296 2064L4296 2066L4296 2068L4296 2070L4296 2072L4294 2074L4292 2076L4290 2078L4288 2080L4286 2082L4284 2080L4282 2078L4280 2076L4280 2074L4280 2072L4280 2070L4278 2070L4276 2070L4274 2070L4272 2070L4270 2070L4268 2070L4266 2070L4264 2070L4262 2070L4260 2072L4258 2070L4256 2070L4254 2072L4252 2070L4250 2068L4248 2068L4246 2068L4244 2068L4242 2066L4240 2066L4238 2066L4236 2066L4234 2066L4232 2066L4230 2068L4228 2068L4226 2068L4224 2068L4222 2070L4220 2072L4218 2072L4216 2074L4214 2076L4214 2078L4214 2080L4214 2082L4214 2084L4214 2086L4214 2088L4214 2090L4214 2092L4214 2094L4214 2096L4212 2098L4212 2100L4210 2102L4210 2104L4208 2106L4206 2108L4204 2110L4202 2110L4200 2112L4198 2114L4196 2114L4194 2114L4192 2116L4190 2116L4188 2116L4186 2116L4184 2118L4182 2120L4180 2120L4178 2120L4176 2120L4174 2120L4172 2120L4170 2120L4168 2118L4166 2118L4164 2118L4162 2116L4160 2116L4158 2116L4156 2116L4154 2116L4152 2116L4150 2118L4148 2120L4148 2122L4148 2124L4148 2126L4148 2128L4148 2130L4148 2132L4146 2134L4144 2136L4142 2138L4140 2138L4138 2138L4136 2138L4134 2140L4132 2142L4130 2144L4128 2144L4126 2144L4124 2144L4122 2144L4120 2144L4118 2142L4116 2144L4114 2146L4112 2148L4110 2150L4108 2152L4106 2152L4104 2150L4102 2148L4100 2146L4098 2144L4100 2142L4102 2140L4102 2138L4102 2136L4102 2134L4102 2132L4102 2130L4102 2128L4102 2126L4100 2124L4098 2122L4096 2120L4094 2118L4092 2116L4090 2114L4090 2112L4090 2110L4090 2108L4090 2106L4088 2104L4088 2102L4088 2100L4086 2098L4086 2096L4084 2094L4082 2094L4080 2094L4078 2094L4076 2094L4074 2092L4072 2090L4070 2090L4068 2090L4066 2092L4064 2094L4062 2094L4060 2094L4058 2096L4056 2098L4054 2096L4052 2094L4050 2092L4048 2092L4046 2092L4044 2090L4042 2090L4040 2088L4038 2088L4036 2088L4034 2088L4032 2088L4030 2090L4028 2092L4026 2092L4024 2092L4022 2092L4020 2092L4018 2090L4016 2090L4014 2090L4012 2088L4010 2088L4008 2088L4006 2088L4004 2088L4002 2090L4000 2092L3998 2094L3996 2094L3994 2094L3992 2094L3990 2096L3988 2094L3986 2092L3984 2092L3982 2092L3980 2092L3978 2092L3976 2092L3974 2092L3972 2092L3970 2092L3968 2092L3966 2092L3964 2092L3962 2090L3960 2088L3958 2086L3956 2084L3954 2082L3952 2082L3950 2082L3948 2082L3946 2082L3944 2082L3942 2082L3940 2082L3938 2082L3936 2082L3934 2082L3932 2082L3930 2084L3928 2084L3926 2084L3924 2084L3922 2084L3920 2084L3918 2086L3916 2084L3914 2082L3912 2082L3910 2082L3908 2082L3906 2080L3904 2078L3902 2078L3900 2078L3898 2078L3896 2078L3894 2078L3892 2078L3890 2078L3888 2078L3886 2078L3884 2078L3882 2078L3880 2078L3878 2078L3876 2078L3874 2078L3872 2078L3870 2076L3868 2076L3866 2076L3864 2076L3862 2078L3860 2078L3858 2078L3856 2076L3854 2076L3852 2076L3850 2074L3848 2074L3846 2074L3844 2076L3842 2078L3840 2080L3838 2080L3836 2080L3834 2080L3832 2082L3830 2082L3828 2084L3826 2086L3824 2088L3822 2088L3820 2088L3818 2088L3816 2088L3814 2088L3812 2088L3810 2088L3810 2090L3808 2092L3806 2094L3806 2096L3804 2098L3804 2100L3802 2102L3802 2104L3802 2106L3802 2108L3802 2110L3804 2112L3806 2114L3806 2116L3806 2118L3806 2120L3806 2122L3804 2124L3804 2126L3804 2128L3804 2130L3804 2132L3804 2134L3804 2136L3804 2138L3802 2140L3802 2142L3802 2144L3804 2146L3804 2148L3804 2150L3804 2152L3804 2154L3804 2156L3804 2158L3802 2160L3802 2162L3802 2164L3800 2166L3798 2168L3796 2170L3796 2172L3794 2174L3792 2176L3790 2178L3788 2180L3786 2182L3784 2182L3782 2184L3780 2186L3778 2188L3776 2188L3776 2190L3776 2192L3776 2194L3774 2196L3772 2198L3772 2200L3772 2202L3772 2204L3770 2206L3768 2208L3766 2210L3766 2212L3764 2214L3762 2216L3760 2218L3760 2220L3758 2222L3758 2224L3756 2226L3754 2228L3752 2230L3750 2230L3748 2232L3746 2232L3744 2230L3742 2228L3740 2228L3738 2230L3736 2230L3734 2230L3732 2230L3730 2230L3728 2230L3726 2230L3724 2232L3722 2232L3720 2232L3718 2232L3716 2230L3714 2228L3712 2228L3710 2228L3708 2228L3706 2230L3704 2230L3702 2230L3700 2232L3698 2232L3696 2232L3694 2232L3692 2232L3690 2232L3688 2232L3686 2232L3684 2232L3682 2232L3680 2232L3678 2234L3676 2236L3674 2238L3674 2240L3674 2242L3674 2244L3674 2246L3674 2248L3674 2250L3674 2252L3674 2254L3674 2256L3674 2258L3674 2260L3674 2262L3676 2264L3676 2266L3676 2268L3678 2270L3678 2272L3678 2274L3678 2276L3678 2278L3676 2280L3676 2282L3678 2284L3680 2286L3682 2286L3684 2286L3686 2288L3688 2290L3690 2290L3692 2288L3694 2286L3696 2286L3698 2286L3700 2286L3702 2286L3704 2288L3706 2290L3708 2292L3710 2294L3710 2296L3710 2298L3710 2300L3710 2302L3712 2304L3712 2306L3714 2308L3716 2310L3718 2312L3718 2314L3716 2316L3716 2318L3714 2320L3712 2322L3710 2324L3708 2326L3706 2328L3704 2330L3702 2330L3700 2330L3698 2330L3696 2330L3694 2330L3692 2330L3690 2330L3688 2330L3686 2330L3684 2330L3682 2332L3680 2332L3678 2332L3676 2332L3674 2330L3672 2330L3670 2330L3668 2330L3666 2330L3664 2330L3662 2330L3660 2330L3658 2328L3656 2328L3654 2328L3652 2330M4064 2566L4066 2566L4066 2564L4068 2564L4068 2562L4070 2562L4072 2562L4074 2562L4076 2562L4078 2562L4078 2560L4080 2560L4080 2558L4082 2558L4082 2556L4082 2554L4082 2552L4082 2550L4082 2548L4084 2548L4084 2546L4086 2546L4086 2544L4088 2544L4090 2544L4092 2544L4094 2544L4094 2542L4096 2542L4098 2542L4100 2542L4102 2542L4102 2540L4104 2540L4106 2540L4106 2542L4108 2542L4108 2544L4110 2544L4108 2544L4108 2546L4106 2546L4106 2548L4106 2550L4108 2550L4110 2550L4110 2552L4112 2552L4112 2554L4114 2554L4114 2556L4116 2556L4116 2558L4114 2558L4114 2560L4112 2560L4112 2562L4110 2562L4110 2564L4108 2564L4106 2564L4106 2566L4106 2568L4104 2568L4104 2570L4102 2570L4102 2572L4100 2572L4100 2574L4098 2574L4096 2574L4094 2574L4092 2574L4090 2574L4088 2574L4086 2574L4084 2574L4082 2574L4080 2574L4078 2574L4076 2574L4074 2574L4072 2574L4070 2574L4070 2572L4068 2572L4068 2570L4066 2570L4066 2568L4064 2568L4064 2566M4074 2318L4076 2318L4076 2316L4076 2314L4078 2314L4078 2312L4080 2312L4080 2310L4082 2310L4084 2310L4086 2310L4088 2310L4088 2308L4090 2308L4092 2308L4094 2308L4096 2308L4098 2308L4100 2308L4102 2308L4104 2308L4106 2308L4108 2308L4110 2308L4112 2308L4114 2308L4116 2308L4116 2310L4118 2310L4118 2312L4120 2312L4120 2314L4118 2314L4118 2316L4116 2316L4116 2318L4116 2320L4116 2322L4116 2324L4116 2326L4118 2326L4118 2328L4118 2330L4116 2330L4116 2332L4114 2332L4114 2334L4112 2334L4110 2334L4108 2334L4106 2334L4104 2334L4102 2334L4100 2334L4098 2334L4096 2334L4094 2334L4092 2334L4090 2334L4088 2334L4086 2334L4084 2334L4084 2332L4082 2332L4082 2330L4080 2330L4080 2328L4078 2328L4078 2326L4076 2326L4076 2324L4076 2322L4076 2320L4076 2318L4074 2318M4106 2518L4108 2518L4108 2516L4108 2514L4108 2512L4110 2512L4110 2510L4110 2508L4110 2506L4110 2504L4110 2502L4110 2500L4110 2498L4110 2496L4110 2494L4112 2494L4112 2492L4114 2492L4114 2490L4116 2490L4116 2488L4116 2486L4116 2484L4118 2484L4118 2482L4120 2482L4120 2480L4122 2480L4124 2480L4124 2478L4124 2480L4126 2480L4126 2482L4128 2482L4128 2484L4128 2486L4128 2488L4128 2490L4128 2492L4128 2494L4128 2496L4130 2496L4130 2498L4132 2498L4132 2500L4134 2500L4134 2502L4132 2502L4132 2504L4132 2506L4132 2508L4134 2508L4134 2510L4134 2512L4134 2514L4134 2516L4134 2518L4132 2518L4132 2520L4130 2520L4130 2522L4128 2522L4126 2522L4126 2524L4124 2524L4124 2522L4122 2522L4120 2522L4118 2522L4116 2522L4114 2522L4112 2522L4110 2522L4110 2520L4108 2520L4108 2518L4106 2518M4120 2262L4122 2262L4122 2260L4124 2260L4124 2258L4126 2258L4126 2256L4126 2254L4126 2252L4126 2250L4124 2250L4126 2250L4126 2248L4128 2248L4128 2246L4130 2246L4132 2246L4134 2246L4136 2246L4138 2246L4138 2248L4140 2248L4140 2250L4142 2250L4142 2252L4142 2254L4142 2256L4142 2258L4142 2260L4142 2262L4142 2264L4142 2266L4140 2266L4140 2268L4140 2270L4138 2270L4138 2272L4136 2272L4136 2274L4134 2274L4132 2274L4132 2276L4132 2278L4132 2280L4132 2282L4132 2284L4132 2286L4132 2288L4130 2288L4130 2290L4128 2290L4128 2292L4128 2290L4126 2290L4126 2288L4124 2288L4124 2286L4124 2284L4124 2282L4124 2280L4124 2278L4124 2276L4124 2274L4124 2272L4124 2270L4122 2270L4122 2268L4120 2268L4120 2266L4120 2264L4120 2262" export const svg_unterminated = "M3652 2330L3652 2332L3652 2334L3652 2336L3654 2338L3652 2340L3652 2342L3652 2344L3652 2346L3654 2348L3654 2350L3654 2352L3656 2354L3658 2356L3660 2358L3662 2360L3664 2360L3666 2360L3668 2360L3670 2360L3672 2362L3674 2362L3676 2362L3678 2362L3680 2362L3682 2362L3684 2362L3686 2364L3688 2364L3690 2364L3692 2366L3694 2366L3696 2366L3698 2366L3700 2366L3702 2366L3704 2366L3706 2366L3708 2366L3710 2366L3712 2366L3714 2366L3716 2368L3718 2370L3720 2372L3720 2374L3720 2376L3720 2378L3718 2380L3720 2382L3720 2384L3720 2386L3720 2388L3720 2390L3720 2392L3718 2394L3720 2396L3720 2398L3720 2400L3720 2402L3720 2404L3720 2406L3720 2408L3720 2410L3718 2412L3716 2414L3716 2416L3716 2418L3716 2420L3716 2422L3716 2424L3716 2426L3716 2428L3716 2430L3716 2432L3716 2434L3716 2436L3716 2438L3716 2440L3716 2442L3716 2444L3716 2446L3716 2448L3716 2450L3716 2452L3716 2454L3714 2456L3712 2458L3712 2460L3712 2462L3712 2464L3712 2466L3712 2468L3712 2470L3712 2472L3714 2474L3716 2476L3718 2478L3718 2480L3716 2482L3714 2484L3714 2486L3714 2488L3716 2490L3716 2492L3716 2494L3716 2496L3716 2498L3714 2500L3714 2502L3714 2504L3714 2506L3714 2508L3712 2510L3712 2512L3712 2514L3712 2516L3712 2518L3712 2520L3712 2522L3710 2524L3708 2526L3706 2528L3704 2530L3702 2528L3700 2526L3698 2526L3696 2526L3694 2526L3692 2524L3690 2524L3692 2526L3692 2528L3692 2530L3692 2532L3694 2534L3694 2536L3694 2538L3694 2540L3696 2542L3696 2544L3698 2546L3700 2548L3700 2550L3700 2552L3702 2554L3704 2556L3702 2558L3700 2560L3698 2562L3696 2564L3696 2566L3696 2568L3694 2570L3694 2572L3696 2574L3696 2576L3698 2578L3698 2580L3700 2582L3702 2584L3702 2586L3704 2588L3704 2590L3706 2592L3706 2594L3706 2596L3706 2598L3706 2600L3706 2602L3706 2604L3706 2606L3708 2608L3708 2610L3708 2612L3708 2614L3708 2616L3708 2618L3708 2620L3708 2622L3708 2624L3706 2626L3706 2628L3706 2630L3706 2632L3708 2634L3708 2636L3708 2638L3708 2640L3708 2642L3708 2644L3706 2646L3706 2648L3706 2650L3706 2652L3706 2654L3706 2656L3706 2658L3708 2660L3710 2662L3712 2664L3712 2666L3712 2668L3712 2670L3712 2672L3712 2674L3712 2676L3712 2678L3712 2680L3710 2682L3710 2684L3710 2686L3712 2686L3714 2686L3716 2686L3718 2686L3720 2688L3722 2690L3724 2692L3726 2694L3726 2696L3724 2698L3722 2700L3722 2702L3722 2704L3724 2706L3726 2708L3728 2710L3730 2712L3730 2714L3730 2716L3730 2718L3730 2720L3732 2722L3732 2724L3732 2726L3734 2728L3736 2730L3736 2732L3736 2734L3736 2736L3738 2738L3738 2740L3738 2742L3738 2744L3738 2746L3736 2748L3736 2750L3736 2752L3736 2754L3734 2756L3734 2758L3734 2760L3734 2762L3734 2764L3734 2766L3734 2768L3734 2770L3734 2772L3734 2774L3732 2776L3730 2778L3730 2780L3732 2782L3732 2784L3734 2786L3734 2788L3734 2790L3734 2792L3734 2794L3734 2796L3732 2798L3732 2800L3730 2802L3730 2804L3730 2806L3730 2808L3730 2810L3730 2812L3730 2814L3732 2816L3732 2818L3732 2820L3734 2822L3736 2822L3738 2824L3740 2826L3742 2828L3742 2830L3742 2832L3742 2834L3742 2836L3742 2838L3742 2840L3740 2842L3740 2844L3740 2846L3742 2848L3742 2850L3740 2852L3738 2854L3736 2856L3734 2856L3732 2856L3732 2858L3732 2860L3732 2862L3732 2864L3732 2866L3732 2868L3732 2870L3732 2872L3732 2874L3732 2876L3732 2878L3732 2880L3734 2882L3736 2882L3738 2882L3740 2882L3742 2882L3744 2882L3746 2884L3748 2884L3750 2884L3752 2882L3754 2882L3756 2882L3758 2882L3760 2882L3762 2884L3764 2884L3766 2884L3768 2884L3770 2882L3772 2882L3774 2882L3776 2880L3778 2880L3780 2880L3782 2880L3784 2880L3786 2878L3788 2876L3790 2874L3792 2874L3794 2874L3796 2874L3798 2874L3800 2874L3802 2874L3804 2874L3806 2874L3808 2874L3810 2876L3812 2878L3814 2880L3816 2882L3816 2884L3816 2886L3818 2888L3820 2888L3822 2888L3824 2890L3826 2890L3828 2890L3830 2890L3832 2890L3834 2888L3836 2886L3838 2884L3840 2884L3842 2886L3844 2886L3846 2884L3848 2882L3850 2884L3852 2884L3854 2886L3856 2886L3858 2886L3860 2886L3862 2886L3864 2886L3866 2884L3868 2884L3870 2884L3872 2884L3874 2884L3876 2884L3878 2884L3880 2884L3882 2886L3884 2886L3886 2888L3888 2890L3890 2892L3892 2892L3894 2894L3896 2896L3898 2896L3900 2898L3902 2898L3904 2896L3906 2896L3908 2896L3910 2898L3912 2898L3914 2898L3916 2898L3918 2896L3920 2898L3922 2898L3924 2898L3926 2898L3928 2900L3930 2900L3932 2902L3934 2902L3936 2902L3938 2902L3940 2902L3942 2902L3944 2902L3946 2902L3948 2902L3950 2902L3952 2900L3954 2898L3956 2896L3958 2896L3960 2896L3962 2894L3964 2894L3966 2896L3968 2896L3970 2896L3972 2896L3974 2896L3976 2896L3978 2898L3980 2898L3982 2896L3984 2896L3986 2896L3988 2898L3990 2900L3992 2902L3994 2902L3996 2902L3998 2902L4000 2900L4002 2902L4004 2902L4006 2902L4008 2900L4010 2900L4012 2900L4014 2900L4016 2900L4018 2902L4020 2904L4022 2906L4022 2908L4022 2910L4024 2910L4026 2910L4028 2910L4030 2908L4032 2906L4034 2906L4036 2904L4038 2904L4040 2906L4042 2908L4044 2908L4046 2908L4048 2908L4050 2910L4052 2912L4054 2914L4054 2916L4056 2918L4058 2920L4058 2922L4058 2924L4060 2926L4058 2928L4058 2930L4060 2930L4062 2932L4064 2932L4066 2932L4068 2930L4070 2930L4072 2932L4074 2932L4076 2932L4078 2932L4080 2932L4082 2932L4084 2932L4086 2932L4088 2932L4088 2930L4090 2928L4092 2926L4094 2924L4096 2924L4098 2924L4100 2924L4102 2926L4104 2928L4106 2930L4106 2932L4106 2934L4108 2936L4110 2936L4112 2936L4114 2934L4116 2932L4118 2932L4120 2932L4122 2932L4124 2934L4126 2934L4128 2936L4130 2936L4132 2936L4134 2936L4136 2934L4138 2932L4140 2930L4142 2928L4144 2928L4146 2930L4148 2932L4150 2934L4152 2936L4154 2936L4156 2938L4158 2938L4160 2938L4162 2940L4164 2940L4166 2940L4168 2940L4170 2940L4172 2940L4174 2940L4176 2942L4178 2942L4180 2942L4182 2942L4184 2942L4186 2942L4188 2942L4190 2942L4192 2942L4194 2942L4196 2944L4198 2944L4200 2942L4202 2942L4204 2942L4206 2942L4208 2942L4210 2942L4212 2940L4214 2938L4216 2938L4218 2938L4220 2938L4222 2938L4224 2940L4226 2940L4228 2938L4230 2938L4232 2938L4234 2938L4236 2938L4238 2938L4240 2936L4242 2934L4244 2932L4246 2932L4248 2932L4250 2932L4252 2932L4254 2932L4256 2932L4258 2932L4260 2932L4262 2932L4264 2932L4266 2932L4268 2932L4270 2932L4272 2932L4274 2932L4276 2932L4278 2934L4280 2932L4282 2932L4284 2934L4286 2934L4288 2936L4290 2936L4292 2934L4294 2934L4296 2934L4298 2934L4300 2934L4302 2934L4304 2934L4306 2934L4308 2934L4310 2936L4312 2936L4314 2938L4316 2938L4318 2938L4320 2938L4322 2938L4324 2940L4326 2940L4328 2940L4330 2940L4332 2942L4334 2942L4336 2942L4336 2940L4338 2938L4338 2936L4338 2934L4340 2932L4342 2930L4344 2928L4344 2926L4344 2924L4344 2922L4344 2920L4344 2918L4344 2916L4346 2914L4348 2912L4348 2910L4348 2908L4350 2906L4350 2904L4348 2902L4346 2900L4346 2898L4346 2896L4346 2894L4346 2892L4346 2890L4346 2888L4346 2886L4348 2884L4348 2882L4348 2880L4348 2878L4348 2876L4350 2874L4350 2872L4350 2870L4352 2868L4354 2866L4354 2864L4352 2862L4352 2860L4350 2858L4350 2856L4350 2854L4350 2852L4350 2850L4350 2848L4348 2846L4348 2844L4350 2842L4352 2840L4354 2838L4356 2836L4356 2834L4358 2832L4358 2830L4360 2828L4360 2826L4360 2824L4360 2822L4360 2820L4360 2818L4358 2816L4356 2814L4354 2812L4352 2810L4354 2808L4354 2806L4356 2804L4356 2802L4356 2800L4354 2798L4354 2796L4354 2794L4354 2792L4354 2790L4354 2788L4356 2786L4356 2784L4356 2782L4356 2780L4356 2778L4356 2776L4356 2774L4356 2772L4356 2770L4356 2768L4356 2766L4356 2764L4356 2762L4356 2760L4356 2758L4354 2756L4354 2754L4354 2752L4354 2750L4354 2748L4354 2746L4354 2744L4354 2742L4354 2740L4354 2738L4354 2736L4354 2734L4356 2732L4356 2730L4356 2728L4356 2726L4356 2724L4356 2722L4356 2720L4356 2718L4356 2716L4356 2714L4356 2712L4356 2710L4356 2708L4356 2706L4356 2704L4356 2702L4356 2700L4356 2698L4356 2696L4354 2694L4354 2692L4354 2690L4354 2688L4354 2686L4354 2684L4354 2682L4354 2680L4352 2680L4350 2680L4348 2678L4346 2676L4344 2674L4344 2672L4344 2670L4344 2668L4346 2666L4346 2664L4346 2662L4348 2660L4350 2658L4352 2656L4354 2656L4354 2654L4356 2652L4358 2650L4358 2648L4358 2646L4358 2644L4360 2642L4360 2640L4358 2638L4358 2636L4360 2634L4362 2632L4362 2630L4362 2628L4362 2626L4362 2624L4360 2622L4360 2620L4360 2618L4360 2616L4360 2614L4360 2612L4362 2610L4364 2608L4364 2606L4364 2604L4366 2602L4366 2600L4366 2598L4366 2596L4366 2594L4366 2592L4366 2590L4366 2588L4366 2586L4366 2584L4366 2582L4366 2580L4364 2578L4364 2576L4364 2574L4364 2572L4362 2570L4362 2568L4362 2566L4362 2564L4362 2562L4362 2560L4362 2558L4362 2556L4362 2554L4362 2552L4362 2550L4362 2548L4362 2546L4364 2544L4364 2542L4364 2540L4364 2538L4364 2536L4364 2534L4364 2532L4364 2530L4364 2528L4364 2526L4364 2524L4366 2522L4368 2520L4370 2518L4370 2516L4370 2514L4370 2512L4370 2510L4370 2508L4370 2506L4368 2504L4368 2502L4368 2500L4368 2498L4368 2496L4368 2494L4368 2492L4368 2490L4368 2488L4370 2486L4372 2484L4374 2482L4376 2480L4376 2478L4376 2476L4378 2474L4378 2472L4378 2470L4378 2468L4378 2466L4378 2464L4376 2462L4374 2460L4374 2458L4374 2456L4376 2454L4376 2452L4376 2450L4376 2448L4374 2446L4374 2444L4374 2442L4374 2440L4374 2438L4376 2436L4376 2434L4376 2432L4374 2430L4374 2428L4374 2426L4374 2424L4376 2422L4376 2420L4376 2418L4376 2416L4376 2414L4376 2412L4376 2410L4376 2408L4376 2406L4376 2404L4376 2402L4376 2400L4376 2398L4376 2396L4376 2394L4374 2392L4374 2390L4376 2388L4376 2386L4376 2384L4376 2382L4376 2380L4376 2378L4376 2376L4378 2374L4378 2372L4380 2370L4380 2368L4380 2366L4380 2364L4380 2362L4378 2360L4378 2358L4378 2356L4378 2354L4378 2352L4378 2350L4378 2348L4378 2346L4378 2344L4378 2342L4378 2340L4378 2338L4378 2336L4378 2334L4378 2332L4378 2330L4378 2328L4380 2326L4380 2324L4380 2322L4380 2320L4380 2318L4382 2316L4382 2314L4382 2312L4382 2310L4382 2308L4382 2306L4382 2304L4382 2302L4382 2300L4380 2298L4380 2296L4380 2294L4380 2292L4380 2290L4380 2288L4380 2286L4380 2284L4380 2282L4380 2280L4380 2278L4380 2276L4380 2274L4380 2272L4380 2270L4380 2268L4378 2266L4378 2264L4376 2262L4374 2260L4372 2258L4372 2256L4374 2254L4374 2252L4374 2250L4374 2248L4374 2246L4374 2244L4374 2242L4374 2240L4374 2238L4374 2236L4374 2234L4374 2232L4374 2230L4374 2228L4374 2226L4376 2224L4378 2222L4378 2220L4378 2218L4378 2216L4378 2214L4378 2212L4378 2210L4380 2208L4382 2206L4384 2204L4384 2202L4384 2200L4384 2198L4384 2196L4386 2194L4386 2192L4386 2190L4386 2188L4386 2186L4386 2184L4386 2182L4386 2180L4384 2178L4384 2176L4382 2174L4380 2172L4380 2170L4378 2168L4378 2166L4378 2164L4378 2162L4378 2160L4378 2158L4378 2156L4378 2154L4378 2152L4376 2150L4376 2148L4374 2148L4372 2146L4370 2144L4368 2144L4366 2142L4364 2140L4362 2140L4360 2140L4358 2138L4356 2136L4354 2134L4352 2132L4352 2130L4352 2128L4350 2126L4348 2124L4348 2122L4348 2120L4348 2118L4348 2116L4348 2114L4348 2112L4348 2110L4348 2108L4346 2106L4346 2104L4346 2102L4344 2102L4342 2102L4340 2102L4338 2100L4336 2098L4334 2096L4334 2094L4334 2092L4334 2090L4334 2088L4334 2086L4334 2084L4332 2082L4332 2080L4330 2078L4328 2076L4326 2074L4326 2072L4326 2070L4326 2068L4324 2066L4322 2066L4320 2066L4318 2066L4316 2066L4314 2066L4312 2064L4310 2064L4308 2064L4306 2064L4304 2064L4302 2064L4300 2064L4298 2064L4296 2064L4296 2066L4296 2068L4296 2070L4296 2072L4294 2074L4292 2076L4290 2078L4288 2080L4286 2082L4284 2080L4282 2078L4280 2076L4280 2074L4280 2072L4280 2070L4278 2070L4276 2070L4274 2070L4272 2070L4270 2070L4268 2070L4266 2070L4264 2070L4262 2070L4260 2072L4258 2070L4256 2070L4254 2072L4252 2070L4250 2068L4248 2068L4246 2068L4244 2068L4242 2066L4240 2066L4238 2066L4236 2066L4234 2066L4232 2066L4230 2068L4228 2068L4226 2068L4224 2068L4222 2070L4220 2072L4218 2072L4216 2074L4214 2076L4214 2078L4214 2080L4214 2082L4214 2084L4214 2086L4214 2088L4214 2090L4214 2092L4214 2094L4214 2096L4212 2098L4212 2100L4210 2102L4210 2104L4208 2106L4206 2108L4204 2110L4202 2110L4200 2112L4198 2114L4196 2114L4194 2114L4192 2116L4190 2116L4188 2116L4186 2116L4184 2118L4182 2120L4180 2120L4178 2120L4176 2120L4174 2120L4172 2120L4170 2120L4168 2118L4166 2118L4164 2118L4162 2116L4160 2116L4158 2116L4156 2116L4154 2116L4152 2116L4150 2118L4148 2120L4148 2122L4148 2124L4148 2126L4148 2128L4148 2130L4148 2132L4146 2134L4144 2136L4142 2138L4140 2138L4138 2138L4136 2138L4134 2140L4132 2142L4130 2144L4128 2144L4126 2144L4124 2144L4122 2144L4120 2144L4118 2142L4116 2144L4114 2146L4112 2148L4110 2150L4108 2152L4106 2152L4104 2150L4102 2148L4100 2146L4098 2144L4100 2142L4102 2140L4102 2138L4102 2136L4102 2134L4102 2132L4102 2130L4102 2128L4102 2126L4100 2124L4098 2122L4096 2120L4094 2118L4092 2116L4090 2114L4090 2112L4090 2110L4090 2108L4090 2106L4088 2104L4088 2102L4088 2100L4086 2098L4086 2096L4084 2094L4082 2094L4080 2094L4078 2094L4076 2094L4074 2092L4072 2090L4070 2090L4068 2090L4066 2092L4064 2094L4062 2094L4060 2094L4058 2096L4056 2098L4054 2096L4052 2094L4050 2092L4048 2092L4046 2092L4044 2090L4042 2090L4040 2088L4038 2088L4036 2088L4034 2088L4032 2088L4030 2090L4028 2092L4026 2092L4024 2092L4022 2092L4020 2092L4018 2090L4016 2090L4014 2090L4012 2088L4010 2088L4008 2088L4006 2088L4004 2088L4002 2090L4000 2092L3998 2094L3996 2094L3994 2094L3992 2094L3990 2096L3988 2094L3986 2092L3984 2092L3982 2092L3980 2092L3978 2092L3976 2092L3974 2092L3972 2092L3970 2092L3968 2092L3966 2092L3964 2092L3962 2090L3960 2088L3958 2086L3956 2084L3954 2082L3952 2082L3950 2082L3948 2082L3946 2082L3944 2082L3942 2082L3940 2082L3938 2082L3936 2082L3934 2082L3932 2082L3930 2084L3928 2084L3926 2084L3924 2084L3922 2084L3920 2084L3918 2086L3916 2084L3914 2082L3912 2082L3910 2082L3908 2082L3906 2080L3904 2078L3902 2078L3900 2078L3898 2078L3896 2078L3894 2078L3892 2078L3890 2078L3888 2078L3886 2078L3884 2078L3882 2078L3880 2078L3878 2078L3876 2078L3874 2078L3872 2078L3870 2076L3868 2076L3866 2076L3864 2076L3862 2078L3860 2078L3858 2078L3856 2076L3854 2076L3852 2076L3850 2074L3848 2074L3846 2074L3844 2076L3842 2078L3840 2080L3838 2080L3836 2080L3834 2080L3832 2082L3830 2082L3828 2084L3826 2086L3824 2088L3822 2088L3820 2088L3818 2088L3816 2088L3814 2088L3812 2088L3810 2088L3810 2090L3808 2092L3806 2094L3806 2096L3804 2098L3804 2100L3802 2102L3802 2104L3802 2106L3802 2108L3802 2110L3804 2112L3806 2114L3806 2116L3806 2118L3806 2120L3806 2122L3804 2124L3804 2126L3804 2128L3804 2130L3804 2132L3804 2134L3804 2136L3804 2138L3802 2140L3802 2142L3802 2144L3804 2146L3804 2148L3804 2150L3804 2152L3804 2154L3804 2156L3804 2158L3802 2160L3802 2162L3802 2164L3800 2166L3798 2168L3796 2170L3796 2172L3794 2174L3792 2176L3790 2178L3788 2180L3786 2182L3784 2182L3782 2184L3780 2186L3778 2188L3776 2188L3776 2190L3776 2192L3776 2194L3774 2196L3772 2198L3772 2200L3772 2202L3772 2204L3770 2206L3768 2208L3766 2210L3766 2212L3764 2214L3762 2216L3760 2218L3760 2220L3758 2222L3758 2224L3756 2226L3754 2228L3752 2230L3750 2230L3748 2232L3746 2232L3744 2230L3742 2228L3740 2228L3738 2230L3736 2230L3734 2230L3732 2230L3730 2230L3728 2230L3726 2230L3724 2232L3722 2232L3720 2232L3718 2232L3716 2230L3714 2228L3712 2228L3710 2228L3708 2228L3706 2230L3704 2230L3702 2230L3700 2232L3698 2232L3696 2232L3694 2232L3692 2232L3690 2232L3688 2232L3686 2232L3684 2232L3682 2232L3680 2232L3678 2234L3676 2236L3674 2238L3674 2240L3674 2242L3674 2244L3674 2246L3674 2248L3674 2250L3674 2252L3674 2254L3674 2256L3674 2258L3674 2260L3674 2262L3676 2264L3676 2266L3676 2268L3678 2270L3678 2272L3678 2274L3678 2276L3678 2278L3676 2280L3676 2282L3678 2284L3680 2286L3682 2286L3684 2286L3686 2288L3688 2290L3690 2290L3692 2288L3694 2286L3696 2286L3698 2286L3700 2286L3702 2286L3704 2288L3706 2290L3708 2292L3710 2294L3710 2296L3710 2298L3710 2300L3710 2302L3712 2304L3712 2306L3714 2308L3716 2310L3718 2312L3718 2314L3716 2316L3716 2318L3714 2320L3712 2322L3710 2324L3708 2326L3706 2328L3704 2330L3702 2330L3700 2330L3698 2330L3696 2330L3694 2330L3692 2330L3690 2330L3688 2330L3686 2330L3684 2330L3682 2332L3680 2332L3678 2332L3676 2332L3674 2330L3672 2330L3670 2330L3668 2330L3666 2330L3664 2330L3662 2330L3660 2330L3658 2328L3656 2328L3654 2328M4064 2566L4066 2566L4066 2564L4068 2564L4068 2562L4070 2562L4072 2562L4074 2562L4076 2562L4078 2562L4078 2560L4080 2560L4080 2558L4082 2558L4082 2556L4082 2554L4082 2552L4082 2550L4082 2548L4084 2548L4084 2546L4086 2546L4086 2544L4088 2544L4090 2544L4092 2544L4094 2544L4094 2542L4096 2542L4098 2542L4100 2542L4102 2542L4102 2540L4104 2540L4106 2540L4106 2542L4108 2542L4108 2544L4110 2544L4108 2544L4108 2546L4106 2546L4106 2548L4106 2550L4108 2550L4110 2550L4110 2552L4112 2552L4112 2554L4114 2554L4114 2556L4116 2556L4116 2558L4114 2558L4114 2560L4112 2560L4112 2562L4110 2562L4110 2564L4108 2564L4106 2564L4106 2566L4106 2568L4104 2568L4104 2570L4102 2570L4102 2572L4100 2572L4100 2574L4098 2574L4096 2574L4094 2574L4092 2574L4090 2574L4088 2574L4086 2574L4084 2574L4082 2574L4080 2574L4078 2574L4076 2574L4074 2574L4072 2574L4070 2574L4070 2572L4068 2572L4068 2570L4066 2570L4066 2568L4064 2568M4074 2318L4076 2318L4076 2316L4076 2314L4078 2314L4078 2312L4080 2312L4080 2310L4082 2310L4084 2310L4086 2310L4088 2310L4088 2308L4090 2308L4092 2308L4094 2308L4096 2308L4098 2308L4100 2308L4102 2308L4104 2308L4106 2308L4108 2308L4110 2308L4112 2308L4114 2308L4116 2308L4116 2310L4118 2310L4118 2312L4120 2312L4120 2314L4118 2314L4118 2316L4116 2316L4116 2318L4116 2320L4116 2322L4116 2324L4116 2326L4118 2326L4118 2328L4118 2330L4116 2330L4116 2332L4114 2332L4114 2334L4112 2334L4110 2334L4108 2334L4106 2334L4104 2334L4102 2334L4100 2334L4098 2334L4096 2334L4094 2334L4092 2334L4090 2334L4088 2334L4086 2334L4084 2334L4084 2332L4082 2332L4082 2330L4080 2330L4080 2328L4078 2328L4078 2326L4076 2326L4076 2324L4076 2322L4076 2320L4076 2318M4106 2518L4108 2518L4108 2516L4108 2514L4108 2512L4110 2512L4110 2510L4110 2508L4110 2506L4110 2504L4110 2502L4110 2500L4110 2498L4110 2496L4110 2494L4112 2494L4112 2492L4114 2492L4114 2490L4116 2490L4116 2488L4116 2486L4116 2484L4118 2484L4118 2482L4120 2482L4120 2480L4122 2480L4124 2480L4124 2478L4124 2480L4126 2480L4126 2482L4128 2482L4128 2484L4128 2486L4128 2488L4128 2490L4128 2492L4128 2494L4128 2496L4130 2496L4130 2498L4132 2498L4132 2500L4134 2500L4134 2502L4132 2502L4132 2504L4132 2506L4132 2508L4134 2508L4134 2510L4134 2512L4134 2514L4134 2516L4134 2518L4132 2518L4132 2520L4130 2520L4130 2522L4128 2522L4126 2522L4126 2524L4124 2524L4124 2522L4122 2522L4120 2522L4118 2522L4116 2522L4114 2522L4112 2522L4110 2522L4110 2520L4108 2520L4108 2518M4120 2262L4122 2262L4122 2260L4124 2260L4124 2258L4126 2258L4126 2256L4126 2254L4126 2252L4126 2250L4124 2250L4126 2250L4126 2248L4128 2248L4128 2246L4130 2246L4132 2246L4134 2246L4136 2246L4138 2246L4138 2248L4140 2248L4140 2250L4142 2250L4142 2252L4142 2254L4142 2256L4142 2258L4142 2260L4142 2262L4142 2264L4142 2266L4140 2266L4140 2268L4140 2270L4138 2270L4138 2272L4136 2272L4136 2274L4134 2274L4132 2274L4132 2276L4132 2278L4132 2280L4132 2282L4132 2284L4132 2286L4132 2288L4130 2288L4130 2290L4128 2290L4128 2292L4128 2290L4126 2290L4126 2288L4124 2288L4124 2286L4124 2284L4124 2282L4124 2280L4124 2278L4124 2276L4124 2274L4124 2272L4124 2270L4122 2270L4122 2268L4120 2268L4120 2266L4120 2264Z" export const geoJSON = { "type": "Polygon", "coordinates": [ [ [3652, 2330], [3652, 2332], [3652, 2334], [3652, 2336], [3654, 2338], [3652, 2340], [3652, 2342], [3652, 2344], [3652, 2346], [3654, 2348], [3654, 2350], [3654, 2352], [3656, 2354], [3658, 2356], [3660, 2358], [3662, 2360], [3664, 2360], [3666, 2360], [3668, 2360], [3670, 2360], [3672, 2362], [3674, 2362], [3676, 2362], [3678, 2362], [3680, 2362], [3682, 2362], [3684, 2362], [3686, 2364], [3688, 2364], [3690, 2364], [3692, 2366], [3694, 2366], [3696, 2366], [3698, 2366], [3700, 2366], [3702, 2366], [3704, 2366], [3706, 2366], [3708, 2366], [3710, 2366], [3712, 2366], [3714, 2366], [3716, 2368], [3718, 2370], [3720, 2372], [3720, 2374], [3720, 2376], [3720, 2378], [3718, 2380], [3720, 2382], [3720, 2384], [3720, 2386], [3720, 2388], [3720, 2390], [3720, 2392], [3718, 2394], [3720, 2396], [3720, 2398], [3720, 2400], [3720, 2402], [3720, 2404], [3720, 2406], [3720, 2408], [3720, 2410], [3718, 2412], [3716, 2414], [3716, 2416], [3716, 2418], [3716, 2420], [3716, 2422], [3716, 2424], [3716, 2426], [3716, 2428], [3716, 2430], [3716, 2432], [3716, 2434], [3716, 2436], [3716, 2438], [3716, 2440], [3716, 2442], [3716, 2444], [3716, 2446], [3716, 2448], [3716, 2450], [3716, 2452], [3716, 2454], [3714, 2456], [3712, 2458], [3712, 2460], [3712, 2462], [3712, 2464], [3712, 2466], [3712, 2468], [3712, 2470], [3712, 2472], [3714, 2474], [3716, 2476], [3718, 2478], [3718, 2480], [3716, 2482], [3714, 2484], [3714, 2486], [3714, 2488], [3716, 2490], [3716, 2492], [3716, 2494], [3716, 2496], [3716, 2498], [3714, 2500], [3714, 2502], [3714, 2504], [3714, 2506], [3714, 2508], [3712, 2510], [3712, 2512], [3712, 2514], [3712, 2516], [3712, 2518], [3712, 2520], [3712, 2522], [3710, 2524], [3708, 2526], [3706, 2528], [3704, 2530], [3702, 2528], [3700, 2526], [3698, 2526], [3696, 2526], [3694, 2526], [3692, 2524], [3690, 2524], [3692, 2526], [3692, 2528], [3692, 2530], [3692, 2532], [3694, 2534], [3694, 2536], [3694, 2538], [3694, 2540], [3696, 2542], [3696, 2544], [3698, 2546], [3700, 2548], [3700, 2550], [3700, 2552], [3702, 2554], [3704, 2556], [3702, 2558], [3700, 2560], [3698, 2562], [3696, 2564], [3696, 2566], [3696, 2568], [3694, 2570], [3694, 2572], [3696, 2574], [3696, 2576], [3698, 2578], [3698, 2580], [3700, 2582], [3702, 2584], [3702, 2586], [3704, 2588], [3704, 2590], [3706, 2592], [3706, 2594], [3706, 2596], [3706, 2598], [3706, 2600], [3706, 2602], [3706, 2604], [3706, 2606], [3708, 2608], [3708, 2610], [3708, 2612], [3708, 2614], [3708, 2616], [3708, 2618], [3708, 2620], [3708, 2622], [3708, 2624], [3706, 2626], [3706, 2628], [3706, 2630], [3706, 2632], [3708, 2634], [3708, 2636], [3708, 2638], [3708, 2640], [3708, 2642], [3708, 2644], [3706, 2646], [3706, 2648], [3706, 2650], [3706, 2652], [3706, 2654], [3706, 2656], [3706, 2658], [3708, 2660], [3710, 2662], [3712, 2664], [3712, 2666], [3712, 2668], [3712, 2670], [3712, 2672], [3712, 2674], [3712, 2676], [3712, 2678], [3712, 2680], [3710, 2682], [3710, 2684], [3710, 2686], [3712, 2686], [3714, 2686], [3716, 2686], [3718, 2686], [3720, 2688], [3722, 2690], [3724, 2692], [3726, 2694], [3726, 2696], [3724, 2698], [3722, 2700], [3722, 2702], [3722, 2704], [3724, 2706], [3726, 2708], [3728, 2710], [3730, 2712], [3730, 2714], [3730, 2716], [3730, 2718], [3730, 2720], [3732, 2722], [3732, 2724], [3732, 2726], [3734, 2728], [3736, 2730], [3736, 2732], [3736, 2734], [3736, 2736], [3738, 2738], [3738, 2740], [3738, 2742], [3738, 2744], [3738, 2746], [3736, 2748], [3736, 2750], [3736, 2752], [3736, 2754], [3734, 2756], [3734, 2758], [3734, 2760], [3734, 2762], [3734, 2764], [3734, 2766], [3734, 2768], [3734, 2770], [3734, 2772], [3734, 2774], [3732, 2776], [3730, 2778], [3730, 2780], [3732, 2782], [3732, 2784], [3734, 2786], [3734, 2788], [3734, 2790], [3734, 2792], [3734, 2794], [3734, 2796], [3732, 2798], [3732, 2800], [3730, 2802], [3730, 2804], [3730, 2806], [3730, 2808], [3730, 2810], [3730, 2812], [3730, 2814], [3732, 2816], [3732, 2818], [3732, 2820], [3734, 2822], [3736, 2822], [3738, 2824], [3740, 2826], [3742, 2828], [3742, 2830], [3742, 2832], [3742, 2834], [3742, 2836], [3742, 2838], [3742, 2840], [3740, 2842], [3740, 2844], [3740, 2846], [3742, 2848], [3742, 2850], [3740, 2852], [3738, 2854], [3736, 2856], [3734, 2856], [3732, 2856], [3732, 2858], [3732, 2860], [3732, 2862], [3732, 2864], [3732, 2866], [3732, 2868], [3732, 2870], [3732, 2872], [3732, 2874], [3732, 2876], [3732, 2878], [3732, 2880], [3734, 2882], [3736, 2882], [3738, 2882], [3740, 2882], [3742, 2882], [3744, 2882], [3746, 2884], [3748, 2884], [3750, 2884], [3752, 2882], [3754, 2882], [3756, 2882], [3758, 2882], [3760, 2882], [3762, 2884], [3764, 2884], [3766, 2884], [3768, 2884], [3770, 2882], [3772, 2882], [3774, 2882], [3776, 2880], [3778, 2880], [3780, 2880], [3782, 2880], [3784, 2880], [3786, 2878], [3788, 2876], [3790, 2874], [3792, 2874], [3794, 2874], [3796, 2874], [3798, 2874], [3800, 2874], [3802, 2874], [3804, 2874], [3806, 2874], [3808, 2874], [3810, 2876], [3812, 2878], [3814, 2880], [3816, 2882], [3816, 2884], [3816, 2886], [3818, 2888], [3820, 2888], [3822, 2888], [3824, 2890], [3826, 2890], [3828, 2890], [3830, 2890], [3832, 2890], [3834, 2888], [3836, 2886], [3838, 2884], [3840, 2884], [3842, 2886], [3844, 2886], [3846, 2884], [3848, 2882], [3850, 2884], [3852, 2884], [3854, 2886], [3856, 2886], [3858, 2886], [3860, 2886], [3862, 2886], [3864, 2886], [3866, 2884], [3868, 2884], [3870, 2884], [3872, 2884], [3874, 2884], [3876, 2884], [3878, 2884], [3880, 2884], [3882, 2886], [3884, 2886], [3886, 2888], [3888, 2890], [3890, 2892], [3892, 2892], [3894, 2894], [3896, 2896], [3898, 2896], [3900, 2898], [3902, 2898], [3904, 2896], [3906, 2896], [3908, 2896], [3910, 2898], [3912, 2898], [3914, 2898], [3916, 2898], [3918, 2896], [3920, 2898], [3922, 2898], [3924, 2898], [3926, 2898], [3928, 2900], [3930, 2900], [3932, 2902], [3934, 2902], [3936, 2902], [3938, 2902], [3940, 2902], [3942, 2902], [3944, 2902], [3946, 2902], [3948, 2902], [3950, 2902], [3952, 2900], [3954, 2898], [3956, 2896], [3958, 2896], [3960, 2896], [3962, 2894], [3964, 2894], [3966, 2896], [3968, 2896], [3970, 2896], [3972, 2896], [3974, 2896], [3976, 2896], [3978, 2898], [3980, 2898], [3982, 2896], [3984, 2896], [3986, 2896], [3988, 2898], [3990, 2900], [3992, 2902], [3994, 2902], [3996, 2902], [3998, 2902], [4000, 2900], [4002, 2902], [4004, 2902], [4006, 2902], [4008, 2900], [4010, 2900], [4012, 2900], [4014, 2900], [4016, 2900], [4018, 2902], [4020, 2904], [4022, 2906], [4022, 2908], [4022, 2910], [4024, 2910], [4026, 2910], [4028, 2910], [4030, 2908], [4032, 2906], [4034, 2906], [4036, 2904], [4038, 2904], [4040, 2906], [4042, 2908], [4044, 2908], [4046, 2908], [4048, 2908], [4050, 2910], [4052, 2912], [4054, 2914], [4054, 2916], [4056, 2918], [4058, 2920], [4058, 2922], [4058, 2924], [4060, 2926], [4058, 2928], [4058, 2930], [4060, 2930], [4062, 2932], [4064, 2932], [4066, 2932], [4068, 2930], [4070, 2930], [4072, 2932], [4074, 2932], [4076, 2932], [4078, 2932], [4080, 2932], [4082, 2932], [4084, 2932], [4086, 2932], [4088, 2932], [4088, 2930], [4090, 2928], [4092, 2926], [4094, 2924], [4096, 2924], [4098, 2924], [4100, 2924], [4102, 2926], [4104, 2928], [4106, 2930], [4106, 2932], [4106, 2934], [4108, 2936], [4110, 2936], [4112, 2936], [4114, 2934], [4116, 2932], [4118, 2932], [4120, 2932], [4122, 2932], [4124, 2934], [4126, 2934], [4128, 2936], [4130, 2936], [4132, 2936], [4134, 2936], [4136, 2934], [4138, 2932], [4140, 2930], [4142, 2928], [4144, 2928], [4146, 2930], [4148, 2932], [4150, 2934], [4152, 2936], [4154, 2936], [4156, 2938], [4158, 2938], [4160, 2938], [4162, 2940], [4164, 2940], [4166, 2940], [4168, 2940], [4170, 2940], [4172, 2940], [4174, 2940], [4176, 2942], [4178, 2942], [4180, 2942], [4182, 2942], [4184, 2942], [4186, 2942], [4188, 2942], [4190, 2942], [4192, 2942], [4194, 2942], [4196, 2944], [4198, 2944], [4200, 2942], [4202, 2942], [4204, 2942], [4206, 2942], [4208, 2942], [4210, 2942], [4212, 2940], [4214, 2938], [4216, 2938], [4218, 2938], [4220, 2938], [4222, 2938], [4224, 2940], [4226, 2940], [4228, 2938], [4230, 2938], [4232, 2938], [4234, 2938], [4236, 2938], [4238, 2938], [4240, 2936], [4242, 2934], [4244, 2932], [4246, 2932], [4248, 2932], [4250, 2932], [4252, 2932], [4254, 2932], [4256, 2932], [4258, 2932], [4260, 2932], [4262, 2932], [4264, 2932], [4266, 2932], [4268, 2932], [4270, 2932], [4272, 2932], [4274, 2932], [4276, 2932], [4278, 2934], [4280, 2932], [4282, 2932], [4284, 2934], [4286, 2934], [4288, 2936], [4290, 2936], [4292, 2934], [4294, 2934], [4296, 2934], [4298, 2934], [4300, 2934], [4302, 2934], [4304, 2934], [4306, 2934], [4308, 2934], [4310, 2936], [4312, 2936], [4314, 2938], [4316, 2938], [4318, 2938], [4320, 2938], [4322, 2938], [4324, 2940], [4326, 2940], [4328, 2940], [4330, 2940], [4332, 2942], [4334, 2942], [4336, 2942], [4336, 2940], [4338, 2938], [4338, 2936], [4338, 2934], [4340, 2932], [4342, 2930], [4344, 2928], [4344, 2926], [4344, 2924], [4344, 2922], [4344, 2920], [4344, 2918], [4344, 2916], [4346, 2914], [4348, 2912], [4348, 2910], [4348, 2908], [4350, 2906], [4350, 2904], [4348, 2902], [4346, 2900], [4346, 2898], [4346, 2896], [4346, 2894], [4346, 2892], [4346, 2890], [4346, 2888], [4346, 2886], [4348, 2884], [4348, 2882], [4348, 2880], [4348, 2878], [4348, 2876], [4350, 2874], [4350, 2872], [4350, 2870], [4352, 2868], [4354, 2866], [4354, 2864], [4352, 2862], [4352, 2860], [4350, 2858], [4350, 2856], [4350, 2854], [4350, 2852], [4350, 2850], [4350, 2848], [4348, 2846], [4348, 2844], [4350, 2842], [4352, 2840], [4354, 2838], [4356, 2836], [4356, 2834], [4358, 2832], [4358, 2830], [4360, 2828], [4360, 2826], [4360, 2824], [4360, 2822], [4360, 2820], [4360, 2818], [4358, 2816], [4356, 2814], [4354, 2812], [4352, 2810], [4354, 2808], [4354, 2806], [4356, 2804], [4356, 2802], [4356, 2800], [4354, 2798], [4354, 2796], [4354, 2794], [4354, 2792], [4354, 2790], [4354, 2788], [4356, 2786], [4356, 2784], [4356, 2782], [4356, 2780], [4356, 2778], [4356, 2776], [4356, 2774], [4356, 2772], [4356, 2770], [4356, 2768], [4356, 2766], [4356, 2764], [4356, 2762], [4356, 2760], [4356, 2758], [4354, 2756], [4354, 2754], [4354, 2752], [4354, 2750], [4354, 2748], [4354, 2746], [4354, 2744], [4354, 2742], [4354, 2740], [4354, 2738], [4354, 2736], [4354, 2734], [4356, 2732], [4356, 2730], [4356, 2728], [4356, 2726], [4356, 2724], [4356, 2722], [4356, 2720], [4356, 2718], [4356, 2716], [4356, 2714], [4356, 2712], [4356, 2710], [4356, 2708], [4356, 2706], [4356, 2704], [4356, 2702], [4356, 2700], [4356, 2698], [4356, 2696], [4354, 2694], [4354, 2692], [4354, 2690], [4354, 2688], [4354, 2686], [4354, 2684], [4354, 2682], [4354, 2680], [4352, 2680], [4350, 2680], [4348, 2678], [4346, 2676], [4344, 2674], [4344, 2672], [4344, 2670], [4344, 2668], [4346, 2666], [4346, 2664], [4346, 2662], [4348, 2660], [4350, 2658], [4352, 2656], [4354, 2656], [4354, 2654], [4356, 2652], [4358, 2650], [4358, 2648], [4358, 2646], [4358, 2644], [4360, 2642], [4360, 2640], [4358, 2638], [4358, 2636], [4360, 2634], [4362, 2632], [4362, 2630], [4362, 2628], [4362, 2626], [4362, 2624], [4360, 2622], [4360, 2620], [4360, 2618], [4360, 2616], [4360, 2614], [4360, 2612], [4362, 2610], [4364, 2608], [4364, 2606], [4364, 2604], [4366, 2602], [4366, 2600], [4366, 2598], [4366, 2596], [4366, 2594], [4366, 2592], [4366, 2590], [4366, 2588], [4366, 2586], [4366, 2584], [4366, 2582], [4366, 2580], [4364, 2578], [4364, 2576], [4364, 2574], [4364, 2572], [4362, 2570], [4362, 2568], [4362, 2566], [4362, 2564], [4362, 2562], [4362, 2560], [4362, 2558], [4362, 2556], [4362, 2554], [4362, 2552], [4362, 2550], [4362, 2548], [4362, 2546], [4364, 2544], [4364, 2542], [4364, 2540], [4364, 2538], [4364, 2536], [4364, 2534], [4364, 2532], [4364, 2530], [4364, 2528], [4364, 2526], [4364, 2524], [4366, 2522], [4368, 2520], [4370, 2518], [4370, 2516], [4370, 2514], [4370, 2512], [4370, 2510], [4370, 2508], [4370, 2506], [4368, 2504], [4368, 2502], [4368, 2500], [4368, 2498], [4368, 2496], [4368, 2494], [4368, 2492], [4368, 2490], [4368, 2488], [4370, 2486], [4372, 2484], [4374, 2482], [4376, 2480], [4376, 2478], [4376, 2476], [4378, 2474], [4378, 2472], [4378, 2470], [4378, 2468], [4378, 2466], [4378, 2464], [4376, 2462], [4374, 2460], [4374, 2458], [4374, 2456], [4376, 2454], [4376, 2452], [4376, 2450], [4376, 2448], [4374, 2446], [4374, 2444], [4374, 2442], [4374, 2440], [4374, 2438], [4376, 2436], [4376, 2434], [4376, 2432], [4374, 2430], [4374, 2428], [4374, 2426], [4374, 2424], [4376, 2422], [4376, 2420], [4376, 2418], [4376, 2416], [4376, 2414], [4376, 2412], [4376, 2410], [4376, 2408], [4376, 2406], [4376, 2404], [4376, 2402], [4376, 2400], [4376, 2398], [4376, 2396], [4376, 2394], [4374, 2392], [4374, 2390], [4376, 2388], [4376, 2386], [4376, 2384], [4376, 2382], [4376, 2380], [4376, 2378], [4376, 2376], [4378, 2374], [4378, 2372], [4380, 2370], [4380, 2368], [4380, 2366], [4380, 2364], [4380, 2362], [4378, 2360], [4378, 2358], [4378, 2356], [4378, 2354], [4378, 2352], [4378, 2350], [4378, 2348], [4378, 2346], [4378, 2344], [4378, 2342], [4378, 2340], [4378, 2338], [4378, 2336], [4378, 2334], [4378, 2332], [4378, 2330], [4378, 2328], [4380, 2326], [4380, 2324], [4380, 2322], [4380, 2320], [4380, 2318], [4382, 2316], [4382, 2314], [4382, 2312], [4382, 2310], [4382, 2308], [4382, 2306], [4382, 2304], [4382, 2302], [4382, 2300], [4380, 2298], [4380, 2296], [4380, 2294], [4380, 2292], [4380, 2290], [4380, 2288], [4380, 2286], [4380, 2284], [4380, 2282], [4380, 2280], [4380, 2278], [4380, 2276], [4380, 2274], [4380, 2272], [4380, 2270], [4380, 2268], [4378, 2266], [4378, 2264], [4376, 2262], [4374, 2260], [4372, 2258], [4372, 2256], [4374, 2254], [4374, 2252], [4374, 2250], [4374, 2248], [4374, 2246], [4374, 2244], [4374, 2242], [4374, 2240], [4374, 2238], [4374, 2236], [4374, 2234], [4374, 2232], [4374, 2230], [4374, 2228], [4374, 2226], [4376, 2224], [4378, 2222], [4378, 2220], [4378, 2218], [4378, 2216], [4378, 2214], [4378, 2212], [4378, 2210], [4380, 2208], [4382, 2206], [4384, 2204], [4384, 2202], [4384, 2200], [4384, 2198], [4384, 2196], [4386, 2194], [4386, 2192], [4386, 2190], [4386, 2188], [4386, 2186], [4386, 2184], [4386, 2182], [4386, 2180], [4384, 2178], [4384, 2176], [4382, 2174], [4380, 2172], [4380, 2170], [4378, 2168], [4378, 2166], [4378, 2164], [4378, 2162], [4378, 2160], [4378, 2158], [4378, 2156], [4378, 2154], [4378, 2152], [4376, 2150], [4376, 2148], [4374, 2148], [4372, 2146], [4370, 2144], [4368, 2144], [4366, 2142], [4364, 2140], [4362, 2140], [4360, 2140], [4358, 2138], [4356, 2136], [4354, 2134], [4352, 2132], [4352, 2130], [4352, 2128], [4350, 2126], [4348, 2124], [4348, 2122], [4348, 2120], [4348, 2118], [4348, 2116], [4348, 2114], [4348, 2112], [4348, 2110], [4348, 2108], [4346, 2106], [4346, 2104], [4346, 2102], [4344, 2102], [4342, 2102], [4340, 2102], [4338, 2100], [4336, 2098], [4334, 2096], [4334, 2094], [4334, 2092], [4334, 2090], [4334, 2088], [4334, 2086], [4334, 2084], [4332, 2082], [4332, 2080], [4330, 2078], [4328, 2076], [4326, 2074], [4326, 2072], [4326, 2070], [4326, 2068], [4324, 2066], [4322, 2066], [4320, 2066], [4318, 2066], [4316, 2066], [4314, 2066], [4312, 2064], [4310, 2064], [4308, 2064], [4306, 2064], [4304, 2064], [4302, 2064], [4300, 2064], [4298, 2064], [4296, 2064], [4296, 2066], [4296, 2068], [4296, 2070], [4296, 2072], [4294, 2074], [4292, 2076], [4290, 2078], [4288, 2080], [4286, 2082], [4284, 2080], [4282, 2078], [4280, 2076], [4280, 2074], [4280, 2072], [4280, 2070], [4278, 2070], [4276, 2070], [4274, 2070], [4272, 2070], [4270, 2070], [4268, 2070], [4266, 2070], [4264, 2070], [4262, 2070], [4260, 2072], [4258, 2070], [4256, 2070], [4254, 2072], [4252, 2070], [4250, 2068], [4248, 2068], [4246, 2068], [4244, 2068], [4242, 2066], [4240, 2066], [4238, 2066], [4236, 2066], [4234, 2066], [4232, 2066], [4230, 2068], [4228, 2068], [4226, 2068], [4224, 2068], [4222, 2070], [4220, 2072], [4218, 2072], [4216, 2074], [4214, 2076], [4214, 2078], [4214, 2080], [4214, 2082], [4214, 2084], [4214, 2086], [4214, 2088], [4214, 2090], [4214, 2092], [4214, 2094], [4214, 2096], [4212, 2098], [4212, 2100], [4210, 2102], [4210, 2104], [4208, 2106], [4206, 2108], [4204, 2110], [4202, 2110], [4200, 2112], [4198, 2114], [4196, 2114], [4194, 2114], [4192, 2116], [4190, 2116], [4188, 2116], [4186, 2116], [4184, 2118], [4182, 2120], [4180, 2120], [4178, 2120], [4176, 2120], [4174, 2120], [4172, 2120], [4170, 2120], [4168, 2118], [4166, 2118], [4164, 2118], [4162, 2116], [4160, 2116], [4158, 2116], [4156, 2116], [4154, 2116], [4152, 2116], [4150, 2118], [4148, 2120], [4148, 2122], [4148, 2124], [4148, 2126], [4148, 2128], [4148, 2130], [4148, 2132], [4146, 2134], [4144, 2136], [4142, 2138], [4140, 2138], [4138, 2138], [4136, 2138], [4134, 2140], [4132, 2142], [4130, 2144], [4128, 2144], [4126, 2144], [4124, 2144], [4122, 2144], [4120, 2144], [4118, 2142], [4116, 2144], [4114, 2146], [4112, 2148], [4110, 2150], [4108, 2152], [4106, 2152], [4104, 2150], [4102, 2148], [4100, 2146], [4098, 2144], [4100, 2142], [4102, 2140], [4102, 2138], [4102, 2136], [4102, 2134], [4102, 2132], [4102, 2130], [4102, 2128], [4102, 2126], [4100, 2124], [4098, 2122], [4096, 2120], [4094, 2118], [4092, 2116], [4090, 2114], [4090, 2112], [4090, 2110], [4090, 2108], [4090, 2106], [4088, 2104], [4088, 2102], [4088, 2100], [4086, 2098], [4086, 2096], [4084, 2094], [4082, 2094], [4080, 2094], [4078, 2094], [4076, 2094], [4074, 2092], [4072, 2090], [4070, 2090], [4068, 2090], [4066, 2092], [4064, 2094], [4062, 2094], [4060, 2094], [4058, 2096], [4056, 2098], [4054, 2096], [4052, 2094], [4050, 2092], [4048, 2092], [4046, 2092], [4044, 2090], [4042, 2090], [4040, 2088], [4038, 2088], [4036, 2088], [4034, 2088], [4032, 2088], [4030, 2090], [4028, 2092], [4026, 2092], [4024, 2092], [4022, 2092], [4020, 2092], [4018, 2090], [4016, 2090], [4014, 2090], [4012, 2088], [4010, 2088], [4008, 2088], [4006, 2088], [4004, 2088], [4002, 2090], [4000, 2092], [3998, 2094], [3996, 2094], [3994, 2094], [3992, 2094], [3990, 2096], [3988, 2094], [3986, 2092], [3984, 2092], [3982, 2092], [3980, 2092], [3978, 2092], [3976, 2092], [3974, 2092], [3972, 2092], [3970, 2092], [3968, 2092], [3966, 2092], [3964, 2092], [3962, 2090], [3960, 2088], [3958, 2086], [3956, 2084], [3954, 2082], [3952, 2082], [3950, 2082], [3948, 2082], [3946, 2082], [3944, 2082], [3942, 2082], [3940, 2082], [3938, 2082], [3936, 2082], [3934, 2082], [3932, 2082], [3930, 2084], [3928, 2084], [3926, 2084], [3924, 2084], [3922, 2084], [3920, 2084], [3918, 2086], [3916, 2084], [3914, 2082], [3912, 2082], [3910, 2082], [3908, 2082], [3906, 2080], [3904, 2078], [3902, 2078], [3900, 2078], [3898, 2078], [3896, 2078], [3894, 2078], [3892, 2078], [3890, 2078], [3888, 2078], [3886, 2078], [3884, 2078], [3882, 2078], [3880, 2078], [3878, 2078], [3876, 2078], [3874, 2078], [3872, 2078], [3870, 2076], [3868, 2076], [3866, 2076], [3864, 2076], [3862, 2078], [3860, 2078], [3858, 2078], [3856, 2076], [3854, 2076], [3852, 2076], [3850, 2074], [3848, 2074], [3846, 2074], [3844, 2076], [3842, 2078], [3840, 2080], [3838, 2080], [3836, 2080], [3834, 2080], [3832, 2082], [3830, 2082], [3828, 2084], [3826, 2086], [3824, 2088], [3822, 2088], [3820, 2088], [3818, 2088], [3816, 2088], [3814, 2088], [3812, 2088], [3810, 2088], [3810, 2090], [3808, 2092], [3806, 2094], [3806, 2096], [3804, 2098], [3804, 2100], [3802, 2102], [3802, 2104], [3802, 2106], [3802, 2108], [3802, 2110], [3804, 2112], [3806, 2114], [3806, 2116], [3806, 2118], [3806, 2120], [3806, 2122], [3804, 2124], [3804, 2126], [3804, 2128], [3804, 2130], [3804, 2132], [3804, 2134], [3804, 2136], [3804, 2138], [3802, 2140], [3802, 2142], [3802, 2144], [3804, 2146], [3804, 2148], [3804, 2150], [3804, 2152], [3804, 2154], [3804, 2156], [3804, 2158], [3802, 2160], [3802, 2162], [3802, 2164], [3800, 2166], [3798, 2168], [3796, 2170], [3796, 2172], [3794, 2174], [3792, 2176], [3790, 2178], [3788, 2180], [3786, 2182], [3784, 2182], [3782, 2184], [3780, 2186], [3778, 2188], [3776, 2188], [3776, 2190], [3776, 2192], [3776, 2194], [3774, 2196], [3772, 2198], [3772, 2200], [3772, 2202], [3772, 2204], [3770, 2206], [3768, 2208], [3766, 2210], [3766, 2212], [3764, 2214], [3762, 2216], [3760, 2218], [3760, 2220], [3758, 2222], [3758, 2224], [3756, 2226], [3754, 2228], [3752, 2230], [3750, 2230], [3748, 2232], [3746, 2232], [3744, 2230], [3742, 2228], [3740, 2228], [3738, 2230], [3736, 2230], [3734, 2230], [3732, 2230], [3730, 2230], [3728, 2230], [3726, 2230], [3724, 2232], [3722, 2232], [3720, 2232], [3718, 2232], [3716, 2230], [3714, 2228], [3712, 2228], [3710, 2228], [3708, 2228], [3706, 2230], [3704, 2230], [3702, 2230], [3700, 2232], [3698, 2232], [3696, 2232], [3694, 2232], [3692, 2232], [3690, 2232], [3688, 2232], [3686, 2232], [3684, 2232], [3682, 2232], [3680, 2232], [3678, 2234], [3676, 2236], [3674, 2238], [3674, 2240], [3674, 2242], [3674, 2244], [3674, 2246], [3674, 2248], [3674, 2250], [3674, 2252], [3674, 2254], [3674, 2256], [3674, 2258], [3674, 2260], [3674, 2262], [3676, 2264], [3676, 2266], [3676, 2268], [3678, 2270], [3678, 2272], [3678, 2274], [3678, 2276], [3678, 2278], [3676, 2280], [3676, 2282], [3678, 2284], [3680, 2286], [3682, 2286], [3684, 2286], [3686, 2288], [3688, 2290], [3690, 2290], [3692, 2288], [3694, 2286], [3696, 2286], [3698, 2286], [3700, 2286], [3702, 2286], [3704, 2288], [3706, 2290], [3708, 2292], [3710, 2294], [3710, 2296], [3710, 2298], [3710, 2300], [3710, 2302], [3712, 2304], [3712, 2306], [3714, 2308], [3716, 2310], [3718, 2312], [3718, 2314], [3716, 2316], [3716, 2318], [3714, 2320], [3712, 2322], [3710, 2324], [3708, 2326], [3706, 2328], [3704, 2330], [3702, 2330], [3700, 2330], [3698, 2330], [3696, 2330], [3694, 2330], [3692, 2330], [3690, 2330], [3688, 2330], [3686, 2330], [3684, 2330], [3682, 2332], [3680, 2332], [3678, 2332], [3676, 2332], [3674, 2330], [3672, 2330], [3670, 2330], [3668, 2330], [3666, 2330], [3664, 2330], [3662, 2330], [3660, 2330], [3658, 2328], [3656, 2328], [3654, 2328], [3652, 2330] ], [ [4064, 2566], [4066, 2566], [4066, 2564], [4068, 2564], [4068, 2562], [4070, 2562], [4072, 2562], [4074, 2562], [4076, 2562], [4078, 2562], [4078, 2560], [4080, 2560], [4080, 2558], [4082, 2558], [4082, 2556], [4082, 2554], [4082, 2552], [4082, 2550], [4082, 2548], [4084, 2548], [4084, 2546], [4086, 2546], [4086, 2544], [4088, 2544], [4090, 2544], [4092, 2544], [4094, 2544], [4094, 2542], [4096, 2542], [4098, 2542], [4100, 2542], [4102, 2542], [4102, 2540], [4104, 2540], [4106, 2540], [4106, 2542], [4108, 2542], [4108, 2544], [4110, 2544], [4108, 2544], [4108, 2546], [4106, 2546], [4106, 2548], [4106, 2550], [4108, 2550], [4110, 2550], [4110, 2552], [4112, 2552], [4112, 2554], [4114, 2554], [4114, 2556], [4116, 2556], [4116, 2558], [4114, 2558], [4114, 2560], [4112, 2560], [4112, 2562], [4110, 2562], [4110, 2564], [4108, 2564], [4106, 2564], [4106, 2566], [4106, 2568], [4104, 2568], [4104, 2570], [4102, 2570], [4102, 2572], [4100, 2572], [4100, 2574], [4098, 2574], [4096, 2574], [4094, 2574], [4092, 2574], [4090, 2574], [4088, 2574], [4086, 2574], [4084, 2574], [4082, 2574], [4080, 2574], [4078, 2574], [4076, 2574], [4074, 2574], [4072, 2574], [4070, 2574], [4070, 2572], [4068, 2572], [4068, 2570], [4066, 2570], [4066, 2568], [4064, 2568], [4064, 2566] ], [ [4074, 2318], [4076, 2318], [4076, 2316], [4076, 2314], [4078, 2314], [4078, 2312], [4080, 2312], [4080, 2310], [4082, 2310], [4084, 2310], [4086, 2310], [4088, 2310], [4088, 2308], [4090, 2308], [4092, 2308], [4094, 2308], [4096, 2308], [4098, 2308], [4100, 2308], [4102, 2308], [4104, 2308], [4106, 2308], [4108, 2308], [4110, 2308], [4112, 2308], [4114, 2308], [4116, 2308], [4116, 2310], [4118, 2310], [4118, 2312], [4120, 2312], [4120, 2314], [4118, 2314], [4118, 2316], [4116, 2316], [4116, 2318], [4116, 2320], [4116, 2322], [4116, 2324], [4116, 2326], [4118, 2326], [4118, 2328], [4118, 2330], [4116, 2330], [4116, 2332], [4114, 2332], [4114, 2334], [4112, 2334], [4110, 2334], [4108, 2334], [4106, 2334], [4104, 2334], [4102, 2334], [4100, 2334], [4098, 2334], [4096, 2334], [4094, 2334], [4092, 2334], [4090, 2334], [4088, 2334], [4086, 2334], [4084, 2334], [4084, 2332], [4082, 2332], [4082, 2330], [4080, 2330], [4080, 2328], [4078, 2328], [4078, 2326], [4076, 2326], [4076, 2324], [4076, 2322], [4076, 2320], [4076, 2318], [4074, 2318] ], [ [4106, 2518], [4108, 2518], [4108, 2516], [4108, 2514], [4108, 2512], [4110, 2512], [4110, 2510], [4110, 2508], [4110, 2506], [4110, 2504], [4110, 2502], [4110, 2500], [4110, 2498], [4110, 2496], [4110, 2494], [4112, 2494], [4112, 2492], [4114, 2492], [4114, 2490], [4116, 2490], [4116, 2488], [4116, 2486], [4116, 2484], [4118, 2484], [4118, 2482], [4120, 2482], [4120, 2480], [4122, 2480], [4124, 2480], [4124, 2478], [4124, 2480], [4126, 2480], [4126, 2482], [4128, 2482], [4128, 2484], [4128, 2486], [4128, 2488], [4128, 2490], [4128, 2492], [4128, 2494], [4128, 2496], [4130, 2496], [4130, 2498], [4132, 2498], [4132, 2500], [4134, 2500], [4134, 2502], [4132, 2502], [4132, 2504], [4132, 2506], [4132, 2508], [4134, 2508], [4134, 2510], [4134, 2512], [4134, 2514], [4134, 2516], [4134, 2518], [4132, 2518], [4132, 2520], [4130, 2520], [4130, 2522], [4128, 2522], [4126, 2522], [4126, 2524], [4124, 2524], [4124, 2522], [4122, 2522], [4120, 2522], [4118, 2522], [4116, 2522], [4114, 2522], [4112, 2522], [4110, 2522], [4110, 2520], [4108, 2520], [4108, 2518], [4106, 2518] ], [ [4120, 2262], [4122, 2262], [4122, 2260], [4124, 2260], [4124, 2258], [4126, 2258], [4126, 2256], [4126, 2254], [4126, 2252], [4126, 2250], [4124, 2250], [4126, 2250], [4126, 2248], [4128, 2248], [4128, 2246], [4130, 2246], [4132, 2246], [4134, 2246], [4136, 2246], [4138, 2246], [4138, 2248], [4140, 2248], [4140, 2250], [4142, 2250], [4142, 2252], [4142, 2254], [4142, 2256], [4142, 2258], [4142, 2260], [4142, 2262], [4142, 2264], [4142, 2266], [4140, 2266], [4140, 2268], [4140, 2270], [4138, 2270], [4138, 2272], [4136, 2272], [4136, 2274], [4134, 2274], [4132, 2274], [4132, 2276], [4132, 2278], [4132, 2280], [4132, 2282], [4132, 2284], [4132, 2286], [4132, 2288], [4130, 2288], [4130, 2290], [4128, 2290], [4128, 2292], [4128, 2290], [4126, 2290], [4126, 2288], [4124, 2288], [4124, 2286], [4124, 2284], [4124, 2282], [4124, 2280], [4124, 2278], [4124, 2276], [4124, 2274], [4124, 2272], [4124, 2270], [4122, 2270], [4122, 2268], [4120, 2268], [4120, 2266], [4120, 2264], [4120, 2262] ] ] } export const clipper = [ [{ "X": 3652, "Y": 2330 }, { "X": 3652, "Y": 2332 }, { "X": 3652, "Y": 2334 }, { "X": 3652, "Y": 2336 }, { "X": 3654, "Y": 2338 }, { "X": 3652, "Y": 2340 }, { "X": 3652, "Y": 2342 }, { "X": 3652, "Y": 2344 }, { "X": 3652, "Y": 2346 }, { "X": 3654, "Y": 2348 }, { "X": 3654, "Y": 2350 }, { "X": 3654, "Y": 2352 }, { "X": 3656, "Y": 2354 }, { "X": 3658, "Y": 2356 }, { "X": 3660, "Y": 2358 }, { "X": 3662, "Y": 2360 }, { "X": 3664, "Y": 2360 }, { "X": 3666, "Y": 2360 }, { "X": 3668, "Y": 2360 }, { "X": 3670, "Y": 2360 }, { "X": 3672, "Y": 2362 }, { "X": 3674, "Y": 2362 }, { "X": 3676, "Y": 2362 }, { "X": 3678, "Y": 2362 }, { "X": 3680, "Y": 2362 }, { "X": 3682, "Y": 2362 }, { "X": 3684, "Y": 2362 }, { "X": 3686, "Y": 2364 }, { "X": 3688, "Y": 2364 }, { "X": 3690, "Y": 2364 }, { "X": 3692, "Y": 2366 }, { "X": 3694, "Y": 2366 }, { "X": 3696, "Y": 2366 }, { "X": 3698, "Y": 2366 }, { "X": 3700, "Y": 2366 }, { "X": 3702, "Y": 2366 }, { "X": 3704, "Y": 2366 }, { "X": 3706, "Y": 2366 }, { "X": 3708, "Y": 2366 }, { "X": 3710, "Y": 2366 }, { "X": 3712, "Y": 2366 }, { "X": 3714, "Y": 2366 }, { "X": 3716, "Y": 2368 }, { "X": 3718, "Y": 2370 }, { "X": 3720, "Y": 2372 }, { "X": 3720, "Y": 2374 }, { "X": 3720, "Y": 2376 }, { "X": 3720, "Y": 2378 }, { "X": 3718, "Y": 2380 }, { "X": 3720, "Y": 2382 }, { "X": 3720, "Y": 2384 }, { "X": 3720, "Y": 2386 }, { "X": 3720, "Y": 2388 }, { "X": 3720, "Y": 2390 }, { "X": 3720, "Y": 2392 }, { "X": 3718, "Y": 2394 }, { "X": 3720, "Y": 2396 }, { "X": 3720, "Y": 2398 }, { "X": 3720, "Y": 2400 }, { "X": 3720, "Y": 2402 }, { "X": 3720, "Y": 2404 }, { "X": 3720, "Y": 2406 }, { "X": 3720, "Y": 2408 }, { "X": 3720, "Y": 2410 }, { "X": 3718, "Y": 2412 }, { "X": 3716, "Y": 2414 }, { "X": 3716, "Y": 2416 }, { "X": 3716, "Y": 2418 }, { "X": 3716, "Y": 2420 }, { "X": 3716, "Y": 2422 }, { "X": 3716, "Y": 2424 }, { "X": 3716, "Y": 2426 }, { "X": 3716, "Y": 2428 }, { "X": 3716, "Y": 2430 }, { "X": 3716, "Y": 2432 }, { "X": 3716, "Y": 2434 }, { "X": 3716, "Y": 2436 }, { "X": 3716, "Y": 2438 }, { "X": 3716, "Y": 2440 }, { "X": 3716, "Y": 2442 }, { "X": 3716, "Y": 2444 }, { "X": 3716, "Y": 2446 }, { "X": 3716, "Y": 2448 }, { "X": 3716, "Y": 2450 }, { "X": 3716, "Y": 2452 }, { "X": 3716, "Y": 2454 }, { "X": 3714, "Y": 2456 }, { "X": 3712, "Y": 2458 }, { "X": 3712, "Y": 2460 }, { "X": 3712, "Y": 2462 }, { "X": 3712, "Y": 2464 }, { "X": 3712, "Y": 2466 }, { "X": 3712, "Y": 2468 }, { "X": 3712, "Y": 2470 }, { "X": 3712, "Y": 2472 }, { "X": 3714, "Y": 2474 }, { "X": 3716, "Y": 2476 }, { "X": 3718, "Y": 2478 }, { "X": 3718, "Y": 2480 }, { "X": 3716, "Y": 2482 }, { "X": 3714, "Y": 2484 }, { "X": 3714, "Y": 2486 }, { "X": 3714, "Y": 2488 }, { "X": 3716, "Y": 2490 }, { "X": 3716, "Y": 2492 }, { "X": 3716, "Y": 2494 }, { "X": 3716, "Y": 2496 }, { "X": 3716, "Y": 2498 }, { "X": 3714, "Y": 2500 }, { "X": 3714, "Y": 2502 }, { "X": 3714, "Y": 2504 }, { "X": 3714, "Y": 2506 }, { "X": 3714, "Y": 2508 }, { "X": 3712, "Y": 2510 }, { "X": 3712, "Y": 2512 }, { "X": 3712, "Y": 2514 }, { "X": 3712, "Y": 2516 }, { "X": 3712, "Y": 2518 }, { "X": 3712, "Y": 2520 }, { "X": 3712, "Y": 2522 }, { "X": 3710, "Y": 2524 }, { "X": 3708, "Y": 2526 }, { "X": 3706, "Y": 2528 }, { "X": 3704, "Y": 2530 }, { "X": 3702, "Y": 2528 }, { "X": 3700, "Y": 2526 }, { "X": 3698, "Y": 2526 }, { "X": 3696, "Y": 2526 }, { "X": 3694, "Y": 2526 }, { "X": 3692, "Y": 2524 }, { "X": 3690, "Y": 2524 }, { "X": 3692, "Y": 2526 }, { "X": 3692, "Y": 2528 }, { "X": 3692, "Y": 2530 }, { "X": 3692, "Y": 2532 }, { "X": 3694, "Y": 2534 }, { "X": 3694, "Y": 2536 }, { "X": 3694, "Y": 2538 }, { "X": 3694, "Y": 2540 }, { "X": 3696, "Y": 2542 }, { "X": 3696, "Y": 2544 }, { "X": 3698, "Y": 2546 }, { "X": 3700, "Y": 2548 }, { "X": 3700, "Y": 2550 }, { "X": 3700, "Y": 2552 }, { "X": 3702, "Y": 2554 }, { "X": 3704, "Y": 2556 }, { "X": 3702, "Y": 2558 }, { "X": 3700, "Y": 2560 }, { "X": 3698, "Y": 2562 }, { "X": 3696, "Y": 2564 }, { "X": 3696, "Y": 2566 }, { "X": 3696, "Y": 2568 }, { "X": 3694, "Y": 2570 }, { "X": 3694, "Y": 2572 }, { "X": 3696, "Y": 2574 }, { "X": 3696, "Y": 2576 }, { "X": 3698, "Y": 2578 }, { "X": 3698, "Y": 2580 }, { "X": 3700, "Y": 2582 }, { "X": 3702, "Y": 2584 }, { "X": 3702, "Y": 2586 }, { "X": 3704, "Y": 2588 }, { "X": 3704, "Y": 2590 }, { "X": 3706, "Y": 2592 }, { "X": 3706, "Y": 2594 }, { "X": 3706, "Y": 2596 }, { "X": 3706, "Y": 2598 }, { "X": 3706, "Y": 2600 }, { "X": 3706, "Y": 2602 }, { "X": 3706, "Y": 2604 }, { "X": 3706, "Y": 2606 }, { "X": 3708, "Y": 2608 }, { "X": 3708, "Y": 2610 }, { "X": 3708, "Y": 2612 }, { "X": 3708, "Y": 2614 }, { "X": 3708, "Y": 2616 }, { "X": 3708, "Y": 2618 }, { "X": 3708, "Y": 2620 }, { "X": 3708, "Y": 2622 }, { "X": 3708, "Y": 2624 }, { "X": 3706, "Y": 2626 }, { "X": 3706, "Y": 2628 }, { "X": 3706, "Y": 2630 }, { "X": 3706, "Y": 2632 }, { "X": 3708, "Y": 2634 }, { "X": 3708, "Y": 2636 }, { "X": 3708, "Y": 2638 }, { "X": 3708, "Y": 2640 }, { "X": 3708, "Y": 2642 }, { "X": 3708, "Y": 2644 }, { "X": 3706, "Y": 2646 }, { "X": 3706, "Y": 2648 }, { "X": 3706, "Y": 2650 }, { "X": 3706, "Y": 2652 }, { "X": 3706, "Y": 2654 }, { "X": 3706, "Y": 2656 }, { "X": 3706, "Y": 2658 }, { "X": 3708, "Y": 2660 }, { "X": 3710, "Y": 2662 }, { "X": 3712, "Y": 2664 }, { "X": 3712, "Y": 2666 }, { "X": 3712, "Y": 2668 }, { "X": 3712, "Y": 2670 }, { "X": 3712, "Y": 2672 }, { "X": 3712, "Y": 2674 }, { "X": 3712, "Y": 2676 }, { "X": 3712, "Y": 2678 }, { "X": 3712, "Y": 2680 }, { "X": 3710, "Y": 2682 }, { "X": 3710, "Y": 2684 }, { "X": 3710, "Y": 2686 }, { "X": 3712, "Y": 2686 }, { "X": 3714, "Y": 2686 }, { "X": 3716, "Y": 2686 }, { "X": 3718, "Y": 2686 }, { "X": 3720, "Y": 2688 }, { "X": 3722, "Y": 2690 }, { "X": 3724, "Y": 2692 }, { "X": 3726, "Y": 2694 }, { "X": 3726, "Y": 2696 }, { "X": 3724, "Y": 2698 }, { "X": 3722, "Y": 2700 }, { "X": 3722, "Y": 2702 }, { "X": 3722, "Y": 2704 }, { "X": 3724, "Y": 2706 }, { "X": 3726, "Y": 2708 }, { "X": 3728, "Y": 2710 }, { "X": 3730, "Y": 2712 }, { "X": 3730, "Y": 2714 }, { "X": 3730, "Y": 2716 }, { "X": 3730, "Y": 2718 }, { "X": 3730, "Y": 2720 }, { "X": 3732, "Y": 2722 }, { "X": 3732, "Y": 2724 }, { "X": 3732, "Y": 2726 }, { "X": 3734, "Y": 2728 }, { "X": 3736, "Y": 2730 }, { "X": 3736, "Y": 2732 }, { "X": 3736, "Y": 2734 }, { "X": 3736, "Y": 2736 }, { "X": 3738, "Y": 2738 }, { "X": 3738, "Y": 2740 }, { "X": 3738, "Y": 2742 }, { "X": 3738, "Y": 2744 }, { "X": 3738, "Y": 2746 }, { "X": 3736, "Y": 2748 }, { "X": 3736, "Y": 2750 }, { "X": 3736, "Y": 2752 }, { "X": 3736, "Y": 2754 }, { "X": 3734, "Y": 2756 }, { "X": 3734, "Y": 2758 }, { "X": 3734, "Y": 2760 }, { "X": 3734, "Y": 2762 }, { "X": 3734, "Y": 2764 }, { "X": 3734, "Y": 2766 }, { "X": 3734, "Y": 2768 }, { "X": 3734, "Y": 2770 }, { "X": 3734, "Y": 2772 }, { "X": 3734, "Y": 2774 }, { "X": 3732, "Y": 2776 }, { "X": 3730, "Y": 2778 }, { "X": 3730, "Y": 2780 }, { "X": 3732, "Y": 2782 }, { "X": 3732, "Y": 2784 }, { "X": 3734, "Y": 2786 }, { "X": 3734, "Y": 2788 }, { "X": 3734, "Y": 2790 }, { "X": 3734, "Y": 2792 }, { "X": 3734, "Y": 2794 }, { "X": 3734, "Y": 2796 }, { "X": 3732, "Y": 2798 }, { "X": 3732, "Y": 2800 }, { "X": 3730, "Y": 2802 }, { "X": 3730, "Y": 2804 }, { "X": 3730, "Y": 2806 }, { "X": 3730, "Y": 2808 }, { "X": 3730, "Y": 2810 }, { "X": 3730, "Y": 2812 }, { "X": 3730, "Y": 2814 }, { "X": 3732, "Y": 2816 }, { "X": 3732, "Y": 2818 }, { "X": 3732, "Y": 2820 }, { "X": 3734, "Y": 2822 }, { "X": 3736, "Y": 2822 }, { "X": 3738, "Y": 2824 }, { "X": 3740, "Y": 2826 }, { "X": 3742, "Y": 2828 }, { "X": 3742, "Y": 2830 }, { "X": 3742, "Y": 2832 }, { "X": 3742, "Y": 2834 }, { "X": 3742, "Y": 2836 }, { "X": 3742, "Y": 2838 }, { "X": 3742, "Y": 2840 }, { "X": 3740, "Y": 2842 }, { "X": 3740, "Y": 2844 }, { "X": 3740, "Y": 2846 }, { "X": 3742, "Y": 2848 }, { "X": 3742, "Y": 2850 }, { "X": 3740, "Y": 2852 }, { "X": 3738, "Y": 2854 }, { "X": 3736, "Y": 2856 }, { "X": 3734, "Y": 2856 }, { "X": 3732, "Y": 2856 }, { "X": 3732, "Y": 2858 }, { "X": 3732, "Y": 2860 }, { "X": 3732, "Y": 2862 }, { "X": 3732, "Y": 2864 }, { "X": 3732, "Y": 2866 }, { "X": 3732, "Y": 2868 }, { "X": 3732, "Y": 2870 }, { "X": 3732, "Y": 2872 }, { "X": 3732, "Y": 2874 }, { "X": 3732, "Y": 2876 }, { "X": 3732, "Y": 2878 }, { "X": 3732, "Y": 2880 }, { "X": 3734, "Y": 2882 }, { "X": 3736, "Y": 2882 }, { "X": 3738, "Y": 2882 }, { "X": 3740, "Y": 2882 }, { "X": 3742, "Y": 2882 }, { "X": 3744, "Y": 2882 }, { "X": 3746, "Y": 2884 }, { "X": 3748, "Y": 2884 }, { "X": 3750, "Y": 2884 }, { "X": 3752, "Y": 2882 }, { "X": 3754, "Y": 2882 }, { "X": 3756, "Y": 2882 }, { "X": 3758, "Y": 2882 }, { "X": 3760, "Y": 2882 }, { "X": 3762, "Y": 2884 }, { "X": 3764, "Y": 2884 }, { "X": 3766, "Y": 2884 }, { "X": 3768, "Y": 2884 }, { "X": 3770, "Y": 2882 }, { "X": 3772, "Y": 2882 }, { "X": 3774, "Y": 2882 }, { "X": 3776, "Y": 2880 }, { "X": 3778, "Y": 2880 }, { "X": 3780, "Y": 2880 }, { "X": 3782, "Y": 2880 }, { "X": 3784, "Y": 2880 }, { "X": 3786, "Y": 2878 }, { "X": 3788, "Y": 2876 }, { "X": 3790, "Y": 2874 }, { "X": 3792, "Y": 2874 }, { "X": 3794, "Y": 2874 }, { "X": 3796, "Y": 2874 }, { "X": 3798, "Y": 2874 }, { "X": 3800, "Y": 2874 }, { "X": 3802, "Y": 2874 }, { "X": 3804, "Y": 2874 }, { "X": 3806, "Y": 2874 }, { "X": 3808, "Y": 2874 }, { "X": 3810, "Y": 2876 }, { "X": 3812, "Y": 2878 }, { "X": 3814, "Y": 2880 }, { "X": 3816, "Y": 2882 }, { "X": 3816, "Y": 2884 }, { "X": 3816, "Y": 2886 }, { "X": 3818, "Y": 2888 }, { "X": 3820, "Y": 2888 }, { "X": 3822, "Y": 2888 }, { "X": 3824, "Y": 2890 }, { "X": 3826, "Y": 2890 }, { "X": 3828, "Y": 2890 }, { "X": 3830, "Y": 2890 }, { "X": 3832, "Y": 2890 }, { "X": 3834, "Y": 2888 }, { "X": 3836, "Y": 2886 }, { "X": 3838, "Y": 2884 }, { "X": 3840, "Y": 2884 }, { "X": 3842, "Y": 2886 }, { "X": 3844, "Y": 2886 }, { "X": 3846, "Y": 2884 }, { "X": 3848, "Y": 2882 }, { "X": 3850, "Y": 2884 }, { "X": 3852, "Y": 2884 }, { "X": 3854, "Y": 2886 }, { "X": 3856, "Y": 2886 }, { "X": 3858, "Y": 2886 }, { "X": 3860, "Y": 2886 }, { "X": 3862, "Y": 2886 }, { "X": 3864, "Y": 2886 }, { "X": 3866, "Y": 2884 }, { "X": 3868, "Y": 2884 }, { "X": 3870, "Y": 2884 }, { "X": 3872, "Y": 2884 }, { "X": 3874, "Y": 2884 }, { "X": 3876, "Y": 2884 }, { "X": 3878, "Y": 2884 }, { "X": 3880, "Y": 2884 }, { "X": 3882, "Y": 2886 }, { "X": 3884, "Y": 2886 }, { "X": 3886, "Y": 2888 }, { "X": 3888, "Y": 2890 }, { "X": 3890, "Y": 2892 }, { "X": 3892, "Y": 2892 }, { "X": 3894, "Y": 2894 }, { "X": 3896, "Y": 2896 }, { "X": 3898, "Y": 2896 }, { "X": 3900, "Y": 2898 }, { "X": 3902, "Y": 2898 }, { "X": 3904, "Y": 2896 }, { "X": 3906, "Y": 2896 }, { "X": 3908, "Y": 2896 }, { "X": 3910, "Y": 2898 }, { "X": 3912, "Y": 2898 }, { "X": 3914, "Y": 2898 }, { "X": 3916, "Y": 2898 }, { "X": 3918, "Y": 2896 }, { "X": 3920, "Y": 2898 }, { "X": 3922, "Y": 2898 }, { "X": 3924, "Y": 2898 }, { "X": 3926, "Y": 2898 }, { "X": 3928, "Y": 2900 }, { "X": 3930, "Y": 2900 }, { "X": 3932, "Y": 2902 }, { "X": 3934, "Y": 2902 }, { "X": 3936, "Y": 2902 }, { "X": 3938, "Y": 2902 }, { "X": 3940, "Y": 2902 }, { "X": 3942, "Y": 2902 }, { "X": 3944, "Y": 2902 }, { "X": 3946, "Y": 2902 }, { "X": 3948, "Y": 2902 }, { "X": 3950, "Y": 2902 }, { "X": 3952, "Y": 2900 }, { "X": 3954, "Y": 2898 }, { "X": 3956, "Y": 2896 }, { "X": 3958, "Y": 2896 }, { "X": 3960, "Y": 2896 }, { "X": 3962, "Y": 2894 }, { "X": 3964, "Y": 2894 }, { "X": 3966, "Y": 2896 }, { "X": 3968, "Y": 2896 }, { "X": 3970, "Y": 2896 }, { "X": 3972, "Y": 2896 }, { "X": 3974, "Y": 2896 }, { "X": 3976, "Y": 2896 }, { "X": 3978, "Y": 2898 }, { "X": 3980, "Y": 2898 }, { "X": 3982, "Y": 2896 }, { "X": 3984, "Y": 2896 }, { "X": 3986, "Y": 2896 }, { "X": 3988, "Y": 2898 }, { "X": 3990, "Y": 2900 }, { "X": 3992, "Y": 2902 }, { "X": 3994, "Y": 2902 }, { "X": 3996, "Y": 2902 }, { "X": 3998, "Y": 2902 }, { "X": 4000, "Y": 2900 }, { "X": 4002, "Y": 2902 }, { "X": 4004, "Y": 2902 }, { "X": 4006, "Y": 2902 }, { "X": 4008, "Y": 2900 }, { "X": 4010, "Y": 2900 }, { "X": 4012, "Y": 2900 }, { "X": 4014, "Y": 2900 }, { "X": 4016, "Y": 2900 }, { "X": 4018, "Y": 2902 }, { "X": 4020, "Y": 2904 }, { "X": 4022, "Y": 2906 }, { "X": 4022, "Y": 2908 }, { "X": 4022, "Y": 2910 }, { "X": 4024, "Y": 2910 }, { "X": 4026, "Y": 2910 }, { "X": 4028, "Y": 2910 }, { "X": 4030, "Y": 2908 }, { "X": 4032, "Y": 2906 }, { "X": 4034, "Y": 2906 }, { "X": 4036, "Y": 2904 }, { "X": 4038, "Y": 2904 }, { "X": 4040, "Y": 2906 }, { "X": 4042, "Y": 2908 }, { "X": 4044, "Y": 2908 }, { "X": 4046, "Y": 2908 }, { "X": 4048, "Y": 2908 }, { "X": 4050, "Y": 2910 }, { "X": 4052, "Y": 2912 }, { "X": 4054, "Y": 2914 }, { "X": 4054, "Y": 2916 }, { "X": 4056, "Y": 2918 }, { "X": 4058, "Y": 2920 }, { "X": 4058, "Y": 2922 }, { "X": 4058, "Y": 2924 }, { "X": 4060, "Y": 2926 }, { "X": 4058, "Y": 2928 }, { "X": 4058, "Y": 2930 }, { "X": 4060, "Y": 2930 }, { "X": 4062, "Y": 2932 }, { "X": 4064, "Y": 2932 }, { "X": 4066, "Y": 2932 }, { "X": 4068, "Y": 2930 }, { "X": 4070, "Y": 2930 }, { "X": 4072, "Y": 2932 }, { "X": 4074, "Y": 2932 }, { "X": 4076, "Y": 2932 }, { "X": 4078, "Y": 2932 }, { "X": 4080, "Y": 2932 }, { "X": 4082, "Y": 2932 }, { "X": 4084, "Y": 2932 }, { "X": 4086, "Y": 2932 }, { "X": 4088, "Y": 2932 }, { "X": 4088, "Y": 2930 }, { "X": 4090, "Y": 2928 }, { "X": 4092, "Y": 2926 }, { "X": 4094, "Y": 2924 }, { "X": 4096, "Y": 2924 }, { "X": 4098, "Y": 2924 }, { "X": 4100, "Y": 2924 }, { "X": 4102, "Y": 2926 }, { "X": 4104, "Y": 2928 }, { "X": 4106, "Y": 2930 }, { "X": 4106, "Y": 2932 }, { "X": 4106, "Y": 2934 }, { "X": 4108, "Y": 2936 }, { "X": 4110, "Y": 2936 }, { "X": 4112, "Y": 2936 }, { "X": 4114, "Y": 2934 }, { "X": 4116, "Y": 2932 }, { "X": 4118, "Y": 2932 }, { "X": 4120, "Y": 2932 }, { "X": 4122, "Y": 2932 }, { "X": 4124, "Y": 2934 }, { "X": 4126, "Y": 2934 }, { "X": 4128, "Y": 2936 }, { "X": 4130, "Y": 2936 }, { "X": 4132, "Y": 2936 }, { "X": 4134, "Y": 2936 }, { "X": 4136, "Y": 2934 }, { "X": 4138, "Y": 2932 }, { "X": 4140, "Y": 2930 }, { "X": 4142, "Y": 2928 }, { "X": 4144, "Y": 2928 }, { "X": 4146, "Y": 2930 }, { "X": 4148, "Y": 2932 }, { "X": 4150, "Y": 2934 }, { "X": 4152, "Y": 2936 }, { "X": 4154, "Y": 2936 }, { "X": 4156, "Y": 2938 }, { "X": 4158, "Y": 2938 }, { "X": 4160, "Y": 2938 }, { "X": 4162, "Y": 2940 }, { "X": 4164, "Y": 2940 }, { "X": 4166, "Y": 2940 }, { "X": 4168, "Y": 2940 }, { "X": 4170, "Y": 2940 }, { "X": 4172, "Y": 2940 }, { "X": 4174, "Y": 2940 }, { "X": 4176, "Y": 2942 }, { "X": 4178, "Y": 2942 }, { "X": 4180, "Y": 2942 }, { "X": 4182, "Y": 2942 }, { "X": 4184, "Y": 2942 }, { "X": 4186, "Y": 2942 }, { "X": 4188, "Y": 2942 }, { "X": 4190, "Y": 2942 }, { "X": 4192, "Y": 2942 }, { "X": 4194, "Y": 2942 }, { "X": 4196, "Y": 2944 }, { "X": 4198, "Y": 2944 }, { "X": 4200, "Y": 2942 }, { "X": 4202, "Y": 2942 }, { "X": 4204, "Y": 2942 }, { "X": 4206, "Y": 2942 }, { "X": 4208, "Y": 2942 }, { "X": 4210, "Y": 2942 }, { "X": 4212, "Y": 2940 }, { "X": 4214, "Y": 2938 }, { "X": 4216, "Y": 2938 }, { "X": 4218, "Y": 2938 }, { "X": 4220, "Y": 2938 }, { "X": 4222, "Y": 2938 }, { "X": 4224, "Y": 2940 }, { "X": 4226, "Y": 2940 }, { "X": 4228, "Y": 2938 }, { "X": 4230, "Y": 2938 }, { "X": 4232, "Y": 2938 }, { "X": 4234, "Y": 2938 }, { "X": 4236, "Y": 2938 }, { "X": 4238, "Y": 2938 }, { "X": 4240, "Y": 2936 }, { "X": 4242, "Y": 2934 }, { "X": 4244, "Y": 2932 }, { "X": 4246, "Y": 2932 }, { "X": 4248, "Y": 2932 }, { "X": 4250, "Y": 2932 }, { "X": 4252, "Y": 2932 }, { "X": 4254, "Y": 2932 }, { "X": 4256, "Y": 2932 }, { "X": 4258, "Y": 2932 }, { "X": 4260, "Y": 2932 }, { "X": 4262, "Y": 2932 }, { "X": 4264, "Y": 2932 }, { "X": 4266, "Y": 2932 }, { "X": 4268, "Y": 2932 }, { "X": 4270, "Y": 2932 }, { "X": 4272, "Y": 2932 }, { "X": 4274, "Y": 2932 }, { "X": 4276, "Y": 2932 }, { "X": 4278, "Y": 2934 }, { "X": 4280, "Y": 2932 }, { "X": 4282, "Y": 2932 }, { "X": 4284, "Y": 2934 }, { "X": 4286, "Y": 2934 }, { "X": 4288, "Y": 2936 }, { "X": 4290, "Y": 2936 }, { "X": 4292, "Y": 2934 }, { "X": 4294, "Y": 2934 }, { "X": 4296, "Y": 2934 }, { "X": 4298, "Y": 2934 }, { "X": 4300, "Y": 2934 }, { "X": 4302, "Y": 2934 }, { "X": 4304, "Y": 2934 }, { "X": 4306, "Y": 2934 }, { "X": 4308, "Y": 2934 }, { "X": 4310, "Y": 2936 }, { "X": 4312, "Y": 2936 }, { "X": 4314, "Y": 2938 }, { "X": 4316, "Y": 2938 }, { "X": 4318, "Y": 2938 }, { "X": 4320, "Y": 2938 }, { "X": 4322, "Y": 2938 }, { "X": 4324, "Y": 2940 }, { "X": 4326, "Y": 2940 }, { "X": 4328, "Y": 2940 }, { "X": 4330, "Y": 2940 }, { "X": 4332, "Y": 2942 }, { "X": 4334, "Y": 2942 }, { "X": 4336, "Y": 2942 }, { "X": 4336, "Y": 2940 }, { "X": 4338, "Y": 2938 }, { "X": 4338, "Y": 2936 }, { "X": 4338, "Y": 2934 }, { "X": 4340, "Y": 2932 }, { "X": 4342, "Y": 2930 }, { "X": 4344, "Y": 2928 }, { "X": 4344, "Y": 2926 }, { "X": 4344, "Y": 2924 }, { "X": 4344, "Y": 2922 }, { "X": 4344, "Y": 2920 }, { "X": 4344, "Y": 2918 }, { "X": 4344, "Y": 2916 }, { "X": 4346, "Y": 2914 }, { "X": 4348, "Y": 2912 }, { "X": 4348, "Y": 2910 }, { "X": 4348, "Y": 2908 }, { "X": 4350, "Y": 2906 }, { "X": 4350, "Y": 2904 }, { "X": 4348, "Y": 2902 }, { "X": 4346, "Y": 2900 }, { "X": 4346, "Y": 2898 }, { "X": 4346, "Y": 2896 }, { "X": 4346, "Y": 2894 }, { "X": 4346, "Y": 2892 }, { "X": 4346, "Y": 2890 }, { "X": 4346, "Y": 2888 }, { "X": 4346, "Y": 2886 }, { "X": 4348, "Y": 2884 }, { "X": 4348, "Y": 2882 }, { "X": 4348, "Y": 2880 }, { "X": 4348, "Y": 2878 }, { "X": 4348, "Y": 2876 }, { "X": 4350, "Y": 2874 }, { "X": 4350, "Y": 2872 }, { "X": 4350, "Y": 2870 }, { "X": 4352, "Y": 2868 }, { "X": 4354, "Y": 2866 }, { "X": 4354, "Y": 2864 }, { "X": 4352, "Y": 2862 }, { "X": 4352, "Y": 2860 }, { "X": 4350, "Y": 2858 }, { "X": 4350, "Y": 2856 }, { "X": 4350, "Y": 2854 }, { "X": 4350, "Y": 2852 }, { "X": 4350, "Y": 2850 }, { "X": 4350, "Y": 2848 }, { "X": 4348, "Y": 2846 }, { "X": 4348, "Y": 2844 }, { "X": 4350, "Y": 2842 }, { "X": 4352, "Y": 2840 }, { "X": 4354, "Y": 2838 }, { "X": 4356, "Y": 2836 }, { "X": 4356, "Y": 2834 }, { "X": 4358, "Y": 2832 }, { "X": 4358, "Y": 2830 }, { "X": 4360, "Y": 2828 }, { "X": 4360, "Y": 2826 }, { "X": 4360, "Y": 2824 }, { "X": 4360, "Y": 2822 }, { "X": 4360, "Y": 2820 }, { "X": 4360, "Y": 2818 }, { "X": 4358, "Y": 2816 }, { "X": 4356, "Y": 2814 }, { "X": 4354, "Y": 2812 }, { "X": 4352, "Y": 2810 }, { "X": 4354, "Y": 2808 }, { "X": 4354, "Y": 2806 }, { "X": 4356, "Y": 2804 }, { "X": 4356, "Y": 2802 }, { "X": 4356, "Y": 2800 }, { "X": 4354, "Y": 2798 }, { "X": 4354, "Y": 2796 }, { "X": 4354, "Y": 2794 }, { "X": 4354, "Y": 2792 }, { "X": 4354, "Y": 2790 }, { "X": 4354, "Y": 2788 }, { "X": 4356, "Y": 2786 }, { "X": 4356, "Y": 2784 }, { "X": 4356, "Y": 2782 }, { "X": 4356, "Y": 2780 }, { "X": 4356, "Y": 2778 }, { "X": 4356, "Y": 2776 }, { "X": 4356, "Y": 2774 }, { "X": 4356, "Y": 2772 }, { "X": 4356, "Y": 2770 }, { "X": 4356, "Y": 2768 }, { "X": 4356, "Y": 2766 }, { "X": 4356, "Y": 2764 }, { "X": 4356, "Y": 2762 }, { "X": 4356, "Y": 2760 }, { "X": 4356, "Y": 2758 }, { "X": 4354, "Y": 2756 }, { "X": 4354, "Y": 2754 }, { "X": 4354, "Y": 2752 }, { "X": 4354, "Y": 2750 }, { "X": 4354, "Y": 2748 }, { "X": 4354, "Y": 2746 }, { "X": 4354, "Y": 2744 }, { "X": 4354, "Y": 2742 }, { "X": 4354, "Y": 2740 }, { "X": 4354, "Y": 2738 }, { "X": 4354, "Y": 2736 }, { "X": 4354, "Y": 2734 }, { "X": 4356, "Y": 2732 }, { "X": 4356, "Y": 2730 }, { "X": 4356, "Y": 2728 }, { "X": 4356, "Y": 2726 }, { "X": 4356, "Y": 2724 }, { "X": 4356, "Y": 2722 }, { "X": 4356, "Y": 2720 }, { "X": 4356, "Y": 2718 }, { "X": 4356, "Y": 2716 }, { "X": 4356, "Y": 2714 }, { "X": 4356, "Y": 2712 }, { "X": 4356, "Y": 2710 }, { "X": 4356, "Y": 2708 }, { "X": 4356, "Y": 2706 }, { "X": 4356, "Y": 2704 }, { "X": 4356, "Y": 2702 }, { "X": 4356, "Y": 2700 }, { "X": 4356, "Y": 2698 }, { "X": 4356, "Y": 2696 }, { "X": 4354, "Y": 2694 }, { "X": 4354, "Y": 2692 }, { "X": 4354, "Y": 2690 }, { "X": 4354, "Y": 2688 }, { "X": 4354, "Y": 2686 }, { "X": 4354, "Y": 2684 }, { "X": 4354, "Y": 2682 }, { "X": 4354, "Y": 2680 }, { "X": 4352, "Y": 2680 }, { "X": 4350, "Y": 2680 }, { "X": 4348, "Y": 2678 }, { "X": 4346, "Y": 2676 }, { "X": 4344, "Y": 2674 }, { "X": 4344, "Y": 2672 }, { "X": 4344, "Y": 2670 }, { "X": 4344, "Y": 2668 }, { "X": 4346, "Y": 2666 }, { "X": 4346, "Y": 2664 }, { "X": 4346, "Y": 2662 }, { "X": 4348, "Y": 2660 }, { "X": 4350, "Y": 2658 }, { "X": 4352, "Y": 2656 }, { "X": 4354, "Y": 2656 }, { "X": 4354, "Y": 2654 }, { "X": 4356, "Y": 2652 }, { "X": 4358, "Y": 2650 }, { "X": 4358, "Y": 2648 }, { "X": 4358, "Y": 2646 }, { "X": 4358, "Y": 2644 }, { "X": 4360, "Y": 2642 }, { "X": 4360, "Y": 2640 }, { "X": 4358, "Y": 2638 }, { "X": 4358, "Y": 2636 }, { "X": 4360, "Y": 2634 }, { "X": 4362, "Y": 2632 }, { "X": 4362, "Y": 2630 }, { "X": 4362, "Y": 2628 }, { "X": 4362, "Y": 2626 }, { "X": 4362, "Y": 2624 }, { "X": 4360, "Y": 2622 }, { "X": 4360, "Y": 2620 }, { "X": 4360, "Y": 2618 }, { "X": 4360, "Y": 2616 }, { "X": 4360, "Y": 2614 }, { "X": 4360, "Y": 2612 }, { "X": 4362, "Y": 2610 }, { "X": 4364, "Y": 2608 }, { "X": 4364, "Y": 2606 }, { "X": 4364, "Y": 2604 }, { "X": 4366, "Y": 2602 }, { "X": 4366, "Y": 2600 }, { "X": 4366, "Y": 2598 }, { "X": 4366, "Y": 2596 }, { "X": 4366, "Y": 2594 }, { "X": 4366, "Y": 2592 }, { "X": 4366, "Y": 2590 }, { "X": 4366, "Y": 2588 }, { "X": 4366, "Y": 2586 }, { "X": 4366, "Y": 2584 }, { "X": 4366, "Y": 2582 }, { "X": 4366, "Y": 2580 }, { "X": 4364, "Y": 2578 }, { "X": 4364, "Y": 2576 }, { "X": 4364, "Y": 2574 }, { "X": 4364, "Y": 2572 }, { "X": 4362, "Y": 2570 }, { "X": 4362, "Y": 2568 }, { "X": 4362, "Y": 2566 }, { "X": 4362, "Y": 2564 }, { "X": 4362, "Y": 2562 }, { "X": 4362, "Y": 2560 }, { "X": 4362, "Y": 2558 }, { "X": 4362, "Y": 2556 }, { "X": 4362, "Y": 2554 }, { "X": 4362, "Y": 2552 }, { "X": 4362, "Y": 2550 }, { "X": 4362, "Y": 2548 }, { "X": 4362, "Y": 2546 }, { "X": 4364, "Y": 2544 }, { "X": 4364, "Y": 2542 }, { "X": 4364, "Y": 2540 }, { "X": 4364, "Y": 2538 }, { "X": 4364, "Y": 2536 }, { "X": 4364, "Y": 2534 }, { "X": 4364, "Y": 2532 }, { "X": 4364, "Y": 2530 }, { "X": 4364, "Y": 2528 }, { "X": 4364, "Y": 2526 }, { "X": 4364, "Y": 2524 }, { "X": 4366, "Y": 2522 }, { "X": 4368, "Y": 2520 }, { "X": 4370, "Y": 2518 }, { "X": 4370, "Y": 2516 }, { "X": 4370, "Y": 2514 }, { "X": 4370, "Y": 2512 }, { "X": 4370, "Y": 2510 }, { "X": 4370, "Y": 2508 }, { "X": 4370, "Y": 2506 }, { "X": 4368, "Y": 2504 }, { "X": 4368, "Y": 2502 }, { "X": 4368, "Y": 2500 }, { "X": 4368, "Y": 2498 }, { "X": 4368, "Y": 2496 }, { "X": 4368, "Y": 2494 }, { "X": 4368, "Y": 2492 }, { "X": 4368, "Y": 2490 }, { "X": 4368, "Y": 2488 }, { "X": 4370, "Y": 2486 }, { "X": 4372, "Y": 2484 }, { "X": 4374, "Y": 2482 }, { "X": 4376, "Y": 2480 }, { "X": 4376, "Y": 2478 }, { "X": 4376, "Y": 2476 }, { "X": 4378, "Y": 2474 }, { "X": 4378, "Y": 2472 }, { "X": 4378, "Y": 2470 }, { "X": 4378, "Y": 2468 }, { "X": 4378, "Y": 2466 }, { "X": 4378, "Y": 2464 }, { "X": 4376, "Y": 2462 }, { "X": 4374, "Y": 2460 }, { "X": 4374, "Y": 2458 }, { "X": 4374, "Y": 2456 }, { "X": 4376, "Y": 2454 }, { "X": 4376, "Y": 2452 }, { "X": 4376, "Y": 2450 }, { "X": 4376, "Y": 2448 }, { "X": 4374, "Y": 2446 }, { "X": 4374, "Y": 2444 }, { "X": 4374, "Y": 2442 }, { "X": 4374, "Y": 2440 }, { "X": 4374, "Y": 2438 }, { "X": 4376, "Y": 2436 }, { "X": 4376, "Y": 2434 }, { "X": 4376, "Y": 2432 }, { "X": 4374, "Y": 2430 }, { "X": 4374, "Y": 2428 }, { "X": 4374, "Y": 2426 }, { "X": 4374, "Y": 2424 }, { "X": 4376, "Y": 2422 }, { "X": 4376, "Y": 2420 }, { "X": 4376, "Y": 2418 }, { "X": 4376, "Y": 2416 }, { "X": 4376, "Y": 2414 }, { "X": 4376, "Y": 2412 }, { "X": 4376, "Y": 2410 }, { "X": 4376, "Y": 2408 }, { "X": 4376, "Y": 2406 }, { "X": 4376, "Y": 2404 }, { "X": 4376, "Y": 2402 }, { "X": 4376, "Y": 2400 }, { "X": 4376, "Y": 2398 }, { "X": 4376, "Y": 2396 }, { "X": 4376, "Y": 2394 }, { "X": 4374, "Y": 2392 }, { "X": 4374, "Y": 2390 }, { "X": 4376, "Y": 2388 }, { "X": 4376, "Y": 2386 }, { "X": 4376, "Y": 2384 }, { "X": 4376, "Y": 2382 }, { "X": 4376, "Y": 2380 }, { "X": 4376, "Y": 2378 }, { "X": 4376, "Y": 2376 }, { "X": 4378, "Y": 2374 }, { "X": 4378, "Y": 2372 }, { "X": 4380, "Y": 2370 }, { "X": 4380, "Y": 2368 }, { "X": 4380, "Y": 2366 }, { "X": 4380, "Y": 2364 }, { "X": 4380, "Y": 2362 }, { "X": 4378, "Y": 2360 }, { "X": 4378, "Y": 2358 }, { "X": 4378, "Y": 2356 }, { "X": 4378, "Y": 2354 }, { "X": 4378, "Y": 2352 }, { "X": 4378, "Y": 2350 }, { "X": 4378, "Y": 2348 }, { "X": 4378, "Y": 2346 }, { "X": 4378, "Y": 2344 }, { "X": 4378, "Y": 2342 }, { "X": 4378, "Y": 2340 }, { "X": 4378, "Y": 2338 }, { "X": 4378, "Y": 2336 }, { "X": 4378, "Y": 2334 }, { "X": 4378, "Y": 2332 }, { "X": 4378, "Y": 2330 }, { "X": 4378, "Y": 2328 }, { "X": 4380, "Y": 2326 }, { "X": 4380, "Y": 2324 }, { "X": 4380, "Y": 2322 }, { "X": 4380, "Y": 2320 }, { "X": 4380, "Y": 2318 }, { "X": 4382, "Y": 2316 }, { "X": 4382, "Y": 2314 }, { "X": 4382, "Y": 2312 }, { "X": 4382, "Y": 2310 }, { "X": 4382, "Y": 2308 }, { "X": 4382, "Y": 2306 }, { "X": 4382, "Y": 2304 }, { "X": 4382, "Y": 2302 }, { "X": 4382, "Y": 2300 }, { "X": 4380, "Y": 2298 }, { "X": 4380, "Y": 2296 }, { "X": 4380, "Y": 2294 }, { "X": 4380, "Y": 2292 }, { "X": 4380, "Y": 2290 }, { "X": 4380, "Y": 2288 }, { "X": 4380, "Y": 2286 }, { "X": 4380, "Y": 2284 }, { "X": 4380, "Y": 2282 }, { "X": 4380, "Y": 2280 }, { "X": 4380, "Y": 2278 }, { "X": 4380, "Y": 2276 }, { "X": 4380, "Y": 2274 }, { "X": 4380, "Y": 2272 }, { "X": 4380, "Y": 2270 }, { "X": 4380, "Y": 2268 }, { "X": 4378, "Y": 2266 }, { "X": 4378, "Y": 2264 }, { "X": 4376, "Y": 2262 }, { "X": 4374, "Y": 2260 }, { "X": 4372, "Y": 2258 }, { "X": 4372, "Y": 2256 }, { "X": 4374, "Y": 2254 }, { "X": 4374, "Y": 2252 }, { "X": 4374, "Y": 2250 }, { "X": 4374, "Y": 2248 }, { "X": 4374, "Y": 2246 }, { "X": 4374, "Y": 2244 }, { "X": 4374, "Y": 2242 }, { "X": 4374, "Y": 2240 }, { "X": 4374, "Y": 2238 }, { "X": 4374, "Y": 2236 }, { "X": 4374, "Y": 2234 }, { "X": 4374, "Y": 2232 }, { "X": 4374, "Y": 2230 }, { "X": 4374, "Y": 2228 }, { "X": 4374, "Y": 2226 }, { "X": 4376, "Y": 2224 }, { "X": 4378, "Y": 2222 }, { "X": 4378, "Y": 2220 }, { "X": 4378, "Y": 2218 }, { "X": 4378, "Y": 2216 }, { "X": 4378, "Y": 2214 }, { "X": 4378, "Y": 2212 }, { "X": 4378, "Y": 2210 }, { "X": 4380, "Y": 2208 }, { "X": 4382, "Y": 2206 }, { "X": 4384, "Y": 2204 }, { "X": 4384, "Y": 2202 }, { "X": 4384, "Y": 2200 }, { "X": 4384, "Y": 2198 }, { "X": 4384, "Y": 2196 }, { "X": 4386, "Y": 2194 }, { "X": 4386, "Y": 2192 }, { "X": 4386, "Y": 2190 }, { "X": 4386, "Y": 2188 }, { "X": 4386, "Y": 2186 }, { "X": 4386, "Y": 2184 }, { "X": 4386, "Y": 2182 }, { "X": 4386, "Y": 2180 }, { "X": 4384, "Y": 2178 }, { "X": 4384, "Y": 2176 }, { "X": 4382, "Y": 2174 }, { "X": 4380, "Y": 2172 }, { "X": 4380, "Y": 2170 }, { "X": 4378, "Y": 2168 }, { "X": 4378, "Y": 2166 }, { "X": 4378, "Y": 2164 }, { "X": 4378, "Y": 2162 }, { "X": 4378, "Y": 2160 }, { "X": 4378, "Y": 2158 }, { "X": 4378, "Y": 2156 }, { "X": 4378, "Y": 2154 }, { "X": 4378, "Y": 2152 }, { "X": 4376, "Y": 2150 }, { "X": 4376, "Y": 2148 }, { "X": 4374, "Y": 2148 }, { "X": 4372, "Y": 2146 }, { "X": 4370, "Y": 2144 }, { "X": 4368, "Y": 2144 }, { "X": 4366, "Y": 2142 }, { "X": 4364, "Y": 2140 }, { "X": 4362, "Y": 2140 }, { "X": 4360, "Y": 2140 }, { "X": 4358, "Y": 2138 }, { "X": 4356, "Y": 2136 }, { "X": 4354, "Y": 2134 }, { "X": 4352, "Y": 2132 }, { "X": 4352, "Y": 2130 }, { "X": 4352, "Y": 2128 }, { "X": 4350, "Y": 2126 }, { "X": 4348, "Y": 2124 }, { "X": 4348, "Y": 2122 }, { "X": 4348, "Y": 2120 }, { "X": 4348, "Y": 2118 }, { "X": 4348, "Y": 2116 }, { "X": 4348, "Y": 2114 }, { "X": 4348, "Y": 2112 }, { "X": 4348, "Y": 2110 }, { "X": 4348, "Y": 2108 }, { "X": 4346, "Y": 2106 }, { "X": 4346, "Y": 2104 }, { "X": 4346, "Y": 2102 }, { "X": 4344, "Y": 2102 }, { "X": 4342, "Y": 2102 }, { "X": 4340, "Y": 2102 }, { "X": 4338, "Y": 2100 }, { "X": 4336, "Y": 2098 }, { "X": 4334, "Y": 2096 }, { "X": 4334, "Y": 2094 }, { "X": 4334, "Y": 2092 }, { "X": 4334, "Y": 2090 }, { "X": 4334, "Y": 2088 }, { "X": 4334, "Y": 2086 }, { "X": 4334, "Y": 2084 }, { "X": 4332, "Y": 2082 }, { "X": 4332, "Y": 2080 }, { "X": 4330, "Y": 2078 }, { "X": 4328, "Y": 2076 }, { "X": 4326, "Y": 2074 }, { "X": 4326, "Y": 2072 }, { "X": 4326, "Y": 2070 }, { "X": 4326, "Y": 2068 }, { "X": 4324, "Y": 2066 }, { "X": 4322, "Y": 2066 }, { "X": 4320, "Y": 2066 }, { "X": 4318, "Y": 2066 }, { "X": 4316, "Y": 2066 }, { "X": 4314, "Y": 2066 }, { "X": 4312, "Y": 2064 }, { "X": 4310, "Y": 2064 }, { "X": 4308, "Y": 2064 }, { "X": 4306, "Y": 2064 }, { "X": 4304, "Y": 2064 }, { "X": 4302, "Y": 2064 }, { "X": 4300, "Y": 2064 }, { "X": 4298, "Y": 2064 }, { "X": 4296, "Y": 2064 }, { "X": 4296, "Y": 2066 }, { "X": 4296, "Y": 2068 }, { "X": 4296, "Y": 2070 }, { "X": 4296, "Y": 2072 }, { "X": 4294, "Y": 2074 }, { "X": 4292, "Y": 2076 }, { "X": 4290, "Y": 2078 }, { "X": 4288, "Y": 2080 }, { "X": 4286, "Y": 2082 }, { "X": 4284, "Y": 2080 }, { "X": 4282, "Y": 2078 }, { "X": 4280, "Y": 2076 }, { "X": 4280, "Y": 2074 }, { "X": 4280, "Y": 2072 }, { "X": 4280, "Y": 2070 }, { "X": 4278, "Y": 2070 }, { "X": 4276, "Y": 2070 }, { "X": 4274, "Y": 2070 }, { "X": 4272, "Y": 2070 }, { "X": 4270, "Y": 2070 }, { "X": 4268, "Y": 2070 }, { "X": 4266, "Y": 2070 }, { "X": 4264, "Y": 2070 }, { "X": 4262, "Y": 2070 }, { "X": 4260, "Y": 2072 }, { "X": 4258, "Y": 2070 }, { "X": 4256, "Y": 2070 }, { "X": 4254, "Y": 2072 }, { "X": 4252, "Y": 2070 }, { "X": 4250, "Y": 2068 }, { "X": 4248, "Y": 2068 }, { "X": 4246, "Y": 2068 }, { "X": 4244, "Y": 2068 }, { "X": 4242, "Y": 2066 }, { "X": 4240, "Y": 2066 }, { "X": 4238, "Y": 2066 }, { "X": 4236, "Y": 2066 }, { "X": 4234, "Y": 2066 }, { "X": 4232, "Y": 2066 }, { "X": 4230, "Y": 2068 }, { "X": 4228, "Y": 2068 }, { "X": 4226, "Y": 2068 }, { "X": 4224, "Y": 2068 }, { "X": 4222, "Y": 2070 }, { "X": 4220, "Y": 2072 }, { "X": 4218, "Y": 2072 }, { "X": 4216, "Y": 2074 }, { "X": 4214, "Y": 2076 }, { "X": 4214, "Y": 2078 }, { "X": 4214, "Y": 2080 }, { "X": 4214, "Y": 2082 }, { "X": 4214, "Y": 2084 }, { "X": 4214, "Y": 2086 }, { "X": 4214, "Y": 2088 }, { "X": 4214, "Y": 2090 }, { "X": 4214, "Y": 2092 }, { "X": 4214, "Y": 2094 }, { "X": 4214, "Y": 2096 }, { "X": 4212, "Y": 2098 }, { "X": 4212, "Y": 2100 }, { "X": 4210, "Y": 2102 }, { "X": 4210, "Y": 2104 }, { "X": 4208, "Y": 2106 }, { "X": 4206, "Y": 2108 }, { "X": 4204, "Y": 2110 }, { "X": 4202, "Y": 2110 }, { "X": 4200, "Y": 2112 }, { "X": 4198, "Y": 2114 }, { "X": 4196, "Y": 2114 }, { "X": 4194, "Y": 2114 }, { "X": 4192, "Y": 2116 }, { "X": 4190, "Y": 2116 }, { "X": 4188, "Y": 2116 }, { "X": 4186, "Y": 2116 }, { "X": 4184, "Y": 2118 }, { "X": 4182, "Y": 2120 }, { "X": 4180, "Y": 2120 }, { "X": 4178, "Y": 2120 }, { "X": 4176, "Y": 2120 }, { "X": 4174, "Y": 2120 }, { "X": 4172, "Y": 2120 }, { "X": 4170, "Y": 2120 }, { "X": 4168, "Y": 2118 }, { "X": 4166, "Y": 2118 }, { "X": 4164, "Y": 2118 }, { "X": 4162, "Y": 2116 }, { "X": 4160, "Y": 2116 }, { "X": 4158, "Y": 2116 }, { "X": 4156, "Y": 2116 }, { "X": 4154, "Y": 2116 }, { "X": 4152, "Y": 2116 }, { "X": 4150, "Y": 2118 }, { "X": 4148, "Y": 2120 }, { "X": 4148, "Y": 2122 }, { "X": 4148, "Y": 2124 }, { "X": 4148, "Y": 2126 }, { "X": 4148, "Y": 2128 }, { "X": 4148, "Y": 2130 }, { "X": 4148, "Y": 2132 }, { "X": 4146, "Y": 2134 }, { "X": 4144, "Y": 2136 }, { "X": 4142, "Y": 2138 }, { "X": 4140, "Y": 2138 }, { "X": 4138, "Y": 2138 }, { "X": 4136, "Y": 2138 }, { "X": 4134, "Y": 2140 }, { "X": 4132, "Y": 2142 }, { "X": 4130, "Y": 2144 }, { "X": 4128, "Y": 2144 }, { "X": 4126, "Y": 2144 }, { "X": 4124, "Y": 2144 }, { "X": 4122, "Y": 2144 }, { "X": 4120, "Y": 2144 }, { "X": 4118, "Y": 2142 }, { "X": 4116, "Y": 2144 }, { "X": 4114, "Y": 2146 }, { "X": 4112, "Y": 2148 }, { "X": 4110, "Y": 2150 }, { "X": 4108, "Y": 2152 }, { "X": 4106, "Y": 2152 }, { "X": 4104, "Y": 2150 }, { "X": 4102, "Y": 2148 }, { "X": 4100, "Y": 2146 }, { "X": 4098, "Y": 2144 }, { "X": 4100, "Y": 2142 }, { "X": 4102, "Y": 2140 }, { "X": 4102, "Y": 2138 }, { "X": 4102, "Y": 2136 }, { "X": 4102, "Y": 2134 }, { "X": 4102, "Y": 2132 }, { "X": 4102, "Y": 2130 }, { "X": 4102, "Y": 2128 }, { "X": 4102, "Y": 2126 }, { "X": 4100, "Y": 2124 }, { "X": 4098, "Y": 2122 }, { "X": 4096, "Y": 2120 }, { "X": 4094, "Y": 2118 }, { "X": 4092, "Y": 2116 }, { "X": 4090, "Y": 2114 }, { "X": 4090, "Y": 2112 }, { "X": 4090, "Y": 2110 }, { "X": 4090, "Y": 2108 }, { "X": 4090, "Y": 2106 }, { "X": 4088, "Y": 2104 }, { "X": 4088, "Y": 2102 }, { "X": 4088, "Y": 2100 }, { "X": 4086, "Y": 2098 }, { "X": 4086, "Y": 2096 }, { "X": 4084, "Y": 2094 }, { "X": 4082, "Y": 2094 }, { "X": 4080, "Y": 2094 }, { "X": 4078, "Y": 2094 }, { "X": 4076, "Y": 2094 }, { "X": 4074, "Y": 2092 }, { "X": 4072, "Y": 2090 }, { "X": 4070, "Y": 2090 }, { "X": 4068, "Y": 2090 }, { "X": 4066, "Y": 2092 }, { "X": 4064, "Y": 2094 }, { "X": 4062, "Y": 2094 }, { "X": 4060, "Y": 2094 }, { "X": 4058, "Y": 2096 }, { "X": 4056, "Y": 2098 }, { "X": 4054, "Y": 2096 }, { "X": 4052, "Y": 2094 }, { "X": 4050, "Y": 2092 }, { "X": 4048, "Y": 2092 }, { "X": 4046, "Y": 2092 }, { "X": 4044, "Y": 2090 }, { "X": 4042, "Y": 2090 }, { "X": 4040, "Y": 2088 }, { "X": 4038, "Y": 2088 }, { "X": 4036, "Y": 2088 }, { "X": 4034, "Y": 2088 }, { "X": 4032, "Y": 2088 }, { "X": 4030, "Y": 2090 }, { "X": 4028, "Y": 2092 }, { "X": 4026, "Y": 2092 }, { "X": 4024, "Y": 2092 }, { "X": 4022, "Y": 2092 }, { "X": 4020, "Y": 2092 }, { "X": 4018, "Y": 2090 }, { "X": 4016, "Y": 2090 }, { "X": 4014, "Y": 2090 }, { "X": 4012, "Y": 2088 }, { "X": 4010, "Y": 2088 }, { "X": 4008, "Y": 2088 }, { "X": 4006, "Y": 2088 }, { "X": 4004, "Y": 2088 }, { "X": 4002, "Y": 2090 }, { "X": 4000, "Y": 2092 }, { "X": 3998, "Y": 2094 }, { "X": 3996, "Y": 2094 }, { "X": 3994, "Y": 2094 }, { "X": 3992, "Y": 2094 }, { "X": 3990, "Y": 2096 }, { "X": 3988, "Y": 2094 }, { "X": 3986, "Y": 2092 }, { "X": 3984, "Y": 2092 }, { "X": 3982, "Y": 2092 }, { "X": 3980, "Y": 2092 }, { "X": 3978, "Y": 2092 }, { "X": 3976, "Y": 2092 }, { "X": 3974, "Y": 2092 }, { "X": 3972, "Y": 2092 }, { "X": 3970, "Y": 2092 }, { "X": 3968, "Y": 2092 }, { "X": 3966, "Y": 2092 }, { "X": 3964, "Y": 2092 }, { "X": 3962, "Y": 2090 }, { "X": 3960, "Y": 2088 }, { "X": 3958, "Y": 2086 }, { "X": 3956, "Y": 2084 }, { "X": 3954, "Y": 2082 }, { "X": 3952, "Y": 2082 }, { "X": 3950, "Y": 2082 }, { "X": 3948, "Y": 2082 }, { "X": 3946, "Y": 2082 }, { "X": 3944, "Y": 2082 }, { "X": 3942, "Y": 2082 }, { "X": 3940, "Y": 2082 }, { "X": 3938, "Y": 2082 }, { "X": 3936, "Y": 2082 }, { "X": 3934, "Y": 2082 }, { "X": 3932, "Y": 2082 }, { "X": 3930, "Y": 2084 }, { "X": 3928, "Y": 2084 }, { "X": 3926, "Y": 2084 }, { "X": 3924, "Y": 2084 }, { "X": 3922, "Y": 2084 }, { "X": 3920, "Y": 2084 }, { "X": 3918, "Y": 2086 }, { "X": 3916, "Y": 2084 }, { "X": 3914, "Y": 2082 }, { "X": 3912, "Y": 2082 }, { "X": 3910, "Y": 2082 }, { "X": 3908, "Y": 2082 }, { "X": 3906, "Y": 2080 }, { "X": 3904, "Y": 2078 }, { "X": 3902, "Y": 2078 }, { "X": 3900, "Y": 2078 }, { "X": 3898, "Y": 2078 }, { "X": 3896, "Y": 2078 }, { "X": 3894, "Y": 2078 }, { "X": 3892, "Y": 2078 }, { "X": 3890, "Y": 2078 }, { "X": 3888, "Y": 2078 }, { "X": 3886, "Y": 2078 }, { "X": 3884, "Y": 2078 }, { "X": 3882, "Y": 2078 }, { "X": 3880, "Y": 2078 }, { "X": 3878, "Y": 2078 }, { "X": 3876, "Y": 2078 }, { "X": 3874, "Y": 2078 }, { "X": 3872, "Y": 2078 }, { "X": 3870, "Y": 2076 }, { "X": 3868, "Y": 2076 }, { "X": 3866, "Y": 2076 }, { "X": 3864, "Y": 2076 }, { "X": 3862, "Y": 2078 }, { "X": 3860, "Y": 2078 }, { "X": 3858, "Y": 2078 }, { "X": 3856, "Y": 2076 }, { "X": 3854, "Y": 2076 }, { "X": 3852, "Y": 2076 }, { "X": 3850, "Y": 2074 }, { "X": 3848, "Y": 2074 }, { "X": 3846, "Y": 2074 }, { "X": 3844, "Y": 2076 }, { "X": 3842, "Y": 2078 }, { "X": 3840, "Y": 2080 }, { "X": 3838, "Y": 2080 }, { "X": 3836, "Y": 2080 }, { "X": 3834, "Y": 2080 }, { "X": 3832, "Y": 2082 }, { "X": 3830, "Y": 2082 }, { "X": 3828, "Y": 2084 }, { "X": 3826, "Y": 2086 }, { "X": 3824, "Y": 2088 }, { "X": 3822, "Y": 2088 }, { "X": 3820, "Y": 2088 }, { "X": 3818, "Y": 2088 }, { "X": 3816, "Y": 2088 }, { "X": 3814, "Y": 2088 }, { "X": 3812, "Y": 2088 }, { "X": 3810, "Y": 2088 }, { "X": 3810, "Y": 2090 }, { "X": 3808, "Y": 2092 }, { "X": 3806, "Y": 2094 }, { "X": 3806, "Y": 2096 }, { "X": 3804, "Y": 2098 }, { "X": 3804, "Y": 2100 }, { "X": 3802, "Y": 2102 }, { "X": 3802, "Y": 2104 }, { "X": 3802, "Y": 2106 }, { "X": 3802, "Y": 2108 }, { "X": 3802, "Y": 2110 }, { "X": 3804, "Y": 2112 }, { "X": 3806, "Y": 2114 }, { "X": 3806, "Y": 2116 }, { "X": 3806, "Y": 2118 }, { "X": 3806, "Y": 2120 }, { "X": 3806, "Y": 2122 }, { "X": 3804, "Y": 2124 }, { "X": 3804, "Y": 2126 }, { "X": 3804, "Y": 2128 }, { "X": 3804, "Y": 2130 }, { "X": 3804, "Y": 2132 }, { "X": 3804, "Y": 2134 }, { "X": 3804, "Y": 2136 }, { "X": 3804, "Y": 2138 }, { "X": 3802, "Y": 2140 }, { "X": 3802, "Y": 2142 }, { "X": 3802, "Y": 2144 }, { "X": 3804, "Y": 2146 }, { "X": 3804, "Y": 2148 }, { "X": 3804, "Y": 2150 }, { "X": 3804, "Y": 2152 }, { "X": 3804, "Y": 2154 }, { "X": 3804, "Y": 2156 }, { "X": 3804, "Y": 2158 }, { "X": 3802, "Y": 2160 }, { "X": 3802, "Y": 2162 }, { "X": 3802, "Y": 2164 }, { "X": 3800, "Y": 2166 }, { "X": 3798, "Y": 2168 }, { "X": 3796, "Y": 2170 }, { "X": 3796, "Y": 2172 }, { "X": 3794, "Y": 2174 }, { "X": 3792, "Y": 2176 }, { "X": 3790, "Y": 2178 }, { "X": 3788, "Y": 2180 }, { "X": 3786, "Y": 2182 }, { "X": 3784, "Y": 2182 }, { "X": 3782, "Y": 2184 }, { "X": 3780, "Y": 2186 }, { "X": 3778, "Y": 2188 }, { "X": 3776, "Y": 2188 }, { "X": 3776, "Y": 2190 }, { "X": 3776, "Y": 2192 }, { "X": 3776, "Y": 2194 }, { "X": 3774, "Y": 2196 }, { "X": 3772, "Y": 2198 }, { "X": 3772, "Y": 2200 }, { "X": 3772, "Y": 2202 }, { "X": 3772, "Y": 2204 }, { "X": 3770, "Y": 2206 }, { "X": 3768, "Y": 2208 }, { "X": 3766, "Y": 2210 }, { "X": 3766, "Y": 2212 }, { "X": 3764, "Y": 2214 }, { "X": 3762, "Y": 2216 }, { "X": 3760, "Y": 2218 }, { "X": 3760, "Y": 2220 }, { "X": 3758, "Y": 2222 }, { "X": 3758, "Y": 2224 }, { "X": 3756, "Y": 2226 }, { "X": 3754, "Y": 2228 }, { "X": 3752, "Y": 2230 }, { "X": 3750, "Y": 2230 }, { "X": 3748, "Y": 2232 }, { "X": 3746, "Y": 2232 }, { "X": 3744, "Y": 2230 }, { "X": 3742, "Y": 2228 }, { "X": 3740, "Y": 2228 }, { "X": 3738, "Y": 2230 }, { "X": 3736, "Y": 2230 }, { "X": 3734, "Y": 2230 }, { "X": 3732, "Y": 2230 }, { "X": 3730, "Y": 2230 }, { "X": 3728, "Y": 2230 }, { "X": 3726, "Y": 2230 }, { "X": 3724, "Y": 2232 }, { "X": 3722, "Y": 2232 }, { "X": 3720, "Y": 2232 }, { "X": 3718, "Y": 2232 }, { "X": 3716, "Y": 2230 }, { "X": 3714, "Y": 2228 }, { "X": 3712, "Y": 2228 }, { "X": 3710, "Y": 2228 }, { "X": 3708, "Y": 2228 }, { "X": 3706, "Y": 2230 }, { "X": 3704, "Y": 2230 }, { "X": 3702, "Y": 2230 }, { "X": 3700, "Y": 2232 }, { "X": 3698, "Y": 2232 }, { "X": 3696, "Y": 2232 }, { "X": 3694, "Y": 2232 }, { "X": 3692, "Y": 2232 }, { "X": 3690, "Y": 2232 }, { "X": 3688, "Y": 2232 }, { "X": 3686, "Y": 2232 }, { "X": 3684, "Y": 2232 }, { "X": 3682, "Y": 2232 }, { "X": 3680, "Y": 2232 }, { "X": 3678, "Y": 2234 }, { "X": 3676, "Y": 2236 }, { "X": 3674, "Y": 2238 }, { "X": 3674, "Y": 2240 }, { "X": 3674, "Y": 2242 }, { "X": 3674, "Y": 2244 }, { "X": 3674, "Y": 2246 }, { "X": 3674, "Y": 2248 }, { "X": 3674, "Y": 2250 }, { "X": 3674, "Y": 2252 }, { "X": 3674, "Y": 2254 }, { "X": 3674, "Y": 2256 }, { "X": 3674, "Y": 2258 }, { "X": 3674, "Y": 2260 }, { "X": 3674, "Y": 2262 }, { "X": 3676, "Y": 2264 }, { "X": 3676, "Y": 2266 }, { "X": 3676, "Y": 2268 }, { "X": 3678, "Y": 2270 }, { "X": 3678, "Y": 2272 }, { "X": 3678, "Y": 2274 }, { "X": 3678, "Y": 2276 }, { "X": 3678, "Y": 2278 }, { "X": 3676, "Y": 2280 }, { "X": 3676, "Y": 2282 }, { "X": 3678, "Y": 2284 }, { "X": 3680, "Y": 2286 }, { "X": 3682, "Y": 2286 }, { "X": 3684, "Y": 2286 }, { "X": 3686, "Y": 2288 }, { "X": 3688, "Y": 2290 }, { "X": 3690, "Y": 2290 }, { "X": 3692, "Y": 2288 }, { "X": 3694, "Y": 2286 }, { "X": 3696, "Y": 2286 }, { "X": 3698, "Y": 2286 }, { "X": 3700, "Y": 2286 }, { "X": 3702, "Y": 2286 }, { "X": 3704, "Y": 2288 }, { "X": 3706, "Y": 2290 }, { "X": 3708, "Y": 2292 }, { "X": 3710, "Y": 2294 }, { "X": 3710, "Y": 2296 }, { "X": 3710, "Y": 2298 }, { "X": 3710, "Y": 2300 }, { "X": 3710, "Y": 2302 }, { "X": 3712, "Y": 2304 }, { "X": 3712, "Y": 2306 }, { "X": 3714, "Y": 2308 }, { "X": 3716, "Y": 2310 }, { "X": 3718, "Y": 2312 }, { "X": 3718, "Y": 2314 }, { "X": 3716, "Y": 2316 }, { "X": 3716, "Y": 2318 }, { "X": 3714, "Y": 2320 }, { "X": 3712, "Y": 2322 }, { "X": 3710, "Y": 2324 }, { "X": 3708, "Y": 2326 }, { "X": 3706, "Y": 2328 }, { "X": 3704, "Y": 2330 }, { "X": 3702, "Y": 2330 }, { "X": 3700, "Y": 2330 }, { "X": 3698, "Y": 2330 }, { "X": 3696, "Y": 2330 }, { "X": 3694, "Y": 2330 }, { "X": 3692, "Y": 2330 }, { "X": 3690, "Y": 2330 }, { "X": 3688, "Y": 2330 }, { "X": 3686, "Y": 2330 }, { "X": 3684, "Y": 2330 }, { "X": 3682, "Y": 2332 }, { "X": 3680, "Y": 2332 }, { "X": 3678, "Y": 2332 }, { "X": 3676, "Y": 2332 }, { "X": 3674, "Y": 2330 }, { "X": 3672, "Y": 2330 }, { "X": 3670, "Y": 2330 }, { "X": 3668, "Y": 2330 }, { "X": 3666, "Y": 2330 }, { "X": 3664, "Y": 2330 }, { "X": 3662, "Y": 2330 }, { "X": 3660, "Y": 2330 }, { "X": 3658, "Y": 2328 }, { "X": 3656, "Y": 2328 }, { "X": 3654, "Y": 2328 }, { "X": 3652, "Y": 2330 }], [{ "X": 4064, "Y": 2566 }, { "X": 4066, "Y": 2566 }, { "X": 4066, "Y": 2564 }, { "X": 4068, "Y": 2564 }, { "X": 4068, "Y": 2562 }, { "X": 4070, "Y": 2562 }, { "X": 4072, "Y": 2562 }, { "X": 4074, "Y": 2562 }, { "X": 4076, "Y": 2562 }, { "X": 4078, "Y": 2562 }, { "X": 4078, "Y": 2560 }, { "X": 4080, "Y": 2560 }, { "X": 4080, "Y": 2558 }, { "X": 4082, "Y": 2558 }, { "X": 4082, "Y": 2556 }, { "X": 4082, "Y": 2554 }, { "X": 4082, "Y": 2552 }, { "X": 4082, "Y": 2550 }, { "X": 4082, "Y": 2548 }, { "X": 4084, "Y": 2548 }, { "X": 4084, "Y": 2546 }, { "X": 4086, "Y": 2546 }, { "X": 4086, "Y": 2544 }, { "X": 4088, "Y": 2544 }, { "X": 4090, "Y": 2544 }, { "X": 4092, "Y": 2544 }, { "X": 4094, "Y": 2544 }, { "X": 4094, "Y": 2542 }, { "X": 4096, "Y": 2542 }, { "X": 4098, "Y": 2542 }, { "X": 4100, "Y": 2542 }, { "X": 4102, "Y": 2542 }, { "X": 4102, "Y": 2540 }, { "X": 4104, "Y": 2540 }, { "X": 4106, "Y": 2540 }, { "X": 4106, "Y": 2542 }, { "X": 4108, "Y": 2542 }, { "X": 4108, "Y": 2544 }, { "X": 4110, "Y": 2544 }, { "X": 4108, "Y": 2544 }, { "X": 4108, "Y": 2546 }, { "X": 4106, "Y": 2546 }, { "X": 4106, "Y": 2548 }, { "X": 4106, "Y": 2550 }, { "X": 4108, "Y": 2550 }, { "X": 4110, "Y": 2550 }, { "X": 4110, "Y": 2552 }, { "X": 4112, "Y": 2552 }, { "X": 4112, "Y": 2554 }, { "X": 4114, "Y": 2554 }, { "X": 4114, "Y": 2556 }, { "X": 4116, "Y": 2556 }, { "X": 4116, "Y": 2558 }, { "X": 4114, "Y": 2558 }, { "X": 4114, "Y": 2560 }, { "X": 4112, "Y": 2560 }, { "X": 4112, "Y": 2562 }, { "X": 4110, "Y": 2562 }, { "X": 4110, "Y": 2564 }, { "X": 4108, "Y": 2564 }, { "X": 4106, "Y": 2564 }, { "X": 4106, "Y": 2566 }, { "X": 4106, "Y": 2568 }, { "X": 4104, "Y": 2568 }, { "X": 4104, "Y": 2570 }, { "X": 4102, "Y": 2570 }, { "X": 4102, "Y": 2572 }, { "X": 4100, "Y": 2572 }, { "X": 4100, "Y": 2574 }, { "X": 4098, "Y": 2574 }, { "X": 4096, "Y": 2574 }, { "X": 4094, "Y": 2574 }, { "X": 4092, "Y": 2574 }, { "X": 4090, "Y": 2574 }, { "X": 4088, "Y": 2574 }, { "X": 4086, "Y": 2574 }, { "X": 4084, "Y": 2574 }, { "X": 4082, "Y": 2574 }, { "X": 4080, "Y": 2574 }, { "X": 4078, "Y": 2574 }, { "X": 4076, "Y": 2574 }, { "X": 4074, "Y": 2574 }, { "X": 4072, "Y": 2574 }, { "X": 4070, "Y": 2574 }, { "X": 4070, "Y": 2572 }, { "X": 4068, "Y": 2572 }, { "X": 4068, "Y": 2570 }, { "X": 4066, "Y": 2570 }, { "X": 4066, "Y": 2568 }, { "X": 4064, "Y": 2568 }, { "X": 4064, "Y": 2566 }], [{ "X": 4074, "Y": 2318 }, { "X": 4076, "Y": 2318 }, { "X": 4076, "Y": 2316 }, { "X": 4076, "Y": 2314 }, { "X": 4078, "Y": 2314 }, { "X": 4078, "Y": 2312 }, { "X": 4080, "Y": 2312 }, { "X": 4080, "Y": 2310 }, { "X": 4082, "Y": 2310 }, { "X": 4084, "Y": 2310 }, { "X": 4086, "Y": 2310 }, { "X": 4088, "Y": 2310 }, { "X": 4088, "Y": 2308 }, { "X": 4090, "Y": 2308 }, { "X": 4092, "Y": 2308 }, { "X": 4094, "Y": 2308 }, { "X": 4096, "Y": 2308 }, { "X": 4098, "Y": 2308 }, { "X": 4100, "Y": 2308 }, { "X": 4102, "Y": 2308 }, { "X": 4104, "Y": 2308 }, { "X": 4106, "Y": 2308 }, { "X": 4108, "Y": 2308 }, { "X": 4110, "Y": 2308 }, { "X": 4112, "Y": 2308 }, { "X": 4114, "Y": 2308 }, { "X": 4116, "Y": 2308 }, { "X": 4116, "Y": 2310 }, { "X": 4118, "Y": 2310 }, { "X": 4118, "Y": 2312 }, { "X": 4120, "Y": 2312 }, { "X": 4120, "Y": 2314 }, { "X": 4118, "Y": 2314 }, { "X": 4118, "Y": 2316 }, { "X": 4116, "Y": 2316 }, { "X": 4116, "Y": 2318 }, { "X": 4116, "Y": 2320 }, { "X": 4116, "Y": 2322 }, { "X": 4116, "Y": 2324 }, { "X": 4116, "Y": 2326 }, { "X": 4118, "Y": 2326 }, { "X": 4118, "Y": 2328 }, { "X": 4118, "Y": 2330 }, { "X": 4116, "Y": 2330 }, { "X": 4116, "Y": 2332 }, { "X": 4114, "Y": 2332 }, { "X": 4114, "Y": 2334 }, { "X": 4112, "Y": 2334 }, { "X": 4110, "Y": 2334 }, { "X": 4108, "Y": 2334 }, { "X": 4106, "Y": 2334 }, { "X": 4104, "Y": 2334 }, { "X": 4102, "Y": 2334 }, { "X": 4100, "Y": 2334 }, { "X": 4098, "Y": 2334 }, { "X": 4096, "Y": 2334 }, { "X": 4094, "Y": 2334 }, { "X": 4092, "Y": 2334 }, { "X": 4090, "Y": 2334 }, { "X": 4088, "Y": 2334 }, { "X": 4086, "Y": 2334 }, { "X": 4084, "Y": 2334 }, { "X": 4084, "Y": 2332 }, { "X": 4082, "Y": 2332 }, { "X": 4082, "Y": 2330 }, { "X": 4080, "Y": 2330 }, { "X": 4080, "Y": 2328 }, { "X": 4078, "Y": 2328 }, { "X": 4078, "Y": 2326 }, { "X": 4076, "Y": 2326 }, { "X": 4076, "Y": 2324 }, { "X": 4076, "Y": 2322 }, { "X": 4076, "Y": 2320 }, { "X": 4076, "Y": 2318 }, { "X": 4074, "Y": 2318 }], [{ "X": 4106, "Y": 2518 }, { "X": 4108, "Y": 2518 }, { "X": 4108, "Y": 2516 }, { "X": 4108, "Y": 2514 }, { "X": 4108, "Y": 2512 }, { "X": 4110, "Y": 2512 }, { "X": 4110, "Y": 2510 }, { "X": 4110, "Y": 2508 }, { "X": 4110, "Y": 2506 }, { "X": 4110, "Y": 2504 }, { "X": 4110, "Y": 2502 }, { "X": 4110, "Y": 2500 }, { "X": 4110, "Y": 2498 }, { "X": 4110, "Y": 2496 }, { "X": 4110, "Y": 2494 }, { "X": 4112, "Y": 2494 }, { "X": 4112, "Y": 2492 }, { "X": 4114, "Y": 2492 }, { "X": 4114, "Y": 2490 }, { "X": 4116, "Y": 2490 }, { "X": 4116, "Y": 2488 }, { "X": 4116, "Y": 2486 }, { "X": 4116, "Y": 2484 }, { "X": 4118, "Y": 2484 }, { "X": 4118, "Y": 2482 }, { "X": 4120, "Y": 2482 }, { "X": 4120, "Y": 2480 }, { "X": 4122, "Y": 2480 }, { "X": 4124, "Y": 2480 }, { "X": 4124, "Y": 2478 }, { "X": 4124, "Y": 2480 }, { "X": 4126, "Y": 2480 }, { "X": 4126, "Y": 2482 }, { "X": 4128, "Y": 2482 }, { "X": 4128, "Y": 2484 }, { "X": 4128, "Y": 2486 }, { "X": 4128, "Y": 2488 }, { "X": 4128, "Y": 2490 }, { "X": 4128, "Y": 2492 }, { "X": 4128, "Y": 2494 }, { "X": 4128, "Y": 2496 }, { "X": 4130, "Y": 2496 }, { "X": 4130, "Y": 2498 }, { "X": 4132, "Y": 2498 }, { "X": 4132, "Y": 2500 }, { "X": 4134, "Y": 2500 }, { "X": 4134, "Y": 2502 }, { "X": 4132, "Y": 2502 }, { "X": 4132, "Y": 2504 }, { "X": 4132, "Y": 2506 }, { "X": 4132, "Y": 2508 }, { "X": 4134, "Y": 2508 }, { "X": 4134, "Y": 2510 }, { "X": 4134, "Y": 2512 }, { "X": 4134, "Y": 2514 }, { "X": 4134, "Y": 2516 }, { "X": 4134, "Y": 2518 }, { "X": 4132, "Y": 2518 }, { "X": 4132, "Y": 2520 }, { "X": 4130, "Y": 2520 }, { "X": 4130, "Y": 2522 }, { "X": 4128, "Y": 2522 }, { "X": 4126, "Y": 2522 }, { "X": 4126, "Y": 2524 }, { "X": 4124, "Y": 2524 }, { "X": 4124, "Y": 2522 }, { "X": 4122, "Y": 2522 }, { "X": 4120, "Y": 2522 }, { "X": 4118, "Y": 2522 }, { "X": 4116, "Y": 2522 }, { "X": 4114, "Y": 2522 }, { "X": 4112, "Y": 2522 }, { "X": 4110, "Y": 2522 }, { "X": 4110, "Y": 2520 }, { "X": 4108, "Y": 2520 }, { "X": 4108, "Y": 2518 }, { "X": 4106, "Y": 2518 }], [{ "X": 4120, "Y": 2262 }, { "X": 4122, "Y": 2262 }, { "X": 4122, "Y": 2260 }, { "X": 4124, "Y": 2260 }, { "X": 4124, "Y": 2258 }, { "X": 4126, "Y": 2258 }, { "X": 4126, "Y": 2256 }, { "X": 4126, "Y": 2254 }, { "X": 4126, "Y": 2252 }, { "X": 4126, "Y": 2250 }, { "X": 4124, "Y": 2250 }, { "X": 4126, "Y": 2250 }, { "X": 4126, "Y": 2248 }, { "X": 4128, "Y": 2248 }, { "X": 4128, "Y": 2246 }, { "X": 4130, "Y": 2246 }, { "X": 4132, "Y": 2246 }, { "X": 4134, "Y": 2246 }, { "X": 4136, "Y": 2246 }, { "X": 4138, "Y": 2246 }, { "X": 4138, "Y": 2248 }, { "X": 4140, "Y": 2248 }, { "X": 4140, "Y": 2250 }, { "X": 4142, "Y": 2250 }, { "X": 4142, "Y": 2252 }, { "X": 4142, "Y": 2254 }, { "X": 4142, "Y": 2256 }, { "X": 4142, "Y": 2258 }, { "X": 4142, "Y": 2260 }, { "X": 4142, "Y": 2262 }, { "X": 4142, "Y": 2264 }, { "X": 4142, "Y": 2266 }, { "X": 4140, "Y": 2266 }, { "X": 4140, "Y": 2268 }, { "X": 4140, "Y": 2270 }, { "X": 4138, "Y": 2270 }, { "X": 4138, "Y": 2272 }, { "X": 4136, "Y": 2272 }, { "X": 4136, "Y": 2274 }, { "X": 4134, "Y": 2274 }, { "X": 4132, "Y": 2274 }, { "X": 4132, "Y": 2276 }, { "X": 4132, "Y": 2278 }, { "X": 4132, "Y": 2280 }, { "X": 4132, "Y": 2282 }, { "X": 4132, "Y": 2284 }, { "X": 4132, "Y": 2286 }, { "X": 4132, "Y": 2288 }, { "X": 4130, "Y": 2288 }, { "X": 4130, "Y": 2290 }, { "X": 4128, "Y": 2290 }, { "X": 4128, "Y": 2292 }, { "X": 4128, "Y": 2290 }, { "X": 4126, "Y": 2290 }, { "X": 4126, "Y": 2288 }, { "X": 4124, "Y": 2288 }, { "X": 4124, "Y": 2286 }, { "X": 4124, "Y": 2284 }, { "X": 4124, "Y": 2282 }, { "X": 4124, "Y": 2280 }, { "X": 4124, "Y": 2278 }, { "X": 4124, "Y": 2276 }, { "X": 4124, "Y": 2274 }, { "X": 4124, "Y": 2272 }, { "X": 4124, "Y": 2270 }, { "X": 4122, "Y": 2270 }, { "X": 4122, "Y": 2268 }, { "X": 4120, "Y": 2268 }, { "X": 4120, "Y": 2266 }, { "X": 4120, "Y": 2264 }, { "X": 4120, "Y": 2262 }] ] /** TODO: I guess this would be an HTML5 canvas * with a raster representation of the polygon. * I don't think node has good support yet * for the HTML5 canvas element. */ export const raster = ""
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ "use strict"; var _user = require("./src/model/user"); var _user2 = _interopRequireDefault(_user); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var user = new _user2.default("Iran"); user.sayHi(); },{"./src/model/user":2}],2:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var User = function () { function User(name) { _classCallCheck(this, User); this.name = name; } _createClass(User, [{ key: 'sayHi', value: function sayHi() { console.log('Hi ' + this.name); } }]); return User; }(); module.exports = User; },{}]},{},[1]) //# sourceMappingURL=bundle.js.map
/* globals require */ import loadEmberExam from 'ember-exam/test-support/load'; /** * Equivalent to ember-qunit or ember-mocha's loadTest() except this does not create a new TestLoader instance * * @function loadTests * @param {*} testLoader */ function loadTests(testLoader) { if (testLoader === undefined) { throw new Error( 'A testLoader instance has not been created. You must call `loadEmberExam()` before calling `loadTest()`.' ); } testLoader.loadModules(); } /** * Ember-exam's own start function to set up EmberExamTestLoader, load tests and calls start() from * ember-qunit or ember-mocha * * @function start * @param {*} qunitOptions */ export default function start(qunitOptions) { const framework = require.has('ember-qunit') ? 'qunit' : 'mocha'; const modifiedOptions = qunitOptions || Object.create(null); modifiedOptions.loadTests = false; const testLoader = loadEmberExam(); loadTests(testLoader); const emberTestFramework = require(`ember-${framework}`); if (emberTestFramework.start) { emberTestFramework.start(modifiedOptions); } }
import netflix from "./netflix.png"; import whatsapp from "./whatsApp.jpg"; import air from "./airBnd.png"; import admin from "./admin.jpg"; import gmail from "./gmail.png"; import chat from "./chatUi.png"; import amazon from "./amazon.jpg"; import trans from "./translator.png"; import coin from "./bitcoin.jpg"; import eng from "./quiz.jpg"; import mosque from "./msoque.jpg"; import movies from "./movie.jpg"; import slack from "./slack.png"; import quiz2 from "./quiz-types.jpg"; import UI from "./ui.png"; import disney from "./disney.jpg"; import robin from "./robin.png"; import covid from "./covid.jpg"; import social from "./chat-ui2.png"; import dis from "./discord.png"; import morgen from "./morgen.jpg"; import twit from "./twitter.png"; import telegram from "./telegram.png"; import facebook from "./facebook.png"; import spotify from "./spotify.png"; import typesQuiz from "./quiz-types.jpg"; import cart from "./cart.jpg"; import yt from "./yt.jpg"; export const PortfolioData = [ { id: 1, title: "Whats app clone", image: whatsapp, slug: "whatsApp", url: "https://whatsapp-4c106.web.app/rooms/5c8tgSX6XpOwI9SLhO1u", }, { id: 2, title: "Airbnd clone", image: air, slug: "airBnd", url: "https://airbnb-ui-me.netlify.app/", }, { id: 3, title: "About me", image: admin, slug: "aboutMe", url: "https://portfolio-ui-me.netlify.app", }, { id: 4, title: "Gmail UI", image: gmail, slug: "gmailUi", url: 'https://gmail-functional.netlify.app' }, { id: 5, title: "Gmail functional", image: gmail, slug: "gmailFunc", url: 'https://gmail-ui-me.netlify.app' }, { id: 6, title: "Youtube clone-UI", image: yt, slug: "yt", url: 'https://youtube-ui-me.netlify.app' }, { id: 7, title: "Simple chat-UI", image: chat, slug: "simpleChat", url: 'https://chat-ui-me.netlify.app' }, { id: 8, title: "Amazon clone", image: amazon, slug: "amazon", url: 'https://own-amazon.netlify.app' }, { id: 9, title: "Netflix clone", image: netflix, slug: "netflix", url: 'https://my-own-netlify.netlify.app' }, { id: 10, title: "Translator", image: trans, slug: "translator", url: 'https://react-translatorr.netlify.app' }, { id: 11, title: "Cryptocurrency Admin", image: coin, slug: "bitcoin", url: 'https://crypto-admin-page.netlify.app' }, { id: 12, title: "Learn english with Quiz", image: eng, slug: "english", url: 'https://learn-eng-quiz.netlify.app/' }, { id: 13, title: "Qorabog Masjid", image: mosque, slug: "mosque", url: 'https://' }, { id: 14, title: "Online Movies", image: movies, slug: "movies", }, { id: 15, title: "Slack clone", image: slack, slug: "slack", }, { id: 16, title: "Bozor-uz", image: coin, slug: "bozor", }, { id: 17, title: "Quiz width redux-saga", image: quiz2, slug: "quiz", }, { id: 18, title: "Fully UI", image: UI, slug: "UI", }, { id: 19, title: "Disney clone", image: disney, slug: "disney", }, { id: 20, title: "Robinhood clone", image: robin, slug: "robin", }, { id: 21, title: "Covid tracker", image: covid, slug: "covid", }, { id: 22, title: "Socialize", image: social, slug: "social", }, { id: 23, title: "Discord", image: dis, slug: "discord", }, { id: 24, title: "Morgenshtern songs", image: morgen, slug: "morgen", }, { id: 25, title: "Twitter clone", image: twit, slug: "twitter", }, { id: 26, title: "Telegram clone", image: telegram, }, { id: 27, title: "Facebook clone", image: facebook, slug: "facebook", }, { id: 28, title: "Spotify clone", image: spotify, slug: "spotify", }, { id: 29, title: "Typescript quiz", image: typesQuiz, slug: "types", }, { id: 30, title: "Typescript shopping-cart", image: cart, slug: "cart", }, { id: 31, title: "Services UI", image: cart, slug: "services", url: 'https://service-page-ui.netlify.app ' }, ];
/*********************************************************************/ /* function create_state belongs to https://github.com/DutchmanNL */ /* Thanks for sharing! */ /*********************************************************************/ const stateAttr = require(__dirname + '/stateAttr.js'); // Load attribute library const disableSentry = true; // Ensure to set to true during development! let stateExpire = {}, warnMessages = {}; /** * Traeverses the json-object and provides all information for creating/updating states * @param {object} adapter Adapter-Class * @param {object} o Json-object to be added as states * @param {string | null} parent Defines the parent object in the state tree * @param {boolean} replaceName Steers if name from child should be used as name for structure element (channel) * @param {boolean} replaceID Steers if ID from child should be used as ID for structure element (channel) */ async function TraverseJson(adapter, o, parent = null, replaceName = false, replaceID = false) { let id = null; let value = null; let name = null; try { for (var i in o) { name = i; if (!!o[i] && typeof (o[i]) == 'object' && o[i] == '[object Object]') { if (parent == null) { id = i; if (replaceName) { if (o[i].name) name = o[i].name; } if (replaceID) { if (o[i].id) id = o[i].id; } } else { id = parent + '.' + i; if (replaceName) { if (o[i].name) name = o[i].name; } if (replaceID) { if (o[i].id) id = parent + '.' + o[i].id; } } // Avoid channel creation for empty arrays/objects if (Object.keys(o[i]).length !== 0) { console.log(`park`); await adapter.setObjectAsync(id, { 'type': 'channel', 'common': { 'name': name, }, 'native': {}, }); TraverseJson(adapter, o[i], id, replaceName, replaceID); } else { console.log('State ' + id + ' received with empty array, ignore channel creation'); adapter.log.debug('State ' + id + ' received with empty array, ignore channel creation'); } } else { value = o[i]; if (parent == null) { id = i; } else { id = parent + '.' + i } if (typeof (o[i]) == 'object') value = JSON.stringify(value); adapter.log.debug('create id ' + id + ' with value ' + value + ' and name ' + name); create_state(adapter, id, name, value); } } } catch (error) { adapter.log.error(`Error in function TraverseJson: ${error}`); } } /** * @param {object} adapter Adapter-Class * @param {string} stateName ID of the state * @param {string} name Name of the state * @param {string | null} value Value of the state */ async function create_state(adapter, stateName, name, value) { adapter.log.debug('Create_state called for : ' + stateName + ' with value : ' + value); try { // Try to get details from state lib, if not use defaults. throw warning is states is not known in attribute list const common = {}; if (!stateAttr[name]) { const warnMessage = `State attribute definition missing for '${name}'`; if (warnMessages[name] !== warnMessage) { warnMessages[name] = warnMessage; // Send information to Sentry sendSentry(adapter, warnMessage); } } common.name = stateAttr[name] !== undefined ? stateAttr[name].name || name : name; common.type = typeof (value); common.role = stateAttr[name] !== undefined ? stateAttr[name].role || 'state' : 'state'; common.read = true; common.unit = stateAttr[name] !== undefined ? stateAttr[name].unit || '' : ''; common.write = stateAttr[name] !== undefined ? stateAttr[name].write || false : false; if ((!adapter.createdStatesDetails[stateName]) || (adapter.createdStatesDetails[stateName] && ( common.name !== adapter.createdStatesDetails[stateName].name || common.name !== adapter.createdStatesDetails[stateName].name || common.type !== adapter.createdStatesDetails[stateName].type || common.role !== adapter.createdStatesDetails[stateName].role || common.read !== adapter.createdStatesDetails[stateName].read || common.unit !== adapter.createdStatesDetails[stateName].unit || common.write !== adapter.createdStatesDetails[stateName].write ) )) { // console.log(`An attribute has changed : ${state}`); await adapter.extendObjectAsync(stateName, { type: 'state', common }); } else { // console.log(`Nothing changed do not update object`); } // Store current object definition to memory adapter.createdStatesDetails[stateName] = common; // Set value to state if (value !== null || value !== undefined) { await adapter.setStateAsync(stateName, { val: value, ack: true }); } // Timer to set online state to FALSE when not updated if (name === 'online') { // Clear running timer if (stateExpire[stateName]) { clearTimeout(stateExpire[stateName]); stateExpire[stateName] = null; } // timer stateExpire[stateName] = setTimeout(async () => { await adapter.setStateAsync(stateName, { val: false, ack: true, }); adapter.log.info('Online state expired for ' + stateName); }, adapter.executioninterval * 1000 + 5000); adapter.log.debug('Expire time set for state : ' + name + ' with time in seconds : ' + (adapter.executioninterval + 5)); } // Subscribe on state changes if writable common.write && adapter.subscribeStates(stateName); } catch (error) { adapter.log.error('Create state error = ' + error); } } /** * @param {object} adapter Adapter-Class * @param {string} msg Error message */ function sendSentry(adapter, msg) { try { if (!disableSentry) { adapter.log.info(`[Error catched and send to Sentry, thank you collaborating!] error: ${msg}`); if (adapter.supportsFeature && adapter.supportsFeature('PLUGINS')) { const sentryInstance = adapter.getPluginInstance('sentry'); if (sentryInstance) { sentryInstance.getSentryObject().captureException(msg); } } } else { adapter.log.warn(`Sentry disabled, error catched : ${msg}`); console.error(`Sentry disabled, error catched : ${msg}`); } } catch (error) { adapter.log.error(`Error in function sendSentry: ${error}`); } } /** * Handles the expire if a value is no longer responsed in the API call * @param {object} adapter Adapter-Class */ async function checkExpire(adapter) { try { let state = await adapter.getStateAsync('online'); let onlineTs = 0; if (state) { if (state.val == true) { onlineTs = state.ts; } else { adapter.log.error('Adapter is offline. Aborting checkExpire...'); return; } } else { adapter.log.error(`Attribute 'online' not found. Aborting checkExpire...`); return; } const states = await adapter.getStatesAsync('*'); for (const idS in states) { let state = await adapter.getStateAsync(idS); adapter.log.debug(idS + ': ' + state); if (state && state.val != null) { let stateTs = state.ts; let dif = onlineTs - stateTs; adapter.log.debug(`${idS}: ${stateTs} | ${onlineTs} | ${dif}`); if ((onlineTs - stateTs) > 0) { await adapter.setStateAsync(idS, null, true); adapter.log.info(`Set state ${idS} to null`); } } } } catch (error) { adapter.log.error(`Error in function checkExpire: ${error}`); } } module.exports = { TraverseJson: TraverseJson, create_state: create_state, checkExpire: checkExpire };
import PluginId from '../pluginId' import Embed from '@editorjs/embed' import Table from '@editorjs/table' import List from '@editorjs/list' import Warning from '@editorjs/warning' import Code from '@editorjs/code' import LinkTool from '@editorjs/link' import Raw from '@editorjs/raw' import Header from '@editorjs/header' import Quote from '@editorjs/quote' import Marker from '@editorjs/marker' import CheckList from '@editorjs/checklist' import Delimiter from '@editorjs/delimiter' import InlineCode from '@editorjs/inline-code' import Introduction from './customPlugins/introduction/introduction' const customTools = { embed: Embed, table: { class: Table, inlineToolbar: true, }, list: { class: List, inlineToolbar: true, }, warning: { class: Warning, inlineToolbar: true, config: { titlePlaceholder: 'Title', messagePlaceholder: 'Message', }, }, code: Code, LinkTool: { class: LinkTool, config: { endpoint: `/api/${PluginId}/link`, }, }, raw: { class: Raw, inlineToolbar: true, }, header: { class: Header, inlineToolbar: true, }, quote: { class: Quote, inlineToolbar: true, config: { quotePlaceholder: 'Quote', captionPlaceholder: 'Quote`s author', }, }, marker: { class: Marker, inlineToolbar: true, }, checklist: { class: CheckList, inlineToolbar: true, }, delimiter: Delimiter, inlineCode: InlineCode, introduction: { class: Introduction, inlineToolbar: true, }, } export default customTools
(function(){function c(){}function h(e){this.buttonBar=r.getElementById("wmd-button-bar"+e);this.preview=r.getElementById("wmd-preview"+e);this.input=r.getElementById("wmd-input"+e)}function p(t,n){var r=this;var i=[];var s=0;var o="none";var a;var f;var l;var c=function(e,t){if(o!=e){o=e;if(!t){p()}}if(!u.isIE||o!="moving"){f=setTimeout(h,1)}else{l=null}};var h=function(e){l=new d(n,e);f=undefined};this.setCommandMode=function(){o="command";p();f=setTimeout(h,0)};this.canUndo=function(){return s>1};this.canRedo=function(){if(i[s+1]){return true}return false};this.undo=function(){if(r.canUndo()){if(a){a.restore();a=null}else{i[s]=new d(n);i[--s].restore();if(t){t()}}}o="none";n.input.focus();h()};this.redo=function(){if(r.canRedo()){i[++s].restore();if(t){t()}}o="none";n.input.focus();h()};var p=function(){var e=l||new d(n);if(!e){return false}if(o=="moving"){if(!a){a=e}return}if(a){if(i[s-1].text!=a.text){i[s++]=a}a=null}i[s++]=e;i[s+1]=null;if(t){t()}};var v=function(e){var t=false;if((e.ctrlKey||e.metaKey)&&!e.altKey){var n=e.charCode||e.keyCode;var i=String.fromCharCode(n);switch(i.toLowerCase()){case"y":r.redo();t=true;break;case"z":if(!e.shiftKey){r.undo()}else{r.redo()}t=true;break}}if(t){if(e.preventDefault){e.preventDefault()}if(window.event){window.event.returnValue=false}return}};var m=function(e){if(!e.ctrlKey&&!e.metaKey){var t=e.keyCode;if(t>=33&&t<=40||t>=63232&&t<=63235){c("moving")}else if(t==8||t==46||t==127){c("deleting")}else if(t==13){c("newlines")}else if(t==27){c("escape")}else if((t<16||t>20)&&t!=91){c("typing")}}};var g=function(){e.addEvent(n.input,"keypress",function(e){if((e.ctrlKey||e.metaKey)&&!e.altKey&&(e.keyCode==89||e.keyCode==90)){e.preventDefault()}});var t=function(){if(u.isIE||l&&l.text!=n.input.value){if(f==undefined){o="paste";p();h()}}};e.addEvent(n.input,"keydown",v);e.addEvent(n.input,"keydown",m);e.addEvent(n.input,"mousedown",function(){c("moving")});n.input.onpaste=t;n.input.ondrop=t};var y=function(){g();h(true);p()};y()}function d(t,n){var i=this;var s=t.input;this.init=function(){if(!e.isVisible(s)){return}if(!n&&r.activeElement&&r.activeElement!==s){return}this.setInputAreaSelectionStartEnd();this.scrollTop=s.scrollTop;if(!this.text&&s.selectionStart||s.selectionStart===0){this.text=s.value}};this.setInputAreaSelection=function(){if(!e.isVisible(s)){return}if(s.selectionStart!==undefined&&!u.isOpera){s.focus();s.selectionStart=i.start;s.selectionEnd=i.end;s.scrollTop=i.scrollTop}else if(r.selection){if(r.activeElement&&r.activeElement!==s){return}s.focus();var t=s.createTextRange();t.moveStart("character",-s.value.length);t.moveEnd("character",-s.value.length);t.moveEnd("character",i.end);t.moveStart("character",i.start);t.select()}};this.setInputAreaSelectionStartEnd=function(){if(!t.ieCachedRange&&(s.selectionStart||s.selectionStart===0)){i.start=s.selectionStart;i.end=s.selectionEnd}else if(r.selection){i.text=e.fixEolChars(s.value);var n=t.ieCachedRange||r.selection.createRange();var o=e.fixEolChars(n.text);var u="";var a=u+o+u;n.text=a;var f=e.fixEolChars(s.value);n.moveStart("character",-a.length);n.text=o;i.start=f.indexOf(u);i.end=f.lastIndexOf(u)-u.length;var l=i.text.length-e.fixEolChars(s.value).length;if(l){n.moveStart("character",-o.length);while(l--){o+="\n";i.end+=1}n.text=o}if(t.ieCachedRange)i.scrollTop=t.ieCachedScrollTop;t.ieCachedRange=null;this.setInputAreaSelection()}};this.restore=function(){if(i.text!=undefined&&i.text!=s.value){s.value=i.text}this.setInputAreaSelection();s.scrollTop=i.scrollTop};this.getChunks=function(){var t=new c;t.before=e.fixEolChars(i.text.substring(0,i.start));t.startTag="";t.selection=e.fixEolChars(i.text.substring(i.start,i.end));t.endTag="";t.after=e.fixEolChars(i.text.substring(i.end));t.scrollTop=i.scrollTop;return t};this.setChunks=function(e){e.before=e.before+e.startTag;e.after=e.endTag+e.after;this.start=e.before.length;this.end=e.before.length+e.selection.length;this.text=e.before+e.selection+e.after;this.scrollTop=e.scrollTop};this.init()}function v(n,i,s){var o=this;var a;var f;var l;var c=3e3;var h="delayed";var p=function(t,n){e.addEvent(t,"input",n);t.onpaste=n;t.ondrop=n;e.addEvent(t,"keypress",n);e.addEvent(t,"keydown",n)};var d=function(){var e=0;if(window.innerHeight){e=window.pageYOffset}else if(r.documentElement&&r.documentElement.scrollTop){e=r.documentElement.scrollTop}else if(r.body){e=r.body.scrollTop}return e};var v=function(){if(!i.preview)return;var e=i.input.value;if(e&&e==l){return}else{l=e}var t=(new Date).getTime();e=n.makeHtml(e);var r=(new Date).getTime();f=r-t;T(e)};var m=function(){if(a){clearTimeout(a);a=undefined}if(h!=="manual"){var e=0;if(h==="delayed"){e=f}if(e>c){e=c}a=setTimeout(v,e)}};var g=function(e){if(e.scrollHeight<=e.clientHeight){return 1}return e.scrollTop/(e.scrollHeight-e.clientHeight)};var y=function(){if(i.preview){i.preview.scrollTop=(i.preview.scrollHeight-i.preview.clientHeight)*g(i.preview)}};this.refresh=function(e){if(e){l="";v()}else{m()}};this.processingTime=function(){return f};var b=true;var w=function(e){var t=i.preview;var n=t.parentNode;var r=t.nextSibling;n.removeChild(t);t.innerHTML=e;if(!r)n.appendChild(t);else n.insertBefore(t,r)};var E=function(e){i.preview.innerHTML=e};var S;var x=function(e){if(S)return S(e);try{E(e);S=E}catch(t){S=w;S(e)}};var T=function(e){var n=t.getTop(i.input)-d();if(i.preview){x(e);s()}y();if(b){b=false;return}var r=t.getTop(i.input)-d();if(u.isIE){setTimeout(function(){window.scrollBy(0,r-n)},0)}else{window.scrollBy(0,r-n)}};var N=function(){p(i.input,m);v();if(i.preview){i.preview.scrollTop=0}};N()}function m(t,n,i,o,a,f,l){function v(e){c.focus();if(e.textOp){if(i){i.setCommandMode()}var t=new d(n);if(!t){return}var r=t.getChunks();var s=function(){c.focus();if(r){t.setChunks(r)}t.restore();o.refresh()};var u=e.textOp(r,s);if(!u){s()}}if(e.execute){e.execute(i)}}function m(e,t){var i="0px";var s="-20px";var o="-40px";var a=e.getElementsByTagName("span")[0];if(t){a.style.backgroundPosition=e.XShift+" "+i;e.onmouseover=function(){a.style.backgroundPosition=this.XShift+" "+o};e.onmouseout=function(){a.style.backgroundPosition=this.XShift+" "+i};if(u.isIE){e.onmousedown=function(){if(r.activeElement&&r.activeElement!==n.input){return}n.ieCachedRange=document.selection.createRange();n.ieCachedScrollTop=n.input.scrollTop}}if(!e.isHelp){e.onclick=function(){if(this.onmouseout){this.onmouseout()}v(this);return false}}}else{a.style.backgroundPosition=e.XShift+" "+s;e.onmouseover=e.onmouseout=e.onclick=function(){}}}function g(e){if(typeof e==="string")e=a[e];return function(){e.apply(a,arguments)}}function y(){var e=n.buttonBar;var r="0px";var i="-20px";var o="-40px";var u=document.createElement("ul");u.id="wmd-button-row"+t;u.className="wmd-button-row";u=e.appendChild(u);var a=0;var c=function(e,n,r,i){var s=document.createElement("li");s.className="wmd-button";s.style.left=a+"px";a+=25;var o=document.createElement("span");s.id=e+t;s.appendChild(o);s.title=n;s.XShift=r;if(i)s.textOp=i;m(s,true);u.appendChild(s);return s};var p=function(e){var n=document.createElement("li");n.className="wmd-spacer wmd-spacer"+e;n.id="wmd-spacer"+e+t;u.appendChild(n);a+=25};h.bold=c("wmd-bold-button",l("bold"),"0px",g("doBold"));h.italic=c("wmd-italic-button",l("italic"),"-20px",g("doItalic"));p(1);h.link=c("wmd-link-button",l("link"),"-40px",g(function(e,t){return this.doLinkOrImage(e,t,false)}));h.quote=c("wmd-quote-button",l("quote"),"-60px",g("doBlockquote"));h.code=c("wmd-code-button",l("code"),"-80px",g("doCode"));h.image=c("wmd-image-button",l("image"),"-100px",g(function(e,t){return this.doLinkOrImage(e,t,true)}));p(2);h.olist=c("wmd-olist-button",l("olist"),"-120px",g(function(e,t){this.doList(e,t,true)}));h.ulist=c("wmd-ulist-button",l("ulist"),"-140px",g(function(e,t){this.doList(e,t,false)}));h.heading=c("wmd-heading-button",l("heading"),"-160px",g("doHeading"));h.hr=c("wmd-hr-button",l("hr"),"-180px",g("doHorizontalRule"));p(3);h.undo=c("wmd-undo-button",l("undo"),"-200px",null);h.undo.execute=function(e){if(e)e.undo()};var d=/win/.test(s.platform.toLowerCase())?l("redo"):l("redomac");h.redo=c("wmd-redo-button",d,"-220px",null);h.redo.execute=function(e){if(e)e.redo()};if(f){var v=document.createElement("li");var y=document.createElement("span");v.appendChild(y);v.className="wmd-button wmd-help-button";v.id="wmd-help-button"+t;v.XShift="-240px";v.isHelp=true;v.style.right="0px";v.title=l("help");v.onclick=f.handler;m(v,true);u.appendChild(v);h.help=v}b()}function b(){if(i){m(h.undo,i.canUndo());m(h.redo,i.canRedo())}}var c=n.input,h={};y();var p="keydown";if(u.isOpera){p="keypress"}e.addEvent(c,p,function(e){if((e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey){var t=e.charCode||e.keyCode;var n=String.fromCharCode(t).toLowerCase();switch(n){case"b":v(h.bold);break;case"i":v(h.italic);break;case"l":v(h.link);break;case"q":v(h.quote);break;case"k":v(h.code);break;case"g":v(h.image);break;case"o":v(h.olist);break;case"u":v(h.ulist);break;case"h":v(h.heading);break;case"r":v(h.hr);break;case"y":v(h.redo);break;case"z":if(e.shiftKey){v(h.redo)}else{v(h.undo)}break;default:return}if(e.preventDefault){e.preventDefault()}if(window.event){window.event.returnValue=false}}});e.addEvent(c,"keyup",function(e){if(e.shiftKey&&!e.ctrlKey&&!e.metaKey){var t=e.charCode||e.keyCode;if(t===13){var n={};n.textOp=g("doAutoindent");v(n)}}});if(u.isIE){e.addEvent(c,"keydown",function(e){var t=e.keyCode;if(t===27){return false}})}this.setUndoRedoButtonStates=b}function g(e,t){this.hooks=e;this.getString=t}function b(e){return e.replace(/^\s*(.*?)(?:\s+"(.+)")?\s*$/,function(e,t,n){t=t.replace(/\?.*$/,function(e){return e.replace(/\+/g," ")});t=decodeURIComponent(t);t=encodeURI(t).replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29");t=t.replace(/\?.*$/,function(e){return e.replace(/\+/g,"%2b")});if(n){n=n.trim?n.trim():n.replace(/^\s*/,"").replace(/\s*$/,"");n=n.replace(/"/g,"quot;").replace(/\(/g,"&#40;").replace(/\)/g,"&#41;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}return n?t+' "'+n+'"':t})}var e={},t={},n={},r=window.document,i=window.RegExp,s=window.navigator,o={lineLength:72},u={isIE:/msie/.test(s.userAgent.toLowerCase()),isIE_5or6:/msie 6/.test(s.userAgent.toLowerCase())||/msie 5/.test(s.userAgent.toLowerCase()),isOpera:/opera/.test(s.userAgent.toLowerCase())};var a={bold:"Strong <strong> Ctrl+B",boldexample:"strong text",italic:"Emphasis <em> Ctrl+I",italicexample:"emphasized text",link:"Hyperlink <a> Ctrl+L",linkdescription:"enter link description here",linkdialog:'<p><b>Insert Hyperlink</b></p><p>http://example.com/ "optional title"</p>',quote:"Blockquote <blockquote> Ctrl+Q",quoteexample:"Blockquote",code:"Code Sample <pre><code> Ctrl+K",codeexample:"enter code here",image:"Image <img> Ctrl+G",imagedescription:"enter image description here",imagedialog:'<p><b>Insert Image</b></p><p>?i=diagram.jpg "optional title"</p>',olist:"Numbered List <ol> Ctrl+O",ulist:"Bulleted List <ul> Ctrl+U",litem:"List item",heading:"Heading <h1>/<h2> Ctrl+H",headingexample:"Heading",hr:"Horizontal Rule <hr> Ctrl+R",undo:"Undo - Ctrl+Z",redo:"Redo - Ctrl+Y",redomac:"Redo - Ctrl+Shift+Z",help:"Markdown Editing Help"};var f="?i=";var l="http://";Markdown.Editor=function(e,t,n){n=n||{};if(typeof n.handler==="function"){n={helpButton:n}}n.strings=n.strings||{};if(n.helpButton){n.strings.help=n.strings.help||n.helpButton.title}var i=function(e){return n.strings[e]||a[e]};t=t||"";var s=this.hooks=new Markdown.HookCollection;s.addNoop("onPreviewRefresh");s.addNoop("postBlockquoteCreation");s.addFalse("insertImageDialog");this.getConverter=function(){return e};var o=this,u;this.run=function(){if(u)return;u=new h(t);var a=new g(s,i);var f=new v(e,u,function(){s.onPreviewRefresh()});var l,c;if(!/\?noundo/.test(r.location.href)){l=new p(function(){f.refresh();if(c)c.setUndoRedoButtonStates()},u);this.textOperation=function(e){l.setCommandMode();e();o.refreshPreview()}}c=new m(t,u,l,f,a,n.helpButton,i);c.setUndoRedoButtonStates();var d=o.refreshPreview=function(){f.refresh(true)};d()}};c.prototype.findTags=function(t,n){var r=this;var i;if(t){i=e.extendRegExp(t,"","$");this.before=this.before.replace(i,function(e){r.startTag=r.startTag+e;return""});i=e.extendRegExp(t,"^","");this.selection=this.selection.replace(i,function(e){r.startTag=r.startTag+e;return""})}if(n){i=e.extendRegExp(n,"","$");this.selection=this.selection.replace(i,function(e){r.endTag=e+r.endTag;return""});i=e.extendRegExp(n,"^","");this.after=this.after.replace(i,function(e){r.endTag=e+r.endTag;return""})}};c.prototype.trimWhitespace=function(e){var t,n,r=this;if(e){t=n=""}else{t=function(e){r.before+=e;return""};n=function(e){r.after=e+r.after;return""}}this.selection=this.selection.replace(/^(\s*)/,t).replace(/(\s*)$/,n)};c.prototype.skipLines=function(e,t,n){if(e===undefined){e=1}if(t===undefined){t=1}e++;t++;var r;var s;if(navigator.userAgent.match(/Chrome/)){"X".match(/()./)}this.selection=this.selection.replace(/(^\n*)/,"");this.startTag=this.startTag+i.$1;this.selection=this.selection.replace(/(\n*$)/,"");this.endTag=this.endTag+i.$1;this.startTag=this.startTag.replace(/(^\n*)/,"");this.before=this.before+i.$1;this.endTag=this.endTag.replace(/(\n*$)/,"");this.after=this.after+i.$1;if(this.before){r=s="";while(e--){r+="\\n?";s+="\n"}if(n){r="\\n*"}this.before=this.before.replace(new i(r+"$",""),s)}if(this.after){r=s="";while(t--){r+="\\n?";s+="\n"}if(n){r="\\n*"}this.after=this.after.replace(new i(r,""),s)}};e.isVisible=function(e){if(window.getComputedStyle){return window.getComputedStyle(e,null).getPropertyValue("display")!=="none"}else if(e.currentStyle){return e.currentStyle["display"]!=="none"}};e.addEvent=function(e,t,n){if(e.attachEvent){e.attachEvent("on"+t,n)}else{e.addEventListener(t,n,false)}};e.removeEvent=function(e,t,n){if(e.detachEvent){e.detachEvent("on"+t,n)}else{e.removeEventListener(t,n,false)}};e.fixEolChars=function(e){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n");return e};e.extendRegExp=function(e,t,n){if(t===null||t===undefined){t=""}if(n===null||n===undefined){n=""}var r=e.toString();var s;r=r.replace(/\/([gim]*)$/,function(e,t){s=t;return""});r=r.replace(/(^\/|\/$)/g,"");r=t+r+n;return new i(r,s)};t.getTop=function(e,t){var n=e.offsetTop;if(!t){while(e=e.offsetParent){n+=e.offsetTop}}return n};t.getHeight=function(e){return e.offsetHeight||e.scrollHeight};t.getWidth=function(e){return e.offsetWidth||e.scrollWidth};t.getPageSize=function(){var e,t;var n,i;if(self.innerHeight&&self.scrollMaxY){e=r.body.scrollWidth;t=self.innerHeight+self.scrollMaxY}else if(r.body.scrollHeight>r.body.offsetHeight){e=r.body.scrollWidth;t=r.body.scrollHeight}else{e=r.body.offsetWidth;t=r.body.offsetHeight}if(self.innerHeight){n=self.innerWidth;i=self.innerHeight}else if(r.documentElement&&r.documentElement.clientHeight){n=r.documentElement.clientWidth;i=r.documentElement.clientHeight}else if(r.body){n=r.body.clientWidth;i=r.body.clientHeight}var s=Math.max(e,n);var o=Math.max(t,i);return[s,o,n,i]};n.createBackground=function(){var e=r.createElement("div"),n=e.style;e.className="wmd-prompt-background";n.position="absolute";n.top="0";n.zIndex="1000";if(u.isIE){n.filter="alpha(opacity=50)"}else{n.opacity="0.5"}var i=t.getPageSize();n.height=i[1]+"px";if(u.isIE){n.left=r.documentElement.scrollLeft;n.width=r.documentElement.clientWidth}else{n.left="0";n.width="100%"}r.body.appendChild(e);return e};n.prompt=function(n,i,s){var o;var a;if(i===undefined){i=""}var f=function(e){var t=e.charCode||e.keyCode;if(t===27){l(true)}};var l=function(t){e.removeEvent(r.body,"keydown",f);var n=a.value;if(t){n=null}o.parentNode.removeChild(o);s(n);return false};var c=function(){o=r.createElement("div");o.className="wmd-prompt-dialog";o.style.padding="10px;";o.style.position="fixed";o.style.width="400px";o.style.zIndex="1001";var s=r.createElement("div");s.innerHTML=n;s.style.padding="5px";o.appendChild(s);var c=r.createElement("form"),h=c.style;c.onsubmit=function(){return l(false)};h.padding="0";h.margin="0";h.cssFloat="left";h.width="100%";h.textAlign="center";h.position="relative";o.appendChild(c);a=r.createElement("input");a.type="text";a.value=i;h=a.style;h.display="block";h.width="80%";h.marginLeft=h.marginRight="auto";c.appendChild(a);var p=r.createElement("input");p.type="button";p.onclick=function(){return l(false)};p.value="OK";h=p.style;h.margin="10px";h.display="inline";h.width="7em";var d=r.createElement("input");d.type="button";d.onclick=function(){return l(true)};d.value="Cancel";h=d.style;h.margin="10px";h.display="inline";h.width="7em";c.appendChild(p);c.appendChild(d);e.addEvent(r.body,"keydown",f);o.style.top="50%";o.style.left="50%";o.style.display="block";if(u.isIE_5or6){o.style.position="absolute";o.style.top=r.documentElement.scrollTop+200+"px";o.style.left="50%"}r.body.appendChild(o);o.style.marginTop=-(t.getHeight(o)/2)+"px";o.style.marginLeft=-(t.getWidth(o)/2)+"px"};setTimeout(function(){c();var e=i.length;if(a.selectionStart!==undefined){a.selectionStart=0;a.selectionEnd=e}else if(a.createTextRange){var t=a.createTextRange();t.collapse(false);t.moveStart("character",-e);t.moveEnd("character",e);t.select()}a.focus()},0)};var y=g.prototype;y.prefixes="(?:\\s{4,}|\\s*>|\\s*-\\s+|\\s*\\d+\\.|=|\\+|-|_|\\*|#|\\s*\\[[^\n]]+\\]:)";y.unwrap=function(e){var t=new i("([^\\n])\\n(?!(\\n|"+this.prefixes+"))","g");e.selection=e.selection.replace(t,"$1 $2")};y.wrap=function(e,t){this.unwrap(e);var n=new i("(.{1,"+t+"})( +|$\\n?)","gm"),r=this;e.selection=e.selection.replace(n,function(e,t){if((new i("^"+r.prefixes,"")).test(e)){return e}return t+"\n"});e.selection=e.selection.replace(/\s+$/,"")};y.doBold=function(e,t){return this.doBorI(e,t,2,this.getString("boldexample"))};y.doItalic=function(e,t){return this.doBorI(e,t,1,this.getString("italicexample"))};y.doBorI=function(e,t,n,r){e.trimWhitespace();e.selection=e.selection.replace(/\n{2,}/g,"\n");var s=/(\**$)/.exec(e.before)[0];var o=/(^\**)/.exec(e.after)[0];var u=Math.min(s.length,o.length);if(u>=n&&(u!=2||n!=1)){e.before=e.before.replace(i("[*]{"+n+"}$",""),"");e.after=e.after.replace(i("^[*]{"+n+"}",""),"")}else if(!e.selection&&o){e.after=e.after.replace(/^([*_]*)/,"");e.before=e.before.replace(/(\s?)$/,"");var a=i.$1;e.before=e.before+o+a}else{if(!e.selection&&!o){e.selection=r}var f=n<=1?"*":"**";e.before=e.before+f;e.after=f+e.after}return};y.stripLinkDefs=function(e,t){e=e.replace(/^[ ]{0,3}\[(\d+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|$)/gm,function(e,n,r,i,s){t[n]=e.replace(/\s*$/,"");if(i){t[n]=e.replace(/["(](.+?)[")]$/,"");return i+s}return""});return e};y.addLinkDef=function(e,t){var n=0;var r={};e.before=this.stripLinkDefs(e.before,r);e.selection=this.stripLinkDefs(e.selection,r);e.after=this.stripLinkDefs(e.after,r);var i="";var s=/(\[)((?:\[[^\]]*\]|[^\[\]])*)(\][ ]?(?:\n[ ]*)?\[)(\d+)(\])/g;var o=function(e){n++;e=e.replace(/^[ ]{0,3}\[(\d+)\]:/," ["+n+"]:");i+="\n"+e};var u=function(e,t,i,a,f,l){i=i.replace(s,u);if(r[f]){o(r[f]);return t+i+a+n+l}return e};e.before=e.before.replace(s,u);if(t){o(t)}else{e.selection=e.selection.replace(s,u)}var a=n;e.after=e.after.replace(s,u);if(e.after){e.after=e.after.replace(/\n*$/,"")}if(!e.after){e.selection=e.selection.replace(/\n*$/,"")}e.after+="\n\n"+i;return a};y.doLinkOrImage=function(e,t,r){e.trimWhitespace();e.findTags(/\s*!?\[/,/\][ ]?(?:\n[ ]*)?(\[.*?\])?/);var i;if(e.endTag.length>1&&e.startTag.length>0){e.startTag=e.startTag.replace(/!?\[/,"");e.endTag="";this.addLinkDef(e,null)}else{e.selection=e.startTag+e.selection+e.endTag;e.startTag=e.endTag="";if(/\n\n/.test(e.selection)){this.addLinkDef(e,null);return}var s=this;var o=function(n){i.parentNode.removeChild(i);if(n!==null){e.selection=(" "+e.selection).replace(/([^\\](?:\\\\)*)(?=[[\]])/g,"$1\\").substr(1);var o=" [999]: "+b(n);var u=s.addLinkDef(e,o);e.startTag=r?"![":"[";e.endTag="]["+u+"]";if(!e.selection){if(r){e.selection=s.getString("imagedescription")}else{e.selection=s.getString("linkdescription")}}}t()};i=n.createBackground();if(r){if(!this.hooks.insertImageDialog(o))n.prompt(this.getString("imagedialog"),f,o)}else{n.prompt(this.getString("linkdialog"),l,o)}return true}};y.doAutoindent=function(e,t){var n=this,r=false;e.before=e.before.replace(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]*\n$/,"\n\n");e.before=e.before.replace(/(\n|^)[ ]{0,3}>[ \t]*\n$/,"\n\n");e.before=e.before.replace(/(\n|^)[ \t]+\n$/,"\n\n");if(!e.selection&&!/^[ \t]*(?:\n|$)/.test(e.after)){e.after=e.after.replace(/^[^\n]*/,function(t){e.selection=t;return""});r=true}if(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]+.*\n$/.test(e.before)){if(n.doList){n.doList(e)}}if(/(\n|^)[ ]{0,3}>[ \t]+.*\n$/.test(e.before)){if(n.doBlockquote){n.doBlockquote(e)}}if(/(\n|^)(\t|[ ]{4,}).*\n$/.test(e.before)){if(n.doCode){n.doCode(e)}}if(r){e.after=e.selection+e.after;e.selection=""}};y.doBlockquote=function(e,t){e.selection=e.selection.replace(/^(\n*)([^\r]+?)(\n*)$/,function(t,n,r,i){e.before+=n;e.after=i+e.after;return r});e.before=e.before.replace(/(>[ \t]*)$/,function(t,n){e.selection=n+e.selection;return""});e.selection=e.selection.replace(/^(\s|>)+$/,"");e.selection=e.selection||this.getString("quoteexample");var n="",r="",i;if(e.before){var s=e.before.replace(/\n$/,"").split("\n");var u=false;for(var a=0;a<s.length;a++){var f=false;i=s[a];u=u&&i.length>0;if(/^>/.test(i)){f=true;if(!u&&i.length>1)u=true}else if(/^[ \t]*$/.test(i)){f=true}else{f=u}if(f){n+=i+"\n"}else{r+=n+i;n="\n"}}if(!/(^|\n)>/.test(n)){r+=n;n=""}}e.startTag=n;e.before=r;if(e.after){e.after=e.after.replace(/^\n?/,"\n")}e.after=e.after.replace(/^(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*)/,function(t){e.endTag=t;return""});var l=function(t){var n=t?"> ":"";if(e.startTag){e.startTag=e.startTag.replace(/\n((>|\s)*)\n$/,function(e,t){return"\n"+t.replace(/^[ ]{0,3}>?[ \t]*$/gm,n)+"\n"})}if(e.endTag){e.endTag=e.endTag.replace(/^\n((>|\s)*)\n/,function(e,t){return"\n"+t.replace(/^[ ]{0,3}>?[ \t]*$/gm,n)+"\n"})}};if(/^(?![ ]{0,3}>)/m.test(e.selection)){this.wrap(e,o.lineLength-2);e.selection=e.selection.replace(/^/gm,"> ");l(true);e.skipLines()}else{e.selection=e.selection.replace(/^[ ]{0,3}> ?/gm,"");this.unwrap(e);l(false);if(!/^(\n|^)[ ]{0,3}>/.test(e.selection)&&e.startTag){e.startTag=e.startTag.replace(/\n{0,2}$/,"\n\n")}if(!/(\n|^)[ ]{0,3}>.*$/.test(e.selection)&&e.endTag){e.endTag=e.endTag.replace(/^\n{0,2}/,"\n\n")}}e.selection=this.hooks.postBlockquoteCreation(e.selection);if(!/\n/.test(e.selection)){e.selection=e.selection.replace(/^(> *)/,function(t,n){e.startTag+=n;return""})}};y.doCode=function(e,t){var n=/\S[ ]*$/.test(e.before);var r=/^[ ]*\S/.test(e.after);if(!r&&!n||/\n/.test(e.selection)){e.before=e.before.replace(/[ ]{4}$/,function(t){e.selection=t+e.selection;return""});var i=1;var s=1;if(/(\n|^)(\t|[ ]{4,}).*\n$/.test(e.before)){i=0}if(/^\n(\t|[ ]{4,})/.test(e.after)){s=0}e.skipLines(i,s);if(!e.selection){e.startTag=" ";e.selection=this.getString("codeexample")}else{if(/^[ ]{0,3}\S/m.test(e.selection)){if(/\n/.test(e.selection))e.selection=e.selection.replace(/^/gm," ");else e.before+=" "}else{e.selection=e.selection.replace(/^(?:[ ]{4}|[ ]{0,3}\t)/gm,"")}}}else{e.trimWhitespace();e.findTags(/`/,/`/);if(!e.startTag&&!e.endTag){e.startTag=e.endTag="`";if(!e.selection){e.selection=this.getString("codeexample")}}else if(e.endTag&&!e.startTag){e.before+=e.endTag;e.endTag=""}else{e.startTag=e.endTag=""}}};y.doList=function(e,t,n){var r=/(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/;var s=/^\n*(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*/;var u="-";var a=1;var f=function(){var e;if(n){e=" "+a+". ";a++}else{e=" "+u+" "}return e};var l=function(e){if(n===undefined){n=/^\s*\d/.test(e)}e=e.replace(/^[ ]{0,3}([*+-]|\d+[.])\s/gm,function(e){return f()});return e};e.findTags(/(\n|^)*[ ]{0,3}([*+-]|\d+[.])\s+/,null);if(e.before&&!/\n$/.test(e.before)&&!/^\n/.test(e.startTag)){e.before+=e.startTag;e.startTag=""}if(e.startTag){var c=/\d+[.]/.test(e.startTag);e.startTag="";e.selection=e.selection.replace(/\n[ ]{4}/g,"\n");this.unwrap(e);e.skipLines();if(c){e.after=e.after.replace(s,l)}if(n==c){return}}var h=1;e.before=e.before.replace(r,function(e){if(/^\s*([*+-])/.test(e)){u=i.$1}h=/[^\n]\n\n[^\n]/.test(e)?1:0;return l(e)});if(!e.selection){e.selection=this.getString("litem")}var p=f();var d=1;e.after=e.after.replace(s,function(e){d=/[^\n]\n\n[^\n]/.test(e)?1:0;return l(e)});e.trimWhitespace(true);e.skipLines(h,d,true);e.startTag=p;var v=p.replace(/./g," ");this.wrap(e,o.lineLength-v.length);e.selection=e.selection.replace(/\n/g,"\n"+v)};y.doHeading=function(e,t){e.selection=e.selection.replace(/\s+/g," ");e.selection=e.selection.replace(/(^\s+|\s+$)/g,"");if(!e.selection){e.startTag="## ";e.selection=this.getString("headingexample");e.endTag=" ##";return}var n=0;e.findTags(/#+[ ]*/,/[ ]*#+/);if(/#+/.test(e.startTag)){n=i.lastMatch.length}e.startTag=e.endTag="";e.findTags(null,/\s?(-+|=+)/);if(/=+/.test(e.endTag)){n=1}if(/-+/.test(e.endTag)){n=2}e.startTag=e.endTag="";e.skipLines(1,1);var r=n==0?2:n-1;if(r>0){var s=r>=2?"-":"=";var u=e.selection.length;if(u>o.lineLength){u=o.lineLength}e.endTag="\n";while(u--){e.endTag+=s}}};y.doHorizontalRule=function(e,t){e.startTag="----------\n";e.selection="";e.skipLines(2,1,true)}})()
const fs = require('fs'); const path = require('path'); // 基地址 const basePath = path.join(__dirname, '../db'); // 读取数据 module.exports = { getArticle() { try { return JSON.parse(fs.readFileSync(path.join(basePath, 'article.json'), 'utf-8')); } catch (err) { const article = [ { id: 1, title: '西兰花好好吃', content: '多次西兰花有益身心健康', cover: 'https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=2189299806,3304117673&fm=179&app=42&f=JPEG?w=121&h=140', type: '1', read: '10', comment: '10', date: '2019-5-22' }, { id: 2, title: '花菜也不错哦', content: '他是西兰花的兄弟肯定好吃啦', cover: 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=2946378002,1623249294&fm=58&bpow=700&bpoh=528', type: '2', read: '11', comment: '16', date: '2019-5-22' } ]; fs.writeFileSync(path.join(basePath, 'article.json'), JSON.stringify(article)); return article; } }, getUser() { try { return JSON.parse(fs.readFileSync(path.join(basePath, 'user.json'), 'utf-8')); } catch (err) { const user = { username: 'admin', nickname: '小小黑', email: 'littleBlack@itcast.cn', user_pic: '/static/icon.gif', password: '123456' }; fs.writeFileSync(path.join('user.json'), JSON.stringify(user)); return user; } }, // 添加文章 addArticle({ title, content, cover, type, date, state = '草稿' }) { const article = this.getArticle(); article.push({ id: article.length, title, content, cover, type, read: 0, comment: 0, date, author: '管理员', state: state, isDelete: false }); try { fs.writeFileSync(path.join(basePath, 'article.json'), JSON.stringify(article)); return true; } catch (error) { return false; } }, // 修改文章 editArticle({ id, title, content, cover, type, isDelete, date }) { let article = this.getArticle(); let editOne = article.filter(v => { return v.id == id; })[0]; if (!editOne) { return false; } if (title) { editOne.title = title; } if (content) { editOne.content = content; } if (type) { editOne.type = type; } if (date) { editOne.date = date; } if (cover) { // 获取图片名 const fileArr = editOne.cover.split('/'); // 删除之前的图片 fs.unlinkSync(path.join(__dirname, '../uploads/articles', fileArr[fileArr.length - 1])); editOne.cover = cover; } if (isDelete) { editOne.isDelete = isDelete; } // log(editOne); // 保存 try { fs.writeFileSync(path.join(basePath, 'article.json'), JSON.stringify(article)); return true; } catch (error) { return false; } }, // 获取评论 getCategory() { try { let category = JSON.parse(fs.readFileSync(path.join(basePath, 'category.json'), 'utf-8')); return category; // return category.filter(v=>{ // return !v.isDelete // }) } catch (error) { let data = [ { id: 1, name: '科技', slug: 'keji', isDelete: false }, { id: 2, name: '财经', slug: 'money', isDelete: false } ]; fs.writeFileSync(path.join(basePath, 'category.json'), JSON.stringify(data)); return data; } }, addCategory({ name, slug }) { let categorys = this.getCategory(); categorys.push({ id: categorys.length + 1, name, slug, isDelete: false }); try { fs.writeFileSync(path.join(basePath, 'category.json'), JSON.stringify(categorys)); return true; } catch (error) { return false; } }, editCategory({ id, name, slug, isDelete }) { let categorys = this.getCategory(); if (name) { categorys[id - 1].name = name; } if (slug) { categorys[id - 1].slug = slug; } if (isDelete) { categorys[id - 1].isDelete = isDelete; } try { fs.writeFileSync(path.join(basePath, 'category.json'), JSON.stringify(categorys)); return true; } catch (error) { return false; } }, // 添加新评论 addComments({ article_id, name, content }) { let comments = this.getComments({}); let id = comments.length ? comments[comments.length - 1].id + 1 : 1; comments.push({ id, article_id, name, content, state: '待审核', dt: Date.now(),isDelete: false }); try { fs.writeFileSync(path.join(basePath, 'comments.json'), JSON.stringify(comments)); return true; } catch (error) { return false; } }, // 获取评论数据 getComments({ article_id = -1, state = 'all' } = {}) { try { var comments = JSON.parse(fs.readFileSync(path.join(basePath, 'comments.json'))); if (state != 'all') { comments = comments.filter(item => item.state === state); } if (article_id > 0) { return comments.filter(item => item.article_id === article_id); } return comments; } catch (error) { // const comments = []; // fs.writeFileSync(path.join(basePath, 'comments.json'), JSON.stringify([])); return []; } }, // 通过评论 passComments(id, isPass) { let comments = this.getComments(); let c = comments.find(item => item.id === id); if (!c) { return false; } c.state = isPass ? '批准' : '不通过'; try { fs.writeFileSync(path.join(basePath, 'comments.json'), JSON.stringify(comments)); return true; } catch (error) { return false; } }, // 删除评论 deleteComments(id) { let comments = this.getComments(); let idx = comments.findIndex(item => item.id === id); if (idx == -1) { return false; } comments.splice(idx, 1); try { fs.writeFileSync(path.join(basePath, 'comments.json'), JSON.stringify(comments)); return true; } catch (error) { return false; } }, // 保存用户 editUser(user) { try { fs.writeFileSync(path.join(basePath, 'user.json'), JSON.stringify(user)); return true; } catch (error) { return false; } } };
var path = require('path'), bodyParser = require('body-parser'), helmet = require('helmet'), express = require('express'), doteEnv = require('dotenv').config(); console.log('Welcome to '+ process.env.appName); // Create global app object const app = express(); // Set various HTTP headers to help protect your app. app.use(helmet()); // set the view engine to ejs app.set('view engine', 'ejs'); // Serve images, CSS files, HTML and JavaScript files in a directory named public. app.use('/static', express.static(path.join(__dirname, '../public'))); // parse application/json app.use(bodyParser.json()); app.get('/', function (req, res) { res.redirect('/static/index.html'); }); /* @exports */ module.exports = app;
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function(){function t(b){return CKEDITOR.env.ie?b.$.clientWidth:parseInt(b.getComputedStyle("width"),10)}function n(b,i){var a=b.getComputedStyle("border-"+i+"-width"),g={thin:"0px",medium:"1px",thick:"2px"};0>a.indexOf("px")&&(a=a in g&&"none"!=b.getComputedStyle("border-style")?g[a]:0);return parseInt(a,10)}function v(b){var i=[],a=-1,g="rtl"==b.getComputedStyle("direction"),c;c=b.$.rows;for(var p=0,e,f,d,h=0,o=c.length;h<o;h++)d=c[h],e=d.cells.length,e>p&&(p=e,f=d);c=f;p=new CKEDITOR.dom.element(b.$.tBodies[0]); e=p.getDocumentPosition();f=0;for(d=c.cells.length;f<d;f++){var h=new CKEDITOR.dom.element(c.cells[f]),o=c.cells[f+1]&&new CKEDITOR.dom.element(c.cells[f+1]),a=a+(h.$.colSpan||1),k,j,l=h.getDocumentPosition().x;g?j=l+n(h,"left"):k=l+h.$.offsetWidth-n(h,"right");o?(l=o.getDocumentPosition().x,g?k=l+o.$.offsetWidth-n(o,"right"):j=l+n(o,"left")):(l=b.getDocumentPosition().x,g?k=l:j=l+b.$.offsetWidth);h=Math.max(j-k,3);i.push({table:b,index:a,x:k,y:e.y,width:h,height:p.$.offsetHeight,rtl:g})}return i} function u(b){(b.data||b).preventDefault()}function z(b){function i(){h=0;d.setOpacity(0);k&&a();var A=e.table;setTimeout(function(){A.removeCustomData("_cke_table_pillars")},0);f.removeListener("dragstart",u)}function a(){for(var a=e.rtl,b=a?l.length:w.length,d=0;d<b;d++){var c=w[d],f=l[d],g=e.table;CKEDITOR.tools.setTimeout(function(b,d,c,e,f,h){b&&b.setStyle("width",j(Math.max(d+h,0)));c&&c.setStyle("width",j(Math.max(e-h,0)));f&&g.setStyle("width",j(f+h*(a?-1:1)))},0,this,[c,c&&t(c),f,f&&t(f), (!c||!f)&&t(g)+n(g,"left")+n(g,"right"),k])}}function g(a){u(a);for(var a=e.index,b=CKEDITOR.tools.buildTableMap(e.table),g=[],i=[],j=Number.MAX_VALUE,n=j,s=e.rtl,r=0,v=b.length;r<v;r++){var m=b[r],q=m[a+(s?1:0)],m=m[a+(s?0:1)],q=q&&new CKEDITOR.dom.element(q),m=m&&new CKEDITOR.dom.element(m);if(!q||!m||!q.equals(m))q&&(j=Math.min(j,t(q))),m&&(n=Math.min(n,t(m))),g.push(q),i.push(m)}w=g;l=i;x=e.x-j;y=e.x+n;d.setOpacity(0.5);o=parseInt(d.getStyle("left"),10);k=0;h=1;d.on("mousemove",p);f.on("dragstart", u);f.on("mouseup",c,this)}function c(a){a.removeListener();i()}function p(a){r(a.data.getPageOffset().x)}var e,f,d,h,o,k,w,l,x,y;f=b.document;d=CKEDITOR.dom.element.createFromHtml('<div data-cke-temp=1 contenteditable=false unselectable=on style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>',f);s||f.getDocumentElement().append(d);this.attachTo=function(a){h||(s&&(f.getBody().append(d), k=0),e=a,d.setStyles({width:j(a.width),height:j(a.height),left:j(a.x),top:j(a.y)}),s&&d.setOpacity(0.25),d.on("mousedown",g,this),f.getBody().setStyle("cursor","col-resize"),d.show())};var r=this.move=function(a){if(!e)return 0;if(!h&&(a<e.x||a>e.x+e.width))return e=null,h=k=0,f.removeListener("mouseup",c),d.removeListener("mousedown",g),d.removeListener("mousemove",p),f.getBody().setStyle("cursor","auto"),s?d.remove():d.hide(),0;a-=Math.round(d.$.offsetWidth/2);if(h){if(a==x||a==y)return 1;a=Math.max(a, x);a=Math.min(a,y);k=a-o}d.setStyle("left",j(a));return 1}}function r(b){var i=b.data.getTarget();if("mouseout"==b.name){if(!i.is("table"))return;for(var a=new CKEDITOR.dom.element(b.data.$.relatedTarget||b.data.$.toElement);a&&a.$&&!a.equals(i)&&!a.is("body");)a=a.getParent();if(!a||a.equals(i))return}i.getAscendant("table",1).removeCustomData("_cke_table_pillars");b.removeListener()}var j=CKEDITOR.tools.cssLength,s=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize", {requires:"tabletools",init:function(b){b.on("contentDom",function(){var i;b.document.getBody().on("mousemove",function(a){var a=a.data,g=a.getPageOffset().x;if(i&&i.move(g))u(a);else{var a=a.getTarget(),c;if(a.is("table")||a.getAscendant("tbody",1)){c=a.getAscendant("table",1);if(!(a=c.getCustomData("_cke_table_pillars")))c.setCustomData("_cke_table_pillars",a=v(c)),c.on("mouseout",r),c.on("mousedown",r);a:{c=0;for(var j=a.length;c<j;c++){var e=a[c];if(g>=e.x&&g<=e.x+e.width){g=e;break a}}g=null}g&& (!i&&(i=new z(b)),i.attachTo(g))}}})})}})})();
const path = require("path"); const merge = require("webpack-merge"); const dev = require("./webpack/config/dev"); const prod = require("./webpack/config/prod"); const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); const destDir = path.join(__dirname, "./umd"); const contextPath = path.join(__dirname, "./src"); module.exports = [ merge(prod({ destDir, contextPath }), { output: { filename: "stringoffset.js" }, optimization: { minimizer: [ new UglifyJsPlugin({ uglifyOptions: { compress: false, mangle: false, minimize: false, output: { beautify: true, comments: false } } }) ] } }), merge(prod({ destDir, contextPath }), { output: { filename: "stringoffsets.min.js" } }) ];
/** * Kendo UI v2019.2.514 (http://www.telerik.com/kendo-ui) * Copyright 2019 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial license terms. */ !function(e){"function"==typeof define&&define.amd?define(["kendo.core.min"],e):e()}(function(){!function(e,m){kendo.cultures["fr-MQ"]={name:"fr-MQ",numberFormat:{pattern:["-n"],decimals:2,",":" ",".":",",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"%"},currency:{name:"Euro",abbr:"EUR",pattern:["-n $","n $"],decimals:2,",":" ",".":",",groupSize:[3],symbol:"€"}},calendars:{standard:{days:{names:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],namesAbbr:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],namesShort:["di","lu","ma","me","je","ve","sa"]},months:{names:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],namesAbbr:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"dd/MM/yyyy",D:"dddd d MMMM yyyy",F:"dddd d MMMM yyyy HH:mm:ss",g:"dd/MM/yyyy HH:mm",G:"dd/MM/yyyy HH:mm:ss",m:"d MMMM",M:"d MMMM",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"HH:mm",T:"HH:mm:ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM yyyy",Y:"MMMM yyyy"},"/":"/",":":":",firstDay:1}}}}(this)}); //# sourceMappingURL=kendo.culture.fr-MQ.min.js.map
load("1d8ada728956c1a3d52d68d1d4d6dd52.js"); // Copyright 2008 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following // disclaimer in the documentation and/or other materials provided // with the distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // Tests for non-standard array iteration functions. // // See // // <http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array> // // for an explanation of each of the functions. // // Array.prototype.filter // (function() { // Simple use. var a = [0,1]; assertArrayEquals([0], a.filter(function(n) { return n == 0; })); assertArrayEquals([0,1], a); // Use specified object as this object when calling the function. var o = { value: 42 } a = [1,42,3,42,4]; assertArrayEquals([42,42], a.filter(function(n) { return this.value == n }, o)) // Modify original array. a = [1,42,3,42,4]; assertArrayEquals([42,42], a.filter(function(n, index, array) { array[index] = 43; return 42 == n; })); assertArrayEquals([43,43,43,43,43], a); // Only loop through initial part of array eventhough elements are // added. a = [1,1]; assertArrayEquals([], a.filter(function(n, index, array) { array.push(n+1); return n == 2; })); assertArrayEquals([1,1,2,2], a); // Respect holes. a = new Array(20); var count = 0; a[2] = 2; a[15] = 2; a[17] = 4; var a = a.filter(function(n) { count++; return n == 2; }); assertEquals(3, count); for (var i in a) assertEquals(2, a[i]); // Create a new object in each function call when receiver is a // primitive value. See ECMA-262, Annex C. a = []; [1, 2].filter(function() { a.push(this) }, ""); assertTrue(a[0] !== a[1]); // Do not create a new object otherwise. a = []; [1, 2].filter(function() { a.push(this) }, {}); assertEquals(a[0], a[1]); // In strict mode primitive values should not be coerced to an object. a = []; [1, 2].filter(function() { 'use strict'; a.push(this); }, ""); assertEquals("", a[0]); assertEquals(a[0], a[1]); })(); // // Array.prototype.forEach // (function() { // Simple use. var a = [0,1]; var count = 0; a.forEach(function(n) { count++; }); assertEquals(2, count); // Use specified object as this object when calling the function. var o = { value: 42 } var result = []; a.forEach(function(n) { result.push(this.value); }, o); assertArrayEquals([42,42], result); // Modify original array. a = [0,1]; count = 0; a.forEach(function(n, index, array) { array[index] = n + 1; count++; }); assertEquals(2, count); assertArrayEquals([1,2], a); // Only loop through initial part of array eventhough elements are // added. a = [1,1]; count = 0; a.forEach(function(n, index, array) { array.push(n+1); count++; }); assertEquals(2, count); assertArrayEquals([1,1,2,2], a); // Respect holes. a = new Array(20); count = 0; a[15] = 2; a.forEach(function(n) { count++; }); assertEquals(1, count); // Create a new object in each function call when receiver is a // primitive value. See ECMA-262, Annex C. a = []; [1, 2].forEach(function() { a.push(this) }, ""); assertTrue(a[0] !== a[1]); // Do not create a new object otherwise. a = []; [1, 2].forEach(function() { a.push(this) }, {}); assertEquals(a[0], a[1]); // In strict mode primitive values should not be coerced to an object. a = []; [1, 2].forEach(function() { 'use strict'; a.push(this); }, ""); assertEquals("", a[0]); assertEquals(a[0], a[1]); })(); // // Array.prototype.every // (function() { // Simple use. var a = [0,1]; assertFalse(a.every(function(n) { return n == 0 })); a = [0,0]; assertTrue(a.every(function(n) { return n == 0 })); assertTrue([].every(function(n) { return n == 0})); // Use specified object as this object when calling the function. var o = { value: 42 } a = [0]; assertFalse(a.every(function(n) { return this.value == n; }, o)); a = [42]; assertTrue(a.every(function(n) { return this.value == n; }, o)); // Modify original array. a = [0,1]; assertFalse( a.every(function(n, index, array) { array[index] = n + 1; return n == 1; })); assertArrayEquals([1,1], a); // Only loop through initial part of array eventhough elements are // added. a = [1,1]; assertTrue( a.every(function(n, index, array) { array.push(n + 1); return n == 1; })); assertArrayEquals([1,1,2,2], a); // Respect holes. a = new Array(20); var count = 0; a[2] = 2; a[15] = 2; assertTrue(a.every(function(n) { count++; return n == 2; })); assertEquals(2, count); // Create a new object in each function call when receiver is a // primitive value. See ECMA-262, Annex C. a = []; [1, 2].every(function() { a.push(this); return true; }, ""); assertTrue(a[0] !== a[1]); // Do not create a new object otherwise. a = []; [1, 2].every(function() { a.push(this); return true; }, {}); assertEquals(a[0], a[1]); // In strict mode primitive values should not be coerced to an object. a = []; [1, 2].every(function() { 'use strict'; a.push(this); return true; }, ""); assertEquals("", a[0]); assertEquals(a[0], a[1]); })(); // // Array.prototype.map // (function() { var a = [0,1,2,3,4]; // Simple use. var result = [1,2,3,4,5]; assertArrayEquals(result, a.map(function(n) { return n + 1; })); assertEquals(a, a); // Use specified object as this object when calling the function. var o = { delta: 42 } result = [42,43,44,45,46]; assertArrayEquals(result, a.map(function(n) { return this.delta + n; }, o)); // Modify original array. a = [0,1,2,3,4]; result = [1,2,3,4,5]; assertArrayEquals(result, a.map(function(n, index, array) { array[index] = n + 1; return n + 1; })); assertArrayEquals(result, a); // Only loop through initial part of array eventhough elements are // added. a = [0,1,2,3,4]; result = [1,2,3,4,5]; assertArrayEquals(result, a.map(function(n, index, array) { array.push(n); return n + 1; })); assertArrayEquals([0,1,2,3,4,0,1,2,3,4], a); // Respect holes. a = new Array(20); a[15] = 2; a = a.map(function(n) { return 2*n; }); for (var i in a) assertEquals(4, a[i]); // Create a new object in each function call when receiver is a // primitive value. See ECMA-262, Annex C. a = []; [1, 2].map(function() { a.push(this) }, ""); assertTrue(a[0] !== a[1]); // Do not create a new object otherwise. a = []; [1, 2].map(function() { a.push(this) }, {}); assertEquals(a[0], a[1]); // In strict mode primitive values should not be coerced to an object. a = []; [1, 2].map(function() { 'use strict'; a.push(this); }, ""); assertEquals("", a[0]); assertEquals(a[0], a[1]); })(); // // Array.prototype.some // (function() { var a = [0,1,2,3,4]; // Simple use. assertTrue(a.some(function(n) { return n == 3})); assertFalse(a.some(function(n) { return n == 5})); // Use specified object as this object when calling the function. var o = { element: 42 }; a = [1,42,3]; assertTrue(a.some(function(n) { return this.element == n; }, o)); a = [1]; assertFalse(a.some(function(n) { return this.element == n; }, o)); // Modify original array. a = [0,1,2,3]; assertTrue( a.some(function(n, index, array) { array[index] = n + 1; return n == 2; })); assertArrayEquals([1,2,3,3], a); // Only loop through initial part when elements are added. a = [0,1,2]; assertFalse( a.some(function(n, index, array) { array.push(42); return n == 42; })); assertArrayEquals([0,1,2,42,42,42], a); // Respect holes. a = new Array(20); var count = 0; a[2] = 42; a[10] = 2; a[15] = 42; assertTrue(a.some(function(n) { count++; return n == 2; })); assertEquals(2, count); // Create a new object in each function call when receiver is a // primitive value. See ECMA-262, Annex C. a = []; [1, 2].some(function() { a.push(this) }, ""); assertTrue(a[0] !== a[1]); // Do not create a new object otherwise. a = []; [1, 2].some(function() { a.push(this) }, {}); assertEquals(a[0], a[1]); // In strict mode primitive values should not be coerced to an object. a = []; [1, 2].some(function() { 'use strict'; a.push(this); }, ""); assertEquals("", a[0]); assertEquals(a[0], a[1]); })();
/* * colorbar plugin (March 8, 2016) */ /*global $, JS9, Uint8Array */ "use strict"; // create our namespace, and specify some meta-information and params JS9.Colorbar = {}; JS9.Colorbar.CLASS = "JS9"; // class of plugins (1st part of div class) JS9.Colorbar.NAME = "Colorbar"; // name of this plugin (2nd part of div class) JS9.Colorbar.WIDTH = 512; // width of light window JS9.Colorbar.HEIGHT = 40; // height of light window JS9.Colorbar.BASE = JS9.Colorbar.CLASS + JS9.Colorbar.NAME; // if TRUE, use psColors, otherwise use unscaled colorCells JS9.Colorbar.SCALED = false; // number of ticks in the colorbar JS9.Colorbar.TICKS = 10; // height of colorbar inside plugin JS9.Colorbar.COLORBARHEIGHT = 16; // JS9.Colorbar.COLORBARFONT = "11pt Arial"; // max label length before we start skipping some labels JS9.Colorbar.MAXLABELSIZE = 10; JS9.Colorbar.STATICSIZE = 4; JS9.Colorbar.STATICPADDING = 3; // how much to add for Infinity JS9.Colorbar.INFINITY = 10; // redraw colorbar on display JS9.Colorbar.display = function(im){ let i, j, prec, idx, idx0, colorBuf, tval, ix, iy, lastix, done; let dmin, dmax, dval, color, label, dolabel; const tlabels = []; const canvasWidth = this.colorbarWidth; const canvasHeight = this.colorbarHeight; const colorImg = this.ctx.getImageData(0, 0, canvasWidth, canvasHeight); const colorData = colorImg.data; const colorWidth = canvasWidth * 4; const colorBuf0 = new Uint8Array(colorData.buffer, 0, colorWidth); const drawLabel = (ix, iy, label, dolabel) => { this.textctx.textAlign = "center"; this.textctx.beginPath(); this.textctx.moveTo(ix, iy); this.textctx.lineWidth = 1; this.textctx.lineTo(ix, iy+5); this.textctx.stroke(); if( dolabel ){ this.textctx.fillText(label, ix, iy+15); } }; if( im.staticObj ){ // find min and max in the static range dmin = 0 dmax = 0; for(i=0; i<im.staticObj.colors.length; i++){ color = im.staticObj.colors[i]; if( color.min < dmin ){ if( color.max === -Infinity ){ dmin = dmin - JS9.Colorbar.INFINITY; } else { dmin = color.min; } } if( color.max > dmax ){ if( color.max === Infinity ){ dmax = dmax + JS9.Colorbar.INFINITY ; } else { dmax = color.max; } } } // first line gets colors from static lookup idx0 = (dmax - dmin) / canvasWidth; for(i=0, j=0; i<canvasWidth; i++, j+=4){ dval = Math.floor(i * idx0); color = JS9.lookupStaticColor(im, dval); colorData[j] = color.red; colorData[j+1] = color.green; colorData[j+2] = color.blue; colorData[j+3] = color.alpha; } } else { // scaled or unscaled display? if( this.scaled ){ colorBuf = im.psColors; } else { colorBuf = im.colorCells; } // sanity check if( !colorBuf ){ JS9.Colorbar.imageclear(im); return; } // first line gets colors from main display's rgb array idx0 = colorBuf.length / canvasWidth; for(i=0, j=0; i<canvasWidth; i++, j+=4){ idx = Math.floor(i * idx0); colorData[j] = colorBuf[idx][0]; colorData[j+1] = colorBuf[idx][1]; colorData[j+2] = colorBuf[idx][2]; colorData[j+3] = 255; } } // other lines get a copy of the first line for(i=1; i<canvasHeight; i++){ colorData.set(colorBuf0, i * colorWidth); } // display colorbar this.ctx.putImageData(colorImg, 0, 0); // if we are not displaying the tick marks, we're done if( !this.showTicks ){ return; } // clear tick display this.textctx.clear(); if( im.staticObj ){ prec = JS9.floatPrecision(dmin, dmax); lastix = -99999; for(i=0; i<im.staticObj.colors.length; i++){ color = im.staticObj.colors[i]; label = JS9.floatFormattedString(color.min, prec, 0); ix = Math.ceil(color.min / idx0) + 1; iy = 0; // if the label is going to be wide, skip even ones if( (Math.abs(ix - lastix) <= JS9.Colorbar.STATICPADDING) || ((label.length >= JS9.Colorbar.STATICSIZE) && (i % 2 === 0)) ){ dolabel = false; } else { lastix = ix; dolabel = true; } drawLabel(ix, iy, label, dolabel); } } else { // display tick marks idx0 = im.psInverse.length / this.ticks; // get precision estimate prec = JS9.floatPrecision(Math.min(im.params.scalemin,im.psInverse[0]), Math.max(im.params.scalemax, im.psInverse[im.psInverse.length-1])); // make labels, with a feeble attempt to avoid duplicates for(j=0; j<5; j++){ done = true; // gather array of labels for(i=0; i<this.ticks; i++){ tval = im.psInverse[Math.floor(i*idx0)]; tlabels[i] = JS9.floatFormattedString(tval, prec, j); } // look for dups for(i=1; i<this.ticks; i++){ if( tlabels[i-1] === tlabels[i] ){ done = false; } } // done if no dups if( done ){ break; } } // draw tick marks and labels for(i=1; i<this.ticks; i++){ // skip repeats if( (i > 1) && (tlabels[i] === tlabels[i-1]) ){ continue; } ix = (i/this.ticks)*this.width; iy = 0; // if the label is going to be wide, skip even ones if( (tlabels[i].length >= JS9.Colorbar.MAXLABELSIZE) && (i % 2 === 0) ){ dolabel = false; } else { dolabel = true; } drawLabel(ix, iy, tlabels[i], dolabel); } } }; // constructor: add HTML elements to the plugin JS9.Colorbar.init = function(width, height){ const ratio = JS9.PIXEL_RATIO || 1; // on entry, these elements have already been defined: // this.div: the DOM element representing the div for this plugin // this.divjq: the jquery object representing the div for this plugin // this.id: the id of the div (or the plugin name as a default) // this.display: the display object associated with this plugin // this.dispMode: display mode (for internal use) // // set width and height of plugin itself // display the tick marks? this will influence some height params ... this.showTicks = this.divjq.attr("data-showTicks"); if( this.showTicks === undefined ){ this.showTicks = true; } else if( this.showTicks === "true" ){ this.showTicks = true; } else { this.showTicks = false; } this.width = this.divjq.attr("data-width"); if( !this.width ){ this.width = width || JS9.Colorbar.WIDTH; } this.divjq.css("width", this.width); this.width = parseInt(this.divjq.css("width"), 10); this.height = this.divjq.attr("data-height"); if( !this.height ){ // no tick mark display: default height becomes colorbar height if( this.showTicks ){ this.height = height || JS9.Colorbar.HEIGHT; } else { this.height = height || JS9.Colorbar.COLORBARHEIGHT; } } this.divjq.css("height", this.height); this.height = parseInt(this.divjq.css("height"), 10); // height of colorbar inside plugin this.colorbarWidth = this.width; this.colorbarHeight = parseInt(this.divjq.attr("data-colorbarHeight"), 10); if( !this.colorbarHeight ){ this.colorbarHeight = JS9.Colorbar.COLORBARHEIGHT; } // but no larger than the overall height this.colorbarHeight = Math.min(this.height, this.colorbarHeight); // display scaled or unscaled colorbar? this.scaled = this.divjq.attr("data-scaled"); if( this.scaled === undefined ){ this.scaled = JS9.Colorbar.SCALED; } else if( this.scaled === "true" ){ this.scaled = true; } else { this.scaled = false; } // tick marks this.ticks = this.divjq.attr("data-ticks"); if( !this.ticks ){ this.ticks = JS9.Colorbar.TICKS; } // clean plugin container this.divjq.html(""); // colorbar container this.colorbarContainer = $("<div>") .addClass(`${JS9.Colorbar.BASE}Container`) .attr("id", `${this.id}Container`) .attr("width", this.width) .attr("height", this.height) .appendTo(this.divjq); // main canvas this.colorbarjq = $("<canvas>") .addClass(`${JS9.Colorbar.BASE}Canvas`) .attr("id", `${this.id}Canvas`) .attr("width", this.width-1) .attr("height", this.colorbarHeight) .appendTo(this.colorbarContainer); this.ctx = this.colorbarjq[0].getContext("2d"); // set up for text display? if( this.showTicks ){ // numeric text and tick marks // (height and width changes deal with HiDPI text blur problems!) this.textjq = $("<canvas>") .addClass(`${JS9.Colorbar.BASE}TextCanvas`) .attr("id", `${this.id}TextCanvas`) .attr("width", this.width * ratio) .attr("height", (this.height - this.colorbarHeight) * ratio) .css("width", `${this.width}px`) .css("height", `${this.height - this.colorbarHeight}px`) .appendTo(this.colorbarContainer); this.textctx = this.textjq[0].getContext("2d"); // font specified in data property of div element? this.colorbarFont = this.divjq.attr("data-colorbarFont"); if( this.colorbarFont ){ this.textctx.font = this.colorbarFont; } else if( JS9.Colorbar.COLORBARFONT ){ this.textctx.font = JS9.Colorbar.COLORBARFONT; } this.textctx.setTransform(ratio, 0, 0, ratio, 0, 0); } // display current colorbar, if necessary if( this.display.image ){ JS9.Colorbar.display.call(this, this.display.image); } }; // callback when image is (re-)displayed JS9.Colorbar.imagedisplay = function(im){ if( im ){ JS9.Colorbar.display.call(this, im); } }; // callback when image is cleared or closed JS9.Colorbar.imageclear = function(im){ if( im && (im === im.display.image) ){ // clear buffers if( this.ctx ){ this.ctx.clear(); } if( this.textctx ){ this.textctx.clear(); } } }; // dynamic change JS9.Colorbar.dynamic = function(im){ let colorbar; if( im ){ colorbar = im.display.pluginInstances.JS9Colorbar; if( colorbar && colorbar.isDynamic ){ JS9.Colorbar.imagedisplay.call(this, im); } } }; // add this plugin into JS9 JS9.RegisterPlugin(JS9.Colorbar.CLASS, JS9.Colorbar.NAME, JS9.Colorbar.init, {menuItem: "Colorbar", dynamicSelect: true, ondynamicselect: JS9.Colorbar.dynamic, onimagedisplay: JS9.Colorbar.imagedisplay, onimageclear: JS9.Colorbar.imageclear, onimageclose: JS9.Colorbar.imageclear, help: "help/colorbar.html", winTitle: "Colorbar", winDims: [JS9.Colorbar.WIDTH, JS9.Colorbar.HEIGHT]});
const {both} = require('../Utils/Ethereum'); const { makeComptroller, makeCToken } = require('../Utils/Compound'); describe('assetListTest', () => { let root, customer, accounts; let comptroller; let allTokens, OMG, ZRX, BAT, REP, DAI, SKT; beforeEach(async () => { [root, customer, ...accounts] = saddle.accounts; comptroller = await makeComptroller({maxAssets: 10}); allTokens = [OMG, ZRX, BAT, REP, DAI, SKT] = await Promise.all( ['OMG', 'ZRX', 'BAT', 'REP', 'DAI', 'sketch'] .map(async (name) => makeCToken({comptroller, name, symbol: name, supportMarket: name != 'sketch', underlyingPrice: 0.5})) ); }); async function checkMarkets(expectedTokens) { for (let token of allTokens) { const isExpected = expectedTokens.some(e => e.symbol == token.symbol); expect(await call(comptroller, 'checkMembership', [customer, token._address])).toEqual(isExpected); } } async function enterAndCheckMarkets(enterTokens, expectedTokens, expectedErrors = null) { const {reply, receipt} = await both(comptroller, 'enterMarkets', [enterTokens.map(t => t._address)], {from: customer}); const assetsIn = await call(comptroller, 'getAssetsIn', [customer]); expectedErrors = expectedErrors || enterTokens.map(_ => 'NO_ERROR'); reply.forEach((tokenReply, i) => { expect(tokenReply).toHaveTrollError(expectedErrors[i]); }); expect(receipt).toSucceed(); expect(assetsIn).toEqual(expectedTokens.map(t => t._address)); await checkMarkets(expectedTokens); return receipt; }; async function exitAndCheckMarkets(exitToken, expectedTokens, expectedError = 'NO_ERROR') { const {reply, receipt} = await both(comptroller, 'exitMarket', [exitToken._address], {from: customer}); const assetsIn = await call(comptroller, 'getAssetsIn', [customer]); expect(reply).toHaveTrollError(expectedError); //assert.trollSuccess(receipt); XXX enterMarkets cannot fail, but exitMarket can - kind of confusing expect(assetsIn).toEqual(expectedTokens.map(t => t._address)); await checkMarkets(expectedTokens); return receipt; }; describe('enterMarkets', () => { it("properly emits events", async () => { const result1 = await enterAndCheckMarkets([OMG], [OMG]); const result2 = await enterAndCheckMarkets([OMG], [OMG]); expect(result1).toHaveLog('MarketEntered', { cToken: OMG._address, account: customer }); expect(result2.events).toEqual({}); }); it("adds to the asset list only once", async () => { await enterAndCheckMarkets([OMG], [OMG]); await enterAndCheckMarkets([OMG], [OMG]); await enterAndCheckMarkets([ZRX, BAT, OMG], [OMG, ZRX, BAT]); await enterAndCheckMarkets([ZRX, OMG], [OMG, ZRX, BAT]); await enterAndCheckMarkets([ZRX], [OMG, ZRX, BAT]); await enterAndCheckMarkets([OMG], [OMG, ZRX, BAT]); await enterAndCheckMarkets([ZRX], [OMG, ZRX, BAT]); await enterAndCheckMarkets([BAT], [OMG, ZRX, BAT]); }); it("the market must be listed for add to succeed", async () => { await enterAndCheckMarkets([SKT], [], ['MARKET_NOT_LISTED']); await send(comptroller, '_supportMarket', [SKT._address]); await enterAndCheckMarkets([SKT], [SKT]); }); it("returns a list of codes mapping to user's ultimate membership in given addresses", async () => { await enterAndCheckMarkets([OMG, ZRX, BAT], [OMG, ZRX, BAT], ['NO_ERROR', 'NO_ERROR', 'NO_ERROR'], "success if can enter markets"); await enterAndCheckMarkets([OMG, SKT], [OMG, ZRX, BAT], ['NO_ERROR', 'MARKET_NOT_LISTED'], "error for unlisted markets"); }); }); describe('exitMarket', () => { it("doesn't let you exit if you have a borrow balance", async () => { await enterAndCheckMarkets([OMG], [OMG]); await send(OMG, 'harnessSetAccountBorrows', [customer, 1, 1]); await exitAndCheckMarkets(OMG, [OMG], 'NONZERO_BORROW_BALANCE'); }); it("rejects unless redeem allowed", async () => { await enterAndCheckMarkets([OMG, BAT], [OMG, BAT]); await send(BAT, 'harnessSetAccountBorrows', [customer, 1, 1]); // BAT has a negative balance and there's no supply, thus account should be underwater await exitAndCheckMarkets(OMG, [OMG, BAT], 'REJECTION'); }); it("accepts when you're not in the market already", async () => { await enterAndCheckMarkets([OMG, BAT], [OMG, BAT]); // Not in ZRX, should exit fine await exitAndCheckMarkets(ZRX, [OMG, BAT], 'NO_ERROR'); }); it("properly removes when there's only one asset", async () => { await enterAndCheckMarkets([OMG], [OMG]); await exitAndCheckMarkets(OMG, [], 'NO_ERROR'); }); it("properly removes when there's only two assets, removing the first", async () => { await enterAndCheckMarkets([OMG, BAT], [OMG, BAT]); await exitAndCheckMarkets(OMG, [BAT], 'NO_ERROR'); }); it("properly removes when there's only two assets, removing the second", async () => { await enterAndCheckMarkets([OMG, BAT], [OMG, BAT]); await exitAndCheckMarkets(BAT, [OMG], 'NO_ERROR'); }); it("properly removes when there's only three assets, removing the first", async () => { await enterAndCheckMarkets([OMG, BAT, ZRX], [OMG, BAT, ZRX]); await exitAndCheckMarkets(OMG, [ZRX, BAT], 'NO_ERROR'); }); it("properly removes when there's only three assets, removing the second", async () => { await enterAndCheckMarkets([OMG, BAT, ZRX], [OMG, BAT, ZRX]); await exitAndCheckMarkets(BAT, [OMG, ZRX], 'NO_ERROR'); }); it("properly removes when there's only three assets, removing the third", async () => { await enterAndCheckMarkets([OMG, BAT, ZRX], [OMG, BAT, ZRX]); await exitAndCheckMarkets(ZRX, [OMG, BAT], 'NO_ERROR'); }); }); describe('entering from borrowAllowed', () => { it("enters when called by a ctoken", async () => { await send(BAT, 'harnessCallBorrowAllowed', [1], {from: customer}); const assetsIn = await call(comptroller, 'getAssetsIn', [customer]); expect([BAT._address]).toEqual(assetsIn); await checkMarkets([BAT]); }); it("reverts when called by not a ctoken", async () => { await expect( send(comptroller, 'borrowAllowed', [BAT._address, customer, 1], {from: customer}) ).rejects.toRevert('revert sender must be cToken'); const assetsIn = await call(comptroller, 'getAssetsIn', [customer]); expect([]).toEqual(assetsIn); await checkMarkets([]); }); it("adds to the asset list only once", async () => { await send(BAT, 'harnessCallBorrowAllowed', [1], {from: customer}); await enterAndCheckMarkets([BAT], [BAT]); await send(BAT, 'harnessCallBorrowAllowed', [1], {from: customer}); const assetsIn = await call(comptroller, 'getAssetsIn', [customer]); expect([BAT._address]).toEqual(assetsIn); }); }); });
import React, { Component } from 'react'; export class FetchData extends Component { static displayName = FetchData.name; constructor(props) { super(props); this.state = { product: [], loading: true }; } componentDidMount() { this.populateWeatherData(); } static renderproductTable(product) { return ( <table className='table table-striped' aria-labelledby="tabelLabel"> <thead> <tr> <th>ID</th> <th>Product</th> <th>Type</th> <th>Category</th> <th>Image</th> </tr> </thead> <tbody> {product.map(product => <tr key={product.id}> <td>{product.id}</td> <td>{product.product_name}</td> <td>{product.product_type}</td> <td>{product.product_category}</td> <td>{product.image}</td> </tr> )} </tbody> </table> ); } render() { let contents = this.state.loading ? <p><em>Loading...</em></p> : FetchData.renderproductTable(this.state.product); return ( <div> <h1 id="tabelLabel" >Run4It Database</h1> <p>This component demonstrates fetching data from the server.</p> {contents} </div> ); } async populateWeatherData() { const response = await fetch('api/Product'); const data = await response.json(); this.setState({ product: data, loading: false }); } }
//______Data-Table $('#crypto-data-table').DataTable({ "order": [ [0, "desc"] ], order: [], columnDefs: [{ orderable: false, targets: [0, 4, 5] }], language: { searchPlaceholder: 'Search...', sSearch: '', } }); // Select2 $('.dataTables_length select').select2({ minimumResultsForSearch: Infinity });
let http = require("http"); let appInsights = require("applicationinsights"); appInsights.setup("60ce4968-3f13-4fdf-9904-74aebec88735"); appInsights.start(); let client = appInsights.defaultClient; client.trackEvent({name: "my custom event", properties: {customProperty: "custom property value"}}); client.trackException({exception: new Error("handled exceptions can be logged with this method")}); client.trackMetric({name: "custom metric", value: 3}); client.trackTrace({message: "trace message"}); client.trackDependency({target:"http://dbname", name:"select customers proc", data:"SELECT * FROM Customers", duration:231, resultCode:0, success: true, dependencyTypeName: "ZSQL"}); client.trackRequest({name:"GET /customers", url:"http://myserver/customers", duration:309, resultCode:200, success:true}); http.createServer( (req, res) => { client.trackNodeHttpRequest({request: req, response: res}); }).listen(1337, "127.0.0.1"); console.log('Server running at http://127.0.0.1:1337/');
/** * Copyright 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ (function(f){ if (typeof define === 'function' && define.amd) { define(["kendo.core"], f); } else { f(); } }(function(){ (function( window, undefined ) { kendo.cultures["en-SZ"] = { name: "en-SZ", numberFormat: { pattern: ["-n"], decimals: 2, ",": ",", ".": ".", groupSize: [3], percent: { pattern: ["-n%","n%"], decimals: 2, ",": ",", ".": ".", groupSize: [3], symbol: "%" }, currency: { name: "Swazi Lilangeni", abbr: "SZL", pattern: ["-$n","$n"], decimals: 2, ",": ",", ".": ".", groupSize: [3], symbol: "E" } }, calendars: { standard: { days: { names: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"], namesAbbr: ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"], namesShort: ["Su","Mo","Tu","We","Th","Fr","Sa"] }, months: { names: ["January","February","March","April","May","June","July","August","September","October","November","December"], namesAbbr: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"] }, AM: ["am","am","AM"], PM: ["pm","pm","PM"], patterns: { d: "dd/MM/yyyy", D: "dddd, d MMMM yyyy", F: "dddd, d MMMM yyyy h:mm:ss tt", g: "dd/MM/yyyy h:mm tt", G: "dd/MM/yyyy h:mm:ss tt", m: "d MMMM", M: "d MMMM", s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss", t: "h:mm tt", T: "h:mm:ss tt", u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'", y: "MMMM yyyy", Y: "MMMM yyyy" }, "/": "/", ":": ":", firstDay: 1 } } } })(this); }));
import React, { Component } from 'react'; class Footer extends Component { render() { if(this.props.data){ var networks= this.props.data.social.map(function(network){ return <li key={network.name}><a href={network.url}><i className={network.className}></i></a></li> }) } return ( <footer> <div className="row"> <div className="twelve columns"> <ul className="social-links"> {networks} </ul> <ul> <li>Modified with love by the Rabbi's Programmer team ♥️</li> </ul> <ul className="copyright"> <li>&copy; All credit goes to Rabbi Softer - Copyright 2020 Al Rabbi</li> <li>Design by <a title="Styleshout" href="http://www.styleshout.com/">Rabbi</a></li> </ul> </div> <div id="go-top"><a className="smoothscroll" title="Back to Top" href="#home"><i className="icon-up-open"></i></a></div> </div> </footer> ); } } export default Footer;
import React, {Component} from 'react'; import '../../css/reset.css'; import '../../css/animations.css'; import StyleSheet from 'nestingstyles'; export default class H13 extends Component { constructor(props) { super(props); this.state = { color: props.color, colorRev: props.color, textShadow: props.shadow, fontFamily: props.font || 'sans-serif', fontSize: props.size || '7.5em', smFontSize: props.smSize || '4.4em', mdFontSize: props.mdSize || '5.7em', fontWeight: props.weight || '900', fontVariant: props.variant, display: props.display || 'flex', align: props.align || 'center', textAlign: props.textAlign || 'center', padding: props.padding || '0 0 15px 0', margin: props.margin || '1px', width: props.width || 'inherit', height: props.height, border: props.border, bLeft: props.bLeft, bRight: props.bRight, bTop: props.bTop, bBottom: props.bBottom, id: props.id, className: props.className, childs: '', animationIterationCount: props.aniCount, animationTimingFunction: props.aniTime, animationName: props.aniName, animationDuration: props.aniDur, transformOrigin: props.transformOrigin, animationFillMode: props.aniFillMode, smdis: props.smDis || 'flex', mddis: props.mdDis || 'flex', hoverColor: props.hovColor, } } componentDidMount() { const CHILDS = React.Children.toArray(this.props.children) this.setState({ childs: CHILDS }) } componentWillReceiveProps(newProps) { const CHILDS = React.Children.toArray(newProps.children) return this.setState({ childs: CHILDS }) } render() { const HEADING = StyleSheet.create({ heading: { width: this.state.width, height: this.state.height, color: this.state.color, textShadow: this.state.textShadow, borderLeft: this.state.bLeft, borderRight: this.state.bRight, borderTop: this.state.bTop, borderBottom: this.state.bBottom, border: this.state.border, fontFamily: this.state.fontFamily, fontSize: this.state.fontSize, fontWeight: this.state.fontWeight, fontVariant: this.state.fontVariant, display: this.state.display, flexDirection: 'column', alignItems: this.state.align, textAlign: this.state.textAlign, padding: this.state.padding, margin: this.state.margin, overflowX: 'hidden', overflowY: 'hidden', animationIterationCount: this.state.animationIterationCount, animationTimingFunction: this.state.animationTimingFunction, animationName: this.state.animationName, animationDuration: this.state.animationDuration, transformOrigin: this.state.transformOrigin, animationFillMode: this.state.animationFillMode, flex: 1, }, hoverStyle: { color: this.state.hoverColor }, '@media screen and (max-width: 440px)': { heading: { display: this.state.smDis, color: this.state.color, fontSize: this.state.smFontSize } }, '@media screen and (min-width: 441px) and (max-width: 760px)': { heading: { display: this.state.mdDis, color: this.state.color, fontSize: this.state.mdFontSize } }, }) return ( <React.Fragment> <h1 style={HEADING.heading} id={this.state.id} className={this.state.className} onMouseEnter={() => this.setState({ color: HEADING.hoverStyle.color })} onMouseLeave={() => this.setState({ color: this.state.colorRev })}>{this.state.childs[0]}</h1> </React.Fragment> ) } }
import Tag from '../Tag.vue' import { mount } from '@vue/test-utils' describe('Tag.vue', () => { describe('props', () => { it('text', () => { const wrapper = mount(Tag, { slots: { default: () => '标签' } }) expect(wrapper.text().length).toBeGreaterThanOrEqual(2) }) it('closeTransition', () => { const wrapper = mount(Tag, { props: { closable: true, closeTransition: true } }) expect(wrapper.find('.md-fade-center').exists()).toBeFalsy() }) }) describe('event', () => { it('closable', () => { const wrapper = mount(Tag, { props: { closable: true } }) wrapper.vm.$emit('close') expect(wrapper.emitted('close')).toBeTruthy() expect(wrapper.find('.el-tag .el-tag__close').exists()).toBeTruthy() }) it('click', () => { const wrapper = mount({ template: ` <el-tag ref="tag" @click="handleClick">点击标签</el-tag> `, data() { return { clicksCount: 0 } }, methods: { handleClick() { this.clicksCount = this.clicksCount + 1 } } }) wrapper.trigger('click') expect(wrapper.vm.clicksCount).toBe(1) }) }) })
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; var Alt = /*#__PURE__*/forwardRef(function (_ref, ref) { var color = _ref.color, size = _ref.size, rest = _objectWithoutProperties(_ref, ["color", "size"]); return /*#__PURE__*/React.createElement("svg", _extends({ ref: ref, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", width: size, height: size, fill: color }, rest), /*#__PURE__*/React.createElement("path", { d: "M1 13.5a.5.5 0 0 0 .5.5h3.797a.5.5 0 0 0 .439-.26L11 3h3.5a.5.5 0 0 0 0-1h-3.797a.5.5 0 0 0-.439.26L5 13H1.5a.5.5 0 0 0-.5.5zm10 0a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 0-1h-3a.5.5 0 0 0-.5.5z" })); }); Alt.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; Alt.defaultProps = { color: 'currentColor', size: '1em' }; export default Alt;
const prefix = '/inventories'; export default [ { path: prefix, name: 'inventories-index', component: () => import('./index.component.vue'), meta: { level: 'parent', title: 'Inventories' } }, { path: prefix+"/create", name: 'inventories-create', component: () => import('./form.component.vue'), meta: { title: 'Add Inventories' } }, { path: prefix+"/:id/edit", name: 'inventories-edit', component: () => import('./form.component.vue'), meta: { title: 'Update Inventories' } }, ];
var idi = localStorage.getItem("data"); const articleLists = document.querySelector('.articlesView'); const hidethisonelist = document.querySelector('.hidethisone'); const hidethislist = document.querySelector('.anotherhide'); const singlearticleLists = document.querySelector('.SingleArticleView'); let brr = document.createElement('br'); const allarticles = document.querySelector('#allarticles-Button'); allarticles.addEventListener('click', (e) => { e.preventDefault(); articleLists.innerHTML = ''; hidethisonelist.innerHTML = ''; hidethislist.innerHTML =''; db.collection('articles').where('status', '==', 'Accept').where('category', '==', 'Article') .get().then(snapshot => { setupArticles(snapshot.docs); }); }) const articleViews = document.querySelector('#article-Button'); articleViews.addEventListener('click', (e) => { e.preventDefault(); articleLists.innerHTML = ''; hidethisonelist.innerHTML = ''; hidethislist.innerHTML =''; db.collection('articles').where('status', '==', 'Accept').where('category', '==', 'Article') .orderBy('reviewedby', 'asc').get().then(snapshot => { setupArticles(snapshot.docs); }); }) const OldarticleViews = document.querySelector('#old-Button'); OldarticleViews.addEventListener('click', (e) => { e.preventDefault(); articleLists.innerHTML = ''; hidethisonelist.innerHTML = ''; hidethislist.innerHTML =''; db.collection('articles').where('status', '==', 'Accept').where('category', '==', 'Article') .orderBy('reviewedby', 'desc').get().then(snapshot => { setupArticles(snapshot.docs); }); }) //.where('status', '==', 'Accept').where('category', '==', 'Article') let cl = document.getElementById("difficultlevel"); cl.addEventListener("change", (e) => { e.preventDefault(); articleLists.innerHTML = ''; hidethisonelist.innerHTML = ''; hidethislist.innerHTML =''; var chooselevel = cl.options[cl.selectedIndex].value; db.collection('articles').where('status', '==', 'Accept').where('category', '==', 'Article').where('level', '==', chooselevel) .get().then(snapshot => { setupArticles(snapshot.docs); }); }) db.collection('articles').doc(idi).get().then(snapshot => { let li = document.createElement('li'); let division = document.createElement('div'); let division2 = document.createElement('div'); let division3 = document.createElement('div'); let division4 = document.createElement('div'); let division5 = document.createElement('div'); let tagsText = document.createElement('span'); let uid = document.createElement('span'); let br1 = document.createElement('br'); let br2 = document.createElement('br'); let br3 = document.createElement('br'); let contritext = document.createElement('span'); let titleheader = document.createElement('span'); let articles = document.createElement('span'); let hr2 = document.createElement('hr'); let articleset = document.createElement('article'); let backbutton = document.createElement('button'); let tag2 = document.createElement('button'); let tag3 = document.createElement('button'); let tag4 = document.createElement('button'); backbutton.addEventListener('click', (e) => { e.stopPropagation(); location.replace("home.html"); }); li.style.margin = 'auto'; articleset.style.padding = '30px'; articleset.style.fontSize = '18px'; li.style.border = '2px'; li.style.borderStyle = 'solid'; tagsText.style.color = '#DADADA'; tagsText.style.fontSize = '18px'; tagsText.style.marginInlineStart = '30px'; li.style.borderColor = '#ffffff'; division.setAttribute('data-id', snapshot.id); division.className = 'collapsible-header grey lighten-4'; division2.className = 'collapsible-body white'; division3.style.textAlign = 'center'; titleheader.textContent = snapshot.data().title; titleheader.style.fontSize = '30px'; titleheader.style.color = 'black'; contritext.innerHTML = '<h7 class="center-align"><b> Contributed By </b> </h7>'; contritext.style.fontSize = '20px'; contritext.style.color = 'black'; tagsText.innerHTML = '<h7 class="center-align"><b> Article tags : </b> </h7>'; uid.style.fontSize = '20px'; uid.style.color = 'black'; uid.textContent = snapshot.data().username; uid.style.textTransform = 'capitalize'; backbutton.className = 'button2'; backbutton.textContent = '<< Back ' tag2.className = 'button1'; tag3.className = 'button1'; tag4.className = 'button1'; tag2.textContent = snapshot.data().tag; tag3.textContent = snapshot.data().language; tag4.textContent = snapshot.data().level; articles.textContent = snapshot.data().article; li.appendChild(division5); division5.appendChild(backbutton); li.appendChild(articleset); li.appendChild(division3); li.appendChild(division4); articleset.appendChild(division); articleset.appendChild(division2); division.appendChild(titleheader); division.appendChild(br2); division.appendChild(br1); division2.appendChild(articles); division2.appendChild(hr2); division3.appendChild(contritext); division3.appendChild(brr); division3.appendChild(uid); division3.appendChild(br3); division3.appendChild(br3); division4.appendChild(tagsText); division4.appendChild(tag2); division4.appendChild(tag3); division4.appendChild(tag4); singlearticleLists.appendChild(li); tag2.addEventListener('click', (e) => { e.stopPropagation(); singlearticleLists.innerHTML = ''; hidethisonelist.innerHTML = ''; hidethislist.innerHTML =''; db.collection('articles').where('status', '==', 'Accept').where('tag', '==', snapshot.data().tag) .get().then(snapshot => { setupArticles(snapshot.docs); }); }) tag3.addEventListener('click', (e) => { e.stopPropagation(); singlearticleLists.innerHTML = ''; hidethisonelist.innerHTML = ''; hidethislist.innerHTML =''; db.collection('articles').where('status', '==', 'Accept').where('language', '==', snapshot.data().language) .get().then(snapshot => { setupArticles(snapshot.docs); }); }) tag4.addEventListener('click', (e) => { e.stopPropagation(); singlearticleLists.innerHTML = ''; hidethisonelist.innerHTML = ''; hidethislist.innerHTML =''; db.collection('articles').where('status', '==', 'Accept').where('level', '==', snapshot.data().level) .get().then(snapshot => { setupArticles(snapshot.docs); }); }) });
import React from 'react' import metaMaskLogo from '../../assets/images/meta-mask-logo.png' import './incorrect-network.css' const IncorrectNetwork = () => ( <div className="IncorrectNetwork"> <img alt="MetaMask Logo" className="IncorrectNetwork-logo" src={metaMaskLogo} /> <div className="IncorrectNetwork-content"> <h1>Wrong Metamask network configuration.</h1> <p> Please ensure Metamask is set to the either the <strong>Main</strong>{' '} Ethereum network or the <strong>Kovan</strong> testnet. </p> </div> </div> ) export default IncorrectNetwork
YUI.add('widget-position-ext', function(Y) { /** * Provides extended/advanced XY positioning support for Widgets, through an extension. * * It builds on top of the widget-position module, to provide alignmentment and centering support. * Future releases aim to add constrained and fixed positioning support. * * @module widget-position-ext */ var L = Y.Lang, ALIGN = "align", BINDUI = "bindUI", SYNCUI = "syncUI", OFFSET_WIDTH = "offsetWidth", OFFSET_HEIGHT = "offsetHeight", VIEWPORT_REGION = "viewportRegion", REGION = "region", AlignChange = "alignChange"; /** * Widget extension, which can be used to add extended XY positioning support to the base Widget class, * through the <a href="Base.html#method_build">Base.build</a> method. This extension requires that * the WidgetPosition extension be added to the Widget (before WidgetPositionExt, if part of the same * extension list passed to Base.build). * * @class WidgetPositionExt * @param {Object} User configuration object */ function PositionExt(config) { if (!this.hasImpl(Y.WidgetPosition) || !this._posNode) { Y.error("WidgetPosition needs to be added to the Widget, before WidgetPositionExt is added"); } Y.after(this._syncUIPosExtras, this, SYNCUI); Y.after(this._bindUIPosExtras, this, BINDUI); } /** * Static property used to define the default attribute * configuration introduced by WidgetPositionExt. * * @property WidgetPositionExt.ATTRS * @type Object * @static */ PositionExt.ATTRS = { /** * @attribute align * @type Object * @default null * @desciption The align attribute is used to align a reference point on the widget, with the refernce point on another node, or the viewport. * The object which align expects has the following properties: * <dl> * <dt>node</dt> * <dd> * The node to which the Widget is to be aligned. If set to null, or not provided, the Widget is aligned to the viewport * </dd> * <dt>points</dt> * <dd> * <p> * A two element array, defining the two points on the Widget and node/viewport which are to be aligned. The first element is the point on the Widget, and the second element is the point on the node/viewport. * Supported alignment points are defined as static properties on <code>WidgetPositionExt</code>. * </p> * <p> * e.g. <code>[WidgetPositionExt.TR, WidgetPositionExt.TL]</code> aligns the Top-Right corner of the Widget with the * Top-Left corner of the node/viewport, and <code>[WidgetPositionExt.CC, WidgetPositionExt.TC]</code> aligns the Center of the * Widget with the Top-Center edge of the node/viewport. * </p> * </dd> * </dl> */ align: { value:null }, /** * @attribute centered * @type {boolean | node} * @default false * @description A convenience attribute, which can be used as a shortcut for the align attribute. * If set to true, the Widget is centered in the viewport. If set to a node reference or valid selector string, * the Widget will be centered within the node. If set the false, no center positioning is applied. */ centered: { setter: function(val) { return this._setAlignCenter(val); }, value:false } }; /** * Constant used to specify the top-left corner for alignment * * @property WidgetPositionExt.TL * @type String * @static * @value "tl" */ PositionExt.TL = "tl"; /** * Constant used to specify the top-right corner for alignment * * @property WidgetPositionExt.TR * @type String * @static * @value "tr" */ PositionExt.TR = "tr"; /** * Constant used to specify the bottom-left corner for alignment * * @property WidgetPositionExt.BL * @type String * @static * @value "bl" */ PositionExt.BL = "bl"; /** * Constant used to specify the bottom-right corner for alignment * * @property WidgetPositionExt.BR * @type String * @static * @value "br" */ PositionExt.BR = "br"; /** * Constant used to specify the top edge-center point for alignment * * @property WidgetPositionExt.TC * @type String * @static * @value "tc" */ PositionExt.TC = "tc"; /** * Constant used to specify the right edge, center point for alignment * * @property WidgetPositionExt.RC * @type String * @static * @value "rc" */ PositionExt.RC = "rc"; /** * Constant used to specify the bottom edge, center point for alignment * * @property WidgetPositionExt.BC * @type String * @static * @value "bc" */ PositionExt.BC = "bc"; /** * Constant used to specify the left edge, center point for alignment * * @property WidgetPositionExt.LC * @type String * @static * @value "lc" */ PositionExt.LC = "lc"; /** * Constant used to specify the center of widget/node/viewport for alignment * * @property WidgetPositionExt.CC * @type String * @static * @value "cc" */ PositionExt.CC = "cc"; PositionExt.prototype = { /** * Synchronizes the UI to match the Widgets extended positioning state. * This method in invoked after syncUI is invoked for the Widget class * using YUI's aop infrastructure. * * @method _syncUIPosExtras * @protected */ _syncUIPosExtras : function() { var align = this.get(ALIGN); if (align) { this._uiSetAlign(align.node, align.points); } }, /** * Binds event listeners responsible for updating the UI state in response to * Widget extended positioning related state changes. * <p> * This method is invoked after bindUI is invoked for the Widget class * using YUI's aop infrastructure. * </p> * @method _bindUIStack * @protected */ _bindUIPosExtras : function() { this.after(AlignChange, this._afterAlignChange); }, /** * Default setter for center attribute changes. Sets up the appropriate value, and passes * it through the to the align attribute. * * @method _setAlignCenter * @protected * @param {boolean | node} The attribute value being set. * @return {Number} The attribute value being set. */ _setAlignCenter : function(val) { if (val) { this.set(ALIGN, { node: val === true ? null : val, points: [PositionExt.CC, PositionExt.CC] }); } return val; }, /** * Default attribute change listener for the align attribute, responsible * for updating the UI, in response to attribute changes. * * @method _afterAlignChange * @protected * @param {Event.Facade} e The event facade for the attribute change */ _afterAlignChange : function(e) { if (e.newVal) { this._uiSetAlign(e.newVal.node, e.newVal.points); } }, /** * Updates the UI to reflect the align value passed in (see the align attribute documentation, for the object stucture expected) * @method _uiSetAlign * @protected * @param {Node | null} The node to align to, or null to indicate the viewport */ _uiSetAlign: function (node, points) { if (!L.isArray(points) || points.length != 2) { Y.error("align: Invalid Points Arguments"); return; } var nodeRegion, widgetPoint, nodePoint, xy; if (!node) { nodeRegion = this._posNode.get(VIEWPORT_REGION); } else { node = Y.Node.get(node); if (node) { nodeRegion = node.get(REGION); } } if (nodeRegion) { // TODO: ViewportRegion doesn't have width/height - Workaround until normalized in Node/Dom nodeRegion.width = nodeRegion.width || nodeRegion.right - nodeRegion.left; nodeRegion.height = nodeRegion.height || nodeRegion.bottom - nodeRegion.top; widgetPoint = points[0]; nodePoint = points[1]; // TODO: Optimize KWeight - Would lookup table help? switch (nodePoint) { case PositionExt.TL: xy = [nodeRegion.left, nodeRegion.top]; break; case PositionExt.TR: xy = [nodeRegion.right, nodeRegion.top]; break; case PositionExt.BL: xy = [nodeRegion.left, nodeRegion.bottom]; break; case PositionExt.BR: xy = [nodeRegion.right, nodeRegion.bottom]; break; case PositionExt.TC: xy = [nodeRegion.left + Math.floor(nodeRegion.width/2), nodeRegion.top]; break; case PositionExt.BC: xy = [nodeRegion.left + Math.floor(nodeRegion.width/2), nodeRegion.bottom]; break; case PositionExt.LC: xy = [nodeRegion.left, nodeRegion.top + Math.floor(nodeRegion.height/2)]; break; case PositionExt.RC: xy = [nodeRegion.right, nodeRegion.top + Math.floor(nodeRegion.height/2), widgetPoint]; break; case PositionExt.CC: xy = [nodeRegion.left + Math.floor(nodeRegion.width/2), nodeRegion.top + Math.floor(nodeRegion.height/2), widgetPoint]; break; default: Y.log("align: Invalid Points Arguments", "info", "widget-position-extras"); break; } if (xy) { this._doAlign(widgetPoint, xy[0], xy[1]); } } }, /** * Helper method, used to align the given point on the widget, with the XY page co-ordinates provided. * * @method _doAlign * @private * @param {String} widgetPoint Supported point constant (e.g. WidgetPositionExt.TL) * @param {Number} x X page co-ordinate to align to * @param {Number} y Y page co-ordinate to align to */ _doAlign : function(widgetPoint, x, y) { var widgetNode = this._posNode, xy; switch (widgetPoint) { case PositionExt.TL: xy = [x, y]; break; case PositionExt.TR: xy = [x - widgetNode.get(OFFSET_WIDTH), y]; break; case PositionExt.BL: xy = [x, y - widgetNode.get(OFFSET_HEIGHT)]; break; case PositionExt.BR: xy = [x - widgetNode.get(OFFSET_WIDTH), y - widgetNode.get(OFFSET_HEIGHT)]; break; case PositionExt.TC: xy = [x - (widgetNode.get(OFFSET_WIDTH)/2), y]; break; case PositionExt.BC: xy = [x - (widgetNode.get(OFFSET_WIDTH)/2), y - widgetNode.get(OFFSET_HEIGHT)]; break; case PositionExt.LC: xy = [x, y - (widgetNode.get(OFFSET_HEIGHT)/2)]; break; case PositionExt.RC: xy = [(x - widgetNode.get(OFFSET_WIDTH)), y - (widgetNode.get(OFFSET_HEIGHT)/2)]; break; case PositionExt.CC: xy = [x - (widgetNode.get(OFFSET_WIDTH)/2), y - (widgetNode.get(OFFSET_HEIGHT)/2)]; break; default: Y.log("align: Invalid Points Argument", "info", "widget-position-extras"); break; } if (xy) { this.move(xy); } }, /** * Aligns the Widget to the provided node (or viewport) using the provided * points. The method can be invoked directly, however it will result in * the align attribute being out of sync with current position of the of Widget. * * @method align * @param {Node | String | null} node A reference (or selector string) for the Node which with the Widget is to be aligned. * If null is passed in, the Widget will be aligned with the viewport. * @param {Array[2]} points A two element array, specifying the points on the Widget and node/viewport which need to be aligned. * The first entry is the point on the Widget, and the second entry is the point on the node/viewport which need to align. * Valid point references are defined as static constants on the WidgetPositionExt class. * * e.g. [WidgetPositionExt.TL, WidgetPositionExt.TR] will align the top-left corner of the Widget with the top-right corner of the node/viewport. */ align: function (node, points) { this.set(ALIGN, {node: node, points:points}); }, /** * Centers the container in the viewport, or if a node is passed in, * the node. * * @method centered * @param {Node | String} node Optional. A node reference or selector string defining the node * inside which the Widget is to be centered. If not passed in, the Widget will be centered in the * viewport. */ centered: function (node) { this.align(node, [PositionExt.CC, PositionExt.CC]); } }; Y.WidgetPositionExt = PositionExt; }, '@VERSION@' ,{requires:['widget', 'widget-position']});
import { useState, useEffect } from "react"; import { fromEvent, interval } from "rxjs"; import { map, bufferCount, distinctUntilChanged, throttle, filter, } from "rxjs/operators"; const useScrollDirection = ($dom = document) => { const [dir, setDir] = useState("up"); const scroll$ = fromEvent($dom || window, "scroll", { capture: true, }); const scrollDirChanged$ = scroll$.pipe( map((e) => e.target.scrollTop), throttle(() => interval(300)), bufferCount(2), filter(([pre, nxt]) => Math.abs(pre - nxt) > 50), map(([pre, nxt]) => (pre - nxt > 0 ? "UP" : "DOWN")), distinctUntilChanged() ); useEffect(() => { const sub = scrollDirChanged$.subscribe((d) => { setDir(d); }); return () => sub.unsubscribe(); }, []); return [dir]; }; export default useScrollDirection;
var structtype__caster_3_01Type_00_01enable__if__t_3_01is__eigen__sparse_3_01Type_01_4_1_1value_01_4_01_4 = [ [ "Index", "structtype__caster_3_01Type_00_01enable__if__t_3_01is__eigen__sparse_3_01Type_01_4_1_1value_01_4_01_4.html#a9ce3b790dd5bdeb5578419053e450feb", null ], [ "Scalar", "structtype__caster_3_01Type_00_01enable__if__t_3_01is__eigen__sparse_3_01Type_01_4_1_1value_01_4_01_4.html#a5136dbf552bfcb9ca707f5ed51fed848", null ], [ "StorageIndex", "structtype__caster_3_01Type_00_01enable__if__t_3_01is__eigen__sparse_3_01Type_01_4_1_1value_01_4_01_4.html#ab39275266506bb00041626baa4b70653", null ], [ "_", "structtype__caster_3_01Type_00_01enable__if__t_3_01is__eigen__sparse_3_01Type_01_4_1_1value_01_4_01_4.html#aa3b5aaf90f33e87012c04e52cb29b6d6", null ], [ "cast", "structtype__caster_3_01Type_00_01enable__if__t_3_01is__eigen__sparse_3_01Type_01_4_1_1value_01_4_01_4.html#a1a15393d11a1bba5521da71a0be20a45", null ], [ "load", "structtype__caster_3_01Type_00_01enable__if__t_3_01is__eigen__sparse_3_01Type_01_4_1_1value_01_4_01_4.html#afd4f3130a50768064872d4c9e57b0fdd", null ], [ "rowMajor", "structtype__caster_3_01Type_00_01enable__if__t_3_01is__eigen__sparse_3_01Type_01_4_1_1value_01_4_01_4.html#a996a5fc0021f2e323928643ae036382e", null ] ];