vendor: 3,610 bytes, lines 1-88
1/******/ (function(modules) { // webpackBootstrap 2/******/ // The module cache 3/******/ var installedModules = {}; 4/******/ 5/******/ // The require function 6/******/ function __webpack_require__(moduleId) { 7/******/ 8/******/ // Check if module is in cache 9/******/ if(installedModules[moduleId]) { 10/******/ return installedModules[moduleId].exports; 11/******/ } 12/******/ // Create a new module (and put it into the cache) 13/******/ var module = installedModules[moduleId] = { 14/******/ i: moduleId, 15/******/ l: false, 16/******/ exports: {} 17/******/ }; 18/******/ 19/******/ // Execute the module function 20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21/******/ 22/******/ // Flag the module as loaded 23/******/ module.l = true; 24/******/ 25/******/ // Return the exports of the module 26/******/ return module.exports; 27/******/ } 28/******/ 29/******/ 30/******/ // expose the modules object (__webpack_modules__) 31/******/ __webpack_require__.m = modules; 32/******/ 33/******/ // expose the module cache 34/******/ __webpack_require__.c = installedModules; 35/******/ 36/******/ // define getter function for harmony exports 37/******/ __webpack_require__.d = function(exports, name, getter) { 38/******/ if(!__webpack_require__.o(exports, name)) { 39/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 40/******/ } 41/******/ }; 42/******/ 43/******/ // define __esModule on exports 44/******/ __webpack_require__.r = function(exports) { 45/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 46/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 47/******/ } 48/******/ Object.defineProperty(exports, '__esModule', { value: true }); 49/******/ }; 50/******/ 51/******/ // create a fake namespace object 52/******/ // mode & 1: value is a module id, require it 53/******/ // mode & 2: merge all properties of value into the ns 54/******/ // mode & 4: return value when already ns object 55/******/ // mode & 8|1: behave like require 56/******/ __webpack_require__.t = function(value, mode) { 57/******/ if(mode & 1) value = __webpack_require__(value); 58/******/ if(mode & 8) return value; 59/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; 60/******/ var ns = Object.create(null); 61/******/ __webpack_require__.r(ns); 62/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 63/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 64/******/ return ns; 65/******/ }; 66/******/ 67/******/ // getDefaultExport function for compatibility with non-harmony modules 68/******/ __webpack_require__.n = function(module) { 69/******/ var getter = module && module.__esModule ? 70/******/ function getDefault() { return module['default']; } : 71/******/ function getModuleExports() { return module; }; 72/******/ __webpack_require__.d(getter, 'a', getter); 73/******/ return getter; 74/******/ }; 75/******/ 76/******/ // Object.prototype.hasOwnProperty.call 77/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 78/******/ 79/******/ // __webpack_public_path__ 80/******/ __webpack_require__.p = ""; 81/******/ 82/******/ 83/******/ // Load entry module and return exports 84/******/ return __webpack_require__(__webpack_require__.s = "./src/js/app.js"); 85/******/ }) 86/************************************************************************/ 87/******/ ({ 88
vendor: 17,260 bytes, lines 89-649
89/***/ "./node_modules/@sygnas/jp-social-share/dist/jp-social-share.es.js": 90/*!*************************************************************************!*\ 91 !*** ./node_modules/@sygnas/jp-social-share/dist/jp-social-share.es.js ***! 92 \*************************************************************************/ 93/*! exports provided: default */ 94/***/ (function(module, __webpack_exports__, __webpack_require__) { 95 96"use strict"; 97__webpack_require__.r(__webpack_exports__); 98function unwrapExports (x) { 99 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; 100} 101 102function createCommonjsModule(fn, module) { 103 return module = { exports: {} }, fn(module, module.exports), module.exports; 104} 105 106// 7.2.1 RequireObjectCoercible(argument) 107var _defined = function (it) { 108 if (it == undefined) throw TypeError("Can't call method on " + it); 109 return it; 110}; 111 112// 7.1.13 ToObject(argument) 113 114var _toObject = function (it) { 115 return Object(_defined(it)); 116}; 117 118var hasOwnProperty = {}.hasOwnProperty; 119var _has = function (it, key) { 120 return hasOwnProperty.call(it, key); 121}; 122 123var toString = {}.toString; 124 125var _cof = function (it) { 126 return toString.call(it).slice(8, -1); 127}; 128 129// fallback for non-array-like ES3 and non-enumerable old V8 strings 130 131// eslint-disable-next-line no-prototype-builtins 132var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 133 return _cof(it) == 'String' ? it.split('') : Object(it); 134}; 135 136// to indexed object, toObject with fallback for non-array-like ES3 strings 137 138 139var _toIobject = function (it) { 140 return _iobject(_defined(it)); 141}; 142 143// 7.1.4 ToInteger 144var ceil = Math.ceil; 145var floor = Math.floor; 146var _toInteger = function (it) { 147 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 148}; 149 150// 7.1.15 ToLength 151 152var min = Math.min; 153var _toLength = function (it) { 154 return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 155}; 156 157var max = Math.max; 158var min$1 = Math.min; 159var _toAbsoluteIndex = function (index, length) { 160 index = _toInteger(index); 161 return index < 0 ? max(index + length, 0) : min$1(index, length); 162}; 163 164// false -> Array#indexOf 165// true -> Array#includes 166 167 168 169var _arrayIncludes = function (IS_INCLUDES) { 170 return function ($this, el, fromIndex) { 171 var O = _toIobject($this); 172 var length = _toLength(O.length); 173 var index = _toAbsoluteIndex(fromIndex, length); 174 var value; 175 // Array#includes uses SameValueZero equality algorithm 176 // eslint-disable-next-line no-self-compare 177 if (IS_INCLUDES && el != el) while (length > index) { 178 value = O[index++]; 179 // eslint-disable-next-line no-self-compare 180 if (value != value) return true; 181 // Array#indexOf ignores holes, Array#includes - not 182 } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 183 if (O[index] === el) return IS_INCLUDES || index || 0; 184 } return !IS_INCLUDES && -1; 185 }; 186}; 187 188var _global = createCommonjsModule(function (module) { 189// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 190var global = module.exports = typeof window != 'undefined' && window.Math == Math 191 ? window : typeof self != 'undefined' && self.Math == Math ? self 192 // eslint-disable-next-line no-new-func 193 : Function('return this')(); 194if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 195}); 196 197var SHARED = '__core-js_shared__'; 198var store = _global[SHARED] || (_global[SHARED] = {}); 199var _shared = function (key) { 200 return store[key] || (store[key] = {}); 201}; 202 203var id = 0; 204var px = Math.random(); 205var _uid = function (key) { 206 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 207}; 208 209var shared = _shared('keys'); 210 211var _sharedKey = function (key) { 212 return shared[key] || (shared[key] = _uid(key)); 213}; 214 215var arrayIndexOf = _arrayIncludes(false); 216var IE_PROTO = _sharedKey('IE_PROTO'); 217 218var _objectKeysInternal = function (object, names) { 219 var O = _toIobject(object); 220 var i = 0; 221 var result = []; 222 var key; 223 for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key); 224 // Don't enum bug & hidden keys 225 while (names.length > i) if (_has(O, key = names[i++])) { 226 ~arrayIndexOf(result, key) || result.push(key); 227 } 228 return result; 229}; 230 231// IE 8- don't enum bug keys 232var _enumBugKeys = ( 233 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 234).split(','); 235 236// 19.1.2.14 / 15.2.3.14 Object.keys(O) 237 238 239 240var _objectKeys = Object.keys || function keys(O) { 241 return _objectKeysInternal(O, _enumBugKeys); 242}; 243 244var _core = createCommonjsModule(function (module) { 245var core = module.exports = { version: '2.5.3' }; 246if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 247}); 248 249var _core_1 = _core.version; 250 251var _aFunction = function (it) { 252 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 253 return it; 254}; 255 256// optional / simple context binding 257 258var _ctx = function (fn, that, length) { 259 _aFunction(fn); 260 if (that === undefined) return fn; 261 switch (length) { 262 case 1: return function (a) { 263 return fn.call(that, a); 264 }; 265 case 2: return function (a, b) { 266 return fn.call(that, a, b); 267 }; 268 case 3: return function (a, b, c) { 269 return fn.call(that, a, b, c); 270 }; 271 } 272 return function (/* ...args */) { 273 return fn.apply(that, arguments); 274 }; 275}; 276 277var _isObject = function (it) { 278 return typeof it === 'object' ? it !== null : typeof it === 'function'; 279}; 280 281var _anObject = function (it) { 282 if (!_isObject(it)) throw TypeError(it + ' is not an object!'); 283 return it; 284}; 285 286var _fails = function (exec) { 287 try { 288 return !!exec(); 289 } catch (e) { 290 return true; 291 } 292}; 293 294// Thank's IE8 for his funny defineProperty 295var _descriptors = !_fails(function () { 296 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 297}); 298 299var document$1 = _global.document; 300// typeof document.createElement is 'object' in old IE 301var is = _isObject(document$1) && _isObject(document$1.createElement); 302var _domCreate = function (it) { 303 return is ? document$1.createElement(it) : {}; 304}; 305 306var _ie8DomDefine = !_descriptors && !_fails(function () { 307 return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7; 308}); 309 310// 7.1.1 ToPrimitive(input [, PreferredType]) 311 312// instead of the ES6 spec version, we didn't implement @@toPrimitive case 313// and the second argument - flag - preferred type is a string 314var _toPrimitive = function (it, S) { 315 if (!_isObject(it)) return it; 316 var fn, val; 317 if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 318 if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val; 319 if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 320 throw TypeError("Can't convert object to primitive value"); 321}; 322 323var dP = Object.defineProperty; 324 325var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { 326 _anObject(O); 327 P = _toPrimitive(P, true); 328 _anObject(Attributes); 329 if (_ie8DomDefine) try { 330 return dP(O, P, Attributes); 331 } catch (e) { /* empty */ } 332 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 333 if ('value' in Attributes) O[P] = Attributes.value; 334 return O; 335}; 336 337var _objectDp = { 338 f: f 339}; 340 341var _propertyDesc = function (bitmap, value) { 342 return { 343 enumerable: !(bitmap & 1), 344 configurable: !(bitmap & 2), 345 writable: !(bitmap & 4), 346 value: value 347 }; 348}; 349 350var _hide = _descriptors ? function (object, key, value) { 351 return _objectDp.f(object, key, _propertyDesc(1, value)); 352} : function (object, key, value) { 353 object[key] = value; 354 return object; 355}; 356 357var PROTOTYPE = 'prototype'; 358 359var $export = function (type, name, source) { 360 var IS_FORCED = type & $export.F; 361 var IS_GLOBAL = type & $export.G; 362 var IS_STATIC = type & $export.S; 363 var IS_PROTO = type & $export.P; 364 var IS_BIND = type & $export.B; 365 var IS_WRAP = type & $export.W; 366 var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {}); 367 var expProto = exports[PROTOTYPE]; 368 var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE]; 369 var key, own, out; 370 if (IS_GLOBAL) source = name; 371 for (key in source) { 372 // contains in native 373 own = !IS_FORCED && target && target[key] !== undefined; 374 if (own && key in exports) continue; 375 // export native or passed 376 out = own ? target[key] : source[key]; 377 // prevent global pollution for namespaces 378 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 379 // bind timers to global for call from export context 380 : IS_BIND && own ? _ctx(out, _global) 381 // wrap global constructors for prevent change them in library 382 : IS_WRAP && target[key] == out ? (function (C) { 383 var F = function (a, b, c) { 384 if (this instanceof C) { 385 switch (arguments.length) { 386 case 0: return new C(); 387 case 1: return new C(a); 388 case 2: return new C(a, b); 389 } return new C(a, b, c); 390 } return C.apply(this, arguments); 391 }; 392 F[PROTOTYPE] = C[PROTOTYPE]; 393 return F; 394 // make static versions for prototype methods 395 })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out; 396 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 397 if (IS_PROTO) { 398 (exports.virtual || (exports.virtual = {}))[key] = out; 399 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 400 if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out); 401 } 402 } 403}; 404// type bitmap 405$export.F = 1; // forced 406$export.G = 2; // global 407$export.S = 4; // static 408$export.P = 8; // proto 409$export.B = 16; // bind 410$export.W = 32; // wrap 411$export.U = 64; // safe 412$export.R = 128; // real proto method for `library` 413var _export = $export; 414 415// most Object methods by ES6 should accept primitives 416 417 418 419var _objectSap = function (KEY, exec) { 420 var fn = (_core.Object || {})[KEY] || Object[KEY]; 421 var exp = {}; 422 exp[KEY] = exec(fn); 423 _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp); 424}; 425 426// 19.1.2.14 Object.keys(O) 427 428 429 430_objectSap('keys', function () { 431 return function keys(it) { 432 return _objectKeys(_toObject(it)); 433 }; 434}); 435 436var keys = _core.Object.keys; 437 438var keys$2 = createCommonjsModule(function (module) { 439module.exports = { "default": keys, __esModule: true }; 440}); 441 442var _Object$keys = unwrapExports(keys$2); 443 444var f$1 = Object.getOwnPropertySymbols; 445 446var _objectGops = { 447 f: f$1 448}; 449 450var f$2 = {}.propertyIsEnumerable; 451 452var _objectPie = { 453 f: f$2 454}; 455 456// 19.1.2.1 Object.assign(target, source, ...) 457 458 459 460 461 462var $assign = Object.assign; 463 464// should work with symbols and should have deterministic property order (V8 bug) 465var _objectAssign = !$assign || _fails(function () { 466 var A = {}; 467 var B = {}; 468 // eslint-disable-next-line no-undef 469 var S = Symbol(); 470 var K = 'abcdefghijklmnopqrst'; 471 A[S] = 7; 472 K.split('').forEach(function (k) { B[k] = k; }); 473 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; 474}) ? function assign(target, source) { // eslint-disable-line no-unused-vars 475 var T = _toObject(target); 476 var aLen = arguments.length; 477 var index = 1; 478 var getSymbols = _objectGops.f; 479 var isEnum = _objectPie.f; 480 while (aLen > index) { 481 var S = _iobject(arguments[index++]); 482 var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S); 483 var length = keys.length; 484 var j = 0; 485 var key; 486 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; 487 } return T; 488} : $assign; 489 490// 19.1.3.1 Object.assign(target, source) 491 492 493_export(_export.S + _export.F, 'Object', { assign: _objectAssign }); 494 495var assign = _core.Object.assign; 496 497var assign$2 = createCommonjsModule(function (module) { 498module.exports = { "default": assign, __esModule: true }; 499}); 500 501var _Object$assign = unwrapExports(assign$2); 502 503/** 504 * æ¥æ¬åãã½ã¼ã·ã£ã«ã·ã§ã¢ãã¿ã³ 505 * 506 * @author Hiroshi Fukuda <[email protected]> 507 * @license MIT 508 */ 509 510/* global location */ 511/* eslint no-restricted-globals: ["off", "location"] */ 512/* eslint no-empty: ["off"] */ 513/* eslint no-lone-blocks: ["off"] */ 514 515var SERVICE_TWITTER = 'twitter'; 516var defaults = { 517 // window.open() ã®ãªãã·ã§ã³ 518 window: { 519 width: 550, 520 height: 450, 521 personalbar: 0, 522 toolbar: 0, 523 scrollbars: 1, 524 resizable: 1 525 }, 526 // ã·ã§ã¢ç¨URLã®ãã³ãã¬ã¼ã 527 twitter: 'http://twitter.com/share?url={{URL}}&text={{MESSAGE}}&via={{ACCOUNT}}&related={{FOLLOW}}', 528 facebook: 'http://www.facebook.com/share.php?u={{URL}}', 529 line: 'line://msg/text/{{MESSAGE}} {{URL}}', 530 feedly: 'http://feedly.com/i/subscription/feed/{{URL}}', 531 pocket: 'http://getpocket.com/edit?url={{URL}}', 532 hatebu: '//b.hatena.ne.jp/add?mode=confirm&url={{URL}}&title={{MESSAGE}}', 533 google: 'https://plus.google.com/share?url={{URL}}' 534}; 535 536/** 537 * ã·ã§ã¢ãã¿ã³ã®ãªã³ã¯ãè¨å®ãã 538 * @param {String} target 対象ãã¿ã³ã®ã»ã¬ã¯ã¿ 539 * @param {Object} options æ°è¦ã¦ã£ã³ãã¦ã®ãã©ã¡ã¼ã¿ï¼defaultsåç §ï¼ 540 */ 541function index (target, options) { 542 // è¨å®ã®ãã¼ã¸ 543 var opt = _Object$assign(defaults, options); 544 545 // ã¯ãªãã¯åä½ 546 get_node_array(document.querySelectorAll(target)).forEach(function (elm) { 547 elm.addEventListener('click', function (e) { 548 // ã·ã§ã¢ç¨ã¦ã£ã³ãã¦ãéã 549 open_window(elm); 550 e.preventDefault(); 551 }); 552 }); 553 554 /** 555 * ã·ã§ã¢ç¨ã¦ã£ã³ãã¦ãéã 556 * @param elm {Element} ã¯ãªãã¯ããã¨ã¬ã¡ã³ã 557 */ 558 function open_window(elm) { 559 // ã¨ã¬ã¡ã³ããããã©ã¡ã¼ã¿ãåå¾ 560 var service = elm.getAttribute('data-share-service'); 561 var account = elm.getAttribute('data-share-account') || ''; 562 var follow = elm.getAttribute('data-share-follow') || ''; 563 var message = elm.getAttribute('data-share-message') || document.title; 564 var url = elm.getAttribute('data-share-url') || location.href; 565 566 // åå¨ããªããµã¼ãã¹ã ã£ããæãã 567 if (_Object$keys(opt).indexOf(service) === -1) { 568 console.log(service + ' is not supported.'); 569 return; 570 } 571 572 // ãã³ãã¬ã¼ãããã³ã³ãã¼ã 573 var open_url = convert_open_url(service, account, follow, message, url); 574 575 // LINEã¯ã¢ããªã«é£ã°ãããã以å¤ã¯ã¦ã£ã³ãã¦ãéã 576 if (service === 'line') { 577 window.location.href = open_url; 578 } else { 579 var window_opt = get_window_option(opt.window); 580 window.open(open_url, 'share_' + service, window_opt); 581 } 582 } 583 /** 584 * ãµã¼ãã¹æ¯ã®URLãåå¾ 585 * ãã©ã¡ã¼ã¿ã«ãã£ã¦ã¯å å·¥ãããã 586 * @param service {String} ã½ã¼ã·ã£ã«ãµã¼ãã¹èå¥å 587 * @param account {String} ãã¤ã¼ãã«ä»ããRepleyã¢ã«ã¦ã³ã 588 * @param follow {String} ãã¤ã¼ãå¾ã«è¡¨ç¤ºãããã©ãã¼åè£ã¢ã«ã¦ã³ã 589 * @param message {String} ã¡ãã»ã¼ã¸æ¬æ 590 * @param url {String} ã·ã§ã¢URL 591 * @return {String} ã·ã§ã¢çªãªã¼ãã³URL 592 */ 593 function convert_open_url(service, account, follow, message, url) { 594 var eu = encodeURIComponent; 595 var open_url = opt[service]; 596 597 // Twitterã ããã©ã¡ã¼ã¿ã®å 容ã«ãã£ã¦URLãå¤ãã 598 if (service === SERVICE_TWITTER) { 599 if (!account) open_url = open_url.replace('&via={{ACCOUNT}}', ''); 600 if (!follow) open_url = open_url.replace('&related={{FOLLOW}}', ''); 601 } 602 603 open_url = open_url.replace('{{ACCOUNT}}', eu(account)); 604 open_url = open_url.replace('{{FOLLOW}}', eu(follow)); 605 open_url = open_url.replace('{{MESSAGE}}', eu(message)); 606 open_url = open_url.replace('{{URL}}', eu(url)); 607 608 return open_url; 609 } 610} 611 612/** 613 * Element.matches() polyfill 614 */ 615if (!Element.prototype.matches) { 616 Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector || function (s) { 617 var matches = (this.document || this.ownerDocument).querySelectorAll(s); 618 var i = matches.length; 619 do { 620 i -= 1; 621 } while (i >= 0 && matches.item(i) !== this);return i > -1; 622 }; 623} 624 625/** 626 * NodeListãArrayã¨ãã¦åãåºãï¼IE対çï¼ 627 */ 628function get_node_array(node_list) { 629 return Array.prototype.slice.call(node_list, 0); 630} 631 632/** 633 * Windowãã©ã¡ã¼ã¿ä½æ 634 * @param opt {Object} ã¦ã£ã³ãã¦ãã©ã¡ã¼ã¿ 635 * @return {String} æ°è¦ã¦ã£ã³ãã¦ã®ãã©ã¡ã¼ã¿æåå 636 */ 637function get_window_option(opt) { 638 var items = []; 639 _Object$keys(opt).forEach(function (key) { 640 items.push(key + '=' + opt[key]); 641 }); 642 return items.join(','); 643} 644 645/* harmony default export */ __webpack_exports__["default"] = (index); 646 647 648/***/ }), 649
vendor: 12,222 bytes, lines 650-1084
650/***/ "./node_modules/@sygnas/mediaquery/dist/mediaquery.es.js": 651/*!***************************************************************!*\ 652 !*** ./node_modules/@sygnas/mediaquery/dist/mediaquery.es.js ***! 653 \***************************************************************/ 654/*! exports provided: default */ 655/***/ (function(module, __webpack_exports__, __webpack_require__) { 656 657"use strict"; 658__webpack_require__.r(__webpack_exports__); 659function unwrapExports (x) { 660 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; 661} 662 663function createCommonjsModule(fn, module) { 664 return module = { exports: {} }, fn(module, module.exports), module.exports; 665} 666 667// 7.2.1 RequireObjectCoercible(argument) 668var _defined = function (it) { 669 if (it == undefined) throw TypeError("Can't call method on " + it); 670 return it; 671}; 672 673// 7.1.13 ToObject(argument) 674 675var _toObject = function (it) { 676 return Object(_defined(it)); 677}; 678 679var hasOwnProperty = {}.hasOwnProperty; 680var _has = function (it, key) { 681 return hasOwnProperty.call(it, key); 682}; 683 684var toString = {}.toString; 685 686var _cof = function (it) { 687 return toString.call(it).slice(8, -1); 688}; 689 690// fallback for non-array-like ES3 and non-enumerable old V8 strings 691 692// eslint-disable-next-line no-prototype-builtins 693var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 694 return _cof(it) == 'String' ? it.split('') : Object(it); 695}; 696 697// to indexed object, toObject with fallback for non-array-like ES3 strings 698 699 700var _toIobject = function (it) { 701 return _iobject(_defined(it)); 702}; 703 704// 7.1.4 ToInteger 705var ceil = Math.ceil; 706var floor = Math.floor; 707var _toInteger = function (it) { 708 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 709}; 710 711// 7.1.15 ToLength 712 713var min = Math.min; 714var _toLength = function (it) { 715 return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 716}; 717 718var max = Math.max; 719var min$1 = Math.min; 720var _toAbsoluteIndex = function (index, length) { 721 index = _toInteger(index); 722 return index < 0 ? max(index + length, 0) : min$1(index, length); 723}; 724 725// false -> Array#indexOf 726// true -> Array#includes 727 728 729 730var _arrayIncludes = function (IS_INCLUDES) { 731 return function ($this, el, fromIndex) { 732 var O = _toIobject($this); 733 var length = _toLength(O.length); 734 var index = _toAbsoluteIndex(fromIndex, length); 735 var value; 736 // Array#includes uses SameValueZero equality algorithm 737 // eslint-disable-next-line no-self-compare 738 if (IS_INCLUDES && el != el) while (length > index) { 739 value = O[index++]; 740 // eslint-disable-next-line no-self-compare 741 if (value != value) return true; 742 // Array#indexOf ignores holes, Array#includes - not 743 } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 744 if (O[index] === el) return IS_INCLUDES || index || 0; 745 } return !IS_INCLUDES && -1; 746 }; 747}; 748 749var _global = createCommonjsModule(function (module) { 750// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 751var global = module.exports = typeof window != 'undefined' && window.Math == Math 752 ? window : typeof self != 'undefined' && self.Math == Math ? self 753 // eslint-disable-next-line no-new-func 754 : Function('return this')(); 755if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 756}); 757 758var SHARED = '__core-js_shared__'; 759var store = _global[SHARED] || (_global[SHARED] = {}); 760var _shared = function (key) { 761 return store[key] || (store[key] = {}); 762}; 763 764var id = 0; 765var px = Math.random(); 766var _uid = function (key) { 767 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 768}; 769 770var shared = _shared('keys'); 771 772var _sharedKey = function (key) { 773 return shared[key] || (shared[key] = _uid(key)); 774}; 775 776var arrayIndexOf = _arrayIncludes(false); 777var IE_PROTO = _sharedKey('IE_PROTO'); 778 779var _objectKeysInternal = function (object, names) { 780 var O = _toIobject(object); 781 var i = 0; 782 var result = []; 783 var key; 784 for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key); 785 // Don't enum bug & hidden keys 786 while (names.length > i) if (_has(O, key = names[i++])) { 787 ~arrayIndexOf(result, key) || result.push(key); 788 } 789 return result; 790}; 791 792// IE 8- don't enum bug keys 793var _enumBugKeys = ( 794 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 795).split(','); 796 797// 19.1.2.14 / 15.2.3.14 Object.keys(O) 798 799 800 801var _objectKeys = Object.keys || function keys(O) { 802 return _objectKeysInternal(O, _enumBugKeys); 803}; 804 805var _core = createCommonjsModule(function (module) { 806var core = module.exports = { version: '2.5.3' }; 807if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 808}); 809 810var _core_1 = _core.version; 811 812var _aFunction = function (it) { 813 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 814 return it; 815}; 816 817// optional / simple context binding 818 819var _ctx = function (fn, that, length) { 820 _aFunction(fn); 821 if (that === undefined) return fn; 822 switch (length) { 823 case 1: return function (a) { 824 return fn.call(that, a); 825 }; 826 case 2: return function (a, b) { 827 return fn.call(that, a, b); 828 }; 829 case 3: return function (a, b, c) { 830 return fn.call(that, a, b, c); 831 }; 832 } 833 return function (/* ...args */) { 834 return fn.apply(that, arguments); 835 }; 836}; 837 838var _isObject = function (it) { 839 return typeof it === 'object' ? it !== null : typeof it === 'function'; 840}; 841 842var _anObject = function (it) { 843 if (!_isObject(it)) throw TypeError(it + ' is not an object!'); 844 return it; 845}; 846 847var _fails = function (exec) { 848 try { 849 return !!exec(); 850 } catch (e) { 851 return true; 852 } 853}; 854 855// Thank's IE8 for his funny defineProperty 856var _descriptors = !_fails(function () { 857 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 858}); 859 860var document = _global.document; 861// typeof document.createElement is 'object' in old IE 862var is = _isObject(document) && _isObject(document.createElement); 863var _domCreate = function (it) { 864 return is ? document.createElement(it) : {}; 865}; 866 867var _ie8DomDefine = !_descriptors && !_fails(function () { 868 return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7; 869}); 870 871// 7.1.1 ToPrimitive(input [, PreferredType]) 872 873// instead of the ES6 spec version, we didn't implement @@toPrimitive case 874// and the second argument - flag - preferred type is a string 875var _toPrimitive = function (it, S) { 876 if (!_isObject(it)) return it; 877 var fn, val; 878 if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 879 if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val; 880 if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 881 throw TypeError("Can't convert object to primitive value"); 882}; 883 884var dP = Object.defineProperty; 885 886var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { 887 _anObject(O); 888 P = _toPrimitive(P, true); 889 _anObject(Attributes); 890 if (_ie8DomDefine) try { 891 return dP(O, P, Attributes); 892 } catch (e) { /* empty */ } 893 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 894 if ('value' in Attributes) O[P] = Attributes.value; 895 return O; 896}; 897 898var _objectDp = { 899 f: f 900}; 901 902var _propertyDesc = function (bitmap, value) { 903 return { 904 enumerable: !(bitmap & 1), 905 configurable: !(bitmap & 2), 906 writable: !(bitmap & 4), 907 value: value 908 }; 909}; 910 911var _hide = _descriptors ? function (object, key, value) { 912 return _objectDp.f(object, key, _propertyDesc(1, value)); 913} : function (object, key, value) { 914 object[key] = value; 915 return object; 916}; 917 918var PROTOTYPE = 'prototype'; 919 920var $export = function (type, name, source) { 921 var IS_FORCED = type & $export.F; 922 var IS_GLOBAL = type & $export.G; 923 var IS_STATIC = type & $export.S; 924 var IS_PROTO = type & $export.P; 925 var IS_BIND = type & $export.B; 926 var IS_WRAP = type & $export.W; 927 var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {}); 928 var expProto = exports[PROTOTYPE]; 929 var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE]; 930 var key, own, out; 931 if (IS_GLOBAL) source = name; 932 for (key in source) { 933 // contains in native 934 own = !IS_FORCED && target && target[key] !== undefined; 935 if (own && key in exports) continue; 936 // export native or passed 937 out = own ? target[key] : source[key]; 938 // prevent global pollution for namespaces 939 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 940 // bind timers to global for call from export context 941 : IS_BIND && own ? _ctx(out, _global) 942 // wrap global constructors for prevent change them in library 943 : IS_WRAP && target[key] == out ? (function (C) { 944 var F = function (a, b, c) { 945 if (this instanceof C) { 946 switch (arguments.length) { 947 case 0: return new C(); 948 case 1: return new C(a); 949 case 2: return new C(a, b); 950 } return new C(a, b, c); 951 } return C.apply(this, arguments); 952 }; 953 F[PROTOTYPE] = C[PROTOTYPE]; 954 return F; 955 // make static versions for prototype methods 956 })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out; 957 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 958 if (IS_PROTO) { 959 (exports.virtual || (exports.virtual = {}))[key] = out; 960 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 961 if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out); 962 } 963 } 964}; 965// type bitmap 966$export.F = 1; // forced 967$export.G = 2; // global 968$export.S = 4; // static 969$export.P = 8; // proto 970$export.B = 16; // bind 971$export.W = 32; // wrap 972$export.U = 64; // safe 973$export.R = 128; // real proto method for `library` 974var _export = $export; 975 976// most Object methods by ES6 should accept primitives 977 978 979 980var _objectSap = function (KEY, exec) { 981 var fn = (_core.Object || {})[KEY] || Object[KEY]; 982 var exp = {}; 983 exp[KEY] = exec(fn); 984 _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp); 985}; 986 987// 19.1.2.14 Object.keys(O) 988 989 990 991_objectSap('keys', function () { 992 return function keys(it) { 993 return _objectKeys(_toObject(it)); 994 }; 995}); 996 997var keys = _core.Object.keys; 998 999var keys$2 = createCommonjsModule(function (module) { 1000module.exports = { "default": keys, __esModule: true }; 1001}); 1002 1003var _Object$keys = unwrapExports(keys$2); 1004 1005/** 1006 * check media query 1007 * 1008 * @author Hiroshi Fukuda <[email protected]> 1009 * @license MIT 1010 */ 1011 1012var syg_mediaquery = { 1013 1014 /** 1015 * media list 1016 */ 1017 _medias: { 1018 large: 'screen and (min-width:801px)', 1019 tablet: 'screen and (min-width:601px) and (max-width:800px)', 1020 mobile: 'screen and (max-width:600px)' 1021 }, 1022 1023 /** 1024 * get query string 1025 * @returns {Object} 1026 */ 1027 get_query_string: function get_query_string() { 1028 return syg_mediaquery._medias; 1029 }, 1030 1031 1032 /** 1033 * set media query 1034 * @param name {String} media name 1035 * @param value {String} media query string 1036 */ 1037 set_media: function set_media(name, value) { 1038 syg_mediaquery._medias[name] = value; 1039 }, 1040 1041 1042 /** 1043 * reset media query 1044 * @param medias {Object} media query list 1045 */ 1046 reset_medias: function reset_medias(medias) { 1047 syg_mediaquery._medias = medias; 1048 }, 1049 1050 1051 /** 1052 * check target media 1053 * @param name {String} media name 1054 * @return {Bool} is hit target media 1055 */ 1056 is_media: function is_media(name) { 1057 var media = syg_mediaquery._medias[name]; 1058 return window.matchMedia(media).matches; 1059 }, 1060 1061 1062 /** 1063 * get hit media list 1064 * @return {Array} hit media list 1065 */ 1066 get_hit_medias: function get_hit_medias() { 1067 var medias = syg_mediaquery._medias; 1068 var hitlist = []; 1069 1070 _Object$keys(medias).forEach(function (name) { 1071 if (syg_mediaquery.is_media(name)) { 1072 hitlist.push(name); 1073 } 1074 }); 1075 1076 return hitlist; 1077 } 1078}; 1079 1080/* harmony default export */ __webpack_exports__["default"] = (syg_mediaquery); 1081 1082 1083/***/ }), 1084
vendor: 19,471 bytes, lines 1085-1739
1085/***/ "./node_modules/@sygnas/scroll-amount/dist/scroll-amount.es.js": 1086/*!*********************************************************************!*\ 1087 !*** ./node_modules/@sygnas/scroll-amount/dist/scroll-amount.es.js ***! 1088 \*********************************************************************/ 1089/*! exports provided: default */ 1090/***/ (function(module, __webpack_exports__, __webpack_require__) { 1091 1092"use strict"; 1093__webpack_require__.r(__webpack_exports__); 1094/* harmony import */ var _sygnas_throttle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @sygnas/throttle */ "./node_modules/@sygnas/throttle/dist/throttle.es.js"); 1095 1096 1097function unwrapExports (x) { 1098 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; 1099} 1100 1101function createCommonjsModule(fn, module) { 1102 return module = { exports: {} }, fn(module, module.exports), module.exports; 1103} 1104 1105var _global = createCommonjsModule(function (module) { 1106// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1107var global = module.exports = typeof window != 'undefined' && window.Math == Math 1108 ? window : typeof self != 'undefined' && self.Math == Math ? self 1109 // eslint-disable-next-line no-new-func 1110 : Function('return this')(); 1111if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 1112}); 1113 1114var _core = createCommonjsModule(function (module) { 1115var core = module.exports = { version: '2.5.3' }; 1116if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 1117}); 1118 1119var _core_1 = _core.version; 1120 1121var _aFunction = function (it) { 1122 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1123 return it; 1124}; 1125 1126// optional / simple context binding 1127 1128var _ctx = function (fn, that, length) { 1129 _aFunction(fn); 1130 if (that === undefined) return fn; 1131 switch (length) { 1132 case 1: return function (a) { 1133 return fn.call(that, a); 1134 }; 1135 case 2: return function (a, b) { 1136 return fn.call(that, a, b); 1137 }; 1138 case 3: return function (a, b, c) { 1139 return fn.call(that, a, b, c); 1140 }; 1141 } 1142 return function (/* ...args */) { 1143 return fn.apply(that, arguments); 1144 }; 1145}; 1146 1147var _isObject = function (it) { 1148 return typeof it === 'object' ? it !== null : typeof it === 'function'; 1149}; 1150 1151var _anObject = function (it) { 1152 if (!_isObject(it)) throw TypeError(it + ' is not an object!'); 1153 return it; 1154}; 1155 1156var _fails = function (exec) { 1157 try { 1158 return !!exec(); 1159 } catch (e) { 1160 return true; 1161 } 1162}; 1163 1164// Thank's IE8 for his funny defineProperty 1165var _descriptors = !_fails(function () { 1166 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 1167}); 1168 1169var document$1 = _global.document; 1170// typeof document.createElement is 'object' in old IE 1171var is = _isObject(document$1) && _isObject(document$1.createElement); 1172var _domCreate = function (it) { 1173 return is ? document$1.createElement(it) : {}; 1174}; 1175 1176var _ie8DomDefine = !_descriptors && !_fails(function () { 1177 return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7; 1178}); 1179 1180// 7.1.1 ToPrimitive(input [, PreferredType]) 1181 1182// instead of the ES6 spec version, we didn't implement @@toPrimitive case 1183// and the second argument - flag - preferred type is a string 1184var _toPrimitive = function (it, S) { 1185 if (!_isObject(it)) return it; 1186 var fn, val; 1187 if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 1188 if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val; 1189 if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 1190 throw TypeError("Can't convert object to primitive value"); 1191}; 1192 1193var dP = Object.defineProperty; 1194 1195var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { 1196 _anObject(O); 1197 P = _toPrimitive(P, true); 1198 _anObject(Attributes); 1199 if (_ie8DomDefine) try { 1200 return dP(O, P, Attributes); 1201 } catch (e) { /* empty */ } 1202 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 1203 if ('value' in Attributes) O[P] = Attributes.value; 1204 return O; 1205}; 1206 1207var _objectDp = { 1208 f: f 1209}; 1210 1211var _propertyDesc = function (bitmap, value) { 1212 return { 1213 enumerable: !(bitmap & 1), 1214 configurable: !(bitmap & 2), 1215 writable: !(bitmap & 4), 1216 value: value 1217 }; 1218}; 1219 1220var _hide = _descriptors ? function (object, key, value) { 1221 return _objectDp.f(object, key, _propertyDesc(1, value)); 1222} : function (object, key, value) { 1223 object[key] = value; 1224 return object; 1225}; 1226 1227var PROTOTYPE = 'prototype'; 1228 1229var $export = function (type, name, source) { 1230 var IS_FORCED = type & $export.F; 1231 var IS_GLOBAL = type & $export.G; 1232 var IS_STATIC = type & $export.S; 1233 var IS_PROTO = type & $export.P; 1234 var IS_BIND = type & $export.B; 1235 var IS_WRAP = type & $export.W; 1236 var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {}); 1237 var expProto = exports[PROTOTYPE]; 1238 var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE]; 1239 var key, own, out; 1240 if (IS_GLOBAL) source = name; 1241 for (key in source) { 1242 // contains in native 1243 own = !IS_FORCED && target && target[key] !== undefined; 1244 if (own && key in exports) continue; 1245 // export native or passed 1246 out = own ? target[key] : source[key]; 1247 // prevent global pollution for namespaces 1248 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 1249 // bind timers to global for call from export context 1250 : IS_BIND && own ? _ctx(out, _global) 1251 // wrap global constructors for prevent change them in library 1252 : IS_WRAP && target[key] == out ? (function (C) { 1253 var F = function (a, b, c) { 1254 if (this instanceof C) { 1255 switch (arguments.length) { 1256 case 0: return new C(); 1257 case 1: return new C(a); 1258 case 2: return new C(a, b); 1259 } return new C(a, b, c); 1260 } return C.apply(this, arguments); 1261 }; 1262 F[PROTOTYPE] = C[PROTOTYPE]; 1263 return F; 1264 // make static versions for prototype methods 1265 })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out; 1266 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 1267 if (IS_PROTO) { 1268 (exports.virtual || (exports.virtual = {}))[key] = out; 1269 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 1270 if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out); 1271 } 1272 } 1273}; 1274// type bitmap 1275$export.F = 1; // forced 1276$export.G = 2; // global 1277$export.S = 4; // static 1278$export.P = 8; // proto 1279$export.B = 16; // bind 1280$export.W = 32; // wrap 1281$export.U = 64; // safe 1282$export.R = 128; // real proto method for `library` 1283var _export = $export; 1284 1285var hasOwnProperty = {}.hasOwnProperty; 1286var _has = function (it, key) { 1287 return hasOwnProperty.call(it, key); 1288}; 1289 1290var toString = {}.toString; 1291 1292var _cof = function (it) { 1293 return toString.call(it).slice(8, -1); 1294}; 1295 1296// fallback for non-array-like ES3 and non-enumerable old V8 strings 1297 1298// eslint-disable-next-line no-prototype-builtins 1299var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 1300 return _cof(it) == 'String' ? it.split('') : Object(it); 1301}; 1302 1303// 7.2.1 RequireObjectCoercible(argument) 1304var _defined = function (it) { 1305 if (it == undefined) throw TypeError("Can't call method on " + it); 1306 return it; 1307}; 1308 1309// to indexed object, toObject with fallback for non-array-like ES3 strings 1310 1311 1312var _toIobject = function (it) { 1313 return _iobject(_defined(it)); 1314}; 1315 1316// 7.1.4 ToInteger 1317var ceil = Math.ceil; 1318var floor = Math.floor; 1319var _toInteger = function (it) { 1320 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 1321}; 1322 1323// 7.1.15 ToLength 1324 1325var min = Math.min; 1326var _toLength = function (it) { 1327 return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1328}; 1329 1330var max = Math.max; 1331var min$1 = Math.min; 1332var _toAbsoluteIndex = function (index, length) { 1333 index = _toInteger(index); 1334 return index < 0 ? max(index + length, 0) : min$1(index, length); 1335}; 1336 1337// false -> Array#indexOf 1338// true -> Array#includes 1339 1340 1341 1342var _arrayIncludes = function (IS_INCLUDES) { 1343 return function ($this, el, fromIndex) { 1344 var O = _toIobject($this); 1345 var length = _toLength(O.length); 1346 var index = _toAbsoluteIndex(fromIndex, length); 1347 var value; 1348 // Array#includes uses SameValueZero equality algorithm 1349 // eslint-disable-next-line no-self-compare 1350 if (IS_INCLUDES && el != el) while (length > index) { 1351 value = O[index++]; 1352 // eslint-disable-next-line no-self-compare 1353 if (value != value) return true; 1354 // Array#indexOf ignores holes, Array#includes - not 1355 } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 1356 if (O[index] === el) return IS_INCLUDES || index || 0; 1357 } return !IS_INCLUDES && -1; 1358 }; 1359}; 1360 1361var SHARED = '__core-js_shared__'; 1362var store = _global[SHARED] || (_global[SHARED] = {}); 1363var _shared = function (key) { 1364 return store[key] || (store[key] = {}); 1365}; 1366 1367var id = 0; 1368var px = Math.random(); 1369var _uid = function (key) { 1370 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 1371}; 1372 1373var shared = _shared('keys'); 1374 1375var _sharedKey = function (key) { 1376 return shared[key] || (shared[key] = _uid(key)); 1377}; 1378 1379var arrayIndexOf = _arrayIncludes(false); 1380var IE_PROTO = _sharedKey('IE_PROTO'); 1381 1382var _objectKeysInternal = function (object, names) { 1383 var O = _toIobject(object); 1384 var i = 0; 1385 var result = []; 1386 var key; 1387 for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key); 1388 // Don't enum bug & hidden keys 1389 while (names.length > i) if (_has(O, key = names[i++])) { 1390 ~arrayIndexOf(result, key) || result.push(key); 1391 } 1392 return result; 1393}; 1394 1395// IE 8- don't enum bug keys 1396var _enumBugKeys = ( 1397 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 1398).split(','); 1399 1400// 19.1.2.14 / 15.2.3.14 Object.keys(O) 1401 1402 1403 1404var _objectKeys = Object.keys || function keys(O) { 1405 return _objectKeysInternal(O, _enumBugKeys); 1406}; 1407 1408var f$1 = Object.getOwnPropertySymbols; 1409 1410var _objectGops = { 1411 f: f$1 1412}; 1413 1414var f$2 = {}.propertyIsEnumerable; 1415 1416var _objectPie = { 1417 f: f$2 1418}; 1419 1420// 7.1.13 ToObject(argument) 1421 1422var _toObject = function (it) { 1423 return Object(_defined(it)); 1424}; 1425 1426// 19.1.2.1 Object.assign(target, source, ...) 1427 1428 1429 1430 1431 1432var $assign = Object.assign; 1433 1434// should work with symbols and should have deterministic property order (V8 bug) 1435var _objectAssign = !$assign || _fails(function () { 1436 var A = {}; 1437 var B = {}; 1438 // eslint-disable-next-line no-undef 1439 var S = Symbol(); 1440 var K = 'abcdefghijklmnopqrst'; 1441 A[S] = 7; 1442 K.split('').forEach(function (k) { B[k] = k; }); 1443 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; 1444}) ? function assign(target, source) { // eslint-disable-line no-unused-vars 1445 var T = _toObject(target); 1446 var aLen = arguments.length; 1447 var index = 1; 1448 var getSymbols = _objectGops.f; 1449 var isEnum = _objectPie.f; 1450 while (aLen > index) { 1451 var S = _iobject(arguments[index++]); 1452 var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S); 1453 var length = keys.length; 1454 var j = 0; 1455 var key; 1456 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; 1457 } return T; 1458} : $assign; 1459 1460// 19.1.3.1 Object.assign(target, source) 1461 1462 1463_export(_export.S + _export.F, 'Object', { assign: _objectAssign }); 1464 1465var assign = _core.Object.assign; 1466 1467var assign$2 = createCommonjsModule(function (module) { 1468module.exports = { "default": assign, __esModule: true }; 1469}); 1470 1471var _Object$assign = unwrapExports(assign$2); 1472 1473var classCallCheck = createCommonjsModule(function (module, exports) { 1474exports.__esModule = true; 1475 1476exports.default = function (instance, Constructor) { 1477 if (!(instance instanceof Constructor)) { 1478 throw new TypeError("Cannot call a class as a function"); 1479 } 1480}; 1481}); 1482 1483var _classCallCheck = unwrapExports(classCallCheck); 1484 1485// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) 1486_export(_export.S + _export.F * !_descriptors, 'Object', { defineProperty: _objectDp.f }); 1487 1488var $Object = _core.Object; 1489var defineProperty = function defineProperty(it, key, desc) { 1490 return $Object.defineProperty(it, key, desc); 1491}; 1492 1493var defineProperty$2 = createCommonjsModule(function (module) { 1494module.exports = { "default": defineProperty, __esModule: true }; 1495}); 1496 1497unwrapExports(defineProperty$2); 1498 1499var createClass = createCommonjsModule(function (module, exports) { 1500exports.__esModule = true; 1501 1502 1503 1504var _defineProperty2 = _interopRequireDefault(defineProperty$2); 1505 1506function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 1507 1508exports.default = function () { 1509 function defineProperties(target, props) { 1510 for (var i = 0; i < props.length; i++) { 1511 var descriptor = props[i]; 1512 descriptor.enumerable = descriptor.enumerable || false; 1513 descriptor.configurable = true; 1514 if ("value" in descriptor) descriptor.writable = true; 1515 (0, _defineProperty2.default)(target, descriptor.key, descriptor); 1516 } 1517 } 1518 1519 return function (Constructor, protoProps, staticProps) { 1520 if (protoProps) defineProperties(Constructor.prototype, protoProps); 1521 if (staticProps) defineProperties(Constructor, staticProps); 1522 return Constructor; 1523 }; 1524}(); 1525}); 1526 1527var _createClass = unwrapExports(createClass); 1528 1529/** 1530 * Add scrolling state(top / not-top / bottom / not-bottom) 1531 * 1532 * @author Hiroshi Fukuda <[email protected]> 1533 * @license MIT 1534 */ 1535 1536var ATTR_NAME = 'data-scroll-amount'; 1537var ATTR_TOP = 'top'; 1538var ATTR_BOTTOM = 'bottom'; 1539var ATTR_NOT_TOP = 'not-top'; 1540var ATTR_NOT_BOTTOM = 'not-bottom'; 1541 1542var _class = function () { 1543 1544 /** 1545 * ã³ã³ã¹ãã©ã¯ã¿ 1546 * @param {string} target DOM Selector 1547 * @param {object} options 1548 */ 1549 function _class(target) { 1550 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 1551 1552 _classCallCheck(this, _class); 1553 1554 var defaults = { 1555 // æä¸é¨ã®ãªãã»ãã 1556 offset_top: 70, 1557 // æä¸é¨ã®ãªãã»ãã 1558 offset_bottom: 70, 1559 // æä¸é¨ã«ã¹ã¯ãã¼ã«ããæã«å®è¡ 1560 onTop: function onTop() {}, 1561 1562 // æä¸é¨ããé¢ããæã«å®è¡ 1563 onNotTop: function onNotTop() {}, 1564 1565 // æä¸é¨ã«ã¹ã¯ãã¼ã«ããæã«å®è¡ 1566 onBottom: function onBottom() {}, 1567 1568 // æä¸é¨ããé¢ããæã«å®è¡ 1569 onNotBottom: function onNotBottom() {} 1570 }; 1571 1572 this.opt = _Object$assign(defaults, options); 1573 this.target = document.querySelectorAll(target); 1574 this.win_height = null; // ãã©ã¦ã¶ã¦ã£ã³ãã¦ã®é«ã 1575 this.interval_id = null; // ã¹ã¯ãã¼ã«ã¤ãã³ãã®ã¤ã³ã¿ã¼ãã«ãã§ã㯠1576 this.results = []; // data屿§ã«æ¸ãåºãå 容 1577 this.last_results_str = null; 1578 this.is_started = false; // éå§ãã 1579 this.is_top = false; // ä¸çªä¸ã«ã¹ã¯ãã¼ã«ãã 1580 this.is_bottom = false; // ä¸çªä¸ã«ã¹ã¯ãã¼ã«ãã 1581 1582 this.ev_resize = null; 1583 this.ev_scroll = null; 1584 1585 // éå§ 1586 this.start(); 1587 } 1588 1589 /** ******************* 1590 * public 1591 */ 1592 1593 /** 1594 * ã¹ã¯ãã¼ã«æ¤ç¥å¦çãéå§ 1595 */ 1596 1597 1598 _createClass(_class, [{ 1599 key: 'start', 1600 value: function start() { 1601 var _this = this; 1602 1603 // ãã§ã«éå§ãã¦ãããç¡è¦ 1604 if (this.is_started) return; 1605 1606 // ã¤ãã³ããªãã¸ã§ã¯ã 1607 this.ev_resize = Object(_sygnas_throttle__WEBPACK_IMPORTED_MODULE_0__["default"])(50, this._resize, this); 1608 this.ev_scroll = Object(_sygnas_throttle__WEBPACK_IMPORTED_MODULE_0__["default"])(100, this._scroll, this); 1609 1610 // ãªãµã¤ãºã¤ãã³ãã§ããã¥ã¡ã³ãé«ããã§ã㯠1611 this._resize(); 1612 window.addEventListener('resize', this.ev_resize); 1613 1614 // ã¹ã¯ãã¼ã«ã¤ãã³ã 1615 this._scroll(); 1616 this.is_started = true; 1617 window.addEventListener('scroll', this.ev_scroll); 1618 1619 // 0.5ç§éæ¯ã«ãã§ãã¯ãå ¥ãã 1620 this.interval_id = setInterval(function () { 1621 _this._scroll(); 1622 }, 500); 1623 } 1624 1625 /** 1626 * ã¹ã¯ãã¼ã«æ¤ç¥å¦çã忢 1627 */ 1628 1629 }, { 1630 key: 'stop', 1631 value: function stop() { 1632 window.removeEventListener('resize', this.ev_resize); 1633 window.removeEventListener('scroll', this.ev_scroll); 1634 clearInterval(this.interval_id); 1635 } 1636 1637 /** ******************* 1638 * private 1639 */ 1640 1641 /** 1642 * ã¹ã¯ãã¼ã«å¦ç 1643 */ 1644 1645 }, { 1646 key: '_scroll', 1647 value: function _scroll() { 1648 var scroll_top = window.pageYOffset; 1649 1650 // åæå 1651 this.results = []; 1652 1653 // ä½ç½®ã¤ãã³ãã®ãã§ã㯠1654 this._check_top_and_bottom(scroll_top); 1655 1656 // 屿§ãä»ä¸ 1657 this._set_attribute(); 1658 } 1659 1660 /** 1661 * 屿§ãä»ä¸ 1662 */ 1663 1664 }, { 1665 key: '_set_attribute', 1666 value: function _set_attribute() { 1667 var results_str = this.results.join(' '); 1668 1669 // çµæã data屿§ã«åæ ãã 1670 // ååã¨åããªãåæ ããªã 1671 if (results_str !== this.last_results_str) { 1672 this.last_results_str = results_str; 1673 get_node_array(this.target).forEach(function (target) { 1674 target.setAttribute(ATTR_NAME, results_str); 1675 }); 1676 } 1677 } 1678 1679 /** 1680 * æä¸é¨ãæä¸é¨ãã®ãã§ã㯠1681 */ 1682 1683 }, { 1684 key: '_check_top_and_bottom', 1685 value: function _check_top_and_bottom(scroll_top) { 1686 var opt = this.opt; 1687 var doc_height = document.documentElement.scrollHeight; 1688 var scroll_bottom = doc_height - this.win_height; 1689 1690 // æä¸é¨ã 1691 if (scroll_top <= opt.offset_top) { 1692 // ãã¼ã¸æä¸é¨ 1693 if (!this.is_top) opt.onTop(); 1694 this.is_top = true; 1695 this.results.push(ATTR_TOP); 1696 } else { 1697 // æä¸é¨ããé¢ãã 1698 if (this.is_top) opt.onNotTop(); 1699 this.is_top = false; 1700 this.results.push(ATTR_NOT_TOP); 1701 } 1702 1703 // æä¸é¨ã 1704 if (scroll_top >= scroll_bottom - opt.offset_bottom) { 1705 // ãã¼ã¸æä¸é¨ 1706 if (!this.is_bottom) opt.onBottom(); 1707 this.is_bottom = true; 1708 this.results.push(ATTR_BOTTOM); 1709 } else { 1710 // æä¸é¨ããé¢ãã 1711 if (this.is_bottom) opt.onNotBottom(); 1712 this.is_bottom = false; 1713 this.results.push(ATTR_NOT_BOTTOM); 1714 } 1715 } 1716 1717 /** 1718 * ã¦ã£ã³ãã¦ããªãµã¤ãºãããé«ããªã©ããã§ã㯠1719 */ 1720 1721 }, { 1722 key: '_resize', 1723 value: function _resize() { 1724 this.win_height = window.window.innerHeight; 1725 } 1726 }]); 1727 1728 return _class; 1729}(); 1730 1731function get_node_array(node_list) { 1732 return Array.prototype.slice.call(node_list, 0); 1733} 1734 1735/* harmony default export */ __webpack_exports__["default"] = (_class); 1736 1737 1738/***/ }), 1739
vendor: 23,612 bytes, lines 1740-2506
1740/***/ "./node_modules/@sygnas/scroll-inview/dist/scroll-inview.es.js": 1741/*!*********************************************************************!*\ 1742 !*** ./node_modules/@sygnas/scroll-inview/dist/scroll-inview.es.js ***! 1743 \*********************************************************************/ 1744/*! exports provided: default */ 1745/***/ (function(module, __webpack_exports__, __webpack_require__) { 1746 1747"use strict"; 1748__webpack_require__.r(__webpack_exports__); 1749/* harmony import */ var _sygnas_throttle__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @sygnas/throttle */ "./node_modules/@sygnas/throttle/dist/throttle.es.js"); 1750 1751 1752function unwrapExports (x) { 1753 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; 1754} 1755 1756function createCommonjsModule(fn, module) { 1757 return module = { exports: {} }, fn(module, module.exports), module.exports; 1758} 1759 1760var _global = createCommonjsModule(function (module) { 1761// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 1762var global = module.exports = typeof window != 'undefined' && window.Math == Math 1763 ? window : typeof self != 'undefined' && self.Math == Math ? self 1764 // eslint-disable-next-line no-new-func 1765 : Function('return this')(); 1766if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 1767}); 1768 1769var _core = createCommonjsModule(function (module) { 1770var core = module.exports = { version: '2.5.3' }; 1771if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 1772}); 1773 1774var _core_1 = _core.version; 1775 1776var _aFunction = function (it) { 1777 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1778 return it; 1779}; 1780 1781// optional / simple context binding 1782 1783var _ctx = function (fn, that, length) { 1784 _aFunction(fn); 1785 if (that === undefined) return fn; 1786 switch (length) { 1787 case 1: return function (a) { 1788 return fn.call(that, a); 1789 }; 1790 case 2: return function (a, b) { 1791 return fn.call(that, a, b); 1792 }; 1793 case 3: return function (a, b, c) { 1794 return fn.call(that, a, b, c); 1795 }; 1796 } 1797 return function (/* ...args */) { 1798 return fn.apply(that, arguments); 1799 }; 1800}; 1801 1802var _isObject = function (it) { 1803 return typeof it === 'object' ? it !== null : typeof it === 'function'; 1804}; 1805 1806var _anObject = function (it) { 1807 if (!_isObject(it)) throw TypeError(it + ' is not an object!'); 1808 return it; 1809}; 1810 1811var _fails = function (exec) { 1812 try { 1813 return !!exec(); 1814 } catch (e) { 1815 return true; 1816 } 1817}; 1818 1819// Thank's IE8 for his funny defineProperty 1820var _descriptors = !_fails(function () { 1821 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 1822}); 1823 1824var document$1 = _global.document; 1825// typeof document.createElement is 'object' in old IE 1826var is = _isObject(document$1) && _isObject(document$1.createElement); 1827var _domCreate = function (it) { 1828 return is ? document$1.createElement(it) : {}; 1829}; 1830 1831var _ie8DomDefine = !_descriptors && !_fails(function () { 1832 return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7; 1833}); 1834 1835// 7.1.1 ToPrimitive(input [, PreferredType]) 1836 1837// instead of the ES6 spec version, we didn't implement @@toPrimitive case 1838// and the second argument - flag - preferred type is a string 1839var _toPrimitive = function (it, S) { 1840 if (!_isObject(it)) return it; 1841 var fn, val; 1842 if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 1843 if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val; 1844 if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 1845 throw TypeError("Can't convert object to primitive value"); 1846}; 1847 1848var dP = Object.defineProperty; 1849 1850var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { 1851 _anObject(O); 1852 P = _toPrimitive(P, true); 1853 _anObject(Attributes); 1854 if (_ie8DomDefine) try { 1855 return dP(O, P, Attributes); 1856 } catch (e) { /* empty */ } 1857 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 1858 if ('value' in Attributes) O[P] = Attributes.value; 1859 return O; 1860}; 1861 1862var _objectDp = { 1863 f: f 1864}; 1865 1866var _propertyDesc = function (bitmap, value) { 1867 return { 1868 enumerable: !(bitmap & 1), 1869 configurable: !(bitmap & 2), 1870 writable: !(bitmap & 4), 1871 value: value 1872 }; 1873}; 1874 1875var _hide = _descriptors ? function (object, key, value) { 1876 return _objectDp.f(object, key, _propertyDesc(1, value)); 1877} : function (object, key, value) { 1878 object[key] = value; 1879 return object; 1880}; 1881 1882var PROTOTYPE = 'prototype'; 1883 1884var $export = function (type, name, source) { 1885 var IS_FORCED = type & $export.F; 1886 var IS_GLOBAL = type & $export.G; 1887 var IS_STATIC = type & $export.S; 1888 var IS_PROTO = type & $export.P; 1889 var IS_BIND = type & $export.B; 1890 var IS_WRAP = type & $export.W; 1891 var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {}); 1892 var expProto = exports[PROTOTYPE]; 1893 var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE]; 1894 var key, own, out; 1895 if (IS_GLOBAL) source = name; 1896 for (key in source) { 1897 // contains in native 1898 own = !IS_FORCED && target && target[key] !== undefined; 1899 if (own && key in exports) continue; 1900 // export native or passed 1901 out = own ? target[key] : source[key]; 1902 // prevent global pollution for namespaces 1903 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 1904 // bind timers to global for call from export context 1905 : IS_BIND && own ? _ctx(out, _global) 1906 // wrap global constructors for prevent change them in library 1907 : IS_WRAP && target[key] == out ? (function (C) { 1908 var F = function (a, b, c) { 1909 if (this instanceof C) { 1910 switch (arguments.length) { 1911 case 0: return new C(); 1912 case 1: return new C(a); 1913 case 2: return new C(a, b); 1914 } return new C(a, b, c); 1915 } return C.apply(this, arguments); 1916 }; 1917 F[PROTOTYPE] = C[PROTOTYPE]; 1918 return F; 1919 // make static versions for prototype methods 1920 })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out; 1921 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 1922 if (IS_PROTO) { 1923 (exports.virtual || (exports.virtual = {}))[key] = out; 1924 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 1925 if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out); 1926 } 1927 } 1928}; 1929// type bitmap 1930$export.F = 1; // forced 1931$export.G = 2; // global 1932$export.S = 4; // static 1933$export.P = 8; // proto 1934$export.B = 16; // bind 1935$export.W = 32; // wrap 1936$export.U = 64; // safe 1937$export.R = 128; // real proto method for `library` 1938var _export = $export; 1939 1940// 7.2.1 RequireObjectCoercible(argument) 1941var _defined = function (it) { 1942 if (it == undefined) throw TypeError("Can't call method on " + it); 1943 return it; 1944}; 1945 1946var _stringWs = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + 1947 '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; 1948 1949var space = '[' + _stringWs + ']'; 1950var non = '\u200b\u0085'; 1951var ltrim = RegExp('^' + space + space + '*'); 1952var rtrim = RegExp(space + space + '*$'); 1953 1954var exporter = function (KEY, exec, ALIAS) { 1955 var exp = {}; 1956 var FORCE = _fails(function () { 1957 return !!_stringWs[KEY]() || non[KEY]() != non; 1958 }); 1959 var fn = exp[KEY] = FORCE ? exec(trim) : _stringWs[KEY]; 1960 if (ALIAS) exp[ALIAS] = fn; 1961 _export(_export.P + _export.F * FORCE, 'String', exp); 1962}; 1963 1964// 1 -> String#trimLeft 1965// 2 -> String#trimRight 1966// 3 -> String#trim 1967var trim = exporter.trim = function (string, TYPE) { 1968 string = String(_defined(string)); 1969 if (TYPE & 1) string = string.replace(ltrim, ''); 1970 if (TYPE & 2) string = string.replace(rtrim, ''); 1971 return string; 1972}; 1973 1974var _stringTrim = exporter; 1975 1976var $parseInt = _global.parseInt; 1977var $trim = _stringTrim.trim; 1978 1979var hex = /^[-+]?0[xX]/; 1980 1981var _parseInt = $parseInt(_stringWs + '08') !== 8 || $parseInt(_stringWs + '0x16') !== 22 ? function parseInt(str, radix) { 1982 var string = $trim(String(str), 3); 1983 return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); 1984} : $parseInt; 1985 1986// 20.1.2.13 Number.parseInt(string, radix) 1987_export(_export.S + _export.F * (Number.parseInt != _parseInt), 'Number', { parseInt: _parseInt }); 1988 1989var _parseInt$2 = parseInt; 1990 1991var _parseInt$4 = createCommonjsModule(function (module) { 1992module.exports = { "default": _parseInt$2, __esModule: true }; 1993}); 1994 1995var _Number$parseInt = unwrapExports(_parseInt$4); 1996 1997var hasOwnProperty = {}.hasOwnProperty; 1998var _has = function (it, key) { 1999 return hasOwnProperty.call(it, key); 2000}; 2001 2002var toString = {}.toString; 2003 2004var _cof = function (it) { 2005 return toString.call(it).slice(8, -1); 2006}; 2007 2008// fallback for non-array-like ES3 and non-enumerable old V8 strings 2009 2010// eslint-disable-next-line no-prototype-builtins 2011var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 2012 return _cof(it) == 'String' ? it.split('') : Object(it); 2013}; 2014 2015// to indexed object, toObject with fallback for non-array-like ES3 strings 2016 2017 2018var _toIobject = function (it) { 2019 return _iobject(_defined(it)); 2020}; 2021 2022// 7.1.4 ToInteger 2023var ceil = Math.ceil; 2024var floor = Math.floor; 2025var _toInteger = function (it) { 2026 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 2027}; 2028 2029// 7.1.15 ToLength 2030 2031var min = Math.min; 2032var _toLength = function (it) { 2033 return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 2034}; 2035 2036var max = Math.max; 2037var min$1 = Math.min; 2038var _toAbsoluteIndex = function (index, length) { 2039 index = _toInteger(index); 2040 return index < 0 ? max(index + length, 0) : min$1(index, length); 2041}; 2042 2043// false -> Array#indexOf 2044// true -> Array#includes 2045 2046 2047 2048var _arrayIncludes = function (IS_INCLUDES) { 2049 return function ($this, el, fromIndex) { 2050 var O = _toIobject($this); 2051 var length = _toLength(O.length); 2052 var index = _toAbsoluteIndex(fromIndex, length); 2053 var value; 2054 // Array#includes uses SameValueZero equality algorithm 2055 // eslint-disable-next-line no-self-compare 2056 if (IS_INCLUDES && el != el) while (length > index) { 2057 value = O[index++]; 2058 // eslint-disable-next-line no-self-compare 2059 if (value != value) return true; 2060 // Array#indexOf ignores holes, Array#includes - not 2061 } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 2062 if (O[index] === el) return IS_INCLUDES || index || 0; 2063 } return !IS_INCLUDES && -1; 2064 }; 2065}; 2066 2067var SHARED = '__core-js_shared__'; 2068var store = _global[SHARED] || (_global[SHARED] = {}); 2069var _shared = function (key) { 2070 return store[key] || (store[key] = {}); 2071}; 2072 2073var id = 0; 2074var px = Math.random(); 2075var _uid = function (key) { 2076 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 2077}; 2078 2079var shared = _shared('keys'); 2080 2081var _sharedKey = function (key) { 2082 return shared[key] || (shared[key] = _uid(key)); 2083}; 2084 2085var arrayIndexOf = _arrayIncludes(false); 2086var IE_PROTO = _sharedKey('IE_PROTO'); 2087 2088var _objectKeysInternal = function (object, names) { 2089 var O = _toIobject(object); 2090 var i = 0; 2091 var result = []; 2092 var key; 2093 for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key); 2094 // Don't enum bug & hidden keys 2095 while (names.length > i) if (_has(O, key = names[i++])) { 2096 ~arrayIndexOf(result, key) || result.push(key); 2097 } 2098 return result; 2099}; 2100 2101// IE 8- don't enum bug keys 2102var _enumBugKeys = ( 2103 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 2104).split(','); 2105 2106// 19.1.2.14 / 15.2.3.14 Object.keys(O) 2107 2108 2109 2110var _objectKeys = Object.keys || function keys(O) { 2111 return _objectKeysInternal(O, _enumBugKeys); 2112}; 2113 2114var f$1 = Object.getOwnPropertySymbols; 2115 2116var _objectGops = { 2117 f: f$1 2118}; 2119 2120var f$2 = {}.propertyIsEnumerable; 2121 2122var _objectPie = { 2123 f: f$2 2124}; 2125 2126// 7.1.13 ToObject(argument) 2127 2128var _toObject = function (it) { 2129 return Object(_defined(it)); 2130}; 2131 2132// 19.1.2.1 Object.assign(target, source, ...) 2133 2134 2135 2136 2137 2138var $assign = Object.assign; 2139 2140// should work with symbols and should have deterministic property order (V8 bug) 2141var _objectAssign = !$assign || _fails(function () { 2142 var A = {}; 2143 var B = {}; 2144 // eslint-disable-next-line no-undef 2145 var S = Symbol(); 2146 var K = 'abcdefghijklmnopqrst'; 2147 A[S] = 7; 2148 K.split('').forEach(function (k) { B[k] = k; }); 2149 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; 2150}) ? function assign(target, source) { // eslint-disable-line no-unused-vars 2151 var T = _toObject(target); 2152 var aLen = arguments.length; 2153 var index = 1; 2154 var getSymbols = _objectGops.f; 2155 var isEnum = _objectPie.f; 2156 while (aLen > index) { 2157 var S = _iobject(arguments[index++]); 2158 var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S); 2159 var length = keys.length; 2160 var j = 0; 2161 var key; 2162 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; 2163 } return T; 2164} : $assign; 2165 2166// 19.1.3.1 Object.assign(target, source) 2167 2168 2169_export(_export.S + _export.F, 'Object', { assign: _objectAssign }); 2170 2171var assign = _core.Object.assign; 2172 2173var assign$2 = createCommonjsModule(function (module) { 2174module.exports = { "default": assign, __esModule: true }; 2175}); 2176 2177var _Object$assign = unwrapExports(assign$2); 2178 2179// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) 2180_export(_export.S + _export.F * !_descriptors, 'Object', { defineProperty: _objectDp.f }); 2181 2182var $Object = _core.Object; 2183var defineProperty = function defineProperty(it, key, desc) { 2184 return $Object.defineProperty(it, key, desc); 2185}; 2186 2187var defineProperty$2 = createCommonjsModule(function (module) { 2188module.exports = { "default": defineProperty, __esModule: true }; 2189}); 2190 2191unwrapExports(defineProperty$2); 2192 2193var createClass = createCommonjsModule(function (module, exports) { 2194exports.__esModule = true; 2195 2196 2197 2198var _defineProperty2 = _interopRequireDefault(defineProperty$2); 2199 2200function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 2201 2202exports.default = function () { 2203 function defineProperties(target, props) { 2204 for (var i = 0; i < props.length; i++) { 2205 var descriptor = props[i]; 2206 descriptor.enumerable = descriptor.enumerable || false; 2207 descriptor.configurable = true; 2208 if ("value" in descriptor) descriptor.writable = true; 2209 (0, _defineProperty2.default)(target, descriptor.key, descriptor); 2210 } 2211 } 2212 2213 return function (Constructor, protoProps, staticProps) { 2214 if (protoProps) defineProperties(Constructor.prototype, protoProps); 2215 if (staticProps) defineProperties(Constructor, staticProps); 2216 return Constructor; 2217 }; 2218}(); 2219}); 2220 2221var _createClass = unwrapExports(createClass); 2222 2223var classCallCheck = createCommonjsModule(function (module, exports) { 2224exports.__esModule = true; 2225 2226exports.default = function (instance, Constructor) { 2227 if (!(instance instanceof Constructor)) { 2228 throw new TypeError("Cannot call a class as a function"); 2229 } 2230}; 2231}); 2232 2233var _classCallCheck = unwrapExports(classCallCheck); 2234 2235/** 2236 * Scroll in viewport add data attribute 2237 * ã¹ã¯ãã¼ã«ãã¦ãã¥ã¼ãã¼ãã«å ¥ã£ããdata屿§ãä¸ãã 2238 * 2239 * @author Hiroshi Fukuda <[email protected]> 2240 * @license MIT 2241 */ 2242 2243// ããã©ã«ãå¤ 2244var defaults = { 2245 offset: 50, 2246 doc_bottom_offset: 50, 2247 on_view: function on_view() {} 2248}; 2249 2250var ATTR_INVIEW = 'data-inview'; 2251var ATTR_INVIEW_OFFSET = 'data-inview-offset'; 2252 2253/** 2254 * ã¨ã¬ã¡ã³ãæ å ±ãæ ¼ç´ããã¯ã©ã¹ 2255 */ 2256 2257var TargetClass = function TargetClass(elm) { 2258 _classCallCheck(this, TargetClass); 2259 2260 // ãã¥ã¼ãã¼ãã«å ¥ã£ãããã§ãã¯ããã¨ã¬ã¡ã³ã 2261 this.elm = elm; 2262 // ãã¥ã¼ãã¼ãã®å¤å®ãªãã»ãã 2263 this.offset = 0; 2264 // ããã¥ã¡ã³ãå ã®åº§æ¨ 2265 this.top = 0; 2266 // ããã¥ã¡ã³ãå ã®åº§æ¨ï¼ã¨ã¬ã¡ã³ãé«ã 2267 this.bottom = 0; 2268 // 表示ããã 2269 this.is_inview = false; 2270}; 2271 2272/** 2273 * in view controller 2274 */ 2275 2276 2277var _class = function () { 2278 2279 /** 2280 * ã³ã³ã¹ãã©ã¯ã¿ 2281 * @param {string} target DOM selector string 2282 * @param {object} config 2283 */ 2284 function _class(target, config) { 2285 _classCallCheck(this, _class); 2286 2287 this.opt = _Object$assign(defaults, config); 2288 // 対象ã¨ã¬ã¡ã³ãã®ã»ã¬ã¯ã¿æåå 2289 this.target_string = target; 2290 // 対象ã¨ã¬ã¡ã³ãã¨ã座æ¨ãæ ¼ç´ãããªã¹ã 2291 this.target_list = []; 2292 // éå§ããã 2293 this.is_started = false; 2294 // ã¦ã£ã³ãã¦ã®é«ã 2295 this.win_height = 0; 2296 // ããã¥ã¡ã³ãå ¨ä½ã®é«ã 2297 this.doc_height = 0; 2298 // 対象ã¨ã¬ã¡ã³ãã®é«ãããã§ãã¯ããããã® setInterval ID 2299 this.interval_id = null; 2300 // ã¹ã¯ãã¼ã«ã¤ãã³ã 2301 this.ev_scroll = null; 2302 // ãªãµã¤ãºã¤ãã³ã 2303 this.ev_resize = null; 2304 2305 // ã¿ã¼ã²ããã¨ã¬ã¡ã³ããåå¾ 2306 this.reset_target(); 2307 } 2308 2309 /** 2310 * ã¨ã¬ã¡ã³ããtop座æ¨ãbottom座æ¨ãæ ¼ç´ããã¯ã©ã¹ã®é åãä½ãç´ã 2311 * @public 2312 */ 2313 2314 2315 _createClass(_class, [{ 2316 key: 'reset_target', 2317 value: function reset_target() { 2318 var _this = this; 2319 2320 var opt = this.opt; 2321 this.target_list = []; 2322 2323 var node_list = document.querySelectorAll(this.target_string); 2324 2325 get_node_array(node_list).forEach(function (elm) { 2326 var target = new TargetClass(elm); 2327 var offset = _Number$parseInt(elm.getAttribute(ATTR_INVIEW_OFFSET), 10); 2328 target.offset = offset || opt.offset; 2329 _this.target_list.push(target); 2330 }); 2331 } 2332 2333 /** 2334 * ã¹ã¯ãã¼ã«æ¤ç¥å¦çãéå§ 2335 * @public 2336 */ 2337 2338 }, { 2339 key: 'start', 2340 value: function start() { 2341 2342 // ãã§ã«éå§ãã¦ãããç¡è¦ 2343 if (this.is_started) return; 2344 2345 // åã¢ã¤ãã ã®é«ãããã§ã㯠2346 this.$_check_element_position(); 2347 2348 // ã¦ã£ã³ãã¦ãããã¥ã¡ã³ãã®é«ãããã§ã㯠2349 this.ev_resize = Object(_sygnas_throttle__WEBPACK_IMPORTED_MODULE_0__["default"])(50, this.$_check_document_height, this); 2350 window.addEventListener('resize', this.ev_resize); 2351 this.$_check_document_height(); 2352 2353 // ã¹ã¯ãã¼ã«ã¤ãã³ã 2354 this.ev_scroll = Object(_sygnas_throttle__WEBPACK_IMPORTED_MODULE_0__["default"])(40, this.$_check_inview, this); 2355 window.addEventListener('scroll', this.ev_scroll); 2356 this.$_check_inview(); 2357 2358 this.is_started = true; 2359 } 2360 2361 /** 2362 * ãã¥ã¼ãã¼ãå¤å®ãå ¨ã¦åãã 2363 * @public 2364 */ 2365 2366 }, { 2367 key: 'stop', 2368 value: function stop() { 2369 window.removeEventListener('scroll', this.ev_scroll); 2370 window.removeEventListener('resize', this.ev_resize); 2371 this.is_started = false; 2372 } 2373 2374 /** 2375 * ãã©ã¤ãã¼ãã¡ã½ãã 2376 */ 2377 2378 /** 2379 * 対象ã¨ã¬ã¡ã³ãã®ä¸ä¸åº§æ¨ããã§ãã¯ãã¦ãthis.target_list ã®ãªãã¸ã§ã¯ããæ´æ° 2380 */ 2381 2382 }, { 2383 key: '$_check_element_position', 2384 value: function $_check_element_position() { 2385 this.target_list.forEach(function (target) { 2386 var elm = target.elm; 2387 var scroll_top = window.pageYOffset; 2388 var rect = elm.getBoundingClientRect(); 2389 target.top = scroll_top + rect.top; 2390 target.bottom = scroll_top + rect.bottom; 2391 }); 2392 } 2393 2394 /** 2395 * ã¦ã£ã³ãã¦ããªãµã¤ãºãããé«ããªã©ããã§ã㯠2396 */ 2397 2398 }, { 2399 key: '$_check_document_height', 2400 value: function $_check_document_height() { 2401 this.win_height = window.window.innerHeight; 2402 this.doc_height = document.documentElement.scrollHeight; 2403 } 2404 2405 /** 2406 * ã¹ã¯ãã¼ã«å¦ç 2407 * åã¨ã¬ã¡ã³ããç»é¢å ã«åå¨ããã 2408 */ 2409 2410 }, { 2411 key: '$_check_inview', 2412 value: function $_check_inview() { 2413 var _this2 = this; 2414 2415 var is_all_inview = true; 2416 2417 // ã¹ã¯ãã¼ã«ä¸ä½ç½®ã¨ä¸ä½ç½® 2418 var scroll_top = window.pageYOffset; 2419 var scroll_bottom = scroll_top + this.win_height; 2420 2421 // å ´é¢ä¸ç«¯ã¾ã§ãã£ããå¼·å¶çã«å ¨é¨è¡¨ç¤ºãã¦ãscrollå¦çãæ¢ãã 2422 if (this.$_check_arrived_document_bottom(scroll_bottom)) { 2423 return; 2424 } 2425 2426 // 対象ã¨ã¬ã¡ã³ããé ã«ãã§ã㯠2427 // å ¨ã¦ã®ã¨ã¬ã¡ã³ãã表示ãããã is_all_inview ã true ã«ãªã 2428 this.target_list.forEach(function (target) { 2429 is_all_inview = _this2.$_check_inview_target(target, scroll_top, scroll_bottom) && is_all_inview; 2430 }); 2431 2432 // å ¨ã¦ã®ã¨ã¬ã¡ã³ãã表示ããããå¦çãæ¢ãã 2433 if (is_all_inview) this.stop(); 2434 } 2435 2436 /** 2437 * ããã¥ã¡ã³ãä¸ç«¯ã¾ã§ã¹ã¯ãã¼ã«ããããå¼·å¶çã«å ¨è¡¨ç¤ºã 2438 * ã¹ã¯ãã¼ã«æ¤ç¥ãæ¢ãã 2439 * @param {Number} scroll_bottom ç»é¢ã®ä¸ç«¯åº§æ¨ 2440 * @return {Boolean} ç»é¢ä¸ç«¯ã¾ã§ã¹ã¯ãã¼ã«ããã ture ãè¿ã 2441 */ 2442 2443 }, { 2444 key: '$_check_arrived_document_bottom', 2445 value: function $_check_arrived_document_bottom(scroll_bottom) { 2446 var _this3 = this; 2447 2448 if (scroll_bottom >= this.doc_height - this.opt.doc_bottom_offset) { 2449 2450 this.target_list.forEach(function (target) { 2451 _this3.$_set_target_visible(target, true); 2452 }); 2453 this.stop(); 2454 return true; 2455 } 2456 return false; 2457 } 2458 2459 /** 2460 * æå®ãããã¿ã¼ã²ããã¨ã¬ã¡ã³ãããã¥ã¼ãã¼ãã«ããããã§ã㯠2461 * @param {Object} target ã¨ã¬ã¡ã³ããä¸ä¸åº§æ¨ãæ ¼ç´ãããªãã¸ã§ã¯ã 2462 * @param {Number} scroll_top ã¦ã£ã³ãã¦ã®ã¹ã¯ãã¼ã«åº§æ¨ä¸è¾º 2463 * @param {Number} scroll_bottom ã¦ã£ã³ãã¦ã®ã¹ã¯ãã¼ã«åº§æ¨ä¸è¾º 2464 * @return {Boolean} ãã¥ã¼ãã¼ãã«å ¥ã£ã¦è¡¨ç¤ºããã true ãè¿ã 2465 */ 2466 2467 }, { 2468 key: '$_check_inview_target', 2469 value: function $_check_inview_target(target, scroll_top, scroll_bottom) { 2470 // ãã§ã«ãã¥ã¼ãã¼ãã«å ¥ã£ã¦è¡¨ç¤ºããã¦ãããç¡è¦ 2471 if (target.is_inview) return true; 2472 2473 // ç»é¢å ã«å ¥ã£ã¦ããããéãéãã¦ããã data-inview="true" ã«ãã 2474 if (target.top + target.offset <= scroll_bottom) { 2475 this.$_set_target_visible(target, true); 2476 } 2477 2478 return target.is_inview; 2479 } 2480 2481 /** 2482 * ã¿ã¼ã²ããã¨ã¬ã¡ã³ãã®è¡¨ç¤ºã»é表示åãæ¿ã 2483 * @param {*} TargetClass ã¿ã¼ã²ããã¯ã©ã¹ 2484 * @param {*} bool 表示㯠true / é表示㯠false 2485 */ 2486 2487 }, { 2488 key: '$_set_target_visible', 2489 value: function $_set_target_visible(target, bool) { 2490 target.elm.setAttribute(ATTR_INVIEW, bool ? 'true' : 'false'); 2491 target.is_inview = bool; 2492 } 2493 }]); 2494 2495 return _class; 2496}(); 2497 2498function get_node_array(node_list) { 2499 return Array.prototype.slice.call(node_list, 0); 2500} 2501 2502/* harmony default export */ __webpack_exports__["default"] = (_class); 2503 2504 2505/***/ }), 2506
vendor: 735 bytes, lines 2507-2533
2507/***/ "./node_modules/@sygnas/throttle/dist/throttle.es.js": 2508/*!***********************************************************!*\ 2509 !*** ./node_modules/@sygnas/throttle/dist/throttle.es.js ***! 2510 \***********************************************************/ 2511/*! exports provided: default */ 2512/***/ (function(module, __webpack_exports__, __webpack_require__) { 2513 2514"use strict"; 2515__webpack_require__.r(__webpack_exports__); 2516function index (timing, func, scope) { 2517 var id = null; 2518 2519 return function () { 2520 if (id !== null) return; 2521 func.apply(scope); 2522 2523 id = setTimeout(function () { 2524 id = null; 2525 }, timing); 2526 }; 2527} 2528 2529/* harmony default export */ __webpack_exports__["default"] = (index); 2530 2531 2532/***/ }), 2533
vendor: 52,342 bytes, lines 2534-4248
2534/***/ "./node_modules/@sygnas/wp-posts-convert/dist/wp-posts-convert.es.js": 2535/*!***************************************************************************!*\ 2536 !*** ./node_modules/@sygnas/wp-posts-convert/dist/wp-posts-convert.es.js ***! 2537 \***************************************************************************/ 2538/*! exports provided: default */ 2539/***/ (function(module, __webpack_exports__, __webpack_require__) { 2540 2541"use strict"; 2542__webpack_require__.r(__webpack_exports__); 2543/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); 2544/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__); 2545/* harmony import */ var csv_string_lib_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! csv-string/lib/parser */ "./node_modules/csv-string/lib/parser.js"); 2546/* harmony import */ var csv_string_lib_parser__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(csv_string_lib_parser__WEBPACK_IMPORTED_MODULE_1__); 2547 2548 2549 2550function unwrapExports (x) { 2551 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; 2552} 2553 2554function createCommonjsModule(fn, module) { 2555 return module = { exports: {} }, fn(module, module.exports), module.exports; 2556} 2557 2558// 7.1.4 ToInteger 2559var ceil = Math.ceil; 2560var floor = Math.floor; 2561var _toInteger = function (it) { 2562 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 2563}; 2564 2565// 7.2.1 RequireObjectCoercible(argument) 2566var _defined = function (it) { 2567 if (it == undefined) throw TypeError("Can't call method on " + it); 2568 return it; 2569}; 2570 2571// true -> String#at 2572// false -> String#codePointAt 2573var _stringAt = function (TO_STRING) { 2574 return function (that, pos) { 2575 var s = String(_defined(that)); 2576 var i = _toInteger(pos); 2577 var l = s.length; 2578 var a, b; 2579 if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 2580 a = s.charCodeAt(i); 2581 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 2582 ? TO_STRING ? s.charAt(i) : a 2583 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 2584 }; 2585}; 2586 2587var _library = true; 2588 2589var _global = createCommonjsModule(function (module) { 2590// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 2591var global = module.exports = typeof window != 'undefined' && window.Math == Math 2592 ? window : typeof self != 'undefined' && self.Math == Math ? self 2593 // eslint-disable-next-line no-new-func 2594 : Function('return this')(); 2595if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 2596}); 2597 2598var _core = createCommonjsModule(function (module) { 2599var core = module.exports = { version: '2.5.3' }; 2600if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 2601}); 2602 2603var _core_1 = _core.version; 2604 2605var _aFunction = function (it) { 2606 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 2607 return it; 2608}; 2609 2610// optional / simple context binding 2611 2612var _ctx = function (fn, that, length) { 2613 _aFunction(fn); 2614 if (that === undefined) return fn; 2615 switch (length) { 2616 case 1: return function (a) { 2617 return fn.call(that, a); 2618 }; 2619 case 2: return function (a, b) { 2620 return fn.call(that, a, b); 2621 }; 2622 case 3: return function (a, b, c) { 2623 return fn.call(that, a, b, c); 2624 }; 2625 } 2626 return function (/* ...args */) { 2627 return fn.apply(that, arguments); 2628 }; 2629}; 2630 2631var _isObject = function (it) { 2632 return typeof it === 'object' ? it !== null : typeof it === 'function'; 2633}; 2634 2635var _anObject = function (it) { 2636 if (!_isObject(it)) throw TypeError(it + ' is not an object!'); 2637 return it; 2638}; 2639 2640var _fails = function (exec) { 2641 try { 2642 return !!exec(); 2643 } catch (e) { 2644 return true; 2645 } 2646}; 2647 2648// Thank's IE8 for his funny defineProperty 2649var _descriptors = !_fails(function () { 2650 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 2651}); 2652 2653var document$1 = _global.document; 2654// typeof document.createElement is 'object' in old IE 2655var is = _isObject(document$1) && _isObject(document$1.createElement); 2656var _domCreate = function (it) { 2657 return is ? document$1.createElement(it) : {}; 2658}; 2659 2660var _ie8DomDefine = !_descriptors && !_fails(function () { 2661 return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7; 2662}); 2663 2664// 7.1.1 ToPrimitive(input [, PreferredType]) 2665 2666// instead of the ES6 spec version, we didn't implement @@toPrimitive case 2667// and the second argument - flag - preferred type is a string 2668var _toPrimitive = function (it, S) { 2669 if (!_isObject(it)) return it; 2670 var fn, val; 2671 if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 2672 if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val; 2673 if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val; 2674 throw TypeError("Can't convert object to primitive value"); 2675}; 2676 2677var dP = Object.defineProperty; 2678 2679var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { 2680 _anObject(O); 2681 P = _toPrimitive(P, true); 2682 _anObject(Attributes); 2683 if (_ie8DomDefine) try { 2684 return dP(O, P, Attributes); 2685 } catch (e) { /* empty */ } 2686 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 2687 if ('value' in Attributes) O[P] = Attributes.value; 2688 return O; 2689}; 2690 2691var _objectDp = { 2692 f: f 2693}; 2694 2695var _propertyDesc = function (bitmap, value) { 2696 return { 2697 enumerable: !(bitmap & 1), 2698 configurable: !(bitmap & 2), 2699 writable: !(bitmap & 4), 2700 value: value 2701 }; 2702}; 2703 2704var _hide = _descriptors ? function (object, key, value) { 2705 return _objectDp.f(object, key, _propertyDesc(1, value)); 2706} : function (object, key, value) { 2707 object[key] = value; 2708 return object; 2709}; 2710 2711var PROTOTYPE = 'prototype'; 2712 2713var $export = function (type, name, source) { 2714 var IS_FORCED = type & $export.F; 2715 var IS_GLOBAL = type & $export.G; 2716 var IS_STATIC = type & $export.S; 2717 var IS_PROTO = type & $export.P; 2718 var IS_BIND = type & $export.B; 2719 var IS_WRAP = type & $export.W; 2720 var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {}); 2721 var expProto = exports[PROTOTYPE]; 2722 var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE]; 2723 var key, own, out; 2724 if (IS_GLOBAL) source = name; 2725 for (key in source) { 2726 // contains in native 2727 own = !IS_FORCED && target && target[key] !== undefined; 2728 if (own && key in exports) continue; 2729 // export native or passed 2730 out = own ? target[key] : source[key]; 2731 // prevent global pollution for namespaces 2732 exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 2733 // bind timers to global for call from export context 2734 : IS_BIND && own ? _ctx(out, _global) 2735 // wrap global constructors for prevent change them in library 2736 : IS_WRAP && target[key] == out ? (function (C) { 2737 var F = function (a, b, c) { 2738 if (this instanceof C) { 2739 switch (arguments.length) { 2740 case 0: return new C(); 2741 case 1: return new C(a); 2742 case 2: return new C(a, b); 2743 } return new C(a, b, c); 2744 } return C.apply(this, arguments); 2745 }; 2746 F[PROTOTYPE] = C[PROTOTYPE]; 2747 return F; 2748 // make static versions for prototype methods 2749 })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out; 2750 // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 2751 if (IS_PROTO) { 2752 (exports.virtual || (exports.virtual = {}))[key] = out; 2753 // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 2754 if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out); 2755 } 2756 } 2757}; 2758// type bitmap 2759$export.F = 1; // forced 2760$export.G = 2; // global 2761$export.S = 4; // static 2762$export.P = 8; // proto 2763$export.B = 16; // bind 2764$export.W = 32; // wrap 2765$export.U = 64; // safe 2766$export.R = 128; // real proto method for `library` 2767var _export = $export; 2768 2769var _redefine = _hide; 2770 2771var hasOwnProperty = {}.hasOwnProperty; 2772var _has = function (it, key) { 2773 return hasOwnProperty.call(it, key); 2774}; 2775 2776var _iterators = {}; 2777 2778var toString = {}.toString; 2779 2780var _cof = function (it) { 2781 return toString.call(it).slice(8, -1); 2782}; 2783 2784// fallback for non-array-like ES3 and non-enumerable old V8 strings 2785 2786// eslint-disable-next-line no-prototype-builtins 2787var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 2788 return _cof(it) == 'String' ? it.split('') : Object(it); 2789}; 2790 2791// to indexed object, toObject with fallback for non-array-like ES3 strings 2792 2793 2794var _toIobject = function (it) { 2795 return _iobject(_defined(it)); 2796}; 2797 2798// 7.1.15 ToLength 2799 2800var min = Math.min; 2801var _toLength = function (it) { 2802 return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 2803}; 2804 2805var max = Math.max; 2806var min$1 = Math.min; 2807var _toAbsoluteIndex = function (index, length) { 2808 index = _toInteger(index); 2809 return index < 0 ? max(index + length, 0) : min$1(index, length); 2810}; 2811 2812// false -> Array#indexOf 2813// true -> Array#includes 2814 2815 2816 2817var _arrayIncludes = function (IS_INCLUDES) { 2818 return function ($this, el, fromIndex) { 2819 var O = _toIobject($this); 2820 var length = _toLength(O.length); 2821 var index = _toAbsoluteIndex(fromIndex, length); 2822 var value; 2823 // Array#includes uses SameValueZero equality algorithm 2824 // eslint-disable-next-line no-self-compare 2825 if (IS_INCLUDES && el != el) while (length > index) { 2826 value = O[index++]; 2827 // eslint-disable-next-line no-self-compare 2828 if (value != value) return true; 2829 // Array#indexOf ignores holes, Array#includes - not 2830 } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 2831 if (O[index] === el) return IS_INCLUDES || index || 0; 2832 } return !IS_INCLUDES && -1; 2833 }; 2834}; 2835 2836var SHARED = '__core-js_shared__'; 2837var store = _global[SHARED] || (_global[SHARED] = {}); 2838var _shared = function (key) { 2839 return store[key] || (store[key] = {}); 2840}; 2841 2842var id = 0; 2843var px = Math.random(); 2844var _uid = function (key) { 2845 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 2846}; 2847 2848var shared = _shared('keys'); 2849 2850var _sharedKey = function (key) { 2851 return shared[key] || (shared[key] = _uid(key)); 2852}; 2853 2854var arrayIndexOf = _arrayIncludes(false); 2855var IE_PROTO = _sharedKey('IE_PROTO'); 2856 2857var _objectKeysInternal = function (object, names) { 2858 var O = _toIobject(object); 2859 var i = 0; 2860 var result = []; 2861 var key; 2862 for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key); 2863 // Don't enum bug & hidden keys 2864 while (names.length > i) if (_has(O, key = names[i++])) { 2865 ~arrayIndexOf(result, key) || result.push(key); 2866 } 2867 return result; 2868}; 2869 2870// IE 8- don't enum bug keys 2871var _enumBugKeys = ( 2872 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 2873).split(','); 2874 2875// 19.1.2.14 / 15.2.3.14 Object.keys(O) 2876 2877 2878 2879var _objectKeys = Object.keys || function keys(O) { 2880 return _objectKeysInternal(O, _enumBugKeys); 2881}; 2882 2883var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) { 2884 _anObject(O); 2885 var keys = _objectKeys(Properties); 2886 var length = keys.length; 2887 var i = 0; 2888 var P; 2889 while (length > i) _objectDp.f(O, P = keys[i++], Properties[P]); 2890 return O; 2891}; 2892 2893var document$2 = _global.document; 2894var _html = document$2 && document$2.documentElement; 2895 2896// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 2897 2898 2899 2900var IE_PROTO$1 = _sharedKey('IE_PROTO'); 2901var Empty = function () { /* empty */ }; 2902var PROTOTYPE$1 = 'prototype'; 2903 2904// Create object with fake `null` prototype: use iframe Object with cleared prototype 2905var createDict = function () { 2906 // Thrash, waste and sodomy: IE GC bug 2907 var iframe = _domCreate('iframe'); 2908 var i = _enumBugKeys.length; 2909 var lt = '<'; 2910 var gt = '>'; 2911 var iframeDocument; 2912 iframe.style.display = 'none'; 2913 _html.appendChild(iframe); 2914 iframe.src = 'javascript:'; // eslint-disable-line no-script-url 2915 // createDict = iframe.contentWindow.Object; 2916 // html.removeChild(iframe); 2917 iframeDocument = iframe.contentWindow.document; 2918 iframeDocument.open(); 2919 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 2920 iframeDocument.close(); 2921 createDict = iframeDocument.F; 2922 while (i--) delete createDict[PROTOTYPE$1][_enumBugKeys[i]]; 2923 return createDict(); 2924}; 2925 2926var _objectCreate = Object.create || function create(O, Properties) { 2927 var result; 2928 if (O !== null) { 2929 Empty[PROTOTYPE$1] = _anObject(O); 2930 result = new Empty(); 2931 Empty[PROTOTYPE$1] = null; 2932 // add "__proto__" for Object.getPrototypeOf polyfill 2933 result[IE_PROTO$1] = O; 2934 } else result = createDict(); 2935 return Properties === undefined ? result : _objectDps(result, Properties); 2936}; 2937 2938var _wks = createCommonjsModule(function (module) { 2939var store = _shared('wks'); 2940 2941var Symbol = _global.Symbol; 2942var USE_SYMBOL = typeof Symbol == 'function'; 2943 2944var $exports = module.exports = function (name) { 2945 return store[name] || (store[name] = 2946 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _uid)('Symbol.' + name)); 2947}; 2948 2949$exports.store = store; 2950}); 2951 2952var def = _objectDp.f; 2953 2954var TAG = _wks('toStringTag'); 2955 2956var _setToStringTag = function (it, tag, stat) { 2957 if (it && !_has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 2958}; 2959 2960var IteratorPrototype = {}; 2961 2962// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 2963_hide(IteratorPrototype, _wks('iterator'), function () { return this; }); 2964 2965var _iterCreate = function (Constructor, NAME, next) { 2966 Constructor.prototype = _objectCreate(IteratorPrototype, { next: _propertyDesc(1, next) }); 2967 _setToStringTag(Constructor, NAME + ' Iterator'); 2968}; 2969 2970// 7.1.13 ToObject(argument) 2971 2972var _toObject = function (it) { 2973 return Object(_defined(it)); 2974}; 2975 2976// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 2977 2978 2979var IE_PROTO$2 = _sharedKey('IE_PROTO'); 2980var ObjectProto = Object.prototype; 2981 2982var _objectGpo = Object.getPrototypeOf || function (O) { 2983 O = _toObject(O); 2984 if (_has(O, IE_PROTO$2)) return O[IE_PROTO$2]; 2985 if (typeof O.constructor == 'function' && O instanceof O.constructor) { 2986 return O.constructor.prototype; 2987 } return O instanceof Object ? ObjectProto : null; 2988}; 2989 2990var ITERATOR = _wks('iterator'); 2991var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 2992var FF_ITERATOR = '@@iterator'; 2993var KEYS = 'keys'; 2994var VALUES = 'values'; 2995 2996var returnThis = function () { return this; }; 2997 2998var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 2999 _iterCreate(Constructor, NAME, next); 3000 var getMethod = function (kind) { 3001 if (!BUGGY && kind in proto) return proto[kind]; 3002 switch (kind) { 3003 case KEYS: return function keys() { return new Constructor(this, kind); }; 3004 case VALUES: return function values() { return new Constructor(this, kind); }; 3005 } return function entries() { return new Constructor(this, kind); }; 3006 }; 3007 var TAG = NAME + ' Iterator'; 3008 var DEF_VALUES = DEFAULT == VALUES; 3009 var VALUES_BUG = false; 3010 var proto = Base.prototype; 3011 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 3012 var $default = (!BUGGY && $native) || getMethod(DEFAULT); 3013 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 3014 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 3015 var methods, key, IteratorPrototype; 3016 // Fix native 3017 if ($anyNative) { 3018 IteratorPrototype = _objectGpo($anyNative.call(new Base())); 3019 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 3020 // Set @@toStringTag to native iterators 3021 _setToStringTag(IteratorPrototype, TAG, true); 3022 // fix for some old engines 3023 if (!_library && !_has(IteratorPrototype, ITERATOR)) _hide(IteratorPrototype, ITERATOR, returnThis); 3024 } 3025 } 3026 // fix Array#{values, @@iterator}.name in V8 / FF 3027 if (DEF_VALUES && $native && $native.name !== VALUES) { 3028 VALUES_BUG = true; 3029 $default = function values() { return $native.call(this); }; 3030 } 3031 // Define iterator 3032 if ((!_library || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 3033 _hide(proto, ITERATOR, $default); 3034 } 3035 // Plug for library 3036 _iterators[NAME] = $default; 3037 _iterators[TAG] = returnThis; 3038 if (DEFAULT) { 3039 methods = { 3040 values: DEF_VALUES ? $default : getMethod(VALUES), 3041 keys: IS_SET ? $default : getMethod(KEYS), 3042 entries: $entries 3043 }; 3044 if (FORCED) for (key in methods) { 3045 if (!(key in proto)) _redefine(proto, key, methods[key]); 3046 } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods); 3047 } 3048 return methods; 3049}; 3050 3051var $at = _stringAt(true); 3052 3053// 21.1.3.27 String.prototype[@@iterator]() 3054_iterDefine(String, 'String', function (iterated) { 3055 this._t = String(iterated); // target 3056 this._i = 0; // next index 3057// 21.1.5.2.1 %StringIteratorPrototype%.next() 3058}, function () { 3059 var O = this._t; 3060 var index = this._i; 3061 var point; 3062 if (index >= O.length) return { value: undefined, done: true }; 3063 point = $at(O, index); 3064 this._i += point.length; 3065 return { value: point, done: false }; 3066}); 3067 3068// call something on iterator step with safe closing on error 3069 3070var _iterCall = function (iterator, fn, value, entries) { 3071 try { 3072 return entries ? fn(_anObject(value)[0], value[1]) : fn(value); 3073 // 7.4.6 IteratorClose(iterator, completion) 3074 } catch (e) { 3075 var ret = iterator['return']; 3076 if (ret !== undefined) _anObject(ret.call(iterator)); 3077 throw e; 3078 } 3079}; 3080 3081// check on default Array iterator 3082 3083var ITERATOR$1 = _wks('iterator'); 3084var ArrayProto = Array.prototype; 3085 3086var _isArrayIter = function (it) { 3087 return it !== undefined && (_iterators.Array === it || ArrayProto[ITERATOR$1] === it); 3088}; 3089 3090var _createProperty = function (object, index, value) { 3091 if (index in object) _objectDp.f(object, index, _propertyDesc(0, value)); 3092 else object[index] = value; 3093}; 3094 3095// getting tag from 19.1.3.6 Object.prototype.toString() 3096 3097var TAG$1 = _wks('toStringTag'); 3098// ES3 wrong here 3099var ARG = _cof(function () { return arguments; }()) == 'Arguments'; 3100 3101// fallback for IE11 Script Access Denied error 3102var tryGet = function (it, key) { 3103 try { 3104 return it[key]; 3105 } catch (e) { /* empty */ } 3106}; 3107 3108var _classof = function (it) { 3109 var O, T, B; 3110 return it === undefined ? 'Undefined' : it === null ? 'Null' 3111 // @@toStringTag case 3112 : typeof (T = tryGet(O = Object(it), TAG$1)) == 'string' ? T 3113 // builtinTag case 3114 : ARG ? _cof(O) 3115 // ES3 arguments fallback 3116 : (B = _cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; 3117}; 3118 3119var ITERATOR$2 = _wks('iterator'); 3120 3121var core_getIteratorMethod = _core.getIteratorMethod = function (it) { 3122 if (it != undefined) return it[ITERATOR$2] 3123 || it['@@iterator'] 3124 || _iterators[_classof(it)]; 3125}; 3126 3127var ITERATOR$3 = _wks('iterator'); 3128var SAFE_CLOSING = false; 3129 3130try { 3131 var riter = [7][ITERATOR$3](); 3132 riter['return'] = function () { SAFE_CLOSING = true; }; 3133 // eslint-disable-next-line no-throw-literal 3134 3135} catch (e) { /* empty */ } 3136 3137var _iterDetect = function (exec, skipClosing) { 3138 if (!skipClosing && !SAFE_CLOSING) return false; 3139 var safe = false; 3140 try { 3141 var arr = [7]; 3142 var iter = arr[ITERATOR$3](); 3143 iter.next = function () { return { done: safe = true }; }; 3144 arr[ITERATOR$3] = function () { return iter; }; 3145 exec(arr); 3146 } catch (e) { /* empty */ } 3147 return safe; 3148}; 3149 3150_export(_export.S + _export.F * !_iterDetect(function (iter) { }), 'Array', { 3151 // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) 3152 from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { 3153 var O = _toObject(arrayLike); 3154 var C = typeof this == 'function' ? this : Array; 3155 var aLen = arguments.length; 3156 var mapfn = aLen > 1 ? arguments[1] : undefined; 3157 var mapping = mapfn !== undefined; 3158 var index = 0; 3159 var iterFn = core_getIteratorMethod(O); 3160 var length, result, step, iterator; 3161 if (mapping) mapfn = _ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); 3162 // if object isn't iterable or it's array with default iterator - use simple case 3163 if (iterFn != undefined && !(C == Array && _isArrayIter(iterFn))) { 3164 for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { 3165 _createProperty(result, index, mapping ? _iterCall(iterator, mapfn, [step.value, index], true) : step.value); 3166 } 3167 } else { 3168 length = _toLength(O.length); 3169 for (result = new C(length); length > index; index++) { 3170 _createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); 3171 } 3172 } 3173 result.length = index; 3174 return result; 3175 } 3176}); 3177 3178var from = _core.Array.from; 3179 3180var from$2 = createCommonjsModule(function (module) { 3181module.exports = { "default": from, __esModule: true }; 3182}); 3183 3184unwrapExports(from$2); 3185 3186var toConsumableArray = createCommonjsModule(function (module, exports) { 3187exports.__esModule = true; 3188 3189 3190 3191var _from2 = _interopRequireDefault(from$2); 3192 3193function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3194 3195exports.default = function (arr) { 3196 if (Array.isArray(arr)) { 3197 for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { 3198 arr2[i] = arr[i]; 3199 } 3200 3201 return arr2; 3202 } else { 3203 return (0, _from2.default)(arr); 3204 } 3205}; 3206}); 3207 3208var _toConsumableArray = unwrapExports(toConsumableArray); 3209 3210// most Object methods by ES6 should accept primitives 3211 3212 3213 3214var _objectSap = function (KEY, exec) { 3215 var fn = (_core.Object || {})[KEY] || Object[KEY]; 3216 var exp = {}; 3217 exp[KEY] = exec(fn); 3218 _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp); 3219}; 3220 3221// 19.1.2.14 Object.keys(O) 3222 3223 3224 3225_objectSap('keys', function () { 3226 return function keys(it) { 3227 return _objectKeys(_toObject(it)); 3228 }; 3229}); 3230 3231var keys = _core.Object.keys; 3232 3233var keys$2 = createCommonjsModule(function (module) { 3234module.exports = { "default": keys, __esModule: true }; 3235}); 3236 3237var _Object$keys = unwrapExports(keys$2); 3238 3239var _iterStep = function (done, value) { 3240 return { value: value, done: !!done }; 3241}; 3242 3243// 22.1.3.4 Array.prototype.entries() 3244// 22.1.3.13 Array.prototype.keys() 3245// 22.1.3.29 Array.prototype.values() 3246// 22.1.3.30 Array.prototype[@@iterator]() 3247var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) { 3248 this._t = _toIobject(iterated); // target 3249 this._i = 0; // next index 3250 this._k = kind; // kind 3251// 22.1.5.2.1 %ArrayIteratorPrototype%.next() 3252}, function () { 3253 var O = this._t; 3254 var kind = this._k; 3255 var index = this._i++; 3256 if (!O || index >= O.length) { 3257 this._t = undefined; 3258 return _iterStep(1); 3259 } 3260 if (kind == 'keys') return _iterStep(0, index); 3261 if (kind == 'values') return _iterStep(0, O[index]); 3262 return _iterStep(0, [index, O[index]]); 3263}, 'values'); 3264 3265// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 3266_iterators.Arguments = _iterators.Array; 3267 3268var TO_STRING_TAG = _wks('toStringTag'); 3269 3270var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 3271 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 3272 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 3273 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 3274 'TextTrackList,TouchList').split(','); 3275 3276for (var i = 0; i < DOMIterables.length; i++) { 3277 var NAME = DOMIterables[i]; 3278 var Collection = _global[NAME]; 3279 var proto = Collection && Collection.prototype; 3280 if (proto && !proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME); 3281 _iterators[NAME] = _iterators.Array; 3282} 3283 3284var _anInstance = function (it, Constructor, name, forbiddenField) { 3285 if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { 3286 throw TypeError(name + ': incorrect invocation!'); 3287 } return it; 3288}; 3289 3290var _forOf = createCommonjsModule(function (module) { 3291var BREAK = {}; 3292var RETURN = {}; 3293var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { 3294 var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable); 3295 var f = _ctx(fn, that, entries ? 2 : 1); 3296 var index = 0; 3297 var length, step, iterator, result; 3298 if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); 3299 // fast case for arrays with default iterator 3300 if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) { 3301 result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); 3302 if (result === BREAK || result === RETURN) return result; 3303 } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { 3304 result = _iterCall(iterator, f, step.value, entries); 3305 if (result === BREAK || result === RETURN) return result; 3306 } 3307}; 3308exports.BREAK = BREAK; 3309exports.RETURN = RETURN; 3310}); 3311 3312// 7.3.20 SpeciesConstructor(O, defaultConstructor) 3313 3314 3315var SPECIES = _wks('species'); 3316var _speciesConstructor = function (O, D) { 3317 var C = _anObject(O).constructor; 3318 var S; 3319 return C === undefined || (S = _anObject(C)[SPECIES]) == undefined ? D : _aFunction(S); 3320}; 3321 3322// fast apply, http://jsperf.lnkit.com/fast-apply/5 3323var _invoke = function (fn, args, that) { 3324 var un = that === undefined; 3325 switch (args.length) { 3326 case 0: return un ? fn() 3327 : fn.call(that); 3328 case 1: return un ? fn(args[0]) 3329 : fn.call(that, args[0]); 3330 case 2: return un ? fn(args[0], args[1]) 3331 : fn.call(that, args[0], args[1]); 3332 case 3: return un ? fn(args[0], args[1], args[2]) 3333 : fn.call(that, args[0], args[1], args[2]); 3334 case 4: return un ? fn(args[0], args[1], args[2], args[3]) 3335 : fn.call(that, args[0], args[1], args[2], args[3]); 3336 } return fn.apply(that, args); 3337}; 3338 3339var process = _global.process; 3340var setTask = _global.setImmediate; 3341var clearTask = _global.clearImmediate; 3342var MessageChannel = _global.MessageChannel; 3343var Dispatch = _global.Dispatch; 3344var counter = 0; 3345var queue = {}; 3346var ONREADYSTATECHANGE = 'onreadystatechange'; 3347var defer; 3348var channel; 3349var port; 3350var run = function () { 3351 var id = +this; 3352 // eslint-disable-next-line no-prototype-builtins 3353 if (queue.hasOwnProperty(id)) { 3354 var fn = queue[id]; 3355 delete queue[id]; 3356 fn(); 3357 } 3358}; 3359var listener = function (event) { 3360 run.call(event.data); 3361}; 3362// Node.js 0.9+ & IE10+ has setImmediate, otherwise: 3363if (!setTask || !clearTask) { 3364 setTask = function setImmediate(fn) { 3365 var args = []; 3366 var i = 1; 3367 while (arguments.length > i) args.push(arguments[i++]); 3368 queue[++counter] = function () { 3369 // eslint-disable-next-line no-new-func 3370 _invoke(typeof fn == 'function' ? fn : Function(fn), args); 3371 }; 3372 defer(counter); 3373 return counter; 3374 }; 3375 clearTask = function clearImmediate(id) { 3376 delete queue[id]; 3377 }; 3378 // Node.js 0.8- 3379 if (_cof(process) == 'process') { 3380 defer = function (id) { 3381 process.nextTick(_ctx(run, id, 1)); 3382 }; 3383 // Sphere (JS game engine) Dispatch API 3384 } else if (Dispatch && Dispatch.now) { 3385 defer = function (id) { 3386 Dispatch.now(_ctx(run, id, 1)); 3387 }; 3388 // Browsers with MessageChannel, includes WebWorkers 3389 } else if (MessageChannel) { 3390 channel = new MessageChannel(); 3391 port = channel.port2; 3392 channel.port1.onmessage = listener; 3393 defer = _ctx(port.postMessage, port, 1); 3394 // Browsers with postMessage, skip WebWorkers 3395 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' 3396 } else if (_global.addEventListener && typeof postMessage == 'function' && !_global.importScripts) { 3397 defer = function (id) { 3398 _global.postMessage(id + '', '*'); 3399 }; 3400 _global.addEventListener('message', listener, false); 3401 // IE8- 3402 } else if (ONREADYSTATECHANGE in _domCreate('script')) { 3403 defer = function (id) { 3404 _html.appendChild(_domCreate('script'))[ONREADYSTATECHANGE] = function () { 3405 _html.removeChild(this); 3406 run.call(id); 3407 }; 3408 }; 3409 // Rest old browsers 3410 } else { 3411 defer = function (id) { 3412 setTimeout(_ctx(run, id, 1), 0); 3413 }; 3414 } 3415} 3416var _task = { 3417 set: setTask, 3418 clear: clearTask 3419}; 3420 3421var macrotask = _task.set; 3422var Observer = _global.MutationObserver || _global.WebKitMutationObserver; 3423var process$1 = _global.process; 3424var Promise = _global.Promise; 3425var isNode = _cof(process$1) == 'process'; 3426 3427var _microtask = function () { 3428 var head, last, notify; 3429 3430 var flush = function () { 3431 var parent, fn; 3432 if (isNode && (parent = process$1.domain)) parent.exit(); 3433 while (head) { 3434 fn = head.fn; 3435 head = head.next; 3436 try { 3437 fn(); 3438 } catch (e) { 3439 if (head) notify(); 3440 else last = undefined; 3441 throw e; 3442 } 3443 } last = undefined; 3444 if (parent) parent.enter(); 3445 }; 3446 3447 // Node.js 3448 if (isNode) { 3449 notify = function () { 3450 process$1.nextTick(flush); 3451 }; 3452 // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 3453 } else if (Observer && !(_global.navigator && _global.navigator.standalone)) { 3454 var toggle = true; 3455 var node = document.createTextNode(''); 3456 new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new 3457 notify = function () { 3458 node.data = toggle = !toggle; 3459 }; 3460 // environments with maybe non-completely correct, but existent Promise 3461 } else if (Promise && Promise.resolve) { 3462 var promise = Promise.resolve(); 3463 notify = function () { 3464 promise.then(flush); 3465 }; 3466 // for other environments - macrotask based on: 3467 // - setImmediate 3468 // - MessageChannel 3469 // - window.postMessag 3470 // - onreadystatechange 3471 // - setTimeout 3472 } else { 3473 notify = function () { 3474 // strange IE + webpack dev server bug - use .call(global) 3475 macrotask.call(_global, flush); 3476 }; 3477 } 3478 3479 return function (fn) { 3480 var task = { fn: fn, next: undefined }; 3481 if (last) last.next = task; 3482 if (!head) { 3483 head = task; 3484 notify(); 3485 } last = task; 3486 }; 3487}; 3488 3489// 25.4.1.5 NewPromiseCapability(C) 3490 3491 3492function PromiseCapability(C) { 3493 var resolve, reject; 3494 this.promise = new C(function ($$resolve, $$reject) { 3495 if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); 3496 resolve = $$resolve; 3497 reject = $$reject; 3498 }); 3499 this.resolve = _aFunction(resolve); 3500 this.reject = _aFunction(reject); 3501} 3502 3503var f$1 = function (C) { 3504 return new PromiseCapability(C); 3505}; 3506 3507var _newPromiseCapability = { 3508 f: f$1 3509}; 3510 3511var _perform = function (exec) { 3512 try { 3513 return { e: false, v: exec() }; 3514 } catch (e) { 3515 return { e: true, v: e }; 3516 } 3517}; 3518 3519var _promiseResolve = function (C, x) { 3520 _anObject(C); 3521 if (_isObject(x) && x.constructor === C) return x; 3522 var promiseCapability = _newPromiseCapability.f(C); 3523 var resolve = promiseCapability.resolve; 3524 resolve(x); 3525 return promiseCapability.promise; 3526}; 3527 3528var _redefineAll = function (target, src, safe) { 3529 for (var key in src) { 3530 if (safe && target[key]) target[key] = src[key]; 3531 else _hide(target, key, src[key]); 3532 } return target; 3533}; 3534 3535var SPECIES$1 = _wks('species'); 3536 3537var _setSpecies = function (KEY) { 3538 var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY]; 3539 if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, { 3540 configurable: true, 3541 get: function () { return this; } 3542 }); 3543}; 3544 3545var task = _task.set; 3546var microtask = _microtask(); 3547 3548 3549 3550var PROMISE = 'Promise'; 3551var TypeError$1 = _global.TypeError; 3552var process$2 = _global.process; 3553var $Promise = _global[PROMISE]; 3554var isNode$1 = _classof(process$2) == 'process'; 3555var empty = function () { /* empty */ }; 3556var Internal; 3557var newGenericPromiseCapability; 3558var OwnPromiseCapability; 3559var Wrapper; 3560var newPromiseCapability$1 = newGenericPromiseCapability = _newPromiseCapability.f; 3561 3562var USE_NATIVE = !!function () { 3563 try { 3564 // correct subclassing with @@species support 3565 var promise = $Promise.resolve(1); 3566 var FakePromise = (promise.constructor = {})[_wks('species')] = function (exec) { 3567 exec(empty, empty); 3568 }; 3569 // unhandled rejections tracking support, NodeJS Promise without it fails @@species test 3570 return (isNode$1 || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise; 3571 } catch (e) { /* empty */ } 3572}(); 3573 3574// helpers 3575var isThenable = function (it) { 3576 var then; 3577 return _isObject(it) && typeof (then = it.then) == 'function' ? then : false; 3578}; 3579var notify = function (promise, isReject) { 3580 if (promise._n) return; 3581 promise._n = true; 3582 var chain = promise._c; 3583 microtask(function () { 3584 var value = promise._v; 3585 var ok = promise._s == 1; 3586 var i = 0; 3587 var run = function (reaction) { 3588 var handler = ok ? reaction.ok : reaction.fail; 3589 var resolve = reaction.resolve; 3590 var reject = reaction.reject; 3591 var domain = reaction.domain; 3592 var result, then; 3593 try { 3594 if (handler) { 3595 if (!ok) { 3596 if (promise._h == 2) onHandleUnhandled(promise); 3597 promise._h = 1; 3598 } 3599 if (handler === true) result = value; 3600 else { 3601 if (domain) domain.enter(); 3602 result = handler(value); 3603 if (domain) domain.exit(); 3604 } 3605 if (result === reaction.promise) { 3606 reject(TypeError$1('Promise-chain cycle')); 3607 } else if (then = isThenable(result)) { 3608 then.call(result, resolve, reject); 3609 } else resolve(result); 3610 } else reject(value); 3611 } catch (e) { 3612 reject(e); 3613 } 3614 }; 3615 while (chain.length > i) run(chain[i++]); // variable length - can't use forEach 3616 promise._c = []; 3617 promise._n = false; 3618 if (isReject && !promise._h) onUnhandled(promise); 3619 }); 3620}; 3621var onUnhandled = function (promise) { 3622 task.call(_global, function () { 3623 var value = promise._v; 3624 var unhandled = isUnhandled(promise); 3625 var result, handler, console; 3626 if (unhandled) { 3627 result = _perform(function () { 3628 if (isNode$1) { 3629 process$2.emit('unhandledRejection', value, promise); 3630 } else if (handler = _global.onunhandledrejection) { 3631 handler({ promise: promise, reason: value }); 3632 } else if ((console = _global.console) && console.error) { 3633 console.error('Unhandled promise rejection', value); 3634 } 3635 }); 3636 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should 3637 promise._h = isNode$1 || isUnhandled(promise) ? 2 : 1; 3638 } promise._a = undefined; 3639 if (unhandled && result.e) throw result.v; 3640 }); 3641}; 3642var isUnhandled = function (promise) { 3643 return promise._h !== 1 && (promise._a || promise._c).length === 0; 3644}; 3645var onHandleUnhandled = function (promise) { 3646 task.call(_global, function () { 3647 var handler; 3648 if (isNode$1) { 3649 process$2.emit('rejectionHandled', promise); 3650 } else if (handler = _global.onrejectionhandled) { 3651 handler({ promise: promise, reason: promise._v }); 3652 } 3653 }); 3654}; 3655var $reject = function (value) { 3656 var promise = this; 3657 if (promise._d) return; 3658 promise._d = true; 3659 promise = promise._w || promise; // unwrap 3660 promise._v = value; 3661 promise._s = 2; 3662 if (!promise._a) promise._a = promise._c.slice(); 3663 notify(promise, true); 3664}; 3665var $resolve = function (value) { 3666 var promise = this; 3667 var then; 3668 if (promise._d) return; 3669 promise._d = true; 3670 promise = promise._w || promise; // unwrap 3671 try { 3672 if (promise === value) throw TypeError$1("Promise can't be resolved itself"); 3673 if (then = isThenable(value)) { 3674 microtask(function () { 3675 var wrapper = { _w: promise, _d: false }; // wrap 3676 try { 3677 then.call(value, _ctx($resolve, wrapper, 1), _ctx($reject, wrapper, 1)); 3678 } catch (e) { 3679 $reject.call(wrapper, e); 3680 } 3681 }); 3682 } else { 3683 promise._v = value; 3684 promise._s = 1; 3685 notify(promise, false); 3686 } 3687 } catch (e) { 3688 $reject.call({ _w: promise, _d: false }, e); // wrap 3689 } 3690}; 3691 3692// constructor polyfill 3693if (!USE_NATIVE) { 3694 // 25.4.3.1 Promise(executor) 3695 $Promise = function Promise(executor) { 3696 _anInstance(this, $Promise, PROMISE, '_h'); 3697 _aFunction(executor); 3698 Internal.call(this); 3699 try { 3700 executor(_ctx($resolve, this, 1), _ctx($reject, this, 1)); 3701 } catch (err) { 3702 $reject.call(this, err); 3703 } 3704 }; 3705 // eslint-disable-next-line no-unused-vars 3706 Internal = function Promise(executor) { 3707 this._c = []; // <- awaiting reactions 3708 this._a = undefined; // <- checked in isUnhandled reactions 3709 this._s = 0; // <- state 3710 this._d = false; // <- done 3711 this._v = undefined; // <- value 3712 this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled 3713 this._n = false; // <- notify 3714 }; 3715 Internal.prototype = _redefineAll($Promise.prototype, { 3716 // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) 3717 then: function then(onFulfilled, onRejected) { 3718 var reaction = newPromiseCapability$1(_speciesConstructor(this, $Promise)); 3719 reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; 3720 reaction.fail = typeof onRejected == 'function' && onRejected; 3721 reaction.domain = isNode$1 ? process$2.domain : undefined; 3722 this._c.push(reaction); 3723 if (this._a) this._a.push(reaction); 3724 if (this._s) notify(this, false); 3725 return reaction.promise; 3726 }, 3727 // 25.4.5.1 Promise.prototype.catch(onRejected) 3728 'catch': function (onRejected) { 3729 return this.then(undefined, onRejected); 3730 } 3731 }); 3732 OwnPromiseCapability = function () { 3733 var promise = new Internal(); 3734 this.promise = promise; 3735 this.resolve = _ctx($resolve, promise, 1); 3736 this.reject = _ctx($reject, promise, 1); 3737 }; 3738 _newPromiseCapability.f = newPromiseCapability$1 = function (C) { 3739 return C === $Promise || C === Wrapper 3740 ? new OwnPromiseCapability(C) 3741 : newGenericPromiseCapability(C); 3742 }; 3743} 3744 3745_export(_export.G + _export.W + _export.F * !USE_NATIVE, { Promise: $Promise }); 3746_setToStringTag($Promise, PROMISE); 3747_setSpecies(PROMISE); 3748Wrapper = _core[PROMISE]; 3749 3750// statics 3751_export(_export.S + _export.F * !USE_NATIVE, PROMISE, { 3752 // 25.4.4.5 Promise.reject(r) 3753 reject: function reject(r) { 3754 var capability = newPromiseCapability$1(this); 3755 var $$reject = capability.reject; 3756 $$reject(r); 3757 return capability.promise; 3758 } 3759}); 3760_export(_export.S + _export.F * (_library || !USE_NATIVE), PROMISE, { 3761 // 25.4.4.6 Promise.resolve(x) 3762 resolve: function resolve(x) { 3763 return _promiseResolve(_library && this === Wrapper ? $Promise : this, x); 3764 } 3765}); 3766_export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function (iter) { 3767 $Promise.all(iter)['catch'](empty); 3768})), PROMISE, { 3769 // 25.4.4.1 Promise.all(iterable) 3770 all: function all(iterable) { 3771 var C = this; 3772 var capability = newPromiseCapability$1(C); 3773 var resolve = capability.resolve; 3774 var reject = capability.reject; 3775 var result = _perform(function () { 3776 var values = []; 3777 var index = 0; 3778 var remaining = 1; 3779 _forOf(iterable, false, function (promise) { 3780 var $index = index++; 3781 var alreadyCalled = false; 3782 values.push(undefined); 3783 remaining++; 3784 C.resolve(promise).then(function (value) { 3785 if (alreadyCalled) return; 3786 alreadyCalled = true; 3787 values[$index] = value; 3788 --remaining || resolve(values); 3789 }, reject); 3790 }); 3791 --remaining || resolve(values); 3792 }); 3793 if (result.e) reject(result.v); 3794 return capability.promise; 3795 }, 3796 // 25.4.4.4 Promise.race(iterable) 3797 race: function race(iterable) { 3798 var C = this; 3799 var capability = newPromiseCapability$1(C); 3800 var reject = capability.reject; 3801 var result = _perform(function () { 3802 _forOf(iterable, false, function (promise) { 3803 C.resolve(promise).then(capability.resolve, reject); 3804 }); 3805 }); 3806 if (result.e) reject(result.v); 3807 return capability.promise; 3808 } 3809}); 3810 3811_export(_export.P + _export.R, 'Promise', { 'finally': function (onFinally) { 3812 var C = _speciesConstructor(this, _core.Promise || _global.Promise); 3813 var isFunction = typeof onFinally == 'function'; 3814 return this.then( 3815 isFunction ? function (x) { 3816 return _promiseResolve(C, onFinally()).then(function () { return x; }); 3817 } : onFinally, 3818 isFunction ? function (e) { 3819 return _promiseResolve(C, onFinally()).then(function () { throw e; }); 3820 } : onFinally 3821 ); 3822} }); 3823 3824// https://github.com/tc39/proposal-promise-try 3825 3826 3827 3828 3829_export(_export.S, 'Promise', { 'try': function (callbackfn) { 3830 var promiseCapability = _newPromiseCapability.f(this); 3831 var result = _perform(callbackfn); 3832 (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); 3833 return promiseCapability.promise; 3834} }); 3835 3836var promise = _core.Promise; 3837 3838var promise$2 = createCommonjsModule(function (module) { 3839module.exports = { "default": promise, __esModule: true }; 3840}); 3841 3842var _Promise = unwrapExports(promise$2); 3843 3844var f$2 = Object.getOwnPropertySymbols; 3845 3846var _objectGops = { 3847 f: f$2 3848}; 3849 3850var f$3 = {}.propertyIsEnumerable; 3851 3852var _objectPie = { 3853 f: f$3 3854}; 3855 3856// 19.1.2.1 Object.assign(target, source, ...) 3857 3858 3859 3860 3861 3862var $assign = Object.assign; 3863 3864// should work with symbols and should have deterministic property order (V8 bug) 3865var _objectAssign = !$assign || _fails(function () { 3866 var A = {}; 3867 var B = {}; 3868 // eslint-disable-next-line no-undef 3869 var S = Symbol(); 3870 var K = 'abcdefghijklmnopqrst'; 3871 A[S] = 7; 3872 K.split('').forEach(function (k) { B[k] = k; }); 3873 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; 3874}) ? function assign(target, source) { // eslint-disable-line no-unused-vars 3875 var T = _toObject(target); 3876 var aLen = arguments.length; 3877 var index = 1; 3878 var getSymbols = _objectGops.f; 3879 var isEnum = _objectPie.f; 3880 while (aLen > index) { 3881 var S = _iobject(arguments[index++]); 3882 var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S); 3883 var length = keys.length; 3884 var j = 0; 3885 var key; 3886 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; 3887 } return T; 3888} : $assign; 3889 3890// 19.1.3.1 Object.assign(target, source) 3891 3892 3893_export(_export.S + _export.F, 'Object', { assign: _objectAssign }); 3894 3895var assign = _core.Object.assign; 3896 3897var assign$2 = createCommonjsModule(function (module) { 3898module.exports = { "default": assign, __esModule: true }; 3899}); 3900 3901var _Object$assign = unwrapExports(assign$2); 3902 3903var classCallCheck = createCommonjsModule(function (module, exports) { 3904exports.__esModule = true; 3905 3906exports.default = function (instance, Constructor) { 3907 if (!(instance instanceof Constructor)) { 3908 throw new TypeError("Cannot call a class as a function"); 3909 } 3910}; 3911}); 3912 3913var _classCallCheck = unwrapExports(classCallCheck); 3914 3915// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) 3916_export(_export.S + _export.F * !_descriptors, 'Object', { defineProperty: _objectDp.f }); 3917 3918var $Object = _core.Object; 3919var defineProperty = function defineProperty(it, key, desc) { 3920 return $Object.defineProperty(it, key, desc); 3921}; 3922 3923var defineProperty$2 = createCommonjsModule(function (module) { 3924module.exports = { "default": defineProperty, __esModule: true }; 3925}); 3926 3927unwrapExports(defineProperty$2); 3928 3929var createClass = createCommonjsModule(function (module, exports) { 3930exports.__esModule = true; 3931 3932 3933 3934var _defineProperty2 = _interopRequireDefault(defineProperty$2); 3935 3936function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3937 3938exports.default = function () { 3939 function defineProperties(target, props) { 3940 for (var i = 0; i < props.length; i++) { 3941 var descriptor = props[i]; 3942 descriptor.enumerable = descriptor.enumerable || false; 3943 descriptor.configurable = true; 3944 if ("value" in descriptor) descriptor.writable = true; 3945 (0, _defineProperty2.default)(target, descriptor.key, descriptor); 3946 } 3947 } 3948 3949 return function (Constructor, protoProps, staticProps) { 3950 if (protoProps) defineProperties(Constructor.prototype, protoProps); 3951 if (staticProps) defineProperties(Constructor, staticProps); 3952 return Constructor; 3953 }; 3954}(); 3955}); 3956 3957var _createClass = unwrapExports(createClass); 3958 3959// æ¥ä»æ¸å¼å¤æ 3960function convert_date(post, key, format) { 3961 3962 var date = post[key].split(/[T: -]/); 3963 var YY = date[0]; 3964 var MM = date[1]; 3965 var M = date[1].replace(/^0/, ''); 3966 var DD = date[2]; 3967 var D = date[2].replace(/^0/, ''); 3968 var hh = date[3]; 3969 var mm = date[4]; 3970 3971 var output = format; 3972 output = output.split('YY').join(YY); 3973 output = output.split('MM').join(MM); 3974 output = output.split('M').join(M); 3975 output = output.split('DD').join(DD); 3976 output = output.split('D').join(D); 3977 output = output.split('hh').join(hh); 3978 output = output.split('mm').join(mm); 3979 3980 return output; 3981} 3982 3983// ã¿ã°é¤å» 3984function remove_tag(post, key) { 3985 3986 return post[key].replace(/<("[^"]*"|'[^']*'|[^'">])*>/g, ''); 3987} 3988 3989/** 3990 * Wordpress get_posts() json to html convert. 3991 * Wordpress ã® get_posts() ã® json ã html ã«å¤æããã 3992 * htmlãã³ãã¬ã¼ãã«ã¯ Handlebarsãä½¿ç¨ 3993 * 3994 * @author Hiroshi Fukuda <[email protected]> 3995 * @license MIT 3996 */ 3997 3998/* eslint no-console: off */ 3999/* eslint no-unused-vars: off */ 4000 4001// ãã«ãã¼ 4002// ãã«ãã¼é¢æ°ã使ã£ãç½®ãæãã®ãã¿ã¼ã³ 4003var helper_reg = new RegExp('{{{(.+?)\\((.*?)\\)}}}'); 4004 4005// ç¹°ãè¿ãå¦çã®ãã¿ã¼ã³ 4006var loop_reg = new RegExp('{{#loop (.+?)}}([\\s\\S]+?){{\\/#loop}}', 'm'); 4007 4008/** 4009 * 4010 */ 4011 4012var _class = function () { 4013 4014 /** 4015 * ã³ã³ã¹ãã©ã¯ã¿ 4016 * @param {Object} config è¨å®ãconst defaults åç § 4017 */ 4018 function _class(config) { 4019 _classCallCheck(this, _class); 4020 4021 // åæè¨å® 4022 var defaults = { 4023 // åå¾å ã¿ã¤ã 4024 // rest : WP REST API ã使ã£ãåå¾ï¼ããã©ã«ãï¼ 4025 // custom : æ·»ä»ã® page-newslist.php ã使ã£ãæ¹æ³ 4026 type: 'rest', 4027 // 表示ãã³ãã¬ã¼ã 4028 template: '<li><a href="{{permalink}}">{{post_title}}</a></li>', 4029 // åºåå ã®DOMã»ã¬ã¯ã¿ã¼ 4030 target: '.js-wp-posts', 4031 // ãã«ãã¼é¢æ° 4032 helpers: { 4033 remove_tag: remove_tag, 4034 convert_date: convert_date 4035 } 4036 }; 4037 4038 // è¨å®ããã¼ã¸ 4039 this.opt = _Object$assign(defaults, config); 4040 } 4041 4042 /** 4043 * json ãèªã¿è¾¼ãã§ãã³ãã¬ã¼ããå±éãã 4044 * @param {String} url jsonåå¾URL 4045 * @return {Promise} æåã»å¤±æãè¿ããæåæã«ã¯å¤æãããªã¹ããä¸ç·ã«è¿ã 4046 */ 4047 4048 4049 _createClass(_class, [{ 4050 key: 'start', 4051 value: function start(url) { 4052 var _this = this; 4053 4054 return new _Promise(function (resolve, reject) { 4055 // jsonãèªã¿è¾¼ã 4056 axios__WEBPACK_IMPORTED_MODULE_0___default.a.get(url).then(function (res) { 4057 // åãåã£ãè¨äºä¸è¦§ã夿ãã 4058 // æå®ãããã¨ã¬ã¡ã³ãã«åãè¾¼ã 4059 var list = _this.$_convert_list(res.data); 4060 _this.$_insert_to_target(list.join('')); 4061 4062 // Promiseã§å¤ææ¸ã¿ãªã¹ããè¿ã 4063 resolve(list); 4064 }).catch(function (e) { 4065 reject(e); 4066 }); 4067 }); 4068 } 4069 4070 /** 4071 * ãã«ãã¼é¢æ°ã追å 4072 * @param {String} name 颿°å 4073 * @param {Function} func 颿° 4074 */ 4075 4076 }, { 4077 key: 'add_helper', 4078 value: function add_helper(name, func) { 4079 this.opt.helpers[name] = func; 4080 } 4081 4082 /** 4083 * private 4084 */ 4085 4086 /** 4087 * 夿ãããã³ãã¬ã¼ããã¿ã¼ã²ããã¨ã¬ã¡ã³ãã«æ¿å ¥ãã 4088 * ã¨ã¬ã¡ã³ããåå¨ããªããã°ä½ãããªã 4089 * @param {String} output 夿æ¸ã¿ãã³ãã¬ã¼ã 4090 */ 4091 4092 }, { 4093 key: '$_insert_to_target', 4094 value: function $_insert_to_target(output) { 4095 var target = document.querySelector(this.opt.target); 4096 if (target) { 4097 target.insertAdjacentHTML('afterbegin', output); 4098 } 4099 } 4100 4101 /** 4102 * åãåã£ãè¨äºãªã¹ãã夿ãã¦è¿ã 4103 * @param {Array} data WP_postã®é å 4104 * @return {Array} 夿ããè¨äºæ¯ã®é å 4105 */ 4106 4107 }, { 4108 key: '$_convert_list', 4109 value: function $_convert_list(data) { 4110 var _this2 = this; 4111 4112 var output_list = []; 4113 4114 data.forEach(function (post) { 4115 var result = _this2.$_convert_post(post); 4116 output_list.push(result); 4117 }); 4118 return output_list; 4119 } 4120 4121 /** 4122 * åãåã£ãè¨äºããã³ãã¬ã¼ãã§å¤æãã¦è¿ã 4123 * @param {Object} post 4124 * @return {String} 夿ãããã³ãã¬ã¼ã 4125 */ 4126 4127 }, { 4128 key: '$_convert_post', 4129 value: function $_convert_post(post) { 4130 var template = this.opt.template; 4131 4132 // WP REST API ã®æã«è¡ã夿 4133 if (this.opt.type === 'rest') { 4134 post = this.$_convert_rest(post); 4135 } 4136 // ãã«ãã¼ã§ã®å¤æ 4137 template = this.$_convert_helper(template, post); 4138 // ç¹°ãè¿ãé ç®ã®å¤æ 4139 template = this.$_convert_loop(template, post); 4140 // è¨äºã®é ç®ã§æ¤ç´¢ãã¦å¤æ 4141 template = this.$_convert_simple(template, post); 4142 4143 return template; 4144 } 4145 4146 /** 4147 * WP REST API ã®æã«è¡ã夿 4148 * @param {Objedt} post 4149 * @return {Object} 夿ããpostãªãã¸ã§ã¯ã 4150 */ 4151 4152 }, { 4153 key: '$_convert_rest', 4154 value: function $_convert_rest(post) { 4155 var title = post.title.rendered; 4156 post.title = title; 4157 return post; 4158 } 4159 4160 /** 4161 * ç¹°ãè¿ãé ç®ã®å¤æ 4162 * @param {String} template ãã³ãã¬ã¼ã 4163 * @param {Object} post ãã¹ããã¼ã¿ 4164 * @return {String} 夿å¾ãã³ãã¬ã¼ã 4165 */ 4166 4167 }, { 4168 key: '$_convert_loop', 4169 value: function $_convert_loop(template, post) { 4170 var _this3 = this; 4171 4172 var match = void 0; 4173 4174 var _loop = function _loop() { 4175 // æ¤ç´¢ãã¿ã¼ã³ 4176 var pattern = match[0]; 4177 // ã«ã¼ãç¨é å 4178 var datalist = post[match[1]]; 4179 // 夿ãã©ã¼ããã 4180 var format = match[2]; 4181 // åºåãªã¹ã 4182 var output = []; 4183 4184 datalist.forEach(function (data) { 4185 output.push(_this3.$_convert_simple(format, data)); 4186 }); 4187 template = template.replace(pattern, output.join('')); 4188 }; 4189 4190 while ((match = loop_reg.exec(template)) !== null) { 4191 _loop(); 4192 } 4193 return template; 4194 } 4195 4196 /** 4197 * è¨äºãã¼ã¿ã®é ç®åã§ç½®æ 4198 * @param {String} template ãã³ãã¬ã¼ã 4199 * @param {Object} post ãã¹ããã¼ã¿ 4200 * @return {String} 夿å¾ãã³ãã¬ã¼ã 4201 */ 4202 4203 }, { 4204 key: '$_convert_simple', 4205 value: function $_convert_simple(template, post) { 4206 _Object$keys(post).forEach(function (key) { 4207 template = template.replace('{{' + key + '}}', post[key]); 4208 }); 4209 return template; 4210 } 4211 4212 /** 4213 * ãã«ãã¼æå®ããããã¿ã¼ã³ãããã«ãã¼åã¨ãã©ã¡ã¼ã¿ã¼ãæãåºãã¦å®è¡ãã 4214 * @param {String} template ãã³ãã¬ã¼ã 4215 * @param {Object} post ãã¹ããã¼ã¿ 4216 * @return {String} 夿å¾ãã³ãã¬ã¼ã 4217 */ 4218 4219 }, { 4220 key: '$_convert_helper', 4221 value: function $_convert_helper(template, post) { 4222 var helpers = this.opt.helpers; 4223 var match = void 0; 4224 4225 while ((match = helper_reg.exec(template)) !== null) { 4226 // æ¤ç´¢ãã¿ã¼ã³ 4227 var pattern = match[0]; 4228 // ãã«ãã¼é¢æ°å 4229 var helper = match[1]; 4230 var parser = new csv_string_lib_parser__WEBPACK_IMPORTED_MODULE_1___default.a(match[2]); 4231 // ãã«ãã¼ã«æ¸¡ã弿° 4232 var params = parser.File()[0]; 4233 // ãã«ãã¼ã®å®è¡çµæã§ç½®æãã 4234 var helper_res = helpers[helper].apply(helpers, [post].concat(_toConsumableArray(params))); 4235 template = template.replace(pattern, helper_res); 4236 } 4237 return template; 4238 } 4239 }]); 4240 4241 return _class; 4242}(); 4243 4244/* harmony default export */ __webpack_exports__["default"] = (_class); 4245 4246 4247/***/ }), 4248
vendor: 361 bytes, lines 4249-4259
4249/***/ "./node_modules/axios/index.js": 4250/*!*************************************!*\ 4251 !*** ./node_modules/axios/index.js ***! 4252 \*************************************/ 4253/*! no static exports found */ 4254/***/ (function(module, exports, __webpack_require__) { 4255 4256module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); 4257 4258/***/ }), 4259
vendor: 6,959 bytes, lines 4260-4451
4260/***/ "./node_modules/axios/lib/adapters/xhr.js": 4261/*!************************************************!*\ 4262 !*** ./node_modules/axios/lib/adapters/xhr.js ***! 4263 \************************************************/ 4264/*! no static exports found */ 4265/***/ (function(module, exports, __webpack_require__) { 4266 4267"use strict"; 4268 4269 4270var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 4271var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); 4272var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); 4273var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); 4274var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); 4275var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); 4276var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(/*! ./../helpers/btoa */ "./node_modules/axios/lib/helpers/btoa.js"); 4277 4278module.exports = function xhrAdapter(config) { 4279 return new Promise(function dispatchXhrRequest(resolve, reject) { 4280 var requestData = config.data; 4281 var requestHeaders = config.headers; 4282 4283 if (utils.isFormData(requestData)) { 4284 delete requestHeaders['Content-Type']; // Let the browser set it 4285 } 4286 4287 var request = new XMLHttpRequest(); 4288 var loadEvent = 'onreadystatechange'; 4289 var xDomain = false; 4290 4291 // For IE 8/9 CORS support 4292 // Only supports POST and GET calls and doesn't returns the response headers. 4293 // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest. 4294 if ( true && 4295 typeof window !== 'undefined' && 4296 window.XDomainRequest && !('withCredentials' in request) && 4297 !isURLSameOrigin(config.url)) { 4298 request = new window.XDomainRequest(); 4299 loadEvent = 'onload'; 4300 xDomain = true; 4301 request.onprogress = function handleProgress() {}; 4302 request.ontimeout = function handleTimeout() {}; 4303 } 4304 4305 // HTTP basic authentication 4306 if (config.auth) { 4307 var username = config.auth.username || ''; 4308 var password = config.auth.password || ''; 4309 requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); 4310 } 4311 4312 request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true); 4313 4314 // Set the request timeout in MS 4315 request.timeout = config.timeout; 4316 4317 // Listen for ready state 4318 request[loadEvent] = function handleLoad() { 4319 if (!request || (request.readyState !== 4 && !xDomain)) { 4320 return; 4321 } 4322 4323 // The request errored out and we didn't get a response, this will be 4324 // handled by onerror instead 4325 // With one exception: request that using file: protocol, most browsers 4326 // will return status as 0 even though it's a successful request 4327 if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { 4328 return; 4329 } 4330 4331 // Prepare the response 4332 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; 4333 var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; 4334 var response = { 4335 data: responseData, 4336 // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201) 4337 status: request.status === 1223 ? 204 : request.status, 4338 statusText: request.status === 1223 ? 'No Content' : request.statusText, 4339 headers: responseHeaders, 4340 config: config, 4341 request: request 4342 }; 4343 4344 settle(resolve, reject, response); 4345 4346 // Clean up request 4347 request = null; 4348 }; 4349 4350 // Handle low level network errors 4351 request.onerror = function handleError() { 4352 // Real errors are hidden from us by the browser 4353 // onerror should only fire if it's a network error 4354 reject(createError('Network Error', config, null, request)); 4355 4356 // Clean up request 4357 request = null; 4358 }; 4359 4360 // Handle timeout 4361 request.ontimeout = function handleTimeout() { 4362 reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', 4363 request)); 4364 4365 // Clean up request 4366 request = null; 4367 }; 4368 4369 // Add xsrf header 4370 // This is only done if running in a standard browser environment. 4371 // Specifically not if we're in a web worker, or react-native. 4372 if (utils.isStandardBrowserEnv()) { 4373 var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); 4374 4375 // Add xsrf header 4376 var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ? 4377 cookies.read(config.xsrfCookieName) : 4378 undefined; 4379 4380 if (xsrfValue) { 4381 requestHeaders[config.xsrfHeaderName] = xsrfValue; 4382 } 4383 } 4384 4385 // Add headers to the request 4386 if ('setRequestHeader' in request) { 4387 utils.forEach(requestHeaders, function setRequestHeader(val, key) { 4388 if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { 4389 // Remove Content-Type if data is undefined 4390 delete requestHeaders[key]; 4391 } else { 4392 // Otherwise add header to the request 4393 request.setRequestHeader(key, val); 4394 } 4395 }); 4396 } 4397 4398 // Add withCredentials to request if needed 4399 if (config.withCredentials) { 4400 request.withCredentials = true; 4401 } 4402 4403 // Add responseType to request if needed 4404 if (config.responseType) { 4405 try { 4406 request.responseType = config.responseType; 4407 } catch (e) { 4408 // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. 4409 // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. 4410 if (config.responseType !== 'json') { 4411 throw e; 4412 } 4413 } 4414 } 4415 4416 // Handle progress if needed 4417 if (typeof config.onDownloadProgress === 'function') { 4418 request.addEventListener('progress', config.onDownloadProgress); 4419 } 4420 4421 // Not all browsers support upload events 4422 if (typeof config.onUploadProgress === 'function' && request.upload) { 4423 request.upload.addEventListener('progress', config.onUploadProgress); 4424 } 4425 4426 if (config.cancelToken) { 4427 // Handle cancellation 4428 config.cancelToken.promise.then(function onCanceled(cancel) { 4429 if (!request) { 4430 return; 4431 } 4432 4433 request.abort(); 4434 reject(cancel); 4435 // Clean up request 4436 request = null; 4437 }); 4438 } 4439 4440 if (requestData === undefined) { 4441 requestData = null; 4442 } 4443 4444 // Send the request 4445 request.send(requestData); 4446 }); 4447}; 4448 4449 4450/***/ }), 4451
vendor: 2,132 bytes, lines 4452-4515
4452/***/ "./node_modules/axios/lib/axios.js": 4453/*!*****************************************!*\ 4454 !*** ./node_modules/axios/lib/axios.js ***! 4455 \*****************************************/ 4456/*! no static exports found */ 4457/***/ (function(module, exports, __webpack_require__) { 4458 4459"use strict"; 4460 4461 4462var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); 4463var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); 4464var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); 4465var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); 4466 4467/** 4468 * Create an instance of Axios 4469 * 4470 * @param {Object} defaultConfig The default config for the instance 4471 * @return {Axios} A new instance of Axios 4472 */ 4473function createInstance(defaultConfig) { 4474 var context = new Axios(defaultConfig); 4475 var instance = bind(Axios.prototype.request, context); 4476 4477 // Copy axios.prototype to instance 4478 utils.extend(instance, Axios.prototype, context); 4479 4480 // Copy context to instance 4481 utils.extend(instance, context); 4482 4483 return instance; 4484} 4485 4486// Create the default instance to be exported 4487var axios = createInstance(defaults); 4488 4489// Expose Axios class to allow class inheritance 4490axios.Axios = Axios; 4491 4492// Factory for creating new instances 4493axios.create = function create(instanceConfig) { 4494 return createInstance(utils.merge(defaults, instanceConfig)); 4495}; 4496 4497// Expose Cancel & CancelToken 4498axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); 4499axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); 4500axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); 4501 4502// Expose all/spread 4503axios.all = function all(promises) { 4504 return Promise.all(promises); 4505}; 4506axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); 4507 4508module.exports = axios; 4509 4510// Allow use of default import syntax in TypeScript 4511module.exports.default = axios; 4512 4513 4514/***/ }), 4515
vendor: 702 bytes, lines 4516-4546
4516/***/ "./node_modules/axios/lib/cancel/Cancel.js": 4517/*!*************************************************!*\ 4518 !*** ./node_modules/axios/lib/cancel/Cancel.js ***! 4519 \*************************************************/ 4520/*! no static exports found */ 4521/***/ (function(module, exports, __webpack_require__) { 4522 4523"use strict"; 4524 4525 4526/** 4527 * A `Cancel` is an object that is thrown when an operation is canceled. 4528 * 4529 * @class 4530 * @param {string=} message The message. 4531 */ 4532function Cancel(message) { 4533 this.message = message; 4534} 4535 4536Cancel.prototype.toString = function toString() { 4537 return 'Cancel' + (this.message ? ': ' + this.message : ''); 4538}; 4539 4540Cancel.prototype.__CANCEL__ = true; 4541 4542module.exports = Cancel; 4543 4544 4545/***/ }), 4546
vendor: 1,638 bytes, lines 4547-4615
4547/***/ "./node_modules/axios/lib/cancel/CancelToken.js": 4548/*!******************************************************!*\ 4549 !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! 4550 \******************************************************/ 4551/*! no static exports found */ 4552/***/ (function(module, exports, __webpack_require__) { 4553 4554"use strict"; 4555 4556 4557var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); 4558 4559/** 4560 * A `CancelToken` is an object that can be used to request cancellation of an operation. 4561 * 4562 * @class 4563 * @param {Function} executor The executor function. 4564 */ 4565function CancelToken(executor) { 4566 if (typeof executor !== 'function') { 4567 throw new TypeError('executor must be a function.'); 4568 } 4569 4570 var resolvePromise; 4571 this.promise = new Promise(function promiseExecutor(resolve) { 4572 resolvePromise = resolve; 4573 }); 4574 4575 var token = this; 4576 executor(function cancel(message) { 4577 if (token.reason) { 4578 // Cancellation has already been requested 4579 return; 4580 } 4581 4582 token.reason = new Cancel(message); 4583 resolvePromise(token.reason); 4584 }); 4585} 4586 4587/** 4588 * Throws a `Cancel` if cancellation has been requested. 4589 */ 4590CancelToken.prototype.throwIfRequested = function throwIfRequested() { 4591 if (this.reason) { 4592 throw this.reason; 4593 } 4594}; 4595 4596/** 4597 * Returns an object that contains a new `CancelToken` and a function that, when called, 4598 * cancels the `CancelToken`. 4599 */ 4600CancelToken.source = function source() { 4601 var cancel; 4602 var token = new CancelToken(function executor(c) { 4603 cancel = c; 4604 }); 4605 return { 4606 token: token, 4607 cancel: cancel 4608 }; 4609}; 4610 4611module.exports = CancelToken; 4612 4613 4614/***/ }), 4615
vendor: 427 bytes, lines 4616-4632
4616/***/ "./node_modules/axios/lib/cancel/isCancel.js": 4617/*!***************************************************!*\ 4618 !*** ./node_modules/axios/lib/cancel/isCancel.js ***! 4619 \***************************************************/ 4620/*! no static exports found */ 4621/***/ (function(module, exports, __webpack_require__) { 4622 4623"use strict"; 4624 4625 4626module.exports = function isCancel(value) { 4627 return !!(value && value.__CANCEL__); 4628}; 4629 4630 4631/***/ }), 4632
vendor: 2,742 bytes, lines 4633-4723
4633/***/ "./node_modules/axios/lib/core/Axios.js": 4634/*!**********************************************!*\ 4635 !*** ./node_modules/axios/lib/core/Axios.js ***! 4636 \**********************************************/ 4637/*! no static exports found */ 4638/***/ (function(module, exports, __webpack_require__) { 4639 4640"use strict"; 4641 4642 4643var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js"); 4644var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 4645var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); 4646var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); 4647 4648/** 4649 * Create a new instance of Axios 4650 * 4651 * @param {Object} instanceConfig The default config for the instance 4652 */ 4653function Axios(instanceConfig) { 4654 this.defaults = instanceConfig; 4655 this.interceptors = { 4656 request: new InterceptorManager(), 4657 response: new InterceptorManager() 4658 }; 4659} 4660 4661/** 4662 * Dispatch a request 4663 * 4664 * @param {Object} config The config specific for this request (merged with this.defaults) 4665 */ 4666Axios.prototype.request = function request(config) { 4667 /*eslint no-param-reassign:0*/ 4668 // Allow for axios('example/url'[, config]) a la fetch API 4669 if (typeof config === 'string') { 4670 config = utils.merge({ 4671 url: arguments[0] 4672 }, arguments[1]); 4673 } 4674 4675 config = utils.merge(defaults, this.defaults, { method: 'get' }, config); 4676 config.method = config.method.toLowerCase(); 4677 4678 // Hook up interceptors middleware 4679 var chain = [dispatchRequest, undefined]; 4680 var promise = Promise.resolve(config); 4681 4682 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { 4683 chain.unshift(interceptor.fulfilled, interceptor.rejected); 4684 }); 4685 4686 this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { 4687 chain.push(interceptor.fulfilled, interceptor.rejected); 4688 }); 4689 4690 while (chain.length) { 4691 promise = promise.then(chain.shift(), chain.shift()); 4692 } 4693 4694 return promise; 4695}; 4696 4697// Provide aliases for supported request methods 4698utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { 4699 /*eslint func-names:0*/ 4700 Axios.prototype[method] = function(url, config) { 4701 return this.request(utils.merge(config || {}, { 4702 method: method, 4703 url: url 4704 })); 4705 }; 4706}); 4707 4708utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 4709 /*eslint func-names:0*/ 4710 Axios.prototype[method] = function(url, data, config) { 4711 return this.request(utils.merge(config || {}, { 4712 method: method, 4713 url: url, 4714 data: data 4715 })); 4716 }; 4717}); 4718 4719module.exports = Axios; 4720 4721 4722/***/ }), 4723
vendor: 1,661 bytes, lines 4724-4787
4724/***/ "./node_modules/axios/lib/core/InterceptorManager.js": 4725/*!***********************************************************!*\ 4726 !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! 4727 \***********************************************************/ 4728/*! no static exports found */ 4729/***/ (function(module, exports, __webpack_require__) { 4730 4731"use strict"; 4732 4733 4734var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 4735 4736function InterceptorManager() { 4737 this.handlers = []; 4738} 4739 4740/** 4741 * Add a new interceptor to the stack 4742 * 4743 * @param {Function} fulfilled The function to handle `then` for a `Promise` 4744 * @param {Function} rejected The function to handle `reject` for a `Promise` 4745 * 4746 * @return {Number} An ID used to remove interceptor later 4747 */ 4748InterceptorManager.prototype.use = function use(fulfilled, rejected) { 4749 this.handlers.push({ 4750 fulfilled: fulfilled, 4751 rejected: rejected 4752 }); 4753 return this.handlers.length - 1; 4754}; 4755 4756/** 4757 * Remove an interceptor from the stack 4758 * 4759 * @param {Number} id The ID that was returned by `use` 4760 */ 4761InterceptorManager.prototype.eject = function eject(id) { 4762 if (this.handlers[id]) { 4763 this.handlers[id] = null; 4764 } 4765}; 4766 4767/** 4768 * Iterate over all the registered interceptors 4769 * 4770 * This method is particularly useful for skipping over any 4771 * interceptors that may have become `null` calling `eject`. 4772 * 4773 * @param {Function} fn The function to call for each interceptor 4774 */ 4775InterceptorManager.prototype.forEach = function forEach(fn) { 4776 utils.forEach(this.handlers, function forEachHandler(h) { 4777 if (h !== null) { 4778 fn(h); 4779 } 4780 }); 4781}; 4782 4783module.exports = InterceptorManager; 4784 4785 4786/***/ }), 4787
vendor: 1,019 bytes, lines 4788-4817
4788/***/ "./node_modules/axios/lib/core/createError.js": 4789/*!****************************************************!*\ 4790 !*** ./node_modules/axios/lib/core/createError.js ***! 4791 \****************************************************/ 4792/*! no static exports found */ 4793/***/ (function(module, exports, __webpack_require__) { 4794 4795"use strict"; 4796 4797 4798var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); 4799 4800/** 4801 * Create an Error with the specified message, config, error code, request and response. 4802 * 4803 * @param {string} message The error message. 4804 * @param {Object} config The config. 4805 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 4806 * @param {Object} [request] The request. 4807 * @param {Object} [response] The response. 4808 * @returns {Error} The created error. 4809 */ 4810module.exports = function createError(message, config, code, request, response) { 4811 var error = new Error(message); 4812 return enhanceError(error, config, code, request, response); 4813}; 4814 4815 4816/***/ }), 4817
vendor: 2,918 bytes, lines 4818-4915
4818/***/ "./node_modules/axios/lib/core/dispatchRequest.js": 4819/*!********************************************************!*\ 4820 !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! 4821 \********************************************************/ 4822/*! no static exports found */ 4823/***/ (function(module, exports, __webpack_require__) { 4824 4825"use strict"; 4826 4827 4828var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 4829var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); 4830var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); 4831var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); 4832var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); 4833var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); 4834 4835/** 4836 * Throws a `Cancel` if cancellation has been requested. 4837 */ 4838function throwIfCancellationRequested(config) { 4839 if (config.cancelToken) { 4840 config.cancelToken.throwIfRequested(); 4841 } 4842} 4843 4844/** 4845 * Dispatch a request to the server using the configured adapter. 4846 * 4847 * @param {object} config The config that is to be used for the request 4848 * @returns {Promise} The Promise to be fulfilled 4849 */ 4850module.exports = function dispatchRequest(config) { 4851 throwIfCancellationRequested(config); 4852 4853 // Support baseURL config 4854 if (config.baseURL && !isAbsoluteURL(config.url)) { 4855 config.url = combineURLs(config.baseURL, config.url); 4856 } 4857 4858 // Ensure headers exist 4859 config.headers = config.headers || {}; 4860 4861 // Transform request data 4862 config.data = transformData( 4863 config.data, 4864 config.headers, 4865 config.transformRequest 4866 ); 4867 4868 // Flatten headers 4869 config.headers = utils.merge( 4870 config.headers.common || {}, 4871 config.headers[config.method] || {}, 4872 config.headers || {} 4873 ); 4874 4875 utils.forEach( 4876 ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], 4877 function cleanHeaderConfig(method) { 4878 delete config.headers[method]; 4879 } 4880 ); 4881 4882 var adapter = config.adapter || defaults.adapter; 4883 4884 return adapter(config).then(function onAdapterResolution(response) { 4885 throwIfCancellationRequested(config); 4886 4887 // Transform response data 4888 response.data = transformData( 4889 response.data, 4890 response.headers, 4891 config.transformResponse 4892 ); 4893 4894 return response; 4895 }, function onAdapterRejection(reason) { 4896 if (!isCancel(reason)) { 4897 throwIfCancellationRequested(config); 4898 4899 // Transform response data 4900 if (reason && reason.response) { 4901 reason.response.data = transformData( 4902 reason.response.data, 4903 reason.response.headers, 4904 config.transformResponse 4905 ); 4906 } 4907 } 4908 4909 return Promise.reject(reason); 4910 }); 4911}; 4912 4913 4914/***/ }), 4915
vendor: 925 bytes, lines 4916-4948
4916/***/ "./node_modules/axios/lib/core/enhanceError.js": 4917/*!*****************************************************!*\ 4918 !*** ./node_modules/axios/lib/core/enhanceError.js ***! 4919 \*****************************************************/ 4920/*! no static exports found */ 4921/***/ (function(module, exports, __webpack_require__) { 4922 4923"use strict"; 4924 4925 4926/** 4927 * Update an Error with the specified config, error code, and response. 4928 * 4929 * @param {Error} error The error to update. 4930 * @param {Object} config The config. 4931 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 4932 * @param {Object} [request] The request. 4933 * @param {Object} [response] The response. 4934 * @returns {Error} The error. 4935 */ 4936module.exports = function enhanceError(error, config, code, request, response) { 4937 error.config = config; 4938 if (code) { 4939 error.code = code; 4940 } 4941 error.request = request; 4942 error.response = response; 4943 return error; 4944}; 4945 4946 4947/***/ }), 4948
vendor: 1,130 bytes, lines 4949-4986
4949/***/ "./node_modules/axios/lib/core/settle.js": 4950/*!***********************************************!*\ 4951 !*** ./node_modules/axios/lib/core/settle.js ***! 4952 \***********************************************/ 4953/*! no static exports found */ 4954/***/ (function(module, exports, __webpack_require__) { 4955 4956"use strict"; 4957 4958 4959var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); 4960 4961/** 4962 * Resolve or reject a Promise based on response status. 4963 * 4964 * @param {Function} resolve A function that resolves the promise. 4965 * @param {Function} reject A function that rejects the promise. 4966 * @param {object} response The response. 4967 */ 4968module.exports = function settle(resolve, reject, response) { 4969 var validateStatus = response.config.validateStatus; 4970 // Note: status is not exposed by XDomainRequest 4971 if (!response.status || !validateStatus || validateStatus(response.status)) { 4972 resolve(response); 4973 } else { 4974 reject(createError( 4975 'Request failed with status code ' + response.status, 4976 response.config, 4977 null, 4978 response.request, 4979 response 4980 )); 4981 } 4982}; 4983 4984 4985/***/ }), 4986
vendor: 940 bytes, lines 4987-5018
4987/***/ "./node_modules/axios/lib/core/transformData.js": 4988/*!******************************************************!*\ 4989 !*** ./node_modules/axios/lib/core/transformData.js ***! 4990 \******************************************************/ 4991/*! no static exports found */ 4992/***/ (function(module, exports, __webpack_require__) { 4993 4994"use strict"; 4995 4996 4997var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 4998 4999/** 5000 * Transform the data for a request or a response 5001 * 5002 * @param {Object|String} data The data to be transformed 5003 * @param {Array} headers The headers for the request or response 5004 * @param {Array|Function} fns A single function or Array of functions 5005 * @returns {*} The resulting transformed data 5006 */ 5007module.exports = function transformData(data, headers, fns) { 5008 /*eslint no-param-reassign:0*/ 5009 utils.forEach(fns, function transform(fn) { 5010 data = fn(data, headers); 5011 }); 5012 5013 return data; 5014}; 5015 5016 5017/***/ }), 5018
vendor: 3,041 bytes, lines 5019-5123
5019/***/ "./node_modules/axios/lib/defaults.js": 5020/*!********************************************!*\ 5021 !*** ./node_modules/axios/lib/defaults.js ***! 5022 \********************************************/ 5023/*! no static exports found */ 5024/***/ (function(module, exports, __webpack_require__) { 5025 5026"use strict"; 5027/* WEBPACK VAR INJECTION */(function(process) { 5028 5029var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); 5030var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); 5031 5032var DEFAULT_CONTENT_TYPE = { 5033 'Content-Type': 'application/x-www-form-urlencoded' 5034}; 5035 5036function setContentTypeIfUnset(headers, value) { 5037 if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { 5038 headers['Content-Type'] = value; 5039 } 5040} 5041 5042function getDefaultAdapter() { 5043 var adapter; 5044 if (typeof XMLHttpRequest !== 'undefined') { 5045 // For browsers use XHR adapter 5046 adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); 5047 } else if (typeof process !== 'undefined') { 5048 // For node use HTTP adapter 5049 adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); 5050 } 5051 return adapter; 5052} 5053 5054var defaults = { 5055 adapter: getDefaultAdapter(), 5056 5057 transformRequest: [function transformRequest(data, headers) { 5058 normalizeHeaderName(headers, 'Content-Type'); 5059 if (utils.isFormData(data) || 5060 utils.isArrayBuffer(data) || 5061 utils.isBuffer(data) || 5062 utils.isStream(data) || 5063 utils.isFile(data) || 5064 utils.isBlob(data) 5065 ) { 5066 return data; 5067 } 5068 if (utils.isArrayBufferView(data)) { 5069 return data.buffer; 5070 } 5071 if (utils.isURLSearchParams(data)) { 5072 setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); 5073 return data.toString(); 5074 } 5075 if (utils.isObject(data)) { 5076 setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); 5077 return JSON.stringify(data); 5078 } 5079 return data; 5080 }], 5081 5082 transformResponse: [function transformResponse(data) { 5083 /*eslint no-param-reassign:0*/ 5084 if (typeof data === 'string') { 5085 try { 5086 data = JSON.parse(data); 5087 } catch (e) { /* Ignore */ } 5088 } 5089 return data; 5090 }], 5091 5092 timeout: 0, 5093 5094 xsrfCookieName: 'XSRF-TOKEN', 5095 xsrfHeaderName: 'X-XSRF-TOKEN', 5096 5097 maxContentLength: -1, 5098 5099 validateStatus: function validateStatus(status) { 5100 return status >= 200 && status < 300; 5101 } 5102}; 5103 5104defaults.headers = { 5105 common: { 5106 'Accept': 'application/json, text/plain, */*' 5107 } 5108}; 5109 5110utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { 5111 defaults.headers[method] = {}; 5112}); 5113 5114utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 5115 defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); 5116}); 5117 5118module.exports = defaults; 5119 5120/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) 5121 5122/***/ }), 5123
vendor: 569 bytes, lines 5124-5146
5124/***/ "./node_modules/axios/lib/helpers/bind.js": 5125/*!************************************************!*\ 5126 !*** ./node_modules/axios/lib/helpers/bind.js ***! 5127 \************************************************/ 5128/*! no static exports found */ 5129/***/ (function(module, exports, __webpack_require__) { 5130 5131"use strict"; 5132 5133 5134module.exports = function bind(fn, thisArg) { 5135 return function wrap() { 5136 var args = new Array(arguments.length); 5137 for (var i = 0; i < args.length; i++) { 5138 args[i] = arguments[i]; 5139 } 5140 return fn.apply(thisArg, args); 5141 }; 5142}; 5143 5144 5145/***/ }), 5146
vendor: 1,299 bytes, lines 5147-5194
5147/***/ "./node_modules/axios/lib/helpers/btoa.js": 5148/*!************************************************!*\ 5149 !*** ./node_modules/axios/lib/helpers/btoa.js ***! 5150 \************************************************/ 5151/*! no static exports found */ 5152/***/ (function(module, exports, __webpack_require__) { 5153 5154"use strict"; 5155 5156 5157// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js 5158 5159var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; 5160 5161function E() { 5162 this.message = 'String contains an invalid character'; 5163} 5164E.prototype = new Error; 5165E.prototype.code = 5; 5166E.prototype.name = 'InvalidCharacterError'; 5167 5168function btoa(input) { 5169 var str = String(input); 5170 var output = ''; 5171 for ( 5172 // initialize result and counter 5173 var block, charCode, idx = 0, map = chars; 5174 // if the next str index does not exist: 5175 // change the mapping table to "=" 5176 // check if d has no fractional digits 5177 str.charAt(idx | 0) || (map = '=', idx % 1); 5178 // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8 5179 output += map.charAt(63 & block >> 8 - idx % 1 * 8) 5180 ) { 5181 charCode = str.charCodeAt(idx += 3 / 4); 5182 if (charCode > 0xFF) { 5183 throw new E(); 5184 } 5185 block = block << 8 | charCode; 5186 } 5187 return output; 5188} 5189 5190module.exports = btoa; 5191 5192 5193/***/ }), 5194
vendor: 1,958 bytes, lines 5195-5274
5195/***/ "./node_modules/axios/lib/helpers/buildURL.js": 5196/*!****************************************************!*\ 5197 !*** ./node_modules/axios/lib/helpers/buildURL.js ***! 5198 \****************************************************/ 5199/*! no static exports found */ 5200/***/ (function(module, exports, __webpack_require__) { 5201 5202"use strict"; 5203 5204 5205var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 5206 5207function encode(val) { 5208 return encodeURIComponent(val). 5209 replace(/%40/gi, '@'). 5210 replace(/%3A/gi, ':'). 5211 replace(/%24/g, '$'). 5212 replace(/%2C/gi, ','). 5213 replace(/%20/g, '+'). 5214 replace(/%5B/gi, '['). 5215 replace(/%5D/gi, ']'); 5216} 5217 5218/** 5219 * Build a URL by appending params to the end 5220 * 5221 * @param {string} url The base of the url (e.g., http://www.google.com) 5222 * @param {object} [params] The params to be appended 5223 * @returns {string} The formatted url 5224 */ 5225module.exports = function buildURL(url, params, paramsSerializer) { 5226 /*eslint no-param-reassign:0*/ 5227 if (!params) { 5228 return url; 5229 } 5230 5231 var serializedParams; 5232 if (paramsSerializer) { 5233 serializedParams = paramsSerializer(params); 5234 } else if (utils.isURLSearchParams(params)) { 5235 serializedParams = params.toString(); 5236 } else { 5237 var parts = []; 5238 5239 utils.forEach(params, function serialize(val, key) { 5240 if (val === null || typeof val === 'undefined') { 5241 return; 5242 } 5243 5244 if (utils.isArray(val)) { 5245 key = key + '[]'; 5246 } 5247 5248 if (!utils.isArray(val)) { 5249 val = [val]; 5250 } 5251 5252 utils.forEach(val, function parseValue(v) { 5253 if (utils.isDate(v)) { 5254 v = v.toISOString(); 5255 } else if (utils.isObject(v)) { 5256 v = JSON.stringify(v); 5257 } 5258 parts.push(encode(key) + '=' + encode(v)); 5259 }); 5260 }); 5261 5262 serializedParams = parts.join('&'); 5263 } 5264 5265 if (serializedParams) { 5266 url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; 5267 } 5268 5269 return url; 5270}; 5271 5272 5273/***/ }), 5274
vendor: 721 bytes, lines 5275-5300
5275/***/ "./node_modules/axios/lib/helpers/combineURLs.js": 5276/*!*******************************************************!*\ 5277 !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! 5278 \*******************************************************/ 5279/*! no static exports found */ 5280/***/ (function(module, exports, __webpack_require__) { 5281 5282"use strict"; 5283 5284 5285/** 5286 * Creates a new URL by combining the specified URLs 5287 * 5288 * @param {string} baseURL The base URL 5289 * @param {string} relativeURL The relative URL 5290 * @returns {string} The combined URL 5291 */ 5292module.exports = function combineURLs(baseURL, relativeURL) { 5293 return relativeURL 5294 ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') 5295 : baseURL; 5296}; 5297 5298 5299/***/ }), 5300
vendor: 1,743 bytes, lines 5301-5365
5301/***/ "./node_modules/axios/lib/helpers/cookies.js": 5302/*!***************************************************!*\ 5303 !*** ./node_modules/axios/lib/helpers/cookies.js ***! 5304 \***************************************************/ 5305/*! no static exports found */ 5306/***/ (function(module, exports, __webpack_require__) { 5307 5308"use strict"; 5309 5310 5311var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 5312 5313module.exports = ( 5314 utils.isStandardBrowserEnv() ? 5315 5316 // Standard browser envs support document.cookie 5317 (function standardBrowserEnv() { 5318 return { 5319 write: function write(name, value, expires, path, domain, secure) { 5320 var cookie = []; 5321 cookie.push(name + '=' + encodeURIComponent(value)); 5322 5323 if (utils.isNumber(expires)) { 5324 cookie.push('expires=' + new Date(expires).toGMTString()); 5325 } 5326 5327 if (utils.isString(path)) { 5328 cookie.push('path=' + path); 5329 } 5330 5331 if (utils.isString(domain)) { 5332 cookie.push('domain=' + domain); 5333 } 5334 5335 if (secure === true) { 5336 cookie.push('secure'); 5337 } 5338 5339 document.cookie = cookie.join('; '); 5340 }, 5341 5342 read: function read(name) { 5343 var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); 5344 return (match ? decodeURIComponent(match[3]) : null); 5345 }, 5346 5347 remove: function remove(name) { 5348 this.write(name, '', Date.now() - 86400000); 5349 } 5350 }; 5351 })() : 5352 5353 // Non standard browser env (web workers, react-native) lack needed support. 5354 (function nonStandardBrowserEnv() { 5355 return { 5356 write: function write() {}, 5357 read: function read() { return null; }, 5358 remove: function remove() {} 5359 }; 5360 })() 5361); 5362 5363 5364/***/ }), 5365
vendor: 912 bytes, lines 5366-5391
5366/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": 5367/*!*********************************************************!*\ 5368 !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! 5369 \*********************************************************/ 5370/*! no static exports found */ 5371/***/ (function(module, exports, __webpack_require__) { 5372 5373"use strict"; 5374 5375 5376/** 5377 * Determines whether the specified URL is absolute 5378 * 5379 * @param {string} url The URL to test 5380 * @returns {boolean} True if the specified URL is absolute, otherwise false 5381 */ 5382module.exports = function isAbsoluteURL(url) { 5383 // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). 5384 // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed 5385 // by any combination of letters, digits, plus, period, or hyphen. 5386 return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); 5387}; 5388 5389 5390/***/ }), 5391
vendor: 2,655 bytes, lines 5392-5471
5392/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": 5393/*!***********************************************************!*\ 5394 !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! 5395 \***********************************************************/ 5396/*! no static exports found */ 5397/***/ (function(module, exports, __webpack_require__) { 5398 5399"use strict"; 5400 5401 5402var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 5403 5404module.exports = ( 5405 utils.isStandardBrowserEnv() ? 5406 5407 // Standard browser envs have full support of the APIs needed to test 5408 // whether the request URL is of the same origin as current location. 5409 (function standardBrowserEnv() { 5410 var msie = /(msie|trident)/i.test(navigator.userAgent); 5411 var urlParsingNode = document.createElement('a'); 5412 var originURL; 5413 5414 /** 5415 * Parse a URL to discover it's components 5416 * 5417 * @param {String} url The URL to be parsed 5418 * @returns {Object} 5419 */ 5420 function resolveURL(url) { 5421 var href = url; 5422 5423 if (msie) { 5424 // IE needs attribute set twice to normalize properties 5425 urlParsingNode.setAttribute('href', href); 5426 href = urlParsingNode.href; 5427 } 5428 5429 urlParsingNode.setAttribute('href', href); 5430 5431 // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils 5432 return { 5433 href: urlParsingNode.href, 5434 protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', 5435 host: urlParsingNode.host, 5436 search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', 5437 hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', 5438 hostname: urlParsingNode.hostname, 5439 port: urlParsingNode.port, 5440 pathname: (urlParsingNode.pathname.charAt(0) === '/') ? 5441 urlParsingNode.pathname : 5442 '/' + urlParsingNode.pathname 5443 }; 5444 } 5445 5446 originURL = resolveURL(window.location.href); 5447 5448 /** 5449 * Determine if a URL shares the same origin as the current location 5450 * 5451 * @param {String} requestURL The URL to test 5452 * @returns {boolean} True if URL shares the same origin, otherwise false 5453 */ 5454 return function isURLSameOrigin(requestURL) { 5455 var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; 5456 return (parsed.protocol === originURL.protocol && 5457 parsed.host === originURL.host); 5458 }; 5459 })() : 5460 5461 // Non standard browser envs (web workers, react-native) lack needed support. 5462 (function nonStandardBrowserEnv() { 5463 return function isURLSameOrigin() { 5464 return true; 5465 }; 5466 })() 5467); 5468 5469 5470/***/ }), 5471
vendor: 783 bytes, lines 5472-5495
5472/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": 5473/*!***************************************************************!*\ 5474 !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! 5475 \***************************************************************/ 5476/*! no static exports found */ 5477/***/ (function(module, exports, __webpack_require__) { 5478 5479"use strict"; 5480 5481 5482var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); 5483 5484module.exports = function normalizeHeaderName(headers, normalizedName) { 5485 utils.forEach(headers, function processHeader(value, name) { 5486 if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { 5487 headers[normalizedName] = value; 5488 delete headers[name]; 5489 } 5490 }); 5491}; 5492 5493 5494/***/ }), 5495
vendor: 1,791 bytes, lines 5496-5560
5496/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": 5497/*!********************************************************!*\ 5498 !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! 5499 \********************************************************/ 5500/*! no static exports found */ 5501/***/ (function(module, exports, __webpack_require__) { 5502 5503"use strict"; 5504 5505 5506var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); 5507 5508// Headers whose duplicates are ignored by node 5509// c.f. https://nodejs.org/api/http.html#http_message_headers 5510var ignoreDuplicateOf = [ 5511 'age', 'authorization', 'content-length', 'content-type', 'etag', 5512 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 5513 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 5514 'referer', 'retry-after', 'user-agent' 5515]; 5516 5517/** 5518 * Parse headers into an object 5519 * 5520 * ``` 5521 * Date: Wed, 27 Aug 2014 08:58:49 GMT 5522 * Content-Type: application/json 5523 * Connection: keep-alive 5524 * Transfer-Encoding: chunked 5525 * ``` 5526 * 5527 * @param {String} headers Headers needing to be parsed 5528 * @returns {Object} Headers parsed into an object 5529 */ 5530module.exports = function parseHeaders(headers) { 5531 var parsed = {}; 5532 var key; 5533 var val; 5534 var i; 5535 5536 if (!headers) { return parsed; } 5537 5538 utils.forEach(headers.split('\n'), function parser(line) { 5539 i = line.indexOf(':'); 5540 key = utils.trim(line.substr(0, i)).toLowerCase(); 5541 val = utils.trim(line.substr(i + 1)); 5542 5543 if (key) { 5544 if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { 5545 return; 5546 } 5547 if (key === 'set-cookie') { 5548 parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); 5549 } else { 5550 parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; 5551 } 5552 } 5553 }); 5554 5555 return parsed; 5556}; 5557 5558 5559/***/ }), 5560
vendor: 885 bytes, lines 5561-5599
5561/***/ "./node_modules/axios/lib/helpers/spread.js": 5562/*!**************************************************!*\ 5563 !*** ./node_modules/axios/lib/helpers/spread.js ***! 5564 \**************************************************/ 5565/*! no static exports found */ 5566/***/ (function(module, exports, __webpack_require__) { 5567 5568"use strict"; 5569 5570 5571/** 5572 * Syntactic sugar for invoking a function and expanding an array for arguments. 5573 * 5574 * Common use case would be to use `Function.prototype.apply`. 5575 * 5576 * ```js 5577 * function f(x, y, z) {} 5578 * var args = [1, 2, 3]; 5579 * f.apply(null, args); 5580 * ``` 5581 * 5582 * With `spread` this example can be re-written. 5583 * 5584 * ```js 5585 * spread(function(x, y, z) {})([1, 2, 3]); 5586 * ``` 5587 * 5588 * @param {Function} callback 5589 * @returns {Function} 5590 */ 5591module.exports = function spread(callback) { 5592 return function wrap(arr) { 5593 return callback.apply(null, arr); 5594 }; 5595}; 5596 5597 5598/***/ }), 5599
vendor: 7,939 bytes, lines 5600-5914
5600/***/ "./node_modules/axios/lib/utils.js": 5601/*!*****************************************!*\ 5602 !*** ./node_modules/axios/lib/utils.js ***! 5603 \*****************************************/ 5604/*! no static exports found */ 5605/***/ (function(module, exports, __webpack_require__) { 5606 5607"use strict"; 5608 5609 5610var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); 5611var isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js"); 5612 5613/*global toString:true*/ 5614 5615// utils is a library of generic helper functions non-specific to axios 5616 5617var toString = Object.prototype.toString; 5618 5619/** 5620 * Determine if a value is an Array 5621 * 5622 * @param {Object} val The value to test 5623 * @returns {boolean} True if value is an Array, otherwise false 5624 */ 5625function isArray(val) { 5626 return toString.call(val) === '[object Array]'; 5627} 5628 5629/** 5630 * Determine if a value is an ArrayBuffer 5631 * 5632 * @param {Object} val The value to test 5633 * @returns {boolean} True if value is an ArrayBuffer, otherwise false 5634 */ 5635function isArrayBuffer(val) { 5636 return toString.call(val) === '[object ArrayBuffer]'; 5637} 5638 5639/** 5640 * Determine if a value is a FormData 5641 * 5642 * @param {Object} val The value to test 5643 * @returns {boolean} True if value is an FormData, otherwise false 5644 */ 5645function isFormData(val) { 5646 return (typeof FormData !== 'undefined') && (val instanceof FormData); 5647} 5648 5649/** 5650 * Determine if a value is a view on an ArrayBuffer 5651 * 5652 * @param {Object} val The value to test 5653 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false 5654 */ 5655function isArrayBufferView(val) { 5656 var result; 5657 if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { 5658 result = ArrayBuffer.isView(val); 5659 } else { 5660 result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); 5661 } 5662 return result; 5663} 5664 5665/** 5666 * Determine if a value is a String 5667 * 5668 * @param {Object} val The value to test 5669 * @returns {boolean} True if value is a String, otherwise false 5670 */ 5671function isString(val) { 5672 return typeof val === 'string'; 5673} 5674 5675/** 5676 * Determine if a value is a Number 5677 * 5678 * @param {Object} val The value to test 5679 * @returns {boolean} True if value is a Number, otherwise false 5680 */ 5681function isNumber(val) { 5682 return typeof val === 'number'; 5683} 5684 5685/** 5686 * Determine if a value is undefined 5687 * 5688 * @param {Object} val The value to test 5689 * @returns {boolean} True if the value is undefined, otherwise false 5690 */ 5691function isUndefined(val) { 5692 return typeof val === 'undefined'; 5693} 5694 5695/** 5696 * Determine if a value is an Object 5697 * 5698 * @param {Object} val The value to test 5699 * @returns {boolean} True if value is an Object, otherwise false 5700 */ 5701function isObject(val) { 5702 return val !== null && typeof val === 'object'; 5703} 5704 5705/** 5706 * Determine if a value is a Date 5707 * 5708 * @param {Object} val The value to test 5709 * @returns {boolean} True if value is a Date, otherwise false 5710 */ 5711function isDate(val) { 5712 return toString.call(val) === '[object Date]'; 5713} 5714 5715/** 5716 * Determine if a value is a File 5717 * 5718 * @param {Object} val The value to test 5719 * @returns {boolean} True if value is a File, otherwise false 5720 */ 5721function isFile(val) { 5722 return toString.call(val) === '[object File]'; 5723} 5724 5725/** 5726 * Determine if a value is a Blob 5727 * 5728 * @param {Object} val The value to test 5729 * @returns {boolean} True if value is a Blob, otherwise false 5730 */ 5731function isBlob(val) { 5732 return toString.call(val) === '[object Blob]'; 5733} 5734 5735/** 5736 * Determine if a value is a Function 5737 * 5738 * @param {Object} val The value to test 5739 * @returns {boolean} True if value is a Function, otherwise false 5740 */ 5741function isFunction(val) { 5742 return toString.call(val) === '[object Function]'; 5743} 5744 5745/** 5746 * Determine if a value is a Stream 5747 * 5748 * @param {Object} val The value to test 5749 * @returns {boolean} True if value is a Stream, otherwise false 5750 */ 5751function isStream(val) { 5752 return isObject(val) && isFunction(val.pipe); 5753} 5754 5755/** 5756 * Determine if a value is a URLSearchParams object 5757 * 5758 * @param {Object} val The value to test 5759 * @returns {boolean} True if value is a URLSearchParams object, otherwise false 5760 */ 5761function isURLSearchParams(val) { 5762 return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; 5763} 5764 5765/** 5766 * Trim excess whitespace off the beginning and end of a string 5767 * 5768 * @param {String} str The String to trim 5769 * @returns {String} The String freed of excess whitespace 5770 */ 5771function trim(str) { 5772 return str.replace(/^\s*/, '').replace(/\s*$/, ''); 5773} 5774 5775/** 5776 * Determine if we're running in a standard browser environment 5777 * 5778 * This allows axios to run in a web worker, and react-native. 5779 * Both environments support XMLHttpRequest, but not fully standard globals. 5780 * 5781 * web workers: 5782 * typeof window -> undefined 5783 * typeof document -> undefined 5784 * 5785 * react-native: 5786 * navigator.product -> 'ReactNative' 5787 */ 5788function isStandardBrowserEnv() { 5789 if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { 5790 return false; 5791 } 5792 return ( 5793 typeof window !== 'undefined' && 5794 typeof document !== 'undefined' 5795 ); 5796} 5797 5798/** 5799 * Iterate over an Array or an Object invoking a function for each item. 5800 * 5801 * If `obj` is an Array callback will be called passing 5802 * the value, index, and complete array for each item. 5803 * 5804 * If 'obj' is an Object callback will be called passing 5805 * the value, key, and complete object for each property. 5806 * 5807 * @param {Object|Array} obj The object to iterate 5808 * @param {Function} fn The callback to invoke for each item 5809 */ 5810function forEach(obj, fn) { 5811 // Don't bother if no value provided 5812 if (obj === null || typeof obj === 'undefined') { 5813 return; 5814 } 5815 5816 // Force an array if not already something iterable 5817 if (typeof obj !== 'object') { 5818 /*eslint no-param-reassign:0*/ 5819 obj = [obj]; 5820 } 5821 5822 if (isArray(obj)) { 5823 // Iterate over array values 5824 for (var i = 0, l = obj.length; i < l; i++) { 5825 fn.call(null, obj[i], i, obj); 5826 } 5827 } else { 5828 // Iterate over object keys 5829 for (var key in obj) { 5830 if (Object.prototype.hasOwnProperty.call(obj, key)) { 5831 fn.call(null, obj[key], key, obj); 5832 } 5833 } 5834 } 5835} 5836 5837/** 5838 * Accepts varargs expecting each argument to be an object, then 5839 * immutably merges the properties of each object and returns result. 5840 * 5841 * When multiple objects contain the same key the later object in 5842 * the arguments list will take precedence. 5843 * 5844 * Example: 5845 * 5846 * ```js 5847 * var result = merge({foo: 123}, {foo: 456}); 5848 * console.log(result.foo); // outputs 456 5849 * ``` 5850 * 5851 * @param {Object} obj1 Object to merge 5852 * @returns {Object} Result of all merge properties 5853 */ 5854function merge(/* obj1, obj2, obj3, ... */) { 5855 var result = {}; 5856 function assignValue(val, key) { 5857 if (typeof result[key] === 'object' && typeof val === 'object') { 5858 result[key] = merge(result[key], val); 5859 } else { 5860 result[key] = val; 5861 } 5862 } 5863 5864 for (var i = 0, l = arguments.length; i < l; i++) { 5865 forEach(arguments[i], assignValue); 5866 } 5867 return result; 5868} 5869 5870/** 5871 * Extends object a by mutably adding to it the properties of object b. 5872 * 5873 * @param {Object} a The object to be extended 5874 * @param {Object} b The object to copy properties from 5875 * @param {Object} thisArg The object to bind function to 5876 * @return {Object} The resulting value of object a 5877 */ 5878function extend(a, b, thisArg) { 5879 forEach(b, function assignValue(val, key) { 5880 if (thisArg && typeof val === 'function') { 5881 a[key] = bind(val, thisArg); 5882 } else { 5883 a[key] = val; 5884 } 5885 }); 5886 return a; 5887} 5888 5889module.exports = { 5890 isArray: isArray, 5891 isArrayBuffer: isArrayBuffer, 5892 isBuffer: isBuffer, 5893 isFormData: isFormData, 5894 isArrayBufferView: isArrayBufferView, 5895 isString: isString, 5896 isNumber: isNumber, 5897 isObject: isObject, 5898 isUndefined: isUndefined, 5899 isDate: isDate, 5900 isFile: isFile, 5901 isBlob: isBlob, 5902 isFunction: isFunction, 5903 isStream: isStream, 5904 isURLSearchParams: isURLSearchParams, 5905 isStandardBrowserEnv: isStandardBrowserEnv, 5906 forEach: forEach, 5907 merge: merge, 5908 extend: extend, 5909 trim: trim 5910}; 5911 5912 5913/***/ }), 5914
vendor: 5,045 bytes, lines 5915-6131
5915/***/ "./node_modules/csv-string/lib/parser.js": 5916/*!***********************************************!*\ 5917 !*** ./node_modules/csv-string/lib/parser.js ***! 5918 \***********************************************/ 5919/*! no static exports found */ 5920/***/ (function(module, exports, __webpack_require__) { 5921 5922"use strict"; 5923/*jshint node:true,laxcomma:true*/ 5924 5925 5926/* 5927file 5928 : row+ EOF 5929 ; 5930row 5931 : value (Comma value)* (LineBreak | EOF) 5932 ; 5933value 5934 : SimpleValue 5935 | QuotedValue 5936 ; 5937Comma 5938 : ',' 5939 ; 5940LineBreak 5941 : '\r'? '\n' 5942 | '\r' 5943 ; 5944SimpleValue 5945 : ~(',' | '\r' | '\n' | '"')+ 5946 ; 5947QuotedValue 5948 : Residue '"' ('""' | ~'"')* '"' Residue 5949 ; 5950 5951Residue 5952 : (' ' | '\t' | '\f')* 5953*/ 5954 5955function Parser(input, comma, quote) { 5956 if (!(this instanceof Parser)) { 5957 return new Parser(input, comma); 5958 } 5959 this.input = input; 5960 this.pointer = 0; 5961 this.linePointer = 0; 5962 this.comma = ','; 5963 this.quote = '"'; 5964 if (comma && comma[0]) { 5965 this.comma = comma[0]; 5966 } 5967 if (quote && quote[0]) { 5968 this.quote = quote[0]; 5969 } 5970 // Initialize RegExp Object 5971 var chars = ' \f\v\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000'; 5972 if (this.comma !== "\t") { 5973 chars += "\t"; 5974 } 5975 this._residueRegExp = new RegExp('[^' + chars + ']'); 5976 this._simpleValueRegExp = new RegExp('[' + this.comma + '\r\n]'); 5977 this._replaceQuoteRegExp = new RegExp(this.quote + this.quote, 'g'); 5978} 5979 5980Parser.prototype.File = function () { 5981 var files = [], row, eof; 5982 while (1) { 5983 var tempointer = this.pointer; 5984 row = this.Row(); 5985 if (row.length > 0) { 5986 this.linePointer = tempointer; 5987 files.push(row); 5988 } 5989 else { 5990 if (this.linePointer && this.pointer !== this.input.length) { 5991 files.pop(); 5992 this.pointer = this.linePointer; 5993 } 5994 break; 5995 } 5996 eof = this.EOF(); 5997 if (eof) { 5998 if (this.linePointer && this.pointer !== this.input.length) { 5999 files.pop(); 6000 this.pointer = this.linePointer; 6001 } 6002 break; 6003 } 6004 } 6005 return files; 6006}; 6007 6008Parser.prototype.Row = function () { 6009 var value, comma, linebreak, eof, row = []; 6010 while (1) { 6011 value = this.Value(); 6012 if (!value) { 6013 row.push(''); 6014 } 6015 else { 6016 row.push(value); 6017 } 6018 comma = this.Comma(); 6019 if (comma) { 6020 continue; 6021 } 6022 linebreak = this.LineBreak(); 6023 eof = this.EOF(); 6024 if (linebreak || eof) { 6025 return row; 6026 } 6027 else { 6028 row.pop(); 6029 return row; 6030 } 6031 } 6032}; 6033Parser.prototype.Value = function () { 6034 var simplevalue, quotedvalue, residue; 6035 6036 residue = this.Residue(); 6037 quotedvalue = this.QuotedValue(); 6038 if (quotedvalue) { 6039 var value = quotedvalue.slice(1, -1).replace(this._replaceQuoteRegExp, this.quote); 6040 this.Residue(); 6041 return value; 6042 } 6043 simplevalue = this.SimpleValue(); 6044 if (simplevalue && residue) { 6045 return residue + simplevalue; 6046 } 6047 else if (simplevalue && !residue) { 6048 return simplevalue; 6049 } 6050 6051}; 6052Parser.prototype.Comma = function () { 6053 if (this.input.slice(this.pointer, this.pointer + this.comma.length) === this.comma) { 6054 this.pointer += this.comma.length; 6055 return this.comma; 6056 } 6057}; 6058Parser.prototype.LineBreak = function () { 6059 if (this.input.slice(this.pointer, this.pointer + 2) === '\r\n') { 6060 this.pointer += 2; 6061 return '\r\n'; 6062 } 6063 if (this.input.charAt(this.pointer) === '\n') { 6064 this.pointer += 1; 6065 return '\n'; 6066 } 6067 if (this.input.charAt(this.pointer) === '\r') { 6068 this.pointer += 1; 6069 return '\r'; 6070 } 6071}; 6072Parser.prototype.SimpleValue = function () { 6073 var value = '', index = this.input.slice(this.pointer).search(this._simpleValueRegExp); 6074 if (this.input.charAt(this.pointer) === this.quote) { 6075 return; 6076 } 6077 else if (index === -1) { 6078 value = this.input.slice(this.pointer); 6079 } 6080 else if (index === 0) { 6081 return; 6082 } 6083 else { 6084 value = this.input.slice(this.pointer, this.pointer + index); 6085 } 6086 this.pointer += value.length; 6087 return value; 6088}; 6089Parser.prototype.QuotedValue = function () { 6090 if (this.input.charAt(this.pointer) === this.quote) { 6091 var searchIndex, index = 1; 6092 while (1) { 6093 searchIndex = this.input.slice(this.pointer + index).search(this.quote); 6094 if (searchIndex === -1) { 6095 return; 6096 } 6097 if (this.input.charAt(this.pointer + index + searchIndex + 1) === this.quote) { 6098 index += searchIndex + 2; 6099 continue; 6100 } 6101 var value = this.input.slice(this.pointer, this.pointer + index + searchIndex + 1); 6102 this.pointer += value.length; 6103 return value; 6104 } 6105 } 6106}; 6107Parser.prototype.EOF = function () { 6108 return (this.pointer >= this.input.length); 6109}; 6110Parser.prototype.Residue = function () { 6111 var value = ''; 6112 var index = this.input.slice(this.pointer).search(this._residueRegExp); 6113 if (index === -1) { 6114 value = this.input.slice(this.pointer); 6115 } 6116 else if (index === 0) { 6117 return; 6118 } 6119 else { 6120 value = this.input.slice(this.pointer, this.pointer + index); 6121 } 6122 this.pointer += value.length; 6123 return value; 6124}; 6125 6126module.exports = Parser; 6127 6128 6129 6130/***/ }), 6131
vendor: 961 bytes, lines 6132-6163
6132/***/ "./node_modules/is-buffer/index.js": 6133/*!*****************************************!*\ 6134 !*** ./node_modules/is-buffer/index.js ***! 6135 \*****************************************/ 6136/*! no static exports found */ 6137/***/ (function(module, exports) { 6138 6139/*! 6140 * Determine if an object is a Buffer 6141 * 6142 * @author Feross Aboukhadijeh <https://feross.org> 6143 * @license MIT 6144 */ 6145 6146// The _isBuffer check is for Safari 5-7 support, because it's missing 6147// Object.prototype.constructor. Remove this eventually 6148module.exports = function (obj) { 6149 return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) 6150} 6151 6152function isBuffer (obj) { 6153 return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) 6154} 6155 6156// For Node v0.10 support. Remove this eventually. 6157function isSlowBuffer (obj) { 6158 return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) 6159} 6160 6161 6162/***/ }), 6163
vendor: 547 bytes, lines 6164-6174
6164/***/ "./node_modules/lozad/dist/lozad.min.js": 6165/*!******************************************************************************************!*\ 6166 !*** delegated ./node_modules/lozad/dist/lozad.min.js from dll-reference vendor_library ***! 6167 \******************************************************************************************/ 6168/*! no static exports found */ 6169/***/ (function(module, exports, __webpack_require__) { 6170 6171module.exports = (__webpack_require__(/*! dll-reference vendor_library */ "dll-reference vendor_library"))(29); 6172 6173/***/ }), 6174
vendor: 645 bytes, lines 6175-6185
6175/***/ "./node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js": 6176/*!******************************************************************************************************************!*\ 6177 !*** delegated ./node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js from dll-reference vendor_library ***! 6178 \******************************************************************************************************************/ 6179/*! exports provided: default */ 6180/***/ (function(module, exports, __webpack_require__) { 6181 6182module.exports = (__webpack_require__(/*! dll-reference vendor_library */ "dll-reference vendor_library"))(28); 6183 6184/***/ }), 6185
vendor: 535 bytes, lines 6186-6196
6186/***/ "./node_modules/platform/platform.js": 6187/*!***************************************************************************************!*\ 6188 !*** delegated ./node_modules/platform/platform.js from dll-reference vendor_library ***! 6189 \***************************************************************************************/ 6190/*! no static exports found */ 6191/***/ (function(module, exports, __webpack_require__) { 6192 6193module.exports = (__webpack_require__(/*! dll-reference vendor_library */ "dll-reference vendor_library"))(26); 6194 6195/***/ }), 6196
vendor: 527 bytes, lines 6197-6207
6197/***/ "./node_modules/preloader/index.js": 6198/*!*************************************************************************************!*\ 6199 !*** delegated ./node_modules/preloader/index.js from dll-reference vendor_library ***! 6200 \*************************************************************************************/ 6201/*! no static exports found */ 6202/***/ (function(module, exports, __webpack_require__) { 6203 6204module.exports = (__webpack_require__(/*! dll-reference vendor_library */ "dll-reference vendor_library"))(17); 6205 6206/***/ }), 6207
vendor: 527 bytes, lines 6208-6218
6208/***/ "./node_modules/process/browser.js": 6209/*!*************************************************************************************!*\ 6210 !*** delegated ./node_modules/process/browser.js from dll-reference vendor_library ***! 6211 \*************************************************************************************/ 6212/*! no static exports found */ 6213/***/ (function(module, exports, __webpack_require__) { 6214 6215module.exports = (__webpack_require__(/*! dll-reference vendor_library */ "dll-reference vendor_library"))(14); 6216 6217/***/ }), 6218
vendor: 623 bytes, lines 6219-6229
6219/***/ "./node_modules/smooth-scroll/dist/js/smooth-scroll.min.js": 6220/*!*************************************************************************************************************!*\ 6221 !*** delegated ./node_modules/smooth-scroll/dist/js/smooth-scroll.min.js from dll-reference vendor_library ***! 6222 \*************************************************************************************************************/ 6223/*! no static exports found */ 6224/***/ (function(module, exports, __webpack_require__) { 6225 6226module.exports = (__webpack_require__(/*! dll-reference vendor_library */ "dll-reference vendor_library"))(16); 6227 6228/***/ }), 6229
6230/***/ "./src/js/app.js": 6231/*!***********************!*\ 6232 !*** ./src/js/app.js ***! 6233 \***********************/ 6234/*! no exports provided */ 6235/***/ (function(module, __webpack_exports__, __webpack_require__) { 6236 6237"use strict"; 6238__webpack_require__.r(__webpack_exports__); 6239/* harmony import */ var _pages_common_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pages/common/common */ "./src/js/pages/common/common.js"); 6240/* harmony import */ var _pages_home_home__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pages/home/home */ "./src/js/pages/home/home.js"); 6241/* eslint no-unused-vars:off */ 6242 6243// import 'babel-polyfill'; 6244 6245// å ¨ãã¼ã¸å ±éå¦ç 6246 6247// ããããã¼ã¸ 6248 6249// ä½åç´¹ä» 6250// import titleList from './pages/title-list/title-list'; 6251 6252Object(_pages_common_common__WEBPACK_IMPORTED_MODULE_0__["default"])(); 6253Object(_pages_home_home__WEBPACK_IMPORTED_MODULE_1__["default"])(); 6254// titleList(); 6255 6256/***/ }), 6257
6258/***/ "./src/js/pages/common/common.js": 6259/*!***************************************!*\ 6260 !*** ./src/js/pages/common/common.js ***! 6261 \***************************************/ 6262/*! exports provided: default */ 6263/***/ (function(module, __webpack_exports__, __webpack_require__) { 6264 6265"use strict"; 6266__webpack_require__.r(__webpack_exports__); 6267/* harmony import */ var _common_lazyload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common_lazyload */ "./src/js/pages/common/common_lazyload.js"); 6268/* harmony import */ var _common_mediaquery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common_mediaquery */ "./src/js/pages/common/common_mediaquery.js"); 6269/* harmony import */ var _common_check_ua__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./common_check-ua */ "./src/js/pages/common/common_check-ua.js"); 6270/* harmony import */ var _common_pagescroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./common_pagescroll */ "./src/js/pages/common/common_pagescroll.js"); 6271/* harmony import */ var _common_scroll_amount__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./common_scroll-amount */ "./src/js/pages/common/common_scroll-amount.js"); 6272/* harmony import */ var _common_social_share__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./common_social-share */ "./src/js/pages/common/common_social-share.js"); 6273/* harmony import */ var _common_popup__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./common_popup */ "./src/js/pages/common/common_popup.js"); 6274/* harmony import */ var _common_menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./common_menu */ "./src/js/pages/common/common_menu.js"); 6275/* harmony import */ var _common_progress__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./common_progress */ "./src/js/pages/common/common_progress.js"); 6276/* harmony import */ var _common_progress_complete__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./common_progress_complete */ "./src/js/pages/common/common_progress_complete.js"); 6277 6278// å ¨ãã¼ã¸å ±éå¦ç 6279 6280/* eslint no-unused-vars:off */ 6281/* eslint no-console:off */ 6282 6283// ç»åã®é å»¶èªã¿è¾¼ã¿ 6284 6285// ã¡ãã£ã¢ã¯ã¨ãªã¼ç®¡ç 6286 6287// ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãå¤å® 6288 6289// ãã¼ã¸å ã¹ã¯ãã¼ã« 6290 6291// ç»é¢ä½ç½®ã«å¿ãã㦠data 屿§å¤åããã¼ã¸ãããæ»ããã¿ã³ãªã© 6292 6293// ã½ã¼ã·ã£ã«ã·ã§ã¢ãã¿ã³ 6294 6295// ãããã¢ãã 6296 6297// ãªã¼ãã£ãªåçãã¿ã³ 6298// import audio from './common_audio'; 6299// ã¡ã¤ã³ã¡ãã¥ã¼ 6300 6301// ãã¼ã¸èªã¿è¾¼ã¿ 6302 6303// ãã¼ã¸èªã¿è¾¼ã¿å®äº 6304 6305 6306/* harmony default export */ __webpack_exports__["default"] = (function () { 6307 Object(_common_lazyload__WEBPACK_IMPORTED_MODULE_0__["default"])(); 6308 Object(_common_mediaquery__WEBPACK_IMPORTED_MODULE_1__["default"])(); 6309 Object(_common_check_ua__WEBPACK_IMPORTED_MODULE_2__["default"])(); 6310 Object(_common_pagescroll__WEBPACK_IMPORTED_MODULE_3__["default"])(); 6311 Object(_common_scroll_amount__WEBPACK_IMPORTED_MODULE_4__["default"])(); 6312 Object(_common_social_share__WEBPACK_IMPORTED_MODULE_5__["default"])(); 6313 Object(_common_menu__WEBPACK_IMPORTED_MODULE_7__["default"])(); 6314 Object(_common_popup__WEBPACK_IMPORTED_MODULE_6__["default"])(); 6315 // audio(); 6316 Object(_common_progress__WEBPACK_IMPORTED_MODULE_8__["default"])().then(_common_progress_complete__WEBPACK_IMPORTED_MODULE_9__["default"]); 6317}); 6318 6319/***/ }), 6320
6321/***/ "./src/js/pages/common/common_check-ua.js": 6322/*!************************************************!*\ 6323 !*** ./src/js/pages/common/common_check-ua.js ***! 6324 \************************************************/ 6325/*! exports provided: default */ 6326/***/ (function(module, __webpack_exports__, __webpack_require__) { 6327 6328"use strict"; 6329__webpack_require__.r(__webpack_exports__); 6330/* harmony import */ var platform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! platform */ "./node_modules/platform/platform.js"); 6331/* harmony import */ var platform__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(platform__WEBPACK_IMPORTED_MODULE_0__); 6332/** 6333 * ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãç¢ºèª 6334 * OSãè¦ã¦ã¹ããç³»ã ã¨å¤å®ããã <body data-is-mobile="true"> ãè¨å®ãã 6335 * PCã ã¨å¤å®ããã <body data-is-mobile="false"> ãè¨å® 6336 */ 6337 6338 6339 6340/* harmony default export */ __webpack_exports__["default"] = (function () { 6341 var mobile = ['iOS', 'Android']; 6342 var os = platform__WEBPACK_IMPORTED_MODULE_0___default.a.os.family; 6343 6344 if (mobile.indexOf(os) === -1) { 6345 document.body.setAttribute('data-is-mobile', 'false'); 6346 } else { 6347 document.body.setAttribute('data-is-mobile', 'true'); 6348 } 6349}); 6350 6351/***/ }), 6352
6353/***/ "./src/js/pages/common/common_lazyload.js": 6354/*!************************************************!*\ 6355 !*** ./src/js/pages/common/common_lazyload.js ***! 6356 \************************************************/ 6357/*! exports provided: default */ 6358/***/ (function(module, __webpack_exports__, __webpack_require__) { 6359 6360"use strict"; 6361__webpack_require__.r(__webpack_exports__); 6362/* harmony import */ var lozad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lozad */ "./node_modules/lozad/dist/lozad.min.js"); 6363/* harmony import */ var lozad__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lozad__WEBPACK_IMPORTED_MODULE_0__); 6364/** 6365 * ç»åã®é å»¶èªã¿è¾¼ã¿ 6366 * https://qiita.com/kaneU/items/369a9972fd45223677fd 6367 * <img src="dummy.png" data-src="hoge.jpg" class="js-lazy"> 6368 * data-src 屿§ã«é å»¶èªã¿è¾¼ã¿ããããç»åãæå®ããã 6369 * 6370 * data-src : srcã«ã»ããããã 6371 * data-srcset : srcsetã«ã»ããããã 6372 * data-background-image : backgroundImageã«ã»ããããã 6373 * 6374 * IE ã«å¯¾å¿ãããããã« IntersectionObserver ã® polyfill ãå¿ è¦ 6375 * <script src="https://rawgit.com/w3c/IntersectionObserver/master/polyfill/intersection-observer.js"></script> 6376 */ 6377 6378 6379 6380/* harmony default export */ __webpack_exports__["default"] = (function () { 6381 var observer = lozad__WEBPACK_IMPORTED_MODULE_0___default()('.js-lazy'); 6382 observer.observe(); 6383}); 6384 6385/***/ }), 6386
6387/***/ "./src/js/pages/common/common_mediaquery.js": 6388/*!**************************************************!*\ 6389 !*** ./src/js/pages/common/common_mediaquery.js ***! 6390 \**************************************************/ 6391/*! exports provided: default */ 6392/***/ (function(module, __webpack_exports__, __webpack_require__) { 6393 6394"use strict"; 6395__webpack_require__.r(__webpack_exports__); 6396/* harmony import */ var _sygnas_mediaquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @sygnas/mediaquery */ "./node_modules/@sygnas/mediaquery/dist/mediaquery.es.js"); 6397/** 6398 * ã¡ãã£ã¢ã¯ã¨ãªã¼ã管ç 6399 */ 6400 6401 6402 6403/* harmony default export */ __webpack_exports__["default"] = (function () { 6404 _sygnas_mediaquery__WEBPACK_IMPORTED_MODULE_0__["default"].set_media('pc', 'screen and (min-width: 801px)'); 6405 _sygnas_mediaquery__WEBPACK_IMPORTED_MODULE_0__["default"].set_media('sp', 'screen and (max-width: 800px)'); 6406}); 6407 6408/***/ }), 6409
6410/***/ "./src/js/pages/common/common_menu.js": 6411/*!********************************************!*\ 6412 !*** ./src/js/pages/common/common_menu.js ***! 6413 \********************************************/ 6414/*! exports provided: default */ 6415/***/ (function(module, __webpack_exports__, __webpack_require__) { 6416 6417"use strict"; 6418__webpack_require__.r(__webpack_exports__); 6419/** 6420 * ã¡ã¤ã³ã¡ãã¥ã¼ 6421 */ 6422 6423/* harmony default export */ __webpack_exports__["default"] = (function () { 6424 // ã¯ãªãã¯ã§ data-hamburger-open = "true" ã«ãã 6425 var $hamburger = $('.js-hamburger'); 6426 6427 // ãã³ãã¼ã¬ã¼ãã¿ã³ã®ã¯ãªãã¯ã§ã¡ãã¥ã¼ã®éé 6428 $hamburger.on('click', toggle_menu); 6429 6430 // ã¡ãã¥ã¼ã®ãã¿ã³ãæ¼ãã¦ãééãã 6431 // $('.c-mainmenu a.js-pagescroll').on('click', toggle_menu); 6432 6433 // ãµãã¡ãã¥ã¼éé 6434 $('.js-has-submenu').on('click', toggle_submenu); 6435 6436 // ã¡ãã¥ã¼ã®ã¢ã¯ãã£ãç¶æ è¨å® 6437 set_menu_active(); 6438}); 6439 6440/** 6441 * ã¡ãã¥ã¼ãééãã 6442 * @param {Event} ev ã¯ãªãã¯ã¤ãã³ã 6443 */ 6444function toggle_menu(ev) { 6445 // ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ã®åãæ¿ã 6446 var $hamburger = $('.js-hamburger'); 6447 var state = $hamburger.attr('data-hamburger-open'); 6448 var is_open = state === 'true' ? 'false' : 'true'; 6449 $hamburger.attr('data-hamburger-open', is_open); 6450 6451 // ã¹ããç¨ã¡ãã¥ã¼ã®ã¨ãã§ã¯ã 6452 $('.js-sp-menu').attr('data-sp-menu', is_open === 'true' ? 'open' : 'close'); 6453 6454 ev.preventDefault(); 6455} 6456 6457/** 6458 * ãµãã¡ãã¥ã¼ã®éé 6459 * @param {Event} ev ã¯ãªãã¯ã¤ãã³ã 6460 */ 6461function toggle_submenu(ev) { 6462 // ã¡ãã¥ã¼ãã¿ã³ã¨ãå å¼è¦ç´ ã®ãµãã¡ãã¥ã¼ 6463 var $button = $(ev.currentTarget); 6464 var $submenu = $button.next(); 6465 var is_opened = $button.attr('data-submenu-opened') === 'true'; 6466 6467 if (is_opened) { 6468 $button.attr('data-submenu-opened', 'false'); 6469 $submenu.attr('data-submenu-opened', 'false'); 6470 } else { 6471 $button.attr('data-submenu-opened', 'true'); 6472 $submenu.attr('data-submenu-opened', 'true'); 6473 } 6474 ev.preventDefault(); 6475} 6476 6477/** 6478 * ã¡ãã¥ã¼ã®ã¢ã¯ãã£ãç¶æ è¨å® 6479 */ 6480function set_menu_active() { 6481 var now = document.querySelector('body').getAttribute('data-menu-active'); 6482 if (now === 'home') return; 6483 6484 document.querySelector('.c-mainmenu__link[data-menu-item="' + now + '"]').setAttribute('data-is-active', 'true'); 6485} 6486 6487/***/ }), 6488
6489/***/ "./src/js/pages/common/common_pagescroll.js": 6490/*!**************************************************!*\ 6491 !*** ./src/js/pages/common/common_pagescroll.js ***! 6492 \**************************************************/ 6493/*! exports provided: default */ 6494/***/ (function(module, __webpack_exports__, __webpack_require__) { 6495 6496"use strict"; 6497__webpack_require__.r(__webpack_exports__); 6498/* harmony import */ var smooth_scroll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! smooth-scroll */ "./node_modules/smooth-scroll/dist/js/smooth-scroll.min.js"); 6499/* harmony import */ var smooth_scroll__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(smooth_scroll__WEBPACK_IMPORTED_MODULE_0__); 6500/** 6501 * ãã¼ã¸å ã¹ã¯ãã¼ã« 6502 * https://www.npmjs.com/package/smooth-scroll 6503 * <a href="#target" class="js-pagescroll"> 6504 * 6505 * ã¹ã¯ãã¼ã«ãçºçããããã¨ãå¯è½ 6506 * scroll.animateScroll( 6507 * target_y, 6508 * '', 6509 * { 6510 * speed: 1500, 6511 * easing: 'easeInOutCubic' 6512 * } 6513 * ); 6514 * 6515 * ãã£ã³ã»ã«ãå¯è½ 6516 * scroll.cancelScroll(); 6517 * 6518 */ 6519 6520/* eslint no-unused-vars:off */ 6521 6522 6523 6524/* harmony default export */ __webpack_exports__["default"] = (function () { 6525 // æ±ç¨ã¹ã¯ãã¼ã« 6526 var click_scroll = new smooth_scroll__WEBPACK_IMPORTED_MODULE_0___default.a('a.js-pagescroll', { 6527 speed: 500, 6528 offset: 0, 6529 easing: 'easeInOutCubic' 6530 }); 6531 6532 var scroll = new smooth_scroll__WEBPACK_IMPORTED_MODULE_0___default.a(); 6533 6534 // ãã¼ã¸ãããã«ã¹ã¯ãã¼ã« 6535 $('.js-return-up').on('click', function (ev) { 6536 scroll.animateScroll(0, { 6537 speed: 500, 6538 offset: 0, 6539 easing: 'easeInOutCubic' 6540 }); 6541 ev.preventDefault(); 6542 }); 6543}); 6544 6545/***/ }), 6546
6547/***/ "./src/js/pages/common/common_popup.js": 6548/*!*********************************************!*\ 6549 !*** ./src/js/pages/common/common_popup.js ***! 6550 \*********************************************/ 6551/*! exports provided: default */ 6552/***/ (function(module, __webpack_exports__, __webpack_require__) { 6553 6554"use strict"; 6555__webpack_require__.r(__webpack_exports__); 6556/** 6557 * fancybox3 ã使ã£ããããã¢ãã 6558 * http://uzurea.net/explanation-of-fancybox3/ 6559 */ 6560 6561/* harmony default export */ __webpack_exports__["default"] = (function () { 6562 $('[data-fancybox]').fancybox({ 6563 infobar: false, 6564 toolbar: true, 6565 buttons: ['close'], 6566 btnTpl: { 6567 close: '<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><i class="i-arrows-times-1"></i></button>' 6568 } 6569 }); 6570}); 6571 6572/***/ }), 6573
6574/***/ "./src/js/pages/common/common_progress.js": 6575/*!************************************************!*\ 6576 !*** ./src/js/pages/common/common_progress.js ***! 6577 \************************************************/ 6578/*! exports provided: default */ 6579/***/ (function(module, __webpack_exports__, __webpack_require__) { 6580 6581"use strict"; 6582__webpack_require__.r(__webpack_exports__); 6583/* harmony import */ var preloader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preloader */ "./node_modules/preloader/index.js"); 6584/* harmony import */ var preloader__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(preloader__WEBPACK_IMPORTED_MODULE_0__); 6585/** 6586 * ãã¼ã¸èªã¿è¾¼ã¿ããã°ã¬ã¹ãã¼ 6587 */ 6588 6589/* eslint no-unused-vars:off */ 6590 6591 6592 6593/* harmony default export */ __webpack_exports__["default"] = (function () { 6594 var add_urls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; 6595 6596 // ããã°ã¬ã¹ãã¼ã¨ã¬ã¡ã³ã 6597 var $progress_bar = $('.js-fadein-progress'); 6598 // ããªãã¼ãã¼ 6599 var loader = preloader__WEBPACK_IMPORTED_MODULE_0___default()({ xhrImages: false }); 6600 6601 // urlãªã¹ã使 6602 var image_urls = get_image_list(); 6603 var urls = Object.assign(image_urls, add_urls); 6604 6605 // Promiseãè¿ã 6606 return new Promise(function (resolve, reject) { 6607 // ããªãã¼ãã¼ã«ç»é² 6608 urls.forEach(function (url) { 6609 loader.add(url); 6610 }); 6611 6612 // èªã¿è¾¼ã¿ä¸ï¼ãã¼ã¨ã¬ã¡ã³ãã®å¹ èª¿æ´ 6613 loader.on('progress', function (percent, url) { 6614 $progress_bar.css({ width: percent * 100 + '%' }); 6615 }); 6616 6617 // èªã¿è¾¼ã¿å®äº 6618 // èªã¿è¾¼ã¿å®äºéç¥ãããã°ã¬ã¹ã¨ã¬ã¡ã³ããå¹ 100%ã«ãã 6619 loader.on('complete', function () { 6620 $progress_bar.css({ width: '100%' }); 6621 $(window).trigger('page_load_complete'); 6622 resolve(); 6623 }); 6624
6625 // èªã¿è¾¼ã¿éå§ 6626 loader.load(); 6627 }); 6628}); 6629 6630/** 6631 * <img> ããã§ãã¯ãã 6632 * @return urls {Array} URLã®é å 6633 */ 6634function get_image_list() { 6635 var urls = []; 6636 var hns = /^https?:\/\/[^/]+\//.exec(window.location.href); 6637 if (!hns) { 6638 return urls; 6639 } 6640 var hostname = hns[0]; 6641 var images = document.getElementsByTagName('img'); 6642 6643 // <img>ã¿ã°ãå ¨ã¦ãã§ã㯠6644 for (var i = 0; i < images.length; i += 1) { 6645 var src = images[i].src; 6646 // éããã¹ãã®ãã®ã¯å¼¾ã 6647 if (src.indexOf(hostname) === 0) { 6648 urls.push(src); 6649 } 6650 } 6651 return urls; 6652} 6653 6654/***/ }), 6655
6656/***/ "./src/js/pages/common/common_progress_complete.js": 6657/*!*********************************************************!*\ 6658 !*** ./src/js/pages/common/common_progress_complete.js ***! 6659 \*********************************************************/ 6660/*! exports provided: default */ 6661/***/ (function(module, __webpack_exports__, __webpack_require__) { 6662 6663"use strict"; 6664__webpack_require__.r(__webpack_exports__); 6665/* harmony import */ var _common_scroll_invew__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common_scroll-invew */ "./src/js/pages/common/common_scroll-invew.js"); 6666/** 6667 * ãã¼ã¸èªã¿è¾¼ã¿ãçµãã£ãå¾ã®å¦ç 6668 */ 6669 6670// ã¹ã¯ãã¼ã«æ¤ç¥è¡¨ç¤º 6671 6672 6673/* harmony default export */ __webpack_exports__["default"] = (function () { 6674 setTimeout(fadein, 200); 6675 setTimeout(remove_fadein, 1200); 6676 setTimeout(_common_scroll_invew__WEBPACK_IMPORTED_MODULE_0__["default"], 1200); 6677}); 6678 6679/** 6680 * ãã§ã¼ãã¤ã³ããã 6681 */ 6682function fadein() { 6683 $('.js-fadein').attr('data-progress-finish', 'true'); 6684 // ãã§ã¼ãã¤ã³ã¤ãã³ãã®éç¥ 6685 $(window).trigger('page_fadein'); 6686} 6687 6688/** 6689 * ãã§ã¼ãã¤ã³ã¨ã¬ã¡ã³ããåé¤ 6690 */ 6691function remove_fadein() { 6692 $('.js-fadein').remove(); 6693} 6694 6695/***/ }), 6696
6697/***/ "./src/js/pages/common/common_scroll-amount.js": 6698/*!*****************************************************!*\ 6699 !*** ./src/js/pages/common/common_scroll-amount.js ***! 6700 \*****************************************************/ 6701/*! exports provided: default */ 6702/***/ (function(module, __webpack_exports__, __webpack_require__) { 6703 6704"use strict"; 6705__webpack_require__.r(__webpack_exports__); 6706/* harmony import */ var _sygnas_scroll_amount__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @sygnas/scroll-amount */ "./node_modules/@sygnas/scroll-amount/dist/scroll-amount.es.js"); 6707/** 6708 * ç»é¢å ã®ä½ç½®ã«å¿ã㦠data-scroll-amount 屿§ãå¤åããã 6709 * ããã¼ã¸ãããã«æ»ããã¿ã³ãã®è¡¨ç¤ºåãæ¿ããªã© 6710 */ 6711 6712/* eslint no-unused-vars:off */ 6713 6714 6715 6716/* harmony default export */ __webpack_exports__["default"] = (function () { 6717 var scroll_amount = new _sygnas_scroll_amount__WEBPACK_IMPORTED_MODULE_0__["default"]('.js-scroll-amount', { offset_top: 0 }); 6718}); 6719 6720/***/ }), 6721
6722/***/ "./src/js/pages/common/common_scroll-invew.js": 6723/*!****************************************************!*\ 6724 !*** ./src/js/pages/common/common_scroll-invew.js ***! 6725 \****************************************************/ 6726/*! exports provided: default */ 6727/***/ (function(module, __webpack_exports__, __webpack_require__) { 6728 6729"use strict"; 6730__webpack_require__.r(__webpack_exports__); 6731/* harmony import */ var _sygnas_scroll_inview__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @sygnas/scroll-inview */ "./node_modules/@sygnas/scroll-inview/dist/scroll-inview.es.js"); 6732/** 6733 * ã¹ã¯ãã¼ã« in View 6734 * ç»é¢ã«å ¥ã㨠data-inview 屿§ããtrueãã«ãªãã®ã§ã 6735 * css å´ã§ã¨ãã§ã¯ããå¶å¾¡ãã 6736 */ 6737 6738 6739 6740/* harmony default export */ __webpack_exports__["default"] = (function () { 6741 var inview = new _sygnas_scroll_inview__WEBPACK_IMPORTED_MODULE_0__["default"]('.js-inview'); 6742 inview.start(); 6743}); 6744 6745/***/ }), 6746
6747/***/ "./src/js/pages/common/common_social-share.js": 6748/*!****************************************************!*\ 6749 !*** ./src/js/pages/common/common_social-share.js ***! 6750 \****************************************************/ 6751/*! exports provided: default */ 6752/***/ (function(module, __webpack_exports__, __webpack_require__) { 6753 6754"use strict"; 6755__webpack_require__.r(__webpack_exports__); 6756/* harmony import */ var _sygnas_jp_social_share__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @sygnas/jp-social-share */ "./node_modules/@sygnas/jp-social-share/dist/jp-social-share.es.js"); 6757/** 6758 * ã½ã¼ã·ã£ã«ã·ã§ã¢ãã¿ã³ 6759 * https://github.com/sygnas/syg-jp-social-share 6760 */ 6761 6762 6763 6764/* harmony default export */ __webpack_exports__["default"] = (function () { 6765 Object(_sygnas_jp_social_share__WEBPACK_IMPORTED_MODULE_0__["default"])('.js-share-button'); 6766}); 6767 6768/***/ }), 6769
6770/***/ "./src/js/pages/home/home.js": 6771/*!***********************************!*\ 6772 !*** ./src/js/pages/home/home.js ***! 6773 \***********************************/ 6774/*! exports provided: default */ 6775/***/ (function(module, __webpack_exports__, __webpack_require__) { 6776 6777"use strict"; 6778__webpack_require__.r(__webpack_exports__); 6779/* harmony import */ var _home_wordpress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./home_wordpress */ "./src/js/pages/home/home_wordpress.js"); 6780/** 6781 * ããããã¼ã¸ 6782 */ 6783 6784// wordpress æ´æ°æ å ± 6785 6786 6787/* harmony default export */ __webpack_exports__["default"] = (function () { 6788 // ããããã¼ã¸ä»¥å¤ã¯æãã 6789 if ($('#page-home').length <= 0) return; 6790 6791 Object(_home_wordpress__WEBPACK_IMPORTED_MODULE_0__["default"])(); 6792}); 6793 6794/***/ }), 6795
6796/***/ "./src/js/pages/home/home_scrollbar.js": 6797/*!*********************************************!*\ 6798 !*** ./src/js/pages/home/home_scrollbar.js ***! 6799 \*********************************************/ 6800/*! exports provided: default */ 6801/***/ (function(module, __webpack_exports__, __webpack_require__) { 6802 6803"use strict"; 6804__webpack_require__.r(__webpack_exports__); 6805/* harmony import */ var perfect_scrollbar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! perfect-scrollbar */ "./node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js"); 6806/** 6807 * ã«ã¹ã¿ã ã¹ã¯ãã¼ã«ãã¼ 6808 */ 6809 6810/* eslint no-unused-vars:off */ 6811/* eslint no-console:off */ 6812 6813 6814 6815/* harmony default export */ __webpack_exports__["default"] = (function () { 6816 var ps = new perfect_scrollbar__WEBPACK_IMPORTED_MODULE_0__["default"]('.js-scrollbar'); 6817}); 6818 6819/***/ }), 6820
6821/***/ "./src/js/pages/home/home_wordpress.js": 6822/*!*********************************************!*\ 6823 !*** ./src/js/pages/home/home_wordpress.js ***! 6824 \*********************************************/ 6825/*! exports provided: default */ 6826/***/ (function(module, __webpack_exports__, __webpack_require__) { 6827 6828"use strict"; 6829__webpack_require__.r(__webpack_exports__); 6830/* harmony import */ var _sygnas_wp_posts_convert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @sygnas/wp-posts-convert */ "./node_modules/@sygnas/wp-posts-convert/dist/wp-posts-convert.es.js"); 6831/* harmony import */ var _home_scrollbar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./home_scrollbar */ "./src/js/pages/home/home_scrollbar.js"); 6832/** 6833 * wordpress æ´æ°æ å ± 6834 */ 6835 6836/* eslint no-console:off */ 6837 6838 6839// ã«ã¹ã¿ã ã¹ã¯ãã¼ã«ãã¼ 6840 6841 6842/* harmony default export */ __webpack_exports__["default"] = (function () { 6843 var wp_posts = new _sygnas_wp_posts_convert__WEBPACK_IMPORTED_MODULE_0__["default"]({ 6844 target: '.js-wp-posts', 6845 template: document.querySelector('.js-wp-posts-template').textContent 6846 }); 6847 6848 wp_posts.start('http://asagao.localhost:8080/news/newslist').then(function () { 6849 Object(_home_scrollbar__WEBPACK_IMPORTED_MODULE_1__["default"])(); 6850 }); 6851}); 6852 6853/***/ })
6853, 6854 6855/***/ "dll-reference vendor_library": 6856/*!*********************************!*\ 6857 !*** external "vendor_library" ***! 6858 \*********************************/ 6859/*! no static exports found */ 6860/***/ (function(module, exports) { 6861 6862module.exports = vendor_library; 6863 6864/***/ }) 6865 6866/******/ }); 6867//# sourceMappingURL=bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.