text
stringlengths
2
1.05M
// @flow import { createEnvironment } from '../index'; const getOperation = (reference: mixed) => { return import(`./src/__generated__/${reference}`); }; module.exports = ({ validMinimalUsage: () => { return createEnvironment({ fetchFn: () => false, }); }, withOperationLoader: () => { return createEnvironment({ fetchFn: () => false, operationLoader: { get(reference) { return getOperation(reference); }, load(reference) { return getOperation(reference); }, }, }); }, // Invalid usages: invalidUsage: () => { // $FlowExpectedError[prop-missing]: property 'fetcherFn' should be in fact 'fetchFn' return createEnvironment({ fetcherFn: () => false, }); }, }: $FlowFixMe);
// DO NOT EDIT! This test has been generated by /offscreen-canvas/tools/gentest.py. // OffscreenCanvas test in a worker:2d.fillStyle.parse.css-color-4-hsl-7 // Description: // Note:<p class="notes"> importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = async_test(""); var t_pass = t.done.bind(t); var t_fail = t.step_func(function(reason) { throw reason; }); t.step(function() { var offscreenCanvas = new OffscreenCanvas(100, 50); var ctx = offscreenCanvas.getContext('2d'); ctx.fillStyle = '#f00'; ctx.fillStyle = 'hsl(133.33333333grad, 100.0%, 50.0%)'; ctx.fillRect(0, 0, 100, 50); _assertPixel(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); t.done(); }); done();
/* * WRI Restoration Marketplace API * ### About This API serves the web and mobile apps for WRI's Restoration Marketplace (AKA TerraMatch). ### Authentication & Authorisation JWTs are used for authentication. Upon successful log in a JWT will be provided for you. These expire after 12 hours. A padlock icon next to an endpoint indicates that it requires an authenticated user. For example: ![](/images/padlock.png) ### Requests & Responses The response bodies documented here will be wrapped in an object adhering to the JSON:API specification. ### Error Codes Any errors returned in the body of a response will have a unique code to help identify the type of error. They are: ``` ACCEPTED, ACTIVE_URL, AFTER, AFTER_OR_EQUAL, ALPHA, ALPHA_DASH, ALPHA_NUM, ARRAY, BEFORE, BEFORE_OR_EQUAL, BETWEEN, BOOLEAN, CARBON_CERTIFICATION_TYPE, CONFIRMED, CONTAIN_LOWER, CONTAIN_NUMBER, CONTAIN_UPPER, CONTINENT, COUNTRY_CODE, CUSTOM, DATE, DATE_EQUALS, DATE_FORMAT, DIFFERENT, DIGITS, DIGITS_BETWEEN, DIMENSIONS, DISTINCT, DOCUMENT_TYPE, EMAIL, ENDS_WITH, EXISTS, FILE, FILLED, FUNDING_BRACKET, FUNDING_SOURCE, GT, GTE, IMAGE, IN, IN_ARRAY, INTEGER, IP, IPV4, IPV6, JSON, LAND_OWNERSHIP, LAND_SIZE, LAND_TYPE, LT, LTE, MAX, MIMES, MIMETYPES, MIN, NOT_IN, NOT_PRESENT, NOT_REGEX, NUMERIC, OTHER_VALUE_PRESENT, OTHER_VALUE_NULL, OTHER_VALUE_STRING, ORGANISATION_CATEGORY, ORGANISATION_TYPE, PRESENT, REGEX, REJECTED_REASON, REPORTING_FREQUENCY, REPORTING_LEVEL, REQUIRED, REQUIRED_IF, REQUIRED_UNLESS, REQUIRED_WITH, REQUIRED_WITH_ALL, REQUIRED_WITHOUT, REQUIRED_WITHOUT_ALL, RESTORATION_GOAL, RESTORATION_METHOD, REVENUE_DRIVER, SAME, SIZE, SOFT_URL, STARTS_WITH, STARTS_WITH_FACEBOOK, STARTS_WITH_TWITTER, STARTS_WITH_INSTAGRAM, STARTS_WITH_LINKEDIN, STRICT_FLOAT, STRING, SUSTAINABLE_DEVELOPMENT_GOAL, TIMEZONE, TREE_SPECIES_OWNER, UNIQUE, UPLOADED, URL, UUID, VISIBILITY ``` ### Uploads Uploads should first be uploaded to the `/uploads` endpoint. Upon success an ID will be returned, this ID is valid for 1 day. Use this ID in your request body to bind the upload to a property. ### Elevator Videos Elevator videos can be created by using the `/elevator_videos` endpoint. After creating an elevator video you will be returned an elevator video ID. Use this to check its status. Elevator videos will start off as `processing` and change to `finished` when it has been build. Once the elevator video is built the `upload_id` property will be present, you can use this just like a regular upload and attach it to a pitch's `video` property. Be sure to use the elevator video's `upload_id` property and not its `id` property. An elevator video's status may end up as `errored` or `timed_out` in which case something has gone wrong. ### Entity Relationship Diagram ![](/images/erd.png) ### Units * All prices are measured in USD * All land is measured in hectares * All time is measured in months ### Drafts When creating a draft the `data` property be equal to a string of JSON containing an empty object. You can then manipulate the `data` property with subsequent updates. When updating a draft you will need to use [JSON Patch](http://jsonpatch.com/) requests to manipulate the `data` property. Operations are relative to the `data` property which means you don't need to preface paths with `/data`. * * OpenAPI spec version: 1.0.0 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.11-SNAPSHOT * * Do not edit the class manually. * */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['../ApiClient', '../model/AuthChange', '../model/AuthLogIn', '../model/AuthReset', '../model/AuthVerify', '../model/Empty', '../model/TokenRead', '../model/UserRead'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('../model/AuthChange'), require('../model/AuthLogIn'), require('../model/AuthReset'), require('../model/AuthVerify'), require('../model/Empty'), require('../model/TokenRead'), require('../model/UserRead')); } else { // Browser globals (root is window) if (!root.WriRestorationMarketplaceApi) { root.WriRestorationMarketplaceApi = {}; } root.WriRestorationMarketplaceApi.AuthApi = factory(root.WriRestorationMarketplaceApi.ApiClient, root.WriRestorationMarketplaceApi.AuthChange, root.WriRestorationMarketplaceApi.AuthLogIn, root.WriRestorationMarketplaceApi.AuthReset, root.WriRestorationMarketplaceApi.AuthVerify, root.WriRestorationMarketplaceApi.Empty, root.WriRestorationMarketplaceApi.TokenRead, root.WriRestorationMarketplaceApi.UserRead); } }(this, function(ApiClient, AuthChange, AuthLogIn, AuthReset, AuthVerify, Empty, TokenRead, UserRead) { 'use strict'; /** * Auth service. * @module api/AuthApi * @version 1.0.0 */ /** * Constructs a new AuthApi. * @alias module:api/AuthApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ var exports = function(apiClient) { this.apiClient = apiClient || ApiClient.instance; /** * Callback function to receive the result of the authChangePatch operation. * @callback module:api/AuthApi~authChangePatchCallback * @param {String} error Error message, if any. * @param {module:model/Empty} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Reset a user's or admin's password * @param {module:model/AuthChange} body * @param {module:api/AuthApi~authChangePatchCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Empty} */ this.authChangePatch = function(body, callback) { var postBody = body; // verify the required parameter 'body' is set if (body === undefined || body === null) { throw new Error("Missing the required parameter 'body' when calling authChangePatch"); } var pathParams = { }; var queryParams = { }; var collectionQueryParams = { }; var headerParams = { }; var formParams = { }; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; var returnType = Empty; return this.apiClient.callApi( '/auth/change', 'PATCH', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** * Callback function to receive the result of the authLoginPost operation. * @callback module:api/AuthApi~authLoginPostCallback * @param {String} error Error message, if any. * @param {module:model/TokenRead} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Log a user or admin in * @param {module:model/AuthLogIn} body * @param {module:api/AuthApi~authLoginPostCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/TokenRead} */ this.authLoginPost = function(body, callback) { var postBody = body; // verify the required parameter 'body' is set if (body === undefined || body === null) { throw new Error("Missing the required parameter 'body' when calling authLoginPost"); } var pathParams = { }; var queryParams = { }; var collectionQueryParams = { }; var headerParams = { }; var formParams = { }; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; var returnType = TokenRead; return this.apiClient.callApi( '/auth/login', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** * Callback function to receive the result of the authLogoutGet operation. * @callback module:api/AuthApi~authLogoutGetCallback * @param {String} error Error message, if any. * @param {module:model/Empty} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Log the logged in user or admin out * @param {module:api/AuthApi~authLogoutGetCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Empty} */ this.authLogoutGet = function(callback) { var postBody = null; var pathParams = { }; var queryParams = { }; var collectionQueryParams = { }; var headerParams = { }; var formParams = { }; var authNames = ['BearerAuth']; var contentTypes = []; var accepts = ['application/json']; var returnType = Empty; return this.apiClient.callApi( '/auth/logout', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** * Callback function to receive the result of the authMeGet operation. * @callback module:api/AuthApi~authMeGetCallback * @param {String} error Error message, if any. * @param {module:model/UserRead} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Read the logged in user or admin * @param {module:api/AuthApi~authMeGetCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/UserRead} */ this.authMeGet = function(callback) { var postBody = null; var pathParams = { }; var queryParams = { }; var collectionQueryParams = { }; var headerParams = { }; var formParams = { }; var authNames = ['BearerAuth']; var contentTypes = []; var accepts = ['application/json']; var returnType = UserRead; return this.apiClient.callApi( '/auth/me', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** * Callback function to receive the result of the authRefreshGet operation. * @callback module:api/AuthApi~authRefreshGetCallback * @param {String} error Error message, if any. * @param {module:model/TokenRead} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Refresh the logged in user's or admin's JWT token * @param {module:api/AuthApi~authRefreshGetCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/TokenRead} */ this.authRefreshGet = function(callback) { var postBody = null; var pathParams = { }; var queryParams = { }; var collectionQueryParams = { }; var headerParams = { }; var formParams = { }; var authNames = ['BearerAuth']; var contentTypes = []; var accepts = ['application/json']; var returnType = TokenRead; return this.apiClient.callApi( '/auth/refresh', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** * Callback function to receive the result of the authResendGet operation. * @callback module:api/AuthApi~authResendGetCallback * @param {String} error Error message, if any. * @param {module:model/Empty} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Send a verification email to the logged in user or admin * @param {module:api/AuthApi~authResendGetCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Empty} */ this.authResendGet = function(callback) { var postBody = null; var pathParams = { }; var queryParams = { }; var collectionQueryParams = { }; var headerParams = { }; var formParams = { }; var authNames = ['BearerAuth']; var contentTypes = []; var accepts = ['application/json']; var returnType = Empty; return this.apiClient.callApi( '/auth/resend', 'GET', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** * Callback function to receive the result of the authResetPost operation. * @callback module:api/AuthApi~authResetPostCallback * @param {String} error Error message, if any. * @param {module:model/Empty} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Send a password reset email to a user or admin * @param {module:model/AuthReset} body * @param {module:api/AuthApi~authResetPostCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Empty} */ this.authResetPost = function(body, callback) { var postBody = body; // verify the required parameter 'body' is set if (body === undefined || body === null) { throw new Error("Missing the required parameter 'body' when calling authResetPost"); } var pathParams = { }; var queryParams = { }; var collectionQueryParams = { }; var headerParams = { }; var formParams = { }; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; var returnType = Empty; return this.apiClient.callApi( '/auth/reset', 'POST', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } /** * Callback function to receive the result of the authVerifyPatch operation. * @callback module:api/AuthApi~authVerifyPatchCallback * @param {String} error Error message, if any. * @param {module:model/Empty} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Verify the logged in user's or admin's email address * @param {module:model/AuthVerify} body * @param {module:api/AuthApi~authVerifyPatchCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Empty} */ this.authVerifyPatch = function(body, callback) { var postBody = body; // verify the required parameter 'body' is set if (body === undefined || body === null) { throw new Error("Missing the required parameter 'body' when calling authVerifyPatch"); } var pathParams = { }; var queryParams = { }; var collectionQueryParams = { }; var headerParams = { }; var formParams = { }; var authNames = ['BearerAuth']; var contentTypes = ['application/json']; var accepts = ['application/json']; var returnType = Empty; return this.apiClient.callApi( '/auth/verify', 'PATCH', pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, callback ); } }; return exports; }));
(function( $ ) { 'use strict'; /** * (en)PreferenceService * @ko PreferenceService * @group Service * @name PreferenceService * @class */ pinpointApp.constant('PreferenceServiceConfig', { names: { favorite: "preference.favorite" }, defaults: { callee: 1, caller: 1, period: "5m" }, list: [{ name: "caller", type: "number" },{ name: "callee", type: "number" },{ name: "period", type: "string" }], cst: { periodType: { "RANGE": "range", "LAST": "last", "REALTIME": "realtime" }, periodTime: [ "5m", "20m", "1h", "3h", "6h", "12h", "1d", "2d"], depthList: [ 1, 2, 3, 4], maxFavorite: 5000, maxPeriod: 2, realtimeScatterPeriod: 5 * 60 * 1000,//5m responseType: [ "1s", "3s", "5s", "Slow", "Error" ], responseTypeColor: [ "#2ca02c", "#3c81fa", "#f8c731", "#f69124", "#f53034" ], agentAllStr: "All", updateTimes: [{ time: 10, label: "10 seconds" },{ time: 20, label: "20 seconds" }, { time: 30, label: "30 seconds" }, { time: 60, label: "1 minute" }], iconPath: "/images/icons/" } }); pinpointApp.service( "PreferenceService", [ "PreferenceServiceConfig", "webStorage", function( cfg, webStorage ) { var self = this; var oDefault = {}; var aFavoriteList = []; loadPreference(); this.addFavorite = function( applicationName ) { if ( aFavoriteList.length === cfg.cst.maxFavorite || aFavoriteList.indexOf( applicationName ) !== -1 ) { return; } aFavoriteList.push( applicationName ); setFavoriteList(); }; this.removeFavorite = function( applicationName ) { var index = aFavoriteList.indexOf( applicationName ); if ( index === -1 ) return; aFavoriteList.splice( index, 1 ); setFavoriteList(); }; function setFavoriteList() { webStorage.add(cfg.names.favorite, JSON.stringify(aFavoriteList) ); } this.getFavoriteList = function() { return aFavoriteList; }; this.getDepthList = function() { return cfg.cst.depthList; }; this.getPeriodTime = function() { return cfg.cst.periodTime; }; this.getPeriodType = function() { return cfg.cst.periodType; }; this.getMaxPeriod = function() { return cfg.cst.maxPeriod; }; this.getRealtimeScatterXRange = function() { return cfg.cst.realtimeScatterPeriod; }; this.getRealtimeScatterXRangeStr = function() { return (cfg.cst.realtimeScatterPeriod / 1000 / 60) + "m"; }; this.getResponseTypeColor = function() { return cfg.cst.responseTypeColor; }; this.getAgentAllStr = function() { return cfg.cst.agentAllStr; }; this.getUpdateTimes = function() { return cfg.cst.updateTimes; }; this.getResponseTypeFormat = function() { var o = {}; $.each( cfg.cst.responseType, function( index, value ) { o[value] = 0; }); return o; }; this.getCalleeByApp = function(app) { if ( angular.isUndefined( app ) ) { return this.getCallee(); } else { return webStorage.get( app + "+callee" ) || this.getCallee(); } }; this.getCallerByApp = function(app) { if ( angular.isUndefined( app ) ) { return this.getCaller(); } else { return webStorage.get(app + "+caller") || this.getCaller(); } }; this.setDepthByApp = function( app, depth ) { if (angular.isUndefined(app) || app === null || angular.isUndefined(depth) || depth === null) { return; } webStorage.add(app, depth); }; this.getIconPath = function() { return cfg.cst.iconPath; }; this.getTimezone = function() { return webStorage.get( "pinpoint-timezone" ) || moment.tz.guess(); }; this.setTimezone = function( timezone ) { webStorage.add( "pinpoint-timezone", timezone ); }; function loadPreference() { // set value of webStorage or default // and make getter and setter function $.each( cfg.list, function( index, value ) { var name = value.name; oDefault[name] = webStorage.get( name ) || cfg.defaults[name]; switch( value.type ) { case "number": oDefault[name] = parseInt( oDefault[name] ); break; } var fnPostfix = name.substring(0, 1).toUpperCase() + name.substring(1); self["get" + fnPostfix] = function() { return oDefault[name]; }; self["set" + fnPostfix] = function(v) { webStorage.add(name, v); oDefault[name] = v; }; }); try { aFavoriteList = JSON.parse(webStorage.get(cfg.names.favorite) || "[]"); }catch(e){ aFavoriteList = []; console.log( e ); } } }]); })( jQuery );
import CompanyCreateWarehouse from "views/Companies/CompanyCreateWarehouse.jsx"; import CompanyIndex from "views/Companies/CompanyIndex.jsx"; import CompanyWarehouse from "views/Companies/CompanyWarehouse.jsx"; import companyAddProductWarehouse from "views/Companies/companyAddProductWarehouse.jsx"; import CompanyProfile from "views/Companies/CompanyProfile.jsx"; import companyProvideFund from "views/Companies/companyProvideFund.jsx"; import CompanyDashboard from "views/Companies/CompanyDashboard.jsx"; var routes = [ { path: "/index", name: "Dashboard", icon: "ni ni-tv-2 text-green", component: CompanyIndex, layout: "/company" }, { path: "/profile", name: "Profile", icon: "ni ni-tv-2 text-blue", component: CompanyProfile, layout: "/company" }, { path: "/payment", name: "Transfer Fund", icon: "ni ni-tv-2 text-green", component: companyProvideFund, layout: "/company" }, { path: "/addproduct", name: "Product Warehouse", icon: "ni ni-tv-2 text-green", component: companyAddProductWarehouse, layout: "/company" }, { path: "/warehouse", name: "Warehouse", icon: "ni ni-tv-2 text-green", component: CompanyWarehouse, layout: "/company" }, { path: "/createwarehouse", name: "Create Warehouse", icon: "ni ni-tv-2 text-green", component: CompanyCreateWarehouse, layout: "/company" } ]; export default routes;
/* This matcher makes it easier to write tests against Datadog metrics by providing the `toHaveSentMetrics` matcher. Examples: it('makes sure a metric of a certain type and name was sent', async () => { await expect(async () => { await someCode() }).toHaveSentMetrics({ name: 'jira-integration.my-metric', type: 'c', // c for count, h for histogram, etc }) }) it('checks value', async () => { await expect(async () => { await someCode() }).toHaveSentMetrics({ name: 'jira-integration.my-metric', type: 'c', value: 1 // incremented by 1 }) }) it('checks dynamic value', async () => { await expect(async () => { await someCode() }).toHaveSentMetrics({ name: 'jira-integration.my-metric', type: 'c', value: (value) => value > 0 // make sure value is greater than 1 }) }) it('checks tags too', async () => { await expect(async () => { await someCode() }).toHaveSentMetrics({ name: 'jira-integration.my-metric', type: 'c', tags: { code: 200 } // will ensure that `code:200` is present }) }) */ const statsd = require('../../../lib/config/statsd') const diff = require('jest-diff') const parseStatsdMessage = (stastsdMessage) => { const [metric, type, tagsString] = stastsdMessage.split('|') const [name, value] = metric.split(':') const tags = {} tagsString.substring(1).split(',').map((tagString) => { const [key, value] = tagString.split(':') tags[key] = value }) return { name, value: parseInt(value), type, tags } } expect.extend({ async toHaveSentMetrics (testFunction, ...expectedMetrics) { statsd.mockBuffer = [] await testFunction() const actualMetrics = statsd.mockBuffer.map((message) => parseStatsdMessage(message)) const matchingMetrics = [] expectedMetrics.forEach((expectedMetric) => { return actualMetrics.find((actualMetric) => { const matchingName = actualMetric.name === expectedMetric.name const matchingType = actualMetric.type === expectedMetric.type let matchingValue = null if (typeof expectedMetric.value === 'function') { matchingValue = expectedMetric.value(actualMetric.value) } else { matchingValue = actualMetric.value === expectedMetric.value } if (matchingName && matchingType && matchingValue) { let matchingTags = true Object.entries(expectedMetric.tags).forEach(([name, expectedValue]) => { if (actualMetric.tags[name] !== expectedValue) { matchingTags = false } }) if (matchingTags) { matchingMetrics.push(actualMetric) } } }) }) const pass = matchingMetrics.length === expectedMetrics.length return { message: () => { const diffString = diff(expectedMetrics, actualMetrics, { expand: true }) return this.utils.matcherHint('toHaveSentMetrics', 'function', 'metrics') + `\n\n${diffString}` }, pass } } })
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ 'use strict'; import { onUnexpectedError } from '../../../base/common/errors'; import { isFalsyOrEmpty } from '../../../base/common/arrays'; import { TimeoutTimer } from '../../../base/common/async'; import { Emitter } from '../../../base/common/event'; import { dispose } from '../../../base/common/lifecycle'; import { TPromise } from '../../../base/common/winjs.base'; import { SuggestRegistry, SuggestTriggerKind } from '../../common/modes'; import { Selection } from '../../common/core/selection'; import { provideSuggestionItems, getSuggestionComparator } from './suggest'; import { CompletionModel } from './completionModel'; import { CursorChangeReason } from '../../common/controller/cursorEvents'; var LineContext = /** @class */ (function () { function LineContext(model, position, auto) { this.leadingLineContent = model.getLineContent(position.lineNumber).substr(0, position.column - 1); this.leadingWord = model.getWordUntilPosition(position); this.lineNumber = position.lineNumber; this.column = position.column; this.auto = auto; } LineContext.shouldAutoTrigger = function (editor) { var model = editor.getModel(); if (!model) { return false; } var pos = editor.getPosition(); model.tokenizeIfCheap(pos.lineNumber); var word = model.getWordAtPosition(pos); if (!word) { return false; } if (word.endColumn !== pos.column) { return false; } if (!isNaN(Number(word.word))) { return false; } return true; }; return LineContext; }()); export { LineContext }; var SuggestModel = /** @class */ (function () { function SuggestModel(editor) { var _this = this; this._toDispose = []; this._triggerRefilter = new TimeoutTimer(); this._onDidCancel = new Emitter(); this._onDidTrigger = new Emitter(); this._onDidSuggest = new Emitter(); this.onDidCancel = this._onDidCancel.event; this.onDidTrigger = this._onDidTrigger.event; this.onDidSuggest = this._onDidSuggest.event; this._editor = editor; this._state = 0 /* Idle */; this._triggerAutoSuggestPromise = null; this._requestPromise = null; this._completionModel = null; this._context = null; this._currentSelection = this._editor.getSelection() || new Selection(1, 1, 1, 1); // wire up various listeners this._toDispose.push(this._editor.onDidChangeModel(function () { _this._updateTriggerCharacters(); _this.cancel(); })); this._toDispose.push(this._editor.onDidChangeModelLanguage(function () { _this._updateTriggerCharacters(); _this.cancel(); })); this._toDispose.push(this._editor.onDidChangeConfiguration(function () { _this._updateTriggerCharacters(); _this._updateQuickSuggest(); })); this._toDispose.push(SuggestRegistry.onDidChange(function () { _this._updateTriggerCharacters(); _this._updateActiveSuggestSession(); })); this._toDispose.push(this._editor.onDidChangeCursorSelection(function (e) { _this._onCursorChange(e); })); this._toDispose.push(this._editor.onDidChangeModelContent(function (e) { _this._refilterCompletionItems(); })); this._updateTriggerCharacters(); this._updateQuickSuggest(); } SuggestModel.prototype.dispose = function () { dispose([this._onDidCancel, this._onDidSuggest, this._onDidTrigger, this._triggerCharacterListener, this._triggerRefilter]); this._toDispose = dispose(this._toDispose); dispose(this._completionModel); this.cancel(); }; // --- handle configuration & precondition changes SuggestModel.prototype._updateQuickSuggest = function () { this._quickSuggestDelay = this._editor.getConfiguration().contribInfo.quickSuggestionsDelay; if (isNaN(this._quickSuggestDelay) || (!this._quickSuggestDelay && this._quickSuggestDelay !== 0) || this._quickSuggestDelay < 0) { this._quickSuggestDelay = 10; } }; SuggestModel.prototype._updateTriggerCharacters = function () { var _this = this; dispose(this._triggerCharacterListener); if (this._editor.getConfiguration().readOnly || !this._editor.getModel() || !this._editor.getConfiguration().contribInfo.suggestOnTriggerCharacters) { return; } var supportsByTriggerCharacter = Object.create(null); for (var _i = 0, _a = SuggestRegistry.all(this._editor.getModel()); _i < _a.length; _i++) { var support = _a[_i]; if (isFalsyOrEmpty(support.triggerCharacters)) { continue; } for (var _b = 0, _c = support.triggerCharacters; _b < _c.length; _b++) { var ch = _c[_b]; var array = supportsByTriggerCharacter[ch]; if (!array) { supportsByTriggerCharacter[ch] = [support]; } else { array.push(support); } } } this._triggerCharacterListener = this._editor.onDidType(function (text) { var lastChar = text.charAt(text.length - 1); var supports = supportsByTriggerCharacter[lastChar]; if (supports) { // keep existing items that where not computed by the // supports/providers that want to trigger now var items = []; if (_this._completionModel) { for (var _i = 0, _a = _this._completionModel.items; _i < _a.length; _i++) { var item = _a[_i]; if (supports.indexOf(item.support) < 0) { items.push(item); } } } _this.trigger({ auto: true, triggerCharacter: lastChar }, Boolean(_this._completionModel), supports, items); } }); }; Object.defineProperty(SuggestModel.prototype, "state", { // --- trigger/retrigger/cancel suggest get: function () { return this._state; }, enumerable: true, configurable: true }); SuggestModel.prototype.cancel = function (retrigger) { if (retrigger === void 0) { retrigger = false; } this._triggerRefilter.cancel(); if (this._triggerAutoSuggestPromise) { this._triggerAutoSuggestPromise.cancel(); this._triggerAutoSuggestPromise = null; } if (this._requestPromise) { this._requestPromise.cancel(); this._requestPromise = null; } this._state = 0 /* Idle */; dispose(this._completionModel); this._completionModel = null; this._context = null; this._onDidCancel.fire({ retrigger: retrigger }); }; SuggestModel.prototype._updateActiveSuggestSession = function () { if (this._state !== 0 /* Idle */) { if (!SuggestRegistry.has(this._editor.getModel())) { this.cancel(); } else { this.trigger({ auto: this._state === 2 /* Auto */ }, true); } } }; SuggestModel.prototype._onCursorChange = function (e) { var _this = this; var prevSelection = this._currentSelection; this._currentSelection = this._editor.getSelection(); if (!e.selection.isEmpty() || e.reason !== CursorChangeReason.NotSet || (e.source !== 'keyboard' && e.source !== 'deleteLeft')) { // Early exit if nothing needs to be done! // Leave some form of early exit check here if you wish to continue being a cursor position change listener ;) if (this._state !== 0 /* Idle */) { this.cancel(); } return; } if (!SuggestRegistry.has(this._editor.getModel())) { return; } var model = this._editor.getModel(); if (!model) { return; } if (this._state === 0 /* Idle */) { // trigger 24x7 IntelliSense when idle, enabled, when cursor // moved RIGHT, and when at a good position if (this._editor.getConfiguration().contribInfo.quickSuggestions !== false && (prevSelection.containsRange(this._currentSelection) || prevSelection.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))) { this.cancel(); this._triggerAutoSuggestPromise = TPromise.timeout(this._quickSuggestDelay); this._triggerAutoSuggestPromise.then(function () { if (LineContext.shouldAutoTrigger(_this._editor)) { var model_1 = _this._editor.getModel(); var pos = _this._editor.getPosition(); if (!model_1) { return; } // validate enabled now var quickSuggestions = _this._editor.getConfiguration().contribInfo.quickSuggestions; if (quickSuggestions === false) { return; } else if (quickSuggestions === true) { // all good } else { // Check the type of the token that triggered this model_1.tokenizeIfCheap(pos.lineNumber); var lineTokens = model_1.getLineTokens(pos.lineNumber); var tokenType = lineTokens.getStandardTokenType(lineTokens.findTokenIndexAtOffset(Math.max(pos.column - 1 - 1, 0))); var inValidScope = quickSuggestions.other && tokenType === 0 /* Other */ || quickSuggestions.comments && tokenType === 1 /* Comment */ || quickSuggestions.strings && tokenType === 2 /* String */; if (!inValidScope) { return; } } _this.trigger({ auto: true }); } _this._triggerAutoSuggestPromise = null; }); } } }; SuggestModel.prototype._refilterCompletionItems = function () { var _this = this; if (this._state === 0 /* Idle */) { return; } var model = this._editor.getModel(); if (model) { // refine active suggestion this._triggerRefilter.cancelAndSet(function () { var position = _this._editor.getPosition(); var ctx = new LineContext(model, position, _this._state === 2 /* Auto */); _this._onNewContext(ctx); }, 25); } }; SuggestModel.prototype.trigger = function (context, retrigger, onlyFrom, existingItems) { var _this = this; if (retrigger === void 0) { retrigger = false; } var model = this._editor.getModel(); if (!model) { return; } var auto = context.auto; var ctx = new LineContext(model, this._editor.getPosition(), auto); // Cancel previous requests, change state & update UI this.cancel(retrigger); this._state = auto ? 2 /* Auto */ : 1 /* Manual */; this._onDidTrigger.fire({ auto: auto }); // Capture context when request was sent this._context = ctx; // Build context for request var suggestCtx; if (context.triggerCharacter) { suggestCtx = { triggerKind: SuggestTriggerKind.TriggerCharacter, triggerCharacter: context.triggerCharacter }; } else if (onlyFrom && onlyFrom.length) { suggestCtx = { triggerKind: SuggestTriggerKind.TriggerForIncompleteCompletions }; } else { suggestCtx = { triggerKind: SuggestTriggerKind.Invoke }; } this._requestPromise = provideSuggestionItems(model, this._editor.getPosition(), this._editor.getConfiguration().contribInfo.snippetSuggestions, onlyFrom, suggestCtx).then(function (items) { _this._requestPromise = null; if (_this._state === 0 /* Idle */) { return; } var model = _this._editor.getModel(); if (!model) { return; } if (!isFalsyOrEmpty(existingItems)) { var cmpFn = getSuggestionComparator(_this._editor.getConfiguration().contribInfo.snippetSuggestions); items = items.concat(existingItems).sort(cmpFn); } var ctx = new LineContext(model, _this._editor.getPosition(), auto); dispose(_this._completionModel); _this._completionModel = new CompletionModel(items, _this._context.column, { leadingLineContent: ctx.leadingLineContent, characterCountDelta: _this._context ? ctx.column - _this._context.column : 0 }, _this._editor.getConfiguration().contribInfo.snippetSuggestions); _this._onNewContext(ctx); }).then(null, onUnexpectedError); }; SuggestModel.prototype._onNewContext = function (ctx) { if (!this._context) { // happens when 24x7 IntelliSense is enabled and still in its delay return; } if (ctx.lineNumber !== this._context.lineNumber) { // e.g. happens when pressing Enter while IntelliSense is computed this.cancel(); return; } if (ctx.leadingWord.startColumn < this._context.leadingWord.startColumn) { // happens when the current word gets outdented this.cancel(); return; } if (ctx.column < this._context.column) { // typed -> moved cursor LEFT -> retrigger if still on a word if (ctx.leadingWord.word) { this.trigger({ auto: this._context.auto }, true); } else { this.cancel(); } return; } if (!this._completionModel) { // happens when IntelliSense is not yet computed return; } if (ctx.column > this._context.column && this._completionModel.incomplete && ctx.leadingWord.word.length !== 0) { // typed -> moved cursor RIGHT & incomple model & still on a word -> retrigger var _a = this._completionModel.resolveIncompleteInfo(), complete = _a.complete, incomplete = _a.incomplete; this.trigger({ auto: this._state === 2 /* Auto */ }, true, incomplete, complete); } else { // typed -> moved cursor RIGHT -> update UI var oldLineContext = this._completionModel.lineContext; var isFrozen = false; this._completionModel.lineContext = { leadingLineContent: ctx.leadingLineContent, characterCountDelta: ctx.column - this._context.column }; if (this._completionModel.items.length === 0) { if (LineContext.shouldAutoTrigger(this._editor) && this._context.leadingWord.endColumn < ctx.leadingWord.startColumn) { // retrigger when heading into a new word this.trigger({ auto: this._context.auto }, true); return; } if (!this._context.auto) { // freeze when IntelliSense was manually requested this._completionModel.lineContext = oldLineContext; isFrozen = this._completionModel.items.length > 0; if (isFrozen && ctx.leadingWord.word.length === 0) { // there were results before but now there aren't // and also we are not on a word anymore -> cancel this.cancel(); return; } } else { // nothing left this.cancel(); return; } } this._onDidSuggest.fire({ completionModel: this._completionModel, auto: this._context.auto, isFrozen: isFrozen, }); } }; return SuggestModel; }()); export { SuggestModel };
"use strict"; var path = require("path"); var shell = require('shelljs'); var assert = require('assert'); var helper = require("../helper.js"); var extKey = 'aa39b5490c4a4ed0e56d7ec1232a428f7ad78ebb7347db3fc9875cb10c2bce39bbf8aabacf9e00420afb580b15698c04ce10d659d1972ebc53e76b6bbae0c113bee1e23062800bc830e4c329ca913fefebd1f1222295cf2eb5486224044b4d0c'; var soajs = helper.requireModule('index.js'); var assert = require('assert'); var helper = require("../helper.js"); var shell = require('shelljs'); describe("Proxy Tests", function () { let controller; before(function (done) { controller = new soajs.server.controller(); controller.init(function() { console.log("**** start controller init"); controller.start(done); }); }); after(function (done) { controller.stop(done); }); it("Get permissions", function (done) { var options = { uri: 'http://127.0.0.1:4000/key/permission/get', headers: { 'Content-Type': 'application/json', key: extKey } }; helper.requester('get', options, function (error, body) { // assert.ifError(error); // assert.ok(body); done(); }); }); });
/** * Service for todo operations. */ 'use strict'; const mongoose = require('mongoose'), TODO = mongoose.model('todos'); /** * Returns an array of todo object matching the search parameters. * * @param {Object} params {Search parameters} */ exports.search = function (params) { const promise = TODO.find(params).exec(); return promise; }; /** * Saves and returns the new todo object. * * @param {Object} todo {todo object} */ exports.save = function (todo) { const newtodo = new TODO({ title: todo.title , description: todo.description, dueDate : todo.dueDate,time:todo.time,completed:todo.completed}); console.log(todo.name +" "+todo.content); newtodo const promise = newtodo.save(); return promise; }; /** * Returns the todo object matching the id. * * @param {string} todoId {Id of the todo object} */ exports.get = function (todoId) { const promise = TODO.findById(todoId).exec(); return promise }; /** * Updates and returns the todo object. * * @param {Object} todo {todo object} */ exports.update = function (todo) { todo.modified_date = new Date(); const promise = TODO.findOneAndUpdate({_id: todo._id}, todo,{new: true}).exec(); return promise; }; /** * Deletes the object matching the id. * * @param {string} todoId {Id of the todo object} */ exports.delete = function (todoId) { const promise = TODO.remove({_id: todoId}); return promise; };
import defaultStyleOptions from './defaultStyleOptions'; // TODO: [P4] We should add a notice for people who want to use "styleSet" instead of "styleOptions". // "styleSet" is actually CSS stylesheet and it is based on the DOM tree. // DOM tree may change from time to time, thus, maintaining "styleSet" becomes a constant effort. // eslint-disable-next-line complexity export default function patchStyleOptions( options, { groupTimestamp: groupTimestampFromProps, sendTimeout: sendTimeoutFromProps } ) { const patchedOptions = { ...defaultStyleOptions, ...options }; // Keep this list flat (no nested style) and serializable (no functions) // TODO: [P4] Deprecate this code after bump to v5 const { bubbleFromUserNubOffset, bubbleNubOffset, emojiSet } = patchedOptions; if (bubbleFromUserNubOffset === 'top') { patchedOptions.bubbleFromUserNubOffset = 0; } else if (typeof bubbleFromUserNubOffset !== 'number') { patchedOptions.bubbleFromUserNubOffset = -0; } if (bubbleNubOffset === 'top') { patchedOptions.bubbleNubOffset = 0; } else if (typeof bubbleNubOffset !== 'number') { patchedOptions.bubbleNubOffset = -0; } if (emojiSet === true) { patchedOptions.emojiSet = { ':)': '😊', ':-)': '😊', '(:': '😊', '(-:': '😊', ':-|': '😐', ':|': '😐', ':-(': '☹️', ':(': '☹️', ':-D': '😀', ':D': '😀', ':-p': '😛', ':p': '😛', ':-P': '😛', ':P': '😛', ':-o': '😲', ':o': '😲', ':O': '😲', ':-O': '😲', ':-0': '😲', ':0': '😲', ';-)': '😉', ';)': '😉', '<3': '❤️', '</3': '💔', '<\\3': '💔' }; } else if (Object.prototype.toString.call(patchedOptions.emojiSet) !== '[object Object]') { console.warn('botframework-webchat: emojiSet must be a boolean or an object with emoticon: emojiValues'); patchedOptions.emojiSet = false; } if (typeof groupTimestampFromProps !== 'undefined' && typeof options.groupTimestamp === 'undefined') { console.warn( 'Web Chat: "groupTimestamp" has been moved to "styleOptions". This deprecation migration will be removed on or after January 1 2022.' ); patchedOptions.groupTimestamp = groupTimestampFromProps; } if (typeof sendTimeoutFromProps !== 'undefined' && typeof options.sendTimeout === 'undefined') { console.warn( 'Web Chat: "sendTimeout" has been moved to "styleOptions". This deprecation migration will be removed on or after January 1 2022.' ); patchedOptions.sendTimeout = sendTimeoutFromProps; } if (patchedOptions.slowConnectionAfter < 0) { console.warn('Web Chat: "slowConnectionAfter" cannot be negative, will set to 0.'); patchedOptions.slowConnectionAfter = 0; } return patchedOptions; }
const Sequelize = require('sequelize'); const sequelize = require('../util/database'); const User = sequelize.define('user', { id: { type: Sequelize.INTEGER, autoIncrement: true, primaryKey: true, allowNull: false, }, name: { type: Sequelize.TEXT, allowNull: false, }, email: { type: Sequelize.TEXT, allowNull: false, }, password: { type: Sequelize.TEXT, allowNull: false, }, admin: { type: Sequelize.BOOLEAN, allowNull: true, }, testUser: { type: Sequelize.BOOLEAN, allowNull: true, }, }); module.exports = User;
const averageScore = (score1, score2, score3) => (score1 + score2 + score3)/3; function checkWinner (score1, score2) { if (score1 > score2) console.log(`Dolphins won with an average score of ${score1}`); else if (score2 > score1) console.log(`Koalas won with an average score of ${score2}`); else if (score1 === score2) console.log(`Koalas and Doplhins tied with an average score of ${score2}`); } let dolphinsAvgScore = averageScore(44, 23, 71); let koalasAvgScore = averageScore(65, 54, 49); console.log(dolphinsAvgScore); console.log(koalasAvgScore); checkWinner(dolphinsAvgScore, koalasAvgScore); dolphinsAvgScore = averageScore(85, 54, 41); koalasAvgScore = averageScore(23, 34, 27); console.log(dolphinsAvgScore); console.log(koalasAvgScore); checkWinner(dolphinsAvgScore, koalasAvgScore);
(window.webpackJsonp=window.webpackJsonp||[]).push([[1212],{2507:function(s,t,a){"use strict";a.r(t);var e=a(18),r=Object(e.a)({},(function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[a("h1",{attrs:{id:"pilotpi-使用-ubuntu-server-操作系统"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pilotpi-使用-ubuntu-server-操作系统"}},[s._v("#")]),s._v(" PilotPi 使用 Ubuntu Server 操作系统")]),s._v(" "),a("div",{staticClass:"custom-block warning"},[a("p",{staticClass:"custom-block-title"},[s._v("注意")]),s._v(" "),a("p",[s._v("Ubuntu Server on RPi 4B consumes a lot of current and generates a lot of heat. Design for better heat dissipation and high power consumption when using this hardware.")])]),s._v(" "),a("h2",{attrs:{id:"开发者快速指南"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#开发者快速指南"}},[s._v("#")]),s._v(" 开发者快速指南")]),s._v(" "),a("h3",{attrs:{id:"操作系统镜像"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#操作系统镜像"}},[s._v("#")]),s._v(" 操作系统镜像")]),s._v(" "),a("p",[s._v("请从官方 "),a("a",{attrs:{href:"https://cdimage.ubuntu.com/releases/",target:"_blank",rel:"noopener noreferrer"}},[s._v("cdimage"),a("OutboundLink")],1),s._v(" 页面获取最新更新的操作系统。")]),s._v(" "),a("h4",{attrs:{id:"armhf"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#armhf"}},[s._v("#")]),s._v(" armhf")]),s._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"https://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-preinstalled-server-armhf+raspi2.img.xz",target:"_blank",rel:"noopener noreferrer"}},[s._v("Ubuntu Server 18.04.5 for RPi2"),a("OutboundLink")],1)]),s._v(" "),a("li",[a("a",{attrs:{href:"https://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-preinstalled-server-armhf+raspi3.img.xz.zsync",target:"_blank",rel:"noopener noreferrer"}},[s._v("Ubuntu Server 18.04.5 for RPi3"),a("OutboundLink")],1)]),s._v(" "),a("li",[a("a",{attrs:{href:"https://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-preinstalled-server-armhf+raspi4.img.xz",target:"_blank",rel:"noopener noreferrer"}},[s._v("Ubuntu Server 18.04.5 for RPi4"),a("OutboundLink")],1)]),s._v(" "),a("li",[a("a",{attrs:{href:"https://cdimage.ubuntu.com/releases/20.04.1/release/ubuntu-20.04.1-preinstalled-server-armhf+raspi.img.xz",target:"_blank",rel:"noopener noreferrer"}},[s._v("Ubuntu Server 20.04.1 for RPi 2/3/4"),a("OutboundLink")],1)])]),s._v(" "),a("h4",{attrs:{id:"arm64"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#arm64"}},[s._v("#")]),s._v(" arm64")]),s._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"https://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-preinstalled-server-arm64+raspi3.img.xz",target:"_blank",rel:"noopener noreferrer"}},[s._v("Ubuntu Server 18.04.5 for RPi3"),a("OutboundLink")],1)]),s._v(" "),a("li",[a("a",{attrs:{href:"https://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-preinstalled-server-arm64+raspi4.img.xz",target:"_blank",rel:"noopener noreferrer"}},[s._v("Ubuntu Server 18.04.5 for RPi4"),a("OutboundLink")],1)]),s._v(" "),a("li",[a("a",{attrs:{href:"https://cdimage.ubuntu.com/releases/20.04.1/release/ubuntu-20.04.1-preinstalled-server-arm64+raspi.img.xz",target:"_blank",rel:"noopener noreferrer"}},[s._v("Ubuntu Server 20.04.1 for RPi 3/4"),a("OutboundLink")],1)])]),s._v(" "),a("h4",{attrs:{id:"最新操作系统"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#最新操作系统"}},[s._v("#")]),s._v(" 最新操作系统")]),s._v(" "),a("p",[s._v("当首次设置树莓派的 WiFi 时,我们建议先使用有线网络连接你的路由器与树莓派,并使用显示器和键盘。")]),s._v(" "),a("h3",{attrs:{id:"首次启动"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#首次启动"}},[s._v("#")]),s._v(" 首次启动")]),s._v(" "),a("p",[s._v("When setting up RaPi's WiFi for the first time we recommended using a wired Ethernet connection between your home router and RPi, and a monitor and keyboard.")]),s._v(" "),a("h4",{attrs:{id:"启动前"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#启动前"}},[s._v("#")]),s._v(" 启动前")]),s._v(" "),a("p",[s._v("现在将 SD 卡插入您的 Pi 并首次开机。 请确认您可以获得树莓派的 shell —— 通过有线以太网连接 SSH ,或直接通过键盘和显示器。")]),s._v(" "),a("p",[s._v("Now plug the SD card onto your Pi and boot for the first time. Make sure you have shell access to the RPi - either SSH connection over wired Ethernet, or direct accessing with keyboard and monitor.")]),s._v(" "),a("h4",{attrs:{id:"wifi-区域"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#wifi-区域"}},[s._v("#")]),s._v(" WiFi 区域")]),s._v(" "),a("p",[s._v("First install required package:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("apt-get")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("install")]),s._v(" crda\n")])])]),a("p",[s._v("Edit the file "),a("code",[s._v("/etc/default/crda")]),s._v(" to change the correct WiFi region. "),a("a",{attrs:{href:"https://www.arubanetworks.com/techdocs/InstantWenger_Mobile/Advanced/Content/Instant%20User%20Guide%20-%20volumes/Country_Codes_List.htm",target:"_blank",rel:"noopener noreferrer"}},[s._v("Reference List"),a("OutboundLink")],1)]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("nano")]),s._v(" /etc/default/crda\n")])])]),a("p",[s._v("让我们先设置主机名。")]),s._v(" "),a("h4",{attrs:{id:"主机名和-mdns"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#主机名和-mdns"}},[s._v("#")]),s._v(" 主机名和 mDNS")]),s._v(" "),a("p",[s._v("Let's set up hostname at first.")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("nano")]),s._v(" /etc/hostname\n")])])]),a("p",[s._v("Change the hostname to whatever you like. Then install the package required by mDNS:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("apt-get")]),s._v(" update\n"),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("apt-get")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("install")]),s._v(" avahi-daemon\n")])])]),a("p",[s._v("在上述操作后通过无线网络重新连回树莓派。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("reboot")]),s._v("\n")])])]),a("p",[s._v("您也可能想要设置 "),a("a",{attrs:{href:"https://www.raspberrypi.org/documentation/remote-access/ssh/passwordless.md",target:"_blank",rel:"noopener noreferrer"}},[s._v("无密码认证"),a("OutboundLink")],1),s._v("。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("ssh")]),s._v(" ubuntu@pi_hostname.local\n")])])]),a("h4",{attrs:{id:"无密码认证-可选"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#无密码认证-可选"}},[s._v("#")]),s._v(" 无密码认证(可选)")]),s._v(" "),a("p",[s._v("在 Ubuntu 中的相应文件是 "),a("code",[s._v("/boot/firmware/usercfg.txt")]),s._v("。")]),s._v(" "),a("h3",{attrs:{id:"配置操作系统"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#配置操作系统"}},[s._v("#")]),s._v(" 配置操作系统")]),s._v(" "),a("h4",{attrs:{id:"config-txt"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-txt"}},[s._v("#")]),s._v(" config.txt")]),s._v(" "),a("p",[s._v("将文件内容替换为:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("nano")]),s._v(" /boot/firmware/usercfg.txt\n")])])]),a("p",[s._v("Ubuntu Server 20.04:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[s._v("# enable sc16is752 overlay")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("dtoverlay")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("sc16is752-spi1\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[s._v("# enable I2C-1 and set the frequency to 400KHz")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("dtparam")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("i2c_arm"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("on,i2c_arm_baudrate"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("400000")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[s._v("# enable spidev0.0")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("dtparam")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("spi"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("on\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[s._v("# enable RC input")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("enable_uart")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("1")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[s._v("# enable I2C-0")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("dtparam")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("i2c_vc"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("on\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[s._v("# switch Bluetooth to miniuart")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("dtoverlay")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("miniuart-bt\n")])])]),a("h4",{attrs:{id:"cmdline-txt"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cmdline-txt"}},[s._v("#")]),s._v(" cmdline.txt")]),s._v(" "),a("p",[s._v("在Ubuntu Server 18.04 或更早版本,"),a("code",[s._v("nobtcmd.txt")]),s._v(" 和 "),a("code",[s._v("btcmd.txt")]),s._v(" 都需要修改。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("nano")]),s._v(" /boot/firmware/cmdline.txt\n")])])]),a("p",[s._v("找到 "),a("code",[s._v("console=/dev/ttyAMA0,115200")]),s._v(" 并删除该部分以禁用串口上的登录shell。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("nano")]),s._v(" /boot/firmware/nobtcmd.txt\n")])])]),a("p",[s._v("Find "),a("code",[s._v("console=/dev/ttyAMA0,115200")]),s._v(" and remove that part to disable the login shell on serial interface.")]),s._v(" "),a("p",[s._v("这告诉Linux内核不要在 CPU 核心2 上调度任何进程。 我们将在稍后手动在该核心运行PX4。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[s._v("net.ifnames"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("0")]),s._v(" dwc_otg.lpm_enable"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("0")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("console")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("tty1 "),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("root")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("LABEL"),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("writable "),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("rootfstype")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("ext4 "),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("elevator")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("deadline rootwait fixrtc "),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("isolcpus")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("2")]),s._v("\n")])])]),a("p",[s._v("The above line tells the Linux kernel do not schedule any process on CPU core 2. We will manually run PX4 onto that core later.")]),s._v(" "),a("p",[s._v("检查串口:")]),s._v(" "),a("p",[s._v("应该有 "),a("code",[s._v("/dev/ttyAMA0")]),s._v(", "),a("code",[s._v("/dev/ttySC0")]),s._v(" 和 "),a("code",[s._v("/dev/ttySC1")]),s._v("。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("ls")]),s._v(" /dev/tty*\n")])])]),a("p",[s._v("检查 I2C:")]),s._v(" "),a("p",[s._v("应该有 "),a("code",[s._v("/dev/i2c-0")]),s._v(" 和 "),a("code",[s._v("/dev/i2c-1")])]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("ls")]),s._v(" /dev/i2c*\n")])])]),a("p",[s._v("检查SPI::")]),s._v(" "),a("p",[s._v("应该有 "),a("code",[s._v("/dev/spidev0.0")]),s._v("。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("ls")]),s._v(" /dev/spidev*\n")])])]),a("p",[s._v("There should be "),a("code",[s._v("/dev/spidev0.0")]),s._v(".")]),s._v(" "),a("h4",{attrs:{id:"rc-local"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#rc-local"}},[s._v("#")]),s._v(" rc.local")]),s._v(" "),a("p",[s._v("In this section we will configure the auto-start script in "),a("strong",[s._v("rc.local")]),s._v(". Note that we need to create this file, as it is not present on a fresh Ubuntu OS.")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("nano")]),s._v(" /etc/rc.local\n")])])]),a("p",[s._v("Append the content below to the file:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token shebang important"}},[s._v("#!/bin/sh")]),s._v("\n\n"),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("echo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[s._v('"25"')]),s._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v(" /sys/class/gpio/export\n"),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("echo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[s._v('"in"')]),s._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v(" /sys/class/gpio/gpio25/direction\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[s._v("if")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[s._v("[")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token variable"}},[a("span",{pre:!0,attrs:{class:"token variable"}},[s._v("$(")]),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("cat")]),s._v(" /sys/class/gpio/gpio25/value"),a("span",{pre:!0,attrs:{class:"token variable"}},[s._v(")")])]),s._v(" -eq "),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("1")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[s._v("]")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[s._v(";")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[s._v("then")]),s._v("\n "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("echo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[s._v('"Launching PX4"')]),s._v("\n "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("cd")]),s._v(" /home/ubuntu/px4 "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[s._v(";")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("nohup")]),s._v(" taskset -c "),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("2")]),s._v(" ./bin/px4 -d -s pilotpi_mc.config "),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("2")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("&>")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("1")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v(" /home/ubuntu/px4/px4.log "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("&")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[s._v("fi")]),s._v("\n"),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("echo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[s._v('"25"')]),s._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v(">")]),s._v(" /sys/class/gpio/unexport\n\n"),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("exit")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("0")]),s._v("\n")])])]),a("p",[s._v("Save and exit. Then set the correct permissions:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("chmod")]),s._v(" +x /etc/rc.local\n")])])]),a("div",{staticClass:"custom-block note"},[a("p",{staticClass:"custom-block-title"},[s._v("注解")]),s._v(" "),a("p",[s._v("Don't forget to turn off the switch when it is not needed!")])]),s._v(" "),a("h4",{attrs:{id:"csi-相机"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#csi-相机"}},[s._v("#")]),s._v(" CSI 相机")]),s._v(" "),a("div",{staticClass:"custom-block warning"},[a("p",{staticClass:"custom-block-title"},[s._v("注意")]),s._v(" "),a("p",[s._v("Enable CSI camera will stop anything works on I2C-0.")])]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("nano")]),s._v(" /boot/firmware/usercfg.txt\n")])])]),a("p",[s._v("或")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("start_x")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("1")]),s._v("\n")])])]),a("h3",{attrs:{id:"构建代码"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#构建代码"}},[s._v("#")]),s._v(" 构建代码")]),s._v(" "),a("p",[s._v("此外,我们需要设置用户名:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("git")]),s._v(" clone https://github.com/PX4/PX4-Autopilot.git --recursive\n")])])]),a("div",{staticClass:"custom-block note"},[a("p",{staticClass:"custom-block-title"},[s._v("注解")]),s._v(" "),a("p",[s._v("This is all you need to do just to build the latest code.")])]),s._v(" "),a("h4",{attrs:{id:"配置上传"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#配置上传"}},[s._v("#")]),s._v(" 配置上传")]),s._v(" "),a("p",[s._v("然后上传:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("export")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("AUTOPILOT_HOST")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("192.168")]),s._v(".X.X\n")])])]),a("p",[s._v("如果您是首次使用 Docker 进行编译,请参考"),a("a",{attrs:{href:"https://dev.px4.io/master/en/test_and_ci/docker.html#prerequisites",target:"_blank",rel:"noopener noreferrer"}},[s._v("官方说明"),a("OutboundLink")],1),s._v("。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("export")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("AUTOPILOT_HOST")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("pi_hostname.local\n")])])]),a("p",[s._v("在 PX4-Autopilot 文件夹下执行:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("export")]),s._v(" "),a("span",{pre:!0,attrs:{class:"token assign-left variable"}},[s._v("AUTOPILOT_USER")]),a("span",{pre:!0,attrs:{class:"token operator"}},[s._v("=")]),s._v("ubuntu\n")])])]),a("h4",{attrs:{id:"为-armhf-目标交叉编译"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#为-armhf-目标交叉编译"}},[s._v("#")]),s._v(" 为 armhf 目标交叉编译")]),s._v(" "),a("p",[s._v("只是为了编译代码,则可以执行:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("cd")]),s._v(" Firmware\n"),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("make")]),s._v(" scumaker_pilotpi_default\n")])])]),a("p",[s._v("构建可执行程序:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("make")]),s._v(" scumaker_pilotpi_default upload\n")])])]),a("h4",{attrs:{id:"备选armhf构建方法-使用-docker"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#备选armhf构建方法-使用-docker"}},[s._v("#")]),s._v(" 备选armhf构建方法 (使用 docker)")]),s._v(" "),a("p",[s._v("然后上传:")]),s._v(" "),a("p",[s._v("如果您是首次使用 Docker 进行编译,请参考"),a("a",{attrs:{href:"https://dev.px4.io/master/en/test_and_ci/docker.html#prerequisites",target:"_blank",rel:"noopener noreferrer"}},[s._v("官方说明"),a("OutboundLink")],1),s._v("。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[s._v("./Tools/docker_run.sh "),a("span",{pre:!0,attrs:{class:"token string"}},[s._v('"export AUTOPILOT_HOST=192.168.X.X; export AUTOPILOT_USER=ubuntu; export NO_NINJA_BUILD=1; make scumaker_pilotpi_default upload"')]),s._v("\n")])])]),a("div",{staticClass:"custom-block note"},[a("p",{staticClass:"custom-block-title"},[s._v("注解")]),s._v(" "),a("p",[s._v("mDNS is not supported within docker. You must specify the correct IP address every time when uploading.")])]),s._v(" "),a("div",{staticClass:"custom-block note"},[a("p",{staticClass:"custom-block-title"},[s._v("注解")]),s._v(" "),a("p",[s._v("If your IDE doesn't support ninja build, "),a("code",[s._v("NO_NINJA_BUILD=1")]),s._v(" option will help. You can compile without uploading too. Just remove "),a("code",[s._v("upload")]),s._v(" target.")])]),s._v(" "),a("p",[s._v("通过 ssh 连接并运行它:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[s._v("./Tools/docker_run.sh "),a("span",{pre:!0,attrs:{class:"token string"}},[s._v('"make scumaker_pilotpi_default"')]),s._v("\n")])])]),a("h4",{attrs:{id:"为arm64交叉编译"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#为arm64交叉编译"}},[s._v("#")]),s._v(" 为arm64交叉编译")]),s._v(" "),a("div",{staticClass:"custom-block note"},[a("p",{staticClass:"custom-block-title"},[s._v("注解")]),s._v(" "),a("p",[s._v("This step requires "),a("code",[s._v("aarch64-linux-gnu")]),s._v(" tool-chain to be installed.")])]),s._v(" "),a("p",[s._v("如果在树莓派上运行PX4时遇到了以下问题:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("cd")]),s._v(" PX4-Autopilot\n"),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("make")]),s._v(" scumaker_pilotpi_arm64\n")])])]),a("p",[s._v("这时应当使用基于 Docker 的编译。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("make")]),s._v(" scumaker_pilotpi_arm64 upload\n")])])]),a("h4",{attrs:{id:"备选-arm64-构建方法-使用-docker"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#备选-arm64-构建方法-使用-docker"}},[s._v("#")]),s._v(" 备选 arm64 构建方法 (使用 docker)")]),s._v(" "),a("p",[s._v("在执行下一步之前,先清除现有构建目录:")]),s._v(" "),a("p",[s._v("然后回到上面相应的章节。")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[s._v("./Tools/docker_run.sh "),a("span",{pre:!0,attrs:{class:"token string"}},[s._v('"export AUTOPILOT_HOST=192.168.X.X; export AUTOPILOT_USER=ubuntu; export NO_NINJA_BUILD=1; make scumaker_pilotpi_arm64 upload"')]),s._v("\n")])])]),a("div",{staticClass:"custom-block note"},[a("p",{staticClass:"custom-block-title"},[s._v("注解")]),s._v(" "),a("p",[s._v("mDNS is not supported within docker. You must specify the correct IP address everytime when uploading.")])]),s._v(" "),a("div",{staticClass:"custom-block note"},[a("p",{staticClass:"custom-block-title"},[s._v("注解")]),s._v(" "),a("p",[s._v("If your IDE doesn't support ninja build, "),a("code",[s._v("NO_NINJA_BUILD=1")]),s._v(" option will help. You can compile without uploading too - just remove the "),a("code",[s._v("upload")]),s._v(" target.")])]),s._v(" "),a("p",[s._v("It is also possible to just compile the code with command:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[s._v("./Tools/docker_run.sh "),a("span",{pre:!0,attrs:{class:"token string"}},[s._v('"make scumaker_pilotpi_arm64"')]),s._v("\n")])])]),a("h4",{attrs:{id:"手动运行-px4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#手动运行-px4"}},[s._v("#")]),s._v(" 手动运行 PX4")]),s._v(" "),a("p",[s._v("Connect over SSH and run it with:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("cd")]),s._v(" px4\n"),a("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" taskset -c "),a("span",{pre:!0,attrs:{class:"token number"}},[s._v("2")]),s._v(" ./bin/px4 -s pilotpi_mc.config\n")])])]),a("p",[s._v("Now PX4 is started with multi-rotor configuration.")]),s._v(" "),a("p",[s._v("If you encountered the similar problem executing "),a("code",[s._v("bin/px4")]),s._v(" on your Pi as following:")]),s._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[s._v("bin/px4: /lib/xxxx/xxxx: version `GLIBC_2.29' not found (required by bin/px4)\n")])])]),a("p",[s._v("Then you should compile with docker instead.")]),s._v(" "),a("p",[s._v("Before proceeding to next step, clear the existing building at first:")]),s._v(" "),a("div",{staticClass:"language-sh extra-class"},[a("pre",{pre:!0,attrs:{class:"language-sh"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[s._v("rm")]),s._v(" -rf build/scumaker_pilotpi_*\n")])])]),a("p",[s._v("Then go back to the corresponding chapter above.")]),s._v(" "),a("h3",{attrs:{id:"后期配置"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#后期配置"}},[s._v("#")]),s._v(" 后期配置")]),s._v(" "),a("p",[s._v("Please refer to the instructions "),a("RouterLink",{attrs:{to:"/zh/flight_controller/raspberry_pi_pilotpi_rpios.html"}},[s._v("here")])],1)])}),[],!1,null,null,null);t.default=r.exports}}]);
import Vue from 'vue'; window.vmenu = new Vue({ el: '#menu', data: { activeMenu: [], }, mounted: function () { this.$nextTick(function () { }); } });
import * as utils from 'src/utils'; import { registerBidder } from 'src/adapters/bidderFactory'; import { config } from 'src/config'; import { Renderer } from '../src/Renderer'; function getTopFrame() { try { return window.top === window ? 1 : 0; } catch (e) { return 0; } } function startsWith(str, search) { return str.substr(0, search.length) === search; } function getTopWindowDomain() { const url = utils.getTopWindowUrl(); const domainStart = url.indexOf('://') + '://'.length; return url.substring(domainStart, url.indexOf('/', domainStart) < 0 ? url.length : url.indexOf('/', domainStart)); } function getTopWindowReferer() { try { return window.top.document.referrer; } catch (e) { utils.logMessage('Failed obtaining top window\'s referrer: ', e); try { return window.document.referrer; } catch (e) { utils.logMessage('Failed obtaining current window\'s referrer: ', e); return ''; } } } export const spec = { code: 'gambid', aliases: [], supportedMediaTypes: [ 'banner', 'video' ], isBidRequestValid: function(bid) { return !!bid.params.supplyPartnerId && typeof bid.params.supplyPartnerId === 'string' && (typeof bid.params[ 'rtbEndpoint' ] === 'undefined' || typeof bid.params[ 'rtbEndpoint' ] === 'string') && (typeof bid.params.bidfloor === 'undefined' || typeof bid.params.bidfloor === 'number') && (typeof bid.params[ 'adpos' ] === 'undefined' || typeof bid.params[ 'adpos' ] === 'number') && (typeof bid.params[ 'protocols' ] === 'undefined' || Array.isArray(bid.params[ 'protocols' ])) && (typeof bid.params.instl === 'undefined' || bid.params.instl === 0 || bid.params.instl === 1); }, buildRequests: function(validBidRequests, bidderRequest) { return validBidRequests.map(bidRequest => { const { adUnitCode, auctionId, mediaTypes, params, sizes, transactionId } = bidRequest; const baseEndpoint = params[ 'rtbEndpoint' ] || 'https://rtb.gambid.io'; const rtbEndpoint = `${baseEndpoint}/r/${params.supplyPartnerId}/bidr?rformat=open_rtb&reqformat=rtb_json&bidder=prebid` + (params.query ? '&' + params.query : ''); const rtbBidRequest = { 'id': auctionId, 'site': { 'domain': getTopWindowDomain(), 'page': config.getConfig('pageUrl') || utils.getTopWindowUrl(), 'ref': getTopWindowReferer() }, 'device': { 'ua': navigator.userAgent }, 'imp': [], 'ext': {} }; if (bidderRequest && bidderRequest.gdprConsent) { rtbBidRequest.ext.gdpr_consent = { consent_string: bidderRequest.gdprConsent.consentString, consent_required: bidderRequest.gdprConsent.gdprApplies }; } const imp = { 'id': transactionId, 'instl': params.instl === 1 ? 1 : 0, 'tagid': adUnitCode, 'bidfloor': params.bidfloor || 0, 'bidfloorcur': 'USD', 'secure': startsWith(utils.getTopWindowUrl().toLowerCase(), 'http://') ? 0 : 1 }; if (!mediaTypes || mediaTypes.banner) { imp.banner = { w: sizes.length ? sizes[ 0 ][ 0 ] : 300, h: sizes.length ? sizes[ 0 ][ 1 ] : 250, pos: params.pos || 0, topframe: getTopFrame() }; } else if (mediaTypes.video) { imp.video = { w: sizes.length ? sizes[ 0 ][ 0 ] : 300, h: sizes.length ? sizes[ 0 ][ 1 ] : 250, protocols: params.protocols || [1, 2, 3, 4, 5, 6], pos: params.pos || 0, topframe: getTopFrame() }; } else { return; } rtbBidRequest.imp.push(imp); return { method: 'POST', url: rtbEndpoint, data: rtbBidRequest, bidRequest }; }); }, interpretResponse: function(serverResponse, bidRequest) { const response = serverResponse && serverResponse.body; if (!response) { utils.logError('empty response'); return []; } const bids = response.seatbid.reduce((acc, seatBid) => acc.concat(seatBid.bid), []); const outBids = []; bids.forEach(bid => { const outBid = { requestId: bidRequest.bidRequest.bidId, cpm: bid.price, width: bid.w, height: bid.h, ttl: 60 * 10, creativeId: bid.crid, netRevenue: true, currency: bid.cur || response.cur }; if (!bidRequest.bidRequest.mediaTypes || bidRequest.bidRequest.mediaTypes.banner) { outBids.push(Object.assign({}, outBid, { mediaType: 'banner', ad: bid.adm })); } else if (bidRequest.bidRequest.mediaTypes.video) { const context = utils.deepAccess(bidRequest.bidRequest, 'mediaTypes.video.context'); outBids.push(Object.assign({}, outBid, { mediaType: 'video', vastUrl: bid.ext.vast_url, vastXml: bid.adm, renderer: context === 'outstream' ? newRenderer(bidRequest.bidRequest, bid) : undefined })); } }); return outBids; }, getUserSyncs: function(syncOptions, serverResponses, gdprConsent) { const syncs = []; const gdprApplies = gdprConsent && (typeof gdprConsent.gdprApplies === 'boolean') ? gdprConsent.gdprApplies : false; const suffix = gdprApplies ? 'gc=' + encodeURIComponent(gdprConsent.consentString) : 'gc=missing'; serverResponses.forEach(resp => { if (resp.body) { const bidResponse = resp.body; if (bidResponse.ext && Array.isArray(bidResponse.ext[ 'utrk' ])) { bidResponse.ext[ 'utrk' ].forEach(pixel => { const url = pixel.url + (pixel.url.indexOf('?') > 0 ? '&' + suffix : '?' + suffix); return syncs.push({ type: pixel.type, url }); }); } if (Array.isArray(bidResponse.seatbid)) { bidResponse.seatbid.forEach(seatBid => { if (Array.isArray(seatBid.bid)) { seatBid.bid.forEach(bid => { if (bid.ext && Array.isArray(bid.ext[ 'utrk' ])) { bid.ext[ 'utrk' ].forEach(pixel => { const url = pixel.url + (pixel.url.indexOf('?') > 0 ? '&' + suffix : '?' + suffix); return syncs.push({ type: pixel.type, url }); }); } }); } }); } } }); return syncs; } }; function newRenderer(bidRequest, bid, rendererOptions = {}) { const renderer = Renderer.install({ url: (bidRequest.params && bidRequest.params.rendererUrl) || (bid.ext && bid.ext.renderer_url) || '//s.gamoshi.io/video/latest/renderer.js', config: rendererOptions, loaded: false, }); try { renderer.setRender(renderOutstream); } catch (err) { utils.logWarn('Prebid Error calling setRender on renderer', err); } return renderer; } function renderOutstream(bid) { bid.renderer.push(() => { const unitId = bid.adUnitCode + '/' + bid.adId; window['GamoshiPlayer'].renderAd({ id: unitId, debug: window.location.href.indexOf('pbjsDebug') >= 0, placement: document.getElementById(bid.adUnitCode), width: bid.width, height: bid.height, events: { ALL_ADS_COMPLETED: () => window.setTimeout(() => { window['GamoshiPlayer'].removeAd(unitId); }, 300) }, vastUrl: bid.vastUrl, vastXml: bid.vastXml }); }); } registerBidder(spec);
// 解法一 function sortColors(nums) { for (let i = 0, N = nums.length; i < N; i++) { for (let j = i + 1; j < N; j++) { nums[i] ^= nums[j] nums[j] ^= nums[i] nums[i] ^= nums[j] } } } // 解法二 function sortColors(nums) { const color = [0, 0, 0] const index = 0 for (let i = 0; i < nums.length; i++) { color[nums[i]] += 1 } for (let i = 0; i < nums.length; i++) { while (color[index] === 0) { index++ } nums[i] = index color[index] -= 1 } }
export const months = [ { value: 'jan', label: 'January', }, { value: 'feb', label: 'February', }, { value: 'mar', label: 'March', }, { value: 'apr', label: 'April', }, { value: 'may', label: 'May', }, { value: 'jun', label: 'June', }, { value: 'jul', label: 'July', }, { value: 'aug', label: 'August', }, { value: 'sep', label: 'September', }, { value: 'oct', label: 'October', }, { value: 'nov', label: 'November', }, { value: 'dec', label: 'December', }, ]; export const years = [ { label: '1970', value: 1970 }, { label: '1971', value: 1971 }, { label: '1972', value: 1972 }, { label: '1973', value: 1973 }, { label: '1974', value: 1974 }, { label: '1975', value: 1975 }, { label: '1976', value: 1976 }, { label: '1977', value: 1977 }, { label: '1978', value: 1978 }, { label: '1979', value: 1979 }, { label: '1980', value: 1980 }, { label: '1981', value: 1981 }, { label: '1982', value: 1982 }, { label: '1983', value: 1983 }, { label: '1984', value: 1984 }, { label: '1985', value: 1985 }, { label: '1986', value: 1986 }, { label: '1987', value: 1987 }, { label: '1988', value: 1988 }, { label: '1989', value: 1989 }, { label: '1990', value: 1990 }, { label: '1991', value: 1991 }, { label: '1992', value: 1992 }, { label: '1993', value: 1993 }, { label: '1994', value: 1994 }, { label: '1995', value: 1995 }, { label: '1996', value: 1996 }, { label: '1997', value: 1997 }, { label: '1998', value: 1998 }, { label: '1999', value: 1999 }, { label: '2000', value: 2000 }, { label: '2001', value: 2001 }, { label: '2002', value: 2002 }, { label: '2003', value: 2003 }, { label: '2004', value: 2004 }, { label: '2005', value: 2005 }, { label: '2006', value: 2006 }, { label: '2007', value: 2007 }, { label: '2008', value: 2008 }, { label: '2009', value: 2009 }, { label: '2010', value: 2010 }, { label: '2011', value: 2011 }, { label: '2012', value: 2012 }, { label: '2013', value: 2013 }, { label: '2014', value: 2014 }, { label: '2015', value: 2015 }, { label: '2016', value: 2016 }, { label: '2017', value: 2017 }, { label: '2018', value: 2018 }, { label: '2019', value: 2019 }, ];
import React from "react"; import { Link } from "react-router"; import Rating from "../components/Rating"; // Show products components export default (props) => { let limitTo = props.itemLimit; return ( <div class="article-container"> {props.searchProducts.map((item, i) => { if (i < limitTo) { let name = item.productName; return ( <article key={i} class="article"> <h3>{i+1}. {item.productName}</h3> <p class="comment">{item.comments.substr(0, 100)}...<span class="user"> - {item.name}</span></p> <Rating rating={item.rating} /> <Link to={`/product/${name}`} class="btn">See Reviews</Link> </article> ); }})} </div> ); }
module.exports = { bundledSetState:` key: 'handleDelete', value: function handleDelete(index) { this.setState({ items: this.state.items.filter(function (item, i) { return i !== index; }) }); }, (0, _reactDom.render)(_react2.default.createElement( Frame, null, _react2.default.createElement(App, null) ), document.getElementById('app'));`, modifiedBundle:` key: 'handleDelete', value: function handleDelete(index) { wrapper(this.setState)({ items: this.state.items.filter(function (item, i) { return i !== index; }) }); }, (0, _reactDom.render)(_react2.default.createElement( Frame, null, _react2.default.createElement(App, null) ), document.getElementById("preview"));`, bundledES5InitialState:`var Game = _react2.default.createClass({ displayName: 'Game', getInitialState: function getInitialState() { var boardArr = []; for (var i = 0; i < 25; i++) { boardArr.push(this.randomLetterGenerator(DICE)); } var buttonStateArr = []; for (var i = 0; i < 25; i++) { buttonStateArr.push('inactive'); } return { boardArr: boardArr, currentWord: '', buttonStateArr: buttonStateArr, score: 0, clickedArr: [] }; },`, ES5InitialStateOutput:``, ES6InitialStateOutput:``, bundledES6InitialState:`var TODO = function (_React$Component) { _inherits(TODO, _React$Component); function TODO(props) { _classCallCheck(this, TODO); var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(TODO).call(this, props)); _this.state = { items: ['Learn React', 'Make React App'], another: 'one' }; return _this; }`, };
// Compiled by ClojureScript 1.9.908 {} goog.provide('cljs.spec.alpha'); goog.require('cljs.core'); goog.require('goog.object'); goog.require('cljs.core'); goog.require('clojure.walk'); goog.require('cljs.spec.gen.alpha'); goog.require('clojure.string'); cljs.spec.alpha.MAX_INT = (9007199254740991); /** * A soft limit on how many times a branching spec (or/alt/* /opt-keys/multi-spec) * can be recursed through during generation. After this a * non-recursive branch will be chosen. */ cljs.spec.alpha._STAR_recursion_limit_STAR_ = (4); /** * The number of times an anonymous fn specified by fspec will be (generatively) tested during conform */ cljs.spec.alpha._STAR_fspec_iterations_STAR_ = (21); /** * The number of items validated in a collection spec'ed with 'every' */ cljs.spec.alpha._STAR_coll_check_limit_STAR_ = (101); /** * The number of errors reported by explain in a collection spec'ed with 'every' */ cljs.spec.alpha._STAR_coll_error_limit_STAR_ = (20); /** * @interface */ cljs.spec.alpha.Spec = function(){}; cljs.spec.alpha.conform_STAR_ = (function cljs$spec$alpha$conform_STAR_(spec,x){ if((!((spec == null))) && (!((spec.cljs$spec$alpha$Spec$conform_STAR_$arity$2 == null)))){ return spec.cljs$spec$alpha$Spec$conform_STAR_$arity$2(spec,x); } else { var x__9092__auto__ = (((spec == null))?null:spec); var m__9093__auto__ = (cljs.spec.alpha.conform_STAR_[goog.typeOf(x__9092__auto__)]); if(!((m__9093__auto__ == null))){ return m__9093__auto__.call(null,spec,x); } else { var m__9093__auto____$1 = (cljs.spec.alpha.conform_STAR_["_"]); if(!((m__9093__auto____$1 == null))){ return m__9093__auto____$1.call(null,spec,x); } else { throw cljs.core.missing_protocol.call(null,"Spec.conform*",spec); } } } }); cljs.spec.alpha.unform_STAR_ = (function cljs$spec$alpha$unform_STAR_(spec,y){ if((!((spec == null))) && (!((spec.cljs$spec$alpha$Spec$unform_STAR_$arity$2 == null)))){ return spec.cljs$spec$alpha$Spec$unform_STAR_$arity$2(spec,y); } else { var x__9092__auto__ = (((spec == null))?null:spec); var m__9093__auto__ = (cljs.spec.alpha.unform_STAR_[goog.typeOf(x__9092__auto__)]); if(!((m__9093__auto__ == null))){ return m__9093__auto__.call(null,spec,y); } else { var m__9093__auto____$1 = (cljs.spec.alpha.unform_STAR_["_"]); if(!((m__9093__auto____$1 == null))){ return m__9093__auto____$1.call(null,spec,y); } else { throw cljs.core.missing_protocol.call(null,"Spec.unform*",spec); } } } }); cljs.spec.alpha.explain_STAR_ = (function cljs$spec$alpha$explain_STAR_(spec,path,via,in$,x){ if((!((spec == null))) && (!((spec.cljs$spec$alpha$Spec$explain_STAR_$arity$5 == null)))){ return spec.cljs$spec$alpha$Spec$explain_STAR_$arity$5(spec,path,via,in$,x); } else { var x__9092__auto__ = (((spec == null))?null:spec); var m__9093__auto__ = (cljs.spec.alpha.explain_STAR_[goog.typeOf(x__9092__auto__)]); if(!((m__9093__auto__ == null))){ return m__9093__auto__.call(null,spec,path,via,in$,x); } else { var m__9093__auto____$1 = (cljs.spec.alpha.explain_STAR_["_"]); if(!((m__9093__auto____$1 == null))){ return m__9093__auto____$1.call(null,spec,path,via,in$,x); } else { throw cljs.core.missing_protocol.call(null,"Spec.explain*",spec); } } } }); cljs.spec.alpha.gen_STAR_ = (function cljs$spec$alpha$gen_STAR_(spec,overrides,path,rmap){ if((!((spec == null))) && (!((spec.cljs$spec$alpha$Spec$gen_STAR_$arity$4 == null)))){ return spec.cljs$spec$alpha$Spec$gen_STAR_$arity$4(spec,overrides,path,rmap); } else { var x__9092__auto__ = (((spec == null))?null:spec); var m__9093__auto__ = (cljs.spec.alpha.gen_STAR_[goog.typeOf(x__9092__auto__)]); if(!((m__9093__auto__ == null))){ return m__9093__auto__.call(null,spec,overrides,path,rmap); } else { var m__9093__auto____$1 = (cljs.spec.alpha.gen_STAR_["_"]); if(!((m__9093__auto____$1 == null))){ return m__9093__auto____$1.call(null,spec,overrides,path,rmap); } else { throw cljs.core.missing_protocol.call(null,"Spec.gen*",spec); } } } }); cljs.spec.alpha.with_gen_STAR_ = (function cljs$spec$alpha$with_gen_STAR_(spec,gfn){ if((!((spec == null))) && (!((spec.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 == null)))){ return spec.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2(spec,gfn); } else { var x__9092__auto__ = (((spec == null))?null:spec); var m__9093__auto__ = (cljs.spec.alpha.with_gen_STAR_[goog.typeOf(x__9092__auto__)]); if(!((m__9093__auto__ == null))){ return m__9093__auto__.call(null,spec,gfn); } else { var m__9093__auto____$1 = (cljs.spec.alpha.with_gen_STAR_["_"]); if(!((m__9093__auto____$1 == null))){ return m__9093__auto____$1.call(null,spec,gfn); } else { throw cljs.core.missing_protocol.call(null,"Spec.with-gen*",spec); } } } }); cljs.spec.alpha.describe_STAR_ = (function cljs$spec$alpha$describe_STAR_(spec){ if((!((spec == null))) && (!((spec.cljs$spec$alpha$Spec$describe_STAR_$arity$1 == null)))){ return spec.cljs$spec$alpha$Spec$describe_STAR_$arity$1(spec); } else { var x__9092__auto__ = (((spec == null))?null:spec); var m__9093__auto__ = (cljs.spec.alpha.describe_STAR_[goog.typeOf(x__9092__auto__)]); if(!((m__9093__auto__ == null))){ return m__9093__auto__.call(null,spec); } else { var m__9093__auto____$1 = (cljs.spec.alpha.describe_STAR_["_"]); if(!((m__9093__auto____$1 == null))){ return m__9093__auto____$1.call(null,spec); } else { throw cljs.core.missing_protocol.call(null,"Spec.describe*",spec); } } } }); if(typeof cljs.spec.alpha.registry_ref !== 'undefined'){ } else { cljs.spec.alpha.registry_ref = cljs.core.atom.call(null,cljs.core.PersistentArrayMap.EMPTY); } cljs.spec.alpha.deep_resolve = (function cljs$spec$alpha$deep_resolve(reg,k){ var spec = k; while(true){ if(cljs.core.ident_QMARK_.call(null,spec)){ var G__20882 = cljs.core.get.call(null,reg,spec); spec = G__20882; continue; } else { return spec; } break; } }); /** * returns the spec/regex at end of alias chain starting with k, nil if not found, k if k not ident */ cljs.spec.alpha.reg_resolve = (function cljs$spec$alpha$reg_resolve(k){ if(cljs.core.ident_QMARK_.call(null,k)){ var reg = cljs.core.deref.call(null,cljs.spec.alpha.registry_ref); var spec = cljs.core.get.call(null,reg,k); if(!(cljs.core.ident_QMARK_.call(null,spec))){ return spec; } else { return cljs.spec.alpha.deep_resolve.call(null,reg,spec); } } else { return k; } }); /** * returns the spec/regex at end of alias chain starting with k, throws if not found, k if k not ident */ cljs.spec.alpha.reg_resolve_BANG_ = (function cljs$spec$alpha$reg_resolve_BANG_(k){ if(cljs.core.ident_QMARK_.call(null,k)){ var or__8359__auto__ = cljs.spec.alpha.reg_resolve.call(null,k); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { throw (new Error(["Unable to resolve spec: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(k)].join(''))); } } else { return k; } }); /** * returns x if x is a spec object, else logical false */ cljs.spec.alpha.spec_QMARK_ = (function cljs$spec$alpha$spec_QMARK_(x){ if(((!((x == null)))?(((false) || ((cljs.core.PROTOCOL_SENTINEL === x.cljs$spec$alpha$Spec$)))?true:false):false)){ return x; } else { return null; } }); /** * returns x if x is a (cljs.spec.alpha) regex op, else logical false */ cljs.spec.alpha.regex_QMARK_ = (function cljs$spec$alpha$regex_QMARK_(x){ var and__8347__auto__ = new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252).cljs$core$IFn$_invoke$arity$1(x); if(cljs.core.truth_(and__8347__auto__)){ return x; } else { return and__8347__auto__; } }); cljs.spec.alpha.with_name = (function cljs$spec$alpha$with_name(spec,name){ if(cljs.core.ident_QMARK_.call(null,spec)){ return spec; } else { if(cljs.core.truth_(cljs.spec.alpha.regex_QMARK_.call(null,spec))){ return cljs.core.assoc.call(null,spec,new cljs.core.Keyword("cljs.spec.alpha","name","cljs.spec.alpha/name",205233570),name); } else { if(((!((spec == null)))?((((spec.cljs$lang$protocol_mask$partition0$ & (131072))) || ((cljs.core.PROTOCOL_SENTINEL === spec.cljs$core$IMeta$)))?true:false):false)){ return cljs.core.with_meta.call(null,spec,cljs.core.assoc.call(null,cljs.core.meta.call(null,spec),new cljs.core.Keyword("cljs.spec.alpha","name","cljs.spec.alpha/name",205233570),name)); } else { return null; } } } }); cljs.spec.alpha.spec_name = (function cljs$spec$alpha$spec_name(spec){ if(cljs.core.ident_QMARK_.call(null,spec)){ return spec; } else { if(cljs.core.truth_(cljs.spec.alpha.regex_QMARK_.call(null,spec))){ return new cljs.core.Keyword("cljs.spec.alpha","name","cljs.spec.alpha/name",205233570).cljs$core$IFn$_invoke$arity$1(spec); } else { if(((!((spec == null)))?((((spec.cljs$lang$protocol_mask$partition0$ & (131072))) || ((cljs.core.PROTOCOL_SENTINEL === spec.cljs$core$IMeta$)))?true:false):false)){ return new cljs.core.Keyword("cljs.spec.alpha","name","cljs.spec.alpha/name",205233570).cljs$core$IFn$_invoke$arity$1(cljs.core.meta.call(null,spec)); } else { return null; } } } }); /** * spec-or-k must be a spec, regex or resolvable kw/sym, else returns nil. */ cljs.spec.alpha.maybe_spec = (function cljs$spec$alpha$maybe_spec(spec_or_k){ var s = (function (){var or__8359__auto__ = (function (){var and__8347__auto__ = cljs.core.ident_QMARK_.call(null,spec_or_k); if(and__8347__auto__){ return cljs.spec.alpha.reg_resolve.call(null,spec_or_k); } else { return and__8347__auto__; } })(); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { var or__8359__auto____$1 = cljs.spec.alpha.spec_QMARK_.call(null,spec_or_k); if(cljs.core.truth_(or__8359__auto____$1)){ return or__8359__auto____$1; } else { var or__8359__auto____$2 = cljs.spec.alpha.regex_QMARK_.call(null,spec_or_k); if(cljs.core.truth_(or__8359__auto____$2)){ return or__8359__auto____$2; } else { return null; } } } })(); if(cljs.core.truth_(cljs.spec.alpha.regex_QMARK_.call(null,s))){ return cljs.spec.alpha.with_name.call(null,cljs.spec.alpha.regex_spec_impl.call(null,s,null),cljs.spec.alpha.spec_name.call(null,s)); } else { return s; } }); /** * spec-or-k must be a spec, regex or kw/sym, else returns nil. Throws if unresolvable kw/sym */ cljs.spec.alpha.the_spec = (function cljs$spec$alpha$the_spec(spec_or_k){ var or__8359__auto__ = cljs.spec.alpha.maybe_spec.call(null,spec_or_k); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { if(cljs.core.ident_QMARK_.call(null,spec_or_k)){ throw (new Error(["Unable to resolve spec: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(spec_or_k)].join(''))); } else { return null; } } }); /** * @interface */ cljs.spec.alpha.Specize = function(){}; cljs.spec.alpha.specize_STAR_ = (function cljs$spec$alpha$specize_STAR_(var_args){ var G__20887 = arguments.length; switch (G__20887) { case 1: return cljs.spec.alpha.specize_STAR_.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); break; case 2: return cljs.spec.alpha.specize_STAR_.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.specize_STAR_.cljs$core$IFn$_invoke$arity$1 = (function (_){ if((!((_ == null))) && (!((_.cljs$spec$alpha$Specize$specize_STAR_$arity$1 == null)))){ return _.cljs$spec$alpha$Specize$specize_STAR_$arity$1(_); } else { var x__9092__auto__ = (((_ == null))?null:_); var m__9093__auto__ = (cljs.spec.alpha.specize_STAR_[goog.typeOf(x__9092__auto__)]); if(!((m__9093__auto__ == null))){ return m__9093__auto__.call(null,_); } else { var m__9093__auto____$1 = (cljs.spec.alpha.specize_STAR_["_"]); if(!((m__9093__auto____$1 == null))){ return m__9093__auto____$1.call(null,_); } else { throw cljs.core.missing_protocol.call(null,"Specize.specize*",_); } } } }); cljs.spec.alpha.specize_STAR_.cljs$core$IFn$_invoke$arity$2 = (function (_,form){ if((!((_ == null))) && (!((_.cljs$spec$alpha$Specize$specize_STAR_$arity$2 == null)))){ return _.cljs$spec$alpha$Specize$specize_STAR_$arity$2(_,form); } else { var x__9092__auto__ = (((_ == null))?null:_); var m__9093__auto__ = (cljs.spec.alpha.specize_STAR_[goog.typeOf(x__9092__auto__)]); if(!((m__9093__auto__ == null))){ return m__9093__auto__.call(null,_,form); } else { var m__9093__auto____$1 = (cljs.spec.alpha.specize_STAR_["_"]); if(!((m__9093__auto____$1 == null))){ return m__9093__auto____$1.call(null,_,form); } else { throw cljs.core.missing_protocol.call(null,"Specize.specize*",_); } } } }); cljs.spec.alpha.specize_STAR_.cljs$lang$maxFixedArity = 2; cljs.core.Keyword.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.core.Keyword.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = (function (k){ var k__$1 = this; return cljs.spec.alpha.specize_STAR_.call(null,cljs.spec.alpha.reg_resolve_BANG_.call(null,k__$1)); }); cljs.core.Keyword.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = (function (k,_){ var k__$1 = this; return cljs.spec.alpha.specize_STAR_.call(null,cljs.spec.alpha.reg_resolve_BANG_.call(null,k__$1)); }); cljs.core.Symbol.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.core.Symbol.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = (function (s){ var s__$1 = this; return cljs.spec.alpha.specize_STAR_.call(null,cljs.spec.alpha.reg_resolve_BANG_.call(null,s__$1)); }); cljs.core.Symbol.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = (function (s,_){ var s__$1 = this; return cljs.spec.alpha.specize_STAR_.call(null,cljs.spec.alpha.reg_resolve_BANG_.call(null,s__$1)); }); goog.object.set(cljs.spec.alpha.Specize,"_",true); goog.object.set(cljs.spec.alpha.specize_STAR_,"_",(function() { var G__20889 = null; var G__20889__1 = (function (o){ return cljs.spec.alpha.spec_impl.call(null,new cljs.core.Keyword("cljs.spec.alpha","unknown","cljs.spec.alpha/unknown",651034818),o,null,null); }); var G__20889__2 = (function (o,form){ return cljs.spec.alpha.spec_impl.call(null,form,o,null,null); }); G__20889 = function(o,form){ switch(arguments.length){ case 1: return G__20889__1.call(this,o); case 2: return G__20889__2.call(this,o,form); } throw(new Error('Invalid arity: ' + (arguments.length - 1))); }; G__20889.cljs$core$IFn$_invoke$arity$1 = G__20889__1; G__20889.cljs$core$IFn$_invoke$arity$2 = G__20889__2; return G__20889; })() ); cljs.spec.alpha.specize = (function cljs$spec$alpha$specize(var_args){ var G__20891 = arguments.length; switch (G__20891) { case 1: return cljs.spec.alpha.specize.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); break; case 2: return cljs.spec.alpha.specize.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.specize.cljs$core$IFn$_invoke$arity$1 = (function (s){ var or__8359__auto__ = cljs.spec.alpha.spec_QMARK_.call(null,s); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.spec.alpha.specize_STAR_.call(null,s); } }); cljs.spec.alpha.specize.cljs$core$IFn$_invoke$arity$2 = (function (s,form){ var or__8359__auto__ = cljs.spec.alpha.spec_QMARK_.call(null,s); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.spec.alpha.specize_STAR_.call(null,s,form); } }); cljs.spec.alpha.specize.cljs$lang$maxFixedArity = 2; /** * tests the validity of a conform return value */ cljs.spec.alpha.invalid_QMARK_ = (function cljs$spec$alpha$invalid_QMARK_(ret){ return cljs.core.keyword_identical_QMARK_.call(null,new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119),ret); }); /** * Given a spec and a value, returns :cljs.spec.alpha/invalid if value does * not match spec, else the (possibly destructured) value. */ cljs.spec.alpha.conform = (function cljs$spec$alpha$conform(spec,x){ return cljs.spec.alpha.conform_STAR_.call(null,cljs.spec.alpha.specize.call(null,spec),x); }); /** * Given a spec and a value created by or compliant with a call to * 'conform' with the same spec, returns a value with all conform * destructuring undone. */ cljs.spec.alpha.unform = (function cljs$spec$alpha$unform(spec,x){ return cljs.spec.alpha.unform_STAR_.call(null,cljs.spec.alpha.specize.call(null,spec),x); }); /** * returns the spec as data */ cljs.spec.alpha.form = (function cljs$spec$alpha$form(spec){ return cljs.spec.alpha.describe_STAR_.call(null,cljs.spec.alpha.specize.call(null,spec)); }); cljs.spec.alpha.abbrev = (function cljs$spec$alpha$abbrev(form){ if(cljs.core.seq_QMARK_.call(null,form)){ return clojure.walk.postwalk.call(null,(function (form__$1){ if(cljs.core.truth_((function (){var and__8347__auto__ = (form__$1 instanceof cljs.core.Symbol); if(and__8347__auto__){ return cljs.core.namespace.call(null,form__$1); } else { return and__8347__auto__; } })())){ return cljs.core.symbol.call(null,cljs.core.name.call(null,form__$1)); } else { if((cljs.core.seq_QMARK_.call(null,form__$1)) && (cljs.core._EQ_.call(null,new cljs.core.Symbol(null,"fn","fn",465265323,null),cljs.core.first.call(null,form__$1))) && (cljs.core._EQ_.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"%","%",-950237169,null)], null),cljs.core.second.call(null,form__$1)))){ return cljs.core.last.call(null,form__$1); } else { return form__$1; } } }),form); } else { if(cljs.core.truth_((function (){var and__8347__auto__ = (form instanceof cljs.core.Symbol); if(and__8347__auto__){ return cljs.core.namespace.call(null,form); } else { return and__8347__auto__; } })())){ return cljs.core.symbol.call(null,cljs.core.name.call(null,form)); } else { return form; } } }); /** * returns an abbreviated description of the spec as data */ cljs.spec.alpha.describe = (function cljs$spec$alpha$describe(spec){ return cljs.spec.alpha.abbrev.call(null,cljs.spec.alpha.form.call(null,spec)); }); /** * Takes a spec and a no-arg, generator-returning fn and returns a version of that spec that uses that generator */ cljs.spec.alpha.with_gen = (function cljs$spec$alpha$with_gen(spec,gen_fn){ var spec__$1 = cljs.spec.alpha.reg_resolve.call(null,spec); if(cljs.core.truth_(cljs.spec.alpha.regex_QMARK_.call(null,spec__$1))){ return cljs.core.assoc.call(null,spec__$1,new cljs.core.Keyword("cljs.spec.alpha","gfn","cljs.spec.alpha/gfn",-593120375),gen_fn); } else { return cljs.spec.alpha.with_gen_STAR_.call(null,cljs.spec.alpha.specize.call(null,spec__$1),gen_fn); } }); cljs.spec.alpha.explain_data_STAR_ = (function cljs$spec$alpha$explain_data_STAR_(spec,path,via,in$,x){ var temp__5457__auto__ = cljs.spec.alpha.explain_STAR_.call(null,cljs.spec.alpha.specize.call(null,spec),path,via,in$,x); if(cljs.core.truth_(temp__5457__auto__)){ var probs = temp__5457__auto__; if(cljs.core.empty_QMARK_.call(null,probs)){ return null; } else { return new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword("cljs.spec.alpha","problems","cljs.spec.alpha/problems",447400814),probs,new cljs.core.Keyword("cljs.spec.alpha","spec","cljs.spec.alpha/spec",1947137578),spec,new cljs.core.Keyword("cljs.spec.alpha","value","cljs.spec.alpha/value",1974786274),x], null); } } else { return null; } }); /** * Given a spec and a value x which ought to conform, returns nil if x * conforms, else a map with at least the key ::problems whose value is * a collection of problem-maps, where problem-map has at least :path :pred and :val * keys describing the predicate and the value that failed at that * path. */ cljs.spec.alpha.explain_data = (function cljs$spec$alpha$explain_data(spec,x){ return cljs.spec.alpha.explain_data_STAR_.call(null,spec,cljs.core.PersistentVector.EMPTY,(function (){var temp__5455__auto__ = cljs.spec.alpha.spec_name.call(null,spec); if(cljs.core.truth_(temp__5455__auto__)){ var name = temp__5455__auto__; return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [name], null); } else { return cljs.core.PersistentVector.EMPTY; } })(),cljs.core.PersistentVector.EMPTY,x); }); /** * Default printer for explain-data. nil indicates a successful validation. */ cljs.spec.alpha.explain_printer = (function cljs$spec$alpha$explain_printer(ed){ if(cljs.core.truth_(ed)){ var problems = cljs.core.sort_by.call(null,(function (p1__20893_SHARP_){ return (- cljs.core.count.call(null,new cljs.core.Keyword(null,"path","path",-188191168).cljs$core$IFn$_invoke$arity$1(p1__20893_SHARP_))); }),new cljs.core.Keyword("cljs.spec.alpha","problems","cljs.spec.alpha/problems",447400814).cljs$core$IFn$_invoke$arity$1(ed)); return cljs.core.print.call(null,(function (){var sb__9484__auto__ = (new goog.string.StringBuffer()); var _STAR_print_newline_STAR_20894_20934 = cljs.core._STAR_print_newline_STAR_; var _STAR_print_fn_STAR_20895_20935 = cljs.core._STAR_print_fn_STAR_; cljs.core._STAR_print_newline_STAR_ = true; cljs.core._STAR_print_fn_STAR_ = ((function (_STAR_print_newline_STAR_20894_20934,_STAR_print_fn_STAR_20895_20935,sb__9484__auto__,problems){ return (function (x__9485__auto__){ return sb__9484__auto__.append(x__9485__auto__); });})(_STAR_print_newline_STAR_20894_20934,_STAR_print_fn_STAR_20895_20935,sb__9484__auto__,problems)) ; try{var seq__20896_20936 = cljs.core.seq.call(null,problems); var chunk__20897_20937 = null; var count__20898_20938 = (0); var i__20899_20939 = (0); while(true){ if((i__20899_20939 < count__20898_20938)){ var map__20900_20940 = cljs.core._nth.call(null,chunk__20897_20937,i__20899_20939); var map__20900_20941__$1 = ((((!((map__20900_20940 == null)))?((((map__20900_20940.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__20900_20940.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__20900_20940):map__20900_20940); var prob_20942 = map__20900_20941__$1; var path_20943 = cljs.core.get.call(null,map__20900_20941__$1,new cljs.core.Keyword(null,"path","path",-188191168)); var pred_20944 = cljs.core.get.call(null,map__20900_20941__$1,new cljs.core.Keyword(null,"pred","pred",1927423397)); var val_20945 = cljs.core.get.call(null,map__20900_20941__$1,new cljs.core.Keyword(null,"val","val",128701612)); var reason_20946 = cljs.core.get.call(null,map__20900_20941__$1,new cljs.core.Keyword(null,"reason","reason",-2070751759)); var via_20947 = cljs.core.get.call(null,map__20900_20941__$1,new cljs.core.Keyword(null,"via","via",-1904457336)); var in_20948 = cljs.core.get.call(null,map__20900_20941__$1,new cljs.core.Keyword(null,"in","in",-1531184865)); if(cljs.core.empty_QMARK_.call(null,in_20948)){ } else { cljs.core.print.call(null,"In:",cljs.core.pr_str.call(null,in_20948),""); } cljs.core.print.call(null,"val: "); cljs.core.pr.call(null,val_20945); cljs.core.print.call(null," fails"); if(cljs.core.empty_QMARK_.call(null,via_20947)){ } else { cljs.core.print.call(null," spec:",cljs.core.pr_str.call(null,cljs.core.last.call(null,via_20947))); } if(cljs.core.empty_QMARK_.call(null,path_20943)){ } else { cljs.core.print.call(null," at:",cljs.core.pr_str.call(null,path_20943)); } cljs.core.print.call(null," predicate: "); cljs.core.pr.call(null,cljs.spec.alpha.abbrev.call(null,pred_20944)); if(cljs.core.truth_(reason_20946)){ cljs.core.print.call(null,", ",reason_20946); } else { } var seq__20902_20949 = cljs.core.seq.call(null,prob_20942); var chunk__20903_20950 = null; var count__20904_20951 = (0); var i__20905_20952 = (0); while(true){ if((i__20905_20952 < count__20904_20951)){ var vec__20906_20953 = cljs.core._nth.call(null,chunk__20903_20950,i__20905_20952); var k_20954 = cljs.core.nth.call(null,vec__20906_20953,(0),null); var v_20955 = cljs.core.nth.call(null,vec__20906_20953,(1),null); if(cljs.core.truth_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),null,new cljs.core.Keyword(null,"pred","pred",1927423397),null,new cljs.core.Keyword(null,"via","via",-1904457336),null,new cljs.core.Keyword(null,"val","val",128701612),null,new cljs.core.Keyword(null,"reason","reason",-2070751759),null,new cljs.core.Keyword(null,"in","in",-1531184865),null], null), null).call(null,k_20954))){ } else { cljs.core.print.call(null,"\n\t",cljs.core.pr_str.call(null,k_20954)," "); cljs.core.pr.call(null,v_20955); } var G__20956 = seq__20902_20949; var G__20957 = chunk__20903_20950; var G__20958 = count__20904_20951; var G__20959 = (i__20905_20952 + (1)); seq__20902_20949 = G__20956; chunk__20903_20950 = G__20957; count__20904_20951 = G__20958; i__20905_20952 = G__20959; continue; } else { var temp__5457__auto___20960 = cljs.core.seq.call(null,seq__20902_20949); if(temp__5457__auto___20960){ var seq__20902_20961__$1 = temp__5457__auto___20960; if(cljs.core.chunked_seq_QMARK_.call(null,seq__20902_20961__$1)){ var c__9290__auto___20962 = cljs.core.chunk_first.call(null,seq__20902_20961__$1); var G__20963 = cljs.core.chunk_rest.call(null,seq__20902_20961__$1); var G__20964 = c__9290__auto___20962; var G__20965 = cljs.core.count.call(null,c__9290__auto___20962); var G__20966 = (0); seq__20902_20949 = G__20963; chunk__20903_20950 = G__20964; count__20904_20951 = G__20965; i__20905_20952 = G__20966; continue; } else { var vec__20909_20967 = cljs.core.first.call(null,seq__20902_20961__$1); var k_20968 = cljs.core.nth.call(null,vec__20909_20967,(0),null); var v_20969 = cljs.core.nth.call(null,vec__20909_20967,(1),null); if(cljs.core.truth_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),null,new cljs.core.Keyword(null,"pred","pred",1927423397),null,new cljs.core.Keyword(null,"via","via",-1904457336),null,new cljs.core.Keyword(null,"val","val",128701612),null,new cljs.core.Keyword(null,"reason","reason",-2070751759),null,new cljs.core.Keyword(null,"in","in",-1531184865),null], null), null).call(null,k_20968))){ } else { cljs.core.print.call(null,"\n\t",cljs.core.pr_str.call(null,k_20968)," "); cljs.core.pr.call(null,v_20969); } var G__20970 = cljs.core.next.call(null,seq__20902_20961__$1); var G__20971 = null; var G__20972 = (0); var G__20973 = (0); seq__20902_20949 = G__20970; chunk__20903_20950 = G__20971; count__20904_20951 = G__20972; i__20905_20952 = G__20973; continue; } } else { } } break; } cljs.core.newline.call(null); var G__20974 = seq__20896_20936; var G__20975 = chunk__20897_20937; var G__20976 = count__20898_20938; var G__20977 = (i__20899_20939 + (1)); seq__20896_20936 = G__20974; chunk__20897_20937 = G__20975; count__20898_20938 = G__20976; i__20899_20939 = G__20977; continue; } else { var temp__5457__auto___20978 = cljs.core.seq.call(null,seq__20896_20936); if(temp__5457__auto___20978){ var seq__20896_20979__$1 = temp__5457__auto___20978; if(cljs.core.chunked_seq_QMARK_.call(null,seq__20896_20979__$1)){ var c__9290__auto___20980 = cljs.core.chunk_first.call(null,seq__20896_20979__$1); var G__20981 = cljs.core.chunk_rest.call(null,seq__20896_20979__$1); var G__20982 = c__9290__auto___20980; var G__20983 = cljs.core.count.call(null,c__9290__auto___20980); var G__20984 = (0); seq__20896_20936 = G__20981; chunk__20897_20937 = G__20982; count__20898_20938 = G__20983; i__20899_20939 = G__20984; continue; } else { var map__20912_20985 = cljs.core.first.call(null,seq__20896_20979__$1); var map__20912_20986__$1 = ((((!((map__20912_20985 == null)))?((((map__20912_20985.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__20912_20985.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__20912_20985):map__20912_20985); var prob_20987 = map__20912_20986__$1; var path_20988 = cljs.core.get.call(null,map__20912_20986__$1,new cljs.core.Keyword(null,"path","path",-188191168)); var pred_20989 = cljs.core.get.call(null,map__20912_20986__$1,new cljs.core.Keyword(null,"pred","pred",1927423397)); var val_20990 = cljs.core.get.call(null,map__20912_20986__$1,new cljs.core.Keyword(null,"val","val",128701612)); var reason_20991 = cljs.core.get.call(null,map__20912_20986__$1,new cljs.core.Keyword(null,"reason","reason",-2070751759)); var via_20992 = cljs.core.get.call(null,map__20912_20986__$1,new cljs.core.Keyword(null,"via","via",-1904457336)); var in_20993 = cljs.core.get.call(null,map__20912_20986__$1,new cljs.core.Keyword(null,"in","in",-1531184865)); if(cljs.core.empty_QMARK_.call(null,in_20993)){ } else { cljs.core.print.call(null,"In:",cljs.core.pr_str.call(null,in_20993),""); } cljs.core.print.call(null,"val: "); cljs.core.pr.call(null,val_20990); cljs.core.print.call(null," fails"); if(cljs.core.empty_QMARK_.call(null,via_20992)){ } else { cljs.core.print.call(null," spec:",cljs.core.pr_str.call(null,cljs.core.last.call(null,via_20992))); } if(cljs.core.empty_QMARK_.call(null,path_20988)){ } else { cljs.core.print.call(null," at:",cljs.core.pr_str.call(null,path_20988)); } cljs.core.print.call(null," predicate: "); cljs.core.pr.call(null,cljs.spec.alpha.abbrev.call(null,pred_20989)); if(cljs.core.truth_(reason_20991)){ cljs.core.print.call(null,", ",reason_20991); } else { } var seq__20914_20994 = cljs.core.seq.call(null,prob_20987); var chunk__20915_20995 = null; var count__20916_20996 = (0); var i__20917_20997 = (0); while(true){ if((i__20917_20997 < count__20916_20996)){ var vec__20918_20998 = cljs.core._nth.call(null,chunk__20915_20995,i__20917_20997); var k_20999 = cljs.core.nth.call(null,vec__20918_20998,(0),null); var v_21000 = cljs.core.nth.call(null,vec__20918_20998,(1),null); if(cljs.core.truth_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),null,new cljs.core.Keyword(null,"pred","pred",1927423397),null,new cljs.core.Keyword(null,"via","via",-1904457336),null,new cljs.core.Keyword(null,"val","val",128701612),null,new cljs.core.Keyword(null,"reason","reason",-2070751759),null,new cljs.core.Keyword(null,"in","in",-1531184865),null], null), null).call(null,k_20999))){ } else { cljs.core.print.call(null,"\n\t",cljs.core.pr_str.call(null,k_20999)," "); cljs.core.pr.call(null,v_21000); } var G__21001 = seq__20914_20994; var G__21002 = chunk__20915_20995; var G__21003 = count__20916_20996; var G__21004 = (i__20917_20997 + (1)); seq__20914_20994 = G__21001; chunk__20915_20995 = G__21002; count__20916_20996 = G__21003; i__20917_20997 = G__21004; continue; } else { var temp__5457__auto___21005__$1 = cljs.core.seq.call(null,seq__20914_20994); if(temp__5457__auto___21005__$1){ var seq__20914_21006__$1 = temp__5457__auto___21005__$1; if(cljs.core.chunked_seq_QMARK_.call(null,seq__20914_21006__$1)){ var c__9290__auto___21007 = cljs.core.chunk_first.call(null,seq__20914_21006__$1); var G__21008 = cljs.core.chunk_rest.call(null,seq__20914_21006__$1); var G__21009 = c__9290__auto___21007; var G__21010 = cljs.core.count.call(null,c__9290__auto___21007); var G__21011 = (0); seq__20914_20994 = G__21008; chunk__20915_20995 = G__21009; count__20916_20996 = G__21010; i__20917_20997 = G__21011; continue; } else { var vec__20921_21012 = cljs.core.first.call(null,seq__20914_21006__$1); var k_21013 = cljs.core.nth.call(null,vec__20921_21012,(0),null); var v_21014 = cljs.core.nth.call(null,vec__20921_21012,(1),null); if(cljs.core.truth_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),null,new cljs.core.Keyword(null,"pred","pred",1927423397),null,new cljs.core.Keyword(null,"via","via",-1904457336),null,new cljs.core.Keyword(null,"val","val",128701612),null,new cljs.core.Keyword(null,"reason","reason",-2070751759),null,new cljs.core.Keyword(null,"in","in",-1531184865),null], null), null).call(null,k_21013))){ } else { cljs.core.print.call(null,"\n\t",cljs.core.pr_str.call(null,k_21013)," "); cljs.core.pr.call(null,v_21014); } var G__21015 = cljs.core.next.call(null,seq__20914_21006__$1); var G__21016 = null; var G__21017 = (0); var G__21018 = (0); seq__20914_20994 = G__21015; chunk__20915_20995 = G__21016; count__20916_20996 = G__21017; i__20917_20997 = G__21018; continue; } } else { } } break; } cljs.core.newline.call(null); var G__21019 = cljs.core.next.call(null,seq__20896_20979__$1); var G__21020 = null; var G__21021 = (0); var G__21022 = (0); seq__20896_20936 = G__21019; chunk__20897_20937 = G__21020; count__20898_20938 = G__21021; i__20899_20939 = G__21022; continue; } } else { } } break; } var seq__20924_21023 = cljs.core.seq.call(null,ed); var chunk__20925_21024 = null; var count__20926_21025 = (0); var i__20927_21026 = (0); while(true){ if((i__20927_21026 < count__20926_21025)){ var vec__20928_21027 = cljs.core._nth.call(null,chunk__20925_21024,i__20927_21026); var k_21028 = cljs.core.nth.call(null,vec__20928_21027,(0),null); var v_21029 = cljs.core.nth.call(null,vec__20928_21027,(1),null); if(cljs.core.truth_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.spec.alpha","problems","cljs.spec.alpha/problems",447400814),null], null), null).call(null,k_21028))){ } else { cljs.core.print.call(null,cljs.core.pr_str.call(null,k_21028)," "); cljs.core.pr.call(null,v_21029); cljs.core.newline.call(null); } var G__21030 = seq__20924_21023; var G__21031 = chunk__20925_21024; var G__21032 = count__20926_21025; var G__21033 = (i__20927_21026 + (1)); seq__20924_21023 = G__21030; chunk__20925_21024 = G__21031; count__20926_21025 = G__21032; i__20927_21026 = G__21033; continue; } else { var temp__5457__auto___21034 = cljs.core.seq.call(null,seq__20924_21023); if(temp__5457__auto___21034){ var seq__20924_21035__$1 = temp__5457__auto___21034; if(cljs.core.chunked_seq_QMARK_.call(null,seq__20924_21035__$1)){ var c__9290__auto___21036 = cljs.core.chunk_first.call(null,seq__20924_21035__$1); var G__21037 = cljs.core.chunk_rest.call(null,seq__20924_21035__$1); var G__21038 = c__9290__auto___21036; var G__21039 = cljs.core.count.call(null,c__9290__auto___21036); var G__21040 = (0); seq__20924_21023 = G__21037; chunk__20925_21024 = G__21038; count__20926_21025 = G__21039; i__20927_21026 = G__21040; continue; } else { var vec__20931_21041 = cljs.core.first.call(null,seq__20924_21035__$1); var k_21042 = cljs.core.nth.call(null,vec__20931_21041,(0),null); var v_21043 = cljs.core.nth.call(null,vec__20931_21041,(1),null); if(cljs.core.truth_(new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.spec.alpha","problems","cljs.spec.alpha/problems",447400814),null], null), null).call(null,k_21042))){ } else { cljs.core.print.call(null,cljs.core.pr_str.call(null,k_21042)," "); cljs.core.pr.call(null,v_21043); cljs.core.newline.call(null); } var G__21044 = cljs.core.next.call(null,seq__20924_21035__$1); var G__21045 = null; var G__21046 = (0); var G__21047 = (0); seq__20924_21023 = G__21044; chunk__20925_21024 = G__21045; count__20926_21025 = G__21046; i__20927_21026 = G__21047; continue; } } else { } } break; } }finally {cljs.core._STAR_print_fn_STAR_ = _STAR_print_fn_STAR_20895_20935; cljs.core._STAR_print_newline_STAR_ = _STAR_print_newline_STAR_20894_20934; } return [cljs.core.str.cljs$core$IFn$_invoke$arity$1(sb__9484__auto__)].join(''); })()); } else { return cljs.core.println.call(null,"Success!"); } }); cljs.spec.alpha._STAR_explain_out_STAR_ = cljs.spec.alpha.explain_printer; /** * Prints explanation data (per 'explain-data') to *out* using the printer in *explain-out*, * by default explain-printer. */ cljs.spec.alpha.explain_out = (function cljs$spec$alpha$explain_out(ed){ return cljs.spec.alpha._STAR_explain_out_STAR_.call(null,ed); }); /** * Given a spec and a value that fails to conform, prints an explanation to *out*. */ cljs.spec.alpha.explain = (function cljs$spec$alpha$explain(spec,x){ return cljs.spec.alpha.explain_out.call(null,cljs.spec.alpha.explain_data.call(null,spec,x)); }); /** * Given a spec and a value that fails to conform, returns an explanation as a string. */ cljs.spec.alpha.explain_str = (function cljs$spec$alpha$explain_str(spec,x){ var sb__9484__auto__ = (new goog.string.StringBuffer()); var _STAR_print_newline_STAR_21048_21050 = cljs.core._STAR_print_newline_STAR_; var _STAR_print_fn_STAR_21049_21051 = cljs.core._STAR_print_fn_STAR_; cljs.core._STAR_print_newline_STAR_ = true; cljs.core._STAR_print_fn_STAR_ = ((function (_STAR_print_newline_STAR_21048_21050,_STAR_print_fn_STAR_21049_21051,sb__9484__auto__){ return (function (x__9485__auto__){ return sb__9484__auto__.append(x__9485__auto__); });})(_STAR_print_newline_STAR_21048_21050,_STAR_print_fn_STAR_21049_21051,sb__9484__auto__)) ; try{cljs.spec.alpha.explain.call(null,spec,x); }finally {cljs.core._STAR_print_fn_STAR_ = _STAR_print_fn_STAR_21049_21051; cljs.core._STAR_print_newline_STAR_ = _STAR_print_newline_STAR_21048_21050; } return [cljs.core.str.cljs$core$IFn$_invoke$arity$1(sb__9484__auto__)].join(''); }); cljs.spec.alpha.gensub = (function cljs$spec$alpha$gensub(spec,overrides,path,rmap,form){ var spec__$1 = cljs.spec.alpha.specize.call(null,spec); var temp__5455__auto__ = (function (){var or__8359__auto__ = (function (){var temp__5457__auto__ = (function (){var or__8359__auto__ = cljs.core.get.call(null,overrides,(function (){var or__8359__auto__ = cljs.spec.alpha.spec_name.call(null,spec__$1); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return spec__$1; } })()); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.core.get.call(null,overrides,path); } })(); if(cljs.core.truth_(temp__5457__auto__)){ var gfn = temp__5457__auto__; return gfn.call(null); } else { return null; } })(); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.spec.alpha.gen_STAR_.call(null,spec__$1,overrides,path,rmap); } })(); if(cljs.core.truth_(temp__5455__auto__)){ var g = temp__5455__auto__; return cljs.spec.gen.alpha.such_that.call(null,((function (g,temp__5455__auto__,spec__$1){ return (function (p1__21052_SHARP_){ return cljs.spec.alpha.valid_QMARK_.call(null,spec__$1,p1__21052_SHARP_); });})(g,temp__5455__auto__,spec__$1)) ,g,(100)); } else { throw (new Error(["Unable to construct gen at: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(path)," for: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.spec.alpha.abbrev.call(null,form))].join(''))); } }); /** * Given a spec, returns the generator for it, or throws if none can * be constructed. Optionally an overrides map can be provided which * should map spec names or paths (vectors of keywords) to no-arg * generator-creating fns. These will be used instead of the generators at those * names/paths. Note that parent generator (in the spec or overrides * map) will supersede those of any subtrees. A generator for a regex * op must always return a sequential collection (i.e. a generator for * s/? should return either an empty sequence/vector or a * sequence/vector with one item in it) */ cljs.spec.alpha.gen = (function cljs$spec$alpha$gen(var_args){ var G__21054 = arguments.length; switch (G__21054) { case 1: return cljs.spec.alpha.gen.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); break; case 2: return cljs.spec.alpha.gen.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.gen.cljs$core$IFn$_invoke$arity$1 = (function (spec){ return cljs.spec.alpha.gen.call(null,spec,null); }); cljs.spec.alpha.gen.cljs$core$IFn$_invoke$arity$2 = (function (spec,overrides){ return cljs.spec.alpha.gensub.call(null,spec,overrides,cljs.core.PersistentVector.EMPTY,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword("cljs.spec.alpha","recursion-limit","cljs.spec.alpha/recursion-limit",601284994),cljs.spec.alpha._STAR_recursion_limit_STAR_], null),spec); }); cljs.spec.alpha.gen.cljs$lang$maxFixedArity = 2; /** * Do not call this directly, use 'def' */ cljs.spec.alpha.def_impl = (function cljs$spec$alpha$def_impl(k,form,spec){ if(cljs.core.truth_((function (){var and__8347__auto__ = cljs.core.ident_QMARK_.call(null,k); if(and__8347__auto__){ return cljs.core.namespace.call(null,k); } else { return and__8347__auto__; } })())){ } else { throw (new Error(["Assert failed: ","k must be namespaced keyword or resolveable symbol","\n","(c/and (ident? k) (namespace k))"].join(''))); } var spec__$1 = (cljs.core.truth_((function (){var or__8359__auto__ = cljs.spec.alpha.spec_QMARK_.call(null,spec); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { var or__8359__auto____$1 = cljs.spec.alpha.regex_QMARK_.call(null,spec); if(cljs.core.truth_(or__8359__auto____$1)){ return or__8359__auto____$1; } else { return cljs.core.get.call(null,cljs.core.deref.call(null,cljs.spec.alpha.registry_ref),spec); } } })())?spec:cljs.spec.alpha.spec_impl.call(null,form,spec,null,null)); cljs.core.swap_BANG_.call(null,cljs.spec.alpha.registry_ref,cljs.core.assoc,k,cljs.spec.alpha.with_name.call(null,spec__$1,k)); return k; }); /** * returns the registry map, prefer 'get-spec' to lookup a spec by name */ cljs.spec.alpha.registry = (function cljs$spec$alpha$registry(){ return cljs.core.deref.call(null,cljs.spec.alpha.registry_ref); }); /** * Returns a symbol from a symbol or var */ cljs.spec.alpha.__GT_sym = (function cljs$spec$alpha$__GT_sym(x){ if(cljs.core.var_QMARK_.call(null,x)){ return x.sym; } else { return x; } }); /** * Returns spec registered for keyword/symbol/var k, or nil. */ cljs.spec.alpha.get_spec = (function cljs$spec$alpha$get_spec(k){ return cljs.core.get.call(null,cljs.spec.alpha.registry.call(null),(((k instanceof cljs.core.Keyword))?k:cljs.spec.alpha.__GT_sym.call(null,k))); }); cljs.spec.alpha.macroexpand_check = (function cljs$spec$alpha$macroexpand_check(v,args){ var specs = cljs.spec.alpha.get_spec.call(null,v); var temp__5457__auto__ = new cljs.core.Keyword(null,"args","args",1315556576).cljs$core$IFn$_invoke$arity$1(specs); if(cljs.core.truth_(temp__5457__auto__)){ var arg_spec = temp__5457__auto__; if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,cljs.spec.alpha.conform.call(null,arg_spec,args)))){ var ed = cljs.core.assoc.call(null,cljs.spec.alpha.explain_data_STAR_.call(null,arg_spec,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"args","args",1315556576)], null),(function (){var temp__5455__auto__ = cljs.spec.alpha.spec_name.call(null,arg_spec); if(cljs.core.truth_(temp__5455__auto__)){ var name = temp__5455__auto__; return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [name], null); } else { return cljs.core.PersistentVector.EMPTY; } })(),cljs.core.PersistentVector.EMPTY,args),new cljs.core.Keyword("cljs.spec.alpha","args","cljs.spec.alpha/args",1870769783),args); throw (new Error(["Call to ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.spec.alpha.__GT_sym.call(null,v))," did not conform to spec:\n",cljs.core.str.cljs$core$IFn$_invoke$arity$1((function (){var sb__9484__auto__ = (new goog.string.StringBuffer()); var _STAR_print_newline_STAR_21056_21058 = cljs.core._STAR_print_newline_STAR_; var _STAR_print_fn_STAR_21057_21059 = cljs.core._STAR_print_fn_STAR_; cljs.core._STAR_print_newline_STAR_ = true; cljs.core._STAR_print_fn_STAR_ = ((function (_STAR_print_newline_STAR_21056_21058,_STAR_print_fn_STAR_21057_21059,sb__9484__auto__,ed,arg_spec,temp__5457__auto__,specs){ return (function (x__9485__auto__){ return sb__9484__auto__.append(x__9485__auto__); });})(_STAR_print_newline_STAR_21056_21058,_STAR_print_fn_STAR_21057_21059,sb__9484__auto__,ed,arg_spec,temp__5457__auto__,specs)) ; try{cljs.spec.alpha.explain_out.call(null,ed); }finally {cljs.core._STAR_print_fn_STAR_ = _STAR_print_fn_STAR_21057_21059; cljs.core._STAR_print_newline_STAR_ = _STAR_print_newline_STAR_21056_21058; } return [cljs.core.str.cljs$core$IFn$_invoke$arity$1(sb__9484__auto__)].join(''); })())].join(''))); } else { return null; } } else { return null; } }); cljs.spec.alpha.recur_limit_QMARK_ = (function cljs$spec$alpha$recur_limit_QMARK_(rmap,id,path,k){ return ((cljs.core.get.call(null,rmap,id) > new cljs.core.Keyword("cljs.spec.alpha","recursion-limit","cljs.spec.alpha/recursion-limit",601284994).cljs$core$IFn$_invoke$arity$1(rmap))) && (cljs.core.contains_QMARK_.call(null,cljs.core.set.call(null,path),k)); }); cljs.spec.alpha.inck = (function cljs$spec$alpha$inck(m,k){ return cljs.core.assoc.call(null,m,k,((function (){var or__8359__auto__ = cljs.core.get.call(null,m,k); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return (0); } })() + (1))); }); cljs.spec.alpha.dt = (function cljs$spec$alpha$dt(var_args){ var G__21061 = arguments.length; switch (G__21061) { case 3: return cljs.spec.alpha.dt.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); break; case 4: return cljs.spec.alpha.dt.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.dt.cljs$core$IFn$_invoke$arity$3 = (function (pred,x,form){ return cljs.spec.alpha.dt.call(null,pred,x,form,null); }); cljs.spec.alpha.dt.cljs$core$IFn$_invoke$arity$4 = (function (pred,x,form,cpred_QMARK_){ if(cljs.core.truth_(pred)){ var temp__5455__auto__ = cljs.spec.alpha.the_spec.call(null,pred); if(cljs.core.truth_(temp__5455__auto__)){ var spec = temp__5455__auto__; return cljs.spec.alpha.conform.call(null,spec,x); } else { if(cljs.core.ifn_QMARK_.call(null,pred)){ if(cljs.core.truth_(cpred_QMARK_)){ return pred.call(null,x); } else { if(cljs.core.truth_(pred.call(null,x))){ return x; } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } } } else { throw (new Error([cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.pr_str.call(null,form))," is not a fn, expected predicate fn"].join(''))); } } } else { return x; } }); cljs.spec.alpha.dt.cljs$lang$maxFixedArity = 4; /** * Helper function that returns true when x is valid for spec. */ cljs.spec.alpha.valid_QMARK_ = (function cljs$spec$alpha$valid_QMARK_(var_args){ var G__21064 = arguments.length; switch (G__21064) { case 2: return cljs.spec.alpha.valid_QMARK_.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); break; case 3: return cljs.spec.alpha.valid_QMARK_.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.valid_QMARK_.cljs$core$IFn$_invoke$arity$2 = (function (spec,x){ var spec__$1 = cljs.spec.alpha.specize.call(null,spec); return cljs.core.not.call(null,cljs.spec.alpha.invalid_QMARK_.call(null,cljs.spec.alpha.conform_STAR_.call(null,spec__$1,x))); }); cljs.spec.alpha.valid_QMARK_.cljs$core$IFn$_invoke$arity$3 = (function (spec,x,form){ var spec__$1 = cljs.spec.alpha.specize.call(null,spec,form); return cljs.core.not.call(null,cljs.spec.alpha.invalid_QMARK_.call(null,cljs.spec.alpha.conform_STAR_.call(null,spec__$1,x))); }); cljs.spec.alpha.valid_QMARK_.cljs$lang$maxFixedArity = 3; /** * internal helper function that returns true when x is valid for spec. */ cljs.spec.alpha.pvalid_QMARK_ = (function cljs$spec$alpha$pvalid_QMARK_(var_args){ var G__21067 = arguments.length; switch (G__21067) { case 2: return cljs.spec.alpha.pvalid_QMARK_.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); break; case 3: return cljs.spec.alpha.pvalid_QMARK_.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.pvalid_QMARK_.cljs$core$IFn$_invoke$arity$2 = (function (pred,x){ return cljs.core.not.call(null,cljs.spec.alpha.invalid_QMARK_.call(null,cljs.spec.alpha.dt.call(null,pred,x,new cljs.core.Keyword("cljs.spec.alpha","unknown","cljs.spec.alpha/unknown",651034818)))); }); cljs.spec.alpha.pvalid_QMARK_.cljs$core$IFn$_invoke$arity$3 = (function (pred,x,form){ return cljs.core.not.call(null,cljs.spec.alpha.invalid_QMARK_.call(null,cljs.spec.alpha.dt.call(null,pred,x,form))); }); cljs.spec.alpha.pvalid_QMARK_.cljs$lang$maxFixedArity = 3; cljs.spec.alpha.explain_1 = (function cljs$spec$alpha$explain_1(form,pred,path,via,in$,v){ var pred__$1 = cljs.spec.alpha.maybe_spec.call(null,pred); if(cljs.core.truth_(cljs.spec.alpha.spec_QMARK_.call(null,pred__$1))){ return cljs.spec.alpha.explain_STAR_.call(null,pred__$1,path,(function (){var temp__5455__auto__ = cljs.spec.alpha.spec_name.call(null,pred__$1); if(cljs.core.truth_(temp__5455__auto__)){ var name = temp__5455__auto__; return cljs.core.conj.call(null,via,name); } else { return via; } })(),in$,v); } else { return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),form,new cljs.core.Keyword(null,"val","val",128701612),v,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } }); /** * Do not call this directly, use 'spec' with a map argument */ cljs.spec.alpha.map_spec_impl = (function cljs$spec$alpha$map_spec_impl(p__21072){ var map__21073 = p__21072; var map__21073__$1 = ((((!((map__21073 == null)))?((((map__21073.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21073.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21073):map__21073); var argm = map__21073__$1; var opt = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"opt","opt",-794706369)); var req_un = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"req-un","req-un",1074571008)); var opt_un = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"opt-un","opt-un",883442496)); var gfn = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"gfn","gfn",791517474)); var pred_exprs = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"pred-exprs","pred-exprs",1792271395)); var keys_pred = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"keys-pred","keys-pred",858984739)); var opt_keys = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"opt-keys","opt-keys",1262688261)); var req_specs = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"req-specs","req-specs",553962313)); var req = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"req","req",-326448303)); var req_keys = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"req-keys","req-keys",514319221)); var opt_specs = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"opt-specs","opt-specs",-384905450)); var pred_forms = cljs.core.get.call(null,map__21073__$1,new cljs.core.Keyword(null,"pred-forms","pred-forms",172611832)); var k__GT_s = cljs.core.zipmap.call(null,cljs.core.concat.call(null,req_keys,opt_keys),cljs.core.concat.call(null,req_specs,opt_specs)); var keys__GT_specnames = ((function (k__GT_s,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (p1__21069_SHARP_){ var or__8359__auto__ = k__GT_s.call(null,p1__21069_SHARP_); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return p1__21069_SHARP_; } });})(k__GT_s,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; var id = cljs.core.random_uuid.call(null); if(typeof cljs.spec.alpha.t_cljs$spec$alpha21075 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21075 = (function (map__21073,keys__GT_specnames,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,argm,opt_keys,req_specs,req,p__21072,id,req_keys,opt_specs,k__GT_s,pred_forms,meta21076){ this.map__21073 = map__21073; this.keys__GT_specnames = keys__GT_specnames; this.opt = opt; this.req_un = req_un; this.opt_un = opt_un; this.gfn = gfn; this.pred_exprs = pred_exprs; this.keys_pred = keys_pred; this.argm = argm; this.opt_keys = opt_keys; this.req_specs = req_specs; this.req = req; this.p__21072 = p__21072; this.id = id; this.req_keys = req_keys; this.opt_specs = opt_specs; this.k__GT_s = k__GT_s; this.pred_forms = pred_forms; this.meta21076 = meta21076; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (_21077,meta21076__$1){ var self__ = this; var _21077__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21075(self__.map__21073,self__.keys__GT_specnames,self__.opt,self__.req_un,self__.opt_un,self__.gfn,self__.pred_exprs,self__.keys_pred,self__.argm,self__.opt_keys,self__.req_specs,self__.req,self__.p__21072,self__.id,self__.req_keys,self__.opt_specs,self__.k__GT_s,self__.pred_forms,meta21076__$1)); });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (_21077){ var self__ = this; var _21077__$1 = this; return self__.meta21076; });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (_,m){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.keys_pred.call(null,m))){ var reg = cljs.spec.alpha.registry.call(null); var ret = m; var G__21084 = m; var vec__21085 = G__21084; var seq__21086 = cljs.core.seq.call(null,vec__21085); var first__21087 = cljs.core.first.call(null,seq__21086); var seq__21086__$1 = cljs.core.next.call(null,seq__21086); var vec__21088 = first__21087; var k = cljs.core.nth.call(null,vec__21088,(0),null); var v = cljs.core.nth.call(null,vec__21088,(1),null); var ks = seq__21086__$1; var keys = vec__21085; var ret__$1 = ret; var G__21084__$1 = G__21084; while(true){ var ret__$2 = ret__$1; var vec__21091 = G__21084__$1; var seq__21092 = cljs.core.seq.call(null,vec__21091); var first__21093 = cljs.core.first.call(null,seq__21092); var seq__21092__$1 = cljs.core.next.call(null,seq__21092); var vec__21094 = first__21093; var k__$1 = cljs.core.nth.call(null,vec__21094,(0),null); var v__$1 = cljs.core.nth.call(null,vec__21094,(1),null); var ks__$1 = seq__21092__$1; var keys__$1 = vec__21091; if(cljs.core.truth_(keys__$1)){ var sname = self__.keys__GT_specnames.call(null,k__$1); var temp__5455__auto__ = cljs.core.get.call(null,reg,sname); if(cljs.core.truth_(temp__5455__auto__)){ var s = temp__5455__auto__; var cv = cljs.spec.alpha.conform.call(null,s,v__$1); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,cv))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { var G__21112 = (((cv === v__$1))?ret__$2:cljs.core.assoc.call(null,ret__$2,k__$1,cv)); var G__21113 = ks__$1; ret__$1 = G__21112; G__21084__$1 = G__21113; continue; } } else { var G__21114 = ret__$2; var G__21115 = ks__$1; ret__$1 = G__21114; G__21084__$1 = G__21115; continue; } } else { return ret__$2; } break; } } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (_,m){ var self__ = this; var ___$1 = this; var reg = cljs.spec.alpha.registry.call(null); var ret = m; var G__21100 = cljs.core.keys.call(null,m); var vec__21101 = G__21100; var seq__21102 = cljs.core.seq.call(null,vec__21101); var first__21103 = cljs.core.first.call(null,seq__21102); var seq__21102__$1 = cljs.core.next.call(null,seq__21102); var k = first__21103; var ks = seq__21102__$1; var keys = vec__21101; var ret__$1 = ret; var G__21100__$1 = G__21100; while(true){ var ret__$2 = ret__$1; var vec__21104 = G__21100__$1; var seq__21105 = cljs.core.seq.call(null,vec__21104); var first__21106 = cljs.core.first.call(null,seq__21105); var seq__21105__$1 = cljs.core.next.call(null,seq__21105); var k__$1 = first__21106; var ks__$1 = seq__21105__$1; var keys__$1 = vec__21104; if(cljs.core.truth_(keys__$1)){ if(cljs.core.contains_QMARK_.call(null,reg,self__.keys__GT_specnames.call(null,k__$1))){ var cv = cljs.core.get.call(null,m,k__$1); var v = cljs.spec.alpha.unform.call(null,self__.keys__GT_specnames.call(null,k__$1),cv); var G__21116 = (((cv === v))?ret__$2:cljs.core.assoc.call(null,ret__$2,k__$1,v)); var G__21117 = ks__$1; ret__$1 = G__21116; G__21100__$1 = G__21117; continue; } else { var G__21118 = ret__$2; var G__21119 = ks__$1; ret__$1 = G__21118; G__21100__$1 = G__21119; continue; } } else { return ret__$2; } break; } });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; if(!(cljs.core.map_QMARK_.call(null,x))){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),new cljs.core.Symbol(null,"map?","map?",-1780568534,null),new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } else { var reg = cljs.spec.alpha.registry.call(null); return cljs.core.apply.call(null,cljs.core.concat,(function (){var temp__5457__auto__ = cljs.core.seq.call(null,cljs.core.keep.call(null,cljs.core.identity,cljs.core.map.call(null,((function (reg,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (pred,form){ if(cljs.core.truth_(pred.call(null,x))){ return null; } else { return form; } });})(reg,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ,self__.pred_exprs,self__.pred_forms))); if(temp__5457__auto__){ var probs = temp__5457__auto__; return cljs.core.map.call(null,((function (probs,temp__5457__auto__,reg,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (p1__21070_SHARP_){ return cljs.core.identity.call(null,new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),p1__21070_SHARP_,new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)); });})(probs,temp__5457__auto__,reg,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ,probs); } else { return null; } })(),cljs.core.map.call(null,((function (reg,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (p__21107){ var vec__21108 = p__21107; var k = cljs.core.nth.call(null,vec__21108,(0),null); var v = cljs.core.nth.call(null,vec__21108,(1),null); if(cljs.core.truth_((function (){var or__8359__auto__ = !(cljs.core.contains_QMARK_.call(null,reg,self__.keys__GT_specnames.call(null,k))); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.spec.alpha.pvalid_QMARK_.call(null,self__.keys__GT_specnames.call(null,k),v,k); } })())){ return null; } else { return cljs.spec.alpha.explain_1.call(null,self__.keys__GT_specnames.call(null,k),self__.keys__GT_specnames.call(null,k),cljs.core.conj.call(null,path,k),via,cljs.core.conj.call(null,in$,k),v); } });})(reg,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ,cljs.core.seq.call(null,x))); } });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { var rmap__$1 = cljs.spec.alpha.inck.call(null,rmap,self__.id); var gen = ((function (rmap__$1,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (k,s){ return cljs.spec.alpha.gensub.call(null,s,overrides,cljs.core.conj.call(null,path,k),rmap__$1,k); });})(rmap__$1,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; var ogen = ((function (rmap__$1,gen,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (k,s){ if(cljs.core.truth_(cljs.spec.alpha.recur_limit_QMARK_.call(null,rmap__$1,self__.id,path,k))){ return null; } else { return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [k,cljs.spec.gen.alpha.delay_impl.call(null,(new cljs.core.Delay(((function (rmap__$1,gen,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (){ return cljs.spec.alpha.gensub.call(null,s,overrides,cljs.core.conj.call(null,path,k),rmap__$1,k); });})(rmap__$1,gen,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ,null)))], null); } });})(rmap__$1,gen,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; var req_gens = cljs.core.map.call(null,gen,self__.req_keys,self__.req_specs); var opt_gens = cljs.core.remove.call(null,cljs.core.nil_QMARK_,cljs.core.map.call(null,ogen,self__.opt_keys,self__.opt_specs)); if(cljs.core.every_QMARK_.call(null,cljs.core.identity,cljs.core.concat.call(null,req_gens,opt_gens))){ var reqs = cljs.core.zipmap.call(null,self__.req_keys,req_gens); var opts = cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,opt_gens); return cljs.spec.gen.alpha.bind.call(null,cljs.spec.gen.alpha.choose.call(null,(0),cljs.core.count.call(null,opts)),((function (reqs,opts,rmap__$1,gen,ogen,req_gens,opt_gens,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (p1__21071_SHARP_){ var args = cljs.core.concat.call(null,cljs.core.seq.call(null,reqs),((cljs.core.seq.call(null,opts))?cljs.core.shuffle.call(null,cljs.core.seq.call(null,opts)):null)); return cljs.core.apply.call(null,cljs.spec.gen.alpha.hash_map,cljs.core.apply.call(null,cljs.core.concat,cljs.core.take.call(null,(p1__21071_SHARP_ + cljs.core.count.call(null,reqs)),args))); });})(reqs,opts,rmap__$1,gen,ogen,req_gens,opt_gens,___$1,k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ); } else { return null; } } });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.map_spec_impl.call(null,cljs.core.assoc.call(null,self__.argm,new cljs.core.Keyword(null,"gfn","gfn",791517474),gfn__$1)); });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (_){ var self__ = this; var ___$1 = this; return cljs.core.cons.call(null,new cljs.core.Symbol("cljs.spec.alpha","keys","cljs.spec.alpha/keys",1109346032,null),(function (){var G__21111 = cljs.core.PersistentVector.EMPTY; var G__21111__$1 = (cljs.core.truth_(self__.req)?cljs.core.conj.call(null,G__21111,new cljs.core.Keyword(null,"req","req",-326448303),self__.req):G__21111); var G__21111__$2 = (cljs.core.truth_(self__.opt)?cljs.core.conj.call(null,G__21111__$1,new cljs.core.Keyword(null,"opt","opt",-794706369),self__.opt):G__21111__$1); var G__21111__$3 = (cljs.core.truth_(self__.req_un)?cljs.core.conj.call(null,G__21111__$2,new cljs.core.Keyword(null,"req-un","req-un",1074571008),self__.req_un):G__21111__$2); if(cljs.core.truth_(self__.opt_un)){ return cljs.core.conj.call(null,G__21111__$3,new cljs.core.Keyword(null,"opt-un","opt-un",883442496),self__.opt_un); } else { return G__21111__$3; } })()); });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.getBasis = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (){ return new cljs.core.PersistentVector(null, 19, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"map__21073","map__21073",-462570331,null),new cljs.core.Symbol(null,"keys->specnames","keys->specnames",1791294693,null),new cljs.core.Symbol(null,"opt","opt",845825158,null),new cljs.core.Symbol(null,"req-un","req-un",-1579864761,null),new cljs.core.Symbol(null,"opt-un","opt-un",-1770993273,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"pred-exprs","pred-exprs",-862164374,null),new cljs.core.Symbol(null,"keys-pred","keys-pred",-1795451030,null),new cljs.core.Symbol(null,"argm","argm",-181546357,null),new cljs.core.Symbol(null,"opt-keys","opt-keys",-1391747508,null),new cljs.core.Symbol(null,"req-specs","req-specs",-2100473456,null),new cljs.core.Symbol(null,"req","req",1314083224,null),new cljs.core.Symbol(null,"p__21072","p__21072",1952835705,null),new cljs.core.Symbol(null,"id","id",252129435,null),new cljs.core.Symbol(null,"req-keys","req-keys",-2140116548,null),new cljs.core.Symbol(null,"opt-specs","opt-specs",1255626077,null),new cljs.core.Symbol(null,"k->s","k->s",-1685112801,null),new cljs.core.Symbol(null,"pred-forms","pred-forms",1813143359,null),new cljs.core.Symbol(null,"meta21076","meta21076",-946089263,null)], null); });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.t_cljs$spec$alpha21075.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21075.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21075"; cljs.spec.alpha.t_cljs$spec$alpha21075.cljs$lang$ctorPrWriter = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21075"); });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21075 = ((function (k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms){ return (function cljs$spec$alpha$map_spec_impl_$___GT_t_cljs$spec$alpha21075(map__21073__$2,keys__GT_specnames__$1,opt__$1,req_un__$1,opt_un__$1,gfn__$1,pred_exprs__$1,keys_pred__$1,argm__$1,opt_keys__$1,req_specs__$1,req__$1,p__21072__$1,id__$1,req_keys__$1,opt_specs__$1,k__GT_s__$1,pred_forms__$1,meta21076){ return (new cljs.spec.alpha.t_cljs$spec$alpha21075(map__21073__$2,keys__GT_specnames__$1,opt__$1,req_un__$1,opt_un__$1,gfn__$1,pred_exprs__$1,keys_pred__$1,argm__$1,opt_keys__$1,req_specs__$1,req__$1,p__21072__$1,id__$1,req_keys__$1,opt_specs__$1,k__GT_s__$1,pred_forms__$1,meta21076)); });})(k__GT_s,keys__GT_specnames,id,map__21073,map__21073__$1,argm,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,opt_keys,req_specs,req,req_keys,opt_specs,pred_forms)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21075(map__21073__$1,keys__GT_specnames,opt,req_un,opt_un,gfn,pred_exprs,keys_pred,argm,opt_keys,req_specs,req,p__21072,id,req_keys,opt_specs,k__GT_s,pred_forms,cljs.core.PersistentArrayMap.EMPTY)); }); /** * Do not call this directly, use 'spec' */ cljs.spec.alpha.spec_impl = (function cljs$spec$alpha$spec_impl(var_args){ var G__21121 = arguments.length; switch (G__21121) { case 4: return cljs.spec.alpha.spec_impl.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); break; case 5: return cljs.spec.alpha.spec_impl.cljs$core$IFn$_invoke$arity$5((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)]),(arguments[(4)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.spec_impl.cljs$core$IFn$_invoke$arity$4 = (function (form,pred,gfn,cpred_QMARK_){ return cljs.spec.alpha.spec_impl.call(null,form,pred,gfn,cpred_QMARK_,null); }); cljs.spec.alpha.spec_impl.cljs$core$IFn$_invoke$arity$5 = (function (form,pred,gfn,cpred_QMARK_,unc){ if(cljs.core.truth_(cljs.spec.alpha.spec_QMARK_.call(null,pred))){ var G__21122 = pred; if(cljs.core.truth_(gfn)){ return cljs.spec.alpha.with_gen.call(null,G__21122,gfn); } else { return G__21122; } } else { if(cljs.core.truth_(cljs.spec.alpha.regex_QMARK_.call(null,pred))){ return cljs.spec.alpha.regex_spec_impl.call(null,pred,gfn); } else { if(cljs.core.ident_QMARK_.call(null,pred)){ var G__21123 = cljs.spec.alpha.the_spec.call(null,pred); if(cljs.core.truth_(gfn)){ return cljs.spec.alpha.with_gen.call(null,G__21123,gfn); } else { return G__21123; } } else { if(typeof cljs.spec.alpha.t_cljs$spec$alpha21124 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21124 = (function (form,pred,gfn,cpred_QMARK_,unc,meta21125){ this.form = form; this.pred = pred; this.gfn = gfn; this.cpred_QMARK_ = cpred_QMARK_; this.unc = unc; this.meta21125 = meta21125; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_21126,meta21125__$1){ var self__ = this; var _21126__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21124(self__.form,self__.pred,self__.gfn,self__.cpred_QMARK_,self__.unc,meta21125__$1)); }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_21126){ var self__ = this; var _21126__$1 = this; return self__.meta21125; }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = (function (s){ var self__ = this; var s__$1 = this; return s__$1; }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = (function (_,x){ var self__ = this; var ___$1 = this; var ret = self__.pred.call(null,x); if(cljs.core.truth_(self__.cpred_QMARK_)){ return ret; } else { if(cljs.core.truth_(ret)){ return x; } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } } }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = (function (_,x){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.cpred_QMARK_)){ if(cljs.core.truth_(self__.unc)){ return self__.unc.call(null,x); } else { throw (new Error("no unform fn for conformer")); } } else { return x; } }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,cljs.spec.alpha.dt.call(null,self__.pred,x,self__.form,self__.cpred_QMARK_)))){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),self__.form,new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } else { return null; } }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = (function (_,___$1,___$2,___$3){ var self__ = this; var ___$4 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { return cljs.spec.gen.alpha.gen_for_pred.call(null,self__.pred); } }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.spec_impl.call(null,self__.form,self__.pred,gfn__$1,self__.cpred_QMARK_,self__.unc); }); cljs.spec.alpha.t_cljs$spec$alpha21124.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = (function (_){ var self__ = this; var ___$1 = this; return self__.form; }); cljs.spec.alpha.t_cljs$spec$alpha21124.getBasis = (function (){ return new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"form","form",16469056,null),new cljs.core.Symbol(null,"pred","pred",-727012372,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"cpred?","cpred?",35589515,null),new cljs.core.Symbol(null,"unc","unc",-465250751,null),new cljs.core.Symbol(null,"meta21125","meta21125",-1093625186,null)], null); }); cljs.spec.alpha.t_cljs$spec$alpha21124.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21124.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21124"; cljs.spec.alpha.t_cljs$spec$alpha21124.cljs$lang$ctorPrWriter = (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21124"); }); cljs.spec.alpha.__GT_t_cljs$spec$alpha21124 = (function cljs$spec$alpha$__GT_t_cljs$spec$alpha21124(form__$1,pred__$1,gfn__$1,cpred_QMARK___$1,unc__$1,meta21125){ return (new cljs.spec.alpha.t_cljs$spec$alpha21124(form__$1,pred__$1,gfn__$1,cpred_QMARK___$1,unc__$1,meta21125)); }); } return (new cljs.spec.alpha.t_cljs$spec$alpha21124(form,pred,gfn,cpred_QMARK_,unc,cljs.core.PersistentArrayMap.EMPTY)); } } } }); cljs.spec.alpha.spec_impl.cljs$lang$maxFixedArity = 5; /** * Do not call this directly, use 'multi-spec' */ cljs.spec.alpha.multi_spec_impl = (function cljs$spec$alpha$multi_spec_impl(var_args){ var G__21134 = arguments.length; switch (G__21134) { case 3: return cljs.spec.alpha.multi_spec_impl.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); break; case 4: return cljs.spec.alpha.multi_spec_impl.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.multi_spec_impl.cljs$core$IFn$_invoke$arity$3 = (function (form,mmvar,retag){ return cljs.spec.alpha.multi_spec_impl.call(null,form,mmvar,retag,null); }); cljs.spec.alpha.multi_spec_impl.cljs$core$IFn$_invoke$arity$4 = (function (form,mmvar,retag,gfn){ var id = cljs.core.random_uuid.call(null); var predx = ((function (id){ return (function (p1__21128_SHARP_){ var mm = cljs.core.deref.call(null,mmvar); var and__8347__auto__ = cljs.core._get_method.call(null,mm,cljs.core._dispatch_fn.call(null,mm).call(null,p1__21128_SHARP_)); if(cljs.core.truth_(and__8347__auto__)){ return mm.call(null,p1__21128_SHARP_); } else { return and__8347__auto__; } });})(id)) ; var dval = ((function (id,predx){ return (function (p1__21129_SHARP_){ return cljs.core._dispatch_fn.call(null,cljs.core.deref.call(null,mmvar)).call(null,p1__21129_SHARP_); });})(id,predx)) ; var tag = (((retag instanceof cljs.core.Keyword))?((function (id,predx,dval){ return (function (p1__21130_SHARP_,p2__21131_SHARP_){ return cljs.core.assoc.call(null,p1__21130_SHARP_,retag,p2__21131_SHARP_); });})(id,predx,dval)) :retag); if(typeof cljs.spec.alpha.t_cljs$spec$alpha21135 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21135 = (function (form,mmvar,retag,gfn,id,predx,dval,tag,meta21136){ this.form = form; this.mmvar = mmvar; this.retag = retag; this.gfn = gfn; this.id = id; this.predx = predx; this.dval = dval; this.tag = tag; this.meta21136 = meta21136; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (id,predx,dval,tag){ return (function (_21137,meta21136__$1){ var self__ = this; var _21137__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21135(self__.form,self__.mmvar,self__.retag,self__.gfn,self__.id,self__.predx,self__.dval,self__.tag,meta21136__$1)); });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (id,predx,dval,tag){ return (function (_21137){ var self__ = this; var _21137__$1 = this; return self__.meta21136; });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (id,predx,dval,tag){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (id,predx,dval,tag){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (id,predx,dval,tag){ return (function (_,x){ var self__ = this; var ___$1 = this; var temp__5455__auto__ = self__.predx.call(null,x); if(cljs.core.truth_(temp__5455__auto__)){ var pred = temp__5455__auto__; return cljs.spec.alpha.dt.call(null,pred,x,self__.form); } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (id,predx,dval,tag){ return (function (_,x){ var self__ = this; var ___$1 = this; var temp__5455__auto__ = self__.predx.call(null,x); if(cljs.core.truth_(temp__5455__auto__)){ var pred = temp__5455__auto__; return cljs.spec.alpha.unform.call(null,pred,x); } else { throw (new Error(["No method of: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(self__.form)," for dispatch value: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(self__.dval.call(null,x))].join(''))); } });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (id,predx,dval,tag){ return (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; var dv = self__.dval.call(null,x); var path__$1 = cljs.core.conj.call(null,path,dv); var temp__5455__auto__ = self__.predx.call(null,x); if(cljs.core.truth_(temp__5455__auto__)){ var pred = temp__5455__auto__; return cljs.spec.alpha.explain_1.call(null,self__.form,pred,path__$1,via,in$,x); } else { return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),path__$1,new cljs.core.Keyword(null,"pred","pred",1927423397),self__.form,new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"reason","reason",-2070751759),"no method",new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (id,predx,dval,tag){ return (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { var gen = ((function (___$1,id,predx,dval,tag){ return (function (p__21138){ var vec__21139 = p__21138; var k = cljs.core.nth.call(null,vec__21139,(0),null); var f = cljs.core.nth.call(null,vec__21139,(1),null); var p = f.call(null,null); var rmap__$1 = cljs.spec.alpha.inck.call(null,rmap,self__.id); if(cljs.core.truth_(cljs.spec.alpha.recur_limit_QMARK_.call(null,rmap__$1,self__.id,path,k))){ return null; } else { return cljs.spec.gen.alpha.delay_impl.call(null,(new cljs.core.Delay(((function (rmap__$1,p,vec__21139,k,f,___$1,id,predx,dval,tag){ return (function (){ return cljs.spec.gen.alpha.fmap.call(null,((function (rmap__$1,p,vec__21139,k,f,___$1,id,predx,dval,tag){ return (function (p1__21132_SHARP_){ return self__.tag.call(null,p1__21132_SHARP_,k); });})(rmap__$1,p,vec__21139,k,f,___$1,id,predx,dval,tag)) ,cljs.spec.alpha.gensub.call(null,p,overrides,cljs.core.conj.call(null,path,k),rmap__$1,cljs.core._conj.call(null,(function (){var x__9313__auto__ = self__.form; return cljs.core._conj.call(null,(function (){var x__9313__auto____$1 = k; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto____$1); })(),x__9313__auto__); })(),new cljs.core.Symbol(null,"method","method",1696235119,null)))); });})(rmap__$1,p,vec__21139,k,f,___$1,id,predx,dval,tag)) ,null))); } });})(___$1,id,predx,dval,tag)) ; var gs = cljs.core.remove.call(null,cljs.core.nil_QMARK_,cljs.core.map.call(null,gen,cljs.core.remove.call(null,((function (gen,___$1,id,predx,dval,tag){ return (function (p__21142){ var vec__21143 = p__21142; var k = cljs.core.nth.call(null,vec__21143,(0),null); return cljs.spec.alpha.invalid_QMARK_.call(null,k); });})(gen,___$1,id,predx,dval,tag)) ,cljs.core.methods$.call(null,cljs.core.deref.call(null,self__.mmvar))))); if(cljs.core.every_QMARK_.call(null,cljs.core.identity,gs)){ return cljs.spec.gen.alpha.one_of.call(null,gs); } else { return null; } } });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (id,predx,dval,tag){ return (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.multi_spec_impl.call(null,self__.form,self__.mmvar,self__.retag,gfn__$1); });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (id,predx,dval,tag){ return (function (_){ var self__ = this; var ___$1 = this; return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","multi-spec","cljs.spec.alpha/multi-spec",175821274,null)),(function (){var x__9313__auto__ = self__.form; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),(function (){var x__9313__auto__ = self__.retag; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })()))); });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.getBasis = ((function (id,predx,dval,tag){ return (function (){ return new cljs.core.PersistentVector(null, 9, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"form","form",16469056,null),new cljs.core.Symbol(null,"mmvar","mmvar",-1714325675,null),new cljs.core.Symbol(null,"retag","retag",528972725,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"id","id",252129435,null),new cljs.core.Symbol(null,"predx","predx",2063470948,null),new cljs.core.Symbol(null,"dval","dval",835211877,null),new cljs.core.Symbol(null,"tag","tag",350170304,null),new cljs.core.Symbol(null,"meta21136","meta21136",960756030,null)], null); });})(id,predx,dval,tag)) ; cljs.spec.alpha.t_cljs$spec$alpha21135.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21135.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21135"; cljs.spec.alpha.t_cljs$spec$alpha21135.cljs$lang$ctorPrWriter = ((function (id,predx,dval,tag){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21135"); });})(id,predx,dval,tag)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21135 = ((function (id,predx,dval,tag){ return (function cljs$spec$alpha$__GT_t_cljs$spec$alpha21135(form__$1,mmvar__$1,retag__$1,gfn__$1,id__$1,predx__$1,dval__$1,tag__$1,meta21136){ return (new cljs.spec.alpha.t_cljs$spec$alpha21135(form__$1,mmvar__$1,retag__$1,gfn__$1,id__$1,predx__$1,dval__$1,tag__$1,meta21136)); });})(id,predx,dval,tag)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21135(form,mmvar,retag,gfn,id,predx,dval,tag,cljs.core.PersistentArrayMap.EMPTY)); }); cljs.spec.alpha.multi_spec_impl.cljs$lang$maxFixedArity = 4; /** * Do not call this directly, use 'tuple' */ cljs.spec.alpha.tuple_impl = (function cljs$spec$alpha$tuple_impl(var_args){ var G__21148 = arguments.length; switch (G__21148) { case 2: return cljs.spec.alpha.tuple_impl.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); break; case 3: return cljs.spec.alpha.tuple_impl.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.tuple_impl.cljs$core$IFn$_invoke$arity$2 = (function (forms,preds){ return cljs.spec.alpha.tuple_impl.call(null,forms,preds,null); }); cljs.spec.alpha.tuple_impl.cljs$core$IFn$_invoke$arity$3 = (function (forms,preds,gfn){ var specs = (new cljs.core.Delay((function (){ return cljs.core.mapv.call(null,cljs.spec.alpha.specize,preds,forms); }),null)); var cnt = cljs.core.count.call(null,preds); if(typeof cljs.spec.alpha.t_cljs$spec$alpha21149 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21149 = (function (forms,preds,gfn,specs,cnt,meta21150){ this.forms = forms; this.preds = preds; this.gfn = gfn; this.specs = specs; this.cnt = cnt; this.meta21150 = meta21150; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (specs,cnt){ return (function (_21151,meta21150__$1){ var self__ = this; var _21151__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21149(self__.forms,self__.preds,self__.gfn,self__.specs,self__.cnt,meta21150__$1)); });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (specs,cnt){ return (function (_21151){ var self__ = this; var _21151__$1 = this; return self__.meta21150; });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (specs,cnt){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (specs,cnt){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (specs,cnt){ return (function (_,x){ var self__ = this; var ___$1 = this; var specs__$1 = cljs.core.deref.call(null,self__.specs); if(!((cljs.core.vector_QMARK_.call(null,x)) && (cljs.core._EQ_.call(null,cljs.core.count.call(null,x),self__.cnt)))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { var ret = x; var i = (0); while(true){ if(cljs.core._EQ_.call(null,i,self__.cnt)){ return ret; } else { var v = x.call(null,i); var cv = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,i),v); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,cv))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { var G__21153 = (((cv === v))?ret:cljs.core.assoc.call(null,ret,i,cv)); var G__21154 = (i + (1)); ret = G__21153; i = G__21154; continue; } } break; } } });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (specs,cnt){ return (function (_,x){ var self__ = this; var ___$1 = this; if((cljs.core.vector_QMARK_.call(null,x)) && (cljs.core._EQ_.call(null,cljs.core.count.call(null,x),cljs.core.count.call(null,self__.preds)))){ } else { throw (new Error("Assert failed: (c/and (vector? x) (= (count x) (count preds)))")); } var ret = x; var i = (0); while(true){ if(cljs.core._EQ_.call(null,i,cljs.core.count.call(null,x))){ return ret; } else { var cv = x.call(null,i); var v = cljs.spec.alpha.unform.call(null,self__.preds.call(null,i),cv); var G__21155 = (((cv === v))?ret:cljs.core.assoc.call(null,ret,i,v)); var G__21156 = (i + (1)); ret = G__21155; i = G__21156; continue; } break; } });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (specs,cnt){ return (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; if(!(cljs.core.vector_QMARK_.call(null,x))){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),new cljs.core.Symbol(null,"vector?","vector?",-61367869,null),new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } else { if(cljs.core.not_EQ_.call(null,cljs.core.count.call(null,x),cljs.core.count.call(null,self__.preds))){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.core","=","cljs.core/=",-1891498332,null)),(function (){var x__9313__auto__ = cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.core","count","cljs.core/count",-921270233,null)),cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol(null,"%","%",-950237169,null))))); return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),(function (){var x__9313__auto__ = cljs.core.count.call(null,self__.preds); return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })()))),new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } else { return cljs.core.apply.call(null,cljs.core.concat,cljs.core.map.call(null,((function (___$1,specs,cnt){ return (function (i,form,pred){ var v = x.call(null,i); if(cljs.core.truth_(cljs.spec.alpha.pvalid_QMARK_.call(null,pred,v))){ return null; } else { return cljs.spec.alpha.explain_1.call(null,form,pred,cljs.core.conj.call(null,path,i),via,cljs.core.conj.call(null,in$,i),v); } });})(___$1,specs,cnt)) ,cljs.core.range.call(null,cljs.core.count.call(null,self__.preds)),self__.forms,self__.preds)); } } });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (specs,cnt){ return (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { var gen = ((function (___$1,specs,cnt){ return (function (i,p,f){ return cljs.spec.alpha.gensub.call(null,p,overrides,cljs.core.conj.call(null,path,i),rmap,f); });})(___$1,specs,cnt)) ; var gs = cljs.core.map.call(null,gen,cljs.core.range.call(null,cljs.core.count.call(null,self__.preds)),self__.preds,self__.forms); if(cljs.core.every_QMARK_.call(null,cljs.core.identity,gs)){ return cljs.core.apply.call(null,cljs.spec.gen.alpha.tuple,gs); } else { return null; } } });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (specs,cnt){ return (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.tuple_impl.call(null,self__.forms,self__.preds,gfn__$1); });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (specs,cnt){ return (function (_){ var self__ = this; var ___$1 = this; return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","tuple","cljs.spec.alpha/tuple",-415901908,null)),self__.forms))); });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.getBasis = ((function (specs,cnt){ return (function (){ return new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"forms","forms",-608443419,null),new cljs.core.Symbol(null,"preds","preds",150921777,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"specs","specs",-1227865028,null),new cljs.core.Symbol(null,"cnt","cnt",1924510325,null),new cljs.core.Symbol(null,"meta21150","meta21150",1483297866,null)], null); });})(specs,cnt)) ; cljs.spec.alpha.t_cljs$spec$alpha21149.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21149.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21149"; cljs.spec.alpha.t_cljs$spec$alpha21149.cljs$lang$ctorPrWriter = ((function (specs,cnt){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21149"); });})(specs,cnt)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21149 = ((function (specs,cnt){ return (function cljs$spec$alpha$__GT_t_cljs$spec$alpha21149(forms__$1,preds__$1,gfn__$1,specs__$1,cnt__$1,meta21150){ return (new cljs.spec.alpha.t_cljs$spec$alpha21149(forms__$1,preds__$1,gfn__$1,specs__$1,cnt__$1,meta21150)); });})(specs,cnt)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21149(forms,preds,gfn,specs,cnt,cljs.core.PersistentArrayMap.EMPTY)); }); cljs.spec.alpha.tuple_impl.cljs$lang$maxFixedArity = 3; cljs.spec.alpha.tagged_ret = (function cljs$spec$alpha$tagged_ret(v){ var x21157 = v; x21157.cljs$core$IMapEntry$ = cljs.core.PROTOCOL_SENTINEL; x21157.cljs$core$IMapEntry$_key$arity$1 = ((function (x21157){ return (function (_){ var ___$1 = this; return cljs.core._nth.call(null,v,(0)); });})(x21157)) ; x21157.cljs$core$IMapEntry$_val$arity$1 = ((function (x21157){ return (function (_){ var ___$1 = this; return cljs.core._nth.call(null,v,(1)); });})(x21157)) ; return x21157; }); /** * Do not call this directly, use 'or' */ cljs.spec.alpha.or_spec_impl = (function cljs$spec$alpha$or_spec_impl(keys,forms,preds,gfn){ var id = cljs.core.random_uuid.call(null); var kps = cljs.core.zipmap.call(null,keys,preds); var specs = (new cljs.core.Delay(((function (id,kps){ return (function (){ return cljs.core.mapv.call(null,cljs.spec.alpha.specize,preds,forms); });})(id,kps)) ,null)); var cform = (function (){var G__21158 = cljs.core.count.call(null,preds); switch (G__21158) { case (2): return ((function (G__21158,id,kps,specs){ return (function (x){ var specs__$1 = cljs.core.deref.call(null,specs); var ret = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(0)),x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret))){ var ret__$1 = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(1)),x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret__$1))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { return cljs.spec.alpha.tagged_ret.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [keys.call(null,(1)),ret__$1], null)); } } else { return cljs.spec.alpha.tagged_ret.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [keys.call(null,(0)),ret], null)); } }); ;})(G__21158,id,kps,specs)) break; case (3): return ((function (G__21158,id,kps,specs){ return (function (x){ var specs__$1 = cljs.core.deref.call(null,specs); var ret = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(0)),x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret))){ var ret__$1 = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(1)),x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret__$1))){ var ret__$2 = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(2)),x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret__$2))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { return cljs.spec.alpha.tagged_ret.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [keys.call(null,(2)),ret__$2], null)); } } else { return cljs.spec.alpha.tagged_ret.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [keys.call(null,(1)),ret__$1], null)); } } else { return cljs.spec.alpha.tagged_ret.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [keys.call(null,(0)),ret], null)); } }); ;})(G__21158,id,kps,specs)) break; default: return ((function (G__21158,id,kps,specs){ return (function (x){ var specs__$1 = cljs.core.deref.call(null,specs); var i = (0); while(true){ if((i < cljs.core.count.call(null,specs__$1))){ var spec = specs__$1.call(null,i); var ret = cljs.spec.alpha.conform_STAR_.call(null,spec,x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret))){ var G__21167 = (i + (1)); i = G__21167; continue; } else { return cljs.spec.alpha.tagged_ret.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [keys.call(null,i),ret], null)); } } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } break; } }); ;})(G__21158,id,kps,specs)) } })(); if(typeof cljs.spec.alpha.t_cljs$spec$alpha21159 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21159 = (function (keys,forms,preds,gfn,id,kps,specs,cform,meta21160){ this.keys = keys; this.forms = forms; this.preds = preds; this.gfn = gfn; this.id = id; this.kps = kps; this.specs = specs; this.cform = cform; this.meta21160 = meta21160; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (id,kps,specs,cform){ return (function (_21161,meta21160__$1){ var self__ = this; var _21161__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21159(self__.keys,self__.forms,self__.preds,self__.gfn,self__.id,self__.kps,self__.specs,self__.cform,meta21160__$1)); });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (id,kps,specs,cform){ return (function (_21161){ var self__ = this; var _21161__$1 = this; return self__.meta21160; });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (id,kps,specs,cform){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (id,kps,specs,cform){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (id,kps,specs,cform){ return (function (_,x){ var self__ = this; var ___$1 = this; return self__.cform.call(null,x); });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (id,kps,specs,cform){ return (function (_,p__21162){ var self__ = this; var vec__21163 = p__21162; var k = cljs.core.nth.call(null,vec__21163,(0),null); var x = cljs.core.nth.call(null,vec__21163,(1),null); var ___$1 = this; return cljs.spec.alpha.unform.call(null,self__.kps.call(null,k),x); });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (id,kps,specs,cform){ return (function (this$,path,via,in$,x){ var self__ = this; var this$__$1 = this; if(cljs.core.truth_(cljs.spec.alpha.pvalid_QMARK_.call(null,this$__$1,x))){ return null; } else { return cljs.core.apply.call(null,cljs.core.concat,cljs.core.map.call(null,((function (this$__$1,id,kps,specs,cform){ return (function (k,form,pred){ if(cljs.core.truth_(cljs.spec.alpha.pvalid_QMARK_.call(null,pred,x))){ return null; } else { return cljs.spec.alpha.explain_1.call(null,form,pred,cljs.core.conj.call(null,path,k),via,in$,x); } });})(this$__$1,id,kps,specs,cform)) ,self__.keys,self__.forms,self__.preds)); } });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (id,kps,specs,cform){ return (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { var gen = ((function (___$1,id,kps,specs,cform){ return (function (k,p,f){ var rmap__$1 = cljs.spec.alpha.inck.call(null,rmap,self__.id); if(cljs.core.truth_(cljs.spec.alpha.recur_limit_QMARK_.call(null,rmap__$1,self__.id,path,k))){ return null; } else { return cljs.spec.gen.alpha.delay_impl.call(null,(new cljs.core.Delay(((function (rmap__$1,___$1,id,kps,specs,cform){ return (function (){ return cljs.spec.alpha.gensub.call(null,p,overrides,cljs.core.conj.call(null,path,k),rmap__$1,f); });})(rmap__$1,___$1,id,kps,specs,cform)) ,null))); } });})(___$1,id,kps,specs,cform)) ; var gs = cljs.core.remove.call(null,cljs.core.nil_QMARK_,cljs.core.map.call(null,gen,self__.keys,self__.preds,self__.forms)); if(cljs.core.empty_QMARK_.call(null,gs)){ return null; } else { return cljs.spec.gen.alpha.one_of.call(null,gs); } } });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (id,kps,specs,cform){ return (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.or_spec_impl.call(null,self__.keys,self__.forms,self__.preds,gfn__$1); });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (id,kps,specs,cform){ return (function (_){ var self__ = this; var ___$1 = this; return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","or","cljs.spec.alpha/or",-831679639,null)),cljs.core.mapcat.call(null,cljs.core.vector,self__.keys,self__.forms)))); });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.getBasis = ((function (id,kps,specs,cform){ return (function (){ return new cljs.core.PersistentVector(null, 9, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"keys","keys",-1586012071,null),new cljs.core.Symbol(null,"forms","forms",-608443419,null),new cljs.core.Symbol(null,"preds","preds",150921777,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"id","id",252129435,null),new cljs.core.Symbol(null,"kps","kps",-1157342767,null),new cljs.core.Symbol(null,"specs","specs",-1227865028,null),new cljs.core.Symbol(null,"cform","cform",1319506748,null),new cljs.core.Symbol(null,"meta21160","meta21160",-2129868134,null)], null); });})(id,kps,specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21159.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21159.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21159"; cljs.spec.alpha.t_cljs$spec$alpha21159.cljs$lang$ctorPrWriter = ((function (id,kps,specs,cform){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21159"); });})(id,kps,specs,cform)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21159 = ((function (id,kps,specs,cform){ return (function cljs$spec$alpha$or_spec_impl_$___GT_t_cljs$spec$alpha21159(keys__$1,forms__$1,preds__$1,gfn__$1,id__$1,kps__$1,specs__$1,cform__$1,meta21160){ return (new cljs.spec.alpha.t_cljs$spec$alpha21159(keys__$1,forms__$1,preds__$1,gfn__$1,id__$1,kps__$1,specs__$1,cform__$1,meta21160)); });})(id,kps,specs,cform)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21159(keys,forms,preds,gfn,id,kps,specs,cform,cljs.core.PersistentArrayMap.EMPTY)); }); cljs.spec.alpha.and_preds = (function cljs$spec$alpha$and_preds(x,preds,forms){ var ret = x; var G__21174 = preds; var vec__21176 = G__21174; var seq__21177 = cljs.core.seq.call(null,vec__21176); var first__21178 = cljs.core.first.call(null,seq__21177); var seq__21177__$1 = cljs.core.next.call(null,seq__21177); var pred = first__21178; var preds__$1 = seq__21177__$1; var G__21175 = forms; var vec__21179 = G__21175; var seq__21180 = cljs.core.seq.call(null,vec__21179); var first__21181 = cljs.core.first.call(null,seq__21180); var seq__21180__$1 = cljs.core.next.call(null,seq__21180); var form = first__21181; var forms__$1 = seq__21180__$1; var ret__$1 = ret; var G__21174__$1 = G__21174; var G__21175__$1 = G__21175; while(true){ var ret__$2 = ret__$1; var vec__21182 = G__21174__$1; var seq__21183 = cljs.core.seq.call(null,vec__21182); var first__21184 = cljs.core.first.call(null,seq__21183); var seq__21183__$1 = cljs.core.next.call(null,seq__21183); var pred__$1 = first__21184; var preds__$2 = seq__21183__$1; var vec__21185 = G__21175__$1; var seq__21186 = cljs.core.seq.call(null,vec__21185); var first__21187 = cljs.core.first.call(null,seq__21186); var seq__21186__$1 = cljs.core.next.call(null,seq__21186); var form__$1 = first__21187; var forms__$2 = seq__21186__$1; if(cljs.core.truth_(pred__$1)){ var nret = cljs.spec.alpha.dt.call(null,pred__$1,ret__$2,form__$1); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,nret))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { var G__21188 = nret; var G__21189 = preds__$2; var G__21190 = forms__$2; ret__$1 = G__21188; G__21174__$1 = G__21189; G__21175__$1 = G__21190; continue; } } else { return ret__$2; } break; } }); cljs.spec.alpha.explain_pred_list = (function cljs$spec$alpha$explain_pred_list(forms,preds,path,via,in$,x){ var ret = x; var G__21197 = forms; var vec__21199 = G__21197; var seq__21200 = cljs.core.seq.call(null,vec__21199); var first__21201 = cljs.core.first.call(null,seq__21200); var seq__21200__$1 = cljs.core.next.call(null,seq__21200); var form = first__21201; var forms__$1 = seq__21200__$1; var G__21198 = preds; var vec__21202 = G__21198; var seq__21203 = cljs.core.seq.call(null,vec__21202); var first__21204 = cljs.core.first.call(null,seq__21203); var seq__21203__$1 = cljs.core.next.call(null,seq__21203); var pred = first__21204; var preds__$1 = seq__21203__$1; var ret__$1 = ret; var G__21197__$1 = G__21197; var G__21198__$1 = G__21198; while(true){ var ret__$2 = ret__$1; var vec__21205 = G__21197__$1; var seq__21206 = cljs.core.seq.call(null,vec__21205); var first__21207 = cljs.core.first.call(null,seq__21206); var seq__21206__$1 = cljs.core.next.call(null,seq__21206); var form__$1 = first__21207; var forms__$2 = seq__21206__$1; var vec__21208 = G__21198__$1; var seq__21209 = cljs.core.seq.call(null,vec__21208); var first__21210 = cljs.core.first.call(null,seq__21209); var seq__21209__$1 = cljs.core.next.call(null,seq__21209); var pred__$1 = first__21210; var preds__$2 = seq__21209__$1; if(cljs.core.truth_(pred__$1)){ var nret = cljs.spec.alpha.dt.call(null,pred__$1,ret__$2,form__$1); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,nret))){ return cljs.spec.alpha.explain_1.call(null,form__$1,pred__$1,path,via,in$,ret__$2); } else { var G__21211 = nret; var G__21212 = forms__$2; var G__21213 = preds__$2; ret__$1 = G__21211; G__21197__$1 = G__21212; G__21198__$1 = G__21213; continue; } } else { return null; } break; } }); /** * Do not call this directly, use 'and' */ cljs.spec.alpha.and_spec_impl = (function cljs$spec$alpha$and_spec_impl(forms,preds,gfn){ var specs = (new cljs.core.Delay((function (){ return cljs.core.mapv.call(null,cljs.spec.alpha.specize,preds,forms); }),null)); var cform = (function (){var G__21216 = cljs.core.count.call(null,preds); switch (G__21216) { case (2): return ((function (G__21216,specs){ return (function (x){ var specs__$1 = cljs.core.deref.call(null,specs); var ret = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(0)),x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { return cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(1)),ret); } }); ;})(G__21216,specs)) break; case (3): return ((function (G__21216,specs){ return (function (x){ var specs__$1 = cljs.core.deref.call(null,specs); var ret = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(0)),x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { var ret__$1 = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(1)),ret); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret__$1))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { return cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,(2)),ret__$1); } } }); ;})(G__21216,specs)) break; default: return ((function (G__21216,specs){ return (function (x){ var specs__$1 = cljs.core.deref.call(null,specs); var ret = x; var i = (0); while(true){ if((i < cljs.core.count.call(null,specs__$1))){ var nret = cljs.spec.alpha.conform_STAR_.call(null,specs__$1.call(null,i),ret); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,nret))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { var G__21221 = nret; var G__21222 = (i + (1)); ret = G__21221; i = G__21222; continue; } } else { return ret; } break; } }); ;})(G__21216,specs)) } })(); if(typeof cljs.spec.alpha.t_cljs$spec$alpha21217 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21217 = (function (forms,preds,gfn,specs,cform,meta21218){ this.forms = forms; this.preds = preds; this.gfn = gfn; this.specs = specs; this.cform = cform; this.meta21218 = meta21218; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (specs,cform){ return (function (_21219,meta21218__$1){ var self__ = this; var _21219__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21217(self__.forms,self__.preds,self__.gfn,self__.specs,self__.cform,meta21218__$1)); });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (specs,cform){ return (function (_21219){ var self__ = this; var _21219__$1 = this; return self__.meta21218; });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (specs,cform){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (specs,cform){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (specs,cform){ return (function (_,x){ var self__ = this; var ___$1 = this; return self__.cform.call(null,x); });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (specs,cform){ return (function (_,x){ var self__ = this; var ___$1 = this; return cljs.core.reduce.call(null,((function (___$1,specs,cform){ return (function (p1__21215_SHARP_,p2__21214_SHARP_){ return cljs.spec.alpha.unform.call(null,p2__21214_SHARP_,p1__21215_SHARP_); });})(___$1,specs,cform)) ,x,cljs.core.reverse.call(null,self__.preds)); });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (specs,cform){ return (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.explain_pred_list.call(null,self__.forms,self__.preds,path,via,in$,x); });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (specs,cform){ return (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { return cljs.spec.alpha.gensub.call(null,cljs.core.first.call(null,self__.preds),overrides,path,rmap,cljs.core.first.call(null,self__.forms)); } });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (specs,cform){ return (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.and_spec_impl.call(null,self__.forms,self__.preds,gfn__$1); });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (specs,cform){ return (function (_){ var self__ = this; var ___$1 = this; return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","and","cljs.spec.alpha/and",-2060279705,null)),self__.forms))); });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.getBasis = ((function (specs,cform){ return (function (){ return new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"forms","forms",-608443419,null),new cljs.core.Symbol(null,"preds","preds",150921777,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"specs","specs",-1227865028,null),new cljs.core.Symbol(null,"cform","cform",1319506748,null),new cljs.core.Symbol(null,"meta21218","meta21218",742024931,null)], null); });})(specs,cform)) ; cljs.spec.alpha.t_cljs$spec$alpha21217.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21217.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21217"; cljs.spec.alpha.t_cljs$spec$alpha21217.cljs$lang$ctorPrWriter = ((function (specs,cform){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21217"); });})(specs,cform)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21217 = ((function (specs,cform){ return (function cljs$spec$alpha$and_spec_impl_$___GT_t_cljs$spec$alpha21217(forms__$1,preds__$1,gfn__$1,specs__$1,cform__$1,meta21218){ return (new cljs.spec.alpha.t_cljs$spec$alpha21217(forms__$1,preds__$1,gfn__$1,specs__$1,cform__$1,meta21218)); });})(specs,cform)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21217(forms,preds,gfn,specs,cform,cljs.core.PersistentArrayMap.EMPTY)); }); cljs.spec.alpha.coll_prob = (function cljs$spec$alpha$coll_prob(x,kfn,kform,distinct,count,min_count,max_count,path,via,in$){ var pred = (function (){var or__8359__auto__ = kfn; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.core.coll_QMARK_; } })(); var kform__$1 = (function (){var or__8359__auto__ = kform; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return new cljs.core.Symbol("cljs.core","coll?","cljs.core/coll?",1208130522,null); } })(); if(cljs.core.not.call(null,cljs.spec.alpha.pvalid_QMARK_.call(null,pred,x))){ return cljs.spec.alpha.explain_1.call(null,kform__$1,pred,path,via,in$,x); } else { if(cljs.core.truth_((function (){var and__8347__auto__ = count; if(cljs.core.truth_(and__8347__auto__)){ return cljs.core.not_EQ_.call(null,count,cljs.core.bounded_count.call(null,count,x)); } else { return and__8347__auto__; } })())){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.core","=","cljs.core/=",-1891498332,null)),(function (){var x__9313__auto__ = count; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),(function (){var x__9313__auto__ = cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.core","count","cljs.core/count",-921270233,null)),cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol(null,"%","%",-950237169,null))))); return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })()))),new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } else { if(cljs.core.truth_((function (){var and__8347__auto__ = (function (){var or__8359__auto__ = min_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return max_count; } })(); if(cljs.core.truth_(and__8347__auto__)){ return !((((function (){var or__8359__auto__ = min_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return (0); } })() <= cljs.core.bounded_count.call(null,(cljs.core.truth_(max_count)?(max_count + (1)):min_count),x))) && ((cljs.core.bounded_count.call(null,(cljs.core.truth_(max_count)?(max_count + (1)):min_count),x) <= (function (){var or__8359__auto__ = max_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return (9007199254740991); } })()))); } else { return and__8347__auto__; } })())){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.core","<=","cljs.core/<=",1677001748,null)),(function (){var x__9313__auto__ = (function (){var or__8359__auto__ = min_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return (0); } })(); return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),(function (){var x__9313__auto__ = cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.core","count","cljs.core/count",-921270233,null)),cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol(null,"%","%",-950237169,null))))); return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),(function (){var x__9313__auto__ = (function (){var or__8359__auto__ = max_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return (9007199254740991); } })(); return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })()))),new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } else { if(cljs.core.truth_((function (){var and__8347__auto__ = distinct; if(cljs.core.truth_(and__8347__auto__)){ return (!(cljs.core.empty_QMARK_.call(null,x))) && (cljs.core.not.call(null,cljs.core.apply.call(null,cljs.core.distinct_QMARK_,x))); } else { return and__8347__auto__; } })())){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),new cljs.core.Symbol(null,"distinct?","distinct?",-1684357959,null),new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } else { return null; } } } } }); /** * Do not call this directly, use 'merge' */ cljs.spec.alpha.merge_spec_impl = (function cljs$spec$alpha$merge_spec_impl(forms,preds,gfn){ if(typeof cljs.spec.alpha.t_cljs$spec$alpha21231 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21231 = (function (forms,preds,gfn,meta21232){ this.forms = forms; this.preds = preds; this.gfn = gfn; this.meta21232 = meta21232; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_21233,meta21232__$1){ var self__ = this; var _21233__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21231(self__.forms,self__.preds,self__.gfn,meta21232__$1)); }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_21233){ var self__ = this; var _21233__$1 = this; return self__.meta21232; }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = (function (s){ var self__ = this; var s__$1 = this; return s__$1; }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = (function (_,x){ var self__ = this; var ___$1 = this; var ms = cljs.core.map.call(null,((function (___$1){ return (function (p1__21223_SHARP_,p2__21224_SHARP_){ return cljs.spec.alpha.dt.call(null,p1__21223_SHARP_,x,p2__21224_SHARP_); });})(___$1)) ,self__.preds,self__.forms); if(cljs.core.truth_(cljs.core.some.call(null,cljs.spec.alpha.invalid_QMARK_,ms))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { return cljs.core.apply.call(null,cljs.core.merge,ms); } }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = (function (_,x){ var self__ = this; var ___$1 = this; return cljs.core.apply.call(null,cljs.core.merge,cljs.core.map.call(null,((function (___$1){ return (function (p1__21225_SHARP_){ return cljs.spec.alpha.unform.call(null,p1__21225_SHARP_,x); });})(___$1)) ,cljs.core.reverse.call(null,self__.preds))); }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; return cljs.core.apply.call(null,cljs.core.concat,cljs.core.map.call(null,((function (___$1){ return (function (p1__21226_SHARP_,p2__21227_SHARP_){ return cljs.spec.alpha.explain_1.call(null,p1__21226_SHARP_,p2__21227_SHARP_,path,via,in$,x); });})(___$1)) ,self__.forms,self__.preds)); }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { return cljs.spec.gen.alpha.fmap.call(null,((function (___$1){ return (function (p1__21228_SHARP_){ return cljs.core.apply.call(null,cljs.core.merge,p1__21228_SHARP_); });})(___$1)) ,cljs.core.apply.call(null,cljs.spec.gen.alpha.tuple,cljs.core.map.call(null,((function (___$1){ return (function (p1__21229_SHARP_,p2__21230_SHARP_){ return cljs.spec.alpha.gensub.call(null,p1__21229_SHARP_,overrides,path,rmap,p2__21230_SHARP_); });})(___$1)) ,self__.preds,self__.forms))); } }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.merge_spec_impl.call(null,self__.forms,self__.preds,gfn__$1); }); cljs.spec.alpha.t_cljs$spec$alpha21231.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = (function (_){ var self__ = this; var ___$1 = this; return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","merge","cljs.spec.alpha/merge",1420080689,null)),self__.forms))); }); cljs.spec.alpha.t_cljs$spec$alpha21231.getBasis = (function (){ return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"forms","forms",-608443419,null),new cljs.core.Symbol(null,"preds","preds",150921777,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"meta21232","meta21232",-291333589,null)], null); }); cljs.spec.alpha.t_cljs$spec$alpha21231.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21231.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21231"; cljs.spec.alpha.t_cljs$spec$alpha21231.cljs$lang$ctorPrWriter = (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21231"); }); cljs.spec.alpha.__GT_t_cljs$spec$alpha21231 = (function cljs$spec$alpha$merge_spec_impl_$___GT_t_cljs$spec$alpha21231(forms__$1,preds__$1,gfn__$1,meta21232){ return (new cljs.spec.alpha.t_cljs$spec$alpha21231(forms__$1,preds__$1,gfn__$1,meta21232)); }); } return (new cljs.spec.alpha.t_cljs$spec$alpha21231(forms,preds,gfn,cljs.core.PersistentArrayMap.EMPTY)); }); /** * Do not call this directly, use 'every', 'every-kv', 'coll-of' or 'map-of' */ cljs.spec.alpha.every_impl = (function cljs$spec$alpha$every_impl(var_args){ var G__21239 = arguments.length; switch (G__21239) { case 3: return cljs.spec.alpha.every_impl.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); break; case 4: return cljs.spec.alpha.every_impl.cljs$core$IFn$_invoke$arity$4((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),(arguments[(3)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.every_impl.cljs$core$IFn$_invoke$arity$3 = (function (form,pred,opts){ return cljs.spec.alpha.every_impl.call(null,form,pred,opts,null); }); cljs.spec.alpha.every_impl.cljs$core$IFn$_invoke$arity$4 = (function (form,pred,p__21240,gfn){ var map__21241 = p__21240; var map__21241__$1 = ((((!((map__21241 == null)))?((((map__21241.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21241.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21241):map__21241); var opts = map__21241__$1; var max_count = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword(null,"max-count","max-count",1539185305)); var kind_form = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword("cljs.spec.alpha","kind-form","cljs.spec.alpha/kind-form",-1047104697)); var gen_max = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword(null,"gen-max","gen-max",-793680445),(20)); var cpred = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword("cljs.spec.alpha","cpred","cljs.spec.alpha/cpred",-693471218)); var conform_keys = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword(null,"conform-keys","conform-keys",-1800041814)); var describe_form = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword("cljs.spec.alpha","describe","cljs.spec.alpha/describe",1883026911)); var distinct = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword(null,"distinct","distinct",-1788879121)); var kfn = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword("cljs.spec.alpha","kfn","cljs.spec.alpha/kfn",672643897)); var gen_into = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword(null,"into","into",-150836029)); var count = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword(null,"count","count",2139924085)); var min_count = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword(null,"min-count","min-count",1594709013)); var kind = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword(null,"kind","kind",-717265803)); var conform_all = cljs.core.get.call(null,map__21241__$1,new cljs.core.Keyword("cljs.spec.alpha","conform-all","cljs.spec.alpha/conform-all",45201917)); var conform_into = gen_into; var spec = (new cljs.core.Delay(((function (conform_into,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (){ return cljs.spec.alpha.specize.call(null,pred); });})(conform_into,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ,null)); var check_QMARK_ = ((function (conform_into,spec,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (p1__21234_SHARP_){ return cljs.spec.alpha.valid_QMARK_.call(null,cljs.core.deref.call(null,spec),p1__21234_SHARP_); });})(conform_into,spec,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; var kfn__$1 = (function (){var or__8359__auto__ = kfn; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return ((function (or__8359__auto__,conform_into,spec,check_QMARK_,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (i,v){ return i; }); ;})(or__8359__auto__,conform_into,spec,check_QMARK_,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) } })(); var addcv = ((function (conform_into,spec,check_QMARK_,kfn__$1,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (ret,i,v,cv){ return cljs.core.conj.call(null,ret,cv); });})(conform_into,spec,check_QMARK_,kfn__$1,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; var cfns = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (x){ if((cljs.core.vector_QMARK_.call(null,x)) && ((cljs.core.not.call(null,conform_into)) || (cljs.core.vector_QMARK_.call(null,conform_into)))){ return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.identity,((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (ret,i,v,cv){ if((v === cv)){ return ret; } else { return cljs.core.assoc.call(null,ret,i,cv); } });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ,cljs.core.identity], null); } else { if(cljs.core.truth_((function (){var and__8347__auto__ = cljs.core.map_QMARK_.call(null,x); if(and__8347__auto__){ var or__8359__auto__ = (function (){var and__8347__auto____$1 = kind; if(cljs.core.truth_(and__8347__auto____$1)){ return cljs.core.not.call(null,conform_into); } else { return and__8347__auto____$1; } })(); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.core.map_QMARK_.call(null,conform_into); } } else { return and__8347__auto__; } })())){ return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [(cljs.core.truth_(conform_keys)?cljs.core.empty:cljs.core.identity),((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (ret,i,v,cv){ if(((v === cv)) && (cljs.core.not.call(null,conform_keys))){ return ret; } else { return cljs.core.assoc.call(null,ret,cljs.core.nth.call(null,(cljs.core.truth_(conform_keys)?cv:v),(0)),cljs.core.nth.call(null,cv,(1))); } });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ,cljs.core.identity], null); } else { if((cljs.core.list_QMARK_.call(null,conform_into)) || (cljs.core.seq_QMARK_.call(null,conform_into)) || ((cljs.core.not.call(null,conform_into)) && ((cljs.core.list_QMARK_.call(null,x)) || (cljs.core.seq_QMARK_.call(null,x))))){ return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.empty,addcv,cljs.core.reverse], null); } else { return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (p1__21235_SHARP_){ return cljs.core.empty.call(null,(function (){var or__8359__auto__ = conform_into; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return p1__21235_SHARP_; } })()); });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ,addcv,cljs.core.identity], null); } } } });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; if(typeof cljs.spec.alpha.t_cljs$spec$alpha21243 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21243 = (function (form,max_count,check_QMARK_,gfn,gen_max,map__21241,pred,cpred,conform_keys,kind_form,addcv,cfns,describe_form,distinct,p__21240,spec,kfn,gen_into,count,min_count,opts,kind,conform_all,conform_into,meta21244){ this.form = form; this.max_count = max_count; this.check_QMARK_ = check_QMARK_; this.gfn = gfn; this.gen_max = gen_max; this.map__21241 = map__21241; this.pred = pred; this.cpred = cpred; this.conform_keys = conform_keys; this.kind_form = kind_form; this.addcv = addcv; this.cfns = cfns; this.describe_form = describe_form; this.distinct = distinct; this.p__21240 = p__21240; this.spec = spec; this.kfn = kfn; this.gen_into = gen_into; this.count = count; this.min_count = min_count; this.opts = opts; this.kind = kind; this.conform_all = conform_all; this.conform_into = conform_into; this.meta21244 = meta21244; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (_21245,meta21244__$1){ var self__ = this; var _21245__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21243(self__.form,self__.max_count,self__.check_QMARK_,self__.gfn,self__.gen_max,self__.map__21241,self__.pred,self__.cpred,self__.conform_keys,self__.kind_form,self__.addcv,self__.cfns,self__.describe_form,self__.distinct,self__.p__21240,self__.spec,self__.kfn,self__.gen_into,self__.count,self__.min_count,self__.opts,self__.kind,self__.conform_all,self__.conform_into,meta21244__$1)); });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (_21245){ var self__ = this; var _21245__$1 = this; return self__.meta21244; });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (_,x){ var self__ = this; var ___$1 = this; var spec__$1 = cljs.core.deref.call(null,self__.spec); if(cljs.core.not.call(null,self__.cpred.call(null,x))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { if(cljs.core.truth_(self__.conform_all)){ var vec__21246 = self__.cfns.call(null,x); var init = cljs.core.nth.call(null,vec__21246,(0),null); var add = cljs.core.nth.call(null,vec__21246,(1),null); var complete = cljs.core.nth.call(null,vec__21246,(2),null); var ret = init.call(null,x); var i = (0); var G__21252 = cljs.core.seq.call(null,x); var vec__21253 = G__21252; var seq__21254 = cljs.core.seq.call(null,vec__21253); var first__21255 = cljs.core.first.call(null,seq__21254); var seq__21254__$1 = cljs.core.next.call(null,seq__21254); var v = first__21255; var vs = seq__21254__$1; var vseq = vec__21253; var ret__$1 = ret; var i__$1 = i; var G__21252__$1 = G__21252; while(true){ var ret__$2 = ret__$1; var i__$2 = i__$1; var vec__21256 = G__21252__$1; var seq__21257 = cljs.core.seq.call(null,vec__21256); var first__21258 = cljs.core.first.call(null,seq__21257); var seq__21257__$1 = cljs.core.next.call(null,seq__21257); var v__$1 = first__21258; var vs__$1 = seq__21257__$1; var vseq__$1 = vec__21256; if(vseq__$1){ var cv = cljs.spec.alpha.conform_STAR_.call(null,spec__$1,v__$1); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,cv))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { var G__21283 = add.call(null,ret__$2,i__$2,v__$1,cv); var G__21284 = (i__$2 + (1)); var G__21285 = vs__$1; ret__$1 = G__21283; i__$1 = G__21284; G__21252__$1 = G__21285; continue; } } else { return complete.call(null,ret__$2); } break; } } else { if(cljs.core.indexed_QMARK_.call(null,x)){ var step = (function (){var x__8711__auto__ = (1); var y__8712__auto__ = cljs.core.long$.call(null,(cljs.core.count.call(null,x) / cljs.spec.alpha._STAR_coll_check_limit_STAR_)); return ((x__8711__auto__ > y__8712__auto__) ? x__8711__auto__ : y__8712__auto__); })(); var i = (0); while(true){ if((i >= cljs.core.count.call(null,x))){ return x; } else { if(cljs.core.truth_(cljs.spec.alpha.valid_QMARK_.call(null,spec__$1,cljs.core.nth.call(null,x,i)))){ var G__21286 = (i + step); i = G__21286; continue; } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } } break; } } else { var limit = cljs.spec.alpha._STAR_coll_check_limit_STAR_; var i = (0); var G__21262 = cljs.core.seq.call(null,x); var vec__21263 = G__21262; var seq__21264 = cljs.core.seq.call(null,vec__21263); var first__21265 = cljs.core.first.call(null,seq__21264); var seq__21264__$1 = cljs.core.next.call(null,seq__21264); var v = first__21265; var vs = seq__21264__$1; var vseq = vec__21263; var i__$1 = i; var G__21262__$1 = G__21262; while(true){ var i__$2 = i__$1; var vec__21266 = G__21262__$1; var seq__21267 = cljs.core.seq.call(null,vec__21266); var first__21268 = cljs.core.first.call(null,seq__21267); var seq__21267__$1 = cljs.core.next.call(null,seq__21267); var v__$1 = first__21268; var vs__$1 = seq__21267__$1; var vseq__$1 = vec__21266; if(((vseq__$1 == null)) || (cljs.core._EQ_.call(null,i__$2,limit))){ return x; } else { if(cljs.core.truth_(cljs.spec.alpha.valid_QMARK_.call(null,spec__$1,v__$1))){ var G__21287 = (i__$2 + (1)); var G__21288 = vs__$1; i__$1 = G__21287; G__21262__$1 = G__21288; continue; } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } } break; } } } } });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (_,x){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.conform_all)){ var spec__$1 = cljs.core.deref.call(null,self__.spec); var vec__21269 = self__.cfns.call(null,x); var init = cljs.core.nth.call(null,vec__21269,(0),null); var add = cljs.core.nth.call(null,vec__21269,(1),null); var complete = cljs.core.nth.call(null,vec__21269,(2),null); var ret = init.call(null,x); var i = (0); var G__21275 = cljs.core.seq.call(null,x); var vec__21276 = G__21275; var seq__21277 = cljs.core.seq.call(null,vec__21276); var first__21278 = cljs.core.first.call(null,seq__21277); var seq__21277__$1 = cljs.core.next.call(null,seq__21277); var v = first__21278; var vs = seq__21277__$1; var vseq = vec__21276; var ret__$1 = ret; var i__$1 = i; var G__21275__$1 = G__21275; while(true){ var ret__$2 = ret__$1; var i__$2 = i__$1; var vec__21279 = G__21275__$1; var seq__21280 = cljs.core.seq.call(null,vec__21279); var first__21281 = cljs.core.first.call(null,seq__21280); var seq__21280__$1 = cljs.core.next.call(null,seq__21280); var v__$1 = first__21281; var vs__$1 = seq__21280__$1; var vseq__$1 = vec__21279; if((i__$2 >= cljs.core.count.call(null,x))){ return complete.call(null,ret__$2); } else { var G__21289 = add.call(null,ret__$2,i__$2,v__$1,cljs.spec.alpha.unform_STAR_.call(null,spec__$1,v__$1)); var G__21290 = (i__$2 + (1)); var G__21291 = vs__$1; ret__$1 = G__21289; i__$1 = G__21290; G__21275__$1 = G__21291; continue; } break; } } else { return x; } });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; var or__8359__auto__ = cljs.spec.alpha.coll_prob.call(null,x,self__.kind,self__.kind_form,self__.distinct,self__.count,self__.min_count,self__.max_count,path,via,in$); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.core.apply.call(null,cljs.core.concat,(cljs.core.truth_(self__.conform_all)?cljs.core.identity:cljs.core.partial.call(null,cljs.core.take,cljs.spec.alpha._STAR_coll_error_limit_STAR_)).call(null,cljs.core.keep.call(null,cljs.core.identity,cljs.core.map.call(null,((function (or__8359__auto__,___$1,conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (i,v){ var k = self__.kfn.call(null,i,v); if(cljs.core.truth_(self__.check_QMARK_.call(null,v))){ return null; } else { var prob = cljs.spec.alpha.explain_1.call(null,self__.form,self__.pred,path,via,cljs.core.conj.call(null,in$,k),v); return prob; } });})(or__8359__auto__,___$1,conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ,cljs.core.range.call(null),x)))); } });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { var pgen = cljs.spec.alpha.gensub.call(null,self__.pred,overrides,path,rmap,self__.form); return cljs.spec.gen.alpha.bind.call(null,(cljs.core.truth_(self__.gen_into)?cljs.spec.gen.alpha.return$.call(null,cljs.core.empty.call(null,self__.gen_into)):(cljs.core.truth_(self__.kind)?cljs.spec.gen.alpha.fmap.call(null,((function (pgen,___$1,conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (p1__21236_SHARP_){ if(cljs.core.empty_QMARK_.call(null,p1__21236_SHARP_)){ return p1__21236_SHARP_; } else { return cljs.core.empty.call(null,p1__21236_SHARP_); } });})(pgen,___$1,conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ,cljs.spec.alpha.gensub.call(null,self__.kind,overrides,path,rmap,self__.form)):cljs.spec.gen.alpha.return$.call(null,cljs.core.PersistentVector.EMPTY) )),((function (pgen,___$1,conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (init){ return cljs.spec.gen.alpha.fmap.call(null,((function (pgen,___$1,conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (p1__21237_SHARP_){ if(cljs.core.vector_QMARK_.call(null,init)){ return p1__21237_SHARP_; } else { return cljs.core.into.call(null,init,p1__21237_SHARP_); } });})(pgen,___$1,conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ,(cljs.core.truth_(self__.distinct)?(cljs.core.truth_(self__.count)?cljs.spec.gen.alpha.vector_distinct.call(null,pgen,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"num-elements","num-elements",1960422107),self__.count,new cljs.core.Keyword(null,"max-tries","max-tries",-1824441792),(100)], null)):cljs.spec.gen.alpha.vector_distinct.call(null,pgen,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"min-elements","min-elements",949370780),(function (){var or__8359__auto__ = self__.min_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return (0); } })(),new cljs.core.Keyword(null,"max-elements","max-elements",433034073),(function (){var or__8359__auto__ = self__.max_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { var x__8711__auto__ = self__.gen_max; var y__8712__auto__ = ((2) * (function (){var or__8359__auto____$1 = self__.min_count; if(cljs.core.truth_(or__8359__auto____$1)){ return or__8359__auto____$1; } else { return (0); } })()); return ((x__8711__auto__ > y__8712__auto__) ? x__8711__auto__ : y__8712__auto__); } })(),new cljs.core.Keyword(null,"max-tries","max-tries",-1824441792),(100)], null))):(cljs.core.truth_(self__.count)?cljs.spec.gen.alpha.vector.call(null,pgen,self__.count):(cljs.core.truth_((function (){var or__8359__auto__ = self__.min_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return self__.max_count; } })())?cljs.spec.gen.alpha.vector.call(null,pgen,(function (){var or__8359__auto__ = self__.min_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return (0); } })(),(function (){var or__8359__auto__ = self__.max_count; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { var x__8711__auto__ = self__.gen_max; var y__8712__auto__ = ((2) * (function (){var or__8359__auto____$1 = self__.min_count; if(cljs.core.truth_(or__8359__auto____$1)){ return or__8359__auto____$1; } else { return (0); } })()); return ((x__8711__auto__ > y__8712__auto__) ? x__8711__auto__ : y__8712__auto__); } })()):cljs.spec.gen.alpha.vector.call(null,pgen,(0),self__.gen_max) )))); });})(pgen,___$1,conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ); } });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.every_impl.call(null,self__.form,self__.pred,self__.opts,gfn__$1); });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (_){ var self__ = this; var ___$1 = this; var or__8359__auto__ = self__.describe_form; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","every","cljs.spec.alpha/every",123912744,null)),(function (){var x__9313__auto__ = self__.form; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),cljs.core.mapcat.call(null,cljs.core.identity,self__.opts)))); } });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.getBasis = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (){ return new cljs.core.PersistentVector(null, 25, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"form","form",16469056,null),new cljs.core.Symbol(null,"max-count","max-count",-1115250464,null),new cljs.core.Symbol(null,"check?","check?",409539557,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"gen-max","gen-max",846851082,null),new cljs.core.Symbol(null,"map__21241","map__21241",1502865324,null),new cljs.core.Symbol(null,"pred","pred",-727012372,null),new cljs.core.Symbol(null,"cpred","cpred",-540353554,null),new cljs.core.Symbol(null,"conform-keys","conform-keys",-159510287,null),new cljs.core.Symbol(null,"kind-form","kind-form",1155997457,null),new cljs.core.Symbol(null,"addcv","addcv",-1552991247,null),new cljs.core.Symbol(null,"cfns","cfns",1335482066,null),new cljs.core.Symbol(null,"describe-form","describe-form",-1410156588,null),new cljs.core.Symbol(null,"distinct","distinct",-148347594,null),new cljs.core.Symbol(null,"p__21240","p__21240",-1741901098,null),new cljs.core.Symbol(null,"spec","spec",1988051928,null),new cljs.core.Symbol(null,"kfn","kfn",729311001,null),new cljs.core.Symbol(null,"gen-into","gen-into",592640985,null),new cljs.core.Symbol(null,"count","count",-514511684,null),new cljs.core.Symbol(null,"min-count","min-count",-1059726756,null),new cljs.core.Symbol(null,"opts","opts",1795607228,null),new cljs.core.Symbol(null,"kind","kind",923265724,null),new cljs.core.Symbol(null,"conform-all","conform-all",-980179459,null),new cljs.core.Symbol(null,"conform-into","conform-into",-1039113729,null),new cljs.core.Symbol(null,"meta21244","meta21244",23936522,null)], null); });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.t_cljs$spec$alpha21243.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21243.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21243"; cljs.spec.alpha.t_cljs$spec$alpha21243.cljs$lang$ctorPrWriter = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21243"); });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21243 = ((function (conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all){ return (function cljs$spec$alpha$__GT_t_cljs$spec$alpha21243(form__$1,max_count__$1,check_QMARK___$1,gfn__$1,gen_max__$1,map__21241__$2,pred__$1,cpred__$1,conform_keys__$1,kind_form__$1,addcv__$1,cfns__$1,describe_form__$1,distinct__$1,p__21240__$1,spec__$1,kfn__$2,gen_into__$1,count__$1,min_count__$1,opts__$1,kind__$1,conform_all__$1,conform_into__$1,meta21244){ return (new cljs.spec.alpha.t_cljs$spec$alpha21243(form__$1,max_count__$1,check_QMARK___$1,gfn__$1,gen_max__$1,map__21241__$2,pred__$1,cpred__$1,conform_keys__$1,kind_form__$1,addcv__$1,cfns__$1,describe_form__$1,distinct__$1,p__21240__$1,spec__$1,kfn__$2,gen_into__$1,count__$1,min_count__$1,opts__$1,kind__$1,conform_all__$1,conform_into__$1,meta21244)); });})(conform_into,spec,check_QMARK_,kfn__$1,addcv,cfns,map__21241,map__21241__$1,opts,max_count,kind_form,gen_max,cpred,conform_keys,describe_form,distinct,kfn,gen_into,count,min_count,kind,conform_all)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21243(form,max_count,check_QMARK_,gfn,gen_max,map__21241__$1,pred,cpred,conform_keys,kind_form,addcv,cfns,describe_form,distinct,p__21240,spec,kfn__$1,gen_into,count,min_count,opts,kind,conform_all,conform_into,cljs.core.PersistentArrayMap.EMPTY)); }); cljs.spec.alpha.every_impl.cljs$lang$maxFixedArity = 4; cljs.spec.alpha.accept = (function cljs$spec$alpha$accept(x){ return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252),new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),new cljs.core.Keyword(null,"ret","ret",-468222814),x], null); }); cljs.spec.alpha.accept_QMARK_ = (function cljs$spec$alpha$accept_QMARK_(p__21292){ var map__21293 = p__21292; var map__21293__$1 = ((((!((map__21293 == null)))?((((map__21293.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21293.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21293):map__21293); var op = cljs.core.get.call(null,map__21293__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); return cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),op); }); cljs.spec.alpha.pcat_STAR_ = (function cljs$spec$alpha$pcat_STAR_(p__21295){ var map__21296 = p__21295; var map__21296__$1 = ((((!((map__21296 == null)))?((((map__21296.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21296.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21296):map__21296); var vec__21297 = cljs.core.get.call(null,map__21296__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var seq__21298 = cljs.core.seq.call(null,vec__21297); var first__21299 = cljs.core.first.call(null,seq__21298); var seq__21298__$1 = cljs.core.next.call(null,seq__21298); var p1 = first__21299; var pr = seq__21298__$1; var ps = vec__21297; var vec__21300 = cljs.core.get.call(null,map__21296__$1,new cljs.core.Keyword(null,"ks","ks",1900203942)); var seq__21301 = cljs.core.seq.call(null,vec__21300); var first__21302 = cljs.core.first.call(null,seq__21301); var seq__21301__$1 = cljs.core.next.call(null,seq__21301); var k1 = first__21302; var kr = seq__21301__$1; var ks = vec__21300; var vec__21303 = cljs.core.get.call(null,map__21296__$1,new cljs.core.Keyword(null,"forms","forms",2045992350)); var seq__21304 = cljs.core.seq.call(null,vec__21303); var first__21305 = cljs.core.first.call(null,seq__21304); var seq__21304__$1 = cljs.core.next.call(null,seq__21304); var f1 = first__21305; var fr = seq__21304__$1; var forms = vec__21303; var ret = cljs.core.get.call(null,map__21296__$1,new cljs.core.Keyword(null,"ret","ret",-468222814)); var rep_PLUS_ = cljs.core.get.call(null,map__21296__$1,new cljs.core.Keyword(null,"rep+","rep+",-281382396)); if(cljs.core.every_QMARK_.call(null,cljs.core.identity,ps)){ if(cljs.core.truth_(cljs.spec.alpha.accept_QMARK_.call(null,p1))){ var rp = new cljs.core.Keyword(null,"ret","ret",-468222814).cljs$core$IFn$_invoke$arity$1(p1); var ret__$1 = cljs.core.conj.call(null,ret,(cljs.core.truth_(ks)?cljs.core.PersistentArrayMap.createAsIfByAssoc([k1,rp]):rp)); if(pr){ return cljs.spec.alpha.pcat_STAR_.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"ps","ps",292358046),pr,new cljs.core.Keyword(null,"ks","ks",1900203942),kr,new cljs.core.Keyword(null,"forms","forms",2045992350),fr,new cljs.core.Keyword(null,"ret","ret",-468222814),ret__$1], null)); } else { return cljs.spec.alpha.accept.call(null,ret__$1); } } else { return new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252),new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),new cljs.core.Keyword(null,"ps","ps",292358046),ps,new cljs.core.Keyword(null,"ret","ret",-468222814),ret,new cljs.core.Keyword(null,"ks","ks",1900203942),ks,new cljs.core.Keyword(null,"forms","forms",2045992350),forms,new cljs.core.Keyword(null,"rep+","rep+",-281382396),rep_PLUS_], null); } } else { return null; } }); cljs.spec.alpha.pcat = (function cljs$spec$alpha$pcat(var_args){ var args__9643__auto__ = []; var len__9636__auto___21308 = arguments.length; var i__9637__auto___21309 = (0); while(true){ if((i__9637__auto___21309 < len__9636__auto___21308)){ args__9643__auto__.push((arguments[i__9637__auto___21309])); var G__21310 = (i__9637__auto___21309 + (1)); i__9637__auto___21309 = G__21310; continue; } else { } break; } var argseq__9644__auto__ = ((((0) < args__9643__auto__.length))?(new cljs.core.IndexedSeq(args__9643__auto__.slice((0)),(0),null)):null); return cljs.spec.alpha.pcat.cljs$core$IFn$_invoke$arity$variadic(argseq__9644__auto__); }); cljs.spec.alpha.pcat.cljs$core$IFn$_invoke$arity$variadic = (function (ps){ return cljs.spec.alpha.pcat_STAR_.call(null,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"ps","ps",292358046),ps,new cljs.core.Keyword(null,"ret","ret",-468222814),cljs.core.PersistentVector.EMPTY], null)); }); cljs.spec.alpha.pcat.cljs$lang$maxFixedArity = (0); cljs.spec.alpha.pcat.cljs$lang$applyTo = (function (seq21307){ return cljs.spec.alpha.pcat.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq21307)); }); /** * Do not call this directly, use 'cat' */ cljs.spec.alpha.cat_impl = (function cljs$spec$alpha$cat_impl(ks,ps,forms){ return cljs.spec.alpha.pcat_STAR_.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"ks","ks",1900203942),ks,new cljs.core.Keyword(null,"ps","ps",292358046),ps,new cljs.core.Keyword(null,"forms","forms",2045992350),forms,new cljs.core.Keyword(null,"ret","ret",-468222814),cljs.core.PersistentArrayMap.EMPTY], null)); }); cljs.spec.alpha.rep_STAR_ = (function cljs$spec$alpha$rep_STAR_(p1,p2,ret,splice,form){ if(cljs.core.truth_(p1)){ var r = new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252),new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),new cljs.core.Keyword(null,"p2","p2",905500641),p2,new cljs.core.Keyword(null,"splice","splice",449588165),splice,new cljs.core.Keyword(null,"forms","forms",2045992350),form,new cljs.core.Keyword(null,"id","id",-1388402092),cljs.core.random_uuid.call(null)], null); if(cljs.core.truth_(cljs.spec.alpha.accept_QMARK_.call(null,p1))){ return cljs.core.assoc.call(null,r,new cljs.core.Keyword(null,"p1","p1",-936759954),p2,new cljs.core.Keyword(null,"ret","ret",-468222814),cljs.core.conj.call(null,ret,new cljs.core.Keyword(null,"ret","ret",-468222814).cljs$core$IFn$_invoke$arity$1(p1))); } else { return cljs.core.assoc.call(null,r,new cljs.core.Keyword(null,"p1","p1",-936759954),p1,new cljs.core.Keyword(null,"ret","ret",-468222814),ret); } } else { return null; } }); /** * Do not call this directly, use '*' */ cljs.spec.alpha.rep_impl = (function cljs$spec$alpha$rep_impl(form,p){ return cljs.spec.alpha.rep_STAR_.call(null,p,p,cljs.core.PersistentVector.EMPTY,false,form); }); /** * Do not call this directly, use '+' */ cljs.spec.alpha.rep_PLUS_impl = (function cljs$spec$alpha$rep_PLUS_impl(form,p){ return cljs.spec.alpha.pcat_STAR_.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"ps","ps",292358046),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [p,cljs.spec.alpha.rep_STAR_.call(null,p,p,cljs.core.PersistentVector.EMPTY,true,form)], null),new cljs.core.Keyword(null,"forms","forms",2045992350),cljs.core.vec.call(null,cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,(function (){var x__9313__auto__ = form; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),(function (){var x__9313__auto__ = cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","*","cljs.spec.alpha/*",-1238084288,null)),(function (){var x__9313__auto__ = form; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })()))); return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })())))),new cljs.core.Keyword(null,"ret","ret",-468222814),cljs.core.PersistentVector.EMPTY,new cljs.core.Keyword(null,"rep+","rep+",-281382396),form], null)); }); /** * Do not call this directly, use '&' */ cljs.spec.alpha.amp_impl = (function cljs$spec$alpha$amp_impl(re,preds,pred_forms){ return new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252),new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),new cljs.core.Keyword(null,"p1","p1",-936759954),re,new cljs.core.Keyword(null,"ps","ps",292358046),preds,new cljs.core.Keyword(null,"forms","forms",2045992350),pred_forms], null); }); cljs.spec.alpha.filter_alt = (function cljs$spec$alpha$filter_alt(ps,ks,forms,f){ if(cljs.core.truth_((function (){var or__8359__auto__ = ks; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return forms; } })())){ var pks = cljs.core.filter.call(null,(function (p1__21311_SHARP_){ return f.call(null,cljs.core.first.call(null,p1__21311_SHARP_)); }),cljs.core.map.call(null,cljs.core.vector,ps,(function (){var or__8359__auto__ = cljs.core.seq.call(null,ks); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,null); } })(),(function (){var or__8359__auto__ = cljs.core.seq.call(null,forms); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,null); } })())); return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.seq.call(null,cljs.core.map.call(null,cljs.core.first,pks)),(cljs.core.truth_(ks)?cljs.core.seq.call(null,cljs.core.map.call(null,cljs.core.second,pks)):null),(cljs.core.truth_(forms)?cljs.core.seq.call(null,cljs.core.map.call(null,((function (pks){ return (function (p1__21312_SHARP_){ return cljs.core.nth.call(null,p1__21312_SHARP_,(2)); });})(pks)) ,pks)):null)], null); } else { return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.seq.call(null,cljs.core.filter.call(null,f,ps)),ks,forms], null); } }); cljs.spec.alpha.alt_STAR_ = (function cljs$spec$alpha$alt_STAR_(ps,ks,forms){ var vec__21313 = cljs.spec.alpha.filter_alt.call(null,ps,ks,forms,cljs.core.identity); var vec__21316 = cljs.core.nth.call(null,vec__21313,(0),null); var seq__21317 = cljs.core.seq.call(null,vec__21316); var first__21318 = cljs.core.first.call(null,seq__21317); var seq__21317__$1 = cljs.core.next.call(null,seq__21317); var p1 = first__21318; var pr = seq__21317__$1; var ps__$1 = vec__21316; var vec__21319 = cljs.core.nth.call(null,vec__21313,(1),null); var k1 = cljs.core.nth.call(null,vec__21319,(0),null); var ks__$1 = vec__21319; var forms__$1 = cljs.core.nth.call(null,vec__21313,(2),null); if(cljs.core.truth_(ps__$1)){ var ret = new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252),new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),new cljs.core.Keyword(null,"ps","ps",292358046),ps__$1,new cljs.core.Keyword(null,"ks","ks",1900203942),ks__$1,new cljs.core.Keyword(null,"forms","forms",2045992350),forms__$1], null); if((pr == null)){ if(cljs.core.truth_(k1)){ if(cljs.core.truth_(cljs.spec.alpha.accept_QMARK_.call(null,p1))){ return cljs.spec.alpha.accept.call(null,cljs.spec.alpha.tagged_ret.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [k1,new cljs.core.Keyword(null,"ret","ret",-468222814).cljs$core$IFn$_invoke$arity$1(p1)], null))); } else { return ret; } } else { return p1; } } else { return ret; } } else { return null; } }); cljs.spec.alpha.alts = (function cljs$spec$alpha$alts(var_args){ var args__9643__auto__ = []; var len__9636__auto___21323 = arguments.length; var i__9637__auto___21324 = (0); while(true){ if((i__9637__auto___21324 < len__9636__auto___21323)){ args__9643__auto__.push((arguments[i__9637__auto___21324])); var G__21325 = (i__9637__auto___21324 + (1)); i__9637__auto___21324 = G__21325; continue; } else { } break; } var argseq__9644__auto__ = ((((0) < args__9643__auto__.length))?(new cljs.core.IndexedSeq(args__9643__auto__.slice((0)),(0),null)):null); return cljs.spec.alpha.alts.cljs$core$IFn$_invoke$arity$variadic(argseq__9644__auto__); }); cljs.spec.alpha.alts.cljs$core$IFn$_invoke$arity$variadic = (function (ps){ return cljs.spec.alpha.alt_STAR_.call(null,ps,null,null); }); cljs.spec.alpha.alts.cljs$lang$maxFixedArity = (0); cljs.spec.alpha.alts.cljs$lang$applyTo = (function (seq21322){ return cljs.spec.alpha.alts.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq21322)); }); cljs.spec.alpha.alt2 = (function cljs$spec$alpha$alt2(p1,p2){ if(cljs.core.truth_((function (){var and__8347__auto__ = p1; if(cljs.core.truth_(and__8347__auto__)){ return p2; } else { return and__8347__auto__; } })())){ return cljs.spec.alpha.alts.call(null,p1,p2); } else { var or__8359__auto__ = p1; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return p2; } } }); /** * Do not call this directly, use 'alt' */ cljs.spec.alpha.alt_impl = (function cljs$spec$alpha$alt_impl(ks,ps,forms){ return cljs.core.assoc.call(null,cljs.spec.alpha.alt_STAR_.call(null,ps,ks,forms),new cljs.core.Keyword(null,"id","id",-1388402092),cljs.core.random_uuid.call(null)); }); /** * Do not call this directly, use '?' */ cljs.spec.alpha.maybe_impl = (function cljs$spec$alpha$maybe_impl(p,form){ return cljs.core.assoc.call(null,cljs.spec.alpha.alt_STAR_.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [p,cljs.spec.alpha.accept.call(null,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950))], null),null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [form,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950)], null)),new cljs.core.Keyword(null,"maybe","maybe",-314397560),form); }); cljs.spec.alpha.noret_QMARK_ = (function cljs$spec$alpha$noret_QMARK_(p1,pret){ var or__8359__auto__ = cljs.core._EQ_.call(null,pret,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950)); if(or__8359__auto__){ return or__8359__auto__; } else { var or__8359__auto____$1 = (function (){var and__8347__auto__ = new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),null], null), null).call(null,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252).cljs$core$IFn$_invoke$arity$1(cljs.spec.alpha.reg_resolve_BANG_.call(null,p1))); if(cljs.core.truth_(and__8347__auto__)){ return cljs.core.empty_QMARK_.call(null,pret); } else { return and__8347__auto__; } })(); if(cljs.core.truth_(or__8359__auto____$1)){ return or__8359__auto____$1; } else { return null; } } }); cljs.spec.alpha.accept_nil_QMARK_ = (function cljs$spec$alpha$accept_nil_QMARK_(p){ var map__21326 = cljs.spec.alpha.reg_resolve_BANG_.call(null,p); var map__21326__$1 = ((((!((map__21326 == null)))?((((map__21326.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21326.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21326):map__21326); var p__$1 = map__21326__$1; var op = cljs.core.get.call(null,map__21326__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); var ps = cljs.core.get.call(null,map__21326__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var p1 = cljs.core.get.call(null,map__21326__$1,new cljs.core.Keyword(null,"p1","p1",-936759954)); var p2 = cljs.core.get.call(null,map__21326__$1,new cljs.core.Keyword(null,"p2","p2",905500641)); var forms = cljs.core.get.call(null,map__21326__$1,new cljs.core.Keyword(null,"forms","forms",2045992350)); var G__21328 = op; if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),G__21328)){ return true; } else { if(cljs.core._EQ_.call(null,null,G__21328)){ return null; } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),G__21328)){ var and__8347__auto__ = cljs.spec.alpha.accept_nil_QMARK_.call(null,p1); if(cljs.core.truth_(and__8347__auto__)){ var or__8359__auto__ = cljs.spec.alpha.noret_QMARK_.call(null,p1,cljs.spec.alpha.preturn.call(null,p1)); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { var ret = cljs.spec.alpha.and_preds.call(null,cljs.spec.alpha.preturn.call(null,p1),ps,cljs.core.next.call(null,forms)); return cljs.core.not.call(null,cljs.spec.alpha.invalid_QMARK_.call(null,ret)); } } else { return and__8347__auto__; } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),G__21328)){ var or__8359__auto__ = (p1 === p2); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.spec.alpha.accept_nil_QMARK_.call(null,p1); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),G__21328)){ return cljs.core.every_QMARK_.call(null,cljs.spec.alpha.accept_nil_QMARK_,ps); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),G__21328)){ return cljs.core.some.call(null,cljs.spec.alpha.accept_nil_QMARK_,ps); } else { throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__21328)].join(''))); } } } } } } }); cljs.spec.alpha.preturn = (function cljs$spec$alpha$preturn(p){ var map__21329 = cljs.spec.alpha.reg_resolve_BANG_.call(null,p); var map__21329__$1 = ((((!((map__21329 == null)))?((((map__21329.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21329.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21329):map__21329); var p__$1 = map__21329__$1; var vec__21330 = cljs.core.get.call(null,map__21329__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var seq__21331 = cljs.core.seq.call(null,vec__21330); var first__21332 = cljs.core.first.call(null,seq__21331); var seq__21331__$1 = cljs.core.next.call(null,seq__21331); var p0 = first__21332; var pr = seq__21331__$1; var ps = vec__21330; var vec__21333 = cljs.core.get.call(null,map__21329__$1,new cljs.core.Keyword(null,"ks","ks",1900203942)); var k = cljs.core.nth.call(null,vec__21333,(0),null); var ks = vec__21333; var op = cljs.core.get.call(null,map__21329__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); var p1 = cljs.core.get.call(null,map__21329__$1,new cljs.core.Keyword(null,"p1","p1",-936759954)); var ret = cljs.core.get.call(null,map__21329__$1,new cljs.core.Keyword(null,"ret","ret",-468222814)); var forms = cljs.core.get.call(null,map__21329__$1,new cljs.core.Keyword(null,"forms","forms",2045992350)); var G__21337 = op; if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),G__21337)){ return ret; } else { if(cljs.core._EQ_.call(null,null,G__21337)){ return null; } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),G__21337)){ var pret = cljs.spec.alpha.preturn.call(null,p1); if(cljs.core.truth_(cljs.spec.alpha.noret_QMARK_.call(null,p1,pret))){ return new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950); } else { return cljs.spec.alpha.and_preds.call(null,pret,ps,forms); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),G__21337)){ return cljs.spec.alpha.add_ret.call(null,p1,ret,k); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),G__21337)){ return cljs.spec.alpha.add_ret.call(null,p0,ret,k); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),G__21337)){ var vec__21338 = cljs.spec.alpha.filter_alt.call(null,ps,ks,forms,cljs.spec.alpha.accept_nil_QMARK_); var vec__21341 = cljs.core.nth.call(null,vec__21338,(0),null); var p0__$1 = cljs.core.nth.call(null,vec__21341,(0),null); var vec__21344 = cljs.core.nth.call(null,vec__21338,(1),null); var k0 = cljs.core.nth.call(null,vec__21344,(0),null); var r = (((p0__$1 == null))?new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950):cljs.spec.alpha.preturn.call(null,p0__$1)); if(cljs.core.truth_(k0)){ return cljs.spec.alpha.tagged_ret.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [k0,r], null)); } else { return r; } } else { throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__21337)].join(''))); } } } } } } }); cljs.spec.alpha.op_unform = (function cljs$spec$alpha$op_unform(p,x){ var map__21351 = cljs.spec.alpha.reg_resolve_BANG_.call(null,p); var map__21351__$1 = ((((!((map__21351 == null)))?((((map__21351.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21351.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21351):map__21351); var p__$1 = map__21351__$1; var vec__21352 = cljs.core.get.call(null,map__21351__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var seq__21353 = cljs.core.seq.call(null,vec__21352); var first__21354 = cljs.core.first.call(null,seq__21353); var seq__21353__$1 = cljs.core.next.call(null,seq__21353); var p0 = first__21354; var pr = seq__21353__$1; var ps = vec__21352; var vec__21355 = cljs.core.get.call(null,map__21351__$1,new cljs.core.Keyword(null,"ks","ks",1900203942)); var k = cljs.core.nth.call(null,vec__21355,(0),null); var ks = vec__21355; var op = cljs.core.get.call(null,map__21351__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); var p1 = cljs.core.get.call(null,map__21351__$1,new cljs.core.Keyword(null,"p1","p1",-936759954)); var ret = cljs.core.get.call(null,map__21351__$1,new cljs.core.Keyword(null,"ret","ret",-468222814)); var forms = cljs.core.get.call(null,map__21351__$1,new cljs.core.Keyword(null,"forms","forms",2045992350)); var rep_PLUS_ = cljs.core.get.call(null,map__21351__$1,new cljs.core.Keyword(null,"rep+","rep+",-281382396)); var maybe = cljs.core.get.call(null,map__21351__$1,new cljs.core.Keyword(null,"maybe","maybe",-314397560)); var kps = cljs.core.zipmap.call(null,ks,ps); var G__21359 = op; if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),G__21359)){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [ret], null); } else { if(cljs.core._EQ_.call(null,null,G__21359)){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.spec.alpha.unform.call(null,p__$1,x)], null); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),G__21359)){ var px = cljs.core.reduce.call(null,((function (G__21359,map__21351,map__21351__$1,p__$1,vec__21352,seq__21353,first__21354,seq__21353__$1,p0,pr,ps,vec__21355,k,ks,op,p1,ret,forms,rep_PLUS_,maybe,kps){ return (function (p1__21348_SHARP_,p2__21347_SHARP_){ return cljs.spec.alpha.unform.call(null,p2__21347_SHARP_,p1__21348_SHARP_); });})(G__21359,map__21351,map__21351__$1,p__$1,vec__21352,seq__21353,first__21354,seq__21353__$1,p0,pr,ps,vec__21355,k,ks,op,p1,ret,forms,rep_PLUS_,maybe,kps)) ,x,cljs.core.reverse.call(null,ps)); return cljs.spec.alpha.op_unform.call(null,p1,px); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),G__21359)){ return cljs.core.mapcat.call(null,((function (G__21359,map__21351,map__21351__$1,p__$1,vec__21352,seq__21353,first__21354,seq__21353__$1,p0,pr,ps,vec__21355,k,ks,op,p1,ret,forms,rep_PLUS_,maybe,kps){ return (function (p1__21349_SHARP_){ return cljs.spec.alpha.op_unform.call(null,p1,p1__21349_SHARP_); });})(G__21359,map__21351,map__21351__$1,p__$1,vec__21352,seq__21353,first__21354,seq__21353__$1,p0,pr,ps,vec__21355,k,ks,op,p1,ret,forms,rep_PLUS_,maybe,kps)) ,x); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),G__21359)){ if(cljs.core.truth_(rep_PLUS_)){ return cljs.core.mapcat.call(null,((function (G__21359,map__21351,map__21351__$1,p__$1,vec__21352,seq__21353,first__21354,seq__21353__$1,p0,pr,ps,vec__21355,k,ks,op,p1,ret,forms,rep_PLUS_,maybe,kps){ return (function (p1__21350_SHARP_){ return cljs.spec.alpha.op_unform.call(null,p0,p1__21350_SHARP_); });})(G__21359,map__21351,map__21351__$1,p__$1,vec__21352,seq__21353,first__21354,seq__21353__$1,p0,pr,ps,vec__21355,k,ks,op,p1,ret,forms,rep_PLUS_,maybe,kps)) ,x); } else { return cljs.core.mapcat.call(null,((function (G__21359,map__21351,map__21351__$1,p__$1,vec__21352,seq__21353,first__21354,seq__21353__$1,p0,pr,ps,vec__21355,k,ks,op,p1,ret,forms,rep_PLUS_,maybe,kps){ return (function (k__$1){ if(cljs.core.contains_QMARK_.call(null,x,k__$1)){ return cljs.spec.alpha.op_unform.call(null,kps.call(null,k__$1),cljs.core.get.call(null,x,k__$1)); } else { return null; } });})(G__21359,map__21351,map__21351__$1,p__$1,vec__21352,seq__21353,first__21354,seq__21353__$1,p0,pr,ps,vec__21355,k,ks,op,p1,ret,forms,rep_PLUS_,maybe,kps)) ,ks); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),G__21359)){ if(cljs.core.truth_(maybe)){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.spec.alpha.unform.call(null,p0,x)], null); } else { var vec__21360 = x; var k__$1 = cljs.core.nth.call(null,vec__21360,(0),null); var v = cljs.core.nth.call(null,vec__21360,(1),null); return cljs.spec.alpha.op_unform.call(null,kps.call(null,k__$1),v); } } else { throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__21359)].join(''))); } } } } } } }); cljs.spec.alpha.add_ret = (function cljs$spec$alpha$add_ret(p,r,k){ var map__21363 = cljs.spec.alpha.reg_resolve_BANG_.call(null,p); var map__21363__$1 = ((((!((map__21363 == null)))?((((map__21363.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21363.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21363):map__21363); var p__$1 = map__21363__$1; var op = cljs.core.get.call(null,map__21363__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); var ps = cljs.core.get.call(null,map__21363__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var splice = cljs.core.get.call(null,map__21363__$1,new cljs.core.Keyword(null,"splice","splice",449588165)); var prop = ((function (map__21363,map__21363__$1,p__$1,op,ps,splice){ return (function (){ var ret = cljs.spec.alpha.preturn.call(null,p__$1); if(cljs.core.empty_QMARK_.call(null,ret)){ return r; } else { return (cljs.core.truth_(splice)?cljs.core.into:cljs.core.conj).call(null,r,(cljs.core.truth_(k)?cljs.core.PersistentArrayMap.createAsIfByAssoc([k,ret]):ret)); } });})(map__21363,map__21363__$1,p__$1,op,ps,splice)) ; var G__21365 = op; if(cljs.core._EQ_.call(null,null,G__21365)){ return r; } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),G__21365)){ var ret = cljs.spec.alpha.preturn.call(null,p__$1); if(cljs.core._EQ_.call(null,ret,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950))){ return r; } else { return cljs.core.conj.call(null,r,(cljs.core.truth_(k)?cljs.core.PersistentArrayMap.createAsIfByAssoc([k,ret]):ret)); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),G__21365)){ var ret = cljs.spec.alpha.preturn.call(null,p__$1); if(cljs.core._EQ_.call(null,ret,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950))){ return r; } else { return cljs.core.conj.call(null,r,(cljs.core.truth_(k)?cljs.core.PersistentArrayMap.createAsIfByAssoc([k,ret]):ret)); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),G__21365)){ var ret = cljs.spec.alpha.preturn.call(null,p__$1); if(cljs.core._EQ_.call(null,ret,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950))){ return r; } else { return cljs.core.conj.call(null,r,(cljs.core.truth_(k)?cljs.core.PersistentArrayMap.createAsIfByAssoc([k,ret]):ret)); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),G__21365)){ return prop.call(null); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),G__21365)){ return prop.call(null); } else { throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__21365)].join(''))); } } } } } } }); cljs.spec.alpha.deriv = (function cljs$spec$alpha$deriv(p,x){ var map__21367 = cljs.spec.alpha.reg_resolve_BANG_.call(null,p); var map__21367__$1 = ((((!((map__21367 == null)))?((((map__21367.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21367.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21367):map__21367); var p__$1 = map__21367__$1; var vec__21368 = cljs.core.get.call(null,map__21367__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var seq__21369 = cljs.core.seq.call(null,vec__21368); var first__21370 = cljs.core.first.call(null,seq__21369); var seq__21369__$1 = cljs.core.next.call(null,seq__21369); var p0 = first__21370; var pr = seq__21369__$1; var ps = vec__21368; var vec__21371 = cljs.core.get.call(null,map__21367__$1,new cljs.core.Keyword(null,"ks","ks",1900203942)); var seq__21372 = cljs.core.seq.call(null,vec__21371); var first__21373 = cljs.core.first.call(null,seq__21372); var seq__21372__$1 = cljs.core.next.call(null,seq__21372); var k0 = first__21373; var kr = seq__21372__$1; var ks = vec__21371; var op = cljs.core.get.call(null,map__21367__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); var p1 = cljs.core.get.call(null,map__21367__$1,new cljs.core.Keyword(null,"p1","p1",-936759954)); var p2 = cljs.core.get.call(null,map__21367__$1,new cljs.core.Keyword(null,"p2","p2",905500641)); var ret = cljs.core.get.call(null,map__21367__$1,new cljs.core.Keyword(null,"ret","ret",-468222814)); var splice = cljs.core.get.call(null,map__21367__$1,new cljs.core.Keyword(null,"splice","splice",449588165)); var forms = cljs.core.get.call(null,map__21367__$1,new cljs.core.Keyword(null,"forms","forms",2045992350)); if(cljs.core.truth_(p__$1)){ var G__21375 = op; if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),G__21375)){ return null; } else { if(cljs.core._EQ_.call(null,null,G__21375)){ var ret__$1 = cljs.spec.alpha.dt.call(null,p__$1,x,p__$1); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret__$1))){ return null; } else { return cljs.spec.alpha.accept.call(null,ret__$1); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),G__21375)){ var temp__5457__auto__ = cljs.spec.alpha.deriv.call(null,p1,x); if(cljs.core.truth_(temp__5457__auto__)){ var p1__$1 = temp__5457__auto__; if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252).cljs$core$IFn$_invoke$arity$1(p1__$1))){ var ret__$1 = cljs.spec.alpha.and_preds.call(null,cljs.spec.alpha.preturn.call(null,p1__$1),ps,cljs.core.next.call(null,forms)); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret__$1))){ return null; } else { return cljs.spec.alpha.accept.call(null,ret__$1); } } else { return cljs.spec.alpha.amp_impl.call(null,p1__$1,ps,forms); } } else { return null; } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),G__21375)){ return cljs.spec.alpha.alt2.call(null,cljs.spec.alpha.pcat_STAR_.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"ps","ps",292358046),cljs.core.cons.call(null,cljs.spec.alpha.deriv.call(null,p0,x),pr),new cljs.core.Keyword(null,"ks","ks",1900203942),ks,new cljs.core.Keyword(null,"forms","forms",2045992350),forms,new cljs.core.Keyword(null,"ret","ret",-468222814),ret], null)),(cljs.core.truth_(cljs.spec.alpha.accept_nil_QMARK_.call(null,p0))?cljs.spec.alpha.deriv.call(null,cljs.spec.alpha.pcat_STAR_.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"ps","ps",292358046),pr,new cljs.core.Keyword(null,"ks","ks",1900203942),kr,new cljs.core.Keyword(null,"forms","forms",2045992350),cljs.core.next.call(null,forms),new cljs.core.Keyword(null,"ret","ret",-468222814),cljs.spec.alpha.add_ret.call(null,p0,ret,k0)], null)),x):null)); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),G__21375)){ return cljs.spec.alpha.alt_STAR_.call(null,cljs.core.map.call(null,((function (G__21375,map__21367,map__21367__$1,p__$1,vec__21368,seq__21369,first__21370,seq__21369__$1,p0,pr,ps,vec__21371,seq__21372,first__21373,seq__21372__$1,k0,kr,ks,op,p1,p2,ret,splice,forms){ return (function (p1__21366_SHARP_){ return cljs.spec.alpha.deriv.call(null,p1__21366_SHARP_,x); });})(G__21375,map__21367,map__21367__$1,p__$1,vec__21368,seq__21369,first__21370,seq__21369__$1,p0,pr,ps,vec__21371,seq__21372,first__21373,seq__21372__$1,k0,kr,ks,op,p1,p2,ret,splice,forms)) ,ps),ks,forms); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),G__21375)){ return cljs.spec.alpha.alt2.call(null,cljs.spec.alpha.rep_STAR_.call(null,cljs.spec.alpha.deriv.call(null,p1,x),p2,ret,splice,forms),(cljs.core.truth_(cljs.spec.alpha.accept_nil_QMARK_.call(null,p1))?cljs.spec.alpha.deriv.call(null,cljs.spec.alpha.rep_STAR_.call(null,p2,p2,cljs.spec.alpha.add_ret.call(null,p1,ret,null),splice,forms),x):null)); } else { throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__21375)].join(''))); } } } } } } } else { return null; } }); cljs.spec.alpha.op_describe = (function cljs$spec$alpha$op_describe(p){ var map__21376 = cljs.spec.alpha.reg_resolve_BANG_.call(null,p); var map__21376__$1 = ((((!((map__21376 == null)))?((((map__21376.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21376.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21376):map__21376); var p__$1 = map__21376__$1; var op = cljs.core.get.call(null,map__21376__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); var ps = cljs.core.get.call(null,map__21376__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var ks = cljs.core.get.call(null,map__21376__$1,new cljs.core.Keyword(null,"ks","ks",1900203942)); var forms = cljs.core.get.call(null,map__21376__$1,new cljs.core.Keyword(null,"forms","forms",2045992350)); var splice = cljs.core.get.call(null,map__21376__$1,new cljs.core.Keyword(null,"splice","splice",449588165)); var p1 = cljs.core.get.call(null,map__21376__$1,new cljs.core.Keyword(null,"p1","p1",-936759954)); var rep_PLUS_ = cljs.core.get.call(null,map__21376__$1,new cljs.core.Keyword(null,"rep+","rep+",-281382396)); var maybe = cljs.core.get.call(null,map__21376__$1,new cljs.core.Keyword(null,"maybe","maybe",-314397560)); if(cljs.core.truth_(p__$1)){ var G__21378 = op; if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),G__21378)){ return null; } else { if(cljs.core._EQ_.call(null,null,G__21378)){ return p__$1; } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),G__21378)){ return cljs.core.list_STAR_.call(null,new cljs.core.Symbol("cljs.spec.alpha","&","cljs.spec.alpha/&",1635809823,null),cljs.spec.alpha.op_describe.call(null,p1),forms); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),G__21378)){ if(cljs.core.truth_(rep_PLUS_)){ return cljs.core._conj.call(null,(function (){var x__9313__auto__ = rep_PLUS_; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),new cljs.core.Symbol("cljs.spec.alpha","+","cljs.spec.alpha/+",2101263265,null)); } else { return cljs.core.cons.call(null,new cljs.core.Symbol("cljs.spec.alpha","cat","cljs.spec.alpha/cat",-1471398329,null),cljs.core.mapcat.call(null,cljs.core.vector,(function (){var or__8359__auto__ = cljs.core.seq.call(null,ks); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,new cljs.core.Keyword(null,"_","_",1453416199)); } })(),forms)); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),G__21378)){ if(cljs.core.truth_(maybe)){ return cljs.core._conj.call(null,(function (){var x__9313__auto__ = maybe; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),new cljs.core.Symbol("cljs.spec.alpha","?","cljs.spec.alpha/?",1605136319,null)); } else { return cljs.core.cons.call(null,new cljs.core.Symbol("cljs.spec.alpha","alt","cljs.spec.alpha/alt",-2130750332,null),cljs.core.mapcat.call(null,cljs.core.vector,ks,forms)); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),G__21378)){ var x__9313__auto__ = (cljs.core.truth_(splice)?new cljs.core.Symbol("cljs.spec.alpha","+","cljs.spec.alpha/+",2101263265,null):new cljs.core.Symbol("cljs.spec.alpha","*","cljs.spec.alpha/*",-1238084288,null)); return cljs.core._conj.call(null,(function (){var x__9313__auto____$1 = forms; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto____$1); })(),x__9313__auto__); } else { throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__21378)].join(''))); } } } } } } } else { return null; } }); cljs.spec.alpha.op_explain = (function cljs$spec$alpha$op_explain(form,p,path,via,in$,input){ var vec__21379 = input; var x = cljs.core.nth.call(null,vec__21379,(0),null); var input__$1 = vec__21379; var map__21382 = cljs.spec.alpha.reg_resolve_BANG_.call(null,p); var map__21382__$1 = ((((!((map__21382 == null)))?((((map__21382.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21382.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21382):map__21382); var p__$1 = map__21382__$1; var op = cljs.core.get.call(null,map__21382__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); var ps = cljs.core.get.call(null,map__21382__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var ks = cljs.core.get.call(null,map__21382__$1,new cljs.core.Keyword(null,"ks","ks",1900203942)); var forms = cljs.core.get.call(null,map__21382__$1,new cljs.core.Keyword(null,"forms","forms",2045992350)); var splice = cljs.core.get.call(null,map__21382__$1,new cljs.core.Keyword(null,"splice","splice",449588165)); var p1 = cljs.core.get.call(null,map__21382__$1,new cljs.core.Keyword(null,"p1","p1",-936759954)); var p2 = cljs.core.get.call(null,map__21382__$1,new cljs.core.Keyword(null,"p2","p2",905500641)); var via__$1 = (function (){var temp__5455__auto__ = cljs.spec.alpha.spec_name.call(null,p__$1); if(cljs.core.truth_(temp__5455__auto__)){ var name = temp__5455__auto__; return cljs.core.conj.call(null,via,name); } else { return via; } })(); var insufficient = ((function (vec__21379,x,input__$1,map__21382,map__21382__$1,p__$1,op,ps,ks,forms,splice,p1,p2,via__$1){ return (function (path__$1,form__$1){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),path__$1,new cljs.core.Keyword(null,"reason","reason",-2070751759),"Insufficient input",new cljs.core.Keyword(null,"pred","pred",1927423397),form__$1,new cljs.core.Keyword(null,"val","val",128701612),cljs.core.List.EMPTY,new cljs.core.Keyword(null,"via","via",-1904457336),via__$1,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); });})(vec__21379,x,input__$1,map__21382,map__21382__$1,p__$1,op,ps,ks,forms,splice,p1,p2,via__$1)) ; if(cljs.core.truth_(p__$1)){ var G__21384 = op; if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),G__21384)){ return null; } else { if(cljs.core._EQ_.call(null,null,G__21384)){ if(cljs.core.empty_QMARK_.call(null,input__$1)){ return insufficient.call(null,path,form); } else { return cljs.spec.alpha.explain_1.call(null,form,p__$1,path,via__$1,in$,x); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),G__21384)){ if(cljs.core.empty_QMARK_.call(null,input__$1)){ if(cljs.core.truth_(cljs.spec.alpha.accept_nil_QMARK_.call(null,p1))){ return cljs.spec.alpha.explain_pred_list.call(null,forms,ps,path,via__$1,in$,cljs.spec.alpha.preturn.call(null,p1)); } else { return insufficient.call(null,path,cljs.spec.alpha.op_describe.call(null,p1)); } } else { var temp__5455__auto__ = cljs.spec.alpha.deriv.call(null,p1,x); if(cljs.core.truth_(temp__5455__auto__)){ var p1__$1 = temp__5455__auto__; return cljs.spec.alpha.explain_pred_list.call(null,forms,ps,path,via__$1,in$,cljs.spec.alpha.preturn.call(null,p1__$1)); } else { return cljs.spec.alpha.op_explain.call(null,cljs.spec.alpha.op_describe.call(null,p1),p1,path,via__$1,in$,input__$1); } } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),G__21384)){ var pkfs = cljs.core.map.call(null,cljs.core.vector,ps,(function (){var or__8359__auto__ = cljs.core.seq.call(null,ks); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,null); } })(),(function (){var or__8359__auto__ = cljs.core.seq.call(null,forms); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,null); } })()); var vec__21385 = ((cljs.core._EQ_.call(null,(1),cljs.core.count.call(null,pkfs)))?cljs.core.first.call(null,pkfs):cljs.core.first.call(null,cljs.core.remove.call(null,((function (pkfs,G__21384,vec__21379,x,input__$1,map__21382,map__21382__$1,p__$1,op,ps,ks,forms,splice,p1,p2,via__$1,insufficient){ return (function (p__21388){ var vec__21389 = p__21388; var p__$2 = cljs.core.nth.call(null,vec__21389,(0),null); return cljs.spec.alpha.accept_nil_QMARK_.call(null,p__$2); });})(pkfs,G__21384,vec__21379,x,input__$1,map__21382,map__21382__$1,p__$1,op,ps,ks,forms,splice,p1,p2,via__$1,insufficient)) ,pkfs))); var pred = cljs.core.nth.call(null,vec__21385,(0),null); var k = cljs.core.nth.call(null,vec__21385,(1),null); var form__$1 = cljs.core.nth.call(null,vec__21385,(2),null); var path__$1 = (cljs.core.truth_(k)?cljs.core.conj.call(null,path,k):path); var form__$2 = (function (){var or__8359__auto__ = form__$1; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.spec.alpha.op_describe.call(null,pred); } })(); if((cljs.core.empty_QMARK_.call(null,input__$1)) && (cljs.core.not.call(null,pred))){ return insufficient.call(null,path__$1,form__$2); } else { return cljs.spec.alpha.op_explain.call(null,form__$2,pred,path__$1,via__$1,in$,input__$1); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),G__21384)){ if(cljs.core.empty_QMARK_.call(null,input__$1)){ return insufficient.call(null,path,cljs.spec.alpha.op_describe.call(null,p__$1)); } else { return cljs.core.apply.call(null,cljs.core.concat,cljs.core.map.call(null,((function (G__21384,vec__21379,x,input__$1,map__21382,map__21382__$1,p__$1,op,ps,ks,forms,splice,p1,p2,via__$1,insufficient){ return (function (k,form__$1,pred){ return cljs.spec.alpha.op_explain.call(null,(function (){var or__8359__auto__ = form__$1; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return cljs.spec.alpha.op_describe.call(null,pred); } })(),pred,(cljs.core.truth_(k)?cljs.core.conj.call(null,path,k):path),via__$1,in$,input__$1); });})(G__21384,vec__21379,x,input__$1,map__21382,map__21382__$1,p__$1,op,ps,ks,forms,splice,p1,p2,via__$1,insufficient)) ,(function (){var or__8359__auto__ = cljs.core.seq.call(null,ks); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,null); } })(),(function (){var or__8359__auto__ = cljs.core.seq.call(null,forms); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,null); } })(),ps)); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),G__21384)){ return cljs.spec.alpha.op_explain.call(null,(((p1 === p2))?forms:cljs.spec.alpha.op_describe.call(null,p1)),p1,path,via__$1,in$,input__$1); } else { throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__21384)].join(''))); } } } } } } } else { return null; } }); cljs.spec.alpha.re_gen = (function cljs$spec$alpha$re_gen(p,overrides,path,rmap,f){ var map__21393 = cljs.spec.alpha.reg_resolve_BANG_.call(null,p); var map__21393__$1 = ((((!((map__21393 == null)))?((((map__21393.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__21393.cljs$core$ISeq$)))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__21393):map__21393); var p__$1 = map__21393__$1; var ps = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword(null,"ps","ps",292358046)); var forms = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword(null,"forms","forms",2045992350)); var p2 = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword(null,"p2","p2",905500641)); var ret = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword(null,"ret","ret",-468222814)); var gfn = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword("cljs.spec.alpha","gfn","cljs.spec.alpha/gfn",-593120375)); var op = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252)); var splice = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword(null,"splice","splice",449588165)); var ks = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword(null,"ks","ks",1900203942)); var p1 = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword(null,"p1","p1",-936759954)); var id = cljs.core.get.call(null,map__21393__$1,new cljs.core.Keyword(null,"id","id",-1388402092)); var rmap__$1 = (cljs.core.truth_(id)?cljs.spec.alpha.inck.call(null,rmap,id):rmap); var ggens = ((function (map__21393,map__21393__$1,p__$1,ps,forms,p2,ret,gfn,op,splice,ks,p1,id,rmap__$1){ return (function (ps__$1,ks__$1,forms__$1){ var gen = ((function (map__21393,map__21393__$1,p__$1,ps,forms,p2,ret,gfn,op,splice,ks,p1,id,rmap__$1){ return (function (p__$2,k,f__$1){ if(cljs.core.truth_((function (){var and__8347__auto__ = rmap__$1; if(cljs.core.truth_(and__8347__auto__)){ var and__8347__auto____$1 = id; if(cljs.core.truth_(and__8347__auto____$1)){ var and__8347__auto____$2 = k; if(cljs.core.truth_(and__8347__auto____$2)){ return cljs.spec.alpha.recur_limit_QMARK_.call(null,rmap__$1,id,path,k); } else { return and__8347__auto____$2; } } else { return and__8347__auto____$1; } } else { return and__8347__auto__; } })())){ return null; } else { if(cljs.core.truth_(id)){ return cljs.spec.gen.alpha.delay_impl.call(null,(new cljs.core.Delay(((function (map__21393,map__21393__$1,p__$1,ps,forms,p2,ret,gfn,op,splice,ks,p1,id,rmap__$1){ return (function (){ return cljs.spec.alpha.re_gen.call(null,p__$2,overrides,(cljs.core.truth_(k)?cljs.core.conj.call(null,path,k):path),rmap__$1,(function (){var or__8359__auto__ = f__$1; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return p__$2; } })()); });})(map__21393,map__21393__$1,p__$1,ps,forms,p2,ret,gfn,op,splice,ks,p1,id,rmap__$1)) ,null))); } else { return cljs.spec.alpha.re_gen.call(null,p__$2,overrides,(cljs.core.truth_(k)?cljs.core.conj.call(null,path,k):path),rmap__$1,(function (){var or__8359__auto__ = f__$1; if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return p__$2; } })()); } } });})(map__21393,map__21393__$1,p__$1,ps,forms,p2,ret,gfn,op,splice,ks,p1,id,rmap__$1)) ; return cljs.core.map.call(null,gen,ps__$1,(function (){var or__8359__auto__ = cljs.core.seq.call(null,ks__$1); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,null); } })(),(function (){var or__8359__auto__ = cljs.core.seq.call(null,forms__$1); if(or__8359__auto__){ return or__8359__auto__; } else { return cljs.core.repeat.call(null,null); } })()); });})(map__21393,map__21393__$1,p__$1,ps,forms,p2,ret,gfn,op,splice,ks,p1,id,rmap__$1)) ; var or__8359__auto__ = (function (){var temp__5457__auto__ = cljs.core.get.call(null,overrides,path); if(cljs.core.truth_(temp__5457__auto__)){ var g = temp__5457__auto__; var G__21396 = op; if(cljs.core._EQ_.call(null,new cljs.core.Keyword(null,"accept","accept",1874130431),G__21396)){ return cljs.spec.gen.alpha.fmap.call(null,cljs.core.vector,g); } else { if(cljs.core._EQ_.call(null,null,G__21396)){ return cljs.spec.gen.alpha.fmap.call(null,cljs.core.vector,g); } else { return g; } } } else { return null; } })(); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { var or__8359__auto____$1 = (cljs.core.truth_(gfn)?gfn.call(null):null); if(cljs.core.truth_(or__8359__auto____$1)){ return or__8359__auto____$1; } else { if(cljs.core.truth_(p__$1)){ var G__21397 = op; if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","accept","cljs.spec.alpha/accept",370988198),G__21397)){ if(cljs.core._EQ_.call(null,ret,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950))){ return cljs.spec.gen.alpha.return$.call(null,cljs.core.PersistentVector.EMPTY); } else { return cljs.spec.gen.alpha.return$.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [ret], null)); } } else { if(cljs.core._EQ_.call(null,null,G__21397)){ var temp__5457__auto__ = cljs.spec.alpha.gensub.call(null,p__$1,overrides,path,rmap__$1,f); if(cljs.core.truth_(temp__5457__auto__)){ var g = temp__5457__auto__; return cljs.spec.gen.alpha.fmap.call(null,cljs.core.vector,g); } else { return null; } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","amp","cljs.spec.alpha/amp",831147508),G__21397)){ return cljs.spec.alpha.re_gen.call(null,p1,overrides,path,rmap__$1,cljs.spec.alpha.op_describe.call(null,p1)); } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623),G__21397)){ var gens = ggens.call(null,ps,ks,forms); if(cljs.core.every_QMARK_.call(null,cljs.core.identity,gens)){ return cljs.core.apply.call(null,cljs.spec.gen.alpha.cat,gens); } else { return null; } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","alt","cljs.spec.alpha/alt",523685437),G__21397)){ var gens = cljs.core.remove.call(null,cljs.core.nil_QMARK_,ggens.call(null,ps,ks,forms)); if(cljs.core.empty_QMARK_.call(null,gens)){ return null; } else { return cljs.spec.gen.alpha.one_of.call(null,gens); } } else { if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","rep","cljs.spec.alpha/rep",1483217317),G__21397)){ if(cljs.core.truth_(cljs.spec.alpha.recur_limit_QMARK_.call(null,rmap__$1,id,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [id], null),id))){ return cljs.spec.gen.alpha.return$.call(null,cljs.core.PersistentVector.EMPTY); } else { var temp__5457__auto__ = cljs.spec.alpha.re_gen.call(null,p2,overrides,path,rmap__$1,forms); if(cljs.core.truth_(temp__5457__auto__)){ var g = temp__5457__auto__; return cljs.spec.gen.alpha.fmap.call(null,((function (g,temp__5457__auto__,G__21397,or__8359__auto____$1,or__8359__auto__,map__21393,map__21393__$1,p__$1,ps,forms,p2,ret,gfn,op,splice,ks,p1,id,rmap__$1,ggens){ return (function (p1__21392_SHARP_){ return cljs.core.apply.call(null,cljs.core.concat,p1__21392_SHARP_); });})(g,temp__5457__auto__,G__21397,or__8359__auto____$1,or__8359__auto__,map__21393,map__21393__$1,p__$1,ps,forms,p2,ret,gfn,op,splice,ks,p1,id,rmap__$1,ggens)) ,cljs.spec.gen.alpha.vector.call(null,g)); } else { return null; } } } else { throw (new Error(["No matching clause: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(G__21397)].join(''))); } } } } } } } else { return null; } } } }); cljs.spec.alpha.re_conform = (function cljs$spec$alpha$re_conform(p,p__21398){ while(true){ var vec__21399 = p__21398; var seq__21400 = cljs.core.seq.call(null,vec__21399); var first__21401 = cljs.core.first.call(null,seq__21400); var seq__21400__$1 = cljs.core.next.call(null,seq__21400); var x = first__21401; var xs = seq__21400__$1; var data = vec__21399; if(cljs.core.empty_QMARK_.call(null,data)){ if(cljs.core.truth_(cljs.spec.alpha.accept_nil_QMARK_.call(null,p))){ var ret = cljs.spec.alpha.preturn.call(null,p); if(cljs.core._EQ_.call(null,ret,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950))){ return null; } else { return ret; } } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } } else { var temp__5455__auto__ = cljs.spec.alpha.deriv.call(null,p,x); if(cljs.core.truth_(temp__5455__auto__)){ var dp = temp__5455__auto__; var G__21402 = dp; var G__21403 = xs; p = G__21402; p__21398 = G__21403; continue; } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } } break; } }); cljs.spec.alpha.re_explain = (function cljs$spec$alpha$re_explain(path,via,in$,re,input){ var p = re; var G__21407 = input; var vec__21408 = G__21407; var seq__21409 = cljs.core.seq.call(null,vec__21408); var first__21410 = cljs.core.first.call(null,seq__21409); var seq__21409__$1 = cljs.core.next.call(null,seq__21409); var x = first__21410; var xs = seq__21409__$1; var data = vec__21408; var i = (0); var p__$1 = p; var G__21407__$1 = G__21407; var i__$1 = i; while(true){ var p__$2 = p__$1; var vec__21411 = G__21407__$1; var seq__21412 = cljs.core.seq.call(null,vec__21411); var first__21413 = cljs.core.first.call(null,seq__21412); var seq__21412__$1 = cljs.core.next.call(null,seq__21412); var x__$1 = first__21413; var xs__$1 = seq__21412__$1; var data__$1 = vec__21411; var i__$2 = i__$1; if(cljs.core.empty_QMARK_.call(null,data__$1)){ if(cljs.core.truth_(cljs.spec.alpha.accept_nil_QMARK_.call(null,p__$2))){ return null; } else { return cljs.spec.alpha.op_explain.call(null,cljs.spec.alpha.op_describe.call(null,p__$2),p__$2,path,via,in$,null); } } else { var temp__5455__auto__ = cljs.spec.alpha.deriv.call(null,p__$2,x__$1); if(cljs.core.truth_(temp__5455__auto__)){ var dp = temp__5455__auto__; var G__21414 = dp; var G__21415 = xs__$1; var G__21416 = (i__$2 + (1)); p__$1 = G__21414; G__21407__$1 = G__21415; i__$1 = G__21416; continue; } else { if(cljs.core.truth_(cljs.spec.alpha.accept_QMARK_.call(null,p__$2))){ if(cljs.core._EQ_.call(null,new cljs.core.Keyword("cljs.spec.alpha","op","cljs.spec.alpha/op",-1269055252).cljs$core$IFn$_invoke$arity$1(p__$2),new cljs.core.Keyword("cljs.spec.alpha","pcat","cljs.spec.alpha/pcat",26406623))){ return cljs.spec.alpha.op_explain.call(null,cljs.spec.alpha.op_describe.call(null,p__$2),p__$2,path,via,cljs.core.conj.call(null,in$,i__$2),cljs.core.seq.call(null,data__$1)); } else { return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"reason","reason",-2070751759),"Extra input",new cljs.core.Keyword(null,"pred","pred",1927423397),cljs.spec.alpha.op_describe.call(null,re),new cljs.core.Keyword(null,"val","val",128701612),data__$1,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),cljs.core.conj.call(null,in$,i__$2)], null)], null); } } else { var or__8359__auto__ = cljs.spec.alpha.op_explain.call(null,cljs.spec.alpha.op_describe.call(null,p__$2),p__$2,path,via,cljs.core.conj.call(null,in$,i__$2),cljs.core.seq.call(null,data__$1)); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"reason","reason",-2070751759),"Extra input",new cljs.core.Keyword(null,"pred","pred",1927423397),cljs.spec.alpha.op_describe.call(null,p__$2),new cljs.core.Keyword(null,"val","val",128701612),data__$1,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),cljs.core.conj.call(null,in$,i__$2)], null)], null); } } } } break; } }); /** * Do not call this directly, use 'spec' with a regex op argument */ cljs.spec.alpha.regex_spec_impl = (function cljs$spec$alpha$regex_spec_impl(re,gfn){ if(typeof cljs.spec.alpha.t_cljs$spec$alpha21417 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21417 = (function (re,gfn,meta21418){ this.re = re; this.gfn = gfn; this.meta21418 = meta21418; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_21419,meta21418__$1){ var self__ = this; var _21419__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21417(self__.re,self__.gfn,meta21418__$1)); }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_21419){ var self__ = this; var _21419__$1 = this; return self__.meta21418; }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = (function (s){ var self__ = this; var s__$1 = this; return s__$1; }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = (function (_,x){ var self__ = this; var ___$1 = this; if(((x == null)) || (cljs.core.coll_QMARK_.call(null,x))){ return cljs.spec.alpha.re_conform.call(null,self__.re,cljs.core.seq.call(null,x)); } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = (function (_,x){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.op_unform.call(null,self__.re,x); }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; if(((x == null)) || (cljs.core.coll_QMARK_.call(null,x))){ return cljs.spec.alpha.re_explain.call(null,path,via,in$,self__.re,cljs.core.seq.call(null,x)); } else { return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),cljs.spec.alpha.op_describe.call(null,self__.re),new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { return cljs.spec.alpha.re_gen.call(null,self__.re,overrides,path,rmap,cljs.spec.alpha.op_describe.call(null,self__.re)); } }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.regex_spec_impl.call(null,self__.re,gfn__$1); }); cljs.spec.alpha.t_cljs$spec$alpha21417.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = (function (_){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.op_describe.call(null,self__.re); }); cljs.spec.alpha.t_cljs$spec$alpha21417.getBasis = (function (){ return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"re","re",1869207729,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"meta21418","meta21418",-939938236,null)], null); }); cljs.spec.alpha.t_cljs$spec$alpha21417.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21417.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21417"; cljs.spec.alpha.t_cljs$spec$alpha21417.cljs$lang$ctorPrWriter = (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21417"); }); cljs.spec.alpha.__GT_t_cljs$spec$alpha21417 = (function cljs$spec$alpha$regex_spec_impl_$___GT_t_cljs$spec$alpha21417(re__$1,gfn__$1,meta21418){ return (new cljs.spec.alpha.t_cljs$spec$alpha21417(re__$1,gfn__$1,meta21418)); }); } return (new cljs.spec.alpha.t_cljs$spec$alpha21417(re,gfn,cljs.core.PersistentArrayMap.EMPTY)); }); cljs.spec.alpha.call_valid_QMARK_ = (function cljs$spec$alpha$call_valid_QMARK_(f,specs,args){ var cargs = cljs.spec.alpha.conform.call(null,new cljs.core.Keyword(null,"args","args",1315556576).cljs$core$IFn$_invoke$arity$1(specs),args); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,cargs))){ return null; } else { var ret = cljs.core.apply.call(null,f,args); var cret = cljs.spec.alpha.conform.call(null,new cljs.core.Keyword(null,"ret","ret",-468222814).cljs$core$IFn$_invoke$arity$1(specs),ret); var and__8347__auto__ = cljs.core.not.call(null,cljs.spec.alpha.invalid_QMARK_.call(null,cret)); if(and__8347__auto__){ if(cljs.core.truth_(new cljs.core.Keyword(null,"fn","fn",-1175266204).cljs$core$IFn$_invoke$arity$1(specs))){ return cljs.spec.alpha.pvalid_QMARK_.call(null,new cljs.core.Keyword(null,"fn","fn",-1175266204).cljs$core$IFn$_invoke$arity$1(specs),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"args","args",1315556576),cargs,new cljs.core.Keyword(null,"ret","ret",-468222814),cret], null)); } else { return true; } } else { return and__8347__auto__; } } }); /** * returns f if valid, else smallest */ cljs.spec.alpha.validate_fn = (function cljs$spec$alpha$validate_fn(f,specs,iters){ var g = cljs.spec.alpha.gen.call(null,new cljs.core.Keyword(null,"args","args",1315556576).cljs$core$IFn$_invoke$arity$1(specs)); var prop = cljs.spec.gen.alpha.for_all_STAR_.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [g], null),((function (g){ return (function (p1__21420_SHARP_){ return cljs.spec.alpha.call_valid_QMARK_.call(null,f,specs,p1__21420_SHARP_); });})(g)) ); var ret = cljs.spec.gen.alpha.quick_check.call(null,iters,prop); var temp__5455__auto__ = new cljs.core.Keyword(null,"smallest","smallest",-152623883).cljs$core$IFn$_invoke$arity$1(new cljs.core.Keyword(null,"shrunk","shrunk",-2041664412).cljs$core$IFn$_invoke$arity$1(ret)); if(cljs.core.truth_(temp__5455__auto__)){ var vec__21421 = temp__5455__auto__; var smallest = cljs.core.nth.call(null,vec__21421,(0),null); return smallest; } else { return f; } }); /** * Do not call this directly, use 'fspec' */ cljs.spec.alpha.fspec_impl = (function cljs$spec$alpha$fspec_impl(argspec,aform,retspec,rform,fnspec,fform,gfn){ var specs = new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"args","args",1315556576),argspec,new cljs.core.Keyword(null,"ret","ret",-468222814),retspec,new cljs.core.Keyword(null,"fn","fn",-1175266204),fnspec], null); if(typeof cljs.spec.alpha.t_cljs$spec$alpha21424 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} * @implements {cljs.core.ILookup} */ cljs.spec.alpha.t_cljs$spec$alpha21424 = (function (argspec,aform,retspec,rform,fnspec,fform,gfn,specs,meta21425){ this.argspec = argspec; this.aform = aform; this.retspec = retspec; this.rform = rform; this.fnspec = fnspec; this.fform = fform; this.gfn = gfn; this.specs = specs; this.meta21425 = meta21425; this.cljs$lang$protocol_mask$partition0$ = 393472; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (specs){ return (function (_21426,meta21425__$1){ var self__ = this; var _21426__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21424(self__.argspec,self__.aform,self__.retspec,self__.rform,self__.fnspec,self__.fform,self__.gfn,self__.specs,meta21425__$1)); });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (specs){ return (function (_21426){ var self__ = this; var _21426__$1 = this; return self__.meta21425; });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$core$ILookup$_lookup$arity$2 = ((function (specs){ return (function (this$,k){ var self__ = this; var this$__$1 = this; return cljs.core.get.call(null,self__.specs,k); });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$core$ILookup$_lookup$arity$3 = ((function (specs){ return (function (_,k,not_found){ var self__ = this; var ___$1 = this; return cljs.core.get.call(null,self__.specs,k,not_found); });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (specs){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (specs){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (specs){ return (function (_,f){ var self__ = this; var ___$1 = this; if(cljs.core.ifn_QMARK_.call(null,f)){ if((f === cljs.spec.alpha.validate_fn.call(null,f,self__.specs,cljs.spec.alpha._STAR_fspec_iterations_STAR_))){ return f; } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } } else { return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (specs){ return (function (_,f){ var self__ = this; var ___$1 = this; return f; });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (specs){ return (function (_,path,via,in$,f){ var self__ = this; var ___$1 = this; if(cljs.core.ifn_QMARK_.call(null,f)){ var args = cljs.spec.alpha.validate_fn.call(null,f,self__.specs,(100)); if((f === args)){ return null; } else { var ret = (function (){try{return cljs.core.apply.call(null,f,args); }catch (e21427){if((e21427 instanceof Error)){ var t = e21427; return t; } else { throw e21427; } }})(); if((ret instanceof Error)){ return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),cljs.core.list(new cljs.core.Symbol(null,"apply","apply",-1334050276,null),new cljs.core.Symbol(null,"fn","fn",465265323,null)),new cljs.core.Keyword(null,"val","val",128701612),args,new cljs.core.Keyword(null,"reason","reason",-2070751759),ret.message,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } else { var cret = cljs.spec.alpha.dt.call(null,self__.retspec,ret,self__.rform); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,cret))){ return cljs.spec.alpha.explain_1.call(null,self__.rform,self__.retspec,cljs.core.conj.call(null,path,new cljs.core.Keyword(null,"ret","ret",-468222814)),via,in$,ret); } else { if(cljs.core.truth_(self__.fnspec)){ var cargs = cljs.spec.alpha.conform.call(null,self__.argspec,args); return cljs.spec.alpha.explain_1.call(null,self__.fform,self__.fnspec,cljs.core.conj.call(null,path,new cljs.core.Keyword(null,"fn","fn",-1175266204)),via,in$,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"args","args",1315556576),cargs,new cljs.core.Keyword(null,"ret","ret",-468222814),cret], null)); } else { return null; } } } } } else { return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),path,new cljs.core.Keyword(null,"pred","pred",1927423397),new cljs.core.Symbol(null,"ifn?","ifn?",-2106461064,null),new cljs.core.Keyword(null,"val","val",128701612),f,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)], null); } });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (specs){ return (function (_,overrides,___$1,___$2){ var self__ = this; var ___$3 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { return cljs.spec.gen.alpha.return$.call(null,((function (___$3,specs){ return (function() { var G__21430__delegate = function (args){ if(cljs.core.truth_(cljs.spec.alpha.pvalid_QMARK_.call(null,self__.argspec,args))){ } else { throw (new Error(["Assert failed: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1((function (){var sb__9484__auto__ = (new goog.string.StringBuffer()); var _STAR_print_newline_STAR_21428_21431 = cljs.core._STAR_print_newline_STAR_; var _STAR_print_fn_STAR_21429_21432 = cljs.core._STAR_print_fn_STAR_; cljs.core._STAR_print_newline_STAR_ = true; cljs.core._STAR_print_fn_STAR_ = ((function (_STAR_print_newline_STAR_21428_21431,_STAR_print_fn_STAR_21429_21432,sb__9484__auto__,___$3,specs){ return (function (x__9485__auto__){ return sb__9484__auto__.append(x__9485__auto__); });})(_STAR_print_newline_STAR_21428_21431,_STAR_print_fn_STAR_21429_21432,sb__9484__auto__,___$3,specs)) ; try{cljs.spec.alpha.explain.call(null,self__.argspec,args); }finally {cljs.core._STAR_print_fn_STAR_ = _STAR_print_fn_STAR_21429_21432; cljs.core._STAR_print_newline_STAR_ = _STAR_print_newline_STAR_21428_21431; } return [cljs.core.str.cljs$core$IFn$_invoke$arity$1(sb__9484__auto__)].join(''); })()),"\n","(pvalid? argspec args)"].join(''))); } return cljs.spec.gen.alpha.generate.call(null,cljs.spec.alpha.gen.call(null,self__.retspec,overrides)); }; var G__21430 = function (var_args){ var args = null; if (arguments.length > 0) { var G__21433__i = 0, G__21433__a = new Array(arguments.length - 0); while (G__21433__i < G__21433__a.length) {G__21433__a[G__21433__i] = arguments[G__21433__i + 0]; ++G__21433__i;} args = new cljs.core.IndexedSeq(G__21433__a,0,null); } return G__21430__delegate.call(this,args);}; G__21430.cljs$lang$maxFixedArity = 0; G__21430.cljs$lang$applyTo = (function (arglist__21434){ var args = cljs.core.seq(arglist__21434); return G__21430__delegate(args); }); G__21430.cljs$core$IFn$_invoke$arity$variadic = G__21430__delegate; return G__21430; })() ;})(___$3,specs)) ); } });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (specs){ return (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.fspec_impl.call(null,self__.argspec,self__.aform,self__.retspec,self__.rform,self__.fnspec,self__.fform,gfn__$1); });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (specs){ return (function (_){ var self__ = this; var ___$1 = this; return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","fspec","cljs.spec.alpha/fspec",-1289128341,null)),cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Keyword(null,"args","args",1315556576)),(function (){var x__9313__auto__ = self__.aform; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Keyword(null,"ret","ret",-468222814)),(function (){var x__9313__auto__ = self__.rform; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })(),cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Keyword(null,"fn","fn",-1175266204)),(function (){var x__9313__auto__ = self__.fform; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })()))); });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.getBasis = ((function (specs){ return (function (){ return new cljs.core.PersistentVector(null, 9, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"argspec","argspec",-1207762746,null),new cljs.core.Symbol(null,"aform","aform",531303525,null),new cljs.core.Symbol(null,"retspec","retspec",-920025354,null),new cljs.core.Symbol(null,"rform","rform",-1420499912,null),new cljs.core.Symbol(null,"fnspec","fnspec",-1865712406,null),new cljs.core.Symbol(null,"fform","fform",-176049972,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"specs","specs",-1227865028,null),new cljs.core.Symbol(null,"meta21425","meta21425",-283276940,null)], null); });})(specs)) ; cljs.spec.alpha.t_cljs$spec$alpha21424.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21424.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21424"; cljs.spec.alpha.t_cljs$spec$alpha21424.cljs$lang$ctorPrWriter = ((function (specs){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21424"); });})(specs)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21424 = ((function (specs){ return (function cljs$spec$alpha$fspec_impl_$___GT_t_cljs$spec$alpha21424(argspec__$1,aform__$1,retspec__$1,rform__$1,fnspec__$1,fform__$1,gfn__$1,specs__$1,meta21425){ return (new cljs.spec.alpha.t_cljs$spec$alpha21424(argspec__$1,aform__$1,retspec__$1,rform__$1,fnspec__$1,fform__$1,gfn__$1,specs__$1,meta21425)); });})(specs)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21424(argspec,aform,retspec,rform,fnspec,fform,gfn,specs,cljs.core.PersistentArrayMap.EMPTY)); }); cljs.spec.alpha.def_impl.call(null,new cljs.core.Keyword("cljs.spec.alpha","kvs->map","cljs.spec.alpha/kvs->map",579713455),cljs.core.list(new cljs.core.Symbol("cljs.spec.alpha","conformer","cljs.spec.alpha/conformer",2140085535,null),cljs.core.list(new cljs.core.Symbol(null,"fn*","fn*",-752876845,null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"p1__21435#","p1__21435#",884394247,null)], null),cljs.core.list(new cljs.core.Symbol("cljs.core","zipmap","cljs.core/zipmap",-1902130674,null),cljs.core.list(new cljs.core.Symbol("cljs.core","map","cljs.core/map",-338988913,null),new cljs.core.Keyword("cljs.spec.alpha","k","cljs.spec.alpha/k",-1602615178),new cljs.core.Symbol(null,"p1__21435#","p1__21435#",884394247,null)),cljs.core.list(new cljs.core.Symbol("cljs.core","map","cljs.core/map",-338988913,null),new cljs.core.Keyword("cljs.spec.alpha","v","cljs.spec.alpha/v",552625740),new cljs.core.Symbol(null,"p1__21435#","p1__21435#",884394247,null)))),cljs.core.list(new cljs.core.Symbol(null,"fn*","fn*",-752876845,null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"p1__21436#","p1__21436#",24116057,null)], null),cljs.core.list(new cljs.core.Symbol("cljs.core","map","cljs.core/map",-338988913,null),cljs.core.list(new cljs.core.Symbol("cljs.core","fn","cljs.core/fn",-1065745098,null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"k","k",-505765866,null),new cljs.core.Symbol(null,"v","v",1661996586,null)], null)], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword("cljs.spec.alpha","k","cljs.spec.alpha/k",-1602615178),new cljs.core.Symbol(null,"k","k",-505765866,null),new cljs.core.Keyword("cljs.spec.alpha","v","cljs.spec.alpha/v",552625740),new cljs.core.Symbol(null,"v","v",1661996586,null)], null)),new cljs.core.Symbol(null,"p1__21436#","p1__21436#",24116057,null)))),cljs.spec.alpha.spec_impl.call(null,cljs.core.list(new cljs.core.Symbol("cljs.spec.alpha","conformer","cljs.spec.alpha/conformer",2140085535,null),cljs.core.list(new cljs.core.Symbol("cljs.core","fn","cljs.core/fn",-1065745098,null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"%","%",-950237169,null)], null),cljs.core.list(new cljs.core.Symbol("cljs.core","zipmap","cljs.core/zipmap",-1902130674,null),cljs.core.list(new cljs.core.Symbol("cljs.core","map","cljs.core/map",-338988913,null),new cljs.core.Keyword("cljs.spec.alpha","k","cljs.spec.alpha/k",-1602615178),new cljs.core.Symbol(null,"%","%",-950237169,null)),cljs.core.list(new cljs.core.Symbol("cljs.core","map","cljs.core/map",-338988913,null),new cljs.core.Keyword("cljs.spec.alpha","v","cljs.spec.alpha/v",552625740),new cljs.core.Symbol(null,"%","%",-950237169,null)))),cljs.core.list(new cljs.core.Symbol("cljs.core","fn","cljs.core/fn",-1065745098,null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"%","%",-950237169,null)], null),cljs.core.list(new cljs.core.Symbol("cljs.core","map","cljs.core/map",-338988913,null),cljs.core.list(new cljs.core.Symbol("cljs.core","fn","cljs.core/fn",-1065745098,null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"k","k",-505765866,null),new cljs.core.Symbol(null,"v","v",1661996586,null)], null)], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword("cljs.spec.alpha","k","cljs.spec.alpha/k",-1602615178),new cljs.core.Symbol(null,"k","k",-505765866,null),new cljs.core.Keyword("cljs.spec.alpha","v","cljs.spec.alpha/v",552625740),new cljs.core.Symbol(null,"v","v",1661996586,null)], null)),new cljs.core.Symbol(null,"%","%",-950237169,null)))),(function (p1__21435_SHARP_){ return cljs.core.zipmap.call(null,cljs.core.map.call(null,new cljs.core.Keyword("cljs.spec.alpha","k","cljs.spec.alpha/k",-1602615178),p1__21435_SHARP_),cljs.core.map.call(null,new cljs.core.Keyword("cljs.spec.alpha","v","cljs.spec.alpha/v",552625740),p1__21435_SHARP_)); }),null,true,(function (p1__21436_SHARP_){ return cljs.core.map.call(null,(function (p__21437){ var vec__21438 = p__21437; var k = cljs.core.nth.call(null,vec__21438,(0),null); var v = cljs.core.nth.call(null,vec__21438,(1),null); return new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword("cljs.spec.alpha","k","cljs.spec.alpha/k",-1602615178),k,new cljs.core.Keyword("cljs.spec.alpha","v","cljs.spec.alpha/v",552625740),v], null); }),p1__21436_SHARP_); }))); /** * takes a spec and returns a spec that has the same properties except * 'conform' returns the original (not the conformed) value. Note, will specize regex ops. */ cljs.spec.alpha.nonconforming = (function cljs$spec$alpha$nonconforming(spec){ var spec__$1 = cljs.spec.alpha.specize.call(null,spec); if(typeof cljs.spec.alpha.t_cljs$spec$alpha21441 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21441 = (function (spec,meta21442){ this.spec = spec; this.meta21442 = meta21442; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (spec__$1){ return (function (_21443,meta21442__$1){ var self__ = this; var _21443__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21441(self__.spec,meta21442__$1)); });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (spec__$1){ return (function (_21443){ var self__ = this; var _21443__$1 = this; return self__.meta21442; });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (spec__$1){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (spec__$1){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (spec__$1){ return (function (_,x){ var self__ = this; var ___$1 = this; var ret = cljs.spec.alpha.conform_STAR_.call(null,self__.spec,x); if(cljs.core.truth_(cljs.spec.alpha.invalid_QMARK_.call(null,ret))){ return new cljs.core.Keyword("cljs.spec.alpha","invalid","cljs.spec.alpha/invalid",-1220295119); } else { return x; } });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (spec__$1){ return (function (_,x){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.unform_STAR_.call(null,self__.spec,x); });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (spec__$1){ return (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.explain_STAR_.call(null,self__.spec,path,via,in$,x); });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (spec__$1){ return (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.gen_STAR_.call(null,self__.spec,overrides,path,rmap); });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (spec__$1){ return (function (_,gfn){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.nonconforming.call(null,cljs.spec.alpha.with_gen_STAR_.call(null,self__.spec,gfn)); });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (spec__$1){ return (function (_){ var self__ = this; var ___$1 = this; return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","nonconforming","cljs.spec.alpha/nonconforming",-1009218508,null)),(function (){var x__9313__auto__ = cljs.spec.alpha.describe_STAR_.call(null,self__.spec); return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })()))); });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.getBasis = ((function (spec__$1){ return (function (){ return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"spec","spec",1988051928,null),new cljs.core.Symbol(null,"meta21442","meta21442",-548561466,null)], null); });})(spec__$1)) ; cljs.spec.alpha.t_cljs$spec$alpha21441.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21441.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21441"; cljs.spec.alpha.t_cljs$spec$alpha21441.cljs$lang$ctorPrWriter = ((function (spec__$1){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21441"); });})(spec__$1)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21441 = ((function (spec__$1){ return (function cljs$spec$alpha$nonconforming_$___GT_t_cljs$spec$alpha21441(spec__$2,meta21442){ return (new cljs.spec.alpha.t_cljs$spec$alpha21441(spec__$2,meta21442)); });})(spec__$1)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21441(spec__$1,cljs.core.PersistentArrayMap.EMPTY)); }); /** * Do not call this directly, use 'nilable' */ cljs.spec.alpha.nilable_impl = (function cljs$spec$alpha$nilable_impl(form,pred,gfn){ var spec = cljs.spec.alpha.specize.call(null,pred,form); if(typeof cljs.spec.alpha.t_cljs$spec$alpha21444 !== 'undefined'){ } else { /** * @constructor * @implements {cljs.spec.alpha.Spec} * @implements {cljs.core.IMeta} * @implements {cljs.spec.alpha.Specize} * @implements {cljs.core.IWithMeta} */ cljs.spec.alpha.t_cljs$spec$alpha21444 = (function (form,pred,gfn,spec,meta21445){ this.form = form; this.pred = pred; this.gfn = gfn; this.spec = spec; this.meta21445 = meta21445; this.cljs$lang$protocol_mask$partition0$ = 393216; this.cljs$lang$protocol_mask$partition1$ = 0; }); cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (spec){ return (function (_21446,meta21445__$1){ var self__ = this; var _21446__$1 = this; return (new cljs.spec.alpha.t_cljs$spec$alpha21444(self__.form,self__.pred,self__.gfn,self__.spec,meta21445__$1)); });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (spec){ return (function (_21446){ var self__ = this; var _21446__$1 = this; return self__.meta21445; });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Specize$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$1 = ((function (spec){ return (function (s){ var self__ = this; var s__$1 = this; return s__$1; });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Specize$specize_STAR_$arity$2 = ((function (spec){ return (function (s,_){ var self__ = this; var s__$1 = this; return s__$1; });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Spec$ = cljs.core.PROTOCOL_SENTINEL; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Spec$conform_STAR_$arity$2 = ((function (spec){ return (function (_,x){ var self__ = this; var ___$1 = this; if((x == null)){ return null; } else { return cljs.spec.alpha.conform_STAR_.call(null,self__.spec,x); } });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Spec$unform_STAR_$arity$2 = ((function (spec){ return (function (_,x){ var self__ = this; var ___$1 = this; if((x == null)){ return null; } else { return cljs.spec.alpha.unform_STAR_.call(null,self__.spec,x); } });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Spec$explain_STAR_$arity$5 = ((function (spec){ return (function (_,path,via,in$,x){ var self__ = this; var ___$1 = this; if(cljs.core.truth_((function (){var or__8359__auto__ = cljs.spec.alpha.pvalid_QMARK_.call(null,self__.spec,x); if(cljs.core.truth_(or__8359__auto__)){ return or__8359__auto__; } else { return (x == null); } })())){ return null; } else { return cljs.core.conj.call(null,cljs.spec.alpha.explain_1.call(null,self__.form,self__.pred,cljs.core.conj.call(null,path,new cljs.core.Keyword("cljs.spec.alpha","pred","cljs.spec.alpha/pred",-798342594)),via,in$,x),new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"path","path",-188191168),cljs.core.conj.call(null,path,new cljs.core.Keyword("cljs.spec.alpha","nil","cljs.spec.alpha/nil",1733813950)),new cljs.core.Keyword(null,"pred","pred",1927423397),new cljs.core.Symbol(null,"nil?","nil?",1612038930,null),new cljs.core.Keyword(null,"val","val",128701612),x,new cljs.core.Keyword(null,"via","via",-1904457336),via,new cljs.core.Keyword(null,"in","in",-1531184865),in$], null)); } });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Spec$gen_STAR_$arity$4 = ((function (spec){ return (function (_,overrides,path,rmap){ var self__ = this; var ___$1 = this; if(cljs.core.truth_(self__.gfn)){ return self__.gfn.call(null); } else { return cljs.spec.gen.alpha.frequency.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(1),cljs.spec.gen.alpha.delay_impl.call(null,(new cljs.core.Delay(((function (___$1,spec){ return (function (){ return cljs.spec.gen.alpha.return$.call(null,null); });})(___$1,spec)) ,null)))], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(9),cljs.spec.gen.alpha.delay_impl.call(null,(new cljs.core.Delay(((function (___$1,spec){ return (function (){ return cljs.spec.alpha.gensub.call(null,self__.pred,overrides,cljs.core.conj.call(null,path,new cljs.core.Keyword("cljs.spec.alpha","pred","cljs.spec.alpha/pred",-798342594)),rmap,self__.form); });})(___$1,spec)) ,null)))], null)], null)); } });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Spec$with_gen_STAR_$arity$2 = ((function (spec){ return (function (_,gfn__$1){ var self__ = this; var ___$1 = this; return cljs.spec.alpha.nilable_impl.call(null,self__.form,self__.pred,gfn__$1); });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.prototype.cljs$spec$alpha$Spec$describe_STAR_$arity$1 = ((function (spec){ return (function (_){ var self__ = this; var ___$1 = this; return cljs.core.sequence.call(null,cljs.core.seq.call(null,cljs.core.concat.call(null,cljs.core._conj.call(null,cljs.core.List.EMPTY,new cljs.core.Symbol("cljs.spec.alpha","nilable","cljs.spec.alpha/nilable",1628308748,null)),(function (){var x__9313__auto__ = self__.form; return cljs.core._conj.call(null,cljs.core.List.EMPTY,x__9313__auto__); })()))); });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.getBasis = ((function (spec){ return (function (){ return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"form","form",16469056,null),new cljs.core.Symbol(null,"pred","pred",-727012372,null),new cljs.core.Symbol(null,"gfn","gfn",-1862918295,null),new cljs.core.Symbol(null,"spec","spec",1988051928,null),new cljs.core.Symbol(null,"meta21445","meta21445",708143077,null)], null); });})(spec)) ; cljs.spec.alpha.t_cljs$spec$alpha21444.cljs$lang$type = true; cljs.spec.alpha.t_cljs$spec$alpha21444.cljs$lang$ctorStr = "cljs.spec.alpha/t_cljs$spec$alpha21444"; cljs.spec.alpha.t_cljs$spec$alpha21444.cljs$lang$ctorPrWriter = ((function (spec){ return (function (this__9030__auto__,writer__9031__auto__,opt__9032__auto__){ return cljs.core._write.call(null,writer__9031__auto__,"cljs.spec.alpha/t_cljs$spec$alpha21444"); });})(spec)) ; cljs.spec.alpha.__GT_t_cljs$spec$alpha21444 = ((function (spec){ return (function cljs$spec$alpha$nilable_impl_$___GT_t_cljs$spec$alpha21444(form__$1,pred__$1,gfn__$1,spec__$1,meta21445){ return (new cljs.spec.alpha.t_cljs$spec$alpha21444(form__$1,pred__$1,gfn__$1,spec__$1,meta21445)); });})(spec)) ; } return (new cljs.spec.alpha.t_cljs$spec$alpha21444(form,pred,gfn,spec,cljs.core.PersistentArrayMap.EMPTY)); }); /** * generates a number (default 10) of values compatible with spec and maps conform over them, * returning a sequence of [val conformed-val] tuples. Optionally takes * a generator overrides map as per gen */ cljs.spec.alpha.exercise = (function cljs$spec$alpha$exercise(var_args){ var G__21449 = arguments.length; switch (G__21449) { case 1: return cljs.spec.alpha.exercise.cljs$core$IFn$_invoke$arity$1((arguments[(0)])); break; case 2: return cljs.spec.alpha.exercise.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)])); break; case 3: return cljs.spec.alpha.exercise.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)])); break; default: throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join(''))); } }); cljs.spec.alpha.exercise.cljs$core$IFn$_invoke$arity$1 = (function (spec){ return cljs.spec.alpha.exercise.call(null,spec,(10)); }); cljs.spec.alpha.exercise.cljs$core$IFn$_invoke$arity$2 = (function (spec,n){ return cljs.spec.alpha.exercise.call(null,spec,n,null); }); cljs.spec.alpha.exercise.cljs$core$IFn$_invoke$arity$3 = (function (spec,n,overrides){ return cljs.core.map.call(null,(function (p1__21447_SHARP_){ return (new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[p1__21447_SHARP_,cljs.spec.alpha.conform.call(null,spec,p1__21447_SHARP_)],null)); }),cljs.spec.gen.alpha.sample.call(null,cljs.spec.alpha.gen.call(null,spec,overrides),n)); }); cljs.spec.alpha.exercise.cljs$lang$maxFixedArity = 3; /** * Return true if inst at or after start and before end */ cljs.spec.alpha.inst_in_range_QMARK_ = (function cljs$spec$alpha$inst_in_range_QMARK_(start,end,inst){ var and__8347__auto__ = cljs.core.inst_QMARK_.call(null,inst); if(and__8347__auto__){ var t = cljs.core.inst_ms.call(null,inst); return ((cljs.core.inst_ms.call(null,start) <= t)) && ((t < cljs.core.inst_ms.call(null,end))); } else { return and__8347__auto__; } }); /** * Return true if start <= val, val < end and val is a fixed * precision integer. */ cljs.spec.alpha.int_in_range_QMARK_ = (function cljs$spec$alpha$int_in_range_QMARK_(start,end,val){ if(cljs.core.integer_QMARK_.call(null,val)){ return ((start <= val)) && ((val < end)); } else { if((val instanceof goog.math.Long)){ var and__8347__auto__ = start.lessThanOrEqual(val); if(cljs.core.truth_(and__8347__auto__)){ return val.lessThan(end); } else { return and__8347__auto__; } } else { if((val instanceof goog.math.Integer)){ var and__8347__auto__ = start.lessThanOrEqual(val); if(cljs.core.truth_(and__8347__auto__)){ return val.lessThan(end); } else { return and__8347__auto__; } } else { return false; } } } }); if(typeof cljs.spec.alpha._STAR_compile_asserts_STAR_ !== 'undefined'){ } else { /** * If true, compiler will enable spec asserts, which are then * subject to runtime control via check-asserts? If false, compiler * will eliminate all spec assert overhead. See 'assert'. * Initially set to the negation of the ':elide-asserts' compiler option. * Defaults to true. */ cljs.spec.alpha._STAR_compile_asserts_STAR_ = true; } if(typeof cljs.spec.alpha._STAR_runtime_asserts_STAR_ !== 'undefined'){ } else { cljs.spec.alpha._STAR_runtime_asserts_STAR_ = false; } /** * Returns the value set by check-asserts. */ cljs.spec.alpha.check_asserts_QMARK_ = (function cljs$spec$alpha$check_asserts_QMARK_(){ return cljs.spec.alpha._STAR_runtime_asserts_STAR_; }); /** * Enable or disable spec asserts that have been compiled * with '*compile-asserts*' true. See 'assert'. * Initially set to boolean value of cljs.spec.alpha/*runtime-asserts*. * Defaults to false. */ cljs.spec.alpha.check_asserts = (function cljs$spec$alpha$check_asserts(flag){ return cljs.spec.alpha._STAR_runtime_asserts_STAR_ = flag; }); /** * Do not call this directly, use 'assert'. */ cljs.spec.alpha.assert_STAR_ = (function cljs$spec$alpha$assert_STAR_(spec,x){ if(cljs.core.truth_(cljs.spec.alpha.valid_QMARK_.call(null,spec,x))){ return x; } else { var ed = cljs.core.merge.call(null,cljs.core.assoc.call(null,cljs.spec.alpha.explain_data_STAR_.call(null,spec,cljs.core.PersistentVector.EMPTY,cljs.core.PersistentVector.EMPTY,cljs.core.PersistentVector.EMPTY,x),new cljs.core.Keyword("cljs.spec.alpha","failure","cljs.spec.alpha/failure",188258592),new cljs.core.Keyword(null,"assertion-failed","assertion-failed",-970534477))); throw (new Error(["Spec assertion failed\n",cljs.core.str.cljs$core$IFn$_invoke$arity$1((function (){var sb__9484__auto__ = (new goog.string.StringBuffer()); var _STAR_print_newline_STAR_21451_21453 = cljs.core._STAR_print_newline_STAR_; var _STAR_print_fn_STAR_21452_21454 = cljs.core._STAR_print_fn_STAR_; cljs.core._STAR_print_newline_STAR_ = true; cljs.core._STAR_print_fn_STAR_ = ((function (_STAR_print_newline_STAR_21451_21453,_STAR_print_fn_STAR_21452_21454,sb__9484__auto__,ed){ return (function (x__9485__auto__){ return sb__9484__auto__.append(x__9485__auto__); });})(_STAR_print_newline_STAR_21451_21453,_STAR_print_fn_STAR_21452_21454,sb__9484__auto__,ed)) ; try{cljs.spec.alpha.explain_out.call(null,ed); }finally {cljs.core._STAR_print_fn_STAR_ = _STAR_print_fn_STAR_21452_21454; cljs.core._STAR_print_newline_STAR_ = _STAR_print_newline_STAR_21451_21453; } return [cljs.core.str.cljs$core$IFn$_invoke$arity$1(sb__9484__auto__)].join(''); })())].join(''))); } }); //# sourceMappingURL=alpha.js.map?rel=1521112599665
module.exports = CachingRegistryClient var path = require('path') var fs = require('graceful-fs') var url = require('url') var assert = require('assert') var inherits = require('util').inherits var RegistryClient = require('npm-registry-client') var npm = require('../npm.js') var log = require('npmlog') var getCacheStat = require('./get-stat.js') var cacheFile = require('npm-cache-filename') var mkdirp = require('mkdirp') var rimraf = require('rimraf') var chownr = require('chownr') var writeFile = require('write-file-atomic') var parseJSON = require('../utils/parse-json') function CachingRegistryClient (config) { RegistryClient.call(this, adaptConfig(config)) this._mapToCache = cacheFile(config.get('cache')) // swizzle in our custom cache invalidation logic this._request = this.request this.request = this._invalidatingRequest this.get = get } inherits(CachingRegistryClient, RegistryClient) CachingRegistryClient.prototype._invalidatingRequest = function (uri, params, cb) { var client = this this._request(uri, params, function () { var args = arguments var method = params.method if (method !== 'HEAD' && method !== 'GET') { var invalidated = client._mapToCache(uri) // invalidate cache // // This is irrelevant for commands that do etag / last-modified caching, // but ls and view also have a timed cache, so this keeps the user from // thinking that it didn't work when it did. // Note that failure is an acceptable option here, since the only // result will be a stale cache for some helper commands. log.verbose('request', 'invalidating', invalidated, 'on', method) return rimraf(invalidated, function () { cb.apply(undefined, args) }) } cb.apply(undefined, args) }) } function get (uri, params, cb) { assert(typeof uri === 'string', 'must pass registry URI to get') assert(params && typeof params === 'object', 'must pass params to get') assert(typeof cb === 'function', 'must pass callback to get') var parsed = url.parse(uri) assert( parsed.protocol === 'http:' || parsed.protocol === 'https:', 'must have a URL that starts with http: or https:' ) var cacheBase = cacheFile(npm.config.get('cache'))(uri) var cachePath = path.join(cacheBase, '.cache.json') // If the GET is part of a write operation (PUT or DELETE), then // skip past the cache entirely, but still save the results. if (uri.match(/\?write=true$/)) { log.verbose('get', 'GET as part of write; not caching result') return get_.call(this, uri, cachePath, params, cb) } var client = this fs.stat(cachePath, function (er, stat) { if (!er) { fs.readFile(cachePath, function (er, data) { data = parseJSON.noExceptions(data) params.stat = stat params.data = data get_.call(client, uri, cachePath, params, cb) }) } else { get_.call(client, uri, cachePath, params, cb) } }) } function get_ (uri, cachePath, params, cb) { var staleOk = params.staleOk === undefined ? false : params.staleOk var timeout = params.timeout === undefined ? -1 : params.timeout var data = params.data var stat = params.stat var etag var lastModified timeout = Math.min(timeout, npm.config.get('cache-max') || 0) timeout = Math.max(timeout, npm.config.get('cache-min') || -Infinity) if (process.env.COMP_CWORD !== undefined && process.env.COMP_LINE !== undefined && process.env.COMP_POINT !== undefined) { timeout = Math.max(timeout, 60000) } if (data) { if (data._etag) etag = data._etag if (data._lastModified) lastModified = data._lastModified if (stat && timeout && timeout > 0) { if ((Date.now() - stat.mtime.getTime()) / 1000 < timeout) { log.verbose('get', uri, 'not expired, no request') delete data._etag delete data._lastModified return cb(null, data, JSON.stringify(data), { statusCode: 304 }) } if (staleOk) { log.verbose('get', uri, 'staleOk, background update') delete data._etag delete data._lastModified process.nextTick( cb.bind(null, null, data, JSON.stringify(data), { statusCode: 304 }) ) cb = function () {} } } } var options = { etag: etag, lastModified: lastModified, follow: params.follow, auth: params.auth } this.request(uri, options, function (er, remoteData, raw, response) { // if we get an error talking to the registry, but we have it // from the cache, then just pretend we got it. if (er && cachePath && data && !data.error) { er = null response = { statusCode: 304 } } if (response) { log.silly('get', 'cb', [response.statusCode, response.headers]) if (response.statusCode === 304 && (etag || lastModified)) { remoteData = data log.verbose(etag ? 'etag' : 'lastModified', uri + ' from cache') } } data = remoteData if (!data) er = er || new Error('failed to fetch from registry: ' + uri) if (er) return cb(er, data, raw, response) saveToCache(cachePath, data, saved) // just give the write the old college try. if it fails, whatever. function saved () { delete data._etag delete data._lastModified cb(er, data, raw, response) } function saveToCache (cachePath, data, saved) { log.verbose('get', 'saving', data.name, 'to', cachePath) getCacheStat(function (er, st) { mkdirp(path.dirname(cachePath), function (er, made) { if (er) return saved() writeFile(cachePath, JSON.stringify(data), function (er) { if (er) return saved() chownr(made || cachePath, st.uid, st.gid, saved) }) }) }) } }) } function adaptConfig (config) { return { proxy: { http: config.get('proxy'), https: config.get('https-proxy'), localAddress: config.get('local-address') }, ssl: { certificate: config.get('cert'), key: config.get('key'), ca: config.get('ca'), strict: config.get('strict-ssl') }, retry: { retries: config.get('fetch-retries'), factor: config.get('fetch-retry-factor'), minTimeout: config.get('fetch-retry-mintimeout'), maxTimeout: config.get('fetch-retry-maxtimeout') }, userAgent: config.get('user-agent'), log: log, defaultTag: config.get('tag'), couchToken: config.get('_token') } }
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /************************************************************* * * MathJax/jax/output/HTML-CSS/autoload/mtable.js * * Implements the HTML-CSS output for <mtable> elements. * * --------------------------------------------------------------------- * * Copyright (c) 2010-2016 The MathJax Consortium * * 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. */ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { var VERSION = "2.7.0"; var MML = MathJax.ElementJax.mml, HTMLCSS = MathJax.OutputJax["HTML-CSS"]; MML.mtable.Augment({ toHTML: function (span) { span = this.HTMLcreateSpan(span); if (this.data.length === 0) {return span} var values = this.getValues("columnalign","rowalign","columnspacing","rowspacing", "columnwidth","equalcolumns","equalrows", "columnlines","rowlines","frame","framespacing", "align","useHeight","width","side","minlabelspacing"); var hasRelativeWidth = values.width.match(/%$/); var stack = HTMLCSS.createStack(span); var scale = this.HTMLgetScale(), mu = this.HTMLgetMu(span), LABEL = -1; var H = [], D = [], W = [], A = [], C = [], i, j, J = -1, m, M, s, row, cell, mo, entries = [], HD; var LH = HTMLCSS.FONTDATA.lineH * scale * values.useHeight, LD = HTMLCSS.FONTDATA.lineD * scale * values.useHeight; // // Create cells and measure columns and rows // for (i = 0, m = this.data.length; i < m; i++) { row = this.data[i]; s = (row.type === "mlabeledtr" ? LABEL : 0); A[i] = []; H[i] = LH; D[i] = LD; for (j = s, M = row.data.length + s; j < M; j++) { if (W[j] == null) { if (j > J) {J = j} C[j] = HTMLCSS.createStack(HTMLCSS.createBox(stack)); W[j] = -HTMLCSS.BIGDIMEN; } A[i][j] = HTMLCSS.createBox(C[j]); entries.push(row.data[j-s].toHTML(A[i][j])); } } HTMLCSS.MeasureSpans(entries); for (i = 0, m = this.data.length; i < m; i++) { row = this.data[i]; s = (row.type === "mlabeledtr" ? LABEL : 0); for (j = s, M = row.data.length + s; j < M; j++) { cell = row.data[j-s]; if (cell.isMultiline) {A[i][j].style.width = "100%"} if (cell.isEmbellished()) { mo = cell.CoreMO(); var min = mo.Get("minsize",true); if (min) { var bbox = mo.HTMLspanElement().bbox; if (mo.HTMLcanStretch("Vertical")) { HD = bbox.h + bbox.d; if (HD) { min = HTMLCSS.length2em(min,mu,HD); if (min*bbox.h/HD > H[i]) {H[i] = min*bbox.h/HD} if (min*bbox.d/HD > D[i]) {D[i] = min*bbox.d/HD} } } else if (mo.HTMLcanStretch("Horizontal")) { min = HTMLCSS.length2em(min,mu,bbox.w); if (min > W[j]) {W[j] = min} } } } if (A[i][j].bbox.h > H[i]) {H[i] = A[i][j].bbox.h} if (A[i][j].bbox.d > D[i]) {D[i] = A[i][j].bbox.d} if (A[i][j].bbox.w > W[j]) {W[j] = A[i][j].bbox.w} } } // // Determine spacing and alignment // var SPLIT = MathJax.Hub.SplitList; var CSPACE = SPLIT(values.columnspacing), RSPACE = SPLIT(values.rowspacing), CALIGN = SPLIT(values.columnalign), RALIGN = SPLIT(values.rowalign), CLINES = SPLIT(values.columnlines), RLINES = SPLIT(values.rowlines), CWIDTH = SPLIT(values.columnwidth), RCALIGN = []; for (i = 0, m = CSPACE.length; i < m; i++) {CSPACE[i] = HTMLCSS.length2em(CSPACE[i],mu)} for (i = 0, m = RSPACE.length; i < m; i++) {RSPACE[i] = HTMLCSS.length2em(RSPACE[i],mu)} while (CSPACE.length < J) {CSPACE.push(CSPACE[CSPACE.length-1])} while (CALIGN.length <= J) {CALIGN.push(CALIGN[CALIGN.length-1])} while (CLINES.length < J) {CLINES.push(CLINES[CLINES.length-1])} while (CWIDTH.length <= J) {CWIDTH.push(CWIDTH[CWIDTH.length-1])} while (RSPACE.length < A.length) {RSPACE.push(RSPACE[RSPACE.length-1])} while (RALIGN.length <= A.length) {RALIGN.push(RALIGN[RALIGN.length-1])} while (RLINES.length < A.length) {RLINES.push(RLINES[RLINES.length-1])} if (C[LABEL]) { CALIGN[LABEL] = (values.side.substr(0,1) === "l" ? "left" : "right"); CSPACE[LABEL] = -W[LABEL]; } // // Override row data // for (i = 0, m = A.length; i < m; i++) { row = this.data[i]; RCALIGN[i] = []; if (row.rowalign) {RALIGN[i] = row.rowalign} if (row.columnalign) { RCALIGN[i] = SPLIT(row.columnalign); while (RCALIGN[i].length <= J) {RCALIGN[i].push(RCALIGN[i][RCALIGN[i].length-1])} } } // // Handle equal heights // if (values.equalrows) { // FIXME: should really be based on row align (below is for baseline) var Hm = Math.max.apply(Math,H), Dm = Math.max.apply(Math,D); for (i = 0, m = A.length; i < m; i++) {s = ((Hm + Dm) - (H[i] + D[i])) / 2; H[i] += s; D[i] += s} } // FIXME: do background colors for entire cell (include half the intercolumn space?) // // Determine array total height // HD = H[0] + D[A.length-1]; for (i = 0, m = A.length-1; i < m; i++) {HD += Math.max(0,D[i]+H[i+1]+RSPACE[i])} // // Determine frame and line sizes // var fx = 0, fy = 0, fW, fH = HD; if (values.frame !== "none" || (values.columnlines+values.rowlines).match(/solid|dashed/)) { var frameSpacing = SPLIT(values.framespacing); if (frameSpacing.length != 2) { // invalid attribute value: use the default. frameSpacing = SPLIT(this.defaults.framespacing); } fx = HTMLCSS.length2em(frameSpacing[0],mu); fy = HTMLCSS.length2em(frameSpacing[1],mu); fH = HD + 2*fy; // fW waits until stack.bbox.w is determined } // // Compute alignment // var Y, fY, n = ""; if (typeof(values.align) !== "string") {values.align = String(values.align)} if (values.align.match(/(top|bottom|center|baseline|axis)( +(-?\d+))?/)) {n = RegExp.$3||""; values.align = RegExp.$1} else {values.align = this.defaults.align} if (n !== "") { // // Find the height of the given row // n = parseInt(n); if (n < 0) {n = A.length + 1 + n} if (n < 1) {n = 1} else if (n > A.length) {n = A.length} Y = 0; fY = -(HD + fy) + H[0]; for (i = 0, m = n-1; i < m; i++) { // FIXME: Should handle values.align for final row var dY = Math.max(0,D[i]+H[i+1]+RSPACE[i]); Y += dY; fY += dY; } } else { Y = ({ top: -(H[0] + fy), bottom: HD + fy - H[0], center: HD/2 - H[0], baseline: HD/2 - H[0], axis: HD/2 + HTMLCSS.TeX.axis_height*scale - H[0] })[values.align]; fY = ({ top: -(HD + 2*fy), bottom: 0, center: -(HD/2 + fy), baseline: -(HD/2 + fy), axis: HTMLCSS.TeX.axis_height*scale - HD/2 - fy })[values.align]; } var WW, WP = 0, Wt = 0, Wp = 0, p = 0, f = 0, P = [], F = [], Wf = 1; // if (values.equalcolumns && values.width !== "auto") { // // Handle equalcolumns for percent-width and fixed-width tables // if (hasRelativeWidth) { // Set widths to percentages WW = (100/(J+1)).toFixed(2).replace(/\.?0+$/,"")+"%"; for (i = 0, m = Math.min(J+1,CWIDTH.length); i < m; i++) {CWIDTH[i] = WW} // Get total column spacing WW = 0; WP = 1; f = J+1; for (i = 0, m = Math.min(J+1,CSPACE.length); i < m; i++) {WW += CSPACE[i]} } else { // Get total width minus column spacing WW = HTMLCSS.length2em(values.width,mu); for (i = 0, m = Math.min(J,CSPACE.length); i < m; i++) {WW -= CSPACE[i]} // Determine individual column widths WW /= J; for (i = 0, m = Math.min(J+1,CWIDTH.length); i < m; i++) {W[i] = WW} } } else { // // Get column widths for fit and percentage columns // // Calculate the natural widths and percentage widths, // while keeping track of the fit and percentage columns for(i = 0, m = Math.min(J+1,CWIDTH.length); i < m; i++) { if (CWIDTH[i] === "auto") {Wt += W[i]} else if (CWIDTH[i] === "fit") {F[f] = i; f++; Wt += W[i]} else if (CWIDTH[i].match(/%$/)) {P[p] = i; p++; Wp += W[i]; WP += HTMLCSS.length2em(CWIDTH[i],mu,1)} else {W[i] = HTMLCSS.length2em(CWIDTH[i],mu); Wt += W[i]} } if (hasRelativeWidth) { // Get separation width and check percentages WW = 0; for (i = 0, m = Math.min(J,CSPACE.length); i < m; i++) {WW += CSPACE[i]} if (WP > .98) {Wf = .98/WP; WP = .98} } else { // Get the full width (excluding inter-column spacing) if (values.width === "auto") { if (WP > .98) {Wf = Wp/(Wt+Wp); WW = Wt + Wp} else {WW = Wt / (1-WP)} } else { WW = HTMLCSS.length2em(values.width,mu); for (i = 0, m = Math.min(J,CSPACE.length); i < m; i++) {WW -= CSPACE[i]} } // Determine the relative column widths for (i = 0, m = P.length; i < m; i++) { W[P[i]] = HTMLCSS.length2em(CWIDTH[P[i]],mu,WW*Wf); Wt += W[P[i]]; } // Stretch fit columns, if any, otherwise stretch (or shrink) everything if (Math.abs(WW - Wt) > .01) { if (f && WW > Wt) { WW = (WW - Wt) / f; for (i = 0, m = F.length; i < m; i++) {W[F[i]] += WW} } else {WW = WW/Wt; for (j = 0; j <= J; j++) {W[j] *= WW}} } // // Handle equal columns // if (values.equalcolumns) { var Wm = Math.max.apply(Math,W); for (j = 0; j <= J; j++) {W[j] = Wm} } } } // // Lay out array columns // var y = Y, dy, line, align; s = (C[LABEL] ? LABEL : 0); for (j = s; j <= J; j++) { for (i = 0, m = A.length; i < m; i++) { if (A[i][j]) { s = (this.data[i].type === "mlabeledtr" ? LABEL : 0); cell = this.data[i].data[j-s]; if (cell.HTMLcanStretch("Horizontal")) { A[i][j].bbox = cell.HTMLstretchH(C[j],W[j]).bbox; } else if (cell.HTMLcanStretch("Vertical")) { mo = cell.CoreMO(); var symmetric = mo.symmetric; mo.symmetric = false; A[i][j].bbox = cell.HTMLstretchV(C[j],H[i],D[i]).bbox; A[i][j].HH = null; if (A[i][j].bbox.h > H[i]) {A[i][j].bbox.H = A[i][j].bbox.h; A[i][j].bbox.h = H[i]} if (A[i][j].bbox.d > D[i]) {A[i][j].bbox.D = A[i][j].bbox.d; A[i][j].bbox.d = D[i]} mo.symmetric = symmetric; } align = cell.rowalign||this.data[i].rowalign||RALIGN[i]; dy = ({top: H[i] - A[i][j].bbox.h, bottom: A[i][j].bbox.d - D[i], center: ((H[i]-D[i]) - (A[i][j].bbox.h-A[i][j].bbox.d))/2, baseline: 0, axis: 0})[align] || 0; // FIXME: handle axis better? align = (cell.columnalign||RCALIGN[i][j]||CALIGN[j]); HTMLCSS.alignBox(A[i][j],align,y+dy); } if (i < A.length-1) {y -= Math.max(0,D[i]+H[i+1]+RSPACE[i])} } y = Y; } // // Set column widths and placement // if (hasRelativeWidth) { // // Remove column spacing to get width available for columns // var box = HTMLCSS.createBox(stack); box.style.left = box.style.top = 0; box.style.right = HTMLCSS.Em(WW+2*fx); box.style.display = "inline-block"; box.style.height = "0px"; if (HTMLCSS.msieRelativeWidthBug) { box = HTMLCSS.createBox(box); box.style.position = "relative"; box.style.height = "1em"; box.style.width = "100%"; box.bbox = stack.bbox; } // // wp = remaining width (%) divided by the number of columns it is split over // wm = remaining width (fixed) divided by the number of columns it is split over // var xp = 0, xf = fx, wp, wm; if (f) {wp = 100*(1-WP)/f, wm = Wt/f} else {wp = 100*(1-WP)/(J+1); wm = Wt/(J+1)} for (j = 0; j <= J; j++) { HTMLCSS.placeBox(C[j].parentNode,0,0); // sets the bbox // // Convert original column to the innermost span in the mobile column // C[j].style.position = "relative"; C[j].style.left = HTMLCSS.Em(xf); C[j].style.width = "100%"; C[j].parentNode.parentNode.removeChild(C[j].parentNode); var Cj = HTMLCSS.createBox(box); HTMLCSS.addBox(Cj,C[j]); C[j] = Cj; var CjStyle = Cj.style; CjStyle.display = "inline-block"; CjStyle.left = xp + "%"; // // Set width/position based on the type of column // if (CWIDTH[j].match(/%$/)) { var pp = parseFloat(CWIDTH[j]) * Wf; if (f === 0) { CjStyle.width = (wp + pp) + "%"; xp += wp + pp; Cj = HTMLCSS.createBox(Cj); HTMLCSS.addBox(Cj,C[j].firstChild); Cj.style.left = 0; Cj.style.right = HTMLCSS.Em(wm); xf -= wm; } else { CjStyle.width = pp + "%"; xp += pp; } } else if (CWIDTH[j] === "fit" || f === 0) { CjStyle.width = wp + "%"; Cj = HTMLCSS.createBox(Cj); HTMLCSS.addBox(Cj,C[j].firstChild); Cj.style.left = 0; Cj.style.right = HTMLCSS.Em(wm-W[j]); xf += W[j] - wm; xp += wp; } else { CjStyle.width = HTMLCSS.Em(W[j]); xf += W[j]; } if (HTMLCSS.msieRelativeWidthBug) { HTMLCSS.addText(Cj.firstChild,HTMLCSS.NBSP); // gets correct baseline Cj.firstChild.style.position = "relative"; } xf += CSPACE[j]; // // Add column lines // if (CLINES[j] !== "none" && j < J && j !== LABEL) { line = HTMLCSS.createBox(box); line.style.left = xp+"%"; line = HTMLCSS.createRule(line,fH,0,1.25/HTMLCSS.em); line.style.position = "absolute"; line.bbox = {h:fH, d:0, w:0, rw:1.25/HTMLCSS.em, lw:0}; line.parentNode.bbox = stack.bbox; // make sure stack size is updated HTMLCSS.placeBox(line,xf-CSPACE[j]/2,fY,true); line.style.borderStyle = CLINES[j]; } } } else { // // Set the column box widths and place them // var x = fx; for (j = 0; j <= J; j++) { if (!C[j].bbox.width) {HTMLCSS.setStackWidth(C[j],W[j])} if (CWIDTH[j] !== "auto" && CWIDTH[j] !== "fit") {C[j].bbox.width = W[j]; C[j].bbox.isFixed = true} HTMLCSS.placeBox(C[j].parentNode,x,0); x += W[j] + CSPACE[j]; // // Add column lines // if (CLINES[j] !== "none" && j < J && j !== LABEL) { line = HTMLCSS.createRule(stack,fH,0,1.25/HTMLCSS.em); HTMLCSS.addBox(stack,line); line.bbox = {h:fH, d:0, w:0, rw:1.25/HTMLCSS.em, lw:0}; HTMLCSS.placeBox(line,x-CSPACE[j]/2,fY,true); line.style.borderStyle = CLINES[j]; } } } stack.bbox.d = -fY; stack.bbox.h = fH+fY; HTMLCSS.setStackWidth(stack,stack.bbox.w + fx); // // Add frame // fW = stack.bbox.w; var frame; if (values.frame !== "none") { frame = HTMLCSS.createFrame(stack,fH,0,fW,1.25/HTMLCSS.em,values.frame); HTMLCSS.addBox(stack,frame); HTMLCSS.placeBox(frame,0,fY,true); if (hasRelativeWidth) {frame.style.width = "100%"} } // // Add row lines // y = Y; for (i = 0, m = A.length-1; i < m; i++) { dy = Math.max(0,D[i]+H[i+1]+RSPACE[i]); if (RLINES[i] !== MML.LINES.NONE && RLINES[i] !== "") { line = HTMLCSS.createRule(stack,1.25/HTMLCSS.em,0,fW); HTMLCSS.addBox(stack,line); line.bbox = {h:1.25/HTMLCSS.em, d:0, w:fW, rw:fW, lw:0}; HTMLCSS.placeBox(line,0,y - D[i] - (dy-D[i]-H[i+1])/2,true); if (RLINES[i] === MML.LINES.DASHED) line.style.borderTopStyle = "dashed"; if (hasRelativeWidth) line.style.width = "100%" } y -= dy; } // // Set relative width // if (hasRelativeWidth) {span.bbox.width = values.width; stack.style.width = "100%"} // // Place the labels, if any // if (C[LABEL]) { var mw = stack.bbox.w; var indent = this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift"); if (indent.indentalignfirst !== MML.INDENTALIGN.INDENTALIGN) {indent.indentalign = indent.indentalignfirst} if (indent.indentalign === MML.INDENTALIGN.AUTO) {indent.indentalign = this.displayAlign} if (indent.indentshiftfirst !== MML.INDENTSHIFT.INDENTSHIFT) {indent.indentshift = indent.indentshiftfirst} if (indent.indentshift === "auto") {indent.indentshift = "0"} var shift = HTMLCSS.length2em(indent.indentshift,mu,HTMLCSS.cwidth); var labelspace = HTMLCSS.length2em(values.minlabelspacing,mu,HTMLCSS.cwidth); var labelW = labelspace + C[LABEL].bbox.w, labelshift = 0, tw = mw; var dIndent = HTMLCSS.length2em(this.displayIndent,mu,HTMLCSS.cwidth); s = (CALIGN[LABEL] === MML.INDENTALIGN.RIGHT ? -1 : 1); if (indent.indentalign === MML.INDENTALIGN.CENTER) { tw += 2 * (labelW - s*(shift + dIndent)); shift += dIndent; } else if (CALIGN[LABEL] === indent.indentalign) { if (dIndent < 0) {labelshift = s*dIndent; dIndent = 0} shift += s*dIndent; if (labelW > s*shift) shift = s*labelW; shift += labelshift; tw += s*shift; } else { tw += labelW - s*shift + dIndent; shift -= s*dIndent; } var eqn = HTMLCSS.createStack(span,false,"100%"); HTMLCSS.addBox(eqn,stack); HTMLCSS.alignBox(stack,indent.indentalign,0,shift); C[LABEL].parentNode.parentNode.removeChild(C[LABEL].parentNode); HTMLCSS.addBox(eqn,C[LABEL]); HTMLCSS.alignBox(C[LABEL],CALIGN[LABEL],0); if (HTMLCSS.msieRelativeWidthBug) {stack.style.top = C[LABEL].style.top = ""} if (hasRelativeWidth) {stack.style.width = values.width; span.bbox.width = "100%"} C[LABEL].style[s === 1 ? "marginLeft" : "marginRight"] = HTMLCSS.Em(s*labelshift); span.bbox.tw = tw; span.style.minWidth = span.bbox.minWidth = HTMLCSS.Em(tw); eqn.style.minWidth = eqn.bbox.minWidth = HTMLCSS.Em(tw/scale); } // // Finish the table // if (!hasRelativeWidth) {this.HTMLhandleSpace(span)} var color = this.HTMLhandleColor(span); // // Handle relative-sized background color // if (color && hasRelativeWidth) { if (!frame) { frame = HTMLCSS.createFrame(stack,fH,0,fW,0,"none"); HTMLCSS.addBox(stack,frame); HTMLCSS.placeBox(frame,0,fY,true); frame.style.width = "100%"; } frame.style.backgroundColor = color.style.backgroundColor; frame.parentNode.insertBefore(frame,frame.parentNode.firstChild); color.parentNode.removeChild(color); } return span; }, HTMLhandleSpace: function (span) { span.bbox.keepPadding = true; span.bbox.exact = true; if (!this.hasFrame && span.bbox.width == null) {span.style.paddingLeft = span.style.paddingRight = HTMLCSS.Em(1/6)} this.SUPER(arguments).HTMLhandleSpace.call(this,span); } }); MML.mtd.Augment({ toHTML: function (span,HW,D) { span = this.HTMLcreateSpan(span); if (this.data[0]) { var box = this.data[0].toHTML(span); if (D != null) {box = this.data[0].HTMLstretchV(span,HW,D)} else if (HW != null) {box = this.data[0].HTMLstretchH(span,HW)} span.bbox = box.bbox; } this.HTMLhandleSpace(span); this.HTMLhandleColor(span); return span; }, HTMLstretchH: MML.mbase.HTMLstretchH, HTMLstretchV: MML.mbase.HTMLstretchV }); MathJax.Hub.Startup.signal.Post("HTML-CSS mtable Ready"); MathJax.Ajax.loadComplete(HTMLCSS.autoloadDir+"/mtable.js"); });
/**. * User: Matthieu Holzer * Date: 11.09.12 * Time: 17:41 */ define(['jquery', 'lib/jquery.reveal'], function ($) { //http://www.zurb.com/playground/reveal-modal-plugin var reveal = function ($el, options) { $el.css('display', 'block').reveal( { animation : options.animation || 'fadeAndPop', //fade, fadeAndPop, none animationspeed : options.animationspeed || 300, //how fast animtions are closeonbackgroundclick : options.closeonbackgroundclick === undefined ? true : options.closeonbackgroundclick, //if you click background will modal close? dismissmodalclass : options.dismissmodalclass || 'close-reveal-modal' //the class of a button or element that will close an open modal } ); }; return { reveal : reveal } });
import React from 'react'; import PropTypes from 'prop-types'; export default function ReferralLink({ link }) { return ( <div className="setting last"> <div className="setting-title">Your Referral Link</div> <div className="copy-wrapper"> <div className="copy-text">{link}</div> <a href="/#" className="copy-button w-inline-block"> <div className="text-block-13">copy</div> </a> <div className="link-overlay-color" /> </div> </div> ); } ReferralLink.propTypes = { link: PropTypes.string, };
import React, { Component } from 'react'; import { TabContent, TabPane, Nav, NavItem, NavLink } from 'reactstrap'; import classnames from 'classnames'; class Tabs extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { activeTab: '1', }; } toggle(tab) { if (this.state.activeTab !== tab) { this.setState({ activeTab: tab, }); } } render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-md-6 mb-4"> <Nav tabs> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '1' })} onClick={() => { this.toggle('1'); }} > Home </NavLink> </NavItem> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '2' })} onClick={() => { this.toggle('2'); }} > Profile </NavLink> </NavItem> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '3' })} onClick={() => { this.toggle('3'); }} > Messages </NavLink> </NavItem> </Nav> <TabContent activeTab={this.state.activeTab}> <TabPane tabId="1"> 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> <TabPane tabId="2"> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> <TabPane tabId="3"> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> </TabContent> </div> <div className="col-md-6 mb-4"> <Nav tabs> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '1' })} onClick={() => { this.toggle('1'); }} > <i className="icon-calculator" /> </NavLink> </NavItem> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '2' })} onClick={() => { this.toggle('2'); }} > <i className="icon-basket-loaded" /> </NavLink> </NavItem> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '3' })} onClick={() => { this.toggle('3'); }} > <i className="icon-pie-chart" /> </NavLink> </NavItem> </Nav> <TabContent activeTab={this.state.activeTab}> <TabPane tabId="1"> 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> <TabPane tabId="2"> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> <TabPane tabId="3"> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> </TabContent> </div> <div className="col-md-6 mb-4"> <Nav tabs> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '1' })} onClick={() => { this.toggle('1'); }} > <i className="icon-calculator" /> Calculator </NavLink> </NavItem> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '2' })} onClick={() => { this.toggle('2'); }} > <i className="icon-basket-loaded" /> Shoping cart </NavLink> </NavItem> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '3' })} onClick={() => { this.toggle('3'); }} > <i className="icon-pie-chart" /> Charts </NavLink> </NavItem> </Nav> <TabContent activeTab={this.state.activeTab}> <TabPane tabId="1"> 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> <TabPane tabId="2"> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> <TabPane tabId="3"> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> </TabContent> </div> <div className="col-md-6 mb-4"> <Nav tabs> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '1' })} onClick={() => { this.toggle('1'); }} > <i className="icon-calculator" /> Calculator &nbsp;<span className="badge badge-success">New</span> </NavLink> </NavItem> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '2' })} onClick={() => { this.toggle('2'); }} > <i className="icon-basket-loaded" /> Shoping cart &nbsp;<span className="badge badge-pill badge-danger">29</span> </NavLink> </NavItem> <NavItem> <NavLink className={classnames({ active: this.state.activeTab === '3' })} onClick={() => { this.toggle('3'); }} > <i className="icon-pie-chart" /> Charts </NavLink> </NavItem> </Nav> <TabContent activeTab={this.state.activeTab}> <TabPane tabId="1"> 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> <TabPane tabId="2"> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> <TabPane tabId="3"> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </TabPane> </TabContent> </div> </div> </div> ); } } export default Tabs;
"use strict"; /* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ (self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_pages_products_vue"],{ /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/GammeProduct.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/GammeProduct.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"GammeProduct\",\n props: ['gamme'],\n methods: _objectSpread({}, (0,vuex__WEBPACK_IMPORTED_MODULE_0__.mapActions)('cart', {\n addToCart: 'addToCart'\n }))\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/Y2xvbmVkUnVsZVNldC01WzBdLnJ1bGVzWzBdLnVzZVswXSEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvUHJvZHVjdHMvR2FtbWVQcm9kdWN0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFpREE7QUFFQSxpRUFBZTtBQUNmQSxzQkFEQTtBQUdBQyxrQkFIQTtBQUtBQyw2QkFDQUMsZ0RBQUFBO0FBQ0FDO0FBREEsSUFEQTtBQUxBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL1Byb2R1Y3RzL0dhbW1lUHJvZHVjdC52dWU/NTQ2MCJdLCJzb3VyY2VzQ29udGVudCI6WyI8dGVtcGxhdGU+XG4gICAgPGRpdiBjbGFzcz1cImJnLXdoaXRlIHNoYWRvdy1sZyBjdXJzb3ItcG9pbnRlciByb3VuZGVkIHRyYW5zZm9ybSBob3ZlcjpzY2FsZS0xMDUgZHVyYXRpb24tMzAwIGVhc2UtaW4tb3V0IGgtZnVsbFwiPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiXCI+XG4gICAgICAgICAgICA8aW1nIDpzcmM9XCJnYW1tZS5pbWFnZVwiXG4gICAgICAgICAgICAgICAgOmFsdD1cImdhbW1lLm5hbWVcIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwidy1mdWxsIGgtMzIgbWQ6aC02NCBteC1hdXRvIHJvdW5kZWQtdFwiPlxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPGRpdiBjbGFzcz1cInAtNFwiPlxuICAgICAgICAgICAgPGgyIGNsYXNzPVwidGV4dC1iYXNlIG1kOnRleHQteGwgdXBwZXJjYXNlXCI+XG4gICAgICAgICAgICAgICAge3tnYW1tZS5uYW1lfX1cbiAgICAgICAgICAgIDwvaDI+XG4gICAgICAgICAgICA8IS0tIDxwIGNsYXNzPVwiZm9udC1saWdodCB0ZXh0LWdyYXktNTAwIHRleHQtbGcgbXktMlwiPlxuICAgICAgICAgICAgICAgIHt7ICRnYW1tZS0+aXRlbS0+c3BlY2lhbF9wcmljZSA/PyAkZ2FtbWUtPml0ZW0tPnByaWNlIH19IHt7IGNvbmZpZygnc2V0dGluZ3MuY3VycmVuY3lfc3ltYm9sJykgfX1cbiAgICAgICAgICAgIDwvcD4gLS0+XG4gICAgICAgICAgICA8cCBjbGFzcz1cImZvbnQtbGlnaHQgdGV4dC1ncmF5LTYwMCBteS0yXCI+XG4gICAgICAgICAgICAgICAgPCEtLSA8aSBjbGFzcz1cInRleHQtZ3JheS01MDAgbGluZS10aHJvdWdoXCI+IE1BRDwvaT5cbiAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImZvbnQtYm9sZFwiPlxuICAgICAgICAgICAgICAgICAgICB7e2dhbW1lLnByaWNlfX0gTUFEXG4gICAgICAgICAgICAgICAgPC9zcGFuPiAtLT5cbiAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInRleHQtcHJpbWFyeS1ncmF5XCI+XG4gICAgICAgICAgICAgICAgICAgIHt7IGdhbW1lLnByaWNlIH19IE1BRFxuICAgICAgICAgICAgICAgIDwvc3Bhbj5cbiAgICAgICAgICAgIDwvcD5cbiAgICAgICAgICAgIDxwIHYtaWY9XCJnYW1tZS5kZXNjcmlwdGlvblwiPlxuICAgICAgICAgICAgICAgIHt7IGdhbW1lLmRlc2NyaXB0aW9uIH19XG4gICAgICAgICAgICA8L3A+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZmxleCBmbGV4LXdyYXAgdGV4dC1zbSBtdC0zXCI+XG4gICAgICAgICAgICAgICAgPHVsPlxuICAgICAgICAgICAgICAgICAgICA8bGkgdi1mb3I9XCIocHJvZHVjdCwgaW5kZXgpIGluIGdhbW1lLnByb2R1Y3RzXCIgOmtleT1cImluZGV4XCIgY2xhc3M9XCJmbGV4IGl0ZW1zLWNlbnRlclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInJvdW5kZWQtZnVsbCBwbC0wIHAtMiBtZDpwbC0yIGZpbGwtY3VycmVudCB0ZXh0LWdyZWVuLTcwMFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdmcgY2xhc3M9XCJ3LTMgaC0zIG1kOnctNiBtZDpoLTYgYWxpZ24tbWlkZGxlXCIgd2lkdGg9XCIyNFwiIGhlaWdodD1cIjI0XCIgdmlld0JveD1cIjAgMCAyNCAyNFwiIGZpbGw9XCJub25lXCIgc3Ryb2tlPVwiY3VycmVudENvbG9yXCIgc3Ryb2tlLXdpZHRoPVwiMlwiIHN0cm9rZS1saW5lY2FwPVwicm91bmRcIiBzdHJva2UtbGluZWpvaW49XCJyb3VuZFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPVwiTTIyIDExLjA4VjEyYTEwIDEwIDAgMSAxLTUuOTMtOS4xNFwiPjwvcGF0aD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHBvbHlsaW5lIHBvaW50cz1cIjIyIDQgMTIgMTQuMDEgOSAxMS4wMVwiID48L3BvbHlsaW5lPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3ZnPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInRleHQtZ3JheS03MDAgdGV4dFwiPnt7cHJvZHVjdH19PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSAmYnVsbDsgNTAwIG1sIC0tPlxuICAgICAgICAgICAgICAgICAgICA8L2xpPlxuICAgICAgICAgICAgICAgIDwvdWw+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgIDxidXR0b24gdHlwZT1cImJ1dHRvblwiIEBjbGljaz1cImFkZFRvQ2FydChnYW1tZSlcIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwidy1mdWxsIHRleHQtc20gbWQ6dGV4dC1iYXNlIGJsb2NrIGJnLXByaW1hcnktZGVmYXVsdCBweS0yIHB4LTIgdGV4dC13aGl0ZSB0ZXh0LWNlbnRlciBtZDpyb3VuZGVkIHNoYWRvdy1sZyB1cHBlcmNhc2UgZm9udC1saWdodCBtdC02IGhvdmVyOmJnLXByaW1hcnkgaG92ZXI6dGV4dC13aGl0ZSBkdXJhdGlvbi0zMDAgZWFzZS1pbi1vdXRcIj5cbiAgICAgICAgICAgICAgICBBZGQgdG8gY2FydFxuICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuPC90ZW1wbGF0ZT5cblxuPHNjcmlwdD5cbmltcG9ydCB7IG1hcEFjdGlvbnMgfSBmcm9tICd2dWV4J1xuXG5leHBvcnQgZGVmYXVsdCB7XG4gICAgbmFtZTogXCJHYW1tZVByb2R1Y3RcIixcblxuICAgIHByb3BzOiBbJ2dhbW1lJ10sXG5cbiAgICBtZXRob2RzOiB7XG4gICAgICAgIC4uLm1hcEFjdGlvbnMoJ2NhcnQnLHtcbiAgICAgICAgICAgIGFkZFRvQ2FydDogJ2FkZFRvQ2FydCcsXG4gICAgICAgIH0pLFxuICAgIH1cbn1cbjwvc2NyaXB0PiJdLCJuYW1lcyI6WyJuYW1lIiwicHJvcHMiLCJtZXRob2RzIiwibWFwQWN0aW9ucyIsImFkZFRvQ2FydCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/GammeProduct.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/SingleProduct.vue?vue&type=script&lang=js&": /*!*****************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/SingleProduct.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"SingleProduct\",\n props: ['product'],\n data: function data() {\n return {\n selectedProductPrice: Object.keys(this.product.prices).length ? Object.values(this.product.prices)[0] : 0\n };\n },\n methods: _objectSpread({}, (0,vuex__WEBPACK_IMPORTED_MODULE_0__.mapActions)('cart', {\n addToCart: 'addToCart'\n }))\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/Y2xvbmVkUnVsZVNldC01WzBdLnJ1bGVzWzBdLnVzZVswXSEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvUHJvZHVjdHMvU2luZ2xlUHJvZHVjdC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFrRUE7QUFFQSxpRUFBZTtBQUNmQSx1QkFEQTtBQUdBQyxvQkFIQTtBQUtBQyxNQUxBLGtCQUtBO0FBQ0E7QUFDQUM7QUFEQTtBQUdBLEdBVEE7QUFXQUMsNkJBQ0FDLGdEQUFBQTtBQUNBQztBQURBLElBREE7QUFYQSIsInNvdXJjZXMiOlsid2VicGFjazovLy9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9TaW5nbGVQcm9kdWN0LnZ1ZT80MmQyIl0sInNvdXJjZXNDb250ZW50IjpbIjx0ZW1wbGF0ZT5cbiAgPGRpdiBjbGFzcz1cInRyYW5zZm9ybSBkdXJhdGlvbi01MDAgZWFzZS1pbi1vdXQgc2NhbGUtMTAwIGhvdmVyOnNjYWxlLTEwNVwiPlxuICAgIDxpbWcgOnNyYz1cInByb2R1Y3QuaW1hZ2VcIlxuICAgICAgICA6YWx0PVwicHJvZHVjdC5uYW1lXCJcbiAgICAgICAgY2xhc3M9XCJ3LWZ1bGwgaC0zMiBtZDpoLTY0IG9iamVjdC1jb3ZlciBvYmplY3QtY2VudGVyIG14LWF1dG8gbWQ6cm91bmRlZC1sZyBzaGFkb3ctbWRcIlxuICAgICAgICBsb2FkaW5nPVwibGF6eVwiPiAgICBcbiAgICA8ZGl2IGNsYXNzPVwicmVsYXRpdmUgbWQ6cHgtNCAtbXQtNiBtZDotbXQtMTZcIj5cbiAgICAgICAgPGRpdiBjbGFzcz1cIm1kOmhpZGRlblwiPlxuICAgICAgICAgICAgPGJ1dHRvbiB0eXBlPVwiYnV0dG9uXCIgQGNsaWNrPVwiYWRkVG9DYXJ0KHByb2R1Y3QpXCIgXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJ3LWZ1bGwgdGV4dC1zbSBtZDp0ZXh0LWJhc2UgYmxvY2sgYmctcHJpbWFyeS1kZWZhdWx0IHB5LTIgcHgtMiB0ZXh0LXdoaXRlIHRleHQtY2VudGVyIG1kOnJvdW5kZWQgc2hhZG93LWxnIHVwcGVyY2FzZSBmb250LWxpZ2h0IG10LTYgaG92ZXI6YmctcHJpbWFyeSBob3Zlcjp0ZXh0LXdoaXRlIGR1cmF0aW9uLTMwMCBlYXNlLWluLW91dFwiPlxuICAgICAgICAgICAgICAgIEFkZCB0byBjYXJ0XG4gICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJiZy13aGl0ZSBwLTIgbWQ6cC02IGxnOnJvdW5kZWQtbGcgc2hhZG93LWxnXCI+XG4gICAgICAgICAgICA8IS0tIDxkaXYgY2xhc3M9XCJmbGV4IGl0ZW1zLWJhc2VsaW5lXCI+XG4gICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJiZy1zZWNvbmRhcnkgbWItMiB0ZXh0LXdoaXRlIHRleHQteHMgcHgtMiBpbmxpbmUtYmxvY2sgcm91bmRlZC1mdWxsIHVwcGVyY2FzZSBmb250LXNlbWlib2xkIHRyYWNraW5nLXdpZGVcIj5cbiAgICAgICAgICAgICAgICAgICAgMTIwIG1sXG4gICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgPC9kaXY+IC0tPlxuICAgICAgICAgICAgPGg0IGNsYXNzPVwibWQ6dGV4dC14bCB1cHBlcmNhc2UgbGVhZGluZy10aWdodFwiPlxuICAgICAgICAgICAgICAgIHt7cHJvZHVjdC5uYW1lfX1cbiAgICAgICAgICAgIDwvaDQ+XG4gICAgICAgICAgICA8ZGl2IHYtaWY9XCJwcm9kdWN0LmRlc2NyaXB0aW9uXCIgY2xhc3M9XCJtdC0xXCI+XG4gICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJ0ZXh0LXNtIHRleHQtZ3JheS02MDBcIj5cbiAgICAgICAgICAgICAgICAgIHt7cHJvZHVjdC5kZXNjcmlwdGlvbn19XG4gICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwibXQtNCBmbGV4IGZsZXgtcm93IGp1c3RpZnktYmV0d2VlbiBpdGVtcy1jZW50ZXJcIj5cbiAgICAgICAgICAgICAgICA8IS0tIEBpZigkcHJvZHVjdC0+aXRlbS0+c3BlY2lhbF9wcmljZSlcbiAgICAgICAgICAgICAgICA8aSBjbGFzcz1cInRleHQtZ3JheS01MDAgbGluZS10aHJvdWdoXCI+e3sgJHByb2R1Y3QtPml0ZW0tPnByaWNlIH19IHt7IGNvbmZpZygnc2V0dGluZ3MuY3VycmVuY3lfc3ltYm9sJykgfX08L2k+XG4gICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJ0ZXh0LWdyYXktNjAwIGZvbnQtYm9sZFwiPlxuICAgICAgICAgICAgICAgICAgICB7eyAkcHJvZHVjdC0+aXRlbS0+c3BlY2lhbF9wcmljZSB9fSB7eyBjb25maWcoJ3NldHRpbmdzLmN1cnJlbmN5X3N5bWJvbCcpIH19XG4gICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICAgIEBlbHNlIC0tPlxuICAgICAgICAgICAgICAgIDxkaXYgdi1pZj1cInByb2R1Y3QucHJpY2UgPT0gMFwiIGNsYXNzPVwiZmxleCB3LTEvMiBtZDp3LWF1dG8gaXRlbXMtY2VudGVyXCI+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJyZWxhdGl2ZVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPHNlbGVjdCB2LW1vZGVsPVwic2VsZWN0ZWRQcm9kdWN0UHJpY2VcIiBjbGFzcz1cInJvdW5kZWQgYm9yZGVyIGFwcGVhcmFuY2Utbm9uZSBib3JkZXItZ3JheS0xMDAgcHktMiB0ZXh0LXNtIGZvY3VzOm91dGxpbmUtbm9uZSBwbC0zIHByLTMgbWQ6cHItMTAgdy1mdWxsIG1kOnctYXV0b1wiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxvcHRpb24gdi1mb3I9XCIocHJpY2UsIGluZGV4KSBpbiBwcm9kdWN0LnByaWNlc1wiIDprZXk9XCJpbmRleFwiIDp2YWx1ZT1cInByaWNlXCI+e3tpbmRleH19PC9vcHRpb24+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPCEtLSB2LWJpbmQ6c2VsZWN0ZWQ9XCJpbmRleCA9PT0gT2JqZWN0LmtleXMocHJvZHVjdC5wcmljZXMpWzBdLnRyaW0oKVwiIC0tPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9zZWxlY3Q+XG4gICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImFic29sdXRlIGhpZGRlbiBtZDpmbGV4IHJpZ2h0LTAgdG9wLTAgaC1mdWxsIHctMTAgdGV4dC1jZW50ZXIgdGV4dC1ncmF5LTYwMCBwb2ludGVyLWV2ZW50cy1ub25lIGl0ZW1zLWNlbnRlciBqdXN0aWZ5LWNlbnRlclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzdmcgZmlsbD1cIm5vbmVcIiBzdHJva2U9XCJjdXJyZW50Q29sb3JcIiBzdHJva2UtbGluZWNhcD1cInJvdW5kXCIgc3Ryb2tlLWxpbmVqb2luPVwicm91bmRcIiBzdHJva2Utd2lkdGg9XCIyXCIgY2xhc3M9XCJ3LTQgaC00XCIgdmlld0JveD1cIjAgMCAyNCAyNFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9XCJNNiA5bDYgNiA2LTZcIj48L3BhdGg+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9zdmc+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJ0ZXh0LXByaW1hcnktZ3JheSBtbC0yIG1kOm1sLTAgdy0xLzIgbWQ6dy1hdXRvXCI+XG4gICAgICAgICAgICAgICAgICAgIDxzcGFuIHYtaWY9XCJwcm9kdWN0LnByaWNlICE9IDBcIj57e3Byb2R1Y3QucHJpY2V9fSBNQUQ8L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgIDxzcGFuIHYtZWxzZT5cbiAgICAgICAgICAgICAgICAgICAgICAgIHt7c2VsZWN0ZWRQcm9kdWN0UHJpY2V9fSBNQURcbiAgICAgICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiaGlkZGVuIG1kOmJsb2NrXCI+XG4gICAgICAgICAgICAgICAgPGJ1dHRvbiB0eXBlPVwiYnV0dG9uXCIgQGNsaWNrPVwiYWRkVG9DYXJ0KHByb2R1Y3QsIHNlbGVjdGVkUHJvZHVjdFByaWNlIHx8ICcnKVwiXG4gICAgICAgICAgICAgICAgICBjbGFzcz1cInctZnVsbCB0ZXh0LXNtIG1kOnRleHQtYmFzZSBibG9jayBiZy1wcmltYXJ5LWRlZmF1bHQgcHktMiBweC0yIHRleHQtd2hpdGUgdGV4dC1jZW50ZXIgbWQ6cm91bmRlZCBzaGFkb3ctbGcgdXBwZXJjYXNlIGZvbnQtbGlnaHQgbXQtNiBob3ZlcjpiZy1wcmltYXJ5IGhvdmVyOnRleHQtd2hpdGUgZHVyYXRpb24tMzAwIGVhc2UtaW4tb3V0XCI+XG4gICAgICAgICAgICAgICAgICBBZGQgdG8gY2FydFxuICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0PlxuaW1wb3J0IHsgbWFwQWN0aW9ucyB9IGZyb20gJ3Z1ZXgnXG5cbmV4cG9ydCBkZWZhdWx0IHtcbiAgICBuYW1lOiBcIlNpbmdsZVByb2R1Y3RcIixcblxuICAgIHByb3BzOiBbJ3Byb2R1Y3QnXSxcblxuICAgIGRhdGEoKSB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBzZWxlY3RlZFByb2R1Y3RQcmljZTogT2JqZWN0LmtleXModGhpcy5wcm9kdWN0LnByaWNlcykubGVuZ3RoID8gT2JqZWN0LnZhbHVlcyh0aGlzLnByb2R1Y3QucHJpY2VzKVswXSA6IDAsXG4gICAgICAgIH1cbiAgICB9LFxuXG4gICAgbWV0aG9kczoge1xuICAgICAgICAuLi5tYXBBY3Rpb25zKCdjYXJ0Jyx7XG4gICAgICAgICAgICBhZGRUb0NhcnQ6ICdhZGRUb0NhcnQnLFxuICAgICAgICB9KSxcbiAgICB9XG59XG48L3NjcmlwdD4iXSwibmFtZXMiOlsibmFtZSIsInByb3BzIiwiZGF0YSIsInNlbGVjdGVkUHJvZHVjdFByaWNlIiwibWV0aG9kcyIsIm1hcEFjdGlvbnMiLCJhZGRUb0NhcnQiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/SingleProduct.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/products.vue?vue&type=script&lang=js&": /*!**********************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/products.vue?vue&type=script&lang=js& ***! \**********************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _components_Products_GammeProduct_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/Products/GammeProduct.vue */ \"./resources/js/components/Products/GammeProduct.vue\");\n/* harmony import */ var _components_Products_SingleProduct_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/Products/SingleProduct.vue */ \"./resources/js/components/Products/SingleProduct.vue\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// import ShowAllProducts from '../components/Products/ShowAllProducts.vue';\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n name: \"Products\",\n metaInfo: function metaInfo() {\n return {\n title: 'Products'\n };\n },\n components: {\n GammeProduct: _components_Products_GammeProduct_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"],\n SingleProduct: _components_Products_SingleProduct_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n },\n computed: (0,vuex__WEBPACK_IMPORTED_MODULE_2__.mapGetters)({\n gammes: 'cart/allGammes',\n products: 'cart/allProducts' // lengthGammes: 'cart/getNumberOfGammes',\n // lengthProducts: 'cart/getNumberOfProducts'\n\n }) // methods: {\n // ...mapActions('cart',{\n // addToCart: 'addToCart',\n // }),\n // }\n\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/Y2xvbmVkUnVsZVNldC01WzBdLnJ1bGVzWzBdLnVzZVswXSEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vcmVzb3VyY2VzL2pzL3BhZ2VzL3Byb2R1Y3RzLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUE4REE7QUFDQTtBQUNBO0FBQ0E7QUFFQSxpRUFBZTtBQUNmQSxrQkFEQTtBQUdBQyxVQUhBLHNCQUdBO0FBQ0E7QUFBQUM7QUFBQTtBQUNBLEdBTEE7QUFPQUM7QUFDQUMsa0JBQUFBLDZFQURBO0FBRUFDLG1CQUFBQSw4RUFBQUE7QUFGQSxHQVBBO0FBWUFDLFlBQUFBLGdEQUFBQTtBQUNBQyw0QkFEQTtBQUVBQyxnQ0FGQSxDQUdBO0FBQ0E7O0FBSkEsSUFaQSxDQWtCQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQXRCQSIsInNvdXJjZXMiOlsid2VicGFjazovLy9yZXNvdXJjZXMvanMvcGFnZXMvcHJvZHVjdHMudnVlPzNhOTQiXSwic291cmNlc0NvbnRlbnQiOlsiPHRlbXBsYXRlPlxuICA8ZGl2PlxuICAgIDxzZWN0aW9uIGNsYXNzPVwiZmxleCBmbGV4LWNvbCBqdXN0aWZ5LWNlbnRlciBwLTIgbWQ6cC04IG1iLTEwIGJnLXdoaXRlXCI+XG4gICAgICAgIDxuYXYgY2xhc3M9XCJ3LWZ1bGwgcHktNFwiPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cInctZnVsbCBjb250YWluZXIgbXgtYXV0byBmbGV4IGZsZXgtd3JhcCBpdGVtcy1jZW50ZXIganVzdGlmeS1iZXR3ZWVuIG10LTAgcHktM1wiPlxuICAgICAgICAgICAgICAgIDxoMyBjbGFzcz1cInVwcGVyY2FzZSB0cmFja2luZy13aWRlIG5vLXVuZGVybGluZSBob3Zlcjpuby11bmRlcmxpbmUgZm9udC1ib2xkIHRleHQtZ3JheS03MDAgdGV4dC14bCBcIiBocmVmPVwiI1wiPlxuICAgICAgICAgICAgICAgICAgICBOb3MgZ2FtbW1lc1xuICAgICAgICAgICAgICAgIDwvaDM+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9uYXY+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJncmlkIGdyaWQtY29scy0yIG1kOmdyaWQtY29scy00IGdhcC0yIG1kOmdhcC04IHB0LTggbWF4LXctN3hsIG14LWF1dG9cIj5cbiAgICAgICAgICAgICAgPGRpdiB2LWZvcj1cImdhbW1lIGluIGdhbW1lc1wiIDprZXk9XCJnYW1tZS5pZFwiPlxuICAgICAgICAgICAgICAgIDxnYW1tZS1wcm9kdWN0IDpnYW1tZT1cImdhbW1lXCI+PC9nYW1tZS1wcm9kdWN0PlxuICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxuYXYgY2xhc3M9XCJ3LWZ1bGwgcHktNCBtdC04XCI+XG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwidy1mdWxsIGNvbnRhaW5lciBteC1hdXRvIGZsZXggZmxleC13cmFwIGl0ZW1zLWNlbnRlciBqdXN0aWZ5LWJldHdlZW4gbXQtMCBweS0zXCI+XG4gICAgICAgICAgICAgICAgPGgzIGNsYXNzPVwidXBwZXJjYXNlIHRyYWNraW5nLXdpZGUgbm8tdW5kZXJsaW5lIGhvdmVyOm5vLXVuZGVybGluZSBmb250LWJvbGQgdGV4dC1ncmF5LTcwMCB0ZXh0LXhsIFwiIGhyZWY9XCIjXCI+XG4gICAgICAgICAgICAgICAgICAgIE5vcyBwcm9kdWl0c1xuICAgICAgICAgICAgICAgIDwvaDM+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9uYXY+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJncmlkIGdyaWQtY29scy0yIG1kOmdyaWQtY29scy00IGdhcC0yIG1kOmdhcC04IHB0LTggbWF4LXctN3hsIG14LWF1dG9cIj5cbiAgICAgICAgICAgIDxkaXYgdi1mb3I9XCJwcm9kdWN0IGluIHByb2R1Y3RzXCIgOmtleT1cInByb2R1Y3QuaWRcIj5cbiAgICAgICAgICAgICAgICA8c2luZ2xlLXByb2R1Y3QgOnByb2R1Y3Q9XCJwcm9kdWN0XCI+PC9zaW5nbGUtcHJvZHVjdD5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICA8L3NlY3Rpb24+XG4gICAgXG4gICAgPCEtLSBAaXNzZXQoJGJlc3RzZWxsZXItPnByb2R1Y3RzKVxuICAgIDxzZWN0aW9uIGNsYXNzPVwiYmctcHJpbWFyeSBwLTQgcHktOCBtZDpweC0wXCI+XG4gICAgICAgIDxoMiBjbGFzcz1cInctZnVsbCBteS0yIHRleHQtNHhsIGZvbnQtYmxhY2sgbGVhZGluZy10aWdodCB0ZXh0LWNlbnRlciB0ZXh0LXdoaXRlXCI+XG4gICAgICAgICAgICBCZXN0IFNlbGxlclxuICAgICAgICA8L2gyPlxuICAgICAgICA8ZGl2IGNsYXNzPVwidy1mdWxsIG1iLThcIj5cbiAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJoLTEgbXgtYXV0byBiZy13aGl0ZSB3LTY0IG9wYWNpdHktMjUgbXktMCBweS0wIHJvdW5kZWQtdFwiPjwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPGRpdiBjbGFzcz1cImdyaWQgZ3JpZC1jb2xzLTIgbWQ6Z3JpZC1jb2xzLTQgZ2FwLTIgbWQ6Z2FwLTggbWF4LXctN3hsIG14LWF1dG9cIj5cbiAgICAgICAgICAgIEBmb3JlYWNoICgkYmVzdHNlbGxlci0+cHJvZHVjdHMgYXMgJHByb2R1Y3QpXG4gICAgICAgICAgICAgICAgQGluY2x1ZGUoJ21haW4ucGFydGlhbHMuY2FyZC5wcm9kdWN0JywgWydwcm9kdWN0JyA9PiAkcHJvZHVjdCwgJ2NvbG9yX2JnJyA9PiAnYmctYmxhY2snXSlcbiAgICAgICAgICAgIEBlbmRmb3JlYWNoXG4gICAgICAgIDwvZGl2PlxuICAgIDwvc2VjdGlvbj5cbiAgICBAZW5kaXNzZXQgLS0+XG5cbiAgICA8IS0tIDxzZWN0aW9uIGNsYXNzPVwiYmctZ3JheS01MCBweS0yNFwiPlxuICAgICAgICA8aDIgY2xhc3M9XCJ3LWZ1bGwgbXktMiB0ZXh0LTR4bCBmb250LWJsYWNrIGxlYWRpbmctdGlnaHQgdGV4dC1jZW50ZXIgdGV4dC1ncmF5LTgwMFwiPlxuICAgICAgICAgICAgV2h5IFVzXG4gICAgICAgIDwvaDI+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJ3LWZ1bGwgbWItNFwiPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImgtMSBteC1hdXRvIGJnLXByaW1hcnkgdy02NCBvcGFjaXR5LTI1IG15LTAgcHktMCByb3VuZGVkLXRcIj48L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJtYXgtdy03eGwgcHgtNiBteC1hdXRvIGZsZXhcIj5cbiAgICAgICAgICAgIDxwIGNsYXNzPVwidGV4dC14bCBtdC00IG14LWF1dG8gdGV4dC1jZW50ZXJcIj5cbiAgICAgICAgICAgICAgICBMb3JlbSBpcHN1bSBkb2xvciBzaXQgYW1ldCwgY29uc2VjdGV0dXIgYWRpcGlzaWNpbmcgZWxpdC4gT21uaXMgZWFxdWUgbmVjZXNzaXRhdGlidXMgdm9sdXB0YXRlIG1vbGVzdGlhZSBpbiBmYWNlcmUgaXVzdG8gbm9iaXMgb2ZmaWNpaXMgcG9zc2ltdXMsIHNpbnQgYXRxdWUgcXVhbSBvYmNhZWNhdGkgY29uc2VjdGV0dXIgc2ltaWxpcXVlIHF1aXMsIHRlbXBvcmUgcGVyZmVyZW5kaXMhIE51bGxhLCBhcmNoaXRlY3RvLlxuICAgICAgICAgICAgPC9wPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L3NlY3Rpb24+IC0tPlxuICA8L2Rpdj5cbjwvdGVtcGxhdGU+XG5cbjxzY3JpcHQ+XG4vLyBpbXBvcnQgU2hvd0FsbFByb2R1Y3RzIGZyb20gJy4uL2NvbXBvbmVudHMvUHJvZHVjdHMvU2hvd0FsbFByb2R1Y3RzLnZ1ZSc7XG5pbXBvcnQgR2FtbWVQcm9kdWN0IGZyb20gJy4uL2NvbXBvbmVudHMvUHJvZHVjdHMvR2FtbWVQcm9kdWN0LnZ1ZSdcbmltcG9ydCBTaW5nbGVQcm9kdWN0IGZyb20gJy4uL2NvbXBvbmVudHMvUHJvZHVjdHMvU2luZ2xlUHJvZHVjdC52dWUnXG5pbXBvcnQgeyBtYXBHZXR0ZXJzIH0gZnJvbSAndnVleCdcblxuZXhwb3J0IGRlZmF1bHQge1xuICAgIG5hbWU6IFwiUHJvZHVjdHNcIixcblxuICAgIG1ldGFJbmZvICgpIHtcbiAgICAgICAgcmV0dXJuIHsgdGl0bGU6ICdQcm9kdWN0cycgfVxuICAgIH0sXG5cbiAgICBjb21wb25lbnRzOiB7XG4gICAgICBHYW1tZVByb2R1Y3QsXG4gICAgICBTaW5nbGVQcm9kdWN0XG4gICAgfSxcblxuICAgIGNvbXB1dGVkOiBtYXBHZXR0ZXJzKHtcbiAgICAgICAgZ2FtbWVzOiAnY2FydC9hbGxHYW1tZXMnLFxuICAgICAgICBwcm9kdWN0czogJ2NhcnQvYWxsUHJvZHVjdHMnLFxuICAgICAgICAvLyBsZW5ndGhHYW1tZXM6ICdjYXJ0L2dldE51bWJlck9mR2FtbWVzJyxcbiAgICAgICAgLy8gbGVuZ3RoUHJvZHVjdHM6ICdjYXJ0L2dldE51bWJlck9mUHJvZHVjdHMnXG4gICAgfSksXG4gICAgLy8gbWV0aG9kczoge1xuICAgIC8vICAgICAuLi5tYXBBY3Rpb25zKCdjYXJ0Jyx7XG4gICAgLy8gICAgICAgICBhZGRUb0NhcnQ6ICdhZGRUb0NhcnQnLFxuICAgIC8vICAgICB9KSxcbiAgICAvLyB9XG59XG48L3NjcmlwdD4iXSwibmFtZXMiOlsibmFtZSIsIm1ldGFJbmZvIiwidGl0bGUiLCJjb21wb25lbnRzIiwiR2FtbWVQcm9kdWN0IiwiU2luZ2xlUHJvZHVjdCIsImNvbXB1dGVkIiwiZ2FtbWVzIiwicHJvZHVjdHMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/products.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/components/Products/GammeProduct.vue": /*!***********************************************************!*\ !*** ./resources/js/components/Products/GammeProduct.vue ***! \***********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _GammeProduct_vue_vue_type_template_id_700f30d4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GammeProduct.vue?vue&type=template&id=700f30d4& */ \"./resources/js/components/Products/GammeProduct.vue?vue&type=template&id=700f30d4&\");\n/* harmony import */ var _GammeProduct_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GammeProduct.vue?vue&type=script&lang=js& */ \"./resources/js/components/Products/GammeProduct.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n;\nvar component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _GammeProduct_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _GammeProduct_vue_vue_type_template_id_700f30d4___WEBPACK_IMPORTED_MODULE_0__.render,\n _GammeProduct_vue_vue_type_template_id_700f30d4___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/components/Products/GammeProduct.vue\"\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9HYW1tZVByb2R1Y3QudnVlLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBMkY7QUFDM0I7QUFDTDs7O0FBRzNEO0FBQ0EsQ0FBZ0c7QUFDaEcsZ0JBQWdCLHVHQUFVO0FBQzFCLEVBQUUsa0ZBQU07QUFDUixFQUFFLG9GQUFNO0FBQ1IsRUFBRSw2RkFBZTtBQUNqQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSxJQUFJLEtBQVUsRUFBRSxZQWlCZjtBQUNEO0FBQ0EsaUVBQWUiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9HYW1tZVByb2R1Y3QudnVlPzkxNDAiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tIFwiLi9HYW1tZVByb2R1Y3QudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTcwMGYzMGQ0JlwiXG5pbXBvcnQgc2NyaXB0IGZyb20gXCIuL0dhbW1lUHJvZHVjdC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcbmV4cG9ydCAqIGZyb20gXCIuL0dhbW1lUHJvZHVjdC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcblxuXG4vKiBub3JtYWxpemUgY29tcG9uZW50ICovXG5pbXBvcnQgbm9ybWFsaXplciBmcm9tIFwiIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanNcIlxudmFyIGNvbXBvbmVudCA9IG5vcm1hbGl6ZXIoXG4gIHNjcmlwdCxcbiAgcmVuZGVyLFxuICBzdGF0aWNSZW5kZXJGbnMsXG4gIGZhbHNlLFxuICBudWxsLFxuICBudWxsLFxuICBudWxsXG4gIFxuKVxuXG4vKiBob3QgcmVsb2FkICovXG5pZiAobW9kdWxlLmhvdCkge1xuICB2YXIgYXBpID0gcmVxdWlyZShcIi9Vc2Vycy9tYWMvRGVza3RvcC9vcmdhbmljLXZpbGxhZ2Uvbm9kZV9tb2R1bGVzL3Z1ZS1ob3QtcmVsb2FkLWFwaS9kaXN0L2luZGV4LmpzXCIpXG4gIGFwaS5pbnN0YWxsKHJlcXVpcmUoJ3Z1ZScpKVxuICBpZiAoYXBpLmNvbXBhdGlibGUpIHtcbiAgICBtb2R1bGUuaG90LmFjY2VwdCgpXG4gICAgaWYgKCFhcGkuaXNSZWNvcmRlZCgnNzAwZjMwZDQnKSkge1xuICAgICAgYXBpLmNyZWF0ZVJlY29yZCgnNzAwZjMwZDQnLCBjb21wb25lbnQub3B0aW9ucylcbiAgICB9IGVsc2Uge1xuICAgICAgYXBpLnJlbG9hZCgnNzAwZjMwZDQnLCBjb21wb25lbnQub3B0aW9ucylcbiAgICB9XG4gICAgbW9kdWxlLmhvdC5hY2NlcHQoXCIuL0dhbW1lUHJvZHVjdC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NzAwZjMwZDQmXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignNzAwZjMwZDQnLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy9jb21wb25lbnRzL1Byb2R1Y3RzL0dhbW1lUHJvZHVjdC52dWVcIlxuZXhwb3J0IGRlZmF1bHQgY29tcG9uZW50LmV4cG9ydHMiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/Products/GammeProduct.vue\n"); /***/ }), /***/ "./resources/js/components/Products/SingleProduct.vue": /*!************************************************************!*\ !*** ./resources/js/components/Products/SingleProduct.vue ***! \************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _SingleProduct_vue_vue_type_template_id_6ae4dfb2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SingleProduct.vue?vue&type=template&id=6ae4dfb2& */ \"./resources/js/components/Products/SingleProduct.vue?vue&type=template&id=6ae4dfb2&\");\n/* harmony import */ var _SingleProduct_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SingleProduct.vue?vue&type=script&lang=js& */ \"./resources/js/components/Products/SingleProduct.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n;\nvar component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _SingleProduct_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _SingleProduct_vue_vue_type_template_id_6ae4dfb2___WEBPACK_IMPORTED_MODULE_0__.render,\n _SingleProduct_vue_vue_type_template_id_6ae4dfb2___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/components/Products/SingleProduct.vue\"\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9TaW5nbGVQcm9kdWN0LnZ1ZS5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQTRGO0FBQzNCO0FBQ0w7OztBQUc1RDtBQUNBLENBQWdHO0FBQ2hHLGdCQUFnQix1R0FBVTtBQUMxQixFQUFFLG1GQUFNO0FBQ1IsRUFBRSxxRkFBTTtBQUNSLEVBQUUsOEZBQWU7QUFDakI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0EsSUFBSSxLQUFVLEVBQUUsWUFpQmY7QUFDRDtBQUNBLGlFQUFlIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvUHJvZHVjdHMvU2luZ2xlUHJvZHVjdC52dWU/MWYyMSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9IGZyb20gXCIuL1NpbmdsZVByb2R1Y3QudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTZhZTRkZmIyJlwiXG5pbXBvcnQgc2NyaXB0IGZyb20gXCIuL1NpbmdsZVByb2R1Y3QudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5leHBvcnQgKiBmcm9tIFwiLi9TaW5nbGVQcm9kdWN0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuXG5cbi8qIG5vcm1hbGl6ZSBjb21wb25lbnQgKi9cbmltcG9ydCBub3JtYWxpemVyIGZyb20gXCIhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL3J1bnRpbWUvY29tcG9uZW50Tm9ybWFsaXplci5qc1wiXG52YXIgY29tcG9uZW50ID0gbm9ybWFsaXplcihcbiAgc2NyaXB0LFxuICByZW5kZXIsXG4gIHN0YXRpY1JlbmRlckZucyxcbiAgZmFsc2UsXG4gIG51bGwsXG4gIG51bGwsXG4gIG51bGxcbiAgXG4pXG5cbi8qIGhvdCByZWxvYWQgKi9cbmlmIChtb2R1bGUuaG90KSB7XG4gIHZhciBhcGkgPSByZXF1aXJlKFwiL1VzZXJzL21hYy9EZXNrdG9wL29yZ2FuaWMtdmlsbGFnZS9ub2RlX21vZHVsZXMvdnVlLWhvdC1yZWxvYWQtYXBpL2Rpc3QvaW5kZXguanNcIilcbiAgYXBpLmluc3RhbGwocmVxdWlyZSgndnVlJykpXG4gIGlmIChhcGkuY29tcGF0aWJsZSkge1xuICAgIG1vZHVsZS5ob3QuYWNjZXB0KClcbiAgICBpZiAoIWFwaS5pc1JlY29yZGVkKCc2YWU0ZGZiMicpKSB7XG4gICAgICBhcGkuY3JlYXRlUmVjb3JkKCc2YWU0ZGZiMicsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH0gZWxzZSB7XG4gICAgICBhcGkucmVsb2FkKCc2YWU0ZGZiMicsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH1cbiAgICBtb2R1bGUuaG90LmFjY2VwdChcIi4vU2luZ2xlUHJvZHVjdC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NmFlNGRmYjImXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignNmFlNGRmYjInLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy9jb21wb25lbnRzL1Byb2R1Y3RzL1NpbmdsZVByb2R1Y3QudnVlXCJcbmV4cG9ydCBkZWZhdWx0IGNvbXBvbmVudC5leHBvcnRzIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/Products/SingleProduct.vue\n"); /***/ }), /***/ "./resources/js/pages/products.vue": /*!*****************************************!*\ !*** ./resources/js/pages/products.vue ***! \*****************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _products_vue_vue_type_template_id_60659466___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./products.vue?vue&type=template&id=60659466& */ \"./resources/js/pages/products.vue?vue&type=template&id=60659466&\");\n/* harmony import */ var _products_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./products.vue?vue&type=script&lang=js& */ \"./resources/js/pages/products.vue?vue&type=script&lang=js&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n;\nvar component = (0,_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _products_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _products_vue_vue_type_template_id_60659466___WEBPACK_IMPORTED_MODULE_0__.render,\n _products_vue_vue_type_template_id_60659466___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/pages/products.vue\"\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvcHJvZHVjdHMudnVlLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBdUY7QUFDM0I7QUFDTDs7O0FBR3ZEO0FBQ0EsQ0FBNkY7QUFDN0YsZ0JBQWdCLHVHQUFVO0FBQzFCLEVBQUUsOEVBQU07QUFDUixFQUFFLGdGQUFNO0FBQ1IsRUFBRSx5RkFBZTtBQUNqQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSxJQUFJLEtBQVUsRUFBRSxZQWlCZjtBQUNEO0FBQ0EsaUVBQWUiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcHJvZHVjdHMudnVlP2MwZmEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tIFwiLi9wcm9kdWN0cy52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NjA2NTk0NjYmXCJcbmltcG9ydCBzY3JpcHQgZnJvbSBcIi4vcHJvZHVjdHMudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5leHBvcnQgKiBmcm9tIFwiLi9wcm9kdWN0cy52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcblxuXG4vKiBub3JtYWxpemUgY29tcG9uZW50ICovXG5pbXBvcnQgbm9ybWFsaXplciBmcm9tIFwiIS4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanNcIlxudmFyIGNvbXBvbmVudCA9IG5vcm1hbGl6ZXIoXG4gIHNjcmlwdCxcbiAgcmVuZGVyLFxuICBzdGF0aWNSZW5kZXJGbnMsXG4gIGZhbHNlLFxuICBudWxsLFxuICBudWxsLFxuICBudWxsXG4gIFxuKVxuXG4vKiBob3QgcmVsb2FkICovXG5pZiAobW9kdWxlLmhvdCkge1xuICB2YXIgYXBpID0gcmVxdWlyZShcIi9Vc2Vycy9tYWMvRGVza3RvcC9vcmdhbmljLXZpbGxhZ2Uvbm9kZV9tb2R1bGVzL3Z1ZS1ob3QtcmVsb2FkLWFwaS9kaXN0L2luZGV4LmpzXCIpXG4gIGFwaS5pbnN0YWxsKHJlcXVpcmUoJ3Z1ZScpKVxuICBpZiAoYXBpLmNvbXBhdGlibGUpIHtcbiAgICBtb2R1bGUuaG90LmFjY2VwdCgpXG4gICAgaWYgKCFhcGkuaXNSZWNvcmRlZCgnNjA2NTk0NjYnKSkge1xuICAgICAgYXBpLmNyZWF0ZVJlY29yZCgnNjA2NTk0NjYnLCBjb21wb25lbnQub3B0aW9ucylcbiAgICB9IGVsc2Uge1xuICAgICAgYXBpLnJlbG9hZCgnNjA2NTk0NjYnLCBjb21wb25lbnQub3B0aW9ucylcbiAgICB9XG4gICAgbW9kdWxlLmhvdC5hY2NlcHQoXCIuL3Byb2R1Y3RzLnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD02MDY1OTQ2NiZcIiwgZnVuY3Rpb24gKCkge1xuICAgICAgYXBpLnJlcmVuZGVyKCc2MDY1OTQ2NicsIHtcbiAgICAgICAgcmVuZGVyOiByZW5kZXIsXG4gICAgICAgIHN0YXRpY1JlbmRlckZuczogc3RhdGljUmVuZGVyRm5zXG4gICAgICB9KVxuICAgIH0pXG4gIH1cbn1cbmNvbXBvbmVudC5vcHRpb25zLl9fZmlsZSA9IFwicmVzb3VyY2VzL2pzL3BhZ2VzL3Byb2R1Y3RzLnZ1ZVwiXG5leHBvcnQgZGVmYXVsdCBjb21wb25lbnQuZXhwb3J0cyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/pages/products.vue\n"); /***/ }), /***/ "./resources/js/components/Products/GammeProduct.vue?vue&type=script&lang=js&": /*!************************************************************************************!*\ !*** ./resources/js/components/Products/GammeProduct.vue?vue&type=script&lang=js& ***! \************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_GammeProduct_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GammeProduct.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/GammeProduct.vue?vue&type=script&lang=js&\");\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_GammeProduct_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9HYW1tZVByb2R1Y3QudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsIm1hcHBpbmdzIjoiOzs7OztBQUE0TixDQUFDLGlFQUFlLGlOQUFHLEVBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9HYW1tZVByb2R1Y3QudnVlPzBmMTkiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IG1vZCBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/Y2xvbmVkUnVsZVNldC01WzBdLnJ1bGVzWzBdLnVzZVswXSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL0dhbW1lUHJvZHVjdC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCI7IGV4cG9ydCBkZWZhdWx0IG1vZDsgZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9HYW1tZVByb2R1Y3QudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/Products/GammeProduct.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/components/Products/SingleProduct.vue?vue&type=script&lang=js&": /*!*************************************************************************************!*\ !*** ./resources/js/components/Products/SingleProduct.vue?vue&type=script&lang=js& ***! \*************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SingleProduct_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleProduct.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/SingleProduct.vue?vue&type=script&lang=js&\");\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SingleProduct_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9TaW5nbGVQcm9kdWN0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBNk4sQ0FBQyxpRUFBZSxrTkFBRyxFQUFDIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvUHJvZHVjdHMvU2luZ2xlUHJvZHVjdC52dWU/NGIzMyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9jbG9uZWRSdWxlU2V0LTVbMF0ucnVsZXNbMF0udXNlWzBdIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vU2luZ2xlUHJvZHVjdC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCI7IGV4cG9ydCBkZWZhdWx0IG1vZDsgZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P2Nsb25lZFJ1bGVTZXQtNVswXS5ydWxlc1swXS51c2VbMF0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9TaW5nbGVQcm9kdWN0LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/Products/SingleProduct.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/pages/products.vue?vue&type=script&lang=js&": /*!******************************************************************!*\ !*** ./resources/js/pages/products.vue?vue&type=script&lang=js& ***! \******************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_products_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./products.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/products.vue?vue&type=script&lang=js&\");\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_0_rules_0_use_0_node_modules_vue_loader_lib_index_js_vue_loader_options_products_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvcGFnZXMvcHJvZHVjdHMudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsIm1hcHBpbmdzIjoiOzs7OztBQUFrTixDQUFDLGlFQUFlLDZNQUFHLEVBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvcGFnZXMvcHJvZHVjdHMudnVlPzdjY2MiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IG1vZCBmcm9tIFwiLSEuLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/Y2xvbmVkUnVsZVNldC01WzBdLnJ1bGVzWzBdLnVzZVswXSEuLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL3Byb2R1Y3RzLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIjsgZXhwb3J0IGRlZmF1bHQgbW9kOyBleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/Y2xvbmVkUnVsZVNldC01WzBdLnJ1bGVzWzBdLnVzZVswXSEuLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL3Byb2R1Y3RzLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/pages/products.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/components/Products/GammeProduct.vue?vue&type=template&id=700f30d4&": /*!******************************************************************************************!*\ !*** ./resources/js/components/Products/GammeProduct.vue?vue&type=template&id=700f30d4& ***! \******************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GammeProduct_vue_vue_type_template_id_700f30d4___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GammeProduct_vue_vue_type_template_id_700f30d4___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GammeProduct_vue_vue_type_template_id_700f30d4___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GammeProduct.vue?vue&type=template&id=700f30d4& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/GammeProduct.vue?vue&type=template&id=700f30d4&"); /***/ }), /***/ "./resources/js/components/Products/SingleProduct.vue?vue&type=template&id=6ae4dfb2&": /*!*******************************************************************************************!*\ !*** ./resources/js/components/Products/SingleProduct.vue?vue&type=template&id=6ae4dfb2& ***! \*******************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SingleProduct_vue_vue_type_template_id_6ae4dfb2___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SingleProduct_vue_vue_type_template_id_6ae4dfb2___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SingleProduct_vue_vue_type_template_id_6ae4dfb2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SingleProduct.vue?vue&type=template&id=6ae4dfb2& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/SingleProduct.vue?vue&type=template&id=6ae4dfb2&"); /***/ }), /***/ "./resources/js/pages/products.vue?vue&type=template&id=60659466&": /*!************************************************************************!*\ !*** ./resources/js/pages/products.vue?vue&type=template&id=60659466& ***! \************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "render": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_products_vue_vue_type_template_id_60659466___WEBPACK_IMPORTED_MODULE_0__.render), /* harmony export */ "staticRenderFns": () => (/* reexport safe */ _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_products_vue_vue_type_template_id_60659466___WEBPACK_IMPORTED_MODULE_0__.staticRenderFns) /* harmony export */ }); /* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_products_vue_vue_type_template_id_60659466___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./products.vue?vue&type=template&id=60659466& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/products.vue?vue&type=template&id=60659466&"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/GammeProduct.vue?vue&type=template&id=700f30d4&": /*!*********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/GammeProduct.vue?vue&type=template&id=700f30d4& ***! \*********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n {\n staticClass:\n \"bg-white shadow-lg cursor-pointer rounded transform hover:scale-105 duration-300 ease-in-out h-full\",\n },\n [\n _c(\"div\", {}, [\n _c(\"img\", {\n staticClass: \"w-full h-32 md:h-64 mx-auto rounded-t\",\n attrs: { src: _vm.gamme.image, alt: _vm.gamme.name },\n }),\n ]),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"p-4\" }, [\n _c(\"h2\", { staticClass: \"text-base md:text-xl uppercase\" }, [\n _vm._v(\"\\n \" + _vm._s(_vm.gamme.name) + \"\\n \"),\n ]),\n _vm._v(\" \"),\n _c(\"p\", { staticClass: \"font-light text-gray-600 my-2\" }, [\n _c(\"span\", { staticClass: \"text-primary-gray\" }, [\n _vm._v(\n \"\\n \" +\n _vm._s(_vm.gamme.price) +\n \" MAD\\n \"\n ),\n ]),\n ]),\n _vm._v(\" \"),\n _vm.gamme.description\n ? _c(\"p\", [\n _vm._v(\n \"\\n \" + _vm._s(_vm.gamme.description) + \"\\n \"\n ),\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"flex flex-wrap text-sm mt-3\" }, [\n _c(\n \"ul\",\n _vm._l(_vm.gamme.products, function (product, index) {\n return _c(\n \"li\",\n { key: index, staticClass: \"flex items-center\" },\n [\n _c(\n \"div\",\n {\n staticClass:\n \"rounded-full pl-0 p-2 md:pl-2 fill-current text-green-700\",\n },\n [\n _c(\n \"svg\",\n {\n staticClass: \"w-3 h-3 md:w-6 md:h-6 align-middle\",\n attrs: {\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n },\n },\n [\n _c(\"path\", {\n attrs: { d: \"M22 11.08V12a10 10 0 1 1-5.93-9.14\" },\n }),\n _vm._v(\" \"),\n _c(\"polyline\", {\n attrs: { points: \"22 4 12 14.01 9 11.01\" },\n }),\n ]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\"span\", { staticClass: \"text-gray-700 text\" }, [\n _vm._v(_vm._s(product)),\n ]),\n ]\n )\n }),\n 0\n ),\n ]),\n _vm._v(\" \"),\n _c(\n \"button\",\n {\n staticClass:\n \"w-full text-sm md:text-base block bg-primary-default py-2 px-2 text-white text-center md:rounded shadow-lg uppercase font-light mt-6 hover:bg-primary hover:text-white duration-300 ease-in-out\",\n attrs: { type: \"button\" },\n on: {\n click: function ($event) {\n return _vm.addToCart(_vm.gamme)\n },\n },\n },\n [_vm._v(\"\\n Add to cart\\n \")]\n ),\n ]),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9HYW1tZVByb2R1Y3QudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTcwMGYzMGQ0Ji5qcyIsIm1hcHBpbmdzIjoiOzs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEtBQUs7QUFDTDtBQUNBLGtCQUFrQjtBQUNsQjtBQUNBO0FBQ0EsbUJBQW1CLDJDQUEyQztBQUM5RCxTQUFTO0FBQ1Q7QUFDQTtBQUNBLGtCQUFrQixvQkFBb0I7QUFDdEMsbUJBQW1CLCtDQUErQztBQUNsRTtBQUNBO0FBQ0E7QUFDQSxrQkFBa0IsOENBQThDO0FBQ2hFLHVCQUF1QixrQ0FBa0M7QUFDekQ7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxvQkFBb0IsNENBQTRDO0FBQ2hFO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxrQkFBa0IsOENBQThDO0FBQ2hFO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHFCQUFxQjtBQUNyQjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsMkJBQTJCO0FBQzNCLHlCQUF5QjtBQUN6QjtBQUNBO0FBQ0EscUNBQXFDLHlDQUF5QztBQUM5RSwyQkFBMkI7QUFDM0I7QUFDQTtBQUNBLHFDQUFxQyxpQ0FBaUM7QUFDdEUsMkJBQTJCO0FBQzNCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSwrQkFBK0IsbUNBQW1DO0FBQ2xFO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsYUFBYTtBQUNiO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHFCQUFxQixnQkFBZ0I7QUFDckM7QUFDQTtBQUNBO0FBQ0EsZUFBZTtBQUNmLGFBQWE7QUFDYixXQUFXO0FBQ1g7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL1Byb2R1Y3RzL0dhbW1lUHJvZHVjdC52dWU/ZDY2MCJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcmVuZGVyID0gZnVuY3Rpb24gKCkge1xuICB2YXIgX3ZtID0gdGhpc1xuICB2YXIgX2ggPSBfdm0uJGNyZWF0ZUVsZW1lbnRcbiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oXG4gIHJldHVybiBfYyhcbiAgICBcImRpdlwiLFxuICAgIHtcbiAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICBcImJnLXdoaXRlIHNoYWRvdy1sZyBjdXJzb3ItcG9pbnRlciByb3VuZGVkIHRyYW5zZm9ybSBob3ZlcjpzY2FsZS0xMDUgZHVyYXRpb24tMzAwIGVhc2UtaW4tb3V0IGgtZnVsbFwiLFxuICAgIH0sXG4gICAgW1xuICAgICAgX2MoXCJkaXZcIiwge30sIFtcbiAgICAgICAgX2MoXCJpbWdcIiwge1xuICAgICAgICAgIHN0YXRpY0NsYXNzOiBcInctZnVsbCBoLTMyIG1kOmgtNjQgbXgtYXV0byByb3VuZGVkLXRcIixcbiAgICAgICAgICBhdHRyczogeyBzcmM6IF92bS5nYW1tZS5pbWFnZSwgYWx0OiBfdm0uZ2FtbWUubmFtZSB9LFxuICAgICAgICB9KSxcbiAgICAgIF0pLFxuICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwicC00XCIgfSwgW1xuICAgICAgICBfYyhcImgyXCIsIHsgc3RhdGljQ2xhc3M6IFwidGV4dC1iYXNlIG1kOnRleHQteGwgdXBwZXJjYXNlXCIgfSwgW1xuICAgICAgICAgIF92bS5fdihcIlxcbiAgICAgICAgICAgIFwiICsgX3ZtLl9zKF92bS5nYW1tZS5uYW1lKSArIFwiXFxuICAgICAgICBcIiksXG4gICAgICAgIF0pLFxuICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICBfYyhcInBcIiwgeyBzdGF0aWNDbGFzczogXCJmb250LWxpZ2h0IHRleHQtZ3JheS02MDAgbXktMlwiIH0sIFtcbiAgICAgICAgICBfYyhcInNwYW5cIiwgeyBzdGF0aWNDbGFzczogXCJ0ZXh0LXByaW1hcnktZ3JheVwiIH0sIFtcbiAgICAgICAgICAgIF92bS5fdihcbiAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgXCIgK1xuICAgICAgICAgICAgICAgIF92bS5fcyhfdm0uZ2FtbWUucHJpY2UpICtcbiAgICAgICAgICAgICAgICBcIiBNQURcXG4gICAgICAgICAgICBcIlxuICAgICAgICAgICAgKSxcbiAgICAgICAgICBdKSxcbiAgICAgICAgXSksXG4gICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgIF92bS5nYW1tZS5kZXNjcmlwdGlvblxuICAgICAgICAgID8gX2MoXCJwXCIsIFtcbiAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgXCIgKyBfdm0uX3MoX3ZtLmdhbW1lLmRlc2NyaXB0aW9uKSArIFwiXFxuICAgICAgICBcIlxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgXSlcbiAgICAgICAgICA6IF92bS5fZSgpLFxuICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImZsZXggZmxleC13cmFwIHRleHQtc20gbXQtM1wiIH0sIFtcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwidWxcIixcbiAgICAgICAgICAgIF92bS5fbChfdm0uZ2FtbWUucHJvZHVjdHMsIGZ1bmN0aW9uIChwcm9kdWN0LCBpbmRleCkge1xuICAgICAgICAgICAgICByZXR1cm4gX2MoXG4gICAgICAgICAgICAgICAgXCJsaVwiLFxuICAgICAgICAgICAgICAgIHsga2V5OiBpbmRleCwgc3RhdGljQ2xhc3M6IFwiZmxleCBpdGVtcy1jZW50ZXJcIiB9LFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICAgICAgICAgICAgICBcInJvdW5kZWQtZnVsbCBwbC0wIHAtMiBtZDpwbC0yIGZpbGwtY3VycmVudCB0ZXh0LWdyZWVuLTcwMFwiLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICBcInN2Z1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJ3LTMgaC0zIG1kOnctNiBtZDpoLTYgYWxpZ24tbWlkZGxlXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IFwiMjRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IFwiMjRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3Qm94OiBcIjAgMCAyNCAyNFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGw6IFwibm9uZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogXCJjdXJyZW50Q29sb3JcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInN0cm9rZS13aWR0aFwiOiBcIjJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInN0cm9rZS1saW5lY2FwXCI6IFwicm91bmRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInN0cm9rZS1saW5lam9pblwiOiBcInJvdW5kXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInBhdGhcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7IGQ6IFwiTTIyIDExLjA4VjEyYTEwIDEwIDAgMSAxLTUuOTMtOS4xNFwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcInBvbHlsaW5lXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBwb2ludHM6IFwiMjIgNCAxMiAxNC4wMSA5IDExLjAxXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICBfYyhcInNwYW5cIiwgeyBzdGF0aWNDbGFzczogXCJ0ZXh0LWdyYXktNzAwIHRleHRcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgIF92bS5fdihfdm0uX3MocHJvZHVjdCkpLFxuICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIDBcbiAgICAgICAgICApLFxuICAgICAgICBdKSxcbiAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgX2MoXG4gICAgICAgICAgXCJidXR0b25cIixcbiAgICAgICAgICB7XG4gICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgXCJ3LWZ1bGwgdGV4dC1zbSBtZDp0ZXh0LWJhc2UgYmxvY2sgYmctcHJpbWFyeS1kZWZhdWx0IHB5LTIgcHgtMiB0ZXh0LXdoaXRlIHRleHQtY2VudGVyIG1kOnJvdW5kZWQgc2hhZG93LWxnIHVwcGVyY2FzZSBmb250LWxpZ2h0IG10LTYgaG92ZXI6YmctcHJpbWFyeSBob3Zlcjp0ZXh0LXdoaXRlIGR1cmF0aW9uLTMwMCBlYXNlLWluLW91dFwiLFxuICAgICAgICAgICAgYXR0cnM6IHsgdHlwZTogXCJidXR0b25cIiB9LFxuICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uICgkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gX3ZtLmFkZFRvQ2FydChfdm0uZ2FtbWUpXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgW192bS5fdihcIlxcbiAgICAgICAgICAgIEFkZCB0byBjYXJ0XFxuICAgICAgICBcIildXG4gICAgICAgICksXG4gICAgICBdKSxcbiAgICBdXG4gIClcbn1cbnZhciBzdGF0aWNSZW5kZXJGbnMgPSBbXVxucmVuZGVyLl93aXRoU3RyaXBwZWQgPSB0cnVlXG5cbmV4cG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/GammeProduct.vue?vue&type=template&id=700f30d4&\n"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/SingleProduct.vue?vue&type=template&id=6ae4dfb2&": /*!**********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/SingleProduct.vue?vue&type=template&id=6ae4dfb2& ***! \**********************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n {\n staticClass:\n \"transform duration-500 ease-in-out scale-100 hover:scale-105\",\n },\n [\n _c(\"img\", {\n staticClass:\n \"w-full h-32 md:h-64 object-cover object-center mx-auto md:rounded-lg shadow-md\",\n attrs: {\n src: _vm.product.image,\n alt: _vm.product.name,\n loading: \"lazy\",\n },\n }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"relative md:px-4 -mt-6 md:-mt-16\" }, [\n _c(\"div\", { staticClass: \"md:hidden\" }, [\n _c(\n \"button\",\n {\n staticClass:\n \"w-full text-sm md:text-base block bg-primary-default py-2 px-2 text-white text-center md:rounded shadow-lg uppercase font-light mt-6 hover:bg-primary hover:text-white duration-300 ease-in-out\",\n attrs: { type: \"button\" },\n on: {\n click: function ($event) {\n return _vm.addToCart(_vm.product)\n },\n },\n },\n [_vm._v(\"\\n Add to cart\\n \")]\n ),\n ]),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"bg-white p-2 md:p-6 lg:rounded-lg shadow-lg\" },\n [\n _c(\"h4\", { staticClass: \"md:text-xl uppercase leading-tight\" }, [\n _vm._v(\n \"\\n \" + _vm._s(_vm.product.name) + \"\\n \"\n ),\n ]),\n _vm._v(\" \"),\n _vm.product.description\n ? _c(\"div\", { staticClass: \"mt-1\" }, [\n _c(\"span\", { staticClass: \"text-sm text-gray-600\" }, [\n _vm._v(\n \"\\n \" +\n _vm._s(_vm.product.description) +\n \"\\n \"\n ),\n ]),\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass: \"mt-4 flex flex-row justify-between items-center\",\n },\n [\n _vm.product.price == 0\n ? _c(\n \"div\",\n { staticClass: \"flex w-1/2 md:w-auto items-center\" },\n [\n _c(\"div\", { staticClass: \"relative\" }, [\n _c(\n \"select\",\n {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.selectedProductPrice,\n expression: \"selectedProductPrice\",\n },\n ],\n staticClass:\n \"rounded border appearance-none border-gray-100 py-2 text-sm focus:outline-none pl-3 pr-3 md:pr-10 w-full md:w-auto\",\n on: {\n change: function ($event) {\n var $$selectedVal = Array.prototype.filter\n .call($event.target.options, function (o) {\n return o.selected\n })\n .map(function (o) {\n var val =\n \"_value\" in o ? o._value : o.value\n return val\n })\n _vm.selectedProductPrice = $event.target\n .multiple\n ? $$selectedVal\n : $$selectedVal[0]\n },\n },\n },\n _vm._l(_vm.product.prices, function (price, index) {\n return _c(\n \"option\",\n { key: index, domProps: { value: price } },\n [_vm._v(_vm._s(index))]\n )\n }),\n 0\n ),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n staticClass:\n \"absolute hidden md:flex right-0 top-0 h-full w-10 text-center text-gray-600 pointer-events-none items-center justify-center\",\n },\n [\n _c(\n \"svg\",\n {\n staticClass: \"w-4 h-4\",\n attrs: {\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"stroke-width\": \"2\",\n viewBox: \"0 0 24 24\",\n },\n },\n [_c(\"path\", { attrs: { d: \"M6 9l6 6 6-6\" } })]\n ),\n ]\n ),\n ]),\n ]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"text-primary-gray ml-2 md:ml-0 w-1/2 md:w-auto\",\n },\n [\n _vm.product.price != 0\n ? _c(\"span\", [_vm._v(_vm._s(_vm.product.price) + \" MAD\")])\n : _c(\"span\", [\n _vm._v(\n \"\\n \" +\n _vm._s(_vm.selectedProductPrice) +\n \" MAD\\n \"\n ),\n ]),\n ]\n ),\n ]\n ),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"hidden md:block\" }, [\n _c(\n \"button\",\n {\n staticClass:\n \"w-full text-sm md:text-base block bg-primary-default py-2 px-2 text-white text-center md:rounded shadow-lg uppercase font-light mt-6 hover:bg-primary hover:text-white duration-300 ease-in-out\",\n attrs: { type: \"button\" },\n on: {\n click: function ($event) {\n return _vm.addToCart(\n _vm.product,\n _vm.selectedProductPrice || \"\"\n )\n },\n },\n },\n [_vm._v(\"\\n Add to cart\\n \")]\n ),\n ]),\n ]\n ),\n ]),\n ]\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9Qcm9kdWN0cy9TaW5nbGVQcm9kdWN0LnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD02YWU0ZGZiMiYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFNBQVM7QUFDVCxPQUFPO0FBQ1A7QUFDQSxrQkFBa0IsaURBQWlEO0FBQ25FLG9CQUFvQiwwQkFBMEI7QUFDOUM7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHVCQUF1QixnQkFBZ0I7QUFDdkM7QUFDQTtBQUNBO0FBQ0EsaUJBQWlCO0FBQ2pCLGVBQWU7QUFDZixhQUFhO0FBQ2I7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsWUFBWSw0REFBNEQ7QUFDeEU7QUFDQSx1QkFBdUIsbURBQW1EO0FBQzFFO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLDRCQUE0QixxQkFBcUI7QUFDakQsK0JBQStCLHNDQUFzQztBQUNyRTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLGVBQWU7QUFDZjtBQUNBO0FBQ0E7QUFDQTtBQUNBLHdCQUF3QixrREFBa0Q7QUFDMUU7QUFDQSxvQ0FBb0MseUJBQXlCO0FBQzdEO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLGlDQUFpQztBQUNqQztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EscUNBQXFDO0FBQ3JDO0FBQ0E7QUFDQTtBQUNBO0FBQ0EscUNBQXFDO0FBQ3JDO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsaUNBQWlDO0FBQ2pDLCtCQUErQjtBQUMvQiw2QkFBNkI7QUFDN0I7QUFDQTtBQUNBO0FBQ0Esa0NBQWtDLHdCQUF3QixnQkFBZ0I7QUFDMUU7QUFDQTtBQUNBLDZCQUE2QjtBQUM3QjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsNkJBQTZCO0FBQzdCO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLG1DQUFtQztBQUNuQyxpQ0FBaUM7QUFDakMsOENBQThDLFNBQVMscUJBQXFCO0FBQzVFO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsbUJBQW1CO0FBQ25CO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHdCQUF3QixnQ0FBZ0M7QUFDeEQ7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLDJCQUEyQixnQkFBZ0I7QUFDM0M7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EscUJBQXFCO0FBQ3JCLG1CQUFtQjtBQUNuQixpQkFBaUI7QUFDakI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL1Byb2R1Y3RzL1NpbmdsZVByb2R1Y3QudnVlP2EwMTkiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIHJlbmRlciA9IGZ1bmN0aW9uICgpIHtcbiAgdmFyIF92bSA9IHRoaXNcbiAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50XG4gIHZhciBfYyA9IF92bS5fc2VsZi5fYyB8fCBfaFxuICByZXR1cm4gX2MoXG4gICAgXCJkaXZcIixcbiAgICB7XG4gICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgXCJ0cmFuc2Zvcm0gZHVyYXRpb24tNTAwIGVhc2UtaW4tb3V0IHNjYWxlLTEwMCBob3ZlcjpzY2FsZS0xMDVcIixcbiAgICB9LFxuICAgIFtcbiAgICAgIF9jKFwiaW1nXCIsIHtcbiAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgXCJ3LWZ1bGwgaC0zMiBtZDpoLTY0IG9iamVjdC1jb3ZlciBvYmplY3QtY2VudGVyIG14LWF1dG8gbWQ6cm91bmRlZC1sZyBzaGFkb3ctbWRcIixcbiAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICBzcmM6IF92bS5wcm9kdWN0LmltYWdlLFxuICAgICAgICAgIGFsdDogX3ZtLnByb2R1Y3QubmFtZSxcbiAgICAgICAgICBsb2FkaW5nOiBcImxhenlcIixcbiAgICAgICAgfSxcbiAgICAgIH0pLFxuICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwicmVsYXRpdmUgbWQ6cHgtNCAtbXQtNiBtZDotbXQtMTZcIiB9LCBbXG4gICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwibWQ6aGlkZGVuXCIgfSwgW1xuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJidXR0b25cIixcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICAgICAgXCJ3LWZ1bGwgdGV4dC1zbSBtZDp0ZXh0LWJhc2UgYmxvY2sgYmctcHJpbWFyeS1kZWZhdWx0IHB5LTIgcHgtMiB0ZXh0LXdoaXRlIHRleHQtY2VudGVyIG1kOnJvdW5kZWQgc2hhZG93LWxnIHVwcGVyY2FzZSBmb250LWxpZ2h0IG10LTYgaG92ZXI6YmctcHJpbWFyeSBob3Zlcjp0ZXh0LXdoaXRlIGR1cmF0aW9uLTMwMCBlYXNlLWluLW91dFwiLFxuICAgICAgICAgICAgICBhdHRyczogeyB0eXBlOiBcImJ1dHRvblwiIH0sXG4gICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uICgkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBfdm0uYWRkVG9DYXJ0KF92bS5wcm9kdWN0KVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW192bS5fdihcIlxcbiAgICAgICAgICAgICAgQWRkIHRvIGNhcnRcXG4gICAgICAgICAgXCIpXVxuICAgICAgICAgICksXG4gICAgICAgIF0pLFxuICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICBfYyhcbiAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwiYmctd2hpdGUgcC0yIG1kOnAtNiBsZzpyb3VuZGVkLWxnIHNoYWRvdy1sZ1wiIH0sXG4gICAgICAgICAgW1xuICAgICAgICAgICAgX2MoXCJoNFwiLCB7IHN0YXRpY0NsYXNzOiBcIm1kOnRleHQteGwgdXBwZXJjYXNlIGxlYWRpbmctdGlnaHRcIiB9LCBbXG4gICAgICAgICAgICAgIF92bS5fdihcbiAgICAgICAgICAgICAgICBcIlxcbiAgICAgICAgICAgICAgXCIgKyBfdm0uX3MoX3ZtLnByb2R1Y3QubmFtZSkgKyBcIlxcbiAgICAgICAgICBcIlxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgXSksXG4gICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgX3ZtLnByb2R1Y3QuZGVzY3JpcHRpb25cbiAgICAgICAgICAgICAgPyBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcIm10LTFcIiB9LCBbXG4gICAgICAgICAgICAgICAgICBfYyhcInNwYW5cIiwgeyBzdGF0aWNDbGFzczogXCJ0ZXh0LXNtIHRleHQtZ3JheS02MDBcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgIF92bS5fdihcbiAgICAgICAgICAgICAgICAgICAgICBcIlxcbiAgICAgICAgICAgICAgICBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3MoX3ZtLnByb2R1Y3QuZGVzY3JpcHRpb24pICtcbiAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgOiBfdm0uX2UoKSxcbiAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcIm10LTQgZmxleCBmbGV4LXJvdyBqdXN0aWZ5LWJldHdlZW4gaXRlbXMtY2VudGVyXCIsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICBfdm0ucHJvZHVjdC5wcmljZSA9PSAwXG4gICAgICAgICAgICAgICAgICA/IF9jKFxuICAgICAgICAgICAgICAgICAgICAgIFwiZGl2XCIsXG4gICAgICAgICAgICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJmbGV4IHctMS8yIG1kOnctYXV0byBpdGVtcy1jZW50ZXJcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwicmVsYXRpdmVcIiB9LCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwic2VsZWN0XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTogXCJtb2RlbFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJhd05hbWU6IFwidi1tb2RlbFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBfdm0uc2VsZWN0ZWRQcm9kdWN0UHJpY2UsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJzZWxlY3RlZFByb2R1Y3RQcmljZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInJvdW5kZWQgYm9yZGVyIGFwcGVhcmFuY2Utbm9uZSBib3JkZXItZ3JheS0xMDAgcHktMiB0ZXh0LXNtIGZvY3VzOm91dGxpbmUtbm9uZSBwbC0zIHByLTMgbWQ6cHItMTAgdy1mdWxsIG1kOnctYXV0b1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2hhbmdlOiBmdW5jdGlvbiAoJGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFyICQkc2VsZWN0ZWRWYWwgPSBBcnJheS5wcm90b3R5cGUuZmlsdGVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuY2FsbCgkZXZlbnQudGFyZ2V0Lm9wdGlvbnMsIGZ1bmN0aW9uIChvKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBvLnNlbGVjdGVkXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLm1hcChmdW5jdGlvbiAobykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgdmFsID1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIl92YWx1ZVwiIGluIG8gPyBvLl92YWx1ZSA6IG8udmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHZhbFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uc2VsZWN0ZWRQcm9kdWN0UHJpY2UgPSAkZXZlbnQudGFyZ2V0XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAubXVsdGlwbGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gJCRzZWxlY3RlZFZhbFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAkJHNlbGVjdGVkVmFsWzBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl9sKF92bS5wcm9kdWN0LnByaWNlcywgZnVuY3Rpb24gKHByaWNlLCBpbmRleCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIm9wdGlvblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IGtleTogaW5kZXgsIGRvbVByb3BzOiB7IHZhbHVlOiBwcmljZSB9IH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtfdm0uX3YoX3ZtLl9zKGluZGV4KSldXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgMFxuICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInNwYW5cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJhYnNvbHV0ZSBoaWRkZW4gbWQ6ZmxleCByaWdodC0wIHRvcC0wIGgtZnVsbCB3LTEwIHRleHQtY2VudGVyIHRleHQtZ3JheS02MDAgcG9pbnRlci1ldmVudHMtbm9uZSBpdGVtcy1jZW50ZXIganVzdGlmeS1jZW50ZXJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInN2Z1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwidy00IGgtNFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWxsOiBcIm5vbmVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogXCJjdXJyZW50Q29sb3JcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwic3Ryb2tlLWxpbmVjYXBcIjogXCJyb3VuZFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJzdHJva2UtbGluZWpvaW5cIjogXCJyb3VuZFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJzdHJva2Utd2lkdGhcIjogXCIyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3Qm94OiBcIjAgMCAyNCAyNFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtfYyhcInBhdGhcIiwgeyBhdHRyczogeyBkOiBcIk02IDlsNiA2IDYtNlwiIH0gfSldXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgOiBfdm0uX2UoKSxcbiAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICAgICAgICAgICAgXCJ0ZXh0LXByaW1hcnktZ3JheSBtbC0yIG1kOm1sLTAgdy0xLzIgbWQ6dy1hdXRvXCIsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICBfdm0ucHJvZHVjdC5wcmljZSAhPSAwXG4gICAgICAgICAgICAgICAgICAgICAgPyBfYyhcInNwYW5cIiwgW192bS5fdihfdm0uX3MoX3ZtLnByb2R1Y3QucHJpY2UpICsgXCIgTUFEXCIpXSlcbiAgICAgICAgICAgICAgICAgICAgICA6IF9jKFwic3BhblwiLCBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxcbiAgICAgICAgICAgICAgICAgICAgICBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3MoX3ZtLnNlbGVjdGVkUHJvZHVjdFByaWNlKSArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIiBNQURcXG4gICAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICBfYyhcImRpdlwiLCB7IHN0YXRpY0NsYXNzOiBcImhpZGRlbiBtZDpibG9ja1wiIH0sIFtcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJidXR0b25cIixcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgXCJ3LWZ1bGwgdGV4dC1zbSBtZDp0ZXh0LWJhc2UgYmxvY2sgYmctcHJpbWFyeS1kZWZhdWx0IHB5LTIgcHgtMiB0ZXh0LXdoaXRlIHRleHQtY2VudGVyIG1kOnJvdW5kZWQgc2hhZG93LWxnIHVwcGVyY2FzZSBmb250LWxpZ2h0IG10LTYgaG92ZXI6YmctcHJpbWFyeSBob3Zlcjp0ZXh0LXdoaXRlIGR1cmF0aW9uLTMwMCBlYXNlLWluLW91dFwiLFxuICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgdHlwZTogXCJidXR0b25cIiB9LFxuICAgICAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uICgkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3ZtLmFkZFRvQ2FydChcbiAgICAgICAgICAgICAgICAgICAgICAgIF92bS5wcm9kdWN0LFxuICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLnNlbGVjdGVkUHJvZHVjdFByaWNlIHx8IFwiXCJcbiAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgW192bS5fdihcIlxcbiAgICAgICAgICAgICAgICBBZGQgdG8gY2FydFxcbiAgICAgICAgICAgIFwiKV1cbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIF0pLFxuICAgICAgICAgIF1cbiAgICAgICAgKSxcbiAgICAgIF0pLFxuICAgIF1cbiAgKVxufVxudmFyIHN0YXRpY1JlbmRlckZucyA9IFtdXG5yZW5kZXIuX3dpdGhTdHJpcHBlZCA9IHRydWVcblxuZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/components/Products/SingleProduct.vue?vue&type=template&id=6ae4dfb2&\n"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/products.vue?vue&type=template&id=60659466&": /*!***************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/products.vue?vue&type=template&id=60659466& ***! \***************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": () => (/* binding */ render),\n/* harmony export */ \"staticRenderFns\": () => (/* binding */ staticRenderFns)\n/* harmony export */ });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", [\n _c(\n \"section\",\n { staticClass: \"flex flex-col justify-center p-2 md:p-8 mb-10 bg-white\" },\n [\n _vm._m(0),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"grid grid-cols-2 md:grid-cols-4 gap-2 md:gap-8 pt-8 max-w-7xl mx-auto\",\n },\n _vm._l(_vm.gammes, function (gamme) {\n return _c(\n \"div\",\n { key: gamme.id },\n [_c(\"gamme-product\", { attrs: { gamme: gamme } })],\n 1\n )\n }),\n 0\n ),\n _vm._v(\" \"),\n _vm._m(1),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass:\n \"grid grid-cols-2 md:grid-cols-4 gap-2 md:gap-8 pt-8 max-w-7xl mx-auto\",\n },\n _vm._l(_vm.products, function (product) {\n return _c(\n \"div\",\n { key: product.id },\n [_c(\"single-product\", { attrs: { product: product } })],\n 1\n )\n }),\n 0\n ),\n ]\n ),\n ])\n}\nvar staticRenderFns = [\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"nav\", { staticClass: \"w-full py-4\" }, [\n _c(\n \"div\",\n {\n staticClass:\n \"w-full container mx-auto flex flex-wrap items-center justify-between mt-0 py-3\",\n },\n [\n _c(\n \"h3\",\n {\n staticClass:\n \"uppercase tracking-wide no-underline hover:no-underline font-bold text-gray-700 text-xl \",\n attrs: { href: \"#\" },\n },\n [_vm._v(\"\\n Nos gammmes\\n \")]\n ),\n ]\n ),\n ])\n },\n function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"nav\", { staticClass: \"w-full py-4 mt-8\" }, [\n _c(\n \"div\",\n {\n staticClass:\n \"w-full container mx-auto flex flex-wrap items-center justify-between mt-0 py-3\",\n },\n [\n _c(\n \"h3\",\n {\n staticClass:\n \"uppercase tracking-wide no-underline hover:no-underline font-bold text-gray-700 text-xl \",\n attrs: { href: \"#\" },\n },\n [_vm._v(\"\\n Nos produits\\n \")]\n ),\n ]\n ),\n ])\n },\n]\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9yZXNvdXJjZXMvanMvcGFnZXMvcHJvZHVjdHMudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTYwNjU5NDY2Ji5qcyIsIm1hcHBpbmdzIjoiOzs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsUUFBUSx1RUFBdUU7QUFDL0U7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVc7QUFDWDtBQUNBO0FBQ0E7QUFDQSxnQkFBZ0IsZUFBZTtBQUMvQixxQ0FBcUMsU0FBUyxnQkFBZ0I7QUFDOUQ7QUFDQTtBQUNBLFdBQVc7QUFDWDtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVc7QUFDWDtBQUNBO0FBQ0E7QUFDQSxnQkFBZ0IsaUJBQWlCO0FBQ2pDLHNDQUFzQyxTQUFTLG9CQUFvQjtBQUNuRTtBQUNBO0FBQ0EsV0FBVztBQUNYO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1QkFBdUIsNEJBQTRCO0FBQ25EO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxTQUFTO0FBQ1Q7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsdUJBQXVCLFdBQVc7QUFDbEMsYUFBYTtBQUNiO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxHQUFHO0FBQ0g7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1QkFBdUIsaUNBQWlDO0FBQ3hEO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxTQUFTO0FBQ1Q7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsdUJBQXVCLFdBQVc7QUFDbEMsYUFBYTtBQUNiO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxHQUFHO0FBQ0g7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9wYWdlcy9wcm9kdWN0cy52dWU/NDg0ZiJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcmVuZGVyID0gZnVuY3Rpb24gKCkge1xuICB2YXIgX3ZtID0gdGhpc1xuICB2YXIgX2ggPSBfdm0uJGNyZWF0ZUVsZW1lbnRcbiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oXG4gIHJldHVybiBfYyhcImRpdlwiLCBbXG4gICAgX2MoXG4gICAgICBcInNlY3Rpb25cIixcbiAgICAgIHsgc3RhdGljQ2xhc3M6IFwiZmxleCBmbGV4LWNvbCBqdXN0aWZ5LWNlbnRlciBwLTIgbWQ6cC04IG1iLTEwIGJnLXdoaXRlXCIgfSxcbiAgICAgIFtcbiAgICAgICAgX3ZtLl9tKDApLFxuICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICBfYyhcbiAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICBcImdyaWQgZ3JpZC1jb2xzLTIgbWQ6Z3JpZC1jb2xzLTQgZ2FwLTIgbWQ6Z2FwLTggcHQtOCBtYXgtdy03eGwgbXgtYXV0b1wiLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgX3ZtLl9sKF92bS5nYW1tZXMsIGZ1bmN0aW9uIChnYW1tZSkge1xuICAgICAgICAgICAgcmV0dXJuIF9jKFxuICAgICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgICB7IGtleTogZ2FtbWUuaWQgfSxcbiAgICAgICAgICAgICAgW19jKFwiZ2FtbWUtcHJvZHVjdFwiLCB7IGF0dHJzOiB7IGdhbW1lOiBnYW1tZSB9IH0pXSxcbiAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgKVxuICAgICAgICAgIH0pLFxuICAgICAgICAgIDBcbiAgICAgICAgKSxcbiAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgX3ZtLl9tKDEpLFxuICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICBfYyhcbiAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICBcImdyaWQgZ3JpZC1jb2xzLTIgbWQ6Z3JpZC1jb2xzLTQgZ2FwLTIgbWQ6Z2FwLTggcHQtOCBtYXgtdy03eGwgbXgtYXV0b1wiLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgX3ZtLl9sKF92bS5wcm9kdWN0cywgZnVuY3Rpb24gKHByb2R1Y3QpIHtcbiAgICAgICAgICAgIHJldHVybiBfYyhcbiAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgeyBrZXk6IHByb2R1Y3QuaWQgfSxcbiAgICAgICAgICAgICAgW19jKFwic2luZ2xlLXByb2R1Y3RcIiwgeyBhdHRyczogeyBwcm9kdWN0OiBwcm9kdWN0IH0gfSldLFxuICAgICAgICAgICAgICAxXG4gICAgICAgICAgICApXG4gICAgICAgICAgfSksXG4gICAgICAgICAgMFxuICAgICAgICApLFxuICAgICAgXVxuICAgICksXG4gIF0pXG59XG52YXIgc3RhdGljUmVuZGVyRm5zID0gW1xuICBmdW5jdGlvbiAoKSB7XG4gICAgdmFyIF92bSA9IHRoaXNcbiAgICB2YXIgX2ggPSBfdm0uJGNyZWF0ZUVsZW1lbnRcbiAgICB2YXIgX2MgPSBfdm0uX3NlbGYuX2MgfHwgX2hcbiAgICByZXR1cm4gX2MoXCJuYXZcIiwgeyBzdGF0aWNDbGFzczogXCJ3LWZ1bGwgcHktNFwiIH0sIFtcbiAgICAgIF9jKFxuICAgICAgICBcImRpdlwiLFxuICAgICAgICB7XG4gICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICBcInctZnVsbCBjb250YWluZXIgbXgtYXV0byBmbGV4IGZsZXgtd3JhcCBpdGVtcy1jZW50ZXIganVzdGlmeS1iZXR3ZWVuIG10LTAgcHktM1wiLFxuICAgICAgICB9LFxuICAgICAgICBbXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImgzXCIsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgIFwidXBwZXJjYXNlIHRyYWNraW5nLXdpZGUgbm8tdW5kZXJsaW5lIGhvdmVyOm5vLXVuZGVybGluZSBmb250LWJvbGQgdGV4dC1ncmF5LTcwMCB0ZXh0LXhsIFwiLFxuICAgICAgICAgICAgICBhdHRyczogeyBocmVmOiBcIiNcIiB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtfdm0uX3YoXCJcXG4gICAgICAgICAgICAgICAgICBOb3MgZ2FtbW1lc1xcbiAgICAgICAgICAgICAgXCIpXVxuICAgICAgICAgICksXG4gICAgICAgIF1cbiAgICAgICksXG4gICAgXSlcbiAgfSxcbiAgZnVuY3Rpb24gKCkge1xuICAgIHZhciBfdm0gPSB0aGlzXG4gICAgdmFyIF9oID0gX3ZtLiRjcmVhdGVFbGVtZW50XG4gICAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oXG4gICAgcmV0dXJuIF9jKFwibmF2XCIsIHsgc3RhdGljQ2xhc3M6IFwidy1mdWxsIHB5LTQgbXQtOFwiIH0sIFtcbiAgICAgIF9jKFxuICAgICAgICBcImRpdlwiLFxuICAgICAgICB7XG4gICAgICAgICAgc3RhdGljQ2xhc3M6XG4gICAgICAgICAgICBcInctZnVsbCBjb250YWluZXIgbXgtYXV0byBmbGV4IGZsZXgtd3JhcCBpdGVtcy1jZW50ZXIganVzdGlmeS1iZXR3ZWVuIG10LTAgcHktM1wiLFxuICAgICAgICB9LFxuICAgICAgICBbXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImgzXCIsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIHN0YXRpY0NsYXNzOlxuICAgICAgICAgICAgICAgIFwidXBwZXJjYXNlIHRyYWNraW5nLXdpZGUgbm8tdW5kZXJsaW5lIGhvdmVyOm5vLXVuZGVybGluZSBmb250LWJvbGQgdGV4dC1ncmF5LTcwMCB0ZXh0LXhsIFwiLFxuICAgICAgICAgICAgICBhdHRyczogeyBocmVmOiBcIiNcIiB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtfdm0uX3YoXCJcXG4gICAgICAgICAgICAgICAgICBOb3MgcHJvZHVpdHNcXG4gICAgICAgICAgICAgIFwiKV1cbiAgICAgICAgICApLFxuICAgICAgICBdXG4gICAgICApLFxuICAgIF0pXG4gIH0sXG5dXG5yZW5kZXIuX3dpdGhTdHJpcHBlZCA9IHRydWVcblxuZXhwb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/pages/products.vue?vue&type=template&id=60659466&\n"); /***/ }) }]);
import { writeFileSync } from 'fs'; import { join, posix } from 'path'; import { fileURLToPath } from 'url'; import esbuild from 'esbuild'; /** * @typedef {import('esbuild').BuildOptions} BuildOptions */ const ssrFunctionRoute = '/api/__render'; /** * Validate the static web app configuration does not override the minimum config for the adapter to work correctly. * @param config {import('./types/swa').CustomStaticWebAppConfig} * */ function validateCustomConfig(config) { if (config) { if ('navigationFallback' in config) { throw new Error('customStaticWebAppConfig cannot override navigationFallback.'); } if (config.routes && config.routes.find((route) => route.route === '*')) { throw new Error(`customStaticWebAppConfig cannot override '*' route.`); } } } /** @type {import('.')} */ export default function ({ debug = false, customStaticWebAppConfig = {} } = {}) { return { name: 'adapter-azure-swa', async adapt(builder) { validateCustomConfig(customStaticWebAppConfig); if (!customStaticWebAppConfig.routes) { customStaticWebAppConfig.routes = []; } /** @type {import('./types/swa').StaticWebAppConfig} */ const swaConfig = { ...customStaticWebAppConfig, routes: [ ...customStaticWebAppConfig.routes, { route: '*', methods: ['POST', 'PUT', 'DELETE'], rewrite: ssrFunctionRoute }, { route: `/${builder.appDir}/*`, headers: { 'cache-control': 'public, immutable, max-age=31536000' } } ], navigationFallback: { rewrite: ssrFunctionRoute } }; const tmp = builder.getBuildDirectory('azure-tmp'); const publish = 'build'; const staticDir = join(publish, 'static'); const apiDir = join('api', 'render'); const entry = `${tmp}/entry.js`; builder.log.minor(`Publishing to "${publish}"`); builder.rimraf(tmp); builder.rimraf(publish); builder.rimraf(apiDir); builder.log.minor('Prerendering static pages...'); const prerendered = await builder.prerender({ dest: staticDir }); if (!prerendered.paths.includes('/')) { // Azure SWA requires an index.html to be present // If the root was not pre-rendered, add a placeholder index.html // Route all requests for the index to the SSR function writeFileSync(`${staticDir}/index.html`, ''); swaConfig.routes.push( { route: '/index.html', rewrite: ssrFunctionRoute }, { route: '/', rewrite: ssrFunctionRoute } ); } const files = fileURLToPath(new URL('./files', import.meta.url)); builder.log.minor('Generating serverless function...'); // use posix because of https://github.com/sveltejs/kit/pull/3200 const relativePath = posix.relative(tmp, builder.getServerDirectory()); builder.copy(join(files, 'entry.js'), entry, { replace: { APP: `${relativePath}/app.js`, MANIFEST: './manifest.js', DEBUG: debug.toString() } }); writeFileSync( `${tmp}/manifest.js`, `export const manifest = ${builder.generateManifest({ relativePath })};\n` ); writeFileSync(`${publish}/staticwebapp.config.json`, JSON.stringify(swaConfig)); builder.copy(join(files, 'api'), apiDir); /** @type {BuildOptions} */ const default_options = { entryPoints: [entry], outfile: join(apiDir, 'index.js'), bundle: true, platform: 'node', target: 'node12' }; await esbuild.build(default_options); builder.log.minor('Copying assets...'); builder.writeStatic(staticDir); builder.writeClient(staticDir); } }; }
import gql from 'graphql-tag'; export const GET_GEOJSON = gql` query geojson($countryList: [String]!) { geojson(countryList: $countryList) { features regions { name emoji visited } budget } } `;
describe("lib/init/watcher", () => { test.todo(""); });
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import LoginRoute from '../routes/DashboardRoute'; describe('Login Route', () => { it('renders without crashing', () => { const div = document.createElement('root'); ReactDOM.render( <BrowserRouter> <LoginRoute /> </BrowserRouter>, div ); ReactDOM.unmountComponentAtNode(div); }); });
// ==UserScript== // @name Stack Exchange CV Request Generator // @namespace https://github.com/SO-Close-Vote-Reviewers/ // @version 1.6.11 // @description This script generates formatted close vote requests and sends them to a specified chat room. // @author @TinyGiant // @contributor @rene @Tunaki @Makyen @paulroub @machavity // @include /^https?:\/\/([^/.]+\.)*(stackexchange.com|stackoverflow.com|serverfault.com|superuser.com|askubuntu.com|stackapps.com|mathoverflow.net)\/(?:q(uestions)?\/\d+)/ // @exclude *://chat.stackoverflow.com/* // @exclude *://chat.stackexchange.com/* // @exclude *://chat.*.stackexchange.com/* // @exclude *://api.*.stackexchange.com/* // @exclude *://data.stackexchange.com/* // @require https://code.jquery.com/jquery-2.1.4.min.js // @require https://github.com/SO-Close-Vote-Reviewers/UserScripts/raw/master/gm4-polyfill.js // @connect github.com // @connect raw.githubusercontent.com // @connect chat.stackoverflow.com // @connect chat.stackexchange.com // @connect chat.meta.stackexchange.com // @grant GM_xmlhttpRequest // @grant GM.xmlHttpRequest // ==/UserScript== /* globals $, StackExchange */ if(typeof StackExchange === "undefined") var StackExchange = unsafeWindow.StackExchange; (function(){ var isclosed = $(".close-question-link").data("isclosed"); var isdeleted = $(".question .post-menu .deleted-post").length > 0; var alreadyPostedRequest = false; function QuickSubstitutions(_substitutions) { this.substitutions = _substitutions; } QuickSubstitutions.prototype.get = function(r) { //Substitute space separated words in the input text which // match the properties above with the property's value. var a = r.split(' '); a.forEach(function(v, i) { a[i] = this.substitutions.hasOwnProperty(v) && v !== 'get' ? this.substitutions[v] : v; }, this); return a.join(' '); }; function SiteConfig(_name, _siteRegExp, _offTopicCloseReasons, _quickSubstitutions, _defaultRoom) { this.name = _name; this.siteRegExp = _siteRegExp; this.offTopicCloseReasons = _offTopicCloseReasons; //this.quickSubstitutions = _quickSubstitutions; this.quickSubstitutions = new QuickSubstitutions(_quickSubstitutions); this.defaultRoom = _defaultRoom; } //The quick substitutions are changed in the text a user types for their request reason. // They are usually a single character, but can be more. As a single character, they need // to stay away from anything the user is going to type as a single character. In particular, // that means they need to not be "a". var defaultQuickSubstitutions = { 't': 'Too Broad', 'u': 'Unclear', 'p': 'Primarily Opinion Based', 'o': 'Opinion Based', 'd': 'Duplicate', }; const defaultOffTopicCloseReasons = { 1: 'Blatantly off-topic', //In close-flag dialog, but not the close-vote dialog on most sites, but is in the CV dialog on some sites. 2: 'Belongs on another site', 3: 'custom', }; const defaultOffTopicCloseReasonsWithoutOtherSite = Object.assign({}, defaultOffTopicCloseReasons); delete defaultOffTopicCloseReasonsWithoutOtherSite[2]; var configsForSites = []; //Stack Overflow configsForSites.push(new SiteConfig('Stack Overflow', /^stackoverflow.com$/, Object.assign({ 4: 'General Computing', 7: 'Server / Networking', 11: 'Typo or Cannot Reproduce', 13: 'No MCVE', 16: 'Request for Off-Site Resource', }, defaultOffTopicCloseReasons), Object.assign({ 'm': 'No MCVE', 'r': 'Typo or Cannot Reproduce', 'g': 'General Computing', 's': 'Super User', 'f': 'Server Fault', 'l': 'Request for Off-Site Resource', //'c': '(not enough code to duplicate)', //'b': '(no desired behavior)', //'e': '(no specific problem or error)', }, defaultQuickSubstitutions), 'https://chat.stackoverflow.com/rooms/41570/so-close-vote-reviewers')); //Meta Stack Exchange configsForSites.push(new SiteConfig('Meta Stack Exchange', /^meta.stackexchange.com$/, Object.assign({ 5: 'Does not seek input or discussion', 6: 'Cannot be reproduced', 8: 'Not about Stack Exchange Network software', 11: 'Specific to a single site', }, defaultOffTopicCloseReasonsWithoutOtherSite), Object.assign({ 'i': 'Does not seek input or discussion', 'r': 'Cannot be reproduced', 'n': 'Not about Stack Exchange Network software', 's': 'Specific to a single site', }, defaultQuickSubstitutions), 'https://chat.meta.stackexchange.com/rooms/89/tavern-on-the-meta')); //Code Review Stack Exchange configsForSites.push(new SiteConfig('Code Review Stack Exchange', /^codereview.stackexchange.com$/, Object.assign({ 20: 'Lacks concrete context', 23: 'Code not implemented or not working as intended', 25: 'Authorship of code', }, defaultOffTopicCloseReasons), Object.assign({ 'c': 'Lacks concrete context', 'i': 'Code not implemented or not working as intended', 's': 'Authorship of code', }, defaultQuickSubstitutions), 'https://chat.stackexchange.com/rooms/85306/se-code-review-close-questions-room')); //Mathematics Stack Exchange configsForSites.push(new SiteConfig('Mathematics Stack Exchange', /^math.stackexchange.com$/, Object.assign({ 6: 'Not about mathematics', 8: 'Seeking personal advice', 9: 'Missing context or other details', }, defaultOffTopicCloseReasons), Object.assign({ 'b': 'Blatantly off-topic', 'n': 'Not about mathematics', 'c': 'Missing context or other details', 's': 'Seeking personal advice', }, defaultQuickSubstitutions), 'https://chat.stackexchange.com/rooms/2165/crude')); //Default site configuration var currentSiteConfig = new SiteConfig('Default', /./, defaultOffTopicCloseReasons, defaultQuickSubstitutions, 'https://chat.stackexchange.com/rooms/11254/the-stack-exchange-network'); //If we are not trying to be compatible with IE, then could use .find here. configsForSites.some(function(siteConfig) { if (siteConfig.siteRegExp.test(window.location.hostname)) { currentSiteConfig = siteConfig; return true; } // else return false; }); var reasons = currentSiteConfig.quickSubstitutions; var offTopicCloseReasons = currentSiteConfig.offTopicCloseReasons; var URL = "https://github.com/SO-Close-Vote-Reviewers/UserScripts/raw/master/SECloseVoteRequestGenerator.user.js"; var notifyint = 0; function notify(m,t) { var timeout; (function(i){ if(StackExchange && StackExchange.notify && typeof StackExchange.notify.show === 'function') { var div = $('#notify-' + (i - 1)); if(div.length) { clearTimeout(timeout); if(i > 1)StackExchange.notify.close(i-1); } StackExchange.notify.show(m,i); if(t) timeout = setTimeout(function(){ StackExchange.notify.close(i); },t); } else { alert('SOCVR Request Generator: ' + m); } })(++notifyint); } function isVersionNewer(proposed, current) { proposed = proposed.split("."); current = current.split("."); while (proposed.length < current.length) proposed.push("0"); while (current.length < proposed.length) current.push("0"); for (var i = 0; i < proposed.length; i++) { if (parseInt(proposed[i]) > parseInt(current[i])) { return true; } if (parseInt(proposed[i]) < parseInt(current[i])) { return false; } } return false; } function checkUpdates(force) { GM.xmlHttpRequest({ method: 'GET', url: 'https://raw.githubusercontent.com/SO-Close-Vote-Reviewers/UserScripts/master/SECloseVoteRequestGenerator.version', onload: function(response) { var VERSION = response.responseText.trim(); if(isVersionNewer(VERSION,GM.info.script.version)) { var lastAcknowledgedVersion = getStorage('LastAcknowledgedVersion'); if(lastAcknowledgedVersion != VERSION || force) { if(confirm('A new version of The Close Vote Request Generator is available, would you like to install it now?')) window.location.href = URL; else setStorage('LastAcknowledgedVersion',VERSION); } } else if(force) notify('No new version available'); } }); } function hideMenu() { closeTarget(); $('div', CVRGUI.items.send).hide(); CVRGUI.list.hide(); } function sendRequest(request) { RoomList.getRoom(function(room){ function displayRequestText (requestText, message) { message += '' + '<br/><br/>' + '<span>' + ' Request text ' + ' (<a href="#" class="SECVR-copy-to-clipboard" title="Click here to copy the request text to the clipboard.">copy</a>):' + '</span>' + '<br/>' + '<textarea class="SECVR-request-text" style="width: 95%;">' + requestText + '</textarea>'+ '<br/>' + ''; notify(message); // Select the notification for Ctrl + C copy. var requestTextInput = $('textarea.SECVR-request-text').last(); requestTextInput.select(); // Bind a click handler on the "copy" anchor to copy the text manually. var copyButton = $('a.SECVR-copy-to-clipboard'); var thisNotification = copyButton.closest('[id^="notify-"]').filter(function() { //Make sure we're putting it on the notification, not the notify-container return /notify-\d+/.test(this.id); }).last().on('click', function(event) { //Prevent the cv-pls GUI from closing for clicks within the notification. event.stopPropagation(); event.preventDefault(); }); copyButton.last().on('click', function(event) { event.stopPropagation(); event.preventDefault(); requestTextInput.select(); var success = document.execCommand('copy'); if(!success) { alert('Failed to copy the request text! Please copy it manually.'); //Restore the selection and focus. (not normally needed, but doesn't hurt) requestTextInput.select(); requestTextInput.focus(); //The GUI is left open here because we don't have a way to determine if the user is actually // done with the request. } else { //Copy succeeded. Send another notification to cause the original notification to be dismissed. // This really should be handled by creating a function which dismisses the current notification. notify('',10); hideMenu(); } }); } function handleError(message, error) { var seeConsole = '<br/>See the console for more details.'; console.error(message, error); displayRequestText(request, message + seeConsole); } GM.xmlHttpRequest({ method: 'GET', url: room.url, onload: function(response) { var matches = response.responseText.match(/hidden" value="([\dabcdef]{32})/); var fkey = matches ? matches[1] : ''; if(!fkey) { handleError('responseText did not contain fkey. Is the room URL valid?', response); return false; } // else GM.xmlHttpRequest({ method: 'POST', url: room.host + '/chats/' + room.id + '/messages/new', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, data: 'text=' + encodeURIComponent(request) + '&fkey=' + fkey, onload: function(newMessageResponse) { if(newMessageResponse.status != 200) { var responseText = newMessageResponse.responseText; var shownResponseText = newMessageResponse.responseText.length < 100 ? ' ' + newMessageResponse.responseText : ''; handleError('Failed sending chat request message.' + shownResponseText, newMessageResponse); } else { alreadyPostedRequest = true; notify('Close vote request sent.',1000); hideMenu(); } }, onerror: function(error) { handleError('Got an error when sending chat request message.', error); } }); }, onerror: function(response) { handleError('Failed to retrieve fkey from chat. (Error Code: ' + response.status + ')', response); } }); }); } function appendInfo() { if(getStorage('appendInfo') === "1") return true; return false; } if (isdeleted) { return; } var RoomList = {}; RoomList.rooms = {}; RoomList.save = function() { setStorage('rooms',JSON.stringify(this.rooms)); console.log(getStorage('rooms')); }; RoomList.each = function(callback) { for(var i in this.rooms) callback(this.rooms[i],i); return this; }; RoomList.search = function(key,value) { var success; this.each(function(room){ if(room[key] === value) success = room; }); return success; }; RoomList.count = function() { return Object.keys(this.rooms).length; }; RoomList.name = function(name) { return this.search('name',name); }; RoomList.index = function(name) { return this.search('index',name); }; RoomList.id = function(name) { return this.search('id',name); }; RoomList.url = function(url) { return this.search('url',RoomList.useHttpsForStackExchangeAndTrim(url));}; RoomList.insert = function(room) { if(!RoomList.url(room.url)) { this.rooms[room.url] = room; this.save(); } return this.rooms[room.url]; }; RoomList.getRoom = function(callback,url) { var rooms = this.rooms; if(!url) url = getCurrentRoom(); if(typeof callback !== 'function') callback = function() {}; url = RoomList.useHttpsForStackExchangeAndTrim(url); var m = /^(https:\/\/chat\.(meta\.)?stack(overflow|exchange)\.com)\/rooms\/(\d+)\/.*$/.exec(url); if(m) { var room = RoomList.url(url); if(room) { callback(room); return false; } GM.xmlHttpRequest({ method: 'GET', url: url, onload: function(response){ var name = /.*<title>(.*)\ \|.*/.exec(response.response); if(!name) { notify('Failed finding room name. Is it a valid room?'); callback(false); } else { callback(RoomList.insert({ host: m[1], url: url, id: m[4], name: name[1] })); } }, onerror: function(error){ console.log('error:', error); notify('Failed retrieving room name. Is it a valid room?'); callback(false); } }); } else { console.log(url); notify('The chat room URL you supplied is invalid.'); callback(false); } }; RoomList.setRoom = function(url) { var exists; url = RoomList.useHttpsForStackExchangeAndTrim(url); if(this.url(url)) exists = true; RoomList.getRoom(function(room) { if(room && getCurrentRoom() !== room.url) { setCurrentRoom(room.url); CVRGUI.roomList.find('[type="checkbox"]').prop('checked',false); if(!exists) CVRGUI.roomList.append($('<dd><label><input type="radio" name="target-room" value="' + room.url + '" checked>' + room.name + '</label><form><button>-</button></form></dd>')); else CVRGUI.roomList.find('[value="' + room.url + '"]').prop('checked', true); closeTarget(); } },url); }; RoomList.init = function() { if(!getStorage('rooms')) RoomList.getRoom(); else RoomList.rooms = JSON.parse(getStorage('rooms')); }; RoomList.useHttpsForStackExchangeAndTrim = function(url) { //Change a SE/SO URL to HTTPS instead of HTTP. return /(https?:\/\/chat\.(meta\.)?stack(overflow|exchange)\.com)/.test(url) ? url.replace(/http:/ig, 'https:').replace(/(https:\/\/chat\.(?:meta\.)stack(?:exchange|overflow)\.com\/rooms\/\d+)\b.*$/ig, '$1/') : url; }; RoomList.changeToHttpsForStackExchange = function() { //Just change the JSON (pass it through parse/stringify to remove any duplicates): // The RegExp is probably overly restrictive, as the rooms should never already contain non-stackexchange/stackoverflow URLs, as such are considered invalid. try { setStorage('rooms', JSON.stringify(JSON.parse(getStorage('rooms').replace(/http:\/\/chat\.(meta\.)?stack(exchange|overflow)\.com/ig, 'https://chat.$1stack$2.com').replace(/(https:\/\/chat\.(?:meta\.)?stack(?:exchange|overflow)\.com\/rooms\/\d+)\b[^"]*/ig, '$1/')))); } catch (e) { //No storage or Invalid JSON in 'rooms' setStorage('rooms', JSON.stringify({})); } var roomStorage = getCurrentRoom(); roomStorage = roomStorage ? roomStorage : ''; setCurrentRoom(RoomList.useHttpsForStackExchangeAndTrim(roomStorage)); }; //Wrap local storage access so that we avoid collisions with other scripts var prefix = "SECloseVoteRequestGenerator_"; //prefix to avoid clashes in localStorage function getStorage(key) { return localStorage[prefix + key]; } function setStorage(key, val) { return (localStorage[prefix + key] = val); } function getCurrentRoom(){ return getStorage(base + 'room'); } function setCurrentRoom(url){ return setStorage(base + 'room', url); } function createMarkdownLinkWithText(text, url) { //Create a Markdown link with URL: [foo](//example.com/bar) return '[' + escapeForMarkdown(text).trim() + '\u202D](' + url + ')'; } function escapeForMarkdown(text) { //Quote characters and combinations of characters which might be interpreted as Chat Markdown formatting. //Looks like [\[\]`*_] show up as themselves when quoted at any time. //"---" does not stop working if \ quoted only at the start. Quoting in the middle of the --- shows the \. //Interspersing zero-width spaces works, but it does put the zero-width spaces (\u200B) in the HTML. //Interspersing zero-width non-breaking spaces works, but it does put the zero-width non-breaking spaces (\uFEFF) in the HTML. return text.replace(/([[\]*`_])/g, '\\$1').replace(/(---)/g, '-\uFEFF-\uFEFF-'); } var base = 'https://' + window.location.hostname; if(!getCurrentRoom()) { setCurrentRoom(currentSiteConfig.defaultRoom); } //Change the localStorage to HTTPS prior to initializing the RoomList. RoomList.changeToHttpsForStackExchange(); RoomList.init(); var CVRGUI = {}; CVRGUI.wrp = $('<span class="cvrgui" />'); CVRGUI.button = $('<a href="javascript:void(0)" class="cv-button">' + (isclosed?'reopen-pls':'cv-pls') + '</a>'); CVRGUI.list = $('<dl class="cv-list" />'); CVRGUI.css = $('<style>.post-menu > span > a,.post-menu .post-menu-container > span > a{padding:0 3px 2px 3px;color:#888}.post-menu > span > a:hover,.post-menu .post-menu-container > span > a:hover{color:#444;text-decoration:none} .cvrgui { display:inline-block } .cvrgui * { box-sizing: border-box } .cv-list { display: none; margin:0; z-index:1; position:absolute; white-space:nowrap; border:1px solid #ccc;border-radius:3px;background:#FFF;box-shadow:0px 5px 10px -5px rgb(0,0,0,0.5) } .cv-list dd, .cv-list dl { margin: 0; padding: 0; } .cv-list dl dd { padding: 0px; margin: 0; width: 100%; display: table } .cv-list dl label, .cv-list dl form { display: table-cell } .cv-list dl button { margin: 2.5px 0; } .cv-list dl label { width: 100%; padding: 0px; } .cv-list * { vertical-align: middle; } .cv-list dd > div { padding: 0px 15px; padding-bottom: 15px; } .cv-list dd > div > form { white-space: nowrap } .cv-list dd > div > form > input { display: inline-block; vertical-align: middle } .cv-list dd > div > form > input[type="text"] { width: 300px; margin-right: 5px; } .cv-list hr { margin:0 15px; border: 0px; border-bottom: 1px solid #ccc; } .cv-list a { display: block; padding: 10px 15px;} .cv-list label { display: inline-block; padding: 10px 15px;} .cv-list label:last-child { padding-left: 0; }</style>'); CVRGUI.target = (function(){ var link = $('<a href="javascript:void(0)"></a>').on('click',function(){ var div = $('div', $(this).parent()); $('div', CVRGUI.list).not(div).hide(); if(div.is(':hidden')) { div.show().find('[type="text"]').focus(); $(this).html('Set target room:'); } else closeTarget(); }); RoomList.getRoom(function(room){ link.html(room.name); }); return link; })(); function closeTarget() { RoomList.getRoom(function(room){ $(CVRGUI.target).html(room.name); }); $('div', CVRGUI.items.room).hide(); $('div', CVRGUI.items.send).show(); $('input[type="text"]', CVRGUI.items.send).focus(); } CVRGUI.items = { send: $('<dd><a href="javascript:void(0)">Send request</a><div style="display:none"><form><input type="text" placeholder="Close reason"/><input type="submit" value="Send"></form></div><hr></dd>'), room: (function(){ var item = $('<dd></dd>'); var list = $('<dl>'); var div = $('<div style="display:none"/>'); RoomList.getRoom(function(r){ RoomList.each(function(room){ list.append($('<dd><label><input type="radio" name="target-room" value="' + room.url + '"' + (r.url === room.url ? ' checked' : '' ) + '>' + room.name + '</label><form><button>-</button></form></form></dd>')); }); list.on('change',function(e){ RoomList.setRoom(e.target.value); }); list.on('submit', function(e){ e.preventDefault(); var room = RoomList.url($('[name="target-room"]', $(e.target).parent()).val()); if(room) { if(RoomList.count() === 1) { notify('Cannot remove last room'); return false; } if($('[checked]', $(e.target).parent()).length) { RoomList.setRoom($('input[name="target-room"]:not([value="' + room.url + '"])', list).val()); } delete RoomList.rooms[room.url]; RoomList.save(); $(e.target).parent().remove(); } }); div.append(list); div.append($('<form><input type="text"/><input type="submit" value="Set"></form>').on('submit',function(e) { e.preventDefault(); var response = $('input[type="text"]', this).val(); if(!response) return false; RoomList.setRoom(response); })); item.append(CVRGUI.target); item.append(div); item.append($('<hr>')); CVRGUI.roomList = list; }); return item; })(), update: $('<dd><a href="javascript:void(0)">Check for updates</a> </dd>') }; for(var item in CVRGUI.items) { CVRGUI.list.append(CVRGUI.items[item]); } CVRGUI.wrp.append(CVRGUI.button); CVRGUI.wrp.append(CVRGUI.list); CVRGUI.wrp.append(CVRGUI.css); var postMenuContainer = $('#question .post-menu .post-menu-container'); if (!postMenuContainer.length) { postMenuContainer = $('#question .post-menu'); } postMenuContainer.append(CVRGUI.wrp); $('.question').on('click', '[type="submit"], .new-post-activity a', function(e){ var self = this; var menuCheck = setInterval(function(){ var questionPostMenuContainer = $('#question .post-menu .post-menu-container'); if (!questionPostMenuContainer.length) { questionPostMenuContainer = $('#question .post-menu'); } if(questionPostMenuContainer.length === 1) { clearInterval(menuCheck); questionPostMenuContainer.append(CVRGUI.wrp); } }); }); $(document).on('click',function(){ if(CVRGUI.list.is(':visible')) hideMenu(); }); $('a:not(.cvrgui a)').on('click',function(){ if(CVRGUI.list.is(':visible')) hideMenu(); }); $('.cv-list *:not(a)').on('click',function(e){ e.stopPropagation(); }); CVRGUI.button.on('click', function(e){ e.stopPropagation(); $('div', CVRGUI.list).hide(); CVRGUI.list.toggle(); }); CVRGUI.items.send.on('click',function(e){ e.stopPropagation(); if($('div', CVRGUI.items.send).is(':hidden')) closeTarget(); else $('div', CVRGUI.items.send).hide(); }); $('form', CVRGUI.items.send).on('submit',function(e){ e.preventDefault(); var reason = $('input[type="text"]', CVRGUI.items.send).val(); if(!reason) return false; reason = reasons.get(reason); var title = createMarkdownLinkWithText($('#question-header h1 a').text().replace(/^\s+|\s+$/gm, ''), base + $('#question .js-share-link').attr('href').replace(/(\/\d+)\/\d+$/, '$1')); try { var user = $('.question .post-signature.owner:not([align="right"],#popup-close-question .post-signature) .user-details > *:not(.d-none):not(.-flair), .question .post-signature:not([align="right"],#popup-close-question .post-signature) .user-details .community-wiki').first().text().trim().match(/[^\n]+/)[0].trim(); } catch (e) { user = ''; } var userLink = $('#question .owner:not(#popup-close-question .owner) a'); if(userLink.length && user) user = createMarkdownLinkWithText(user, base + userLink.attr('href')); var time = $('#question .owner:not(#popup-close-question .owner) .relativetime'); time = time.length ? ' ' + time.attr('title') : ''; var tag = $('#question a.post-tag').first().text(); //huh, sponsored tags have images =/ and off-topic tag like C++ are URL encoded -> get the text only // for duplicate cv-pls, when the dupe is selected, the mini-review messes up the selector for username and date: it is removed with :not var request = '[tag:'+ (isclosed?'reopen-pls':'cv-pls') +'] [tag:' + tag + '] ' + reason + ' ' + title + ' - ' + user + time; if(alreadyPostedRequest && !window.confirm('You\'ve already sent a request about this question. Do you want to send another?')) { return; } // else sendRequest(request); }); CVRGUI.items.update.on('click',function(e){ e.stopPropagation(); hideMenu(); checkUpdates(true); }); var combo; $(document).keydown(function(e) { if(e.ctrlKey && e.shiftKey && e.which === 65) { e.preventDefault(); combo = true; } }); $(document).keyup(function(e) { if(combo) { combo = false; if($('div', CVRGUI.items.send).is(':hidden')) { CVRGUI.list.show(); $('div', CVRGUI.items.send).show().find('input[type="text"]').focus(); } else { hideMenu(); } } }); setTimeout(checkUpdates); $('.close-question-link').click(function(){ var cpcheck = setInterval(function(){ var popup = $('#popup-close-question'), selected, discard; if(!popup.length) return; clearInterval(cpcheck); var remainingvotes = $('.remaining-votes', popup); if($('input', remainingvotes).length) return false; if (currentSiteConfig.name === 'Default') { var offTopicInputs = $('.close-as-off-topic-pane input', popup); offTopicInputs.each(function() { var value = this.value; var thisParent = this.parentNode; if (!offTopicCloseReasons[value]) { offTopicCloseReasons[value] = ''; if (thisParent.textContent.indexOf('scope defined in the help center') > -1) { offTopicCloseReasons[value] = 'Not in scope for ' + window.location.hostname.replace(/\.(com|net)$/, ''); } offTopicCloseReasons[value] = offTopicCloseReasons[value].replace(/\s+/, ' ').trim(); if (!offTopicCloseReasons[value]) { $('b,i', thisParent).each(function() { offTopicCloseReasons[value] += ' ' + this.innerText; }); } offTopicCloseReasons[value] = offTopicCloseReasons[value].replace(/\s+/, ' ').trim(); var parentText = thisParent.innerText; if (!offTopicCloseReasons[value]) { var matches = parentText.match(/"([^"]+)"/g); if(matches) { offTopicCloseReasons[value] = matches.join(' '); } } offTopicCloseReasons[value] = offTopicCloseReasons[value].replace(/\s+/, ' ').trim(); if (!offTopicCloseReasons[value]) { console.log('Found Off-topic type:', value, ', but did not deduce the reason: parentText:', parentText, ':: thisParent:', thisParent); offTopicCloseReasons[value] = 'Off Topic'; } } }); } var checkbox = $('<label><input type="checkbox" style="vertical-align:middle;margin-left: 5px;">Send cv-pls request</label>'); $('.remaining-votes', popup).append(checkbox); $('[name="close-reason"]').change(function(){ discard = this.checked && (selected = $(this)) && $('input[type="text"]', CVRGUI.items.send).val(this.value.replace(/(?!^)([A-Z])/g, ' $1')); }); $('[name="close-as-off-topic-reason"]').change(function(){ discard = this.checked && (selected = $(this)) && $('input[type="text"]', CVRGUI.items.send).val(offTopicCloseReasons[this.value]); }); $('.popup-submit').click(function() { if(selected.val() === '3') { var parent = selected.parent().parent(); $('input[type="text"]', CVRGUI.items.send).val($('textarea',parent).val().replace($('[type="hidden"]',parent).val(),'')); } discard= checkbox.find('input').is(':checked') && $('form', CVRGUI.items.send).submit(); }); }, 100); }); })();
/* eslint-env browser */ /* eslint-disable no-undef, no-use-before-define, new-cap */ const URL = window.URL || window.webkitURL; module.exports = (content, workerConstructor, workerOptions, url) => { try { try { let blob; try { // New API blob = new window.Blob([content]); } catch (e) { // BlobBuilder = Deprecated, but widely implemented const BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder; blob = new BlobBuilder(); blob.append(content); blob = blob.getBlob(); } const objectURL = URL.createObjectURL(blob); const worker = new window[workerConstructor](objectURL, workerOptions); URL.revokeObjectURL(objectURL); return worker; } catch (e) { return new window[workerConstructor]( `data:application/javascript,${encodeURIComponent(content)}`, workerOptions ); } } catch (e) { if (!url) { throw Error('Inline worker is not supported'); } return new window[workerConstructor](url, workerOptions); } };
import React, { Component } from 'react' import Layout from '../../components/Layout/index'; import { FormControl, FormLabel, Input, FormErrorMessage, Flex, Text, Button } from "@chakra-ui/core"; import { Formik, Field } from "formik"; import { toast } from 'react-toastify'; import { Link, Redirect } from "react-router-dom"; import { postData, setCredentials, checkCredentials } from '../../components/Auth/index'; import { serverURL } from '../../server-config' export class Register extends Component { constructor(props) { super(props); this.state = { redirect: null, }; } componentDidMount() { if (checkCredentials()) { this.setState({ redirect: "/" }); } } validateName(value) { let error; if (!value) { error = "😢 Please enter your name."; } return error; } validateEmail(value) { let error; if (!value) { error = "💔 Oops! We need your email."; } return error; } validatePassword(password) { let error; if (!password) { error = "🐱 Shhhh! You need to have a password."; } else if (password.length < 8) { error = "🦆 Toooooooo short! It has to be atleast 8 characters long."; } return error; } render() { if (this.state.redirect) { return <Redirect to={this.state.redirect} />; } return ( <Layout title="Register" > <Flex align="center" justifyContent="center" alignItems="center" flexDirection="column" mt={5} padding={15} > <Text fontSize="6xl">Register</Text> <Formik initialValues={{ name: "", email: "", password: "" }} onSubmit={(values, actions) => { postData(serverURL + "/user", values).then((data) => { if (data.error) { toast.error("🤐 Oops! " + data.error, { position: "top-right", autoClose: 5000, hideProgressBar: false, closeOnClick: true, pauseOnHover: true, draggable: true, progress: undefined, }); actions.setSubmitting(false); } else { toast.dark("✅ Registered...", { position: "top-right", autoClose: 5000, hideProgressBar: false, closeOnClick: true, pauseOnHover: true, draggable: true, progress: undefined, }); setCredentials(data.token); localStorage.setItem('user', JSON.stringify(data.user)); actions.setSubmitting(false); this.setState({ redirect: "/dashboard" }); console.log(data); } }); }} > {(props) => ( <form onSubmit={props.handleSubmit}> <Field name="name" validate={this.validateName}> {({ field, form }) => ( <FormControl isInvalid={form.errors.name && form.touched.name} > <FormLabel htmlFor="name">Name</FormLabel> <Input {...field} id="name" placeholder="eg. Elon Musk" type="text" autoComplete="name" /> <FormErrorMessage>{form.errors.name}</FormErrorMessage> </FormControl> )} </Field> <Field name="email" validate={this.validateEmail}> {({ field, form }) => ( <FormControl isInvalid={form.errors.email && form.touched.email} > <FormLabel htmlFor="email">Email</FormLabel> <Input {...field} id="email" placeholder="eg. hello@tesla.com" type="email" autoComplete="email" /> <FormErrorMessage>{form.errors.email}</FormErrorMessage> </FormControl> )} </Field> <Field name="password" validate={this.validatePassword}> {({ field, form }) => ( <FormControl isInvalid={form.errors.password && form.touched.password} > <FormLabel htmlFor="password">Password</FormLabel> <Input {...field} id="password" placeholder="eg. ISecretleyLoveNasa@28" type="password" autoComplete="new-password" /> <FormErrorMessage> {form.errors.password} </FormErrorMessage> </FormControl> )} </Field> <Button style={{ marginTop: "2rem", width: "100%" }} isLoading={props.isSubmitting} type="submit" > Sign Up </Button> <Link to="/login"> <Button style={{ marginTop: "1rem", width: "100%" }}> <span role="img" aria-label="Peeking above."> 🙄 </span>{" "} Want to login instead? </Button> </Link> </form> )} </Formik> </Flex> </Layout> ); } } export default Register;
import Vector from 'utils/math/Vector'; const hasPosition = function hasPositionFunc(state) { const pos = new Vector(); function setPosition({ x: xp, y: yp }) { pos.x = xp; pos.y = yp; return pos.clone(); } function setX(xp) { state.setPosition(new Vector(xp, pos.y)); return xp; } function setY(yp) { state.setPosition(new Vector(pos.x, yp)); return yp; } function getPosition() { return pos.clone(); } function getX() { return pos.x; } function getY() { return pos.y; } return { // props // methods setPosition, setX, setY, getPosition, getX, getY, }; }; export default hasPosition;
/** * Content is a formal component important content roots but is not itself being rendered. */ export default "*CONTENT";
import EmberObject from '@ember/object'; import { run } from '@ember/runloop'; import { module, test } from 'qunit'; import DS from 'ember-data'; import { setupTest } from 'ember-qunit'; import testInDebug from '@ember-data/unpublished-test-infra/test-support/test-in-debug'; module('unit/store/peekRecord - Store peekRecord', function (hooks) { setupTest(hooks); hooks.beforeEach(function () { this.owner.register('model:person', DS.Model.extend()); }); test('peekRecord should return the record if it is in the store ', function (assert) { let store = this.owner.lookup('service:store'); run(() => { let person = store.push({ data: { type: 'person', id: '1', }, }); assert.equal( person, store.peekRecord('person', 1), 'peekRecord only return the corresponding record in the store' ); }); }); test('peekRecord should return null if the record is not in the store ', function (assert) { let store = this.owner.lookup('service:store'); run(() => { assert.equal( null, store.peekRecord('person', 1), 'peekRecord returns null if the corresponding record is not in the store' ); }); }); testInDebug('peekRecord should assert if not passed both model name and id', function (assert) { let store = this.owner.lookup('service:store'); run(() => { assert.expectAssertion(() => { store.peekRecord('my-id'); }, /Expected id to be a string or number, received undefined/); }); }); testInDebug('peekRecord should assert if passed a model class instead of model name', function (assert) { let store = this.owner.lookup('service:store'); run(() => { assert.expectAssertion(() => { let modelClass = EmberObject.extend(); store.peekRecord(modelClass, 'id'); }, /Passing classes to store methods has been removed/); }); }); });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _VCheckbox = require("./VCheckbox"); Object.keys(_VCheckbox).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _VCheckbox[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function get() { return _VCheckbox[key]; } }); }); //# sourceMappingURL=index.js.map
(function ($) { // // Search var $searchWrap = $('.search-form-wrap'), isSearchAnim = false, searchAnimDuration = 200; var startSearchAnim = function () { isSearchAnim = true; }; var stopSearchAnim = function (callback) { setTimeout(function () { isSearchAnim = false; callback && callback(); }, searchAnimDuration); }; $('.nav-item-search').on('click', function () { if (isSearchAnim) return; startSearchAnim(); $searchWrap.addClass('on'); stopSearchAnim(function () { $('.local-search-input').focus(); }); }); $(document).mouseup(function (e) { var _con = $('.local-search'); if (!_con.is(e.target) && _con.has(e.target).length === 0) { $searchWrap.removeClass('on'); } }); // // 移动设备侦测 var isMobile = { Android: function () { return navigator.userAgent.match(/Android/i); }, BlackBerry: function () { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function () { return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function () { return navigator.userAgent.match(/Opera Mini/i); }, Windows: function () { return navigator.userAgent.match(/IEMobile/i); }, any: function () { return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()); } }; // // 建议在移动端不初始化,其实 /search.xml 文件还挺大的, if ($('.local-search').size()) { $.getScript('/js/search.js', function () { searchFunc("/search.xml", 'local-search-input', 'local-search-result'); }); } // // Share $('body').on('click', function () { $('.article-share-box.on').removeClass('on'); }).on('click', '.article-share-link', function (e) { e.stopPropagation(); var $this = $(this), url = $this.attr('data-url'), encodedUrl = encodeURIComponent(url), id = 'article-share-box-' + $this.attr('data-id'), offset = $this.offset(); if ($('#' + id).length) { var box = $('#' + id); if (box.hasClass('on')) { box.removeClass('on'); return; } } else { var html = [ '<div id="' + id + '" class="article-share-box">', '<input class="article-share-input" value="' + url + '">', '<div class="article-share-links">', '<a href="https://twitter.com/intent/tweet?url=' + encodedUrl + '" class="article-share-twitter" target="_blank" title="Twitter"></a>', '<a href="https://www.facebook.com/sharer.php?u=' + encodedUrl + '" class="article-share-facebook" target="_blank" title="Facebook"></a>', '<a href="http://pinterest.com/pin/create/button/?url=' + encodedUrl + '" class="article-share-pinterest" target="_blank" title="Pinterest"></a>', '<a href="https://plus.google.com/share?url=' + encodedUrl + '" class="article-share-google" target="_blank" title="Google+"></a>', '</div>', '</div>' ].join(''); var box = $(html); $('body').append(box); } $('.article-share-box.on').hide(); box.css({ top: offset.top + 25, left: offset.left }).addClass('on'); }).on('click', '.article-share-box', function (e) { e.stopPropagation(); }).on('click', '.article-share-box-input', function () { $(this).select(); }).on('click', '.article-share-box-link', function (e) { e.preventDefault(); e.stopPropagation(); window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450'); }); // // fancybox if ($.fancybox) { $('[data-fancybox]').fancybox({ protect: true }); } // // lazyload $("img.lazy").lazyload({ effect: "fadeIn" }); // // justifiedGallery $('#gallery').justifiedGallery({ rowHeight: 200, margins: 5 }); // scroll down $(document).ready(function ($) { $('.anchor').click(function (e) { e.preventDefault(); $('main').animate({ scrollTop: $('.cover').height() }, 'smooth'); }); }); // To top (function ($) { // When to show the scroll link // higher number = scroll link appears further down the page var upperLimit = 1000; // Our scroll link element var scrollElem = $('#totop'); // Scroll to top speed var scrollSpeed = 1600; // Show and hide the scroll to top link based on scroll position scrollElem.hide(); $('.content').scroll(function () { var scrollTop = $('.content').scrollTop(); if (scrollTop > upperLimit) { $(scrollElem).stop().fadeTo(300, 1); // fade back in } else { $(scrollElem).stop().fadeTo(300, 0); // fade out } }); // Scroll to top animation on click $(scrollElem).click(function () { $('.content').animate({ scrollTop: 0 }, scrollSpeed); return false; }); })(jQuery); // Mobile nav var $content = $('.content'), $sidebar = $('.sidebar'); $('.navbar-toggle').on('click', function () { $content.toggleClass('on'); $sidebar.toggleClass('on'); }); $($content).on('click', function () { $content.removeClass('on'); $sidebar.removeClass('on'); }); if (window.matchMedia("(min-width: 768px)").matches) { $content.addClass('on'); $sidebar.addClass('on'); } // reward $('#reward-btn').on('click', function () { $('#mask').fadeIn(100) $('#reward').fadeIn(100) }); $('#reward .close, #mask').on('click', function () { $('#mask').fadeOut(100) $('#reward').fadeOut(100) }) })(jQuery);
/*! Copyright 2014 Amazon Digital Services, Inc. All rights reserved. */ UserExperienceServiceProxy=(function(){var a=function(){var c="https://ags-ext.amazon.com/services/ux/v1/";var b=1;this["getMyFriendProfiles"]=function(f){console.log("UserExperienceServiceProxy: getMyFriendProfiles");var d=$.Deferred();var e=[{type:"MyFriendProfiles",version:b,playerIds:f}];e=JSON.stringify(e);NativeTransport.serviceCall({target:"UserExperiencesService",method:"getQueryData",httpMethod:"POST",allowCallInGuestMode:false,endPoint:c,httpPayload:e}).always(function(h,g){console.log("UserExperienceServiceProxy: getMyFriendProfiles complete: "+JSON.stringify(h));d.resolve(h,g)});return d.promise()};this["getTimePlayedXPCheckpoints"]=function(e){console.log("UserExperienceServiceProxy: getTimePlayedXPCheckpoints");var d=$.Deferred();var f=[{type:"TimePlayedXpCheckpoints",version:b,packageName:e}];f=JSON.stringify(f);NativeTransport.serviceCall({target:"UserExperiencesService",method:"getQueryData",httpMethod:"POST",allowCallInGuestMode:true,endPoint:c,httpPayload:f}).always(function(h,g){console.log("UserExperienceServiceProxy: getTimePlayedXPCheckpoints complete: "+JSON.stringify(h));d.resolve(h,g)});return d.promise()}};return a}());console.log("UserExperienceServiceProxy loaded.");
describe('Data Access Groups (DAGs)', () => { before(() => { cy.set_user_type('standard') cy.mysql_db('projects/pristine') }) describe('User Interface', () => { before(() => { cy.set_user_type('admin') cy.visit_version({page: 'DataAccessGroups/index.php', params: 'pid=1'}) }) it('Should have the ability to create Data Access Groups', () => { cy.get('input#new_group').type('Test Group') cy.get('button#new_group_button').click() cy.get('div#dags_table').should(($div) => { expect($div).to.contain('Test Group') }) }) it('Should have the ability to delete Data Access Groups', () => { cy.get('tr').contains('Test Group').parent().parent().parent().within(($tr) => { cy.get('img').click() }) cy.get('button').contains('Delete').click() cy.get('div#dags_table').should(($div) => { expect($div).not.to.contain('Test Group') }) }) it('Should have the ability to provide a unique Data Access Group name in the data export CSV or label', () => { cy.visit_version({page: 'DataAccessGroups/index.php', params: 'pid=13'}) cy.get('input#new_group').type('t1') cy.get('button#new_group_button').click() // cy.get('input#new_group').type('Gr2') // cy.get('button#new_group_button').click() cy.visit_version({page: 'DataExport/index.php', params: 'pid=13'}) cy.get('button').contains('Export Data').click() cy.get('form#exportFormatForm').should(($form) => { expect($form).to.contain('Export Data Access Group name for each record (if record is in a group)?') }) }) }) describe('Data Restriction Abilities', () => { before(() => { cy.add_users_to_project(['test_user', 'test_user2'], '13') cy.add_users_to_data_access_groups(['Group 1', 'Group 2'], ['test_user', 'test_user2'], '13') }) it('Should have the ability to restrict a user to the data they entered', () => { }) it('Should have the ability to restrict a user to the data of the same Data Access Group', () => { cy.set_user_type('standard') cy.visit_version({page: 'index.php', params: 'pid=13'}) cy.get('a').contains("Add / Edit Records").click() cy.get('button').contains('Add new record').click().then(() => { cy.get('button#submit-btn-saverecord').first().click() cy.set_user_type('standard2') cy.visit_version({page: 'index.php', params: 'pid=13'}) cy.get('a').contains("Add / Edit Records").click() cy.get('button').contains('Add new record').click() cy.get('button#submit-btn-saverecord').click() cy.get('a').contains('Record Status Dashboard').click() cy.get('table#record_status_table').should(($table) => { expect($table).not.to.contain('3-1') expect($table).to.contain('4-1') }) cy.set_user_type('standard') cy.visit_version({page: 'index.php', params: 'pid=13'}) cy.get('a').contains('Record Status Dashboard').click() cy.get('table#record_status_table').should(($table) => { expect($table).not.to.contain('4-1') expect($table).to.contain('3-1') }) cy.set_user_type('admin') cy.visit_version({page: 'index.php', params: 'pid=13'}) cy.get('a').contains('Record Status Dashboard').click() cy.get('table#record_status_table').should(($table) => { expect($table).to.contain('4-1') expect($table).to.contain('3-1') }) }) }) }) })
module.exports = require('../construct/_index.ts').default
angular.module('juiceShop').factory('ComplaintService', ['$http', function ($http) { 'use strict' var host = '/api/Complaints' function save (params) { return $http.post(host + '/', params) } return { save: save } }])
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getEH
/*! * JSRT JavaScript Library 0.2.1 * lico.atom@gmail.com * * Copyright 2008, 2014 Atom Union, Inc. * Released under the MIT license * * Date: 2014年10月13日 */ $import("js.util.Arrays", "BootstrapClassLoader"); Class .forName({ name: "class js.text.DateFormatSymbols extends Object", /** * Construct a DateFormatSymbols object by loading format data from * resources for the default locale. This constructor can only * construct instances for the locales supported by the Java runtime * environment, not for those supported by installed * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider} * implementations. For full locale coverage, use the * {@link #getInstance(Locale) getInstance} method. * * @see #getInstance() * @exception java.util.MissingResourceException * if the resources for the default locale cannot be * found or cannot be loaded. */ "public DateFormatSymbols": function() { this.initializeData(); }, /** * Era strings. For example: "AD" and "BC". An array of 2 strings, * indexed by <code>Calendar.BC</code> and * <code>Calendar.AD</code>. * * @serial */ "eras": null, /** * Month strings. For example: "January", "February", etc. An array * of 13 strings (some calendars have 13 months), indexed by * <code>Calendar.JANUARY</code>, <code>Calendar.FEBRUARY</code>, * etc. * * @serial */ "months": null, /** * Short month strings. For example: "Jan", "Feb", etc. An array of * 13 strings (some calendars have 13 months), indexed by * <code>Calendar.JANUARY</code>, <code>Calendar.FEBRUARY</code>, * etc. * * @serial */ "shortMonths": null, /** * Weekday strings. For example: "Sunday", "Monday", etc. An array * of 8 strings, indexed by <code>Calendar.SUNDAY</code>, * <code>Calendar.MONDAY</code>, etc. The element * <code>weekdays[0]</code> is ignored. * * @serial */ "weekdays": null, /** * Short weekday strings. For example: "Sun", "Mon", etc. An array * of 8 strings, indexed by <code>Calendar.SUNDAY</code>, * <code>Calendar.MONDAY</code>, etc. The element * <code>shortWeekdays[0]</code> is ignored. * * @serial */ "shortWeekdays": null, /** * AM and PM strings. For example: "AM" and "PM". An array of 2 * strings, indexed by <code>Calendar.AM</code> and * <code>Calendar.PM</code>. * * @serial */ "ampms": null, /** * Unlocalized date-time pattern characters. For example: 'y', 'd', * etc. All locales use the same these unlocalized pattern * characters. */ "static final patternChars": "GyMdkHmsSEDFwWahKzZYuX", "static final oppositePatternChars": "AbBcCefgiIjJlLnNoOpPqQrRtTUvVx", "static final PATTERN_ERA": 0, // G "static final PATTERN_YEAR": 1, // y "static final PATTERN_MONTH": 2, // M "static final PATTERN_DAY_OF_MONTH": 3, // d "static final PATTERN_HOUR_OF_DAY1": 4, // k "static final PATTERN_HOUR_OF_DAY0": 5, // H "static final PATTERN_MINUTE": 6, // m "static final PATTERN_SECOND": 7, // s "static final PATTERN_MILLISECOND": 8, // S "static final PATTERN_DAY_OF_WEEK": 9, // E "static final PATTERN_DAY_OF_YEAR": 10, // D "static final PATTERN_DAY_OF_WEEK_IN_MONTH": 11, // F "static final PATTERN_WEEK_OF_YEAR": 12, // w "static final PATTERN_WEEK_OF_MONTH": 13, // W "static final PATTERN_AM_PM": 14, // a "static final PATTERN_HOUR1": 15, // h "static final PATTERN_HOUR0": 16, // K "static final PATTERN_ZONE_NAME": 17, // z "static final PATTERN_ZONE_VALUE": 18, // Z "static final PATTERN_WEEK_YEAR": 19, // Y "static final PATTERN_ISO_DAY_OF_WEEK": 20, // u "static final PATTERN_ISO_ZONE": 21, // X /** * Localized date-time pattern characters. For example, a locale may * wish to use 'u' rather than 'y' to represent years in its date * format pattern strings. This string must be exactly 18 characters * long, with the index of the characters described by * <code>DateFormat.ERA_FIELD</code>, * <code>DateFormat.YEAR_FIELD</code>, etc. Thus, if the string * were "Xz...", then localized patterns would use 'X' for era and * 'z' for year. * * @serial */ "localPatternChars": null, /** * Gets the <code>DateFormatSymbols</code> instance for the * default locale. This method provides access to * <code>DateFormatSymbols</code> instances for locales supported * by the Java runtime itself as well as for those supported by * installed * {@link java.text.spi.DateFormatSymbolsProvider DateFormatSymbolsProvider} * implementations. * * @return a <code>DateFormatSymbols</code> instance. */ "public static final getInstance": function() { return new js.text.DateFormatSymbols(); }, /** * Gets era strings. For example: "AD" and "BC". * * @return the era strings. */ "public getEras": function() { return js.util.Arrays.copyOf(this.eras, this.eras.length); }, /** * Sets era strings. For example: "AD" and "BC". * * @param newEras * the new era strings. */ "public void setEras": function(newEras) { this.eras = js.util.Arrays.copyOf(newEras, newEras.length); }, /** * Gets month strings. For example: "January", "February", etc. * * @return the month strings. */ "public getMonths": function() { return js.util.Arrays.copyOf(this.months, this.months.length); }, /** * Sets month strings. For example: "January", "February", etc. * * @param newMonths * the new month strings. */ "public void setMonths": function(newMonths) { this.months = js.util.Arrays .copyOf(newMonths, newMonths.length); }, /** * Gets short month strings. For example: "Jan", "Feb", etc. * * @return the short month strings. */ "public getShortMonths": function() { return js.util.Arrays.copyOf(this.shortMonths, this.shortMonths.length); }, /** * Sets short month strings. For example: "Jan", "Feb", etc. * * @param newShortMonths * the new short month strings. */ "public void setShortMonths": function(newShortMonths) { this.shortMonths = js.util.Arrays.copyOf(newShortMonths, newShortMonths.length); }, /** * Gets weekday strings. For example: "Sunday", "Monday", etc. * * @return the weekday strings. Use <code>Calendar.SUNDAY</code>, * <code>Calendar.MONDAY</code>, etc. to index the result * array. */ "public getWeekdays": function() { return js.util.Arrays.copyOf(this.weekdays, this.weekdays.length); }, /** * Sets weekday strings. For example: "Sunday", "Monday", etc. * * @param newWeekdays * the new weekday strings. The array should be indexed * by <code>Calendar.SUNDAY</code>, * <code>Calendar.MONDAY</code>, etc. */ "public void setWeekdays": function(newWeekdays) { this.weekdays = js.util.Arrays.copyOf(newWeekdays, newWeekdays.length); }, /** * Gets short weekday strings. For example: "Sun", "Mon", etc. * * @return the short weekday strings. Use * <code>Calendar.SUNDAY</code>, * <code>Calendar.MONDAY</code>, etc. to index the result * array. */ "public getShortWeekdays": function() { return js.util.Arrays.copyOf(this.shortWeekdays, this.shortWeekdays.length); }, /** * Sets short weekday strings. For example: "Sun", "Mon", etc. * * @param newShortWeekdays * the new short weekday strings. The array should be * indexed by <code>Calendar.SUNDAY</code>, * <code>Calendar.MONDAY</code>, etc. */ "public void setShortWeekdays": function(newShortWeekdays) { this.shortWeekdays = js.util.Arrays.copyOf(newShortWeekdays, newShortWeekdays.length); }, /** * Gets ampm strings. For example: "AM" and "PM". * * @return the ampm strings. */ "public getAmPmStrings": function() { return js.util.Arrays.copyOf(this.ampms, this.ampms.length); }, /** * Sets ampm strings. For example: "AM" and "PM". * * @param newAmpms * the new ampm strings. */ "public void setAmPmStrings": function(newAmpms) { this.ampms = js.util.Arrays.copyOf(newAmpms, newAmpms.length); }, /** * Gets localized date-time pattern characters. For example: 'u', * 't', etc. * * @return the localized date-time pattern characters. */ "public String getLocalPatternChars": function() { return this.localPatternChars; }, /** * Sets localized date-time pattern characters. For example: 'u', * 't', etc. * * @param newLocalPatternChars * the new localized date-time pattern characters. */ "public void setLocalPatternChars": function(newLocalPatternChars) { // Call toString() to throw an NPE in case the argument is null this.localPatternChars = newLocalPatternChars.toString(); }, /** * Overrides Cloneable */ "public Object clone": function() { try { var other = this.getClass().newInstance(); this.copyMembers(this, other); return other; } catch (e) { throw new js.lang.CloneNotSupportedException(); } }, /** * Override equals */ "public boolean equals": function(obj) { if (this == obj) { return true; } if (Object.isNull(obj) || this.getClass() != obj.getClass()) { return false; } var that = obj; return (js.util.Arrays.equals(this.eras, that.eras) && js.util.Arrays.equals(this.months, that.months) && js.util.Arrays.equals(this.shortMonths, that.shortMonths) && js.util.Arrays.equals(this.weekdays, that.weekdays) && js.util.Arrays.equals(this.shortWeekdays, that.shortWeekdays) && js.util.Arrays.equals(this.ampms, that.ampms) && Arrays.deepEquals(this.getZoneStringsWrapper(), that .getZoneStringsWrapper()) && ((!Object.isNull(this.localPatternChars) && this.localPatternChars .equals(that.localPatternChars)) || (Object.isNull(this.localPatternChars) && Object.isNull(that.localPatternChars)))); }, // =======================privates=============================== /** * Useful constant for defining time zone offsets. */ "static final int millisPerHour": 60 * 60 * 1000, "private transient int lastZoneIndex": 0, "private void initializeData": function() { this.eras = ["公元前", "公元"]; this.months = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", "" ]; this.shortMonths = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", "" ]; this.ampms = ["上午", "下午"]; this.localPatternChars = "GanjkHmsSEDFwWxhKzZ"; // Day of week names are stored in a 1-based array. this.weekdays = ["", "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ]; this.shortWeekdays = ["", "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ]; }, /** * Clones all the data members from the source DateFormatSymbols to * the target DateFormatSymbols. This is only for subclasses. * * @param src * the source DateFormatSymbols. * @param dst * the target DateFormatSymbols. */ "private final copyMembers": function(src, dst) { dst.eras = js.util.Arrays.copyOf(src.eras, src.eras.length); dst.months = js.util.Arrays.copyOf(src.months, src.months.length); dst.shortMonths = js.util.Arrays.copyOf(src.shortMonths, src.shortMonths.length); dst.weekdays = js.util.Arrays.copyOf(src.weekdays, src.weekdays.length); dst.shortWeekdays = js.util.Arrays.copyOf(src.shortWeekdays, src.shortWeekdays.length); dst.ampms = js.util.Arrays.copyOf(src.ampms, src.ampms.length); dst.localPatternChars = src.localPatternChars; } });
module.exports = { name: '', //This is the user input parameter ie. {perfix}ping = !ping , response pong description: '', //Allows for a dynamic description of the command execute(message, args) { //code message.channel.send('Pong.'); }, };
import find from 'lodash/find'; import Base from './base.class'; import { SSL_MODE_REQUIRED, SSL_MODE_NA, SSL_MODE_SSL_TLS, } from './databases.constants'; import { ENGINES_NAMES } from './engines.constants'; export default class Database extends Base { constructor({ createdAt, plan, id, status, nodeNumber, description, maintenanceWindow, version, domain, networkType, networkId, subnetId, engine, nodes, flavor, sslMode, host, port, uri, }) { super(); this.updateData({ createdAt, plan, id, status, nodeNumber, description, maintenanceWindow, version, domain, networkType, networkId, subnetId, engine, nodes, flavor, sslMode, host, port, uri, }); } setStatus(status) { this.status = status; } get region() { return this.nodes[0]?.region; } getEngineLabel() { return ENGINES_NAMES[this.engine]; } addNode(node) { return this.nodes.push(node); } getNode(nodeId) { return find(this.nodes, { id: nodeId }); } setNodeStatus(node, status) { const nodeObj = this.getNode(node.id); nodeObj.status = status; } deleteNode(nodeId) { this.nodes = this.nodes.filter((n) => n.id !== nodeId); } setNodes(nodes) { nodes.forEach((node) => { const nodeObj = this.getNode(node.id); return nodeObj ? nodeObj.updateData(node) : this.addNode(node); }); } getEngineFromList(engines) { if (!this.currentEngine) { this.currentEngine = engines.find( (engine) => engine.name === this.engine, ); } return this.currentEngine; } getSSLModeKey() { if (!this.sslModeKey) { this.sslModeKey = this.sslMode; if (SSL_MODE_REQUIRED.includes(this.sslMode)) { this.sslModeKey = 'required'; } if (SSL_MODE_NA.includes(this.sslMode)) { this.sslModeKey = 'n/a'; } if (SSL_MODE_SSL_TLS.includes(this.sslMode)) { this.sslModeKey = 'SSL_TLS'; } } return this.sslModeKey; } updateData(data) { Object.assign(this, data); } }
/** * Kendo UI v2017.3.1026 (http://www.telerik.com/kendo-ui) * Copyright 2017 Telerik AD. 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,d){kendo.cultures["es-HN"]={name:"es-HN",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{name:"Honduran Lempira",abbr:"HNL",pattern:["-$n","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"L"}},calendars:{standard:{days:{names:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],namesAbbr:["dom.","lun.","mar.","mié.","jue.","vie.","sáb."],namesShort:["DO","LU","MA","MI","JU","VI","SA"]},months:{names:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],namesAbbr:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sep.","oct.","nov.","dic."]},AM:["a.m.","a.m.","A.M."],PM:["p.m.","p.m.","P.M."],patterns:{d:"d/M/yyyy",D:"dddd dd 'de' MMMM 'de' yyyy",F:"dddd dd 'de' MMMM 'de' yyyy HH:mm:ss",g:"d/M/yyyy HH:mm",G:"d/M/yyyy HH:mm:ss",m:"d 'de' MMMM",M:"d 'de' 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 'de' yyyy",Y:"MMMM 'de' yyyy"},"/":"/",":":":",firstDay:0}}}}(this)}); //# sourceMappingURL=kendo.culture.es-HN.min.js.map
import { ChooserModalOnloadHandlerFactory } from '../../includes/chooserModal'; window.SNIPPET_CHOOSER_MODAL_ONLOAD_HANDLERS = new ChooserModalOnloadHandlerFactory({ chosenResponseName: 'snippetChosen', }).getOnLoadHandlers();
var loginPopupTimer = null; var loginPopupTime = 1000*20; //20sec var autoLogoutTimer = null; var autoLogoutTime = 1000*60*5 //5min var loggedIn = false; var authenticatedUser = null; $('.sidebar').on('click', '.btnSetStatus', function(){checkSession(loadChangeStatus)}); $('.sidebar').on('click', '.btnChangeContent', function(){checkSession(loadChangeContent)}); $('.sidebar').on('click', '.btnViewMessages', function(){checkSession(loadViewMessages)}); $('.sidebar').on('click', '.btnUserSettings', function(){checkSession(loadUserSettingsPopup)}); $('.sidebar').on('click', '.btnLogout', logoutUser); function userLoginPopup() { if(loggedIn) { checkSession(showUserBackend); return; } showPopup(); startLoginPopupTimer(); $("#popup").append("<h2>Login"); $("#popup").append("<hr>"); $("#popup").append("<h4>Select a User to Login"); $("#popup").append("<hr>"); $.ajax({ url:"/functions/getUsersForRoom", type:"GET", data:{"roomID":roomID}, success:function(res) { $("#popup").append("<div id='usersInRoom' class='roomUsers'>"); if(res.length == 0) { $("#usersInRoom").append("There are currently no users in this room."); } else { res.forEach(function(key) { var profilePicURL = key.userProfilePic; if(!profilePicURL || profilePicURL == null) { profilePicURL = "images/no_user.jpg"; } $("#usersInRoom").append("<div class='userTile'><div>"+ "<img title='Login as "+key.userName+"' src='"+profilePicURL+"' onclick='loginPopup("+key.userID+",\""+key.userName+"\",\""+profilePicURL+"\")'>"); $("#usersInRoom").children().last().append("<br>"+key.userName); }); $("<br><br>").insertAfter("#usersInRoom"); } }, error:function(err) { console.log("couldn't get users for room"); showFloaty("no connection"); }, complete:function() { $("#popup").append("<div class='popupConfirm'>"); $(".popupConfirm").append("<button onclick='removePopup()'>Cancel"); $(".popupConfirm button").focus(); // just a small hack to display the scrollbar on the tablet showUser(selectedUser); }, timeout: ajaxTimeout }); } function loginPopup(userID,userName,userProfilePic) { startLoginPopupTimer(); $("#popup").empty(); $("#popup").append("<h2>Login"); $("#popup").append("<hr>"); $("#popup").append("<h4>Insert Pin for "+userName); $("#popup").append("<hr>"); $("#popup").append("<div id='usersInRoom' class='roomUsers'><form>"); $("#usersInRoom").css("overflow","hidden"); $("#popup").append("<div class='popupConfirm'>"); $(".popupConfirm").append("<button onclick='login("+userID+")'>Login"); $(".popupConfirm").append("<button onclick='{removePopup(); userLoginPopup();}'>Cancel"); $("#usersInRoom form").append("<input type='password' id='userPin' maxlength='4' size='2'><br>"); $("#usersInRoom form").submit(function(event) { event.preventDefault(); login(userID); }); $("#usersInRoom").append("<div class='userTile'><div><img id='loginProfilePic' title='"+userName+"' src='"+userProfilePic+"'>"); $("#loginProfilePic").css("cursor","default"); $("#usersInRoom form").children().last().append("<br>"+userName+"<hr>"); $("#userPin").focus(); } function login(userID) { var pin = $("#userPin").val(); var hash = CryptoJS.SHA256(pin).toString(CryptoJS.enc.Hex); $.ajax({ url:"/functions/loginUserPin", type:"POST", data:{"userID":userID,"userPin":hash}, success:function(res) { if(res == "success") { loggedIn = true; authenticatedUser = userID; stopLoginPopupTimer(); checkSession(showUserBackend); } else { $("#userPin").css("border","solid red 2px"); $("#userPin").val(""); } }, error:function(err) { console.log("couldn't login user with pin"); showFloaty("no connection"); }, timeout: ajaxTimeout }); } function startLoginPopupTimer() { clearTimeout(loginPopupTimer); loginPopupTimer = setTimeout(removePopup,loginPopupTime); } function stopLoginPopupTimer() { clearTimeout(loginPopupTimer); } function startAutoLogoutTimer() { clearTimeout(autoLogoutTimer); autoLogoutTimer = setTimeout(logoutUser,autoLogoutTime); } function stopAutoLogoutTimer() { clearTimeout(autoLogoutTimer); } function showUserBackend() { removePopup(); showSidebar('sidebarUserBackend'); for(var i=0; i<usercollection.length; i++) { if(usercollection[i].userID == authenticatedUser) showUserHeader(i); } } function checkSession(callback) { startAutoLogoutTimer(); $.ajax({ url:"/functions/checkUserSession", type:'GET', success:function(res) { if(res != "session valid") { stopAutoLogoutTimer(); loggedIn = false; loggedInPassword = false; authenticatedUser = null; showFloaty("Session expired!"); loadMain(); } else { callback(); } }, error:function(err) { console.log(err); showFloaty("no connection"); }, timeout: ajaxTimeout }); } function logoutUser() { stopAutoLogoutTimer(); removePopup(); loggedIn = false; loggedInPassword = false; $.ajax({ url:'/functions/logoutUser', type:'GET', success:function(res) { //showFloaty("Successfully logged out."); //loadMain(); window.location.reload(true); }, error:function(err) { console.log("couldn't logout user"); showFloaty("no connection"); }, timeout: ajaxTimeout }); }
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import ContinuousScale from "./continuousScale"; import timeMillisecond from "../util/time/millisecond"; import timeSecond from "../util/time/second"; import timeMinute from "../util/time/minute"; import timeHour from "../util/time/hour"; import timeDay from "../util/time/day"; import timeWeek from "../util/time/week"; import timeMonth from "../util/time/month"; import timeYear from "../util/time/year"; import { durationSecond, durationMinute, durationHour, durationDay, durationWeek, durationMonth, durationYear } from "../util/time/duration"; import { complexBisectRight } from "../util/bisect"; import { tickStep } from "../util/ticks"; import { locale } from "../util/time/format/defaultLocale"; var TimeScale = /** @class */ (function (_super) { __extends(TimeScale, _super); function TimeScale() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.year = timeYear; _this.month = timeMonth; _this.week = timeWeek; _this.day = timeDay; _this.hour = timeHour; _this.minute = timeMinute; _this.second = timeSecond; _this.millisecond = timeMillisecond; _this.format = locale.format; /** * Array of default tick intervals in the following format: * * [ * interval (unit of time), * number of units (step), * the length of that number of units in milliseconds * ] */ _this.tickIntervals = [ [_this.second, 1, durationSecond], [_this.second, 5, 5 * durationSecond], [_this.second, 15, 15 * durationSecond], [_this.second, 30, 30 * durationSecond], [_this.minute, 1, durationMinute], [_this.minute, 5, 5 * durationMinute], [_this.minute, 15, 15 * durationMinute], [_this.minute, 30, 30 * durationMinute], [_this.hour, 1, durationHour], [_this.hour, 3, 3 * durationHour], [_this.hour, 6, 6 * durationHour], [_this.hour, 12, 12 * durationHour], [_this.day, 1, durationDay], [_this.day, 2, 2 * durationDay], [_this.week, 1, durationWeek], [_this.month, 1, durationMonth], [_this.month, 3, 3 * durationMonth], [_this.year, 1, durationYear] ]; _this.formatMillisecond = _this.format('.%L'); _this.formatSecond = _this.format(':%S'); _this.formatMinute = _this.format('%I:%M'); _this.formatHour = _this.format('%I %p'); _this.formatDay = _this.format('%a %d'); _this.formatWeek = _this.format('%b %d'); _this.formatMonth = _this.format('%B'); _this.formatYear = _this.format('%Y'); _this._domain = [new Date(2000, 0, 1), new Date(2000, 0, 2)]; return _this; } TimeScale.prototype.defaultTickFormat = function (date) { return (this.second.floor(date) < date ? this.formatMillisecond : this.minute.floor(date) < date ? this.formatSecond : this.hour.floor(date) < date ? this.formatMinute : this.day.floor(date) < date ? this.formatHour : this.month.floor(date) < date ? (this.week.floor(date) < date ? this.formatDay : this.formatWeek) : this.year.floor(date) < date ? this.formatMonth : this.formatYear)(date); }; /** * * @param interval If the `interval` is a number, it's interpreted as the desired tick count * and the method tries to pick an appropriate interval automatically, based on the extent of the domain. * If the `interval` is `undefined`, it defaults to `10`. * If the `interval` is a time interval, simply use it. * @param start The start time (timestamp). * @param stop The end time (timestamp). * @param step Number of intervals between ticks. */ TimeScale.prototype.tickInterval = function (interval, start, stop, step) { var _a; if (typeof interval === 'number') { var tickCount = interval; var tickIntervals = this.tickIntervals; var target = Math.abs(stop - start) / tickCount; var i = complexBisectRight(tickIntervals, target, function (interval) { return interval[2]; }); if (i === tickIntervals.length) { step = tickStep(start / durationYear, stop / durationYear, tickCount); interval = this.year; } else if (i) { _a = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i], interval = _a[0], step = _a[1]; } else { step = Math.max(tickStep(start, stop, interval), 1); interval = this.millisecond; } } return step == undefined ? interval : interval.every(step); }; Object.defineProperty(TimeScale.prototype, "domain", { get: function () { return _super.prototype.getDomain.call(this).map(function (t) { return new Date(t); }); }, set: function (values) { _super.prototype.setDomain.call(this, Array.prototype.map.call(values, function (t) { return t instanceof Date ? +t : +new Date(+t); })); }, enumerable: true, configurable: true }); TimeScale.prototype.invert = function (y) { return new Date(_super.prototype.invert.call(this, y)); }; /** * Returns uniformly-spaced dates that represent the scale's domain. * @param interval The desired tick count or a time interval object. */ TimeScale.prototype.ticks = function (interval) { if (interval === void 0) { interval = 10; } var d = _super.prototype.getDomain.call(this); var t0 = d[0]; var t1 = d[d.length - 1]; var reverse = t1 < t0; if (reverse) { var _ = t0; t0 = t1; t1 = _; } var t = this.tickInterval(interval, t0, t1); var i = t ? t.range(t0, t1 + 1) : []; // inclusive stop return reverse ? i.reverse() : i; }; /** * Returns a time format function suitable for displaying tick values. * @param count Ignored. Used only to satisfy the {@link Scale} interface. * @param specifier If the specifier string is provided, this method is equivalent to * the {@link TimeLocaleObject.format} method. * If no specifier is provided, this method returns the default time format function. */ TimeScale.prototype.tickFormat = function (count, specifier) { return specifier == undefined ? this.defaultTickFormat.bind(this) : this.format(specifier); }; /** * Extends the domain so that it starts and ends on nice round values. * This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value. * @param interval */ TimeScale.prototype.nice = function (interval) { if (interval === void 0) { interval = 10; } var d = _super.prototype.getDomain.call(this); var i = this.tickInterval(interval, d[0], d[d.length - 1]); if (i) { this.domain = this._nice(d, i); } }; TimeScale.prototype._nice = function (domain, interval) { var _a, _b; domain = domain.slice(); var i0 = 0; var i1 = domain.length - 1; var x0 = domain[i0]; var x1 = domain[i1]; if (x1 < x0) { _a = [i1, i0], i0 = _a[0], i1 = _a[1]; _b = [x1, x0], x0 = _b[0], x1 = _b[1]; } domain[i0] = interval.floor(x0); domain[i1] = interval.ceil(x1); return domain; }; return TimeScale; }(ContinuousScale)); export { TimeScale };
/* * (c) 2011-2019 Corporate Web Solutions Ltd. * All client side / JavaScript code may not be used in any way without a valid JSCharting license. * To license JSCharting for your own use, please visit www.JSCharting.com * */ JSC.maps()['sa_s']={"type":"Topology","transform":{"scale":[0.21152845915888313,0.1760971770814756],"translate":[-1031277.076882683,-873095.4981819055]},"objects":{"countries":{"type":"GeometryCollection","geometries":[{"type":"MultiPolygon","properties":{"region":"Asia","name":"Saudi Arabia","iso_a2":"SA","iso_a3":"SAU","iso_n3":"682","continent":"Asia","subRegion":"Western Asia","hasc":"SA","cent":[45.07133280596122,21.9826869569132],"bbox":[-1031277.076882683,-873095.4981819055,2115284.168531913,1760971.594717579],"nameAlt":"Saud.|SAU|SA"},"arcs":[[[-44]],[[-45]],[[-46]],[[-24]],[[-25]],[[-26]],[[-27]],[[-28]],[[-29]],[[-30]],[[-31]],[[-32]],[[-12]],[[-35,-37,-34,-16,-49,-48,-43,-4,-13]]],"id":"SA"}]},"provinces":{"type":"GeometryCollection","geometries":[{"id":"SA.NJ","type":"Polygon","arcs":[[-1,-2,-3,-4]],"properties":{"name":"Najran","fips":"SA16","postal":"NJ","hasc":"SA.NJ","bbox":[-155865.06795443106,-810066.0921721954,432724.4034867047,288441.54094979045],"cent":[59955.338672486294,-654307.6600593086]}},{"id":"SA.RI","type":"Polygon","arcs":[[-5,-6,-7,-8,-9,-10,-11,1]],"properties":{"name":"Ar Riyad","nameAlt":"Riyad|Riad|Riyadh","fips":"SA10","postal":"RI","hasc":"SA.RI","bbox":[-318148.6441788303,-554593.4647155988,643399.3453128817,919988.7085590028],"cent":[70590.05215180878,-241797.3038055379]}},{"id":"SA.SH","type":"MultiPolygon","arcs":[[[-12]],[[-13,-14,4,0]]],"properties":{"name":"Ash Sharqiyah","nameAlt":"Eastern Province","fips":"SA06","postal":"SH","hasc":"SA.SH","bbox":[-16409.43151399924,-792949.9748514072,1100416.5231632292,1332783.0320766482],"cent":[682394.2473497614,-299820.2529830474]}},{"id":"SA.MD","type":"Polygon","arcs":[[-15,-16,-17,8,-18,-19]],"properties":{"name":"Al Madinah","nameAlt":"Madinah|Al Madinah al Munawwarah|Monwarah|Medina|Médine","fips":"SA05","postal":"MD","hasc":"SA.MD","bbox":[-822286.7477052473,-186248.53405379725,518159.47897022264,557373.9800394326],"cent":[-538809.5873805229,42274.79776237013]}},{"id":"SA.QS","type":"Polygon","arcs":[[-20,17,7]],"properties":{"name":"Al Quassim","nameAlt":"Al Gassim|Gasim|Qaseem|Al Qasseem","fips":"SA08","postal":"QS","hasc":"SA.QS","bbox":[-370689.9866208462,43918.752959014266,344905.8253253845,299250.5617762285],"cent":[-177308.05706910865,169603.98890503022]}},{"id":"SA.HA","type":"Polygon","arcs":[[-21,-22,-23,18,19,6]],"properties":{"name":"Ha'il","nameAlt":"Hail","fips":"SA13","postal":"HA","hasc":"SA.HA","bbox":[-598353.2020589914,127750.87069171318,568139.2117718244,392087.93695052003],"cent":[-308881.1341673116,398291.547187572]}},{"id":"SA.TB","type":"MultiPolygon","arcs":[[[-24]],[[-25]],[[-26]],[[-27]],[[-28]],[[-29]],[[-30]],[[-31]],[[-32]],[[-33,-34,14,22]]],"properties":{"name":"Tabuk","nameAlt":"Tabouk","fips":"SA19","postal":"TB","hasc":"SA.TB","bbox":[-1031277.076882683,54313.0649334254,542779.6993886434,504054.0440824637],"cent":[-738493.2106605328,412191.4362319746]}},{"id":"SA.HS","type":"Polygon","arcs":[[-35,-36,20,5,13]],"properties":{"name":"Al Hudud ash Shamaliyah","nameAlt":"Northern Frontier","fips":"SA15","postal":"HS","hasc":"SA.HS","bbox":[-688502.189254865,357131.5316145016,817101.2277626775,530744.5649211719],"cent":[-155540.74048841186,532277.2380384884]}},{"id":"SA.JF","type":"Polygon","arcs":[[35,-37,32,21]],"properties":{"name":"Al Jawf","nameAlt":"JawfAl Joaf|Al-Jouf|Jowf","fips":"SA03","postal":"JF","hasc":"SA.JF","bbox":[-999437.3901531695,447991.3354901682,691226.9875710009,404641.7286074811],"cent":[-709271.778298544,569383.8540724125]}},{"id":"SA.BA","type":"Polygon","arcs":[[-38,-39]],"properties":{"name":"Al Bahah","nameAlt":"Baha","fips":"SA02","postal":"BA","hasc":"SA.BA","bbox":[-449281.2703367376,-537061.05366819,129362.13295474742,154928.35932733433],"cent":[-396401.71667152067,-459596.87400452286]}},{"id":"SA.AS","type":"Polygon","arcs":[[10,-40,38,-41,-42,-43,2]],"properties":{"name":"`Asir","nameAlt":"Asir|Aseer|Assyear","fips":"SA11","postal":"AS","hasc":"SA.AS","bbox":[-391775.9895436403,-755765.8232304141,330057.5851347266,392961.9072403753],"cent":[-233243.25281275768,-586792.2031170528]}},{"id":"SA.JZ","type":"MultiPolygon","arcs":[[[-44]],[[-45]],[[-46]],[[41,-47,-48]]],"properties":{"name":"Jizan","nameAlt":"Jazan|Qizan","fips":"SA17","postal":"JZ","hasc":"SA.JZ","bbox":[-371618.3850280945,-873095.4981819055,184301.5735382475,218407.8697216647],"cent":[-246569.2090120832,-757339.3272294232]}},{"id":"SA.MK","type":"Polygon","arcs":[[16,-49,46,40,37,39,9]],"properties":{"name":"Makkah","nameAlt":"La Meca|La Mecca|La Mecque|Makka|Makkah al-Mukarramah|Mecca|Meca|Mecka|Mekka","fips":"SA14","postal":"MK","hasc":"SA.MK","bbox":[-658776.5179461855,-676357.9709747101,509459.3134450178,649188.7589064117],"cent":[-395897.036641718,-306320.3783980554]}}]}},"arcs":[[[6184210,1995892],[-139279,-1540771]],[[4583585,1970647],[137807,-104574],[61975,-33119],[46854,-13712],[128316,-10570],[1161436,163699],[64237,23521]],[[4138507,666278],[246,19747],[14245,63196],[-1013,33505],[-9789,38721],[4008,57591],[13795,139689],[-1211,26507],[-17132,81636],[5150,33376],[23319,42958],[81441,101830],[56488,56652],[27877,43455],[18917,49070],[34098,29363],[34600,8258],[45031,22745],[21875,17460],[23374,35336],[8326,32744],[-122,73685],[-17150,80150],[3125,31880],[23949,34758],[32970,20735],[12544,15244],[5954,34756],[163,79322]],[[6044931,455121],[-118791,-86684],[-31194,-10513],[-73474,2665],[-6421,4789],[-113865,186181],[-18758,12752],[-194647,-34549],[-448909,52656],[-22980,9063],[-81764,57164],[-28512,6918],[-260723,2568],[-42494,-17059],[-79273,9385],[-48655,-5863],[-48190,-11236],[-31381,9191],[-22542,-33145],[-22691,-2909],[-19238,12121],[-19458,-5626],[-22102,-32339],[-24393,9680],[1411,19433],[-71398,-2652],[-30668,24415],[-25314,34751]],[[4821677,7032996],[44577,-38319],[19630,-22588],[14264,-28097],[18670,-71226],[22078,-29580],[132661,-91936],[21604,-7710],[44977,-5927],[19399,-16585],[29180,-42685],[44906,-50901],[30678,-22196],[20198,-4987],[77546,-2136],[41312,-13324],[29932,-20167],[116707,-98992],[43963,-12396],[69913,16127],[32540,-12447],[78785,-90195],[12842,-23685],[18720,-18246],[151687,-70006],[12931,-12938],[17333,-54636],[23103,-846444],[4548,-28091],[18801,-34061],[171383,-142951],[123456,-143517],[40612,-69314],[21204,-54800],[12524,-44616],[8621,-76621],[18,-141045],[-114634,-1364144],[-114136,-1245722]],[[4732522,7025449],[18925,-24609],[28935,-14771],[21886,13648],[19409,33279]],[[4652043,6837600],[-7587,30434],[6415,58508],[20281,45160],[34203,41564],[27167,12183]],[[3437598,5207433],[9469,23865],[32731,56931],[19755,19467],[32597,5235],[50123,-32537],[54718,-20743],[86136,-12996],[23798,324],[67971,10876],[22651,-2095],[37096,-13299],[19310,2574],[22902,18104],[17788,38973],[-2579,31751],[-18545,51889],[9290,32476],[46975,73095],[45600,54192],[23135,15813],[159225,43435],[31079,20672],[25750,28809],[33883,25959],[19607,29667],[17846,42499],[20438,30243],[23523,17560],[43240,6369],[100870,-16964],[112912,9155],[43262,-4911],[18835,5838],[11131,34582],[-3858,77994],[-27688,84376],[7457,47347],[-3457,22428],[-35759,58321],[-41650,84638],[-48251,62149],[-12839,25333],[-2216,26148],[10394,81857],[-2157,70939],[19254,21659],[29628,8642],[13688,12292],[34441,60253],[38735,46671],[66288,42739],[11334,28451],[-833,22462],[-12947,40171],[-17219,24855],[-40212,37352],[-30210,16282]],[[3377330,4790655],[-408,58484],[7870,107661],[9422,47399],[1983,39011],[-6399,35138],[10547,24678],[22834,34363],[14094,48016],[325,22028]],[[4169462,2897784],[-126103,232020],[-8337,25943],[395,25867],[20448,91797],[3659,26899],[-5109,105540],[11342,36972],[14888,23140],[14125,37493],[2048,26190],[-22416,211178],[318,26280],[14289,92328],[-27144,22666],[-57596,14177],[-21461,-878],[-57555,-18034],[-22580,475],[-20926,8992],[-20863,20207],[-10409,23259],[-3229,31633],[3481,64197],[9709,38891],[-8616,26705],[-36592,26371],[-21772,5876],[-105395,12642],[-75062,-67],[-38408,14379],[-30822,36293],[-59308,180621],[-12719,90383],[-15978,49222],[-23742,100665],[-8835,19538],[-37157,35825],[-13957,27895],[-761,39607],[6018,59684]],[[4583585,1970647],[-8587,7411],[-193777,217474],[-47133,96100],[-35848,56083],[-3303,35482],[19937,107873],[38925,78589],[8027,24016],[-236,26208],[-9330,28865],[-40529,54434],[-44238,77889],[-26817,38430],[-71214,78283]],[[6957824,6960004],[58195,-19187],[-30467,3038],[-26740,-17909],[-13011,8126],[7137,10902],[-16056,9705],[-15075,-7223],[-13838,-28204],[-1680,16392],[21421,28730],[30114,-4370]],[[5483310,8010608],[48209,12965],[205770,-27557],[209683,-29244],[28717,-56546],[26921,-83629],[4732,-49835],[18588,-51759],[29610,-30123],[4130,-16656],[353097,13735],[29146,-24588],[6748,-31990],[-3187,-35323],[16653,9503],[-7566,-41395],[8875,-27274],[39846,-50257],[-6993,-31724],[2788,-25765],[23370,-40226],[-1016,-9824],[23472,-13205],[20916,676],[21102,-10026],[-20571,-16711],[-1164,-12862],[34118,-36199],[30166,-40322],[371,-37771],[-10510,-25310],[-3961,22461],[5166,19295],[-25067,6416],[-9618,-64058],[14096,18608],[686,-28172],[12834,6671],[3549,-25739],[15815,13431],[-2010,-47490],[9228,13239],[2319,-38427],[4572,17479],[28087,14171],[52016,-44818],[-2801,7048],[33888,-7431],[15692,9204],[28759,-6997],[28589,-33829],[7087,-25806],[-13435,16365],[-9401,-14540],[-25772,2344],[-12273,-11141],[-11559,10534],[-17392,-11574],[19627,-8295],[21824,-19262],[14942,20780],[11232,-7993],[-16540,-29147],[-925,-23687],[25393,18315],[16072,-8143],[-3348,-12415],[7630,-37048],[2720,-38261],[10967,-14065],[18596,23973],[12401,-9402],[-6230,-26413],[-10337,-8929],[19972,-6158],[22514,6445],[27718,-7921],[-17262,25890],[12531,9103],[17169,-6681],[12074,-48922],[17763,-16112],[42810,-70156],[34255,-26837],[48277,-30266],[33018,-1222],[28839,-24919],[33235,-54425],[35114,-28317],[10212,-26172],[-33541,30054],[-25775,2730],[-11493,9327],[-4318,23118],[-9830,-25351],[11790,-37176],[276,-49226],[14155,-47491],[22381,-24853],[40857,-15073],[14252,-14234],[13376,-49750],[1951,-68737],[-5705,-27889],[-22250,-4234],[3083,-40181],[-6689,-42361],[-7541,6305],[-7039,35607],[-19281,17036],[-4553,26480],[-21518,14194],[-20152,-37577],[17523,-38892],[-9314,-10794],[9187,-40022],[7373,25247],[37349,-27757],[13554,-34781],[-9041,-12284],[5923,-29379],[22262,-52870],[42439,-63410],[2845,-29926],[-9239,29690],[-43182,32121],[2549,-21063],[16475,-16356],[6182,9332],[19425,-44650],[56653,-81577],[12885,-12662],[-6682,26147],[11176,5352],[12452,-28864],[25346,-9681],[14415,-33887],[18304,-62139],[-1239,-38354],[15118,-35548],[-557,-35569],[14591,-47205],[3230,12353],[40367,-50055],[10823,-41277],[22113,-19311],[7339,-62577],[17402,-34077],[16985,13296],[37279,-67892],[23790,-29929],[24423,-11090],[55794,-1908],[24435,11458],[31193,33010],[25565,504],[18609,-18265],[-7280,-10227],[7229,-38444],[14560,10208],[12038,28539],[15803,21254],[-823,14505],[23444,-6082],[6088,-15813],[20930,-10279],[-25529,-14928],[-21503,-43461],[-27254,-26790],[-13236,-27260],[-1828,-37848],[-9936,-4213],[2625,-23627],[30116,-1655],[31833,17974],[31923,-6235],[23552,-25662],[20954,-6484],[3898,-24119],[1050,-56839],[10951,-30723],[108483,-154520],[213149,-301445],[161447,-226608],[22161,-13564],[416093,-38615],[338290,-29190],[202974,-16559],[269716,-20823],[7192,2189],[29158,53396],[237567,-410927],[6920,-27843],[-105666,-544901],[-81359,-410345],[-65638,-325588],[-154798,-80492],[-247629,-127508],[-248462,-126476],[-165993,-83667],[-249656,-124638],[-388305,-190921],[-236121,-53546],[-237473,-52836],[-237746,-51891],[-396868,-84359],[-302568,-62485],[-45931,-21924],[-272088,-178045],[-148400,-96304],[-11096,-9746],[-159944,-250201],[-121334,-188528],[-8255,-19682],[-55209,-191108],[-14528,-24095]],[[4821677,7032996],[-18116,29622],[-5778,25253],[4761,40291],[21700,56530],[78253,113692],[22804,39968],[162364,370115],[27487,50107],[35602,48648],[45282,50623],[64247,43432],[217164,100924],[5863,8407]],[[1186808,5266459],[8747,40568],[17804,32045],[19598,7505],[39090,-2674],[40641,9235],[24231,21447],[24348,30990],[31852,7118],[44051,-8587],[24030,7697],[21594,25611],[7487,20449],[3138,208269],[23019,142531],[-3580,24078],[-11972,12689],[-51428,13436],[-16812,90891],[-12217,48581],[-20857,43629],[-58443,66209],[-16141,39199],[-5602,34973],[-11215,13740],[-81265,64169],[-20548,-1249],[-25398,-17460],[-14650,71138],[-24015,68540],[-2760,26472],[14088,50819],[31609,55266],[7070,22791],[-3809,30715],[-17538,19327],[-52795,22887],[-20775,15737],[-22254,38993],[-6349,27672],[-668,41642],[14329,85150],[2530,51168],[-5056,39189],[-13300,28881],[-16075,11861],[-45002,-3089],[-17539,8698],[2160,21228],[18832,14118],[54401,12328],[123002,59697],[23402,2760],[34456,-16610],[37840,-32742],[32598,-13502],[32032,3744],[89882,51233],[16649,-3496],[21441,-33677],[10341,-58638],[16071,-48841],[23680,-49744],[23149,-21017],[67047,-11192],[19589,-7227],[11363,-17103],[49,-28317],[10175,-21738],[27686,-23743],[10261,-23011],[-2971,-38142],[13322,-13769],[27398,12268],[43853,37990],[16651,5240],[26727,-8156],[33720,-21983],[21996,-6876],[12039,5696],[1300,45936],[14609,5358],[10373,-11814],[11443,-38767],[26422,-23602],[58258,-29289],[54490,-55405],[40892,-13115],[46871,-2194],[196200,26830],[28779,-19236],[14923,-28868]],[[1760995,4522058],[-5071,56236],[-10964,18020],[-1408,20878],[-19431,-13171],[16211,-11879],[-16179,-1644],[-10101,12522],[775,30734],[-20033,34533],[-16830,89182],[-24716,20464],[-15000,36548],[-26274,16047],[-22859,33911],[-34435,21739],[-48393,62721],[-16067,-923],[-50913,48479],[19104,21431],[-16485,-7385],[5253,28557],[-17328,-8748],[1522,-26659],[-25099,1749],[-44911,48117],[-3707,13041],[-38063,33864],[-24206,-4645],[207,-21171],[-20400,449],[-18352,18775],[-11169,-3500],[-25657,47213],[-16025,18625],[825,34048],[12513,-9867],[1815,21661],[-32336,64449]],[[3377330,4790655],[-62655,13092],[-30306,-1251],[-27404,-24976],[-1861,-26100],[11645,-41721],[1318,-54321],[-23653,-55233],[-24028,-24244],[-86553,-42694],[-63323,-40606],[-37130,-37089],[-2728,-28551],[18564,-21046],[51814,-35922],[10407,-24669],[-5236,-17388],[-20881,-19100],[-56677,-23293],[-28289,-23989],[-69274,-79363],[-140997,-126256],[-19982,-25984],[-36353,-63616],[-12911,-15846],[-23511,-6328],[-73586,30681],[-26518,-550],[-20419,-14308],[-50736,-48495],[-25100,-11103],[-55336,7158],[-16681,30982],[10915,65159],[-2003,27189],[-11623,25379],[-31879,28695],[-41007,18973],[-4439,35816],[28884,74438],[7104,41401],[-4372,42935],[-13844,20644],[-20615,5411],[-45299,-4772],[-104264,-34123],[-36991,-6509],[-15782,17200],[-7486,49084],[-23288,7785],[-51799,-8659],[-34668,3402],[-21825,21718],[-35824,55780],[-43346,51576],[-18968,40481],[-21479,16605],[-49024,-8509],[-75033,-3567]],[[3122923,5801031],[94251,-34858],[16065,-20502],[4797,-30446],[-12464,-163407],[14519,-46279],[20756,-18280],[61266,-21604],[13846,-10675],[15419,-42548],[22721,-119468],[22383,-46998],[41116,-38533]],[[2391402,6538017],[7530,-27326],[1519,-42323],[-7233,-30119],[-24653,-55987],[4650,-28847],[29101,-17185],[33882,3461],[9948,-10713],[5001,-26629],[-33082,-210756],[416,-34527],[12616,-70228],[6275,-63647],[-9614,-167603],[6906,-32875],[13308,-21641],[34414,-17583],[22156,1826],[119295,45028],[23921,4080],[56469,-3996],[46243,9380],[28132,23948],[36120,50834],[24092,20225],[29832,9798],[82054,1176],[131645,-29571],[40578,-15186]],[[3122923,5801031],[18829,19658],[64286,15047],[76845,47679],[33056,13340],[45787,4252],[19499,11995],[-990,28071],[-21040,50095],[-3917,27746],[9371,28662],[23749,21197],[18014,-1767],[36895,-18490],[22075,-4400],[15066,12796],[1371,26570],[-7461,51705],[2763,38300],[19184,52369],[16316,15366],[33122,-929],[22497,5927],[15889,17127],[25720,62820],[56474,75247],[125610,118116],[56936,42715],[108038,53365],[16262,13491],[17236,28293],[19997,49787],[39999,51484],[35227,26868],[178459,107053],[44783,14196],[21195,-6602],[27586,-24956],[33060,-43782],[59372,-58481],[32013,-19642],[48419,-3077],[31368,-8253],[19969,1957],[14227,12417],[36512,59630],[19452,21607]],[[2773611,7886139],[51846,-28855],[37349,-10213],[246390,58973],[33195,3988],[34070,-4651],[110551,-47469],[40156,-2519],[56069,15775],[61733,1044],[156424,-48493],[41551,-29737],[54640,-82277],[28802,-26324],[22843,-10729],[32079,-2796],[26970,9595],[37665,24365],[42483,9426],[14671,-17419],[1343,-46993],[11108,-41289],[26068,-27389],[24954,-6364],[46096,4706],[28496,-6698],[48906,-31816],[40233,-7755],[18873,10789],[54328,41222],[28957,7851],[30684,-28518],[76823,-171226],[38125,-124904],[15906,-27302],[23439,-24185],[28632,-15018],[143344,-27172],[47684,-30622],[76899,-84232],[18526,-35459]],[[2046646,7511154],[53213,64131],[22435,17035],[178585,91014],[81699,23009],[175140,109621],[177119,78671],[38774,-8496]],[[2391402,6538017],[25290,38837],[30380,100743],[15323,33886],[22165,33202],[59388,57901],[17026,24046],[5015,38867],[-19899,26732],[-55373,38840],[-24275,24352],[-11544,24936],[-42010,249653],[-10150,27482],[-26248,34087],[-52537,56803],[-41137,30447],[-21216,30291],[-41688,25581],[-147467,50681],[-25799,25770]],[[1072311,5538242],[-22267,-226],[3590,18678],[18677,-18452]],[[1033107,5866331],[10093,-11263],[2801,-34448],[-38704,30087],[8183,22165],[17627,-6541]],[[949812,5866243],[38185,-20655],[-2200,-23623],[27673,10944],[-30886,-31684],[-45025,58014],[-9301,27144],[21554,-20140]],[[967293,5913678],[-13118,7605],[7504,13927],[11514,-8751],[-5900,-12781]],[[906865,5936137],[22398,-20523],[4446,-12603],[24305,-18300],[17468,-30795],[-24078,27586],[-24832,16355],[-23017,32487],[-18368,-5948],[5526,14220],[16152,-2479]],[[1003253,5940959],[-7466,-8750],[2944,-31729],[-9656,19625],[292,29228],[13886,-8374]],[[835518,5979016],[30266,-33861],[21254,-3018],[-8047,-13724],[-45571,34273],[-13682,-4857],[-18498,23454],[2225,24293],[22090,23907],[-11274,-24955],[21237,-25512]],[[847048,6035096],[-17085,4790],[-4156,26114],[11228,47276],[744,-36564],[15199,-14090],[-5930,-27526]],[[516920,6933431],[-12342,15717],[2697,14984],[9645,-30701]],[[158066,8104479],[70634,-2532],[36404,-14591],[64642,-13391],[19775,5907],[17037,16686],[36467,14120],[95318,13618],[61049,-563],[36452,5089],[29839,-2411],[88103,-34176],[43959,-43229],[107114,-196358],[24354,-15105],[18617,-1743],[51578,19379],[112075,20649],[62550,-9218],[68193,-33258],[37773,-12351],[79054,-11197],[24172,8587],[14346,22802],[21385,56563],[13798,24629],[41861,31350],[30003,30651],[10299,4055],[17871,-12606],[5963,-27170],[-9543,-101253],[62,-92176],[9703,-49155],[19180,-39728],[28865,-32936],[20733,-15795],[49732,-24510],[28192,-8985],[91774,-16979],[16655,-274],[43415,15653],[35167,-20820],[28883,-2152],[11438,-38543],[16390,-18979],[34483,3856],[49701,26983],[29520,5999],[26169,-9047],[17376,-18670]],[[1186808,5266459],[-67574,130121],[2505,34587],[-16264,-741],[-13726,17346],[-7079,23002],[33286,-5078],[18651,14323],[2218,31874],[11674,26019],[-10849,56797],[4799,37008],[-10465,52804],[-22519,30330],[-32811,54940],[-6080,35034],[-12403,28027],[8672,6637],[-25973,42166],[-9481,35696],[-24411,62712],[-24955,18714],[-27529,55955],[-10197,1697],[2847,-20921],[-11605,-882],[-24773,20726],[-12817,27387],[445,17278],[-13254,21748],[5397,28623],[17503,25534],[-1982,49936],[-24800,25886],[-48154,17699],[-10274,18890],[-25152,88093],[-28121,57739],[-28888,106053],[-32503,83294],[-20341,36291],[-36813,49694],[-18121,58986],[-6944,39976],[-8595,-2146],[-15669,30076],[-28311,35195],[-33843,61875],[-12869,43742],[7811,19078],[-11710,29165],[-35654,59625],[-20882,20194],[-39212,67935],[-19269,57844],[238,35747],[-5333,20680],[-21400,38572],[-9450,39611],[-27460,34161],[-10164,48417],[-28077,51035],[-39971,39461],[25514,15706],[693,10555],[-47861,19856],[-25238,28086],[-25141,-1130],[-33860,-19520],[-30856,7150],[3951,17027],[-64022,5528],[-7147,18425],[-12777,-1930],[-17629,-21245],[-8476,-41027],[-10267,-972],[-259,41827],[-14752,156],[7666,23264],[31200,19904],[15335,68090],[10003,9968],[19503,42110],[6921,29203],[33910,70856],[-710,58685],[-4887,29077],[11136,37902],[21949,55527],[6040,42675]],[[1689956,9799865],[187871,52427],[255278,72594],[15834,7030],[55587,57474],[18733,10609],[385219,-99852],[150905,-42142],[23655,-12346],[222570,-172444],[269977,-206994],[233566,-176655],[347381,-377560],[256757,-259367],[206979,-206563],[156039,-154369],[209208,-205072],[11757,-5552],[235441,-25920],[235571,-24799],[282974,-28335],[32052,8579]],[[2773611,7886139],[67199,74925],[15837,38035],[17896,209732],[6125,26536],[27668,38290],[50902,43945],[388753,272812],[38784,35113],[20926,24704],[10594,25321],[-11107,23983],[-66554,65572],[-21315,26423],[-19969,42383],[-19512,57753],[-25119,40155],[-29972,19526],[-53149,10700],[-61168,6413],[-27102,14523],[-87730,90807],[-31717,14981],[-71502,-2318],[-246913,17878],[-42157,12806],[-26446,16219],[-31680,37594],[-35569,23022],[-302515,72221],[-59829,5102],[-139749,-16932],[-201876,-12144],[-41462,9896],[-19358,13712],[-16469,22815],[-31997,83885],[-26417,43288],[-36965,36164],[-9354,22092],[-3156,68065],[3118,20998],[66371,236731]],[[158066,8104479],[-7544,6843],[17206,42582],[5288,26456],[-3426,24968],[11363,24469],[22741,90198],[15796,11118],[-2603,24858],[11161,9044],[-779,29633],[235683,-71743],[244585,-72876],[24624,4364],[197322,170886],[116192,204210],[24608,19888],[328896,57712],[10321,9814],[74811,185694],[17530,20843],[145337,86387],[-209183,335380],[-216149,321827],[226089,63625],[242021,69206]],[[3189597,2173057],[-30973,-10003],[-46373,1425],[-18641,-6579],[-24961,-40285],[-33729,-100108],[-12976,-67418],[-10398,-23416],[-30233,-18440],[-35983,2541],[-22135,17678],[-41685,64975],[-37635,25861],[-18083,27780],[-2382,25160],[4034,52143],[-9620,67674],[6993,64496],[-7415,39828],[-12039,17094],[-36739,14275],[-17241,16898],[5775,35358],[50046,55513],[27985,11945],[48231,7458],[23256,9672],[18515,24588],[14462,40962],[36495,73942],[3301,41869],[-11447,64229],[684,25634],[10651,27060],[17849,18982],[22563,6174],[26628,-11455],[18150,-24207],[14227,-52444],[18948,-31659],[16597,-3531],[39176,16113],[29363,5941],[52686,-944],[21548,8920],[46238,29804],[32480,-3856],[27152,-29612]],[[3362942,2691092],[-25051,-96285],[3842,-35617],[17924,-27037],[-2122,-30192],[-22143,-30641],[-70089,-59620],[-12214,-33619],[-3456,-44999],[-7815,-31028],[-52221,-128997]],[[3362942,2691092],[8706,-18218],[48442,-126047],[7978,-12757],[30185,-22130],[30631,6880],[43845,31310],[126646,133643],[98296,61941],[32935,35991],[26210,16718],[48413,4094],[47509,20101],[37057,7955],[26720,-4557],[31590,-13586],[31260,7753],[77780,53916],[52317,23685]],[[3209402,1236441],[19062,79503],[-778,53286],[-32105,125610],[-13592,23007],[-19754,11625],[-42824,8180],[-54334,478],[-19451,10364],[-13799,23412],[-8588,52598],[6158,146884],[6110,17594],[26081,-19788],[19143,4716],[47632,36922],[32945,6301],[54963,-8772],[33229,14447],[12084,22918],[17935,63717],[-2642,31076],[-20297,43193],[-2635,44355],[16608,81748],[-2260,39046],[-12747,23636],[-13344,9350],[-30253,1419],[-22352,-10209]],[[3989819,695911],[-40954,76310],[-18613,23853],[-38371,16999],[-16623,20924],[-15727,40399],[-19380,28571],[-38350,38519],[-10929,31769],[1826,26072],[-8800,21615],[-23631,4005],[-44444,-33941],[-27363,-47731],[-24074,-103558],[-11682,-21362],[-19517,-3930],[-23400,15674],[-46096,58833],[-24002,57174],[-9395,12196],[-26106,12909],[-78780,3129],[-21769,10944],[-10412,15733],[-10680,36128],[-24002,26451],[-22423,5233],[-33637,-4450],[-17647,12774],[-4009,46299],[11720,75401],[-7288,34358],[-19433,7058],[-56426,-3828]],[[4138507,666278],[-30632,28394],[-36860,19685],[-34306,6381],[-22110,-6574],[-24780,-18253]],[[3258044,249668],[21639,-750],[5847,-11539],[29163,3044],[11863,-14986],[-6320,25393],[13677,35139],[28158,-13161],[5864,-30471],[34910,-25182],[-5446,-33838],[5478,-29361],[-16507,-12403],[-13779,20736],[-27491,12286],[22643,14619],[-15784,21601],[-38025,-5986],[-17842,-11535],[-29207,26927],[-36665,27183],[-8794,32709],[-23433,9730],[979,17793],[-10777,35229],[35399,-24747],[15752,-24045],[1285,-22717],[17413,-21668]],[[3152781,346432],[-18130,14944],[15877,26065],[19284,-17022],[-2440,-17916],[-14591,-6071]],[[3283364,369317],[-1233,-37060],[16129,-5419],[4442,-13924],[-20704,152],[-3289,-19875],[28645,-16072],[2899,-22777],[-48823,27604],[-34046,56949],[26840,9411],[20858,29175],[-3585,15253],[-37436,12638],[8676,4495],[29006,-8904],[11621,-31646]],[[3120619,1117210],[22977,47128],[40786,27153],[25020,44950]],[[3989819,695911],[-19670,-14479],[-44168,-44629],[-25932,-38238],[28625,-11842],[14869,-22830],[-1905,-12612],[-46736,-25901],[-5827,-39714],[-13878,-37795],[8523,-34695],[-2478,-25791],[-11879,-39808],[18159,-58588],[24405,-12363],[6905,-26615],[-20429,-22484],[8559,-34131],[-11805,-13528],[-39283,7589],[-5535,-33811],[-19851,-51650],[-33235,-24974],[-32522,-9794],[-284,-27999],[-17552,-20661],[-42134,-18568],[-3823,31120],[3884,32468],[-24137,33655],[-7189,26472],[6971,65901],[-16609,24217],[4462,13507],[-38050,54034],[-19408,14031],[-10657,-2607],[-16841,29121],[7344,27627],[-5157,51971],[-15606,20920],[-26659,1483],[-10973,17036],[-17230,62400],[-22483,12421],[13255,-39028],[-10296,-7523],[4546,-41349],[-8338,1645],[274,43220],[-8355,37640],[-7670,85732],[-5131,26415],[2846,44759],[-6600,20034],[-13962,4319],[-6323,15978],[-53300,57209],[-6026,-1498],[-23026,51570],[-20192,1214],[-25839,41165],[-10672,-4045],[-19741,32815],[-34249,37870],[-10930,-5102],[-18502,16224],[-11448,-1800],[-4380,16674],[-29076,31977],[-20484,32961],[-1278,30738],[-39169,55756],[2085,15863]],[[3120619,1117210],[-17292,43854],[-19771,4885],[-9490,52218],[-14143,545],[289,20660],[-10065,28108],[-5098,68405],[-12836,26628],[-17784,15509],[-9274,25243],[-13452,12150],[-10393,-8643],[-19826,18209],[-12656,36148],[-14632,25709],[1379,20839],[19619,64490],[-18004,18138],[-20248,6735],[-15839,54840],[20921,68554],[-4140,9510],[-48732,28847],[-13350,37154],[4405,21435],[-5366,29750],[-12887,25353],[-25879,25695],[-7543,55347],[10709,15694],[-6550,31596],[-53542,27708],[-24453,32267],[8542,28683],[-3822,45495],[-21851,40539],[-9442,8076],[-47804,3571],[-30350,60349],[-15009,12002],[4058,25063],[-8412,18363],[-37485,24952],[-24823,35435],[-29278,10789],[-31792,30186],[-21647,41134],[-27940,8310],[-23422,33361],[-23036,22994],[-37625,-10965],[-43065,28124],[18036,-25874],[-8907,-2756],[-47201,37743],[-31595,20836],[-7069,19500],[-46843,52928],[-27548,58515],[-9393,10258],[13833,12689],[-13624,6645],[-13998,20866],[-4437,25776],[-15757,23193],[7195,25055],[-40187,17892],[897,26765],[16393,-13329],[-3680,21063],[-17991,13227],[-1156,-11651],[-33462,38958],[10005,17170],[-14681,11126],[-15196,-4230],[-15862,38133],[-860,25851],[-9584,25146],[-30158,30566],[-7531,37483],[7180,14774],[-20327,44610],[-20877,35588],[40043,38988],[5946,15068],[-3790,65764],[-7221,21311],[-11701,-14597],[-12183,38344],[-3590,82289],[14782,15543],[-2985,17783],[-17550,-21091],[-14854,48659],[-25198,39950],[-12807,38521],[-6004,65648],[13085,5175],[12471,-21019],[9471,-636],[4416,32835],[8822,7655],[8369,39881],[-12205,1117],[7423,22529],[5060,42756],[16724,21512],[5888,26524],[30394,47212],[-6691,19696],[-17010,-31418],[-12002,-2142],[7247,44203],[-2629,34734],[4741,35072],[-42533,114482],[14166,26169],[-22128,32484],[1297,-43990],[-18330,44064],[-12547,18473],[-22984,55989],[14179,-1530],[14183,-42848],[18226,-7292],[7020,11322],[-32090,61627],[-28284,15023],[-9792,-1870],[-15635,37818],[14394,32185],[-2593,35803],[-10235,-5973],[-29667,62654],[-13426,43804],[-2512,28211],[-12284,45820]]],"version":"2.9"};
'use strict'; var NAMESPACE = 'am'; var setNamespace = function(className) { return (NAMESPACE ? NAMESPACE + '-' : '') + className; }; module.exports = { NAMESPACE: NAMESPACE, CLASSES: { active: setNamespace('active'), disabled: setNamespace('disabled'), round: setNamespace('round'), radius: setNamespace('radius'), square: setNamespace('square'), circle: setNamespace('circle'), divider: setNamespace('divider'), cf: setNamespace('cf'), fl: setNamespace('fl'), fr: setNamespace('fr') }, STYLES: { default: 'default', primary: 'primary', secondary: 'secondary', success: 'success', warning: 'warning', danger: 'danger' }, SIZES: { } };
'use strict'; module.exports = { up: async (queryInterface, Sequelize) => { return queryInterface.bulkInsert('productsCollections', [{ productId: 3, collectionId: 2, createdAt: new Date(), updatedAt: new Date() }]); }, down: async (queryInterface, Sequelize) => { return queryInterface.bulkDelete('productsCollections', null, {}); } };
import React, { Component } from "react"; import { Link } from "react-router-dom"; import './styles.css'; class Header extends Component { render() { return ( <nav className="navbar navbar-default navbar-static-top navbar--bordered" role="navigation" > <h1 className="nav__heading">SB Admin v2.0</h1> </nav> ); } } export default Header;
"use strict"; let router = require('express').Router(); router.get('/', (req, res, next)=>{ res.status(200).send('Inventory Microservice'); }); module.exports = router;
import size from 'lodash/fp/size'; import toLower from 'lodash/fp/toLower'; import flow from 'lodash/fp/flow'; // eslint-disable-next-line import/prefer-default-export export const buildParticipantsList = participants => { if (size(participants) === 0) return null; if (size(participants) === 1) { return participants[0].name; } if (size(participants) === 2) { return `${participants[0].name} and ${participants[1].name}`; } const [firstParticipant, secondParticipant, ...remainingParticipants] = participants; return `${firstParticipant.name}, ${secondParticipant.name} and ${size(remainingParticipants)} others`; }; // Returns a number from 0-4294967295 // Copied from here - https://github.com/darkskyapp/string-hash export const stringToNumberHash = (str) => { let hash = 5381; let i = str.length; while (i) { // eslint-disable-next-line no-bitwise, no-plusplus hash = (hash * 33) ^ str.charCodeAt(--i); } /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed * integers. Since we want the results to be always positive, convert the * signed int to an unsigned by doing an unsigned bitshift. */ // eslint-disable-next-line no-bitwise return hash >>> 0; }; export const remap = ({ low1, high1, low2, high2 }) => (value) => // eslint-disable-next-line no-mixed-operators low2 + (high2 - low2) * (value - low1) / (high1 - low1); export const isEven = (num) => num % 2 === 0; export const range = num => [...Array(num).keys()]; export const randomBetween = (min, max) => Math.floor(Math.random() * max) + min; // export const nameToHueRotation = () => { // const num = randomBetween(0, 6); // const colors = { // 0: '50', // 1: '120', // 2: '150', // 3: '207', // 4: '285', // 5: '0', // }; // return `hue-rotate(${colors[num]}deg) saturate(2.0)`; // }; export const nameToHueRotation = flow( // Start by converting the name to lowercasr toLower, // Convert the lowercase name to a number hash stringToNumberHash, // Remap this number hash to a new range from 0-360 remap({ low1: 0, low2: 0, high1: 4294967295, high2: 360 }), // Round the value to an int Math.round, // Return the final value as a hue rotation filter val => `hue-rotate(${-val}deg) saturate(2.0) contrast(1.2)`, );
import React from "react"; import { render } from "@testing-library/react"; import { shallow } from "enzyme"; import Container from "../Container"; it("renders without crashing", () => { const div = document.createElement("div"); render(<Container />, div); });
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ 'use strict'; /** * A labeled example. * */ class ExampleLabelObject { /** * Create a ExampleLabelObject. * @property {string} [text] The sample's utterance. * @property {array} [entityLabels] The idenfied entities within the * utterance. * @property {string} [intentName] The idenfitied intent representing the * utterance. */ constructor() { } /** * Defines the metadata of ExampleLabelObject * * @returns {object} metadata of ExampleLabelObject * */ mapper() { return { required: false, serializedName: 'ExampleLabelObject', type: { name: 'Composite', className: 'ExampleLabelObject', modelProperties: { text: { required: false, serializedName: 'text', type: { name: 'String' } }, entityLabels: { required: false, serializedName: 'entityLabels', type: { name: 'Sequence', element: { required: false, serializedName: 'EntityLabelObjectElementType', type: { name: 'Composite', className: 'EntityLabelObject' } } } }, intentName: { required: false, serializedName: 'intentName', type: { name: 'String' } } } } }; } } module.exports = ExampleLabelObject;
import typescript from '@rollup/plugin-typescript'; import { terser } from 'rollup-plugin-terser'; export default { input: './src/app.ts', output: { dir: '.', format: 'iife', name: 'banglerun' }, plugins: [ typescript(), terser(), ] };
'use strict'; const FirebaseSupport = { init: function(log) { return $.getJSON('firebase-configuration.json', function(firebaseConfiguration) { if (firebase) { firebase.initializeApp(firebaseConfiguration); if ('serviceWorker' in navigator) { window.addEventListener('load', function() { navigator.serviceWorker.register('firebase-messaging-sw.js').then(function(registration) { firebase.messaging().useServiceWorker(registration); log.info('FirebaseSupport.init', 'ServiceWorker registration successful with scope: ', registration.scope); }, function(err) { log.error('FirebaseSupport.init', 'ServiceWorker registration failed: ', err); }); }); } return firebase.messaging(); } log.error('FirebaseSupport.init', 'no firebase.js imported'); return null; }); }, registerForPushCallback: function(log, chatClientInstance) { if (firebase && firebase.messaging()) { firebase.messaging().requestPermission().then(() => { log.info('FirebaseSupport.registerForPushCallback', 'permission request successful'); firebase.messaging().getToken().then((fcmToken) => { log.info('FirebaseSupport.registerForPushCallback', 'got fcm token', fcmToken); chatClientInstance.setPushRegistrationId('fcm', fcmToken); firebase.messaging().onMessage(payload => { log.info('FirebaseSupport.registerForPushCallback', 'push received', payload); if (chatClientInstance) { chatClientInstance.handlePushNotification(payload); } }); }).catch((err) => { log.error('FirebaseSupport.registerForPushCallback', 'can\'t get token', err); }); }).catch((err) => { log.error('FirebaseSupport.registerForPushCallback', 'can\'t request permission', err); }); } else { log.error('FirebaseSupport.registerForPushCallback', 'no firebase.js imported'); } } };
/** * Copyright 2016 The AMP HTML Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS-IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import {AdTracker, getExistingAds} from '../ad-tracker'; import {Services} from '../../../../src/services'; import {layoutRectLtwh} from '../../../../src/layout-rect'; describes.realWin('ad-tracker', {amp: true}, env => { let win, doc; let resources; let container; beforeEach(() => { win = env.win; doc = win.document; resources = Services.resourcesForDoc(doc); sandbox.stub(resources, 'getElementLayoutBox').callsFake(element => { return Promise.resolve(element.layoutBox); }); container = doc.createElement('div'); doc.body.appendChild(container); }); function addAd(layoutBox) { const ad = doc.createElement('amp-ad'); ad.setAttribute('type', 'adsense'); ad.setAttribute('layout', 'responsive'); ad.setAttribute('width', '300'); ad.setAttribute('height', '100'); ad.layoutBox = layoutBox; container.appendChild(ad); return ad; } function checkMinSpacing(adTracker, tooNearPos, okPos) { return adTracker.isTooNearAnAd(tooNearPos).then(tooNear => { expect(tooNear).to.equal(true); return adTracker.isTooNearAnAd(okPos).then(tooNear => { expect(tooNear).to.equal(false); }); }); } it('should return the correct ad count', () => { const adConstraints = { initialMinSpacing: 100, subsequentMinSpacing: [], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), ], adConstraints); expect(adTracker.getAdCount()).to.equal(1); adTracker.addAd(addAd(layoutRectLtwh(0, 100, 300, 50))); expect(adTracker.getAdCount()).to.equal(2); }); it('should find position is too near when close to ad above', () => { const adConstraints = { initialMinSpacing: 100, subsequentMinSpacing: [], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), ], adConstraints); return adTracker.isTooNearAnAd(149).then(tooNear => { expect(tooNear).to.equal(true); }); }); it('should find position is too near when close to ad below', () => { const adConstraints = { initialMinSpacing: 100, subsequentMinSpacing: [], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 100, 300, 50)), ], adConstraints); return adTracker.isTooNearAnAd(1).then(tooNear => { expect(tooNear).to.equal(true); }); }); it('should find position is too near when inside ad', () => { const adConstraints = { initialMinSpacing: 100, subsequentMinSpacing: [], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), ], adConstraints); return adTracker.isTooNearAnAd(25).then(tooNear => { expect(tooNear).to.equal(true); }); }); it('should find position is not too near an ad', () => { const adConstraints = { initialMinSpacing: 100, subsequentMinSpacing: [], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), addAd(layoutRectLtwh(0, 250, 300, 50)), ], adConstraints); return adTracker.isTooNearAnAd(150).then(tooNear => { expect(tooNear).to.equal(false); }); }); it('should use the initial min ad spacing', () => { const adConstraints = { initialMinSpacing: 500, subsequentMinSpacing: [], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), ], adConstraints); return checkMinSpacing(adTracker, 549, 550); }); it('should use a subsequent ad spacing when an existing ad present', () => { const adConstraints = { initialMinSpacing: 500, subsequentMinSpacing: [ {adCount: 1, spacing: 600}, ], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), ], adConstraints); return checkMinSpacing(adTracker, 649, 650); }); it('should use a subsequent ad spacing when two existing ads present', () => { const adConstraints = { initialMinSpacing: 500, subsequentMinSpacing: [ {adCount: 1, spacing: 600}, {adCount: 2, spacing: 700}, ], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), addAd(layoutRectLtwh(0, 0, 300, 50)), ], adConstraints); return checkMinSpacing(adTracker, 749, 750); }); it('should change min spacing as ads added', () => { const adConstraints = { initialMinSpacing: 500, subsequentMinSpacing: [ {adCount: 1, spacing: 600}, {adCount: 3, spacing: 700}, {adCount: 4, spacing: 800}, ], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), ], adConstraints); return checkMinSpacing(adTracker, 649, 650).then(() => { adTracker.addAd(addAd(layoutRectLtwh(0, 0, 300, 50))); return checkMinSpacing(adTracker, 649, 650).then(() => { adTracker.addAd(addAd(layoutRectLtwh(0, 0, 300, 50))); return checkMinSpacing(adTracker, 749, 750).then(() => { adTracker.addAd(addAd(layoutRectLtwh(0, 0, 300, 50))); return checkMinSpacing(adTracker, 849, 850); }); }); }); }); it('should add an ad to the tracker', () => { const adConstraints = { initialMinSpacing: 100, subsequentMinSpacing: [], maxAdCount: 10, }; const adTracker = new AdTracker([ addAd(layoutRectLtwh(0, 0, 300, 50)), ], adConstraints); adTracker.addAd(addAd(layoutRectLtwh(0, 100, 300, 50))); return adTracker.isTooNearAnAd(150).then(tooNear => { expect(tooNear).to.equal(true); }); }); }); describes.realWin('getExistingAds', {amp: true}, env => { let win; let doc; let ampdoc; beforeEach(() => { win = env.win; doc = win.document; ampdoc = env.ampdoc; }); it('should find all the amp-ads in the DOM', () => { const ad1 = doc.createElement('amp-ad'); doc.body.appendChild(ad1); const ad2 = doc.createElement('amp-ad'); doc.body.appendChild(ad2); const ad3 = doc.createElement('amp-ad'); doc.body.appendChild(ad3); const ad4 = doc.createElement('amp-sticky-ad'); doc.body.appendChild(ad4); ad4.appendChild(doc.createElement('amp-ad')); const ads = getExistingAds(ampdoc); expect(ads).to.have.lengthOf(3); expect(ads[0]).to.equal(ad1); expect(ads[1]).to.equal(ad2); expect(ads[2]).to.equal(ad3); }); });
mycallback( {"CONTRIBUTOR OCCUPATION": "Diagnostic Radiologist", "CONTRIBUTION AMOUNT (F3L Bundled)": "500.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "RSI", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "2708 Legacy Ct", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "OK", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "Michael", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20110110", "DONOR COMMITTEE NAME": "", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00343459", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "Reburn", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "740067449", "CONTRIBUTOR STREET 2": "", "CONDUIT CITY": "", "ENTITY TYPE": "IND", "CONTRIBUTOR CITY": "Bartlesville", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "38267178", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "15", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727353.fec_1.yml", "CONDUIT STATE": "", "CONTRIBUTOR ORGANIZATION NAME": "", "BACK REFERENCE TRAN ID NUMBER": "", "DONOR CANDIDATE PREFIX": "", "CONTRIBUTOR PREFIX": "Dr.", "CONDUIT ZIP": "", "CONDUIT NAME": "", "CONTRIBUTION AGGREGATE F3L Semi-annual Bundled": "500.00", "FORM TYPE": "SA11ai"}); mycallback( {"CONTRIBUTOR OCCUPATION": "Diagnostic Radiologist", "CONTRIBUTION AMOUNT (F3L Bundled)": "500.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "RSI", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "2708 Legacy Ct", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "OK", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "Michael", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20110110", "DONOR COMMITTEE NAME": "", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00343459", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "Reburn", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "740067449", "CONTRIBUTOR STREET 2": "", "CONDUIT CITY": "", "ENTITY TYPE": "IND", "CONTRIBUTOR CITY": "Bartlesville", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "38267178", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "15", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727353.fec_1.yml", "CONDUIT STATE": "", "CONTRIBUTOR ORGANIZATION NAME": "", "BACK REFERENCE TRAN ID NUMBER": "", "DONOR CANDIDATE PREFIX": "", "CONTRIBUTOR PREFIX": "Dr.", "CONDUIT ZIP": "", "CONDUIT NAME": "", "CONTRIBUTION AGGREGATE F3L Semi-annual Bundled": "500.00", "FORM TYPE": "SA11ai"});
function palindrome(str) { //lowercase the string and use a regular expression to remove unwanted characters var re = /[^A-Za-z0–9]/g; var reverseStr = lowRegStr.split('').reverse().join(''); return reverseStr === lowRegStr; } palindrome("tacocat");
/* * Toastr * Copyright 2012-2014 John Papa and Hans Fjällemark. * All Rights Reserved. * Use, reproduction, distribution, and modification of this code is subject to the terms and * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php * * Author: John Papa and Hans Fjällemark * ARIA Support: Greta Krafsig * Project: https://github.com/CodeSeven/toastr */ ; (function (define) { define(['jquery'], function ($) { return (function () { var $container; var listener; var toastId = 0; var toastType = { error: 'error', info: 'info', success: 'success', warning: 'warning' }; var toastr = { clear: clear, remove: remove, error: error, getContainer: getContainer, info: info, options: {}, subscribe: subscribe, success: success, version: '2.0.2', warning: warning }; return toastr; //#region Accessible Methods function error(message, title, optionsOverride) { return notify({ type: toastType.error, iconClass: getOptions().iconClasses.error, message: message, optionsOverride: optionsOverride, title: title }); } function info(message, title, optionsOverride) { return notify({ type: toastType.info, iconClass: getOptions().iconClasses.info, message: message, optionsOverride: optionsOverride, title: title }); } function subscribe(callback) { listener = callback; } function success(message, title, optionsOverride) { return notify({ type: toastType.success, iconClass: getOptions().iconClasses.success, message: message, optionsOverride: optionsOverride, title: title }); } function warning(message, title, optionsOverride) { return notify({ type: toastType.warning, iconClass: getOptions().iconClasses.warning, message: message, optionsOverride: optionsOverride, title: title }); } function clear($toastElement) { var options = getOptions(); if (!$container) { getContainer(options); } if (!clearToast($toastElement, options)) { clearContainer(options); } } function remove($toastElement) { var options = getOptions(); if (!$container) { getContainer(options); } if ($toastElement && $(':focus', $toastElement).length === 0) { removeToast($toastElement); return; } if ($container.children().length) { $container.remove(); } } //#endregion //#region Internal Methods function clearContainer(options){ var toastsToClear = $container.children(); for (var i = toastsToClear.length - 1; i >= 0; i--) { clearToast($(toastsToClear[i]), options); }; } function clearToast($toastElement, options){ if ($toastElement && $(':focus', $toastElement).length === 0) { $toastElement[options.hideMethod]({ duration: options.hideDuration, easing: options.hideEasing, complete: function () { removeToast($toastElement); } }); return true; } return false; } function getDefaults() { return { tapToDismiss: true, toastClass: 'toast', containerId: 'toast-container', debug: false, showMethod: 'fadeIn', //fadeIn, slideDown, and show are built into jQuery showDuration: 300, showEasing: 'swing', //swing and linear are built into jQuery onShown: undefined, hideMethod: 'fadeOut', hideDuration: 1000, hideEasing: 'swing', onHidden: undefined, extendedTimeOut: 1000, iconClasses: { error: 'toast-error', info: 'toast-info', success: 'toast-success', warning: 'toast-warning' }, iconClass: 'toast-info', positionClass: 'toast-top-right', timeOut: 5000, // Set timeOut and extendedTimeout to 0 to make it sticky titleClass: 'toast-title', messageClass: 'toast-message', target: 'body', closeHtml: '<button>&times;</button>', newestOnTop: true }; } function publish(args) { if (!listener) { return; } listener(args); } function notify(map) { var options = getOptions(), iconClass = map.iconClass || options.iconClass; if (typeof (map.optionsOverride) !== 'undefined') { options = $.extend(options, map.optionsOverride); iconClass = map.optionsOverride.iconClass || iconClass; } toastId++; $container = getContainer(options); var intervalId = null, $toastElement = $('<div/>'), $titleElement = $('<div/>'), $messageElement = $('<div/>'), $closeElement = $(options.closeHtml), response = { toastId: toastId, state: 'visible', startTime: new Date(), options: options, map: map }; if (map.iconClass) { $toastElement.addClass(options.toastClass).addClass(iconClass); } if (map.title) { $titleElement.append(map.title).addClass(options.titleClass); $toastElement.append($titleElement); } if (map.message) { $messageElement.append(map.message).addClass(options.messageClass); $toastElement.append($messageElement); } if (options.closeButton) { $closeElement.addClass('toast-close-button').attr("role", "button"); $toastElement.prepend($closeElement); } $toastElement.hide(); if (options.newestOnTop) { $container.prepend($toastElement); } else { $container.append($toastElement); } $toastElement[options.showMethod]( { duration: options.showDuration, easing: options.showEasing, complete: options.onShown } ); if (options.timeOut > 0) { intervalId = setTimeout(hideToast, options.timeOut); } $toastElement.hover(stickAround, delayedhideToast); if (!options.onclick && options.tapToDismiss) { $toastElement.click(hideToast); } if (options.closeButton && $closeElement) { $closeElement.click(function (event) { if( event.stopPropagation ) { event.stopPropagation(); } else if( event.cancelBubble !== undefined && event.cancelBubble !== true ) { event.cancelBubble = true; } hideToast(true); }); } if (options.onclick) { $toastElement.click(function () { options.onclick(); hideToast(); }); } publish(response); if (options.debug && console) { console.log(response); } return $toastElement; function hideToast(override) { if ($(':focus', $toastElement).length && !override) { return; } return $toastElement[options.hideMethod]({ duration: options.hideDuration, easing: options.hideEasing, complete: function () { removeToast($toastElement); if (options.onHidden && response.state !== 'hidden') { options.onHidden(); } response.state = 'hidden'; response.endTime = new Date(); publish(response); } }); } function delayedhideToast() { if (options.timeOut > 0 || options.extendedTimeOut > 0) { intervalId = setTimeout(hideToast, options.extendedTimeOut); } } function stickAround() { clearTimeout(intervalId); $toastElement.stop(true, true)[options.showMethod]( { duration: options.showDuration, easing: options.showEasing } ); } } function getContainer(options) { if (!options) { options = getOptions(); } $container = $('#' + options.containerId); if ($container.length) { return $container; } $container = $('<div/>') .attr('id', options.containerId) .addClass(options.positionClass) .attr('aria-live', 'polite') .attr('role', 'alert'); $container.appendTo($(options.target)); return $container; } function getOptions() { return $.extend({}, getDefaults(), toastr.options); } function removeToast($toastElement) { if (!$container) { $container = getContainer(); } if ($toastElement.is(':visible')) { return; } $toastElement.remove(); $toastElement = null; if ($container.children().length === 0) { $container.remove(); } } //#endregion })(); }); }(typeof define === 'function' && define.amd ? define : function (deps, factory) { if (typeof module !== 'undefined' && module.exports) { //Node module.exports = factory(require('jquery')); } else { window['toastr'] = factory(window['jQuery']); } }));
'use strict'; const readline = require('readline'); const input = readline.createInterface(process.stdin, process.stdout, null); input.question('What do you think? ', function (answer) { console.log('You say: %s', answer); input.close(); }); input.on('close', function () { console.log('\nBye!'); });
module.exports = { 'Беговые кроссовки': [ { 'id': '1f3', 'name': 'Gel', 'cost': 6600, 'brand': 'Asics' }, { 'id': 'a3d', 'name': 'Wave', 'cost': 5520, 'brand': 'Mizuno' }, { 'id': 'd2b', 'name': 'Del Mar', 'cost': 4930, 'brand': 'Zoot' }, { 'id': 'da1', 'name': 'Ruler', 'cost': 4536, 'brand': 'Mammut' }, { 'id': '1cd', 'name': 'Cabana', 'cost': 4389, 'brand': 'Puma' }, { 'id': 'bca', 'name': 'Runamuck', 'cost': 4194, 'brand': 'Five Ten' }, { 'id': 'hgf', 'name': 'LK Sport', 'cost': 4314, 'brand': 'Adidas' }, { 'id': '1bb', 'name': 'Patriot 5', 'cost': 3821, 'brand': 'Asics' }, { 'id': '1ba', 'name': 'Patriot 3', 'cost': 4821, 'brand': 'Asics' }, { 'id': 'l4c', 'name': 'S-Crown GTX', 'cost': 3497, 'brand': 'Lowa' }, { 'id': '13c', 'name': 'S-Crown', 'cost': 3797, 'brand': 'Lowa' }, { 'id': '1b2', 'name': 'X-Tour', 'cost': 3752, 'brand': 'Salomon' } ] };
"use strict";(self.webpackChunkdocusaurus_2=self.webpackChunkdocusaurus_2||[]).push([[852],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return d}});var i=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=i.createContext({}),s=function(e){var t=i.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},u=function(e){var t=s(e.components);return i.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return i.createElement(i.Fragment,{},t)}},m=i.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,l=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),m=s(n),d=r,y=m["".concat(l,".").concat(d)]||m[d]||p[d]||a;return n?i.createElement(y,o(o({ref:t},u),{},{components:n})):i.createElement(y,o({ref:t},u))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,o=new Array(a);o[0]=m;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c.mdxType="string"==typeof e?e:r,o[1]=c;for(var s=2;s<a;s++)o[s]=n[s];return i.createElement.apply(null,o)}return i.createElement.apply(null,n)}m.displayName="MDXCreateElement"},2355:function(e,t,n){n.r(t),n.d(t,{assets:function(){return u},contentTitle:function(){return l},default:function(){return d},frontMatter:function(){return c},metadata:function(){return s},toc:function(){return p}});var i=n(7462),r=n(3366),a=(n(7294),n(3905)),o=["components"],c={id:"likeable-union",title:"LikeableUnion"},l=void 0,s={unversionedId:"schema/unions/likeable-union",id:"schema/unions/likeable-union",title:"LikeableUnion",description:"Likeable union type",source:"@site/docs/schema/unions/likeable-union.mdx",sourceDirName:"schema/unions",slug:"/schema/unions/likeable-union",permalink:"/schema/unions/likeable-union",draft:!1,tags:[],version:"current",frontMatter:{id:"likeable-union",title:"LikeableUnion"},sidebar:"basic",previous:{title:"ActivityUnion",permalink:"/schema/unions/activity-union"},next:{title:"NotificationUnion",permalink:"/schema/unions/notification-union"}},u={},p=[{value:"Possible types",id:"possible-types",level:3},{value:"<code>ListActivity</code>",id:"listactivity",level:4},{value:"<code>TextActivity</code>",id:"textactivity",level:4},{value:"<code>MessageActivity</code>",id:"messageactivity",level:4},{value:"<code>ActivityReply</code>",id:"activityreply",level:4},{value:"<code>Thread</code>",id:"thread",level:4},{value:"<code>ThreadComment</code>",id:"threadcomment",level:4}],m={toc:p};function d(e){var t=e.components,n=(0,r.Z)(e,o);return(0,a.kt)("wrapper",(0,i.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Likeable union type"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-graphql"},"union LikeableUnion =\n ListActivity\n | TextActivity\n | MessageActivity\n | ActivityReply\n | Thread\n | ThreadComment\n")),(0,a.kt)("h3",{id:"possible-types"},"Possible types"),(0,a.kt)("h4",{id:"listactivity"},(0,a.kt)("a",{parentName:"h4",href:"/schema/objects/list-activity"},(0,a.kt)("inlineCode",{parentName:"a"},"ListActivity"))),(0,a.kt)("p",null,"User list activity (anime & manga updates)"),(0,a.kt)("h4",{id:"textactivity"},(0,a.kt)("a",{parentName:"h4",href:"/schema/objects/text-activity"},(0,a.kt)("inlineCode",{parentName:"a"},"TextActivity"))),(0,a.kt)("p",null,"User text activity"),(0,a.kt)("h4",{id:"messageactivity"},(0,a.kt)("a",{parentName:"h4",href:"/schema/objects/message-activity"},(0,a.kt)("inlineCode",{parentName:"a"},"MessageActivity"))),(0,a.kt)("p",null,"User message activity"),(0,a.kt)("h4",{id:"activityreply"},(0,a.kt)("a",{parentName:"h4",href:"/schema/objects/activity-reply"},(0,a.kt)("inlineCode",{parentName:"a"},"ActivityReply"))),(0,a.kt)("p",null,"Replay to an activity item"),(0,a.kt)("h4",{id:"thread"},(0,a.kt)("a",{parentName:"h4",href:"/schema/objects/thread"},(0,a.kt)("inlineCode",{parentName:"a"},"Thread"))),(0,a.kt)("p",null,"Forum Thread"),(0,a.kt)("h4",{id:"threadcomment"},(0,a.kt)("a",{parentName:"h4",href:"/schema/objects/thread-comment"},(0,a.kt)("inlineCode",{parentName:"a"},"ThreadComment"))),(0,a.kt)("p",null,"Forum Thread Comment"))}d.isMDXComponent=!0}}]);
import PropTypes from 'prop-types'; import React from 'react'; import { View, Dimensions } from 'react-native'; import { WebView } from 'react-native-webview'; export class Pivot extends React.Component { constructor(props) { super(props); } shouldComponentUpdate() { return false; } componentWillUnmount() { this.dispose(); } addCalculatedMeasure = (measure) => { this.runScript(`flexmonster.addCalculatedMeasure(${this.stringifyParams(measure)})`); } addCondition = (condition) => { this.runScript(`flexmonster.addCondition(${this.stringifyParams(condition)})`); } clear = () => { this.runScript(`flexmonster.clear()`); } clearFilter = (name) => { this.runScript(`flexmonster.clearFilter(${this.stringifyParams(name)})`); } closeFieldsList = () => { this.runScript(`flexmonster.closeFieldsList()`); } collapseAllData = () => { this.runScript(`flexmonster.collapseAllData()`); } collapseData = (name) => { this.runScript(`flexmonster.collapseData(${this.stringifyParams(name)})`); } connectTo = (params) => { this.runScript(`flexmonster.connectTo(${this.stringifyParams(params)})`); } dispose = () => { this.runScript(`flexmonster.dispose()`); } expandAllData = () => { this.runScript(`flexmonster.expandAllData()`); } expandData = (name) => { this.runScript(`flexmonster.expandData(${this.stringifyParams(name)})`); } exportTo = (params) => { return this.composePromiseWithCallback("exportTo", params); } getAllConditions = () => { return this.composePromise("getAllConditions"); } getAllHierarchies = () => { return this.composePromise("getAllHierarchies"); } getAllMeasures = () => { return this.composePromise("getAllMeasures"); } getCell = (rowIdx, colIdx) => { return this.composePromise("getCell", rowIdx, colIdx); } getColumns = () => { return this.composePromise("getColumns"); } getCondition = (name) => { return this.composePromise("getCondition", name); } getFilter = (name) => { return this.composePromise("getFilter", name); } getFormat = (name) => { return this.composePromise("getFormat", name); } getMeasures = () => { return this.composePromise("getMeasures"); } getMembers = (name) => { return this.composePromise("getMembers", name); } getOptions = () => { return this.composePromise("getOptions"); } getReport = () => { return this.composePromise("getReport"); } getReportFilters = () => { return this.composePromise("getReportFilters"); } getRows = () => { return this.composePromise("getRows"); } getSelectedCell = () => { return this.composePromise("getSelectedCell"); } getSort = (name) => { return this.composePromise("getSort", name); } getFlatSort = () => { return this.composePromise("getFlatSort"); } getXMLACatalogs = (url, dataSource) => { return this.composePromiseWithCallback("getXMLACatalogs", url, dataSource); } getXMLACubes = (url, dataSource, catalog) => { return this.composePromiseWithCallback("getXMLACubes", url, dataSource, catalog); } getXMLADataSources = (url) => { return this.composePromiseWithCallback("getXMLADataSources", url); } load = (url) => { this.runScript(`flexmonster.load(${this.stringifyParams(url)})`); } on = (eventName, callback) => { this._events[eventName] = callback; } off = (eventName) => { this._events[eventName] = false; } openCalculatedValueEditor = () => { this.runScript(`flexmonster.openCalculatedValueEditor()`); } openFieldsList = () => { this.runScript(`flexmonster.openFieldsList()`); } openFilter = (name) => { this.runScript(`flexmonster.openFilter(${this.stringifyParams(name)})`); } refresh = () => { this.runScript(`flexmonster.refresh()`); } removeAllCalculatedMeasures = () => { this.runScript(`flexmonster.removeAllCalculatedMeasures()`); } removeAllConditions = () => { this.runScript(`flexmonster.removeAllConditions()`); } removeCalculatedMeasure = (name) => { this.runScript(`flexmonster.removeCalculatedMeasure(${this.stringifyParams(name)})`); } removeCondition = (name) => { this.runScript(`flexmonster.removeCondition(${this.stringifyParams(name)})`); } removeSelection = () => { this.runScript(`flexmonster.removeSelection()`); } runQuery = (query) => { this.runScript(`flexmonster.runQuery(${this.stringifyParams(query)})`); } save = (params) => { this.runScript(`flexmonster.save(${this.stringifyParams(params)})`); } setFilter = (name, filter) => { this.runScript(`flexmonster.setFilter(${this.stringifyParams([name, filter])})`); } setFormat = (format) => { this.runScript(`flexmonster.setFormat(${this.stringifyParams(format)})`); } setOptions = (options) => { this.runScript(`flexmonster.setOptions(${this.stringifyParams(options)})`); } setReport = (report) => { this.runScript(`flexmonster.setReport(${this.stringifyParams(report)})`); } setSort = (name, sort) => { this.runScript(`flexmonster.setSort(${this.stringifyParams([name, sort])})`); } setFlatSort = (sort) => { this.runScript(`flexmonster.setFlatSort(${this.stringifyParams([sort])})`); } showCharts = (type) => { this.runScript(`flexmonster.showCharts(${this.stringifyParams(type)})`); } showGrid = () => { this.runScript(`flexmonster.showGrid()`); } showGridAndCharts = (chart, position) => { this.runScript(`flexmonster.showGridAndCharts(${this.stringifyParams([chart, position])})`); } sortValues = (axisName, type, tuple, measure) => { this.runScript(`flexmonster.sortValues(${this.stringifyParams([axisName, type, tuple, measure])})`); } updateData = (data) => { this.runScript(`flexmonster.updateData(${this.stringifyParams(data)})`); } scrollToRow = (rowIdx) => { this.runScript(`flexmonster.scrollToRow(${this.stringifyParams(rowIdx)})`); } scrollToColumn = (colIdx) => { this.runScript(`flexmonster.scrollToColumn(${this.stringifyParams(colIdx)})`); } render() { return ( <View style={{ flex: 1 }}> <WebView style={{ flex: 1, backgroundColor: 'transparent' }} originWhitelist={['*']} useWebkit javaScriptEnabled domStorageEnabled mixedContentMode="compatibility" scrollEnabled={false} automaticallyAdjustContentInsets allowFileAccess={true} allowUniversalAccessFromFileURLs={true} allowFileAccessFromFileURLs={true} mixedContentMode="always" onMessage={this.onMessage} source={{ html: this.htmlTemplate() }} ref={ webView => { this.webView = webView; } } /> </View> ); } onMessage = event => { var messageData = JSON.parse(event.nativeEvent.data); var messageType = messageData.type; if (messageType === "event") { if (this.props[messageData.name] instanceof Function) { if (this._events[messageData.name] !== false) { this.props[messageData.name](messageData.data); } } else if (this._events[messageData.name] instanceof Function) { this._events[messageData.name](messageData.data); } } else { if (this._callbacks[messageData.type]) this._callbacks[messageData.type](messageData.data); } } _events = {}; _callbacks = {}; composePromise = (callName, ...params) => { return new Promise( resolve => { this._callbacks[callName] = result => resolve(result); this.runScript(` var result = flexmonster.${callName}(${this.stringifyParams(params)}); var response = { type: "${callName}", data: result }; window.ReactNativeWebView.postMessage(JSON.stringify(response)); `); } ); } composePromiseWithCallback = (callName, ...params) => { return new Promise( resolve => { this._callbacks[callName] = result => resolve(result); this.runScript(` flexmonster.${callName}( ${this.stringifyParams(params)}, (result) => { var response = { type: "${callName}", data: result }; window.ReactNativeWebView.postMessage(JSON.stringify(response)); } ) `); } ); } stringifyParams = params => { if (params instanceof Array) { var strings = params.map( p => { return `JSON.parse(\`${JSON.stringify(p)}\`)`; } ); return strings.join(","); } else { return `JSON.parse(\`${JSON.stringify(params)}\`)`; } } runScript = scriptStr => { this.webView.injectJavaScript( `(function() { ${scriptStr} })();` ); } registerEvents = () => { var eventList = [ "afterchartdraw", "aftergriddraw", "beforegriddraw", "cellclick", "chartclick", "celldoubleclick", "datachanged", "dataerror", "datafilecancelled", "dataloaded", "drillthroughclose", "drillthroughopen", "exportcomplete", "exportstart", "fieldslistclose", "fieldslistopen", "filterclose", "filteropen", "loadingdata", "loadinglocalization", "loadingolapstructure", "loadingreportfile", "localizationerror", "localizationloaded", "olapstructureerror", "olapstructureloaded", "openingreportfile", "printcomplete", "printstart", "querycomplete", "queryerror", "ready", "reportchange", "reportcomplete", "reportfilecancelled", "reportfileerror", "runningquery", "unauthorizederror", "update" ]; var strings = eventList.map( eventName => { // if (this.props[eventName]) { return ` flexmonster.on('${eventName}', function (eventData) { var response = { type: "event", name: "${eventName}", data: eventData }; window.ReactNativeWebView.postMessage(JSON.stringify(response)); }); ` // } } ); return strings.join(""); } htmlTemplate = () => { return ( ` <!DOCTYPE html> <html> <head> <title>Flexmonster Pivot Table & Charts</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.flexmonster.com/flexmonster.min.css" rel="stylesheet"> <script src="https://cdn.flexmonster.com/toolbar/flexmonster.toolbar.js"></script> <script src="https://cdn.flexmonster.com/flexmonster.js"></script> <script src="https://cdn.flexmonster.com/lib/d3.v3.min.js"></script> <script src="https://cdn.flexmonster.com/lib/canvg.min.js"></script> <script src="https://cdn.flexmonster.com/lib/html2canvas.min.js"></script> <script src="https://cdn.flexmonster.com/lib/jspdf.min.js"></script> <script src="https://cdn.flexmonster.com/lib/promise.min.js"></script> <script src="https://cdn.flexmonster.com/lib/sha1.min.js"></script> </head> <body style="margin:0; padding:0; display: flex; height: 100vh;"> <div id="pivot-container"></div> <script> new Flexmonster({ container: "#pivot-container", componentFolder: "https://cdn.flexmonster.com/", toolbar: true, height: "100%", width: "100%", licenseKey: '${this.props.licenseKey === undefined ? "" : this.props.licenseKey}', report: JSON.parse('${JSON.stringify(this.props.report)}'), accessibility: JSON.parse('${JSON.stringify(this.props.accessibility || {})}') }); ${this.registerEvents()} </script> </body> </html> `); } } Pivot.propTypes = { afterchartdraw: PropTypes.func, aftergriddraw: PropTypes.func, beforegriddraw: PropTypes.func, cellclick: PropTypes.func, celldoubleclick: PropTypes.func, chartclick: PropTypes.func, datachanged: PropTypes.func, dataerror: PropTypes.func, datafilecancelled: PropTypes.func, dataloaded: PropTypes.func, fieldslistclose: PropTypes.func, fieldslistopen: PropTypes.func, filterclose: PropTypes.func, filteropen: PropTypes.func, fullscreen: PropTypes.func, licenseKey: PropTypes.string, loadingdata: PropTypes.func, loadinglocalization: PropTypes.func, loadingolapstructure: PropTypes.func, loadingreportfile: PropTypes.func, localizationerror: PropTypes.func, localizationloaded: PropTypes.func, olapstructureerror: PropTypes.func, olapstructureloaded: PropTypes.func, openingreportfile: PropTypes.func, querycomplete: PropTypes.func, queryerror: PropTypes.func, ready: PropTypes.func, report: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), reportchange: PropTypes.func, reportcomplete: PropTypes.func, reportfilecancelled: PropTypes.func, reportfileerror: PropTypes.func, reportfileloaded: PropTypes.func, runningquery: PropTypes.func, unauthorizederror: PropTypes.func, update: PropTypes.func, accessibility: PropTypes.object } export default Pivot;
import redis from "redis"; import { promisify } from "util"; import logger from "../util/logger"; const client = redis.createClient(); const get = promisify(client.get).bind(client); function onError(error) { logger.log(error, logger.LEVELS.ERROR); } function onReady() { logger.log( "Cache connection has been established successfully.", logger.LEVELS.INFO ); } client.on("error", onError); client.on("ready", onReady); async function set(key, value) { return client.set(key, value); } export default { set, get };
import DisplayObject from './display-object.js' import util from '../../common/util' import Events from '../../common/event' class Bitmap extends DisplayObject { constructor (img, onLoad) { super() if (typeof img === 'string') { if (Bitmap.cache[img]) { if(util.isWeapp){ this.img = Bitmap.cache[img].img this.rect = [0, 0, Bitmap.cache[img].width, Bitmap.cache[img].height] this.width = this.rect[2] this.height = this.rect[3] }else{ this.img = Bitmap.cache[img] this.rect = [0, 0, this.img.width, this.img.height] this.width = this.img.width this.height = this.img.height } onLoad && onLoad.call(this) } else if (util.isWeapp) { this.img = img Bitmap.loading[img] = new Promise((resolve, reject) => { util.getImageInWx(img, (result) => { this.img = result.img if (!this.rect) { this.rect = [0, 0, result.width, result.height] } this.width = result.width this.height = result.height onLoad && onLoad.call(this) Bitmap.cache[img] = result Bitmap.loading[img] = true resolve() }) }) } else { this.img = util.isWegame ? wx.createImage() : new window.Image() this.visible = false this.img.onload = () => { this.visible = true if (!this.rect) { this.rect = [0, 0, this.img.width, this.img.height] } this.width = this.img.width this.height = this.img.height onLoad && onLoad.call(this) Bitmap.cache[img] = this.img } this.img.src = img } } else { this.img = img this.rect = [0, 0, img.width, img.height] this.width = img.width this.height = img.height Bitmap.cache[img.src] = img } } clone () { let bitmap = new Bitmap(this.img) bitmap.x = this.x bitmap.y = this.y bitmap.scaleX = this.scaleX bitmap.scaleY = this.scaleY bitmap.rotation = this.rotation bitmap.skewX = this.skewX bitmap.skewY = this.skewY bitmap.originX = this.originX bitmap.originY = this.originY bitmap.width = this.width bitmap.height = this.height return bitmap } } Bitmap.cache = { } Bitmap.loading = { } Events.mixTo(Bitmap) export default Bitmap
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _rxStorageLokijs = require("./rx-storage-lokijs"); Object.keys(_rxStorageLokijs).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _rxStorageLokijs[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function get() { return _rxStorageLokijs[key]; } }); }); var _lokijsHelper = require("./lokijs-helper"); Object.keys(_lokijsHelper).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _lokijsHelper[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function get() { return _lokijsHelper[key]; } }); }); var _rxStorageInstanceLoki = require("./rx-storage-instance-loki"); Object.keys(_rxStorageInstanceLoki).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _rxStorageInstanceLoki[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function get() { return _rxStorageInstanceLoki[key]; } }); }); var _rxStorageKeyObjectInstanceLoki = require("./rx-storage-key-object-instance-loki"); Object.keys(_rxStorageKeyObjectInstanceLoki).forEach(function (key) { if (key === "default" || key === "__esModule") return; if (key in exports && exports[key] === _rxStorageKeyObjectInstanceLoki[key]) return; Object.defineProperty(exports, key, { enumerable: true, get: function get() { return _rxStorageKeyObjectInstanceLoki[key]; } }); }); //# sourceMappingURL=index.js.map
import React from 'react'; // import Icon from 'react-native-vector-icons/FontAwesome'; import Main from '../components/Login'; import { SafeAreaView } from 'react-native'; const Login = ({ navigation }) => { return ( <> <SafeAreaView style={{ flex: 1, backgroundColor: '#F6F7F8' }}> <Main navigation={navigation} /> </SafeAreaView> </> ); }; export default Login;
exports.newAlgorithmicTradingBotModulesTradingEpisode = function (processIndex) { /* This module packages all functions related to Episodes. */ let thisObject = { mantain: mantain, reset: reset, openEpisode: openEpisode, updateExitType: updateExitType, closeEpisode: closeEpisode, cycleBasedStatistics: cycleBasedStatistics, initialize: initialize, finalize: finalize } let tradingEngine let tradingSystem let sessionParameters return thisObject function initialize() { tradingSystem = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SIMULATION_STATE.tradingSystem tradingEngine = TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SIMULATION_STATE.tradingEngine sessionParameters = TS.projects.foundations.globals.processConstants.CONSTANTS_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_NODE.tradingParameters } function finalize() { tradingEngine = undefined tradingSystem = undefined sessionParameters = undefined } function mantain() { updateCounters() updateStatistics() updateEnds() updateDistanceToTradingEventsCounters() } function reset() { resetTradingEngineDataStructure() } function openEpisode() { /* This function is called each time the simulation starts. That does not mean the Episode must be opened there, since it might happen that it is looping at the end of the market or the task / session was restarted. We will only execute if the episode was never opened before. */ if (tradingEngine.tradingCurrent.tradingEpisode.begin.value !== tradingEngine.tradingCurrent.tradingEpisode.begin.config.initialValue) { return } /* Starting begin and end */ tradingEngine.tradingCurrent.tradingEpisode.begin.value = tradingEngine.tradingCurrent.tradingEpisode.candle.begin.value tradingEngine.tradingCurrent.tradingEpisode.end.value = tradingEngine.tradingCurrent.tradingEpisode.candle.end.value /* Getting the begin Balance from the session configuration */ tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.beginBalance.value = sessionParameters.sessionBaseAsset.config.initialBalance tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.beginBalance.value = sessionParameters.sessionQuotedAsset.config.initialBalance /* The current balance is also the begin balance, that is how this starts. */ tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.balance.value = sessionParameters.sessionBaseAsset.config.initialBalance tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.balance.value = sessionParameters.sessionQuotedAsset.config.initialBalance /* Recording the opening at the Trading Engine Data Structure */ tradingEngine.tradingCurrent.tradingEpisode.status.value = 'Open' tradingEngine.tradingCurrent.tradingEpisode.serialNumber.value = 1 tradingEngine.tradingCurrent.tradingEpisode.identifier.value = SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId() tradingEngine.tradingCurrent.tradingEpisode.beginRate.value = tradingEngine.tradingCurrent.tradingEpisode.candle.close.value } function updateExitType(exitType) { tradingEngine.tradingCurrent.tradingEpisode.exitType.value = exitType } function closeEpisode() { tradingEngine.tradingCurrent.tradingEpisode.status.value = 'Closed' tradingEngine.tradingCurrent.tradingEpisode.end.value = tradingEngine.tradingCurrent.tradingEpisode.candle.end.value tradingEngine.tradingCurrent.tradingEpisode.endRate.value = tradingEngine.tradingCurrent.tradingEpisode.candle.close.value tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.endBalance.value = tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.balance.value tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.endBalance.value = tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.balance.value } function resetEpisode() { TS.projects.foundations.globals.processModuleObjects.MODULE_OBJECTS_BY_PROCESS_INDEX_MAP.get(processIndex).TRADING_ENGINE_MODULE_OBJECT.initializeNode(tradingEngine.tradingCurrent.learningEpisode) } function updateEnds() { if (tradingEngine.tradingCurrent.tradingEpisode.status.value === 'Open') { tradingEngine.tradingCurrent.tradingEpisode.end.value = tradingEngine.tradingCurrent.tradingEpisode.end.value + sessionParameters.timeFrame.config.value tradingEngine.tradingCurrent.tradingEpisode.endRate.value = tradingEngine.tradingCurrent.tradingEpisode.candle.close.value tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.endBalance.value = tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.balance.value tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.endBalance.value = tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.balance.value } } function resetTradingEngineDataStructure() { if (tradingEngine.tradingCurrent.tradingEpisode.status.value === 'Closed') { resetEpisode() } } function updateCounters() { if (tradingEngine.tradingCurrent.tradingEpisode.status.value === 'Open') { tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.periods.value++ } } function updateStatistics() { /* Daus Calculation */ tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.days.value = tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.periods.value * sessionParameters.timeFrame.config.value / SA.projects.foundations.globals.timeConstants.ONE_DAY_IN_MILISECONDS } function cycleBasedStatistics() { calculateAssetsStatistics() calculateEpisodeStatistics() function calculateAssetsStatistics() { /* Updating Profit Loss */ tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value = tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.balance.value - sessionParameters.sessionBaseAsset.config.initialBalance tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value = tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.balance.value - sessionParameters.sessionQuotedAsset.config.initialBalance tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value, 10) tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value, 10) /* Updating ROI https://www.investopedia.com/articles/basics/10/guide-to-calculating-roi.asp */ tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.ROI.value = tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value / tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.beginBalance.value * 100 tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.ROI.value = tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value / tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.beginBalance.value * 100 tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.ROI.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.ROI.value, 10) tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.ROI.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.ROI.value, 10) /* Updating Hit Ratio */ if (tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.positions.value > 0) { tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.hitRatio.value = tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.hits.value / tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.positions.value tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.hitRatio.value = tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.hits.value / tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeCounters.positions.value tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.hitRatio.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.hitRatio.value, 10) tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.hitRatio.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.hitRatio.value, 10) } /* Updating Annualized Rate Of Return https://www.investopedia.com/terms/a/annualized-rate.asp */ tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.annualizedRateOfReturn.value = Math.pow( ( tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.beginBalance.value + tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value ) / tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.beginBalance.value , (365 / tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.days.value) ) - 1 tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.annualizedRateOfReturn.value = Math.pow( ( tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.beginBalance.value + tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value ) / tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.beginBalance.value , (365 / tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.days.value) ) - 1 tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.annualizedRateOfReturn.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.annualizedRateOfReturn.value, 10) tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.annualizedRateOfReturn.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.annualizedRateOfReturn.value, 10) /* Updating Hit or Fail */ if (tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value > 0) { tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.hitFail.value = 'Hit' } else { tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.hitFail.value = 'Fail' } if (tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value > 0) { tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.hitFail.value = 'Hit' } else { tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.hitFail.value = 'Fail' } } function calculateEpisodeStatistics() { /* Updating Profit Loss */ tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.profitLoss.value = tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value * tradingEngine.tradingCurrent.tradingEpisode.candle.close.value + tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.profitLoss.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.profitLoss.value, 10) /* Updating ROI https://www.investopedia.com/articles/basics/10/guide-to-calculating-roi.asp */ tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.ROI.value = ( tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value * tradingEngine.tradingCurrent.tradingEpisode.endRate.value + tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value ) / ( tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.beginBalance.value * tradingEngine.tradingCurrent.tradingEpisode.beginRate.value + tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.beginBalance.value ) * 100 tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.ROI.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.ROI.value, 10) /* Updating Annualized Rate Of Return https://www.investopedia.com/terms/a/annualized-rate.asp */ tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.annualizedRateOfReturn.value = Math.pow( ( tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.beginBalance.value * tradingEngine.tradingCurrent.tradingEpisode.beginRate.value + tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.beginBalance.value + tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.profitLoss.value + tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.profitLoss.value ) / ( tradingEngine.tradingCurrent.tradingEpisode.episodeBaseAsset.beginBalance.value * tradingEngine.tradingCurrent.tradingEpisode.beginRate.value + tradingEngine.tradingCurrent.tradingEpisode.episodeQuotedAsset.beginBalance.value ) , (365 / tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.days.value) ) - 1 tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.annualizedRateOfReturn.value = TS.projects.foundations.utilities.miscellaneousFunctions.truncateToThisPrecision(tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.annualizedRateOfReturn.value, 10) /* Updating Hit or Fail */ if (tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.profitLoss.value > 0) { tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.hitFail.value = 'Hit' } else { tradingEngine.tradingCurrent.tradingEpisode.tradingEpisodeStatistics.hitFail.value = 'Fail' } } } function updateDistanceToTradingEventsCounters() { /* Keeping Distance Counters Up-to-date while avoinding counting before the first event happens. */ if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.triggerOn.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.triggerOn.value++ } if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.triggerOff.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.triggerOff.value++ } if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.takePosition.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.takePosition.value++ } if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.closePosition.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.closePosition.value++ } if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.nextPhase.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.nextPhase.value++ } if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.moveToPhase.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.moveToPhase.value++ } if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.createOrder.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.createOrder.value++ } if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.cancelOrder.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.cancelOrder.value++ } if ( tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.closeOrder.value > 0 ) { tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.closeOrder.value++ } } }
import { CommandsManager, ExtensionManager, ServicesManager, HotkeysManager, UINotificationService, UIModalService, UIDialogService, UIViewportDialogService, MeasurementService, DisplaySetService, ToolBarService, ViewportGridService, HangingProtocolService, CineService, UserAuthenticationService, errorHandler // utils, } from '@ohif/core'; import ConfigPoint from 'config-point'; /** * @param {object|func} appConfigOrFunc - application configuration, or a function that returns application configuration * @param {object[]} defaultExtensions - array of extension objects */ function appInit(appConfigOrFunc, defaultExtensions) { const appConfig = { ...(typeof appConfigOrFunc === 'function' ? appConfigOrFunc({ servicesManager }) : appConfigOrFunc), }; const commandsManagerConfig = { getAppState: () => {}, /** Used by commands to determine active context */ getActiveContexts: () => [ 'VIEWER', 'DEFAULT', 'ACTIVE_VIEWPORT::CORNERSTONE', ], }; const commandsManager = new CommandsManager(commandsManagerConfig); const servicesManager = new ServicesManager(commandsManager); const hotkeysManager = new HotkeysManager(commandsManager, servicesManager); const extensionManager = new ExtensionManager({ commandsManager, servicesManager, hotkeysManager, appConfig, }); // Load the default theme settings const defaultTheme = config && config.defaultTheme || 'theme'; ConfigPoint.load(defaultTheme, '/theme', 'theme'); servicesManager.registerServices([ UINotificationService, UIModalService, UIDialogService, UIViewportDialogService, MeasurementService, DisplaySetService, ToolBarService, ViewportGridService, HangingProtocolService, CineService, UserAuthenticationService, ]); errorHandler.getHTTPErrorHandler = () => { if (typeof appConfig.httpErrorHandler === 'function') { return appConfig.httpErrorHandler; } }; /** * Example: [ext1, ext2, ext3] * Example2: [[ext1, config], ext2, [ext3, config]] */ extensionManager.registerExtensions( [...defaultExtensions, ...appConfig.extensions], appConfig.dataSources ); // TODO: We no longer use `utils.addServer` // TODO: We no longer init webWorkers at app level // TODO: We no longer init the user Manager if (!appConfig.modes) { throw new Error('No modes are defined! Check your app-config.js'); } // TODO: Remove this if (!appConfig.modes.length) { appConfig.modes.push(window.longitudinalMode); // appConfig.modes.push(window.segmentationMode); } return { appConfig, commandsManager, extensionManager, servicesManager, hotkeysManager, }; } export default appInit;
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["donut"] = factory(); else root["britecharts"] = root["britecharts"] || {}, root["britecharts"]["donut"] = factory(); })(typeof self !== 'undefined' ? self : this, function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ } /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 297); /******/ }) /************************************************************************/ /******/ ([ /* 0 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = newInterval; var t0 = new Date, t1 = new Date; function newInterval(floori, offseti, count, field) { function interval(date) { return floori(date = new Date(+date)), date; } interval.floor = interval; interval.ceil = function(date) { return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; }; interval.round = function(date) { var d0 = interval(date), d1 = interval.ceil(date); return date - d0 < d1 - date ? d0 : d1; }; interval.offset = function(date, step) { return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; }; interval.range = function(start, stop, step) { var range = [], previous; start = interval.ceil(start); step = step == null ? 1 : Math.floor(step); if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date do range.push(previous = new Date(+start)), offseti(start, step), floori(start); while (previous < start && start < stop); return range; }; interval.filter = function(test) { return newInterval(function(date) { if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1); }, function(date, step) { if (date >= date) { if (step < 0) while (++step <= 0) { while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty } else while (--step >= 0) { while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty } } }); }; if (count) { interval.count = function(start, end) { t0.setTime(+start), t1.setTime(+end); floori(t0), floori(t1); return Math.floor(count(t0, t1)); }; interval.every = function(step) { step = Math.floor(step); return !isFinite(step) || !(step > 0) ? null : !(step > 1) ? interval : interval.filter(field ? function(d) { return field(d) % step === 0; } : function(d) { return interval.count(0, d) % step === 0; }); }; } return interval; } /***/ }), /* 1 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return root; }); /* harmony export (immutable) */ __webpack_exports__["a"] = Selection; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__select__ = __webpack_require__(146); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__selectAll__ = __webpack_require__(147); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__filter__ = __webpack_require__(148); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__data__ = __webpack_require__(149); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__enter__ = __webpack_require__(66); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__exit__ = __webpack_require__(151); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__merge__ = __webpack_require__(152); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__order__ = __webpack_require__(153); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__sort__ = __webpack_require__(154); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__call__ = __webpack_require__(155); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__nodes__ = __webpack_require__(156); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__node__ = __webpack_require__(157); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__size__ = __webpack_require__(158); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__empty__ = __webpack_require__(159); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__each__ = __webpack_require__(160); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__attr__ = __webpack_require__(161); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__style__ = __webpack_require__(68); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__property__ = __webpack_require__(162); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__classed__ = __webpack_require__(163); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__text__ = __webpack_require__(164); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__html__ = __webpack_require__(165); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__raise__ = __webpack_require__(166); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__lower__ = __webpack_require__(167); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__append__ = __webpack_require__(168); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__insert__ = __webpack_require__(169); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__remove__ = __webpack_require__(170); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__clone__ = __webpack_require__(171); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__datum__ = __webpack_require__(172); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__on__ = __webpack_require__(39); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__dispatch__ = __webpack_require__(173); var root = [null]; function Selection(groups, parents) { this._groups = groups; this._parents = parents; } function selection() { return new Selection([[document.documentElement]], root); } Selection.prototype = selection.prototype = { constructor: Selection, select: __WEBPACK_IMPORTED_MODULE_0__select__["a" /* default */], selectAll: __WEBPACK_IMPORTED_MODULE_1__selectAll__["a" /* default */], filter: __WEBPACK_IMPORTED_MODULE_2__filter__["a" /* default */], data: __WEBPACK_IMPORTED_MODULE_3__data__["a" /* default */], enter: __WEBPACK_IMPORTED_MODULE_4__enter__["b" /* default */], exit: __WEBPACK_IMPORTED_MODULE_5__exit__["a" /* default */], merge: __WEBPACK_IMPORTED_MODULE_6__merge__["a" /* default */], order: __WEBPACK_IMPORTED_MODULE_7__order__["a" /* default */], sort: __WEBPACK_IMPORTED_MODULE_8__sort__["a" /* default */], call: __WEBPACK_IMPORTED_MODULE_9__call__["a" /* default */], nodes: __WEBPACK_IMPORTED_MODULE_10__nodes__["a" /* default */], node: __WEBPACK_IMPORTED_MODULE_11__node__["a" /* default */], size: __WEBPACK_IMPORTED_MODULE_12__size__["a" /* default */], empty: __WEBPACK_IMPORTED_MODULE_13__empty__["a" /* default */], each: __WEBPACK_IMPORTED_MODULE_14__each__["a" /* default */], attr: __WEBPACK_IMPORTED_MODULE_15__attr__["a" /* default */], style: __WEBPACK_IMPORTED_MODULE_16__style__["a" /* default */], property: __WEBPACK_IMPORTED_MODULE_17__property__["a" /* default */], classed: __WEBPACK_IMPORTED_MODULE_18__classed__["a" /* default */], text: __WEBPACK_IMPORTED_MODULE_19__text__["a" /* default */], html: __WEBPACK_IMPORTED_MODULE_20__html__["a" /* default */], raise: __WEBPACK_IMPORTED_MODULE_21__raise__["a" /* default */], lower: __WEBPACK_IMPORTED_MODULE_22__lower__["a" /* default */], append: __WEBPACK_IMPORTED_MODULE_23__append__["a" /* default */], insert: __WEBPACK_IMPORTED_MODULE_24__insert__["a" /* default */], remove: __WEBPACK_IMPORTED_MODULE_25__remove__["a" /* default */], clone: __WEBPACK_IMPORTED_MODULE_26__clone__["a" /* default */], datum: __WEBPACK_IMPORTED_MODULE_27__datum__["a" /* default */], on: __WEBPACK_IMPORTED_MODULE_28__on__["b" /* default */], dispatch: __WEBPACK_IMPORTED_MODULE_29__dispatch__["a" /* default */] }; /* harmony default export */ __webpack_exports__["b"] = (selection); /***/ }), /* 2 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export CREATED */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SCHEDULED; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return STARTING; }); /* unused harmony export STARTED */ /* unused harmony export RUNNING */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ENDING; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENDED; }); /* harmony export (immutable) */ __webpack_exports__["g"] = init; /* harmony export (immutable) */ __webpack_exports__["h"] = set; /* harmony export (immutable) */ __webpack_exports__["f"] = get; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_dispatch__ = __webpack_require__(73); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_timer__ = __webpack_require__(70); var emptyOn = Object(__WEBPACK_IMPORTED_MODULE_0_d3_dispatch__["dispatch"])("start", "end", "interrupt"); var emptyTween = []; var CREATED = 0; var SCHEDULED = 1; var STARTING = 2; var STARTED = 3; var RUNNING = 4; var ENDING = 5; var ENDED = 6; /* harmony default export */ __webpack_exports__["e"] = (function(node, name, id, index, group, timing) { var schedules = node.__transition; if (!schedules) node.__transition = {}; else if (id in schedules) return; create(node, id, { name: name, index: index, // For context during callback. group: group, // For context during callback. on: emptyOn, tween: emptyTween, time: timing.time, delay: timing.delay, duration: timing.duration, ease: timing.ease, timer: null, state: CREATED }); }); function init(node, id) { var schedule = get(node, id); if (schedule.state > CREATED) throw new Error("too late; already scheduled"); return schedule; } function set(node, id) { var schedule = get(node, id); if (schedule.state > STARTING) throw new Error("too late; already started"); return schedule; } function get(node, id) { var schedule = node.__transition; if (!schedule || !(schedule = schedule[id])) throw new Error("transition not found"); return schedule; } function create(node, id, self) { var schedules = node.__transition, tween; // Initialize the self timer when the transition is created. // Note the actual delay is not known until the first callback! schedules[id] = self; self.timer = Object(__WEBPACK_IMPORTED_MODULE_1_d3_timer__["c" /* timer */])(schedule, 0, self.time); function schedule(elapsed) { self.state = SCHEDULED; self.timer.restart(start, self.delay, self.time); // If the elapsed delay is less than our first sleep, start immediately. if (self.delay <= elapsed) start(elapsed - self.delay); } function start(elapsed) { var i, j, n, o; // If the state is not SCHEDULED, then we previously errored on start. if (self.state !== SCHEDULED) return stop(); for (i in schedules) { o = schedules[i]; if (o.name !== self.name) continue; // While this element already has a starting transition during this frame, // defer starting an interrupting transition until that transition has a // chance to tick (and possibly end); see d3/d3-transition#54! if (o.state === STARTED) return Object(__WEBPACK_IMPORTED_MODULE_1_d3_timer__["b" /* timeout */])(start); // Interrupt the active transition, if any. // Dispatch the interrupt event. if (o.state === RUNNING) { o.state = ENDED; o.timer.stop(); o.on.call("interrupt", node, node.__data__, o.index, o.group); delete schedules[i]; } // Cancel any pre-empted transitions. No interrupt event is dispatched // because the cancelled transitions never started. Note that this also // removes this transition from the pending list! else if (+i < id) { o.state = ENDED; o.timer.stop(); delete schedules[i]; } } // Defer the first tick to end of the current frame; see d3/d3#1576. // Note the transition may be canceled after start and before the first tick! // Note this must be scheduled before the start event; see d3/d3-transition#16! // Assuming this is successful, subsequent callbacks go straight to tick. Object(__WEBPACK_IMPORTED_MODULE_1_d3_timer__["b" /* timeout */])(function() { if (self.state === STARTED) { self.state = RUNNING; self.timer.restart(tick, self.delay, self.time); tick(elapsed); } }); // Dispatch the start event. // Note this must be done before the tween are initialized. self.state = STARTING; self.on.call("start", node, node.__data__, self.index, self.group); if (self.state !== STARTING) return; // interrupted self.state = STARTED; // Initialize the tween, deleting null tween. tween = new Array(n = self.tween.length); for (i = 0, j = -1; i < n; ++i) { if (o = self.tween[i].value.call(node, node.__data__, self.index, self.group)) { tween[++j] = o; } } tween.length = j + 1; } function tick(elapsed) { var t = elapsed < self.duration ? self.ease.call(null, elapsed / self.duration) : (self.timer.restart(stop), self.state = ENDING, 1), i = -1, n = tween.length; while (++i < n) { tween[i].call(null, t); } // Dispatch the end event. if (self.state === ENDING) { self.on.call("end", node, node.__data__, self.index, self.group); stop(); } } function stop() { self.state = ENDED; self.timer.stop(); delete schedules[id]; for (var i in schedules) return; // eslint-disable-line no-unused-vars delete node.__transition; } } /***/ }), /* 3 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_create__ = __webpack_require__(145); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "create", function() { return __WEBPACK_IMPORTED_MODULE_0__src_create__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_creator__ = __webpack_require__(21); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "creator", function() { return __WEBPACK_IMPORTED_MODULE_1__src_creator__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_local__ = __webpack_require__(174); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "local", function() { return __WEBPACK_IMPORTED_MODULE_2__src_local__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_matcher__ = __webpack_require__(65); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matcher", function() { return __WEBPACK_IMPORTED_MODULE_3__src_matcher__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_mouse__ = __webpack_require__(175); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mouse", function() { return __WEBPACK_IMPORTED_MODULE_4__src_mouse__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_namespace__ = __webpack_require__(35); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "namespace", function() { return __WEBPACK_IMPORTED_MODULE_5__src_namespace__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__src_namespaces__ = __webpack_require__(36); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "namespaces", function() { return __WEBPACK_IMPORTED_MODULE_6__src_namespaces__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__src_point__ = __webpack_require__(22); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "clientPoint", function() { return __WEBPACK_IMPORTED_MODULE_7__src_point__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__src_select__ = __webpack_require__(63); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "select", function() { return __WEBPACK_IMPORTED_MODULE_8__src_select__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__src_selectAll__ = __webpack_require__(176); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "selectAll", function() { return __WEBPACK_IMPORTED_MODULE_9__src_selectAll__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__src_selection_index__ = __webpack_require__(1); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "selection", function() { return __WEBPACK_IMPORTED_MODULE_10__src_selection_index__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__src_selector__ = __webpack_require__(37); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "selector", function() { return __WEBPACK_IMPORTED_MODULE_11__src_selector__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__src_selectorAll__ = __webpack_require__(64); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "selectorAll", function() { return __WEBPACK_IMPORTED_MODULE_12__src_selectorAll__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__src_selection_style__ = __webpack_require__(68); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "style", function() { return __WEBPACK_IMPORTED_MODULE_13__src_selection_style__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__src_touch__ = __webpack_require__(177); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "touch", function() { return __WEBPACK_IMPORTED_MODULE_14__src_touch__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__src_touches__ = __webpack_require__(178); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "touches", function() { return __WEBPACK_IMPORTED_MODULE_15__src_touches__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__src_window__ = __webpack_require__(38); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "window", function() { return __WEBPACK_IMPORTED_MODULE_16__src_window__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__src_selection_on__ = __webpack_require__(39); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "event", function() { return __WEBPACK_IMPORTED_MODULE_17__src_selection_on__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "customEvent", function() { return __WEBPACK_IMPORTED_MODULE_17__src_selection_on__["a"]; }); /***/ }), /* 4 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_bisect__ = __webpack_require__(74); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bisect", function() { return __WEBPACK_IMPORTED_MODULE_0__src_bisect__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bisectRight", function() { return __WEBPACK_IMPORTED_MODULE_0__src_bisect__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bisectLeft", function() { return __WEBPACK_IMPORTED_MODULE_0__src_bisect__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_ascending__ = __webpack_require__(11); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ascending", function() { return __WEBPACK_IMPORTED_MODULE_1__src_ascending__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_bisector__ = __webpack_require__(75); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "bisector", function() { return __WEBPACK_IMPORTED_MODULE_2__src_bisector__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_cross__ = __webpack_require__(201); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "cross", function() { return __WEBPACK_IMPORTED_MODULE_3__src_cross__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_descending__ = __webpack_require__(202); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "descending", function() { return __WEBPACK_IMPORTED_MODULE_4__src_descending__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_deviation__ = __webpack_require__(77); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "deviation", function() { return __WEBPACK_IMPORTED_MODULE_5__src_deviation__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__src_extent__ = __webpack_require__(79); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "extent", function() { return __WEBPACK_IMPORTED_MODULE_6__src_extent__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__src_histogram__ = __webpack_require__(203); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "histogram", function() { return __WEBPACK_IMPORTED_MODULE_7__src_histogram__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__src_threshold_freedmanDiaconis__ = __webpack_require__(206); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "thresholdFreedmanDiaconis", function() { return __WEBPACK_IMPORTED_MODULE_8__src_threshold_freedmanDiaconis__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__src_threshold_scott__ = __webpack_require__(207); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "thresholdScott", function() { return __WEBPACK_IMPORTED_MODULE_9__src_threshold_scott__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__src_threshold_sturges__ = __webpack_require__(83); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "thresholdSturges", function() { return __WEBPACK_IMPORTED_MODULE_10__src_threshold_sturges__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__src_max__ = __webpack_require__(208); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return __WEBPACK_IMPORTED_MODULE_11__src_max__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__src_mean__ = __webpack_require__(209); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mean", function() { return __WEBPACK_IMPORTED_MODULE_12__src_mean__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__src_median__ = __webpack_require__(210); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "median", function() { return __WEBPACK_IMPORTED_MODULE_13__src_median__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__src_merge__ = __webpack_require__(211); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return __WEBPACK_IMPORTED_MODULE_14__src_merge__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__src_min__ = __webpack_require__(84); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return __WEBPACK_IMPORTED_MODULE_15__src_min__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__src_pairs__ = __webpack_require__(76); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return __WEBPACK_IMPORTED_MODULE_16__src_pairs__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__src_permute__ = __webpack_require__(212); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "permute", function() { return __WEBPACK_IMPORTED_MODULE_17__src_permute__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__src_quantile__ = __webpack_require__(43); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "quantile", function() { return __WEBPACK_IMPORTED_MODULE_18__src_quantile__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__src_range__ = __webpack_require__(81); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "range", function() { return __WEBPACK_IMPORTED_MODULE_19__src_range__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__src_scan__ = __webpack_require__(213); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return __WEBPACK_IMPORTED_MODULE_20__src_scan__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__src_shuffle__ = __webpack_require__(214); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "shuffle", function() { return __WEBPACK_IMPORTED_MODULE_21__src_shuffle__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__src_sum__ = __webpack_require__(215); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "sum", function() { return __WEBPACK_IMPORTED_MODULE_22__src_sum__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__src_ticks__ = __webpack_require__(82); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ticks", function() { return __WEBPACK_IMPORTED_MODULE_23__src_ticks__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "tickIncrement", function() { return __WEBPACK_IMPORTED_MODULE_23__src_ticks__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "tickStep", function() { return __WEBPACK_IMPORTED_MODULE_23__src_ticks__["c"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__src_transpose__ = __webpack_require__(85); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "transpose", function() { return __WEBPACK_IMPORTED_MODULE_24__src_transpose__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__src_variance__ = __webpack_require__(78); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "variance", function() { return __WEBPACK_IMPORTED_MODULE_25__src_variance__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__src_zip__ = __webpack_require__(216); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return __WEBPACK_IMPORTED_MODULE_26__src_zip__["a"]; }); /***/ }), /* 5 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return durationSecond; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return durationMinute; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return durationHour; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return durationDay; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return durationWeek; }); var durationSecond = 1e3; var durationMinute = 6e4; var durationHour = 36e5; var durationDay = 864e5; var durationWeek = 6048e5; /***/ }), /* 6 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = Transition; /* harmony export (immutable) */ __webpack_exports__["b"] = transition; /* harmony export (immutable) */ __webpack_exports__["c"] = newId; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_selection__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__attr__ = __webpack_require__(184); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__attrTween__ = __webpack_require__(185); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__delay__ = __webpack_require__(186); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__duration__ = __webpack_require__(187); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ease__ = __webpack_require__(188); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__filter__ = __webpack_require__(189); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__merge__ = __webpack_require__(190); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__on__ = __webpack_require__(191); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__remove__ = __webpack_require__(192); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__select__ = __webpack_require__(193); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__selectAll__ = __webpack_require__(194); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__selection__ = __webpack_require__(195); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__style__ = __webpack_require__(196); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__styleTween__ = __webpack_require__(197); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__text__ = __webpack_require__(198); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__transition__ = __webpack_require__(199); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__tween__ = __webpack_require__(23); var id = 0; function Transition(groups, parents, name, id) { this._groups = groups; this._parents = parents; this._name = name; this._id = id; } function transition(name) { return Object(__WEBPACK_IMPORTED_MODULE_0_d3_selection__["selection"])().transition(name); } function newId() { return ++id; } var selection_prototype = __WEBPACK_IMPORTED_MODULE_0_d3_selection__["selection"].prototype; Transition.prototype = transition.prototype = { constructor: Transition, select: __WEBPACK_IMPORTED_MODULE_10__select__["a" /* default */], selectAll: __WEBPACK_IMPORTED_MODULE_11__selectAll__["a" /* default */], filter: __WEBPACK_IMPORTED_MODULE_6__filter__["a" /* default */], merge: __WEBPACK_IMPORTED_MODULE_7__merge__["a" /* default */], selection: __WEBPACK_IMPORTED_MODULE_12__selection__["a" /* default */], transition: __WEBPACK_IMPORTED_MODULE_16__transition__["a" /* default */], call: selection_prototype.call, nodes: selection_prototype.nodes, node: selection_prototype.node, size: selection_prototype.size, empty: selection_prototype.empty, each: selection_prototype.each, on: __WEBPACK_IMPORTED_MODULE_8__on__["a" /* default */], attr: __WEBPACK_IMPORTED_MODULE_1__attr__["a" /* default */], attrTween: __WEBPACK_IMPORTED_MODULE_2__attrTween__["a" /* default */], style: __WEBPACK_IMPORTED_MODULE_13__style__["a" /* default */], styleTween: __WEBPACK_IMPORTED_MODULE_14__styleTween__["a" /* default */], text: __WEBPACK_IMPORTED_MODULE_15__text__["a" /* default */], remove: __WEBPACK_IMPORTED_MODULE_9__remove__["a" /* default */], tween: __WEBPACK_IMPORTED_MODULE_17__tween__["a" /* default */], delay: __WEBPACK_IMPORTED_MODULE_3__delay__["a" /* default */], duration: __WEBPACK_IMPORTED_MODULE_4__duration__["a" /* default */], ease: __WEBPACK_IMPORTED_MODULE_5__ease__["a" /* default */] }; /***/ }), /* 7 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_color__ = __webpack_require__(30); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "color", function() { return __WEBPACK_IMPORTED_MODULE_0__src_color__["e"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "rgb", function() { return __WEBPACK_IMPORTED_MODULE_0__src_color__["g"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "hsl", function() { return __WEBPACK_IMPORTED_MODULE_0__src_color__["f"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_lab__ = __webpack_require__(121); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "lab", function() { return __WEBPACK_IMPORTED_MODULE_1__src_lab__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "hcl", function() { return __WEBPACK_IMPORTED_MODULE_1__src_lab__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "lch", function() { return __WEBPACK_IMPORTED_MODULE_1__src_lab__["d"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "gray", function() { return __WEBPACK_IMPORTED_MODULE_1__src_lab__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_cubehelix__ = __webpack_require__(122); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "cubehelix", function() { return __WEBPACK_IMPORTED_MODULE_2__src_cubehelix__["a"]; }); /***/ }), /* 8 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return map; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return slice; }); var array = Array.prototype; var map = array.map; var slice = array.slice; /***/ }), /* 9 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_value__ = __webpack_require__(33); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolate", function() { return __WEBPACK_IMPORTED_MODULE_0__src_value__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_array__ = __webpack_require__(59); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateArray", function() { return __WEBPACK_IMPORTED_MODULE_1__src_array__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_basis__ = __webpack_require__(34); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateBasis", function() { return __WEBPACK_IMPORTED_MODULE_2__src_basis__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_basisClosed__ = __webpack_require__(57); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateBasisClosed", function() { return __WEBPACK_IMPORTED_MODULE_3__src_basisClosed__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_date__ = __webpack_require__(60); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateDate", function() { return __WEBPACK_IMPORTED_MODULE_4__src_date__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_number__ = __webpack_require__(20); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateNumber", function() { return __WEBPACK_IMPORTED_MODULE_5__src_number__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__src_object__ = __webpack_require__(61); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateObject", function() { return __WEBPACK_IMPORTED_MODULE_6__src_object__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__src_round__ = __webpack_require__(134); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateRound", function() { return __WEBPACK_IMPORTED_MODULE_7__src_round__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__src_string__ = __webpack_require__(62); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateString", function() { return __WEBPACK_IMPORTED_MODULE_8__src_string__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__src_transform_index__ = __webpack_require__(135); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformCss", function() { return __WEBPACK_IMPORTED_MODULE_9__src_transform_index__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateTransformSvg", function() { return __WEBPACK_IMPORTED_MODULE_9__src_transform_index__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__src_zoom__ = __webpack_require__(138); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateZoom", function() { return __WEBPACK_IMPORTED_MODULE_10__src_zoom__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__src_rgb__ = __webpack_require__(56); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateRgb", function() { return __WEBPACK_IMPORTED_MODULE_11__src_rgb__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasis", function() { return __WEBPACK_IMPORTED_MODULE_11__src_rgb__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateRgbBasisClosed", function() { return __WEBPACK_IMPORTED_MODULE_11__src_rgb__["c"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__src_hsl__ = __webpack_require__(139); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateHsl", function() { return __WEBPACK_IMPORTED_MODULE_12__src_hsl__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateHslLong", function() { return __WEBPACK_IMPORTED_MODULE_12__src_hsl__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__src_lab__ = __webpack_require__(140); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateLab", function() { return __WEBPACK_IMPORTED_MODULE_13__src_lab__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__src_hcl__ = __webpack_require__(141); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateHcl", function() { return __WEBPACK_IMPORTED_MODULE_14__src_hcl__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateHclLong", function() { return __WEBPACK_IMPORTED_MODULE_14__src_hcl__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__ = __webpack_require__(142); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelix", function() { return __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interpolateCubehelixLong", function() { return __WEBPACK_IMPORTED_MODULE_15__src_cubehelix__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__src_piecewise__ = __webpack_require__(143); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "piecewise", function() { return __WEBPACK_IMPORTED_MODULE_16__src_piecewise__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__src_quantize__ = __webpack_require__(144); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "quantize", function() { return __WEBPACK_IMPORTED_MODULE_17__src_quantize__["a"]; }); /***/ }), /* 10 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return function constant() { return x; }; }); /***/ }), /* 11 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; }); /***/ }), /* 12 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["c"] = hue; /* harmony export (immutable) */ __webpack_exports__["b"] = gamma; /* harmony export (immutable) */ __webpack_exports__["a"] = nogamma; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constant__ = __webpack_require__(58); function linear(a, d) { return function(t) { return a + t * d; }; } function exponential(a, b, y) { return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { return Math.pow(a + t * b, y); }; } function hue(a, b) { var d = b - a; return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(isNaN(a) ? b : a); } function gamma(y) { return (y = +y) === 1 ? nogamma : function(a, b) { return b - a ? exponential(a, b, y) : Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(isNaN(a) ? b : a); }; } function nogamma(a, b) { var d = b - a; return d ? linear(a, d) : Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(isNaN(a) ? b : a); } /***/ }), /* 13 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return x === null ? NaN : +x; }); /***/ }), /* 14 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = linearish; /* harmony export (immutable) */ __webpack_exports__["a"] = linear; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__continuous__ = __webpack_require__(24); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tickFormat__ = __webpack_require__(240); function linearish(scale) { var domain = scale.domain; scale.ticks = function(count) { var d = domain(); return Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["ticks"])(d[0], d[d.length - 1], count == null ? 10 : count); }; scale.tickFormat = function(count, specifier) { return Object(__WEBPACK_IMPORTED_MODULE_3__tickFormat__["a" /* default */])(domain(), count, specifier); }; scale.nice = function(count) { if (count == null) count = 10; var d = domain(), i0 = 0, i1 = d.length - 1, start = d[i0], stop = d[i1], step; if (stop < start) { step = start, start = stop, stop = step; step = i0, i0 = i1, i1 = step; } step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["tickIncrement"])(start, stop, count); if (step > 0) { start = Math.floor(start / step) * step; stop = Math.ceil(stop / step) * step; step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["tickIncrement"])(start, stop, count); } else if (step < 0) { start = Math.ceil(start * step) / step; stop = Math.floor(stop * step) / step; step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["tickIncrement"])(start, stop, count); } if (step > 0) { d[i0] = Math.floor(start / step) * step; d[i1] = Math.ceil(stop / step) * step; domain(d); } else if (step < 0) { d[i0] = Math.ceil(start * step) / step; d[i1] = Math.floor(stop * step) / step; domain(d); } return scale; }; return scale; } function linear() { var scale = Object(__WEBPACK_IMPORTED_MODULE_2__continuous__["b" /* default */])(__WEBPACK_IMPORTED_MODULE_2__continuous__["c" /* deinterpolateLinear */], __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["interpolateNumber"]); scale.copy = function() { return Object(__WEBPACK_IMPORTED_MODULE_2__continuous__["a" /* copy */])(scale, linear()); }; return linearish(scale); } /***/ }), /* 15 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_path__ = __webpack_require__(249); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_path__["a"]; }); /***/ }), /* 16 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return abs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return atan2; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return cos; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return max; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return min; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return sin; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return sqrt; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return epsilon; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return pi; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return halfPi; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return tau; }); /* harmony export (immutable) */ __webpack_exports__["b"] = acos; /* harmony export (immutable) */ __webpack_exports__["c"] = asin; var abs = Math.abs; var atan2 = Math.atan2; var cos = Math.cos; var max = Math.max; var min = Math.min; var sin = Math.sin; var sqrt = Math.sqrt; var epsilon = 1e-12; var pi = Math.PI; var halfPi = pi / 2; var tau = 2 * pi; function acos(x) { return x > 1 ? 0 : x < -1 ? pi : Math.acos(x); } function asin(x) { return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x); } /***/ }), /* 17 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(series, order) { if (!((n = series.length) > 1)) return; for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) { s0 = s1, s1 = series[order[i]]; for (j = 0; j < m; ++j) { s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1]; } } }); /***/ }), /* 18 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(series) { var n = series.length, o = new Array(n); while (--n >= 0) o[n] = n; return o; }); /***/ }), /* 19 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(32); /* harmony default export */ __webpack_exports__["a"] = (function(x) { return x = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__["a" /* default */])(Math.abs(x)), x ? x[1] : NaN; }); /***/ }), /* 20 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { return a = +a, b -= a, function(t) { return a + b * t; }; }); /***/ }), /* 21 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__namespace__ = __webpack_require__(35); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__namespaces__ = __webpack_require__(36); function creatorInherit(name) { return function() { var document = this.ownerDocument, uri = this.namespaceURI; return uri === __WEBPACK_IMPORTED_MODULE_1__namespaces__["b" /* xhtml */] && document.documentElement.namespaceURI === __WEBPACK_IMPORTED_MODULE_1__namespaces__["b" /* xhtml */] ? document.createElement(name) : document.createElementNS(uri, name); }; } function creatorFixed(fullname) { return function() { return this.ownerDocument.createElementNS(fullname.space, fullname.local); }; } /* harmony default export */ __webpack_exports__["a"] = (function(name) { var fullname = Object(__WEBPACK_IMPORTED_MODULE_0__namespace__["a" /* default */])(name); return (fullname.local ? creatorFixed : creatorInherit)(fullname); }); /***/ }), /* 22 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(node, event) { var svg = node.ownerSVGElement || node; if (svg.createSVGPoint) { var point = svg.createSVGPoint(); point.x = event.clientX, point.y = event.clientY; point = point.matrixTransform(node.getScreenCTM().inverse()); return [point.x, point.y]; } var rect = node.getBoundingClientRect(); return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop]; }); /***/ }), /* 23 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = tweenValue; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__schedule__ = __webpack_require__(2); function tweenRemove(id, name) { var tween0, tween1; return function() { var schedule = Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["h" /* set */])(this, id), tween = schedule.tween; // If this node shared tween with the previous node, // just assign the updated shared tween and we’re done! // Otherwise, copy-on-write. if (tween !== tween0) { tween1 = tween0 = tween; for (var i = 0, n = tween1.length; i < n; ++i) { if (tween1[i].name === name) { tween1 = tween1.slice(); tween1.splice(i, 1); break; } } } schedule.tween = tween1; }; } function tweenFunction(id, name, value) { var tween0, tween1; if (typeof value !== "function") throw new Error; return function() { var schedule = Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["h" /* set */])(this, id), tween = schedule.tween; // If this node shared tween with the previous node, // just assign the updated shared tween and we’re done! // Otherwise, copy-on-write. if (tween !== tween0) { tween1 = (tween0 = tween).slice(); for (var t = {name: name, value: value}, i = 0, n = tween1.length; i < n; ++i) { if (tween1[i].name === name) { tween1[i] = t; break; } } if (i === n) tween1.push(t); } schedule.tween = tween1; }; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value) { var id = this._id; name += ""; if (arguments.length < 2) { var tween = Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["f" /* get */])(this.node(), id).tween; for (var i = 0, n = tween.length, t; i < n; ++i) { if ((t = tween[i]).name === name) { return t.value; } } return null; } return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value)); }); function tweenValue(transition, name, value) { var id = transition._id; transition.each(function() { var schedule = Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["h" /* set */])(this, id); (schedule.value || (schedule.value = {}))[name] = value.apply(this, arguments); }); return function(node) { return Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["f" /* get */])(node, id).value[name]; }; } /***/ }), /* 24 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["c"] = deinterpolateLinear; /* harmony export (immutable) */ __webpack_exports__["a"] = copy; /* harmony export (immutable) */ __webpack_exports__["b"] = continuous; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(8); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constant__ = __webpack_require__(46); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__number__ = __webpack_require__(89); var unit = [0, 1]; function deinterpolateLinear(a, b) { return (b -= (a = +a)) ? function(x) { return (x - a) / b; } : Object(__WEBPACK_IMPORTED_MODULE_3__constant__["a" /* default */])(b); } function deinterpolateClamp(deinterpolate) { return function(a, b) { var d = deinterpolate(a = +a, b = +b); return function(x) { return x <= a ? 0 : x >= b ? 1 : d(x); }; }; } function reinterpolateClamp(reinterpolate) { return function(a, b) { var r = reinterpolate(a = +a, b = +b); return function(t) { return t <= 0 ? a : t >= 1 ? b : r(t); }; }; } function bimap(domain, range, deinterpolate, reinterpolate) { var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; if (d1 < d0) d0 = deinterpolate(d1, d0), r0 = reinterpolate(r1, r0); else d0 = deinterpolate(d0, d1), r0 = reinterpolate(r0, r1); return function(x) { return r0(d0(x)); }; } function polymap(domain, range, deinterpolate, reinterpolate) { var j = Math.min(domain.length, range.length) - 1, d = new Array(j), r = new Array(j), i = -1; // Reverse descending domains. if (domain[j] < domain[0]) { domain = domain.slice().reverse(); range = range.slice().reverse(); } while (++i < j) { d[i] = deinterpolate(domain[i], domain[i + 1]); r[i] = reinterpolate(range[i], range[i + 1]); } return function(x) { var i = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["bisect"])(domain, x, 1, j) - 1; return r[i](d[i](x)); }; } function copy(source, target) { return target .domain(source.domain()) .range(source.range()) .interpolate(source.interpolate()) .clamp(source.clamp()); } // deinterpolate(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1]. // reinterpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding domain value x in [a,b]. function continuous(deinterpolate, reinterpolate) { var domain = unit, range = unit, interpolate = __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["interpolate"], clamp = false, piecewise, output, input; function rescale() { piecewise = Math.min(domain.length, range.length) > 2 ? polymap : bimap; output = input = null; return scale; } function scale(x) { return (output || (output = piecewise(domain, range, clamp ? deinterpolateClamp(deinterpolate) : deinterpolate, interpolate)))(+x); } scale.invert = function(y) { return (input || (input = piecewise(range, domain, deinterpolateLinear, clamp ? reinterpolateClamp(reinterpolate) : reinterpolate)))(+y); }; scale.domain = function(_) { return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_2__array__["a" /* map */].call(_, __WEBPACK_IMPORTED_MODULE_4__number__["a" /* default */]), rescale()) : domain.slice(); }; scale.range = function(_) { return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_2__array__["b" /* slice */].call(_), rescale()) : range.slice(); }; scale.rangeRound = function(_) { return range = __WEBPACK_IMPORTED_MODULE_2__array__["b" /* slice */].call(_), interpolate = __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["interpolateRound"], rescale(); }; scale.clamp = function(_) { return arguments.length ? (clamp = !!_, rescale()) : clamp; }; scale.interpolate = function(_) { return arguments.length ? (interpolate = _, rescale()) : interpolate; }; return rescale(); } /***/ }), /* 25 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function Linear(context) { this._context = context; } Linear.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; // proceed default: this._context.lineTo(x, y); break; } } }; /* harmony default export */ __webpack_exports__["a"] = (function(context) { return new Linear(context); }); /***/ }), /* 26 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function() {}); /***/ }), /* 27 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["c"] = point; /* harmony export (immutable) */ __webpack_exports__["a"] = Basis; function point(that, x, y) { that._context.bezierCurveTo( (2 * that._x0 + that._x1) / 3, (2 * that._y0 + that._y1) / 3, (that._x0 + 2 * that._x1) / 3, (that._y0 + 2 * that._y1) / 3, (that._x0 + 4 * that._x1 + x) / 6, (that._y0 + 4 * that._y1 + y) / 6 ); } function Basis(context) { this._context = context; } Basis.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 3: point(this, this._x1, this._y1); // proceed case 2: this._context.lineTo(this._x1, this._y1); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed default: point(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["b"] = (function(context) { return new Basis(context); }); /***/ }), /* 28 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["c"] = point; /* harmony export (immutable) */ __webpack_exports__["a"] = Cardinal; function point(that, x, y) { that._context.bezierCurveTo( that._x1 + that._k * (that._x2 - that._x0), that._y1 + that._k * (that._y2 - that._y0), that._x2 + that._k * (that._x1 - x), that._y2 + that._k * (that._y1 - y), that._x2, that._y2 ); } function Cardinal(context, tension) { this._context = context; this._k = (1 - tension) / 6; } Cardinal.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x2, this._y2); break; case 3: point(this, this._x1, this._y1); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; this._x1 = x, this._y1 = y; break; case 2: this._point = 3; // proceed default: point(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["b"] = ((function custom(tension) { function cardinal(context) { return new Cardinal(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /* 29 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__ = __webpack_require__(124); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "formatDefaultLocale", function() { return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "format", function() { return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "formatPrefix", function() { return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__["c"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_locale__ = __webpack_require__(53); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "formatLocale", function() { return __WEBPACK_IMPORTED_MODULE_1__src_locale__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_formatSpecifier__ = __webpack_require__(54); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "formatSpecifier", function() { return __WEBPACK_IMPORTED_MODULE_2__src_formatSpecifier__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_precisionFixed__ = __webpack_require__(131); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "precisionFixed", function() { return __WEBPACK_IMPORTED_MODULE_3__src_precisionFixed__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_precisionPrefix__ = __webpack_require__(132); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "precisionPrefix", function() { return __WEBPACK_IMPORTED_MODULE_4__src_precisionPrefix__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_precisionRound__ = __webpack_require__(133); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "precisionRound", function() { return __WEBPACK_IMPORTED_MODULE_5__src_precisionRound__["a"]; }); /***/ }), /* 30 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = Color; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return darker; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return brighter; }); /* harmony export (immutable) */ __webpack_exports__["e"] = color; /* harmony export (immutable) */ __webpack_exports__["h"] = rgbConvert; /* harmony export (immutable) */ __webpack_exports__["g"] = rgb; /* harmony export (immutable) */ __webpack_exports__["b"] = Rgb; /* unused harmony export hslConvert */ /* harmony export (immutable) */ __webpack_exports__["f"] = hsl; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__define__ = __webpack_require__(31); function Color() {} var darker = 0.7; var brighter = 1 / darker; var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex3 = /^#([0-9a-f]{3})$/, reHex6 = /^#([0-9a-f]{6})$/, reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"), reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"), reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"), reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"), reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"), reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$"); var named = { aliceblue: 0xf0f8ff, antiquewhite: 0xfaebd7, aqua: 0x00ffff, aquamarine: 0x7fffd4, azure: 0xf0ffff, beige: 0xf5f5dc, bisque: 0xffe4c4, black: 0x000000, blanchedalmond: 0xffebcd, blue: 0x0000ff, blueviolet: 0x8a2be2, brown: 0xa52a2a, burlywood: 0xdeb887, cadetblue: 0x5f9ea0, chartreuse: 0x7fff00, chocolate: 0xd2691e, coral: 0xff7f50, cornflowerblue: 0x6495ed, cornsilk: 0xfff8dc, crimson: 0xdc143c, cyan: 0x00ffff, darkblue: 0x00008b, darkcyan: 0x008b8b, darkgoldenrod: 0xb8860b, darkgray: 0xa9a9a9, darkgreen: 0x006400, darkgrey: 0xa9a9a9, darkkhaki: 0xbdb76b, darkmagenta: 0x8b008b, darkolivegreen: 0x556b2f, darkorange: 0xff8c00, darkorchid: 0x9932cc, darkred: 0x8b0000, darksalmon: 0xe9967a, darkseagreen: 0x8fbc8f, darkslateblue: 0x483d8b, darkslategray: 0x2f4f4f, darkslategrey: 0x2f4f4f, darkturquoise: 0x00ced1, darkviolet: 0x9400d3, deeppink: 0xff1493, deepskyblue: 0x00bfff, dimgray: 0x696969, dimgrey: 0x696969, dodgerblue: 0x1e90ff, firebrick: 0xb22222, floralwhite: 0xfffaf0, forestgreen: 0x228b22, fuchsia: 0xff00ff, gainsboro: 0xdcdcdc, ghostwhite: 0xf8f8ff, gold: 0xffd700, goldenrod: 0xdaa520, gray: 0x808080, green: 0x008000, greenyellow: 0xadff2f, grey: 0x808080, honeydew: 0xf0fff0, hotpink: 0xff69b4, indianred: 0xcd5c5c, indigo: 0x4b0082, ivory: 0xfffff0, khaki: 0xf0e68c, lavender: 0xe6e6fa, lavenderblush: 0xfff0f5, lawngreen: 0x7cfc00, lemonchiffon: 0xfffacd, lightblue: 0xadd8e6, lightcoral: 0xf08080, lightcyan: 0xe0ffff, lightgoldenrodyellow: 0xfafad2, lightgray: 0xd3d3d3, lightgreen: 0x90ee90, lightgrey: 0xd3d3d3, lightpink: 0xffb6c1, lightsalmon: 0xffa07a, lightseagreen: 0x20b2aa, lightskyblue: 0x87cefa, lightslategray: 0x778899, lightslategrey: 0x778899, lightsteelblue: 0xb0c4de, lightyellow: 0xffffe0, lime: 0x00ff00, limegreen: 0x32cd32, linen: 0xfaf0e6, magenta: 0xff00ff, maroon: 0x800000, mediumaquamarine: 0x66cdaa, mediumblue: 0x0000cd, mediumorchid: 0xba55d3, mediumpurple: 0x9370db, mediumseagreen: 0x3cb371, mediumslateblue: 0x7b68ee, mediumspringgreen: 0x00fa9a, mediumturquoise: 0x48d1cc, mediumvioletred: 0xc71585, midnightblue: 0x191970, mintcream: 0xf5fffa, mistyrose: 0xffe4e1, moccasin: 0xffe4b5, navajowhite: 0xffdead, navy: 0x000080, oldlace: 0xfdf5e6, olive: 0x808000, olivedrab: 0x6b8e23, orange: 0xffa500, orangered: 0xff4500, orchid: 0xda70d6, palegoldenrod: 0xeee8aa, palegreen: 0x98fb98, paleturquoise: 0xafeeee, palevioletred: 0xdb7093, papayawhip: 0xffefd5, peachpuff: 0xffdab9, peru: 0xcd853f, pink: 0xffc0cb, plum: 0xdda0dd, powderblue: 0xb0e0e6, purple: 0x800080, rebeccapurple: 0x663399, red: 0xff0000, rosybrown: 0xbc8f8f, royalblue: 0x4169e1, saddlebrown: 0x8b4513, salmon: 0xfa8072, sandybrown: 0xf4a460, seagreen: 0x2e8b57, seashell: 0xfff5ee, sienna: 0xa0522d, silver: 0xc0c0c0, skyblue: 0x87ceeb, slateblue: 0x6a5acd, slategray: 0x708090, slategrey: 0x708090, snow: 0xfffafa, springgreen: 0x00ff7f, steelblue: 0x4682b4, tan: 0xd2b48c, teal: 0x008080, thistle: 0xd8bfd8, tomato: 0xff6347, turquoise: 0x40e0d0, violet: 0xee82ee, wheat: 0xf5deb3, white: 0xffffff, whitesmoke: 0xf5f5f5, yellow: 0xffff00, yellowgreen: 0x9acd32 }; Object(__WEBPACK_IMPORTED_MODULE_0__define__["a" /* default */])(Color, color, { displayable: function() { return this.rgb().displayable(); }, hex: function() { return this.rgb().hex(); }, toString: function() { return this.rgb() + ""; } }); function color(format) { var m; format = (format + "").trim().toLowerCase(); return (m = reHex3.exec(format)) ? (m = parseInt(m[1], 16), new Rgb((m >> 8 & 0xf) | (m >> 4 & 0x0f0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1)) // #f00 : (m = reHex6.exec(format)) ? rgbn(parseInt(m[1], 16)) // #ff0000 : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0) : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%) : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1) : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1) : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%) : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1) : named.hasOwnProperty(format) ? rgbn(named[format]) : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null; } function rgbn(n) { return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1); } function rgba(r, g, b, a) { if (a <= 0) r = g = b = NaN; return new Rgb(r, g, b, a); } function rgbConvert(o) { if (!(o instanceof Color)) o = color(o); if (!o) return new Rgb; o = o.rgb(); return new Rgb(o.r, o.g, o.b, o.opacity); } function rgb(r, g, b, opacity) { return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity); } function Rgb(r, g, b, opacity) { this.r = +r; this.g = +g; this.b = +b; this.opacity = +opacity; } Object(__WEBPACK_IMPORTED_MODULE_0__define__["a" /* default */])(Rgb, rgb, Object(__WEBPACK_IMPORTED_MODULE_0__define__["b" /* extend */])(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); }, rgb: function() { return this; }, displayable: function() { return (0 <= this.r && this.r <= 255) && (0 <= this.g && this.g <= 255) && (0 <= this.b && this.b <= 255) && (0 <= this.opacity && this.opacity <= 1); }, hex: function() { return "#" + hex(this.r) + hex(this.g) + hex(this.b); }, toString: function() { var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a)); return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")"); } })); function hex(value) { value = Math.max(0, Math.min(255, Math.round(value) || 0)); return (value < 16 ? "0" : "") + value.toString(16); } function hsla(h, s, l, a) { if (a <= 0) h = s = l = NaN; else if (l <= 0 || l >= 1) h = s = NaN; else if (s <= 0) h = NaN; return new Hsl(h, s, l, a); } function hslConvert(o) { if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); if (!(o instanceof Color)) o = color(o); if (!o) return new Hsl; if (o instanceof Hsl) return o; o = o.rgb(); var r = o.r / 255, g = o.g / 255, b = o.b / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), h = NaN, s = max - min, l = (max + min) / 2; if (s) { if (r === max) h = (g - b) / s + (g < b) * 6; else if (g === max) h = (b - r) / s + 2; else h = (r - g) / s + 4; s /= l < 0.5 ? max + min : 2 - max - min; h *= 60; } else { s = l > 0 && l < 1 ? 0 : h; } return new Hsl(h, s, l, o.opacity); } function hsl(h, s, l, opacity) { return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity); } function Hsl(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } Object(__WEBPACK_IMPORTED_MODULE_0__define__["a" /* default */])(Hsl, hsl, Object(__WEBPACK_IMPORTED_MODULE_0__define__["b" /* extend */])(Color, { brighter: function(k) { k = k == null ? brighter : Math.pow(brighter, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, darker: function(k) { k = k == null ? darker : Math.pow(darker, k); return new Hsl(this.h, this.s, this.l * k, this.opacity); }, rgb: function() { var h = this.h % 360 + (this.h < 0) * 360, s = isNaN(h) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2; return new Rgb( hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity ); }, displayable: function() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1); } })); /* From FvD 13.37, CSS Color Module Level 3 */ function hsl2rgb(h, m1, m2) { return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255; } /***/ }), /* 31 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = extend; /* harmony default export */ __webpack_exports__["a"] = (function(constructor, factory, prototype) { constructor.prototype = factory.prototype = prototype; prototype.constructor = constructor; }); function extend(parent, definition) { var prototype = Object.create(parent.prototype); for (var key in definition) prototype[key] = definition[key]; return prototype; } /***/ }), /* 32 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // Computes the decimal coefficient and exponent of the specified number x with // significant digits p, where x is positive and p is in [1, 21] or undefined. // For example, formatDecimal(1.23) returns ["123", 0]. /* harmony default export */ __webpack_exports__["a"] = (function(x, p) { if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity var i, coefficient = x.slice(0, i); // The string returned by toExponential either has the form \d\.\d+e[-+]\d+ // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3). return [ coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +x.slice(i + 1) ]; }); /***/ }), /* 33 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(7); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__rgb__ = __webpack_require__(56); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(59); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__date__ = __webpack_require__(60); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__number__ = __webpack_require__(20); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__object__ = __webpack_require__(61); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__string__ = __webpack_require__(62); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__constant__ = __webpack_require__(58); /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { var t = typeof b, c; return b == null || t === "boolean" ? Object(__WEBPACK_IMPORTED_MODULE_7__constant__["a" /* default */])(b) : (t === "number" ? __WEBPACK_IMPORTED_MODULE_4__number__["a" /* default */] : t === "string" ? ((c = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["color"])(b)) ? (b = c, __WEBPACK_IMPORTED_MODULE_1__rgb__["a" /* default */]) : __WEBPACK_IMPORTED_MODULE_6__string__["a" /* default */]) : b instanceof __WEBPACK_IMPORTED_MODULE_0_d3_color__["color"] ? __WEBPACK_IMPORTED_MODULE_1__rgb__["a" /* default */] : b instanceof Date ? __WEBPACK_IMPORTED_MODULE_3__date__["a" /* default */] : Array.isArray(b) ? __WEBPACK_IMPORTED_MODULE_2__array__["a" /* default */] : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? __WEBPACK_IMPORTED_MODULE_5__object__["a" /* default */] : __WEBPACK_IMPORTED_MODULE_4__number__["a" /* default */])(a, b); }); /***/ }), /* 34 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = basis; function basis(t1, v0, v1, v2, v3) { var t2 = t1 * t1, t3 = t2 * t1; return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6; } /* harmony default export */ __webpack_exports__["b"] = (function(values) { var n = values.length - 1; return function(t) { var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), v1 = values[i], v2 = values[i + 1], v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1; return basis((t - i / n) * n, v0, v1, v2, v3); }; }); /***/ }), /* 35 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__namespaces__ = __webpack_require__(36); /* harmony default export */ __webpack_exports__["a"] = (function(name) { var prefix = name += "", i = prefix.indexOf(":"); if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1); return __WEBPACK_IMPORTED_MODULE_0__namespaces__["a" /* default */].hasOwnProperty(prefix) ? {space: __WEBPACK_IMPORTED_MODULE_0__namespaces__["a" /* default */][prefix], local: name} : name; }); /***/ }), /* 36 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return xhtml; }); var xhtml = "http://www.w3.org/1999/xhtml"; /* harmony default export */ __webpack_exports__["a"] = ({ svg: "http://www.w3.org/2000/svg", xhtml: xhtml, xlink: "http://www.w3.org/1999/xlink", xml: "http://www.w3.org/XML/1998/namespace", xmlns: "http://www.w3.org/2000/xmlns/" }); /***/ }), /* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function none() {} /* harmony default export */ __webpack_exports__["a"] = (function(selector) { return selector == null ? none : function() { return this.querySelector(selector); }; }); /***/ }), /* 38 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(node) { return (node.ownerDocument && node.ownerDocument.defaultView) // node is a Node || (node.document && node) // node is a Window || node.defaultView; // node is a Document }); /***/ }), /* 39 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return event; }); /* harmony export (immutable) */ __webpack_exports__["a"] = customEvent; var filterEvents = {}; var event = null; if (typeof document !== "undefined") { var element = document.documentElement; if (!("onmouseenter" in element)) { filterEvents = {mouseenter: "mouseover", mouseleave: "mouseout"}; } } function filterContextListener(listener, index, group) { listener = contextListener(listener, index, group); return function(event) { var related = event.relatedTarget; if (!related || (related !== this && !(related.compareDocumentPosition(this) & 8))) { listener.call(this, event); } }; } function contextListener(listener, index, group) { return function(event1) { var event0 = event; // Events can be reentrant (e.g., focus). event = event1; try { listener.call(this, this.__data__, index, group); } finally { event = event0; } }; } function parseTypenames(typenames) { return typenames.trim().split(/^|\s+/).map(function(t) { var name = "", i = t.indexOf("."); if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i); return {type: t, name: name}; }); } function onRemove(typename) { return function() { var on = this.__on; if (!on) return; for (var j = 0, i = -1, m = on.length, o; j < m; ++j) { if (o = on[j], (!typename.type || o.type === typename.type) && o.name === typename.name) { this.removeEventListener(o.type, o.listener, o.capture); } else { on[++i] = o; } } if (++i) on.length = i; else delete this.__on; }; } function onAdd(typename, value, capture) { var wrap = filterEvents.hasOwnProperty(typename.type) ? filterContextListener : contextListener; return function(d, i, group) { var on = this.__on, o, listener = wrap(value, i, group); if (on) for (var j = 0, m = on.length; j < m; ++j) { if ((o = on[j]).type === typename.type && o.name === typename.name) { this.removeEventListener(o.type, o.listener, o.capture); this.addEventListener(o.type, o.listener = listener, o.capture = capture); o.value = value; return; } } this.addEventListener(typename.type, listener, capture); o = {type: typename.type, name: typename.name, value: value, listener: listener, capture: capture}; if (!on) this.__on = [o]; else on.push(o); }; } /* harmony default export */ __webpack_exports__["b"] = (function(typename, value, capture) { var typenames = parseTypenames(typename + ""), i, n = typenames.length, t; if (arguments.length < 2) { var on = this.node().__on; if (on) for (var j = 0, m = on.length, o; j < m; ++j) { for (i = 0, o = on[j]; i < n; ++i) { if ((t = typenames[i]).type === o.type && t.name === o.name) { return o.value; } } } return; } on = value ? onAdd : onRemove; if (capture == null) capture = false; for (i = 0; i < n; ++i) this.each(on(typenames[i], value, capture)); return this; }); function customEvent(event1, listener, that, args) { var event0 = event; event1.sourceEvent = event; event = event1; try { return listener.apply(that, args); } finally { event = event0; } } /***/ }), /* 40 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__selection_on__ = __webpack_require__(39); /* harmony default export */ __webpack_exports__["a"] = (function() { var current = __WEBPACK_IMPORTED_MODULE_0__selection_on__["c" /* event */], source; while (source = current.sourceEvent) current = source; return current; }); /***/ }), /* 41 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = now; /* harmony export (immutable) */ __webpack_exports__["a"] = Timer; /* harmony export (immutable) */ __webpack_exports__["c"] = timer; /* unused harmony export timerFlush */ var frame = 0, // is an animation frame pending? timeout = 0, // is a timeout pending? interval = 0, // are any timers active? pokeDelay = 1000, // how frequently we check for clock skew taskHead, taskTail, clockLast = 0, clockNow = 0, clockSkew = 0, clock = typeof performance === "object" && performance.now ? performance : Date, setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f) { setTimeout(f, 17); }; function now() { return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew); } function clearNow() { clockNow = 0; } function Timer() { this._call = this._time = this._next = null; } Timer.prototype = timer.prototype = { constructor: Timer, restart: function(callback, delay, time) { if (typeof callback !== "function") throw new TypeError("callback is not a function"); time = (time == null ? now() : +time) + (delay == null ? 0 : +delay); if (!this._next && taskTail !== this) { if (taskTail) taskTail._next = this; else taskHead = this; taskTail = this; } this._call = callback; this._time = time; sleep(); }, stop: function() { if (this._call) { this._call = null; this._time = Infinity; sleep(); } } }; function timer(callback, delay, time) { var t = new Timer; t.restart(callback, delay, time); return t; } function timerFlush() { now(); // Get the current time, if not already set. ++frame; // Pretend we’ve set an alarm, if we haven’t already. var t = taskHead, e; while (t) { if ((e = clockNow - t._time) >= 0) t._call.call(null, e); t = t._next; } --frame; } function wake() { clockNow = (clockLast = clock.now()) + clockSkew; frame = timeout = 0; try { timerFlush(); } finally { frame = 0; nap(); clockNow = 0; } } function poke() { var now = clock.now(), delay = now - clockLast; if (delay > pokeDelay) clockSkew -= delay, clockLast = now; } function nap() { var t0, t1 = taskHead, t2, time = Infinity; while (t1) { if (t1._call) { if (time > t1._time) time = t1._time; t0 = t1, t1 = t1._next; } else { t2 = t1._next, t1._next = null; t1 = t0 ? t0._next = t2 : taskHead = t2; } } taskTail = t0; sleep(time); } function sleep(time) { if (frame) return; // Soonest alarm already set, or will be. if (timeout) timeout = clearTimeout(timeout); var delay = time - clockNow; // Strictly less than if we recomputed clockNow. if (delay > 24) { if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew); if (interval) interval = clearInterval(interval); } else { if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay); frame = 1, setFrame(wake); } } /***/ }), /* 42 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_interval__ = __webpack_require__(0); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return __WEBPACK_IMPORTED_MODULE_0__src_interval__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_millisecond__ = __webpack_require__(217); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeMillisecond", function() { return __WEBPACK_IMPORTED_MODULE_1__src_millisecond__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeMilliseconds", function() { return __WEBPACK_IMPORTED_MODULE_1__src_millisecond__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcMillisecond", function() { return __WEBPACK_IMPORTED_MODULE_1__src_millisecond__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcMilliseconds", function() { return __WEBPACK_IMPORTED_MODULE_1__src_millisecond__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_second__ = __webpack_require__(218); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeSecond", function() { return __WEBPACK_IMPORTED_MODULE_2__src_second__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeSeconds", function() { return __WEBPACK_IMPORTED_MODULE_2__src_second__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcSecond", function() { return __WEBPACK_IMPORTED_MODULE_2__src_second__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcSeconds", function() { return __WEBPACK_IMPORTED_MODULE_2__src_second__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_minute__ = __webpack_require__(219); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeMinute", function() { return __WEBPACK_IMPORTED_MODULE_3__src_minute__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeMinutes", function() { return __WEBPACK_IMPORTED_MODULE_3__src_minute__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_hour__ = __webpack_require__(220); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeHour", function() { return __WEBPACK_IMPORTED_MODULE_4__src_hour__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeHours", function() { return __WEBPACK_IMPORTED_MODULE_4__src_hour__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_day__ = __webpack_require__(221); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeDay", function() { return __WEBPACK_IMPORTED_MODULE_5__src_day__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeDays", function() { return __WEBPACK_IMPORTED_MODULE_5__src_day__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__src_week__ = __webpack_require__(222); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeWeek", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["g"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeWeeks", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["h"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeSunday", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["g"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeSundays", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["h"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeMonday", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeMondays", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["d"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeTuesday", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["k"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeTuesdays", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["l"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeWednesday", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["m"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeWednesdays", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["n"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeThursday", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["i"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeThursdays", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["j"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeFriday", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeFridays", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeSaturday", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["e"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeSaturdays", function() { return __WEBPACK_IMPORTED_MODULE_6__src_week__["f"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__src_month__ = __webpack_require__(223); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeMonth", function() { return __WEBPACK_IMPORTED_MODULE_7__src_month__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeMonths", function() { return __WEBPACK_IMPORTED_MODULE_7__src_month__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__src_year__ = __webpack_require__(224); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeYear", function() { return __WEBPACK_IMPORTED_MODULE_8__src_year__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeYears", function() { return __WEBPACK_IMPORTED_MODULE_8__src_year__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__src_utcMinute__ = __webpack_require__(225); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcMinute", function() { return __WEBPACK_IMPORTED_MODULE_9__src_utcMinute__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return __WEBPACK_IMPORTED_MODULE_9__src_utcMinute__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__src_utcHour__ = __webpack_require__(226); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcHour", function() { return __WEBPACK_IMPORTED_MODULE_10__src_utcHour__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return __WEBPACK_IMPORTED_MODULE_10__src_utcHour__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__src_utcDay__ = __webpack_require__(227); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcDay", function() { return __WEBPACK_IMPORTED_MODULE_11__src_utcDay__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return __WEBPACK_IMPORTED_MODULE_11__src_utcDay__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__ = __webpack_require__(228); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcWeek", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["g"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcWeeks", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["h"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["g"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["h"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["d"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["k"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["l"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["m"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["n"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["i"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["j"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["e"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return __WEBPACK_IMPORTED_MODULE_12__src_utcWeek__["f"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__src_utcMonth__ = __webpack_require__(229); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonth", function() { return __WEBPACK_IMPORTED_MODULE_13__src_utcMonth__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return __WEBPACK_IMPORTED_MODULE_13__src_utcMonth__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__src_utcYear__ = __webpack_require__(230); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcYear", function() { return __WEBPACK_IMPORTED_MODULE_14__src_utcYear__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return __WEBPACK_IMPORTED_MODULE_14__src_utcYear__["b"]; }); /***/ }), /* 43 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(13); /* harmony default export */ __webpack_exports__["a"] = (function(values, p, valueof) { if (valueof == null) valueof = __WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */]; if (!(n = values.length)) return; if ((p = +p) <= 0 || n < 2) return +valueof(values[0], 0, values); if (p >= 1) return +valueof(values[n - 1], n - 1, values); var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = +valueof(values[i0], i0, values), value1 = +valueof(values[i0 + 1], i0 + 1, values); return value0 + (value1 - value0) * (i - i0); }); /***/ }), /* 44 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return timeFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return timeParse; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return utcFormat; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return utcParse; }); /* harmony export (immutable) */ __webpack_exports__["a"] = defaultLocale; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__locale__ = __webpack_require__(86); var locale; var timeFormat; var timeParse; var utcFormat; var utcParse; defaultLocale({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", periods: ["AM", "PM"], days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }); function defaultLocale(definition) { locale = Object(__WEBPACK_IMPORTED_MODULE_0__locale__["a" /* default */])(definition); timeFormat = locale.format; timeParse = locale.parse; utcFormat = locale.utcFormat; utcParse = locale.utcParse; return locale; } /***/ }), /* 45 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return prefix; }); var prefix = "$"; function Map() {} Map.prototype = map.prototype = { constructor: Map, has: function(key) { return (prefix + key) in this; }, get: function(key) { return this[prefix + key]; }, set: function(key, value) { this[prefix + key] = value; return this; }, remove: function(key) { var property = prefix + key; return property in this && delete this[property]; }, clear: function() { for (var property in this) if (property[0] === prefix) delete this[property]; }, keys: function() { var keys = []; for (var property in this) if (property[0] === prefix) keys.push(property.slice(1)); return keys; }, values: function() { var values = []; for (var property in this) if (property[0] === prefix) values.push(this[property]); return values; }, entries: function() { var entries = []; for (var property in this) if (property[0] === prefix) entries.push({key: property.slice(1), value: this[property]}); return entries; }, size: function() { var size = 0; for (var property in this) if (property[0] === prefix) ++size; return size; }, empty: function() { for (var property in this) if (property[0] === prefix) return false; return true; }, each: function(f) { for (var property in this) if (property[0] === prefix) f(this[property], property.slice(1), this); } }; function map(object, f) { var map = new Map; // Copy constructor. if (object instanceof Map) object.each(function(value, key) { map.set(key, value); }); // Index array by numeric index or specified key function. else if (Array.isArray(object)) { var i = -1, n = object.length, o; if (f == null) while (++i < n) map.set(i, object[i]); else while (++i < n) map.set(f(o = object[i], i, object), o); } // Convert object to map. else if (object) for (var key in object) map.set(key, object[key]); return map; } /* harmony default export */ __webpack_exports__["a"] = (map); /***/ }), /* 46 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return function() { return x; }; }); /***/ }), /* 47 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_path__ = __webpack_require__(15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constant__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__curve_linear__ = __webpack_require__(25); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__point__ = __webpack_require__(48); /* harmony default export */ __webpack_exports__["a"] = (function() { var x = __WEBPACK_IMPORTED_MODULE_3__point__["a" /* x */], y = __WEBPACK_IMPORTED_MODULE_3__point__["b" /* y */], defined = Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(true), context = null, curve = __WEBPACK_IMPORTED_MODULE_2__curve_linear__["a" /* default */], output = null; function line(data) { var i, n = data.length, d, defined0 = false, buffer; if (context == null) output = curve(buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__["a" /* path */])()); for (i = 0; i <= n; ++i) { if (!(i < n && defined(d = data[i], i, data)) === defined0) { if (defined0 = !defined0) output.lineStart(); else output.lineEnd(); } if (defined0) output.point(+x(d, i, data), +y(d, i, data)); } if (buffer) return output = null, buffer + "" || null; } line.x = function(_) { return arguments.length ? (x = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), line) : x; }; line.y = function(_) { return arguments.length ? (y = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), line) : y; }; line.defined = function(_) { return arguments.length ? (defined = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(!!_), line) : defined; }; line.curve = function(_) { return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve; }; line.context = function(_) { return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context; }; return line; }); /***/ }), /* 48 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = x; /* harmony export (immutable) */ __webpack_exports__["b"] = y; function x(p) { return p[0]; } function y(p) { return p[1]; } /***/ }), /* 49 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = point; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(16); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__cardinal__ = __webpack_require__(28); function point(that, x, y) { var x1 = that._x1, y1 = that._y1, x2 = that._x2, y2 = that._y2; if (that._l01_a > __WEBPACK_IMPORTED_MODULE_0__math__["f" /* epsilon */]) { var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a, n = 3 * that._l01_a * (that._l01_a + that._l12_a); x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n; y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n; } if (that._l23_a > __WEBPACK_IMPORTED_MODULE_0__math__["f" /* epsilon */]) { var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a, m = 3 * that._l23_a * (that._l23_a + that._l12_a); x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m; y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m; } that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2); } function CatmullRom(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRom.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x2, this._y2); break; case 3: this.point(this._x2, this._y2); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; // proceed default: point(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["a"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRom(context, alpha) : new __WEBPACK_IMPORTED_MODULE_1__cardinal__["a" /* Cardinal */](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /* 50 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = sum; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(18); /* harmony default export */ __webpack_exports__["a"] = (function(series) { var sums = series.map(sum); return Object(__WEBPACK_IMPORTED_MODULE_0__none__["a" /* default */])(series).sort(function(a, b) { return sums[a] - sums[b]; }); }); function sum(series) { var s = 0, i = -1, n = series.length, v; while (++i < n) if (v = +series[i][1]) s += v; return s; } /***/ }), /* 51 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__ = __webpack_require__(44); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeFormatDefaultLocale", function() { return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeFormat", function() { return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeParse", function() { return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcFormat", function() { return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__["d"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "utcParse", function() { return __WEBPACK_IMPORTED_MODULE_0__src_defaultLocale__["e"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_locale__ = __webpack_require__(86); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "timeFormatLocale", function() { return __WEBPACK_IMPORTED_MODULE_1__src_locale__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_isoFormat__ = __webpack_require__(87); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "isoFormat", function() { return __WEBPACK_IMPORTED_MODULE_2__src_isoFormat__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_isoParse__ = __webpack_require__(231); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "isoParse", function() { return __WEBPACK_IMPORTED_MODULE_3__src_isoParse__["a"]; }); /***/ }), /* 52 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return deg2rad; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return rad2deg; }); var deg2rad = Math.PI / 180; var rad2deg = 180 / Math.PI; /***/ }), /* 53 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(19); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__formatGroup__ = __webpack_require__(125); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__formatNumerals__ = __webpack_require__(126); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__formatSpecifier__ = __webpack_require__(54); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__formatTrim__ = __webpack_require__(127); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__formatTypes__ = __webpack_require__(128); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__formatPrefixAuto__ = __webpack_require__(55); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__identity__ = __webpack_require__(130); var prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]; /* harmony default export */ __webpack_exports__["a"] = (function(locale) { var group = locale.grouping && locale.thousands ? Object(__WEBPACK_IMPORTED_MODULE_1__formatGroup__["a" /* default */])(locale.grouping, locale.thousands) : __WEBPACK_IMPORTED_MODULE_7__identity__["a" /* default */], currency = locale.currency, decimal = locale.decimal, numerals = locale.numerals ? Object(__WEBPACK_IMPORTED_MODULE_2__formatNumerals__["a" /* default */])(locale.numerals) : __WEBPACK_IMPORTED_MODULE_7__identity__["a" /* default */], percent = locale.percent || "%"; function newFormat(specifier) { specifier = Object(__WEBPACK_IMPORTED_MODULE_3__formatSpecifier__["a" /* default */])(specifier); var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type; // The "n" type is an alias for ",g". if (type === "n") comma = true, type = "g"; // The "" type, and any invalid type, is an alias for ".12~g". else if (!__WEBPACK_IMPORTED_MODULE_5__formatTypes__["a" /* default */][type]) precision == null && (precision = 12), trim = true, type = "g"; // If zero fill is specified, padding goes after sign and before digits. if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "="; // Compute the prefix and suffix. // For SI-prefix, the suffix is lazily computed. var prefix = symbol === "$" ? currency[0] : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", suffix = symbol === "$" ? currency[1] : /[%p]/.test(type) ? percent : ""; // What format function should we use? // Is this an integer type? // Can this type generate exponential notation? var formatType = __WEBPACK_IMPORTED_MODULE_5__formatTypes__["a" /* default */][type], maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified, // or clamp the specified precision to the supported range. // For significant precision, it must be in [1, 21]. // For fixed precision, it must be in [0, 20]. precision = precision == null ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision)); function format(value) { var valuePrefix = prefix, valueSuffix = suffix, i, n, c; if (type === "c") { valueSuffix = formatType(value) + valueSuffix; value = ""; } else { value = +value; // Perform the initial formatting. var valueNegative = value < 0; value = formatType(Math.abs(value), precision); // Trim insignificant zeros. if (trim) value = Object(__WEBPACK_IMPORTED_MODULE_4__formatTrim__["a" /* default */])(value); // If a negative value rounds to zero during formatting, treat as positive. if (valueNegative && +value === 0) valueNegative = false; // Compute the prefix and suffix. valuePrefix = (valueNegative ? (sign === "(" ? sign : "-") : sign === "-" || sign === "(" ? "" : sign) + valuePrefix; valueSuffix = (type === "s" ? prefixes[8 + __WEBPACK_IMPORTED_MODULE_6__formatPrefixAuto__["b" /* prefixExponent */] / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); // Break the formatted value into the integer “value” part that can be // grouped, and fractional or exponential “suffix” part that is not. if (maybeSuffix) { i = -1, n = value.length; while (++i < n) { if (c = value.charCodeAt(i), 48 > c || c > 57) { valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; value = value.slice(0, i); break; } } } } // If the fill character is not "0", grouping is applied before padding. if (comma && !zero) value = group(value, Infinity); // Compute the padding. var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : ""; // If the fill character is "0", grouping is applied after padding. if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; // Reconstruct the final output based on the desired alignment. switch (align) { case "<": value = valuePrefix + value + valueSuffix + padding; break; case "=": value = valuePrefix + padding + value + valueSuffix; break; case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break; default: value = padding + valuePrefix + value + valueSuffix; break; } return numerals(value); } format.toString = function() { return specifier + ""; }; return format; } function formatPrefix(specifier, value) { var f = newFormat((specifier = Object(__WEBPACK_IMPORTED_MODULE_3__formatSpecifier__["a" /* default */])(specifier), specifier.type = "f", specifier)), e = Math.max(-8, Math.min(8, Math.floor(Object(__WEBPACK_IMPORTED_MODULE_0__exponent__["a" /* default */])(value) / 3))) * 3, k = Math.pow(10, -e), prefix = prefixes[8 + e / 3]; return function(value) { return f(k * value) + prefix; }; } return { format: newFormat, formatPrefix: formatPrefix }; }); /***/ }), /* 54 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = formatSpecifier; // [[fill]align][sign][symbol][0][width][,][.precision][~][type] var re = /^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; function formatSpecifier(specifier) { return new FormatSpecifier(specifier); } formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof function FormatSpecifier(specifier) { if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier); var match; this.fill = match[1] || " "; this.align = match[2] || ">"; this.sign = match[3] || "-"; this.symbol = match[4] || ""; this.zero = !!match[5]; this.width = match[6] && +match[6]; this.comma = !!match[7]; this.precision = match[8] && +match[8].slice(1); this.trim = !!match[9]; this.type = match[10] || ""; } FormatSpecifier.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width == null ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision == null ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; /***/ }), /* 55 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return prefixExponent; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(32); var prefixExponent; /* harmony default export */ __webpack_exports__["a"] = (function(x, p) { var d = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__["a" /* default */])(x, p); if (!d) return x + ""; var coefficient = d[0], exponent = d[1], i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, n = coefficient.length; return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__["a" /* default */])(x, Math.max(0, p + i - 1))[0]; // less than 1y! }); /***/ }), /* 56 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return rgbBasis; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return rgbBasisClosed; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(7); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__basis__ = __webpack_require__(34); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__basisClosed__ = __webpack_require__(57); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__color__ = __webpack_require__(12); /* harmony default export */ __webpack_exports__["a"] = ((function rgbGamma(y) { var color = Object(__WEBPACK_IMPORTED_MODULE_3__color__["b" /* gamma */])(y); function rgb(start, end) { var r = color((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["rgb"])(start)).r, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["rgb"])(end)).r), g = color(start.g, end.g), b = color(start.b, end.b), opacity = Object(__WEBPACK_IMPORTED_MODULE_3__color__["a" /* default */])(start.opacity, end.opacity); return function(t) { start.r = r(t); start.g = g(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } rgb.gamma = rgbGamma; return rgb; })(1)); function rgbSpline(spline) { return function(colors) { var n = colors.length, r = new Array(n), g = new Array(n), b = new Array(n), i, color; for (i = 0; i < n; ++i) { color = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["rgb"])(colors[i]); r[i] = color.r || 0; g[i] = color.g || 0; b[i] = color.b || 0; } r = spline(r); g = spline(g); b = spline(b); color.opacity = 1; return function(t) { color.r = r(t); color.g = g(t); color.b = b(t); return color + ""; }; }; } var rgbBasis = rgbSpline(__WEBPACK_IMPORTED_MODULE_1__basis__["b" /* default */]); var rgbBasisClosed = rgbSpline(__WEBPACK_IMPORTED_MODULE_2__basisClosed__["a" /* default */]); /***/ }), /* 57 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(34); /* harmony default export */ __webpack_exports__["a"] = (function(values) { var n = values.length; return function(t) { var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), v0 = values[(i + n - 1) % n], v1 = values[i % n], v2 = values[(i + 1) % n], v3 = values[(i + 2) % n]; return Object(__WEBPACK_IMPORTED_MODULE_0__basis__["a" /* basis */])((t - i / n) * n, v0, v1, v2, v3); }; }); /***/ }), /* 58 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return function() { return x; }; }); /***/ }), /* 59 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__value__ = __webpack_require__(33); /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i; for (i = 0; i < na; ++i) x[i] = Object(__WEBPACK_IMPORTED_MODULE_0__value__["a" /* default */])(a[i], b[i]); for (; i < nb; ++i) c[i] = b[i]; return function(t) { for (i = 0; i < na; ++i) c[i] = x[i](t); return c; }; }); /***/ }), /* 60 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { var d = new Date; return a = +a, b -= a, function(t) { return d.setTime(a + b * t), d; }; }); /***/ }), /* 61 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__value__ = __webpack_require__(33); /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { var i = {}, c = {}, k; if (a === null || typeof a !== "object") a = {}; if (b === null || typeof b !== "object") b = {}; for (k in b) { if (k in a) { i[k] = Object(__WEBPACK_IMPORTED_MODULE_0__value__["a" /* default */])(a[k], b[k]); } else { c[k] = b[k]; } } return function(t) { for (k in i) c[k] = i[k](t); return c; }; }); /***/ }), /* 62 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(20); var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g"); function zero(b) { return function() { return b; }; } function one(b) { return function(t) { return b(t) + ""; }; } /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b am, // current match in a bm, // current match in b bs, // string preceding current number in b, if any i = -1, // index in s s = [], // string constants and placeholders q = []; // number interpolators // Coerce inputs to strings. a = a + "", b = b + ""; // Interpolate pairs of numbers in a & b. while ((am = reA.exec(a)) && (bm = reB.exec(b))) { if ((bs = bm.index) > bi) { // a string precedes the next number in b bs = b.slice(bi, bs); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match if (s[i]) s[i] += bm; // coalesce with previous string else s[++i] = bm; } else { // interpolate non-matching numbers s[++i] = null; q.push({i: i, x: Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(am, bm)}); } bi = reB.lastIndex; } // Add remains of b. if (bi < b.length) { bs = b.slice(bi); if (s[i]) s[i] += bs; // coalesce with previous string else s[++i] = bs; } // Special optimization for only a single match. // Otherwise, interpolate each of the numbers and rejoin the string. return s.length < 2 ? (q[0] ? one(q[0].x) : zero(b)) : (b = q.length, function(t) { for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t); return s.join(""); }); }); /***/ }), /* 63 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__selection_index__ = __webpack_require__(1); /* harmony default export */ __webpack_exports__["a"] = (function(selector) { return typeof selector === "string" ? new __WEBPACK_IMPORTED_MODULE_0__selection_index__["a" /* Selection */]([[document.querySelector(selector)]], [document.documentElement]) : new __WEBPACK_IMPORTED_MODULE_0__selection_index__["a" /* Selection */]([[selector]], __WEBPACK_IMPORTED_MODULE_0__selection_index__["c" /* root */]); }); /***/ }), /* 64 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function empty() { return []; } /* harmony default export */ __webpack_exports__["a"] = (function(selector) { return selector == null ? empty : function() { return this.querySelectorAll(selector); }; }); /***/ }), /* 65 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var matcher = function(selector) { return function() { return this.matches(selector); }; }; if (typeof document !== "undefined") { var element = document.documentElement; if (!element.matches) { var vendorMatches = element.webkitMatchesSelector || element.msMatchesSelector || element.mozMatchesSelector || element.oMatchesSelector; matcher = function(selector) { return function() { return vendorMatches.call(this, selector); }; }; } } /* harmony default export */ __webpack_exports__["a"] = (matcher); /***/ }), /* 66 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = EnterNode; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sparse__ = __webpack_require__(67); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__index__ = __webpack_require__(1); /* harmony default export */ __webpack_exports__["b"] = (function() { return new __WEBPACK_IMPORTED_MODULE_1__index__["a" /* Selection */](this._enter || this._groups.map(__WEBPACK_IMPORTED_MODULE_0__sparse__["a" /* default */]), this._parents); }); function EnterNode(parent, datum) { this.ownerDocument = parent.ownerDocument; this.namespaceURI = parent.namespaceURI; this._next = null; this._parent = parent; this.__data__ = datum; } EnterNode.prototype = { constructor: EnterNode, appendChild: function(child) { return this._parent.insertBefore(child, this._next); }, insertBefore: function(child, next) { return this._parent.insertBefore(child, next); }, querySelector: function(selector) { return this._parent.querySelector(selector); }, querySelectorAll: function(selector) { return this._parent.querySelectorAll(selector); } }; /***/ }), /* 67 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(update) { return new Array(update.length); }); /***/ }), /* 68 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = styleValue; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__window__ = __webpack_require__(38); function styleRemove(name) { return function() { this.style.removeProperty(name); }; } function styleConstant(name, value, priority) { return function() { this.style.setProperty(name, value, priority); }; } function styleFunction(name, value, priority) { return function() { var v = value.apply(this, arguments); if (v == null) this.style.removeProperty(name); else this.style.setProperty(name, v, priority); }; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value, priority) { return arguments.length > 1 ? this.each((value == null ? styleRemove : typeof value === "function" ? styleFunction : styleConstant)(name, value, priority == null ? "" : priority)) : styleValue(this.node(), name); }); function styleValue(node, name) { return node.style.getPropertyValue(name) || Object(__WEBPACK_IMPORTED_MODULE_0__window__["a" /* default */])(node).getComputedStyle(node, null).getPropertyValue(name); } /***/ }), /* 69 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__transition_schedule__ = __webpack_require__(2); /* harmony default export */ __webpack_exports__["a"] = (function(node, name) { var schedules = node.__transition, schedule, active, empty = true, i; if (!schedules) return; name = name == null ? null : name + ""; for (i in schedules) { if ((schedule = schedules[i]).name !== name) { empty = false; continue; } active = schedule.state > __WEBPACK_IMPORTED_MODULE_0__transition_schedule__["d" /* STARTING */] && schedule.state < __WEBPACK_IMPORTED_MODULE_0__transition_schedule__["b" /* ENDING */]; schedule.state = __WEBPACK_IMPORTED_MODULE_0__transition_schedule__["a" /* ENDED */]; schedule.timer.stop(); if (active) schedule.on.call("interrupt", node, node.__data__, schedule.index, schedule.group); delete schedules[i]; } if (empty) delete node.__transition; }); /***/ }), /* 70 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_timer__ = __webpack_require__(41); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_timer__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__src_timer__["c"]; }); /* unused harmony reexport timerFlush */ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_timeout__ = __webpack_require__(181); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__src_timeout__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_interval__ = __webpack_require__(182); /* unused harmony reexport interval */ /***/ }), /* 71 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(7); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(9); /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { var c; return (typeof b === "number" ? __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["interpolateNumber"] : b instanceof __WEBPACK_IMPORTED_MODULE_0_d3_color__["color"] ? __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["interpolateRgb"] : (c = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["color"])(b)) ? (b = c, __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["interpolateRgb"]) : __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["interpolateString"])(a, b); }); /***/ }), /* 72 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_linear__ = __webpack_require__(111); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeLinear", function() { return __WEBPACK_IMPORTED_MODULE_0__src_linear__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_quad__ = __webpack_require__(112); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeQuad", function() { return __WEBPACK_IMPORTED_MODULE_1__src_quad__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeQuadIn", function() { return __WEBPACK_IMPORTED_MODULE_1__src_quad__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeQuadOut", function() { return __WEBPACK_IMPORTED_MODULE_1__src_quad__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeQuadInOut", function() { return __WEBPACK_IMPORTED_MODULE_1__src_quad__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_cubic__ = __webpack_require__(113); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeCubic", function() { return __WEBPACK_IMPORTED_MODULE_2__src_cubic__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeCubicIn", function() { return __WEBPACK_IMPORTED_MODULE_2__src_cubic__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeCubicOut", function() { return __WEBPACK_IMPORTED_MODULE_2__src_cubic__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeCubicInOut", function() { return __WEBPACK_IMPORTED_MODULE_2__src_cubic__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_poly__ = __webpack_require__(114); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easePoly", function() { return __WEBPACK_IMPORTED_MODULE_3__src_poly__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easePolyIn", function() { return __WEBPACK_IMPORTED_MODULE_3__src_poly__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easePolyOut", function() { return __WEBPACK_IMPORTED_MODULE_3__src_poly__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easePolyInOut", function() { return __WEBPACK_IMPORTED_MODULE_3__src_poly__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_sin__ = __webpack_require__(115); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeSin", function() { return __WEBPACK_IMPORTED_MODULE_4__src_sin__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeSinIn", function() { return __WEBPACK_IMPORTED_MODULE_4__src_sin__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeSinOut", function() { return __WEBPACK_IMPORTED_MODULE_4__src_sin__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeSinInOut", function() { return __WEBPACK_IMPORTED_MODULE_4__src_sin__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_exp__ = __webpack_require__(116); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeExp", function() { return __WEBPACK_IMPORTED_MODULE_5__src_exp__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeExpIn", function() { return __WEBPACK_IMPORTED_MODULE_5__src_exp__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeExpOut", function() { return __WEBPACK_IMPORTED_MODULE_5__src_exp__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeExpInOut", function() { return __WEBPACK_IMPORTED_MODULE_5__src_exp__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__src_circle__ = __webpack_require__(117); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeCircle", function() { return __WEBPACK_IMPORTED_MODULE_6__src_circle__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeCircleIn", function() { return __WEBPACK_IMPORTED_MODULE_6__src_circle__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeCircleOut", function() { return __WEBPACK_IMPORTED_MODULE_6__src_circle__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeCircleInOut", function() { return __WEBPACK_IMPORTED_MODULE_6__src_circle__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__src_bounce__ = __webpack_require__(118); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeBounce", function() { return __WEBPACK_IMPORTED_MODULE_7__src_bounce__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeBounceIn", function() { return __WEBPACK_IMPORTED_MODULE_7__src_bounce__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeBounceOut", function() { return __WEBPACK_IMPORTED_MODULE_7__src_bounce__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeBounceInOut", function() { return __WEBPACK_IMPORTED_MODULE_7__src_bounce__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__src_back__ = __webpack_require__(119); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeBack", function() { return __WEBPACK_IMPORTED_MODULE_8__src_back__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeBackIn", function() { return __WEBPACK_IMPORTED_MODULE_8__src_back__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeBackOut", function() { return __WEBPACK_IMPORTED_MODULE_8__src_back__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeBackInOut", function() { return __WEBPACK_IMPORTED_MODULE_8__src_back__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__src_elastic__ = __webpack_require__(120); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeElastic", function() { return __WEBPACK_IMPORTED_MODULE_9__src_elastic__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeElasticIn", function() { return __WEBPACK_IMPORTED_MODULE_9__src_elastic__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeElasticOut", function() { return __WEBPACK_IMPORTED_MODULE_9__src_elastic__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "easeElasticInOut", function() { return __WEBPACK_IMPORTED_MODULE_9__src_elastic__["b"]; }); /***/ }), /* 73 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_dispatch__ = __webpack_require__(123); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return __WEBPACK_IMPORTED_MODULE_0__src_dispatch__["a"]; }); /***/ }), /* 74 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return bisectRight; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return bisectLeft; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ascending__ = __webpack_require__(11); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__bisector__ = __webpack_require__(75); var ascendingBisect = Object(__WEBPACK_IMPORTED_MODULE_1__bisector__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__ascending__["a" /* default */]); var bisectRight = ascendingBisect.right; var bisectLeft = ascendingBisect.left; /* harmony default export */ __webpack_exports__["c"] = (bisectRight); /***/ }), /* 75 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ascending__ = __webpack_require__(11); /* harmony default export */ __webpack_exports__["a"] = (function(compare) { if (compare.length === 1) compare = ascendingComparator(compare); return { left: function(a, x, lo, hi) { if (lo == null) lo = 0; if (hi == null) hi = a.length; while (lo < hi) { var mid = lo + hi >>> 1; if (compare(a[mid], x) < 0) lo = mid + 1; else hi = mid; } return lo; }, right: function(a, x, lo, hi) { if (lo == null) lo = 0; if (hi == null) hi = a.length; while (lo < hi) { var mid = lo + hi >>> 1; if (compare(a[mid], x) > 0) hi = mid; else lo = mid + 1; } return lo; } }; }); function ascendingComparator(f) { return function(d, x) { return Object(__WEBPACK_IMPORTED_MODULE_0__ascending__["a" /* default */])(f(d), x); }; } /***/ }), /* 76 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = pair; /* harmony default export */ __webpack_exports__["a"] = (function(array, f) { if (f == null) f = pair; var i = 0, n = array.length - 1, p = array[0], pairs = new Array(n < 0 ? 0 : n); while (i < n) pairs[i] = f(p, p = array[++i]); return pairs; }); function pair(a, b) { return [a, b]; } /***/ }), /* 77 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__variance__ = __webpack_require__(78); /* harmony default export */ __webpack_exports__["a"] = (function(array, f) { var v = Object(__WEBPACK_IMPORTED_MODULE_0__variance__["a" /* default */])(array, f); return v ? Math.sqrt(v) : v; }); /***/ }), /* 78 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(13); /* harmony default export */ __webpack_exports__["a"] = (function(values, valueof) { var n = values.length, m = 0, i = -1, mean = 0, value, delta, sum = 0; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(values[i]))) { delta = value - mean; mean += delta / ++m; sum += delta * (value - mean); } } } else { while (++i < n) { if (!isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(valueof(values[i], i, values)))) { delta = value - mean; mean += delta / ++m; sum += delta * (value - mean); } } } if (m > 1) return sum / (m - 1); }); /***/ }), /* 79 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(values, valueof) { var n = values.length, i = -1, value, min, max; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { min = max = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null) { if (min > value) min = value; if (max < value) max = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { min = max = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null) { if (min > value) min = value; if (max < value) max = value; } } } } } return [min, max]; }); /***/ }), /* 80 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return slice; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return map; }); var array = Array.prototype; var slice = array.slice; var map = array.map; /***/ }), /* 81 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(start, stop, step) { start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step; var i = -1, n = Math.max(0, Math.ceil((stop - start) / step)) | 0, range = new Array(n); while (++i < n) { range[i] = start + i * step; } return range; }); /***/ }), /* 82 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = tickIncrement; /* harmony export (immutable) */ __webpack_exports__["c"] = tickStep; var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2); /* harmony default export */ __webpack_exports__["a"] = (function(start, stop, count) { var reverse, i = -1, n, ticks, step; stop = +stop, start = +start, count = +count; if (start === stop && count > 0) return [start]; if (reverse = stop < start) n = start, start = stop, stop = n; if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return []; if (step > 0) { start = Math.ceil(start / step); stop = Math.floor(stop / step); ticks = new Array(n = Math.ceil(stop - start + 1)); while (++i < n) ticks[i] = (start + i) * step; } else { start = Math.floor(start * step); stop = Math.ceil(stop * step); ticks = new Array(n = Math.ceil(start - stop + 1)); while (++i < n) ticks[i] = (start - i) / step; } if (reverse) ticks.reverse(); return ticks; }); function tickIncrement(start, stop, count) { var step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log(step) / Math.LN10), error = step / Math.pow(10, power); return power >= 0 ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1); } function tickStep(start, stop, count) { var step0 = Math.abs(stop - start) / Math.max(0, count), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error = step0 / step1; if (error >= e10) step1 *= 10; else if (error >= e5) step1 *= 5; else if (error >= e2) step1 *= 2; return stop < start ? -step1 : step1; } /***/ }), /* 83 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(values) { return Math.ceil(Math.log(values.length) / Math.LN2) + 1; }); /***/ }), /* 84 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(values, valueof) { var n = values.length, i = -1, value, min; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { min = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null && min > value) { min = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { min = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null && min > value) { min = value; } } } } } return min; }); /***/ }), /* 85 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__min__ = __webpack_require__(84); /* harmony default export */ __webpack_exports__["a"] = (function(matrix) { if (!(n = matrix.length)) return []; for (var i = -1, m = Object(__WEBPACK_IMPORTED_MODULE_0__min__["a" /* default */])(matrix, length), transpose = new Array(m); ++i < m;) { for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) { row[j] = matrix[j][i]; } } return transpose; }); function length(d) { return d.length; } /***/ }), /* 86 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = formatLocale; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_time__ = __webpack_require__(42); function localDate(d) { if (0 <= d.y && d.y < 100) { var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L); date.setFullYear(d.y); return date; } return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L); } function utcDate(d) { if (0 <= d.y && d.y < 100) { var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L)); date.setUTCFullYear(d.y); return date; } return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L)); } function newYear(y) { return {y: y, m: 0, d: 1, H: 0, M: 0, S: 0, L: 0}; } function formatLocale(locale) { var locale_dateTime = locale.dateTime, locale_date = locale.date, locale_time = locale.time, locale_periods = locale.periods, locale_weekdays = locale.days, locale_shortWeekdays = locale.shortDays, locale_months = locale.months, locale_shortMonths = locale.shortMonths; var periodRe = formatRe(locale_periods), periodLookup = formatLookup(locale_periods), weekdayRe = formatRe(locale_weekdays), weekdayLookup = formatLookup(locale_weekdays), shortWeekdayRe = formatRe(locale_shortWeekdays), shortWeekdayLookup = formatLookup(locale_shortWeekdays), monthRe = formatRe(locale_months), monthLookup = formatLookup(locale_months), shortMonthRe = formatRe(locale_shortMonths), shortMonthLookup = formatLookup(locale_shortMonths); var formats = { "a": formatShortWeekday, "A": formatWeekday, "b": formatShortMonth, "B": formatMonth, "c": null, "d": formatDayOfMonth, "e": formatDayOfMonth, "f": formatMicroseconds, "H": formatHour24, "I": formatHour12, "j": formatDayOfYear, "L": formatMilliseconds, "m": formatMonthNumber, "M": formatMinutes, "p": formatPeriod, "Q": formatUnixTimestamp, "s": formatUnixTimestampSeconds, "S": formatSeconds, "u": formatWeekdayNumberMonday, "U": formatWeekNumberSunday, "V": formatWeekNumberISO, "w": formatWeekdayNumberSunday, "W": formatWeekNumberMonday, "x": null, "X": null, "y": formatYear, "Y": formatFullYear, "Z": formatZone, "%": formatLiteralPercent }; var utcFormats = { "a": formatUTCShortWeekday, "A": formatUTCWeekday, "b": formatUTCShortMonth, "B": formatUTCMonth, "c": null, "d": formatUTCDayOfMonth, "e": formatUTCDayOfMonth, "f": formatUTCMicroseconds, "H": formatUTCHour24, "I": formatUTCHour12, "j": formatUTCDayOfYear, "L": formatUTCMilliseconds, "m": formatUTCMonthNumber, "M": formatUTCMinutes, "p": formatUTCPeriod, "Q": formatUnixTimestamp, "s": formatUnixTimestampSeconds, "S": formatUTCSeconds, "u": formatUTCWeekdayNumberMonday, "U": formatUTCWeekNumberSunday, "V": formatUTCWeekNumberISO, "w": formatUTCWeekdayNumberSunday, "W": formatUTCWeekNumberMonday, "x": null, "X": null, "y": formatUTCYear, "Y": formatUTCFullYear, "Z": formatUTCZone, "%": formatLiteralPercent }; var parses = { "a": parseShortWeekday, "A": parseWeekday, "b": parseShortMonth, "B": parseMonth, "c": parseLocaleDateTime, "d": parseDayOfMonth, "e": parseDayOfMonth, "f": parseMicroseconds, "H": parseHour24, "I": parseHour24, "j": parseDayOfYear, "L": parseMilliseconds, "m": parseMonthNumber, "M": parseMinutes, "p": parsePeriod, "Q": parseUnixTimestamp, "s": parseUnixTimestampSeconds, "S": parseSeconds, "u": parseWeekdayNumberMonday, "U": parseWeekNumberSunday, "V": parseWeekNumberISO, "w": parseWeekdayNumberSunday, "W": parseWeekNumberMonday, "x": parseLocaleDate, "X": parseLocaleTime, "y": parseYear, "Y": parseFullYear, "Z": parseZone, "%": parseLiteralPercent }; // These recursive directive definitions must be deferred. formats.x = newFormat(locale_date, formats); formats.X = newFormat(locale_time, formats); formats.c = newFormat(locale_dateTime, formats); utcFormats.x = newFormat(locale_date, utcFormats); utcFormats.X = newFormat(locale_time, utcFormats); utcFormats.c = newFormat(locale_dateTime, utcFormats); function newFormat(specifier, formats) { return function(date) { var string = [], i = -1, j = 0, n = specifier.length, c, pad, format; if (!(date instanceof Date)) date = new Date(+date); while (++i < n) { if (specifier.charCodeAt(i) === 37) { string.push(specifier.slice(j, i)); if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i); else pad = c === "e" ? " " : "0"; if (format = formats[c]) c = format(date, pad); string.push(c); j = i + 1; } } string.push(specifier.slice(j, i)); return string.join(""); }; } function newParse(specifier, newDate) { return function(string) { var d = newYear(1900), i = parseSpecifier(d, specifier, string += "", 0), week, day; if (i != string.length) return null; // If a UNIX timestamp is specified, return it. if ("Q" in d) return new Date(d.Q); // The am-pm flag is 0 for AM, and 1 for PM. if ("p" in d) d.H = d.H % 12 + d.p * 12; // Convert day-of-week and week-of-year to day-of-year. if ("V" in d) { if (d.V < 1 || d.V > 53) return null; if (!("w" in d)) d.w = 1; if ("Z" in d) { week = utcDate(newYear(d.y)), day = week.getUTCDay(); week = day > 4 || day === 0 ? __WEBPACK_IMPORTED_MODULE_0_d3_time__["utcMonday"].ceil(week) : Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcMonday"])(week); week = __WEBPACK_IMPORTED_MODULE_0_d3_time__["utcDay"].offset(week, (d.V - 1) * 7); d.y = week.getUTCFullYear(); d.m = week.getUTCMonth(); d.d = week.getUTCDate() + (d.w + 6) % 7; } else { week = newDate(newYear(d.y)), day = week.getDay(); week = day > 4 || day === 0 ? __WEBPACK_IMPORTED_MODULE_0_d3_time__["timeMonday"].ceil(week) : Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeMonday"])(week); week = __WEBPACK_IMPORTED_MODULE_0_d3_time__["timeDay"].offset(week, (d.V - 1) * 7); d.y = week.getFullYear(); d.m = week.getMonth(); d.d = week.getDate() + (d.w + 6) % 7; } } else if ("W" in d || "U" in d) { if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0; day = "Z" in d ? utcDate(newYear(d.y)).getUTCDay() : newDate(newYear(d.y)).getDay(); d.m = 0; d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7; } // If a time zone is specified, all fields are interpreted as UTC and then // offset according to the specified time zone. if ("Z" in d) { d.H += d.Z / 100 | 0; d.M += d.Z % 100; return utcDate(d); } // Otherwise, all fields are in local time. return newDate(d); }; } function parseSpecifier(d, specifier, string, j) { var i = 0, n = specifier.length, m = string.length, c, parse; while (i < n) { if (j >= m) return -1; c = specifier.charCodeAt(i++); if (c === 37) { c = specifier.charAt(i++); parse = parses[c in pads ? specifier.charAt(i++) : c]; if (!parse || ((j = parse(d, string, j)) < 0)) return -1; } else if (c != string.charCodeAt(j++)) { return -1; } } return j; } function parsePeriod(d, string, i) { var n = periodRe.exec(string.slice(i)); return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseShortWeekday(d, string, i) { var n = shortWeekdayRe.exec(string.slice(i)); return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseWeekday(d, string, i) { var n = weekdayRe.exec(string.slice(i)); return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseShortMonth(d, string, i) { var n = shortMonthRe.exec(string.slice(i)); return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseMonth(d, string, i) { var n = monthRe.exec(string.slice(i)); return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1; } function parseLocaleDateTime(d, string, i) { return parseSpecifier(d, locale_dateTime, string, i); } function parseLocaleDate(d, string, i) { return parseSpecifier(d, locale_date, string, i); } function parseLocaleTime(d, string, i) { return parseSpecifier(d, locale_time, string, i); } function formatShortWeekday(d) { return locale_shortWeekdays[d.getDay()]; } function formatWeekday(d) { return locale_weekdays[d.getDay()]; } function formatShortMonth(d) { return locale_shortMonths[d.getMonth()]; } function formatMonth(d) { return locale_months[d.getMonth()]; } function formatPeriod(d) { return locale_periods[+(d.getHours() >= 12)]; } function formatUTCShortWeekday(d) { return locale_shortWeekdays[d.getUTCDay()]; } function formatUTCWeekday(d) { return locale_weekdays[d.getUTCDay()]; } function formatUTCShortMonth(d) { return locale_shortMonths[d.getUTCMonth()]; } function formatUTCMonth(d) { return locale_months[d.getUTCMonth()]; } function formatUTCPeriod(d) { return locale_periods[+(d.getUTCHours() >= 12)]; } return { format: function(specifier) { var f = newFormat(specifier += "", formats); f.toString = function() { return specifier; }; return f; }, parse: function(specifier) { var p = newParse(specifier += "", localDate); p.toString = function() { return specifier; }; return p; }, utcFormat: function(specifier) { var f = newFormat(specifier += "", utcFormats); f.toString = function() { return specifier; }; return f; }, utcParse: function(specifier) { var p = newParse(specifier, utcDate); p.toString = function() { return specifier; }; return p; } }; } var pads = {"-": "", "_": " ", "0": "0"}, numberRe = /^\s*\d+/, // note: ignores next directive percentRe = /^%/, requoteRe = /[\\^$*+?|[\]().{}]/g; function pad(value, fill, width) { var sign = value < 0 ? "-" : "", string = (sign ? -value : value) + "", length = string.length; return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); } function requote(s) { return s.replace(requoteRe, "\\$&"); } function formatRe(names) { return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i"); } function formatLookup(names) { var map = {}, i = -1, n = names.length; while (++i < n) map[names[i].toLowerCase()] = i; return map; } function parseWeekdayNumberSunday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.w = +n[0], i + n[0].length) : -1; } function parseWeekdayNumberMonday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 1)); return n ? (d.u = +n[0], i + n[0].length) : -1; } function parseWeekNumberSunday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.U = +n[0], i + n[0].length) : -1; } function parseWeekNumberISO(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.V = +n[0], i + n[0].length) : -1; } function parseWeekNumberMonday(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.W = +n[0], i + n[0].length) : -1; } function parseFullYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 4)); return n ? (d.y = +n[0], i + n[0].length) : -1; } function parseYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1; } function parseZone(d, string, i) { var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6)); return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1; } function parseMonthNumber(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.m = n[0] - 1, i + n[0].length) : -1; } function parseDayOfMonth(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.d = +n[0], i + n[0].length) : -1; } function parseDayOfYear(d, string, i) { var n = numberRe.exec(string.slice(i, i + 3)); return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1; } function parseHour24(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.H = +n[0], i + n[0].length) : -1; } function parseMinutes(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.M = +n[0], i + n[0].length) : -1; } function parseSeconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 2)); return n ? (d.S = +n[0], i + n[0].length) : -1; } function parseMilliseconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 3)); return n ? (d.L = +n[0], i + n[0].length) : -1; } function parseMicroseconds(d, string, i) { var n = numberRe.exec(string.slice(i, i + 6)); return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1; } function parseLiteralPercent(d, string, i) { var n = percentRe.exec(string.slice(i, i + 1)); return n ? i + n[0].length : -1; } function parseUnixTimestamp(d, string, i) { var n = numberRe.exec(string.slice(i)); return n ? (d.Q = +n[0], i + n[0].length) : -1; } function parseUnixTimestampSeconds(d, string, i) { var n = numberRe.exec(string.slice(i)); return n ? (d.Q = (+n[0]) * 1000, i + n[0].length) : -1; } function formatDayOfMonth(d, p) { return pad(d.getDate(), p, 2); } function formatHour24(d, p) { return pad(d.getHours(), p, 2); } function formatHour12(d, p) { return pad(d.getHours() % 12 || 12, p, 2); } function formatDayOfYear(d, p) { return pad(1 + __WEBPACK_IMPORTED_MODULE_0_d3_time__["timeDay"].count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeYear"])(d), d), p, 3); } function formatMilliseconds(d, p) { return pad(d.getMilliseconds(), p, 3); } function formatMicroseconds(d, p) { return formatMilliseconds(d, p) + "000"; } function formatMonthNumber(d, p) { return pad(d.getMonth() + 1, p, 2); } function formatMinutes(d, p) { return pad(d.getMinutes(), p, 2); } function formatSeconds(d, p) { return pad(d.getSeconds(), p, 2); } function formatWeekdayNumberMonday(d) { var day = d.getDay(); return day === 0 ? 7 : day; } function formatWeekNumberSunday(d, p) { return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeSunday"].count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeYear"])(d), d), p, 2); } function formatWeekNumberISO(d, p) { var day = d.getDay(); d = (day >= 4 || day === 0) ? Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeThursday"])(d) : __WEBPACK_IMPORTED_MODULE_0_d3_time__["timeThursday"].ceil(d); return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeThursday"].count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeYear"])(d), d) + (Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeYear"])(d).getDay() === 4), p, 2); } function formatWeekdayNumberSunday(d) { return d.getDay(); } function formatWeekNumberMonday(d, p) { return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeMonday"].count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["timeYear"])(d), d), p, 2); } function formatYear(d, p) { return pad(d.getFullYear() % 100, p, 2); } function formatFullYear(d, p) { return pad(d.getFullYear() % 10000, p, 4); } function formatZone(d) { var z = d.getTimezoneOffset(); return (z > 0 ? "-" : (z *= -1, "+")) + pad(z / 60 | 0, "0", 2) + pad(z % 60, "0", 2); } function formatUTCDayOfMonth(d, p) { return pad(d.getUTCDate(), p, 2); } function formatUTCHour24(d, p) { return pad(d.getUTCHours(), p, 2); } function formatUTCHour12(d, p) { return pad(d.getUTCHours() % 12 || 12, p, 2); } function formatUTCDayOfYear(d, p) { return pad(1 + __WEBPACK_IMPORTED_MODULE_0_d3_time__["utcDay"].count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcYear"])(d), d), p, 3); } function formatUTCMilliseconds(d, p) { return pad(d.getUTCMilliseconds(), p, 3); } function formatUTCMicroseconds(d, p) { return formatUTCMilliseconds(d, p) + "000"; } function formatUTCMonthNumber(d, p) { return pad(d.getUTCMonth() + 1, p, 2); } function formatUTCMinutes(d, p) { return pad(d.getUTCMinutes(), p, 2); } function formatUTCSeconds(d, p) { return pad(d.getUTCSeconds(), p, 2); } function formatUTCWeekdayNumberMonday(d) { var dow = d.getUTCDay(); return dow === 0 ? 7 : dow; } function formatUTCWeekNumberSunday(d, p) { return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcSunday"].count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcYear"])(d), d), p, 2); } function formatUTCWeekNumberISO(d, p) { var day = d.getUTCDay(); d = (day >= 4 || day === 0) ? Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcThursday"])(d) : __WEBPACK_IMPORTED_MODULE_0_d3_time__["utcThursday"].ceil(d); return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcThursday"].count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcYear"])(d), d) + (Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcYear"])(d).getUTCDay() === 4), p, 2); } function formatUTCWeekdayNumberSunday(d) { return d.getUTCDay(); } function formatUTCWeekNumberMonday(d, p) { return pad(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcMonday"].count(Object(__WEBPACK_IMPORTED_MODULE_0_d3_time__["utcYear"])(d), d), p, 2); } function formatUTCYear(d, p) { return pad(d.getUTCFullYear() % 100, p, 2); } function formatUTCFullYear(d, p) { return pad(d.getUTCFullYear() % 10000, p, 4); } function formatUTCZone() { return "+0000"; } function formatLiteralPercent() { return "%"; } function formatUnixTimestamp(d) { return +d; } function formatUnixTimestampSeconds(d) { return Math.floor(+d / 1000); } /***/ }), /* 87 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isoSpecifier; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__defaultLocale__ = __webpack_require__(44); var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ"; function formatIsoNative(date) { return date.toISOString(); } var formatIso = Date.prototype.toISOString ? formatIsoNative : Object(__WEBPACK_IMPORTED_MODULE_0__defaultLocale__["d" /* utcFormat */])(isoSpecifier); /* harmony default export */ __webpack_exports__["a"] = (formatIso); /***/ }), /* 88 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return implicit; }); /* harmony export (immutable) */ __webpack_exports__["a"] = ordinal; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_collection__ = __webpack_require__(109); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(8); var implicit = {name: "implicit"}; function ordinal(range) { var index = Object(__WEBPACK_IMPORTED_MODULE_0_d3_collection__["map"])(), domain = [], unknown = implicit; range = range == null ? [] : __WEBPACK_IMPORTED_MODULE_1__array__["b" /* slice */].call(range); function scale(d) { var key = d + "", i = index.get(key); if (!i) { if (unknown !== implicit) return unknown; index.set(key, i = domain.push(d)); } return range[(i - 1) % range.length]; } scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = [], index = Object(__WEBPACK_IMPORTED_MODULE_0_d3_collection__["map"])(); var i = -1, n = _.length, d, key; while (++i < n) if (!index.has(key = (d = _[i]) + "")) index.set(key, domain.push(d)); return scale; }; scale.range = function(_) { return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__["b" /* slice */].call(_), scale) : range.slice(); }; scale.unknown = function(_) { return arguments.length ? (unknown = _, scale) : unknown; }; scale.copy = function() { return ordinal() .domain(domain) .range(range) .unknown(unknown); }; return scale; } /***/ }), /* 89 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return +x; }); /***/ }), /* 90 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(domain, interval) { domain = domain.slice(); var i0 = 0, i1 = domain.length - 1, x0 = domain[i0], x1 = domain[i1], t; if (x1 < x0) { t = i0, i0 = i1, i1 = t; t = x0, x0 = x1, x1 = t; } domain[i0] = interval.floor(x0); domain[i1] = interval.ceil(x1); return domain; }); /***/ }), /* 91 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = calendar; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_time__ = __webpack_require__(42); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_d3_time_format__ = __webpack_require__(51); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__array__ = __webpack_require__(8); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__continuous__ = __webpack_require__(24); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__nice__ = __webpack_require__(90); var durationSecond = 1000, durationMinute = durationSecond * 60, durationHour = durationMinute * 60, durationDay = durationHour * 24, durationWeek = durationDay * 7, durationMonth = durationDay * 30, durationYear = durationDay * 365; function date(t) { return new Date(t); } function number(t) { return t instanceof Date ? +t : +new Date(+t); } function calendar(year, month, week, day, hour, minute, second, millisecond, format) { var scale = Object(__WEBPACK_IMPORTED_MODULE_5__continuous__["b" /* default */])(__WEBPACK_IMPORTED_MODULE_5__continuous__["c" /* deinterpolateLinear */], __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__["interpolateNumber"]), invert = scale.invert, domain = scale.domain; var formatMillisecond = format(".%L"), formatSecond = format(":%S"), formatMinute = format("%I:%M"), formatHour = format("%I %p"), formatDay = format("%a %d"), formatWeek = format("%b %d"), formatMonth = format("%B"), formatYear = format("%Y"); var tickIntervals = [ [second, 1, durationSecond], [second, 5, 5 * durationSecond], [second, 15, 15 * durationSecond], [second, 30, 30 * durationSecond], [minute, 1, durationMinute], [minute, 5, 5 * durationMinute], [minute, 15, 15 * durationMinute], [minute, 30, 30 * durationMinute], [ hour, 1, durationHour ], [ hour, 3, 3 * durationHour ], [ hour, 6, 6 * durationHour ], [ hour, 12, 12 * durationHour ], [ day, 1, durationDay ], [ day, 2, 2 * durationDay ], [ week, 1, durationWeek ], [ month, 1, durationMonth ], [ month, 3, 3 * durationMonth ], [ year, 1, durationYear ] ]; function tickFormat(date) { return (second(date) < date ? formatMillisecond : minute(date) < date ? formatSecond : hour(date) < date ? formatMinute : day(date) < date ? formatHour : month(date) < date ? (week(date) < date ? formatDay : formatWeek) : year(date) < date ? formatMonth : formatYear)(date); } function tickInterval(interval, start, stop, step) { if (interval == null) interval = 10; // If a desired tick count is specified, pick a reasonable tick interval // based on the extent of the domain and a rough estimate of tick size. // Otherwise, assume interval is already a time interval and use it. if (typeof interval === "number") { var target = Math.abs(stop - start) / interval, i = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["bisector"])(function(i) { return i[2]; }).right(tickIntervals, target); if (i === tickIntervals.length) { step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["tickStep"])(start / durationYear, stop / durationYear, interval); interval = year; } else if (i) { i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i]; step = i[1]; interval = i[0]; } else { step = Math.max(Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["tickStep"])(start, stop, interval), 1); interval = millisecond; } } return step == null ? interval : interval.every(step); } scale.invert = function(y) { return new Date(invert(y)); }; scale.domain = function(_) { return arguments.length ? domain(__WEBPACK_IMPORTED_MODULE_4__array__["a" /* map */].call(_, number)) : domain().map(date); }; scale.ticks = function(interval, step) { var d = domain(), t0 = d[0], t1 = d[d.length - 1], r = t1 < t0, t; if (r) t = t0, t0 = t1, t1 = t; t = tickInterval(interval, t0, t1, step); t = t ? t.range(t0, t1 + 1) : []; // inclusive stop return r ? t.reverse() : t; }; scale.tickFormat = function(count, specifier) { return specifier == null ? tickFormat : format(specifier); }; scale.nice = function(interval, step) { var d = domain(); return (interval = tickInterval(interval, d[0], d[d.length - 1], step)) ? domain(Object(__WEBPACK_IMPORTED_MODULE_6__nice__["a" /* default */])(d, interval)) : scale; }; scale.copy = function() { return Object(__WEBPACK_IMPORTED_MODULE_5__continuous__["a" /* copy */])(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format)); }; return scale; } /* harmony default export */ __webpack_exports__["b"] = (function() { return calendar(__WEBPACK_IMPORTED_MODULE_2_d3_time__["timeYear"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["timeMonth"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["timeWeek"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["timeDay"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["timeHour"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["timeMinute"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["timeSecond"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["timeMillisecond"], __WEBPACK_IMPORTED_MODULE_3_d3_time_format__["timeFormat"]).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]); }); /***/ }), /* 92 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_path__ = __webpack_require__(15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constant__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__curve_linear__ = __webpack_require__(25); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__line__ = __webpack_require__(47); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__point__ = __webpack_require__(48); /* harmony default export */ __webpack_exports__["a"] = (function() { var x0 = __WEBPACK_IMPORTED_MODULE_4__point__["a" /* x */], x1 = null, y0 = Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(0), y1 = __WEBPACK_IMPORTED_MODULE_4__point__["b" /* y */], defined = Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(true), context = null, curve = __WEBPACK_IMPORTED_MODULE_2__curve_linear__["a" /* default */], output = null; function area(data) { var i, j, k, n = data.length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n); if (context == null) output = curve(buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__["a" /* path */])()); for (i = 0; i <= n; ++i) { if (!(i < n && defined(d = data[i], i, data)) === defined0) { if (defined0 = !defined0) { j = i; output.areaStart(); output.lineStart(); } else { output.lineEnd(); output.lineStart(); for (k = i - 1; k >= j; --k) { output.point(x0z[k], y0z[k]); } output.lineEnd(); output.areaEnd(); } } if (defined0) { x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data); output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]); } } if (buffer) return output = null, buffer + "" || null; } function arealine() { return Object(__WEBPACK_IMPORTED_MODULE_3__line__["a" /* default */])().defined(defined).curve(curve).context(context); } area.x = function(_) { return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), x1 = null, area) : x0; }; area.x0 = function(_) { return arguments.length ? (x0 = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), area) : x0; }; area.x1 = function(_) { return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), area) : x1; }; area.y = function(_) { return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), y1 = null, area) : y0; }; area.y0 = function(_) { return arguments.length ? (y0 = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), area) : y0; }; area.y1 = function(_) { return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), area) : y1; }; area.lineX0 = area.lineY0 = function() { return arealine().x(x0).y(y0); }; area.lineY1 = function() { return arealine().x(x0).y(y1); }; area.lineX1 = function() { return arealine().x(x1).y(y0); }; area.defined = function(_) { return arguments.length ? (defined = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(!!_), area) : defined; }; area.curve = function(_) { return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve; }; area.context = function(_) { return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context; }; return area; }); /***/ }), /* 93 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return curveRadialLinear; }); /* harmony export (immutable) */ __webpack_exports__["b"] = curveRadial; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__linear__ = __webpack_require__(25); var curveRadialLinear = curveRadial(__WEBPACK_IMPORTED_MODULE_0__linear__["a" /* default */]); function Radial(curve) { this._curve = curve; } Radial.prototype = { areaStart: function() { this._curve.areaStart(); }, areaEnd: function() { this._curve.areaEnd(); }, lineStart: function() { this._curve.lineStart(); }, lineEnd: function() { this._curve.lineEnd(); }, point: function(a, r) { this._curve.point(r * Math.sin(a), r * -Math.cos(a)); } }; function curveRadial(curve) { function radial(context) { return new Radial(curve(context)); } radial._curve = curve; return radial; } /***/ }), /* 94 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = lineRadial; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__curve_radial__ = __webpack_require__(93); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__line__ = __webpack_require__(47); function lineRadial(l) { var c = l.curve; l.angle = l.x, delete l.x; l.radius = l.y, delete l.y; l.curve = function(_) { return arguments.length ? c(Object(__WEBPACK_IMPORTED_MODULE_0__curve_radial__["b" /* default */])(_)) : c()._curve; }; return l; } /* harmony default export */ __webpack_exports__["a"] = (function() { return lineRadial(Object(__WEBPACK_IMPORTED_MODULE_1__line__["a" /* default */])().curve(__WEBPACK_IMPORTED_MODULE_0__curve_radial__["a" /* curveRadialLinear */])); }); /***/ }), /* 95 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x, y) { return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)]; }); /***/ }), /* 96 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return slice; }); var slice = Array.prototype.slice; /***/ }), /* 97 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(16); /* harmony default export */ __webpack_exports__["a"] = ({ draw: function(context, size) { var r = Math.sqrt(size / __WEBPACK_IMPORTED_MODULE_0__math__["j" /* pi */]); context.moveTo(r, 0); context.arc(0, 0, r, 0, __WEBPACK_IMPORTED_MODULE_0__math__["m" /* tau */]); } }); /***/ }), /* 98 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = ({ draw: function(context, size) { var r = Math.sqrt(size / 5) / 2; context.moveTo(-3 * r, -r); context.lineTo(-r, -r); context.lineTo(-r, -3 * r); context.lineTo(r, -3 * r); context.lineTo(r, -r); context.lineTo(3 * r, -r); context.lineTo(3 * r, r); context.lineTo(r, r); context.lineTo(r, 3 * r); context.lineTo(-r, 3 * r); context.lineTo(-r, r); context.lineTo(-3 * r, r); context.closePath(); } }); /***/ }), /* 99 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var tan30 = Math.sqrt(1 / 3), tan30_2 = tan30 * 2; /* harmony default export */ __webpack_exports__["a"] = ({ draw: function(context, size) { var y = Math.sqrt(size / tan30_2), x = y * tan30; context.moveTo(0, -y); context.lineTo(x, 0); context.lineTo(0, y); context.lineTo(-x, 0); context.closePath(); } }); /***/ }), /* 100 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__math__ = __webpack_require__(16); var ka = 0.89081309152928522810, kr = Math.sin(__WEBPACK_IMPORTED_MODULE_0__math__["j" /* pi */] / 10) / Math.sin(7 * __WEBPACK_IMPORTED_MODULE_0__math__["j" /* pi */] / 10), kx = Math.sin(__WEBPACK_IMPORTED_MODULE_0__math__["m" /* tau */] / 10) * kr, ky = -Math.cos(__WEBPACK_IMPORTED_MODULE_0__math__["m" /* tau */] / 10) * kr; /* harmony default export */ __webpack_exports__["a"] = ({ draw: function(context, size) { var r = Math.sqrt(size * ka), x = kx * r, y = ky * r; context.moveTo(0, -r); context.lineTo(x, y); for (var i = 1; i < 5; ++i) { var a = __WEBPACK_IMPORTED_MODULE_0__math__["m" /* tau */] * i / 5, c = Math.cos(a), s = Math.sin(a); context.lineTo(s * r, -c * r); context.lineTo(c * x - s * y, s * x + c * y); } context.closePath(); } }); /***/ }), /* 101 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = ({ draw: function(context, size) { var w = Math.sqrt(size), x = -w / 2; context.rect(x, x, w, w); } }); /***/ }), /* 102 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var sqrt3 = Math.sqrt(3); /* harmony default export */ __webpack_exports__["a"] = ({ draw: function(context, size) { var y = -Math.sqrt(size / (sqrt3 * 3)); context.moveTo(0, y * 2); context.lineTo(-sqrt3 * y, -y); context.lineTo(sqrt3 * y, -y); context.closePath(); } }); /***/ }), /* 103 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var c = -0.5, s = Math.sqrt(3) / 2, k = 1 / Math.sqrt(12), a = (k / 2 + 1) * 3; /* harmony default export */ __webpack_exports__["a"] = ({ draw: function(context, size) { var r = Math.sqrt(size / a), x0 = r / 2, y0 = r * k, x1 = x0, y1 = r * k + r, x2 = -x1, y2 = y1; context.moveTo(x0, y0); context.lineTo(x1, y1); context.lineTo(x2, y2); context.lineTo(c * x0 - s * y0, s * x0 + c * y0); context.lineTo(c * x1 - s * y1, s * x1 + c * y1); context.lineTo(c * x2 - s * y2, s * x2 + c * y2); context.lineTo(c * x0 + s * y0, c * y0 - s * x0); context.lineTo(c * x1 + s * y1, c * y1 - s * x1); context.lineTo(c * x2 + s * y2, c * y2 - s * x2); context.closePath(); } }); /***/ }), /* 104 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = CardinalClosed; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(26); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__cardinal__ = __webpack_require__(28); function CardinalClosed(context, tension) { this._context = context; this._k = (1 - tension) / 6; } CardinalClosed.prototype = { areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__["a" /* default */], areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__["a" /* default */], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x3, this._y3); this._context.closePath(); break; } case 2: { this._context.lineTo(this._x3, this._y3); this._context.closePath(); break; } case 3: { this.point(this._x3, this._y3); this.point(this._x4, this._y4); this.point(this._x5, this._y5); break; } } }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._x3 = x, this._y3 = y; break; case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break; case 2: this._point = 3; this._x5 = x, this._y5 = y; break; default: Object(__WEBPACK_IMPORTED_MODULE_1__cardinal__["c" /* point */])(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["b"] = ((function custom(tension) { function cardinal(context) { return new CardinalClosed(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /* 105 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = CardinalOpen; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__cardinal__ = __webpack_require__(28); function CardinalOpen(context, tension) { this._context = context; this._k = (1 - tension) / 6; } CardinalOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break; case 3: this._point = 4; // proceed default: Object(__WEBPACK_IMPORTED_MODULE_0__cardinal__["c" /* point */])(this, x, y); break; } this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["b"] = ((function custom(tension) { function cardinal(context) { return new CardinalOpen(context, tension); } cardinal.tension = function(tension) { return custom(+tension); }; return cardinal; })(0)); /***/ }), /* 106 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { // Color Gradients var britechartGradients = { greenBlue: ['#39C7EA', '#4CDCBA'], orangePink: ['#FBC670', '#F766B8'], bluePurple: ['#3DC3C9', '#824a9e'] }; // Color Schemas // Standard Color Schema for Britecharts var britecharts = ['#6aedc7', //green '#39c2c9', //blue '#ffce00', //yellow '#ffa71a', //orange '#f866b9', //pink '#998ce3' //purple ]; // Grey Schema for Britecharts var grey = ['#F8F8FA', '#EFF2F5', '#D2D6DF', '#C3C6CF', '#ADB0B6', '#666A73', '#45494E', '#363A43', '#282C35']; // Orange Palette var orange = ['#fcc870', '#ffa71a', '#fb8825', '#f6682f', '#db5a2c', '#bf4c28', '#a43b1c', '#892a10', '#f9e9c5']; // Blue Palette var blueGreen = ['#ccf7f6', '#70e4e0', '#00d8d2', '#00acaf', '#007f8c', '#005e66', '#003c3f', '#002d2f', '#0d2223']; // LightBlue Palette var teal = ['#ccfffe', '#94f7f4', '#00fff8', '#1de1e1', '#39c2c9', '#2e9a9d', '#227270', '#1a5957', '#133f3e']; // Green Palette var green = ['#edfff7', '#d7ffef', '#c0ffe7', '#95f5d7', '#6aedc7', '#59c3a3', '#479980', '#34816a', '#206953']; // Yellow Palette var yellow = ['#f9f2b3', '#fbe986', '#fce05a', '#fed72d', '#ffce00', '#fcc11c', '#f9b438', '#eda629', '#e09819']; // Pink Palette var pink = ['#fdd1ea', '#fb9cd2', '#f866b9', '#fc40b6', '#ff1ab3', '#e3239d', '#c62c86', '#a62073', '#85135f']; // Purple Palette var purple = ['#ddd6fc', '#bbb1f0', '#998ce3', '#8e6bc1', '#824a9e', '#77337f', '#6b1c60', '#591650', '#470f3f']; // Red Palette var red = ['#ffd8d4', '#ffb5b0', '#ff938c', '#ff766c', '#ff584c', '#f04b42', '#e03d38', '#be2e29', '#9c1e19']; var aloeGreen = ['#7bdcc0']; return { colorSchemas: { britecharts: britecharts, grey: grey, orange: orange, blueGreen: blueGreen, teal: teal, green: green, yellow: yellow, pink: pink, purple: purple, red: red }, colorSchemasHuman: { 'britecharts': 'Britecharts Default', 'grey': 'Britecharts Grey', 'orange': 'Orange', 'blueGreen': 'Blue', 'teal': 'Light Blue', 'green': 'Green', 'yellow': 'Yellow', 'pink': 'Pink', 'purple': 'Purple', 'red': 'Red' }, singleColors: { aloeGreen: aloeGreen }, colorGradients: britechartGradients, colorGradientsHuman: { greenBlue: 'Green To Blue', orangePink: 'Orange to Pink', bluePurple: 'Blue to Purple' } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /* 107 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var d3Shape = __webpack_require__(108); var axisTimeCombinations = { MINUTE_HOUR: 'minute-hour', HOUR_DAY: 'hour-daymonth', DAY_MONTH: 'day-month', MONTH_YEAR: 'month-year', CUSTOM: 'custom' }; var timeBenchmarks = { ONE_AND_A_HALF_YEARS: 47304000000, ONE_YEAR: 31536000365, ONE_DAY: 86400001 }; var curveMap = { linear: d3Shape.curveLinear, basis: d3Shape.curveBasis, cardinal: d3Shape.curveCardinal, catmullRom: d3Shape.curveCatmullRom, monotoneX: d3Shape.curveMonotoneX, monotoneY: d3Shape.curveMonotoneY, natural: d3Shape.curveNatural, step: d3Shape.curveStep, stepAfter: d3Shape.curveStepAfter, stepBefore: d3Shape.curveStepBefore }; var emptyDonutData = [{ 'quantity': 1, 'percentage': 100 }]; return { axisTimeCombinations: axisTimeCombinations, curveMap: curveMap, emptyDonutData: emptyDonutData, timeBenchmarks: timeBenchmarks, lineGradientId: 'lineGradientId' }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /* 108 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_arc__ = __webpack_require__(248); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "arc", function() { return __WEBPACK_IMPORTED_MODULE_0__src_arc__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_area__ = __webpack_require__(92); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "area", function() { return __WEBPACK_IMPORTED_MODULE_1__src_area__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_line__ = __webpack_require__(47); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "line", function() { return __WEBPACK_IMPORTED_MODULE_2__src_line__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_pie__ = __webpack_require__(250); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "pie", function() { return __WEBPACK_IMPORTED_MODULE_3__src_pie__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_areaRadial__ = __webpack_require__(253); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "areaRadial", function() { return __WEBPACK_IMPORTED_MODULE_4__src_areaRadial__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "radialArea", function() { return __WEBPACK_IMPORTED_MODULE_4__src_areaRadial__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_lineRadial__ = __webpack_require__(94); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "lineRadial", function() { return __WEBPACK_IMPORTED_MODULE_5__src_lineRadial__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "radialLine", function() { return __WEBPACK_IMPORTED_MODULE_5__src_lineRadial__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__src_pointRadial__ = __webpack_require__(95); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "pointRadial", function() { return __WEBPACK_IMPORTED_MODULE_6__src_pointRadial__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__src_link_index__ = __webpack_require__(254); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "linkHorizontal", function() { return __WEBPACK_IMPORTED_MODULE_7__src_link_index__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "linkVertical", function() { return __WEBPACK_IMPORTED_MODULE_7__src_link_index__["c"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "linkRadial", function() { return __WEBPACK_IMPORTED_MODULE_7__src_link_index__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__src_symbol__ = __webpack_require__(255); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbol", function() { return __WEBPACK_IMPORTED_MODULE_8__src_symbol__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbols", function() { return __WEBPACK_IMPORTED_MODULE_8__src_symbol__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__src_symbol_circle__ = __webpack_require__(97); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbolCircle", function() { return __WEBPACK_IMPORTED_MODULE_9__src_symbol_circle__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__src_symbol_cross__ = __webpack_require__(98); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbolCross", function() { return __WEBPACK_IMPORTED_MODULE_10__src_symbol_cross__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__src_symbol_diamond__ = __webpack_require__(99); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbolDiamond", function() { return __WEBPACK_IMPORTED_MODULE_11__src_symbol_diamond__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__src_symbol_square__ = __webpack_require__(101); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbolSquare", function() { return __WEBPACK_IMPORTED_MODULE_12__src_symbol_square__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__src_symbol_star__ = __webpack_require__(100); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbolStar", function() { return __WEBPACK_IMPORTED_MODULE_13__src_symbol_star__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__src_symbol_triangle__ = __webpack_require__(102); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbolTriangle", function() { return __WEBPACK_IMPORTED_MODULE_14__src_symbol_triangle__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__src_symbol_wye__ = __webpack_require__(103); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "symbolWye", function() { return __WEBPACK_IMPORTED_MODULE_15__src_symbol_wye__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__src_curve_basisClosed__ = __webpack_require__(256); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveBasisClosed", function() { return __WEBPACK_IMPORTED_MODULE_16__src_curve_basisClosed__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__src_curve_basisOpen__ = __webpack_require__(257); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveBasisOpen", function() { return __WEBPACK_IMPORTED_MODULE_17__src_curve_basisOpen__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__src_curve_basis__ = __webpack_require__(27); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveBasis", function() { return __WEBPACK_IMPORTED_MODULE_18__src_curve_basis__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__src_curve_bundle__ = __webpack_require__(258); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveBundle", function() { return __WEBPACK_IMPORTED_MODULE_19__src_curve_bundle__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__src_curve_cardinalClosed__ = __webpack_require__(104); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveCardinalClosed", function() { return __WEBPACK_IMPORTED_MODULE_20__src_curve_cardinalClosed__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__src_curve_cardinalOpen__ = __webpack_require__(105); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveCardinalOpen", function() { return __WEBPACK_IMPORTED_MODULE_21__src_curve_cardinalOpen__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__src_curve_cardinal__ = __webpack_require__(28); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveCardinal", function() { return __WEBPACK_IMPORTED_MODULE_22__src_curve_cardinal__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__src_curve_catmullRomClosed__ = __webpack_require__(259); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomClosed", function() { return __WEBPACK_IMPORTED_MODULE_23__src_curve_catmullRomClosed__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__src_curve_catmullRomOpen__ = __webpack_require__(260); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRomOpen", function() { return __WEBPACK_IMPORTED_MODULE_24__src_curve_catmullRomOpen__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__src_curve_catmullRom__ = __webpack_require__(49); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveCatmullRom", function() { return __WEBPACK_IMPORTED_MODULE_25__src_curve_catmullRom__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__src_curve_linearClosed__ = __webpack_require__(261); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveLinearClosed", function() { return __WEBPACK_IMPORTED_MODULE_26__src_curve_linearClosed__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__src_curve_linear__ = __webpack_require__(25); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveLinear", function() { return __WEBPACK_IMPORTED_MODULE_27__src_curve_linear__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__ = __webpack_require__(262); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneX", function() { return __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveMonotoneY", function() { return __WEBPACK_IMPORTED_MODULE_28__src_curve_monotone__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__src_curve_natural__ = __webpack_require__(263); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveNatural", function() { return __WEBPACK_IMPORTED_MODULE_29__src_curve_natural__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__src_curve_step__ = __webpack_require__(264); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveStep", function() { return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveStepAfter", function() { return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__["b"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "curveStepBefore", function() { return __WEBPACK_IMPORTED_MODULE_30__src_curve_step__["c"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__src_stack__ = __webpack_require__(265); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stack", function() { return __WEBPACK_IMPORTED_MODULE_31__src_stack__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__src_offset_expand__ = __webpack_require__(266); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOffsetExpand", function() { return __WEBPACK_IMPORTED_MODULE_32__src_offset_expand__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__src_offset_diverging__ = __webpack_require__(267); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOffsetDiverging", function() { return __WEBPACK_IMPORTED_MODULE_33__src_offset_diverging__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__src_offset_none__ = __webpack_require__(17); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOffsetNone", function() { return __WEBPACK_IMPORTED_MODULE_34__src_offset_none__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__src_offset_silhouette__ = __webpack_require__(268); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOffsetSilhouette", function() { return __WEBPACK_IMPORTED_MODULE_35__src_offset_silhouette__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__src_offset_wiggle__ = __webpack_require__(269); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOffsetWiggle", function() { return __WEBPACK_IMPORTED_MODULE_36__src_offset_wiggle__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__src_order_ascending__ = __webpack_require__(50); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOrderAscending", function() { return __WEBPACK_IMPORTED_MODULE_37__src_order_ascending__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__src_order_descending__ = __webpack_require__(270); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOrderDescending", function() { return __WEBPACK_IMPORTED_MODULE_38__src_order_descending__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__src_order_insideOut__ = __webpack_require__(271); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOrderInsideOut", function() { return __WEBPACK_IMPORTED_MODULE_39__src_order_insideOut__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__src_order_none__ = __webpack_require__(18); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOrderNone", function() { return __WEBPACK_IMPORTED_MODULE_40__src_order_none__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__src_order_reverse__ = __webpack_require__(272); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "stackOrderReverse", function() { return __WEBPACK_IMPORTED_MODULE_41__src_order_reverse__["a"]; }); // Note: radialArea is deprecated! // Note: radialLine is deprecated! /***/ }), /* 109 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_nest__ = __webpack_require__(234); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "nest", function() { return __WEBPACK_IMPORTED_MODULE_0__src_nest__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_set__ = __webpack_require__(235); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "set", function() { return __WEBPACK_IMPORTED_MODULE_1__src_set__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_map__ = __webpack_require__(45); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return __WEBPACK_IMPORTED_MODULE_2__src_map__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_keys__ = __webpack_require__(236); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "keys", function() { return __WEBPACK_IMPORTED_MODULE_3__src_keys__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_values__ = __webpack_require__(237); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "values", function() { return __WEBPACK_IMPORTED_MODULE_4__src_values__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_entries__ = __webpack_require__(238); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "entries", function() { return __WEBPACK_IMPORTED_MODULE_5__src_entries__["a"]; }); /***/ }), /* 110 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_selection_index__ = __webpack_require__(179); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_transition_index__ = __webpack_require__(6); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return __WEBPACK_IMPORTED_MODULE_1__src_transition_index__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_active__ = __webpack_require__(200); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "active", function() { return __WEBPACK_IMPORTED_MODULE_2__src_active__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_interrupt__ = __webpack_require__(69); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "interrupt", function() { return __WEBPACK_IMPORTED_MODULE_3__src_interrupt__["a"]; }); /***/ }), /* 111 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = linear; function linear(t) { return +t; } /***/ }), /* 112 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = quadIn; /* harmony export (immutable) */ __webpack_exports__["c"] = quadOut; /* harmony export (immutable) */ __webpack_exports__["b"] = quadInOut; function quadIn(t) { return t * t; } function quadOut(t) { return t * (2 - t); } function quadInOut(t) { return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; } /***/ }), /* 113 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = cubicIn; /* harmony export (immutable) */ __webpack_exports__["c"] = cubicOut; /* harmony export (immutable) */ __webpack_exports__["b"] = cubicInOut; function cubicIn(t) { return t * t * t; } function cubicOut(t) { return --t * t * t + 1; } function cubicInOut(t) { return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2; } /***/ }), /* 114 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return polyIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return polyOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return polyInOut; }); var exponent = 3; var polyIn = (function custom(e) { e = +e; function polyIn(t) { return Math.pow(t, e); } polyIn.exponent = custom; return polyIn; })(exponent); var polyOut = (function custom(e) { e = +e; function polyOut(t) { return 1 - Math.pow(1 - t, e); } polyOut.exponent = custom; return polyOut; })(exponent); var polyInOut = (function custom(e) { e = +e; function polyInOut(t) { return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2; } polyInOut.exponent = custom; return polyInOut; })(exponent); /***/ }), /* 115 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = sinIn; /* harmony export (immutable) */ __webpack_exports__["c"] = sinOut; /* harmony export (immutable) */ __webpack_exports__["b"] = sinInOut; var pi = Math.PI, halfPi = pi / 2; function sinIn(t) { return 1 - Math.cos(t * halfPi); } function sinOut(t) { return Math.sin(t * halfPi); } function sinInOut(t) { return (1 - Math.cos(pi * t)) / 2; } /***/ }), /* 116 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = expIn; /* harmony export (immutable) */ __webpack_exports__["c"] = expOut; /* harmony export (immutable) */ __webpack_exports__["b"] = expInOut; function expIn(t) { return Math.pow(2, 10 * t - 10); } function expOut(t) { return 1 - Math.pow(2, -10 * t); } function expInOut(t) { return ((t *= 2) <= 1 ? Math.pow(2, 10 * t - 10) : 2 - Math.pow(2, 10 - 10 * t)) / 2; } /***/ }), /* 117 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = circleIn; /* harmony export (immutable) */ __webpack_exports__["c"] = circleOut; /* harmony export (immutable) */ __webpack_exports__["b"] = circleInOut; function circleIn(t) { return 1 - Math.sqrt(1 - t * t); } function circleOut(t) { return Math.sqrt(1 - --t * t); } function circleInOut(t) { return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2; } /***/ }), /* 118 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = bounceIn; /* harmony export (immutable) */ __webpack_exports__["c"] = bounceOut; /* harmony export (immutable) */ __webpack_exports__["b"] = bounceInOut; var b1 = 4 / 11, b2 = 6 / 11, b3 = 8 / 11, b4 = 3 / 4, b5 = 9 / 11, b6 = 10 / 11, b7 = 15 / 16, b8 = 21 / 22, b9 = 63 / 64, b0 = 1 / b1 / b1; function bounceIn(t) { return 1 - bounceOut(1 - t); } function bounceOut(t) { return (t = +t) < b1 ? b0 * t * t : t < b3 ? b0 * (t -= b2) * t + b4 : t < b6 ? b0 * (t -= b5) * t + b7 : b0 * (t -= b8) * t + b9; } function bounceInOut(t) { return ((t *= 2) <= 1 ? 1 - bounceOut(1 - t) : bounceOut(t - 1) + 1) / 2; } /***/ }), /* 119 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return backIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return backOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return backInOut; }); var overshoot = 1.70158; var backIn = (function custom(s) { s = +s; function backIn(t) { return t * t * ((s + 1) * t - s); } backIn.overshoot = custom; return backIn; })(overshoot); var backOut = (function custom(s) { s = +s; function backOut(t) { return --t * t * ((s + 1) * t + s) + 1; } backOut.overshoot = custom; return backOut; })(overshoot); var backInOut = (function custom(s) { s = +s; function backInOut(t) { return ((t *= 2) < 1 ? t * t * ((s + 1) * t - s) : (t -= 2) * t * ((s + 1) * t + s) + 2) / 2; } backInOut.overshoot = custom; return backInOut; })(overshoot); /***/ }), /* 120 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return elasticIn; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return elasticOut; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return elasticInOut; }); var tau = 2 * Math.PI, amplitude = 1, period = 0.3; var elasticIn = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticIn(t) { return a * Math.pow(2, 10 * --t) * Math.sin((s - t) / p); } elasticIn.amplitude = function(a) { return custom(a, p * tau); }; elasticIn.period = function(p) { return custom(a, p); }; return elasticIn; })(amplitude, period); var elasticOut = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticOut(t) { return 1 - a * Math.pow(2, -10 * (t = +t)) * Math.sin((t + s) / p); } elasticOut.amplitude = function(a) { return custom(a, p * tau); }; elasticOut.period = function(p) { return custom(a, p); }; return elasticOut; })(amplitude, period); var elasticInOut = (function custom(a, p) { var s = Math.asin(1 / (a = Math.max(1, a))) * (p /= tau); function elasticInOut(t) { return ((t = t * 2 - 1) < 0 ? a * Math.pow(2, 10 * t) * Math.sin((s - t) / p) : 2 - a * Math.pow(2, -10 * t) * Math.sin((s + t) / p)) / 2; } elasticInOut.amplitude = function(a) { return custom(a, p * tau); }; elasticInOut.period = function(p) { return custom(a, p); }; return elasticInOut; })(amplitude, period); /***/ }), /* 121 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["b"] = gray; /* harmony export (immutable) */ __webpack_exports__["a"] = lab; /* unused harmony export Lab */ /* harmony export (immutable) */ __webpack_exports__["d"] = lch; /* harmony export (immutable) */ __webpack_exports__["c"] = hcl; /* unused harmony export Hcl */ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__define__ = __webpack_require__(31); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(30); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__math__ = __webpack_require__(52); // https://beta.observablehq.com/@mbostock/lab-and-rgb var K = 18, Xn = 0.96422, Yn = 1, Zn = 0.82521, t0 = 4 / 29, t1 = 6 / 29, t2 = 3 * t1 * t1, t3 = t1 * t1 * t1; function labConvert(o) { if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity); if (o instanceof Hcl) { if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity); var h = o.h * __WEBPACK_IMPORTED_MODULE_2__math__["a" /* deg2rad */]; return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity); } if (!(o instanceof __WEBPACK_IMPORTED_MODULE_1__color__["b" /* Rgb */])) o = Object(__WEBPACK_IMPORTED_MODULE_1__color__["h" /* rgbConvert */])(o); var r = rgb2lrgb(o.r), g = rgb2lrgb(o.g), b = rgb2lrgb(o.b), y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z; if (r === g && g === b) x = z = y; else { x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn); z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn); } return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity); } function gray(l, opacity) { return new Lab(l, 0, 0, opacity == null ? 1 : opacity); } function lab(l, a, b, opacity) { return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity); } function Lab(l, a, b, opacity) { this.l = +l; this.a = +a; this.b = +b; this.opacity = +opacity; } Object(__WEBPACK_IMPORTED_MODULE_0__define__["a" /* default */])(Lab, lab, Object(__WEBPACK_IMPORTED_MODULE_0__define__["b" /* extend */])(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* Color */], { brighter: function(k) { return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity); }, darker: function(k) { return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity); }, rgb: function() { var y = (this.l + 16) / 116, x = isNaN(this.a) ? y : y + this.a / 500, z = isNaN(this.b) ? y : y - this.b / 200; x = Xn * lab2xyz(x); y = Yn * lab2xyz(y); z = Zn * lab2xyz(z); return new __WEBPACK_IMPORTED_MODULE_1__color__["b" /* Rgb */]( lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z), lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z), lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z), this.opacity ); } })); function xyz2lab(t) { return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0; } function lab2xyz(t) { return t > t1 ? t * t * t : t2 * (t - t0); } function lrgb2rgb(x) { return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055); } function rgb2lrgb(x) { return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4); } function hclConvert(o) { if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity); if (!(o instanceof Lab)) o = labConvert(o); if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0, o.l, o.opacity); var h = Math.atan2(o.b, o.a) * __WEBPACK_IMPORTED_MODULE_2__math__["b" /* rad2deg */]; return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity); } function lch(l, c, h, opacity) { return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity); } function hcl(h, c, l, opacity) { return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity); } function Hcl(h, c, l, opacity) { this.h = +h; this.c = +c; this.l = +l; this.opacity = +opacity; } Object(__WEBPACK_IMPORTED_MODULE_0__define__["a" /* default */])(Hcl, hcl, Object(__WEBPACK_IMPORTED_MODULE_0__define__["b" /* extend */])(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* Color */], { brighter: function(k) { return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity); }, darker: function(k) { return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity); }, rgb: function() { return labConvert(this).rgb(); } })); /***/ }), /* 122 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = cubehelix; /* unused harmony export Cubehelix */ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__define__ = __webpack_require__(31); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(30); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__math__ = __webpack_require__(52); var A = -0.14861, B = +1.78277, C = -0.29227, D = -0.90649, E = +1.97294, ED = E * D, EB = E * B, BC_DA = B * C - D * A; function cubehelixConvert(o) { if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity); if (!(o instanceof __WEBPACK_IMPORTED_MODULE_1__color__["b" /* Rgb */])) o = Object(__WEBPACK_IMPORTED_MODULE_1__color__["h" /* rgbConvert */])(o); var r = o.r / 255, g = o.g / 255, b = o.b / 255, l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB), bl = b - l, k = (E * (g - l) - C * bl) / D, s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1 h = s ? Math.atan2(k, bl) * __WEBPACK_IMPORTED_MODULE_2__math__["b" /* rad2deg */] - 120 : NaN; return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity); } function cubehelix(h, s, l, opacity) { return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity); } function Cubehelix(h, s, l, opacity) { this.h = +h; this.s = +s; this.l = +l; this.opacity = +opacity; } Object(__WEBPACK_IMPORTED_MODULE_0__define__["a" /* default */])(Cubehelix, cubehelix, Object(__WEBPACK_IMPORTED_MODULE_0__define__["b" /* extend */])(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* Color */], { brighter: function(k) { k = k == null ? __WEBPACK_IMPORTED_MODULE_1__color__["c" /* brighter */] : Math.pow(__WEBPACK_IMPORTED_MODULE_1__color__["c" /* brighter */], k); return new Cubehelix(this.h, this.s, this.l * k, this.opacity); }, darker: function(k) { k = k == null ? __WEBPACK_IMPORTED_MODULE_1__color__["d" /* darker */] : Math.pow(__WEBPACK_IMPORTED_MODULE_1__color__["d" /* darker */], k); return new Cubehelix(this.h, this.s, this.l * k, this.opacity); }, rgb: function() { var h = isNaN(this.h) ? 0 : (this.h + 120) * __WEBPACK_IMPORTED_MODULE_2__math__["a" /* deg2rad */], l = +this.l, a = isNaN(this.s) ? 0 : this.s * l * (1 - l), cosh = Math.cos(h), sinh = Math.sin(h); return new __WEBPACK_IMPORTED_MODULE_1__color__["b" /* Rgb */]( 255 * (l + a * (A * cosh + B * sinh)), 255 * (l + a * (C * cosh + D * sinh)), 255 * (l + a * (E * cosh)), this.opacity ); } })); /***/ }), /* 123 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var noop = {value: function() {}}; function dispatch() { for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) { if (!(t = arguments[i] + "") || (t in _)) throw new Error("illegal type: " + t); _[t] = []; } return new Dispatch(_); } function Dispatch(_) { this._ = _; } function parseTypenames(typenames, types) { return typenames.trim().split(/^|\s+/).map(function(t) { var name = "", i = t.indexOf("."); if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i); if (t && !types.hasOwnProperty(t)) throw new Error("unknown type: " + t); return {type: t, name: name}; }); } Dispatch.prototype = dispatch.prototype = { constructor: Dispatch, on: function(typename, callback) { var _ = this._, T = parseTypenames(typename + "", _), t, i = -1, n = T.length; // If no callback was specified, return the callback of the given type and name. if (arguments.length < 2) { while (++i < n) if ((t = (typename = T[i]).type) && (t = get(_[t], typename.name))) return t; return; } // If a type was specified, set the callback for the given type and name. // Otherwise, if a null callback was specified, remove callbacks of the given name. if (callback != null && typeof callback !== "function") throw new Error("invalid callback: " + callback); while (++i < n) { if (t = (typename = T[i]).type) _[t] = set(_[t], typename.name, callback); else if (callback == null) for (t in _) _[t] = set(_[t], typename.name, null); } return this; }, copy: function() { var copy = {}, _ = this._; for (var t in _) copy[t] = _[t].slice(); return new Dispatch(copy); }, call: function(type, that) { if ((n = arguments.length - 2) > 0) for (var args = new Array(n), i = 0, n, t; i < n; ++i) args[i] = arguments[i + 2]; if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type); for (t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args); }, apply: function(type, that, args) { if (!this._.hasOwnProperty(type)) throw new Error("unknown type: " + type); for (var t = this._[type], i = 0, n = t.length; i < n; ++i) t[i].value.apply(that, args); } }; function get(type, name) { for (var i = 0, n = type.length, c; i < n; ++i) { if ((c = type[i]).name === name) { return c.value; } } } function set(type, name, callback) { for (var i = 0, n = type.length; i < n; ++i) { if (type[i].name === name) { type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1)); break; } } if (callback != null) type.push({name: name, value: callback}); return type; } /* harmony default export */ __webpack_exports__["a"] = (dispatch); /***/ }), /* 124 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return format; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return formatPrefix; }); /* harmony export (immutable) */ __webpack_exports__["a"] = defaultLocale; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__locale__ = __webpack_require__(53); var locale; var format; var formatPrefix; defaultLocale({ decimal: ".", thousands: ",", grouping: [3], currency: ["$", ""] }); function defaultLocale(definition) { locale = Object(__WEBPACK_IMPORTED_MODULE_0__locale__["a" /* default */])(definition); format = locale.format; formatPrefix = locale.formatPrefix; return locale; } /***/ }), /* 125 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(grouping, thousands) { return function(value, width) { var i = value.length, t = [], j = 0, g = grouping[0], length = 0; while (i > 0 && g > 0) { if (length + g + 1 > width) g = Math.max(1, width - length); t.push(value.substring(i -= g, i + g)); if ((length += g + 1) > width) break; g = grouping[j = (j + 1) % grouping.length]; } return t.reverse().join(thousands); }; }); /***/ }), /* 126 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(numerals) { return function(value) { return value.replace(/[0-9]/g, function(i) { return numerals[+i]; }); }; }); /***/ }), /* 127 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k. /* harmony default export */ __webpack_exports__["a"] = (function(s) { out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) { switch (s[i]) { case ".": i0 = i1 = i; break; case "0": if (i0 === 0) i0 = i; i1 = i; break; default: if (i0 > 0) { if (!+s[i]) break out; i0 = 0; } break; } } return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s; }); /***/ }), /* 128 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__formatPrefixAuto__ = __webpack_require__(55); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__formatRounded__ = __webpack_require__(129); /* harmony default export */ __webpack_exports__["a"] = ({ "%": function(x, p) { return (x * 100).toFixed(p); }, "b": function(x) { return Math.round(x).toString(2); }, "c": function(x) { return x + ""; }, "d": function(x) { return Math.round(x).toString(10); }, "e": function(x, p) { return x.toExponential(p); }, "f": function(x, p) { return x.toFixed(p); }, "g": function(x, p) { return x.toPrecision(p); }, "o": function(x) { return Math.round(x).toString(8); }, "p": function(x, p) { return Object(__WEBPACK_IMPORTED_MODULE_1__formatRounded__["a" /* default */])(x * 100, p); }, "r": __WEBPACK_IMPORTED_MODULE_1__formatRounded__["a" /* default */], "s": __WEBPACK_IMPORTED_MODULE_0__formatPrefixAuto__["a" /* default */], "X": function(x) { return Math.round(x).toString(16).toUpperCase(); }, "x": function(x) { return Math.round(x).toString(16); } }); /***/ }), /* 129 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__formatDecimal__ = __webpack_require__(32); /* harmony default export */ __webpack_exports__["a"] = (function(x, p) { var d = Object(__WEBPACK_IMPORTED_MODULE_0__formatDecimal__["a" /* default */])(x, p); if (!d) return x + ""; var coefficient = d[0], exponent = d[1]; return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) : coefficient + new Array(exponent - coefficient.length + 2).join("0"); }); /***/ }), /* 130 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return x; }); /***/ }), /* 131 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(19); /* harmony default export */ __webpack_exports__["a"] = (function(step) { return Math.max(0, -Object(__WEBPACK_IMPORTED_MODULE_0__exponent__["a" /* default */])(Math.abs(step))); }); /***/ }), /* 132 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(19); /* harmony default export */ __webpack_exports__["a"] = (function(step, value) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Object(__WEBPACK_IMPORTED_MODULE_0__exponent__["a" /* default */])(value) / 3))) * 3 - Object(__WEBPACK_IMPORTED_MODULE_0__exponent__["a" /* default */])(Math.abs(step))); }); /***/ }), /* 133 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__exponent__ = __webpack_require__(19); /* harmony default export */ __webpack_exports__["a"] = (function(step, max) { step = Math.abs(step), max = Math.abs(max) - step; return Math.max(0, Object(__WEBPACK_IMPORTED_MODULE_0__exponent__["a" /* default */])(max) - Object(__WEBPACK_IMPORTED_MODULE_0__exponent__["a" /* default */])(step)) + 1; }); /***/ }), /* 134 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { return a = +a, b -= a, function(t) { return Math.round(a + b * t); }; }); /***/ }), /* 135 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return interpolateTransformCss; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return interpolateTransformSvg; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(20); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__parse__ = __webpack_require__(136); function interpolateTransform(parse, pxComma, pxParen, degParen) { function pop(s) { return s.length ? s.pop() + " " : ""; } function translate(xa, ya, xb, yb, s, q) { if (xa !== xb || ya !== yb) { var i = s.push("translate(", null, pxComma, null, pxParen); q.push({i: i - 4, x: Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(xa, xb)}, {i: i - 2, x: Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(ya, yb)}); } else if (xb || yb) { s.push("translate(" + xb + pxComma + yb + pxParen); } } function rotate(a, b, s, q) { if (a !== b) { if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(a, b)}); } else if (b) { s.push(pop(s) + "rotate(" + b + degParen); } } function skewX(a, b, s, q) { if (a !== b) { q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(a, b)}); } else if (b) { s.push(pop(s) + "skewX(" + b + degParen); } } function scale(xa, ya, xb, yb, s, q) { if (xa !== xb || ya !== yb) { var i = s.push(pop(s) + "scale(", null, ",", null, ")"); q.push({i: i - 4, x: Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(xa, xb)}, {i: i - 2, x: Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(ya, yb)}); } else if (xb !== 1 || yb !== 1) { s.push(pop(s) + "scale(" + xb + "," + yb + ")"); } } return function(a, b) { var s = [], // string constants and placeholders q = []; // number interpolators a = parse(a), b = parse(b); translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q); rotate(a.rotate, b.rotate, s, q); skewX(a.skewX, b.skewX, s, q); scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q); a = b = null; // gc return function(t) { var i = -1, n = q.length, o; while (++i < n) s[(o = q[i]).i] = o.x(t); return s.join(""); }; }; } var interpolateTransformCss = interpolateTransform(__WEBPACK_IMPORTED_MODULE_1__parse__["a" /* parseCss */], "px, ", "px)", "deg)"); var interpolateTransformSvg = interpolateTransform(__WEBPACK_IMPORTED_MODULE_1__parse__["b" /* parseSvg */], ", ", ")", ")"); /***/ }), /* 136 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = parseCss; /* harmony export (immutable) */ __webpack_exports__["b"] = parseSvg; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__decompose__ = __webpack_require__(137); var cssNode, cssRoot, cssView, svgNode; function parseCss(value) { if (value === "none") return __WEBPACK_IMPORTED_MODULE_0__decompose__["b" /* identity */]; if (!cssNode) cssNode = document.createElement("DIV"), cssRoot = document.documentElement, cssView = document.defaultView; cssNode.style.transform = value; value = cssView.getComputedStyle(cssRoot.appendChild(cssNode), null).getPropertyValue("transform"); cssRoot.removeChild(cssNode); value = value.slice(7, -1).split(","); return Object(__WEBPACK_IMPORTED_MODULE_0__decompose__["a" /* default */])(+value[0], +value[1], +value[2], +value[3], +value[4], +value[5]); } function parseSvg(value) { if (value == null) return __WEBPACK_IMPORTED_MODULE_0__decompose__["b" /* identity */]; if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g"); svgNode.setAttribute("transform", value); if (!(value = svgNode.transform.baseVal.consolidate())) return __WEBPACK_IMPORTED_MODULE_0__decompose__["b" /* identity */]; value = value.matrix; return Object(__WEBPACK_IMPORTED_MODULE_0__decompose__["a" /* default */])(value.a, value.b, value.c, value.d, value.e, value.f); } /***/ }), /* 137 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return identity; }); var degrees = 180 / Math.PI; var identity = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 }; /* harmony default export */ __webpack_exports__["a"] = (function(a, b, c, d, e, f) { var scaleX, scaleY, skewX; if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX; if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX; if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY; if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX; return { translateX: e, translateY: f, rotate: Math.atan2(b, a) * degrees, skewX: Math.atan(skewX) * degrees, scaleX: scaleX, scaleY: scaleY }; }); /***/ }), /* 138 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var rho = Math.SQRT2, rho2 = 2, rho4 = 4, epsilon2 = 1e-12; function cosh(x) { return ((x = Math.exp(x)) + 1 / x) / 2; } function sinh(x) { return ((x = Math.exp(x)) - 1 / x) / 2; } function tanh(x) { return ((x = Math.exp(2 * x)) - 1) / (x + 1); } // p0 = [ux0, uy0, w0] // p1 = [ux1, uy1, w1] /* harmony default export */ __webpack_exports__["a"] = (function(p0, p1) { var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], ux1 = p1[0], uy1 = p1[1], w1 = p1[2], dx = ux1 - ux0, dy = uy1 - uy0, d2 = dx * dx + dy * dy, i, S; // Special case for u0 ≅ u1. if (d2 < epsilon2) { S = Math.log(w1 / w0) / rho; i = function(t) { return [ ux0 + t * dx, uy0 + t * dy, w0 * Math.exp(rho * t * S) ]; } } // General case. else { var d1 = Math.sqrt(d2), b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1), b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1), r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1); S = (r1 - r0) / rho; i = function(t) { var s = t * S, coshr0 = cosh(r0), u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0)); return [ ux0 + u * dx, uy0 + u * dy, w0 * coshr0 / cosh(rho * s + r0) ]; } } i.duration = S * 1000; return i; }); /***/ }), /* 139 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return hslLong; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(7); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(12); function hsl(hue) { return function(start, end) { var h = hue((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["hsl"])(start)).h, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["hsl"])(end)).h), s = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.s, end.s), l = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.l, end.l), opacity = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.s = s(t); start.l = l(t); start.opacity = opacity(t); return start + ""; }; } } /* harmony default export */ __webpack_exports__["a"] = (hsl(__WEBPACK_IMPORTED_MODULE_1__color__["c" /* hue */])); var hslLong = hsl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]); /***/ }), /* 140 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = lab; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(7); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(12); function lab(start, end) { var l = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["lab"])(start)).l, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["lab"])(end)).l), a = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.a, end.a), b = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.b, end.b), opacity = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.opacity, end.opacity); return function(t) { start.l = l(t); start.a = a(t); start.b = b(t); start.opacity = opacity(t); return start + ""; }; } /***/ }), /* 141 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return hclLong; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(7); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(12); function hcl(hue) { return function(start, end) { var h = hue((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["hcl"])(start)).h, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["hcl"])(end)).h), c = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.c, end.c), l = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.l, end.l), opacity = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.c = c(t); start.l = l(t); start.opacity = opacity(t); return start + ""; }; } } /* harmony default export */ __webpack_exports__["a"] = (hcl(__WEBPACK_IMPORTED_MODULE_1__color__["c" /* hue */])); var hclLong = hcl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]); /***/ }), /* 142 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cubehelixLong; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(7); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(12); function cubehelix(hue) { return (function cubehelixGamma(y) { y = +y; function cubehelix(start, end) { var h = hue((start = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["cubehelix"])(start)).h, (end = Object(__WEBPACK_IMPORTED_MODULE_0_d3_color__["cubehelix"])(end)).h), s = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.s, end.s), l = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.l, end.l), opacity = Object(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */])(start.opacity, end.opacity); return function(t) { start.h = h(t); start.s = s(t); start.l = l(Math.pow(t, y)); start.opacity = opacity(t); return start + ""; }; } cubehelix.gamma = cubehelixGamma; return cubehelix; })(1); } /* harmony default export */ __webpack_exports__["b"] = (cubehelix(__WEBPACK_IMPORTED_MODULE_1__color__["c" /* hue */])); var cubehelixLong = cubehelix(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]); /***/ }), /* 143 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = piecewise; function piecewise(interpolate, values) { var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n); while (i < n) I[i] = interpolate(v, v = values[++i]); return function(t) { var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n))); return I[i](t - i); }; } /***/ }), /* 144 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(interpolator, n) { var samples = new Array(n); for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1)); return samples; }); /***/ }), /* 145 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__creator__ = __webpack_require__(21); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__select__ = __webpack_require__(63); /* harmony default export */ __webpack_exports__["a"] = (function(name) { return Object(__WEBPACK_IMPORTED_MODULE_1__select__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_0__creator__["a" /* default */])(name).call(document.documentElement)); }); /***/ }), /* 146 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__selector__ = __webpack_require__(37); /* harmony default export */ __webpack_exports__["a"] = (function(select) { if (typeof select !== "function") select = Object(__WEBPACK_IMPORTED_MODULE_1__selector__["a" /* default */])(select); for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) { if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) { if ("__data__" in node) subnode.__data__ = node.__data__; subgroup[i] = subnode; } } } return new __WEBPACK_IMPORTED_MODULE_0__index__["a" /* Selection */](subgroups, this._parents); }); /***/ }), /* 147 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__selectorAll__ = __webpack_require__(64); /* harmony default export */ __webpack_exports__["a"] = (function(select) { if (typeof select !== "function") select = Object(__WEBPACK_IMPORTED_MODULE_1__selectorAll__["a" /* default */])(select); for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { if (node = group[i]) { subgroups.push(select.call(node, node.__data__, i, group)); parents.push(node); } } } return new __WEBPACK_IMPORTED_MODULE_0__index__["a" /* Selection */](subgroups, parents); }); /***/ }), /* 148 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__matcher__ = __webpack_require__(65); /* harmony default export */ __webpack_exports__["a"] = (function(match) { if (typeof match !== "function") match = Object(__WEBPACK_IMPORTED_MODULE_1__matcher__["a" /* default */])(match); for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) { if ((node = group[i]) && match.call(node, node.__data__, i, group)) { subgroup.push(node); } } } return new __WEBPACK_IMPORTED_MODULE_0__index__["a" /* Selection */](subgroups, this._parents); }); /***/ }), /* 149 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__enter__ = __webpack_require__(66); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(150); var keyPrefix = "$"; // Protect against keys like “__proto__”. function bindIndex(parent, group, enter, update, exit, data) { var i = 0, node, groupLength = group.length, dataLength = data.length; // Put any non-null nodes that fit into update. // Put any null nodes into enter. // Put any remaining data into enter. for (; i < dataLength; ++i) { if (node = group[i]) { node.__data__ = data[i]; update[i] = node; } else { enter[i] = new __WEBPACK_IMPORTED_MODULE_1__enter__["a" /* EnterNode */](parent, data[i]); } } // Put any non-null nodes that don’t fit into exit. for (; i < groupLength; ++i) { if (node = group[i]) { exit[i] = node; } } } function bindKey(parent, group, enter, update, exit, data, key) { var i, node, nodeByKeyValue = {}, groupLength = group.length, dataLength = data.length, keyValues = new Array(groupLength), keyValue; // Compute the key for each node. // If multiple nodes have the same key, the duplicates are added to exit. for (i = 0; i < groupLength; ++i) { if (node = group[i]) { keyValues[i] = keyValue = keyPrefix + key.call(node, node.__data__, i, group); if (keyValue in nodeByKeyValue) { exit[i] = node; } else { nodeByKeyValue[keyValue] = node; } } } // Compute the key for each datum. // If there a node associated with this key, join and add it to update. // If there is not (or the key is a duplicate), add it to enter. for (i = 0; i < dataLength; ++i) { keyValue = keyPrefix + key.call(parent, data[i], i, data); if (node = nodeByKeyValue[keyValue]) { update[i] = node; node.__data__ = data[i]; nodeByKeyValue[keyValue] = null; } else { enter[i] = new __WEBPACK_IMPORTED_MODULE_1__enter__["a" /* EnterNode */](parent, data[i]); } } // Add any remaining nodes that were not bound to data to exit. for (i = 0; i < groupLength; ++i) { if ((node = group[i]) && (nodeByKeyValue[keyValues[i]] === node)) { exit[i] = node; } } } /* harmony default export */ __webpack_exports__["a"] = (function(value, key) { if (!value) { data = new Array(this.size()), j = -1; this.each(function(d) { data[++j] = d; }); return data; } var bind = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups; if (typeof value !== "function") value = Object(__WEBPACK_IMPORTED_MODULE_2__constant__["a" /* default */])(value); for (var m = groups.length, update = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) { var parent = parents[j], group = groups[j], groupLength = group.length, data = value.call(parent, parent && parent.__data__, j, parents), dataLength = data.length, enterGroup = enter[j] = new Array(dataLength), updateGroup = update[j] = new Array(dataLength), exitGroup = exit[j] = new Array(groupLength); bind(parent, group, enterGroup, updateGroup, exitGroup, data, key); // Now connect the enter nodes to their following update node, such that // appendChild can insert the materialized enter node before this node, // rather than at the end of the parent node. for (var i0 = 0, i1 = 0, previous, next; i0 < dataLength; ++i0) { if (previous = enterGroup[i0]) { if (i0 >= i1) i1 = i0 + 1; while (!(next = updateGroup[i1]) && ++i1 < dataLength); previous._next = next || null; } } } update = new __WEBPACK_IMPORTED_MODULE_0__index__["a" /* Selection */](update, parents); update._enter = enter; update._exit = exit; return update; }); /***/ }), /* 150 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return function() { return x; }; }); /***/ }), /* 151 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sparse__ = __webpack_require__(67); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__index__ = __webpack_require__(1); /* harmony default export */ __webpack_exports__["a"] = (function() { return new __WEBPACK_IMPORTED_MODULE_1__index__["a" /* Selection */](this._exit || this._groups.map(__WEBPACK_IMPORTED_MODULE_0__sparse__["a" /* default */]), this._parents); }); /***/ }), /* 152 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(1); /* harmony default export */ __webpack_exports__["a"] = (function(selection) { for (var groups0 = this._groups, groups1 = selection._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) { for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) { if (node = group0[i] || group1[i]) { merge[i] = node; } } } for (; j < m0; ++j) { merges[j] = groups0[j]; } return new __WEBPACK_IMPORTED_MODULE_0__index__["a" /* Selection */](merges, this._parents); }); /***/ }), /* 153 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function() { for (var groups = this._groups, j = -1, m = groups.length; ++j < m;) { for (var group = groups[j], i = group.length - 1, next = group[i], node; --i >= 0;) { if (node = group[i]) { if (next && next !== node.nextSibling) next.parentNode.insertBefore(node, next); next = node; } } } return this; }); /***/ }), /* 154 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(1); /* harmony default export */ __webpack_exports__["a"] = (function(compare) { if (!compare) compare = ascending; function compareNode(a, b) { return a && b ? compare(a.__data__, b.__data__) : !a - !b; } for (var groups = this._groups, m = groups.length, sortgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, sortgroup = sortgroups[j] = new Array(n), node, i = 0; i < n; ++i) { if (node = group[i]) { sortgroup[i] = node; } } sortgroup.sort(compareNode); } return new __WEBPACK_IMPORTED_MODULE_0__index__["a" /* Selection */](sortgroups, this._parents).order(); }); function ascending(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; } /***/ }), /* 155 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function() { var callback = arguments[0]; arguments[0] = this; callback.apply(null, arguments); return this; }); /***/ }), /* 156 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function() { var nodes = new Array(this.size()), i = -1; this.each(function() { nodes[++i] = this; }); return nodes; }); /***/ }), /* 157 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function() { for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) { for (var group = groups[j], i = 0, n = group.length; i < n; ++i) { var node = group[i]; if (node) return node; } } return null; }); /***/ }), /* 158 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function() { var size = 0; this.each(function() { ++size; }); return size; }); /***/ }), /* 159 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function() { return !this.node(); }); /***/ }), /* 160 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(callback) { for (var groups = this._groups, j = 0, m = groups.length; j < m; ++j) { for (var group = groups[j], i = 0, n = group.length, node; i < n; ++i) { if (node = group[i]) callback.call(node, node.__data__, i, group); } } return this; }); /***/ }), /* 161 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__namespace__ = __webpack_require__(35); function attrRemove(name) { return function() { this.removeAttribute(name); }; } function attrRemoveNS(fullname) { return function() { this.removeAttributeNS(fullname.space, fullname.local); }; } function attrConstant(name, value) { return function() { this.setAttribute(name, value); }; } function attrConstantNS(fullname, value) { return function() { this.setAttributeNS(fullname.space, fullname.local, value); }; } function attrFunction(name, value) { return function() { var v = value.apply(this, arguments); if (v == null) this.removeAttribute(name); else this.setAttribute(name, v); }; } function attrFunctionNS(fullname, value) { return function() { var v = value.apply(this, arguments); if (v == null) this.removeAttributeNS(fullname.space, fullname.local); else this.setAttributeNS(fullname.space, fullname.local, v); }; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value) { var fullname = Object(__WEBPACK_IMPORTED_MODULE_0__namespace__["a" /* default */])(name); if (arguments.length < 2) { var node = this.node(); return fullname.local ? node.getAttributeNS(fullname.space, fullname.local) : node.getAttribute(fullname); } return this.each((value == null ? (fullname.local ? attrRemoveNS : attrRemove) : (typeof value === "function" ? (fullname.local ? attrFunctionNS : attrFunction) : (fullname.local ? attrConstantNS : attrConstant)))(fullname, value)); }); /***/ }), /* 162 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function propertyRemove(name) { return function() { delete this[name]; }; } function propertyConstant(name, value) { return function() { this[name] = value; }; } function propertyFunction(name, value) { return function() { var v = value.apply(this, arguments); if (v == null) delete this[name]; else this[name] = v; }; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value) { return arguments.length > 1 ? this.each((value == null ? propertyRemove : typeof value === "function" ? propertyFunction : propertyConstant)(name, value)) : this.node()[name]; }); /***/ }), /* 163 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function classArray(string) { return string.trim().split(/^|\s+/); } function classList(node) { return node.classList || new ClassList(node); } function ClassList(node) { this._node = node; this._names = classArray(node.getAttribute("class") || ""); } ClassList.prototype = { add: function(name) { var i = this._names.indexOf(name); if (i < 0) { this._names.push(name); this._node.setAttribute("class", this._names.join(" ")); } }, remove: function(name) { var i = this._names.indexOf(name); if (i >= 0) { this._names.splice(i, 1); this._node.setAttribute("class", this._names.join(" ")); } }, contains: function(name) { return this._names.indexOf(name) >= 0; } }; function classedAdd(node, names) { var list = classList(node), i = -1, n = names.length; while (++i < n) list.add(names[i]); } function classedRemove(node, names) { var list = classList(node), i = -1, n = names.length; while (++i < n) list.remove(names[i]); } function classedTrue(names) { return function() { classedAdd(this, names); }; } function classedFalse(names) { return function() { classedRemove(this, names); }; } function classedFunction(names, value) { return function() { (value.apply(this, arguments) ? classedAdd : classedRemove)(this, names); }; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value) { var names = classArray(name + ""); if (arguments.length < 2) { var list = classList(this.node()), i = -1, n = names.length; while (++i < n) if (!list.contains(names[i])) return false; return true; } return this.each((typeof value === "function" ? classedFunction : value ? classedTrue : classedFalse)(names, value)); }); /***/ }), /* 164 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function textRemove() { this.textContent = ""; } function textConstant(value) { return function() { this.textContent = value; }; } function textFunction(value) { return function() { var v = value.apply(this, arguments); this.textContent = v == null ? "" : v; }; } /* harmony default export */ __webpack_exports__["a"] = (function(value) { return arguments.length ? this.each(value == null ? textRemove : (typeof value === "function" ? textFunction : textConstant)(value)) : this.node().textContent; }); /***/ }), /* 165 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function htmlRemove() { this.innerHTML = ""; } function htmlConstant(value) { return function() { this.innerHTML = value; }; } function htmlFunction(value) { return function() { var v = value.apply(this, arguments); this.innerHTML = v == null ? "" : v; }; } /* harmony default export */ __webpack_exports__["a"] = (function(value) { return arguments.length ? this.each(value == null ? htmlRemove : (typeof value === "function" ? htmlFunction : htmlConstant)(value)) : this.node().innerHTML; }); /***/ }), /* 166 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function raise() { if (this.nextSibling) this.parentNode.appendChild(this); } /* harmony default export */ __webpack_exports__["a"] = (function() { return this.each(raise); }); /***/ }), /* 167 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function lower() { if (this.previousSibling) this.parentNode.insertBefore(this, this.parentNode.firstChild); } /* harmony default export */ __webpack_exports__["a"] = (function() { return this.each(lower); }); /***/ }), /* 168 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__creator__ = __webpack_require__(21); /* harmony default export */ __webpack_exports__["a"] = (function(name) { var create = typeof name === "function" ? name : Object(__WEBPACK_IMPORTED_MODULE_0__creator__["a" /* default */])(name); return this.select(function() { return this.appendChild(create.apply(this, arguments)); }); }); /***/ }), /* 169 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__creator__ = __webpack_require__(21); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__selector__ = __webpack_require__(37); function constantNull() { return null; } /* harmony default export */ __webpack_exports__["a"] = (function(name, before) { var create = typeof name === "function" ? name : Object(__WEBPACK_IMPORTED_MODULE_0__creator__["a" /* default */])(name), select = before == null ? constantNull : typeof before === "function" ? before : Object(__WEBPACK_IMPORTED_MODULE_1__selector__["a" /* default */])(before); return this.select(function() { return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null); }); }); /***/ }), /* 170 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function remove() { var parent = this.parentNode; if (parent) parent.removeChild(this); } /* harmony default export */ __webpack_exports__["a"] = (function() { return this.each(remove); }); /***/ }), /* 171 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function selection_cloneShallow() { return this.parentNode.insertBefore(this.cloneNode(false), this.nextSibling); } function selection_cloneDeep() { return this.parentNode.insertBefore(this.cloneNode(true), this.nextSibling); } /* harmony default export */ __webpack_exports__["a"] = (function(deep) { return this.select(deep ? selection_cloneDeep : selection_cloneShallow); }); /***/ }), /* 172 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(value) { return arguments.length ? this.property("__data__", value) : this.node().__data__; }); /***/ }), /* 173 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__window__ = __webpack_require__(38); function dispatchEvent(node, type, params) { var window = Object(__WEBPACK_IMPORTED_MODULE_0__window__["a" /* default */])(node), event = window.CustomEvent; if (typeof event === "function") { event = new event(type, params); } else { event = window.document.createEvent("Event"); if (params) event.initEvent(type, params.bubbles, params.cancelable), event.detail = params.detail; else event.initEvent(type, false, false); } node.dispatchEvent(event); } function dispatchConstant(type, params) { return function() { return dispatchEvent(this, type, params); }; } function dispatchFunction(type, params) { return function() { return dispatchEvent(this, type, params.apply(this, arguments)); }; } /* harmony default export */ __webpack_exports__["a"] = (function(type, params) { return this.each((typeof params === "function" ? dispatchFunction : dispatchConstant)(type, params)); }); /***/ }), /* 174 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = local; var nextId = 0; function local() { return new Local; } function Local() { this._ = "@" + (++nextId).toString(36); } Local.prototype = local.prototype = { constructor: Local, get: function(node) { var id = this._; while (!(id in node)) if (!(node = node.parentNode)) return; return node[id]; }, set: function(node, value) { return node[this._] = value; }, remove: function(node) { return this._ in node && delete node[this._]; }, toString: function() { return this._; } }; /***/ }), /* 175 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sourceEvent__ = __webpack_require__(40); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__point__ = __webpack_require__(22); /* harmony default export */ __webpack_exports__["a"] = (function(node) { var event = Object(__WEBPACK_IMPORTED_MODULE_0__sourceEvent__["a" /* default */])(); if (event.changedTouches) event = event.changedTouches[0]; return Object(__WEBPACK_IMPORTED_MODULE_1__point__["a" /* default */])(node, event); }); /***/ }), /* 176 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__selection_index__ = __webpack_require__(1); /* harmony default export */ __webpack_exports__["a"] = (function(selector) { return typeof selector === "string" ? new __WEBPACK_IMPORTED_MODULE_0__selection_index__["a" /* Selection */]([document.querySelectorAll(selector)], [document.documentElement]) : new __WEBPACK_IMPORTED_MODULE_0__selection_index__["a" /* Selection */]([selector == null ? [] : selector], __WEBPACK_IMPORTED_MODULE_0__selection_index__["c" /* root */]); }); /***/ }), /* 177 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sourceEvent__ = __webpack_require__(40); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__point__ = __webpack_require__(22); /* harmony default export */ __webpack_exports__["a"] = (function(node, touches, identifier) { if (arguments.length < 3) identifier = touches, touches = Object(__WEBPACK_IMPORTED_MODULE_0__sourceEvent__["a" /* default */])().changedTouches; for (var i = 0, n = touches ? touches.length : 0, touch; i < n; ++i) { if ((touch = touches[i]).identifier === identifier) { return Object(__WEBPACK_IMPORTED_MODULE_1__point__["a" /* default */])(node, touch); } } return null; }); /***/ }), /* 178 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sourceEvent__ = __webpack_require__(40); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__point__ = __webpack_require__(22); /* harmony default export */ __webpack_exports__["a"] = (function(node, touches) { if (touches == null) touches = Object(__WEBPACK_IMPORTED_MODULE_0__sourceEvent__["a" /* default */])().touches; for (var i = 0, n = touches ? touches.length : 0, points = new Array(n); i < n; ++i) { points[i] = Object(__WEBPACK_IMPORTED_MODULE_1__point__["a" /* default */])(node, touches[i]); } return points; }); /***/ }), /* 179 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_selection__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__interrupt__ = __webpack_require__(180); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__transition__ = __webpack_require__(183); __WEBPACK_IMPORTED_MODULE_0_d3_selection__["selection"].prototype.interrupt = __WEBPACK_IMPORTED_MODULE_1__interrupt__["a" /* default */]; __WEBPACK_IMPORTED_MODULE_0_d3_selection__["selection"].prototype.transition = __WEBPACK_IMPORTED_MODULE_2__transition__["a" /* default */]; /***/ }), /* 180 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interrupt__ = __webpack_require__(69); /* harmony default export */ __webpack_exports__["a"] = (function(name) { return this.each(function() { Object(__WEBPACK_IMPORTED_MODULE_0__interrupt__["a" /* default */])(this, name); }); }); /***/ }), /* 181 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__timer__ = __webpack_require__(41); /* harmony default export */ __webpack_exports__["a"] = (function(callback, delay, time) { var t = new __WEBPACK_IMPORTED_MODULE_0__timer__["a" /* Timer */]; delay = delay == null ? 0 : +delay; t.restart(function(elapsed) { t.stop(); callback(elapsed + delay); }, delay, time); return t; }); /***/ }), /* 182 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__timer__ = __webpack_require__(41); /* unused harmony default export */ var _unused_webpack_default_export = (function(callback, delay, time) { var t = new __WEBPACK_IMPORTED_MODULE_0__timer__["a" /* Timer */], total = delay; if (delay == null) return t.restart(callback, delay, time), t; delay = +delay, time = time == null ? Object(__WEBPACK_IMPORTED_MODULE_0__timer__["b" /* now */])() : +time; t.restart(function tick(elapsed) { elapsed += total; t.restart(tick, total += delay, time); callback(elapsed); }, delay, time); return t; }); /***/ }), /* 183 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__transition_index__ = __webpack_require__(6); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__transition_schedule__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_ease__ = __webpack_require__(72); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_d3_timer__ = __webpack_require__(70); var defaultTiming = { time: null, // Set on use. delay: 0, duration: 250, ease: __WEBPACK_IMPORTED_MODULE_2_d3_ease__["easeCubicInOut"] }; function inherit(node, id) { var timing; while (!(timing = node.__transition) || !(timing = timing[id])) { if (!(node = node.parentNode)) { return defaultTiming.time = Object(__WEBPACK_IMPORTED_MODULE_3_d3_timer__["a" /* now */])(), defaultTiming; } } return timing; } /* harmony default export */ __webpack_exports__["a"] = (function(name) { var id, timing; if (name instanceof __WEBPACK_IMPORTED_MODULE_0__transition_index__["a" /* Transition */]) { id = name._id, name = name._name; } else { id = Object(__WEBPACK_IMPORTED_MODULE_0__transition_index__["c" /* newId */])(), (timing = defaultTiming).time = Object(__WEBPACK_IMPORTED_MODULE_3_d3_timer__["a" /* now */])(), name = name == null ? null : name + ""; } for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { if (node = group[i]) { Object(__WEBPACK_IMPORTED_MODULE_1__transition_schedule__["e" /* default */])(node, name, id, i, group, timing || inherit(node, id)); } } } return new __WEBPACK_IMPORTED_MODULE_0__transition_index__["a" /* Transition */](groups, this._parents, name, id); }); /***/ }), /* 184 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_interpolate__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_selection__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tween__ = __webpack_require__(23); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__interpolate__ = __webpack_require__(71); function attrRemove(name) { return function() { this.removeAttribute(name); }; } function attrRemoveNS(fullname) { return function() { this.removeAttributeNS(fullname.space, fullname.local); }; } function attrConstant(name, interpolate, value1) { var value00, interpolate0; return function() { var value0 = this.getAttribute(name); return value0 === value1 ? null : value0 === value00 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value1); }; } function attrConstantNS(fullname, interpolate, value1) { var value00, interpolate0; return function() { var value0 = this.getAttributeNS(fullname.space, fullname.local); return value0 === value1 ? null : value0 === value00 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value1); }; } function attrFunction(name, interpolate, value) { var value00, value10, interpolate0; return function() { var value0, value1 = value(this); if (value1 == null) return void this.removeAttribute(name); value0 = this.getAttribute(name); return value0 === value1 ? null : value0 === value00 && value1 === value10 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value10 = value1); }; } function attrFunctionNS(fullname, interpolate, value) { var value00, value10, interpolate0; return function() { var value0, value1 = value(this); if (value1 == null) return void this.removeAttributeNS(fullname.space, fullname.local); value0 = this.getAttributeNS(fullname.space, fullname.local); return value0 === value1 ? null : value0 === value00 && value1 === value10 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value10 = value1); }; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value) { var fullname = Object(__WEBPACK_IMPORTED_MODULE_1_d3_selection__["namespace"])(name), i = fullname === "transform" ? __WEBPACK_IMPORTED_MODULE_0_d3_interpolate__["interpolateTransformSvg"] : __WEBPACK_IMPORTED_MODULE_3__interpolate__["a" /* default */]; return this.attrTween(name, typeof value === "function" ? (fullname.local ? attrFunctionNS : attrFunction)(fullname, i, Object(__WEBPACK_IMPORTED_MODULE_2__tween__["b" /* tweenValue */])(this, "attr." + name, value)) : value == null ? (fullname.local ? attrRemoveNS : attrRemove)(fullname) : (fullname.local ? attrConstantNS : attrConstant)(fullname, i, value + "")); }); /***/ }), /* 185 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_selection__ = __webpack_require__(3); function attrTweenNS(fullname, value) { function tween() { var node = this, i = value.apply(node, arguments); return i && function(t) { node.setAttributeNS(fullname.space, fullname.local, i(t)); }; } tween._value = value; return tween; } function attrTween(name, value) { function tween() { var node = this, i = value.apply(node, arguments); return i && function(t) { node.setAttribute(name, i(t)); }; } tween._value = value; return tween; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value) { var key = "attr." + name; if (arguments.length < 2) return (key = this.tween(key)) && key._value; if (value == null) return this.tween(key, null); if (typeof value !== "function") throw new Error; var fullname = Object(__WEBPACK_IMPORTED_MODULE_0_d3_selection__["namespace"])(name); return this.tween(key, (fullname.local ? attrTweenNS : attrTween)(fullname, value)); }); /***/ }), /* 186 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__schedule__ = __webpack_require__(2); function delayFunction(id, value) { return function() { Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["g" /* init */])(this, id).delay = +value.apply(this, arguments); }; } function delayConstant(id, value) { return value = +value, function() { Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["g" /* init */])(this, id).delay = value; }; } /* harmony default export */ __webpack_exports__["a"] = (function(value) { var id = this._id; return arguments.length ? this.each((typeof value === "function" ? delayFunction : delayConstant)(id, value)) : Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["f" /* get */])(this.node(), id).delay; }); /***/ }), /* 187 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__schedule__ = __webpack_require__(2); function durationFunction(id, value) { return function() { Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["h" /* set */])(this, id).duration = +value.apply(this, arguments); }; } function durationConstant(id, value) { return value = +value, function() { Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["h" /* set */])(this, id).duration = value; }; } /* harmony default export */ __webpack_exports__["a"] = (function(value) { var id = this._id; return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id, value)) : Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["f" /* get */])(this.node(), id).duration; }); /***/ }), /* 188 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__schedule__ = __webpack_require__(2); function easeConstant(id, value) { if (typeof value !== "function") throw new Error; return function() { Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["h" /* set */])(this, id).ease = value; }; } /* harmony default export */ __webpack_exports__["a"] = (function(value) { var id = this._id; return arguments.length ? this.each(easeConstant(id, value)) : Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["f" /* get */])(this.node(), id).ease; }); /***/ }), /* 189 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_selection__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__index__ = __webpack_require__(6); /* harmony default export */ __webpack_exports__["a"] = (function(match) { if (typeof match !== "function") match = Object(__WEBPACK_IMPORTED_MODULE_0_d3_selection__["matcher"])(match); for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, subgroup = subgroups[j] = [], node, i = 0; i < n; ++i) { if ((node = group[i]) && match.call(node, node.__data__, i, group)) { subgroup.push(node); } } } return new __WEBPACK_IMPORTED_MODULE_1__index__["a" /* Transition */](subgroups, this._parents, this._name, this._id); }); /***/ }), /* 190 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(6); /* harmony default export */ __webpack_exports__["a"] = (function(transition) { if (transition._id !== this._id) throw new Error; for (var groups0 = this._groups, groups1 = transition._groups, m0 = groups0.length, m1 = groups1.length, m = Math.min(m0, m1), merges = new Array(m0), j = 0; j < m; ++j) { for (var group0 = groups0[j], group1 = groups1[j], n = group0.length, merge = merges[j] = new Array(n), node, i = 0; i < n; ++i) { if (node = group0[i] || group1[i]) { merge[i] = node; } } } for (; j < m0; ++j) { merges[j] = groups0[j]; } return new __WEBPACK_IMPORTED_MODULE_0__index__["a" /* Transition */](merges, this._parents, this._name, this._id); }); /***/ }), /* 191 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__schedule__ = __webpack_require__(2); function start(name) { return (name + "").trim().split(/^|\s+/).every(function(t) { var i = t.indexOf("."); if (i >= 0) t = t.slice(0, i); return !t || t === "start"; }); } function onFunction(id, name, listener) { var on0, on1, sit = start(name) ? __WEBPACK_IMPORTED_MODULE_0__schedule__["g" /* init */] : __WEBPACK_IMPORTED_MODULE_0__schedule__["h" /* set */]; return function() { var schedule = sit(this, id), on = schedule.on; // If this node shared a dispatch with the previous node, // just assign the updated shared dispatch and we’re done! // Otherwise, copy-on-write. if (on !== on0) (on1 = (on0 = on).copy()).on(name, listener); schedule.on = on1; }; } /* harmony default export */ __webpack_exports__["a"] = (function(name, listener) { var id = this._id; return arguments.length < 2 ? Object(__WEBPACK_IMPORTED_MODULE_0__schedule__["f" /* get */])(this.node(), id).on.on(name) : this.each(onFunction(id, name, listener)); }); /***/ }), /* 192 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function removeFunction(id) { return function() { var parent = this.parentNode; for (var i in this.__transition) if (+i !== id) return; if (parent) parent.removeChild(this); }; } /* harmony default export */ __webpack_exports__["a"] = (function() { return this.on("end.remove", removeFunction(this._id)); }); /***/ }), /* 193 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_selection__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__index__ = __webpack_require__(6); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__schedule__ = __webpack_require__(2); /* harmony default export */ __webpack_exports__["a"] = (function(select) { var name = this._name, id = this._id; if (typeof select !== "function") select = Object(__WEBPACK_IMPORTED_MODULE_0_d3_selection__["selector"])(select); for (var groups = this._groups, m = groups.length, subgroups = new Array(m), j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, subgroup = subgroups[j] = new Array(n), node, subnode, i = 0; i < n; ++i) { if ((node = group[i]) && (subnode = select.call(node, node.__data__, i, group))) { if ("__data__" in node) subnode.__data__ = node.__data__; subgroup[i] = subnode; Object(__WEBPACK_IMPORTED_MODULE_2__schedule__["e" /* default */])(subgroup[i], name, id, i, subgroup, Object(__WEBPACK_IMPORTED_MODULE_2__schedule__["f" /* get */])(node, id)); } } } return new __WEBPACK_IMPORTED_MODULE_1__index__["a" /* Transition */](subgroups, this._parents, name, id); }); /***/ }), /* 194 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_selection__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__index__ = __webpack_require__(6); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__schedule__ = __webpack_require__(2); /* harmony default export */ __webpack_exports__["a"] = (function(select) { var name = this._name, id = this._id; if (typeof select !== "function") select = Object(__WEBPACK_IMPORTED_MODULE_0_d3_selection__["selectorAll"])(select); for (var groups = this._groups, m = groups.length, subgroups = [], parents = [], j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { if (node = group[i]) { for (var children = select.call(node, node.__data__, i, group), child, inherit = Object(__WEBPACK_IMPORTED_MODULE_2__schedule__["f" /* get */])(node, id), k = 0, l = children.length; k < l; ++k) { if (child = children[k]) { Object(__WEBPACK_IMPORTED_MODULE_2__schedule__["e" /* default */])(child, name, id, k, children, inherit); } } subgroups.push(children); parents.push(node); } } } return new __WEBPACK_IMPORTED_MODULE_1__index__["a" /* Transition */](subgroups, parents, name, id); }); /***/ }), /* 195 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_selection__ = __webpack_require__(3); var Selection = __WEBPACK_IMPORTED_MODULE_0_d3_selection__["selection"].prototype.constructor; /* harmony default export */ __webpack_exports__["a"] = (function() { return new Selection(this._groups, this._parents); }); /***/ }), /* 196 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_interpolate__ = __webpack_require__(9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_selection__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__tween__ = __webpack_require__(23); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__interpolate__ = __webpack_require__(71); function styleRemove(name, interpolate) { var value00, value10, interpolate0; return function() { var value0 = Object(__WEBPACK_IMPORTED_MODULE_1_d3_selection__["style"])(this, name), value1 = (this.style.removeProperty(name), Object(__WEBPACK_IMPORTED_MODULE_1_d3_selection__["style"])(this, name)); return value0 === value1 ? null : value0 === value00 && value1 === value10 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value10 = value1); }; } function styleRemoveEnd(name) { return function() { this.style.removeProperty(name); }; } function styleConstant(name, interpolate, value1) { var value00, interpolate0; return function() { var value0 = Object(__WEBPACK_IMPORTED_MODULE_1_d3_selection__["style"])(this, name); return value0 === value1 ? null : value0 === value00 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value1); }; } function styleFunction(name, interpolate, value) { var value00, value10, interpolate0; return function() { var value0 = Object(__WEBPACK_IMPORTED_MODULE_1_d3_selection__["style"])(this, name), value1 = value(this); if (value1 == null) value1 = (this.style.removeProperty(name), Object(__WEBPACK_IMPORTED_MODULE_1_d3_selection__["style"])(this, name)); return value0 === value1 ? null : value0 === value00 && value1 === value10 ? interpolate0 : interpolate0 = interpolate(value00 = value0, value10 = value1); }; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value, priority) { var i = (name += "") === "transform" ? __WEBPACK_IMPORTED_MODULE_0_d3_interpolate__["interpolateTransformCss"] : __WEBPACK_IMPORTED_MODULE_3__interpolate__["a" /* default */]; return value == null ? this .styleTween(name, styleRemove(name, i)) .on("end.style." + name, styleRemoveEnd(name)) : this.styleTween(name, typeof value === "function" ? styleFunction(name, i, Object(__WEBPACK_IMPORTED_MODULE_2__tween__["b" /* tweenValue */])(this, "style." + name, value)) : styleConstant(name, i, value + ""), priority); }); /***/ }), /* 197 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function styleTween(name, value, priority) { function tween() { var node = this, i = value.apply(node, arguments); return i && function(t) { node.style.setProperty(name, i(t), priority); }; } tween._value = value; return tween; } /* harmony default export */ __webpack_exports__["a"] = (function(name, value, priority) { var key = "style." + (name += ""); if (arguments.length < 2) return (key = this.tween(key)) && key._value; if (value == null) return this.tween(key, null); if (typeof value !== "function") throw new Error; return this.tween(key, styleTween(name, value, priority == null ? "" : priority)); }); /***/ }), /* 198 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__tween__ = __webpack_require__(23); function textConstant(value) { return function() { this.textContent = value; }; } function textFunction(value) { return function() { var value1 = value(this); this.textContent = value1 == null ? "" : value1; }; } /* harmony default export */ __webpack_exports__["a"] = (function(value) { return this.tween("text", typeof value === "function" ? textFunction(Object(__WEBPACK_IMPORTED_MODULE_0__tween__["b" /* tweenValue */])(this, "text", value)) : textConstant(value == null ? "" : value + "")); }); /***/ }), /* 199 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__(6); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__schedule__ = __webpack_require__(2); /* harmony default export */ __webpack_exports__["a"] = (function() { var name = this._name, id0 = this._id, id1 = Object(__WEBPACK_IMPORTED_MODULE_0__index__["c" /* newId */])(); for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) { for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) { if (node = group[i]) { var inherit = Object(__WEBPACK_IMPORTED_MODULE_1__schedule__["f" /* get */])(node, id0); Object(__WEBPACK_IMPORTED_MODULE_1__schedule__["e" /* default */])(node, name, id1, i, group, { time: inherit.time + inherit.delay + inherit.duration, delay: 0, duration: inherit.duration, ease: inherit.ease }); } } } return new __WEBPACK_IMPORTED_MODULE_0__index__["a" /* Transition */](groups, this._parents, name, id1); }); /***/ }), /* 200 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__transition_index__ = __webpack_require__(6); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__transition_schedule__ = __webpack_require__(2); var root = [null]; /* harmony default export */ __webpack_exports__["a"] = (function(node, name) { var schedules = node.__transition, schedule, i; if (schedules) { name = name == null ? null : name + ""; for (i in schedules) { if ((schedule = schedules[i]).state > __WEBPACK_IMPORTED_MODULE_1__transition_schedule__["c" /* SCHEDULED */] && schedule.name === name) { return new __WEBPACK_IMPORTED_MODULE_0__transition_index__["a" /* Transition */]([[node]], root, name, +i); } } } return null; }); /***/ }), /* 201 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__pairs__ = __webpack_require__(76); /* harmony default export */ __webpack_exports__["a"] = (function(values0, values1, reduce) { var n0 = values0.length, n1 = values1.length, values = new Array(n0 * n1), i0, i1, i, value0; if (reduce == null) reduce = __WEBPACK_IMPORTED_MODULE_0__pairs__["b" /* pair */]; for (i0 = i = 0; i0 < n0; ++i0) { for (value0 = values0[i0], i1 = 0; i1 < n1; ++i1, ++i) { values[i] = reduce(value0, values1[i1]); } } return values; }); /***/ }), /* 202 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; }); /***/ }), /* 203 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__array__ = __webpack_require__(80); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__bisect__ = __webpack_require__(74); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(204); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__extent__ = __webpack_require__(79); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__identity__ = __webpack_require__(205); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__range__ = __webpack_require__(81); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ticks__ = __webpack_require__(82); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__threshold_sturges__ = __webpack_require__(83); /* harmony default export */ __webpack_exports__["a"] = (function() { var value = __WEBPACK_IMPORTED_MODULE_4__identity__["a" /* default */], domain = __WEBPACK_IMPORTED_MODULE_3__extent__["a" /* default */], threshold = __WEBPACK_IMPORTED_MODULE_7__threshold_sturges__["a" /* default */]; function histogram(data) { var i, n = data.length, x, values = new Array(n); for (i = 0; i < n; ++i) { values[i] = value(data[i], i, data); } var xz = domain(values), x0 = xz[0], x1 = xz[1], tz = threshold(values, x0, x1); // Convert number of thresholds into uniform thresholds. if (!Array.isArray(tz)) { tz = Object(__WEBPACK_IMPORTED_MODULE_6__ticks__["c" /* tickStep */])(x0, x1, tz); tz = Object(__WEBPACK_IMPORTED_MODULE_5__range__["a" /* default */])(Math.ceil(x0 / tz) * tz, Math.floor(x1 / tz) * tz, tz); // exclusive } // Remove any thresholds outside the domain. var m = tz.length; while (tz[0] <= x0) tz.shift(), --m; while (tz[m - 1] > x1) tz.pop(), --m; var bins = new Array(m + 1), bin; // Initialize bins. for (i = 0; i <= m; ++i) { bin = bins[i] = []; bin.x0 = i > 0 ? tz[i - 1] : x0; bin.x1 = i < m ? tz[i] : x1; } // Assign data to bins by value, ignoring any outside the domain. for (i = 0; i < n; ++i) { x = values[i]; if (x0 <= x && x <= x1) { bins[Object(__WEBPACK_IMPORTED_MODULE_1__bisect__["c" /* default */])(tz, x, 0, m)].push(data[i]); } } return bins; } histogram.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_2__constant__["a" /* default */])(_), histogram) : value; }; histogram.domain = function(_) { return arguments.length ? (domain = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_2__constant__["a" /* default */])([_[0], _[1]]), histogram) : domain; }; histogram.thresholds = function(_) { return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? Object(__WEBPACK_IMPORTED_MODULE_2__constant__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__array__["b" /* slice */].call(_)) : Object(__WEBPACK_IMPORTED_MODULE_2__constant__["a" /* default */])(_), histogram) : threshold; }; return histogram; }); /***/ }), /* 204 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return function() { return x; }; }); /***/ }), /* 205 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(x) { return x; }); /***/ }), /* 206 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__array__ = __webpack_require__(80); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ascending__ = __webpack_require__(11); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__number__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__quantile__ = __webpack_require__(43); /* harmony default export */ __webpack_exports__["a"] = (function(values, min, max) { values = __WEBPACK_IMPORTED_MODULE_0__array__["a" /* map */].call(values, __WEBPACK_IMPORTED_MODULE_2__number__["a" /* default */]).sort(__WEBPACK_IMPORTED_MODULE_1__ascending__["a" /* default */]); return Math.ceil((max - min) / (2 * (Object(__WEBPACK_IMPORTED_MODULE_3__quantile__["a" /* default */])(values, 0.75) - Object(__WEBPACK_IMPORTED_MODULE_3__quantile__["a" /* default */])(values, 0.25)) * Math.pow(values.length, -1 / 3))); }); /***/ }), /* 207 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__deviation__ = __webpack_require__(77); /* harmony default export */ __webpack_exports__["a"] = (function(values, min, max) { return Math.ceil((max - min) / (3.5 * Object(__WEBPACK_IMPORTED_MODULE_0__deviation__["a" /* default */])(values) * Math.pow(values.length, -1 / 3))); }); /***/ }), /* 208 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(values, valueof) { var n = values.length, i = -1, value, max; if (valueof == null) { while (++i < n) { // Find the first comparable value. if ((value = values[i]) != null && value >= value) { max = value; while (++i < n) { // Compare the remaining values. if ((value = values[i]) != null && value > max) { max = value; } } } } } else { while (++i < n) { // Find the first comparable value. if ((value = valueof(values[i], i, values)) != null && value >= value) { max = value; while (++i < n) { // Compare the remaining values. if ((value = valueof(values[i], i, values)) != null && value > max) { max = value; } } } } } return max; }); /***/ }), /* 209 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__number__ = __webpack_require__(13); /* harmony default export */ __webpack_exports__["a"] = (function(values, valueof) { var n = values.length, m = n, i = -1, value, sum = 0; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(values[i]))) sum += value; else --m; } } else { while (++i < n) { if (!isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_0__number__["a" /* default */])(valueof(values[i], i, values)))) sum += value; else --m; } } if (m) return sum / m; }); /***/ }), /* 210 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ascending__ = __webpack_require__(11); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__number__ = __webpack_require__(13); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__quantile__ = __webpack_require__(43); /* harmony default export */ __webpack_exports__["a"] = (function(values, valueof) { var n = values.length, i = -1, value, numbers = []; if (valueof == null) { while (++i < n) { if (!isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_1__number__["a" /* default */])(values[i]))) { numbers.push(value); } } } else { while (++i < n) { if (!isNaN(value = Object(__WEBPACK_IMPORTED_MODULE_1__number__["a" /* default */])(valueof(values[i], i, values)))) { numbers.push(value); } } } return Object(__WEBPACK_IMPORTED_MODULE_2__quantile__["a" /* default */])(numbers.sort(__WEBPACK_IMPORTED_MODULE_0__ascending__["a" /* default */]), 0.5); }); /***/ }), /* 211 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(arrays) { var n = arrays.length, m, i = -1, j = 0, merged, array; while (++i < n) j += arrays[i].length; merged = new Array(j); while (--n >= 0) { array = arrays[n]; m = array.length; while (--m >= 0) { merged[--j] = array[m]; } } return merged; }); /***/ }), /* 212 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(array, indexes) { var i = indexes.length, permutes = new Array(i); while (i--) permutes[i] = array[indexes[i]]; return permutes; }); /***/ }), /* 213 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ascending__ = __webpack_require__(11); /* harmony default export */ __webpack_exports__["a"] = (function(values, compare) { if (!(n = values.length)) return; var n, i = 0, j = 0, xi, xj = values[j]; if (compare == null) compare = __WEBPACK_IMPORTED_MODULE_0__ascending__["a" /* default */]; while (++i < n) { if (compare(xi = values[i], xj) < 0 || compare(xj, xj) !== 0) { xj = xi, j = i; } } if (compare(xj, xj) === 0) return j; }); /***/ }), /* 214 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(array, i0, i1) { var m = (i1 == null ? array.length : i1) - (i0 = i0 == null ? 0 : +i0), t, i; while (m) { i = Math.random() * m-- | 0; t = array[m + i0]; array[m + i0] = array[i + i0]; array[i + i0] = t; } return array; }); /***/ }), /* 215 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(values, valueof) { var n = values.length, i = -1, value, sum = 0; if (valueof == null) { while (++i < n) { if (value = +values[i]) sum += value; // Note: zero and null are equivalent. } } else { while (++i < n) { if (value = +valueof(values[i], i, values)) sum += value; } } return sum; }); /***/ }), /* 216 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__transpose__ = __webpack_require__(85); /* harmony default export */ __webpack_exports__["a"] = (function() { return Object(__WEBPACK_IMPORTED_MODULE_0__transpose__["a" /* default */])(arguments); }); /***/ }), /* 217 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return milliseconds; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); var millisecond = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function() { // noop }, function(date, step) { date.setTime(+date + step); }, function(start, end) { return end - start; }); // An optimized implementation for this simple case. millisecond.every = function(k) { k = Math.floor(k); if (!isFinite(k) || !(k > 0)) return null; if (!(k > 1)) return millisecond; return Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setTime(Math.floor(date / k) * k); }, function(date, step) { date.setTime(+date + step * k); }, function(start, end) { return (end - start) / k; }); }; /* harmony default export */ __webpack_exports__["a"] = (millisecond); var milliseconds = millisecond.range; /***/ }), /* 218 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return seconds; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); var second = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setTime(Math.floor(date / __WEBPACK_IMPORTED_MODULE_1__duration__["d" /* durationSecond */]) * __WEBPACK_IMPORTED_MODULE_1__duration__["d" /* durationSecond */]); }, function(date, step) { date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__["d" /* durationSecond */]); }, function(start, end) { return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__["d" /* durationSecond */]; }, function(date) { return date.getUTCSeconds(); }); /* harmony default export */ __webpack_exports__["a"] = (second); var seconds = second.range; /***/ }), /* 219 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return minutes; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); var minute = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setTime(Math.floor(date / __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */]) * __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */]); }, function(date, step) { date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */]); }, function(start, end) { return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */]; }, function(date) { return date.getMinutes(); }); /* harmony default export */ __webpack_exports__["a"] = (minute); var minutes = minute.range; /***/ }), /* 220 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return hours; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); var hour = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { var offset = date.getTimezoneOffset() * __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */] % __WEBPACK_IMPORTED_MODULE_1__duration__["b" /* durationHour */]; if (offset < 0) offset += __WEBPACK_IMPORTED_MODULE_1__duration__["b" /* durationHour */]; date.setTime(Math.floor((+date - offset) / __WEBPACK_IMPORTED_MODULE_1__duration__["b" /* durationHour */]) * __WEBPACK_IMPORTED_MODULE_1__duration__["b" /* durationHour */] + offset); }, function(date, step) { date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__["b" /* durationHour */]); }, function(start, end) { return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__["b" /* durationHour */]; }, function(date) { return date.getHours(); }); /* harmony default export */ __webpack_exports__["a"] = (hour); var hours = hour.range; /***/ }), /* 221 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return days; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); var day = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setHours(0, 0, 0, 0); }, function(date, step) { date.setDate(date.getDate() + step); }, function(start, end) { return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */]) / __WEBPACK_IMPORTED_MODULE_1__duration__["a" /* durationDay */]; }, function(date) { return date.getDate() - 1; }); /* harmony default export */ __webpack_exports__["b"] = (day); var days = day.range; /***/ }), /* 222 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return sunday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return monday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return tuesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return wednesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return thursday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return friday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return saturday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return sundays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return mondays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return tuesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return wednesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return thursdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return fridays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return saturdays; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); function weekday(i) { return Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setDate(date.getDate() + step * 7); }, function(start, end) { return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */]) / __WEBPACK_IMPORTED_MODULE_1__duration__["e" /* durationWeek */]; }); } var sunday = weekday(0); var monday = weekday(1); var tuesday = weekday(2); var wednesday = weekday(3); var thursday = weekday(4); var friday = weekday(5); var saturday = weekday(6); var sundays = sunday.range; var mondays = monday.range; var tuesdays = tuesday.range; var wednesdays = wednesday.range; var thursdays = thursday.range; var fridays = friday.range; var saturdays = saturday.range; /***/ }), /* 223 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return months; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); var month = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setDate(1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setMonth(date.getMonth() + step); }, function(start, end) { return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12; }, function(date) { return date.getMonth(); }); /* harmony default export */ __webpack_exports__["a"] = (month); var months = month.range; /***/ }), /* 224 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return years; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); var year = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setMonth(0, 1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setFullYear(date.getFullYear() + step); }, function(start, end) { return end.getFullYear() - start.getFullYear(); }, function(date) { return date.getFullYear(); }); // An optimized implementation for this simple case. year.every = function(k) { return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setFullYear(Math.floor(date.getFullYear() / k) * k); date.setMonth(0, 1); date.setHours(0, 0, 0, 0); }, function(date, step) { date.setFullYear(date.getFullYear() + step * k); }); }; /* harmony default export */ __webpack_exports__["a"] = (year); var years = year.range; /***/ }), /* 225 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return utcMinutes; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); var utcMinute = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setUTCSeconds(0, 0); }, function(date, step) { date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */]); }, function(start, end) { return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__["c" /* durationMinute */]; }, function(date) { return date.getUTCMinutes(); }); /* harmony default export */ __webpack_exports__["a"] = (utcMinute); var utcMinutes = utcMinute.range; /***/ }), /* 226 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return utcHours; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); var utcHour = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setUTCMinutes(0, 0, 0); }, function(date, step) { date.setTime(+date + step * __WEBPACK_IMPORTED_MODULE_1__duration__["b" /* durationHour */]); }, function(start, end) { return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__["b" /* durationHour */]; }, function(date) { return date.getUTCHours(); }); /* harmony default export */ __webpack_exports__["a"] = (utcHour); var utcHours = utcHour.range; /***/ }), /* 227 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return utcDays; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); var utcDay = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCDate(date.getUTCDate() + step); }, function(start, end) { return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__["a" /* durationDay */]; }, function(date) { return date.getUTCDate() - 1; }); /* harmony default export */ __webpack_exports__["a"] = (utcDay); var utcDays = utcDay.range; /***/ }), /* 228 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return utcSunday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return utcMonday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return utcTuesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return utcWednesday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return utcThursday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return utcFriday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return utcSaturday; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return utcSundays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return utcMondays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return utcTuesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return utcWednesdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return utcThursdays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return utcFridays; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return utcSaturdays; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(5); function utcWeekday(i) { return Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCDate(date.getUTCDate() + step * 7); }, function(start, end) { return (end - start) / __WEBPACK_IMPORTED_MODULE_1__duration__["e" /* durationWeek */]; }); } var utcSunday = utcWeekday(0); var utcMonday = utcWeekday(1); var utcTuesday = utcWeekday(2); var utcWednesday = utcWeekday(3); var utcThursday = utcWeekday(4); var utcFriday = utcWeekday(5); var utcSaturday = utcWeekday(6); var utcSundays = utcSunday.range; var utcMondays = utcMonday.range; var utcTuesdays = utcTuesday.range; var utcWednesdays = utcWednesday.range; var utcThursdays = utcThursday.range; var utcFridays = utcFriday.range; var utcSaturdays = utcSaturday.range; /***/ }), /* 229 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return utcMonths; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); var utcMonth = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setUTCDate(1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCMonth(date.getUTCMonth() + step); }, function(start, end) { return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12; }, function(date) { return date.getUTCMonth(); }); /* harmony default export */ __webpack_exports__["a"] = (utcMonth); var utcMonths = utcMonth.range; /***/ }), /* 230 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return utcYears; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(0); var utcYear = Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCFullYear(date.getUTCFullYear() + step); }, function(start, end) { return end.getUTCFullYear() - start.getUTCFullYear(); }, function(date) { return date.getUTCFullYear(); }); // An optimized implementation for this simple case. utcYear.every = function(k) { return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(__WEBPACK_IMPORTED_MODULE_0__interval__["a" /* default */])(function(date) { date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k); date.setUTCMonth(0, 1); date.setUTCHours(0, 0, 0, 0); }, function(date, step) { date.setUTCFullYear(date.getUTCFullYear() + step * k); }); }; /* harmony default export */ __webpack_exports__["a"] = (utcYear); var utcYears = utcYear.range; /***/ }), /* 231 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isoFormat__ = __webpack_require__(87); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__defaultLocale__ = __webpack_require__(44); function parseIsoNative(string) { var date = new Date(string); return isNaN(date) ? null : date; } var parseIso = +new Date("2000-01-01T00:00:00.000Z") ? parseIsoNative : Object(__WEBPACK_IMPORTED_MODULE_1__defaultLocale__["e" /* utcParse */])(__WEBPACK_IMPORTED_MODULE_0__isoFormat__["b" /* isoSpecifier */]); /* harmony default export */ __webpack_exports__["a"] = (parseIso); /***/ }), /* 232 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_band__ = __webpack_require__(233); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleBand", function() { return __WEBPACK_IMPORTED_MODULE_0__src_band__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scalePoint", function() { return __WEBPACK_IMPORTED_MODULE_0__src_band__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_identity__ = __webpack_require__(239); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleIdentity", function() { return __WEBPACK_IMPORTED_MODULE_1__src_identity__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_linear__ = __webpack_require__(14); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleLinear", function() { return __WEBPACK_IMPORTED_MODULE_2__src_linear__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_log__ = __webpack_require__(241); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleLog", function() { return __WEBPACK_IMPORTED_MODULE_3__src_log__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_ordinal__ = __webpack_require__(88); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleOrdinal", function() { return __WEBPACK_IMPORTED_MODULE_4__src_ordinal__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleImplicit", function() { return __WEBPACK_IMPORTED_MODULE_4__src_ordinal__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_pow__ = __webpack_require__(242); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scalePow", function() { return __WEBPACK_IMPORTED_MODULE_5__src_pow__["a"]; }); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleSqrt", function() { return __WEBPACK_IMPORTED_MODULE_5__src_pow__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__src_quantile__ = __webpack_require__(243); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleQuantile", function() { return __WEBPACK_IMPORTED_MODULE_6__src_quantile__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__src_quantize__ = __webpack_require__(244); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleQuantize", function() { return __WEBPACK_IMPORTED_MODULE_7__src_quantize__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__src_threshold__ = __webpack_require__(245); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleThreshold", function() { return __WEBPACK_IMPORTED_MODULE_8__src_threshold__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__src_time__ = __webpack_require__(91); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleTime", function() { return __WEBPACK_IMPORTED_MODULE_9__src_time__["b"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__src_utcTime__ = __webpack_require__(246); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleUtc", function() { return __WEBPACK_IMPORTED_MODULE_10__src_utcTime__["a"]; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__src_sequential__ = __webpack_require__(247); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "scaleSequential", function() { return __WEBPACK_IMPORTED_MODULE_11__src_sequential__["a"]; }); /***/ }), /* 233 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = band; /* harmony export (immutable) */ __webpack_exports__["b"] = point; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ordinal__ = __webpack_require__(88); function band() { var scale = Object(__WEBPACK_IMPORTED_MODULE_1__ordinal__["a" /* default */])().unknown(undefined), domain = scale.domain, ordinalRange = scale.range, range = [0, 1], step, bandwidth, round = false, paddingInner = 0, paddingOuter = 0, align = 0.5; delete scale.unknown; function rescale() { var n = domain().length, reverse = range[1] < range[0], start = range[reverse - 0], stop = range[1 - reverse]; step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2); if (round) step = Math.floor(step); start += (stop - start - step * (n - paddingInner)) * align; bandwidth = step * (1 - paddingInner); if (round) start = Math.round(start), bandwidth = Math.round(bandwidth); var values = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["range"])(n).map(function(i) { return start + step * i; }); return ordinalRange(reverse ? values.reverse() : values); } scale.domain = function(_) { return arguments.length ? (domain(_), rescale()) : domain(); }; scale.range = function(_) { return arguments.length ? (range = [+_[0], +_[1]], rescale()) : range.slice(); }; scale.rangeRound = function(_) { return range = [+_[0], +_[1]], round = true, rescale(); }; scale.bandwidth = function() { return bandwidth; }; scale.step = function() { return step; }; scale.round = function(_) { return arguments.length ? (round = !!_, rescale()) : round; }; scale.padding = function(_) { return arguments.length ? (paddingInner = paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; }; scale.paddingInner = function(_) { return arguments.length ? (paddingInner = Math.max(0, Math.min(1, _)), rescale()) : paddingInner; }; scale.paddingOuter = function(_) { return arguments.length ? (paddingOuter = Math.max(0, Math.min(1, _)), rescale()) : paddingOuter; }; scale.align = function(_) { return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align; }; scale.copy = function() { return band() .domain(domain()) .range(range) .round(round) .paddingInner(paddingInner) .paddingOuter(paddingOuter) .align(align); }; return rescale(); } function pointish(scale) { var copy = scale.copy; scale.padding = scale.paddingOuter; delete scale.paddingInner; delete scale.paddingOuter; scale.copy = function() { return pointish(copy()); }; return scale; } function point() { return pointish(band().paddingInner(1)); } /***/ }), /* 234 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__map__ = __webpack_require__(45); /* harmony default export */ __webpack_exports__["a"] = (function() { var keys = [], sortKeys = [], sortValues, rollup, nest; function apply(array, depth, createResult, setResult) { if (depth >= keys.length) { if (sortValues != null) array.sort(sortValues); return rollup != null ? rollup(array) : array; } var i = -1, n = array.length, key = keys[depth++], keyValue, value, valuesByKey = Object(__WEBPACK_IMPORTED_MODULE_0__map__["a" /* default */])(), values, result = createResult(); while (++i < n) { if (values = valuesByKey.get(keyValue = key(value = array[i]) + "")) { values.push(value); } else { valuesByKey.set(keyValue, [value]); } } valuesByKey.each(function(values, key) { setResult(result, key, apply(values, depth, createResult, setResult)); }); return result; } function entries(map, depth) { if (++depth > keys.length) return map; var array, sortKey = sortKeys[depth - 1]; if (rollup != null && depth >= keys.length) array = map.entries(); else array = [], map.each(function(v, k) { array.push({key: k, values: entries(v, depth)}); }); return sortKey != null ? array.sort(function(a, b) { return sortKey(a.key, b.key); }) : array; } return nest = { object: function(array) { return apply(array, 0, createObject, setObject); }, map: function(array) { return apply(array, 0, createMap, setMap); }, entries: function(array) { return entries(apply(array, 0, createMap, setMap), 0); }, key: function(d) { keys.push(d); return nest; }, sortKeys: function(order) { sortKeys[keys.length - 1] = order; return nest; }, sortValues: function(order) { sortValues = order; return nest; }, rollup: function(f) { rollup = f; return nest; } }; }); function createObject() { return {}; } function setObject(object, key, value) { object[key] = value; } function createMap() { return Object(__WEBPACK_IMPORTED_MODULE_0__map__["a" /* default */])(); } function setMap(map, key, value) { map.set(key, value); } /***/ }), /* 235 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__map__ = __webpack_require__(45); function Set() {} var proto = __WEBPACK_IMPORTED_MODULE_0__map__["a" /* default */].prototype; Set.prototype = set.prototype = { constructor: Set, has: proto.has, add: function(value) { value += ""; this[__WEBPACK_IMPORTED_MODULE_0__map__["b" /* prefix */] + value] = value; return this; }, remove: proto.remove, clear: proto.clear, values: proto.keys, size: proto.size, empty: proto.empty, each: proto.each }; function set(object, f) { var set = new Set; // Copy constructor. if (object instanceof Set) object.each(function(value) { set.add(value); }); // Otherwise, assume it’s an array. else if (object) { var i = -1, n = object.length; if (f == null) while (++i < n) set.add(object[i]); else while (++i < n) set.add(f(object[i], i, object)); } return set; } /* harmony default export */ __webpack_exports__["a"] = (set); /***/ }), /* 236 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(map) { var keys = []; for (var key in map) keys.push(key); return keys; }); /***/ }), /* 237 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(map) { var values = []; for (var key in map) values.push(map[key]); return values; }); /***/ }), /* 238 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(map) { var entries = []; for (var key in map) entries.push({key: key, value: map[key]}); return entries; }); /***/ }), /* 239 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = identity; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__array__ = __webpack_require__(8); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__linear__ = __webpack_require__(14); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__number__ = __webpack_require__(89); function identity() { var domain = [0, 1]; function scale(x) { return +x; } scale.invert = scale; scale.domain = scale.range = function(_) { return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_0__array__["a" /* map */].call(_, __WEBPACK_IMPORTED_MODULE_2__number__["a" /* default */]), scale) : domain.slice(); }; scale.copy = function() { return identity().domain(domain); }; return Object(__WEBPACK_IMPORTED_MODULE_1__linear__["b" /* linearish */])(scale); } /***/ }), /* 240 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(29); /* harmony default export */ __webpack_exports__["a"] = (function(domain, count, specifier) { var start = domain[0], stop = domain[domain.length - 1], step = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["tickStep"])(start, stop, count == null ? 10 : count), precision; specifier = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__["formatSpecifier"])(specifier == null ? ",f" : specifier); switch (specifier.type) { case "s": { var value = Math.max(Math.abs(start), Math.abs(stop)); if (specifier.precision == null && !isNaN(precision = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__["precisionPrefix"])(step, value))) specifier.precision = precision; return Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__["formatPrefix"])(specifier, value); } case "": case "e": case "g": case "p": case "r": { if (specifier.precision == null && !isNaN(precision = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__["precisionRound"])(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e"); break; } case "f": case "%": { if (specifier.precision == null && !isNaN(precision = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__["precisionFixed"])(step))) specifier.precision = precision - (specifier.type === "%") * 2; break; } } return Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__["format"])(specifier); }); /***/ }), /* 241 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = log; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(29); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(46); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nice__ = __webpack_require__(90); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__continuous__ = __webpack_require__(24); function deinterpolate(a, b) { return (b = Math.log(b / a)) ? function(x) { return Math.log(x / a) / b; } : Object(__WEBPACK_IMPORTED_MODULE_2__constant__["a" /* default */])(b); } function reinterpolate(a, b) { return a < 0 ? function(t) { return -Math.pow(-b, t) * Math.pow(-a, 1 - t); } : function(t) { return Math.pow(b, t) * Math.pow(a, 1 - t); }; } function pow10(x) { return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x; } function powp(base) { return base === 10 ? pow10 : base === Math.E ? Math.exp : function(x) { return Math.pow(base, x); }; } function logp(base) { return base === Math.E ? Math.log : base === 10 && Math.log10 || base === 2 && Math.log2 || (base = Math.log(base), function(x) { return Math.log(x) / base; }); } function reflect(f) { return function(x) { return -f(-x); }; } function log() { var scale = Object(__WEBPACK_IMPORTED_MODULE_4__continuous__["b" /* default */])(deinterpolate, reinterpolate).domain([1, 10]), domain = scale.domain, base = 10, logs = logp(10), pows = powp(10); function rescale() { logs = logp(base), pows = powp(base); if (domain()[0] < 0) logs = reflect(logs), pows = reflect(pows); return scale; } scale.base = function(_) { return arguments.length ? (base = +_, rescale()) : base; }; scale.domain = function(_) { return arguments.length ? (domain(_), rescale()) : domain(); }; scale.ticks = function(count) { var d = domain(), u = d[0], v = d[d.length - 1], r; if (r = v < u) i = u, u = v, v = i; var i = logs(u), j = logs(v), p, k, t, n = count == null ? 10 : +count, z = []; if (!(base % 1) && j - i < n) { i = Math.round(i) - 1, j = Math.round(j) + 1; if (u > 0) for (; i < j; ++i) { for (k = 1, p = pows(i); k < base; ++k) { t = p * k; if (t < u) continue; if (t > v) break; z.push(t); } } else for (; i < j; ++i) { for (k = base - 1, p = pows(i); k >= 1; --k) { t = p * k; if (t < u) continue; if (t > v) break; z.push(t); } } } else { z = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["ticks"])(i, j, Math.min(j - i, n)).map(pows); } return r ? z.reverse() : z; }; scale.tickFormat = function(count, specifier) { if (specifier == null) specifier = base === 10 ? ".0e" : ","; if (typeof specifier !== "function") specifier = Object(__WEBPACK_IMPORTED_MODULE_1_d3_format__["format"])(specifier); if (count === Infinity) return specifier; if (count == null) count = 10; var k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate? return function(d) { var i = d / pows(Math.round(logs(d))); if (i * base < base - 0.5) i *= base; return i <= k ? specifier(d) : ""; }; }; scale.nice = function() { return domain(Object(__WEBPACK_IMPORTED_MODULE_3__nice__["a" /* default */])(domain(), { floor: function(x) { return pows(Math.floor(logs(x))); }, ceil: function(x) { return pows(Math.ceil(logs(x))); } })); }; scale.copy = function() { return Object(__WEBPACK_IMPORTED_MODULE_4__continuous__["a" /* copy */])(scale, log().base(base)); }; return scale; } /***/ }), /* 242 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = pow; /* harmony export (immutable) */ __webpack_exports__["b"] = sqrt; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constant__ = __webpack_require__(46); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__linear__ = __webpack_require__(14); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__continuous__ = __webpack_require__(24); function raise(x, exponent) { return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); } function pow() { var exponent = 1, scale = Object(__WEBPACK_IMPORTED_MODULE_2__continuous__["b" /* default */])(deinterpolate, reinterpolate), domain = scale.domain; function deinterpolate(a, b) { return (b = raise(b, exponent) - (a = raise(a, exponent))) ? function(x) { return (raise(x, exponent) - a) / b; } : Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(b); } function reinterpolate(a, b) { b = raise(b, exponent) - (a = raise(a, exponent)); return function(t) { return raise(a + b * t, 1 / exponent); }; } scale.exponent = function(_) { return arguments.length ? (exponent = +_, domain(domain())) : exponent; }; scale.copy = function() { return Object(__WEBPACK_IMPORTED_MODULE_2__continuous__["a" /* copy */])(scale, pow().exponent(exponent)); }; return Object(__WEBPACK_IMPORTED_MODULE_1__linear__["b" /* linearish */])(scale); } function sqrt() { return pow().exponent(0.5); } /***/ }), /* 243 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = quantile; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(8); function quantile() { var domain = [], range = [], thresholds = []; function rescale() { var i = 0, n = Math.max(1, range.length); thresholds = new Array(n - 1); while (++i < n) thresholds[i - 1] = Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["quantile"])(domain, i / n); return scale; } function scale(x) { if (!isNaN(x = +x)) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["bisect"])(thresholds, x)]; } scale.invertExtent = function(y) { var i = range.indexOf(y); return i < 0 ? [NaN, NaN] : [ i > 0 ? thresholds[i - 1] : domain[0], i < thresholds.length ? thresholds[i] : domain[domain.length - 1] ]; }; scale.domain = function(_) { if (!arguments.length) return domain.slice(); domain = []; for (var i = 0, n = _.length, d; i < n; ++i) if (d = _[i], d != null && !isNaN(d = +d)) domain.push(d); domain.sort(__WEBPACK_IMPORTED_MODULE_0_d3_array__["ascending"]); return rescale(); }; scale.range = function(_) { return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__["b" /* slice */].call(_), rescale()) : range.slice(); }; scale.quantiles = function() { return thresholds.slice(); }; scale.copy = function() { return quantile() .domain(domain) .range(range); }; return scale; } /***/ }), /* 244 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = quantize; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(8); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__linear__ = __webpack_require__(14); function quantize() { var x0 = 0, x1 = 1, n = 1, domain = [0.5], range = [0, 1]; function scale(x) { if (x <= x) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["bisect"])(domain, x, 0, n)]; } function rescale() { var i = -1; domain = new Array(n); while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1); return scale; } scale.domain = function(_) { return arguments.length ? (x0 = +_[0], x1 = +_[1], rescale()) : [x0, x1]; }; scale.range = function(_) { return arguments.length ? (n = (range = __WEBPACK_IMPORTED_MODULE_1__array__["b" /* slice */].call(_)).length - 1, rescale()) : range.slice(); }; scale.invertExtent = function(y) { var i = range.indexOf(y); return i < 0 ? [NaN, NaN] : i < 1 ? [x0, domain[0]] : i >= n ? [domain[n - 1], x1] : [domain[i - 1], domain[i]]; }; scale.copy = function() { return quantize() .domain([x0, x1]) .range(range); }; return Object(__WEBPACK_IMPORTED_MODULE_2__linear__["b" /* linearish */])(scale); } /***/ }), /* 245 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = threshold; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(4); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(8); function threshold() { var domain = [0.5], range = [0, 1], n = 1; function scale(x) { if (x <= x) return range[Object(__WEBPACK_IMPORTED_MODULE_0_d3_array__["bisect"])(domain, x, 0, n)]; } scale.domain = function(_) { return arguments.length ? (domain = __WEBPACK_IMPORTED_MODULE_1__array__["b" /* slice */].call(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice(); }; scale.range = function(_) { return arguments.length ? (range = __WEBPACK_IMPORTED_MODULE_1__array__["b" /* slice */].call(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice(); }; scale.invertExtent = function(y) { var i = range.indexOf(y); return [domain[i - 1], domain[i]]; }; scale.copy = function() { return threshold() .domain(domain) .range(range); }; return scale; } /***/ }), /* 246 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__time__ = __webpack_require__(91); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_time_format__ = __webpack_require__(51); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_time__ = __webpack_require__(42); /* harmony default export */ __webpack_exports__["a"] = (function() { return Object(__WEBPACK_IMPORTED_MODULE_0__time__["a" /* calendar */])(__WEBPACK_IMPORTED_MODULE_2_d3_time__["utcYear"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["utcMonth"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["utcWeek"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["utcDay"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["utcHour"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["utcMinute"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["utcSecond"], __WEBPACK_IMPORTED_MODULE_2_d3_time__["utcMillisecond"], __WEBPACK_IMPORTED_MODULE_1_d3_time_format__["utcFormat"]).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]); }); /***/ }), /* 247 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = sequential; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__linear__ = __webpack_require__(14); function sequential(interpolator) { var x0 = 0, x1 = 1, clamp = false; function scale(x) { var t = (x - x0) / (x1 - x0); return interpolator(clamp ? Math.max(0, Math.min(1, t)) : t); } scale.domain = function(_) { return arguments.length ? (x0 = +_[0], x1 = +_[1], scale) : [x0, x1]; }; scale.clamp = function(_) { return arguments.length ? (clamp = !!_, scale) : clamp; }; scale.interpolator = function(_) { return arguments.length ? (interpolator = _, scale) : interpolator; }; scale.copy = function() { return sequential(interpolator).domain([x0, x1]).clamp(clamp); }; return Object(__WEBPACK_IMPORTED_MODULE_0__linear__["b" /* linearish */])(scale); } /***/ }), /* 248 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_path__ = __webpack_require__(15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constant__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__math__ = __webpack_require__(16); function arcInnerRadius(d) { return d.innerRadius; } function arcOuterRadius(d) { return d.outerRadius; } function arcStartAngle(d) { return d.startAngle; } function arcEndAngle(d) { return d.endAngle; } function arcPadAngle(d) { return d && d.padAngle; // Note: optional! } function intersect(x0, y0, x1, y1, x2, y2, x3, y3) { var x10 = x1 - x0, y10 = y1 - y0, x32 = x3 - x2, y32 = y3 - y2, t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / (y32 * x10 - x32 * y10); return [x0 + t * x10, y0 + t * y10]; } // Compute perpendicular offset line of length rc. // http://mathworld.wolfram.com/Circle-LineIntersection.html function cornerTangents(x0, y0, x1, y1, r1, rc, cw) { var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / Object(__WEBPACK_IMPORTED_MODULE_2__math__["l" /* sqrt */])(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * Object(__WEBPACK_IMPORTED_MODULE_2__math__["l" /* sqrt */])(Object(__WEBPACK_IMPORTED_MODULE_2__math__["h" /* max */])(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00; // Pick the closer of the two intersection points. // TODO Is there a faster way to determine which intersection to use? if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1; return { cx: cx0, cy: cy0, x01: -ox, y01: -oy, x11: cx0 * (r1 / r - 1), y11: cy0 * (r1 / r - 1) }; } /* harmony default export */ __webpack_exports__["a"] = (function() { var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context = null; function arc() { var buffer, r, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - __WEBPACK_IMPORTED_MODULE_2__math__["g" /* halfPi */], a1 = endAngle.apply(this, arguments) - __WEBPACK_IMPORTED_MODULE_2__math__["g" /* halfPi */], da = Object(__WEBPACK_IMPORTED_MODULE_2__math__["a" /* abs */])(a1 - a0), cw = a1 > a0; if (!context) context = buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__["a" /* path */])(); // Ensure that the outer radius is always larger than the inner radius. if (r1 < r0) r = r1, r1 = r0, r0 = r; // Is it a point? if (!(r1 > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */])) context.moveTo(0, 0); // Or is it a circle or annulus? else if (da > __WEBPACK_IMPORTED_MODULE_2__math__["m" /* tau */] - __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) { context.moveTo(r1 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["e" /* cos */])(a0), r1 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(a0)); context.arc(0, 0, r1, a0, a1, !cw); if (r0 > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) { context.moveTo(r0 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["e" /* cos */])(a1), r0 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(a1)); context.arc(0, 0, r0, a1, a0, cw); } } // Or is it a circular or annular sector? else { var a01 = a0, a11 = a1, a00 = a0, a10 = a1, da0 = da, da1 = da, ap = padAngle.apply(this, arguments) / 2, rp = (ap > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) && (padRadius ? +padRadius.apply(this, arguments) : Object(__WEBPACK_IMPORTED_MODULE_2__math__["l" /* sqrt */])(r0 * r0 + r1 * r1)), rc = Object(__WEBPACK_IMPORTED_MODULE_2__math__["i" /* min */])(Object(__WEBPACK_IMPORTED_MODULE_2__math__["a" /* abs */])(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), rc0 = rc, rc1 = rc, t0, t1; // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0. if (rp > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) { var p0 = Object(__WEBPACK_IMPORTED_MODULE_2__math__["c" /* asin */])(rp / r0 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(ap)), p1 = Object(__WEBPACK_IMPORTED_MODULE_2__math__["c" /* asin */])(rp / r1 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(ap)); if ((da0 -= p0 * 2) > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0; else da0 = 0, a00 = a10 = (a0 + a1) / 2; if ((da1 -= p1 * 2) > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1; else da1 = 0, a01 = a11 = (a0 + a1) / 2; } var x01 = r1 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["e" /* cos */])(a01), y01 = r1 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(a01), x10 = r0 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["e" /* cos */])(a10), y10 = r0 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(a10); // Apply rounded corners? if (rc > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) { var x11 = r1 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["e" /* cos */])(a11), y11 = r1 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(a11), x00 = r0 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["e" /* cos */])(a00), y00 = r0 * Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(a00); // Restrict the corner radius according to the sector angle. if (da < __WEBPACK_IMPORTED_MODULE_2__math__["j" /* pi */]) { var oc = da0 > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */] ? intersect(x01, y01, x00, y00, x11, y11, x10, y10) : [x10, y10], ax = x01 - oc[0], ay = y01 - oc[1], bx = x11 - oc[0], by = y11 - oc[1], kc = 1 / Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(Object(__WEBPACK_IMPORTED_MODULE_2__math__["b" /* acos */])((ax * bx + ay * by) / (Object(__WEBPACK_IMPORTED_MODULE_2__math__["l" /* sqrt */])(ax * ax + ay * ay) * Object(__WEBPACK_IMPORTED_MODULE_2__math__["l" /* sqrt */])(bx * bx + by * by))) / 2), lc = Object(__WEBPACK_IMPORTED_MODULE_2__math__["l" /* sqrt */])(oc[0] * oc[0] + oc[1] * oc[1]); rc0 = Object(__WEBPACK_IMPORTED_MODULE_2__math__["i" /* min */])(rc, (r0 - lc) / (kc - 1)); rc1 = Object(__WEBPACK_IMPORTED_MODULE_2__math__["i" /* min */])(rc, (r1 - lc) / (kc + 1)); } } // Is the sector collapsed to a line? if (!(da1 > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */])) context.moveTo(x01, y01); // Does the sector’s outer ring have rounded corners? else if (rc1 > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) { t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw); t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw); context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01); // Have the corners merged? if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t0.y01, t0.x01), Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t1.y01, t1.x01), !cw); // Otherwise, draw the two corners and the ring. else { context.arc(t0.cx, t0.cy, rc1, Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t0.y01, t0.x01), Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t0.y11, t0.x11), !cw); context.arc(0, 0, r1, Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t0.cy + t0.y11, t0.cx + t0.x11), Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t1.cy + t1.y11, t1.cx + t1.x11), !cw); context.arc(t1.cx, t1.cy, rc1, Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t1.y11, t1.x11), Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t1.y01, t1.x01), !cw); } } // Or is the outer ring just a circular arc? else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw); // Is there no inner ring, and it’s a circular sector? // Or perhaps it’s an annular sector collapsed due to padding? if (!(r0 > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) || !(da0 > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */])) context.lineTo(x10, y10); // Does the sector’s inner ring (or point) have rounded corners? else if (rc0 > __WEBPACK_IMPORTED_MODULE_2__math__["f" /* epsilon */]) { t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw); t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw); context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01); // Have the corners merged? if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t0.y01, t0.x01), Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t1.y01, t1.x01), !cw); // Otherwise, draw the two corners and the ring. else { context.arc(t0.cx, t0.cy, rc0, Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t0.y01, t0.x01), Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t0.y11, t0.x11), !cw); context.arc(0, 0, r0, Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t0.cy + t0.y11, t0.cx + t0.x11), Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t1.cy + t1.y11, t1.cx + t1.x11), cw); context.arc(t1.cx, t1.cy, rc0, Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t1.y11, t1.x11), Object(__WEBPACK_IMPORTED_MODULE_2__math__["d" /* atan2 */])(t1.y01, t1.x01), !cw); } } // Or is the inner ring just a circular arc? else context.arc(0, 0, r0, a10, a00, cw); } context.closePath(); if (buffer) return context = null, buffer + "" || null; } arc.centroid = function() { var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - __WEBPACK_IMPORTED_MODULE_2__math__["j" /* pi */] / 2; return [Object(__WEBPACK_IMPORTED_MODULE_2__math__["e" /* cos */])(a) * r, Object(__WEBPACK_IMPORTED_MODULE_2__math__["k" /* sin */])(a) * r]; }; arc.innerRadius = function(_) { return arguments.length ? (innerRadius = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), arc) : innerRadius; }; arc.outerRadius = function(_) { return arguments.length ? (outerRadius = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), arc) : outerRadius; }; arc.cornerRadius = function(_) { return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), arc) : cornerRadius; }; arc.padRadius = function(_) { return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), arc) : padRadius; }; arc.startAngle = function(_) { return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), arc) : startAngle; }; arc.endAngle = function(_) { return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), arc) : endAngle; }; arc.padAngle = function(_) { return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), arc) : padAngle; }; arc.context = function(_) { return arguments.length ? ((context = _ == null ? null : _), arc) : context; }; return arc; }); /***/ }), /* 249 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var pi = Math.PI, tau = 2 * pi, epsilon = 1e-6, tauEpsilon = tau - epsilon; function Path() { this._x0 = this._y0 = // start of current subpath this._x1 = this._y1 = null; // end of current subpath this._ = ""; } function path() { return new Path; } Path.prototype = path.prototype = { constructor: Path, moveTo: function(x, y) { this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y); }, closePath: function() { if (this._x1 !== null) { this._x1 = this._x0, this._y1 = this._y0; this._ += "Z"; } }, lineTo: function(x, y) { this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y); }, quadraticCurveTo: function(x1, y1, x, y) { this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y); }, bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y); }, arcTo: function(x1, y1, x2, y2, r) { x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r; var x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01; // Is the radius negative? Error. if (r < 0) throw new Error("negative radius: " + r); // Is this path empty? Move to (x1,y1). if (this._x1 === null) { this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1); } // Or, is (x1,y1) coincident with (x0,y0)? Do nothing. else if (!(l01_2 > epsilon)) {} // Or, are (x0,y0), (x1,y1) and (x2,y2) collinear? // Equivalently, is (x1,y1) coincident with (x2,y2)? // Or, is the radius zero? Line to (x1,y1). else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) { this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1); } // Otherwise, draw an arc! else { var x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21; // If the start tangent is not coincident with (x0,y0), line to. if (Math.abs(t01 - 1) > epsilon) { this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01); } this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21); } }, arc: function(x, y, r, a0, a1, ccw) { x = +x, y = +y, r = +r; var dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0; // Is the radius negative? Error. if (r < 0) throw new Error("negative radius: " + r); // Is this path empty? Move to (x0,y0). if (this._x1 === null) { this._ += "M" + x0 + "," + y0; } // Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0). else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) { this._ += "L" + x0 + "," + y0; } // Is this arc empty? We’re done. if (!r) return; // Does the angle go the wrong way? Flip the direction. if (da < 0) da = da % tau + tau; // Is this a complete circle? Draw two arcs to complete the circle. if (da > tauEpsilon) { this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0); } // Is this arc non-empty? Draw an arc! else if (da > epsilon) { this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1)); } }, rect: function(x, y, w, h) { this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z"; }, toString: function() { return this._; } }; /* harmony default export */ __webpack_exports__["a"] = (path); /***/ }), /* 250 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constant__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__descending__ = __webpack_require__(251); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__identity__ = __webpack_require__(252); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__math__ = __webpack_require__(16); /* harmony default export */ __webpack_exports__["a"] = (function() { var value = __WEBPACK_IMPORTED_MODULE_2__identity__["a" /* default */], sortValues = __WEBPACK_IMPORTED_MODULE_1__descending__["a" /* default */], sort = null, startAngle = Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(0), endAngle = Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_3__math__["m" /* tau */]), padAngle = Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(0); function pie(data) { var i, n = data.length, j, k, sum = 0, index = new Array(n), arcs = new Array(n), a0 = +startAngle.apply(this, arguments), da = Math.min(__WEBPACK_IMPORTED_MODULE_3__math__["m" /* tau */], Math.max(-__WEBPACK_IMPORTED_MODULE_3__math__["m" /* tau */], endAngle.apply(this, arguments) - a0)), a1, p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)), pa = p * (da < 0 ? -1 : 1), v; for (i = 0; i < n; ++i) { if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) { sum += v; } } // Optionally sort the arcs by previously-computed values or by data. if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); }); else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); }); // Compute the arcs! They are stored in the original data's order. for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) { j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = { data: data[j], index: i, value: v, startAngle: a0, endAngle: a1, padAngle: p }; } return arcs; } pie.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(+_), pie) : value; }; pie.sortValues = function(_) { return arguments.length ? (sortValues = _, sort = null, pie) : sortValues; }; pie.sort = function(_) { return arguments.length ? (sort = _, sortValues = null, pie) : sort; }; pie.startAngle = function(_) { return arguments.length ? (startAngle = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(+_), pie) : startAngle; }; pie.endAngle = function(_) { return arguments.length ? (endAngle = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(+_), pie) : endAngle; }; pie.padAngle = function(_) { return arguments.length ? (padAngle = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_0__constant__["a" /* default */])(+_), pie) : padAngle; }; return pie; }); /***/ }), /* 251 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; }); /***/ }), /* 252 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(d) { return d; }); /***/ }), /* 253 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__curve_radial__ = __webpack_require__(93); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__area__ = __webpack_require__(92); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lineRadial__ = __webpack_require__(94); /* harmony default export */ __webpack_exports__["a"] = (function() { var a = Object(__WEBPACK_IMPORTED_MODULE_1__area__["a" /* default */])().curve(__WEBPACK_IMPORTED_MODULE_0__curve_radial__["a" /* curveRadialLinear */]), c = a.curve, x0 = a.lineX0, x1 = a.lineX1, y0 = a.lineY0, y1 = a.lineY1; a.angle = a.x, delete a.x; a.startAngle = a.x0, delete a.x0; a.endAngle = a.x1, delete a.x1; a.radius = a.y, delete a.y; a.innerRadius = a.y0, delete a.y0; a.outerRadius = a.y1, delete a.y1; a.lineStartAngle = function() { return Object(__WEBPACK_IMPORTED_MODULE_2__lineRadial__["b" /* lineRadial */])(x0()); }, delete a.lineX0; a.lineEndAngle = function() { return Object(__WEBPACK_IMPORTED_MODULE_2__lineRadial__["b" /* lineRadial */])(x1()); }, delete a.lineX1; a.lineInnerRadius = function() { return Object(__WEBPACK_IMPORTED_MODULE_2__lineRadial__["b" /* lineRadial */])(y0()); }, delete a.lineY0; a.lineOuterRadius = function() { return Object(__WEBPACK_IMPORTED_MODULE_2__lineRadial__["b" /* lineRadial */])(y1()); }, delete a.lineY1; a.curve = function(_) { return arguments.length ? c(Object(__WEBPACK_IMPORTED_MODULE_0__curve_radial__["b" /* default */])(_)) : c()._curve; }; return a; }); /***/ }), /* 254 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = linkHorizontal; /* harmony export (immutable) */ __webpack_exports__["c"] = linkVertical; /* harmony export (immutable) */ __webpack_exports__["b"] = linkRadial; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_path__ = __webpack_require__(15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(96); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__point__ = __webpack_require__(48); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pointRadial__ = __webpack_require__(95); function linkSource(d) { return d.source; } function linkTarget(d) { return d.target; } function link(curve) { var source = linkSource, target = linkTarget, x = __WEBPACK_IMPORTED_MODULE_3__point__["a" /* x */], y = __WEBPACK_IMPORTED_MODULE_3__point__["b" /* y */], context = null; function link() { var buffer, argv = __WEBPACK_IMPORTED_MODULE_1__array__["a" /* slice */].call(arguments), s = source.apply(this, argv), t = target.apply(this, argv); if (!context) context = buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__["a" /* path */])(); curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv)); if (buffer) return context = null, buffer + "" || null; } link.source = function(_) { return arguments.length ? (source = _, link) : source; }; link.target = function(_) { return arguments.length ? (target = _, link) : target; }; link.x = function(_) { return arguments.length ? (x = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_2__constant__["a" /* default */])(+_), link) : x; }; link.y = function(_) { return arguments.length ? (y = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_2__constant__["a" /* default */])(+_), link) : y; }; link.context = function(_) { return arguments.length ? ((context = _ == null ? null : _), link) : context; }; return link; } function curveHorizontal(context, x0, y0, x1, y1) { context.moveTo(x0, y0); context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1); } function curveVertical(context, x0, y0, x1, y1) { context.moveTo(x0, y0); context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1); } function curveRadial(context, x0, y0, x1, y1) { var p0 = Object(__WEBPACK_IMPORTED_MODULE_4__pointRadial__["a" /* default */])(x0, y0), p1 = Object(__WEBPACK_IMPORTED_MODULE_4__pointRadial__["a" /* default */])(x0, y0 = (y0 + y1) / 2), p2 = Object(__WEBPACK_IMPORTED_MODULE_4__pointRadial__["a" /* default */])(x1, y0), p3 = Object(__WEBPACK_IMPORTED_MODULE_4__pointRadial__["a" /* default */])(x1, y1); context.moveTo(p0[0], p0[1]); context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]); } function linkHorizontal() { return link(curveHorizontal); } function linkVertical() { return link(curveVertical); } function linkRadial() { var l = link(curveRadial); l.angle = l.x, delete l.x; l.radius = l.y, delete l.y; return l; } /***/ }), /* 255 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return symbols; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_path__ = __webpack_require__(15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__symbol_circle__ = __webpack_require__(97); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__symbol_cross__ = __webpack_require__(98); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__symbol_diamond__ = __webpack_require__(99); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__symbol_star__ = __webpack_require__(100); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__symbol_square__ = __webpack_require__(101); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__symbol_triangle__ = __webpack_require__(102); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__symbol_wye__ = __webpack_require__(103); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__constant__ = __webpack_require__(10); var symbols = [ __WEBPACK_IMPORTED_MODULE_1__symbol_circle__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__symbol_cross__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__symbol_diamond__["a" /* default */], __WEBPACK_IMPORTED_MODULE_5__symbol_square__["a" /* default */], __WEBPACK_IMPORTED_MODULE_4__symbol_star__["a" /* default */], __WEBPACK_IMPORTED_MODULE_6__symbol_triangle__["a" /* default */], __WEBPACK_IMPORTED_MODULE_7__symbol_wye__["a" /* default */] ]; /* harmony default export */ __webpack_exports__["a"] = (function() { var type = Object(__WEBPACK_IMPORTED_MODULE_8__constant__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__symbol_circle__["a" /* default */]), size = Object(__WEBPACK_IMPORTED_MODULE_8__constant__["a" /* default */])(64), context = null; function symbol() { var buffer; if (!context) context = buffer = Object(__WEBPACK_IMPORTED_MODULE_0_d3_path__["a" /* path */])(); type.apply(this, arguments).draw(context, +size.apply(this, arguments)); if (buffer) return context = null, buffer + "" || null; } symbol.type = function(_) { return arguments.length ? (type = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_8__constant__["a" /* default */])(_), symbol) : type; }; symbol.size = function(_) { return arguments.length ? (size = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_8__constant__["a" /* default */])(+_), symbol) : size; }; symbol.context = function(_) { return arguments.length ? (context = _ == null ? null : _, symbol) : context; }; return symbol; }); /***/ }), /* 256 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(26); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__basis__ = __webpack_require__(27); function BasisClosed(context) { this._context = context; } BasisClosed.prototype = { areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__["a" /* default */], areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__["a" /* default */], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x2, this._y2); this._context.closePath(); break; } case 2: { this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3); this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3); this._context.closePath(); break; } case 3: { this.point(this._x2, this._y2); this.point(this._x3, this._y3); this.point(this._x4, this._y4); break; } } }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._x2 = x, this._y2 = y; break; case 1: this._point = 2; this._x3 = x, this._y3 = y; break; case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break; default: Object(__WEBPACK_IMPORTED_MODULE_1__basis__["c" /* point */])(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["a"] = (function(context) { return new BasisClosed(context); }); /***/ }), /* 257 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(27); function BasisOpen(context) { this._context = context; } BasisOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = NaN; this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break; case 3: this._point = 4; // proceed default: Object(__WEBPACK_IMPORTED_MODULE_0__basis__["c" /* point */])(this, x, y); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; } }; /* harmony default export */ __webpack_exports__["a"] = (function(context) { return new BasisOpen(context); }); /***/ }), /* 258 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__basis__ = __webpack_require__(27); function Bundle(context, beta) { this._basis = new __WEBPACK_IMPORTED_MODULE_0__basis__["a" /* Basis */](context); this._beta = beta; } Bundle.prototype = { lineStart: function() { this._x = []; this._y = []; this._basis.lineStart(); }, lineEnd: function() { var x = this._x, y = this._y, j = x.length - 1; if (j > 0) { var x0 = x[0], y0 = y[0], dx = x[j] - x0, dy = y[j] - y0, i = -1, t; while (++i <= j) { t = i / j; this._basis.point( this._beta * x[i] + (1 - this._beta) * (x0 + t * dx), this._beta * y[i] + (1 - this._beta) * (y0 + t * dy) ); } } this._x = this._y = null; this._basis.lineEnd(); }, point: function(x, y) { this._x.push(+x); this._y.push(+y); } }; /* harmony default export */ __webpack_exports__["a"] = ((function custom(beta) { function bundle(context) { return beta === 1 ? new __WEBPACK_IMPORTED_MODULE_0__basis__["a" /* Basis */](context) : new Bundle(context, beta); } bundle.beta = function(beta) { return custom(+beta); }; return bundle; })(0.85)); /***/ }), /* 259 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__cardinalClosed__ = __webpack_require__(104); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__noop__ = __webpack_require__(26); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__catmullRom__ = __webpack_require__(49); function CatmullRomClosed(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRomClosed.prototype = { areaStart: __WEBPACK_IMPORTED_MODULE_1__noop__["a" /* default */], areaEnd: __WEBPACK_IMPORTED_MODULE_1__noop__["a" /* default */], lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x3, this._y3); this._context.closePath(); break; } case 2: { this._context.lineTo(this._x3, this._y3); this._context.closePath(); break; } case 3: { this.point(this._x3, this._y3); this.point(this._x4, this._y4); this.point(this._x5, this._y5); break; } } }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; this._x3 = x, this._y3 = y; break; case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break; case 2: this._point = 3; this._x5 = x, this._y5 = y; break; default: Object(__WEBPACK_IMPORTED_MODULE_2__catmullRom__["b" /* point */])(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["a"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRomClosed(context, alpha) : new __WEBPACK_IMPORTED_MODULE_0__cardinalClosed__["a" /* CardinalClosed */](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /* 260 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__cardinalOpen__ = __webpack_require__(105); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__catmullRom__ = __webpack_require__(49); function CatmullRomOpen(context, alpha) { this._context = context; this._alpha = alpha; } CatmullRomOpen.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN; this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0; }, lineEnd: function() { if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; if (this._point) { var x23 = this._x2 - x, y23 = this._y2 - y; this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha)); } switch (this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break; case 3: this._point = 4; // proceed default: Object(__WEBPACK_IMPORTED_MODULE_1__catmullRom__["b" /* point */])(this, x, y); break; } this._l01_a = this._l12_a, this._l12_a = this._l23_a; this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a; this._x0 = this._x1, this._x1 = this._x2, this._x2 = x; this._y0 = this._y1, this._y1 = this._y2, this._y2 = y; } }; /* harmony default export */ __webpack_exports__["a"] = ((function custom(alpha) { function catmullRom(context) { return alpha ? new CatmullRomOpen(context, alpha) : new __WEBPACK_IMPORTED_MODULE_0__cardinalOpen__["a" /* CardinalOpen */](context, 0); } catmullRom.alpha = function(alpha) { return custom(+alpha); }; return catmullRom; })(0.5)); /***/ }), /* 261 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__noop__ = __webpack_require__(26); function LinearClosed(context) { this._context = context; } LinearClosed.prototype = { areaStart: __WEBPACK_IMPORTED_MODULE_0__noop__["a" /* default */], areaEnd: __WEBPACK_IMPORTED_MODULE_0__noop__["a" /* default */], lineStart: function() { this._point = 0; }, lineEnd: function() { if (this._point) this._context.closePath(); }, point: function(x, y) { x = +x, y = +y; if (this._point) this._context.lineTo(x, y); else this._point = 1, this._context.moveTo(x, y); } }; /* harmony default export */ __webpack_exports__["a"] = (function(context) { return new LinearClosed(context); }); /***/ }), /* 262 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["a"] = monotoneX; /* harmony export (immutable) */ __webpack_exports__["b"] = monotoneY; function sign(x) { return x < 0 ? -1 : 1; } // Calculate the slopes of the tangents (Hermite-type interpolation) based on // the following paper: Steffen, M. 1990. A Simple Method for Monotonic // Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO. // NOV(II), P. 443, 1990. function slope3(that, x2, y2) { var h0 = that._x1 - that._x0, h1 = x2 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1); return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0; } // Calculate a one-sided slope. function slope2(that, t) { var h = that._x1 - that._x0; return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t; } // According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations // "you can express cubic Hermite interpolation in terms of cubic Bézier curves // with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1". function point(that, t0, t1) { var x0 = that._x0, y0 = that._y0, x1 = that._x1, y1 = that._y1, dx = (x1 - x0) / 3; that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1); } function MonotoneX(context) { this._context = context; } MonotoneX.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN; this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x1, this._y1); break; case 3: point(this, this._t0, slope2(this, this._t0)); break; } if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); this._line = 1 - this._line; }, point: function(x, y) { var t1 = NaN; x = +x, y = +y; if (x === this._x1 && y === this._y1) return; // Ignore coincident points. switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; break; case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break; default: point(this, this._t0, t1 = slope3(this, x, y)); break; } this._x0 = this._x1, this._x1 = x; this._y0 = this._y1, this._y1 = y; this._t0 = t1; } } function MonotoneY(context) { this._context = new ReflectContext(context); } (MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) { MonotoneX.prototype.point.call(this, y, x); }; function ReflectContext(context) { this._context = context; } ReflectContext.prototype = { moveTo: function(x, y) { this._context.moveTo(y, x); }, closePath: function() { this._context.closePath(); }, lineTo: function(x, y) { this._context.lineTo(y, x); }, bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); } }; function monotoneX(context) { return new MonotoneX(context); } function monotoneY(context) { return new MonotoneY(context); } /***/ }), /* 263 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; function Natural(context) { this._context = context; } Natural.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = []; this._y = []; }, lineEnd: function() { var x = this._x, y = this._y, n = x.length; if (n) { this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]); if (n === 2) { this._context.lineTo(x[1], y[1]); } else { var px = controlPoints(x), py = controlPoints(y); for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) { this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]); } } } if (this._line || (this._line !== 0 && n === 1)) this._context.closePath(); this._line = 1 - this._line; this._x = this._y = null; }, point: function(x, y) { this._x.push(+x); this._y.push(+y); } }; // See https://www.particleincell.com/2012/bezier-splines/ for derivation. function controlPoints(x) { var i, n = x.length - 1, m, a = new Array(n), b = new Array(n), r = new Array(n); a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1]; for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1]; a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n]; for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1]; a[n - 1] = r[n - 1] / b[n - 1]; for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i]; b[n - 1] = (x[n] + a[n - 1]) / 2; for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1]; return [a, b]; } /* harmony default export */ __webpack_exports__["a"] = (function(context) { return new Natural(context); }); /***/ }), /* 264 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["c"] = stepBefore; /* harmony export (immutable) */ __webpack_exports__["b"] = stepAfter; function Step(context, t) { this._context = context; this._t = t; } Step.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = this._y = NaN; this._point = 0; }, lineEnd: function() { if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y); if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath(); if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line; }, point: function(x, y) { x = +x, y = +y; switch (this._point) { case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break; case 1: this._point = 2; // proceed default: { if (this._t <= 0) { this._context.lineTo(this._x, y); this._context.lineTo(x, y); } else { var x1 = this._x * (1 - this._t) + x * this._t; this._context.lineTo(x1, this._y); this._context.lineTo(x1, y); } break; } } this._x = x, this._y = y; } }; /* harmony default export */ __webpack_exports__["a"] = (function(context) { return new Step(context, 0.5); }); function stepBefore(context) { return new Step(context, 0); } function stepAfter(context) { return new Step(context, 1); } /***/ }), /* 265 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__array__ = __webpack_require__(96); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__constant__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__offset_none__ = __webpack_require__(17); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__order_none__ = __webpack_require__(18); function stackValue(d, key) { return d[key]; } /* harmony default export */ __webpack_exports__["a"] = (function() { var keys = Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])([]), order = __WEBPACK_IMPORTED_MODULE_3__order_none__["a" /* default */], offset = __WEBPACK_IMPORTED_MODULE_2__offset_none__["a" /* default */], value = stackValue; function stack(data) { var kz = keys.apply(this, arguments), i, m = data.length, n = kz.length, sz = new Array(n), oz; for (i = 0; i < n; ++i) { for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) { si[j] = sij = [0, +value(data[j], ki, j, data)]; sij.data = data[j]; } si.key = ki; } for (i = 0, oz = order(sz); i < n; ++i) { sz[oz[i]].index = i; } offset(sz, oz); return sz; } stack.keys = function(_) { return arguments.length ? (keys = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__array__["a" /* slice */].call(_)), stack) : keys; }; stack.value = function(_) { return arguments.length ? (value = typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(+_), stack) : value; }; stack.order = function(_) { return arguments.length ? (order = _ == null ? __WEBPACK_IMPORTED_MODULE_3__order_none__["a" /* default */] : typeof _ === "function" ? _ : Object(__WEBPACK_IMPORTED_MODULE_1__constant__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__array__["a" /* slice */].call(_)), stack) : order; }; stack.offset = function(_) { return arguments.length ? (offset = _ == null ? __WEBPACK_IMPORTED_MODULE_2__offset_none__["a" /* default */] : _, stack) : offset; }; return stack; }); /***/ }), /* 266 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(17); /* harmony default export */ __webpack_exports__["a"] = (function(series, order) { if (!((n = series.length) > 0)) return; for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) { for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0; if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y; } Object(__WEBPACK_IMPORTED_MODULE_0__none__["a" /* default */])(series, order); }); /***/ }), /* 267 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = (function(series, order) { if (!((n = series.length) > 1)) return; for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) { for (yp = yn = 0, i = 0; i < n; ++i) { if ((dy = (d = series[order[i]][j])[1] - d[0]) >= 0) { d[0] = yp, d[1] = yp += dy; } else if (dy < 0) { d[1] = yn, d[0] = yn += dy; } else { d[0] = yp; } } } }); /***/ }), /* 268 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(17); /* harmony default export */ __webpack_exports__["a"] = (function(series, order) { if (!((n = series.length) > 0)) return; for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) { for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0; s0[j][1] += s0[j][0] = -y / 2; } Object(__WEBPACK_IMPORTED_MODULE_0__none__["a" /* default */])(series, order); }); /***/ }), /* 269 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(17); /* harmony default export */ __webpack_exports__["a"] = (function(series, order) { if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return; for (var y = 0, j = 1, s0, m, n; j < m; ++j) { for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) { var si = series[order[i]], sij0 = si[j][1] || 0, sij1 = si[j - 1][1] || 0, s3 = (sij0 - sij1) / 2; for (var k = 0; k < i; ++k) { var sk = series[order[k]], skj0 = sk[j][1] || 0, skj1 = sk[j - 1][1] || 0; s3 += skj0 - skj1; } s1 += sij0, s2 += s3 * sij0; } s0[j - 1][1] += s0[j - 1][0] = y; if (s1) y -= s2 / s1; } s0[j - 1][1] += s0[j - 1][0] = y; Object(__WEBPACK_IMPORTED_MODULE_0__none__["a" /* default */])(series, order); }); /***/ }), /* 270 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ascending__ = __webpack_require__(50); /* harmony default export */ __webpack_exports__["a"] = (function(series) { return Object(__WEBPACK_IMPORTED_MODULE_0__ascending__["a" /* default */])(series).reverse(); }); /***/ }), /* 271 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(18); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ascending__ = __webpack_require__(50); /* harmony default export */ __webpack_exports__["a"] = (function(series) { var n = series.length, i, j, sums = series.map(__WEBPACK_IMPORTED_MODULE_1__ascending__["b" /* sum */]), order = Object(__WEBPACK_IMPORTED_MODULE_0__none__["a" /* default */])(series).sort(function(a, b) { return sums[b] - sums[a]; }), top = 0, bottom = 0, tops = [], bottoms = []; for (i = 0; i < n; ++i) { j = order[i]; if (top < bottom) { top += sums[j]; tops.push(j); } else { bottom += sums[j]; bottoms.push(j); } } return bottoms.reverse().concat(tops); }); /***/ }), /* 272 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__none__ = __webpack_require__(18); /* harmony default export */ __webpack_exports__["a"] = (function(series) { return Object(__WEBPACK_IMPORTED_MODULE_0__none__["a" /* default */])(series).reverse(); }); /***/ }), /* 273 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) { 'use strict'; var _require = __webpack_require__(106), colorSchemas = _require.colorSchemas; var constants = __webpack_require__(107); var serializeWithStyles = __webpack_require__(274); var isBrowser = typeof window !== 'undefined'; var encoder = isBrowser && window.btoa; if (!encoder) { encoder = __webpack_require__(275).encode; } // Base64 doesn't work really well with Unicode strings, so we need to use this function // Ref: https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding var b64EncodeUnicode = function b64EncodeUnicode(str) { return encoder(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) { return String.fromCharCode('0x' + p1); })); }; var config = { styleClass: 'britechartStyle', defaultFilename: 'britechart.png', chartBackground: 'white', imageSourceBase: 'data:image/svg+xml;base64,', titleFontSize: '15px', titleFontFamily: '\'Benton Sans\', sans-serif', titleTopOffset: 30, get styleBackgroundString() { return '<style>svg{background:' + this.chartBackground + ';}</style>'; } }; /** * Main function to be used as a method by chart instances to export charts to png * @param {array} svgs (or an svg element) pass in both chart & legend as array or just chart as svg or in array * @param {string} filename [download to be called <filename>.png] * @param {string} title Title for the image */ function exportChart(d3svg, filename, title) { var img = createImage(convertSvgToHtml.call(this, d3svg, title)); img.onload = handleImageLoad.bind(img, createCanvas(this.width(), this.height()), filename); } /** * adds background styles to raw html * @param {string} html raw html */ function addBackground(html) { return html.replace('>', '>' + config.styleBackgroundString); } /** * takes d3 svg el, adds proper svg tags, adds inline styles * from stylesheets, adds white background and returns string * @param {object} d3svg TYPE d3 svg element * @return {string} string of passed d3 */ function convertSvgToHtml(d3svg, title) { if (!d3svg) { return; } d3svg.attr('version', 1.1).attr('xmlns', 'http://www.w3.org/2000/svg'); var serializer = serializeWithStyles.initializeSerializer(); var html = serializer(d3svg.node()); html = formatHtmlByBrowser(html); html = prependTitle.call(this, html, title, parseInt(d3svg.attr('width'), 10)); html = addBackground(html); return html; } /** * Create Canvas * @param {number} width * @param {number} height * @return {object} TYPE canvas element */ function createCanvas(width, height) { var canvas = document.createElement('canvas'); canvas.height = height; canvas.width = width; return canvas; } /** * Create Image * @param {string} svgHtml string representation of svg el * @return {object} TYPE element <img>, src points at svg */ function createImage(svgHtml) { var img = new Image(); img.src = '' + config.imageSourceBase + b64EncodeUnicode(svgHtml); return img; }; /** * Draws image on canvas * @param {object} image TYPE:el <img>, to be drawn * @param {object} canvas TYPE: el <canvas>, to draw on */ function drawImageOnCanvas(image, canvas) { canvas.getContext('2d').drawImage(image, 0, 0); return canvas; } /** * Triggers browser to download image, convert canvas to url, * we need to append the link el to the dom before clicking it for Firefox to register * point <a> at it and trigger click * @param {object} canvas TYPE: el <canvas> * @param {string} filename * @param {string} extensionType */ function downloadCanvas(canvas) { var filename = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : config.defaultFilename; var extensionType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'image/png'; var url = canvas.toDataURL(extensionType); var link = document.createElement('a'); link.href = url; link.download = filename; document.body.appendChild(link); link.click(); document.body.removeChild(link); } /** * Some browsers need special formatting, we handle that here * @param {string} html string of svg html * @return {string} string of svg html */ function formatHtmlByBrowser(html) { if (navigator.userAgent.search('FireFox') > -1) { return html.replace(/url.*&quot;\)/, 'url(&quot;linearGradient[id*="-gradient-"]&quot;);'); } return html; } /** * Handles on load event fired by img.onload, this=img * @param {object} canvas TYPE: el <canvas> * @param {string} filename * @param {object} e */ function handleImageLoad(canvas, filename, e) { e.preventDefault(); downloadCanvas(drawImageOnCanvas(this, canvas), filename); } /** * if passed, append title to the raw html to appear on graph * @param {string} html raw html string * @param {string} title title of the graph * @param {number} svgWidth width of graph container * @return {string} raw html with title prepended */ function prependTitle(html, title, svgWidth) { if (!title || !svgWidth) { return html; } var grey = colorSchemas.grey; html = html.replace(/<g/, '<text x="' + this.margin().left + '" y="' + config.titleTopOffset + '" font-family="' + config.titleFontFamily + '" font-size="' + config.titleFontSize + '" fill="' + grey[6] + '"> ' + title + ' </text><g '); return html; } return { exportChart: exportChart, convertSvgToHtml: convertSvgToHtml, createImage: createImage, drawImageOnCanvas: drawImageOnCanvas }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /* 274 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function () { 'use strict'; // Styles inherited from style sheets will not be rendered for elements with these tag names var noStyleTags = { 'BASE': true, 'HEAD': true, 'HTML': true, 'META': true, 'NOFRAME': true, 'NOSCRIPT': true, 'PARAM': true, 'SCRIPT': true, 'STYLE': true, 'TITLE': true }; // This list determines which css default values lookup tables are precomputed at load time // Lookup tables for other tag names will be automatically built at runtime if needed var tagNames = ['A', 'ABBR', 'ADDRESS', 'AREA', 'ARTICLE', 'ASIDE', 'AUDIO', 'B', 'BASE', 'BDI', 'BDO', 'BLOCKQUOTE', 'BODY', 'BR', 'BUTTON', 'CANVAS', 'CAPTION', 'CENTER', 'CITE', 'CODE', 'COL', 'COLGROUP', 'COMMAND', 'DATALIST', 'DD', 'DEL', 'DETAILS', 'DFN', 'DIV', 'DL', 'DT', 'EM', 'EMBED', 'FIELDSET', 'FIGCAPTION', 'FIGURE', 'FONT', 'FOOTER', 'FORM', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'HEAD', 'HEADER', 'HGROUP', 'HR', 'HTML', 'I', 'IFRAME', 'IMG', 'INPUT', 'INS', 'KBD', 'LABEL', 'LEGEND', 'LI', 'LINK', 'MAP', 'MARK', 'MATH', 'MENU', 'META', 'METER', 'NAV', 'NOBR', 'NOSCRIPT', 'OBJECT', 'OL', 'OPTION', 'OPTGROUP', 'OUTPUT', 'P', 'PARAM', 'PRE', 'PROGRESS', 'Q', 'RP', 'RT', 'RUBY', 'S', 'SAMP', 'SCRIPT', 'SECTION', 'SELECT', 'SMALL', 'SOURCE', 'SPAN', 'STRONG', 'STYLE', 'SUB', 'SUMMARY', 'SUP', 'SVG', 'TABLE', 'TBODY', 'TD', 'TEXTAREA', 'TFOOT', 'TH', 'THEAD', 'TIME', 'TITLE', 'TR', 'TRACK', 'U', 'UL', 'VAR', 'VIDEO', 'WBR']; /** * Extracts the styles of elements of the given tag name * @param {String} tagName Tag name that we will check for styles * @return {Object} Values of the styles applied to the given element */ var computeDefaultStyleByTagName = function computeDefaultStyleByTagName(tagName) { var defaultStyle = {}, element = document.body.appendChild(document.createElement(tagName)), computedStyle = window.getComputedStyle(element); [].forEach.call(computedStyle, function (style) { defaultStyle[style] = computedStyle[style]; }); document.body.removeChild(element); return defaultStyle; }; return { /** * returns serializer function, only run it when you know you want to serialize your chart * @return {func} serializer to add styles in line to dom string */ initializeSerializer: function initializeSerializer() { // Mapping between tag names and css default values lookup tables. This allows to exclude default values in the result. var defaultStylesByTagName = {}; // Precompute the lookup tables. [].forEach.call(tagNames, function (name) { if (!noStyleTags[name]) { defaultStylesByTagName[name] = computeDefaultStyleByTagName(name); } }); function getDefaultStyleByTagName(tagName) { tagName = tagName.toUpperCase(); if (!defaultStylesByTagName[tagName]) { defaultStylesByTagName[tagName] = computeDefaultStyleByTagName(tagName); } return defaultStylesByTagName[tagName]; } function serializeWithStyles(elem) { var cssTexts = [], elements = void 0, computedStyle = void 0, defaultStyle = void 0, result = void 0; if (!elem || elem.nodeType !== Node.ELEMENT_NODE) { // 'Error: Object passed in to serializeWithSyles not of nodeType Node.ELEMENT_NODE' return; } cssTexts = []; elements = elem.querySelectorAll('*'); [].forEach.call(elements, function (el, i) { if (!noStyleTags[el.tagName]) { computedStyle = window.getComputedStyle(el); defaultStyle = getDefaultStyleByTagName(el.tagName); cssTexts[i] = el.style.cssText; [].forEach.call(computedStyle, function (cssPropName) { if (computedStyle[cssPropName] !== defaultStyle[cssPropName]) { el.style[cssPropName] = computedStyle[cssPropName]; } }); } }); result = elem.outerHTML; elements = [].map.call(elements, function (el, i) { el.style.cssText = cssTexts[i]; return el; }); return result; }; return serializeWithStyles; } }; }(); /***/ }), /* 275 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */ ;(function(root) { // Detect free variables `exports`. var freeExports = typeof exports == 'object' && exports; // Detect free variable `module`. var freeModule = typeof module == 'object' && module && module.exports == freeExports && module; // Detect free variable `global`, from Node.js or Browserified code, and use // it as `root`. var freeGlobal = typeof global == 'object' && global; if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { root = freeGlobal; } /*--------------------------------------------------------------------------*/ var InvalidCharacterError = function(message) { this.message = message; }; InvalidCharacterError.prototype = new Error; InvalidCharacterError.prototype.name = 'InvalidCharacterError'; var error = function(message) { // Note: the error messages used throughout this file match those used by // the native `atob`/`btoa` implementation in Chromium. throw new InvalidCharacterError(message); }; var TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; // http://whatwg.org/html/common-microsyntaxes.html#space-character var REGEX_SPACE_CHARACTERS = /[\t\n\f\r ]/g; // `decode` is designed to be fully compatible with `atob` as described in the // HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob // The optimized base64-decoding algorithm used is based on @atk’s excellent // implementation. https://gist.github.com/atk/1020396 var decode = function(input) { input = String(input) .replace(REGEX_SPACE_CHARACTERS, ''); var length = input.length; if (length % 4 == 0) { input = input.replace(/==?$/, ''); length = input.length; } if ( length % 4 == 1 || // http://whatwg.org/C#alphanumeric-ascii-characters /[^+a-zA-Z0-9/]/.test(input) ) { error( 'Invalid character: the string to be decoded is not correctly encoded.' ); } var bitCounter = 0; var bitStorage; var buffer; var output = ''; var position = -1; while (++position < length) { buffer = TABLE.indexOf(input.charAt(position)); bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer; // Unless this is the first of a group of 4 characters… if (bitCounter++ % 4) { // …convert the first 8 bits to a single ASCII character. output += String.fromCharCode( 0xFF & bitStorage >> (-2 * bitCounter & 6) ); } } return output; }; // `encode` is designed to be fully compatible with `btoa` as described in the // HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa var encode = function(input) { input = String(input); if (/[^\0-\xFF]/.test(input)) { // Note: no need to special-case astral symbols here, as surrogates are // matched, and the input is supposed to only contain ASCII anyway. error( 'The string to be encoded contains characters outside of the ' + 'Latin1 range.' ); } var padding = input.length % 3; var output = ''; var position = -1; var a; var b; var c; var d; var buffer; // Make sure any padding is handled outside of the loop. var length = input.length - padding; while (++position < length) { // Read three bytes, i.e. 24 bits. a = input.charCodeAt(position) << 16; b = input.charCodeAt(++position) << 8; c = input.charCodeAt(++position); buffer = a + b + c; // Turn the 24 bits into four chunks of 6 bits each, and append the // matching character for each of them to the output. output += ( TABLE.charAt(buffer >> 18 & 0x3F) + TABLE.charAt(buffer >> 12 & 0x3F) + TABLE.charAt(buffer >> 6 & 0x3F) + TABLE.charAt(buffer & 0x3F) ); } if (padding == 2) { a = input.charCodeAt(position) << 8; b = input.charCodeAt(++position); buffer = a + b; output += ( TABLE.charAt(buffer >> 10) + TABLE.charAt((buffer >> 4) & 0x3F) + TABLE.charAt((buffer << 2) & 0x3F) + '=' ); } else if (padding == 1) { buffer = input.charCodeAt(position); output += ( TABLE.charAt(buffer >> 2) + TABLE.charAt((buffer << 4) & 0x3F) + '==' ); } return output; }; var base64 = { 'encode': encode, 'decode': decode, 'version': '0.1.0' }; // Some AMD build optimizers, like r.js, check for specific condition patterns // like the following: if ( true ) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return base64; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else if (freeExports && !freeExports.nodeType) { if (freeModule) { // in Node.js or RingoJS v0.8.0+ freeModule.exports = base64; } else { // in Narwhal or RingoJS v0.7.0- for (var key in base64) { base64.hasOwnProperty(key) && (freeExports[key] = base64[key]); } } } else { // in Rhino or a web browser root.base64 = base64; } }(this)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(276)(module), __webpack_require__(277))) /***/ }), /* 276 */ /***/ (function(module, exports) { module.exports = function(module) { if(!module.webpackPolyfill) { module.deprecate = function() {}; module.paths = []; // module.parent = undefined by default if(!module.children) module.children = []; Object.defineProperty(module, "loaded", { enumerable: true, get: function() { return module.l; } }); Object.defineProperty(module, "id", { enumerable: true, get: function() { return module.i; } }); module.webpackPolyfill = 1; } return module; }; /***/ }), /* 277 */ /***/ (function(module, exports) { var g; // This works in non-strict mode g = (function() { return this; })(); try { // This works if eval is allowed (see CSP) g = g || Function("return this")() || (1,eval)("this"); } catch(e) { // This works if the window reference is available if(typeof window === "object") g = window; } // g can still be undefined, but nothing to do about it... // We return undefined, instead of nothing here, so it's // easier to handle this case. if(!global) { ...} module.exports = g; /***/ }), /* 278 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var linearGradient = "\n <defs>\n <linearGradient id=\"lgrad\" x1=\"0%\" y1=\"50%\" x2=\"100%\" y2=\"50%\" >\n <stop offset=\"0\" stop-color=\"#ffffff\" stop-opacity=\"0.8\" />\n <stop offset=\"33.33%\" stop-color=\"#ffffff\" stop-opacity=\"0.8\" />\n <stop offset=\"50%\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n <stop offset=\"66.66%\" stop-color=\"#ffffff\" stop-opacity=\"0.8\" />\n <stop offset=\"100%\" stop-color=\"#ffffff\" stop-opacity=\"0.8\" />\n </linearGradient>\n </defs>\n "; var bar = "\n <svg class=\"load-state bar-load-state\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 711 325\">\n " + linearGradient + "\n <g fill=\"none\" fill-rule=\"evenodd\">\n <g transform=\"translate(0 29)\">\n <g stroke=\"#EFF2F5\" stroke-dasharray=\"4 4\">\n <path d=\"M.400592911 200.302477L710.674315 200.302477M.400592884 131.172748L710.674315 131.172748M.324410282 64.2071321L710.621499 64.2071321M.291004517.563888874L709.82431.563888889\"/>\n </g>\n <g fill=\"#D2D6DF\" transform=\"translate(63.08 11)\">\n <polygon points=\"-.08 176 23.92 176 23.92 255 -.08 255\"/>\n <polygon points=\"50.829 147 74.829 147 74.829 255 50.829 255\"/>\n <polygon points=\"254.465 0 278.465 0 278.465 255 254.465 255\"/>\n <polygon points=\"458.102 169 482.102 169 482.102 255 458.102 255\"/>\n <polygon points=\"152.647 82 176.647 82 176.647 255 152.647 255\"/>\n <polygon points=\"356.283 66 380.283 66 380.283 255 356.283 255\"/>\n <polygon points=\"559.92 229 583.92 229 583.92 255 559.92 255\"/>\n <polygon points=\"101.738 115 125.738 115 125.738 255 101.738 255\"/>\n <polygon points=\"305.374 42 329.374 42 329.374 255 305.374 255\"/>\n <polygon points=\"509.011 201 533.011 201 533.011 255 509.011 255\"/>\n <polygon points=\"203.556 19 227.556 19 227.556 255 203.556 255\"/>\n <polygon points=\"407.192 115 431.192 115 431.192 255 407.192 255\"/>\n </g>\n </g>\n <polygon fill=\"#D2D6DF\" fill-rule=\"nonzero\" points=\"0 295 711 295 711 294 0 294\"/>\n </g>\n <rect class=\"chart-filter\" fill=\"url(#lgrad)\" x=\"-100%\" y=\"0\" width=\"300%\" height=\"100%\"></rect>\n </svg>\n "; var donut = "\n <svg class=\"load-state donut-load-state\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 376 331\">\n " + linearGradient + "\n <g fill=\"none\" fill-rule=\"evenodd\">\n <g transform=\"translate(116 107)\">\n <circle cx=\"72\" cy=\"72\" r=\"72\" stroke=\"#EFF2F5\" stroke-linecap=\"round\" stroke-width=\"9.6\"/>\n <path stroke=\"#D2D6DF\" stroke-width=\"19.2\" d=\"M126.153559,119.524055 C137.264629,106.845712 144,90.2321371 144,72.0444604 C144,32.2554036 111.764502,0 72,0\"/>\n <circle cx=\"72\" cy=\"72\" r=\"67.2\" fill=\"#FFF\"/>\n </g>\n </g>\n <rect class=\"chart-filter\" fill=\"url(#lgrad)\" x=\"-100%\" y=\"0\" width=\"300%\" height=\"100%\"></rect>\n </svg>\n "; var line = "\n <svg\n class=\"load-state line-load-state\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 711 325\"\n >\n " + linearGradient + "\n <path\n id=\"chart-bg\"\n class=\"chart-bg\"\n style=\"stroke:#C3C6CF;\"\n d=\"M3.4,216.5h707.3 M3.4,160.5h707.3 M3.3,103.5h707.3 M3.3,48.5h707.6 M0.4,276.6H710H0.4z\"\n />\n <polyline\n id=\"chart-line\"\n class=\"chart-line\"\n style=\"stroke:#C3C6CF;stroke-width:4;fill:none;\"\n points=\"8.8,175.8 62.4,237.7 116.1,184.7 169.7,175.8 223.3,57 277,176.8 330.6,176.8 384.3,122.5 437.9,176.8 491.6,176.8 545.2,218.4 598.8,122.5 652.5,184.7 706.1,135.1 \"\n />\n <rect class=\"chart-filter\" fill=\"url(#lgrad)\" x=\"-100%\" y=\"0\" width=\"300%\" height=\"100%\"></rect>\n </svg>\n "; var stackedArea = "\n <svg\n class=\"load-state stacked-area-load-state\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 711 325\"\n >\n " + linearGradient + "\n <path\n id=\"chart-bg\"\n class=\"chart-bg\"\n style=\"stroke:#C3C6CF;\"\n d=\"M3.4,216.5h707.3 M3.4,160.5h707.3 M3.3,103.5h707.3 M3.3,48.5h707.6 M0.4,276.6H710H0.4z\"\n />\n <g transform=\"translate(20 50)\">\n <path\n id=\"chart-area\"\n strokeLinecap=\"square\"\n d=\"M0.34233103,0.593688165 L709.977885,0.593688189\"\n transform=\"translate(.01 227.976)\"\n />\n <path fill=\"#C3C6CF\" d=\"M0.528124801,224.014648 L0.528124801,177.734375 L53.3834796,177.734375 C71.5390789,177.734375 86.8277373,168.972754 101.240241,151.662202 C112.578335,138.044258 121.139826,123.110227 136.974507,91.596773 C137.343842,90.8617404 139.300293,86.9654028 139.856735,85.8583549 C155.041692,55.6476711 163.354313,41.0906306 174.319873,27.7179171 C188.951312,9.87459412 204.885845,0.5 223.830634,0.5 C242.123071,0.5 257.291724,8.27027858 270.907992,23.1359289 C281.228683,34.4036118 289.135925,47.1272372 302.542017,72.085092 C303.275893,73.4513345 306.289669,79.0766612 307.063369,80.5168656 C321.41025,107.222876 330.088083,120.97663 341.470704,132.92446 C355.88994,148.05969 371.908861,155.792969 391.654853,155.792969 C412.142049,155.792969 428.763593,152.325614 442.880698,145.765582 C454.197328,140.506893 463.373931,133.679865 473.786035,123.626931 C476.528659,120.978915 486.44777,110.911455 488.791866,108.6483 C502.907223,95.0203436 514.194325,88.9355469 530.135322,88.9355469 C546.532652,88.9355469 559.505909,97.338499 575.973261,115.41103 C579.723508,119.526837 593.103621,135.086814 592.915496,134.871799 C605.09738,148.794859 614.368835,157.635549 625.072091,164.58539 C638.386599,173.230769 652.701021,177.734375 669.279853,177.734375 L673.779853,177.734375 L673.779853,224.014648 L0.528124801,224.014648 Z\" />\n </g>\n <rect class=\"chart-filter\" fill=\"url(#lgrad)\" x=\"-100%\" y=\"0\" width=\"300%\" height=\"100%\"></rect>\n </svg>\n "; return { bar: bar, donut: donut, line: line, stackedArea: stackedArea }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /* 279 */, /* 280 */, /* 281 */, /* 282 */, /* 283 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) { 'use strict'; var d3Format = __webpack_require__(29); var idCounter = 0; var integerValueFormats = { small: { limit: 10, format: d3Format.format('') }, medium: { limit: 1000, format: d3Format.format('') }, large: { limit: null, format: d3Format.format('.2s') } }; var decimalValueFormats = { small: { limit: 10, format: d3Format.format('.3f') }, medium: { limit: 100, format: d3Format.format('.1f') }, large: { limit: null, format: d3Format.format('.2s') } }; var getValueSize = function getValueSize(value, limits) { var size = 'large'; if (value < limits.small.limit) { size = 'small'; } else if (value < limits.medium.limit) { size = 'medium'; } return size; }; /** * Calculates percentage of value from total * @param {Number} value Value to check * @param {Number} total Sum of values * @param {String} decimals Specifies number of decimals https://github.com/d3/d3-format * @return {String} Percentage */ var calculatePercent = function calculatePercent(value, total, decimals) { var percent = total ? value / total * 100 : 0; return d3Format.format(decimals)(percent); }; /** * Checks if a number is an integer or a decimal value * @param {Number} value Value to check * @return {Boolean} If it is an iteger */ var isInteger = function isInteger(value) { return value % 1 === 0; }; /** * Formats a floating point value depending on its value range * @param {Number} value Decimal point value to format * @return {Number} Formatted value to show */ var formatDecimalValue = function formatDecimalValue(value) { var size = getValueSize(value, decimalValueFormats); var format = decimalValueFormats[size].format; return format(value); }; /** * Formats an integer value depending on its value range * @param {Number} value Decimal point value to format * @return {Number} Formatted value to show */ var formatIntegerValue = function formatIntegerValue(value) { var size = getValueSize(value, integerValueFormats); var format = integerValueFormats[size].format; return format(value); }; /** * Generates a unique id with a prefix * @param {String} prefix Prefix to add before the id * @return {String} Unique id */ var uniqueId = function uniqueId(prefix) { var id = ++idCounter; return prefix.toString() + '-' + id; }; return { calculatePercent: calculatePercent, isInteger: isInteger, formatDecimalValue: formatDecimalValue, formatIntegerValue: formatIntegerValue, uniqueId: uniqueId }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /* 284 */, /* 285 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) { var d3Selection = __webpack_require__(3); var wrapConfig = { lineHeight: 1.2, smallTextOffset: 10, smallTextLineHeightRatio: 0.9, smallTextRatio: 0.6, valueClassName: 'value', labelClassName: 'label' }; var defaultTextSize = 12; var defaultFontFace = 'Arial'; /** * Wraps a selection of text within the available width * @param {Number} xOffset X axis offset for the text * @param {Number} fontSize Size of the base font * @param {Number} availableWidth Width of the container where the text needs to wrap on * @param {D3Selection} node SVG text element that contains the text to wrap * * REF: http://bl.ocks.org/mbostock/7555321 * More discussions on https://github.com/mbostock/d3/issues/1642 * @return {void} */ var wrapText = function wrapText(xOffset, fontSize, availableWidth, node) { var text = d3Selection.select(node), words = text.text().split(/\s+/).reverse(), word = void 0, line = [], lineNumber = 0, smallLineHeight = wrapConfig.lineHeight * wrapConfig.smallTextLineHeightRatio, y = text.attr('y'), dy = parseFloat(text.attr('dy')), smallFontSize = fontSize * wrapConfig.smallTextRatio, tspan = text.text(null).append('tspan').attr('x', xOffset).attr('y', y - 5).attr('dy', dy + 'em').classed(wrapConfig.valueClassName, true).style('font-size', fontSize + 'px'); tspan.text(words.pop()); tspan = text.append('tspan').classed(wrapConfig.labelClassName, true).attr('x', xOffset).attr('y', y + wrapConfig.smallTextOffset).attr('dy', ++lineNumber * smallLineHeight + dy + 'em').style('font-size', smallFontSize + 'px'); while (word = words.pop()) { line.push(word); tspan.text(line.join(' ')); if (tspan.node() && tspan.node().getComputedTextLength() > availableWidth - 50) { line.pop(); tspan.text(line.join(' ')); line = [word]; tspan = text.append('tspan').classed(wrapConfig.labelClassName, true).attr('x', xOffset).attr('y', y + wrapConfig.smallTextOffset).attr('dy', ++lineNumber * smallLineHeight + dy + 'em').text(word).style('font-size', smallFontSize + 'px'); } } }; /** * Wraps a selection of text within the available width, also adds class .adjust-upwards * to configure a y offset for entries with multiple rows * @param {D3Sekectuib} text d3 text element * @param {Number} width Width of the container where the text needs to wrap on * @param {Number} xpos number passed to determine the x offset * @param {Number} limit number of lines before an ellipses is added and the rest of the text is cut off * * REF: http://bl.ocks.org/mbostock/7555321 * More discussions on https://github.com/mbostock/d3/issues/1642 * @return {void} */ var wrapTextWithEllipses = function wrapTextWithEllipses(text, width) { var xpos = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; var limit = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2; text.each(function () { var words, word, line, lineNumber, lineHeight, y, dy, tspan; text = d3Selection.select(this); words = text.text().split(/\s+/).reverse(); line = []; lineNumber = 0; lineHeight = 1.2; y = text.attr('y'); dy = parseFloat(text.attr('dy')); tspan = text.text(null).append('tspan').attr('x', xpos).attr('y', y).attr('dy', dy + 'em'); while (word = words.pop()) { line.push(word); tspan.text(line.join(' ')); if (tspan.node() && tspan.node().getComputedTextLength() > width) { line.pop(); tspan.text(line.join(' ')); if (lineNumber < limit - 1) { line = [word]; tspan = text.append('tspan').attr('x', xpos).attr('y', y).attr('dy', ++lineNumber * lineHeight + dy + 'em').text(word); // if we need two lines for the text, move them both up to center them text.classed('adjust-upwards', true); } else { line.push('...'); tspan.text(line.join(' ')); break; } } } }); }; /** * Figures out an approximate of the text width by using a canvas element * This avoids having to actually render the text to measure it from the DOM itself * @param {String} text Text to measure * @param {Number} fontSize Fontsize (or default) * @param {String} fontFace Font familty (or default) * @return {String} Approximate font size of the text */ var getTextWidth = function getTextWidth(text) { var fontSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTextSize; var fontFace = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultFontFace; var a = document.createElement('canvas'), b = a.getContext('2d'); b.font = fontSize + 'px ' + fontFace; return b.measureText(text).width; }; return { getTextWidth: getTextWidth, wrapText: wrapText, wrapTextWithEllipses: wrapTextWithEllipses }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /* 286 */, /* 287 */, /* 288 */, /* 289 */, /* 290 */, /* 291 */, /* 292 */, /* 293 */, /* 294 */, /* 295 */, /* 296 */, /* 297 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } !(__WEBPACK_AMD_DEFINE_RESULT__ = (function (require) { 'use strict'; var d3Dispatch = __webpack_require__(73); var d3Ease = __webpack_require__(72); var d3Format = __webpack_require__(29); var d3Interpolate = __webpack_require__(9); var d3Scale = __webpack_require__(232); var d3Shape = __webpack_require__(108); var d3Selection = __webpack_require__(3); var d3Transition = __webpack_require__(110); var _require = __webpack_require__(273), exportChart = _require.exportChart; var textHelper = __webpack_require__(285); var colorHelper = __webpack_require__(106); var _require2 = __webpack_require__(283), calculatePercent = _require2.calculatePercent; var _require3 = __webpack_require__(107), emptyDonutData = _require3.emptyDonutData; var _require4 = __webpack_require__(278), donut = _require4.donut; /** * @typedef DonutChartData * @type {Object[]} * @property {Number} quantity Quantity of the group (required) * @property {Number} percentage Percentage of the total (optional) * @property {String} name Name of the group (required) * @property {Number} id Identifier for the group required for legend feature (optional) * * @example * [ * { * quantity: 1, * percentage: 50, * name: 'glittering', * id: 1 * }, * { * quantity: 1, * percentage: 50, * name: 'luminous', * id: 2 * } * ] */ /** * Reusable Donut Chart API class that renders a * simple and configurable donut chart. * * @module Donut * @tutorial donut * @requires d3-dispatch, d3-ease, d3-interpolate, d3-scale, d3-shape, d3-selection * * @example * var donutChart = donut(); * * donutChart * .externalRadius(500) * .internalRadius(200); * * d3Selection.select('.css-selector') * .datum(dataset) * .call(donutChart); * */ return function module() { var margin = { top: 0, right: 0, bottom: 0, left: 0 }, width = 300, height = 300, loadingState = donut, ease = d3Ease.easeCubicInOut, arcTransitionDuration = 750, pieDrawingTransitionDuration = 1200, pieHoverTransitionDuration = 150, radiusHoverOffset = 12, paddingAngle = 0, data = void 0, chartWidth = void 0, chartHeight = void 0, externalRadius = 140, internalRadius = 45.5, legendWidth = externalRadius + internalRadius, layout = void 0, shape = void 0, slices = void 0, svg = void 0, isAnimated = false, isEmpty = false, highlightedSliceId = void 0, highlightedSlice = void 0, hasFixedHighlightedSlice = false, emptyDataConfig = { emptySliceColor: '#EFF2F5', showEmptySlice: false }, quantityLabel = 'quantity', nameLabel = 'name', percentageLabel = 'percentage', percentageFormat = '.1f', numberFormat = void 0, // colors colorScale = void 0, colorSchema = colorHelper.colorSchemas.britecharts, centeredTextFunction = function centeredTextFunction(d) { return d.percentage + '% ' + d.name; }, // utils storeAngle = function storeAngle(d) { this._current = d; }, reduceOuterRadius = function reduceOuterRadius(d) { d.outerRadius = externalRadius - radiusHoverOffset; }, orderingFunction = function orderingFunction(a, b) { return b.quantity - a.quantity; }, sumValues = function sumValues(data) { return data.reduce(function (total, d) { return d.quantity + total; }, 0); }, // extractors getQuantity = function getQuantity(_ref) { var quantity = _ref.quantity; return quantity; }, getSliceFill = function getSliceFill(_ref2) { var data = _ref2.data; return colorScale(data.name); }, // events dispatcher = d3Dispatch.dispatch('customMouseOver', 'customMouseOut', 'customMouseMove', 'customClick'); /** * This function creates the graph using the selection as container * * @param {D3Selection} _selection A d3 selection that represents * the container(s) where the chart(s) will be rendered * @param {DonutChartData} _data The data to attach and generate the chart */ function exports(_selection) { _selection.each(function (_data) { chartWidth = width - margin.left - margin.right; chartHeight = height - margin.top - margin.bottom; data = cleanData(_data); buildLayout(); buildColorScale(); buildShape(); buildSVG(this); drawSlices(); initTooltip(); if (highlightedSliceId) { initHighlightSlice(); } if (isEmpty && emptyDataConfig.showEmptySlice) { drawEmptySlice(); } }); } /** * Builds color scale for chart, if any colorSchema was defined * @private */ function buildColorScale() { if (colorSchema) { colorScale = d3Scale.scaleOrdinal().range(colorSchema); } } /** * Builds containers for the chart, the legend and a wrapper for all of them * @private */ function buildContainerGroups() { var container = svg.append('g').classed('container-group', true); container.append('g').classed('chart-group', true); container.append('g').classed('legend-group', true); } /** * Builds the pie layout that will produce data ready to draw * @private */ function buildLayout() { layout = d3Shape.pie().padAngle(paddingAngle).value(getQuantity).sort(orderingFunction); } /** * Builds the shape function * @private */ function buildShape() { shape = d3Shape.arc().innerRadius(internalRadius).padRadius(externalRadius); } /** * Builds the SVG element that will contain the chart * * @param {HTMLElement} container DOM element that will work as the container of the graph * @private */ function buildSVG(container) { if (!svg) { svg = d3Selection.select(container).append('svg').classed('britechart donut-chart', true); buildContainerGroups(); } // Updates Container Group position svg.select('.container-group').attr('transform', 'translate(' + width / 2 + ', ' + height / 2 + ')'); // Updates SVG size svg.attr('width', width).attr('height', height); } /** * Cleaning data casting the quantities, names and percentages to the proper type while keeping * the rest of properties on the data. It also calculates the percentages if not present. * @param {DonutChartData} data Data as passed to the container * @return {DonutChartData} Clean data with percentages * @private */ function cleanData(data) { var dataWithPercentages = void 0; var cleanData = data.reduce(function (acc, d) { // Skip data without quantity if (d[quantityLabel] === undefined || d[quantityLabel] === null) { return acc; } d.quantity = +d[quantityLabel]; d.name = String(d[nameLabel]); d.percentage = d[percentageLabel] || null; return [].concat(_toConsumableArray(acc), [d]); }, []); var totalQuantity = sumValues(cleanData); if (totalQuantity === 0 && emptyDataConfig.showEmptySlice) { isEmpty = true; } dataWithPercentages = cleanData.map(function (d) { d.percentage = String(d.percentage || calculatePercent(d[quantityLabel], totalQuantity, percentageFormat)); return d; }); return dataWithPercentages; } /** * Cleans any value that could be on the legend text element * @private */ function cleanLegend() { svg.select('.donut-text').text(''); } /** * Draw an empty slice * @private */ function drawEmptySlice() { if (slices) { svg.selectAll('g.arc').remove(); } slices = svg.select('.chart-group').selectAll('g.arc').data(layout(emptyDonutData)); var newSlices = slices.enter().append('g').each(storeAngle).each(reduceOuterRadius).classed('arc', true).append('path'); newSlices.merge(slices).attr('fill', emptyDataConfig.emptySliceColor).attr('d', shape).transition().ease(ease).duration(pieDrawingTransitionDuration).attrTween('d', tweenLoading); slices.exit().remove(); } /** * Draws the values on the donut slice inside the text element * * @param {Object} obj Data object * @private */ function drawLegend(obj) { if (obj.data) { svg.select('.donut-text').text(function () { return centeredTextFunction(obj.data); }).attr('dy', '.2em').attr('text-anchor', 'middle'); svg.select('.donut-text').call(wrapText, legendWidth); } } /** * Draws the slices of the donut * @private */ function drawSlices() { // Not ideal, we need to figure out how to call exit for nested elements if (slices) { svg.selectAll('g.arc').remove(); } slices = svg.select('.chart-group').selectAll('g.arc').data(layout(data)); var newSlices = slices.enter().append('g').each(storeAngle).each(reduceOuterRadius).classed('arc', true).append('path'); if (isAnimated) { newSlices.merge(slices).attr('fill', getSliceFill).on('mouseover', function (d) { handleMouseOver(this, d, chartWidth, chartHeight); }).on('mousemove', function (d) { handleMouseMove(this, d, chartWidth, chartHeight); }).on('mouseout', function (d) { handleMouseOut(this, d, chartWidth, chartHeight); }).on('click', function (d) { handleClick(this, d, chartWidth, chartHeight); }).transition().ease(ease).duration(pieDrawingTransitionDuration).attrTween('d', tweenLoading); } else { newSlices.merge(slices).attr('fill', getSliceFill).attr('d', shape).on('mouseover', function (d) { handleMouseOver(this, d, chartWidth, chartHeight); }).on('mousemove', function (d) { handleMouseMove(this, d, chartWidth, chartHeight); }).on('mouseout', function (d) { handleMouseOut(this, d, chartWidth, chartHeight); }).on('click', function (d) { handleClick(this, d, chartWidth, chartHeight); }); } slices.exit().remove(); } /** * Checks if the given element id is the same as the highlightedSliceId and returns the * element if that's the case * @param {DOMElement} options.data Dom element to check * @return {DOMElement} Dom element if it has the same id */ function filterHighlightedSlice(_ref3) { var data = _ref3.data; if (data.id === highlightedSliceId) { return this; } } /** * Handles a path mouse over * @return {void} * @private */ function handleMouseOver(el, d, chartWidth, chartHeight) { drawLegend(d); dispatcher.call('customMouseOver', el, d, d3Selection.mouse(el), [chartWidth, chartHeight]); if (highlightedSlice && el !== highlightedSlice) { tweenGrowth(highlightedSlice, externalRadius - radiusHoverOffset); } tweenGrowth(el, externalRadius); } /** * Handles a path mouse move * @return {void} * @private */ function handleMouseMove(el, d, chartWidth, chartHeight) { dispatcher.call('customMouseMove', el, d, d3Selection.mouse(el), [chartWidth, chartHeight]); } /** * Handles a path mouse out * @return {void} * @private */ function handleMouseOut(el, d, chartWidth, chartHeight) { cleanLegend(); // When there is a fixed highlighted slice, // we will always highlight it and render legend if (highlightedSlice && hasFixedHighlightedSlice) { drawLegend(highlightedSlice.__data__); tweenGrowth(highlightedSlice, externalRadius); } // When the current slice is not the highlighted, or there isn't a fixed highlighted slice and it is the highlighted // we will shrink the slice if (el !== highlightedSlice || !hasFixedHighlightedSlice && el === highlightedSlice) { tweenGrowth(el, externalRadius - radiusHoverOffset, pieHoverTransitionDuration); } dispatcher.call('customMouseOut', el, d, d3Selection.mouse(el), [chartWidth, chartHeight]); } /** * Handles a path click * @return {void} * @private */ function handleClick(el, d, chartWidth, chartHeight) { dispatcher.call('customClick', el, d, d3Selection.mouse(el), [chartWidth, chartHeight]); } /** * Find the slice by id and growth it if needed * @private */ function initHighlightSlice() { highlightedSlice = svg.selectAll('.chart-group .arc path').select(filterHighlightedSlice).node(); if (highlightedSlice) { drawLegend(highlightedSlice.__data__); tweenGrowth(highlightedSlice, externalRadius, pieDrawingTransitionDuration); } } /** * Creates the text element that will hold the legend of the chart */ function initTooltip() { svg.select('.legend-group').append('text').attr('class', 'donut-text'); } /** * Stores current angles and interpolates with new angles * Check out {@link http://bl.ocks.org/mbostock/1346410| this example} * * @param {Object} a New data for slice * @return {Function} Tweening function for the donut shape * @private */ function tweenArc(a) { var i = d3Interpolate.interpolate(this._current, a); this._current = i(0); return function (t) { return shape(i(t)); }; } /** * Animate slice with tweens depending on the attributes given * * @param {DOMElement} slice Slice to growth * @param {Number} outerRadius Final outer radius value * @param {Number} delay Delay of animation * @private */ function tweenGrowth(slice, outerRadius) { var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; d3Selection.select(slice).transition().delay(delay).attrTween('d', function (d) { var i = d3Interpolate.interpolate(d.outerRadius, outerRadius); return function (t) { d.outerRadius = i(t); return shape(d); }; }); } /** * Animation for chart loading * Check out {@link http://bl.ocks.org/mbostock/4341574| this example} * * @param {Object} b Data point * @return {Function} Tween function * @private */ function tweenLoading(b) { var i = void 0; b.innerRadius = 0; i = d3Interpolate.interpolate({ startAngle: 0, endAngle: 0 }, b); return function (t) { return shape(i(t)); }; } /** * Utility function that wraps a text into the given width * * @param {D3Selection} text Text to write * @param {Number} legendWidth Width of the container * @private */ function wrapText(text, legendWidth) { var fontSize = externalRadius / 5; textHelper.wrapText.call(null, 0, fontSize, legendWidth, text.node()); } // API /** * Gets or Sets the centeredTextFunction of the chart. If function is provided * the format will be changed by the custom function's value format. * The default format function value is "${d.percentage}% ${d.name}". * The callback will provide the data object with id, name, percentage, and quantity. * Also provides the component added by the user in each data entry. * @param {Function} _x Custom function that returns a formatted string * @return {Function | module} Current centeredTextFunction or Chart module to chain calls * @public * @example donutChart.centeredTextFunction(d => `${d.id} ${d.quantity}`) */ exports.centeredTextFunction = function (_x) { if (!arguments.length) { return centeredTextFunction; } centeredTextFunction = _x; return this; }; /** * Gets or Sets the colorSchema of the chart * @param {String[]} _x Desired colorSchema for the graph * @return { String | module} Current colorSchema or Chart module to chain calls * @public */ exports.colorSchema = function (_x) { if (!arguments.length) { return colorSchema; } colorSchema = _x; return this; }; /** * Gets or Sets the emptyDataConfig of the chart. If set and data is empty (quantity * adds up to zero or there are no entries), the chart will render an empty slice * with a given color (light gray by default) * @param {Object} _x emptyDataConfig object to get/set * @return { Object | module} Current config for when chart data is an empty array * @public * @example donutChart.emptyDataConfig({showEmptySlice: true, emptySliceColor: '#000000'}) */ exports.emptyDataConfig = function (_x) { if (!arguments.length) { return emptyDataConfig; } emptyDataConfig = _x; return this; }; /** * Chart exported to png and a download action is fired * @param {String} filename File title for the resulting picture * @param {String} title Title to add at the top of the exported picture * @public */ exports.exportChart = function (filename, title) { exportChart.call(exports, svg, filename, title); }; /** * Gets or Sets the externalRadius of the chart * @param {Number} _x ExternalRadius number to get/set * @return { (Number | Module) } Current externalRadius or Donut Chart module to chain calls * @public */ exports.externalRadius = function (_x) { if (!arguments.length) { return externalRadius; } externalRadius = _x; return this; }; /** * Gets or Sets the hasFixedHighlightedSlice property of the chart, making it to * highlight the selected slice id set with `highlightSliceById` all the time. * * @param {Boolean} _x If we want to make the highlighted slice permanently highlighted * @return { Boolean | module} Current hasFixedHighlightedSlice flag or Chart module * @public */ exports.hasFixedHighlightedSlice = function (_x) { if (!arguments.length) { return hasFixedHighlightedSlice; } hasFixedHighlightedSlice = _x; return this; }; /** * Gets or Sets the height of the chart * @param {Number} _x Desired width for the graph * @return { (Number | Module) } Current height or Donut Chart module to chain calls * @public */ exports.height = function (_x) { if (!arguments.length) { return height; } height = _x; return this; }; /** * Gets or Sets the id of the slice to highlight * @param {Number} _x Slice id * @return { (Number | Module) } Current highlighted slice id or Donut Chart module to chain calls * @public */ exports.highlightSliceById = function (_x) { if (!arguments.length) { return highlightedSliceId; } highlightedSliceId = _x; return this; }; /** * Gets or Sets the internalRadius of the chart * @param {Number} _x InternalRadius number to get/set * @return { (Number | Module) } Current internalRadius or Donut Chart module to chain calls * @public */ exports.internalRadius = function (_x) { if (!arguments.length) { return internalRadius; } internalRadius = _x; return this; }; /** * Gets or Sets the isAnimated property of the chart, making it to animate when render. * By default this is 'false' * * @param {Boolean} _x Desired animation flag * @return { Boolean | module} Current isAnimated flag or Chart module * @public */ exports.isAnimated = function (_x) { if (!arguments.length) { return isAnimated; } isAnimated = _x; return this; }; /** * Gets or Sets the loading state of the chart * @param {string} markup Desired markup to show when null data * @return { loadingState | module} Current loading state markup or Chart module to chain calls * @public */ exports.loadingState = function (_markup) { if (!arguments.length) { return loadingState; } loadingState = _markup; return this; }; /** * Gets or Sets the margin of the chart * @param {Object} _x Margin object to get/set * @return { (Object | Module) } Current margin or Donut Chart module to chain calls * @public */ exports.margin = function (_x) { if (!arguments.length) { return margin; } margin = _extends({}, margin, _x); return this; }; /** * Gets or Sets the number format of the donut chart * @param {string} _x Desired number format for the donut chart * @return {numberFormat | module} Current numberFormat or Chart module to chain calls * @public */ exports.numberFormat = function (_x) { if (!arguments.length) { return numberFormat; } numberFormat = _x; return this; }; /** * Exposes an 'on' method that acts as a bridge with the event dispatcher * We are going to expose this events: * customMouseOver, customMouseMove, customMouseOut and customClick * * @return {module} Bar Chart * @public */ exports.on = function () { var value = dispatcher.on.apply(dispatcher, arguments); return value === dispatcher ? exports : value; }; /** * Changes the order of items given custom function * @param {Function} _x A custom function that sets logic for ordering * @return { (Function | Module) } Void function with no return * @public */ exports.orderingFunction = function (_x) { if (!arguments.length) { return orderingFunction; } orderingFunction = _x; return this; }; /** * Gets or Sets the percentage format for the percentage label * @param {String} _x Format for the percentage label (e.g. '.1f') * @return { (Number | Module) } Current format or Donut Chart module to chain calls * @public */ exports.percentageFormat = function (_x) { if (!arguments.length) { return percentageFormat; } percentageFormat = _x; return this; }; /** * Gets or Sets the radiusHoverOffset of the chart * @param {Number} _x Desired offset for the hovered slice * @return { (Number | Module) } Current offset or Donut Chart module to chain calls * @public */ exports.radiusHoverOffset = function (_x) { if (!arguments.length) { return radiusHoverOffset; } radiusHoverOffset = _x; return this; }; /** * Gets or Sets the width of the chart * @param {Number} _x Desired width for the graph * @return { (Number | Module) } Current width or Donut Chart module to chain calls * @public */ exports.width = function (_x) { if (!arguments.length) { return width; } width = _x; return this; }; return exports; }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }) /******/ ]); }); //# sourceMappingURL=donut.min.js.map
var searchData= [ ['block_190',['block',['../classsrc_1_1python__code_1_1_code_block_1_1_code_block.html#aa8192a9843145248474724f29fadffef',1,'src::python_code::CodeBlock::CodeBlock']]] ];
(function($) { "use strict"; // Start of use strict // Toggle the side navigation $('#slide-submenu').on('click',function() { $(this).closest('.list-group').fadeOut('slide',function(){ $('.mini-submenu').fadeIn(); $('#contentBar').toggleClass('col-sm-8 col-md-9') }); }); $('.mini-submenu').on('click',function(){ $('.list-group').toggle('slide'); $('#contentBar').toggleClass('col-sm-8 col-md-9') $('.mini-submenu').hide(); }) // Close any open menu accordions when window is resized below 768px $(window).resize(function() { if ($(window).width() < 768) { $('.sidebar .collapse').collapse('hide'); }; }); //tooltip $('[data-toggle="tooltip"]').tooltip() //circular bar $('.progress-circle').circleProgress(); $(".ms-settings-toggle").on('click', function(e){ $('body').toggleClass('ms-settings-open'); }); $("#dark-mode").on('click', function(){ $('body').toggleClass('ms-dark-theme'); }); $("#remove-quickbar").on('click', function(){ $('body').toggleClass('ms-has-quickbar'); }); $("#hide-aside-left").on('click', function(){ $('body').toggleClass('ms-aside-left-open'); }); //note text $("table").on("click", "td.note", function(){ $(this).toggleClass("shown") }) $('[data-toggle="datepicker"]').datepicker(); })(jQuery); // End of use strict $(window).on('load', function(){ $('#LoaderWrapper .spinner').fadeOut(2000).parent().fadeOut(2500) }) // delete alert function delette(thing) { Swal.fire({ title: 'Are you sure?', // text: "You won't be able to delete "+thing+"!", text: "You won't be able to return this slider back!", type: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: 'Yes, delete it!' }).then((result) => { if (result.value) { Swal.fire( 'Deleted!', 'Your file has been deleted.', 'success' ) } }) } /* * upload image */ $('.img-upload .upload').on('change', function(e){ console.log(e); readURL(this, '.img-upload img'); }) function readURL(input,imgSelector) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $(imgSelector).attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } /***************start upload file************* */ var fileTypes = ['pdf', 'docx', 'rtf', 'jpg', 'jpeg', 'png', 'txt']; //acceptable file types function readURLFile(input) { if (input.files && input.files[0]) { var extension = input.files[0].name.split('.').pop().toLowerCase(), //file extension from input file isSuccess = fileTypes.indexOf(extension) > -1; //is extension in acceptable types if (isSuccess) { //yes var reader = new FileReader(); reader.onload = function (e) { if (extension == 'pdf'){ $(input).closest('.fileUpload').find(".icon").attr('src','https://image.flaticon.com/icons/svg/179/179483.svg'); } else if (extension == 'docx'){ $(input).closest('.fileUpload').find(".icon").attr('src','https://image.flaticon.com/icons/svg/281/281760.svg'); } else if (extension == 'rtf'){ $(input).closest('.fileUpload').find(".icon").attr('src','https://image.flaticon.com/icons/svg/136/136539.svg'); } else if (extension == 'png'){ $(input).closest('.fileUpload').find(".icon").attr('src','https://image.flaticon.com/icons/svg/136/136523.svg'); } else if (extension == 'jpg' || extension == 'jpeg'){ $(input).closest('.fileUpload').find(".icon").attr('src','https://image.flaticon.com/icons/svg/136/136524.svg'); } else if (extension == 'txt'){ $(input).closest('.fileUpload').find(".icon").attr('src','https://image.flaticon.com/icons/svg/136/136538.svg'); } else { //console.log('here=>'+$(input).closest('.uploadDoc').length); $(input).closest('.uploadDoc').find(".docErr").slideUp('slow'); } } reader.readAsDataURL(input.files[0]); } else { //console.log('here=>'+$(input).closest('.uploadDoc').find(".docErr").length); $(input).closest('.uploadDoc').find(".docErr").fadeIn(); setTimeout(function() { $('.docErr').fadeOut('slow'); }, 9000); } } } $(document).ready(function(){ $(document).on('change','.up', function(){ var id = $(this).attr('id'); /* gets the filepath and filename from the input */ var profilePicValue = $(this).val(); var fileNameStart = profilePicValue.lastIndexOf('\\'); /* finds the end of the filepath */ profilePicValue = profilePicValue.substr(fileNameStart + 1).substring(0,20); /* isolates the filename */ //var profilePicLabelText = $(".upl"); /* finds the label text */ if (profilePicValue != '') { //console.log($(this).closest('.fileUpload').find('.upl').length); $(this).closest('.fileUpload').find('.upl').html(profilePicValue); /* changes the label text */ } }); $(".btn-new").on('click',function(){ $("#uploader").append('<div class="row uploadDoc"><div class="col-sm-3"><div class="docErr">Please upload valid file</div><!--error--><div class="fileUpload btn btn-orange"> <img src="https://image.flaticon.com/icons/svg/136/136549.svg" class="icon"><span class="upl" id="upload">Upload document</span><input type="file" class="upload up" id="up" onchange="readURL(this);" /></div></div><div class="col-sm-8"><input type="text" class="form-control" name="" placeholder="Note"></div><div class="col-sm-1"><a class="btn-check"><i class="fa fa-times"></i></a></div></div>'); }); $(document).on("click", "a.btn-check" , function() { if($(".uploadDoc").length>1){ $(this).closest(".uploadDoc").remove(); }else{ alert("You have to upload at least one document."); } }); }); // ****************************end uplaod file**************************/ /*rich text*/ $(document).ready(function() { $('.content').richText(); });
var NAVTREEINDEX1 = { "classgame_1_1_circle_shape.html#ac5ca02d1fc47577635df419fcd96566f":[2,0,0,8,0], "classgame_1_1_circle_shape.html#add79825eb1f576b2ad1403d310bb1112":[2,0,0,8,5], "classgame_1_1_circle_shape.html#ae372d1654964c9c2413f11aea43c1e40":[2,0,0,8,2], "classgame_1_1_collision_target.html":[2,0,0,9], "classgame_1_1_collision_target.html#a9bba82e591edf548ebd457184f2acd39":[2,0,0,9,1], "classgame_1_1_collision_target.html#ac21f468c3d285864804694040c839a2a":[2,0,0,9,2], "classgame_1_1_collision_target.html#aca5a9c1bd363e0149255cc3bf9342d56":[2,0,0,9,0], "classgame_1_1_default_camera_controller.html":[2,0,0,10], "classgame_1_1_default_camera_controller.html#a1bd38bfbc7032e2a90b7a207167cc80d":[2,0,0,10,2], "classgame_1_1_default_camera_controller.html#a2cc1c1afbbe69472d21aaf3730560a65":[2,0,0,10,1], "classgame_1_1_default_camera_controller.html#a305ce4ed3284987265428cf55cde244b":[2,0,0,10,6], "classgame_1_1_default_camera_controller.html#a3dddb5040ed620325777417fc2f363d5":[2,0,0,10,3], "classgame_1_1_default_camera_controller.html#a620668d2ec6f924842b05a4703294836":[2,0,0,10,9], "classgame_1_1_default_camera_controller.html#aa4914d3f4b4429270540e613d3145b2c":[2,0,0,10,7], "classgame_1_1_default_camera_controller.html#ab7c5b9b5e8964b16cde4753377dd7785":[2,0,0,10,5], "classgame_1_1_default_camera_controller.html#ad9f4be2403dc637c38d3cd346ebf59ec":[2,0,0,10,8], "classgame_1_1_default_camera_controller.html#aec1832c18b2afb7d4b6f3a298a713957":[2,0,0,10,0], "classgame_1_1_default_camera_controller.html#afaa3a43613970a25ae20f054f6b7edcd":[2,0,0,10,4], "classgame_1_1_dynamic_entity.html":[2,0,0,11], "classgame_1_1_dynamic_entity.html#a10cb131c9b6bc8b946fd2ae740ded201":[2,0,0,11,4], "classgame_1_1_dynamic_entity.html#a13d3cdac26ee4f4d52d034ffe72c1636":[2,0,0,11,13], "classgame_1_1_dynamic_entity.html#a39c1e0a21a0f3095cc9798c31bcbaede":[2,0,0,11,23], "classgame_1_1_dynamic_entity.html#a49b20046c529b96b89227443b4c3f0a0":[2,0,0,11,6], "classgame_1_1_dynamic_entity.html#a52df2dc3c14334c805996d2859d3cc5f":[2,0,0,11,20], "classgame_1_1_dynamic_entity.html#a563dba7b96d5cd9b2f3203a46e083e33":[2,0,0,11,16], "classgame_1_1_dynamic_entity.html#a6dce5a6a66020d3bd307891c80c45fd1":[2,0,0,11,3], "classgame_1_1_dynamic_entity.html#a6f75dca56ae585a80655aee3a63d5f5c":[2,0,0,11,22], "classgame_1_1_dynamic_entity.html#a785f5fe8f67f116fc18d3baf259173ad":[2,0,0,11,21], "classgame_1_1_dynamic_entity.html#a7a4e985afda54897c3dc2833789410ec":[2,0,0,11,12], "classgame_1_1_dynamic_entity.html#a8501e368941754b009208a4a704cfc54":[2,0,0,11,8], "classgame_1_1_dynamic_entity.html#a890d6a2b7700ccb93678fa6663bf91b7":[2,0,0,11,7], "classgame_1_1_dynamic_entity.html#a8dceaae99463d0056c6511f6e569e464":[2,0,0,11,18], "classgame_1_1_dynamic_entity.html#a997d76b60a6b8bb8e0d4a762e708704e":[2,0,0,11,5], "classgame_1_1_dynamic_entity.html#a9ce79192e30e9dab2394a3582efc0082":[2,0,0,11,0], "classgame_1_1_dynamic_entity.html#a9e19e56721d4eb81d443627070f98cd3":[2,0,0,11,2], "classgame_1_1_dynamic_entity.html#aa2252ee9ace88fb3edf9227cc1c15794":[2,0,0,11,11], "classgame_1_1_dynamic_entity.html#ab45d4c66f3c295cf2d21ec87dcc44ee2":[2,0,0,11,15], "classgame_1_1_dynamic_entity.html#abfa079e3db0c8b0ddbc806f85260aefc":[2,0,0,11,17], "classgame_1_1_dynamic_entity.html#ad4c131e5833b886dc5fcc621e6648e7f":[2,0,0,11,1], "classgame_1_1_dynamic_entity.html#ae7c8223cab721c49dc26225d39d75782":[2,0,0,11,19], "classgame_1_1_dynamic_entity.html#aea973a38cd57633deac15b3e8c751f1c":[2,0,0,11,10], "classgame_1_1_dynamic_entity.html#aef9a3688219e0f337c66984ae987fad3":[2,0,0,11,9], "classgame_1_1_dynamic_entity.html#af12a392bc25ce3b402324e6f802587e9":[2,0,0,11,14], "classgame_1_1_dynamic_shape_physics.html":[2,0,0,12], "classgame_1_1_dynamic_shape_physics.html#a08b3f94493f74fba9a463c1133c67479":[2,0,0,12,2], "classgame_1_1_dynamic_shape_physics.html#a10abc21919725c7a0ab63d03a3256911":[2,0,0,12,6], "classgame_1_1_dynamic_shape_physics.html#a132bb60a9958bb6691f9ff1471c18e1f":[2,0,0,12,1], "classgame_1_1_dynamic_shape_physics.html#a5ba811127d093292396592194cd96e60":[2,0,0,12,5], "classgame_1_1_dynamic_shape_physics.html#ab5a5ead738e20e282e7c91c60510c750":[2,0,0,12,3], "classgame_1_1_dynamic_shape_physics.html#ade1ecc9c4e28a2edf9cfcdc4acbd48a6":[2,0,0,12,4], "classgame_1_1_dynamic_shape_physics.html#af5d976bc14ccedc299bfad3411997a44":[2,0,0,12,0], "classgame_1_1_effect.html":[2,0,0,13], "classgame_1_1_effect.html#a13007c2d5b74b9c4ee7510d92c6d4941":[2,0,0,13,12], "classgame_1_1_effect.html#a3656cdbb35bdf712979227b1111a7717":[2,0,0,13,0], "classgame_1_1_effect.html#a4232eff750c91cdba98cfa5e720d4b53":[2,0,0,13,8], "classgame_1_1_effect.html#a5a0ea9801cd7a345af86e6ca14687eef":[2,0,0,13,4], "classgame_1_1_effect.html#a715451ceefd438d68549dece8c6ed555":[2,0,0,13,6], "classgame_1_1_effect.html#a7dc6c6e6abd1febd13ba2876cc8e938d":[2,0,0,13,5], "classgame_1_1_effect.html#a8046576ba77bd3aecaf29c2ffea0c86a":[2,0,0,13,2], "classgame_1_1_effect.html#a91515e89656aff51f0c5b64e3fa4dd88":[2,0,0,13,9], "classgame_1_1_effect.html#a9fc567e8a7158c333eecc74a845d0f14":[2,0,0,13,10], "classgame_1_1_effect.html#aa7d0fcec8a185143e279ad724ed57cb1":[2,0,0,13,11], "classgame_1_1_effect.html#acdf96662ea43be98ced5b322c48937e5":[2,0,0,13,1], "classgame_1_1_effect.html#adb8e107171404284b80168b289d46480":[2,0,0,13,3], "classgame_1_1_effect.html#afc04637e02d11c8ee918d6624722b8d9":[2,0,0,13,7], "classgame_1_1_empty_event_data.html":[2,0,0,14], "classgame_1_1_entity.html":[2,0,0,15], "classgame_1_1_entity.html#a099314b06c2779253989bb7a1e5d86a7":[2,0,0,15,9], "classgame_1_1_entity.html#a1f202c62bb9e1e00e2310de9a1ad46fa":[2,0,0,15,14], "classgame_1_1_entity.html#a21b9a0e791337a8dea05598d55422f81":[2,0,0,15,11], "classgame_1_1_entity.html#a4255b29e6301f7099d23d4f12b1f32ae":[2,0,0,15,7], "classgame_1_1_entity.html#a5919692a1346b431b0a6a81d03c70382":[2,0,0,15,6], "classgame_1_1_entity.html#a5927202a84ea3ca6f7a6718bf092f2f6":[2,0,0,15,20], "classgame_1_1_entity.html#a5d715de89150ed4fc2b9b97461ee6d44":[2,0,0,15,1], "classgame_1_1_entity.html#a6146a19fe15e34351602f3d007883786":[2,0,0,15,12], "classgame_1_1_entity.html#a71f2ca318399c5fdc415bbd0d3664d95":[2,0,0,15,8], "classgame_1_1_entity.html#a767674ca317c2c640d66a878420fd7d7":[2,0,0,15,19], "classgame_1_1_entity.html#a7c5b0f76666be0c358d1e9086201c66d":[2,0,0,15,0], "classgame_1_1_entity.html#a85ed4d84e40c956e359bc0dba649c200":[2,0,0,15,21], "classgame_1_1_entity.html#aac5483134593f5638ac3d81d3a7f4930":[2,0,0,15,18], "classgame_1_1_entity.html#aacfde16275ec9962fb69fcc1e4b781e2":[2,0,0,15,10], "classgame_1_1_entity.html#ab0e883f155ad5a952f1f4463d86907ec":[2,0,0,15,23], "classgame_1_1_entity.html#ab6a4b75928517553b31c12da4fe94865":[2,0,0,15,3], "classgame_1_1_entity.html#ac03d8ae1d2df62c66b7b761607cc272f":[2,0,0,15,13], "classgame_1_1_entity.html#ad1c737fbf455c244ea7cd2ab1aadebdc":[2,0,0,15,16], "classgame_1_1_entity.html#ad548cd8d5ef8dfffb1211dad1fd991bf":[2,0,0,15,17], "classgame_1_1_entity.html#ae0bc050f28f35389a636ae953efd94de":[2,0,0,15,22], "classgame_1_1_entity.html#aed0a3e2b73d49235bd3b317992df9a6a":[2,0,0,15,5], "classgame_1_1_entity.html#aef339f771f6ff9c32570a51f0658aeae":[2,0,0,15,2], "classgame_1_1_entity.html#af254d1aa7d126a82b1abf884a97c53d3":[2,0,0,15,15], "classgame_1_1_entity.html#af92b5fb3bc18bd8d6b76b099ba58e057":[2,0,0,15,4], "classgame_1_1_entity_factory.html":[2,0,0,16], "classgame_1_1_event_controller.html":[2,0,0,17], "classgame_1_1_event_controller.html#a97c8470087ef23411d409b4b17c18fdd":[2,0,0,17,3], "classgame_1_1_event_controller.html#aa1ae0d0e10cdeae9e6e5121fe249744a":[2,0,0,17,2], "classgame_1_1_event_controller.html#ac769d057a6f798aaf83ff02b8ea2508d":[2,0,0,17,0], "classgame_1_1_event_controller.html#af05fff1e92c31429546da4aec276391f":[2,0,0,17,1], "classgame_1_1_event_controller.html#aff305bc5c7ff8f577b5a452762f25d5b":[2,0,0,17,4], "classgame_1_1_extended_sequence_render_strategy.html":[2,0,0,18], "classgame_1_1_extended_sequence_render_strategy.html#a59853d16e8cdae92d50a8f80410a88cc":[2,0,0,18,5], "classgame_1_1_extended_sequence_render_strategy.html#a8f4f7998b240e9aa6f5bda6925506f1c":[2,0,0,18,1], "classgame_1_1_extended_sequence_render_strategy.html#a99893c8ee85529e19c5c3b5e87ee19b9":[2,0,0,18,4], "classgame_1_1_extended_sequence_render_strategy.html#aab9fd3b10f78cd30bb87fd40169eee1e":[2,0,0,18,0], "classgame_1_1_extended_sequence_render_strategy.html#ad87d9dde6730622f1ea0f0c64bcbdefa":[2,0,0,18,2], "classgame_1_1_extended_sequence_render_strategy.html#ae0268089f628e3e0b8db3ec9b8691b59":[2,0,0,18,3], "classgame_1_1_function_observer.html":[2,0,0,19], "classgame_1_1_function_observer.html#a2eb48436be9a1d6511ed3ec5477a6be9":[2,0,0,19,0], "classgame_1_1_function_observer.html#adbe4934ba8fe2e900e035706af339c39":[2,0,0,19,1], "classgame_1_1_game.html":[2,0,0,20], "classgame_1_1_game.html#a1b528b6a82b00a8bf38a7f7d6636b7b7":[2,0,0,20,2], "classgame_1_1_game.html#a210ec1a2b547930defde1c84bc2d2b26":[2,0,0,20,17], "classgame_1_1_game.html#a21c28e602532d918e81aaf5a9e8e5cfd":[2,0,0,20,13], "classgame_1_1_game.html#a21cbd1508baf961449f2c9ee92da51ea":[2,0,0,20,8], "classgame_1_1_game.html#a296590b50aa4811567e0a5f080b97f39":[2,0,0,20,10], "classgame_1_1_game.html#a353def6296c17344ec04c92987476abf":[2,0,0,20,14], "classgame_1_1_game.html#a744c476f344c1e00a33196bba3a81507":[2,0,0,20,20], "classgame_1_1_game.html#a7a48492e6c5bec3d2a1176efc0ed7426":[2,0,0,20,22], "classgame_1_1_game.html#a7f426d9c7153c91d30679abbcec5a022":[2,0,0,20,5], "classgame_1_1_game.html#a8477e53e225b30cb18ad9790fedb35de":[2,0,0,20,19], "classgame_1_1_game.html#a84aaaffabc44cb91aa5fbbd473c49ce4":[2,0,0,20,7], "classgame_1_1_game.html#a9fd96a37b55d908071105879d015df8c":[2,0,0,20,1], "classgame_1_1_game.html#aa7d47634cbca6276d5131b5e5e12a595":[2,0,0,20,12], "classgame_1_1_game.html#aaa03fc5b6857f18770a53a6890cd16e9":[2,0,0,20,16], "classgame_1_1_game.html#aba492678202825bbf66b421c5cfedd72":[2,0,0,20,18], "classgame_1_1_game.html#acd1256b39ed15fce3c80f0b1ca5f0e2c":[2,0,0,20,3], "classgame_1_1_game.html#ae407875181500371d3d6590682e5ad64":[2,0,0,20,4], "classgame_1_1_game.html#ae4f57f3dcdfbd41c305aedb0e6cafe78":[2,0,0,20,11], "classgame_1_1_game.html#ae59b3666b6ded824ec3d8e2eb9850a7d":[2,0,0,20,0], "classgame_1_1_game.html#af18fed1e856aa9ecc1298f91748a9b95":[2,0,0,20,6], "classgame_1_1_game.html#af32dd523277012e6db6da3ef2b96a9c3":[2,0,0,20,9], "classgame_1_1_game.html#af42fcd06ca898a1dfcfc4b3dfc840a09":[2,0,0,20,15], "classgame_1_1_game.html#af64e72fa552ec7882f3614877da51c96":[2,0,0,20,21], "classgame_1_1_game.html#af8bc43b3e5f553c9235624227a11ea28":[2,0,0,20,23], "classgame_1_1_game_base.html":[2,0,0,21], "classgame_1_1_game_base.html#a072f5792cd8391c7d82491125a304891":[2,0,0,21,11], "classgame_1_1_game_base.html#a10ce0e6f4b7a9c933725222e93050591":[2,0,0,21,1], "classgame_1_1_game_base.html#a2ee87bdaada5ddc627f2aee355674d5e":[2,0,0,21,7], "classgame_1_1_game_base.html#a3fb423734184d51f8a2a292d34ac6c9a":[2,0,0,21,6], "classgame_1_1_game_base.html#a400c6d1959b9dd496e9cd1f33605727e":[2,0,0,21,14], "classgame_1_1_game_base.html#a716c837ab4db6867c22edfa19e56d22e":[2,0,0,21,16], "classgame_1_1_game_base.html#a72c448e24cc4835b8efcf8c456476676":[2,0,0,21,15], "classgame_1_1_game_base.html#a7524b494aaea21b00a229435a196a6e3":[2,0,0,21,2], "classgame_1_1_game_base.html#a7db94fcd53904599f7b7351251719b34":[2,0,0,21,3], "classgame_1_1_game_base.html#aa13e78089b7f3835211b0633118fc97e":[2,0,0,21,12], "classgame_1_1_game_base.html#aa6caac1cf2eedd78782778540bff3f6d":[2,0,0,21,10], "classgame_1_1_game_base.html#aa90cbb7b9ddd65be5ea165f06d0a65bd":[2,0,0,21,17], "classgame_1_1_game_base.html#ab5bc890ff83832a20b27244af614850c":[2,0,0,21,8], "classgame_1_1_game_base.html#ad01abe5d08c11d795f4ed69bd08dcee0":[2,0,0,21,5], "classgame_1_1_game_base.html#ad383cdcb3c737eb53046cd213de16795":[2,0,0,21,0], "classgame_1_1_game_base.html#ad41b8e862e22aaf9d4578cb326c60250":[2,0,0,21,13], "classgame_1_1_game_base.html#aea6f3ab9c30a035baf77b44cd1752ecf":[2,0,0,21,4], "classgame_1_1_game_base.html#afb46c8dd253dd5fb4407981a833d15cb":[2,0,0,21,9], "classgame_1_1_game_object.html":[2,0,0,22], "classgame_1_1_game_object.html#a1cb39a781f2392814e2ea69794e94616":[2,0,0,22,4], "classgame_1_1_game_object.html#a40fb2192af57548f63da9c246aedf6cc":[2,0,0,22,6], "classgame_1_1_game_object.html#a5783be79ed4f1790a63742d232f23851":[2,0,0,22,1], "classgame_1_1_game_object.html#a6d5dca66962ea48a018393f0963b7c48":[2,0,0,22,2], "classgame_1_1_game_object.html#a6df23f8f0e7dd79bfc0ec7c5dfa9790d":[2,0,0,22,0], "classgame_1_1_game_object.html#a8d1fdd02dcba670770efaad6a3a9db3f":[2,0,0,22,5], "classgame_1_1_game_object.html#ae1f1cc3617d19b981be9416b64b31b56":[2,0,0,22,3], "classgame_1_1_game_world.html":[2,0,0,24], "classgame_1_1_game_world.html#a8bbf264af614c08e266ed1136217fb14":[2,0,0,24,0], "classgame_1_1_game_world.html#abd138fadf761dcba2f530bdc4d7a1a3d":[2,0,0,24,2], "classgame_1_1_game_world.html#af985c09e4ea799eda4839b68cf5f3407":[2,0,0,24,1], "classgame_1_1_game_world_factory.html":[2,0,0,25], "classgame_1_1_graphic_tools.html":[2,0,0,27], "classgame_1_1_invisible_render_strategy.html":[2,0,0,28], "classgame_1_1_invisible_render_strategy.html#a1ab20ab678d9f043a5a2b9dc95a40c02":[2,0,0,28,0], "classgame_1_1_invisible_render_strategy.html#a7a3f54b63c56680e72fd0df8131deac6":[2,0,0,28,2], "classgame_1_1_invisible_render_strategy.html#afc81ced340d4a1daf6737a8ecc84bf1f":[2,0,0,28,1], "classgame_1_1_kinematic_entity.html":[2,0,0,29], "classgame_1_1_kinematic_entity.html#a01da2c7df5376c706371989229c62f8b":[2,0,0,29,7], "classgame_1_1_kinematic_entity.html#a0662204c5dc77e2cb624b4701c1e77be":[2,0,0,29,8], "classgame_1_1_kinematic_entity.html#a066ac19adf760141c486a469127e7322":[2,0,0,29,1], "classgame_1_1_kinematic_entity.html#a0cef4d8f31d96aedeba3015538f182f4":[2,0,0,29,2], "classgame_1_1_kinematic_entity.html#a1caea469558dc26be1f89c1774fbe613":[2,0,0,29,12], "classgame_1_1_kinematic_entity.html#a1ef05a227da4390af8a8ec9552dff7f0":[2,0,0,29,18], "classgame_1_1_kinematic_entity.html#a2211d1b00ea6b90da010121360b13199":[2,0,0,29,5], "classgame_1_1_kinematic_entity.html#a2acd665e6dc08e67718633879884765c":[2,0,0,29,0], "classgame_1_1_kinematic_entity.html#a6381cc1a8b5d0de64d73cb218d32181d":[2,0,0,29,14], "classgame_1_1_kinematic_entity.html#a69f173a5134f4bbbd90b2f8335b1e647":[2,0,0,29,15], "classgame_1_1_kinematic_entity.html#a6d91c5afbfae069227a7b70c51a6e2fe":[2,0,0,29,13], "classgame_1_1_kinematic_entity.html#a7b9cb7a3a13cdf1cc6d5312a97714431":[2,0,0,29,3], "classgame_1_1_kinematic_entity.html#a9601e4a1c180c04af5126064a8dc67fd":[2,0,0,29,16], "classgame_1_1_kinematic_entity.html#aa02348efcdc4b09a560ee1b3de8a2e0d":[2,0,0,29,4], "classgame_1_1_kinematic_entity.html#ab6fb9834427b256894a445d2f6176ab8":[2,0,0,29,9], "classgame_1_1_kinematic_entity.html#ac7db784adc56d72d205cb2f1b2c0a772":[2,0,0,29,10], "classgame_1_1_kinematic_entity.html#ae1a1e3cf7b5cc7308f5ef44124e4137a":[2,0,0,29,6], "classgame_1_1_kinematic_entity.html#aeda32b00e311a877b67220ceb99feed2":[2,0,0,29,11], "classgame_1_1_kinematic_entity.html#aef943d9192cb774ecf3aec3e790a7625":[2,0,0,29,19], "classgame_1_1_kinematic_entity.html#af50acf00194b79af2649f52e5a591dbe":[2,0,0,29,17], "classgame_1_1_kinematic_shape_physics.html":[2,0,0,30], "classgame_1_1_kinematic_shape_physics.html#a485c85bb83c6e1726ddae7bd2c028d28":[2,0,0,30,1], "classgame_1_1_kinematic_shape_physics.html#a80500ef8e068ada58c40efa003a501b4":[2,0,0,30,2], "classgame_1_1_kinematic_shape_physics.html#a856808c64bc59dd11066b95ad27ab01a":[2,0,0,30,5], "classgame_1_1_kinematic_shape_physics.html#aa0941fc26af52876cb8cf4ae18262969":[2,0,0,30,4], "classgame_1_1_kinematic_shape_physics.html#abbe5effa8cf3a6d991ccebeb3ffdf510":[2,0,0,30,0], "classgame_1_1_kinematic_shape_physics.html#ad17889dd0be9b5e9d257852739f234e1":[2,0,0,30,3], "classgame_1_1_method_observer.html":[2,0,0,33], "classgame_1_1_method_observer.html#a580eda077725d3994a76b6e9f2d2c3a2":[2,0,0,33,0], "classgame_1_1_method_observer.html#a925951c5841fb123652f9fcd9bcf9380":[2,0,0,33,2], "classgame_1_1_method_observer.html#a9a86686fcb9d2527fd0c75d43a9265af":[2,0,0,33,1], "classgame_1_1_observable.html":[2,0,0,34], "classgame_1_1_observable.html#a0530645020afa521b6b667cb6f7d43ea":[2,0,0,34,5], "classgame_1_1_observable.html#a4a1a92b329f367e4d5aacca3efb402b1":[2,0,0,34,1], "classgame_1_1_observable.html#a58c3cda37c71ca09c6279c5b3f0f5809":[2,0,0,34,0], "classgame_1_1_observable.html#a5e7d2de06d5031942713c860d9d9010e":[2,0,0,34,4], "classgame_1_1_observable.html#a713d0dbc0c4838b3fd38528b6a51bb7a":[2,0,0,34,2], "classgame_1_1_observable.html#a7143df296f3b29151237c8c686639049":[2,0,0,34,6], "classgame_1_1_observable.html#a9a607d889cb6534e5ab508f198344d69":[2,0,0,34,3], "classgame_1_1_observable_base.html":[2,0,0,35], "classgame_1_1_observable_base.html#a93c81f64842821474f89cea3b7cc14a8":[2,0,0,35,2], "classgame_1_1_observable_base.html#a976169e8df525fc81e8662362bc60f4b":[2,0,0,35,0], "classgame_1_1_observable_base.html#ae2480ddd4429c173eb2bf6ab3645e198":[2,0,0,35,1], "classgame_1_1_observable_counter.html":[2,0,0,36], "classgame_1_1_observer.html":[2,0,0,37], "classgame_1_1_observer.html#a2744bd808c7212c0a12a3064da94ac7f":[2,0,0,37,0], "classgame_1_1_observer.html#a7b19ceed703b5cc72621d9f761154b6f":[2,0,0,37,4], "classgame_1_1_observer.html#a87b7a8416f6c6880f19c64a0da5c678f":[2,0,0,37,3], "classgame_1_1_observer.html#a958c3818b7778a26a8f2182f8c53da27":[2,0,0,37,2], "classgame_1_1_observer.html#accbd254b3e1b21c8509618b94d66cc26":[2,0,0,37,5], "classgame_1_1_observer.html#afc5fbba3e2a594e2a771121f684f0d9c":[2,0,0,37,1], "classgame_1_1_on_key_press.html":[2,0,0,38], "classgame_1_1_on_key_press.html#a1670ea54eb08cc32db0fad452394ad9d":[2,0,0,38,0], "classgame_1_1_overlay_display.html":[2,0,0,39], "classgame_1_1_overlay_display.html#a0e764d1b747c6c54f1ef176aaade874e":[2,0,0,39,1], "classgame_1_1_overlay_display.html#a39bf529e5a18bfb0461c95daf820d583":[2,0,0,39,3], "classgame_1_1_overlay_display.html#a3ca3dced3e60da42e74758261816abae":[2,0,0,39,6], "classgame_1_1_overlay_display.html#a55cf08f500aec389c28aa78dd8515054":[2,0,0,39,0], "classgame_1_1_overlay_display.html#a803807620223389c5029d575a1cf17d7":[2,0,0,39,5], "classgame_1_1_overlay_display.html#ac41b7fb458021d416a42a696a44843bc":[2,0,0,39,4], "classgame_1_1_overlay_display.html#af4997b09dd386f53420c0fe2c7b90b94":[2,0,0,39,2], "classgame_1_1_polygon_shape.html":[2,0,0,40], "classgame_1_1_polygon_shape.html#a42227760a1778ae0437dec1578aba00b":[2,0,0,40,2], "classgame_1_1_polygon_shape.html#a4ada5c8fcf32dfa2a92fef53f1f8ac52":[2,0,0,40,0], "classgame_1_1_polygon_shape.html#a7241445b157576282c2a042a294f6773":[2,0,0,40,1], "classgame_1_1_polygon_shape.html#a745bc947a22d62a251ba546982202d00":[2,0,0,40,3], "classgame_1_1_polygon_shape.html#a9beb47ab0d641cc42102afebc3c9e7ed":[2,0,0,40,4], "classgame_1_1_pose_converter.html":[2,0,0,42], "classgame_1_1_pose_converter.html#a34c18776315d822ca4210b3d587e033e":[2,0,0,42,3], "classgame_1_1_pose_converter.html#a3895eb4b383b778e000bd5e539ee2456":[2,0,0,42,2], "classgame_1_1_pose_converter.html#a43c642c153a0c4937e824dd248dfaf2c":[2,0,0,42,6], "classgame_1_1_pose_converter.html#a4fcbbc0899de8f76c8f674551501d914":[2,0,0,42,10], "classgame_1_1_pose_converter.html#a6a96f18aa24f7f65e6b4f5b31602eb96":[2,0,0,42,1], "classgame_1_1_pose_converter.html#a6ff48bdcb7d145aa9b4841a911f6170d":[2,0,0,42,11], "classgame_1_1_pose_converter.html#a8182b32156ade5368c4a40ceeaeb6d81":[2,0,0,42,0], "classgame_1_1_pose_converter.html#a9b3d9ce9e869435c1b39dc6cda205c8a":[2,0,0,42,5], "classgame_1_1_pose_converter.html#aa9fff05cda53f978817899583fc4f0c7":[2,0,0,42,8], "classgame_1_1_pose_converter.html#ad9b036b8f98b7acc8b93015c7bb7c693":[2,0,0,42,7], "classgame_1_1_pose_converter.html#ae83c5ca3be9cc61c4e87f5f2dd7ca9ae":[2,0,0,42,4] };
// Projects service used to communicate Projects REST endpoints (function () { 'use strict'; angular .module('projects') .factory('ProjectsService', ProjectsService); ProjectsService.$inject = ['$resource', '$log']; function ProjectsService($resource, $log) { var Project = $resource('/api/projects/:projectId', { projectId: '@_id' }, { update: { method: 'PUT' }, forProgram: { method: 'GET', url: '/api/projects/for/program/:programId', isArray: true }, makeRequest: { method: 'GET', url :'/api/request/project/:projectId' }, my: { method: 'GET', url: '/api/my/projects', isArray: true }, myadmin: { method: 'GET', url: '/api/myadmin/projects', isArray: true }, getRequests: { method: 'GET', url :'/api/projects/requests/:projectId', isArray: true }, getMembers: { method: 'GET', url :'/api/projects/members/:projectId', isArray: true }, confirmMember: { method: 'GET', url : '/api/projects/requests/confirm/:projectId/:userId' }, denyMember: { method: 'GET', url : '/api/projects/requests/deny/:projectId/:userId' } }); angular.extend(Project.prototype, { createOrUpdate: function () { var project = this; return createOrUpdate(project); } }); return Project; function createOrUpdate(project) { if (project._id) { return project.$update(onSuccess, onError); } else { return project.$save(onSuccess, onError); } // Handle successful response function onSuccess() { // Any required internal processing from inside the service, goes here. } // Handle error response function onError(errorResponse) { var error = errorResponse.data; // Handle error internally handleError(error); } function handleError(error) { // Log error $log.error(error); } } } }());
// internals import { inspect } from 'util' // packages import core from '@actions/core' // modules import main from './lib/index.js' // parse inputs const inputs = { token: core.getInput('github-token', { required: true }), target: core.getInput('target', { required: false }), command: core.getInput('command', { required: false }), approve: core.getInput('approve', { required: false }) } // error handler function errorHandler ({ message, stack, request }) { core.error(`${message}\n${stack}`) // debugging for API calls if (request) { const { method, url, body, headers } = request core.debug(`${method} ${url}\n\n${inspect(headers)}\n\n${inspect(body)}`) } process.exit(1) } // catch errors and exit process.on('unhandledRejection', errorHandler) process.on('uncaughtException', errorHandler) await main(inputs)
import { Template } from 'meteor/templating'; import { Blaze } from 'meteor/blaze'; import _ from 'underscore'; import $ from 'jquery'; let zIndexBackdrop = 1060; let zIndexModal = 1061; OHIF.ui.showDialog = (templateName, dialogData={}) => { // Check if the given template exists const template = Template[templateName]; if (!template) { throw { name: 'TEMPLATE_NOT_FOUND', message: `Template ${templateName} not found.` }; } let promise; let templateData; if (dialogData && dialogData.promise instanceof Promise) { // Use the given promise to control the modal promise = dialogData.promise; templateData = dialogData; } else { // Create a new promise to control the modal and store its resolve and reject callbacks let promiseResolve; let promiseReject; promise = new Promise((resolve, reject) => { promiseResolve = resolve; promiseReject = reject; }); // Render the dialog with the given template passing the promise object and callbacks templateData = _.extend({}, dialogData, { promise, promiseResolve, promiseReject }); } const view = Blaze.renderWithData(template, templateData, document.body); const node = view.firstNode(); const $node = node && $(node); let $modal; if ($node && $node.hasClass('modal')) { $modal = $node; } else if ($node && $node.has('.modal')) { $modal = $node.find('.modal:first'); } $modal.one('show.bs.modal', function() { setTimeout(() => { const $modal = $(this); const modal = $modal.data('bs.modal'); if (!modal) return; const { $backdrop } = modal; if (!$backdrop) return; $backdrop.css('z-index', zIndexBackdrop); $modal.css('z-index', zIndexModal); zIndexBackdrop += 2; zIndexModal += 2; }); }); // Destroy the created dialog view when the promise is either resolved or rejected const dismissModal = (hideFirst=false) => { if (hideFirst || (dialogData && dialogData.promise && $modal)) { $modal.one('hidden.bs.modal', () => Blaze.remove(view)).modal('hide'); } else { Blaze.remove(view); } }; // Create a handler to dismiss the modal on navigation const $body = $(document.body); const navigationHandler = () => { dismissModal(true); $body.off('ohif.navigated', navigationHandler); }; promise.then(() => dismissModal(false)).catch(() => dismissModal(false)); // Dismiss the modal if navigation occurs and it should not be kept opened if (!dialogData.keepOpenOnNavigation) { $body.on('ohif.navigated', navigationHandler); } // Return the promise to allow callbacks stacking from outside return promise; };
/* eslint-disable no-unused-vars */ /* eslint-disable no-undef */ import React, { useEffect, useState } from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; import styles from './StackCellStyles'; import { CellSize, BoardWidth, BorderWidth } from '../GlobalStyle'; import { number, func } from 'prop-types'; const Offset = (BoardWidth - CellSize * 9 - BorderWidth * 8) / 2; const StackCell = ({ index, number, onPress }) => { const initLeft = (BoardWidth / 9) * number + (BoardWidth / 9 - CellSize) / 2; const initTop = index; const [hide, setHide] = useState(false); const [left, setLeft] = useState(initLeft); const [top, setTop] = useState(initTop); const moveTo = (index, onMoveFinish) => { const x = index % 9; const y = (index - x) / 9; const gap = BorderWidth * 2; const left = CellSize * x + gap * (Math.floor(x / 3) + 1) + Offset; const top = -20 - CellSize * (9 - y) - gap * (Math.floor((8 - y) / 3) + 1); setLeft(left); setTop(top); setTimeout(() => { onMoveFinish && onMoveFinish(); }, 300); }; useEffect(() => { if (hide) { onFinish(); } }, [hide]); const moveBack = onMoveFinish => { setLeft(initLeft); setTop(initTop); setTimeout(() => { onMoveFinish && onMoveFinish(); }, 300); }; const reset = () => { setHide(false); setLeft(initLeft); setTop(initTop); }; if (hide) return null; return ( <TouchableOpacity onPress={() => { onPress(number); }} activeOpacity={0.8} style={[styles.container, { top, left }]}> <View style={styles.cell}> <Text style={styles.text}>{number + 1}</Text> </View> </TouchableOpacity> ); }; StackCell.propTypes = { index: number.isRequired, number: number.isRequired, onPress: func.isRequired, }; export default StackCell;
// eslint-disable-next-line import/order import { initUserStorage } from '../../../lib/userStorage/__tests__/__util__' import React from 'react' import renderer from 'react-test-renderer' import { getWebRouterComponentWithMocks } from '../../dashboard/__tests__/__util__' import GDStore from '../../../lib/undux/GDStore' import SimpleStore from '../../../lib/undux/SimpleStore' // Note: test renderer must be required after react-native. jest.setTimeout(30000) describe('Profile', () => { beforeAll(async () => { await initUserStorage() }) it('renders without errors', () => { const Profile = getWebRouterComponentWithMocks('../../profile/Profile') const tree = renderer.create( <SimpleStore.Container> <GDStore.Container> <Profile /> </GDStore.Container> </SimpleStore.Container>, ) expect(tree.toJSON()).toBeTruthy() }) it('matches snapshot', () => { const Profile = getWebRouterComponentWithMocks('../../profile/Profile') const component = renderer.create( <SimpleStore.Container> <GDStore.Container> <Profile /> </GDStore.Container> </SimpleStore.Container>, ) const tree = component.toJSON() expect(tree).toMatchSnapshot() }) })
define( ({ _widgetLabel: "Editor de Atributos em Batch", widgetIntroSelectByArea: "Utilize uma das ferramentas abaixo para criar o conjunto selecionado de elementos a atualizar. Se a linha estiver <font class=\'maxRecordInIntro\'>destacada</font>, o número máximo de registos foi excedido.", widgetIntroSelectByFeature: "Utilize a ferramenta abaixo para selecionar um elemento da camada <font class=\'layerInIntro\'>${0}</font> . Este elemento será utilizado selecionar e atualizar todos os elementos em interseção. Se a linha estiver <font class=\'maxRecordInIntro\'>destacada</font>, o número máximo de registos foi excedido.", widgetIntroSelectByFeatureQuery: "Utilize a ferramenta abaixo para selecionar um elemento de <font class=\'layerInIntro\'>${0}</font> . O atributo <font class=\'layerInIntro\'>${1}</font> desta camada será utilizado para consultar as camadas abaixo e atualizar os elementos resultantes. Se a linha estiver <font class=\'maxRecordInIntro\'>destacada</font>, o número máximo de registos foi excedido.", widgetIntroSelectByQuery: "Introduza um valor para criar um conjunto de seleção. Se a linha estiver <font class=\'maxRecordInIntro\'>destacada</font>, o número máximo de registos foi excedido.", layerTable: { colLabel: "Nome da Camada", numSelected: "#", colSyncStatus: "" }, noConfiguredLayers: "Não foram configuradas quaisquer camadas editáveis", editorPopupTitle: "Editor de Atributos em Batch", editorPopupSaveBtn: "Guardar", editorPopupMultipleValues: "", clear: "Limpar", featuresUpdated: "${0} / ${1} elemento(s) atualizado(s)", featuresSelected: "${0} elemento(s) selecionado(s)", featuresSkipped: "Ignorados", search: "Pesquisar", queryInput: "Introduza um valor para consulta", noFilterTip: "Sem uma expressão de filtro definida, esta tarefa de consulta irá listar todos os elementos na fonte de dados especificada.", setFilterTip: "Por favor, defina o filtro corretamente.", filterPopup: "Filtrar Camada", cancel: "Cancelar", ok: "OK", drawBox: { point: "Ponto", line: "Linha", polyline: "Polilinha", freehandPolyline: "Polilinha À Mão Livre", extent: "Estender", polygon: "Polígono", freehandPolygon: "Polígono À Mão Livre", clear: "Limpar", addPointToolTip: "Clique para selecionar nesta área", addShapeToolTip: "Desenhe uma forma para selecionar elementos", freehandToolTip: "Mantenha pessionado para desenhar uma forma para selecionar elementos", startToolTip: "Desenhe uma forma para selecionar elementos" }, errors: { layerNotFound: "A camada ${0} com a ID ${1} não foi encontrada no mapa, o mapa pode ter sido alterado desde a configuração dos widgets", queryNullID: "O elemento de ${0} foi devolvido com uma ID inválida", noSelectedLayers: "Não existem camadas selecionadas com registos para atualizar", inputValueError: "Valor inválido no formulário" } }) );
import test from 'tape' import {h} from 'hastscript' import {toHtml} from '../index.js' test('`tbody` (opening)', (t) => { t.deepEqual( toHtml(h('tbody'), {omitOptionalTags: true}), '<tbody>', 'should not omit tag without children' ) t.deepEqual( toHtml(h('tbody', h('tr')), {omitOptionalTags: true}), '<tr>', 'should omit tag if head is `tr`' ) t.deepEqual( toHtml(h('table', [h('thead', h('tr')), h('tbody', h('tr'))]), { omitOptionalTags: true }), '<table><thead><tr><tbody><tr></table>', 'should not omit tag preceded by an omitted `thead` closing tag' ) t.deepEqual( toHtml(h('table', [h('tbody', h('tr')), h('tbody', h('tr'))]), { omitOptionalTags: true }), '<table><tr><tbody><tr></table>', 'should not omit tag preceded by an omitted `tbody` closing tag' ) t.end() })
module.exports=['\u0964','\u0965','\u0C00','\u0C01','\u0C02','\u0C03','\u0C05','\u0C06','\u0C07','\u0C08','\u0C09','\u0C0A','\u0C0B','\u0C0C','\u0C0E','\u0C0F','\u0C10','\u0C12','\u0C13','\u0C14','\u0C15','\u0C16','\u0C17','\u0C18','\u0C19','\u0C1A','\u0C1B','\u0C1C','\u0C1D','\u0C1E','\u0C1F','\u0C20','\u0C21','\u0C22','\u0C23','\u0C24','\u0C25','\u0C26','\u0C27','\u0C28','\u0C2A','\u0C2B','\u0C2C','\u0C2D','\u0C2E','\u0C2F','\u0C30','\u0C31','\u0C32','\u0C33','\u0C34','\u0C35','\u0C36','\u0C37','\u0C38','\u0C39','\u0C3D','\u0C3E','\u0C3F','\u0C40','\u0C41','\u0C42','\u0C43','\u0C44','\u0C46','\u0C47','\u0C48','\u0C4A','\u0C4B','\u0C4C','\u0C4D','\u0C55','\u0C56','\u0C58','\u0C59','\u0C60','\u0C61','\u0C62','\u0C63','\u0C66','\u0C67','\u0C68','\u0C69','\u0C6A','\u0C6B','\u0C6C','\u0C6D','\u0C6E','\u0C6F','\u0C78','\u0C79','\u0C7A','\u0C7B','\u0C7C','\u0C7D','\u0C7E','\u0C7F']
import { createApp } from 'vue' import { createI18n } from 'vue-i18n' import App from './App.vue' import ja from './locales/ja.json' import en from './locales/en.yaml' const i18n = createI18n({ legacy: false, locale: 'ja', messages: { en, ja } }) const app = createApp(App) app.use(i18n) app.mount('#app')
/** * SPDX-License-Identifier: Apache-2.0 */ import { handleActions } from 'redux-actions' import { Record } from 'immutable' import * as actionTypes from '../actions/action-types' const InitialState = new Record({ loaded: false, peerStatus: [], errors: {}, }) const peerStatus = handleActions({ [actionTypes.PEER_STATUS_POST]: (state = InitialState(), action) => state .set('peerStatus', action.payload.peers) .set('loaded', true) .set('errors', action.error) }, new InitialState()); export default peerStatus
const { entity } = require('./entities') /** Lazily resolves a query's _target property */ module.exports = (q,defs) => { if (!q._target || q._target.kind !== 'entity') Object.defineProperty (q, '_target', {value:( q.SELECT ? _resolve (q.SELECT.from, defs) : q.INSERT ? _resolve (q.INSERT.into, defs) : q.UPDATE ? _resolve (q.UPDATE.entity, defs) : q.DELETE ? _resolve (q.DELETE.from, defs) : _resolve (undefined) ), configurable:true, writable:true }) return q._target } const _resolve = (from, defs) => { if (!from || from.name) return from if (from.join || from.set) return //_unresolved() if (from.ref) { if (from.ref.length === 1) { from = from.ref[0] if (from.id) from = from.id } else { let target = {elements:defs} for (let each of from.ref) { const e = each.id || each const a = target.elements[e]; if (!a) return _unresolved (target.name +':'+e) target = defs [a.target || a.name]; if (!target) return _unresolved (a.target) } return target } } return defs[from] || _unresolved(from) } const _unresolved = (name) => { return { name, __proto__:entity.prototype, _unresolved:true } }
import React from 'react' import renderer from 'react-test-renderer' import Roller from './Roller' describe('Roller component', () => { test('should render correctly', () => { const tree = renderer.create(<Roller />).toJSON() expect(tree).toMatchSnapshot() }) })
// internal methods /** */ console.log("---------------01--------internal method--------------------------"); // inserte or delete let fruits = ["Banana"]; let arr = fruits; // copy by refrence ( two variables refrence the same array) console.log(arr); // 'Banana' console.log(arr == fruits); // true arr.push("Pear"); // modifi the array by refrence console.log(fruits); // 'Banana' , 'Pear'
import Vue from 'vue' import router from '@/router' let actions = { // table data getItems({commit, state, getters}) { commit('setLoadingStatus', true) Vue.http.get(getters.path('i')) .then((response) => { commit('setItems', response.body) commit('setLoadingStatus', false) }, error => { commit('alertError', error.statusText, { root: true }) }); }, getItemsServerSide({commit, state, getters}, [params]) { return new Promise((resolve, reject) => { commit('setLoadingStatus', true) Vue.http.post(getters.path('i') + '/search', params) .then((response) => { commit('setItemsServerSide', response.body) resolve() }), error => { commit('alertError', error.statusText, { root: true }) } }) }, // item details getItem({commit, state, getters}, [id]) { return new Promise((resolve, reject) => { commit('setDetailsLoader', true) Vue.http.get(getters.path('sh') + '/' + id) .then((response) => { commit('setItem', response.body) commit('setDetailsLoader', false) resolve() }), error => { commit('alertError', error.statusText, { root: true }) } }) }, updateItem({commit, dispatch, state, getters}, [id, params, successText, errorText]) { return new Promise((resolve, reject) => { Vue.http.put(getters.path('u') + '/' + id, params) .then((response) => { if (response.body.status == 0) { commit('alertSuccess', successText, { root: true }) commit('refreshTable') resolve() } else if (response.body.status == -1) { commit('alertError', response.body.msg, { root: true }) } else if (response.body.status == -2) { commit('alertValidationError', response.body.msg, { root: true }) } }, error => { commit('alertError', error.statusText, { root: true }) }) }) }, storeItem({commit, dispatch, state, getters}, [params, successText, errorText]) { return new Promise((resolve, reject) => { Vue.http.post(getters.path('st'), params) .then((response) => { if (response.body.status == 0) { commit('alertSuccess', successText, { root: true }) commit('refreshTable') resolve() } else if (response.body.status == -1) { commit('alertError', response.body.msg, { root: true }) } else if (response.body.status == -2) { commit('alertValidationError', response.body.msg, { root: true }) } if(state.createdElement.mode == 'inform'){ commit('setCreatedItemStatus', [true, response.body.id]) } }, error => { commit('alertError', error.statusText, { root: true }) }); }) }, deleteItem({commit, dispatch, state, getters}, [id, successText, errorText]) { Vue.http.delete(getters.path('d') + '/' + id) .then((response) => { commit('alertSuccess', successText, { root: true }) commit('refreshTable') }, error => { commit('alertError', error.statusText, { root: true }) }); }, mulitipleItemsUpdate({commit, dispatch, state, getters}, [params, successText, errorText]){ Vue.http.post(getters.path('mu') + '/multiple-update', params) .then((response) => { commit('alertSuccess', successText, { root: true }) commit('refreshTable') }, error => { commit('alertError', error.statusText, { root: true }) }); }, mulitipleItemsDelete({commit, dispatch, state, getters}, [ids, successText, errorText]){ Vue.http.post(getters.path('md') + '/multiple-delete', ids) .then((response) => { commit('alertSuccess', successText, { root: true }) commit('refreshTable') }, error => { commit('alertError', error.statusText, { root: true }) }); }, // item elements getItemElements({commit, state, getters}) { let url = state.itemElements.url.replace('{id}', state.itemElements.id); Vue.http.get(url) .then((response) => commit('setItemElements', response.body)) }, addItemElement({commit, dispatch, state, getters}, [params, successText, errorText]) { Vue.http.post(state.itemElements.controller, params) .then((response) => { commit('alertSuccess', successText, { root: true }) dispatch('getItemElements') }, error => { commit('alertError', error.statusText, { root: true }) }); }, removeItemElement({commit, dispatch, state, getters}, [id, successText, errorText]) { Vue.http.delete(state.itemElements.controller + '/' + id) .then((response) => { commit('alertSuccess', successText, { root: true }) dispatch('getItemElements') }, error => { commit('alertError', error.statusText, { root: true }) }); }, addManyItemElements({commit, dispatch, state, getters}, [params, successText, errorText]) { Vue.http.post(state.itemElements.controller + '/multiple-add', params) .then((response) => { commit('alertSuccess', successText, { root: true }) dispatch('getItemElements') }, error => { commit('alertError', error.statusText, { root: true }) }); }, removeManyItemElements({commit, dispatch, state, getters}, [ids, successText, errorText]) { Vue.http.post(state.itemElements.controller + '/multiple-delete', ids) .then((response) => { commit('alertSuccess', successText, { root: true }) dispatch('getItemElements') }, error => { commit('alertError', error.statusText, { root: true }) }); }, // extented details getItemDetails({commit, state, getters}, [id]) { return new Promise((resolve, reject) => { commit('setDetailsLoader', true) Vue.http.get(getters.path('sh') + '/' + id) .then((response) => { commit('itemDetails', response.body) commit('setDetailsLoader', false) resolve() }), error => { commit('alertError', error.statusText, { root: true }) } }) }, updateItemDetail({commit, dispatch, state, getters}, [id, params, successText]) { Vue.http.put(getters.path('u') + '/' + id, params) .then((response) => { if (response.body.status == 0) { commit('alertSuccess', successText, { root: true }) } else if (response.body.status == -1) { commit('alertError', response.body.msg, { root: true }) } else if (response.body.status == -2) { commit('alertValidationError', response.body.msg, { root: true }) } dispatch('getItemDetails', [state.item[state.itemIdColumn]]) }, error => { commit('alertError', error.statusText, { root: true }) }); }, // child details updateChild({commit, dispatch, state, getters}, [id, params, successText, path]) { return new Promise((resolve, reject) => { Vue.http.put(path + '/' + id, params) .then((response) => { if (response.body.status == 0) { commit('alertSuccess', successText, { root: true }) resolve() } else if (response.body.status == -1) { commit('alertError', response.body.msg, { root: true }) } else if (response.body.status == -2) { commit('alertValidationError', response.body.msg, { root: true }) } dispatch('getItemDetails', [state.item[state.itemIdColumn]]) }, error => { commit('alertError', error.statusText, { root: true }) }) }) }, deleteChild({commit, dispatch, state, getters}, [id, successText, errorText, path]) { Vue.http.delete(path + '/' + id) .then((response) => { if (response.body.status == 0) { commit('alertSuccess', successText, { root: true }) } else if (response.body.status == -1) { commit('alertError', response.body.msg, { root: true }) } else if (response.body.status == -2) { commit('alertValidationError', response.body.msg, { root: true }) } dispatch('getItemDetails', [state.item[state.itemIdColumn]]) }, error => { commit('alertError', error.statusText, { root: true }) }); }, storeChild({commit, dispatch, state, getters}, [params, successText, path]) { return new Promise((resolve, reject) => { Vue.http.post(path, params) .then((response) => { if (response.body.status == 0) { commit('alertSuccess', successText, { root: true }) resolve() } else if (response.body.status == -1) { commit('alertError', response.body.msg, { root: true }) } else if (response.body.status == -2) { commit('alertValidationError', response.body.msg, { root: true }) } dispatch('getItemDetails', [state.item[state.itemIdColumn]]) }, error => { commit('alertError', error.statusText, { root: true }) }) }) }, getChild({commit, state, getters}, [id, path, childItemName]) { return new Promise((resolve, reject) => { Vue.http.get(path + '/' + id) .then((response) => { commit('setChild', [response.body, childItemName]) resolve() }, error => { commit('alertError', error.statusText, { root: true }) }) }) }, } export default actions
'use strict'; // Used for MongoDB access const User = require('../model/user-schema'); const hash = require('../common/hash-password'); const USER_FILTER = {_id: 1, username: 1, added: 1, liked: 1, linkedTo: 1}; module.exports = function(path) { let errorHandler = function(err, res) { console.error('userController Server error: ' + err); res.sendStatus(500); }; // Adds one user to the database. Fails if a user exists already. This is // used only for local registration. github users are added in passport.js this.addLocalUser = function(req, res) { let username = req.body.username; let password = req.body.password; if (username && password) { User.findOne({username: username}, function(err, user) { if (err) {errorHandler(err, res);} // If the user doesn't exist, create new one and store into DB else if (!user) { let newUser = new User(); newUser.username = username; newUser.local = {}; newUser.local.username = username; newUser.local.password = hash.getHash(password); newUser.registeredOn = new Date().getTime(); newUser.save(function(err) { if (err) {errorHandler(err, res);} else { console.log('Register local user ' + username + ' with pw ' + password); res.url = '/auth/userLogin'; res.render(path + '/pug/signup_done.pug', {ok: true, name: username}); } }); } else { res.render(path + '/pug/signup_done.pug', {ok: false, name: username}); } }); } else { res.sendStatus(400); } }; let sendAuthenticatedUserInfo = function(res, username) { User.findOne({username: username}) .exec(function(err, user) { if (err) {return errorHandler(err, res);} if (user) { return res.json(user); } else { let obj = {error: 'No user ' + username + ' found in database.'}; return res.json(obj); } }); }; this.getUserList = function(cb) { User.find({}, {username: 1, _id: 0}, (err, result) => { if (err) {cb(err);} else { console.log('getUserList result' + JSON.stringify(result)); cb(null, result); } }); }; /* Returns the relevant data for user wall. */ this.getPublicUserWall = function(username, cb) { let filterObj = {username: 1, _id: 0, linkedTo: 1}; User.findOne({username: username}, filterObj) .populate('linkedTo') .exec((err, result) => { if (err) {cb(err);} else { cb(null, result); } }); }; /* Responds with info about the requested user (if authenticated).*/ this.getUser = function(req, res) { if (req.isAuthenticated()) { console.log('getUser Req auth, user ' + JSON.stringify(req.user)); let username = req.user.username; sendAuthenticatedUserInfo(res, username); } else { res.json({name: 'guest'}); } }; this.getUserID = function(username, cb) { User.findOne({username: username}, (err, user) => { if (err) {return cb(err);} else if (user) {return cb(null, user._id);} else {return cb(null, null);} }); }; /* Given username, fetches corresponding user data from the DB and passes * it to callback.*/ this.getUserByName = function(username, cb) { User.findOne({username: username}, USER_FILTER) .populate('added') .populate('liked') .populate('linkedTo') .exec( (err, user) => { if (err) { return cb(err); } else if (user) { return cb(null, user); } else { return cb(null, null); } }); }; /* Adds a venue where user is going. Needs appID and username to perform * the update.*/ this.updateUserInfo = function(username, info, cb) { let updateObj = {$set: info}; User.update({username: username}, updateObj, (err, data) => { if (err) {return cb(err);} else { return cb(null, data); } }); }; };
// client-side webpack configuration for our dev //requiring objects const path = require('path'); // const HtmlWebpackPlugin = require('html-webpack-plugin'); const webpack = require('webpack'); const CURRENT_WORKING_DIR = process.cwd(); // let's create the config object const config = { name: "browser", mode: "development", devtool: 'eval-source-map', entry: [ 'webpack-hot-middleware/client?reload=true', path.join(CURRENT_WORKING_DIR , 'frontend/client/index.js') ], output: { filename: 'bundle.js', path: path.join(CURRENT_WORKING_DIR , '/dist'), publicPath: '/dist/' // Webpack dev middleware, if enabled, handles requests for this URL prefix }, module: { rules: [ { test: /\.jsx?$/, exclude: /node_modules/, use: [ 'babel-loader' ] }, { test:/\.(ttf|eot|svg|gif|jpg|png)(\?[\s\S]+)?$/, use: 'file-loader' } ] }, plugins: [ new webpack.HotModuleReplacementPlugin(), new webpack.NoEmitOnErrorsPlugin() ], resolve: { alias: { 'react-dom': '@hot-loader/react-dom' } }, devServer: { contentBase: path.join(__dirname, 'public'), watchContentBase: true, publicPath: "/dist/", historyApiFallback: true, hot: true, inline: true, port: 3000, }, performance: { maxEntrypointSize: 512000, maxAssetSize: 512000 } } module.exports = config
// ** I18N // Calendar EN language // Author: Mihai Bazon, <mihai_bazon@yahoo.com> // Translator: Fabio Di Bernardini, <altraqua@email.it> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please // include your contact information in the header, as can be seen above. // full day names Calendar._DN = new Array ("Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato", "Domenica"); // Please note that the following array of short day names (and the same goes // for short month names, _SMN) isn't absolutely necessary. We give it here // for exemplification on how one can customize the short day names, but if // they are simply the first N letters of the full name you can simply say: // // Calendar._SDN_len = N; // short day name length // Calendar._SMN_len = N; // short month name length // // If N = 3 then this is not needed either since we assume a value of 3 if not // present, to be compatible with translation files that were written before // this feature. // short day names Calendar._SDN = new Array ("Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab", "Dom"); // full month names Calendar._MN = new Array ("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"); // short month names Calendar._SMN = new Array ("Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"); // tooltips Calendar._TT = {}; Calendar._TT["INFO"] = "Informazioni sul calendario"; Calendar._TT["ABOUT"] = "DHTML Date/Time Selector\n" + "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-) "Per gli aggiornamenti: http://www.dynarch.com/projects/calendar/\n" + "Distribuito sotto licenza GNU LGPL. Vedi http://gnu.org/licenses/lgpl.html per i dettagli." + "\n\n" + "Selezione data:\n" + "- Usa \xab, \xbb per selezionare l'anno\n" + "- Usa " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " per i mesi\n" + "- Tieni premuto a lungo il mouse per accedere alle funzioni di selezione veloce."; Calendar._TT["ABOUT_TIME"] = "\n\n" + "Selezione orario:\n" + "- Clicca sul numero per incrementarlo\n" + "- o Shift+click per decrementarlo\n" + "- o click e sinistra o destra per variarlo."; Calendar._TT["PREV_YEAR"] = "Anno prec.(clicca a lungo per il menù)"; Calendar._TT["PREV_MONTH"] = "Mese prec. (clicca a lungo per il menù)"; Calendar._TT["GO_TODAY"] = "Oggi"; Calendar._TT["NEXT_MONTH"] = "Pross. mese (clicca a lungo per il menù)"; Calendar._TT["NEXT_YEAR"] = "Pross. anno (clicca a lungo per il menù)"; Calendar._TT["SEL_DATE"] = "Seleziona data"; Calendar._TT["DRAG_TO_MOVE"] = "Trascina per spostarlo"; Calendar._TT["PART_TODAY"] = " (oggi)"; // the following is to inform that "%s" is to be the first day of week // %s will be replaced with the day name. Calendar._TT["DAY_FIRST"] = "Mostra prima %s"; // This may be locale-dependent. It specifies the week-end days, as an array // of comma-separated numbers. The numbers are from 0 to 6: 0 means Sunday, 1 // means Monday, etc. Calendar._TT["WEEKEND"] = "0,6"; Calendar._TT["CLOSE"] = "Chiudi"; Calendar._TT["TODAY"] = "Oggi"; Calendar._TT["TIME_PART"] = "(Shift-)Click o trascina per cambiare il valore"; // date formats Calendar._TT["DEF_DATE_FORMAT"] = "%d-%m-%Y"; Calendar._TT["TT_DATE_FORMAT"] = "%a:%b:%e"; Calendar._TT["WK"] = "set"; Calendar._TT["TIME"] = "Ora:";
const core = require("@actions/core"); const path = require("path"); const axios = require("axios"); const os = require("os"); const fs = require("fs").promises; const getAbsolutePath = (filePath) => { if (filePath[0] !== "~") return path.resolve(filePath); const homeDir = os.homedir(); if (homeDir) return path.join(homeDir, filePath.slice(1)); throw new Error("Unable to resolve '~' to HOME"); }; const run = async () => { const filePath = getAbsolutePath(core.getInput("path", { required: true })); const script = await fs .readFile(filePath, { encoding: "utf8" }) .catch((err) => core.setFailed(err)); axios .post("https://api.psu.dev/obfuscate", { script, key: core.getInput("apiKey"), options: core.getInput("options"), }) .then(({ data }) => { if (data.status === "passed") core.setOutput("file", data.data); }) .catch((err) => { if (err.response.data.error) { if (!err.response.data.reason) return core.setFailed( "An unknown error occurred while obfuscating the script. We apologise for the inconvenience." ); core.setFailed( `An error occurred while obfuscating your script: ${err.response.data.reason}` ); } }); }; run();
function setEventHandler(name, handler, dom, tag, item) { dom[name] = function(e) { // cross browser event fix e = e || window.event e.which = e.which || e.charCode || e.keyCode e.target = e.target || e.srcElement e.currentTarget = dom e.item = item // prevent default behaviour (by default) if (handler.call(tag, e) !== true) { e.preventDefault && e.preventDefault() e.returnValue = false } var el = item ? tag.parent : tag el.update() } } // used by if- attribute function insertTo(root, node, before) { if (root) { root.insertBefore(before, node) root.removeChild(node) } } // item = currently looped item function update(expressions, tag, item) { each(expressions, function(expr) { var dom = expr.dom, attr_name = expr.attr, value = tmpl(expr.expr, tag), parent = expr.dom.parentNode if (value == null) value = '' // leave out riot- prefixes from strings inside textarea if (parent && parent.tagName == 'TEXTAREA') value = value.replace(/riot-/g, '') // no change if (expr.value === value) return expr.value = value // text node if (!attr_name) return dom.nodeValue = value // remove original attribute remAttr(dom, attr_name) // event handler if (typeof value == 'function') { setEventHandler(attr_name, value, dom, tag, item) // if- conditional } else if (attr_name == 'if') { var stub = expr.stub // add to DOM if (value) { stub && insertTo(stub.parentNode, stub, dom) // remove from DOM } else { stub = expr.stub = stub || document.createTextNode('') insertTo(dom.parentNode, dom, stub) } // show / hide } else if (/^(show|hide)$/.test(attr_name)) { if (attr_name == 'hide') value = !value dom.style.display = value ? '' : 'none' // field value } else if (attr_name == 'value') { dom.value = value // <img src="{ expr }"> } else if (attr_name.slice(0, 5) == 'riot-') { attr_name = attr_name.slice(5) value ? dom.setAttribute(attr_name, value) : remAttr(dom, attr_name) } else { if (expr.bool) { dom[attr_name] = value if (!value) return value = attr_name } if (typeof value != 'object') dom.setAttribute(attr_name, value) } }) }
import Todo from './Todo'; export default Todo;
import React, { useState } from "react" const defaultValues = { bg: "blank.png", colorBg: "#fff", setBackground: () => {}, } const BackgroundContext = React.createContext(defaultValues) const BackgroundProvider = ({ children }) => { const [bg, setBgState] = useState(defaultValues.bg) const [colorBg, setColorBg] = useState(defaultValues.colorBg) const [lastColorBg, setLastColorBg] = useState(defaultValues.colorBg) const setBackground = ({ background, colorBackground, lastColorBackground, }) => { background && setBgState(background) colorBackground && setColorBg(colorBackground) lastColorBackground && setLastColorBg(lastColorBackground) } return ( <BackgroundContext.Provider value={{ bg, colorBg, lastColorBg, setBackground }} > {children} </BackgroundContext.Provider> ) } export default BackgroundContext export { BackgroundProvider }
import { remote } from 'electron' /** * Get root path for bundled (deployed) or non-bundled (dev) files. * @returns {String} absolute path to root folder */ export function getRootPath () { return remote.app .getAppPath() .replace( /\\(dist_electron|app.asar)/, '' ) }