Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Use Platform API in Admin Panel
Damian Legawiec22d9163e6e84
diff --git a/.eslintrc b/.eslintrcindex 30f86da6b3..0d96fe0ef1 100644--- a/.eslintrc+++ b/.eslintrc@@ -24,6 +24,8 @@ globals:SPREE_DEFAULT_CURRENCY: trueSPREE_DEFAULT_LOCALE: trueupdate_state: true+ OAUTH_TOKEN: true+ formatSelect2Options: trueenv:browser: truediff --git a/api/app/controllers/spree/api/v2/platform/option_types_controller.rb b/api/app/controllers/spree/api/v2/platform/option_types_controller.rbnew file mode 100644index 0000000000..686a1ea41e--- /dev/null+++ b/api/app/controllers/spree/api/v2/platform/option_types_controller.rb@@ -0,0 +1,15 @@+module Spree+ module Api+ module V2+ module Platform+ class OptionTypesController < ResourceController+ private++ def model_class+ Spree::OptionType+ end+ end+ end+ end+ end+enddiff --git a/api/app/controllers/spree/api/v2/platform/option_values_controller.rb b/api/app/controllers/spree/api/v2/platform/option_values_controller.rbnew file mode 100644index 0000000000..b04fafdf98--- /dev/null+++ b/api/app/controllers/spree/api/v2/platform/option_values_controller.rb@@ -0,0 +1,19 @@+module Spree+ module Api+ module V2+ module Platform+ class OptionValuesController < ResourceController+ private++ def model_class+ Spree::OptionValue+ end++ def scope_includes+ [:option_type]+ end+ end+ end+ end+ end+enddiff --git a/api/app/controllers/spree/api/v2/platform/users_controller.rb b/api/app/controllers/spree/api/v2/platform/users_controller.rbnew file mode 100644index 0000000000..8db84d61a0--- /dev/null+++ b/api/app/controllers/spree/api/v2/platform/users_controller.rb@@ -0,0 +1,23 @@+module Spree+ module Api+ module V2+ module Platform+ class UsersController < ResourceController+ private++ def model_class+ Spree.user_class+ end++ def resource_serializer+ Spree::Api::V2::Platform::UserSerializer+ end++ def scope_includes+ [:ship_address, :bill_address]+ end+ end+ end+ end+ end+enddiff --git a/api/app/serializers/spree/api/v2/platform/option_type_serializer.rb b/api/app/serializers/spree/api/v2/platform/option_type_serializer.rbnew file mode 100644index 0000000000..f320529a03--- /dev/null+++ b/api/app/serializers/spree/api/v2/platform/option_type_serializer.rb@@ -0,0 +1,13 @@+module Spree+ module Api+ module V2+ module Platform+ class OptionTypeSerializer < BaseSerializer+ include ::Spree::Api::V2::ResourceSerializerConcern++ has_many :option_values+ end+ end+ end+ end+enddiff --git a/api/app/serializers/spree/api/v2/platform/option_value_serializer.rb b/api/app/serializers/spree/api/v2/platform/option_value_serializer.rbnew file mode 100644index 0000000000..592c31759b--- /dev/null+++ b/api/app/serializers/spree/api/v2/platform/option_value_serializer.rb@@ -0,0 +1,11 @@+module Spree+ module Api+ module V2+ module Platform+ class OptionValueSerializer < BaseSerializer+ include ::Spree::Api::V2::ResourceSerializerConcern+ end+ end+ end+ end+enddiff --git a/api/config/routes.rb b/api/config/routes.rbindex f14e3bf85b..3ee9862068 100644--- a/api/config/routes.rb+++ b/api/config/routes.rb@@ -164,6 +164,97 @@ Spree::Core::Engine.add_routes doresources :taxons, only: %i[index show], id: /.+/get '/stores/:code', to: 'stores#show', as: :storeend++ namespace :platform do+ # Promotions API+ resources :promotions++ # Returns API+ resources :customer_returns+ resources :reimbursements+ resources :return_authorizations do+ member do+ put :add+ put :cancel+ put :receive+ end+ end++ # Product Catalog API+ resources :products+ resources :images+ resources :variants+ resources :properties+ resources :product_properties+ resources :taxonomies do+ member do+ get :jstree+ end+ end+ resources :taxons do+ member do+ get :jstree+ end+ end+ resources :option_types+ resources :option_values++ # Order API+ resources :orders do+ member do+ put :next+ put :advance+ put :approve+ put :cancel+ put :empty+ put :apply_coupon_code+ put :remove_coupon_code+ end+ end+ resources :line_items+ resources :payments do+ member do+ put :authorize+ put :capture+ put :purchase+ put :void+ put :credit+ end+ end++ # Geo API+ resources :zones+ resources :countries+ resources :states++ # Shipment API+ resources :shipments do+ collection do+ post 'transfer_to_location'+ post 'transfer_to_shipment'+ end+ member do+ put :ready+ put :ship+ put :add+ put :remove+ end+ end++ # Inventory API+ resources :inventory_units+ resources :stock_items+ resources :stock_locations+ resources :stock_movements++ # User API+ resources :users+ resources :credit_cards+ resources :addresses++ # Store API+ resources :stores+ endendget '/404', to: 'errors#render_404'diff --git a/backend/app/assets/javascripts/spree/backend.js b/backend/app/assets/javascripts/spree/backend.jsindex e24cab1d02..bd2ad69be2 100644--- a/backend/app/assets/javascripts/spree/backend.js+++ b/backend/app/assets/javascripts/spree/backend.js@@ -14,6 +14,7 @@//= require select2-full//= require sweetalert2//= require underscore-min.js+//= require jsonapi-serializer.min//= require spree/backend/global/alerts//= require spree/backend/global/bootstrap@@ -76,7 +77,6 @@ Spree.routes.stock_locations_api = Spree.pathFor('api/v1/stock_locations')Spree.routes.taxon_products_api = Spree.pathFor('api/v1/taxons/products')Spree.routes.taxons_api = Spree.pathFor('api/v1/taxons')Spree.routes.users_api = Spree.pathFor('api/v1/users')-Spree.routes.tags_api = Spree.pathFor('api/v1/tags')Spree.routes.variants_api = Spree.pathFor('api/v1/variants')Spree.routes.edit_product = function (productId) {@@ -90,3 +90,18 @@ Spree.routes.payments_api = function (orderId) {Spree.routes.stock_items_api = function (stockLocationId) {return Spree.pathFor('api/v1/stock_locations/' + stockLocationId + '/stock_items')}++// API v2++Spree.routes.countries_api_v2 = Spree.pathFor('api/v2/platform/countries')++Spree.routes.option_types_api_v2 = Spree.pathFor('api/v2/platform/option_types')+Spree.routes.option_values_api_v2 = Spree.pathFor('api/v2/platform/option_values')++Spree.routes.users_api_v2 = Spree.pathFor('api/v2/platform/users')++Spree.apiV2Authentication = function() {+ return {+ 'Authorization': 'Bearer ' + OAUTH_TOKEN+ }+}diff --git a/backend/app/assets/javascripts/spree/backend/address_states.js b/backend/app/assets/javascripts/spree/backend/address_states.jsindex 60f7009c20..40a4bb2fbb 100644--- a/backend/app/assets/javascripts/spree/backend/address_states.js+++ b/backend/app/assets/javascripts/spree/backend/address_states.js@@ -7,38 +7,41 @@ function update_state(region, done) {var stateSelect = $('#' + region + 'state select')var stateInput = $('#' + region + 'state input.state_name')- $.get(Spree.routes.states_search + '?country_id=' + countryId, function (data) {- var states = data.states- var statesRequired = data.states_required- if (states.length > 0) {- stateSelect.html('')- var statesWithBlank = [{- name: '',- id: ''- }].concat(states)- $.each(statesWithBlank, function (_pos, state) {- var opt = $(document.createElement('option'))- .prop('value', state.id)- .html(state.name)- stateSelect.append(opt).trigger('change')- })- stateSelect.prop('disabled', false).show()- stateSelect.select2()- stateInput.hide().prop('disabled', true)- stateContainer.show()- } else {- stateSelect.val(null).trigger('change')- if (stateSelect.data('select2')) {- stateSelect.select2('destroy')- }- stateSelect.hide()- if (statesRequired) {- stateInput.prop('disabled', false).show()- } else {- stateContainer.hide()- }+ fetch(Spree.routes.countries_api_v2 + '/' + countryId + '?include=states', {+ headers: Spree.apiV2Authentication()+ }).then(function (response) {+ switch (response.status) {+ case 200:+ response.json().then(function (json) {+ var states = json.included+ var statesRequired = json.data.attributes.states_required+ if (states.length > 0) {+ stateSelect.html('')+ $.each(states, function (_pos, state) {+ var opt = $(document.createElement('option'))+ .prop('value', state.id)+ .html(state.attributes.name)+ stateSelect.append(opt).trigger('change')+ })+ stateSelect.prop('disabled', false).show()+ stateSelect.select2()+ stateInput.hide().prop('disabled', true)+ stateContainer.show()+ } else {+ stateSelect.val(null).trigger('change')+ if (stateSelect.data('select2')) {+ stateSelect.select2('destroy')+ }+ stateSelect.hide()+ if (statesRequired) {+ stateInput.prop('disabled', false).show()+ } else {+ stateContainer.hide()+ }+ }+ if (done) done()+ })+ break}-- if (done) done()})-};+}diff --git a/backend/app/assets/javascripts/spree/backend/checkouts/edit.js b/backend/app/assets/javascripts/spree/backend/checkouts/edit.jsindex 019ba51596..d0dd63983b 100644--- a/backend/app/assets/javascripts/spree/backend/checkouts/edit.js+++ b/backend/app/assets/javascripts/spree/backend/checkouts/edit.js@@ -28,13 +28,15 @@ function formatCustomerAddress(address, kind) {$('#order_' + kind + '_address_attributes_zipcode').val(address.zipcode)$('#order_' + kind + '_address_attributes_phone').val(address.phone)$('#order_' + kind + '_address_attributes_phone').val(address.phone)- $('#order_' + kind + '_address_attributes_country_id').val(address.country_id)+ $('#order_' + kind + '_address_attributes_country_id').val(address.country.id)$('#order_' + kind + '_address_attributes_country_id').trigger('change')var stateSelect = $('#order_' + kind + '_address_attributes_state_id')update_state(kind.charAt(0), function() {- stateSelect.val(address.state_id).trigger('change')+ if (address.state) {+ stateSelect.val(address.state.id).trigger('change')+ }})}@@ -64,27 +66,36 @@ function formatCustomerSelection(customer) {}$.fn.customerAutocomplete = function() {+ var jsonApiUsers = {}+this.select2({minimumInputLength: 3,placeholder: Spree.translations.choose_a_customer,ajax: {- url: Spree.routes.users_api,+ url: Spree.routes.users_api_v2,datatype: 'json',+ headers: Spree.apiV2Authentication(),data: function (params) {return {- q: {+ filter: {'m': 'or',- email_start: params.term,+ email_i_cont: params.term,ship_address_firstname_start: params.term,ship_address_lastname_start: params.term,bill_address_firstname_start: params.term,bill_address_lastname_start: params.term},- token: Spree.api_key+ include: 'ship_address.country,ship_address.state,bill_address.country,bill_address.state'}},- processResults: function (data) {- return { results: data.users }+ success: function(data) {+ var JSONAPIDeserializer = require('jsonapi-serializer').Deserializer+ new JSONAPIDeserializer({ keyForAttribute: 'snake_case' }).deserialize(data, function (_err, users) {+ jsonApiUsers = users+ })+ },+ processResults: function (_data) {+ return { results: jsonApiUsers } // we need to return deserialized json api data}},templateResult: formatCustomerResultdiff --git a/backend/app/assets/javascripts/spree/backend/option_type_autocomplete.js b/backend/app/assets/javascripts/spree/backend/option_type_autocomplete.jsindex 098126a837..3b4345a068 100644--- a/backend/app/assets/javascripts/spree/backend/option_type_autocomplete.js+++ b/backend/app/assets/javascripts/spree/backend/option_type_autocomplete.js@@ -5,29 +5,19 @@ $.fn.optionTypeAutocomplete = function () {minimumInputLength: 2,multiple: true,ajax: {- url: Spree.routes.option_types_api,+ url: Spree.routes.option_types_api_v2,datatype: 'json',+ headers: Spree.apiV2Authentication(),data: function (params) {- var query = {- q: {- name_cont: params.term- },- token: Spree.api_key+ return {+ filter: {+ name_i_cont: params.term+ }}-- return query},processResults: function (data) {- return {- results: data- }+ return formatSelect2Options(data)}- },- templateResult: function (optionType) {- return optionType.name- },- templateSelection: function (optionType) {- return optionType.text}})}diff --git a/backend/app/assets/javascripts/spree/backend/option_value_picker.js b/backend/app/assets/javascripts/spree/backend/option_value_picker.jsindex f44298efad..d41d280688 100644--- a/backend/app/assets/javascripts/spree/backend/option_value_picker.js+++ b/backend/app/assets/javascripts/spree/backend/option_value_picker.js@@ -9,26 +9,20 @@ $.fn.optionValueAutocomplete = function (options) {var values = options.valuesvar clearSelection = options.clearSelection- function formatOptionValueList(values) {- return values.map(function(obj) {- return { id: obj.id, text: obj.name }- })- }-function addOptions(select, productId, values) {$.ajax({type: 'GET',- url: Spree.routes.option_values_api,+ url: Spree.routes.option_values_api_v2,+ headers: Spree.apiV2Authentication(),dataType: 'json',data: {- token: Spree.api_key,- q: {+ filter: {id_in: values,variants_product_id_eq: productId}}}).then(function (data) {- select.addSelect2Options(data)+ select.addSelect2Options(data.data)})}@@ -36,27 +30,21 @@ $.fn.optionValueAutocomplete = function (options) {multiple: multiple,minimumInputLength: 1,ajax: {- url: Spree.routes.option_values_api,+ url: Spree.routes.option_values_api_v2,dataType: 'json',+ headers: Spree.apiV2Authentication(),data: function (params) {var selectedProductId = typeof (productSelect) !== 'undefined' ? productSelect.val() : null- var query = {- q: {+ return {+ filter: {name_cont: params.term,variants_product_id_eq: selectedProductId- },- token: Spree.api_key+ }}-- return query;},processResults: function(data) {- var results = formatOptionValueList(data)-- return {- results: results- }+ return formatSelect2Options(data)}}})diff --git a/backend/app/assets/javascripts/spree/backend/spree-select2.js b/backend/app/assets/javascripts/spree/backend/spree-select2.jsindex b77e1f709c..b40ae9b27f 100644--- a/backend/app/assets/javascripts/spree/backend/spree-select2.js+++ b/backend/app/assets/javascripts/spree/backend/spree-select2.js@@ -16,7 +16,14 @@ $.fn.addSelect2Options = function (data) {var select = thisfunction appendOption(select, data) {- var option = new Option(data.name, data.id, true, true)+ var option = null;+ if (data.attributes) {+ // API v2+ option = new Option(data.attributes.name, data.id, true, true)+ } else {+ // API v1+ option = new Option(data.name, data.id, true, true)+ }select.append(option).trigger('change')}@@ -38,3 +45,14 @@ $.fn.addSelect2Options = function (data) {$.fn.select2.defaults.set('width', 'style')$.fn.select2.defaults.set('dropdownAutoWidth', false)$.fn.select2.defaults.set('theme', 'bootstrap4')++function formatSelect2Options(data) {+ var results = data.data.map(function (obj) {+ return {+ id: obj.id,+ text: obj.attributes.name+ }+ })++ return { results: results }+}diff --git a/backend/app/assets/javascripts/spree/backend/user_picker.js b/backend/app/assets/javascripts/spree/backend/user_picker.jsindex 8279058387..106fd7bfa2 100644--- a/backend/app/assets/javascripts/spree/backend/user_picker.js+++ b/backend/app/assets/javascripts/spree/backend/user_picker.js@@ -5,7 +5,7 @@ $.fn.userAutocomplete = function () {return values.map(function (obj) {return {id: obj.id,- text: obj.email+ text: obj.attributes.email}})}@@ -14,24 +14,21 @@ $.fn.userAutocomplete = function () {multiple: true,minimumInputLength: 1,ajax: {- url: Spree.routes.users_api,+ url: Spree.routes.users_api_v2,dataType: 'json',+ headers: Spree.apiV2Authentication(),data: function (params) {return {- q: {- email_start: params.term- },- token: Spree.api_key+ filter: {+ email_i_cont: params.term+ }}},processResults: function(data) {return {- results: formatUserList(data.users)+ results: formatUserList(data.data)}}- },- templateSelection: function (data) {- return data.text}})}diff --git a/backend/app/controllers/spree/admin/base_controller.rb b/backend/app/controllers/spree/admin/base_controller.rbindex cec79a5c9d..6d2c9bfe8a 100644--- a/backend/app/controllers/spree/admin/base_controller.rb+++ b/backend/app/controllers/spree/admin/base_controller.rb@@ -58,7 +58,7 @@ module Spreedef admin_oauth_application@admin_oauth_application ||= begin- Doorkeeper::Application.find_or_create_by!(name: 'Admin Panel', scopes: 'admin write read', redirect_uri: '')+ Doorkeeper::Application.find_or_create_by!(name: 'Admin Panel', scopes: 'admin', redirect_uri: '')endenddiff --git a/backend/app/views/spree/admin/orders/customer_details/_autocomplete.js.erb b/backend/app/views/spree/admin/orders/customer_details/_autocomplete.js.erbindex 21945c29b5..683fc72172 100644--- a/backend/app/views/spree/admin/orders/customer_details/_autocomplete.js.erb+++ b/backend/app/views/spree/admin/orders/customer_details/_autocomplete.js.erb@@ -13,7 +13,7 @@{{bill_address.firstname}} {{bill_address.lastname}}<br>{{bill_address.address1}}, {{bill_address.address2}}<br>{{bill_address.city}}<br>- {{#if bill_address.state_id }}+ {{#if bill_address.state }}{{bill_address.state.name}}{{else}}{{bill_address.state_name}}@@ -28,7 +28,7 @@{{ship_address.firstname}} {{ship_address.lastname}}<br>{{ship_address.address1}}, {{ship_address.address2}}<br>{{ship_address.city}}<br>- {{#if ship_address.state_id }}+ {{#if ship_address.state }}{{ship_address.state.name}}{{else}}{{ship_address.state_name}}diff --git a/backend/vendor/assets/javascripts/jsonapi-serializer.min.js b/backend/vendor/assets/javascripts/jsonapi-serializer.min.jsnew file mode 100644index 0000000000..7ffcbd64cd--- /dev/null+++ b/backend/vendor/assets/javascripts/jsonapi-serializer.min.js@@ -0,0 +1,8 @@+/*!+ * JSON API Serializer 3.6.7+ * https://github.com/SeyZ/jsonapi-serializer+ *+ * Copyright (c) 2015 Sandro Munda+ * Released under the MIT license+ */+require=function(){return function e(t,r,n){function i(o,s){if(!r[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[o]={exports:{}};t[o][0].call(l.exports,function(e){return i(t[o][1][e]||e)},l,l.exports,e,t,r,n)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}}()({1:[function(e,t,r){"use strict";var n=e("lodash/isPlainObject"),i=e("lodash/isFunction"),a=e("lodash/find"),o=e("lodash/extend"),s=e("lodash/transform"),u=e("./inflector");t.exports=function(e,t,r){function c(e){return Array.isArray(e)||n(e)}function l(e){return n(e)?s(e,function(e,t,r){c(t)?e[l(r)]=l(t):e[l(r)]=t}):Array.isArray(e)?e.map(function(e){return c(e)?l(e):e}):i(r.keyForAttribute)?r.keyForAttribute(e):u.caserize(e,r)}function f(e){var t=l(e.attributes||{});return"id"in e&&(t[r.id||"id"]=e.id),r.typeAsAttribute&&"type"in e&&(t.type=e.type),"meta"in e&&(t.meta=l(e.meta||{})),t}function p(e,t){if(e.relationships){var r={};return Promise.all(Object.keys(e.relationships).map(function(n){var i=e.relationships[n];if(null!==i.data)return Array.isArray(i.data)?Promise.all(i.data.map(function(e){return _(e,t)})).then(function(e){e&&(r[l(n)]=e)}):_(i.data,t).then(function(e){e&&(r[l(n)]=e)});r[l(n)]=null})).then(function(){return r})}}function _(t,n){return function(t,r){return new Promise(function(n){e.included&&t||n(null);var i=a(e.included,{id:t.id,type:t.type});return i?r.indexOf(i.type)>-1?Promise.all([f(i)]).then(function(e){var t=e[0],r=e[1];n(o(t,r))}):Promise.all([f(i),p(i,r+":"+i.type+i.id)]).then(function(e){var t=e[0],r=e[1];n(o(t,r))}):n(null)})}(t,n).then(function(e){var n=function(e,t){return r&&e&&r[e.type]?(0,r[e.type].valueForRelationship)(e,t):t}(t,e);return n&&i(n.then)?n.then(function(e){return e}):n})}this.perform=function(){return Promise.all([f(t),p(t,t.type+t.id)]).then(function(t){var n=t[0],i=t[1],a=o(n,i);return e.links&&(a.links=e.links),r&&r.transform&&(a=r.transform(a)),a})}}},{"./inflector":5,"lodash/extend":158,"lodash/find":159,"lodash/isFunction":171,"lodash/isPlainObject":176,"lodash/transform":195}],2:[function(e,t,r){"use strict";var n=e("lodash/isFunction"),i=e("./deserializer-utils");t.exports=function(e){e||(e={}),this.deserialize=function(t,r){return Array.isArray(t.data)?Promise.all(t.data.map(function(r){return new i(t,r,e).perform()})).then(function(e){return n(r)&&r(null,e),e}):new i(t,t.data,e).perform().then(function(e){return n(r)&&r(null,e),e})}}},{"./deserializer-utils":1,"lodash/isFunction":171}],3:[function(e,t,r){"use strict";t.exports=function(e){var t={errors:[]};return e.forEach(function(e){var r={};e.id&&(r.id=e.id),e.status&&(r.status=e.status),e.code&&(r.code=e.code),e.title&&(r.title=e.title),e.detail&&(r.detail=e.detail),e.source&&(r.source={},e.source.pointer&&(r.source.pointer=e.source.pointer),e.source.parameter&&(r.source.parameter=e.source.parameter)),e.links&&(r.links={about:e.links.about}),e.meta&&(r.meta=e.meta),t.errors.push(r)}),t}},{}],4:[function(e,t,r){"use strict";var n=e("./error-utils");t.exports=function(e){return e||(e=[]),Array.isArray(e)?new n(e):new n([e])}},{"./error-utils":3}],5:[function(e,t,r){"use strict";var n=e("inflected");t.exports={caserize:function(e,t){switch(e=n.underscore(e),t.keyForAttribute){case"dash-case":case"lisp-case":case"spinal-case":case"kebab-case":return n.dasherize(e);case"underscore_case":case"snake_case":return e;case"CamelCase":return n.camelize(e);case"camelCase":return n.camelize(e,!1);default:return n.dasherize(e)}},pluralize:function(e){return n.pluralize(e)}}},{inflected:8}],6:[function(e,t,r){"use strict";var n=e("lodash/isPlainObject"),i=e("lodash/isFunction"),a=e("lodash/find"),o=e("lodash/merge"),s=e("lodash/identity"),u=e("lodash/transform"),c=e("lodash/mapValues"),l=e("lodash/mapKeys"),f=e("lodash/pick"),p=e("lodash/pickBy"),_=(e("lodash/keys"),e("lodash/each")),h=e("lodash/isNil"),y=e("./inflector");t.exports=function(e,t,r,v){function b(e){return Array.isArray(e)||n(e)}function d(e){return n(e)?u(e,function(e,t,r){b(t)?e[d(r)]=d(t):e[d(r)]=t}):Array.isArray(e)?e.map(function(e){return b(e)?d(e):e}):i(v.keyForAttribute)?v.keyForAttribute(e):y.caserize(e,v)}function g(){return v.id||"id"}function x(e,t){var r;return t=t||{},i(v.typeForAttribute)&&(r=v.typeForAttribute(e,t)),void 0!==v.pluralizeType&&!v.pluralizeType||void 0!==r||(r=y.pluralize(e)),void 0===r&&(r=e),r}function m(e,r,n){return c(r,function(r){return i(r)?r(t,e,n):r})}function A(e,r){return i(r)?r(t):c(r,function(r){return i(r)?r(t,e):r})}function j(e,t){return l(f(e,t),function(e,t){return d(t)})}function O(e,t){var n,i=(n=t,a(r.included,{id:n.id,type:n.type}));i?(i.relationships=o(i.relationships,p(t.relationships,s)),i.attributes=o(i.attributes,p(t.attributes,s))):(e.included||(e.included=[]),e.included.push(t))}this.serialize=function(e,t,r,i){var a=this,o=null;if(i&&i.ref){if(e.relationships||(e.relationships={}),o=Array.isArray(t[r])?t[r].map(function(e){return a.serializeRef(e,t,r,i)}):a.serializeRef(t[r],t,r,i),e.relationships[d(r)]={},i.ignoreRelationshipData||(e.relationships[d(r)].data=o),i.relationshipLinks){var s=m(t[r],i.relationshipLinks,e);s.related&&(e.relationships[d(r)].links=s)}i.relationshipMeta&&(e.relationships[d(r)].meta=A(t[r],i.relationshipMeta))}else Array.isArray(t[r])?(o=t[r].length&&n(t[r][0])?t[r].map(function(e){return a.serializeNested(e,t,r,i)}):t[r],e.attributes[d(r)]=o):n(t[r])?(o=a.serializeNested(t[r],t,r,i),e.attributes[d(r)]=o):e.attributes[d(r)]=t[r]},this.serializeRef=function(e,t,n,a){var o=this,s=function(e,t,r){if(i(r.ref))return r.ref(e,t);if(!0===r.ref){if(Array.isArray(t))return t.map(function(e){return String(e)});if(t)return String(t)}else if(t&&t[r.ref])return String(t[r.ref])}(t,e,a),u=x(n,e),c=[],l=[];a.attributes&&(e&&a.attributes.forEach(function(t){a[t]&&!e[t]&&a[t].nullIfMissing&&(e[t]=null)}),c=a.attributes.filter(function(e){return a[e]}),l=a.attributes.filter(function(e){return!a[e]}));var f={type:u,id:s};return l&&(f.attributes=j(e,l)),c.forEach(function(t){e&&(b(e[t])||null===e[t])&&o.serialize(f,e,t,a[t])}),l.length&&(void 0===a.included||a.included)&&(a.includedLinks&&(f.links=m(e,a.includedLinks)),void 0!==s&&O(r,f)),void 0!==s?{type:u,id:s}:null},this.serializeNested=function(e,t,r,n){var i=this,a=[],o=[],s={};return n&&n.attributes?(a=n.attributes.filter(function(e){return n[e]}),(o=n.attributes.filter(function(e){return!n[e]}))&&(s.attributes=j(e,o)),a.forEach(function(t){b(e[t])&&i.serialize(s,e,t,n[t])})):s.attributes=e,s.attributes},this.perform=function(){var r=this;if(null===t)return null;v&&v.transform&&(t=v.transform(t));var n={type:x(e,t)};return h(t[g()])||(n.id=String(t[g()])),v.dataLinks&&(n.links=m(t,v.dataLinks)),v.dataMeta&&(n.meta=A(t,v.dataMeta)),_(v.attributes,function(e){var i=e.split(":");if(v[e]&&!t[e]&&v[e].nullIfMissing&&(t[e]=null),i[0]in t){n.attributes||(n.attributes={});var a=e;i.length>1&&(e=i[0],a=i[1]),r.serialize(n,t,e,v[a])}}),n}}},{"./inflector":5,"lodash/each":156,"lodash/find":159,"lodash/identity":165,"lodash/isFunction":171,"lodash/isNil":173,"lodash/isPlainObject":176,"lodash/keys":179,"lodash/mapKeys":181,"lodash/mapValues":182,"lodash/merge":184,"lodash/pick":185,"lodash/pickBy":186,"lodash/transform":195}],7:[function(e,t,r){"use strict";var n=e("lodash/isFunction"),i=e("lodash/mapValues"),a=e("./serializer-utils");t.exports=function(e,t,r){if(this.serialize=function(e){var t,r=this,o={};return r.opts.topLevelLinks&&(o.links=(t=r.opts.topLevelLinks,i(t,function(t){return n(t)?t(e):t}))),r.opts.meta&&(o.meta=i(r.opts.meta,function(t){return n(t)?t(e):t})),Array.isArray(e)?(o.data=[],e.forEach(function(e){var t=new a(r.collectionName,e,o,r.opts);o.data.push(t.perform())}),o):(o.data=new a(r.collectionName,e,o,r.opts).perform(e),o)},3===arguments.length)return this.collectionName=e,this.opts=r,this.serialize(t);this.collectionName=e,this.opts=t}},{"./serializer-utils":6,"lodash/isFunction":171,"lodash/mapValues":182}],8:[function(e,t,r){"use strict";t.exports=e("./lib/Inflector")},{"./lib/Inflector":10}],9:[function(e,t,r){(function(r,n){"use strict";var i=e("./hasProp"),a=e("./remove"),o=e("./icPart");function s(){this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[],this.acronyms={},this.acronymRegex=/(?=a)b/}s.getInstance=function(e){var t=void 0!==r?r:n;return t.__Inflector_Inflections=t.__Inflector_Inflections||{},t.__Inflector_Inflections[e]=t.__Inflector_Inflections[e]||new s,t.__Inflector_Inflections[e]},s.prototype.acronym=function(e){this.acronyms[e.toLowerCase()]=e;var t=[];for(var r in this.acronyms)i(this.acronyms,r)&&t.push(this.acronyms[r]);this.acronymRegex=new RegExp(t.join("|"))},s.prototype.plural=function(e,t){"string"==typeof e&&a(this.uncountables,e),a(this.uncountables,t),this.plurals.unshift([e,t])},s.prototype.singular=function(e,t){"string"==typeof e&&a(this.uncountables,e),a(this.uncountables,t),this.singulars.unshift([e,t])},s.prototype.irregular=function(e,t){a(this.uncountables,e),a(this.uncountables,t);var r=e[0],n=e.substr(1),i=t[0],s=t.substr(1);if(r.toUpperCase()===i.toUpperCase())this.plural(new RegExp("("+r+")"+n+"$","i"),"$1"+s),this.plural(new RegExp("("+i+")"+s+"$","i"),"$1"+s),this.singular(new RegExp("("+r+")"+n+"$","i"),"$1"+n),this.singular(new RegExp("("+i+")"+s+"$","i"),"$1"+n);else{var u=o(n),c=o(s);this.plural(new RegExp(r.toUpperCase()+u+"$"),i.toUpperCase()+s),this.plural(new RegExp(r.toLowerCase()+u+"$"),i.toLowerCase()+s),this.plural(new RegExp(i.toUpperCase()+c+"$"),i.toUpperCase()+s),this.plural(new RegExp(i.toLowerCase()+c+"$"),i.toLowerCase()+s),this.singular(new RegExp(r.toUpperCase()+u+"$"),r.toUpperCase()+n),this.singular(new RegExp(r.toLowerCase()+u+"$"),r.toLowerCase()+n),this.singular(new RegExp(i.toUpperCase()+c+"$"),r.toUpperCase()+n),this.singular(new RegExp(i.toLowerCase()+c+"$"),r.toLowerCase()+n)}},s.prototype.uncountable=function(){var e=Array.prototype.slice.call(arguments,0);this.uncountables=this.uncountables.concat(e)},s.prototype.human=function(e,t){this.humans.unshift([e,t])},s.prototype.clear=function(e){"all"===(e=e||"all")?(this.plurals=[],this.singulars=[],this.uncountables=[],this.humans=[]):this[e]=[]},t.exports=s}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./hasProp":14,"./icPart":15,"./remove":17,_process:196}],10:[function(e,t,r){"use strict";var n=e("./Inflections"),i=e("./Transliterator"),a=e("./Methods"),o=e("./defaults"),s=e("./isFunc"),u=a;for(var c in u.inflections=function(e,t){if(s(e)&&(t=e,e=null),e=e||"en",!t)return n.getInstance(e);t(n.getInstance(e))},u.transliterations=function(e,t){if(s(e)&&(t=e,e=null),e=e||"en",!t)return i.getInstance(e);t(i.getInstance(e))},o)u.inflections(c,o[c]);t.exports=u},{"./Inflections":9,"./Methods":11,"./Transliterator":12,"./defaults":13,"./isFunc":16}],11:[function(e,t,r){"use strict";var n={pluralize:function(e,t){return t=t||"en",this._applyInflections(e,this.inflections(t).plurals)},singularize:function(e,t){return t=t||"en",this._applyInflections(e,this.inflections(t).singulars)},camelize:function(e,t){null==t&&(t=!0);var r=""+e,n=this;return r=(r=t?r.replace(/^[a-z\d]*/,function(e){return n.inflections().acronyms[e]||n.capitalize(e)}):r.replace(new RegExp("^(?:"+this.inflections().acronymRegex.source+"(?=\\b|[A-Z_])|\\w)"),function(e){return e.toLowerCase()})).replace(/(?:_|(\/))([a-z\d]*)/gi,function(e,t,r,i,a){return t||(t=""),""+t+(n.inflections().acronyms[r]||n.capitalize(r))})},underscore:function(e){var t=""+e;return(t=(t=(t=(t=t.replace(new RegExp("(?:([A-Za-z\\d])|^)("+this.inflections().acronymRegex.source+")(?=\\b|[^a-z])","g"),function(e,t,r){return(t||"")+(t?"_":"")+r.toLowerCase()})).replace(/([A-Z\d]+)([A-Z][a-z])/g,"$1_$2")).replace(/([a-z\d])([A-Z])/g,"$1_$2")).replace(/-/g,"_")).toLowerCase()},humanize:function(e,t){var r,n,i,a=""+e,o=this.inflections().humans,s=this;null!==(t=t||{}).capitalize&&void 0!==t.capitalize||(t.capitalize=!0);for(var u=0,c=o.length;u<c;u++)if(n=(r=o[u])[0],i=r[1],n.test&&n.test(a)||a.indexOf(n)>-1){a=a.replace(n,i);break}return a=(a=(a=a.replace(/_id$/,"")).replace(/_/g," ")).replace(/([a-z\d]*)/gi,function(e){return s.inflections().acronyms[e]||e.toLowerCase()}),t.capitalize&&(a=a.replace(/^\w/,function(e){return e.toUpperCase()})),a},capitalize:function(e){var t=null==e?"":String(e);return t.charAt(0).toUpperCase()+t.slice(1)},titleize:function(e){return this.humanize(this.underscore(e)).replace(/(^|[\s¿\/]+)([a-z])/g,function(e,t,r,n,i){return e.replace(r,r.toUpperCase())})},tableize:function(e){return this.pluralize(this.underscore(e))},classify:function(e){return this.camelize(this.singularize(e.replace(/.*\./g,"")))},dasherize:function(e){return e.replace(/_/g,"-")},foreignKey:function(e,t){return null==t&&(t=!0),this.underscore(e)+(t?"_id":"id")},ordinal:function(e){var t=Math.abs(Number(e)),r=t%100;if(11===r||12===r||13===r)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},ordinalize:function(e){return""+e+this.ordinal(e)},transliterate:function(e,t){var r=(t=t||{}).locale||"en",n=t.replacement||"?";return this.transliterations(r).transliterate(e,n)},parameterize:function(e,t){void 0===(t=t||{}).separator&&(t.separator="-"),null===t.separator&&(t.separator="");var r=this.transliterate(e,t);if(r=r.replace(/[^a-z0-9\-_]+/gi,t.separator),t.separator.length){var n=new RegExp(t.separator);r=(r=r.replace(new RegExp(n.source+"{2,}"),t.separator)).replace(new RegExp("^"+n.source+"|"+n.source+"$","i"),"")}return r.toLowerCase()},_applyInflections:function(e,t){var r,n,i,a=""+e;if(0===a.length)return a;var o=a.toLowerCase().match(/\b\w+$/);if(o&&this.inflections().uncountables.indexOf(o[0])>-1)return a;for(var s=0,u=t.length;s<u;s++)if(n=(r=t[s])[0],i=r[1],a.match(n)){a=a.replace(n,i);break}return a}};t.exports=n},{}],12:[function(e,t,r){(function(e,r){"use strict";var n={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","×":"x","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"Th","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"'n","Ŋ":"NG","ŋ":"ng","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z"};function i(){for(var e in this.approximations={},n)this.approximate(e,n[e])}i.getInstance=function(t){var n=void 0!==e?e:r;return n.__Inflector_Transliterator=n.__Inflector_Transliterator||{},n.__Inflector_Transliterator[t]=n.__Inflector_Transliterator[t]||new i,n.__Inflector_Transliterator[t]},i.prototype.approximate=function(e,t){this.approximations[e]=t},i.prototype.transliterate=function(e,t){var r=this;return e.replace(/[^\u0000-\u007f]/g,function(e){return r.approximations[e]||t||"?"})},t.exports=i}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:196}],13:[function(e,t,r){"use strict";t.exports={en:function(e){e.plural(/$/,"s"),e.plural(/s$/i,"s"),e.plural(/^(ax|test)is$/i,"$1es"),e.plural(/(octop|vir)us$/i,"$1i"),e.plural(/(octop|vir)i$/i,"$1i"),e.plural(/(alias|status)$/i,"$1es"),e.plural(/(bu)s$/i,"$1ses"),e.plural(/(buffal|tomat)o$/i,"$1oes"),e.plural(/([ti])um$/i,"$1a"),e.plural(/([ti])a$/i,"$1a"),e.plural(/sis$/i,"ses"),e.plural(/(?:([^f])fe|([lr])f)$/i,"$1$2ves"),e.plural(/(hive)$/i,"$1s"),e.plural(/([^aeiouy]|qu)y$/i,"$1ies"),e.plural(/(x|ch|ss|sh)$/i,"$1es"),e.plural(/(matr|vert|ind)(?:ix|ex)$/i,"$1ices"),e.plural(/^(m|l)ouse$/i,"$1ice"),e.plural(/^(m|l)ice$/i,"$1ice"),e.plural(/^(ox)$/i,"$1en"),e.plural(/^(oxen)$/i,"$1"),e.plural(/(quiz)$/i,"$1zes"),e.singular(/s$/i,""),e.singular(/(ss)$/i,"$1"),e.singular(/(n)ews$/i,"$1ews"),e.singular(/([ti])a$/i,"$1um"),e.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i,"$1sis"),e.singular(/(^analy)(sis|ses)$/i,"$1sis"),e.singular(/([^f])ves$/i,"$1fe"),e.singular(/(hive)s$/i,"$1"),e.singular(/(tive)s$/i,"$1"),e.singular(/([lr])ves$/i,"$1f"),e.singular(/([^aeiouy]|qu)ies$/i,"$1y"),e.singular(/(s)eries$/i,"$1eries"),e.singular(/(m)ovies$/i,"$1ovie"),e.singular(/(x|ch|ss|sh)es$/i,"$1"),e.singular(/^(m|l)ice$/i,"$1ouse"),e.singular(/(bus)(es)?$/i,"$1"),e.singular(/(o)es$/i,"$1"),e.singular(/(shoe)s$/i,"$1"),e.singular(/(cris|test)(is|es)$/i,"$1is"),e.singular(/^(a)x[ie]s$/i,"$1xis"),e.singular(/(octop|vir)(us|i)$/i,"$1us"),e.singular(/(alias|status)(es)?$/i,"$1"),e.singular(/^(ox)en/i,"$1"),e.singular(/(vert|ind)ices$/i,"$1ex"),e.singular(/(matr)ices$/i,"$1ix"),e.singular(/(quiz)zes$/i,"$1"),e.singular(/(database)s$/i,"$1"),e.irregular("person","people"),e.irregular("man","men"),e.irregular("child","children"),e.irregular("sex","sexes"),e.irregular("move","moves"),e.irregular("zombie","zombies"),e.uncountable("equipment","information","rice","money","species","series","fish","sheep","jeans","police")}}},{}],14:[function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],15:[function(e,t,r){"use strict";t.exports=function(e){return e.split("").map(function(e){return"(?:"+[e.toUpperCase(),e.toLowerCase()].join("|")+")"}).join("")}},{}],16:[function(e,t,r){"use strict";var n=Object.prototype.toString;t.exports=function(e){return"[object Function]"===n.call(e)}},{}],17:[function(e,t,r){"use strict";var n=Array.prototype.splice;t.exports=function(e,t){for(var r=e.length-1;r>=0;r--)e[r]===t&&n.call(e,r,1)}},{}],18:[function(e,t,r){var n=e("./_getNative")(e("./_root"),"DataView");t.exports=n},{"./_getNative":97,"./_root":139}],19:[function(e,t,r){var n=e("./_hashClear"),i=e("./_hashDelete"),a=e("./_hashGet"),o=e("./_hashHas"),s=e("./_hashSet");function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},{"./_hashClear":105,"./_hashDelete":106,"./_hashGet":107,"./_hashHas":108,"./_hashSet":109}],20:[function(e,t,r){var n=e("./_listCacheClear"),i=e("./_listCacheDelete"),a=e("./_listCacheGet"),o=e("./_listCacheHas"),s=e("./_listCacheSet");function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},{"./_listCacheClear":119,"./_listCacheDelete":120,"./_listCacheGet":121,"./_listCacheHas":122,"./_listCacheSet":123}],21:[function(e,t,r){var n=e("./_getNative")(e("./_root"),"Map");t.exports=n},{"./_getNative":97,"./_root":139}],22:[function(e,t,r){var n=e("./_mapCacheClear"),i=e("./_mapCacheDelete"),a=e("./_mapCacheGet"),o=e("./_mapCacheHas"),s=e("./_mapCacheSet");function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,t.exports=u},{"./_mapCacheClear":124,"./_mapCacheDelete":125,"./_mapCacheGet":126,"./_mapCacheHas":127,"./_mapCacheSet":128}],23:[function(e,t,r){var n=e("./_getNative")(e("./_root"),"Promise");t.exports=n},{"./_getNative":97,"./_root":139}],24:[function(e,t,r){var n=e("./_getNative")(e("./_root"),"Set");t.exports=n},{"./_getNative":97,"./_root":139}],25:[function(e,t,r){var n=e("./_MapCache"),i=e("./_setCacheAdd"),a=e("./_setCacheHas");function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,t.exports=o},{"./_MapCache":22,"./_setCacheAdd":141,"./_setCacheHas":142}],26:[function(e,t,r){var n=e("./_ListCache"),i=e("./_stackClear"),a=e("./_stackDelete"),o=e("./_stackGet"),s=e("./_stackHas"),u=e("./_stackSet");function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=u,t.exports=c},{"./_ListCache":20,"./_stackClear":146,"./_stackDelete":147,"./_stackGet":148,"./_stackHas":149,"./_stackSet":150}],27:[function(e,t,r){var n=e("./_root").Symbol;t.exports=n},{"./_root":139}],28:[function(e,t,r){var n=e("./_root").Uint8Array;t.exports=n},{"./_root":139}],29:[function(e,t,r){var n=e("./_getNative")(e("./_root"),"WeakMap");t.exports=n},{"./_getNative":97,"./_root":139}],30:[function(e,t,r){t.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},{}],31:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},{}],32:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}},{}],33:[function(e,t,r){var n=e("./_baseTimes"),i=e("./isArguments"),a=e("./isArray"),o=e("./isBuffer"),s=e("./_isIndex"),u=e("./isTypedArray"),c=Object.prototype.hasOwnProperty;t.exports=function(e,t){var r=a(e),l=!r&&i(e),f=!r&&!l&&o(e),p=!r&&!l&&!f&&u(e),_=r||l||f||p,h=_?n(e.length,String):[],y=h.length;for(var v in e)!t&&!c.call(e,v)||_&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,y))||h.push(v);return h}},{"./_baseTimes":71,"./_isIndex":112,"./isArguments":166,"./isArray":167,"./isBuffer":170,"./isTypedArray":178}],34:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},{}],35:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},{}],36:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},{}],37:[function(e,t,r){var n=e("./_baseAssignValue"),i=e("./eq");t.exports=function(e,t,r){(void 0===r||i(e[t],r))&&(void 0!==r||t in e)||n(e,t,r)}},{"./_baseAssignValue":40,"./eq":157}],38:[function(e,t,r){var n=e("./_baseAssignValue"),i=e("./eq"),a=Object.prototype.hasOwnProperty;t.exports=function(e,t,r){var o=e[t];a.call(e,t)&&i(o,r)&&(void 0!==r||t in e)||n(e,t,r)}},{"./_baseAssignValue":40,"./eq":157}],39:[function(e,t,r){var n=e("./eq");t.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},{"./eq":157}],40:[function(e,t,r){var n=e("./_defineProperty");t.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},{"./_defineProperty":87}],41:[function(e,t,r){var n=e("./isObject"),i=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();t.exports=a},{"./isObject":174}],42:[function(e,t,r){var n=e("./_baseForOwn"),i=e("./_createBaseEach")(n);t.exports=i},{"./_baseForOwn":46,"./_createBaseEach":84}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}},{}],44:[function(e,t,r){var n=e("./_arrayPush"),i=e("./_isFlattenable");t.exports=function e(t,r,a,o,s){var u=-1,c=t.length;for(a||(a=i),s||(s=[]);++u<c;){var l=t[u];r>0&&a(l)?r>1?e(l,r-1,a,o,s):n(s,l):o||(s[s.length]=l)}return s}},{"./_arrayPush":35,"./_isFlattenable":111}],45:[function(e,t,r){var n=e("./_createBaseFor")();t.exports=n},{"./_createBaseFor":85}],46:[function(e,t,r){var n=e("./_baseFor"),i=e("./keys");t.exports=function(e,t){return e&&n(e,t,i)}},{"./_baseFor":45,"./keys":179}],47:[function(e,t,r){var n=e("./_castPath"),i=e("./_toKey");t.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r<a;)e=e[i(t[r++])];return r&&r==a?e:void 0}},{"./_castPath":76,"./_toKey":152}],48:[function(e,t,r){var n=e("./_arrayPush"),i=e("./isArray");t.exports=function(e,t,r){var a=t(e);return i(e)?a:n(a,r(e))}},{"./_arrayPush":35,"./isArray":167}],49:[function(e,t,r){var n=e("./_Symbol"),i=e("./_getRawTag"),a=e("./_objectToString"),o="[object Null]",s="[object Undefined]",u=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?s:o:u&&u in Object(e)?i(e):a(e)}},{"./_Symbol":27,"./_getRawTag":99,"./_objectToString":136}],50:[function(e,t,r){t.exports=function(e,t){return null!=e&&t in Object(e)}},{}],51:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isObjectLike"),a="[object Arguments]";t.exports=function(e){return i(e)&&n(e)==a}},{"./_baseGetTag":49,"./isObjectLike":175}],52:[function(e,t,r){var n=e("./_baseIsEqualDeep"),i=e("./isObjectLike");t.exports=function e(t,r,a,o,s){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!=t&&r!=r:n(t,r,a,o,e,s))}},{"./_baseIsEqualDeep":53,"./isObjectLike":175}],53:[function(e,t,r){var n=e("./_Stack"),i=e("./_equalArrays"),a=e("./_equalByTag"),o=e("./_equalObjects"),s=e("./_getTag"),u=e("./isArray"),c=e("./isBuffer"),l=e("./isTypedArray"),f=1,p="[object Arguments]",_="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(e,t,r,v,b,d){var g=u(e),x=u(t),m=g?_:s(e),A=x?_:s(t),j=(m=m==p?h:m)==h,O=(A=A==p?h:A)==h,w=m==A;if(w&&c(e)){if(!c(t))return!1;g=!0,j=!1}if(w&&!j)return d||(d=new n),g||l(e)?i(e,t,r,v,b,d):a(e,t,m,r,v,b,d);if(!(r&f)){var $=j&&y.call(e,"__wrapped__"),k=O&&y.call(t,"__wrapped__");if($||k){var I=$?e.value():e,C=k?t.value():t;return d||(d=new n),b(I,C,r,v,d)}}return!!w&&(d||(d=new n),o(e,t,r,v,b,d))}},{"./_Stack":26,"./_equalArrays":88,"./_equalByTag":89,"./_equalObjects":90,"./_getTag":102,"./isArray":167,"./isBuffer":170,"./isTypedArray":178}],54:[function(e,t,r){var n=e("./_Stack"),i=e("./_baseIsEqual"),a=1,o=2;t.exports=function(e,t,r,s){var u=r.length,c=u,l=!s;if(null==e)return!c;for(e=Object(e);u--;){var f=r[u];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++u<c;){var p=(f=r[u])[0],_=e[p],h=f[1];if(l&&f[2]){if(void 0===_&&!(p in e))return!1}else{var y=new n;if(s)var v=s(_,h,p,e,t,y);if(!(void 0===v?i(h,_,a|o,s,y):v))return!1}}return!0}},{"./_Stack":26,"./_baseIsEqual":52}],55:[function(e,t,r){var n=e("./isFunction"),i=e("./_isMasked"),a=e("./isObject"),o=e("./_toSource"),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!a(e)||i(e))&&(n(e)?p:s).test(o(e))}},{"./_isMasked":116,"./_toSource":153,"./isFunction":171,"./isObject":174}],56:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isLength"),a=e("./isObjectLike"),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(e){return a(e)&&i(e.length)&&!!o[n(e)]}},{"./_baseGetTag":49,"./isLength":172,"./isObjectLike":175}],57:[function(e,t,r){var n=e("./_baseMatches"),i=e("./_baseMatchesProperty"),a=e("./identity"),o=e("./isArray"),s=e("./property");t.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):n(e):s(e)}},{"./_baseMatches":60,"./_baseMatchesProperty":61,"./identity":165,"./isArray":167,"./property":187}],58:[function(e,t,r){var n=e("./_isPrototype"),i=e("./_nativeKeys"),a=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},{"./_isPrototype":117,"./_nativeKeys":133}],59:[function(e,t,r){var n=e("./isObject"),i=e("./_isPrototype"),a=e("./_nativeKeysIn"),o=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return a(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&r.push(s);return r}},{"./_isPrototype":117,"./_nativeKeysIn":134,"./isObject":174}],60:[function(e,t,r){var n=e("./_baseIsMatch"),i=e("./_getMatchData"),a=e("./_matchesStrictComparable");t.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},{"./_baseIsMatch":54,"./_getMatchData":96,"./_matchesStrictComparable":130}],61:[function(e,t,r){var n=e("./_baseIsEqual"),i=e("./get"),a=e("./hasIn"),o=e("./_isKey"),s=e("./_isStrictComparable"),u=e("./_matchesStrictComparable"),c=e("./_toKey"),l=1,f=2;t.exports=function(e,t){return o(e)&&s(t)?u(c(e),t):function(r){var o=i(r,e);return void 0===o&&o===t?a(r,e):n(t,o,l|f)}}},{"./_baseIsEqual":52,"./_isKey":114,"./_isStrictComparable":118,"./_matchesStrictComparable":130,"./_toKey":152,"./get":163,"./hasIn":164}],62:[function(e,t,r){var n=e("./_Stack"),i=e("./_assignMergeValue"),a=e("./_baseFor"),o=e("./_baseMergeDeep"),s=e("./isObject"),u=e("./keysIn"),c=e("./_safeGet");t.exports=function e(t,r,l,f,p){t!==r&&a(r,function(a,u){if(s(a))p||(p=new n),o(t,r,u,l,e,f,p);else{var _=f?f(c(t,u),a,u+"",t,r,p):void 0;void 0===_&&(_=a),i(t,u,_)}},u)}},{"./_Stack":26,"./_assignMergeValue":37,"./_baseFor":45,"./_baseMergeDeep":63,"./_safeGet":140,"./isObject":174,"./keysIn":180}],63:[function(e,t,r){var n=e("./_assignMergeValue"),i=e("./_cloneBuffer"),a=e("./_cloneTypedArray"),o=e("./_copyArray"),s=e("./_initCloneObject"),u=e("./isArguments"),c=e("./isArray"),l=e("./isArrayLikeObject"),f=e("./isBuffer"),p=e("./isFunction"),_=e("./isObject"),h=e("./isPlainObject"),y=e("./isTypedArray"),v=e("./_safeGet"),b=e("./toPlainObject");t.exports=function(e,t,r,d,g,x,m){var A=v(e,r),j=v(t,r),O=m.get(j);if(O)n(e,r,O);else{var w=x?x(A,j,r+"",e,t,m):void 0,$=void 0===w;if($){var k=c(j),I=!k&&f(j),C=!k&&!I&&y(j);w=j,k||I||C?c(A)?w=A:l(A)?w=o(A):I?($=!1,w=i(j,!0)):C?($=!1,w=a(j,!0)):w=[]:h(j)||u(j)?(w=A,u(A)?w=b(A):_(A)&&!p(A)||(w=s(j))):$=!1}$&&(m.set(j,w),g(w,j,d,x,m),m.delete(j)),n(e,r,w)}}},{"./_assignMergeValue":37,"./_cloneBuffer":78,"./_cloneTypedArray":79,"./_copyArray":80,"./_initCloneObject":110,"./_safeGet":140,"./isArguments":166,"./isArray":167,"./isArrayLikeObject":169,"./isBuffer":170,"./isFunction":171,"./isObject":174,"./isPlainObject":176,"./isTypedArray":178,"./toPlainObject":193}],64:[function(e,t,r){var n=e("./_basePickBy"),i=e("./hasIn");t.exports=function(e,t){return n(e,t,function(t,r){return i(e,r)})}},{"./_basePickBy":65,"./hasIn":164}],65:[function(e,t,r){var n=e("./_baseGet"),i=e("./_baseSet"),a=e("./_castPath");t.exports=function(e,t,r){for(var o=-1,s=t.length,u={};++o<s;){var c=t[o],l=n(e,c);r(l,c)&&i(u,a(c,e),l)}return u}},{"./_baseGet":47,"./_baseSet":69,"./_castPath":76}],66:[function(e,t,r){t.exports=function(e){return function(t){return null==t?void 0:t[e]}}},{}],67:[function(e,t,r){var n=e("./_baseGet");t.exports=function(e){return function(t){return n(t,e)}}},{"./_baseGet":47}],68:[function(e,t,r){var n=e("./identity"),i=e("./_overRest"),a=e("./_setToString");t.exports=function(e,t){return a(i(e,t,n),e+"")}},{"./_overRest":138,"./_setToString":144,"./identity":165}],69:[function(e,t,r){var n=e("./_assignValue"),i=e("./_castPath"),a=e("./_isIndex"),o=e("./isObject"),s=e("./_toKey");t.exports=function(e,t,r,u){if(!o(e))return e;for(var c=-1,l=(t=i(t,e)).length,f=l-1,p=e;null!=p&&++c<l;){var _=s(t[c]),h=r;if(c!=f){var y=p[_];void 0===(h=u?u(y,_,p):void 0)&&(h=o(y)?y:a(t[c+1])?[]:{})}n(p,_,h),p=p[_]}return e}},{"./_assignValue":38,"./_castPath":76,"./_isIndex":112,"./_toKey":152,"./isObject":174}],70:[function(e,t,r){var n=e("./constant"),i=e("./_defineProperty"),a=e("./identity"),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;t.exports=o},{"./_defineProperty":87,"./constant":155,"./identity":165}],71:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},{}],72:[function(e,t,r){var n=e("./_Symbol"),i=e("./_arrayMap"),a=e("./isArray"),o=e("./isSymbol"),s=1/0,u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},{"./_Symbol":27,"./_arrayMap":34,"./isArray":167,"./isSymbol":177}],73:[function(e,t,r){t.exports=function(e){return function(t){return e(t)}}},{}],74:[function(e,t,r){t.exports=function(e,t){return e.has(t)}},{}],75:[function(e,t,r){var n=e("./identity");t.exports=function(e){return"function"==typeof e?e:n}},{"./identity":165}],76:[function(e,t,r){var n=e("./isArray"),i=e("./_isKey"),a=e("./_stringToPath"),o=e("./toString");t.exports=function(e,t){return n(e)?e:i(e,t)?[e]:a(o(e))}},{"./_isKey":114,"./_stringToPath":151,"./isArray":167,"./toString":194}],77:[function(e,t,r){var n=e("./_Uint8Array");t.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},{"./_Uint8Array":28}],78:[function(e,t,r){var n=e("./_root"),i="object"==typeof r&&r&&!r.nodeType&&r,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},{"./_root":139}],79:[function(e,t,r){var n=e("./_cloneArrayBuffer");t.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},{"./_cloneArrayBuffer":77}],80:[function(e,t,r){t.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},{}],81:[function(e,t,r){var n=e("./_assignValue"),i=e("./_baseAssignValue");t.exports=function(e,t,r,a){var o=!r;r||(r={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=a?a(r[c],e[c],c,r,e):void 0;void 0===l&&(l=e[c]),o?i(r,c,l):n(r,c,l)}return r}},{"./_assignValue":38,"./_baseAssignValue":40}],82:[function(e,t,r){var n=e("./_root")["__core-js_shared__"];t.exports=n},{"./_root":139}],83:[function(e,t,r){var n=e("./_baseRest"),i=e("./_isIterateeCall");t.exports=function(e){return n(function(t,r){var n=-1,a=r.length,o=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(r[0],r[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++n<a;){var u=r[n];u&&e(t,u,n,o)}return t})}},{"./_baseRest":68,"./_isIterateeCall":113}],84:[function(e,t,r){var n=e("./isArrayLike");t.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&!1!==i(s[o],o,s););return r}}},{"./isArrayLike":168}],85:[function(e,t,r){t.exports=function(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(!1===r(a[u],u,a))break}return t}}},{}],86:[function(e,t,r){var n=e("./_baseIteratee"),i=e("./isArrayLike"),a=e("./keys");t.exports=function(e){return function(t,r,o){var s=Object(t);if(!i(t)){var u=n(r,3);t=a(t),r=function(e){return u(s[e],e,s)}}var c=e(t,r,o);return c>-1?s[u?t[c]:c]:void 0}}},{"./_baseIteratee":57,"./isArrayLike":168,"./keys":179}],87:[function(e,t,r){var n=e("./_getNative"),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=i},{"./_getNative":97}],88:[function(e,t,r){var n=e("./_SetCache"),i=e("./_arraySome"),a=e("./_cacheHas"),o=1,s=2;t.exports=function(e,t,r,u,c,l){var f=r&o,p=e.length,_=t.length;if(p!=_&&!(f&&_>p))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var y=-1,v=!0,b=r&s?new n:void 0;for(l.set(e,t),l.set(t,e);++y<p;){var d=e[y],g=t[y];if(u)var x=f?u(g,d,y,t,e,l):u(d,g,y,e,t,l);if(void 0!==x){if(x)continue;v=!1;break}if(b){if(!i(t,function(e,t){if(!a(b,t)&&(d===e||c(d,e,r,u,l)))return b.push(t)})){v=!1;break}}else if(d!==g&&!c(d,g,r,u,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},{"./_SetCache":25,"./_arraySome":36,"./_cacheHas":74}],89:[function(e,t,r){var n=e("./_Symbol"),i=e("./_Uint8Array"),a=e("./eq"),o=e("./_equalArrays"),s=e("./_mapToArray"),u=e("./_setToArray"),c=1,l=2,f="[object Boolean]",p="[object Date]",_="[object Error]",h="[object Map]",y="[object Number]",v="[object RegExp]",b="[object Set]",d="[object String]",g="[object Symbol]",x="[object ArrayBuffer]",m="[object DataView]",A=n?n.prototype:void 0,j=A?A.valueOf:void 0;t.exports=function(e,t,r,n,A,O,w){switch(r){case m:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!O(new i(e),new i(t)));case f:case p:case y:return a(+e,+t);case _:return e.name==t.name&&e.message==t.message;case v:case d:return e==t+"";case h:var $=s;case b:var k=n&c;if($||($=u),e.size!=t.size&&!k)return!1;var I=w.get(e);if(I)return I==t;n|=l,w.set(e,t);var C=o($(e),$(t),n,A,O,w);return w.delete(e),C;case g:if(j)return j.call(e)==j.call(t)}return!1}},{"./_Symbol":27,"./_Uint8Array":28,"./_equalArrays":88,"./_mapToArray":129,"./_setToArray":143,"./eq":157}],90:[function(e,t,r){var n=e("./_getAllKeys"),i=1,a=Object.prototype.hasOwnProperty;t.exports=function(e,t,r,o,s,u){var c=r&i,l=n(e),f=l.length;if(f!=n(t).length&&!c)return!1;for(var p=f;p--;){var _=l[p];if(!(c?_ in t:a.call(t,_)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var y=!0;u.set(e,t),u.set(t,e);for(var v=c;++p<f;){var b=e[_=l[p]],d=t[_];if(o)var g=c?o(d,b,_,t,e,u):o(b,d,_,e,t,u);if(!(void 0===g?b===d||s(b,d,r,o,u):g)){y=!1;break}v||(v="constructor"==_)}if(y&&!v){var x=e.constructor,m=t.constructor;x!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof m&&m instanceof m)&&(y=!1)}return u.delete(e),u.delete(t),y}},{"./_getAllKeys":93}],91:[function(e,t,r){var n=e("./flatten"),i=e("./_overRest"),a=e("./_setToString");t.exports=function(e){return a(i(e,void 0,n),e+"")}},{"./_overRest":138,"./_setToString":144,"./flatten":161}],92:[function(e,t,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],93:[function(e,t,r){var n=e("./_baseGetAllKeys"),i=e("./_getSymbols"),a=e("./keys");t.exports=function(e){return n(e,a,i)}},{"./_baseGetAllKeys":48,"./_getSymbols":100,"./keys":179}],94:[function(e,t,r){var n=e("./_baseGetAllKeys"),i=e("./_getSymbolsIn"),a=e("./keysIn");t.exports=function(e){return n(e,a,i)}},{"./_baseGetAllKeys":48,"./_getSymbolsIn":101,"./keysIn":180}],95:[function(e,t,r){var n=e("./_isKeyable");t.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},{"./_isKeyable":115}],96:[function(e,t,r){var n=e("./_isStrictComparable"),i=e("./keys");t.exports=function(e){for(var t=i(e),r=t.length;r--;){var a=t[r],o=e[a];t[r]=[a,o,n(o)]}return t}},{"./_isStrictComparable":118,"./keys":179}],97:[function(e,t,r){var n=e("./_baseIsNative"),i=e("./_getValue");t.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},{"./_baseIsNative":55,"./_getValue":103}],98:[function(e,t,r){var n=e("./_overArg")(Object.getPrototypeOf,Object);t.exports=n},{"./_overArg":137}],99:[function(e,t,r){var n=e("./_Symbol"),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n?n.toStringTag:void 0;t.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[s]=r:delete e[s]),i}},{"./_Symbol":27}],100:[function(e,t,r){var n=e("./_arrayFilter"),i=e("./stubArray"),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),n(o(e),function(t){return a.call(e,t)}))}:i;t.exports=s},{"./_arrayFilter":32,"./stubArray":188}],101:[function(e,t,r){var n=e("./_arrayPush"),i=e("./_getPrototype"),a=e("./_getSymbols"),o=e("./stubArray"),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=i(e);return t}:o;t.exports=s},{"./_arrayPush":35,"./_getPrototype":98,"./_getSymbols":100,"./stubArray":188}],102:[function(e,t,r){var n=e("./_DataView"),i=e("./_Map"),a=e("./_Promise"),o=e("./_Set"),s=e("./_WeakMap"),u=e("./_baseGetTag"),c=e("./_toSource"),l=c(n),f=c(i),p=c(a),_=c(o),h=c(s),y=u;(n&&"[object DataView]"!=y(new n(new ArrayBuffer(1)))||i&&"[object Map]"!=y(new i)||a&&"[object Promise]"!=y(a.resolve())||o&&"[object Set]"!=y(new o)||s&&"[object WeakMap]"!=y(new s))&&(y=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case _:return"[object Set]";case h:return"[object WeakMap]"}return t}),t.exports=y},{"./_DataView":18,"./_Map":21,"./_Promise":23,"./_Set":24,"./_WeakMap":29,"./_baseGetTag":49,"./_toSource":153}],103:[function(e,t,r){t.exports=function(e,t){return null==e?void 0:e[t]}},{}],104:[function(e,t,r){var n=e("./_castPath"),i=e("./isArguments"),a=e("./isArray"),o=e("./_isIndex"),s=e("./isLength"),u=e("./_toKey");t.exports=function(e,t,r){for(var c=-1,l=(t=n(t,e)).length,f=!1;++c<l;){var p=u(t[c]);if(!(f=null!=e&&r(e,p)))break;e=e[p]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&o(p,l)&&(a(e)||i(e))}},{"./_castPath":76,"./_isIndex":112,"./_toKey":152,"./isArguments":166,"./isArray":167,"./isLength":172}],105:[function(e,t,r){var n=e("./_nativeCreate");t.exports=function(){this.__data__=n?n(null):{},this.size=0}},{"./_nativeCreate":132}],106:[function(e,t,r){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},{}],107:[function(e,t,r){var n=e("./_nativeCreate"),i="__lodash_hash_undefined__",a=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(n){var r=t[e];return r===i?void 0:r}return a.call(t,e)?t[e]:void 0}},{"./_nativeCreate":132}],108:[function(e,t,r){var n=e("./_nativeCreate"),i=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},{"./_nativeCreate":132}],109:[function(e,t,r){var n=e("./_nativeCreate"),i="__lodash_hash_undefined__";t.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?i:t,this}},{"./_nativeCreate":132}],110:[function(e,t,r){var n=e("./_baseCreate"),i=e("./_getPrototype"),a=e("./_isPrototype");t.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(i(e))}},{"./_baseCreate":41,"./_getPrototype":98,"./_isPrototype":117}],111:[function(e,t,r){var n=e("./_Symbol"),i=e("./isArguments"),a=e("./isArray"),o=n?n.isConcatSpreadable:void 0;t.exports=function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},{"./_Symbol":27,"./isArguments":166,"./isArray":167}],112:[function(e,t,r){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&e<t}},{}],113:[function(e,t,r){var n=e("./eq"),i=e("./isArrayLike"),a=e("./_isIndex"),o=e("./isObject");t.exports=function(e,t,r){if(!o(r))return!1;var s=typeof t;return!!("number"==s?i(r)&&a(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},{"./_isIndex":112,"./eq":157,"./isArrayLike":168,"./isObject":174}],114:[function(e,t,r){var n=e("./isArray"),i=e("./isSymbol"),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||o.test(e)||!a.test(e)||null!=t&&e in Object(t)}},{"./isArray":167,"./isSymbol":177}],115:[function(e,t,r){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},{}],116:[function(e,t,r){var n,i=e("./_coreJsData"),a=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(e){return!!a&&a in e}},{"./_coreJsData":82}],117:[function(e,t,r){var n=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},{}],118:[function(e,t,r){var n=e("./isObject");t.exports=function(e){return e==e&&!n(e)}},{"./isObject":174}],119:[function(e,t,r){t.exports=function(){this.__data__=[],this.size=0}},{}],120:[function(e,t,r){var n=e("./_assocIndexOf"),i=Array.prototype.splice;t.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():i.call(t,r,1),--this.size,0))}},{"./_assocIndexOf":39}],121:[function(e,t,r){var n=e("./_assocIndexOf");t.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},{"./_assocIndexOf":39}],122:[function(e,t,r){var n=e("./_assocIndexOf");t.exports=function(e){return n(this.__data__,e)>-1}},{"./_assocIndexOf":39}],123:[function(e,t,r){var n=e("./_assocIndexOf");t.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},{"./_assocIndexOf":39}],124:[function(e,t,r){var n=e("./_Hash"),i=e("./_ListCache"),a=e("./_Map");t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||i),string:new n}}},{"./_Hash":19,"./_ListCache":20,"./_Map":21}],125:[function(e,t,r){var n=e("./_getMapData");t.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},{"./_getMapData":95}],126:[function(e,t,r){var n=e("./_getMapData");t.exports=function(e){return n(this,e).get(e)}},{"./_getMapData":95}],127:[function(e,t,r){var n=e("./_getMapData");t.exports=function(e){return n(this,e).has(e)}},{"./_getMapData":95}],128:[function(e,t,r){var n=e("./_getMapData");t.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},{"./_getMapData":95}],129:[function(e,t,r){t.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},{}],130:[function(e,t,r){t.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},{}],131:[function(e,t,r){var n=e("./memoize"),i=500;t.exports=function(e){var t=n(e,function(e){return r.size===i&&r.clear(),e}),r=t.cache;return t}},{"./memoize":183}],132:[function(e,t,r){var n=e("./_getNative")(Object,"create");t.exports=n},{"./_getNative":97}],133:[function(e,t,r){var n=e("./_overArg")(Object.keys,Object);t.exports=n},{"./_overArg":137}],134:[function(e,t,r){t.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},{}],135:[function(e,t,r){var n=e("./_freeGlobal"),i="object"==typeof r&&r&&!r.nodeType&&r,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,o=a&&a.exports===i&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();t.exports=s},{"./_freeGlobal":92}],136:[function(e,t,r){var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}},{}],137:[function(e,t,r){t.exports=function(e,t){return function(r){return e(t(r))}}},{}],138:[function(e,t,r){var n=e("./_apply"),i=Math.max;t.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),u=Array(s);++o<s;)u[o]=a[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=a[o];return c[t]=r(u),n(e,this,c)}}},{"./_apply":30}],139:[function(e,t,r){var n=e("./_freeGlobal"),i="object"==typeof self&&self&&self.Object===Object&&self,a=n||i||Function("return this")();t.exports=a},{"./_freeGlobal":92}],140:[function(e,t,r){t.exports=function(e,t){if("__proto__"!=t)return e[t]}},{}],141:[function(e,t,r){var n="__lodash_hash_undefined__";t.exports=function(e){return this.__data__.set(e,n),this}},{}],142:[function(e,t,r){t.exports=function(e){return this.__data__.has(e)}},{}],143:[function(e,t,r){t.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},{}],144:[function(e,t,r){var n=e("./_baseSetToString"),i=e("./_shortOut")(n);t.exports=i},{"./_baseSetToString":70,"./_shortOut":145}],145:[function(e,t,r){var n=800,i=16,a=Date.now;t.exports=function(e){var t=0,r=0;return function(){var o=a(),s=i-(o-r);if(r=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},{}],146:[function(e,t,r){var n=e("./_ListCache");t.exports=function(){this.__data__=new n,this.size=0}},{"./_ListCache":20}],147:[function(e,t,r){t.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},{}],148:[function(e,t,r){t.exports=function(e){return this.__data__.get(e)}},{}],149:[function(e,t,r){t.exports=function(e){return this.__data__.has(e)}},{}],150:[function(e,t,r){var n=e("./_ListCache"),i=e("./_Map"),a=e("./_MapCache"),o=200;t.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<o-1)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(s)}return r.set(e,t),this.size=r.size,this}},{"./_ListCache":20,"./_Map":21,"./_MapCache":22}],151:[function(e,t,r){var n=e("./_memoizeCapped"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(a,"$1"):r||e)}),t});t.exports=o},{"./_memoizeCapped":131}],152:[function(e,t,r){var n=e("./isSymbol"),i=1/0;t.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},{"./isSymbol":177}],153:[function(e,t,r){var n=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},{}],154:[function(e,t,r){var n=e("./_copyObject"),i=e("./_createAssigner"),a=e("./keysIn"),o=i(function(e,t){n(t,a(t),e)});t.exports=o},{"./_copyObject":81,"./_createAssigner":83,"./keysIn":180}],155:[function(e,t,r){t.exports=function(e){return function(){return e}}},{}],156:[function(e,t,r){t.exports=e("./forEach")},{"./forEach":162}],157:[function(e,t,r){t.exports=function(e,t){return e===t||e!=e&&t!=t}},{}],158:[function(e,t,r){t.exports=e("./assignIn")},{"./assignIn":154}],159:[function(e,t,r){var n=e("./_createFind")(e("./findIndex"));t.exports=n},{"./_createFind":86,"./findIndex":160}],160:[function(e,t,r){var n=e("./_baseFindIndex"),i=e("./_baseIteratee"),a=e("./toInteger"),o=Math.max;t.exports=function(e,t,r){var s=null==e?0:e.length;if(!s)return-1;var u=null==r?0:a(r);return u<0&&(u=o(s+u,0)),n(e,i(t,3),u)}},{"./_baseFindIndex":43,"./_baseIteratee":57,"./toInteger":191}],161:[function(e,t,r){var n=e("./_baseFlatten");t.exports=function(e){return null!=e&&e.length?n(e,1):[]}},{"./_baseFlatten":44}],162:[function(e,t,r){var n=e("./_arrayEach"),i=e("./_baseEach"),a=e("./_castFunction"),o=e("./isArray");t.exports=function(e,t){return(o(e)?n:i)(e,a(t))}},{"./_arrayEach":31,"./_baseEach":42,"./_castFunction":75,"./isArray":167}],163:[function(e,t,r){var n=e("./_baseGet");t.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},{"./_baseGet":47}],164:[function(e,t,r){var n=e("./_baseHasIn"),i=e("./_hasPath");t.exports=function(e,t){return null!=e&&i(e,t,n)}},{"./_baseHasIn":50,"./_hasPath":104}],165:[function(e,t,r){t.exports=function(e){return e}},{}],166:[function(e,t,r){var n=e("./_baseIsArguments"),i=e("./isObjectLike"),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};t.exports=u},{"./_baseIsArguments":51,"./isObjectLike":175}],167:[function(e,t,r){var n=Array.isArray;t.exports=n},{}],168:[function(e,t,r){var n=e("./isFunction"),i=e("./isLength");t.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},{"./isFunction":171,"./isLength":172}],169:[function(e,t,r){var n=e("./isArrayLike"),i=e("./isObjectLike");t.exports=function(e){return i(e)&&n(e)}},{"./isArrayLike":168,"./isObjectLike":175}],170:[function(e,t,r){var n=e("./_root"),i=e("./stubFalse"),a="object"==typeof r&&r&&!r.nodeType&&r,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===a?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u},{"./_root":139,"./stubFalse":189}],171:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isObject"),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";t.exports=function(e){if(!i(e))return!1;var t=n(e);return t==o||t==s||t==a||t==u}},{"./_baseGetTag":49,"./isObject":174}],172:[function(e,t,r){var n=9007199254740991;t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},{}],173:[function(e,t,r){t.exports=function(e){return null==e}},{}],174:[function(e,t,r){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},{}],175:[function(e,t,r){t.exports=function(e){return null!=e&&"object"==typeof e}},{}],176:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./_getPrototype"),a=e("./isObjectLike"),o="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,l=u.hasOwnProperty,f=c.call(Object);t.exports=function(e){if(!a(e)||n(e)!=o)return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==f}},{"./_baseGetTag":49,"./_getPrototype":98,"./isObjectLike":175}],177:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isObjectLike"),a="[object Symbol]";t.exports=function(e){return"symbol"==typeof e||i(e)&&n(e)==a}},{"./_baseGetTag":49,"./isObjectLike":175}],178:[function(e,t,r){var n=e("./_baseIsTypedArray"),i=e("./_baseUnary"),a=e("./_nodeUtil"),o=a&&a.isTypedArray,s=o?i(o):n;t.exports=s},{"./_baseIsTypedArray":56,"./_baseUnary":73,"./_nodeUtil":135}],179:[function(e,t,r){var n=e("./_arrayLikeKeys"),i=e("./_baseKeys"),a=e("./isArrayLike");t.exports=function(e){return a(e)?n(e):i(e)}},{"./_arrayLikeKeys":33,"./_baseKeys":58,"./isArrayLike":168}],180:[function(e,t,r){var n=e("./_arrayLikeKeys"),i=e("./_baseKeysIn"),a=e("./isArrayLike");t.exports=function(e){return a(e)?n(e,!0):i(e)}},{"./_arrayLikeKeys":33,"./_baseKeysIn":59,"./isArrayLike":168}],181:[function(e,t,r){var n=e("./_baseAssignValue"),i=e("./_baseForOwn"),a=e("./_baseIteratee");t.exports=function(e,t){var r={};return t=a(t,3),i(e,function(e,i,a){n(r,t(e,i,a),e)}),r}},{"./_baseAssignValue":40,"./_baseForOwn":46,"./_baseIteratee":57}],182:[function(e,t,r){var n=e("./_baseAssignValue"),i=e("./_baseForOwn"),a=e("./_baseIteratee");t.exports=function(e,t){var r={};return t=a(t,3),i(e,function(e,i,a){n(r,i,t(e,i,a))}),r}},{"./_baseAssignValue":40,"./_baseForOwn":46,"./_baseIteratee":57}],183:[function(e,t,r){var n=e("./_MapCache"),i="Expected a function";function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(a.Cache||n),r}a.Cache=n,t.exports=a},{"./_MapCache":22}],184:[function(e,t,r){var n=e("./_baseMerge"),i=e("./_createAssigner")(function(e,t,r){n(e,t,r)});t.exports=i},{"./_baseMerge":62,"./_createAssigner":83}],185:[function(e,t,r){var n=e("./_basePick"),i=e("./_flatRest")(function(e,t){return null==e?{}:n(e,t)});t.exports=i},{"./_basePick":64,"./_flatRest":91}],186:[function(e,t,r){var n=e("./_arrayMap"),i=e("./_baseIteratee"),a=e("./_basePickBy"),o=e("./_getAllKeysIn");t.exports=function(e,t){if(null==e)return{};var r=n(o(e),function(e){return[e]});return t=i(t),a(e,r,function(e,r){return t(e,r[0])})}},{"./_arrayMap":34,"./_baseIteratee":57,"./_basePickBy":65,"./_getAllKeysIn":94}],187:[function(e,t,r){var n=e("./_baseProperty"),i=e("./_basePropertyDeep"),a=e("./_isKey"),o=e("./_toKey");t.exports=function(e){return a(e)?n(o(e)):i(e)}},{"./_baseProperty":66,"./_basePropertyDeep":67,"./_isKey":114,"./_toKey":152}],188:[function(e,t,r){t.exports=function(){return[]}},{}],189:[function(e,t,r){t.exports=function(){return!1}},{}],190:[function(e,t,r){var n=e("./toNumber"),i=1/0,a=1.7976931348623157e308;t.exports=function(e){return e?(e=n(e))===i||e===-i?(e<0?-1:1)*a:e==e?e:0:0===e?e:0}},{"./toNumber":192}],191:[function(e,t,r){var n=e("./toFinite");t.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},{"./toFinite":190}],192:[function(e,t,r){var n=e("./isObject"),i=e("./isSymbol"),a=NaN,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=u.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):s.test(e)?a:+e}},{"./isObject":174,"./isSymbol":177}],193:[function(e,t,r){var n=e("./_copyObject"),i=e("./keysIn");t.exports=function(e){return n(e,i(e))}},{"./_copyObject":81,"./keysIn":180}],194:[function(e,t,r){var n=e("./_baseToString");t.exports=function(e){return null==e?"":n(e)}},{"./_baseToString":72}],195:[function(e,t,r){var n=e("./_arrayEach"),i=e("./_baseCreate"),a=e("./_baseForOwn"),o=e("./_baseIteratee"),s=e("./_getPrototype"),u=e("./isArray"),c=e("./isBuffer"),l=e("./isFunction"),f=e("./isObject"),p=e("./isTypedArray");t.exports=function(e,t,r){var _=u(e),h=_||c(e)||p(e);if(t=o(t,4),null==r){var y=e&&e.constructor;r=h?_?new y:[]:f(e)&&l(y)?i(s(e)):{}}return(h?n:a)(e,function(e,n,i){return t(r,e,n,i)}),r}},{"./_arrayEach":31,"./_baseCreate":41,"./_baseForOwn":46,"./_baseIteratee":57,"./_getPrototype":98,"./isArray":167,"./isBuffer":170,"./isFunction":171,"./isObject":174,"./isTypedArray":178}],196:[function(e,t,r){var n,i,a=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],f=!1,p=-1;function _(){f&&c&&(f=!1,c.length?l=c.concat(l):p=-1,l.length&&h())}function h(){if(!f){var e=u(_);f=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function v(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new y(e,t)),1!==l.length||f||u(h)},y.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],"jsonapi-serializer":[function(e,t,r){t.exports={Serializer:e("./lib/serializer"),Deserializer:e("./lib/deserializer"),Error:e("./lib/error")}},{"./lib/deserializer":2,"./lib/error":4,"./lib/serializer":7}]},{},["jsonapi-serializer"]);